diff --git a/hostd/assets/404.html b/hostd/assets/404.html index 1b42fa511..11509aad6 100644 --- a/hostd/assets/404.html +++ b/hostd/assets/404.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/hostd/assets/_next/static/9heB63_-kiSTLJHZhPmct/_buildManifest.js b/hostd/assets/_next/static/9heB63_-kiSTLJHZhPmct/_buildManifest.js deleted file mode 100644 index 73b1d1d82..000000000 --- a/hostd/assets/_next/static/9heB63_-kiSTLJHZhPmct/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":["static/chunks/pages/index-52b11961e4af1881.js"],"/_error":["static/chunks/pages/_error-bef7735c65ba8b47.js"],"/config":["static/chunks/pages/config-e078fba2d9e45ca7.js"],"/contracts":["static/chunks/pages/contracts-53bec3be24713df4.js"],"/login":["static/chunks/pages/login-2462f78776d3453a.js"],"/node":["static/chunks/pages/node-8e127bd25872c5c9.js"],"/volumes":["static/chunks/pages/volumes-c61eb60015ee71e0.js"],"/wallet":["static/chunks/pages/wallet-598d783ef1af8964.js"],sortedPages:["/","/_app","/_error","/config","/contracts","/login","/node","/volumes","/wallet"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/_app-0071a31f177c8ab9.js b/hostd/assets/_next/static/chunks/pages/_app-0071a31f177c8ab9.js deleted file mode 100644 index 180cc8f1c..000000000 --- a/hostd/assets/_next/static/chunks/pages/_app-0071a31f177c8ab9.js +++ /dev/null @@ -1,71 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{44711:function(e,t,n){"use strict";n.r(t),n.d(t,{ResizeObserver:function(){return q},ResizeObserverEntry:function(){return _},ResizeObserverSize:function(){return c}});var r,i,o,a=[],s="ResizeObserver loop completed with undelivered notifications.",l=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:s}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=s),window.dispatchEvent(e)};(r=i||(i={})).BORDER_BOX="border-box",r.CONTENT_BOX="content-box",r.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box";var u=function(e){return Object.freeze(e)},c=function(e,t){this.inlineSize=e,this.blockSize=t,u(this)},d=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,u(this)}return e.prototype.toJSON=function(){return{x:this.x,y:this.y,top:this.top,right:this.right,bottom:this.bottom,left:this.left,width:this.width,height:this.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),f=function(e){return e instanceof SVGElement&&"getBBox"in e},h=function(e){if(f(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e.offsetWidth,o=e.offsetHeight;return!(i||o||e.getClientRects().length)},p=function(e){if(e instanceof Element)return!0;var t,n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},m=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},v="undefined"!=typeof window?window:{},g=new WeakMap,y=/auto|scroll/,x=/^tb|vertical/,b=/msie|trident/i.test(v.navigator&&v.navigator.userAgent),w=function(e){return parseFloat(e||"0")},E=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new c((n?t:e)||0,(n?e:t)||0)},j=u({devicePixelContentBoxSize:E(),borderBoxSize:E(),contentBoxSize:E(),contentRect:new d(0,0,0,0)}),k=function(e,t){if(void 0===t&&(t=!1),g.has(e)&&!t)return g.get(e);if(h(e))return g.set(e,j),j;var n=getComputedStyle(e),r=f(e)&&e.ownerSVGElement&&e.getBBox(),i=!b&&"border-box"===n.boxSizing,o=x.test(n.writingMode||""),a=!r&&y.test(n.overflowY||""),s=!r&&y.test(n.overflowX||""),l=r?0:w(n.paddingTop),c=r?0:w(n.paddingRight),p=r?0:w(n.paddingBottom),m=r?0:w(n.paddingLeft),v=r?0:w(n.borderTopWidth),k=r?0:w(n.borderRightWidth),S=r?0:w(n.borderBottomWidth),_=r?0:w(n.borderLeftWidth),O=m+c,C=l+p,M=_+k,A=v+S,T=s?e.offsetHeight-A-e.clientHeight:0,P=a?e.offsetWidth-M-e.clientWidth:0,N=r?r.width:w(n.width)-(i?O+M:0)-P,R=r?r.height:w(n.height)-(i?C+A:0)-T,D=N+O+P+M,L=R+C+T+A,F=u({devicePixelContentBoxSize:E(Math.round(N*devicePixelRatio),Math.round(R*devicePixelRatio),o),borderBoxSize:E(D,L,o),contentBoxSize:E(N,R,o),contentRect:new d(m,l,N,R)});return g.set(e,F),F},S=function(e,t,n){var r=k(e,n),o=r.borderBoxSize,a=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case i.DEVICE_PIXEL_CONTENT_BOX:return s;case i.BORDER_BOX:return o;default:return a}},_=function(e){var t=k(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=u([t.borderBoxSize]),this.contentBoxSize=u([t.contentBoxSize]),this.devicePixelContentBoxSize=u([t.devicePixelContentBoxSize])},O=function(e){if(h(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},C=function(){var e=1/0,t=[];a.forEach(function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach(function(t){var n=new _(t.target),i=O(t.target);r.push(n),t.lastReportedSize=S(t.target,t.observedBox),ie?t.activeTargets.push(n):t.skippedTargets.push(n))})})},A=function(){var e=0;for(M(0);a.some(function(e){return e.activeTargets.length>0});)M(e=C());return a.some(function(e){return e.skippedTargets.length>0})&&l(),e>0},T=[],P=function(e){if(!o){var t=0,n=document.createTextNode("");new MutationObserver(function(){return T.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),o=function(){n.textContent=""+(t?t--:t++)}}T.push(e),o()},N=function(e){P(function(){requestAnimationFrame(e)})},R=0,D={attributes:!0,characterData:!0,childList:!0,subtree:!0},L=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],F=function(e){return void 0===e&&(e=0),Date.now()+e},V=!1,z=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),!V){V=!0;var n=F(e);N(function(){var r=!1;try{r=A()}finally{if(V=!1,e=n-F(),!R)return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},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,D)};document.body?t():v.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),L.forEach(function(t){return v.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),L.forEach(function(t){return v.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),I=function(e){!R&&e>0&&z.start(),(R+=e)||z.stop()},Z=function(){function e(e,t){this.target=e,this.observedBox=t||i.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=S(this.target,this.observedBox,!0);return f(e=this.target)||m(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),B=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},H=new WeakMap,U=function(e,t){for(var n=0;nU(r.observationTargets,t)&&(i&&a.push(r),r.observationTargets.push(new Z(t,n&&n.box)),I(1),z.schedule())},e.unobserve=function(e,t){var n=H.get(e),r=U(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&a.splice(a.indexOf(n),1),n.observationTargets.splice(r,1),I(-1))},e.disconnect=function(e){var t=this,n=H.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),q=function(){function e(e){if(0==arguments.length)throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");W.connect(this,e)}return e.prototype.observe=function(e,t){if(0==arguments.length)throw TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!p(e))throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");W.observe(this,e,t)},e.prototype.unobserve=function(e){if(0==arguments.length)throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!p(e))throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");W.unobserve(this,e)},e.prototype.disconnect=function(){W.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}()},41816:function(e,t,n){"use strict";function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}n.d(t,{M:function(){return r}})},26215:function(e,t,n){"use strict";n.d(t,{F:function(){return i},e:function(){return o}});var r=n(2784);function i(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function o(...e){return(0,r.useCallback)(i(...e),e)}},34540:function(e,t,n){"use strict";n.d(t,{b:function(){return o},k:function(){return i}});var r=n(2784);function i(e,t){let n=(0,r.createContext)(t);function i(e){let{children:t,...i}=e,o=(0,r.useMemo)(()=>i,Object.values(i));return(0,r.createElement)(n.Provider,{value:o},t)}return i.displayName=e+"Provider",[i,function(i){let o=(0,r.useContext)(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function o(e,t=[]){let n=[],i=()=>{let t=n.map(e=>(0,r.createContext)(e));return function(n){let i=(null==n?void 0:n[e])||t;return(0,r.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return i.scopeName=e,[function(t,i){let o=(0,r.createContext)(i),a=n.length;function s(t){let{scope:n,children:i,...s}=t,l=(null==n?void 0:n[e][a])||o,u=(0,r.useMemo)(()=>s,Object.values(s));return(0,r.createElement)(l.Provider,{value:u},i)}return n=[...n,i],s.displayName=t+"Provider",[s,function(n,s){let l=(null==s?void 0:s[e][a])||o,u=(0,r.useContext)(l);if(u)return u;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e),o=i[`__scope${r}`];return{...t,...o}},{});return(0,r.useMemo)(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(i,...t)]}},72331:function(e,t,n){"use strict";n.d(t,{Dx:function(){return Y},VY:function(){return $},aV:function(){return q},dk:function(){return G},fC:function(){return H},h_:function(){return W},x8:function(){return X},xz:function(){return U}});var r=n(7896),i=n(2784),o=n(41816),a=n(26215),s=n(34540),l=n(26074),u=n(73597),c=n(83317),d=n(77334),f=n(6500),h=n(28245),p=n(72130),m=n(55070),v=n(88965),g=n(49732),y=n(99575);let x="Dialog",[b,w]=(0,s.b)(x),[E,j]=b(x),k=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...s}=e,l=j("DialogTrigger",n),u=(0,a.e)(t,l.triggerRef);return(0,i.createElement)(p.WV.button,(0,r.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":I(l.open)},s,{ref:u,onClick:(0,o.M)(e.onClick,l.onOpenToggle)}))}),S="DialogPortal",[_,O]=b(S,{forceMount:void 0}),C="DialogOverlay",M=(0,i.forwardRef)((e,t)=>{let n=O(C,e.__scopeDialog),{forceMount:o=n.forceMount,...a}=e,s=j(C,e.__scopeDialog);return s.modal?(0,i.createElement)(h.z,{present:o||s.open},(0,i.createElement)(A,(0,r.Z)({},a,{ref:t}))):null}),A=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=j(C,n);return(0,i.createElement)(v.Z,{as:y.g7,allowPinchZoom:!0,shards:[a.contentRef]},(0,i.createElement)(p.WV.div,(0,r.Z)({"data-state":I(a.open)},o,{ref:t,style:{pointerEvents:"auto",...o.style}})))}),T="DialogContent",P=(0,i.forwardRef)((e,t)=>{let n=O(T,e.__scopeDialog),{forceMount:o=n.forceMount,...a}=e,s=j(T,e.__scopeDialog);return(0,i.createElement)(h.z,{present:o||s.open},s.modal?(0,i.createElement)(N,(0,r.Z)({},a,{ref:t})):(0,i.createElement)(R,(0,r.Z)({},a,{ref:t})))}),N=(0,i.forwardRef)((e,t)=>{let n=j(T,e.__scopeDialog),s=(0,i.useRef)(null),l=(0,a.e)(t,n.contentRef,s);return(0,i.useEffect)(()=>{let e=s.current;if(e)return(0,g.R)(e)},[]),(0,i.createElement)(D,(0,r.Z)({},e,{ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;r&&e.preventDefault()}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault())}))}),R=(0,i.forwardRef)((e,t)=>{let n=j(T,e.__scopeDialog),o=(0,i.useRef)(!1);return(0,i.createElement)(D,(0,r.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,i;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),o.current=!1},onInteractOutside:t=>{var r,i;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current=!0);let a=t.target,s=null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(a);s&&t.preventDefault()}}))}),D=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:l,...u}=e,f=j(T,n),h=(0,i.useRef)(null),p=(0,a.e)(t,h);return(0,m.EW)(),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(d.M,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:s,onUnmountAutoFocus:l},(0,i.createElement)(c.XB,(0,r.Z)({role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":I(f.open)},u,{ref:p,onDismiss:()=>f.onOpenChange(!1)}))),!1)}),L="DialogTitle",F=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=j(L,n);return(0,i.createElement)(p.WV.h2,(0,r.Z)({id:a.titleId},o,{ref:t}))}),V=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=j("DialogDescription",n);return(0,i.createElement)(p.WV.p,(0,r.Z)({id:a.descriptionId},o,{ref:t}))}),z=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...a}=e,s=j("DialogClose",n);return(0,i.createElement)(p.WV.button,(0,r.Z)({type:"button"},a,{ref:t,onClick:(0,o.M)(e.onClick,()=>s.onOpenChange(!1))}))});function I(e){return e?"open":"closed"}let[Z,B]=(0,s.k)("DialogTitleWarning",{contentName:T,titleName:L,docsSlug:"dialog"}),H=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,c=(0,i.useRef)(null),d=(0,i.useRef)(null),[f=!1,h]=(0,u.T)({prop:r,defaultProp:o,onChange:a});return(0,i.createElement)(E,{scope:t,triggerRef:c,contentRef:d,contentId:(0,l.M)(),titleId:(0,l.M)(),descriptionId:(0,l.M)(),open:f,onOpenChange:h,onOpenToggle:(0,i.useCallback)(()=>h(e=>!e),[h]),modal:s},n)},U=k,W=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=j(S,t);return(0,i.createElement)(_,{scope:t,forceMount:n},i.Children.map(r,e=>(0,i.createElement)(h.z,{present:n||a.open},(0,i.createElement)(f.h,{asChild:!0,container:o},e))))},q=M,$=P,Y=F,G=V,X=z},83317:function(e,t,n){"use strict";let r;n.d(t,{XB:function(){return f}});var i=n(7896),o=n(2784),a=n(41816),s=n(72130),l=n(26215),u=n(86029);let c="dismissableLayer.update",d=(0,o.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=(0,o.forwardRef)((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:g,onDismiss:y,...x}=e,b=(0,o.useContext)(d),[w,E]=(0,o.useState)(null),[,j]=(0,o.useState)({}),k=(0,l.e)(t,e=>E(e)),S=Array.from(b.layers),[_]=[...b.layersWithOutsidePointerEventsDisabled].slice(-1),O=S.indexOf(_),C=w?S.indexOf(w):-1,M=b.layersWithOutsidePointerEventsDisabled.size>0,A=C>=O,T=function(e){let t=(0,u.W)(e),n=(0,o.useRef)(!1),r=(0,o.useRef)(()=>{});return(0,o.useEffect)(()=>{let e=e=>{if(e.target&&!n.current){let n={originalEvent:e};function i(){p("dismissableLayer.pointerDownOutside",t,n,{discrete:!0})}"touch"===e.pointerType?(document.removeEventListener("click",r.current),r.current=i,document.addEventListener("click",r.current,{once:!0})):i()}n.current=!1},i=window.setTimeout(()=>{document.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),document.removeEventListener("pointerdown",e),document.removeEventListener("click",r.current)}},[t]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,n=[...b.branches].some(e=>e.contains(t));!A||n||(null==m||m(e),null==g||g(e),e.defaultPrevented||null==y||y())}),P=function(e){let t=(0,u.W)(e),n=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{let e=e=>{e.target&&!n.current&&p("dismissableLayer.focusOutside",t,{originalEvent:e},{discrete:!1})};return document.addEventListener("focusin",e),()=>document.removeEventListener("focusin",e)},[t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target,n=[...b.branches].some(e=>e.contains(t));n||(null==v||v(e),null==g||g(e),e.defaultPrevented||null==y||y())});return!function(e){let t=(0,u.W)(e);(0,o.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t])}(e=>{let t=C===b.layers.size-1;t&&(null==f||f(e),!e.defaultPrevented&&y&&(e.preventDefault(),y()))}),(0,o.useEffect)(()=>{if(w)return n&&(0===b.layersWithOutsidePointerEventsDisabled.size&&(r=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),b.layersWithOutsidePointerEventsDisabled.add(w)),b.layers.add(w),h(),()=>{n&&1===b.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=r)}},[w,n,b]),(0,o.useEffect)(()=>()=>{w&&(b.layers.delete(w),b.layersWithOutsidePointerEventsDisabled.delete(w),h())},[w,b]),(0,o.useEffect)(()=>{let e=()=>j({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,o.createElement)(s.WV.div,(0,i.Z)({},x,{ref:k,style:{pointerEvents:M?A?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.M)(e.onFocusCapture,P.onFocusCapture),onBlurCapture:(0,a.M)(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:(0,a.M)(e.onPointerDownCapture,T.onPointerDownCapture)}))});function h(){let e=new CustomEvent(c);document.dispatchEvent(e)}function p(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,s.jH)(i,o):i.dispatchEvent(o)}},55070:function(e,t,n){"use strict";n.d(t,{EW:function(){return o}});var r=n(2784);let i=0;function o(){(0,r.useEffect)(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:a()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:a()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}},77334:function(e,t,n){"use strict";let r;n.d(t,{M:function(){return f}});var i=n(7896),o=n(2784),a=n(26215),s=n(72130),l=n(86029);let u="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},f=(0,o.forwardRef)((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:f,onUnmountAutoFocus:g,...y}=e,[x,b]=(0,o.useState)(null),w=(0,l.W)(f),E=(0,l.W)(g),j=(0,o.useRef)(null),k=(0,a.e)(t,e=>b(e)),S=(0,o.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,o.useEffect)(()=>{if(r){function e(e){if(S.paused||!x)return;let t=e.target;x.contains(t)?j.current=t:m(j.current,{select:!0})}function t(e){S.paused||!x||x.contains(e.relatedTarget)||m(j.current,{select:!0})}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}},[r,x,S.paused]),(0,o.useEffect)(()=>{if(x){v.add(S);let e=document.activeElement,t=x.contains(e);if(!t){let t=new CustomEvent(u,d);x.addEventListener(u,w),x.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(m(r,{select:t}),document.activeElement!==n)return}(h(x).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&m(x))}return()=>{x.removeEventListener(u,w),setTimeout(()=>{let t=new CustomEvent(c,d);x.addEventListener(c,E),x.dispatchEvent(t),t.defaultPrevented||m(null!=e?e:document.body,{select:!0}),x.removeEventListener(c,E),v.remove(S)},0)}}},[x,w,E,S]);let _=(0,o.useCallback)(e=>{if(!n&&!r||S.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,o]=function(e){let t=h(e),n=p(t,e),r=p(t.reverse(),e);return[n,r]}(t),a=r&&o;a?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&m(o,{select:!0})):(e.preventDefault(),n&&m(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,S.paused]);return(0,o.createElement)(s.WV.div,(0,i.Z)({tabIndex:-1},y,{ref:k,onKeyDown:_}))});function h(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function p(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function m(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}let v=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=g(r,e)).unshift(e)},remove(e){var t;null===(t=(r=g(r,e))[0])||void 0===t||t.resume()}});function g(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},26074:function(e,t,n){"use strict";n.d(t,{M:function(){return l}});var r,i=n(2784),o=n(64680);let a=(r||(r=n.t(i,2)))["useId".toString()]||(()=>void 0),s=0;function l(e){let[t,n]=i.useState(a());return(0,o.b)(()=>{e||n(e=>null!=e?e:String(s++))},[e]),e||(t?`radix-${t}`:"")}},6500:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(7896),i=n(2784),o=n(28316),a=n(72130);let s=(0,i.forwardRef)((e,t)=>{var n;let{container:s=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...l}=e;return s?o.createPortal((0,i.createElement)(a.WV.div,(0,r.Z)({},l,{ref:t})),s):null})},28245:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var r=n(2784),i=n(28316),o=n(26215),a=n(64680);let s=e=>{let{present:t,children:n}=e,s=function(e){var t;let[n,o]=(0,r.useState)(),s=(0,r.useRef)({}),u=(0,r.useRef)(e),c=(0,r.useRef)("none"),d=e?"mounted":"unmounted",[f,h]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,r.useReducer)((e,n)=>{let r=t[e][n];return null!=r?r:e},d));return(0,r.useEffect)(()=>{let e=l(s.current);c.current="mounted"===f?e:"none"},[f]),(0,a.b)(()=>{let t=s.current,n=u.current,r=n!==e;if(r){let r=c.current,i=l(t);e?h("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?h("UNMOUNT"):n&&r!==i?h("ANIMATION_OUT"):h("UNMOUNT"),u.current=e}},[e,h]),(0,a.b)(()=>{if(n){let e=e=>{let t=l(s.current),r=t.includes(e.animationName);e.target===n&&r&&(0,i.flushSync)(()=>h("ANIMATION_END"))},t=e=>{e.target===n&&(c.current=l(s.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}h("ANIMATION_END")},[n,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:(0,r.useCallback)(e=>{e&&(s.current=getComputedStyle(e)),o(e)},[])}}(t),u="function"==typeof n?n({present:s.isPresent}):r.Children.only(n),c=(0,o.e)(s.ref,u.ref),d="function"==typeof n;return d||s.isPresent?(0,r.cloneElement)(u,{ref:c}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}s.displayName="Presence"},72130:function(e,t,n){"use strict";n.d(t,{WV:function(){return s},jH:function(){return l}});var r=n(7896),i=n(2784),o=n(28316),a=n(99575);let s=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,i.forwardRef)((e,n)=>{let{asChild:o,...s}=e,l=o?a.g7:t;return(0,i.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,i.createElement)(l,(0,r.Z)({},s,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function l(e,t){e&&(0,o.flushSync)(()=>e.dispatchEvent(t))}},99575:function(e,t,n){"use strict";n.d(t,{A4:function(){return l},g7:function(){return a}});var r=n(7896),i=n(2784),o=n(26215);let a=(0,i.forwardRef)((e,t)=>{let{children:n,...o}=e,a=i.Children.toArray(n),l=a.find(u);if(l){let e=l.props.children,n=a.map(t=>t!==l?t:i.Children.count(e)>1?i.Children.only(null):(0,i.isValidElement)(e)?e.props.children:null);return(0,i.createElement)(s,(0,r.Z)({},o,{ref:t}),(0,i.isValidElement)(e)?(0,i.cloneElement)(e,void 0,n):null)}return(0,i.createElement)(s,(0,r.Z)({},o,{ref:t}),n)});a.displayName="Slot";let s=(0,i.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,i.isValidElement)(n)?(0,i.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r],a=/^on[A-Z]/.test(r);a?n[r]=(...e)=>{null==o||o(...e),null==i||i(...e)}:"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:(0,o.F)(t,n.ref)}):i.Children.count(n)>1?i.Children.only(null):null});s.displayName="SlotClone";let l=({children:e})=>(0,i.createElement)(i.Fragment,null,e);function u(e){return(0,i.isValidElement)(e)&&e.type===l}},86029:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(2784);function i(e){let t=(0,r.useRef)(e);return(0,r.useEffect)(()=>{t.current=e}),(0,r.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}},73597:function(e,t,n){"use strict";n.d(t,{T:function(){return o}});var r=n(2784),i=n(86029);function o({prop:e,defaultProp:t,onChange:n=()=>{}}){let[o,a]=function({defaultProp:e,onChange:t}){let n=(0,r.useState)(e),[o]=n,a=(0,r.useRef)(o),s=(0,i.W)(t);return(0,r.useEffect)(()=>{a.current!==o&&(s(o),a.current=o)},[o,a,s]),n}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:o,u=(0,i.W)(n),c=(0,r.useCallback)(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else a(t)},[s,e,a,u]);return[l,c]}},64680:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(2784);let i=(null==globalThis?void 0:globalThis.document)?r.useLayoutEffect:()=>{}},25447:function(e,t,n){"use strict";e.exports=n(44868)},99550:function(e,t,n){"use strict";e.exports=n(22360)},6901:function(e,t,n){"use strict";e.exports=n(78476)},8669:function(e,t,n){"use strict";e.exports=n(19455)},53609:function(e,t,n){"use strict";e.exports=n(96721)},81401:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.children,n=void 0===t?s.default:t,p=e.axisClassName,v=e.hideAxisLine,g=e.hideTicks,y=e.hideZero,x=void 0!==y&&y,b=e.left,w=e.numTicks,E=void 0===w?10:w,j=e.orientation,k=void 0===j?d.default.bottom:j,S=e.rangePadding,_=void 0===S?0:S,O=e.scale,C=e.tickFormat,M=e.tickLength,A=void 0===M?8:M,T=e.tickValues,P=e.top,N=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,h),R=null!=C?C:(0,u.default)(O),D=k===d.default.left,L=k===d.default.top,F=L||k===d.default.bottom,V=(0,l.default)(O),z=D||L?-1:1,I=O.range(),Z=(0,f.default)(_),B=(0,c.default)({x:Number(I[0])+.5-Z.start,y:0},F),H=(0,c.default)({x:Number(I[I.length-1])+.5+Z.end,y:0},F),U=(null!=T?T:(0,a.getTicks)(O,E)).filter(function(e){return!x||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),W=U.map(function(e){var t=e.value,n=e.index,r=(0,a.coerceNumber)(V(t));return{value:t,index:n,from:(0,c.default)({x:r,y:0},F),to:(0,c.default)({x:r,y:A*z},F),formattedValue:R(t,n,U)}});return r.default.createElement(o.Group,{className:(0,i.default)("visx-axis",p),top:void 0===P?0:P,left:void 0===b?0:b},n(m({},N,{axisFromPoint:B,axisToPoint:H,hideAxisLine:void 0!==v&&v,hideTicks:void 0!==g&&g,hideZero:x,horizontal:F,numTicks:E,orientation:k,rangePadding:_,scale:O,tickFormat:R,tickLength:A,tickPosition:V,tickSign:z,ticks:W})))},p(n(13980));var r=p(n(2784)),i=p(n(72779)),o=n(71602),a=n(63243),s=p(n(58052)),l=p(n(71387)),u=p(n(16882)),c=p(n(89591)),d=p(n(87209)),f=p(n(31863)),h=["children","axisClassName","hideAxisLine","hideTicks","hideZero","left","numTicks","orientation","rangePadding","scale","tickFormat","tickLength","tickValues","top"];function p(e){return e&&e.__esModule?e:{default:e}}function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:a.default.bottom,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))};var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:a.default.left,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.leftTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-right",t),labelOffset:void 0===n?36:n,orientation:a.default.right,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.rightTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-top",t),labelOffset:void 0===n?8:n,orientation:a.default.top,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.topTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(r=a()).done;){var s=r.value,l=Math.sqrt(Math.pow(s.x-e.x,2)+Math.pow(s.y-e.y,2));l0)?(0,i.default)(e,t):{x:(0,r.default)(e.x,null!=(o=n.xMin)?o:-1/0,null!=(a=n.xMax)?a:1/0),y:(0,r.default)(e.y,null!=(s=n.yMin)?s:-1/0,null!=(l=n.yMax)?l:1/0)}};var r=o(n(30968)),i=o(n(98929));function o(e){return e&&e.__esModule?e:{default:e}}},32722:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return(0,r.useMemo)(function(){if(!e)return[];var t=e.getCTM()||new DOMMatrix;return function(e,t,n){if(void 0===n&&(n=1),!e)return[];for(var r=[],i=e.getTotalLength(),o=0;o<=i;o+=n){var a=e.getPointAtLength(o).matrixTransform(t);r.push(a)}return r}(e,t)},[null==e?void 0:e.getTotalLength()])};var r=n(2784)},37016:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=(0,r.useState)(e),n=t[0],i=t[1],o=(0,r.useRef)(null),a=(0,r.useCallback)(function(e,t){o.current=t||null,i(e)},[i]);return(0,r.useLayoutEffect)(function(){o.current&&(o.current(n),o.current=null)},[n]),[n,a]};var r=n(2784)},65319:function(e,t,n){"use strict";n.r(t),n.d(t,{localPoint:function(){return r.Z},touchPoint:function(){return i.Z}});var r=n(91032),i=n(49833)},91032:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(49833),i=n(44321);function o(e,t){if((0,i.kK)(e)&&t)return(0,r.Z)(e,t);if((0,i.cO)(e)){var n=e.target;if(n)return(0,r.Z)(n,e)}return null}},49833:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(19067),i=n(44321);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:o({},a);if((0,i.N5)(e))return{x:e.clientX,y:e.clientY};var t=null==e?void 0:e.target,n=t&&"getBoundingClientRect"in t?t.getBoundingClientRect():null;return n?{x:n.x+n.width/2,y:n.y+n.height/2}:o({},a)}(t),s=(0,i.vZ)(e)?e.ownerSVGElement:e,l=(0,i.DY)(s)?s.getScreenCTM():null;if((0,i.r4)(s)&&l){var u=s.createSVGPoint();return u.x=n.x,u.y=n.y,u=u.matrixTransform(l.inverse()),new r.Z({x:u.x,y:u.y})}var c=e.getBoundingClientRect();return new r.Z({x:n.x-c.left-e.clientLeft,y:n.y-c.top-e.clientTop})}},44321:function(e,t,n){"use strict";function r(e){return!!e&&e instanceof Element}function i(e){return!!e&&(e instanceof SVGElement||"ownerSVGElement"in e)}function o(e){return!!e&&"createSVGPoint"in e}function a(e){return!!e&&"getScreenCTM"in e}function s(e){return!!e&&"changedTouches"in e}function l(e){return!!e&&"clientX"in e}function u(e){return!!e&&(e instanceof Event||"nativeEvent"in e&&e.nativeEvent instanceof Event)}n.d(t,{DY:function(){return a},N5:function(){return l},cO:function(){return u},kK:function(){return r},r4:function(){return o},vZ:function(){return i},z6:function(){return s}})},21516:function(e,t,n){"use strict";t.__esModule=!0,t.default=p;var r=f(n(13980)),i=f(n(2784)),o=f(n(72779)),a=f(n(47440)),s=n(71602),l=n(61305),u=n(63243),c=f(n(12345)),d=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function f(e){return e&&e.__esModule?e:{default:e}}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),_=null!=j?j:(0,u.getTicks)(r,void 0===b?10:b),O=(null!=E?E:0)+(0,c.default)(r)/2,C=_.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+O;return{index:t,from:new l.Point({x:i,y:0}),to:new l.Point({x:i,y:f})}});return i.default.createElement(s.Group,{className:(0,o.default)("visx-columns",x),top:void 0===t?0:t,left:void 0===n?0:n},k?k({lines:C}):C.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(a.default,h({key:"column-line-"+r,from:t,to:n,stroke:m,strokeWidth:g,strokeDasharray:y,style:w},S))}))}p.propTypes={tickValues:r.default.array,height:r.default.number.isRequired}},34264:function(e,t,n){"use strict";t.__esModule=!0,t.default=p;var r=f(n(13980)),i=f(n(2784)),o=f(n(72779)),a=f(n(47440)),s=n(71602),l=n(61305),u=n(63243),c=f(n(12345)),d=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function f(e){return e&&e.__esModule?e:{default:e}}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),_=null!=k?k:(0,u.getTicks)(r,void 0===w?10:w),O=(null!=j?j:0)+(0,c.default)(r)/2,C=_.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+O;return{index:t,from:new l.Point({x:0,y:i}),to:new l.Point({x:f,y:i})}});return i.default.createElement(s.Group,{className:(0,o.default)("visx-rows",x),top:void 0===t?0:t,left:void 0===n?0:n},b?b({lines:C}):C.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(a.default,h({key:"row-line-"+r,from:t,to:n,stroke:m,strokeWidth:g,strokeDasharray:y,style:E},S))}))}p.propTypes={tickValues:r.default.array,width:r.default.number.isRequired}},12345:function(e,t){"use strict";t.__esModule=!0,t.default=function(e){return"bandwidth"in e?e.bandwidth():0}},59309:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(13980),i=n.n(r),o=n(2784),a=n(72779),s=n.n(a),l=["top","left","transform","className","children","innerRef"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,l);return o.createElement("g",u({ref:c,className:s()("visx-group",i),transform:r||"translate("+(void 0===n?0:n)+", "+(void 0===t?0:t)+")"},d),a)}c.propTypes={top:i().number,left:i().number,transform:i().string,className:i().string,children:i().node,innerRef:i().oneOfType([i().string,i().func,i().object])}},71602:function(e,t,n){"use strict";n.r(t),n.d(t,{Group:function(){return r.Z}});var r=n(59309)},19067:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=function(){function e(e){var t=e.x,n=e.y;this.x=0,this.y=0,this.x=void 0===t?0:t,this.y=void 0===n?0:n}var t=e.prototype;return t.value=function(){return{x:this.x,y:this.y}},t.toArray=function(){return[this.x,this.y]},e}()},61305:function(e,t,n){"use strict";n.r(t),n.d(t,{Point:function(){return r.Z},subtractPoints:function(){return o},sumPoints:function(){return i}});var r=n(19067);function i(e,t){return new r.Z({x:e.x+t.x,y:e.y+t.y})}function o(e,t){return new r.Z({x:e.x-t.x,y:e.y-t.y})}},93125:function(e,t,n){"use strict";t.Z=function(e){var t=e.animationTrajectory,n=e.tickComponent,s=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,a),l=(0,r.useMemo)(function(){return function(e){return r.default.createElement(o.default,u({},e,{tickComponent:n,animationTrajectory:t}))}},[t,n]);return r.default.createElement(i.default,u({},s,{ticksComponent:l}))},l(n(13980));var r=function(e,t){if(!t&&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]}return r.default=e,n&&n.set(e,r),r}(n(2784)),i=l(n(81401)),o=l(n(65154)),a=["animationTrajectory","tickComponent"];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 l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a);return r.default.createElement(i.default,{scale:t,height:n,numTicks:s,tickValues:u,className:c,top:f,left:h},function(e){var n=e.lines;return r.default.createElement(o.default,l({scale:t,lines:n,animationTrajectory:d,animateXOrY:"x",lineKey:function(e){var t,n;return"column-"+(null!=(t=null==e?void 0:null==(n=e.from)?void 0:n.x)?t:"")+"-"+e.index}},p))})};var r=s(n(2784)),i=s(n(21516)),o=s(n(55727)),a=["scale","height","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),h=(0,o.useTransition)(n,u({},(0,a.default)({scale:t,animateXOrY:l,animationTrajectory:r}),{key:c}));return i.default.createElement(i.default.Fragment,null,h(function(e,t,n){var r=e.fromX,a=e.toX,s=e.fromY,l=e.toY,c=e.opacity,h=n.key;return i.default.createElement(o.animated.line,u({key:h,x1:r,x2:a,y1:s,y2:l,strokeOpacity:c,style:d},f))}))}c.propTypes={lineKey:r.default.func.isRequired}},93353:function(e,t,n){"use strict";t.Z=function(e){var t=e.scale,n=e.width,s=e.numTicks,u=e.tickValues,c=(e.offset,e.className),d=e.animationTrajectory,f=e.top,h=e.left,p=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,a);return r.default.createElement(i.default,{scale:t,width:n,numTicks:s,tickValues:u,className:c,top:f,left:h},function(e){var n=e.lines;return r.default.createElement(o.default,l({scale:t,lines:n,animationTrajectory:d,animateXOrY:"y",lineKey:function(e){var t,n;return"row-"+(null!=(t=null==e?void 0:null==(n=e.from)?void 0:n.y)?t:"")+"-"+e.index}},p))})};var r=s(n(2784)),i=s(n(34264)),o=s(n(55727)),a=["scale","width","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),g=(0,o.useRef)(null),y=(0,o.useRef)(0),x=(0,o.useState)({width:0,height:0,top:0,left:0}),b=x[0],w=x[1],E=(0,o.useMemo)(function(){var e=Array.isArray(f)?f:[f];return(0,i.default)(function(t){w(function(n){return Object.keys(n).filter(function(e){return n[e]!==t[e]}).every(function(t){return e.includes(t)})?n:t})},l,{leading:m})},[l,m,f]);return(0,o.useEffect)(function(){var e=new a.ResizeObserver(function(e){void 0===e&&(e=[]),e.forEach(function(e){var t=e.contentRect,n=t.left,r=t.top,i=t.width,o=t.height;y.current=window.requestAnimationFrame(function(){E({width:i,height:o,top:r,left:n})})})});return g.current&&e.observe(g.current),function(){window.cancelAnimationFrame(y.current),e.disconnect(),null!=E&&E.cancel&&E.cancel()}},[E]),o.default.createElement("div",c({style:void 0===h?{width:"100%",height:"100%"}:h,ref:g,className:t},v),n(c({},b,{ref:g.current,resize:E})))}f.propTypes={className:r.default.string,debounceTime:r.default.number,enableDebounceLeadingCall:r.default.bool,ignoreDimensions:r.default.oneOfType([r.default.any,r.default.arrayOf(r.default.any)]),children:r.default.func.isRequired}},2663:function(e,t,n){"use strict";var r=n(8597),i=n(12430),o=n(70590),a=n(50630),s=n(34278),l=n(64183),u=n(61662),c=n(43634),d=n(73335),f=n(54229),h=n(30558),p=n(71646),m=n(26587);t.Z=function(e){if(void 0!==e&&"type"in e)switch(e.type){case"linear":break;case"log":return(0,i.Z)(e);case"pow":return(0,o.Z)(e);case"sqrt":return(0,a.Z)(e);case"symlog":return(0,s.Z)(e);case"time":return(0,l.Z)(e);case"utc":return(0,u.Z)(e);case"quantile":return(0,c.Z)(e);case"quantize":return(0,d.Z)(e);case"threshold":return(0,f.Z)(e);case"ordinal":return(0,h.Z)(e);case"point":return(0,p.Z)(e);case"band":return(0,m.Z)(e)}return(0,r.Z)(e)}},63243:function(e,t,n){"use strict";n.r(t),n.d(t,{coerceNumber:function(){return S.Z},createScale:function(){return b.Z},getTicks:function(){return _.Z},inferScaleType:function(){return k},scaleBand:function(){return r.Z},scaleCanBeZeroed:function(){return C.Z},scaleLinear:function(){return o.Z},scaleLog:function(){return f.Z},scaleOrdinal:function(){return p.Z},scalePoint:function(){return i.Z},scalePower:function(){return h.Z},scaleQuantile:function(){return v.Z},scaleQuantize:function(){return m.Z},scaleRadial:function(){return u},scaleSqrt:function(){return x.Z},scaleSymlog:function(){return g.Z},scaleThreshold:function(){return y.Z},scaleTime:function(){return c.Z},scaleUtc:function(){return d.Z},toString:function(){return O.Z},updateScale:function(){return E}});var r=n(26587),i=n(71646),o=n(8597),a=n(19637),s=n(25176),l=(0,s.Z)("domain","range","clamp","nice","round","unknown");function u(e){return l((0,a.Z)(),e)}var c=n(64183),d=n(61662),f=n(12430),h=n(70590),p=n(30558),m=n(73335),v=n(43634),g=n(34278),y=n(54229),x=n(50630),b=n(2663),w=s.Z.apply(void 0,s.a),E=function(e,t){return w(e.copy(),t)},j=n(40668);function k(e){return"paddingInner"in e?"band":"padding"in e?"point":"quantiles"in e?"quantile":"base"in e?"log":"exponent"in e?.5===e.exponent()?"sqrt":"pow":"constant"in e?"symlog":"clamp"in e?e.ticks()[0]instanceof Date?(0,j.Z)(e)?"utc":"time":"linear":"nice"in e?"quantize":"invertExtent"in e?"threshold":"ordinal"}var S=n(28142),_=n(71220),O=n(51519),C=n(34636)},25176:function(e,t,n){"use strict";n.d(t,{a:function(){return _},Z:function(){return C}});var r=n(88751),i=n(87286),o=n(43780),a=n(77636),s=n(78978),l={lab:r.Z,hcl:i.Z,"hcl-long":i.b,hsl:o.Z,"hsl-long":o.q,cubehelix:a.Z,"cubehelix-long":a.B,rgb:s.ZP},u=n(68603),c=n(54076),d=n(18450),f=n(50690),h=n(52546),p=n(76231),m=n(97344),v=n(12370),g=n(28239),y=n(52004),x=n(94758),b=n(97631),w=n(2908),E=n(40668),j={day:u.Z,hour:c.Z,minute:d.Z,month:f.Z,second:h.Z,week:p.OM,year:m.Z},k={day:v.Z,hour:g.Z,minute:y.Z,month:x.Z,second:h.Z,week:b.Ox,year:w.Z},S=n(74672),_=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],O={domain:function(e,t){t.domain&&e.domain(t.domain)},nice:function(e,t){if("nice"in t&&void 0!==t.nice&&"nice"in e){var n=t.nice;if("boolean"==typeof n)n&&e.nice();else if("number"==typeof n)e.nice(n);else{var r=(0,E.Z)(e);if("string"==typeof n)e.nice(r?k[n]:j[n]);else{var i=n.interval,o=n.step,a=(r?k[i]:j[i]).every(o);null!=a&&e.nice(a)}}}},zero:function(e,t){if("zero"in t&&!0===t.zero){var n=e.domain(),r=n[0],i=n[1],o=i=0||(i[n]=e[n]);return i}(e,s),y=(0,a.Nb)({innerRadius:i,outerRadius:u,cornerRadius:c,startAngle:d,endAngle:f,padAngle:h,padRadius:p});return m?r.createElement(r.Fragment,null,m({path:y})):n||null!=d&&null!=f&&null!=i&&null!=u?r.createElement("path",l({ref:v,className:o()("visx-arc",t),d:y(n)||""},g)):(console.warn("[@visx/shape/Arc]: expected data because one of startAngle, endAngle, innerRadius, outerRadius is undefined. Bailing."),null)}var c=n(59309),d=["className","top","left","data","centroid","innerRadius","outerRadius","cornerRadius","startAngle","endAngle","padAngle","padRadius","pieSort","pieSortValues","pieValue","children","fill"];function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),_=(0,a.Nb)({innerRadius:void 0===u?0:u,outerRadius:h,cornerRadius:p,padRadius:y}),O=(0,a.ve)({startAngle:m,endAngle:v,padAngle:g,value:w,sort:x,sortValues:b}),C=O(void 0===s?[]:s);return E?r.createElement(r.Fragment,null,E({arcs:C,path:_,pie:O})):r.createElement(c.Z,{className:"visx-pie-arcs-group",top:n,left:i},C.map(function(e,n){return r.createElement("g",{key:"pie-arc-"+n},r.createElement("path",f({className:o()("visx-pie-arc",t),d:_(e)||"",fill:null==k||"string"==typeof k?k:k(e)},S)),null==l?void 0:l(_.centroid(e),e))}))}var p=n(63739),m=n(27079),v=["className","angle","radius","defined","curve","data","innerRef","children","fill"];function g(){return(g=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,v),m=(0,a.aJ)({angle:n,radius:i,defined:s,curve:l});return f?r.createElement(r.Fragment,null,f({path:m})):r.createElement("path",g({ref:d,className:o()("visx-line-radial",t),d:m(c)||"",fill:void 0===h?"transparent":h},p))}var x=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function b(){return(b=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,x),y=(0,a.SO)({x:n,x0:i,x1:s,y:l,y0:u,y1:c,defined:void 0===h?function(){return!0}:h,curve:m});return t?r.createElement(r.Fragment,null,t({path:y})):r.createElement("path",b({ref:v,className:o()("visx-area",p),d:y(f)||""},g))}var E=n(55746),j=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function k(){return(k=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,j),S=(0,a.kn)({keys:s,value:g,order:y,offset:x}),_=(0,a.SO)({x:f,x0:h,x1:p,y0:m,y1:v,curve:u,defined:d}),O=S(l);return w?r.createElement(r.Fragment,null,w({stacks:O,path:_,stack:S})):r.createElement(c.Z,{top:n,left:i},O.map(function(e,n){return r.createElement("path",k({className:o()("visx-stack",t),key:"stack-"+n+"-"+(e.key||""),d:_(e)||"",fill:null==b?void 0:b(e.key,n)},E))}))}var _=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function O(){return(O=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,_);return r.createElement(S,O({className:t,top:n,left:i,keys:a,data:s,curve:l,defined:u,x:c,x0:d,x1:f,y0:h,y1:p,value:m,order:v,offset:g,color:y},b),x||function(e){var n=e.stacks,i=e.path;return n.map(function(e,n){return r.createElement("path",O({className:o()("visx-area-stack",t),key:"area-stack-"+n+"-"+(e.key||""),d:i(e)||"",fill:null==y?void 0:y(e.key,n)},b))})})}var M=n(14582),A=n(10897);function T(e){if("bandwidth"in e)return e.bandwidth();var t=e.range(),n=e.domain();return Math.abs(t[t.length-1]-t[0])/n.length}var P=["data","className","top","left","x0","x0Scale","x1Scale","yScale","color","keys","height","children"];function N(){return(N=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,P),g=T(u),y=t.map(function(e,t){return{index:t,x0:l(s(e)),bars:h.map(function(t,n){var r=e[t];return{index:n,key:t,value:r,width:g,x:u(t)||0,y:d(r)||0,color:f(t,n),height:p-(d(r)||0)}})}});return m?r.createElement(r.Fragment,null,m(y)):r.createElement(c.Z,{className:o()("visx-bar-group",n),top:i,left:a},y.map(function(e){return r.createElement(c.Z,{key:"bar-group-"+e.index+"-"+e.x0,left:e.x0},e.bars.map(function(t){return r.createElement(M.Z,N({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},v))}))}))}var D=["data","className","top","left","x","y0","y0Scale","y1Scale","xScale","color","keys","width","children"];function L(){return(L=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,D),y=T(f),x=t.map(function(e,t){return{index:t,y0:d(u(e))||0,bars:m.map(function(t,n){var r=e[t];return{index:n,key:t,value:r,height:y,x:l(r)||0,y:f(t)||0,color:p(t,n),width:h(r)||0}})}});return v?r.createElement(r.Fragment,null,v(x)):r.createElement(c.Z,{className:o()("visx-bar-group-horizontal",n),top:i,left:a},x.map(function(e){return r.createElement(c.Z,{key:"bar-group-"+e.index+"-"+e.y0,top:e.y0},e.bars.map(function(t){return r.createElement(M.Z,L({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},g))}))}))}var V=n(98926);function z(e){return"number"==typeof(null==e?void 0:e.x)?null==e?void 0:e.x:0}function I(e){return"number"==typeof(null==e?void 0:e.y)?null==e?void 0:e.y:0}function Z(e){return null==e?void 0:e.source}function B(e){return null==e?void 0:e.target}function H(e){return null==e?void 0:e[0]}function U(e){return null==e?void 0:e[1]}var W=n(26078),q=n(44081),$=n(30382),Y=["data","className","top","left","x","y0","y1","xScale","yScale","color","keys","value","order","offset","children"];function G(){return(G=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Y),E=(0,V.Z)();v&&E.keys(v),g&&(0,W.Z)(E.value,g),y&&E.order((0,q.ZP)(y)),x&&E.offset((0,$.ZP)(x));var j=E(t),k=T(h),S=j.map(function(e,t){var n=e.key;return{index:t,key:n,bars:e.map(function(t,r){var i=(p(u(t))||0)-(p(f(t))||0),o=p(f(t)),a="bandwidth"in h?h(s(t.data)):Math.max((h(s(t.data))||0)-k/2);return{bar:t,key:n,index:r,height:i,width:k,x:a||0,y:o||0,color:m(e.key,r)}})}});return b?r.createElement(r.Fragment,null,b(S)):r.createElement(c.Z,{className:o()("visx-bar-stack",n),top:i,left:a},S.map(function(e){return e.bars.map(function(t){return r.createElement(M.Z,G({key:"bar-stack-"+e.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},w))})}))}var K=["data","className","top","left","y","x0","x1","xScale","yScale","color","keys","value","order","offset","children"];function Q(){return(Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,K),E=(0,V.Z)();v&&E.keys(v),g&&(0,W.Z)(E.value,g),y&&E.order((0,q.ZP)(y)),x&&E.offset((0,$.ZP)(x));var j=E(t),k=T(p),S=j.map(function(e,t){var n=e.key;return{index:t,key:n,bars:e.map(function(t,r){var i=(h(f(t))||0)-(h(u(t))||0),o=h(u(t)),a="bandwidth"in p?p(s(t.data)):Math.max((p(s(t.data))||0)-i/2);return{bar:t,key:n,index:r,height:k,width:i,x:o||0,y:a||0,color:m(e.key,r)}})}});return b?r.createElement(r.Fragment,null,b(S)):r.createElement(c.Z,{className:o()("visx-bar-stack-horizontal",n),top:i,left:a},S.map(function(e){return e.bars.map(function(t){return r.createElement(M.Z,Q({key:"bar-stack-"+e.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},w))})}))}var ee=function(e){return Math.PI/180*e},et=n(72215),en=["className","children","data","innerRef","path","x","y","source","target"];function er(){return(er=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,en),h=s||ei({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?I:l,y:void 0===u?z:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",er({ref:a,className:o()("visx-link visx-link-horizontal-diagonal",t),d:h(i)||""},f))}var ea=["className","children","data","innerRef","path","x","y","source","target"];function es(){return(es=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ea),h=s||el({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?z:l,y:void 0===u?I:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",es({ref:a,className:o()("visx-link visx-link-vertical-diagonal",t),d:h(i)||""},f))}var ec=["className","children","data","innerRef","path","angle","radius","source","target"];function ed(){return(ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ec),h=s||ef({source:void 0===c?Z:c,target:void 0===d?B:d,angle:void 0===l?z:l,radius:void 0===u?I:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",ed({ref:a,className:o()("visx-link visx-link-radial-diagonal",t),d:h(i)||""},f))}var ep=n(91672),em=["className","children","data","innerRef","path","percent","x","y","source","target"];function ev(){return(ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,em),p=s||eg({source:void 0===d?Z:d,target:void 0===f?B:f,x:void 0===u?I:u,y:void 0===c?z:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",ev({ref:a,className:o()("visx-link visx-link-horizontal-curve",t),d:p(i)||""},h))}var ex=["className","children","data","innerRef","path","percent","x","y","source","target"];function eb(){return(eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ex),p=s||ew({source:void 0===d?Z:d,target:void 0===f?B:f,x:void 0===u?z:u,y:void 0===c?I:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",eb({ref:a,className:o()("visx-link visx-link-vertical-curve",t),d:p(i)||""},h))}var ej=["className","children","data","innerRef","path","percent","x","y","source","target"];function ek(){return(ek=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ej),p=s||eS({source:void 0===d?Z:d,target:void 0===f?B:f,x:void 0===u?z:u,y:void 0===c?I:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",ek({ref:a,className:o()("visx-link visx-link-radial-curve",t),d:p(i)||""},h))}var eO=["className","children","innerRef","data","path","x","y","source","target"];function eC(){return(eC=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eO),h=s||eM({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?I:l,y:void 0===u?z:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",eC({ref:i,className:o()("visx-link visx-link-horizontal-line",t),d:h(a)||""},f))}var eT=["className","innerRef","data","path","x","y","source","target","children"];function eP(){return(eP=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eT),h=a||eN({source:void 0===u?Z:u,target:void 0===c?B:c,x:void 0===s?z:s,y:void 0===l?I:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eP({ref:n,className:o()("visx-link visx-link-vertical-line",t),d:h(i)||""},f))}var eD=["className","innerRef","data","path","x","y","source","target","children"];function eL(){return(eL=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eD),h=a||eF({source:void 0===u?Z:u,target:void 0===c?B:c,x:void 0===s?z:s,y:void 0===l?I:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eL({ref:n,className:o()("visx-link visx-link-radial-line",t),d:h(i)||""},f))}var ez=["className","innerRef","data","path","percent","x","y","source","target","children"];function eI(){return(eI=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ez),p=a||eZ({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?I:l,y:void 0===u?z:u,percent:void 0===s?.5:s});return f?r.createElement(r.Fragment,null,f({path:p})):r.createElement("path",eI({ref:n,className:o()("visx-link visx-link-horizontal-step",t),d:p(i)||""},h))}var eH=["className","innerRef","data","path","percent","x","y","source","target","children"];function eU(){return(eU=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eH),p=a||eW({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?z:l,y:void 0===u?I:u,percent:void 0===s?.5:s});return f?r.createElement(r.Fragment,null,f({path:p})):r.createElement("path",eU({ref:n,className:o()("visx-link visx-link-vertical-step",t),d:p(i)||""},h))}var e$=["className","innerRef","data","path","x","y","source","target","children"];function eY(){return(eY=Object.assign?Object.assign.bind():function(e){for(var t=1;tMath.PI?f<=d:f>d)?1:0)+","+l*h+","+l*p+"\n L"+c*h+","+c*p+"\n "}}function eX(e){var t=e.className,n=e.innerRef,i=e.data,a=e.path,s=e.x,l=e.y,u=e.source,c=e.target,d=e.children,f=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,e$),h=a||eG({source:void 0===u?Z:u,target:void 0===c?B:c,x:void 0===s?z:s,y:void 0===l?I:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eY({ref:n,className:o()("visx-link visx-link-radial-step",t),d:h(i)||""},f))}var eK=["sides","size","center","rotate","className","children","innerRef","points"];function eQ(){return(eQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eK),f=c||e1({sides:void 0===t?4:t,size:void 0===n?25:n,center:void 0===i?eJ:i,rotate:void 0===a?0:a}).map(function(e){return[e.x,e.y]});return l?r.createElement(r.Fragment,null,l({points:f})):r.createElement("polygon",eQ({ref:u,className:o()("visx-polygon",s),points:f.join(" ")},d))}var e4=["className","innerRef"];function e3(){return(e3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,e4);return r.createElement("circle",e3({ref:n,className:o()("visx-circle",t)},i))}var e6=n(13980),e8=n.n(e6),e7="http://www.w3.org/2000/svg",e9=function(){return!0};function te(){return(te=Object.assign?Object.assign.bind():function(e){for(var t=1;tf[i]?d.map(function(e){return void 0===e?e9:function(t){return t>=e}}):d.map(function(e){return void 0===e?e9:function(t){return t<=e}}),p=0,m=0;m<=l;m+=a){for(var v=s.getPointAtLength(m),g=v[i];p=w[k+1];)k+=1;c[k].push(_)}}return c}catch(e){return[]}}({path:p,segmentation:s,pointsInSegments:h,sampleRate:l})},[p,s,h,l]);return r.createElement("g",null,v.map(function(e,i){return t?r.createElement(r.Fragment,{key:i},t({index:i,segment:e,styles:f[i]||f[i%f.length]})):r.createElement(m.Z,te({key:i,className:n,data:e,x:tt,y:tn},f[i]||f[i%f.length]))}))}tr.propTypes={segments:e8().arrayOf(e8().array).isRequired,styles:e8().array.isRequired,children:e8().func,className:e8().string}},55746:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(2784),i=n(72779),o=n.n(i),a=n(26078),s=n(52511),l=["x","x0","x1","y","y1","y0","yScale","data","defined","className","curve","innerRef","children"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,l),E=(0,s.SO)({x:t,x0:n,x1:i,defined:void 0===v?function(){return!0}:v,curve:y});return(null==f?E.y0(h.range()[0]):(0,a.Z)(E.y0,f),c&&!d&&(0,a.Z)(E.y1,c),d&&!c&&(0,a.Z)(E.y1,d),b)?r.createElement(r.Fragment,null,b({path:E})):r.createElement("path",u({ref:x,className:o()("visx-area-closed",g),d:E(m)||""},w))}},14582:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["className","innerRef"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a);return r.createElement("rect",s({ref:n,className:o()("visx-bar",t)},i))}},10897:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["children","className","innerRef","x","y","width","height","radius","all","top","bottom","left","right","topLeft","topRight","bottomLeft","bottomRight"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a),z=(n=(t={x:k,y:S,width:_,height:O,radius:C,all:void 0!==M&&M,top:void 0!==A&&A,bottom:void 0!==T&&T,left:void 0!==P&&P,right:void 0!==N&&N,topLeft:void 0!==R&&R,topRight:void 0!==D&&D,bottomLeft:void 0!==L&&L,bottomRight:void 0!==F&&F}).all,i=t.bottom,l=t.bottomLeft,u=t.bottomRight,c=t.height,d=t.left,f=t.radius,h=t.right,p=t.top,m=t.topLeft,v=t.topRight,g=t.width,y=t.x,x=t.y,v=n||p||h||v,u=n||i||h||u,l=n||i||d||l,m=n||p||d||m,b=2*(f=Math.max(1,Math.min(f,Math.min(g,c)/2))),("M"+(y+f)+","+x+" h"+(g-b)+"\n "+(v?"a"+f+","+f+" 0 0 1 "+f+","+f:"h"+f+"v"+f)+"\n v"+(c-b)+"\n "+(u?"a"+f+","+f+" 0 0 1 "+-f+","+f:"v"+f+"h"+-f)+"\n h"+(b-g)+"\n "+(l?"a"+f+","+f+" 0 0 1 "+-f+","+-f:"h"+-f+"v"+-f)+"\n v"+(b-c)+"\n "+(m?"a"+f+","+f+" 0 0 1 "+f+","+-f:"v"+-f+"h"+f)+"\nz").split("\n").join(""));return w?r.createElement(r.Fragment,null,w({path:z})):r.createElement("path",s({ref:j,className:o()("visx-bar-rounded",E),d:z},V))}},63739:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["from","to","fill","className","innerRef"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a),h=n.x===l.x||n.y===l.y;return r.createElement("line",s({ref:d,className:o()("visx-line",c),x1:n.x,y1:n.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))}},27079:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(2784),i=n(72779),o=n.n(i),a=n(52511),s=["children","data","x","y","fill","className","curve","innerRef","defined"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),g=(0,a.jv)({x:u,y:c,defined:void 0===m?function(){return!0}:m,curve:h});return t?r.createElement(r.Fragment,null,t({path:g})):r.createElement("path",l({ref:p,className:o()("visx-linepath",f),d:g(i)||"",fill:void 0===d?"transparent":d,strokeLinecap:"round"},v))}},52511:function(e,t,n){"use strict";n.d(t,{Nb:function(){return f},SO:function(){return h},aJ:function(){return v},jv:function(){return p},kn:function(){return g},ve:function(){return m}});var r=n(38764),i=n(12235),o=n(79767),a=n(69619),s=n(8329),l=n(98926),u=n(26078),c=n(44081),d=n(30382);function f(e){var t=void 0===e?{}:e,n=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.startAngle,s=t.endAngle,l=t.padAngle,c=t.padRadius,d=(0,r.Z)();return null!=n&&(0,u.Z)(d.innerRadius,n),null!=i&&(0,u.Z)(d.outerRadius,i),null!=o&&(0,u.Z)(d.cornerRadius,o),null!=a&&(0,u.Z)(d.startAngle,a),null!=s&&(0,u.Z)(d.endAngle,s),null!=l&&(0,u.Z)(d.padAngle,l),null!=c&&(0,u.Z)(d.padRadius,c),d}function h(e){var t=void 0===e?{}:e,n=t.x,r=t.x0,o=t.x1,a=t.y,s=t.y0,l=t.y1,c=t.defined,d=t.curve,f=(0,i.Z)();return n&&(0,u.Z)(f.x,n),r&&(0,u.Z)(f.x0,r),o&&(0,u.Z)(f.x1,o),a&&(0,u.Z)(f.y,a),s&&(0,u.Z)(f.y0,s),l&&(0,u.Z)(f.y1,l),c&&f.defined(c),d&&f.curve(d),f}function p(e){var t=void 0===e?{}:e,n=t.x,r=t.y,i=t.defined,a=t.curve,s=(0,o.Z)();return n&&(0,u.Z)(s.x,n),r&&(0,u.Z)(s.y,r),i&&s.defined(i),a&&s.curve(a),s}function m(e){var t=void 0===e?{}:e,n=t.startAngle,r=t.endAngle,i=t.padAngle,o=t.value,s=t.sort,l=t.sortValues,c=(0,a.Z)();return null===s?c.sort(s):null!=s&&c.sort(s),null===l?c.sortValues(l):null!=l&&c.sortValues(l),null!=o&&c.value(o),null!=i&&(0,u.Z)(c.padAngle,i),null!=n&&(0,u.Z)(c.startAngle,n),null!=r&&(0,u.Z)(c.endAngle,r),c}function v(e){var t=void 0===e?{}:e,n=t.angle,r=t.radius,i=t.defined,o=t.curve,a=(0,s.Z)();return n&&(0,u.Z)(a.angle,n),r&&(0,u.Z)(a.radius,r),i&&a.defined(i),o&&a.curve(o),a}function g(e){var t=e.keys,n=e.value,r=e.order,i=e.offset,o=(0,l.Z)();return t&&o.keys(t),n&&(0,u.Z)(o.value,n),r&&o.order((0,c.ZP)(r)),i&&o.offset((0,d.ZP)(i)),o}},26078:function(e,t,n){"use strict";function r(e,t){e(t)}n.d(t,{Z:function(){return r}})},30382:function(e,t,n){"use strict";n.d(t,{ZP:function(){return c},ed:function(){return u},nW:function(){return l}});var r=n(22254),i=n(76751),o=n(90541),a=n(36538),s=n(34928),l={expand:r.Z,diverging:i.Z,none:o.Z,silhouette:a.Z,wiggle:s.Z},u=Object.keys(l);function c(e){return e&&l[e]||l.none}},44081:function(e,t,n){"use strict";n.d(t,{ZP:function(){return c},s2:function(){return u},un:function(){return l}});var r=n(19721),i=n(82564),o=n(12197),a=n(81182),s=n(40277),l={ascending:r.Z,descending:i.Z,insideout:o.Z,none:a.Z,reverse:s.Z},u=Object.keys(l);function c(e){return e&&l[e]||l.none}},12935:function(e,t,n){"use strict";t.Z=function(e){var t=e.children,n=e.x,s=e.x0,u=e.x1,c=e.y,d=e.y0,f=e.y1,h=e.data,p=void 0===h?[]:h,m=e.defined,v=e.className,g=e.curve,y=e.innerRef,x=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,a),b=(0,o.area)({x:n,x0:s,x1:u,y:c,y0:d,y1:f,defined:void 0===m?function(){return!0}:m,curve:g});return t?r.default.createElement(r.default.Fragment,null,t({path:b})):r.default.createElement("path",l({ref:y,className:(0,i.default)("visx-area",v),d:b(p)||""},x))};var r=s(n(2784)),i=s(n(72779)),o=n(15601),a=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o),h=n.x===l.x||n.y===l.y;return r.default.createElement("line",s({ref:d,className:(0,i.default)("visx-line",c),x1:n.x,y1:n.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))};var r=a(n(2784)),i=a(n(72779)),o=["from","to","fill","className","innerRef"];function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a),g=(0,o.line)({x:u,y:c,defined:void 0===m?function(){return!0}:m,curve:h});return t?r.default.createElement(r.default.Fragment,null,t({path:g})):r.default.createElement("path",l({ref:p,className:(0,i.default)("visx-linepath",f),d:g(s)||"",fill:void 0===d?"transparent":d,strokeLinecap:"round"},v))};var r=s(n(2784)),i=s(n(72779)),o=n(15601),a=["children","data","x","y","fill","className","curve","innerRef","defined"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o)),p=h.x,m=void 0===p?0:p,v=h.fontSize,g=(0,i.Z)(e),y=g.wordsByLines,x=g.startDy,b=g.transform;return r.createElement("svg",{ref:u,x:void 0===t?0:t,y:void 0===n?0:n,fontSize:v,style:s},y.length>0?r.createElement("text",a({ref:c,transform:b},h,{textAnchor:void 0===l?"start":l}),y.map(function(e,t){return r.createElement("tspan",{key:t,x:m,dy:0===t?x:f},e.words.join(" "))})):null)}},89907:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(2784),i=n(32718),o=n.n(i),a=n(75715),s=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function l(e){return"number"==typeof e}function u(e){return"number"==typeof e&&Number.isFinite(e)||"string"==typeof e}function c(e){var t=e.verticalAnchor,n=void 0===t?"end":t,i=e.scaleToFit,c=void 0!==i&&i,d=e.angle,f=e.width,h=e.lineHeight,p=void 0===h?"1em":h,m=e.capHeight,v=void 0===m?"0.71em":m,g=e.children,y=e.style,x=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,s),b=x.x,w=void 0===b?0:b,E=x.y,j=void 0===E?0:E,k=!u(w)||!u(j),S=(0,r.useMemo)(function(){return{wordsWithWidth:(null==g?[]:g.toString().split(/(?:(?!\u00A0+)\s+)/)).map(function(e){return{word:e,wordWidth:(0,a.Z)(e,y)||0}}),spaceWidth:(0,a.Z)("\xa0",y)||0}},[g,y]),_=S.wordsWithWidth,O=S.spaceWidth,C=(0,r.useMemo)(function(){return k?[]:f||c?_.reduce(function(e,t){var n=t.word,r=t.wordWidth,i=e[e.length-1];return i&&(null==f||c||(i.width||0)+r+O0){var t=C[0].width||1,n="shrink-only"===c?Math.min(f/t,1):f/t,r=w-n*w,i=j-n*j;e.push("matrix("+n+", 0, 0, "+n+", "+r+", "+i+")")}return d&&e.push("rotate("+d+", "+w+", "+j+")"),e.length>0?e.join(" "):""},[k,w,j,f,c,C,d]);return{wordsByLines:C,startDy:M,transform:A}}},44425:function(e,t,n){"use strict";n.r(t),n.d(t,{Text:function(){return r.Z},getStringWidth:function(){return i.Z},useText:function(){return o.Z}});var r=n(64170),i=n(75715),o=n(89907)},75715:function(e,t,n){"use strict";var r=n(30733),i=n.n(r),o="__react_svg_text_measurement_id";t.Z=i()(function(e,t){try{var n=document.getElementById(o);if(!n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("aria-hidden","true"),r.style.width="0",r.style.height="0",r.style.position="absolute",r.style.top="-100%",r.style.left="-100%",(n=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("id",o),r.appendChild(n),document.body.appendChild(r)}return Object.assign(n.style,t),n.textContent=e,n.getComputedTextLength()}catch(e){return null}},function(e,t){return e+"_"+JSON.stringify(t)})},49732:function(e,t,n){"use strict";n.d(t,{R:function(){return s}});var r=new WeakMap,i=new WeakMap,o={},a=0,s=function(e,t,n){void 0===t&&(t="undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body),void 0===n&&(n="data-aria-hidden");var s=Array.isArray(e)?e:[e];o[n]||(o[n]=new WeakMap);var l=o[n],u=[],c=new Set,d=function(e){!e||c.has(e)||(c.add(e),d(e.parentNode))};s.forEach(d);var f=function(e){!e||s.indexOf(e)>=0||Array.prototype.forEach.call(e.children,function(e){if(c.has(e))f(e);else{var t=e.getAttribute("aria-hidden"),o=null!==t&&"false"!==t,a=(r.get(e)||0)+1,s=(l.get(e)||0)+1;r.set(e,a),l.set(e,s),u.push(e),1===a&&o&&i.set(e,!0),1===s&&e.setAttribute(n,"true"),o||e.setAttribute("aria-hidden","true")}})};return f(t),c.clear(),a++,function(){u.forEach(function(e){var t=r.get(e)-1,o=l.get(e)-1;r.set(e,t),l.set(e,o),t||(i.has(e)||e.removeAttribute("aria-hidden"),i.delete(e)),o||e.removeAttribute(n)}),--a||(r=new WeakMap,r=new WeakMap,i=new WeakMap,o={})}}},89644:function(e,t,n){e.exports=n(25644)},70353:function(e,t,n){"use strict";var r=n(93044),i=n(86955),o=n(92233),a=n(68030),s=n(97948),l=n(51875),u=n(60842),c=n(98560),d=n(21218),f=n(68047),h=n(10738);e.exports=function(e){return new Promise(function(t,n){var p,m=e.data,v=e.headers,g=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(m)&&r.isStandardBrowserEnv()&&delete v["Content-Type"];var x=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(b+":"+w)}var E=s(e.baseURL,e.url);function j(){if(x){var r="getAllResponseHeaders"in x?l(x.getAllResponseHeaders()):null;i(function(e){t(e),y()},function(e){n(e),y()},{data:g&&"text"!==g&&"json"!==g?x.response:x.responseText,status:x.status,statusText:x.statusText,headers:r,config:e,request:x}),x=null}}if(x.open(e.method.toUpperCase(),a(E,e.params,e.paramsSerializer),!0),x.timeout=e.timeout,"onloadend"in x?x.onloadend=j:x.onreadystatechange=function(){x&&4===x.readyState&&(0!==x.status||x.responseURL&&0===x.responseURL.indexOf("file:"))&&setTimeout(j)},x.onabort=function(){x&&(n(new d("Request aborted",d.ECONNABORTED,e,x)),x=null)},x.onerror=function(){n(new d("Network Error",d.ERR_NETWORK,e,x,x)),x=null},x.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new d(t,r.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,x)),x=null},r.isStandardBrowserEnv()){var k=(e.withCredentials||u(E))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;k&&(v[e.xsrfHeaderName]=k)}"setRequestHeader"in x&&r.forEach(v,function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete v[t]:x.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(x.withCredentials=!!e.withCredentials),g&&"json"!==g&&(x.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&x.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&x.upload&&x.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){x&&(n(!e||e&&e.type?new f:e),x.abort(),x=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),m||(m=null);var S=h(E);if(S&&-1===["http","https","file"].indexOf(S)){n(new d("Unsupported protocol "+S+":",d.ERR_BAD_REQUEST,e));return}x.send(m)})}},25644:function(e,t,n){"use strict";var r=n(93044),i=n(73644),o=n(62215),a=n(92937),s=function e(t){var n=new o(t),s=i(o.prototype.request,n);return r.extend(s,o.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(10663));s.Axios=o,s.CanceledError=n(68047),s.CancelToken=n(34089),s.isCancel=n(98041),s.VERSION=n(29241).version,s.toFormData=n(49027),s.AxiosError=n(21218),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(70783),s.isAxiosError=n(65587),e.exports=s,e.exports.default=s},34089:function(e,t,n){"use strict";var r=n(68047);function i(e){if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});var t,n=this;this.promise.then(function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],function(e){f.headers[e]={}}),o.forEach(["post","put","patch"],function(e){f.headers[e]=o.merge(c)}),e.exports=f},98560:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},29241:function(e){e.exports={version:"0.27.2"}},73644:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=Array(arguments.length),r=0;r=0)&&("set-cookie"===t?a[t]=(a[t]?a[t]:[]).concat([n]):a[t]=a[t]?a[t]+", "+n:n)}),a}},10738:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},70783:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},49027:function(e,t,n){"use strict";var r=n(48834).lW,i=n(93044);e.exports=function(e,t){t=t||new FormData;var n=[];function o(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):r.from(e):e}return!function e(r,a){if(i.isPlainObject(r)||i.isArray(r)){if(-1!==n.indexOf(r))throw Error("Circular reference detected in "+a);n.push(r),i.forEach(r,function(n,r){if(!i.isUndefined(n)){var s,l=a?a+"."+r:r;if(n&&!a&&"object"==typeof n){if(i.endsWith(r,"{}"))n=JSON.stringify(n);else if(i.endsWith(r,"[]")&&(s=i.toArray(n))){s.forEach(function(e){i.isUndefined(e)||t.append(l,o(e))});return}}e(n,l)}}),n.pop()}else t.append(a,o(r))}(e),t}},17525:function(e,t,n){"use strict";var r=n(29241).version,i=n(21218),o={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var a={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new i(o(r," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var a=r[o],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new i("option "+a+" must be "+u,i.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new i("Unknown option "+a,i.ERR_BAD_OPTION)}},validators:o}},93044:function(e,t,n){"use strict";var r,i,o=n(73644),a=Object.prototype.toString,s=(r=Object.create(null),function(e){var t=a.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function l(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function u(e){return Array.isArray(e)}function c(e){return void 0===e}var d=l("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function h(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=l("Date"),m=l("File"),v=l("Blob"),g=l("FileList");function y(e){return"[object Function]"===a.call(e)}var x=l("URLSearchParams");function b(e,t){if(null!=e){if("object"!=typeof e&&(e=[e]),u(e))for(var n=0,r=e.length;n0;)a[o=r[i]]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:l,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return -1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:g}},82294:function(e){"use strict";function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var o=r(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,o,a,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){if(e===t)return[l,u];for(r=[],o=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(s=[o,a])}return s}e.exports=t,t.range=r},95766:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,o=l(e),a=o[0],s=o[1],u=new i((a+s)*3/4-s),c=0,d=s>0?a-4:a;for(n=0;n>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;a>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&o.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},6391:function(e,t,n){var r;!function(i){"use strict";var o,a=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,l=Math.floor,u="[BigNumber Error] ",c=u+"Number primitive has more than 15 significant digits: ",d=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function f(e){var t=0|e;return e>0||e===t?t:t-1}function h(e){for(var t,n,r=1,i=e.length,o=e[0]+"";ru^n?1:-1;for(a=0,s=(l=i.length)<(u=o.length)?l:u;ao[a]^n?1:-1;return l==u?0:l>u^n?1:-1}function m(e,t,n,r){if(en||e!==l(e))throw Error(u+(r||"Argument")+("number"==typeof e?en?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function v(e){var t=e.c.length-1;return f(e.e/14)==t&&e.c[t]%2!=0}function g(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function y(e,t,n){var r,i;if(t<0){for(i=n+".";++t;i+=n);e=i+e}else if(r=e.length,++t>r){for(i=n,t-=r;--t;i+=n);e+=i}else tT?h.c=h.e=null:e.e=10;s/=10,o++);o>T?h.c=h.e=null:(h.e=o,h.c=[e]);return}f=String(e)}else{if(!a.test(f=String(e)))return j(h,f,u);h.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(o=f.indexOf("."))>-1&&(f=f.replace(".","")),(s=f.search(/e/i))>0?(o<0&&(o=s),o+=+f.slice(s+1),f=f.substring(0,s)):o<0&&(o=f.length)}else{if(m(t,2,L.length,"Base"),10==t&&F)return B(h=new V(e),_+h.e+1,O);if(f=String(e),u="number"==typeof e){if(0*e!=0)return j(h,f,u,t);if(h.s=1/e<0?(f=f.slice(1),-1):1,V.DEBUG&&f.replace(/^0\.0*|\./,"").length>15)throw Error(c+e)}else h.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(n=L.slice(0,t),o=s=0,d=f.length;sn.indexOf(r=f.charAt(s))){if("."==r){if(s>o){o=d;continue}}else if(!i&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){i=!0,s=-1,o=0;continue}return j(h,String(e),u,t)}u=!1,(o=(f=E(f,t,10,h.s)).indexOf("."))>-1?f=f.replace(".",""):o=f.length}for(s=0;48===f.charCodeAt(s);s++);for(d=f.length;48===f.charCodeAt(--d););if(f=f.slice(s,++d)){if(d-=s,u&&V.DEBUG&&d>15&&(e>9007199254740991||e!==l(e)))throw Error(c+h.s*e);if((o=o-s-1)>T)h.c=h.e=null;else if(o=M)?g(l,a):y(l,a,"0");else if(o=(e=B(new V(e),t,n)).e,s=(l=h(e.c)).length,1==r||2==r&&(t<=o||o<=C)){for(;ss){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=o-s)>0)for(o+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function I(e,t){for(var n,r=1,i=new V(e[0]);r=10;i/=10,r++);return(n=r+14*n-1)>T?e.c=e.e=null:n=10;u/=10,i++);if((o=t-i)<0)o+=14,a=t,h=(c=p[f=0])/d[i-a-1]%10|0;else if((f=s((o+1)/14))>=p.length){if(r){for(;p.length<=f;p.push(0));c=h=0,i=1,o%=14,a=o-14+1}else break e}else{for(i=1,c=u=p[f];u>=10;u/=10,i++);o%=14,h=(a=o-14+i)<0?0:c/d[i-a-1]%10|0}if(r=r||t<0||null!=p[f+1]||(a<0?c:c%d[i-a-1]),r=n<4?(h||r)&&(0==n||n==(e.s<0?3:2)):h>5||5==h&&(4==n||r||6==n&&(o>0?a>0?c/d[i-a]:0:p[f-1])%10&1||n==(e.s<0?8:7)),t<1||!p[0])return p.length=0,r?(t-=e.e+1,p[0]=d[(14-t%14)%14],e.e=-t||0):p[0]=e.e=0,e;if(0==o?(p.length=f,u=1,f--):(p.length=f+1,u=d[14-o],p[f]=a>0?l(c/d[i-a]%d[a])*u:0),r)for(;;){if(0==f){for(o=1,a=p[0];a>=10;a/=10,o++);for(a=p[0]+=u,u=1;a>=10;a/=10,u++);o!=u&&(e.e++,1e14==p[0]&&(p[0]=1));break}if(p[f]+=u,1e14!=p[f])break;p[f--]=0,u=1}for(o=p.length;0===p[--o];p.pop());}e.e>T?e.c=e.e=null:e.e=M?g(t,n):y(t,n,"0"),e.s<0?"-"+t:t)}return V.clone=e,V.ROUND_UP=0,V.ROUND_DOWN=1,V.ROUND_CEIL=2,V.ROUND_FLOOR=3,V.ROUND_HALF_UP=4,V.ROUND_HALF_DOWN=5,V.ROUND_HALF_EVEN=6,V.ROUND_HALF_CEIL=7,V.ROUND_HALF_FLOOR=8,V.EUCLID=9,V.config=V.set=function(e){var t,n;if(null!=e){if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(m(n=e[t],0,1e9,t),_=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(m(n=e[t],0,8,t),O=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(m(n[0],-1e9,0,t),m(n[1],0,1e9,t),C=n[0],M=n[1]):(m(n,-1e9,1e9,t),C=-(M=n<0?-n:n))),e.hasOwnProperty(t="RANGE")){if((n=e[t])&&n.pop)m(n[0],-1e9,-1,t),m(n[1],1,1e9,t),A=n[0],T=n[1];else if(m(n,-1e9,1e9,t),n)A=-(T=n<0?-n:n);else throw Error(u+t+" cannot be zero: "+n)}if(e.hasOwnProperty(t="CRYPTO")){if(!!(n=e[t])===n){if(n){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))P=n;else throw P=!n,Error(u+"crypto unavailable")}else P=n}else throw Error(u+t+" not true or false: "+n)}if(e.hasOwnProperty(t="MODULO_MODE")&&(m(n=e[t],0,9,t),N=n),e.hasOwnProperty(t="POW_PRECISION")&&(m(n=e[t],0,1e9,t),R=n),e.hasOwnProperty(t="FORMAT")){if("object"==typeof(n=e[t]))D=n;else throw Error(u+t+" not an object: "+n)}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(u+t+" invalid: "+n);F="0123456789"==n.slice(0,10),L=n}}else throw Error(u+"Object expected: "+e)}return{DECIMAL_PLACES:_,ROUNDING_MODE:O,EXPONENTIAL_AT:[C,M],RANGE:[A,T],CRYPTO:P,MODULO_MODE:N,POW_PRECISION:R,FORMAT:D,ALPHABET:L}},V.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!V.DEBUG)return!0;var t,n,r=e.c,i=e.e,o=e.s;e:if("[object Array]"==({}).toString.call(r)){if((1===o||-1===o)&&i>=-1e9&&i<=1e9&&i===l(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break e}if((t=(i+1)%14)<1&&(t+=14),String(r[0]).length==t){for(t=0;t=1e14||n!==l(n))break e;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(u+"Invalid BigNumber: "+e)},V.maximum=V.max=function(){return I(arguments,k.lt)},V.minimum=V.min=function(){return I(arguments,k.gt)},V.random=(n=9007199254740992*Math.random()&2097151?function(){return l(9007199254740992*Math.random())}:function(){return(1073741824*Math.random()|0)*8388608+(8388608*Math.random()|0)},function(e){var t,r,i,o,a,c=0,f=[],h=new V(S);if(null==e?e=_:m(e,0,1e9),o=s(e/14),P){if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));c>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[c]=r[0],t[c+1]=r[1]):(f.push(a%1e14),c+=2);c=o/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(o*=7);c=9e15?crypto.randomBytes(7).copy(t,c):(f.push(a%1e14),c+=7);c=o/7}else throw P=!1,Error(u+"crypto unavailable")}if(!P)for(;c=10;a/=10,c++);c<14&&(i-=14-c)}return h.e=i,h.c=f,h}),V.sum=function(){for(var e=1,t=arguments,n=new V(t[0]);en-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}return function(n,r,i,o,a){var s,l,u,c,d,f,p,m,v=n.indexOf("."),g=_,x=O;for(v>=0&&(c=R,R=0,n=n.replace(".",""),f=(m=new V(r)).pow(n.length-v),R=c,m.c=t(y(h(f.c),f.e,"0"),10,i,e),m.e=m.c.length),u=c=(p=t(n,r,i,a?(s=L,e):(s=e,L))).length;0==p[--c];p.pop());if(!p[0])return s.charAt(0);if(v<0?--u:(f.c=p,f.e=u,f.s=o,p=(f=w(f,m,g,x,i)).c,d=f.r,u=f.e),v=p[l=u+g+1],c=i/2,d=d||l<0||null!=p[l+1],d=x<4?(null!=v||d)&&(0==x||x==(f.s<0?3:2)):v>c||v==c&&(4==x||d||6==x&&1&p[l-1]||x==(f.s<0?8:7)),l<1||!p[0])n=d?y(s.charAt(1),-g,s.charAt(0)):s.charAt(0);else{if(p.length=l,d)for(--i;++p[--l]>i;)p[l]=0,l||(++u,p=[1].concat(p));for(c=p.length;!p[--c];);for(v=0,n="";v<=c;n+=s.charAt(p[v++]));n=y(n,u,s.charAt(0))}return n}}(),w=function(){function e(e,t,n){var r,i,o,a,s=0,l=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();l--;)r=c*(o=e[l]%1e7)+(a=e[l]/1e7|0)*u,s=((i=u*o+r%1e7*1e7+s)/n|0)+(r/1e7|0)+c*a,e[l]=i%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;it[i]?1:-1;break}return o}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]1;e.splice(0,1));}return function(r,i,o,a,s){var u,c,d,h,p,m,v,g,y,x,b,w,E,j,k,S,_,O=r.s==i.s?1:-1,C=r.c,M=i.c;if(!C||!C[0]||!M||!M[0])return new V(r.s&&i.s&&(C?!M||C[0]!=M[0]:M)?C&&0==C[0]||!M?0*O:O/0:NaN);for(y=(g=new V(O)).c=[],O=o+(c=r.e-i.e)+1,s||(s=1e14,c=f(r.e/14)-f(i.e/14),O=O/14|0),d=0;M[d]==(C[d]||0);d++);if(M[d]>(C[d]||0)&&c--,O<0)y.push(1),h=!0;else{for(j=C.length,S=M.length,d=0,O+=2,(p=l(s/(M[0]+1)))>1&&(M=e(M,p,s),C=e(C,p,s),S=M.length,j=C.length),E=S,b=(x=C.slice(0,S)).length;b=s/2&&k++;do{if(p=0,(u=t(M,x,S,b))<0){if(w=x[0],S!=b&&(w=w*s+(x[1]||0)),(p=l(w/k))>1)for(p>=s&&(p=s-1),v=(m=e(M,p,s)).length,b=x.length;1==t(m,x,v,b);)p--,n(m,St(M,x,S,b);)p++,n(x,S=10;O/=10,d++);B(g,o+(g.e=d+14*c-1)+1,a,h)}else g.e=c,g.r=+h;return g}}(),r=/^(-?)0([xbo])(?=\w[\w.]*$)/i,i=/^([^.]+)\.$/,o=/^\.([^.]+)$/,x=/^-?(Infinity|NaN)$/,b=/^\s*\+(?=[\w.])|^\s+|\s+$/g,j=function(e,t,n,a){var s,l=n?t:t.replace(b,"");if(x.test(l))e.s=isNaN(l)?null:l<0?-1:1;else{if(!n&&(l=l.replace(r,function(e,t,n){return s="x"==(n=n.toLowerCase())?16:"b"==n?2:8,a&&a!=s?e:t}),a&&(s=a,l=l.replace(i,"$1").replace(o,"0.$1")),t!=l))return new V(l,s);if(V.DEBUG)throw Error(u+"Not a"+(a?" base "+a:"")+" number: "+t);e.s=null}e.c=e.e=null},k.absoluteValue=k.abs=function(){var e=new V(this);return e.s<0&&(e.s=1),e},k.comparedTo=function(e,t){return p(this,new V(e,t))},k.decimalPlaces=k.dp=function(e,t){var n,r,i;if(null!=e)return m(e,0,1e9),null==t?t=O:m(t,0,8),B(new V(this),e+this.e+1,t);if(!(n=this.c))return null;if(r=((i=n.length-1)-f(this.e/14))*14,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},k.dividedBy=k.div=function(e,t){return w(this,new V(e,t),_,O)},k.dividedToIntegerBy=k.idiv=function(e,t){return w(this,new V(e,t),0,1)},k.exponentiatedBy=k.pow=function(e,t){var n,r,i,o,a,c,d,f,h,p=this;if((e=new V(e)).c&&!e.isInteger())throw Error(u+"Exponent not an integer: "+H(e));if(null!=t&&(t=new V(t)),c=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return h=new V(Math.pow(+H(p),c?2-v(e):+H(e))),t?h.mod(t):h;if(d=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new V(NaN);(r=!d&&p.isInteger()&&t.isInteger())&&(p=p.mod(t))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||c&&p.c[1]>=24e7:p.c[0]<8e13||c&&p.c[0]<=9999975e7)))return o=p.s<0&&v(e)?-0:0,p.e>-1&&(o=1/o),new V(d?1/o:o);R&&(o=s(R/14+2))}for(c?(n=new V(.5),d&&(e.s=1),f=v(e)):f=(i=Math.abs(+H(e)))%2,h=new V(S);;){if(f){if(!(h=h.times(p)).c)break;o?h.c.length>o&&(h.c.length=o):r&&(h=h.mod(t))}if(i){if(0===(i=l(i/2)))break;f=i%2}else if(B(e=e.times(n),e.e+1,1),e.e>14)f=v(e);else{if(0==(i=+H(e)))break;f=i%2}p=p.times(p),o?p.c&&p.c.length>o&&(p.c.length=o):r&&(p=p.mod(t))}return r?h:(d&&(h=S.div(h)),t?h.mod(t):o?B(h,R,O,a):h)},k.integerValue=function(e){var t=new V(this);return null==e?e=O:m(e,0,8),B(t,t.e+1,e)},k.isEqualTo=k.eq=function(e,t){return 0===p(this,new V(e,t))},k.isFinite=function(){return!!this.c},k.isGreaterThan=k.gt=function(e,t){return p(this,new V(e,t))>0},k.isGreaterThanOrEqualTo=k.gte=function(e,t){return 1===(t=p(this,new V(e,t)))||0===t},k.isInteger=function(){return!!this.c&&f(this.e/14)>this.c.length-2},k.isLessThan=k.lt=function(e,t){return 0>p(this,new V(e,t))},k.isLessThanOrEqualTo=k.lte=function(e,t){return -1===(t=p(this,new V(e,t)))||0===t},k.isNaN=function(){return!this.s},k.isNegative=function(){return this.s<0},k.isPositive=function(){return this.s>0},k.isZero=function(){return!!this.c&&0==this.c[0]},k.minus=function(e,t){var n,r,i,o,a=this.s;if(t=(e=new V(e,t)).s,!a||!t)return new V(NaN);if(a!=t)return e.s=-t,this.plus(e);var s=this.e/14,l=e.e/14,u=this.c,c=e.c;if(!s||!l){if(!u||!c)return u?(e.s=-t,e):new V(c?this:NaN);if(!u[0]||!c[0])return c[0]?(e.s=-t,e):new V(u[0]?this:3==O?-0:0)}if(s=f(s),l=f(l),u=u.slice(),a=s-l){for((o=a<0)?(a=-a,i=u):(l=s,i=c),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(r=(o=(a=u.length)<(t=c.length))?a:t,a=t=0;t0)for(;t--;u[n++]=0);for(t=1e14-1;r>a;){if(u[--r]=0;){for(n=0,h=g[i]%1e7,p=g[i]/1e7|0,o=i+(a=l);o>i;)s=p*(u=v[--a]%1e7)+(c=v[a]/1e7|0)*h,n=((u=h*u+s%1e7*1e7+m[o]+n)/1e14|0)+(s/1e7|0)+p*c,m[o--]=u%1e14;m[o]=n}return n?++r:m.splice(0,1),Z(e,m,r)},k.negated=function(){var e=new V(this);return e.s=-e.s||null,e},k.plus=function(e,t){var n,r=this.s;if(t=(e=new V(e,t)).s,!r||!t)return new V(NaN);if(r!=t)return e.s=-t,this.minus(e);var i=this.e/14,o=e.e/14,a=this.c,s=e.c;if(!i||!o){if(!a||!s)return new V(r/0);if(!a[0]||!s[0])return s[0]?e:new V(a[0]?this:0*r)}if(i=f(i),o=f(o),a=a.slice(),r=i-o){for(r>0?(o=i,n=s):(r=-r,n=a),n.reverse();r--;n.push(0));n.reverse()}for((r=a.length)-(t=s.length)<0&&(n=s,s=a,a=n,t=r),r=0;t;)r=(a[--t]=a[t]+s[t]+r)/1e14|0,a[t]=1e14===a[t]?0:a[t]%1e14;return r&&(a=[r].concat(a),++o),Z(e,a,o)},k.precision=k.sd=function(e,t){var n,r,i;if(null!=e&&!!e!==e)return m(e,1,1e9),null==t?t=O:m(t,0,8),B(new V(this),e,t);if(!(n=this.c))return null;if(r=14*(i=n.length-1)+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return e&&this.e+1>r&&(r=this.e+1),r},k.shiftedBy=function(e){return m(e,-9007199254740991,9007199254740991),this.times("1e"+e)},k.squareRoot=k.sqrt=function(){var e,t,n,r,i,o=this.c,a=this.s,s=this.e,l=_+4,u=new V("0.5");if(1!==a||!o||!o[0])return new V(!a||a<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(a=Math.sqrt(+H(this)))||a==1/0?(((t=h(o)).length+s)%2==0&&(t+="0"),a=Math.sqrt(+t),s=f((s+1)/2)-(s<0||s%2),t=a==1/0?"5e"+s:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+s,n=new V(t)):n=new V(a+""),n.c[0]){for((a=(s=n.e)+l)<3&&(a=0);;)if(i=n,n=u.times(i.plus(w(this,i,l,1))),h(i.c).slice(0,a)===(t=h(n.c)).slice(0,a)){if(n.e0&&p>0){for(i=p%a||a,c=h.substr(0,i);i0&&(c+=l+h.slice(i)),f&&(c="-"+c)}r=d?c+(n.decimalSeparator||"")+((s=+n.fractionGroupSize)?d.replace(RegExp("\\d{"+s+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):d):c}return(n.prefix||"")+r+(n.suffix||"")},k.toFraction=function(e){var t,n,r,i,o,a,s,l,c,f,p,m,v=this.c;if(null!=e&&(!(s=new V(e)).isInteger()&&(s.c||1!==s.s)||s.lt(S)))throw Error(u+"Argument "+(s.isInteger()?"out of range: ":"not an integer: ")+H(s));if(!v)return new V(this);for(t=new V(S),c=n=new V(S),r=l=new V(S),m=h(v),o=t.e=m.length-this.e-1,t.c[0]=d[(a=o%14)<0?14+a:a],e=!e||s.comparedTo(t)>0?o>0?t:c:s,a=T,T=1/0,s=new V(m),l.c[0]=0;f=w(s,t,0,1),1!=(i=n.plus(f.times(r))).comparedTo(e);)n=r,r=i,c=l.plus(f.times(i=c)),l=i,t=s.minus(f.times(i=t)),s=i;return i=w(e.minus(n),r,0,1),l=l.plus(i.times(c)),n=n.plus(i.times(r)),l.s=c.s=this.s,o*=2,p=1>w(c,r,o,O).minus(this).abs().comparedTo(w(l,n,o,O).minus(this).abs())?[c,r]:[l,n],T=a,p},k.toNumber=function(){return+H(this)},k.toPrecision=function(e,t){return null!=e&&m(e,1,1e9),z(this,e,t,2)},k.toString=function(e){var t,n=this,r=n.s,i=n.e;return null===i?r?(t="Infinity",r<0&&(t="-"+t)):t="NaN":(null==e?t=i<=C||i>=M?g(h(n.c),i):y(h(n.c),i,"0"):10===e&&F?t=y(h((n=B(new V(n),_+i+1,O)).c),n.e,"0"):(m(e,2,L.length,"Base"),t=E(y(h(n.c),i,"0"),10,e,r,!0)),r<0&&n.c[0]&&(t="-"+t)),t},k.valueOf=k.toJSON=function(){return H(this)},k._isBigNumber=!0,null!=t&&V.set(t),V}()).default=o.BigNumber=o,void 0!==(r=(function(){return o}).call(t,n,t,e))&&(e.exports=r)}(0)},70651:function(e,t,n){let r=n(7967);function i(e,t,n){let r=e[t]+e[n],i=e[t+1]+e[n+1];r>=4294967296&&i++,e[t]=r,e[t+1]=i}function o(e,t,n,r){let i=e[t]+n;n<0&&(i+=4294967296);let o=e[t+1]+r;i>=4294967296&&o++,e[t]=i,e[t+1]=o}function a(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function s(e,t,n,r,a,s){let l=d[a],u=d[a+1],f=d[s],h=d[s+1];i(c,e,t),o(c,e,l,u);let p=c[r]^c[e],m=c[r+1]^c[e+1];c[r]=m,c[r+1]=p,i(c,n,r),p=c[t]^c[n],m=c[t+1]^c[n+1],c[t]=p>>>24^m<<8,c[t+1]=m>>>24^p<<8,i(c,e,t),o(c,e,f,h),p=c[r]^c[e],m=c[r+1]^c[e+1],c[r]=p>>>16^m<<16,c[r+1]=m>>>16^p<<16,i(c,n,r),p=c[t]^c[n],m=c[t+1]^c[n+1],c[t]=m>>>31^p<<1,c[t+1]=p>>>31^m<<1}let l=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),u=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map(function(e){return 2*e})),c=new Uint32Array(32),d=new Uint32Array(32);function f(e,t){let n=0;for(n=0;n<16;n++)c[n]=e.h[n],c[n+16]=l[n];for(c[24]=c[24]^e.t,c[25]=c[25]^e.t/4294967296,t&&(c[28]=~c[28],c[29]=~c[29]),n=0;n<32;n++)d[n]=a(e.b,4*n);for(n=0;n<12;n++)s(0,8,16,24,u[16*n+0],u[16*n+1]),s(2,10,18,26,u[16*n+2],u[16*n+3]),s(4,12,20,28,u[16*n+4],u[16*n+5]),s(6,14,22,30,u[16*n+6],u[16*n+7]),s(0,10,20,30,u[16*n+8],u[16*n+9]),s(2,12,22,24,u[16*n+10],u[16*n+11]),s(4,14,16,26,u[16*n+12],u[16*n+13]),s(6,8,18,28,u[16*n+14],u[16*n+15]);for(n=0;n<16;n++)e.h[n]=e.h[n]^c[n]^c[n+16]}let h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function p(e,t,n,r){if(0===e||e>64)throw Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(n&&16!==n.length)throw Error("Illegal salt, expected Uint8Array with length is 16");if(r&&16!==r.length)throw Error("Illegal personal, expected Uint8Array with length is 16");let i={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e};h.fill(0),h[0]=e,t&&(h[1]=t.length),h[2]=1,h[3]=1,n&&h.set(n,32),r&&h.set(r,48);for(let e=0;e<16;e++)i.h[e]=l[e]^a(h,4*e);return t&&(m(i,t),i.c=128),i}function m(e,t){for(let n=0;n>2]>>8*(3&n);return t}function g(e,t,n,i,o){n=n||64,e=r.normalizeInput(e),i&&(i=r.normalizeInput(i)),o&&(o=r.normalizeInput(o));let a=p(n,t,i,o);return m(a,e),v(a)}e.exports={blake2b:g,blake2bHex:function(e,t,n,i,o){let a=g(e,t,n,i,o);return r.toHex(a)},blake2bInit:p,blake2bUpdate:m,blake2bFinal:v}},39962:function(e,t,n){let r=n(7967);function i(e,t,n,r,i,a){l[e]=l[e]+l[t]+i,l[r]=o(l[r]^l[e],16),l[n]=l[n]+l[r],l[t]=o(l[t]^l[n],12),l[e]=l[e]+l[t]+a,l[r]=o(l[r]^l[e],8),l[n]=l[n]+l[r],l[t]=o(l[t]^l[n],7)}function o(e,t){return e>>>t^e<<32-t}let a=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),s=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),l=new Uint32Array(16),u=new Uint32Array(16);function c(e,t){let n=0;for(n=0;n<8;n++)l[n]=e.h[n],l[n+8]=a[n];for(l[12]^=e.t,l[13]^=e.t/4294967296,t&&(l[14]=~l[14]),n=0;n<16;n++){var r,o;u[n]=(r=e.b)[o=4*n]^r[o+1]<<8^r[o+2]<<16^r[o+3]<<24}for(n=0;n<10;n++)i(0,4,8,12,u[s[16*n+0]],u[s[16*n+1]]),i(1,5,9,13,u[s[16*n+2]],u[s[16*n+3]]),i(2,6,10,14,u[s[16*n+4]],u[s[16*n+5]]),i(3,7,11,15,u[s[16*n+6]],u[s[16*n+7]]),i(0,5,10,15,u[s[16*n+8]],u[s[16*n+9]]),i(1,6,11,12,u[s[16*n+10]],u[s[16*n+11]]),i(2,7,8,13,u[s[16*n+12]],u[s[16*n+13]]),i(3,4,9,14,u[s[16*n+14]],u[s[16*n+15]]);for(n=0;n<8;n++)e.h[n]^=l[n]^l[n+8]}function d(e,t){if(!(e>0&&e<=32))throw Error("Incorrect output length, should be in [1, 32]");let n=t?t.length:0;if(t&&!(n>0&&n<=32))throw Error("Incorrect key length, should be in [1, 32]");let r={h:new Uint32Array(a),b:new Uint8Array(64),c:0,t:0,outlen:e};return r.h[0]^=16842752^n<<8^e,n>0&&(f(r,t),r.c=64),r}function f(e,t){for(let n=0;n>2]>>8*(3&n)&255;return t}function p(e,t,n){n=n||32,e=r.normalizeInput(e);let i=d(n,t);return f(i,e),h(i)}e.exports={blake2s:p,blake2sHex:function(e,t,n){let i=p(e,t,n);return r.toHex(i)},blake2sInit:d,blake2sUpdate:f,blake2sFinal:h}},81395:function(e,t,n){let r=n(70651),i=n(39962);e.exports={blake2b:r.blake2b,blake2bHex:r.blake2bHex,blake2bInit:r.blake2bInit,blake2bUpdate:r.blake2bUpdate,blake2bFinal:r.blake2bFinal,blake2s:i.blake2s,blake2sHex:i.blake2sHex,blake2sInit:i.blake2sInit,blake2sUpdate:i.blake2sUpdate,blake2sFinal:i.blake2sFinal}},7967:function(e){function t(e){return(4294967296+e).toString(16).substring(1)}e.exports={normalizeInput:function(e){let t;if(e instanceof Uint8Array)t=e;else if("string"==typeof e){let n=new TextEncoder;t=n.encode(e)}else throw Error("Input must be an string, Buffer or Uint8Array");return t},toHex:function(e){return Array.prototype.map.call(e,function(e){return(e<16?"0":"")+e.toString(16)}).join("")},debugPrint:function(e,n,r){let i="\n"+e+" = ";for(let o=0;o - * @license MIT - */var r=n(95766),i=n(62333),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|p(e,t),r=a(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(M(e,Uint8Array)){var t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(M(e,ArrayBuffer)||e&&M(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(M(e,SharedArrayBuffer)||e&&M(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);var i=function(e){if(s.isBuffer(e)){var t,n=0|h(e.length),r=a(n);return 0===r.length||e.copy(r,0,0,n),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|h(e))}function d(e){for(var t=e.length<0?0:0|h(e.length),n=a(t),r=0;r=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||M(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return _(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return O(e).length;default:if(i)return r?-1:_(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){var i,o,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(o=n=+n)!=o&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var d=!0,f=0;f239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;rn)throw RangeError("Trying to access beyond buffer length")}function w(e,t,n,r,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function E(e,t,n,r,i,o){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function j(e,t,n,r,o){return t=+t,n>>>=0,o||E(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function k(e,t,n,r,o){return t=+t,n>>>=0,o||E(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.lW=s,t.h2=50,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),M(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);ir.length?s.from(o).copy(r,i):Uint8Array.prototype.set.call(r,o,i);else if(s.isBuffer(o))o.copy(r,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return r},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tn&&(e+=" ... "),""},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,l=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n),d=0;d>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,l,u,c,d,f=this.length-t;if((void 0===n||n>f)&&(n=f),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var h=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a=0;a>8,i.push(n%256),i.push(r);return i}(e,this.length-c),this,c,d);default:if(h)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],i=1,o=0;++o>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=1,a=0;for(this[t]=255&e;++a>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=n-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return k(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return k(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!i){if(n>56319||a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function O(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function C(e,t,n,r){for(var i=0;i=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function M(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var A=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},72779:function(e,t){var n;/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t=0;)(u=e(r,i,o,a,h+1,l+1))>p&&(h===s?u*=1:t.test(r.charAt(h-1))?(u*=.9,(d=r.slice(s,h-1).match(n))&&s>0&&(u*=Math.pow(.999,d.length))):(t.test(r.slice(s,h-1))?u*=0:u*=.3,s>0&&(u*=Math.pow(.999,h-s))),r.charAt(h)!==i.charAt(l)&&(u*=.9999)),u<.1&&o.charAt(h-1)===a.charAt(l+1)&&o.charAt(h-1)!==a.charAt(l)&&.1*(c=e(r,i,o,a,h+1,l+2))>u&&(u=.1*c),u>p&&(p=u),h=o.indexOf(f,h+1);return p}(e,r,e.toLowerCase(),r.toLowerCase(),0,0)}},68847:function(e,t,n){"use strict";n.d(t,{B8:function(){return k},Il:function(){return i},J5:function(){return a},SU:function(){return j},Ss:function(){return S},Ym:function(){return T},ZP:function(){return b},xV:function(){return o}});var r=n(40948);function i(){}var o=.7,a=1.4285714285714286,s="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,d=RegExp("^rgb\\("+[s,s,s]+"\\)$"),f=RegExp("^rgb\\("+[u,u,u]+"\\)$"),h=RegExp("^rgba\\("+[s,s,s,l]+"\\)$"),p=RegExp("^rgba\\("+[u,u,u,l]+"\\)$"),m=RegExp("^hsl\\("+[l,u,u]+"\\)$"),v=RegExp("^hsla\\("+[l,u,u,l]+"\\)$"),g={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(){return this.rgb().formatHex()}function x(){return this.rgb().formatRgb()}function b(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=c.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?w(t):3===n?new S(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?E(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?E(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=d.exec(e))?new S(t[1],t[2],t[3],1):(t=f.exec(e))?new S(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=h.exec(e))?E(t[1],t[2],t[3],t[4]):(t=p.exec(e))?E(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=m.exec(e))?M(t[1],t[2]/100,t[3]/100,1):(t=v.exec(e))?M(t[1],t[2]/100,t[3]/100,t[4]):g.hasOwnProperty(e)?w(g[e]):"transparent"===e?new S(NaN,NaN,NaN,0):null}function w(e){return new S(e>>16&255,e>>8&255,255&e,1)}function E(e,t,n,r){return r<=0&&(e=t=n=NaN),new S(e,t,n,r)}function j(e){return(e instanceof i||(e=b(e)),e)?(e=e.rgb(),new S(e.r,e.g,e.b,e.opacity)):new S}function k(e,t,n,r){return 1==arguments.length?j(e):new S(e,t,n,null==r?1:r)}function S(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function _(){return"#"+C(this.r)+C(this.g)+C(this.b)}function O(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function C(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function M(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new P(e,t,n,r)}function A(e){if(e instanceof P)return new P(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=b(e)),!e)return new P;if(e instanceof P)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=NaN,l=a-o,u=(a+o)/2;return l?(s=t===a?(n-r)/l+(n0&&u<1?0:s,new P(s,l,u,e.opacity)}function T(e,t,n,r){return 1==arguments.length?A(e):new P(e,t,n,null==r?1:r)}function P(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function N(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}(0,r.Z)(i,b,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return A(this).formatHsl()},formatRgb:x,toString:x}),(0,r.Z)(S,k,(0,r.l)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:_,formatHex:_,formatRgb:O,toString:O})),(0,r.Z)(P,T,(0,r.l)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new P(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new P(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new S(N(e>=240?e-240:e+120,i,r),N(e,i,r),N(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},40948:function(e,t,n){"use strict";function r(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function i(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}n.d(t,{Z:function(){return r},l:function(){return i}})},20966:function(e,t,n){"use strict";n.d(t,{Uc:function(){return g},ZP:function(){return d}});var r=n(40948),i=n(68847),o=n(10810),a=4/29,s=6/29,l=3*(6/29)*(6/29),u=6/29*(6/29)*(6/29);function c(e){if(e instanceof f)return new f(e.l,e.a,e.b,e.opacity);if(e instanceof y)return x(e);e instanceof i.Ss||(e=(0,i.SU)(e));var t,n,r=v(e.r),o=v(e.g),a=v(e.b),s=h((.2225045*r+.7168786*o+.0606169*a)/1);return r===o&&o===a?t=n=s:(t=h((.4360747*r+.3850649*o+.1430804*a)/.96422),n=h((.0139322*r+.0971045*o+.7141733*a)/.82521)),new f(116*s-16,500*(t-s),200*(s-n),e.opacity)}function d(e,t,n,r){return 1==arguments.length?c(e):new f(e,t,n,null==r?1:r)}function f(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function h(e){return e>u?Math.pow(e,1/3):e/l+a}function p(e){return e>s?e*e*e:l*(e-a)}function m(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function v(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function g(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof y)return new y(e.h,e.c,e.l,e.opacity);if(e instanceof f||(e=c(e)),0===e.a&&0===e.b)return new y(NaN,0i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}var d={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:u.Z,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>c(100*e,t),r:c,s:function(e,t){var n=(0,u.V)(e,t);if(!n)return e+"";var i=n[0],o=n[1],a=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+Array(1-a).join("0")+(0,u.V)(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function f(e){return e}var h=Array.prototype.map,p=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];o=(i=function(e){var t,n,i,o=void 0===e.grouping||void 0===e.thousands?f:(t=h.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),a=void 0===e.currency?"":e.currency[0]+"",u=void 0===e.currency?"":e.currency[1]+"",c=void 0===e.decimal?".":e.decimal+"",m=void 0===e.numerals?f:(i=h.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return i[+e]})}),v=void 0===e.percent?"%":e.percent+"",g=void 0===e.minus?"−":e.minus+"",y=void 0===e.nan?"NaN":e.nan+"";function x(e){var t=(e=(0,l.Z)(e)).fill,n=e.align,i=e.sign,s=e.symbol,f=e.zero,h=e.width,x=e.comma,b=e.precision,w=e.trim,E=e.type;"n"===E?(x=!0,E="g"):d[E]||(void 0===b&&(b=12),w=!0,E="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var j="$"===s?a:"#"===s&&/[boxX]/.test(E)?"0"+E.toLowerCase():"",k="$"===s?u:/[%p]/.test(E)?v:"",S=d[E],_=/[defgprs%]/.test(E);function O(e){var a,s,l,u=j,d=k;if("c"===E)d=S(e)+d,e="";else{var v=(e=+e)<0||1/e<0;if(e=isNaN(e)?y:S(Math.abs(e),b),w&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),v&&0==+e&&"+"!==i&&(v=!1),u=(v?"("===i?i:g:"-"===i||"("===i?"":i)+u,d=("s"===E?p[8+r/3]:"")+d+(v&&"("===i?")":""),_){for(a=-1,s=e.length;++a(l=e.charCodeAt(a))||l>57){d=(46===l?c+e.slice(a+1):e.slice(a))+d,e=e.slice(0,a);break}}}x&&!f&&(e=o(e,1/0));var O=u.length+e.length+d.length,C=O>1)+u+e+d+C.slice(O);break;default:e=C+u+e+d}return m(e)}return b=void 0===b?6:/[gprs]/.test(E)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),O.toString=function(){return e+""},O}return{format:x,formatPrefix:function(e,t){var n=x(((e=(0,l.Z)(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor((0,s.Z)(t)/3))),i=Math.pow(10,-r),o=p[8+r/3];return function(e){return n(i*e)+o}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,a=i.formatPrefix},23733:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(39801);function i(e){return(e=(0,r.V)(Math.abs(e)))?e[1]:NaN}},39801:function(e,t,n){"use strict";function r(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function i(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}n.d(t,{V:function(){return i},Z:function(){return r}})},52328:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(e){var t;if(!(t=r.exec(e)))throw Error("invalid format: "+e);return new o({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function o(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}i.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},12766:function(e,t){!function(e){"use strict";function t(){return(t=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a,s=!0,l=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==o.return||o.return()}finally{if(l)throw a}}}}function o(e){var t={};return 4===e.length&&(t.x2=e[2][0],t.y2=e[2][1]),e.length>=3&&(t.x1=e[1][0],t.y1=e[1][1]),t.x=e[e.length-1][0],t.y=e[e.length-1][1],4===e.length?t.type="C":3===e.length?t.type="Q":t.type="L",t}var a=/[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g,s={M:["x","y"],L:["x","y"],H:["x"],V:["y"],C:["x1","y1","x2","y2","x","y"],S:["x2","y2","x","y"],Q:["x1","y1","x","y"],T:["x","y"],A:["rx","ry","xAxisRotation","largeArcFlag","sweepFlag","x","y"],Z:[]};function l(e,t){for(var n=Array(e),r=0;r0?o-=1:o0&&(o-=1)),t[o]=(t[o]||0)+1,t},[]).reduce(function(n,r,i){if(i===e.length-1){var a=l(r,t({},e[e.length-1]));return"M"===a[0].type&&a.forEach(function(e){e.type="L"}),n.concat(a)}return n.concat(function(e,n,r){var i,a=[];if("L"===n.type||"Q"===n.type||"C"===n.type)a=a.concat((i=[[e.x,e.y]],null!=n.x1&&i.push([n.x1,n.y1]),null!=n.x2&&i.push([n.x2,n.y2]),i.push([n.x,n.y]),(function(e,t){for(var n=[],r=e,i=1/(t=t||2),o=0;o0&&"Z"===o[o.length-1].type&&o.pop(),a.length>0&&"Z"===a[a.length-1].type&&a.pop(),o.length?a.length||a.push(o[0]):o.push(a[0]),0!==Math.abs(a.length-o.length)&&(a.length>o.length?o=u(o,a,r):a.length0)for(var n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[i],a=e[i+1],s=i>0?e[i-1]:2*o-a,l=i180||n<-180?n-360*Math.round(n/360):n):(0,r.Z)(isNaN(e)?t:e)}function a(e){return 1==(e=+e)?s:function(t,n){var i,o,a;return n-t?(i=t,o=n,i=Math.pow(i,a=e),o=Math.pow(o,a)-i,a=1/a,function(e){return Math.pow(i+e*o,a)}):(0,r.Z)(isNaN(t)?n:t)}}function s(e,t){var n=t-e;return n?i(e,n):(0,r.Z)(isNaN(e)?t:e)}},88992:function(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{Z:function(){return r}})},77636:function(e,t,n){"use strict";n.d(t,{B:function(){return f},Z:function(){return d}});var r=n(40948),i=n(68847),o=n(10810),a=-1.78277*.29227-.1347134789;function s(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof l)return new l(e.h,e.s,e.l,e.opacity);e instanceof i.Ss||(e=(0,i.SU)(e));var t=e.r/255,n=e.g/255,r=e.b/255,s=(a*r+-1.7884503806*t-3.5172982438*n)/(a+-1.7884503806-3.5172982438),u=r-s,c=-((1.97294*(n-s)- -.29227*u)/.90649),d=Math.sqrt(c*c+u*u)/(1.97294*s*(1-s)),f=d?Math.atan2(c,u)*o.B-120:NaN;return new l(f<0?f+360:f,d,s,e.opacity)}(e):new l(e,t,n,null==r?1:r)}function l(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}(0,r.Z)(l,s,(0,r.l)(i.Il,{brighter:function(e){return e=null==e?i.J5:Math.pow(i.J5,e),new l(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?i.xV:Math.pow(i.xV,e),new l(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*o.V,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),a=Math.sin(e);return new i.Ss(255*(t+n*(-.14861*r+1.78277*a)),255*(t+n*(-.29227*r+-.90649*a)),255*(t+n*(1.97294*r)),this.opacity)}}));var u=n(1234);function c(e){return function t(n){function r(t,r){var i=e((t=s(t)).h,(r=s(r)).h),o=(0,u.ZP)(t.s,r.s),a=(0,u.ZP)(t.l,r.l),l=(0,u.ZP)(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=l(e),t+""}}return n=+n,r.gamma=t,r}(1)}var d=c(u.wx),f=c(u.ZP)},91255:function(e,t,n){"use strict";function r(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}n.d(t,{Z:function(){return r}})},87286:function(e,t,n){"use strict";n.d(t,{b:function(){return a}});var r=n(20966),i=n(1234);function o(e){return function(t,n){var o=e((t=(0,r.Uc)(t)).h,(n=(0,r.Uc)(n)).h),a=(0,i.ZP)(t.c,n.c),s=(0,i.ZP)(t.l,n.l),l=(0,i.ZP)(t.opacity,n.opacity);return function(e){return t.h=o(e),t.c=a(e),t.l=s(e),t.opacity=l(e),t+""}}}t.Z=o(i.wx);var a=o(i.ZP)},43780:function(e,t,n){"use strict";n.d(t,{q:function(){return a}});var r=n(68847),i=n(1234);function o(e){return function(t,n){var o=e((t=(0,r.Ym)(t)).h,(n=(0,r.Ym)(n)).h),a=(0,i.ZP)(t.s,n.s),s=(0,i.ZP)(t.l,n.l),l=(0,i.ZP)(t.opacity,n.opacity);return function(e){return t.h=o(e),t.s=a(e),t.l=s(e),t.opacity=l(e),t+""}}}t.Z=o(i.wx);var a=o(i.ZP)},31380:function(e,t,n){"use strict";n.r(t),n.d(t,{interpolate:function(){return s.Z},interpolateArray:function(){return l.Z},interpolateBasis:function(){return u.Z},interpolateBasisClosed:function(){return c.Z},interpolateCubehelix:function(){return N.Z},interpolateCubehelixLong:function(){return N.B},interpolateDate:function(){return d.Z},interpolateDiscrete:function(){return f},interpolateHcl:function(){return P.Z},interpolateHclLong:function(){return P.b},interpolateHsl:function(){return A.Z},interpolateHslLong:function(){return A.q},interpolateHue:function(){return p},interpolateLab:function(){return T.Z},interpolateNumber:function(){return m.Z},interpolateNumberArray:function(){return v.Z},interpolateObject:function(){return g.Z},interpolateRgb:function(){return M.ZP},interpolateRgbBasis:function(){return M.hD},interpolateRgbBasisClosed:function(){return M.YD},interpolateRound:function(){return y.Z},interpolateString:function(){return x.Z},interpolateTransformCss:function(){return k},interpolateTransformSvg:function(){return S},interpolateZoom:function(){return C},piecewise:function(){return R.Z},quantize:function(){return D}});var r,i,o,a,s=n(69777),l=n(47639),u=n(67855),c=n(6984),d=n(91255);function f(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var h=n(1234);function p(e,t){var n=(0,h.wx)(+e,+t);return function(e){var t=n(e);return t-360*Math.floor(t/360)}}var m=n(98876),v=n(43289),g=n(73363),y=n(74672),x=n(76060),b=180/Math.PI,w={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function E(e,t,n,r,i,o){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r180?l+=360:l-s>180&&(s+=360),f.push({i:d.push(i(d)+"rotate(",null,r)-2,x:(0,m.Z)(s,l)})):l&&d.push(i(d)+"rotate("+l+r),(u=o.skewX)!==(c=a.skewX)?f.push({i:d.push(i(d)+"skewX(",null,r)-2,x:(0,m.Z)(u,c)}):c&&d.push(i(d)+"skewX("+c+r),!function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:(0,m.Z)(e,n)},{i:s-2,x:(0,m.Z)(t,r)})}else(1!==n||1!==r)&&o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,d,f),o=a=null,function(e){for(var t,n=-1,r=f.length;++nc&&(u=t.slice(c,u),f[d]?f[d]+=u:f[++d]=u),(s=s[0])===(l=l[0])?f[d]?f[d]+=l:f[++d]=l:(f[++d]=null,h.push({i:d,x:(0,r.Z)(s,l)})),c=o.lastIndex;return c1e-6){if(Math.abs(d*l-u*c)>1e-6&&o){var h=r-a,p=i-s,m=l*l+u*u,v=Math.sqrt(m),g=Math.sqrt(f),y=o*Math.tan((n-Math.acos((m+f-(h*h+p*p))/(2*v*g)))/2),x=y/g,b=y/v;Math.abs(x-1)>1e-6&&(this._+="L"+(e+x*c)+","+(t+x*d)),this._+="A"+o+","+o+",0,0,"+ +(d*h>c*p)+","+(this._x1=e+b*l)+","+(this._y1=t+b*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t)}},arc:function(e,t,o,a,s,l){e=+e,t=+t,o=+o,l=!!l;var u=o*Math.cos(a),c=o*Math.sin(a),d=e+u,f=t+c,h=1^l,p=l?a-s:s-a;if(o<0)throw Error("negative radius: "+o);null===this._x1?this._+="M"+d+","+f:(Math.abs(this._x1-d)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+d+","+f),o&&(p<0&&(p=p%r+r),p>i?this._+="A"+o+","+o+",0,1,"+h+","+(e-u)+","+(t-c)+"A"+o+","+o+",0,1,"+h+","+(this._x1=d)+","+(this._y1=f):p>1e-6&&(this._+="A"+o+","+o+",0,"+ +(p>=n)+","+h+","+(this._x1=e+o*Math.cos(s))+","+(this._y1=t+o*Math.sin(s))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},t.Z=a},1169:function(e,t,n){"use strict";function r(e,t){return et?1:e>=t?0:NaN}n.d(t,{Z:function(){return r}})},98038:function(e,t,n){"use strict";n.d(t,{ZP:function(){return l}});var r=n(1169);function i(e){let t=e,n=e;function i(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;0>n(e[o],t)?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>(0,r.Z)(e(t),n)),{left:i,center:function(e,n,r,o){null==r&&(r=0),null==o&&(o=e.length);let a=i(e,n,r,o-1);return a>r&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}var o=n(81048);let a=i(r.Z),s=a.right;a.left,i(o.Z).center;var l=s},81048:function(e,t,n){"use strict";function r(e){return null===e?NaN:+e}function*i(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}n.d(t,{K:function(){return i},Z:function(){return r}})},33907:function(e,t,n){"use strict";function r(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}function i(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}n.d(t,{Z:function(){return l},s:function(){return u}});var o=n(1169);function a(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}var s=n(81048);function l(e,t,n){if(l=(e=Float64Array.from((0,s.K)(e,n))).length){if((t=+t)<=0||l<2)return i(e);if(t>=1)return r(e);var l,u=(l-1)*t,c=Math.floor(u),d=r((function e(t,n,r=0,i=t.length-1,s=o.Z){for(;i>r;){if(i-r>600){let o=i-r+1,a=n-r+1,l=Math.log(o),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(o-u)/o)*(a-o/2<0?-1:1),d=Math.max(r,Math.floor(n-a*u/o+c)),f=Math.min(i,Math.floor(n+(o-a)*u/o+c));e(t,n,d,f,s)}let o=t[n],l=r,u=i;for(a(t,r,n),s(t[i],o)>0&&a(t,r,i);ls(t[l],o);)++l;for(;s(t[u],o)>0;)--u}0===s(t[r],o)?a(t,r,u):a(t,++u,i),u<=n&&(r=u+1),n<=u&&(i=u-1)}return t})(e,c).subarray(0,c+1));return d+(i(e.subarray(c+1))-d)*(u-c)}}function u(e,t,n=s.Z){if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}}},32071:function(e,t,n){"use strict";n.d(t,{G9:function(){return s},ZP:function(){return a},ly:function(){return l}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,n){var r,i,o,a,l=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t0){let n=Math.round(e/a),r=Math.round(t/a);for(n*at&&--r,o=Array(i=r-n+1);++lt&&--r,o=Array(i=r-n+1);++l=0?(l>=r?10:l>=i?5:l>=o?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=r?10:l>=i?5:l>=o?2:1)}function l(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=i?s*=5:l>=o&&(s*=2),t[e.toLowerCase(),t]))}function j(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function k(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function S(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function _(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function O(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function C(e,t,n){var r=v.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function M(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function A(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function T(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function P(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function N(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function R(e,t,n){var r=v.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function D(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function L(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function F(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function V(e,t,n){var r=v.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function z(e,t,n){var r=v.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function I(e,t,n){var r=g.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Z(e,t,n){var r=v.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function B(e,t,n){var r=v.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function H(e,t){return x(e.getDate(),t,2)}function U(e,t){return x(e.getHours(),t,2)}function W(e,t){return x(e.getHours()%12||12,t,2)}function q(e,t){return x(1+u.Z.count((0,c.Z)(e),e),t,3)}function $(e,t){return x(e.getMilliseconds(),t,3)}function Y(e,t){return $(e,t)+"000"}function G(e,t){return x(e.getMonth()+1,t,2)}function X(e,t){return x(e.getMinutes(),t,2)}function K(e,t){return x(e.getSeconds(),t,2)}function Q(e){var t=e.getDay();return 0===t?7:t}function J(e,t){return x(l.OM.count((0,c.Z)(e)-1,e),t,2)}function ee(e){var t=e.getDay();return t>=4||0===t?(0,l.bL)(e):l.bL.ceil(e)}function et(e,t){return e=ee(e),x(l.bL.count((0,c.Z)(e),e)+(4===(0,c.Z)(e).getDay()),t,2)}function en(e){return e.getDay()}function er(e,t){return x(l.wA.count((0,c.Z)(e)-1,e),t,2)}function ei(e,t){return x(e.getFullYear()%100,t,2)}function eo(e,t){return x((e=ee(e)).getFullYear()%100,t,2)}function ea(e,t){return x(e.getFullYear()%1e4,t,4)}function es(e,t){var n=e.getDay();return x((e=n>=4||0===n?(0,l.bL)(e):l.bL.ceil(e)).getFullYear()%1e4,t,4)}function el(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+x(t/60|0,"0",2)+x(t%60,"0",2)}function eu(e,t){return x(e.getUTCDate(),t,2)}function ec(e,t){return x(e.getUTCHours(),t,2)}function ed(e,t){return x(e.getUTCHours()%12||12,t,2)}function ef(e,t){return x(1+s.Z.count((0,d.Z)(e),e),t,3)}function eh(e,t){return x(e.getUTCMilliseconds(),t,3)}function ep(e,t){return eh(e,t)+"000"}function em(e,t){return x(e.getUTCMonth()+1,t,2)}function ev(e,t){return x(e.getUTCMinutes(),t,2)}function eg(e,t){return x(e.getUTCSeconds(),t,2)}function ey(e){var t=e.getUTCDay();return 0===t?7:t}function ex(e,t){return x(a.Ox.count((0,d.Z)(e)-1,e),t,2)}function eb(e){var t=e.getUTCDay();return t>=4||0===t?(0,a.hB)(e):a.hB.ceil(e)}function ew(e,t){return e=eb(e),x(a.hB.count((0,d.Z)(e),e)+(4===(0,d.Z)(e).getUTCDay()),t,2)}function eE(e){return e.getUTCDay()}function ej(e,t){return x(a.l6.count((0,d.Z)(e)-1,e),t,2)}function ek(e,t){return x(e.getUTCFullYear()%100,t,2)}function eS(e,t){return x((e=eb(e)).getUTCFullYear()%100,t,2)}function e_(e,t){return x(e.getUTCFullYear()%1e4,t,4)}function eO(e,t){var n=e.getUTCDay();return x((e=n>=4||0===n?(0,a.hB)(e):a.hB.ceil(e)).getUTCFullYear()%1e4,t,4)}function eC(){return"+0000"}function eM(){return"%"}function eA(e){return+e}function eT(e){return Math.floor(+e/1e3)}i=(r=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,c=e.shortDays,d=e.months,v=e.shortMonths,g=w(i),y=E(i),x=w(o),b=E(o),ee=w(c),eb=E(c),eP=w(d),eN=E(d),eR=w(v),eD=E(v),eL={a:function(e){return c[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return v[e.getMonth()]},B:function(e){return d[e.getMonth()]},c:null,d:H,e:H,f:Y,g:eo,G:es,H:U,I:W,j:q,L:$,m:G,M:X,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:eA,s:eT,S:K,u:Q,U:J,V:et,w:en,W:er,x:null,X:null,y:ei,Y:ea,Z:el,"%":eM},eF={a:function(e){return c[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return v[e.getUTCMonth()]},B:function(e){return d[e.getUTCMonth()]},c:null,d:eu,e:eu,f:ep,g:eS,G:eO,H:ec,I:ed,j:ef,L:eh,m:em,M:ev,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:eA,s:eT,S:eg,u:ey,U:ex,V:ew,w:eE,W:ej,x:null,X:null,y:ek,Y:e_,Z:eC,"%":eM},eV={a:function(e,t,n){var r=ee.exec(t.slice(n));return r?(e.w=eb.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=x.exec(t.slice(n));return r?(e.w=b.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=eR.exec(t.slice(n));return r?(e.m=eD.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=eP.exec(t.slice(n));return r?(e.m=eN.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return eZ(e,t,n,r)},d:N,e:N,f:z,g:M,G:C,H:D,I:D,j:R,L:V,m:P,M:L,p:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.p=y.get(r[0].toLowerCase()),n+r[0].length):-1},q:T,Q:Z,s:B,S:F,u:k,U:S,V:_,w:j,W:O,x:function(e,t,r){return eZ(e,n,t,r)},X:function(e,t,n){return eZ(e,r,t,n)},y:M,Y:C,Z:A,"%":I};function ez(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=(r=h(p(o.y,0,1))).getUTCDay())>4||0===i?a.l6.ceil(r):(0,a.l6)(r),r=s.Z.offset(r,(o.V-1)*7),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=(i=(r=f(p(o.y,0,1))).getDay())>4||0===i?l.wA.ceil(r):(0,l.wA)(r),r=u.Z.offset(r,(o.V-1)*7),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?h(p(o.y,0,1)).getUTCDay():f(p(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,h(o)):f(o)}}function eZ(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a=l)return -1;if(37===(i=t.charCodeAt(a++))){if(!(o=eV[(i=t.charAt(a++))in m?t.charAt(a++):i])||(r=o(e,n,r))<0)return -1}else if(i!=n.charCodeAt(r++))return -1}return r}return eL.x=ez(n,eL),eL.X=ez(r,eL),eL.c=ez(t,eL),eF.x=ez(n,eF),eF.X=ez(r,eF),eF.c=ez(t,eF),{format:function(e){var t=ez(e+="",eL);return t.toString=function(){return e},t},parse:function(e){var t=eI(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=ez(e+="",eF);return t.toString=function(){return e},t},utcParse:function(e){var t=eI(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,r.parse,o=r.utcFormat,r.utcParse},48623:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},x:function(){return a}});var r=n(22274),i=n(34130);function o(){var e,t,n=(0,i.Z)().unknown(void 0),a=n.domain,s=n.range,l=0,u=1,c=!1,d=0,f=0,h=.5;function p(){var n=a().length,r=ut&&(n=e,e=t,t=n),g=function(n){return Math.max(e,Math.min(t,n))}),r=i>2?f:d,c=h=null,x}function x(t){return null==t||isNaN(t=+t)?n:(c||(c=r(p.map(e),m,v)))(e(g(t)))}return x.invert=function(n){return g(t((h||(h=r(m,p.map(e),o.Z)))(n)))},x.domain=function(e){return arguments.length?(p=Array.from(e,s.Z),y()):p.slice()},x.range=function(e){return arguments.length?(m=Array.from(e),y()):m.slice()},x.rangeRound=function(e){return m=Array.from(e),v=a.Z,y()},x.clamp=function(e){return arguments.length?(g=!!e||u,y()):g!==u},x.interpolate=function(e){return arguments.length?(v=e,y()):v},x.unknown=function(e){return arguments.length?(n=e,x):n},function(n,r){return e=n,t=r,y()}}function m(){return p()(u,u)}},79870:function(e,t,n){"use strict";n.r(t),n.d(t,{scaleBand:function(){return r.Z},scaleDiverging:function(){return function e(){var t=(0,i.Q)(C()(y.yR));return t.copy=function(){return w(t,e())},x.O.apply(t,arguments)}},scaleDivergingLog:function(){return function e(){var t=(0,a.Q)(C()).domain([.1,1,10]);return t.copy=function(){return w(t,e()).base(t.base())},x.O.apply(t,arguments)}},scaleDivergingPow:function(){return M},scaleDivergingSqrt:function(){return A},scaleDivergingSymlog:function(){return function e(){var t=(0,s.P)(C());return t.copy=function(){return w(t,e()).constant(t.constant())},x.O.apply(t,arguments)}},scaleIdentity:function(){return function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,o.Z),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,o.Z):[0,1],(0,i.Q)(r)}},scaleImplicit:function(){return l.O},scaleLinear:function(){return i.Z},scaleLog:function(){return a.Z},scaleOrdinal:function(){return l.Z},scalePoint:function(){return r.x},scalePow:function(){return u.ZP},scaleQuantile:function(){return d.Z},scaleQuantize:function(){return f.Z},scaleRadial:function(){return c.Z},scaleSequential:function(){return function e(){var t=(0,i.Q)(b()(y.yR));return t.copy=function(){return w(t,e())},x.O.apply(t,arguments)}},scaleSequentialLog:function(){return function e(){var t=(0,a.Q)(b()).domain([1,10]);return t.copy=function(){return w(t,e()).base(t.base())},x.O.apply(t,arguments)}},scaleSequentialPow:function(){return E},scaleSequentialQuantile:function(){return function e(){var t=[],n=y.yR;function r(e){if(null!=e&&!isNaN(e=+e))return n(((0,k.ZP)(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();for(let n of(t=[],e))null==n||isNaN(n=+n)||t.push(n);return t.sort(S.Z),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map((e,r)=>n(r/(t.length-1)))},r.quantiles=function(e){return Array.from({length:e+1},(n,r)=>(0,_.Z)(t,r/e))},r.copy=function(){return e(n).domain(t)},x.O.apply(r,arguments)}},scaleSequentialSqrt:function(){return j},scaleSequentialSymlog:function(){return function e(){var t=(0,s.P)(b());return t.copy=function(){return w(t,e()).constant(t.constant())},x.O.apply(t,arguments)}},scaleSqrt:function(){return u._b},scaleSymlog:function(){return s.Z},scaleThreshold:function(){return h.Z},scaleTime:function(){return p.Z},scaleUtc:function(){return m.Z},tickFormat:function(){return T.Z}});var r=n(48623),i=n(93963),o=n(5497),a=n(13641),s=n(46494),l=n(34130),u=n(72851),c=n(19637),d=n(96417),f=n(73408),h=n(74995),p=n(37932),m=n(83803),v=n(69777),g=n(74672),y=n(70552),x=n(22274);function b(){var e,t,n,r,i,o=0,a=1,s=y.yR,l=!1;function u(t){return null==t||isNaN(t=+t)?i:s(0===n?.5:(t=(r(t)-e)*n,l?Math.max(0,Math.min(1,t)):t))}function c(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),u):[s(0),s(1)]}}return u.domain=function(i){return arguments.length?([o,a]=i,e=r(o=+o),t=r(a=+a),n=e===t?0:1/(t-e),u):[o,a]},u.clamp=function(e){return arguments.length?(l=!!e,u):l},u.interpolator=function(e){return arguments.length?(s=e,u):s},u.range=c(v.Z),u.rangeRound=c(g.Z),u.unknown=function(e){return arguments.length?(i=e,u):i},function(i){return r=i,e=i(o),t=i(a),n=e===t?0:1/(t-e),u}}function w(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function E(){var e=(0,u.Hh)(b());return e.copy=function(){return w(e,E()).exponent(e.exponent())},x.O.apply(e,arguments)}function j(){return E.apply(null,arguments).exponent(.5)}var k=n(98038),S=n(1169),_=n(33907),O=n(87475);function C(){var e,t,n,r,i,o,a,s=0,l=.5,u=1,c=1,d=y.yR,f=!1;function h(e){return isNaN(e=+e)?a:(e=.5+((e=+o(e))-t)*(c*e0;){if((o=(0,r.G9)(u,c,n))===i)return a[s]=u,a[l]=c,t(a);if(o>0)u=Math.floor(u/o)*o,c=Math.ceil(c/o)*o;else if(o<0)u=Math.ceil(u*o)/o,c=Math.floor(c*o)/o;else break;i=o}return e},e}},13641:function(e,t,n){"use strict";n.d(t,{Q:function(){return p},Z:function(){return function e(){var t=p((0,a.l4)()).domain([1,10]);return t.copy=function(){return(0,a.JG)(t,e()).base(t.base())},s.o.apply(t,arguments),t}}});var r=n(32071),i=n(11192),o=n(10070),a=n(70552),s=n(22274);function l(e){return Math.log(e)}function u(e){return Math.exp(e)}function c(e){return-Math.log(-e)}function d(e){return-Math.exp(-e)}function f(e){return isFinite(e)?+("1e"+e):e<0?0:e}function h(e){return function(t){return-e(-t)}}function p(e){var t,n,a=e(l,u),s=a.domain,p=10;function m(){var r,i;return t=(r=p)===Math.E?Math.log:10===r&&Math.log10||2===r&&Math.log2||(r=Math.log(r),function(e){return Math.log(e)/r}),n=10===(i=p)?f:i===Math.E?Math.exp:function(e){return Math.pow(i,e)},s()[0]<0?(t=h(t),n=h(n),e(c,d)):e(l,u),a}return a.base=function(e){return arguments.length?(p=+e,m()):p},a.domain=function(e){return arguments.length?(s(e),m()):s()},a.ticks=function(e){var i,o=s(),a=o[0],l=o[o.length-1];(i=l0){for(;f<=h;++f)for(c=1,u=n(f);cl)break;v.push(d)}}else for(;f<=h;++f)for(c=p-1,u=n(f);c>=1;--c)if(!((d=u*c)l)break;v.push(d)}2*v.length0?l[t-1]:n[0],t=s?[l[s-1],a]:[l[t-1],l[t]]},c.unknown=function(e){return arguments.length&&(t=e),c},c.thresholds=function(){return l.slice()},c.copy=function(){return e().domain([n,a]).range(u).unknown(t)},o.o.apply((0,i.Q)(c),arguments)}}});var r=n(98038),i=n(93963),o=n(22274)},19637:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(){var t,n=(0,r.ZP)(),l=[0,1],u=!1;function c(e){var r,i=Math.sign(r=n(e))*Math.sqrt(Math.abs(r));return isNaN(i)?t:u?Math.round(i):i}return c.invert=function(e){return n.invert(s(e))},c.domain=function(e){return arguments.length?(n.domain(e),c):n.domain()},c.range=function(e){return arguments.length?(n.range((l=Array.from(e,a.Z)).map(s)),c):l.slice()},c.rangeRound=function(e){return c.range(e).round(!0)},c.round=function(e){return arguments.length?(u=!!e,c):u},c.clamp=function(e){return arguments.length?(n.clamp(e),c):n.clamp()},c.unknown=function(e){return arguments.length?(t=e,c):t},c.copy=function(){return e(n.domain(),l).round(u).clamp(n.clamp()).unknown(t)},i.o.apply(c,arguments),(0,o.Q)(c)}}});var r=n(70552),i=n(22274),o=n(93963),a=n(5497);function s(e){return Math.sign(e)*e*e}},46494:function(e,t,n){"use strict";n.d(t,{P:function(){return l},Z:function(){return function e(){var t=l((0,i.l4)());return t.copy=function(){return(0,i.JG)(t,e()).constant(t.constant())},o.o.apply(t,arguments)}}});var r=n(93963),i=n(70552),o=n(22274);function a(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function s(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function l(e){var t=1,n=e(a(1),s(t));return n.constant=function(n){return arguments.length?e(a(t=+n),s(t)):t},(0,r.Q)(n)}},74995:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(){var t,n=[.5],o=[0,1],a=1;function s(e){return null!=e&&e<=e?o[(0,r.ZP)(n,e,0,a)]:t}return s.domain=function(e){return arguments.length?(a=Math.min((n=Array.from(e)).length,o.length-1),s):n.slice()},s.range=function(e){return arguments.length?(o=Array.from(e),a=Math.min(n.length,o.length-1),s):o.slice()},s.invertExtent=function(e){var t=o.indexOf(e);return[n[t-1],n[t]]},s.unknown=function(e){return arguments.length?(t=e,s):t},s.copy=function(){return e().domain(n).range(o).unknown(t)},i.o.apply(s,arguments)}}});var r=n(98038),i=n(22274)},62498:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(32071),i=n(52328),o=n(23733),a=n(11192);function s(e,t,n,s){var l,u,c,d=(0,r.ly)(e,t,n);switch((s=(0,i.Z)(null==s?",f":s)).type){case"s":var f=Math.max(Math.abs(e),Math.abs(t));return null!=s.precision||isNaN(c=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,o.Z)(f)/3)))-(0,o.Z)(Math.abs(d))))||(s.precision=c),(0,a.jH)(s,f);case"":case"e":case"g":case"p":case"r":null!=s.precision||isNaN((l=d,u=Math.abs(u=Math.max(Math.abs(e),Math.abs(t)))-(l=Math.abs(l)),c=Math.max(0,(0,o.Z)(u)-(0,o.Z)(l))+1))||(s.precision=c-("e"===s.type));break;case"f":case"%":null!=s.precision||isNaN(c=Math.max(0,-(0,o.Z)(Math.abs(d))))||(s.precision=c-("%"===s.type)*2)}return(0,a.WU)(s)}},37932:function(e,t,n){"use strict";n.d(t,{Y:function(){return g},Z:function(){return y}});var r=n(1381),i=n(97344),o=n(50690),a=n(76231),s=n(68603),l=n(54076),u=n(18450),c=n(52546),d=n(61743),f=n(70552),h=n(22274),p=n(10070);function m(e){return new Date(e)}function v(e){return e instanceof Date?+e:+new Date(+e)}function g(e,t,n,r,i,o,a,s,l,u){var c=(0,f.ZP)(),d=c.invert,h=c.domain,y=u(".%L"),x=u(":%S"),b=u("%I:%M"),w=u("%I %p"),E=u("%a %d"),j=u("%b %d"),k=u("%B"),S=u("%Y");function _(e){return(l(e)T*T+P*P&&(S=O,_=C),{cx:S,cy:_,x01:-d,y01:-f,x11:S*(i/E-1),y11:_*(i/E-1)}}function f(){var e=a,t=s,n=(0,i.Z)(0),f=null,h=l,p=u,m=c,v=null;function g(){var i,a,s=+e.apply(this,arguments),l=+t.apply(this,arguments),u=h.apply(this,arguments)-o.ou,c=p.apply(this,arguments)-o.ou,g=(0,o.Wn)(c-u),y=c>u;if(v||(v=i=(0,r.Z)()),lo.Ho){if(g>o.BZ-o.Ho)v.moveTo(l*(0,o.mC)(u),l*(0,o.O$)(u)),v.arc(0,0,l,u,c,!y),s>o.Ho&&(v.moveTo(s*(0,o.mC)(c),s*(0,o.O$)(c)),v.arc(0,0,s,c,u,y));else{var x,b,w=u,E=c,j=u,k=c,S=g,_=g,O=m.apply(this,arguments)/2,C=O>o.Ho&&(f?+f.apply(this,arguments):(0,o._b)(s*s+l*l)),M=(0,o.VV)((0,o.Wn)(l-s)/2,+n.apply(this,arguments)),A=M,T=M;if(C>o.Ho){var P=(0,o.ZR)(C/s*(0,o.O$)(O)),N=(0,o.ZR)(C/l*(0,o.O$)(O));(S-=2*P)>o.Ho?(P*=y?1:-1,j+=P,k-=P):(S=0,j=k=(u+c)/2),(_-=2*N)>o.Ho?(N*=y?1:-1,w+=N,E-=N):(_=0,w=E=(u+c)/2)}var R=l*(0,o.mC)(w),D=l*(0,o.O$)(w),L=s*(0,o.mC)(k),F=s*(0,o.O$)(k);if(M>o.Ho){var V,z=l*(0,o.mC)(E),I=l*(0,o.O$)(E),Z=s*(0,o.mC)(j),B=s*(0,o.O$)(j);if(go.Ho?T>o.Ho?(x=d(Z,B,R,D,l,T,y),b=d(z,I,L,F,l,T,y),v.moveTo(x.cx+x.x01,x.cy+x.y01),To.Ho&&S>o.Ho?A>o.Ho?(x=d(L,F,z,I,s,-A,y),b=d(R,D,Z,B,s,-A,y),v.lineTo(x.cx+x.x01,x.cy+x.y01),A=a;--s)f.point(g[s],y[s]);f.lineEnd(),f.areaEnd()}}v&&(g[o]=+e(h,o,i),y[o]=+n(h,o,i),f.point(t?+t(h,o,i):g[o],l?+l(h,o,i):y[o]))}if(p)return f=null,p+""||null}function p(){return(0,a.Z)().defined(u).curve(d).context(c)}return h.x=function(n){return arguments.length?(e="function"==typeof n?n:(0,i.Z)(+n),t=null,h):e},h.x0=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.Z)(+t),h):e},h.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:(0,i.Z)(+e),h):t},h.y=function(e){return arguments.length?(n="function"==typeof e?e:(0,i.Z)(+e),l=null,h):n},h.y0=function(e){return arguments.length?(n="function"==typeof e?e:(0,i.Z)(+e),h):n},h.y1=function(e){return arguments.length?(l=null==e?null:"function"==typeof e?e:(0,i.Z)(+e),h):l},h.lineX0=h.lineY0=function(){return p().x(e).y(n)},h.lineY1=function(){return p().x(e).y(l)},h.lineX1=function(){return p().x(t).y(n)},h.defined=function(e){return arguments.length?(u="function"==typeof e?e:(0,i.Z)(!!e),h):u},h.curve=function(e){return arguments.length?(d=e,null!=c&&(f=d(c)),h):d},h.context=function(e){return arguments.length?(null==e?c=f=null:f=d(c=e),h):c},h}},72299:function(e,t,n){"use strict";n.d(t,{t:function(){return r}});var r=Array.prototype.slice},33554:function(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{Z:function(){return r}})},46385:function(e,t,n){"use strict";function r(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function i(e,t){this._context=e,this._k=(1-t)/6}n.d(t,{pC:function(){return i},xm:function(){return r}}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:r(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:r(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},t.ZP=function e(t){function n(e){return new i(e,t)}return n.tension=function(t){return e(+t)},n}(0)},20651:function(e,t,n){"use strict";function r(e){this._context=e}function i(e){return new r(e)}n.d(t,{Z:function(){return i}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}}},27266:function(e,t,n){"use strict";function r(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0);return((o<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs((o*i+a*r)/(r+i)))||0}function i(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function o(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function a(e){this._context=e}function s(e){this._context=new l(e)}function l(e){this._context=e}function u(e){return new a(e)}function c(e){return new s(e)}n.d(t,{Z:function(){return u},s:function(){return c}}),a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:o(this,this._t0,i(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,o(this,i(this,n=r(this,e,t)),n);break;default:o(this,this._t0,n=r(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(s.prototype=Object.create(a.prototype)).point=function(e,t){a.prototype.point.call(this,t,e)},l.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}}},23165:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},j:function(){return r}});var r=o(n(20651).Z);function i(e){this._curve=e}function o(e){function t(t){return new i(e(t))}return t._curve=e,t}i.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),-(t*Math.cos(e)))}}},45742:function(e,t,n){"use strict";function r(e,t){this._context=e,this._t=t}function i(e){return new r(e,.5)}function o(e){return new r(e,0)}function a(e){return new r(e,1)}n.d(t,{RN:function(){return o},ZP:function(){return i},cD:function(){return a}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}}},59207:function(e,t,n){"use strict";n.r(t),n.d(t,{arc:function(){return r.Z},area:function(){return i.Z},areaRadial:function(){return u},curveBasis:function(){return j},curveBasisClosed:function(){return S},curveBasisOpen:function(){return O},curveBundle:function(){return M},curveCardinal:function(){return A.ZP},curveCardinalClosed:function(){return P},curveCardinalOpen:function(){return R},curveCatmullRom:function(){return V},curveCatmullRomClosed:function(){return I},curveCatmullRomOpen:function(){return B},curveLinear:function(){return W.Z},curveLinearClosed:function(){return U},curveMonotoneX:function(){return q.Z},curveMonotoneY:function(){return q.s},curveNatural:function(){return G},curveStep:function(){return X.ZP},curveStepAfter:function(){return X.cD},curveStepBefore:function(){return X.RN},line:function(){return o.Z},lineRadial:function(){return l.Z},linkHorizontal:function(){return d.h5},linkRadial:function(){return d.M4},linkVertical:function(){return d.rR},pie:function(){return a.Z},pointRadial:function(){return c.Z},radialArea:function(){return u},radialLine:function(){return l.Z},stack:function(){return K.Z},stackOffsetDiverging:function(){return J.Z},stackOffsetExpand:function(){return Q.Z},stackOffsetNone:function(){return ee.Z},stackOffsetSilhouette:function(){return et.Z},stackOffsetWiggle:function(){return en.Z},stackOrderAppearance:function(){return er.Z},stackOrderAscending:function(){return ei.Z},stackOrderDescending:function(){return eo.Z},stackOrderInsideOut:function(){return ea.Z},stackOrderNone:function(){return es.Z},stackOrderReverse:function(){return el.Z},symbol:function(){return f.Z},symbolCircle:function(){return h.Z},symbolCross:function(){return p.Z},symbolDiamond:function(){return m.Z},symbolSquare:function(){return v.Z},symbolStar:function(){return g.Z},symbolTriangle:function(){return y.Z},symbolWye:function(){return x.Z},symbols:function(){return f.u}});var r=n(38764),i=n(12235),o=n(79767),a=n(69619),s=n(23165),l=n(8329);function u(){var e=(0,i.Z)().curve(s.j),t=e.curve,n=e.lineX0,r=e.lineX1,o=e.lineY0,a=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return(0,l.X)(n())},delete e.lineX0,e.lineEndAngle=function(){return(0,l.X)(r())},delete e.lineX1,e.lineInnerRadius=function(){return(0,l.X)(o())},delete e.lineY0,e.lineOuterRadius=function(){return(0,l.X)(a())},delete e.lineY1,e.curve=function(e){return arguments.length?t((0,s.Z)(e)):t()._curve},e}var c=n(3326),d=n(72215),f=n(24037),h=n(62628),p=n(9135),m=n(82893),v=n(44523),g=n(86707),y=n(42965),x=n(60598);function b(){}function w(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function E(e){this._context=e}function j(e){return new E(e)}function k(e){this._context=e}function S(e){return new k(e)}function _(e){this._context=e}function O(e){return new _(e)}function C(e,t){this._basis=new E(e),this._beta=t}E.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:w(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},k.prototype={areaStart:b,areaEnd:b,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},C.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],o=t[0],a=e[n]-i,s=t[n]-o,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*a),this._beta*t[l]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var M=function e(t){function n(e){return 1===t?new E(e):new C(e,t)}return n.beta=function(t){return e(+t)},n}(.85),A=n(46385);function T(e,t){this._context=e,this._k=(1-t)/6}T.prototype={areaStart:b,areaEnd:b,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:(0,A.xm)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var P=function e(t){function n(e){return new T(e,t)}return n.tension=function(t){return e(+t)},n}(0);function N(e,t){this._context=e,this._k=(1-t)/6}N.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:(0,A.xm)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var R=function e(t){function n(e){return new N(e,t)}return n.tension=function(t){return e(+t)},n}(0),D=n(15);function L(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>D.Ho){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>D.Ho){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*u+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function F(e,t){this._context=e,this._alpha=t}F.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var V=function e(t){function n(e){return t?new F(e,t):new A.pC(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function z(e,t){this._context=e,this._alpha=t}z.prototype={areaStart:b,areaEnd:b,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var I=function e(t){function n(e){return t?new z(e,t):new T(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Z(e,t){this._context=e,this._alpha=t}Z.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var B=function e(t){function n(e){return t?new Z(e,t):new N(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function H(e){this._context=e}function U(e){return new H(e)}H.prototype={areaStart:b,areaEnd:b,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};var W=n(20651),q=n(27266);function $(e){this._context=e}function Y(e){var t,n,r=e.length-1,i=Array(r),o=Array(r),a=Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(t=0,o[r-1]=(e[r]+i[r-1])/2;t1?0:e<-1?d:Math.acos(e)}function m(e){return e>=1?f:e<=-1?-f:Math.asin(e)}},76751:function(e,t,n){"use strict";function r(e,t){if((s=e.length)>0)for(var n,r,i,o,a,s,l=0,u=e[t[0]].length;l0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)}n.d(t,{Z:function(){return r}})},22254:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(90541);function i(e,t){if((i=e.length)>0){for(var n,i,o,a=0,s=e[0].length;a1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o0){for(var n,i=0,o=e[t[0]],a=o.length;i0&&(i=(n=e[t[0]]).length)>0){for(var n,i,o,a=0,s=1;so&&(o=t,r=n);return r}},19721:function(e,t,n){"use strict";n.d(t,{S:function(){return o},Z:function(){return i}});var r=n(81182);function i(e){var t=e.map(o);return(0,r.Z)(e).sort(function(e,n){return t[e]-t[n]})}function o(e){for(var t,n=0,r=-1,i=e.length;++r=0;)n[t]=t;return n}n.d(t,{Z:function(){return r}})},40277:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(81182);function i(e){return(0,r.Z)(e).reverse()}},69619:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(33554);function i(e,t){return te?1:t>=e?0:NaN}function o(e){return e}var a=n(15);function s(){var e=o,t=i,n=null,s=(0,r.Z)(0),l=(0,r.Z)(a.BZ),u=(0,r.Z)(0);function c(r){var i,o,c,d,f,h=r.length,p=0,m=Array(h),v=Array(h),g=+s.apply(this,arguments),y=Math.min(a.BZ,Math.max(-a.BZ,l.apply(this,arguments)-g)),x=Math.min(Math.abs(y)/h,u.apply(this,arguments)),b=x*(y<0?-1:1);for(i=0;i0&&(p+=f);for(null!=t?m.sort(function(e,n){return t(v[e],v[n])}):null!=n&&m.sort(function(e,t){return n(r[e],r[t])}),i=0,c=p?(y-h*b)/p:0;i0?f*c:0)+b,v[o]={data:r[o],index:i,value:f,startAngle:g,endAngle:d,padAngle:x};return v}return c.value=function(t){return arguments.length?(e="function"==typeof t?t:(0,r.Z)(+t),c):e},c.sortValues=function(e){return arguments.length?(t=e,n=null,c):t},c.sort=function(e){return arguments.length?(n=e,t=null,c):n},c.startAngle=function(e){return arguments.length?(s="function"==typeof e?e:(0,r.Z)(+e),c):s},c.endAngle=function(e){return arguments.length?(l="function"==typeof e?e:(0,r.Z)(+e),c):l},c.padAngle=function(e){return arguments.length?(u="function"==typeof e?e:(0,r.Z)(+e),c):u},c}},11053:function(e,t,n){"use strict";function r(e){return e[0]}function i(e){return e[1]}n.d(t,{x:function(){return r},y:function(){return i}})},3326:function(e,t,n){"use strict";function r(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}n.d(t,{Z:function(){return r}})},98926:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(72299),i=n(33554),o=n(90541),a=n(81182);function s(e,t){return e[t]}function l(){var e=(0,i.Z)([]),t=a.Z,n=o.Z,l=s;function u(r){var i,o,a=e.apply(this,arguments),s=r.length,u=a.length,c=Array(u);for(i=0;ie.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.yB)/i.UD,e=>e.getDate()-1);t.Z=o;var a=o.range},1514:function(e,t,n){"use strict";n.d(t,{UD:function(){return a},Y2:function(){return o},Ym:function(){return r},iM:function(){return s},jz:function(){return l},qz:function(){return u},yB:function(){return i}});let r=1e3,i=60*r,o=60*i,a=24*o,s=7*a,l=30*a,u=365*a},54076:function(e,t,n){"use strict";n.d(t,{i:function(){return a}});var r=n(22179),i=n(1514),o=(0,r.Z)(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.Ym-e.getMinutes()*i.yB)},function(e,t){e.setTime(+e+t*i.Y2)},function(e,t){return(t-e)/i.Y2},function(e){return e.getHours()});t.Z=o;var a=o.range},11365:function(e,t,n){"use strict";n.r(t),n.d(t,{timeDay:function(){return l.Z},timeDays:function(){return l.a},timeFriday:function(){return u.mC},timeFridays:function(){return u.b$},timeHour:function(){return s.Z},timeHours:function(){return s.i},timeInterval:function(){return r.Z},timeMillisecond:function(){return i.Z},timeMilliseconds:function(){return i.m},timeMinute:function(){return a.Z},timeMinutes:function(){return a.L},timeMonday:function(){return u.wA},timeMondays:function(){return u.bJ},timeMonth:function(){return c.Z},timeMonths:function(){return c.e},timeSaturday:function(){return u.EY},timeSaturdays:function(){return u.Ff},timeSecond:function(){return o.Z},timeSeconds:function(){return o.m},timeSunday:function(){return u.OM},timeSundays:function(){return u.vm},timeThursday:function(){return u.bL},timeThursdays:function(){return u.$t},timeTickInterval:function(){return y._g},timeTicks:function(){return y.jK},timeTuesday:function(){return u.sy},timeTuesdays:function(){return u.aU},timeWednesday:function(){return u.zg},timeWednesdays:function(){return u.Ld},timeWeek:function(){return u.OM},timeWeeks:function(){return u.vm},timeYear:function(){return d.Z},timeYears:function(){return d.g},utcDay:function(){return p.Z},utcDays:function(){return p.y},utcFriday:function(){return m.QQ},utcFridays:function(){return m.fz},utcHour:function(){return h.Z},utcHours:function(){return h.X},utcMillisecond:function(){return i.Z},utcMilliseconds:function(){return i.m},utcMinute:function(){return f.Z},utcMinutes:function(){return f.N},utcMonday:function(){return m.l6},utcMondays:function(){return m.$3},utcMonth:function(){return v.Z},utcMonths:function(){return v.K},utcSaturday:function(){return m.g4},utcSaturdays:function(){return m.Q_},utcSecond:function(){return o.Z},utcSeconds:function(){return o.m},utcSunday:function(){return m.Ox},utcSundays:function(){return m.SU},utcThursday:function(){return m.hB},utcThursdays:function(){return m.xj},utcTickInterval:function(){return y.jo},utcTicks:function(){return y.WG},utcTuesday:function(){return m.J1},utcTuesdays:function(){return m.DK},utcWednesday:function(){return m.b3},utcWednesdays:function(){return m.uy},utcWeek:function(){return m.Ox},utcWeeks:function(){return m.SU},utcYear:function(){return g.Z},utcYears:function(){return g.D}});var r=n(22179),i=n(30356),o=n(52546),a=n(18450),s=n(54076),l=n(68603),u=n(76231),c=n(50690),d=n(97344),f=n(52004),h=n(28239),p=n(12370),m=n(97631),v=n(94758),g=n(2908),y=n(1381)},22179:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(t,n,o,a){function s(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return s.floor=function(e){return t(e=new Date(+e)),e},s.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},s.round=function(e){var t=s(e),n=s.ceil(e);return e-t0))return a;do a.push(o=new Date(+e)),n(e,i),t(e);while(o=e)for(;t(e),!r(e);)e.setTime(e-1)},function(e,t){if(e>=e){if(t<0)for(;++t<=0;)for(;n(e,-1),!r(e););else for(;--t>=0;)for(;n(e,1),!r(e););}})},o&&(s.count=function(e,n){return r.setTime(+e),i.setTime(+n),t(r),t(i),Math.floor(o(r,i))},s.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?s.filter(a?function(t){return a(t)%e==0}:function(t){return s.count(0,t)%e==0}):s:null}),s}}});var r=new Date,i=new Date},30356:function(e,t,n){"use strict";n.d(t,{m:function(){return o}});var r=n(22179),i=(0,r.Z)(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});i.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?(0,r.Z)(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):i:null},t.Z=i;var o=i.range},18450:function(e,t,n){"use strict";n.d(t,{L:function(){return a}});var r=n(22179),i=n(1514),o=(0,r.Z)(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.Ym)},function(e,t){e.setTime(+e+t*i.yB)},function(e,t){return(t-e)/i.yB},function(e){return e.getMinutes()});t.Z=o;var a=o.range},50690:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var r=(0,n(22179).Z)(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});t.Z=r;var i=r.range},52546:function(e,t,n){"use strict";n.d(t,{m:function(){return a}});var r=n(22179),i=n(1514),o=(0,r.Z)(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*i.Ym)},function(e,t){return(t-e)/i.Ym},function(e){return e.getUTCSeconds()});t.Z=o;var a=o.range},1381:function(e,t,n){"use strict";n.d(t,{_g:function(){return _},jK:function(){return S},jo:function(){return k},WG:function(){return j}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=i?s*=5:l>=o&&(s*=2),t>>1;0>n(e[o],t)?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>{var r;return(r=e(t))n?1:r>=n?0:NaN}),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);let a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}})(([,,e])=>e).right(c,i);if(o===c.length)return e.every(a(t/s.qz,n/s.qz,r));if(0===o)return l.Z.every(Math.max(a(t,n,r),1));let[u,d]=c[i/c[o-1][2]0?(0,r.Z)(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null},t.Z=i;var o=i.range},76231:function(e,t,n){"use strict";n.d(t,{$t:function(){return g},EY:function(){return f},Ff:function(){return x},Ld:function(){return v},OM:function(){return a},aU:function(){return m},b$:function(){return y},bJ:function(){return p},bL:function(){return c},mC:function(){return d},sy:function(){return l},vm:function(){return h},wA:function(){return s},zg:function(){return u}});var r=n(22179),i=n(1514);function o(e){return(0,r.Z)(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.yB)/i.iM})}var a=o(0),s=o(1),l=o(2),u=o(3),c=o(4),d=o(5),f=o(6),h=a.range,p=s.range,m=l.range,v=u.range,g=c.range,y=d.range,x=f.range},97344:function(e,t,n){"use strict";n.d(t,{g:function(){return o}});var r=n(22179),i=(0,r.Z)(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});i.every=function(e){return isFinite(e=Math.floor(e))&&e>0?(0,r.Z)(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null},t.Z=i;var o=i.range},19785:function(e,t,n){"use strict";function r(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:function(){return r}})},66700:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(19785);function i(e){(0,r.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(Error().stack)),new Date(NaN))}},36386:function(e){function t(e,t,n){function r(){var u=Date.now()-s;u=0?i=setTimeout(r,t-u):(i=null,n||(l=e.apply(a,o),a=o=null))}null==t&&(t=100);var i,o,a,s,l,u=function(){a=this,o=arguments,s=Date.now();var u=n&&!i;return i||(i=setTimeout(r,t)),u&&(l=e.apply(a,o),a=o=null),l};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(l=e.apply(a,o),a=o=null,clearTimeout(i),i=null)},u}t.debounce=t,e.exports=t},63397:function(e,t,n){"use strict";n.d(t,{TA:function(){return nn}});var r,i,o,a=n(2784),s=n(78435),l=n.n(s),u=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==c},c="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function d(e,t){return!1!==t.clone&&t.isMergeableObject(e)?h(Array.isArray(e)?[]:{},e,t):e}function f(e,t,n){return e.concat(t).map(function(e){return d(e,n)})}function h(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||f,n.isMergeableObject=n.isMergeableObject||u;var r,i,o=Array.isArray(t);return o!==Array.isArray(e)?d(t,n):o?n.arrayMerge(e,t,n):(i={},(r=n).isMergeableObject(e)&&Object.keys(e).forEach(function(t){i[t]=d(e[t],r)}),Object.keys(t).forEach(function(n){r.isMergeableObject(t[n])&&e[n]?i[n]=h(e[n],t[n],r):i[n]=d(t[n],r)}),i)}h.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return h(e,n,t)},{})};var p=h,m="object"==typeof global&&global&&global.Object===Object&&global,v="object"==typeof self&&self&&self.Object===Object&&self,g=m||v||Function("return this")(),y=g.Symbol,x=Object.prototype,b=x.hasOwnProperty,w=x.toString,E=y?y.toStringTag:void 0,j=function(e){var t=b.call(e,E),n=e[E];try{e[E]=void 0;var r=!0}catch(e){}var i=w.call(e);return r&&(t?e[E]=n:delete e[E]),i},k=Object.prototype.toString,S=y?y.toStringTag:void 0,_=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":S&&S in Object(e)?j(e):k.call(e)},O=function(e,t){return function(n){return e(t(n))}},C=O(Object.getPrototypeOf,Object),M=function(e){return null!=e&&"object"==typeof e},A=Object.prototype,T=Function.prototype.toString,P=A.hasOwnProperty,N=T.call(Object),R=function(e){if(!M(e)||"[object Object]"!=_(e))return!1;var t=C(e);if(null===t)return!0;var n=P.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&T.call(n)==N},D=function(e,t){return e===t||e!=e&&t!=t},L=function(e,t){for(var n=e.length;n--;)if(D(e[n][0],t))return n;return -1},F=Array.prototype.splice;function V(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},V.prototype.set=function(e,t){var n=this.__data__,r=L(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var z=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},I=function(e){if(!z(e))return!1;var t=_(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Z=g["__core-js_shared__"],B=(r=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",H=Function.prototype.toString,U=function(e){if(null!=e){try{return H.call(e)}catch(e){}try{return e+""}catch(e){}}return""},W=/^\[object .+?Constructor\]$/,q=Object.prototype,$=Function.prototype.toString,Y=q.hasOwnProperty,G=RegExp("^"+$.call(Y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),X=function(e,t){var n,r=null==e?void 0:e[t];return z(n=r)&&(!B||!(B in n))&&(I(n)?G:W).test(U(n))?r:void 0},K=X(g,"Map"),Q=X(Object,"create"),J=Object.prototype.hasOwnProperty,ee=Object.prototype.hasOwnProperty;function et(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},e_={};e_["[object Float32Array]"]=e_["[object Float64Array]"]=e_["[object Int8Array]"]=e_["[object Int16Array]"]=e_["[object Int32Array]"]=e_["[object Uint8Array]"]=e_["[object Uint8ClampedArray]"]=e_["[object Uint16Array]"]=e_["[object Uint32Array]"]=!0,e_["[object Arguments]"]=e_["[object Array]"]=e_["[object ArrayBuffer]"]=e_["[object Boolean]"]=e_["[object DataView]"]=e_["[object Date]"]=e_["[object Error]"]=e_["[object Function]"]=e_["[object Map]"]=e_["[object Number]"]=e_["[object Object]"]=e_["[object RegExp]"]=e_["[object Set]"]=e_["[object String]"]=e_["[object WeakMap]"]=!1;var eO=function(e){return function(t){return e(t)}},eC="object"==typeof exports&&exports&&!exports.nodeType&&exports,eM=eC&&"object"==typeof module&&module&&!module.nodeType&&module,eA=eM&&eM.exports===eC&&m.process,eT=function(){try{var e=eM&&eM.require&&eM.require("util").types;if(e)return e;return eA&&eA.binding&&eA.binding("util")}catch(e){}}(),eP=eT&&eT.isTypedArray,eN=eP?eO(eP):function(e){return M(e)&&eS(e.length)&&!!e_[_(e)]},eR=Object.prototype.hasOwnProperty,eD=function(e,t){var n=ey(e),r=!n&&eg(e),i=!n&&!r&&eE(e),o=!n&&!r&&!i&&eN(e),a=n||r||i||o,s=a?ef(e.length,String):[],l=s.length;for(var u in e)(t||eR.call(e,u))&&!(a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ek(u,l)))&&s.push(u);return s},eL=Object.prototype,eF=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||eL)},eV=O(Object.keys,Object),ez=Object.prototype.hasOwnProperty,eI=function(e){if(!eF(e))return eV(e);var t=[];for(var n in Object(e))ez.call(e,n)&&"constructor"!=n&&t.push(n);return t},eZ=function(e){return null!=e&&eS(e.length)&&!I(e)},eB=function(e){return eZ(e)?eD(e):eI(e)},eH=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},eU=Object.prototype.hasOwnProperty,eW=function(e){if(!z(e))return eH(e);var t=eF(e),n=[];for(var r in e)"constructor"==r&&(t||!eU.call(e,r))||n.push(r);return n},eq=function(e){return eZ(e)?eD(e,!0):eW(e)},e$="object"==typeof exports&&exports&&!exports.nodeType&&exports,eY=e$&&"object"==typeof module&&module&&!module.nodeType&&module,eG=eY&&eY.exports===e$?g.Buffer:void 0,eX=eG?eG.allocUnsafe:void 0,eK=function(e,t){if(t)return e.slice();var n=e.length,r=eX?eX(n):new e.constructor(n);return e.copy(r),r},eQ=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n=0||(i[n]=e[n]);return i}function t0(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(73463);var t1=function(e){return Array.isArray(e)&&0===e.length},t2=function(e){return"function"==typeof e},t4=function(e){return null!==e&&"object"==typeof e},t3=function(e){return"[object String]"===Object.prototype.toString.call(e)},t5=function(e){return t4(e)&&t2(e.then)};function t6(e,t,n,r){void 0===r&&(r=0);for(var i=tX(t);e&&r=0?[]:{}}}return(0===o?e:i)[a[o]]===n?e:(void 0===n?delete i[a[o]]:i[a[o]]=n,0===o&&void 0===n&&delete r[a[o]],r)}var t7=(0,a.createContext)(void 0);function t9(e,t){switch(t.type){case"SET_VALUES":return tQ({},e,{values:t.payload});case"SET_TOUCHED":return tQ({},e,{touched:t.payload});case"SET_ERRORS":if(l()(e.errors,t.payload))return e;return tQ({},e,{errors:t.payload});case"SET_STATUS":return tQ({},e,{status:t.payload});case"SET_ISSUBMITTING":return tQ({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return tQ({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return tQ({},e,{values:t8(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return tQ({},e,{touched:t8(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return tQ({},e,{errors:t8(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return tQ({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return tQ({},e,{touched:function e(t,n,r,i){void 0===r&&(r=new WeakMap),void 0===i&&(i={});for(var o=0,a=Object.keys(t);o=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var o,a=o;t6(t,a.path)||(t=t8(t,a.path,a.message))}}return t}(n)):t(n)})})},[m.validationSchema]),O=(0,a.useCallback)(function(e,t){return new Promise(function(n){return n(w.current[e].validate(t))})},[]),C=(0,a.useCallback)(function(e){var t=Object.keys(w.current).filter(function(e){return t2(w.current[e].validate)});return Promise.all(t.length>0?t.map(function(t){return O(t,t6(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")]).then(function(e){return e.reduce(function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=t8(e,t[r],n)),e},{})})},[O]),M=(0,a.useCallback)(function(e){return Promise.all([C(e),m.validationSchema?_(e):{},m.validate?S(e):{}]).then(function(e){var t=e[0],n=e[1],r=e[2];return p.all([t,n,r],{arrayMerge:nr})})},[m.validate,m.validationSchema,C,S,_]),A=no(function(e){return void 0===e&&(e=j.values),k({type:"SET_ISVALIDATING",payload:!0}),M(e).then(function(e){return b.current&&(k({type:"SET_ISVALIDATING",payload:!1}),k({type:"SET_ERRORS",payload:e})),e})});(0,a.useEffect)(function(){s&&!0===b.current&&l()(v.current,m.initialValues)&&A(v.current)},[s,A]);var T=(0,a.useCallback)(function(e){var t=e&&e.values?e.values:v.current,n=e&&e.errors?e.errors:g.current?g.current:m.initialErrors||{},r=e&&e.touched?e.touched:y.current?y.current:m.initialTouched||{},i=e&&e.status?e.status:x.current?x.current:m.initialStatus;v.current=t,g.current=n,y.current=r,x.current=i;var o=function(){k({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(m.onReset){var a=m.onReset(j.values,K);t5(a)?a.then(o):o()}else o()},[m.initialErrors,m.initialStatus,m.initialTouched]);(0,a.useEffect)(function(){!0===b.current&&!l()(v.current,m.initialValues)&&(d&&(v.current=m.initialValues,T()),s&&A(v.current))},[d,m.initialValues,T,s,A]),(0,a.useEffect)(function(){d&&!0===b.current&&!l()(g.current,m.initialErrors)&&(g.current=m.initialErrors||ne,k({type:"SET_ERRORS",payload:m.initialErrors||ne}))},[d,m.initialErrors]),(0,a.useEffect)(function(){d&&!0===b.current&&!l()(y.current,m.initialTouched)&&(y.current=m.initialTouched||nt,k({type:"SET_TOUCHED",payload:m.initialTouched||nt}))},[d,m.initialTouched]),(0,a.useEffect)(function(){d&&!0===b.current&&!l()(x.current,m.initialStatus)&&(x.current=m.initialStatus,k({type:"SET_STATUS",payload:m.initialStatus}))},[d,m.initialStatus,m.initialTouched]);var P=no(function(e){if(w.current[e]&&t2(w.current[e].validate)){var t=t6(j.values,e),n=w.current[e].validate(t);return t5(n)?(k({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){k({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),k({type:"SET_ISVALIDATING",payload:!1})})):(k({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return m.validationSchema?(k({type:"SET_ISVALIDATING",payload:!0}),_(j.values,e).then(function(e){return e}).then(function(t){k({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),k({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),N=(0,a.useCallback)(function(e,t){var n=t.validate;w.current[e]={validate:n}},[]),D=(0,a.useCallback)(function(e){delete w.current[e]},[]),L=no(function(e,t){return k({type:"SET_TOUCHED",payload:e}),(void 0===t?i:t)?A(j.values):Promise.resolve()}),F=(0,a.useCallback)(function(e){k({type:"SET_ERRORS",payload:e})},[]),V=no(function(e,t){var r=t2(e)?e(j.values):e;return k({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?A(r):Promise.resolve()}),z=(0,a.useCallback)(function(e,t){k({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),I=no(function(e,t,r){return k({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?A(t8(j.values,e,t)):Promise.resolve()}),Z=(0,a.useCallback)(function(e,t){var n,r=t,i=e;if(!t3(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,a=o.type,s=o.name,l=o.id,u=o.value,c=o.checked,d=(o.outerHTML,o.options),f=o.multiple;r=t||s||l,i=/number|range/.test(a)?isNaN(n=parseFloat(u))?"":n:/checkbox/.test(a)?function(e,t,n){if("boolean"==typeof e)return!!t;var r=[],i=!1,o=-1;if(Array.isArray(e))r=e,i=(o=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return!!t;return t&&n&&!i?r.concat(n):i?r.slice(0,o).concat(r.slice(o+1)):r}(t6(j.values,r),c,u):d&&f?Array.from(d).filter(function(e){return e.selected}).map(function(e){return e.value}):u}r&&I(r,i)},[I,j.values]),B=no(function(e){if(t3(e))return function(t){return Z(t,e)};Z(e)}),H=no(function(e,t,n){return void 0===t&&(t=!0),k({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?i:n)?A(j.values):Promise.resolve()}),U=(0,a.useCallback)(function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,i=n.id;n.outerHTML,H(t||r||i,!0)},[H]),W=no(function(e){if(t3(e))return function(t){return U(t,e)};U(e)}),q=(0,a.useCallback)(function(e){t2(e)?k({type:"SET_FORMIK_STATE",payload:e}):k({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),$=(0,a.useCallback)(function(e){k({type:"SET_STATUS",payload:e})},[]),Y=(0,a.useCallback)(function(e){k({type:"SET_ISSUBMITTING",payload:e})},[]),G=no(function(){return k({type:"SUBMIT_ATTEMPT"}),A().then(function(e){var t,n=e instanceof Error;if(!n&&0===Object.keys(e).length){try{if(t=Q(),void 0===t)return}catch(e){throw e}return Promise.resolve(t).then(function(e){return b.current&&k({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(b.current)throw k({type:"SUBMIT_FAILURE"}),e})}if(b.current&&(k({type:"SUBMIT_FAILURE"}),n))throw e})}),X=no(function(e){e&&e.preventDefault&&t2(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&t2(e.stopPropagation)&&e.stopPropagation(),G().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),K={resetForm:T,validateForm:A,validateField:P,setErrors:F,setFieldError:z,setFieldTouched:H,setFieldValue:I,setStatus:$,setSubmitting:Y,setTouched:L,setValues:V,setFormikState:q,submitForm:G},Q=no(function(){return f(j.values,K)}),J=no(function(e){e&&e.preventDefault&&t2(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&t2(e.stopPropagation)&&e.stopPropagation(),T()}),ee=(0,a.useCallback)(function(e){return{value:t6(j.values,e),error:t6(j.errors,e),touched:!!t6(j.touched,e),initialValue:t6(v.current,e),initialTouched:!!t6(y.current,e),initialError:t6(g.current,e)}},[j.errors,j.touched,j.values]),et=(0,a.useCallback)(function(e){return{setValue:function(t,n){return I(e,t,n)},setTouched:function(t,n){return H(e,t,n)},setError:function(t){return z(e,t)}}},[I,H,z]),en=(0,a.useCallback)(function(e){var t=t4(e),n=t?e.name:e,r=t6(j.values,n),i={name:n,value:r,onChange:B,onBlur:W};if(t){var o=e.type,a=e.value,s=e.as,l=e.multiple;"checkbox"===o?void 0===a?i.checked=!!r:(i.checked=!!(Array.isArray(r)&&~r.indexOf(a)),i.value=a):"radio"===o?(i.checked=r===a,i.value=a):"select"===s&&l&&(i.value=i.value||[],i.multiple=!0)}return i},[W,B,j.values]),er=(0,a.useMemo)(function(){return!l()(v.current,j.values)},[v.current,j.values]),ei=(0,a.useMemo)(function(){return void 0!==u?er?j.errors&&0===Object.keys(j.errors).length:!1!==u&&t2(u)?u(m):u:j.errors&&0===Object.keys(j.errors).length},[u,er,j.errors,m]);return tQ({},j,{initialValues:v.current,initialErrors:g.current,initialTouched:y.current,initialStatus:x.current,handleBlur:W,handleChange:B,handleReset:J,handleSubmit:X,resetForm:T,setErrors:F,setFormikState:q,setFieldTouched:H,setFieldValue:I,setFieldError:z,setStatus:$,setSubmitting:Y,setTouched:L,setValues:V,submitForm:G,validateForm:A,validateField:P,isValid:ei,dirty:er,unregisterField:D,registerField:N,getFieldProps:en,getFieldMeta:ee,getFieldHelpers:et,validateOnBlur:i,validateOnChange:n,validateOnMount:s})}function nr(e,t,n){var r=e.slice();return t.forEach(function(t,i){if(void 0===r[i]){var o=!1!==n.clone&&n.isMergeableObject(t);r[i]=o?p(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[i]=p(e[i],t,n):-1===e.indexOf(t)&&r.push(t)}),r}var ni="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;function no(e){var t=(0,a.useRef)(e);return ni(function(){t.current=e}),(0,a.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;re?t:e},0);return Array.from(tQ({},e,{length:t+1}))};(function(e){function t(t){var n;return(n=e.call(this,t)||this).updateArrayField=function(e,t,r){var i=n.props,o=i.name;(0,i.formik.setFormikState)(function(n){var i="function"==typeof r?r:e,a="function"==typeof t?t:e,s=t8(n.values,o,e(t6(n.values,o))),l=r?i(t6(n.errors,o)):void 0,u=t?a(t6(n.touched,o)):void 0;return t1(l)&&(l=void 0),t1(u)&&(u=void 0),tQ({},n,{values:s,errors:r?t8(n.errors,o,l):n.errors,touched:t?t8(n.touched,o,u):n.touched})})},n.push=function(e){return n.updateArrayField(function(t){return[].concat(nc(t),[tL(e,5)])},!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField(function(n){return ns(n,e,t)},!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField(function(n){return na(n,e,t)},!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField(function(n){return nl(n,e,t)},function(t){return nl(t,e,null)},function(t){return nl(t,e,null)})},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField(function(n){return nu(n,e,t)},!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField(function(n){var r=n?[e].concat(n):[e];return t<0&&(t=r.length),r},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n}),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(t0(n)),n.pop=n.pop.bind(t0(n)),n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e;var n=t.prototype;return n.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!l()(t6(e.formik.values,e.name),t6(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(e){var t;return this.updateArrayField(function(n){var r=n?nc(n):[];return t||(t=r[e]),t2(r.splice)&&r.splice(e,1),r},!0,!0),t},n.pop=function(){var e;return this.updateArrayField(function(t){return e||(e=t&&t.pop&&t.pop()),t},!0,!0),e},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,r=t.render,i=t.children,o=t.name,s=tJ(t.formik,["validate","validationSchema"]),l=tQ({},e,{form:s,name:o});return n?(0,a.createElement)(n,l):r?r(l):i?"function"==typeof i?i(l):0===a.Children.count(i)?null:a.Children.only(i):null},t})(a.Component).defaultProps={validateOnChange:!0}},73463:function(e,t,n){"use strict";var r=n(73887),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),v=0;v */t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,c=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:(h?-1:1)*(1/0);a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,f=23===i?5960464477539062e-23:0,h=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[n+h]=255&a,h+=p,a/=256,u-=8);e[n+h-p]|=128*m}},39515:function(e,t,n){var r=n(38761)(n(37772),"DataView");e.exports=r},89612:function(e,t,n){var r=n(52118),i=n(96909),o=n(98138),a=n(4174),s=n(7942);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1}},34893:function(e){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r=200&&(d=l,f=!1,t=new r(t));t:for(;++c0&&o(c)?n>1?e(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},15308:function(e,t,n){var r=n(55463)();e.exports=r},26548:function(e,t,n){var r=n(15308),i=n(90249);e.exports=function(e,t){return e&&r(e,t,i)}},13324:function(e,t,n){var r=n(17297),i=n(33812);e.exports=function(e,t){t=r(t,e);for(var n=0,o=t.length;null!=e&&n=120&&g.length>=120)?new r(h&&g):void 0}g=e[0];var y=-1,x=p[0];t:for(;++yi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r=200){var m=t?null:s(e);if(m)return l(m);f=!1,c=a,p=new r}else p=t?[]:h;t:for(;++u=i?e:r(e,t,n)}},10768:function(e,t,n){var r=n(77832);e.exports=function(e,t){for(var n=e.length;n--&&r(t,e[n],0)>-1;);return n}},51821:function(e,t,n){var r=n(77832);e.exports=function(e,t){for(var n=-1,i=e.length;++n-1;);return n}},79882:function(e,t,n){var r=n(79162);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},92175:function(e,t,n){e=n.nmd(e);var r=n(37772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},34727:function(e,t,n){var r=n(79882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},96058:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},70169:function(e,t,n){var r=n(50857),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},6190:function(e,t,n){var r=n(79882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},27520:function(e,t,n){var r=n(4795);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e==e,a=r(e),s=void 0!==t,l=null===t,u=t==t,c=r(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||i&&s&&u||!n&&u||!o)return 1;if(!i&&!a&&!c&&e=l)return u;return u*("desc"==n[i]?-1:1)}}return e.index-t.index}},51522:function(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++rc))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,v=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p-1&&e%1==0&&e-1}},94769:function(e,t,n){var r=n(22218);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},92411:function(e,t,n){var r=n(89612),i=n(80235),o=n(10326);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},36417:function(e,t,n){var r=n(27937);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},86928:function(e,t,n){var r=n(27937);e.exports=function(e){return r(this,e).get(e)}},79493:function(e,t,n){var r=n(27937);e.exports=function(e){return r(this,e).has(e)}},24150:function(e,t,n){var r=n(27937);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},75179:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},73477:function(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},77777:function(e,t,n){var r=n(30733);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},99191:function(e,t,n){var r=n(38761)(Object,"create");e.exports=r},54248:function(e,t,n){var r=n(60241)(Object.keys,Object);e.exports=r},62966:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},4146:function(e,t,n){e=n.nmd(e);var r=n(51242),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},37157:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},60241:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},43114:function(e,t,n){var r=n(49432),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},15243:function(e,t,n){var r=n(80235);e.exports=function(){this.__data__=new r,this.size=0}},72858:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},4417:function(e){e.exports=function(e){return this.__data__.get(e)}},8605:function(e){e.exports=function(e){return this.__data__.has(e)}},71418:function(e,t,n){var r=n(80235),i=n(10326),o=n(96738);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},66024:function(e){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r=t||n<0||v&&r>=c}function b(){var e,n,r,o=i();if(x(o))return w(o);f=setTimeout(b,(e=o-h,n=o-p,r=t-e,v?s(r,c-n):r))}function w(e){return(f=void 0,g&&l)?y(e):(l=u=void 0,d)}function E(){var e,n=i(),r=x(n);if(l=arguments,u=this,h=n,r){if(void 0===f)return p=e=h,f=setTimeout(b,t),m?y(e):d;if(v)return clearTimeout(f),f=setTimeout(b,t),y(h)}return void 0===f&&(f=setTimeout(b,t)),d}return t=o(t)||0,r(n)&&(m=!!n.leading,c=(v="maxWait"in n)?a(o(n.maxWait)||0,t):c,g="trailing"in n?!!n.trailing:g),E.cancel=function(){void 0!==f&&clearTimeout(f),p=0,l=h=u=f=void 0},E.flush=function(){return void 0===f?d:w(i())},E}},97329:function(e,t,n){var r=n(61655),i=n(66188),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,r).replace(a,"")}},17335:function(e,t,n){var r=n(85246),i=n(62034),o=n(36060),a=n(93746),s=o(function(e,t){return a(e)?r(e,i(t,1,a,!0)):[]});e.exports=s},45861:function(e,t,n){e.exports=n(28460)},41225:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},35676:function(e,t,n){var r=n(62034);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},72579:function(e,t,n){var r=n(13324);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},3440:function(e,t,n){var r=n(13940),i=n(36740),o=Object.prototype.hasOwnProperty,a=i(function(e,t,n){o.call(e,n)?e[n].push(t):r(e,n,[t])});e.exports=a},93352:function(e,t,n){var r=n(32726),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,r)}},95041:function(e,t,n){var r=n(20187),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,r)}},23059:function(e){e.exports=function(e){return e}},30898:function(e,t,n){var r=n(50343),i=n(88390),o=n(36060),a=n(5642),s=o(function(e){var t=r(e,a);return t.length&&t[0]===e[0]?i(t):[]});e.exports=s},79631:function(e,t,n){var r=n(15183),i=n(15125),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},86152:function(e){var t=Array.isArray;e.exports=t},67878:function(e,t,n){var r=n(61049),i=n(61158);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},93746:function(e,t,n){var r=n(67878),i=n(15125);e.exports=function(e){return i(e)&&r(e)}},73226:function(e,t,n){e=n.nmd(e);var r=n(37772),i=n(36330),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=s?s.isBuffer:void 0;e.exports=l||i},18149:function(e,t,n){var r=n(88746);e.exports=function(e,t){return r(e,t)}},61049:function(e,t,n){var r=n(53366),i=n(29259);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},61158:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},4714:function(e,t,n){var r=n(74511),i=n(47826),o=n(4146),a=o&&o.isMap,s=a?i(a):r;e.exports=s},29259:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},15125:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},97030:function(e,t,n){var r=n(53366),i=n(47353),o=n(15125),a=Object.prototype,s=Function.prototype.toString,l=a.hasOwnProperty,u=s.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==u}},43679:function(e,t,n){var r=n(8109),i=n(47826),o=n(4146),a=o&&o.isSet,s=a?i(a):r;e.exports=s},4795:function(e,t,n){var r=n(53366),i=n(15125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},77598:function(e,t,n){var r=n(35522),i=n(47826),o=n(4146),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},90249:function(e,t,n){var r=n(1634),i=n(86411),o=n(67878);e.exports=function(e){return o(e)?r(e):i(e)}},18582:function(e,t,n){var r=n(1634),i=n(18390),o=n(67878);e.exports=function(e){return o(e)?r(e,!0):i(e)}},56974:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},19950:function(e,t,n){var r=n(13940),i=n(26548),o=n(68286);e.exports=function(e,t){var n={};return t=o(t,3),i(e,function(e,i,o){r(n,t(e,i,o),e)}),n}},34519:function(e,t,n){var r=n(13940),i=n(26548),o=n(68286);e.exports=function(e,t){var n={};return t=o(t,3),i(e,function(e,i,o){r(n,i,t(e,i,o))}),n}},30733:function(e,t,n){var r=n(96738);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},98537:function(e,t,n){var r=n(84565),i=n(97263)(function(e,t,n){r(e,t,n)});e.exports=i},34291:function(e){e.exports=function(){}},61100:function(e,t,n){var r=n(37772);e.exports=function(){return r.Date.now()}},17620:function(e,t,n){var r=n(50343),i=n(18874),o=n(29078),a=n(17297),s=n(752),l=n(48642),u=n(29097),c=n(76939),d=u(function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,function(t){return t=a(t,e),u||(u=t.length>1),t}),s(e,c(e),n),u&&(n=i(n,7,l));for(var d=t.length;d--;)o(n,t[d]);return n});e.exports=d},65798:function(e,t,n){var r=n(20256),i=n(82952),o=n(21401),a=n(33812);e.exports=function(e){return o(e)?r(a(e)):i(e)}},57370:function(e,t,n){var r=n(34311)(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});e.exports=r},829:function(e,t,n){var r=n(62034),i=n(23813),o=n(36060),a=n(82406),s=o(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])});e.exports=s},30981:function(e){e.exports=function(){return[]}},36330:function(e){e.exports=function(){return!1}},12436:function(e,t,n){var r=n(54073),i=n(29259);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},61258:function(e,t,n){var r=n(36473),i=n(89419),o=n(38101),a=Math.min;e.exports=function(e,t){if((e=o(e))<1||e>9007199254740991)return[];var n=4294967295,s=a(e,4294967295);t=i(t),e-=4294967295;for(var l=r(s,t);++n"+t.value+""+i[o].show+""+e.value+"",type:10}):r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+""+e.value+"",type:1})):2===i[o].type||9===i[o].type?(e=r.pop(),t=r.pop(),r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+i[o].show+(1!=e.type?"(":"")+e.value+(1!=e.type?")":""),type:i[o].type})):12===i[o].type&&(e=r.pop(),t=r.pop(),n=r.pop(),r.push({value:i[o].show+"("+n.value+","+t.value+","+e.value+")",type:12}));return r[0].value},e.exports=r},66655:function(e,t,n){"use strict";var r=n(72346);function i(e,t){for(var n=0;np.length-2?p.length-1:e.length-l;n>0;n--)if(void 0!==p[n])for(i=0;i0&&kn)s.push(e);else{for(;n>=i&&!c||c&&i1)throw new r.Exception("Uncaught Syntax error");return o[0].value>1e15?"Infinity":parseFloat(o[0].value.toFixed(15))},r.eval=function(e,t,n){return void 0===t?this.lex(e).toPostfix().postfixEval():void 0!==n?this.lex(e,t).toPostfix().postfixEval(n):void 0!==t.length?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t)},e.exports=r},38617:function(e,t,n){"use strict";n.d(t,{F:function(){return u},f:function(){return c}});var r=n(2784);let i=["light","dark"],o="(prefers-color-scheme: dark)",a="undefined"==typeof window,s=(0,r.createContext)(void 0),l={setTheme:e=>{},themes:[]},u=()=>{var e;return null!==(e=(0,r.useContext)(s))&&void 0!==e?e:l},c=e=>(0,r.useContext)(s)?r.createElement(r.Fragment,null,e.children):r.createElement(f,e),d=["light","dark"],f=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:a=!0,storageKey:l="theme",themes:u=d,defaultTheme:c=n?"system":"light",attribute:f="data-theme",value:g,children:y,nonce:x})=>{let[b,w]=(0,r.useState)(()=>p(l,c)),[E,j]=(0,r.useState)(()=>p(l)),k=g?Object.values(g):u,S=(0,r.useCallback)(e=>{let r=e;if(!r)return;"system"===e&&n&&(r=v());let o=g?g[r]:r,s=t?m():null,l=document.documentElement;if("class"===f?(l.classList.remove(...k),o&&l.classList.add(o)):o?l.setAttribute(f,o):l.removeAttribute(f),a){let e=i.includes(c)?c:null,t=i.includes(r)?r:e;l.style.colorScheme=t}null==s||s()},[]),_=(0,r.useCallback)(e=>{w(e);try{localStorage.setItem(l,e)}catch(e){}},[e]),O=(0,r.useCallback)(t=>{let r=v(t);j(r),"system"===b&&n&&!e&&S("system")},[b,e]);(0,r.useEffect)(()=>{let e=window.matchMedia(o);return e.addListener(O),O(e),()=>e.removeListener(O)},[O]),(0,r.useEffect)(()=>{let e=e=>{e.key===l&&_(e.newValue||c)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[_]),(0,r.useEffect)(()=>{S(null!=e?e:b)},[e,b]);let C=(0,r.useMemo)(()=>({theme:b,setTheme:_,forcedTheme:e,resolvedTheme:"system"===b?E:b,themes:n?[...u,"system"]:u,systemTheme:n?E:void 0}),[b,_,e,E,n,u]);return r.createElement(s.Provider,{value:C},r.createElement(h,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:a,storageKey:l,themes:u,defaultTheme:c,attribute:f,value:g,children:y,attrs:k,nonce:x}),y)},h=(0,r.memo)(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:a,enableColorScheme:s,defaultTheme:l,value:u,attrs:c,nonce:d})=>{let f="system"===l,h="class"===n?`var d=document.documentElement,c=d.classList;c.remove(${c.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=s?i.includes(l)&&l?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${l}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(e,t=!1,r=!0)=>{let o=u?u[e]:e,a=t?e+"|| ''":`'${o}'`,l="";return s&&r&&!t&&i.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===n?l+=t||o?`c.add(${a})`:"null":o&&(l+=`d[s](n,${a})`),l},v=e?`!function(){${h}${m(e)}}()`:a?`!function(){try{${h}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${f})){var t='${o}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}${f?"":"else{"+m(l,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${h}var e=localStorage.getItem('${t}');if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}else{${m(l,!1,!1)};}${p}}catch(t){}}();`;return r.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:v}})},()=>!0),p=(e,t)=>{let n;if(!a){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},m=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},v=e=>(e||(e=window.matchMedia(o)),e.matches?"dark":"light")},86570:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(76133)}])},4941:function(e,t,n){"use strict";n.d(t,{Ul:function(){return s},WD:function(){return l},fu:function(){return c},o4:function(){return u}});var r=n(52322),i=n(79798),o=n(82851),a=n(99182);function s(e){let{currentPage:t,parentPage:n,commandPage:s,className:l,...u}=e,c=(0,a.U8)(e=>e.search);if((null==n?void 0:n.namespace)===(null==t?void 0:t.namespace)&&!c)return(0,r.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",l),value:"".concat(null==s?void 0:s.label," ").concat(u.children.toString()),...u})}function l(e){let{currentPage:t,commandPage:n,className:s,...l}=e,u=(0,a.U8)(e=>e.search),c=n.namespace.startsWith((null==t?void 0:t.namespace)||"");if(u&&c||n.namespace===(null==t?void 0:t.namespace))return(0,r.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",s),value:"".concat(n.label," ").concat(l.children.toString()),...l})}function u(e){let{currentPage:t,commandPage:n,className:s,...l}=e,u=(0,a.U8)(e=>e.search),c=n.namespace.startsWith((null==t?void 0:t.namespace)||"");if(u&&c||!t||n.namespace===(null==t?void 0:t.namespace))return(0,r.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",s),value:"".concat(n.label," ").concat(l.children.toString()),...l})}function c(e){let{heading:t,currentPage:n,commandPage:o,...s}=e,l=(0,a.U8)(e=>e.search);return(0,r.jsx)(a.mY.Group,{heading:l&&(null==n?void 0:n.namespace)!==o.namespace&&(0,r.jsx)(i.__J,{className:"px-1",size:"12",children:o.label}),...s})}n(2784)},3639:function(e,t,n){"use strict";n.d(t,{F:function(){return y}});var r=n(52322),i=n(4941);let o={namespace:"contracts/filterStatus",label:"Contracts filter by status"},a=[{id:"filterStatusActive",value:"active",label:"Contract is active"},{id:"filterStatusSuccessful",value:"successful",label:"Contract was successful"},{id:"filterStatusPending",value:"pending",label:"Contract is pending"},{id:"filterStatusRejected",value:"rejected",label:"Contract was rejected"},{id:"filterStatusFailed",value:"failed",label:"Contract has failed"}];function s(e){let{select:t,currentPage:n}=e;return(0,r.jsx)(i.fu,{currentPage:n,commandPage:o,children:a.map(e=>(0,r.jsx)(i.WD,{currentPage:n,commandPage:o,onSelect:()=>{t(e)},children:e.label},e.id+e.value))})}var l=n(22515),u=n(734);let c={namespace:"contracts/filterAddress",label:"Contracts filter by ID"};function d(e){let{select:t,currentPage:n}=e,{openDialog:o}=(0,l.Rh)(),a=(0,u.O)("");return(0,r.jsx)(i.fu,{currentPage:n,commandPage:c,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:c,onSelect:()=>{t(),o("contractsFilterContractId")},children:a.label})})}function f(e){let{select:t,currentPage:n,parentPage:o,commandPage:a}=e,{openDialog:s}=(0,l.Rh)();return(0,r.jsx)(i.Ul,{currentPage:n,parentPage:o,commandPage:a,onSelect:()=>{t(),s("contractsFilterContractId")},children:c.label})}function h(e){let{currentPage:t,select:n}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s,{currentPage:t,select:n}),(0,r.jsx)(d,{currentPage:t,select:n})]})}let p={namespace:"contracts",label:"Contracts"};function m(e){let{currentPage:t,parentPage:n,pushPage:a,select:s}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:p,onSelect:()=>{a(o)},children:o.label}),(0,r.jsx)(f,{currentPage:t,parentPage:n,commandPage:p,select:s})]})}var v=n(92838),g=n(2784);function y(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,{setFilter:s}=(0,v.G)(),l=(0,g.useCallback)(e=>{o&&o(),e&&s(e),a&&a()},[s,o,a]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m,{parentPage:n,currentPage:t,pushPage:i,select:l}),(0,r.jsx)(h,{currentPage:t,select:l})]})}},71930:function(e,t,n){"use strict";n.d(t,{_:function(){return i},h:function(){return o}});var r=n(27444);let i={home:"/",volumes:{index:"/volumes"},contracts:{index:"/contracts"},config:{index:"/config",host:"/config#host",pricing:"/config#pricing",dns:"/config#dns",bandwidth:"/config#bandwidth",registry:"/config#registry",accounts:"/config#accounts"},wallet:{view:"/wallet"},node:{index:"/node",txPool:"/node/txpool",peers:"/node/peers"},login:"/login"},o=r.dk},99957:function(e,t,n){"use strict";n.d(t,{iV:function(){return w},ZR:function(){return b}});var r=n(52322),i=n(2784),o=n(79798),a=n(27444);let s=[{value:"",label:"Off"},{value:"route53",label:"Route 53"},{value:"noip",label:"No-IP"},{value:"duckdns",label:"Duck DNS"},{value:"cloudflare",label:"Cloudflare"}],l={acceptingContracts:!1,netAddress:"",maxContractDuration:void 0,contractPrice:void 0,baseRPCPrice:void 0,sectorAccessPrice:void 0,collateralMultiplier:void 0,maxCollateral:void 0,storagePrice:void 0,egressPrice:void 0,ingressPrice:void 0,priceTableValidity:void 0,maxRegistryEntries:void 0,accountExpiry:void 0,maxAccountBalance:void 0,ingressLimit:void 0,egressLimit:void 0,dnsProvider:"",dnsIpv4:!1,dnsIpv6:!1,dnsDuckDnsToken:"",dnsNoIpEmail:"",dnsNoIpPassword:"",dnsAwsId:"",dnsAwsSecret:"",dnsAwsZoneId:"",dnsCloudflareToken:"",dnsCloudflareZoneId:""};var u=n(25205),c=n(6391),d=n.n(c),f=n(94977);function h(e,t){return new(d())(12960).times(e).div((0,u.S5)(1)).times(t)}function p(e,t){return t?new(d())(new(d())(e).div(t.sc.usd).div(10).toFixed(0)).times(10):void 0}var m=n(63955),v=n(92762),g=n(95753),y=n(47025);let x=(0,i.createContext)({}),b=()=>(0,i.useContext)(x);function w(e){let{children:t}=e,n=function(){let e=(0,a.rV)({standalone:"configSettingsForm",config:{swr:{refreshInterval:(0,o.sWj)(1)}}}),t=(0,a.Te)(),n=(0,a.uo)({disabled:!e.data||!e.data.ddns.provider,config:{swr:{revalidateOnFocus:!1,errorRetryCount:0}}}),[c,x]=(0,v.Z)("v0/config/showAdvanced",{defaultValue:!1}),b=(0,m.cI)({mode:"all",defaultValues:l}),w=b.watch("storagePrice"),E=b.watch("collateralMultiplier"),j=(0,i.useCallback)(e=>{let t;let n=(t=null,"duckdns"===e.ddns.provider&&(t={dnsDuckDnsToken:e.ddns.options.token}),"noip"===e.ddns.provider&&(t={dnsNoIpEmail:e.ddns.options.email,dnsNoIpPassword:e.ddns.options.password}),"route53"===e.ddns.provider&&(t={dnsAwsId:e.ddns.options.id,dnsAwsSecret:e.ddns.options.secret,dnsAwsZoneId:e.ddns.options.zoneID}),"cloudflare"===e.ddns.provider&&(t={dnsCloudflareToken:e.ddns.options.token,dnsCloudflareZoneId:e.ddns.options.zoneID}),{acceptingContracts:e.acceptingContracts,netAddress:e.netAddress,maxContractDuration:new(d())(e.maxContractDuration).div((0,u.S5)(1)),contractPrice:(0,u.ll)(e.contractPrice,6),baseRPCPrice:(0,u.ll)((0,f.sS)(e.baseRPCPrice),6),sectorAccessPrice:(0,u.ll)((0,f.nS)(e.sectorAccessPrice),6),collateralMultiplier:new(d())(e.collateralMultiplier),maxCollateral:(0,u.ll)(e.maxCollateral,6),storagePrice:(0,u.ll)((0,f.SY)(e.storagePrice),6),egressPrice:(0,u.ll)((0,f.B1)(e.egressPrice),6),ingressPrice:(0,u.ll)((0,f.dK)(e.ingressPrice),6),priceTableValidity:new(d())(e.priceTableValidity).div(1e9).div(60),maxRegistryEntries:new(d())(e.maxRegistryEntries),accountExpiry:new(d())(e.accountExpiry).div(1e9).div(86400),maxAccountBalance:(0,u.ll)(e.maxAccountBalance,6),ingressLimit:(0,u.BT)(new(d())(e.ingressLimit)),egressLimit:(0,u.BT)(new(d())(e.egressLimit)),dnsProvider:e.ddns.provider,dnsIpv4:e.ddns.ipv4,dnsIpv6:e.ddns.ipv6,...t});return b.reset(n),n},[b]),k=(0,i.useMemo)(()=>[e.data],[e.data]),S=(0,i.useCallback)(()=>e.data?j(e.data):null,[j,e.data]),[_,O]=(0,i.useState)(!1);(0,i.useEffect)(()=>{if(!_){let e=S();e&&O(!0)}},[_,S]);let C=(0,i.useCallback)(async()=>{let t=await e.mutate();t?(j(t),await n.mutate()):(0,o.OHV)("Error fetching settings.")},[e,j,n]),M=(0,i.useCallback)(async n=>{if(e.data)try{var r;let i;let a={};c||(a.maxCollateral=h(n.storagePrice,n.collateralMultiplier));let s={...n,...a},l=await t.patch({payload:(r=e.data,i=null,"duckdns"===s.dnsProvider&&(i={token:s.dnsDuckDnsToken}),"noip"===s.dnsProvider&&(i={email:s.dnsNoIpEmail,password:s.dnsNoIpPassword}),"route53"===s.dnsProvider&&(i={id:s.dnsAwsId,secret:s.dnsAwsSecret,zoneID:s.dnsAwsZoneId}),"cloudflare"===s.dnsProvider&&(i={token:s.dnsCloudflareToken,zoneID:s.dnsCloudflareZoneId}),{...r,acceptingContracts:s.acceptingContracts,netAddress:s.netAddress,maxContractDuration:Number(s.maxContractDuration.times((0,u.S5)(1)).toFixed(0)),contractPrice:(0,u.qN)(s.contractPrice).toString(),baseRPCPrice:s.baseRPCPrice.div((0,u.ll)((0,f.sS)(1))).toFixed(0),sectorAccessPrice:s.sectorAccessPrice.div((0,u.ll)((0,f.nS)(1))).toFixed(0),collateralMultiplier:s.collateralMultiplier.toNumber(),maxCollateral:(0,u.qN)(s.maxCollateral).toString(),storagePrice:s.storagePrice.div((0,u.ll)((0,f.SY)(1))).toFixed(0),egressPrice:s.egressPrice.div((0,u.ll)((0,f.B1)(1))).toFixed(0),ingressPrice:s.ingressPrice.div((0,u.ll)((0,f.dK)(1))).toFixed(0),priceTableValidity:Number(s.priceTableValidity.times(60).times(1e9).toFixed(0)),maxRegistryEntries:Number(s.maxRegistryEntries.toFixed(0)),accountExpiry:Number(s.accountExpiry.times(86400).times(1e9).toFixed(0)),maxAccountBalance:(0,u.qN)(s.maxAccountBalance).toString(),ingressLimit:Number((0,u.Y)(s.ingressLimit).toFixed(0)),egressLimit:Number((0,u.Y)(s.egressLimit).toFixed(0)),ddns:{...null==r?void 0:r.ddns,provider:s.dnsProvider,ipv4:s.dnsIpv4,ipv6:s.dnsIpv6,options:i}})});if(l.error)throw Error(l.error);b.formState.dirtyFields.netAddress?(0,o.OPV)("Settings have been saved. Address has changed, make sure to re-announce the host.",{duration:2e4}):(0,o.OPV)("Settings have been saved."),await C()}catch(e){(0,o.OHV)(e.message),console.log(e)}},[b,c,e,t,C]),A=(0,y.BW)(),T=(0,i.useMemo)(()=>{var e;return function(e){let{showAdvanced:t,storageTBMonth:n,collateralMultiplier:i,rates:o}=e;return{acceptingContracts:{type:"boolean",category:"host",title:"Accepting contracts",description:(0,r.jsx)(r.Fragment,{children:"Whether or not the host is accepting contracts."}),validation:{}},netAddress:{type:"text",category:"host",title:"Address",description:(0,r.jsx)(r.Fragment,{children:"The network address of the host."}),placeholder:"my.host.com:9882",validation:{required:"required"}},maxContractDuration:{type:"number",category:"host",title:"Maximum contract duration",units:"months",decimalsLimit:2,suggestion:new(d())(6),suggestionTip:"The default maximum duration is 6 months.",description:(0,r.jsx)(r.Fragment,{children:"The maximum contract duration that the host will accept."}),hidden:!t,validation:{required:"required",validate:{min:e=>new(d())(e).gte((0,u.E6)(4320))||"must be at least 1 month"}}},storagePrice:{title:"Storage price",type:"siacoin",category:"pricing",units:"SC/TB/month",decimalsLimitSc:6,suggestion:o?p(1,o):void 0,suggestionTip:"The suggested storage price in siacoins per TB per month.",description:(0,r.jsx)(r.Fragment,{children:"The host's storage price in siacoins per TB per month."}),validation:{required:"required"}},egressPrice:{title:"Egress price",type:"siacoin",category:"pricing",units:"SC/TB",decimalsLimitSc:6,suggestion:o?p(10,o):void 0,suggestionTip:"The suggested egress price in siacoins for egress per TB.",description:(0,r.jsx)(r.Fragment,{children:"The host's egress price in siacoins per TB."}),validation:{required:"required"}},ingressPrice:{title:"Ingress price",type:"siacoin",category:"pricing",units:"SC/TB",suggestion:o?p(.05,o):void 0,suggestionTip:"The suggested ingress price in siacoins per TB.",decimalsLimitSc:6,description:(0,r.jsx)(r.Fragment,{children:"The host's ingress price in siacoins per TB."}),validation:{required:"required"}},collateralMultiplier:{title:"Collateral multiplier",type:"number",category:"pricing",units:"* storage price",placeholder:"2",decimalsLimit:1,description:(0,r.jsx)(r.Fragment,{children:"The host's target collateral as a multiple of storage price."}),suggestion:new(d())(2),suggestionTip:"The default multiplier is 2x the storage price.",validation:{required:"required"}},maxCollateral:{title:"Maximum collateral",type:"siacoin",category:"pricing",decimalsLimitSc:6,suggestion:n&&i?h(n,i):void 0,suggestionTip:"The suggested maximum collateral.",description:(0,r.jsx)(r.Fragment,{children:"The host's maximum collateral in siacoins."}),hidden:!t,validation:{required:"required"}},contractPrice:{title:"Contract price",type:"siacoin",category:"pricing",decimalsLimitSc:6,suggestionTip:"The suggested contract price.",tipsDecimalsLimitSc:1,suggestion:new(d())(.2),description:(0,r.jsx)(r.Fragment,{children:"The host's contract price in siacoins."}),hidden:!t,validation:{required:"required"}},baseRPCPrice:{title:"Base RPC price",type:"siacoin",category:"pricing",units:"SC/million",suggestion:new(d())(1),suggestionTip:"The suggested base RPC price in siacoins per million calls.",decimalsLimitSc:6,description:(0,r.jsx)(r.Fragment,{children:"The host's base RPC price in siacoins per million calls."}),hidden:!t,validation:{required:"required"}},sectorAccessPrice:{title:"Sector access price",type:"siacoin",category:"pricing",units:"SC/million",decimalsLimitSc:6,suggestion:new(d())(1),suggestionTip:"The suggested sector access price in siacoins per million sectors.",description:(0,r.jsx)(r.Fragment,{children:"The host's sector access price in siacoins per million sectors."}),hidden:!t,validation:{required:"required"}},priceTableValidity:{title:"Price table validity",type:"number",category:"pricing",units:"minutes",suggestion:new(d())(30),suggestionTip:"The suggested price table validity.",description:(0,r.jsx)(r.Fragment,{children:"How long a renter's registered price table remains valid."}),hidden:!t,validation:{required:"required"}},maxRegistryEntries:{title:"Maximum registry size",type:"number",category:"registry",units:"entries",suggestion:new(d())(1e3),suggestionTip:"The suggested maximum registry size.",decimalsLimit:0,description:(0,r.jsx)(r.Fragment,{children:"The maximum number of registry entries that the host will store. Each registry entry is up to 113 bytes."}),hidden:!t,validation:{required:"required"}},accountExpiry:{title:"Expiry",type:"number",category:"RHP3",units:"days",suggestion:new(d())(30),suggestionTip:"The suggested account expiry.",description:(0,r.jsx)(r.Fragment,{children:"How long a renter's ephemeral accounts are inactive before the host prunes them and recovers the remaining funds."}),hidden:!t,validation:{required:"required",validate:{min:e=>new(d())(e).gte(7)||"must be at least 1 week"}}},maxAccountBalance:{title:"Maximum balance",type:"siacoin",category:"RHP3",suggestion:new(d())(10),suggestionTip:"The suggested maximum account balance.",description:(0,r.jsx)(r.Fragment,{children:"Maximum balance a renter's ephemeral account can have. When the limit is reached, deposits are rejected until some of the funds have been spent."}),hidden:!t,validation:{required:"required",validate:{min:e=>new(d())(e).gte(1)||"must be at least 1 SC"}}},ingressLimit:{title:"Ingress limit",type:"number",category:"bandwidth",units:"MB/second",description:(0,r.jsx)(r.Fragment,{children:"The maximum amount of ingress bandwidth traffic in MB per second."}),validation:{required:"required"}},egressLimit:{title:"Egress limit",type:"number",category:"bandwidth",units:"MB/second",description:(0,r.jsx)(r.Fragment,{children:"The maximum amount of egress bandwidth traffic in MB per second."}),validation:{required:"required"}},dnsProvider:{title:"Dynamic DNS Provider",type:"select",category:"DNS",options:s,description:(0,r.jsx)(r.Fragment,{children:"Enable dynamic DNS with one of the supported providers."}),validation:{validate:e=>!!s.find(t=>t.value===e)||"must be one of supported providers"}},dnsIpv4:{title:"IPv4",type:"boolean",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"Whether IPv4 is enabled."}),show:e=>!!e.dnsProvider,validation:{validate:(e,t)=>!t.dnsProvider||!!(e||t.dnsIpv6)||"at least one of IPv4 and IPv6 must be enabled"},trigger:["dnsIpv6"]},dnsIpv6:{type:"boolean",title:"IPv6",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"Whether IPv6 is enabled."}),show:e=>!!e.dnsProvider,validation:{validate:(e,t)=>!t.dnsProvider||!!(e||t.dnsIpv4)||"at least one of IPv4 and IPv6 must be enabled"},trigger:["dnsIpv4"]},dnsDuckDnsToken:{type:"text",title:"Token",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"DuckDNS token."}),show:e=>"duckdns"===e.dnsProvider,validation:{validate:(e,t)=>"duckdns"!==t.dnsProvider||!!e||"required"}},dnsNoIpEmail:{type:"text",title:"Email",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"No-IP email."}),show:e=>"noip"===e.dnsProvider,validation:{validate:(e,t)=>"noip"!==t.dnsProvider||!!e||"required"}},dnsNoIpPassword:{type:"password",title:"Password",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"No-IP password."}),show:e=>"noip"===e.dnsProvider,validation:{validate:(e,t)=>"noip"!==t.dnsProvider||!!e||"required"}},dnsAwsId:{type:"text",title:"ID",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"AWS Route53 ID."}),show:e=>"route53"===e.dnsProvider,validation:{validate:(e,t)=>"route53"!==t.dnsProvider||!!e||"required"}},dnsAwsSecret:{type:"password",title:"Secret",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"AWS Route53 secret."}),show:e=>"route53"===e.dnsProvider,validation:{validate:(e,t)=>"route53"!==t.dnsProvider||!!e||"required"}},dnsAwsZoneId:{type:"text",title:"Zone ID",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"AWS Route53 zone ID."}),show:e=>"route53"===e.dnsProvider,validation:{validate:(e,t)=>"route53"!==t.dnsProvider||!!e||"required"}},dnsCloudflareToken:{type:"text",title:"Token",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"Cloudflare token."}),show:e=>"cloudflare"===e.dnsProvider,validation:{validate:(e,t)=>"cloudflare"!==t.dnsProvider||!!e||"required"}},dnsCloudflareZoneId:{type:"text",title:"Zone ID",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"Cloudflare zone ID."}),show:e=>"cloudflare"===e.dnsProvider,validation:{validate:(e,t)=>"cloudflare"!==t.dnsProvider||!!e||"required"}}}}({showAdvanced:c,storageTBMonth:w,collateralMultiplier:E,rates:null===(e=A.data)||void 0===e?void 0:e.rates})},[c,w,E,A.data]),P=(0,o.WsO)(T),N=(0,i.useMemo)(()=>b.handleSubmit(M,P),[b,M,P]),R=(0,i.useCallback)(()=>{let e=b.getValues(),t=S();if(t)for(let[n,r]of(b.reset(t),Object.entries(e)))b.setValue(n,r,{shouldDirty:!0})},[b,S]),{isUnlockedAndAuthedRoute:D}=(0,g.Hv)();(0,i.useEffect)(()=>{D&&C()},[D]),(0,i.useEffect)(()=>{b.formState.isSubmitting||R()},[b,c,k]);let L=Object.entries(b.formState.dirtyFields).filter(e=>{let[t,n]=e;return!!n}).length;return{fields:T,settings:e,dynDNSCheck:n,changeCount:L,revalidateAndResetFormData:C,form:b,onSubmit:N,showAdvanced:c,setShowAdvanced:x}}();return(0,r.jsx)(x.Provider,{value:n,children:t})}},92838:function(e,t,n){"use strict";n.d(t,{x:function(){return b},G:function(){return x}});var r=n(52322),i=n(79798),o=n(5632),a=n(27444),s=n(2784),l=n(56860),u=n(41775),c=n(25205),d=n(22515);function f(e){let{id:t,status:n,contentProps:o,buttonProps:l}=e,c=(0,a.kr)(),{openDialog:f}=(0,d.Rh)(),h=(0,s.useCallback)(async()=>{let e=await c.put({params:{id:t}});e.error?(0,i.OHV)(e.error):(0,i.OPV)((0,r.jsxs)(r.Fragment,{children:["Integrity check successfully started, depending on contract data size this operation can take a while. Check ",(0,r.jsx)(i.EKh,{children:"hostd"})," ",(0,r.jsx)(i.rUS,{onClick:()=>f("alerts"),children:"alerts"})," for status updates."]}),{duration:12e3})},[t,c,f]),p=["active","pending"].includes(n);return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...l,children:(0,r.jsx)(u.iG7,{})}),contentProps:{align:"start",...o},children:[(0,r.jsx)("div",{className:"px-1.5 py-1",children:(0,r.jsxs)(i.xvT,{size:"14",weight:"medium",color:"subtle",children:["Contract ",t.slice(0,24),"..."]})}),(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsx)(i.ua7,{content:p?"Trigger a data integrity check":"Data integrity check only available for active or pending contracts",children:(0,r.jsx)("div",{children:(0,r.jsxs)(i.Xiv,{disabled:!p,onSelect:()=>h(),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(u.dDl,{})}),"Integrity check"]})})})]})}let h=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:{id:t,status:n}}=e;return(0,r.jsx)(f,{id:t,status:n})}},{id:"contractId",label:"contract ID",category:"general",render:e=>{let{data:t,context:n}=e,{id:o,renewedFrom:a,isRenewedFrom:s,renewedTo:l,isRenewedTo:c}=t;return(0,r.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,r.jsx)(i.XxW,{size:"12",value:(0,i.I13)(o),type:"contract",siascanUrl:n.siascanUrl}),s&&(0,r.jsx)(i.ua7,{content:"Renewed from",align:"start",children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)(i.xvT,{color:"subtle",children:(0,r.jsx)(u.L6f,{className:"scale-75"})}),(0,r.jsx)(i.XxW,{color:"subtle",size:"10",type:"contract",value:(0,i.I13)(a),siascanUrl:n.siascanUrl})]})}),c&&(0,r.jsx)(i.ua7,{content:"Renewed to",align:"start",children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)(i.xvT,{color:"subtle",children:(0,r.jsx)(u.IRm,{className:"scale-75"})}),(0,r.jsx)(i.XxW,{color:"subtle",size:"10",value:(0,i.I13)(l),type:"contract",siascanUrl:n.siascanUrl})]})})]})}},{id:"status",label:"status",category:"general",render:e=>{let{data:{status:t}}=e;return(0,r.jsx)(i.Cts,{variant:"active"===t?"amber":"failed"===t?"red":"pending"===t?"amber":"rejected"===t?"red":"successful"===t?"green":void 0,children:t})}},{id:"timeline",label:"timeline",category:"time",render:e=>{let{data:t,context:{currentHeight:n,contractsTimeRange:o}}=e,{contractHeightStart:a,contractHeightEnd:s,revision:l,status:u}=t;return(0,r.jsx)("div",{className:"w-[400px]",children:(0,r.jsx)(i.TaT,{currentHeight:n,contractHeightStart:a,contractHeightEnd:"rejected"===u?void 0:s,proofWindowHeightStart:"rejected"===u?void 0:l.windowStart,proofWindowHeightEnd:"rejected"===u?void 0:l.windowEnd,range:o})})}},{id:"contractHeightStart",label:"start date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{contractHeightStart:t},context:{currentHeight:n}}=e;return(0,r.jsx)(i.xvT,{size:"12",children:(0,c.rN)((0,c.jr)(n,t))})}},{id:"contractHeightEnd",label:"expiration date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{contractHeightEnd:t},context:{currentHeight:n}}=e;return(0,r.jsx)(i.xvT,{size:"12",children:(0,c.rN)((0,c.jr)(n,t))})}},{id:"payoutHeight",label:"payout date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{payoutHeight:t},context:{currentHeight:n}}=e;return(0,r.jsx)(i.xvT,{size:"12",children:(0,c.rN)((0,c.jr)(n,t))})}},{id:"filesize",label:"data size",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{revision:{filesize:t}}}=e;return(0,r.jsx)(i.m2c,{size:"12",value:t,variant:"value",format:e=>(0,c.vW)(e.toNumber())})}},{id:"fileMerkleRoot",label:"merkle root",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{revision:{fileMerkleRoot:t}}}=e;return(0,r.jsx)(i.XxW,{size:"12",value:(0,i.I13)(t)})}},{id:"payout",label:"payout",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{revision:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.payout})}},{id:"remainingRenterFunds",label:"remaining renter funds",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{revision:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.remainingRenterFunds})}},{id:"lockedCollateral",label:"locked collateral",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{lockedCollateral:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t})}},{id:"usageRiskedCollateral",label:"risked collateral",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.riskedCollateral})}},{id:"usageTotal",label:"total usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.total})}},{id:"usageStorage",label:"storage usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.storage})}},{id:"usageIngress",label:"ingress usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.ingress})}},{id:"usageEgress",label:"egress usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.egress})}},{id:"usageAccountFunding",label:"account funding usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.accountFunding})}},{id:"usageRpc",label:"RPC usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.rpc})}}].map(e=>({...e,..."financial"===e.category?{icon:(0,r.jsx)(u.dZ8,{className:"relative opacity-50 scale-75"}),label:e.label,tip:"financial: ".concat(e.label)}:{label:e.label,tip:e.label}}));var p=n(6391),m=n.n(p),v=n(25573),g=n(90089);let y=(0,s.createContext)({}),x=()=>(0,s.useContext)(y);function b(e){let{children:t}=e,n=function(){var e,t;let n=(0,o.useRouter)(),r=Number(n.query.limit||50),u=Number(n.query.offset||0),{filters:c,setFilter:d,removeFilter:f,removeLastFilter:p,resetFilters:y}=(0,i.Uu5)(),{configurableColumns:x,enabledColumns:b,sortableColumns:w,toggleColumnVisibility:E,setColumnsVisible:j,setColumnsHidden:k,toggleSort:S,setSortDirection:_,setSortField:O,sortField:C,sortDirection:M,resetDefaultColumnVisibility:A}=(0,i.oy6)("hostd/v0/contracts",{columns:h,columnsDefaultVisible:l.gd,sortOptions:l.Fo,defaultSortField:l.nw}),T=(0,a.GP)({payload:{limit:r,offset:u,sortField:null===(e=l.Fo.find(e=>e.id===C))||void 0===e?void 0:e.value,sortDesc:"desc"===M,contractIDs:c.filter(e=>"filterContractId"===e.id).map(e=>e.value),statuses:c.filter(e=>e.id.startsWith("filterStatus")).map(e=>e.value)},config:{swr:{refreshInterval:(0,i.XBW)(60)}}}),P=function(e){let{response:t}=e;return(0,s.useMemo)(()=>{var e;return t.data?(null===(e=t.data.contracts)||void 0===e?void 0:e.map(e=>(function(e){var t;let n=new(m())(e.usage.accountFunding||0),r=new(m())(e.usage.egress||0),i=new(m())(e.usage.ingress||0),o=new(m())(e.usage.riskedCollateral||0),a=new(m())(e.usage.rpc||0),s=new(m())(e.usage.storage||0),l=n.plus(r).plus(i).plus(a).plus(s),u=e.resolutionHeight>0?e.resolutionHeight+144:e.revision.windowEnd+144;return{id:e.revision.parentID,revision:{parentID:e.revision.parentID,unlockConditions:e.revision.unlockConditions,filesize:new(m())(e.revision.filesize||0),fileMerkleRoot:e.revision.fileMerkleRoot,windowStart:e.revision.windowStart,windowEnd:e.revision.windowEnd,payout:new(m())("active"==e.status||e.resolutionHeight>0?e.revision.validProofOutputs[1].value:e.revision.missedProofOutputs[1].value),remainingRenterFunds:new(m())((null===(t=e.revision.validProofOutputs)||void 0===t?void 0:t[0].value)||0),validProofOutputs:e.revision.validProofOutputs,missedProofOutputs:e.revision.missedProofOutputs,unlockHash:e.revision.unlockHash,revisionNumber:e.revision.revisionNumber},usage:{total:l,accountFunding:n,egress:r,ingress:i,riskedCollateral:o,rpc:a,storage:s},lockedCollateral:new(m())(e.lockedCollateral||0),hostSignature:e.hostSignature,renterSignature:e.renterSignature,status:e.status,negotiationHeight:e.negotiationHeight,formationConfirmed:e.formationConfirmed,revisionConfirmed:e.revisionConfirmed,resolutionHeight:e.resolutionHeight,payoutHeight:u,contractHeightStart:e.negotiationHeight,contractHeightEnd:e.revision.windowStart,renewedTo:e.renewedTo,renewedFrom:e.renewedFrom,isRenewedFrom:"fcid:0000000000000000000000000000000000000000000000000000000000000000"!==e.renewedFrom,isRenewedTo:"fcid:0000000000000000000000000000000000000000000000000000000000000000"!==e.renewedTo}})(e)))||[]:null},[t.data])}({response:T}),N=(0,s.useMemo)(()=>h.filter(e=>b.includes(e.id)),[b]),R=T.isValidating,D=T.error,L=(0,i.c2j)(P,R,D,c),{estimatedBlockHeight:F,isSynced:V,nodeBlockHeight:z}=(0,v.n)(),I=V?z:F,{range:Z}=(0,s.useMemo)(()=>(0,i.EJC)(I,P||[]),[I,P]),B=(0,g.B)(),H=(0,s.useMemo)(()=>({contractsTimeRange:Z,currentHeight:I,siascanUrl:B}),[Z,I,B]);return{dataState:L,offset:u,limit:r,cellContext:H,pageCount:(null==P?void 0:P.length)||0,totalCount:null===(t=T.data)||void 0===t?void 0:t.count,columns:N,dataset:P,configurableColumns:x,enabledColumns:b,sortableColumns:w,toggleColumnVisibility:E,setColumnsVisible:j,setColumnsHidden:k,toggleSort:S,setSortDirection:_,setSortField:O,sortField:C,sortDirection:M,resetDefaultColumnVisibility:A,filters:c,setFilter:d,removeFilter:f,removeLastFilter:p,resetFilters:y}}();return(0,r.jsx)(y.Provider,{value:n,children:t})}},56860:function(e,t,n){"use strict";n.d(t,{Fo:function(){return i},gd:function(){return r},nw:function(){return o}});let r=["contractId","status","usageTotal","lockedCollateral","timeline"],i=[{id:"status",value:"status",label:"status",category:"general"},{id:"timeline",value:"negotiationHeight",label:"timeline",category:"time"},{id:"contractHeightStart",value:"negotiationHeight",label:"start height",category:"time"},{id:"contractHeightEnd",value:"expirationHeight",label:"expiration height",category:"time"}],o="timeline"},22515:function(e,t,n){"use strict";n.d(t,{Tu:function(){return ev},xQ:function(){return eg},Rh:function(){return em}});var r=n(52322),i=n(2784),o=n(79798),a=n(27444),s=n(25205),l=n(63955);function u(e,t,n){var r=this,o=(0,i.useRef)(null),a=(0,i.useRef)(0),s=(0,i.useRef)(null),l=(0,i.useRef)([]),u=(0,i.useRef)(),c=(0,i.useRef)(),d=(0,i.useRef)(e),f=(0,i.useRef)(!0);(0,i.useEffect)(function(){d.current=e},[e]);var h=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var p=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,v="maxWait"in n,g=v?Math.max(+n.maxWait||0,t):null;return(0,i.useEffect)(function(){return f.current=!0,function(){f.current=!1}},[]),(0,i.useMemo)(function(){var e=function(e){var t=l.current,n=u.current;return l.current=u.current=null,a.current=e,c.current=d.current.apply(n,t)},n=function(e,t){h&&cancelAnimationFrame(s.current),s.current=h?requestAnimationFrame(e):setTimeout(e,t)},i=function(e){if(!f.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||v&&e-a.current>=g},y=function(t){return s.current=null,m&&l.current?e(t):(l.current=u.current=null,c.current)},x=function e(){var r=Date.now();if(i(r))return y(r);if(f.current){var s=t-(r-o.current);n(e,v?Math.min(s,g-(r-a.current)):s)}},b=function(){var d=Date.now(),h=i(d);if(l.current=[].slice.call(arguments),u.current=r,o.current=d,h){if(!s.current&&f.current)return a.current=o.current,n(x,t),p?e(o.current):c.current;if(v)return n(x,t),e(o.current)}return s.current||n(x,t),c.current};return b.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,l.current=o.current=u.current=s.current=null},b.isPending=function(){return!!s.current},b.flush=function(){return s.current?y(Date.now()):c.current},b},[p,v,t,g,m,h])}function c(e,t){return e===t}function d(e){return"function"==typeof e?function(){return e}:e}var f=n(99182),h=n(4941),p=n(41775);function m(e){let{search:t}=e;return(0,r.jsxs)(o.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:(0,r.jsx)(p.Qbr,{})}),(0,r.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No matching directory.":"Select a directory to get started."})]})}function v(){var e;let t=(0,a.On)({config:{swr:{revalidateOnFocus:!1,keepPreviousData:!0}}});return(null===(e=t.data)||void 0===e?void 0:e.os)==="windows"?"\\":"/"}var g=n(5648),y=n.n(g),x=n(1573),b=n.n(x);function w(e){let{currentPath:t,childPath:n,separator:r}=e;return"\\"===t&&n.endsWith(":")?n+r:E(t,n,r)}function E(e,t,n){e=e===n?e:b()(e,n),t=y()(t,n);let r="";return(r=e.length?t.length&&t!==n?e===n?n+t:e+n+t:e:t).endsWith(":")?r+n:r}function j(){return(0,r.jsxs)(o.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:(0,r.jsx)(p.Qbr,{})}),(0,r.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:"Error loading directory."})]})}function k(e){let{path:t,onCreate:n}=e,s=v(),l=(0,a.Kw)(),[u,c]=(0,i.useState)(""),d=(0,i.useCallback)(async()=>{let e=await l.put({payload:{path:w({currentPath:t,childPath:u,separator:s})}});e.error?(0,o.OHV)("Error creating directory: ".concat(e.error)):(n(u),c(""))},[l,u,n,t,s]);return(0,r.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden w-full",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"group-data-[selected=true]:text-gray-1000 dark:group-data-[selected=true]:text-graydark-1000",children:(0,r.jsx)(p.L37,{})}),(0,r.jsx)("div",{className:"flex-1",children:(0,r.jsx)(o.nvn,{focus:"none",variant:"ghost",placeholder:"type new directory name",className:"!pl-0 font-normal h-5",value:u,onChange:e=>{c(e.currentTarget.value)},onKeyUp:e=>{e.stopPropagation(),"Enter"===e.key&&d()},size:"small"})})]})}function S(e){let{path:t,setPath:n,commandPage:i,currentPage:a,beforeSelect:s,afterSelect:l}=e,u=v();return(0,r.jsx)(h.WD,{commandPage:i,currentPage:a,onSelect:()=>{t&&(s&&s(),n(function(e,t){if(e.endsWith(":\\"))return t;let n="".concat(e.split(t).slice(0,-1).join(t));return""===n?t:n.endsWith(":")?n+t:n}(t,u)),l&&l())},value:"..",children:(0,r.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"group-data-[selected=true]:text-gray-1000 dark:group-data-[selected=true]:text-graydark-1000",children:(0,r.jsx)(p.ROc,{size:16})}),(0,r.jsx)(o.xvT,{ellipsis:!0,children:".."})]})},"..")}let _={namespace:"volumes/directorySelect",label:"Directory select"};function O(e){var t,n,i,a,s,l,u;let{path:c,dir:d,setPath:g,currentPage:y,beforeSelect:x,afterSelect:b}=e,E=v(),O=(null===(t=d.data)||void 0===t?void 0:t.path)===E,C=(null===(n=d.data)||void 0===n?void 0:n.path)==="\\";return(0,r.jsxs)(h.fu,{currentPage:y,commandPage:_,children:[d.isValidating||!d.data||d.error?null:O?null:(0,r.jsx)(S,{path:d.data.path,setPath:g,currentPage:y,commandPage:_,afterSelect:b,beforeSelect:x}),(0,r.jsxs)(f.mY.Empty,{children:[!d.isValidating&&d.error?(0,r.jsx)(j,{}):null,d.isValidating||d.error||(null===(a=d.data)||void 0===a?void 0:null===(i=a.directories)||void 0===i?void 0:i.length)?null:(0,r.jsx)(m,{search:c})]}),!d.isValidating&&!d.error&&(null===(l=d.data)||void 0===l?void 0:null===(s=l.directories)||void 0===s?void 0:s.length)?d.data.directories.map(e=>(0,r.jsx)(h.WD,{commandPage:_,currentPage:y,onSelect:()=>{x&&x();let t=w({currentPath:d.data.path,childPath:e,separator:E});g(t),b&&b()},value:e,children:(0,r.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"group-data-[selected=true]:text-gray-1000 dark:group-data-[selected=true]:text-graydark-1000",children:(0,r.jsx)(p.ROc,{size:16})}),(0,r.jsx)(o.xvT,{ellipsis:!0,children:e})]})},e)):null,!C&&!d.isValidating&&!d.error&&(0,r.jsx)(h.WD,{commandPage:_,currentPage:y,value:"create new directory",children:(0,r.jsx)(k,{path:null===(u=d.data)||void 0===u?void 0:u.path,onCreate:e=>{d.mutate(t=>{var n;return{...t,directories:(null==t?void 0:null===(n=t.directories)||void 0===n?void 0:n.concat(e))||[e]}})}})})]})}function C(e){let{path:t,dir:n,onChange:i}=e;return(0,r.jsx)(f.mY,{label:"Select volume",shouldFilter:!1,children:(0,r.jsx)(o.s_4,{className:"h-[200px] p-1 overflow-hidden",children:(0,r.jsx)(o.xrM,{keyToResetScrollbars:t,children:(0,r.jsx)(f.mY.List,{children:(0,r.jsx)(O,{path:t,dir:n,setPath:i,currentPage:_})})})})})}var M=n(82851);function A(e){let{label:t,newSizeGB:n,currentSizeGB:i=0,maxSizeGB:a=0}=e,l=in,c=n>a;return(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsxs)("div",{className:"relative w-full h-1 rounded-lg bg-gray-300 dark:bg-graydark-300 overflow-hidden",children:[(0,r.jsx)("div",{className:(0,M.cx)("absolute h-1 rounded-tl-lg rounded-bl-lg",void 0!==n&&u?"bg-red-500 dark:bg-red-500":"bg-gray-700 dark:bg-graydark-800",l?"z-10":"z-0"),style:{width:a?"".concat(i/a*100,"%"):"0%"}}),(0,r.jsx)("div",{className:(0,M.cx)("absolute h-1 rounded-tl-lg rounded-bl-lg",c?"bg-amber-500 dark:bg-amber-500":void 0!==n&&l?"bg-green-500 dark:bg-green-500":"bg-gray-700 dark:bg-graydark-800",u?"z-10":"z-0"),style:{width:a?"".concat(n/a*100,"%"):"0%"}})]}),(0,r.jsxs)("div",{className:"h-4 flex justify-between",children:[t||(0,r.jsx)("div",{}),void 0!==n&&a?(0,r.jsx)(o.xvT,{size:"12",color:"subtle",children:"".concat((n/a*100).toFixed(0),"% of ").concat((0,s.vW)((0,s.Hz)(a))," available")}):null]})]})}let T={size:void 0,name:"",path:"~",immediatePath:"~"};function P(e){var t;let{trigger:n,open:c,onOpenChange:d}=e,{closeDialog:f}=em(),h=(0,a.HU)(),p=v(),m=(0,l.cI)({mode:"all",defaultValues:T}),g=m.watch("path"),y=m.watch("immediatePath"),x=m.watch("name"),b=m.watch("size"),w=u(()=>{g!==y&&m.setValue("path",y)},500);(0,i.useEffect)(()=>{w()},[y]),(0,i.useEffect)(()=>{g!==y&&m.setValue("immediatePath",g)},[g]);let j=(0,i.useCallback)(async e=>{let t=await h.post({payload:{localPath:E(g,x,p),maxSectors:(0,o.WN2)(e.size).toNumber()}});t.error?(0,o.OHV)(t.error):((0,o.OPV)("New volume created."),m.reset(T),f())},[m,h,f,x,g,p]),k=(0,a.cM)({disabled:!c,params:{path:""===g?p:g},config:{swr:{shouldRetryOnError:!1}}});(0,i.useEffect)(()=>{k.error&&m.setError("immediatePath",{message:"Directory does not exist"})},[k.error]),(0,i.useEffect)(()=>{k.data&&k.data.path!==g&&m.setValue("path",k.data.path)},[k.data]);let S=(null==b?void 0:b.toNumber())||0,_=k.data?(0,s.Uz)(k.data.freeBytes).toNumber():0,O=(0,s.Uz)((null===(t=k.data)||void 0===t?void 0:t.freeBytes)||0).toNumber(),M=(0,i.useMemo)(()=>({name:{type:"text",title:"Name",placeholder:"data.dat",validation:{required:"required"}},immediatePath:{type:"text",title:"Location",placeholder:"Enter a directory or select one below",validation:{required:"required",validate:{}}},path:{type:"text",title:"Location",validation:{required:"required",validate:{req:e=>"\\"!==e||"directory within a drive required"}}},size:{type:"number",title:"Size",decimalsLimit:0,units:"GB",placeholder:"1,000",validation:{required:"required",validate:{between:e=>{let t="Must be between ".concat((0,s.vW)((0,s.Hz)(10))," and ").concat((0,s.vW)((0,s.Hz)(O),{fixed:3}));return e<=O&&e>=10||t},nospace:()=>O>10||"not enough space in directory"}}}}),[O]),P=(0,o.WsO)(M);return m.register("path",M.path.validation),(0,r.jsx)(o.VqE,{title:"Create Volume",trigger:n,open:c,onOpenChange:e=>{e||m.reset(T),d(e)},contentVariants:{className:"w-[400px]"},onSubmit:m.handleSubmit(j,P),controls:(0,r.jsx)("div",{className:"flex flex-col gap-1",children:(0,r.jsx)(o.ZqQ,{form:m,children:"Create"})}),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(o.nvN,{size:"14",children:"Create a new volume. Select a system directory and specific the size of the volume."}),(0,r.jsx)(o.yEL,{name:"name",form:m,fields:M}),(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsx)("div",{className:"flex flex-col gap-1",children:(0,r.jsx)(o.yEL,{name:"immediatePath",form:m,fields:M})}),(0,r.jsx)(C,{path:g,dir:k,onChange:e=>m.setValue("path",e,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0})})]}),(0,r.jsx)(o.jIp,{name:"size",form:m,fields:M}),(0,r.jsx)(A,{newSizeGB:S,currentSizeGB:0,maxSizeGB:_})]})})}let N={size:void 0};function R(e){var t,n;let{trigger:u,open:c,onOpenChange:d}=e,{id:f,closeDialog:h}=em(),p=v(),m=(0,a.ST)({disabled:!f,params:{id:f}}),g=(0,a.cM)({disabled:!c||!m.data,params:{path:null===(t=m.data)||void 0===t?void 0:t.localPath.split(p).slice(0,-1).join(p)}}),y=(0,a.G)(),x=(0,l.cI)({mode:"all",defaultValues:N}),b=x.watch("size"),w=(0,i.useCallback)(async e=>{let t=await y.put({params:{id:Number(f)},payload:{maxSectors:(0,o.WN2)(e.size).toNumber()}});t.error?(0,o.OHV)(t.error):((0,o.OPV)("Volume resizing initiated."),x.reset(N),h())},[x,f,y,h]);(0,i.useEffect)(()=>{m.data&&x.reset(N)},[m.data]);let E=null==b?void 0:b.toNumber(),j=m.data?(0,o.bjP)(m.data.totalSectors).toNumber():0,k=g.data?(0,s.Uz)(g.data.totalBytes).toNumber():0,S=j=1,O=(0,i.useMemo)(()=>({size:{type:"number",title:"New size",decimalsLimit:0,units:"GB",placeholder:"1,000",validation:{required:"required",validate:{between:e=>{let t="Must be between ".concat((0,s.vW)((0,s.Hz)(10))," and ").concat((0,s.vW)((0,s.Hz)(k),{fixed:3}));return e<=k&&e>=10||t}}}}}),[k]),C=(0,o.WsO)(O);return(0,r.jsx)(o.VqE,{title:"Resize Volume",trigger:u,open:c,onOpenChange:e=>{e||x.reset(N),d(e)},contentVariants:{className:"max-w-[400px]"},onSubmit:x.handleSubmit(w,C),controls:(0,r.jsx)("div",{className:"flex flex-col gap-1",children:(0,r.jsx)(o.ZqQ,{form:x,children:"Resize"})}),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsxs)(o.nvN,{size:"14",children:["Grow or shrink the volume. When growing a volume, make sure to check that there is enough space on-disk. When shrinking a volume, any data that needs to be moved will be placed into other volumes, meaning that no data will be lost. If ",(0,r.jsx)(o.EKh,{children:"hostd"})," is unable to migrate the data, an error will be returned and the operation will be stopped."]}),(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)(o.__J,{children:"Volume"}),(0,r.jsx)(o.xvT,{font:"mono",ellipsis:!0,children:null===(n=m.data)||void 0===n?void 0:n.localPath})]}),(0,r.jsx)(o.jIp,{name:"size",form:x,fields:O}),(0,r.jsx)(A,{currentSizeGB:j,newSizeGB:E,maxSizeGB:k,label:_?(0,r.jsx)(o.xvT,{size:"12",color:"subtle",children:S?"Increase by ".concat((0,s.vW)((0,s.Hz)(E-j))):"Decrease by ".concat((0,s.vW)((0,s.Hz)(j-E)))}):(0,r.jsx)(o.xvT,{size:"12",color:"subtle",children:"Current size is ".concat((0,s.vW)((0,s.Hz)(j)))})})]})})}let D={path:"",force:!1};function L(e){var t,n,u;let{trigger:c,open:d,onOpenChange:f}=e,{id:h,closeDialog:p}=em(),m=(0,a.uq)(),v=(0,a.ST)({disabled:!h,params:{id:h}}),g=(0,o.x9T)(null===(t=v.data)||void 0===t?void 0:t.totalSectors),y=(0,o.x9T)(null===(n=v.data)||void 0===n?void 0:n.usedSectors),x=null===(u=v.data)||void 0===u?void 0:u.localPath,b=(0,l.cI)({mode:"all",defaultValues:D}),w=(0,i.useCallback)(async e=>{var t;let n=await m.delete({params:{id:null===(t=v.data)||void 0===t?void 0:t.id,force:e.force}});n.error?(0,o.OHV)(n.error):((0,o.OPV)("Volume permanently deleted."),b.reset(),p())},[b,v.data,m,p]),E=(0,i.useMemo)(()=>({path:{type:"text",title:"Path",placeholder:x,validation:{required:"required",validate:{equals:e=>e===x||"directory path does not match"}}},force:{type:"boolean",title:"Force",validation:{}}}),[x]),j=(0,o.WsO)(E);return(0,r.jsx)(o.VqE,{title:"Delete Volume",trigger:c,open:d,onOpenChange:e=>{e||b.reset(D),f(e)},contentVariants:{className:"w-[400px]"},onSubmit:b.handleSubmit(w,j),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(o.nvN,{size:"14",children:"Are you sure you would like to delete the volume?"}),(0,r.jsxs)(o.nvN,{size:"14",children:[(0,r.jsx)(o.EKh,{children:"hostd"})," will move"," ",(0,r.jsx)(o.xvT,{weight:"semibold",children:(0,s.vW)(y)})," of stored data and will lose ",(0,r.jsx)(o.xvT,{weight:"semibold",children:(0,s.vW)(g)})," ","of storage capacity. It is not recommended to remove or resize volumes when contracts are about to expire."]}),(0,r.jsx)(o.nvN,{size:"14",children:"Enter the volume path to confirm the removal."}),(0,r.jsx)(o.yEL,{name:"path",form:b,fields:E}),(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(o.QBj,{name:"force",size:"medium",form:b,fields:E}),(0,r.jsx)(o.Yqd,{children:(0,r.jsx)("div",{className:"flex gap-1 max-w-[200px]",children:(0,r.jsx)(o.nvN,{size:"14",children:"Force deleting a volume will remove the volume even if the data can NOT be relocated - this will result in severe data loss and contract failure. Be extremely careful when using this option."})})})]}),(0,r.jsx)(o.ZqQ,{variant:"red",form:b,children:"Delete"})]})})}var F=n(6391),V=n.n(F);function z(){let{dialog:e,openDialog:t,closeDialog:n}=em(),s=(0,a.Os)(),l=(0,a.cj)(),u=(0,i.useCallback)(async e=>{let{sc:t,address:n}=e,r=await l.post({payload:{address:n,amount:t.toString()}});return r.error?{error:r.error}:{transactionId:r.data}},[l]);return(0,r.jsx)(o.weF,{balance:s.data?new(V())(s.data.spendable):void 0,send:u,open:"sendSiacoin"===e,onOpenChange:r=>r?t(e):n()})}var I=n(63171);function Z(){let{id:e,dialog:t,openDialog:n,closeDialog:a}=em(),{dataset:s}=(0,I.n)(),l=(0,i.useMemo)(()=>null==s?void 0:s.find(t=>t.id===e),[s,e]);return(0,r.jsx)(o.mPE,{id:e,transaction:l,open:"transactionDetails"===t,onOpenChange:e=>e?n(t):a()})}var B=n(734),H=n(95753),U=n(71930),W=n(5632);let q={namespace:"wallet",label:"Wallet"};function $(e){let{currentPage:t,parentPage:n,pushPage:i}=e,{openDialog:s,closeDialog:l}=em(),u=(0,W.useRouter)(),c=(0,a.On)({config:{swr:{revalidateOnFocus:!1,keepPreviousData:!0}}});return(0,r.jsxs)(h.fu,{currentPage:t,commandPage:q,children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:q,onSelect:()=>{i(q)},children:q.label}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:q,onSelect:()=>{u.push(U._.wallet.view),l()},children:"View wallet transactions"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:q,onSelect:()=>{s("sendSiacoin")},children:"Send siacoin"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:q,onSelect:()=>{s("addressDetails")},children:"Receive siacoin"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:q,onSelect:()=>{s("addressDetails")},children:"View wallet address"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:q,onSelect:()=>{var e;(0,o.vQq)(null===(e=c.data)||void 0===e?void 0:e.walletAddress,"wallet address"),l()},children:"Copy wallet address to clipboard"})]})}var Y=n(38617);let G={namespace:"settings",label:"Settings"};function X(e){let{currentPage:t,parentPage:n}=e,{openDialog:i,closeDialog:o}=em(),{setTheme:a}=(0,Y.F)(),{settings:s,setSettings:l,lock:u,currencyOptions:c,setCurrency:d}=(0,H.Hv)();return(0,r.jsxs)(h.fu,{currentPage:t,commandPage:G,children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:G,onSelect:()=>{i("settings")},children:"Open settings"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:G,onSelect:()=>{l({siaCentral:!s.siaCentral}),o()},children:(s.siaCentral?"Disable":"Enable")+" external API - Sia Central exchange rates"}),(0,r.jsx)(h.o4,{currentPage:t,commandPage:G,onSelect:()=>{u(),o()},children:"Lock hostd"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:G,onSelect:()=>{i("settings")},children:"Open interface theme menu"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:G,onSelect:()=>{a("system"),o()},children:"Set theme to system preference"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:G,onSelect:()=>{a("dark"),o()},children:"Set theme to dark"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:G,onSelect:()=>{a("light"),o()},children:"Set theme to light"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:G,onSelect:()=>{i("settings")},children:"Open currency settings menu"}),c.map(e=>{let{id:n,label:i}=e;return(0,r.jsx)(h.WD,{currentPage:t,commandPage:G,onSelect:()=>{d(n),o()},children:"Set currency to ".concat(i)},n)})]})}let K={namespace:"node",label:"Blockchain node"};function Q(e){let{currentPage:t,parentPage:n,pushPage:i}=e,{openDialog:o,closeDialog:a}=em(),s=(0,W.useRouter)();return(0,r.jsxs)(h.fu,{currentPage:t,commandPage:K,children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:K,onSelect:()=>{i(K)},children:K.label}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:K,onSelect:()=>{o("connectPeer")},children:"Connect to a peer"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:K,onSelect:()=>{s.push(U._.node.index),a()},children:"View peers"})]})}var J=n(99957);let ee={namespace:"configuration",label:"Configuration"};function et(e){let{currentPage:t,parentPage:n,pushPage:i}=e,o=(0,W.useRouter)(),{showAdvanced:a}=(0,J.ZR)(),{closeDialog:s}=em();return(0,r.jsxs)(h.fu,{currentPage:t,commandPage:ee,children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:ee,onSelect:()=>{i(ee)},children:ee.label}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:ee,onSelect:()=>{o.push(U._.config.index),s()},children:"Open configuration"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:ee,onSelect:()=>{o.push(U._.config.host),s()},children:"Configure host"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:ee,onSelect:()=>{o.push(U._.config.pricing),s()},children:"Configure pricing"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:ee,onSelect:()=>{o.push(U._.config.dns),s()},children:"Configure DNS"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:ee,onSelect:()=>{o.push(U._.config.bandwidth),s()},children:"Configure bandwidth"}),a&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.WD,{currentPage:t,commandPage:ee,onSelect:()=>{o.push(U._.config.registry),s()},children:"Configure registry"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:ee,onSelect:()=>{o.push(U._.config.accounts),s()},children:"Configure accounts"})]})]})}var en=n(92838);function er(e){let{search:t}=e;return(0,r.jsxs)(o.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:(0,r.jsx)(p.owP,{})}),(0,r.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No results matching query.":"Type a query to get started."})]})}var ei=n(3639);let eo={namespace:"contracts",label:"Contracts"};function ea(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,s=(0,W.useRouter)(),{closeDialog:l}=em();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(eo)},children:eo.label}),(0,r.jsx)(h.fu,{currentPage:t,commandPage:eo,children:(0,r.jsx)(h.WD,{currentPage:t,commandPage:eo,onSelect:()=>{s.push(U._.contracts.index),l()},children:"View contracts"})}),(0,r.jsx)(ei.F,{parentPage:eo,currentPage:t,beforeSelect:o,afterSelect:a,pushPage:i})]})}let es={namespace:"volumes",label:"Volumes"};function el(e){let{currentPage:t,parentPage:n,pushPage:i}=e,o=(0,W.useRouter)(),{openDialog:a,closeDialog:s}=em();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(es)},children:es.label}),(0,r.jsxs)(h.fu,{currentPage:t,commandPage:es,children:[(0,r.jsx)(h.WD,{currentPage:t,commandPage:es,onSelect:()=>{o.push(U._.volumes.index),s()},children:"View volumes"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:es,onSelect:()=>{a("volumeCreate")},children:"Create volume"})]})]})}function eu(e){var t,n,a,s,l,h,p,m,v;let{panel:g}=e,y=(0,W.useRouter)(),{resetFilters:x}=(0,en.G)(),{closeDialog:b}=em(),[w,E]=(0,i.useState)(""),[j]=(s=t&&t.equalityFn||c,h=(a=(n=(0,i.useState)(d(w)))[1],l=[n[0],(0,i.useCallback)(function(e){return a(d(e))},[])])[0],p=l[1],m=u((0,i.useCallback)(function(e){return p(e)},[p]),500,t),s((v=(0,i.useRef)(w)).current,w)||(m(w),v.current=w),[h,m]),[k,S]=(0,i.useState)([]),_=k[k.length-1],O=0===k.length,C=(0,i.useCallback)(e=>{S(t=>[...t,e])},[S]),A=(0,i.useCallback)(()=>{b()},[b]),T=(0,i.useCallback)(()=>{E("")},[E]),P=(null==_?void 0:_.empty)||er;return(0,r.jsxs)(f.mY,{label:"Command Menu",loop:!0,className:(0,M.cx)(g&&(0,o.z$)()),onKeyDown:e=>{(k.length>0&&"Escape"===e.key||"Backspace"===e.key&&!w)&&(e.preventDefault(),S(e=>e.slice(0,-1)))},children:[_&&(0,r.jsx)(o.__J,{className:"px-2",children:_.label}),(0,r.jsx)(f.mY.Input,{value:w,onValueChange:E,className:(0,o.cEb)({variant:"ghost",focus:"none"}),placeholder:(null==_?void 0:_.prompt)||(O?"Search for commands, eg: theme, redundancy":"Search commands")}),(0,r.jsx)(o.Z0O,{className:"my-2"}),(0,r.jsxs)(f.mY.List,{children:[(0,r.jsx)(f.mY.Empty,{children:(0,r.jsx)(P,{search:w,debouncedSearch:j})}),(0,r.jsx)(X,{currentPage:_,pushPage:C}),(0,r.jsx)($,{currentPage:_,pushPage:C}),(0,r.jsx)(el,{currentPage:_,pushPage:C}),(0,r.jsx)(ea,{currentPage:_,pushPage:C,beforeSelect:()=>{A(),x()},afterSelect:()=>{y.pathname.startsWith(U._.contracts.index)||y.push(U._.contracts.index),T()}}),(0,r.jsx)(et,{currentPage:_,pushPage:C}),(0,r.jsx)(Q,{currentPage:_,pushPage:C})]})]})}function ec(e){let{open:t,onOpenChange:n,setOpen:a}=e,{isUnlockedAndAuthedRoute:s}=(0,H.Hv)(),{isConnected:l}=(0,o.Y97)({route:U.h});return(0,i.useEffect)(()=>{if(!s||!l)return;let e=e=>{"k"===e.key&&e.metaKey&&a()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[s,l,a]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(o.VqE,{open:t,onOpenChange:n,contentVariants:{className:"!absolute !p-1 w-[450px] top-[200px]"},bodyClassName:"!px-1 !py-1",closeClassName:"hidden",children:(0,r.jsx)(eu,{})})})}function ed(e){let{open:t,onOpenChange:n}=e,s=(0,a.Z7)(),l=(0,a.Uy)(),u=(0,i.useCallback)(async e=>{let t=await l.post({payload:[e]});t.error?(0,o.OHV)("Error dismissing alert."):(0,o.OPV)("Alert has been dismissed.")},[l]),c=(0,i.useCallback)(async(e,t)=>{if(!s.data)return;let n=await l.post({payload:e});n.error?(0,o.OHV)(t?"Error dismissing all ".concat(t," alerts."):"Error dismissing all alerts."):(0,o.OPV)(t?"All ".concat(t," alerts have been dismissed."):"All alerts have been dismissed.")},[l,s]);return(0,r.jsx)(o.hcY,{open:t,onOpenChange:e=>{n(e)},alerts:s,dataFieldOrder:ef,dataFields:eh,dismissMany:c,dismissOne:u})}let ef=["error","contractID","blockHeight","resolution","volume","volumeID","elapsed","error","checked","missing","corrupt","total","oldSectors","currentSectors","targetSectors","migratedSectors","migrated","target","force"],eh={error:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"error"}),(0,r.jsx)(o.xvT,{color:"contrast",children:t})]})}},contractId:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"contract ID"}),(0,r.jsx)(o.XxW,{value:String(t)})]})}},blockHeight:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"block height"}),(0,r.jsx)(o.XxW,{value:String(t),type:"block"})]})}},resolution:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"resolution"}),(0,r.jsx)(o.XxW,{value:String(t)})]})}},volume:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"volume"}),(0,r.jsx)(o.XxW,{value:String(t)})]})}},volumeID:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"volume ID"}),(0,r.jsx)(o.XxW,{value:String(t)})]})}},elapsed:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"elapsed"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:(0,s.bc)(Number(t))})]})}},checked:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"checked"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},missing:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"missing"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},corrupt:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"corrupt"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},total:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"total"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},oldSectors:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"old sectors"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},currentSectors:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"current sectors"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},targetSectors:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"target sectors"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},migratedSectors:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"migrated sectors"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},migrated:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"migrated"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},target:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"target"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},force:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"force"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t?"true":"false"})]})}}},ep=(0,i.createContext)({}),em=()=>(0,i.useContext)(ep);function ev(e){let{children:t}=e,n=function(){let[e,t]=(0,i.useState)(),[n,r]=(0,i.useState)(),o=(0,i.useCallback)((e,n)=>{t(e),r(n)},[t,r]),[a,s]=(0,i.useState)(),l=(0,i.useCallback)(e=>{t("confirm"),s(e)},[t,s]),u=(0,i.useCallback)(()=>{t(void 0),r(void 0),s(void 0)},[t,r,s]),c=(0,i.useCallback)(e=>{e||u()},[u]);return{dialog:e,id:n,openDialog:o,confirm:a,openConfirmDialog:l,closeDialog:u,onOpenChange:c}}();return(0,r.jsx)(ep.Provider,{value:n,children:t})}function eg(){var e;let{dialog:t,openDialog:n,openConfirmDialog:i,onOpenChange:s,closeDialog:l,confirm:u}=em(),c=(0,a.Wl)(),d=(0,a.Os)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(ec,{open:"cmdk"===t,onOpenChange:s,setOpen:()=>n("cmdk")}),(0,r.jsx)(o.DLL,{open:"settings"===t,onOpenChange:s}),(0,r.jsx)(ed,{open:"alerts"===t,onOpenChange:s}),(0,r.jsx)(z,{}),(0,r.jsx)(o.YNn,{open:"addressDetails"===t,address:null===(e=d.data)||void 0===e?void 0:e.address,isValidating:d.isValidating,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(Z,{}),(0,r.jsx)(o.D_D,{connect:e=>c.put({payload:{address:e}}),open:"connectPeer"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(P,{open:"volumeCreate"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(R,{open:"volumeResize"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(L,{open:"volumeDelete"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(B.Y,{open:"contractsFilterContractId"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(o.QHy,{open:"confirm"===t,params:u,onOpenChange:e=>e?i(u):l()})]})}},5187:function(e,t,n){"use strict";n.d(t,{C:function(){return E},B:function(){return w}});var r=n(52322),i=n(2784),o=n(79798),a=n(25205);let s={successful:{color:o.O9T.green[600]},active:{color:o.O9T.amber[600]},pending:{color:o.O9T.amber[600],pattern:!0},rejected:{color:o.O9T.red[600]},failed:{color:o.O9T.red[600]},storage:{label:"storage",color:o.O9T.emerald[600]},storagePhysical:{color:o.O9T.indigo[600]},ingress:{label:"ingress",color:o.O9T.pink[600]},egress:{label:"egress",color:o.O9T.blue[600]},registry:{label:"registry",color:o.O9T.purple[600]},storageWrites:{label:"storage write",color:o.O9T.pink[600]},storageReads:{label:"storage read",color:o.O9T.blue[600]},registryReads:{label:"registry reads",color:o.O9T.green[600]},registryWrites:{label:"registry writes",color:o.O9T.yellow[600]},rpc:{label:"RPC",color:o.O9T.slate[500]},capacityStorage:{label:"capacity",color:o.O9T.neutral[500]},capacityRegistry:{label:"capacity",color:o.O9T.neutral[500]},contract:{color:o.O9T.red[800]},collateral:{color:o.O9T.amber[600]},sectorsTemp:{label:"temp sectors",color:o.O9T.amber[600]},sectorsContract:{label:"contract sectors",color:o.O9T.green[600]},sectorAccess:{label:"sector access",color:o.O9T.blue[600]},sc:{color:o.O9T.green[600]},sf:{color:o.O9T.amber[600]},locked:{color:o.O9T.purple[600]},risked:{color:o.O9T.amber[600]},burnt:{color:o.O9T.red[600]}};var l=n(27444);function u(e,t,n){return{...e,category:t,pattern:n}}function c(e,t,n){return{...e,category:t,label:n}}var d=n(6391),f=n.n(d),h=n(14817),p=n(66700);function m(e,t){for(var n=Math.abs(e).toString();n.length"7"===e.value),b=(0,i.createContext)({}),w=()=>(0,i.useContext)(b);function E(e){let{children:t}=e,n=function(){let[e,t]=(0,y.Z)("v0/metrics/dataTimeSpan",{defaultValue:x.value}),[n,d]=(0,y.Z)("v0/metrics/dataInterval",{defaultValue:x.interval}),b=function(e){let[t,n]=(0,i.useState)(new Date().getTime());return(0,i.useEffect)(()=>{n(new Date().getTime());let t=setInterval(()=>{n(new Date().getTime()),console.log("reset time range")},(0,h.uQ)(e));return()=>clearInterval(t)},[e]),t}(n),w=(0,i.useMemo)(()=>(0,o.OQF)(e,b),[e,b]),E=(0,i.useCallback)(e=>{let n=h.lv.find(t=>t.value===e);d(n.interval),t(n.value)},[t,d]),j=(0,i.useMemo)(()=>(0,o.kOJ)(n),[n]),k=(0,l.KU)({params:{interval:n,start:function(e,t){(0,v.Z)(1,arguments);var n=(0,p.Z)(e);if(isNaN(n.getTime()))throw RangeError("Invalid time value");var r=null!=t&&t.format?String(t.format):"extended",i=null!=t&&t.representation?String(t.representation):"complete";if("extended"!==r&&"basic"!==r)throw RangeError("format must be 'extended' or 'basic'");if("date"!==i&&"time"!==i&&"complete"!==i)throw RangeError("representation must be 'date', 'time', or 'complete'");var o="",a="",s="extended"===r?"-":"";if("time"!==i){var l=m(n.getDate(),2),u=m(n.getMonth()+1,2),c=m(n.getFullYear(),4);o="".concat(c).concat(s).concat(u).concat(s).concat(l)}if("date"!==i){var d=n.getTimezoneOffset();if(0!==d){var f=Math.abs(d),h=m(Math.floor(f/60),2),g=m(f%60,2);a="".concat(d<0?"+":"-").concat(h,":").concat(g)}else a="Z";var y=m(n.getHours(),2),x=m(n.getMinutes(),2),b=m(n.getSeconds(),2),w=""===o?"":"T",E=[y,x,b].join("extended"===r?":":"");o="".concat(o).concat(w).concat(E).concat(a)}return o}(new Date(w.start-(0,h.uQ)(n)))},config:{swr:{revalidateOnFocus:!1,refreshInterval:(0,o.sWj)(5)}}}),S=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({storagePotential:Number(e.revenue.potential.storage),ingressPotential:Number(e.revenue.potential.ingress),egressPotential:Number(e.revenue.potential.egress),rpcPotential:Number(e.revenue.potential.rpc),storage:Number(e.revenue.earned.storage),ingress:Number(e.revenue.earned.ingress),egress:Number(e.revenue.earned.egress),rpc:Number(e.revenue.earned.rpc),potential:new(f())(e.revenue.potential.storage).plus(e.revenue.potential.ingress).plus(e.revenue.potential.egress).plus(e.revenue.potential.rpc).toNumber(),earned:new(f())(e.revenue.earned.storage).plus(e.revenue.earned.ingress).plus(e.revenue.earned.egress).plus(e.revenue.earned.rpc).toNumber(),timestamp:new Date(e.timestamp).getTime()})),"delta"),n=(0,o.fVJ)(t),i=t.map(e=>({storagePotential:Math.max(e.storagePotential,0),ingressPotential:Math.max(e.ingressPotential,0),egressPotential:Math.max(e.egressPotential,0),rpcPotential:Math.max(e.rpcPotential,0),storage:Math.max(e.storage,0),ingress:Math.max(e.ingress,0),egress:Math.max(e.egress,0),rpc:Math.max(e.rpc,0),timestamp:new Date(e.timestamp).getTime()}));return{data:i,stats:n,config:{enabledGraph:["storage","storagePotential","ingress","ingressPotential","egress","egressPotential","rpc","rpcPotential"],enabledTip:["storage","storagePotential","ingress","ingressPotential","egress","egressPotential","rpc","rpcPotential"],categories:["earned","potential"],data:{storagePotential:u(s.storage,"potential",!0),ingressPotential:u(s.ingress,"potential",!0),egressPotential:u(s.egress,"potential",!0),registryReadPotential:u(s.registryReads,"potential",!0),registryWritePotential:u(s.registryWrites,"potential",!0),rpcPotential:u(s.rpc,"potential",!0),storage:u(s.storage,"earned"),ingress:u(s.ingress,"earned"),egress:u(s.egress,"earned"),registryRead:u(s.registryReads,"earned"),registryWrite:u(s.registryWrites,"earned"),rpc:u(s.rpc,"earned"),earned:c({},"earned","total"),potential:c({},"potential","total")},formatComponent:function(e){let{value:t}=e;return(0,r.jsx)(o.ho9,{variant:"value",value:new(f())(t)})},formatTickY:e=>(0,a.Vz)(e,{fixed:0,dynamicUnits:!0}),formatTimestamp:j,disableAnimations:!0,chartType:"barstack",stackOffset:"diverging"},isLoading:k.isValidating}},[k,j]),_=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({locked:Number(e.contracts.lockedCollateral),risked:Number(e.contracts.riskedCollateral),timestamp:new Date(e.timestamp).getTime()})).slice(1),"none"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["locked","risked"],enabledTip:["locked","risked"],data:{locked:s.locked,risked:s.risked},formatComponent:function(e){let{value:t}=e;return(0,r.jsx)(o.ho9,{variant:"value",value:new(f())(t)})},formatTimestamp:j,formatTickY:e=>(0,a.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:"area",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,j]),O=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({baseRPC:(0,g.sS)(e.pricing.baseRPCPrice).toNumber(),collateral:(0,g.c5)(new(f())(e.pricing.storagePrice).times(e.pricing.collateralMultiplier)).toNumber(),contract:Number(e.pricing.contractPrice),egress:(0,g.B1)(e.pricing.egressPrice).toNumber(),ingress:(0,g.dK)(e.pricing.ingressPrice).toNumber(),sectorAccess:(0,g.nS)(e.pricing.sectorAccessPrice).toNumber(),storage:(0,g.SY)(e.pricing.storagePrice).toNumber(),timestamp:new Date(e.timestamp).getTime()})).slice(1),"none"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["storage","ingress","egress","collateral","contract","sectorAccess","baseRPC"],enabledTip:["storage","ingress","egress","collateral","contract","sectorAccess","baseRPC"],data:{baseRPC:s.rpc,sectorAccess:s.sectorAccess,contract:s.contract,collateral:s.collateral,egress:s.egress,ingress:s.ingress,storage:s.storage},formatComponent:function(e){let{value:t}=e;return(0,r.jsx)(o.ho9,{variant:"value",value:new(f())(t)})},formatTimestamp:j,formatTickY:e=>(0,a.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:"line",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,j]),C=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({active:e.contracts.active,failed:e.contracts.failed,pending:e.contracts.pending,rejected:e.contracts.rejected,successful:e.contracts.successful,timestamp:new Date(e.timestamp).getTime()})).slice(1),"none"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["successful","active","pending","rejected","failed"],enabledTip:["successful","active","pending","rejected","failed"],data:{active:s.active,failed:s.failed,pending:s.pending,rejected:s.rejected,successful:s.successful},format:e=>"".concat(e," contracts"),formatTimestamp:j,formatTickY:e=>(0,a.yF)(e),disableAnimations:!0,chartType:"areastack",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,j]),M=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({maxSectors:(0,a.B$)(e.storage.totalSectors).times(4).toNumber(),tempSectors:(0,a.B$)(e.storage.tempSectors).times(4).toNumber(),physicalSectors:(0,a.B$)(e.storage.physicalSectors).times(4).toNumber(),contractSectors:(0,a.B$)(e.storage.contractSectors).times(4).toNumber(),timestamp:new Date(e.timestamp).getTime()})).slice(1),"none"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["contractSectors","physicalSectors","tempSectors","maxSectors"],enabledTip:["contractSectors","physicalSectors","tempSectors","maxSectors"],categories:["storage used","storage capacity"],data:{maxSectors:c(s.capacityStorage,"storage capacity","sectors"),physicalSectors:c(s.storagePhysical,"storage used","sectors physical"),tempSectors:c(s.sectorsTemp,"storage used","sectors temp"),contractSectors:c(s.storage,"storage used","sectors contract")},format:e=>(0,a.vW)(e),formatTimestamp:j,formatTickY:e=>(0,a.vW)(e,{fixed:0}),disableAnimations:!0,chartType:"line",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,j]),A=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({storageReads:e.storage.reads,storageWrites:e.storage.writes,timestamp:new Date(e.timestamp).getTime()})),"delta"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["storageReads","storageWrites"],enabledTip:["storageReads","storageWrites"],data:{storageReads:s.storageReads,storageWrites:s.storageWrites},format:e=>(0,a.yF)(e),formatTickY:e=>(0,a.yF)(e),formatTimestamp:j,disableAnimations:!0,chartType:"line",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,j]),T=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({egress:e.data.rhp.egress,ingress:e.data.rhp.ingress,timestamp:new Date(e.timestamp).getTime()})),"delta"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["ingress","egress"],enabledTip:["ingress","egress"],data:{ingress:s.ingress,egress:s.egress},format:e=>(0,a.vW)(e),formatTimestamp:j,formatTickY:e=>(0,a.vW)(e,{fixed:0}),disableAnimations:!0,chartType:"line",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,j]);return{dataTimeSpan:e,setDataTimeSpan:E,timeRange:w,dataInterval:n,setDataInterval:d,operations:A,revenue:S,collateral:_,contracts:C,storage:M,pricing:O,bandwidth:T}}();return(0,r.jsx)(b.Provider,{value:n,children:t})}},14817:function(e,t,n){"use strict";n.d(t,{lv:function(){return i},uQ:function(){return o}});var r=n(79798);let i=[{label:"1D",interval:"15m",value:"1"},{label:"7D",interval:"hourly",value:"7"},{label:"1M",interval:"daily",value:"30"},{label:"3M",interval:"daily",value:"90"},{label:"1Y",interval:"daily",value:"365"},{label:"ALL",interval:"weekly",value:"all"}];function o(e){return"5m"===e?(0,r.sWj)(5):"15m"===e?(0,r.sWj)(15):"hourly"===e?(0,r.ytg)(1):"daily"===e?(0,r.NrH)(1):"weekly"===e?(0,r.NrH)(7):"monthly"===e?(0,r.NrH)(30):"yearly"===e?(0,r.NrH)(365):0}},63171:function(e,t,n){"use strict";n.d(t,{n:function(){return p},v:function(){return m}});var r=n(52322),i=n(79798),o=n(27444),a=n(2784),s=n(22515),l=n(6391),u=n.n(l),c=n(5632),d=n(90089);let f=[],h=(0,a.createContext)({}),p=()=>(0,a.useContext)(h);function m(e){let{children:t}=e,n=function(){let e=(0,c.useRouter)(),t=Number(e.query.limit||50),n=Number(e.query.offset||0),r=(0,o.Qq)({params:{limit:t,offset:n},config:{swr:{refreshInterval:(0,i.XBW)(60)}}}),l=(0,o.a0)({config:{swr:{refreshInterval:(0,i.XBW)(60)}}}),{openDialog:h}=(0,s.Rh)(),p=(0,d.B)(),m=(0,a.useMemo)(()=>l.data&&r.data?[...(l.data||[]).map(e=>{let t="transaction"!==e.source;return{id:e.id,type:"transaction",unconfirmed:!0,txType:(0,i.leQ)(e.transaction,e.source),hash:e.id,inflow:e.inflow,outflow:e.outflow,sc:new(u())(e.inflow).minus(e.outflow),siascanUrl:t?void 0:p,timestamp:new Date(e.timestamp).getTime(),onClick:()=>h("transactionDetails",e.id),raw:e.transaction}}),...(r.data||[]).map(e=>{let t="transaction"!==e.source;return{id:e.id,type:"transaction",unconfirmed:!1,txType:(0,i.leQ)(e.transaction,e.source),hash:e.id,inflow:e.inflow,outflow:e.outflow,sc:new(u())(e.inflow).minus(e.outflow),siascanUrl:t?void 0:p,timestamp:new Date(e.timestamp).getTime(),onClick:()=>h("transactionDetails",e.id),raw:e.transaction}}).sort((e,t)=>e.timestamp{let e=new Date().getTime(),t=(0,i.NrH)(30);return new Date(e-t).toISOString()},[]),g=(0,o.KU)({params:{interval:"daily",start:v}}),y=(0,a.useMemo)(()=>(g.data||[]).map(e=>({sc:Number(e.balance),timestamp:new Date(e.timestamp).getTime()})).sort((e,t)=>e.timestamp>=t.timestamp?1:-1),[g.data]),x=r.error,b=(0,i.c2j)(m,r.isValidating,x,f);return{balances:y,metrics:g,dataset:m,error:x,dataState:b,offset:n,limit:t,pageCount:(null==m?void 0:m.length)||0}}();return(0,r.jsx)(h.Provider,{value:n,children:t})}},78743:function(e,t,n){"use strict";n.d(t,{Y:function(){return y},F:function(){return g}});var r=n(52322),i=n(79798),o=n(27444),a=n(2784);let s=["actions","path","storage","available","readOnly","successfulReads","successfulWrites","failedReads","failedWrites"];var l=n(41775),u=n(25205),c=n(22515);function d(e){var t,n;let{id:a,contentProps:s,buttonProps:u}=e,{openDialog:d}=(0,c.Rh)(),h=(0,o.Rz)(),p=(0,o.ST)({params:{id:a}}),m=(0,o._3)(),v=p.data&&"ready"==p.data.status,g=p.data&&!["ready","unavailable"].includes(p.data.status);return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...u,children:(0,r.jsx)(l.iG7,{})}),contentProps:{align:"start",...s},children:[(0,r.jsx)("div",{className:"px-1.5 py-1",children:(0,r.jsxs)(i.xvT,{size:"14",weight:"medium",color:"subtle",children:["Volume ",p.data?(0,i.$Gg)(null===(t=p.data)||void 0===t?void 0:t.localPath,24):a]})}),(0,r.jsx)(i.Juw,{children:"Actions"}),g?(0,r.jsxs)(i.Xiv,{onSelect:async()=>{var e;let t=null===(e=p.data)||void 0===e?void 0:e.status,n=await m.delete({params:{id:Number(a)}});n.error?(0,i.OHV)("Error canceling volume ".concat(f(t),".")):(0,i.OPV)("Successfully canceled volume ".concat(f(t),"."))},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(l.PcV,{})}),"Cancel ".concat(f(null===(n=p.data)||void 0===n?void 0:n.status))]}):null,p.data?(0,r.jsxs)(i.Xiv,{disabled:!v,onSelect:async()=>{let e=!p.data.readOnly,t=await h.put({params:{id:Number(a)},payload:{readOnly:e}});t.error?(0,i.OHV)(e?"Error setting volume to read-only.":"Error setting volume to read/write."):(0,i.OPV)(e?"Volume set to read-only.":"Volume set to read/write.")},children:[(0,r.jsx)(i.KpP,{children:p.data.readOnly?(0,r.jsx)(l.dr6,{}):(0,r.jsx)(l.Lur,{})}),p.data.readOnly?"Set to read/write":"Set to read-only"]}):null,(0,r.jsxs)(i.Xiv,{disabled:!v,onSelect:()=>d("volumeResize",a),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(l.BB5,{})}),"Resize"]}),(0,r.jsxs)(i.Xiv,{disabled:g,onSelect:()=>d("volumeDelete",a),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(l.Jrl,{})}),"Delete"]})]})}function f(e){return"resizing"===e?"resize":"creating"===e?"creation":"removing"===e?"removal":"operation"}let h=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:t}=e;return(0,r.jsx)(d,{id:t.id})}},{id:"path",label:"path",category:"general",render:e=>{let{data:t}=e;return(0,r.jsx)(i.xvT,{font:"mono",ellipsis:!0,children:t.localPath})}},{id:"available",label:"status",category:"general",render:e=>{var t;let{data:n}=e;return(0,r.jsx)(i.ua7,{side:"right",content:n.available?"available":(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.xvT,{children:"unavailable"}),(0,r.jsx)("div",{className:"flex flex-col",children:null===(t=n.errors)||void 0===t?void 0:t.map(e=>(0,r.jsx)(i.xvT,{size:"10",noWrap:!0,children:e},e))})]}),children:(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[n.available&&"ready"===n.status&&(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(l.DI$,{})}),n.available&&"ready"!==n.status&&(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(l.dsj,{})}),!n.available&&(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(l.SmH,{})}),(0,r.jsx)(i.xvT,{size:"12",className:"relative -top-px",children:n.status})]})})}},{id:"readOnly",label:"read/write",category:"general",render:e=>{let{data:t}=e;return t.readOnly?(0,r.jsx)(i.ua7,{content:"Read-only",children:(0,r.jsx)(i.xvT,{children:(0,r.jsx)(l.Lur,{})})}):(0,r.jsx)(i.ua7,{content:"Read and write enabled",children:(0,r.jsx)(i.xvT,{color:"subtle",children:(0,r.jsx)(l.dr6,{})})})}},{id:"storage",label:"storage",category:"general",render:e=>{let{data:t}=e;return(0,r.jsx)("div",{className:"flex gap-1 w-full max-w-[200px] pt-[10px]",children:(0,r.jsx)(i.kod,{variant:"accent",value:t.usedBytes,max:t.totalBytes,label:"".concat((0,u.vW)(t.usedBytes)," / ").concat((0,u.vW)(t.totalBytes))})})}},{id:"successfulReads",label:"successful reads",category:"operations",render:e=>{let{data:t}=e;return(0,r.jsx)(i.m2c,{variant:"value",size:"12",value:t.successfulReads,format:e=>e.toNumber().toLocaleString()})}},{id:"successfulWrites",label:"successful writes",category:"operations",render:e=>{let{data:t}=e;return(0,r.jsx)(i.m2c,{variant:"value",size:"12",value:t.successfulWrites,format:e=>e.toNumber().toLocaleString()})}},{id:"failedReads",label:"failed reads",category:"operations",render:e=>{let{data:t}=e;return(0,r.jsx)(i.m2c,{variant:"value",size:"12",value:t.failedReads,format:e=>e.toNumber().toLocaleString()})}},{id:"failedWrites",label:"failed writes",category:"operations",render:e=>{let{data:t}=e;return(0,r.jsx)(i.m2c,{variant:"value",size:"12",value:t.failedWrites,format:e=>e.toNumber().toLocaleString()})}}];var p=n(6391),m=n.n(p);let v=(0,a.createContext)({}),g=()=>(0,a.useContext)(v);function y(e){let{children:t}=e,n=function(){let{configurableColumns:e,enabledColumns:t,toggleColumnVisibility:n,setColumnsVisible:r,setColumnsHidden:l,toggleSort:c,setSortDirection:d,setSortField:f,sortField:p,sortDirection:v,resetDefaultColumnVisibility:g}=(0,i.oy6)("hostd/v0/volumes",{columns:h,columnsDefaultVisible:s}),y=(0,o.Fn)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.find(e=>!["ready","unavailable"].includes(e.status)))?(0,i.XBW)(5):(0,i.XBW)(60)}}}),x=function(e){let{response:t}=e;return(0,a.useMemo)(()=>{var e;return t.data?(null===(e=t.data)||void 0===e?void 0:e.map(e=>({id:String(e.id),localPath:e.localPath,usedSectors:e.usedSectors,usedBytes:new(m())(e.usedSectors).times((0,u.B$)(4)).toNumber(),totalBytes:new(m())(e.totalSectors).times((0,u.B$)(4)).toNumber(),totalSectors:e.totalSectors,status:e.status,readOnly:e.readOnly,available:e.available,failedReads:new(m())(e.failedReads),failedWrites:new(m())(e.failedWrites),successfulReads:new(m())(e.successfulReads),successfulWrites:new(m())(e.successfulWrites),errors:e.errors})))||[]:null},[t.data])}({response:y}),b=(0,a.useMemo)(()=>h.filter(e=>t.includes(e.id)),[t]),w=y.isValidating,E=y.error,j=(0,i.c2j)(x,w,E,[]);return{dataState:j,totalCount:(null==x?void 0:x.length)||0,isLoading:y.isValidating,columns:b,dataset:x,configurableColumns:e,enabledColumns:t,toggleColumnVisibility:n,setColumnsVisible:r,setColumnsHidden:l,toggleSort:c,setSortDirection:d,setSortField:f,sortField:p,sortDirection:v,resetDefaultColumnVisibility:g}}();return(0,r.jsx)(v.Provider,{value:n,children:t})}},734:function(e,t,n){"use strict";n.d(t,{O:function(){return u},Y:function(){return f}});var r=n(52322),i=n(79798),o=n(92838),a=n(63397),s=n(24511),l=n(22515);function u(e){return{id:"filterContractId",value:e,label:"contract ID is ".concat(e)}}let c={contractId:""},d=s.Ry().shape({contractId:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,o.G)(),p=(0,a.TA)({initialValues:c,validationSchema:d,onSubmit:e=>{h(u(e.contractId)),p.resetForm(),f()}});return(0,r.jsx)(i.VqE,{trigger:t,title:"Filter by contract ID",open:n,onOpenChange:e=>{e||p.resetForm(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Contract ID",name:"contractId",placeholder:"Exact match for contract ID",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},90089:function(e,t,n){"use strict";n.d(t,{B:function(){return o}});var r=n(79798),i=n(27444);function o(){var e;let t=(0,i.On)();return(null===(e=t.data)||void 0===e?void 0:e.network)==="Zen Testnet"?r.nNd.explore.testnetZen:r.nNd.explore.mainnet}},25573:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var r=n(95753),i=n(27444);function o(){var e,t,n,o;let{isUnlockedAndAuthedRoute:a}=(0,r.Hv)(),s=(0,i.d$)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.synced)?6e4:1e4}}}),l=(0,i.nH)(),u=s.data?null===(e=s.data)||void 0===e?void 0:e.chainIndex.height:0,c=(0,i.Os)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.scanHeight)>=u?6e4:1e4}}}),d=a&&u&&l?Number((100*Math.min(u/l,1)).toFixed(1)):0,f=a&&u&&c.data?Number((100*Math.min(c.data.scanHeight/l,1)).toFixed(1)):0;return{isSynced:null===(t=s.data)||void 0===t?void 0:t.synced,isWalletSynced:(null===(n=s.data)||void 0===n?void 0:n.synced)&&(null===(o=c.data)||void 0===o?void 0:o.scanHeight)>=u-1,nodeBlockHeight:u,estimatedBlockHeight:l,syncPercent:d,walletScanPercent:f,moreThan100BlocksToSync:!!u&&!!l&&l-u>100,firstTimeSyncing:!!u&&!!l&&l-u>5e4}}},94977:function(e,t,n){"use strict";n.d(t,{B1:function(){return m},K9:function(){return c},LP:function(){return v},SY:function(){return s},c5:function(){return h},co:function(){return l},dK:function(){return g},dz:function(){return a},nS:function(){return d},rZ:function(){return f},s2:function(){return p},sS:function(){return u}});var r=n(25205),i=n(6391),o=n.n(i);let a="/TB/month";function s(e){return new(o())(e).times((0,r.xf)(1)).times((0,r.S5)(1))}let l="/million";function u(e){return new(o())(e).times(1e7)}let c="/million";function d(e){return new(o())(e).times(1e7)}let f="/TB/month";function h(e){return new(o())(e).times((0,r.xf)(1)).times((0,r.S5)(1))}let p="/TB";function m(e){return new(o())(e).times((0,r.xf)(1))}let v="/TB";function g(e){return new(o())(e).times((0,r.xf)(1))}},76133:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return M}});var r=n(52322);n(37832);var i=n(79798),o=n(92838),a=n(5187),s=n(22515),l=n(78743),u=n(99957),c=n(41775),d=n(25573),f=n(71930),h=n(27444),p=n(6391),m=n.n(p),v=n(25205),g=n(95753),y=n(92762);function x(){var e;let{isUnlockedAndAuthedRoute:t}=(0,g.Hv)(),{openDialog:n}=(0,s.Rh)(),{dataset:o}=(0,l.F)(),a=(0,h.rV)(),u=(0,h.Os)(),[p,x]=(0,y.Z)("v0/hostd/onboarding/maximized",{defaultValue:!0}),w=(0,d.n)();if(!t)return null;let E=new(m())(u.data?u.data.confirmed+u.data.unconfirmed:0),j=(0,v.qN)(0),k=u.data&&E.gt(j),S=(null==o?void 0:o.length)>0,_=null===(e=a.data)||void 0===e?void 0:e.acceptingContracts,O=w.isSynced,C=[k,S,_,O],M=C.length,A=C.filter(e=>e).length;return M===A?null:p?(0,r.jsx)("div",{className:"z-20 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsx)(i.s_4,{className:"w-[400px] flex flex-col max-h-[600px]",children:(0,r.jsxs)(i.xrM,{children:[(0,r.jsxs)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)(i.TRl,{}),(0,r.jsx)(i.xvT,{size:"20",weight:"semibold",children:"Welcome to Sia"})]}),(0,r.jsx)(i.zxk,{variant:"ghost",onClick:()=>x(!1),children:(0,r.jsx)(c.mli,{})})]}),(0,r.jsx)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:(0,r.jsx)(i.xvT,{size:"14",children:"Get set up by completing the following steps. Once they are complete, your host is ready to store data."})}),(0,r.jsx)(b,{title:(0,r.jsx)(i.rUS,{href:f._.wallet.view,onClick:()=>n("addressDetails"),ellipsis:!0,size:"14",underline:"hover",children:"Step 1: Fund your wallet"}),description:"Fund your wallet with siacoin to cover required contract collateral.".concat(w.isWalletSynced?"":" Balance will not be accurate until wallet is finished scanning."),action:k?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(c.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[!w.isWalletSynced&&(0,r.jsx)(i.ua7,{content:"Wallet scanning progress ".concat(w.walletScanPercent,"%"),children:(0,r.jsxs)(i.xvT,{size:"14",children:[w.walletScanPercent,"%"]})}),(0,r.jsx)(i.rUS,{href:f._.wallet.view,onClick:()=>n("addressDetails"),children:(0,r.jsx)(c.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(c.Fs9,{})})]})}),(0,r.jsx)(b,{title:(0,r.jsx)(i.rUS,{href:f._.volumes.index,ellipsis:!0,size:"14",underline:"hover",children:"Step 2: Add a volume"}),description:"Add a system volume that will be used to store data.",action:S?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(c.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.rUS,{href:f._.volumes.index,children:(0,r.jsx)(c.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(c.Fs9,{})})]})}),(0,r.jsx)(b,{title:(0,r.jsx)(i.rUS,{href:f._.config.index,ellipsis:!0,size:"14",underline:"hover",children:"Step 3: Configure pricing and settings"}),description:"Configure your host's pricing and settings and start accepting contracts.",action:_?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(c.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.rUS,{href:f._.config.index,children:(0,r.jsx)(c.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(c.Fs9,{})})]})}),(0,r.jsx)(b,{title:(0,r.jsx)(i.rUS,{href:f._.node.index,underline:"hover",ellipsis:!0,size:"14",children:"Step 4: Wait for the blockchain to sync"}),description:"The blockchain will sync in the background, this takes some time. No user action required.",action:O?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(c.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.xvT,{ellipsis:!0,size:"14",children:[w.syncPercent,"%"]}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(c.hzZ,{})})]})})]})})}):(0,r.jsx)("div",{className:"z-30 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsx)(i.zxk,{onClick:()=>x(!0),size:"large",className:"flex gap-3 !px-3",children:(0,r.jsxs)(i.xvT,{className:"flex items-center gap-1",children:[(0,r.jsx)(i.TRl,{}),"Setup: ",A,"/",M," steps complete"]})})})}function b(e){let{title:t,action:n,description:o}=e;return(0,r.jsx)("div",{className:"border-t first:border-t-0 border-gray-200 dark:border-graydark-300 px-3 py-2",children:(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)("div",{className:"flex-1 flex items-center",children:t}),n]}),(0,r.jsx)("div",{className:"pr-5",children:(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:o})})]})})}var w=n(63171);function E(e){let{children:t}=e;return(0,r.jsx)(s.Tu,{children:(0,r.jsx)(u.iV,{children:(0,r.jsx)(w.v,{children:(0,r.jsx)(l.Y,{children:(0,r.jsx)(o.x,{children:(0,r.jsxs)(a.C,{children:[(0,r.jsx)(s.xQ,{}),(0,r.jsx)(x,{}),t]})})})})})})}var j=n(1240),k=n.n(j),S=n(49854),_=n.n(S),O=n(82851);let C=(0,O.cx)(k().variable,_().variable);function M(e){let{Component:t,pageProps:n}=e;return(0,r.jsx)(i.PD$,{className:C,fallback:n.fallback,passwordProtectRequestHooks:!0,lockRoutes:f._,children:(0,r.jsx)(E,{children:(0,r.jsx)(t,{...n})})})}},79798:function(e,t,n){"use strict";let r,i,o,a;n.d(t,{hcY:function(){return SI},tU3:function(){return SL},zXq:function(){return S1},juT:function(){return Ss},Cts:function(){return lf},Z58:function(){return _R},WVB:function(){return c_},zxk:function(){return s5},b0u:function(){return EP},EKh:function(){return lm},vRO:function(){return Ot},QHy:function(){return _J},TaT:function(){return _$},eQh:function(){return lg},HfT:function(){return _2},ncR:function(){return k$},A06:function(){return _z},Vy9:function(){return _I},VqE:function(){return l3},h_2:function(){return cT},Xiv:function(){return cP},Juw:function(){return cN},KpP:function(){return cR},XOF:function(){return kq},jIp:function(){return On},QBj:function(){return Or},yEL:function(){return SK},cB7:function(){return kJ},ZqQ:function(){return kQ},IKw:function(){return k5},WN2:function(){return Ov},X6q:function(){return cz},Yqd:function(){return fb},__J:function(){return cY},rUS:function(){return cK},TRl:function(){return cJ},kFS:function(){return cO},FzK:function(){return _X},Clw:function(){return cS},PD$:function(){return Ol},Wxm:function(){return fk},uDJ:function(){return k7},wFK:function(){return k9},s_4:function(){return tG},nvN:function(){return t$},u5Q:function(){return _D},j4H:function(){return fw},J2e:function(){return df},kod:function(){return d_},xrM:function(){return l1},PhF:function(){return fj},Z0O:function(){return cb},DLL:function(){return _k},KJW:function(){return Sd},rsf:function(){return fI},D_D:function(){return _p},iA_:function(){return k6},t6k:function(){return _4},xvT:function(){return tq},nvn:function(){return dJ},ua7:function(){return s4},mPE:function(){return _m},XxW:function(){return ky},m2c:function(){return kS},ho9:function(){return kk},QUh:function(){return __},weF:function(){return _t},YNn:function(){return _y},DmW:function(){return _x},O9T:function(){return mJ},fVJ:function(){return _T},vQq:function(){return kl},NrH:function(){return EO},Y_Z:function(){return _O},EJC:function(){return Og},kOJ:function(){return _A},OQF:function(){return _C},leQ:function(){return kf},ytg:function(){return E_},Vkc:function(){return cE},sWj:function(){return ES},z$:function(){return tY},XBW:function(){return EC},x9T:function(){return Op},bjP:function(){return Om},I13:function(){return kc},cEb:function(){return dQ},OHV:function(){return ko},OPV:function(){return ki},$Gg:function(){return ku},Y97:function(){return SD},c2j:function(){return SF},WsO:function(){return SX},Uu5:function(){return Oh},oy6:function(){return Of},nNd:function(){return _b}});var s,l,u,c,d,f,h,p,m,v,g,y,x=n(52322),b=n(2784),w=n.t(b,2),E=n(7896),j=n(34540),k=n(26215),S=n(99575);function _(e){let t=e+"CollectionProvider",[n,r]=(0,j.b)(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=b.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(a,n),s=(0,k.e)(t,i.collectionRef);return b.createElement(S.g7,{ref:s},r)}),l=e+"CollectionItemSlot",u="data-radix-collection-item",c=b.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=b.useRef(null),s=(0,k.e)(t,a),c=o(l,n);return b.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),b.createElement(S.g7,{[u]:"",ref:s},r)});return[{Provider:e=>{let{scope:t,children:n}=e,r=b.useRef(null),o=b.useRef(new Map).current;return b.createElement(i,{scope:t,itemMap:o,collectionRef:r},n)},Slot:s,ItemSlot:c},function(t){let n=o(e+"CollectionConsumer",t),r=b.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()),i=r.sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return i},[n.collectionRef,n.itemMap]);return r},r]}var O=n(41816),C=n(73597),M=n(72130),A=n(64680),T=n(28245),P=n(26074);let N="Collapsible",[R,D]=(0,j.b)(N),[L,F]=R(N),V=((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:o,onOpenChange:a,...s}=e,[l=!1,u]=(0,C.T)({prop:r,defaultProp:i,onChange:a});return(0,b.createElement)(L,{scope:n,disabled:o,contentId:(0,P.M)(),open:l,onOpenToggle:(0,b.useCallback)(()=>u(e=>!e),[u])},(0,b.createElement)(M.WV.div,(0,E.Z)({"data-state":I(l),"data-disabled":o?"":void 0},s,{ref:t})))},"CollapsibleContent"),z=((e,t)=>{let{forceMount:n,...r}=e,i=F(V,e.__scopeCollapsible);return(0,b.createElement)(T.z,{present:n||i.open},({present:e})=>(0,b.createElement)(z,(0,E.Z)({},r,{ref:t,present:e})))},(0,b.forwardRef)((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...o}=e,a=F(V,n),[s,l]=(0,b.useState)(r),u=(0,b.useRef)(null),c=(0,k.e)(t,u),d=(0,b.useRef)(0),f=d.current,h=(0,b.useRef)(0),p=h.current,m=a.open||s,v=(0,b.useRef)(m),g=(0,b.useRef)();return(0,b.useEffect)(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,A.b)(()=>{let e=u.current;if(e){g.current=g.current||{transitionDuration:e.style.transitionDuration,animationDuration:e.style.animationDuration,animationFillMode:e.style.animationFillMode},e.style.transitionDuration="0s",e.style.animationDuration="0s",e.style.animationFillMode="none";let t=e.getBoundingClientRect();d.current=t.height,h.current=t.width,v.current||(e.style.transitionDuration=g.current.transitionDuration,e.style.animationDuration=g.current.animationDuration,e.style.animationFillMode=g.current.animationFillMode),l(r)}},[a.open,r]),(0,b.createElement)(M.WV.div,(0,E.Z)({"data-state":I(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!m},o,{ref:c,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":p?`${p}px`:void 0,...e.style}}),m&&i)}));function I(e){return e?"open":"closed"}let Z="Accordion",B=["Home","End","ArrowDown","ArrowUp"],[H,U,W]=_(Z),[q,$]=(0,j.b)(Z,[W,D]),Y=(D(),b.forwardRef((e,t)=>{let{type:n,...r}=e;return b.createElement(H.Provider,{scope:e.__scopeAccordion},"multiple"===n?b.createElement(ee,(0,E.Z)({},r,{ref:t})):b.createElement(J,(0,E.Z)({},r,{ref:t})))}));Y.propTypes={type(e){let t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):"multiple"===e.type&&"string"==typeof t?Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):"single"===e.type&&Array.isArray(t)?Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};let[G,X]=q(Z),[K,Q]=q(Z,{collapsible:!1}),J=b.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:o=!1,...a}=e,[s,l]=(0,C.T)({prop:n,defaultProp:r,onChange:i});return b.createElement(G,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:l,onItemClose:b.useCallback(()=>o&&l(""),[o,l])},b.createElement(K,{scope:e.__scopeAccordion,collapsible:o},b.createElement(er,(0,E.Z)({},a,{ref:t}))))}),ee=b.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...o}=e,[a=[],s]=(0,C.T)({prop:n,defaultProp:r,onChange:i}),l=b.useCallback(e=>s((t=[])=>[...t,e]),[s]),u=b.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return b.createElement(G,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:u},b.createElement(K,{scope:e.__scopeAccordion,collapsible:!0},b.createElement(er,(0,E.Z)({},o,{ref:t}))))}),[et,en]=q(Z),er=b.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:r,...i}=e,o=b.useRef(null),a=(0,k.e)(o,t),s=U(n),l=(0,O.M)(e.onKeyDown,e=>{var t;if(!B.includes(e.key))return;let n=e.target,r=s().filter(e=>{var t;return!(null!==(t=e.ref.current)&&void 0!==t&&t.disabled)}),i=r.findIndex(e=>e.ref.current===n),o=r.length;if(-1===i)return;e.preventDefault();let a=i;switch(e.key){case"Home":a=0;break;case"End":a=o-1;break;case"ArrowDown":a=i+1;break;case"ArrowUp":(a=i-1)<0&&(a=o-1)}let l=a%o;null===(t=r[l].ref.current)||void 0===t||t.focus()});return b.createElement(et,{scope:n,disabled:r},b.createElement(H.Slot,{scope:n},b.createElement(M.WV.div,(0,E.Z)({},i,{ref:a,onKeyDown:r?void 0:l}))))}),[ei,eo]=q("AccordionItem");var ea=n(82851),es=n(83317);function el(e){return e.split("-")[0]}function eu(e){return e.split("-")[1]}function ec(e){return["top","bottom"].includes(el(e))?"x":"y"}function ed(e){return"y"===e?"height":"width"}function ef(e,t,n){let r,{reference:i,floating:o}=e,a=i.x+i.width/2-o.width/2,s=i.y+i.height/2-o.height/2,l=ec(t),u=ed(l),c=i[u]/2-o[u]/2,d="x"===l;switch(el(t)){case"top":r={x:a,y:i.y-o.height};break;case"bottom":r={x:a,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:s};break;case"left":r={x:i.x-o.width,y:s};break;default:r={x:i.x,y:i.y}}switch(eu(t)){case"start":r[l]-=c*(n&&d?-1:1);break;case"end":r[l]+=c*(n&&d?-1:1)}return r}let eh=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=await (null==a.isRTL?void 0:a.isRTL(t)),l=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=ef(l,r,s),d=r,f={},h=0;for(let n=0;n({name:"arrow",options:e,async fn(t){let{element:n,padding:r=0}=null!=e?e:{},{x:i,y:o,placement:a,rects:s,platform:l}=t;if(null==n)return{};let u=ep(r),c={x:i,y:o},d=ec(a),f=eu(a),h=ed(d),p=await l.getDimensions(n),m="y"===d?"top":"left",v="y"===d?"bottom":"right",g=s.reference[h]+s.reference[d]-c[d]-s.floating[h],y=c[d]-s.reference[d],x=await (null==l.getOffsetParent?void 0:l.getOffsetParent(n)),b=x?"y"===d?x.clientHeight||0:x.clientWidth||0:0;0===b&&(b=s.floating[h]);let w=u[m],E=b-p[h]-u[v],j=b/2-p[h]/2+(g/2-y/2),k=ey(w,eg(j,E)),S=("start"===f?u[m]:u[v])>0&&j!==k&&s.reference[h]<=s.floating[h];return{[d]:c[d]-(S?jeb[e])}let eE={start:"end",end:"start"};function ej(e){return e.replace(/start|end/g,e=>eE[e])}let ek=["top","right","bottom","left"];ek.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);let eS=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o;let{placement:a,middlewareData:s,rects:l,initialPlacement:u,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",flipAlignment:v=!0,...g}=e,y=el(a),x=p||(y!==u&&v?function(e){let t=ew(e);return[ej(e),t,ej(t)]}(u):[ew(u)]),b=[u,...x],w=await ev(t,g),E=[],j=(null==(n=s.flip)?void 0:n.overflows)||[];if(f&&E.push(w[y]),h){let{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);let r=eu(e),i=ec(e),o=ed(i),a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=ew(a)),{main:a,cross:ew(a)}}(a,l,await (null==c.isRTL?void 0:c.isRTL(d.floating)));E.push(w[e],w[t])}if(j=[...j,{placement:a,overflows:E}],!E.every(e=>e<=0)){let e=(null!=(r=null==(i=s.flip)?void 0:i.index)?r:0)+1,t=b[e];if(t)return{data:{index:e,overflows:j},reset:{placement:t}};let n="bottom";switch(m){case"bestFit":{let e=null==(o=j.map(e=>[e,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0].placement;e&&(n=e);break}case"initialPlacement":n=u}if(a!==n)return{reset:{placement:n}}}return{}}}};function e_(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function eO(e){return ek.some(t=>e[t]>=0)}let eC=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){let{rects:r}=e;switch(t){case"referenceHidden":{let t=e_(await ev(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:eO(t)}}}case"escaped":{let t=e_(await ev(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:eO(t)}}}default:return{}}}}},eM=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){let{x:n,y:r}=t,i=await async function(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),a=el(n),s=eu(n),l="x"===ec(n),u=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,d="function"==typeof t?t(e):t,{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}(t,e);return{x:n+i.x,y:r+i.y,data:i}}}};function eA(e){return"x"===e?"y":"x"}let eT=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=e,u={x:n,y:r},c=await ev(t,l),d=ec(el(i)),f=eA(d),h=u[d],p=u[f];if(o){let e="y"===d?"bottom":"right";h=ey(h+c["y"===d?"top":"left"],eg(h,h-c[e]))}a&&(p=ey(p+c["y"===f?"top":"left"],eg(p,p-c["y"===f?"bottom":"right"])));let m=s.fn({...t,[d]:h,[f]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}},eP=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=e,c={x:n,y:r},d=ec(i),f=eA(d),h=c[d],p=c[f],m="function"==typeof s?s({...o,placement:i}):s,v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let e="y"===d?"height":"width",t=o.reference[d]-o.floating[e]+v.mainAxis,n=o.reference[d]+o.reference[e]-v.mainAxis;hn&&(h=n)}if(u){var g,y,x,b;let e="y"===d?"width":"height",t=["top","left"].includes(el(i)),n=o.reference[f]-o.floating[e]+(t&&null!=(g=null==(y=a.offset)?void 0:y[f])?g:0)+(t?0:v.crossAxis),r=o.reference[f]+o.reference[e]+(t?0:null!=(x=null==(b=a.offset)?void 0:b[f])?x:0)-(t?v.crossAxis:0);pr&&(p=r)}return{[d]:h,[f]:p}}}};function eN(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function eR(e){if(null==e)return window;if(!eN(e)){let t=e.ownerDocument;return t&&t.defaultView||window}return e}function eD(e){return eR(e).getComputedStyle(e)}function eL(e){return eN(e)?"":e?(e.nodeName||"").toLowerCase():""}function eF(){let e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function eV(e){return e instanceof eR(e).HTMLElement}function ez(e){return e instanceof eR(e).Element}function eI(e){return"undefined"!=typeof ShadowRoot&&(e instanceof eR(e).ShadowRoot||e instanceof ShadowRoot)}function eZ(e){let{overflow:t,overflowX:n,overflowY:r}=eD(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function eB(e){let t=/firefox/i.test(eF()),n=eD(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function eH(){return!/^((?!chrome|android).)*safari/i.test(eF())}let eU=Math.min,eW=Math.max,eq=Math.round;function e$(e,t,n){var r,i,o,a;void 0===t&&(t=!1),void 0===n&&(n=!1);let s=e.getBoundingClientRect(),l=1,u=1;t&&eV(e)&&(l=e.offsetWidth>0&&eq(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&eq(s.height)/e.offsetHeight||1);let c=ez(e)?eR(e):window,d=!eH()&&n,f=(s.left+(d&&null!=(r=null==(i=c.visualViewport)?void 0:i.offsetLeft)?r:0))/l,h=(s.top+(d&&null!=(o=null==(a=c.visualViewport)?void 0:a.offsetTop)?o:0))/u,p=s.width/l,m=s.height/u;return{width:p,height:m,top:h,right:f+p,bottom:h+m,left:f,x:f,y:h}}function eY(e){return((e instanceof eR(e).Node?e.ownerDocument:e.document)||window.document).documentElement}function eG(e){return ez(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function eX(e){return e$(eY(e)).left+eG(e).scrollLeft}function eK(e){return"html"===eL(e)?e:e.assignedSlot||e.parentNode||(eI(e)?e.host:null)||eY(e)}function eQ(e){return eV(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function eJ(e){let t=eR(e),n=eQ(e);for(;n&&["table","td","th"].includes(eL(n))&&"static"===getComputedStyle(n).position;)n=eQ(n);return n&&("html"===eL(n)||"body"===eL(n)&&"static"===getComputedStyle(n).position&&!eB(n))?t:n||function(e){let t=eK(e);for(eI(t)&&(t=t.host);eV(t)&&!["html","body"].includes(eL(t));){if(eB(t))return t;t=t.parentNode}return null}(e)||t}function e0(e){if(eV(e))return{width:e.offsetWidth,height:e.offsetHeight};let t=e$(e);return{width:t.width,height:t.height}}function e1(e,t){var n;void 0===t&&(t=[]);let r=function e(t){let n=eK(t);return["html","body","#document"].includes(eL(n))?t.ownerDocument.body:eV(n)&&eZ(n)?n:e(n)}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=eR(r),a=i?[o].concat(o.visualViewport||[],eZ(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(e1(a))}function e2(e,t,n){return"viewport"===t?em(function(e,t){let n=eR(e),r=eY(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=eH();(e||!e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n)):ez(t)?function(e,t){let n=e$(e,!1,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft;return{top:r,left:i,x:i,y:r,right:i+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):em(function(e){var t;let n=eY(e),r=eG(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=eW(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=eW(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+eX(e),l=-r.scrollTop;return"rtl"===eD(i||n).direction&&(s+=eW(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(eY(e)))}let e4={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?function(e){let t=e1(e),n=["absolute","fixed"].includes(eD(e).position)&&eV(e)?eJ(e):e;return ez(n)?t.filter(e=>ez(e)&&function(e,t){let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&eI(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==eL(e)):[]}(t):[].concat(n),r],a=o[0],s=o.reduce((e,n)=>{let r=e2(t,n,i);return e.top=eW(r.top,e.top),e.right=eU(r.right,e.right),e.bottom=eU(r.bottom,e.bottom),e.left=eW(r.left,e.left),e},e2(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=eV(n),o=eY(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==eL(n)||eZ(o))&&(a=eG(n)),eV(n))){let e=e$(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:ez,getDimensions:e0,getOffsetParent:eJ,getDocumentElement:eY,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:function(e,t,n){let r=eV(t),i=eY(t),o=e$(e,r&&function(e){let t=e$(e);return eq(t.width)!==e.offsetWidth||eq(t.height)!==e.offsetHeight}(t),"fixed"===n),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&"fixed"!==n){if(("body"!==eL(t)||eZ(i))&&(a=eG(t)),eV(t)){let e=e$(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=eX(i))}return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}(t,eJ(n),r),floating:{...e0(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===eD(e).direction};function e3(e,t,n,r){void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=i&&!s,u=o&&!s,c=l||u?[...ez(e)?e1(e):[],...e1(t)]:[];c.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let d,f=null;if(a){let r=!0;f=new ResizeObserver(()=>{r||n(),r=!1}),ez(e)&&!s&&f.observe(e),f.observe(t)}let h=s?e$(e):null;return s&&function t(){let r=e$(e);h&&(r.x!==h.x||r.y!==h.y||r.width!==h.width||r.height!==h.height)&&n(),h=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{l&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}let e5=(e,t,n)=>eh(e,t,{platform:e4,...n});var e6=n(28316),e8="undefined"!=typeof document?b.useLayoutEffect:b.useEffect;function e7(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:i}=void 0===e?{}:e,o=b.useRef(null),a=b.useRef(null),s=function(e){let t=b.useRef(e);return e8(()=>{t.current=e}),t}(i),l=b.useRef(null),[u,c]=b.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=b.useState(t);!function e(t,n){let r,i,o;if(t===n)return!0;if(typeof t!=typeof n)return!1;if("function"==typeof t&&t.toString()===n.toString())return!0;if(t&&n&&"object"==typeof t){if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){let r=o[i];if(("_owner"!==r||!t.$$typeof)&&!e(t[r],n[r]))return!1}return!0}return t!=t&&n!=n}(null==d?void 0:d.map(e=>{let{options:t}=e;return t}),null==t?void 0:t.map(e=>{let{options:t}=e;return t}))&&f(t);let h=b.useCallback(()=>{o.current&&a.current&&e5(o.current,a.current,{middleware:d,placement:n,strategy:r}).then(e=>{p.current&&e6.flushSync(()=>{c(e)})})},[d,n,r]);e8(()=>{p.current&&h()},[h]);let p=b.useRef(!1);e8(()=>(p.current=!0,()=>{p.current=!1}),[]);let m=b.useCallback(()=>{if("function"==typeof l.current&&(l.current(),l.current=null),o.current&&a.current){if(s.current){let e=s.current(o.current,a.current,h);l.current=e}else h()}},[h,s]),v=b.useCallback(e=>{o.current=e,m()},[m]),g=b.useCallback(e=>{a.current=e,m()},[m]),y=b.useMemo(()=>({reference:o,floating:a}),[]);return b.useMemo(()=>({...u,update:h,refs:y,reference:v,floating:g}),[u,h,y,v,g])}let e9=e=>{let{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){if(Object.prototype.hasOwnProperty.call(t,"current")){if(null!=t.current)return ex({element:t.current,padding:n}).fn(e)}else if(t)return ex({element:t,padding:n}).fn(e);return{}}}},te=(0,b.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,b.createElement)(M.WV.svg,(0,E.Z)({},o,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,b.createElement)("polygon",{points:"0,0 30,0 15,10"}))});function tt(e){let[t,n]=(0,b.useState)(void 0);return(0,A.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}let tn="Popper",[tr,ti]=(0,j.b)(tn),[to,ta]=tr(tn),ts=(0,b.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,o=ta("PopperAnchor",n),a=(0,b.useRef)(null),s=(0,k.e)(t,a);return(0,b.useEffect)(()=>{o.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,b.createElement)(M.WV.div,(0,E.Z)({},i,{ref:s}))}),tl="PopperContent",[tu,tc]=tr(tl),[td,tf]=tr(tl,{hasParent:!1,positionUpdateFns:new Set}),th=(0,b.forwardRef)((e,t)=>{var n,r,i,o,a,s,l,u;let{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:h="center",alignOffset:p=0,arrowPadding:m=0,collisionBoundary:v=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:x=!1,avoidCollisions:w=!0,...E}=e,j=ta(tl,c),[S,_]=(0,b.useState)(null),O=(0,k.e)(t,e=>_(e)),[C,T]=(0,b.useState)(null),P=tt(C),N=null!==(n=null==P?void 0:P.width)&&void 0!==n?n:0,R=null!==(r=null==P?void 0:P.height)&&void 0!==r?r:0,D="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},L=Array.isArray(v)?v:[v],F=L.length>0,V={padding:D,boundary:L.filter(tg),altBoundary:F},{reference:z,floating:I,strategy:Z,x:B,y:H,placement:U,middlewareData:W,update:q}=e7({strategy:"fixed",placement:d+("center"!==h?"-"+h:""),whileElementsMounted:e3,middleware:[eM({mainAxis:f+R,alignmentAxis:p}),w?eT({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?eP():void 0,...V}):void 0,C?e9({element:C,padding:m}):void 0,w?eS({...V}):void 0,ty({arrowWidth:N,arrowHeight:R}),x?eC({strategy:"referenceHidden"}):void 0].filter(tv)});(0,A.b)(()=>{z(j.anchor)},[z,j.anchor]);let $=null!==B&&null!==H,[Y,G]=tx(U),X=null===(i=W.arrow)||void 0===i?void 0:i.x,K=null===(o=W.arrow)||void 0===o?void 0:o.y,Q=(null===(a=W.arrow)||void 0===a?void 0:a.centerOffset)!==0,[J,ee]=(0,b.useState)();(0,A.b)(()=>{S&&ee(window.getComputedStyle(S).zIndex)},[S]);let{hasParent:et,positionUpdateFns:en}=tf(tl,c),er=!et;(0,b.useLayoutEffect)(()=>{if(!er)return en.add(q),()=>{en.delete(q)}},[er,en,q]),(0,b.useLayoutEffect)(()=>{er&&$&&Array.from(en).reverse().forEach(e=>requestAnimationFrame(e))},[er,$,en]);let ei={"data-side":Y,"data-align":G,...E,ref:O,style:{...E.style,animation:$?void 0:"none",opacity:null!==(s=W.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,b.createElement)("div",{ref:I,"data-radix-popper-content-wrapper":"",style:{position:Z,left:0,top:0,transform:$?`translate3d(${Math.round(B)}px, ${Math.round(H)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[null===(l=W.transformOrigin)||void 0===l?void 0:l.x,null===(u=W.transformOrigin)||void 0===u?void 0:u.y].join(" ")}},(0,b.createElement)(tu,{scope:c,placedSide:Y,onArrowChange:T,arrowX:X,arrowY:K,shouldHideArrow:Q},er?(0,b.createElement)(td,{scope:c,hasParent:!0,positionUpdateFns:en},(0,b.createElement)(M.WV.div,ei)):(0,b.createElement)(M.WV.div,ei)))}),tp={top:"bottom",right:"left",bottom:"top",left:"right"},tm=(0,b.forwardRef)(function(e,t){let{__scopePopper:n,...r}=e,i=tc("PopperArrow",n),o=tp[i.placedSide];return(0,b.createElement)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},(0,b.createElement)(te,(0,E.Z)({},r,{ref:t,style:{...r.style,display:"block"}})))});function tv(e){return void 0!==e}function tg(e){return null!==e}let ty=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=tx(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(r=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+d/2,g=(null!==(o=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==o?o:0)+f/2,y="",x="";return"bottom"===h?(y=c?m:`${v}px`,x=`${-f}px`):"top"===h?(y=c?m:`${v}px`,x=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,x=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,x=c?m:`${g}px`),{data:{x:y,y:x}}}});function tx(e){let[t,n="center"]=e.split("-");return[t,n]}let tb=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,b.useState)(null);return(0,b.createElement)(to,{scope:t,anchor:r,onAnchorChange:i},n)};var tw=n(6500);let tE=(0,b.forwardRef)((e,t)=>(0,b.createElement)(M.WV.span,(0,E.Z)({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),[tj,tk]=(0,j.b)("Tooltip",[ti]),tS=ti(),t_="tooltip.open",[tO,tC]=tj("TooltipProvider"),tM="Tooltip",[tA,tT]=tj(tM),tP="TooltipTrigger",tN=(0,b.forwardRef)((e,t)=>{let{__scopeTooltip:n,...r}=e,i=tT(tP,n),o=tC(tP,n),a=tS(n),s=(0,b.useRef)(null),l=(0,k.e)(t,s,i.onTriggerChange),u=(0,b.useRef)(!1),c=(0,b.useRef)(!1),d=(0,b.useCallback)(()=>u.current=!1,[]);return(0,b.useEffect)(()=>()=>document.removeEventListener("pointerup",d),[d]),(0,b.createElement)(ts,(0,E.Z)({asChild:!0},a),(0,b.createElement)(M.WV.button,(0,E.Z)({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},r,{ref:l,onPointerMove:(0,O.M)(e.onPointerMove,e=>{"touch"===e.pointerType||c.current||o.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:(0,O.M)(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:(0,O.M)(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:(0,O.M)(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:(0,O.M)(e.onBlur,i.onClose),onClick:(0,O.M)(e.onClick,e=>{let t=0===e.detail;t&&i.onClose()})})))}),tR="TooltipPortal",[tD,tL]=tj(tR,{forceMount:void 0}),tF="TooltipContent",tV=(0,b.forwardRef)((e,t)=>{let n=tL(tF,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,a=tT(tF,e.__scopeTooltip);return(0,b.createElement)(T.z,{present:r||a.open},a.disableHoverableContent?(0,b.createElement)(tB,(0,E.Z)({side:i},o,{ref:t})):(0,b.createElement)(tz,(0,E.Z)({side:i},o,{ref:t})))}),tz=(0,b.forwardRef)((e,t)=>{let n=tT(tF,e.__scopeTooltip),r=tC(tF,e.__scopeTooltip),i=(0,b.useRef)(null),o=(0,k.e)(t,i),[a,s]=(0,b.useState)(null),{trigger:l,onClose:u}=n,c=i.current,{onPointerInTransitChange:d}=r,f=(0,b.useCallback)(()=>{s(null),d(!1)},[d]),h=(0,b.useCallback)((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:return null}}(r,n.getBoundingClientRect()),o="right"===i||"bottom"===i?-5:5,a="right"===i||"left"===i?{x:e.clientX+o,y:e.clientY}:{x:e.clientX,y:e.clientY+o},l=function(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}(t.getBoundingClientRect()),u=function(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y?1:0),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}([a,...l]);s(u),d(!0)},[d]);return(0,b.useEffect)(()=>()=>f(),[f]),(0,b.useEffect)(()=>{if(l&&c){let e=e=>h(e,c),t=e=>h(e,l);return l.addEventListener("pointerleave",e),c.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),c.removeEventListener("pointerleave",t)}}},[l,c,h,f]),(0,b.useEffect)(()=>{if(a){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==l?void 0:l.contains(t))||(null==c?void 0:c.contains(t)),i=!function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;er!=u>r&&n<(l-a)*(r-s)/(u-s)+a;c&&(i=!i)}return i}(n,a);r?f():i&&(f(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[l,c,a,u,f]),(0,b.createElement)(tB,(0,E.Z)({},e,{ref:o}))}),[tI,tZ]=tj(tM,{isInside:!1}),tB=(0,b.forwardRef)((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:a,...s}=e,l=tT(tF,n),u=tS(n),{onClose:c}=l;return(0,b.useEffect)(()=>(document.addEventListener(t_,c),()=>document.removeEventListener(t_,c)),[c]),(0,b.useEffect)(()=>{if(l.trigger){let e=e=>{let t=e.target;null!=t&&t.contains(l.trigger)&&c()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[l.trigger,c]),(0,b.createElement)(es.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:c},(0,b.createElement)(th,(0,E.Z)({"data-state":l.stateAttribute},u,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),(0,b.createElement)(S.A4,null,r),(0,b.createElement)(tI,{scope:n,isInside:!0},(0,b.createElement)(tE,{id:l.contentId,role:"tooltip"},i||r))))}),tH=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:o,disableHoverableContent:a,delayDuration:s}=e,l=tC(tM,e.__scopeTooltip),u=tS(t),[c,d]=(0,b.useState)(null),f=(0,P.M)(),h=(0,b.useRef)(0),p=null!=a?a:l.disableHoverableContent,m=null!=s?s:l.delayDuration,v=(0,b.useRef)(!1),[g=!1,y]=(0,C.T)({prop:r,defaultProp:i,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(t_))):l.onClose(),null==o||o(e)}}),x=(0,b.useMemo)(()=>g?v.current?"delayed-open":"instant-open":"closed",[g]),w=(0,b.useCallback)(()=>{window.clearTimeout(h.current),v.current=!1,y(!0)},[y]),E=(0,b.useCallback)(()=>{window.clearTimeout(h.current),y(!1)},[y]),j=(0,b.useCallback)(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,y(!0)},m)},[m,y]);return(0,b.useEffect)(()=>()=>window.clearTimeout(h.current),[]),(0,b.createElement)(tb,u,(0,b.createElement)(tA,{scope:t,contentId:f,open:g,stateAttribute:x,trigger:c,onTriggerChange:d,onTriggerEnter:(0,b.useCallback)(()=>{l.isOpenDelayed?j():w()},[l.isOpenDelayed,j,w]),onTriggerLeave:(0,b.useCallback)(()=>{p?E():window.clearTimeout(h.current)},[E,p]),onOpen:w,onClose:E,disableHoverableContent:p},n))},tU=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=tT(tR,t);return(0,b.createElement)(tD,{scope:t,forceMount:n},(0,b.createElement)(T.z,{present:n||o.open},(0,b.createElement)(tw.h,{asChild:!0,container:i},r)))},tW=(0,ea.j)([],{variants:{display:{default:"inline-block",none:""},font:{mono:"font-mono",sans:"font-sans"},color:{verySubtle:"text-gray-700 dark:text-graydark-700",subtle:"text-gray-1000 dark:text-graydark-1000",contrast:"text-gray-1100 dark:text-white",lo:"text-white dark:text-graydark-50",accent:"text-accent-1100 dark:text-accentdark-1100",red:"text-red-700 dark:text-red-400",green:"text-emerald-700 dark:text-emerald-500",amber:"text-amber-600 dark:text-amber-500",none:""},weight:{extrabold:"font-extrabold",bold:"font-bold",medium:"font-medium",semibold:"font-semibold",regular:"font-normal",normal:"font-normal",light:"font-light",none:""},size:{10:"text-xxs",12:"text-xs",14:"text-sm",16:"text-base",18:"text-lg",20:"text-xl",24:"text-2xl",30:"text-3xl",36:"text-4xl",40:"text-5xl",48:"text-5xl",60:"text-6xl",64:"text-6xl"},scaleSize:{12:"text-xxs md:text-xs",14:"text-xs md:text-sm",16:"text-sm md:text-base",18:"text-base md:text-lg",20:"text-base md:text-xl",24:"text-xl md:text-2xl",30:"text-2xl md:text-3xl",36:"text-3xl md:text-4xl",40:"text-4xl md:text-5xl",48:"text-4xl md:text-5xl",60:"text-5xl md:text-6xl",64:"text-5xl md:text-6xl"},noWrap:{true:"whitespace-nowrap"},underline:{accent:"underline underline-offset-2 decoration-2 decoration-accent-900 dark:decoration-accentdark-900",show:"underline underline-offset-2 decoration-gray-1100 dark:decoration-gray-500",hover:"hover:underline underline-offset-2 decoration-gray-1100 dark:decoration-gray-500",none:""},ellipsis:{true:"overflow-hidden text-ellipsis whitespace-nowrap"},wrapEllipsis:{true:"overflow-hidden text-ellipsis"}},defaultVariants:{display:"default",weight:"regular",font:"sans",color:"contrast",underline:"none"}}),tq=b.forwardRef((e,t)=>{let{tag:n="span",className:r,font:i,color:o,weight:a,size:s,scaleSize:l,noWrap:u,underline:c,ellipsis:d,wrapEllipsis:f,...h}=e;return(0,x.jsx)(n,{ref:t,className:(0,ea.cx)(r,tW({font:i,color:o,weight:a,size:s,scaleSize:l,underline:c,noWrap:u,ellipsis:d,wrapEllipsis:f})),...h})}),t$=b.forwardRef((e,t)=>{let{size:n="18",...r}=e;return(0,x.jsx)(tq,{tag:"p",...r,ref:t,weight:"regular",scaleSize:n,color:"subtle",className:(0,ea.cx)("leading-relaxed md:leading-relaxed",e.className)})}),tY=(0,ea.j)(["bg-white dark:bg-graydark-200","transition-shadow ease-in-out duration-300","shadow-sm hover:shadow","rounded","border","border-gray-400 dark:border-graydark-400"]),tG=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)("div",{ref:t,className:tY({className:n}),...r})});var tX=n(34406);let tK=(void 0===tX||tX.env,"production"),tQ=1/60*1e3,tJ="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),t0="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(tJ()),tQ),t1=!0,t2=!1,t4=!1,t3={delta:0,timestamp:0},t5=["read","update","preRender","render","postRender"],t6=t5.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,o=!1,a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{let l=s&&i,u=l?t:n;return o&&a.add(e),-1===u.indexOf(e)&&(u.push(e),l&&i&&(r=t.length)),e},cancel:e=>{let t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length)for(let n=0;nt2=!0),e),{}),t8=t5.reduce((e,t)=>{let n=t6[t];return e[t]=(e,t=!1,r=!1)=>(t2||nn(),n.schedule(e,t,r)),e},{}),t7=t5.reduce((e,t)=>(e[t]=t6[t].cancel,e),{}),t9=t5.reduce((e,t)=>(e[t]=()=>t6[t].process(t3),e),{}),ne=e=>t6[e].process(t3),nt=e=>{t2=!1,t3.delta=t1?tQ:Math.max(Math.min(e-t3.timestamp,40),1),t3.timestamp=e,t4=!0,t5.forEach(ne),t4=!1,t2&&(t1=!1,t0(nt))},nn=()=>{t2=!0,t1=!0,t4||t0(nt)},nr=()=>t3,ni="undefined"!=typeof document,no=ni?b.useLayoutEffect:b.useEffect;function na(){let e=(0,b.useRef)(!1);return no(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let ns=(0,b.createContext)(null);function nl(e){let t=(0,b.useRef)(null);return null===t.current&&(t.current=e()),t.current}class nu extends b.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function nc({children:e,isPresent:t}){let n=(0,b.useId)(),r=(0,b.useRef)(null),i=(0,b.useRef)({width:0,height:0,top:0,left:0});return(0,b.useInsertionEffect)(()=>{let{width:e,height:o,top:a,left:s}=i.current;if(t||!r.current||!e||!o)return;r.current.dataset.motionPopId=n;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` - [data-motion-pop-id="${n}"] { - position: absolute !important; - width: ${e}px !important; - height: ${o}px !important; - top: ${a}px !important; - left: ${s}px !important; - } - `),()=>{document.head.removeChild(l)}},[t]),b.createElement(nu,{isPresent:t,childRef:r,sizeRef:i},b.cloneElement(e,{ref:r}))}let nd=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{let s=nl(nf),l=(0,b.useId)(),u=(0,b.useMemo)(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:e=>{for(let t of(s.set(e,!0),s.values()))if(!t)return;r&&r()},register:e=>(s.set(e,!1),()=>s.delete(e))}),o?void 0:[n]);return(0,b.useMemo)(()=>{s.forEach((e,t)=>s.set(t,!1))},[n]),b.useEffect(()=>{n||s.size||!r||r()},[n]),"popLayout"===a&&(e=b.createElement(nc,{isPresent:n},e)),b.createElement(ns.Provider,{value:u},e)};function nf(){return new Map}let nh=(0,b.createContext)({});function np(e){return(0,b.useEffect)(()=>()=>e(),[])}let nm=new Set;function nv(e,t,n){e||nm.has(t)||(console.warn(t),n&&console.warn(n),nm.add(t))}let ng=e=>e.key||"",ny=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",nv(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=function(){let e=na(),[t,n]=(0,b.useState)(0),r=(0,b.useCallback)(()=>{e.current&&n(t+1)},[t]),i=(0,b.useCallback)(()=>t8.postRender(r),[r]);return[i,t]}(),l=(0,b.useContext)(nh).forceRender;l&&(s=l);let u=na(),c=function(e){let t=[];return b.Children.forEach(e,e=>{(0,b.isValidElement)(e)&&t.push(e)}),t}(e),d=c,f=new Set,h=(0,b.useRef)(d),p=(0,b.useRef)(new Map).current,m=(0,b.useRef)(!0);if(no(()=>{m.current=!1,function(e,t){e.forEach(e=>{let n=ng(e);t.set(n,e)})}(c,p),h.current=d}),np(()=>{m.current=!0,p.clear(),f.clear()}),m.current)return b.createElement(b.Fragment,null,d.map(e=>b.createElement(nd,{key:ng(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:o,mode:a},e)));d=[...d];let v=h.current.map(ng),g=c.map(ng),y=v.length;for(let e=0;e{if(-1!==g.indexOf(e))return;let n=p.get(e);if(!n)return;let i=v.indexOf(e);d.splice(i,0,b.createElement(nd,{key:ng(n),isPresent:!1,onExitComplete:()=>{p.delete(e),f.delete(e);let t=h.current.findIndex(t=>t.key===e);if(h.current.splice(t,1),!f.size){if(h.current=c,!1===u.current)return;s(),r&&r()}},custom:t,presenceAffectsLayout:o,mode:a},n))}),d=d.map(e=>{let t=e.key;return f.has(t)?e:b.createElement(nd,{key:ng(e),isPresent:!0,presenceAffectsLayout:o,mode:a},e)}),"production"!==tK&&"wait"===a&&d.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.'),b.createElement(b.Fragment,null,f.size?d:d.map(e=>(0,b.cloneElement)(e)))},nx=(0,b.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),nb=(0,b.createContext)({}),nw=(0,b.createContext)({strict:!1});function nE(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function nj(e){return"string"==typeof e||Array.isArray(e)}function nk(e){return"object"==typeof e&&"function"==typeof e.start}let nS=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function n_(e){return nk(e.animate)||nS.some(t=>nj(e[t]))}function nO(e){return!!(n_(e)||e.variants)}function nC(e){return Array.isArray(e)?e.join(" "):e}let nM=e=>({isEnabled:t=>e.some(e=>!!t[e])}),nA={measureLayout:nM(["layout","layoutId","drag"]),animation:nM(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:nM(["exit"]),drag:nM(["drag","dragControls"]),focus:nM(["whileFocus"]),hover:nM(["whileHover","onHoverStart","onHoverEnd"]),tap:nM(["whileTap","onTap","onTapStart","onTapCancel"]),pan:nM(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:nM(["whileInView","onViewportEnter","onViewportLeave"])},nT={hasAnimatedSinceResize:!0,hasEverUpdated:!1},nP=1;class nN extends b.Component{getSnapshotBeforeUpdate(){let{visualElement:e,props:t}=this.props;return e&&e.setProps(t),null}componentDidUpdate(){}render(){return this.props.children}}let nR=(0,b.createContext)({}),nD=Symbol.for("motionComponentSymbol"),nL=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function nF(e){if("string"!=typeof e||e.includes("-"));else if(nL.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let nV={},nz=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],nI=new Set(nz);function nZ(e,{layout:t,layoutId:n}){return nI.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!nV[e]||"opacity"===e)}let nB=e=>!!(null==e?void 0:e.getVelocity),nH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nU=(e,t)=>nz.indexOf(e)-nz.indexOf(t);function nW(e){return e.startsWith("--")}let nq=(e,t)=>t&&"number"==typeof e?t.transform(e):e,n$=(e,t)=>n=>Math.max(Math.min(n,t),e),nY=e=>e%1?Number(e.toFixed(5)):e,nG=/(-)?([\d]*\.?[\d])+/g,nX=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,nK=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function nQ(e){return"string"==typeof e}let nJ=e=>({test:t=>nQ(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),n0=nJ("deg"),n1=nJ("%"),n2=nJ("px"),n4=nJ("vh"),n3=nJ("vw"),n5=Object.assign(Object.assign({},n1),{parse:e=>n1.parse(e)/100,transform:e=>n1.transform(100*e)}),n6={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},n8=Object.assign(Object.assign({},n6),{transform:n$(0,1)}),n7=Object.assign(Object.assign({},n6),{default:1}),n9={...n6,transform:Math.round},re={borderWidth:n2,borderTopWidth:n2,borderRightWidth:n2,borderBottomWidth:n2,borderLeftWidth:n2,borderRadius:n2,radius:n2,borderTopLeftRadius:n2,borderTopRightRadius:n2,borderBottomRightRadius:n2,borderBottomLeftRadius:n2,width:n2,maxWidth:n2,height:n2,maxHeight:n2,size:n2,top:n2,right:n2,bottom:n2,left:n2,padding:n2,paddingTop:n2,paddingRight:n2,paddingBottom:n2,paddingLeft:n2,margin:n2,marginTop:n2,marginRight:n2,marginBottom:n2,marginLeft:n2,rotate:n0,rotateX:n0,rotateY:n0,rotateZ:n0,scale:n7,scaleX:n7,scaleY:n7,scaleZ:n7,skew:n0,skewX:n0,skewY:n0,distance:n2,translateX:n2,translateY:n2,translateZ:n2,x:n2,y:n2,z:n2,perspective:n2,transformPerspective:n2,opacity:n8,originX:n5,originY:n5,originZ:n2,zIndex:n9,fillOpacity:n8,strokeOpacity:n8,numOctaves:n9};function rt(e,t,n,r){let{style:i,vars:o,transform:a,transformKeys:s,transformOrigin:l}=e;s.length=0;let u=!1,c=!1,d=!0;for(let e in t){let n=t[e];if(nW(e)){o[e]=n;continue}let r=re[e],f=nq(n,r);if(nI.has(e)){if(u=!0,a[e]=f,s.push(e),!d)continue;n!==(r.default||0)&&(d=!1)}else e.startsWith("origin")?(c=!0,l[e]=f):i[e]=f}if(!t.transform&&(u||r?i.transform=function({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},i,o){let a="";for(let n of(t.sort(nU),t))a+=`${nH[n]||n}(${e[n]}) `;return n&&!e.z&&(a+="translateZ(0)"),a=a.trim(),o?a=o(e,i?"":a):r&&i&&(a="none"),a}(e,n,d,r):i.transform&&(i.transform="none")),c){let{originX:e="50%",originY:t="50%",originZ:n=0}=l;i.transformOrigin=`${e} ${t} ${n}`}}let rn=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function rr(e,t,n){for(let r in t)nB(t[r])||nZ(r,n)||(e[r]=t[r])}function ri(e,t,n){let r={},i=function(e,t,n){let r=e.style||{},i={};return rr(i,r,e),Object.assign(i,function({transformTemplate:e},t,n){return(0,b.useMemo)(()=>{let r=rn();return rt(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}(e,t,n)),e.transformValues?e.transformValues(i):i}(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),r.style=i,r}let ro=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll","whileInView","onViewportEnter","onViewportLeave","viewport","whileTap","onTap","onTapStart","onTapCancel","animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView","onPan","onPanStart","onPanSessionStart","onPanEnd"]);function ra(e){return ro.has(e)}let rs=e=>!ra(e);try{(EL=require("@emotion/is-prop-valid").default)&&(rs=e=>e.startsWith("on")?!ra(e):EL(e))}catch(e){}function rl(e,t,n){return"string"==typeof e?e:n2.transform(t+n*e)}let ru={offset:"stroke-dashoffset",array:"stroke-dasharray"},rc={offset:"strokeDashoffset",array:"strokeDasharray"};function rd(e,{attrX:t,attrY:n,originX:r,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:s=0,...l},u,c){rt(e,l,u,c),e.attrs=e.style,e.style={};let{attrs:d,style:f,dimensions:h}=e;d.transform&&(h&&(f.transform=d.transform),delete d.transform),h&&(void 0!==r||void 0!==i||f.transform)&&(f.transformOrigin=function(e,t,n){let r=rl(t,e.x,e.width),i=rl(n,e.y,e.height);return`${r} ${i}`}(h,void 0!==r?r:.5,void 0!==i?i:.5)),void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==o&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?ru:rc;e[o.offset]=n2.transform(-r);let a=n2.transform(t),s=n2.transform(n);e[o.array]=`${a} ${s}`}(d,o,a,s,!1)}let rf=()=>({...rn(),attrs:{}});function rh(e,t){let n=(0,b.useMemo)(()=>{let n=rf();return rd(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};rr(t,e.style,e),n.style={...t,...n.style}}return n}let rp=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function rm(e,{style:t,vars:n},r,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(r)),n)e.style.setProperty(o,n[o])}let rv=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function rg(e,t,n,r){for(let n in rm(e,t,void 0,r),t.attrs)e.setAttribute(rv.has(n)?n:rp(n),t.attrs[n])}function ry(e){let{style:t}=e,n={};for(let r in t)(nB(t[r])||nZ(r,e))&&(n[r]=t[r]);return n}function rx(e){let t=ry(e);for(let n in e)if(nB(e[n])){let r="x"===n||"y"===n?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function rb(e,t,n,r={},i={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),t}let rw=e=>Array.isArray(e),rE=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),rj=e=>rw(e)?e[e.length-1]||0:e;function rk(e){let t=nB(e)?e.get():e;return rE(t)?t.toValue():t}let rS=e=>(t,n)=>{let r=(0,b.useContext)(nb),i=(0,b.useContext)(ns),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){let a={latestValues:function(e,t,n,r){let i={},o=r(e);for(let e in o)i[e]=rk(o[e]);let{initial:a,animate:s}=e,l=n_(e),u=nO(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial;c=c||!1===a;let d=c?s:a;if(d&&"boolean"!=typeof d&&!nk(d)){let t=Array.isArray(d)?d:[d];t.forEach(t=>{let n=rb(e,t);if(!n)return;let{transitionEnd:r,transition:o,...a}=n;for(let e in a){let t=a[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let e in r)i[e]=r[e]})}return i}(r,i,o,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a})(e,t,r,i);return n?o():nl(o)},r_={useVisualState:rS({scrapeMotionValuesFromProps:rx,createRenderState:rf,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}rd(n,r,{enableHardwareAcceleration:!1},e.transformTemplate),rg(t,n)}})},rO={useVisualState:rS({scrapeMotionValuesFromProps:ry,createRenderState:rn})};function rC(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function rM(e,t,n,r){(0,b.useEffect)(()=>{let i=e.current;if(n&&i)return rC(i,t,n,r)},[e,t,n,r])}function rA(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function rT(e){let t=!!e.touches;return t}(EF=EB||(EB={})).Animate="animate",EF.Hover="whileHover",EF.Tap="whileTap",EF.Drag="whileDrag",EF.Focus="whileFocus",EF.InView="whileInView",EF.Exit="exit";let rP={pageX:0,pageY:0};function rN(e,t="page"){return{point:rT(e)?function(e,t="page"){let n=e.touches[0]||e.changedTouches[0],r=n||rP;return{x:r[t+"X"],y:r[t+"Y"]}}(e,t):function(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}(e,t)}}let rR=(e,t=!1)=>{let n=t=>e(t,rN(t));return t?e=>{let t=e instanceof MouseEvent,r=!t||t&&0===e.button;r&&n(e)}:n},rD=()=>ni&&null===window.onpointerdown,rL=()=>ni&&null===window.ontouchstart,rF=()=>ni&&null===window.onmousedown,rV={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},rz={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function rI(e){if(rD());else if(rL())return rz[e];else if(rF())return rV[e];return e}function rZ(e,t,n,r){return rC(e,rI(t),rR(n,"pointerdown"===t),r)}function rB(e,t,n,r){return rM(e,rI(t),n&&rR(n,"pointerdown"===t),r)}function rH(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let rU=rH("dragHorizontal"),rW=rH("dragVertical");function rq(e){let t=!1;if("y"===e)t=rW();else if("x"===e)t=rU();else{let e=rU(),n=rW();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function r$(){let e=rq(!0);return!e||(e(),!1)}function rY(e,t,n){return(r,i)=>{!(!rA(r)||r$())&&(e.animationState&&e.animationState.setActive(EB.Hover,t),n&&n(r,i))}}let rG=(e,t)=>!!t&&(e===t||rG(e,t.parentElement)),rX=(e,t)=>n=>t(e(n)),rK=(...e)=>e.reduce(rX),rQ=new WeakMap,rJ=new WeakMap,r0=e=>{let t=rQ.get(e.target);t&&t(e)},r1=e=>{e.forEach(r0)},r2={some:0,all:1};function r4(e,t,n,{root:r,margin:i,amount:o="some",once:a}){(0,b.useEffect)(()=>{if(!e||!n.current)return;let s={root:null==r?void 0:r.current,rootMargin:i,threshold:"number"==typeof o?o:r2[o]};return function(e,t,n){let r=function({root:e,...t}){let n=e||document;rJ.has(n)||rJ.set(n,{});let r=rJ.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(r1,{root:e,...t})),r[i]}(t);return rQ.set(e,n),r.observe(e),()=>{rQ.delete(e),r.unobserve(e)}}(n.current,s,e=>{let{isIntersecting:r}=e;if(t.isInView===r||(t.isInView=r,a&&!r&&t.hasEnteredView))return;r&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(EB.InView,r);let i=n.getProps(),o=r?i.onViewportEnter:i.onViewportLeave;o&&o(e)})},[e,r,i,o])}function r3(e,t,n,{fallback:r=!0}){(0,b.useEffect)(()=>{e&&r&&("production"!==tK&&nv(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;let{onViewportEnter:e}=n.getProps();e&&e(null),n.animationState&&n.animationState.setActive(EB.InView,!0)}))},[e])}let r5=e=>t=>(e(t),null),r6={inView:r5(function({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:i={}}){let o=(0,b.useRef)({hasEnteredView:!1,isInView:!1}),a=!!(t||n||r);i.once&&o.current.hasEnteredView&&(a=!1);let s="undefined"==typeof IntersectionObserver?r3:r4;s(a,o.current,e,i)}),tap:r5(function({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:i}){let o=e||t||n||r,a=(0,b.useRef)(!1),s=(0,b.useRef)(null),l={passive:!(t||e||n||h)};function u(){s.current&&s.current(),s.current=null}function c(){return u(),a.current=!1,i.animationState&&i.animationState.setActive(EB.Tap,!1),!r$()}function d(t,r){c()&&(rG(i.current,t.target)?e&&e(t,r):n&&n(t,r))}function f(e,t){c()&&n&&n(e,t)}function h(e,n){u(),!a.current&&(a.current=!0,s.current=rK(rZ(window,"pointerup",d,l),rZ(window,"pointercancel",f,l)),i.animationState&&i.animationState.setActive(EB.Tap,!0),t&&t(e,n))}rB(i,"pointerdown",o?h:void 0,l),np(u)}),focus:r5(function({whileFocus:e,visualElement:t}){let{animationState:n}=t;rM(t,"focus",e?()=>{n&&n.setActive(EB.Focus,!0)}:void 0),rM(t,"blur",e?()=>{n&&n.setActive(EB.Focus,!1)}:void 0)}),hover:r5(function({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){rB(r,"pointerenter",e||n?rY(r,!0,e):void 0,{passive:!e}),rB(r,"pointerleave",t||n?rY(r,!1,t):void 0,{passive:!t})})};function r8(){let e=(0,b.useContext)(ns);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:r}=e,i=(0,b.useId)();return(0,b.useEffect)(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function r7(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;rt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var ie=function(){},it=function(){};let ir=(e,t,n)=>Math.min(Math.max(n,e),t);function ii(e,t){return e*Math.sqrt(1-t*t)}let io=["duration","bounce"],ia=["stiffness","damping","mass"];function is(e,t){return t.some(t=>void 0!==e[t])}function il(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=r9(e,["from","to","restSpeed","restDelta"]);let a={done:!1,value:t},{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!is(e,ia)&&is(e,io)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;ie(e<=1e4,"Spring duration must be 10 seconds or less");let a=1-t;a=ir(.05,1,a),e=ir(.01,10,e/1e3),a<1?(i=t=>{let r=t*a,i=r*e,o=ii(t,a),s=Math.exp(-i);return .001-(r-n)/o*s},o=t=>{let r=t*a,o=r*e,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-o),u=ii(Math.pow(t,2),a),c=-i(t)+.001>0?-1:1;return c*((o*n+n-s)*l)/u}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return -.001+r*i},o=t=>{let r=Math.exp(-t*e),i=(n-t)*(e*e);return r*i});let s=5/e,l=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,s);if(e*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(l,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);(t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(o),h=iu,p=iu;function m(){let e=c?-(c/1e3):0,r=n-t,o=l/(2*Math.sqrt(s*u)),a=Math.sqrt(s/u)/1e3;if(void 0===i&&(i=Math.min(Math.abs(n-t)/100,.4)),o<1){let t=ii(a,o);h=i=>{let s=Math.exp(-o*a*i);return n-s*((e+o*a*r)/t*Math.sin(t*i)+r*Math.cos(t*i))},p=n=>{let i=Math.exp(-o*a*n);return o*a*i*(Math.sin(t*n)*(e+o*a*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+o*a*r)-t*r*Math.sin(t*n))}}else if(1===o)h=t=>n-Math.exp(-a*t)*(r+(e+a*r)*t);else{let t=a*Math.sqrt(o*o-1);h=i=>{let s=Math.exp(-o*a*i),l=Math.min(t*i,300);return n-s*((e+o*a*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return m(),{next:e=>{let t=h(e);if(f)a.done=e>=d;else{let o=1e3*p(e),s=Math.abs(o)<=r,l=Math.abs(n-t)<=i;a.done=s&&l}return a.value=a.done?n:t,a},flipTarget:()=>{c=-c,[t,n]=[n,t],m()}}}il.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let iu=e=>0,ic=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r},id=(e,t,n)=>-n*e+n*t+e,ih=(e,t)=>n=>!!(nQ(n)&&nK.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),ip=(e,t,n)=>r=>{if(!nQ(r))return r;let[i,o,a,s]=r.match(nG);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},im=n$(0,255),iv=Object.assign(Object.assign({},n6),{transform:e=>Math.round(im(e))}),ig={test:ih("rgb","red"),parse:ip("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+iv.transform(e)+", "+iv.transform(t)+", "+iv.transform(n)+", "+nY(n8.transform(r))+")"},iy={test:ih("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:ig.transform},ix={test:ih("hsl","hue"),parse:ip("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+n1.transform(nY(t))+", "+n1.transform(nY(n))+", "+nY(n8.transform(r))+")"};function ib(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function iw({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=ib(s,r,e+1/3),o=ib(s,r,e),a=ib(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}let iE=(e,t,n)=>{let r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},ij=[iy,ig,ix],ik=e=>ij.find(t=>t.test(e)),iS=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,i_=(e,t)=>{let n=ik(e),r=ik(t);it(!!n,iS(e)),it(!!r,iS(t));let i=n.parse(e),o=r.parse(t);n===ix&&(i=iw(i),n=ig),r===ix&&(o=iw(o),r=ig);let a=Object.assign({},i);return e=>{for(let t in a)"alpha"!==t&&(a[t]=iE(i[t],o[t],e));return a.alpha=id(i.alpha,o.alpha,e),n.transform(a)}},iO={test:e=>ig.test(e)||iy.test(e)||ix.test(e),parse:e=>ig.test(e)?ig.parse(e):ix.test(e)?ix.parse(e):iy.parse(e),transform:e=>nQ(e)?e:e.hasOwnProperty("red")?ig.transform(e):ix.transform(e)},iC="${c}",iM="${n}";function iA(e){"number"==typeof e&&(e=`${e}`);let t=[],n=0,r=e.match(nX);r&&(n=r.length,e=e.replace(nX,iC),t.push(...r.map(iO.parse)));let i=e.match(nG);return i&&(e=e.replace(nG,iM),t.push(...i.map(n6.parse))),{values:t,numColors:n,tokenised:e}}function iT(e){return iA(e).values}function iP(e){let{values:t,numColors:n,tokenised:r}=iA(e),i=t.length;return e=>{let t=r;for(let r=0;r"number"==typeof e?0:e,iR={test:function(e){var t,n,r,i;return isNaN(e)&&nQ(e)&&(null!==(n=null===(t=e.match(nG))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(nX))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:iT,createTransformer:iP,getAnimatableNone:function(e){let t=iT(e),n=iP(e);return n(t.map(iN))}},iD=e=>"number"==typeof e;function iL(e,t){return iD(e)?n=>id(e,t,n):iO.test(e)?i_(e,t):iI(e,t)}let iF=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>iL(e,t[n]));return e=>{for(let t=0;t{let n=Object.assign(Object.assign({},e),t),r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=iL(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}};function iz(e){let t=iR.parse(e),n=t.length,r=0,i=0,o=0;for(let e=0;e{let n=iR.createTransformer(t),r=iz(e),i=iz(t),o=r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers;return o?rK(iF(r.parsed,i.parsed),n):(ie(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?t:e}`)},iZ=(e,t)=>n=>id(e,t,n);function iB(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;it(o===t.length,"Both input and output ranges must be the same length"),it(!r||!Array.isArray(r)||r.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let a=function(e,t,n){var r;let i=[],o=n||("number"==typeof(r=e[0])?iZ:"string"==typeof r?iO.test(r)?i_:iI:Array.isArray(r)?iF:"object"==typeof r?iV:void 0),a=e.length-1;for(let n=0;nn(ic(e,t,r))}(e,a):function(e,t){let n=e.length,r=n-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[r]&&(o=r-1,a=!0),!a){let t=1;for(;ti)&&t!==r;t++);o=t-1}let s=ic(e[o],e[o+1],i);return t[o](s)}}(e,a);return n?t=>s(ir(e[0],e[o-1],t)):s}let iH=e=>t=>1-e(1-t),iU=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,iW=e=>t=>t*t*((e+1)*t-e),iq=4/11,i$=8/11,iY=e=>e,iG=e=>Math.pow(e,2),iX=iH(iG),iK=iU(iG),iQ=e=>1-Math.sin(Math.acos(e)),iJ=iH(iQ),i0=iU(iJ),i1=iW(1.525),i2=iH(i1),i4=iU(i1),i3=(e=>{let t=iW(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(0),i5=4356/361,i6=35442/1805,i8=16061/1805,i7=e=>{if(1===e||0===e)return e;let t=e*e;return e0!==n?n/(t-1):0)}(a)).map(e=>e*i);function l(){return iB(s,a,{ease:Array.isArray(n)?n:a.map(()=>n||iK).splice(0,a.length-1)})}let u=l();return{next:e=>(o.value=u(e),o.done=e>=i,o),flipTarget:()=>{a.reverse(),u=l()}}}let ot={keyframes:oe,spring:il,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){let a={done:!1,value:t},s=n*e,l=t+s,u=void 0===o?l:o(l);return u!==l&&(s=u-t),{next:e=>{let t=-s*Math.exp(-e/r);return a.done=!(t>i||t<-i),a.value=a.done?u:u+t,a},flipTarget:()=>{}}}};function on(e,t,n=0){return e-t-n}let or=e=>{let t=({delta:t})=>e(t);return{start:()=>t8.update(t,!0),stop:()=>t7.update(t)}};function oi(e){let t,n,r;var i,{from:o,autoplay:a=!0,driver:s=or,elapsed:l=0,repeat:u=0,repeatType:c="loop",repeatDelay:d=0,onPlay:f,onStop:h,onComplete:p,onRepeat:m,onUpdate:v}=e,g=r9(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:y}=g,x=0,b=g.duration,w=!1,E=!0,j=function(e){if(Array.isArray(e.to))return oe;if(ot[e.type])return ot[e.type];let t=new Set(Object.keys(e));if(t.has("ease")||t.has("duration")&&!t.has("dampingRatio"));else if(t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta"))return il;return oe}(g);(null===(i=j.needsInterpolation)||void 0===i?void 0:i.call(j,o,y))&&(r=iB([0,100],[o,y],{clamp:!1}),o=0,y=100);let k=j(Object.assign(Object.assign({},g),{from:o,to:y}));return a&&(null==f||f(),(t=s(function(e){if(E||(e=-e),l+=e,!w){let e=k.next(Math.max(0,l));n=e.value,r&&(n=r(n)),w=E?e.done:l<=0}if(null==v||v(n),w){if(0===x&&(null!=b||(b=l)),x=o+d:i<=-d)&&(x++,"reverse"===c?l=function(e,t,n=0,r=!0){return r?on(t+-e,t,n):t-(e-t)+n}(l,b,d,E=x%2==0):(l=on(l,b,d),"mirror"===c&&k.flipTarget()),w=!1,m&&m())}else t.stop(),p&&p()}})).start()),{stop:()=>{null==h||h(),t.stop()}}}let oo=e=>1e3*e,oa=(e,t)=>1-3*t+3*e,os=(e,t)=>3*t-6*e,ol=e=>3*e,ou=(e,t,n)=>((oa(t,n)*e+os(t,n))*e+ol(t))*e,oc=(e,t,n)=>3*oa(t,n)*e*e+2*os(t,n)*e+ol(t),od={linear:iY,easeIn:iG,easeInOut:iK,easeOut:iX,circIn:iQ,circInOut:i0,circOut:iJ,backIn:i1,backInOut:i4,backOut:i2,anticipate:i3,bounceIn:i9,bounceInOut:e=>e<.5?.5*(1-i7(1-2*e)):.5*i7(2*e-1)+.5,bounceOut:i7},of=e=>{if(Array.isArray(e)){it(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,i]=e;return function(e,t,n,r){if(e===t&&n===r)return iY;let i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=ou(.1*t,e,n);return o=>0===o||1===o?o:ou(function(t){let r=0,o=1;for(;10!==o&&i[o]<=t;++o)r+=.1;--o;let a=(t-i[o])/(i[o+1]-i[o]),s=r+.1*a,l=oc(s,e,n);return l>=.001?function(e,t,n,r){for(let i=0;i<8;++i){let i=oc(t,n,r);if(0===i)break;let o=ou(t,n,r)-e;t-=o/i}return t}(t,s,e,n):0===l?s:function(e,t,n,r,i){let o,a;let s=0;do(o=ou(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a;while(Math.abs(o)>1e-7&&++s<10);return a}(t,r,r+.1,e,n)}(o),t,r)}(t,n,r,i)}return"string"==typeof e?(it(void 0!==od[e],`Invalid easing type '${e}'`),od[e]):e},oh=e=>Array.isArray(e)&&"number"!=typeof e[0],op=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&iR.test(t)&&!t.startsWith("url(")),om=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),ov=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),og=()=>({type:"keyframes",ease:"linear",duration:.3}),oy=e=>({type:"keyframes",duration:.8,values:e}),ox={x:om,y:om,z:om,rotate:om,rotateX:om,rotateY:om,rotateZ:om,scaleX:ov,scaleY:ov,scale:ov,opacity:og,backgroundColor:og,color:og,default:ov},ob=(e,t)=>({to:t,...(rw(t)?oy:ox[e]||ox.default)(t)}),ow=new Set(["brightness","contrast","saturate","opacity"]);function oE(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(nG)||[];if(!r)return e;let i=n.replace(r,""),o=ow.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}let oj=/([a-z-]*)\(.*?\)/g,ok=Object.assign(Object.assign({},iR),{getAnimatableNone:e=>{let t=e.match(oj);return t?t.map(oE).join(" "):e}}),oS={...re,color:iO,backgroundColor:iO,outlineColor:iO,fill:iO,stroke:iO,borderColor:iO,borderTopColor:iO,borderRightColor:iO,borderBottomColor:iO,borderLeftColor:iO,filter:ok,WebkitFilter:ok},o_=e=>oS[e];function oO(e,t){var n;let r=o_(e);return r!==ok&&(r=iR),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}let oC={current:!1};function oM(e,t){let n=performance.now(),r=({timestamp:i})=>{let o=i-n;o>=t&&(t7.read(r),e(o-t))};return t8.read(r,!0),()=>t7.read(r)}let oA=!1;function oT(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function oP(e){return"number"==typeof e?0:oO("",e)}function oN(e,t){return e[t]||e.default||e}function oR(e,t,n,r={}){return oC.current&&(r={type:!1}),t.start(i=>{let o,a;let s=function(e,t,n,r,i){let o=oN(r,e)||{},a=void 0!==o.from?o.from:t.get(),s=op(e,n);"none"===a&&s&&"string"==typeof n?a=oO(e,n):oT(a)&&"string"==typeof n?a=oP(n):!Array.isArray(n)&&oT(n)&&"string"==typeof a&&(n=oP(a));let l=op(e,a);return ie(l===s,`You are trying to animate ${e} from "${a}" to "${n}". ${a} is not an animatable value - to enable this animation set ${a} to a value animatable to ${n} via the \`style\` property.`),l&&s&&!1!==o.type?function(){var r;let s={from:a,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:e=>t.set(e)};return"inertia"===o.type||"decay"===o.type?function({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:f,onStop:h}){let p;function m(e){return void 0!==n&&er}function v(e){return void 0===n?r:void 0===r?n:Math.abs(n-e){var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:h}))}function y(e){g(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:l},e))}if(m(e))y({from:e,velocity:t,to:v(e)});else{let r,a,s=i*t+e;void 0!==u&&(s=u(s));let c=v(s),d=c===n?-1:1;g({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:l,modifyTarget:u,onUpdate:m(s)?e=>{var n;r=a,a=e,t=(n=nr().delta)?(e-r)*(1e3/n):0,(1===d&&e>c||-1===d&&enull==p?void 0:p.stop()}}({...s,...o}):oi({...(r=o,Array.isArray(s.to)&&void 0===r.duration&&(r.duration=.8),Array.isArray(s.to)&&null===s.to[0]&&(s.to=[...s.to],s.to[0]=s.from),!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,...u}){return!!Object.keys(u).length}(r)&&(r={...r,...ob(e,s.to)}),{...s,...function({ease:e,times:t,yoyo:n,flip:r,loop:i,...o}){let a={...o};return t&&(a.offset=t),o.duration&&(a.duration=oo(o.duration)),o.repeatDelay&&(a.repeatDelay=oo(o.repeatDelay)),e&&(a.ease=oh(e)?e.map(of):of(e)),"tween"===o.type&&(a.type="keyframes"),(n||i||r)&&(ie(!oA,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),oA=!0,n?a.repeatType="reverse":i?a.repeatType="loop":r&&(a.repeatType="mirror"),a.repeat=i||n||r||o.repeat),"spring"!==o.type&&(a.type="keyframes"),a}(r)}),onUpdate:e=>{s.onUpdate(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{s.onComplete(),o.onComplete&&o.onComplete()}})}:function(){let e=rj(n);return t.set(e),i(),o.onUpdate&&o.onUpdate(e),o.onComplete&&o.onComplete(),{stop:()=>{}}}}(e,t,n,r,i),l=function(e,t){var n,r;let i=oN(e,t)||{};return null!==(r=null!==(n=i.delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=()=>o=s();return l?a=oM(u,oo(l)):u(),()=>{a&&a(),o&&o.stop()}})}let oD=e=>/^\-?\d*\.?\d+$/.test(e),oL=e=>/^0[^.\s]+$/.test(e);function oF(e,t){-1===e.indexOf(t)&&e.push(t)}function oV(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class oz{constructor(){this.subscriptions=[]}add(e){return oF(this.subscriptions,e),()=>oV(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i!isNaN(parseFloat(e));class oZ{constructor(e){this.version="7.6.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new oz,this.velocityUpdateSubscribers=new oz,this.renderSubscribers=new oz,this.canTrackVelocity=!1,this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:n,timestamp:r}=nr();this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,t8.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),t&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>t8.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=oI(this.current)}onChange(e){return this.updateSubscribers.add(e)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(e){return e(this.get()),this.renderSubscribers.add(e)}attach(e){this.passiveEffect=e}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){var e,t;return this.canTrackVelocity?(e=parseFloat(this.current)-parseFloat(this.prev),(t=this.timeDelta)?e*(1e3/t):0):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.stopAnimation=e(t)}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function oB(e){return new oZ(e)}let oH=e=>t=>t.test(e),oU=[n6,n2,n1,n0,n3,n4,{test:e=>"auto"===e,parse:e=>e}],oW=e=>oU.find(oH(e)),oq=[...oU,iO,iR],o$=e=>oq.find(oH(e));function oY(e,t,n){let r=e.getProps();return rb(r,t,void 0!==n?n:r.custom,function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}function oG(e){return!!(nB(e)&&e.add)}function oX(e,t,n={}){var r;let i=oY(e,t,n.custom),{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);let a=i?()=>oK(e,i,n):()=>Promise.resolve(),s=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?(r=0)=>{let{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,i=1,o){let a=[],s=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(oQ).forEach((e,r)=>{a.push(oX(e,t,{...o,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([a(),s(n.delay)]);{let[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then(t)}}function oK(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t),u=e.getValue("willChange");r&&(a=r);let c=[],d=i&&(null===(o=e.animationState)||void 0===o?void 0:o.getState()[i]);for(let t in l){let r=e.getValue(t),i=l[t];if(!r||void 0===i||d&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(d,t))continue;let o={delay:n,...a};e.shouldReduceMotion&&nI.has(t)&&(o={...o,type:!1,delay:0});let s=oR(t,r,i,o);oG(u)&&(u.add(t),s=s.then(()=>u.remove(t))),c.push(s)}return Promise.all(c).then(()=>{s&&function(e,t){let n=oY(e,t),{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};for(let t in o={...o,...r}){let n=rj(o[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,oB(n))}}(e,s)})}function oQ(e,t){return e.sortNodePosition(t)}let oJ=[EB.Animate,EB.InView,EB.Focus,EB.Hover,EB.Tap,EB.Drag,EB.Exit],o0=[...oJ].reverse(),o1=oJ.length;function o2(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let o4={animation:r5(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){let i=t.map(t=>oX(e,t,n));r=Promise.all(i)}else if("string"==typeof t)r=oX(e,t,n);else{let i="function"==typeof t?oY(e,t,n.custom):t;r=oK(e,i,n)}return r.then(()=>e.notify("AnimationComplete",t))})(e,t,n))),n={[EB.Animate]:o2(!0),[EB.InView]:o2(),[EB.Hover]:o2(),[EB.Tap]:o2(),[EB.Drag]:o2(),[EB.Focus]:o2(),[EB.Exit]:o2()},r=!0,i=(t,n)=>{let r=oY(e,n);if(r){let{transition:e,transitionEnd:n,...i}=r;t={...t,...i,...n}}return t};function o(o,a){var s,l;let u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set,h={},p=1/0;for(let t=0;tp&&y,j=Array.isArray(g)?g:[g],k=j.reduce(i,{});!1===x&&(k={});let{prevResolvedValues:S={}}=v,_={...S,...k},O=e=>{E=!0,f.delete(e),v.needsAnimating[e]=!0};for(let e in _){let t=k[e],n=S[e];h.hasOwnProperty(e)||(t!==n?rw(t)&&rw(n)?!r7(t,n)||w?O(e):v.protectedKeys[e]=!0:void 0!==t?O(e):f.add(e):void 0!==t&&f.has(e)?O(e):v.protectedKeys[e]=!0)}v.prevProp=g,v.prevResolvedValues=k,v.isActive&&(h={...h,...k}),r&&e.blockInitialAnimation&&(E=!1),E&&!b&&d.push(...j.map(e=>({animation:e,options:{type:m,...o}})))}if(f.size){let t={};f.forEach(n=>{let r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)}),d.push({animation:t})}let m=!!d.length;return r&&!1===u.initial&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(d):Promise.resolve()}return{animateChanges:o,setActive:function(t,r,i){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;let s=o(i,t);for(let e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}(e)),nk(t)&&(0,b.useEffect)(()=>t.subscribe(e),[t])}),exit:r5(e=>{let{custom:t,visualElement:n}=e,[r,i]=r8(),o=(0,b.useContext)(ns);(0,b.useEffect)(()=>{n.isPresent=r;let e=n.animationState&&n.animationState.setActive(EB.Exit,!r,{custom:o&&o.custom||t});e&&!r&&e.then(i)},[r])})},o3=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),o5=e=>o3(e)&&e.hasOwnProperty("z"),o6=(e,t)=>Math.abs(e-t);function o8(e,t){if(iD(e)&&iD(t))return o6(e,t);if(o3(e)&&o3(t)){let n=o6(e.x,t.x),r=o6(e.y,t.y),i=o5(e)&&o5(t)?o6(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}class o7{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=at(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=o8(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=nr();this.history.push({...r,timestamp:i});let{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{if(this.lastMoveEvent=e,this.lastMoveEventInfo=o9(t,this.transformPagePoint),rA(e)&&0===e.buttons){this.handlePointerUp(e,t);return}t8.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r}=this.handlers,i=at(o9(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},rT(e)&&e.touches.length>1)return;this.handlers=t,this.transformPagePoint=n;let r=rN(e),i=o9(r,this.transformPagePoint),{point:o}=i,{timestamp:a}=nr();this.history=[{...o,timestamp:a}];let{onSessionStart:s}=t;s&&s(e,at(i,this.history)),this.removeListeners=rK(rZ(window,"pointermove",this.handlePointerMove),rZ(window,"pointerup",this.handlePointerUp),rZ(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),t7.update(this.updatePoint)}}function o9(e,t){return t?{point:t(e.point)}:e}function ae(e,t){return{x:e.x-t.x,y:e.y-t.y}}function at({point:e},t){return{point:e,delta:ae(e,an(t)),offset:ae(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=an(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>oo(.1)));)n--;if(!r)return{x:0,y:0};let o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};let a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function an(e){return e[e.length-1]}function ar(e){return e.max-e.min}function ai(e,t=0,n=.01){return o8(e,t)({translate:0,scale:1,origin:0,originPoint:0}),am=()=>({x:ap(),y:ap()}),av=()=>({min:0,max:0}),ag=()=>({x:av(),y:av()});function ay(e){return[e("x"),e("y")]}function ax({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ab(e){return void 0===e||1===e}function aw({scale:e,scaleX:t,scaleY:n}){return!ab(e)||!ab(t)||!ab(n)}function aE(e){return aw(e)||aj(e)||e.z||e.rotate||e.rotateX||e.rotateY}function aj(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function ak(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function aS(e,t=0,n=1,r,i){e.min=ak(e.min,t,n,r,i),e.max=ak(e.max,t,n,r,i)}function a_(e,{x:t,y:n}){aS(e.x,t.translate,t.scale,t.originPoint),aS(e.y,n.translate,n.scale,n.originPoint)}function aO(e,t){e.min=e.min+t,e.max=e.max+t}function aC(e,t,[n,r,i]){let o=void 0!==t[i]?t[i]:.5,a=id(e.min,e.max,o);aS(e,t[n],t[r],a,t.scale)}let aM=["x","scaleX","originX"],aA=["y","scaleY","originY"];function aT(e,t){aC(e.x,t,aM),aC(e.y,t,aA)}function aP(e,t){return ax(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}let aN=new WeakMap;class aR{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ag(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){!1!==this.visualElement.isPresent&&(this.panSession=new o7(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(rN(e,"page").point)},onStart:(e,t)=>{var n;let{drag:r,dragPropagation:i,onDragStart:o}=this.getProps();(!r||i||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=rq(r),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ay(e=>{var t,n;let r=this.getAxisMotionValue(e).get()||0;if(n1.test(r)){let i=null===(n=null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===n?void 0:n.actual[e];if(i){let e=ar(i);r=e*(parseFloat(r)/100)}}this.originPoint[e]=r}),null==o||o(e,t),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(EB.Drag,!0))},onMove:(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&(null==i||i(this.currentDirection));return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),null==o||o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()}))}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();null==i||i(e,t)}cancel(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(EB.Drag,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!aD(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&en&&(e=r?id(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&nE(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:ac(e.x,n,i),y:ac(e.y,t,r)}}(n.actual,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:af(e,"left","right"),y:af(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&ay(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.actual[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!nE(t))return!1;let r=t.current;it(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,n){let r=aP(e,n),{scroll:i}=t;return i&&(aO(r.x,i.x),aO(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a={x:ad((e=i.layout.actual).x,o.x),y:ad(e.y,o.y)};if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=ax(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=ay(a=>{var l;if(!aD(a,t,this.currentDirection))return;let u=null!==(l=null==s?void 0:s[a])&&void 0!==l?l:{};o&&(u={min:0,max:0});let c={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...u};return this.startAxisValueAnimation(a,c)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return oR(e,n,0,t)}stopAnimation(){ay(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){var t,n;let r="_drag"+e.toUpperCase(),i=this.visualElement.getProps()[r];return i||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)}snapToCursor(e){ay(t=>{let{drag:n}=this.getProps();if(!aD(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.actual[t];i.set(e[t]-id(n,o,.5))}})}scalePositionWithinConstraints(){var e;if(!this.visualElement.current)return;let{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!nE(n)||!r||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};ay(e=>{let t=this.getAxisMotionValue(e);if(t){let n=t.get();i[e]=function(e,t){let n=.5,r=ar(e),i=ar(t);return i>r?n=ic(t.min,t.max-r,e.min):r>i&&(n=ic(e.min,e.max-i,t.min)),ir(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",null===(e=r.root)||void 0===e||e.updateScroll(),r.updateLayout(),this.resolveConstraints(),ay(e=>{if(!aD(e,t,null))return;let n=this.getAxisMotionValue(e),{min:r,max:o}=this.constraints[e];n.set(id(r,o,i[e]))})}addListeners(){var e;if(!this.visualElement.current)return;aN.set(this.visualElement,this);let t=this.visualElement.current,n=rZ(t,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),r=()=>{let{dragConstraints:e}=this.getProps();nE(e)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),r();let a=rC(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(ay(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),null==s||s()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function aD(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let aL={pan:r5(function({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:i}){let o=e||t||n||r,a=(0,b.useRef)(null),{transformPagePoint:s}=(0,b.useContext)(nx),l={onSessionStart:r,onStart:t,onMove:e,onEnd:(e,t)=>{a.current=null,n&&n(e,t)}};(0,b.useEffect)(()=>{null!==a.current&&a.current.updateHandlers(l)}),rB(i,"pointerdown",o&&function(e){a.current=new o7(e,l,{transformPagePoint:s})}),np(()=>a.current&&a.current.end())}),drag:r5(function(e){let{dragControls:t,visualElement:n}=e,r=nl(()=>new aR(n));(0,b.useEffect)(()=>t&&t.subscribe(r),[r,t]),(0,b.useEffect)(()=>r.addListeners(),[r])})};function aF(e){return"string"==typeof e&&e.startsWith("var(--")}let aV=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function az(e,t,n=1){it(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,i]=function(e){let t=aV.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]}(e);if(!r)return;let o=window.getComputedStyle(t).getPropertyValue(r);return o?o.trim():aF(i)?az(i,t,n+1):i}let aI=new Set(["width","height","top","left","right","bottom","x","y"]),aZ=e=>aI.has(e),aB=e=>Object.keys(e).some(aZ),aH=(e,t)=>{e.set(t,!1),e.set(t)},aU=e=>e===n6||e===n2;(EV=EH||(EH={})).width="width",EV.height="height",EV.left="left",EV.right="right",EV.top="top",EV.bottom="bottom";let aW=(e,t)=>parseFloat(e.split(", ")[t]),aq=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/);if(i)return aW(i[1],t);{let t=r.match(/^matrix\((.+)\)$/);return t?aW(t[1],e):0}},a$=new Set(["x","y","z"]),aY=nz.filter(e=>!a$.has(e)),aG={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:aq(4,13),y:aq(5,14)},aX=(e,t,n)=>{let r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{s[e]=aG[e](r,o)}),t.render();let l=t.measureViewportBox();return n.forEach(n=>{let r=t.getValue(n);aH(r,s[n]),e[n]=aG[n](l,o)}),e},aK=(e,t,n={},r={})=>{t={...t},r={...r};let i=Object.keys(t).filter(aZ),o=[],a=!1,s=[];if(i.forEach(i=>{let l;let u=e.getValue(i);if(!e.hasValue(i))return;let c=n[i],d=oW(c),f=t[i];if(rw(f)){let e=f.length,t=null===f[0]?1:0;d=oW(c=f[t]);for(let n=t;n{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),a=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:t[i],aH(u,f))}}),!s.length)return{target:t,transitionEnd:r};{let n=s.indexOf("height")>=0?window.pageYOffset:null,i=aX(t,e,s);return o.length&&o.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),ni&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}},aQ=(e,t,n,r)=>{var i,o;let a=function(e,{...t},n){let r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};for(let i in n&&(n={...n}),e.values.forEach(e=>{let t=e.get();if(!aF(t))return;let n=az(t,r);n&&e.set(n)}),t){let e=t[i];if(!aF(e))continue;let o=az(e,r);o&&(t[i]=o,n&&void 0===n[i]&&(n[i]=e))}return{target:t,transitionEnd:n}}(e,t,r);return t=a.target,r=a.transitionEnd,i=t,o=r,aB(i)?aK(e,i,n,o):{target:i,transitionEnd:o}},aJ={current:null},a0={current:!1},a1=Object.keys(nA),a2=a1.length,a4=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class a3{constructor({parent:e,props:t,reducedMotionConfig:n,visualState:r},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>t8.render(this.render,!1,!0);let{latestValues:o,renderState:a}=r;this.latestValues=o,this.baseTarget={...o},this.initialValues=t.initial?{...o}:{},this.renderState=a,this.parent=e,this.props=t,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=i,this.isControllingVariants=n_(t),this.isVariantNode=nO(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:s,...l}=this.scrapeMotionValuesFromProps(t);for(let e in l){let t=l[e];void 0!==o[e]&&nB(t)&&(t.set(o[e],!1),oG(s)&&s.add(e))}if(t.values)for(let e in t.values){let n=t.values[e];void 0!==o[e]&&nB(n)&&n.set(o[e])}}scrapeMotionValuesFromProps(e){return{}}mount(e){var t;this.current=e,this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===(t=this.parent)||void 0===t?void 0:t.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),a0.current||function(){if(a0.current=!0,ni){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>aJ.current=e.matches;e.addListener(t),t()}else aJ.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||aJ.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var e,t,n;for(let r in null===(e=this.projection)||void 0===e||e.unmount(),t7.update(this.notifyUpdate),t7.render(this.render),this.valueSubscriptions.forEach(e=>e()),null===(t=this.removeFromVariantTree)||void 0===t||t.call(this),null===(n=this.parent)||void 0===n||n.children.delete(this),this.events)this.events[r].clear();this.current=null}bindToMotionValue(e,t){let n=t.onChange(t=>{this.latestValues[e]=t,this.props.onUpdate&&t8.update(this.notifyUpdate,!1,!0)}),r=t.onRenderRequest(this.scheduleRender);this.valueSubscriptions.set(e,()=>{n(),r()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures(e,t,n,r,i,o){let a=[];"production"!==tK&&n&&t&&it(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let t=0;tthis.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:l})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ag()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}setProps(e){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=e;for(let t=0;tn.variantChildren.delete(e)}addValue(e,t){this.hasValue(e)&&this.removeValue(e),this.values.set(e,t),this.latestValues[e]=t.get(),this.bindToMotionValue(e,t)}removeValue(e){var t;this.values.delete(e),null===(t=this.valueSubscriptions.get(e))||void 0===t||t(),this.valueSubscriptions.delete(e),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=oB(t),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=rb(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||nB(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new oz),this.events[e].add(t)}notify(e,...t){var n;null===(n=this.events[e])||void 0===n||n.notify(...t)}}let a5=["initial",...oJ],a6=a5.length;class a8 extends a3{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},i){let o=function(e,t,n){var r;let i={};for(let o in e){let e=function(e,t){if(!t)return;let n=t[e]||t.default||t;return n.from}(o,t);i[o]=void 0!==e?e:null===(r=n.getValue(o))||void 0===r?void 0:r.get()}return i}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),o&&(o=r(o))),i){!function(e,t,n){var r,i;let o=Object.keys(t).filter(t=>!e.hasValue(t)),a=o.length;if(a)for(let s=0;snF(e)?new a9(t,{enableHardwareAcceleration:!1}):new a7(t,{enableHardwareAcceleration:!0});function st(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let sn={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!n2.test(e))return e;e=parseFloat(e)}let n=st(e,t.target.x),r=st(e,t.target.y);return`${n}% ${r}%`}},sr="_$css",si={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=e.includes("var("),o=[];i&&(e=e.replace(aV,e=>(o.push(e),sr)));let a=iR.parse(e);if(a.length>5)return r;let s=iR.createTransformer(e),l="number"!=typeof a[0]?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;a[0+l]/=u,a[1+l]/=c;let d=id(u,c,.5);"number"==typeof a[2+l]&&(a[2+l]/=d),"number"==typeof a[3+l]&&(a[3+l]/=d);let f=s(a);if(i){let e=0;f=f.replace(sr,()=>{let t=o[e];return e++,t})}return f}};class so extends b.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;Object.assign(nV,sa),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),nT.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,r||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent===i||(i?o.promote():o.relegate()||t8.postRender(()=>{var e;(null===(e=o.getStack())||void 0===e?void 0:e.members.length)||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),(null==t?void 0:t.group)&&t.group.remove(r),(null==n?void 0:n.deregister)&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;null==e||e()}render(){return null}}let sa={borderRadius:{...sn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sn,borderTopRightRadius:sn,borderBottomLeftRadius:sn,borderBottomRightRadius:sn,boxShadow:si},ss=["TopLeft","TopRight","BottomLeft","BottomRight"],sl=ss.length,su=e=>"string"==typeof e?parseFloat(e):e,sc=e=>"number"==typeof e||n2.test(e);function sd(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}let sf=sp(0,.5,iJ),sh=sp(.5,.95,iY);function sp(e,t,n){return r=>rt?1:n(ic(e,t,r))}function sm(e,t){e.min=t.min,e.max=t.max}function sv(e,t){sm(e.x,t.x),sm(e.y,t.y)}function sg(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function sy(e,t,[n,r,i],o,a){!function(e,t=0,n=1,r=.5,i,o=e,a=e){if(n1.test(t)){t=parseFloat(t);let e=id(a.min,a.max,t/100);t=e-a.min}if("number"!=typeof t)return;let s=id(o.min,o.max,r);e===o&&(s-=t),e.min=sg(e.min,t,n,s,i),e.max=sg(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,o,a)}let sx=["x","scaleX","originX"],sb=["y","scaleY","originY"];function sw(e,t,n,r){sy(e.x,t,sx,null==n?void 0:n.x,null==r?void 0:r.x),sy(e.y,t,sb,null==n?void 0:n.y,null==r?void 0:r.y)}function sE(e){return 0===e.translate&&1===e.scale}function sj(e){return sE(e.x)&&sE(e.y)}function sk(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function sS(e){return ar(e.x)/ar(e.y)}class s_{constructor(){this.members=[]}add(e){oF(this.members,e),e.scheduleRender()}remove(e){if(oV(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){var n;let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0);let{crossfade:i}=e.options;!1===i&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{var t,n,r,i,o;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(o=null===(r=e.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===o||o.call(i)})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function sO(e,t,n){let r=e.x.translate/t.x,i=e.y.translate/t.y,o=`translate3d(${r}px, ${i}px, 0) `;if(o+=`scale(${1/t.x}, ${1/t.y}) `,n){let{rotate:e,rotateX:t,rotateY:r}=n;e&&(o+=`rotate(${e}deg) `),t&&(o+=`rotateX(${t}deg) `),r&&(o+=`rotateY(${r}deg) `)}let a=e.x.scale*t.x,s=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"==(o+=`scale(${a}, ${s})`)?"none":o}let sC=(e,t)=>e.depth-t.depth;class sM{constructor(){this.children=[],this.isDirty=!1}add(e){oF(this.children,e),this.isDirty=!0}remove(e){oV(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(sC),this.isDirty=!1,this.children.forEach(e)}}let sA=["","X","Y","Z"];function sT({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e,n={},r=null==t?void 0:t()){this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(sV),this.nodes.forEach(sz)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=n,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(let e=0;ethis.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=oM(r,250),nT.hasAnimatedSinceResize&&(nT.hasAnimatedSinceResize=!1,this.nodes.forEach(sF))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&a&&(i||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{var i,o,s,l,u;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let c=null!==(o=null!==(i=this.options.transition)&&void 0!==i?i:a.getDefaultTransition())&&void 0!==o?o:sW,{onLayoutAnimationStart:d,onLayoutAnimationComplete:f}=a.getProps(),h=!this.targetLayout||!sk(this.targetLayout,r)||n,p=!t&&n;if((null===(s=this.resumeFrom)||void 0===s?void 0:s.instance)||p||t&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,p);let t={...oN(c,"layout"),onPlay:d,onComplete:f};a.shouldReduceMotion&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||sF(this),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=r})}unmount(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,t7.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1}startUpdate(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(sI))}willUpdate(e=!0){var t,n,r;if(this.root.isUpdateBlocked()){null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;let e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));sY(t),this.snapshot={measured:e,layout:t,latestValues:{}}}updateLayout(){var e;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0),c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(sU));this.animationProgress=0,this.mixTargetDelta=t=>{var n,r,d;let f=t/1e3;sB(a.x,e.x,f),sB(a.y,e.y,f),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(au(s,this.layout.actual,this.relativeParent.layout.actual),r=this.relativeTarget,d=this.relativeTargetOrigin,sH(r.x,d.x,s.x,f),sH(r.y,d.y,s.y,f)),l&&(this.animationValues=o,function(e,t,n,r,i,o){var a,s,l,u;i?(e.opacity=id(0,null!==(a=n.opacity)&&void 0!==a?a:1,sf(r)),e.opacityExit=id(null!==(s=t.opacity)&&void 0!==s?s:1,0,sh(r))):o&&(e.opacity=id(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(let i=0;i{nT.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n={}){let r=nB(e)?e:oB(e);return oR("",r,1e3,n),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}(0,0,{...e,onUpdate:t=>{var n;this.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:()=>{var t;null===(t=e.onComplete)||void 0===t||t.call(e),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&sG(this.options.animationType,this.layout.actual,r.actual)){n=this.target||ag();let t=ar(this.layout.actual.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=ar(this.layout.actual.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}sv(t,n),aT(t,i),aa(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new s_);let o=this.sharedNodes.get(e);o.add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(i=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(r,t)})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,n={};for(let r=0;r{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(sD),this.root.sharedNodes.clear()}}}function sP(e){e.updateLayout()}function sN(e){var t,n,r;let i=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){let{actual:t,measured:n}=e.layout,{animationType:r}=e.options;"size"===r?ay(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=ar(n);n.min=t[e].min,n.max=n.min+r}):sG(r,i.layout,t)&&ay(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=ar(t[e]);n.max=n.min+r});let o=am();aa(o,t,i.layout);let a=am();i.isShared?aa(a,e.applyTransform(n,!0),i.measured):aa(a,t,i.layout);let s=!sj(o),l=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:e,layout:r}=n;if(e&&r){let n=ag();au(n,i.layout,e.layout);let o=ag();au(o,t,r.actual),sk(n,o)||(l=!0)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:s,hasRelativeTargetChanged:l})}else e.isLead()&&(null===(r=(n=e.options).onExitComplete)||void 0===r||r.call(n));e.options.transition=void 0}function sR(e){e.clearSnapshot()}function sD(e){e.clearMeasurements()}function sL(e){let{visualElement:t}=e.options;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sF(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function sV(e){e.resolveTargetDelta()}function sz(e){e.calcProjection()}function sI(e){e.resetRotation()}function sZ(e){e.removeLeadSnapshot()}function sB(e,t,n){e.translate=id(t.translate,0,n),e.scale=id(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function sH(e,t,n,r){e.min=id(t.min,n.min,r),e.max=id(t.max,n.max,r)}function sU(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let sW={duration:.45,ease:[.4,0,.1,1]};function sq(e,t){let n=e.root;for(let t=e.path.length-1;t>=0;t--)if(e.path[t].instance){n=e.path[t];break}let r=n&&n!==e.root?n.instance:document,i=r.querySelector(`[data-projection-id="${t}"]`);i&&e.mount(i,!0)}function s$(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function sY(e){s$(e.x),s$(e.y)}function sG(e,t,n){return"position"===e||"preserve-aspect"===e&&!function(e,t,n=.1){return o8(e,t)<=n}(sS(t),sS(n),.2)}let sX=sT({attachResizeListener:(e,t)=>rC(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sK={current:void 0},sQ=sT({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sK.current){let e=new sX(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),sK.current=e}return sK.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),sJ={...o4,...r6,...aL,measureLayout:function(e){let[t,n]=r8(),r=(0,b.useContext)(nh);return b.createElement(so,{...e,layoutGroup:r,switchLayoutGroup:(0,b.useContext)(nR),isPresent:t,safeToRemove:n})}},s0=function(e){function t(t,n={}){return function({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:r,useVisualState:i,Component:o}){e&&function(e){for(let t in e)"projectionNodeConstructor"===t?nA.projectionNodeConstructor=e[t]:nA[t].Component=e[t]}(e);let a=(0,b.forwardRef)(function(a,s){var l;let u={...(0,b.useContext)(nx),...a,layoutId:function({layoutId:e}){let t=(0,b.useContext)(nh).id;return t&&void 0!==e?t+"-"+e:e}(a)},{isStatic:c}=u,d=null,f=function(e){let{initial:t,animate:n}=function(e,t){if(n_(e)){let{initial:t,animate:n}=e;return{initial:!1===t||nj(t)?t:void 0,animate:nj(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,b.useContext)(nb));return(0,b.useMemo)(()=>({initial:t,animate:n}),[nC(t),nC(n)])}(a),h=c?void 0:nl(()=>{if(nT.hasEverUpdated)return nP++}),p=i(a,c);if(!c&&ni){f.visualElement=function(e,t,n,r){let i=(0,b.useContext)(nb).visualElement,o=(0,b.useContext)(nw),a=(0,b.useContext)(ns),s=(0,b.useContext)(nx).reducedMotion,l=(0,b.useRef)();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceId:a?a.id:void 0,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));let u=l.current;return no(()=>{u&&u.render()}),(0,b.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),no(()=>()=>u&&u.notify("Unmount"),[]),u}(o,p,u,t);let r=(0,b.useContext)(nw).strict,i=(0,b.useContext)(nR);f.visualElement&&(d=f.visualElement.loadFeatures(u,r,e,h,n||nA.projectionNodeConstructor,i))}return b.createElement(nN,{visualElement:f.visualElement,props:u},d,b.createElement(nb.Provider,{value:f},r(o,a,h,(l=f.visualElement,(0,b.useCallback)(e=>{e&&p.mount&&p.mount(e),l&&(e?l.mount(e):l.unmount()),s&&("function"==typeof s?s(e):nE(s)&&(s.current=e))},[l])),p,c,f.visualElement)))});return a[nD]=o,a}(e(t,n))}if("undefined"==typeof Proxy)return t;let n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},n,r,i){let o=nF(e)?r_:rO;return{...o,preloadedFeatures:n,useRender:function(e=!1){return(t,n,r,i,{latestValues:o},a)=>{let s=nF(t)?rh:ri,l=s(n,o,a),u=function(e,t,n){let r={};for(let i in e)(rs(i)||!0===n&&ra(i)||!t&&!ra(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),c={...u,...l,ref:i};return r&&(c["data-projection-id"]=r),(0,b.createElement)(t,c)}}(t),createVisualElement:r,projectionNodeConstructor:i,Component:e}})(e,t,sJ,se,sQ));function s1(e){let{open:t,onOpenChange:n}=e,[r,i]=(0,b.useState)(!1),o=(0,b.useMemo)(()=>n?t:r,[n,r,t]),a=(0,b.useCallback)(e=>{n?n(e):i(e)},[n]);return{open:o,onOpenChange:a}}let s2={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}};function s4(e){let{children:t,content:n,defaultOpen:r,open:i,onOpenChange:o,delayDuration:a=300,disableHoverableContent:s,...l}=e,{open:u,onOpenChange:c}=s1({open:i,onOpenChange:o});return(0,x.jsxs)(tH,{open:u,delayDuration:a,disableHoverableContent:s,defaultOpen:r,onOpenChange:c,children:[(0,x.jsx)(tN,{asChild:!0,children:t}),(0,x.jsx)(ny,{children:n&&u?(0,x.jsx)(tU,{forceMount:!0,children:(0,x.jsx)(tV,{forceMount:!0,asChild:!0,side:"top",align:"center",sideOffset:l.sideOffset||5,...l,children:(0,x.jsx)(s0.div,{variants:s2,initial:"init",animate:"show",exit:"exit",className:(0,ea.cx)("relative","z-50","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"),children:(0,x.jsx)("div",{className:(0,ea.cx)("py-1 px-2","max-w-xs","overflow-hidden",tY()),children:(0,x.jsx)(t$,{size:"12",children:n})})})})}):null})]})}let s3=(0,ea.j)(["inline-flex","gap-1","appearance-none","shrink-0","items-center","justify-center","select-none","leading-normal","font-sans","cursor-pointer","overflow-hidden","focus:z-10","disabled:cursor-auto","disabled:pointer-events-none","outline-none","focus:ring ring-blue-500 dark:ring-blue-200","transition-colors duration-75"],{variants:{size:{small:["text-xs","px-2","h-7"],medium:["text-base","px-4","h-10"],large:["text-lg","px-4","h-12"],none:[]},state:{waiting:["pointer-events-none"]},disabled:{true:"cursor-auto pointer-events-none"},rounded:{true:"rounded",false:""},variant:{accent:["border","text-white dark:text-white","enabled:bg-green-700 enabled:dark:bg-green-700","enabled:border-green-800/30 enabled:dark:border-green-600/70","enabled:hover:bg-green-800/90 dark:enabled:hover:bg-green-700/90","enabled:hover:border-green-800/50 enabled:hover:dark:border-green-600","disabled:text-white/50 disabled:dark:text-white/50","disabled:bg-green-700/70 disabled:dark:bg-green-600/70","disabled:border-green-600/50 disabled:dark:border-green-500/30","[&[href]]:bg-green-700 [&[href]]:dark:bg-green-700","[&[href]]:border-green-800/30 [&[href]]:dark:border-green-600/70","[&[href]]:hover:bg-green-800/90 dark:[&[href]]:hover:bg-green-700/90","[&[href]]:hover:border-green-800/50 [href]]:hover:dark:border-green-600"],red:["border","bg-red-700 dark:bg-red-700","border-red-800/30 dark:border-red-600/70","enabled:hover:bg-red-800/90 dark:enabled:hover:bg-red-700/90","enabled:hover:border-red-800/50 enabled:hover:dark:border-red-600","disabled:bg-red-700/70 disabled:dark:bg-red-600/70","disabled:border-red-600/50 disabled:dark:border-red-500/30","text-white dark:text-white","disabled:text-white/50 disabled:dark:text-white/50"],amber:["border","bg-amber-700 dark:bg-amber-700","border-amber-800/30 dark:border-amber-600/70","enabled:hover:bg-amber-800/90 dark:enabled:hover:bg-amber-700/90","enabled:hover:border-amber-800/50 enabled:hover:dark:border-amber-600","disabled:bg-amber-700/70 disabled:dark:bg-amber-600/70","disabled:border-amber-600/50 disabled:dark:border-amber-500/30","text-white dark:text-white","disabled:text-white/50 disabled:dark:text-white/50"],gray:["border","bg-white dark:bg-graydark-200","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100 dark:text-gray-300","disabled:text-gray-600 disabled:dark:text-graydark-700"],active:["border","bg-gray-200 dark:bg-graydark-400","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-500 dark:border-graydark-500","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],inactive:["border","bg-white dark:bg-graydark-200","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-400/70 dark:border-graydark-400/70","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100/30 dark:text-white/30","enabled:hover:text-gray-1100 enabled:hover:dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],ghost:["appearance-none border-none bg-transparent","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],state:["open:text-gray-1100 open:dark:text-white","hover:text-gray-1000 hover:dark:text-graydark-1000","text-gray-700 dark:text-graydark-800"]},icon:{contrast:"",hover:"[&>svg]:opacity-50 hover:[&>svg]:opacity-100 transition-opacity",subtle:"[&>svg]:opacity-50"},color:{verySubtle:"!text-gray-700 dark:!text-graydark-700",subtle:"!text-gray-1000 dark:!text-graydark-1000",contrast:"!text-gray-1100 dark:!text-white",lo:"!text-white dark:!text-graydark-50",accent:"!text-accent-1100 dark:!text-accentdark-1100",red:"!text-red-700 dark:!text-red-400",green:"!text-emerald-700 dark:!text-emerald-500",amber:"!text-amber-600 dark:!text-amber-500",none:""}},defaultVariants:{variant:"gray",size:"small",rounded:!0,icon:"subtle",color:"none"}}),s5=b.forwardRef((e,t)=>{let{variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,tip:u,tipAlign:c,tipSide:d,className:f,type:h="button",...p}=e;return u?(0,x.jsx)(s4,{content:u,align:c,side:d,children:(0,x.jsx)("button",{ref:t,type:h,disabled:a,className:s3({variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})}):(0,x.jsx)("button",{ref:t,disabled:a,type:h,className:s3({variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})});var s6=n(41775);(0,ea.j)([],{variants:{variant:{default:"border-t border-gray-500 dark:border-graydark-500 last-of-type:border-b",ghost:""}},defaultVariants:{variant:"default"}});let s8=(0,ea.j)("border border-gray-500 dark:border-graydark-500 bg-gray-100 dark:bg-graydark-100 rounded p-4"),s7=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)("div",{...r,className:s8({className:n}),ref:t})});var s9=n(86029);let le="Avatar",[lt,ln]=(0,j.b)(le),[lr,li]=lt(le),lo=(0,b.forwardRef)((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,o]=(0,b.useState)("idle");return(0,b.createElement)(lr,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:o},(0,b.createElement)(M.WV.span,(0,E.Z)({},r,{ref:t})))}),la=(0,b.forwardRef)((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...o}=e,a=li("AvatarImage",n),s=function(e){let[t,n]=(0,b.useState)("idle");return(0,b.useEffect)(()=>{if(!e){n("error");return}let t=!0,r=new window.Image,i=e=>()=>{t&&n(e)};return n("loading"),r.onload=i("loaded"),r.onerror=i("error"),r.src=e,()=>{t=!1}},[e]),t}(r),l=(0,s9.W)(e=>{i(e),a.onImageLoadingStatusChange(e)});return(0,A.b)(()=>{"idle"!==s&&l(s)},[s,l]),"loaded"===s?(0,b.createElement)(M.WV.img,(0,E.Z)({},o,{ref:t,src:r})):null}),ls=(0,b.forwardRef)((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,o=li("AvatarFallback",n),[a,s]=(0,b.useState)(void 0===r);return(0,b.useEffect)(()=>{if(void 0!==r){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),a&&"loaded"!==o.imageLoadingStatus?(0,b.createElement)(M.WV.span,(0,E.Z)({},i,{ref:t})):null}),ll=(0,ea.j)(["items-center justify-center align-middle flex flex-shrink-0 relative","overflow-hidden select-none outline-none","font-sans font-medium text-sm","border"],{variants:{size:{1:"w-6 h-6",2:"w-12 h-12",3:"w-16 h-16",4:"w-28 h-28"},variant:{filter:"bg-transparent",hiContrast:["bg-gray-900 dark:bg-white text-white dark:text-gray-1100","border-gray-900 dark:border-white text-white dark:text-gray-1100"],gray:["bg-gray-500 dark:bg-gray-800 text-gray-1100 dark:text-white","border-gray-500 dark:border-gray-800 text-gray-1100 dark:text-white"]},shape:{square:"rounded",circle:"rounded-full"},inactive:{true:"opacity-30"},interactive:{true:"cursor-pointer"}},defaultVariants:{size:"2",variant:"gray",shape:"circle"}}),lu=(0,ea.j)("uppercase",{variants:{size:{1:"text-sm",2:"text-base",3:"text-lg",4:"text-lg"}},defaultVariants:{size:"2"}}),lc=b.forwardRef((e,t)=>{let{alt:n,src:r,fallback:i,size:o,variant:a,shape:s,interactive:l,inactive:u,className:c,...d}=e;return(0,x.jsx)("div",{className:(0,ea.cx)("relative h-fit w-fit",c),children:(0,x.jsxs)(lo,{...d,ref:t,className:ll({className:c,size:o,variant:a,interactive:l,inactive:u,shape:s}),children:["filter"===a&&(0,x.jsx)("div",{className:"absolute w-full h-full z-10",style:{backgroundColor:"rgba(30, 169, 76, 0.3)"}}),(0,x.jsx)(la,{alt:n,src:r,className:"flex object-cover h-full align-middle w-full"}),(0,x.jsx)(ls,{className:lu({size:o}),children:i})]})})}),ld=(0,ea.j)(["items-center appearance-none inline-flex flex-shrink-0 whitespace-nowrap","font-sans font-regular text-sm","justify-center align-middle outline-none p-0 decoration-none select-none","disabled:pointer-events-none","py-0.5 px-2"],{variants:{variant:{active:["border","bg-gray-800 text-gray-900 border-gray-900","dark:bg-transparent dark:text-white dark:border-white/10"],simple:"bg-gray-300 dark:bg-graydark-800 text-gray-900 dark:text-white",green:["border","[&>svg]:opacity-50","bg-green-700 dark:bg-green-700","border-green-800/30 dark:border-green-600/70","hover:bg-green-800/90 dark:hover:bg-green-700/90","hover:border-green-800/50 hover:dark:border-green-600","text-white dark:text-white"],accent:["border","[&>svg]:opacity-50","bg-green-700 dark:bg-green-700","border-green-800/30 dark:border-green-600/70","hover:bg-green-800/90 dark:hover:bg-green-700/90","hover:border-green-800/50 hover:dark:border-green-600","text-white dark:text-white"],red:["border","[&>svg]:opacity-50","bg-red-700 dark:bg-red-700","border-red-800/30 dark:border-red-600/70","hover:bg-red-800/90 dark:hover:bg-red-700/90","hover:border-red-800/50 hover:dark:border-red-600","text-white dark:text-white"],amber:["border","[&>svg]:opacity-50","bg-amber-700 dark:bg-amber-700","border-amber-800/30 dark:border-amber-600/70","hover:bg-amber-800/90 dark:hover:bg-amber-700/90","hover:border-amber-800/50 hover:dark:border-amber-600","text-white dark:text-white"],gray:["border","[&>svg]:opacity-50","bg-white dark:bg-graydark-200","border-gray-400 dark:border-graydark-400","hover:bg-gray-50 dark:hover:bg-graydark-300","hover:border-gray-500 hover:dark:border-graydark-500","text-gray-1100 dark:text-white"],inactive:["border","[&>svg]:opacity-50","bg-white dark:bg-transparent","border-gray-400 dark:border-graydark-400","hover:border-gray-500 hover:dark:border-graydark-500","text-gray-1100/30 dark:text-white/30","hover:text-gray-1100/50 hover:dark:text-white/50"]},interactive:{true:"cursor-pointer"},rounded:{true:"rounded",false:""}},defaultVariants:{variant:"gray",rounded:!0}}),lf=b.forwardRef((e,t)=>{let{variant:n,interactive:r,rounded:i,className:o,...a}=e;return(0,x.jsx)("div",{...a,className:ld({variant:n,interactive:r,rounded:i,className:o}),ref:t})}),lh=b.forwardRef((e,t)=>{let{className:n,size:r,color:i,...o}=e;return(0,x.jsx)("pre",{children:(0,x.jsx)("code",{className:(0,ea.cx)(tW({font:"mono",size:r,color:i}),"block","w-full","overflow-auto","p-3","bg-white dark:bg-graydark-200","border border-gray-400 dark:border-graydark-400","rounded",n),...o,ref:t})})}),lp=(0,ea.j)(["font-mono","whitespace-nowrap","rounded"],{variants:{color:{gray:["bg-gray-200 dark:bg-graydark-200","text-gray-1100 dark:text-graydark-1100"],accent:["bg-accent-200 dark:bg-accentdark-200","text-accent-1100 dark:text-accentdark-1100"]}},defaultVariants:{color:"accent"}}),lm=b.forwardRef((e,t)=>{let{color:n,className:r,...i}=e;return(0,x.jsx)("code",{...i,className:lp({color:n,className:r}),ref:t})}),lv=(0,ea.j)(["flex","relative","[&>*]:rounded-none [&>*:last-child]:rounded-r [&>*:first-child]:rounded-l","[&>*]:border-r-0 [&>*]:border-l [&>*:first-child]:border-l [&>*:last-child]:border-r"]),lg=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)("div",{ref:t,className:lv({className:n}),...r})});(0,ea.j)(["select-none appearance-none outline-none overflow-hidden","inline-flex items-center justify-center","focus:ring ring-blue-500 dark:ring-blue-200","border","bg-gray-300 dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","disabled:cursor-default","enabled:data-[state=checked]:bg-green-600 dark:enabled:data-[state=checked]:bg-green-500","disabled:data-[state=checked]:bg-green-600/50 dark:disabled:data-[state=checked]:bg-green-500/50"],{variants:{size:{small:"w-4 h-4 rounded",medium:"w-6 h-6 rounded"}},defaultVariants:{size:"small"}});let ly=(0,ea.j)(["flex-shrink-0 w-full mx-auto"],{variants:{pad:{true:"px-5 md:px-10",false:""},size:{1:"max-w-screen-sm",2:"max-w-screen-md",3:"max-w-[1145px]",4:"max-w-screen-2xl",full:"max-w-none"}},defaultVariants:{pad:!0,size:"3"}}),lx=b.forwardRef((e,t)=>{let{className:n,pad:r,size:i,...o}=e;return(0,x.jsx)("div",{ref:t,...o,className:ly({size:i,pad:r,className:n})})});var lb=n(72331);let lw=(0,b.createContext)(void 0);function lE(e){let t=(0,b.useContext)(lw);return e||t||"ltr"}let lj="ScrollArea",[lk,lS]=(0,j.b)(lj),[l_,lO]=lk(lj),lC=(0,b.forwardRef)((e,t)=>{let{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:o=600,...a}=e,[s,l]=(0,b.useState)(null),[u,c]=(0,b.useState)(null),[d,f]=(0,b.useState)(null),[h,p]=(0,b.useState)(null),[m,v]=(0,b.useState)(null),[g,y]=(0,b.useState)(0),[x,w]=(0,b.useState)(0),[j,S]=(0,b.useState)(!1),[_,O]=(0,b.useState)(!1),C=(0,k.e)(t,e=>l(e)),A=lE(i);return(0,b.createElement)(l_,{scope:n,type:r,dir:A,scrollHideDelay:o,scrollArea:s,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:h,onScrollbarXChange:p,scrollbarXEnabled:j,onScrollbarXEnabledChange:S,scrollbarY:m,onScrollbarYChange:v,scrollbarYEnabled:_,onScrollbarYEnabledChange:O,onCornerWidthChange:y,onCornerHeightChange:w},(0,b.createElement)(M.WV.div,(0,E.Z)({dir:A},a,{ref:C,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})))}),lM=(0,b.forwardRef)((e,t)=>{let{__scopeScrollArea:n,children:r,...i}=e,o=lO("ScrollAreaViewport",n),a=(0,b.useRef)(null),s=(0,k.e)(t,a,o.onViewportChange);return(0,b.createElement)(b.Fragment,null,(0,b.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),(0,b.createElement)(M.WV.div,(0,E.Z)({"data-radix-scroll-area-viewport":""},i,{ref:s,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style}}),(0,b.createElement)("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"}},r)))}),lA="ScrollAreaScrollbar",lT=(0,b.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=lO(lA,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:a}=i,s="horizontal"===e.orientation;return(0,b.useEffect)(()=>(s?o(!0):a(!0),()=>{s?o(!1):a(!1)}),[s,o,a]),"hover"===i.type?(0,b.createElement)(lP,(0,E.Z)({},r,{ref:t,forceMount:n})):"scroll"===i.type?(0,b.createElement)(lN,(0,E.Z)({},r,{ref:t,forceMount:n})):"auto"===i.type?(0,b.createElement)(lR,(0,E.Z)({},r,{ref:t,forceMount:n})):"always"===i.type?(0,b.createElement)(lD,(0,E.Z)({},r,{ref:t})):null}),lP=(0,b.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=lO(lA,e.__scopeScrollArea),[o,a]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{let e=i.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),a(!0)},r=()=>{t=window.setTimeout(()=>a(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[i.scrollArea,i.scrollHideDelay]),(0,b.createElement)(T.z,{present:n||o},(0,b.createElement)(lR,(0,E.Z)({"data-state":o?"visible":"hidden"},r,{ref:t})))}),lN=(0,b.forwardRef)((e,t)=>{var n;let{forceMount:r,...i}=e,o=lO(lA,e.__scopeScrollArea),a="horizontal"===e.orientation,s=lJ(()=>u("SCROLL_END"),100),[l,u]=(n={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},(0,b.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},"hidden"));return(0,b.useEffect)(()=>{if("idle"===l){let e=window.setTimeout(()=>u("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(e)}},[l,o.scrollHideDelay,u]),(0,b.useEffect)(()=>{let e=o.viewport,t=a?"scrollLeft":"scrollTop";if(e){let n=e[t],r=()=>{let r=e[t],i=n!==r;i&&(u("SCROLL"),s()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[o.viewport,a,u,s]),(0,b.createElement)(T.z,{present:r||"hidden"!==l},(0,b.createElement)(lD,(0,E.Z)({"data-state":"hidden"===l?"hidden":"visible"},i,{ref:t,onPointerEnter:(0,O.M)(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:(0,O.M)(e.onPointerLeave,()=>u("POINTER_LEAVE"))})))}),lR=(0,b.forwardRef)((e,t)=>{let n=lO(lA,e.__scopeScrollArea),{forceMount:r,...i}=e,[o,a]=(0,b.useState)(!1),s="horizontal"===e.orientation,l=lJ(()=>{if(n.viewport){let e=n.viewport.offsetWidth{let{orientation:n="vertical",...r}=e,i=lO(lA,e.__scopeScrollArea),o=(0,b.useRef)(null),a=(0,b.useRef)(0),[s,l]=(0,b.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=lY(s.viewport,s.content),c={...r,sizes:s,onSizesChange:l,hasThumb:!!(u>0&&u<1),onThumbChange:e=>o.current=e,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:e=>a.current=e};function d(e,t){return function(e,t,n,r="ltr"){let i=lG(n),o=t||i/2,a=n.scrollbar.paddingStart+o,s=n.scrollbar.size-n.scrollbar.paddingEnd-(i-o),l=n.content-n.viewport,u=lK([a,s],"ltr"===r?[0,l]:[-1*l,0]);return u(e)}(e,a.current,s,t)}return"horizontal"===n?(0,b.createElement)(lL,(0,E.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=i.viewport.scrollLeft,t=lX(e,s,i.dir);o.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,i.dir))}})):"vertical"===n?(0,b.createElement)(lF,(0,E.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=i.viewport.scrollTop,t=lX(e,s);o.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}})):null}),lL=(0,b.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,o=lO(lA,e.__scopeScrollArea),[a,s]=(0,b.useState)(),l=(0,b.useRef)(null),u=(0,k.e)(t,l,o.onScrollbarXChange);return(0,b.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,b.createElement)(lI,(0,E.Z)({"data-orientation":"horizontal"},i,{ref:u,sizes:n,style:{bottom:0,left:"rtl"===o.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===o.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":lG(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),r>0&&r{l.current&&o.viewport&&a&&r({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:l$(a.paddingLeft),paddingEnd:l$(a.paddingRight)}})}}))}),lF=(0,b.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,o=lO(lA,e.__scopeScrollArea),[a,s]=(0,b.useState)(),l=(0,b.useRef)(null),u=(0,k.e)(t,l,o.onScrollbarYChange);return(0,b.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,b.createElement)(lI,(0,E.Z)({"data-orientation":"vertical"},i,{ref:u,sizes:n,style:{top:0,right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":lG(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),r>0&&r{l.current&&o.viewport&&a&&r({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:l$(a.paddingTop),paddingEnd:l$(a.paddingBottom)}})}}))}),[lV,lz]=lk(lA),lI=(0,b.forwardRef)((e,t)=>{let{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:o,onThumbPointerUp:a,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,h=lO(lA,n),[p,m]=(0,b.useState)(null),v=(0,k.e)(t,e=>m(e)),g=(0,b.useRef)(null),y=(0,b.useRef)(""),x=h.viewport,w=r.content-r.viewport,j=(0,s9.W)(c),S=(0,s9.W)(l),_=lJ(d,10);function C(e){if(g.current){let t=e.clientX-g.current.left,n=e.clientY-g.current.top;u({x:t,y:n})}}return(0,b.useEffect)(()=>{let e=e=>{let t=e.target,n=null==p?void 0:p.contains(t);n&&j(e,w)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[x,p,w,j]),(0,b.useEffect)(S,[r,S]),l0(p,_),l0(h.content,_),(0,b.createElement)(lV,{scope:n,scrollbar:p,hasThumb:i,onThumbChange:(0,s9.W)(o),onThumbPointerUp:(0,s9.W)(a),onThumbPositionChange:S,onThumbPointerDown:(0,s9.W)(s)},(0,b.createElement)(M.WV.div,(0,E.Z)({},f,{ref:v,style:{position:"absolute",...f.style},onPointerDown:(0,O.M)(e.onPointerDown,e=>{if(0===e.button){let t=e.target;t.setPointerCapture(e.pointerId),g.current=p.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",C(e)}}),onPointerMove:(0,O.M)(e.onPointerMove,C),onPointerUp:(0,O.M)(e.onPointerUp,e=>{let t=e.target;t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=y.current,g.current=null})})))}),lZ="ScrollAreaThumb",lB=(0,b.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=lz(lZ,e.__scopeScrollArea);return(0,b.createElement)(T.z,{present:n||i.hasThumb},(0,b.createElement)(lH,(0,E.Z)({ref:t},r)))}),lH=(0,b.forwardRef)((e,t)=>{let{__scopeScrollArea:n,style:r,...i}=e,o=lO(lZ,n),a=lz(lZ,n),{onThumbPositionChange:s}=a,l=(0,k.e)(t,e=>a.onThumbChange(e)),u=(0,b.useRef)(),c=lJ(()=>{u.current&&(u.current(),u.current=void 0)},100);return(0,b.useEffect)(()=>{let e=o.viewport;if(e){let t=()=>{if(c(),!u.current){let t=lQ(e,s);u.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[o.viewport,c,s]),(0,b.createElement)(M.WV.div,(0,E.Z)({"data-state":a.hasThumb?"visible":"hidden"},i,{ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:(0,O.M)(e.onPointerDownCapture,e=>{let t=e.target,n=t.getBoundingClientRect(),r=e.clientX-n.left,i=e.clientY-n.top;a.onThumbPointerDown({x:r,y:i})}),onPointerUp:(0,O.M)(e.onPointerUp,a.onThumbPointerUp)}))}),lU="ScrollAreaCorner",lW=(0,b.forwardRef)((e,t)=>{let n=lO(lU,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY),i="scroll"!==n.type&&r;return i?(0,b.createElement)(lq,(0,E.Z)({},e,{ref:t})):null}),lq=(0,b.forwardRef)((e,t)=>{let{__scopeScrollArea:n,...r}=e,i=lO(lU,n),[o,a]=(0,b.useState)(0),[s,l]=(0,b.useState)(0);return l0(i.scrollbarX,()=>{var e;let t=(null===(e=i.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;i.onCornerHeightChange(t),l(t)}),l0(i.scrollbarY,()=>{var e;let t=(null===(e=i.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;i.onCornerWidthChange(t),a(t)}),o&&s?(0,b.createElement)(M.WV.div,(0,E.Z)({},r,{ref:t,style:{width:o,height:s,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...e.style}})):null});function l$(e){return e?parseInt(e,10):0}function lY(e,t){let n=e/t;return isNaN(n)?0:n}function lG(e){let t=lY(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function lX(e,t,n="ltr"){let r=lG(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,a=t.content-t.viewport,s="ltr"===n?[0,a]:[-1*a,0],l=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,s),u=lK([0,a],[0,o-r]);return u(l)}function lK(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}let lQ=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return!function i(){let o={left:e.scrollLeft,top:e.scrollTop},a=n.left!==o.left,s=n.top!==o.top;(a||s)&&t(),n=o,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function lJ(e,t){let n=(0,s9.W)(e),r=(0,b.useRef)(0);return(0,b.useEffect)(()=>()=>window.clearTimeout(r.current),[]),(0,b.useCallback)(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function l0(e,t){let n=(0,s9.W)(t);(0,A.b)(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}let l1=b.forwardRef((e,t)=>{let{id:n,className:r,style:i,children:o,keyToResetScrollbars:a}=e;return(0,x.jsxs)(lC,{className:(0,ea.cx)("w-full h-full overflow-hidden",r),style:i,children:[(0,x.jsx)(lM,{id:n,ref:t,className:"w-full h-full [&>div]:!block [&>div]:!h-full",children:o}),(0,x.jsx)(lT,{orientation:"vertical",className:"z-10 flex select-none touch-none transition-colors hover:bg-black/20 w-1.5 m-px",children:(0,x.jsx)(lB,{className:(0,ea.cx)("flex-1 relative bg-gray-300 rounded",'before:content[""] before:absolute before:top-1/2 before:left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full')})},a?"v-".concat(a):void 0),(0,x.jsx)(lT,{orientation:"horizontal",className:"z-10 flex flex-col select-none touch-none transition-colors duration-1000 hover:bg-black/20 h-1 m-px",children:(0,x.jsx)(lB,{className:(0,ea.cx)("flex-1 relative bg-gray-300 rounded",'before:content[""] before:absolute before:top-1/2 before:left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full')})},a?"h-".concat(a):void 0),(0,x.jsx)(lW,{className:"bg-black/70"})]})}),l2=(0,ea.j)(["z-20","overflow-hidden"],{variants:{variant:{default:"flex items-center justify-center w-full h-full",none:""}},defaultVariants:{variant:"default"}}),l4={show:{scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},l3=b.forwardRef((e,t)=>{let{trigger:n,rootProps:r,open:i,onOpenChange:o,onSubmit:a,title:s,description:l,containerVariants:u,contentVariants:c,controls:d,children:f,bodyClassName:h,closeClassName:p,dynamicHeight:m=!0}=e,{open:v,onOpenChange:g}=s1({open:i,onOpenChange:o});return(0,x.jsxs)(lb.fC,{open:v,onOpenChange:g,...r,children:[n&&(0,x.jsx)(lb.xz,{asChild:!0,children:n}),(0,x.jsx)(ny,{children:v?(0,x.jsx)(lb.h_,{forceMount:!0,children:(0,x.jsx)(lb.VY,{asChild:!0,forceMount:!0,ref:t,children:(0,x.jsxs)("div",{className:"fixed w-full h-full top-0 left-0 z-20",children:[(0,x.jsx)(lb.aV,{onClick:()=>g(!1),className:"fixed z-10 top-0 right-0 bottom-0 left-0 inset-0 transition-opacity opacity-0 open:opacity-10 dark:open:opacity-20 bg-black"}),(0,x.jsx)(s0.div,{variants:l4,initial:"init",animate:"show",exit:"exit",className:l2(u),children:(0,x.jsx)(l8,{title:s,description:l,contentVariants:c,onSubmit:a,controls:d,bodyClassName:h,closeClassName:p,dynamicHeight:m,children:f})})]})})}):null})]})});function l5(e){let{className:t}=e;return(0,x.jsx)(lb.x8,{asChild:!0,type:"button",children:(0,x.jsx)("div",{className:(0,ea.cx)("appearance-none",t),children:(0,x.jsx)(s5,{size:"small",variant:"ghost",type:"button",children:(0,x.jsx)(s6.QN4,{})})})})}let l6=(0,ea.j)(["relative","z-40","overflow-hidden"],{variants:{variant:{default:[tY()],none:""}},defaultVariants:{variant:"default"}}),l8=b.forwardRef((e,t)=>{let{children:n,onSubmit:r,title:i,description:o,controls:a,contentVariants:s,closeClassName:l,bodyClassName:u,dynamicHeight:c=!0}=e,{ref:d,height:f}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t,n]=(0,b.useState)(0),r=(0,b.useRef)(null);return(0,b.useLayoutEffect)(()=>{if(!r.current)return;let e=r.current,t=()=>n(e.clientHeight);t(),r.current.addEventListener("resize",t);let i=new ResizeObserver(t);return i.observe(e),()=>{e.removeEventListener("resize",t),i.unobserve(e)}},e),{ref:r,height:t}}([n,o]),[h,p]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{p(f>.7*window.innerHeight)},[f]),(0,x.jsxs)(r?"form":"div",{onSubmit:r,ref:t,className:l6(s),children:[i&&(0,x.jsx)(lb.Dx,{className:l7({showSeparator:h}),children:i}),(0,x.jsx)(l1,{style:{height:c?"".concat(f,"px"):void 0,maxHeight:c?"70vh":void 0},children:(0,x.jsxs)("div",{ref:d,className:(0,ea.cx)("p-4",u),children:[o&&(0,x.jsx)(lb.dk,{className:l9(),children:o}),n]})}),a&&(0,x.jsx)(ue,{separator:h,children:a}),(0,x.jsx)(l5,{className:l||"absolute top-3.5 right-2"})]})}),l7=(0,ea.j)(["pt-4 pb-2 px-4 w-full",tW({size:"20",weight:"semibold",font:"sans",color:"contrast"})],{variants:{showSeparator:{true:"border-b border-gray-200 dark:border-graydark-200"}}}),l9=(0,ea.j)([tW({color:"subtle",size:"14"}),"py-2"]);function ue(e){let{children:t,separator:n=!0}=e;return(0,x.jsx)("div",{className:(0,ea.cx)("py-2 mx-3",n?"border-t border-gray-200 dark:border-graydark-200":""),children:t})}var ut=n(55070),un=n(77334);let ur="rovingFocusGroup.onEntryFocus",ui={bubbles:!1,cancelable:!0},uo="RovingFocusGroup",[ua,us,ul]=_(uo),[uu,uc]=(0,j.b)(uo,[ul]),[ud,uf]=uu(uo),uh=(0,b.forwardRef)((e,t)=>(0,b.createElement)(ua.Provider,{scope:e.__scopeRovingFocusGroup},(0,b.createElement)(ua.Slot,{scope:e.__scopeRovingFocusGroup},(0,b.createElement)(up,(0,E.Z)({},e,{ref:t}))))),up=(0,b.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:o,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,...c}=e,d=(0,b.useRef)(null),f=(0,k.e)(t,d),h=lE(o),[p=null,m]=(0,C.T)({prop:a,defaultProp:s,onChange:l}),[v,g]=(0,b.useState)(!1),y=(0,s9.W)(u),x=us(n),w=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{let e=d.current;if(e)return e.addEventListener(ur,y),()=>e.removeEventListener(ur,y)},[y]),(0,b.createElement)(ud,{scope:n,orientation:r,dir:h,loop:i,currentTabStopId:p,onItemFocus:(0,b.useCallback)(e=>m(e),[m]),onItemShiftTab:(0,b.useCallback)(()=>g(!0),[])},(0,b.createElement)(M.WV.div,(0,E.Z)({tabIndex:v?-1:0,"data-orientation":r},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:(0,O.M)(e.onMouseDown,()=>{w.current=!0}),onFocus:(0,O.M)(e.onFocus,e=>{let t=!w.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(ur,ui);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=x().filter(e=>e.focusable),t=e.find(e=>e.active),n=e.find(e=>e.id===p),r=[t,n,...e].filter(Boolean),i=r.map(e=>e.ref.current);ug(i)}}w.current=!1}),onBlur:(0,O.M)(e.onBlur,()=>g(!1))})))}),um=(0,b.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,...o}=e,a=(0,P.M)(),s=uf("RovingFocusGroupItem",n),l=s.currentTabStopId===a,u=us(n);return(0,b.createElement)(ua.ItemSlot,{scope:n,id:a,focusable:r,active:i},(0,b.createElement)(M.WV.span,(0,E.Z)({tabIndex:l?0:-1,"data-orientation":s.orientation},o,{ref:t,onMouseDown:(0,O.M)(e.onMouseDown,e=>{r?s.onItemFocus(a):e.preventDefault()}),onFocus:(0,O.M)(e.onFocus,()=>s.onItemFocus(a)),onKeyDown:(0,O.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){s.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let i=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return uv[i]}(e,s.orientation,s.dir);if(void 0!==t){e.preventDefault();let i=u().filter(e=>e.focusable),o=i.map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=s.loop?(n=o,r=i+1,n.map((e,t)=>n[(r+t)%n.length])):o.slice(i+1)}setTimeout(()=>ug(o))}})})))}),uv={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ug(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}var uy=n(49732),ux=n(88965);let ub=["Enter"," "],uw=["ArrowUp","PageDown","End"],uE=["ArrowDown","PageUp","Home",...uw],uj={ltr:[...ub,"ArrowRight"],rtl:[...ub,"ArrowLeft"]},uk={ltr:["ArrowLeft"],rtl:["ArrowRight"]},uS="Menu",[u_,uO,uC]=_(uS),[uM,uA]=(0,j.b)(uS,[uC,ti,uc]),uT=ti(),uP=uc(),[uN,uR]=uM(uS),[uD,uL]=uM(uS),uF=(0,b.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e,i=uT(n);return(0,b.createElement)(ts,(0,E.Z)({},i,r,{ref:t}))}),uV="MenuPortal",[uz,uI]=uM(uV,{forceMount:void 0}),uZ="MenuContent",[uB,uH]=uM(uZ),uU=(0,b.forwardRef)((e,t)=>{let n=uI(uZ,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=uR(uZ,e.__scopeMenu),a=uL(uZ,e.__scopeMenu);return(0,b.createElement)(u_.Provider,{scope:e.__scopeMenu},(0,b.createElement)(T.z,{present:r||o.open},(0,b.createElement)(u_.Slot,{scope:e.__scopeMenu},a.modal?(0,b.createElement)(uW,(0,E.Z)({},i,{ref:t})):(0,b.createElement)(uq,(0,E.Z)({},i,{ref:t})))))}),uW=(0,b.forwardRef)((e,t)=>{let n=uR(uZ,e.__scopeMenu),r=(0,b.useRef)(null),i=(0,k.e)(t,r);return(0,b.useEffect)(()=>{let e=r.current;if(e)return(0,uy.R)(e)},[]),(0,b.createElement)(u$,(0,E.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,O.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),uq=(0,b.forwardRef)((e,t)=>{let n=uR(uZ,e.__scopeMenu);return(0,b.createElement)(u$,(0,E.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),u$=(0,b.forwardRef)((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f,disableOutsideScroll:h,...p}=e,m=uR(uZ,n),v=uL(uZ,n),g=uT(n),y=uP(n),x=uO(n),[w,j]=(0,b.useState)(null),_=(0,b.useRef)(null),C=(0,k.e)(t,_,m.onContentChange),M=(0,b.useRef)(0),A=(0,b.useRef)(""),T=(0,b.useRef)(0),P=(0,b.useRef)(null),N=(0,b.useRef)("right"),R=(0,b.useRef)(0),D=h?ux.Z:b.Fragment,L=h?{as:S.g7,allowPinchZoom:!0}:void 0,F=e=>{var t,n;let r=A.current+e,i=x().filter(e=>!e.disabled),o=document.activeElement,a=null===(t=i.find(e=>e.ref.current===o))||void 0===t?void 0:t.textValue,s=i.map(e=>e.textValue),l=function(e,t,n){var r;let i=t.length>1&&Array.from(t).every(e=>e===t[0]),o=i?t[0]:t,a=n?e.indexOf(n):-1,s=(r=Math.max(a,0),e.map((t,n)=>e[(r+n)%e.length])),l=1===o.length;l&&(s=s.filter(e=>e!==n));let u=s.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}(s,r,a),u=null===(n=i.find(e=>e.textValue===l))||void 0===n?void 0:n.ref.current;!function e(t){A.current=t,window.clearTimeout(M.current),""!==t&&(M.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>u.focus())};(0,b.useEffect)(()=>()=>window.clearTimeout(M.current),[]),(0,ut.EW)();let V=(0,b.useCallback)(e=>{var t,n;let r=N.current===(null===(t=P.current)||void 0===t?void 0:t.side);return r&&function(e,t){if(!t)return!1;let n={x:e.clientX,y:e.clientY};return function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;er!=u>r&&n<(l-a)*(r-s)/(u-s)+a;c&&(i=!i)}return i}(n,t)}(e,null===(n=P.current)||void 0===n?void 0:n.area)},[]);return(0,b.createElement)(uB,{scope:n,searchRef:A,onItemEnter:(0,b.useCallback)(e=>{V(e)&&e.preventDefault()},[V]),onItemLeave:(0,b.useCallback)(e=>{var t;V(e)||(null===(t=_.current)||void 0===t||t.focus(),j(null))},[V]),onTriggerLeave:(0,b.useCallback)(e=>{V(e)&&e.preventDefault()},[V]),pointerGraceTimerRef:T,onPointerGraceIntentChange:(0,b.useCallback)(e=>{P.current=e},[])},(0,b.createElement)(D,L,(0,b.createElement)(un.M,{asChild:!0,trapped:i,onMountAutoFocus:(0,O.M)(o,e=>{var t;e.preventDefault(),null===(t=_.current)||void 0===t||t.focus()}),onUnmountAutoFocus:a},(0,b.createElement)(es.XB,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f},(0,b.createElement)(uh,(0,E.Z)({asChild:!0},y,{dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:w,onCurrentTabStopIdChange:j,onEntryFocus:e=>{v.isUsingKeyboardRef.current||e.preventDefault()}}),(0,b.createElement)(th,(0,E.Z)({role:"menu","aria-orientation":"vertical","data-state":u7(m.open),dir:v.dir},g,p,{ref:C,style:{outline:"none",...p.style},onKeyDown:(0,O.M)(p.onKeyDown,e=>{let t=e.target,n=t.closest('[role="menu"]')===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,i=1===e.key.length;n&&("Tab"===e.key&&e.preventDefault(),!r&&i&&F(e.key));let o=_.current;if(e.target!==o||!uE.includes(e.key))return;e.preventDefault();let a=x().filter(e=>!e.disabled),s=a.map(e=>e.ref.current);uw.includes(e.key)&&s.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(s)}),onBlur:(0,O.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(M.current),A.current="")}),onPointerMove:(0,O.M)(e.onPointerMove,ce(e=>{let t=e.target,n=R.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>R.current?"right":"left";N.current=t,R.current=e.clientX}}))})))))))}),uY=(0,b.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,b.createElement)(M.WV.div,(0,E.Z)({role:"group"},r,{ref:t}))}),uG=(0,b.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,b.createElement)(M.WV.div,(0,E.Z)({},r,{ref:t}))}),uX="MenuItem",uK="menu.itemSelect",uQ=(0,b.forwardRef)((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,o=(0,b.useRef)(null),a=uL(uX,e.__scopeMenu),s=uH(uX,e.__scopeMenu),l=(0,k.e)(t,o),u=(0,b.useRef)(!1);return(0,b.createElement)(uJ,(0,E.Z)({},i,{ref:l,disabled:n,onClick:(0,O.M)(e.onClick,()=>{let e=o.current;if(!n&&e){let t=new CustomEvent(uK,{bubbles:!0,cancelable:!0});e.addEventListener(uK,e=>null==r?void 0:r(e),{once:!0}),(0,M.jH)(e,t),t.defaultPrevented?u.current=!1:a.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),u.current=!0},onPointerUp:(0,O.M)(e.onPointerUp,e=>{var t;u.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,O.M)(e.onKeyDown,e=>{let t=""!==s.searchRef.current;!n&&(!t||" "!==e.key)&&ub.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))}),uJ=(0,b.forwardRef)((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...o}=e,a=uH(uX,n),s=uP(n),l=(0,b.useRef)(null),u=(0,k.e)(t,l),[c,d]=(0,b.useState)(!1),[f,h]=(0,b.useState)("");return(0,b.useEffect)(()=>{let e=l.current;if(e){var t;h((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[o.children]),(0,b.createElement)(u_.ItemSlot,{scope:n,disabled:r,textValue:null!=i?i:f},(0,b.createElement)(um,(0,E.Z)({asChild:!0},s,{focusable:!r}),(0,b.createElement)(M.WV.div,(0,E.Z)({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},o,{ref:u,onPointerMove:(0,O.M)(e.onPointerMove,ce(e=>{if(r)a.onItemLeave(e);else if(a.onItemEnter(e),!e.defaultPrevented){let t=e.currentTarget;t.focus()}})),onPointerLeave:(0,O.M)(e.onPointerLeave,ce(e=>a.onItemLeave(e))),onFocus:(0,O.M)(e.onFocus,()=>d(!0)),onBlur:(0,O.M)(e.onBlur,()=>d(!1))}))))}),[u0,u1]=((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,b.createElement)(u4,{scope:e.__scopeMenu,checked:n},(0,b.createElement)(uQ,(0,E.Z)({role:"menuitemcheckbox","aria-checked":n},i,{ref:t,"data-state":u9(n),onSelect:(0,O.M)(i.onSelect,()=>null==r?void 0:r(!n),{checkForDefaultPrevented:!1})})))},uM("MenuRadioGroup",{value:void 0,onValueChange:()=>{}})),u2=((e,t)=>{let{value:n,onValueChange:r,...i}=e,o=(0,s9.W)(r);return(0,b.createElement)(u0,{scope:e.__scopeMenu,value:n,onValueChange:o},(0,b.createElement)(uY,(0,E.Z)({},i,{ref:t})))},"MenuItemIndicator"),[u4,u3]=uM(u2,{checked:!1}),[u5,u6]=((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,o=u3(u2,n);return(0,b.createElement)(T.z,{present:r||o.checked},(0,b.createElement)(M.WV.span,(0,E.Z)({},i,{ref:t,"data-state":u9(o.checked)})))},uM("MenuSub")),u8="MenuSubTrigger";function u7(e){return e?"open":"closed"}function u9(e){return e?"checked":"unchecked"}function ce(e){return t=>"mouse"===t.pointerType?e(t):void 0}(e,t)=>{let n=uR(u8,e.__scopeMenu),r=uL(u8,e.__scopeMenu),i=u6(u8,e.__scopeMenu),o=uH(u8,e.__scopeMenu),a=(0,b.useRef)(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=o,u={__scopeMenu:e.__scopeMenu},c=(0,b.useCallback)(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return(0,b.useEffect)(()=>c,[c]),(0,b.useEffect)(()=>{let e=s.current;return()=>{window.clearTimeout(e),l(null)}},[s,l]),(0,b.createElement)(uF,(0,E.Z)({asChild:!0},u),(0,b.createElement)(uJ,(0,E.Z)({id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":u7(n.open)},e,{ref:(0,k.F)(t,i.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,O.M)(e.onPointerMove,ce(t=>{o.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||a.current||(o.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),c()},100))})),onPointerLeave:(0,O.M)(e.onPointerLeave,ce(e=>{var t,r;c();let i=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(i){let t=null===(r=n.content)||void 0===r?void 0:r.dataset.side,a="right"===t,l=i[a?"left":"right"],u=i[a?"right":"left"];o.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:l,y:i.top},{x:u,y:i.top},{x:u,y:i.bottom},{x:l,y:i.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(e),e.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:(0,O.M)(e.onKeyDown,t=>{let i=""!==o.searchRef.current;if(!e.disabled&&(!i||" "!==t.key)&&uj[r.dir].includes(t.key)){var a;n.onOpenChange(!0),null===(a=n.content)||void 0===a||a.focus(),t.preventDefault()}})})))},(e,t)=>{let n=uI(uZ,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=uR(uZ,e.__scopeMenu),a=uL(uZ,e.__scopeMenu),s=u6("MenuSubContent",e.__scopeMenu),l=(0,b.useRef)(null),u=(0,k.e)(t,l);return(0,b.createElement)(u_.Provider,{scope:e.__scopeMenu},(0,b.createElement)(T.z,{present:r||o.open},(0,b.createElement)(u_.Slot,{scope:e.__scopeMenu},(0,b.createElement)(u$,(0,E.Z)({id:s.contentId,"aria-labelledby":s.triggerId},i,{ref:u,align:"start",side:"rtl"===a.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;a.isUsingKeyboardRef.current&&(null===(t=l.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,O.M)(e.onFocusOutside,e=>{e.target!==s.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:(0,O.M)(e.onEscapeKeyDown,a.onClose),onKeyDown:(0,O.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=uk[a.dir].includes(e.key);if(t&&n){var r;o.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault()}})})))))};let ct=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:o,modal:a=!0}=e,s=uT(t),[l,u]=(0,b.useState)(null),c=(0,b.useRef)(!1),d=(0,s9.W)(o),f=lE(i);return(0,b.useEffect)(()=>{let e=()=>{c.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>c.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,b.createElement)(tb,s,(0,b.createElement)(uN,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:u},(0,b.createElement)(uD,{scope:t,onClose:(0,b.useCallback)(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:a},r)))},cn=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=uR(uV,t);return(0,b.createElement)(uz,{scope:t,forceMount:n},(0,b.createElement)(T.z,{present:n||o.open},(0,b.createElement)(tw.h,{asChild:!0,container:i},r)))},cr="DropdownMenu",[ci,co]=(0,j.b)(cr,[uA]),ca=uA(),[cs,cl]=ci(cr),cu=(0,b.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,o=cl("DropdownMenuTrigger",n),a=ca(n);return(0,b.createElement)(uF,(0,E.Z)({asChild:!0},a),(0,b.createElement)(M.WV.button,(0,E.Z)({type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":!!o.open||void 0,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},i,{ref:(0,k.F)(t,o.triggerRef),onPointerDown:(0,O.M)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:(0,O.M)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),[" ","ArrowDown"].includes(e.key)&&e.preventDefault())})})))}),cc=(0,b.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cl("DropdownMenuContent",n),o=ca(n),a=(0,b.useRef)(!1);return(0,b.createElement)(uU,(0,E.Z)({id:i.contentId,"aria-labelledby":i.triggerId},o,r,{ref:t,onCloseAutoFocus:(0,O.M)(e.onCloseAutoFocus,e=>{var t;a.current||null===(t=i.triggerRef.current)||void 0===t||t.focus(),a.current=!1,e.preventDefault()}),onInteractOutside:(0,O.M)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!i.modal||r)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)"}}))}),cd=(0,b.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=ca(n);return(0,b.createElement)(uG,(0,E.Z)({},i,r,{ref:t}))}),cf=(0,b.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=ca(n);return(0,b.createElement)(uQ,(0,E.Z)({},i,r,{ref:t}))}),ch=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,l=ca(t),u=(0,b.useRef)(null),[c=!1,d]=(0,C.T)({prop:i,defaultProp:o,onChange:a});return(0,b.createElement)(cs,{scope:t,triggerId:(0,P.M)(),triggerRef:u,contentId:(0,P.M)(),open:c,onOpenChange:d,onOpenToggle:(0,b.useCallback)(()=>d(e=>!e),[d]),modal:s},(0,b.createElement)(ct,(0,E.Z)({},l,{open:c,onOpenChange:d,dir:r,modal:s}),n))},cp=e=>{let{__scopeDropdownMenu:t,...n}=e,r=ca(t);return(0,b.createElement)(cn,(0,E.Z)({},r,n))},cm="horizontal",cv=["horizontal","vertical"],cg=(0,b.forwardRef)((e,t)=>{let{decorative:n,orientation:r=cm,...i}=e,o=cy(r)?r:cm;return(0,b.createElement)(M.WV.div,(0,E.Z)({"data-orientation":o},n?{role:"none"}:{"aria-orientation":"vertical"===o?o:void 0,role:"separator"},i,{ref:t}))});function cy(e){return cv.includes(e)}cg.propTypes={orientation(e,t,n){let r=e[t],i=String(r);return r&&!cy(r)?Error(`Invalid prop \`orientation\` of value \`${i}\` supplied to \`${n}\`, expected one of: - - horizontal - - vertical - -Defaulting to \`${cm}\`.`):null}};let cx=(0,ea.j)(["m-0 flex-shrink-0 cursor-default"],{variants:{variant:{vertical:"border-r",horizontal:"border-b"},color:{subtle:"border-gray-300 dark:border-graydark-300",verySubtle:"border-gray-100 dark:border-graydark-100",panel:"border-gray-100 dark:border-graydark-400/50"}},defaultVariants:{variant:"horizontal",color:"subtle"}}),cb=b.forwardRef((e,t)=>{let{variant:n,color:r,className:i,...o}=e;return(0,x.jsx)(cg,{ref:t,className:cx({variant:n,color:r,className:i}),...o})}),cw=function(){let{className:e,font:t,color:n="subtle",weight:r="medium",size:i="14",scaleSize:o,noWrap:a,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,ea.cx)(tW({font:t,color:n,weight:r,size:i,scaleSize:o,noWrap:a,ellipsis:s,className:e}),["relative","flex","items-center","tabular-nums","select-none","whitespace-nowrap","px-1.5","py-1.5"])},cE=function(){let{className:e,font:t,color:n="contrast",weight:r="medium",size:i="14",scaleSize:o,noWrap:a,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,ea.cx)(cw({font:t,color:n,weight:r,size:i,scaleSize:o,noWrap:a,ellipsis:s,className:e}),["group","cursor-pointer","rounded-sm","focus:outline-none","focus:text-gray-900","dark:focus:text-white","focus:bg-gray-300","dark:focus:bg-graydark-300","aria-selected:bg-gray-400","aria-selected:dark:bg-graydark-500","data-[disabled]:pointer-events-none","data-[disabled]:text-gray-700","dark:data-[disabled]:text-graydark-700"])},cj=e=>{let{className:t,font:n,color:r="verySubtle",weight:i="medium",size:o="14",scaleSize:a,noWrap:s,ellipsis:l}=e;return tW({font:n,color:r,weight:i,size:o,scaleSize:a,noWrap:s,ellipsis:l,className:t})},ck=e=>(0,ea.cx)(["h-px","my-2","mx-1.5",e]),cS=b.forwardRef((e,t)=>{let{className:n,color:r,...i}=e;return(0,x.jsx)(cb,{ref:t,className:ck(n),...i})}),c_=b.forwardRef((e,t)=>{let{className:n,font:r,color:i,weight:o,size:a="14",scaleSize:s,noWrap:l,ellipsis:u,...c}=e;return(0,x.jsx)("div",{ref:t,className:(0,ea.cx)(cw({className:n,font:r,color:i,weight:o,size:a,scaleSize:s,noWrap:l,ellipsis:u})),...c})}),cO=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)("div",{ref:t,className:(0,ea.cx)(["ml-auto","pl-5",n]),...r})}),cC=(0,ea.j)(["relative","max-w-sm","z-30","py-1","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-tip","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),cM=e=>(0,ea.cx)(tY(),(0,ea.j)(["max-w-xs","shadow-sm","py-1","px-1"])({className:e})),cA={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},cT=b.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o,className:a,open:s,onOpenChange:l}=e,{open:u,onOpenChange:c}=s1({open:s,onOpenChange:l});return(0,x.jsxs)(ch,{open:u,onOpenChange:c,...i,children:[(0,x.jsx)(cu,{asChild:!0,children:n}),(0,x.jsx)(ny,{children:u?(0,x.jsx)(cp,{forceMount:!0,children:(0,x.jsx)(cc,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,x.jsx)(s0.div,{variants:cA,initial:"init",animate:"show",exit:"exit",className:cC(),children:(0,x.jsx)("div",{className:cM(a),children:r})})})}):null})]})}),cP=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)(cf,{ref:t,className:cE({className:n}),...r})}),cN=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)(cd,{ref:t,className:(0,ea.cx)("px-1.5",cj({className:n})),...r})}),cR=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)("div",{ref:t,className:(0,ea.cx)(["pr-2","opacity-70 group-hover:opacity-100",n]),...r})});var cD=n(39097),cL=n.n(cD);let cF={20:"h3",24:"h3",32:"h2",40:"h2",64:"h1"},cV={20:"font-semibold text-base md:text-xl",24:"font-bold text-xl md:text-2xl",32:"font-semibold text-2xl md:text-3xl",40:"font-semibold text-3xl md:text-4xl",64:"font-semibold text-4xl md:text-6xl"},cz=b.forwardRef((e,t)=>{let{size:n="24",className:r,id:i,children:o,anchorLink:a,showAnchor:s,...l}=e,u=cF[n];if(a){let e=i||("string"==typeof o?encodeURI(o.toLowerCase().replace(/ /g,"-")):"");return(0,x.jsxs)("div",{className:(0,ea.cx)("relative flex flex-col gap-6 items-start",r),children:[(0,x.jsx)("div",{id:e,className:"absolute -top-[100px]"}),(0,x.jsxs)(cL(),{href:"#".concat(e),className:"relative group",children:[(0,x.jsx)(tq,{className:"hidden group-hover:block",children:(0,x.jsx)(s6.POp,{className:"absolute top-1 -left-7 hidden md:block"})}),(0,x.jsx)(tq,{as:u,...l,ref:t,weight:"none",className:(0,ea.cx)("proportional-nums inline-block",cV[n]),children:o})]})]})}return(0,x.jsx)("div",{className:(0,ea.cx)("flex flex-col gap-6 items-start",r),children:(0,x.jsx)(tq,{as:u,...l,ref:t,weight:"none",className:(0,ea.cx)("proportional-nums inline-block",cV[n],r),children:o})})});var cI=n(96577),cZ=n.n(cI);let cB=(0,ea.j)(["rounded"]);function cH(e){let{className:t,...n}=e;return(0,x.jsx)(cZ(),{className:cB({className:t}),...n})}let[cU,cW]=(0,j.k)("Label",{id:void 0,controlRef:{current:null}}),cq=(0,b.forwardRef)((e,t)=>{let{htmlFor:n,id:r,...i}=e,o=(0,b.useRef)(null),a=(0,b.useRef)(null),s=(0,k.e)(t,a),l=(0,P.M)(r);return(0,b.useEffect)(()=>{if(n){let e=document.getElementById(n),t=a.current;if(t&&e){let t=()=>e.getAttribute("aria-labelledby"),n=[l,t()].filter(Boolean).join(" ");return e.setAttribute("aria-labelledby",n),o.current=e,()=>{var n;let r=null===(n=t())||void 0===n?void 0:n.replace(l,"");""===r?e.removeAttribute("aria-labelledby"):r&&e.setAttribute("aria-labelledby",r)}}}},[l,n]),(0,b.createElement)(cU,{id:l,controlRef:o},(0,b.createElement)(M.WV.span,(0,E.Z)({role:"label",id:l},i,{ref:s,onMouseDown:t=>{var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()},onClick:t=>{var n;if(null===(n=e.onClick)||void 0===n||n.call(e,t),!o.current||t.defaultPrevented)return;let r=o.current.contains(t.target),i=!0===t.isTrusted;!r&&i&&(o.current.click(),o.current.focus())}})))}),c$=e=>{let t=cW("LabelConsumer"),{controlRef:n}=t;return(0,b.useEffect)(()=>{e&&(n.current=e)},[e,n]),t.id},cY=b.forwardRef((e,t)=>{let{font:n,size:r="14",scaleSize:i,weight:o,color:a="verySubtle",noWrap:s,ellipsis:l,className:u,...c}=e;return(0,x.jsx)(cq,{ref:t,...c,className:cj({font:n,size:r,scaleSize:i,color:a,weight:o,noWrap:s,ellipsis:l,className:u})})}),cG=(0,ea.j)(["cursor-pointer"],{variants:{disabled:{true:"opacity-50 pointer-events-none"},underline:{accent:"underline underline-offset-4 decoration-2 decoration-accentdark-900 dark:decoration-accentdark-900",default:"underline underline-offset-4",hover:"hover:underline underline-offset-4",none:""}},defaultVariants:{disabled:!1,underline:"default"}}),cX=e=>{let{font:t,size:n,scaleSize:r,color:i,weight:o,noWrap:a,ellipsis:s,underline:l,disabled:u,className:c}=e;return(0,ea.cx)(tW({scaleSize:r,size:n,font:t,color:i,weight:o,noWrap:a,ellipsis:s,underline:l}),cG({disabled:u,underline:l}),c)},cK=b.forwardRef((e,t)=>{let{href:n,font:r,size:i,scaleSize:o,color:a,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f,rel:h,target:p,onClick:m,...v}=e,g=(0,b.useCallback)(e=>{m&&(n||e.preventDefault(),m(e))},[m,n]);return(0,x.jsx)(cL(),{href:n||"#",ref:t,className:cX({font:r,scaleSize:o,size:i,color:a,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f}),...v,onClick:g,rel:h||("_blank"===p?"noopener":void 0),target:p})}),cQ={src:"/_next/static/media/logo.0e2362ab.png"};function cJ(e){let{size:t=30,className:n}=e;return(0,x.jsx)(cH,{priority:!0,src:"/_next/static/media/logo.0e2362ab.png",alt:"Logo",width:t,height:t,className:n})}let c0="Popover",[c1,c2]=(0,j.b)(c0,[ti]),c4=ti(),[c3,c5]=c1(c0),c6=(0,b.forwardRef)((e,t)=>{let{__scopePopover:n,...r}=e,i=c5("PopoverTrigger",n),o=c4(n),a=(0,k.e)(t,i.triggerRef),s=(0,b.createElement)(M.WV.button,(0,E.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":da(i.open)},r,{ref:a,onClick:(0,O.M)(e.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?s:(0,b.createElement)(ts,(0,E.Z)({asChild:!0},o),s)}),c8="PopoverPortal",[c7,c9]=c1(c8,{forceMount:void 0}),de="PopoverContent",dt=(0,b.forwardRef)((e,t)=>{let n=c9(de,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,o=c5(de,e.__scopePopover);return(0,b.createElement)(T.z,{present:r||o.open},o.modal?(0,b.createElement)(dn,(0,E.Z)({},i,{ref:t})):(0,b.createElement)(dr,(0,E.Z)({},i,{ref:t})))}),dn=(0,b.forwardRef)((e,t)=>{let n=c5(de,e.__scopePopover),r=(0,b.useRef)(null),i=(0,k.e)(t,r),o=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{let e=r.current;if(e)return(0,uy.R)(e)},[]),(0,b.createElement)(ux.Z,{as:S.g7,allowPinchZoom:!0},(0,b.createElement)(di,(0,E.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,O.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),o.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,O.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,O.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})))}),dr=(0,b.forwardRef)((e,t)=>{let n=c5(de,e.__scopePopover),r=(0,b.useRef)(!1);return(0,b.createElement)(di,(0,E.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,o;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current||null===(o=n.triggerRef.current)||void 0===o||o.focus(),t.preventDefault()),r.current=!1},onInteractOutside:t=>{var i,o;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0);let a=t.target,s=null===(o=n.triggerRef.current)||void 0===o?void 0:o.contains(a);s&&t.preventDefault()}}))}),di=(0,b.forwardRef)((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,f=c5(de,n),h=c4(n);return(0,ut.EW)(),(0,b.createElement)(un.M,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o},(0,b.createElement)(es.XB,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:c,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1)},(0,b.createElement)(th,(0,E.Z)({"data-state":da(f.open),role:"dialog",id:f.contentId},h,d,{ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function da(e){return e?"open":"closed"}let ds=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:a=!1}=e,s=c4(t),l=(0,b.useRef)(null),[u,c]=(0,b.useState)(!1),[d=!1,f]=(0,C.T)({prop:r,defaultProp:i,onChange:o});return(0,b.createElement)(tb,s,(0,b.createElement)(c3,{scope:t,contentId:(0,P.M)(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:(0,b.useCallback)(()=>f(e=>!e),[f]),hasCustomAnchor:u,onCustomAnchorAdd:(0,b.useCallback)(()=>c(!0),[]),onCustomAnchorRemove:(0,b.useCallback)(()=>c(!1),[]),modal:a},n))},dl=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,o=c5(c8,t);return(0,b.createElement)(c7,{scope:t,forceMount:n},(0,b.createElement)(T.z,{present:n||o.open},(0,b.createElement)(tw.h,{asChild:!0,container:i},r)))},du=(0,ea.j)(["relative","z-10","outline-none","max-w-sm","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),dc=(0,ea.cx)(tY(),(0,ea.j)(["py-1","px-1"])()),dd={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},df=b.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o}=e,{open:a,onOpenChange:s}=s1({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,x.jsxs)(ds,{open:a,onOpenChange:s,...i,children:[(0,x.jsx)(c6,{asChild:!0,children:n}),(0,x.jsx)(ny,{children:a?(0,x.jsx)(dl,{forceMount:!0,children:(0,x.jsx)(dt,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,x.jsx)(s0.div,{variants:dd,initial:"init",animate:"show",exit:"exit",className:du(),children:(0,x.jsx)(l1,{className:dc,children:r})})})}):null})]})}),dh="Progress",[dp,dm]=(0,j.b)(dh),[dv,dg]=dp(dh),dy=(0,b.forwardRef)((e,t)=>{let{__scopeProgress:n,value:r,max:i,getValueLabel:o=db,...a}=e,s=dj(i)?i:100,l=dk(r,s)?r:null,u=dE(l)?o(l,s):void 0;return(0,b.createElement)(dv,{scope:n,value:l,max:s},(0,b.createElement)(M.WV.div,(0,E.Z)({"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":dE(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":dw(l,s),"data-value":null!=l?l:void 0,"data-max":s},a,{ref:t})))});dy.propTypes={max(e,t,n){let r=e[t],i=String(r);return r&&!dj(r)?Error(`Invalid prop \`max\` of value \`${i}\` supplied to \`${n}\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`):null},value(e,t,n){let r=e[t],i=String(r),o=dj(e.max)?e.max:100;return null==r||dk(r,o)?null:Error(`Invalid prop \`value\` of value \`${i}\` supplied to \`${n}\`. The \`value\` prop must be: - - a positive number - - less than the value passed to \`max\` (or 100 if no \`max\` prop is set) - - \`null\` if the progress is indeterminate. - -Defaulting to \`null\`.`)}};let dx=(0,b.forwardRef)((e,t)=>{var n;let{__scopeProgress:r,...i}=e,o=dg("ProgressIndicator",r);return(0,b.createElement)(M.WV.div,(0,E.Z)({"data-state":dw(o.value,o.max),"data-value":null!==(n=o.value)&&void 0!==n?n:void 0,"data-max":o.max},i,{ref:t}))});function db(e,t){return`${Math.round(e/t*100)}%`}function dw(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function dE(e){return"number"==typeof e}function dj(e){return dE(e)&&!isNaN(e)&&e>0}function dk(e,t){return dE(e)&&!isNaN(e)&&e<=t&&e>=0}let dS=(0,ea.j)(["relative h-1 w-full overflow-hidden rounded-lg"],{variants:{variant:{gray:"bg-gray-700 dark:bg-graydark-700",accent:"bg-green-600 dark:bg-green-500"}},defaultVariants:{variant:"gray"}}),d_=b.forwardRef((e,t)=>{let{label:n,variant:r,className:i,value:o,max:a=100,...s}=e,l=null!=o?Math.round(o/a*100):null;return(0,x.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,x.jsx)(dy,{...s,ref:t,value:o,max:a,className:dS({variant:r,className:i}),children:(0,x.jsx)(dx,{className:"absolute top-0 right-0 left-0 bottom-0 w-full bg-gray-300 dark:bg-graydark-300 transition-transform",style:{transform:"translateX(".concat(l,"%)")}})}),n&&(0,x.jsx)(tq,{color:"subtle",size:"12",ellipsis:!0,children:n})]})});function dO(e){let t=(0,b.useRef)({value:e,previous:e});return(0,b.useMemo)(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}let dC="Radio",[dM,dA]=(0,j.b)(dC),[dT,dP]=dM(dC),dN=(0,b.forwardRef)((e,t)=>{let{__scopeRadio:n,"aria-labelledby":r,name:i,checked:o=!1,required:a,disabled:s,value:l="on",onCheck:u,...c}=e,[d,f]=(0,b.useState)(null),h=(0,k.e)(t,e=>f(e)),p=c$(d),m=(0,b.useRef)(!1),v=!d||!!d.closest("form");return(0,b.createElement)(dT,{scope:n,checked:o,disabled:s},(0,b.createElement)(M.WV.button,(0,E.Z)({type:"button",role:"radio","aria-checked":o,"aria-labelledby":r||p,"data-state":dL(o),"data-disabled":s?"":void 0,disabled:s,value:l},c,{ref:h,onClick:(0,O.M)(e.onClick,e=>{o||null==u||u(),v&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})),v&&(0,b.createElement)(dD,{control:d,bubbles:!m.current,name:i,value:l,checked:o,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))}),dR=(0,b.forwardRef)((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,o=dP("RadioIndicator",n);return(0,b.createElement)(T.z,{present:r||o.checked},(0,b.createElement)(M.WV.span,(0,E.Z)({"data-state":dL(o.checked),"data-disabled":o.disabled?"":void 0},i,{ref:t})))}),dD=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,o=(0,b.useRef)(null),a=dO(n),s=tt(t);return(0,b.useEffect)(()=>{let e=o.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked"),s=i.set;if(a!==n&&s){let t=new Event("click",{bubbles:r});s.call(e,n),e.dispatchEvent(t)}},[a,n,r]),(0,b.createElement)("input",(0,E.Z)({type:"radio","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function dL(e){return e?"checked":"unchecked"}let dF=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],dV="RadioGroup",[dz,dI]=(0,j.b)(dV,[uc,dA]),dZ=uc(),dB=dA(),[dH,dU]=dz(dV),dW=(0,b.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,name:r,"aria-labelledby":i,defaultValue:o,value:a,required:s=!1,orientation:l,dir:u,loop:c=!0,onValueChange:d,...f}=e,h=c$(),p=dZ(n),m=lE(u),[v,g]=(0,C.T)({prop:a,defaultProp:o,onChange:d});return(0,b.createElement)(dH,{scope:n,name:r,required:s,value:v,onValueChange:g},(0,b.createElement)(uh,(0,E.Z)({asChild:!0},p,{orientation:l,dir:m,loop:c}),(0,b.createElement)(M.WV.div,(0,E.Z)({role:"radiogroup","aria-required":s,"aria-orientation":l,"aria-labelledby":i||h,dir:m},f,{ref:t}))))}),dq=(0,b.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,disabled:r,...i}=e,o=dU("RadioGroupItem",n),a=dZ(n),s=dB(n),l=(0,b.useRef)(null),u=(0,k.e)(t,l),c=o.value===i.value,d=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{let e=e=>{dF.includes(e.key)&&(d.current=!0)},t=()=>d.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,b.createElement)(um,(0,E.Z)({asChild:!0},a,{focusable:!r,active:c}),(0,b.createElement)(dN,(0,E.Z)({disabled:r,required:o.required,checked:c},s,i,{name:o.name,ref:u,onCheck:()=>o.onValueChange(i.value),onKeyDown:(0,O.M)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,O.M)(i.onFocus,()=>{var e;d.current&&(null===(e=l.current)||void 0===e||e.click())})})))}),d$=(0,b.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,...r}=e,i=dB(n);return(0,b.createElement)(dR,(0,E.Z)({},i,r,{ref:t}))}),dY=(0,ea.j)(["relative flex items-center h-full justify-center w-full",'after:content-[""] after:block after:rounded-full after:bg-green-600 after:dark:bg-green-500'],{variants:{size:{small:"after:w-2 after:h-2 ",medium:"after:w-4 after:h-4"}},defaultVariants:{size:"small"}}),dG=(0,ea.j)(["select-none","inline-flex items-center justify-center","m-0 p-0","outline-none","rounded-full","overflow-hidden","focus:ring ring-blue-500 dark:ring-blue-200","bg-white dark:bg-graydark-200","border border-gray-500 dark:border-graydark-400","enabled:hover:border-gray-700 enabled:hover:dark:border-graydark-600","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-400","disabled:bg-gray-200 disabled:dark:bg-graydark-200"],{variants:{size:{small:"w-4 h-4",medium:"w-6 h-6"}},defaultVariants:{size:"small"}}),dX=b.forwardRef((e,t)=>{let{size:n,className:r,children:i,...o}=e;return(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(dq,{...o,className:dG({size:n,className:r}),ref:t,children:(0,x.jsx)(d$,{className:dY({size:n})})}),(0,x.jsx)(tq,{size:"14",className:"relative top-px flex items-center",color:o.disabled?"verySubtle":"subtle",children:i})]})}),dK=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)(dW,{...r,className:(0,ea.cx)("flex gap-2",n),ref:t})});(0,ea.j)(["relative appearance-none outline-none","p-2 m-0 w-full","min-h-[80px]",tW(),"tabular-nums","resize-y","rounded","focus:ring ring-blue-500 dark:ring-blue-200","text-gray-1100 dark:text-white","placeholder:text-gray-600 placeholder:dark:text-graydark-500","disabled:text-gray-400 disabled:dark:text-graydark-400"],{variants:{size:{small:"h-7 text-sm px-2",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},variant:{default:["border","bg-white dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800"],ghost:"bg-transparent"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]},cursor:{default:"",text:"cursor-text"}},defaultVariants:{size:"small",variant:"default",cursor:"default",state:"default"}});let dQ=(0,ea.j)(["font-sans [type=number]:font-mono","outline-none m-0 p-0 w-full","disabled:pointer-events-none","tabular-nums","rounded","text-gray-1100 dark:text-white","autofill:text-fill-gray-1100 autofill:dark:text-fill-white","autofill:placeholder:text-fill-gray-700 autofill:placeholder:dark:text-fill-graydark-700","placeholder:text-gray-700 placeholder:dark:text-graydark-700","disabled:text-gray-400 disabled:dark:text-graydark-400"],{variants:{size:{small:"h-7 text-sm px-2",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},variant:{default:["border","bg-white dark:bg-graydark-50","autofill:bg-white autofill:dark:bg-graydark-50","autofill:shadow-fill-white autofill:dark:shadow-fill-graydark-50"],ghost:"bg-transparent"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]},focus:{default:["focus:ring ring-blue-500 dark:ring-blue-200","focus:z-10"],none:""},cursor:{default:"",text:"cursor-text"},noSpin:{true:"[&::-webkit-outer-spin-button, &::-webkit-inner-spin-button]:appearance-none"}},defaultVariants:{size:"small",focus:"default",variant:"default",cursor:"default",state:"default"}}),dJ=b.forwardRef((e,t)=>{let{variant:n,size:r,state:i,noSpin:o,cursor:a,focus:s,className:l,...u}=e;return(0,x.jsx)("input",{ref:t,className:dQ({variant:n,size:r,state:i,noSpin:o,cursor:a,focus:s,className:l}),...u})});/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var d0=function(){return(d0=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1){if(e.includes(t)){var r=e.split(t),i=r[0],o=r[1];if(o.length>n)return""+i+t+o.slice(0,n)}var a=e.length>n?RegExp("(\\d+)(\\d{"+n+"})"):RegExp("(\\d)(\\d+)"),s=e.match(a);if(s){var i=s[1],o=s[2];return""+i+t+o}}return e},d9=function(e,t){var n=t.groupSeparator,r=t.decimalSeparator,i=RegExp("\\d([^"+d2(void 0===n?",":n)+d2(void 0===r?".":r)+"0-9]+)"),o=e.match(i);return o?o[1]:void 0},fe=function(e){var t=e.value,n=e.decimalSeparator,r=e.intlConfig,i=e.decimalScale,o=e.prefix,a=void 0===o?"":o,s=e.suffix,l=void 0===s?"":s;if(""===t||void 0===t)return"";if("-"===t)return"-";var u=RegExp("^\\d?-"+(a?d2(a)+"?":"")+"\\d").test(t),c="."!==n?ft(t,n,u):t,d=fn((r?new Intl.NumberFormat(r.locale,r.currency?{style:"currency",currency:r.currency,minimumFractionDigits:i||0,maximumFractionDigits:20}:void 0):new Intl.NumberFormat(void 0,{minimumFractionDigits:i||0,maximumFractionDigits:20})).formatToParts(Number(c)),e),f=d9(d,d0({},e)),h=t.slice(-1)===n?n:"",p=(c.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return(void 0===i&&p&&n&&(d=d.includes(n)?d.replace(RegExp("(\\d+)("+d2(n)+")(\\d+)","g"),"$1$2"+p):f&&!l?d.replace(f,""+n+p+f):""+d+n+p),l&&h)?""+d+h+l:f&&h?d.replace(f,""+h+f):f&&l?d.replace(f,""+h+l):[d,h,l].join("")},ft=function(e,t,n){var r=e;return t&&"."!==t&&(r=r.replace(RegExp(d2(t),"g"),"."),n&&"-"===t&&(r="-"+r.slice(1))),r},fn=function(e,t){var n=t.prefix,r=t.groupSeparator,i=t.decimalSeparator,o=t.decimalScale,a=t.disableGroupSeparators,s=void 0!==a&&a;return e.reduce(function(e,t,a){var l=t.type,u=t.value;return 0===a&&n?"minusSign"===l?[u,n]:"currency"===l?d1(d1([],e),[n]):[n,u]:"currency"===l?n?e:d1(d1([],e),[u]):"group"===l?s?e:d1(d1([],e),[void 0!==r?r:u]):"decimal"===l?void 0!==o&&0===o?e:d1(d1([],e),[void 0!==i?i:u]):"fraction"===l?d1(d1([],e),[void 0!==o?u.slice(0,o):u]):d1(d1([],e),[u])},[""]).join("")},fr={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},fi=function(e){var t=e||{},n=t.locale,r=t.currency;return(n?new Intl.NumberFormat(n,r?{currency:r,style:"currency"}:void 0):new Intl.NumberFormat).formatToParts(1000.1).reduce(function(e,t,n){return"currency"===t.type?0===n?d0(d0({},e),{currencySymbol:t.value,prefix:t.value}):d0(d0({},e),{currencySymbol:t.value,suffix:t.value}):"group"===t.type?d0(d0({},e),{groupSeparator:t.value}):"decimal"===t.type?d0(d0({},e),{decimalSeparator:t.value}):e},fr)},fo=function(e){return RegExp(/\d/,"gi").test(e)},fa=function(e,t,n){if(void 0===t&&(t="."),void 0===n||""===e||void 0===e)return e;if(!e.match(/\d/g))return"";var r=e.split(t),i=r[0],o=r[1];if(0===n)return i;var a=o||"";if(a.lengtht.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}(e,["allowDecimals","allowNegativeValue","id","name","className","customInput","decimalsLimit","defaultValue","disabled","maxLength","value","onValueChange","fixedDecimalLength","placeholder","decimalScale","prefix","suffix","intlConfig","step","min","max","disableGroupSeparators","disableAbbreviations","decimalSeparator","groupSeparator","onChange","onFocus","onBlur","onKeyDown","onKeyUp","transformRawValue"]);if(O&&fo(O))throw Error("decimalSeparator cannot be a number");if(C&&fo(C))throw Error("groupSeparator cannot be a number");var L=(0,b.useMemo)(function(){return fi(x)},[x]),F=O||L.decimalSeparator||"",V=C||L.groupSeparator||"";if(F&&V&&F===V&&!1===S)throw Error("decimalSeparator cannot be the same as groupSeparator");var z={decimalSeparator:F,groupSeparator:V,disableGroupSeparators:S,intlConfig:x,prefix:g||L.prefix,suffix:y},I={decimalSeparator:F,groupSeparator:V,allowDecimals:void 0===n||n,decimalsLimit:l||p||2,allowNegativeValue:void 0===r||r,disableAbbreviations:void 0!==_&&_,prefix:g||L.prefix,transformRawValue:R},Z=null!=u?fe(d0(d0({},z),{decimalScale:v,value:String(u)})):null!=f?fe(d0(d0({},z),{decimalScale:v,value:String(f)})):"",B=(0,b.useState)(Z),H=B[0],U=B[1],W=(0,b.useState)(!1),q=W[0],$=W[1],Y=(0,b.useState)(0),G=Y[0],X=Y[1],K=(0,b.useState)(0),Q=K[0],J=K[1],ee=(0,b.useState)(null),et=ee[0],en=ee[1],er=t||(0,b.useRef)(null),ei=function(e,t){$(!0);var n=fs({selectionStart:t,value:e,lastKeyStroke:et,stateValue:H,groupSeparator:V}),r=n.modifiedValue,i=n.cursorPosition,a=d8(d0({value:r},I));if(!d||!(a.replace(/-/g,"").length>d)){if(""===a||"-"===a||a===F){h&&h(void 0,o,{float:null,formatted:"",value:""}),U(a);return}var s=parseFloat(a.replace(F,".")),l=fe(d0({value:a},z));if(null!=i){var u=i+(l.length-e.length);X(u=u<=0?g?g.length:0:u),J(Q+1)}U(l),h&&h(a,o,{float:s,formatted:l,value:a})}};(0,b.useEffect)(function(){q&&"-"!==H&&er&&"object"==typeof er&&er.current&&er.current.setSelectionRange(G,G)},[H,G,er,q,Q]);var eo=d0({type:"text",inputMode:"decimal",id:i,name:o,className:a,onChange:function(e){var t=e.target;ei(t.value,t.selectionStart),M&&M(e)},onBlur:function(e){var t=e.target.value,n=d8(d0({value:t},I));if("-"===n||!n){U(""),T&&T(e);return}var r=fa(d7(n,F,p),F,void 0!==v?v:p),i=parseFloat(r.replace(F,".")),a=fe(d0(d0({},z),{value:r}));h&&h(r,o,{float:i,formatted:a,value:r}),U(a),T&&T(e)},onFocus:function(e){return A&&A(e),H?H.length:0},onKeyDown:function(e){var t=e.key;if(en(t),w&&("ArrowUp"===t||"ArrowDown"===t)){e.preventDefault(),X(H.length);var n=parseFloat(null!=f?String(f).replace(F,"."):d8(d0({value:H},I)))||0,r="ArrowUp"===t?n+w:n-w;if(void 0!==E&&rj)return;var i=String(w).includes(".")?Number(String(w).split(".")[1].length):void 0;ei(String(i?r.toFixed(i):r).replace(".",F))}P&&P(e)},onKeyUp:function(e){var t=e.key,n=e.currentTarget.selectionStart;if("ArrowUp"!==t&&"ArrowDown"!==t&&"-"!==H){var r=d9(H,{groupSeparator:V,decimalSeparator:F});if(r&&n&&n>H.length-r.length&&er&&"object"==typeof er&&er.current){var i=H.length-r.length;er.current.setSelectionRange(i,i)}}N&&N(e)},placeholder:m,disabled:void 0!==c&&c,value:null==f||"-"===H||F&&H===F?H:fe(d0(d0({},z),{decimalScale:q?void 0:v,value:String(f)})),ref:er},D);return s?b.createElement(s,d0({},eo)):b.createElement("input",d0({},eo))});function fu(e){let{units:t,variant:n,size:r="small",state:i,noSpin:o,focus:a,cursor:s,className:l,decimalsLimit:u,onValueChange:c,...d}=e,[f,h]=(0,b.useState)();return(0,b.useEffect)(()=>{h(navigator.language)},[]),(0,x.jsxs)("div",{className:"relative",children:[(0,x.jsx)(fl,{...d,decimalsLimit:u,intlConfig:f?{locale:f}:void 0,allowDecimals:!!u,autoComplete:"off",spellCheck:!1,onValueChange:c,transformRawValue:e=>{if(e.length>0){if("."===e[0])return"0."+e.slice(1);if(","===e[0])return"0,"+e.slice(1)}return e},className:(0,ea.cx)(dQ({variant:n,size:r,state:i,focus:a,noSpin:o,cursor:s,className:l}),t?"pr-9":"")}),t&&(0,x.jsx)("div",{className:(0,ea.cx)("flex items-center absolute top-0 h-full","small"===r?"right-2":"","medium"===r?"right-3":"","large"===r?"right-3":""),children:(0,x.jsx)(tq,{size:"12",weight:"medium",color:"subtle",children:t})})]})}fl.displayName="CurrencyInput";var fc=n(6391),fd=n.n(fc);function ff(e,t){return e.decimalPlaces()>t?e.toFixed(t):e.toString()}let fh=(0,b.forwardRef)(function(e,t){let{value:n,placeholder:r=new(fd())(100),decimalsLimit:i=6,onChange:o,size:a="small",units:s,error:l,changed:u,onBlur:c,onFocus:d,...f}=e,h=(0,b.useMemo)(()=>new(fd())(n),[n]),[p,m]=(0,b.useState)(""),v=(0,b.useMemo)(()=>fp(p),[p]),g=(0,b.useCallback)(e=>{o&&o((e=fp(e))&&!isNaN(Number(e))?new(fd())(e):void 0)},[o]),y=(0,b.useCallback)(e=>{m(e),g(e)},[m,g]);return(0,b.useEffect)(()=>{if(!h.isEqualTo(v)){let e=ff(h,i);m(e)}},[h]),(0,x.jsx)(fu,{ref:t,...f,"data-testid":"numberfield",size:a,placeholder:r.isNaN()?"":ff(r,i),units:s,value:"NaN"!==p?p:"",decimalsLimit:i,onBlur:e=>{c&&c(e)},onFocus:e=>{d&&d(e)},onValueChange:e=>y(e||"")})});function fp(e){return(null==e?void 0:e.replace(/,/g,"."))||""}var fm=n(95753),fv=n(47025);let fg=new(fd())(0),fy=(0,b.forwardRef)(function(e,t){let{sc:n,placeholder:r=new(fd())(100),decimalsLimitFiat:i=6,decimalsLimitSc:o=6,onChange:a,size:s="medium",units:l="SC",showFiat:u=!0,error:c,changed:d,prefix:f,onBlur:h,onFocus:p,...m}=e,v=(0,b.useMemo)(()=>new(fd())(void 0===n?NaN:n),[n]),{settings:g}=(0,fm.Hv)(),y=(0,fv.BW)({config:{swr:{revalidateOnFocus:!1}}}),w=(0,b.useMemo)(()=>{var e;return g.siaCentral&&y.data?new(fd())((null===(e=y.data)||void 0===e?void 0:e.rates.sc[g.currency.id])||fg):fg},[y.data,g]),[E,j]=(0,b.useState)(),[k,S]=(0,b.useState)(""),[_,O]=(0,b.useState)(""),C=(0,b.useMemo)(()=>fx(k),[k]),M=(0,b.useMemo)(()=>fx(_),[_]),A=(0,b.useCallback)(e=>{a&&a((e=fx(e))&&!isNaN(Number(e))?new(fd())(e):void 0)},[a]),T=(0,b.useCallback)(e=>{let t=ff(e,i);O(t)},[O,i]),P=(0,b.useCallback)(e=>{let t=ff(e,o);return S(t),A(t),t},[S,o,A]),N=(0,b.useCallback)(e=>{S(e),A(e)},[S,A]),R=(0,b.useCallback)(e=>{let t=new(fd())(e).times(w);T(t)},[T,w]),D=(0,b.useCallback)(e=>{let t=new(fd())(e).dividedBy(w);P(t)},[P,w]),[L,F]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{if(!v.isEqualTo(C)){let e=ff(v,o);S(e),"fiat"!==E&&R(e)}L||F(!0)},[v]),(0,b.useEffect)(()=>{L&&R(C)},[w]),(0,b.useEffect)(()=>{"sc"===E&&R(C)},[C]),(0,b.useEffect)(()=>{"fiat"===E&&D(M)},[M]),(0,x.jsxs)("div",{ref:t,className:(0,ea.cx)("flex flex-col bg-white dark:bg-graydark-50","focus-within:ring ring-blue-500 dark:ring-blue-200","border",c?"border-red-500 dark:border-red-400":d?"border-green-500 dark:border-green-400":"border-gray-200 dark:border-graydark-200","rounded"),children:[(0,x.jsx)(fu,{...m,"data-testid":"scInput",size:s,variant:"ghost",focus:"none",placeholder:ff(r,o),units:l,value:"NaN"!==k?k:"",decimalsLimit:o,allowNegativeValue:!1,onBlur:e=>{j(void 0),h&&h(e)},onFocus:e=>{j("sc"),p&&p(e)},onValueChange:e=>{N(e||"")}}),u&&g.siaCentral&&(0,x.jsx)(fu,{...m,"data-testid":"fiatInput",size:s,variant:"ghost",focus:"none",value:"NaN"!==_?_:"",units:g.currency.label,decimalsLimit:i,allowNegativeValue:!1,placeholder:"".concat(g.currency.prefix).concat(w?w.times(r).toFixed(i):"0.42"),prefix:f||g.currency.prefix,onFocus:e=>{j("fiat"),p&&p(e)},onBlur:e=>{j(void 0),h&&h(e)},onValueChange:e=>{O(e||"")}})]})});function fx(e){return(null==e?void 0:e.replace(/,/g,"."))||""}function fb(e){let{children:t}=e;return(0,x.jsx)(s4,{content:t,children:(0,x.jsx)("div",{className:"relative items-center inline mx-1",children:(0,x.jsx)(tq,{color:"subtle",children:(0,x.jsx)(s6.RdX,{className:"scale-75"})})})})}function fw(e){let{values:t,options:n,onChange:r}=e;return(0,x.jsx)("div",{className:"flex flex-wrap gap-1",children:n.map(e=>(0,x.jsx)(s5,{variant:t.includes(e.value)?"active":"inactive",onClick:()=>{r(e.value)},children:e.label},e.value))})}let fE=(0,ea.j)(["font-sans","font-normal","tabular-nums","flex-shrink-0","rounded","flex items-center","bg-white dark:bg-graydark-200","hover:bg-gray-50 dark:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","autofill:bg-blue-100 autofill:dark:bg-blue-800","border","focus-within:z-10","focus-within:ring ring-blue-500 dark:ring-blue-200","text-gray-1100 dark:text-white","[&>select:disabled]:text-gray-600 [&>select:disabled]:dark:text-graydark-700"],{variants:{size:{small:"h-7 text-sm px-1",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]}},defaultVariants:{state:"default",size:"small"}}),fj=b.forwardRef((e,t)=>{let{size:n,state:r,icon:i,className:o,...a}=e;return(0,x.jsxs)("div",{className:fE({size:n,state:r,className:o}),children:[i,(0,x.jsx)("select",{ref:t,...a,className:"appearance-none flex-1 bg-transparent outline-none w-full h-full pl-1 pr-1"}),(0,x.jsx)(s6.Cp0,{className:"pointer-events-none scale-75"})]})}),fk=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)("option",{ref:t,...r,className:(0,ea.cx)("bg-white dark:bg-graydark-200","text-gray-1100 dark:text-white",n)})}),fS=(0,ea.j)(["bg-gray-300 dark:bg-graydark-300","relative","overflow-hidden","animate-pulse","rounded"]);function f_(e){let{className:t}=e;return(0,x.jsx)("div",{className:fS({className:t})})}let fO=(0,ea.j)(["rounded-full flex-shrink-0"],{variants:{size:{default:"w-2 h-2"}},defaultVariants:{size:"default"}}),fC=b.forwardRef((e,t)=>{let{size:n,className:r,...i}=e;return(0,x.jsx)("div",{ref:t,className:fO({size:n,className:r}),...i})}),fM="Switch",[fA,fT]=(0,j.b)(fM),[fP,fN]=fA(fM),fR=(0,b.forwardRef)((e,t)=>{let{__scopeSwitch:n,"aria-labelledby":r,name:i,checked:o,defaultChecked:a,required:s,disabled:l,value:u="on",onCheckedChange:c,...d}=e,[f,h]=(0,b.useState)(null),p=(0,k.e)(t,e=>h(e)),m=c$(f),v=(0,b.useRef)(!1),g=!f||!!f.closest("form"),[y=!1,x]=(0,C.T)({prop:o,defaultProp:a,onChange:c});return(0,b.createElement)(fP,{scope:n,checked:y,disabled:l},(0,b.createElement)(M.WV.button,(0,E.Z)({type:"button",role:"switch","aria-checked":y,"aria-labelledby":r||m,"aria-required":s,"data-state":fF(y),"data-disabled":l?"":void 0,disabled:l,value:u},d,{ref:p,onClick:(0,O.M)(e.onClick,e=>{x(e=>!e),g&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})),g&&(0,b.createElement)(fL,{control:f,bubbles:!v.current,name:i,value:u,checked:y,required:s,disabled:l,style:{transform:"translateX(-100%)"}}))}),fD=(0,b.forwardRef)((e,t)=>{let{__scopeSwitch:n,...r}=e,i=fN("SwitchThumb",n);return(0,b.createElement)(M.WV.span,(0,E.Z)({"data-state":fF(i.checked),"data-disabled":i.disabled?"":void 0},r,{ref:t}))}),fL=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,o=(0,b.useRef)(null),a=dO(n),s=tt(t);return(0,b.useEffect)(()=>{let e=o.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked"),s=i.set;if(a!==n&&s){let t=new Event("click",{bubbles:r});s.call(e,n),e.dispatchEvent(t)}},[a,n,r]),(0,b.createElement)("input",(0,E.Z)({type:"checkbox","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function fF(e){return e?"checked":"unchecked"}let fV=(0,ea.j)(["absolute left-0 rounded-full","transition-transform","bg-white dark:bg-graydark-500"],{variants:{size:{small:["w-3 h-3","translate-x-px","data-[state=checked]:translate-x-[9px]"],medium:["w-5 h-5","translate-x-0.5","data-[state=checked]:translate-x-[20px]"]}},defaultVariants:{size:"small"}}),fz=(0,ea.j)(["select-none outline-none","relative inline-flex items-center justify-center","m-0 rounded-full","focus:ring ring-blue-500 dark:ring-blue-200","border","bg-gray-300 dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","disabled:cursor-default","enabled:data-[state=checked]:bg-green-600 dark:enabled:data-[state=checked]:bg-green-500","disabled:data-[state=checked]:bg-green-600/50 dark:disabled:data-[state=checked]:bg-green-500/50"],{variants:{size:{small:"w-6 h-4",medium:"w-11 h-6"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]}},defaultVariants:{size:"small",state:"default"}}),fI=(0,b.forwardRef)((e,t)=>{let{size:n,state:r,className:i,children:o,...a}=e;return(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(fR,{className:fz({size:n,state:r,className:i}),...a,ref:t,children:(0,x.jsx)(fD,{className:fV({size:n})})}),o&&(0,x.jsx)(tq,{color:a.disabled?"subtle":"contrast",children:o})]})}),fZ=(0,b.forwardRef)((e,t)=>{let{children:n,...r}=e,i=b.Children.toArray(n),o=i.find(fU);if(o){let e=o.props.children,n=i.map(t=>t!==o?t:b.Children.count(e)>1?b.Children.only(null):(0,b.isValidElement)(e)?e.props.children:null);return(0,b.createElement)(fB,(0,E.Z)({},r,{ref:t}),(0,b.isValidElement)(e)?(0,b.cloneElement)(e,void 0,n):null)}return(0,b.createElement)(fB,(0,E.Z)({},r,{ref:t}),n)});fZ.displayName="Slot";let fB=(0,b.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,b.isValidElement)(n)?(0,b.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r],a=/^on[A-Z]/.test(r);a?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:(0,k.F)(t,n.ref)}):b.Children.count(n)>1?b.Children.only(null):null});fB.displayName="SlotClone";let fH=({children:e})=>(0,b.createElement)(b.Fragment,null,e);function fU(e){return(0,b.isValidElement)(e)&&e.type===fH}let fW=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,b.forwardRef)((e,n)=>{let{asChild:r,...i}=e,o=r?fZ:t;return(0,b.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,b.createElement)(o,(0,E.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),fq=(0,b.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,b.createElement)(fW.svg,(0,E.Z)({},o,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,b.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),f$="Popper",[fY,fG]=(0,j.b)(f$),[fX,fK]=fY(f$),fQ=(0,b.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,o=fK("PopperAnchor",n),a=(0,b.useRef)(null),s=(0,k.e)(t,a);return(0,b.useEffect)(()=>{o.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,b.createElement)(fW.div,(0,E.Z)({},i,{ref:s}))}),fJ="PopperContent",[f0,f1]=fY(fJ),[f2,f4]=fY(fJ,{hasParent:!1,positionUpdateFns:new Set}),f3=(0,b.forwardRef)((e,t)=>{var n,r,i,o,a,s,l,u,c;let{__scopePopper:d,side:f="bottom",sideOffset:h=0,align:p="center",alignOffset:m=0,arrowPadding:v=0,collisionBoundary:g=[],collisionPadding:y=0,sticky:x="partial",hideWhenDetached:w=!1,avoidCollisions:E=!0,onPlaced:j,...S}=e,_=fK(fJ,d),[O,C]=(0,b.useState)(null),M=(0,k.e)(t,e=>C(e)),[T,P]=(0,b.useState)(null),N=tt(T),R=null!==(n=null==N?void 0:N.width)&&void 0!==n?n:0,D=null!==(r=null==N?void 0:N.height)&&void 0!==r?r:0,L="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},F=Array.isArray(g)?g:[g],V=F.length>0,z={padding:L,boundary:F.filter(f8),altBoundary:V},{reference:I,floating:Z,strategy:B,x:H,y:U,placement:W,middlewareData:q,update:$}=e7({strategy:"fixed",placement:f+("center"!==p?"-"+p:""),whileElementsMounted:e3,middleware:[f7(),eM({mainAxis:h+D,alignmentAxis:m}),E?eT({mainAxis:!0,crossAxis:!1,limiter:"partial"===x?eP():void 0,...z}):void 0,T?e9({element:T,padding:v}):void 0,E?eS({...z}):void 0,{name:"size",options:c={...z,apply:({elements:e,availableWidth:t,availableHeight:n})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${n}px`)}},async fn(e){let t,n;let{placement:r,rects:i,platform:o,elements:a}=e,{apply:s,...l}=c,u=await ev(e,l),d=el(r),f=eu(r);"top"===d||"bottom"===d?(t=d,n=f===(await (null==o.isRTL?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(n=d,t="end"===f?"top":"bottom");let h=ey(u.left,0),p=ey(u.right,0),m=ey(u.top,0),v=ey(u.bottom,0),g={availableHeight:i.floating.height-(["left","right"].includes(r)?2*(0!==m||0!==v?m+v:ey(u.top,u.bottom)):u[t]),availableWidth:i.floating.width-(["top","bottom"].includes(r)?2*(0!==h||0!==p?h+p:ey(u.left,u.right)):u[n])},y=await o.getDimensions(a.floating);null==s||s({...e,...g});let x=await o.getDimensions(a.floating);return y.width!==x.width||y.height!==x.height?{reset:{rects:!0}}:{}}},f9({arrowWidth:R,arrowHeight:D}),w?eC({strategy:"referenceHidden"}):void 0].filter(f6)});(0,A.b)(()=>{I(_.anchor)},[I,_.anchor]);let Y=null!==H&&null!==U,[G,X]=he(W),K=(0,s9.W)(j);(0,A.b)(()=>{Y&&(null==K||K())},[Y,K]);let Q=null===(i=q.arrow)||void 0===i?void 0:i.x,J=null===(o=q.arrow)||void 0===o?void 0:o.y,ee=(null===(a=q.arrow)||void 0===a?void 0:a.centerOffset)!==0,[et,en]=(0,b.useState)();(0,A.b)(()=>{O&&en(window.getComputedStyle(O).zIndex)},[O]);let{hasParent:er,positionUpdateFns:ei}=f4(fJ,d),eo=!er;(0,b.useLayoutEffect)(()=>{if(!eo)return ei.add($),()=>{ei.delete($)}},[eo,ei,$]),(0,A.b)(()=>{eo&&Y&&Array.from(ei).reverse().forEach(e=>requestAnimationFrame(e))},[eo,Y,ei]);let ea={"data-side":G,"data-align":X,...S,ref:M,style:{...S.style,animation:Y?void 0:"none",opacity:null!==(s=q.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,b.createElement)("div",{ref:Z,"data-radix-popper-content-wrapper":"",style:{position:B,left:0,top:0,transform:Y?`translate3d(${Math.round(H)}px, ${Math.round(U)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:et,"--radix-popper-transform-origin":[null===(l=q.transformOrigin)||void 0===l?void 0:l.x,null===(u=q.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},(0,b.createElement)(f0,{scope:d,placedSide:G,onArrowChange:P,arrowX:Q,arrowY:J,shouldHideArrow:ee},eo?(0,b.createElement)(f2,{scope:d,hasParent:!0,positionUpdateFns:ei},(0,b.createElement)(fW.div,ea)):(0,b.createElement)(fW.div,ea)))}),f5={top:"bottom",right:"left",bottom:"top",left:"right"};function f6(e){return void 0!==e}function f8(e){return null!==e}let f7=()=>({name:"anchorCssProperties",fn(e){let{rects:t,elements:n}=e,{width:r,height:i}=t.reference;return n.floating.style.setProperty("--radix-popper-anchor-width",`${r}px`),n.floating.style.setProperty("--radix-popper-anchor-height",`${i}px`),{}}}),f9=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=he(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(r=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+d/2,g=(null!==(o=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==o?o:0)+f/2,y="",x="";return"bottom"===h?(y=c?m:`${v}px`,x=`${-f}px`):"top"===h?(y=c?m:`${v}px`,x=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,x=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,x=c?m:`${g}px`),{data:{x:y,y:x}}}});function he(e){let[t,n="center"]=e.split("-");return[t,n]}let ht=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,b.useState)(null);return(0,b.createElement)(fX,{scope:t,anchor:r,onAnchorChange:i},n)},hn=(0,b.forwardRef)((e,t)=>{var n;let{container:r=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...i}=e;return r?e6.createPortal((0,b.createElement)(fW.div,(0,E.Z)({},i,{ref:t})),r):null}),hr="dismissableLayer.update",hi=(0,b.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ho=(0,b.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,b.useContext)(hi),[f,h]=(0,b.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,b.useState)({}),v=(0,k.e)(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=g.indexOf(y),w=f?g.indexOf(f):-1,j=d.layersWithOutsidePointerEventsDisabled.size>0,S=w>=x,_=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,s9.W)(e),r=(0,b.useRef)(!1),i=(0,b.useRef)(()=>{});return(0,b.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function o(){hs("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=o,t.addEventListener("click",i.current,{once:!0})):o()}r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));!S||n||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),C=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,s9.W)(e),r=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{let e=e=>{e.target&&!r.current&&hs("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));n||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==u||u())},p);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,s9.W)(e);(0,b.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{let t=w===d.layers.size-1;t&&(null==o||o(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,b.useEffect)(()=>{if(f)return i&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(r=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),ha(),()=>{i&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=r)}},[f,p,i,d]),(0,b.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),ha())},[f,d]),(0,b.useEffect)(()=>{let e=()=>m({});return document.addEventListener(hr,e),()=>document.removeEventListener(hr,e)},[]),(0,b.createElement)(fW.div,(0,E.Z)({},c,{ref:v,style:{pointerEvents:j?S?"auto":"none":void 0,...e.style},onFocusCapture:(0,O.M)(e.onFocusCapture,C.onFocusCapture),onBlurCapture:(0,O.M)(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:(0,O.M)(e.onPointerDownCapture,_.onPointerDownCapture)}))});function ha(){let e=new CustomEvent(hr);document.dispatchEvent(e)}function hs(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&i.addEventListener(e,t,{once:!0}),r)?i&&(0,e6.flushSync)(()=>i.dispatchEvent(o)):i.dispatchEvent(o)}let hl="HoverCard",[hu,hc]=(0,j.b)(hl,[fG]),hd=fG(),[hf,hh]=hu(hl),hp=(0,b.forwardRef)((e,t)=>{let{__scopeHoverCard:n,...r}=e,i=hh("HoverCardTrigger",n),o=hd(n);return(0,b.createElement)(fQ,(0,E.Z)({asChild:!0},o),(0,b.createElement)(fW.a,(0,E.Z)({"data-state":i.open?"open":"closed"},r,{ref:t,onPointerEnter:(0,O.M)(e.onPointerEnter,hw(i.onOpen)),onPointerLeave:(0,O.M)(e.onPointerLeave,hw(i.onClose)),onFocus:(0,O.M)(e.onFocus,i.onOpen),onBlur:(0,O.M)(e.onBlur,i.onClose),onTouchStart:(0,O.M)(e.onTouchStart,e=>e.preventDefault())})))}),hm="HoverCardPortal",[hv,hg]=hu(hm,{forceMount:void 0}),hy="HoverCardContent",hx=(0,b.forwardRef)((e,t)=>{let n=hg(hy,e.__scopeHoverCard),{forceMount:r=n.forceMount,...i}=e,o=hh(hy,e.__scopeHoverCard);return(0,b.createElement)(T.z,{present:r||o.open},(0,b.createElement)(hb,(0,E.Z)({"data-state":o.open?"open":"closed"},i,{onPointerEnter:(0,O.M)(e.onPointerEnter,hw(o.onOpen)),onPointerLeave:(0,O.M)(e.onPointerLeave,hw(o.onClose)),ref:t})))}),hb=(0,b.forwardRef)((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,...l}=e,u=hh(hy,n),c=hd(n),d=(0,b.useRef)(null),f=(0,k.e)(t,d),[h,p]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{if(h){let e=document.body;return i=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=i,e.style.webkitUserSelect=i}}},[h]),(0,b.useEffect)(()=>{if(d.current){let e=()=>{p(!1),u.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;let t=(null===(e=document.getSelection())||void 0===e?void 0:e.toString())!=="";t&&(u.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!1}}},[u.isPointerDownOnContentRef,u.hasSelectionRef]),(0,b.useEffect)(()=>{if(d.current){let e=function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}(d.current);e.forEach(e=>e.setAttribute("tabindex","-1"))}}),(0,b.createElement)(ho,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:s,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:(0,O.M)(a,e=>{e.preventDefault()}),onDismiss:u.onDismiss},(0,b.createElement)(f3,(0,E.Z)({},c,l,{onPointerDown:(0,O.M)(l.onPointerDown,e=>{e.currentTarget.contains(e.target)&&p(!0),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!0}),ref:f,style:{...l.style,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)",userSelect:h?"text":void 0,WebkitUserSelect:h?"text":void 0}})))});function hw(e){return t=>"touch"===t.pointerType?void 0:e()}let hE=e=>{let{__scopeHoverCard:t,children:n,open:r,defaultOpen:i,onOpenChange:o,openDelay:a=700,closeDelay:s=300}=e,l=hd(t),u=(0,b.useRef)(0),c=(0,b.useRef)(0),d=(0,b.useRef)(!1),f=(0,b.useRef)(!1),[h=!1,p]=(0,C.T)({prop:r,defaultProp:i,onChange:o}),m=(0,b.useCallback)(()=>{clearTimeout(c.current),u.current=window.setTimeout(()=>p(!0),a)},[a,p]),v=(0,b.useCallback)(()=>{clearTimeout(u.current),d.current||f.current||(c.current=window.setTimeout(()=>p(!1),s))},[s,p]),g=(0,b.useCallback)(()=>p(!1),[p]);return(0,b.useEffect)(()=>()=>{clearTimeout(u.current),clearTimeout(c.current)},[]),(0,b.createElement)(hf,{scope:t,open:h,onOpenChange:p,onOpen:m,onClose:v,onDismiss:g,hasSelectionRef:d,isPointerDownOnContentRef:f},(0,b.createElement)(ht,l,n))},hj=e=>{let{__scopeHoverCard:t,forceMount:n,children:r,container:i}=e,o=hh(hm,t);return(0,b.createElement)(hv,{scope:t,forceMount:n},(0,b.createElement)(T.z,{present:n||o.open},(0,b.createElement)(hn,{asChild:!0,container:i},r)))},hk=(0,ea.j)(["relative","z-10","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),hS=(0,ea.cx)(tY(),"max-w-sm","py-0.5","px-1"),h_={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},hO=b.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o}=e,{className:a,...s}=o||{},{open:l,onOpenChange:u}=s1({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,x.jsxs)(hE,{open:l,onOpenChange:u,...i,children:[n&&(0,x.jsx)(hp,{asChild:!0,children:n}),(0,x.jsx)(ny,{children:l?(0,x.jsx)(hj,{forceMount:!0,children:(0,x.jsx)(hx,{asChild:!0,forceMount:!0,ref:t,...s,children:(0,x.jsx)(s0.div,{variants:h_,initial:"init",animate:"show",exit:"exit",className:hk(),children:(0,x.jsx)("div",{className:(0,ea.cx)(hS,a),children:r})})})}):null})]})});function hC(e,t=[]){let n=[],r=()=>{let t=n.map(e=>(0,b.createContext)(e));return function(n){let r=(null==n?void 0:n[e])||t;return(0,b.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=(0,b.createContext)(r),o=n.length;function a(t){let{scope:n,children:r,...a}=t,s=(null==n?void 0:n[e][o])||i,l=(0,b.useMemo)(()=>a,Object.values(a));return(0,b.createElement)(s.Provider,{value:l},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){let s=(null==a?void 0:a[e][o])||i,l=(0,b.useContext)(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e),o=i[`__scope${r}`];return{...t,...o}},{});return(0,b.useMemo)(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}function hM(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function hA(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function hT(...e){return(0,b.useCallback)(hA(...e),e)}let hP=(0,b.forwardRef)((e,t)=>{let{children:n,...r}=e,i=b.Children.toArray(n),o=i.find(hD);if(o){let e=o.props.children,n=i.map(t=>t!==o?t:b.Children.count(e)>1?b.Children.only(null):(0,b.isValidElement)(e)?e.props.children:null);return(0,b.createElement)(hN,(0,E.Z)({},r,{ref:t}),(0,b.isValidElement)(e)?(0,b.cloneElement)(e,void 0,n):null)}return(0,b.createElement)(hN,(0,E.Z)({},r,{ref:t}),n)});hP.displayName="Slot";let hN=(0,b.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,b.isValidElement)(n)?(0,b.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r],a=/^on[A-Z]/.test(r);a?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:t?hA(t,n.ref):n.ref}):b.Children.count(n)>1?b.Children.only(null):null});hN.displayName="SlotClone";let hR=({children:e})=>(0,b.createElement)(b.Fragment,null,e);function hD(e){return(0,b.isValidElement)(e)&&e.type===hR}let hL=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,b.forwardRef)((e,n)=>{let{asChild:r,...i}=e,o=r?hP:t;return(0,b.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,b.createElement)(o,(0,E.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function hF(e){let t=(0,b.useRef)(e);return(0,b.useEffect)(()=>{t.current=e}),(0,b.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}let hV=(null==globalThis?void 0:globalThis.document)?b.useLayoutEffect:()=>{},hz=e=>{let{present:t,children:n}=e,r=function(e){var t;let[n,r]=(0,b.useState)(),i=(0,b.useRef)({}),o=(0,b.useRef)(e),a=(0,b.useRef)("none"),s=e?"mounted":"unmounted",[l,u]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,b.useReducer)((e,n)=>{let r=t[e][n];return null!=r?r:e},s));return(0,b.useEffect)(()=>{let e=hI(i.current);a.current="mounted"===l?e:"none"},[l]),hV(()=>{let t=i.current,n=o.current,r=n!==e;if(r){let r=a.current,i=hI(t);e?u("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?u("UNMOUNT"):n&&r!==i?u("ANIMATION_OUT"):u("UNMOUNT"),o.current=e}},[e,u]),hV(()=>{if(n){let e=e=>{let t=hI(i.current),r=t.includes(e.animationName);e.target===n&&r&&(0,e6.flushSync)(()=>u("ANIMATION_END"))},t=e=>{e.target===n&&(a.current=hI(i.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}u("ANIMATION_END")},[n,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,b.useCallback)(e=>{e&&(i.current=getComputedStyle(e)),r(e)},[])}}(t),i="function"==typeof n?n({present:r.isPresent}):b.Children.only(n),o=hT(r.ref,i.ref),a="function"==typeof n;return a||r.isPresent?(0,b.cloneElement)(i,{ref:o}):null};function hI(e){return(null==e?void 0:e.animationName)||"none"}hz.displayName="Presence";let hZ=w["useId".toString()]||(()=>void 0),hB=0;function hH(e){let t=e+"CollectionProvider",[n,r]=hC(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=b.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(a,n),s=hT(t,i.collectionRef);return b.createElement(hP,{ref:s},r)}),l=e+"CollectionItemSlot",u="data-radix-collection-item",c=b.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=b.useRef(null),s=hT(t,a),c=o(l,n);return b.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),b.createElement(hP,{[u]:"",ref:s},r)});return[{Provider:e=>{let{scope:t,children:n}=e,r=b.useRef(null),o=b.useRef(new Map).current;return b.createElement(i,{scope:t,itemMap:o,collectionRef:r},n)},Slot:s,ItemSlot:c},function(t){let n=o(e+"CollectionConsumer",t),r=b.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()),i=r.sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return i},[n.collectionRef,n.itemMap]);return r},r]}let hU="dismissableLayer.update",hW=(0,b.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hq=(0,b.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,b.useContext)(hW),[f,h]=(0,b.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,b.useState)({}),v=hT(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=g.indexOf(y),w=f?g.indexOf(f):-1,j=d.layersWithOutsidePointerEventsDisabled.size>0,k=w>=x,S=function(e,t=null==globalThis?void 0:globalThis.document){let n=hF(e),r=(0,b.useRef)(!1),i=(0,b.useRef)(()=>{});return(0,b.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function o(){hY("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=o,t.addEventListener("click",i.current,{once:!0})):o()}r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));!k||n||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),_=function(e,t=null==globalThis?void 0:globalThis.document){let n=hF(e),r=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{let e=e=>{e.target&&!r.current&&hY("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));n||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==u||u())},p);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=hF(e);(0,b.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{let t=w===d.layers.size-1;t&&(null==i||i(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,b.useEffect)(()=>{if(f)return r&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(o=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),h$(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=o)}},[f,p,r,d]),(0,b.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),h$())},[f,d]),(0,b.useEffect)(()=>{let e=()=>m({});return document.addEventListener(hU,e),()=>document.removeEventListener(hU,e)},[]),(0,b.createElement)(hL.div,(0,E.Z)({},c,{ref:v,style:{pointerEvents:j?k?"auto":"none":void 0,...e.style},onFocusCapture:hM(e.onFocusCapture,_.onFocusCapture),onBlurCapture:hM(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:hM(e.onPointerDownCapture,S.onPointerDownCapture)}))});function h$(){let e=new CustomEvent(hU);document.dispatchEvent(e)}function hY(e,t,n,{discrete:r}){var i,o;let a=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?(i=a,o=s,i&&(0,e6.flushSync)(()=>i.dispatchEvent(o))):a.dispatchEvent(s)}(e,t)=>(0,b.createElement)(hL.span,(0,E.Z)({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));let hG="NavigationMenu",[hX,hK,hQ]=hH(hG),[hJ,h0,h1]=hH(hG),[h2,h4]=hC(hG,[hQ,h1]),[h3,h5]=h2(hG),[h6,h8]=h2(hG),[h7,h9]=h2("NavigationMenuItem"),pe=((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=h5("NavigationMenuIndicator",n),o=hK(n),[a,s]=(0,b.useState)(null),[l,u]=(0,b.useState)(null),c="horizontal"===i.orientation,d=!!i.value;(0,b.useEffect)(()=>{var e;let t=o(),n=null===(e=t.find(e=>e.value===i.value))||void 0===e?void 0:e.ref.current;n&&s(n)},[o,i.value]);let f=()=>{a&&u({size:c?a.offsetWidth:a.offsetHeight,offset:c?a.offsetLeft:a.offsetTop})};return pa(a,f),pa(i.indicatorTrack,f),l?(0,b.createElement)(hL.div,(0,E.Z)({"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":i.orientation},r,{ref:t,style:{position:"absolute",...c?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}})):null},"NavigationMenuContent"),pt=((e,t)=>{let n=h5(pe,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:i}=n;return hV(()=>{r(e.value,{ref:t,...e})},[e,t,r]),hV(()=>()=>i(e.value),[e.value,i]),null},"navigationMenu.rootContentDismiss"),pn=(0,b.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,value:r,triggerRef:i,focusProxyRef:o,wasEscapeCloseRef:a,onRootContentClose:s,onContentFocusOutside:l,...u}=e,c=h5(pe,n),d=(0,b.useRef)(null),f=hT(d,t),h=function(e,t){return`${e}-trigger-${t}`}(c.baseId,r),p=function(e,t){return`${e}-content-${t}`}(c.baseId,r),m=hK(n),v=(0,b.useRef)(null),{onItemDismiss:g}=c;(0,b.useEffect)(()=>{let e=d.current;if(c.isRootMenu&&e){let t=()=>{var t;g(),s(),e.contains(document.activeElement)&&(null===(t=i.current)||void 0===t||t.focus())};return e.addEventListener(pt,t),()=>e.removeEventListener(pt,t)}},[c.isRootMenu,e.value,i,g,s]);let y=(0,b.useMemo)(()=>{let e=m(),t=e.map(e=>e.value);"rtl"===c.dir&&t.reverse();let n=t.indexOf(c.value),i=t.indexOf(c.previousValue),o=r===c.value,a=i===t.indexOf(r);if(!o&&!a)return v.current;let s=(()=>{if(n!==i){if(o&&-1!==i)return n>i?"from-end":"from-start";if(a&&-1!==n)return n>i?"to-start":"to-end"}return null})();return v.current=s,s},[c.previousValue,c.value,c.dir,m,r]);return(0,b.createElement)(pr,{asChild:!0},(0,b.createElement)(hq,(0,E.Z)({id:p,"aria-labelledby":h,"data-motion":y,"data-orientation":c.orientation},u,{ref:f,onDismiss:()=>{var e;let t=new Event(pt,{bubbles:!0,cancelable:!0});null===(e=d.current)||void 0===e||e.dispatchEvent(t)},onFocusOutside:hM(e.onFocusOutside,e=>{var t;l();let n=e.target;null!==(t=c.rootNavigationMenu)&&void 0!==t&&t.contains(n)&&e.preventDefault()}),onPointerDownOutside:hM(e.onPointerDownOutside,e=>{var t;let n=e.target,r=m().some(e=>{var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(n)}),i=c.isRootMenu&&(null===(t=c.viewport)||void 0===t?void 0:t.contains(n));(r||i||!c.isRootMenu)&&e.preventDefault()}),onKeyDown:hM(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey,n="Tab"===e.key&&!t;if(n){let t=function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}(e.currentTarget),n=document.activeElement,i=t.findIndex(e=>e===n),a=e.shiftKey,s=a?t.slice(0,i).reverse():t.slice(i+1,t.length);if(po(s))e.preventDefault();else{var r;null===(r=o.current)||void 0===r||r.focus()}}}),onEscapeKeyDown:hM(e.onEscapeKeyDown,e=>{a.current=!0})})))}),pr=((e,t)=>{let{__scopeNavigationMenu:n,children:r,...i}=e,o=h5("NavigationMenuViewport",n),a=hT(t,o.onViewportChange),s=h8(pe,e.__scopeNavigationMenu),[l,u]=(0,b.useState)(null),[c,d]=(0,b.useState)(null),f=l?(null==l?void 0:l.width)+"px":void 0,h=l?(null==l?void 0:l.height)+"px":void 0,p=!!o.value,m=p?o.value:o.previousValue;return pa(c,()=>{c&&u({width:c.offsetWidth,height:c.offsetHeight})}),(0,b.createElement)(hL.div,(0,E.Z)({"data-state":function(e){return e?"open":"closed"}(p),"data-orientation":o.orientation},i,{ref:a,style:{pointerEvents:!p&&o.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":f,"--radix-navigation-menu-viewport-height":h,...i.style},onPointerEnter:hM(e.onPointerEnter,o.onContentEnter),onPointerLeave:hM(e.onPointerLeave,function(e){return t=>"mouse"===t.pointerType?e(t):void 0}(o.onContentLeave))}),Array.from(s.items).map(([e,{ref:t,forceMount:n,...r}])=>{let i=m===e;return(0,b.createElement)(hz,{key:e,present:n||i},(0,b.createElement)(pn,(0,E.Z)({},r,{ref:hA(t,e=>{i&&e&&d(e)})})))}))},(0,b.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=h5("FocusGroup",n);return(0,b.createElement)(hJ.Provider,{scope:n},(0,b.createElement)(hJ.Slot,{scope:n},(0,b.createElement)(hL.div,(0,E.Z)({dir:i.dir},r,{ref:t}))))})),pi=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"];(e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=h0(n),o=h5("FocusGroupItem",n);return(0,b.createElement)(hJ.ItemSlot,{scope:n},(0,b.createElement)(hL.button,(0,E.Z)({},r,{ref:t,onKeyDown:hM(e.onKeyDown,e=>{let t=["Home","End",...pi].includes(e.key);if(t){let t=i().map(e=>e.ref.current),n="rtl"===o.dir?"ArrowRight":"ArrowLeft";if([n,"ArrowUp","End"].includes(e.key)&&t.reverse(),pi.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>po(t)),e.preventDefault()}})})))};function po(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function pa(e,t){let n=hF(t);hV(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var ps=n(38617);let pl=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)(dq,{...r,ref:t,className:(0,ea.cx)("select-none flex items-center rounded cursor-pointer","focus:ring ring-blue-500 dark:ring-blue-200","text-gray-700 dark:text-graydark-700","data-[state=checked]:text-gray-1100 data-[state=checked]:dark:text-white",n)})});function pu(e){let{className:t,tooltipClassName:n,tabIndex:r}=e,{theme:i,setTheme:o}=(0,ps.F)();return(0,x.jsxs)(dW,{value:i,tabIndex:r,className:(0,ea.cx)("flex gap-4",t),onValueChange:e=>o(e),children:[(0,x.jsx)(pl,{value:"system",children:(0,x.jsx)(s4,{className:n,sideOffset:16,content:"System",children:(0,x.jsx)(s6.$Iz,{})})}),(0,x.jsx)(pl,{value:"light",children:(0,x.jsx)(s4,{className:n,sideOffset:16,content:"Light",children:(0,x.jsx)(s6.JaG,{})})}),(0,x.jsx)(pl,{value:"dark",children:(0,x.jsx)(s4,{className:n,sideOffset:16,content:"Dark",children:(0,x.jsx)(s6.osk,{})})})]})}var pc=n(14582),pd=n(63739),pf=n(13980),ph=n.n(pf),pp=n(72779),pm=n.n(pp),pv=n(47440),pg=n(59309),py=n(19067),px=n(71220),pb=n(28142);function pw(e){return"bandwidth"in e?e.bandwidth():0}var pE=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function pj(){return(pj=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,pE),g=null!=m?m:(0,px.Z)(r,void 0===f?10:f),y=(null!=p?p:0)+pw(r)/2,x=g.map(function(e,t){var n,o=(null!=(n=(0,pb.Z)(r(e)))?n:0)+y;return{index:t,from:new py.Z({x:0,y:o}),to:new py.Z({x:i,y:o})}});return b.createElement(pg.Z,{className:pm()("visx-rows",c),top:void 0===t?0:t,left:void 0===n?0:n},d?d({lines:x}):x.map(function(e){var t=e.from,n=e.to,r=e.index;return b.createElement(pv.default,pj({key:"row-line-"+r,from:t,to:n,stroke:a,strokeWidth:l,strokeDasharray:u,style:h},v))}))}pk.propTypes={tickValues:ph().array,width:ph().number.isRequired};var pS=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function p_(){return(p_=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,pS),g=null!=p?p:(0,px.Z)(r,void 0===d?10:d),y=(null!=h?h:0)+pw(r)/2,x=g.map(function(e,t){var n,o=(null!=(n=(0,pb.Z)(r(e)))?n:0)+y;return{index:t,from:new py.Z({x:o,y:0}),to:new py.Z({x:o,y:i})}});return b.createElement(pg.Z,{className:pm()("visx-columns",c),top:void 0===t?0:t,left:void 0===n?0:n},m?m({lines:x}):x.map(function(e){var t=e.from,n=e.to,r=e.index;return b.createElement(pv.default,p_({key:"column-line-"+r,from:t,to:n,stroke:a,strokeWidth:l,strokeDasharray:u,style:f},v))}))}pO.propTypes={tickValues:ph().array,height:ph().number.isRequired};var pC=n(64183),pM=n(8597);function pA(e){var t=e.id,n=e.width,r=e.height,i=e.children;return b.createElement("defs",null,b.createElement("pattern",{id:t,width:n,height:r,patternUnits:"userSpaceOnUse"},i))}pA.propTypes={id:ph().string.isRequired,width:ph().number.isRequired,height:ph().number.isRequired,children:ph().node.isRequired};var pT={horizontal:"horizontal",vertical:"vertical",diagonal:"diagonal",diagonalRightToLeft:"diagonalRightToLeft"};function pP(e){var t=e.id,n=e.width,r=e.height,i=e.stroke,o=e.strokeWidth,a=e.strokeDasharray,s=e.strokeLinecap,l=void 0===s?"square":s,u=e.shapeRendering,c=void 0===u?"auto":u,d=e.orientation,f=void 0===d?["vertical"]:d,h=e.background,p=e.className,m=Array.isArray(f)?f:[f];return b.createElement(pA,{id:t,width:n,height:r},!!h&&b.createElement("rect",{className:pm()("visx-pattern-line-background"),width:n,height:r,fill:h}),m.map(function(e,n){return b.createElement("path",{key:"visx-"+t+"-line-"+e+"-"+n,className:pm()("visx-pattern-line",p),d:function(e){var t=e.height;switch(e.orientation){case pT.horizontal:return"M 0,"+t/2+" l "+t+",0";case pT.diagonal:return"M 0,"+t+" l "+t+","+-t+" M "+-t/4+","+t/4+" l "+t/2+","+-t/2+"\n M "+3/4*t+","+5/4*t+" l "+t/2+","+-t/2;case pT.diagonalRightToLeft:return"M 0,0 l "+t+","+t+"\n M "+-t/4+","+3/4*t+" l "+t/2+","+t/2+"\n M "+3/4*t+","+-t/4+" l "+t/2+","+t/2;case pT.vertical:default:return"M "+t/2+", 0 l 0, "+t}}({orientation:e,height:r}),stroke:i,strokeWidth:o,strokeDasharray:a,strokeLinecap:l,shapeRendering:c})}))}pP.propTypes={id:ph().string.isRequired,width:ph().number.isRequired,height:ph().number.isRequired,className:ph().string,background:ph().string,stroke:ph().string,strokeWidth:ph().oneOfType([ph().number,ph().string]),strokeDasharray:ph().oneOfType([ph().string,ph().number]),strokeLinecap:ph().oneOf(["square","butt","round","inherit"]),shapeRendering:ph().oneOfType([ph().string,ph().number]),orientation:ph().array};var pN=["tooltipOpen"];function pR(){return(pR=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,pD);return b.createElement("div",pL({ref:t,className:pm()("visx-tooltip",n),style:pL({top:null==r||null==l?r:r+l,left:null==i||null==a?i:i+a},m&&{position:"absolute"},!h&&c)},v),d)});function pz(){return(pz=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,pU),g=!1,y=!1;if(u&&l){var x=void 0===r?0:r,w=void 0===f?0:f;if(l.width){var E=x+o+u.width-l.width,j=u.width-x-o;g=E>0&&E>j}else{var k=x+o+u.width-window.innerWidth,S=u.width-x-o;g=k>0&&k>S}if(l.height){var _=w+s+u.height-l.height,O=u.height-w-s;y=_>0&&_>O}else y=w+s+u.height>window.innerHeight;x=g?x-u.width-o:x+o,w=y?w-u.height-s:w+s,t="translate("+(x=Math.round(x))+"px, "+(w=Math.round(w))+"px)"}return b.createElement(pV,pW({ref:m,style:pW({left:0,top:0,transform:t},!p&&d)},v),b.createElement(pH,{value:{isFlippedVertically:!y,isFlippedHorizontally:!g}},n))}pq.propTypes={nodeRef:ph().oneOfType([ph().string,ph().func,ph().object])};var p$=((Ez=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={rect:void 0,parentRect:void 0},n.nodeRef=b.createRef(),n.getRects=n.getRects.bind(function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,pI(t,e);var n=t.prototype;return n.componentDidMount=function(){var e,t=this;this.node=null!=(e=this.nodeRef)&&e.current?this.nodeRef.current:e6.findDOMNode(this),this.setState(function(){return t.getRects()})},n.getRects=function(){if(!this.node)return this.state;var e=this.node,t=e.parentNode;return{rect:e.getBoundingClientRect?e.getBoundingClientRect():pZ,parentRect:null!=t&&t.getBoundingClientRect?t.getBoundingClientRect():pZ}},n.render=function(){return b.createElement(pq,pz({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},t}(b.PureComponent)).displayName="withBoundingRects("+(pq.displayName||"")+")",Ez),pY=n(99985);function pG(e,t){if("invert"in e&&void 0!==e.invert)return e.invert(t).valueOf();var n=e.range(),r=n[0],i=n[1],o=0,a=("step"in e&&void 0!==e.step?e.step():1)*(i-r)/Math.abs(i-r);if(a>0)for(;t>r+a*(o+1);)o+=1;else for(;t0?Math.min(e.dx,t.bounds.x1-a):Math.max(e.dx,t.bounds.x0-r),u=e.dy>0?Math.min(e.dy,t.bounds.y1-s):Math.max(e.dy,t.bounds.y0-i);return p3({},t,{isBrushing:!0,extent:p3({},t.extent,{x0:r+l,x1:a+l,y0:i+u,y1:s+u})})})},t.selectionDragEnd=function(){var e=t.props,n=e.updateBrush,r=e.onBrushEnd,i=e.onMoveSelectionChange;e.isControlled||n(function(e){var t=p3({},e,{isBrushing:!1,start:p3({},e.start,{x:Math.min(e.extent.x0,e.extent.x1),y:Math.min(e.extent.y0,e.extent.y1)}),end:p3({},e.end,{x:Math.max(e.extent.x0,e.extent.x1),y:Math.max(e.extent.y0,e.extent.y1)})});return r&&r(t),t}),i&&i()},t}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,p5(t,e),t.prototype.render=function(){var e=this.props,t=e.width,n=e.height,r=e.stageWidth,i=e.stageHeight,o=e.brush,a=e.disableDraggingSelection,s=e.onMouseLeave,l=e.onMouseMove,u=e.onMouseUp,c=e.onClick,d=e.selectedBoxStyle,f=e.isControlled,h=e.isDragInProgress;return b.createElement(pY.Z,{width:t,height:n,resetOnStart:!0,onDragStart:this.selectionDragStart,onDragMove:this.selectionDragMove,onDragEnd:this.selectionDragEnd,isDragging:f?h:void 0},function(e){var h=e.isDragging,p=e.dragStart,m=e.dragEnd,v=e.dragMove;return b.createElement("g",null,h&&b.createElement("rect",{width:r,height:i,fill:"transparent",onPointerUp:f?void 0:m,onPointerMove:v,onPointerLeave:f?void 0:m,style:p6}),b.createElement("rect",p3({x:Math.min(o.extent.x0,o.extent.x1),y:Math.min(o.extent.y0,o.extent.y1),width:t,height:n,className:"visx-brush-selection",onPointerDown:a?void 0:p,onPointerLeave:function(e){s&&s(e)},onPointerMove:function(e){v(e),l&&l(e)},onPointerUp:function(e){f||m(e),u&&u(e)},onClick:function(e){c&&c(e)},style:{pointerEvents:o.isBrushing||o.activeHandle?"none":"all",cursor:a?void 0:"move"}},d)))})},t}(b.Component);function p7(){return(p7=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Math.min(l,e.bounds.x1-o):Math.max(l,e.bounds.x0-n),c=u>0?Math.min(u,e.bounds.y1-a):Math.max(u,e.bounds.y0-r);return p7({},e,{isBrushing:!0,extent:p7({},e.extent,{x0:n+s,y0:r+c,x1:o+s,y1:a+c})})}),"select"===i&&n.updateBrush(function(e){var t=e.start,r=t.x,i=t.y,o={x:Math.min(Math.max(r+l,e.bounds.x0),e.bounds.x1),y:Math.min(Math.max(i+u,e.bounds.y0),e.bounds.y1)},a=n.getExtent(s,o);return p7({},e,{end:o,extent:a})})}},n.getExtent=function(e,t){var r=n.props,i=r.brushDirection,o=r.width,a=r.height;return{x0:"vertical"===i?0:Math.min(e.x||0,t.x||0),x1:"vertical"===i?o:Math.max(e.x||0,t.x||0),y0:"horizontal"===i?0:Math.min(e.y||0,t.y||0),y1:"horizontal"===i?a:Math.max(e.y||0,t.y||0)}},n.handleDragStart=function(e){var t=n.props,r=t.onBrushStart,i=t.left,o=t.top,a=t.inheritedMargin,s=t.useWindowMoveEvents,l=null!=a&&a.left?a.left:0,u=null!=a&&a.top?a.top:0,c={x:(e.x||0)+e.dx-i-l,y:(e.y||0)+e.dy-o-u},d=p7({},c);r&&r(c),n.updateBrush(function(t){return p7({},t,{start:c,end:d,extent:{x0:-1,x1:-1,y0:-1,y1:-1},isBrushing:!0,brushingType:"select",brushPageOffset:s?pK(e.event):void 0})})},n.handleBrushStart=function(e){var t=n.props,r=t.onBrushStart,i=t.left,o=t.top,a=t.inheritedMargin;if(r){var s=null!=a&&a.left?a.left:0,l=null!=a&&a.top?a.top:0;r({x:(e.x||0)+e.dx-i-s,y:(e.y||0)+e.dy-o-l})}},n.handleDragMove=function(e){var t=n.props,r=t.left,i=t.top,o=t.inheritedMargin,a=t.useWindowMoveEvents;if(e.isDragging&&!a){var s=(null==o?void 0:o.left)||0,l=(null==o?void 0:o.top)||0,u={x:(e.x||0)+e.dx-r-s,y:(e.y||0)+e.dy-i-l};n.updateBrush(function(e){var t=e.start,r=n.getExtent(t,u);return p7({},e,{end:u,extent:r})})}},n.handleDragEnd=function(){var e=n.props,t=e.onBrushEnd,r=e.resetOnEnd;e.useWindowMoveEvents||n.updateBrush(function(e){var i=e.extent,o=p7({},e,{start:{x:i.x0,y:i.y0},end:{x:i.x1,y:i.y1},isBrushing:!1,brushingType:void 0,activeHandle:null});return t&&t(o),r&&n.reset(),o})},n.getBrushWidth=function(){var e=n.state.extent,t=e.x0,r=e.x1;return Math.max(Math.max(t,r)-Math.min(t,r),0)},n.getBrushHeight=function(){var e=n.state.extent,t=e.y1,r=e.y0;return Math.max(Math.max(r,t)-Math.min(r,t),0)},n.handles=function(){var e=n.props.handleSize,t=n.state.extent,r=t.x0,i=t.x1,o=t.y0,a=t.y1,s=e/2,l=n.getBrushWidth(),u=n.getBrushHeight();return{top:{x:r-s,y:o-s,height:e,width:l+e},bottom:{x:r-s,y:a-s,height:e,width:l+e},right:{x:i-s,y:o-s,height:u+e,width:e},left:{x:r-s,y:o-s,height:u+e,width:e}}},n.corners=function(){var e=n.props.handleSize,t=n.state.extent,r=t.x0,i=t.x1,o=t.y0,a=t.y1,s=e/2;return{topLeft:{x:Math.min(r,i)-s,y:Math.min(o,a)-s,width:e,height:e},topRight:{x:Math.max(r,i)-s,y:Math.min(o,a)-s,width:e,height:e},bottomLeft:{x:Math.min(r,i)-s,y:Math.max(o,a)-s,width:e,height:e},bottomRight:{x:Math.max(r,i)-s,y:Math.max(o,a)-s,width:e,height:e}}},n.updateBrush=function(e){var t=n.props.onChange;n.setState(e,function(){t&&t(n.state)})},n.reset=function(){var e=n.props,t=e.width,r=e.height;n.updateBrush(function(){return{start:{x:0,y:0},end:{x:0,y:0},extent:{x0:-1,x1:-1,y0:-1,y1:-1},bounds:{x0:0,x1:t,y0:0,y1:r},isBrushing:!1,brushPageOffset:void 0,activeHandle:null,brushingType:void 0}})},n.handleBrushingTypeChange=function(e,t){n.updateBrush(function(n){var r=p7({},n,{brushingType:e,isBrushing:void 0!==e});return(t||void 0===e)&&(r.brushPageOffset=t),r})};var n,r=t.initialBrushPosition,i=r?n.getExtent(r.start,r.end):{x0:-1,x1:-1,y0:-1,y1:-1};return n.state={start:{x:Math.max(0,i.x0),y:Math.max(0,i.y0)},end:{x:Math.max(0,i.x1),y:Math.max(0,i.y1)},extent:i,bounds:{x0:0,x1:n.props.width,y0:0,y1:n.props.height},isBrushing:!1,brushingType:void 0,activeHandle:null},n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,p9(t,e);var n=t.prototype;return n.componentDidUpdate=function(e){var t=this;(this.props.width!==e.width||this.props.height!==e.height)&&this.setState(function(n){var r=n.start,i=n.end,o=n.extent;if(!(-1===o.x0&&-1===o.x1&&-1===o.y0&&-1===o.y1)){var a=t.props.width/e.width,s=t.props.height/e.height;r={x:a*o.x0,y:s*o.y0},i={x:a*o.x1,y:s*o.y1},o=t.getExtent(r,i)}return{start:r,end:i,extent:o,bounds:{x0:0,x1:t.props.width,y0:0,y1:t.props.height}}})},n.componentDidMount=function(){this.props.useWindowMoveEvents&&(window.addEventListener("mouseup",this.handleWindowPointerUp),window.addEventListener("mousemove",this.handleWindowPointerMove))},n.componentWillUnmount=function(){this.props.useWindowMoveEvents&&(window.removeEventListener("mouseup",this.handleWindowPointerUp),window.removeEventListener("mousemove",this.handleWindowPointerMove))},n.render=function(){var e=this,t=this.state,n=t.start,r=t.end,i=this.props,o=i.top,a=i.left,s=i.width,l=i.height,u=i.onMouseLeave,c=i.onMouseUp,d=i.onMouseMove,f=i.onBrushEnd,h=i.onClick,p=i.resizeTriggerAreas,m=i.selectedBoxStyle,v=i.disableDraggingSelection,g=i.clickSensitivity,y=i.useWindowMoveEvents,x=i.renderBrushHandle,w=this.state.brushingType,E=this.handles(),j=this.corners(),k=this.getBrushWidth(),S=this.getBrushHeight(),_=new Set(p);return b.createElement(pg.Z,{className:"visx-brush",top:o,left:a},b.createElement(pY.Z,{width:s,height:l,resetOnStart:!0,onDragStart:this.handleDragStart,onDragMove:this.handleDragMove,onDragEnd:this.handleDragEnd,isDragging:y?"select"===w:void 0},function(t){var n=t.dragStart,r=t.isDragging,i=t.dragMove,o=t.dragEnd;return b.createElement(pc.Z,{className:"visx-brush-overlay",fill:"transparent",x:0,y:0,width:s,height:l,onDoubleClick:function(){return e.reset()},onClick:function(t){var n=e.mouseUpTime-e.mouseDownTime;h&&n=0||(i[n]=e[n]);return i}(e,ma),g=o,y=s,x=a,w=l;return void 0!==m&&!m||g||y||x||w||(g="0",y="0",x="0",w="1"),b.createElement("defs",null,b.createElement("linearGradient",ms({id:n,x1:g,y1:x,x2:y,y2:w,gradientTransform:h?"rotate("+h+")":p},v),!!t&&t,!t&&b.createElement("stop",{offset:void 0===u?"0%":u,stopColor:r,stopOpacity:void 0===c?1:c}),!t&&b.createElement("stop",{offset:void 0===d?"100%":d,stopColor:i,stopOpacity:void 0===f?1:f})))}function mu(e,t){return null==e||null==t?NaN:et?1:e>=t?0:NaN}function mc(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function md(){return 0}function mf(e,t){let n,r;if(void 0===t)for(let t of e)null!=t&&(void 0===n?t>=t&&(n=r=t):(n>t&&(n=t),r=o&&(n=r=o):(n>o&&(n=o),r=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}ml.propTypes={id:ph().string.isRequired,from:ph().string,to:ph().string,x1:ph().oneOfType([ph().string,ph().number]),x2:ph().oneOfType([ph().string,ph().number]),y1:ph().oneOfType([ph().string,ph().number]),y2:ph().oneOfType([ph().string,ph().number]),fromOffset:ph().oneOfType([ph().string,ph().number]),fromOpacity:ph().oneOfType([ph().string,ph().number]),toOffset:ph().oneOfType([ph().string,ph().number]),toOpacity:ph().oneOfType([ph().string,ph().number]),rotate:ph().oneOfType([ph().string,ph().number]),transform:ph().string,children:ph().node,vertical:ph().bool};var mp=n(12436),mm=n.n(mp),mv=n(55746),mg=n(45742),my=n(27266),mx=["id","markerWidth","markerHeight","markerUnits","children"];function mb(){return(mb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mx);return b.createElement("defs",null,b.createElement("marker",mb({id:t,markerWidth:void 0===n?3:n,markerHeight:void 0===r?3:r,markerUnits:void 0===i?"userSpaceOnUse":i},a),o))}mw.propTypes={id:ph().string.isRequired,size:ph().number,markerWidth:ph().oneOfType([ph().string,ph().number]),markerHeight:ph().oneOfType([ph().string,ph().number]),markerUnits:ph().string,refX:ph().oneOfType([ph().string,ph().number]),refY:ph().oneOfType([ph().string,ph().number]),strokeWidth:ph().number,children:ph().node.isRequired};var mE=["id","size","strokeWidth"];function mj(){return(mj=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mE),s=2*r+o,l=s/2;return b.createElement(mw,mj({id:t,markerWidth:s,markerHeight:s,refX:0,refY:l,orient:"auto-start-reverse",markerUnits:"strokeWidth",strokeWidth:o},a),b.createElement("circle",{r:r,cx:l,cy:l}))}var mS=n(64170),m_={top:"top",left:"left",bottom:"bottom"};function mO(){return(mO=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mD),k=null!=g?g:"tickFormat"in v?v.tickFormat():mP.Z,S=h===m_.left,_=h===m_.top,O=_||h===m_.bottom,C=function(e,t){if(void 0===t&&(t="center"),"start"!==t&&"bandwidth"in e){var n=e.bandwidth();return"center"===t&&(n/=2),e.round()&&(n=Math.round(n)),function(t){var r=e(t);return"number"==typeof r?r+n:r}}return e}(v),M=S||_?-1:1,A=v.range(),T=(void 0===(t=m)&&(t=0),"number"==typeof t?{start:t,end:t}:mR({start:0,end:0},t)),P=mN({x:Number(A[0])+.5-T.start,y:0},O),N=mN({x:Number(A[A.length-1])+.5+T.end,y:0},O),R=(null!=w?w:(0,px.Z)(v,d)).filter(function(e){return!l||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),D=R.map(function(e){var t=e.value,n=e.index,r=(0,pb.Z)(C(t));return{value:t,index:n,from:mN({x:r,y:0},O),to:mN({x:r,y:x*M},O),formattedValue:k(t,n,R)}});return b.createElement(pg.Z,{className:pm()("visx-axis",i),top:void 0===E?0:E,left:void 0===u?0:u},r(mL({},j,{axisFromPoint:P,axisToPoint:N,hideAxisLine:void 0!==o&&o,hideTicks:void 0!==a&&a,hideZero:l,horizontal:O,numTicks:d,orientation:h,rangePadding:m,scale:v,tickFormat:k,tickLength:x,tickPosition:C,tickSign:M,ticks:D})))}var mV=["axisClassName","labelOffset","tickLabelProps","tickLength"];function mz(){return(mz=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mV);return b.createElement(mF,mz({axisClassName:pm()("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:m_.bottom,tickLabelProps:void 0===r?mI:r,tickLength:void 0===i?8:i},o))}var mB=["axisClassName","labelOffset","tickLabelProps","tickLength"];function mH(){return(mH=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mB);return b.createElement(mF,mH({axisClassName:pm()("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:m_.left,tickLabelProps:void 0===r?mU:r,tickLength:void 0===i?8:i},o))}let mq=e=>new Date((null==e?void 0:e.timestamp)||0),m$=e=>(null==e?void 0:e.value)||0,mY="var(--colors-hiContrast)",mG={textAnchor:"middle",fontFamily:"var(--fonts-sans)",fontSize:10,fill:mY},mX={dx:"-0.25em",dy:"0.25em",fontFamily:"var(--fonts-sans)",fontSize:10,textAnchor:"end",fill:mY};function mK(e){let{data:t,gradientColor:n,width:r,yMax:i,margin:o,xScale:a,yScale:s,hideBottomAxis:l=!1,hideLeftAxis:u=!1,top:c,left:d,curve:f="step",children:h}=e;return r<10?null:(0,x.jsxs)(pg.Z,{left:d||o.left,top:c||o.top,children:[(0,x.jsx)(mk,{id:"marker-circle",fill:"var(--colors-accent11)",size:1.5,refX:1.5}),(0,x.jsx)(ml,{id:"gradient",from:n,fromOpacity:1,to:n,toOpacity:.2}),(0,x.jsx)(mv.Z,{data:t,x:e=>a(mq(e))||0,y:e=>s(m$(e))||0,yScale:s,strokeWidth:1,stroke:"url(#gradient)",fill:"url(#gradient)",markerMid:"url(#marker-circle)",curve:"step"===f?mg.ZP:my.Z}),!l&&(0,x.jsx)(mZ,{top:i,scale:a,numTicks:r>520?10:5,stroke:mY,tickStroke:mY,tickLabelProps:()=>mG}),!u&&(0,x.jsx)(mW,{scale:s,numTicks:5,stroke:mY,tickStroke:mY,tickLabelProps:()=>mX}),h]})}var mQ=n(6692);let mJ={inherit:mQ.inherit,current:mQ.current,transparent:mQ.transparent,black:mQ.black,white:mQ.white,slate:mQ.slate,zinc:mQ.zinc,neutral:mQ.neutral,stone:mQ.stone,red:mQ.red,orange:mQ.orange,amber:mQ.amber,yellow:mQ.yellow,lime:mQ.lime,green:mQ.green,emerald:mQ.emerald,teal:mQ.teal,cyan:mQ.cyan,sky:mQ.sky,blue:mQ.blue,indigo:mQ.indigo,violet:mQ.violet,purple:mQ.purple,fuchsia:mQ.fuchsia,pink:mQ.pink,rose:mQ.rose,mask:"rgba(30, 169, 76, .3)",accent:{50:"#F6FFF9",100:"#E9FBEF",200:"#D5F2DE",300:"#C9EED4",400:"#BBE8C9",500:"#9BDAAE",600:"#71C48A",700:"#3EAA5F",800:"#05872D",900:"#056B24",1e3:"#04511B",1100:"#011F0A"},accentdark:{50:"#05150A",100:"#051C0C",200:"#062811",300:"#073515",400:"#064018",500:"#075820",600:"#056824",700:"#077A2A",800:"#05872D",900:"#069F35",1e3:"#2FA052",1100:"#D9F4E1"},gray:{50:"hsl(206, 30.0%, 98.8%)",100:"hsl(210, 16.7%, 97.6%)",200:"hsl(209, 13.3%, 95.3%)",300:"hsl(209, 12.2%, 93.2%)",400:"hsl(208, 11.7%, 91.1%)",500:"hsl(208, 11.3%, 88.9%)",600:"hsl(207, 11.1%, 85.9%)",700:"hsl(205, 10.7%, 78.0%)",800:"hsl(206, 6.0%, 56.1%)",900:"hsl(206, 5.8%, 52.3%)",1e3:"hsl(206, 6.0%, 43.5%)",1100:"hsl(206, 24.0%, 9.0%)"},graydark:{50:"hsl(200, 7.0%, 8.8%)",100:"hsl(195, 7.1%, 11.0%)",200:"hsl(197, 6.8%, 13.6%)",300:"hsl(198, 6.6%, 15.8%)",400:"hsl(199, 6.4%, 17.9%)",500:"hsl(201, 6.2%, 20.5%)",600:"hsl(203, 6.0%, 24.3%)",700:"hsl(207, 5.6%, 31.6%)",800:"hsl(206, 6.0%, 43.9%)",900:"hsl(206, 5.2%, 49.5%)",1e3:"hsl(206, 6.0%, 63.0%)",1100:"hsl(210, 6.0%, 93.0%)"}};var m0=n(25205);let m1={top:10,bottom:15,left:10,right:10},m2="brush_pattern",m4="brush_gradient",m3=mm()(e=>e(),15),m5=function(e){let t,n,r;function i(e,r,i=0,o=e.length){if(i>>1;0>n(e[t],r)?i=t+1:o=t}while(imu(e(t),n),r=(t,n)=>e(t)-n):(t=e===mu||e===mc?e:md,n=e,r=e),{left:i,center:function(e,t,n=0,o=e.length){let a=i(e,t,n,o-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,i=0,o=e.length){if(i>>1;0>=n(e[t],r)?i=t+1:o=t}while(inew Date((null==e?void 0:e.timestamp)||0)).left;void 0===EI&&(EI={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===EZ&&(EZ=function(e,t){return b.createElement("div",t,e)});var m6=n(70390),m8=n(3440),m7=n.n(m8);function m9(e){let{id:t,width:n,height:r,accessors:i,animationTrajectory:o,curve:a,data:s,config:l,scales:u,enabledGraph:c,enabledTip:d,isStack:f,todayOffset:h,numTicks:p,renderAreaSeries:m,renderAreaStack:v,renderBarGroup:g,renderBarStack:y,enableTooltipGlyph:w,renderTooltipGlyph:E,renderLineSeries:j,sharedTooltip:k,showHorizontalCrosshair:S,showTooltip:_,showVerticalCrosshair:O,snapTooltipToDatum:C,stackOffset:M,margin:A,theme:T,xAxisOrientation:P,yAxisOrientation:N,AreaSeries:R,AreaStack:D,Axis:L,BarGroup:F,BarSeries:V,BarStack:z,Grid:I,LineSeries:Z,Tooltip:B,XYChart:H}=e;return(0,x.jsxs)(H,{theme:T.xyChartTheme,xScale:u.x,yScale:u.y,height:Math.min(400,r),margin:A,captureEvents:!0,children:[(0,x.jsx)("g",{children:(0,x.jsx)("rect",{className:"fill-gray-600 dark:fill-graydark-600 h-full w-px y-0",style:{left:"".concat(100*h,"%")}})},"today-line-".concat(n,"-").concat(r)),(0,x.jsx)(ml,{id:"gradient-default",from:"gray",fromOpacity:1,to:"gray",toOpacity:.4}),Object.entries(l.data).map(e=>{let[n,r]=e,i=r.color;return(0,x.jsxs)(b.Fragment,{children:[(0,x.jsx)(pP,{id:"pattern-".concat(ve(t,n)),height:6,width:6,stroke:i,strokeWidth:.5,orientation:["diagonal"]}),(0,x.jsx)(ml,{id:"gradient-".concat(ve(t,n)),from:i,fromOpacity:1,to:i,toOpacity:f?.4:1})]},n)}),(0,x.jsx)(I,{rows:!1,columns:!0,strokeDasharray:"1,3",animationTrajectory:o,numTicks:p},"grid-".concat(o)),y&&(0,x.jsx)(z,{offset:l.stackOffset,children:c.map(e=>(0,x.jsx)(V,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>vt(t,e,l)},e))}),g&&(0,x.jsx)(F,{children:c.map(e=>(0,x.jsx)(V,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>vt(t,e,l)},e))}),m&&(0,x.jsx)(x.Fragment,{children:c.map(e=>(0,x.jsx)(R,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:vt(t,e,l),fill:vt(t,e,l),curve:a},e))}),v&&(0,x.jsx)(D,{curve:a,offset:l.stackOffset,renderLine:"wiggle"!==M,children:c.map(e=>(0,x.jsx)(R,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:vt(t,e,l),fill:vt(t,e,l)},e))}),j&&(0,x.jsx)(x.Fragment,{children:c.map(e=>{var t,n;return(0,x.jsx)(Z,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:(null===(n=l.data)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.color)||"gray",curve:a},e)})}),(0,x.jsx)(L,{orientation:P,numTicks:p,animationTrajectory:o,tickFormat:e=>(0,m0.rN)(e),tickLength:12,tickLabelProps:e=>({...e,fill:T.labels.color,fontFamily:T.labels.fontFamily,y:"14px",fontWeight:"500",fontSize:"8"})},"time-axis-".concat(o)),(0,x.jsx)(L,{label:null==M?"SC":"expand"===M?"Fraction of total":"",orientation:N,numTicks:p,tickLength:12,animationTrajectory:o,tickFormat:l.formatTickY,tickTransform:"translate(-300px, 0)",tickLabelProps:e=>({...e,fill:T.labels.color,fontFamily:T.labels.fontFamily,fontWeight:"500",fontSize:"8"})},"temp-axis-".concat(o)),_&&(0,x.jsx)(B,{showHorizontalCrosshair:S,showVerticalCrosshair:O,snapTooltipToDatumX:C,snapTooltipToDatumY:C,showDatumGlyph:C&&!g,showSeriesGlyphs:k&&!g,renderGlyph:w?E:void 0,renderTooltip:e=>{var t,n;let{tooltipData:r}=e,o=null==r?void 0:null===(t=r.nearestDatum)||void 0===t?void 0:t.datum,a=null==r?void 0:null===(n=r.nearestDatum)||void 0===n?void 0:n.key,s=k?d:a?[a]:[],u=l.formatTimestamp||(e=>(0,m0.rN)(e,{timeStyle:"short",hour12:!1})),c=s.map(e=>{var t,n;return{key:e,category:(null===(n=l.data)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.category)||""}}),h=m7()(c,"category"),p=l.categories?l.categories.map(e=>[e,h[e]]):Object.entries(h);return(0,x.jsxs)("div",{className:(0,ea.cx)("flex flex-col gap-2 py-1"),children:[(0,x.jsx)(tq,{font:"mono",size:"12",color:"contrast",className:"text-end",children:o?u(i.date(o)):"No date"}),(0,x.jsx)(cb,{color:"panel",className:"w-full"}),(0,x.jsx)("div",{className:(0,ea.cx)("grid gap-x-6 gap-y-4",p.length>1?"grid-cols-2":"grid-cols-1"),children:p.map(e=>{let[t,n]=e,r=o?n.reduce((e,t)=>{let{key:n}=t,r=i.y[n](o);return null==r||Number.isNaN(r)?e:e+r},0):0,s=null==l?void 0:l.formatComponent;return(0,x.jsxs)("div",{className:"flex flex-col gap-2 w-[250px]",children:[t&&(0,x.jsx)(tq,{weight:"semibold",children:t}),(0,x.jsxs)("div",{className:"grid grid-cols-2 gap-x-2 gap-y-1 items-center",children:[n.map(e=>{var t,n,r,u;let{key:c}=e,d=o&&i.y[c](o);return(0,x.jsxs)(b.Fragment,{children:[(0,x.jsx)(tq,{color:"accent",style:{color:null===(n=l.data)||void 0===n?void 0:null===(t=n[c])||void 0===t?void 0:t.color},className:(0,ea.cx)(a===c?"underline":""),children:(null===(u=l.data)||void 0===u?void 0:null===(r=u[c])||void 0===r?void 0:r.label)||c}),(0,x.jsx)(tq,{size:"12",style:{textAlign:"end"},className:(0,ea.cx)(a===c?"underline":""),children:null==d||Number.isNaN(d)?"–":s?(0,x.jsx)(s,{value:d}):l.format?l.format(d):d})]},c)}),n.length>1&&f&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(tq,{className:"pt-2",children:"total"}),(0,x.jsx)(tq,{size:"12",weight:"bold",className:"pt-2 text-end",children:s?(0,x.jsx)(s,{value:r}):l.format?l.format(r):r})]})]})]},t)})})]})}})]})}function ve(e,t){return"".concat(e,"-").concat(t)}function vt(e,t,n){var r;let i=ve(e,t);return(null===(r=n.data)||void 0===r?void 0:r[t])?n.data[t].pattern?"url(#pattern-".concat(i,")"):"url(#gradient-".concat(i,")"):"url(#gradient-default)"}var vn=n(24037),vr=n(86707);function vi(e){var t=e.top,n=e.left,r=e.className,i=e.children;return b.createElement(pg.Z,{className:pm()("visx-glyph",r),top:void 0===t?0:t,left:void 0===n?0:n},i)}vi.propTypes={top:ph().number,left:ph().number,className:ph().string,children:ph().node};var vo=["children","className","top","left","size"];function va(){return(va=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vo),s=(0,vn.Z)();return(s.type(vr.Z),"number"==typeof o?s.size(o):o&&s.size(o),t)?b.createElement(b.Fragment,null,t({path:s})):b.createElement(vi,{top:r,left:i},b.createElement("path",va({className:pm()("visx-glyph-star",n),d:s()||""},a)))}vs.propTypes={children:ph().func,className:ph().string,top:ph().number,left:ph().number,size:ph().oneOfType([ph().number,ph().func])};var vl=["top","left","className"];function vu(){return(vu=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vl);return b.createElement(vi,{top:void 0===t?0:t,left:void 0===n?0:n},b.createElement("circle",vu({className:pm()("visx-glyph-dot",r)},i)))}vc.propTypes={className:ph().string,top:ph().number,left:ph().number,r:ph().number,cx:ph().number,cy:ph().number};var vd=n(9135),vf=["children","className","top","left","size"];function vh(){return(vh=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vf),s=(0,vn.Z)();return(s.type(vd.Z),"number"==typeof o?s.size(o):o&&s.size(o),t)?b.createElement(b.Fragment,null,t({path:s})):b.createElement(vi,{top:r,left:i},b.createElement("path",vh({className:pm()("visx-glyph-cross",n),d:s()||""},a)))}vp.propTypes={children:ph().func,className:ph().string,top:ph().number,left:ph().number,size:ph().oneOfType([ph().number,ph().func])};var vm=n(46385),vv=n(20651),vg={red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"]},vy=vg.gray,vx=vy[7],vb=[vg.cyan[9],vg.cyan[3],vg.yellow[5],vg.red[4],vg.grape[8],vg.grape[5],vg.pink[9]];function vw(){return(vw=Object.assign?Object.assign.bind():function(e){for(var t=1;t{for(var n in t)v_(e,n,{get:t[n],enumerable:!0})})(vO,{assign:()=>v5,colors:()=>v2,createStringInterpolator:()=>EU,skipAnimation:()=>v4,to:()=>EW,willAdvance:()=>v3});var vC=vU(),vM=e=>vI(e,vC),vA=vU();vM.write=e=>vI(e,vA);var vT=vU();vM.onStart=e=>vI(e,vT);var vP=vU();vM.onFrame=e=>vI(e,vP);var vN=vU();vM.onFinish=e=>vI(e,vN);var vR=[];vM.setTimeout=(e,t)=>{let n=vM.now()+t,r=()=>{let e=vR.findIndex(e=>e.cancel==r);~e&&vR.splice(e,1),vV-=~e?1:0},i={time:n,handler:e,cancel:r};return vR.splice(vD(n),0,i),vV+=1,vZ(),i};var vD=e=>~(~vR.findIndex(t=>t.time>e)||~vR.length);vM.cancel=e=>{vT.delete(e),vP.delete(e),vN.delete(e),vC.delete(e),vA.delete(e)},vM.sync=e=>{vz=!0,vM.batchedUpdates(e),vz=!1},vM.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,vM.onStart(n)}return r.handler=e,r.cancel=()=>{vT.delete(n),t=null},r};var vL="undefined"!=typeof window?window.requestAnimationFrame:()=>{};vM.use=e=>vL=e,vM.now="undefined"!=typeof performance?()=>performance.now():Date.now,vM.batchedUpdates=e=>e(),vM.catch=console.error,vM.frameLoop="always",vM.advance=()=>{"demand"!==vM.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):vH()};var vF=-1,vV=0,vz=!1;function vI(e,t){vz?(t.delete(e),e(0)):(t.add(e),vZ())}function vZ(){vF<0&&(vF=0,"demand"!==vM.frameLoop&&vL(vB))}function vB(){~vF&&(vL(vB),vM.batchedUpdates(vH))}function vH(){let e=vF;vF=vM.now();let t=vD(vF);if(t&&(vW(vR.splice(0,t),e=>e.handler()),vV-=t),!vV){vF=-1;return}vT.flush(),vC.flush(e?Math.min(64,vF-e):16.667),vP.flush(),vA.flush(),vN.flush()}function vU(){let e=new Set,t=e;return{add(n){vV+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(vV-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,vV-=t.size,vW(t,t=>t(n)&&e.add(t)),vV+=e.size,t=e)}}}function vW(e,t){e.forEach(e=>{try{t(e)}catch(e){vM.catch(e)}})}function vq(){}var v$=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),vY={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function vG(e,t){if(vY.arr(e)){if(!vY.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function vK(e,t,n){if(vY.arr(e)){for(let r=0;rvY.und(e)?[]:vY.arr(e)?e:[e];function vJ(e,t){if(e.size){let n=Array.from(e);e.clear(),vX(n,t)}}var v0=(e,...t)=>vJ(e,e=>e(...t)),v1=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),v2=null,v4=!1,v3=vq,v5=e=>{e.to&&(EW=e.to),e.now&&(vM.now=e.now),void 0!==e.colors&&(v2=e.colors),null!=e.skipAnimation&&(v4=e.skipAnimation),e.createStringInterpolator&&(EU=e.createStringInterpolator),e.requestAnimationFrame&&vM.use(e.requestAnimationFrame),e.batchedUpdates&&(vM.batchedUpdates=e.batchedUpdates),e.willAdvance&&(v3=e.willAdvance),e.frameLoop&&(vM.frameLoop=e.frameLoop)},v6=new Set,v8=[],v7=[],v9=0,ge={get idle(){return!v6.size&&!v8.length},start(e){v9>e.priority?(v6.add(e),vM.onStart(gt)):(gn(e),vM(gi))},advance:gi,sort(e){if(v9)vM.onFrame(()=>ge.sort(e));else{let t=v8.indexOf(e);~t&&(v8.splice(t,1),gr(e))}},clear(){v8=[],v6.clear()}};function gt(){v6.forEach(gn),v6.clear(),vM(gi)}function gn(e){v8.includes(e)||gr(e)}function gr(e){v8.splice(function(e,t){let n=e.findIndex(t);return n<0?e.length:n}(v8,t=>t.priority>e.priority),0,e)}function gi(e){let t=v7;for(let n=0;n0}var go="[-+]?\\d*\\.?\\d+",ga=go+"%";function gs(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var gl=RegExp("rgb"+gs(go,go,go)),gu=RegExp("rgba"+gs(go,go,go,go)),gc=RegExp("hsl"+gs(go,ga,ga)),gd=RegExp("hsla"+gs(go,ga,ga,go)),gf=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gh=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gp=/^#([0-9a-fA-F]{6})$/,gm=/^#([0-9a-fA-F]{8})$/;function gv(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function gg(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=gv(i,r,e+1/3),a=gv(i,r,e),s=gv(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function gy(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function gx(e){let t=parseFloat(e);return(t%360+360)%360/360}function gb(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function gw(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function gE(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=gp.exec(e))?parseInt(t[1]+"ff",16)>>>0:v2&&void 0!==v2[e]?v2[e]:(t=gl.exec(e))?(gy(t[1])<<24|gy(t[2])<<16|gy(t[3])<<8|255)>>>0:(t=gu.exec(e))?(gy(t[1])<<24|gy(t[2])<<16|gy(t[3])<<8|gb(t[4]))>>>0:(t=gf.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=gm.exec(e))?parseInt(t[1],16)>>>0:(t=gh.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=gc.exec(e))?(255|gg(gx(t[1]),gw(t[2]),gw(t[3])))>>>0:(t=gd.exec(e))?(gg(gx(t[1]),gw(t[2]),gw(t[3]))|gb(t[4]))>>>0:null;if(null===n)return e;n=n||0;let r=(4278190080&n)>>>24,i=(16711680&n)>>>16,o=(65280&n)>>>8,a=(255&n)/255;return`rgba(${r}, ${i}, ${o}, ${a})`}var gj=(e,t,n)=>{if(vY.fun(e))return e;if(vY.arr(e))return gj({range:e,output:t,extrapolate:n});if(vY.str(e.output[0]))return EU(e);let r=e.output,i=e.range||[0,1],o=e.extrapolateLeft||e.extrapolate||"extend",a=e.extrapolateRight||e.extrapolate||"extend",s=e.easing||(e=>e);return t=>{let n=function(e,t){for(var n=1;n=e);++n);return n-1}(t,i);return function(e,t,n,r,i,o,a,s,l){let u=l?l(e):e;if(un){if("identity"===s)return u;"clamp"===s&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=o(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r,u)}(t,i[n],i[n+1],r[n],r[n+1],s,o,a,e.map)}},gk=Symbol.for("FluidValue.get"),gS=Symbol.for("FluidValue.observers"),g_=e=>!!(e&&e[gk]),gO=e=>e&&e[gk]?e[gk]():e,gC=e=>e[gS]||null;function gM(e,t){let n=e[gS];n&&n.forEach(e=>{e.eventObserved?e.eventObserved(t):e(t)})}var gA=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");gT(this,e)}},gT=(e,t)=>gR(e,gk,t);function gP(e,t){if(e[gk]){let n=e[gS];n||gR(e,gS,n=new Set),!n.has(t)&&(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function gN(e,t){let n=e[gS];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[gS]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var gR=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),gD=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,gL=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,gF=RegExp(`(${gD.source})(%|[a-z]+)`,"i"),gV=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,gz=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,gI=e=>{let[t,n]=gZ(e);if(!t||v1())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){let e=window.getComputedStyle(document.documentElement).getPropertyValue(n);if(e)return e}else if(n&&gz.test(n))return gI(n);else if(n)return n;return e},gZ=e=>{let t=gz.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},gB=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,gH=e=>{Eq||(Eq=v2?RegExp(`(${Object.keys(v2).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>gO(e).replace(gz,gI).replace(gL,gE).replace(Eq,gE)),n=t.map(e=>e.match(gD).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})),i=r.map(t=>gj({...e,output:t}));return e=>{let n=!gF.test(t[0])&&t.find(e=>gF.test(e))?.replace(gD,""),r=0;return t[0].replace(gD,()=>`${i[r++](e)}${n||""}`).replace(gV,gB)}},gU="react-spring: ",gW=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${gU}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},gq=gW(console.warn),g$=gW(console.warn);function gY(e){return vY.str(e)&&("#"==e[0]||/\d/.test(e)||!v1()&&gz.test(e)||e in(v2||{}))}var gG=v1()?b.useEffect:b.useLayoutEffect,gX=()=>{let e=(0,b.useRef)(!1);return gG(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function gK(){let e=(0,b.useState)()[1],t=gX();return()=>{t.current&&e(Math.random())}}var gQ=e=>(0,b.useEffect)(e,gJ),gJ=[];function g0(e){let t=(0,b.useRef)();return(0,b.useEffect)(()=>{t.current=e}),t.current}var g1=Symbol.for("Animated:node"),g2=e=>!!e&&e[g1]===e,g4=e=>e&&e[g1],g3=(e,t)=>v$(e,g1,t),g5=e=>e&&e[g1]&&e[g1].getPayload(),g6=class{constructor(){g3(this,this)}getPayload(){return this.payload||[]}},g8=class extends g6{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,vY.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new g8(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return vY.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,vY.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},g7=class extends g8{constructor(e){super(0),this._string=null,this._toString=gj({output:[e,e]})}static create(e){return new g7(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(vY.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=gj({output:[this.getValue(),e]})),this._value=0,super.reset()}},g9={dependencies:null},ye=class extends g6{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return vK(this.source,(n,r)=>{g2(n)?t[r]=n.getValue(e):g_(n)?t[r]=gO(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&vX(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return vK(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){g9.dependencies&&g_(e)&&g9.dependencies.add(e);let t=g5(e);t&&vX(t,e=>this.add(e))}},yt=class extends ye{constructor(e){super(e)}static create(e){return new yt(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(yn)),!0)}};function yn(e){let t=gY(e)?g7:g8;return t.create(e)}function yr(e){let t=g4(e);return t?t.constructor:vY.arr(e)?yt:gY(e)?g7:g8}var yi=(e,t)=>{let n=!vY.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,b.forwardRef)((r,i)=>{let o=(0,b.useRef)(null),a=n&&(0,b.useCallback)(e=>{o.current=(i&&(vY.fun(i)?i(e):i.current=e),e)},[i]),[s,l]=function(e,t){let n=new Set;return g9.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new ye(e),g9.dependencies=null,[e,n]}(r,t),u=gK(),c=()=>{let e=o.current;if(n&&!e)return;let r=!!e&&t.applyAnimatedValues(e,s.getValue(!0));!1===r&&u()},d=new yo(c,l),f=(0,b.useRef)();gG(()=>(f.current=d,vX(l,e=>gP(e,d)),()=>{f.current&&(vX(f.current.deps,e=>gN(e,f.current)),vM.cancel(f.current.update))})),(0,b.useEffect)(c,[]),gQ(()=>()=>{let e=f.current;vX(e.deps,t=>gN(t,e))});let h=t.getComponentProps(s.getValue());return b.createElement(e,{...h,ref:a})})},yo=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&vM.write(this.update)}},ya=Symbol.for("AnimatedComponent"),ys=e=>vY.str(e)?e:e&&vY.str(e.displayName)?e.displayName:vY.fun(e)&&e.name||null;function yl(e,...t){return vY.fun(e)?e(...t):e}var yu=(e,t)=>!0===e||!!(t&&e&&(vY.fun(e)?e(t):vQ(e).includes(t))),yc=(e,t)=>vY.obj(e)?t&&e[t]:e,yd=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,yf=e=>e,yh=(e,t=yf)=>{let n=yp;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);vY.und(n)||(r[i]=n)}return r},yp=["config","onProps","onStart","onChange","onPause","onResume","onRest"],ym={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function yv(e){let t=function(e){let t={},n=0;if(vK(e,(e,r)=>{!ym[r]&&(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return vK(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function yg(e){return e=gO(e),vY.arr(e)?e.map(yg):gY(e)?vO.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function yy(e){for(let t in e)return!0;return!1}function yx(e){return vY.fun(e)||vY.arr(e)&&vY.obj(e[0])}function yb(e,t){e.ref?.delete(e),t?.delete(e)}function yw(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var yE={tension:170,friction:26,mass:1,damping:1,easing:e=>e,clamp:!1},yj=class{constructor(){this.velocity=0,Object.assign(this,yE)}};function yk(e,t){if(vY.und(t.decay)){let n=!vY.und(t.tension)||!vY.und(t.friction);!n&&vY.und(t.frequency)&&vY.und(t.damping)&&vY.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var yS=[],y_=class{constructor(){this.changed=!1,this.values=yS,this.toValues=null,this.fromValues=yS,this.config=new yj,this.immediate=!1}};function yO(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{let l,u;let c=yu(n.cancel??r?.cancel,t);if(c)h();else{vY.und(n.pause)||(i.paused=yu(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||yu(e,t)),l=yl(n.delay||0,t),e?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),l=u.time-vM.now()}function f(){l>0&&!vO.skipAnimation?(i.delayed=!0,u=vM.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(u)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{o.start({...n,callId:e,cancel:c},a)}catch(e){s(e)}}})}var yC=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?yT(e.get()):t.every(e=>e.noop)?yM(e.get()):yA(e.get(),t.every(e=>e.finished)),yM=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),yA=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),yT=e=>({value:e,cancelled:!0,finished:!1});function yP(e,t,n,r){let{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{let u,c,d;n.asyncId=i,n.asyncTo=e;let f=yh(t,(e,t)=>"onRest"===t?void 0:e),h=new Promise((e,t)=>(u=e,c=t)),p=e=>{let t=i<=(n.cancelId||0)&&yT(r)||i!==n.asyncId&&yA(r,!1);if(t)throw e.result=t,c(e),e},m=(e,t)=>{let o=new yR,a=new yD;return(async()=>{if(vO.skipAnimation)throw yN(n),a.result=yA(r,!1),c(a),a;p(o);let s=vY.obj(e)?{...e}:{...t,to:e};s.parentId=i,vK(f,(e,t)=>{vY.und(s[t])&&(s[t]=e)});let l=await r.start(s);return p(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()};if(vO.skipAnimation)return yN(n),yA(r,!1);try{let t;t=vY.arr(e)?(async e=>{for(let t of e)await m(t)})(e):Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([t.then(u),h]),d=yA(r.get(),!0,!1)}catch(e){if(e instanceof yR)d=e.result;else if(e instanceof yD)d=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return vY.fun(a)&&vM.batchedUpdates(()=>{a(d,r,r.item)}),d})():l}function yN(e,t){vJ(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var yR=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},yD=class extends Error{constructor(){super("SkipAnimationSignal")}},yL=e=>e instanceof yV,yF=1,yV=class extends gA{constructor(){super(...arguments),this.id=yF++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=g4(this);return e&&e.getValue()}to(...e){return vO.to(this,e)}interpolate(...e){return gq(`${gU}The "interpolate" function is deprecated in v9 (use "to" instead)`),vO.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){gM(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||ge.sort(this),gM(this,{type:"priority",parent:this,priority:e})}},yz=Symbol.for("SpringPhase"),yI=e=>(1&e[yz])>0,yZ=e=>(2&e[yz])>0,yB=e=>(4&e[yz])>0,yH=(e,t)=>t?e[yz]|=3:e[yz]&=-3,yU=(e,t)=>t?e[yz]|=4:e[yz]&=-5,yW=class extends yV{constructor(e,t){if(super(),this.animation=new y_,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!vY.und(e)||!vY.und(t)){let n=vY.obj(e)?{...e}:{...t,from:e};vY.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(yZ(this)||this._state.asyncTo)||yB(this)}get goal(){return gO(this.animation.to)}get velocity(){let e=g4(this);return e instanceof g8?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return yI(this)}get isAnimating(){return yZ(this)}get isPaused(){return yB(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:o}=r,a=g5(r.to);!a&&g_(r.to)&&(i=vQ(gO(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==g7?1:a?a[l].lastPosition:i[l],c=r.immediate,d=u;if(!c){let t;if(d=s.lastPosition,o.tension<=0){s.done=!0;return}let n=s.elapsedTime+=e,i=r.fromValues[l],a=null!=s.v0?s.v0:s.v0=vY.arr(o.velocity)?o.velocity[l]:o.velocity,f=o.precision||(i==u?.005:Math.min(1,.001*Math.abs(u-i)));if(vY.und(o.duration)){if(o.decay){let e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*n);d=i+a/(1-e)*(1-r),c=Math.abs(s.lastPosition-d)<=f,t=a*r}else{t=null==s.lastVelocity?a:s.lastVelocity;let n=o.restVelocity||f/10,r=o.clamp?0:o.bounce,l=!vY.und(r),h=i==u?s.v0>0:in)&&(c=Math.abs(u-d)<=f));++e){l&&(d==u||d>u==h)&&(t=-t*r,d=u);let e=-(1e-6*o.tension)*(d-u),n=-(.001*o.friction)*t,i=(e+n)/o.mass;t+=1*i,d+=1*t}}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,s.durationProgress>0&&(s.elapsedTime=o.duration*s.durationProgress,n=s.elapsedTime+=e)),r=(r=(o.progress||0)+n/this._memoizedDuration)>1?1:r<0?0:r,s.durationProgress=r),t=((d=i+o.easing(r)*(u-i))-s.lastPosition)/e,c=1==r}s.lastVelocity=t,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}a&&!a[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,o.round)&&(n=!0)});let s=g4(this),l=s.getValue();if(t){let e=gO(r.to);(l!==e||n)&&!o.decay?(s.setValue(e),this._onChange(e)):n&&o.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return vM.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(yZ(this)){let{to:e,config:t}=this.animation;vM.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){let t=this.queue||(this.queue=[]);return t.push(e),this}start(e,t){let n;return vY.und(e)?(n=this.queue||[],this.queue=[]):n=[vY.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>{let t=this._update(e);return t})).then(e=>yC(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),yN(this._state,e&&this._lastCallId),vM.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:n,from:r}=e;(null==(n=vY.obj(n)?n[t]:n)||yx(n))&&(n=void 0),null==(r=vY.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return yI(this)||(e.reverse&&([n,r]=[r,n]),r=gO(r),vY.und(r)?g4(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,yh(e,(e,t)=>/^on/.test(t)?yc(e,n):e)),yK(this,e,"onProps"),yQ(this,"onProps",e,this);let i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let o=this._state;return yO(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{yB(this)||(yU(this,!0),v0(o.pauseQueue),yQ(this,"onPause",yA(this,yq(this,this.animation.to)),this))},resume:()=>{yB(this)&&(yU(this,!1),yZ(this)&&this._resume(),v0(o.resumeQueue),yQ(this,"onResume",yA(this,yq(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=y$(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(yT(this));let r=!vY.und(e.to),i=!vY.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(yT(this));this._lastToId=t.callId}let{key:o,defaultProps:a,animation:s}=this,{to:l,from:u}=s,{to:c=l,from:d=u}=e;i&&!r&&(!t.default||vY.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!vG(d,u);f&&(s.from=d),d=gO(d);let h=!vG(c,l);h&&this._focus(c);let p=yx(t.to),{config:m}=s,{decay:v,velocity:g}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(yk(n={...n},t),t={...n,...t}),yk(e,t),Object.assign(e,t),yE)null==e[r]&&(e[r]=yE[r]);let{frequency:r,damping:i}=e,{mass:o}=e;vY.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r)}(m,yl(t.config,o),t.config!==a.config?yl(a.config,o):void 0);let y=g4(this);if(!y||vY.und(c))return n(yA(this,!0));let x=vY.und(t.reset)?i&&!t.default:!vY.und(d)&&yu(t.reset,o),b=x?d:this.get(),w=yg(c),E=vY.num(w)||vY.arr(w)||gY(w),j=!p&&(!E||yu(a.immediate||t.immediate,o));if(h){let e=yr(c);if(e!==y.constructor){if(j)y=this._set(w);else throw Error(`Cannot animate between ${y.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let k=y.constructor,S=g_(c),_=!1;if(!S){let e=x||!yI(this)&&f;(h||e)&&(S=!(_=vG(yg(b),w))),(vG(s.immediate,j)||j)&&vG(m.decay,v)&&vG(m.velocity,g)||(S=!0)}if(_&&yZ(this)&&(s.changed&&!x?S=!0:S||this._stop(l)),!p&&((S||g_(l))&&(s.values=y.getPayload(),s.toValues=g_(c)?null:k==g7?[1]:vQ(w)),s.immediate==j||(s.immediate=j,j||x||this._set(l)),S)){let{onRest:e}=s;vX(yX,e=>yK(this,t,e));let r=yA(this,yq(this,l));v0(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&vM.batchedUpdates(()=>{s.changed=!x,e?.(r,this),x?yl(a.onRest,r):s.onStart?.(r,this)})}x&&this._set(b),p?n(yP(t.to,t,this._state,this)):S?this._start():yZ(this)&&!h?this._pendingCalls.add(n):n(yM(b))}_focus(e){let t=this.animation;e!==t.to&&(gC(this)&&this._detach(),t.to=e,gC(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;g_(t)&&(gP(t,this),yL(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;g_(e)&&gN(e,this)}_set(e,t=!0){let n=gO(e);if(!vY.und(n)){let e=g4(this);if(!e||!vG(n,e.getValue())){let r=yr(n);e&&e.constructor==r?e.setValue(n):g3(this,r.create(n)),e&&vM.batchedUpdates(()=>{this._onChange(n,t)})}}return g4(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,yQ(this,"onStart",yA(this,yq(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),yl(this.animation.onChange,e,this)),yl(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;g4(this).reset(gO(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),yZ(this)||(yH(this,!0),yB(this)||this._resume())}_resume(){vO.skipAnimation?this.finish():ge.start(this)}_stop(e,t){if(yZ(this)){yH(this,!1);let n=this.animation;vX(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),gM(this,{type:"idle",parent:this});let r=t?yT(this.get()):yA(this.get(),yq(this,e??n.to));v0(this._pendingCalls,r),n.changed&&(n.changed=!1,yQ(this,"onRest",r,this))}}};function yq(e,t){let n=yg(t),r=yg(e.get());return vG(r,n)}function y$(e,t=e.loop,n=e.to){let r=yl(t);if(r){let i=!0!==r&&yv(r),o=(i||e).reverse,a=!i||i.reset;return yY({...e,loop:t,default:!1,pause:void 0,to:!o||yx(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function yY(e){let{to:t,from:n}=e=yv(e),r=new Set;return vY.obj(t)&&yG(t,r),vY.obj(n)&&yG(n,r),e.keys=r.size?Array.from(r):null,e}function yG(e,t){vK(e,(e,n)=>null!=e&&t.add(n))}var yX=["onStart","onRest","onChange","onPause","onResume"];function yK(e,t,n){e.animation[n]=t[n]!==yd(t,n)?yc(t[n],e.key):void 0}function yQ(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var yJ=["onStart","onChange","onRest"],y0=1,y1=class{constructor(e,t){this.id=y0++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];vY.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(yY(e)),this}start(e){let{queue:t}=this;return(e?t=vQ(e).map(yY):this.queue=[],this._flush)?this._flush(this,t):(y7(this,t),y2(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;vX(vQ(t),t=>n[t].stop(!!e))}else yN(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(vY.und(e))this.start({pause:!0});else{let t=this.springs;vX(vQ(e),e=>t[e].pause())}return this}resume(e){if(vY.und(e))this.start({pause:!1});else{let t=this.springs;vX(vQ(e),e=>t[e].resume())}return this}each(e){vK(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,vJ(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&vJ(t,([e,t])=>{t.value=a,e(t,this,this._item)}),o&&(this._started=!1,vJ(n,([e,t])=>{t.value=a,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}vM.onFrame(this._onFrame)}};function y2(e,t){return Promise.all(t.map(t=>y4(e,t))).then(t=>yC(e,t))}async function y4(e,t,n){let{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=vY.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);let c=vY.arr(i)||vY.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):vX(yJ,n=>{let r=t[n];if(vY.fun(r)){let i=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}});let d=e._state;!d.paused===t.pause?(d.paused=t.pause,v0(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let f=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),h=!0===t.cancel||!0===yd(t,"cancel");(c||h&&d.asyncId)&&f.push(yO(++e._lastAsyncId,{props:t,state:d,actions:{pause:vq,resume:vq,start(t,n){h?(yN(d,e._lastAsyncId),n(yT(e))):(t.onRest=s,n(yP(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=yC(e,await Promise.all(f));if(a&&p.finished&&!(n&&p.noop)){let n=y$(t,a,i);if(n)return y7(e,[n]),y4(e,n,!0)}return l&&vM.batchedUpdates(()=>l(p,e,e.item)),p}function y3(e,t){let n={...e.springs};return t&&vX(vQ(t),e=>{vY.und(e.keys)&&(e=yY(e)),vY.obj(e.to)||(e={...e,to:void 0}),y8(n,e,e=>y6(e))}),y5(e,n),n}function y5(e,t){vK(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,gP(t,e))})}function y6(e,t){let n=new yW;return n.key=e,t&&gP(n,t),n}function y8(e,t,n){t.keys&&vX(t.keys,r=>{let i=e[r]||(e[r]=n(r));i._prepareNode(t)})}function y7(e,t){vX(t,t=>{y8(e.springs,t,t=>y6(t,e))})}var y9=({children:e,...t})=>{let n=(0,b.useContext)(xe),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=function(e,t){let[n]=(0,b.useState)(()=>({inputs:t,result:e()})),r=(0,b.useRef)(),i=r.current,o=i;if(o){let n=!!(t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}(()=>({pause:r,immediate:i}),[r,i]);let{Provider:o}=xe;return b.createElement(o,{value:t},e)},xe=(Object.assign(y9,b.createContext({})),y9.Provider._context=y9,y9.Consumer._context=y9,y9);y9.Provider=xe.Provider,y9.Consumer=xe.Consumer;var xt=()=>{let e=[],t=function(t){g$(`${gU}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);let r=[];return vX(e,(e,i)=>{if(vY.und(t))r.push(e.start());else{let o=n(t,e,i);o&&r.push(e.start(o))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return vX(e,e=>e.pause(...arguments)),this},t.resume=function(){return vX(e,e=>e.resume(...arguments)),this},t.set=function(t){vX(e,(e,n)=>{let r=vY.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return vX(e,(e,r)=>{if(vY.und(t))n.push(e.start());else{let i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return vX(e,e=>e.stop(...arguments)),this},t.update=function(t){return vX(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return vY.fun(e)?e(n,t):e};return t._getProps=n,t};function xn(e,t){let n=vY.fun(e),[[r],i]=function(e,t,n){let r=vY.fun(t)&&t;r&&!n&&(n=[]);let i=(0,b.useMemo)(()=>r||3==arguments.length?xt():void 0,[]),o=(0,b.useRef)(0),a=gK(),s=(0,b.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=y3(e,t),r=o.current>0&&!s.queue.length&&!Object.keys(n).some(t=>!e.springs[t]);return r?y2(e,t):new Promise(r=>{y5(e,n),s.queue.push(()=>{r(y2(e,t))}),a()})}}),[]),l=(0,b.useRef)([...s.ctrls]),u=[],c=g0(e)||0;function d(e,n){for(let i=e;i{vX(l.current.slice(e,c),e=>{yb(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,b.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=l.current.map((e,t)=>y3(e,u[t])),h=(0,b.useContext)(y9),p=g0(h),m=h!==p&&yy(h);gG(()=>{o.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],vX(e,e=>e())),vX(l.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(yw(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),gQ(()=>()=>{vX(s.ctrls,e=>e.stop(!0))});let v=f.map(e=>({...e}));return i?[v,i]:v}(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}function xr(e,t,n){let r=vY.fun(t)&&t,{reset:i,sort:o,trail:a=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=(0,b.useMemo)(()=>r||3==arguments.length?xt():void 0,[]),h=vQ(e),p=[],m=(0,b.useRef)(null),v=i?null:m.current;gG(()=>{m.current=p}),gQ(()=>(vX(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{vX(m.current,e=>{e.expired&&clearTimeout(e.expirationId),yb(e.ctrl,f),e.ctrl.stop(!0)})}));let g=function(e,{key:t,keys:n=t},r){if(null===n){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&"leave"!==n.phase&&!t.has(n));return n?(t.add(n),n.key):xi++})}return vY.und(n)?e:vY.fun(n)?e.map(n):vQ(n)}(h,r?r():t,v),y=i&&m.current||[];gG(()=>vX(y,({ctrl:e,item:t,key:n})=>{yb(e,f),yl(u,t,n)}));let x=[];if(v&&vX(v,(e,t)=>{e.expired?(clearTimeout(e.expirationId),y.push(e)):~(t=x[t]=g.indexOf(e.key))&&(p[t]=e)}),vX(h,(e,t)=>{p[t]||(p[t]={key:g[t],item:e,phase:"mount",ctrl:new y1},p[t].ctrl.item=e)}),x.length){let e=-1,{leave:n}=r?r():t;vX(x,(t,r)=>{let i=v[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}vY.fun(o)&&p.sort((e,t)=>o(e.item,t.item));let w=-a,E=gK(),j=yh(t),k=new Map,S=(0,b.useRef)(new Map),_=(0,b.useRef)(!1);vX(p,(e,n)=>{let i,o;let u=e.key,f=e.phase,h=r?r():t,p=yl(h.delay||0,u);if("mount"==f)i=h.enter,o="enter";else{let e=0>g.indexOf(u);if("leave"!=f){if(e)i=h.leave,o="leave";else{if(!(i=h.update))return;o="update"}}else{if(e)return;i=h.enter,o="enter"}}if(i=yl(i,e.item,n),!(i=vY.obj(i)?yv(i):{to:i}).config){let t=d||j.config;i.config=yl(t,e.item,n,o)}w+=a;let y={...j,delay:p+w,ref:c,immediate:h.immediate,reset:!1,...i};if("enter"==o&&vY.und(y.from)){let i=r?r():t,o=vY.und(i.initial)||v?i.from:i.initial;y.from=yl(o,e.item,n)}let{onResolve:x}=y;y.onResolve=e=>{yl(x,e);let t=m.current,n=t.find(e=>e.key===u);if(n){if(e.cancelled&&"update"!=n.phase)return;if(n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){let t=yl(s,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(E,r));return}}}e&&t.some(e=>e.expired)&&(S.current.delete(n),l&&(_.current=!0),E())}}};let b=y3(e.ctrl,y);"leave"===o&&l?S.current.set(e,{phase:o,springs:b,payload:y}):k.set(e,{phase:o,springs:b,payload:y})});let O=(0,b.useContext)(y9),C=g0(O),M=O!==C&&yy(O);gG(()=>{M&&vX(p,e=>{e.ctrl.start({default:O})})},[O]),vX(k,(e,t)=>{if(S.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),gG(()=>{vX(S.current.size?S.current:k,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),M&&"enter"==e&&r.start({default:O}),t&&(yw(r,t.ref),(r.ref||f)&&!_.current?r.update(t):(r.start(t),_.current&&(_.current=!1)))})},i?void 0:n);let A=e=>b.createElement(b.Fragment,null,p.map((t,n)=>{let{springs:r}=k.get(t)||t.ctrl,i=e({...r},t.item,t,n);return i&&i.type?b.createElement(i.type,{...i.props,key:vY.str(t.key)||vY.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[A,f]:A}var xi=1,xo=class extends yV{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=gj(...t);let n=this._get(),r=yr(n);g3(this,r.create(n))}advance(e){let t=this._get(),n=this.get();vG(t,n)||(g4(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&xs(this._active)&&xl(this)}_get(){let e=vY.arr(this.source)?this.source.map(gO):vQ(gO(this.source));return this.calc(...e)}_start(){this.idle&&!xs(this._active)&&(this.idle=!1,vX(g5(this),e=>{e.done=!1}),vO.skipAnimation?(vM.batchedUpdates(()=>this.advance()),xl(this)):ge.start(this))}_attach(){let e=1;vX(vQ(this.source),t=>{g_(t)&&gP(t,this),yL(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){vX(vQ(this.source),e=>{g_(e)&&gN(e,this)}),this._active.clear(),xl(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=vQ(this.source).reduce((e,t)=>Math.max(e,(yL(t)?t.priority:0)+1),0))}};function xa(e){return!1!==e.idle}function xs(e){return!e.size||Array.from(e).every(xa)}function xl(e){e.idle||(e.idle=!0,vX(g5(e),e=>{e.done=!0}),gM(e,{type:"idle",parent:e}))}var xu=(e,...t)=>new xo(e,t);vO.assign({createStringInterpolator:gH,to:(e,t)=>new xo(e,t)}),ge.advance;var xc=/^--/,xd={},xf={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},xh=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),xp=["Webkit","Ms","Moz","O"];xf=Object.keys(xf).reduce((e,t)=>(xp.forEach(n=>e[xh(n,t)]=e[t]),e),xf);var xm=/^(matrix|translate|scale|rotate|skew)/,xv=/^(translate)/,xg=/^(rotate|skew)/,xy=(e,t)=>vY.num(e)&&0!==e?e+t:e,xx=(e,t)=>vY.arr(e)?e.every(e=>xx(e,t)):vY.num(e)?e===t:parseFloat(e)===t,xb=class extends ye{constructor({x:e,y:t,z:n,...r}){let i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(e=>[`translate3d(${e.map(e=>xy(e,"px")).join(",")})`,xx(e,0)])),vK(r,(e,t)=>{if("transform"===t)i.push([e||""]),o.push(e=>[e,""===e]);else if(xm.test(t)){if(delete r[t],vY.und(e))return;let n=xv.test(t)?"px":xg.test(t)?"deg":"";i.push(vQ(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${xy(i,n)})`,xx(i,0)]:e=>[`${t}(${e.map(e=>xy(e,n)).join(",")})`,xx(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new xw(i,o)),super(r)}},xw=class extends gA{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return vX(this.inputs,(n,r)=>{let i=gO(n[0]),[o,a]=this.transforms[r](vY.arr(i)?i:n.map(gO));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){1==e&&vX(this.inputs,e=>vX(e,e=>g_(e)&&gP(e,this)))}observerRemoved(e){0==e&&vX(this.inputs,e=>vX(e,e=>g_(e)&&gN(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),gM(this,e)}};vO.assign({batchedUpdates:e6.unstable_batchedUpdates,createStringInterpolator:gH,colors:{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}});var xE=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new ye(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{let t=ys(e)||"Anonymous";return(e=vY.str(e)?o[e]||(o[e]=yi(e,i)):e[ya]||(e[ya]=yi(e,i))).displayName=`Animated(${t})`,e};return vK(e,(t,n)=>{vY.arr(e)&&(n=ys(t)),o[n]=o(t)}),{animated:o}})(["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"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:i,scrollTop:o,scrollLeft:a,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(t=>n||e.hasAttribute(t)?t:xd[t]||(xd[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==i&&(e.textContent=i),r)if(r.hasOwnProperty(t)){var d;let n=null==(d=r[t])||"boolean"==typeof d||""===d?"":"number"!=typeof d||0===d||xc.test(t)||xf.hasOwnProperty(t)&&xf[t]?(""+d).trim():d+"px";xc.test(t)?e.style.setProperty(t,n):e.style[t]=n}c.forEach((t,n)=>{e.setAttribute(t,u[n])}),void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new xb(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated,xj=n(23442),xk=(0,b.createContext)({});function xS(e){var t=e.x,n=e.y,r=e.dx,i=e.dy,o=e.children,a=(0,b.useMemo)(function(){return{x:t,y:n,dx:r,dy:i}},[t,n,r,i]);return b.createElement(xk.Provider,{value:a},o)}function x_(){return(x_=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,xP),p=(0,b.useContext)(xM)||{},m=p.innerHeight,v=p.innerWidth,g=p.margin,y=p.xScale,x=p.yScale,w=p.dataRegistry,E=(0,b.useMemo)(function(){return y?xA(y):0},[y]),j=(0,b.useMemo)(function(){return x?xA(x):0},[x]);if((!s||!l)&&!a)return console.warn("[@visx/xychart/BaseAnnotation]: dataKey or x/yAccessors must be specified."),null;var k=s&&l||null==a?null:null==w?void 0:w.get(a),S=s||(null==k?void 0:k.xAccessor),_=l||(null==k?void 0:k.yAccessor);if(!y||!x||!v||!m||!S||!_||!g)return null;var O=(null!=(t=(0,pb.Z)(y(S(o))))?t:NaN)+E/2,C=(null!=(n=(0,pb.Z)(x(_(o))))?n:NaN)+j/2,M=O+c+16>g.left+v?-c:c,A=C+f+16>g.top+m?-f:f;return xT(O)&&xT(C)?b.createElement(r,xN({width:v,height:m},h,{x:O,y:C,dx:M,dy:A}),i):null}xR.propTypes={dataKey:ph().string,xAccessor:ph().func,yAccessor:ph().func};var xD=["x","y","AnnotationComponent"],xL=["editable"];function xF(){return(xF=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function xz(e){var t=e.x,n=void 0===t?0:t,r=e.y,i=void 0===r?0:r,o=e.AnnotationComponent,a=xV(e,xD),s=(0,b.useRef)({x:n,y:i}),l=xn({from:{x:s.current.x-n,y:s.current.y-i},to:{x:0,y:0},reset:!0});return(0,b.useEffect)(function(){s.current={x:n,y:i}},[n,i]),b.createElement(xE.g,{transform:xu([l.x,l.y],function(e,t){return"translate("+e+", "+t+")"})},b.createElement(o,xF({x:n,y:i},a)))}function xI(e){var t=e.editable,n=xV(e,xL),r=(0,b.useCallback)(function(e){return b.createElement(xz,xF({AnnotationComponent:t?xC:xS},e))},[t]);return b.createElement(xR,xF({AnnotationComponent:r},n))}xI.propTypes={editable:ph().bool};var xZ=n(12766),xB=n(54073),xH=n.n(xB),xU=["d","stroke","fill"];function xW(){return(xW=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,xU),o=(0,b.useRef)(t),a=(0,b.useCallback)(xH()(function(e){o.current=e},50),[]),s=(0,xZ.interpolatePath)(o.current,t);a(t);var l=xn({from:{t:0},to:{t:1},reset:!0,delay:0}).t,u=xn({stroke:void 0===n?"transparent":n,fill:void 0===r?"transparent":r});return b.createElement(xE.path,xW({className:"visx-path",d:l.to(s),stroke:u.stroke,fill:u.fill},i))}var x$=n(12935),xY=n(12151);function xG(){return(xG=Object.assign?Object.assign.bind():function(e){for(var t=1;tt?1:e>=t?0:NaN}function x6(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;0>n(e[o],t)?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>x5(e(t),n)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);let a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}let x8=x6(x5);x8.right;let x7=x8.left;function x9(e){var t,n,r=e.scale,i=e.accessor,o=e.scaledValue,a=e.data;if("invert"in r&&"function"==typeof r.invert){var s=x6(i).left,l=Number(r.invert(o)),u=s(a,l),c=a[u-1],d=a[u];n=(t=!c||Math.abs(l-i(c))>Math.abs(l-i(d))?d:c)===c?u-1:u}else{if(!("step"in r)||void 0===r.step)return console.warn("[visx/xychart/findNearestDatum] encountered incompatible scale type, bailing"),null;var f=r.domain(),h=r.range().map(Number),p=[].concat(h).sort(function(e,t){return e-t}),m=x7(function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=Array(i);++r=0||(i[n]=e[n]);return i}(e,bd),O=(0,b.useContext)(xM),C=O.colorScale,M=O.theme,A=O.horizontal,T=(0,b.useMemo)(function(){return w?xK(E,w):void 0},[E,w]),P=(0,b.useMemo)(function(){return xK(E,x)},[E,x]),N=(0,b.useMemo)(function(){return k?xK(S,k):void 0},[S,k]),R=(0,b.useMemo)(function(){return xK(S,j)},[S,j]),D=(0,b.useCallback)(function(e){return xT(E(x(e)))&&xT(S(j(e)))},[E,x,S,j]),L=null!=(t=null!=(n=null==C?void 0:C(l))?n:null==M?void 0:null==(r=M.colors)?void 0:r[0])?t:"#222",F="AREASERIES_EVENT_SOURCE-"+l,V=ba({dataKey:l,enableEvents:void 0===v||v,onBlur:c,onFocus:d,onPointerMove:f,onPointerOut:h,onPointerUp:p,onPointerDown:m,source:F,allowedSources:[xJ,F]}),z=(0,b.useMemo)(function(){var e=xQ(A?E:S);return A?{x0:null!=T?T:e,x1:P,y:R}:{x:P,y0:null!=N?N:e,y1:R}},[E,S,A,P,R,T,N]),I=!!(d||c),Z=(0,b.useCallback)(function(e){var t=e.glyphs;return I?t.map(function(e){return b.createElement(b.Fragment,{key:e.key},bc(bf({},e,{color:"transparent",onFocus:V.onFocus,onBlur:V.onBlur})))}):null},[I,V.onFocus,V.onBlur]);return b.createElement(b.Fragment,null,b.createElement(x$.Z,bf({},z,_,{curve:a,defined:D}),function(e){var t=e.path;return b.createElement(o,bf({className:"visx-area",stroke:"transparent",fill:L,strokeLinecap:"round"},_,{d:t(s)||""},V))}),y&&b.createElement(xY.Z,bf({x:P,y:R,defined:D,curve:a},u),function(e){var t=e.path;return b.createElement(o,bf({className:"visx-line",fill:"transparent",stroke:L,strokeWidth:2,pointerEvents:"none",strokeLinecap:"round"},u,{d:t(s)||""}))}),I&&b.createElement(bl,{dataKey:l,data:s,xAccessor:x,yAccessor:j,xScale:E,yScale:S,renderGlyphs:Z}))}bh.propTypes={renderLine:ph().bool};var bp=xX(bh);function bm(){return(bm=Object.assign?Object.assign.bind():function(e){for(var t=1;t1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o=0;)n[t]=t;return n}function bE(e,t){return e[t]}function bj(e){let t=[];return t.key=e,t}Array.prototype.slice;var bk=n(74322),bS=n(58543);function b_(e,t){let n,r;if(void 0===t)for(let t of e)null!=t&&(void 0===n?t>=t&&(n=r=t):(n>t&&(n=t),r=o&&(n=r=o):(n>o&&(n=o),r=0?"positiveSum":"negativeSum"]+=i})}}),Object.values(e)},[o,l]),d=(0,b.useMemo)(function(){var e=r?null:c.some(function(e){return e.negativeSum<0}),t=function(){var e=bx([]),t=bw,n=bb,r=bE;function i(i){var o,a,s,l=Array.from(e.apply(this,arguments),bj),u=l.length,c=-1;for(let e of i)for(a=0,++c;a0&&0===r&&(o?i.xScale=function(e){return e.domain(b_(e.domain().concat(f)))}:i.yScale=function(e){return e.domain(b_(e.domain().concat(f)))}),i}).filter(function(e){return e}))),function(){return s(u)}},[u,f,o,d,a,s,l]),{seriesChildren:l,dataKeys:u,stackedData:d}}function bP(e,t,n){var r,i,o,a,s=e.xScale,l=e.yScale,u=e.point,c=(n?bt:be)(e),d=(null==c?void 0:c.index)==null?null:t[c.index];return c&&d&&u?{index:c.index,datum:d,distanceX:n&&u.x>=(null!=(r=s((0,by.l8)(c.datum)))?r:1/0)&&u.x<=(null!=(i=s((0,by.xf)(c.datum)))?i:-1/0)?0:c.distanceX,distanceY:n?c.distanceY:u.y<=(null!=(o=l((0,by.l8)(c.datum)))?o:-1/0)&&u.y>=(null!=(a=l((0,by.xf)(c.datum)))?a:1/0)?0:c.distanceY}:null}var bN=["data","dataKey","xAccessor","yAccessor","curve","PathComponent","lineProps","renderLine"];function bR(){return(bR=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(a,bN)),u=bR({fill:null!=(n=null!=(r=null==g?void 0:g(e.key))?r:null==j?void 0:null==(i=j.colors)?void 0:i[0])?n:"#222"},l);return{key:t+"-"+e.key,accessors:C,data:e,areaProps:u,lineProps:s}})},[O,C,g,_,j]),A=(0,b.useCallback)(function(e){var t,n,r=null==(t=_.find(function(t){return t.props.dataKey===e.dataKey}))?void 0:null==(n=t.props)?void 0:n.data;return r?bP(e,r,x):null},[_,x]),T="AREASTACK_EVENT_SOURCE-"+S.join("-"),P=ba({dataKey:S,enableEvents:void 0===o||o,findNearestDatum:A,onBlur:s,onFocus:l,onPointerMove:u,onPointerOut:c,onPointerUp:d,onPointerDown:f,source:T,allowedSources:[xJ,T]}),N=!!(l||s),R=(0,b.useCallback)(function(e){var t=e.glyphs;return N?t.map(function(e){return b.createElement(b.Fragment,{key:e.key},bc(bR({},e,{color:"transparent",onFocus:P.onFocus,onBlur:P.onBlur})))}):null},[N,P.onFocus,P.onBlur]);return!S.some(function(e){return null==y.get(e)})&&w&&E&&g?b.createElement("g",{className:"visx-area-stack"},M.map(function(e){return b.createElement(x$.Z,bR({key:e.key,curve:i},e.accessors),function(t){var r=t.path;return b.createElement(n,bR({className:"visx-area",stroke:"transparent",d:r(e.data)||""},e.areaProps,P))})}),m&&M.map(function(e){return b.createElement(bg.Z,bR({key:"line-"+e.key,x:e.accessors.x||e.accessors.x1,y:e.accessors.y||e.accessors.y1,defined:e.accessors.defined,curve:i},e.lineProps),function(t){var r=t.path;return b.createElement(n,bR({className:"visx-line",fill:"transparent",stroke:e.areaProps.fill,strokeWidth:2,pointerEvents:"none"},e.lineProps,{d:r(e.data)||""}))})}),N&&M.map(function(e,t){var n=M[M.length-t-1];return b.createElement(bl,{key:"glyphs-"+n.key,dataKey:n.key,data:n.data,xAccessor:n.accessors.x||n.accessors.x1,yAccessor:n.accessors.y||n.accessors.y1,xScale:bD,yScale:bD,renderGlyphs:R})})):null}function bF(){return(bF=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,bI),c=(0,b.useContext)(xM),d=c.theme,f=c.xScale,h=c.yScale,p=c.margin,m=c.width,v=c.height,g=u.orientation,y=(0,b.useMemo)(function(){var e,t,n,r;return"left"===g||"right"===g?null==d?void 0:null==(e=d.axisStyles)?void 0:null==(t=e.y)?void 0:t[g]:null==d?void 0:null==(n=d.axisStyles)?void 0:null==(r=n.x)?void 0:r[g]},[d,g]),x=u.tickLabelProps,w=(0,b.useMemo)(function(){return x||y?function(e,t,n){return bZ({},null==y?void 0:y.tickLabel,{width:"left"===g||"right"===g?null==p?void 0:p[g]:void 0},null==x?void 0:x(e,t,n))}:void 0},[x,y,g,p]),E="bottom"===g?(null!=v?v:0)-(null!=(t=null==p?void 0:p.bottom)?t:0):"top"===g&&null!=(n=null==p?void 0:p.top)?n:0,j="left"===g?null!=(r=null==p?void 0:p.left)?r:0:"right"===g?(null!=m?m:0)-(null!=(i=null==p?void 0:p.right)?i:0):0,k="left"===g||"right"===g?h:f;return k?b.createElement(l,bZ({top:E,left:j,labelProps:null==y?void 0:y.axisLabel,stroke:null==y?void 0:null==(o=y.axisLine)?void 0:o.stroke,strokeWidth:null==y?void 0:null==(a=y.axisLine)?void 0:a.strokeWidth,tickLength:null==y?void 0:y.tickLength,tickStroke:null==y?void 0:null==(s=y.tickLine)?void 0:s.stroke},u,{tickLabelProps:w,scale:k})):null}function bH(){return(bH=Object.assign?Object.assign.bind():function(e){for(var t=1;t=h&&l.y<=p;return bq({},u,{distanceX:0,distanceY:m?0:Math.abs(l.y-(h+p)/2)})}var v=a(i(u.datum)),g=(null!=v?v:1/0)+(null!=c?c:1/0),y=g+d,x=l.x>=g&&l.x<=y;return bq({},u,{distanceY:0,distanceX:x?0:Math.abs(l.x-(g+y)/2)})}(e,k,v)},[k,v]),_="BARGROUP_EVENT_SOURCE-"+j.join("-")+"}",O=ba({dataKey:j,enableEvents:void 0===f||f,findNearestDatum:S,onBlur:a,onFocus:s,onPointerMove:l,onPointerOut:u,onPointerUp:c,onPointerDown:d,source:_,allowedSources:[xJ,_]}),C=(0,b.useMemo)(function(){return x?xQ(x):0},[x]),M=(0,b.useMemo)(function(){return w?xQ(w):0},[w]),A=j.map(function(e){return m.get(e)});if(A.some(function(e){return null==e})||!x||!w||!p)return null;var T=xA(k),P=A.map(function(e){var t,n=e.xAccessor,r=e.yAccessor,i=e.data,o=e.key,a=function(e){var t,i;return v?(null!=(t=x(n(e)))?t:NaN)-C:(null!=(i=w(r(e)))?i:NaN)-M},s=v?function(e){var t;return null!=(t=w(r(e)))?t:NaN}:function(e){var t;return null!=(t=x(n(e)))?t:NaN},l=null!=(t=k(o))?t:0,u=v?function(e){return C+Math.min(0,a(e))}:function(e){return s(e)+l},c=v?function(e){return s(e)+l}:function(e){return M+Math.min(0,a(e))},d=v?function(e){return Math.abs(a(e))}:function(){return T},f=v?function(){return T}:function(e){return Math.abs(a(e))},h=E.find(function(e){return e.props.dataKey===o}),m=(null==h?void 0:h.props)||{},g=m.colorAccessor;return{key:o,radius:m.radius,radiusAll:m.radiusAll,radiusBottom:m.radiusBottom,radiusLeft:m.radiusLeft,radiusRight:m.radiusRight,radiusTop:m.radiusTop,bars:i.map(function(e,t){var n,r=u(e);if(!xT(r))return null;var i=c(e);if(!xT(i))return null;var a=d(e);if(!xT(a))return null;var s=f(e);return xT(s)?{key:o+"-"+t,x:r,y:i,width:a,height:s,fill:null!=(n=null==g?void 0:g(e,t))?n:p(o)}:null}).filter(function(e){return e})}});return b.createElement("g",{className:"visx-bar-group"},P.map(function(e){return e&&b.createElement(o,b$({horizontal:v,xScale:x,yScale:w},e,O,{key:e.key}))}))}bY.propTypes={children:ph().node.isRequired,padding:ph().number,sortBars:ph().func};var bG=n(10897),bX=function(e){return!!(null==e?void 0:e.includes("url("))},bK=function(e){return bX(e)?"rgba(0,0,0,0.1)":e},bQ=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"],bJ=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"];function b0(){return(b0=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function b2(e){return{x:e.x,y:e.y,width:e.width,height:e.height,fill:bK(e.fill),opacity:1}}function b4(e){var t=e.bars,n=(e.xScale,e.yScale,e.horizontal,e.radius),r=e.radiusAll,i=e.radiusTop,o=e.radiusRight,a=e.radiusBottom,s=e.radiusLeft,l=b1(e,bQ);return b.createElement(b.Fragment,null,t.map(function(e){var t=e.key,u=e.fill,c=e.x,d=e.y,f=e.width,h=e.height;return b.createElement(bG.Z,{key:t,x:c,y:d,width:f,height:h,radius:n,all:r,top:i,right:o,bottom:a,left:s},function(e){var t=e.path;return b.createElement(xq,b0({className:"visx-bar visx-bar-rounded",d:t,fill:u},l))})}))}function b3(e){var t,n,r,i=e.bars,o=e.xScale,a=e.yScale,s=e.horizontal,l=(e.radius,e.radiusAll,e.radiusTop,e.radiusRight,e.radiusBottom,e.radiusLeft,b1(e,bJ)),u=xr(i,b0({},(n=(t={horizontal:s,scale:s?o:a}).scale,r=!!t.horizontal,(0,b.useMemo)(function(){var e=xQ(n);function t(t){var n=t.x,i=t.y,o=t.width,a=t.height;return{x:r?null!=e?e:0:n,y:r?i:null!=e?e:0,width:r?0:o,height:r?a:0,fill:bK(t.fill),opacity:0}}return{unique:!0,from:t,leave:t,enter:b2,update:b2,keys:function(e){return e.key}}},[n,r])))),c=!!(l.onFocus||l.onBlur);return b.createElement(b.Fragment,null,u(function(e,t,n){var r=e.x,i=e.y,o=e.width,a=e.height,s=e.fill,u=e.opacity,d=n.key;return null==t||null==d?null:b.createElement(xE.rect,b0({key:d,tabIndex:c?0:void 0,className:"visx-bar",x:r,y:i,width:o,height:a,fill:bX(t.fill)?t.fill:s,opacity:u},l))}))}function b5(e){return null==e.radius?b.createElement(b3,e):b.createElement(b4,b0({},e,{radius:e.radius}))}function b6(){return(b6=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,b7),E=(0,b.useContext)(xM),j=E.colorScale,k=E.horizontal,S=E.theme,_=E.innerWidth,O=E.innerHeight,C=(0,b.useMemo)(function(){return xK(g,v)},[g,v]),M=(0,b.useMemo)(function(){return xK(x,y)},[x,y]),A=xA(k?x:g)||(k?void 0===O?0:O:void 0===_?0:_)/s.length*(1-Math.min(1,Math.max(0,void 0===o?.1:o))),T=(0,b.useMemo)(function(){return g?xQ(g):0},[g]),P=(0,b.useMemo)(function(){return x?xQ(x):0},[x]),N=null!=(t=null!=(n=null==j?void 0:j(l))?n:null==S?void 0:null==(r=S.colors)?void 0:r[0])?t:"#222",R=(0,b.useMemo)(function(){var e=k?0:-A/2,t=k?-A/2:0;return s.map(function(n,r){var i,o=C(n)+e;if(!xT(o))return null;var s=M(n)+t;if(!xT(s))return null;var l=k?o-T:s-P;return xT(l)?{key:""+r,x:k?T+Math.min(0,l):o,y:k?s:P+Math.min(0,l),width:k?Math.abs(l):A,height:k?A:Math.abs(l),fill:null!=(i=null==a?void 0:a(n,r))?i:N}:null}).filter(function(e){return e})},[A,N,a,s,C,M,k,T,P]),D="BARSERIES_EVENT_SOURCE-"+l,L=ba({dataKey:l,enableEvents:void 0===m||m,onBlur:u,onFocus:c,onPointerMove:d,onPointerOut:f,onPointerUp:h,onPointerDown:p,source:D,allowedSources:[xJ,D]});return b.createElement("g",{className:"vx-bar-series"},b.createElement(i,b9({bars:R,horizontal:k,xScale:g,yScale:x},L,w)))}we.propTypes={barPadding:ph().number,colorAccessor:ph().func};var wt=xX(we),wn=["colorAccessor"];function wr(){return(wr=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wn);return b.createElement(wt,wr({},n,{colorAccessor:t,BarsComponent:b5}))}var wo=n(15590);function wa(){return(wa=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wf),i=(0,b.useCallback)(function(e){return b.createElement(wd,wh({},e,{renderGlyph:n}))},[n]);return b.createElement(bu,wh({},r,{renderGlyphs:i}))}var wm=n(93353),wv=n(63962),wg=["rows","columns","GridRowsComponent","GridColumnsComponent"];function wy(){return(wy=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wg),l=(0,b.useContext)(xM),u=l.theme,c=l.xScale,d=l.yScale,f=l.margin,h=l.innerWidth,p=l.innerHeight,m=null==u?void 0:u.gridStyles;return b.createElement(b.Fragment,null,n&&d&&null!=h&&b.createElement(o,wy({left:null==f?void 0:f.left,lineStyle:m,width:h,scale:d},s)),i&&c&&null!=p&&b.createElement(a,wy({top:null==f?void 0:f.top,lineStyle:m,height:p,scale:c},s)))}wx.propTypes={rows:ph().bool,columns:ph().bool};var wb=["animationTrajectory"];function ww(){return(ww=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wb),r=(0,b.useMemo)(function(){return function(e){return b.createElement(wm.Z,ww({},e,{animationTrajectory:t}))}},[t]),i=(0,b.useMemo)(function(){return function(e){return b.createElement(wv.Z,ww({},e,{animationTrajectory:t}))}},[t]);return b.createElement(wx,ww({GridRowsComponent:r,GridColumnsComponent:i},n))}var wj=["colorAccessor","curve","data","dataKey","onBlur","onFocus","onPointerMove","onPointerOut","onPointerUp","onPointerDown","enableEvents","xAccessor","xScale","yAccessor","yScale","PathComponent"];function wk(){return(wk=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wj),j=(0,b.useContext)(xM),k=j.colorScale,S=j.theme,_=(0,b.useMemo)(function(){return xK(v,m)},[v,m]),O=(0,b.useMemo)(function(){return xK(y,g)},[y,g]),C=(0,b.useCallback)(function(e){return xT(v(m(e)))&&xT(y(g(e)))},[v,m,y,g]),M=null!=(t=null!=(n=null==k?void 0:k(s))?n:null==S?void 0:null==(r=S.colors)?void 0:r[0])?t:"#222",A="LINESERIES_EVENT_SOURCE-"+s,T=ba({dataKey:s,enableEvents:void 0===p||p,onBlur:l,onFocus:u,onPointerMove:c,onPointerOut:d,onPointerUp:f,onPointerDown:h,source:A,allowedSources:[xJ,A]}),P=!!(u||l),N=(0,b.useCallback)(function(e){var t=e.glyphs;return P?t.map(function(e){return b.createElement(b.Fragment,{key:e.key},bc(wk({},e,{color:"transparent",onFocus:T.onFocus,onBlur:T.onBlur})))}):null},[P,T.onFocus,T.onBlur]);return b.createElement(b.Fragment,null,b.createElement(xY.Z,wk({x:_,y:O,defined:C,curve:o},E),function(e){var t,n=e.path;return b.createElement(w,wk({stroke:null!=(t=null==i?void 0:i(s))?t:M,strokeWidth:2,fill:"transparent",strokeLinecap:"round"},E,{d:n(a)||""},T))}),P&&b.createElement(bl,{dataKey:s,data:a,xAccessor:m,yAccessor:g,xScale:v,yScale:y,renderGlyphs:N}))}wS.propTypes={colorAccessor:ph().func};var w_=xX(wS);function wO(){return(wO=Object.assign?Object.assign.bind():function(e){for(var t=1;twT.every(n=>e[n]===t[n]);function wN(e,t){return(wN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var wR=function(e){function t(){return e.apply(this,arguments)||this}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,wN(t,e);var n=t.prototype;return n.componentWillUnmount=function(){this.node&&document.body&&(document.body.removeChild(this.node),delete this.node)},n.render=function(){return(this.node||"undefined"==typeof document||(this.node=document.createElement("div"),null!=this.props.zIndex&&(this.node.style.zIndex=""+this.props.zIndex),document.body.append(this.node)),this.node)?e6.createPortal(this.props.children,this.node):null},t}(b.PureComponent);wR.propTypes={zIndex:ph().oneOfType([ph().number,ph().string])};var wD=["detectBounds","zIndex"],wL=["left","top","detectBounds","zIndex"];function wF(){return(wF=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var wz=["debounce","detectBounds","horizontalCrosshairStyle","glyphStyle","renderTooltip","renderGlyph","resizeObserverPolyfill","scroll","showDatumGlyph","showHorizontalCrosshair","showSeriesGlyphs","showVerticalCrosshair","snapTooltipToDatumX","snapTooltipToDatumY","verticalCrosshairStyle","zIndex"],wI=["x","y"];function wZ(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function wB(){return(wB=Object.assign?Object.assign.bind():function(e){for(var t=1;t(f.current=!0,()=>void(f.current=!1)));let[h,p,m]=(0,b.useMemo)(()=>{let e=()=>{if(!u.current.element)return;let{left:e,top:t,width:n,height:r,bottom:i,right:a,x:s,y:c}=u.current.element.getBoundingClientRect(),d={left:e,top:t,width:n,height:r,bottom:i,right:a,x:s,y:c};u.current.element instanceof HTMLElement&&o&&(d.height=u.current.element.offsetHeight,d.width=u.current.element.offsetWidth),Object.freeze(d),f.current&&!wP(u.current.lastBounds,d)&&l(u.current.lastBounds=d)};return[e,d?wA()(e,d):e,c?wA()(e,c):e]},[l,o,c,d]);function v(){u.current.scrollContainers&&(u.current.scrollContainers.forEach(e=>e.removeEventListener("scroll",m,!0)),u.current.scrollContainers=null),u.current.resizeObserver&&(u.current.resizeObserver.disconnect(),u.current.resizeObserver=null)}function g(){u.current.element&&(u.current.resizeObserver=new a(m),u.current.resizeObserver.observe(u.current.element),r&&u.current.scrollContainers&&u.current.scrollContainers.forEach(e=>e.addEventListener("scroll",m,{capture:!0,passive:!0})))}return t=!!r,(0,b.useEffect)(()=>{if(t)return window.addEventListener("scroll",m,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",m,!0)},[m,t]),(0,b.useEffect)(()=>(window.addEventListener("resize",p),()=>void window.removeEventListener("resize",p)),[p]),(0,b.useEffect)(()=>{v(),g()},[r,m,p]),(0,b.useEffect)(()=>v,[]),[e=>{e&&e!==u.current.element&&(v(),u.current.element=e,u.current.scrollContainers=function e(t){let n=[];if(!t||t===document.body)return n;let{overflow:r,overflowX:i,overflowY:o}=window.getComputedStyle(t);return[r,i,o].some(e=>"auto"===e||"scroll"===e)&&n.push(t),[...n,...e(t.parentElement)]}(e),g())},s,h]}(wV(ei,wD)))[0],ec=el[1],ed=el[2],ef=(0,b.useMemo)(function(){return function(e){var t=e.left,n=e.top,r=e.detectBounds,i=e.zIndex,o=wV(e,wL),a=null==i?es:i,s=(null==r?ea:r)?p$:pV,l=(void 0===t?0:t)+(ec.left||0)+window.scrollX,u=(void 0===n?0:n)+(ec.top||0)+window.scrollY;return b.createElement(wR,{zIndex:a},b.createElement(s,wF({left:l,top:u},o)))}},[ea,es,ec.left,ec.top]),{containerRef:eu,containerBounds:ec,forceRefreshBounds:ed,TooltipInPortal:ef}),L=D.containerRef,F=D.TooltipInPortal,V=D.forceRefreshBounds,z=(0,b.useCallback)(function(e){var t;L(null!=(t=null==e?void 0:e.parentElement)?t:null)},[L]),I=null!=R&&R.tooltipOpen?o(wB({},R,{colorScale:_})):null,Z=(null==R?void 0:R.tooltipOpen)&&null!=I,B=(0,b.useRef)(!1);(0,b.useEffect)(function(){Z&&!B.current&&V(),B.current=Z},[Z,V]);var H=null==R?void 0:R.tooltipLeft,U=null==R?void 0:R.tooltipTop,W=T?xA(T):0,q=P?xA(P):0,$=(0,b.useCallback)(function(e,t){var n,r,i=null==N?void 0:N.get(e),o=null==i?void 0:i.xAccessor,a=null==i?void 0:i.yAccessor;return{left:T&&o?null!=(n=Number(T(o(t)))+W/2)?n:0:void 0,top:P&&a?null!=(r=Number(P(a(t)))+q/2)?r:0:void 0}},[N,W,q,T,P]),Y=null==R?void 0:null==(eh=R.tooltipData)?void 0:eh.nearestDatum,G=null!=(ep=null==Y?void 0:Y.key)?ep:"";if(Z&&Y&&(y||w)){var X=$(G,Y.datum),K=X.left,Q=X.top;H=y&&xT(K)?K:H,U=w&&xT(Q)?Q:U}var J=[];if(Z&&(void 0!==c&&c||p)){var ee=Number(null!=(e_=null==i?void 0:i.radius)?e_:4);if(p)Object.values(null!=(eO=null==R?void 0:null==(eC=R.tooltipData)?void 0:eC.datumByKey)?eO:{}).forEach(function(e){var t,n,r,o=e.key,a=e.datum,s=e.index,l=null!=(t=null!=(n=null==_?void 0:_(o))?n:null==O?void 0:null==(r=O.htmlLabel)?void 0:r.color)?t:"#222",u=$(o,a),c=u.left,d=u.top;xT(c)&&xT(d)&&J.push({key:o,color:l,datum:a,index:s,size:ee,x:c,y:d,glyphStyle:i,isNearestDatum:!!Y&&Y.key===o})});else if(Y){var et=$(G,Y.datum),en=et.left,er=et.top;if(xT(en)&&xT(er)){var ei,eo,ea,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,ex,eb,ew,eE,ej,ek,eS,e_,eO,eC,eM,eA,eT,eP,eN,eR,eD=null!=(eM=null!=(eA=null!=(eT=null!=(eP=G&&(null==_?void 0:_(G)))?eP:null)?eT:null==O?void 0:null==(eN=O.gridStyles)?void 0:eN.stroke)?eA:null==O?void 0:null==(eR=O.htmlLabel)?void 0:eR.color)?eM:"#222";J.push({key:G,color:eD,datum:Y.datum,index:Y.index,size:ee,x:en,y:er,glyphStyle:i,isNearestDatum:!0})}}}return b.createElement(b.Fragment,null,b.createElement("svg",{ref:z,style:wU}),Z&&b.createElement(b.Fragment,null,v&&b.createElement(F,{className:"visx-crosshair visx-crosshair-vertical",left:H,top:null==A?void 0:A.top,offsetLeft:0,offsetTop:0,detectBounds:!1,style:wH},b.createElement("svg",{width:"1",height:C,overflow:"visible"},b.createElement("line",wB({x1:0,x2:0,y1:0,y2:C,strokeWidth:1.5,stroke:null!=(em=null!=(ev=null==O?void 0:null==(eg=O.gridStyles)?void 0:eg.stroke)?ev:null==O?void 0:null==(ey=O.htmlLabel)?void 0:ey.color)?em:"#222"},E)))),f&&b.createElement(F,{className:"visx-crosshair visx-crosshair-horizontal",left:null==A?void 0:A.left,top:U,offsetLeft:0,offsetTop:0,detectBounds:!1,style:wH},b.createElement("svg",{width:M,height:"1",overflow:"visible"},b.createElement("line",wB({x1:0,x2:M,y1:0,y2:0,strokeWidth:1.5,stroke:null!=(ex=null!=(eb=null==O?void 0:null==(ew=O.gridStyles)?void 0:ew.stroke)?eb:null==O?void 0:null==(eE=O.htmlLabel)?void 0:eE.color)?ex:"#222"},r)))),J.map(function(e,t){var n=e.x,r=e.y,i=wZ(e,wI);return b.createElement(F,{key:t,className:"visx-tooltip-glyph",left:n,top:r,offsetLeft:0,offsetTop:0,detectBounds:!1,style:wH},b.createElement("svg",{overflow:"visible"},s(wB({x:0,y:0},i))))}),b.createElement(F,wB({left:H,top:U,style:wB({},pF,{background:null!=(ej=null==O?void 0:O.backgroundColor)?ej:"white",boxShadow:"0 1px 2px "+(null!=O&&null!=(ek=O.htmlLabel)&&ek.color?(null==O?void 0:null==(eS=O.htmlLabel)?void 0:eS.color)+"55":"#22222255")},null==O?void 0:O.htmlLabel)},k),I)))}function wY(e){var t=(0,b.useContext)(x0);return null!=t&&t.tooltipOpen?b.createElement(w$,e):null}function wG(e){var t=e.children,n=(0,b.useMemo)(function(){var e;return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map(function(e){e(n)}),(e.get("*")||[]).slice().map(function(e){e(t,n)})}}},[]);return b.createElement(x1.Provider,{value:n},t)}function wX(){return(wX=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(t,pN);return pR({},e(n),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:e.tooltipLeft,tooltipTop:e.tooltipTop,tooltipData:e.tooltipData})},[r]),o=(0,b.useCallback)(function(){return r({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})},[r]),{tooltipOpen:n.tooltipOpen,tooltipLeft:n.tooltipLeft,tooltipTop:n.tooltipTop,tooltipData:n.tooltipData,updateTooltip:r,showTooltip:i,hideTooltip:o}),c=u.tooltipOpen,d=u.tooltipLeft,f=u.tooltipTop,h=u.tooltipData,p=u.updateTooltip,m=u.hideTooltip,v=(0,b.useRef)(null),g=(0,b.useRef)(function(e){var t=e.svgPoint,n=e.index,r=e.key,i=e.datum,o=e.distanceX,a=e.distanceY;v.current&&(v.current.cancel(),v.current=null);var s=Math.sqrt(Math.pow(xT(o)?o:1/0,2)+Math.pow(xT(a)?a:1/0,2));p(function(e){var o,a,l,u=e.tooltipData,c=null!=u&&u.nearestDatum&&xT(u.nearestDatum.distance)?u.nearestDatum.distance:1/0;return{tooltipOpen:!0,tooltipLeft:null==t?void 0:t.x,tooltipTop:null==t?void 0:t.y,tooltipData:{nearestDatum:(null!=(o=null==u?void 0:null==(a=u.nearestDatum)?void 0:a.key)?o:"")!==r&&c0&&o>0&&y({width:m,height:o,margin:l})},[y,m,o,l]);var E=x4({source:xJ});return(bo({dataKey:"nearest"===(void 0===h?"nearest":h)?bi:br,onPointerMove:u,onPointerOut:c,onPointerUp:d,onPointerDown:f,allowedSources:Ee}),y)?null==m||null==o?b.createElement(m6.Z,null,function(t){return b.createElement(Et,w7({},e,{width:null==e.width?t.width:e.width,height:null==e.height?t.height:e.height}))}):null==x?b.createElement(wK,null,b.createElement(Et,e)):null==w?b.createElement(wG,null,b.createElement(Et,e)):m>0&&o>0?b.createElement("svg",{width:m,height:o,"aria-label":void 0===t?"XYChart":t},i,r&&b.createElement("rect",w7({x:l.left,y:l.top,width:m-l.left-l.right,height:o-l.top-l.bottom,fill:"transparent"},E))):null:v&&g?b.createElement(w8,{xScale:v,yScale:g,theme:p,initialDimensions:{width:m,height:o,margin:l},horizontal:a},b.createElement(Et,e)):(console.warn("[@visx/xychart] XYChart: When no DataProvider is available in context, you must pass xScale & yScale config to XYChart."),null)}function En(e){return b.createElement(bp,e)}function Er(e){return b.createElement(bL,e)}function Ei(){return(Ei=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function Ec(e){var t=e.bars,n=(e.horizontal,e.xScale,e.yScale,e.radius),r=e.radiusAll,i=e.radiusTop,o=e.radiusRight,a=e.radiusBottom,s=e.radiusLeft,l=Eu(e,Ea),u=!!(l.onFocus||l.onBlur);return b.createElement(b.Fragment,null,t.map(function(e){var t=e.key,c=Eu(e,Es);return null==n?b.createElement("rect",El({key:t,className:"visx-bar",tabIndex:u?0:void 0},c,l)):b.createElement(bG.Z,El({key:t,className:"visx-bar",tabIndex:u?0:void 0,radius:n,all:r,top:i,right:o,bottom:a,left:s},c,l))}))}function Ed(){return(Ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Eh);return b.createElement(wt,Ep({},n,{colorAccessor:t,BarsComponent:Ec}))};function Ev(){return(Ev=Object.assign?Object.assign.bind():function(e){for(var t=1;tr(e),className:"flex flex-col gap-1",children:[(0,x.jsx)(dX,{value:"line",children:"Line"}),(0,x.jsx)(dX,{disabled:p||m,value:"areastack",children:"Area Stack"}),(0,x.jsx)(dX,{disabled:p||m,value:"barstack",children:"Bar Stack"}),(0,x.jsx)(dX,{disabled:p,value:"area",children:"Area"}),(0,x.jsx)(dX,{disabled:p,value:"bargroup",children:"Bar Group"})]})]}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsx)(tq,{weight:"semibold",children:"Stack series offset"}),(0,x.jsxs)(dK,{value:l,onValueChange:e=>u(e),className:"flex flex-col gap-1",children:[(0,x.jsxs)(dX,{disabled:!s,value:"none",children:["None",(0,x.jsx)(fb,{children:"zero-baseline"})]}),(0,x.jsxs)(dX,{disabled:!s,value:"diverging",children:["Diverging",(0,x.jsx)(fb,{children:"non zero-baseline"})]}),(0,x.jsxs)(dX,{disabled:!s,value:"expand",children:["Expand",(0,x.jsx)(fb,{children:"values sum to 1"})]}),(0,x.jsxs)(dX,{disabled:!s,value:"wiggle",children:["Wiggle",(0,x.jsx)(fb,{children:"stream graph"})]})]})]}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsx)(tq,{weight:"semibold",children:"Curve shape"}),(0,x.jsxs)(dK,{value:i,onValueChange:e=>o(e),className:"flex flex-col gap-1",children:[(0,x.jsx)(dX,{disabled:!a,value:"linear",children:"Linear"}),(0,x.jsx)(dX,{disabled:!a,value:"cardinal",children:"Cardinal"}),(0,x.jsx)(dX,{disabled:!a,value:"step",children:"Step"})]})]}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsx)(tq,{weight:"semibold",children:"Axes"}),(0,x.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,x.jsxs)(dK,{value:c,onValueChange:e=>d(e),className:"flex flex-col gap-1",children:[(0,x.jsx)(dX,{value:"bottom",children:"Bottom"}),(0,x.jsx)(dX,{value:"top",children:"Top"})]}),(0,x.jsxs)(dK,{value:f,onValueChange:e=>h(e),className:"flex flex-col gap-2",children:[(0,x.jsx)(dX,{value:"left",children:"Left"}),(0,x.jsx)(dX,{value:"right",children:"Right"})]})]})]})]})})}let EA=(0,b.forwardRef)((e,t)=>{let{className:n}=e;return(0,x.jsxs)("div",{ref:t,className:(0,ea.cx)("flex gap-1 items-center",n),children:[(0,x.jsx)(ET,{}),(0,x.jsx)(ET,{}),(0,x.jsx)(ET,{})]})});function ET(){return(0,x.jsx)("div",{className:"w-1 h-1 bg-slate-400 dark:bg-slate-200 rounded-full animate-pulselight [&:nth-child(2)]:animation-delay-500 [&:nth-child(3)]:animation-delay-1000"})}function EP(e){let{id:t,height:n,data:r,config:i,actionsLeft:o,isLoading:a,actionsRight:s,emptyState:l,variant:u="panel",allowConfiguration:c=!0}=e,d=function(e,t,n){let[r,i]=(0,b.useState)(!(0,fm.Tb)()&&!n.disableAnimations),{resolvedTheme:o}=(0,ps.F)(),a=(0,b.useMemo)(()=>"dark"===o?vS:vk,[o]),[s,l]=(0,b.useState)("center"),[u,c]=(0,b.useState)([!1,!1]),[d,f]=u,[h,p]=(0,b.useState)("bottom"),[m,v]=(0,b.useState)("right"),[g,y]=(0,b.useState)(!0),[w,E]=(0,b.useState)(!0),[j,k]=(0,b.useState)(!1),[S,_]=(0,b.useState)(!0),[O,C]=(0,b.useState)(!0),M=n.chartType||"areastack",A=n.curveType||"linear",T=n.stackOffset||"none",[P,N]=(0,b.useState)(M),[R,D]=(0,b.useState)(A),L=["line","area","areastack"].includes(P),F=["barstack","areastack"].includes(P),[V,z]=(0,b.useState)(T),I=a.xyChartTheme.gridStyles.stroke,[Z,B]=(0,b.useState)(!1),[H,U]=(0,b.useState)("star"),W=(0,b.useCallback)(e=>{let{x:t,y:n,size:r,color:i,onPointerMove:o,onPointerOut:a,onPointerUp:s,isNearestDatum:l}=e,u={onPointerMove:o,onPointerOut:a,onPointerUp:s};return"star"===H?(0,x.jsx)(vs,{left:t,top:n,stroke:I,fill:i,size:10*r,...u}):"circle"===H?(0,x.jsx)(vc,{left:t,top:n,stroke:I,fill:i,r:r,...u}):"cross"===H?(0,x.jsx)(vp,{left:t,top:n,stroke:I,fill:i,size:10*r,...u}):(0,x.jsx)("text",{x:t,y:n,dx:"-0.75em",dy:"0.25em",fontSize:14,...u,children:l?"\uD83C\uDF4D":"\uD83C\uDF4C"})},[H,I]),q=(0,b.useMemo)(()=>{if(t.sort((e,t)=>e.timestamp>t.timestamp?1:-1),0===t.length)return[];let e=t[t.length-1];return"barstack"!==P&&"bargroup"!==P?[...t,{...e,timestamp:e.timestamp+EO(1)}]:t},[P,t]),$=(0,b.useMemo)(()=>{if(q.length<2)return 0;let e=[q[0].timestamp,q[q.length-1].timestamp],t=new Date().getTime();return t>e[0]&&tObject.keys(Ek()(t[0],"timestamp")),[t]),G=(0,b.useMemo)(()=>n.enabledGraph||Y,[Y,n]),X=(0,b.useMemo)(()=>n.enabledTip||Y,[Y,n]),K=(0,b.useMemo)(()=>({x:Y.reduce((e,t)=>({...e,[t]:e=>e.timestamp}),{}),y:Y.reduce((e,t)=>({...e,[t]:e=>e[t]}),{}),date:e=>e.timestamp}),[Y]),Q=(0,b.useMemo)(()=>({x:{type:"band",paddingInner:L?1:.3},y:{type:"linear"}}),[L]),J=(0,b.useMemo)(()=>"cardinal"===R&&vm.ZP||"step"===R&&mg.ZP||vv.Z,[R]),ee=(0,b.useMemo)(()=>({top:30,bottom:"top"===h?0:20,right:"right"===m?60:0,left:"left"===m?60:0}),[h,m]);return{id:e,accessors:K,animationTrajectory:s,config:n,scales:Q,data:q,curve:J,chartData:t,numTicks:4,isLine:L,isStack:F,todayOffset:$,initialChartType:M,initialCurveType:A,initialStackOffset:T,chartType:P,curveType:R,keys:Y,enabledGraph:G,enabledTip:X,renderBarGroup:"bargroup"===P,renderBarStack:"barstack"===P,enableTooltipGlyph:Z,renderTooltipGlyph:W,renderAreaSeries:"area"===P,renderAreaStack:"areastack"===P,renderLineSeries:"line"===P,sharedTooltip:O,showGridColumns:f,showGridRows:d,showHorizontalCrosshair:j,showTooltip:g,showVerticalCrosshair:w,snapTooltipToDatum:!F&&S,stackOffset:V,theme:a,margin:ee,xAxisOrientation:h,yAxisOrientation:m,setUseAnimatedComponents:i,setAnimationTrajectory:l,setGridProps:c,setXAxisOrientation:p,setYAxisOrientation:v,setShowTooltip:y,setShowVerticalCrosshair:E,setShowHorizontalCrosshair:k,setSnapTooltipToDatum:_,setSharedTooltip:C,setChartType:N,setCurveType:D,setStackOffset:z,setEnableTooltipGlyph:B,setTooltipGlyphComponent:U,...r?{Annotation:xI,AreaSeries:bv,AreaStack:bV,Axis:bU,BarGroup:b8,BarSeries:wi,BarStack:wu,GlyphSeries:wp,Grid:wE,LineSeries:wC,Tooltip:wY,XYChart:Et}:{AreaSeries:En,AreaStack:Er,Axis:Eo,BarGroup:Ef,BarSeries:Em,BarStack:Eg,Grid:Ew,LineSeries:EE,Tooltip:wY,XYChart:Et}}}(t,r,i),f=(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)("div",{className:"flex gap-2 absolute top-3 right-4",children:[s,"panel"===u&&c&&(0,x.jsx)(EM,{...d})]}),(0,x.jsx)("div",{className:"flex gap-2 absolute top-3 left-4",children:o}),(0,x.jsx)(m6.Z,{children:e=>{let{width:t,height:n}=e;return a?(0,x.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,x.jsx)(EA,{className:"scale-150"})}):0===r.length&&l?l:(0,x.jsx)(m9,{...d,width:t,height:n})}})]});return"panel"===u?(0,x.jsx)(tG,{className:"relative p-px",style:{height:n},children:f}):(0,x.jsx)("div",{className:"relative p-px",style:{height:n},children:f})}/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */function EN(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function ER(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||E7,je=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,jt=/\/\*[^]*?\*\/|\s\s+|\n/g,jn=(e,t)=>{let n="",r="",i="";for(let o in e){let a=e[o];"@"==o[0]?"i"==o[1]?n=o+" "+a+";":r+="f"==o[1]?jn(a,o):o+"{"+jn(a,"k"==o[1]?"":t)+"}":"object"==typeof a?r+=jn(a,t?t.replace(/([^,])+/g,e=>o.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):o):null!=a&&(o=o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=jn.p?jn.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},jr={},ji=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+ji(e[n]);return t}return e},jo=(e,t,n,r,i)=>{var o;let a=ji(e),s=jr[a]||(jr[a]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(a));if(!jr[s]){let t=a!==e?e:(e=>{let t,n=[{}];for(;t=je.exec(e.replace(jt,""));)t[4]?n.shift():t[3]?n.unshift(n[0][t[3]]=n[0][t[3]]||{}):n[0][t[1]]=t[2];return n[0]})(e);jr[s]=jn(i?{["@keyframes "+s]:t}:t,n?"":"."+s)}return o=jr[s],-1==t.data.indexOf(o)&&(t.data=r?o+t.data:t.data+o),s},ja=(e,t,n)=>e.reduce((e,r,i)=>{let o=t[i];if(o&&o.call){let e=o(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":jn(e,""):!1===e?"":e}return e+r+(null==o?"":o)},"");function js(e){let t=this||{},n=e.call?e(t.p):e;return jo(n.unshift?n.raw?ja(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,E9(t.target),t.g,t.o,t.k)}js.bind({g:1});let jl,ju,jc,jd=js.bind({k:1});function jf(e,t){let n=this||{};return function(){let r=arguments;function i(o,a){let s=Object.assign({},o),l=s.className||i.className;n.p=Object.assign({theme:ju&&ju()},s),n.o=/ *go\d+/.test(l),s.className=js.apply(n,r)+(l?" "+l:""),t&&(s.ref=a);let u=e;return e[0]&&(u=s.as||e,delete s.as),jc&&u[0]&&jc(s),jl(u,s)}return t?t(i):i}}function jh(){return(jh=Object.assign||function(e){for(var t=1;t-1&&jE.splice(e,1)}},[n]);var i=n.toasts.map(function(t){var n,r,i;return jh({},e,e[t.type],t,{duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==(r=e)?void 0:r.duration)||jS[t.type],style:jh({},e.style,null==(i=e[t.type])?void 0:i.style,t.style)})});return jh({},n,{toasts:i})},jO=function(e){return function(t,n){var r,i=(void 0===(r=e)&&(r="blank"),jh({createdAt:Date.now(),visible:!0,type:r,ariaProps:{role:"status","aria-live":"polite"},message:t,pauseDuration:0},n,{id:(null==n?void 0:n.id)||jv()}));return jk({type:y.UPSERT_TOAST,toast:i}),i.id}},jC=function(e,t){return jO("blank")(e,t)};jC.error=jO("error"),jC.success=jO("success"),jC.loading=jO("loading"),jC.custom=jO("custom"),jC.dismiss=function(e){jk({type:y.DISMISS_TOAST,toastId:e})},jC.remove=function(e){return jk({type:y.REMOVE_TOAST,toastId:e})},jC.promise=function(e,t,n){var r=jC.loading(t.loading,jh({},n,null==n?void 0:n.loading));return e.then(function(e){return jC.success(jm(t.success,e),jh({id:r},n,null==n?void 0:n.success)),e}).catch(function(e){jC.error(jm(t.error,e),jh({id:r},n,null==n?void 0:n.error))}),e};var jM=function(e){var t=j_(e),n=t.toasts,r=t.pausedAt;(0,b.useEffect)(function(){if(!r){var e=Date.now(),t=n.map(function(t){if(t.duration!==1/0){var n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(n<0){t.visible&&jC.dismiss(t.id);return}return setTimeout(function(){return jC.dismiss(t.id)},n)}});return function(){t.forEach(function(e){return e&&clearTimeout(e)})}}},[n,r]);var i=(0,b.useMemo)(function(){return{startPause:function(){jk({type:y.START_PAUSE,time:Date.now()})},endPause:function(){r&&jk({type:y.END_PAUSE,time:Date.now()})},updateHeight:function(e,t){return jk({type:y.UPDATE_TOAST,toast:{id:e,height:t}})},calculateOffset:function(e,t){var r,i=t||{},o=i.reverseOrder,a=void 0!==o&&o,s=i.gutter,l=void 0===s?8:s,u=i.defaultPosition,c=n.filter(function(t){return(t.position||u)===(e.position||u)&&t.height}),d=c.findIndex(function(t){return t.id===e.id}),f=c.filter(function(e,t){return t * {\n pointer-events: auto;\n }\n"]);return j9=function(){return e},e}c=b.createElement,jn.p=void 0,jl=c,ju=void 0,jc=void 0;var ke=function(e,t){var n=e.includes("top"),r=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return jh({left:0,right:0,display:"flex",position:"absolute",transition:jg()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY("+t*(n?1:-1)+"px)"},n?{top:0}:{bottom:0},r)},kt=js(j9()),kn=function(e){var t=e.reverseOrder,n=e.position,r=void 0===n?"top-center":n,i=e.toastOptions,o=e.gutter,a=e.children,s=e.containerStyle,l=e.containerClassName,u=jM(i),c=u.toasts,d=u.handlers;return(0,b.createElement)("div",{style:jh({position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none"},s),className:l,onMouseEnter:d.startPause,onMouseLeave:d.endPause},c.map(function(e){var n,i=e.position||r,s=ke(i,d.calculateOffset(e,{reverseOrder:t,gutter:o,defaultPosition:r})),l=e.height?void 0:(n=function(t){d.updateHeight(e.id,t.height)},function(e){e&&setTimeout(function(){n(e.getBoundingClientRect())})});return(0,b.createElement)("div",{ref:l,className:e.visible?kt:"",key:e.id,style:s},"custom"===e.type?jm(e.message,e):a?a(e):(0,b.createElement)(j7,{toast:e,position:i}))}))};let kr=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};jC((0,x.jsx)(tq,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200)):e}),ka(t))},ki=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};jC.success((0,x.jsx)(tq,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200),"..."):e}),ka(t))},ko=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};jC.error((0,x.jsx)(tq,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200),"..."):e}),ka(t))};function ka(){let{className:e,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{position:"top-center",duration:6e3,className:(0,ea.cx)(tY(),"font-sans font-normal","text-gray-1100 dark:text-white","max-w-[800px] overflow-hidden text-ellipsis","[&>div]:overflow-hidden","[&>div]:flex-1",e),success:{icon:(0,x.jsx)("div",{className:"!flex-none w-5",children:(0,x.jsx)(s6.tEK,{className:"w-5 text-green-600"})})},error:{icon:(0,x.jsx)("div",{className:"!flex-none w-5",children:(0,x.jsx)(s6.Jsc,{className:"w-5 text-red-600"})})},...t}}function ks(){return(0,x.jsx)(kn,{toastOptions:ka()})}let kl=(e,t)=>{let n=t?"Copied ".concat(t," to clipboard"):"Copied to clipboard";kr(n),function(e){EN(this,void 0,void 0,function(){return ER(this,function(t){var n;if(EJ)return ED("Using `navigator.clipboard.writeText()`."),[2,EJ(e)];if(!function(e){return EN(this,void 0,void 0,function(){var t;return ER(this,function(n){var r,i,o,a,s,l,u,c;if(t="text/plain"in e,"undefined"==typeof ClipboardEvent&&void 0!==E1.clipboardData&&void 0!==E1.clipboardData.setData){if(!t)throw Error("No `text/plain` value was specified.");if(r=e["text/plain"],E1.clipboardData.setData("Text",r))return[2,!0];throw Error("Copying failed, possibly because the user rejected it.")}return E3(e)?(ED("regular execCopy worked"),[2,!0]):navigator.userAgent.indexOf("Edge")>-1?(ED('UA "Edge" => assuming success'),[2,!0]):E5(document.body,e)?(ED("copyUsingTempSelection worked"),[2,!0]):((i=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),i.textContent="temporary element",document.body.appendChild(i),o=E5(i,e),document.body.removeChild(i),o)?(ED("copyUsingTempElem worked"),[2,!0]):(a=e["text/plain"],ED("copyTextUsingDOM"),(s=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),l=s,s.attachShadow&&(ED("Using shadow DOM."),l=s.attachShadow({mode:"open"})),(u=document.createElement("span")).innerText=a,l.appendChild(u),document.body.appendChild(s),E6(u),c=document.execCommand("copy"),E8(),document.body.removeChild(s),c)?(ED("copyTextUsingDOM worked"),[2,!0]):[2,!1]})})}(((n={})["text/plain"]=e,n)))throw Error("writeText() failed");return[2]})})}(e)};function ku(e,t){return e?t&&e.length>t?"".concat(e.slice(0,t),"..."):"".concat(e.slice(0,t)):""}function kc(e){return(e||"").replace(/^addr:/,"").replace(/^txid:/,"").replace(/^fcid:/,"").replace(/^h:/,"").replace(/^scoid:/,"").replace(/^sfoid:/,"").replace(/^key:/,"")}function kd(e,t,n){return t?"".concat(e," ").concat(ku(t,n)):"".concat(e)}function kf(e,t){return"miner"===t?"minerPayout":"siafundClaim"===t?"siafundClaim":"contract"===t?"contractPayout":"foundation"===t?"foundationSubsidy":e.storageProofs&&e.storageProofs.length>0?"storageProof":e.fileContracts&&e.fileContracts.length>0&&e.fileContractRevisions&&e.fileContractRevisions.length>0?"contractRenewal":e.fileContractRevisions&&e.fileContractRevisions.length>0?"contractRevision":e.fileContracts&&e.fileContracts.length>0?"contractFormation":e.arbitraryData&&e.arbitraryData.length>0&&0===atob(e.arbitraryData[0]).indexOf("HostAnnouncement")?"hostAnnouncement":e.siafundOutputs&&e.siafundOutputs.length>0?"siafund":e.siacoinOutputs&&e.siacoinOutputs.length>0?"siacoin":void 0}let kh={transaction:"transaction",contract:"contract",block:"block",output:"output",address:"address",hostIp:"host",hostPublicKey:"host",ip:"IP"},kp={transaction:"transaction ID",contract:"contract ID",block:"block",output:"output ID",address:"address",hostIp:"host address",hostPublicKey:"host public key",ip:"IP"},km={siacoin:"siacoin transfer",siafund:"siafund transfer",contractFormation:"contract formation",contractRenewal:"contract renewal",contractRevision:"contract revision",contractPayout:"contract payout",storageProof:"storage proof",minerPayout:"miner payout",siafundClaim:"siafund claim",foundationSubsidy:"foundation subsidy",hostAnnouncement:"host announcement"};function kv(e){return e?kh[e]:void 0}function kg(e){return e?km[e]:void 0}function ky(e){let{value:t,displayValue:n,type:r,label:i,href:o,maxLength:a,size:s,scaleSize:l,weight:u,color:c="contrast",className:d,siascanUrl:f}=e,h=i||(r?kp[r]:void 0),p=a||(r&&["ip","hostIp"].includes(r)?20:12),m=kc(t),v=n||m,g="".concat(null==v?void 0:v.slice(0,p)).concat(((null==v?void 0:v.length)||0)>p?"...":"");return(0,x.jsxs)("div",{className:(0,ea.cx)("flex items-center",d),children:[o?(0,x.jsx)(cK,{href:o,underline:"hover",size:s,scaleSize:l,color:c,weight:u,ellipsis:!0,children:g}):(0,x.jsx)(tq,{size:s,scaleSize:l,color:c,weight:u,ellipsis:!0,children:g}),(0,x.jsx)("div",{className:"ml-1 flex items-center",children:(0,x.jsx)(kx,{cleanValue:m,label:h,size:s,siascanUrl:f,type:r})})]})}function kx(e){var t;let{size:n,cleanValue:r,label:i,siascanUrl:o,type:a}=e;return(0,x.jsxs)(cT,{trigger:(0,x.jsx)(s5,{size:"none",variant:"ghost",children:(0,x.jsx)(s6.EMN,{className:"10"===n?"scale-75":"scale-90"})}),contentProps:{align:"end"},children:[(0,x.jsxs)(cP,{onSelect:e=>{kl(r,i)},onClick:e=>{e.stopPropagation()},children:[(0,x.jsx)(cR,{children:(0,x.jsx)(s6.olJ,{})}),"Copy to clipboard"]}),o&&a&&(t=a)&&["hostIp","hostPublicKey","contract","address","transaction","block"].includes(t)&&(0,x.jsx)(cK,{target:"_blank",href:function(e,t,n){switch(t){case"hostIp":case"hostPublicKey":return"".concat(e,"/host/").concat(n);case"contract":return"".concat(e,"/contract/").concat(n);case"transaction":return"".concat(e,"/tx/").concat(n);case"address":return"".concat(e,"/address/").concat(n);case"block":return"".concat(e,"/block/").concat(n);default:return""}}(o,a,r),className:"block w-full",underline:"none",children:(0,x.jsxs)(cP,{onClick:e=>{e.stopPropagation()},children:[(0,x.jsx)(cR,{children:(0,x.jsx)(s6.V8Q,{})}),"View on Siascan"]})})]})}function kb(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:o="change"}=e,a=(0,m0.yF)(String(t),{units:"SF"});return(0,x.jsx)(s4,{content:(i?"".concat(i," "):"")+a,children:(0,x.jsxs)(tq,{size:n,scaleSize:r,weight:"medium",font:"mono",color:"change"===o?t>0?"green":t<0?"red":"subtle":"contrast",children:["change"===o&&t>0?"+":"",a]})})}function kw(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:o="change",color:a,fixed:s=3,dynamicUnits:l=!0,hastingUnits:u=!0,extendedSuffix:c,showTooltip:d=!0}=e,f=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",h=a||("change"===o?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast"),p=(0,x.jsxs)(tq,{size:n,scaleSize:r,weight:"medium",font:"mono",ellipsis:!0,color:h,children:["change"===o?"".concat(f).concat((0,m0.Vz)(t.absoluteValue(),{fixed:s,dynamicUnits:l})):(0,m0.Vz)(t,{fixed:s,dynamicUnits:l,hastingUnits:u}),(0,x.jsx)(tq,{size:"20",weight:"medium",font:"mono",ellipsis:!0,color:"subtle",children:c?"".concat(c):""})]});return d?(0,x.jsx)(s4,{content:(i?"".concat(i," "):"")+(0,m0.Vz)(t,{fixed:16,dynamicUnits:!1}),children:p}):p}function kE(e){let{sc:t,size:n,scaleSize:r,color:i,tooltip:o="",variant:a="change",fixed:s,fixedTip:l=20,showTooltip:u=!0}=e,c=(0,fv.BW)(),{settings:{currency:d}}=(0,fm.Hv)(),f=t.isZero()?"":t.isGreaterThan(0)&&"change"===a?"+":t.isLessThan(0)?"-":"",h=i||("change"===a?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast");if(!c.data)return null;let p=new(fd())(c.data.rates.sc[d.id]||1).times(t).div(1e24),m=void 0!==s?s:d.fixed,v=(0,x.jsx)(tq,{size:n,scaleSize:r,weight:"medium",font:"mono",ellipsis:!0,color:h,children:"".concat(f).concat(d.prefix).concat(kj(p.absoluteValue(),m))});return u?(0,x.jsx)(s4,{content:(o?"".concat(o," "):"")+"".concat(f).concat(d.prefix).concat(kj(p.absoluteValue(),l)),children:v}):v}function kj(e,t){let[n,r]=e.toFixed(t).split("."),i=new Intl.NumberFormat().format(parseInt(n));return r?"".concat(i).concat(Intl.NumberFormat().format(1.1).charAt(1)).concat(r):i}function kk(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:o="change",fixed:a=3,fixedFiat:s,fixedTipFiat:l,dynamicUnits:u=!0,hastingUnits:c=!0,extendedSuffix:d,showTooltip:f=!0,displayBoth:h=!1,displayBothDirection:p="column"}=e,{settings:{currencyDisplay:m}}=(0,fm.Hv)(),v=(0,fv.BW)(),g=(0,b.useMemo)(()=>(0,x.jsx)(kw,{value:t,size:n,color:h&&"row"===p&&"bothPreferFiat"===m?"subtle":void 0,scaleSize:r,tooltip:i,variant:o,fixed:a,dynamicUnits:u,hastingUnits:c,extendedSuffix:d,showTooltip:f}),[t,n,r,i,o,a,u,c,d,f,m,h,p]),y=(0,b.useMemo)(()=>(0,x.jsx)(kE,{sc:t,size:n,color:h&&"row"===p&&"bothPreferSc"===m?"subtle":void 0,scaleSize:r,tooltip:i,variant:o,fixed:s,fixedTip:l,dynamicUnits:u,hastingUnits:c,extendedSuffix:d,showTooltip:f}),[t,n,r,i,o,s,l,u,c,d,f,m,h,p]);return"sc"!==m&&v.data?"fiat"===m?y:"bothPreferSc"===m?h?(0,x.jsxs)("div",{className:"column"===p?"flex flex-col items-end":"flex gap-1",children:[g,y]}):g:"bothPreferFiat"===m?h?(0,x.jsxs)("div",{className:"column"===p?"flex flex-col items-end":"flex gap-1",children:[y,g]}):y:g:g}function kS(e){let{value:t,size:n="14",weight:r="semibold",tooltip:i="",variant:o="change",color:a,format:s}=e,l=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",u="change"===o?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast";return(0,x.jsx)(s4,{content:(i?"".concat(i," "):"")+s(t),children:(0,x.jsx)(tq,{size:n,weight:r,font:"mono",ellipsis:!0,color:a||u,children:"change"===o?"".concat(l).concat(s(t.absoluteValue())):s(t)})})}var k_=n(61258),kO=n.n(k_);function kC(e){let{skeletonCount:t=10}=e;return(0,x.jsx)(x.Fragment,{children:kO()(t,e=>(0,x.jsxs)("div",{className:(0,ea.cx)("relative flex gap-4 p-3.5",(0,ea.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:[(0,x.jsx)(f_,{className:"w-[60px] h-[50px]"}),(0,x.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,x.jsx)(f_,{className:"w-[90%] h-[20px]"}),(0,x.jsx)(f_,{className:"w-[140px] h-[14px]"})]})]},e))})}var kM=n(66700),kA=n(19785);function kT(e,t){(0,kA.Z)(2,arguments);var n=(0,kM.Z)(e),r=(0,kM.Z)(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}var kP={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},kN={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function kR(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var kD={date:kR({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:kR({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:kR({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},kL={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function kF(e){return function(t,n){var r,i=n||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=i.width?String(i.width):o;r=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=i.width?String(i.width):e.defaultWidth;r=e.values[l]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function kV(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var s=a[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var n=0;n0?"in "+r:r+" ago":r},formatLong:kD,formatRelative:function(e,t,n,r){return kL[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:kF({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:kF({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:kF({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:kF({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:kF({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(d={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(d.matchPattern);if(!n)return null;var r=n[0],i=e.match(d.parsePattern);if(!i)return null;var o=d.valueCallback?d.valueCallback(i[0]):i[0];return{value:o=t.valueCallback?t.valueCallback(o):o,rest:e.slice(r.length)}}),era:kV({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:kV({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:kV({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:kV({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:kV({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function kI(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var kZ=n(23779),kB=n.n(kZ);function kH(e){let{type:t,label:n,initials:r,href:i,src:o,shape:a}=e,s=(0,x.jsx)(lc,{interactive:!!i,fallback:r||t&&(t||n||"").split(" ").map(e=>e.charAt(0).toUpperCase).join(""),src:o,shape:a||(t&&"address"!==t&&"block"!==t?"circle":"square")}),l=i&&(0,x.jsx)(cK,{href:i,underline:"none",children:s}),u=l||s;return t?(0,x.jsx)(s4,{content:n||kv(t),children:(0,x.jsx)("div",{className:"",children:u})}):u}function kU(e){let{label:t,type:n,avatar:r,avatarShape:i,initials:o,href:a,onClick:s,children:l}=e;return(0,x.jsxs)("div",{className:(0,ea.cx)("flex gap-4 p-4",(0,ea.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),onClick:s,children:[(0,x.jsx)(kH,{label:t,type:n,shape:i,src:r,initials:o||(n||t||"").split(" ").map(e=>e.charAt(0).toUpperCase()).join(""),href:a}),l]})}function kW(e){let t=e.sc,n=e.sf,r=e.hash&&(0,x.jsx)(ky,{value:e.hash,type:e.type,label:e.label,siascanUrl:e.siascanUrl,href:e.href,color:"subtle"}),i=e.label||"transaction"===e.type&&e.txType&&kg(e.txType)||kv(e.type),o=!function(e){if(!e)return!1;try{return new URL(e),!0}catch(e){return!1}}(i)?kB()(i):i;return(0,x.jsx)(kU,{...e,children:(0,x.jsxs)("div",{className:"flex flex-col items-center gap-1 w-full",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[e.height&&e.blockHref&&(0,x.jsx)(tq,{color:"subtle",weight:"semibold",children:(0,x.jsx)(cK,{href:e.blockHref,underline:"none",children:(0,m0.yF)(e.height)})}),(0,x.jsx)(tq,{weight:"medium",children:o||r})]}),(0,x.jsx)("div",{className:"flex-1"}),!!t&&(0,x.jsx)(kk,{variant:e.scVariant,value:t}),!!n&&(0,x.jsx)(kb,{variant:e.sfVariant,value:n})]}),(0,x.jsxs)("div",{className:"flex justify-between w-full",children:[(0,x.jsx)("div",{className:"flex gap-1",children:!!o&&r}),(0,x.jsxs)("div",{className:"flex gap-1 items-center",children:[e.unconfirmed?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(tq,{color:"verySubtle",children:"unconfirmed"}),e.timestamp?(0,x.jsx)(tq,{color:"verySubtle",children:(0,x.jsx)(s6.Bpb,{className:"scale-50"})}):null]}):null,e.timestamp&&(0,x.jsx)(tq,{color:"subtle",children:function(e,t){var n,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,kA.Z)(2,arguments);var a=o.locale||kz;if(!a.formatDistance)throw RangeError("locale must contain formatDistance property");var s=kT(e,t);if(isNaN(s))throw RangeError("Invalid time value");var l=function(e,t){if(null==e)throw TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}({},o);l.addSuffix=!!o.addSuffix,l.comparison=s,s>0?(n=(0,kM.Z)(t),r=(0,kM.Z)(e)):(n=(0,kM.Z)(e),r=(0,kM.Z)(t));var u=function(e,t,n){(0,kA.Z)(2,arguments);var r,i=function(e,t){return(0,kA.Z)(2,arguments),(0,kM.Z)(e).getTime()-(0,kM.Z)(t).getTime()}(e,t)/1e3;return((r=null==n?void 0:n.roundingMethod)?kP[r]:kP.trunc)(i)}(r,n),c=Math.round((u-(kI(r)-kI(n))/1e3)/60);if(c<2){if(o.includeSeconds){if(u<5)return a.formatDistance("lessThanXSeconds",5,l);if(u<10)return a.formatDistance("lessThanXSeconds",10,l);if(u<20)return a.formatDistance("lessThanXSeconds",20,l);if(u<40)return a.formatDistance("halfAMinute",null,l);else if(u<60)return a.formatDistance("lessThanXMinutes",1,l);else return a.formatDistance("xMinutes",1,l)}return 0===c?a.formatDistance("lessThanXMinutes",1,l):a.formatDistance("xMinutes",c,l)}if(c<45)return a.formatDistance("xMinutes",c,l);if(c<90)return a.formatDistance("aboutXHours",1,l);if(c<1440){var d=Math.round(c/60);return a.formatDistance("aboutXHours",d,l)}if(c<2520)return a.formatDistance("xDays",1,l);if(c<43200){var f=Math.round(c/1440);return a.formatDistance("xDays",f,l)}if(c<86400)return i=Math.round(c/43200),a.formatDistance("aboutXMonths",i,l);if((i=function(e,t){(0,kA.Z)(2,arguments);var n,r=(0,kM.Z)(e),i=(0,kM.Z)(t),o=kT(r,i),a=Math.abs(function(e,t){(0,kA.Z)(2,arguments);var n=(0,kM.Z)(e),r=(0,kM.Z)(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}(r,i));if(a<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-o*a);var s=kT(r,i)===-o;(function(e){(0,kA.Z)(1,arguments);var t=(0,kM.Z)(e);return(function(e){(0,kA.Z)(1,arguments);var t=(0,kM.Z)(e);return t.setHours(23,59,59,999),t})(t).getTime()===(function(e){(0,kA.Z)(1,arguments);var t=(0,kM.Z)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t})(t).getTime()})((0,kM.Z)(e))&&1===a&&1===kT(e,i)&&(s=!1),n=o*(a-Number(s))}return 0===n?0:n}(r,n))<12){var h=Math.round(c/43200);return a.formatDistance("xMonths",h,l)}var p=i%12,m=Math.floor(i/12);return p<3?a.formatDistance("aboutXYears",m,l):p<9?a.formatDistance("overXYears",m,l):a.formatDistance("almostXYears",m+1,l)}(new Date(e.timestamp),new Date,{addSuffix:!0})})]})]})]})})}function kq(e){let{title:t,actions:n,dataset:r,isLoading:i,emptyState:o,emptyMessage:a,skeletonCount:s=10,children:l}=e,u="emptyState";return!i||(null==r?void 0:r.length)||l||(u="skeleton"),((null==r?void 0:r.length)||l)&&(u="currentData"),(0,x.jsx)(tG,{children:(0,x.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[(t||n)&&(0,x.jsxs)("div",{className:"flex items-center p-4 border-b border-gray-200 dark:border-graydark-300",children:[t&&(0,x.jsx)(cz,{size:"20",font:"mono",ellipsis:!0,children:t}),(0,x.jsx)("div",{className:"flex-1"}),n]}),(0,x.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:["emptyState"===u&&(o||(0,x.jsx)("div",{className:(0,ea.cx)("flex items-center justify-center h-[84px]",(0,ea.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:(0,x.jsx)(tq,{size:"18",color:"subtle",children:a||"No results"})})),"currentData"===u&&(l||(null==r?void 0:r.map((e,t)=>(0,x.jsx)(kW,{...e},e.hash||e.label||t)))),"skeleton"===u&&(0,x.jsx)(kC,{skeletonCount:s})]})]})})}function k$(e){let{label:t,entityType:n,entityValue:r,actions:i,href:o,value:a,extendedSuffix:s,hash:l,sc:u,sf:c,comment:d,commentTip:f,scaleSize:h="40",isLoading:p,onClick:m}=e,v=(0,x.jsx)(tq,{color:"subtle",size:"12",className:"h-6",children:d});return(0,x.jsx)(tG,{children:(0,x.jsx)("div",{className:(0,ea.cx)("flex items-center py-2 px-4 h-full min-w-[250px]",m?"cursor-pointer":""),onClick:m,children:(0,x.jsxs)("div",{className:"flex flex-col gap-4 flex-wrap items-start w-full",children:[(0,x.jsxs)("div",{className:"flex relative top-px flex-1 w-full gap-6 items-center justify-between",children:[(0,x.jsx)(tq,{color:"subtle",ellipsis:!0,scaleSize:"14",children:"string"==typeof t?kB()(t):t}),i]}),(0,x.jsxs)("div",{className:"flex flex-col items-end md:items-start gap-2 md:flex-2",children:[p?(0,x.jsx)(f_,{className:"h-12 w-[150px]"}):(0,x.jsxs)(x.Fragment,{children:[void 0!==u&&(0,x.jsx)(kk,{extendedSuffix:s,scaleSize:h,variant:"value",value:u,fixed:0}),void 0!==c&&(0,x.jsx)(kb,{scaleSize:h,variant:"value",value:c}),n&&(r?(0,x.jsx)(ky,{scaleSize:h,label:kv(n),href:o,value:r,displayValue:"block"===n&&r?Number(r).toLocaleString():r,className:"relative top-0.5"}):(0,x.jsx)(tq,{font:"mono",weight:"medium",scaleSize:h,children:"-"})),l&&(0,x.jsx)(ky,{scaleSize:h,label:"hash",value:l}),void 0!==a&&(0,x.jsx)(tq,{font:"mono",weight:"medium",scaleSize:h,ellipsis:!0,children:a})]}),v?(0,x.jsx)("div",{className:"mt-1",children:p?(0,x.jsx)("div",{className:"mt-1 h-6 justify-center",children:(0,x.jsx)(f_,{className:"h-4 w-[100px]"})}):f?(0,x.jsx)(s4,{content:f,children:v}):v}):null]})]})})})}function kY(e){let{title:t,actions:n,name:r}=e;return(0,x.jsxs)("div",{className:"flex gap-0.5 items-center",children:[t?(0,x.jsx)(cY,{htmlFor:r,noWrap:!0,children:t}):null,n]})}function kG(e){var t;let{form:n,name:r}=e,i=n.formState.errors[r],o=null===(t=n.formState.errors[r])||void 0===t?void 0:t.message;return i?(0,x.jsx)(tq,{size:"14",color:"red",children:o}):null}function kX(e){let{form:t,title:n,actions:r,name:i,className:o,wrap:a}=e,s=t.formState.errors[i];return n||s?(0,x.jsxs)("div",{className:(0,ea.cx)("flex justify-between items-center gap-x-4 overflow-hidden",a?"flex-wrap":"",o),children:[(0,x.jsx)(kY,{name:i,title:n,actions:r}),(0,x.jsx)(kG,{form:t,name:i})]}):null}function kK(e){let{children:t,...n}=e;return(0,x.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,x.jsx)(kX,{...n}),t]})}function kQ(e){let{form:t,size:n="medium",variant:r="accent",children:i}=e;return(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(s5,{size:n,variant:r,state:t.formState.isSubmitting?"waiting":void 0,type:"submit",children:t.formState.isSubmitting?(0,x.jsx)(EA,{}):i})})}function kJ(e){let{formik:t,title:n,name:r,placeholder:i,disabled:o,readOnly:a,autoComplete:s="off",spellCheck:l=!1,tabIndex:u,allowDecimals:c=!1,decimalsLimitFiat:d=3,decimalsLimitSc:f=3,decimalsLimit:h=2,disableGroupSeparators:p=!1,showFiat:m=!0,units:v,type:g,variants:y}=e;return(0,x.jsx)(k3,{formik:t,title:n,name:r,children:"number"===g?(0,x.jsx)(k1,{formik:t,name:r,units:v,disabled:o,readOnly:a,tabIndex:u,decimalsLimit:h,allowDecimals:c,disableGroupSeparators:p,placeholder:i,variants:y}):"siacoin"===g?(0,x.jsx)(k2,{formik:t,name:r,disabled:o,readOnly:a,placeholder:i,tabIndex:u,showFiat:m,decimalsLimitFiat:d,decimalsLimitSc:f,variants:y}):(0,x.jsx)(k0,{formik:t,name:r,autoComplete:s,disabled:o,readOnly:a,placeholder:i,tabIndex:u,spellCheck:l,type:g,variants:y})})}function k0(e){let{formik:t,name:n,placeholder:r,autoComplete:i="off",disabled:o,readOnly:a,tabIndex:s,spellCheck:l=!1,type:u,variants:c}=e;return(0,x.jsx)(dJ,{id:n,name:n,autoComplete:i,disabled:o,spellCheck:l,placeholder:r,tabIndex:s,readOnly:a||t.isSubmitting,type:u,onBlur:t.handleBlur,onChange:t.handleChange,value:t.values[n]||"",...c})}function k1(e){let{formik:t,name:n,units:r,disabled:i,readOnly:o,tabIndex:a,placeholder:s,decimalsLimit:l,allowDecimals:u=!1,disableGroupSeparators:c=!1,variants:d}=e;return(0,x.jsx)(fh,{id:n,units:r,name:n,placeholder:new(fd())(s),disabled:i,allowDecimals:u,decimalsLimit:l,disableGroupSeparators:c,readOnly:o||t.isSubmitting,tabIndex:a,onBlur:t.handleBlur,onChange:e=>t.setFieldValue(n,e),value:t.values[n],...d})}function k2(e){let{formik:t,name:n,disabled:r,readOnly:i,tabIndex:o,placeholder:a,showFiat:s,decimalsLimitFiat:l=3,decimalsLimitSc:u=3,variants:c}=e;return(0,x.jsx)(fy,{id:n,name:n,disabled:r,showFiat:s,decimalsLimitFiat:l,decimalsLimitSc:u,readOnly:i||t.isSubmitting,tabIndex:o,onFocus:()=>t.setFieldTouched(n),sc:new(fd())(t.values[n]),placeholder:new(fd())(a),onChange:e=>t.setFieldValue(n,null==e?void 0:e.toString()),...c})}function k4(e){var t,n;let{formik:r,title:i,name:o,withStatusError:a=!1,className:s}=e,l=r.errors[o]&&r.touched[o]||a&&(null===(t=r.status)||void 0===t?void 0:t.error),u=r.errors[o]||a&&(null===(n=r.status)||void 0===n?void 0:n.error);return(i||l)&&(0,x.jsxs)("div",{className:(0,ea.cx)("flex justify-between items-center gap-4",s),children:[i?(0,x.jsx)(cY,{htmlFor:o,children:i}):(0,x.jsx)("div",{}),l&&(0,x.jsx)(tq,{size:"14",color:"red",children:u})]})}function k3(e){let{children:t,...n}=e;return(0,x.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,x.jsx)(k4,{...n}),t]})}function k5(e){var t;let{formik:n,size:r="medium",variant:i="accent",withStatusError:o=!0,children:a}=e;return(0,x.jsxs)(x.Fragment,{children:[o&&(null===(t=n.status)||void 0===t?void 0:t.error)&&(0,x.jsx)(tq,{color:"red",children:n.status.error}),(0,x.jsx)(s5,{size:r,variant:i,state:n.isSubmitting?"waiting":void 0,type:"submit",children:n.isSubmitting?(0,x.jsx)(EA,{}):a})]})}function k6(e){let{columns:t,data:n,context:r,sortField:i,sortDirection:o,sortableColumns:a,toggleSort:s,summary:l,rowSize:u="default",pageSize:c,isLoading:d,emptyState:f,focusId:h,focusColor:p="default"}=e,m="emptyState";!d||(null==n?void 0:n.length)||(m="skeleton"),(null==n?void 0:n.length)&&(m="currentData");let v=(0,b.useCallback)((e,n,r)=>(0,ea.cx)(0===e?"pl-6":"pl-4",e===t.length-1?"pr-6":"pr-4",r?[0===e?"rounded-tl-lg":"",e===t.length-1?"rounded-tr-lg":""]:"",n),[t]),g=(0,b.useCallback)((e,t)=>(0,ea.cx)("flex items-center",t),[]);return(0,x.jsxs)(tG,{children:[(0,x.jsxs)("table",{className:"relative z-10 table-auto border-collapse w-full",children:[(0,x.jsx)("thead",{className:(0,ea.cx)("sticky top-0 z-20 bg-white dark:bg-graydark-100","shadow-border-b shadow-gray-400 dark:shadow-graydark-300"),children:(0,x.jsx)("tr",{children:t.map((e,t)=>{let{id:n,icon:r,label:l,tip:u,cellClassName:c,contentClassName:d}=e,f=(null==a?void 0:a.includes(n))&&!!s,h=i===n;return(0,x.jsx)("th",{className:(0,ea.cx)(v(t,c,!1),"border-b border-gray-400 dark:border-graydark-400"),children:(0,x.jsx)("div",{className:(0,ea.cx)("overflow-hidden","py-3"),children:(0,x.jsxs)("div",{onClick:()=>{f&&s(n)},className:(0,ea.cx)(g(t,d),f?"cursor-pointer":""),children:[(0,x.jsx)(s4,{content:u,children:(0,x.jsxs)(tq,{color:"subtle",className:"relative flex gap-1",ellipsis:!0,children:[r?(0,x.jsx)("div",{children:r}):null,(0,x.jsx)(tq,{ellipsis:!0,size:"12",weight:"medium",children:l})]})}),h&&(0,x.jsx)(tq,{color:"contrast",children:"asc"===o?(0,x.jsx)(s6.kqg,{className:"scale-75"}):(0,x.jsx)(s6.EMN,{className:"scale-75"})}),f&&!h&&(0,x.jsx)(tq,{color:"verySubtle",children:(0,x.jsx)(s6.kqg,{className:"scale-75"})})]})})},n)})})}),(0,x.jsxs)("tbody",{className:"bg-gray-50 dark:bg-graydark-50",children:[l&&(0,x.jsx)("tr",{className:"bg-gray-50 dark:bg-graydark-50 border-l border-r border-b border-gray-200 dark:border-graydark-200",children:t.map((e,t)=>{let{id:n,summary:r,contentClassName:i,cellClassName:o}=e;return(0,x.jsx)("td",{className:v(t,o,!1),children:(0,x.jsx)("div",{className:g(t,i),children:r&&r()})},n)})}),"currentData"===m&&(null==n?void 0:n.map(e=>(0,x.jsx)("tr",{id:e.id,onClick:e.onClick,className:(0,ea.cx)("border-b border-gray-200/50 dark:border-graydark-100",e.onClick?"cursor-pointer":""),children:t.map((t,n)=>{let{id:i,render:o,contentClassName:a,cellClassName:s}=t;return(0,x.jsx)("td",{className:(0,ea.cx)(v(n,s,!1),h&&h===e.id?["shadow-border-y","first:shadow-border-tlb","last:shadow-border-trb"]:"","default"===p?"!shadow-blue-900 dark:!shadow-blue-200":"","blue"===p?"!shadow-blue-500 dark:!shadow-blue-400":"","red"===p?"!shadow-red-500 dark:!shadow-red-400":"","amber"===p?"!shadow-amber-500 dark:!shadow-amber-500":"","green"===p?"!shadow-green-500 dark:!shadow-green-400":""),children:(0,x.jsx)("div",{className:(0,ea.cx)(g(n,a),"dense"===u?"h-[50px]":"h-[100px]"),children:(0,x.jsx)(o,{data:e,context:r})})},"".concat(i,"/").concat(e.id))})},e.id))),"skeleton"===m&&kO()(c).map(e=>(0,x.jsx)("tr",{className:"border-b border-gray-200/50 dark:border-graydark-100",children:t.map((e,t)=>{let{id:n,contentClassName:r,cellClassName:i}=e;return(0,x.jsx)("td",{className:v(t,i,!1),children:(0,x.jsx)("div",{className:(0,ea.cx)(g(t,r),"dense"===u?"h-[50px]":"h-[100px]")})},"".concat(t,"/").concat(n))})},e))]})]}),"emptyState"===m&&f]})}var k8=n(5632);function k7(e){let{offset:t,limit:n,datasetTotal:r,isLoading:i}=e,o=(0,k8.useRouter)();return(0,x.jsxs)(lg,{children:[(0,x.jsx)(s5,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>o.push({query:{...o.query,offset:0}}),children:(0,x.jsx)("div",{className:"flex scale-[0.65]",children:(0,x.jsx)(s6.XJM,{})})}),(0,x.jsx)(s5,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.max(t-n,0)}}),children:(0,x.jsx)(s6.bdU,{})}),(0,x.jsx)(s5,{state:"waiting",className:"rounded-none px-3",children:r>0?"".concat(t+1," - ").concat(Math.min(t+n,r)," of ").concat(r?r.toLocaleString():""):i?(0,x.jsx)(EA,{className:"px-2"}):"No results"}),(0,x.jsx)(s5,{icon:"contrast",disabled:t+n>=r,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.min(t+n,r)}}),children:(0,x.jsx)(s6.VUy,{})}),(0,x.jsx)(s5,{icon:"contrast",disabled:t+n>=r,size:"small",variant:"gray",className:"rounded-l-none",onClick:()=>o.push({query:{...o.query,offset:Math.floor(r/n)*n}}),children:(0,x.jsx)("div",{className:"flex",style:{transform:"scale(0.65)"},children:(0,x.jsx)(s6.RRj,{})})})]})}function k9(e){let{offset:t,limit:n,pageTotal:r,isLoading:i}=e,o=(0,k8.useRouter)(),a=Math.min(t+n,t+r);return(0,x.jsxs)(lg,{children:[(0,x.jsx)(s5,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>o.push({query:{...o.query,offset:0}}),children:(0,x.jsx)("div",{className:"flex scale-[0.65]",children:(0,x.jsx)(s6.XJM,{})})}),(0,x.jsx)(s5,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.max(t-n,0)}}),children:(0,x.jsx)(s6.bdU,{})}),i?(0,x.jsx)(s5,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:(0,x.jsx)(EA,{className:"px-2"})}):r?(0,x.jsxs)(s5,{className:"rounded-none px-3",state:"waiting",children:[t+1," - ",a]}):(0,x.jsx)(s5,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:"none"}),(0,x.jsx)(s5,{icon:"contrast",disabled:!(r>=n),size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:t+n}}),children:(0,x.jsx)(s6.VUy,{})})]})}function Se(e){let{title:t,nav:n,stats:r,actions:i}=e;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)("div",{className:"flex items-center gap-2 px-6 h-14 z-10 bg-white dark:bg-graydark-50 border-b border-gray-500 dark:border-graydark-500",children:[t?"string"==typeof t?(0,x.jsx)(tq,{font:"mono",size:"18",weight:"bold",className:"hidden lg:block relative -top-px",children:t}):t:null,(0,x.jsxs)("div",{className:"flex-1 flex gap-4 items-center justify-between h-full px-1 -mx-1 overflow-x-hidden",children:[(0,x.jsx)("div",{className:"flex gap-2 items-center h-full flex-1 overflow-x-hidden",children:n}),(0,x.jsx)("div",{className:"flex gap-2 items-center h-full",children:i})]})]}),r&&(0,x.jsx)("div",{className:"flex items-center gap-2 px-6 py-2 h-14 z-10 bg-gray-50 dark:bg-graydark-50 border-b border-gray-300 dark:border-graydark-300",children:r})]})}let St=("string"==typeof(f={src:"/_next/static/media/background-pattern.b997b25c.jpg",height:104,width:34,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCAAIAAMDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAX/xAAZEAADAAMAAAAAAAAAAAAAAAAAAQISIpH/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8ArRbxWi6AAP/Z",blurWidth:3,blurHeight:8})?{src:f}:f).src;function Sn(e){let{children:t}=e;return(0,x.jsxs)("div",{className:"relative -z-10 opacity-100 pointer-events-none",children:[(0,x.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 z-10 bg-white dark:bg-graydark-50"}),(0,x.jsx)("div",{className:"fixed top-0 left-0 right-0 w-[200vw] h-[200vh] opacity-30 z-30 translate-x[-50vw] translate-y[-100vh]",style:{backgroundImage:"url(".concat(St,")"),backgroundPositionY:"bottom",backgroundSize:"auto"}}),(0,x.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 opacity-95 z-40 bg-white dark:bg-graydark-50"}),t]})}var Sr=n(97729),Si=n.n(Sr);function So(e){let{appName:t,title:n,children:r}=e,i=n?"".concat(t," - ").concat(n):t;return(0,x.jsxs)(Si(),{children:[(0,x.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,x.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),(0,x.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),(0,x.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"}),(0,x.jsx)("link",{rel:"manifest",href:"/site.webmanifest"}),(0,x.jsx)("link",{rel:"mask-icon",href:"/safari-pinned-tab.svg",color:"#1ed660"}),(0,x.jsx)("meta",{name:"msapplication-TileColor",content:"#2b5797"}),(0,x.jsx)("meta",{name:"theme-color",content:"#ffffff"}),r,(0,x.jsx)("title",{children:i})]})}function Sa(e){let{appName:t,title:n,children:r}=e;return(0,x.jsxs)("div",{className:"h-screen",children:[(0,x.jsx)(So,{appName:t,title:n}),r]})}function Ss(e){let{appName:t,title:n,children:r,filters:i,actions:o}=e;return(0,x.jsxs)(Sa,{appName:t,title:n,children:[(0,x.jsx)(Sn,{}),(0,x.jsx)("div",{className:"flex h-full",children:(0,x.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,x.jsx)(Se,{nav:i,actions:o}),(0,x.jsx)("div",{className:"flex-1",children:(0,x.jsx)(lx,{className:"h-full",children:r})})]})})]})}function Sl(e){let{side:t,balanceSc:n,children:r}=e;return n?(0,x.jsx)(s4,{side:t,content:(0,x.jsxs)("div",{className:"flex flex-col justify-center gap-2",children:[(0,x.jsxs)("div",{className:"flex gap-4",children:[(0,x.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,x.jsx)(tq,{children:"spendable"}),(0,x.jsx)(tq,{color:"subtle",children:"All confirmed outputs not in-use."})]}),(0,x.jsx)("div",{className:"flex justify-end",children:(0,x.jsx)(kk,{displayBoth:!0,variant:"value",value:n.spendable})})]}),(0,x.jsx)(cb,{className:"w-full"}),(0,x.jsxs)("div",{className:"flex gap-4",children:[(0,x.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,x.jsx)(tq,{children:"confirmed"}),(0,x.jsx)(tq,{color:"subtle",children:"All confirmed outputs."})]}),(0,x.jsx)("div",{className:"flex justify-end",children:(0,x.jsx)(kk,{displayBoth:!0,variant:"value",value:n.confirmed})})]}),(0,x.jsx)(cb,{className:"w-full"}),(0,x.jsxs)("div",{className:"flex gap-4",children:[(0,x.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,x.jsx)(tq,{children:"unconfirmed"}),(0,x.jsx)(tq,{color:"subtle",children:"All unconfirmed outputs not in-use."})]}),(0,x.jsx)("div",{className:"flex justify-end",children:(0,x.jsx)(kk,{displayBoth:!0,variant:"value",value:n.unconfirmed})})]})]}),children:(0,x.jsx)("div",{children:r})}):null}function Su(e){let{balanceSc:t,isSynced:n,syncingMessage:r}=e;if(!t)return null;let i=(0,x.jsx)(kk,{showTooltip:!1,value:t.spendable.plus(t.unconfirmed),variant:"value",size:"12",fixed:0,fixedFiat:0});return n?(0,x.jsx)(Sl,{side:"right",balanceSc:t,children:i}):(0,x.jsx)(s4,{side:"right",content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,x.jsx)("div",{children:i})})}var Sc=n(82876);function Sd(e){let{title:t,children:n,route:r,onClick:i}=e,o=(0,Sc.usePathname)(),a=r&&("/"===r?o===r:null==o?void 0:o.startsWith(r));return r?(0,x.jsx)(cK,{href:r,className:"no-underline",children:(0,x.jsx)(s4,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,x.jsx)(s5,{icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:n})})}):(0,x.jsx)(s4,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,x.jsx)(s5,{icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:n})})}function Sf(e){let{walletBalanceSc:t,isSynced:n,routes:r}=e;return(0,x.jsx)(Sd,{title:"Wallet",route:r.wallet.view,children:(0,x.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,x.jsx)(s6.oaN,{}),n&&t&&(0,x.jsx)(Su,{isSynced:n,balanceSc:t})]})})}function Sh(e){let{routes:t,profile:n,isSynced:r,showWallet:i=!0,walletBalanceSc:o,lock:a,openSettings:s,children:l}=e;return(0,x.jsx)(tG,{className:"relative overflow-hidden z-10 h-full w-[75px] rounded-none border-y-0",children:(0,x.jsxs)("div",{className:"flex flex-col items-center h-full",children:[(0,x.jsx)("div",{className:"flex items-center justify-center",style:{height:"".concat(60,"px")},children:n||(0,x.jsx)(cJ,{size:30})}),(0,x.jsxs)("div",{className:"flex flex-col gap-6 items-center pt-4 pb-6 h-full",children:[(0,x.jsx)("div",{className:"flex flex-col gap-6 items-center",children:l}),(0,x.jsx)("div",{className:"flex-1"}),(0,x.jsx)(cb,{className:"w-full"}),i&&(0,x.jsx)(Sf,{routes:t,isSynced:r,walletBalanceSc:o}),(0,x.jsx)(Sd,{title:"Blockchain node",route:t.node.index,children:(0,x.jsx)(s6.kBK,{})}),(0,x.jsx)(Sd,{title:"App preferences",onClick:()=>s(),children:(0,x.jsx)(s6.UG6,{})}),(0,x.jsx)(Sd,{title:"Lock app",onClick:a,children:(0,x.jsx)(s6.mBM,{})})]})]})})}var Sp=Object.create,Sm=Object.defineProperty,Sv=Object.getOwnPropertyDescriptor,Sg=Object.getOwnPropertyNames,Sy=Object.getPrototypeOf,Sx=Object.prototype.hasOwnProperty,Sb=(v=null!=(m=(h=(e,t)=>{var r,i;r=e,i=function(e){var t,n=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,r=2*536870912,i=new WeakMap,o=(t=function(e,t){return i.set(e,t),t},function(e){var o=i.get(e),a=void 0===o?e.size:on)throw Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;e.has(a);)a=Math.floor(Math.random()*n);return t(e,a)});e.addUniqueNumber=function(e){var t=o(e);return e.add(t),t},e.generateUniqueNumber=o},"object"==typeof e&&"u">typeof t?i(e):"function"==typeof define&&n.amdO?define(["exports"],i):i((r="u">typeof globalThis?globalThis:r||self).fastUniqueNumbers={})},()=>(p||h((p={exports:{}}).exports,p),p.exports))())?Sp(Sy(m)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of Sg(t))Sx.call(e,n)||void 0===n||Sm(e,n,{get:()=>t[n],enumerable:!(r=Sv(t,n))||r.enumerable});return e})(m&&m.__esModule?v:Sm(v,"default",{value:m,enumerable:!0}),m)),Sw=e=>void 0!==e.method&&"call"===e.method,SE=e=>null===e.error&&"number"==typeof e.id;g=e=>{let t=new Map([[0,()=>{}]]),n=new Map([[0,()=>{}]]),r=new Map,i=new Worker(e);return i.addEventListener("message",({data:e})=>{if(Sw(e)){let{params:{timerId:i,timerType:o}}=e;if("interval"===o){let e=t.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==o)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e();else throw Error("The timer is in an undefined state.")}else if("timeout"===o){let e=n.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==o)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e(),n.delete(i);else throw Error("The timer is in an undefined state.")}}else if(SE(e)){let{id:i}=e,o=r.get(i);if(void 0===o)throw Error("The timer is in an undefined state.");let{timerId:a,timerType:s}=o;r.delete(i),"interval"===s?t.delete(a):n.delete(a)}else{let{error:{message:t}}=e;throw Error(t)}}),{clearInterval:e=>{let n=(0,Sb.generateUniqueNumber)(r);r.set(n,{timerId:e,timerType:"interval"}),t.set(e,n),i.postMessage({id:n,method:"clear",params:{timerId:e,timerType:"interval"}})},clearTimeout:e=>{let t=(0,Sb.generateUniqueNumber)(r);r.set(t,{timerId:e,timerType:"timeout"}),n.set(e,t),i.postMessage({id:t,method:"clear",params:{timerId:e,timerType:"timeout"}})},setInterval:(e,n)=>{let r=(0,Sb.generateUniqueNumber)(t);return t.set(r,()=>{e(),"function"==typeof t.get(r)&&i.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:r,timerType:"interval"}})}),i.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:r,timerType:"interval"}}),r},setTimeout:(e,t)=>{let r=(0,Sb.generateUniqueNumber)(n);return n.set(r,e),i.postMessage({id:null,method:"set",params:{delay:t,now:performance.now(),timerId:r,timerType:"timeout"}}),r}}},a=null,()=>{if(null!==a)return a;let e=new Blob(['(()=>{"use strict";const e=new Map,t=new Map,r=(e,t)=>{let r,o;const i=performance.now();r=i,o=e-Math.max(0,i-t);return{expected:r+o,remainingDelay:o}},o=(e,t,r,i)=>{const s=performance.now();s>r?postMessage({id:null,method:"call",params:{timerId:t,timerType:i}}):e.set(t,setTimeout(o,r-s,e,t,r,i))};addEventListener("message",(i=>{let{data:s}=i;try{if("clear"===s.method){const{id:r,params:{timerId:o,timerType:i}}=s;if("interval"===i)(t=>{const r=e.get(t);if(void 0===r)throw new Error(\'There is no interval scheduled with the given id "\'.concat(t,\'".\'));clearTimeout(r),e.delete(t)})(o),postMessage({error:null,id:r});else{if("timeout"!==i)throw new Error(\'The given type "\'.concat(i,\'" is not supported\'));(e=>{const r=t.get(e);if(void 0===r)throw new Error(\'There is no timeout scheduled with the given id "\'.concat(e,\'".\'));clearTimeout(r),t.delete(e)})(o),postMessage({error:null,id:r})}}else{if("set"!==s.method)throw new Error(\'The given method "\'.concat(s.method,\'" is not supported\'));{const{params:{delay:i,now:n,timerId:a,timerType:d}}=s;if("interval"===d)((t,i,s)=>{const{expected:n,remainingDelay:a}=r(t,s);e.set(i,setTimeout(o,a,e,i,n,"interval"))})(i,a,n);else{if("timeout"!==d)throw new Error(\'The given type "\'.concat(d,\'" is not supported\'));((e,i,s)=>{const{expected:n,remainingDelay:a}=r(e,s);t.set(i,setTimeout(o,a,t,i,n,"timeout"))})(i,a,n)}}}}catch(e){postMessage({error:{message:e.message},id:s.id,result:null})}}))})();'],{type:"application/javascript; charset=utf-8"}),t=URL.createObjectURL(e);return a=g(t),setTimeout(()=>URL.revokeObjectURL(t)),a};var Sj=(typeof window>"u"?"undefined":typeof window)=="object",Sk={setTimeout:Sj?setTimeout.bind(window):setTimeout,clearTimeout:Sj?clearTimeout.bind(window):clearTimeout,setInterval:Sj?setInterval.bind(window):setInterval,clearInterval:Sj?clearInterval.bind(window):clearInterval},SS={},S_=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,SS[e]=SS[e]||[],SS[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){if(e.storageArea!==window.localStorage||e.key.substring(0,this.name.length)!==this.name||null===e.newValue)return;let t=JSON.parse(e.newValue);this.mc.port2.postMessage(t)}postMessage(e){if(this.closed)throw Error("InvalidStateError");let t=JSON.stringify(e),n=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(n,t),Sk.setTimeout(()=>{window.localStorage.removeItem(n)},500),SS[this.name].forEach(e=>{e!==this&&e.mc.port2.postMessage(JSON.parse(t))})}close(){if(this.closed)return;this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage);let e=SS[this.name].indexOf(this);SS[this.name].splice(e,1)}get onmessage(){return this.mc.port1.onmessage}set onmessage(e){this.mc.port1.onmessage=e}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(e){this.mc.port1.onmessageerror=e}addEventListener(e,t){return this.mc.port1.addEventListener(e,t)}removeEventListener(e,t){return this.mc.port1.removeEventListener(e,t)}dispatchEvent(e){return this.mc.port1.dispatchEvent(e)}},SO=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:S_;function SC(){return Math.random().toString(36).substring(2)}var SM=class{options;channel;token=SC();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(e,t){this.channel=e,this.options=t,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return this.reApply=!0,!1;this.isApplying=!0;let e=!1,t=t=>{let{token:n,action:r}=t.data;n!==this.token&&(0===r&&n>this.token&&(e=!0),1===r&&(e=!0))};this.channel.addEventListener("message",t);try{return this.sendAction(0),await function(e=0){return new Promise(t=>Sk.setTimeout(t,e))}(this.options.responseTime),this.channel.removeEventListener("message",t),this.isApplying=!1,e?!!this.reApply&&this.apply():(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let e=!1,t=null;return new Promise(n=>{let r=()=>{if(e)return;e=!0;try{Sk.clearInterval(t)}catch{}let r=this.intervals.indexOf(t);r>=0&&this.intervals.splice(r,1),this.channel.removeEventListener("message",i),n()};t=Sk.setInterval(()=>{this.apply().then(()=>{this.isLeader&&r()})},this.options.fallbackInterval),this.intervals.push(t);let i=e=>{let{action:t}=e.data;2===t&&this.apply().then(()=>{this.isLeader&&r()})};this.channel.addEventListener("message",i)})}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;let e=e=>{let{action:t}=e.data;0===t&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred||(this.deferred=this.awaitLeadership()),this.deferred}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach(e=>this.channel.removeEventListener("message",e)),this.intervals.forEach(e=>Sk.clearInterval(e))}catch{}}}},SA=class{channel;options;elector;token=SC();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;this.options=e,this.channel=new SO(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new SM(this.channel,{fallbackInterval:2e3,responseTime:100}),this.elector.waitForLeadership()),this.channel.addEventListener("message",e=>{let{action:t,token:n,data:r}=e.data;switch(t){case 3:this.registry.set(n,2);break;case 4:this.registry.delete(n);break;case 5:this.idle(n);break;case 6:this.active(n);break;case 7:this.prompt(n);break;case 8:this.start(n);break;case 9:this.reset(n);break;case 10:this.activate(n);break;case 11:this.pause(n);break;case 12:this.resume(n);break;case 13:this.options.onMessage(r)}}),this.send(3)}get isLeader(){if(!this.elector)throw Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.');return this.elector.isLeader}prompt(e=this.token){this.registry.set(e,0);let t=[...this.registry.values()].every(e=>0===e);e===this.token&&this.send(7),t&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);let t=[...this.registry.values()].every(e=>2===e);e===this.token&&this.send(5),!this.allIdle&&t&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);let t=[...this.registry.values()].some(e=>1===e);e===this.token&&this.send(6),t&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},ST=Sj?document:null,SP=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function SN(e,t){let n=0;return function(...r){let i=new Date().getTime();if(!(i-nDate.now();function SD(e){let{route:t}=e,n=(0,fm.Nf)({route:t,config:{swr:{refreshInterval:3e4}}});return{isConnected:!n.error,isValidating:n.isValidating}}function SL(e){let{appName:t,title:n,navTitle:r,profile:i,size:o="4",banner:a,nav:s,actions:l,stats:u,children:c,sidenav:d,connectivityRoute:f,isSynced:h,showWallet:p,walletBalanceSc:m,routes:v,scroll:g=!0,openSettings:y}=e,{lock:w,settings:E}=(0,fm.Hv)();return!function(e){let{lock:t,route:n,routes:r}=e,{isConnected:i,isValidating:o}=SD({route:n}),{settings:a}=(0,fm.Hv)(),s=(0,k8.useRouter)();(0,b.useEffect)(()=>{if(o)return;let e=!s.asPath.startsWith(r.login),n=!a.password||!i;if(e&&n){t();return}},[s,a.password,i,o])}({lock:w,route:f,routes:v}),!function(e){let{enabled:t,lock:n,lockTimeout:r}=e,i=(0,b.useCallback)(()=>{n()},[n]);!function({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:n=0,element:r=ST,events:i=SP,timers:o,immediateEvents:a=[],onPresenceChange:s=()=>{},onPrompt:l=()=>{},onIdle:u=()=>{},onActive:c=()=>{},onAction:d=()=>{},onMessage:f=()=>{},debounce:h=0,throttle:p=0,eventsThrottle:m=200,startOnMount:v=!0,startManually:g=!1,stopOnIdle:y=!1,crossTab:x=!1,name:w="idle-timer",syncTimers:E=0,leaderElection:j=!1,disabled:k=!1}={}){let S=(0,b.useRef)(SR()),_=(0,b.useRef)(SR()),O=(0,b.useRef)(null),C=(0,b.useRef)(null),M=(0,b.useRef)(0),A=(0,b.useRef)(0),T=(0,b.useRef)(0),P=(0,b.useRef)(0),N=(0,b.useRef)(!1),R=(0,b.useRef)(!1),D=(0,b.useRef)(!1),L=(0,b.useRef)(!0),F=(0,b.useRef)(!1),V=(0,b.useRef)(null),z=(0,b.useRef)(null),I=(0,b.useRef)(e),Z=(0,b.useRef)(0);(0,b.useEffect)(()=>{if(t&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),n&&t)throw Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(e>=2147483647)throw Error(`\u274C The value for the timeout property must fit in a 32 bit signed integer, 2147483647.`);if(t>=2147483647)throw Error(`\u274C The value for the promptTimeout property must fit in a 32 bit signed integer, 2147483647.`);if(n>=2147483647)throw Error(`\u274C The value for the promptBeforeIdle property must fit in a 32 bit signed integer, 2147483647.`);if(n>=e)throw Error(`\u274C The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);if(n?(I.current=e-n,Z.current=n):(I.current=e,Z.current=t),!L.current){if(g||k)return;N.current&&(X.current(null,eT),z.current&&z.current.active()),ed()}},[e,t,n,g,k]);let B=(0,b.useRef)(y);(0,b.useEffect)(()=>{B.current=y},[y]);let H=(0,b.useRef)(a),U=(0,b.useRef)(r),W=(0,b.useRef)([...new Set([...i,...a]).values()]),q=(0,b.useRef)(k);(0,b.useEffect)(()=>{q.current=k,!L.current&&(k?ep():g||ed())},[k]);let $=(0,b.useRef)(s);(0,b.useEffect)(()=>{$.current=s},[s]);let Y=(0,b.useRef)(l);(0,b.useEffect)(()=>{Y.current=l},[l]);let G=(0,b.useRef)(u);(0,b.useEffect)(()=>{G.current=u},[u]);let X=(0,b.useRef)(c);(0,b.useEffect)(()=>{X.current=c},[c]);let K=(0,b.useRef)(d);(0,b.useEffect)(()=>{K.current=d},[d]);let Q=(0,b.useRef)(f);(0,b.useEffect)(()=>{Q.current=f},[f]);let J=(0,b.useMemo)(()=>{let e=(e,t)=>K.current(e,t);return h>0?function(e,t){let n;function r(...i){n&&clearTimeout(n),n=setTimeout(()=>{e(...i),n=null},t)}return r.cancel=function(){clearTimeout(n)},r}(e,h):p>0?SN(e,p):e},[p,h]),ee=(0,b.useRef)();(0,b.useEffect)(()=>{x&&E&&(ee.current=SN(()=>{z.current.active()},E))},[x,E]);let et=()=>{null!==V.current&&(Sk.clearTimeout(V.current),V.current=null)},en=(e,t=!0)=>{et(),V.current=Sk.setTimeout(ea,e||I.current),t&&(C.current=SR())},er=e=>{R.current||N.current||(Y.current(e,eT),$.current({type:"active",prompted:!0},eT)),P.current=0,T.current=SR(),R.current=!0,en(Z.current,!1)},ei=()=>{et(),N.current||(G.current(null,eT),$.current({type:"idle"},eT)),N.current=!0,O.current=SR(),B.current?ec():R.current&&(T.current=0,R.current=!1)},eo=e=>{et(),(N.current||R.current)&&(X.current(e,eT),$.current({type:"active",prompted:!1},eT)),R.current=!1,T.current=0,N.current=!1,M.current+=SR()-O.current,A.current+=SR()-O.current,eu(),en()},ea=e=>{if(!N.current){J.cancel&&J.cancel();let t=SR()-C.current;if(!(I.current+Z.current0&&!R.current){z.current?z.current.prompt():er(e);return}z.current?z.current.idle():ei();return}z.current?z.current.active():eo(e)},es=e=>{if(v||C.current||(C.current=SR(),X.current(null,eT)),J(e,eT),R.current)return;if(et(),!N.current&&H.current.includes(e.type)){ea(e);return}let t=SR()-C.current;if(N.current&&!y||!N.current&&t>=I.current){ea(e);return}D.current=!1,P.current=0,T.current=0,en(),x&&E&&ee.current()},el=(0,b.useRef)(es);(0,b.useEffect)(()=>{let e=F.current;e&&ec(),m>0?el.current=SN(es,m):el.current=es,e&&eu()},[m,p,h,K,x,E]);let eu=()=>{Sj&&U.current&&(F.current||(W.current.forEach(e=>{U.current.addEventListener(e,el.current,{capture:!0,passive:!0})}),F.current=!0))},ec=(e=!1)=>{Sj&&U.current&&(F.current||e)&&(W.current.forEach(e=>{U.current.removeEventListener(e,el.current,{capture:!0})}),F.current=!1)},ed=(0,b.useCallback)(e=>!q.current&&(et(),eu(),N.current=!1,R.current=!1,D.current=!1,P.current=0,T.current=0,z.current&&!e&&z.current.start(),en(),!0),[V,N,q,I,z]),ef=(0,b.useCallback)(e=>!q.current&&(et(),eu(),_.current=SR(),M.current+=SR()-O.current,A.current+=SR()-O.current,M.current=0,N.current=!1,R.current=!1,D.current=!1,P.current=0,T.current=0,z.current&&!e&&z.current.reset(),g||en(),!0),[V,N,I,g,q,z]),eh=(0,b.useCallback)(e=>!q.current&&(et(),eu(),(N.current||R.current)&&eo(),N.current=!1,R.current=!1,D.current=!1,P.current=0,T.current=0,_.current=SR(),z.current&&!e&&z.current.activate(),en(),!0),[V,N,R,q,I,z]),ep=(0,b.useCallback)((e=!1)=>!q.current&&!D.current&&(P.current=eE(),D.current=!0,ec(),et(),z.current&&!e&&z.current.pause(),!0),[V,q,z]),em=(0,b.useCallback)((e=!1)=>!q.current&&!!D.current&&(D.current=!1,R.current||eu(),N.current||en(P.current),T.current&&(T.current=SR()),z.current&&!e&&z.current.resume(),!0),[V,I,q,P,z]),ev=(0,b.useCallback)((e,t)=>(z.current?(t&&Q.current(e,eT),z.current.message(e)):t&&Q.current(e,eT),!0),[f]),eg=(0,b.useCallback)(()=>N.current,[N]),ey=(0,b.useCallback)(()=>R.current,[R]),ex=(0,b.useCallback)(()=>z.current?z.current.isLeader:null,[z]),eb=(0,b.useCallback)(()=>z.current?z.current.isLastActive:null,[z]),ew=(0,b.useCallback)(()=>z.current?z.current.token:null,[z]),eE=(0,b.useCallback)(()=>{if(D.current)return P.current;let e=Math.floor((P.current?P.current:Z.current+I.current)-(C.current?SR()-C.current:0));return e<0?0:Math.abs(e)},[I,Z,R,P,C]),ej=(0,b.useCallback)(()=>Math.round(SR()-_.current),[_]),ek=(0,b.useCallback)(()=>Math.round(SR()-S.current),[S]),eS=(0,b.useCallback)(()=>O.current?new Date(O.current):null,[O]),e_=(0,b.useCallback)(()=>C.current?new Date(C.current):null,[C]),eO=(0,b.useCallback)(()=>N.current?Math.round(SR()-O.current+M.current):Math.round(M.current),[O,M]),eC=(0,b.useCallback)(()=>N.current?Math.round(SR()-O.current+A.current):Math.round(A.current),[O,A]),eM=(0,b.useCallback)(()=>{let e=Math.round(ej()-eO());return e>=0?e:0},[O,M]),eA=(0,b.useCallback)(()=>{let e=Math.round(ek()-eC());return e>=0?e:0},[O,M]);(0,b.useEffect)(()=>{if(h>0&&p>0)throw Error("❌ onAction can either be throttled or debounced, not both.");o&&(Sk.setTimeout=o.setTimeout,Sk.clearTimeout=o.clearTimeout,Sk.setInterval=o.setInterval,Sk.clearInterval=o.clearInterval);let e=()=>{z.current&&z.current.close(),J.cancel&&J.cancel(),et(),ec(!0)};return Sj&&window.addEventListener("beforeunload",e),()=>{Sj&&window.removeEventListener("beforeunload",e),z.current&&z.current.close(),J.cancel&&J.cancel(),et(),ec(!0)}},[]),(0,b.useEffect)(()=>{z.current&&z.current.close(),x?z.current=new SA({channelName:w,leaderElection:j,onPrompt:()=>{er()},onIdle:()=>{ei()},onActive:()=>{eo()},onMessage:e=>{Q.current(e,eT)},start:ed,reset:ef,activate:eh,pause:ep,resume:em}):z.current=null},[x,w,j,Y,G,X,Q,ed,ef,ep,em]),(0,b.useEffect)(()=>{L.current||(et(),ec(!0)),g||k||(v?ed():eu())},[g,v,k,L]),(0,b.useEffect)(()=>{if(!L.current){let e=[...new Set([...i,...a]).values()];ec(),W.current=e,U.current=r,H.current=a,g||k||(v?ed():eu())}},[r,JSON.stringify(i),JSON.stringify(a),L,k,g,v]),(0,b.useEffect)(()=>{L.current&&(L.current=!1)},[L]);let eT={message:ev,start:ed,reset:ef,activate:eh,pause:ep,resume:em,isIdle:eg,isPrompted:ey,isLeader:ex,isLastActiveTab:eb,getTabId:ew,getRemainingTime:eE,getElapsedTime:ej,getTotalElapsedTime:ek,getLastIdleTime:eS,getLastActiveTime:e_,getIdleTime:eO,getTotalIdleTime:eC,getActiveTime:eM,getTotalActiveTime:eA,setOnPresenceChange:e=>{s=e,$.current=e},setOnPrompt:e=>{l=e,Y.current=e},setOnIdle:e=>{u=e,G.current=e},setOnActive:e=>{c=e,X.current=e},setOnAction:e=>{d=e,K.current=e},setOnMessage:e=>{f=e,Q.current=e}}}({disabled:!t,onIdle:i,timeout:r,throttle:5e3,eventsThrottle:5e3})}({enabled:!!E.autoLock,lockTimeout:E.autoLockTimeout,lock:w}),(0,x.jsxs)(Sa,{appName:t,title:n,children:[(0,x.jsx)(Sn,{}),(0,x.jsxs)("div",{className:"flex flex-col h-full w-full",children:[a,(0,x.jsxs)("div",{className:"flex flex-1 w-full overflow-hidden",children:[(0,x.jsx)(Sh,{routes:v,profile:i,openSettings:y,lock:w,showWallet:p,walletBalanceSc:m,isSynced:h,children:d}),(0,x.jsxs)("div",{className:"flex flex-col flex-1 overflow-hidden",children:[(0,x.jsx)(Se,{title:void 0===r?n:r,nav:s,actions:l,stats:u}),g?(0,x.jsx)(l1,{className:"z-0",children:(0,x.jsx)(lx,{size:o,pad:!1,children:(0,x.jsx)("div",{className:"flex flex-col gap-5",children:c})})}):(0,x.jsx)(lx,{size:o,pad:!1,className:"flex-1 flex flex-col gap-5 overflow-hidden",children:c})]})]})]})]})}function SF(e,t,n,r){let[i,o]=(0,b.useState)();return(0,b.useEffect)(()=>{!t&&e&&o(e.length)},[t,e,o]),(0,b.useMemo)(()=>n?"error":void 0===i||i>0&&!e?"loading":0===i?0===r.length?"noneYet":"noneMatchingFilters":void 0,[e,i,n,r])}function SV(e){let{filtered:t}=e;return(0,x.jsxs)("div",{className:"flex flex-col gap-8 justify-center items-center h-[300px]",children:[(0,x.jsx)(tq,{children:(0,x.jsx)(s6.Hb6,{className:"scale-[200%]"})}),(0,x.jsx)(tq,{color:"subtle",className:"text-center max-w-[500px]",children:t?"No matching alerts.":"There are currently no alerts."})]})}(0,b.createContext)(null).Consumer;let Sz=[];function SI(e){let{open:t,onOpenChange:n,dismissOne:r,dismissMany:i,alerts:o,dataFieldOrder:a,dataFields:s}=e,l=SF(o.data,o.isValidating,o.error,Sz),[u,c]=(0,b.useState)(),d=(0,b.useMemo)(()=>{var e;return(null===(e=o.data)||void 0===e?void 0:e.filter(e=>!u||e.severity===u))||[]},[o.data,u]),f=(0,b.useCallback)(e=>{let t=Object.keys(e).sort((e,t)=>{let n=a.indexOf(e),r=a.indexOf(t);return -1===n&&-1===r?0:-1===n?1:-1===r?-1:n-r});return t},[a]);return(0,x.jsx)(l3,{open:t,onOpenChange:e=>{n(e)},contentVariants:{className:"w-[500px] h-[80vh]"},title:(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsxs)(cz,{size:"20",children:["Alerts ",o.data?"(".concat(o.data.length,")"):""]}),(0,x.jsxs)("div",{className:"flex gap-1",children:[(0,x.jsx)(s5,{variant:void 0===u?"accent":"gray",onClick:()=>c(void 0),children:"all"}),(0,x.jsx)(s5,{variant:"info"===u?"accent":"gray",onClick:()=>c("info"),children:"info"}),(0,x.jsx)(s5,{variant:"warning"===u?"accent":"gray",onClick:()=>c("warning"),children:"warning"}),(0,x.jsx)(s5,{variant:"error"===u?"accent":"gray",onClick:()=>c("error"),children:"error"}),(0,x.jsx)(s5,{variant:"critical"===u?"accent":"gray",onClick:()=>c("critical"),children:"critical"}),(0,x.jsx)("div",{className:"flex-1"}),!l&&!!d.length&&(0,x.jsxs)(s5,{tip:u?"dismiss ".concat(d.length):"dismiss all",onClick:()=>i(d.map(e=>e.id),u),children:[(0,x.jsx)(s6.NlZ,{}),d.length>0?" ".concat(d.length):""]})]})]}),children:(0,x.jsxs)("div",{className:(0,ea.cx)("flex flex-col overflow-hidden -m-4","border-t border-gray-200 dark:border-graydark-300"),children:["noneYet"===l&&(0,x.jsx)(SV,{filtered:!1}),"error"===l&&(0,x.jsx)("div",{className:(0,ea.cx)("flex items-center justify-center h-[100px]",SH()),children:(0,x.jsx)(tq,{size:"18",color:"subtle",children:o.error.message})}),"loading"===l&&(0,x.jsx)(SB,{}),!l&&(0,x.jsx)("div",{className:"flex flex-col",children:d.length?d.map(e=>(0,x.jsxs)("div",{className:(0,ea.cx)("flex flex-col gap-1 w-full p-4","border-t border-gray-200 dark:border-graydark-300","first:border-none"),children:[(0,x.jsxs)("div",{className:"flex justify-between gap-1 w-full",children:[(0,x.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,x.jsxs)(tq,{weight:"medium",className:"w-full",children:[e.severity,": ",e.message]})}),(0,x.jsx)(s5,{tip:"Dismiss alert",onClick:()=>r(e.id),children:(0,x.jsx)(s6.NlZ,{})})]}),(0,x.jsxs)("div",{className:"flex justify-between w-full",children:[(0,x.jsx)(tq,{color:"subtle",ellipsis:!0,children:"timestamp"}),(0,x.jsx)(tq,{color:"contrast",ellipsis:!0,children:(0,m0.rN)(e.timestamp,{timeStyle:"medium"})})]}),f(e.data).map(t=>{var n;let r=e.data[t];if(null==r||"object"==typeof r&&!Object.keys(r).length)return null;let i=(null==s?void 0:null===(n=s[t])||void 0===n?void 0:n.render)||SZ;return(0,x.jsx)(i,{label:t,value:r},t)})]},e.id)):(0,x.jsx)(SV,{filtered:!!u})})]})})}function SZ(e){let{label:t,value:n}=e;return(0,x.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,x.jsx)(tq,{color:"subtle",children:t}),(0,x.jsx)(tq,{color:"contrast",ellipsis:!0,children:String(n)})]})}function SB(){return(0,x.jsx)(x.Fragment,{children:kO()(10,e=>(0,x.jsx)("div",{className:(0,ea.cx)("relative flex gap-4 p-3.5",SH()),children:(0,x.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,x.jsxs)("div",{className:"flex justify-between gap-2 w-full",children:[(0,x.jsx)(f_,{className:"w-[160px] h-[20px]"}),(0,x.jsx)(f_,{className:"w-[160px] h-[20px]"})]}),(0,x.jsx)(f_,{className:"w-[100px] h-[20px]"}),(0,x.jsx)(f_,{className:"w-full h-[120px]"})]})},e))})}function SH(){return(0,ea.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")}var SU=n(89644),SW=n.n(SU),Sq=n(63955),S$=n(45861),SY=n.n(S$);function SG(e){let{form:t,field:n,name:r}=e,i=t.watch(r),o=t.formState.touchedFields[r]&&!!t.formState.errors[r],{ref:a,onChange:s,onBlur:l}=t.register(r,n.validation),u=(0,b.useCallback)(e=>{var r;s(e),null===(r=n.trigger)||void 0===r||r.forEach(e=>t.trigger(e))},[s,t,n]),c=(0,b.useCallback)((e,i)=>{var o;t.setValue(r,e,"boolean"==typeof i?i?{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0}:void 0:i),null===(o=n.trigger)||void 0===o||o.forEach(e=>t.trigger(e))},[r,t,n]);return{ref:a,name:r,value:i,error:o,onBlur:l,onChange:u,setValue:c}}function SX(e){return(0,b.useCallback)(t=>{ko(SY()(t).map(t=>{let[n,r]=t;return"".concat(e[n].title||n,": ").concat(null==r?void 0:r.message)}).join(", "))},[e])}function SK(e){let{name:t,form:n,fields:r,size:i="small",autoComplete:o,spellCheck:a,state:s=!0,group:l=!0}=e,u=r[t],{ref:c,onChange:d,onBlur:f,error:h}=SG({name:t,form:n,field:u}),p=(0,x.jsx)(dJ,{ref:c,name:t,placeholder:u.placeholder,size:i,autoComplete:o,type:u.type,readOnly:u.readOnly,spellCheck:a,onClick:u.onClick,state:s?h?"invalid":n.formState.dirtyFields[t]?"valid":"default":"default",onChange:d,onBlur:f});return l?(0,x.jsx)(kK,{title:u.title,actions:u.actions,name:t,form:n,children:p}):p}var SQ=n(829),SJ=n.n(SQ);async function S0(e){let{api:t,route:n,password:r}=e;try{return await SW().get("".concat(t,"/api").concat(n),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(":".concat(r))},timeout:1e4}),{}}catch(n){let e=n.code,t=n.response;if((null==t?void 0:t.status)===504)return{error:"Error, check that daemon is running"};if((null==t?void 0:t.status)===401)return{error:"Error, wrong password"};if("ECONNABORTED"===e)return{error:"Error, daemon did not respond"};return{error:"Error, something went wrong"}}}function S1(e){let{appName:t,route:n,routes:r}=e,i=(0,k8.useRouter)(),{settings:o,setSettings:a}=(0,fm.Hv)(),{allowCustomApi:s}=o,l=(0,b.useMemo)(()=>({api:o.api,password:""}),[o.api]),u=(0,Sq.cI)({mode:"onBlur",defaultValues:l});(0,b.useEffect)(()=>{u.clearErrors()},[s]);let c=(0,b.useCallback)(async e=>{let t="";if(s){let n=new URL(e.api);t="".concat(n.protocol,"//").concat(n.host)}let{error:c}=await S0({api:t,route:n,password:e.password});c?u.setError("password",{message:c}):(a({api:t,password:e.password,recentApis:{...o.recentApis,[t]:{lastUsed:new Date().getTime()}}}),i.push(i.query.prev?decodeURIComponent(i.query.prev):r.home),u.reset(l))},[s,u,i,r,o,a,l,n]),d=function(e){let{allowCustomApi:t}=e;return{api:{type:"text",title:"API",placeholder:"http://127.0.0.1:9980",validation:{validate:{required:e=>!t||!!e||"API is required",url:e=>{try{let t=new URL(e);return!!t.protocol&&!!t.host||"invalid API URL"}catch(e){return"invalid API URL"}},https:e=>{let t="https:"===window.location.protocol;return!t||t&&e.startsWith("https")||"API must use HTTPS"}}}},password:{type:"password",title:"Password",placeholder:"Enter password",validation:{required:"password is required"}}}}({allowCustomApi:s}),f=SX(d),h=u.formState.errors.api||u.formState.errors.password,p=SJ()(Object.entries(o.recentApis),e=>{let[t,{lastUsed:n}]=e;return-n}).map(e=>{let[t]=e;return t});return(0,x.jsx)("div",{className:"flex flex-col items-center justify-center gap-6 h-full",children:(0,x.jsx)(tG,{className:"relative top-[-50px] w-[300px] p-2.5",children:(0,x.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,x.jsxs)("div",{className:"flex justify-between items-center",children:[(0,x.jsx)(tq,{font:"mono",weight:"bold",size:"20",children:t}),(0,x.jsx)(cT,{trigger:(0,x.jsx)(s5,{icon:"hover",variant:"ghost",children:(0,x.jsx)(s6.shL,{})}),children:(0,x.jsx)(cP,{onSelect:()=>a({allowCustomApi:!s}),children:s?"Hide custom API":"Show custom API"})})]}),(0,x.jsx)(cb,{className:"w-full mt-2 mb-3"}),(0,x.jsx)("form",{onSubmit:u.handleSubmit(c,f),children:(0,x.jsxs)("div",{className:"flex flex-col gap-1.5",children:[s?(0,x.jsxs)(lg,{children:[(0,x.jsx)(SK,{name:"api",form:u,fields:d,group:!1}),p.length>1&&(0,x.jsx)(cT,{trigger:(0,x.jsx)(s5,{type:"button",children:(0,x.jsx)(s6.wGX,{})}),children:p.map(e=>(0,x.jsx)(cP,{onSelect:()=>u.setValue("api",e),children:e},e))})]}):null,(0,x.jsx)(SK,{name:"password",form:u,fields:d,group:!1}),h&&(0,x.jsx)(tq,{size:"14",color:"red",children:h.message}),(0,x.jsx)(kQ,{size:"small",form:u,children:"Unlock"})]})})]})})})}var S2=n(63397),S4=n(24511);let S3={address:"",siacoin:void 0,includeFee:!1},S5=S4.Ry().shape({address:S4.Z_().required("Required"),siacoin:S4.Z_().required("Required").test("greater than zero","Must be greater than zero",e=>!new(fd())(e||0).isZero())});function S6(e){let{address:t,siacoin:n,fee:r,transactionId:i}=e,o=n.plus(r);return(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,x.jsx)(tq,{color:"verySubtle",noWrap:!0,children:"Address"}),(0,x.jsx)(ky,{value:t,type:"address"})]}),(0,x.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,x.jsx)(tq,{color:"verySubtle",noWrap:!0,children:"Amount"}),(0,x.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,x.jsx)(kw,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,x.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,x.jsx)(tq,{color:"verySubtle",noWrap:!0,children:"Network fee"}),(0,x.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,x.jsx)(kw,{size:"14",value:r,variant:"value",dynamicUnits:!1})})]}),(0,x.jsxs)("div",{className:"flex items-center gap-2 justify-between",children:[(0,x.jsx)(tq,{color:"verySubtle",noWrap:!0,children:"Total"}),(0,x.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,x.jsx)(kw,{size:"14",value:o,variant:"value",dynamicUnits:!1})})]}),i&&(0,x.jsxs)("div",{className:"flex gap-6 items-center justify-between",children:[(0,x.jsx)(tq,{color:"verySubtle",noWrap:!0,children:"Transaction ID"}),(0,x.jsx)(ky,{value:i,type:"transaction"})]})]})}function S8(e){let{activeStep:t,steps:n,onChange:r}=e,i=n.findIndex(e=>e.id===t),o=n.length-1;return(0,x.jsxs)("div",{className:"relative w-full mt-8 mb-3",children:[(0,x.jsx)("div",{className:"absolute w-full h-1 bg-gray-500 dark:bg-graydark-500 rounded-lg"}),(0,x.jsx)("div",{className:"absolute h-1 bg-accent-800 dark:bg-accentdark-800 rounded-lg",style:{width:"".concat(i/o*100,"%")}}),n.map((e,n)=>{let{id:a,label:s}=e,l=t===a,u=i>=n,c=n===o,d=0===n,f=u&&i!==o;return(0,x.jsxs)("div",{className:(0,ea.cx)("absolute h-2 w-2 -top-0.5",f?"cursor-pointer":"cursor-default"),style:{left:"calc(".concat(n/o*100,"% - ").concat(c?8:d?0:4,"px)")},onClick:()=>{f&&r(a)},children:[(0,x.jsx)(tq,{color:l?"contrast":"verySubtle",className:(0,ea.cx)("absolute top-[-30px]",d?"left-0":"",c?"right-0":"",d||c?"":"-translate-x-1/2"),noWrap:!0,children:s}),(0,x.jsx)("div",{className:(0,ea.cx)("absolute left-0 top-0 h-full w-full rounded-lg border",u?"bg-accent-800 dark-accentdark-800":"bg-gray-500 dark:bg-graydark-500",u?"border-accent-900 dark:border-accentdark-900":"border-gray-600 dark:border-graydark-600")}),l&&(0,x.jsx)("div",{className:"absolute left-0 top-0 h-full w-full rounded-lg bg-accent-800 dark:bg-accentdark-800 animate-pingslow"})]},a)})]})}function S7(e){let{data:{address:t,siacoin:n},fee:r,transactionId:i}=e;return(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(S6,{address:t,siacoin:n,fee:r,transactionId:i}),(0,x.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 my-4",children:[(0,x.jsx)(tq,{children:(0,x.jsx)(s6.Z$8,{})}),(0,x.jsx)(tq,{children:"Transaction successfully broadcasted."})]})]})}let S9=(0,m0.qN)(.00393),_e={address:"",siacoin:new(fd())(0),includeFee:!1};function _t(e){let{trigger:t,open:n,onOpenChange:r,balance:i,send:o}=e,[a,s]=(0,b.useState)("setup"),[l,u]=(0,b.useState)(),[c,d]=(0,b.useState)(_e),f=function(e){let{balance:t,fee:n,onComplete:r}=e,i=(0,S2.TA)({initialValues:S3,validationSchema:S5,onSubmit:async e=>{if(!e.siacoin)return;let o=e.includeFee?(0,m0.qN)(e.siacoin).minus(n):(0,m0.qN)(e.siacoin);if(t){if(t.isLessThan((0,m0.qN)(e.siacoin).plus(n))){i.setStatus({error:"Not enough funds in wallet."});return}i.setStatus({}),r({includeFee:e.includeFee,address:e.address,siacoin:o})}}}),o=(0,m0.qN)(i.values.siacoin||0),a=(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(kJ,{formik:i,variants:{size:"medium"},title:"Address",name:"address",placeholder:"e3b1050aef388438668b52983cf78f40925af8f0aa8b9de80c18eadcefce8388d168a313e3f2",autoComplete:"off",type:"text"}),(0,x.jsx)(kJ,{formik:i,title:"Siacoin",name:"siacoin",placeholder:"100",type:"siacoin"}),(0,x.jsxs)("div",{className:"flex items-center",children:[(0,x.jsx)(fI,{name:"includeFee",onCheckedChange:e=>i.setFieldValue("includeFee",e),children:"Include fee"}),(0,x.jsx)(fb,{children:"Include or exclude the network fee from the above transaction value."}),(0,x.jsx)("div",{className:"flex flex-1"})]}),(0,x.jsxs)("div",{className:"flex flex-col gap-2 my-1",children:[(0,x.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,x.jsx)(tq,{color:"verySubtle",children:"Network fee"}),(0,x.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,x.jsx)(kw,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,x.jsxs)("div",{className:"flex justify-between gap-2 items-center",children:[(0,x.jsx)(tq,{color:"verySubtle",children:"Total"}),(0,x.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,x.jsx)(kw,{size:"14",value:i.values.includeFee?o:o.plus(n),variant:"value",dynamicUnits:!1})})]})]})]});return{formik:i,form:a}}({balance:i,fee:S9,onComplete:e=>{d(e),s("confirm")}}),h=function(e){let{send:t,formData:n,fee:r,onConfirm:i}=e,{address:o,siacoin:a}=n||{},s=(0,S2.TA)({initialValues:{},onSubmit:async()=>{let{transactionId:e,error:n}=await t({address:o,sc:a});if(n){s.setStatus({error:n});return}i({transactionId:e})}}),l=(0,x.jsx)("div",{className:"flex flex-col gap-4",children:(0,x.jsx)(S6,{address:o,siacoin:a,fee:r})});return{form:l,formik:s}}({fee:S9,formData:c,send:o,onConfirm:e=>{let{transactionId:t}=e;u(t),s("done")}}),p=(0,b.useMemo)(()=>"setup"===a?{submitLabel:"Generate transaction",formik:f.formik}:"confirm"===a?{submitLabel:"Broadcast transaction",formik:h.formik}:void 0,[a,f,h]);return(0,x.jsx)(l3,{trigger:t,open:n,onOpenChange:e=>{e||(f.formik.resetForm(),h.formik.resetForm(),s("setup")),r(e)},title:"Send siacoin",onSubmit:p?p.formik.handleSubmit:void 0,controls:p&&(0,x.jsx)("div",{className:"flex flex-col gap-1",children:(0,x.jsx)(k5,{formik:p.formik,children:p.submitLabel})}),contentVariants:{className:"w-[400px]"},children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(S8,{onChange:e=>s(e),activeStep:a,steps:[{id:"setup",label:"Setup"},{id:"confirm",label:"Confirm"},{id:"done",label:"Complete"}]}),(0,x.jsx)(cb,{className:"w-full mt-4"}),"setup"===a&&f.form,"confirm"===a&&h.form,"done"===a&&(0,x.jsx)(S7,{data:c,fee:S9,transactionId:l})]})})}let _n="[a-fA-F\\d:]",_r=e=>e&&e.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(_n,")|(?<=").concat(_n,")(?=\\s|$))"):"",_i="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",_o="[a-fA-F\\d]{1,4}",_a="\n(?:\n(?:".concat(_o,":){7}(?:").concat(_o,"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:").concat(_o,":){6}(?:").concat(_i,"|:").concat(_o,"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:").concat(_o,":){5}(?::").concat(_i,"|(?::").concat(_o,"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:").concat(_o,":){4}(?:(?::").concat(_o,"){0,1}:").concat(_i,"|(?::").concat(_o,"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:").concat(_o,":){3}(?:(?::").concat(_o,"){0,2}:").concat(_i,"|(?::").concat(_o,"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:").concat(_o,":){2}(?:(?::").concat(_o,"){0,3}:").concat(_i,"|(?::").concat(_o,"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:").concat(_o,":){1}(?:(?::").concat(_o,"){0,4}:").concat(_i,"|(?::").concat(_o,"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::").concat(_o,"){0,5}:").concat(_i,"|(?::").concat(_o,"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),_s=new RegExp("(?:^".concat(_i,"$)|(?:^").concat(_a,"$)")),_l=new RegExp("^".concat(_i,"$")),_u=new RegExp("^".concat(_a,"$")),_c=e=>e&&e.exact?_s:RegExp("(?:".concat(_r(e)).concat(_i).concat(_r(e),")|(?:").concat(_r(e)).concat(_a).concat(_r(e),")"),"g");_c.v4=e=>e&&e.exact?_l:RegExp("".concat(_r(e)).concat(_i).concat(_r(e)),"g"),_c.v6=e=>e&&e.exact?_u:RegExp("".concat(_r(e)).concat(_a).concat(_r(e)),"g");let _d=()=>RegExp("^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|((([a-zA-Z]|[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]).)+([A-Za-z|[A-Za-z][A-Za-z0-9‌​-]*[A-Za-z0-9])))$","g"),_f={port:9981,ip:""},_h=S4.Ry().shape({port:S4.Rx().required("Required").min(0,"Out of valid range").max(65535,"Out of valid range"),ip:S4.Z_().required("Required").test("ip","Invalid hostname or IP address",e=>_d().test(e||""))});function _p(e){let{trigger:t,open:n,connect:r,onOpenChange:i}=e,o=(0,S2.TA)({initialValues:_f,validationSchema:_h,onSubmit:async(e,t)=>{let n="".concat(e.ip,":").concat(e.port),o=await r(n);if(o.error){let e=o.error.replace("invalid peer address: address ".concat(n,":"),"");t.setStatus({error:e})}else kr("Connected to peer"),t.resetForm(),i(!1)}});return(0,x.jsx)(l3,{trigger:t,title:"Connect peer",open:n,onOpenChange:e=>{e||o.resetForm(),i(e)},contentVariants:{className:"w-[400px]"},children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(t$,{size:"14",children:"Connect to a peer by IP address."}),(0,x.jsx)("form",{onSubmit:o.handleSubmit,children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(kJ,{formik:o,title:"Address",name:"ip",placeholder:"host.acme.com or 127.0.0.1",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,x.jsx)(kJ,{formik:o,title:"Port",name:"port",disableGroupSeparators:!0,placeholder:"9981",autoComplete:"off",type:"number",variants:{size:"medium"}}),(0,x.jsx)(k5,{formik:o,size:"medium",children:"Connect"})]})})]})})}function _m(e){var t,n;let{id:r,transaction:i,trigger:o,open:a,onOpenChange:s}=e;return(0,x.jsx)(l3,{title:kd((null==i?void 0:i.txType)?kB()(kg(i.txType)):"Transaction",r,16),trigger:o,open:a,onOpenChange:s,contentVariants:{className:"w-[800px]"},children:i?(0,x.jsxs)("div",{className:"flex flex-col gap-4 pb-10 w-full overflow-hidden",children:[(0,x.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(null==i?void 0:i.inflow)!==void 0&&(0,x.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,x.jsx)(tq,{children:"Inflow"}),(0,x.jsx)(kw,{value:new(fd())((null==i?void 0:i.inflow)||0)})]}),(null==i?void 0:i.outflow)!==void 0&&(0,x.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,x.jsx)(tq,{children:"Outflow"}),(0,x.jsx)(kw,{value:new(fd())((null==i?void 0:i.outflow)||0).negated()})]}),(null==i?void 0:null===(t=i.raw)||void 0===t?void 0:t.minerFees)!==void 0&&(0,x.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,x.jsx)(tq,{children:"Miner fee"}),(0,x.jsx)(kw,{value:new(fd())((null==i?void 0:null===(n=i.raw.minerFees)||void 0===n?void 0:n.reduce((e,t)=>e.plus(t),new(fd())(0)))||0)})]}),(0,x.jsx)("div",{className:"flex-1"}),(0,x.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,x.jsx)(tq,{children:"Timestamp"}),(0,x.jsx)(tq,{children:(null==i?void 0:i.timestamp)?(0,m0.rN)((null==i?void 0:i.timestamp)||0,{timeStyle:"short"}):"Unconfirmed"})]})]}),(0,x.jsx)(lh,{children:JSON.stringify(null==i?void 0:i.raw,null,2)})]}):(0,x.jsx)(tq,{children:"Could not find transaction in wallet"})})}S4.Ry().shape({address:S4.Z_().required("Required"),description:S4.Z_().required("Required"),index:S4.Rx().integer().required("Required")});var _v=n(38001);function _g(e){let{title:t,description:n,address:r}=e;return(0,x.jsxs)("div",{className:"flex flex-col gap-4 items-center justify-center",children:[t&&(0,x.jsx)(cz,{size:"20",font:"mono",children:t}),n&&(0,x.jsx)(tq,{children:n}),(0,x.jsx)("div",{className:"relative p-[5px] bg-white h-[210px] w-[210px]",children:(0,x.jsx)("div",{className:"absolute",children:(0,x.jsx)(_v.Z,{size:200,value:r})})}),(0,x.jsx)(ky,{type:"address",value:r})]})}function _y(e){let{address:t,isValidating:n,trigger:r,open:i,onOpenChange:o}=e;return(0,x.jsx)(l3,{title:kd("Address",kc(t)||"",16),trigger:r,open:i,onOpenChange:o,contentVariants:{className:"w-[400px]"},children:(0,x.jsx)("div",{className:"flex flex-col gap-4",children:t||n?(0,x.jsx)(_g,{address:t||""}):(0,x.jsx)(tq,{children:"Could not retreive wallet address"})})})}function _x(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i}=e;return t?n?null:(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(tq,{color:"amber",children:(0,x.jsx)(s6.qdM,{})}),(0,x.jsxs)(tq,{size:"14",children:["Wallet is scanning (",i,"%), transaction data may be incomplete."]})]}):(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(tq,{color:"amber",children:(0,x.jsx)(s6.qdM,{})}),(0,x.jsxs)(tq,{size:"14",children:["Blockchain is syncing (",r,"%), transaction data may be incomplete."]})]})}let _b={blog:"https://blog.sia.tech",docs:{index:"https://docs.sia.tech",sia101:"https://docs.sia.tech/get-started-with-sia/sia101",renterd:"https://docs.sia.tech/renting/about-renting",hostd:"https://docs.sia.tech/hosting/about-hosting-on-sia",walletd:"https://docs.sia.tech/wallet/wallet-overview",renting:"https://docs.sia.tech/renting/about-renting",wallet:"https://docs.sia.tech/wallet/wallet-overview",hosting:"https://docs.sia.tech/hosting/about-hosting-on-sia",mining:"https://docs.sia.tech/mining/about-mining-on-sia",embarcadero:"https://github.com/SiaFoundation/embarcadero",siad:"https://api.sia.tech",siaui:"https://docs.sia.tech/your-sia-wallet/sia-ui-faqs",brand:"https://docs.sia.tech/sia-integrations/sia-brand-guidelines"},website:{index:"https://sia.tech",tos:"https://sia.tech/terms-of-service",privacy:"https://sia.tech/privacy-policy"},explore:{mainnet:"https://siascan.com",testnetZen:"https://zen.siascan.com",testnetZenFaucet:"https://zen.siascan.com/faucet"},design:"https://design.sia.tech",apiDocs:{renterd:"https://api.sia.tech/renterd",hostd:"https://api.sia.tech/hostd",walletd:"https://api.sia.tech/walletd"},github:{index:"https://github.com/SiaFoundation",embarcadero:"https://github.com/SiaFoundation/embarcadero",siad:"https://github.com/SiaFoundation/siad",renterd:"https://github.com/SiaFoundation/renterd",walletd:"https://github.com/SiaFoundation/walletd",hostd:"https://github.com/SiaFoundation/hostd",siaui:"https://gitlab.com/NebulousLabs/Sia-UI"},discord:"https://sia.tech/discord",twitter:"https://twitter.com/sia__foundation",bluesky:"https://bsky.app/profile/sia.tech",twitterHandle:"@sia__foundation",reddit:"https://reddit.com/r/siacoin",forum:"https://forum.sia.tech/",forumGrants:"https://forum.sia.tech/c/grants/",forumGrantsProposed:"https://forum.sia.tech/c/grants/proposed/",merch:"https://siagear.tech/",email:"hello@sia.tech",benchmarks:"https://benchmarks.sia.tech",storageStats:"https://hosts.siacentral.com/",hostTroubleshoot:"https://troubleshoot.siacentral.com/",coinmarketcap:"https://coinmarketcap.com/currencies/siacoin/",jobs:"https://siafoundation.homerun.co/"};function _w(){let{settings:e,setCurrency:t,currencyOptions:n}=(0,fm.Hv)();return(0,x.jsx)(fj,{disabled:!e.siaCentral,value:e.currency.id,onChange:e=>t(e.currentTarget.value),children:n.map(e=>{let{id:t,label:n}=e;return(0,x.jsx)(fk,{value:t,children:n},t)})})}let _E=[{id:"sc",label:"Siacoin"},{id:"fiat",label:"Fiat"},{id:"bothPreferSc",label:"Both - prefer siacoin"},{id:"bothPreferFiat",label:"Both - prefer fiat"}];function _j(){let{settings:e,setSettings:t}=(0,fm.Hv)();return(0,x.jsx)(fj,{disabled:!e.siaCentral,value:e.currencyDisplay,onChange:e=>t({currencyDisplay:e.currentTarget.value}),children:_E.map(e=>{let{id:t,label:n}=e;return(0,x.jsx)(fk,{value:t,children:n},t)})})}function _k(e){let{open:t,onOpenChange:n,securityEl:r,showGpuSetting:i}=e,{settings:o,setSettings:a,gpu:s}=(0,fm.Hv)();return(0,x.jsx)(l3,{open:t,title:"App preferences",onOpenChange:n,contentVariants:{className:"w-[450px]"},children:(0,x.jsxs)("div",{className:"flex flex-col gap-6 mb-2",children:[(0,x.jsx)("div",{className:"flex flex-col gap-4",children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(tq,{size:"16",weight:"bold",children:"Display"}),(0,x.jsx)(t$,{size:"14",children:"Configure visual and locale display preferences."}),(0,x.jsx)(s7,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(tq,{children:(0,x.jsx)(s6.RdX,{})}),(0,x.jsx)(cz,{size:"20",className:"flex-1",children:"Currency display"}),(0,x.jsx)(_j,{})]}),(0,x.jsx)(t$,{size:"14",children:"Select whether you would like to see currency values in siacoin, fiat, or both. Fiat requires Sia Central third-party data enabled under Privacy."})]})}),(0,x.jsx)(s7,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(tq,{children:(0,x.jsx)(s6.RdX,{})}),(0,x.jsx)(cz,{size:"20",className:"flex-1",children:"Fiat"}),(0,x.jsx)(_w,{})]}),(0,x.jsx)(t$,{size:"14",children:"Select a fiat currency for price conversions from Siacoin. Requires Sia Central third-party data enabled under Privacy."})]})}),(0,x.jsx)(s7,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(tq,{children:(0,x.jsx)(s6.RdX,{})}),(0,x.jsx)(cz,{size:"20",className:"flex-1",children:"Theme"}),(0,x.jsx)(pu,{})]}),(0,x.jsx)(t$,{size:"14",children:"Switch between a dark or light mode, or follow your system's settings."})]})}),i&&(0,x.jsx)(s7,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(tq,{children:(0,x.jsx)(s6.RdX,{})}),(0,x.jsx)(cz,{size:"20",className:"flex-1",children:"GPU"}),(0,x.jsx)(fI,{disabled:!s.canGpuRender,checked:s.canGpuRender&&s.isGpuEnabled,onCheckedChange:s.setIsGpuEnabled,size:"medium"})]}),(0,x.jsxs)(t$,{size:"14",children:["Enable features that require a GPU."," ",s.canGpuRender?"":"This device does not support GPU rendering."]})]})})]})}),(0,x.jsx)(cb,{className:"w-full"}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsx)(tq,{size:"16",weight:"bold",children:"Security"}),(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(t$,{size:"14",children:"Configure security preferences."}),(0,x.jsx)(s7,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(tq,{children:(0,x.jsx)(s6.RdX,{})}),(0,x.jsx)(cz,{size:"20",className:"flex-1",children:"Lock app"}),(0,x.jsx)(fI,{size:"medium",checked:o.autoLock,onCheckedChange:e=>a({autoLock:e})}),(0,x.jsxs)(fj,{disabled:!o.autoLock,value:String(o.autoLockTimeout),onChange:e=>{a({autoLockTimeout:Number(e.currentTarget.value)})},children:[(0,x.jsx)(fk,{value:ES(5),children:"5 minutes"}),(0,x.jsx)(fk,{value:ES(10),children:"10 minutes"}),(0,x.jsx)(fk,{value:ES(20),children:"20 minutes"}),(0,x.jsx)(fk,{value:ES(30),children:"30 minutes"}),(0,x.jsx)(fk,{value:ES(60),children:"1 hour"})]})]}),(0,x.jsx)(t$,{size:"14",children:"Automatically lock the app after a certain period of inactivity."})]})}),r]})]}),(0,x.jsx)(cb,{className:"w-full"}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsx)(tq,{size:"16",weight:"bold",children:"Privacy"}),(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(t$,{size:"14",children:"Configure privacy preferences. The app uses the third-party APIs listed below to improve the user experience. All third-party APIs are optional and can be toggled on or off."}),(0,x.jsx)(s7,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(tq,{children:(0,x.jsx)(s6.RdX,{})}),(0,x.jsx)(cz,{size:"20",className:"flex-1",children:"Sia Central"}),(0,x.jsx)(fI,{size:"medium",checked:o.siaCentral,onCheckedChange:e=>a({siaCentral:e})})]}),(0,x.jsx)(t$,{size:"14",children:"The app fetches Siacoin exchange rates from the Sia Central API."})]})})]})]}),(0,x.jsx)(cb,{className:"w-full"}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsx)(tq,{size:"16",weight:"bold",children:"Help"}),(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(t$,{size:"14",children:"Find information about the Sia software at our website, documentation site, and on Github. Join our active Discord community for discussion and help troubleshooting issues."}),(0,x.jsxs)("div",{className:"flex gap-4",children:[(0,x.jsxs)(cK,{href:_b.website.index,target:"_blank",className:"flex items-center gap-1",children:[(0,x.jsx)(s6.lq1,{}),"Website"]}),(0,x.jsxs)(cK,{href:_b.docs.index,target:"_blank",className:"flex items-center gap-1",children:[(0,x.jsx)(s6.RdX,{}),"Docs"]}),(0,x.jsxs)(cK,{href:_b.github.index,target:"_blank",className:"flex items-center gap-1",children:[(0,x.jsx)(s6.Sfn,{}),"About"]}),(0,x.jsxs)(cK,{href:_b.discord,target:"_blank",className:"flex items-center gap-1",children:[(0,x.jsx)(s6.b47,{}),"Discord"]})]})]})]})]})})}function _S(e){let{balanceSc:t,isSynced:n,syncingMessage:r}=e;return t?n?(0,x.jsx)(Sl,{side:"bottom",balanceSc:t,children:(0,x.jsx)(tG,{className:"hidden sm:flex h-7 px-3 items-center",children:(0,x.jsx)(kk,{variant:"value",value:t.spendable.plus(t.unconfirmed),size:"12",showTooltip:!1})})}):(0,x.jsx)(s4,{content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,x.jsxs)(tG,{className:"hidden sm:flex h-7 pl-2 pr-3 gap-1.5 items-center",children:[(0,x.jsx)(tq,{color:"amber",children:(0,x.jsx)(s6.qdM,{})}),(0,x.jsx)(kk,{variant:"value",value:t.spendable.plus(t.unconfirmed),size:"12",showTooltip:!1})]})}):null}function __(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i,balanceSc:o,sendSiacoin:a,receiveSiacoin:s}=e;return(0,x.jsxs)(x.Fragment,{children:[o&&(0,x.jsx)(_S,{isSynced:t&&n,syncingMessage:t?"Wallet is scanning (".concat(i,"%), balance may be incorrect."):"Blockchain is syncing (".concat(r,"%), balance may be incorrect."),balanceSc:o}),s&&(0,x.jsxs)(s5,{size:"small",onClick:s,children:[(0,x.jsx)(s6.xHM,{}),"Receive"]}),(0,x.jsxs)(s5,{size:"small",variant:"accent",onClick:a,children:[(0,x.jsx)(s6.rW0,{}),"Send"]})]})}function _O(e,t){if(!e||!e.length)return[];let n=Object.keys(Ek()(e[0],"timestamp"));e.sort((e,t)=>e.timestamp>t.timestamp?1:-1);let r=[];return"delta"===t?e.forEach((t,i)=>{let o={...t};0!==i&&(n.forEach(n=>{let r=t[n],a=e[i-1][n];o[n]=r-a}),r.push(o))}):r=e,r}function _C(e,t){return"all"===e?{start:new Date(2022,1,1).getTime(),end:t}:{start:t-EO(Number(e)),end:t}}let _M={"5m":e=>{let t=e+ES(5);return"5m interval from ".concat((0,m0.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,m0.rN)(t,{timeStyle:"short",hour12:!1}))},"15m":e=>{let t=e+ES(15);return"15m interval from ".concat((0,m0.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,m0.rN)(t,{timeStyle:"short",hour12:!1}))},hourly:e=>{let t=e+E_(1);return"Hour interval from ".concat((0,m0.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,m0.rN)(t,{timeStyle:"short",hour12:!1}))},daily:e=>{let t=e+E_(24);return"Day interval from ".concat((0,m0.rN)(e)," to ").concat((0,m0.rN)(t))},weekly:e=>{let t=e+EO(7);return"Week interval from ".concat((0,m0.rN)(e)," to ").concat((0,m0.rN)(t))},monthly:e=>{let t=e+EO(30);return"Month interval from ".concat((0,m0.rN)(e)," to ").concat((0,m0.rN)(t))},yearly:e=>{let t=e+EO(365);return"Year interval from ".concat((0,m0.rN)(e)," to ").concat((0,m0.rN)(t))},default:e=>"".concat((0,m0.rN)(e))};function _A(e){return _M[e]||_M.default}function _T(e){if(!e||!e.length)return{};let t=Object.keys(Ek()(e[0],"timestamp"));e.sort((e,t)=>e.timestamp>t.timestamp?1:-1);let n=t.reduce((t,n)=>({...t,[n]:function(e,t){var n,r;let i=(null===(n=t[0])||void 0===n?void 0:n[e])||0,o=(null===(r=t[t.length-1])||void 0===r?void 0:r[e])||0,a=t.reduce((t,n)=>t+(n[e]||0),0);return _P({total:a,start:i,end:o,count:t.length})}(n,e)}),{});return{...n,total:function(e,t){let n=_N(e,t[0]),r=_N(e,t[t.length-1]),i=t.reduce((t,n)=>t+_N(e,n),0);return _P({total:i,start:n,end:r,count:t.length})}(t,e)}}function _P(e){let{total:t,start:n,end:r,count:i}=e,o=r-n;return{total:t,diff:o,change:0===n?void 0:o/n*100,latest:r,average:t/i}}function _N(e,t){return e.reduce((e,n)=>e+((null==t?void 0:t[n])||0),0)}function _R(e){let{balances:t,isLoading:n,chartType:r="area"}=e,{resolvedTheme:i}=(0,ps.F)(),o=(0,b.useMemo)(()=>"light"===i?{sc:{label:"siacoin",color:mJ.accent[800]}}:{sc:{label:"siacoin",color:mJ.accentdark[800]}},[i]),a=(0,b.useMemo)(()=>{let e=_O(t,"none"),i=_T(t);return{data:e,stats:i,config:{enabledGraph:["sc"],enabledTip:["sc"],data:{sc:o.sc},format:e=>(0,m0.Vz)(e),formatTimestamp:_A("default"),formatTickY:e=>(0,m0.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:r},isLoading:n}},[t,n,o,r]);return(0,x.jsx)("div",{className:"relative",children:(0,x.jsx)(EP,{id:"balance",height:200,allowConfiguration:!1,data:a.data,config:a.config})})}function _D(e){let{peers:t,isLoading:n,connectPeer:r}=e;return(0,x.jsx)(kq,{title:"Peers",actions:(0,x.jsx)(s5,{onClick:r,children:"Connect"}),isLoading:n,dataset:(null==t?void 0:t.map(e=>({type:"ip",hash:e})))||[]})}function _L(e){let{size:t,label:n,enabled:r=!0,onChange:i,color:o}=e;return(0,x.jsxs)("div",{className:(0,ea.cx)("flex gap-1.5 items-center",r?"opacity-100":"opacity-50",i?"cursor-pointer":"cursor-auto",i&&(r?"hover:opacity-90":"hover:opacity-60")),onClick:()=>i&&i(!r),children:[o&&(0,x.jsx)("div",{className:"relative top-px",children:(0,x.jsx)(fC,{style:{backgroundColor:o}})}),(0,x.jsx)(tq,{size:t,children:n})]})}var _F=n(92762);let _V={total:"total",average:"average",latest:"latest"};function _z(e){let{category:t,label:n,color:r,sc:i,value:o,extendedSuffix:a,format:s=e=>e.toFixed(2),defaultMode:l,enabledModes:u=["total","average","latest"],isLoading:c,showChange:d=!0}=e,[f,h]=(0,_F.Z)("v0/datum/".concat(t,"/").concat(n),{defaultValue:l});return(0,x.jsx)(k$,{isLoading:c,label:(0,x.jsx)(_L,{label:n,color:r}),actions:(0,x.jsx)(fj,{onChange:e=>h(e.currentTarget.value),defaultValue:f,children:u.map(e=>(0,x.jsx)(fk,{value:e,children:_V[e]},e))}),sc:(null==i?void 0:i[f])!==void 0?new(fd())(i[f]):void 0,extendedSuffix:a,value:(null==o?void 0:o[f])!==void 0&&s?s(o[f]):void 0,comment:i?(0,x.jsxs)("div",{className:"flex items-center gap-4",children:[(0,x.jsx)(kk,{tooltip:"Net change over time range:",fixedTipFiat:10,value:new(fd())(i.diff)}),d&&void 0!==i.change&&(0,x.jsx)(s4,{content:"Percent change over time range",children:(0,x.jsxs)(tq,{size:"14",weight:"semibold",font:"mono",ellipsis:!0,color:"verySubtle",children:[i.change.toFixed(2),"%"]})})]}):o&&(0,x.jsxs)("div",{className:"flex items-center gap-4",children:[(0,x.jsx)(kS,{tooltip:"Net change over time range:",format:e=>s(e.toNumber()),value:new(fd())(o.diff)}),d&&void 0!==o.change&&(0,x.jsx)(s4,{content:"Percent change over time range",children:(0,x.jsxs)(tq,{size:"14",weight:"semibold",font:"mono",ellipsis:!0,color:"verySubtle",children:[o.change.toFixed(2),"%"]})})]})})}function _I(e){let{children:t,bleed:n}=e;return(0,x.jsx)("div",{className:(0,ea.cx)(n?"-mx-5 overflow-hidden":""),children:(0,x.jsx)(l1,{children:(0,x.jsx)("div",{className:(0,ea.cx)("flex gap-4 py-4",n?"px-5 w-fit":""),children:t})})})}function _Z(e){let{children:t,variant:n,align:r}=e;return(0,x.jsx)("div",{className:"relative",style:{top:"primary"===n?"6px":void 0,left:"start"===r?"0px":void 0,right:"end"===r?"0px":void 0},children:(0,x.jsx)(tq,{size:"10",color:"primary"===n?"contrast":"verySubtle",dir:"start"===r?"rtl":"ltr",weight:"primary"===n?"semibold":"regular",ellipsis:!0,children:t})})}function _B(e){let{date:t,align:n,variant:r}=e;return t?(0,x.jsx)(_Z,{variant:r,align:n,children:(0,m0.rN)(t)}):null}function _H(e){let{blockHeight:t,align:n,variant:r}=e;return t?(0,x.jsx)(_Z,{variant:r,align:n,children:t.toLocaleString()}):null}function _U(e){let{label:t,currentHeight:n,range:r,startHeight:i,endHeight:o,color:a,align:s,rounded:l,className:u,showDates:c}=e;if(!i||!o)return null;let d=r.endHeight-r.startHeight,f=(0,m0.pp)(d),h=(0,m0.jr)(n,r.startHeight),p=(0,m0.jr)(n,i),m=(0,m0.jr)(n,o),v=(p-h)/f,g=(m-h)/f;return(0,x.jsxs)("div",{className:(0,ea.cx)("group flex items-center justify-center","absolute -top-[5px] h-4","cursor-pointer","transition-colors"),style:{left:_W(v),width:_W(g-v)},children:[(0,x.jsx)("div",{className:(0,ea.cx)("z-0 absolute w-full h-full","rounded-md","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10"),style:{width:"calc(100% + 8px)",left:"-4px"}}),(0,x.jsx)("div",{className:(0,ea.cx)("z-10 absolute w-full h-1.5",u,"start"===l?"rounded-l-lg":"end"===l?"rounded-r-lg":"rounded-lg","border-y","start"===l?"border-l":"end"===l?"border-r":"border","blue"===a?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-blue-500/50 dark:border-blue-500/50"]:[],"green"===a?["bg-green-300 dark:bg-green-300","group-hover:bg-green-400 dark:group-hover:bg-green-400","border-green-500/50 dark:border-green-500/50"]:[],"amber"===a?["bg-amber-300 dark:bg-amber-300","group-hover:bg-amber-400 dark:group-hover:bg-amber-400","border-amber-500/50 dark:border-amber-500/50"]:[])}),(0,x.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 bottom-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:_W(1-g)}:{left:_W(v)},children:[(0,x.jsx)(_H,{blockHeight:i,align:"start",variant:"primary"}),(0,x.jsx)(_Z,{variant:"primary",children:t}),(0,x.jsx)(_H,{blockHeight:o,align:"end",variant:"primary"})]}),c&&(0,x.jsxs)("div",{className:"flex group-hover/segments:hidden absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:_W(1-g)}:{left:_W(v)},children:[(0,x.jsx)(_B,{date:p,align:"start",variant:"secondary"}),(0,x.jsx)(_B,{date:m,align:"start",variant:"secondary"})]}),(0,x.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:_W(1-g)}:{left:_W(v)},children:[(0,x.jsx)(_B,{date:p,align:"start",variant:"secondary"}),(0,x.jsx)(_B,{date:m,align:"start",variant:"secondary"})]})]})}function _W(e){return"".concat(100*e,"%")}function _q(e){let{currentHeight:t,eventHeight:n,range:r,label:i,bottomLabel:o,color:a,className:s,unconfirmedPing:l=!0}=e,u=!!n&&n>t,c=n&&!u&&t-n<6,d=r.endHeight-r.startHeight,f=(0,m0.pp)(d),h=(0,m0.jr)(t,r.startHeight),p=n?(0,m0.jr)(t,n):0;return n?(0,x.jsx)("div",{className:(0,ea.cx)("group","absolute -top-[5px] w-4 h-4","flex items-center justify-center","rounded-full cursor-pointer","-translate-x-1/2",s),style:{left:"".concat(100*(p?(p-h)/f:0),"%")},children:(0,x.jsxs)("div",{className:(0,ea.cx)("relative w-full h-full","flex items-center justify-center","rounded-full cursor-pointer"),children:[l&&c&&(0,x.jsx)("div",{className:(0,ea.cx)("z-0 absolute w-1.5 h-1.5","rounded-full","bg-amber-500 dark:bg-amber-200","animate-pingslow")}),(0,x.jsx)("div",{className:(0,ea.cx)("z-0 absolute w-4 h-4","rounded-full","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10")}),(0,x.jsx)("div",{className:(0,ea.cx)("absolute w-1.5 h-1.5","rounded-full","border","green"===a?["bg-green-500 dark:bg-green-500","group-hover:bg-green-600 dark:group-hover:bg-green-600","border-white dark:border-white"]:[],"amber"===a?["bg-amber-500 dark:bg-amber-500","group-hover:bg-amber-600 dark:group-hover:bg-amber-600","border-white dark:border-white"]:[],"gray"===a?["bg-gray-700 dark:bg-graydark-900","group-hover:bg-gray-800 dark:group-hover:bg-graydark-800","border-white dark:border-white"]:[],"blue"===a?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-white dark:border-white"]:[])}),(0,x.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 bottom-[100%] left-1.5",children:[(0,x.jsx)(_H,{blockHeight:n,align:"start",variant:"primary"}),(0,x.jsx)(_Z,{variant:"primary",children:i})]}),(0,x.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 top-[100%] left-1.5",children:[(0,x.jsx)(_B,{date:p,align:"start",variant:"secondary"}),o&&(0,x.jsx)(_Z,{variant:"secondary",children:o})]})]})}):null}function _$(e){let{currentHeight:t,contractHeightStart:n,contractHeightEnd:r,proofWindowHeightStart:i,proofWindowHeightEnd:o,revisionHeight:a,proofHeight:s,range:l}=e,u=t-n<6;return(0,x.jsx)("div",{className:"group/main relative w-full",children:(0,x.jsx)("div",{className:"relative py-6",children:(0,x.jsxs)("div",{className:"relative z-10 h-1.5",children:[(0,x.jsx)("div",{className:"absolute h-full w-full bg-gray-300 dark:bg-graydark-400 rounded-lg"}),(0,x.jsxs)("div",{className:"group/segments",children:[(0,x.jsx)(_U,{label:"contract duration",currentHeight:t,startHeight:n,endHeight:r,range:l,color:"blue",align:"center",rounded:"start",className:u?"border-dotted opacity-50":"",showDates:!0}),(0,x.jsx)(_U,{label:"proof window",currentHeight:t,startHeight:i,endHeight:o,range:l,color:"green",align:"end",rounded:"end",className:u?"border-dotted opacity-50":""}),(0,x.jsx)(_q,{label:"contract formation",bottomLabel:u?"unconfirmed":"",currentHeight:t,eventHeight:n,range:l,color:u?"amber":"blue",className:"z-20"}),(0,x.jsx)(_q,{label:"last revision",currentHeight:t,eventHeight:a,range:l,color:"green",className:"z-20"}),(0,x.jsx)(_q,{label:"storage proof",currentHeight:t,eventHeight:s,range:l,color:"green",className:"z-20"}),(0,x.jsx)(_q,{label:"current block",currentHeight:t,eventHeight:t,range:l,color:"gray",className:"z-10",unconfirmedPing:!1})]})]})})})}var _Y=n(17335),_G=n.n(_Y);function _X(e){let{label:t,columns:n,enabled:r,setColumnsVisible:i,setColumnsHidden:o}=e,a=0===_G()(n,r).length,s=_G()(n,r).length===n.length;return(0,x.jsxs)(c_,{children:[(0,x.jsx)(cY,{children:t}),(0,x.jsxs)(cO,{children:[(0,x.jsx)(s5,{tip:"".concat(t,": show all"),icon:a?"contrast":"hover",variant:"ghost",onClick:e=>{e.stopPropagation(),i(n)},children:(0,x.jsx)(s6.xVB,{})}),(0,x.jsx)(s5,{icon:s?"contrast":"hover",tip:"".concat(t,": hide all"),variant:"ghost",onClick:e=>{e.stopPropagation(),o(n)},children:(0,x.jsx)(s6.pHg,{})})]})]})}function _K(e){let{title:t,children:n}=e;return(0,x.jsxs)("div",{className:"flex flex-col gap-6",children:[t&&(0,x.jsx)(cz,{anchorLink:!0,size:"24",children:t}),(0,x.jsx)(tG,{className:"p-6",children:(0,x.jsx)("div",{className:"flex flex-col gap-6",children:n})})]})}function _Q(e){let{title:t,description:n,control:r}=e;return(0,x.jsxs)("div",{className:"flex gap-10 justify-between",children:[(0,x.jsxs)("div",{className:"flex flex-col gap-2 max-w-[600px]",children:[(0,x.jsx)(cz,{size:"20",children:t}),(0,x.jsx)(t$,{size:"14",children:n})]}),(0,x.jsx)("div",{className:"",children:r})]})}function _J(e){let{open:t,params:n,trigger:r,onOpenChange:i}=e,{body:o,title:a,variant:s,action:l,onConfirm:u}=n||{},c=(0,Sq.cI)(),d=(0,b.useCallback)(()=>{u&&u(),i(!1)},[u,i]);return(0,x.jsx)(l3,{title:a,trigger:r,open:t,onOpenChange:i,contentVariants:{className:"w-[400px]"},children:(0,x.jsx)("form",{onSubmit:c.handleSubmit(d),children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[o,(0,x.jsx)("div",{className:"flex gap-1 justify-end",children:(0,x.jsx)(kQ,{variant:s,form:c,size:"small",children:l})})]})})})}function _0(e){let{name:t,peerCount:n,isSynced:r,nodeBlockHeight:i,connectPeer:o}=e;return(0,x.jsxs)("div",{className:"flex justify-between items-center",children:[(0,x.jsx)(tq,{font:"mono",weight:"bold",size:"20",children:t}),(0,x.jsxs)("div",{className:"flex items-center",children:[n?(0,x.jsxs)(s5,{className:"relative left-2 only:left-0",variant:"ghost",onClick:o,tip:"".concat(n," connected peers"),children:[(0,x.jsx)(tq,{color:"subtle",children:n.toLocaleString()}),(0,x.jsx)(s6.RK4,{})]}):null,i&&r?(0,x.jsx)(s4,{content:"Blockchain is synced",children:(0,x.jsx)("div",{className:"relative left-2",children:(0,x.jsxs)(s5,{variant:"ghost",state:"waiting",children:[(0,x.jsx)(tq,{color:"subtle",children:i.toLocaleString()}),(0,x.jsx)(tq,{color:"green",children:(0,x.jsx)(s6.Y3p,{})})]})})}):null]})]})}function _1(e){let{nodeBlockHeight:t,networkBlockHeight:n,moreThan100BlocksToSync:r,percent:i}=e;return(0,x.jsxs)("div",{className:"flex flex-col justify-between h-full mb-1",children:[(0,x.jsx)(d_,{variant:"accent",value:t&&n?t:0,max:n||1,className:""}),(0,x.jsxs)("div",{className:"flex justify-between mt-1.5",children:[(0,x.jsx)(tq,{color:"subtle",size:"10",children:"Syncing..."}),t&&n?r?(0,x.jsx)(tq,{color:"subtle",size:"10",children:"".concat(t.toLocaleString()," / ").concat(n.toLocaleString()," (").concat(i,"%)")}):(0,x.jsx)(tq,{color:"subtle",size:"10",children:"(".concat(i,"%)")}):null]})]})}function _2(e){let{name:t,peerCount:n,connectPeer:r,isSynced:i,syncPercent:o,nodeBlockHeight:a,estimatedBlockHeight:s,firstTimeSyncing:l,moreThan100BlocksToSync:u,children:c}=e;return(0,x.jsx)(hO,{rootProps:{openDelay:100,closeDelay:1e3},contentProps:{side:"right",align:"start",sideOffset:5,className:"!max-w-none"},trigger:(0,x.jsxs)("div",{className:"relative hover:scale-105 transition-transform",children:[i||100===o||0===o?null:(0,x.jsx)("div",{className:"absolute -bottom-2.5 w-full flex justify-center",children:(0,x.jsxs)(tq,{className:"bg-amber-500 py-px px-1 rounded-sm scale-75",size:"10",children:[o,"%"]})}),(0,x.jsx)(cJ,{size:30})]}),children:(0,x.jsxs)("div",{className:"flex flex-col gap-2 px-1 pt-1 pb-2 w-[350px]",children:[(0,x.jsx)(_0,{nodeBlockHeight:a,isSynced:i,name:t,peerCount:n,connectPeer:r}),i?(0,x.jsx)(cb,{className:"w-full mb-0.5"}):(0,x.jsx)(_1,{percent:o,nodeBlockHeight:a,networkBlockHeight:s,moreThan100BlocksToSync:u}),l&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(tq,{color:"contrast",size:"14",children:"Welcome to Sia! The blockchain is syncing to the current network height. Depending on your system this process may take a while."}),(0,x.jsx)(cb,{className:"w-full mb-1"})]}),c]})})}function _4(e){let{testnetName:t}=e;return(0,x.jsxs)("div",{className:"flex gap-2 items-center justify-center py-2 px-3 bg-amber-600 dark:bg-amber-500",children:[(0,x.jsx)(tq,{color:"lo",children:(0,x.jsx)(s6.RdX,{})}),(0,x.jsxs)(tq,{size:"14",color:"lo",children:["You are on the ",t,"."]})]})}function _3(e){let{type:t,label:n,link:r,tip:i,icon:o,value:a,onClick:s,decimalsLimit:l,units:u}=e;return(0,x.jsxs)("div",{className:"flex justify-between items-center",children:[(0,x.jsx)(s4,{align:"start",side:"bottom",content:i,children:(0,x.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,x.jsx)(tq,{className:"flex relative",children:o||(0,x.jsx)(s6.RdX,{})}),(0,x.jsx)(tq,{size:"12",ellipsis:!0,children:r?(0,x.jsx)(cK,{href:r,target:"_blank",children:n}):n})]})}),(0,x.jsx)("div",{className:(0,ea.cx)("flex items-center",s?"cursor-pointer":""),onClick:()=>{s&&s(a)},children:"siacoin"===t?(0,x.jsx)(kw,{value:a,variant:"value",size:"12",fixed:l,dynamicUnits:!1,showTooltip:!1}):(0,x.jsx)(kS,{value:a,variant:"value",size:"12",format:e=>"".concat(ff(e,l)," ").concat(u)})})]})}function _5(e){let{name:t,form:n,fields:r}=e,i=r[t],{average:o,suggestion:a,placeholder:s,units:l,suggestionTip:u,averageTip:c,after:d,decimalsLimitSc:f=6,decimalsLimitFiat:h=6,tipsDecimalsLimitSc:p=0}=i,{setValue:m,value:v,error:g}=SG({name:t,field:i,form:n}),y=d||(()=>null),w=(0,b.useMemo)(()=>s?new(fd())(s):a&&"boolean"!=typeof a?new(fd())(a):void 0,[s,a]);return(0,x.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,x.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,x.jsx)(fy,{name:t,size:"small",sc:v,units:l,decimalsLimitSc:f,decimalsLimitFiat:h,error:g,changed:n.formState.dirtyFields[t],placeholder:w,onChange:e=>{m(e,!0)},onBlur:()=>{m(v,!0)}}),(0,x.jsx)(y,{name:t,form:n,fields:r}),o&&(0,x.jsx)(_3,{type:"siacoin",label:"Network average",tip:c||"Averages provided by Sia Central.",decimalsLimit:p,value:(0,m0.qN)(o),onClick:()=>{m(o,!0)}}),a&&u&&(0,x.jsx)(_3,{type:"siacoin",label:"Suggestion",tip:u,decimalsLimit:p,value:(0,m0.qN)(a),onClick:()=>{m(a,!0)}})]}),(0,x.jsx)("div",{className:"h-[20px]",children:(0,x.jsx)(kX,{form:n,name:t})})]})}function _6(e){let{name:t,form:n,fields:r}=e,i=r[t],{average:o,averageTip:a,suggestion:s,suggestionTip:l,decimalsLimit:u=2,placeholder:c,units:d}=i,{setValue:f,value:h,error:p}=SG({form:n,field:i,name:t}),m=(0,b.useMemo)(()=>c?new(fd())(c):s&&"boolean"!=typeof s?new(fd())(s):void 0,[c,s]);return(0,x.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,x.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,x.jsx)(fh,{name:t,value:h,units:d,decimalsLimit:u,placeholder:m,state:p?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:e=>{let t=void 0!==e?new(fd())(e):void 0;f(t,!0)},onBlur:()=>{f(h,!0)}}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[o&&(0,x.jsx)(_3,{type:"number",label:"Network average",tip:a||"Averages provided by Sia Central.",decimalsLimit:u,value:o,units:d,onClick:()=>{f(o,!0)}}),s&&l&&(0,x.jsx)(_3,{type:"number",label:"Suggestion",tip:l,decimalsLimit:u,value:s,units:d,onClick:()=>{f(s,!0)}})]})]}),(0,x.jsx)("div",{className:"h-[20px]",children:(0,x.jsx)(kX,{form:n,name:t})})]})}function _8(e){let{label:t,link:n,tip:r,value:i,onClick:o}=e;return(0,x.jsxs)("div",{className:"flex justify-between items-center",children:[(0,x.jsx)(s4,{align:"start",side:"bottom",content:r,children:(0,x.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,x.jsx)(tq,{className:"flex relative",children:(0,x.jsx)(s6.RdX,{})}),(0,x.jsx)(tq,{size:"12",children:n?(0,x.jsx)(cK,{href:n,target:"_blank",children:t}):t})]})}),(0,x.jsx)("div",{className:"flex cursor-pointer items-center",onClick:o,children:(0,x.jsx)(tq,{size:"12",children:(0,x.jsx)(lm,{children:i})})})]})}function _7(e){let{name:t,form:n,fields:r,type:i}=e,o=r[t],{placeholder:a,suggestion:s,suggestionTip:l}=o,{ref:u,onChange:c,setValue:d,onBlur:f,error:h}=SG({name:t,form:n,field:o});return(0,x.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,x.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,x.jsx)(dJ,{ref:u,name:t,placeholder:a,type:i,state:h?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:c,onBlur:f}),(0,x.jsx)("div",{className:"flex flex-col gap-2",children:s&&l&&(0,x.jsx)(_8,{label:"Suggestion",tip:l,value:s,onClick:()=>{d(s,!0)}})})]}),(0,x.jsx)("div",{className:"h-[20px]",children:(0,x.jsx)(kX,{form:n,name:t})})]})}function _9(e){let{name:t,form:n,fields:r}=e,i=r[t],{suggestion:o,suggestionTip:a}=i,{setValue:s,value:l,error:u}=SG({name:t,field:i,form:n});return(0,x.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,x.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,x.jsx)("div",{className:"flex justify-end w-full",children:(0,x.jsx)(fI,{name:t,size:"medium",checked:l,state:u?"invalid":n.formState.dirtyFields[t]?"valid":"default",onCheckedChange:e=>{s(e,!0)},onBlur:()=>{s(l,!0)}})}),(0,x.jsx)("div",{className:"flex flex-col gap-2",children:void 0!==o&&a&&(0,x.jsx)(_8,{label:"Suggestion",tip:a,value:o?"on":"off",onClick:()=>{s(o,!0)}})})]}),(0,x.jsx)("div",{className:"h-[20px]",children:(0,x.jsx)(kX,{form:n,name:t})})]})}function Oe(e){let{name:t,form:n,fields:r}=e,i=r[t],{options:o,suggestion:a,suggestionTip:s}=i,{ref:l,onChange:u,setValue:c,onBlur:d,value:f,error:h}=SG({name:t,form:n,field:i});return(0,x.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,x.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,x.jsx)("div",{className:"flex justify-end w-full",children:(0,x.jsx)(fj,{ref:l,name:t,size:"small",value:f,state:h?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:u,onBlur:d,children:null==o?void 0:o.map(e=>(0,x.jsx)(fk,{value:e.value,children:e.label},e.value))})}),(0,x.jsx)("div",{className:"flex flex-col gap-2",children:void 0!==a&&s&&(0,x.jsx)(_8,{label:"Suggestion",tip:s,value:a?"on":"off",onClick:()=>{c(a,!0)}})})]}),(0,x.jsx)("div",{className:"h-[20px]",children:(0,x.jsx)(kX,{form:n,name:t})})]})}function Ot(e){let{title:t,category:n,form:r,fields:i}=e,o=Object.entries(i).filter(e=>{let[t,i]=e;return i.category===n&&!i.hidden&&(!i.show||i.show(r.getValues()))});return 0===o.length?null:(0,x.jsx)(_K,{title:t,children:o.map((e,t)=>{let[n,a]=e;return(0,x.jsxs)(b.Fragment,{children:[(0,x.jsx)(_Q,{title:a.title,description:a.description,control:"number"===a.type?(0,x.jsx)(_6,{form:r,name:n,fields:i}):"siacoin"===a.type?(0,x.jsx)(_5,{form:r,name:n,fields:i}):"text"===a.type?(0,x.jsx)(_7,{form:r,name:n,fields:i}):"password"===a.type?(0,x.jsx)(_7,{form:r,type:"password",fields:i,name:n}):"boolean"===a.type?(0,x.jsx)(_9,{form:r,name:n,fields:i}):"select"===a.type?(0,x.jsx)(Oe,{form:r,name:n,fields:i}):null}),t{let t=void 0!==e?new(fd())(e):void 0;u(t,!0)},onBlur:()=>{u(d,!0)}})})}function Or(e){let{name:t,form:n,fields:r,size:i="medium",group:o=!0,children:a}=e,s=r[t],{setValue:l,value:u,error:c}=SG({name:t,field:s,form:n}),d=(0,x.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,x.jsx)(fI,{name:t,size:i,checked:u,state:c?"invalid":n.formState.dirtyFields[t]?"valid":"default",onCheckedChange:e=>{l(e,!0)},onBlur:()=>{l(u,!0)}}),a]});return o?(0,x.jsx)(kK,{title:s.title,name:t,form:n,children:d}):d}var Oi=n(75652),Oo=n.n(Oi);s6.lg1,s6.eHR,s6.I$H,s6.KiD,s6.P5r,s6.CCF,s6.w9S,s6.EL$,s6.aPl,s6.wEY,s6.EOT,s6.kSc,s6.W$S,s6.lJ7,s6.ORH,s6.ka0,s6.BdP,s6.d19,s6.Mes,s6.VUg,s6.U_S,s6.T85;let Oa=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,[a,s]=(0,b.useState)(!0),l=(0,b.useRef)(!1),u=(0,b.useRef)(0);return(0,b.useEffect)(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,b.createElement)(tO,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:(0,b.useCallback)(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:(0,b.useCallback)(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:(0,b.useCallback)(e=>{l.current=e},[]),disableHoverableContent:i},o)};function Os(e){let{children:t}=e,[n,r]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{r(!0)},[]),(0,x.jsx)("div",{children:n?t:null})}function Ol(e){let{className:t,passwordProtectRequestHooks:n,fallback:r,children:i,lockRoutes:o}=e;return(0,x.jsx)(Os,{children:(0,x.jsx)(fm.kl,{fallback:r,children:(0,x.jsx)(ps.f,{attribute:"class",children:(0,x.jsx)(Oa,{children:(0,x.jsx)(fm.bW,{lockRoutes:o,passwordProtectRequestHooks:n,children:(0,x.jsxs)("div",{id:"root",className:t,children:[(0,x.jsx)(ks,{}),i]})})})})})})}var Ou=n(30898),Oc=n.n(Ou);let Od=[];function Of(e,t){let{columns:n,columnsDefaultVisible:r,defaultSortField:i,sortOptions:o,disabledCategories:a}={disabledCategories:Od,...t},[s,l]=(0,_F.Z)("".concat(e,"/enabledColumns"),{defaultValue:r}),u=(0,b.useCallback)(e=>{l(t=>t.includes(e)?t.filter(t=>t!==e):t.concat(e))},[l]),c=(0,b.useCallback)(e=>{l(t=>Oo()([...t,...e]))},[l]),d=(0,b.useCallback)(e=>{l(t=>_G()(t,e))},[l]),f=(0,b.useCallback)(()=>{l(r)},[l,r]),h=(0,b.useMemo)(()=>n.filter(e=>{let t=null==a?void 0:a.includes(e.category||"");return!e.fixed&&!t}),[n,a]),p=(0,b.useMemo)(()=>n.filter(e=>{let t=e.fixed||s.includes(e.id),n=null==a?void 0:a.includes(e.category||"");return t&&!n}).map(e=>e.id),[n,s,a]),{sortField:m,sortDirection:v,setSortField:g,setSortDirection:y,toggleSort:x}=function(e,t){let{defaultSortField:n,sortOptions:r,enabledColumns:i}=t,[o,a]=(0,_F.Z)("".concat(e,"/sortField"),{defaultValue:n}),[s,l]=(0,_F.Z)("".concat(e,"/sortDirection"),{defaultValue:"desc"}),u=(0,b.useCallback)(e=>{if(o!==e){a(e),l("asc");return}l(e=>"desc"===e?"asc":"desc")},[o,a,l]),c=(0,b.useMemo)(()=>{if(!r)return[];let e=r.map(e=>e.id);return Oc()(e,i)},[r,i]);return{toggleSort:u,setSortDirection:l,setSortField:a,sortableColumns:c,sortField:o,sortDirection:s}}(e,{defaultSortField:i,sortOptions:o,enabledColumns:p}),w=(0,b.useMemo)(()=>{if(!o)return[];let e=o.map(e=>e.id);return Oc()(e,p)},[o,p]);return{configurableColumns:h,enabledColumns:p,toggleColumnVisibility:u,toggleSort:x,setSortDirection:y,setSortField:g,sortableColumns:w,sortField:m,setColumnsVisible:c,setColumnsHidden:d,sortDirection:v,resetDefaultColumnVisibility:f}}function Oh(){let e=(0,k8.useRouter)(),[t,n]=(0,b.useState)([]),r=(0,b.useCallback)(()=>{let t={...e.query};delete t.limit,delete t.offset,e.replace({query:t})},[e]),i=(0,b.useCallback)(e=>{n(t=>{let n=t.filter(t=>t.id!==e.id);return n.concat(e)}),r()},[n,r]),o=(0,b.useCallback)(()=>{n([]),r()},[n,r]),a=(0,b.useCallback)(e=>{n(t=>t.filter(t=>t.id!==e)),r()},[n,r]),s=(0,b.useCallback)(()=>{t.length&&(n(e=>e.slice(0,-1)),r())},[t,n,r]);return{filters:t,setFilter:i,removeFilter:a,removeLastFilter:s,resetFilters:o}}function Op(e){return(0,m0.B$)(e).times(4)}function Om(e){return(0,m0.Uz)(Op(e))}function Ov(e){var t;return t=(0,m0.Hz)(e),(0,m0.il)(t).div(4).integerValue()}function Og(e,t){let n=t.reduce((e,t)=>{let n=e.startHeight,r=e.endHeight;return t.contractHeightStartr&&(r=t.contractHeightEnd),{startHeight:n,endHeight:r}},{startHeight:e,endHeight:0});n.endHeight=Math.max(n.endHeight,e)+(0,m0.gU)(5),n.startHeight=n.startHeight-(0,m0.gU)(5);let r=[],i=n.startHeight;for(;i<=n.endHeight;)r.push(i),i+=EO(1);let o=r.reduce((e,t)=>({...e,[t]:{total:null,timestamp:t}}),{});return{allDatesMap:o,range:n}}new(fd())(0)},95753:function(e,t,n){"use strict";n.d(t,{bW:function(){return F},kl:function(){return $},gw:function(){return o},Tc:function(){return W},du:function(){return q},Hv:function(){return L},iv:function(){return U},Nf:function(){return H},E:function(){return B},mw:function(){return z},q0:function(){return V},Tb:function(){return M},V1:function(){return Z},I7:function(){return I}});var r=n(79381);function i(e,t){return!e||t?null:e}function o(e){return new Promise(t=>setTimeout(t,e))}var a=n(89644),s=n.n(a),l=n(2784);function u(e){return{...e,config:{...null==e?void 0:e.config}}}function c(e){return{...e,config:{...null==e?void 0:e.config}}}function d(e){return{...e,config:{...null==e?void 0:e.config}}}function f(e,t,n){return(null==n?void 0:n.api)||(null==t?void 0:t.api)||e.api}function h(e,t,n){var r,i;let o=function(e,t,n){var r,i,o,a;let s={"Content-Type":"application/json",...null===(i=t.config)||void 0===i?void 0:null===(r=i.axios)||void 0===r?void 0:r.headers,...null==n?void 0:null===(a=n.config)||void 0===a?void 0:null===(o=a.axios)||void 0===o?void 0:o.headers},l=f(e,t,n);return e.api===l&&e.password&&(s.Authorization="Basic "+btoa(":".concat(e.password))),s}(e,t,n);return{responseType:"json",...null===(r=t.config)||void 0===r?void 0:r.axios,...null==n?void 0:null===(i=n.config)||void 0===i?void 0:i.axios,headers:o}}function p(e,t,n,r){if(!t)return null;let i=(null==n?void 0:n.params)||{};if(r&&r.params&&(i={...i,...r.params}),!(t=function(e,t){if(e&&t){let n=Object.keys(t);for(let r of n){let n=String(t[r]);e.includes(":".concat(r))?e=e.replace(":".concat(r),n):e.includes("?")?e+="&".concat(r,"=").concat(encodeURIComponent(n)):e+="?".concat(r,"=").concat(encodeURIComponent(n))}}return e}(t,i)))return null;let o=f(e,n,r);return o===e.api?"".concat(o,"/api").concat(t):"".concat(o).concat(t)}function m(e,t,n,r){let i=f(e,n,r);return i===e.api?t.replace("".concat(i,"/api"),""):t.replace(i,"")}var v=n(52322),g=n(82876),y=n(92762);function x(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}let b=["geforce 320m","geforce 8600","geforce 8600m gt","geforce 8800 gs","geforce 8800 gt","geforce 9400","geforce 9400m g","geforce 9400m","geforce 9600m gt","geforce 9600m","geforce fx go5200","geforce gt 120","geforce gt 130","geforce gt 330m","geforce gtx 285","google swiftshader","intel g41","intel g45","intel gma 4500mhd","intel gma x3100","intel hd 3000","intel q45","legacy","mali-2","mali-3","mali-4","quadro fx 1500","quadro fx 4","quadro fx 5","radeon hd 2400","radeon hd 2600","radeon hd 4670","radeon hd 4850","radeon hd 4870","radeon hd 5670","radeon hd 5750","radeon hd 6290","radeon hd 6300","radeon hd 6310","radeon hd 6320","radeon hd 6490m","radeon hd 6630m","radeon hd 6750m","radeon hd 6770m","radeon hd 6970m","sgx 543","sgx543"];function w(e){return e=e.toLowerCase().replace(/.*angle ?\((.+)\)(?: on vulkan [0-9.]+)?$/i,"$1").replace(/\s(\d{1,2}gb|direct3d.+$)|\(r\)| \([^)]+\)$/g,"").replace(/(?:vulkan|opengl) \d+\.\d+(?:\.\d+)?(?: \((.*)\))?/,"$1")}let E="undefined"==typeof window,j=(()=>{if(E)return;let{userAgent:e,platform:t,maxTouchPoints:n}=window.navigator,r=/(iphone|ipod|ipad)/i.test(e),i="iPad"===t||"MacIntel"===t&&n>0&&!window.MSStream;return{isIpad:i,isMobile:/android/i.test(e)||r||i,isSafari12:/Version\/12.+Safari/.test(e)}})();class k extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}let S=[],_=[];function O(e){return null!=e}let C=({mobileTiers:e=[0,15,30,60],desktopTiers:t=[0,15,30,60],override:n={},glContext:r,failIfMajorPerformanceCaveat:i=!1,benchmarksURL:o="https://unpkg.com/detect-gpu@5.0.34/dist/benchmarks"}={})=>x(void 0,void 0,void 0,function*(){let a={};if(E)return{tier:0,type:"SSR"};let{isIpad:s=!!(null==j?void 0:j.isIpad),isMobile:l=!!(null==j?void 0:j.isMobile),screenSize:u=window.screen,loadBenchmarks:c=e=>x(void 0,void 0,void 0,function*(){let t=yield fetch(`${o}/${e}`).then(e=>e.json());if(4>parseInt(t.shift().split(".")[0],10))throw new k("Detect GPU benchmark data is out of date. Please update to version 4x");return t})}=n,{renderer:d}=n,f=(e,t,n,r,i)=>({device:i,fps:r,gpu:n,isMobile:l,tier:e,type:t}),h,p="";if(d)h=[d=w(d)];else{var m;let e=r||function(e,t=!1){let n={alpha:!1,antialias:!1,depth:!1,failIfMajorPerformanceCaveat:t,powerPreference:"high-performance",stencil:!1};e&&delete n.powerPreference;let r=window.document.createElement("canvas"),i=r.getContext("webgl",n)||r.getContext("experimental-webgl",n);return null!=i?i:void 0}(null==j?void 0:j.isSafari12,i);if(!e)return f(0,"WEBGL_UNSUPPORTED");let t=e.getExtension("WEBGL_debug_renderer_info");if(t&&(d=e.getParameter(t.UNMASKED_RENDERER_WEBGL)),!d)return f(1,"FALLBACK");p=d,h="apple gpu"===(m=d=w(d))?function(e,t,n){let r;if(!n)return[t];let i=function(e){let t=e.createShader(35633),n=e.createShader(35632),r=e.createProgram();if(!(n&&t&&r))return;e.shaderSource(t,"\n precision highp float;\n attribute vec3 aPosition;\n varying float vvv;\n void main() {\n vvv = 0.31622776601683794;\n gl_Position = vec4(aPosition, 1.0);\n }\n "),e.shaderSource(n,"\n precision highp float;\n varying float vvv;\n void main() {\n vec4 enc = vec4(1.0, 255.0, 65025.0, 16581375.0) * vvv;\n enc = fract(enc);\n enc -= enc.yzww * vec4(1.0 / 255.0, 1.0 / 255.0, 1.0 / 255.0, 0.0);\n gl_FragColor = enc;\n }\n "),e.compileShader(t),e.compileShader(n),e.attachShader(r,t),e.attachShader(r,n),e.linkProgram(r),e.detachShader(r,t),e.detachShader(r,n),e.deleteShader(t),e.deleteShader(n),e.useProgram(r);let i=e.createBuffer();e.bindBuffer(34962,i),e.bufferData(34962,new Float32Array([-1,-1,0,3,-1,0,-1,3,0]),35044);let o=e.getAttribLocation(r,"aPosition");e.vertexAttribPointer(o,3,5126,!1,0,0),e.enableVertexAttribArray(o),e.clearColor(1,1,1,1),e.clear(16384),e.viewport(0,0,1,1),e.drawArrays(4,0,3);let a=new Uint8Array(4);return e.readPixels(0,0,1,1,6408,5121,a),e.deleteProgram(r),e.deleteBuffer(i),a.join("")}(e),o="801621810",a="8016218135",s="80162181161",l=(null==j?void 0:j.isIpad)?[["a7",s,12],["a8",a,15],["a8x",a,15],["a9",a,15],["a9x",a,15],["a10",a,15],["a10x",a,15],["a12",o,15],["a12x",o,15],["a12z",o,15],["a14",o,15],["m1",o,15]]:[["a7",s,12],["a8",a,12],["a9",a,15],["a10",a,15],["a11",o,15],["a12",o,15],["a13",o,15],["a14",o,15]];return"80162181255"===i?r=l.filter(([,,e])=>e>=14):(r=l.filter(([,e])=>e===i)).length||(r=l),r.map(([e])=>`apple ${e} gpu`)}(e,m,l):[m]}let v=(yield Promise.all(h.map(function(e){var t;return x(this,void 0,void 0,function*(){let n;let r=(e=>{let t=l?["adreno","apple","mali-t","mali","nvidia","powervr","samsung"]:["intel","apple","amd","radeon","nvidia","geforce"];for(let n of t)if(e.includes(n))return n})(e);if(!r)return;let i=`${l?"m":"d"}-${r}${s?"-ipad":""}.json`,o=a[i]=null!==(t=a[i])&&void 0!==t?t:c(i);try{n=yield o}catch(e){if(e instanceof k)throw e;return}let d=function(e){var t;let n=(e=e.replace(/\([^)]+\)/,"")).match(/\d+/)||e.match(/(\W|^)([A-Za-z]{1,3})(\W|$)/g);return null!==(t=null==n?void 0:n.join("").replace(/\W|amd/g,""))&&void 0!==t?t:""}(e),f=n.filter(([,e])=>e===d);f.length||(f=n.filter(([t])=>t.includes(e)));let h=f.length;if(0===h)return;let p=e.split(/[.,()\[\]/\s]/g).sort().filter((e,t,n)=>0===t||e!==n[t-1]).join(" "),m,[v,,,,g]=h>1?f.map(e=>[e,function(e,t){if(e===t)return 0;let n=e;e.length>t.length&&(e=t,t=n);let r=e.length,i=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i);)r--,i--;let o,a=0;for(;au?l>u?u+1:l:l>s?s+1:l;return u}(p,e[2])]).sort(([,e],[,t])=>e-t)[0][0]:f[0],y=Number.MAX_VALUE,{devicePixelRatio:x}=window,b=u.width*x*u.height*x;for(let e of g){let[t,n]=e,r=t*n,i=Math.abs(b-r);ie===n?t-r:e-n);if(!v.length){let e=b.find(e=>d.includes(e));return e?f(0,"BLOCKLISTED",e):f(1,"FALLBACK",`${d} (${p})`)}let[,g,y,C]=v[0];if(-1===g)return f(0,"BLOCKLISTED",y,g,C);let M=l?e:t,A=0;for(let e=0;e=M[e]&&(A=e);return f(A,"BENCHMARK",y,g,C)});function M(){var e,t;let n=null===(e=(t=window).matchMedia)||void 0===e?void 0:e.call(t,"(prefers-reduced-motion: reduce)");return!n||!!n.matches}let A=(0,l.createContext)({}),T=()=>(0,l.useContext)(A);function P(e){let{children:t}=e,n=function(){let[e,t]=(0,l.useState)({}),n=(0,l.useCallback)((e,n)=>{t(t=>({...t,[e]:{key:e,...n}}))},[t]),r=(0,l.useCallback)(e=>{t(t=>(delete t[e],{...t}))},[t]),i=(0,l.useCallback)(()=>{t({})},[t]),o=(0,l.useMemo)(()=>Object.entries(e).map(e=>e[1]),[e]);return{setWorkflow:n,removeWorkflow:r,resetWorkflows:i,workflows:o}}();return(0,v.jsx)(A.Provider,{value:n,children:t})}let N=[{id:"usd",label:"USD",prefix:"$",fixed:2},{id:"cad",label:"CAD",prefix:"$",fixed:2},{id:"eur",label:"EUR",prefix:"€",fixed:2},{id:"gbp",label:"GBP",prefix:"\xa3",fixed:2},{id:"jpy",label:"JPY",prefix:"\xa5",fixed:2},{id:"aud",label:"AUD",prefix:"$",fixed:2},{id:"rub",label:"RUB",prefix:"₽",fixed:2},{id:"cny",label:"CNY",prefix:"\xa5",fixed:2},{id:"btc",label:"BTC",prefix:"₿",fixed:6},{id:"eth",label:"ETH",prefix:"Ξ",fixed:6}],R={api:"",allowCustomApi:!1,siaCentral:!0,password:void 0,currency:N[0],currencyDisplay:"bothPreferSc",recentApis:{},autoLock:!1,autoLockTimeout:6e5},D=(0,l.createContext)({}),L=()=>(0,l.useContext)(D);function F(e){let{children:t,...n}=e,i=function(e){let{passwordProtectRequestHooks:t,lockRoutes:n,defaultSettings:i}=e,o=(0,l.useMemo)(()=>({...R,...i}),[i]),[a,s]=(0,y.Z)("v1/settings",{defaultValue:o});(0,l.useEffect)(()=>{s(e=>({...o,...e}))},[]);let u=(0,l.useMemo)(()=>({...o,...a}),[a,o]),{resetWorkflows:c}=T(),d=(0,l.useCallback)(e=>{s(t=>({...t,...e}))},[s]),f=(0,l.useCallback)(e=>{let t=N.find(t=>t.id===e);t&&d({currency:t})},[d]),h=(0,g.useRouter)(),p=(0,g.usePathname)(),[m,v]=(0,l.useState)({}),x=(0,l.useCallback)((e,t)=>{v(n=>({...n,[e]:t}))},[v]),b=(0,l.useCallback)(()=>{for(let[e,t]of(n&&h.push("".concat(n.login,"?prev=").concat([n.login].includes(p)?n.home:p)),d({password:""}),c(),(0,r.JG)(()=>!0,void 0,{revalidate:!1}),Object.entries(m)))t&&t()},[h,n,d,c,m,p]),w=function(e){let t=(0,g.usePathname)();return![e.login].includes(t)}({login:(null==n?void 0:n.login)||"/login"}),E=(0,l.useMemo)(()=>!!u.password,[u]),j=function(){let e=M(),[t,n]=(0,l.useState)(!1),[r,i]=(0,l.useState)(!1),[{isGpuEnabled:o,hasUserSet:a},s]=(0,y.Z)("v1/gpuFeatures",{defaultValue:{isGpuEnabled:!e,hasUserSet:!1}}),u=(0,l.useCallback)(function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];s(n=>({...n,isGpuEnabled:e,hasUserSet:t}))},[s]),c=(0,l.useCallback)(async()=>{let e=!1;{let t=await C();console.log("GPU",t),e=t.tier>0,!a&&t.tier<2&&u(!1,!1)}i(e),n(!0)},[i,u,a]);return(0,l.useEffect)(()=>{c()},[]),{hasCheckedGpu:t,canGpuRender:r,isGpuEnabled:o,shouldRender:r&&o,setCanGpuRender:i,setIsGpuEnabled:u}}();return{settings:u,setSettings:d,setCurrency:f,currencyOptions:N,gpu:j,lock:b,isUnlockedAndAuthedRoute:E&&w,passwordProtectRequestHooks:t,setOnLockCallback:x}}(n);return(0,v.jsx)(D.Provider,{value:i,children:t})}function V(e){var t;let n=(0,l.useMemo)(()=>c(e),[e]),{settings:o,passwordProtectRequestHooks:a}=L(),u=p(o,n.route,n,void 0),d=(0,l.useMemo)(()=>i(u?"".concat(u).concat(JSON.stringify(void 0!==e.payload?e.payload:"")):null,n.disabled||a&&!o.password),[u,e,n,a,o]);return(0,r.ZP)(d,async()=>{if(!n.route)throw Error("No route");let t=h(o,n,void 0);if(!u)throw Error("No route");try{let n=await s().post(u,e.payload,t);return n.data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=n.config)||void 0===t?void 0:t.swr)}function z(e,t){let{setWorkflow:n,removeWorkflow:i}=T(),{mutate:o}=(0,r.kY)(),{settings:a}=L(),l=u(e);return{post:async e=>{let r=d(e);try{let u;let c=h(a,l,r),d=p(a,l.route,l,r);if(!d)throw Error("No route");"payload"in r&&(u=r.payload);let f="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=m(a,d,e,r);n(f,{path:v,payload:u});let g=await s().post(d,u,c);return t&&await t(function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,i=arguments.length>2?arguments[2]:void 0;return o(n=>{if("string"!=typeof n)return!1;let i=m(a,n,e,r);return t(i)},n,i)},r,g),i(f),{status:g.status,data:g.data}}catch(e){var u,c;return{status:null===(u=e.response)||void 0===u?void 0:u.status,error:(null===(c=e.response)||void 0===c?void 0:c.data)||e.message}}}}}function I(e){var t;let n=(0,l.useMemo)(()=>c(e),[e]),{settings:o,passwordProtectRequestHooks:a}=L(),u=p(o,n.route,n,void 0),d=(0,l.useMemo)(()=>i(u?"".concat(u).concat(JSON.stringify(void 0!==e.payload?e.payload:"")):null,n.disabled||a&&!o.password),[u,e,n,a,o]);return(0,r.ZP)(d,async()=>{if(!n.route)throw Error("No route");let t=h(o,n,void 0);if(!u)throw Error("No route");try{let n=await s().put(u,e.payload,t);return n.data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=n.config)||void 0===t?void 0:t.swr)}function Z(e,t){let{mutate:n}=(0,r.kY)(),{settings:i}=L(),{setWorkflow:o,removeWorkflow:a}=T(),l=u(e);return{put:async e=>{let r=d(e);try{let u;let c=h(i,l,r),d=p(i,l.route,l,r);if(!d)throw Error("No route");"payload"in r&&(u=r.payload);let f="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=m(i,d,e,r);o(f,{path:v,payload:u});let g=await s().put(d,u,c);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let o=m(i,n,e,r);return t(o)},o,a)},r,g),a(f),{status:g.status,data:g.data}}catch(e){var u,c;return{status:null===(u=e.response)||void 0===u?void 0:u.status,error:(null===(c=e.response)||void 0===c?void 0:c.data)||e.message}}}}}function B(e,t){let{mutate:n}=(0,r.kY)(),{settings:i}=L(),{setWorkflow:o,removeWorkflow:a}=T(),l=u(e);return{patch:async e=>{let r=d(e);try{let u;let c=h(i,l,r),d=p(i,l.route,l,r);if(!d)throw Error("No route");"payload"in r&&(u=r.payload);let f="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=m(i,d,e,r);o(f,{path:v,payload:u});let g=await s().patch(d,u,c);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let o=m(i,n,e,r);return t(o)},o,a)},r,g),a(f),{status:g.status,data:g.data}}catch(e){var u,c;return{status:null===(u=e.response)||void 0===u?void 0:u.status,error:(null===(c=e.response)||void 0===c?void 0:c.data)||e.message}}}}}function H(e){var t;let n=(0,l.useMemo)(()=>c(e),[e]),{settings:o,passwordProtectRequestHooks:a}=L(),u=p(o,n.route,n,void 0);return(0,r.ZP)(i(e.standalone?"".concat(e.standalone,"/").concat(u):u,n.disabled||a&&!o.password),async()=>{if(!n.route)throw Error("No route");let e=h(o,n,void 0);if(!u)throw Error("No route");try{let t=await s().get(u,e);return t.data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=n.config)||void 0===t?void 0:t.swr)}function U(e,t){let{mutate:n}=(0,r.kY)(),{settings:i}=L(),{setWorkflow:o,removeWorkflow:a}=T(),l=u(e);return{delete:async e=>{let r=d(e);try{let u=h(i,l,r),c=p(i,l.route,l,r);if(!c)throw Error("No route");let d=m(i,c,e,r);o(c,{path:d});let f=await s().delete(c,u);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let o=m(i,n,e,r);return t(o)},o,a)},r,f),a(c),{status:f.status,data:f.data}}catch(e){var u,c;return{status:null===(u=e.response)||void 0===u?void 0:u.status,error:(null===(c=e.response)||void 0===c?void 0:c.data)||e.message}}}}}function W(){return Math.round((new Date().getTime()-14336e8)/6e5)}function q(){return Math.round((new Date().getTime()-16736e8)/6e5)}function $(e){let{fallback:t,cacheProvider:n,children:i}=e;return(0,v.jsx)(P,{children:(0,v.jsx)(r.J$,{value:{fallback:t||{},provider:n},children:i})})}},27444:function(e,t,n){"use strict";n.d(t,{dk:function(){return o},Z7:function(){return F},Uy:function(){return V},GP:function(){return y},kr:function(){return x},nH:function(){return l},KU:function(){return b},rV:function(){return E},Az:function(){return k},uo:function(){return S},Te:function(){return j},d$:function(){return s},On:function(){return a},Wl:function(){return d},cQ:function(){return c},cM:function(){return R},Kw:function(){return D},hV:function(){return g},ST:function(){return O},_3:function(){return N},HU:function(){return M},uq:function(){return T},G:function(){return P},Rz:function(){return A},Fn:function(){return _},Os:function(){return f},a0:function(){return m},cj:function(){return v},Qq:function(){return h}});var r=n(95753),i=n(79381);let o="/state/host";function a(e){return(0,r.Nf)({...e,route:o})}function s(e){return(0,r.Nf)({...e,route:"/state/consensus"})}function l(){let e=a({config:{swr:{revalidateOnFocus:!1}}}),t=(0,i.ZP)(e,()=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.network)==="Zen Testnet"?(0,r.du)():(0,r.Tc)()},{refreshInterval:6e4,keepPreviousData:!0});return t.data||0}let u="/syncer/peers";function c(e){return(0,r.Nf)({...e,route:u})}function d(e){return(0,r.V1)({...e,route:"/syncer/peers"},async e=>{e(e=>e===u)})}function f(e){return(0,r.Nf)({...e,route:"/wallet"})}function h(e){return(0,r.Nf)({...e,route:"/wallet/transactions"})}let p="/wallet/pending";function m(e){return(0,r.Nf)({...e,route:p})}function v(e){return(0,r.mw)({...e,route:"/wallet/send"},async e=>{await (0,r.gw)(2e3),e(e=>e.startsWith(p))})}function g(e){return(0,r.Nf)({...e,route:"/tpool/fee"})}function y(e){return(0,r.q0)({...e,route:"/contracts"})}function x(e){return(0,r.V1)({...e,route:"/contracts/:id/integrity"})}function b(e){return(0,r.Nf)({...e,route:"/metrics/:interval"})}let w="/settings";function E(e){return(0,r.Nf)({...e,route:w})}function j(e){return(0,r.E)({...e,route:"/settings"},async e=>{await e(e=>e.startsWith(w))})}function k(e){return(0,r.mw)({...e,route:"/settings/announce"})}function S(e){return(0,r.I7)({...e,payload:{},route:"/settings/ddns/update"})}function _(e){return(0,r.Nf)({...e,route:"/volumes"})}function O(e){return(0,r.Nf)({...e,route:"/volumes/:id"})}let C="/volumes";function M(e){return(0,r.mw)({...e,route:C},async e=>{e(e=>e.startsWith(C))})}function A(e){return(0,r.V1)({...e,route:"/volumes/:id"},async e=>{e(e=>e.startsWith(C))})}function T(e){return(0,r.iv)({...e,route:"/volumes/:id"},async e=>{e(e=>e.startsWith(C))})}function P(e){return(0,r.V1)({...e,route:"/volumes/:id/resize"},async e=>{await (0,r.gw)(1e4),e(e=>e.startsWith(C))})}function N(e){return(0,r.iv)({...e,route:"/volumes/:id/cancel"},async e=>{await (0,r.gw)(3e3),e(e=>e.startsWith(C))})}function R(e){return(0,r.Nf)({...e,route:"/system/dir"})}function D(e){return(0,r.V1)({...e,route:"/system/dir"})}let L="/alerts";function F(e){return(0,r.Nf)({...e,route:L})}function V(e){return(0,r.mw)({...e,route:"/alerts/dismiss"},async e=>{e(e=>e.startsWith(L))})}},41775:function(e,t,n){"use strict";function r(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 i(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{RVU:function(){return tL},eHR:function(){return tU},xHM:function(){return tW},IRm:function(){return tq},L6f:function(){return t$},rW0:function(){return tY},osk:function(){return tG},JaG:function(){return tX},wWN:function(){return is},Dkj:function(){return iy},cfm:function(){return tQ},YV2:function(){return t6},EMN:function(){return t8},bdU:function(){return t7},VUy:function(){return t9},Cp0:function(){return ne},kqg:function(){return nt},Mes:function(){return nn},DI$:function(){return ni},NlZ:function(){return nf},Y3p:function(){return np},Z$8:function(){return nh},tEK:function(){return nm},PcV:function(){return ng},QN4:function(){return nv},Jsc:function(){return ny},wEY:function(){return nw},olJ:function(){return nE},KiD:function(){return nS},dDl:function(){return n_},Jrl:function(){return nM},aPl:function(){return nA},kBK:function(){return ip},Bpb:function(){return nP},iG7:function(){return nF},dr6:function(){return nV},d19:function(){return nz},w9S:function(){return nI},VBo:function(){return il},Hb6:function(){return nH},CCF:function(){return nU},Qbr:function(){return nY},L37:function(){return nG},ROc:function(){return iv},UG6:function(){return im},lq1:function(){return nX},zvn:function(){return iu},K2o:function(){return ih},EL$:function(){return nQ},BdP:function(){return n3},dsj:function(){return n5},P5r:function(){return n6},RdX:function(){return n8},U_S:function(){return n7},V8Q:function(){return rn},POp:function(){return rr},kSc:function(){return ri},mBM:function(){return id},Lur:function(){return rl},b47:function(){return ru},Sfn:function(){return rc},W$S:function(){return rv},T85:function(){return rg},Ckx:function(){return ry},dZ8:function(){return rb},EOT:function(){return rx},RK4:function(){return rE},XJM:function(){return r_},RRj:function(){return rO},ka0:function(){return rC},hzZ:function(){return rA},VUg:function(){return rD},owP:function(){return rL},Fs9:function(){return rF},wGX:function(){return rV},Wet:function(){return rB},BB5:function(){return rH},ZEk:function(){return rU},$Iz:function(){return rY},shL:function(){return rG},hiv:function(){return rX},mli:function(){return rQ},lJ7:function(){return ig},ORH:function(){return r0},xVB:function(){return r6},pHg:function(){return r8},I$H:function(){return r9},HCc:function(){return r7},oaN:function(){return ic},qdM:function(){return ie},SmH:function(){return ii},lg1:function(){return io}});var a,s,l,u,c,d,f,h,p,m,v,g,y,x,b,w,E,j,k,S,_,O,C,M,A,T,P,N,R,D,L,F,V,z,I,Z,B,H,U,W,q,$,Y,G,X,K,Q,J,ee,et,en,er,ei,eo,ea,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,ex,eb,ew,eE,ej,ek,eS,e_,eO,eC,eM,eA,eT,eP,eN,eR,eD,eL,eF,eV,ez,eI,eZ,eB,eH,eU,eW,eq,e$,eY,eG,eX,eK,eQ,eJ,e0,e1,e2,e4,e3,e5,e6,e8,e7,e9,te,tt,tn,tr,ti,to,ta,ts,tl,tu,tc,td,tf,th,tp,tm,tv,tg,ty,tx,tb,tw,tE=["width","height","viewBox"],tj=["tabindex"],tk={focusable:"false",preserveAspectRatio:"xMidYMid meet"},tS=n(13980),t_=n.n(tS),tO=n(2784);function tC(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 tM(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var tP=["className","children","tabIndex"],tN=["tabindex"],tR=tO.forwardRef(function(e,t){var n=e.className,r=e.children,a=e.tabIndex,s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,a=void 0===r?"0 0 ".concat(t," ").concat(n):r,s=o(e,tE),l=s.tabindex,u=o(s,tj),c=i(i(i({},tk),u),{},{width:t,height:n,viewBox:a});return c["aria-label"]||c["aria-labelledby"]||c.title?(c.role="img",null!=l&&(c.focusable="true",c.tabindex=l)):c["aria-hidden"]=!0,c}(tM(tM({},tT(e,tP)),{},{tabindex:a})),l=s.tabindex,u=tT(s,tN);return n&&(u.className=n),null!=l&&(u.tabIndex=l),t&&(u.ref=t),tO.createElement("svg",u,r)});tR.displayName="Icon",tR.propTypes={"aria-hidden":t_().string,"aria-label":t_().string,"aria-labelledby":t_().string,children:t_().node,className:t_().string,height:t_().oneOfType([t_().number,t_().string]),preserveAspectRatio:t_().string,tabIndex:t_().string,viewBox:t_().string,width:t_().oneOfType([t_().number,t_().string]),xmlns:t_().string},tR.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"};var tD=["children"],tL=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,tD);return tO.createElement(tR,tA({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),a||(a=tO.createElement("path",{d:"M17 15L17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z"})),n)}),tF=["children"],tV=["children"],tz=["children"],tI=["children"],tZ=["children"],tB=["children"],tH=["children"],tU=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,tF);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),s||(s=tO.createElement("path",{d:"M14 19H18V21H14z"})),l||(l=tO.createElement("path",{d:"M6,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V2ZM24,28H8V16H24Zm0-14H8V10H24ZM8,8V4H24V8Z"})),n)}),tW=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,tV);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),u||(u=tO.createElement("path",{d:"M22 26L22 24 9.41 24 26 7.41 24.59 6 8 22.59 8 10 6 10 6 26 22 26z"})),n)}),tq=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,tz);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),c||(c=tO.createElement("path",{d:"M10 26L10 24 22.59 24 6 7.41 7.41 6 24 22.59 24 10 26 10 26 26 10 26z"})),n)}),t$=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,tI);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),d||(d=tO.createElement("path",{d:"M22 6L22 8 9.41 8 26 24.59 24.59 26 8 9.41 8 22 6 22 6 6 22 6z"})),n)}),tY=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,tZ);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),f||(f=tO.createElement("path",{d:"M10 6L10 8 22.59 8 6 24.59 7.41 26 24 9.41 24 22 26 22 26 6 10 6z"})),n)}),tG=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,tB);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),h||(h=tO.createElement("path",{d:"M7.2,2.3c-1,4.4,1.7,8.7,6.1,9.8c0.1,0,0.1,0,0.2,0c-1.1,1.2-2.7,1.8-4.3,1.8c-0.1,0-0.2,0-0.2,0C5.6,13.8,3,11,3.2,7.7 C3.2,5.3,4.8,3.1,7.2,2.3 M8,1L8,1C4.1,1.6,1.5,5.3,2.1,9.1c0.6,3.3,3.4,5.8,6.8,5.9c0.1,0,0.2,0,0.3,0c2.3,0,4.4-1.1,5.8-3 c0.2-0.2,0.1-0.6-0.1-0.7c-0.1-0.1-0.2-0.1-0.3-0.1c-3.9-0.3-6.7-3.8-6.4-7.6C8.3,3,8.4,2.4,8.6,1.8c0.1-0.3,0-0.6-0.3-0.7 C8.1,1,8.1,1,8,1z"})),n)}),tX=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,tH);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),p||(p=tO.createElement("path",{d:"M7.5 1H8.5V3.5H7.5z"})),m||(m=tO.createElement("path",{d:"M10.8 3.4H13.3V4.4H10.8z",transform:"rotate(-45.001 12.074 3.922)"})),v||(v=tO.createElement("path",{d:"M12.5 7.5H15V8.5H12.5z"})),g||(g=tO.createElement("path",{d:"M11.6 10.8H12.6V13.3H11.6z",transform:"rotate(-45.001 12.077 12.075)"})),y||(y=tO.createElement("path",{d:"M7.5 12.5H8.5V15H7.5z"})),x||(x=tO.createElement("path",{d:"M2.7 11.6H5.2V12.6H2.7z",transform:"rotate(-45.001 3.929 12.078)"})),b||(b=tO.createElement("path",{d:"M1 7.5H3.5V8.5H1z"})),w||(w=tO.createElement("path",{d:"M3.4 2.7H4.4V5.2H3.4z",transform:"rotate(-45.001 3.926 3.925)"})),E||(E=tO.createElement("path",{d:"M8,6c1.1,0,2,0.9,2,2s-0.9,2-2,2S6,9.1,6,8S6.9,6,8,6 M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z"})),n)}),tK=["children"],tQ=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,tK);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),j||(j=tO.createElement("path",{d:"M26,6V8.17L5.64,11.87a2,2,0,0,0-1.64,2v4.34a2,2,0,0,0,1.64,2L8,20.56V24a2,2,0,0,0,2,2h8a2,2,0,0,0,2-2V22.74l6,1.09V26h2V6ZM18,24H10V20.93l8,1.45ZM6,18.17V13.83L26,10.2V21.8Z"})),n)}),tJ=["children"],t0=["children"],t1=["children"],t2=["children"],t4=["children"],t3=["children"],t5=["children"],t6=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,tJ);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),k||(k=tO.createElement("path",{d:"M26,4H22V2H20V4H12V2H10V4H6A2.0025,2.0025,0,0,0,4,6V26a2.0025,2.0025,0,0,0,2,2H26a2.0025,2.0025,0,0,0,2-2V6A2.0025,2.0025,0,0,0,26,4ZM6,6h4V8h2V6h8V8h2V6h4l0,4H6Zm0,6h5v6H6ZM19,26H13V20h6Zm0-8H13V12h6Zm2,8V20h5l.0012,6Z"})),n)}),t8=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,t0);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),S||(S=tO.createElement("path",{d:"M24 12L16 22 8 12z"})),n)}),t7=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,t1);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),_||(_=tO.createElement("path",{d:"M20 24L10 16 20 8z"})),n)}),t9=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,t2);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),O||(O=tO.createElement("path",{d:"M12 8L22 16 12 24z"})),n)}),ne=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,t4);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),C||(C=tO.createElement("path",{d:"M24 24L16 32 8 24zM8 8L16 0 24 8z"})),n)}),nt=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,t3);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),M||(M=tO.createElement("path",{d:"M8 20L16 10 24 20z"})),n)}),nn=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,t5);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),A||(A=tO.createElement("path",{d:"M30,15H27.9492A12.0071,12.0071,0,0,0,17,4.0508V2H15V4.0508A12.0071,12.0071,0,0,0,4.0508,15H2v2H4.0508A12.0071,12.0071,0,0,0,15,27.9492V30h2V27.9492A12.0071,12.0071,0,0,0,27.9492,17H30ZM17,25.9492V22H15v3.9492A10.0166,10.0166,0,0,1,6.0508,17H10V15H6.0508A10.0166,10.0166,0,0,1,15,6.0508V10h2V6.0508A10.0166,10.0166,0,0,1,25.9492,15H22v2h3.9492A10.0166,10.0166,0,0,1,17,25.9492Z"})),n)}),nr=["children"],ni=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nr);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),T||(T=tO.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z"})),P||(P=tO.createElement("path",{fill:"none",d:"M14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z","data-icon-path":"inner-path"})),n)}),no=["children"],na=["children"],ns=["children"],nl=["children"],nu=["children"],nc=["children"],nd=["children"],nf=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,no);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),N||(N=tO.createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),n)}),nh=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,na);return tO.createElement(tR,tA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),R||(R=tO.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"})),D||(D=tO.createElement("path",{fill:"none",d:"M14 21.591L9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z","data-icon-path":"inner-path"})),n)}),np=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,ns);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),L||(L=tO.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"})),F||(F=tO.createElement("path",{d:"M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z","data-icon-path":"inner-path",opacity:"0"})),n)}),nm=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nl);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),V||(V=tO.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),z||(z=tO.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),n)}),nv=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nu);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),I||(I=tO.createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),n)}),ng=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nc);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Z||(Z=tO.createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),n)}),ny=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nd);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),B||(B=tO.createElement("path",{d:"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12 S22.6,28,16,28z"})),H||(H=tO.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),n)}),nx=["children"],nb=["children"],nw=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nx);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),U||(U=tO.createElement("path",{d:"M31 16L24 23 22.59 21.59 28.17 16 22.59 10.41 24 9 31 16zM1 16L8 9 9.41 10.41 3.83 16 9.41 21.59 8 23 1 16z"})),W||(W=tO.createElement("path",{d:"M5.91 15H26.080000000000002V17H5.91z",transform:"rotate(-75 15.996 16)"})),n)}),nE=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nb);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),q||(q=tO.createElement("path",{d:"M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z"})),$||($=tO.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),n)}),nj=["children"],nk=["children"],nS=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nj);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Y||(Y=tO.createElement("path",{d:"M21,12V10H17V7H15v3H13a2.002,2.002,0,0,0-2,2v3a2.002,2.002,0,0,0,2,2h6v3H11v2h4v3h2V22h2a2.0023,2.0023,0,0,0,2-2V17a2.002,2.002,0,0,0-2-2H13V12Z"})),G||(G=tO.createElement("path",{d:"M16,4A12,12,0,1,1,4,16,12.0353,12.0353,0,0,1,16,4m0-2A14,14,0,1,0,30,16,14.0412,14.0412,0,0,0,16,2Z"})),n)}),n_=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nk);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),X||(X=tO.createElement("path",{d:"M23 27.18L20.41 24.59 19 26 23 30 30 23 28.59 21.59 23 27.18z"})),K||(K=tO.createElement("circle",{cx:"11",cy:"8",r:"1"})),Q||(Q=tO.createElement("circle",{cx:"11",cy:"16",r:"1"})),J||(J=tO.createElement("circle",{cx:"11",cy:"24",r:"1"})),ee||(ee=tO.createElement("path",{d:"M24,3H8A2,2,0,0,0,6,5V27a2,2,0,0,0,2,2h8V27H8V21H26V5A2,2,0,0,0,24,3Zm0,16H8V13H24Zm0-8H8V5H24Z"})),n)}),nO=["children"],nC=["children"],nM=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nO);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),et||(et=tO.createElement("path",{d:"M12 12H14V24H12zM18 12H20V24H18z"})),en||(en=tO.createElement("path",{d:"M4 6V8H6V28a2 2 0 002 2H24a2 2 0 002-2V8h2V6zM8 28V8H24V28zM12 2H20V4H12z"})),n)}),nA=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nC);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),er||(er=tO.createElement("path",{d:"M8 4V8H4V4H8M2 2v8h8V2zM18 7v4H14V7h4M12 5v8h8V5zM8 16v4H4V16H8M2 14v8h8V14z"})),ei||(ei=tO.createElement("path",{d:"M22,10v6H16v6H10v8H30V10Zm-4,8h4v4H18ZM16,28H12V24h4Zm6,0H18V24h4Zm6,0H24V24h4Zm0-6H24V18h4Zm-4-6V12h4v4Z"})),n)}),nT=["children"],nP=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nT);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eo||(eo=tO.createElement("circle",{cx:"16",cy:"16",r:"8"})),n)}),nN=["children"],nR=["children"],nD=["children"],nL=["children"],nF=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nN);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ea||(ea=tO.createElement("path",{d:"M10 6H14V10H10zM18 6H22V10H18zM10 14H14V18H10zM18 14H22V18H18zM10 22H14V26H10zM18 22H22V26H18z"})),n)}),nV=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nR);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),es||(es=tO.createElement("path",{d:"M2 26H30V28H2zM25.4 9c.8-.8.8-2 0-2.8 0 0 0 0 0 0l-3.6-3.6c-.8-.8-2-.8-2.8 0 0 0 0 0 0 0l-15 15V24h6.4L25.4 9zM20.4 4L24 7.6l-3 3L17.4 7 20.4 4zM6 22v-3.6l10-10 3.6 3.6-10 10H6z"})),n)}),nz=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nD);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),el||(el=tO.createElement("path",{d:"M21,30a8,8,0,1,1,8-8A8,8,0,0,1,21,30Zm0-14a6,6,0,1,0,6,6A6,6,0,0,0,21,16Z"})),eu||(eu=tO.createElement("path",{d:"M22.59 25L20 22.41 20 18 22 18 22 21.59 24 23.59 22.59 25z"})),ec||(ec=tO.createElement("path",{d:"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z"})),n)}),nI=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nL);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ed||(ed=tO.createElement("path",{d:"M18 31h2V29a1.0006 1.0006 0 011-1h6a1.0006 1.0006 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 25a4 4 0 114-4A4.0039 4.0039 0 0124 25zm0-6a2 2 0 102 2A2.0027 2.0027 0 0024 19zM2 31H4V29a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 25a4 4 0 114-4A4.0042 4.0042 0 018 25zm0-6a2 2 0 102 2A2.0023 2.0023 0 008 19zM18 16h2V14a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 10a4 4 0 114-4A4.0042 4.0042 0 0124 10zm0-6a2 2 0 102 2A2.0023 2.0023 0 0024 4zM2 16H4V14a1.0013 1.0013 0 011-1h6a1.0013 1.0013 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 10a4 4 0 114-4A4.0045 4.0045 0 018 10zM8 4a2 2 0 102 2A2.002 2.002 0 008 4z"})),n)}),nZ=["children"],nB=["children"],nH=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nZ);return tO.createElement(tR,tA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ef||(ef=tO.createElement("path",{d:"M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"})),n)}),nU=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nB);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eh||(eh=tO.createElement("path",{d:"M2 28H30V30H2zM27 11a1 1 0 001-1V7a1 1 0 00-.66-.94l-11-4a1 1 0 00-.68 0l-11 4A1 1 0 004 7v3a1 1 0 001 1H6V24H4v2H28V24H26V11zM6 7.7L16 4.06 26 7.7V9H6zM18 24H14V11h4zM8 11h4V24H8zM24 24H20V11h4z"})),n)}),nW=["children"],nq=["children"],n$=["children"],nY=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nW);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ep||(ep=tO.createElement("path",{d:"M11.17,6l3.42,3.41.58.59H28V26H4V6h7.17m0-2H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2H16L12.59,4.59A2,2,0,0,0,11.17,4Z"})),n)}),nG=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nq);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),em||(em=tO.createElement("path",{d:"M26 20L24 20 24 24 20 24 20 26 24 26 24 30 26 30 26 26 30 26 30 24 26 24z"})),ev||(ev=tO.createElement("path",{d:"M28,8H16l-3.4-3.4C12.2,4.2,11.7,4,11.2,4H4C2.9,4,2,4.9,2,6v20c0,1.1,0.9,2,2,2h14v-2H4V6h7.2l3.4,3.4l0.6,0.6H28v8h2v-8 C30,8.9,29.1,8,28,8z"})),n)}),nX=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,n$);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eg||(eg=tO.createElement("path",{d:"M14,4a7,7,0,1,1-7,7,7,7,0,0,1,7-7m0-2a9,9,0,1,0,9,9A9,9,0,0,0,14,2Z"})),ey||(ey=tO.createElement("path",{d:"M28,11a13.9563,13.9563,0,0,0-4.1051-9.8949L22.4813,2.5187A11.9944,11.9944,0,0,1,5.5568,19.5194l-.0381-.0381L4.1051,20.8949A13.9563,13.9563,0,0,0,14,25v3H10v2H20V28H16V24.84A14.0094,14.0094,0,0,0,28,11Z"})),n)}),nK=["children"],nQ=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nK);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ex||(ex=tO.createElement("path",{d:"M16,.0005,4,5.9784V20.0443a12,12,0,0,0,24,0V5.9784Zm6.83,27.3138L16,23.9119V26.14l5.0361,2.5088A10.0025,10.0025,0,0,1,6,20.0443V7.21L16,2.2284,26,7.21v3.75L16,5.9783V8.2062l10,4.9816v3.75L16,11.9562v2.2279l10,4.9815v.8787a9.9045,9.9045,0,0,1-.37,2.6871L16,17.934v2.2279l8.8952,4.4313A10.0252,10.0252,0,0,1,22.83,27.3143Z"})),n)}),nJ=["children"],n0=["children"],n1=["children"],n2=["children"],n4=["children"],n3=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,nJ);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eb||(eb=tO.createElement("path",{d:"M11 24H21V26H11zM13 28H19V30H13zM16 2A10 10 0 006 12a9.19 9.19 0 003.46 7.62c1 .93 1.54 1.46 1.54 2.38h2c0-1.84-1.11-2.87-2.19-3.86A7.2 7.2 0 018 12a8 8 0 0116 0 7.2 7.2 0 01-2.82 6.14c-1.07 1-2.18 2-2.18 3.86h2c0-.92.53-1.45 1.54-2.39A9.18 9.18 0 0026 12 10 10 0 0016 2z"})),n)}),n5=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,n0);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ew||(ew=tO.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2Zm0,26A12,12,0,0,1,16,4V16l8.4812,8.4814A11.9625,11.9625,0,0,1,16,28Z"})),n)}),n6=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,n1);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eE||(eE=tO.createElement("path",{d:"M29.53,6.15a1,1,0,0,0-1,0L20,10.38V7a1,1,0,0,0-1.45-.89L10,10.38V3A1,1,0,0,0,9,2H3A1,1,0,0,0,2,3V28H30V7A1,1,0,0,0,29.53,6.15ZM22,26H18V19h4Zm6,0H24V18a1,1,0,0,0-1-1H17a1,1,0,0,0-1,1v8H4V4H8v9.62l10-5v5l10-5Z"})),n)}),n8=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,n2);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ej||(ej=tO.createElement("path",{d:"M8.5 11L8.5 6.5 6.5 6.5 6.5 7.5 7.5 7.5 7.5 11 6 11 6 12 10 12 10 11zM8 3.5c-.4 0-.8.3-.8.8S7.6 5 8 5c.4 0 .8-.3.8-.8S8.4 3.5 8 3.5z"})),ek||(ek=tO.createElement("path",{d:"M8,15c-3.9,0-7-3.1-7-7s3.1-7,7-7s7,3.1,7,7S11.9,15,8,15z M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z"})),n)}),n7=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,n4);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eS||(eS=tO.createElement("path",{d:"M29.88,15.52l-6-11A1,1,0,0,0,23,4H9a1,1,0,0,0-.88.52l-6,11a1,1,0,0,0,0,1l6,11A1,1,0,0,0,9,28H23a1,1,0,0,0,.88-.52l6-11A1,1,0,0,0,29.88,15.52ZM22.93,7l4.39,8h-9.5ZM16,14.14,10.82,6H21.18ZM9.07,7l5.11,8H4.68ZM4.68,17h9.5L9.07,25ZM16,17.86,21.18,26H10.82ZM22.93,25l-5.11-8h9.5Z"})),n)}),n9=["children"],re=["children"],rt=["children"],rn=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,n9);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e_||(e_=tO.createElement("path",{d:"M13,14H3c-0.6,0-1-0.4-1-1V3c0-0.6,0.4-1,1-1h5v1H3v10h10V8h1v5C14,13.6,13.6,14,13,14z"})),eO||(eO=tO.createElement("path",{d:"M10 1L10 2 13.3 2 9 6.3 9.7 7 14 2.7 14 6 15 6 15 1z"})),n)}),rr=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,re);return tO.createElement(tR,tA({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eC||(eC=tO.createElement("path",{d:"M29.25,6.76a6,6,0,0,0-8.5,0l1.42,1.42a4,4,0,1,1,5.67,5.67l-8,8a4,4,0,1,1-5.67-5.66l1.41-1.42-1.41-1.42-1.42,1.42a6,6,0,0,0,0,8.5A6,6,0,0,0,17,25a6,6,0,0,0,4.27-1.76l8-8A6,6,0,0,0,29.25,6.76Z"})),eM||(eM=tO.createElement("path",{d:"M4.19,24.82a4,4,0,0,1,0-5.67l8-8a4,4,0,0,1,5.67,0A3.94,3.94,0,0,1,19,14a4,4,0,0,1-1.17,2.85L15.71,19l1.42,1.42,2.12-2.12a6,6,0,0,0-8.51-8.51l-8,8a6,6,0,0,0,0,8.51A6,6,0,0,0,7,28a6.07,6.07,0,0,0,4.28-1.76L9.86,24.82A4,4,0,0,1,4.19,24.82Z"})),n)}),ri=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rt);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eA||(eA=tO.createElement("path",{d:"M16 8H30V10H16zM6 10.59L3.41 8 2 9.41 6 13.41 14 5.41 12.59 4 6 10.59zM16 22H30V24H16zM6 24.59L3.41 22 2 23.41 6 27.41 14 19.41 12.59 18 6 24.59z"})),n)}),ro=["children"],ra=["children"],rs=["children"],rl=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,ro);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eT||(eT=tO.createElement("path",{d:"M24,14H22V8A6,6,0,0,0,10,8v6H8a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V16A2,2,0,0,0,24,14ZM12,8a4,4,0,0,1,8,0v6H12ZM24,28H8V16H24Z"})),n)}),ru=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,ra);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eP||(eP=tO.createElement("path",{d:"M13.647,14.907a1.4482,1.4482,0,1,0,1.326,1.443A1.385,1.385,0,0,0,13.647,14.907Zm4.745,0a1.4482,1.4482,0,1,0,1.326,1.443A1.385,1.385,0,0,0,18.392,14.907Z"})),eN||(eN=tO.createElement("path",{d:"M24.71,4H7.29A2.6714,2.6714,0,0,0,4.625,6.678V24.254A2.6714,2.6714,0,0,0,7.29,26.932H22.032l-.689-2.405,1.664,1.547L24.58,27.53,27.375,30V6.678A2.6714,2.6714,0,0,0,24.71,4ZM19.692,20.978s-.468-.559-.858-1.053a4.1021,4.1021,0,0,0,2.353-1.547,7.4391,7.4391,0,0,1-1.495.767,8.5564,8.5564,0,0,1-1.885.559,9.1068,9.1068,0,0,1-3.367-.013,10.9127,10.9127,0,0,1-1.911-.559,7.6184,7.6184,0,0,1-.949-.442c-.039-.026-.078-.039-.117-.065a.18.18,0,0,1-.052-.039c-.234-.13-.364-.221-.364-.221a4.0432,4.0432,0,0,0,2.275,1.534c-.39.494-.871,1.079-.871,1.079a4.7134,4.7134,0,0,1-3.965-1.976,17.409,17.409,0,0,1,1.872-7.579,6.4285,6.4285,0,0,1,3.653-1.365l.13.156a8.77,8.77,0,0,0-3.419,1.703s.286-.156.767-.377a9.7625,9.7625,0,0,1,2.951-.819,1.2808,1.2808,0,0,1,.221-.026,11,11,0,0,1,2.626-.026A10.5971,10.5971,0,0,1,21.2,11.917a8.6518,8.6518,0,0,0-3.237-1.651l.182-.208a6.4285,6.4285,0,0,1,3.653,1.365,17.409,17.409,0,0,1,1.872,7.579A4.752,4.752,0,0,1,19.692,20.978Z"})),n)}),rc=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rs);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eR||(eR=tO.createElement("path",{fillRule:"evenodd",d:"M16,2a14,14,0,0,0-4.43,27.28c.7.13,1-.3,1-.67s0-1.21,0-2.38c-3.89.84-4.71-1.88-4.71-1.88A3.71,3.71,0,0,0,6.24,22.3c-1.27-.86.1-.85.1-.85A2.94,2.94,0,0,1,8.48,22.9a3,3,0,0,0,4.08,1.16,2.93,2.93,0,0,1,.88-1.87c-3.1-.36-6.37-1.56-6.37-6.92a5.4,5.4,0,0,1,1.44-3.76,5,5,0,0,1,.14-3.7s1.17-.38,3.85,1.43a13.3,13.3,0,0,1,7,0c2.67-1.81,3.84-1.43,3.84-1.43a5,5,0,0,1,.14,3.7,5.4,5.4,0,0,1,1.44,3.76c0,5.38-3.27,6.56-6.39,6.91a3.33,3.33,0,0,1,.95,2.59c0,1.87,0,3.38,0,3.84s.25.81,1,.67A14,14,0,0,0,16,2Z"})),n)}),rd=["children"],rf=["children"],rh=["children"],rp=["children"],rm=["children"],rv=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rd);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eD||(eD=tO.createElement("path",{d:"M16.59 20.41L20.17 24 20.17 24 16.58 27.59 18 29 23 24 18 19 16.59 20.41zM23.59 20.41L27.17 24 27.17 24 23.58 27.59 25 29 30 24 25 19 23.59 20.41z"})),eL||(eL=tO.createElement("path",{d:"M14,23H4V7.91l11.43,7.91a1,1,0,0,0,1.14,0L28,7.91V17h2V7a2,2,0,0,0-2-2H4A2,2,0,0,0,2,7V23a2,2,0,0,0,2,2H14ZM25.8,7,16,13.78,6.2,7Z"})),n)}),rg=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rf);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eF||(eF=tO.createElement("path",{d:"M25.3943,24a7.8772,7.8772,0,0,0-1.6707-8.5684,3.918,3.918,0,0,0-1.0844-4.414l2.7759-2.7759a2.0025,2.0025,0,0,0,0-2.8286L22.5869,2.5849a2.0021,2.0021,0,0,0-2.8286,0L6.5859,15.7573a2.0027,2.0027,0,0,0,0,2.8286l2.8282,2.8282a2.0024,2.0024,0,0,0,2.8286,0l4.7749-4.7754a3.9329,3.9329,0,0,0,5.5139.4326A5.9442,5.9442,0,0,1,23.1775,24H16v4H4v2H28V24ZM10.8281,20,8,17.1714,9.8787,15.293l2.8283,2.8281ZM16,14a3.9811,3.9811,0,0,0,.0762.7524L14.1211,16.707l-2.8284-2.8281,9.88-9.88L24.001,6.8271l-3.2488,3.2491A3.9771,3.9771,0,0,0,16,14Zm4,2a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,20,16Zm6,12H18V26h8Z"})),n)}),ry=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rh);return tO.createElement(tR,tA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eV||(eV=tO.createElement("path",{d:"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12 S22.6,28,16,28z"})),ez||(ez=tO.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),n)}),rx=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rp);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eI||(eI=tO.createElement("path",{d:"M2 22H30V24H2zM2 26H30V28H2zM24 10a2 2 0 102 2 2 2 0 00-2-2zM16 16a4 4 0 114-4A4.0045 4.0045 0 0116 16zm0-6a2 2 0 102 2A2.002 2.002 0 0016 10zM8 10a2 2 0 102 2 2 2 0 00-2-2z"})),eZ||(eZ=tO.createElement("path",{d:"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z"})),n)}),rb=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rm);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eB||(eB=tO.createElement("path",{d:"M2 22H30V24H2zM2 26H30V28H2zM24 10a2 2 0 102 2 2 2 0 00-2-2zM16 16a4 4 0 114-4A4.0045 4.0045 0 0116 16zm0-6a2 2 0 102 2A2.002 2.002 0 0016 10zM8 10a2 2 0 102 2 2 2 0 00-2-2z"})),eH||(eH=tO.createElement("path",{d:"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z"})),n)}),rw=["children"],rE=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rw);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eU||(eU=tO.createElement("circle",{cx:"21",cy:"26",r:"2"})),eW||(eW=tO.createElement("circle",{cx:"21",cy:"6",r:"2"})),eq||(eq=tO.createElement("circle",{cx:"4",cy:"16",r:"2"})),e$||(e$=tO.createElement("path",{d:"M28,12a3.9962,3.9962,0,0,0-3.8579,3H19.8579a3.9655,3.9655,0,0,0-5.4914-2.6426L11.19,8.3872A3.9626,3.9626,0,0,0,12,6a4,4,0,1,0-4,4,3.96,3.96,0,0,0,1.6338-.3574l3.176,3.97a3.9239,3.9239,0,0,0,0,4.7744l-3.1758,3.97A3.96,3.96,0,0,0,8,22a4,4,0,1,0,4,4,3.9624,3.9624,0,0,0-.81-2.3872l3.1758-3.97A3.9658,3.9658,0,0,0,19.8579,17h4.2842A3.9934,3.9934,0,1,0,28,12ZM6,6A2,2,0,1,1,8,8,2.0023,2.0023,0,0,1,6,6ZM8,28a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,8,28Zm8-10a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,16,18Zm12,0a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,28,18Z"})),n)}),rj=["children"],rk=["children"],rS=["children"],r_=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rj);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eY||(eY=tO.createElement("path",{d:"M14 16L24 6 25.4 7.4 16.8 16 25.4 24.6 24 26zM8 4H10V28H8z"})),n)}),rO=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rk);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eG||(eG=tO.createElement("path",{d:"M18 16L8 26 6.6 24.6 15.2 16 6.6 7.4 8 6zM22 4H24V28H22z"})),n)}),rC=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rS);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eX||(eX=tO.createElement("path",{d:"M21,2a8.9977,8.9977,0,0,0-8.6119,11.6118L2,24v6H8L18.3881,19.6118A9,9,0,1,0,21,2Zm0,16a7.0125,7.0125,0,0,1-2.0322-.3022L17.821,17.35l-.8472.8472-3.1811,3.1812L12.4141,20,11,21.4141l1.3787,1.3786-1.5859,1.586L9.4141,23,8,24.4141l1.3787,1.3786L7.1716,28H4V24.8284l9.8023-9.8023.8472-.8474-.3473-1.1467A7,7,0,1,1,21,18Z"})),eK||(eK=tO.createElement("circle",{cx:"22",cy:"10",r:"2"})),n)}),rM=["children"],rA=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rM);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eQ||(eQ=tO.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM8,18a2,2,0,1,1,2-2A2,2,0,0,1,8,18Zm8,0a2,2,0,1,1,2-2A2,2,0,0,1,16,18Zm8,0a2,2,0,1,1,2-2A2,2,0,0,1,24,18Z"})),eJ||(eJ=tO.createElement("path",{fill:"none",d:"M10,16a2,2,0,1,1-2-2A2,2,0,0,1,10,16Zm6-2a2,2,0,1,0,2,2A2,2,0,0,0,16,14Zm8,0a2,2,0,1,0,2,2A2,2,0,0,0,24,14Z","data-icon-path":"inner-path"})),n)}),rT=["children"],rP=["children"],rN=["children"],rR=["children"],rD=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rT);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e0||(e0=tO.createElement("path",{d:"M30 18A6 6 0 1020 22.46v7.54l4-1.8926 4 1.8926V22.46A5.98 5.98 0 0030 18zm-4 8.84l-2-.9467L22 26.84V23.65a5.8877 5.8877 0 004 0zM24 22a4 4 0 114-4A4.0045 4.0045 0 0124 22zM9 14H16V16H9zM9 8H19V10H9z"})),e1||(e1=tO.createElement("path",{d:"M6,30a2.0021,2.0021,0,0,1-2-2V4A2.0021,2.0021,0,0,1,6,2H22a2.0021,2.0021,0,0,1,2,2V8H22V4H6V28H16v2Z"})),n)}),rL=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rP);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e2||(e2=tO.createElement("circle",{cx:"11",cy:"15.5",r:"1.5"})),e4||(e4=tO.createElement("path",{d:"M12,12H10V8h2a2,2,0,0,0,0-4H10A2.0023,2.0023,0,0,0,8,6v.5H6V6a4.0045,4.0045,0,0,1,4-4h2a4,4,0,0,1,0,8Z"})),e3||(e3=tO.createElement("path",{d:"M22.4479,21.0337A10.971,10.971,0,0,0,19.9211,4.7446l-.999,1.73A8.9967,8.9967,0,1,1,5,14H3a10.9916,10.9916,0,0,0,18.0338,8.4478L28.5859,30,30,28.5859Z"})),n)}),rF=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rN);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e5||(e5=tO.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),n)}),rV=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rR);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e6||(e6=tO.createElement("path",{d:"M20.59 22L15 16.41 15 7 17 7 17 15.58 22 20.59 20.59 22z"})),e8||(e8=tO.createElement("path",{d:"M16,2A13.94,13.94,0,0,0,6,6.23V2H4v8h8V8H7.08A12,12,0,1,1,4,16H2A14,14,0,1,0,16,2Z"})),n)}),rz=["children"],rI=["children"],rZ=["children"],rB=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rz);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e7||(e7=tO.createElement("path",{d:"M18,28A12,12,0,1,0,6,16v6.2L2.4,18.6,1,20l6,6,6-6-1.4-1.4L8,22.2V16H8A10,10,0,1,1,18,26Z"})),n)}),rH=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rI);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e9||(e9=tO.createElement("path",{d:"M29,10H3a1,1,0,0,0-1,1V21a1,1,0,0,0,1,1H29a1,1,0,0,0,1-1V11A1,1,0,0,0,29,10ZM28,20H4V12H8v4h2V12h5v4h2V12h5v4h2V12h4Z"})),n)}),rU=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rZ);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),te||(te=tO.createElement("path",{d:"M13.9,4.6l-2.5-2.5C11.3,2.1,11.1,2,11,2H3C2.4,2,2,2.4,2,3v10c0,0.6,0.4,1,1,1h10c0.6,0,1-0.4,1-1V5 C14,4.9,13.9,4.7,13.9,4.6z M6,3h4v2H6V3z M10,13H6V9h4V13z M11,13V9c0-0.6-0.4-1-1-1H6C5.4,8,5,8.4,5,9v4H3V3h2v2c0,0.6,0.4,1,1,1 h4c0.6,0,1-0.4,1-1V3.2l2,2V13H11z"})),n)}),rW=["children"],rq=["children"],r$=["children"],rY=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rW);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tt||(tt=tO.createElement("path",{d:"M28,4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM18,28H14V24h4Zm10-6H4V6H28Z"})),n)}),rG=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rq);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tn||(tn=tO.createElement("path",{d:"M13.5,8.4c0-0.1,0-0.3,0-0.4c0-0.1,0-0.3,0-0.4l1-0.8c0.4-0.3,0.4-0.9,0.2-1.3l-1.2-2C13.3,3.2,13,3,12.6,3 c-0.1,0-0.2,0-0.3,0.1l-1.2,0.4c-0.2-0.1-0.4-0.3-0.7-0.4l-0.3-1.3C10.1,1.3,9.7,1,9.2,1H6.8c-0.5,0-0.9,0.3-1,0.8L5.6,3.1 C5.3,3.2,5.1,3.3,4.9,3.4L3.7,3C3.6,3,3.5,3,3.4,3C3,3,2.7,3.2,2.5,3.5l-1.2,2C1.1,5.9,1.2,6.4,1.6,6.8l0.9,0.9c0,0.1,0,0.3,0,0.4 c0,0.1,0,0.3,0,0.4L1.6,9.2c-0.4,0.3-0.5,0.9-0.2,1.3l1.2,2C2.7,12.8,3,13,3.4,13c0.1,0,0.2,0,0.3-0.1l1.2-0.4 c0.2,0.1,0.4,0.3,0.7,0.4l0.3,1.3c0.1,0.5,0.5,0.8,1,0.8h2.4c0.5,0,0.9-0.3,1-0.8l0.3-1.3c0.2-0.1,0.4-0.2,0.7-0.4l1.2,0.4 c0.1,0,0.2,0.1,0.3,0.1c0.4,0,0.7-0.2,0.9-0.5l1.1-2c0.2-0.4,0.2-0.9-0.2-1.3L13.5,8.4z M12.6,12l-1.7-0.6c-0.4,0.3-0.9,0.6-1.4,0.8 L9.2,14H6.8l-0.4-1.8c-0.5-0.2-0.9-0.5-1.4-0.8L3.4,12l-1.2-2l1.4-1.2c-0.1-0.5-0.1-1.1,0-1.6L2.2,6l1.2-2l1.7,0.6 C5.5,4.2,6,4,6.5,3.8L6.8,2h2.4l0.4,1.8c0.5,0.2,0.9,0.5,1.4,0.8L12.6,4l1.2,2l-1.4,1.2c0.1,0.5,0.1,1.1,0,1.6l1.4,1.2L12.6,12z"})),tr||(tr=tO.createElement("path",{d:"M8,11c-1.7,0-3-1.3-3-3s1.3-3,3-3s3,1.3,3,3C11,9.6,9.7,11,8,11C8,11,8,11,8,11z M8,6C6.9,6,6,6.8,6,7.9C6,7.9,6,8,6,8 c0,1.1,0.8,2,1.9,2c0,0,0.1,0,0.1,0c1.1,0,2-0.8,2-1.9c0,0,0-0.1,0-0.1C10,6.9,9.2,6,8,6C8.1,6,8,6,8,6z"})),n)}),rX=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,r$);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ti||(ti=tO.createElement("path",{d:"M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30V8zM21 12c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3S22.7 12 21 12zM2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2V24zM11 20c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3S9.3 20 11 20z"})),n)}),rK=["children"],rQ=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rK);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),to||(to=tO.createElement("path",{d:"M8 15H24V17H8z"})),n)}),rJ=["children"],r0=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,rJ);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ta||(ta=tO.createElement("path",{d:"M23,9h6a2,2,0,0,0,2-2V3a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2V4H11V3A2,2,0,0,0,9,1H3A2,2,0,0,0,1,3V7A2,2,0,0,0,3,9H9a2,2,0,0,0,2-2V6h4V26a2.0023,2.0023,0,0,0,2,2h4v1a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V25a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2v1H17V17h4v1a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V14a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2v1H17V6h4V7A2,2,0,0,0,23,9Zm0-6h6V7H23ZM9,7H3V3H9ZM23,25h6v4H23Zm0-11h6v4H23Z",transform:"translate(0 .005)"})),n)}),r1=["children"],r2=["children"],r4=["children"],r3=["children"],r5=["children"],r6=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,r1);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ts||(ts=tO.createElement("path",{d:"M15.5,7.8C14.3,4.7,11.3,2.6,8,2.5C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3c1.2,3.1,4.1,5.2,7.5,5.3 c3.3-0.1,6.3-2.2,7.5-5.3C15.5,8.1,15.5,7.9,15.5,7.8z M8,12.5c-2.7,0-5.4-2-6.5-4.5c1-2.5,3.8-4.5,6.5-4.5s5.4,2,6.5,4.5 C13.4,10.5,10.6,12.5,8,12.5z"})),tl||(tl=tO.createElement("path",{d:"M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z M8,10c-1.1,0-2-0.9-2-2s0.9-2,2-2s2,0.9,2,2S9.1,10,8,10z"})),n)}),r8=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,r2);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tu||(tu=tO.createElement("path",{d:"M2.6,11.3l0.7-0.7C2.6,9.8,1.9,9,1.5,8c1-2.5,3.8-4.5,6.5-4.5c0.7,0,1.4,0.1,2,0.4l0.8-0.8C9.9,2.7,9,2.5,8,2.5 C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3C1,9.3,1.7,10.4,2.6,11.3z"})),tc||(tc=tO.createElement("path",{d:"M6 7.9c.1-1 .9-1.8 1.8-1.8l.9-.9C7.2 4.7 5.5 5.6 5.1 7.2 5 7.7 5 8.3 5.1 8.8L6 7.9zM15.5 7.8c-.6-1.5-1.6-2.8-2.9-3.7L15 1.7 14.3 1 1 14.3 1.7 15l2.6-2.6c1.1.7 2.4 1 3.7 1.1 3.3-.1 6.3-2.2 7.5-5.3C15.5 8.1 15.5 7.9 15.5 7.8zM10 8c0 1.1-.9 2-2 2-.3 0-.7-.1-1-.3L9.7 7C9.9 7.3 10 7.6 10 8zM8 12.5c-1 0-2.1-.3-3-.8l1.3-1.3c1.4.9 3.2.6 4.2-.8.7-1 .7-2.4 0-3.4l1.4-1.4c1.1.8 2 1.9 2.6 3.2C13.4 10.5 10.6 12.5 8 12.5z"})),n)}),r7=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,r4);return tO.createElement(tR,tA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),td||(td=tO.createElement("path",{d:"M22 17H24V19H22z"})),tf||(tf=tO.createElement("path",{d:"M28,8H4V5H26V3H4A2,2,0,0,0,2,5V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10A2,2,0,0,0,28,8ZM4,26V10H28v3H20a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h8v3ZM28,15v6H20V15Z"})),n)}),r9=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,r3);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),th||(th=tO.createElement("path",{d:"M22 17H24V19H22z"})),tp||(tp=tO.createElement("path",{d:"M28,8H4V5H26V3H4A2,2,0,0,0,2,5V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10A2,2,0,0,0,28,8ZM4,26V10H28v3H20a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h8v3ZM28,15v6H20V15Z"})),n)}),ie=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,r5);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tm||(tm=tO.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M8,14c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6S11.3,14,8,14z"})),tv||(tv=tO.createElement("path",{d:"M7.5 4H8.5V9H7.5zM8 10.2c-.4 0-.8.3-.8.8s.3.8.8.8c.4 0 .8-.3.8-.8S8.4 10.2 8 10.2z"})),n)}),it=["children"],ir=["children"],ii=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,it);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tg||(tg=tO.createElement("path",{d:"M26.0022,4H5.998A1.998,1.998,0,0,0,4,5.998V26.002A1.998,1.998,0,0,0,5.998,28H26.0022A1.9979,1.9979,0,0,0,28,26.002V5.998A1.9979,1.9979,0,0,0,26.0022,4ZM14.8752,8h2.25V18h-2.25ZM16,24a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,24Z"})),ty||(ty=tO.createElement("path",{fill:"none",d:"M14.8751,8h2.25V18h-2.25ZM16,24a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,24Z","data-icon-path":"inner-path"})),n)}),io=tO.forwardRef(function(e,t){var n=e.children,r=tT(e,ir);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tx||(tx=tO.createElement("path",{d:"M29.3164,8.0513l-18-6A1,1,0,0,0,10.4,2.2L4,7V2H2V30H4V11l6.4,4.8a1,1,0,0,0,.9165.1489l18-6a1,1,0,0,0,0-1.8974ZM10,13,4.6665,9,10,5Zm4-.0542-2,.667V4.3872l2,.667Zm4-1.333-2,.6665V5.7207l2,.6665Zm2-.667V7.0542L25.8379,9Z"})),tb||(tb=tO.createElement("path",{d:"M20,22a4,4,0,0,0-8,0h2a2,2,0,1,1,2,2H8v2h8A4.0045,4.0045,0,0,0,20,22Z"})),tw||(tw=tO.createElement("path",{d:"M26,22a4.0045,4.0045,0,0,0-4,4h2a2,2,0,1,1,2,2H12v2H26a4,4,0,0,0,0-8Z"})),n)}),ia=n(52322);function is(e){let{size:t=24}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",children:(0,ia.jsx)("path",{d:"M464 64C490.5 64 512 85.49 512 112V176C512 202.5 490.5 224 464 224H48C21.49 224 0 202.5 0 176V112C0 85.49 21.49 64 48 64H464zM448 128H320V160H448V128zM464 288C490.5 288 512 309.5 512 336V400C512 426.5 490.5 448 464 448H48C21.49 448 0 426.5 0 400V336C0 309.5 21.49 288 48 288H464zM192 352V384H448V352H192z"})})}function il(e){let{size:t=24,className:n}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:n,fill:"currentColor",viewBox:"0 0 384 512",children:(0,ia.jsx)("path",{d:"M256 0v128h128L256 0zM224 128L224 0H48C21.49 0 0 21.49 0 48v416C0 490.5 21.49 512 48 512h288c26.51 0 48-21.49 48-48V160h-127.1C238.3 160 224 145.7 224 128zM64 72C64 67.63 67.63 64 72 64h80C156.4 64 160 67.63 160 72v16C160 92.38 156.4 96 152 96h-80C67.63 96 64 92.38 64 88V72zM64 136C64 131.6 67.63 128 72 128h80C156.4 128 160 131.6 160 136v16C160 156.4 156.4 160 152 160h-80C67.63 160 64 156.4 64 152V136zM304 384c8.875 0 16 7.125 16 16S312.9 416 304 416h-47.25c-16.38 0-31.25-9.125-38.63-23.88c-2.875-5.875-8-6.5-10.12-6.5s-7.25 .625-10 6.125l-7.75 15.38C187.6 412.6 181.1 416 176 416H174.9c-6.5-.5-12-4.75-14-11L144 354.6L133.4 386.5C127.5 404.1 111 416 92.38 416H80C71.13 416 64 408.9 64 400S71.13 384 80 384h12.38c4.875 0 9.125-3.125 10.62-7.625l18.25-54.63C124.5 311.9 133.6 305.3 144 305.3s19.5 6.625 22.75 16.5l13.88 41.63c19.75-16.25 54.13-9.75 66 14.12c2 4 6 6.5 10.12 6.5H304z"})})}function iu(e){let{size:t=24,className:n}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",className:n,children:(0,ia.jsx)("path",{d:"M464 288h-416C21.5 288 0 309.5 0 336v96C0 458.5 21.5 480 48 480h416c26.5 0 48-21.5 48-48v-96C512 309.5 490.5 288 464 288zM320 416c-17.62 0-32-14.38-32-32s14.38-32 32-32s32 14.38 32 32S337.6 416 320 416zM416 416c-17.62 0-32-14.38-32-32s14.38-32 32-32s32 14.38 32 32S433.6 416 416 416zM464 32h-416C21.5 32 0 53.5 0 80v192.4C13.41 262.3 29.92 256 48 256h416c18.08 0 34.59 6.254 48 16.41V80C512 53.5 490.5 32 464 32z"})})}function ic(e){let{size:t=24,className:n}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,className:n,fill:"currentColor",viewBox:"0 0 512 512",children:(0,ia.jsx)("path",{d:"M448 32C465.7 32 480 46.33 480 64C480 81.67 465.7 96 448 96H80C71.16 96 64 103.2 64 112C64 120.8 71.16 128 80 128H448C483.3 128 512 156.7 512 192V416C512 451.3 483.3 480 448 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H448zM416 336C433.7 336 448 321.7 448 304C448 286.3 433.7 272 416 272C398.3 272 384 286.3 384 304C384 321.7 398.3 336 416 336z"})})}function id(e){let{size:t=24}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ia.jsx)("path",{d:"M80 192V144C80 64.47 144.5 0 224 0C303.5 0 368 64.47 368 144V192H384C419.3 192 448 220.7 448 256V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V256C0 220.7 28.65 192 64 192H80zM144 192H304V144C304 99.82 268.2 64 224 64C179.8 64 144 99.82 144 144V192z"})})}function ih(e){let{size:t=24}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 576 512",children:(0,ia.jsx)("path",{d:"M575.8 255.5C575.8 273.5 560.8 287.6 543.8 287.6H511.8L512.5 447.7C512.5 450.5 512.3 453.1 512 455.8V472C512 494.1 494.1 512 472 512H456C454.9 512 453.8 511.1 452.7 511.9C451.3 511.1 449.9 512 448.5 512H392C369.9 512 352 494.1 352 472V384C352 366.3 337.7 352 320 352H256C238.3 352 224 366.3 224 384V472C224 494.1 206.1 512 184 512H128.1C126.6 512 125.1 511.9 123.6 511.8C122.4 511.9 121.2 512 120 512H104C81.91 512 64 494.1 64 472V360C64 359.1 64.03 358.1 64.09 357.2V287.6H32.05C14.02 287.6 0 273.5 0 255.5C0 246.5 3.004 238.5 10.01 231.5L266.4 8.016C273.4 1.002 281.4 0 288.4 0C295.4 0 303.4 2.004 309.5 7.014L564.8 231.5C572.8 238.5 576.9 246.5 575.8 255.5L575.8 255.5z"})})}function ip(e){let{size:t=24}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ia.jsx)("path",{d:"M7.994 153.5c1.326 0 2.687 .3508 3.975 1.119L208 271.5v223.8c0 9.741-7.656 16.71-16.01 16.71c-2.688 0-5.449-.7212-8.05-2.303l-152.2-92.47C12.13 405.3 0 383.3 0 359.5v-197.7C0 156.1 3.817 153.5 7.994 153.5zM426.2 117.2c0 2.825-1.352 5.647-4.051 7.248L224 242.6L25.88 124.4C23.19 122.8 21.85 119.1 21.85 117.2c0-2.8 1.32-5.603 3.965-7.221l165.1-100.9C201.7 3.023 212.9 0 224 0s22.27 3.023 32.22 9.07l165.1 100.9C424.8 111.6 426.2 114.4 426.2 117.2zM440 153.5C444.2 153.5 448 156.1 448 161.8v197.7c0 23.75-12.12 45.75-31.78 57.69l-152.2 92.5C261.5 511.3 258.7 512 256 512C247.7 512 240 505 240 495.3V271.5l196-116.9C437.3 153.8 438.7 153.5 440 153.5z"})})}function im(e){let{size:t=24}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:t,height:t,fill:"currentColor",children:(0,ia.jsx)("path",{d:"M495.9 166.6C499.2 175.2 496.4 184.9 489.6 191.2L446.3 230.6C447.4 238.9 448 247.4 448 256C448 264.6 447.4 273.1 446.3 281.4L489.6 320.8C496.4 327.1 499.2 336.8 495.9 345.4C491.5 357.3 486.2 368.8 480.2 379.7L475.5 387.8C468.9 398.8 461.5 409.2 453.4 419.1C447.4 426.2 437.7 428.7 428.9 425.9L373.2 408.1C359.8 418.4 344.1 427 329.2 433.6L316.7 490.7C314.7 499.7 307.7 506.1 298.5 508.5C284.7 510.8 270.5 512 255.1 512C241.5 512 227.3 510.8 213.5 508.5C204.3 506.1 197.3 499.7 195.3 490.7L182.8 433.6C167 427 152.2 418.4 138.8 408.1L83.14 425.9C74.3 428.7 64.55 426.2 58.63 419.1C50.52 409.2 43.12 398.8 36.52 387.8L31.84 379.7C25.77 368.8 20.49 357.3 16.06 345.4C12.82 336.8 15.55 327.1 22.41 320.8L65.67 281.4C64.57 273.1 64 264.6 64 256C64 247.4 64.57 238.9 65.67 230.6L22.41 191.2C15.55 184.9 12.82 175.3 16.06 166.6C20.49 154.7 25.78 143.2 31.84 132.3L36.51 124.2C43.12 113.2 50.52 102.8 58.63 92.95C64.55 85.8 74.3 83.32 83.14 86.14L138.8 103.9C152.2 93.56 167 84.96 182.8 78.43L195.3 21.33C197.3 12.25 204.3 5.04 213.5 3.51C227.3 1.201 241.5 0 256 0C270.5 0 284.7 1.201 298.5 3.51C307.7 5.04 314.7 12.25 316.7 21.33L329.2 78.43C344.1 84.96 359.8 93.56 373.2 103.9L428.9 86.14C437.7 83.32 447.4 85.8 453.4 92.95C461.5 102.8 468.9 113.2 475.5 124.2L480.2 132.3C486.2 143.2 491.5 154.7 495.9 166.6V166.6zM256 336C300.2 336 336 300.2 336 255.1C336 211.8 300.2 175.1 256 175.1C211.8 175.1 176 211.8 176 255.1C176 300.2 211.8 336 256 336z"})})}function iv(e){let{size:t=24}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,width:t,fill:"currentColor",children:(0,ia.jsx)("path",{d:"M64 480H448c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H298.5c-17 0-33.3-6.7-45.3-18.7L226.7 50.7c-12-12-28.3-18.7-45.3-18.7H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64z"})})}function ig(e){let{size:t=24}=e;return(0,ia.jsxs)("svg",{version:"1.1",id:"icon",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:t,height:t,fill:"currentColor",viewBox:"0 0 32 32",children:[(0,ia.jsx)("polygon",{points:"23,9.2 20.4,6.6 19,8 23,12 30,5 28.6,3.6 "}),(0,ia.jsx)("polygon",{points:"12,5.4 10.6,4 8,6.6 5.4,4 4,5.4 6.6,8 4,10.6 5.4,12 8,9.4 10.6,12 12,10.6 9.4,8 "}),(0,ia.jsx)("polygon",{points:"12,21.4 10.6,20 8,22.6 5.4,20 4,21.4 6.6,24 4,26.6 5.4,28 8,25.4 10.6,28 12,26.6 9.4,24 "}),(0,ia.jsx)("polygon",{points:"17,15 17,2 15,2 15,15 2,15 2,17 15,17 15,30 17,30 17,17 30,17 30,15 "}),(0,ia.jsx)("rect",{fill:"none",width:"32",height:"32"})]})}function iy(e){let{size:t=24}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ia.jsx)("path",{d:"M224 0c-17.7 0-32 14.3-32 32V51.2C119 66 64 130.6 64 208v18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416H416c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8V208c0-77.4-55-142-128-156.8V32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3H224 160c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"})})}},47025:function(e,t,n){"use strict";n.d(t,{BW:function(){return i}});var r=n(95753);function i(e){let{settings:t}=(0,r.Hv)();return(0,r.Nf)({api:"https://api.siacentral.com/v2",...e,route:"/market/exchange-rate?currencies=sc",disabled:(null==e?void 0:e.disabled)||!t.siaCentral})}n(98537)},25205:function(e,t,n){"use strict";n.d(t,{Hz:function(){return u},Y:function(){return d},B$:function(){return a},xf:function(){return s},jr:function(){return S},pp:function(){return j},E6:function(){return k},Uz:function(){return l},BT:function(){return c},il:function(){return o},gU:function(){return w},vW:function(){return g},rN:function(){return b},yF:function(){return x},Vz:function(){return v},bc:function(){return y},S5:function(){return E},qN:function(){return p},ll:function(){return h}});var r=n(6391),i=n.n(r);function o(e){return new(i())(e).div(1024).div(1024)}function a(e){return new(i())(e).times(1024).times(1024)}function s(e){return new(i())(e).times(1e3).times(1e3).times(1e3).times(1e3)}function l(e){return new(i())(e).div(1e3).div(1e3).div(1e3)}function u(e){return new(i())(e).times(1e3).times(1e3).times(1e3)}function c(e){return new(i())(e).div(1e3).div(1e3)}function d(e){return new(i())(e).times(1e3).times(1e3)}r.BigNumber.config({EXPONENTIAL_AT:1e9}),r.BigNumber.config({DECIMAL_PLACES:30});let f=new r.BigNumber("10").exponentiatedBy(24);function h(e,t){return void 0!==t?new r.BigNumber(new r.BigNumber(e).dividedBy(f).toFixed(t)):new r.BigNumber(e).dividedBy(f)}function p(e){return new r.BigNumber(new r.BigNumber(e).times(f).toFixed(0))}let m={fixed:3,dynamicUnits:!0,hastingUnits:!1};function v(e,t){let{fixed:n,dynamicUnits:i,hastingUnits:o}={...m,...t},a=new r.BigNumber(1e12),s=new r.BigNumber(1e3),l=new r.BigNumber(e),u=new r.BigNumber(e).abs(),c=l.isNegative()?"-":"";if(!i)return"".concat(c).concat(h(u).toFormat(n)," SC");if(u.dividedBy(a).isLessThan(1))return o?"".concat(c).concat(u," H"):"".concat(c,"0 SC");let d=["pS","nS","uS","mS","SC","KS","MS","GS","TS"];for(let e=0;ee.multipliedBy(s),new r.BigNumber(1)),i=u.dividedBy(a.multipliedBy(t));if(i.isLessThan(s)||e===d.length-1)return"".concat(c).concat(i.toFormat(n)," ").concat(d[e])}return""}function g(e,t){let n="number"==typeof e?e:e instanceof i()?e.toNumber():Number(e),{fixed:r=2}=t||{};if(!n)return"0 B";if(n<1e3)return"".concat(n," B");let o=Math.floor(Math.log10(n)/Math.log10(1e3)),a=n/Math.pow(1e3,o);return a.toFixed(r)+" "+["B","KB","MB","GB","TB","PB","EB"][o]}function y(e){return 0===e?"0ms":(e/=1e6)<1e3?" ".concat(Math.floor(100*e)/100,"ms"):(e/=1e3)<60?"".concat(Math.floor(100*e)/100,"s"):"".concat(Math.floor(e/60*100)/100,"m")}function x(e,t){let{fixed:n=0,units:r="",abbreviated:o=!1}=t||{},a=new(i())(e||0);if(o){let e=a.toNumber();if(e<1e3)return a.toString();let t=["","K","M","B","t","q","Q","s","S","o","n","d","U","D"],i=Math.floor(Math.log10(e)/Math.log10(1e3)),o=e/Math.pow(1e3,i);return"".concat(o.toFixed(n)).concat(t[i]?" ".concat(t[i]):"").concat(r?" ".concat(r):"")}return"".concat(a.toFormat(n)).concat(r?" ".concat(r):"")}function b(e,t){let n;return n=navigator.language,new Intl.DateTimeFormat(n,{dateStyle:"short",...t}).format(new Date(e))}function w(e){return 144*e}function E(e){return 4320*e}function j(e){return e/16666666666666669e-22}function k(e){return e/4320}function S(e,t){return new Date().getTime()+j(t-e)}n(81395),n(18149)},2271:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return o}});let n=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class r{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}}let i=globalThis.AsyncLocalStorage;function o(){return i?new i:new r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},26252:function(e,t,n){"use strict";function r(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return r}}),n(43219),n(2784),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55046:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return h},useSearchParams:function(){return p},usePathname:function(){return m},ServerInsertedHTMLContext:function(){return l.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return l.useServerInsertedHTML},useRouter:function(){return v},useParams:function(){return g},useSelectedLayoutSegments:function(){return y},useSelectedLayoutSegment:function(){return x},redirect:function(){return u.redirect},permanentRedirect:function(){return u.permanentRedirect},RedirectType:function(){return u.RedirectType},notFound:function(){return c.notFound}});let r=n(2784),i=n(60587),o=n(58839),a=n(26252),s=n(4424),l=n(44673),u=n(75903),c=n(47067),d=Symbol("internal for urlsearchparams readonly");function f(){return Error("ReadonlyURLSearchParams cannot be modified")}class h{[Symbol.iterator](){return this[d][Symbol.iterator]()}append(){throw f()}delete(){throw f()}set(){throw f()}sort(){throw f()}constructor(e){this[d]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e),this.size=e.size}}function p(){(0,a.clientHookInServerComponentError)("useSearchParams");let e=(0,r.useContext)(o.SearchParamsContext),t=(0,r.useMemo)(()=>e?new h(e):null,[e]);return t}function m(){return(0,a.clientHookInServerComponentError)("usePathname"),(0,r.useContext)(o.PathnameContext)}function v(){(0,a.clientHookInServerComponentError)("useRouter");let e=(0,r.useContext)(i.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function g(){(0,a.clientHookInServerComponentError)("useParams");let e=(0,r.useContext)(i.GlobalLayoutRouterContext),t=(0,r.useContext)(o.PathParamsContext);return e?function e(t,n){void 0===n&&(n={});let r=t[1];for(let t of Object.values(r)){let r=t[0],i=Array.isArray(r),o=i?r[1]:r;if(!o||o.startsWith("__PAGE__"))continue;let a=i&&("c"===r[2]||"oc"===r[2]);a?n[r[0]]=r[1].split("/"):i&&(n[r[0]]=r[1]),n=e(t,n)}return n}(e.tree):t}function y(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,r.useContext)(i.LayoutRouterContext);return function e(t,n,r,i){let o;if(void 0===r&&(r=!0),void 0===i&&(i=[]),r)o=t[1][n];else{var a;let e=t[1];o=null!=(a=e.children)?a:Object.values(e)[0]}if(!o)return i;let l=o[0],u=(0,s.getSegmentValue)(l);return!u||u.startsWith("__PAGE__")?i:(i.push(u),e(o,n,!1,i))}(t,e)}function x(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=y(e);return 0===t.length?null:t[0]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},47067:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{notFound:function(){return r},isNotFoundError:function(){return i}});let n="NEXT_NOT_FOUND";function r(){let e=Error(n);throw e.digest=n,e}function i(e){return(null==e?void 0:e.digest)===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75903:function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return r},getRedirectError:function(){return s},redirect:function(){return l},permanentRedirect:function(){return u},isRedirectError:function(){return c},getURLFromRedirectError:function(){return d},getRedirectTypeFromError:function(){return f}});let o=n(7552),a="NEXT_REDIRECT";function s(e,t,n){void 0===n&&(n=!1);let r=Error(a);r.digest=a+";"+t+";"+e+";"+n;let i=o.requestAsyncStorage.getStore();return i&&(r.mutableCookies=i.mutableCookies),r}function l(e,t){throw void 0===t&&(t="replace"),s(e,t,!1)}function u(e,t){throw void 0===t&&(t="replace"),s(e,t,!0)}function c(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,n,r,i]=e.digest.split(";",4);return t===a&&("replace"===n||"push"===n)&&"string"==typeof r&&("true"===i||"false"===i)}function d(e){return c(e)?e.digest.split(";",3)[2]:null}function f(e){if(!c(e))throw Error("Not a redirect error");return e.digest.split(";",3)[1]}(i=r||(r={})).push="push",i.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7552:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return i}});let r=n(2271),i=(0,r.createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4424:function(e,t){"use strict";function n(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},23116:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PrefetchKind:function(){return n},ACTION_REFRESH:function(){return i},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return s},ACTION_PREFETCH:function(){return l},ACTION_FAST_REFRESH:function(){return u},ACTION_SERVER_ACTION:function(){return c}});let i="refresh",o="navigate",a="restore",s="server-patch",l="prefetch",u="fast-refresh",c="server-action";(r=n||(n={})).AUTO="auto",r.FULL="full",r.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25146:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(67858),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},80920:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return y}});let r=n(43219),i=n(16794),o=i._(n(2784)),a=r._(n(28316)),s=r._(n(37412)),l=n(31918),u=n(97686),c=n(45802);n(84759);let d=n(54365),f=r._(n(2088)),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function p(e,t,n,r,i,o){let a=null==e?void 0:e.src;if(!e||e["data-loaded-src"]===a)return;e["data-loaded-src"]=a;let s="decode"in e?e.decode():Promise.resolve();s.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,i=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}})}function m(e){let[t,n]=o.version.split("."),r=parseInt(t,10),i=parseInt(n,10);return r>18||18===r&&i>=3?{fetchPriority:e}:{fetchpriority:e}}let v=(0,o.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:i,height:a,width:s,decoding:l,className:u,style:c,fetchPriority:d,placeholder:f,loading:h,unoptimized:v,fill:g,onLoadRef:y,onLoadingCompleteRef:x,setBlurComplete:b,setShowAltText:w,onLoad:E,onError:j,...k}=e;return o.default.createElement("img",{...k,...m(d),loading:h,width:s,height:a,decoding:l,"data-nimg":g?"fill":"1",className:u,style:c,sizes:i,srcSet:r,src:n,ref:(0,o.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(j&&(e.src=e.src),e.complete&&p(e,f,y,x,b,v))},[n,f,y,x,b,j,v,t]),onLoad:e=>{let t=e.currentTarget;p(t,f,y,x,b,v)},onError:e=>{w(!0),"empty"!==f&&b(!0),j&&j(e)}})});function g(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...m(n.fetchPriority)};return t&&a.default.preload?(a.default.preload(n.src,r),null):o.default.createElement(s.default,null,o.default.createElement("link",{key:"__nimg-"+n.src+n.srcSet+n.sizes,rel:"preload",href:n.srcSet?void 0:n.src,...r}))}let y=(0,o.forwardRef)((e,t)=>{let n=(0,o.useContext)(d.RouterContext),r=(0,o.useContext)(c.ImageConfigContext),i=(0,o.useMemo)(()=>{let e=h||r||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[r]),{onLoad:a,onLoadingComplete:s}=e,p=(0,o.useRef)(a);(0,o.useEffect)(()=>{p.current=a},[a]);let m=(0,o.useRef)(s);(0,o.useEffect)(()=>{m.current=s},[s]);let[y,x]=(0,o.useState)(!1),[b,w]=(0,o.useState)(!1),{props:E,meta:j}=(0,l.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:y,showAltText:b});return o.default.createElement(o.default.Fragment,null,o.default.createElement(v,{...E,unoptimized:j.unoptimized,placeholder:j.placeholder,fill:j.fill,onLoadRef:p,onLoadingCompleteRef:m,setBlurComplete:x,setShowAltText:w,ref:t}),j.priority?o.default.createElement(g,{isAppRouter:!n,imgAttributes:E}):null)});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},13814:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return b}});let r=n(43219),i=r._(n(2784)),o=n(31068),a=n(33134),s=n(39585),l=n(51570),u=n(19868),c=n(54365),d=n(60587),f=n(93629),h=n(25146),p=n(10694),m=n(23116),v=new Set;function g(e,t,n,r,i,o){if(!o&&!(0,a.isLocalURL)(t))return;if(!r.bypassPrefetchedCheck){let i=void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0,o=t+"%"+n+"%"+i;if(v.has(o))return;v.add(o)}let s=o?e.prefetch(t,i):e.prefetch(t,n,r);Promise.resolve(s).catch(e=>{})}function y(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let x=i.default.forwardRef(function(e,t){let n,r;let{href:s,as:v,children:x,prefetch:b=null,passHref:w,replace:E,shallow:j,scroll:k,locale:S,onClick:_,onMouseEnter:O,onTouchStart:C,legacyBehavior:M=!1,...A}=e;n=x,M&&("string"==typeof n||"number"==typeof n)&&(n=i.default.createElement("a",null,n));let T=i.default.useContext(c.RouterContext),P=i.default.useContext(d.AppRouterContext),N=null!=T?T:P,R=!T,D=!1!==b,L=null===b?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,{href:F,as:V}=i.default.useMemo(()=>{if(!T){let e=y(s);return{href:e,as:v?y(v):e}}let[e,t]=(0,o.resolveHref)(T,s,!0);return{href:e,as:v?(0,o.resolveHref)(T,v):t||e}},[T,s,v]),z=i.default.useRef(F),I=i.default.useRef(V);M&&(r=i.default.Children.only(n));let Z=M?r&&"object"==typeof r&&r.ref:t,[B,H,U]=(0,f.useIntersection)({rootMargin:"200px"}),W=i.default.useCallback(e=>{(I.current!==V||z.current!==F)&&(U(),I.current=V,z.current=F),B(e),Z&&("function"==typeof Z?Z(e):"object"==typeof Z&&(Z.current=e))},[V,Z,F,U,B]);i.default.useEffect(()=>{N&&H&&D&&g(N,F,V,{locale:S},{kind:L},R)},[V,F,H,S,D,null==T?void 0:T.locale,N,R,L]);let q={ref:W,onClick(e){M||"function"!=typeof _||_(e),M&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),N&&!e.defaultPrevented&&function(e,t,n,r,o,s,l,u,c,d){let{nodeName:f}=e.currentTarget,h="A"===f.toUpperCase();if(h&&(function(e){let t=e.currentTarget,n=t.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let p=()=>{let e=null==l||l;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:s,locale:u,scroll:e}):t[o?"replace":"push"](r||n,{forceOptimisticNavigation:!d,scroll:e})};c?i.default.startTransition(p):p()}(e,N,F,V,E,j,k,S,R,D)},onMouseEnter(e){M||"function"!=typeof O||O(e),M&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),N&&(D||!R)&&g(N,F,V,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:L},R)},onTouchStart(e){M||"function"!=typeof C||C(e),M&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),N&&(D||!R)&&g(N,F,V,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:L},R)}};if((0,l.isAbsoluteUrl)(V))q.href=V;else if(!M||w||"a"===r.type&&!("href"in r.props)){let e=void 0!==S?S:null==T?void 0:T.locale,t=(null==T?void 0:T.isLocaleDomain)&&(0,h.getDomainLocale)(V,e,null==T?void 0:T.locales,null==T?void 0:T.domainLocales);q.href=t||(0,p.addBasePath)((0,u.addLocale)(V,e,null==T?void 0:T.defaultLocale))}return M?i.default.cloneElement(r,q):i.default.createElement("a",{...A,...q},n)}),b=x;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93629:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(2784),i=n(30857),o="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,u=l||!o,[c,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),h=(0,r.useCallback)(e=>{f.current=e},[]);(0,r.useEffect)(()=>{if(o){if(u||c)return;let e=f.current;if(e&&e.tagName){let r=function(e,t,n){let{id:r,observer:i,elements:o}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let i=new Map,o=new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:o,elements:i},s.push(n),a.set(n,t),t}(n);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n});return r}}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,n,t,c,f.current]);let p=(0,r.useCallback)(()=>{d(!1)},[]);return[h,c,p]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},31918:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),n(84759);let r=n(69933),i=n(97686);function o(e){return void 0!==e.default}function a(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function s(e,t){var n;let s,l,u,{src:c,sizes:d,unoptimized:f=!1,priority:h=!1,loading:p,className:m,quality:v,width:g,height:y,fill:x=!1,style:b,onLoad:w,onLoadingComplete:E,placeholder:j="empty",blurDataURL:k,fetchPriority:S,layout:_,objectFit:O,objectPosition:C,lazyBoundary:M,lazyRoot:A,...T}=e,{imgConf:P,showAltText:N,blurComplete:R,defaultLoader:D}=t,L=P||i.imageConfigDefault;if("allSizes"in L)s=L;else{let e=[...L.deviceSizes,...L.imageSizes].sort((e,t)=>e-t),t=L.deviceSizes.sort((e,t)=>e-t);s={...L,allSizes:e,deviceSizes:t}}let F=T.loader||D;delete T.loader,delete T.srcSet;let V="__next_img_default"in F;if(V){if("custom"===s.loader)throw Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=F;F=t=>{let{config:n,...r}=t;return e(r)}}if(_){"fill"===_&&(x=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[_];e&&(b={...b,...e});let t={responsive:"100vw",fill:"100vw"}[_];t&&!d&&(d=t)}let z="",I=a(g),Z=a(y);if("object"==typeof(n=c)&&(o(n)||void 0!==n.src)){let e=o(c)?c.default:c;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(l=e.blurWidth,u=e.blurHeight,k=k||e.blurDataURL,z=e.src,!x){if(I||Z){if(I&&!Z){let t=I/e.width;Z=Math.round(e.height*t)}else if(!I&&Z){let t=Z/e.height;I=Math.round(e.width*t)}}else I=e.width,Z=e.height}}let B=!h&&("lazy"===p||void 0===p);(!(c="string"==typeof c?c:z)||c.startsWith("data:")||c.startsWith("blob:"))&&(f=!0,B=!1),s.unoptimized&&(f=!0),V&&c.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(f=!0),h&&(S="high");let H=a(v),U=Object.assign(x?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:O,objectPosition:C}:{},N?{}:{color:"transparent"},b),W=R||"empty"===j?null:"blur"===j?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:I,heightInt:Z,blurWidth:l,blurHeight:u,blurDataURL:k||"",objectFit:U.objectFit})+'")':'url("'+j+'")',q=W?{backgroundSize:U.objectFit||"cover",backgroundPosition:U.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:W}:{},$=function(e){let{config:t,src:n,unoptimized:r,width:i,quality:o,sizes:a,loader:s}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,n){let{deviceSizes:r,allSizes:i}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:i,kind:"w"}}if("number"!=typeof t)return{widths:r,kind:"w"};let o=[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))];return{widths:o,kind:"x"}}(t,i,a),c=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((e,r)=>s({config:t,src:n,quality:o,width:e})+" "+("w"===u?e:r+1)+u).join(", "),src:s({config:t,src:n,quality:o,width:l[c]})}}({config:s,src:c,unoptimized:f,width:I,quality:H,sizes:d,loader:F}),Y={...T,loading:B?"lazy":p,fetchPriority:S,width:I,height:Z,decoding:"async",className:m,style:{...U,...q},sizes:$.sizes,srcSet:$.srcSet,src:$.src},G={unoptimized:f,priority:h,placeholder:j,fill:x};return{props:Y,meta:G}}},69933:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:o,objectFit:a}=e,s=r?40*r:t,l=i?40*i:n,u=s&&l?"viewBox='0 0 "+s+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},81963:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return u},unstable_getImgProps:function(){return l}});let r=n(43219),i=n(31918),o=n(84759),a=n(80920),s=r._(n(2088)),l=e=>{(0,o.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:t}=(0,i.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}},u=a.Image},2088:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:i}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},44673:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return a}});let r=n(16794),i=r._(n(2784)),o=i.default.createContext(null);function a(e){let t=(0,i.useContext)(o);t&&t(e)}},37832:function(){},49854:function(e){e.exports={style:{fontFamily:"'__IBM_Plex_Mono_355ef5', '__IBM_Plex_Mono_Fallback_355ef5'"},className:"__className_355ef5",variable:"__variable_355ef5"}},1240:function(e){e.exports={style:{fontFamily:"'__IBM_Plex_Sans_829fdc', '__IBM_Plex_Sans_Fallback_829fdc'"},className:"__className_829fdc",variable:"__variable_829fdc"}},97729:function(e,t,n){e.exports=n(37412)},96577:function(e,t,n){e.exports=n(81963)},39097:function(e,t,n){e.exports=n(13814)},82876:function(e,t,n){e.exports=n(55046)},5632:function(e,t,n){e.exports=n(60222)},24470:function(e){var t=String,n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}};e.exports=n(),e.exports.createColors=n},34406:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c1)for(var n=1;n=this._maxSize&&this.clear(),!(e in this._values)&&this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,i=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new t(512),l=new t(512),u=new t(512);function c(e){return s.get(e)||s.set(e,d(e).map(function(e){return e.replace(a,"$2")}))}function d(e){return e.match(n)||[""]}function f(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}e.exports={Cache:t,split:d,normalizePath:c,setter:function(e){var t=c(e);return l.get(e)||l.set(e,function(e,n){for(var r=0,i=t.length,o=e;r>>7-e%8&1)==1},put:function(e,t){for(var n=0;n>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},81432:function(e){e.exports={L:1,M:0,Q:3,H:2}},84695:function(e,t,n){var r=n(35856);function i(e,t){if(void 0==e.length)throw Error(e.length+"/"+t);for(var n=0;n=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=l.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},u.setupPositionProbePattern=function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1)&&!(this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4?this.modules[e+n][t+r]=!0:this.modules[e+n][t+r]=!1)},u.getBestMaskPattern=function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=a.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t},u.createMovieClip=function(e,t,n){var r=e.createEmptyMovieClip(t,n);this.make();for(var i=0;i>n&1)==1;this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(var n=0;n<18;n++){var r=!e&&(t>>n&1)==1;this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},u.setupTypeInfo=function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=a.getBCHTypeInfo(n),i=0;i<15;i++){var o=!e&&(r>>i&1)==1;i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(var i=0;i<15;i++){var o=!e&&(r>>i&1)==1;i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o}this.modules[this.moduleCount-8][8]=!e},u.mapData=function(e,t){for(var n=-1,r=this.moduleCount-1,i=7,o=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var l=0;l<2;l++)if(null==this.modules[r][s-l]){var u=!1;o>>i&1)==1),a.getMask(t,r,s-l)&&(u=!u),this.modules[r][s-l]=u,-1==--i&&(o++,i=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}},l.PAD0=236,l.PAD1=17,l.createData=function(e,t,n){for(var r=i.getRSBlocks(e,t),s=new o,u=0;u8*d)throw Error("code length overflow. ("+s.getLengthInBits()+">"+8*d+")");for(s.getLengthInBits()+4<=8*d&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*d)&&(s.put(l.PAD0,8),!(s.getLengthInBits()>=8*d));)s.put(l.PAD1,8);return l.createBytes(s,r)},l.createBytes=function(e,t){for(var n=0,r=0,i=0,o=Array(t.length),l=Array(t.length),u=0;u=0?p.get(m):0}}for(var v=0,f=0;f=256;)e-=255;return t.EXP_TABLE[e]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},n=0;n<8;n++)t.EXP_TABLE[n]=1<=0;)t^=s.G15<=0;)t^=s.G18<>>=1;return t},getPatternPosition:function(e){return s.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case a.PATTERN000:return(t+n)%2==0;case a.PATTERN001:return t%2==0;case a.PATTERN010:return n%3==0;case a.PATTERN011:return(t+n)%3==0;case a.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case a.PATTERN101:return t*n%2+t*n%3==0;case a.PATTERN110:return(t*n%2+t*n%3)%2==0;case a.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new i([1],0),n=0;n5&&(n+=3+o-5)}for(var r=0;r=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","size","title","xmlns"]);return o.default.createElement("svg",r({},s,{height:n,width:n,xmlns:a}),i?o.default.createElement("title",null,i):null,t)};l.propTypes=s,l.defaultProps={title:void 0,xmlns:"http://www.w3.org/2000/svg"},t.default=l},38001:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["bgColor","fgColor","level","size","value"]),h=new i.default(-1,o.default[a]);h.addData(d),h.make();var p=h.modules,m=s/p.length;return l.default.createElement(c.default,r({},f,{size:s}),p.map(function(e,r){return e.map(function(e,i){var o=Math.round(i*m),a=Math.round(r*m),s=Math.round((i+1)*m)-o,c=Math.round((r+1)*m)-a;return l.default.createElement(u.default,{key:"rectangle-"+r+"-"+i,d:"M 0 0 L "+s+" 0 L "+s+" "+c+" L 0 "+c+" Z",fill:e?n:t,transformX:o,transformY:a})})}))};h.propTypes=f,h.defaultProps={bgColor:"#FFFFFF",fgColor:"#000000",level:"L",size:256},t.Z=(0,s.memo)(h)},88965:function(e,t,n){"use strict";n.d(t,{Z:function(){return U}});var r,i,o,a,s,l,u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}"function"==typeof SuppressedError&&SuppressedError;var d=n(2784),f="right-scroll-bar-position",h="width-before-scroll-bar",p=(void 0===r&&(r={}),(void 0===i&&(i=function(e){return e}),o=[],a=!1,s={read:function(){if(a)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:null},useMedium:function(e){var t=i(e,a);return o.push(t),function(){o=o.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(a=!0;o.length;){var t=o;o=[],t.forEach(e)}o={push:function(t){return e(t)},filter:function(){return o}}},assignMedium:function(e){a=!0;var t=[];if(o.length){var n=o;o=[],n.forEach(e),t=o}var r=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(r)};i(),o={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),o}}}}).options=u({async:!0,ssr:!1},r),s),m=function(){},v=d.forwardRef(function(e,t){var n,r,i,o=d.useRef(null),a=d.useState({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:m}),s=a[0],l=a[1],f=e.forwardProps,h=e.children,v=e.className,g=e.removeScrollBar,y=e.enabled,x=e.shards,b=e.sideCar,w=e.noIsolation,E=e.inert,j=e.allowPinchZoom,k=e.as,S=void 0===k?"div":k,_=c(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),O=(n=[o,t],r=function(e){return n.forEach(function(t){return"function"==typeof t?t(e):t&&(t.current=e),t})},(i=(0,d.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,i.facade),C=u(u({},_),s);return d.createElement(d.Fragment,null,y&&d.createElement(b,{sideCar:p,removeScrollBar:g,shards:x,noIsolation:w,inert:E,setCallbacks:l,allowPinchZoom:!!j,lockRef:o}),f?d.cloneElement(d.Children.only(h),u(u({},C),{ref:O})):d.createElement(S,u({},C,{className:v,ref:O}),h))});v.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},v.classNames={fullWidth:h,zeroRight:f};var g=function(e){var t=e.sideCar,n=c(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return d.createElement(r,u({},n))};g.isSideCarExport=!0;var y=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=l||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},x=function(){var e=y();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},b=function(){var e=x();return function(t){return e(t.styles,t.dynamic),null}},w={left:0,top:0,right:0,gap:0},E=function(e){return parseInt(e||"",10)||0},j=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[E(n),E(r),E(i)]},k=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return w;var t=j(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},S=b(),_=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(f," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(h," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(f," .").concat(f," {\n right: 0 ").concat(r,";\n }\n \n .").concat(h," .").concat(h," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},O=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r,o=d.useMemo(function(){return k(i)},[i]);return d.createElement(S,{styles:_(o,!t,i,n?"":"!important")})},C=!1;if("undefined"!=typeof window)try{var M=Object.defineProperty({},"passive",{get:function(){return C=!0,!0}});window.addEventListener("test",M,M),window.removeEventListener("test",M,M)}catch(e){C=!1}var A=!!C&&{passive:!1},T=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)},P=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)},N=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),R(e,n)){var r=D(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},R=function(e,t){return"v"===e?T(t):P(t)},D=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},L=function(e,t,n,r,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*r,l=n.target,u=t.contains(l),c=!1,d=s>0,f=0,h=0;do{var p=D(e,l),m=p[0],v=p[1]-p[2]-a*m;(m||v)&&R(e,l)&&(f+=v,h+=m),l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&0===f||!i&&s>f)?c=!0:!d&&(i&&0===h||!i&&-s>h)&&(c=!0),c},F=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},V=function(e){return[e.deltaX,e.deltaY]},z=function(e){return e&&"current"in e?e.current:e},I=0,Z=[],B=(p.useMedium(function(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),i=d.useState(I++)[0],o=d.useState(function(){return b()})[0],a=d.useRef(e);d.useEffect(function(){a.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;iMath.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=N(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=N(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var h=r.current||i;return L(h,t,e,"h"===h?l:u,!0)},[]),l=d.useCallback(function(e){if(Z.length&&Z[Z.length-1]===o){var n="deltaY"in e?V(e):F(e),r=t.current.filter(function(t){var r;return t.name===e.type&&t.target===e.target&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.preventDefault();return}if(!r){var i=(a.current.shards||[]).map(z).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!a.current.noIsolation)&&e.preventDefault()}}},[]),u=d.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),c=d.useCallback(function(e){n.current=F(e),r.current=void 0},[]),f=d.useCallback(function(t){u(t.type,V(t),t.target,s(t,e.lockRef.current))},[]),h=d.useCallback(function(t){u(t.type,F(t),t.target,s(t,e.lockRef.current))},[]);d.useEffect(function(){return Z.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",l,A),document.addEventListener("touchmove",l,A),document.addEventListener("touchstart",c,A),function(){Z=Z.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,A),document.removeEventListener("touchmove",l,A),document.removeEventListener("touchstart",c,A)}},[]);var p=e.removeScrollBar,m=e.inert;return d.createElement(d.Fragment,null,m?d.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,p?d.createElement(O,{gapMode:"margin"}):null)}),g),H=d.forwardRef(function(e,t){return d.createElement(v,u({},e,{ref:t,sideCar:B}))});H.classNames=v.classNames;var U=H},32718:function(e,t,n){var r,i=n(58085),o=n(41964),a=n(53207),s=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;e.exports=function(e,t){return r=0,t=Math.pow(10,void 0===t?5:t),o(e=e.replace(/\n+/g," "),/((?:\-[a-z]+\-)?calc)\(/,function e(n,o,l){if(r++>100)throw r=0,Error("Call stack overflow for "+l);if(""===n)throw Error(o+"(): '"+l+"' must contain a non-whitespace string");var u,c=function(e){for(var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,i=r.exec(e);i;)i&&i[1]&&(-1===n.indexOf(i[1].toLowerCase())&&(t.push(i[1]),n.push(i[1].toLowerCase())),i=r.exec(e));return t}(n=function(t,n){t=t.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var r,o="",a=t;r=s.exec(a);){r[0].index>0&&(o+=a.substring(0,r[0].index));var l=i("(",")",a.substring([0].index));if(""===l.body)throw Error("'"+t+"' must contain a non-whitespace string");var u=e(l.body,"",n);o+=l.pre+u,a=l.post}return o+a}(n,l));if(c.length>1||n.indexOf("var(")>-1)return o+"("+n+")";var d=c[0]||"";"%"===d&&(n=n.replace(/\b[0-9\.]+%/g,function(e){return .01*parseFloat(e.slice(0,-1))}));var f=n.replace(RegExp(d,"gi"),"");try{u=a.eval(f)}catch(e){return o+"("+n+")"}return"%"===d&&(u*=100),(o.length||"%"===d)&&(u=Math.round(u*t)/t),u+=d})}},58085:function(e){function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var o=r(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,o,a,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){for(r=[],o=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(s=[o,a])}return s}e.exports=t,t.range=r},41964:function(e,t,n){var r=n(82294);e.exports=function e(t,n,i){return(function(e,t){var n=[],i="string"==typeof t?RegExp("\\b("+t+")\\("):t;do{var o=i.exec(e);if(!o)break;if(void 0===o[1])throw Error("Missing the first couple of parenthesis to get the function identifier in "+t);var a=o[1],s=o.index,l=r("(",")",e.substring(s));if(!l||l.start!==o[0].length-1)throw SyntaxError(a+"(): missing closing ')' in the value '"+e+"'");n.push({matches:l,functionIdentifier:a}),e=l.post}while(i.test(e));return n})(t,n).reduce(function(r,o){var a,s;return r.replace(o.functionIdentifier+"("+o.matches.body+")",(a=o.matches.body,s=o.functionIdentifier,i(e(a,n,i),s,t)))},t)}},6692:function(e,t,n){let r=n(83128);e.exports=(r.__esModule?r:{default:r}).default},83128:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:()=>a});let i=(r=n(37540))&&r.__esModule?r:{default:r};function o({version:e,from:t,to:n}){i.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${n}\`.`,"Update your configuration file to silence this warning."])}let a={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},get lightBlue(){return o({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return o({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return o({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return o({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return o({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}},37540:function(e,t,n){"use strict";var r,i=n(34406);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{dim:()=>l,default:()=>u});let o=(r=n(24470))&&r.__esModule?r:{default:r},a=new Set;function s(e,t,n){(void 0===i||!i.env.JEST_WORKER_ID)&&(n&&a.has(n)||(n&&a.add(n),console.warn(""),t.forEach(t=>console.warn(e,"-",t))))}function l(e){return o.default.dim(e)}let u={info(e,t){s(o.default.bold(o.default.cyan("info")),...Array.isArray(e)?[e]:[t,e])},warn(e,t){s(o.default.bold(o.default.yellow("warn")),...Array.isArray(e)?[e]:[t,e])},risk(e,t){s(o.default.bold(o.default.magenta("risk")),...Array.isArray(e)?[e]:[t,e])}}},95159:function(e){function t(e,t){var n=e.length,r=Array(n),i={},o=n,a=function(e){for(var t=new Map,n=0,r=e.length;n{},{isPersistent:!0,removeItem:()=>{}}];let l=null==t?void 0:t.serializer;return function(e,t,n=!0,l=function(e){return"undefined"===e?void 0:JSON.parse(e)},u=JSON.stringify){i.has(e)||void 0===t||null!==s(()=>localStorage.getItem(e))||s(()=>localStorage.setItem(e,u(t)));let c=(0,r.useRef)({item:null,parsed:t}),d=(0,r.useSyncExternalStore)((0,r.useCallback)(t=>{let n=n=>{e===n&&t()};return o.add(n),()=>{o.delete(n)}},[e]),()=>{var n;let r=null!==(n=s(()=>localStorage.getItem(e)))&&void 0!==n?n:null;if(i.has(e))c.current={item:r,parsed:i.get(e)};else if(r!==c.current.item){let e;try{e=null===r?t:l(r)}catch(n){e=t}c.current={item:r,parsed:e}}return c.current.parsed},()=>t),f=(0,r.useCallback)(t=>{let n=t instanceof Function?t(c.current.parsed):t;try{localStorage.setItem(e,u(n)),i.delete(e)}catch(t){i.set(e,n)}a(e)},[e,u]);return(0,r.useEffect)(()=>{if(!n)return;let t=t=>{t.storageArea===s(()=>localStorage)&&t.key===e&&a(e)};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)},[e,n]),(0,r.useMemo)(()=>[d,f,{isPersistent:d===t||!i.has(e),removeItem(){s(()=>localStorage.removeItem(e)),i.delete(e),a(e)}}],[e,f,d,t])}(e,n,null==t?void 0:t.storageSync,null==l?void 0:l.parse,null==l?void 0:l.stringify)}},20452:function(e,t,n){"use strict";/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var r=n(2784),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),a(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},43100:function(e,t,n){"use strict";e.exports=n(20452)},24511:function(e,t,n){"use strict";n.d(t,{Rx:function(){return Y},Ry:function(){return em},Z_:function(){return W}});try{v=Map}catch(e){}try{g=Set}catch(e){}function r(e){return function e(t,n,i){if(!t||"object"!=typeof t||"function"==typeof t)return t;if(t.nodeType&&"cloneNode"in t)return t.cloneNode(!0);if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);if(Array.isArray(t))return t.map(r);if(v&&t instanceof v)return new Map(Array.from(t.entries()));if(g&&t instanceof g)return new Set(Array.from(t.values()));if(t instanceof Object){n.push(t);var o=Object.create(t);for(var a in i.push(o),t){var s=n.findIndex(function(e){return e===t[a]});o[a]=s>-1?i[s]:e(t[a],n,i)}return o}return t}(e,[],[])}let i=Object.prototype.toString,o=Error.prototype.toString,a=RegExp.prototype.toString,s="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",l=/^Symbol\((.*)\)(.*)$/;function u(e,t=!1){if(null==e||!0===e||!1===e)return""+e;let n=typeof e;if("number"===n)return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e;if("string"===n)return t?`"${e}"`:e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return s.call(e).replace(l,"Symbol($1)");let r=i.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+o.call(e)+"]":"RegExp"===r?a.call(e):null}function c(e,t){let n=u(e,t);return null!==n?n:JSON.stringify(e,function(e,n){let r=u(this[e],t);return null!==r?r:n},2)}let d={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{let i=null!=r&&r!==n,o=`${e} must be a \`${t}\` type, but the final value was: \`${c(n,!0)}\``+(i?` (cast from the value \`${c(r,!0)}\`).`:".");return null===n&&(o+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),o},defined:"${path} must be defined"},f={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},h={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},p={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},m={noUnknown:"${path} field has unspecified keys: ${unknown}"};Object.assign(Object.create(null),{mixed:d,string:f,number:h,date:p,object:m,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:{isValue:"${path} field must be ${value}"}});var v,g,y=n(93352),x=n.n(y),b=e=>e&&e.__isYupSchema__,w=class{constructor(e,t){if(this.fn=void 0,this.refs=e,this.refs=e,"function"==typeof t){this.fn=t;return}if(!x()(t,"is"))throw TypeError("`is:` is required for `when()` conditions");if(!t.then&&!t.otherwise)throw TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:r,otherwise:i}=t,o="function"==typeof n?n:(...e)=>e.every(e=>e===n);this.fn=function(...e){let t=e.pop(),n=e.pop(),a=o(...e)?r:i;if(a)return"function"==typeof a?a(n):n.concat(a.resolve(t))}}resolve(e,t){let n=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),r=this.fn.apply(e,n.concat(e,t));if(void 0===r||r===e)return e;if(!b(r))throw TypeError("conditions must return a schema object");return r.resolve(t)}};function E(e){return null==e?[]:[].concat(e)}function j(){return(j=Object.assign||function(e){for(var t=1;tc(t[n])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,n,r){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],E(e).forEach(e=>{S.isError(e)?(this.errors.push(...e.errors),this.inner=this.inner.concat(e.inner.length?e.inner:e)):this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,S)}}let _=e=>{let t=!1;return(...n)=>{t||(t=!0,e(...n))}};function O(e,t){let{endEarly:n,tests:r,args:i,value:o,errors:a,sort:s,path:l}=e,u=_(t),c=r.length,d=[];if(a=a||[],!c)return a.length?u(new S(a,o,l)):u(null,o);for(let e=0;e=0||(i[n]=e[n]);return i}(t,["value","path","label","options","originalValue","sync"]),{name:d,test:f,params:h,message:p}=e,{parent:m,context:v}=s;function g(e){return P.isRef(e)?e.getValue(i,m,v):e}function y(e={}){let t=M()(N({value:i,originalValue:l,label:a,path:e.path||o},h,e.params),g),n=new S(S.formatError(e.message||p,t),i,t.path,e.type||d);return n.params=t,n}let x=N({path:o,parent:m,type:d,createError:y,resolve:g,options:s,originalValue:l},c);if(!u){try{Promise.resolve(f.call(x,i,x)).then(e=>{S.isError(e)?n(e):e?n(null,e):n(y())}).catch(n)}catch(e){n(e)}return}try{var b;if(r=f.call(x,i,x),"function"==typeof(null==(b=r)?void 0:b.then))throw Error(`Validation test of type: "${x.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(e){n(e);return}S.isError(r)?n(r):r?n(null,r):n(y())}return t.OPTIONS=e,t}P.prototype.__isYupRef=!0;let D=e=>e.substr(0,e.length-1).substr(1);class L{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){let e=[];for(let t of this.list)e.push(t);for(let[,t]of this.refs)e.push(t.describe());return e}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(e){return this.toArray().reduce((t,n)=>t.concat(P.isRef(n)?e(n):n),[])}add(e){P.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){P.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){let e=new L;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,t){let n=this.clone();return e.list.forEach(e=>n.add(e)),e.refs.forEach(e=>n.add(e)),t.list.forEach(e=>n.delete(e)),t.refs.forEach(e=>n.delete(e)),n}}function F(){return(F=Object.assign||function(e){for(var t=1;t{this.typeError(d.notType)}),this.type=(null==e?void 0:e.type)||"mixed",this.spec=F({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},null==e?void 0:e.spec)}get _type(){return this.type}_typeCheck(e){return!0}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;let t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeError=this._typeError,t._whitelistError=this._whitelistError,t._blacklistError=this._blacklistError,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.exclusiveTests=F({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=r(F({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=t,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=e.clone(),n=F({},this.spec,t.spec);return t.spec=n,t._typeError||(t._typeError=this._typeError),t._whitelistError||(t._whitelistError=this._whitelistError),t._blacklistError||(t._blacklistError=this._blacklistError),t._whitelist=this._whitelist.merge(e._whitelist,e._blacklist),t._blacklist=this._blacklist.merge(e._blacklist,e._whitelist),t.tests=this.tests,t.exclusiveTests=this.exclusiveTests,t.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),t.transforms=[...this.transforms,...t.transforms],t}isType(e){return!!this.spec.nullable&&null===e||this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let n=t.conditions;(t=t.clone()).conditions=[],t=(t=n.reduce((t,n)=>n.resolve(t,e),t)).resolve(e)}return t}cast(e,t={}){let n=this.resolve(F({value:e},t)),r=n._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==n.isType(r)){let i=c(e),o=c(r);throw TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${n._type}". - -attempted value: ${i} -`+(o!==i?`result of cast: ${o}`:""))}return r}_cast(e,t){let n=void 0===e?e:this.transforms.reduce((t,n)=>n.call(this,t,e,this),e);return void 0===n&&(n=this.getDefault()),n}_validate(e,t={},n){let{sync:r,path:i,from:o=[],originalValue:a=e,strict:s=this.spec.strict,abortEarly:l=this.spec.abortEarly}=t,u=e;s||(u=this._cast(u,F({assert:!1},t)));let c={value:u,path:i,options:t,originalValue:a,schema:this,label:this.spec.label,sync:r,from:o},d=[];this._typeError&&d.push(this._typeError);let f=[];this._whitelistError&&f.push(this._whitelistError),this._blacklistError&&f.push(this._blacklistError),O({args:c,value:u,path:i,sync:r,tests:d,endEarly:l},e=>{if(e)return void n(e,u);O({tests:this.tests.concat(f),args:c,path:i,sync:r,value:u,endEarly:l},n)})}validate(e,t,n){let r=this.resolve(F({},t,{value:e}));return"function"==typeof n?r._validate(e,t,n):new Promise((n,i)=>r._validate(e,t,(e,t)=>{e?i(e):n(t)}))}validateSync(e,t){let n;return this.resolve(F({},t,{value:e}))._validate(e,F({},t,{sync:!0}),(e,t)=>{if(e)throw e;n=t}),n}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(S.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(S.isError(e))return!1;throw e}}_getDefault(){let e=this.spec.default;return null==e?e:"function"==typeof e?e.call(this):r(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){return 0==arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){let t=this.clone();return t.spec.strict=e,t}_isPresent(e){return null!=e}defined(e=d.defined){return this.test({message:e,name:"defined",exclusive:!0,test:e=>void 0!==e})}required(e=d.required){return this.clone({presence:"required"}).withMutation(t=>t.test({message:e,name:"required",exclusive:!0,test(e){return this.schema._isPresent(e)}}))}notRequired(){let e=this.clone({presence:"optional"});return e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e}nullable(e=!0){return this.clone({nullable:!1!==e})}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(void 0===(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]}).message&&(t.message=d.default),"function"!=typeof t.test)throw TypeError("`test` is a required parameters");let n=this.clone(),r=R(t),i=t.exclusive||t.name&&!0===n.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(n.exclusiveTests[t.name]=!!t.exclusive),n.tests=n.tests.filter(e=>e.OPTIONS.name!==t.name||!i&&e.OPTIONS.test!==r.OPTIONS.test),n.tests.push(r),n}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let n=this.clone(),r=E(e).map(e=>new P(e));return r.forEach(e=>{e.isSibling&&n.deps.push(e.key)}),n.conditions.push(new w(r,t)),n}typeError(e){let t=this.clone();return t._typeError=R({message:e,name:"typeError",test(e){return!!(void 0===e||this.schema.isType(e))||this.createError({params:{type:this.schema._type}})}}),t}oneOf(e,t=d.oneOf){let n=this.clone();return e.forEach(e=>{n._whitelist.add(e),n._blacklist.delete(e)}),n._whitelistError=R({message:t,name:"oneOf",test(e){if(void 0===e)return!0;let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}notOneOf(e,t=d.notOneOf){let n=this.clone();return e.forEach(e=>{n._blacklist.add(e),n._whitelist.delete(e)}),n._blacklistError=R({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(){let e=this.clone(),{label:t,meta:n}=e.spec,r={meta:n,label:t,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map(e=>({name:e.OPTIONS.name,params:e.OPTIONS.params})).filter((e,t,n)=>n.findIndex(t=>t.name===e.name)===t)};return r}}for(let e of(V.prototype.__isYupSchema__=!0,["validate","validateSync"]))V.prototype[`${e}At`]=function(t,n,r={}){let{parent:i,parentPath:o,schema:a}=function(e,t,n,r=n){let i,o,a;return t?((0,A.forEach)(t,(s,l,u)=>{let c=l?D(s):s;if((e=e.resolve({context:r,parent:i,value:n})).innerType){let r=u?parseInt(c,10):0;if(n&&r>=n.length)throw Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[r],e=e.innerType}if(!u){if(!e.fields||!e.fields[c])throw Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e._type}")`);i=n,n=n&&n[c],e=e.fields[c]}o=c,a=l?"["+s+"]":"."+s}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}(this,t,n,r.context);return a[e](i&&i[o],F({},r,{parent:i,path:t}))};for(let e of["equals","is"])V.prototype[e]=V.prototype.oneOf;for(let e of["not","nope"])V.prototype[e]=V.prototype.notOneOf;V.prototype.optional=V.prototype.notRequired,V.prototype;var z=e=>null==e;let I=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,Z=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,B=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,H=e=>z(e)||e===e.trim(),U=({}).toString();function W(){return new q}class q extends V{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform(function(e){if(this.isType(e)||Array.isArray(e))return e;let t=null!=e&&e.toString?e.toString():e;return t===U?e:t})})}_typeCheck(e){return e instanceof String&&(e=e.valueOf()),"string"==typeof e}_isPresent(e){return super._isPresent(e)&&!!e.length}length(e,t=f.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return z(t)||t.length===this.resolve(e)}})}min(e,t=f.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return z(t)||t.length>=this.resolve(e)}})}max(e,t=f.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},test(t){return z(t)||t.length<=this.resolve(e)}})}matches(e,t){let n,r,i=!1;return t&&("object"==typeof t?{excludeEmptyString:i=!1,message:n,name:r}=t:n=t),this.test({name:r||"matches",message:n||f.matches,params:{regex:e},test:t=>z(t)||""===t&&i||-1!==t.search(e)})}email(e=f.email){return this.matches(I,{name:"email",message:e,excludeEmptyString:!0})}url(e=f.url){return this.matches(Z,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=f.uuid){return this.matches(B,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=f.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:H})}lowercase(e=f.lowercase){return this.transform(e=>z(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>z(e)||e===e.toLowerCase()})}uppercase(e=f.uppercase){return this.transform(e=>z(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>z(e)||e===e.toUpperCase()})}}W.prototype=q.prototype;let $=e=>e!=+e;function Y(){return new G}class G extends V{constructor(){super({type:"number"}),this.withMutation(()=>{this.transform(function(e){let t=e;if("string"==typeof t){if(""===(t=t.replace(/\s/g,"")))return NaN;t=+t}return this.isType(t)?t:parseFloat(t)})})}_typeCheck(e){return e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&!$(e)}min(e,t=h.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return z(t)||t>=this.resolve(e)}})}max(e,t=h.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return z(t)||t<=this.resolve(e)}})}lessThan(e,t=h.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},test(t){return z(t)||tthis.resolve(e)}})}positive(e=h.positive){return this.moreThan(0,e)}negative(e=h.negative){return this.lessThan(0,e)}integer(e=h.integer){return this.test({name:"integer",message:e,test:e=>z(e)||Number.isInteger(e)})}truncate(){return this.transform(e=>z(e)?e:0|e)}round(e){var t;let n=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===n.indexOf(e.toLowerCase()))throw TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(t=>z(t)?t:Math[e](t))}}Y.prototype=G.prototype;var X=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let K=new Date(""),Q=e=>"[object Date]"===Object.prototype.toString.call(e);function J(){return new ee}class ee extends V{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(e){return this.isType(e)?e:isNaN(e=function(e){var t,n,r=[1,4,5,6,7,10,11],i=0;if(n=X.exec(e)){for(var o,a=0;o=r[a];++a)n[o]=+n[o]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,n[7]=n[7]?String(n[7]).substr(0,3):0,(void 0===n[8]||""===n[8])&&(void 0===n[9]||""===n[9])?t=+new Date(n[1],n[2],n[3],n[4],n[5],n[6],n[7]):("Z"!==n[8]&&void 0!==n[9]&&(i=60*n[10]+n[11],"+"===n[9]&&(i=0-i)),t=Date.UTC(n[1],n[2],n[3],n[4],n[5]+i,n[6],n[7]))}else t=Date.parse?Date.parse(e):NaN;return t}(e))?K:new Date(e)})})}_typeCheck(e){return Q(e)&&!isNaN(e.getTime())}prepareParam(e,t){let n;if(P.isRef(e))n=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);n=r}return n}min(e,t=p.min){let n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(e){return z(e)||e>=this.resolve(n)}})}max(e,t=p.max){let n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(e){return z(e)||e<=this.resolve(n)}})}}ee.INVALID_DATE=K,J.prototype=ee.prototype,J.INVALID_DATE=K;var et=n(57370),en=n.n(et),er=n(96009),ei=n.n(er),eo=n(19950),ea=n.n(eo),es=n(95159),el=n.n(es);function eu(e,t){let n=1/0;return e.some((e,r)=>{var i;if((null==(i=t.path)?void 0:i.indexOf(e))!==-1)return n=r,!0}),n}function ec(e){return(t,n)=>eu(e,t)-eu(e,n)}function ed(){return(ed=Object.assign||function(e){for(var t=1;t"[object Object]"===Object.prototype.toString.call(e),eh=ec([]);class ep extends V{constructor(e){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=eh,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform(function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null}),e&&this.shape(e)})}_typeCheck(e){return ef(e)||"function"==typeof e}_cast(e,t={}){var n;let r=super._cast(e,t);if(void 0===r)return this.getDefault();if(!this._typeCheck(r))return r;let i=this.fields,o=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,a=this._nodes.concat(Object.keys(r).filter(e=>-1===this._nodes.indexOf(e))),s={},l=ed({},t,{parent:s,__validating:t.__validating||!1}),u=!1;for(let e of a){let n=i[e],a=x()(r,e);if(n){let i;let o=r[e];l.path=(t.path?`${t.path}.`:"")+e;let a="spec"in(n=n.resolve({value:o,context:t.context,parent:s}))?n.spec:void 0,c=null==a?void 0:a.strict;if(null==a?void 0:a.strip){u=u||e in r;continue}void 0!==(i=t.__validating&&c?r[e]:n.cast(r[e],l))&&(s[e]=i)}else a&&!o&&(s[e]=r[e]);s[e]!==r[e]&&(u=!0)}return u?s:r}_validate(e,t={},n){let r=[],{sync:i,from:o=[],originalValue:a=e,abortEarly:s=this.spec.abortEarly,recursive:l=this.spec.recursive}=t;o=[{schema:this,value:a},...o],t.__validating=!0,t.originalValue=a,t.from=o,super._validate(e,t,(e,u)=>{if(e){if(!S.isError(e)||s)return void n(e,u);r.push(e)}if(!l||!ef(u)){n(r[0]||null,u);return}a=a||u,O({sync:i,tests:this._nodes.map(e=>(n,r)=>{let i=-1===e.indexOf(".")?(t.path?`${t.path}.`:"")+e:`${t.path||""}["${e}"]`,s=this.fields[e];if(s&&"validate"in s){s.validate(u[e],ed({},t,{path:i,from:o,strict:!0,parent:u,originalValue:a[e]}),r);return}r(null)}),value:u,errors:r,endEarly:s,sort:this._sortErrors,path:t.path},n)})}clone(e){let t=super.clone(e);return t.fields=ed({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),n=t.fields;for(let[e,t]of Object.entries(this.fields)){let r=n[e];void 0===r?n[e]=t:r instanceof V&&t instanceof V&&(n[e]=t.concat(r))}return t.withMutation(()=>t.shape(n,this._excludedEdges))}getDefaultFromShape(){let e={};return this._nodes.forEach(t=>{let n=this.fields[t];e[t]="default"in n?n.getDefault():void 0}),e}_getDefault(){return"default"in this.spec?super._getDefault():this._nodes.length?this.getDefaultFromShape():void 0}shape(e,t=[]){let n=this.clone(),r=Object.assign(n.fields,e);return n.fields=r,n._sortErrors=ec(Object.keys(r)),t.length&&(Array.isArray(t[0])||(t=[t]),n._excludedEdges=[...n._excludedEdges,...t]),n._nodes=function(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([e,t])=>`${e}-${t}`));function o(e,t){let o=(0,A.split)(e)[0];r.add(o),i.has(`${t}-${o}`)||n.push([t,o])}for(let t in e)if(x()(e,t)){let n=e[t];r.add(t),P.isRef(n)&&n.isSibling?o(n.path,t):b(n)&&"deps"in n&&n.deps.forEach(e=>o(e,t))}return el().array(Array.from(r),n).reverse()}(r,n._excludedEdges),n}pick(e){let t={};for(let n of e)this.fields[n]&&(t[n]=this.fields[n]);return this.clone().withMutation(e=>(e.fields={},e.shape(t)))}omit(e){let t=this.clone(),n=t.fields;for(let r of(t.fields={},e))delete n[r];return t.withMutation(()=>t.shape(n))}from(e,t,n){let r=(0,A.getter)(e,!0);return this.transform(i=>{if(null==i)return i;let o=i;return x()(i,e)&&(o=ed({},i),n||delete o[e],o[t]=r(i)),o})}noUnknown(e=!0,t=m.noUnknown){"string"==typeof e&&(t=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){let n;if(null==t)return!0;let r=(n=Object.keys(this.schema.fields),Object.keys(t).filter(e=>-1===n.indexOf(e)));return!e||0===r.length||this.createError({params:{unknown:r.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(e=!0,t=m.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>t&&ea()(t,(t,n)=>e(n)))}camelCase(){return this.transformKeys(ei())}snakeCase(){return this.transformKeys(en())}constantCase(){return this.transformKeys(e=>en()(e).toUpperCase())}describe(){let e=super.describe();return e.fields=M()(this.fields,e=>e.describe()),e}}function em(e){return new ep(e)}em.prototype=ep.prototype},44868:function(e,t,n){"use strict";var r,i,o=Object.create,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},f={};((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(f,{Animated:()=>x,AnimatedArray:()=>C,AnimatedObject:()=>O,AnimatedString:()=>j,AnimatedValue:()=>w,createHost:()=>z,getAnimated:()=>v,getAnimatedType:()=>T,getPayload:()=>y,isAnimated:()=>m,setAnimated:()=>g}),e.exports=d(a({},"__esModule",{value:!0}),f);var h=n(6901),p=Symbol.for("Animated:node"),m=e=>!!e&&e[p]===e,v=e=>e&&e[p],g=(e,t)=>(0,h.defineHidden)(e,p,t),y=e=>e&&e[p]&&e[p].getPayload(),x=class{constructor(){g(this,this)}getPayload(){return this.payload||[]}},b=n(6901),w=class extends x{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,b.is.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new w(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return b.is.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,b.is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},E=n(6901),j=class extends w{constructor(e){super(0),this._string=null,this._toString=(0,E.createInterpolator)({output:[e,e]})}static create(e){return new j(e)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(e){if(E.is.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=(0,E.createInterpolator)({output:[this.getValue(),e]})),this._value=0,super.reset()}},k=n(6901),S=n(6901),_={dependencies:null},O=class extends x{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return(0,S.eachProp)(this.source,(n,r)=>{m(n)?t[r]=n.getValue(e):(0,S.hasFluidValue)(n)?t[r]=(0,S.getFluidValue)(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&(0,S.each)(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return(0,S.eachProp)(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){_.dependencies&&(0,S.hasFluidValue)(e)&&_.dependencies.add(e);let t=y(e);t&&(0,S.each)(t,e=>this.add(e))}},C=class extends O{constructor(e){super(e)}static create(e){return new C(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(M)),!0)}};function M(e){return((0,k.isAnimatedString)(e)?j:w).create(e)}var A=n(6901);function T(e){let t=v(e);return t?t.constructor:A.is.arr(e)?C:(0,A.isAnimatedString)(e)?j:w}var P=n(6901),N=(i=null!=(r=n(2784))?o(u(r)):{},d(r&&r.__esModule?i:a(i,"default",{value:r,enumerable:!0}),r)),R=n(2784),D=n(6901),L=(e,t)=>{let n=!D.is.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,R.forwardRef)((r,i)=>{var o;let a;let s=(0,R.useRef)(null),l=n&&(0,R.useCallback)(e=>{s.current=(i&&(D.is.fun(i)?i(e):i.current=e),e)},[i]),[u,c]=(o=r,a=new Set,_.dependencies=a,o.style&&(o={...o,style:t.createAnimatedStyle(o.style)}),o=new O(o),_.dependencies=null,[o,a]),d=(0,D.useForceUpdate)(),f=()=>{let e=s.current;(!n||e)&&(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))===!1&&d()},h=new F(f,c),p=(0,R.useRef)();(0,D.useIsomorphicLayoutEffect)(()=>(p.current=h,(0,D.each)(c,e=>(0,D.addFluidObserver)(e,h)),()=>{p.current&&((0,D.each)(p.current.deps,e=>(0,D.removeFluidObserver)(e,p.current)),D.raf.cancel(p.current.update))})),(0,R.useEffect)(f,[]),(0,D.useOnce)(()=>()=>{let e=p.current;(0,D.each)(e.deps,t=>(0,D.removeFluidObserver)(t,e))});let m=t.getComponentProps(u.getValue());return N.createElement(e,{...m,ref:l})})},F=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&D.raf.write(this.update)}},V=Symbol.for("AnimatedComponent"),z=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new O(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{let t=I(e)||"Anonymous";return(e=P.is.str(e)?o[e]||(o[e]=L(e,i)):e[V]||(e[V]=L(e,i))).displayName=`Animated(${t})`,e};return(0,P.eachProp)(e,(t,n)=>{P.is.arr(e)&&(n=I(t)),o[n]=o(t)}),{animated:o}},I=e=>P.is.str(e)?e:e&&P.is.str(e.displayName)?e.displayName:P.is.fun(e)&&e.name||null},22360:function(e,t,n){"use strict";var r,i,o=Object.create,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},f=(e,t,n)=>(n=null!=e?o(u(e)):{},d(!t&&e&&e.__esModule?n:a(n,"default",{value:e,enumerable:!0}),e)),h={};((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(h,{BailSignal:()=>Q,Controller:()=>eE,FrameValue:()=>ei,Globals:()=>tl.Globals,Interpolation:()=>tn,Spring:()=>e5,SpringContext:()=>eN,SpringRef:()=>eL,SpringValue:()=>ed,Trail:()=>e8,Transition:()=>e7,config:()=>F,createInterpolator:()=>tc.createInterpolator,easings:()=>tc.easings,inferTo:()=>k,interpolate:()=>ts,to:()=>ta,update:()=>tu,useChain:()=>A,useInView:()=>e3,useIsomorphicLayoutEffect:()=>tc.useIsomorphicLayoutEffect,useReducedMotion:()=>tc.useReducedMotion,useResize:()=>e0,useScroll:()=>eQ,useSpring:()=>eV,useSpringRef:()=>eZ,useSpringValue:()=>eH,useSprings:()=>eF,useTrail:()=>eW,useTransition:()=>eG}),e.exports=d(a({},"__esModule",{value:!0}),h);var p=n(6901),m=n(6901);function v(e,...t){return m.is.fun(e)?e(...t):e}var g=(e,t)=>!0===e||!!(t&&e&&(m.is.fun(e)?e(t):(0,m.toArray)(e).includes(t))),y=(e,t)=>m.is.obj(e)?t&&e[t]:e,x=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,b=e=>e,w=(e,t=b)=>{let n=E;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);m.is.und(n)||(r[i]=n)}return r},E=["config","onProps","onStart","onChange","onPause","onResume","onRest"],j={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function k(e){let t=function(e){let t={},n=0;if((0,m.eachProp)(e,(e,r)=>{j[r]||(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return(0,m.eachProp)(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function S(e){return e=(0,m.getFluidValue)(e),m.is.arr(e)?e.map(S):(0,m.isAnimatedString)(e)?m.Globals.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function _(e){for(let t in e)return!0;return!1}function O(e){return m.is.fun(e)||m.is.arr(e)&&m.is.obj(e[0])}function C(e,t){e.ref?.delete(e),t?.delete(e)}function M(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}function A(e,t,n=1e3){(0,p.useIsomorphicLayoutEffect)(()=>{if(t){let r=0;(0,p.each)(e,(e,i)=>{let o=e.current;if(o.length){let a=n*t[i];isNaN(a)?a=r:r=a,(0,p.each)(o,e=>{(0,p.each)(e.queue,e=>{let t=e.delay;e.delay=e=>a+v(t||0,e)})}),e.start()}})}else{let t=Promise.resolve();(0,p.each)(e,e=>{let n=e.current;if(n.length){let r=n.map(e=>{let t=e.queue;return e.queue=[],t});t=t.then(()=>((0,p.each)(n,(e,t)=>(0,p.each)(r[t]||[],t=>e.queue.push(t))),Promise.all(e.start())))}})}})}var T=n(6901),P=n(2784),N=n(6901),R=n(6901),D=n(25447),L=n(6901),F={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},V={...F.default,mass:1,damping:1,easing:L.easings.linear,clamp:!1},z=class{constructor(){this.velocity=0,Object.assign(this,V)}};function I(e,t){if(L.is.und(t.decay)){let n=!L.is.und(t.tension)||!L.is.und(t.friction);!n&&L.is.und(t.frequency)&&L.is.und(t.damping)&&L.is.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var Z=[],B=class{constructor(){this.changed=!1,this.values=Z,this.toValues=null,this.fromValues=Z,this.config=new z,this.immediate=!1}},H=n(6901);function U(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{let l,u,c=g(n.cancel??r?.cancel,t);if(c)h();else{H.is.und(n.pause)||(i.paused=g(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||g(e,t)),l=v(n.delay||0,t),e?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),l=u.time-H.raf.now()}function f(){l>0&&!H.Globals.skipAnimation?(i.delayed=!0,u=H.raf.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(u)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{o.start({...n,callId:e,cancel:c},a)}catch(e){s(e)}}})}var W=n(6901),q=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?G(e.get()):t.every(e=>e.noop)?$(e.get()):Y(e.get(),t.every(e=>e.finished)),$=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Y=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),G=e=>({value:e,cancelled:!0,finished:!1});function X(e,t,n,r){let{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;let u=w(t,(e,t)=>"onRest"===t?void 0:e),c,d,f=new Promise((e,t)=>(c=e,d=t)),h=e=>{let t=i<=(n.cancelId||0)&&G(r)||i!==n.asyncId&&Y(r,!1);if(t)throw e.result=t,d(e),e},p=(e,t)=>{let o=new Q,a=new J;return(async()=>{if(W.Globals.skipAnimation)throw K(n),a.result=Y(r,!1),d(a),a;h(o);let s=W.is.obj(e)?{...e}:{...t,to:e};s.parentId=i,(0,W.eachProp)(u,(e,t)=>{W.is.und(s[t])&&(s[t]=e)});let l=await r.start(s);return h(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()},m;if(W.Globals.skipAnimation)return K(n),Y(r,!1);try{let t;t=W.is.arr(e)?(async e=>{for(let t of e)await p(t)})(e):Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([t.then(c),f]),m=Y(r.get(),!0,!1)}catch(e){if(e instanceof Q)m=e.result;else if(e instanceof J)m=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return W.is.fun(a)&&W.raf.batchedUpdates(()=>{a(m,r,r.item)}),m})():l}function K(e,t){(0,W.flush)(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Q=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},J=class extends Error{constructor(){super("SkipAnimationSignal")}},ee=n(6901),et=n(25447),en=e=>e instanceof ei,er=1,ei=class extends ee.FluidValue{constructor(){super(...arguments),this.id=er++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=(0,et.getAnimated)(this);return e&&e.getValue()}to(...e){return ee.Globals.to(this,e)}interpolate(...e){return(0,ee.deprecateInterpolate)(),ee.Globals.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){(0,ee.callFluidObservers)(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||ee.frameLoop.sort(this),(0,ee.callFluidObservers)(this,{type:"priority",parent:this,priority:e})}},eo=Symbol.for("SpringPhase"),ea=e=>(1&e[eo])>0,es=e=>(2&e[eo])>0,el=e=>(4&e[eo])>0,eu=(e,t)=>t?e[eo]|=3:e[eo]&=-3,ec=(e,t)=>t?e[eo]|=4:e[eo]&=-5,ed=class extends ei{constructor(e,t){if(super(),this.animation=new B,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!R.is.und(e)||!R.is.und(t)){let n=R.is.obj(e)?{...e}:{...t,from:e};R.is.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(es(this)||this._state.asyncTo)||el(this)}get goal(){return(0,R.getFluidValue)(this.animation.to)}get velocity(){let e=(0,D.getAnimated)(this);return e instanceof D.AnimatedValue?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return ea(this)}get isAnimating(){return es(this)}get isPaused(){return el(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:o}=r,a=(0,D.getPayload)(r.to);!a&&(0,R.hasFluidValue)(r.to)&&(i=(0,R.toArray)((0,R.getFluidValue)(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==D.AnimatedString?1:a?a[l].lastPosition:i[l],c=r.immediate,d=u;if(!c){if(d=s.lastPosition,o.tension<=0){s.done=!0;return}let t=s.elapsedTime+=e,n=r.fromValues[l],i=null!=s.v0?s.v0:s.v0=R.is.arr(o.velocity)?o.velocity[l]:o.velocity,a,f=o.precision||(n==u?.005:Math.min(1,.001*Math.abs(u-n)));if(R.is.und(o.duration)){if(o.decay){let e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*t);d=n+i/(1-e)*(1-r),c=Math.abs(s.lastPosition-d)<=f,a=i*r}else{a=null==s.lastVelocity?i:s.lastVelocity;let t=o.restVelocity||f/10,r=o.clamp?0:o.bounce,l=!R.is.und(r),h=n==u?s.v0>0:nt)&&(c=Math.abs(u-d)<=f));++e){l&&(d==u||d>u==h)&&(a=-a*r,d=u);let e=(-(1e-6*o.tension)*(d-u)+-(.001*o.friction)*a)/o.mass;a+=1*e,d+=1*a}}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,s.durationProgress>0&&(s.elapsedTime=o.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(r=(o.progress||0)+t/this._memoizedDuration)>1?1:r<0?0:r,s.durationProgress=r),a=((d=n+o.easing(r)*(u-n))-s.lastPosition)/e,c=1==r}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}a&&!a[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,o.round)&&(n=!0)});let s=(0,D.getAnimated)(this),l=s.getValue();if(t){let e=(0,R.getFluidValue)(r.to);(l!==e||n)&&!o.decay?(s.setValue(e),this._onChange(e)):n&&o.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return R.raf.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(es(this)){let{to:e,config:t}=this.animation;R.raf.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return R.is.und(e)?(n=this.queue||[],this.queue=[]):n=[R.is.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>q(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),K(this._state,e&&this._lastCallId),R.raf.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:n,from:r}=e;(null==(n=R.is.obj(n)?n[t]:n)||O(n))&&(n=void 0),null==(r=R.is.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return ea(this)||(e.reverse&&([n,r]=[r,n]),r=(0,R.getFluidValue)(r),R.is.und(r)?(0,D.getAnimated)(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,w(e,(e,t)=>/^on/.test(t)?y(e,n):e)),eg(this,e,"onProps"),ey(this,"onProps",e,this);let i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let o=this._state;return U(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{el(this)||(ec(this,!0),(0,R.flushCalls)(o.pauseQueue),ey(this,"onPause",Y(this,ef(this,this.animation.to)),this))},resume:()=>{el(this)&&(ec(this,!1),es(this)&&this._resume(),(0,R.flushCalls)(o.resumeQueue),ey(this,"onResume",Y(this,ef(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=eh(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(G(this));let r=!R.is.und(e.to),i=!R.is.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(G(this));this._lastToId=t.callId}let{key:o,defaultProps:a,animation:s}=this,{to:l,from:u}=s,{to:c=l,from:d=u}=e;i&&!r&&(!t.default||R.is.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!(0,R.isEqual)(d,u);f&&(s.from=d),d=(0,R.getFluidValue)(d);let h=!(0,R.isEqual)(c,l);h&&this._focus(c);let p=O(t.to),{config:m}=s,{decay:y,velocity:x}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(I(n={...n},t),t={...n,...t}),I(e,t),Object.assign(e,t),V)null==e[r]&&(e[r]=V[r]);let{frequency:r,damping:i}=e,{mass:o}=e;L.is.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r)}(m,v(t.config,o),t.config!==a.config?v(a.config,o):void 0);let b=(0,D.getAnimated)(this);if(!b||R.is.und(c))return n(Y(this,!0));let w=R.is.und(t.reset)?i&&!t.default:!R.is.und(d)&&g(t.reset,o),E=w?d:this.get(),j=S(c),k=R.is.num(j)||R.is.arr(j)||(0,R.isAnimatedString)(j),_=!p&&(!k||g(a.immediate||t.immediate,o));if(h){let e=(0,D.getAnimatedType)(c);if(e!==b.constructor){if(_)b=this._set(j);else throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let C=b.constructor,M=(0,R.hasFluidValue)(c),A=!1;if(!M){let e=w||!ea(this)&&f;(h||e)&&(M=!(A=(0,R.isEqual)(S(E),j))),((0,R.isEqual)(s.immediate,_)||_)&&(0,R.isEqual)(m.decay,y)&&(0,R.isEqual)(m.velocity,x)||(M=!0)}if(A&&es(this)&&(s.changed&&!w?M=!0:M||this._stop(l)),!p&&((M||(0,R.hasFluidValue)(l))&&(s.values=b.getPayload(),s.toValues=(0,R.hasFluidValue)(c)?null:C==D.AnimatedString?[1]:(0,R.toArray)(j)),s.immediate==_||(s.immediate=_,_||w||this._set(l)),M)){let{onRest:e}=s;(0,R.each)(ev,e=>eg(this,t,e));let r=Y(this,ef(this,l));(0,R.flushCalls)(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&R.raf.batchedUpdates(()=>{s.changed=!w,e?.(r,this),w?v(a.onRest,r):s.onStart?.(r,this)})}w&&this._set(E),p?n(X(t.to,t,this._state,this)):M?this._start():es(this)&&!h?this._pendingCalls.add(n):n($(E))}_focus(e){let t=this.animation;e!==t.to&&((0,R.getFluidObservers)(this)&&this._detach(),t.to=e,(0,R.getFluidObservers)(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;(0,R.hasFluidValue)(t)&&((0,R.addFluidObserver)(t,this),en(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;(0,R.hasFluidValue)(e)&&(0,R.removeFluidObserver)(e,this)}_set(e,t=!0){let n=(0,R.getFluidValue)(e);if(!R.is.und(n)){let e=(0,D.getAnimated)(this);if(!e||!(0,R.isEqual)(n,e.getValue())){let r=(0,D.getAnimatedType)(n);e&&e.constructor==r?e.setValue(n):(0,D.setAnimated)(this,r.create(n)),e&&R.raf.batchedUpdates(()=>{this._onChange(n,t)})}}return(0,D.getAnimated)(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,ey(this,"onStart",Y(this,ef(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),v(this.animation.onChange,e,this)),v(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;(0,D.getAnimated)(this).reset((0,R.getFluidValue)(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),es(this)||(eu(this,!0),el(this)||this._resume())}_resume(){R.Globals.skipAnimation?this.finish():R.frameLoop.start(this)}_stop(e,t){if(es(this)){eu(this,!1);let n=this.animation;(0,R.each)(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),(0,R.callFluidObservers)(this,{type:"idle",parent:this});let r=t?G(this.get()):Y(this.get(),ef(this,e??n.to));(0,R.flushCalls)(this._pendingCalls,r),n.changed&&(n.changed=!1,ey(this,"onRest",r,this))}}};function ef(e,t){let n=S(t),r=S(e.get());return(0,R.isEqual)(r,n)}function eh(e,t=e.loop,n=e.to){let r=v(t);if(r){let i=!0!==r&&k(r),o=(i||e).reverse,a=!i||i.reset;return ep({...e,loop:t,default:!1,pause:void 0,to:!o||O(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function ep(e){let{to:t,from:n}=e=k(e),r=new Set;return R.is.obj(t)&&em(t,r),R.is.obj(n)&&em(n,r),e.keys=r.size?Array.from(r):null,e}function em(e,t){(0,R.eachProp)(e,(e,n)=>null!=e&&t.add(n))}var ev=["onStart","onRest","onChange","onPause","onResume"];function eg(e,t,n){e.animation[n]=t[n]!==x(t,n)?y(t[n],e.key):void 0}function ey(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var ex=n(6901),eb=["onStart","onChange","onRest"],ew=1,eE=class{constructor(e,t){this.id=ew++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];ex.is.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(ep(e)),this}start(e){let{queue:t}=this;return e?t=(0,ex.toArray)(e).map(ep):this.queue=[],this._flush?this._flush(this,t):(eM(this,t),ej(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;(0,ex.each)((0,ex.toArray)(t),t=>n[t].stop(!!e))}else K(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(ex.is.und(e))this.start({pause:!0});else{let t=this.springs;(0,ex.each)((0,ex.toArray)(e),e=>t[e].pause())}return this}resume(e){if(ex.is.und(e))this.start({pause:!1});else{let t=this.springs;(0,ex.each)((0,ex.toArray)(e),e=>t[e].resume())}return this}each(e){(0,ex.eachProp)(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,(0,ex.flush)(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&(0,ex.flush)(t,([e,t])=>{t.value=a,e(t,this,this._item)}),o&&(this._started=!1,(0,ex.flush)(n,([e,t])=>{t.value=a,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}ex.raf.onFrame(this._onFrame)}};function ej(e,t){return Promise.all(t.map(t=>ek(e,t))).then(t=>q(e,t))}async function ek(e,t,n){let{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=ex.is.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);let c=ex.is.arr(i)||ex.is.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):(0,ex.each)(eb,n=>{let r=t[n];if(ex.is.fun(r)){let i=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}});let d=e._state;!d.paused===t.pause?(d.paused=t.pause,(0,ex.flushCalls)(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let f=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),h=!0===t.cancel||!0===x(t,"cancel");(c||h&&d.asyncId)&&f.push(U(++e._lastAsyncId,{props:t,state:d,actions:{pause:ex.noop,resume:ex.noop,start(t,n){h?(K(d,e._lastAsyncId),n(G(e))):(t.onRest=s,n(X(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=q(e,await Promise.all(f));if(a&&p.finished&&!(n&&p.noop)){let n=eh(t,a,i);if(n)return eM(e,[n]),ek(e,n,!0)}return l&&ex.raf.batchedUpdates(()=>l(p,e,e.item)),p}function eS(e,t){let n={...e.springs};return t&&(0,ex.each)((0,ex.toArray)(t),e=>{ex.is.und(e.keys)&&(e=ep(e)),ex.is.obj(e.to)||(e={...e,to:void 0}),eC(n,e,e=>eO(e))}),e_(e,n),n}function e_(e,t){(0,ex.eachProp)(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,(0,ex.addFluidObserver)(t,e))})}function eO(e,t){let n=new ed;return n.key=e,t&&(0,ex.addFluidObserver)(n,t),n}function eC(e,t,n){t.keys&&(0,ex.each)(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function eM(e,t){(0,ex.each)(t,t=>{eC(e.springs,t,t=>eO(t,e))})}var eA=f(n(2784)),eT=n(2784),eP=n(6901),eN=({children:e,...t})=>{let n=(0,eT.useContext)(eR),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=(0,eP.useMemoOne)(()=>({pause:r,immediate:i}),[r,i]);let{Provider:o}=eR;return eA.createElement(o,{value:t},e)},eR=(Object.assign(eN,eA.createContext({})),eN.Provider._context=eN,eN.Consumer._context=eN,eN);eN.Provider=eR.Provider,eN.Consumer=eR.Consumer;var eD=n(6901),eL=()=>{let e=[],t=function(t){(0,eD.deprecateDirectCall)();let r=[];return(0,eD.each)(e,(e,i)=>{if(eD.is.und(t))r.push(e.start());else{let o=n(t,e,i);o&&r.push(e.start(o))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return(0,eD.each)(e,e=>e.pause(...arguments)),this},t.resume=function(){return(0,eD.each)(e,e=>e.resume(...arguments)),this},t.set=function(t){(0,eD.each)(e,(e,n)=>{let r=eD.is.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return(0,eD.each)(e,(e,r)=>{if(eD.is.und(t))n.push(e.start());else{let i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return(0,eD.each)(e,e=>e.stop(...arguments)),this},t.update=function(t){return(0,eD.each)(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return eD.is.fun(e)?e(n,t):e};return t._getProps=n,t};function eF(e,t,n){let r=N.is.fun(t)&&t;r&&!n&&(n=[]);let i=(0,P.useMemo)(()=>r||3==arguments.length?eL():void 0,[]),o=(0,P.useRef)(0),a=(0,N.useForceUpdate)(),s=(0,P.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=eS(e,t);return!(o.current>0)||s.queue.length||Object.keys(n).some(t=>!e.springs[t])?new Promise(r=>{e_(e,n),s.queue.push(()=>{r(ej(e,t))}),a()}):ej(e,t)}}),[]),l=(0,P.useRef)([...s.ctrls]),u=[],c=(0,N.usePrev)(e)||0;function d(e,n){for(let i=e;i{(0,N.each)(l.current.slice(e,c),e=>{C(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,P.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=l.current.map((e,t)=>eS(e,u[t])),h=(0,P.useContext)(eN),p=(0,N.usePrev)(h),m=h!==p&&_(h);(0,N.useIsomorphicLayoutEffect)(()=>{o.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],(0,N.each)(e,e=>e())),(0,N.each)(l.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(M(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),(0,N.useOnce)(()=>()=>{(0,N.each)(s.ctrls,e=>e.stop(!0))});let v=f.map(e=>({...e}));return i?[v,i]:v}function eV(e,t){let n=T.is.fun(e),[[r],i]=eF(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}var ez=n(2784),eI=()=>eL(),eZ=()=>(0,ez.useState)(eI)[0],eB=n(6901),eH=(e,t)=>{let n=(0,eB.useConstant)(()=>new ed(e,t));return(0,eB.useOnce)(()=>()=>{n.stop()}),n},eU=n(6901);function eW(e,t,n){let r=eU.is.fun(t)&&t;r&&!n&&(n=[]);let i=!0,o,a=eF(e,(e,n)=>{let a=r?r(e,n):t;return o=a.ref,i=i&&a.reverse,a},n||[{}]);if((0,eU.useIsomorphicLayoutEffect)(()=>{(0,eU.each)(a[1].current,(e,t)=>{let n=a[1].current[t+(i?1:-1)];if(M(e,o),e.ref){n&&e.update({to:n.springs});return}n?e.start({to:n.springs}):e.start()})},n),r||3==arguments.length){let e=o??a[1];return e._getProps=(t,n,r)=>{let i=eU.is.fun(t)?t(r,n):t;if(i){let t=e.current[r+(i.reverse?1:-1)];return t&&(i.to=t.springs),i}},a}return a[0]}var eq=f(n(2784)),e$=n(2784),eY=n(6901);function eG(e,t,n){let r=eY.is.fun(t)&&t,{reset:i,sort:o,trail:a=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=(0,e$.useMemo)(()=>r||3==arguments.length?eL():void 0,[]),h=(0,eY.toArray)(e),p=[],m=(0,e$.useRef)(null),g=i?null:m.current;(0,eY.useIsomorphicLayoutEffect)(()=>{m.current=p}),(0,eY.useOnce)(()=>((0,eY.each)(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{(0,eY.each)(m.current,e=>{e.expired&&clearTimeout(e.expirationId),C(e.ctrl,f),e.ctrl.stop(!0)})}));let y=function(e,{key:t,keys:n=t},r){if(null===n){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&"leave"!==n.phase&&!t.has(n));return n?(t.add(n),n.key):eX++})}return eY.is.und(n)?e:eY.is.fun(n)?e.map(n):(0,eY.toArray)(n)}(h,r?r():t,g),x=i&&m.current||[];(0,eY.useIsomorphicLayoutEffect)(()=>(0,eY.each)(x,({ctrl:e,item:t,key:n})=>{C(e,f),v(u,t,n)}));let b=[];if(g&&(0,eY.each)(g,(e,t)=>{e.expired?(clearTimeout(e.expirationId),x.push(e)):~(t=b[t]=y.indexOf(e.key))&&(p[t]=e)}),(0,eY.each)(h,(e,t)=>{p[t]||(p[t]={key:y[t],item:e,phase:"mount",ctrl:new eE},p[t].ctrl.item=e)}),b.length){let e=-1,{leave:n}=r?r():t;(0,eY.each)(b,(t,r)=>{let i=g[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}eY.is.fun(o)&&p.sort((e,t)=>o(e.item,t.item));let E=-a,j=(0,eY.useForceUpdate)(),S=w(t),O=new Map,A=(0,e$.useRef)(new Map),T=(0,e$.useRef)(!1);(0,eY.each)(p,(e,n)=>{let i=e.key,o=e.phase,u=r?r():t,f,h,p=v(u.delay||0,i);if("mount"==o)f=u.enter,h="enter";else{let e=0>y.indexOf(i);if("leave"!=o){if(e)f=u.leave,h="leave";else{if(!(f=u.update))return;h="update"}}else{if(e)return;f=u.enter,h="enter"}}if(f=v(f,e.item,n),!(f=eY.is.obj(f)?k(f):{to:f}).config){let t=d||S.config;f.config=v(t,e.item,n,h)}E+=a;let x={...S,delay:p+E,ref:c,immediate:u.immediate,reset:!1,...f};if("enter"==h&&eY.is.und(x.from)){let i=r?r():t,o=eY.is.und(i.initial)||g?i.from:i.initial;x.from=v(o,e.item,n)}let{onResolve:b}=x;x.onResolve=e=>{v(b,e);let t=m.current,n=t.find(e=>e.key===i);if(n&&!(e.cancelled&&"update"!=n.phase)&&n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){let t=v(s,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(j,r));return}}}e&&t.some(e=>e.expired)&&(A.current.delete(n),l&&(T.current=!0),j())}};let w=eS(e.ctrl,x);"leave"===h&&l?A.current.set(e,{phase:h,springs:w,payload:x}):O.set(e,{phase:h,springs:w,payload:x})});let P=(0,e$.useContext)(eN),N=(0,eY.usePrev)(P),R=P!==N&&_(P);(0,eY.useIsomorphicLayoutEffect)(()=>{R&&(0,eY.each)(p,e=>{e.ctrl.start({default:P})})},[P]),(0,eY.each)(O,(e,t)=>{if(A.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),(0,eY.useIsomorphicLayoutEffect)(()=>{(0,eY.each)(A.current.size?A.current:O,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),R&&"enter"==e&&r.start({default:P}),t&&(M(r,t.ref),(r.ref||f)&&!T.current?r.update(t):(r.start(t),T.current&&(T.current=!1)))})},i?void 0:n);let D=e=>eq.createElement(eq.Fragment,null,p.map((t,n)=>{let{springs:r}=O.get(t)||t.ctrl,i=e({...r},t.item,t,n);return i&&i.type?eq.createElement(i.type,{...i.props,key:eY.is.str(t.key)||eY.is.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[D,f]:D}var eX=1,eK=n(6901),eQ=({container:e,...t}={})=>{let[n,r]=eV(()=>({scrollX:0,scrollY:0,scrollXProgress:0,scrollYProgress:0,...t}),[]);return(0,eK.useIsomorphicLayoutEffect)(()=>{let t=(0,eK.onScroll)(({x:e,y:t})=>{r.start({scrollX:e.current,scrollXProgress:e.progress,scrollY:t.current,scrollYProgress:t.progress})},{container:e?.current||void 0});return()=>{(0,eK.each)(Object.values(n),e=>e.stop()),t()}},[]),n},eJ=n(6901),e0=({container:e,...t})=>{let[n,r]=eV(()=>({width:0,height:0,...t}),[]);return(0,eJ.useIsomorphicLayoutEffect)(()=>{let t=(0,eJ.onResize)(({width:e,height:t})=>{r.start({width:e,height:t,immediate:0===n.width.get()||0===n.height.get()})},{container:e?.current||void 0});return()=>{(0,eJ.each)(Object.values(n),e=>e.stop()),t()}},[]),n},e1=n(2784),e2=n(6901),e4={any:0,all:1};function e3(e,t){let[n,r]=(0,e1.useState)(!1),i=(0,e1.useRef)(),o=e2.is.fun(e)&&e,{to:a={},from:s={},...l}=o?o():{},u=o?t:e,[c,d]=eV(()=>({from:s,...l}),[]);return(0,e2.useIsomorphicLayoutEffect)(()=>{let e=i.current,{root:t,once:o,amount:l="any",...c}=u??{};if(!e||o&&n||typeof IntersectionObserver>"u")return;let f=new WeakMap,h=()=>(a&&d.start(a),r(!0),o?void 0:()=>{s&&d.start(s),r(!1)}),p=new IntersectionObserver(e=>{e.forEach(e=>{let t=f.get(e.target);if(!!t!==e.isIntersecting){if(e.isIntersecting){let t=h();e2.is.fun(t)?f.set(e.target,t):p.unobserve(e.target)}else t&&(t(),f.delete(e.target))}})},{root:t&&t.current||void 0,threshold:"number"==typeof l||Array.isArray(l)?l:e4[l],...c});return p.observe(e),()=>p.unobserve(e)},[u]),o?[i,c]:[i,n]}function e5({children:e,...t}){return e(eV(t))}var e6=n(6901);function e8({items:e,children:t,...n}){let r=eW(e.length,n);return e.map((e,n)=>{let i=t(e,n);return e6.is.fun(i)?i(r[n]):i})}function e7({items:e,children:t,...n}){return eG(e,n)(t)}var e9=n(6901),te=n(6901),tt=n(25447),tn=class extends ei{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=(0,te.createInterpolator)(...t);let n=this._get(),r=(0,tt.getAnimatedType)(n);(0,tt.setAnimated)(this,r.create(n))}advance(e){let t=this._get(),n=this.get();(0,te.isEqual)(t,n)||((0,tt.getAnimated)(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&ti(this._active)&&to(this)}_get(){let e=te.is.arr(this.source)?this.source.map(te.getFluidValue):(0,te.toArray)((0,te.getFluidValue)(this.source));return this.calc(...e)}_start(){this.idle&&!ti(this._active)&&(this.idle=!1,(0,te.each)((0,tt.getPayload)(this),e=>{e.done=!1}),te.Globals.skipAnimation?(te.raf.batchedUpdates(()=>this.advance()),to(this)):te.frameLoop.start(this))}_attach(){let e=1;(0,te.each)((0,te.toArray)(this.source),t=>{(0,te.hasFluidValue)(t)&&(0,te.addFluidObserver)(t,this),en(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){(0,te.each)((0,te.toArray)(this.source),e=>{(0,te.hasFluidValue)(e)&&(0,te.removeFluidObserver)(e,this)}),this._active.clear(),to(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=(0,te.toArray)(this.source).reduce((e,t)=>Math.max(e,(en(t)?t.priority:0)+1),0))}};function tr(e){return!1!==e.idle}function ti(e){return!e.size||Array.from(e).every(tr)}function to(e){e.idle||(e.idle=!0,(0,te.each)((0,tt.getPayload)(e),e=>{e.done=!0}),(0,te.callFluidObservers)(e,{type:"idle",parent:e}))}var ta=(e,...t)=>new tn(e,t),ts=(e,...t)=>((0,e9.deprecateInterpolate)(),new tn(e,t)),tl=n(6901);tl.Globals.assign({createStringInterpolator:tl.createStringInterpolator,to:(e,t)=>new tn(e,t)});var tu=tl.frameLoop.advance,tc=n(6901);r=n(8669),i=e.exports,d(h,r,"default"),i&&d(i,r,"default")},78476:function(e,t,n){"use strict";var r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,s=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},l={};s(l,{FluidValue:()=>eT,Globals:()=>u,addFluidObserver:()=>eN,callFluidObserver:()=>eM,callFluidObservers:()=>eA,clamp:()=>J,colorToRgba:()=>ey,colors:()=>ee,createInterpolator:()=>ex,createStringInterpolator:()=>eW,defineHidden:()=>M,deprecateDirectCall:()=>eK,deprecateInterpolate:()=>eG,each:()=>P,eachProp:()=>N,easings:()=>ej,flush:()=>D,flushCalls:()=>V,frameLoop:()=>Y,getFluidObservers:()=>eC,getFluidValue:()=>eO,hasFluidValue:()=>e_,hex3:()=>el,hex4:()=>eu,hex6:()=>ec,hex8:()=>ed,hsl:()=>ea,hsla:()=>es,is:()=>A,isAnimatedString:()=>eQ,isEqual:()=>T,isSSR:()=>z,noop:()=>C,onResize:()=>e6,onScroll:()=>ti,once:()=>e$,prefix:()=>eq,raf:()=>d,removeFluidObserver:()=>eR,rgb:()=>ei,rgba:()=>eo,setFluidGetter:()=>eP,toArray:()=>R,useConstant:()=>ta,useForceUpdate:()=>tf,useIsomorphicLayoutEffect:()=>tc,useMemoOne:()=>tp,useOnce:()=>tv,usePrev:()=>tx,useReducedMotion:()=>tw}),e.exports=((e,t,n,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of o(t))a.call(e,n)||void 0===n||r(e,n,{get:()=>t[n],enumerable:!(s=i(t,n))||s.enumerable});return e})(r({},"__esModule",{value:!0}),l);var u={};s(u,{assign:()=>H,colors:()=>I,createStringInterpolator:()=>L,skipAnimation:()=>Z,to:()=>F,willAdvance:()=>B});var c=_(),d=e=>E(e,c),f=_();d.write=e=>E(e,f);var h=_();d.onStart=e=>E(e,h);var p=_();d.onFrame=e=>E(e,p);var m=_();d.onFinish=e=>E(e,m);var v=[];d.setTimeout=(e,t)=>{let n=d.now()+t,r=()=>{let e=v.findIndex(e=>e.cancel==r);~e&&v.splice(e,1),b-=~e?1:0},i={time:n,handler:e,cancel:r};return v.splice(g(n),0,i),b+=1,j(),i};var g=e=>~(~v.findIndex(t=>t.time>e)||~v.length);d.cancel=e=>{h.delete(e),p.delete(e),m.delete(e),c.delete(e),f.delete(e)},d.sync=e=>{w=!0,d.batchedUpdates(e),w=!1},d.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,d.onStart(n)}return r.handler=e,r.cancel=()=>{h.delete(n),t=null},r};var y="u">typeof window?window.requestAnimationFrame:()=>{};d.use=e=>y=e,d.now="u">typeof performance?()=>performance.now():Date.now,d.batchedUpdates=e=>e(),d.catch=console.error,d.frameLoop="always",d.advance=()=>{"demand"!==d.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):S()};var x=-1,b=0,w=!1;function E(e,t){w?(t.delete(e),e(0)):(t.add(e),j())}function j(){x<0&&(x=0,"demand"!==d.frameLoop&&y(k))}function k(){~x&&(y(k),d.batchedUpdates(S))}function S(){let e=x,t=g(x=d.now());if(t&&(O(v.splice(0,t),e=>e.handler()),b-=t),!b){x=-1;return}h.flush(),c.flush(e?Math.min(64,x-e):16.667),p.flush(),f.flush(),m.flush()}function _(){let e=new Set,t=e;return{add(n){b+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(b-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,b-=t.size,O(t,t=>t(n)&&e.add(t)),b+=e.size,t=e)}}}function O(e,t){e.forEach(e=>{try{t(e)}catch(e){d.catch(e)}})}function C(){}var M=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),A={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function T(e,t){if(A.arr(e)){if(!A.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function N(e,t,n){if(A.arr(e)){for(let r=0;rA.und(e)?[]:A.arr(e)?e:[e];function D(e,t){if(e.size){let n=Array.from(e);e.clear(),P(n,t)}}var L,F,V=(e,...t)=>D(e,e=>e(...t)),z=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),I=null,Z=!1,B=C,H=e=>{e.to&&(F=e.to),e.now&&(d.now=e.now),void 0!==e.colors&&(I=e.colors),null!=e.skipAnimation&&(Z=e.skipAnimation),e.createStringInterpolator&&(L=e.createStringInterpolator),e.requestAnimationFrame&&d.use(e.requestAnimationFrame),e.batchedUpdates&&(d.batchedUpdates=e.batchedUpdates),e.willAdvance&&(B=e.willAdvance),e.frameLoop&&(d.frameLoop=e.frameLoop)},U=new Set,W=[],q=[],$=0,Y={get idle(){return!U.size&&!W.length},start(e){$>e.priority?(U.add(e),d.onStart(G)):(X(e),d(Q))},advance:Q,sort(e){if($)d.onFrame(()=>Y.sort(e));else{let t=W.indexOf(e);~t&&(W.splice(t,1),K(e))}},clear(){W=[],U.clear()}};function G(){U.forEach(X),U.clear(),d(Q)}function X(e){W.includes(e)||K(e)}function K(e){var t;let n;W.splice((n=(t=W).findIndex(t=>t.priority>e.priority))<0?t.length:n,0,e)}function Q(e){let t=q;for(let n=0;n0}var J=(e,t,n)=>Math.min(Math.max(n,e),t),ee={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},et="[-+]?\\d*\\.?\\d+",en=et+"%";function er(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var ei=RegExp("rgb"+er(et,et,et)),eo=RegExp("rgba"+er(et,et,et,et)),ea=RegExp("hsl"+er(et,en,en)),es=RegExp("hsla"+er(et,en,en,et)),el=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,eu=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ec=/^#([0-9a-fA-F]{6})$/,ed=/^#([0-9a-fA-F]{8})$/;function ef(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function eh(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;return Math.round(255*ef(i,r,e+1/3))<<24|Math.round(255*ef(i,r,e))<<16|Math.round(255*ef(i,r,e-1/3))<<8}function ep(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function em(e){return(parseFloat(e)%360+360)%360/360}function ev(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function eg(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function ey(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ec.exec(e))?parseInt(t[1]+"ff",16)>>>0:I&&void 0!==I[e]?I[e]:(t=ei.exec(e))?(ep(t[1])<<24|ep(t[2])<<16|ep(t[3])<<8|255)>>>0:(t=eo.exec(e))?(ep(t[1])<<24|ep(t[2])<<16|ep(t[3])<<8|ev(t[4]))>>>0:(t=el.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ed.exec(e))?parseInt(t[1],16)>>>0:(t=eu.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ea.exec(e))?(255|eh(em(t[1]),eg(t[2]),eg(t[3])))>>>0:(t=es.exec(e))?(eh(em(t[1]),eg(t[2]),eg(t[3]))|ev(t[4]))>>>0:null;return null===n?e:`rgba(${(4278190080&(n=n||0))>>>24}, ${(16711680&n)>>>16}, ${(65280&n)>>>8}, ${(255&n)/255})`}var ex=(e,t,n)=>{if(A.fun(e))return e;if(A.arr(e))return ex({range:e,output:t,extrapolate:n});if(A.str(e.output[0]))return L(e);let r=e.output,i=e.range||[0,1],o=e.extrapolateLeft||e.extrapolate||"extend",a=e.extrapolateRight||e.extrapolate||"extend",s=e.easing||(e=>e);return t=>{let n=function(e,t){for(var n=1;n=e);++n);return n-1}(t,i);return function(e,t,n,r,i,o,a,s,l){let u=l?l(e):e;if(un){if("identity"===s)return u;"clamp"===s&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=o(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r,u)}(t,i[n],i[n+1],r[n],r[n+1],s,o,a,e.map)}},eb=2*Math.PI/3,ew=2*Math.PI/4.5,eE=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,ej={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>2.70158*e*e*e-1.70158*e*e,easeOutBack:e=>1+2.70158*Math.pow(e-1,3)+1.70158*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(3.5949095*2*e-2.5949095)/2:(Math.pow(2*e-2,2)*(3.5949095*(2*e-2)+2.5949095)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*eb),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*eb)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*ew))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*ew)/2+1,easeInBounce:e=>1-eE(1-e),easeOutBounce:eE,easeInOutBounce:e=>e<.5?(1-eE(1-2*e))/2:(1+eE(2*e-1))/2,steps:(e,t="end")=>n=>{let r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return J(0,1,("end"===t?Math.floor(r):Math.ceil(r))/e)}},ek=Symbol.for("FluidValue.get"),eS=Symbol.for("FluidValue.observers"),e_=e=>!!(e&&e[ek]),eO=e=>e&&e[ek]?e[ek]():e,eC=e=>e[eS]||null;function eM(e,t){e.eventObserved?e.eventObserved(t):e(t)}function eA(e,t){let n=e[eS];n&&n.forEach(e=>{eM(e,t)})}var eT=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");eP(this,e)}},eP=(e,t)=>eL(e,ek,t);function eN(e,t){if(e[ek]){let n=e[eS];n||eL(e,eS,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function eR(e,t){let n=e[eS];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[eS]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var eD,eL=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),eF=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,eV=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ez=RegExp(`(${eF.source})(%|[a-z]+)`,"i"),eI=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,eZ=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,eB=e=>{let[t,n]=eH(e);if(!t||z())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);return r?r.trim():n&&n.startsWith("--")?window.getComputedStyle(document.documentElement).getPropertyValue(n)||e:n&&eZ.test(n)?eB(n):n||e},eH=e=>{let t=eZ.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},eU=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,eW=e=>{eD||(eD=I?RegExp(`(${Object.keys(I).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>eO(e).replace(eZ,eB).replace(eV,ey).replace(eD,ey)),n=t.map(e=>e.match(eF).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>ex({...e,output:t}));return e=>{let n=!ez.test(t[0])&&t.find(e=>ez.test(e))?.replace(eF,""),i=0;return t[0].replace(eF,()=>`${r[i++](e)}${n||""}`).replace(eI,eU)}},eq="react-spring: ",e$=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${eq}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},eY=e$(console.warn);function eG(){eY(`${eq}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var eX=e$(console.warn);function eK(){eX(`${eq}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function eQ(e){return A.str(e)&&("#"==e[0]||/\d/.test(e)||!z()&&eZ.test(e)||e in(I||{}))}var eJ,e0,e1=new WeakMap,e2=e=>e.forEach(({target:e,contentRect:t})=>e1.get(e)?.forEach(e=>e(t))),e4=new Set,e3=()=>{let e=()=>{e4.forEach(e=>e({width:window.innerWidth,height:window.innerHeight}))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},e5=e=>(e4.add(e),e0||(e0=e3()),()=>{e4.delete(e),!e4.size&&e0&&(e0(),e0=void 0)}),e6=(e,{container:t=document.documentElement}={})=>{let n;return t===document.documentElement?e5(e):(eJ||"u">typeof ResizeObserver&&(eJ=new ResizeObserver(e2)),(n=e1.get(t))||(n=new Set,e1.set(t,n)),n.add(e),eJ&&eJ.observe(t),()=>{let n=e1.get(t);n&&(n.delete(e),!n.size&&eJ&&eJ.unobserve(t))})},e8=(e,t,n)=>t-e==0?1:(n-e)/(t-e),e7={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}},e9=class{constructor(e,t){this.createAxis=()=>({current:0,progress:0,scrollLength:0}),this.updateAxis=e=>{let t=this.info[e],{length:n,position:r}=e7[e];t.current=this.container[`scroll${r}`],t.scrollLength=this.container["scroll"+n]-this.container["client"+n],t.progress=e8(0,t.scrollLength,t.current)},this.update=()=>{this.updateAxis("x"),this.updateAxis("y")},this.sendEvent=()=>{this.callback(this.info)},this.advance=()=>{this.update(),this.sendEvent()},this.callback=e,this.container=t,this.info={time:0,x:this.createAxis(),y:this.createAxis()}}},te=new WeakMap,tt=new WeakMap,tn=new WeakMap,tr=e=>e===document.documentElement?window:e,ti=(e,{container:t=document.documentElement}={})=>{let n=tn.get(t);n||(n=new Set,tn.set(t,n));let r=new e9(e,t);if(n.add(r),!te.has(t)){let e=()=>(n?.forEach(e=>e.advance()),!0);te.set(t,e);let r=tr(t);window.addEventListener("resize",e,{passive:!0}),t!==document.documentElement&&tt.set(t,e6(e,{container:t})),r.addEventListener("scroll",e,{passive:!0})}let i=te.get(t);return d(i),()=>{d.cancel(i);let e=tn.get(t);if(!e||(e.delete(r),e.size))return;let n=te.get(t);te.delete(t),n&&(tr(t).removeEventListener("scroll",n),window.removeEventListener("resize",n),tt.get(t)?.())}},to=n(2784);function ta(e){let t=(0,to.useRef)(null);return null===t.current&&(t.current=e()),t.current}var ts=n(2784),tl=n(2784),tu=n(2784),tc=z()?tu.useEffect:tu.useLayoutEffect,td=()=>{let e=(0,tl.useRef)(!1);return tc(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function tf(){let e=(0,ts.useState)()[1],t=td();return()=>{t.current&&e(Math.random())}}var th=n(2784);function tp(e,t){let[n]=(0,th.useState)(()=>({inputs:t,result:e()})),r=(0,th.useRef)(),i=r.current,o=i;return o?t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}var tm=n(2784),tv=e=>(0,tm.useEffect)(e,tg),tg=[],ty=n(2784);function tx(e){let t=(0,ty.useRef)();return(0,ty.useEffect)(()=>{t.current=e}),t.current}var tb=n(2784),tw=()=>{let[e,t]=(0,tb.useState)(null);return tc(()=>{let e=window.matchMedia("(prefers-reduced-motion)"),n=e=>{t(e.matches),H({skipAnimation:e.matches})};return n(e),e.addEventListener("change",n),()=>{e.removeEventListener("change",n)}},[]),e}},19455:function(e){"use strict";var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,o={};((e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})})(o,{Any:()=>a}),e.exports=((e,o,a,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let a of r(o))i.call(e,a)||void 0===a||t(e,a,{get:()=>o[a],enumerable:!(s=n(o,a))||s.enumerable});return e})(t({},"__esModule",{value:!0}),o);var a=class{}},96721:function(e,t,n){"use strict";var r,i,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))l.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},c={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(c,{a:()=>M,animated:()=>M}),e.exports=u(o({},"__esModule",{value:!0}),c);var d=n(99550),f=n(28316),h=n(6901),p=n(25447),m=/^--/,v={},g={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},y=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),x=["Webkit","Ms","Moz","O"];g=Object.keys(g).reduce((e,t)=>(x.forEach(n=>e[y(n,t)]=e[t]),e),g);var b=n(25447),w=n(6901),E=/^(matrix|translate|scale|rotate|skew)/,j=/^(translate)/,k=/^(rotate|skew)/,S=(e,t)=>w.is.num(e)&&0!==e?e+t:e,_=(e,t)=>w.is.arr(e)?e.every(e=>_(e,t)):w.is.num(e)?e===t:parseFloat(e)===t,O=class extends b.AnimatedObject{constructor({x:e,y:t,z:n,...r}){let i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(e=>[`translate3d(${e.map(e=>S(e,"px")).join(",")})`,_(e,0)])),(0,w.eachProp)(r,(e,t)=>{if("transform"===t)i.push([e||""]),o.push(e=>[e,""===e]);else if(E.test(t)){if(delete r[t],w.is.und(e))return;let n=j.test(t)?"px":k.test(t)?"deg":"";i.push((0,w.toArray)(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${S(i,n)})`,_(i,0)]:e=>[`${t}(${e.map(e=>S(e,n)).join(",")})`,_(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new C(i,o)),super(r)}},C=class extends w.FluidValue{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return(0,w.each)(this.inputs,(n,r)=>{let i=(0,w.getFluidValue)(n[0]),[o,a]=this.transforms[r](w.is.arr(i)?i:n.map(w.getFluidValue));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){1==e&&(0,w.each)(this.inputs,e=>(0,w.each)(e,e=>(0,w.hasFluidValue)(e)&&(0,w.addFluidObserver)(e,this)))}observerRemoved(e){0==e&&(0,w.each)(this.inputs,e=>(0,w.each)(e,e=>(0,w.hasFluidValue)(e)&&(0,w.removeFluidObserver)(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),(0,w.callFluidObservers)(this,e)}};r=n(99550),i=e.exports,u(c,r,"default"),i&&u(i,r,"default"),d.Globals.assign({batchedUpdates:f.unstable_batchedUpdates,createStringInterpolator:h.createStringInterpolator,colors:h.colors});var M=(0,p.createHost)(["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"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:i,scrollTop:o,scrollLeft:a,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(t=>n||e.hasAttribute(t)?t:v[t]||(v[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==i&&(e.textContent=i),r)if(r.hasOwnProperty(t)){var d;let n=null==(d=r[t])||"boolean"==typeof d||""===d?"":"number"!=typeof d||0===d||m.test(t)||g.hasOwnProperty(t)&&g[t]?(""+d).trim():d+"px";m.test(t)?e.style.setProperty(t,n):e.style[t]=n}c.forEach((t,n)=>{e.setAttribute(t,u[n])}),void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new O(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated},7896:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t"boolean"==typeof e?"".concat(e):0===e?"0":e,i=function(){for(var e,t,n=0,r="";nn=>{var o;if((null==t?void 0:t.variants)==null)return i(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(e=>{let t=null==n?void 0:n[e],i=null==s?void 0:s[e];if(null===t)return null;let o=r(t)||r(i);return a[e][o]}),u=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),c=null==t?void 0:null===(o=t.compoundVariants)||void 0===o?void 0:o.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...s,...u}[t]):({...s,...u})[t]===n})?[...e,n,r]:e},[]);return i(e,l,c,null==n?void 0:n.class,null==n?void 0:n.className)}},99182:function(e,t,n){"use strict";n.d(t,{U8:function(){return A},mY:function(){return S}});var r=n(72331),i=n(2784),o=n(40844),a='[cmdk-group=""]',s='[cmdk-group-items=""]',l='[cmdk-item=""]',u=`${l}:not([aria-disabled="true"])`,c="cmdk-item-select",d="data-value",f=(e,t)=>o(e,t),h=i.createContext(void 0),p=()=>i.useContext(h),m=i.createContext(void 0),v=()=>i.useContext(m),g=i.createContext(void 0),y=i.forwardRef((e,t)=>{let n=i.useRef(null),r=C(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),o=C(()=>new Set),p=C(()=>new Map),v=C(()=>new Map),g=C(()=>new Set),y=_(e),{label:x,children:b,value:w,onValueChange:E,filter:j,shouldFilter:k,...S}=e,A=i.useId(),T=i.useId(),R=i.useId(),D=P();O(()=>{if(void 0!==w){let e=w.trim().toLowerCase();r.current.value=e,D(6,B),L.emit()}},[w]);let L=i.useMemo(()=>({subscribe:e=>(g.current.add(e),()=>g.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var i,o,a;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)Z(),z(),D(1,I);else if("value"===e){if((null==(i=y.current)?void 0:i.value)!==void 0){null==(a=(o=y.current).onValueChange)||a.call(o,t);return}n||D(5,B)}L.emit()}},emit:()=>{g.current.forEach(e=>e())}}),[]),F=i.useMemo(()=>({value:(e,t)=>{t!==v.current.get(e)&&(v.current.set(e,t),r.current.filtered.items.set(e,V(t)),D(2,()=>{z(),L.emit()}))},item:(e,t)=>(o.current.add(e),t&&(p.current.has(t)?p.current.get(t).add(e):p.current.set(t,new Set([e]))),D(3,()=>{Z(),z(),r.current.value||I(),L.emit()}),()=>{v.current.delete(e),o.current.delete(e),r.current.filtered.items.delete(e),D(4,()=>{Z(),I(),L.emit()})}),group:e=>(p.current.has(e)||p.current.set(e,new Set),()=>{v.current.delete(e),p.current.delete(e)}),filter:()=>y.current.shouldFilter,label:x||e["aria-label"],listId:A,inputId:R,labelId:T}),[]);function V(e){var t;let n=(null==(t=y.current)?void 0:t.filter)??f;return e?n(e,r.current.search):0}function z(){if(!n.current||!r.current.search||!1===y.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(n=>{let r=p.current.get(n),i=0;r.forEach(t=>{i=Math.max(e.get(t),i)}),t.push([n,i])});let i=n.current.querySelector('[cmdk-list-sizer=""]');U().sort((t,n)=>{let r=t.getAttribute(d),i=n.getAttribute(d);return(e.get(i)??0)-(e.get(r)??0)}).forEach(e=>{let t=e.closest(s);t?t.appendChild(e.parentElement===t?e:e.closest(`${s} > *`)):i.appendChild(e.parentElement===i?e:e.closest(`${s} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{let t=n.current.querySelector(`${a}[${d}="${e[0]}"]`);null==t||t.parentElement.appendChild(t)})}function I(){let e=U().find(e=>!e.ariaDisabled),t=null==e?void 0:e.getAttribute(d);L.setState("value",t||void 0)}function Z(){if(!r.current.search||!1===y.current.shouldFilter){r.current.filtered.count=o.current.size;return}r.current.filtered.groups=new Set;let e=0;for(let t of o.current){let n=V(v.current.get(t));r.current.filtered.items.set(t,n),n>0&&e++}for(let[e,t]of p.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=e}function B(){var e,t,n;let r=H();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(a))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function H(){return n.current.querySelector(`${l}[aria-selected="true"]`)}function U(){return Array.from(n.current.querySelectorAll(u))}function W(e){let t=U()[e];t&&L.setState("value",t.getAttribute(d))}function q(e){var t;let n=H(),r=U(),i=r.findIndex(e=>e===n),o=r[i+e];null!=(t=y.current)&&t.loop&&(o=i+e<0?r[r.length-1]:i+e===r.length?r[0]:r[i+e]),o&&L.setState("value",o.getAttribute(d))}function $(e){let t=H(),n=null==t?void 0:t.closest(a),r;for(;n&&!r;)r=null==(n=e>0?function(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}(n,a):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,a))?void 0:n.querySelector(u);r?L.setState("value",r.getAttribute(d)):q(e)}let Y=()=>W(U().length-1),G=e=>{e.preventDefault(),e.metaKey?Y():e.altKey?$(1):q(1)},X=e=>{e.preventDefault(),e.metaKey?W(0):e.altKey?$(-1):q(-1)};return i.createElement("div",{ref:M([n,t]),...S,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=S.onKeyDown)||t.call(S,e),!e.defaultPrevented)switch(e.key){case"n":case"j":e.ctrlKey&&G(e);break;case"ArrowDown":G(e);break;case"p":case"k":e.ctrlKey&&X(e);break;case"ArrowUp":X(e);break;case"Home":e.preventDefault(),W(0);break;case"End":e.preventDefault(),Y();break;case"Enter":{e.preventDefault();let t=H();if(t){let e=new Event(c);t.dispatchEvent(e)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:F.inputId,id:F.labelId,style:N},x),i.createElement(m.Provider,{value:L},i.createElement(h.Provider,{value:F},b)))}),x=i.forwardRef((e,t)=>{let n=i.useId(),r=i.useRef(null),o=i.useContext(g),a=p(),s=_(e);O(()=>a.item(n,o),[]);let l=T(n,r,[e.value,e.children,r]),u=v(),d=A(e=>e.value&&e.value===l.current),f=A(e=>!1===a.filter()||!e.search||e.filtered.items.get(n)>0);function h(){var e,t;null==(t=(e=s.current).onSelect)||t.call(e,l.current)}if(i.useEffect(()=>{let t=r.current;if(!(!t||e.disabled))return t.addEventListener(c,h),()=>t.removeEventListener(c,h)},[f,e.onSelect,e.disabled]),!f)return null;let{disabled:m,value:y,onSelect:x,...b}=e;return i.createElement("div",{ref:M([r,t]),...b,"cmdk-item":"",role:"option","aria-disabled":m||void 0,"aria-selected":d||void 0,"data-selected":d||void 0,onPointerMove:m?void 0:function(){u.setState("value",l.current,!0)},onClick:m?void 0:h},e.children)}),b=i.forwardRef((e,t)=>{let{heading:n,children:r,...o}=e,a=i.useId(),s=i.useRef(null),l=i.useRef(null),u=i.useId(),c=p(),d=A(e=>!1===c.filter()||!e.search||e.filtered.groups.has(a));O(()=>c.group(a),[]),T(a,s,[e.value,e.heading,l]);let f=i.createElement(g.Provider,{value:a},r);return i.createElement("div",{ref:M([s,t]),...o,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&i.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),i.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},f))}),w=i.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=i.useRef(null),a=A(e=>!e.search);return n||a?i.createElement("div",{ref:M([o,t]),...r,"cmdk-separator":"",role:"separator"}):null}),E=i.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,a=v(),s=A(e=>e.search),l=p();return i.useEffect(()=>{null!=e.value&&a.setState("search",e.value)},[e.value]),i.createElement("input",{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,id:l.inputId,type:"text",value:o?e.value:s,onChange:e=>{o||a.setState("search",e.target.value),null==n||n(e.target.value)}})}),j=i.forwardRef((e,t)=>{let{children:n,...r}=e,o=i.useRef(null),a=i.useRef(null),s=p();return i.useEffect(()=>{if(a.current&&o.current){let e=a.current,t=o.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.getBoundingClientRect().height;t.style.setProperty("--cmdk-list-height",n.toFixed(1)+"px")})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),i.createElement("div",{ref:M([o,t]),...r,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:s.listId,"aria-labelledby":s.inputId},i.createElement("div",{ref:a,"cmdk-list-sizer":""},n))}),k=i.forwardRef((e,t)=>{let{open:n,onOpenChange:o,container:a,...s}=e;return i.createElement(r.fC,{open:n,onOpenChange:o},i.createElement(r.h_,{container:a},i.createElement(r.aV,{"cmdk-overlay":""}),i.createElement(r.VY,{"aria-label":e.label,"cmdk-dialog":""},i.createElement(y,{ref:t,...s}))))}),S=Object.assign(y,{List:j,Item:x,Input:E,Group:b,Separator:w,Dialog:k,Empty:i.forwardRef((e,t)=>{let n=i.useRef(!0),r=A(e=>0===e.filtered.count);return i.useEffect(()=>{n.current=!1},[]),n.current||!r?null:i.createElement("div",{ref:t,...e,"cmdk-empty":"",role:"presentation"})}),Loading:i.forwardRef((e,t)=>{let{progress:n,children:r,...o}=e;return i.createElement("div",{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},i.createElement("div",{"aria-hidden":!0},r))})});function _(e){let t=i.useRef(e);return O(()=>{t.current=e}),t}var O=typeof window>"u"?i.useEffect:i.useLayoutEffect;function C(e){let t=i.useRef();return void 0===t.current&&(t.current=e()),t}function M(e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}function A(e){let t=v(),n=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,n,n)}function T(e,t,n){let r=i.useRef(),o=p();return O(()=>{var i;let a=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim().toLowerCase();if("object"==typeof t&&"current"in t&&t.current)return null==(e=t.current.textContent)?void 0:e.trim().toLowerCase()}})();o.value(e,a),null==(i=t.current)||i.setAttribute(d,a),r.current=a}),r}var P=()=>{let[e,t]=i.useState(),n=C(()=>new Map);return O(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}},N={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},63955:function(e,t,n){"use strict";n.d(t,{cI:function(){return em}});var r=n(2784),i=e=>"checkbox"===e.type,o=e=>e instanceof Date,a=e=>null==e;let s=e=>"object"==typeof e;var l=e=>!a(e)&&!Array.isArray(e)&&s(e)&&!o(e),u=e=>l(e)&&e.target?i(e.target)?e.target.checked:e.target.value:e,c=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,d=(e,t)=>e.has(c(t)),f=e=>{let t=e.constructor&&e.constructor.prototype;return l(t)&&t.hasOwnProperty("isPrototypeOf")},h="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function p(e){let t;let n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(h&&(e instanceof Blob||e instanceof FileList))&&(n||l(e))))return e;else if(t=n?[]:{},Array.isArray(e)||f(e))for(let n in e)t[n]=p(e[n]);else t=e;return t}var m=e=>Array.isArray(e)?e.filter(Boolean):[],v=e=>void 0===e,g=(e,t,n)=>{if(!t||!l(e))return n;let r=m(t.split(/[,[\].]+?/)).reduce((e,t)=>a(e)?e:e[t],e);return v(r)||r===e?v(e[t])?n:e[t]:r};let y={BLUR:"blur",FOCUS_OUT:"focusout"},x={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},b={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};r.createContext(null);var w=(e,t,n,r=!0)=>{let i={defaultValues:t._defaultValues};for(let o in e)Object.defineProperty(i,o,{get:()=>(t._proxyFormState[o]!==x.all&&(t._proxyFormState[o]=!r||x.all),n&&(n[o]=!0),e[o])});return i},E=e=>l(e)&&!Object.keys(e).length,j=(e,t,n,r)=>{n(e);let{name:i,...o}=e;return E(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(e=>t[e]===(!r||x.all))},k=e=>Array.isArray(e)?e:[e],S=e=>"string"==typeof e,_=(e,t,n,r,i)=>S(e)?(r&&t.watch.add(e),g(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),g(n,e))):(r&&(t.watchAll=!0),n),O=e=>/^\w*$/.test(e),C=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/));function M(e,t,n){let r=-1,i=O(t)?[t]:C(t),o=i.length,a=o-1;for(;++rt?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};let T=(e,t,n)=>{for(let r of n||Object.keys(e)){let n=g(e,r);if(n){let{_f:e,...r}=n;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else l(r)&&T(r,t)}}};var P=e=>({isOnSubmit:!e||e===x.onSubmit,isOnBlur:e===x.onBlur,isOnChange:e===x.onChange,isOnAll:e===x.all,isOnTouch:e===x.onTouched}),N=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),R=(e,t,n)=>{let r=m(g(e,n));return M(r,"root",t[n]),M(e,n,r),e},D=e=>"boolean"==typeof e,L=e=>"file"===e.type,F=e=>"function"==typeof e,V=e=>{if(!h)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},z=e=>S(e),I=e=>"radio"===e.type,Z=e=>e instanceof RegExp;let B={value:!1,isValid:!1},H={value:!0,isValid:!0};var U=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!v(e[0].attributes.value)?v(e[0].value)||""===e[0].value?H:{value:e[0].value,isValid:!0}:H:B}return B};let W={isValid:!1,value:null};var q=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,W):W;function $(e,t,n="validate"){if(z(e)||Array.isArray(e)&&e.every(z)||D(e)&&!e)return{type:n,message:z(e)?e:"",ref:t}}var Y=e=>l(e)&&!Z(e)?e:{value:e,message:""},G=async(e,t,n,r,o)=>{let{ref:s,refs:u,required:c,maxLength:d,minLength:f,min:h,max:p,pattern:m,validate:y,name:x,valueAsNumber:w,mount:j,disabled:k}=e._f,_=g(t,x);if(!j||k)return{};let O=u?u[0]:s,C=e=>{r&&O.reportValidity&&(O.setCustomValidity(D(e)?"":e||""),O.reportValidity())},M={},T=I(s),P=i(s),N=(w||L(s))&&v(s.value)&&v(_)||V(s)&&""===s.value||""===_||Array.isArray(_)&&!_.length,R=A.bind(null,x,n,M),B=(e,t,n,r=b.maxLength,i=b.minLength)=>{let o=e?t:n;M[x]={type:e?r:i,message:o,ref:s,...R(e?r:i,o)}};if(o?!Array.isArray(_)||!_.length:c&&(!(T||P)&&(N||a(_))||D(_)&&!_||P&&!U(u).isValid||T&&!q(u).isValid)){let{value:e,message:t}=z(c)?{value:!!c,message:c}:Y(c);if(e&&(M[x]={type:b.required,message:t,ref:O,...R(b.required,t)},!n))return C(t),M}if(!N&&(!a(h)||!a(p))){let e,t;let r=Y(p),i=Y(h);if(a(_)||isNaN(_)){let n=s.valueAsDate||new Date(_),o=e=>new Date(new Date().toDateString()+" "+e),a="time"==s.type,l="week"==s.type;S(r.value)&&_&&(e=a?o(_)>o(r.value):l?_>r.value:n>new Date(r.value)),S(i.value)&&_&&(t=a?o(_)r.value),a(i.value)||(t=n+e.value,i=!a(t.value)&&_.length<+t.value;if((r||i)&&(B(r,e.message,t.message),!n))return C(M[x].message),M}if(m&&!N&&S(_)){let{value:e,message:t}=Y(m);if(Z(e)&&!_.match(e)&&(M[x]={type:b.pattern,message:t,ref:s,...R(b.pattern,t)},!n))return C(t),M}if(y){if(F(y)){let e=await y(_,t),r=$(e,O);if(r&&(M[x]={...r,...R(b.validate,r.message)},!n))return C(r.message),M}else if(l(y)){let e={};for(let r in y){if(!E(e)&&!n)break;let i=$(await y[r](_,t),O,r);i&&(e={...i,...R(r,i.message)},C(i.message),n&&(M[x]=e))}if(!E(e)&&(M[x]={ref:O,...e},!n))return M}}return C(!0),M};function X(e,t){let n=Array.isArray(t)?t:O(t)?[t]:C(t),r=1===n.length?e:function(e,t){let n=t.slice(0,-1).length,r=0;for(;r{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}}var Q=e=>a(e)||!s(e);function J(e,t){if(Q(e)||Q(t))return e===t;if(o(e)&&o(t))return e.getTime()===t.getTime();let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n){let n=e[i];if(!r.includes(i))return!1;if("ref"!==i){let e=t[i];if(o(n)&&o(e)||l(n)&&l(e)||Array.isArray(n)&&Array.isArray(e)?!J(n,e):n!==e)return!1}}return!0}var ee=e=>"select-multiple"===e.type,et=e=>I(e)||i(e),en=e=>V(e)&&e.isConnected,er=e=>{for(let t in e)if(F(e[t]))return!0;return!1};function ei(e,t={}){let n=Array.isArray(e);if(l(e)||n)for(let n in e)Array.isArray(e[n])||l(e[n])&&!er(e[n])?(t[n]=Array.isArray(e[n])?[]:{},ei(e[n],t[n])):a(e[n])||(t[n]=!0);return t}var eo=(e,t)=>(function e(t,n,r){let i=Array.isArray(t);if(l(t)||i)for(let i in t)Array.isArray(t[i])||l(t[i])&&!er(t[i])?v(n)||Q(r[i])?r[i]=Array.isArray(t[i])?ei(t[i],[]):{...ei(t[i])}:e(t[i],a(n)?{}:n[i],r[i]):r[i]=!J(t[i],n[i]);return r})(e,t,ei(t)),ea=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>v(e)?e:t?""===e?NaN:e?+e:e:n&&S(e)?new Date(e):r?r(e):e;function es(e){let t=e.ref;return(e.refs?e.refs.every(e=>e.disabled):t.disabled)?void 0:L(t)?t.files:I(t)?q(e.refs).value:ee(t)?[...t.selectedOptions].map(({value:e})=>e):i(t)?U(e.refs).value:ea(v(t.value)?e.ref.value:t.value,e)}var el=(e,t,n,r)=>{let i={};for(let n of e){let e=g(t,n);e&&M(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},eu=e=>v(e)?e:Z(e)?e.source:l(e)?Z(e.value)?e.value.source:e.value:e,ec=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ed(e,t,n){let r=g(e,n);if(r||O(n))return{error:r,name:n};let i=n.split(".");for(;i.length;){let r=i.join("."),o=g(t,r),a=g(e,r);if(o&&!Array.isArray(o)&&n!==r)break;if(a&&a.type)return{name:r,error:a};i.pop()}return{name:n}}var ef=(e,t,n,r,i)=>!i.isOnAll&&(!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?!r.isOnChange:!i.isOnChange)||e),eh=(e,t)=>!m(g(e,t)).length&&X(e,t);let ep={mode:x.onSubmit,reValidateMode:x.onChange,shouldFocusError:!0};function em(e={}){let t=r.useRef(),[n,s]=r.useState({isDirty:!1,isValidating:!1,isLoading:F(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:F(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...function(e={},t){let n,r={...ep,...e},s={submitCount:0,isDirty:!1,isLoading:F(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},c={},f=(l(r.defaultValues)||l(r.values))&&p(r.defaultValues||r.values)||{},b=r.shouldUnregister?{}:p(f),w={action:!1,mount:!1,watch:!1},j={mount:new Set,unMount:new Set,array:new Set,watch:new Set},O=0,C={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},A={values:K(),array:K(),state:K()},z=e.resetOptions&&e.resetOptions.keepDirtyValues,I=P(r.mode),Z=P(r.reValidateMode),B=r.criteriaMode===x.all,H=e=>t=>{clearTimeout(O),O=setTimeout(e,t)},U=async e=>{if(C.isValid||e){let e=r.resolver?E((await ei()).errors):await ev(c,!0);e!==s.isValid&&A.state.next({isValid:e})}},W=e=>C.isValidating&&A.state.next({isValidating:e}),q=(e,t)=>{M(s.errors,e,t),A.state.next({errors:s.errors})},$=(e,t,n,r)=>{let i=g(c,e);if(i){let o=g(b,e,v(n)?g(f,e):n);v(o)||r&&r.defaultChecked||t?M(b,e,t?o:es(i._f)):ex(e,o),w.mount&&U()}},Y=(e,t,n,r,i)=>{let o=!1,a=!1,l={name:e};if(!n||r){C.isDirty&&(a=s.isDirty,s.isDirty=l.isDirty=eg(),o=a!==l.isDirty);let n=J(g(f,e),t);a=g(s.dirtyFields,e),n?X(s.dirtyFields,e):M(s.dirtyFields,e,!0),l.dirtyFields=s.dirtyFields,o=o||C.dirtyFields&&!n!==a}if(n){let t=g(s.touchedFields,e);t||(M(s.touchedFields,e,n),l.touchedFields=s.touchedFields,o=o||C.touchedFields&&t!==n)}return o&&i&&A.state.next(l),o?l:{}},er=(t,r,i,o)=>{let a=g(s.errors,t),l=C.isValid&&D(r)&&s.isValid!==r;if(e.delayError&&i?(n=H(()=>q(t,i)))(e.delayError):(clearTimeout(O),n=null,i?M(s.errors,t,i):X(s.errors,t)),(i?!J(a,i):a)||!E(o)||l){let e={...o,...l&&D(r)?{isValid:r}:{},errors:s.errors,name:t};s={...s,...e},A.state.next(e)}W(!1)},ei=async e=>r.resolver(b,r.context,el(e||j.mount,c,r.criteriaMode,r.shouldUseNativeValidation)),em=async e=>{let{errors:t}=await ei();if(e)for(let n of e){let e=g(t,n);e?M(s.errors,n,e):X(s.errors,n)}else s.errors=t;return t},ev=async(e,t,n={valid:!0})=>{for(let i in e){let o=e[i];if(o){let{_f:e,...i}=o;if(e){let i=j.array.has(e.name),a=await G(o,b,B,r.shouldUseNativeValidation&&!t,i);if(a[e.name]&&(n.valid=!1,t))break;t||(g(a,e.name)?i?R(s.errors,a,e.name):M(s.errors,e.name,a[e.name]):X(s.errors,e.name))}i&&await ev(i,t,n)}}return n.valid},eg=(e,t)=>(e&&t&&M(b,e,t),!J(ek(),f)),ey=(e,t,n)=>_(e,j,{...w.mount?b:v(t)?f:S(e)?{[e]:t}:t},n,t),ex=(e,t,n={})=>{let r=g(c,e),o=t;if(r){let n=r._f;n&&(n.disabled||M(b,e,ea(t,n)),o=V(n.ref)&&a(t)?"":t,ee(n.ref)?[...n.ref.options].forEach(e=>e.selected=o.includes(e.value)):n.refs?i(n.ref)?n.refs.length>1?n.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find(t=>t===e.value):o===e.value)):n.refs[0]&&(n.refs[0].checked=!!o):n.refs.forEach(e=>e.checked=e.value===o):L(n.ref)?n.ref.value="":(n.ref.value=o,n.ref.type||A.values.next({name:e,values:{...b}})))}(n.shouldDirty||n.shouldTouch)&&Y(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&ej(e)},eb=(e,t,n)=>{for(let r in t){let i=t[r],a=`${e}.${r}`,s=g(c,a);!j.array.has(e)&&Q(i)&&(!s||s._f)||o(i)?ex(a,i,n):eb(a,i,n)}},ew=(e,n,r={})=>{let i=g(c,e),o=j.array.has(e),l=p(n);M(b,e,l),o?(A.array.next({name:e,values:{...b}}),(C.isDirty||C.dirtyFields)&&r.shouldDirty&&A.state.next({name:e,dirtyFields:eo(f,b),isDirty:eg(e,l)})):!i||i._f||a(l)?ex(e,l,r):eb(e,l,r),N(e,j)&&A.state.next({...s}),A.values.next({name:e,values:{...b}}),w.mount||t()},eE=async e=>{let t=e.target,i=t.name,o=!0,a=g(c,i);if(a){let l,d;let f=t.type?es(a._f):u(e),h=e.type===y.BLUR||e.type===y.FOCUS_OUT,p=!ec(a._f)&&!r.resolver&&!g(s.errors,i)&&!a._f.deps||ef(h,g(s.touchedFields,i),s.isSubmitted,Z,I),m=N(i,j,h);M(b,i,f),h?(a._f.onBlur&&a._f.onBlur(e),n&&n(0)):a._f.onChange&&a._f.onChange(e);let v=Y(i,f,h,!1),x=!E(v)||m;if(h||A.values.next({name:i,type:e.type,values:{...b}}),p)return C.isValid&&U(),x&&A.state.next({name:i,...m?{}:v});if(!h&&m&&A.state.next({...s}),W(!0),r.resolver){let{errors:e}=await ei([i]),t=ed(s.errors,c,i),n=ed(e,c,t.name||i);l=n.error,i=n.name,d=E(e)}else l=(await G(a,b,B,r.shouldUseNativeValidation))[i],(o=isNaN(f)||f===g(b,i,f))&&(l?d=!1:C.isValid&&(d=await ev(c,!0)));o&&(a._f.deps&&ej(a._f.deps),er(i,d,l,v))}},ej=async(e,t={})=>{let n,i;let o=k(e);if(W(!0),r.resolver){let t=await em(v(e)?e:o);n=E(t),i=e?!o.some(e=>g(t,e)):n}else e?((i=(await Promise.all(o.map(async e=>{let t=g(c,e);return await ev(t&&t._f?{[e]:t}:t)}))).every(Boolean))||s.isValid)&&U():i=n=await ev(c);return A.state.next({...!S(e)||C.isValid&&n!==s.isValid?{}:{name:e},...r.resolver||!e?{isValid:n}:{},errors:s.errors,isValidating:!1}),t.shouldFocus&&!i&&T(c,e=>e&&g(s.errors,e),e?o:j.mount),i},ek=e=>{let t={...f,...w.mount?b:{}};return v(e)?t:S(e)?g(t,e):e.map(e=>g(t,e))},eS=(e,t)=>({invalid:!!g((t||s).errors,e),isDirty:!!g((t||s).dirtyFields,e),isTouched:!!g((t||s).touchedFields,e),error:g((t||s).errors,e)}),e_=(e,t={})=>{for(let n of e?k(e):j.mount)j.mount.delete(n),j.array.delete(n),t.keepValue||(X(c,n),X(b,n)),t.keepError||X(s.errors,n),t.keepDirty||X(s.dirtyFields,n),t.keepTouched||X(s.touchedFields,n),r.shouldUnregister||t.keepDefaultValue||X(f,n);A.values.next({values:{...b}}),A.state.next({...s,...t.keepDirty?{isDirty:eg()}:{}}),t.keepIsValid||U()},eO=(e,t={})=>{let n=g(c,e),i=D(t.disabled);return M(c,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),j.mount.add(e),n?i&&M(b,e,t.disabled?void 0:g(b,e,es(n._f))):$(e,!0,t.value),{...i?{disabled:t.disabled}:{},...r.shouldUseNativeValidation?{required:!!t.required,min:eu(t.min),max:eu(t.max),minLength:eu(t.minLength),maxLength:eu(t.maxLength),pattern:eu(t.pattern)}:{},name:e,onChange:eE,onBlur:eE,ref:i=>{if(i){eO(e,t),n=g(c,e);let r=v(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,o=et(r),a=n._f.refs||[];(o?a.find(e=>e===r):r===n._f.ref)||(M(c,e,{_f:{...n._f,...o?{refs:[...a.filter(en),r,...Array.isArray(g(f,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),$(e,!1,void 0,r))}else(n=g(c,e,{}))._f&&(n._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&!(d(j.array,e)&&w.action)&&j.unMount.add(e)}}},eC=()=>r.shouldFocusError&&T(c,e=>e&&g(s.errors,e),j.mount),eM=(n,r={})=>{let i=n||f,o=p(i),a=n&&!E(n)?o:f;if(r.keepDefaultValues||(f=i),!r.keepValues){if(r.keepDirtyValues||z)for(let e of j.mount)g(s.dirtyFields,e)?M(a,e,g(b,e)):ew(e,g(a,e));else{if(h&&v(n))for(let e of j.mount){let t=g(c,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(V(e)){let t=e.closest("form");if(t){t.reset();break}}}}c={}}b=e.shouldUnregister?r.keepDefaultValues?p(f):{}:o,A.array.next({values:{...a}}),A.values.next({values:{...a}})}j={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},w.mount||t(),w.mount=!C.isValid||!!r.keepIsValid,w.watch=!!e.shouldUnregister,A.state.next({submitCount:r.keepSubmitCount?s.submitCount:0,isDirty:r.keepDirty?s.isDirty:!!(r.keepDefaultValues&&!J(n,f)),isSubmitted:!!r.keepIsSubmitted&&s.isSubmitted,dirtyFields:r.keepDirtyValues?s.dirtyFields:r.keepDefaultValues&&n?eo(f,n):{},touchedFields:r.keepTouched?s.touchedFields:{},errors:r.keepErrors?s.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},eA=(e,t)=>eM(F(e)?e(b):e,t);return{control:{register:eO,unregister:e_,getFieldState:eS,_executeSchema:ei,_getWatch:ey,_getDirty:eg,_updateValid:U,_removeUnmounted:()=>{for(let e of j.unMount){let t=g(c,e);t&&(t._f.refs?t._f.refs.every(e=>!en(e)):!en(t._f.ref))&&e_(e)}j.unMount=new Set},_updateFieldArray:(e,t=[],n,r,i=!0,o=!0)=>{if(r&&n){if(w.action=!0,o&&Array.isArray(g(c,e))){let t=n(g(c,e),r.argA,r.argB);i&&M(c,e,t)}if(o&&Array.isArray(g(s.errors,e))){let t=n(g(s.errors,e),r.argA,r.argB);i&&M(s.errors,e,t),eh(s.errors,e)}if(C.touchedFields&&o&&Array.isArray(g(s.touchedFields,e))){let t=n(g(s.touchedFields,e),r.argA,r.argB);i&&M(s.touchedFields,e,t)}C.dirtyFields&&(s.dirtyFields=eo(f,b)),A.state.next({name:e,isDirty:eg(e,t),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else M(b,e,t)},_getFieldArray:t=>m(g(w.mount?b:f,t,e.shouldUnregister?g(f,t,[]):[])),_reset:eM,_resetDefaultValues:()=>F(r.defaultValues)&&r.defaultValues().then(e=>{eA(e,r.resetOptions),A.state.next({isLoading:!1})}),_updateFormState:e=>{s={...s,...e}},_subjects:A,_proxyFormState:C,get _fields(){return c},get _formValues(){return b},get _state(){return w},set _state(value){w=value},get _defaultValues(){return f},get _names(){return j},set _names(value){j=value},get _formState(){return s},set _formState(value){s=value},get _options(){return r},set _options(value){r={...r,...value}}},trigger:ej,register:eO,handleSubmit:(e,t)=>async n=>{n&&(n.preventDefault&&n.preventDefault(),n.persist&&n.persist());let i=p(b);if(A.state.next({isSubmitting:!0}),r.resolver){let{errors:e,values:t}=await ei();s.errors=e,i=t}else await ev(c);X(s.errors,"root"),E(s.errors)?(A.state.next({errors:{}}),await e(i,n)):(t&&await t({...s.errors},n),eC(),setTimeout(eC)),A.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:E(s.errors),submitCount:s.submitCount+1,errors:s.errors})},watch:(e,t)=>F(e)?A.values.subscribe({next:n=>e(ey(void 0,t),n)}):ey(e,t,!0),setValue:ew,getValues:ek,reset:eA,resetField:(e,t={})=>{g(c,e)&&(v(t.defaultValue)?ew(e,g(f,e)):(ew(e,t.defaultValue),M(f,e,t.defaultValue)),t.keepTouched||X(s.touchedFields,e),t.keepDirty||(X(s.dirtyFields,e),s.isDirty=t.defaultValue?eg(e,g(f,e)):eg()),!t.keepError&&(X(s.errors,e),C.isValid&&U()),A.state.next({...s}))},clearErrors:e=>{e&&k(e).forEach(e=>X(s.errors,e)),A.state.next({errors:e?s.errors:{}})},unregister:e_,setError:(e,t,n)=>{let r=(g(c,e,{_f:{}})._f||{}).ref;M(s.errors,e,{...t,ref:r}),A.state.next({name:e,errors:s.errors,isValid:!1}),n&&n.shouldFocus&&r&&r.focus&&r.focus()},setFocus:(e,t={})=>{let n=g(c,e),r=n&&n._f;if(r){let e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:eS}}(e,()=>s(e=>({...e}))),formState:n});let c=t.current.control;return c._options=e,!function(e){let t=r.useRef(e);t.current=e,r.useEffect(()=>{let n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}({subject:c._subjects.state,next:e=>{j(e,c._proxyFormState,c._updateFormState,!0)&&s({...c._formState})}}),r.useEffect(()=>{e.values&&!J(e.values,c._defaultValues)?c._reset(e.values,c._options.resetOptions):c._resetDefaultValues()},[e.values,c]),r.useEffect(()=>{c._state.mount||(c._updateValid(),c._state.mount=!0),c._state.watch&&(c._state.watch=!1,c._subjects.state.next({...c._formState})),c._removeUnmounted()}),t.current.formState=w(n,c),t.current}},79381:function(e,t,n){"use strict";n.d(t,{J$:function(){return Q},ZP:function(){return J},JG:function(){return Z},kY:function(){return Y}});var r,i=n(2784),o=n(43100);let a=new WeakMap,s={},l={},u=()=>{},c=u(),d=Object,f=e=>e===c,h=e=>"function"==typeof e,p=(e,t)=>({...e,...t}),m="undefined",v=typeof window!=m,g=typeof document!=m,y=()=>v&&typeof window.requestAnimationFrame!=m,x=(e,t)=>{let n=a.get(e);return[()=>e.get(t)||s,r=>{if(!f(t)){let i=e.get(t);t in l||(l[t]=i),n[5](t,p(i,r),i||s)}},n[6],()=>!f(t)&&t in l?l[t]:e.get(t)||s]},b=new WeakMap,w=0,E=e=>{let t,n;let r=typeof e,i=e&&e.constructor,o=i==Date;if(d(e)!==e||o||i==RegExp)t=o?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=b.get(e))return t;if(t=++w+"~",b.set(e,t),i==Array){for(n=0,t="@";n(g&&document.addEventListener("visibilitychange",e),k("focus",e),()=>{g&&document.removeEventListener("visibilitychange",e),S("focus",e)}),initReconnect:e=>{let t=()=>{j=!0,e()},n=()=>{j=!1};return k("online",t),k("offline",n),()=>{S("online",t),S("offline",n)}}},O=!i.useId,C=!v||"Deno"in window,M=e=>y()?window.requestAnimationFrame(e):setTimeout(e,1),A=C?i.useEffect:i.useLayoutEffect,T="undefined"!=typeof navigator&&navigator.connection,P=!C&&T&&(["slow-2g","2g"].includes(T.effectiveType)||T.saveData),N=e=>{if(h(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?E(e):"",t]},R=0,D=()=>++R;var L={FOCUS_EVENT:0,RECONNECT_EVENT:1,MUTATE_EVENT:2,ERROR_REVALIDATE_EVENT:3};async function F(...e){let[t,n,r,i]=e,o=p({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),s=o.populateCache,l=o.rollbackOnError,u=o.optimisticData,d=!1!==o.revalidate,m=e=>"function"==typeof l?l(e):!1!==l,v=o.throwOnError;if(h(n)){let e=[],r=t.keys();for(let i=r.next();!i.done;i=r.next()){let r=i.value;!/^\$(inf|sub)\$/.test(r)&&n(t.get(r)._k)&&e.push(r)}return Promise.all(e.map(g))}return g(n);async function g(n){let i;let[o]=N(n);if(!o)return;let[l,p]=x(t,o),[g,y,b]=a.get(t),w=g[o],E=()=>d&&(delete b[o],w&&w[0])?w[0](2).then(()=>l().data):l().data;if(e.length<3)return E();let j=r,k=D();y[o]=[k,0];let S=!f(u),_=l(),O=_.data,C=_._c,M=f(C)?O:C;if(S&&p({data:u=h(u)?u(M):u,_c:M}),h(j))try{j=j(M)}catch(e){i=e}if(j&&h(j.then)){if(j=await j.catch(e=>{i=e}),k!==y[o][0]){if(i)throw i;return j}i&&S&&m(i)&&(s=!0,p({data:j=M,_c:c}))}s&&!i&&(h(s)&&(j=s(j,M)),p({data:j,_c:c})),y[o][1]=D();let A=await E();if(p({_c:c}),i){if(v)throw i;return}return s?A:j}}let V=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},z=(e,t)=>{if(!a.has(e)){let n=p(_,t),r={},i=F.bind(c,e),o=u,s={},l=(e,t)=>{let n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},d=(t,n,r)=>{e.set(t,n);let i=s[t];if(i)for(let e of i)e(n,r)},f=()=>{if(!a.has(e)&&(a.set(e,[r,{},{},{},i,d,l]),!C)){let t=n.initFocus(setTimeout.bind(c,V.bind(c,r,0))),i=n.initReconnect(setTimeout.bind(c,V.bind(c,r,1)));o=()=>{t&&t(),i&&i(),a.delete(e)}}};return f(),[e,i,f,o]}return[e,a.get(e)[4]]},[I,Z]=z(new Map),B=p({onLoadingSlow:u,onSuccess:u,onError:u,onErrorRetry:(e,t,n,r,i)=>{let o=n.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;(f(o)||!(a>o))&&setTimeout(r,s,i)},onDiscarded:u,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:P?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:P?5e3:3e3,compare:(e,t)=>E(e)==E(t),isPaused:()=>!1,cache:I,mutate:Z,fallback:{}},{isOnline:()=>j,isVisible:()=>{let e=g&&document.visibilityState;return f(e)||"hidden"!==e}}),H=(e,t)=>{let n=p(e,t);if(t){let{use:r,fallback:i}=e,{use:o,fallback:a}=t;r&&o&&(n.use=r.concat(o)),i&&a&&(n.fallback=p(i,a))}return n},U=(0,i.createContext)({}),W=v&&window.__SWR_DEVTOOLS_USE__,q=W?window.__SWR_DEVTOOLS_USE__:[],$=e=>h(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],Y=()=>p(B,(0,i.useContext)(U)),G=q.concat(e=>(t,n,r)=>{let i=n&&((...e)=>{let r=N(t)[0],[,,,i]=a.get(I),o=i[r];return o?(delete i[r],o):n(...e)});return e(t,i,r)}),X=(e,t,n)=>{let r=t[e]||(t[e]=[]);return r.push(n),()=>{let e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}};W&&(window.__SWR_DEVTOOLS_REACT__=i);let K={dedupe:!0},Q=d.defineProperty(e=>{let{value:t}=e,n=(0,i.useContext)(U),r=h(t),o=(0,i.useMemo)(()=>r?t(n):t,[r,n,t]),a=(0,i.useMemo)(()=>r?o:H(n,o),[r,n,o]),s=o&&o.provider,l=(0,i.useRef)(c);s&&!l.current&&(l.current=z(s(a.cache||I),o));let u=l.current;return u&&(a.cache=u[0],a.mutate=u[1]),A(()=>{if(u)return u[2]&&u[2](),u[3]},[]),(0,i.createElement)(U.Provider,p(e,{value:a}))},"defaultValue",{value:B});var J=(r=(e,t,n)=>{let{cache:r,compare:s,suspense:l,fallbackData:u,revalidateOnMount:d,revalidateIfStale:m,refreshInterval:v,refreshWhenHidden:g,refreshWhenOffline:y,keepPreviousData:b}=n,[w,E,j]=a.get(r),[k,S]=N(e),_=(0,i.useRef)(!1),T=(0,i.useRef)(!1),P=(0,i.useRef)(k),R=(0,i.useRef)(t),V=(0,i.useRef)(n),z=()=>V.current,I=()=>z().isVisible()&&z().isOnline(),[Z,B,H,U]=x(r,k),W=(0,i.useRef)({}).current,q=f(u)?n.fallback[k]:u,$=(e,t)=>{let n=!0;for(let r in W)"data"===r?s(t[r],e[r])||f(e[r])&&s(t[r],ei)||(n=!1):t[r]!==e[r]&&(n=!1);return n},Y=(0,i.useMemo)(()=>{let e=!!k&&!!t&&(f(d)?!z().isPaused()&&!l&&(!!f(m)||m):d),n=t=>{let n=p(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=Z(),i=U(),o=n(r),a=r===i?o:n(i),s=o;return[()=>{let e=n(Z());return $(e,s)?s:s=e},()=>a]},[r,k]),G=(0,o.useSyncExternalStore)((0,i.useCallback)(e=>H(k,(t,n)=>{$(n,t)||e()}),[r,k]),Y[0],Y[1]),Q=!_.current,J=w[k]&&w[k].length>0,ee=G.data,et=f(ee)?q:ee,en=G.error,er=(0,i.useRef)(et),ei=b?f(ee)?er.current:ee:et,eo=(!J||!!f(en))&&(Q&&!f(d)?d:!z().isPaused()&&(l?!f(et)&&m:f(et)||m)),ea=!!(k&&t&&Q&&eo),es=f(G.isValidating)?ea:G.isValidating,el=f(G.isLoading)?ea:G.isLoading,eu=(0,i.useCallback)(async e=>{let t,r;let i=R.current;if(!k||!i||T.current||z().isPaused())return!1;let o=!0,a=e||{},l=!j[k]||!a.dedupe,u=()=>O?!T.current&&k===P.current&&_.current:k===P.current,d={isValidating:!1,isLoading:!1},p=()=>{B(d)},m=()=>{let e=j[k];e&&e[1]===r&&delete j[k]},v={isValidating:!0};f(Z().data)&&(v.isLoading=!0);try{if(l&&(B(v),n.loadingTimeout&&f(Z().data)&&setTimeout(()=>{o&&u()&&z().onLoadingSlow(k,n)},n.loadingTimeout),j[k]=[i(S),D()]),[t,r]=j[k],t=await t,l&&setTimeout(m,n.dedupingInterval),!j[k]||j[k][1]!==r)return l&&u()&&z().onDiscarded(k),!1;d.error=c;let e=E[k];if(!f(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return p(),l&&u()&&z().onDiscarded(k),!1;let a=Z().data;d.data=s(a,t)?a:t,l&&u()&&z().onSuccess(t,k,n)}catch(n){m();let e=z(),{shouldRetryOnError:t}=e;!e.isPaused()&&(d.error=n,l&&u()&&(e.onError(n,k,e),(!0===t||h(t)&&t(n))&&I()&&e.onErrorRetry(n,k,e,e=>{let t=w[k];t&&t[0]&&t[0](L.ERROR_REVALIDATE_EVENT,e)},{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return o=!1,p(),!0},[k,r]),ec=(0,i.useCallback)((...e)=>F(r,P.current,...e),[]);if(A(()=>{R.current=t,V.current=n,f(ee)||(er.current=ee)}),A(()=>{if(!k)return;let e=eu.bind(c,K),t=0,n=X(k,w,(n,r={})=>{if(n==L.FOCUS_EVENT){let n=Date.now();z().revalidateOnFocus&&n>t&&I()&&(t=n+z().focusThrottleInterval,e())}else if(n==L.RECONNECT_EVENT)z().revalidateOnReconnect&&I()&&e();else if(n==L.MUTATE_EVENT)return eu();else if(n==L.ERROR_REVALIDATE_EVENT)return eu(r)});return T.current=!1,P.current=k,_.current=!0,B({_k:S}),eo&&(f(et)||C?e():M(e)),()=>{T.current=!0,n()}},[k]),A(()=>{let e;function t(){let t=h(v)?v(et):v;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!Z().error&&(g||z().isVisible())&&(y||z().isOnline())?eu(K).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[v,g,y,k]),(0,i.useDebugValue)(ei),l&&f(et)&&k){if(!O&&C)throw Error("Fallback data is required when using suspense in SSR.");throw R.current=t,V.current=n,T.current=!1,f(en)?eu(K):en}return{mutate:ec,get data(){return W.data=!0,ei},get error(){return W.error=!0,en},get isValidating(){return W.isValidating=!0,es},get isLoading(){return W.isLoading=!0,el}}},function(...e){let t=Y(),[n,i,o]=$(e),a=H(t,o),s=r,{use:l}=a,u=(l||[]).concat(G);for(let e=u.length;e--;)s=u[e](s);return s(n,i||a.fetcher||null,a)})}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(86570),t(60222)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/_app-a758de3bb6a27e70.js b/hostd/assets/_next/static/chunks/pages/_app-a758de3bb6a27e70.js new file mode 100644 index 000000000..ace80f3dd --- /dev/null +++ b/hostd/assets/_next/static/chunks/pages/_app-a758de3bb6a27e70.js @@ -0,0 +1,58 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{44711:function(e,t,n){"use strict";n.r(t),n.d(t,{ResizeObserver:function(){return q},ResizeObserverEntry:function(){return O},ResizeObserverSize:function(){return c}});var r,i,o,a=[],s="ResizeObserver loop completed with undelivered notifications.",l=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:s}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=s),window.dispatchEvent(e)};(r=i||(i={})).BORDER_BOX="border-box",r.CONTENT_BOX="content-box",r.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box";var u=function(e){return Object.freeze(e)},c=function(e,t){this.inlineSize=e,this.blockSize=t,u(this)},d=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,u(this)}return e.prototype.toJSON=function(){return{x:this.x,y:this.y,top:this.top,right:this.right,bottom:this.bottom,left:this.left,width:this.width,height:this.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),f=function(e){return e instanceof SVGElement&&"getBBox"in e},h=function(e){if(f(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e.offsetWidth,o=e.offsetHeight;return!(i||o||e.getClientRects().length)},p=function(e){if(e instanceof Element)return!0;var t,n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},m=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},v="undefined"!=typeof window?window:{},g=new WeakMap,y=/auto|scroll/,b=/^tb|vertical/,x=/msie|trident/i.test(v.navigator&&v.navigator.userAgent),w=function(e){return parseFloat(e||"0")},E=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new c((n?t:e)||0,(n?e:t)||0)},j=u({devicePixelContentBoxSize:E(),borderBoxSize:E(),contentBoxSize:E(),contentRect:new d(0,0,0,0)}),k=function(e,t){if(void 0===t&&(t=!1),g.has(e)&&!t)return g.get(e);if(h(e))return g.set(e,j),j;var n=getComputedStyle(e),r=f(e)&&e.ownerSVGElement&&e.getBBox(),i=!x&&"border-box"===n.boxSizing,o=b.test(n.writingMode||""),a=!r&&y.test(n.overflowY||""),s=!r&&y.test(n.overflowX||""),l=r?0:w(n.paddingTop),c=r?0:w(n.paddingRight),p=r?0:w(n.paddingBottom),m=r?0:w(n.paddingLeft),v=r?0:w(n.borderTopWidth),k=r?0:w(n.borderRightWidth),S=r?0:w(n.borderBottomWidth),O=r?0:w(n.borderLeftWidth),_=m+c,C=l+p,M=O+k,A=v+S,T=s?e.offsetHeight-A-e.clientHeight:0,P=a?e.offsetWidth-M-e.clientWidth:0,N=r?r.width:w(n.width)-(i?_+M:0)-P,R=r?r.height:w(n.height)-(i?C+A:0)-T,D=N+_+P+M,Z=R+C+T+A,L=u({devicePixelContentBoxSize:E(Math.round(N*devicePixelRatio),Math.round(R*devicePixelRatio),o),borderBoxSize:E(D,Z,o),contentBoxSize:E(N,R,o),contentRect:new d(m,l,N,R)});return g.set(e,L),L},S=function(e,t,n){var r=k(e,n),o=r.borderBoxSize,a=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case i.DEVICE_PIXEL_CONTENT_BOX:return s;case i.BORDER_BOX:return o;default:return a}},O=function(e){var t=k(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=u([t.borderBoxSize]),this.contentBoxSize=u([t.contentBoxSize]),this.devicePixelContentBoxSize=u([t.devicePixelContentBoxSize])},_=function(e){if(h(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},C=function(){var e=1/0,t=[];a.forEach(function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach(function(t){var n=new O(t.target),i=_(t.target);r.push(n),t.lastReportedSize=S(t.target,t.observedBox),ie?t.activeTargets.push(n):t.skippedTargets.push(n))})})},A=function(){var e=0;for(M(0);a.some(function(e){return e.activeTargets.length>0});)M(e=C());return a.some(function(e){return e.skippedTargets.length>0})&&l(),e>0},T=[],P=function(e){if(!o){var t=0,n=document.createTextNode("");new MutationObserver(function(){return T.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),o=function(){n.textContent=""+(t?t--:t++)}}T.push(e),o()},N=function(e){P(function(){requestAnimationFrame(e)})},R=0,D={attributes:!0,characterData:!0,childList:!0,subtree:!0},Z=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],L=function(e){return void 0===e&&(e=0),Date.now()+e},F=!1,z=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),!F){F=!0;var n=L(e);N(function(){var r=!1;try{r=A()}finally{if(F=!1,e=n-L(),!R)return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},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,D)};document.body?t():v.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Z.forEach(function(t){return v.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Z.forEach(function(t){return v.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),V=function(e){!R&&e>0&&z.start(),(R+=e)||z.stop()},I=function(){function e(e,t){this.target=e,this.observedBox=t||i.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=S(this.target,this.observedBox,!0);return f(e=this.target)||m(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),B=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},H=new WeakMap,U=function(e,t){for(var n=0;nU(r.observationTargets,t)&&(i&&a.push(r),r.observationTargets.push(new I(t,n&&n.box)),V(1),z.schedule())},e.unobserve=function(e,t){var n=H.get(e),r=U(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&a.splice(a.indexOf(n),1),n.observationTargets.splice(r,1),V(-1))},e.disconnect=function(e){var t=this,n=H.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),q=function(){function e(e){if(0==arguments.length)throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");W.connect(this,e)}return e.prototype.observe=function(e,t){if(0==arguments.length)throw TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!p(e))throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");W.observe(this,e,t)},e.prototype.unobserve=function(e){if(0==arguments.length)throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!p(e))throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");W.unobserve(this,e)},e.prototype.disconnect=function(){W.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}()},41816:function(e,t,n){"use strict";function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}n.d(t,{M:function(){return r}})},26215:function(e,t,n){"use strict";n.d(t,{F:function(){return i},e:function(){return o}});var r=n(2784);function i(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function o(...e){return(0,r.useCallback)(i(...e),e)}},34540:function(e,t,n){"use strict";n.d(t,{b:function(){return o},k:function(){return i}});var r=n(2784);function i(e,t){let n=(0,r.createContext)(t);function i(e){let{children:t,...i}=e,o=(0,r.useMemo)(()=>i,Object.values(i));return(0,r.createElement)(n.Provider,{value:o},t)}return i.displayName=e+"Provider",[i,function(i){let o=(0,r.useContext)(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function o(e,t=[]){let n=[],i=()=>{let t=n.map(e=>(0,r.createContext)(e));return function(n){let i=(null==n?void 0:n[e])||t;return(0,r.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return i.scopeName=e,[function(t,i){let o=(0,r.createContext)(i),a=n.length;function s(t){let{scope:n,children:i,...s}=t,l=(null==n?void 0:n[e][a])||o,u=(0,r.useMemo)(()=>s,Object.values(s));return(0,r.createElement)(l.Provider,{value:u},i)}return n=[...n,i],s.displayName=t+"Provider",[s,function(n,s){let l=(null==s?void 0:s[e][a])||o,u=(0,r.useContext)(l);if(u)return u;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e),o=i[`__scope${r}`];return{...t,...o}},{});return(0,r.useMemo)(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(i,...t)]}},72331:function(e,t,n){"use strict";n.d(t,{Dx:function(){return Y},VY:function(){return $},aV:function(){return q},dk:function(){return G},fC:function(){return H},h_:function(){return W},x8:function(){return K},xz:function(){return U}});var r=n(7896),i=n(2784),o=n(41816),a=n(26215),s=n(34540),l=n(26074),u=n(73597),c=n(83317),d=n(77334),f=n(6500),h=n(28245),p=n(72130),m=n(55070),v=n(70506),g=n(49732),y=n(99575);let b="Dialog",[x,w]=(0,s.b)(b),[E,j]=x(b),k=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...s}=e,l=j("DialogTrigger",n),u=(0,a.e)(t,l.triggerRef);return(0,i.createElement)(p.WV.button,(0,r.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":V(l.open)},s,{ref:u,onClick:(0,o.M)(e.onClick,l.onOpenToggle)}))}),S="DialogPortal",[O,_]=x(S,{forceMount:void 0}),C="DialogOverlay",M=(0,i.forwardRef)((e,t)=>{let n=_(C,e.__scopeDialog),{forceMount:o=n.forceMount,...a}=e,s=j(C,e.__scopeDialog);return s.modal?(0,i.createElement)(h.z,{present:o||s.open},(0,i.createElement)(A,(0,r.Z)({},a,{ref:t}))):null}),A=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=j(C,n);return(0,i.createElement)(v.Z,{as:y.g7,allowPinchZoom:!0,shards:[a.contentRef]},(0,i.createElement)(p.WV.div,(0,r.Z)({"data-state":V(a.open)},o,{ref:t,style:{pointerEvents:"auto",...o.style}})))}),T="DialogContent",P=(0,i.forwardRef)((e,t)=>{let n=_(T,e.__scopeDialog),{forceMount:o=n.forceMount,...a}=e,s=j(T,e.__scopeDialog);return(0,i.createElement)(h.z,{present:o||s.open},s.modal?(0,i.createElement)(N,(0,r.Z)({},a,{ref:t})):(0,i.createElement)(R,(0,r.Z)({},a,{ref:t})))}),N=(0,i.forwardRef)((e,t)=>{let n=j(T,e.__scopeDialog),s=(0,i.useRef)(null),l=(0,a.e)(t,n.contentRef,s);return(0,i.useEffect)(()=>{let e=s.current;if(e)return(0,g.R)(e)},[]),(0,i.createElement)(D,(0,r.Z)({},e,{ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;r&&e.preventDefault()}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault())}))}),R=(0,i.forwardRef)((e,t)=>{let n=j(T,e.__scopeDialog),o=(0,i.useRef)(!1);return(0,i.createElement)(D,(0,r.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,i;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),o.current=!1},onInteractOutside:t=>{var r,i;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current=!0);let a=t.target,s=null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(a);s&&t.preventDefault()}}))}),D=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:l,...u}=e,f=j(T,n),h=(0,i.useRef)(null),p=(0,a.e)(t,h);return(0,m.EW)(),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(d.M,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:s,onUnmountAutoFocus:l},(0,i.createElement)(c.XB,(0,r.Z)({role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":V(f.open)},u,{ref:p,onDismiss:()=>f.onOpenChange(!1)}))),!1)}),Z="DialogTitle",L=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=j(Z,n);return(0,i.createElement)(p.WV.h2,(0,r.Z)({id:a.titleId},o,{ref:t}))}),F=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=j("DialogDescription",n);return(0,i.createElement)(p.WV.p,(0,r.Z)({id:a.descriptionId},o,{ref:t}))}),z=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...a}=e,s=j("DialogClose",n);return(0,i.createElement)(p.WV.button,(0,r.Z)({type:"button"},a,{ref:t,onClick:(0,o.M)(e.onClick,()=>s.onOpenChange(!1))}))});function V(e){return e?"open":"closed"}let[I,B]=(0,s.k)("DialogTitleWarning",{contentName:T,titleName:Z,docsSlug:"dialog"}),H=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,c=(0,i.useRef)(null),d=(0,i.useRef)(null),[f=!1,h]=(0,u.T)({prop:r,defaultProp:o,onChange:a});return(0,i.createElement)(E,{scope:t,triggerRef:c,contentRef:d,contentId:(0,l.M)(),titleId:(0,l.M)(),descriptionId:(0,l.M)(),open:f,onOpenChange:h,onOpenToggle:(0,i.useCallback)(()=>h(e=>!e),[h]),modal:s},n)},U=k,W=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=j(S,t);return(0,i.createElement)(O,{scope:t,forceMount:n},i.Children.map(r,e=>(0,i.createElement)(h.z,{present:n||a.open},(0,i.createElement)(f.h,{asChild:!0,container:o},e))))},q=M,$=P,Y=L,G=F,K=z},83317:function(e,t,n){"use strict";let r;n.d(t,{XB:function(){return f}});var i=n(7896),o=n(2784),a=n(41816),s=n(72130),l=n(26215),u=n(86029);let c="dismissableLayer.update",d=(0,o.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=(0,o.forwardRef)((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:g,onDismiss:y,...b}=e,x=(0,o.useContext)(d),[w,E]=(0,o.useState)(null),[,j]=(0,o.useState)({}),k=(0,l.e)(t,e=>E(e)),S=Array.from(x.layers),[O]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),_=S.indexOf(O),C=w?S.indexOf(w):-1,M=x.layersWithOutsidePointerEventsDisabled.size>0,A=C>=_,T=function(e){let t=(0,u.W)(e),n=(0,o.useRef)(!1),r=(0,o.useRef)(()=>{});return(0,o.useEffect)(()=>{let e=e=>{if(e.target&&!n.current){let n={originalEvent:e};function i(){p("dismissableLayer.pointerDownOutside",t,n,{discrete:!0})}"touch"===e.pointerType?(document.removeEventListener("click",r.current),r.current=i,document.addEventListener("click",r.current,{once:!0})):i()}n.current=!1},i=window.setTimeout(()=>{document.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),document.removeEventListener("pointerdown",e),document.removeEventListener("click",r.current)}},[t]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,n=[...x.branches].some(e=>e.contains(t));!A||n||(null==m||m(e),null==g||g(e),e.defaultPrevented||null==y||y())}),P=function(e){let t=(0,u.W)(e),n=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{let e=e=>{e.target&&!n.current&&p("dismissableLayer.focusOutside",t,{originalEvent:e},{discrete:!1})};return document.addEventListener("focusin",e),()=>document.removeEventListener("focusin",e)},[t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target,n=[...x.branches].some(e=>e.contains(t));n||(null==v||v(e),null==g||g(e),e.defaultPrevented||null==y||y())});return!function(e){let t=(0,u.W)(e);(0,o.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t])}(e=>{let t=C===x.layers.size-1;t&&(null==f||f(e),!e.defaultPrevented&&y&&(e.preventDefault(),y()))}),(0,o.useEffect)(()=>{if(w)return n&&(0===x.layersWithOutsidePointerEventsDisabled.size&&(r=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(w)),x.layers.add(w),h(),()=>{n&&1===x.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=r)}},[w,n,x]),(0,o.useEffect)(()=>()=>{w&&(x.layers.delete(w),x.layersWithOutsidePointerEventsDisabled.delete(w),h())},[w,x]),(0,o.useEffect)(()=>{let e=()=>j({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,o.createElement)(s.WV.div,(0,i.Z)({},b,{ref:k,style:{pointerEvents:M?A?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.M)(e.onFocusCapture,P.onFocusCapture),onBlurCapture:(0,a.M)(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:(0,a.M)(e.onPointerDownCapture,T.onPointerDownCapture)}))});function h(){let e=new CustomEvent(c);document.dispatchEvent(e)}function p(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,s.jH)(i,o):i.dispatchEvent(o)}},55070:function(e,t,n){"use strict";n.d(t,{EW:function(){return o}});var r=n(2784);let i=0;function o(){(0,r.useEffect)(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:a()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:a()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}},77334:function(e,t,n){"use strict";let r;n.d(t,{M:function(){return f}});var i=n(7896),o=n(2784),a=n(26215),s=n(72130),l=n(86029);let u="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},f=(0,o.forwardRef)((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:f,onUnmountAutoFocus:g,...y}=e,[b,x]=(0,o.useState)(null),w=(0,l.W)(f),E=(0,l.W)(g),j=(0,o.useRef)(null),k=(0,a.e)(t,e=>x(e)),S=(0,o.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,o.useEffect)(()=>{if(r){function e(e){if(S.paused||!b)return;let t=e.target;b.contains(t)?j.current=t:m(j.current,{select:!0})}function t(e){S.paused||!b||b.contains(e.relatedTarget)||m(j.current,{select:!0})}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}},[r,b,S.paused]),(0,o.useEffect)(()=>{if(b){v.add(S);let e=document.activeElement,t=b.contains(e);if(!t){let t=new CustomEvent(u,d);b.addEventListener(u,w),b.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(m(r,{select:t}),document.activeElement!==n)return}(h(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&m(b))}return()=>{b.removeEventListener(u,w),setTimeout(()=>{let t=new CustomEvent(c,d);b.addEventListener(c,E),b.dispatchEvent(t),t.defaultPrevented||m(null!=e?e:document.body,{select:!0}),b.removeEventListener(c,E),v.remove(S)},0)}}},[b,w,E,S]);let O=(0,o.useCallback)(e=>{if(!n&&!r||S.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,o]=function(e){let t=h(e),n=p(t,e),r=p(t.reverse(),e);return[n,r]}(t),a=r&&o;a?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&m(o,{select:!0})):(e.preventDefault(),n&&m(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,S.paused]);return(0,o.createElement)(s.WV.div,(0,i.Z)({tabIndex:-1},y,{ref:k,onKeyDown:O}))});function h(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function p(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function m(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}let v=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=g(r,e)).unshift(e)},remove(e){var t;null===(t=(r=g(r,e))[0])||void 0===t||t.resume()}});function g(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},26074:function(e,t,n){"use strict";n.d(t,{M:function(){return l}});var r,i=n(2784),o=n(64680);let a=(r||(r=n.t(i,2)))["useId".toString()]||(()=>void 0),s=0;function l(e){let[t,n]=i.useState(a());return(0,o.b)(()=>{e||n(e=>null!=e?e:String(s++))},[e]),e||(t?`radix-${t}`:"")}},6500:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(7896),i=n(2784),o=n(28316),a=n(72130);let s=(0,i.forwardRef)((e,t)=>{var n;let{container:s=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...l}=e;return s?o.createPortal((0,i.createElement)(a.WV.div,(0,r.Z)({},l,{ref:t})),s):null})},28245:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var r=n(2784),i=n(28316),o=n(26215),a=n(64680);let s=e=>{let{present:t,children:n}=e,s=function(e){var t;let[n,o]=(0,r.useState)(),s=(0,r.useRef)({}),u=(0,r.useRef)(e),c=(0,r.useRef)("none"),d=e?"mounted":"unmounted",[f,h]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,r.useReducer)((e,n)=>{let r=t[e][n];return null!=r?r:e},d));return(0,r.useEffect)(()=>{let e=l(s.current);c.current="mounted"===f?e:"none"},[f]),(0,a.b)(()=>{let t=s.current,n=u.current,r=n!==e;if(r){let r=c.current,i=l(t);e?h("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?h("UNMOUNT"):n&&r!==i?h("ANIMATION_OUT"):h("UNMOUNT"),u.current=e}},[e,h]),(0,a.b)(()=>{if(n){let e=e=>{let t=l(s.current),r=t.includes(e.animationName);e.target===n&&r&&(0,i.flushSync)(()=>h("ANIMATION_END"))},t=e=>{e.target===n&&(c.current=l(s.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}h("ANIMATION_END")},[n,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:(0,r.useCallback)(e=>{e&&(s.current=getComputedStyle(e)),o(e)},[])}}(t),u="function"==typeof n?n({present:s.isPresent}):r.Children.only(n),c=(0,o.e)(s.ref,u.ref),d="function"==typeof n;return d||s.isPresent?(0,r.cloneElement)(u,{ref:c}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}s.displayName="Presence"},72130:function(e,t,n){"use strict";n.d(t,{WV:function(){return s},jH:function(){return l}});var r=n(7896),i=n(2784),o=n(28316),a=n(99575);let s=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,i.forwardRef)((e,n)=>{let{asChild:o,...s}=e,l=o?a.g7:t;return(0,i.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,i.createElement)(l,(0,r.Z)({},s,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function l(e,t){e&&(0,o.flushSync)(()=>e.dispatchEvent(t))}},99575:function(e,t,n){"use strict";n.d(t,{A4:function(){return l},g7:function(){return a}});var r=n(7896),i=n(2784),o=n(26215);let a=(0,i.forwardRef)((e,t)=>{let{children:n,...o}=e,a=i.Children.toArray(n),l=a.find(u);if(l){let e=l.props.children,n=a.map(t=>t!==l?t:i.Children.count(e)>1?i.Children.only(null):(0,i.isValidElement)(e)?e.props.children:null);return(0,i.createElement)(s,(0,r.Z)({},o,{ref:t}),(0,i.isValidElement)(e)?(0,i.cloneElement)(e,void 0,n):null)}return(0,i.createElement)(s,(0,r.Z)({},o,{ref:t}),n)});a.displayName="Slot";let s=(0,i.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,i.isValidElement)(n)?(0,i.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r],a=/^on[A-Z]/.test(r);a?n[r]=(...e)=>{null==o||o(...e),null==i||i(...e)}:"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:(0,o.F)(t,n.ref)}):i.Children.count(n)>1?i.Children.only(null):null});s.displayName="SlotClone";let l=({children:e})=>(0,i.createElement)(i.Fragment,null,e);function u(e){return(0,i.isValidElement)(e)&&e.type===l}},86029:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(2784);function i(e){let t=(0,r.useRef)(e);return(0,r.useEffect)(()=>{t.current=e}),(0,r.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}},73597:function(e,t,n){"use strict";n.d(t,{T:function(){return o}});var r=n(2784),i=n(86029);function o({prop:e,defaultProp:t,onChange:n=()=>{}}){let[o,a]=function({defaultProp:e,onChange:t}){let n=(0,r.useState)(e),[o]=n,a=(0,r.useRef)(o),s=(0,i.W)(t);return(0,r.useEffect)(()=>{a.current!==o&&(s(o),a.current=o)},[o,a,s]),n}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:o,u=(0,i.W)(n),c=(0,r.useCallback)(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else a(t)},[s,e,a,u]);return[l,c]}},64680:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(2784);let i=(null==globalThis?void 0:globalThis.document)?r.useLayoutEffect:()=>{}},25447:function(e,t,n){"use strict";e.exports=n(44868)},99550:function(e,t,n){"use strict";e.exports=n(22360)},6901:function(e,t,n){"use strict";e.exports=n(78476)},8669:function(e,t,n){"use strict";e.exports=n(19455)},53609:function(e,t,n){"use strict";e.exports=n(96721)},81401:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.children,n=void 0===t?s.default:t,p=e.axisClassName,v=e.hideAxisLine,g=e.hideTicks,y=e.hideZero,b=void 0!==y&&y,x=e.left,w=e.numTicks,E=void 0===w?10:w,j=e.orientation,k=void 0===j?d.default.bottom:j,S=e.rangePadding,O=void 0===S?0:S,_=e.scale,C=e.tickFormat,M=e.tickLength,A=void 0===M?8:M,T=e.tickValues,P=e.top,N=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,h),R=null!=C?C:(0,u.default)(_),D=k===d.default.left,Z=k===d.default.top,L=Z||k===d.default.bottom,F=(0,l.default)(_),z=D||Z?-1:1,V=_.range(),I=(0,f.default)(O),B=(0,c.default)({x:Number(V[0])+.5-I.start,y:0},L),H=(0,c.default)({x:Number(V[V.length-1])+.5+I.end,y:0},L),U=(null!=T?T:(0,a.getTicks)(_,E)).filter(function(e){return!b||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),W=U.map(function(e){var t=e.value,n=e.index,r=(0,a.coerceNumber)(F(t));return{value:t,index:n,from:(0,c.default)({x:r,y:0},L),to:(0,c.default)({x:r,y:A*z},L),formattedValue:R(t,n,U)}});return r.default.createElement(o.Group,{className:(0,i.default)("visx-axis",p),top:void 0===P?0:P,left:void 0===x?0:x},n(m({},N,{axisFromPoint:B,axisToPoint:H,hideAxisLine:void 0!==v&&v,hideTicks:void 0!==g&&g,hideZero:b,horizontal:L,numTicks:E,orientation:k,rangePadding:O,scale:_,tickFormat:R,tickLength:A,tickPosition:F,tickSign:z,ticks:W})))},p(n(13980));var r=p(n(2784)),i=p(n(72779)),o=n(71602),a=n(63243),s=p(n(58052)),l=p(n(71387)),u=p(n(16882)),c=p(n(89591)),d=p(n(87209)),f=p(n(31863)),h=["children","axisClassName","hideAxisLine","hideTicks","hideZero","left","numTicks","orientation","rangePadding","scale","tickFormat","tickLength","tickValues","top"];function p(e){return e&&e.__esModule?e:{default:e}}function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:a.default.bottom,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))};var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:a.default.left,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.leftTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-right",t),labelOffset:void 0===n?36:n,orientation:a.default.right,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.rightTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-top",t),labelOffset:void 0===n?8:n,orientation:a.default.top,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.topTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(r=a()).done;){var s=r.value,l=Math.sqrt(Math.pow(s.x-e.x,2)+Math.pow(s.y-e.y,2));l0)?(0,i.default)(e,t):{x:(0,r.default)(e.x,null!=(o=n.xMin)?o:-1/0,null!=(a=n.xMax)?a:1/0),y:(0,r.default)(e.y,null!=(s=n.yMin)?s:-1/0,null!=(l=n.yMax)?l:1/0)}};var r=o(n(30968)),i=o(n(98929));function o(e){return e&&e.__esModule?e:{default:e}}},32722:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return(0,r.useMemo)(function(){if(!e)return[];var t=e.getCTM()||new DOMMatrix;return function(e,t,n){if(void 0===n&&(n=1),!e)return[];for(var r=[],i=e.getTotalLength(),o=0;o<=i;o+=n){var a=e.getPointAtLength(o).matrixTransform(t);r.push(a)}return r}(e,t)},[null==e?void 0:e.getTotalLength()])};var r=n(2784)},37016:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=(0,r.useState)(e),n=t[0],i=t[1],o=(0,r.useRef)(null),a=(0,r.useCallback)(function(e,t){o.current=t||null,i(e)},[i]);return(0,r.useLayoutEffect)(function(){o.current&&(o.current(n),o.current=null)},[n]),[n,a]};var r=n(2784)},65319:function(e,t,n){"use strict";n.r(t),n.d(t,{localPoint:function(){return r.Z},touchPoint:function(){return i.Z}});var r=n(91032),i=n(49833)},91032:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(49833),i=n(44321);function o(e,t){if((0,i.kK)(e)&&t)return(0,r.Z)(e,t);if((0,i.cO)(e)){var n=e.target;if(n)return(0,r.Z)(n,e)}return null}},49833:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(19067),i=n(44321);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:o({},a);if((0,i.N5)(e))return{x:e.clientX,y:e.clientY};var t=null==e?void 0:e.target,n=t&&"getBoundingClientRect"in t?t.getBoundingClientRect():null;return n?{x:n.x+n.width/2,y:n.y+n.height/2}:o({},a)}(t),s=(0,i.vZ)(e)?e.ownerSVGElement:e,l=(0,i.DY)(s)?s.getScreenCTM():null;if((0,i.r4)(s)&&l){var u=s.createSVGPoint();return u.x=n.x,u.y=n.y,u=u.matrixTransform(l.inverse()),new r.Z({x:u.x,y:u.y})}var c=e.getBoundingClientRect();return new r.Z({x:n.x-c.left-e.clientLeft,y:n.y-c.top-e.clientTop})}},44321:function(e,t,n){"use strict";function r(e){return!!e&&e instanceof Element}function i(e){return!!e&&(e instanceof SVGElement||"ownerSVGElement"in e)}function o(e){return!!e&&"createSVGPoint"in e}function a(e){return!!e&&"getScreenCTM"in e}function s(e){return!!e&&"changedTouches"in e}function l(e){return!!e&&"clientX"in e}function u(e){return!!e&&(e instanceof Event||"nativeEvent"in e&&e.nativeEvent instanceof Event)}n.d(t,{DY:function(){return a},N5:function(){return l},cO:function(){return u},kK:function(){return r},r4:function(){return o},vZ:function(){return i},z6:function(){return s}})},21516:function(e,t,n){"use strict";t.__esModule=!0,t.default=p;var r=f(n(13980)),i=f(n(2784)),o=f(n(72779)),a=f(n(47440)),s=n(71602),l=n(61305),u=n(63243),c=f(n(12345)),d=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function f(e){return e&&e.__esModule?e:{default:e}}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),O=null!=j?j:(0,u.getTicks)(r,void 0===x?10:x),_=(null!=E?E:0)+(0,c.default)(r)/2,C=O.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+_;return{index:t,from:new l.Point({x:i,y:0}),to:new l.Point({x:i,y:f})}});return i.default.createElement(s.Group,{className:(0,o.default)("visx-columns",b),top:void 0===t?0:t,left:void 0===n?0:n},k?k({lines:C}):C.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(a.default,h({key:"column-line-"+r,from:t,to:n,stroke:m,strokeWidth:g,strokeDasharray:y,style:w},S))}))}p.propTypes={tickValues:r.default.array,height:r.default.number.isRequired}},34264:function(e,t,n){"use strict";t.__esModule=!0,t.default=p;var r=f(n(13980)),i=f(n(2784)),o=f(n(72779)),a=f(n(47440)),s=n(71602),l=n(61305),u=n(63243),c=f(n(12345)),d=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function f(e){return e&&e.__esModule?e:{default:e}}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),O=null!=k?k:(0,u.getTicks)(r,void 0===w?10:w),_=(null!=j?j:0)+(0,c.default)(r)/2,C=O.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+_;return{index:t,from:new l.Point({x:0,y:i}),to:new l.Point({x:f,y:i})}});return i.default.createElement(s.Group,{className:(0,o.default)("visx-rows",b),top:void 0===t?0:t,left:void 0===n?0:n},x?x({lines:C}):C.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(a.default,h({key:"row-line-"+r,from:t,to:n,stroke:m,strokeWidth:g,strokeDasharray:y,style:E},S))}))}p.propTypes={tickValues:r.default.array,width:r.default.number.isRequired}},12345:function(e,t){"use strict";t.__esModule=!0,t.default=function(e){return"bandwidth"in e?e.bandwidth():0}},59309:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(13980),i=n.n(r),o=n(2784),a=n(72779),s=n.n(a),l=["top","left","transform","className","children","innerRef"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,l);return o.createElement("g",u({ref:c,className:s()("visx-group",i),transform:r||"translate("+(void 0===n?0:n)+", "+(void 0===t?0:t)+")"},d),a)}c.propTypes={top:i().number,left:i().number,transform:i().string,className:i().string,children:i().node,innerRef:i().oneOfType([i().string,i().func,i().object])}},71602:function(e,t,n){"use strict";n.r(t),n.d(t,{Group:function(){return r.Z}});var r=n(59309)},19067:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=function(){function e(e){var t=e.x,n=e.y;this.x=0,this.y=0,this.x=void 0===t?0:t,this.y=void 0===n?0:n}var t=e.prototype;return t.value=function(){return{x:this.x,y:this.y}},t.toArray=function(){return[this.x,this.y]},e}()},61305:function(e,t,n){"use strict";n.r(t),n.d(t,{Point:function(){return r.Z},subtractPoints:function(){return o},sumPoints:function(){return i}});var r=n(19067);function i(e,t){return new r.Z({x:e.x+t.x,y:e.y+t.y})}function o(e,t){return new r.Z({x:e.x-t.x,y:e.y-t.y})}},93125:function(e,t,n){"use strict";t.Z=function(e){var t=e.animationTrajectory,n=e.tickComponent,s=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,a),l=(0,r.useMemo)(function(){return function(e){return r.default.createElement(o.default,u({},e,{tickComponent:n,animationTrajectory:t}))}},[t,n]);return r.default.createElement(i.default,u({},s,{ticksComponent:l}))},l(n(13980));var r=function(e,t){if(!t&&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]}return r.default=e,n&&n.set(e,r),r}(n(2784)),i=l(n(81401)),o=l(n(65154)),a=["animationTrajectory","tickComponent"];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 l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a);return r.default.createElement(i.default,{scale:t,height:n,numTicks:s,tickValues:u,className:c,top:f,left:h},function(e){var n=e.lines;return r.default.createElement(o.default,l({scale:t,lines:n,animationTrajectory:d,animateXOrY:"x",lineKey:function(e){var t,n;return"column-"+(null!=(t=null==e?void 0:null==(n=e.from)?void 0:n.x)?t:"")+"-"+e.index}},p))})};var r=s(n(2784)),i=s(n(21516)),o=s(n(55727)),a=["scale","height","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),h=(0,o.useTransition)(n,u({},(0,a.default)({scale:t,animateXOrY:l,animationTrajectory:r}),{key:c}));return i.default.createElement(i.default.Fragment,null,h(function(e,t,n){var r=e.fromX,a=e.toX,s=e.fromY,l=e.toY,c=e.opacity,h=n.key;return i.default.createElement(o.animated.line,u({key:h,x1:r,x2:a,y1:s,y2:l,strokeOpacity:c,style:d},f))}))}c.propTypes={lineKey:r.default.func.isRequired}},93353:function(e,t,n){"use strict";t.Z=function(e){var t=e.scale,n=e.width,s=e.numTicks,u=e.tickValues,c=(e.offset,e.className),d=e.animationTrajectory,f=e.top,h=e.left,p=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,a);return r.default.createElement(i.default,{scale:t,width:n,numTicks:s,tickValues:u,className:c,top:f,left:h},function(e){var n=e.lines;return r.default.createElement(o.default,l({scale:t,lines:n,animationTrajectory:d,animateXOrY:"y",lineKey:function(e){var t,n;return"row-"+(null!=(t=null==e?void 0:null==(n=e.from)?void 0:n.y)?t:"")+"-"+e.index}},p))})};var r=s(n(2784)),i=s(n(34264)),o=s(n(55727)),a=["scale","width","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),g=(0,o.useRef)(null),y=(0,o.useRef)(0),b=(0,o.useState)({width:0,height:0,top:0,left:0}),x=b[0],w=b[1],E=(0,o.useMemo)(function(){var e=Array.isArray(f)?f:[f];return(0,i.default)(function(t){w(function(n){return Object.keys(n).filter(function(e){return n[e]!==t[e]}).every(function(t){return e.includes(t)})?n:t})},l,{leading:m})},[l,m,f]);return(0,o.useEffect)(function(){var e=new a.ResizeObserver(function(e){void 0===e&&(e=[]),e.forEach(function(e){var t=e.contentRect,n=t.left,r=t.top,i=t.width,o=t.height;y.current=window.requestAnimationFrame(function(){E({width:i,height:o,top:r,left:n})})})});return g.current&&e.observe(g.current),function(){window.cancelAnimationFrame(y.current),e.disconnect(),null!=E&&E.cancel&&E.cancel()}},[E]),o.default.createElement("div",c({style:void 0===h?{width:"100%",height:"100%"}:h,ref:g,className:t},v),n(c({},x,{ref:g.current,resize:E})))}f.propTypes={className:r.default.string,debounceTime:r.default.number,enableDebounceLeadingCall:r.default.bool,ignoreDimensions:r.default.oneOfType([r.default.any,r.default.arrayOf(r.default.any)]),children:r.default.func.isRequired}},2663:function(e,t,n){"use strict";var r=n(8597),i=n(12430),o=n(70590),a=n(50630),s=n(34278),l=n(64183),u=n(61662),c=n(43634),d=n(73335),f=n(54229),h=n(30558),p=n(71646),m=n(26587);t.Z=function(e){if(void 0!==e&&"type"in e)switch(e.type){case"linear":break;case"log":return(0,i.Z)(e);case"pow":return(0,o.Z)(e);case"sqrt":return(0,a.Z)(e);case"symlog":return(0,s.Z)(e);case"time":return(0,l.Z)(e);case"utc":return(0,u.Z)(e);case"quantile":return(0,c.Z)(e);case"quantize":return(0,d.Z)(e);case"threshold":return(0,f.Z)(e);case"ordinal":return(0,h.Z)(e);case"point":return(0,p.Z)(e);case"band":return(0,m.Z)(e)}return(0,r.Z)(e)}},63243:function(e,t,n){"use strict";n.r(t),n.d(t,{coerceNumber:function(){return S.Z},createScale:function(){return x.Z},getTicks:function(){return O.Z},inferScaleType:function(){return k},scaleBand:function(){return r.Z},scaleCanBeZeroed:function(){return C.Z},scaleLinear:function(){return o.Z},scaleLog:function(){return f.Z},scaleOrdinal:function(){return p.Z},scalePoint:function(){return i.Z},scalePower:function(){return h.Z},scaleQuantile:function(){return v.Z},scaleQuantize:function(){return m.Z},scaleRadial:function(){return u},scaleSqrt:function(){return b.Z},scaleSymlog:function(){return g.Z},scaleThreshold:function(){return y.Z},scaleTime:function(){return c.Z},scaleUtc:function(){return d.Z},toString:function(){return _.Z},updateScale:function(){return E}});var r=n(26587),i=n(71646),o=n(8597),a=n(19637),s=n(25176),l=(0,s.Z)("domain","range","clamp","nice","round","unknown");function u(e){return l((0,a.Z)(),e)}var c=n(64183),d=n(61662),f=n(12430),h=n(70590),p=n(30558),m=n(73335),v=n(43634),g=n(34278),y=n(54229),b=n(50630),x=n(2663),w=s.Z.apply(void 0,s.a),E=function(e,t){return w(e.copy(),t)},j=n(40668);function k(e){return"paddingInner"in e?"band":"padding"in e?"point":"quantiles"in e?"quantile":"base"in e?"log":"exponent"in e?.5===e.exponent()?"sqrt":"pow":"constant"in e?"symlog":"clamp"in e?e.ticks()[0]instanceof Date?(0,j.Z)(e)?"utc":"time":"linear":"nice"in e?"quantize":"invertExtent"in e?"threshold":"ordinal"}var S=n(28142),O=n(71220),_=n(51519),C=n(34636)},25176:function(e,t,n){"use strict";n.d(t,{a:function(){return O},Z:function(){return C}});var r=n(88751),i=n(87286),o=n(43780),a=n(77636),s=n(78978),l={lab:r.Z,hcl:i.Z,"hcl-long":i.b,hsl:o.Z,"hsl-long":o.q,cubehelix:a.Z,"cubehelix-long":a.B,rgb:s.ZP},u=n(68603),c=n(54076),d=n(18450),f=n(50690),h=n(52546),p=n(76231),m=n(97344),v=n(12370),g=n(28239),y=n(52004),b=n(94758),x=n(97631),w=n(2908),E=n(40668),j={day:u.Z,hour:c.Z,minute:d.Z,month:f.Z,second:h.Z,week:p.OM,year:m.Z},k={day:v.Z,hour:g.Z,minute:y.Z,month:b.Z,second:h.Z,week:x.Ox,year:w.Z},S=n(74672),O=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],_={domain:function(e,t){t.domain&&e.domain(t.domain)},nice:function(e,t){if("nice"in t&&void 0!==t.nice&&"nice"in e){var n=t.nice;if("boolean"==typeof n)n&&e.nice();else if("number"==typeof n)e.nice(n);else{var r=(0,E.Z)(e);if("string"==typeof n)e.nice(r?k[n]:j[n]);else{var i=n.interval,o=n.step,a=(r?k[i]:j[i]).every(o);null!=a&&e.nice(a)}}}},zero:function(e,t){if("zero"in t&&!0===t.zero){var n=e.domain(),r=n[0],i=n[1],o=i=0||(i[n]=e[n]);return i}(e,s),y=(0,a.Nb)({innerRadius:i,outerRadius:u,cornerRadius:c,startAngle:d,endAngle:f,padAngle:h,padRadius:p});return m?r.createElement(r.Fragment,null,m({path:y})):n||null!=d&&null!=f&&null!=i&&null!=u?r.createElement("path",l({ref:v,className:o()("visx-arc",t),d:y(n)||""},g)):(console.warn("[@visx/shape/Arc]: expected data because one of startAngle, endAngle, innerRadius, outerRadius is undefined. Bailing."),null)}var c=n(59309),d=["className","top","left","data","centroid","innerRadius","outerRadius","cornerRadius","startAngle","endAngle","padAngle","padRadius","pieSort","pieSortValues","pieValue","children","fill"];function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),O=(0,a.Nb)({innerRadius:void 0===u?0:u,outerRadius:h,cornerRadius:p,padRadius:y}),_=(0,a.ve)({startAngle:m,endAngle:v,padAngle:g,value:w,sort:b,sortValues:x}),C=_(void 0===s?[]:s);return E?r.createElement(r.Fragment,null,E({arcs:C,path:O,pie:_})):r.createElement(c.Z,{className:"visx-pie-arcs-group",top:n,left:i},C.map(function(e,n){return r.createElement("g",{key:"pie-arc-"+n},r.createElement("path",f({className:o()("visx-pie-arc",t),d:O(e)||"",fill:null==k||"string"==typeof k?k:k(e)},S)),null==l?void 0:l(O.centroid(e),e))}))}var p=n(63739),m=n(27079),v=["className","angle","radius","defined","curve","data","innerRef","children","fill"];function g(){return(g=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,v),m=(0,a.aJ)({angle:n,radius:i,defined:s,curve:l});return f?r.createElement(r.Fragment,null,f({path:m})):r.createElement("path",g({ref:d,className:o()("visx-line-radial",t),d:m(c)||"",fill:void 0===h?"transparent":h},p))}var b=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function x(){return(x=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,b),y=(0,a.SO)({x:n,x0:i,x1:s,y:l,y0:u,y1:c,defined:void 0===h?function(){return!0}:h,curve:m});return t?r.createElement(r.Fragment,null,t({path:y})):r.createElement("path",x({ref:v,className:o()("visx-area",p),d:y(f)||""},g))}var E=n(55746),j=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function k(){return(k=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,j),S=(0,a.kn)({keys:s,value:g,order:y,offset:b}),O=(0,a.SO)({x:f,x0:h,x1:p,y0:m,y1:v,curve:u,defined:d}),_=S(l);return w?r.createElement(r.Fragment,null,w({stacks:_,path:O,stack:S})):r.createElement(c.Z,{top:n,left:i},_.map(function(e,n){return r.createElement("path",k({className:o()("visx-stack",t),key:"stack-"+n+"-"+(e.key||""),d:O(e)||"",fill:null==x?void 0:x(e.key,n)},E))}))}var O=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function _(){return(_=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,O);return r.createElement(S,_({className:t,top:n,left:i,keys:a,data:s,curve:l,defined:u,x:c,x0:d,x1:f,y0:h,y1:p,value:m,order:v,offset:g,color:y},x),b||function(e){var n=e.stacks,i=e.path;return n.map(function(e,n){return r.createElement("path",_({className:o()("visx-area-stack",t),key:"area-stack-"+n+"-"+(e.key||""),d:i(e)||"",fill:null==y?void 0:y(e.key,n)},x))})})}var M=n(14582),A=n(10897);function T(e){if("bandwidth"in e)return e.bandwidth();var t=e.range(),n=e.domain();return Math.abs(t[t.length-1]-t[0])/n.length}var P=["data","className","top","left","x0","x0Scale","x1Scale","yScale","color","keys","height","children"];function N(){return(N=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,P),g=T(u),y=t.map(function(e,t){return{index:t,x0:l(s(e)),bars:h.map(function(t,n){var r=e[t];return{index:n,key:t,value:r,width:g,x:u(t)||0,y:d(r)||0,color:f(t,n),height:p-(d(r)||0)}})}});return m?r.createElement(r.Fragment,null,m(y)):r.createElement(c.Z,{className:o()("visx-bar-group",n),top:i,left:a},y.map(function(e){return r.createElement(c.Z,{key:"bar-group-"+e.index+"-"+e.x0,left:e.x0},e.bars.map(function(t){return r.createElement(M.Z,N({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},v))}))}))}var D=["data","className","top","left","x","y0","y0Scale","y1Scale","xScale","color","keys","width","children"];function Z(){return(Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,D),y=T(f),b=t.map(function(e,t){return{index:t,y0:d(u(e))||0,bars:m.map(function(t,n){var r=e[t];return{index:n,key:t,value:r,height:y,x:l(r)||0,y:f(t)||0,color:p(t,n),width:h(r)||0}})}});return v?r.createElement(r.Fragment,null,v(b)):r.createElement(c.Z,{className:o()("visx-bar-group-horizontal",n),top:i,left:a},b.map(function(e){return r.createElement(c.Z,{key:"bar-group-"+e.index+"-"+e.y0,top:e.y0},e.bars.map(function(t){return r.createElement(M.Z,Z({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},g))}))}))}var F=n(98926);function z(e){return"number"==typeof(null==e?void 0:e.x)?null==e?void 0:e.x:0}function V(e){return"number"==typeof(null==e?void 0:e.y)?null==e?void 0:e.y:0}function I(e){return null==e?void 0:e.source}function B(e){return null==e?void 0:e.target}function H(e){return null==e?void 0:e[0]}function U(e){return null==e?void 0:e[1]}var W=n(26078),q=n(44081),$=n(30382),Y=["data","className","top","left","x","y0","y1","xScale","yScale","color","keys","value","order","offset","children"];function G(){return(G=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Y),E=(0,F.Z)();v&&E.keys(v),g&&(0,W.Z)(E.value,g),y&&E.order((0,q.ZP)(y)),b&&E.offset((0,$.ZP)(b));var j=E(t),k=T(h),S=j.map(function(e,t){var n=e.key;return{index:t,key:n,bars:e.map(function(t,r){var i=(p(u(t))||0)-(p(f(t))||0),o=p(f(t)),a="bandwidth"in h?h(s(t.data)):Math.max((h(s(t.data))||0)-k/2);return{bar:t,key:n,index:r,height:i,width:k,x:a||0,y:o||0,color:m(e.key,r)}})}});return x?r.createElement(r.Fragment,null,x(S)):r.createElement(c.Z,{className:o()("visx-bar-stack",n),top:i,left:a},S.map(function(e){return e.bars.map(function(t){return r.createElement(M.Z,G({key:"bar-stack-"+e.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},w))})}))}var X=["data","className","top","left","y","x0","x1","xScale","yScale","color","keys","value","order","offset","children"];function Q(){return(Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,X),E=(0,F.Z)();v&&E.keys(v),g&&(0,W.Z)(E.value,g),y&&E.order((0,q.ZP)(y)),b&&E.offset((0,$.ZP)(b));var j=E(t),k=T(p),S=j.map(function(e,t){var n=e.key;return{index:t,key:n,bars:e.map(function(t,r){var i=(h(f(t))||0)-(h(u(t))||0),o=h(u(t)),a="bandwidth"in p?p(s(t.data)):Math.max((p(s(t.data))||0)-i/2);return{bar:t,key:n,index:r,height:k,width:i,x:o||0,y:a||0,color:m(e.key,r)}})}});return x?r.createElement(r.Fragment,null,x(S)):r.createElement(c.Z,{className:o()("visx-bar-stack-horizontal",n),top:i,left:a},S.map(function(e){return e.bars.map(function(t){return r.createElement(M.Z,Q({key:"bar-stack-"+e.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},w))})}))}var ee=function(e){return Math.PI/180*e},et=n(72215),en=["className","children","data","innerRef","path","x","y","source","target"];function er(){return(er=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,en),h=s||ei({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?V:l,y:void 0===u?z:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",er({ref:a,className:o()("visx-link visx-link-horizontal-diagonal",t),d:h(i)||""},f))}var ea=["className","children","data","innerRef","path","x","y","source","target"];function es(){return(es=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ea),h=s||el({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?z:l,y:void 0===u?V:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",es({ref:a,className:o()("visx-link visx-link-vertical-diagonal",t),d:h(i)||""},f))}var ec=["className","children","data","innerRef","path","angle","radius","source","target"];function ed(){return(ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ec),h=s||ef({source:void 0===c?I:c,target:void 0===d?B:d,angle:void 0===l?z:l,radius:void 0===u?V:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",ed({ref:a,className:o()("visx-link visx-link-radial-diagonal",t),d:h(i)||""},f))}var ep=n(91672),em=["className","children","data","innerRef","path","percent","x","y","source","target"];function ev(){return(ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,em),p=s||eg({source:void 0===d?I:d,target:void 0===f?B:f,x:void 0===u?V:u,y:void 0===c?z:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",ev({ref:a,className:o()("visx-link visx-link-horizontal-curve",t),d:p(i)||""},h))}var eb=["className","children","data","innerRef","path","percent","x","y","source","target"];function ex(){return(ex=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eb),p=s||ew({source:void 0===d?I:d,target:void 0===f?B:f,x:void 0===u?z:u,y:void 0===c?V:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",ex({ref:a,className:o()("visx-link visx-link-vertical-curve",t),d:p(i)||""},h))}var ej=["className","children","data","innerRef","path","percent","x","y","source","target"];function ek(){return(ek=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ej),p=s||eS({source:void 0===d?I:d,target:void 0===f?B:f,x:void 0===u?z:u,y:void 0===c?V:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",ek({ref:a,className:o()("visx-link visx-link-radial-curve",t),d:p(i)||""},h))}var e_=["className","children","innerRef","data","path","x","y","source","target"];function eC(){return(eC=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,e_),h=s||eM({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?V:l,y:void 0===u?z:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",eC({ref:i,className:o()("visx-link visx-link-horizontal-line",t),d:h(a)||""},f))}var eT=["className","innerRef","data","path","x","y","source","target","children"];function eP(){return(eP=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eT),h=a||eN({source:void 0===u?I:u,target:void 0===c?B:c,x:void 0===s?z:s,y:void 0===l?V:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eP({ref:n,className:o()("visx-link visx-link-vertical-line",t),d:h(i)||""},f))}var eD=["className","innerRef","data","path","x","y","source","target","children"];function eZ(){return(eZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eD),h=a||eL({source:void 0===u?I:u,target:void 0===c?B:c,x:void 0===s?z:s,y:void 0===l?V:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eZ({ref:n,className:o()("visx-link visx-link-radial-line",t),d:h(i)||""},f))}var ez=["className","innerRef","data","path","percent","x","y","source","target","children"];function eV(){return(eV=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ez),p=a||eI({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?V:l,y:void 0===u?z:u,percent:void 0===s?.5:s});return f?r.createElement(r.Fragment,null,f({path:p})):r.createElement("path",eV({ref:n,className:o()("visx-link visx-link-horizontal-step",t),d:p(i)||""},h))}var eH=["className","innerRef","data","path","percent","x","y","source","target","children"];function eU(){return(eU=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eH),p=a||eW({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?z:l,y:void 0===u?V:u,percent:void 0===s?.5:s});return f?r.createElement(r.Fragment,null,f({path:p})):r.createElement("path",eU({ref:n,className:o()("visx-link visx-link-vertical-step",t),d:p(i)||""},h))}var e$=["className","innerRef","data","path","x","y","source","target","children"];function eY(){return(eY=Object.assign?Object.assign.bind():function(e){for(var t=1;tMath.PI?f<=d:f>d)?1:0)+","+l*h+","+l*p+"\n L"+c*h+","+c*p+"\n "}}function eK(e){var t=e.className,n=e.innerRef,i=e.data,a=e.path,s=e.x,l=e.y,u=e.source,c=e.target,d=e.children,f=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,e$),h=a||eG({source:void 0===u?I:u,target:void 0===c?B:c,x:void 0===s?z:s,y:void 0===l?V:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eY({ref:n,className:o()("visx-link visx-link-radial-step",t),d:h(i)||""},f))}var eX=["sides","size","center","rotate","className","children","innerRef","points"];function eQ(){return(eQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eX),f=c||e1({sides:void 0===t?4:t,size:void 0===n?25:n,center:void 0===i?eJ:i,rotate:void 0===a?0:a}).map(function(e){return[e.x,e.y]});return l?r.createElement(r.Fragment,null,l({points:f})):r.createElement("polygon",eQ({ref:u,className:o()("visx-polygon",s),points:f.join(" ")},d))}var e4=["className","innerRef"];function e3(){return(e3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,e4);return r.createElement("circle",e3({ref:n,className:o()("visx-circle",t)},i))}var e6=n(13980),e8=n.n(e6),e7="http://www.w3.org/2000/svg",e9=function(){return!0};function te(){return(te=Object.assign?Object.assign.bind():function(e){for(var t=1;tf[i]?d.map(function(e){return void 0===e?e9:function(t){return t>=e}}):d.map(function(e){return void 0===e?e9:function(t){return t<=e}}),p=0,m=0;m<=l;m+=a){for(var v=s.getPointAtLength(m),g=v[i];p=w[k+1];)k+=1;c[k].push(O)}}return c}catch(e){return[]}}({path:p,segmentation:s,pointsInSegments:h,sampleRate:l})},[p,s,h,l]);return r.createElement("g",null,v.map(function(e,i){return t?r.createElement(r.Fragment,{key:i},t({index:i,segment:e,styles:f[i]||f[i%f.length]})):r.createElement(m.Z,te({key:i,className:n,data:e,x:tt,y:tn},f[i]||f[i%f.length]))}))}tr.propTypes={segments:e8().arrayOf(e8().array).isRequired,styles:e8().array.isRequired,children:e8().func,className:e8().string}},55746:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(2784),i=n(72779),o=n.n(i),a=n(26078),s=n(52511),l=["x","x0","x1","y","y1","y0","yScale","data","defined","className","curve","innerRef","children"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,l),E=(0,s.SO)({x:t,x0:n,x1:i,defined:void 0===v?function(){return!0}:v,curve:y});return(null==f?E.y0(h.range()[0]):(0,a.Z)(E.y0,f),c&&!d&&(0,a.Z)(E.y1,c),d&&!c&&(0,a.Z)(E.y1,d),x)?r.createElement(r.Fragment,null,x({path:E})):r.createElement("path",u({ref:b,className:o()("visx-area-closed",g),d:E(m)||""},w))}},14582:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["className","innerRef"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a);return r.createElement("rect",s({ref:n,className:o()("visx-bar",t)},i))}},10897:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["children","className","innerRef","x","y","width","height","radius","all","top","bottom","left","right","topLeft","topRight","bottomLeft","bottomRight"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a),z=(n=(t={x:k,y:S,width:O,height:_,radius:C,all:void 0!==M&&M,top:void 0!==A&&A,bottom:void 0!==T&&T,left:void 0!==P&&P,right:void 0!==N&&N,topLeft:void 0!==R&&R,topRight:void 0!==D&&D,bottomLeft:void 0!==Z&&Z,bottomRight:void 0!==L&&L}).all,i=t.bottom,l=t.bottomLeft,u=t.bottomRight,c=t.height,d=t.left,f=t.radius,h=t.right,p=t.top,m=t.topLeft,v=t.topRight,g=t.width,y=t.x,b=t.y,v=n||p||h||v,u=n||i||h||u,l=n||i||d||l,m=n||p||d||m,x=2*(f=Math.max(1,Math.min(f,Math.min(g,c)/2))),("M"+(y+f)+","+b+" h"+(g-x)+"\n "+(v?"a"+f+","+f+" 0 0 1 "+f+","+f:"h"+f+"v"+f)+"\n v"+(c-x)+"\n "+(u?"a"+f+","+f+" 0 0 1 "+-f+","+f:"v"+f+"h"+-f)+"\n h"+(x-g)+"\n "+(l?"a"+f+","+f+" 0 0 1 "+-f+","+-f:"h"+-f+"v"+-f)+"\n v"+(x-c)+"\n "+(m?"a"+f+","+f+" 0 0 1 "+f+","+-f:"v"+-f+"h"+f)+"\nz").split("\n").join(""));return w?r.createElement(r.Fragment,null,w({path:z})):r.createElement("path",s({ref:j,className:o()("visx-bar-rounded",E),d:z},F))}},63739:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["from","to","fill","className","innerRef"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a),h=n.x===l.x||n.y===l.y;return r.createElement("line",s({ref:d,className:o()("visx-line",c),x1:n.x,y1:n.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))}},27079:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(2784),i=n(72779),o=n.n(i),a=n(52511),s=["children","data","x","y","fill","className","curve","innerRef","defined"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),g=(0,a.jv)({x:u,y:c,defined:void 0===m?function(){return!0}:m,curve:h});return t?r.createElement(r.Fragment,null,t({path:g})):r.createElement("path",l({ref:p,className:o()("visx-linepath",f),d:g(i)||"",fill:void 0===d?"transparent":d,strokeLinecap:"round"},v))}},52511:function(e,t,n){"use strict";n.d(t,{Nb:function(){return f},SO:function(){return h},aJ:function(){return v},jv:function(){return p},kn:function(){return g},ve:function(){return m}});var r=n(38764),i=n(79493),o=n(79767),a=n(69619),s=n(8329),l=n(98926),u=n(26078),c=n(44081),d=n(30382);function f(e){var t=void 0===e?{}:e,n=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.startAngle,s=t.endAngle,l=t.padAngle,c=t.padRadius,d=(0,r.Z)();return null!=n&&(0,u.Z)(d.innerRadius,n),null!=i&&(0,u.Z)(d.outerRadius,i),null!=o&&(0,u.Z)(d.cornerRadius,o),null!=a&&(0,u.Z)(d.startAngle,a),null!=s&&(0,u.Z)(d.endAngle,s),null!=l&&(0,u.Z)(d.padAngle,l),null!=c&&(0,u.Z)(d.padRadius,c),d}function h(e){var t=void 0===e?{}:e,n=t.x,r=t.x0,o=t.x1,a=t.y,s=t.y0,l=t.y1,c=t.defined,d=t.curve,f=(0,i.Z)();return n&&(0,u.Z)(f.x,n),r&&(0,u.Z)(f.x0,r),o&&(0,u.Z)(f.x1,o),a&&(0,u.Z)(f.y,a),s&&(0,u.Z)(f.y0,s),l&&(0,u.Z)(f.y1,l),c&&f.defined(c),d&&f.curve(d),f}function p(e){var t=void 0===e?{}:e,n=t.x,r=t.y,i=t.defined,a=t.curve,s=(0,o.Z)();return n&&(0,u.Z)(s.x,n),r&&(0,u.Z)(s.y,r),i&&s.defined(i),a&&s.curve(a),s}function m(e){var t=void 0===e?{}:e,n=t.startAngle,r=t.endAngle,i=t.padAngle,o=t.value,s=t.sort,l=t.sortValues,c=(0,a.Z)();return null===s?c.sort(s):null!=s&&c.sort(s),null===l?c.sortValues(l):null!=l&&c.sortValues(l),null!=o&&c.value(o),null!=i&&(0,u.Z)(c.padAngle,i),null!=n&&(0,u.Z)(c.startAngle,n),null!=r&&(0,u.Z)(c.endAngle,r),c}function v(e){var t=void 0===e?{}:e,n=t.angle,r=t.radius,i=t.defined,o=t.curve,a=(0,s.Z)();return n&&(0,u.Z)(a.angle,n),r&&(0,u.Z)(a.radius,r),i&&a.defined(i),o&&a.curve(o),a}function g(e){var t=e.keys,n=e.value,r=e.order,i=e.offset,o=(0,l.Z)();return t&&o.keys(t),n&&(0,u.Z)(o.value,n),r&&o.order((0,c.ZP)(r)),i&&o.offset((0,d.ZP)(i)),o}},26078:function(e,t,n){"use strict";function r(e,t){e(t)}n.d(t,{Z:function(){return r}})},30382:function(e,t,n){"use strict";n.d(t,{ZP:function(){return c},ed:function(){return u},nW:function(){return l}});var r=n(22254),i=n(76751),o=n(90541),a=n(36538),s=n(34928),l={expand:r.Z,diverging:i.Z,none:o.Z,silhouette:a.Z,wiggle:s.Z},u=Object.keys(l);function c(e){return e&&l[e]||l.none}},44081:function(e,t,n){"use strict";n.d(t,{ZP:function(){return c},s2:function(){return u},un:function(){return l}});var r=n(19721),i=n(82564),o=n(12197),a=n(81182),s=n(40277),l={ascending:r.Z,descending:i.Z,insideout:o.Z,none:a.Z,reverse:s.Z},u=Object.keys(l);function c(e){return e&&l[e]||l.none}},12935:function(e,t,n){"use strict";t.Z=function(e){var t=e.children,n=e.x,s=e.x0,u=e.x1,c=e.y,d=e.y0,f=e.y1,h=e.data,p=void 0===h?[]:h,m=e.defined,v=e.className,g=e.curve,y=e.innerRef,b=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,a),x=(0,o.area)({x:n,x0:s,x1:u,y:c,y0:d,y1:f,defined:void 0===m?function(){return!0}:m,curve:g});return t?r.default.createElement(r.default.Fragment,null,t({path:x})):r.default.createElement("path",l({ref:y,className:(0,i.default)("visx-area",v),d:x(p)||""},b))};var r=s(n(2784)),i=s(n(72779)),o=n(15601),a=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o),h=n.x===l.x||n.y===l.y;return r.default.createElement("line",s({ref:d,className:(0,i.default)("visx-line",c),x1:n.x,y1:n.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))};var r=a(n(2784)),i=a(n(72779)),o=["from","to","fill","className","innerRef"];function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a),g=(0,o.line)({x:u,y:c,defined:void 0===m?function(){return!0}:m,curve:h});return t?r.default.createElement(r.default.Fragment,null,t({path:g})):r.default.createElement("path",l({ref:p,className:(0,i.default)("visx-linepath",f),d:g(s)||"",fill:void 0===d?"transparent":d,strokeLinecap:"round"},v))};var r=s(n(2784)),i=s(n(72779)),o=n(15601),a=["children","data","x","y","fill","className","curve","innerRef","defined"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o)),p=h.x,m=void 0===p?0:p,v=h.fontSize,g=(0,i.Z)(e),y=g.wordsByLines,b=g.startDy,x=g.transform;return r.createElement("svg",{ref:u,x:void 0===t?0:t,y:void 0===n?0:n,fontSize:v,style:s},y.length>0?r.createElement("text",a({ref:c,transform:x},h,{textAnchor:void 0===l?"start":l}),y.map(function(e,t){return r.createElement("tspan",{key:t,x:m,dy:0===t?b:f},e.words.join(" "))})):null)}},89907:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(2784),i=n(32718),o=n.n(i),a=n(75715),s=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function l(e){return"number"==typeof e}function u(e){return"number"==typeof e&&Number.isFinite(e)||"string"==typeof e}function c(e){var t=e.verticalAnchor,n=void 0===t?"end":t,i=e.scaleToFit,c=void 0!==i&&i,d=e.angle,f=e.width,h=e.lineHeight,p=void 0===h?"1em":h,m=e.capHeight,v=void 0===m?"0.71em":m,g=e.children,y=e.style,b=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,s),x=b.x,w=void 0===x?0:x,E=b.y,j=void 0===E?0:E,k=!u(w)||!u(j),S=(0,r.useMemo)(function(){return{wordsWithWidth:(null==g?[]:g.toString().split(/(?:(?!\u00A0+)\s+)/)).map(function(e){return{word:e,wordWidth:(0,a.Z)(e,y)||0}}),spaceWidth:(0,a.Z)("\xa0",y)||0}},[g,y]),O=S.wordsWithWidth,_=S.spaceWidth,C=(0,r.useMemo)(function(){return k?[]:f||c?O.reduce(function(e,t){var n=t.word,r=t.wordWidth,i=e[e.length-1];return i&&(null==f||c||(i.width||0)+r+_0){var t=C[0].width||1,n="shrink-only"===c?Math.min(f/t,1):f/t,r=w-n*w,i=j-n*j;e.push("matrix("+n+", 0, 0, "+n+", "+r+", "+i+")")}return d&&e.push("rotate("+d+", "+w+", "+j+")"),e.length>0?e.join(" "):""},[k,w,j,f,c,C,d]);return{wordsByLines:C,startDy:M,transform:A}}},44425:function(e,t,n){"use strict";n.r(t),n.d(t,{Text:function(){return r.Z},getStringWidth:function(){return i.Z},useText:function(){return o.Z}});var r=n(64170),i=n(75715),o=n(89907)},75715:function(e,t,n){"use strict";var r=n(30733),i=n.n(r),o="__react_svg_text_measurement_id";t.Z=i()(function(e,t){try{var n=document.getElementById(o);if(!n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("aria-hidden","true"),r.style.width="0",r.style.height="0",r.style.position="absolute",r.style.top="-100%",r.style.left="-100%",(n=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("id",o),r.appendChild(n),document.body.appendChild(r)}return Object.assign(n.style,t),n.textContent=e,n.getComputedTextLength()}catch(e){return null}},function(e,t){return e+"_"+JSON.stringify(t)})},49732:function(e,t,n){"use strict";n.d(t,{R:function(){return s}});var r=new WeakMap,i=new WeakMap,o={},a=0,s=function(e,t,n){void 0===t&&(t="undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body),void 0===n&&(n="data-aria-hidden");var s=Array.isArray(e)?e:[e];o[n]||(o[n]=new WeakMap);var l=o[n],u=[],c=new Set,d=function(e){!e||c.has(e)||(c.add(e),d(e.parentNode))};s.forEach(d);var f=function(e){!e||s.indexOf(e)>=0||Array.prototype.forEach.call(e.children,function(e){if(c.has(e))f(e);else{var t=e.getAttribute("aria-hidden"),o=null!==t&&"false"!==t,a=(r.get(e)||0)+1,s=(l.get(e)||0)+1;r.set(e,a),l.set(e,s),u.push(e),1===a&&o&&i.set(e,!0),1===s&&e.setAttribute(n,"true"),o||e.setAttribute("aria-hidden","true")}})};return f(t),c.clear(),a++,function(){u.forEach(function(e){var t=r.get(e)-1,o=l.get(e)-1;r.set(e,t),l.set(e,o),t||(i.has(e)||e.removeAttribute("aria-hidden"),i.delete(e)),o||e.removeAttribute(n)}),--a||(r=new WeakMap,r=new WeakMap,i=new WeakMap,o={})}}},30387:function(e,t){"use strict";t.Z=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?o===t.replace(/\/.*$/,""):i===t})}return!0}},89644:function(e,t,n){e.exports=n(25644)},70353:function(e,t,n){"use strict";var r=n(93044),i=n(86955),o=n(92233),a=n(68030),s=n(97948),l=n(51875),u=n(60842),c=n(98560),d=n(21218),f=n(68047),h=n(10738);e.exports=function(e){return new Promise(function(t,n){var p,m=e.data,v=e.headers,g=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(m)&&r.isStandardBrowserEnv()&&delete v["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var x=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(x+":"+w)}var E=s(e.baseURL,e.url);function j(){if(b){var r="getAllResponseHeaders"in b?l(b.getAllResponseHeaders()):null;i(function(e){t(e),y()},function(e){n(e),y()},{data:g&&"text"!==g&&"json"!==g?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b}),b=null}}if(b.open(e.method.toUpperCase(),a(E,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=j:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(j)},b.onabort=function(){b&&(n(new d("Request aborted",d.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new d("Network Error",d.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new d(t,r.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,b)),b=null},r.isStandardBrowserEnv()){var k=(e.withCredentials||u(E))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;k&&(v[e.xsrfHeaderName]=k)}"setRequestHeader"in b&&r.forEach(v,function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete v[t]:b.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),g&&"json"!==g&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){b&&(n(!e||e&&e.type?new f:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),m||(m=null);var S=h(E);if(S&&-1===["http","https","file"].indexOf(S)){n(new d("Unsupported protocol "+S+":",d.ERR_BAD_REQUEST,e));return}b.send(m)})}},25644:function(e,t,n){"use strict";var r=n(93044),i=n(73644),o=n(62215),a=n(92937),s=function e(t){var n=new o(t),s=i(o.prototype.request,n);return r.extend(s,o.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(10663));s.Axios=o,s.CanceledError=n(68047),s.CancelToken=n(34089),s.isCancel=n(98041),s.VERSION=n(29241).version,s.toFormData=n(49027),s.AxiosError=n(21218),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(70783),s.isAxiosError=n(65587),e.exports=s,e.exports.default=s},34089:function(e,t,n){"use strict";var r=n(68047);function i(e){if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});var t,n=this;this.promise.then(function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],function(e){f.headers[e]={}}),o.forEach(["post","put","patch"],function(e){f.headers[e]=o.merge(c)}),e.exports=f},98560:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},29241:function(e){e.exports={version:"0.27.2"}},73644:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=Array(arguments.length),r=0;r=0)&&("set-cookie"===t?a[t]=(a[t]?a[t]:[]).concat([n]):a[t]=a[t]?a[t]+", "+n:n)}),a}},10738:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},70783:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},49027:function(e,t,n){"use strict";var r=n(48834).lW,i=n(93044);e.exports=function(e,t){t=t||new FormData;var n=[];function o(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):r.from(e):e}return!function e(r,a){if(i.isPlainObject(r)||i.isArray(r)){if(-1!==n.indexOf(r))throw Error("Circular reference detected in "+a);n.push(r),i.forEach(r,function(n,r){if(!i.isUndefined(n)){var s,l=a?a+"."+r:r;if(n&&!a&&"object"==typeof n){if(i.endsWith(r,"{}"))n=JSON.stringify(n);else if(i.endsWith(r,"[]")&&(s=i.toArray(n))){s.forEach(function(e){i.isUndefined(e)||t.append(l,o(e))});return}}e(n,l)}}),n.pop()}else t.append(a,o(r))}(e),t}},17525:function(e,t,n){"use strict";var r=n(29241).version,i=n(21218),o={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var a={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new i(o(r," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var a=r[o],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new i("option "+a+" must be "+u,i.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new i("Unknown option "+a,i.ERR_BAD_OPTION)}},validators:o}},93044:function(e,t,n){"use strict";var r,i,o=n(73644),a=Object.prototype.toString,s=(r=Object.create(null),function(e){var t=a.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function l(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function u(e){return Array.isArray(e)}function c(e){return void 0===e}var d=l("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function h(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=l("Date"),m=l("File"),v=l("Blob"),g=l("FileList");function y(e){return"[object Function]"===a.call(e)}var b=l("URLSearchParams");function x(e,t){if(null!=e){if("object"!=typeof e&&(e=[e]),u(e))for(var n=0,r=e.length;n0;)a[o=r[i]]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:l,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return -1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:g}},82294:function(e){"use strict";function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var o=r(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,o,a,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){if(e===t)return[l,u];for(r=[],o=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(s=[o,a])}return s}e.exports=t,t.range=r},95766:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,o=l(e),a=o[0],s=o[1],u=new i((a+s)*3/4-s),c=0,d=s>0?a-4:a;for(n=0;n>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;a>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&o.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},6391:function(e,t,n){var r;!function(i){"use strict";var o,a=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,l=Math.floor,u="[BigNumber Error] ",c=u+"Number primitive has more than 15 significant digits: ",d=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function f(e){var t=0|e;return e>0||e===t?t:t-1}function h(e){for(var t,n,r=1,i=e.length,o=e[0]+"";ru^n?1:-1;for(a=0,s=(l=i.length)<(u=o.length)?l:u;ao[a]^n?1:-1;return l==u?0:l>u^n?1:-1}function m(e,t,n,r){if(en||e!==l(e))throw Error(u+(r||"Argument")+("number"==typeof e?en?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function v(e){var t=e.c.length-1;return f(e.e/14)==t&&e.c[t]%2!=0}function g(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function y(e,t,n){var r,i;if(t<0){for(i=n+".";++t;i+=n);e=i+e}else if(r=e.length,++t>r){for(i=n,t-=r;--t;i+=n);e+=i}else tT?h.c=h.e=null:e.e=10;s/=10,o++);o>T?h.c=h.e=null:(h.e=o,h.c=[e]);return}f=String(e)}else{if(!a.test(f=String(e)))return j(h,f,u);h.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(o=f.indexOf("."))>-1&&(f=f.replace(".","")),(s=f.search(/e/i))>0?(o<0&&(o=s),o+=+f.slice(s+1),f=f.substring(0,s)):o<0&&(o=f.length)}else{if(m(t,2,Z.length,"Base"),10==t&&L)return B(h=new F(e),O+h.e+1,_);if(f=String(e),u="number"==typeof e){if(0*e!=0)return j(h,f,u,t);if(h.s=1/e<0?(f=f.slice(1),-1):1,F.DEBUG&&f.replace(/^0\.0*|\./,"").length>15)throw Error(c+e)}else h.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(n=Z.slice(0,t),o=s=0,d=f.length;sn.indexOf(r=f.charAt(s))){if("."==r){if(s>o){o=d;continue}}else if(!i&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){i=!0,s=-1,o=0;continue}return j(h,String(e),u,t)}u=!1,(o=(f=E(f,t,10,h.s)).indexOf("."))>-1?f=f.replace(".",""):o=f.length}for(s=0;48===f.charCodeAt(s);s++);for(d=f.length;48===f.charCodeAt(--d););if(f=f.slice(s,++d)){if(d-=s,u&&F.DEBUG&&d>15&&(e>9007199254740991||e!==l(e)))throw Error(c+h.s*e);if((o=o-s-1)>T)h.c=h.e=null;else if(o=M)?g(l,a):y(l,a,"0");else if(o=(e=B(new F(e),t,n)).e,s=(l=h(e.c)).length,1==r||2==r&&(t<=o||o<=C)){for(;ss){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=o-s)>0)for(o+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function V(e,t){for(var n,r=1,i=new F(e[0]);r=10;i/=10,r++);return(n=r+14*n-1)>T?e.c=e.e=null:n=10;u/=10,i++);if((o=t-i)<0)o+=14,a=t,h=(c=p[f=0])/d[i-a-1]%10|0;else if((f=s((o+1)/14))>=p.length){if(r){for(;p.length<=f;p.push(0));c=h=0,i=1,o%=14,a=o-14+1}else break e}else{for(i=1,c=u=p[f];u>=10;u/=10,i++);o%=14,h=(a=o-14+i)<0?0:c/d[i-a-1]%10|0}if(r=r||t<0||null!=p[f+1]||(a<0?c:c%d[i-a-1]),r=n<4?(h||r)&&(0==n||n==(e.s<0?3:2)):h>5||5==h&&(4==n||r||6==n&&(o>0?a>0?c/d[i-a]:0:p[f-1])%10&1||n==(e.s<0?8:7)),t<1||!p[0])return p.length=0,r?(t-=e.e+1,p[0]=d[(14-t%14)%14],e.e=-t||0):p[0]=e.e=0,e;if(0==o?(p.length=f,u=1,f--):(p.length=f+1,u=d[14-o],p[f]=a>0?l(c/d[i-a]%d[a])*u:0),r)for(;;){if(0==f){for(o=1,a=p[0];a>=10;a/=10,o++);for(a=p[0]+=u,u=1;a>=10;a/=10,u++);o!=u&&(e.e++,1e14==p[0]&&(p[0]=1));break}if(p[f]+=u,1e14!=p[f])break;p[f--]=0,u=1}for(o=p.length;0===p[--o];p.pop());}e.e>T?e.c=e.e=null:e.e=M?g(t,n):y(t,n,"0"),e.s<0?"-"+t:t)}return F.clone=e,F.ROUND_UP=0,F.ROUND_DOWN=1,F.ROUND_CEIL=2,F.ROUND_FLOOR=3,F.ROUND_HALF_UP=4,F.ROUND_HALF_DOWN=5,F.ROUND_HALF_EVEN=6,F.ROUND_HALF_CEIL=7,F.ROUND_HALF_FLOOR=8,F.EUCLID=9,F.config=F.set=function(e){var t,n;if(null!=e){if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(m(n=e[t],0,1e9,t),O=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(m(n=e[t],0,8,t),_=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(m(n[0],-1e9,0,t),m(n[1],0,1e9,t),C=n[0],M=n[1]):(m(n,-1e9,1e9,t),C=-(M=n<0?-n:n))),e.hasOwnProperty(t="RANGE")){if((n=e[t])&&n.pop)m(n[0],-1e9,-1,t),m(n[1],1,1e9,t),A=n[0],T=n[1];else if(m(n,-1e9,1e9,t),n)A=-(T=n<0?-n:n);else throw Error(u+t+" cannot be zero: "+n)}if(e.hasOwnProperty(t="CRYPTO")){if(!!(n=e[t])===n){if(n){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))P=n;else throw P=!n,Error(u+"crypto unavailable")}else P=n}else throw Error(u+t+" not true or false: "+n)}if(e.hasOwnProperty(t="MODULO_MODE")&&(m(n=e[t],0,9,t),N=n),e.hasOwnProperty(t="POW_PRECISION")&&(m(n=e[t],0,1e9,t),R=n),e.hasOwnProperty(t="FORMAT")){if("object"==typeof(n=e[t]))D=n;else throw Error(u+t+" not an object: "+n)}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(u+t+" invalid: "+n);L="0123456789"==n.slice(0,10),Z=n}}else throw Error(u+"Object expected: "+e)}return{DECIMAL_PLACES:O,ROUNDING_MODE:_,EXPONENTIAL_AT:[C,M],RANGE:[A,T],CRYPTO:P,MODULO_MODE:N,POW_PRECISION:R,FORMAT:D,ALPHABET:Z}},F.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!F.DEBUG)return!0;var t,n,r=e.c,i=e.e,o=e.s;e:if("[object Array]"==({}).toString.call(r)){if((1===o||-1===o)&&i>=-1e9&&i<=1e9&&i===l(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break e}if((t=(i+1)%14)<1&&(t+=14),String(r[0]).length==t){for(t=0;t=1e14||n!==l(n))break e;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(u+"Invalid BigNumber: "+e)},F.maximum=F.max=function(){return V(arguments,k.lt)},F.minimum=F.min=function(){return V(arguments,k.gt)},F.random=(n=9007199254740992*Math.random()&2097151?function(){return l(9007199254740992*Math.random())}:function(){return(1073741824*Math.random()|0)*8388608+(8388608*Math.random()|0)},function(e){var t,r,i,o,a,c=0,f=[],h=new F(S);if(null==e?e=O:m(e,0,1e9),o=s(e/14),P){if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));c>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[c]=r[0],t[c+1]=r[1]):(f.push(a%1e14),c+=2);c=o/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(o*=7);c=9e15?crypto.randomBytes(7).copy(t,c):(f.push(a%1e14),c+=7);c=o/7}else throw P=!1,Error(u+"crypto unavailable")}if(!P)for(;c=10;a/=10,c++);c<14&&(i-=14-c)}return h.e=i,h.c=f,h}),F.sum=function(){for(var e=1,t=arguments,n=new F(t[0]);en-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}return function(n,r,i,o,a){var s,l,u,c,d,f,p,m,v=n.indexOf("."),g=O,b=_;for(v>=0&&(c=R,R=0,n=n.replace(".",""),f=(m=new F(r)).pow(n.length-v),R=c,m.c=t(y(h(f.c),f.e,"0"),10,i,e),m.e=m.c.length),u=c=(p=t(n,r,i,a?(s=Z,e):(s=e,Z))).length;0==p[--c];p.pop());if(!p[0])return s.charAt(0);if(v<0?--u:(f.c=p,f.e=u,f.s=o,p=(f=w(f,m,g,b,i)).c,d=f.r,u=f.e),v=p[l=u+g+1],c=i/2,d=d||l<0||null!=p[l+1],d=b<4?(null!=v||d)&&(0==b||b==(f.s<0?3:2)):v>c||v==c&&(4==b||d||6==b&&1&p[l-1]||b==(f.s<0?8:7)),l<1||!p[0])n=d?y(s.charAt(1),-g,s.charAt(0)):s.charAt(0);else{if(p.length=l,d)for(--i;++p[--l]>i;)p[l]=0,l||(++u,p=[1].concat(p));for(c=p.length;!p[--c];);for(v=0,n="";v<=c;n+=s.charAt(p[v++]));n=y(n,u,s.charAt(0))}return n}}(),w=function(){function e(e,t,n){var r,i,o,a,s=0,l=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();l--;)r=c*(o=e[l]%1e7)+(a=e[l]/1e7|0)*u,s=((i=u*o+r%1e7*1e7+s)/n|0)+(r/1e7|0)+c*a,e[l]=i%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;it[i]?1:-1;break}return o}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]1;e.splice(0,1));}return function(r,i,o,a,s){var u,c,d,h,p,m,v,g,y,b,x,w,E,j,k,S,O,_=r.s==i.s?1:-1,C=r.c,M=i.c;if(!C||!C[0]||!M||!M[0])return new F(r.s&&i.s&&(C?!M||C[0]!=M[0]:M)?C&&0==C[0]||!M?0*_:_/0:NaN);for(y=(g=new F(_)).c=[],_=o+(c=r.e-i.e)+1,s||(s=1e14,c=f(r.e/14)-f(i.e/14),_=_/14|0),d=0;M[d]==(C[d]||0);d++);if(M[d]>(C[d]||0)&&c--,_<0)y.push(1),h=!0;else{for(j=C.length,S=M.length,d=0,_+=2,(p=l(s/(M[0]+1)))>1&&(M=e(M,p,s),C=e(C,p,s),S=M.length,j=C.length),E=S,x=(b=C.slice(0,S)).length;x=s/2&&k++;do{if(p=0,(u=t(M,b,S,x))<0){if(w=b[0],S!=x&&(w=w*s+(b[1]||0)),(p=l(w/k))>1)for(p>=s&&(p=s-1),v=(m=e(M,p,s)).length,x=b.length;1==t(m,b,v,x);)p--,n(m,St(M,b,S,x);)p++,n(b,S=10;_/=10,d++);B(g,o+(g.e=d+14*c-1)+1,a,h)}else g.e=c,g.r=+h;return g}}(),r=/^(-?)0([xbo])(?=\w[\w.]*$)/i,i=/^([^.]+)\.$/,o=/^\.([^.]+)$/,b=/^-?(Infinity|NaN)$/,x=/^\s*\+(?=[\w.])|^\s+|\s+$/g,j=function(e,t,n,a){var s,l=n?t:t.replace(x,"");if(b.test(l))e.s=isNaN(l)?null:l<0?-1:1;else{if(!n&&(l=l.replace(r,function(e,t,n){return s="x"==(n=n.toLowerCase())?16:"b"==n?2:8,a&&a!=s?e:t}),a&&(s=a,l=l.replace(i,"$1").replace(o,"0.$1")),t!=l))return new F(l,s);if(F.DEBUG)throw Error(u+"Not a"+(a?" base "+a:"")+" number: "+t);e.s=null}e.c=e.e=null},k.absoluteValue=k.abs=function(){var e=new F(this);return e.s<0&&(e.s=1),e},k.comparedTo=function(e,t){return p(this,new F(e,t))},k.decimalPlaces=k.dp=function(e,t){var n,r,i;if(null!=e)return m(e,0,1e9),null==t?t=_:m(t,0,8),B(new F(this),e+this.e+1,t);if(!(n=this.c))return null;if(r=((i=n.length-1)-f(this.e/14))*14,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},k.dividedBy=k.div=function(e,t){return w(this,new F(e,t),O,_)},k.dividedToIntegerBy=k.idiv=function(e,t){return w(this,new F(e,t),0,1)},k.exponentiatedBy=k.pow=function(e,t){var n,r,i,o,a,c,d,f,h,p=this;if((e=new F(e)).c&&!e.isInteger())throw Error(u+"Exponent not an integer: "+H(e));if(null!=t&&(t=new F(t)),c=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return h=new F(Math.pow(+H(p),c?2-v(e):+H(e))),t?h.mod(t):h;if(d=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new F(NaN);(r=!d&&p.isInteger()&&t.isInteger())&&(p=p.mod(t))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||c&&p.c[1]>=24e7:p.c[0]<8e13||c&&p.c[0]<=9999975e7)))return o=p.s<0&&v(e)?-0:0,p.e>-1&&(o=1/o),new F(d?1/o:o);R&&(o=s(R/14+2))}for(c?(n=new F(.5),d&&(e.s=1),f=v(e)):f=(i=Math.abs(+H(e)))%2,h=new F(S);;){if(f){if(!(h=h.times(p)).c)break;o?h.c.length>o&&(h.c.length=o):r&&(h=h.mod(t))}if(i){if(0===(i=l(i/2)))break;f=i%2}else if(B(e=e.times(n),e.e+1,1),e.e>14)f=v(e);else{if(0==(i=+H(e)))break;f=i%2}p=p.times(p),o?p.c&&p.c.length>o&&(p.c.length=o):r&&(p=p.mod(t))}return r?h:(d&&(h=S.div(h)),t?h.mod(t):o?B(h,R,_,a):h)},k.integerValue=function(e){var t=new F(this);return null==e?e=_:m(e,0,8),B(t,t.e+1,e)},k.isEqualTo=k.eq=function(e,t){return 0===p(this,new F(e,t))},k.isFinite=function(){return!!this.c},k.isGreaterThan=k.gt=function(e,t){return p(this,new F(e,t))>0},k.isGreaterThanOrEqualTo=k.gte=function(e,t){return 1===(t=p(this,new F(e,t)))||0===t},k.isInteger=function(){return!!this.c&&f(this.e/14)>this.c.length-2},k.isLessThan=k.lt=function(e,t){return 0>p(this,new F(e,t))},k.isLessThanOrEqualTo=k.lte=function(e,t){return -1===(t=p(this,new F(e,t)))||0===t},k.isNaN=function(){return!this.s},k.isNegative=function(){return this.s<0},k.isPositive=function(){return this.s>0},k.isZero=function(){return!!this.c&&0==this.c[0]},k.minus=function(e,t){var n,r,i,o,a=this.s;if(t=(e=new F(e,t)).s,!a||!t)return new F(NaN);if(a!=t)return e.s=-t,this.plus(e);var s=this.e/14,l=e.e/14,u=this.c,c=e.c;if(!s||!l){if(!u||!c)return u?(e.s=-t,e):new F(c?this:NaN);if(!u[0]||!c[0])return c[0]?(e.s=-t,e):new F(u[0]?this:3==_?-0:0)}if(s=f(s),l=f(l),u=u.slice(),a=s-l){for((o=a<0)?(a=-a,i=u):(l=s,i=c),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(r=(o=(a=u.length)<(t=c.length))?a:t,a=t=0;t0)for(;t--;u[n++]=0);for(t=1e14-1;r>a;){if(u[--r]=0;){for(n=0,h=g[i]%1e7,p=g[i]/1e7|0,o=i+(a=l);o>i;)s=p*(u=v[--a]%1e7)+(c=v[a]/1e7|0)*h,n=((u=h*u+s%1e7*1e7+m[o]+n)/1e14|0)+(s/1e7|0)+p*c,m[o--]=u%1e14;m[o]=n}return n?++r:m.splice(0,1),I(e,m,r)},k.negated=function(){var e=new F(this);return e.s=-e.s||null,e},k.plus=function(e,t){var n,r=this.s;if(t=(e=new F(e,t)).s,!r||!t)return new F(NaN);if(r!=t)return e.s=-t,this.minus(e);var i=this.e/14,o=e.e/14,a=this.c,s=e.c;if(!i||!o){if(!a||!s)return new F(r/0);if(!a[0]||!s[0])return s[0]?e:new F(a[0]?this:0*r)}if(i=f(i),o=f(o),a=a.slice(),r=i-o){for(r>0?(o=i,n=s):(r=-r,n=a),n.reverse();r--;n.push(0));n.reverse()}for((r=a.length)-(t=s.length)<0&&(n=s,s=a,a=n,t=r),r=0;t;)r=(a[--t]=a[t]+s[t]+r)/1e14|0,a[t]=1e14===a[t]?0:a[t]%1e14;return r&&(a=[r].concat(a),++o),I(e,a,o)},k.precision=k.sd=function(e,t){var n,r,i;if(null!=e&&!!e!==e)return m(e,1,1e9),null==t?t=_:m(t,0,8),B(new F(this),e,t);if(!(n=this.c))return null;if(r=14*(i=n.length-1)+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return e&&this.e+1>r&&(r=this.e+1),r},k.shiftedBy=function(e){return m(e,-9007199254740991,9007199254740991),this.times("1e"+e)},k.squareRoot=k.sqrt=function(){var e,t,n,r,i,o=this.c,a=this.s,s=this.e,l=O+4,u=new F("0.5");if(1!==a||!o||!o[0])return new F(!a||a<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(a=Math.sqrt(+H(this)))||a==1/0?(((t=h(o)).length+s)%2==0&&(t+="0"),a=Math.sqrt(+t),s=f((s+1)/2)-(s<0||s%2),t=a==1/0?"5e"+s:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+s,n=new F(t)):n=new F(a+""),n.c[0]){for((a=(s=n.e)+l)<3&&(a=0);;)if(i=n,n=u.times(i.plus(w(this,i,l,1))),h(i.c).slice(0,a)===(t=h(n.c)).slice(0,a)){if(n.e0&&p>0){for(i=p%a||a,c=h.substr(0,i);i0&&(c+=l+h.slice(i)),f&&(c="-"+c)}r=d?c+(n.decimalSeparator||"")+((s=+n.fractionGroupSize)?d.replace(RegExp("\\d{"+s+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):d):c}return(n.prefix||"")+r+(n.suffix||"")},k.toFraction=function(e){var t,n,r,i,o,a,s,l,c,f,p,m,v=this.c;if(null!=e&&(!(s=new F(e)).isInteger()&&(s.c||1!==s.s)||s.lt(S)))throw Error(u+"Argument "+(s.isInteger()?"out of range: ":"not an integer: ")+H(s));if(!v)return new F(this);for(t=new F(S),c=n=new F(S),r=l=new F(S),m=h(v),o=t.e=m.length-this.e-1,t.c[0]=d[(a=o%14)<0?14+a:a],e=!e||s.comparedTo(t)>0?o>0?t:c:s,a=T,T=1/0,s=new F(m),l.c[0]=0;f=w(s,t,0,1),1!=(i=n.plus(f.times(r))).comparedTo(e);)n=r,r=i,c=l.plus(f.times(i=c)),l=i,t=s.minus(f.times(i=t)),s=i;return i=w(e.minus(n),r,0,1),l=l.plus(i.times(c)),n=n.plus(i.times(r)),l.s=c.s=this.s,o*=2,p=1>w(c,r,o,_).minus(this).abs().comparedTo(w(l,n,o,_).minus(this).abs())?[c,r]:[l,n],T=a,p},k.toNumber=function(){return+H(this)},k.toPrecision=function(e,t){return null!=e&&m(e,1,1e9),z(this,e,t,2)},k.toString=function(e){var t,n=this,r=n.s,i=n.e;return null===i?r?(t="Infinity",r<0&&(t="-"+t)):t="NaN":(null==e?t=i<=C||i>=M?g(h(n.c),i):y(h(n.c),i,"0"):10===e&&L?t=y(h((n=B(new F(n),O+i+1,_)).c),n.e,"0"):(m(e,2,Z.length,"Base"),t=E(y(h(n.c),i,"0"),10,e,r,!0)),r<0&&n.c[0]&&(t="-"+t)),t},k.valueOf=k.toJSON=function(){return H(this)},k._isBigNumber=!0,null!=t&&F.set(t),F}()).default=o.BigNumber=o,void 0!==(r=(function(){return o}).call(t,n,t,e))&&(e.exports=r)}(0)},70651:function(e,t,n){let r=n(7967);function i(e,t,n){let r=e[t]+e[n],i=e[t+1]+e[n+1];r>=4294967296&&i++,e[t]=r,e[t+1]=i}function o(e,t,n,r){let i=e[t]+n;n<0&&(i+=4294967296);let o=e[t+1]+r;i>=4294967296&&o++,e[t]=i,e[t+1]=o}function a(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function s(e,t,n,r,a,s){let l=d[a],u=d[a+1],f=d[s],h=d[s+1];i(c,e,t),o(c,e,l,u);let p=c[r]^c[e],m=c[r+1]^c[e+1];c[r]=m,c[r+1]=p,i(c,n,r),p=c[t]^c[n],m=c[t+1]^c[n+1],c[t]=p>>>24^m<<8,c[t+1]=m>>>24^p<<8,i(c,e,t),o(c,e,f,h),p=c[r]^c[e],m=c[r+1]^c[e+1],c[r]=p>>>16^m<<16,c[r+1]=m>>>16^p<<16,i(c,n,r),p=c[t]^c[n],m=c[t+1]^c[n+1],c[t]=m>>>31^p<<1,c[t+1]=p>>>31^m<<1}let l=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),u=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map(function(e){return 2*e})),c=new Uint32Array(32),d=new Uint32Array(32);function f(e,t){let n=0;for(n=0;n<16;n++)c[n]=e.h[n],c[n+16]=l[n];for(c[24]=c[24]^e.t,c[25]=c[25]^e.t/4294967296,t&&(c[28]=~c[28],c[29]=~c[29]),n=0;n<32;n++)d[n]=a(e.b,4*n);for(n=0;n<12;n++)s(0,8,16,24,u[16*n+0],u[16*n+1]),s(2,10,18,26,u[16*n+2],u[16*n+3]),s(4,12,20,28,u[16*n+4],u[16*n+5]),s(6,14,22,30,u[16*n+6],u[16*n+7]),s(0,10,20,30,u[16*n+8],u[16*n+9]),s(2,12,22,24,u[16*n+10],u[16*n+11]),s(4,14,16,26,u[16*n+12],u[16*n+13]),s(6,8,18,28,u[16*n+14],u[16*n+15]);for(n=0;n<16;n++)e.h[n]=e.h[n]^c[n]^c[n+16]}let h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function p(e,t,n,r){if(0===e||e>64)throw Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(n&&16!==n.length)throw Error("Illegal salt, expected Uint8Array with length is 16");if(r&&16!==r.length)throw Error("Illegal personal, expected Uint8Array with length is 16");let i={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e};h.fill(0),h[0]=e,t&&(h[1]=t.length),h[2]=1,h[3]=1,n&&h.set(n,32),r&&h.set(r,48);for(let e=0;e<16;e++)i.h[e]=l[e]^a(h,4*e);return t&&(m(i,t),i.c=128),i}function m(e,t){for(let n=0;n>2]>>8*(3&n);return t}function g(e,t,n,i,o){n=n||64,e=r.normalizeInput(e),i&&(i=r.normalizeInput(i)),o&&(o=r.normalizeInput(o));let a=p(n,t,i,o);return m(a,e),v(a)}e.exports={blake2b:g,blake2bHex:function(e,t,n,i,o){let a=g(e,t,n,i,o);return r.toHex(a)},blake2bInit:p,blake2bUpdate:m,blake2bFinal:v}},39962:function(e,t,n){let r=n(7967);function i(e,t,n,r,i,a){l[e]=l[e]+l[t]+i,l[r]=o(l[r]^l[e],16),l[n]=l[n]+l[r],l[t]=o(l[t]^l[n],12),l[e]=l[e]+l[t]+a,l[r]=o(l[r]^l[e],8),l[n]=l[n]+l[r],l[t]=o(l[t]^l[n],7)}function o(e,t){return e>>>t^e<<32-t}let a=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),s=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),l=new Uint32Array(16),u=new Uint32Array(16);function c(e,t){let n=0;for(n=0;n<8;n++)l[n]=e.h[n],l[n+8]=a[n];for(l[12]^=e.t,l[13]^=e.t/4294967296,t&&(l[14]=~l[14]),n=0;n<16;n++){var r,o;u[n]=(r=e.b)[o=4*n]^r[o+1]<<8^r[o+2]<<16^r[o+3]<<24}for(n=0;n<10;n++)i(0,4,8,12,u[s[16*n+0]],u[s[16*n+1]]),i(1,5,9,13,u[s[16*n+2]],u[s[16*n+3]]),i(2,6,10,14,u[s[16*n+4]],u[s[16*n+5]]),i(3,7,11,15,u[s[16*n+6]],u[s[16*n+7]]),i(0,5,10,15,u[s[16*n+8]],u[s[16*n+9]]),i(1,6,11,12,u[s[16*n+10]],u[s[16*n+11]]),i(2,7,8,13,u[s[16*n+12]],u[s[16*n+13]]),i(3,4,9,14,u[s[16*n+14]],u[s[16*n+15]]);for(n=0;n<8;n++)e.h[n]^=l[n]^l[n+8]}function d(e,t){if(!(e>0&&e<=32))throw Error("Incorrect output length, should be in [1, 32]");let n=t?t.length:0;if(t&&!(n>0&&n<=32))throw Error("Incorrect key length, should be in [1, 32]");let r={h:new Uint32Array(a),b:new Uint8Array(64),c:0,t:0,outlen:e};return r.h[0]^=16842752^n<<8^e,n>0&&(f(r,t),r.c=64),r}function f(e,t){for(let n=0;n>2]>>8*(3&n)&255;return t}function p(e,t,n){n=n||32,e=r.normalizeInput(e);let i=d(n,t);return f(i,e),h(i)}e.exports={blake2s:p,blake2sHex:function(e,t,n){let i=p(e,t,n);return r.toHex(i)},blake2sInit:d,blake2sUpdate:f,blake2sFinal:h}},81395:function(e,t,n){let r=n(70651),i=n(39962);e.exports={blake2b:r.blake2b,blake2bHex:r.blake2bHex,blake2bInit:r.blake2bInit,blake2bUpdate:r.blake2bUpdate,blake2bFinal:r.blake2bFinal,blake2s:i.blake2s,blake2sHex:i.blake2sHex,blake2sInit:i.blake2sInit,blake2sUpdate:i.blake2sUpdate,blake2sFinal:i.blake2sFinal}},7967:function(e){function t(e){return(4294967296+e).toString(16).substring(1)}e.exports={normalizeInput:function(e){let t;if(e instanceof Uint8Array)t=e;else if("string"==typeof e){let n=new TextEncoder;t=n.encode(e)}else throw Error("Input must be an string, Buffer or Uint8Array");return t},toHex:function(e){return Array.prototype.map.call(e,function(e){return(e<16?"0":"")+e.toString(16)}).join("")},debugPrint:function(e,n,r){let i="\n"+e+" = ";for(let o=0;o + * @license MIT + */var r=n(95766),i=n(62333),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|p(e,t),r=a(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(M(e,Uint8Array)){var t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(M(e,ArrayBuffer)||e&&M(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(M(e,SharedArrayBuffer)||e&&M(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);var i=function(e){if(s.isBuffer(e)){var t,n=0|h(e.length),r=a(n);return 0===r.length||e.copy(r,0,0,n),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|h(e))}function d(e){for(var t=e.length<0?0:0|h(e.length),n=a(t),r=0;r=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||M(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return O(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return _(e).length;default:if(i)return r?-1:O(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){var i,o,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(o=n=+n)!=o&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var d=!0,f=0;f239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;rn)throw RangeError("Trying to access beyond buffer length")}function w(e,t,n,r,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function E(e,t,n,r,i,o){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function j(e,t,n,r,o){return t=+t,n>>>=0,o||E(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function k(e,t,n,r,o){return t=+t,n>>>=0,o||E(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.lW=s,t.h2=50,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),M(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);ir.length?s.from(o).copy(r,i):Uint8Array.prototype.set.call(r,o,i);else if(s.isBuffer(o))o.copy(r,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return r},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tn&&(e+=" ... "),""},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,l=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n),d=0;d>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,l,u,c,d,f=this.length-t;if((void 0===n||n>f)&&(n=f),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var h=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a=0;a>8,i.push(n%256),i.push(r);return i}(e,this.length-c),this,c,d);default:if(h)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||x(e,t,this.length);for(var r=this[e],i=1,o=0;++o>>=0,t>>>=0,n||x(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||x(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=1,a=0;for(this[t]=255&e;++a>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=n-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return k(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return k(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!i){if(n>56319||a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function _(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function C(e,t,n,r){for(var i=0;i=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function M(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var A=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},72779:function(e,t){var n;/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t=0;)(u=e(r,i,o,a,h+1,l+1))>p&&(h===s?u*=1:t.test(r.charAt(h-1))?(u*=.9,(d=r.slice(s,h-1).match(n))&&s>0&&(u*=Math.pow(.999,d.length))):(t.test(r.slice(s,h-1))?u*=0:u*=.3,s>0&&(u*=Math.pow(.999,h-s))),r.charAt(h)!==i.charAt(l)&&(u*=.9999)),u<.1&&o.charAt(h-1)===a.charAt(l+1)&&o.charAt(h-1)!==a.charAt(l)&&.1*(c=e(r,i,o,a,h+1,l+2))>u&&(u=.1*c),u>p&&(p=u),h=o.indexOf(f,h+1);return p}(e,r,e.toLowerCase(),r.toLowerCase(),0,0)}},68847:function(e,t,n){"use strict";n.d(t,{B8:function(){return k},Il:function(){return i},J5:function(){return a},SU:function(){return j},Ss:function(){return S},Ym:function(){return T},ZP:function(){return x},xV:function(){return o}});var r=n(40948);function i(){}var o=.7,a=1.4285714285714286,s="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,d=RegExp("^rgb\\("+[s,s,s]+"\\)$"),f=RegExp("^rgb\\("+[u,u,u]+"\\)$"),h=RegExp("^rgba\\("+[s,s,s,l]+"\\)$"),p=RegExp("^rgba\\("+[u,u,u,l]+"\\)$"),m=RegExp("^hsl\\("+[l,u,u]+"\\)$"),v=RegExp("^hsla\\("+[l,u,u,l]+"\\)$"),g={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(){return this.rgb().formatHex()}function b(){return this.rgb().formatRgb()}function x(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=c.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?w(t):3===n?new S(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?E(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?E(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=d.exec(e))?new S(t[1],t[2],t[3],1):(t=f.exec(e))?new S(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=h.exec(e))?E(t[1],t[2],t[3],t[4]):(t=p.exec(e))?E(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=m.exec(e))?M(t[1],t[2]/100,t[3]/100,1):(t=v.exec(e))?M(t[1],t[2]/100,t[3]/100,t[4]):g.hasOwnProperty(e)?w(g[e]):"transparent"===e?new S(NaN,NaN,NaN,0):null}function w(e){return new S(e>>16&255,e>>8&255,255&e,1)}function E(e,t,n,r){return r<=0&&(e=t=n=NaN),new S(e,t,n,r)}function j(e){return(e instanceof i||(e=x(e)),e)?(e=e.rgb(),new S(e.r,e.g,e.b,e.opacity)):new S}function k(e,t,n,r){return 1==arguments.length?j(e):new S(e,t,n,null==r?1:r)}function S(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function O(){return"#"+C(this.r)+C(this.g)+C(this.b)}function _(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function C(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function M(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new P(e,t,n,r)}function A(e){if(e instanceof P)return new P(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=x(e)),!e)return new P;if(e instanceof P)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=NaN,l=a-o,u=(a+o)/2;return l?(s=t===a?(n-r)/l+(n0&&u<1?0:s,new P(s,l,u,e.opacity)}function T(e,t,n,r){return 1==arguments.length?A(e):new P(e,t,n,null==r?1:r)}function P(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function N(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}(0,r.Z)(i,x,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return A(this).formatHsl()},formatRgb:b,toString:b}),(0,r.Z)(S,k,(0,r.l)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:O,formatHex:O,formatRgb:_,toString:_})),(0,r.Z)(P,T,(0,r.l)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new P(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new P(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new S(N(e>=240?e-240:e+120,i,r),N(e,i,r),N(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},40948:function(e,t,n){"use strict";function r(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function i(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}n.d(t,{Z:function(){return r},l:function(){return i}})},20966:function(e,t,n){"use strict";n.d(t,{Uc:function(){return g},ZP:function(){return d}});var r=n(40948),i=n(68847),o=n(10810),a=4/29,s=6/29,l=3*(6/29)*(6/29),u=6/29*(6/29)*(6/29);function c(e){if(e instanceof f)return new f(e.l,e.a,e.b,e.opacity);if(e instanceof y)return b(e);e instanceof i.Ss||(e=(0,i.SU)(e));var t,n,r=v(e.r),o=v(e.g),a=v(e.b),s=h((.2225045*r+.7168786*o+.0606169*a)/1);return r===o&&o===a?t=n=s:(t=h((.4360747*r+.3850649*o+.1430804*a)/.96422),n=h((.0139322*r+.0971045*o+.7141733*a)/.82521)),new f(116*s-16,500*(t-s),200*(s-n),e.opacity)}function d(e,t,n,r){return 1==arguments.length?c(e):new f(e,t,n,null==r?1:r)}function f(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function h(e){return e>u?Math.pow(e,1/3):e/l+a}function p(e){return e>s?e*e*e:l*(e-a)}function m(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function v(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function g(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof y)return new y(e.h,e.c,e.l,e.opacity);if(e instanceof f||(e=c(e)),0===e.a&&0===e.b)return new y(NaN,0i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}var d={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:u.Z,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>c(100*e,t),r:c,s:function(e,t){var n=(0,u.V)(e,t);if(!n)return e+"";var i=n[0],o=n[1],a=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+Array(1-a).join("0")+(0,u.V)(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function f(e){return e}var h=Array.prototype.map,p=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];o=(i=function(e){var t,n,i,o=void 0===e.grouping||void 0===e.thousands?f:(t=h.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),a=void 0===e.currency?"":e.currency[0]+"",u=void 0===e.currency?"":e.currency[1]+"",c=void 0===e.decimal?".":e.decimal+"",m=void 0===e.numerals?f:(i=h.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return i[+e]})}),v=void 0===e.percent?"%":e.percent+"",g=void 0===e.minus?"−":e.minus+"",y=void 0===e.nan?"NaN":e.nan+"";function b(e){var t=(e=(0,l.Z)(e)).fill,n=e.align,i=e.sign,s=e.symbol,f=e.zero,h=e.width,b=e.comma,x=e.precision,w=e.trim,E=e.type;"n"===E?(b=!0,E="g"):d[E]||(void 0===x&&(x=12),w=!0,E="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var j="$"===s?a:"#"===s&&/[boxX]/.test(E)?"0"+E.toLowerCase():"",k="$"===s?u:/[%p]/.test(E)?v:"",S=d[E],O=/[defgprs%]/.test(E);function _(e){var a,s,l,u=j,d=k;if("c"===E)d=S(e)+d,e="";else{var v=(e=+e)<0||1/e<0;if(e=isNaN(e)?y:S(Math.abs(e),x),w&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),v&&0==+e&&"+"!==i&&(v=!1),u=(v?"("===i?i:g:"-"===i||"("===i?"":i)+u,d=("s"===E?p[8+r/3]:"")+d+(v&&"("===i?")":""),O){for(a=-1,s=e.length;++a(l=e.charCodeAt(a))||l>57){d=(46===l?c+e.slice(a+1):e.slice(a))+d,e=e.slice(0,a);break}}}b&&!f&&(e=o(e,1/0));var _=u.length+e.length+d.length,C=_>1)+u+e+d+C.slice(_);break;default:e=C+u+e+d}return m(e)}return x=void 0===x?6:/[gprs]/.test(E)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x)),_.toString=function(){return e+""},_}return{format:b,formatPrefix:function(e,t){var n=b(((e=(0,l.Z)(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor((0,s.Z)(t)/3))),i=Math.pow(10,-r),o=p[8+r/3];return function(e){return n(i*e)+o}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,a=i.formatPrefix},23733:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(39801);function i(e){return(e=(0,r.V)(Math.abs(e)))?e[1]:NaN}},39801:function(e,t,n){"use strict";function r(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function i(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}n.d(t,{V:function(){return i},Z:function(){return r}})},52328:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(e){var t;if(!(t=r.exec(e)))throw Error("invalid format: "+e);return new o({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function o(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}i.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},12766:function(e,t){!function(e){"use strict";function t(){return(t=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a,s=!0,l=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==o.return||o.return()}finally{if(l)throw a}}}}function o(e){var t={};return 4===e.length&&(t.x2=e[2][0],t.y2=e[2][1]),e.length>=3&&(t.x1=e[1][0],t.y1=e[1][1]),t.x=e[e.length-1][0],t.y=e[e.length-1][1],4===e.length?t.type="C":3===e.length?t.type="Q":t.type="L",t}var a=/[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g,s={M:["x","y"],L:["x","y"],H:["x"],V:["y"],C:["x1","y1","x2","y2","x","y"],S:["x2","y2","x","y"],Q:["x1","y1","x","y"],T:["x","y"],A:["rx","ry","xAxisRotation","largeArcFlag","sweepFlag","x","y"],Z:[]};function l(e,t){for(var n=Array(e),r=0;r0?o-=1:o0&&(o-=1)),t[o]=(t[o]||0)+1,t},[]).reduce(function(n,r,i){if(i===e.length-1){var a=l(r,t({},e[e.length-1]));return"M"===a[0].type&&a.forEach(function(e){e.type="L"}),n.concat(a)}return n.concat(function(e,n,r){var i,a=[];if("L"===n.type||"Q"===n.type||"C"===n.type)a=a.concat((i=[[e.x,e.y]],null!=n.x1&&i.push([n.x1,n.y1]),null!=n.x2&&i.push([n.x2,n.y2]),i.push([n.x,n.y]),(function(e,t){for(var n=[],r=e,i=1/(t=t||2),o=0;o0&&"Z"===o[o.length-1].type&&o.pop(),a.length>0&&"Z"===a[a.length-1].type&&a.pop(),o.length?a.length||a.push(o[0]):o.push(a[0]),0!==Math.abs(a.length-o.length)&&(a.length>o.length?o=u(o,a,r):a.length0)for(var n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[i],a=e[i+1],s=i>0?e[i-1]:2*o-a,l=i180||n<-180?n-360*Math.round(n/360):n):(0,r.Z)(isNaN(e)?t:e)}function a(e){return 1==(e=+e)?s:function(t,n){var i,o,a;return n-t?(i=t,o=n,i=Math.pow(i,a=e),o=Math.pow(o,a)-i,a=1/a,function(e){return Math.pow(i+e*o,a)}):(0,r.Z)(isNaN(t)?n:t)}}function s(e,t){var n=t-e;return n?i(e,n):(0,r.Z)(isNaN(e)?t:e)}},88992:function(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{Z:function(){return r}})},77636:function(e,t,n){"use strict";n.d(t,{B:function(){return f},Z:function(){return d}});var r=n(40948),i=n(68847),o=n(10810),a=-1.78277*.29227-.1347134789;function s(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof l)return new l(e.h,e.s,e.l,e.opacity);e instanceof i.Ss||(e=(0,i.SU)(e));var t=e.r/255,n=e.g/255,r=e.b/255,s=(a*r+-1.7884503806*t-3.5172982438*n)/(a+-1.7884503806-3.5172982438),u=r-s,c=-((1.97294*(n-s)- -.29227*u)/.90649),d=Math.sqrt(c*c+u*u)/(1.97294*s*(1-s)),f=d?Math.atan2(c,u)*o.B-120:NaN;return new l(f<0?f+360:f,d,s,e.opacity)}(e):new l(e,t,n,null==r?1:r)}function l(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}(0,r.Z)(l,s,(0,r.l)(i.Il,{brighter:function(e){return e=null==e?i.J5:Math.pow(i.J5,e),new l(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?i.xV:Math.pow(i.xV,e),new l(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*o.V,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),a=Math.sin(e);return new i.Ss(255*(t+n*(-.14861*r+1.78277*a)),255*(t+n*(-.29227*r+-.90649*a)),255*(t+n*(1.97294*r)),this.opacity)}}));var u=n(1234);function c(e){return function t(n){function r(t,r){var i=e((t=s(t)).h,(r=s(r)).h),o=(0,u.ZP)(t.s,r.s),a=(0,u.ZP)(t.l,r.l),l=(0,u.ZP)(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=l(e),t+""}}return n=+n,r.gamma=t,r}(1)}var d=c(u.wx),f=c(u.ZP)},91255:function(e,t,n){"use strict";function r(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}n.d(t,{Z:function(){return r}})},87286:function(e,t,n){"use strict";n.d(t,{b:function(){return a}});var r=n(20966),i=n(1234);function o(e){return function(t,n){var o=e((t=(0,r.Uc)(t)).h,(n=(0,r.Uc)(n)).h),a=(0,i.ZP)(t.c,n.c),s=(0,i.ZP)(t.l,n.l),l=(0,i.ZP)(t.opacity,n.opacity);return function(e){return t.h=o(e),t.c=a(e),t.l=s(e),t.opacity=l(e),t+""}}}t.Z=o(i.wx);var a=o(i.ZP)},43780:function(e,t,n){"use strict";n.d(t,{q:function(){return a}});var r=n(68847),i=n(1234);function o(e){return function(t,n){var o=e((t=(0,r.Ym)(t)).h,(n=(0,r.Ym)(n)).h),a=(0,i.ZP)(t.s,n.s),s=(0,i.ZP)(t.l,n.l),l=(0,i.ZP)(t.opacity,n.opacity);return function(e){return t.h=o(e),t.s=a(e),t.l=s(e),t.opacity=l(e),t+""}}}t.Z=o(i.wx);var a=o(i.ZP)},31380:function(e,t,n){"use strict";n.r(t),n.d(t,{interpolate:function(){return s.Z},interpolateArray:function(){return l.Z},interpolateBasis:function(){return u.Z},interpolateBasisClosed:function(){return c.Z},interpolateCubehelix:function(){return N.Z},interpolateCubehelixLong:function(){return N.B},interpolateDate:function(){return d.Z},interpolateDiscrete:function(){return f},interpolateHcl:function(){return P.Z},interpolateHclLong:function(){return P.b},interpolateHsl:function(){return A.Z},interpolateHslLong:function(){return A.q},interpolateHue:function(){return p},interpolateLab:function(){return T.Z},interpolateNumber:function(){return m.Z},interpolateNumberArray:function(){return v.Z},interpolateObject:function(){return g.Z},interpolateRgb:function(){return M.ZP},interpolateRgbBasis:function(){return M.hD},interpolateRgbBasisClosed:function(){return M.YD},interpolateRound:function(){return y.Z},interpolateString:function(){return b.Z},interpolateTransformCss:function(){return k},interpolateTransformSvg:function(){return S},interpolateZoom:function(){return C},piecewise:function(){return R.Z},quantize:function(){return D}});var r,i,o,a,s=n(69777),l=n(47639),u=n(67855),c=n(6984),d=n(91255);function f(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var h=n(1234);function p(e,t){var n=(0,h.wx)(+e,+t);return function(e){var t=n(e);return t-360*Math.floor(t/360)}}var m=n(98876),v=n(43289),g=n(73363),y=n(74672),b=n(76060),x=180/Math.PI,w={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function E(e,t,n,r,i,o){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r180?l+=360:l-s>180&&(s+=360),f.push({i:d.push(i(d)+"rotate(",null,r)-2,x:(0,m.Z)(s,l)})):l&&d.push(i(d)+"rotate("+l+r),(u=o.skewX)!==(c=a.skewX)?f.push({i:d.push(i(d)+"skewX(",null,r)-2,x:(0,m.Z)(u,c)}):c&&d.push(i(d)+"skewX("+c+r),!function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:(0,m.Z)(e,n)},{i:s-2,x:(0,m.Z)(t,r)})}else(1!==n||1!==r)&&o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,d,f),o=a=null,function(e){for(var t,n=-1,r=f.length;++nc&&(u=t.slice(c,u),f[d]?f[d]+=u:f[++d]=u),(s=s[0])===(l=l[0])?f[d]?f[d]+=l:f[++d]=l:(f[++d]=null,h.push({i:d,x:(0,r.Z)(s,l)})),c=o.lastIndex;return c1e-6){if(Math.abs(d*l-u*c)>1e-6&&o){var h=r-a,p=i-s,m=l*l+u*u,v=Math.sqrt(m),g=Math.sqrt(f),y=o*Math.tan((n-Math.acos((m+f-(h*h+p*p))/(2*v*g)))/2),b=y/g,x=y/v;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*c)+","+(t+b*d)),this._+="A"+o+","+o+",0,0,"+ +(d*h>c*p)+","+(this._x1=e+x*l)+","+(this._y1=t+x*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t)}},arc:function(e,t,o,a,s,l){e=+e,t=+t,o=+o,l=!!l;var u=o*Math.cos(a),c=o*Math.sin(a),d=e+u,f=t+c,h=1^l,p=l?a-s:s-a;if(o<0)throw Error("negative radius: "+o);null===this._x1?this._+="M"+d+","+f:(Math.abs(this._x1-d)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+d+","+f),o&&(p<0&&(p=p%r+r),p>i?this._+="A"+o+","+o+",0,1,"+h+","+(e-u)+","+(t-c)+"A"+o+","+o+",0,1,"+h+","+(this._x1=d)+","+(this._y1=f):p>1e-6&&(this._+="A"+o+","+o+",0,"+ +(p>=n)+","+h+","+(this._x1=e+o*Math.cos(s))+","+(this._y1=t+o*Math.sin(s))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},t.Z=a},1169:function(e,t,n){"use strict";function r(e,t){return et?1:e>=t?0:NaN}n.d(t,{Z:function(){return r}})},98038:function(e,t,n){"use strict";n.d(t,{ZP:function(){return l}});var r=n(1169);function i(e){let t=e,n=e;function i(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;0>n(e[o],t)?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>(0,r.Z)(e(t),n)),{left:i,center:function(e,n,r,o){null==r&&(r=0),null==o&&(o=e.length);let a=i(e,n,r,o-1);return a>r&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}var o=n(81048);let a=i(r.Z),s=a.right;a.left,i(o.Z).center;var l=s},81048:function(e,t,n){"use strict";function r(e){return null===e?NaN:+e}function*i(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}n.d(t,{K:function(){return i},Z:function(){return r}})},33907:function(e,t,n){"use strict";function r(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}function i(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}n.d(t,{Z:function(){return l},s:function(){return u}});var o=n(1169);function a(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}var s=n(81048);function l(e,t,n){if(l=(e=Float64Array.from((0,s.K)(e,n))).length){if((t=+t)<=0||l<2)return i(e);if(t>=1)return r(e);var l,u=(l-1)*t,c=Math.floor(u),d=r((function e(t,n,r=0,i=t.length-1,s=o.Z){for(;i>r;){if(i-r>600){let o=i-r+1,a=n-r+1,l=Math.log(o),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(o-u)/o)*(a-o/2<0?-1:1),d=Math.max(r,Math.floor(n-a*u/o+c)),f=Math.min(i,Math.floor(n+(o-a)*u/o+c));e(t,n,d,f,s)}let o=t[n],l=r,u=i;for(a(t,r,n),s(t[i],o)>0&&a(t,r,i);ls(t[l],o);)++l;for(;s(t[u],o)>0;)--u}0===s(t[r],o)?a(t,r,u):a(t,++u,i),u<=n&&(r=u+1),n<=u&&(i=u-1)}return t})(e,c).subarray(0,c+1));return d+(i(e.subarray(c+1))-d)*(u-c)}}function u(e,t,n=s.Z){if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}}},32071:function(e,t,n){"use strict";n.d(t,{G9:function(){return s},ZP:function(){return a},ly:function(){return l}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,n){var r,i,o,a,l=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t0){let n=Math.round(e/a),r=Math.round(t/a);for(n*at&&--r,o=Array(i=r-n+1);++lt&&--r,o=Array(i=r-n+1);++l=0?(l>=r?10:l>=i?5:l>=o?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=r?10:l>=i?5:l>=o?2:1)}function l(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=i?s*=5:l>=o&&(s*=2),t[e.toLowerCase(),t]))}function j(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function k(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function S(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function O(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function _(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function C(e,t,n){var r=v.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function M(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function A(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function T(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function P(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function N(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function R(e,t,n){var r=v.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function D(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Z(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function L(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function F(e,t,n){var r=v.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function z(e,t,n){var r=v.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function V(e,t,n){var r=g.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function I(e,t,n){var r=v.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function B(e,t,n){var r=v.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function H(e,t){return b(e.getDate(),t,2)}function U(e,t){return b(e.getHours(),t,2)}function W(e,t){return b(e.getHours()%12||12,t,2)}function q(e,t){return b(1+u.Z.count((0,c.Z)(e),e),t,3)}function $(e,t){return b(e.getMilliseconds(),t,3)}function Y(e,t){return $(e,t)+"000"}function G(e,t){return b(e.getMonth()+1,t,2)}function K(e,t){return b(e.getMinutes(),t,2)}function X(e,t){return b(e.getSeconds(),t,2)}function Q(e){var t=e.getDay();return 0===t?7:t}function J(e,t){return b(l.OM.count((0,c.Z)(e)-1,e),t,2)}function ee(e){var t=e.getDay();return t>=4||0===t?(0,l.bL)(e):l.bL.ceil(e)}function et(e,t){return e=ee(e),b(l.bL.count((0,c.Z)(e),e)+(4===(0,c.Z)(e).getDay()),t,2)}function en(e){return e.getDay()}function er(e,t){return b(l.wA.count((0,c.Z)(e)-1,e),t,2)}function ei(e,t){return b(e.getFullYear()%100,t,2)}function eo(e,t){return b((e=ee(e)).getFullYear()%100,t,2)}function ea(e,t){return b(e.getFullYear()%1e4,t,4)}function es(e,t){var n=e.getDay();return b((e=n>=4||0===n?(0,l.bL)(e):l.bL.ceil(e)).getFullYear()%1e4,t,4)}function el(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+b(t/60|0,"0",2)+b(t%60,"0",2)}function eu(e,t){return b(e.getUTCDate(),t,2)}function ec(e,t){return b(e.getUTCHours(),t,2)}function ed(e,t){return b(e.getUTCHours()%12||12,t,2)}function ef(e,t){return b(1+s.Z.count((0,d.Z)(e),e),t,3)}function eh(e,t){return b(e.getUTCMilliseconds(),t,3)}function ep(e,t){return eh(e,t)+"000"}function em(e,t){return b(e.getUTCMonth()+1,t,2)}function ev(e,t){return b(e.getUTCMinutes(),t,2)}function eg(e,t){return b(e.getUTCSeconds(),t,2)}function ey(e){var t=e.getUTCDay();return 0===t?7:t}function eb(e,t){return b(a.Ox.count((0,d.Z)(e)-1,e),t,2)}function ex(e){var t=e.getUTCDay();return t>=4||0===t?(0,a.hB)(e):a.hB.ceil(e)}function ew(e,t){return e=ex(e),b(a.hB.count((0,d.Z)(e),e)+(4===(0,d.Z)(e).getUTCDay()),t,2)}function eE(e){return e.getUTCDay()}function ej(e,t){return b(a.l6.count((0,d.Z)(e)-1,e),t,2)}function ek(e,t){return b(e.getUTCFullYear()%100,t,2)}function eS(e,t){return b((e=ex(e)).getUTCFullYear()%100,t,2)}function eO(e,t){return b(e.getUTCFullYear()%1e4,t,4)}function e_(e,t){var n=e.getUTCDay();return b((e=n>=4||0===n?(0,a.hB)(e):a.hB.ceil(e)).getUTCFullYear()%1e4,t,4)}function eC(){return"+0000"}function eM(){return"%"}function eA(e){return+e}function eT(e){return Math.floor(+e/1e3)}i=(r=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,c=e.shortDays,d=e.months,v=e.shortMonths,g=w(i),y=E(i),b=w(o),x=E(o),ee=w(c),ex=E(c),eP=w(d),eN=E(d),eR=w(v),eD=E(v),eZ={a:function(e){return c[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return v[e.getMonth()]},B:function(e){return d[e.getMonth()]},c:null,d:H,e:H,f:Y,g:eo,G:es,H:U,I:W,j:q,L:$,m:G,M:K,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:eA,s:eT,S:X,u:Q,U:J,V:et,w:en,W:er,x:null,X:null,y:ei,Y:ea,Z:el,"%":eM},eL={a:function(e){return c[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return v[e.getUTCMonth()]},B:function(e){return d[e.getUTCMonth()]},c:null,d:eu,e:eu,f:ep,g:eS,G:e_,H:ec,I:ed,j:ef,L:eh,m:em,M:ev,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:eA,s:eT,S:eg,u:ey,U:eb,V:ew,w:eE,W:ej,x:null,X:null,y:ek,Y:eO,Z:eC,"%":eM},eF={a:function(e,t,n){var r=ee.exec(t.slice(n));return r?(e.w=ex.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=b.exec(t.slice(n));return r?(e.w=x.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=eR.exec(t.slice(n));return r?(e.m=eD.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=eP.exec(t.slice(n));return r?(e.m=eN.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return eI(e,t,n,r)},d:N,e:N,f:z,g:M,G:C,H:D,I:D,j:R,L:F,m:P,M:Z,p:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.p=y.get(r[0].toLowerCase()),n+r[0].length):-1},q:T,Q:I,s:B,S:L,u:k,U:S,V:O,w:j,W:_,x:function(e,t,r){return eI(e,n,t,r)},X:function(e,t,n){return eI(e,r,t,n)},y:M,Y:C,Z:A,"%":V};function ez(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=(r=h(p(o.y,0,1))).getUTCDay())>4||0===i?a.l6.ceil(r):(0,a.l6)(r),r=s.Z.offset(r,(o.V-1)*7),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=(i=(r=f(p(o.y,0,1))).getDay())>4||0===i?l.wA.ceil(r):(0,l.wA)(r),r=u.Z.offset(r,(o.V-1)*7),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?h(p(o.y,0,1)).getUTCDay():f(p(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,h(o)):f(o)}}function eI(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a=l)return -1;if(37===(i=t.charCodeAt(a++))){if(!(o=eF[(i=t.charAt(a++))in m?t.charAt(a++):i])||(r=o(e,n,r))<0)return -1}else if(i!=n.charCodeAt(r++))return -1}return r}return eZ.x=ez(n,eZ),eZ.X=ez(r,eZ),eZ.c=ez(t,eZ),eL.x=ez(n,eL),eL.X=ez(r,eL),eL.c=ez(t,eL),{format:function(e){var t=ez(e+="",eZ);return t.toString=function(){return e},t},parse:function(e){var t=eV(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=ez(e+="",eL);return t.toString=function(){return e},t},utcParse:function(e){var t=eV(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,r.parse,o=r.utcFormat,r.utcParse},48623:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},x:function(){return a}});var r=n(22274),i=n(34130);function o(){var e,t,n=(0,i.Z)().unknown(void 0),a=n.domain,s=n.range,l=0,u=1,c=!1,d=0,f=0,h=.5;function p(){var n=a().length,r=ut&&(n=e,e=t,t=n),g=function(n){return Math.max(e,Math.min(t,n))}),r=i>2?f:d,c=h=null,b}function b(t){return null==t||isNaN(t=+t)?n:(c||(c=r(p.map(e),m,v)))(e(g(t)))}return b.invert=function(n){return g(t((h||(h=r(m,p.map(e),o.Z)))(n)))},b.domain=function(e){return arguments.length?(p=Array.from(e,s.Z),y()):p.slice()},b.range=function(e){return arguments.length?(m=Array.from(e),y()):m.slice()},b.rangeRound=function(e){return m=Array.from(e),v=a.Z,y()},b.clamp=function(e){return arguments.length?(g=!!e||u,y()):g!==u},b.interpolate=function(e){return arguments.length?(v=e,y()):v},b.unknown=function(e){return arguments.length?(n=e,b):n},function(n,r){return e=n,t=r,y()}}function m(){return p()(u,u)}},79870:function(e,t,n){"use strict";n.r(t),n.d(t,{scaleBand:function(){return r.Z},scaleDiverging:function(){return function e(){var t=(0,i.Q)(C()(y.yR));return t.copy=function(){return w(t,e())},b.O.apply(t,arguments)}},scaleDivergingLog:function(){return function e(){var t=(0,a.Q)(C()).domain([.1,1,10]);return t.copy=function(){return w(t,e()).base(t.base())},b.O.apply(t,arguments)}},scaleDivergingPow:function(){return M},scaleDivergingSqrt:function(){return A},scaleDivergingSymlog:function(){return function e(){var t=(0,s.P)(C());return t.copy=function(){return w(t,e()).constant(t.constant())},b.O.apply(t,arguments)}},scaleIdentity:function(){return function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,o.Z),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,o.Z):[0,1],(0,i.Q)(r)}},scaleImplicit:function(){return l.O},scaleLinear:function(){return i.Z},scaleLog:function(){return a.Z},scaleOrdinal:function(){return l.Z},scalePoint:function(){return r.x},scalePow:function(){return u.ZP},scaleQuantile:function(){return d.Z},scaleQuantize:function(){return f.Z},scaleRadial:function(){return c.Z},scaleSequential:function(){return function e(){var t=(0,i.Q)(x()(y.yR));return t.copy=function(){return w(t,e())},b.O.apply(t,arguments)}},scaleSequentialLog:function(){return function e(){var t=(0,a.Q)(x()).domain([1,10]);return t.copy=function(){return w(t,e()).base(t.base())},b.O.apply(t,arguments)}},scaleSequentialPow:function(){return E},scaleSequentialQuantile:function(){return function e(){var t=[],n=y.yR;function r(e){if(null!=e&&!isNaN(e=+e))return n(((0,k.ZP)(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();for(let n of(t=[],e))null==n||isNaN(n=+n)||t.push(n);return t.sort(S.Z),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map((e,r)=>n(r/(t.length-1)))},r.quantiles=function(e){return Array.from({length:e+1},(n,r)=>(0,O.Z)(t,r/e))},r.copy=function(){return e(n).domain(t)},b.O.apply(r,arguments)}},scaleSequentialSqrt:function(){return j},scaleSequentialSymlog:function(){return function e(){var t=(0,s.P)(x());return t.copy=function(){return w(t,e()).constant(t.constant())},b.O.apply(t,arguments)}},scaleSqrt:function(){return u._b},scaleSymlog:function(){return s.Z},scaleThreshold:function(){return h.Z},scaleTime:function(){return p.Z},scaleUtc:function(){return m.Z},tickFormat:function(){return T.Z}});var r=n(48623),i=n(93963),o=n(5497),a=n(13641),s=n(46494),l=n(34130),u=n(72851),c=n(19637),d=n(96417),f=n(73408),h=n(74995),p=n(37932),m=n(83803),v=n(69777),g=n(74672),y=n(70552),b=n(22274);function x(){var e,t,n,r,i,o=0,a=1,s=y.yR,l=!1;function u(t){return null==t||isNaN(t=+t)?i:s(0===n?.5:(t=(r(t)-e)*n,l?Math.max(0,Math.min(1,t)):t))}function c(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),u):[s(0),s(1)]}}return u.domain=function(i){return arguments.length?([o,a]=i,e=r(o=+o),t=r(a=+a),n=e===t?0:1/(t-e),u):[o,a]},u.clamp=function(e){return arguments.length?(l=!!e,u):l},u.interpolator=function(e){return arguments.length?(s=e,u):s},u.range=c(v.Z),u.rangeRound=c(g.Z),u.unknown=function(e){return arguments.length?(i=e,u):i},function(i){return r=i,e=i(o),t=i(a),n=e===t?0:1/(t-e),u}}function w(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function E(){var e=(0,u.Hh)(x());return e.copy=function(){return w(e,E()).exponent(e.exponent())},b.O.apply(e,arguments)}function j(){return E.apply(null,arguments).exponent(.5)}var k=n(98038),S=n(1169),O=n(33907),_=n(87475);function C(){var e,t,n,r,i,o,a,s=0,l=.5,u=1,c=1,d=y.yR,f=!1;function h(e){return isNaN(e=+e)?a:(e=.5+((e=+o(e))-t)*(c*e0;){if((o=(0,r.G9)(u,c,n))===i)return a[s]=u,a[l]=c,t(a);if(o>0)u=Math.floor(u/o)*o,c=Math.ceil(c/o)*o;else if(o<0)u=Math.ceil(u*o)/o,c=Math.floor(c*o)/o;else break;i=o}return e},e}},13641:function(e,t,n){"use strict";n.d(t,{Q:function(){return p},Z:function(){return function e(){var t=p((0,a.l4)()).domain([1,10]);return t.copy=function(){return(0,a.JG)(t,e()).base(t.base())},s.o.apply(t,arguments),t}}});var r=n(32071),i=n(11192),o=n(10070),a=n(70552),s=n(22274);function l(e){return Math.log(e)}function u(e){return Math.exp(e)}function c(e){return-Math.log(-e)}function d(e){return-Math.exp(-e)}function f(e){return isFinite(e)?+("1e"+e):e<0?0:e}function h(e){return function(t){return-e(-t)}}function p(e){var t,n,a=e(l,u),s=a.domain,p=10;function m(){var r,i;return t=(r=p)===Math.E?Math.log:10===r&&Math.log10||2===r&&Math.log2||(r=Math.log(r),function(e){return Math.log(e)/r}),n=10===(i=p)?f:i===Math.E?Math.exp:function(e){return Math.pow(i,e)},s()[0]<0?(t=h(t),n=h(n),e(c,d)):e(l,u),a}return a.base=function(e){return arguments.length?(p=+e,m()):p},a.domain=function(e){return arguments.length?(s(e),m()):s()},a.ticks=function(e){var i,o=s(),a=o[0],l=o[o.length-1];(i=l0){for(;f<=h;++f)for(c=1,u=n(f);cl)break;v.push(d)}}else for(;f<=h;++f)for(c=p-1,u=n(f);c>=1;--c)if(!((d=u*c)l)break;v.push(d)}2*v.length0?l[t-1]:n[0],t=s?[l[s-1],a]:[l[t-1],l[t]]},c.unknown=function(e){return arguments.length&&(t=e),c},c.thresholds=function(){return l.slice()},c.copy=function(){return e().domain([n,a]).range(u).unknown(t)},o.o.apply((0,i.Q)(c),arguments)}}});var r=n(98038),i=n(93963),o=n(22274)},19637:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(){var t,n=(0,r.ZP)(),l=[0,1],u=!1;function c(e){var r,i=Math.sign(r=n(e))*Math.sqrt(Math.abs(r));return isNaN(i)?t:u?Math.round(i):i}return c.invert=function(e){return n.invert(s(e))},c.domain=function(e){return arguments.length?(n.domain(e),c):n.domain()},c.range=function(e){return arguments.length?(n.range((l=Array.from(e,a.Z)).map(s)),c):l.slice()},c.rangeRound=function(e){return c.range(e).round(!0)},c.round=function(e){return arguments.length?(u=!!e,c):u},c.clamp=function(e){return arguments.length?(n.clamp(e),c):n.clamp()},c.unknown=function(e){return arguments.length?(t=e,c):t},c.copy=function(){return e(n.domain(),l).round(u).clamp(n.clamp()).unknown(t)},i.o.apply(c,arguments),(0,o.Q)(c)}}});var r=n(70552),i=n(22274),o=n(93963),a=n(5497);function s(e){return Math.sign(e)*e*e}},46494:function(e,t,n){"use strict";n.d(t,{P:function(){return l},Z:function(){return function e(){var t=l((0,i.l4)());return t.copy=function(){return(0,i.JG)(t,e()).constant(t.constant())},o.o.apply(t,arguments)}}});var r=n(93963),i=n(70552),o=n(22274);function a(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function s(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function l(e){var t=1,n=e(a(1),s(t));return n.constant=function(n){return arguments.length?e(a(t=+n),s(t)):t},(0,r.Q)(n)}},74995:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(){var t,n=[.5],o=[0,1],a=1;function s(e){return null!=e&&e<=e?o[(0,r.ZP)(n,e,0,a)]:t}return s.domain=function(e){return arguments.length?(a=Math.min((n=Array.from(e)).length,o.length-1),s):n.slice()},s.range=function(e){return arguments.length?(o=Array.from(e),a=Math.min(n.length,o.length-1),s):o.slice()},s.invertExtent=function(e){var t=o.indexOf(e);return[n[t-1],n[t]]},s.unknown=function(e){return arguments.length?(t=e,s):t},s.copy=function(){return e().domain(n).range(o).unknown(t)},i.o.apply(s,arguments)}}});var r=n(98038),i=n(22274)},62498:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(32071),i=n(52328),o=n(23733),a=n(11192);function s(e,t,n,s){var l,u,c,d=(0,r.ly)(e,t,n);switch((s=(0,i.Z)(null==s?",f":s)).type){case"s":var f=Math.max(Math.abs(e),Math.abs(t));return null!=s.precision||isNaN(c=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,o.Z)(f)/3)))-(0,o.Z)(Math.abs(d))))||(s.precision=c),(0,a.jH)(s,f);case"":case"e":case"g":case"p":case"r":null!=s.precision||isNaN((l=d,u=Math.abs(u=Math.max(Math.abs(e),Math.abs(t)))-(l=Math.abs(l)),c=Math.max(0,(0,o.Z)(u)-(0,o.Z)(l))+1))||(s.precision=c-("e"===s.type));break;case"f":case"%":null!=s.precision||isNaN(c=Math.max(0,-(0,o.Z)(Math.abs(d))))||(s.precision=c-("%"===s.type)*2)}return(0,a.WU)(s)}},37932:function(e,t,n){"use strict";n.d(t,{Y:function(){return g},Z:function(){return y}});var r=n(1381),i=n(97344),o=n(50690),a=n(76231),s=n(68603),l=n(54076),u=n(18450),c=n(52546),d=n(61743),f=n(70552),h=n(22274),p=n(10070);function m(e){return new Date(e)}function v(e){return e instanceof Date?+e:+new Date(+e)}function g(e,t,n,r,i,o,a,s,l,u){var c=(0,f.ZP)(),d=c.invert,h=c.domain,y=u(".%L"),b=u(":%S"),x=u("%I:%M"),w=u("%I %p"),E=u("%a %d"),j=u("%b %d"),k=u("%B"),S=u("%Y");function O(e){return(l(e)T*T+P*P&&(S=_,O=C),{cx:S,cy:O,x01:-d,y01:-f,x11:S*(i/E-1),y11:O*(i/E-1)}}function f(){var e=a,t=s,n=(0,i.Z)(0),f=null,h=l,p=u,m=c,v=null;function g(){var i,a,s=+e.apply(this,arguments),l=+t.apply(this,arguments),u=h.apply(this,arguments)-o.ou,c=p.apply(this,arguments)-o.ou,g=(0,o.Wn)(c-u),y=c>u;if(v||(v=i=(0,r.Z)()),lo.Ho){if(g>o.BZ-o.Ho)v.moveTo(l*(0,o.mC)(u),l*(0,o.O$)(u)),v.arc(0,0,l,u,c,!y),s>o.Ho&&(v.moveTo(s*(0,o.mC)(c),s*(0,o.O$)(c)),v.arc(0,0,s,c,u,y));else{var b,x,w=u,E=c,j=u,k=c,S=g,O=g,_=m.apply(this,arguments)/2,C=_>o.Ho&&(f?+f.apply(this,arguments):(0,o._b)(s*s+l*l)),M=(0,o.VV)((0,o.Wn)(l-s)/2,+n.apply(this,arguments)),A=M,T=M;if(C>o.Ho){var P=(0,o.ZR)(C/s*(0,o.O$)(_)),N=(0,o.ZR)(C/l*(0,o.O$)(_));(S-=2*P)>o.Ho?(P*=y?1:-1,j+=P,k-=P):(S=0,j=k=(u+c)/2),(O-=2*N)>o.Ho?(N*=y?1:-1,w+=N,E-=N):(O=0,w=E=(u+c)/2)}var R=l*(0,o.mC)(w),D=l*(0,o.O$)(w),Z=s*(0,o.mC)(k),L=s*(0,o.O$)(k);if(M>o.Ho){var F,z=l*(0,o.mC)(E),V=l*(0,o.O$)(E),I=s*(0,o.mC)(j),B=s*(0,o.O$)(j);if(go.Ho?T>o.Ho?(b=d(I,B,R,D,l,T,y),x=d(z,V,Z,L,l,T,y),v.moveTo(b.cx+b.x01,b.cy+b.y01),To.Ho&&S>o.Ho?A>o.Ho?(b=d(Z,L,z,V,s,-A,y),x=d(R,D,I,B,s,-A,y),v.lineTo(b.cx+b.x01,b.cy+b.y01),A=a;--s)f.point(g[s],y[s]);f.lineEnd(),f.areaEnd()}}v&&(g[o]=+e(h,o,i),y[o]=+n(h,o,i),f.point(t?+t(h,o,i):g[o],l?+l(h,o,i):y[o]))}if(p)return f=null,p+""||null}function p(){return(0,a.Z)().defined(u).curve(d).context(c)}return h.x=function(n){return arguments.length?(e="function"==typeof n?n:(0,i.Z)(+n),t=null,h):e},h.x0=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.Z)(+t),h):e},h.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:(0,i.Z)(+e),h):t},h.y=function(e){return arguments.length?(n="function"==typeof e?e:(0,i.Z)(+e),l=null,h):n},h.y0=function(e){return arguments.length?(n="function"==typeof e?e:(0,i.Z)(+e),h):n},h.y1=function(e){return arguments.length?(l=null==e?null:"function"==typeof e?e:(0,i.Z)(+e),h):l},h.lineX0=h.lineY0=function(){return p().x(e).y(n)},h.lineY1=function(){return p().x(e).y(l)},h.lineX1=function(){return p().x(t).y(n)},h.defined=function(e){return arguments.length?(u="function"==typeof e?e:(0,i.Z)(!!e),h):u},h.curve=function(e){return arguments.length?(d=e,null!=c&&(f=d(c)),h):d},h.context=function(e){return arguments.length?(null==e?c=f=null:f=d(c=e),h):c},h}},72299:function(e,t,n){"use strict";n.d(t,{t:function(){return r}});var r=Array.prototype.slice},33554:function(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{Z:function(){return r}})},46385:function(e,t,n){"use strict";function r(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function i(e,t){this._context=e,this._k=(1-t)/6}n.d(t,{pC:function(){return i},xm:function(){return r}}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:r(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:r(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},t.ZP=function e(t){function n(e){return new i(e,t)}return n.tension=function(t){return e(+t)},n}(0)},20651:function(e,t,n){"use strict";function r(e){this._context=e}function i(e){return new r(e)}n.d(t,{Z:function(){return i}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}}},27266:function(e,t,n){"use strict";function r(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0);return((o<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs((o*i+a*r)/(r+i)))||0}function i(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function o(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function a(e){this._context=e}function s(e){this._context=new l(e)}function l(e){this._context=e}function u(e){return new a(e)}function c(e){return new s(e)}n.d(t,{Z:function(){return u},s:function(){return c}}),a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:o(this,this._t0,i(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,o(this,i(this,n=r(this,e,t)),n);break;default:o(this,this._t0,n=r(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(s.prototype=Object.create(a.prototype)).point=function(e,t){a.prototype.point.call(this,t,e)},l.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}}},23165:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},j:function(){return r}});var r=o(n(20651).Z);function i(e){this._curve=e}function o(e){function t(t){return new i(e(t))}return t._curve=e,t}i.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),-(t*Math.cos(e)))}}},45742:function(e,t,n){"use strict";function r(e,t){this._context=e,this._t=t}function i(e){return new r(e,.5)}function o(e){return new r(e,0)}function a(e){return new r(e,1)}n.d(t,{RN:function(){return o},ZP:function(){return i},cD:function(){return a}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}}},59207:function(e,t,n){"use strict";n.r(t),n.d(t,{arc:function(){return r.Z},area:function(){return i.Z},areaRadial:function(){return u},curveBasis:function(){return j},curveBasisClosed:function(){return S},curveBasisOpen:function(){return _},curveBundle:function(){return M},curveCardinal:function(){return A.ZP},curveCardinalClosed:function(){return P},curveCardinalOpen:function(){return R},curveCatmullRom:function(){return F},curveCatmullRomClosed:function(){return V},curveCatmullRomOpen:function(){return B},curveLinear:function(){return W.Z},curveLinearClosed:function(){return U},curveMonotoneX:function(){return q.Z},curveMonotoneY:function(){return q.s},curveNatural:function(){return G},curveStep:function(){return K.ZP},curveStepAfter:function(){return K.cD},curveStepBefore:function(){return K.RN},line:function(){return o.Z},lineRadial:function(){return l.Z},linkHorizontal:function(){return d.h5},linkRadial:function(){return d.M4},linkVertical:function(){return d.rR},pie:function(){return a.Z},pointRadial:function(){return c.Z},radialArea:function(){return u},radialLine:function(){return l.Z},stack:function(){return X.Z},stackOffsetDiverging:function(){return J.Z},stackOffsetExpand:function(){return Q.Z},stackOffsetNone:function(){return ee.Z},stackOffsetSilhouette:function(){return et.Z},stackOffsetWiggle:function(){return en.Z},stackOrderAppearance:function(){return er.Z},stackOrderAscending:function(){return ei.Z},stackOrderDescending:function(){return eo.Z},stackOrderInsideOut:function(){return ea.Z},stackOrderNone:function(){return es.Z},stackOrderReverse:function(){return el.Z},symbol:function(){return f.Z},symbolCircle:function(){return h.Z},symbolCross:function(){return p.Z},symbolDiamond:function(){return m.Z},symbolSquare:function(){return v.Z},symbolStar:function(){return g.Z},symbolTriangle:function(){return y.Z},symbolWye:function(){return b.Z},symbols:function(){return f.u}});var r=n(38764),i=n(79493),o=n(79767),a=n(69619),s=n(23165),l=n(8329);function u(){var e=(0,i.Z)().curve(s.j),t=e.curve,n=e.lineX0,r=e.lineX1,o=e.lineY0,a=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return(0,l.X)(n())},delete e.lineX0,e.lineEndAngle=function(){return(0,l.X)(r())},delete e.lineX1,e.lineInnerRadius=function(){return(0,l.X)(o())},delete e.lineY0,e.lineOuterRadius=function(){return(0,l.X)(a())},delete e.lineY1,e.curve=function(e){return arguments.length?t((0,s.Z)(e)):t()._curve},e}var c=n(3326),d=n(72215),f=n(24037),h=n(62628),p=n(9135),m=n(82893),v=n(44523),g=n(86707),y=n(42965),b=n(60598);function x(){}function w(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function E(e){this._context=e}function j(e){return new E(e)}function k(e){this._context=e}function S(e){return new k(e)}function O(e){this._context=e}function _(e){return new O(e)}function C(e,t){this._basis=new E(e),this._beta=t}E.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:w(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},k.prototype={areaStart:x,areaEnd:x,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},O.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},C.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],o=t[0],a=e[n]-i,s=t[n]-o,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*a),this._beta*t[l]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var M=function e(t){function n(e){return 1===t?new E(e):new C(e,t)}return n.beta=function(t){return e(+t)},n}(.85),A=n(46385);function T(e,t){this._context=e,this._k=(1-t)/6}T.prototype={areaStart:x,areaEnd:x,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:(0,A.xm)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var P=function e(t){function n(e){return new T(e,t)}return n.tension=function(t){return e(+t)},n}(0);function N(e,t){this._context=e,this._k=(1-t)/6}N.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:(0,A.xm)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var R=function e(t){function n(e){return new N(e,t)}return n.tension=function(t){return e(+t)},n}(0),D=n(15);function Z(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>D.Ho){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>D.Ho){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*u+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function L(e,t){this._context=e,this._alpha=t}L.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Z(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var F=function e(t){function n(e){return t?new L(e,t):new A.pC(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function z(e,t){this._context=e,this._alpha=t}z.prototype={areaStart:x,areaEnd:x,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Z(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var V=function e(t){function n(e){return t?new z(e,t):new T(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function I(e,t){this._context=e,this._alpha=t}I.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Z(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var B=function e(t){function n(e){return t?new I(e,t):new N(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function H(e){this._context=e}function U(e){return new H(e)}H.prototype={areaStart:x,areaEnd:x,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};var W=n(20651),q=n(27266);function $(e){this._context=e}function Y(e){var t,n,r=e.length-1,i=Array(r),o=Array(r),a=Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(t=0,o[r-1]=(e[r]+i[r-1])/2;t1?0:e<-1?d:Math.acos(e)}function m(e){return e>=1?f:e<=-1?-f:Math.asin(e)}},76751:function(e,t,n){"use strict";function r(e,t){if((s=e.length)>0)for(var n,r,i,o,a,s,l=0,u=e[t[0]].length;l0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)}n.d(t,{Z:function(){return r}})},22254:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(90541);function i(e,t){if((i=e.length)>0){for(var n,i,o,a=0,s=e[0].length;a1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o0){for(var n,i=0,o=e[t[0]],a=o.length;i0&&(i=(n=e[t[0]]).length)>0){for(var n,i,o,a=0,s=1;so&&(o=t,r=n);return r}},19721:function(e,t,n){"use strict";n.d(t,{S:function(){return o},Z:function(){return i}});var r=n(81182);function i(e){var t=e.map(o);return(0,r.Z)(e).sort(function(e,n){return t[e]-t[n]})}function o(e){for(var t,n=0,r=-1,i=e.length;++r=0;)n[t]=t;return n}n.d(t,{Z:function(){return r}})},40277:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(81182);function i(e){return(0,r.Z)(e).reverse()}},69619:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(33554);function i(e,t){return te?1:t>=e?0:NaN}function o(e){return e}var a=n(15);function s(){var e=o,t=i,n=null,s=(0,r.Z)(0),l=(0,r.Z)(a.BZ),u=(0,r.Z)(0);function c(r){var i,o,c,d,f,h=r.length,p=0,m=Array(h),v=Array(h),g=+s.apply(this,arguments),y=Math.min(a.BZ,Math.max(-a.BZ,l.apply(this,arguments)-g)),b=Math.min(Math.abs(y)/h,u.apply(this,arguments)),x=b*(y<0?-1:1);for(i=0;i0&&(p+=f);for(null!=t?m.sort(function(e,n){return t(v[e],v[n])}):null!=n&&m.sort(function(e,t){return n(r[e],r[t])}),i=0,c=p?(y-h*x)/p:0;i0?f*c:0)+x,v[o]={data:r[o],index:i,value:f,startAngle:g,endAngle:d,padAngle:b};return v}return c.value=function(t){return arguments.length?(e="function"==typeof t?t:(0,r.Z)(+t),c):e},c.sortValues=function(e){return arguments.length?(t=e,n=null,c):t},c.sort=function(e){return arguments.length?(n=e,t=null,c):n},c.startAngle=function(e){return arguments.length?(s="function"==typeof e?e:(0,r.Z)(+e),c):s},c.endAngle=function(e){return arguments.length?(l="function"==typeof e?e:(0,r.Z)(+e),c):l},c.padAngle=function(e){return arguments.length?(u="function"==typeof e?e:(0,r.Z)(+e),c):u},c}},11053:function(e,t,n){"use strict";function r(e){return e[0]}function i(e){return e[1]}n.d(t,{x:function(){return r},y:function(){return i}})},3326:function(e,t,n){"use strict";function r(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}n.d(t,{Z:function(){return r}})},98926:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(72299),i=n(33554),o=n(90541),a=n(81182);function s(e,t){return e[t]}function l(){var e=(0,i.Z)([]),t=a.Z,n=o.Z,l=s;function u(r){var i,o,a=e.apply(this,arguments),s=r.length,u=a.length,c=Array(u);for(i=0;ie.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.yB)/i.UD,e=>e.getDate()-1);t.Z=o;var a=o.range},1514:function(e,t,n){"use strict";n.d(t,{UD:function(){return a},Y2:function(){return o},Ym:function(){return r},iM:function(){return s},jz:function(){return l},qz:function(){return u},yB:function(){return i}});let r=1e3,i=60*r,o=60*i,a=24*o,s=7*a,l=30*a,u=365*a},54076:function(e,t,n){"use strict";n.d(t,{i:function(){return a}});var r=n(22179),i=n(1514),o=(0,r.Z)(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.Ym-e.getMinutes()*i.yB)},function(e,t){e.setTime(+e+t*i.Y2)},function(e,t){return(t-e)/i.Y2},function(e){return e.getHours()});t.Z=o;var a=o.range},11365:function(e,t,n){"use strict";n.r(t),n.d(t,{timeDay:function(){return l.Z},timeDays:function(){return l.a},timeFriday:function(){return u.mC},timeFridays:function(){return u.b$},timeHour:function(){return s.Z},timeHours:function(){return s.i},timeInterval:function(){return r.Z},timeMillisecond:function(){return i.Z},timeMilliseconds:function(){return i.m},timeMinute:function(){return a.Z},timeMinutes:function(){return a.L},timeMonday:function(){return u.wA},timeMondays:function(){return u.bJ},timeMonth:function(){return c.Z},timeMonths:function(){return c.e},timeSaturday:function(){return u.EY},timeSaturdays:function(){return u.Ff},timeSecond:function(){return o.Z},timeSeconds:function(){return o.m},timeSunday:function(){return u.OM},timeSundays:function(){return u.vm},timeThursday:function(){return u.bL},timeThursdays:function(){return u.$t},timeTickInterval:function(){return y._g},timeTicks:function(){return y.jK},timeTuesday:function(){return u.sy},timeTuesdays:function(){return u.aU},timeWednesday:function(){return u.zg},timeWednesdays:function(){return u.Ld},timeWeek:function(){return u.OM},timeWeeks:function(){return u.vm},timeYear:function(){return d.Z},timeYears:function(){return d.g},utcDay:function(){return p.Z},utcDays:function(){return p.y},utcFriday:function(){return m.QQ},utcFridays:function(){return m.fz},utcHour:function(){return h.Z},utcHours:function(){return h.X},utcMillisecond:function(){return i.Z},utcMilliseconds:function(){return i.m},utcMinute:function(){return f.Z},utcMinutes:function(){return f.N},utcMonday:function(){return m.l6},utcMondays:function(){return m.$3},utcMonth:function(){return v.Z},utcMonths:function(){return v.K},utcSaturday:function(){return m.g4},utcSaturdays:function(){return m.Q_},utcSecond:function(){return o.Z},utcSeconds:function(){return o.m},utcSunday:function(){return m.Ox},utcSundays:function(){return m.SU},utcThursday:function(){return m.hB},utcThursdays:function(){return m.xj},utcTickInterval:function(){return y.jo},utcTicks:function(){return y.WG},utcTuesday:function(){return m.J1},utcTuesdays:function(){return m.DK},utcWednesday:function(){return m.b3},utcWednesdays:function(){return m.uy},utcWeek:function(){return m.Ox},utcWeeks:function(){return m.SU},utcYear:function(){return g.Z},utcYears:function(){return g.D}});var r=n(22179),i=n(30356),o=n(52546),a=n(18450),s=n(54076),l=n(68603),u=n(76231),c=n(50690),d=n(97344),f=n(52004),h=n(28239),p=n(12370),m=n(97631),v=n(94758),g=n(2908),y=n(1381)},22179:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(t,n,o,a){function s(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return s.floor=function(e){return t(e=new Date(+e)),e},s.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},s.round=function(e){var t=s(e),n=s.ceil(e);return e-t0))return a;do a.push(o=new Date(+e)),n(e,i),t(e);while(o=e)for(;t(e),!r(e);)e.setTime(e-1)},function(e,t){if(e>=e){if(t<0)for(;++t<=0;)for(;n(e,-1),!r(e););else for(;--t>=0;)for(;n(e,1),!r(e););}})},o&&(s.count=function(e,n){return r.setTime(+e),i.setTime(+n),t(r),t(i),Math.floor(o(r,i))},s.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?s.filter(a?function(t){return a(t)%e==0}:function(t){return s.count(0,t)%e==0}):s:null}),s}}});var r=new Date,i=new Date},30356:function(e,t,n){"use strict";n.d(t,{m:function(){return o}});var r=n(22179),i=(0,r.Z)(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});i.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?(0,r.Z)(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):i:null},t.Z=i;var o=i.range},18450:function(e,t,n){"use strict";n.d(t,{L:function(){return a}});var r=n(22179),i=n(1514),o=(0,r.Z)(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.Ym)},function(e,t){e.setTime(+e+t*i.yB)},function(e,t){return(t-e)/i.yB},function(e){return e.getMinutes()});t.Z=o;var a=o.range},50690:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var r=(0,n(22179).Z)(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});t.Z=r;var i=r.range},52546:function(e,t,n){"use strict";n.d(t,{m:function(){return a}});var r=n(22179),i=n(1514),o=(0,r.Z)(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*i.Ym)},function(e,t){return(t-e)/i.Ym},function(e){return e.getUTCSeconds()});t.Z=o;var a=o.range},1381:function(e,t,n){"use strict";n.d(t,{_g:function(){return O},jK:function(){return S},jo:function(){return k},WG:function(){return j}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=i?s*=5:l>=o&&(s*=2),t>>1;0>n(e[o],t)?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>{var r;return(r=e(t))n?1:r>=n?0:NaN}),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);let a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}})(([,,e])=>e).right(c,i);if(o===c.length)return e.every(a(t/s.qz,n/s.qz,r));if(0===o)return l.Z.every(Math.max(a(t,n,r),1));let[u,d]=c[i/c[o-1][2]0?(0,r.Z)(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null},t.Z=i;var o=i.range},76231:function(e,t,n){"use strict";n.d(t,{$t:function(){return g},EY:function(){return f},Ff:function(){return b},Ld:function(){return v},OM:function(){return a},aU:function(){return m},b$:function(){return y},bJ:function(){return p},bL:function(){return c},mC:function(){return d},sy:function(){return l},vm:function(){return h},wA:function(){return s},zg:function(){return u}});var r=n(22179),i=n(1514);function o(e){return(0,r.Z)(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.yB)/i.iM})}var a=o(0),s=o(1),l=o(2),u=o(3),c=o(4),d=o(5),f=o(6),h=a.range,p=s.range,m=l.range,v=u.range,g=c.range,y=d.range,b=f.range},97344:function(e,t,n){"use strict";n.d(t,{g:function(){return o}});var r=n(22179),i=(0,r.Z)(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});i.every=function(e){return isFinite(e=Math.floor(e))&&e>0?(0,r.Z)(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null},t.Z=i;var o=i.range},19785:function(e,t,n){"use strict";function r(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:function(){return r}})},66700:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(19785);function i(e){(0,r.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(Error().stack)),new Date(NaN))}},36386:function(e){function t(e,t,n){function r(){var u=Date.now()-s;u=0?i=setTimeout(r,t-u):(i=null,n||(l=e.apply(a,o),a=o=null))}null==t&&(t=100);var i,o,a,s,l,u=function(){a=this,o=arguments,s=Date.now();var u=n&&!i;return i||(i=setTimeout(r,t)),u&&(l=e.apply(a,o),a=o=null),l};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(l=e.apply(a,o),a=o=null,clearTimeout(i),i=null)},u}t.debounce=t,e.exports=t},7114:function(e,t,n){"use strict";n.d(t,{TA:function(){return F}});var r=n(2784),i=n(78435),o=n.n(i),a=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==s},s="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function l(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c(Array.isArray(e)?[]:{},e,t):e}function u(e,t,n){return e.concat(t).map(function(e){return l(e,n)})}function c(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||u,n.isMergeableObject=n.isMergeableObject||a;var r,i,o=Array.isArray(t);return o!==Array.isArray(e)?l(t,n):o?n.arrayMerge(e,t,n):(i={},(r=n).isMergeableObject(e)&&Object.keys(e).forEach(function(t){i[t]=l(e[t],r)}),Object.keys(t).forEach(function(n){r.isMergeableObject(t[n])&&e[n]?i[n]=c(e[n],t[n],r):i[n]=l(t[n],r)}),i)}c.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return c(e,n,t)},{})};var d=c,f=n(65255),h=n(99625),p=function(e){return(0,h.Z)(e,4)},m=n(95598),v=n(31162),g=n(97885),y=n(22758),b=n(71354),x=n(57969),w=n(25186),E=function(e){return(0,g.Z)(e)?(0,m.Z)(e,x.Z):(0,y.Z)(e)?[e]:(0,v.Z)((0,b.Z)((0,w.Z)(e)))},j=function(e,t){};function k(){return(k=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function O(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(73463);var _=function(e){return Array.isArray(e)&&0===e.length},C=function(e){return"function"==typeof e},M=function(e){return null!==e&&"object"==typeof e},A=function(e){return"[object String]"===Object.prototype.toString.call(e)},T=function(e){return M(e)&&C(e.then)};function P(e,t,n,r){void 0===r&&(r=0);for(var i=E(t);e&&r=0?[]:{}}}return(0===o?e:i)[a[o]]===n?e:(void 0===n?delete i[a[o]]:i[a[o]]=n,0===o&&void 0===n&&delete r[a[o]],r)}var R=(0,r.createContext)(void 0);function D(e,t){switch(t.type){case"SET_VALUES":return k({},e,{values:t.payload});case"SET_TOUCHED":return k({},e,{touched:t.payload});case"SET_ERRORS":if(o()(e.errors,t.payload))return e;return k({},e,{errors:t.payload});case"SET_STATUS":return k({},e,{status:t.payload});case"SET_ISSUBMITTING":return k({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return k({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return k({},e,{values:N(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return k({},e,{touched:N(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return k({},e,{errors:N(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return k({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return k({},e,{touched:function e(t,n,r,i){void 0===r&&(r=new WeakMap),void 0===i&&(i={});for(var o=0,a=Object.keys(t);o=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var o,a=o;P(t,a.path)||(t=N(t,a.path,a.message))}}return t}(n)):t(n)})})},[v.validationSchema]),V=(0,r.useCallback)(function(e,t){return new Promise(function(n){return n(E.current[e].validate(t))})},[]),B=(0,r.useCallback)(function(e){var t=Object.keys(E.current).filter(function(e){return C(E.current[e].validate)});return Promise.all(t.length>0?t.map(function(t){return V(t,P(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")]).then(function(e){return e.reduce(function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=N(e,t[r],n)),e},{})})},[V]),H=(0,r.useCallback)(function(e){return Promise.all([B(e),v.validationSchema?F(e):{},v.validate?R(e):{}]).then(function(e){var t=e[0],n=e[1],r=e[2];return d.all([t,n,r],{arrayMerge:z})})},[v.validate,v.validationSchema,B,R,F]),U=I(function(e){return void 0===e&&(e=O.values),_({type:"SET_ISVALIDATING",payload:!0}),H(e).then(function(e){return w.current&&(_({type:"SET_ISVALIDATING",payload:!1}),_({type:"SET_ERRORS",payload:e})),e})});(0,r.useEffect)(function(){l&&!0===w.current&&o()(g.current,v.initialValues)&&U(g.current)},[l,U]);var W=(0,r.useCallback)(function(e){var t=e&&e.values?e.values:g.current,n=e&&e.errors?e.errors:y.current?y.current:v.initialErrors||{},r=e&&e.touched?e.touched:b.current?b.current:v.initialTouched||{},i=e&&e.status?e.status:x.current?x.current:v.initialStatus;g.current=t,y.current=n,b.current=r,x.current=i;var o=function(){_({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(v.onReset){var a=v.onReset(O.values,ec);T(a)?a.then(o):o()}else o()},[v.initialErrors,v.initialStatus,v.initialTouched]);(0,r.useEffect)(function(){!0===w.current&&!o()(g.current,v.initialValues)&&(h&&(g.current=v.initialValues,W()),l&&U(g.current))},[h,v.initialValues,W,l,U]),(0,r.useEffect)(function(){h&&!0===w.current&&!o()(y.current,v.initialErrors)&&(y.current=v.initialErrors||Z,_({type:"SET_ERRORS",payload:v.initialErrors||Z}))},[h,v.initialErrors]),(0,r.useEffect)(function(){h&&!0===w.current&&!o()(b.current,v.initialTouched)&&(b.current=v.initialTouched||L,_({type:"SET_TOUCHED",payload:v.initialTouched||L}))},[h,v.initialTouched]),(0,r.useEffect)(function(){h&&!0===w.current&&!o()(x.current,v.initialStatus)&&(x.current=v.initialStatus,_({type:"SET_STATUS",payload:v.initialStatus}))},[h,v.initialStatus,v.initialTouched]);var q=I(function(e){if(E.current[e]&&C(E.current[e].validate)){var t=P(O.values,e),n=E.current[e].validate(t);return T(n)?(_({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){_({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),_({type:"SET_ISVALIDATING",payload:!1})})):(_({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return v.validationSchema?(_({type:"SET_ISVALIDATING",payload:!0}),F(O.values,e).then(function(e){return e}).then(function(t){_({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),_({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),$=(0,r.useCallback)(function(e,t){var n=t.validate;E.current[e]={validate:n}},[]),Y=(0,r.useCallback)(function(e){delete E.current[e]},[]),G=I(function(e,t){return _({type:"SET_TOUCHED",payload:e}),(void 0===t?a:t)?U(O.values):Promise.resolve()}),K=(0,r.useCallback)(function(e){_({type:"SET_ERRORS",payload:e})},[]),X=I(function(e,t){var r=C(e)?e(O.values):e;return _({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?U(r):Promise.resolve()}),Q=(0,r.useCallback)(function(e,t){_({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),J=I(function(e,t,r){return _({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?U(N(O.values,e,t)):Promise.resolve()}),ee=(0,r.useCallback)(function(e,t){var n,r=t,i=e;if(!A(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,a=o.type,s=o.name,l=o.id,u=o.value,c=o.checked,d=(o.outerHTML,o.options),f=o.multiple;r=t||s||l,i=/number|range/.test(a)?isNaN(n=parseFloat(u))?"":n:/checkbox/.test(a)?function(e,t,n){if("boolean"==typeof e)return!!t;var r=[],i=!1,o=-1;if(Array.isArray(e))r=e,i=(o=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return!!t;return t&&n&&!i?r.concat(n):i?r.slice(0,o).concat(r.slice(o+1)):r}(P(O.values,r),c,u):d&&f?Array.from(d).filter(function(e){return e.selected}).map(function(e){return e.value}):u}r&&J(r,i)},[J,O.values]),et=I(function(e){if(A(e))return function(t){return ee(t,e)};ee(e)}),en=I(function(e,t,n){return void 0===t&&(t=!0),_({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?a:n)?U(O.values):Promise.resolve()}),er=(0,r.useCallback)(function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,i=n.id;n.outerHTML,en(t||r||i,!0)},[en]),ei=I(function(e){if(A(e))return function(t){return er(t,e)};er(e)}),eo=(0,r.useCallback)(function(e){C(e)?_({type:"SET_FORMIK_STATE",payload:e}):_({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),ea=(0,r.useCallback)(function(e){_({type:"SET_STATUS",payload:e})},[]),es=(0,r.useCallback)(function(e){_({type:"SET_ISSUBMITTING",payload:e})},[]),el=I(function(){return _({type:"SUBMIT_ATTEMPT"}),U().then(function(e){var t,n=e instanceof Error;if(!n&&0===Object.keys(e).length){try{if(t=ed(),void 0===t)return}catch(e){throw e}return Promise.resolve(t).then(function(e){return w.current&&_({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(w.current)throw _({type:"SUBMIT_FAILURE"}),e})}if(w.current&&(_({type:"SUBMIT_FAILURE"}),n))throw e})}),eu=I(function(e){e&&e.preventDefault&&C(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&C(e.stopPropagation)&&e.stopPropagation(),el().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),ec={resetForm:W,validateForm:U,validateField:q,setErrors:K,setFieldError:Q,setFieldTouched:en,setFieldValue:J,setStatus:ea,setSubmitting:es,setTouched:G,setValues:X,setFormikState:eo,submitForm:el},ed=I(function(){return p(O.values,ec)}),ef=I(function(e){e&&e.preventDefault&&C(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&C(e.stopPropagation)&&e.stopPropagation(),W()}),eh=(0,r.useCallback)(function(e){return{value:P(O.values,e),error:P(O.errors,e),touched:!!P(O.touched,e),initialValue:P(g.current,e),initialTouched:!!P(b.current,e),initialError:P(y.current,e)}},[O.errors,O.touched,O.values]),ep=(0,r.useCallback)(function(e){return{setValue:function(t,n){return J(e,t,n)},setTouched:function(t,n){return en(e,t,n)},setError:function(t){return Q(e,t)}}},[J,en,Q]),em=(0,r.useCallback)(function(e){var t=M(e),n=t?e.name:e,r=P(O.values,n),i={name:n,value:r,onChange:et,onBlur:ei};if(t){var o=e.type,a=e.value,s=e.as,l=e.multiple;"checkbox"===o?void 0===a?i.checked=!!r:(i.checked=!!(Array.isArray(r)&&~r.indexOf(a)),i.value=a):"radio"===o?(i.checked=r===a,i.value=a):"select"===s&&l&&(i.value=i.value||[],i.multiple=!0)}return i},[ei,et,O.values]),ev=(0,r.useMemo)(function(){return!o()(g.current,O.values)},[g.current,O.values]),eg=(0,r.useMemo)(function(){return void 0!==u?ev?O.errors&&0===Object.keys(O.errors).length:!1!==u&&C(u)?u(v):u:O.errors&&0===Object.keys(O.errors).length},[u,ev,O.errors,v]);return k({},O,{initialValues:g.current,initialErrors:y.current,initialTouched:b.current,initialStatus:x.current,handleBlur:ei,handleChange:et,handleReset:ef,handleSubmit:eu,resetForm:W,setErrors:K,setFormikState:eo,setFieldTouched:en,setFieldValue:J,setFieldError:Q,setStatus:ea,setSubmitting:es,setTouched:G,setValues:X,submitForm:el,validateForm:U,validateField:q,isValid:eg,dirty:ev,unregisterField:Y,registerField:$,getFieldProps:em,getFieldMeta:eh,getFieldHelpers:ep,validateOnBlur:a,validateOnChange:n,validateOnMount:l})}function z(e,t,n){var r=e.slice();return t.forEach(function(t,i){if(void 0===r[i]){var o=!1!==n.clone&&n.isMergeableObject(t);r[i]=o?d(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[i]=d(e[i],t,n):-1===e.indexOf(t)&&r.push(t)}),r}var V="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;function I(e){var t=(0,r.useRef)(e);return V(function(){t.current=e}),(0,r.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;re?t:e},0);return Array.from(k({},e,{length:t+1}))};(function(e){function t(t){var n;return(n=e.call(this,t)||this).updateArrayField=function(e,t,r){var i=n.props,o=i.name;(0,i.formik.setFormikState)(function(n){var i="function"==typeof r?r:e,a="function"==typeof t?t:e,s=N(n.values,o,e(P(n.values,o))),l=r?i(P(n.errors,o)):void 0,u=t?a(P(n.touched,o)):void 0;return _(l)&&(l=void 0),_(u)&&(u=void 0),k({},n,{values:s,errors:r?N(n.errors,o,l):n.errors,touched:t?N(n.touched,o,u):n.touched})})},n.push=function(e){return n.updateArrayField(function(t){return[].concat(q(t),[(0,h.Z)(e,5)])},!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField(function(n){return H(n,e,t)},!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField(function(n){return B(n,e,t)},!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField(function(n){return U(n,e,t)},function(t){return U(t,e,null)},function(t){return U(t,e,null)})},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField(function(n){return W(n,e,t)},!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField(function(n){var r=n?[e].concat(n):[e];return t<0&&(t=r.length),r},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n}),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(O(n)),n.pop=n.pop.bind(O(n)),n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e;var n=t.prototype;return n.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!o()(P(e.formik.values,e.name),P(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(e){var t;return this.updateArrayField(function(n){var r=n?q(n):[];return t||(t=r[e]),C(r.splice)&&r.splice(e,1),r},!0,!0),t},n.pop=function(){var e;return this.updateArrayField(function(t){return e||(e=t&&t.pop&&t.pop()),t},!0,!0),e},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,i=t.render,o=t.children,a=t.name,s=S(t.formik,["validate","validationSchema"]),l=k({},e,{form:s,name:a});return n?(0,r.createElement)(n,l):i?i(l):o?"function"==typeof o?o(l):0===r.Children.count(o)?null:r.Children.only(o):null},t})(r.Component).defaultProps={validateOnChange:!0}},73463:function(e,t,n){"use strict";var r=n(73887),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),v=0;v */t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,c=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:(h?-1:1)*(1/0);a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,f=23===i?5960464477539062e-23:0,h=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[n+h]=255&a,h+=p,a/=256,u-=8);e[n+h-p]|=128*m}},39515:function(e,t,n){var r=n(38761)(n(37772),"DataView");e.exports=r},89612:function(e,t,n){var r=n(52118),i=n(96909),o=n(98138),a=n(4174),s=n(7942);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++ti?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r=i?e:r(e,t,n)}},24019:function(e,t,n){var r=n(37772)["__core-js_shared__"];e.exports=r},55463:function(e){e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}},83126:function(e,t,n){var r=n(23895),i=n(33880),o=n(8435),a=n(66188);e.exports=function(e){return function(t){var n=i(t=a(t))?o(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},34311:function(e,t,n){var r=n(81207),i=n(97329),o=n(11618),a=RegExp("['’]","g");e.exports=function(e){return function(t){return r(o(i(t).replace(a,"")),e,"")}}},61655:function(e,t,n){var r=n(6435)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=r},83043:function(e,t,n){var r=n(38761),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},74871:function(e,t,n){var r=n(45386),i=n(87064),o=n(59950);e.exports=function(e,t,n,a,s,l){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,v=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p-1&&e%1==0&&e-1}},94769:function(e,t,n){var r=n(22218);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},92411:function(e,t,n){var r=n(89612),i=n(80235),o=n(10326);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},36417:function(e,t,n){var r=n(27937);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},86928:function(e,t,n){var r=n(27937);e.exports=function(e){return r(this,e).get(e)}},18052:function(e,t,n){var r=n(27937);e.exports=function(e){return r(this,e).has(e)}},24150:function(e,t,n){var r=n(27937);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},75179:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},73477:function(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},77777:function(e,t,n){var r=n(30733);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},99191:function(e,t,n){var r=n(38761)(Object,"create");e.exports=r},54248:function(e,t,n){var r=n(60241)(Object.keys,Object);e.exports=r},4146:function(e,t,n){e=n.nmd(e);var r=n(51242),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},37157:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},60241:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},37772:function(e,t,n){var r=n(51242),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},52842:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},52482:function(e){e.exports=function(e){return this.__data__.has(e)}},16909:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},15243:function(e,t,n){var r=n(80235);e.exports=function(){this.__data__=new r,this.size=0}},72858:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},4417:function(e){e.exports=function(e){return this.__data__.get(e)}},8605:function(e){e.exports=function(e){return this.__data__.has(e)}},71418:function(e,t,n){var r=n(80235),i=n(10326),o=n(96738);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},8435:function(e,t,n){var r=n(50217),i=n(33880),o=n(63344);e.exports=function(e){return i(e)?o(e):r(e)}},54452:function(e,t,n){var r=n(77777),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)}),t});e.exports=a},33812:function(e,t,n){var r=n(4795),i=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},87035:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},52153:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},63344:function(e){var t="\ud800-\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\ud83c[\udffb-\udfff]",i="[^"+t+"]",o="(?:\ud83c[\udde6-\uddff]){2}",a="[\ud800-\udbff][\udc00-\udfff]",s="(?:"+n+"|"+r+")?",l="[\\ufe0e\\ufe0f]?",u="(?:\\u200d(?:"+[i,o,a].join("|")+")"+l+s+")*",c=RegExp(r+"(?="+r+")|(?:"+[i+n+"?",n,o,a,"["+t+"]"].join("|")+")"+(l+s+u),"g");e.exports=function(e){return e.match(c)||[]}},75304:function(e){var t="\ud800-\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="['’]",s="["+o+"]",l="["+r+"]",u="[^"+t+o+"\\d+"+n+r+i+"]",c="(?:\ud83c[\udde6-\uddff]){2}",d="[\ud800-\udbff][\udc00-\udfff]",f="["+i+"]",h="(?:"+l+"|"+u+")",p="(?:"+a+"(?:d|ll|m|re|s|t|ve))?",m="(?:"+a+"(?:D|LL|M|RE|S|T|VE))?",v="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",g="[\\ufe0e\\ufe0f]?",y="(?:\\u200d(?:"+["[^"+t+"]",c,d].join("|")+")"+g+v+")*",b="(?:"+["["+n+"]",c,d].join("|")+")"+(g+v+y),x=RegExp([f+"?"+l+"+"+p+"(?="+[s,f,"$"].join("|")+")","(?:"+f+"|"+u+")+"+m+"(?="+[s,f+h,"$"].join("|")+")",f+"?"+h+"+"+p,f+"+"+m,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",b].join("|"),"g");e.exports=function(e){return e.match(x)||[]}},96009:function(e,t,n){var r=n(82108),i=n(34311)(function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)});e.exports=i},82108:function(e,t,n){var r=n(66188),i=n(23779);e.exports=function(e){return i(r(e).toLowerCase())}},54073:function(e,t,n){var r=n(29259),i=n(61100),o=n(7642),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,u,c,d,f,h,p=0,m=!1,v=!1,g=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=l,r=u;return l=u=void 0,p=t,d=e.apply(r,n)}function b(e){var n=e-h,r=e-p;return void 0===h||n>=t||n<0||v&&r>=c}function x(){var e,n,r,o=i();if(b(o))return w(o);f=setTimeout(x,(e=o-h,n=o-p,r=t-e,v?s(r,c-n):r))}function w(e){return(f=void 0,g&&l)?y(e):(l=u=void 0,d)}function E(){var e,n=i(),r=b(n);if(l=arguments,u=this,h=n,r){if(void 0===f)return p=e=h,f=setTimeout(x,t),m?y(e):d;if(v)return clearTimeout(f),f=setTimeout(x,t),y(h)}return void 0===f&&(f=setTimeout(x,t)),d}return t=o(t)||0,r(n)&&(m=!!n.leading,c=(v="maxWait"in n)?a(o(n.maxWait)||0,t):c,g="trailing"in n?!!n.trailing:g),E.cancel=function(){void 0!==f&&clearTimeout(f),p=0,l=h=u=f=void 0},E.flush=function(){return void 0===f?d:w(i())},E}},97329:function(e,t,n){var r=n(61655),i=n(66188),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,r).replace(a,"")}},41225:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},72579:function(e,t,n){var r=n(13324);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},93352:function(e,t,n){var r=n(32726),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,r)}},95041:function(e,t,n){var r=n(20187),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,r)}},23059:function(e){e.exports=function(e){return e}},79631:function(e,t,n){var r=n(15183),i=n(15125),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},86152:function(e){var t=Array.isArray;e.exports=t},67878:function(e,t,n){var r=n(61049),i=n(61158);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},73226:function(e,t,n){e=n.nmd(e);var r=n(37772),i=n(36330),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=s?s.isBuffer:void 0;e.exports=l||i},61049:function(e,t,n){var r=n(53366),i=n(29259);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},61158:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},29259:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},15125:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},4795:function(e,t,n){var r=n(53366),i=n(15125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},77598:function(e,t,n){var r=n(35522),i=n(47826),o=n(4146),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},90249:function(e,t,n){var r=n(1634),i=n(86411),o=n(67878);e.exports=function(e){return o(e)?r(e):i(e)}},19950:function(e,t,n){var r=n(13940),i=n(26548),o=n(68286);e.exports=function(e,t){var n={};return t=o(t,3),i(e,function(e,i,o){r(n,t(e,i,o),e)}),n}},34519:function(e,t,n){var r=n(13940),i=n(26548),o=n(68286);e.exports=function(e,t){var n={};return t=o(t,3),i(e,function(e,i,o){r(n,i,t(e,i,o))}),n}},30733:function(e,t,n){var r=n(96738);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},61100:function(e,t,n){var r=n(37772);e.exports=function(){return r.Date.now()}},65798:function(e,t,n){var r=n(20256),i=n(82952),o=n(21401),a=n(33812);e.exports=function(e){return o(e)?r(a(e)):i(e)}},57370:function(e,t,n){var r=n(34311)(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});e.exports=r},30981:function(e){e.exports=function(){return[]}},36330:function(e){e.exports=function(){return!1}},7642:function(e,t,n){var r=n(51704),i=n(29259),o=n(4795),a=0/0,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):s.test(e)?a:+e}},66188:function(e,t,n){var r=n(1054);e.exports=function(e){return null==e?"":r(e)}},23779:function(e,t,n){var r=n(83126)("toUpperCase");e.exports=r},11618:function(e,t,n){var r=n(45981),i=n(83559),o=n(66188),a=n(75304);e.exports=function(e,t,n){return(e=o(e),void 0===(t=n?void 0:t))?i(e)?a(e):r(e):e.match(t)||[]}},53207:function(e,t,n){var r=n(96570);r.prototype.formulaEval=function(){"use strict";for(var e,t,n,r=[],i=this.value,o=0;o"+t.value+""+i[o].show+""+e.value+"",type:10}):r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+""+e.value+"",type:1})):2===i[o].type||9===i[o].type?(e=r.pop(),t=r.pop(),r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+i[o].show+(1!=e.type?"(":"")+e.value+(1!=e.type?")":""),type:i[o].type})):12===i[o].type&&(e=r.pop(),t=r.pop(),n=r.pop(),r.push({value:i[o].show+"("+n.value+","+t.value+","+e.value+")",type:12}));return r[0].value},e.exports=r},66655:function(e,t,n){"use strict";var r=n(72346);function i(e,t){for(var n=0;np.length-2?p.length-1:e.length-l;n>0;n--)if(void 0!==p[n])for(i=0;i0&&kn)s.push(e);else{for(;n>=i&&!c||c&&i1)throw new r.Exception("Uncaught Syntax error");return o[0].value>1e15?"Infinity":parseFloat(o[0].value.toFixed(15))},r.eval=function(e,t,n){return void 0===t?this.lex(e).toPostfix().postfixEval():void 0!==n?this.lex(e,t).toPostfix().postfixEval(n):void 0!==t.length?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t)},e.exports=r},38617:function(e,t,n){"use strict";n.d(t,{F:function(){return u},f:function(){return c}});var r=n(2784);let i=["light","dark"],o="(prefers-color-scheme: dark)",a="undefined"==typeof window,s=(0,r.createContext)(void 0),l={setTheme:e=>{},themes:[]},u=()=>{var e;return null!==(e=(0,r.useContext)(s))&&void 0!==e?e:l},c=e=>(0,r.useContext)(s)?r.createElement(r.Fragment,null,e.children):r.createElement(f,e),d=["light","dark"],f=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:a=!0,storageKey:l="theme",themes:u=d,defaultTheme:c=n?"system":"light",attribute:f="data-theme",value:g,children:y,nonce:b})=>{let[x,w]=(0,r.useState)(()=>p(l,c)),[E,j]=(0,r.useState)(()=>p(l)),k=g?Object.values(g):u,S=(0,r.useCallback)(e=>{let r=e;if(!r)return;"system"===e&&n&&(r=v());let o=g?g[r]:r,s=t?m():null,l=document.documentElement;if("class"===f?(l.classList.remove(...k),o&&l.classList.add(o)):o?l.setAttribute(f,o):l.removeAttribute(f),a){let e=i.includes(c)?c:null,t=i.includes(r)?r:e;l.style.colorScheme=t}null==s||s()},[]),O=(0,r.useCallback)(e=>{w(e);try{localStorage.setItem(l,e)}catch(e){}},[e]),_=(0,r.useCallback)(t=>{let r=v(t);j(r),"system"===x&&n&&!e&&S("system")},[x,e]);(0,r.useEffect)(()=>{let e=window.matchMedia(o);return e.addListener(_),_(e),()=>e.removeListener(_)},[_]),(0,r.useEffect)(()=>{let e=e=>{e.key===l&&O(e.newValue||c)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[O]),(0,r.useEffect)(()=>{S(null!=e?e:x)},[e,x]);let C=(0,r.useMemo)(()=>({theme:x,setTheme:O,forcedTheme:e,resolvedTheme:"system"===x?E:x,themes:n?[...u,"system"]:u,systemTheme:n?E:void 0}),[x,O,e,E,n,u]);return r.createElement(s.Provider,{value:C},r.createElement(h,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:a,storageKey:l,themes:u,defaultTheme:c,attribute:f,value:g,children:y,attrs:k,nonce:b}),y)},h=(0,r.memo)(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:a,enableColorScheme:s,defaultTheme:l,value:u,attrs:c,nonce:d})=>{let f="system"===l,h="class"===n?`var d=document.documentElement,c=d.classList;c.remove(${c.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=s?i.includes(l)&&l?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${l}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(e,t=!1,r=!0)=>{let o=u?u[e]:e,a=t?e+"|| ''":`'${o}'`,l="";return s&&r&&!t&&i.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===n?l+=t||o?`c.add(${a})`:"null":o&&(l+=`d[s](n,${a})`),l},v=e?`!function(){${h}${m(e)}}()`:a?`!function(){try{${h}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${f})){var t='${o}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}${f?"":"else{"+m(l,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${h}var e=localStorage.getItem('${t}');if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}else{${m(l,!1,!1)};}${p}}catch(t){}}();`;return r.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:v}})},()=>!0),p=(e,t)=>{let n;if(!a){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},m=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},v=e=>(e||(e=window.matchMedia(o)),e.matches?"dark":"light")},86570:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(76133)}])},4941:function(e,t,n){"use strict";n.d(t,{Ul:function(){return s},WD:function(){return l},fu:function(){return c},o4:function(){return u}});var r=n(52322),i=n(13474),o=n(82851),a=n(99182);function s(e){let{currentPage:t,parentPage:n,commandPage:s,className:l,...u}=e,c=(0,a.U8)(e=>e.search);if((null==n?void 0:n.namespace)===(null==t?void 0:t.namespace)&&!c)return(0,r.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",l),value:"".concat(null==s?void 0:s.label," ").concat(u.children.toString()),...u})}function l(e){let{currentPage:t,commandPage:n,className:s,...l}=e,u=(0,a.U8)(e=>e.search),c=n.namespace.startsWith((null==t?void 0:t.namespace)||"");if(u&&c||n.namespace===(null==t?void 0:t.namespace))return(0,r.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",s),value:"".concat(n.label," ").concat(l.children.toString()),...l})}function u(e){let{currentPage:t,commandPage:n,className:s,...l}=e,u=(0,a.U8)(e=>e.search),c=n.namespace.startsWith((null==t?void 0:t.namespace)||"");if(u&&c||!t||n.namespace===(null==t?void 0:t.namespace))return(0,r.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",s),value:"".concat(n.label," ").concat(l.children.toString()),...l})}function c(e){let{heading:t,currentPage:n,commandPage:o,...s}=e,l=(0,a.U8)(e=>e.search);return(0,r.jsx)(a.mY.Group,{heading:l&&(null==n?void 0:n.namespace)!==o.namespace&&(0,r.jsx)(i.__J,{className:"px-1",size:"12",children:o.label}),...s})}n(2784)},3639:function(e,t,n){"use strict";n.d(t,{F:function(){return y}});var r=n(52322),i=n(4941);let o={namespace:"contracts/filterStatus",label:"Contracts filter by status"},a=[{id:"filterStatusActive",value:"active",label:"Contract is active"},{id:"filterStatusSuccessful",value:"successful",label:"Contract was successful"},{id:"filterStatusPending",value:"pending",label:"Contract is pending"},{id:"filterStatusRejected",value:"rejected",label:"Contract was rejected"},{id:"filterStatusFailed",value:"failed",label:"Contract has failed"}];function s(e){let{select:t,currentPage:n}=e;return(0,r.jsx)(i.fu,{currentPage:n,commandPage:o,children:a.map(e=>(0,r.jsx)(i.WD,{currentPage:n,commandPage:o,onSelect:()=>{t(e)},children:e.label},e.id+e.value))})}var l=n(30078),u=n(734);let c={namespace:"contracts/filterAddress",label:"Contracts filter by ID"};function d(e){let{select:t,currentPage:n}=e,{openDialog:o}=(0,l.Rh)(),a=(0,u.O)("");return(0,r.jsx)(i.fu,{currentPage:n,commandPage:c,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:c,onSelect:()=>{t(),o("contractsFilterContractId")},children:a.label})})}function f(e){let{select:t,currentPage:n,parentPage:o,commandPage:a}=e,{openDialog:s}=(0,l.Rh)();return(0,r.jsx)(i.Ul,{currentPage:n,parentPage:o,commandPage:a,onSelect:()=>{t(),s("contractsFilterContractId")},children:c.label})}function h(e){let{currentPage:t,select:n}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s,{currentPage:t,select:n}),(0,r.jsx)(d,{currentPage:t,select:n})]})}let p={namespace:"contracts",label:"Contracts"};function m(e){let{currentPage:t,parentPage:n,pushPage:a,select:s}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:p,onSelect:()=>{a(o)},children:o.label}),(0,r.jsx)(f,{currentPage:t,parentPage:n,commandPage:p,select:s})]})}var v=n(92838),g=n(2784);function y(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,{setFilter:s}=(0,v.G)(),l=(0,g.useCallback)(e=>{o&&o(),e&&s(e),a&&a()},[s,o,a]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m,{parentPage:n,currentPage:t,pushPage:i,select:l}),(0,r.jsx)(h,{currentPage:t,select:l})]})}},71930:function(e,t,n){"use strict";n.d(t,{_:function(){return i},h:function(){return o}});var r=n(27444);let i={home:"/",volumes:{index:"/volumes"},contracts:{index:"/contracts"},config:{index:"/config",host:"/config#host",pricing:"/config#pricing",dns:"/config#dns",bandwidth:"/config#bandwidth",registry:"/config#registry",accounts:"/config#accounts"},wallet:{view:"/wallet"},node:{index:"/node",txPool:"/node/txpool",peers:"/node/peers"},login:"/login"},o=r.dk},10842:function(e,t,n){"use strict";n.d(t,{iV:function(){return w},ZR:function(){return x}});var r=n(52322),i=n(2784),o=n(13474),a=n(25205),s=n(94977),l=n(6391),u=n.n(l);let c=[{value:"",label:"Off"},{value:"route53",label:"Route 53"},{value:"noip",label:"No-IP"},{value:"duckdns",label:"Duck DNS"},{value:"cloudflare",label:"Cloudflare"}],d={acceptingContracts:!1,netAddress:"",maxContractDuration:void 0,contractPrice:void 0,baseRPCPrice:void 0,sectorAccessPrice:void 0,collateralMultiplier:void 0,maxCollateral:void 0,storagePrice:void 0,egressPrice:void 0,ingressPrice:void 0,priceTableValidity:void 0,maxRegistryEntries:void 0,accountExpiry:void 0,maxAccountBalance:void 0,ingressLimit:void 0,egressLimit:void 0,dnsProvider:"",dnsIpv4:!1,dnsIpv6:!1,dnsDuckDnsToken:"",dnsNoIpEmail:"",dnsNoIpPassword:"",dnsAwsId:"",dnsAwsSecret:"",dnsAwsZoneId:"",dnsCloudflareToken:"",dnsCloudflareZoneId:""};function f(e){let{settings:t}=e,n=null;return"duckdns"===t.ddns.provider&&(n={dnsDuckDnsToken:t.ddns.options.token}),"noip"===t.ddns.provider&&(n={dnsNoIpEmail:t.ddns.options.email,dnsNoIpPassword:t.ddns.options.password}),"route53"===t.ddns.provider&&(n={dnsAwsId:t.ddns.options.id,dnsAwsSecret:t.ddns.options.secret,dnsAwsZoneId:t.ddns.options.zoneID}),"cloudflare"===t.ddns.provider&&(n={dnsCloudflareToken:t.ddns.options.token,dnsCloudflareZoneId:t.ddns.options.zoneID}),{acceptingContracts:t.acceptingContracts,netAddress:t.netAddress,maxContractDuration:new(u())(t.maxContractDuration).div((0,a.S5)(1)),contractPrice:(0,a.ll)(t.contractPrice,6),baseRPCPrice:(0,a.ll)((0,s.sS)(t.baseRPCPrice),6),sectorAccessPrice:(0,a.ll)((0,s.nS)(t.sectorAccessPrice),6),collateralMultiplier:new(u())(t.collateralMultiplier),maxCollateral:(0,a.ll)(t.maxCollateral,6),storagePrice:(0,a.ll)((0,s.SY)(t.storagePrice),6),egressPrice:(0,a.ll)((0,s.B1)(t.egressPrice),6),ingressPrice:(0,a.ll)((0,s.dK)(t.ingressPrice),6),priceTableValidity:new(u())(t.priceTableValidity).div(1e9).div(60),maxRegistryEntries:new(u())(t.maxRegistryEntries),accountExpiry:new(u())(t.accountExpiry).div(1e9).div(86400),maxAccountBalance:(0,a.ll)(t.maxAccountBalance,6),ingressLimit:(0,a.BT)(new(u())(t.ingressLimit)),egressLimit:(0,a.BT)(new(u())(t.egressLimit)),dnsProvider:t.ddns.provider,dnsIpv4:t.ddns.ipv4,dnsIpv6:t.ddns.ipv6,...n}}function h(e,t){return new(u())(12960).times(e).div((0,a.S5)(1)).times(t)}var p=n(27444),m=n(63955);function v(e,t){return t?new(u())(new(u())(e).div(t.sc.usd).div(10).toFixed(0)).times(10):void 0}var g=n(92762),y=n(9455);let b=(0,i.createContext)({}),x=()=>(0,i.useContext)(b);function w(e){let{children:t}=e,n=function(){let{settings:e,dynDNSCheck:t}=function(){let e=(0,p.rV)({config:{swr:{refreshInterval:(0,o.sWj)(1)}}}),t=(0,p.uo)({disabled:!e.data||!e.data.ddns.provider,config:{swr:{revalidateOnFocus:!1,errorRetryCount:0}}});return{settings:e,dynDNSCheck:t}}(),{form:n,fields:l,setShowAdvanced:b,showAdvanced:x}=function(){let e=(0,m.cI)({mode:"all",defaultValues:d}),t=e.watch("storagePrice"),n=e.watch("collateralMultiplier"),[o,s]=(0,g.Z)("v0/config/showAdvanced",{defaultValue:!1}),l=(0,y.BW)(),f=(0,i.useMemo)(()=>{var e;return function(e){let{showAdvanced:t,storageTBMonth:n,collateralMultiplier:i,rates:o}=e;return{acceptingContracts:{type:"boolean",category:"host",title:"Accepting contracts",description:(0,r.jsx)(r.Fragment,{children:"Whether or not the host is accepting contracts."}),validation:{}},netAddress:{type:"text",category:"host",title:"Address",description:(0,r.jsx)(r.Fragment,{children:"The network address of the host."}),placeholder:"my.host.com:9882",validation:{required:"required"}},maxContractDuration:{type:"number",category:"host",title:"Maximum contract duration",units:"months",decimalsLimit:2,suggestion:new(u())(6),suggestionTip:"The default maximum duration is 6 months.",description:(0,r.jsx)(r.Fragment,{children:"The maximum contract duration that the host will accept."}),hidden:!t,validation:{required:"required",validate:{min:e=>new(u())(e).gte((0,a.E6)(4320))||"must be at least 1 month"}}},storagePrice:{title:"Storage price",type:"siacoin",category:"pricing",units:"SC/TB/month",decimalsLimitSc:6,suggestion:o?v(1,o):void 0,suggestionTip:"The suggested storage price in siacoins per TB per month.",description:(0,r.jsx)(r.Fragment,{children:"The host's storage price in siacoins per TB per month."}),validation:{required:"required"}},egressPrice:{title:"Egress price",type:"siacoin",category:"pricing",units:"SC/TB",decimalsLimitSc:6,suggestion:o?v(10,o):void 0,suggestionTip:"The suggested egress price in siacoins for egress per TB.",description:(0,r.jsx)(r.Fragment,{children:"The host's egress price in siacoins per TB."}),validation:{required:"required"}},ingressPrice:{title:"Ingress price",type:"siacoin",category:"pricing",units:"SC/TB",suggestion:o?v(.05,o):void 0,suggestionTip:"The suggested ingress price in siacoins per TB.",decimalsLimitSc:6,description:(0,r.jsx)(r.Fragment,{children:"The host's ingress price in siacoins per TB."}),validation:{required:"required"}},collateralMultiplier:{title:"Collateral multiplier",type:"number",category:"pricing",units:"* storage price",placeholder:"2",decimalsLimit:1,description:(0,r.jsx)(r.Fragment,{children:"The host's target collateral as a multiple of storage price."}),suggestion:new(u())(2),suggestionTip:"The default multiplier is 2x the storage price.",validation:{required:"required"}},maxCollateral:{title:"Maximum collateral",type:"siacoin",category:"pricing",decimalsLimitSc:6,suggestion:n&&i?h(n,i):void 0,suggestionTip:"The suggested maximum collateral.",description:(0,r.jsx)(r.Fragment,{children:"The host's maximum collateral in siacoins."}),hidden:!t,validation:{required:"required"}},contractPrice:{title:"Contract price",type:"siacoin",category:"pricing",decimalsLimitSc:6,suggestionTip:"The suggested contract price.",tipsDecimalsLimitSc:1,suggestion:new(u())(.2),description:(0,r.jsx)(r.Fragment,{children:"The host's contract price in siacoins."}),hidden:!t,validation:{required:"required"}},baseRPCPrice:{title:"Base RPC price",type:"siacoin",category:"pricing",units:"SC/million",suggestion:new(u())(1),suggestionTip:"The suggested base RPC price in siacoins per million calls.",decimalsLimitSc:6,description:(0,r.jsx)(r.Fragment,{children:"The host's base RPC price in siacoins per million calls."}),hidden:!t,validation:{required:"required"}},sectorAccessPrice:{title:"Sector access price",type:"siacoin",category:"pricing",units:"SC/million",decimalsLimitSc:6,suggestion:new(u())(1),suggestionTip:"The suggested sector access price in siacoins per million sectors.",description:(0,r.jsx)(r.Fragment,{children:"The host's sector access price in siacoins per million sectors."}),hidden:!t,validation:{required:"required"}},priceTableValidity:{title:"Price table validity",type:"number",category:"pricing",units:"minutes",suggestion:new(u())(30),suggestionTip:"The suggested price table validity.",description:(0,r.jsx)(r.Fragment,{children:"How long a renter's registered price table remains valid."}),hidden:!t,validation:{required:"required"}},maxRegistryEntries:{title:"Maximum registry size",type:"number",category:"registry",units:"entries",suggestion:new(u())(1e3),suggestionTip:"The suggested maximum registry size.",decimalsLimit:0,description:(0,r.jsx)(r.Fragment,{children:"The maximum number of registry entries that the host will store. Each registry entry is up to 113 bytes."}),hidden:!t,validation:{required:"required"}},accountExpiry:{title:"Expiry",type:"number",category:"RHP3",units:"days",suggestion:new(u())(30),suggestionTip:"The suggested account expiry.",description:(0,r.jsx)(r.Fragment,{children:"How long a renter's ephemeral accounts are inactive before the host prunes them and recovers the remaining funds."}),hidden:!t,validation:{required:"required",validate:{min:e=>new(u())(e).gte(7)||"must be at least 1 week"}}},maxAccountBalance:{title:"Maximum balance",type:"siacoin",category:"RHP3",suggestion:new(u())(10),suggestionTip:"The suggested maximum account balance.",description:(0,r.jsx)(r.Fragment,{children:"Maximum balance a renter's ephemeral account can have. When the limit is reached, deposits are rejected until some of the funds have been spent."}),hidden:!t,validation:{required:"required",validate:{min:e=>new(u())(e).gte(1)||"must be at least 1 SC"}}},ingressLimit:{title:"Ingress limit",type:"number",category:"bandwidth",units:"MB/second",description:(0,r.jsx)(r.Fragment,{children:"The maximum amount of ingress bandwidth traffic in MB per second."}),validation:{required:"required"}},egressLimit:{title:"Egress limit",type:"number",category:"bandwidth",units:"MB/second",description:(0,r.jsx)(r.Fragment,{children:"The maximum amount of egress bandwidth traffic in MB per second."}),validation:{required:"required"}},dnsProvider:{title:"Dynamic DNS Provider",type:"select",category:"DNS",options:c,description:(0,r.jsx)(r.Fragment,{children:"Enable dynamic DNS with one of the supported providers."}),validation:{validate:e=>!!c.find(t=>t.value===e)||"must be one of supported providers"}},dnsIpv4:{title:"IPv4",type:"boolean",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"Whether IPv4 is enabled."}),show:e=>!!e.dnsProvider,validation:{validate:(e,t)=>!t.dnsProvider||!!(e||t.dnsIpv6)||"at least one of IPv4 and IPv6 must be enabled"},trigger:["dnsIpv6"]},dnsIpv6:{type:"boolean",title:"IPv6",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"Whether IPv6 is enabled."}),show:e=>!!e.dnsProvider,validation:{validate:(e,t)=>!t.dnsProvider||!!(e||t.dnsIpv4)||"at least one of IPv4 and IPv6 must be enabled"},trigger:["dnsIpv4"]},dnsDuckDnsToken:{type:"text",title:"Token",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"DuckDNS token."}),show:e=>"duckdns"===e.dnsProvider,validation:{validate:(e,t)=>"duckdns"!==t.dnsProvider||!!e||"required"}},dnsNoIpEmail:{type:"text",title:"Email",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"No-IP email."}),show:e=>"noip"===e.dnsProvider,validation:{validate:(e,t)=>"noip"!==t.dnsProvider||!!e||"required"}},dnsNoIpPassword:{type:"password",title:"Password",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"No-IP password."}),show:e=>"noip"===e.dnsProvider,validation:{validate:(e,t)=>"noip"!==t.dnsProvider||!!e||"required"}},dnsAwsId:{type:"text",title:"ID",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"AWS Route53 ID."}),show:e=>"route53"===e.dnsProvider,validation:{validate:(e,t)=>"route53"!==t.dnsProvider||!!e||"required"}},dnsAwsSecret:{type:"password",title:"Secret",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"AWS Route53 secret."}),show:e=>"route53"===e.dnsProvider,validation:{validate:(e,t)=>"route53"!==t.dnsProvider||!!e||"required"}},dnsAwsZoneId:{type:"text",title:"Zone ID",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"AWS Route53 zone ID."}),show:e=>"route53"===e.dnsProvider,validation:{validate:(e,t)=>"route53"!==t.dnsProvider||!!e||"required"}},dnsCloudflareToken:{type:"text",title:"Token",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"Cloudflare token."}),show:e=>"cloudflare"===e.dnsProvider,validation:{validate:(e,t)=>"cloudflare"!==t.dnsProvider||!!e||"required"}},dnsCloudflareZoneId:{type:"text",title:"Zone ID",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"Cloudflare zone ID."}),show:e=>"cloudflare"===e.dnsProvider,validation:{validate:(e,t)=>"cloudflare"!==t.dnsProvider||!!e||"required"}}}}({showAdvanced:o,storageTBMonth:t,collateralMultiplier:n,rates:null===(e=l.data)||void 0===e?void 0:e.rates})},[o,t,n,l.data]);return{form:e,fields:f,storageTBMonth:t,collateralMultiplier:n,showAdvanced:o,setShowAdvanced:s}}(),w=(0,i.useMemo)(()=>({settings:{data:e.data,error:e.error}}),[e.data,e.error]),E=(0,i.useMemo)(()=>!function(e){let{settings:t}=e;return!!t.data}(w)?null:f({settings:w.settings.data}),[w]),j=(0,i.useMemo)(()=>(function(e){let{settings:t}=e;return!!t.error})(w),[w]),k=(0,i.useCallback)(async()=>{let r=await e.mutate();if(r)return await t.mutate(),n.reset(f({settings:r}));(0,o.OHV)("Error fetching settings.")},[n,e,t]);(0,o.u$d)({form:n,remoteValues:E}),(0,o.Z4p)({form:n,remoteValues:E});let{changeCount:S}=(0,o.mYE)({form:n}),O=function(e){let{resources:t,dirtyFields:n,showAdvanced:r,revalidateAndResetForm:l}=e,u=(0,p.Te)(),c=(0,i.useCallback)(async e=>{if(t)try{var i;let c;let d={};r||(d.maxCollateral=h(e.storagePrice,e.collateralMultiplier));let f={...e,...d},p=await u.patch({payload:(i=t.settings.data,c=null,"duckdns"===f.dnsProvider&&(c={token:f.dnsDuckDnsToken}),"noip"===f.dnsProvider&&(c={email:f.dnsNoIpEmail,password:f.dnsNoIpPassword}),"route53"===f.dnsProvider&&(c={id:f.dnsAwsId,secret:f.dnsAwsSecret,zoneID:f.dnsAwsZoneId}),"cloudflare"===f.dnsProvider&&(c={token:f.dnsCloudflareToken,zoneID:f.dnsCloudflareZoneId}),{...i,acceptingContracts:f.acceptingContracts,netAddress:f.netAddress,maxContractDuration:Number(f.maxContractDuration.times((0,a.S5)(1)).toFixed(0)),contractPrice:(0,a.qN)(f.contractPrice).toString(),baseRPCPrice:f.baseRPCPrice.div((0,a.ll)((0,s.sS)(1))).toFixed(0),sectorAccessPrice:f.sectorAccessPrice.div((0,a.ll)((0,s.nS)(1))).toFixed(0),collateralMultiplier:f.collateralMultiplier.toNumber(),maxCollateral:(0,a.qN)(f.maxCollateral).toString(),storagePrice:f.storagePrice.div((0,a.ll)((0,s.SY)(1))).toFixed(0),egressPrice:f.egressPrice.div((0,a.ll)((0,s.B1)(1))).toFixed(0),ingressPrice:f.ingressPrice.div((0,a.ll)((0,s.dK)(1))).toFixed(0),priceTableValidity:Number(f.priceTableValidity.times(60).times(1e9).toFixed(0)),maxRegistryEntries:Number(f.maxRegistryEntries.toFixed(0)),accountExpiry:Number(f.accountExpiry.times(86400).times(1e9).toFixed(0)),maxAccountBalance:(0,a.qN)(f.maxAccountBalance).toString(),ingressLimit:Number((0,a.Y)(f.ingressLimit).toFixed(0)),egressLimit:Number((0,a.Y)(f.egressLimit).toFixed(0)),ddns:{...null==i?void 0:i.ddns,provider:f.dnsProvider,ipv4:f.dnsIpv4,ipv6:f.dnsIpv6,options:c}})});if(p.error)throw Error(p.error);n.netAddress?(0,o.OPV)("Settings have been saved. Address has changed, make sure to re-announce the host.",{duration:2e4}):(0,o.OPV)("Settings have been saved."),await l()}catch(e){(0,o.OHV)(e.message),console.log(e)}},[r,t,n.netAddress,u,l]);return c}({resources:w,dirtyFields:n.formState.dirtyFields,showAdvanced:x,revalidateAndResetForm:k}),_=(0,o.WsO)(l),C=(0,i.useMemo)(()=>n.handleSubmit(O,_),[n,O,_]);return{fields:l,settings:e,dynDNSCheck:t,changeCount:S,revalidateAndResetForm:k,form:n,onSubmit:C,showAdvanced:x,setShowAdvanced:b,remoteError:j}}();return(0,r.jsx)(b.Provider,{value:n,children:t})}},92838:function(e,t,n){"use strict";n.d(t,{x:function(){return x},G:function(){return b}});var r=n(52322),i=n(13474),o=n(5632),a=n(27444),s=n(2784),l=n(56860),u=n(41775),c=n(25205),d=n(30078);function f(e){let{id:t,status:n,contentProps:o,buttonProps:l}=e,c=(0,a.kr)(),{openDialog:f}=(0,d.Rh)(),h=(0,s.useCallback)(async()=>{let e=await c.put({params:{id:t}});e.error?(0,i.OHV)(e.error):(0,i.OPV)((0,r.jsxs)(r.Fragment,{children:["Integrity check successfully started, depending on contract data size this operation can take a while. Check ",(0,r.jsx)(i.EKh,{children:"hostd"})," ",(0,r.jsx)(i.rUS,{onClick:()=>f("alerts"),children:"alerts"})," for status updates."]}),{duration:12e3})},[t,c,f]),p=["active","pending"].includes(n);return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...l,children:(0,r.jsx)(u.iG7,{})}),contentProps:{align:"start",...o},children:[(0,r.jsx)("div",{className:"px-1.5 py-1",children:(0,r.jsxs)(i.xvT,{size:"14",weight:"medium",color:"subtle",children:["Contract ",t.slice(0,24),"..."]})}),(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsx)(i.ua7,{content:p?"Trigger a data integrity check":"Data integrity check only available for active or pending contracts",children:(0,r.jsx)("div",{children:(0,r.jsxs)(i.Xiv,{disabled:!p,onSelect:()=>h(),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(u.dDl,{})}),"Integrity check"]})})})]})}let h=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:{id:t,status:n}}=e;return(0,r.jsx)(f,{id:t,status:n})}},{id:"contractId",label:"contract ID",category:"general",render:e=>{let{data:t,context:n}=e,{id:o,renewedFrom:a,isRenewedFrom:s,renewedTo:l,isRenewedTo:c}=t;return(0,r.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,r.jsx)(i.XxW,{size:"12",value:(0,i.I13)(o),type:"contract",siascanUrl:n.siascanUrl}),s&&(0,r.jsx)(i.ua7,{content:"Renewed from",align:"start",children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)(i.xvT,{color:"subtle",children:(0,r.jsx)(u.L6f,{className:"scale-75"})}),(0,r.jsx)(i.XxW,{color:"subtle",size:"10",type:"contract",value:(0,i.I13)(a),siascanUrl:n.siascanUrl})]})}),c&&(0,r.jsx)(i.ua7,{content:"Renewed to",align:"start",children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)(i.xvT,{color:"subtle",children:(0,r.jsx)(u.IRm,{className:"scale-75"})}),(0,r.jsx)(i.XxW,{color:"subtle",size:"10",value:(0,i.I13)(l),type:"contract",siascanUrl:n.siascanUrl})]})})]})}},{id:"status",label:"status",category:"general",render:e=>{let{data:{status:t}}=e;return(0,r.jsx)(i.Cts,{variant:"active"===t?"amber":"failed"===t?"red":"pending"===t?"amber":"rejected"===t?"red":"successful"===t?"green":void 0,children:t})}},{id:"timeline",label:"timeline",category:"time",render:e=>{let{data:t,context:{currentHeight:n,contractsTimeRange:o}}=e,{contractHeightStart:a,contractHeightEnd:s,revision:l,status:u}=t;return(0,r.jsx)("div",{className:"w-[400px]",children:(0,r.jsx)(i.TaT,{currentHeight:n,contractHeightStart:a,contractHeightEnd:"rejected"===u?void 0:s,proofWindowHeightStart:"rejected"===u?void 0:l.windowStart,proofWindowHeightEnd:"rejected"===u?void 0:l.windowEnd,range:o})})}},{id:"contractHeightStart",label:"start date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{contractHeightStart:t},context:{currentHeight:n}}=e;return(0,r.jsx)(i.xvT,{size:"12",children:(0,c.rN)((0,c.jr)(n,t))})}},{id:"contractHeightEnd",label:"expiration date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{contractHeightEnd:t},context:{currentHeight:n}}=e;return(0,r.jsx)(i.xvT,{size:"12",children:(0,c.rN)((0,c.jr)(n,t))})}},{id:"payoutHeight",label:"payout date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{payoutHeight:t},context:{currentHeight:n}}=e;return(0,r.jsx)(i.xvT,{size:"12",children:(0,c.rN)((0,c.jr)(n,t))})}},{id:"filesize",label:"data size",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{revision:{filesize:t}}}=e;return(0,r.jsx)(i.m2c,{size:"12",value:t,variant:"value",format:e=>(0,c.vW)(e.toNumber())})}},{id:"fileMerkleRoot",label:"merkle root",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{revision:{fileMerkleRoot:t}}}=e;return(0,r.jsx)(i.XxW,{size:"12",value:(0,i.I13)(t)})}},{id:"payout",label:"payout",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{revision:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.payout})}},{id:"remainingRenterFunds",label:"remaining renter funds",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{revision:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.remainingRenterFunds})}},{id:"lockedCollateral",label:"locked collateral",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{lockedCollateral:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t})}},{id:"usageRiskedCollateral",label:"risked collateral",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.riskedCollateral})}},{id:"usageTotal",label:"total usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.total})}},{id:"usageStorage",label:"storage usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.storage})}},{id:"usageIngress",label:"ingress usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.ingress})}},{id:"usageEgress",label:"egress usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.egress})}},{id:"usageAccountFunding",label:"account funding usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.accountFunding})}},{id:"usageRpc",label:"RPC usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.rpc})}}].map(e=>({...e,..."financial"===e.category?{icon:(0,r.jsx)(u.dZ8,{className:"relative opacity-50 scale-75"}),label:e.label,tip:"financial: ".concat(e.label)}:{label:e.label,tip:e.label}}));var p=n(6391),m=n.n(p),v=n(25573),g=n(90089);let y=(0,s.createContext)({}),b=()=>(0,s.useContext)(y);function x(e){let{children:t}=e,n=function(){var e,t;let n=(0,o.useRouter)(),r=Number(n.query.limit||50),u=Number(n.query.offset||0),{filters:c,setFilter:d,removeFilter:f,removeLastFilter:p,resetFilters:y}=(0,i.Uu5)(),{configurableColumns:b,enabledColumns:x,sortableColumns:w,toggleColumnVisibility:E,setColumnsVisible:j,setColumnsHidden:k,toggleSort:S,setSortDirection:O,setSortField:_,sortField:C,sortDirection:M,resetDefaultColumnVisibility:A}=(0,i.oy6)("hostd/v0/contracts",{columns:h,columnsDefaultVisible:l.gd,sortOptions:l.Fo,defaultSortField:l.nw}),T=(0,a.GP)({payload:{limit:r,offset:u,sortField:null===(e=l.Fo.find(e=>e.id===C))||void 0===e?void 0:e.value,sortDesc:"desc"===M,contractIDs:c.filter(e=>"filterContractId"===e.id).map(e=>e.value),statuses:c.filter(e=>e.id.startsWith("filterStatus")).map(e=>e.value)},config:{swr:{refreshInterval:(0,i.XBW)(60)}}}),P=function(e){let{response:t}=e;return(0,s.useMemo)(()=>{var e;return t.data?(null===(e=t.data.contracts)||void 0===e?void 0:e.map(e=>(function(e){var t;let n=new(m())(e.usage.accountFunding||0),r=new(m())(e.usage.egress||0),i=new(m())(e.usage.ingress||0),o=new(m())(e.usage.riskedCollateral||0),a=new(m())(e.usage.rpc||0),s=new(m())(e.usage.storage||0),l=n.plus(r).plus(i).plus(a).plus(s),u=e.resolutionHeight>0?e.resolutionHeight+144:e.revision.windowEnd+144;return{id:e.revision.parentID,revision:{parentID:e.revision.parentID,unlockConditions:e.revision.unlockConditions,filesize:new(m())(e.revision.filesize||0),fileMerkleRoot:e.revision.fileMerkleRoot,windowStart:e.revision.windowStart,windowEnd:e.revision.windowEnd,payout:new(m())("active"==e.status||e.resolutionHeight>0?e.revision.validProofOutputs[1].value:e.revision.missedProofOutputs[1].value),remainingRenterFunds:new(m())((null===(t=e.revision.validProofOutputs)||void 0===t?void 0:t[0].value)||0),validProofOutputs:e.revision.validProofOutputs,missedProofOutputs:e.revision.missedProofOutputs,unlockHash:e.revision.unlockHash,revisionNumber:e.revision.revisionNumber},usage:{total:l,accountFunding:n,egress:r,ingress:i,riskedCollateral:o,rpc:a,storage:s},lockedCollateral:new(m())(e.lockedCollateral||0),hostSignature:e.hostSignature,renterSignature:e.renterSignature,status:e.status,negotiationHeight:e.negotiationHeight,formationConfirmed:e.formationConfirmed,revisionConfirmed:e.revisionConfirmed,resolutionHeight:e.resolutionHeight,payoutHeight:u,contractHeightStart:e.negotiationHeight,contractHeightEnd:e.revision.windowStart,renewedTo:e.renewedTo,renewedFrom:e.renewedFrom,isRenewedFrom:"fcid:0000000000000000000000000000000000000000000000000000000000000000"!==e.renewedFrom,isRenewedTo:"fcid:0000000000000000000000000000000000000000000000000000000000000000"!==e.renewedTo}})(e)))||[]:null},[t.data])}({response:T}),N=(0,s.useMemo)(()=>h.filter(e=>x.includes(e.id)),[x]),R=T.isValidating,D=T.error,Z=(0,i.c2j)(P,R,D,c),{estimatedBlockHeight:L,isSynced:F,nodeBlockHeight:z}=(0,v.n)(),V=F?z:L,{range:I}=(0,s.useMemo)(()=>(0,i.EJC)(V,P||[]),[V,P]),B=(0,g.B)(),H=(0,s.useMemo)(()=>({contractsTimeRange:I,currentHeight:V,siascanUrl:B}),[I,V,B]);return{dataState:Z,offset:u,limit:r,cellContext:H,pageCount:(null==P?void 0:P.length)||0,totalCount:null===(t=T.data)||void 0===t?void 0:t.count,columns:N,dataset:P,configurableColumns:b,enabledColumns:x,sortableColumns:w,toggleColumnVisibility:E,setColumnsVisible:j,setColumnsHidden:k,toggleSort:S,setSortDirection:O,setSortField:_,sortField:C,sortDirection:M,resetDefaultColumnVisibility:A,filters:c,setFilter:d,removeFilter:f,removeLastFilter:p,resetFilters:y}}();return(0,r.jsx)(y.Provider,{value:n,children:t})}},56860:function(e,t,n){"use strict";n.d(t,{Fo:function(){return i},gd:function(){return r},nw:function(){return o}});let r=["contractId","status","usageTotal","lockedCollateral","timeline"],i=[{id:"status",value:"status",label:"status",category:"general"},{id:"timeline",value:"negotiationHeight",label:"timeline",category:"time"},{id:"contractHeightStart",value:"negotiationHeight",label:"start height",category:"time"},{id:"contractHeightEnd",value:"expirationHeight",label:"expiration height",category:"time"}],o="timeline"},30078:function(e,t,n){"use strict";n.d(t,{Tu:function(){return ej},xQ:function(){return ek},Rh:function(){return eE}});var r=n(52322),i=n(2784),o=n(13474),a=n(27444),s=n(25205),l=n(63955);function u(e,t,n){var r=this,o=(0,i.useRef)(null),a=(0,i.useRef)(0),s=(0,i.useRef)(null),l=(0,i.useRef)([]),u=(0,i.useRef)(),c=(0,i.useRef)(),d=(0,i.useRef)(e),f=(0,i.useRef)(!0);(0,i.useEffect)(function(){d.current=e},[e]);var h=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var p=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,v="maxWait"in n,g=v?Math.max(+n.maxWait||0,t):null;return(0,i.useEffect)(function(){return f.current=!0,function(){f.current=!1}},[]),(0,i.useMemo)(function(){var e=function(e){var t=l.current,n=u.current;return l.current=u.current=null,a.current=e,c.current=d.current.apply(n,t)},n=function(e,t){h&&cancelAnimationFrame(s.current),s.current=h?requestAnimationFrame(e):setTimeout(e,t)},i=function(e){if(!f.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||v&&e-a.current>=g},y=function(t){return s.current=null,m&&l.current?e(t):(l.current=u.current=null,c.current)},b=function e(){var r=Date.now();if(i(r))return y(r);if(f.current){var s=t-(r-o.current);n(e,v?Math.min(s,g-(r-a.current)):s)}},x=function(){var d=Date.now(),h=i(d);if(l.current=[].slice.call(arguments),u.current=r,o.current=d,h){if(!s.current&&f.current)return a.current=o.current,n(b,t),p?e(o.current):c.current;if(v)return n(b,t),e(o.current)}return s.current||n(b,t),c.current};return x.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,l.current=o.current=u.current=s.current=null},x.isPending=function(){return!!s.current},x.flush=function(){return s.current?y(Date.now()):c.current},x},[p,v,t,g,m,h])}function c(e,t){return e===t}function d(e){return"function"==typeof e?function(){return e}:e}var f=n(99182),h=n(4941),p=n(41775);function m(e){let{search:t}=e;return(0,r.jsxs)(o.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:(0,r.jsx)(p.Qbr,{})}),(0,r.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No matching directory.":"Select a directory to get started."})]})}function v(){var e;let t=(0,a.On)({config:{swr:{revalidateOnFocus:!1,keepPreviousData:!0}}});return(null===(e=t.data)||void 0===e?void 0:e.os)==="windows"?"\\":"/"}var g=n(79200),y=n(78807),b=n(81441),x=n(81721),w=function(e,t){for(var n=e.length;n--&&(0,x.Z)(t,e[n],0)>-1;);return n},E=function(e,t){for(var n=-1,r=e.length;++n-1;);return n},j=n(36202),k=n(25186),S=function(e,t,n){if((e=(0,k.Z)(e))&&(n||void 0===t))return(0,y.Z)(e);if(!e||!(t=(0,g.Z)(t)))return e;var r=(0,j.Z)(e),i=(0,j.Z)(t),o=E(r,i),a=w(r,i)+1;return(0,b.Z)(r,o,a).join("")},O=n(37602),_=function(e,t,n){if((e=(0,k.Z)(e))&&(n||void 0===t))return e.slice(0,(0,O.Z)(e)+1);if(!e||!(t=(0,g.Z)(t)))return e;var r=(0,j.Z)(e),i=w(r,(0,j.Z)(t))+1;return(0,b.Z)(r,0,i).join("")};function C(e){let{currentPath:t,childPath:n,separator:r}=e;return"\\"===t&&n.endsWith(":")?n+r:M(t,n,r)}function M(e,t,n){e=e===n?e:_(e,n),t=S(t,n);let r="";return(r=e.length?t.length&&t!==n?e===n?n+t:e+n+t:e:t).endsWith(":")?r+n:r}function A(){return(0,r.jsxs)(o.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:(0,r.jsx)(p.Qbr,{})}),(0,r.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:"Error loading directory."})]})}function T(e){let{path:t,onCreate:n}=e,s=v(),l=(0,a.Kw)(),[u,c]=(0,i.useState)(""),d=(0,i.useCallback)(async()=>{let e=await l.put({payload:{path:C({currentPath:t,childPath:u,separator:s})}});e.error?(0,o.OHV)("Error creating directory: ".concat(e.error)):(n(u),c(""))},[l,u,n,t,s]);return(0,r.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden w-full",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"group-data-[selected=true]:text-gray-1000 dark:group-data-[selected=true]:text-graydark-1000",children:(0,r.jsx)(p.L37,{})}),(0,r.jsx)("div",{className:"flex-1",children:(0,r.jsx)(o.nvn,{focus:"none",variant:"ghost",placeholder:"type new directory name",className:"!pl-0 font-normal h-5",value:u,onChange:e=>{c(e.currentTarget.value)},onKeyUp:e=>{e.stopPropagation(),"Enter"===e.key&&d()},size:"small"})})]})}function P(e){let{path:t,setPath:n,commandPage:i,currentPage:a,beforeSelect:s,afterSelect:l}=e,u=v();return(0,r.jsx)(h.WD,{commandPage:i,currentPage:a,onSelect:()=>{t&&(s&&s(),n(function(e,t){if(e.endsWith(":\\"))return t;let n="".concat(e.split(t).slice(0,-1).join(t));return""===n?t:n.endsWith(":")?n+t:n}(t,u)),l&&l())},value:"..",children:(0,r.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"group-data-[selected=true]:text-gray-1000 dark:group-data-[selected=true]:text-graydark-1000",children:(0,r.jsx)(p.ROc,{size:16})}),(0,r.jsx)(o.xvT,{ellipsis:!0,children:".."})]})},"..")}let N={namespace:"volumes/directorySelect",label:"Directory select"};function R(e){var t,n,i,a,s,l,u;let{path:c,dir:d,setPath:g,currentPage:y,beforeSelect:b,afterSelect:x}=e,w=v(),E=(null===(t=d.data)||void 0===t?void 0:t.path)===w,j=(null===(n=d.data)||void 0===n?void 0:n.path)==="\\";return(0,r.jsxs)(h.fu,{currentPage:y,commandPage:N,children:[d.isValidating||!d.data||d.error?null:E?null:(0,r.jsx)(P,{path:d.data.path,setPath:g,currentPage:y,commandPage:N,afterSelect:x,beforeSelect:b}),(0,r.jsxs)(f.mY.Empty,{children:[!d.isValidating&&d.error?(0,r.jsx)(A,{}):null,d.isValidating||d.error||(null===(a=d.data)||void 0===a?void 0:null===(i=a.directories)||void 0===i?void 0:i.length)?null:(0,r.jsx)(m,{search:c})]}),!d.isValidating&&!d.error&&(null===(l=d.data)||void 0===l?void 0:null===(s=l.directories)||void 0===s?void 0:s.length)?d.data.directories.map(e=>(0,r.jsx)(h.WD,{commandPage:N,currentPage:y,onSelect:()=>{b&&b();let t=C({currentPath:d.data.path,childPath:e,separator:w});g(t),x&&x()},value:e,children:(0,r.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"group-data-[selected=true]:text-gray-1000 dark:group-data-[selected=true]:text-graydark-1000",children:(0,r.jsx)(p.ROc,{size:16})}),(0,r.jsx)(o.xvT,{ellipsis:!0,children:e})]})},e)):null,!j&&!d.isValidating&&!d.error&&(0,r.jsx)(h.WD,{commandPage:N,currentPage:y,value:"create new directory",children:(0,r.jsx)(T,{path:null===(u=d.data)||void 0===u?void 0:u.path,onCreate:e=>{d.mutate(t=>{var n;return{...t,directories:(null==t?void 0:null===(n=t.directories)||void 0===n?void 0:n.concat(e))||[e]}})}})})]})}function D(e){let{path:t,dir:n,onChange:i}=e;return(0,r.jsx)(f.mY,{label:"Select volume",shouldFilter:!1,children:(0,r.jsx)(o.s_4,{className:"h-[200px] p-1 overflow-hidden",children:(0,r.jsx)(o.xrM,{keyToResetScrollbars:t,children:(0,r.jsx)(f.mY.List,{children:(0,r.jsx)(R,{path:t,dir:n,setPath:i,currentPage:N})})})})})}var Z=n(82851);function L(e){let{label:t,newSizeGB:n,currentSizeGB:i=0,maxSizeGB:a=0}=e,l=in,c=n>a;return(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsxs)("div",{className:"relative w-full h-1 rounded-lg bg-gray-300 dark:bg-graydark-300 overflow-hidden",children:[(0,r.jsx)("div",{className:(0,Z.cx)("absolute h-1 rounded-tl-lg rounded-bl-lg",void 0!==n&&u?"bg-red-500 dark:bg-red-500":"bg-gray-700 dark:bg-graydark-800",l?"z-10":"z-0"),style:{width:a?"".concat(i/a*100,"%"):"0%"}}),(0,r.jsx)("div",{className:(0,Z.cx)("absolute h-1 rounded-tl-lg rounded-bl-lg",c?"bg-amber-500 dark:bg-amber-500":void 0!==n&&l?"bg-green-500 dark:bg-green-500":"bg-gray-700 dark:bg-graydark-800",u?"z-10":"z-0"),style:{width:a?"".concat(n/a*100,"%"):"0%"}})]}),(0,r.jsxs)("div",{className:"h-4 flex justify-between",children:[t||(0,r.jsx)("div",{}),void 0!==n&&a?(0,r.jsx)(o.xvT,{size:"12",color:"subtle",children:"".concat((n/a*100).toFixed(0),"% of ").concat((0,s.vW)((0,s.Hz)(a))," available")}):null]})]})}let F={size:void 0,name:"",path:"~",immediatePath:"~"};function z(e){var t;let{trigger:n,open:c,onOpenChange:d}=e,{closeDialog:f}=eE(),h=(0,a.HU)(),p=v(),m=(0,l.cI)({mode:"all",defaultValues:F}),g=m.watch("path"),y=m.watch("immediatePath"),b=m.watch("name"),x=m.watch("size"),w=u(()=>{g!==y&&m.setValue("path",y)},500);(0,i.useEffect)(()=>{w()},[y]),(0,i.useEffect)(()=>{g!==y&&m.setValue("immediatePath",g)},[g]);let E=(0,i.useCallback)(async e=>{let t=await h.post({payload:{localPath:M(g,b,p),maxSectors:(0,o.WN2)(e.size).toNumber()}});t.error?(0,o.OHV)(t.error):((0,o.OPV)("New volume created."),m.reset(F),f())},[m,h,f,b,g,p]),j=(0,a.cM)({disabled:!c,params:{path:""===g?p:g},config:{swr:{shouldRetryOnError:!1}}});(0,i.useEffect)(()=>{j.error&&m.setError("immediatePath",{message:"Directory does not exist"})},[j.error]),(0,i.useEffect)(()=>{j.data&&j.data.path!==g&&m.setValue("path",j.data.path)},[j.data]);let k=(null==x?void 0:x.toNumber())||0,S=j.data?(0,s.Uz)(j.data.freeBytes).toNumber():0,O=(0,s.Uz)((null===(t=j.data)||void 0===t?void 0:t.freeBytes)||0).toNumber(),_=(0,i.useMemo)(()=>({name:{type:"text",title:"Name",placeholder:"data.dat",validation:{required:"required"}},immediatePath:{type:"text",title:"Location",placeholder:"Enter a directory or select one below",validation:{required:"required",validate:{}}},path:{type:"text",title:"Location",validation:{required:"required",validate:{req:e=>"\\"!==e||"directory within a drive required"}}},size:{type:"number",title:"Size",decimalsLimit:0,units:"GB",placeholder:"1,000",validation:{required:"required",validate:{between:e=>{let t="Must be between ".concat((0,s.vW)((0,s.Hz)(10))," and ").concat((0,s.vW)((0,s.Hz)(O),{fixed:3}));return e<=O&&e>=10||t},nospace:()=>O>10||"not enough space in directory"}}}}),[O]),C=(0,o.WsO)(_);return m.register("path",_.path.validation),(0,r.jsx)(o.VqE,{title:"Create Volume",trigger:n,open:c,onOpenChange:e=>{e||m.reset(F),d(e)},contentVariants:{className:"w-[400px]"},onSubmit:m.handleSubmit(E,C),controls:(0,r.jsx)("div",{className:"flex flex-col gap-1",children:(0,r.jsx)(o.ZqQ,{form:m,children:"Create"})}),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(o.nvN,{size:"14",children:"Create a new volume. Select a system directory and specific the size of the volume."}),(0,r.jsx)(o.yEL,{name:"name",form:m,fields:_}),(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsx)("div",{className:"flex flex-col gap-1",children:(0,r.jsx)(o.yEL,{name:"immediatePath",form:m,fields:_})}),(0,r.jsx)(D,{path:g,dir:j,onChange:e=>m.setValue("path",e,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0})})]}),(0,r.jsx)(o.jIp,{name:"size",form:m,fields:_}),(0,r.jsx)(L,{newSizeGB:k,currentSizeGB:0,maxSizeGB:S})]})})}let V={size:void 0};function I(e){var t,n;let{trigger:u,open:c,onOpenChange:d}=e,{id:f,closeDialog:h}=eE(),p=v(),m=(0,a.ST)({disabled:!f,params:{id:f}}),g=(0,a.cM)({disabled:!c||!m.data,params:{path:null===(t=m.data)||void 0===t?void 0:t.localPath.split(p).slice(0,-1).join(p)}}),y=(0,a.G)(),b=(0,l.cI)({mode:"all",defaultValues:V}),x=b.watch("size"),w=(0,i.useCallback)(async e=>{let t=await y.put({params:{id:Number(f)},payload:{maxSectors:(0,o.WN2)(e.size).toNumber()}});t.error?(0,o.OHV)(t.error):((0,o.OPV)("Volume resizing initiated."),b.reset(V),h())},[b,f,y,h]);(0,i.useEffect)(()=>{m.data&&b.reset(V)},[m.data]);let E=null==x?void 0:x.toNumber(),j=m.data?(0,o.bjP)(m.data.totalSectors).toNumber():0,k=g.data?(0,s.Uz)(g.data.totalBytes).toNumber():0,S=j=1,_=(0,i.useMemo)(()=>({size:{type:"number",title:"New size",decimalsLimit:0,units:"GB",placeholder:"1,000",validation:{required:"required",validate:{between:e=>{let t="Must be between ".concat((0,s.vW)((0,s.Hz)(10))," and ").concat((0,s.vW)((0,s.Hz)(k),{fixed:3}));return e<=k&&e>=10||t}}}}}),[k]),C=(0,o.WsO)(_);return(0,r.jsx)(o.VqE,{title:"Resize Volume",trigger:u,open:c,onOpenChange:e=>{e||b.reset(V),d(e)},contentVariants:{className:"max-w-[400px]"},onSubmit:b.handleSubmit(w,C),controls:(0,r.jsx)("div",{className:"flex flex-col gap-1",children:(0,r.jsx)(o.ZqQ,{form:b,children:"Resize"})}),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsxs)(o.nvN,{size:"14",children:["Grow or shrink the volume. When growing a volume, make sure to check that there is enough space on-disk. When shrinking a volume, any data that needs to be moved will be placed into other volumes, meaning that no data will be lost. If ",(0,r.jsx)(o.EKh,{children:"hostd"})," is unable to migrate the data, an error will be returned and the operation will be stopped."]}),(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)(o.__J,{children:"Volume"}),(0,r.jsx)(o.xvT,{font:"mono",ellipsis:!0,children:null===(n=m.data)||void 0===n?void 0:n.localPath})]}),(0,r.jsx)(o.jIp,{name:"size",form:b,fields:_}),(0,r.jsx)(L,{currentSizeGB:j,newSizeGB:E,maxSizeGB:k,label:O?(0,r.jsx)(o.xvT,{size:"12",color:"subtle",children:S?"Increase by ".concat((0,s.vW)((0,s.Hz)(E-j))):"Decrease by ".concat((0,s.vW)((0,s.Hz)(j-E)))}):(0,r.jsx)(o.xvT,{size:"12",color:"subtle",children:"Current size is ".concat((0,s.vW)((0,s.Hz)(j)))})})]})})}let B={path:"",force:!1};function H(e){var t,n,u;let{trigger:c,open:d,onOpenChange:f}=e,{id:h,closeDialog:p}=eE(),m=(0,a.uq)(),v=(0,a.ST)({disabled:!h,params:{id:h}}),g=(0,o.x9T)(null===(t=v.data)||void 0===t?void 0:t.totalSectors),y=(0,o.x9T)(null===(n=v.data)||void 0===n?void 0:n.usedSectors),b=null===(u=v.data)||void 0===u?void 0:u.localPath,x=(0,l.cI)({mode:"all",defaultValues:B}),w=(0,i.useCallback)(async e=>{var t;let n=await m.delete({params:{id:null===(t=v.data)||void 0===t?void 0:t.id,force:e.force}});n.error?(0,o.OHV)(n.error):((0,o.OPV)("Volume permanently deleted."),x.reset(),p())},[x,v.data,m,p]),E=(0,i.useMemo)(()=>({path:{type:"text",title:"Path",placeholder:b,validation:{required:"required",validate:{equals:e=>e===b||"directory path does not match"}}},force:{type:"boolean",title:"Force",validation:{}}}),[b]),j=(0,o.WsO)(E);return(0,r.jsx)(o.VqE,{title:"Delete Volume",trigger:c,open:d,onOpenChange:e=>{e||x.reset(B),f(e)},contentVariants:{className:"w-[400px]"},onSubmit:x.handleSubmit(w,j),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(o.nvN,{size:"14",children:"Are you sure you would like to delete the volume?"}),(0,r.jsxs)(o.nvN,{size:"14",children:[(0,r.jsx)(o.EKh,{children:"hostd"})," will move"," ",(0,r.jsx)(o.xvT,{weight:"semibold",children:(0,s.vW)(y)})," of stored data and will lose ",(0,r.jsx)(o.xvT,{weight:"semibold",children:(0,s.vW)(g)})," ","of storage capacity. It is not recommended to remove or resize volumes when contracts are about to expire."]}),(0,r.jsx)(o.nvN,{size:"14",children:"Enter the volume path to confirm the removal."}),(0,r.jsx)(o.yEL,{name:"path",form:x,fields:E}),(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(o.QBj,{name:"force",size:"medium",form:x,fields:E}),(0,r.jsx)(o.Yqd,{children:(0,r.jsx)("div",{className:"flex gap-1 max-w-[200px]",children:(0,r.jsx)(o.nvN,{size:"14",children:"Force deleting a volume will remove the volume even if the data can NOT be relocated - this will result in severe data loss and contract failure. Be extremely careful when using this option."})})})]}),(0,r.jsx)(o.ZqQ,{variant:"red",form:x,children:"Delete"})]})})}var U=n(6391),W=n.n(U);function q(){let{dialog:e,openDialog:t,closeDialog:n}=eE(),s=(0,a.Os)(),l=(0,a.cj)(),u=(0,i.useCallback)(async e=>{let{sc:t,address:n}=e,r=await l.post({payload:{address:n,amount:t.toString()}});return r.error?{error:r.error}:{transactionId:r.data}},[l]);return(0,r.jsx)(o.weF,{balance:s.data?new(W())(s.data.spendable):void 0,send:u,open:"sendSiacoin"===e,onOpenChange:r=>r?t(e):n()})}var $=n(63171);function Y(){let{id:e,dialog:t,openDialog:n,closeDialog:a}=eE(),{dataset:s}=(0,$.n)(),l=(0,i.useMemo)(()=>null==s?void 0:s.find(t=>t.id===e),[s,e]);return(0,r.jsx)(o.mPE,{id:e,transaction:l,open:"transactionDetails"===t,onOpenChange:e=>e?n(t):a()})}var G=n(734),K=n(95753),X=n(71930),Q=n(5632);let J={namespace:"wallet",label:"Wallet"};function ee(e){let{currentPage:t,parentPage:n,pushPage:i}=e,{openDialog:s,closeDialog:l}=eE(),u=(0,Q.useRouter)(),c=(0,a.On)({config:{swr:{revalidateOnFocus:!1,keepPreviousData:!0}}});return(0,r.jsxs)(h.fu,{currentPage:t,commandPage:J,children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:J,onSelect:()=>{i(J)},children:J.label}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:J,onSelect:()=>{u.push(X._.wallet.view),l()},children:"View wallet transactions"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:J,onSelect:()=>{s("sendSiacoin")},children:"Send siacoin"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:J,onSelect:()=>{s("addressDetails")},children:"Receive siacoin"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:J,onSelect:()=>{s("addressDetails")},children:"View wallet address"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:J,onSelect:()=>{var e;(0,o.vQq)(null===(e=c.data)||void 0===e?void 0:e.walletAddress,"wallet address"),l()},children:"Copy wallet address to clipboard"})]})}var et=n(38617);let en={namespace:"settings",label:"Settings"};function er(e){let{currentPage:t,parentPage:n}=e,{openDialog:i,closeDialog:o}=eE(),{setTheme:a}=(0,et.F)(),{settings:s,setSettings:l,lock:u,currencyOptions:c,setCurrency:d}=(0,K.Hv)();return(0,r.jsxs)(h.fu,{currentPage:t,commandPage:en,children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:en,onSelect:()=>{i("settings")},children:"Open settings"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:en,onSelect:()=>{l({siaCentral:!s.siaCentral}),o()},children:(s.siaCentral?"Disable":"Enable")+" external API - Sia Central exchange rates"}),(0,r.jsx)(h.o4,{currentPage:t,commandPage:en,onSelect:()=>{u(),o()},children:"Lock hostd"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:en,onSelect:()=>{i("settings")},children:"Open interface theme menu"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:en,onSelect:()=>{a("system"),o()},children:"Set theme to system preference"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:en,onSelect:()=>{a("dark"),o()},children:"Set theme to dark"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:en,onSelect:()=>{a("light"),o()},children:"Set theme to light"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:en,onSelect:()=>{i("settings")},children:"Open currency settings menu"}),c.map(e=>{let{id:n,label:i}=e;return(0,r.jsx)(h.WD,{currentPage:t,commandPage:en,onSelect:()=>{d(n),o()},children:"Set currency to ".concat(i)},n)})]})}let ei={namespace:"node",label:"Blockchain node"};function eo(e){let{currentPage:t,parentPage:n,pushPage:i}=e,{openDialog:o,closeDialog:a}=eE(),s=(0,Q.useRouter)();return(0,r.jsxs)(h.fu,{currentPage:t,commandPage:ei,children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:ei,onSelect:()=>{i(ei)},children:ei.label}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:ei,onSelect:()=>{o("connectPeer")},children:"Connect to a peer"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:ei,onSelect:()=>{s.push(X._.node.index),a()},children:"View peers"})]})}var ea=n(10842);let es={namespace:"configuration",label:"Configuration"};function el(e){let{currentPage:t,parentPage:n,pushPage:i}=e,o=(0,Q.useRouter)(),{showAdvanced:a}=(0,ea.ZR)(),{closeDialog:s}=eE();return(0,r.jsxs)(h.fu,{currentPage:t,commandPage:es,children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:es,onSelect:()=>{i(es)},children:es.label}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:es,onSelect:()=>{o.push(X._.config.index),s()},children:"Open configuration"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:es,onSelect:()=>{o.push(X._.config.host),s()},children:"Configure host"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:es,onSelect:()=>{o.push(X._.config.pricing),s()},children:"Configure pricing"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:es,onSelect:()=>{o.push(X._.config.dns),s()},children:"Configure DNS"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:es,onSelect:()=>{o.push(X._.config.bandwidth),s()},children:"Configure bandwidth"}),a&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.WD,{currentPage:t,commandPage:es,onSelect:()=>{o.push(X._.config.registry),s()},children:"Configure registry"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:es,onSelect:()=>{o.push(X._.config.accounts),s()},children:"Configure accounts"})]})]})}var eu=n(92838);function ec(e){let{search:t}=e;return(0,r.jsxs)(o.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:(0,r.jsx)(p.owP,{})}),(0,r.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No results matching query.":"Type a query to get started."})]})}var ed=n(3639);let ef={namespace:"contracts",label:"Contracts"};function eh(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,s=(0,Q.useRouter)(),{closeDialog:l}=eE();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(ef)},children:ef.label}),(0,r.jsx)(h.fu,{currentPage:t,commandPage:ef,children:(0,r.jsx)(h.WD,{currentPage:t,commandPage:ef,onSelect:()=>{s.push(X._.contracts.index),l()},children:"View contracts"})}),(0,r.jsx)(ed.F,{parentPage:ef,currentPage:t,beforeSelect:o,afterSelect:a,pushPage:i})]})}let ep={namespace:"volumes",label:"Volumes"};function em(e){let{currentPage:t,parentPage:n,pushPage:i}=e,o=(0,Q.useRouter)(),{openDialog:a,closeDialog:s}=eE();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(ep)},children:ep.label}),(0,r.jsxs)(h.fu,{currentPage:t,commandPage:ep,children:[(0,r.jsx)(h.WD,{currentPage:t,commandPage:ep,onSelect:()=>{o.push(X._.volumes.index),s()},children:"View volumes"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:ep,onSelect:()=>{a("volumeCreate")},children:"Create volume"})]})]})}function ev(e){var t,n,a,s,l,h,p,m,v;let{panel:g}=e,y=(0,Q.useRouter)(),{resetFilters:b}=(0,eu.G)(),{closeDialog:x}=eE(),[w,E]=(0,i.useState)(""),[j]=(s=t&&t.equalityFn||c,h=(a=(n=(0,i.useState)(d(w)))[1],l=[n[0],(0,i.useCallback)(function(e){return a(d(e))},[])])[0],p=l[1],m=u((0,i.useCallback)(function(e){return p(e)},[p]),500,t),s((v=(0,i.useRef)(w)).current,w)||(m(w),v.current=w),[h,m]),[k,S]=(0,i.useState)([]),O=k[k.length-1],_=0===k.length,C=(0,i.useCallback)(e=>{S(t=>[...t,e])},[S]),M=(0,i.useCallback)(()=>{x()},[x]),A=(0,i.useCallback)(()=>{E("")},[E]),T=(null==O?void 0:O.empty)||ec;return(0,r.jsxs)(f.mY,{label:"Command Menu",loop:!0,className:(0,Z.cx)(g&&(0,o.z$)()),onKeyDown:e=>{(k.length>0&&"Escape"===e.key||"Backspace"===e.key&&!w)&&(e.preventDefault(),S(e=>e.slice(0,-1)))},children:[O&&(0,r.jsx)(o.__J,{className:"px-2",children:O.label}),(0,r.jsx)(f.mY.Input,{value:w,onValueChange:E,className:(0,o.cEb)({variant:"ghost",focus:"none"}),placeholder:(null==O?void 0:O.prompt)||(_?"Search for commands, eg: theme, redundancy":"Search commands")}),(0,r.jsx)(o.Z0O,{className:"my-2"}),(0,r.jsxs)(f.mY.List,{children:[(0,r.jsx)(f.mY.Empty,{children:(0,r.jsx)(T,{search:w,debouncedSearch:j})}),(0,r.jsx)(er,{currentPage:O,pushPage:C}),(0,r.jsx)(ee,{currentPage:O,pushPage:C}),(0,r.jsx)(em,{currentPage:O,pushPage:C}),(0,r.jsx)(eh,{currentPage:O,pushPage:C,beforeSelect:()=>{M(),b()},afterSelect:()=>{y.pathname.startsWith(X._.contracts.index)||y.push(X._.contracts.index),A()}}),(0,r.jsx)(el,{currentPage:O,pushPage:C}),(0,r.jsx)(eo,{currentPage:O,pushPage:C})]})]})}function eg(e){let{open:t,onOpenChange:n,setOpen:a}=e,{isUnlockedAndAuthedRoute:s}=(0,K.Hv)(),{isConnected:l}=(0,o.Y97)({route:X.h});return(0,i.useEffect)(()=>{if(!s||!l)return;let e=e=>{"k"===e.key&&e.metaKey&&a()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[s,l,a]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(o.VqE,{open:t,onOpenChange:n,contentVariants:{className:"!absolute !p-1 w-[450px] top-[200px]"},bodyClassName:"!px-1 !py-1",closeClassName:"hidden",children:(0,r.jsx)(ev,{})})})}function ey(e){let{open:t,onOpenChange:n}=e,s=(0,a.Z7)(),l=(0,a.Uy)(),u=(0,i.useCallback)(async e=>{let t=await l.post({payload:[e]});t.error?(0,o.OHV)("Error dismissing alert."):(0,o.OPV)("Alert has been dismissed.")},[l]),c=(0,i.useCallback)(async(e,t)=>{if(!s.data)return;let n=await l.post({payload:e});n.error?(0,o.OHV)(t?"Error dismissing all ".concat(t," alerts."):"Error dismissing all alerts."):(0,o.OPV)(t?"All ".concat(t," alerts have been dismissed."):"All alerts have been dismissed.")},[l,s]);return(0,r.jsx)(o.hcY,{open:t,onOpenChange:e=>{n(e)},alerts:s,dataFieldOrder:eb,dataFields:ex,dismissMany:c,dismissOne:u})}let eb=["error","contractID","blockHeight","resolution","volume","volumeID","elapsed","error","checked","missing","corrupt","total","oldSectors","currentSectors","targetSectors","migratedSectors","migrated","target","force"],ex={error:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"error"}),(0,r.jsx)(o.xvT,{color:"contrast",children:t})]})}},contractId:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"contract ID"}),(0,r.jsx)(o.XxW,{value:String(t)})]})}},blockHeight:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"block height"}),(0,r.jsx)(o.XxW,{value:String(t),type:"block"})]})}},resolution:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"resolution"}),(0,r.jsx)(o.XxW,{value:String(t)})]})}},volume:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"volume"}),(0,r.jsx)(o.XxW,{value:String(t)})]})}},volumeID:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"volume ID"}),(0,r.jsx)(o.XxW,{value:String(t)})]})}},elapsed:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"elapsed"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:(0,s.bc)(Number(t))})]})}},checked:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"checked"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},missing:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"missing"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},corrupt:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"corrupt"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},total:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"total"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},oldSectors:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"old sectors"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},currentSectors:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"current sectors"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},targetSectors:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"target sectors"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},migratedSectors:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"migrated sectors"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},migrated:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"migrated"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},target:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"target"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},force:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"force"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t?"true":"false"})]})}}},ew=(0,i.createContext)({}),eE=()=>(0,i.useContext)(ew);function ej(e){let{children:t}=e,n=function(){let[e,t]=(0,i.useState)(),[n,r]=(0,i.useState)(),o=(0,i.useCallback)((e,n)=>{t(e),r(n)},[t,r]),[a,s]=(0,i.useState)(),l=(0,i.useCallback)(e=>{t("confirm"),s(e)},[t,s]),u=(0,i.useCallback)(()=>{t(void 0),r(void 0),s(void 0)},[t,r,s]),c=(0,i.useCallback)(e=>{e||u()},[u]);return{dialog:e,id:n,openDialog:o,confirm:a,openConfirmDialog:l,closeDialog:u,onOpenChange:c}}();return(0,r.jsx)(ew.Provider,{value:n,children:t})}function ek(){var e;let{dialog:t,openDialog:n,openConfirmDialog:i,onOpenChange:s,closeDialog:l,confirm:u}=eE(),c=(0,a.Wl)(),d=(0,a.Os)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eg,{open:"cmdk"===t,onOpenChange:s,setOpen:()=>n("cmdk")}),(0,r.jsx)(o.DLL,{open:"settings"===t,onOpenChange:s}),(0,r.jsx)(ey,{open:"alerts"===t,onOpenChange:s}),(0,r.jsx)(q,{}),(0,r.jsx)(o.YNn,{open:"addressDetails"===t,address:null===(e=d.data)||void 0===e?void 0:e.address,isValidating:d.isValidating,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(Y,{}),(0,r.jsx)(o.D_D,{connect:e=>c.put({payload:{address:e}}),open:"connectPeer"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(z,{open:"volumeCreate"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(I,{open:"volumeResize"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(H,{open:"volumeDelete"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(G.Y,{open:"contractsFilterContractId"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(o.QHy,{open:"confirm"===t,params:u,onOpenChange:e=>e?i(u):l()})]})}},5187:function(e,t,n){"use strict";n.d(t,{C:function(){return E},B:function(){return w}});var r=n(52322),i=n(2784),o=n(13474),a=n(25205);let s={successful:{color:o.O9T.green[600]},active:{color:o.O9T.amber[600]},pending:{color:o.O9T.amber[600],pattern:!0},rejected:{color:o.O9T.red[600]},failed:{color:o.O9T.red[600]},storage:{label:"storage",color:o.O9T.emerald[600]},storagePhysical:{color:o.O9T.indigo[600]},ingress:{label:"ingress",color:o.O9T.pink[600]},egress:{label:"egress",color:o.O9T.blue[600]},registry:{label:"registry",color:o.O9T.purple[600]},storageWrites:{label:"storage write",color:o.O9T.pink[600]},storageReads:{label:"storage read",color:o.O9T.blue[600]},registryReads:{label:"registry reads",color:o.O9T.green[600]},registryWrites:{label:"registry writes",color:o.O9T.yellow[600]},rpc:{label:"RPC",color:o.O9T.slate[500]},capacityStorage:{label:"capacity",color:o.O9T.neutral[500]},capacityRegistry:{label:"capacity",color:o.O9T.neutral[500]},contract:{color:o.O9T.red[800]},collateral:{color:o.O9T.amber[600]},sectorsTemp:{label:"temp sectors",color:o.O9T.amber[600]},sectorsContract:{label:"contract sectors",color:o.O9T.green[600]},sectorAccess:{label:"sector access",color:o.O9T.blue[600]},sc:{color:o.O9T.green[600]},sf:{color:o.O9T.amber[600]},locked:{color:o.O9T.purple[600]},risked:{color:o.O9T.amber[600]},burnt:{color:o.O9T.red[600]}};var l=n(27444);function u(e,t,n){return{...e,category:t,pattern:n}}function c(e,t,n){return{...e,category:t,label:n}}var d=n(6391),f=n.n(d),h=n(14817),p=n(66700);function m(e,t){for(var n=Math.abs(e).toString();n.length"7"===e.value),x=(0,i.createContext)({}),w=()=>(0,i.useContext)(x);function E(e){let{children:t}=e,n=function(){let[e,t]=(0,y.Z)("v0/metrics/dataTimeSpan",{defaultValue:b.value}),[n,d]=(0,y.Z)("v0/metrics/dataInterval",{defaultValue:b.interval}),x=function(e){let[t,n]=(0,i.useState)(new Date().getTime());return(0,i.useEffect)(()=>{n(new Date().getTime());let t=setInterval(()=>{n(new Date().getTime()),console.log("reset time range")},(0,h.uQ)(e));return()=>clearInterval(t)},[e]),t}(n),w=(0,i.useMemo)(()=>(0,o.OQF)(e,x),[e,x]),E=(0,i.useCallback)(e=>{let n=h.lv.find(t=>t.value===e);d(n.interval),t(n.value)},[t,d]),j=(0,i.useMemo)(()=>(0,o.kOJ)(n),[n]),k=(0,l.KU)({params:{interval:n,start:function(e,t){(0,v.Z)(1,arguments);var n=(0,p.Z)(e);if(isNaN(n.getTime()))throw RangeError("Invalid time value");var r=null!=t&&t.format?String(t.format):"extended",i=null!=t&&t.representation?String(t.representation):"complete";if("extended"!==r&&"basic"!==r)throw RangeError("format must be 'extended' or 'basic'");if("date"!==i&&"time"!==i&&"complete"!==i)throw RangeError("representation must be 'date', 'time', or 'complete'");var o="",a="",s="extended"===r?"-":"";if("time"!==i){var l=m(n.getDate(),2),u=m(n.getMonth()+1,2),c=m(n.getFullYear(),4);o="".concat(c).concat(s).concat(u).concat(s).concat(l)}if("date"!==i){var d=n.getTimezoneOffset();if(0!==d){var f=Math.abs(d),h=m(Math.floor(f/60),2),g=m(f%60,2);a="".concat(d<0?"+":"-").concat(h,":").concat(g)}else a="Z";var y=m(n.getHours(),2),b=m(n.getMinutes(),2),x=m(n.getSeconds(),2),w=""===o?"":"T",E=[y,b,x].join("extended"===r?":":"");o="".concat(o).concat(w).concat(E).concat(a)}return o}(new Date(w.start-(0,h.uQ)(n)))},config:{swr:{revalidateOnFocus:!1,refreshInterval:(0,o.sWj)(5)}}}),S=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({storagePotential:Number(e.revenue.potential.storage),ingressPotential:Number(e.revenue.potential.ingress),egressPotential:Number(e.revenue.potential.egress),rpcPotential:Number(e.revenue.potential.rpc),storage:Number(e.revenue.earned.storage),ingress:Number(e.revenue.earned.ingress),egress:Number(e.revenue.earned.egress),rpc:Number(e.revenue.earned.rpc),potential:new(f())(e.revenue.potential.storage).plus(e.revenue.potential.ingress).plus(e.revenue.potential.egress).plus(e.revenue.potential.rpc).toNumber(),earned:new(f())(e.revenue.earned.storage).plus(e.revenue.earned.ingress).plus(e.revenue.earned.egress).plus(e.revenue.earned.rpc).toNumber(),timestamp:new Date(e.timestamp).getTime()})),"delta"),n=(0,o.fVJ)(t),i=t.map(e=>({storagePotential:Math.max(e.storagePotential,0),ingressPotential:Math.max(e.ingressPotential,0),egressPotential:Math.max(e.egressPotential,0),rpcPotential:Math.max(e.rpcPotential,0),storage:Math.max(e.storage,0),ingress:Math.max(e.ingress,0),egress:Math.max(e.egress,0),rpc:Math.max(e.rpc,0),timestamp:new Date(e.timestamp).getTime()}));return{data:i,stats:n,config:{enabledGraph:["storage","storagePotential","ingress","ingressPotential","egress","egressPotential","rpc","rpcPotential"],enabledTip:["storage","storagePotential","ingress","ingressPotential","egress","egressPotential","rpc","rpcPotential"],categories:["earned","potential"],data:{storagePotential:u(s.storage,"potential",!0),ingressPotential:u(s.ingress,"potential",!0),egressPotential:u(s.egress,"potential",!0),registryReadPotential:u(s.registryReads,"potential",!0),registryWritePotential:u(s.registryWrites,"potential",!0),rpcPotential:u(s.rpc,"potential",!0),storage:u(s.storage,"earned"),ingress:u(s.ingress,"earned"),egress:u(s.egress,"earned"),registryRead:u(s.registryReads,"earned"),registryWrite:u(s.registryWrites,"earned"),rpc:u(s.rpc,"earned"),earned:c({},"earned","total"),potential:c({},"potential","total")},formatComponent:function(e){let{value:t}=e;return(0,r.jsx)(o.ho9,{variant:"value",value:new(f())(t)})},formatTickY:e=>(0,a.Vz)(e,{fixed:0,dynamicUnits:!0}),formatTimestamp:j,disableAnimations:!0,chartType:"barstack",stackOffset:"diverging"},isLoading:k.isValidating}},[k,j]),O=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({locked:Number(e.contracts.lockedCollateral),risked:Number(e.contracts.riskedCollateral),timestamp:new Date(e.timestamp).getTime()})).slice(1),"none"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["locked","risked"],enabledTip:["locked","risked"],data:{locked:s.locked,risked:s.risked},formatComponent:function(e){let{value:t}=e;return(0,r.jsx)(o.ho9,{variant:"value",value:new(f())(t)})},formatTimestamp:j,formatTickY:e=>(0,a.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:"area",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,j]),_=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({baseRPC:(0,g.sS)(e.pricing.baseRPCPrice).toNumber(),collateral:(0,g.c5)(new(f())(e.pricing.storagePrice).times(e.pricing.collateralMultiplier)).toNumber(),contract:Number(e.pricing.contractPrice),egress:(0,g.B1)(e.pricing.egressPrice).toNumber(),ingress:(0,g.dK)(e.pricing.ingressPrice).toNumber(),sectorAccess:(0,g.nS)(e.pricing.sectorAccessPrice).toNumber(),storage:(0,g.SY)(e.pricing.storagePrice).toNumber(),timestamp:new Date(e.timestamp).getTime()})).slice(1),"none"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["storage","ingress","egress","collateral","contract","sectorAccess","baseRPC"],enabledTip:["storage","ingress","egress","collateral","contract","sectorAccess","baseRPC"],data:{baseRPC:s.rpc,sectorAccess:s.sectorAccess,contract:s.contract,collateral:s.collateral,egress:s.egress,ingress:s.ingress,storage:s.storage},formatComponent:function(e){let{value:t}=e;return(0,r.jsx)(o.ho9,{variant:"value",value:new(f())(t)})},formatTimestamp:j,formatTickY:e=>(0,a.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:"line",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,j]),C=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({active:e.contracts.active,failed:e.contracts.failed,pending:e.contracts.pending,rejected:e.contracts.rejected,successful:e.contracts.successful,timestamp:new Date(e.timestamp).getTime()})).slice(1),"none"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["successful","active","pending","rejected","failed"],enabledTip:["successful","active","pending","rejected","failed"],data:{active:s.active,failed:s.failed,pending:s.pending,rejected:s.rejected,successful:s.successful},format:e=>"".concat(e," contracts"),formatTimestamp:j,formatTickY:e=>(0,a.yF)(e),disableAnimations:!0,chartType:"areastack",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,j]),M=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({maxSectors:(0,a.B$)(e.storage.totalSectors).times(4).toNumber(),tempSectors:(0,a.B$)(e.storage.tempSectors).times(4).toNumber(),physicalSectors:(0,a.B$)(e.storage.physicalSectors).times(4).toNumber(),contractSectors:(0,a.B$)(e.storage.contractSectors).times(4).toNumber(),timestamp:new Date(e.timestamp).getTime()})).slice(1),"none"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["contractSectors","physicalSectors","tempSectors","maxSectors"],enabledTip:["contractSectors","physicalSectors","tempSectors","maxSectors"],categories:["storage used","storage capacity"],data:{maxSectors:c(s.capacityStorage,"storage capacity","sectors"),physicalSectors:c(s.storagePhysical,"storage used","sectors physical"),tempSectors:c(s.sectorsTemp,"storage used","sectors temp"),contractSectors:c(s.storage,"storage used","sectors contract")},format:e=>(0,a.vW)(e),formatTimestamp:j,formatTickY:e=>(0,a.vW)(e,{fixed:0}),disableAnimations:!0,chartType:"line",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,j]),A=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({storageReads:e.storage.reads,storageWrites:e.storage.writes,timestamp:new Date(e.timestamp).getTime()})),"delta"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["storageReads","storageWrites"],enabledTip:["storageReads","storageWrites"],data:{storageReads:s.storageReads,storageWrites:s.storageWrites},format:e=>(0,a.yF)(e),formatTickY:e=>(0,a.yF)(e),formatTimestamp:j,disableAnimations:!0,chartType:"line",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,j]),T=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({egress:e.data.rhp.egress,ingress:e.data.rhp.ingress,timestamp:new Date(e.timestamp).getTime()})),"delta"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["ingress","egress"],enabledTip:["ingress","egress"],data:{ingress:s.ingress,egress:s.egress},format:e=>(0,a.vW)(e),formatTimestamp:j,formatTickY:e=>(0,a.vW)(e,{fixed:0}),disableAnimations:!0,chartType:"line",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,j]);return{dataTimeSpan:e,setDataTimeSpan:E,timeRange:w,dataInterval:n,setDataInterval:d,operations:A,revenue:S,collateral:O,contracts:C,storage:M,pricing:_,bandwidth:T}}();return(0,r.jsx)(x.Provider,{value:n,children:t})}},14817:function(e,t,n){"use strict";n.d(t,{lv:function(){return i},uQ:function(){return o}});var r=n(13474);let i=[{label:"1D",interval:"15m",value:"1"},{label:"7D",interval:"hourly",value:"7"},{label:"1M",interval:"daily",value:"30"},{label:"3M",interval:"daily",value:"90"},{label:"1Y",interval:"weekly",value:"365"},{label:"ALL",interval:"monthly",value:"all"}];function o(e){return"5m"===e?(0,r.sWj)(5):"15m"===e?(0,r.sWj)(15):"hourly"===e?(0,r.ytg)(1):"daily"===e?(0,r.NrH)(1):"weekly"===e?(0,r.NrH)(7):"monthly"===e?(0,r.NrH)(30):"yearly"===e?(0,r.NrH)(365):0}},63171:function(e,t,n){"use strict";n.d(t,{n:function(){return p},v:function(){return m}});var r=n(52322),i=n(13474),o=n(27444),a=n(2784),s=n(30078),l=n(6391),u=n.n(l),c=n(5632),d=n(90089);let f=[],h=(0,a.createContext)({}),p=()=>(0,a.useContext)(h);function m(e){let{children:t}=e,n=function(){let e=(0,c.useRouter)(),t=Number(e.query.limit||50),n=Number(e.query.offset||0),r=(0,o.Qq)({params:{limit:t,offset:n},config:{swr:{refreshInterval:(0,i.XBW)(60)}}}),l=(0,o.a0)({config:{swr:{refreshInterval:(0,i.XBW)(60)}}}),{openDialog:h}=(0,s.Rh)(),p=(0,d.B)(),m=(0,a.useMemo)(()=>l.data&&r.data?[...(l.data||[]).map(e=>{let t="transaction"!==e.source;return{id:e.id,type:"transaction",unconfirmed:!0,txType:(0,i.leQ)(e.transaction,e.source),hash:e.id,inflow:e.inflow,outflow:e.outflow,sc:new(u())(e.inflow).minus(e.outflow),siascanUrl:t?void 0:p,timestamp:new Date(e.timestamp).getTime(),onClick:()=>h("transactionDetails",e.id),raw:e.transaction}}),...(r.data||[]).map(e=>{let t="transaction"!==e.source;return{id:e.id,type:"transaction",unconfirmed:!1,txType:(0,i.leQ)(e.transaction,e.source),hash:e.id,inflow:e.inflow,outflow:e.outflow,sc:new(u())(e.inflow).minus(e.outflow),siascanUrl:t?void 0:p,timestamp:new Date(e.timestamp).getTime(),onClick:()=>h("transactionDetails",e.id),raw:e.transaction}}).sort((e,t)=>e.timestamp{let e=new Date().getTime(),t=(0,i.NrH)(30);return new Date(e-t).toISOString()},[]),g=(0,o.KU)({params:{interval:"daily",start:v}}),y=(0,a.useMemo)(()=>(g.data||[]).map(e=>({sc:Number(e.balance),timestamp:new Date(e.timestamp).getTime()})).sort((e,t)=>e.timestamp>=t.timestamp?1:-1),[g.data]),b=r.error,x=(0,i.c2j)(m,r.isValidating,b,f);return{balances:y,metrics:g,dataset:m,error:b,dataState:x,offset:n,limit:t,pageCount:(null==m?void 0:m.length)||0}}();return(0,r.jsx)(h.Provider,{value:n,children:t})}},78743:function(e,t,n){"use strict";n.d(t,{Y:function(){return y},F:function(){return g}});var r=n(52322),i=n(13474),o=n(27444),a=n(2784);let s=["actions","path","storage","available","readOnly","successfulReads","successfulWrites","failedReads","failedWrites"];var l=n(41775),u=n(25205),c=n(30078);function d(e){var t,n;let{id:a,contentProps:s,buttonProps:u}=e,{openDialog:d}=(0,c.Rh)(),h=(0,o.Rz)(),p=(0,o.ST)({params:{id:a}}),m=(0,o._3)(),v=p.data&&"ready"==p.data.status,g=p.data&&!["ready","unavailable"].includes(p.data.status);return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...u,children:(0,r.jsx)(l.iG7,{})}),contentProps:{align:"start",...s},children:[(0,r.jsx)("div",{className:"px-1.5 py-1",children:(0,r.jsxs)(i.xvT,{size:"14",weight:"medium",color:"subtle",children:["Volume ",p.data?(0,i.$Gg)(null===(t=p.data)||void 0===t?void 0:t.localPath,24):a]})}),(0,r.jsx)(i.Juw,{children:"Actions"}),g?(0,r.jsxs)(i.Xiv,{onSelect:async()=>{var e;let t=null===(e=p.data)||void 0===e?void 0:e.status,n=await m.delete({params:{id:Number(a)}});n.error?(0,i.OHV)("Error canceling volume ".concat(f(t),".")):(0,i.OPV)("Successfully canceled volume ".concat(f(t),"."))},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(l.PcV,{})}),"Cancel ".concat(f(null===(n=p.data)||void 0===n?void 0:n.status))]}):null,p.data?(0,r.jsxs)(i.Xiv,{disabled:!v,onSelect:async()=>{let e=!p.data.readOnly,t=await h.put({params:{id:Number(a)},payload:{readOnly:e}});t.error?(0,i.OHV)(e?"Error setting volume to read-only.":"Error setting volume to read/write."):(0,i.OPV)(e?"Volume set to read-only.":"Volume set to read/write.")},children:[(0,r.jsx)(i.KpP,{children:p.data.readOnly?(0,r.jsx)(l.dr6,{}):(0,r.jsx)(l.Lur,{})}),p.data.readOnly?"Set to read/write":"Set to read-only"]}):null,(0,r.jsxs)(i.Xiv,{disabled:!v,onSelect:()=>d("volumeResize",a),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(l.BB5,{})}),"Resize"]}),(0,r.jsxs)(i.Xiv,{disabled:g,onSelect:()=>d("volumeDelete",a),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(l.Jrl,{})}),"Delete"]})]})}function f(e){return"resizing"===e?"resize":"creating"===e?"creation":"removing"===e?"removal":"operation"}let h=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:t}=e;return(0,r.jsx)(d,{id:t.id})}},{id:"path",label:"path",category:"general",render:e=>{let{data:t}=e;return(0,r.jsx)(i.xvT,{font:"mono",ellipsis:!0,children:t.localPath})}},{id:"available",label:"status",category:"general",render:e=>{var t;let{data:n}=e;return(0,r.jsx)(i.ua7,{side:"right",content:n.available?"available":(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.xvT,{children:"unavailable"}),(0,r.jsx)("div",{className:"flex flex-col",children:null===(t=n.errors)||void 0===t?void 0:t.map(e=>(0,r.jsx)(i.xvT,{size:"10",noWrap:!0,children:e},e))})]}),children:(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[n.available&&"ready"===n.status&&(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(l.DI$,{})}),n.available&&"ready"!==n.status&&(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(l.dsj,{})}),!n.available&&(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(l.SmH,{})}),(0,r.jsx)(i.xvT,{size:"12",className:"relative -top-px",children:n.status})]})})}},{id:"readOnly",label:"read/write",category:"general",render:e=>{let{data:t}=e;return t.readOnly?(0,r.jsx)(i.ua7,{content:"Read-only",children:(0,r.jsx)(i.xvT,{children:(0,r.jsx)(l.Lur,{})})}):(0,r.jsx)(i.ua7,{content:"Read and write enabled",children:(0,r.jsx)(i.xvT,{color:"subtle",children:(0,r.jsx)(l.dr6,{})})})}},{id:"storage",label:"storage",category:"general",render:e=>{let{data:t}=e;return(0,r.jsx)("div",{className:"flex gap-1 w-full max-w-[200px] pt-[10px]",children:(0,r.jsx)(i.kod,{variant:"accent",value:t.usedBytes,max:t.totalBytes,label:"".concat((0,u.vW)(t.usedBytes)," / ").concat((0,u.vW)(t.totalBytes))})})}},{id:"successfulReads",label:"successful reads",category:"operations",render:e=>{let{data:t}=e;return(0,r.jsx)(i.m2c,{variant:"value",size:"12",value:t.successfulReads,format:e=>e.toNumber().toLocaleString()})}},{id:"successfulWrites",label:"successful writes",category:"operations",render:e=>{let{data:t}=e;return(0,r.jsx)(i.m2c,{variant:"value",size:"12",value:t.successfulWrites,format:e=>e.toNumber().toLocaleString()})}},{id:"failedReads",label:"failed reads",category:"operations",render:e=>{let{data:t}=e;return(0,r.jsx)(i.m2c,{variant:"value",size:"12",value:t.failedReads,format:e=>e.toNumber().toLocaleString()})}},{id:"failedWrites",label:"failed writes",category:"operations",render:e=>{let{data:t}=e;return(0,r.jsx)(i.m2c,{variant:"value",size:"12",value:t.failedWrites,format:e=>e.toNumber().toLocaleString()})}}];var p=n(6391),m=n.n(p);let v=(0,a.createContext)({}),g=()=>(0,a.useContext)(v);function y(e){let{children:t}=e,n=function(){let{configurableColumns:e,enabledColumns:t,toggleColumnVisibility:n,setColumnsVisible:r,setColumnsHidden:l,toggleSort:c,setSortDirection:d,setSortField:f,sortField:p,sortDirection:v,resetDefaultColumnVisibility:g}=(0,i.oy6)("hostd/v0/volumes",{columns:h,columnsDefaultVisible:s}),y=(0,o.Fn)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.find(e=>!["ready","unavailable"].includes(e.status)))?(0,i.XBW)(5):(0,i.XBW)(60)}}}),b=function(e){let{response:t}=e;return(0,a.useMemo)(()=>{var e;return t.data?(null===(e=t.data)||void 0===e?void 0:e.map(e=>({id:String(e.id),localPath:e.localPath,usedSectors:e.usedSectors,usedBytes:new(m())(e.usedSectors).times((0,u.B$)(4)).toNumber(),totalBytes:new(m())(e.totalSectors).times((0,u.B$)(4)).toNumber(),totalSectors:e.totalSectors,status:e.status,readOnly:e.readOnly,available:e.available,failedReads:new(m())(e.failedReads),failedWrites:new(m())(e.failedWrites),successfulReads:new(m())(e.successfulReads),successfulWrites:new(m())(e.successfulWrites),errors:e.errors})))||[]:null},[t.data])}({response:y}),x=(0,a.useMemo)(()=>h.filter(e=>t.includes(e.id)),[t]),w=y.isValidating,E=y.error,j=(0,i.c2j)(b,w,E,[]);return{dataState:j,totalCount:(null==b?void 0:b.length)||0,isLoading:y.isValidating,columns:x,dataset:b,configurableColumns:e,enabledColumns:t,toggleColumnVisibility:n,setColumnsVisible:r,setColumnsHidden:l,toggleSort:c,setSortDirection:d,setSortField:f,sortField:p,sortDirection:v,resetDefaultColumnVisibility:g}}();return(0,r.jsx)(v.Provider,{value:n,children:t})}},734:function(e,t,n){"use strict";n.d(t,{O:function(){return u},Y:function(){return f}});var r=n(52322),i=n(13474),o=n(92838),a=n(7114),s=n(24511),l=n(30078);function u(e){return{id:"filterContractId",value:e,label:"contract ID is ".concat(e)}}let c={contractId:""},d=s.Ry().shape({contractId:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,o.G)(),p=(0,a.TA)({initialValues:c,validationSchema:d,onSubmit:e=>{h(u(e.contractId)),p.resetForm(),f()}});return(0,r.jsx)(i.VqE,{trigger:t,title:"Filter by contract ID",open:n,onOpenChange:e=>{e||p.resetForm(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Contract ID",name:"contractId",placeholder:"Exact match for contract ID",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},90089:function(e,t,n){"use strict";n.d(t,{B:function(){return o}});var r=n(13474),i=n(27444);function o(){var e;let t=(0,i.On)();return(null===(e=t.data)||void 0===e?void 0:e.network)==="Zen Testnet"?r.nNd.explore.testnetZen:r.nNd.explore.mainnet}},25573:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var r=n(95753),i=n(27444);function o(){var e,t,n,o;let{isUnlockedAndAuthedRoute:a}=(0,r.Hv)(),s=(0,i.d$)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.synced)?6e4:1e4}}}),l=(0,i.nH)(),u=s.data?null===(e=s.data)||void 0===e?void 0:e.chainIndex.height:0,c=(0,i.Os)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.scanHeight)>=u?6e4:1e4}}}),d=a&&u&&l?Number((100*Math.min(u/l,1)).toFixed(1)):0,f=a&&u&&c.data?Number((100*Math.min(c.data.scanHeight/l,1)).toFixed(1)):0;return{isSynced:null===(t=s.data)||void 0===t?void 0:t.synced,isWalletSynced:(null===(n=s.data)||void 0===n?void 0:n.synced)&&(null===(o=c.data)||void 0===o?void 0:o.scanHeight)>=u-1,nodeBlockHeight:u,estimatedBlockHeight:l,syncPercent:d,walletScanPercent:f,moreThan100BlocksToSync:!!u&&!!l&&l-u>100,firstTimeSyncing:!!u&&!!l&&l-u>5e4}}},94977:function(e,t,n){"use strict";n.d(t,{B1:function(){return m},K9:function(){return c},LP:function(){return v},SY:function(){return s},c5:function(){return h},co:function(){return l},dK:function(){return g},dz:function(){return a},nS:function(){return d},rZ:function(){return f},s2:function(){return p},sS:function(){return u}});var r=n(25205),i=n(6391),o=n.n(i);let a="/TB/month";function s(e){return new(o())(e).times((0,r.xf)(1)).times((0,r.S5)(1))}let l="/million";function u(e){return new(o())(e).times(1e7)}let c="/million";function d(e){return new(o())(e).times(1e7)}let f="/TB/month";function h(e){return new(o())(e).times((0,r.xf)(1)).times((0,r.S5)(1))}let p="/TB";function m(e){return new(o())(e).times((0,r.xf)(1))}let v="/TB";function g(e){return new(o())(e).times((0,r.xf)(1))}},76133:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return M}});var r=n(52322);n(37832);var i=n(13474),o=n(92838),a=n(5187),s=n(30078),l=n(78743),u=n(10842),c=n(41775),d=n(25573),f=n(71930),h=n(27444),p=n(6391),m=n.n(p),v=n(25205),g=n(95753),y=n(92762);function b(){var e;let{isUnlockedAndAuthedRoute:t}=(0,g.Hv)(),{openDialog:n}=(0,s.Rh)(),{dataset:o}=(0,l.F)(),a=(0,h.rV)(),u=(0,h.Os)(),[p,b]=(0,y.Z)("v0/hostd/onboarding/maximized",{defaultValue:!0}),w=(0,d.n)();if(!t)return null;let E=new(m())(u.data?u.data.confirmed+u.data.unconfirmed:0),j=(0,v.qN)(0),k=u.data&&E.gt(j),S=(null==o?void 0:o.length)>0,O=null===(e=a.data)||void 0===e?void 0:e.acceptingContracts,_=w.isSynced,C=[k,S,O,_],M=C.length,A=C.filter(e=>e).length;return M===A?null:p?(0,r.jsx)("div",{className:"z-20 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsx)(i.s_4,{className:"w-[400px] flex flex-col max-h-[600px]",children:(0,r.jsxs)(i.xrM,{children:[(0,r.jsxs)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)(i.TRl,{}),(0,r.jsx)(i.xvT,{size:"20",weight:"semibold",children:"Welcome to Sia"})]}),(0,r.jsx)(i.zxk,{variant:"ghost",onClick:()=>b(!1),children:(0,r.jsx)(c.mli,{})})]}),(0,r.jsx)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:(0,r.jsx)(i.xvT,{size:"14",children:"Get set up by completing the following steps. Once they are complete, your host is ready to store data."})}),(0,r.jsx)(x,{title:(0,r.jsx)(i.rUS,{href:f._.wallet.view,onClick:()=>n("addressDetails"),ellipsis:!0,size:"14",underline:"hover",children:"Step 1: Fund your wallet"}),description:"Fund your wallet with siacoin to cover required contract collateral.".concat(w.isWalletSynced?"":" Balance will not be accurate until wallet is finished scanning."),action:k?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(c.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[!w.isWalletSynced&&(0,r.jsx)(i.ua7,{content:"Wallet scanning progress ".concat(w.walletScanPercent,"%"),children:(0,r.jsxs)(i.xvT,{size:"14",children:[w.walletScanPercent,"%"]})}),(0,r.jsx)(i.rUS,{href:f._.wallet.view,onClick:()=>n("addressDetails"),children:(0,r.jsx)(c.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(c.Fs9,{})})]})}),(0,r.jsx)(x,{title:(0,r.jsx)(i.rUS,{href:f._.volumes.index,ellipsis:!0,size:"14",underline:"hover",children:"Step 2: Add a volume"}),description:"Add a system volume that will be used to store data.",action:S?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(c.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.rUS,{href:f._.volumes.index,children:(0,r.jsx)(c.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(c.Fs9,{})})]})}),(0,r.jsx)(x,{title:(0,r.jsx)(i.rUS,{href:f._.config.index,ellipsis:!0,size:"14",underline:"hover",children:"Step 3: Configure pricing and settings"}),description:"Configure your host's pricing and settings and start accepting contracts.",action:O?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(c.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.rUS,{href:f._.config.index,children:(0,r.jsx)(c.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(c.Fs9,{})})]})}),(0,r.jsx)(x,{title:(0,r.jsx)(i.rUS,{href:f._.node.index,underline:"hover",ellipsis:!0,size:"14",children:"Step 4: Wait for the blockchain to sync"}),description:"The blockchain will sync in the background, this takes some time. No user action required.",action:_?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(c.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.xvT,{ellipsis:!0,size:"14",children:[w.syncPercent,"%"]}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(c.hzZ,{})})]})})]})})}):(0,r.jsx)("div",{className:"z-30 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsx)(i.zxk,{onClick:()=>b(!0),size:"large",className:"flex gap-3 !px-3",children:(0,r.jsxs)(i.xvT,{className:"flex items-center gap-1",children:[(0,r.jsx)(i.TRl,{}),"Setup: ",A,"/",M," steps complete"]})})})}function x(e){let{title:t,action:n,description:o}=e;return(0,r.jsx)("div",{className:"border-t first:border-t-0 border-gray-200 dark:border-graydark-300 px-3 py-2",children:(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)("div",{className:"flex-1 flex items-center",children:t}),n]}),(0,r.jsx)("div",{className:"pr-5",children:(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:o})})]})})}var w=n(63171);function E(e){let{children:t}=e;return(0,r.jsx)(s.Tu,{children:(0,r.jsx)(u.iV,{children:(0,r.jsx)(w.v,{children:(0,r.jsx)(l.Y,{children:(0,r.jsx)(o.x,{children:(0,r.jsxs)(a.C,{children:[(0,r.jsx)(s.xQ,{}),(0,r.jsx)(b,{}),t]})})})})})})}var j=n(1240),k=n.n(j),S=n(49854),O=n.n(S),_=n(82851);let C=(0,_.cx)(k().variable,O().variable);function M(e){let{Component:t,pageProps:n}=e;return(0,r.jsx)(i.PD$,{className:C,fallback:n.fallback,passwordProtectRequestHooks:!0,lockRoutes:f._,children:(0,r.jsx)(E,{children:(0,r.jsx)(t,{...n})})})}},13474:function(e,t,n){"use strict";let r,i,o,a;n.d(t,{hcY:function(){return _v},tU3:function(){return _f},zXq:function(){return _F},juT:function(){return OY},Cts:function(){return lC},Z58:function(){return Cg},WVB:function(){return cB},zxk:function(){return ld},b0u:function(){return kD},EKh:function(){return lT},vRO:function(){return C2},QHy:function(){return CU},TaT:function(){return CA},eQh:function(){return lN},HfT:function(){return C$},ncR:function(){return O_},A06:function(){return CE},Vy9:function(){return Cj},VqE:function(){return uc},h_2:function(){return c$},Xiv:function(){return cY},Juw:function(){return cG},KpP:function(){return cK},XOF:function(){return OO},jIp:function(){return C4},QBj:function(){return C3},yEL:function(){return _M},cB7:function(){return ON},ZqQ:function(){return OP},IKw:function(){return Oz},WN2:function(){return Mp},X6q:function(){return c0},Yqd:function(){return fN},__J:function(){return c8},rUS:function(){return de},TRl:function(){return dn},kFS:function(){return cH},FzK:function(){return CI},Clw:function(){return cI},PD$:function(){return Me},Wxm:function(){return fL},uDJ:function(){return OI},wFK:function(){return OB},s_4:function(){return nt},nvN:function(){return t9},u5Q:function(){return Cy},j4H:function(){return fR},J2e:function(){return dS},kod:function(){return dz},xrM:function(){return us},PhF:function(){return fZ},Z0O:function(){return cZ},DLL:function(){return Cs},KJW:function(){return OX},rsf:function(){return fJ},D_D:function(){return _8},iA_:function(){return OV},t6k:function(){return CY},xvT:function(){return t7},nvn:function(){return fn},ua7:function(){return lu},mPE:function(){return _7},XxW:function(){return S2},m2c:function(){return S9},ho9:function(){return S7},QUh:function(){return Cu},weF:function(){return _Y},YNn:function(){return Ct},DmW:function(){return Cn},O9T:function(){return gO},fVJ:function(){return Cp},vQq:function(){return Sq},NrH:function(){return kA},Y_Z:function(){return Cc},EJC:function(){return Mm},kOJ:function(){return Ch},OQF:function(){return Cd},leQ:function(){return SK},ytg:function(){return kM},Vkc:function(){return cF},sWj:function(){return kC},z$:function(){return ne},XBW:function(){return kT},x9T:function(){return Mf},bjP:function(){return Mh},I13:function(){return SY},cEb:function(){return ft},OHV:function(){return SH},OPV:function(){return SB},$Gg:function(){return S$},Y97:function(){return _d},c2j:function(){return _h},mYE:function(){return C6},u$d:function(){return C8},Z4p:function(){return C5},WsO:function(){return _C},Uu5:function(){return Md},oy6:function(){return Mc},nNd:function(){return Cr}});var s,l,u,c,d,f,h,p,m,v,g,y,b,x,w,E,j,k,S,O,_,C,M,A,T,P,N,R={};n.r(R),n.d(R,{useDropzone:function(){return ms}});var D=n(52322),Z=n(2784),L=n.t(Z,2),F=n(7896),z=n(34540),V=n(26215),I=n(99575);function B(e){let t=e+"CollectionProvider",[n,r]=(0,z.b)(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=Z.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(a,n),s=(0,V.e)(t,i.collectionRef);return Z.createElement(I.g7,{ref:s},r)}),l=e+"CollectionItemSlot",u="data-radix-collection-item",c=Z.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=Z.useRef(null),s=(0,V.e)(t,a),c=o(l,n);return Z.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),Z.createElement(I.g7,{[u]:"",ref:s},r)});return[{Provider:e=>{let{scope:t,children:n}=e,r=Z.useRef(null),o=Z.useRef(new Map).current;return Z.createElement(i,{scope:t,itemMap:o,collectionRef:r},n)},Slot:s,ItemSlot:c},function(t){let n=o(e+"CollectionConsumer",t),r=Z.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()),i=r.sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return i},[n.collectionRef,n.itemMap]);return r},r]}var H=n(41816),U=n(73597),W=n(72130),q=n(64680),$=n(28245),Y=n(26074);let G="Collapsible",[K,X]=(0,z.b)(G),[Q,J]=K(G),ee=((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:o,onOpenChange:a,...s}=e,[l=!1,u]=(0,U.T)({prop:r,defaultProp:i,onChange:a});return(0,Z.createElement)(Q,{scope:n,disabled:o,contentId:(0,Y.M)(),open:l,onOpenToggle:(0,Z.useCallback)(()=>u(e=>!e),[u])},(0,Z.createElement)(W.WV.div,(0,F.Z)({"data-state":en(l),"data-disabled":o?"":void 0},s,{ref:t})))},"CollapsibleContent"),et=((e,t)=>{let{forceMount:n,...r}=e,i=J(ee,e.__scopeCollapsible);return(0,Z.createElement)($.z,{present:n||i.open},({present:e})=>(0,Z.createElement)(et,(0,F.Z)({},r,{ref:t,present:e})))},(0,Z.forwardRef)((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...o}=e,a=J(ee,n),[s,l]=(0,Z.useState)(r),u=(0,Z.useRef)(null),c=(0,V.e)(t,u),d=(0,Z.useRef)(0),f=d.current,h=(0,Z.useRef)(0),p=h.current,m=a.open||s,v=(0,Z.useRef)(m),g=(0,Z.useRef)();return(0,Z.useEffect)(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,q.b)(()=>{let e=u.current;if(e){g.current=g.current||{transitionDuration:e.style.transitionDuration,animationDuration:e.style.animationDuration,animationFillMode:e.style.animationFillMode},e.style.transitionDuration="0s",e.style.animationDuration="0s",e.style.animationFillMode="none";let t=e.getBoundingClientRect();d.current=t.height,h.current=t.width,v.current||(e.style.transitionDuration=g.current.transitionDuration,e.style.animationDuration=g.current.animationDuration,e.style.animationFillMode=g.current.animationFillMode),l(r)}},[a.open,r]),(0,Z.createElement)(W.WV.div,(0,F.Z)({"data-state":en(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!m},o,{ref:c,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":p?`${p}px`:void 0,...e.style}}),m&&i)}));function en(e){return e?"open":"closed"}let er="Accordion",ei=["Home","End","ArrowDown","ArrowUp"],[eo,ea,es]=B(er),[el,eu]=(0,z.b)(er,[es,X]),ec=(X(),Z.forwardRef((e,t)=>{let{type:n,...r}=e;return Z.createElement(eo.Provider,{scope:e.__scopeAccordion},"multiple"===n?Z.createElement(ev,(0,F.Z)({},r,{ref:t})):Z.createElement(em,(0,F.Z)({},r,{ref:t})))}));ec.propTypes={type(e){let t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):"multiple"===e.type&&"string"==typeof t?Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):"single"===e.type&&Array.isArray(t)?Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};let[ed,ef]=el(er),[eh,ep]=el(er,{collapsible:!1}),em=Z.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:o=!1,...a}=e,[s,l]=(0,U.T)({prop:n,defaultProp:r,onChange:i});return Z.createElement(ed,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:l,onItemClose:Z.useCallback(()=>o&&l(""),[o,l])},Z.createElement(eh,{scope:e.__scopeAccordion,collapsible:o},Z.createElement(eb,(0,F.Z)({},a,{ref:t}))))}),ev=Z.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...o}=e,[a=[],s]=(0,U.T)({prop:n,defaultProp:r,onChange:i}),l=Z.useCallback(e=>s((t=[])=>[...t,e]),[s]),u=Z.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return Z.createElement(ed,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:u},Z.createElement(eh,{scope:e.__scopeAccordion,collapsible:!0},Z.createElement(eb,(0,F.Z)({},o,{ref:t}))))}),[eg,ey]=el(er),eb=Z.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:r,...i}=e,o=Z.useRef(null),a=(0,V.e)(o,t),s=ea(n),l=(0,H.M)(e.onKeyDown,e=>{var t;if(!ei.includes(e.key))return;let n=e.target,r=s().filter(e=>{var t;return!(null!==(t=e.ref.current)&&void 0!==t&&t.disabled)}),i=r.findIndex(e=>e.ref.current===n),o=r.length;if(-1===i)return;e.preventDefault();let a=i;switch(e.key){case"Home":a=0;break;case"End":a=o-1;break;case"ArrowDown":a=i+1;break;case"ArrowUp":(a=i-1)<0&&(a=o-1)}let l=a%o;null===(t=r[l].ref.current)||void 0===t||t.focus()});return Z.createElement(eg,{scope:n,disabled:r},Z.createElement(eo.Slot,{scope:n},Z.createElement(W.WV.div,(0,F.Z)({},i,{ref:a,onKeyDown:r?void 0:l}))))}),[ex,ew]=el("AccordionItem");var eE=n(82851),ej=n(83317);function ek(e){return e.split("-")[0]}function eS(e){return e.split("-")[1]}function eO(e){return["top","bottom"].includes(ek(e))?"x":"y"}function e_(e){return"y"===e?"height":"width"}function eC(e,t,n){let r,{reference:i,floating:o}=e,a=i.x+i.width/2-o.width/2,s=i.y+i.height/2-o.height/2,l=eO(t),u=e_(l),c=i[u]/2-o[u]/2,d="x"===l;switch(ek(t)){case"top":r={x:a,y:i.y-o.height};break;case"bottom":r={x:a,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:s};break;case"left":r={x:i.x-o.width,y:s};break;default:r={x:i.x,y:i.y}}switch(eS(t)){case"start":r[l]-=c*(n&&d?-1:1);break;case"end":r[l]+=c*(n&&d?-1:1)}return r}let eM=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=await (null==a.isRTL?void 0:a.isRTL(t)),l=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=eC(l,r,s),d=r,f={},h=0;for(let n=0;n({name:"arrow",options:e,async fn(t){let{element:n,padding:r=0}=null!=e?e:{},{x:i,y:o,placement:a,rects:s,platform:l}=t;if(null==n)return{};let u=eA(r),c={x:i,y:o},d=eO(a),f=eS(a),h=e_(d),p=await l.getDimensions(n),m="y"===d?"top":"left",v="y"===d?"bottom":"right",g=s.reference[h]+s.reference[d]-c[d]-s.floating[h],y=c[d]-s.reference[d],b=await (null==l.getOffsetParent?void 0:l.getOffsetParent(n)),x=b?"y"===d?b.clientHeight||0:b.clientWidth||0:0;0===x&&(x=s.floating[h]);let w=u[m],E=x-p[h]-u[v],j=x/2-p[h]/2+(g/2-y/2),k=eR(w,eN(j,E)),S=("start"===f?u[m]:u[v])>0&&j!==k&&s.reference[h]<=s.floating[h];return{[d]:c[d]-(S?jeZ[e])}let eF={start:"end",end:"start"};function ez(e){return e.replace(/start|end/g,e=>eF[e])}let eV=["top","right","bottom","left"];eV.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);let eI=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o;let{placement:a,middlewareData:s,rects:l,initialPlacement:u,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",flipAlignment:v=!0,...g}=e,y=ek(a),b=p||(y!==u&&v?function(e){let t=eL(e);return[ez(e),t,ez(t)]}(u):[eL(u)]),x=[u,...b],w=await eP(t,g),E=[],j=(null==(n=s.flip)?void 0:n.overflows)||[];if(f&&E.push(w[y]),h){let{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);let r=eS(e),i=eO(e),o=e_(i),a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=eL(a)),{main:a,cross:eL(a)}}(a,l,await (null==c.isRTL?void 0:c.isRTL(d.floating)));E.push(w[e],w[t])}if(j=[...j,{placement:a,overflows:E}],!E.every(e=>e<=0)){let e=(null!=(r=null==(i=s.flip)?void 0:i.index)?r:0)+1,t=x[e];if(t)return{data:{index:e,overflows:j},reset:{placement:t}};let n="bottom";switch(m){case"bestFit":{let e=null==(o=j.map(e=>[e,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0].placement;e&&(n=e);break}case"initialPlacement":n=u}if(a!==n)return{reset:{placement:n}}}return{}}}};function eB(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function eH(e){return eV.some(t=>e[t]>=0)}let eU=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){let{rects:r}=e;switch(t){case"referenceHidden":{let t=eB(await eP(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:eH(t)}}}case"escaped":{let t=eB(await eP(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:eH(t)}}}default:return{}}}}},eW=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){let{x:n,y:r}=t,i=await async function(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),a=ek(n),s=eS(n),l="x"===eO(n),u=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,d="function"==typeof t?t(e):t,{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}(t,e);return{x:n+i.x,y:r+i.y,data:i}}}};function eq(e){return"x"===e?"y":"x"}let e$=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=e,u={x:n,y:r},c=await eP(t,l),d=eO(ek(i)),f=eq(d),h=u[d],p=u[f];if(o){let e="y"===d?"bottom":"right";h=eR(h+c["y"===d?"top":"left"],eN(h,h-c[e]))}a&&(p=eR(p+c["y"===f?"top":"left"],eN(p,p-c["y"===f?"bottom":"right"])));let m=s.fn({...t,[d]:h,[f]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}},eY=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=e,c={x:n,y:r},d=eO(i),f=eq(d),h=c[d],p=c[f],m="function"==typeof s?s({...o,placement:i}):s,v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let e="y"===d?"height":"width",t=o.reference[d]-o.floating[e]+v.mainAxis,n=o.reference[d]+o.reference[e]-v.mainAxis;hn&&(h=n)}if(u){var g,y,b,x;let e="y"===d?"width":"height",t=["top","left"].includes(ek(i)),n=o.reference[f]-o.floating[e]+(t&&null!=(g=null==(y=a.offset)?void 0:y[f])?g:0)+(t?0:v.crossAxis),r=o.reference[f]+o.reference[e]+(t?0:null!=(b=null==(x=a.offset)?void 0:x[f])?b:0)-(t?v.crossAxis:0);pr&&(p=r)}return{[d]:h,[f]:p}}}};function eG(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function eK(e){if(null==e)return window;if(!eG(e)){let t=e.ownerDocument;return t&&t.defaultView||window}return e}function eX(e){return eK(e).getComputedStyle(e)}function eQ(e){return eG(e)?"":e?(e.nodeName||"").toLowerCase():""}function eJ(){let e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function e0(e){return e instanceof eK(e).HTMLElement}function e1(e){return e instanceof eK(e).Element}function e2(e){return"undefined"!=typeof ShadowRoot&&(e instanceof eK(e).ShadowRoot||e instanceof ShadowRoot)}function e4(e){let{overflow:t,overflowX:n,overflowY:r}=eX(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function e3(e){let t=/firefox/i.test(eJ()),n=eX(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function e5(){return!/^((?!chrome|android).)*safari/i.test(eJ())}let e6=Math.min,e8=Math.max,e7=Math.round;function e9(e,t,n){var r,i,o,a;void 0===t&&(t=!1),void 0===n&&(n=!1);let s=e.getBoundingClientRect(),l=1,u=1;t&&e0(e)&&(l=e.offsetWidth>0&&e7(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&e7(s.height)/e.offsetHeight||1);let c=e1(e)?eK(e):window,d=!e5()&&n,f=(s.left+(d&&null!=(r=null==(i=c.visualViewport)?void 0:i.offsetLeft)?r:0))/l,h=(s.top+(d&&null!=(o=null==(a=c.visualViewport)?void 0:a.offsetTop)?o:0))/u,p=s.width/l,m=s.height/u;return{width:p,height:m,top:h,right:f+p,bottom:h+m,left:f,x:f,y:h}}function te(e){return((e instanceof eK(e).Node?e.ownerDocument:e.document)||window.document).documentElement}function tt(e){return e1(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function tn(e){return e9(te(e)).left+tt(e).scrollLeft}function tr(e){return"html"===eQ(e)?e:e.assignedSlot||e.parentNode||(e2(e)?e.host:null)||te(e)}function ti(e){return e0(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function to(e){let t=eK(e),n=ti(e);for(;n&&["table","td","th"].includes(eQ(n))&&"static"===getComputedStyle(n).position;)n=ti(n);return n&&("html"===eQ(n)||"body"===eQ(n)&&"static"===getComputedStyle(n).position&&!e3(n))?t:n||function(e){let t=tr(e);for(e2(t)&&(t=t.host);e0(t)&&!["html","body"].includes(eQ(t));){if(e3(t))return t;t=t.parentNode}return null}(e)||t}function ta(e){if(e0(e))return{width:e.offsetWidth,height:e.offsetHeight};let t=e9(e);return{width:t.width,height:t.height}}function ts(e,t){var n;void 0===t&&(t=[]);let r=function e(t){let n=tr(t);return["html","body","#document"].includes(eQ(n))?t.ownerDocument.body:e0(n)&&e4(n)?n:e(n)}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=eK(r),a=i?[o].concat(o.visualViewport||[],e4(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(ts(a))}function tl(e,t,n){return"viewport"===t?eT(function(e,t){let n=eK(e),r=te(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=e5();(e||!e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n)):e1(t)?function(e,t){let n=e9(e,!1,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft;return{top:r,left:i,x:i,y:r,right:i+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):eT(function(e){var t;let n=te(e),r=tt(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=e8(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=e8(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+tn(e),l=-r.scrollTop;return"rtl"===eX(i||n).direction&&(s+=e8(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(te(e)))}let tu={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?function(e){let t=ts(e),n=["absolute","fixed"].includes(eX(e).position)&&e0(e)?to(e):e;return e1(n)?t.filter(e=>e1(e)&&function(e,t){let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&e2(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==eQ(e)):[]}(t):[].concat(n),r],a=o[0],s=o.reduce((e,n)=>{let r=tl(t,n,i);return e.top=e8(r.top,e.top),e.right=e6(r.right,e.right),e.bottom=e6(r.bottom,e.bottom),e.left=e8(r.left,e.left),e},tl(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=e0(n),o=te(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==eQ(n)||e4(o))&&(a=tt(n)),e0(n))){let e=e9(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:e1,getDimensions:ta,getOffsetParent:to,getDocumentElement:te,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:function(e,t,n){let r=e0(t),i=te(t),o=e9(e,r&&function(e){let t=e9(e);return e7(t.width)!==e.offsetWidth||e7(t.height)!==e.offsetHeight}(t),"fixed"===n),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&"fixed"!==n){if(("body"!==eQ(t)||e4(i))&&(a=tt(t)),e0(t)){let e=e9(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=tn(i))}return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}(t,to(n),r),floating:{...ta(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===eX(e).direction};function tc(e,t,n,r){void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=i&&!s,u=o&&!s,c=l||u?[...e1(e)?ts(e):[],...ts(t)]:[];c.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let d,f=null;if(a){let r=!0;f=new ResizeObserver(()=>{r||n(),r=!1}),e1(e)&&!s&&f.observe(e),f.observe(t)}let h=s?e9(e):null;return s&&function t(){let r=e9(e);h&&(r.x!==h.x||r.y!==h.y||r.width!==h.width||r.height!==h.height)&&n(),h=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{l&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}let td=(e,t,n)=>eM(e,t,{platform:tu,...n});var tf=n(28316),th="undefined"!=typeof document?Z.useLayoutEffect:Z.useEffect;function tp(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:i}=void 0===e?{}:e,o=Z.useRef(null),a=Z.useRef(null),s=function(e){let t=Z.useRef(e);return th(()=>{t.current=e}),t}(i),l=Z.useRef(null),[u,c]=Z.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=Z.useState(t);!function e(t,n){let r,i,o;if(t===n)return!0;if(typeof t!=typeof n)return!1;if("function"==typeof t&&t.toString()===n.toString())return!0;if(t&&n&&"object"==typeof t){if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){let r=o[i];if(("_owner"!==r||!t.$$typeof)&&!e(t[r],n[r]))return!1}return!0}return t!=t&&n!=n}(null==d?void 0:d.map(e=>{let{options:t}=e;return t}),null==t?void 0:t.map(e=>{let{options:t}=e;return t}))&&f(t);let h=Z.useCallback(()=>{o.current&&a.current&&td(o.current,a.current,{middleware:d,placement:n,strategy:r}).then(e=>{p.current&&tf.flushSync(()=>{c(e)})})},[d,n,r]);th(()=>{p.current&&h()},[h]);let p=Z.useRef(!1);th(()=>(p.current=!0,()=>{p.current=!1}),[]);let m=Z.useCallback(()=>{if("function"==typeof l.current&&(l.current(),l.current=null),o.current&&a.current){if(s.current){let e=s.current(o.current,a.current,h);l.current=e}else h()}},[h,s]),v=Z.useCallback(e=>{o.current=e,m()},[m]),g=Z.useCallback(e=>{a.current=e,m()},[m]),y=Z.useMemo(()=>({reference:o,floating:a}),[]);return Z.useMemo(()=>({...u,update:h,refs:y,reference:v,floating:g}),[u,h,y,v,g])}let tm=e=>{let{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){if(Object.prototype.hasOwnProperty.call(t,"current")){if(null!=t.current)return eD({element:t.current,padding:n}).fn(e)}else if(t)return eD({element:t,padding:n}).fn(e);return{}}}},tv=(0,Z.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,Z.createElement)(W.WV.svg,(0,F.Z)({},o,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,Z.createElement)("polygon",{points:"0,0 30,0 15,10"}))});function tg(e){let[t,n]=(0,Z.useState)(void 0);return(0,q.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}let ty="Popper",[tb,tx]=(0,z.b)(ty),[tw,tE]=tb(ty),tj=(0,Z.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,o=tE("PopperAnchor",n),a=(0,Z.useRef)(null),s=(0,V.e)(t,a);return(0,Z.useEffect)(()=>{o.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,Z.createElement)(W.WV.div,(0,F.Z)({},i,{ref:s}))}),tk="PopperContent",[tS,tO]=tb(tk),[t_,tC]=tb(tk,{hasParent:!1,positionUpdateFns:new Set}),tM=(0,Z.forwardRef)((e,t)=>{var n,r,i,o,a,s,l,u;let{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:h="center",alignOffset:p=0,arrowPadding:m=0,collisionBoundary:v=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:b=!1,avoidCollisions:x=!0,...w}=e,E=tE(tk,c),[j,k]=(0,Z.useState)(null),S=(0,V.e)(t,e=>k(e)),[O,_]=(0,Z.useState)(null),C=tg(O),M=null!==(n=null==C?void 0:C.width)&&void 0!==n?n:0,A=null!==(r=null==C?void 0:C.height)&&void 0!==r?r:0,T="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},P=Array.isArray(v)?v:[v],N=P.length>0,R={padding:T,boundary:P.filter(tN),altBoundary:N},{reference:D,floating:L,strategy:F,x:z,y:I,placement:B,middlewareData:H,update:U}=tp({strategy:"fixed",placement:d+("center"!==h?"-"+h:""),whileElementsMounted:tc,middleware:[eW({mainAxis:f+A,alignmentAxis:p}),x?e$({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?eY():void 0,...R}):void 0,O?tm({element:O,padding:m}):void 0,x?eI({...R}):void 0,tR({arrowWidth:M,arrowHeight:A}),b?eU({strategy:"referenceHidden"}):void 0].filter(tP)});(0,q.b)(()=>{D(E.anchor)},[D,E.anchor]);let $=null!==z&&null!==I,[Y,G]=tD(B),K=null===(i=H.arrow)||void 0===i?void 0:i.x,X=null===(o=H.arrow)||void 0===o?void 0:o.y,Q=(null===(a=H.arrow)||void 0===a?void 0:a.centerOffset)!==0,[J,ee]=(0,Z.useState)();(0,q.b)(()=>{j&&ee(window.getComputedStyle(j).zIndex)},[j]);let{hasParent:et,positionUpdateFns:en}=tC(tk,c),er=!et;(0,Z.useLayoutEffect)(()=>{if(!er)return en.add(U),()=>{en.delete(U)}},[er,en,U]),(0,Z.useLayoutEffect)(()=>{er&&$&&Array.from(en).reverse().forEach(e=>requestAnimationFrame(e))},[er,$,en]);let ei={"data-side":Y,"data-align":G,...w,ref:S,style:{...w.style,animation:$?void 0:"none",opacity:null!==(s=H.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,Z.createElement)("div",{ref:L,"data-radix-popper-content-wrapper":"",style:{position:F,left:0,top:0,transform:$?`translate3d(${Math.round(z)}px, ${Math.round(I)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[null===(l=H.transformOrigin)||void 0===l?void 0:l.x,null===(u=H.transformOrigin)||void 0===u?void 0:u.y].join(" ")}},(0,Z.createElement)(tS,{scope:c,placedSide:Y,onArrowChange:_,arrowX:K,arrowY:X,shouldHideArrow:Q},er?(0,Z.createElement)(t_,{scope:c,hasParent:!0,positionUpdateFns:en},(0,Z.createElement)(W.WV.div,ei)):(0,Z.createElement)(W.WV.div,ei)))}),tA={top:"bottom",right:"left",bottom:"top",left:"right"},tT=(0,Z.forwardRef)(function(e,t){let{__scopePopper:n,...r}=e,i=tO("PopperArrow",n),o=tA[i.placedSide];return(0,Z.createElement)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},(0,Z.createElement)(tv,(0,F.Z)({},r,{ref:t,style:{...r.style,display:"block"}})))});function tP(e){return void 0!==e}function tN(e){return null!==e}let tR=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=tD(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(r=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+d/2,g=(null!==(o=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==o?o:0)+f/2,y="",b="";return"bottom"===h?(y=c?m:`${v}px`,b=`${-f}px`):"top"===h?(y=c?m:`${v}px`,b=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,b=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,b=c?m:`${g}px`),{data:{x:y,y:b}}}});function tD(e){let[t,n="center"]=e.split("-");return[t,n]}let tZ=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,Z.useState)(null);return(0,Z.createElement)(tw,{scope:t,anchor:r,onAnchorChange:i},n)};var tL=n(6500);let tF=(0,Z.forwardRef)((e,t)=>(0,Z.createElement)(W.WV.span,(0,F.Z)({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),[tz,tV]=(0,z.b)("Tooltip",[tx]),tI=tx(),tB="tooltip.open",[tH,tU]=tz("TooltipProvider"),tW="Tooltip",[tq,t$]=tz(tW),tY="TooltipTrigger",tG=(0,Z.forwardRef)((e,t)=>{let{__scopeTooltip:n,...r}=e,i=t$(tY,n),o=tU(tY,n),a=tI(n),s=(0,Z.useRef)(null),l=(0,V.e)(t,s,i.onTriggerChange),u=(0,Z.useRef)(!1),c=(0,Z.useRef)(!1),d=(0,Z.useCallback)(()=>u.current=!1,[]);return(0,Z.useEffect)(()=>()=>document.removeEventListener("pointerup",d),[d]),(0,Z.createElement)(tj,(0,F.Z)({asChild:!0},a),(0,Z.createElement)(W.WV.button,(0,F.Z)({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},r,{ref:l,onPointerMove:(0,H.M)(e.onPointerMove,e=>{"touch"===e.pointerType||c.current||o.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:(0,H.M)(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:(0,H.M)(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:(0,H.M)(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:(0,H.M)(e.onBlur,i.onClose),onClick:(0,H.M)(e.onClick,e=>{let t=0===e.detail;t&&i.onClose()})})))}),tK="TooltipPortal",[tX,tQ]=tz(tK,{forceMount:void 0}),tJ="TooltipContent",t0=(0,Z.forwardRef)((e,t)=>{let n=tQ(tJ,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,a=t$(tJ,e.__scopeTooltip);return(0,Z.createElement)($.z,{present:r||a.open},a.disableHoverableContent?(0,Z.createElement)(t3,(0,F.Z)({side:i},o,{ref:t})):(0,Z.createElement)(t1,(0,F.Z)({side:i},o,{ref:t})))}),t1=(0,Z.forwardRef)((e,t)=>{let n=t$(tJ,e.__scopeTooltip),r=tU(tJ,e.__scopeTooltip),i=(0,Z.useRef)(null),o=(0,V.e)(t,i),[a,s]=(0,Z.useState)(null),{trigger:l,onClose:u}=n,c=i.current,{onPointerInTransitChange:d}=r,f=(0,Z.useCallback)(()=>{s(null),d(!1)},[d]),h=(0,Z.useCallback)((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:return null}}(r,n.getBoundingClientRect()),o="right"===i||"bottom"===i?-5:5,a="right"===i||"left"===i?{x:e.clientX+o,y:e.clientY}:{x:e.clientX,y:e.clientY+o},l=function(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}(t.getBoundingClientRect()),u=function(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y?1:0),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}([a,...l]);s(u),d(!0)},[d]);return(0,Z.useEffect)(()=>()=>f(),[f]),(0,Z.useEffect)(()=>{if(l&&c){let e=e=>h(e,c),t=e=>h(e,l);return l.addEventListener("pointerleave",e),c.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),c.removeEventListener("pointerleave",t)}}},[l,c,h,f]),(0,Z.useEffect)(()=>{if(a){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==l?void 0:l.contains(t))||(null==c?void 0:c.contains(t)),i=!function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;er!=u>r&&n<(l-a)*(r-s)/(u-s)+a;c&&(i=!i)}return i}(n,a);r?f():i&&(f(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[l,c,a,u,f]),(0,Z.createElement)(t3,(0,F.Z)({},e,{ref:o}))}),[t2,t4]=tz(tW,{isInside:!1}),t3=(0,Z.forwardRef)((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:a,...s}=e,l=t$(tJ,n),u=tI(n),{onClose:c}=l;return(0,Z.useEffect)(()=>(document.addEventListener(tB,c),()=>document.removeEventListener(tB,c)),[c]),(0,Z.useEffect)(()=>{if(l.trigger){let e=e=>{let t=e.target;null!=t&&t.contains(l.trigger)&&c()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[l.trigger,c]),(0,Z.createElement)(ej.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:c},(0,Z.createElement)(tM,(0,F.Z)({"data-state":l.stateAttribute},u,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),(0,Z.createElement)(I.A4,null,r),(0,Z.createElement)(t2,{scope:n,isInside:!0},(0,Z.createElement)(tF,{id:l.contentId,role:"tooltip"},i||r))))}),t5=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:o,disableHoverableContent:a,delayDuration:s}=e,l=tU(tW,e.__scopeTooltip),u=tI(t),[c,d]=(0,Z.useState)(null),f=(0,Y.M)(),h=(0,Z.useRef)(0),p=null!=a?a:l.disableHoverableContent,m=null!=s?s:l.delayDuration,v=(0,Z.useRef)(!1),[g=!1,y]=(0,U.T)({prop:r,defaultProp:i,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(tB))):l.onClose(),null==o||o(e)}}),b=(0,Z.useMemo)(()=>g?v.current?"delayed-open":"instant-open":"closed",[g]),x=(0,Z.useCallback)(()=>{window.clearTimeout(h.current),v.current=!1,y(!0)},[y]),w=(0,Z.useCallback)(()=>{window.clearTimeout(h.current),y(!1)},[y]),E=(0,Z.useCallback)(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,y(!0)},m)},[m,y]);return(0,Z.useEffect)(()=>()=>window.clearTimeout(h.current),[]),(0,Z.createElement)(tZ,u,(0,Z.createElement)(tq,{scope:t,contentId:f,open:g,stateAttribute:b,trigger:c,onTriggerChange:d,onTriggerEnter:(0,Z.useCallback)(()=>{l.isOpenDelayed?E():x()},[l.isOpenDelayed,E,x]),onTriggerLeave:(0,Z.useCallback)(()=>{p?w():window.clearTimeout(h.current)},[w,p]),onOpen:x,onClose:w,disableHoverableContent:p},n))},t6=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=t$(tK,t);return(0,Z.createElement)(tX,{scope:t,forceMount:n},(0,Z.createElement)($.z,{present:n||o.open},(0,Z.createElement)(tL.h,{asChild:!0,container:i},r)))},t8=(0,eE.j)([],{variants:{display:{default:"inline-block",none:""},font:{mono:"font-mono",sans:"font-sans"},color:{verySubtle:"text-gray-700 dark:text-graydark-700",subtle:"text-gray-1000 dark:text-graydark-1000",contrast:"text-gray-1100 dark:text-white",lo:"text-white dark:text-graydark-50",accent:"text-accent-1100 dark:text-accentdark-1100",red:"text-red-700 dark:text-red-400",green:"text-emerald-700 dark:text-emerald-500",amber:"text-amber-600 dark:text-amber-500",none:""},weight:{extrabold:"font-extrabold",bold:"font-bold",medium:"font-medium",semibold:"font-semibold",regular:"font-normal",normal:"font-normal",light:"font-light",none:""},size:{10:"text-xxs",12:"text-xs",14:"text-sm",16:"text-base",18:"text-lg",20:"text-xl",24:"text-2xl",30:"text-3xl",36:"text-4xl",40:"text-5xl",48:"text-5xl",60:"text-6xl",64:"text-6xl"},scaleSize:{12:"text-xxs md:text-xs",14:"text-xs md:text-sm",16:"text-sm md:text-base",18:"text-base md:text-lg",20:"text-base md:text-xl",24:"text-xl md:text-2xl",30:"text-2xl md:text-3xl",36:"text-3xl md:text-4xl",40:"text-4xl md:text-5xl",48:"text-4xl md:text-5xl",60:"text-5xl md:text-6xl",64:"text-5xl md:text-6xl"},noWrap:{true:"whitespace-nowrap"},underline:{accent:"underline underline-offset-2 decoration-2 decoration-accent-900 dark:decoration-accentdark-900",show:"underline underline-offset-2 decoration-gray-1100 dark:decoration-gray-500",hover:"hover:underline underline-offset-2 decoration-gray-1100 dark:decoration-gray-500",none:""},ellipsis:{true:"overflow-hidden text-ellipsis whitespace-nowrap"},wrapEllipsis:{true:"overflow-hidden text-ellipsis"}},defaultVariants:{display:"default",weight:"regular",font:"sans",color:"contrast",underline:"none"}}),t7=Z.forwardRef((e,t)=>{let{tag:n="span",className:r,font:i,color:o,weight:a,size:s,scaleSize:l,noWrap:u,underline:c,ellipsis:d,wrapEllipsis:f,...h}=e;return(0,D.jsx)(n,{ref:t,className:(0,eE.cx)(r,t8({font:i,color:o,weight:a,size:s,scaleSize:l,underline:c,noWrap:u,ellipsis:d,wrapEllipsis:f})),...h})}),t9=Z.forwardRef((e,t)=>{let{size:n="18",...r}=e;return(0,D.jsx)(t7,{tag:"p",...r,ref:t,weight:"regular",scaleSize:n,color:"subtle",className:(0,eE.cx)("leading-relaxed md:leading-relaxed",e.className)})}),ne=(0,eE.j)(["bg-white dark:bg-graydark-200","transition-shadow ease-in-out duration-300","shadow-sm hover:shadow","rounded","border","border-gray-400 dark:border-graydark-400"]),nt=Z.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,D.jsx)("div",{ref:t,className:ne({className:n}),...r})});var nn=n(34406);let nr=(void 0===nn||nn.env,"production"),ni=1/60*1e3,no="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),na="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(no()),ni),ns=!0,nl=!1,nu=!1,nc={delta:0,timestamp:0},nd=["read","update","preRender","render","postRender"],nf=nd.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,o=!1,a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{let l=s&&i,u=l?t:n;return o&&a.add(e),-1===u.indexOf(e)&&(u.push(e),l&&i&&(r=t.length)),e},cancel:e=>{let t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length)for(let n=0;nnl=!0),e),{}),nh=nd.reduce((e,t)=>{let n=nf[t];return e[t]=(e,t=!1,r=!1)=>(nl||ny(),n.schedule(e,t,r)),e},{}),np=nd.reduce((e,t)=>(e[t]=nf[t].cancel,e),{}),nm=nd.reduce((e,t)=>(e[t]=()=>nf[t].process(nc),e),{}),nv=e=>nf[e].process(nc),ng=e=>{nl=!1,nc.delta=ns?ni:Math.max(Math.min(e-nc.timestamp,40),1),nc.timestamp=e,nu=!0,nd.forEach(nv),nu=!1,nl&&(ns=!1,na(ng))},ny=()=>{nl=!0,ns=!0,nu||na(ng)},nb=()=>nc,nx="undefined"!=typeof document,nw=nx?Z.useLayoutEffect:Z.useEffect;function nE(){let e=(0,Z.useRef)(!1);return nw(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let nj=(0,Z.createContext)(null);function nk(e){let t=(0,Z.useRef)(null);return null===t.current&&(t.current=e()),t.current}class nS extends Z.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function nO({children:e,isPresent:t}){let n=(0,Z.useId)(),r=(0,Z.useRef)(null),i=(0,Z.useRef)({width:0,height:0,top:0,left:0});return(0,Z.useInsertionEffect)(()=>{let{width:e,height:o,top:a,left:s}=i.current;if(t||!r.current||!e||!o)return;r.current.dataset.motionPopId=n;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` + [data-motion-pop-id="${n}"] { + position: absolute !important; + width: ${e}px !important; + height: ${o}px !important; + top: ${a}px !important; + left: ${s}px !important; + } + `),()=>{document.head.removeChild(l)}},[t]),Z.createElement(nS,{isPresent:t,childRef:r,sizeRef:i},Z.cloneElement(e,{ref:r}))}let n_=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{let s=nk(nC),l=(0,Z.useId)(),u=(0,Z.useMemo)(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:e=>{for(let t of(s.set(e,!0),s.values()))if(!t)return;r&&r()},register:e=>(s.set(e,!1),()=>s.delete(e))}),o?void 0:[n]);return(0,Z.useMemo)(()=>{s.forEach((e,t)=>s.set(t,!1))},[n]),Z.useEffect(()=>{n||s.size||!r||r()},[n]),"popLayout"===a&&(e=Z.createElement(nO,{isPresent:n},e)),Z.createElement(nj.Provider,{value:u},e)};function nC(){return new Map}let nM=(0,Z.createContext)({});function nA(e){return(0,Z.useEffect)(()=>()=>e(),[])}let nT=new Set;function nP(e,t,n){e||nT.has(t)||(console.warn(t),n&&console.warn(n),nT.add(t))}let nN=e=>e.key||"",nR=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",nP(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=function(){let e=nE(),[t,n]=(0,Z.useState)(0),r=(0,Z.useCallback)(()=>{e.current&&n(t+1)},[t]),i=(0,Z.useCallback)(()=>nh.postRender(r),[r]);return[i,t]}(),l=(0,Z.useContext)(nM).forceRender;l&&(s=l);let u=nE(),c=function(e){let t=[];return Z.Children.forEach(e,e=>{(0,Z.isValidElement)(e)&&t.push(e)}),t}(e),d=c,f=new Set,h=(0,Z.useRef)(d),p=(0,Z.useRef)(new Map).current,m=(0,Z.useRef)(!0);if(nw(()=>{m.current=!1,function(e,t){e.forEach(e=>{let n=nN(e);t.set(n,e)})}(c,p),h.current=d}),nA(()=>{m.current=!0,p.clear(),f.clear()}),m.current)return Z.createElement(Z.Fragment,null,d.map(e=>Z.createElement(n_,{key:nN(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:o,mode:a},e)));d=[...d];let v=h.current.map(nN),g=c.map(nN),y=v.length;for(let e=0;e{if(-1!==g.indexOf(e))return;let n=p.get(e);if(!n)return;let i=v.indexOf(e);d.splice(i,0,Z.createElement(n_,{key:nN(n),isPresent:!1,onExitComplete:()=>{p.delete(e),f.delete(e);let t=h.current.findIndex(t=>t.key===e);if(h.current.splice(t,1),!f.size){if(h.current=c,!1===u.current)return;s(),r&&r()}},custom:t,presenceAffectsLayout:o,mode:a},n))}),d=d.map(e=>{let t=e.key;return f.has(t)?e:Z.createElement(n_,{key:nN(e),isPresent:!0,presenceAffectsLayout:o,mode:a},e)}),"production"!==nr&&"wait"===a&&d.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.'),Z.createElement(Z.Fragment,null,f.size?d:d.map(e=>(0,Z.cloneElement)(e)))},nD=(0,Z.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),nZ=(0,Z.createContext)({}),nL=(0,Z.createContext)({strict:!1});function nF(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function nz(e){return"string"==typeof e||Array.isArray(e)}function nV(e){return"object"==typeof e&&"function"==typeof e.start}let nI=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function nB(e){return nV(e.animate)||nI.some(t=>nz(e[t]))}function nH(e){return!!(nB(e)||e.variants)}function nU(e){return Array.isArray(e)?e.join(" "):e}let nW=e=>({isEnabled:t=>e.some(e=>!!t[e])}),nq={measureLayout:nW(["layout","layoutId","drag"]),animation:nW(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:nW(["exit"]),drag:nW(["drag","dragControls"]),focus:nW(["whileFocus"]),hover:nW(["whileHover","onHoverStart","onHoverEnd"]),tap:nW(["whileTap","onTap","onTapStart","onTapCancel"]),pan:nW(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:nW(["whileInView","onViewportEnter","onViewportLeave"])},n$={hasAnimatedSinceResize:!0,hasEverUpdated:!1},nY=1;class nG extends Z.Component{getSnapshotBeforeUpdate(){let{visualElement:e,props:t}=this.props;return e&&e.setProps(t),null}componentDidUpdate(){}render(){return this.props.children}}let nK=(0,Z.createContext)({}),nX=Symbol.for("motionComponentSymbol"),nQ=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function nJ(e){if("string"!=typeof e||e.includes("-"));else if(nQ.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let n0={},n1=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],n2=new Set(n1);function n4(e,{layout:t,layoutId:n}){return n2.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!n0[e]||"opacity"===e)}let n3=e=>!!(null==e?void 0:e.getVelocity),n5={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},n6=(e,t)=>n1.indexOf(e)-n1.indexOf(t);function n8(e){return e.startsWith("--")}let n7=(e,t)=>t&&"number"==typeof e?t.transform(e):e,n9=(e,t)=>n=>Math.max(Math.min(n,t),e),re=e=>e%1?Number(e.toFixed(5)):e,rt=/(-)?([\d]*\.?[\d])+/g,rn=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,rr=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ri(e){return"string"==typeof e}let ro=e=>({test:t=>ri(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),ra=ro("deg"),rs=ro("%"),rl=ro("px"),ru=ro("vh"),rc=ro("vw"),rd=Object.assign(Object.assign({},rs),{parse:e=>rs.parse(e)/100,transform:e=>rs.transform(100*e)}),rf={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},rh=Object.assign(Object.assign({},rf),{transform:n9(0,1)}),rp=Object.assign(Object.assign({},rf),{default:1}),rm={...rf,transform:Math.round},rv={borderWidth:rl,borderTopWidth:rl,borderRightWidth:rl,borderBottomWidth:rl,borderLeftWidth:rl,borderRadius:rl,radius:rl,borderTopLeftRadius:rl,borderTopRightRadius:rl,borderBottomRightRadius:rl,borderBottomLeftRadius:rl,width:rl,maxWidth:rl,height:rl,maxHeight:rl,size:rl,top:rl,right:rl,bottom:rl,left:rl,padding:rl,paddingTop:rl,paddingRight:rl,paddingBottom:rl,paddingLeft:rl,margin:rl,marginTop:rl,marginRight:rl,marginBottom:rl,marginLeft:rl,rotate:ra,rotateX:ra,rotateY:ra,rotateZ:ra,scale:rp,scaleX:rp,scaleY:rp,scaleZ:rp,skew:ra,skewX:ra,skewY:ra,distance:rl,translateX:rl,translateY:rl,translateZ:rl,x:rl,y:rl,z:rl,perspective:rl,transformPerspective:rl,opacity:rh,originX:rd,originY:rd,originZ:rl,zIndex:rm,fillOpacity:rh,strokeOpacity:rh,numOctaves:rm};function rg(e,t,n,r){let{style:i,vars:o,transform:a,transformKeys:s,transformOrigin:l}=e;s.length=0;let u=!1,c=!1,d=!0;for(let e in t){let n=t[e];if(n8(e)){o[e]=n;continue}let r=rv[e],f=n7(n,r);if(n2.has(e)){if(u=!0,a[e]=f,s.push(e),!d)continue;n!==(r.default||0)&&(d=!1)}else e.startsWith("origin")?(c=!0,l[e]=f):i[e]=f}if(!t.transform&&(u||r?i.transform=function({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},i,o){let a="";for(let n of(t.sort(n6),t))a+=`${n5[n]||n}(${e[n]}) `;return n&&!e.z&&(a+="translateZ(0)"),a=a.trim(),o?a=o(e,i?"":a):r&&i&&(a="none"),a}(e,n,d,r):i.transform&&(i.transform="none")),c){let{originX:e="50%",originY:t="50%",originZ:n=0}=l;i.transformOrigin=`${e} ${t} ${n}`}}let ry=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function rb(e,t,n){for(let r in t)n3(t[r])||n4(r,n)||(e[r]=t[r])}function rx(e,t,n){let r={},i=function(e,t,n){let r=e.style||{},i={};return rb(i,r,e),Object.assign(i,function({transformTemplate:e},t,n){return(0,Z.useMemo)(()=>{let r=ry();return rg(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}(e,t,n)),e.transformValues?e.transformValues(i):i}(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),r.style=i,r}let rw=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll","whileInView","onViewportEnter","onViewportLeave","viewport","whileTap","onTap","onTapStart","onTapCancel","animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView","onPan","onPanStart","onPanSessionStart","onPanEnd"]);function rE(e){return rw.has(e)}let rj=e=>!rE(e);try{(s=require("@emotion/is-prop-valid").default)&&(rj=e=>e.startsWith("on")?!rE(e):s(e))}catch(e){}function rk(e,t,n){return"string"==typeof e?e:rl.transform(t+n*e)}let rS={offset:"stroke-dashoffset",array:"stroke-dasharray"},rO={offset:"strokeDashoffset",array:"strokeDasharray"};function r_(e,{attrX:t,attrY:n,originX:r,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:s=0,...l},u,c){rg(e,l,u,c),e.attrs=e.style,e.style={};let{attrs:d,style:f,dimensions:h}=e;d.transform&&(h&&(f.transform=d.transform),delete d.transform),h&&(void 0!==r||void 0!==i||f.transform)&&(f.transformOrigin=function(e,t,n){let r=rk(t,e.x,e.width),i=rk(n,e.y,e.height);return`${r} ${i}`}(h,void 0!==r?r:.5,void 0!==i?i:.5)),void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==o&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?rS:rO;e[o.offset]=rl.transform(-r);let a=rl.transform(t),s=rl.transform(n);e[o.array]=`${a} ${s}`}(d,o,a,s,!1)}let rC=()=>({...ry(),attrs:{}});function rM(e,t){let n=(0,Z.useMemo)(()=>{let n=rC();return r_(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};rb(t,e.style,e),n.style={...t,...n.style}}return n}let rA=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function rT(e,{style:t,vars:n},r,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(r)),n)e.style.setProperty(o,n[o])}let rP=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function rN(e,t,n,r){for(let n in rT(e,t,void 0,r),t.attrs)e.setAttribute(rP.has(n)?n:rA(n),t.attrs[n])}function rR(e){let{style:t}=e,n={};for(let r in t)(n3(t[r])||n4(r,e))&&(n[r]=t[r]);return n}function rD(e){let t=rR(e);for(let n in e)if(n3(e[n])){let r="x"===n||"y"===n?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function rZ(e,t,n,r={},i={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),t}let rL=e=>Array.isArray(e),rF=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),rz=e=>rL(e)?e[e.length-1]||0:e;function rV(e){let t=n3(e)?e.get():e;return rF(t)?t.toValue():t}let rI=e=>(t,n)=>{let r=(0,Z.useContext)(nZ),i=(0,Z.useContext)(nj),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){let a={latestValues:function(e,t,n,r){let i={},o=r(e);for(let e in o)i[e]=rV(o[e]);let{initial:a,animate:s}=e,l=nB(e),u=nH(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial;c=c||!1===a;let d=c?s:a;if(d&&"boolean"!=typeof d&&!nV(d)){let t=Array.isArray(d)?d:[d];t.forEach(t=>{let n=rZ(e,t);if(!n)return;let{transitionEnd:r,transition:o,...a}=n;for(let e in a){let t=a[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let e in r)i[e]=r[e]})}return i}(r,i,o,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a})(e,t,r,i);return n?o():nk(o)},rB={useVisualState:rI({scrapeMotionValuesFromProps:rD,createRenderState:rC,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}r_(n,r,{enableHardwareAcceleration:!1},e.transformTemplate),rN(t,n)}})},rH={useVisualState:rI({scrapeMotionValuesFromProps:rR,createRenderState:ry})};function rU(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function rW(e,t,n,r){(0,Z.useEffect)(()=>{let i=e.current;if(n&&i)return rU(i,t,n,r)},[e,t,n,r])}function rq(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function r$(e){let t=!!e.touches;return t}(l=C||(C={})).Animate="animate",l.Hover="whileHover",l.Tap="whileTap",l.Drag="whileDrag",l.Focus="whileFocus",l.InView="whileInView",l.Exit="exit";let rY={pageX:0,pageY:0};function rG(e,t="page"){return{point:r$(e)?function(e,t="page"){let n=e.touches[0]||e.changedTouches[0],r=n||rY;return{x:r[t+"X"],y:r[t+"Y"]}}(e,t):function(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}(e,t)}}let rK=(e,t=!1)=>{let n=t=>e(t,rG(t));return t?e=>{let t=e instanceof MouseEvent,r=!t||t&&0===e.button;r&&n(e)}:n},rX=()=>nx&&null===window.onpointerdown,rQ=()=>nx&&null===window.ontouchstart,rJ=()=>nx&&null===window.onmousedown,r0={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},r1={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function r2(e){if(rX());else if(rQ())return r1[e];else if(rJ())return r0[e];return e}function r4(e,t,n,r){return rU(e,r2(t),rK(n,"pointerdown"===t),r)}function r3(e,t,n,r){return rW(e,r2(t),n&&rK(n,"pointerdown"===t),r)}function r5(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let r6=r5("dragHorizontal"),r8=r5("dragVertical");function r7(e){let t=!1;if("y"===e)t=r8();else if("x"===e)t=r6();else{let e=r6(),n=r8();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function r9(){let e=r7(!0);return!e||(e(),!1)}function ie(e,t,n){return(r,i)=>{!(!rq(r)||r9())&&(e.animationState&&e.animationState.setActive(C.Hover,t),n&&n(r,i))}}let it=(e,t)=>!!t&&(e===t||it(e,t.parentElement)),ir=(e,t)=>n=>t(e(n)),ii=(...e)=>e.reduce(ir),io=new WeakMap,ia=new WeakMap,is=e=>{let t=io.get(e.target);t&&t(e)},il=e=>{e.forEach(is)},iu={some:0,all:1};function ic(e,t,n,{root:r,margin:i,amount:o="some",once:a}){(0,Z.useEffect)(()=>{if(!e||!n.current)return;let s={root:null==r?void 0:r.current,rootMargin:i,threshold:"number"==typeof o?o:iu[o]};return function(e,t,n){let r=function({root:e,...t}){let n=e||document;ia.has(n)||ia.set(n,{});let r=ia.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(il,{root:e,...t})),r[i]}(t);return io.set(e,n),r.observe(e),()=>{io.delete(e),r.unobserve(e)}}(n.current,s,e=>{let{isIntersecting:r}=e;if(t.isInView===r||(t.isInView=r,a&&!r&&t.hasEnteredView))return;r&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(C.InView,r);let i=n.getProps(),o=r?i.onViewportEnter:i.onViewportLeave;o&&o(e)})},[e,r,i,o])}function id(e,t,n,{fallback:r=!0}){(0,Z.useEffect)(()=>{e&&r&&("production"!==nr&&nP(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;let{onViewportEnter:e}=n.getProps();e&&e(null),n.animationState&&n.animationState.setActive(C.InView,!0)}))},[e])}let ih=e=>t=>(e(t),null),ip={inView:ih(function({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:i={}}){let o=(0,Z.useRef)({hasEnteredView:!1,isInView:!1}),a=!!(t||n||r);i.once&&o.current.hasEnteredView&&(a=!1);let s="undefined"==typeof IntersectionObserver?id:ic;s(a,o.current,e,i)}),tap:ih(function({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:i}){let o=e||t||n||r,a=(0,Z.useRef)(!1),s=(0,Z.useRef)(null),l={passive:!(t||e||n||h)};function u(){s.current&&s.current(),s.current=null}function c(){return u(),a.current=!1,i.animationState&&i.animationState.setActive(C.Tap,!1),!r9()}function d(t,r){c()&&(it(i.current,t.target)?e&&e(t,r):n&&n(t,r))}function f(e,t){c()&&n&&n(e,t)}function h(e,n){u(),!a.current&&(a.current=!0,s.current=ii(r4(window,"pointerup",d,l),r4(window,"pointercancel",f,l)),i.animationState&&i.animationState.setActive(C.Tap,!0),t&&t(e,n))}r3(i,"pointerdown",o?h:void 0,l),nA(u)}),focus:ih(function({whileFocus:e,visualElement:t}){let{animationState:n}=t;rW(t,"focus",e?()=>{n&&n.setActive(C.Focus,!0)}:void 0),rW(t,"blur",e?()=>{n&&n.setActive(C.Focus,!1)}:void 0)}),hover:ih(function({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){r3(r,"pointerenter",e||n?ie(r,!0,e):void 0,{passive:!e}),r3(r,"pointerleave",t||n?ie(r,!1,t):void 0,{passive:!t})})};function im(){let e=(0,Z.useContext)(nj);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:r}=e,i=(0,Z.useId)();return(0,Z.useEffect)(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function iv(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;rt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var iy=function(){},ib=function(){};let ix=(e,t,n)=>Math.min(Math.max(n,e),t);function iw(e,t){return e*Math.sqrt(1-t*t)}let iE=["duration","bounce"],ij=["stiffness","damping","mass"];function ik(e,t){return t.some(t=>void 0!==e[t])}function iS(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=ig(e,["from","to","restSpeed","restDelta"]);let a={done:!1,value:t},{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!ik(e,ij)&&ik(e,iE)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;iy(e<=1e4,"Spring duration must be 10 seconds or less");let a=1-t;a=ix(.05,1,a),e=ix(.01,10,e/1e3),a<1?(i=t=>{let r=t*a,i=r*e,o=iw(t,a),s=Math.exp(-i);return .001-(r-n)/o*s},o=t=>{let r=t*a,o=r*e,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-o),u=iw(Math.pow(t,2),a),c=-i(t)+.001>0?-1:1;return c*((o*n+n-s)*l)/u}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return -.001+r*i},o=t=>{let r=Math.exp(-t*e),i=(n-t)*(e*e);return r*i});let s=5/e,l=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,s);if(e*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(l,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);(t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(o),h=iO,p=iO;function m(){let e=c?-(c/1e3):0,r=n-t,o=l/(2*Math.sqrt(s*u)),a=Math.sqrt(s/u)/1e3;if(void 0===i&&(i=Math.min(Math.abs(n-t)/100,.4)),o<1){let t=iw(a,o);h=i=>{let s=Math.exp(-o*a*i);return n-s*((e+o*a*r)/t*Math.sin(t*i)+r*Math.cos(t*i))},p=n=>{let i=Math.exp(-o*a*n);return o*a*i*(Math.sin(t*n)*(e+o*a*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+o*a*r)-t*r*Math.sin(t*n))}}else if(1===o)h=t=>n-Math.exp(-a*t)*(r+(e+a*r)*t);else{let t=a*Math.sqrt(o*o-1);h=i=>{let s=Math.exp(-o*a*i),l=Math.min(t*i,300);return n-s*((e+o*a*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return m(),{next:e=>{let t=h(e);if(f)a.done=e>=d;else{let o=1e3*p(e),s=Math.abs(o)<=r,l=Math.abs(n-t)<=i;a.done=s&&l}return a.value=a.done?n:t,a},flipTarget:()=>{c=-c,[t,n]=[n,t],m()}}}iS.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let iO=e=>0,i_=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r},iC=(e,t,n)=>-n*e+n*t+e,iM=(e,t)=>n=>!!(ri(n)&&rr.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),iA=(e,t,n)=>r=>{if(!ri(r))return r;let[i,o,a,s]=r.match(rt);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},iT=n9(0,255),iP=Object.assign(Object.assign({},rf),{transform:e=>Math.round(iT(e))}),iN={test:iM("rgb","red"),parse:iA("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+iP.transform(e)+", "+iP.transform(t)+", "+iP.transform(n)+", "+re(rh.transform(r))+")"},iR={test:iM("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:iN.transform},iD={test:iM("hsl","hue"),parse:iA("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+rs.transform(re(t))+", "+rs.transform(re(n))+", "+re(rh.transform(r))+")"};function iZ(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function iL({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=iZ(s,r,e+1/3),o=iZ(s,r,e),a=iZ(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}let iF=(e,t,n)=>{let r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},iz=[iR,iN,iD],iV=e=>iz.find(t=>t.test(e)),iI=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,iB=(e,t)=>{let n=iV(e),r=iV(t);ib(!!n,iI(e)),ib(!!r,iI(t));let i=n.parse(e),o=r.parse(t);n===iD&&(i=iL(i),n=iN),r===iD&&(o=iL(o),r=iN);let a=Object.assign({},i);return e=>{for(let t in a)"alpha"!==t&&(a[t]=iF(i[t],o[t],e));return a.alpha=iC(i.alpha,o.alpha,e),n.transform(a)}},iH={test:e=>iN.test(e)||iR.test(e)||iD.test(e),parse:e=>iN.test(e)?iN.parse(e):iD.test(e)?iD.parse(e):iR.parse(e),transform:e=>ri(e)?e:e.hasOwnProperty("red")?iN.transform(e):iD.transform(e)},iU="${c}",iW="${n}";function iq(e){"number"==typeof e&&(e=`${e}`);let t=[],n=0,r=e.match(rn);r&&(n=r.length,e=e.replace(rn,iU),t.push(...r.map(iH.parse)));let i=e.match(rt);return i&&(e=e.replace(rt,iW),t.push(...i.map(rf.parse))),{values:t,numColors:n,tokenised:e}}function i$(e){return iq(e).values}function iY(e){let{values:t,numColors:n,tokenised:r}=iq(e),i=t.length;return e=>{let t=r;for(let r=0;r"number"==typeof e?0:e,iK={test:function(e){var t,n,r,i;return isNaN(e)&&ri(e)&&(null!==(n=null===(t=e.match(rt))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(rn))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:i$,createTransformer:iY,getAnimatableNone:function(e){let t=i$(e),n=iY(e);return n(t.map(iG))}},iX=e=>"number"==typeof e;function iQ(e,t){return iX(e)?n=>iC(e,t,n):iH.test(e)?iB(e,t):i2(e,t)}let iJ=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>iQ(e,t[n]));return e=>{for(let t=0;t{let n=Object.assign(Object.assign({},e),t),r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=iQ(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}};function i1(e){let t=iK.parse(e),n=t.length,r=0,i=0,o=0;for(let e=0;e{let n=iK.createTransformer(t),r=i1(e),i=i1(t),o=r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers;return o?ii(iJ(r.parsed,i.parsed),n):(iy(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?t:e}`)},i4=(e,t)=>n=>iC(e,t,n);function i3(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;ib(o===t.length,"Both input and output ranges must be the same length"),ib(!r||!Array.isArray(r)||r.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let a=function(e,t,n){var r;let i=[],o=n||("number"==typeof(r=e[0])?i4:"string"==typeof r?iH.test(r)?iB:i2:Array.isArray(r)?iJ:"object"==typeof r?i0:void 0),a=e.length-1;for(let n=0;nn(i_(e,t,r))}(e,a):function(e,t){let n=e.length,r=n-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[r]&&(o=r-1,a=!0),!a){let t=1;for(;ti)&&t!==r;t++);o=t-1}let s=i_(e[o],e[o+1],i);return t[o](s)}}(e,a);return n?t=>s(ix(e[0],e[o-1],t)):s}let i5=e=>t=>1-e(1-t),i6=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,i8=e=>t=>t*t*((e+1)*t-e),i7=4/11,i9=8/11,oe=e=>e,ot=e=>Math.pow(e,2),on=i5(ot),or=i6(ot),oi=e=>1-Math.sin(Math.acos(e)),oo=i5(oi),oa=i6(oo),os=i8(1.525),ol=i5(os),ou=i6(os),oc=(e=>{let t=i8(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(0),od=4356/361,of=35442/1805,oh=16061/1805,op=e=>{if(1===e||0===e)return e;let t=e*e;return e0!==n?n/(t-1):0)}(a)).map(e=>e*i);function l(){return i3(s,a,{ease:Array.isArray(n)?n:a.map(()=>n||or).splice(0,a.length-1)})}let u=l();return{next:e=>(o.value=u(e),o.done=e>=i,o),flipTarget:()=>{a.reverse(),u=l()}}}let og={keyframes:ov,spring:iS,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){let a={done:!1,value:t},s=n*e,l=t+s,u=void 0===o?l:o(l);return u!==l&&(s=u-t),{next:e=>{let t=-s*Math.exp(-e/r);return a.done=!(t>i||t<-i),a.value=a.done?u:u+t,a},flipTarget:()=>{}}}};function oy(e,t,n=0){return e-t-n}let ob=e=>{let t=({delta:t})=>e(t);return{start:()=>nh.update(t,!0),stop:()=>np.update(t)}};function ox(e){let t,n,r;var i,{from:o,autoplay:a=!0,driver:s=ob,elapsed:l=0,repeat:u=0,repeatType:c="loop",repeatDelay:d=0,onPlay:f,onStop:h,onComplete:p,onRepeat:m,onUpdate:v}=e,g=ig(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:y}=g,b=0,x=g.duration,w=!1,E=!0,j=function(e){if(Array.isArray(e.to))return ov;if(og[e.type])return og[e.type];let t=new Set(Object.keys(e));if(t.has("ease")||t.has("duration")&&!t.has("dampingRatio"));else if(t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta"))return iS;return ov}(g);(null===(i=j.needsInterpolation)||void 0===i?void 0:i.call(j,o,y))&&(r=i3([0,100],[o,y],{clamp:!1}),o=0,y=100);let k=j(Object.assign(Object.assign({},g),{from:o,to:y}));return a&&(null==f||f(),(t=s(function(e){if(E||(e=-e),l+=e,!w){let e=k.next(Math.max(0,l));n=e.value,r&&(n=r(n)),w=E?e.done:l<=0}if(null==v||v(n),w){if(0===b&&(null!=x||(x=l)),b=o+d:i<=-d)&&(b++,"reverse"===c?l=function(e,t,n=0,r=!0){return r?oy(t+-e,t,n):t-(e-t)+n}(l,x,d,E=b%2==0):(l=oy(l,x,d),"mirror"===c&&k.flipTarget()),w=!1,m&&m())}else t.stop(),p&&p()}})).start()),{stop:()=>{null==h||h(),t.stop()}}}let ow=e=>1e3*e,oE=(e,t)=>1-3*t+3*e,oj=(e,t)=>3*t-6*e,ok=e=>3*e,oS=(e,t,n)=>((oE(t,n)*e+oj(t,n))*e+ok(t))*e,oO=(e,t,n)=>3*oE(t,n)*e*e+2*oj(t,n)*e+ok(t),o_={linear:oe,easeIn:ot,easeInOut:or,easeOut:on,circIn:oi,circInOut:oa,circOut:oo,backIn:os,backInOut:ou,backOut:ol,anticipate:oc,bounceIn:om,bounceInOut:e=>e<.5?.5*(1-op(1-2*e)):.5*op(2*e-1)+.5,bounceOut:op},oC=e=>{if(Array.isArray(e)){ib(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,i]=e;return function(e,t,n,r){if(e===t&&n===r)return oe;let i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=oS(.1*t,e,n);return o=>0===o||1===o?o:oS(function(t){let r=0,o=1;for(;10!==o&&i[o]<=t;++o)r+=.1;--o;let a=(t-i[o])/(i[o+1]-i[o]),s=r+.1*a,l=oO(s,e,n);return l>=.001?function(e,t,n,r){for(let i=0;i<8;++i){let i=oO(t,n,r);if(0===i)break;let o=oS(t,n,r)-e;t-=o/i}return t}(t,s,e,n):0===l?s:function(e,t,n,r,i){let o,a;let s=0;do(o=oS(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a;while(Math.abs(o)>1e-7&&++s<10);return a}(t,r,r+.1,e,n)}(o),t,r)}(t,n,r,i)}return"string"==typeof e?(ib(void 0!==o_[e],`Invalid easing type '${e}'`),o_[e]):e},oM=e=>Array.isArray(e)&&"number"!=typeof e[0],oA=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&iK.test(t)&&!t.startsWith("url(")),oT=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),oP=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),oN=()=>({type:"keyframes",ease:"linear",duration:.3}),oR=e=>({type:"keyframes",duration:.8,values:e}),oD={x:oT,y:oT,z:oT,rotate:oT,rotateX:oT,rotateY:oT,rotateZ:oT,scaleX:oP,scaleY:oP,scale:oP,opacity:oN,backgroundColor:oN,color:oN,default:oP},oZ=(e,t)=>({to:t,...(rL(t)?oR:oD[e]||oD.default)(t)}),oL=new Set(["brightness","contrast","saturate","opacity"]);function oF(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(rt)||[];if(!r)return e;let i=n.replace(r,""),o=oL.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}let oz=/([a-z-]*)\(.*?\)/g,oV=Object.assign(Object.assign({},iK),{getAnimatableNone:e=>{let t=e.match(oz);return t?t.map(oF).join(" "):e}}),oI={...rv,color:iH,backgroundColor:iH,outlineColor:iH,fill:iH,stroke:iH,borderColor:iH,borderTopColor:iH,borderRightColor:iH,borderBottomColor:iH,borderLeftColor:iH,filter:oV,WebkitFilter:oV},oB=e=>oI[e];function oH(e,t){var n;let r=oB(e);return r!==oV&&(r=iK),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}let oU={current:!1};function oW(e,t){let n=performance.now(),r=({timestamp:i})=>{let o=i-n;o>=t&&(np.read(r),e(o-t))};return nh.read(r,!0),()=>np.read(r)}let oq=!1;function o$(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function oY(e){return"number"==typeof e?0:oH("",e)}function oG(e,t){return e[t]||e.default||e}function oK(e,t,n,r={}){return oU.current&&(r={type:!1}),t.start(i=>{let o,a;let s=function(e,t,n,r,i){let o=oG(r,e)||{},a=void 0!==o.from?o.from:t.get(),s=oA(e,n);"none"===a&&s&&"string"==typeof n?a=oH(e,n):o$(a)&&"string"==typeof n?a=oY(n):!Array.isArray(n)&&o$(n)&&"string"==typeof a&&(n=oY(a));let l=oA(e,a);return iy(l===s,`You are trying to animate ${e} from "${a}" to "${n}". ${a} is not an animatable value - to enable this animation set ${a} to a value animatable to ${n} via the \`style\` property.`),l&&s&&!1!==o.type?function(){var r;let s={from:a,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:e=>t.set(e)};return"inertia"===o.type||"decay"===o.type?function({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:f,onStop:h}){let p;function m(e){return void 0!==n&&er}function v(e){return void 0===n?r:void 0===r?n:Math.abs(n-e){var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:h}))}function y(e){g(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:l},e))}if(m(e))y({from:e,velocity:t,to:v(e)});else{let r,a,s=i*t+e;void 0!==u&&(s=u(s));let c=v(s),d=c===n?-1:1;g({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:l,modifyTarget:u,onUpdate:m(s)?e=>{var n;r=a,a=e,t=(n=nb().delta)?(e-r)*(1e3/n):0,(1===d&&e>c||-1===d&&enull==p?void 0:p.stop()}}({...s,...o}):ox({...(r=o,Array.isArray(s.to)&&void 0===r.duration&&(r.duration=.8),Array.isArray(s.to)&&null===s.to[0]&&(s.to=[...s.to],s.to[0]=s.from),!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,...u}){return!!Object.keys(u).length}(r)&&(r={...r,...oZ(e,s.to)}),{...s,...function({ease:e,times:t,yoyo:n,flip:r,loop:i,...o}){let a={...o};return t&&(a.offset=t),o.duration&&(a.duration=ow(o.duration)),o.repeatDelay&&(a.repeatDelay=ow(o.repeatDelay)),e&&(a.ease=oM(e)?e.map(oC):oC(e)),"tween"===o.type&&(a.type="keyframes"),(n||i||r)&&(iy(!oq,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),oq=!0,n?a.repeatType="reverse":i?a.repeatType="loop":r&&(a.repeatType="mirror"),a.repeat=i||n||r||o.repeat),"spring"!==o.type&&(a.type="keyframes"),a}(r)}),onUpdate:e=>{s.onUpdate(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{s.onComplete(),o.onComplete&&o.onComplete()}})}:function(){let e=rz(n);return t.set(e),i(),o.onUpdate&&o.onUpdate(e),o.onComplete&&o.onComplete(),{stop:()=>{}}}}(e,t,n,r,i),l=function(e,t){var n,r;let i=oG(e,t)||{};return null!==(r=null!==(n=i.delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=()=>o=s();return l?a=oW(u,ow(l)):u(),()=>{a&&a(),o&&o.stop()}})}let oX=e=>/^\-?\d*\.?\d+$/.test(e),oQ=e=>/^0[^.\s]+$/.test(e);function oJ(e,t){-1===e.indexOf(t)&&e.push(t)}function o0(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class o1{constructor(){this.subscriptions=[]}add(e){return oJ(this.subscriptions,e),()=>o0(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i!isNaN(parseFloat(e));class o4{constructor(e){this.version="7.6.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new o1,this.velocityUpdateSubscribers=new o1,this.renderSubscribers=new o1,this.canTrackVelocity=!1,this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:n,timestamp:r}=nb();this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,nh.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),t&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>nh.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=o2(this.current)}onChange(e){return this.updateSubscribers.add(e)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(e){return e(this.get()),this.renderSubscribers.add(e)}attach(e){this.passiveEffect=e}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){var e,t;return this.canTrackVelocity?(e=parseFloat(this.current)-parseFloat(this.prev),(t=this.timeDelta)?e*(1e3/t):0):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.stopAnimation=e(t)}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function o3(e){return new o4(e)}let o5=e=>t=>t.test(e),o6=[rf,rl,rs,ra,rc,ru,{test:e=>"auto"===e,parse:e=>e}],o8=e=>o6.find(o5(e)),o7=[...o6,iH,iK],o9=e=>o7.find(o5(e));function ae(e,t,n){let r=e.getProps();return rZ(r,t,void 0!==n?n:r.custom,function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}function at(e){return!!(n3(e)&&e.add)}function an(e,t,n={}){var r;let i=ae(e,t,n.custom),{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);let a=i?()=>ar(e,i,n):()=>Promise.resolve(),s=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?(r=0)=>{let{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,i=1,o){let a=[],s=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(ai).forEach((e,r)=>{a.push(an(e,t,{...o,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([a(),s(n.delay)]);{let[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then(t)}}function ar(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t),u=e.getValue("willChange");r&&(a=r);let c=[],d=i&&(null===(o=e.animationState)||void 0===o?void 0:o.getState()[i]);for(let t in l){let r=e.getValue(t),i=l[t];if(!r||void 0===i||d&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(d,t))continue;let o={delay:n,...a};e.shouldReduceMotion&&n2.has(t)&&(o={...o,type:!1,delay:0});let s=oK(t,r,i,o);at(u)&&(u.add(t),s=s.then(()=>u.remove(t))),c.push(s)}return Promise.all(c).then(()=>{s&&function(e,t){let n=ae(e,t),{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};for(let t in o={...o,...r}){let n=rz(o[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,o3(n))}}(e,s)})}function ai(e,t){return e.sortNodePosition(t)}let ao=[C.Animate,C.InView,C.Focus,C.Hover,C.Tap,C.Drag,C.Exit],aa=[...ao].reverse(),as=ao.length;function al(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let au={animation:ih(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){let i=t.map(t=>an(e,t,n));r=Promise.all(i)}else if("string"==typeof t)r=an(e,t,n);else{let i="function"==typeof t?ae(e,t,n.custom):t;r=ar(e,i,n)}return r.then(()=>e.notify("AnimationComplete",t))})(e,t,n))),n={[C.Animate]:al(!0),[C.InView]:al(),[C.Hover]:al(),[C.Tap]:al(),[C.Drag]:al(),[C.Focus]:al(),[C.Exit]:al()},r=!0,i=(t,n)=>{let r=ae(e,n);if(r){let{transition:e,transitionEnd:n,...i}=r;t={...t,...i,...n}}return t};function o(o,a){var s,l;let u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set,h={},p=1/0;for(let t=0;tp&&y,j=Array.isArray(g)?g:[g],k=j.reduce(i,{});!1===b&&(k={});let{prevResolvedValues:S={}}=v,O={...S,...k},_=e=>{E=!0,f.delete(e),v.needsAnimating[e]=!0};for(let e in O){let t=k[e],n=S[e];h.hasOwnProperty(e)||(t!==n?rL(t)&&rL(n)?!iv(t,n)||w?_(e):v.protectedKeys[e]=!0:void 0!==t?_(e):f.add(e):void 0!==t&&f.has(e)?_(e):v.protectedKeys[e]=!0)}v.prevProp=g,v.prevResolvedValues=k,v.isActive&&(h={...h,...k}),r&&e.blockInitialAnimation&&(E=!1),E&&!x&&d.push(...j.map(e=>({animation:e,options:{type:m,...o}})))}if(f.size){let t={};f.forEach(n=>{let r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)}),d.push({animation:t})}let m=!!d.length;return r&&!1===u.initial&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(d):Promise.resolve()}return{animateChanges:o,setActive:function(t,r,i){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;let s=o(i,t);for(let e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}(e)),nV(t)&&(0,Z.useEffect)(()=>t.subscribe(e),[t])}),exit:ih(e=>{let{custom:t,visualElement:n}=e,[r,i]=im(),o=(0,Z.useContext)(nj);(0,Z.useEffect)(()=>{n.isPresent=r;let e=n.animationState&&n.animationState.setActive(C.Exit,!r,{custom:o&&o.custom||t});e&&!r&&e.then(i)},[r])})},ac=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),ad=e=>ac(e)&&e.hasOwnProperty("z"),af=(e,t)=>Math.abs(e-t);function ah(e,t){if(iX(e)&&iX(t))return af(e,t);if(ac(e)&&ac(t)){let n=af(e.x,t.x),r=af(e.y,t.y),i=ad(e)&&ad(t)?af(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}class ap{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=ag(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=ah(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=nb();this.history.push({...r,timestamp:i});let{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{if(this.lastMoveEvent=e,this.lastMoveEventInfo=am(t,this.transformPagePoint),rq(e)&&0===e.buttons){this.handlePointerUp(e,t);return}nh.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r}=this.handlers,i=ag(am(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},r$(e)&&e.touches.length>1)return;this.handlers=t,this.transformPagePoint=n;let r=rG(e),i=am(r,this.transformPagePoint),{point:o}=i,{timestamp:a}=nb();this.history=[{...o,timestamp:a}];let{onSessionStart:s}=t;s&&s(e,ag(i,this.history)),this.removeListeners=ii(r4(window,"pointermove",this.handlePointerMove),r4(window,"pointerup",this.handlePointerUp),r4(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),np.update(this.updatePoint)}}function am(e,t){return t?{point:t(e.point)}:e}function av(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ag({point:e},t){return{point:e,delta:av(e,ay(t)),offset:av(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=ay(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ow(.1)));)n--;if(!r)return{x:0,y:0};let o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};let a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function ay(e){return e[e.length-1]}function ab(e){return e.max-e.min}function ax(e,t=0,n=.01){return ah(e,t)({translate:0,scale:1,origin:0,originPoint:0}),aT=()=>({x:aA(),y:aA()}),aP=()=>({min:0,max:0}),aN=()=>({x:aP(),y:aP()});function aR(e){return[e("x"),e("y")]}function aD({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function aZ(e){return void 0===e||1===e}function aL({scale:e,scaleX:t,scaleY:n}){return!aZ(e)||!aZ(t)||!aZ(n)}function aF(e){return aL(e)||az(e)||e.z||e.rotate||e.rotateX||e.rotateY}function az(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function aV(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function aI(e,t=0,n=1,r,i){e.min=aV(e.min,t,n,r,i),e.max=aV(e.max,t,n,r,i)}function aB(e,{x:t,y:n}){aI(e.x,t.translate,t.scale,t.originPoint),aI(e.y,n.translate,n.scale,n.originPoint)}function aH(e,t){e.min=e.min+t,e.max=e.max+t}function aU(e,t,[n,r,i]){let o=void 0!==t[i]?t[i]:.5,a=iC(e.min,e.max,o);aI(e,t[n],t[r],a,t.scale)}let aW=["x","scaleX","originX"],aq=["y","scaleY","originY"];function a$(e,t){aU(e.x,t,aW),aU(e.y,t,aq)}function aY(e,t){return aD(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}let aG=new WeakMap;class aK{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=aN(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){!1!==this.visualElement.isPresent&&(this.panSession=new ap(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(rG(e,"page").point)},onStart:(e,t)=>{var n;let{drag:r,dragPropagation:i,onDragStart:o}=this.getProps();(!r||i||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=r7(r),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),aR(e=>{var t,n;let r=this.getAxisMotionValue(e).get()||0;if(rs.test(r)){let i=null===(n=null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===n?void 0:n.actual[e];if(i){let e=ab(i);r=e*(parseFloat(r)/100)}}this.originPoint[e]=r}),null==o||o(e,t),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(C.Drag,!0))},onMove:(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&(null==i||i(this.currentDirection));return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),null==o||o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()}))}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();null==i||i(e,t)}cancel(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(C.Drag,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!aX(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&en&&(e=r?iC(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&nF(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:aO(e.x,n,i),y:aO(e.y,t,r)}}(n.actual,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:aC(e,"left","right"),y:aC(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&aR(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.actual[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!nF(t))return!1;let r=t.current;ib(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,n){let r=aY(e,n),{scroll:i}=t;return i&&(aH(r.x,i.x),aH(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a={x:a_((e=i.layout.actual).x,o.x),y:a_(e.y,o.y)};if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=aD(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=aR(a=>{var l;if(!aX(a,t,this.currentDirection))return;let u=null!==(l=null==s?void 0:s[a])&&void 0!==l?l:{};o&&(u={min:0,max:0});let c={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...u};return this.startAxisValueAnimation(a,c)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return oK(e,n,0,t)}stopAnimation(){aR(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){var t,n;let r="_drag"+e.toUpperCase(),i=this.visualElement.getProps()[r];return i||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)}snapToCursor(e){aR(t=>{let{drag:n}=this.getProps();if(!aX(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.actual[t];i.set(e[t]-iC(n,o,.5))}})}scalePositionWithinConstraints(){var e;if(!this.visualElement.current)return;let{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!nF(n)||!r||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};aR(e=>{let t=this.getAxisMotionValue(e);if(t){let n=t.get();i[e]=function(e,t){let n=.5,r=ab(e),i=ab(t);return i>r?n=i_(t.min,t.max-r,e.min):r>i&&(n=i_(e.min,e.max-i,t.min)),ix(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",null===(e=r.root)||void 0===e||e.updateScroll(),r.updateLayout(),this.resolveConstraints(),aR(e=>{if(!aX(e,t,null))return;let n=this.getAxisMotionValue(e),{min:r,max:o}=this.constraints[e];n.set(iC(r,o,i[e]))})}addListeners(){var e;if(!this.visualElement.current)return;aG.set(this.visualElement,this);let t=this.visualElement.current,n=r4(t,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),r=()=>{let{dragConstraints:e}=this.getProps();nF(e)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),r();let a=rU(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(aR(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),null==s||s()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function aX(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let aQ={pan:ih(function({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:i}){let o=e||t||n||r,a=(0,Z.useRef)(null),{transformPagePoint:s}=(0,Z.useContext)(nD),l={onSessionStart:r,onStart:t,onMove:e,onEnd:(e,t)=>{a.current=null,n&&n(e,t)}};(0,Z.useEffect)(()=>{null!==a.current&&a.current.updateHandlers(l)}),r3(i,"pointerdown",o&&function(e){a.current=new ap(e,l,{transformPagePoint:s})}),nA(()=>a.current&&a.current.end())}),drag:ih(function(e){let{dragControls:t,visualElement:n}=e,r=nk(()=>new aK(n));(0,Z.useEffect)(()=>t&&t.subscribe(r),[r,t]),(0,Z.useEffect)(()=>r.addListeners(),[r])})};function aJ(e){return"string"==typeof e&&e.startsWith("var(--")}let a0=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function a1(e,t,n=1){ib(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,i]=function(e){let t=a0.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]}(e);if(!r)return;let o=window.getComputedStyle(t).getPropertyValue(r);return o?o.trim():aJ(i)?a1(i,t,n+1):i}let a2=new Set(["width","height","top","left","right","bottom","x","y"]),a4=e=>a2.has(e),a3=e=>Object.keys(e).some(a4),a5=(e,t)=>{e.set(t,!1),e.set(t)},a6=e=>e===rf||e===rl;(u=M||(M={})).width="width",u.height="height",u.left="left",u.right="right",u.top="top",u.bottom="bottom";let a8=(e,t)=>parseFloat(e.split(", ")[t]),a7=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/);if(i)return a8(i[1],t);{let t=r.match(/^matrix\((.+)\)$/);return t?a8(t[1],e):0}},a9=new Set(["x","y","z"]),se=n1.filter(e=>!a9.has(e)),st={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:a7(4,13),y:a7(5,14)},sn=(e,t,n)=>{let r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{s[e]=st[e](r,o)}),t.render();let l=t.measureViewportBox();return n.forEach(n=>{let r=t.getValue(n);a5(r,s[n]),e[n]=st[n](l,o)}),e},sr=(e,t,n={},r={})=>{t={...t},r={...r};let i=Object.keys(t).filter(a4),o=[],a=!1,s=[];if(i.forEach(i=>{let l;let u=e.getValue(i);if(!e.hasValue(i))return;let c=n[i],d=o8(c),f=t[i];if(rL(f)){let e=f.length,t=null===f[0]?1:0;d=o8(c=f[t]);for(let n=t;n{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),a=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:t[i],a5(u,f))}}),!s.length)return{target:t,transitionEnd:r};{let n=s.indexOf("height")>=0?window.pageYOffset:null,i=sn(t,e,s);return o.length&&o.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),nx&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}},si=(e,t,n,r)=>{var i,o;let a=function(e,{...t},n){let r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};for(let i in n&&(n={...n}),e.values.forEach(e=>{let t=e.get();if(!aJ(t))return;let n=a1(t,r);n&&e.set(n)}),t){let e=t[i];if(!aJ(e))continue;let o=a1(e,r);o&&(t[i]=o,n&&void 0===n[i]&&(n[i]=e))}return{target:t,transitionEnd:n}}(e,t,r);return t=a.target,r=a.transitionEnd,i=t,o=r,a3(i)?sr(e,i,n,o):{target:i,transitionEnd:o}},so={current:null},sa={current:!1},ss=Object.keys(nq),sl=ss.length,su=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class sc{constructor({parent:e,props:t,reducedMotionConfig:n,visualState:r},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>nh.render(this.render,!1,!0);let{latestValues:o,renderState:a}=r;this.latestValues=o,this.baseTarget={...o},this.initialValues=t.initial?{...o}:{},this.renderState=a,this.parent=e,this.props=t,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=i,this.isControllingVariants=nB(t),this.isVariantNode=nH(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:s,...l}=this.scrapeMotionValuesFromProps(t);for(let e in l){let t=l[e];void 0!==o[e]&&n3(t)&&(t.set(o[e],!1),at(s)&&s.add(e))}if(t.values)for(let e in t.values){let n=t.values[e];void 0!==o[e]&&n3(n)&&n.set(o[e])}}scrapeMotionValuesFromProps(e){return{}}mount(e){var t;this.current=e,this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===(t=this.parent)||void 0===t?void 0:t.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),sa.current||function(){if(sa.current=!0,nx){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>so.current=e.matches;e.addListener(t),t()}else so.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||so.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var e,t,n;for(let r in null===(e=this.projection)||void 0===e||e.unmount(),np.update(this.notifyUpdate),np.render(this.render),this.valueSubscriptions.forEach(e=>e()),null===(t=this.removeFromVariantTree)||void 0===t||t.call(this),null===(n=this.parent)||void 0===n||n.children.delete(this),this.events)this.events[r].clear();this.current=null}bindToMotionValue(e,t){let n=t.onChange(t=>{this.latestValues[e]=t,this.props.onUpdate&&nh.update(this.notifyUpdate,!1,!0)}),r=t.onRenderRequest(this.scheduleRender);this.valueSubscriptions.set(e,()=>{n(),r()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures(e,t,n,r,i,o){let a=[];"production"!==nr&&n&&t&&ib(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let t=0;tthis.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:l})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):aN()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}setProps(e){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=e;for(let t=0;tn.variantChildren.delete(e)}addValue(e,t){this.hasValue(e)&&this.removeValue(e),this.values.set(e,t),this.latestValues[e]=t.get(),this.bindToMotionValue(e,t)}removeValue(e){var t;this.values.delete(e),null===(t=this.valueSubscriptions.get(e))||void 0===t||t(),this.valueSubscriptions.delete(e),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=o3(t),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=rZ(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||n3(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new o1),this.events[e].add(t)}notify(e,...t){var n;null===(n=this.events[e])||void 0===n||n.notify(...t)}}let sd=["initial",...ao],sf=sd.length;class sh extends sc{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},i){let o=function(e,t,n){var r;let i={};for(let o in e){let e=function(e,t){if(!t)return;let n=t[e]||t.default||t;return n.from}(o,t);i[o]=void 0!==e?e:null===(r=n.getValue(o))||void 0===r?void 0:r.get()}return i}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),o&&(o=r(o))),i){!function(e,t,n){var r,i;let o=Object.keys(t).filter(t=>!e.hasValue(t)),a=o.length;if(a)for(let s=0;snJ(e)?new sm(t,{enableHardwareAcceleration:!1}):new sp(t,{enableHardwareAcceleration:!0});function sg(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let sy={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!rl.test(e))return e;e=parseFloat(e)}let n=sg(e,t.target.x),r=sg(e,t.target.y);return`${n}% ${r}%`}},sb="_$css",sx={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=e.includes("var("),o=[];i&&(e=e.replace(a0,e=>(o.push(e),sb)));let a=iK.parse(e);if(a.length>5)return r;let s=iK.createTransformer(e),l="number"!=typeof a[0]?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;a[0+l]/=u,a[1+l]/=c;let d=iC(u,c,.5);"number"==typeof a[2+l]&&(a[2+l]/=d),"number"==typeof a[3+l]&&(a[3+l]/=d);let f=s(a);if(i){let e=0;f=f.replace(sb,()=>{let t=o[e];return e++,t})}return f}};class sw extends Z.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;Object.assign(n0,sE),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),n$.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,r||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent===i||(i?o.promote():o.relegate()||nh.postRender(()=>{var e;(null===(e=o.getStack())||void 0===e?void 0:e.members.length)||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),(null==t?void 0:t.group)&&t.group.remove(r),(null==n?void 0:n.deregister)&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;null==e||e()}render(){return null}}let sE={borderRadius:{...sy,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sy,borderTopRightRadius:sy,borderBottomLeftRadius:sy,borderBottomRightRadius:sy,boxShadow:sx},sj=["TopLeft","TopRight","BottomLeft","BottomRight"],sk=sj.length,sS=e=>"string"==typeof e?parseFloat(e):e,sO=e=>"number"==typeof e||rl.test(e);function s_(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}let sC=sA(0,.5,oo),sM=sA(.5,.95,oe);function sA(e,t,n){return r=>rt?1:n(i_(e,t,r))}function sT(e,t){e.min=t.min,e.max=t.max}function sP(e,t){sT(e.x,t.x),sT(e.y,t.y)}function sN(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function sR(e,t,[n,r,i],o,a){!function(e,t=0,n=1,r=.5,i,o=e,a=e){if(rs.test(t)){t=parseFloat(t);let e=iC(a.min,a.max,t/100);t=e-a.min}if("number"!=typeof t)return;let s=iC(o.min,o.max,r);e===o&&(s-=t),e.min=sN(e.min,t,n,s,i),e.max=sN(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,o,a)}let sD=["x","scaleX","originX"],sZ=["y","scaleY","originY"];function sL(e,t,n,r){sR(e.x,t,sD,null==n?void 0:n.x,null==r?void 0:r.x),sR(e.y,t,sZ,null==n?void 0:n.y,null==r?void 0:r.y)}function sF(e){return 0===e.translate&&1===e.scale}function sz(e){return sF(e.x)&&sF(e.y)}function sV(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function sI(e){return ab(e.x)/ab(e.y)}class sB{constructor(){this.members=[]}add(e){oJ(this.members,e),e.scheduleRender()}remove(e){if(o0(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){var n;let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0);let{crossfade:i}=e.options;!1===i&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{var t,n,r,i,o;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(o=null===(r=e.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===o||o.call(i)})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function sH(e,t,n){let r=e.x.translate/t.x,i=e.y.translate/t.y,o=`translate3d(${r}px, ${i}px, 0) `;if(o+=`scale(${1/t.x}, ${1/t.y}) `,n){let{rotate:e,rotateX:t,rotateY:r}=n;e&&(o+=`rotate(${e}deg) `),t&&(o+=`rotateX(${t}deg) `),r&&(o+=`rotateY(${r}deg) `)}let a=e.x.scale*t.x,s=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"==(o+=`scale(${a}, ${s})`)?"none":o}let sU=(e,t)=>e.depth-t.depth;class sW{constructor(){this.children=[],this.isDirty=!1}add(e){oJ(this.children,e),this.isDirty=!0}remove(e){o0(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(sU),this.isDirty=!1,this.children.forEach(e)}}let sq=["","X","Y","Z"];function s$({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e,n={},r=null==t?void 0:t()){this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(s0),this.nodes.forEach(s1)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=n,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(let e=0;ethis.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=oW(r,250),n$.hasAnimatedSinceResize&&(n$.hasAnimatedSinceResize=!1,this.nodes.forEach(sJ))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&a&&(i||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{var i,o,s,l,u;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let c=null!==(o=null!==(i=this.options.transition)&&void 0!==i?i:a.getDefaultTransition())&&void 0!==o?o:s8,{onLayoutAnimationStart:d,onLayoutAnimationComplete:f}=a.getProps(),h=!this.targetLayout||!sV(this.targetLayout,r)||n,p=!t&&n;if((null===(s=this.resumeFrom)||void 0===s?void 0:s.instance)||p||t&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,p);let t={...oG(c,"layout"),onPlay:d,onComplete:f};a.shouldReduceMotion&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||sJ(this),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=r})}unmount(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,np.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1}startUpdate(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(s2))}willUpdate(e=!0){var t,n,r;if(this.root.isUpdateBlocked()){null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;let e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));le(t),this.snapshot={measured:e,layout:t,latestValues:{}}}updateLayout(){var e;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0),c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(s6));this.animationProgress=0,this.mixTargetDelta=t=>{var n,r,d;let f=t/1e3;s3(a.x,e.x,f),s3(a.y,e.y,f),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(aS(s,this.layout.actual,this.relativeParent.layout.actual),r=this.relativeTarget,d=this.relativeTargetOrigin,s5(r.x,d.x,s.x,f),s5(r.y,d.y,s.y,f)),l&&(this.animationValues=o,function(e,t,n,r,i,o){var a,s,l,u;i?(e.opacity=iC(0,null!==(a=n.opacity)&&void 0!==a?a:1,sC(r)),e.opacityExit=iC(null!==(s=t.opacity)&&void 0!==s?s:1,0,sM(r))):o&&(e.opacity=iC(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(let i=0;i{n$.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n={}){let r=n3(e)?e:o3(e);return oK("",r,1e3,n),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}(0,0,{...e,onUpdate:t=>{var n;this.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:()=>{var t;null===(t=e.onComplete)||void 0===t||t.call(e),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&<(this.options.animationType,this.layout.actual,r.actual)){n=this.target||aN();let t=ab(this.layout.actual.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=ab(this.layout.actual.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}sP(t,n),a$(t,i),aE(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new sB);let o=this.sharedNodes.get(e);o.add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(i=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(r,t)})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,n={};for(let r=0;r{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(sX),this.root.sharedNodes.clear()}}}function sY(e){e.updateLayout()}function sG(e){var t,n,r;let i=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){let{actual:t,measured:n}=e.layout,{animationType:r}=e.options;"size"===r?aR(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=ab(n);n.min=t[e].min,n.max=n.min+r}):lt(r,i.layout,t)&&aR(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=ab(t[e]);n.max=n.min+r});let o=aT();aE(o,t,i.layout);let a=aT();i.isShared?aE(a,e.applyTransform(n,!0),i.measured):aE(a,t,i.layout);let s=!sz(o),l=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:e,layout:r}=n;if(e&&r){let n=aN();aS(n,i.layout,e.layout);let o=aN();aS(o,t,r.actual),sV(n,o)||(l=!0)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:s,hasRelativeTargetChanged:l})}else e.isLead()&&(null===(r=(n=e.options).onExitComplete)||void 0===r||r.call(n));e.options.transition=void 0}function sK(e){e.clearSnapshot()}function sX(e){e.clearMeasurements()}function sQ(e){let{visualElement:t}=e.options;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sJ(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function s0(e){e.resolveTargetDelta()}function s1(e){e.calcProjection()}function s2(e){e.resetRotation()}function s4(e){e.removeLeadSnapshot()}function s3(e,t,n){e.translate=iC(t.translate,0,n),e.scale=iC(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function s5(e,t,n,r){e.min=iC(t.min,n.min,r),e.max=iC(t.max,n.max,r)}function s6(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let s8={duration:.45,ease:[.4,0,.1,1]};function s7(e,t){let n=e.root;for(let t=e.path.length-1;t>=0;t--)if(e.path[t].instance){n=e.path[t];break}let r=n&&n!==e.root?n.instance:document,i=r.querySelector(`[data-projection-id="${t}"]`);i&&e.mount(i,!0)}function s9(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function le(e){s9(e.x),s9(e.y)}function lt(e,t,n){return"position"===e||"preserve-aspect"===e&&!function(e,t,n=.1){return ah(e,t)<=n}(sI(t),sI(n),.2)}let ln=s$({attachResizeListener:(e,t)=>rU(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),lr={current:void 0},li=s$({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!lr.current){let e=new ln(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),lr.current=e}return lr.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),lo={...au,...ip,...aQ,measureLayout:function(e){let[t,n]=im(),r=(0,Z.useContext)(nM);return Z.createElement(sw,{...e,layoutGroup:r,switchLayoutGroup:(0,Z.useContext)(nK),isPresent:t,safeToRemove:n})}},la=function(e){function t(t,n={}){return function({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:r,useVisualState:i,Component:o}){e&&function(e){for(let t in e)"projectionNodeConstructor"===t?nq.projectionNodeConstructor=e[t]:nq[t].Component=e[t]}(e);let a=(0,Z.forwardRef)(function(a,s){var l;let u={...(0,Z.useContext)(nD),...a,layoutId:function({layoutId:e}){let t=(0,Z.useContext)(nM).id;return t&&void 0!==e?t+"-"+e:e}(a)},{isStatic:c}=u,d=null,f=function(e){let{initial:t,animate:n}=function(e,t){if(nB(e)){let{initial:t,animate:n}=e;return{initial:!1===t||nz(t)?t:void 0,animate:nz(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,Z.useContext)(nZ));return(0,Z.useMemo)(()=>({initial:t,animate:n}),[nU(t),nU(n)])}(a),h=c?void 0:nk(()=>{if(n$.hasEverUpdated)return nY++}),p=i(a,c);if(!c&&nx){f.visualElement=function(e,t,n,r){let i=(0,Z.useContext)(nZ).visualElement,o=(0,Z.useContext)(nL),a=(0,Z.useContext)(nj),s=(0,Z.useContext)(nD).reducedMotion,l=(0,Z.useRef)();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceId:a?a.id:void 0,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));let u=l.current;return nw(()=>{u&&u.render()}),(0,Z.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),nw(()=>()=>u&&u.notify("Unmount"),[]),u}(o,p,u,t);let r=(0,Z.useContext)(nL).strict,i=(0,Z.useContext)(nK);f.visualElement&&(d=f.visualElement.loadFeatures(u,r,e,h,n||nq.projectionNodeConstructor,i))}return Z.createElement(nG,{visualElement:f.visualElement,props:u},d,Z.createElement(nZ.Provider,{value:f},r(o,a,h,(l=f.visualElement,(0,Z.useCallback)(e=>{e&&p.mount&&p.mount(e),l&&(e?l.mount(e):l.unmount()),s&&("function"==typeof s?s(e):nF(s)&&(s.current=e))},[l])),p,c,f.visualElement)))});return a[nX]=o,a}(e(t,n))}if("undefined"==typeof Proxy)return t;let n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},n,r,i){let o=nJ(e)?rB:rH;return{...o,preloadedFeatures:n,useRender:function(e=!1){return(t,n,r,i,{latestValues:o},a)=>{let s=nJ(t)?rM:rx,l=s(n,o,a),u=function(e,t,n){let r={};for(let i in e)(rj(i)||!0===n&&rE(i)||!t&&!rE(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),c={...u,...l,ref:i};return r&&(c["data-projection-id"]=r),(0,Z.createElement)(t,c)}}(t),createVisualElement:r,projectionNodeConstructor:i,Component:e}})(e,t,lo,sv,li));function ls(e){let{open:t,onOpenChange:n}=e,[r,i]=(0,Z.useState)(!1),o=(0,Z.useMemo)(()=>n?t:r,[n,r,t]),a=(0,Z.useCallback)(e=>{n?n(e):i(e)},[n]);return{open:o,onOpenChange:a}}let ll={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}};function lu(e){let{children:t,content:n,defaultOpen:r,open:i,onOpenChange:o,delayDuration:a=300,disableHoverableContent:s,...l}=e,{open:u,onOpenChange:c}=ls({open:i,onOpenChange:o});return(0,D.jsxs)(t5,{open:u,delayDuration:a,disableHoverableContent:s,defaultOpen:r,onOpenChange:c,children:[(0,D.jsx)(tG,{asChild:!0,children:t}),(0,D.jsx)(nR,{children:n&&u?(0,D.jsx)(t6,{forceMount:!0,children:(0,D.jsx)(t0,{forceMount:!0,asChild:!0,side:"top",align:"center",sideOffset:l.sideOffset||5,...l,children:(0,D.jsx)(la.div,{variants:ll,initial:"init",animate:"show",exit:"exit",className:(0,eE.cx)("relative","z-50","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"),children:(0,D.jsx)("div",{className:(0,eE.cx)("py-1 px-2","max-w-xs","overflow-hidden",ne()),children:(0,D.jsx)(t9,{size:"12",children:n})})})})}):null})]})}let lc=(0,eE.j)(["inline-flex","gap-1","appearance-none","shrink-0","items-center","justify-center","select-none","leading-normal","font-sans","cursor-pointer","overflow-hidden","focus:z-10","disabled:cursor-auto","disabled:pointer-events-none","outline-none","focus:ring ring-blue-500 dark:ring-blue-200","transition-colors duration-75"],{variants:{size:{small:["text-xs","px-2","h-7"],medium:["text-base","px-4","h-10"],large:["text-lg","px-4","h-12"],none:[]},state:{waiting:["pointer-events-none"]},disabled:{true:"cursor-auto pointer-events-none"},rounded:{true:"rounded",false:""},variant:{accent:["border","text-white dark:text-white","enabled:bg-green-700 enabled:dark:bg-green-700","enabled:border-green-800/30 enabled:dark:border-green-600/70","enabled:hover:bg-green-800/90 dark:enabled:hover:bg-green-700/90","enabled:hover:border-green-800/50 enabled:hover:dark:border-green-600","disabled:text-white/50 disabled:dark:text-white/50","disabled:bg-green-700/70 disabled:dark:bg-green-600/70","disabled:border-green-600/50 disabled:dark:border-green-500/30","[&[href]]:bg-green-700 [&[href]]:dark:bg-green-700","[&[href]]:border-green-800/30 [&[href]]:dark:border-green-600/70","[&[href]]:hover:bg-green-800/90 dark:[&[href]]:hover:bg-green-700/90","[&[href]]:hover:border-green-800/50 [href]]:hover:dark:border-green-600"],red:["border","bg-red-700 dark:bg-red-700","border-red-800/30 dark:border-red-600/70","enabled:hover:bg-red-800/90 dark:enabled:hover:bg-red-700/90","enabled:hover:border-red-800/50 enabled:hover:dark:border-red-600","disabled:bg-red-700/70 disabled:dark:bg-red-600/70","disabled:border-red-600/50 disabled:dark:border-red-500/30","text-white dark:text-white","disabled:text-white/50 disabled:dark:text-white/50"],amber:["border","bg-amber-700 dark:bg-amber-700","border-amber-800/30 dark:border-amber-600/70","enabled:hover:bg-amber-800/90 dark:enabled:hover:bg-amber-700/90","enabled:hover:border-amber-800/50 enabled:hover:dark:border-amber-600","disabled:bg-amber-700/70 disabled:dark:bg-amber-600/70","disabled:border-amber-600/50 disabled:dark:border-amber-500/30","text-white dark:text-white","disabled:text-white/50 disabled:dark:text-white/50"],gray:["border","bg-white dark:bg-graydark-200","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100 dark:text-gray-300","disabled:text-gray-600 disabled:dark:text-graydark-700"],active:["border","bg-gray-200 dark:bg-graydark-400","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-500 dark:border-graydark-500","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],inactive:["border","bg-white dark:bg-graydark-200","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-400/70 dark:border-graydark-400/70","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100/30 dark:text-white/30","enabled:hover:text-gray-1100 enabled:hover:dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],ghost:["appearance-none border-none bg-transparent","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],state:["open:text-gray-1100 open:dark:text-white","hover:text-gray-1000 hover:dark:text-graydark-1000","text-gray-700 dark:text-graydark-800"]},icon:{contrast:"",hover:"[&>svg]:opacity-50 hover:[&>svg]:opacity-100 transition-opacity",subtle:"[&>svg]:opacity-50"},color:{verySubtle:"!text-gray-700 dark:!text-graydark-700",subtle:"!text-gray-1000 dark:!text-graydark-1000",contrast:"!text-gray-1100 dark:!text-white",lo:"!text-white dark:!text-graydark-50",accent:"!text-accent-1100 dark:!text-accentdark-1100",red:"!text-red-700 dark:!text-red-400",green:"!text-emerald-700 dark:!text-emerald-500",amber:"!text-amber-600 dark:!text-amber-500",none:""}},defaultVariants:{variant:"gray",size:"small",rounded:!0,icon:"subtle",color:"none"}}),ld=Z.forwardRef((e,t)=>{let{variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,tip:u,tipAlign:c,tipSide:d,className:f,type:h="button",...p}=e;return u?(0,D.jsx)(lu,{content:u,align:c,side:d,children:(0,D.jsx)("button",{ref:t,type:h,disabled:a,className:lc({variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})}):(0,D.jsx)("button",{ref:t,disabled:a,type:h,className:lc({variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})});var lf=n(41775);(0,eE.j)([],{variants:{variant:{default:"border-t border-gray-500 dark:border-graydark-500 last-of-type:border-b",ghost:""}},defaultVariants:{variant:"default"}});let lh=(0,eE.j)("border border-gray-500 dark:border-graydark-500 bg-gray-100 dark:bg-graydark-100 rounded p-4"),lp=Z.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,D.jsx)("div",{...r,className:lh({className:n}),ref:t})});var lm=n(86029);let lv="Avatar",[lg,ly]=(0,z.b)(lv),[lb,lx]=lg(lv),lw=(0,Z.forwardRef)((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,o]=(0,Z.useState)("idle");return(0,Z.createElement)(lb,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:o},(0,Z.createElement)(W.WV.span,(0,F.Z)({},r,{ref:t})))}),lE=(0,Z.forwardRef)((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...o}=e,a=lx("AvatarImage",n),s=function(e){let[t,n]=(0,Z.useState)("idle");return(0,Z.useEffect)(()=>{if(!e){n("error");return}let t=!0,r=new window.Image,i=e=>()=>{t&&n(e)};return n("loading"),r.onload=i("loaded"),r.onerror=i("error"),r.src=e,()=>{t=!1}},[e]),t}(r),l=(0,lm.W)(e=>{i(e),a.onImageLoadingStatusChange(e)});return(0,q.b)(()=>{"idle"!==s&&l(s)},[s,l]),"loaded"===s?(0,Z.createElement)(W.WV.img,(0,F.Z)({},o,{ref:t,src:r})):null}),lj=(0,Z.forwardRef)((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,o=lx("AvatarFallback",n),[a,s]=(0,Z.useState)(void 0===r);return(0,Z.useEffect)(()=>{if(void 0!==r){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),a&&"loaded"!==o.imageLoadingStatus?(0,Z.createElement)(W.WV.span,(0,F.Z)({},i,{ref:t})):null}),lk=(0,eE.j)(["items-center justify-center align-middle flex flex-shrink-0 relative","overflow-hidden select-none outline-none","font-sans font-medium text-sm","border"],{variants:{size:{1:"w-6 h-6",2:"w-12 h-12",3:"w-16 h-16",4:"w-28 h-28"},variant:{filter:"bg-transparent",hiContrast:["bg-gray-900 dark:bg-white text-white dark:text-gray-1100","border-gray-900 dark:border-white text-white dark:text-gray-1100"],gray:["bg-gray-500 dark:bg-gray-800 text-gray-1100 dark:text-white","border-gray-500 dark:border-gray-800 text-gray-1100 dark:text-white"]},shape:{square:"rounded",circle:"rounded-full"},inactive:{true:"opacity-30"},interactive:{true:"cursor-pointer"}},defaultVariants:{size:"2",variant:"gray",shape:"circle"}}),lS=(0,eE.j)("uppercase",{variants:{size:{1:"text-sm",2:"text-base",3:"text-lg",4:"text-lg"}},defaultVariants:{size:"2"}}),lO=Z.forwardRef((e,t)=>{let{alt:n,src:r,fallback:i,size:o,variant:a,shape:s,interactive:l,inactive:u,className:c,...d}=e;return(0,D.jsx)("div",{className:(0,eE.cx)("relative h-fit w-fit",c),children:(0,D.jsxs)(lw,{...d,ref:t,className:lk({className:c,size:o,variant:a,interactive:l,inactive:u,shape:s}),children:["filter"===a&&(0,D.jsx)("div",{className:"absolute w-full h-full z-10",style:{backgroundColor:"rgba(30, 169, 76, 0.3)"}}),(0,D.jsx)(lE,{alt:n,src:r,className:"flex object-cover h-full align-middle w-full"}),(0,D.jsx)(lj,{className:lS({size:o}),children:i})]})})}),l_=(0,eE.j)(["items-center appearance-none inline-flex flex-shrink-0 whitespace-nowrap","font-sans font-regular","justify-center align-middle outline-none decoration-none select-none","disabled:pointer-events-none"],{variants:{size:{default:"text-sm py-0.5 px-2",small:"text-xs py-px px-1"},variant:{active:["border","bg-gray-800 text-gray-900 border-gray-900","dark:bg-transparent dark:text-white dark:border-white/10"],simple:"bg-gray-300 dark:bg-graydark-800 text-gray-900 dark:text-white",green:["border","[&>svg]:opacity-50","bg-green-700 dark:bg-green-700","border-green-800/30 dark:border-green-600/70","hover:bg-green-800/90 dark:hover:bg-green-700/90","hover:border-green-800/50 hover:dark:border-green-600","text-white dark:text-white"],accent:["border","[&>svg]:opacity-50","bg-green-700 dark:bg-green-700","border-green-800/30 dark:border-green-600/70","hover:bg-green-800/90 dark:hover:bg-green-700/90","hover:border-green-800/50 hover:dark:border-green-600","text-white dark:text-white"],red:["border","[&>svg]:opacity-50","bg-red-700 dark:bg-red-700","border-red-800/30 dark:border-red-600/70","hover:bg-red-800/90 dark:hover:bg-red-700/90","hover:border-red-800/50 hover:dark:border-red-600","text-white dark:text-white"],amber:["border","[&>svg]:opacity-50","bg-amber-700 dark:bg-amber-700","border-amber-800/30 dark:border-amber-600/70","hover:bg-amber-800/90 dark:hover:bg-amber-700/90","hover:border-amber-800/50 hover:dark:border-amber-600","text-white dark:text-white"],gray:["border","[&>svg]:opacity-50","bg-white dark:bg-graydark-200","border-gray-400 dark:border-graydark-400","hover:bg-gray-50 dark:hover:bg-graydark-300","hover:border-gray-500 hover:dark:border-graydark-500","text-gray-1100 dark:text-white"],inactive:["border","[&>svg]:opacity-50","bg-white dark:bg-transparent","border-gray-400 dark:border-graydark-400","hover:border-gray-500 hover:dark:border-graydark-500","text-gray-1100/30 dark:text-white/30","hover:text-gray-1100/50 hover:dark:text-white/50"]},interactive:{true:"cursor-pointer",false:"cursor-auto"},rounded:{true:"rounded",false:""}},defaultVariants:{variant:"gray",size:"default",rounded:!0,interactive:!1}}),lC=Z.forwardRef((e,t)=>{let{variant:n,size:r,interactive:i,rounded:o,className:a,...s}=e;return(0,D.jsx)("div",{...s,className:l_({variant:n,size:r,interactive:i,rounded:o,className:a}),ref:t})}),lM=Z.forwardRef((e,t)=>{let{className:n,size:r,color:i,...o}=e;return(0,D.jsx)("pre",{children:(0,D.jsx)("code",{className:(0,eE.cx)(t8({font:"mono",size:r,color:i}),"block","w-full","overflow-auto","p-3","bg-white dark:bg-graydark-200","border border-gray-400 dark:border-graydark-400","rounded",n),...o,ref:t})})}),lA=(0,eE.j)(["font-mono","whitespace-nowrap","rounded"],{variants:{color:{gray:["bg-gray-200 dark:bg-graydark-200","text-gray-1100 dark:text-graydark-1100"],accent:["bg-accent-200 dark:bg-accentdark-200","text-accent-1100 dark:text-accentdark-1100"]}},defaultVariants:{color:"accent"}}),lT=Z.forwardRef((e,t)=>{let{color:n,className:r,...i}=e;return(0,D.jsx)("code",{...i,className:lA({color:n,className:r}),ref:t})}),lP=(0,eE.j)(["flex","relative","[&>*]:rounded-none [&>*:last-child]:rounded-r [&>*:first-child]:rounded-l","[&>*]:border-r-0 [&>*]:border-l [&>*:first-child]:border-l [&>*:last-child]:border-r"]),lN=Z.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,D.jsx)("div",{ref:t,className:lP({className:n}),...r})});(0,eE.j)(["select-none appearance-none outline-none overflow-hidden","inline-flex items-center justify-center","focus:ring ring-blue-500 dark:ring-blue-200","border","bg-gray-300 dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","disabled:cursor-default","enabled:data-[state=checked]:bg-green-600 dark:enabled:data-[state=checked]:bg-green-500","disabled:data-[state=checked]:bg-green-600/50 dark:disabled:data-[state=checked]:bg-green-500/50"],{variants:{size:{small:"w-4 h-4 rounded",medium:"w-6 h-6 rounded"}},defaultVariants:{size:"small"}});let lR=(0,eE.j)(["flex-shrink-0 w-full mx-auto"],{variants:{pad:{true:"px-5 md:px-10",false:""},size:{1:"max-w-screen-sm",2:"max-w-screen-md",3:"max-w-[1145px]",4:"max-w-screen-2xl",full:"max-w-none"}},defaultVariants:{pad:!0,size:"3"}}),lD=Z.forwardRef((e,t)=>{let{className:n,pad:r,size:i,...o}=e;return(0,D.jsx)("div",{ref:t,...o,className:lR({size:i,pad:r,className:n})})});var lZ=n(72331);let lL=(0,Z.createContext)(void 0);function lF(e){let t=(0,Z.useContext)(lL);return e||t||"ltr"}let lz="ScrollArea",[lV,lI]=(0,z.b)(lz),[lB,lH]=lV(lz),lU=(0,Z.forwardRef)((e,t)=>{let{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:o=600,...a}=e,[s,l]=(0,Z.useState)(null),[u,c]=(0,Z.useState)(null),[d,f]=(0,Z.useState)(null),[h,p]=(0,Z.useState)(null),[m,v]=(0,Z.useState)(null),[g,y]=(0,Z.useState)(0),[b,x]=(0,Z.useState)(0),[w,E]=(0,Z.useState)(!1),[j,k]=(0,Z.useState)(!1),S=(0,V.e)(t,e=>l(e)),O=lF(i);return(0,Z.createElement)(lB,{scope:n,type:r,dir:O,scrollHideDelay:o,scrollArea:s,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:h,onScrollbarXChange:p,scrollbarXEnabled:w,onScrollbarXEnabledChange:E,scrollbarY:m,onScrollbarYChange:v,scrollbarYEnabled:j,onScrollbarYEnabledChange:k,onCornerWidthChange:y,onCornerHeightChange:x},(0,Z.createElement)(W.WV.div,(0,F.Z)({dir:O},a,{ref:S,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":b+"px",...e.style}})))}),lW=(0,Z.forwardRef)((e,t)=>{let{__scopeScrollArea:n,children:r,...i}=e,o=lH("ScrollAreaViewport",n),a=(0,Z.useRef)(null),s=(0,V.e)(t,a,o.onViewportChange);return(0,Z.createElement)(Z.Fragment,null,(0,Z.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),(0,Z.createElement)(W.WV.div,(0,F.Z)({"data-radix-scroll-area-viewport":""},i,{ref:s,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style}}),(0,Z.createElement)("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"}},r)))}),lq="ScrollAreaScrollbar",l$=(0,Z.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=lH(lq,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:a}=i,s="horizontal"===e.orientation;return(0,Z.useEffect)(()=>(s?o(!0):a(!0),()=>{s?o(!1):a(!1)}),[s,o,a]),"hover"===i.type?(0,Z.createElement)(lY,(0,F.Z)({},r,{ref:t,forceMount:n})):"scroll"===i.type?(0,Z.createElement)(lG,(0,F.Z)({},r,{ref:t,forceMount:n})):"auto"===i.type?(0,Z.createElement)(lK,(0,F.Z)({},r,{ref:t,forceMount:n})):"always"===i.type?(0,Z.createElement)(lX,(0,F.Z)({},r,{ref:t})):null}),lY=(0,Z.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=lH(lq,e.__scopeScrollArea),[o,a]=(0,Z.useState)(!1);return(0,Z.useEffect)(()=>{let e=i.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),a(!0)},r=()=>{t=window.setTimeout(()=>a(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[i.scrollArea,i.scrollHideDelay]),(0,Z.createElement)($.z,{present:n||o},(0,Z.createElement)(lK,(0,F.Z)({"data-state":o?"visible":"hidden"},r,{ref:t})))}),lG=(0,Z.forwardRef)((e,t)=>{var n;let{forceMount:r,...i}=e,o=lH(lq,e.__scopeScrollArea),a="horizontal"===e.orientation,s=uo(()=>u("SCROLL_END"),100),[l,u]=(n={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},(0,Z.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},"hidden"));return(0,Z.useEffect)(()=>{if("idle"===l){let e=window.setTimeout(()=>u("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(e)}},[l,o.scrollHideDelay,u]),(0,Z.useEffect)(()=>{let e=o.viewport,t=a?"scrollLeft":"scrollTop";if(e){let n=e[t],r=()=>{let r=e[t],i=n!==r;i&&(u("SCROLL"),s()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[o.viewport,a,u,s]),(0,Z.createElement)($.z,{present:r||"hidden"!==l},(0,Z.createElement)(lX,(0,F.Z)({"data-state":"hidden"===l?"hidden":"visible"},i,{ref:t,onPointerEnter:(0,H.M)(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:(0,H.M)(e.onPointerLeave,()=>u("POINTER_LEAVE"))})))}),lK=(0,Z.forwardRef)((e,t)=>{let n=lH(lq,e.__scopeScrollArea),{forceMount:r,...i}=e,[o,a]=(0,Z.useState)(!1),s="horizontal"===e.orientation,l=uo(()=>{if(n.viewport){let e=n.viewport.offsetWidth{let{orientation:n="vertical",...r}=e,i=lH(lq,e.__scopeScrollArea),o=(0,Z.useRef)(null),a=(0,Z.useRef)(0),[s,l]=(0,Z.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=ue(s.viewport,s.content),c={...r,sizes:s,onSizesChange:l,hasThumb:!!(u>0&&u<1),onThumbChange:e=>o.current=e,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:e=>a.current=e};function d(e,t){return function(e,t,n,r="ltr"){let i=ut(n),o=t||i/2,a=n.scrollbar.paddingStart+o,s=n.scrollbar.size-n.scrollbar.paddingEnd-(i-o),l=n.content-n.viewport,u=ur([a,s],"ltr"===r?[0,l]:[-1*l,0]);return u(e)}(e,a.current,s,t)}return"horizontal"===n?(0,Z.createElement)(lQ,(0,F.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=i.viewport.scrollLeft,t=un(e,s,i.dir);o.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,i.dir))}})):"vertical"===n?(0,Z.createElement)(lJ,(0,F.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=i.viewport.scrollTop,t=un(e,s);o.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}})):null}),lQ=(0,Z.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,o=lH(lq,e.__scopeScrollArea),[a,s]=(0,Z.useState)(),l=(0,Z.useRef)(null),u=(0,V.e)(t,l,o.onScrollbarXChange);return(0,Z.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,Z.createElement)(l2,(0,F.Z)({"data-orientation":"horizontal"},i,{ref:u,sizes:n,style:{bottom:0,left:"rtl"===o.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===o.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":ut(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),r>0&&r{l.current&&o.viewport&&a&&r({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:l9(a.paddingLeft),paddingEnd:l9(a.paddingRight)}})}}))}),lJ=(0,Z.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,o=lH(lq,e.__scopeScrollArea),[a,s]=(0,Z.useState)(),l=(0,Z.useRef)(null),u=(0,V.e)(t,l,o.onScrollbarYChange);return(0,Z.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,Z.createElement)(l2,(0,F.Z)({"data-orientation":"vertical"},i,{ref:u,sizes:n,style:{top:0,right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":ut(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),r>0&&r{l.current&&o.viewport&&a&&r({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:l9(a.paddingTop),paddingEnd:l9(a.paddingBottom)}})}}))}),[l0,l1]=lV(lq),l2=(0,Z.forwardRef)((e,t)=>{let{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:o,onThumbPointerUp:a,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,h=lH(lq,n),[p,m]=(0,Z.useState)(null),v=(0,V.e)(t,e=>m(e)),g=(0,Z.useRef)(null),y=(0,Z.useRef)(""),b=h.viewport,x=r.content-r.viewport,w=(0,lm.W)(c),E=(0,lm.W)(l),j=uo(d,10);function k(e){if(g.current){let t=e.clientX-g.current.left,n=e.clientY-g.current.top;u({x:t,y:n})}}return(0,Z.useEffect)(()=>{let e=e=>{let t=e.target,n=null==p?void 0:p.contains(t);n&&w(e,x)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[b,p,x,w]),(0,Z.useEffect)(E,[r,E]),ua(p,j),ua(h.content,j),(0,Z.createElement)(l0,{scope:n,scrollbar:p,hasThumb:i,onThumbChange:(0,lm.W)(o),onThumbPointerUp:(0,lm.W)(a),onThumbPositionChange:E,onThumbPointerDown:(0,lm.W)(s)},(0,Z.createElement)(W.WV.div,(0,F.Z)({},f,{ref:v,style:{position:"absolute",...f.style},onPointerDown:(0,H.M)(e.onPointerDown,e=>{if(0===e.button){let t=e.target;t.setPointerCapture(e.pointerId),g.current=p.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",k(e)}}),onPointerMove:(0,H.M)(e.onPointerMove,k),onPointerUp:(0,H.M)(e.onPointerUp,e=>{let t=e.target;t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=y.current,g.current=null})})))}),l4="ScrollAreaThumb",l3=(0,Z.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=l1(l4,e.__scopeScrollArea);return(0,Z.createElement)($.z,{present:n||i.hasThumb},(0,Z.createElement)(l5,(0,F.Z)({ref:t},r)))}),l5=(0,Z.forwardRef)((e,t)=>{let{__scopeScrollArea:n,style:r,...i}=e,o=lH(l4,n),a=l1(l4,n),{onThumbPositionChange:s}=a,l=(0,V.e)(t,e=>a.onThumbChange(e)),u=(0,Z.useRef)(),c=uo(()=>{u.current&&(u.current(),u.current=void 0)},100);return(0,Z.useEffect)(()=>{let e=o.viewport;if(e){let t=()=>{if(c(),!u.current){let t=ui(e,s);u.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[o.viewport,c,s]),(0,Z.createElement)(W.WV.div,(0,F.Z)({"data-state":a.hasThumb?"visible":"hidden"},i,{ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:(0,H.M)(e.onPointerDownCapture,e=>{let t=e.target,n=t.getBoundingClientRect(),r=e.clientX-n.left,i=e.clientY-n.top;a.onThumbPointerDown({x:r,y:i})}),onPointerUp:(0,H.M)(e.onPointerUp,a.onThumbPointerUp)}))}),l6="ScrollAreaCorner",l8=(0,Z.forwardRef)((e,t)=>{let n=lH(l6,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY),i="scroll"!==n.type&&r;return i?(0,Z.createElement)(l7,(0,F.Z)({},e,{ref:t})):null}),l7=(0,Z.forwardRef)((e,t)=>{let{__scopeScrollArea:n,...r}=e,i=lH(l6,n),[o,a]=(0,Z.useState)(0),[s,l]=(0,Z.useState)(0);return ua(i.scrollbarX,()=>{var e;let t=(null===(e=i.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;i.onCornerHeightChange(t),l(t)}),ua(i.scrollbarY,()=>{var e;let t=(null===(e=i.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;i.onCornerWidthChange(t),a(t)}),o&&s?(0,Z.createElement)(W.WV.div,(0,F.Z)({},r,{ref:t,style:{width:o,height:s,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...e.style}})):null});function l9(e){return e?parseInt(e,10):0}function ue(e,t){let n=e/t;return isNaN(n)?0:n}function ut(e){let t=ue(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function un(e,t,n="ltr"){let r=ut(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,a=t.content-t.viewport,s="ltr"===n?[0,a]:[-1*a,0],l=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,s),u=ur([0,a],[0,o-r]);return u(l)}function ur(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}let ui=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return!function i(){let o={left:e.scrollLeft,top:e.scrollTop},a=n.left!==o.left,s=n.top!==o.top;(a||s)&&t(),n=o,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function uo(e,t){let n=(0,lm.W)(e),r=(0,Z.useRef)(0);return(0,Z.useEffect)(()=>()=>window.clearTimeout(r.current),[]),(0,Z.useCallback)(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function ua(e,t){let n=(0,lm.W)(t);(0,q.b)(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}let us=Z.forwardRef((e,t)=>{let{id:n,className:r,style:i,children:o,keyToResetScrollbars:a}=e;return(0,D.jsxs)(lU,{className:(0,eE.cx)("w-full h-full overflow-hidden",r),style:i,children:[(0,D.jsx)(lW,{id:n,ref:t,className:"w-full h-full [&>div]:!block [&>div]:!h-full",children:o}),(0,D.jsx)(l$,{orientation:"vertical",className:"z-10 flex select-none touch-none transition-colors hover:bg-black/20 w-1.5 m-px",children:(0,D.jsx)(l3,{className:(0,eE.cx)("flex-1 relative bg-gray-300 rounded",'before:content[""] before:absolute before:top-1/2 before:left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full')})},a?"v-".concat(a):void 0),(0,D.jsx)(l$,{orientation:"horizontal",className:"z-10 flex flex-col select-none touch-none transition-colors duration-1000 hover:bg-black/20 h-1 m-px",children:(0,D.jsx)(l3,{className:(0,eE.cx)("flex-1 relative bg-gray-300 rounded",'before:content[""] before:absolute before:top-1/2 before:left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full')})},a?"h-".concat(a):void 0),(0,D.jsx)(l8,{className:"bg-black/70"})]})}),ul=(0,eE.j)(["z-20","overflow-hidden"],{variants:{variant:{default:"flex items-center justify-center w-full h-full",none:""}},defaultVariants:{variant:"default"}}),uu={show:{scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},uc=Z.forwardRef((e,t)=>{let{trigger:n,rootProps:r,open:i,onOpenChange:o,onSubmit:a,title:s,description:l,containerVariants:u,contentVariants:c,controls:d,children:f,bodyClassName:h,closeClassName:p,dynamicHeight:m=!0}=e,{open:v,onOpenChange:g}=ls({open:i,onOpenChange:o});return(0,D.jsxs)(lZ.fC,{open:v,onOpenChange:g,...r,children:[n&&(0,D.jsx)(lZ.xz,{asChild:!0,children:n}),(0,D.jsx)(nR,{children:v?(0,D.jsx)(lZ.h_,{forceMount:!0,children:(0,D.jsx)(lZ.VY,{asChild:!0,forceMount:!0,ref:t,children:(0,D.jsxs)("div",{className:"fixed w-full h-full top-0 left-0 z-20",children:[(0,D.jsx)(lZ.aV,{onClick:()=>g(!1),className:"fixed z-10 top-0 right-0 bottom-0 left-0 inset-0 transition-opacity opacity-0 open:opacity-10 dark:open:opacity-20 bg-black"}),(0,D.jsx)(la.div,{variants:uu,initial:"init",animate:"show",exit:"exit",className:ul(u),children:(0,D.jsx)(uh,{title:s,description:l,contentVariants:c,onSubmit:a,controls:d,bodyClassName:h,closeClassName:p,dynamicHeight:m,children:f})})]})})}):null})]})});function ud(e){let{className:t}=e;return(0,D.jsx)(lZ.x8,{asChild:!0,type:"button",children:(0,D.jsx)("div",{className:(0,eE.cx)("appearance-none",t),children:(0,D.jsx)(ld,{size:"small",variant:"ghost",type:"button",children:(0,D.jsx)(lf.QN4,{})})})})}let uf=(0,eE.j)(["relative","z-40","overflow-hidden"],{variants:{variant:{default:[ne()],none:""}},defaultVariants:{variant:"default"}}),uh=Z.forwardRef((e,t)=>{let{children:n,onSubmit:r,title:i,description:o,controls:a,contentVariants:s,closeClassName:l,bodyClassName:u,dynamicHeight:c=!0}=e,{ref:d,height:f}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t,n]=(0,Z.useState)(0),r=(0,Z.useRef)(null);return(0,Z.useLayoutEffect)(()=>{if(!r.current)return;let e=r.current,t=()=>n(e.clientHeight);t(),r.current.addEventListener("resize",t);let i=new ResizeObserver(t);return i.observe(e),()=>{e.removeEventListener("resize",t),i.unobserve(e)}},e),{ref:r,height:t}}([n,o]),[h,p]=(0,Z.useState)(!1);return(0,Z.useEffect)(()=>{p(f>.7*window.innerHeight)},[f]),(0,D.jsxs)(r?"form":"div",{onSubmit:r,ref:t,className:uf(s),children:[i&&(0,D.jsx)(lZ.Dx,{className:up({showSeparator:h}),children:i}),(0,D.jsx)(us,{style:{height:c?"".concat(f,"px"):void 0,maxHeight:c?"70vh":void 0},children:(0,D.jsxs)("div",{ref:d,className:(0,eE.cx)("p-4",u),children:[o&&(0,D.jsx)(lZ.dk,{className:um(),children:o}),n]})}),a&&(0,D.jsx)(uv,{separator:h,children:a}),(0,D.jsx)(ud,{className:l||"absolute top-3.5 right-2"})]})}),up=(0,eE.j)(["pt-4 pb-2 px-4 w-full",t8({size:"20",weight:"semibold",font:"sans",color:"contrast"})],{variants:{showSeparator:{true:"border-b border-gray-200 dark:border-graydark-200"}}}),um=(0,eE.j)([t8({color:"subtle",size:"14"}),"py-2"]);function uv(e){let{children:t,separator:n=!0}=e;return(0,D.jsx)("div",{className:(0,eE.cx)("py-2 mx-3",n?"border-t border-gray-200 dark:border-graydark-200":""),children:t})}var ug=n(55070),uy=n(77334);let ub="rovingFocusGroup.onEntryFocus",ux={bubbles:!1,cancelable:!0},uw="RovingFocusGroup",[uE,uj,uk]=B(uw),[uS,uO]=(0,z.b)(uw,[uk]),[u_,uC]=uS(uw),uM=(0,Z.forwardRef)((e,t)=>(0,Z.createElement)(uE.Provider,{scope:e.__scopeRovingFocusGroup},(0,Z.createElement)(uE.Slot,{scope:e.__scopeRovingFocusGroup},(0,Z.createElement)(uA,(0,F.Z)({},e,{ref:t}))))),uA=(0,Z.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:o,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,...c}=e,d=(0,Z.useRef)(null),f=(0,V.e)(t,d),h=lF(o),[p=null,m]=(0,U.T)({prop:a,defaultProp:s,onChange:l}),[v,g]=(0,Z.useState)(!1),y=(0,lm.W)(u),b=uj(n),x=(0,Z.useRef)(!1);return(0,Z.useEffect)(()=>{let e=d.current;if(e)return e.addEventListener(ub,y),()=>e.removeEventListener(ub,y)},[y]),(0,Z.createElement)(u_,{scope:n,orientation:r,dir:h,loop:i,currentTabStopId:p,onItemFocus:(0,Z.useCallback)(e=>m(e),[m]),onItemShiftTab:(0,Z.useCallback)(()=>g(!0),[])},(0,Z.createElement)(W.WV.div,(0,F.Z)({tabIndex:v?-1:0,"data-orientation":r},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:(0,H.M)(e.onMouseDown,()=>{x.current=!0}),onFocus:(0,H.M)(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(ub,ux);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable),t=e.find(e=>e.active),n=e.find(e=>e.id===p),r=[t,n,...e].filter(Boolean),i=r.map(e=>e.ref.current);uN(i)}}x.current=!1}),onBlur:(0,H.M)(e.onBlur,()=>g(!1))})))}),uT=(0,Z.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,...o}=e,a=(0,Y.M)(),s=uC("RovingFocusGroupItem",n),l=s.currentTabStopId===a,u=uj(n);return(0,Z.createElement)(uE.ItemSlot,{scope:n,id:a,focusable:r,active:i},(0,Z.createElement)(W.WV.span,(0,F.Z)({tabIndex:l?0:-1,"data-orientation":s.orientation},o,{ref:t,onMouseDown:(0,H.M)(e.onMouseDown,e=>{r?s.onItemFocus(a):e.preventDefault()}),onFocus:(0,H.M)(e.onFocus,()=>s.onItemFocus(a)),onKeyDown:(0,H.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){s.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let i=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return uP[i]}(e,s.orientation,s.dir);if(void 0!==t){e.preventDefault();let i=u().filter(e=>e.focusable),o=i.map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=s.loop?(n=o,r=i+1,n.map((e,t)=>n[(r+t)%n.length])):o.slice(i+1)}setTimeout(()=>uN(o))}})})))}),uP={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function uN(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}var uR=n(49732),uD=n(70506);let uZ=["Enter"," "],uL=["ArrowUp","PageDown","End"],uF=["ArrowDown","PageUp","Home",...uL],uz={ltr:[...uZ,"ArrowRight"],rtl:[...uZ,"ArrowLeft"]},uV={ltr:["ArrowLeft"],rtl:["ArrowRight"]},uI="Menu",[uB,uH,uU]=B(uI),[uW,uq]=(0,z.b)(uI,[uU,tx,uO]),u$=tx(),uY=uO(),[uG,uK]=uW(uI),[uX,uQ]=uW(uI),uJ=(0,Z.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e,i=u$(n);return(0,Z.createElement)(tj,(0,F.Z)({},i,r,{ref:t}))}),u0="MenuPortal",[u1,u2]=uW(u0,{forceMount:void 0}),u4="MenuContent",[u3,u5]=uW(u4),u6=(0,Z.forwardRef)((e,t)=>{let n=u2(u4,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=uK(u4,e.__scopeMenu),a=uQ(u4,e.__scopeMenu);return(0,Z.createElement)(uB.Provider,{scope:e.__scopeMenu},(0,Z.createElement)($.z,{present:r||o.open},(0,Z.createElement)(uB.Slot,{scope:e.__scopeMenu},a.modal?(0,Z.createElement)(u8,(0,F.Z)({},i,{ref:t})):(0,Z.createElement)(u7,(0,F.Z)({},i,{ref:t})))))}),u8=(0,Z.forwardRef)((e,t)=>{let n=uK(u4,e.__scopeMenu),r=(0,Z.useRef)(null),i=(0,V.e)(t,r);return(0,Z.useEffect)(()=>{let e=r.current;if(e)return(0,uR.R)(e)},[]),(0,Z.createElement)(u9,(0,F.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,H.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),u7=(0,Z.forwardRef)((e,t)=>{let n=uK(u4,e.__scopeMenu);return(0,Z.createElement)(u9,(0,F.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),u9=(0,Z.forwardRef)((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f,disableOutsideScroll:h,...p}=e,m=uK(u4,n),v=uQ(u4,n),g=u$(n),y=uY(n),b=uH(n),[x,w]=(0,Z.useState)(null),E=(0,Z.useRef)(null),j=(0,V.e)(t,E,m.onContentChange),k=(0,Z.useRef)(0),S=(0,Z.useRef)(""),O=(0,Z.useRef)(0),_=(0,Z.useRef)(null),C=(0,Z.useRef)("right"),M=(0,Z.useRef)(0),A=h?uD.Z:Z.Fragment,T=h?{as:I.g7,allowPinchZoom:!0}:void 0,P=e=>{var t,n;let r=S.current+e,i=b().filter(e=>!e.disabled),o=document.activeElement,a=null===(t=i.find(e=>e.ref.current===o))||void 0===t?void 0:t.textValue,s=i.map(e=>e.textValue),l=function(e,t,n){var r;let i=t.length>1&&Array.from(t).every(e=>e===t[0]),o=i?t[0]:t,a=n?e.indexOf(n):-1,s=(r=Math.max(a,0),e.map((t,n)=>e[(r+n)%e.length])),l=1===o.length;l&&(s=s.filter(e=>e!==n));let u=s.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}(s,r,a),u=null===(n=i.find(e=>e.textValue===l))||void 0===n?void 0:n.ref.current;!function e(t){S.current=t,window.clearTimeout(k.current),""!==t&&(k.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>u.focus())};(0,Z.useEffect)(()=>()=>window.clearTimeout(k.current),[]),(0,ug.EW)();let N=(0,Z.useCallback)(e=>{var t,n;let r=C.current===(null===(t=_.current)||void 0===t?void 0:t.side);return r&&function(e,t){if(!t)return!1;let n={x:e.clientX,y:e.clientY};return function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;er!=u>r&&n<(l-a)*(r-s)/(u-s)+a;c&&(i=!i)}return i}(n,t)}(e,null===(n=_.current)||void 0===n?void 0:n.area)},[]);return(0,Z.createElement)(u3,{scope:n,searchRef:S,onItemEnter:(0,Z.useCallback)(e=>{N(e)&&e.preventDefault()},[N]),onItemLeave:(0,Z.useCallback)(e=>{var t;N(e)||(null===(t=E.current)||void 0===t||t.focus(),w(null))},[N]),onTriggerLeave:(0,Z.useCallback)(e=>{N(e)&&e.preventDefault()},[N]),pointerGraceTimerRef:O,onPointerGraceIntentChange:(0,Z.useCallback)(e=>{_.current=e},[])},(0,Z.createElement)(A,T,(0,Z.createElement)(uy.M,{asChild:!0,trapped:i,onMountAutoFocus:(0,H.M)(o,e=>{var t;e.preventDefault(),null===(t=E.current)||void 0===t||t.focus()}),onUnmountAutoFocus:a},(0,Z.createElement)(ej.XB,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f},(0,Z.createElement)(uM,(0,F.Z)({asChild:!0},y,{dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:x,onCurrentTabStopIdChange:w,onEntryFocus:e=>{v.isUsingKeyboardRef.current||e.preventDefault()}}),(0,Z.createElement)(tM,(0,F.Z)({role:"menu","aria-orientation":"vertical","data-state":cp(m.open),dir:v.dir},g,p,{ref:j,style:{outline:"none",...p.style},onKeyDown:(0,H.M)(p.onKeyDown,e=>{let t=e.target,n=t.closest('[role="menu"]')===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,i=1===e.key.length;n&&("Tab"===e.key&&e.preventDefault(),!r&&i&&P(e.key));let o=E.current;if(e.target!==o||!uF.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled),s=a.map(e=>e.ref.current);uL.includes(e.key)&&s.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(s)}),onBlur:(0,H.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(k.current),S.current="")}),onPointerMove:(0,H.M)(e.onPointerMove,cv(e=>{let t=e.target,n=M.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>M.current?"right":"left";C.current=t,M.current=e.clientX}}))})))))))}),ce=(0,Z.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,Z.createElement)(W.WV.div,(0,F.Z)({role:"group"},r,{ref:t}))}),ct=(0,Z.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,Z.createElement)(W.WV.div,(0,F.Z)({},r,{ref:t}))}),cn="MenuItem",cr="menu.itemSelect",ci=(0,Z.forwardRef)((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,o=(0,Z.useRef)(null),a=uQ(cn,e.__scopeMenu),s=u5(cn,e.__scopeMenu),l=(0,V.e)(t,o),u=(0,Z.useRef)(!1);return(0,Z.createElement)(co,(0,F.Z)({},i,{ref:l,disabled:n,onClick:(0,H.M)(e.onClick,()=>{let e=o.current;if(!n&&e){let t=new CustomEvent(cr,{bubbles:!0,cancelable:!0});e.addEventListener(cr,e=>null==r?void 0:r(e),{once:!0}),(0,W.jH)(e,t),t.defaultPrevented?u.current=!1:a.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),u.current=!0},onPointerUp:(0,H.M)(e.onPointerUp,e=>{var t;u.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,H.M)(e.onKeyDown,e=>{let t=""!==s.searchRef.current;!n&&(!t||" "!==e.key)&&uZ.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))}),co=(0,Z.forwardRef)((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...o}=e,a=u5(cn,n),s=uY(n),l=(0,Z.useRef)(null),u=(0,V.e)(t,l),[c,d]=(0,Z.useState)(!1),[f,h]=(0,Z.useState)("");return(0,Z.useEffect)(()=>{let e=l.current;if(e){var t;h((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[o.children]),(0,Z.createElement)(uB.ItemSlot,{scope:n,disabled:r,textValue:null!=i?i:f},(0,Z.createElement)(uT,(0,F.Z)({asChild:!0},s,{focusable:!r}),(0,Z.createElement)(W.WV.div,(0,F.Z)({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},o,{ref:u,onPointerMove:(0,H.M)(e.onPointerMove,cv(e=>{if(r)a.onItemLeave(e);else if(a.onItemEnter(e),!e.defaultPrevented){let t=e.currentTarget;t.focus()}})),onPointerLeave:(0,H.M)(e.onPointerLeave,cv(e=>a.onItemLeave(e))),onFocus:(0,H.M)(e.onFocus,()=>d(!0)),onBlur:(0,H.M)(e.onBlur,()=>d(!1))}))))}),[ca,cs]=((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,Z.createElement)(cu,{scope:e.__scopeMenu,checked:n},(0,Z.createElement)(ci,(0,F.Z)({role:"menuitemcheckbox","aria-checked":n},i,{ref:t,"data-state":cm(n),onSelect:(0,H.M)(i.onSelect,()=>null==r?void 0:r(!n),{checkForDefaultPrevented:!1})})))},uW("MenuRadioGroup",{value:void 0,onValueChange:()=>{}})),cl=((e,t)=>{let{value:n,onValueChange:r,...i}=e,o=(0,lm.W)(r);return(0,Z.createElement)(ca,{scope:e.__scopeMenu,value:n,onValueChange:o},(0,Z.createElement)(ce,(0,F.Z)({},i,{ref:t})))},"MenuItemIndicator"),[cu,cc]=uW(cl,{checked:!1}),[cd,cf]=((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,o=cc(cl,n);return(0,Z.createElement)($.z,{present:r||o.checked},(0,Z.createElement)(W.WV.span,(0,F.Z)({},i,{ref:t,"data-state":cm(o.checked)})))},uW("MenuSub")),ch="MenuSubTrigger";function cp(e){return e?"open":"closed"}function cm(e){return e?"checked":"unchecked"}function cv(e){return t=>"mouse"===t.pointerType?e(t):void 0}(e,t)=>{let n=uK(ch,e.__scopeMenu),r=uQ(ch,e.__scopeMenu),i=cf(ch,e.__scopeMenu),o=u5(ch,e.__scopeMenu),a=(0,Z.useRef)(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=o,u={__scopeMenu:e.__scopeMenu},c=(0,Z.useCallback)(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return(0,Z.useEffect)(()=>c,[c]),(0,Z.useEffect)(()=>{let e=s.current;return()=>{window.clearTimeout(e),l(null)}},[s,l]),(0,Z.createElement)(uJ,(0,F.Z)({asChild:!0},u),(0,Z.createElement)(co,(0,F.Z)({id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":cp(n.open)},e,{ref:(0,V.F)(t,i.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,H.M)(e.onPointerMove,cv(t=>{o.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||a.current||(o.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),c()},100))})),onPointerLeave:(0,H.M)(e.onPointerLeave,cv(e=>{var t,r;c();let i=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(i){let t=null===(r=n.content)||void 0===r?void 0:r.dataset.side,a="right"===t,l=i[a?"left":"right"],u=i[a?"right":"left"];o.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:l,y:i.top},{x:u,y:i.top},{x:u,y:i.bottom},{x:l,y:i.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(e),e.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:(0,H.M)(e.onKeyDown,t=>{let i=""!==o.searchRef.current;if(!e.disabled&&(!i||" "!==t.key)&&uz[r.dir].includes(t.key)){var a;n.onOpenChange(!0),null===(a=n.content)||void 0===a||a.focus(),t.preventDefault()}})})))},(e,t)=>{let n=u2(u4,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=uK(u4,e.__scopeMenu),a=uQ(u4,e.__scopeMenu),s=cf("MenuSubContent",e.__scopeMenu),l=(0,Z.useRef)(null),u=(0,V.e)(t,l);return(0,Z.createElement)(uB.Provider,{scope:e.__scopeMenu},(0,Z.createElement)($.z,{present:r||o.open},(0,Z.createElement)(uB.Slot,{scope:e.__scopeMenu},(0,Z.createElement)(u9,(0,F.Z)({id:s.contentId,"aria-labelledby":s.triggerId},i,{ref:u,align:"start",side:"rtl"===a.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;a.isUsingKeyboardRef.current&&(null===(t=l.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,H.M)(e.onFocusOutside,e=>{e.target!==s.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:(0,H.M)(e.onEscapeKeyDown,a.onClose),onKeyDown:(0,H.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=uV[a.dir].includes(e.key);if(t&&n){var r;o.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault()}})})))))};let cg=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:o,modal:a=!0}=e,s=u$(t),[l,u]=(0,Z.useState)(null),c=(0,Z.useRef)(!1),d=(0,lm.W)(o),f=lF(i);return(0,Z.useEffect)(()=>{let e=()=>{c.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>c.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,Z.createElement)(tZ,s,(0,Z.createElement)(uG,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:u},(0,Z.createElement)(uX,{scope:t,onClose:(0,Z.useCallback)(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:a},r)))},cy=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=uK(u0,t);return(0,Z.createElement)(u1,{scope:t,forceMount:n},(0,Z.createElement)($.z,{present:n||o.open},(0,Z.createElement)(tL.h,{asChild:!0,container:i},r)))},cb="DropdownMenu",[cx,cw]=(0,z.b)(cb,[uq]),cE=uq(),[cj,ck]=cx(cb),cS=(0,Z.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,o=ck("DropdownMenuTrigger",n),a=cE(n);return(0,Z.createElement)(uJ,(0,F.Z)({asChild:!0},a),(0,Z.createElement)(W.WV.button,(0,F.Z)({type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":!!o.open||void 0,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},i,{ref:(0,V.F)(t,o.triggerRef),onPointerDown:(0,H.M)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:(0,H.M)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),[" ","ArrowDown"].includes(e.key)&&e.preventDefault())})})))}),cO=(0,Z.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=ck("DropdownMenuContent",n),o=cE(n),a=(0,Z.useRef)(!1);return(0,Z.createElement)(u6,(0,F.Z)({id:i.contentId,"aria-labelledby":i.triggerId},o,r,{ref:t,onCloseAutoFocus:(0,H.M)(e.onCloseAutoFocus,e=>{var t;a.current||null===(t=i.triggerRef.current)||void 0===t||t.focus(),a.current=!1,e.preventDefault()}),onInteractOutside:(0,H.M)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!i.modal||r)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)"}}))}),c_=(0,Z.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cE(n);return(0,Z.createElement)(ct,(0,F.Z)({},i,r,{ref:t}))}),cC=(0,Z.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cE(n);return(0,Z.createElement)(ci,(0,F.Z)({},i,r,{ref:t}))}),cM=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,l=cE(t),u=(0,Z.useRef)(null),[c=!1,d]=(0,U.T)({prop:i,defaultProp:o,onChange:a});return(0,Z.createElement)(cj,{scope:t,triggerId:(0,Y.M)(),triggerRef:u,contentId:(0,Y.M)(),open:c,onOpenChange:d,onOpenToggle:(0,Z.useCallback)(()=>d(e=>!e),[d]),modal:s},(0,Z.createElement)(cg,(0,F.Z)({},l,{open:c,onOpenChange:d,dir:r,modal:s}),n))},cA=e=>{let{__scopeDropdownMenu:t,...n}=e,r=cE(t);return(0,Z.createElement)(cy,(0,F.Z)({},r,n))},cT="horizontal",cP=["horizontal","vertical"],cN=(0,Z.forwardRef)((e,t)=>{let{decorative:n,orientation:r=cT,...i}=e,o=cR(r)?r:cT;return(0,Z.createElement)(W.WV.div,(0,F.Z)({"data-orientation":o},n?{role:"none"}:{"aria-orientation":"vertical"===o?o:void 0,role:"separator"},i,{ref:t}))});function cR(e){return cP.includes(e)}cN.propTypes={orientation(e,t,n){let r=e[t],i=String(r);return r&&!cR(r)?Error(`Invalid prop \`orientation\` of value \`${i}\` supplied to \`${n}\`, expected one of: + - horizontal + - vertical + +Defaulting to \`${cT}\`.`):null}};let cD=(0,eE.j)(["m-0 flex-shrink-0 cursor-default"],{variants:{variant:{vertical:"border-r",horizontal:"border-b"},color:{subtle:"border-gray-300 dark:border-graydark-300",verySubtle:"border-gray-100 dark:border-graydark-100",panel:"border-gray-100 dark:border-graydark-400/50"}},defaultVariants:{variant:"horizontal",color:"subtle"}}),cZ=Z.forwardRef((e,t)=>{let{variant:n,color:r,className:i,...o}=e;return(0,D.jsx)(cN,{ref:t,className:cD({variant:n,color:r,className:i}),...o})}),cL=function(){let{className:e,font:t,color:n="subtle",weight:r="medium",size:i="14",scaleSize:o,noWrap:a,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,eE.cx)(t8({font:t,color:n,weight:r,size:i,scaleSize:o,noWrap:a,ellipsis:s,className:e}),["relative","flex","items-center","tabular-nums","select-none","whitespace-nowrap","px-1.5","py-1.5"])},cF=function(){let{className:e,font:t,color:n="contrast",weight:r="medium",size:i="14",scaleSize:o,noWrap:a,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,eE.cx)(cL({font:t,color:n,weight:r,size:i,scaleSize:o,noWrap:a,ellipsis:s,className:e}),["group","cursor-pointer","rounded-sm","focus:outline-none","focus:text-gray-900","dark:focus:text-white","focus:bg-gray-300","dark:focus:bg-graydark-300","aria-selected:bg-gray-400","aria-selected:dark:bg-graydark-500","data-[disabled]:pointer-events-none","data-[disabled]:text-gray-700","dark:data-[disabled]:text-graydark-700"])},cz=e=>{let{className:t,font:n,color:r="verySubtle",weight:i="medium",size:o="14",scaleSize:a,noWrap:s,ellipsis:l}=e;return t8({font:n,color:r,weight:i,size:o,scaleSize:a,noWrap:s,ellipsis:l,className:t})},cV=e=>(0,eE.cx)(["h-px","my-2","mx-1.5",e]),cI=Z.forwardRef((e,t)=>{let{className:n,color:r,...i}=e;return(0,D.jsx)(cZ,{ref:t,className:cV(n),...i})}),cB=Z.forwardRef((e,t)=>{let{className:n,font:r,color:i,weight:o,size:a="14",scaleSize:s,noWrap:l,ellipsis:u,...c}=e;return(0,D.jsx)("div",{ref:t,className:(0,eE.cx)(cL({className:n,font:r,color:i,weight:o,size:a,scaleSize:s,noWrap:l,ellipsis:u})),...c})}),cH=Z.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,D.jsx)("div",{ref:t,className:(0,eE.cx)(["ml-auto","pl-5",n]),...r})}),cU=(0,eE.j)(["relative","max-w-sm","z-30","py-1","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-tip","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),cW=e=>(0,eE.cx)(ne(),(0,eE.j)(["max-w-xs","shadow-sm","py-1","px-1"])({className:e})),cq={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},c$=Z.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o,className:a,open:s,onOpenChange:l}=e,{open:u,onOpenChange:c}=ls({open:s,onOpenChange:l});return(0,D.jsxs)(cM,{open:u,onOpenChange:c,...i,children:[(0,D.jsx)(cS,{asChild:!0,children:n}),(0,D.jsx)(nR,{children:u?(0,D.jsx)(cA,{forceMount:!0,children:(0,D.jsx)(cO,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,D.jsx)(la.div,{variants:cq,initial:"init",animate:"show",exit:"exit",className:cU(),children:(0,D.jsx)("div",{className:cW(a),children:r})})})}):null})]})}),cY=Z.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,D.jsx)(cC,{ref:t,className:cF({className:n}),...r})}),cG=Z.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,D.jsx)(c_,{ref:t,className:(0,eE.cx)("px-1.5",cz({className:n})),...r})}),cK=Z.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,D.jsx)("div",{ref:t,className:(0,eE.cx)(["pr-2","opacity-70 group-hover:opacity-100",n]),...r})});var cX=n(44114);let cQ={20:"h3",24:"h3",32:"h2",40:"h2",64:"h1"},cJ={20:"font-semibold text-base md:text-xl",24:"font-bold text-xl md:text-2xl",32:"font-semibold text-2xl md:text-3xl",40:"font-semibold text-3xl md:text-4xl",64:"font-semibold text-4xl md:text-6xl"},c0=Z.forwardRef((e,t)=>{let{size:n="24",className:r,id:i,children:o,anchorLink:a,showAnchor:s,...l}=e,u=cQ[n];if(a){let e=i||("string"==typeof o?encodeURI(o.toLowerCase().replace(/ /g,"-")):"");return(0,D.jsxs)("div",{className:(0,eE.cx)("relative flex flex-col gap-6 items-start",r),children:[(0,D.jsx)("div",{id:e,className:"absolute -top-[100px]"}),(0,D.jsxs)(cX.rU,{href:"#".concat(e),className:"relative group",children:[(0,D.jsx)(t7,{className:"hidden group-hover:block",children:(0,D.jsx)(lf.POp,{className:"absolute top-1 -left-7 hidden md:block"})}),(0,D.jsx)(t7,{as:u,...l,ref:t,weight:"none",className:(0,eE.cx)("proportional-nums inline-block",cJ[n]),children:o})]})]})}return(0,D.jsx)("div",{className:(0,eE.cx)("flex flex-col gap-6 items-start",r),children:(0,D.jsx)(t7,{as:u,...l,ref:t,weight:"none",className:(0,eE.cx)("proportional-nums inline-block",cJ[n],r),children:o})})}),c1=(0,eE.j)(["rounded"]);function c2(e){let{className:t,...n}=e;return(0,D.jsx)(cX.Ee,{className:c1({className:t}),...n})}let[c4,c3]=(0,z.k)("Label",{id:void 0,controlRef:{current:null}}),c5=(0,Z.forwardRef)((e,t)=>{let{htmlFor:n,id:r,...i}=e,o=(0,Z.useRef)(null),a=(0,Z.useRef)(null),s=(0,V.e)(t,a),l=(0,Y.M)(r);return(0,Z.useEffect)(()=>{if(n){let e=document.getElementById(n),t=a.current;if(t&&e){let t=()=>e.getAttribute("aria-labelledby"),n=[l,t()].filter(Boolean).join(" ");return e.setAttribute("aria-labelledby",n),o.current=e,()=>{var n;let r=null===(n=t())||void 0===n?void 0:n.replace(l,"");""===r?e.removeAttribute("aria-labelledby"):r&&e.setAttribute("aria-labelledby",r)}}}},[l,n]),(0,Z.createElement)(c4,{id:l,controlRef:o},(0,Z.createElement)(W.WV.span,(0,F.Z)({role:"label",id:l},i,{ref:s,onMouseDown:t=>{var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()},onClick:t=>{var n;if(null===(n=e.onClick)||void 0===n||n.call(e,t),!o.current||t.defaultPrevented)return;let r=o.current.contains(t.target),i=!0===t.isTrusted;!r&&i&&(o.current.click(),o.current.focus())}})))}),c6=e=>{let t=c3("LabelConsumer"),{controlRef:n}=t;return(0,Z.useEffect)(()=>{e&&(n.current=e)},[e,n]),t.id},c8=Z.forwardRef((e,t)=>{let{font:n,size:r="14",scaleSize:i,weight:o,color:a="verySubtle",noWrap:s,ellipsis:l,className:u,...c}=e;return(0,D.jsx)(c5,{ref:t,...c,className:cz({font:n,size:r,scaleSize:i,color:a,weight:o,noWrap:s,ellipsis:l,className:u})})}),c7=(0,eE.j)(["cursor-pointer"],{variants:{disabled:{true:"opacity-50 pointer-events-none"},underline:{accent:"underline underline-offset-4 decoration-2 decoration-accentdark-900 dark:decoration-accentdark-900",default:"underline underline-offset-4",hover:"hover:underline underline-offset-4",none:""}},defaultVariants:{disabled:!1,underline:"default"}}),c9=e=>{let{font:t,size:n,scaleSize:r,color:i,weight:o,noWrap:a,ellipsis:s,underline:l,disabled:u,className:c}=e;return(0,eE.cx)(t8({scaleSize:r,size:n,font:t,color:i,weight:o,noWrap:a,ellipsis:s,underline:l}),c7({disabled:u,underline:l}),c)},de=Z.forwardRef((e,t)=>{let{href:n,font:r,size:i,scaleSize:o,color:a,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f,rel:h,target:p,onClick:m,...v}=e,g=(0,Z.useCallback)(e=>{m&&(n||e.preventDefault(),m(e))},[m,n]);return(0,D.jsx)(cX.rU,{href:n||"#",ref:t,className:c9({font:r,scaleSize:o,size:i,color:a,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f}),...v,onClick:g,rel:h||("_blank"===p?"noopener":void 0),target:p})}),dt={src:"/_next/static/media/logo.0e2362ab.png"};function dn(e){let{size:t=30,className:n}=e;return(0,D.jsx)(c2,{priority:!0,src:"/_next/static/media/logo.0e2362ab.png",alt:"Logo",width:t,height:t,className:n})}let dr="Popover",[di,da]=(0,z.b)(dr,[tx]),ds=tx(),[dl,du]=di(dr),dc=(0,Z.forwardRef)((e,t)=>{let{__scopePopover:n,...r}=e,i=du("PopoverTrigger",n),o=ds(n),a=(0,V.e)(t,i.triggerRef),s=(0,Z.createElement)(W.WV.button,(0,F.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":db(i.open)},r,{ref:a,onClick:(0,H.M)(e.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?s:(0,Z.createElement)(tj,(0,F.Z)({asChild:!0},o),s)}),dd="PopoverPortal",[df,dh]=di(dd,{forceMount:void 0}),dp="PopoverContent",dm=(0,Z.forwardRef)((e,t)=>{let n=dh(dp,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,o=du(dp,e.__scopePopover);return(0,Z.createElement)($.z,{present:r||o.open},o.modal?(0,Z.createElement)(dv,(0,F.Z)({},i,{ref:t})):(0,Z.createElement)(dg,(0,F.Z)({},i,{ref:t})))}),dv=(0,Z.forwardRef)((e,t)=>{let n=du(dp,e.__scopePopover),r=(0,Z.useRef)(null),i=(0,V.e)(t,r),o=(0,Z.useRef)(!1);return(0,Z.useEffect)(()=>{let e=r.current;if(e)return(0,uR.R)(e)},[]),(0,Z.createElement)(uD.Z,{as:I.g7,allowPinchZoom:!0},(0,Z.createElement)(dy,(0,F.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,H.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),o.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,H.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,H.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})))}),dg=(0,Z.forwardRef)((e,t)=>{let n=du(dp,e.__scopePopover),r=(0,Z.useRef)(!1);return(0,Z.createElement)(dy,(0,F.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,o;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current||null===(o=n.triggerRef.current)||void 0===o||o.focus(),t.preventDefault()),r.current=!1},onInteractOutside:t=>{var i,o;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0);let a=t.target,s=null===(o=n.triggerRef.current)||void 0===o?void 0:o.contains(a);s&&t.preventDefault()}}))}),dy=(0,Z.forwardRef)((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,f=du(dp,n),h=ds(n);return(0,ug.EW)(),(0,Z.createElement)(uy.M,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o},(0,Z.createElement)(ej.XB,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:c,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1)},(0,Z.createElement)(tM,(0,F.Z)({"data-state":db(f.open),role:"dialog",id:f.contentId},h,d,{ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function db(e){return e?"open":"closed"}let dx=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:a=!1}=e,s=ds(t),l=(0,Z.useRef)(null),[u,c]=(0,Z.useState)(!1),[d=!1,f]=(0,U.T)({prop:r,defaultProp:i,onChange:o});return(0,Z.createElement)(tZ,s,(0,Z.createElement)(dl,{scope:t,contentId:(0,Y.M)(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:(0,Z.useCallback)(()=>f(e=>!e),[f]),hasCustomAnchor:u,onCustomAnchorAdd:(0,Z.useCallback)(()=>c(!0),[]),onCustomAnchorRemove:(0,Z.useCallback)(()=>c(!1),[]),modal:a},n))},dw=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,o=du(dd,t);return(0,Z.createElement)(df,{scope:t,forceMount:n},(0,Z.createElement)($.z,{present:n||o.open},(0,Z.createElement)(tL.h,{asChild:!0,container:i},r)))},dE=(0,eE.j)(["relative","z-10","outline-none","max-w-sm","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),dj=(0,eE.cx)(ne(),(0,eE.j)(["py-1","px-1"])()),dk={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},dS=Z.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o}=e,{open:a,onOpenChange:s}=ls({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,D.jsxs)(dx,{open:a,onOpenChange:s,...i,children:[(0,D.jsx)(dc,{asChild:!0,children:n}),(0,D.jsx)(nR,{children:a?(0,D.jsx)(dw,{forceMount:!0,children:(0,D.jsx)(dm,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,D.jsx)(la.div,{variants:dk,initial:"init",animate:"show",exit:"exit",className:dE(),children:(0,D.jsx)(us,{className:dj,children:r})})})}):null})]})}),dO="Progress",[d_,dC]=(0,z.b)(dO),[dM,dA]=d_(dO),dT=(0,Z.forwardRef)((e,t)=>{let{__scopeProgress:n,value:r,max:i,getValueLabel:o=dN,...a}=e,s=dZ(i)?i:100,l=dL(r,s)?r:null,u=dD(l)?o(l,s):void 0;return(0,Z.createElement)(dM,{scope:n,value:l,max:s},(0,Z.createElement)(W.WV.div,(0,F.Z)({"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":dD(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":dR(l,s),"data-value":null!=l?l:void 0,"data-max":s},a,{ref:t})))});dT.propTypes={max(e,t,n){let r=e[t],i=String(r);return r&&!dZ(r)?Error(`Invalid prop \`max\` of value \`${i}\` supplied to \`${n}\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`):null},value(e,t,n){let r=e[t],i=String(r),o=dZ(e.max)?e.max:100;return null==r||dL(r,o)?null:Error(`Invalid prop \`value\` of value \`${i}\` supplied to \`${n}\`. The \`value\` prop must be: + - a positive number + - less than the value passed to \`max\` (or 100 if no \`max\` prop is set) + - \`null\` if the progress is indeterminate. + +Defaulting to \`null\`.`)}};let dP=(0,Z.forwardRef)((e,t)=>{var n;let{__scopeProgress:r,...i}=e,o=dA("ProgressIndicator",r);return(0,Z.createElement)(W.WV.div,(0,F.Z)({"data-state":dR(o.value,o.max),"data-value":null!==(n=o.value)&&void 0!==n?n:void 0,"data-max":o.max},i,{ref:t}))});function dN(e,t){return`${Math.round(e/t*100)}%`}function dR(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function dD(e){return"number"==typeof e}function dZ(e){return dD(e)&&!isNaN(e)&&e>0}function dL(e,t){return dD(e)&&!isNaN(e)&&e<=t&&e>=0}let dF=(0,eE.j)(["relative h-1 w-full overflow-hidden rounded-lg"],{variants:{variant:{gray:"bg-gray-700 dark:bg-graydark-700",accent:"bg-green-600 dark:bg-green-500"}},defaultVariants:{variant:"gray"}}),dz=Z.forwardRef((e,t)=>{let{label:n,variant:r,className:i,value:o,max:a=100,...s}=e,l=null!=o?Math.round(o/a*100):null;return(0,D.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,D.jsx)(dT,{...s,ref:t,value:o,max:a,className:dF({variant:r,className:i}),children:(0,D.jsx)(dP,{className:"absolute top-0 right-0 left-0 bottom-0 w-full bg-gray-300 dark:bg-graydark-300 transition-transform",style:{transform:"translateX(".concat(l,"%)")}})}),n&&(0,D.jsx)(t7,{color:"subtle",size:"12",ellipsis:!0,children:n})]})});function dV(e){let t=(0,Z.useRef)({value:e,previous:e});return(0,Z.useMemo)(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}let dI="Radio",[dB,dH]=(0,z.b)(dI),[dU,dW]=dB(dI),dq=(0,Z.forwardRef)((e,t)=>{let{__scopeRadio:n,"aria-labelledby":r,name:i,checked:o=!1,required:a,disabled:s,value:l="on",onCheck:u,...c}=e,[d,f]=(0,Z.useState)(null),h=(0,V.e)(t,e=>f(e)),p=c6(d),m=(0,Z.useRef)(!1),v=!d||!!d.closest("form");return(0,Z.createElement)(dU,{scope:n,checked:o,disabled:s},(0,Z.createElement)(W.WV.button,(0,F.Z)({type:"button",role:"radio","aria-checked":o,"aria-labelledby":r||p,"data-state":dG(o),"data-disabled":s?"":void 0,disabled:s,value:l},c,{ref:h,onClick:(0,H.M)(e.onClick,e=>{o||null==u||u(),v&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})),v&&(0,Z.createElement)(dY,{control:d,bubbles:!m.current,name:i,value:l,checked:o,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))}),d$=(0,Z.forwardRef)((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,o=dW("RadioIndicator",n);return(0,Z.createElement)($.z,{present:r||o.checked},(0,Z.createElement)(W.WV.span,(0,F.Z)({"data-state":dG(o.checked),"data-disabled":o.disabled?"":void 0},i,{ref:t})))}),dY=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,o=(0,Z.useRef)(null),a=dV(n),s=tg(t);return(0,Z.useEffect)(()=>{let e=o.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked"),s=i.set;if(a!==n&&s){let t=new Event("click",{bubbles:r});s.call(e,n),e.dispatchEvent(t)}},[a,n,r]),(0,Z.createElement)("input",(0,F.Z)({type:"radio","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function dG(e){return e?"checked":"unchecked"}let dK=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],dX="RadioGroup",[dQ,dJ]=(0,z.b)(dX,[uO,dH]),d0=uO(),d1=dH(),[d2,d4]=dQ(dX),d3=(0,Z.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,name:r,"aria-labelledby":i,defaultValue:o,value:a,required:s=!1,orientation:l,dir:u,loop:c=!0,onValueChange:d,...f}=e,h=c6(),p=d0(n),m=lF(u),[v,g]=(0,U.T)({prop:a,defaultProp:o,onChange:d});return(0,Z.createElement)(d2,{scope:n,name:r,required:s,value:v,onValueChange:g},(0,Z.createElement)(uM,(0,F.Z)({asChild:!0},p,{orientation:l,dir:m,loop:c}),(0,Z.createElement)(W.WV.div,(0,F.Z)({role:"radiogroup","aria-required":s,"aria-orientation":l,"aria-labelledby":i||h,dir:m},f,{ref:t}))))}),d5=(0,Z.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,disabled:r,...i}=e,o=d4("RadioGroupItem",n),a=d0(n),s=d1(n),l=(0,Z.useRef)(null),u=(0,V.e)(t,l),c=o.value===i.value,d=(0,Z.useRef)(!1);return(0,Z.useEffect)(()=>{let e=e=>{dK.includes(e.key)&&(d.current=!0)},t=()=>d.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,Z.createElement)(uT,(0,F.Z)({asChild:!0},a,{focusable:!r,active:c}),(0,Z.createElement)(dq,(0,F.Z)({disabled:r,required:o.required,checked:c},s,i,{name:o.name,ref:u,onCheck:()=>o.onValueChange(i.value),onKeyDown:(0,H.M)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,H.M)(i.onFocus,()=>{var e;d.current&&(null===(e=l.current)||void 0===e||e.click())})})))}),d6=(0,Z.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,...r}=e,i=d1(n);return(0,Z.createElement)(d$,(0,F.Z)({},i,r,{ref:t}))}),d8=(0,eE.j)(["relative flex items-center h-full justify-center w-full",'after:content-[""] after:block after:rounded-full after:bg-green-600 after:dark:bg-green-500'],{variants:{size:{small:"after:w-2 after:h-2 ",medium:"after:w-4 after:h-4"}},defaultVariants:{size:"small"}}),d7=(0,eE.j)(["select-none","inline-flex items-center justify-center","m-0 p-0","outline-none","rounded-full","overflow-hidden","focus:ring ring-blue-500 dark:ring-blue-200","bg-white dark:bg-graydark-200","border border-gray-500 dark:border-graydark-400","enabled:hover:border-gray-700 enabled:hover:dark:border-graydark-600","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-400","disabled:bg-gray-200 disabled:dark:bg-graydark-200"],{variants:{size:{small:"w-4 h-4",medium:"w-6 h-6"}},defaultVariants:{size:"small"}}),d9=Z.forwardRef((e,t)=>{let{size:n,className:r,children:i,...o}=e;return(0,D.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,D.jsx)(d5,{...o,className:d7({size:n,className:r}),ref:t,children:(0,D.jsx)(d6,{className:d8({size:n})})}),(0,D.jsx)(t7,{size:"14",className:"relative top-px flex items-center",color:o.disabled?"verySubtle":"subtle",children:i})]})}),fe=Z.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,D.jsx)(d3,{...r,className:(0,eE.cx)("flex gap-2",n),ref:t})});(0,eE.j)(["relative appearance-none outline-none","p-2 m-0 w-full","min-h-[80px]",t8(),"tabular-nums","resize-y","rounded","focus:ring ring-blue-500 dark:ring-blue-200","text-gray-1100 dark:text-white","placeholder:text-gray-600 placeholder:dark:text-graydark-500","disabled:text-gray-400 disabled:dark:text-graydark-400"],{variants:{size:{small:"h-7 text-sm px-2",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},variant:{default:["border","bg-white dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800"],ghost:"bg-transparent"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]},cursor:{default:"",text:"cursor-text"}},defaultVariants:{size:"small",variant:"default",cursor:"default",state:"default"}});let ft=(0,eE.j)(["font-sans [type=number]:font-mono","outline-none m-0 p-0 w-full","disabled:pointer-events-none","tabular-nums","rounded","text-gray-1100 dark:text-white","autofill:text-fill-gray-1100 autofill:dark:text-fill-white","autofill:placeholder:text-fill-gray-700 autofill:placeholder:dark:text-fill-graydark-700","placeholder:text-gray-700 placeholder:dark:text-graydark-700","disabled:text-gray-400 disabled:dark:text-graydark-400"],{variants:{size:{small:"h-7 text-sm px-2",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},variant:{default:["border","bg-white dark:bg-graydark-50","autofill:bg-white autofill:dark:bg-graydark-50","autofill:shadow-fill-white autofill:dark:shadow-fill-graydark-50"],ghost:"bg-transparent"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]},focus:{default:["focus:ring ring-blue-500 dark:ring-blue-200","focus:z-10"],none:""},cursor:{default:"",text:"cursor-text"},noSpin:{true:"[&::-webkit-outer-spin-button, &::-webkit-inner-spin-button]:appearance-none"}},defaultVariants:{size:"small",focus:"default",variant:"default",cursor:"default",state:"default"}}),fn=Z.forwardRef((e,t)=>{let{variant:n,size:r,state:i,noSpin:o,cursor:a,focus:s,className:l,...u}=e;return(0,D.jsx)("input",{ref:t,className:ft({variant:n,size:r,state:i,noSpin:o,cursor:a,focus:s,className:l}),...u})});/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var fr=function(){return(fr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1){if(e.includes(t)){var r=e.split(t),i=r[0],o=r[1];if(o.length>n)return""+i+t+o.slice(0,n)}var a=e.length>n?RegExp("(\\d+)(\\d{"+n+"})"):RegExp("(\\d)(\\d+)"),s=e.match(a);if(s){var i=s[1],o=s[2];return""+i+t+o}}return e},ff=function(e,t){var n=t.groupSeparator,r=t.decimalSeparator,i=RegExp("\\d([^"+fo(void 0===n?",":n)+fo(void 0===r?".":r)+"0-9]+)"),o=e.match(i);return o?o[1]:void 0},fh=function(e){var t=e.value,n=e.decimalSeparator,r=e.intlConfig,i=e.decimalScale,o=e.prefix,a=void 0===o?"":o,s=e.suffix,l=void 0===s?"":s;if(""===t||void 0===t)return"";if("-"===t)return"-";var u=RegExp("^\\d?-"+(a?fo(a)+"?":"")+"\\d").test(t),c="."!==n?fp(t,n,u):t,d=fm((r?new Intl.NumberFormat(r.locale,r.currency?{style:"currency",currency:r.currency,minimumFractionDigits:i||0,maximumFractionDigits:20}:void 0):new Intl.NumberFormat(void 0,{minimumFractionDigits:i||0,maximumFractionDigits:20})).formatToParts(Number(c)),e),f=ff(d,fr({},e)),h=t.slice(-1)===n?n:"",p=(c.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return(void 0===i&&p&&n&&(d=d.includes(n)?d.replace(RegExp("(\\d+)("+fo(n)+")(\\d+)","g"),"$1$2"+p):f&&!l?d.replace(f,""+n+p+f):""+d+n+p),l&&h)?""+d+h+l:f&&h?d.replace(f,""+h+f):f&&l?d.replace(f,""+h+l):[d,h,l].join("")},fp=function(e,t,n){var r=e;return t&&"."!==t&&(r=r.replace(RegExp(fo(t),"g"),"."),n&&"-"===t&&(r="-"+r.slice(1))),r},fm=function(e,t){var n=t.prefix,r=t.groupSeparator,i=t.decimalSeparator,o=t.decimalScale,a=t.disableGroupSeparators,s=void 0!==a&&a;return e.reduce(function(e,t,a){var l=t.type,u=t.value;return 0===a&&n?"minusSign"===l?[u,n]:"currency"===l?fi(fi([],e),[n]):[n,u]:"currency"===l?n?e:fi(fi([],e),[u]):"group"===l?s?e:fi(fi([],e),[void 0!==r?r:u]):"decimal"===l?void 0!==o&&0===o?e:fi(fi([],e),[void 0!==i?i:u]):"fraction"===l?fi(fi([],e),[void 0!==o?u.slice(0,o):u]):fi(fi([],e),[u])},[""]).join("")},fv={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},fg=function(e){var t=e||{},n=t.locale,r=t.currency;return(n?new Intl.NumberFormat(n,r?{currency:r,style:"currency"}:void 0):new Intl.NumberFormat).formatToParts(1000.1).reduce(function(e,t,n){return"currency"===t.type?0===n?fr(fr({},e),{currencySymbol:t.value,prefix:t.value}):fr(fr({},e),{currencySymbol:t.value,suffix:t.value}):"group"===t.type?fr(fr({},e),{groupSeparator:t.value}):"decimal"===t.type?fr(fr({},e),{decimalSeparator:t.value}):e},fv)},fy=function(e){return RegExp(/\d/,"gi").test(e)},fb=function(e,t,n){if(void 0===t&&(t="."),void 0===n||""===e||void 0===e)return e;if(!e.match(/\d/g))return"";var r=e.split(t),i=r[0],o=r[1];if(0===n)return i;var a=o||"";if(a.lengtht.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}(e,["allowDecimals","allowNegativeValue","id","name","className","customInput","decimalsLimit","defaultValue","disabled","maxLength","value","onValueChange","fixedDecimalLength","placeholder","decimalScale","prefix","suffix","intlConfig","step","min","max","disableGroupSeparators","disableAbbreviations","decimalSeparator","groupSeparator","onChange","onFocus","onBlur","onKeyDown","onKeyUp","transformRawValue"]);if(O&&fy(O))throw Error("decimalSeparator cannot be a number");if(_&&fy(_))throw Error("groupSeparator cannot be a number");var D=(0,Z.useMemo)(function(){return fg(b)},[b]),L=O||D.decimalSeparator||"",F=_||D.groupSeparator||"";if(L&&F&&L===F&&!1===k)throw Error("decimalSeparator cannot be the same as groupSeparator");var z={decimalSeparator:L,groupSeparator:F,disableGroupSeparators:k,intlConfig:b,prefix:g||D.prefix,suffix:y},V={decimalSeparator:L,groupSeparator:F,allowDecimals:void 0===n||n,decimalsLimit:l||p||2,allowNegativeValue:void 0===r||r,disableAbbreviations:void 0!==S&&S,prefix:g||D.prefix,transformRawValue:N},I=null!=u?fh(fr(fr({},z),{decimalScale:v,value:String(u)})):null!=f?fh(fr(fr({},z),{decimalScale:v,value:String(f)})):"",B=(0,Z.useState)(I),H=B[0],U=B[1],W=(0,Z.useState)(!1),q=W[0],$=W[1],Y=(0,Z.useState)(0),G=Y[0],K=Y[1],X=(0,Z.useState)(0),Q=X[0],J=X[1],ee=(0,Z.useState)(null),et=ee[0],en=ee[1],er=t||(0,Z.useRef)(null),ei=function(e,t){$(!0);var n=fx({selectionStart:t,value:e,lastKeyStroke:et,stateValue:H,groupSeparator:F}),r=n.modifiedValue,i=n.cursorPosition,a=fc(fr({value:r},V));if(!d||!(a.replace(/-/g,"").length>d)){if(""===a||"-"===a||a===L){h&&h(void 0,o,{float:null,formatted:"",value:""}),U(a);return}var s=parseFloat(a.replace(L,".")),l=fh(fr({value:a},z));if(null!=i){var u=i+(l.length-e.length);K(u=u<=0?g?g.length:0:u),J(Q+1)}U(l),h&&h(a,o,{float:s,formatted:l,value:a})}};(0,Z.useEffect)(function(){q&&"-"!==H&&er&&"object"==typeof er&&er.current&&er.current.setSelectionRange(G,G)},[H,G,er,q,Q]);var eo=fr({type:"text",inputMode:"decimal",id:i,name:o,className:a,onChange:function(e){var t=e.target;ei(t.value,t.selectionStart),C&&C(e)},onBlur:function(e){var t=e.target.value,n=fc(fr({value:t},V));if("-"===n||!n){U(""),A&&A(e);return}var r=fb(fd(n,L,p),L,void 0!==v?v:p),i=parseFloat(r.replace(L,".")),a=fh(fr(fr({},z),{value:r}));h&&h(r,o,{float:i,formatted:a,value:r}),U(a),A&&A(e)},onFocus:function(e){return M&&M(e),H?H.length:0},onKeyDown:function(e){var t=e.key;if(en(t),x&&("ArrowUp"===t||"ArrowDown"===t)){e.preventDefault(),K(H.length);var n=parseFloat(null!=f?String(f).replace(L,"."):fc(fr({value:H},V)))||0,r="ArrowUp"===t?n+x:n-x;if(void 0!==w&&rE)return;var i=String(x).includes(".")?Number(String(x).split(".")[1].length):void 0;ei(String(i?r.toFixed(i):r).replace(".",L))}T&&T(e)},onKeyUp:function(e){var t=e.key,n=e.currentTarget.selectionStart;if("ArrowUp"!==t&&"ArrowDown"!==t&&"-"!==H){var r=ff(H,{groupSeparator:F,decimalSeparator:L});if(r&&n&&n>H.length-r.length&&er&&"object"==typeof er&&er.current){var i=H.length-r.length;er.current.setSelectionRange(i,i)}}P&&P(e)},placeholder:m,disabled:void 0!==c&&c,value:null==f||"-"===H||L&&H===L?H:fh(fr(fr({},z),{decimalScale:q?void 0:v,value:String(f)})),ref:er},R);return s?Z.createElement(s,fr({},eo)):Z.createElement("input",fr({},eo))});function fE(e){let{units:t,variant:n,size:r="small",state:i,noSpin:o,focus:a,cursor:s,className:l,decimalsLimit:u,onValueChange:c,...d}=e,[f,h]=(0,Z.useState)();return(0,Z.useEffect)(()=>{h(navigator.language)},[]),(0,D.jsxs)("div",{className:"relative",children:[(0,D.jsx)(fw,{...d,decimalsLimit:u,intlConfig:f?{locale:f}:void 0,allowDecimals:!!u,autoComplete:"off",spellCheck:!1,onValueChange:c,transformRawValue:e=>{if(e.length>0){if("."===e[0])return"0."+e.slice(1);if(","===e[0])return"0,"+e.slice(1)}return e},className:(0,eE.cx)(ft({variant:n,size:r,state:i,focus:a,noSpin:o,cursor:s,className:l}),t?"pr-9":"")}),t&&(0,D.jsx)("div",{className:(0,eE.cx)("flex items-center absolute top-0 h-full","small"===r?"right-2":"","medium"===r?"right-3":"","large"===r?"right-3":""),children:(0,D.jsx)(t7,{size:"12",weight:"medium",color:"subtle",children:t})})]})}fw.displayName="CurrencyInput";var fj=n(6391),fk=n.n(fj);function fS(e,t){return e.decimalPlaces()>t?e.toFixed(t):e.toString()}let fO=(0,Z.forwardRef)(function(e,t){let{value:n,placeholder:r=new(fk())(100),decimalsLimit:i=6,onChange:o,size:a="small",units:s,error:l,changed:u,onBlur:c,onFocus:d,...f}=e,h=(0,Z.useMemo)(()=>new(fk())(n),[n]),[p,m]=(0,Z.useState)(""),v=(0,Z.useMemo)(()=>f_(p),[p]),g=(0,Z.useCallback)(e=>{o&&o((e=f_(e))&&!isNaN(Number(e))?new(fk())(e):void 0)},[o]),y=(0,Z.useCallback)(e=>{m(e),g(e)},[m,g]);return(0,Z.useEffect)(()=>{if(!h.isEqualTo(v)){let e=fS(h,i);m(e)}},[h]),(0,D.jsx)(fE,{ref:t,...f,"data-testid":"numberfield",size:a,placeholder:r.isNaN()?"":fS(r,i),units:s,value:"NaN"!==p?p:"",decimalsLimit:i,onBlur:e=>{c&&c(e)},onFocus:e=>{d&&d(e)},onValueChange:e=>y(e||"")})});function f_(e){return(null==e?void 0:e.replace(/,/g,"."))||""}var fC=n(95753),fM=n(9455);let fA=new(fk())(0),fT=(0,Z.forwardRef)(function(e,t){let{sc:n,placeholder:r=new(fk())(100),decimalsLimitFiat:i=6,decimalsLimitSc:o=6,onChange:a,size:s="medium",units:l="SC",showFiat:u=!0,error:c,changed:d,prefix:f,onBlur:h,onFocus:p,...m}=e,v=(0,Z.useMemo)(()=>new(fk())(void 0===n?NaN:n),[n]),{settings:g}=(0,fC.Hv)(),y=(0,fM.BW)({config:{swr:{revalidateOnFocus:!1}}}),b=(0,Z.useMemo)(()=>{var e;return g.siaCentral&&y.data?new(fk())((null===(e=y.data)||void 0===e?void 0:e.rates.sc[g.currency.id])||fA):fA},[y.data,g]),[x,w]=(0,Z.useState)(),[E,j]=(0,Z.useState)(""),[k,S]=(0,Z.useState)(""),O=(0,Z.useMemo)(()=>fP(E),[E]),_=(0,Z.useMemo)(()=>fP(k),[k]),C=(0,Z.useCallback)(e=>{a&&a((e=fP(e))&&!isNaN(Number(e))?new(fk())(e):void 0)},[a]),M=(0,Z.useCallback)(e=>{let t=fS(e,i);S(t)},[S,i]),A=(0,Z.useCallback)(e=>{let t=fS(e,o);return j(t),C(t),t},[j,o,C]),T=(0,Z.useCallback)(e=>{j(e),C(e)},[j,C]),P=(0,Z.useCallback)(e=>{let t=new(fk())(e).times(b);M(t)},[M,b]),N=(0,Z.useCallback)(e=>{let t=new(fk())(e).dividedBy(b);A(t)},[A,b]),[R,L]=(0,Z.useState)(!1);return(0,Z.useEffect)(()=>{if(!v.isEqualTo(O)){let e=fS(v,o);j(e),"fiat"!==x&&P(e)}R||L(!0)},[v]),(0,Z.useEffect)(()=>{R&&P(O)},[b]),(0,Z.useEffect)(()=>{"sc"===x&&P(O)},[O]),(0,Z.useEffect)(()=>{"fiat"===x&&N(_)},[_]),(0,D.jsxs)("div",{ref:t,className:(0,eE.cx)("flex flex-col bg-white dark:bg-graydark-50","focus-within:ring ring-blue-500 dark:ring-blue-200","border",c?"border-red-500 dark:border-red-400":d?"border-green-500 dark:border-green-400":"border-gray-200 dark:border-graydark-200","rounded"),children:[(0,D.jsx)(fE,{...m,"data-testid":"scInput",size:s,variant:"ghost",focus:"none",placeholder:fS(r,o),units:l,value:"NaN"!==E?E:"",decimalsLimit:o,allowNegativeValue:!1,onBlur:e=>{w(void 0),h&&h(e)},onFocus:e=>{w("sc"),p&&p(e)},onValueChange:e=>{T(e||"")}}),u&&g.siaCentral&&(0,D.jsx)(fE,{...m,"data-testid":"fiatInput",size:s,variant:"ghost",focus:"none",value:"NaN"!==k?k:"",units:g.currency.label,decimalsLimit:i,allowNegativeValue:!1,placeholder:"".concat(g.currency.prefix).concat(b?b.times(r).toFixed(i):"0.42"),prefix:f||g.currency.prefix,onFocus:e=>{w("fiat"),p&&p(e)},onBlur:e=>{w(void 0),h&&h(e)},onValueChange:e=>{S(e||"")}})]})});function fP(e){return(null==e?void 0:e.replace(/,/g,"."))||""}function fN(e){let{children:t}=e;return(0,D.jsx)(lu,{content:t,children:(0,D.jsx)("div",{className:"relative items-center inline mx-1",children:(0,D.jsx)(t7,{color:"subtle",children:(0,D.jsx)(lf.RdX,{className:"scale-75"})})})})}function fR(e){let{values:t,options:n,onChange:r}=e;return(0,D.jsx)("div",{className:"flex flex-wrap gap-1",children:n.map(e=>(0,D.jsx)(ld,{variant:t.includes(e.value)?"active":"inactive",onClick:()=>{r(e.value)},children:e.label},e.value))})}let fD=(0,eE.j)(["font-sans","font-normal","tabular-nums","flex-shrink-0","rounded","flex items-center","bg-white dark:bg-graydark-200","hover:bg-gray-50 dark:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","autofill:bg-blue-100 autofill:dark:bg-blue-800","border","focus-within:z-10","focus-within:ring ring-blue-500 dark:ring-blue-200","text-gray-1100 dark:text-white","[&>select:disabled]:text-gray-600 [&>select:disabled]:dark:text-graydark-700"],{variants:{size:{small:"h-7 text-sm px-1",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]}},defaultVariants:{state:"default",size:"small"}}),fZ=Z.forwardRef((e,t)=>{let{size:n,state:r,icon:i,className:o,...a}=e;return(0,D.jsxs)("div",{className:fD({size:n,state:r,className:o}),children:[i,(0,D.jsx)("select",{ref:t,...a,className:"appearance-none flex-1 bg-transparent outline-none w-full h-full pl-1 pr-1"}),(0,D.jsx)(lf.Cp0,{className:"pointer-events-none scale-75"})]})}),fL=Z.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,D.jsx)("option",{ref:t,...r,className:(0,eE.cx)("bg-white dark:bg-graydark-200","text-gray-1100 dark:text-white",n)})}),fF=(0,eE.j)(["bg-gray-300 dark:bg-graydark-300","relative","overflow-hidden","animate-pulse","rounded"]);function fz(e){let{className:t}=e;return(0,D.jsx)("div",{className:fF({className:t})})}let fV=(0,eE.j)(["rounded-full flex-shrink-0"],{variants:{size:{default:"w-2 h-2"}},defaultVariants:{size:"default"}}),fI=Z.forwardRef((e,t)=>{let{size:n,className:r,...i}=e;return(0,D.jsx)("div",{ref:t,className:fV({size:n,className:r}),...i})}),fB="Switch",[fH,fU]=(0,z.b)(fB),[fW,fq]=fH(fB),f$=(0,Z.forwardRef)((e,t)=>{let{__scopeSwitch:n,"aria-labelledby":r,name:i,checked:o,defaultChecked:a,required:s,disabled:l,value:u="on",onCheckedChange:c,...d}=e,[f,h]=(0,Z.useState)(null),p=(0,V.e)(t,e=>h(e)),m=c6(f),v=(0,Z.useRef)(!1),g=!f||!!f.closest("form"),[y=!1,b]=(0,U.T)({prop:o,defaultProp:a,onChange:c});return(0,Z.createElement)(fW,{scope:n,checked:y,disabled:l},(0,Z.createElement)(W.WV.button,(0,F.Z)({type:"button",role:"switch","aria-checked":y,"aria-labelledby":r||m,"aria-required":s,"data-state":fK(y),"data-disabled":l?"":void 0,disabled:l,value:u},d,{ref:p,onClick:(0,H.M)(e.onClick,e=>{b(e=>!e),g&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})),g&&(0,Z.createElement)(fG,{control:f,bubbles:!v.current,name:i,value:u,checked:y,required:s,disabled:l,style:{transform:"translateX(-100%)"}}))}),fY=(0,Z.forwardRef)((e,t)=>{let{__scopeSwitch:n,...r}=e,i=fq("SwitchThumb",n);return(0,Z.createElement)(W.WV.span,(0,F.Z)({"data-state":fK(i.checked),"data-disabled":i.disabled?"":void 0},r,{ref:t}))}),fG=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,o=(0,Z.useRef)(null),a=dV(n),s=tg(t);return(0,Z.useEffect)(()=>{let e=o.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked"),s=i.set;if(a!==n&&s){let t=new Event("click",{bubbles:r});s.call(e,n),e.dispatchEvent(t)}},[a,n,r]),(0,Z.createElement)("input",(0,F.Z)({type:"checkbox","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function fK(e){return e?"checked":"unchecked"}let fX=(0,eE.j)(["absolute left-0 rounded-full","transition-transform","bg-white dark:bg-graydark-500"],{variants:{size:{small:["w-3 h-3","translate-x-px","data-[state=checked]:translate-x-[9px]"],medium:["w-5 h-5","translate-x-0.5","data-[state=checked]:translate-x-[20px]"]}},defaultVariants:{size:"small"}}),fQ=(0,eE.j)(["select-none outline-none","relative inline-flex items-center justify-center","m-0 rounded-full","focus:ring ring-blue-500 dark:ring-blue-200","border","bg-gray-300 dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","disabled:cursor-default","enabled:data-[state=checked]:bg-green-600 dark:enabled:data-[state=checked]:bg-green-500","disabled:data-[state=checked]:bg-green-600/50 dark:disabled:data-[state=checked]:bg-green-500/50"],{variants:{size:{small:"w-6 h-4",medium:"w-11 h-6"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]}},defaultVariants:{size:"small",state:"default"}}),fJ=(0,Z.forwardRef)((e,t)=>{let{size:n,state:r,className:i,children:o,...a}=e;return(0,D.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,D.jsx)(f$,{className:fQ({size:n,state:r,className:i}),...a,ref:t,children:(0,D.jsx)(fY,{className:fX({size:n})})}),o&&(0,D.jsx)(t7,{color:a.disabled?"subtle":"contrast",children:o})]})}),f0=(0,Z.forwardRef)((e,t)=>{let{children:n,...r}=e,i=Z.Children.toArray(n),o=i.find(f4);if(o){let e=o.props.children,n=i.map(t=>t!==o?t:Z.Children.count(e)>1?Z.Children.only(null):(0,Z.isValidElement)(e)?e.props.children:null);return(0,Z.createElement)(f1,(0,F.Z)({},r,{ref:t}),(0,Z.isValidElement)(e)?(0,Z.cloneElement)(e,void 0,n):null)}return(0,Z.createElement)(f1,(0,F.Z)({},r,{ref:t}),n)});f0.displayName="Slot";let f1=(0,Z.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,Z.isValidElement)(n)?(0,Z.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r],a=/^on[A-Z]/.test(r);a?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:(0,V.F)(t,n.ref)}):Z.Children.count(n)>1?Z.Children.only(null):null});f1.displayName="SlotClone";let f2=({children:e})=>(0,Z.createElement)(Z.Fragment,null,e);function f4(e){return(0,Z.isValidElement)(e)&&e.type===f2}let f3=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,Z.forwardRef)((e,n)=>{let{asChild:r,...i}=e,o=r?f0:t;return(0,Z.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,Z.createElement)(o,(0,F.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),f5=(0,Z.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,Z.createElement)(f3.svg,(0,F.Z)({},o,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,Z.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),f6="Popper",[f8,f7]=(0,z.b)(f6),[f9,he]=f8(f6),ht=(0,Z.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,o=he("PopperAnchor",n),a=(0,Z.useRef)(null),s=(0,V.e)(t,a);return(0,Z.useEffect)(()=>{o.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,Z.createElement)(f3.div,(0,F.Z)({},i,{ref:s}))}),hn="PopperContent",[hr,hi]=f8(hn),[ho,ha]=f8(hn,{hasParent:!1,positionUpdateFns:new Set}),hs=(0,Z.forwardRef)((e,t)=>{var n,r,i,o,a,s,l,u,c;let{__scopePopper:d,side:f="bottom",sideOffset:h=0,align:p="center",alignOffset:m=0,arrowPadding:v=0,collisionBoundary:g=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:x=!1,avoidCollisions:w=!0,onPlaced:E,...j}=e,k=he(hn,d),[S,O]=(0,Z.useState)(null),_=(0,V.e)(t,e=>O(e)),[C,M]=(0,Z.useState)(null),A=tg(C),T=null!==(n=null==A?void 0:A.width)&&void 0!==n?n:0,P=null!==(r=null==A?void 0:A.height)&&void 0!==r?r:0,N="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},R=Array.isArray(g)?g:[g],D=R.length>0,L={padding:N,boundary:R.filter(hc),altBoundary:D},{reference:F,floating:z,strategy:I,x:B,y:H,placement:U,middlewareData:W,update:$}=tp({strategy:"fixed",placement:f+("center"!==p?"-"+p:""),whileElementsMounted:tc,middleware:[hd(),eW({mainAxis:h+P,alignmentAxis:m}),w?e$({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?eY():void 0,...L}):void 0,C?tm({element:C,padding:v}):void 0,w?eI({...L}):void 0,{name:"size",options:c={...L,apply:({elements:e,availableWidth:t,availableHeight:n})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${n}px`)}},async fn(e){let t,n;let{placement:r,rects:i,platform:o,elements:a}=e,{apply:s,...l}=c,u=await eP(e,l),d=ek(r),f=eS(r);"top"===d||"bottom"===d?(t=d,n=f===(await (null==o.isRTL?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(n=d,t="end"===f?"top":"bottom");let h=eR(u.left,0),p=eR(u.right,0),m=eR(u.top,0),v=eR(u.bottom,0),g={availableHeight:i.floating.height-(["left","right"].includes(r)?2*(0!==m||0!==v?m+v:eR(u.top,u.bottom)):u[t]),availableWidth:i.floating.width-(["top","bottom"].includes(r)?2*(0!==h||0!==p?h+p:eR(u.left,u.right)):u[n])},y=await o.getDimensions(a.floating);null==s||s({...e,...g});let b=await o.getDimensions(a.floating);return y.width!==b.width||y.height!==b.height?{reset:{rects:!0}}:{}}},hf({arrowWidth:T,arrowHeight:P}),x?eU({strategy:"referenceHidden"}):void 0].filter(hu)});(0,q.b)(()=>{F(k.anchor)},[F,k.anchor]);let Y=null!==B&&null!==H,[G,K]=hh(U),X=(0,lm.W)(E);(0,q.b)(()=>{Y&&(null==X||X())},[Y,X]);let Q=null===(i=W.arrow)||void 0===i?void 0:i.x,J=null===(o=W.arrow)||void 0===o?void 0:o.y,ee=(null===(a=W.arrow)||void 0===a?void 0:a.centerOffset)!==0,[et,en]=(0,Z.useState)();(0,q.b)(()=>{S&&en(window.getComputedStyle(S).zIndex)},[S]);let{hasParent:er,positionUpdateFns:ei}=ha(hn,d),eo=!er;(0,Z.useLayoutEffect)(()=>{if(!eo)return ei.add($),()=>{ei.delete($)}},[eo,ei,$]),(0,q.b)(()=>{eo&&Y&&Array.from(ei).reverse().forEach(e=>requestAnimationFrame(e))},[eo,Y,ei]);let ea={"data-side":G,"data-align":K,...j,ref:_,style:{...j.style,animation:Y?void 0:"none",opacity:null!==(s=W.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,Z.createElement)("div",{ref:z,"data-radix-popper-content-wrapper":"",style:{position:I,left:0,top:0,transform:Y?`translate3d(${Math.round(B)}px, ${Math.round(H)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:et,"--radix-popper-transform-origin":[null===(l=W.transformOrigin)||void 0===l?void 0:l.x,null===(u=W.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},(0,Z.createElement)(hr,{scope:d,placedSide:G,onArrowChange:M,arrowX:Q,arrowY:J,shouldHideArrow:ee},eo?(0,Z.createElement)(ho,{scope:d,hasParent:!0,positionUpdateFns:ei},(0,Z.createElement)(f3.div,ea)):(0,Z.createElement)(f3.div,ea)))}),hl={top:"bottom",right:"left",bottom:"top",left:"right"};function hu(e){return void 0!==e}function hc(e){return null!==e}let hd=()=>({name:"anchorCssProperties",fn(e){let{rects:t,elements:n}=e,{width:r,height:i}=t.reference;return n.floating.style.setProperty("--radix-popper-anchor-width",`${r}px`),n.floating.style.setProperty("--radix-popper-anchor-height",`${i}px`),{}}}),hf=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=hh(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(r=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+d/2,g=(null!==(o=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==o?o:0)+f/2,y="",b="";return"bottom"===h?(y=c?m:`${v}px`,b=`${-f}px`):"top"===h?(y=c?m:`${v}px`,b=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,b=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,b=c?m:`${g}px`),{data:{x:y,y:b}}}});function hh(e){let[t,n="center"]=e.split("-");return[t,n]}let hp=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,Z.useState)(null);return(0,Z.createElement)(f9,{scope:t,anchor:r,onAnchorChange:i},n)},hm=(0,Z.forwardRef)((e,t)=>{var n;let{container:r=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...i}=e;return r?tf.createPortal((0,Z.createElement)(f3.div,(0,F.Z)({},i,{ref:t})),r):null}),hv="dismissableLayer.update",hg=(0,Z.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hy=(0,Z.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,Z.useContext)(hg),[f,h]=(0,Z.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,Z.useState)({}),v=(0,V.e)(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),x=f?g.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,E=x>=b,j=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,lm.W)(e),r=(0,Z.useRef)(!1),i=(0,Z.useRef)(()=>{});return(0,Z.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function o(){hx("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=o,t.addEventListener("click",i.current,{once:!0})):o()}r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));!E||n||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),k=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,lm.W)(e),r=(0,Z.useRef)(!1);return(0,Z.useEffect)(()=>{let e=e=>{e.target&&!r.current&&hx("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));n||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==u||u())},p);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,lm.W)(e);(0,Z.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{let t=x===d.layers.size-1;t&&(null==o||o(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,Z.useEffect)(()=>{if(f)return i&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(r=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),hb(),()=>{i&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=r)}},[f,p,i,d]),(0,Z.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),hb())},[f,d]),(0,Z.useEffect)(()=>{let e=()=>m({});return document.addEventListener(hv,e),()=>document.removeEventListener(hv,e)},[]),(0,Z.createElement)(f3.div,(0,F.Z)({},c,{ref:v,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:(0,H.M)(e.onFocusCapture,k.onFocusCapture),onBlurCapture:(0,H.M)(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:(0,H.M)(e.onPointerDownCapture,j.onPointerDownCapture)}))});function hb(){let e=new CustomEvent(hv);document.dispatchEvent(e)}function hx(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&i.addEventListener(e,t,{once:!0}),r)?i&&(0,tf.flushSync)(()=>i.dispatchEvent(o)):i.dispatchEvent(o)}let hw="HoverCard",[hE,hj]=(0,z.b)(hw,[f7]),hk=f7(),[hS,hO]=hE(hw),h_=(0,Z.forwardRef)((e,t)=>{let{__scopeHoverCard:n,...r}=e,i=hO("HoverCardTrigger",n),o=hk(n);return(0,Z.createElement)(ht,(0,F.Z)({asChild:!0},o),(0,Z.createElement)(f3.a,(0,F.Z)({"data-state":i.open?"open":"closed"},r,{ref:t,onPointerEnter:(0,H.M)(e.onPointerEnter,hR(i.onOpen)),onPointerLeave:(0,H.M)(e.onPointerLeave,hR(i.onClose)),onFocus:(0,H.M)(e.onFocus,i.onOpen),onBlur:(0,H.M)(e.onBlur,i.onClose),onTouchStart:(0,H.M)(e.onTouchStart,e=>e.preventDefault())})))}),hC="HoverCardPortal",[hM,hA]=hE(hC,{forceMount:void 0}),hT="HoverCardContent",hP=(0,Z.forwardRef)((e,t)=>{let n=hA(hT,e.__scopeHoverCard),{forceMount:r=n.forceMount,...i}=e,o=hO(hT,e.__scopeHoverCard);return(0,Z.createElement)($.z,{present:r||o.open},(0,Z.createElement)(hN,(0,F.Z)({"data-state":o.open?"open":"closed"},i,{onPointerEnter:(0,H.M)(e.onPointerEnter,hR(o.onOpen)),onPointerLeave:(0,H.M)(e.onPointerLeave,hR(o.onClose)),ref:t})))}),hN=(0,Z.forwardRef)((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,...l}=e,u=hO(hT,n),c=hk(n),d=(0,Z.useRef)(null),f=(0,V.e)(t,d),[h,p]=(0,Z.useState)(!1);return(0,Z.useEffect)(()=>{if(h){let e=document.body;return i=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=i,e.style.webkitUserSelect=i}}},[h]),(0,Z.useEffect)(()=>{if(d.current){let e=()=>{p(!1),u.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;let t=(null===(e=document.getSelection())||void 0===e?void 0:e.toString())!=="";t&&(u.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!1}}},[u.isPointerDownOnContentRef,u.hasSelectionRef]),(0,Z.useEffect)(()=>{if(d.current){let e=function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}(d.current);e.forEach(e=>e.setAttribute("tabindex","-1"))}}),(0,Z.createElement)(hy,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:s,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:(0,H.M)(a,e=>{e.preventDefault()}),onDismiss:u.onDismiss},(0,Z.createElement)(hs,(0,F.Z)({},c,l,{onPointerDown:(0,H.M)(l.onPointerDown,e=>{e.currentTarget.contains(e.target)&&p(!0),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!0}),ref:f,style:{...l.style,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)",userSelect:h?"text":void 0,WebkitUserSelect:h?"text":void 0}})))});function hR(e){return t=>"touch"===t.pointerType?void 0:e()}let hD=e=>{let{__scopeHoverCard:t,children:n,open:r,defaultOpen:i,onOpenChange:o,openDelay:a=700,closeDelay:s=300}=e,l=hk(t),u=(0,Z.useRef)(0),c=(0,Z.useRef)(0),d=(0,Z.useRef)(!1),f=(0,Z.useRef)(!1),[h=!1,p]=(0,U.T)({prop:r,defaultProp:i,onChange:o}),m=(0,Z.useCallback)(()=>{clearTimeout(c.current),u.current=window.setTimeout(()=>p(!0),a)},[a,p]),v=(0,Z.useCallback)(()=>{clearTimeout(u.current),d.current||f.current||(c.current=window.setTimeout(()=>p(!1),s))},[s,p]),g=(0,Z.useCallback)(()=>p(!1),[p]);return(0,Z.useEffect)(()=>()=>{clearTimeout(u.current),clearTimeout(c.current)},[]),(0,Z.createElement)(hS,{scope:t,open:h,onOpenChange:p,onOpen:m,onClose:v,onDismiss:g,hasSelectionRef:d,isPointerDownOnContentRef:f},(0,Z.createElement)(hp,l,n))},hZ=e=>{let{__scopeHoverCard:t,forceMount:n,children:r,container:i}=e,o=hO(hC,t);return(0,Z.createElement)(hM,{scope:t,forceMount:n},(0,Z.createElement)($.z,{present:n||o.open},(0,Z.createElement)(hm,{asChild:!0,container:i},r)))},hL=(0,eE.j)(["relative","z-10","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),hF=(0,eE.cx)(ne(),"max-w-sm","py-0.5","px-1"),hz={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},hV=Z.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o}=e,{className:a,...s}=o||{},{open:l,onOpenChange:u}=ls({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,D.jsxs)(hD,{open:l,onOpenChange:u,...i,children:[n&&(0,D.jsx)(h_,{asChild:!0,children:n}),(0,D.jsx)(nR,{children:l?(0,D.jsx)(hZ,{forceMount:!0,children:(0,D.jsx)(hP,{asChild:!0,forceMount:!0,ref:t,...s,children:(0,D.jsx)(la.div,{variants:hz,initial:"init",animate:"show",exit:"exit",className:hL(),children:(0,D.jsx)("div",{className:(0,eE.cx)(hF,a),children:r})})})}):null})]})});function hI(e,t=[]){let n=[],r=()=>{let t=n.map(e=>(0,Z.createContext)(e));return function(n){let r=(null==n?void 0:n[e])||t;return(0,Z.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=(0,Z.createContext)(r),o=n.length;function a(t){let{scope:n,children:r,...a}=t,s=(null==n?void 0:n[e][o])||i,l=(0,Z.useMemo)(()=>a,Object.values(a));return(0,Z.createElement)(s.Provider,{value:l},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){let s=(null==a?void 0:a[e][o])||i,l=(0,Z.useContext)(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e),o=i[`__scope${r}`];return{...t,...o}},{});return(0,Z.useMemo)(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}function hB(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function hH(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function hU(...e){return(0,Z.useCallback)(hH(...e),e)}let hW=(0,Z.forwardRef)((e,t)=>{let{children:n,...r}=e,i=Z.Children.toArray(n),o=i.find(hY);if(o){let e=o.props.children,n=i.map(t=>t!==o?t:Z.Children.count(e)>1?Z.Children.only(null):(0,Z.isValidElement)(e)?e.props.children:null);return(0,Z.createElement)(hq,(0,F.Z)({},r,{ref:t}),(0,Z.isValidElement)(e)?(0,Z.cloneElement)(e,void 0,n):null)}return(0,Z.createElement)(hq,(0,F.Z)({},r,{ref:t}),n)});hW.displayName="Slot";let hq=(0,Z.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,Z.isValidElement)(n)?(0,Z.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r],a=/^on[A-Z]/.test(r);a?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:t?hH(t,n.ref):n.ref}):Z.Children.count(n)>1?Z.Children.only(null):null});hq.displayName="SlotClone";let h$=({children:e})=>(0,Z.createElement)(Z.Fragment,null,e);function hY(e){return(0,Z.isValidElement)(e)&&e.type===h$}let hG=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,Z.forwardRef)((e,n)=>{let{asChild:r,...i}=e,o=r?hW:t;return(0,Z.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,Z.createElement)(o,(0,F.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function hK(e){let t=(0,Z.useRef)(e);return(0,Z.useEffect)(()=>{t.current=e}),(0,Z.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}let hX=(null==globalThis?void 0:globalThis.document)?Z.useLayoutEffect:()=>{},hQ=e=>{let{present:t,children:n}=e,r=function(e){var t;let[n,r]=(0,Z.useState)(),i=(0,Z.useRef)({}),o=(0,Z.useRef)(e),a=(0,Z.useRef)("none"),s=e?"mounted":"unmounted",[l,u]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,Z.useReducer)((e,n)=>{let r=t[e][n];return null!=r?r:e},s));return(0,Z.useEffect)(()=>{let e=hJ(i.current);a.current="mounted"===l?e:"none"},[l]),hX(()=>{let t=i.current,n=o.current,r=n!==e;if(r){let r=a.current,i=hJ(t);e?u("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?u("UNMOUNT"):n&&r!==i?u("ANIMATION_OUT"):u("UNMOUNT"),o.current=e}},[e,u]),hX(()=>{if(n){let e=e=>{let t=hJ(i.current),r=t.includes(e.animationName);e.target===n&&r&&(0,tf.flushSync)(()=>u("ANIMATION_END"))},t=e=>{e.target===n&&(a.current=hJ(i.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}u("ANIMATION_END")},[n,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,Z.useCallback)(e=>{e&&(i.current=getComputedStyle(e)),r(e)},[])}}(t),i="function"==typeof n?n({present:r.isPresent}):Z.Children.only(n),o=hU(r.ref,i.ref),a="function"==typeof n;return a||r.isPresent?(0,Z.cloneElement)(i,{ref:o}):null};function hJ(e){return(null==e?void 0:e.animationName)||"none"}hQ.displayName="Presence";let h0=L["useId".toString()]||(()=>void 0),h1=0;function h2(e){let t=e+"CollectionProvider",[n,r]=hI(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=Z.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(a,n),s=hU(t,i.collectionRef);return Z.createElement(hW,{ref:s},r)}),l=e+"CollectionItemSlot",u="data-radix-collection-item",c=Z.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=Z.useRef(null),s=hU(t,a),c=o(l,n);return Z.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),Z.createElement(hW,{[u]:"",ref:s},r)});return[{Provider:e=>{let{scope:t,children:n}=e,r=Z.useRef(null),o=Z.useRef(new Map).current;return Z.createElement(i,{scope:t,itemMap:o,collectionRef:r},n)},Slot:s,ItemSlot:c},function(t){let n=o(e+"CollectionConsumer",t),r=Z.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()),i=r.sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return i},[n.collectionRef,n.itemMap]);return r},r]}let h4="dismissableLayer.update",h3=(0,Z.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),h5=(0,Z.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,Z.useContext)(h3),[f,h]=(0,Z.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,Z.useState)({}),v=hU(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),x=f?g.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,E=x>=b,j=function(e,t=null==globalThis?void 0:globalThis.document){let n=hK(e),r=(0,Z.useRef)(!1),i=(0,Z.useRef)(()=>{});return(0,Z.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function o(){h8("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=o,t.addEventListener("click",i.current,{once:!0})):o()}r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));!E||n||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),k=function(e,t=null==globalThis?void 0:globalThis.document){let n=hK(e),r=(0,Z.useRef)(!1);return(0,Z.useEffect)(()=>{let e=e=>{e.target&&!r.current&&h8("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));n||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==u||u())},p);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=hK(e);(0,Z.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{let t=x===d.layers.size-1;t&&(null==i||i(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,Z.useEffect)(()=>{if(f)return r&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(o=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),h6(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=o)}},[f,p,r,d]),(0,Z.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),h6())},[f,d]),(0,Z.useEffect)(()=>{let e=()=>m({});return document.addEventListener(h4,e),()=>document.removeEventListener(h4,e)},[]),(0,Z.createElement)(hG.div,(0,F.Z)({},c,{ref:v,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:hB(e.onFocusCapture,k.onFocusCapture),onBlurCapture:hB(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:hB(e.onPointerDownCapture,j.onPointerDownCapture)}))});function h6(){let e=new CustomEvent(h4);document.dispatchEvent(e)}function h8(e,t,n,{discrete:r}){var i,o;let a=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?(i=a,o=s,i&&(0,tf.flushSync)(()=>i.dispatchEvent(o))):a.dispatchEvent(s)}(e,t)=>(0,Z.createElement)(hG.span,(0,F.Z)({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));let h7="NavigationMenu",[h9,pe,pt]=h2(h7),[pn,pr,pi]=h2(h7),[po,pa]=hI(h7,[pt,pi]),[ps,pl]=po(h7),[pu,pc]=po(h7),[pd,pf]=po("NavigationMenuItem"),ph=((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pl("NavigationMenuIndicator",n),o=pe(n),[a,s]=(0,Z.useState)(null),[l,u]=(0,Z.useState)(null),c="horizontal"===i.orientation,d=!!i.value;(0,Z.useEffect)(()=>{var e;let t=o(),n=null===(e=t.find(e=>e.value===i.value))||void 0===e?void 0:e.ref.current;n&&s(n)},[o,i.value]);let f=()=>{a&&u({size:c?a.offsetWidth:a.offsetHeight,offset:c?a.offsetLeft:a.offsetTop})};return pb(a,f),pb(i.indicatorTrack,f),l?(0,Z.createElement)(hG.div,(0,F.Z)({"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":i.orientation},r,{ref:t,style:{position:"absolute",...c?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}})):null},"NavigationMenuContent"),pp=((e,t)=>{let n=pl(ph,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:i}=n;return hX(()=>{r(e.value,{ref:t,...e})},[e,t,r]),hX(()=>()=>i(e.value),[e.value,i]),null},"navigationMenu.rootContentDismiss"),pm=(0,Z.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,value:r,triggerRef:i,focusProxyRef:o,wasEscapeCloseRef:a,onRootContentClose:s,onContentFocusOutside:l,...u}=e,c=pl(ph,n),d=(0,Z.useRef)(null),f=hU(d,t),h=function(e,t){return`${e}-trigger-${t}`}(c.baseId,r),p=function(e,t){return`${e}-content-${t}`}(c.baseId,r),m=pe(n),v=(0,Z.useRef)(null),{onItemDismiss:g}=c;(0,Z.useEffect)(()=>{let e=d.current;if(c.isRootMenu&&e){let t=()=>{var t;g(),s(),e.contains(document.activeElement)&&(null===(t=i.current)||void 0===t||t.focus())};return e.addEventListener(pp,t),()=>e.removeEventListener(pp,t)}},[c.isRootMenu,e.value,i,g,s]);let y=(0,Z.useMemo)(()=>{let e=m(),t=e.map(e=>e.value);"rtl"===c.dir&&t.reverse();let n=t.indexOf(c.value),i=t.indexOf(c.previousValue),o=r===c.value,a=i===t.indexOf(r);if(!o&&!a)return v.current;let s=(()=>{if(n!==i){if(o&&-1!==i)return n>i?"from-end":"from-start";if(a&&-1!==n)return n>i?"to-start":"to-end"}return null})();return v.current=s,s},[c.previousValue,c.value,c.dir,m,r]);return(0,Z.createElement)(pv,{asChild:!0},(0,Z.createElement)(h5,(0,F.Z)({id:p,"aria-labelledby":h,"data-motion":y,"data-orientation":c.orientation},u,{ref:f,onDismiss:()=>{var e;let t=new Event(pp,{bubbles:!0,cancelable:!0});null===(e=d.current)||void 0===e||e.dispatchEvent(t)},onFocusOutside:hB(e.onFocusOutside,e=>{var t;l();let n=e.target;null!==(t=c.rootNavigationMenu)&&void 0!==t&&t.contains(n)&&e.preventDefault()}),onPointerDownOutside:hB(e.onPointerDownOutside,e=>{var t;let n=e.target,r=m().some(e=>{var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(n)}),i=c.isRootMenu&&(null===(t=c.viewport)||void 0===t?void 0:t.contains(n));(r||i||!c.isRootMenu)&&e.preventDefault()}),onKeyDown:hB(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey,n="Tab"===e.key&&!t;if(n){let t=function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}(e.currentTarget),n=document.activeElement,i=t.findIndex(e=>e===n),a=e.shiftKey,s=a?t.slice(0,i).reverse():t.slice(i+1,t.length);if(py(s))e.preventDefault();else{var r;null===(r=o.current)||void 0===r||r.focus()}}}),onEscapeKeyDown:hB(e.onEscapeKeyDown,e=>{a.current=!0})})))}),pv=((e,t)=>{let{__scopeNavigationMenu:n,children:r,...i}=e,o=pl("NavigationMenuViewport",n),a=hU(t,o.onViewportChange),s=pc(ph,e.__scopeNavigationMenu),[l,u]=(0,Z.useState)(null),[c,d]=(0,Z.useState)(null),f=l?(null==l?void 0:l.width)+"px":void 0,h=l?(null==l?void 0:l.height)+"px":void 0,p=!!o.value,m=p?o.value:o.previousValue;return pb(c,()=>{c&&u({width:c.offsetWidth,height:c.offsetHeight})}),(0,Z.createElement)(hG.div,(0,F.Z)({"data-state":function(e){return e?"open":"closed"}(p),"data-orientation":o.orientation},i,{ref:a,style:{pointerEvents:!p&&o.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":f,"--radix-navigation-menu-viewport-height":h,...i.style},onPointerEnter:hB(e.onPointerEnter,o.onContentEnter),onPointerLeave:hB(e.onPointerLeave,function(e){return t=>"mouse"===t.pointerType?e(t):void 0}(o.onContentLeave))}),Array.from(s.items).map(([e,{ref:t,forceMount:n,...r}])=>{let i=m===e;return(0,Z.createElement)(hQ,{key:e,present:n||i},(0,Z.createElement)(pm,(0,F.Z)({},r,{ref:hH(t,e=>{i&&e&&d(e)})})))}))},(0,Z.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pl("FocusGroup",n);return(0,Z.createElement)(pn.Provider,{scope:n},(0,Z.createElement)(pn.Slot,{scope:n},(0,Z.createElement)(hG.div,(0,F.Z)({dir:i.dir},r,{ref:t}))))})),pg=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"];(e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pr(n),o=pl("FocusGroupItem",n);return(0,Z.createElement)(pn.ItemSlot,{scope:n},(0,Z.createElement)(hG.button,(0,F.Z)({},r,{ref:t,onKeyDown:hB(e.onKeyDown,e=>{let t=["Home","End",...pg].includes(e.key);if(t){let t=i().map(e=>e.ref.current),n="rtl"===o.dir?"ArrowRight":"ArrowLeft";if([n,"ArrowUp","End"].includes(e.key)&&t.reverse(),pg.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>py(t)),e.preventDefault()}})})))};function py(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function pb(e,t){let n=hK(t);hX(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var px=n(38617);let pw=Z.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,D.jsx)(d5,{...r,ref:t,className:(0,eE.cx)("select-none flex items-center rounded cursor-pointer","focus:ring ring-blue-500 dark:ring-blue-200","text-gray-700 dark:text-graydark-700","data-[state=checked]:text-gray-1100 data-[state=checked]:dark:text-white",n)})});function pE(e){let{className:t,tooltipClassName:n,tabIndex:r}=e,{theme:i,setTheme:o}=(0,px.F)();return(0,D.jsxs)(d3,{value:i,tabIndex:r,className:(0,eE.cx)("flex gap-4",t),onValueChange:e=>o(e),children:[(0,D.jsx)(pw,{value:"system",children:(0,D.jsx)(lu,{className:n,sideOffset:16,content:"System",children:(0,D.jsx)(lf.$Iz,{})})}),(0,D.jsx)(pw,{value:"light",children:(0,D.jsx)(lu,{className:n,sideOffset:16,content:"Light",children:(0,D.jsx)(lf.JaG,{})})}),(0,D.jsx)(pw,{value:"dark",children:(0,D.jsx)(lu,{className:n,sideOffset:16,content:"Dark",children:(0,D.jsx)(lf.osk,{})})})]})}var pj=n(13980),pk=n.n(pj),pS=n(22970),pO=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function p_(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=pO.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var pC=[".DS_Store","Thumbs.db"];function pM(e){return"object"==typeof e&&null!==e}function pA(e){return e.filter(function(e){return -1===pC.indexOf(e.name)})}function pT(e){if(null===e)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);nn)return[!1,pW(n)];if(e.sizen)return[!1,pW(n)]}return[!0,null]}function pK(e){return null!=e}function pX(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function pQ(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(e){return"Files"===e||"application/x-moz-file"===e}):!!e.target&&!!e.target.files}function pJ(e){e.preventDefault()}function p0(){for(var e=arguments.length,t=Array(e),n=0;n1?n-1:0),i=1;ie.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var mi=(0,Z.forwardRef)(function(e,t){var n=e.children,r=ms(mr(e,p4)),i=r.open,o=mr(r,p3);return(0,Z.useImperativeHandle)(t,function(){return{open:i}},[i]),Z.createElement(Z.Fragment,null,n(mt(mt({},o),{},{open:i})))});mi.displayName="Dropzone";var mo={disabled:!1,getFilesFromEvent:function(e){return(0,pS.mG)(this,void 0,void 0,function(){return(0,pS.Jh)(this,function(t){return pM(e)&&pM(e.dataTransfer)?[2,function(e,t){return(0,pS.mG)(this,void 0,void 0,function(){var n;return(0,pS.Jh)(this,function(r){switch(r.label){case 0:if(!e.items)return[3,2];if(n=pT(e.items).filter(function(e){return"file"===e.kind}),"drop"!==t)return[2,n];return[4,Promise.all(n.map(pP))];case 1:return[2,pA(function e(t){return t.reduce(function(t,n){return(0,pS.ev)((0,pS.ev)([],(0,pS.CR)(t),!1),(0,pS.CR)(Array.isArray(n)?e(n):[n]),!1)},[])}(r.sent()))];case 2:return[2,pA(pT(e.files).map(function(e){return p_(e)}))]}})})}(e.dataTransfer,e.type)]:pM(e)&&pM(e.target)?[2,pT(e.target.files).map(function(e){return p_(e)})]:Array.isArray(e)&&e.every(function(e){return"getFile"in e&&"function"==typeof e.getFile})?[2,function(e){return(0,pS.mG)(this,void 0,void 0,function(){return(0,pS.Jh)(this,function(t){switch(t.label){case 0:return[4,Promise.all(e.map(function(e){return e.getFile()}))];case 1:return[2,t.sent().map(function(e){return p_(e)})]}})})}(e)]:[2,[]]})})},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};mi.defaultProps=mo,mi.propTypes={children:pk().func,accept:pk().objectOf(pk().arrayOf(pk().string)),multiple:pk().bool,preventDropOnDocument:pk().bool,noClick:pk().bool,noKeyboard:pk().bool,noDrag:pk().bool,noDragEventsBubbling:pk().bool,minSize:pk().number,maxSize:pk().number,maxFiles:pk().number,disabled:pk().bool,getFilesFromEvent:pk().func,onFileDialogCancel:pk().func,onFileDialogOpen:pk().func,useFsAccessApi:pk().bool,autoFocus:pk().bool,onDragEnter:pk().func,onDragLeave:pk().func,onDragOver:pk().func,onDrop:pk().func,onDropAccepted:pk().func,onDropRejected:pk().func,onError:pk().func,validator:pk().func};var ma={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function ms(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=mt(mt({},mo),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,u=t.onDragEnter,c=t.onDragLeave,d=t.onDragOver,f=t.onDrop,h=t.onDropAccepted,p=t.onDropRejected,m=t.onFileDialogCancel,v=t.onFileDialogOpen,g=t.useFsAccessApi,y=t.autoFocus,b=t.preventDropOnDocument,x=t.noClick,w=t.noKeyboard,E=t.noDrag,j=t.noDragEventsBubbling,k=t.onError,S=t.validator,O=(0,Z.useMemo)(function(){return function(e){if(pK(e))return Object.entries(e).reduce(function(e,t){var n=pI(t,2),r=n[0],i=n[1];return[].concat(pL(e),[r],pL(i))},[]).filter(function(e){return p1(e)||p2(e)}).join(",")}(n)},[n]),_=(0,Z.useMemo)(function(){return pK(n)?[{description:"Files",accept:Object.entries(n).filter(function(e){var t=pI(e,2),n=t[0],r=t[1],i=!0;return p1(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),i=!1),Array.isArray(r)&&r.every(p2)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),i=!1),i}).reduce(function(e,t){var n=pI(t,2),r=n[0],i=n[1];return pz(pz({},e),{},pV({},r,i))},{})}]:n},[n]),C=(0,Z.useMemo)(function(){return"function"==typeof v?v:mu},[v]),M=(0,Z.useMemo)(function(){return"function"==typeof m?m:mu},[m]),A=(0,Z.useRef)(null),T=(0,Z.useRef)(null),P=p8((0,Z.useReducer)(ml,ma),2),N=P[0],R=P[1],D=N.isFocused,L=N.isFileDialogActive,F=(0,Z.useRef)("undefined"!=typeof window&&window.isSecureContext&&g&&"showOpenFilePicker"in window),z=function(){!F.current&&L&&setTimeout(function(){T.current&&!T.current.files.length&&(R({type:"closeDialog"}),M())},300)};(0,Z.useEffect)(function(){return window.addEventListener("focus",z,!1),function(){window.removeEventListener("focus",z,!1)}},[T,L,M,F]);var V=(0,Z.useRef)([]),I=function(e){A.current&&A.current.contains(e.target)||(e.preventDefault(),V.current=[])};(0,Z.useEffect)(function(){return b&&(document.addEventListener("dragover",pJ,!1),document.addEventListener("drop",I,!1)),function(){b&&(document.removeEventListener("dragover",pJ),document.removeEventListener("drop",I))}},[A,b]),(0,Z.useEffect)(function(){return!r&&y&&A.current&&A.current.focus(),function(){}},[A,y,r]);var B=(0,Z.useCallback)(function(e){k?k(e):console.error(e)},[k]),H=(0,Z.useCallback)(function(e){var t;e.preventDefault(),e.persist(),en(e),V.current=[].concat(function(e){if(Array.isArray(e))return p9(e)}(t=V.current)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||p7(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e.target]),pQ(e)&&Promise.resolve(i(e)).then(function(t){if(!pX(e)||j){var n,r,i,c,d,f,h,p,m=t.length,v=m>0&&(r=(n={files:t,accept:O,minSize:a,maxSize:o,multiple:s,maxFiles:l,validator:S}).files,i=n.accept,c=n.minSize,d=n.maxSize,f=n.multiple,h=n.maxFiles,p=n.validator,(!!f||!(r.length>1))&&(!f||!(h>=1)||!(r.length>h))&&r.every(function(e){var t=pI(pY(e,i),1)[0],n=pI(pG(e,c,d),1)[0],r=p?p(e):null;return t&&n&&!r}));R({isDragAccept:v,isDragReject:m>0&&!v,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}}).catch(function(e){return B(e)})},[i,u,B,j,O,a,o,s,l,S]),U=(0,Z.useCallback)(function(e){e.preventDefault(),e.persist(),en(e);var t=pQ(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&d&&d(e),!1},[d,j]),W=(0,Z.useCallback)(function(e){e.preventDefault(),e.persist(),en(e);var t=V.current.filter(function(e){return A.current&&A.current.contains(e)}),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),V.current=t,!(t.length>0)&&(R({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),pQ(e)&&c&&c(e))},[A,c,j]),q=(0,Z.useCallback)(function(e,t){var n=[],r=[];e.forEach(function(e){var t=p8(pY(e,O),2),i=t[0],s=t[1],l=p8(pG(e,a,o),2),u=l[0],c=l[1],d=S?S(e):null;if(i&&u&&!d)n.push(e);else{var f=[s,c];d&&(f=f.concat(d)),r.push({file:e,errors:f.filter(function(e){return e})})}}),(!s&&n.length>1||s&&l>=1&&n.length>l)&&(n.forEach(function(e){r.push({file:e,errors:[p$]})}),n.splice(0)),R({acceptedFiles:n,fileRejections:r,type:"setFiles"}),f&&f(n,r,t),r.length>0&&p&&p(r,t),n.length>0&&h&&h(n,t)},[R,s,O,a,o,l,f,h,p,S]),$=(0,Z.useCallback)(function(e){e.preventDefault(),e.persist(),en(e),V.current=[],pQ(e)&&Promise.resolve(i(e)).then(function(t){(!pX(e)||j)&&q(t,e)}).catch(function(e){return B(e)}),R({type:"reset"})},[i,q,B,j]),Y=(0,Z.useCallback)(function(){if(F.current){R({type:"openDialog"}),C(),window.showOpenFilePicker({multiple:s,types:_}).then(function(e){return i(e)}).then(function(e){q(e,null),R({type:"closeDialog"})}).catch(function(e){e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)?(M(e),R({type:"closeDialog"})):e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)?(F.current=!1,T.current?(T.current.value=null,T.current.click()):B(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):B(e)});return}T.current&&(R({type:"openDialog"}),C(),T.current.value=null,T.current.click())},[R,C,M,g,q,B,_,s]),G=(0,Z.useCallback)(function(e){A.current&&A.current.isEqualNode(e.target)&&(" "===e.key||"Enter"===e.key||32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),Y())},[A,Y]),K=(0,Z.useCallback)(function(){R({type:"focus"})},[]),X=(0,Z.useCallback)(function(){R({type:"blur"})},[]),Q=(0,Z.useCallback)(function(){x||(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return -1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/")}()?setTimeout(Y,0):Y())},[x,Y]),J=function(e){return r?null:e},ee=function(e){return w?null:J(e)},et=function(e){return E?null:J(e)},en=function(e){j&&e.stopPropagation()},er=(0,Z.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,i=e.role,o=e.onKeyDown,a=e.onFocus,s=e.onBlur,l=e.onClick,u=e.onDragEnter,c=e.onDragOver,d=e.onDragLeave,f=e.onDrop,h=mr(e,p5);return mt(mt(mn({onKeyDown:ee(p0(o,G)),onFocus:ee(p0(a,K)),onBlur:ee(p0(s,X)),onClick:J(p0(l,Q)),onDragEnter:et(p0(u,H)),onDragOver:et(p0(c,U)),onDragLeave:et(p0(d,W)),onDrop:et(p0(f,$)),role:"string"==typeof i&&""!==i?i:"presentation"},n,A),r||w?{}:{tabIndex:0}),h)}},[A,G,K,X,Q,H,U,W,$,w,E,r]),ei=(0,Z.useCallback)(function(e){e.stopPropagation()},[]),eo=(0,Z.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,i=e.onClick,o=mr(e,p6);return mt(mt({},mn({accept:O,multiple:s,type:"file",style:{display:"none"},onChange:J(p0(r,$)),onClick:J(p0(i,ei)),tabIndex:-1},n,T)),o)}},[T,n,s,$,r]);return mt(mt({},N),{},{isFocused:D&&!r,getRootProps:er,getInputProps:eo,rootRef:A,inputRef:T,open:J(Y)})}function ml(e,t){switch(t.type){case"focus":return mt(mt({},e),{},{isFocused:!0});case"blur":return mt(mt({},e),{},{isFocused:!1});case"openDialog":return mt(mt({},ma),{},{isFileDialogActive:!0});case"closeDialog":return mt(mt({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return mt(mt({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return mt(mt({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return mt({},ma);default:return e}}function mu(){}let{useDropzone:mc}=R;var md=n(14582),mf=n(63739),mh=n(72779),mp=n.n(mh),mm=n(47440),mv=n(59309),mg=n(19067),my=n(71220),mb=n(28142);function mx(e){return"bandwidth"in e?e.bandwidth():0}var mw=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function mE(){return(mE=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mw),g=null!=m?m:(0,my.Z)(r,void 0===f?10:f),y=(null!=p?p:0)+mx(r)/2,b=g.map(function(e,t){var n,o=(null!=(n=(0,mb.Z)(r(e)))?n:0)+y;return{index:t,from:new mg.Z({x:0,y:o}),to:new mg.Z({x:i,y:o})}});return Z.createElement(mv.Z,{className:mp()("visx-rows",c),top:void 0===t?0:t,left:void 0===n?0:n},d?d({lines:b}):b.map(function(e){var t=e.from,n=e.to,r=e.index;return Z.createElement(mm.default,mE({key:"row-line-"+r,from:t,to:n,stroke:a,strokeWidth:l,strokeDasharray:u,style:h},v))}))}mj.propTypes={tickValues:pk().array,width:pk().number.isRequired};var mk=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function mS(){return(mS=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mk),g=null!=p?p:(0,my.Z)(r,void 0===d?10:d),y=(null!=h?h:0)+mx(r)/2,b=g.map(function(e,t){var n,o=(null!=(n=(0,mb.Z)(r(e)))?n:0)+y;return{index:t,from:new mg.Z({x:o,y:0}),to:new mg.Z({x:o,y:i})}});return Z.createElement(mv.Z,{className:mp()("visx-columns",c),top:void 0===t?0:t,left:void 0===n?0:n},m?m({lines:b}):b.map(function(e){var t=e.from,n=e.to,r=e.index;return Z.createElement(mm.default,mS({key:"column-line-"+r,from:t,to:n,stroke:a,strokeWidth:l,strokeDasharray:u,style:f},v))}))}mO.propTypes={tickValues:pk().array,height:pk().number.isRequired};var m_=n(64183),mC=n(8597);function mM(e){var t=e.id,n=e.width,r=e.height,i=e.children;return Z.createElement("defs",null,Z.createElement("pattern",{id:t,width:n,height:r,patternUnits:"userSpaceOnUse"},i))}mM.propTypes={id:pk().string.isRequired,width:pk().number.isRequired,height:pk().number.isRequired,children:pk().node.isRequired};var mA={horizontal:"horizontal",vertical:"vertical",diagonal:"diagonal",diagonalRightToLeft:"diagonalRightToLeft"};function mT(e){var t=e.id,n=e.width,r=e.height,i=e.stroke,o=e.strokeWidth,a=e.strokeDasharray,s=e.strokeLinecap,l=void 0===s?"square":s,u=e.shapeRendering,c=void 0===u?"auto":u,d=e.orientation,f=void 0===d?["vertical"]:d,h=e.background,p=e.className,m=Array.isArray(f)?f:[f];return Z.createElement(mM,{id:t,width:n,height:r},!!h&&Z.createElement("rect",{className:mp()("visx-pattern-line-background"),width:n,height:r,fill:h}),m.map(function(e,n){return Z.createElement("path",{key:"visx-"+t+"-line-"+e+"-"+n,className:mp()("visx-pattern-line",p),d:function(e){var t=e.height;switch(e.orientation){case mA.horizontal:return"M 0,"+t/2+" l "+t+",0";case mA.diagonal:return"M 0,"+t+" l "+t+","+-t+" M "+-t/4+","+t/4+" l "+t/2+","+-t/2+"\n M "+3/4*t+","+5/4*t+" l "+t/2+","+-t/2;case mA.diagonalRightToLeft:return"M 0,0 l "+t+","+t+"\n M "+-t/4+","+3/4*t+" l "+t/2+","+t/2+"\n M "+3/4*t+","+-t/4+" l "+t/2+","+t/2;case mA.vertical:default:return"M "+t/2+", 0 l 0, "+t}}({orientation:e,height:r}),stroke:i,strokeWidth:o,strokeDasharray:a,strokeLinecap:l,shapeRendering:c})}))}mT.propTypes={id:pk().string.isRequired,width:pk().number.isRequired,height:pk().number.isRequired,className:pk().string,background:pk().string,stroke:pk().string,strokeWidth:pk().oneOfType([pk().number,pk().string]),strokeDasharray:pk().oneOfType([pk().string,pk().number]),strokeLinecap:pk().oneOf(["square","butt","round","inherit"]),shapeRendering:pk().oneOfType([pk().string,pk().number]),orientation:pk().array};var mP=["tooltipOpen"];function mN(){return(mN=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mR);return Z.createElement("div",mD({ref:t,className:mp()("visx-tooltip",n),style:mD({top:null==r||null==l?r:r+l,left:null==i||null==a?i:i+a},m&&{position:"absolute"},!h&&c)},v),d)});function mF(){return(mF=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mH),g=!1,y=!1;if(u&&l){var b=void 0===r?0:r,x=void 0===f?0:f;if(l.width){var w=b+o+u.width-l.width,E=u.width-b-o;g=w>0&&w>E}else{var j=b+o+u.width-window.innerWidth,k=u.width-b-o;g=j>0&&j>k}if(l.height){var S=x+s+u.height-l.height,O=u.height-x-s;y=S>0&&S>O}else y=x+s+u.height>window.innerHeight;b=g?b-u.width-o:b+o,x=y?x-u.height-s:x+s,t="translate("+(b=Math.round(b))+"px, "+(x=Math.round(x))+"px)"}return Z.createElement(mL,mU({ref:m,style:mU({left:0,top:0,transform:t},!p&&d)},v),Z.createElement(mB,{value:{isFlippedVertically:!y,isFlippedHorizontally:!g}},n))}mW.propTypes={nodeRef:pk().oneOfType([pk().string,pk().func,pk().object])};var mq=((c=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={rect:void 0,parentRect:void 0},n.nodeRef=Z.createRef(),n.getRects=n.getRects.bind(function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,mz(t,e);var n=t.prototype;return n.componentDidMount=function(){var e,t=this;this.node=null!=(e=this.nodeRef)&&e.current?this.nodeRef.current:tf.findDOMNode(this),this.setState(function(){return t.getRects()})},n.getRects=function(){if(!this.node)return this.state;var e=this.node,t=e.parentNode;return{rect:e.getBoundingClientRect?e.getBoundingClientRect():mV,parentRect:null!=t&&t.getBoundingClientRect?t.getBoundingClientRect():mV}},n.render=function(){return Z.createElement(mW,mF({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},t}(Z.PureComponent)).displayName="withBoundingRects("+(mW.displayName||"")+")",c),m$=n(99985);function mY(e,t){if("invert"in e&&void 0!==e.invert)return e.invert(t).valueOf();var n=e.range(),r=n[0],i=n[1],o=0,a=("step"in e&&void 0!==e.step?e.step():1)*(i-r)/Math.abs(i-r);if(a>0)for(;t>r+a*(o+1);)o+=1;else for(;t0?Math.min(e.dx,t.bounds.x1-a):Math.max(e.dx,t.bounds.x0-r),u=e.dy>0?Math.min(e.dy,t.bounds.y1-s):Math.max(e.dy,t.bounds.y0-i);return m4({},t,{isBrushing:!0,extent:m4({},t.extent,{x0:r+l,x1:a+l,y0:i+u,y1:s+u})})})},t.selectionDragEnd=function(){var e=t.props,n=e.updateBrush,r=e.onBrushEnd,i=e.onMoveSelectionChange;e.isControlled||n(function(e){var t=m4({},e,{isBrushing:!1,start:m4({},e.start,{x:Math.min(e.extent.x0,e.extent.x1),y:Math.min(e.extent.y0,e.extent.y1)}),end:m4({},e.end,{x:Math.max(e.extent.x0,e.extent.x1),y:Math.max(e.extent.y0,e.extent.y1)})});return r&&r(t),t}),i&&i()},t}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,m3(t,e),t.prototype.render=function(){var e=this.props,t=e.width,n=e.height,r=e.stageWidth,i=e.stageHeight,o=e.brush,a=e.disableDraggingSelection,s=e.onMouseLeave,l=e.onMouseMove,u=e.onMouseUp,c=e.onClick,d=e.selectedBoxStyle,f=e.isControlled,h=e.isDragInProgress;return Z.createElement(m$.Z,{width:t,height:n,resetOnStart:!0,onDragStart:this.selectionDragStart,onDragMove:this.selectionDragMove,onDragEnd:this.selectionDragEnd,isDragging:f?h:void 0},function(e){var h=e.isDragging,p=e.dragStart,m=e.dragEnd,v=e.dragMove;return Z.createElement("g",null,h&&Z.createElement("rect",{width:r,height:i,fill:"transparent",onPointerUp:f?void 0:m,onPointerMove:v,onPointerLeave:f?void 0:m,style:m5}),Z.createElement("rect",m4({x:Math.min(o.extent.x0,o.extent.x1),y:Math.min(o.extent.y0,o.extent.y1),width:t,height:n,className:"visx-brush-selection",onPointerDown:a?void 0:p,onPointerLeave:function(e){s&&s(e)},onPointerMove:function(e){v(e),l&&l(e)},onPointerUp:function(e){f||m(e),u&&u(e)},onClick:function(e){c&&c(e)},style:{pointerEvents:o.isBrushing||o.activeHandle?"none":"all",cursor:a?void 0:"move"}},d)))})},t}(Z.Component);function m8(){return(m8=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Math.min(l,e.bounds.x1-o):Math.max(l,e.bounds.x0-n),c=u>0?Math.min(u,e.bounds.y1-a):Math.max(u,e.bounds.y0-r);return m8({},e,{isBrushing:!0,extent:m8({},e.extent,{x0:n+s,y0:r+c,x1:o+s,y1:a+c})})}),"select"===i&&n.updateBrush(function(e){var t=e.start,r=t.x,i=t.y,o={x:Math.min(Math.max(r+l,e.bounds.x0),e.bounds.x1),y:Math.min(Math.max(i+u,e.bounds.y0),e.bounds.y1)},a=n.getExtent(s,o);return m8({},e,{end:o,extent:a})})}},n.getExtent=function(e,t){var r=n.props,i=r.brushDirection,o=r.width,a=r.height;return{x0:"vertical"===i?0:Math.min(e.x||0,t.x||0),x1:"vertical"===i?o:Math.max(e.x||0,t.x||0),y0:"horizontal"===i?0:Math.min(e.y||0,t.y||0),y1:"horizontal"===i?a:Math.max(e.y||0,t.y||0)}},n.handleDragStart=function(e){var t=n.props,r=t.onBrushStart,i=t.left,o=t.top,a=t.inheritedMargin,s=t.useWindowMoveEvents,l=null!=a&&a.left?a.left:0,u=null!=a&&a.top?a.top:0,c={x:(e.x||0)+e.dx-i-l,y:(e.y||0)+e.dy-o-u},d=m8({},c);r&&r(c),n.updateBrush(function(t){return m8({},t,{start:c,end:d,extent:{x0:-1,x1:-1,y0:-1,y1:-1},isBrushing:!0,brushingType:"select",brushPageOffset:s?mK(e.event):void 0})})},n.handleBrushStart=function(e){var t=n.props,r=t.onBrushStart,i=t.left,o=t.top,a=t.inheritedMargin;if(r){var s=null!=a&&a.left?a.left:0,l=null!=a&&a.top?a.top:0;r({x:(e.x||0)+e.dx-i-s,y:(e.y||0)+e.dy-o-l})}},n.handleDragMove=function(e){var t=n.props,r=t.left,i=t.top,o=t.inheritedMargin,a=t.useWindowMoveEvents;if(e.isDragging&&!a){var s=(null==o?void 0:o.left)||0,l=(null==o?void 0:o.top)||0,u={x:(e.x||0)+e.dx-r-s,y:(e.y||0)+e.dy-i-l};n.updateBrush(function(e){var t=e.start,r=n.getExtent(t,u);return m8({},e,{end:u,extent:r})})}},n.handleDragEnd=function(){var e=n.props,t=e.onBrushEnd,r=e.resetOnEnd;e.useWindowMoveEvents||n.updateBrush(function(e){var i=e.extent,o=m8({},e,{start:{x:i.x0,y:i.y0},end:{x:i.x1,y:i.y1},isBrushing:!1,brushingType:void 0,activeHandle:null});return t&&t(o),r&&n.reset(),o})},n.getBrushWidth=function(){var e=n.state.extent,t=e.x0,r=e.x1;return Math.max(Math.max(t,r)-Math.min(t,r),0)},n.getBrushHeight=function(){var e=n.state.extent,t=e.y1,r=e.y0;return Math.max(Math.max(r,t)-Math.min(r,t),0)},n.handles=function(){var e=n.props.handleSize,t=n.state.extent,r=t.x0,i=t.x1,o=t.y0,a=t.y1,s=e/2,l=n.getBrushWidth(),u=n.getBrushHeight();return{top:{x:r-s,y:o-s,height:e,width:l+e},bottom:{x:r-s,y:a-s,height:e,width:l+e},right:{x:i-s,y:o-s,height:u+e,width:e},left:{x:r-s,y:o-s,height:u+e,width:e}}},n.corners=function(){var e=n.props.handleSize,t=n.state.extent,r=t.x0,i=t.x1,o=t.y0,a=t.y1,s=e/2;return{topLeft:{x:Math.min(r,i)-s,y:Math.min(o,a)-s,width:e,height:e},topRight:{x:Math.max(r,i)-s,y:Math.min(o,a)-s,width:e,height:e},bottomLeft:{x:Math.min(r,i)-s,y:Math.max(o,a)-s,width:e,height:e},bottomRight:{x:Math.max(r,i)-s,y:Math.max(o,a)-s,width:e,height:e}}},n.updateBrush=function(e){var t=n.props.onChange;n.setState(e,function(){t&&t(n.state)})},n.reset=function(){var e=n.props,t=e.width,r=e.height;n.updateBrush(function(){return{start:{x:0,y:0},end:{x:0,y:0},extent:{x0:-1,x1:-1,y0:-1,y1:-1},bounds:{x0:0,x1:t,y0:0,y1:r},isBrushing:!1,brushPageOffset:void 0,activeHandle:null,brushingType:void 0}})},n.handleBrushingTypeChange=function(e,t){n.updateBrush(function(n){var r=m8({},n,{brushingType:e,isBrushing:void 0!==e});return(t||void 0===e)&&(r.brushPageOffset=t),r})};var n,r=t.initialBrushPosition,i=r?n.getExtent(r.start,r.end):{x0:-1,x1:-1,y0:-1,y1:-1};return n.state={start:{x:Math.max(0,i.x0),y:Math.max(0,i.y0)},end:{x:Math.max(0,i.x1),y:Math.max(0,i.y1)},extent:i,bounds:{x0:0,x1:n.props.width,y0:0,y1:n.props.height},isBrushing:!1,brushingType:void 0,activeHandle:null},n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,m7(t,e);var n=t.prototype;return n.componentDidUpdate=function(e){var t=this;(this.props.width!==e.width||this.props.height!==e.height)&&this.setState(function(n){var r=n.start,i=n.end,o=n.extent;if(!(-1===o.x0&&-1===o.x1&&-1===o.y0&&-1===o.y1)){var a=t.props.width/e.width,s=t.props.height/e.height;r={x:a*o.x0,y:s*o.y0},i={x:a*o.x1,y:s*o.y1},o=t.getExtent(r,i)}return{start:r,end:i,extent:o,bounds:{x0:0,x1:t.props.width,y0:0,y1:t.props.height}}})},n.componentDidMount=function(){this.props.useWindowMoveEvents&&(window.addEventListener("mouseup",this.handleWindowPointerUp),window.addEventListener("mousemove",this.handleWindowPointerMove))},n.componentWillUnmount=function(){this.props.useWindowMoveEvents&&(window.removeEventListener("mouseup",this.handleWindowPointerUp),window.removeEventListener("mousemove",this.handleWindowPointerMove))},n.render=function(){var e=this,t=this.state,n=t.start,r=t.end,i=this.props,o=i.top,a=i.left,s=i.width,l=i.height,u=i.onMouseLeave,c=i.onMouseUp,d=i.onMouseMove,f=i.onBrushEnd,h=i.onClick,p=i.resizeTriggerAreas,m=i.selectedBoxStyle,v=i.disableDraggingSelection,g=i.clickSensitivity,y=i.useWindowMoveEvents,b=i.renderBrushHandle,x=this.state.brushingType,w=this.handles(),E=this.corners(),j=this.getBrushWidth(),k=this.getBrushHeight(),S=new Set(p);return Z.createElement(mv.Z,{className:"visx-brush",top:o,left:a},Z.createElement(m$.Z,{width:s,height:l,resetOnStart:!0,onDragStart:this.handleDragStart,onDragMove:this.handleDragMove,onDragEnd:this.handleDragEnd,isDragging:y?"select"===x:void 0},function(t){var n=t.dragStart,r=t.isDragging,i=t.dragMove,o=t.dragEnd;return Z.createElement(md.Z,{className:"visx-brush-overlay",fill:"transparent",x:0,y:0,width:s,height:l,onDoubleClick:function(){return e.reset()},onClick:function(t){var n=e.mouseUpTime-e.mouseDownTime;h&&n=0||(i[n]=e[n]);return i}(e,vo),g=o,y=s,b=a,x=l;return void 0!==m&&!m||g||y||b||x||(g="0",y="0",b="0",x="1"),Z.createElement("defs",null,Z.createElement("linearGradient",va({id:n,x1:g,y1:b,x2:y,y2:x,gradientTransform:h?"rotate("+h+")":p},v),!!t&&t,!t&&Z.createElement("stop",{offset:void 0===u?"0%":u,stopColor:r,stopOpacity:void 0===c?1:c}),!t&&Z.createElement("stop",{offset:void 0===d?"100%":d,stopColor:i,stopOpacity:void 0===f?1:f})))}function vl(e,t){return null==e||null==t?NaN:et?1:e>=t?0:NaN}function vu(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function vc(){return 0}function vd(e,t){let n,r;if(void 0===t)for(let t of e)null!=t&&(void 0===n?t>=t&&(n=r=t):(n>t&&(n=t),r=o&&(n=r=o):(n>o&&(n=o),r=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}vs.propTypes={id:pk().string.isRequired,from:pk().string,to:pk().string,x1:pk().oneOfType([pk().string,pk().number]),x2:pk().oneOfType([pk().string,pk().number]),y1:pk().oneOfType([pk().string,pk().number]),y2:pk().oneOfType([pk().string,pk().number]),fromOffset:pk().oneOfType([pk().string,pk().number]),fromOpacity:pk().oneOfType([pk().string,pk().number]),toOffset:pk().oneOfType([pk().string,pk().number]),toOpacity:pk().oneOfType([pk().string,pk().number]),rotate:pk().oneOfType([pk().string,pk().number]),transform:pk().string,children:pk().node,vertical:pk().bool};var vh=n(93122),vp=n(93221),vm=function(){return vp.Z.Date.now()},vv=n(78807),vg=n(22758),vy=0/0,vb=/^[-+]0x[0-9a-f]+$/i,vx=/^0b[01]+$/i,vw=/^0o[0-7]+$/i,vE=parseInt,vj=function(e){if("number"==typeof e)return e;if((0,vg.Z)(e))return vy;if((0,vh.Z)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=(0,vh.Z)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=(0,vv.Z)(e);var n=vx.test(e);return n||vw.test(e)?vE(e.slice(2),n?2:8):vb.test(e)?vy:+e},vk=Math.max,vS=Math.min,vO=function(e,t,n){var r,i,o,a,s,l,u=0,c=!1,d=!1,f=!0;if("function"!=typeof e)throw TypeError("Expected a function");function h(t){var n=r,o=i;return r=i=void 0,u=t,a=e.apply(o,n)}function p(e){var n=e-l,r=e-u;return void 0===l||n>=t||n<0||d&&r>=o}function m(){var e,n,r,i=vm();if(p(i))return v(i);s=setTimeout(m,(e=i-l,n=i-u,r=t-e,d?vS(r,o-n):r))}function v(e){return(s=void 0,f&&r)?h(e):(r=i=void 0,a)}function g(){var e,n=vm(),o=p(n);if(r=arguments,i=this,l=n,o){if(void 0===s)return u=e=l,s=setTimeout(m,t),c?h(e):a;if(d)return clearTimeout(s),s=setTimeout(m,t),h(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=vj(t)||0,(0,vh.Z)(n)&&(c=!!n.leading,o=(d="maxWait"in n)?vk(vj(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),g.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0},g.flush=function(){return void 0===s?a:v(vm())},g},v_=n(55746),vC=n(45742),vM=n(27266),vA=["id","markerWidth","markerHeight","markerUnits","children"];function vT(){return(vT=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vA);return Z.createElement("defs",null,Z.createElement("marker",vT({id:t,markerWidth:void 0===n?3:n,markerHeight:void 0===r?3:r,markerUnits:void 0===i?"userSpaceOnUse":i},a),o))}vP.propTypes={id:pk().string.isRequired,size:pk().number,markerWidth:pk().oneOfType([pk().string,pk().number]),markerHeight:pk().oneOfType([pk().string,pk().number]),markerUnits:pk().string,refX:pk().oneOfType([pk().string,pk().number]),refY:pk().oneOfType([pk().string,pk().number]),strokeWidth:pk().number,children:pk().node.isRequired};var vN=["id","size","strokeWidth"];function vR(){return(vR=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vN),s=2*r+o,l=s/2;return Z.createElement(vP,vR({id:t,markerWidth:s,markerHeight:s,refX:0,refY:l,orient:"auto-start-reverse",markerUnits:"strokeWidth",strokeWidth:o},a),Z.createElement("circle",{r:r,cx:l,cy:l}))}var vZ=n(64170),vL={top:"top",left:"left",bottom:"bottom"};function vF(){return(vF=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vq),j=null!=g?g:"tickFormat"in v?v.tickFormat():vH.Z,k=h===vL.left,S=h===vL.top,O=S||h===vL.bottom,_=function(e,t){if(void 0===t&&(t="center"),"start"!==t&&"bandwidth"in e){var n=e.bandwidth();return"center"===t&&(n/=2),e.round()&&(n=Math.round(n)),function(t){var r=e(t);return"number"==typeof r?r+n:r}}return e}(v),C=k||S?-1:1,M=v.range(),A=(void 0===(t=m)&&(t=0),"number"==typeof t?{start:t,end:t}:vW({start:0,end:0},t)),T=vU({x:Number(M[0])+.5-A.start,y:0},O),P=vU({x:Number(M[M.length-1])+.5+A.end,y:0},O),N=(null!=x?x:(0,my.Z)(v,d)).filter(function(e){return!l||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),R=N.map(function(e){var t=e.value,n=e.index,r=(0,mb.Z)(_(t));return{value:t,index:n,from:vU({x:r,y:0},O),to:vU({x:r,y:b*C},O),formattedValue:j(t,n,N)}});return Z.createElement(mv.Z,{className:mp()("visx-axis",i),top:void 0===w?0:w,left:void 0===u?0:u},r(v$({},E,{axisFromPoint:T,axisToPoint:P,hideAxisLine:void 0!==o&&o,hideTicks:void 0!==a&&a,hideZero:l,horizontal:O,numTicks:d,orientation:h,rangePadding:m,scale:v,tickFormat:j,tickLength:b,tickPosition:_,tickSign:C,ticks:R})))}var vG=["axisClassName","labelOffset","tickLabelProps","tickLength"];function vK(){return(vK=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vG);return Z.createElement(vY,vK({axisClassName:mp()("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:vL.bottom,tickLabelProps:void 0===r?vX:r,tickLength:void 0===i?8:i},o))}var vJ=["axisClassName","labelOffset","tickLabelProps","tickLength"];function v0(){return(v0=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vJ);return Z.createElement(vY,v0({axisClassName:mp()("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:vL.left,tickLabelProps:void 0===r?v1:r,tickLength:void 0===i?8:i},o))}let v4=e=>new Date((null==e?void 0:e.timestamp)||0),v3=e=>(null==e?void 0:e.value)||0,v5="var(--colors-hiContrast)",v6={textAnchor:"middle",fontFamily:"var(--fonts-sans)",fontSize:10,fill:v5},v8={dx:"-0.25em",dy:"0.25em",fontFamily:"var(--fonts-sans)",fontSize:10,textAnchor:"end",fill:v5};function v7(e){let{data:t,gradientColor:n,width:r,yMax:i,margin:o,xScale:a,yScale:s,hideBottomAxis:l=!1,hideLeftAxis:u=!1,top:c,left:d,curve:f="step",children:h}=e;return r<10?null:(0,D.jsxs)(mv.Z,{left:d||o.left,top:c||o.top,children:[(0,D.jsx)(vD,{id:"marker-circle",fill:"var(--colors-accent11)",size:1.5,refX:1.5}),(0,D.jsx)(vs,{id:"gradient",from:n,fromOpacity:1,to:n,toOpacity:.2}),(0,D.jsx)(v_.Z,{data:t,x:e=>a(v4(e))||0,y:e=>s(v3(e))||0,yScale:s,strokeWidth:1,stroke:"url(#gradient)",fill:"url(#gradient)",markerMid:"url(#marker-circle)",curve:"step"===f?vC.ZP:vM.Z}),!l&&(0,D.jsx)(vQ,{top:i,scale:a,numTicks:r>520?10:5,stroke:v5,tickStroke:v5,tickLabelProps:()=>v6}),!u&&(0,D.jsx)(v2,{scale:s,numTicks:5,stroke:v5,tickStroke:v5,tickLabelProps:()=>v8}),h]})}var v9=n(6692);let{inherit:ge,current:gt,transparent:gn,black:gr,white:gi,slate:go,zinc:ga,neutral:gs,stone:gl,red:gu,orange:gc,amber:gd,yellow:gf,lime:gh,green:gp,emerald:gm,teal:gv,cyan:gg,sky:gy,blue:gb,indigo:gx,violet:gw,purple:gE,fuchsia:gj,pink:gk,rose:gS}=v9,gO={inherit:ge,current:gt,transparent:gn,black:gr,white:gi,slate:go,zinc:ga,neutral:gs,stone:gl,red:gu,orange:gc,amber:gd,yellow:gf,lime:gh,green:gp,emerald:gm,teal:gv,cyan:gg,sky:gy,blue:gb,indigo:gx,violet:gw,purple:gE,fuchsia:gj,pink:gk,rose:gS,mask:"rgba(30, 169, 76, .3)",accent:{50:"#F6FFF9",100:"#E9FBEF",200:"#D5F2DE",300:"#C9EED4",400:"#BBE8C9",500:"#9BDAAE",600:"#71C48A",700:"#3EAA5F",800:"#05872D",900:"#056B24",1e3:"#04511B",1100:"#011F0A"},accentdark:{50:"#05150A",100:"#051C0C",200:"#062811",300:"#073515",400:"#064018",500:"#075820",600:"#056824",700:"#077A2A",800:"#05872D",900:"#069F35",1e3:"#2FA052",1100:"#D9F4E1"},gray:{50:"hsl(206, 30.0%, 98.8%)",100:"hsl(210, 16.7%, 97.6%)",200:"hsl(209, 13.3%, 95.3%)",300:"hsl(209, 12.2%, 93.2%)",400:"hsl(208, 11.7%, 91.1%)",500:"hsl(208, 11.3%, 88.9%)",600:"hsl(207, 11.1%, 85.9%)",700:"hsl(205, 10.7%, 78.0%)",800:"hsl(206, 6.0%, 56.1%)",900:"hsl(206, 5.8%, 52.3%)",1e3:"hsl(206, 6.0%, 43.5%)",1100:"hsl(206, 24.0%, 9.0%)"},graydark:{50:"hsl(200, 7.0%, 8.8%)",100:"hsl(195, 7.1%, 11.0%)",200:"hsl(197, 6.8%, 13.6%)",300:"hsl(198, 6.6%, 15.8%)",400:"hsl(199, 6.4%, 17.9%)",500:"hsl(201, 6.2%, 20.5%)",600:"hsl(203, 6.0%, 24.3%)",700:"hsl(207, 5.6%, 31.6%)",800:"hsl(206, 6.0%, 43.9%)",900:"hsl(206, 5.2%, 49.5%)",1e3:"hsl(206, 6.0%, 63.0%)",1100:"hsl(210, 6.0%, 93.0%)"}};var g_=n(25205);let gC={top:10,bottom:15,left:10,right:10},gM="brush_pattern",gA="brush_gradient",gT=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw TypeError("Expected a function");return(0,vh.Z)(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),vO(e,t,{leading:r,maxWait:t,trailing:i})}(e=>e(),15),gP=function(e){let t,n,r;function i(e,r,i=0,o=e.length){if(i>>1;0>n(e[t],r)?i=t+1:o=t}while(ivl(e(t),n),r=(t,n)=>e(t)-n):(t=e===vl||e===vu?e:vc,n=e,r=e),{left:i,center:function(e,t,n=0,o=e.length){let a=i(e,t,n,o-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,i=0,o=e.length){if(i>>1;0>=n(e[t],r)?i=t+1:o=t}while(inew Date((null==e?void 0:e.timestamp)||0)).left;void 0===d&&(d={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===f&&(f=function(e,t){return Z.createElement("div",t,e)});var gN=n(54073),gR=n.n(gN),gD=n(44711),gZ=["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall"];function gL(){return(gL=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,gZ),d=(0,Z.useRef)(null),f=(0,Z.useRef)(0),h=(0,Z.useState)({width:0,height:0,top:0,left:0}),p=h[0],m=h[1],v=(0,Z.useMemo)(function(){var e=Array.isArray(a)?a:[a];return gR()(function(t){m(function(n){return Object.keys(n).filter(function(e){return n[e]!==t[e]}).every(function(t){return e.includes(t)})?n:t})},i,{leading:u})},[i,u,a]);return(0,Z.useEffect)(function(){var e=new gD.ResizeObserver(function(e){void 0===e&&(e=[]),e.forEach(function(e){var t=e.contentRect,n=t.left,r=t.top,i=t.width,o=t.height;f.current=window.requestAnimationFrame(function(){v({width:i,height:o,top:r,left:n})})})});return d.current&&e.observe(d.current),function(){window.cancelAnimationFrame(f.current),e.disconnect(),null!=v&&v.cancel&&v.cancel()}},[v]),Z.createElement("div",gL({style:void 0===s?{width:"100%",height:"100%"}:s,ref:d,className:t},c),n(gL({},p,{ref:d.current,resize:v})))}gz.propTypes={className:pk().string,debounceTime:pk().number,enableDebounceLeadingCall:pk().bool,ignoreDimensions:pk().oneOfType([pk().any,pk().arrayOf(pk().any)]),children:pk().func.isRequired};var gV=n(52058);function gI(e){let{id:t,width:n,height:r,accessors:i,animationTrajectory:o,curve:a,data:s,config:l,scales:u,enabledGraph:c,enabledTip:d,isStack:f,todayOffset:h,numTicks:p,renderAreaSeries:m,renderAreaStack:v,renderBarGroup:g,renderBarStack:y,enableTooltipGlyph:b,renderTooltipGlyph:x,renderLineSeries:w,sharedTooltip:E,showHorizontalCrosshair:j,showTooltip:k,showVerticalCrosshair:S,snapTooltipToDatum:O,stackOffset:_,margin:C,theme:M,xAxisOrientation:A,yAxisOrientation:T,AreaSeries:P,AreaStack:N,Axis:R,BarGroup:L,BarSeries:F,BarStack:z,Grid:V,LineSeries:I,Tooltip:B,XYChart:H}=e;return(0,D.jsxs)(H,{theme:M.xyChartTheme,xScale:u.x,yScale:u.y,height:Math.min(400,r),margin:C,captureEvents:!0,children:[(0,D.jsx)("g",{children:(0,D.jsx)("rect",{className:"fill-gray-600 dark:fill-graydark-600 h-full w-px y-0",style:{left:"".concat(100*h,"%")}})},"today-line-".concat(n,"-").concat(r)),(0,D.jsx)(vs,{id:"gradient-default",from:"gray",fromOpacity:1,to:"gray",toOpacity:.4}),Object.entries(l.data).map(e=>{let[n,r]=e,i=r.color;return(0,D.jsxs)(Z.Fragment,{children:[(0,D.jsx)(mT,{id:"pattern-".concat(gB(t,n)),height:6,width:6,stroke:i,strokeWidth:.5,orientation:["diagonal"]}),(0,D.jsx)(vs,{id:"gradient-".concat(gB(t,n)),from:i,fromOpacity:1,to:i,toOpacity:f?.4:1})]},n)}),(0,D.jsx)(V,{rows:!1,columns:!0,strokeDasharray:"1,3",animationTrajectory:o,numTicks:p},"grid-".concat(o)),y&&(0,D.jsx)(z,{offset:l.stackOffset,children:c.map(e=>(0,D.jsx)(F,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>gH(t,e,l)},e))}),g&&(0,D.jsx)(L,{children:c.map(e=>(0,D.jsx)(F,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>gH(t,e,l)},e))}),m&&(0,D.jsx)(D.Fragment,{children:c.map(e=>(0,D.jsx)(P,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:gH(t,e,l),fill:gH(t,e,l),curve:a},e))}),v&&(0,D.jsx)(N,{curve:a,offset:l.stackOffset,renderLine:"wiggle"!==_,children:c.map(e=>(0,D.jsx)(P,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:gH(t,e,l),fill:gH(t,e,l)},e))}),w&&(0,D.jsx)(D.Fragment,{children:c.map(e=>{var t,n;return(0,D.jsx)(I,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:(null===(n=l.data)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.color)||"gray",curve:a},e)})}),(0,D.jsx)(R,{orientation:A,numTicks:p,animationTrajectory:o,tickFormat:e=>(0,g_.rN)(e),tickLength:12,tickLabelProps:e=>({...e,fill:M.labels.color,fontFamily:M.labels.fontFamily,y:"14px",fontWeight:"500",fontSize:"8"})},"time-axis-".concat(o)),(0,D.jsx)(R,{label:null==_?"SC":"expand"===_?"Fraction of total":"",orientation:T,numTicks:p,tickLength:12,animationTrajectory:o,tickFormat:l.formatTickY,tickTransform:"translate(-300px, 0)",tickLabelProps:e=>({...e,fill:M.labels.color,fontFamily:M.labels.fontFamily,fontWeight:"500",fontSize:"8"})},"temp-axis-".concat(o)),k&&(0,D.jsx)(B,{showHorizontalCrosshair:j,showVerticalCrosshair:S,snapTooltipToDatumX:O,snapTooltipToDatumY:O,showDatumGlyph:O&&!g,showSeriesGlyphs:E&&!g,renderGlyph:b?x:void 0,renderTooltip:e=>{var t,n;let{tooltipData:r}=e,o=null==r?void 0:null===(t=r.nearestDatum)||void 0===t?void 0:t.datum,a=null==r?void 0:null===(n=r.nearestDatum)||void 0===n?void 0:n.key,s=E?d:a?[a]:[],u=l.formatTimestamp||(e=>(0,g_.rN)(e,{timeStyle:"short",hour12:!1})),c=s.map(e=>{var t,n;return{key:e,category:(null===(n=l.data)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.category)||""}}),h=(0,gV.Z)(c,"category"),p=l.categories?l.categories.map(e=>[e,h[e]]):Object.entries(h);return(0,D.jsxs)("div",{className:(0,eE.cx)("flex flex-col gap-2 py-1"),children:[(0,D.jsx)(t7,{font:"mono",size:"12",color:"contrast",className:"text-end",children:o?u(i.date(o)):"No date"}),(0,D.jsx)(cZ,{color:"panel",className:"w-full"}),(0,D.jsx)("div",{className:(0,eE.cx)("grid gap-x-6 gap-y-4",p.length>1?"grid-cols-2":"grid-cols-1"),children:p.map(e=>{let[t,n]=e,r=o?n.reduce((e,t)=>{let{key:n}=t,r=i.y[n](o);return null==r||Number.isNaN(r)?e:e+r},0):0,s=null==l?void 0:l.formatComponent;return(0,D.jsxs)("div",{className:"flex flex-col gap-2 w-[250px]",children:[t&&(0,D.jsx)(t7,{weight:"semibold",children:t}),(0,D.jsxs)("div",{className:"grid grid-cols-2 gap-x-2 gap-y-1 items-center",children:[n.map(e=>{var t,n,r,u;let{key:c}=e,d=o&&i.y[c](o);return(0,D.jsxs)(Z.Fragment,{children:[(0,D.jsx)(t7,{color:"accent",style:{color:null===(n=l.data)||void 0===n?void 0:null===(t=n[c])||void 0===t?void 0:t.color},className:(0,eE.cx)(a===c?"underline":""),children:(null===(u=l.data)||void 0===u?void 0:null===(r=u[c])||void 0===r?void 0:r.label)||c}),(0,D.jsx)(t7,{size:"12",style:{textAlign:"end"},className:(0,eE.cx)(a===c?"underline":""),children:null==d||Number.isNaN(d)?"–":s?(0,D.jsx)(s,{value:d}):l.format?l.format(d):d})]},c)}),n.length>1&&f&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(t7,{className:"pt-2",children:"total"}),(0,D.jsx)(t7,{size:"12",weight:"bold",className:"pt-2 text-end",children:s?(0,D.jsx)(s,{value:r}):l.format?l.format(r):r})]})]})]},t)})})]})}})]})}function gB(e,t){return"".concat(e,"-").concat(t)}function gH(e,t,n){var r;let i=gB(e,t);return(null===(r=n.data)||void 0===r?void 0:r[t])?n.data[t].pattern?"url(#pattern-".concat(i,")"):"url(#gradient-".concat(i,")"):"url(#gradient-default)"}var gU=n(24037),gW=n(86707);function gq(e){var t=e.top,n=e.left,r=e.className,i=e.children;return Z.createElement(mv.Z,{className:mp()("visx-glyph",r),top:void 0===t?0:t,left:void 0===n?0:n},i)}gq.propTypes={top:pk().number,left:pk().number,className:pk().string,children:pk().node};var g$=["children","className","top","left","size"];function gY(){return(gY=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,g$),s=(0,gU.Z)();return(s.type(gW.Z),"number"==typeof o?s.size(o):o&&s.size(o),t)?Z.createElement(Z.Fragment,null,t({path:s})):Z.createElement(gq,{top:r,left:i},Z.createElement("path",gY({className:mp()("visx-glyph-star",n),d:s()||""},a)))}gG.propTypes={children:pk().func,className:pk().string,top:pk().number,left:pk().number,size:pk().oneOfType([pk().number,pk().func])};var gK=["top","left","className"];function gX(){return(gX=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,gK);return Z.createElement(gq,{top:void 0===t?0:t,left:void 0===n?0:n},Z.createElement("circle",gX({className:mp()("visx-glyph-dot",r)},i)))}gQ.propTypes={className:pk().string,top:pk().number,left:pk().number,r:pk().number,cx:pk().number,cy:pk().number};var gJ=n(9135),g0=["children","className","top","left","size"];function g1(){return(g1=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,g0),s=(0,gU.Z)();return(s.type(gJ.Z),"number"==typeof o?s.size(o):o&&s.size(o),t)?Z.createElement(Z.Fragment,null,t({path:s})):Z.createElement(gq,{top:r,left:i},Z.createElement("path",g1({className:mp()("visx-glyph-cross",n),d:s()||""},a)))}g2.propTypes={children:pk().func,className:pk().string,top:pk().number,left:pk().number,size:pk().oneOfType([pk().number,pk().func])};var g4=n(46385),g3=n(20651),g5={red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"]},g6=g5.gray,g8=g6[7],g7=[g5.cyan[9],g5.cyan[3],g5.yellow[5],g5.red[4],g5.grape[8],g5.grape[5],g5.pink[9]];function g9(){return(g9=Object.assign?Object.assign.bind():function(e){for(var t=1;t{for(var n in t)yi(e,n,{get:t[n],enumerable:!0})})(yo,{assign:()=>yL,colors:()=>yR,createStringInterpolator:()=>A,skipAnimation:()=>yD,to:()=>T,willAdvance:()=>yZ});var ya=yE(),ys=e=>yy(e,ya),yl=yE();ys.write=e=>yy(e,yl);var yu=yE();ys.onStart=e=>yy(e,yu);var yc=yE();ys.onFrame=e=>yy(e,yc);var yd=yE();ys.onFinish=e=>yy(e,yd);var yf=[];ys.setTimeout=(e,t)=>{let n=ys.now()+t,r=()=>{let e=yf.findIndex(e=>e.cancel==r);~e&&yf.splice(e,1),yv-=~e?1:0},i={time:n,handler:e,cancel:r};return yf.splice(yh(n),0,i),yv+=1,yb(),i};var yh=e=>~(~yf.findIndex(t=>t.time>e)||~yf.length);ys.cancel=e=>{yu.delete(e),yc.delete(e),yd.delete(e),ya.delete(e),yl.delete(e)},ys.sync=e=>{yg=!0,ys.batchedUpdates(e),yg=!1},ys.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,ys.onStart(n)}return r.handler=e,r.cancel=()=>{yu.delete(n),t=null},r};var yp="undefined"!=typeof window?window.requestAnimationFrame:()=>{};ys.use=e=>yp=e,ys.now="undefined"!=typeof performance?()=>performance.now():Date.now,ys.batchedUpdates=e=>e(),ys.catch=console.error,ys.frameLoop="always",ys.advance=()=>{"demand"!==ys.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):yw()};var ym=-1,yv=0,yg=!1;function yy(e,t){yg?(t.delete(e),e(0)):(t.add(e),yb())}function yb(){ym<0&&(ym=0,"demand"!==ys.frameLoop&&yp(yx))}function yx(){~ym&&(yp(yx),ys.batchedUpdates(yw))}function yw(){let e=ym;ym=ys.now();let t=yh(ym);if(t&&(yj(yf.splice(0,t),e=>e.handler()),yv-=t),!yv){ym=-1;return}yu.flush(),ya.flush(e?Math.min(64,ym-e):16.667),yc.flush(),yl.flush(),yd.flush()}function yE(){let e=new Set,t=e;return{add(n){yv+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(yv-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,yv-=t.size,yj(t,t=>t(n)&&e.add(t)),yv+=e.size,t=e)}}}function yj(e,t){e.forEach(e=>{try{t(e)}catch(e){ys.catch(e)}})}function yk(){}var yS=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),yO={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function y_(e,t){if(yO.arr(e)){if(!yO.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function yM(e,t,n){if(yO.arr(e)){for(let r=0;ryO.und(e)?[]:yO.arr(e)?e:[e];function yT(e,t){if(e.size){let n=Array.from(e);e.clear(),yC(n,t)}}var yP=(e,...t)=>yT(e,e=>e(...t)),yN=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),yR=null,yD=!1,yZ=yk,yL=e=>{e.to&&(T=e.to),e.now&&(ys.now=e.now),void 0!==e.colors&&(yR=e.colors),null!=e.skipAnimation&&(yD=e.skipAnimation),e.createStringInterpolator&&(A=e.createStringInterpolator),e.requestAnimationFrame&&ys.use(e.requestAnimationFrame),e.batchedUpdates&&(ys.batchedUpdates=e.batchedUpdates),e.willAdvance&&(yZ=e.willAdvance),e.frameLoop&&(ys.frameLoop=e.frameLoop)},yF=new Set,yz=[],yV=[],yI=0,yB={get idle(){return!yF.size&&!yz.length},start(e){yI>e.priority?(yF.add(e),ys.onStart(yH)):(yU(e),ys(yq))},advance:yq,sort(e){if(yI)ys.onFrame(()=>yB.sort(e));else{let t=yz.indexOf(e);~t&&(yz.splice(t,1),yW(e))}},clear(){yz=[],yF.clear()}};function yH(){yF.forEach(yU),yF.clear(),ys(yq)}function yU(e){yz.includes(e)||yW(e)}function yW(e){yz.splice(function(e,t){let n=e.findIndex(t);return n<0?e.length:n}(yz,t=>t.priority>e.priority),0,e)}function yq(e){let t=yV;for(let n=0;n0}var y$="[-+]?\\d*\\.?\\d+",yY=y$+"%";function yG(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var yK=RegExp("rgb"+yG(y$,y$,y$)),yX=RegExp("rgba"+yG(y$,y$,y$,y$)),yQ=RegExp("hsl"+yG(y$,yY,yY)),yJ=RegExp("hsla"+yG(y$,yY,yY,y$)),y0=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,y1=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,y2=/^#([0-9a-fA-F]{6})$/,y4=/^#([0-9a-fA-F]{8})$/;function y3(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function y5(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=y3(i,r,e+1/3),a=y3(i,r,e),s=y3(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function y6(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function y8(e){let t=parseFloat(e);return(t%360+360)%360/360}function y7(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function y9(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function be(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=y2.exec(e))?parseInt(t[1]+"ff",16)>>>0:yR&&void 0!==yR[e]?yR[e]:(t=yK.exec(e))?(y6(t[1])<<24|y6(t[2])<<16|y6(t[3])<<8|255)>>>0:(t=yX.exec(e))?(y6(t[1])<<24|y6(t[2])<<16|y6(t[3])<<8|y7(t[4]))>>>0:(t=y0.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=y4.exec(e))?parseInt(t[1],16)>>>0:(t=y1.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=yQ.exec(e))?(255|y5(y8(t[1]),y9(t[2]),y9(t[3])))>>>0:(t=yJ.exec(e))?(y5(y8(t[1]),y9(t[2]),y9(t[3]))|y7(t[4]))>>>0:null;if(null===n)return e;n=n||0;let r=(4278190080&n)>>>24,i=(16711680&n)>>>16,o=(65280&n)>>>8,a=(255&n)/255;return`rgba(${r}, ${i}, ${o}, ${a})`}var bt=(e,t,n)=>{if(yO.fun(e))return e;if(yO.arr(e))return bt({range:e,output:t,extrapolate:n});if(yO.str(e.output[0]))return A(e);let r=e.output,i=e.range||[0,1],o=e.extrapolateLeft||e.extrapolate||"extend",a=e.extrapolateRight||e.extrapolate||"extend",s=e.easing||(e=>e);return t=>{let n=function(e,t){for(var n=1;n=e);++n);return n-1}(t,i);return function(e,t,n,r,i,o,a,s,l){let u=l?l(e):e;if(un){if("identity"===s)return u;"clamp"===s&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=o(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r,u)}(t,i[n],i[n+1],r[n],r[n+1],s,o,a,e.map)}},bn=Symbol.for("FluidValue.get"),br=Symbol.for("FluidValue.observers"),bi=e=>!!(e&&e[bn]),bo=e=>e&&e[bn]?e[bn]():e,ba=e=>e[br]||null;function bs(e,t){let n=e[br];n&&n.forEach(e=>{e.eventObserved?e.eventObserved(t):e(t)})}var bl=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");bu(this,e)}},bu=(e,t)=>bf(e,bn,t);function bc(e,t){if(e[bn]){let n=e[br];n||bf(e,br,n=new Set),!n.has(t)&&(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function bd(e,t){let n=e[br];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[br]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var bf=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),bh=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,bp=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,bm=RegExp(`(${bh.source})(%|[a-z]+)`,"i"),bv=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,bg=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,by=e=>{let[t,n]=bb(e);if(!t||yN())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){let e=window.getComputedStyle(document.documentElement).getPropertyValue(n);if(e)return e}else if(n&&bg.test(n))return by(n);else if(n)return n;return e},bb=e=>{let t=bg.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},bx=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,bw=e=>{P||(P=yR?RegExp(`(${Object.keys(yR).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>bo(e).replace(bg,by).replace(bp,be).replace(P,be)),n=t.map(e=>e.match(bh).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})),i=r.map(t=>bt({...e,output:t}));return e=>{let n=!bm.test(t[0])&&t.find(e=>bm.test(e))?.replace(bh,""),r=0;return t[0].replace(bh,()=>`${i[r++](e)}${n||""}`).replace(bv,bx)}},bE="react-spring: ",bj=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${bE}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},bk=bj(console.warn),bS=bj(console.warn);function bO(e){return yO.str(e)&&("#"==e[0]||/\d/.test(e)||!yN()&&bg.test(e)||e in(yR||{}))}var b_=yN()?Z.useEffect:Z.useLayoutEffect,bC=()=>{let e=(0,Z.useRef)(!1);return b_(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function bM(){let e=(0,Z.useState)()[1],t=bC();return()=>{t.current&&e(Math.random())}}var bA=e=>(0,Z.useEffect)(e,bT),bT=[];function bP(e){let t=(0,Z.useRef)();return(0,Z.useEffect)(()=>{t.current=e}),t.current}var bN=Symbol.for("Animated:node"),bR=e=>!!e&&e[bN]===e,bD=e=>e&&e[bN],bZ=(e,t)=>yS(e,bN,t),bL=e=>e&&e[bN]&&e[bN].getPayload(),bF=class{constructor(){bZ(this,this)}getPayload(){return this.payload||[]}},bz=class extends bF{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,yO.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new bz(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return yO.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,yO.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},bV=class extends bz{constructor(e){super(0),this._string=null,this._toString=bt({output:[e,e]})}static create(e){return new bV(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(yO.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=bt({output:[this.getValue(),e]})),this._value=0,super.reset()}},bI={dependencies:null},bB=class extends bF{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return yM(this.source,(n,r)=>{bR(n)?t[r]=n.getValue(e):bi(n)?t[r]=bo(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&yC(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return yM(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){bI.dependencies&&bi(e)&&bI.dependencies.add(e);let t=bL(e);t&&yC(t,e=>this.add(e))}},bH=class extends bB{constructor(e){super(e)}static create(e){return new bH(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(bU)),!0)}};function bU(e){let t=bO(e)?bV:bz;return t.create(e)}function bW(e){let t=bD(e);return t?t.constructor:yO.arr(e)?bH:bO(e)?bV:bz}var bq=(e,t)=>{let n=!yO.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,Z.forwardRef)((r,i)=>{let o=(0,Z.useRef)(null),a=n&&(0,Z.useCallback)(e=>{o.current=(i&&(yO.fun(i)?i(e):i.current=e),e)},[i]),[s,l]=function(e,t){let n=new Set;return bI.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new bB(e),bI.dependencies=null,[e,n]}(r,t),u=bM(),c=()=>{let e=o.current;if(n&&!e)return;let r=!!e&&t.applyAnimatedValues(e,s.getValue(!0));!1===r&&u()},d=new b$(c,l),f=(0,Z.useRef)();b_(()=>(f.current=d,yC(l,e=>bc(e,d)),()=>{f.current&&(yC(f.current.deps,e=>bd(e,f.current)),ys.cancel(f.current.update))})),(0,Z.useEffect)(c,[]),bA(()=>()=>{let e=f.current;yC(e.deps,t=>bd(t,e))});let h=t.getComponentProps(s.getValue());return Z.createElement(e,{...h,ref:a})})},b$=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&ys.write(this.update)}},bY=Symbol.for("AnimatedComponent"),bG=e=>yO.str(e)?e:e&&yO.str(e.displayName)?e.displayName:yO.fun(e)&&e.name||null;function bK(e,...t){return yO.fun(e)?e(...t):e}var bX=(e,t)=>!0===e||!!(t&&e&&(yO.fun(e)?e(t):yA(e).includes(t))),bQ=(e,t)=>yO.obj(e)?t&&e[t]:e,bJ=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,b0=e=>e,b1=(e,t=b0)=>{let n=b2;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);yO.und(n)||(r[i]=n)}return r},b2=["config","onProps","onStart","onChange","onPause","onResume","onRest"],b4={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function b3(e){let t=function(e){let t={},n=0;if(yM(e,(e,r)=>{!b4[r]&&(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return yM(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function b5(e){return e=bo(e),yO.arr(e)?e.map(b5):bO(e)?yo.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function b6(e){for(let t in e)return!0;return!1}function b8(e){return yO.fun(e)||yO.arr(e)&&yO.obj(e[0])}function b7(e,t){e.ref?.delete(e),t?.delete(e)}function b9(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var xe={tension:170,friction:26,mass:1,damping:1,easing:e=>e,clamp:!1},xt=class{constructor(){this.velocity=0,Object.assign(this,xe)}};function xn(e,t){if(yO.und(t.decay)){let n=!yO.und(t.tension)||!yO.und(t.friction);!n&&yO.und(t.frequency)&&yO.und(t.damping)&&yO.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var xr=[],xi=class{constructor(){this.changed=!1,this.values=xr,this.toValues=null,this.fromValues=xr,this.config=new xt,this.immediate=!1}};function xo(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{let l,u;let c=bX(n.cancel??r?.cancel,t);if(c)h();else{yO.und(n.pause)||(i.paused=bX(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||bX(e,t)),l=bK(n.delay||0,t),e?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),l=u.time-ys.now()}function f(){l>0&&!yo.skipAnimation?(i.delayed=!0,u=ys.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(u)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{o.start({...n,callId:e,cancel:c},a)}catch(e){s(e)}}})}var xa=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?xu(e.get()):t.every(e=>e.noop)?xs(e.get()):xl(e.get(),t.every(e=>e.finished)),xs=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),xl=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),xu=e=>({value:e,cancelled:!0,finished:!1});function xc(e,t,n,r){let{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{let u,c,d;n.asyncId=i,n.asyncTo=e;let f=b1(t,(e,t)=>"onRest"===t?void 0:e),h=new Promise((e,t)=>(u=e,c=t)),p=e=>{let t=i<=(n.cancelId||0)&&xu(r)||i!==n.asyncId&&xl(r,!1);if(t)throw e.result=t,c(e),e},m=(e,t)=>{let o=new xf,a=new xh;return(async()=>{if(yo.skipAnimation)throw xd(n),a.result=xl(r,!1),c(a),a;p(o);let s=yO.obj(e)?{...e}:{...t,to:e};s.parentId=i,yM(f,(e,t)=>{yO.und(s[t])&&(s[t]=e)});let l=await r.start(s);return p(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()};if(yo.skipAnimation)return xd(n),xl(r,!1);try{let t;t=yO.arr(e)?(async e=>{for(let t of e)await m(t)})(e):Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([t.then(u),h]),d=xl(r.get(),!0,!1)}catch(e){if(e instanceof xf)d=e.result;else if(e instanceof xh)d=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return yO.fun(a)&&ys.batchedUpdates(()=>{a(d,r,r.item)}),d})():l}function xd(e,t){yT(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var xf=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},xh=class extends Error{constructor(){super("SkipAnimationSignal")}},xp=e=>e instanceof xv,xm=1,xv=class extends bl{constructor(){super(...arguments),this.id=xm++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=bD(this);return e&&e.getValue()}to(...e){return yo.to(this,e)}interpolate(...e){return bk(`${bE}The "interpolate" function is deprecated in v9 (use "to" instead)`),yo.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){bs(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||yB.sort(this),bs(this,{type:"priority",parent:this,priority:e})}},xg=Symbol.for("SpringPhase"),xy=e=>(1&e[xg])>0,xb=e=>(2&e[xg])>0,xx=e=>(4&e[xg])>0,xw=(e,t)=>t?e[xg]|=3:e[xg]&=-3,xE=(e,t)=>t?e[xg]|=4:e[xg]&=-5,xj=class extends xv{constructor(e,t){if(super(),this.animation=new xi,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!yO.und(e)||!yO.und(t)){let n=yO.obj(e)?{...e}:{...t,from:e};yO.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(xb(this)||this._state.asyncTo)||xx(this)}get goal(){return bo(this.animation.to)}get velocity(){let e=bD(this);return e instanceof bz?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return xy(this)}get isAnimating(){return xb(this)}get isPaused(){return xx(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:o}=r,a=bL(r.to);!a&&bi(r.to)&&(i=yA(bo(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==bV?1:a?a[l].lastPosition:i[l],c=r.immediate,d=u;if(!c){let t;if(d=s.lastPosition,o.tension<=0){s.done=!0;return}let n=s.elapsedTime+=e,i=r.fromValues[l],a=null!=s.v0?s.v0:s.v0=yO.arr(o.velocity)?o.velocity[l]:o.velocity,f=o.precision||(i==u?.005:Math.min(1,.001*Math.abs(u-i)));if(yO.und(o.duration)){if(o.decay){let e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*n);d=i+a/(1-e)*(1-r),c=Math.abs(s.lastPosition-d)<=f,t=a*r}else{t=null==s.lastVelocity?a:s.lastVelocity;let n=o.restVelocity||f/10,r=o.clamp?0:o.bounce,l=!yO.und(r),h=i==u?s.v0>0:in)&&(c=Math.abs(u-d)<=f));++e){l&&(d==u||d>u==h)&&(t=-t*r,d=u);let e=-(1e-6*o.tension)*(d-u),n=-(.001*o.friction)*t,i=(e+n)/o.mass;t+=1*i,d+=1*t}}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,s.durationProgress>0&&(s.elapsedTime=o.duration*s.durationProgress,n=s.elapsedTime+=e)),r=(r=(o.progress||0)+n/this._memoizedDuration)>1?1:r<0?0:r,s.durationProgress=r),t=((d=i+o.easing(r)*(u-i))-s.lastPosition)/e,c=1==r}s.lastVelocity=t,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}a&&!a[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,o.round)&&(n=!0)});let s=bD(this),l=s.getValue();if(t){let e=bo(r.to);(l!==e||n)&&!o.decay?(s.setValue(e),this._onChange(e)):n&&o.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return ys.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(xb(this)){let{to:e,config:t}=this.animation;ys.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){let t=this.queue||(this.queue=[]);return t.push(e),this}start(e,t){let n;return yO.und(e)?(n=this.queue||[],this.queue=[]):n=[yO.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>{let t=this._update(e);return t})).then(e=>xa(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),xd(this._state,e&&this._lastCallId),ys.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:n,from:r}=e;(null==(n=yO.obj(n)?n[t]:n)||b8(n))&&(n=void 0),null==(r=yO.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return xy(this)||(e.reverse&&([n,r]=[r,n]),r=bo(r),yO.und(r)?bD(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,b1(e,(e,t)=>/^on/.test(t)?bQ(e,n):e)),xM(this,e,"onProps"),xA(this,"onProps",e,this);let i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let o=this._state;return xo(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{xx(this)||(xE(this,!0),yP(o.pauseQueue),xA(this,"onPause",xl(this,xk(this,this.animation.to)),this))},resume:()=>{xx(this)&&(xE(this,!1),xb(this)&&this._resume(),yP(o.resumeQueue),xA(this,"onResume",xl(this,xk(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=xS(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(xu(this));let r=!yO.und(e.to),i=!yO.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(xu(this));this._lastToId=t.callId}let{key:o,defaultProps:a,animation:s}=this,{to:l,from:u}=s,{to:c=l,from:d=u}=e;i&&!r&&(!t.default||yO.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!y_(d,u);f&&(s.from=d),d=bo(d);let h=!y_(c,l);h&&this._focus(c);let p=b8(t.to),{config:m}=s,{decay:v,velocity:g}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(xn(n={...n},t),t={...n,...t}),xn(e,t),Object.assign(e,t),xe)null==e[r]&&(e[r]=xe[r]);let{frequency:r,damping:i}=e,{mass:o}=e;yO.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r)}(m,bK(t.config,o),t.config!==a.config?bK(a.config,o):void 0);let y=bD(this);if(!y||yO.und(c))return n(xl(this,!0));let b=yO.und(t.reset)?i&&!t.default:!yO.und(d)&&bX(t.reset,o),x=b?d:this.get(),w=b5(c),E=yO.num(w)||yO.arr(w)||bO(w),j=!p&&(!E||bX(a.immediate||t.immediate,o));if(h){let e=bW(c);if(e!==y.constructor){if(j)y=this._set(w);else throw Error(`Cannot animate between ${y.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let k=y.constructor,S=bi(c),O=!1;if(!S){let e=b||!xy(this)&&f;(h||e)&&(S=!(O=y_(b5(x),w))),(y_(s.immediate,j)||j)&&y_(m.decay,v)&&y_(m.velocity,g)||(S=!0)}if(O&&xb(this)&&(s.changed&&!b?S=!0:S||this._stop(l)),!p&&((S||bi(l))&&(s.values=y.getPayload(),s.toValues=bi(c)?null:k==bV?[1]:yA(w)),s.immediate==j||(s.immediate=j,j||b||this._set(l)),S)){let{onRest:e}=s;yC(xC,e=>xM(this,t,e));let r=xl(this,xk(this,l));yP(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&ys.batchedUpdates(()=>{s.changed=!b,e?.(r,this),b?bK(a.onRest,r):s.onStart?.(r,this)})}b&&this._set(x),p?n(xc(t.to,t,this._state,this)):S?this._start():xb(this)&&!h?this._pendingCalls.add(n):n(xs(x))}_focus(e){let t=this.animation;e!==t.to&&(ba(this)&&this._detach(),t.to=e,ba(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;bi(t)&&(bc(t,this),xp(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;bi(e)&&bd(e,this)}_set(e,t=!0){let n=bo(e);if(!yO.und(n)){let e=bD(this);if(!e||!y_(n,e.getValue())){let r=bW(n);e&&e.constructor==r?e.setValue(n):bZ(this,r.create(n)),e&&ys.batchedUpdates(()=>{this._onChange(n,t)})}}return bD(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,xA(this,"onStart",xl(this,xk(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),bK(this.animation.onChange,e,this)),bK(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;bD(this).reset(bo(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),xb(this)||(xw(this,!0),xx(this)||this._resume())}_resume(){yo.skipAnimation?this.finish():yB.start(this)}_stop(e,t){if(xb(this)){xw(this,!1);let n=this.animation;yC(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),bs(this,{type:"idle",parent:this});let r=t?xu(this.get()):xl(this.get(),xk(this,e??n.to));yP(this._pendingCalls,r),n.changed&&(n.changed=!1,xA(this,"onRest",r,this))}}};function xk(e,t){let n=b5(t),r=b5(e.get());return y_(r,n)}function xS(e,t=e.loop,n=e.to){let r=bK(t);if(r){let i=!0!==r&&b3(r),o=(i||e).reverse,a=!i||i.reset;return xO({...e,loop:t,default:!1,pause:void 0,to:!o||b8(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function xO(e){let{to:t,from:n}=e=b3(e),r=new Set;return yO.obj(t)&&x_(t,r),yO.obj(n)&&x_(n,r),e.keys=r.size?Array.from(r):null,e}function x_(e,t){yM(e,(e,n)=>null!=e&&t.add(n))}var xC=["onStart","onRest","onChange","onPause","onResume"];function xM(e,t,n){e.animation[n]=t[n]!==bJ(t,n)?bQ(t[n],e.key):void 0}function xA(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var xT=["onStart","onChange","onRest"],xP=1,xN=class{constructor(e,t){this.id=xP++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];yO.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(xO(e)),this}start(e){let{queue:t}=this;return(e?t=yA(e).map(xO):this.queue=[],this._flush)?this._flush(this,t):(xV(this,t),xR(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;yC(yA(t),t=>n[t].stop(!!e))}else xd(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(yO.und(e))this.start({pause:!0});else{let t=this.springs;yC(yA(e),e=>t[e].pause())}return this}resume(e){if(yO.und(e))this.start({pause:!1});else{let t=this.springs;yC(yA(e),e=>t[e].resume())}return this}each(e){yM(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,yT(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&yT(t,([e,t])=>{t.value=a,e(t,this,this._item)}),o&&(this._started=!1,yT(n,([e,t])=>{t.value=a,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}ys.onFrame(this._onFrame)}};function xR(e,t){return Promise.all(t.map(t=>xD(e,t))).then(t=>xa(e,t))}async function xD(e,t,n){let{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=yO.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);let c=yO.arr(i)||yO.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):yC(xT,n=>{let r=t[n];if(yO.fun(r)){let i=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}});let d=e._state;!d.paused===t.pause?(d.paused=t.pause,yP(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let f=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),h=!0===t.cancel||!0===bJ(t,"cancel");(c||h&&d.asyncId)&&f.push(xo(++e._lastAsyncId,{props:t,state:d,actions:{pause:yk,resume:yk,start(t,n){h?(xd(d,e._lastAsyncId),n(xu(e))):(t.onRest=s,n(xc(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=xa(e,await Promise.all(f));if(a&&p.finished&&!(n&&p.noop)){let n=xS(t,a,i);if(n)return xV(e,[n]),xD(e,n,!0)}return l&&ys.batchedUpdates(()=>l(p,e,e.item)),p}function xZ(e,t){let n={...e.springs};return t&&yC(yA(t),e=>{yO.und(e.keys)&&(e=xO(e)),yO.obj(e.to)||(e={...e,to:void 0}),xz(n,e,e=>xF(e))}),xL(e,n),n}function xL(e,t){yM(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,bc(t,e))})}function xF(e,t){let n=new xj;return n.key=e,t&&bc(n,t),n}function xz(e,t,n){t.keys&&yC(t.keys,r=>{let i=e[r]||(e[r]=n(r));i._prepareNode(t)})}function xV(e,t){yC(t,t=>{xz(e.springs,t,t=>xF(t,e))})}var xI=({children:e,...t})=>{let n=(0,Z.useContext)(xB),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=function(e,t){let[n]=(0,Z.useState)(()=>({inputs:t,result:e()})),r=(0,Z.useRef)(),i=r.current,o=i;if(o){let n=!!(t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}(()=>({pause:r,immediate:i}),[r,i]);let{Provider:o}=xB;return Z.createElement(o,{value:t},e)},xB=(Object.assign(xI,Z.createContext({})),xI.Provider._context=xI,xI.Consumer._context=xI,xI);xI.Provider=xB.Provider,xI.Consumer=xB.Consumer;var xH=()=>{let e=[],t=function(t){bS(`${bE}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);let r=[];return yC(e,(e,i)=>{if(yO.und(t))r.push(e.start());else{let o=n(t,e,i);o&&r.push(e.start(o))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return yC(e,e=>e.pause(...arguments)),this},t.resume=function(){return yC(e,e=>e.resume(...arguments)),this},t.set=function(t){yC(e,(e,n)=>{let r=yO.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return yC(e,(e,r)=>{if(yO.und(t))n.push(e.start());else{let i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return yC(e,e=>e.stop(...arguments)),this},t.update=function(t){return yC(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return yO.fun(e)?e(n,t):e};return t._getProps=n,t};function xU(e,t){let n=yO.fun(e),[[r],i]=function(e,t,n){let r=yO.fun(t)&&t;r&&!n&&(n=[]);let i=(0,Z.useMemo)(()=>r||3==arguments.length?xH():void 0,[]),o=(0,Z.useRef)(0),a=bM(),s=(0,Z.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=xZ(e,t),r=o.current>0&&!s.queue.length&&!Object.keys(n).some(t=>!e.springs[t]);return r?xR(e,t):new Promise(r=>{xL(e,n),s.queue.push(()=>{r(xR(e,t))}),a()})}}),[]),l=(0,Z.useRef)([...s.ctrls]),u=[],c=bP(e)||0;function d(e,n){for(let i=e;i{yC(l.current.slice(e,c),e=>{b7(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,Z.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=l.current.map((e,t)=>xZ(e,u[t])),h=(0,Z.useContext)(xI),p=bP(h),m=h!==p&&b6(h);b_(()=>{o.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],yC(e,e=>e())),yC(l.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(b9(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),bA(()=>()=>{yC(s.ctrls,e=>e.stop(!0))});let v=f.map(e=>({...e}));return i?[v,i]:v}(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}function xW(e,t,n){let r=yO.fun(t)&&t,{reset:i,sort:o,trail:a=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=(0,Z.useMemo)(()=>r||3==arguments.length?xH():void 0,[]),h=yA(e),p=[],m=(0,Z.useRef)(null),v=i?null:m.current;b_(()=>{m.current=p}),bA(()=>(yC(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{yC(m.current,e=>{e.expired&&clearTimeout(e.expirationId),b7(e.ctrl,f),e.ctrl.stop(!0)})}));let g=function(e,{key:t,keys:n=t},r){if(null===n){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&"leave"!==n.phase&&!t.has(n));return n?(t.add(n),n.key):xq++})}return yO.und(n)?e:yO.fun(n)?e.map(n):yA(n)}(h,r?r():t,v),y=i&&m.current||[];b_(()=>yC(y,({ctrl:e,item:t,key:n})=>{b7(e,f),bK(u,t,n)}));let b=[];if(v&&yC(v,(e,t)=>{e.expired?(clearTimeout(e.expirationId),y.push(e)):~(t=b[t]=g.indexOf(e.key))&&(p[t]=e)}),yC(h,(e,t)=>{p[t]||(p[t]={key:g[t],item:e,phase:"mount",ctrl:new xN},p[t].ctrl.item=e)}),b.length){let e=-1,{leave:n}=r?r():t;yC(b,(t,r)=>{let i=v[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}yO.fun(o)&&p.sort((e,t)=>o(e.item,t.item));let x=-a,w=bM(),E=b1(t),j=new Map,k=(0,Z.useRef)(new Map),S=(0,Z.useRef)(!1);yC(p,(e,n)=>{let i,o;let u=e.key,f=e.phase,h=r?r():t,p=bK(h.delay||0,u);if("mount"==f)i=h.enter,o="enter";else{let e=0>g.indexOf(u);if("leave"!=f){if(e)i=h.leave,o="leave";else{if(!(i=h.update))return;o="update"}}else{if(e)return;i=h.enter,o="enter"}}if(i=bK(i,e.item,n),!(i=yO.obj(i)?b3(i):{to:i}).config){let t=d||E.config;i.config=bK(t,e.item,n,o)}x+=a;let y={...E,delay:p+x,ref:c,immediate:h.immediate,reset:!1,...i};if("enter"==o&&yO.und(y.from)){let i=r?r():t,o=yO.und(i.initial)||v?i.from:i.initial;y.from=bK(o,e.item,n)}let{onResolve:b}=y;y.onResolve=e=>{bK(b,e);let t=m.current,n=t.find(e=>e.key===u);if(n){if(e.cancelled&&"update"!=n.phase)return;if(n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){let t=bK(s,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(w,r));return}}}e&&t.some(e=>e.expired)&&(k.current.delete(n),l&&(S.current=!0),w())}}};let O=xZ(e.ctrl,y);"leave"===o&&l?k.current.set(e,{phase:o,springs:O,payload:y}):j.set(e,{phase:o,springs:O,payload:y})});let O=(0,Z.useContext)(xI),_=bP(O),C=O!==_&&b6(O);b_(()=>{C&&yC(p,e=>{e.ctrl.start({default:O})})},[O]),yC(j,(e,t)=>{if(k.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),b_(()=>{yC(k.current.size?k.current:j,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),C&&"enter"==e&&r.start({default:O}),t&&(b9(r,t.ref),(r.ref||f)&&!S.current?r.update(t):(r.start(t),S.current&&(S.current=!1)))})},i?void 0:n);let M=e=>Z.createElement(Z.Fragment,null,p.map((t,n)=>{let{springs:r}=j.get(t)||t.ctrl,i=e({...r},t.item,t,n);return i&&i.type?Z.createElement(i.type,{...i.props,key:yO.str(t.key)||yO.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[M,f]:M}var xq=1,x$=class extends xv{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=bt(...t);let n=this._get(),r=bW(n);bZ(this,r.create(n))}advance(e){let t=this._get(),n=this.get();y_(t,n)||(bD(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&xG(this._active)&&xK(this)}_get(){let e=yO.arr(this.source)?this.source.map(bo):yA(bo(this.source));return this.calc(...e)}_start(){this.idle&&!xG(this._active)&&(this.idle=!1,yC(bL(this),e=>{e.done=!1}),yo.skipAnimation?(ys.batchedUpdates(()=>this.advance()),xK(this)):yB.start(this))}_attach(){let e=1;yC(yA(this.source),t=>{bi(t)&&bc(t,this),xp(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){yC(yA(this.source),e=>{bi(e)&&bd(e,this)}),this._active.clear(),xK(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=yA(this.source).reduce((e,t)=>Math.max(e,(xp(t)?t.priority:0)+1),0))}};function xY(e){return!1!==e.idle}function xG(e){return!e.size||Array.from(e).every(xY)}function xK(e){e.idle||(e.idle=!0,yC(bL(e),e=>{e.done=!0}),bs(e,{type:"idle",parent:e}))}var xX=(e,...t)=>new x$(e,t);yo.assign({createStringInterpolator:bw,to:(e,t)=>new x$(e,t)}),yB.advance;var xQ=/^--/,xJ={},x0={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},x1=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),x2=["Webkit","Ms","Moz","O"];x0=Object.keys(x0).reduce((e,t)=>(x2.forEach(n=>e[x1(n,t)]=e[t]),e),x0);var x4=/^(matrix|translate|scale|rotate|skew)/,x3=/^(translate)/,x5=/^(rotate|skew)/,x6=(e,t)=>yO.num(e)&&0!==e?e+t:e,x8=(e,t)=>yO.arr(e)?e.every(e=>x8(e,t)):yO.num(e)?e===t:parseFloat(e)===t,x7=class extends bB{constructor({x:e,y:t,z:n,...r}){let i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(e=>[`translate3d(${e.map(e=>x6(e,"px")).join(",")})`,x8(e,0)])),yM(r,(e,t)=>{if("transform"===t)i.push([e||""]),o.push(e=>[e,""===e]);else if(x4.test(t)){if(delete r[t],yO.und(e))return;let n=x3.test(t)?"px":x5.test(t)?"deg":"";i.push(yA(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${x6(i,n)})`,x8(i,0)]:e=>[`${t}(${e.map(e=>x6(e,n)).join(",")})`,x8(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new x9(i,o)),super(r)}},x9=class extends bl{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return yC(this.inputs,(n,r)=>{let i=bo(n[0]),[o,a]=this.transforms[r](yO.arr(i)?i:n.map(bo));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){1==e&&yC(this.inputs,e=>yC(e,e=>bi(e)&&bc(e,this)))}observerRemoved(e){0==e&&yC(this.inputs,e=>yC(e,e=>bi(e)&&bd(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),bs(this,e)}};yo.assign({batchedUpdates:tf.unstable_batchedUpdates,createStringInterpolator:bw,colors:{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}});var we=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new bB(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{let t=bG(e)||"Anonymous";return(e=yO.str(e)?o[e]||(o[e]=bq(e,i)):e[bY]||(e[bY]=bq(e,i))).displayName=`Animated(${t})`,e};return yM(e,(t,n)=>{yO.arr(e)&&(n=bG(t)),o[n]=o(t)}),{animated:o}})(["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"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:i,scrollTop:o,scrollLeft:a,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(t=>n||e.hasAttribute(t)?t:xJ[t]||(xJ[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==i&&(e.textContent=i),r)if(r.hasOwnProperty(t)){var d;let n=null==(d=r[t])||"boolean"==typeof d||""===d?"":"number"!=typeof d||0===d||xQ.test(t)||x0.hasOwnProperty(t)&&x0[t]?(""+d).trim():d+"px";xQ.test(t)?e.style.setProperty(t,n):e.style[t]=n}c.forEach((t,n)=>{e.setAttribute(t,u[n])}),void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new x7(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated,wt=n(23442),wn=(0,Z.createContext)({});function wr(e){var t=e.x,n=e.y,r=e.dx,i=e.dy,o=e.children,a=(0,Z.useMemo)(function(){return{x:t,y:n,dx:r,dy:i}},[t,n,r,i]);return Z.createElement(wn.Provider,{value:a},o)}function wi(){return(wi=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wc),p=(0,Z.useContext)(ws)||{},m=p.innerHeight,v=p.innerWidth,g=p.margin,y=p.xScale,b=p.yScale,x=p.dataRegistry,w=(0,Z.useMemo)(function(){return y?wl(y):0},[y]),E=(0,Z.useMemo)(function(){return b?wl(b):0},[b]);if((!s||!l)&&!a)return console.warn("[@visx/xychart/BaseAnnotation]: dataKey or x/yAccessors must be specified."),null;var j=s&&l||null==a?null:null==x?void 0:x.get(a),k=s||(null==j?void 0:j.xAccessor),S=l||(null==j?void 0:j.yAccessor);if(!y||!b||!v||!m||!k||!S||!g)return null;var O=(null!=(t=(0,mb.Z)(y(k(o))))?t:NaN)+w/2,_=(null!=(n=(0,mb.Z)(b(S(o))))?n:NaN)+E/2,C=O+c+16>g.left+v?-c:c,M=_+f+16>g.top+m?-f:f;return wu(O)&&wu(_)?Z.createElement(r,wd({width:v,height:m},h,{x:O,y:_,dx:C,dy:M}),i):null}wf.propTypes={dataKey:pk().string,xAccessor:pk().func,yAccessor:pk().func};var wh=["x","y","AnnotationComponent"],wp=["editable"];function wm(){return(wm=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function wg(e){var t=e.x,n=void 0===t?0:t,r=e.y,i=void 0===r?0:r,o=e.AnnotationComponent,a=wv(e,wh),s=(0,Z.useRef)({x:n,y:i}),l=xU({from:{x:s.current.x-n,y:s.current.y-i},to:{x:0,y:0},reset:!0});return(0,Z.useEffect)(function(){s.current={x:n,y:i}},[n,i]),Z.createElement(we.g,{transform:xX([l.x,l.y],function(e,t){return"translate("+e+", "+t+")"})},Z.createElement(o,wm({x:n,y:i},a)))}function wy(e){var t=e.editable,n=wv(e,wp),r=(0,Z.useCallback)(function(e){return Z.createElement(wg,wm({AnnotationComponent:t?wa:wr},e))},[t]);return Z.createElement(wf,wm({AnnotationComponent:r},n))}wy.propTypes={editable:pk().bool};var wb=n(12766),wx=["d","stroke","fill"];function ww(){return(ww=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wx),o=(0,Z.useRef)(t),a=(0,Z.useCallback)(gR()(function(e){o.current=e},50),[]),s=(0,wb.interpolatePath)(o.current,t);a(t);var l=xU({from:{t:0},to:{t:1},reset:!0,delay:0}).t,u=xU({stroke:void 0===n?"transparent":n,fill:void 0===r?"transparent":r});return Z.createElement(we.path,ww({className:"visx-path",d:l.to(s),stroke:u.stroke,fill:u.fill},i))}var wj=n(12935),wk=n(12151);function wS(){return(wS=Object.assign?Object.assign.bind():function(e){for(var t=1;tt?1:e>=t?0:NaN}function wZ(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;0>n(e[o],t)?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>wD(e(t),n)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);let a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}let wL=wZ(wD);wL.right;let wF=wL.left;function wz(e){var t,n,r=e.scale,i=e.accessor,o=e.scaledValue,a=e.data;if("invert"in r&&"function"==typeof r.invert){var s=wZ(i).left,l=Number(r.invert(o)),u=s(a,l),c=a[u-1],d=a[u];n=(t=!c||Math.abs(l-i(c))>Math.abs(l-i(d))?d:c)===c?u-1:u}else{if(!("step"in r)||void 0===r.step)return console.warn("[visx/xychart/findNearestDatum] encountered incompatible scale type, bailing"),null;var f=r.domain(),h=r.range().map(Number),p=[].concat(h).sort(function(e,t){return e-t}),m=wF(function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=Array(i);++r=0||(i[n]=e[n]);return i}(e,wX),O=(0,Z.useContext)(ws),_=O.colorScale,C=O.theme,M=O.horizontal,A=(0,Z.useMemo)(function(){return x?w_(w,x):void 0},[w,x]),T=(0,Z.useMemo)(function(){return w_(w,b)},[w,b]),P=(0,Z.useMemo)(function(){return j?w_(k,j):void 0},[k,j]),N=(0,Z.useMemo)(function(){return w_(k,E)},[k,E]),R=(0,Z.useCallback)(function(e){return wu(w(b(e)))&&wu(k(E(e)))},[w,b,k,E]),D=null!=(t=null!=(n=null==_?void 0:_(l))?n:null==C?void 0:null==(r=C.colors)?void 0:r[0])?t:"#222",L="AREASERIES_EVENT_SOURCE-"+l,F=wq({dataKey:l,enableEvents:void 0===v||v,onBlur:c,onFocus:d,onPointerMove:f,onPointerOut:h,onPointerUp:p,onPointerDown:m,source:L,allowedSources:[wM,L]}),z=(0,Z.useMemo)(function(){var e=wC(M?w:k);return M?{x0:null!=A?A:e,x1:T,y:N}:{x:T,y0:null!=P?P:e,y1:N}},[w,k,M,T,N,A,P]),V=!!(d||c),I=(0,Z.useCallback)(function(e){var t=e.glyphs;return V?t.map(function(e){return Z.createElement(Z.Fragment,{key:e.key},wK(wQ({},e,{color:"transparent",onFocus:F.onFocus,onBlur:F.onBlur})))}):null},[V,F.onFocus,F.onBlur]);return Z.createElement(Z.Fragment,null,Z.createElement(wj.Z,wQ({},z,S,{curve:a,defined:R}),function(e){var t=e.path;return Z.createElement(o,wQ({className:"visx-area",stroke:"transparent",fill:D,strokeLinecap:"round"},S,{d:t(s)||""},F))}),y&&Z.createElement(wk.Z,wQ({x:T,y:N,defined:R,curve:a},u),function(e){var t=e.path;return Z.createElement(o,wQ({className:"visx-line",fill:"transparent",stroke:D,strokeWidth:2,pointerEvents:"none",strokeLinecap:"round"},u,{d:t(s)||""}))}),V&&Z.createElement(wY,{dataKey:l,data:s,xAccessor:b,yAccessor:E,xScale:w,yScale:k,renderGlyphs:I}))}wJ.propTypes={renderLine:pk().bool};var w0=wO(wJ);function w1(){return(w1=Object.assign?Object.assign.bind():function(e){for(var t=1;t1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o=0;)n[t]=t;return n}function w7(e,t){return e[t]}function w9(e){let t=[];return t.key=e,t}Array.prototype.slice;var Ee=n(74322),Et=n(58543);function En(e,t){let n,r;if(void 0===t)for(let t of e)null!=t&&(void 0===n?t>=t&&(n=r=t):(n>t&&(n=t),r=o&&(n=r=o):(n>o&&(n=o),r=0?"positiveSum":"negativeSum"]+=i})}}),Object.values(e)},[o,l]),d=(0,Z.useMemo)(function(){var e=r?null:c.some(function(e){return e.negativeSum<0}),t=function(){var e=w5([]),t=w8,n=w6,r=w7;function i(i){var o,a,s,l=Array.from(e.apply(this,arguments),w9),u=l.length,c=-1;for(let e of i)for(a=0,++c;a0&&0===r&&(o?i.xScale=function(e){return e.domain(En(e.domain().concat(f)))}:i.yScale=function(e){return e.domain(En(e.domain().concat(f)))}),i}).filter(function(e){return e}))),function(){return s(u)}},[u,f,o,d,a,s,l]),{seriesChildren:l,dataKeys:u,stackedData:d}}function El(e,t,n){var r,i,o,a,s=e.xScale,l=e.yScale,u=e.point,c=(n?wI:wV)(e),d=(null==c?void 0:c.index)==null?null:t[c.index];return c&&d&&u?{index:c.index,datum:d,distanceX:n&&u.x>=(null!=(r=s((0,w3.l8)(c.datum)))?r:1/0)&&u.x<=(null!=(i=s((0,w3.xf)(c.datum)))?i:-1/0)?0:c.distanceX,distanceY:n?c.distanceY:u.y<=(null!=(o=l((0,w3.l8)(c.datum)))?o:-1/0)&&u.y>=(null!=(a=l((0,w3.xf)(c.datum)))?a:1/0)?0:c.distanceY}:null}var Eu=["data","dataKey","xAccessor","yAccessor","curve","PathComponent","lineProps","renderLine"];function Ec(){return(Ec=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(a,Eu)),u=Ec({fill:null!=(n=null!=(r=null==g?void 0:g(e.key))?r:null==E?void 0:null==(i=E.colors)?void 0:i[0])?n:"#222"},l);return{key:t+"-"+e.key,accessors:_,data:e,areaProps:u,lineProps:s}})},[O,_,g,S,E]),M=(0,Z.useCallback)(function(e){var t,n,r=null==(t=S.find(function(t){return t.props.dataKey===e.dataKey}))?void 0:null==(n=t.props)?void 0:n.data;return r?El(e,r,b):null},[S,b]),A="AREASTACK_EVENT_SOURCE-"+k.join("-"),T=wq({dataKey:k,enableEvents:void 0===o||o,findNearestDatum:M,onBlur:s,onFocus:l,onPointerMove:u,onPointerOut:c,onPointerUp:d,onPointerDown:f,source:A,allowedSources:[wM,A]}),P=!!(l||s),N=(0,Z.useCallback)(function(e){var t=e.glyphs;return P?t.map(function(e){return Z.createElement(Z.Fragment,{key:e.key},wK(Ec({},e,{color:"transparent",onFocus:T.onFocus,onBlur:T.onBlur})))}):null},[P,T.onFocus,T.onBlur]);return!k.some(function(e){return null==y.get(e)})&&x&&w&&g?Z.createElement("g",{className:"visx-area-stack"},C.map(function(e){return Z.createElement(wj.Z,Ec({key:e.key,curve:i},e.accessors),function(t){var r=t.path;return Z.createElement(n,Ec({className:"visx-area",stroke:"transparent",d:r(e.data)||""},e.areaProps,T))})}),m&&C.map(function(e){return Z.createElement(w4.Z,Ec({key:"line-"+e.key,x:e.accessors.x||e.accessors.x1,y:e.accessors.y||e.accessors.y1,defined:e.accessors.defined,curve:i},e.lineProps),function(t){var r=t.path;return Z.createElement(n,Ec({className:"visx-line",fill:"transparent",stroke:e.areaProps.fill,strokeWidth:2,pointerEvents:"none"},e.lineProps,{d:r(e.data)||""}))})}),P&&C.map(function(e,t){var n=C[C.length-t-1];return Z.createElement(wY,{key:"glyphs-"+n.key,dataKey:n.key,data:n.data,xAccessor:n.accessors.x||n.accessors.x1,yAccessor:n.accessors.y||n.accessors.y1,xScale:Ed,yScale:Ed,renderGlyphs:N})})):null}function Eh(){return(Eh=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Ev),c=(0,Z.useContext)(ws),d=c.theme,f=c.xScale,h=c.yScale,p=c.margin,m=c.width,v=c.height,g=u.orientation,y=(0,Z.useMemo)(function(){var e,t,n,r;return"left"===g||"right"===g?null==d?void 0:null==(e=d.axisStyles)?void 0:null==(t=e.y)?void 0:t[g]:null==d?void 0:null==(n=d.axisStyles)?void 0:null==(r=n.x)?void 0:r[g]},[d,g]),b=u.tickLabelProps,x=(0,Z.useMemo)(function(){return b||y?function(e,t,n){return Eg({},null==y?void 0:y.tickLabel,{width:"left"===g||"right"===g?null==p?void 0:p[g]:void 0},null==b?void 0:b(e,t,n))}:void 0},[b,y,g,p]),w="bottom"===g?(null!=v?v:0)-(null!=(t=null==p?void 0:p.bottom)?t:0):"top"===g&&null!=(n=null==p?void 0:p.top)?n:0,E="left"===g?null!=(r=null==p?void 0:p.left)?r:0:"right"===g?(null!=m?m:0)-(null!=(i=null==p?void 0:p.right)?i:0):0,j="left"===g||"right"===g?h:f;return j?Z.createElement(l,Eg({top:w,left:E,labelProps:null==y?void 0:y.axisLabel,stroke:null==y?void 0:null==(o=y.axisLine)?void 0:o.stroke,strokeWidth:null==y?void 0:null==(a=y.axisLine)?void 0:a.strokeWidth,tickLength:null==y?void 0:y.tickLength,tickStroke:null==y?void 0:null==(s=y.tickLine)?void 0:s.stroke},u,{tickLabelProps:x,scale:j})):null}function Eb(){return(Eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=h&&l.y<=p;return EE({},u,{distanceX:0,distanceY:m?0:Math.abs(l.y-(h+p)/2)})}var v=a(i(u.datum)),g=(null!=v?v:1/0)+(null!=c?c:1/0),y=g+d,b=l.x>=g&&l.x<=y;return EE({},u,{distanceY:0,distanceX:b?0:Math.abs(l.x-(g+y)/2)})}(e,j,v)},[j,v]),S="BARGROUP_EVENT_SOURCE-"+E.join("-")+"}",O=wq({dataKey:E,enableEvents:void 0===f||f,findNearestDatum:k,onBlur:a,onFocus:s,onPointerMove:l,onPointerOut:u,onPointerUp:c,onPointerDown:d,source:S,allowedSources:[wM,S]}),_=(0,Z.useMemo)(function(){return b?wC(b):0},[b]),C=(0,Z.useMemo)(function(){return x?wC(x):0},[x]),M=E.map(function(e){return m.get(e)});if(M.some(function(e){return null==e})||!b||!x||!p)return null;var A=wl(j),T=M.map(function(e){var t,n=e.xAccessor,r=e.yAccessor,i=e.data,o=e.key,a=function(e){var t,i;return v?(null!=(t=b(n(e)))?t:NaN)-_:(null!=(i=x(r(e)))?i:NaN)-C},s=v?function(e){var t;return null!=(t=x(r(e)))?t:NaN}:function(e){var t;return null!=(t=b(n(e)))?t:NaN},l=null!=(t=j(o))?t:0,u=v?function(e){return _+Math.min(0,a(e))}:function(e){return s(e)+l},c=v?function(e){return s(e)+l}:function(e){return C+Math.min(0,a(e))},d=v?function(e){return Math.abs(a(e))}:function(){return A},f=v?function(){return A}:function(e){return Math.abs(a(e))},h=w.find(function(e){return e.props.dataKey===o}),m=(null==h?void 0:h.props)||{},g=m.colorAccessor;return{key:o,radius:m.radius,radiusAll:m.radiusAll,radiusBottom:m.radiusBottom,radiusLeft:m.radiusLeft,radiusRight:m.radiusRight,radiusTop:m.radiusTop,bars:i.map(function(e,t){var n,r=u(e);if(!wu(r))return null;var i=c(e);if(!wu(i))return null;var a=d(e);if(!wu(a))return null;var s=f(e);return wu(s)?{key:o+"-"+t,x:r,y:i,width:a,height:s,fill:null!=(n=null==g?void 0:g(e,t))?n:p(o)}:null}).filter(function(e){return e})}});return Z.createElement("g",{className:"visx-bar-group"},T.map(function(e){return e&&Z.createElement(o,Ej({horizontal:v,xScale:b,yScale:x},e,O,{key:e.key}))}))}Ek.propTypes={children:pk().node.isRequired,padding:pk().number,sortBars:pk().func};var ES=n(10897),EO=function(e){return!!(null==e?void 0:e.includes("url("))},E_=function(e){return EO(e)?"rgba(0,0,0,0.1)":e},EC=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"],EM=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"];function EA(){return(EA=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function EP(e){return{x:e.x,y:e.y,width:e.width,height:e.height,fill:E_(e.fill),opacity:1}}function EN(e){var t=e.bars,n=(e.xScale,e.yScale,e.horizontal,e.radius),r=e.radiusAll,i=e.radiusTop,o=e.radiusRight,a=e.radiusBottom,s=e.radiusLeft,l=ET(e,EC);return Z.createElement(Z.Fragment,null,t.map(function(e){var t=e.key,u=e.fill,c=e.x,d=e.y,f=e.width,h=e.height;return Z.createElement(ES.Z,{key:t,x:c,y:d,width:f,height:h,radius:n,all:r,top:i,right:o,bottom:a,left:s},function(e){var t=e.path;return Z.createElement(wE,EA({className:"visx-bar visx-bar-rounded",d:t,fill:u},l))})}))}function ER(e){var t,n,r,i=e.bars,o=e.xScale,a=e.yScale,s=e.horizontal,l=(e.radius,e.radiusAll,e.radiusTop,e.radiusRight,e.radiusBottom,e.radiusLeft,ET(e,EM)),u=xW(i,EA({},(n=(t={horizontal:s,scale:s?o:a}).scale,r=!!t.horizontal,(0,Z.useMemo)(function(){var e=wC(n);function t(t){var n=t.x,i=t.y,o=t.width,a=t.height;return{x:r?null!=e?e:0:n,y:r?i:null!=e?e:0,width:r?0:o,height:r?a:0,fill:E_(t.fill),opacity:0}}return{unique:!0,from:t,leave:t,enter:EP,update:EP,keys:function(e){return e.key}}},[n,r])))),c=!!(l.onFocus||l.onBlur);return Z.createElement(Z.Fragment,null,u(function(e,t,n){var r=e.x,i=e.y,o=e.width,a=e.height,s=e.fill,u=e.opacity,d=n.key;return null==t||null==d?null:Z.createElement(we.rect,EA({key:d,tabIndex:c?0:void 0,className:"visx-bar",x:r,y:i,width:o,height:a,fill:EO(t.fill)?t.fill:s,opacity:u},l))}))}function ED(e){return null==e.radius?Z.createElement(ER,e):Z.createElement(EN,EA({},e,{radius:e.radius}))}function EZ(){return(EZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,EF),w=(0,Z.useContext)(ws),E=w.colorScale,j=w.horizontal,k=w.theme,S=w.innerWidth,O=w.innerHeight,_=(0,Z.useMemo)(function(){return w_(g,v)},[g,v]),C=(0,Z.useMemo)(function(){return w_(b,y)},[b,y]),M=wl(j?b:g)||(j?void 0===O?0:O:void 0===S?0:S)/s.length*(1-Math.min(1,Math.max(0,void 0===o?.1:o))),A=(0,Z.useMemo)(function(){return g?wC(g):0},[g]),T=(0,Z.useMemo)(function(){return b?wC(b):0},[b]),P=null!=(t=null!=(n=null==E?void 0:E(l))?n:null==k?void 0:null==(r=k.colors)?void 0:r[0])?t:"#222",N=(0,Z.useMemo)(function(){var e=j?0:-M/2,t=j?-M/2:0;return s.map(function(n,r){var i,o=_(n)+e;if(!wu(o))return null;var s=C(n)+t;if(!wu(s))return null;var l=j?o-A:s-T;return wu(l)?{key:""+r,x:j?A+Math.min(0,l):o,y:j?s:T+Math.min(0,l),width:j?Math.abs(l):M,height:j?M:Math.abs(l),fill:null!=(i=null==a?void 0:a(n,r))?i:P}:null}).filter(function(e){return e})},[M,P,a,s,_,C,j,A,T]),R="BARSERIES_EVENT_SOURCE-"+l,D=wq({dataKey:l,enableEvents:void 0===m||m,onBlur:u,onFocus:c,onPointerMove:d,onPointerOut:f,onPointerUp:h,onPointerDown:p,source:R,allowedSources:[wM,R]});return Z.createElement("g",{className:"vx-bar-series"},Z.createElement(i,Ez({bars:N,horizontal:j,xScale:g,yScale:b},D,x)))}EV.propTypes={barPadding:pk().number,colorAccessor:pk().func};var EI=wO(EV),EB=["colorAccessor"];function EH(){return(EH=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,EB);return Z.createElement(EI,EH({},n,{colorAccessor:t,BarsComponent:ED}))}var EW=n(15590);function Eq(){return(Eq=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,EQ),i=(0,Z.useCallback)(function(e){return Z.createElement(EX,EJ({},e,{renderGlyph:n}))},[n]);return Z.createElement(wG,EJ({},r,{renderGlyphs:i}))}var E1=n(93353),E2=n(63962),E4=["rows","columns","GridRowsComponent","GridColumnsComponent"];function E3(){return(E3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,E4),l=(0,Z.useContext)(ws),u=l.theme,c=l.xScale,d=l.yScale,f=l.margin,h=l.innerWidth,p=l.innerHeight,m=null==u?void 0:u.gridStyles;return Z.createElement(Z.Fragment,null,n&&d&&null!=h&&Z.createElement(o,E3({left:null==f?void 0:f.left,lineStyle:m,width:h,scale:d},s)),i&&c&&null!=p&&Z.createElement(a,E3({top:null==f?void 0:f.top,lineStyle:m,height:p,scale:c},s)))}E5.propTypes={rows:pk().bool,columns:pk().bool};var E6=["animationTrajectory"];function E8(){return(E8=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,E6),r=(0,Z.useMemo)(function(){return function(e){return Z.createElement(E1.Z,E8({},e,{animationTrajectory:t}))}},[t]),i=(0,Z.useMemo)(function(){return function(e){return Z.createElement(E2.Z,E8({},e,{animationTrajectory:t}))}},[t]);return Z.createElement(E5,E8({GridRowsComponent:r,GridColumnsComponent:i},n))}var E9=["colorAccessor","curve","data","dataKey","onBlur","onFocus","onPointerMove","onPointerOut","onPointerUp","onPointerDown","enableEvents","xAccessor","xScale","yAccessor","yScale","PathComponent"];function je(){return(je=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,E9),E=(0,Z.useContext)(ws),j=E.colorScale,k=E.theme,S=(0,Z.useMemo)(function(){return w_(v,m)},[v,m]),O=(0,Z.useMemo)(function(){return w_(y,g)},[y,g]),_=(0,Z.useCallback)(function(e){return wu(v(m(e)))&&wu(y(g(e)))},[v,m,y,g]),C=null!=(t=null!=(n=null==j?void 0:j(s))?n:null==k?void 0:null==(r=k.colors)?void 0:r[0])?t:"#222",M="LINESERIES_EVENT_SOURCE-"+s,A=wq({dataKey:s,enableEvents:void 0===p||p,onBlur:l,onFocus:u,onPointerMove:c,onPointerOut:d,onPointerUp:f,onPointerDown:h,source:M,allowedSources:[wM,M]}),T=!!(u||l),P=(0,Z.useCallback)(function(e){var t=e.glyphs;return T?t.map(function(e){return Z.createElement(Z.Fragment,{key:e.key},wK(je({},e,{color:"transparent",onFocus:A.onFocus,onBlur:A.onBlur})))}):null},[T,A.onFocus,A.onBlur]);return Z.createElement(Z.Fragment,null,Z.createElement(wk.Z,je({x:S,y:O,defined:_,curve:o},w),function(e){var t,n=e.path;return Z.createElement(x,je({stroke:null!=(t=null==i?void 0:i(s))?t:C,strokeWidth:2,fill:"transparent",strokeLinecap:"round"},w,{d:n(a)||""},A))}),T&&Z.createElement(wY,{dataKey:s,data:a,xAccessor:m,yAccessor:g,xScale:v,yScale:y,renderGlyphs:P}))}jt.propTypes={colorAccessor:pk().func};var jn=wO(jt);function jr(){return(jr=Object.assign?Object.assign.bind():function(e){for(var t=1;tjs.every(n=>e[n]===t[n]);function ju(e,t){return(ju=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var jc=function(e){function t(){return e.apply(this,arguments)||this}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,ju(t,e);var n=t.prototype;return n.componentWillUnmount=function(){this.node&&document.body&&(document.body.removeChild(this.node),delete this.node)},n.render=function(){return(this.node||"undefined"==typeof document||(this.node=document.createElement("div"),null!=this.props.zIndex&&(this.node.style.zIndex=""+this.props.zIndex),document.body.append(this.node)),this.node)?tf.createPortal(this.props.children,this.node):null},t}(Z.PureComponent);jc.propTypes={zIndex:pk().oneOfType([pk().number,pk().string])};var jd=["detectBounds","zIndex"],jf=["left","top","detectBounds","zIndex"];function jh(){return(jh=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var jm=["debounce","detectBounds","horizontalCrosshairStyle","glyphStyle","renderTooltip","renderGlyph","resizeObserverPolyfill","scroll","showDatumGlyph","showHorizontalCrosshair","showSeriesGlyphs","showVerticalCrosshair","snapTooltipToDatumX","snapTooltipToDatumY","verticalCrosshairStyle","zIndex"],jv=["x","y"];function jg(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function jy(){return(jy=Object.assign?Object.assign.bind():function(e){for(var t=1;t(f.current=!0,()=>void(f.current=!1)));let[h,p,m]=(0,Z.useMemo)(()=>{let e=()=>{if(!u.current.element)return;let{left:e,top:t,width:n,height:r,bottom:i,right:a,x:s,y:c}=u.current.element.getBoundingClientRect(),d={left:e,top:t,width:n,height:r,bottom:i,right:a,x:s,y:c};u.current.element instanceof HTMLElement&&o&&(d.height=u.current.element.offsetHeight,d.width=u.current.element.offsetWidth),Object.freeze(d),f.current&&!jl(u.current.lastBounds,d)&&l(u.current.lastBounds=d)};return[e,d?ja()(e,d):e,c?ja()(e,c):e]},[l,o,c,d]);function v(){u.current.scrollContainers&&(u.current.scrollContainers.forEach(e=>e.removeEventListener("scroll",m,!0)),u.current.scrollContainers=null),u.current.resizeObserver&&(u.current.resizeObserver.disconnect(),u.current.resizeObserver=null)}function g(){u.current.element&&(u.current.resizeObserver=new a(m),u.current.resizeObserver.observe(u.current.element),r&&u.current.scrollContainers&&u.current.scrollContainers.forEach(e=>e.addEventListener("scroll",m,{capture:!0,passive:!0})))}return t=!!r,(0,Z.useEffect)(()=>{if(t)return window.addEventListener("scroll",m,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",m,!0)},[m,t]),(0,Z.useEffect)(()=>(window.addEventListener("resize",p),()=>void window.removeEventListener("resize",p)),[p]),(0,Z.useEffect)(()=>{v(),g()},[r,m,p]),(0,Z.useEffect)(()=>v,[]),[e=>{e&&e!==u.current.element&&(v(),u.current.element=e,u.current.scrollContainers=function e(t){let n=[];if(!t||t===document.body)return n;let{overflow:r,overflowX:i,overflowY:o}=window.getComputedStyle(t);return[r,i,o].some(e=>"auto"===e||"scroll"===e)&&n.push(t),[...n,...e(t.parentElement)]}(e),g())},s,h]}(jp(ei,jd)))[0],ec=el[1],ed=el[2],ef=(0,Z.useMemo)(function(){return function(e){var t=e.left,n=e.top,r=e.detectBounds,i=e.zIndex,o=jp(e,jf),a=null==i?es:i,s=(null==r?ea:r)?mq:mL,l=(void 0===t?0:t)+(ec.left||0)+window.scrollX,u=(void 0===n?0:n)+(ec.top||0)+window.scrollY;return Z.createElement(jc,{zIndex:a},Z.createElement(s,jh({left:l,top:u},o)))}},[ea,es,ec.left,ec.top]),{containerRef:eu,containerBounds:ec,forceRefreshBounds:ed,TooltipInPortal:ef}),D=R.containerRef,L=R.TooltipInPortal,F=R.forceRefreshBounds,z=(0,Z.useCallback)(function(e){var t;D(null!=(t=null==e?void 0:e.parentElement)?t:null)},[D]),V=null!=N&&N.tooltipOpen?o(jy({},N,{colorScale:S})):null,I=(null==N?void 0:N.tooltipOpen)&&null!=V,B=(0,Z.useRef)(!1);(0,Z.useEffect)(function(){I&&!B.current&&F(),B.current=I},[I,F]);var H=null==N?void 0:N.tooltipLeft,U=null==N?void 0:N.tooltipTop,W=A?wl(A):0,q=T?wl(T):0,$=(0,Z.useCallback)(function(e,t){var n,r,i=null==P?void 0:P.get(e),o=null==i?void 0:i.xAccessor,a=null==i?void 0:i.yAccessor;return{left:A&&o?null!=(n=Number(A(o(t)))+W/2)?n:0:void 0,top:T&&a?null!=(r=Number(T(a(t)))+q/2)?r:0:void 0}},[P,W,q,A,T]),Y=null==N?void 0:null==(eh=N.tooltipData)?void 0:eh.nearestDatum,G=null!=(ep=null==Y?void 0:Y.key)?ep:"";if(I&&Y&&(y||x)){var K=$(G,Y.datum),X=K.left,Q=K.top;H=y&&wu(X)?X:H,U=x&&wu(Q)?Q:U}var J=[];if(I&&(void 0!==c&&c||p)){var ee=Number(null!=(eO=null==i?void 0:i.radius)?eO:4);if(p)Object.values(null!=(e_=null==N?void 0:null==(eC=N.tooltipData)?void 0:eC.datumByKey)?e_:{}).forEach(function(e){var t,n,r,o=e.key,a=e.datum,s=e.index,l=null!=(t=null!=(n=null==S?void 0:S(o))?n:null==O?void 0:null==(r=O.htmlLabel)?void 0:r.color)?t:"#222",u=$(o,a),c=u.left,d=u.top;wu(c)&&wu(d)&&J.push({key:o,color:l,datum:a,index:s,size:ee,x:c,y:d,glyphStyle:i,isNearestDatum:!!Y&&Y.key===o})});else if(Y){var et=$(G,Y.datum),en=et.left,er=et.top;if(wu(en)&&wu(er)){var ei,eo,ea,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,eb,ex,ew,eE,ej,ek,eS,eO,e_,eC,eM,eA,eT,eP,eN,eR,eD=null!=(eM=null!=(eA=null!=(eT=null!=(eP=G&&(null==S?void 0:S(G)))?eP:null)?eT:null==O?void 0:null==(eN=O.gridStyles)?void 0:eN.stroke)?eA:null==O?void 0:null==(eR=O.htmlLabel)?void 0:eR.color)?eM:"#222";J.push({key:G,color:eD,datum:Y.datum,index:Y.index,size:ee,x:en,y:er,glyphStyle:i,isNearestDatum:!0})}}}return Z.createElement(Z.Fragment,null,Z.createElement("svg",{ref:z,style:jx}),I&&Z.createElement(Z.Fragment,null,v&&Z.createElement(L,{className:"visx-crosshair visx-crosshair-vertical",left:H,top:null==M?void 0:M.top,offsetLeft:0,offsetTop:0,detectBounds:!1,style:jb},Z.createElement("svg",{width:"1",height:_,overflow:"visible"},Z.createElement("line",jy({x1:0,x2:0,y1:0,y2:_,strokeWidth:1.5,stroke:null!=(em=null!=(ev=null==O?void 0:null==(eg=O.gridStyles)?void 0:eg.stroke)?ev:null==O?void 0:null==(ey=O.htmlLabel)?void 0:ey.color)?em:"#222"},w)))),f&&Z.createElement(L,{className:"visx-crosshair visx-crosshair-horizontal",left:null==M?void 0:M.left,top:U,offsetLeft:0,offsetTop:0,detectBounds:!1,style:jb},Z.createElement("svg",{width:C,height:"1",overflow:"visible"},Z.createElement("line",jy({x1:0,x2:C,y1:0,y2:0,strokeWidth:1.5,stroke:null!=(eb=null!=(ex=null==O?void 0:null==(ew=O.gridStyles)?void 0:ew.stroke)?ex:null==O?void 0:null==(eE=O.htmlLabel)?void 0:eE.color)?eb:"#222"},r)))),J.map(function(e,t){var n=e.x,r=e.y,i=jg(e,jv);return Z.createElement(L,{key:t,className:"visx-tooltip-glyph",left:n,top:r,offsetLeft:0,offsetTop:0,detectBounds:!1,style:jb},Z.createElement("svg",{overflow:"visible"},s(jy({x:0,y:0},i))))}),Z.createElement(L,jy({left:H,top:U,style:jy({},mZ,{background:null!=(ej=null==O?void 0:O.backgroundColor)?ej:"white",boxShadow:"0 1px 2px "+(null!=O&&null!=(ek=O.htmlLabel)&&ek.color?(null==O?void 0:null==(eS=O.htmlLabel)?void 0:eS.color)+"55":"#22222255")},null==O?void 0:O.htmlLabel)},j),V)))}function jk(e){var t=(0,Z.useContext)(wA);return null!=t&&t.tooltipOpen?Z.createElement(jj,e):null}jw.propTypes={isNearestDatum:pk().bool.isRequired},jj.propTypes={renderTooltip:pk().func.isRequired,renderGlyph:pk().func,snapTooltipToDatumX:pk().bool,snapTooltipToDatumY:pk().bool,showVerticalCrosshair:pk().bool,showHorizontalCrosshair:pk().bool,showDatumGlyph:pk().bool,showSeriesGlyphs:pk().bool},jk.propTypes={renderTooltip:pk().func.isRequired,renderGlyph:pk().func,snapTooltipToDatumX:pk().bool,snapTooltipToDatumY:pk().bool,showVerticalCrosshair:pk().bool,showHorizontalCrosshair:pk().bool,showDatumGlyph:pk().bool,showSeriesGlyphs:pk().bool};var jS=n(70390);function jO(e){var t=e.children,n=(0,Z.useMemo)(function(){var e;return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map(function(e){e(n)}),(e.get("*")||[]).slice().map(function(e){e(t,n)})}}},[]);return Z.createElement(wT.Provider,{value:n},t)}function j_(){return(j_=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(t,mP);return mN({},e(n),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:e.tooltipLeft,tooltipTop:e.tooltipTop,tooltipData:e.tooltipData})},[r]),o=(0,Z.useCallback)(function(){return r({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})},[r]),{tooltipOpen:n.tooltipOpen,tooltipLeft:n.tooltipLeft,tooltipTop:n.tooltipTop,tooltipData:n.tooltipData,updateTooltip:r,showTooltip:i,hideTooltip:o}),c=u.tooltipOpen,d=u.tooltipLeft,f=u.tooltipTop,h=u.tooltipData,p=u.updateTooltip,m=u.hideTooltip,v=(0,Z.useRef)(null),g=(0,Z.useRef)(function(e){var t=e.svgPoint,n=e.index,r=e.key,i=e.datum,o=e.distanceX,a=e.distanceY;v.current&&(v.current.cancel(),v.current=null);var s=Math.sqrt(Math.pow(wu(o)?o:1/0,2)+Math.pow(wu(a)?a:1/0,2));p(function(e){var o,a,l,u=e.tooltipData,c=null!=u&&u.nearestDatum&&wu(u.nearestDatum.distance)?u.nearestDatum.distance:1/0;return{tooltipOpen:!0,tooltipLeft:null==t?void 0:t.x,tooltipTop:null==t?void 0:t.y,tooltipData:{nearestDatum:(null!=(o=null==u?void 0:null==(a=u.nearestDatum)?void 0:a.key)?o:"")!==r&&c0&&o>0&&y({width:m,height:o,margin:l})},[y,m,o,l]);var w=wN({source:wM});return(wW({dataKey:"nearest"===(void 0===h?"nearest":h)?wU:wH,onPointerMove:u,onPointerOut:c,onPointerUp:d,onPointerDown:f,allowedSources:jI}),y)?null==m||null==o?Z.createElement(jS.Z,null,function(t){return Z.createElement(jB,jz({},e,{width:null==e.width?t.width:e.width,height:null==e.height?t.height:e.height}))}):null==b?Z.createElement(jC,null,Z.createElement(jB,e)):null==x?Z.createElement(jO,null,Z.createElement(jB,e)):m>0&&o>0?Z.createElement("svg",{width:m,height:o,"aria-label":void 0===t?"XYChart":t},i,r&&Z.createElement("rect",jz({x:l.left,y:l.top,width:m-l.left-l.right,height:o-l.top-l.bottom,fill:"transparent"},w))):null:v&&g?Z.createElement(jF,{xScale:v,yScale:g,theme:p,initialDimensions:{width:m,height:o,margin:l},horizontal:a},Z.createElement(jB,e)):(console.warn("[@visx/xychart] XYChart: When no DataProvider is available in context, you must pass xScale & yScale config to XYChart."),null)}function jH(e){return Z.createElement(w0,e)}function jU(e){return Z.createElement(Ef,e)}function jW(){return(jW=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function jX(e){var t=e.bars,n=(e.horizontal,e.xScale,e.yScale,e.radius),r=e.radiusAll,i=e.radiusTop,o=e.radiusRight,a=e.radiusBottom,s=e.radiusLeft,l=jK(e,j$),u=!!(l.onFocus||l.onBlur);return Z.createElement(Z.Fragment,null,t.map(function(e){var t=e.key,c=jK(e,jY);return null==n?Z.createElement("rect",jG({key:t,className:"visx-bar",tabIndex:u?0:void 0},c,l)):Z.createElement(ES.Z,jG({key:t,className:"visx-bar",tabIndex:u?0:void 0,radius:n,all:r,top:i,right:o,bottom:a,left:s},c,l))}))}function jQ(){return(jQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,j0);return Z.createElement(EI,j1({},n,{colorAccessor:t,BarsComponent:jX}))};function j4(){return(j4=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&r(l)?n>1?e(l,n-1,r,i,o):(0,kd.Z)(o,l):i||(o[o.length]=l)}return o},ky=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},kb=Math.max,kx=function(e,t,n){return t=kb(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=kb(r.length-t,0),a=Array(o);++i0){if(++h>=800)return arguments[0]}else h=0;return kj.apply(void 0,arguments)}),kO=n(9878),k_=kS(kx(m=function(e,t){var n={};if(null==e)return n;var r=!1;t=(0,ke.Z)(t,function(t){return t=(0,kn.Z)(t,e),r||(r=t.length>1),t}),(0,kl.Z)(e,(0,kO.Z)(e),n),r&&(n=(0,kt.Z)(n,7,kc));for(var i=t.length;i--;)ks(n,t[i]);return n},void 0,function(e){return(null==e?0:e.length)?kg(e,1):[]}),m+"");function kC(e){return 6e4*e}function kM(e){return 36e5*e}function kA(e){return 864e5*e}function kT(e){return 1e3*e}function kP(e){let{initialChartType:t,chartType:n,setChartType:r,curveType:i,setCurveType:o,isLine:a,isStack:s,stackOffset:l,setStackOffset:u,xAxisOrientation:c,setXAxisOrientation:d,yAxisOrientation:f,setYAxisOrientation:h}=e,p="line"===t,m="area"===t;return(0,D.jsx)(uc,{trigger:(0,D.jsx)(ld,{tip:"Configure chart",variant:"gray",size:"small",children:(0,D.jsx)(lf.shL,{})}),title:"Chart settings",contentVariants:{className:"max-h-[70vh]"},children:(0,D.jsxs)("div",{className:"grid grid-cols-2 gap-x-6 gap-y-10 py-4",children:[(0,D.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,D.jsx)(t7,{weight:"semibold",children:"Graph type"}),(0,D.jsxs)(fe,{value:n,onValueChange:e=>r(e),className:"flex flex-col gap-1",children:[(0,D.jsx)(d9,{value:"line",children:"Line"}),(0,D.jsx)(d9,{disabled:p||m,value:"areastack",children:"Area Stack"}),(0,D.jsx)(d9,{disabled:p||m,value:"barstack",children:"Bar Stack"}),(0,D.jsx)(d9,{disabled:p,value:"area",children:"Area"}),(0,D.jsx)(d9,{disabled:p,value:"bargroup",children:"Bar Group"})]})]}),(0,D.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,D.jsx)(t7,{weight:"semibold",children:"Stack series offset"}),(0,D.jsxs)(fe,{value:l,onValueChange:e=>u(e),className:"flex flex-col gap-1",children:[(0,D.jsxs)(d9,{disabled:!s,value:"none",children:["None",(0,D.jsx)(fN,{children:"zero-baseline"})]}),(0,D.jsxs)(d9,{disabled:!s,value:"diverging",children:["Diverging",(0,D.jsx)(fN,{children:"non zero-baseline"})]}),(0,D.jsxs)(d9,{disabled:!s,value:"expand",children:["Expand",(0,D.jsx)(fN,{children:"values sum to 1"})]}),(0,D.jsxs)(d9,{disabled:!s,value:"wiggle",children:["Wiggle",(0,D.jsx)(fN,{children:"stream graph"})]})]})]}),(0,D.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,D.jsx)(t7,{weight:"semibold",children:"Curve shape"}),(0,D.jsxs)(fe,{value:i,onValueChange:e=>o(e),className:"flex flex-col gap-1",children:[(0,D.jsx)(d9,{disabled:!a,value:"linear",children:"Linear"}),(0,D.jsx)(d9,{disabled:!a,value:"cardinal",children:"Cardinal"}),(0,D.jsx)(d9,{disabled:!a,value:"step",children:"Step"})]})]}),(0,D.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,D.jsx)(t7,{weight:"semibold",children:"Axes"}),(0,D.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,D.jsxs)(fe,{value:c,onValueChange:e=>d(e),className:"flex flex-col gap-1",children:[(0,D.jsx)(d9,{value:"bottom",children:"Bottom"}),(0,D.jsx)(d9,{value:"top",children:"Top"})]}),(0,D.jsxs)(fe,{value:f,onValueChange:e=>h(e),className:"flex flex-col gap-2",children:[(0,D.jsx)(d9,{value:"left",children:"Left"}),(0,D.jsx)(d9,{value:"right",children:"Right"})]})]})]})]})})}let kN=(0,Z.forwardRef)((e,t)=>{let{className:n}=e;return(0,D.jsxs)("div",{ref:t,className:(0,eE.cx)("flex gap-1 items-center",n),children:[(0,D.jsx)(kR,{}),(0,D.jsx)(kR,{}),(0,D.jsx)(kR,{})]})});function kR(){return(0,D.jsx)("div",{className:"w-1 h-1 bg-slate-400 dark:bg-slate-200 rounded-full animate-pulselight [&:nth-child(2)]:animation-delay-500 [&:nth-child(3)]:animation-delay-1000"})}function kD(e){let{id:t,height:n,data:r,config:i,actionsLeft:o,isLoading:a,actionsRight:s,emptyState:l,variant:u="panel",allowConfiguration:c=!0}=e,d=function(e,t,n){let[r,i]=(0,Z.useState)(!(0,fC.Tb)()&&!n.disableAnimations),{resolvedTheme:o}=(0,px.F)(),a=(0,Z.useMemo)(()=>"dark"===o?yr:yn,[o]),[s,l]=(0,Z.useState)("center"),[u,c]=(0,Z.useState)([!1,!1]),[d,f]=u,[h,p]=(0,Z.useState)("bottom"),[m,v]=(0,Z.useState)("right"),[g,y]=(0,Z.useState)(!0),[b,x]=(0,Z.useState)(!0),[w,E]=(0,Z.useState)(!1),[j,k]=(0,Z.useState)(!0),[S,O]=(0,Z.useState)(!0),_=n.chartType||"areastack",C=n.curveType||"linear",M=n.stackOffset||"none",[A,T]=(0,Z.useState)(_),[P,N]=(0,Z.useState)(C),R=["line","area","areastack"].includes(A),L=["barstack","areastack"].includes(A),[F,z]=(0,Z.useState)(M),V=a.xyChartTheme.gridStyles.stroke,[I,B]=(0,Z.useState)(!1),[H,U]=(0,Z.useState)("star"),W=(0,Z.useCallback)(e=>{let{x:t,y:n,size:r,color:i,onPointerMove:o,onPointerOut:a,onPointerUp:s,isNearestDatum:l}=e,u={onPointerMove:o,onPointerOut:a,onPointerUp:s};return"star"===H?(0,D.jsx)(gG,{left:t,top:n,stroke:V,fill:i,size:10*r,...u}):"circle"===H?(0,D.jsx)(gQ,{left:t,top:n,stroke:V,fill:i,r:r,...u}):"cross"===H?(0,D.jsx)(g2,{left:t,top:n,stroke:V,fill:i,size:10*r,...u}):(0,D.jsx)("text",{x:t,y:n,dx:"-0.75em",dy:"0.25em",fontSize:14,...u,children:l?"\uD83C\uDF4D":"\uD83C\uDF4C"})},[H,V]),q=(0,Z.useMemo)(()=>{if(t.sort((e,t)=>e.timestamp>t.timestamp?1:-1),0===t.length)return[];let e=t[t.length-1];return"barstack"!==A&&"bargroup"!==A?[...t,{...e,timestamp:e.timestamp+kA(1)}]:t},[A,t]),$=(0,Z.useMemo)(()=>{if(q.length<2)return 0;let e=[q[0].timestamp,q[q.length-1].timestamp],t=new Date().getTime();return t>e[0]&&tObject.keys(k_(t[0],"timestamp")),[t]),G=(0,Z.useMemo)(()=>n.enabledGraph||Y,[Y,n]),K=(0,Z.useMemo)(()=>n.enabledTip||Y,[Y,n]),X=(0,Z.useMemo)(()=>({x:Y.reduce((e,t)=>({...e,[t]:e=>e.timestamp}),{}),y:Y.reduce((e,t)=>({...e,[t]:e=>e[t]}),{}),date:e=>e.timestamp}),[Y]),Q=(0,Z.useMemo)(()=>({x:{type:"band",paddingInner:R?1:.3},y:{type:"linear"}}),[R]),J=(0,Z.useMemo)(()=>"cardinal"===P&&g4.ZP||"step"===P&&vC.ZP||g3.Z,[P]),ee=(0,Z.useMemo)(()=>({top:30,bottom:"top"===h?0:20,right:"right"===m?60:0,left:"left"===m?60:0}),[h,m]);return{id:e,accessors:X,animationTrajectory:s,config:n,scales:Q,data:q,curve:J,chartData:t,numTicks:4,isLine:R,isStack:L,todayOffset:$,initialChartType:_,initialCurveType:C,initialStackOffset:M,chartType:A,curveType:P,keys:Y,enabledGraph:G,enabledTip:K,renderBarGroup:"bargroup"===A,renderBarStack:"barstack"===A,enableTooltipGlyph:I,renderTooltipGlyph:W,renderAreaSeries:"area"===A,renderAreaStack:"areastack"===A,renderLineSeries:"line"===A,sharedTooltip:S,showGridColumns:f,showGridRows:d,showHorizontalCrosshair:w,showTooltip:g,showVerticalCrosshair:b,snapTooltipToDatum:!L&&j,stackOffset:F,theme:a,margin:ee,xAxisOrientation:h,yAxisOrientation:m,setUseAnimatedComponents:i,setAnimationTrajectory:l,setGridProps:c,setXAxisOrientation:p,setYAxisOrientation:v,setShowTooltip:y,setShowVerticalCrosshair:x,setShowHorizontalCrosshair:E,setSnapTooltipToDatum:k,setSharedTooltip:O,setChartType:T,setCurveType:N,setStackOffset:z,setEnableTooltipGlyph:B,setTooltipGlyphComponent:U,...r?{Annotation:wy,AreaSeries:w2,AreaStack:Ep,Axis:Ex,BarGroup:EL,BarSeries:EU,BarStack:EG,GlyphSeries:E0,Grid:E7,LineSeries:ji,Tooltip:jk,XYChart:jB}:{AreaSeries:jH,AreaStack:jU,Axis:jq,BarGroup:jJ,BarSeries:j2,BarStack:j3,Grid:j7,LineSeries:j9,Tooltip:jk,XYChart:jB}}}(t,r,i),f=(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)("div",{className:"flex gap-2 absolute top-3 right-4",children:[s,"panel"===u&&c&&(0,D.jsx)(kP,{...d})]}),(0,D.jsx)("div",{className:"flex gap-2 absolute top-3 left-4",children:o}),(0,D.jsx)(gz,{children:e=>{let{width:t,height:n}=e;return a?(0,D.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,D.jsx)(kN,{className:"scale-150"})}):0===r.length&&l?l:(0,D.jsx)(gI,{...d,width:t,height:n})}})]});return"panel"===u?(0,D.jsx)(nt,{className:"relative p-px",style:{height:n},children:f}):(0,D.jsx)("div",{className:"relative p-px",style:{height:n},children:f})}let kZ={data:""},kL=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||kZ,kF=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,kz=/\/\*[^]*?\*\/|\s\s+|\n/g,kV=(e,t)=>{let n="",r="",i="";for(let o in e){let a=e[o];"@"==o[0]?"i"==o[1]?n=o+" "+a+";":r+="f"==o[1]?kV(a,o):o+"{"+kV(a,"k"==o[1]?"":t)+"}":"object"==typeof a?r+=kV(a,t?t.replace(/([^,])+/g,e=>o.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):o):null!=a&&(o=o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=kV.p?kV.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},kI={},kB=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+kB(e[n]);return t}return e},kH=(e,t,n,r,i)=>{var o;let a=kB(e),s=kI[a]||(kI[a]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(a));if(!kI[s]){let t=a!==e?e:(e=>{let t,n=[{}];for(;t=kF.exec(e.replace(kz,""));)t[4]?n.shift():t[3]?n.unshift(n[0][t[3]]=n[0][t[3]]||{}):n[0][t[1]]=t[2];return n[0]})(e);kI[s]=kV(i?{["@keyframes "+s]:t}:t,n?"":"."+s)}return o=kI[s],-1==t.data.indexOf(o)&&(t.data=r?o+t.data:t.data+o),s},kU=(e,t,n)=>e.reduce((e,r,i)=>{let o=t[i];if(o&&o.call){let e=o(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":kV(e,""):!1===e?"":e}return e+r+(null==o?"":o)},"");function kW(e){let t=this||{},n=e.call?e(t.p):e;return kH(n.unshift?n.raw?kU(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,kL(t.target),t.g,t.o,t.k)}kW.bind({g:1});let kq,k$,kY,kG=kW.bind({k:1});function kK(e,t){let n=this||{};return function(){let r=arguments;function i(o,a){let s=Object.assign({},o),l=s.className||i.className;n.p=Object.assign({theme:k$&&k$()},s),n.o=/ *go\d+/.test(l),s.className=kW.apply(n,r)+(l?" "+l:""),t&&(s.ref=a);let u=e;return e[0]&&(u=s.as||e,delete s.as),kY&&u[0]&&kY(s),kq(u,s)}return t?t(i):i}}function kX(){return(kX=Object.assign||function(e){for(var t=1;t-1&&k6.splice(e,1)}},[n]);var i=n.toasts.map(function(t){var n,r,i;return kX({},e,e[t.type],t,{duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==(r=e)?void 0:r.duration)||k9[t.type],style:kX({},e.style,null==(i=e[t.type])?void 0:i.style,t.style)})});return kX({},n,{toasts:i})},St=function(e){return function(t,n){var r,i=(void 0===(r=e)&&(r="blank"),kX({createdAt:Date.now(),visible:!0,type:r,ariaProps:{role:"status","aria-live":"polite"},message:t,pauseDuration:0},n,{id:(null==n?void 0:n.id)||k0()}));return k7({type:N.UPSERT_TOAST,toast:i}),i.id}},Sn=function(e,t){return St("blank")(e,t)};Sn.error=St("error"),Sn.success=St("success"),Sn.loading=St("loading"),Sn.custom=St("custom"),Sn.dismiss=function(e){k7({type:N.DISMISS_TOAST,toastId:e})},Sn.remove=function(e){return k7({type:N.REMOVE_TOAST,toastId:e})},Sn.promise=function(e,t,n){var r=Sn.loading(t.loading,kX({},n,null==n?void 0:n.loading));return e.then(function(e){return Sn.success(kJ(t.success,e),kX({id:r},n,null==n?void 0:n.success)),e}).catch(function(e){Sn.error(kJ(t.error,e),kX({id:r},n,null==n?void 0:n.error))}),e};var Sr=function(e){var t=Se(e),n=t.toasts,r=t.pausedAt;(0,Z.useEffect)(function(){if(!r){var e=Date.now(),t=n.map(function(t){if(t.duration!==1/0){var n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(n<0){t.visible&&Sn.dismiss(t.id);return}return setTimeout(function(){return Sn.dismiss(t.id)},n)}});return function(){t.forEach(function(e){return e&&clearTimeout(e)})}}},[n,r]);var i=(0,Z.useMemo)(function(){return{startPause:function(){k7({type:N.START_PAUSE,time:Date.now()})},endPause:function(){r&&k7({type:N.END_PAUSE,time:Date.now()})},updateHeight:function(e,t){return k7({type:N.UPDATE_TOAST,toast:{id:e,height:t}})},calculateOffset:function(e,t){var r,i=t||{},o=i.reverseOrder,a=void 0!==o&&o,s=i.gutter,l=void 0===s?8:s,u=i.defaultPosition,c=n.filter(function(t){return(t.position||u)===(e.position||u)&&t.height}),d=c.findIndex(function(t){return t.id===e.id}),f=c.filter(function(e,t){return t * {\n pointer-events: auto;\n }\n"]);return SL=function(){return e},e}b=Z.createElement,kV.p=void 0,kq=b,k$=void 0,kY=void 0;var SF=function(e,t){var n=e.includes("top"),r=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return kX({left:0,right:0,display:"flex",position:"absolute",transition:k1()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY("+t*(n?1:-1)+"px)"},n?{top:0}:{bottom:0},r)},Sz=kW(SL()),SV=function(e){var t=e.reverseOrder,n=e.position,r=void 0===n?"top-center":n,i=e.toastOptions,o=e.gutter,a=e.children,s=e.containerStyle,l=e.containerClassName,u=Sr(i),c=u.toasts,d=u.handlers;return(0,Z.createElement)("div",{style:kX({position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none"},s),className:l,onMouseEnter:d.startPause,onMouseLeave:d.endPause},c.map(function(e){var n,i=e.position||r,s=SF(i,d.calculateOffset(e,{reverseOrder:t,gutter:o,defaultPosition:r})),l=e.height?void 0:(n=function(t){d.updateHeight(e.id,t.height)},function(e){e&&setTimeout(function(){n(e.getBoundingClientRect())})});return(0,Z.createElement)("div",{ref:l,className:e.visible?Sz:"",key:e.id,style:s},"custom"===e.type?kJ(e.message,e):a?a(e):(0,Z.createElement)(SZ,{toast:e,position:i}))}))};let SI=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Sn((0,D.jsx)(t7,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200)):e}),SU(t))},SB=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Sn.success((0,D.jsx)(t7,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200),"..."):e}),SU(t))},SH=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Sn.error((0,D.jsx)(t7,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200),"..."):e}),SU(t))};function SU(){let{className:e,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{position:"top-center",duration:6e3,className:(0,eE.cx)(ne(),"font-sans font-normal","text-gray-1100 dark:text-white","max-w-[800px] overflow-hidden text-ellipsis","[&>div]:overflow-hidden","[&>div]:flex-1",e),success:{icon:(0,D.jsx)("div",{className:"!flex-none w-5",children:(0,D.jsx)(lf.tEK,{className:"w-5 text-green-600"})})},error:{icon:(0,D.jsx)("div",{className:"!flex-none w-5",children:(0,D.jsx)(lf.Jsc,{className:"w-5 text-red-600"})})},...t}}function SW(){return(0,D.jsx)(SV,{toastOptions:SU()})}let Sq=(e,t)=>{let n=t?"Copied ".concat(t," to clipboard"):"Copied to clipboard";SI(n),navigator.clipboard.writeText(e)};function S$(e,t){return e?t&&e.length>t?"".concat(e.slice(0,t),"..."):"".concat(e.slice(0,t)):""}function SY(e){return(e||"").replace(/^addr:/,"").replace(/^txid:/,"").replace(/^fcid:/,"").replace(/^h:/,"").replace(/^scoid:/,"").replace(/^sfoid:/,"").replace(/^key:/,"")}function SG(e,t,n){return t?"".concat(e," ").concat(S$(t,n)):"".concat(e)}function SK(e,t){return"miner"===t?"minerPayout":"siafundClaim"===t?"siafundClaim":"contract"===t?"contractPayout":"foundation"===t?"foundationSubsidy":e.storageProofs&&e.storageProofs.length>0?"storageProof":e.fileContracts&&e.fileContracts.length>0&&e.fileContractRevisions&&e.fileContractRevisions.length>0?"contractRenewal":e.fileContractRevisions&&e.fileContractRevisions.length>0?"contractRevision":e.fileContracts&&e.fileContracts.length>0?"contractFormation":e.arbitraryData&&e.arbitraryData.length>0&&0===atob(e.arbitraryData[0]).indexOf("HostAnnouncement")?"hostAnnouncement":e.siafundOutputs&&e.siafundOutputs.length>0?"siafund":e.siacoinOutputs&&e.siacoinOutputs.length>0?"siacoin":void 0}let SX={transaction:"transaction",contract:"contract",block:"block",output:"output",address:"address",hostIp:"host",hostPublicKey:"host",ip:"IP"},SQ={transaction:"transaction ID",contract:"contract ID",block:"block",output:"output ID",address:"address",hostIp:"host address",hostPublicKey:"host public key",ip:"IP"},SJ={siacoin:"siacoin transfer",siafund:"siafund transfer",contractFormation:"contract formation",contractRenewal:"contract renewal",contractRevision:"contract revision",contractPayout:"contract payout",storageProof:"storage proof",minerPayout:"miner payout",siafundClaim:"siafund claim",foundationSubsidy:"foundation subsidy",hostAnnouncement:"host announcement"};function S0(e){return e?SX[e]:void 0}function S1(e){return e?SJ[e]:void 0}function S2(e){let{value:t,displayValue:n,type:r,label:i,href:o,maxLength:a,size:s,scaleSize:l,weight:u,color:c="contrast",className:d,siascanUrl:f}=e,h=i||(r?SQ[r]:void 0),p=a||(r&&["ip","hostIp"].includes(r)?20:12),m=SY(t),v=n||m,g="".concat(null==v?void 0:v.slice(0,p)).concat(((null==v?void 0:v.length)||0)>p?"...":"");return(0,D.jsxs)("div",{className:(0,eE.cx)("flex items-center",d),children:[o?(0,D.jsx)(de,{href:o,underline:"hover",size:s,scaleSize:l,color:c,weight:u,ellipsis:!0,children:g}):(0,D.jsx)(t7,{size:s,scaleSize:l,color:c,weight:u,ellipsis:!0,children:g}),(0,D.jsx)("div",{className:"ml-1 flex items-center",children:(0,D.jsx)(S4,{cleanValue:m,label:h,size:s,siascanUrl:f,type:r})})]})}function S4(e){var t;let{size:n,cleanValue:r,label:i,siascanUrl:o,type:a}=e;return(0,D.jsxs)(c$,{trigger:(0,D.jsx)(ld,{size:"none",variant:"ghost",children:(0,D.jsx)(lf.EMN,{className:"10"===n?"scale-75":"scale-90"})}),contentProps:{align:"end"},children:[(0,D.jsxs)(cY,{onSelect:e=>{Sq(r,i)},onClick:e=>{e.stopPropagation()},children:[(0,D.jsx)(cK,{children:(0,D.jsx)(lf.olJ,{})}),"Copy to clipboard"]}),o&&a&&(t=a)&&["hostIp","hostPublicKey","contract","address","transaction","block"].includes(t)&&(0,D.jsx)(de,{target:"_blank",href:function(e,t,n){switch(t){case"hostIp":case"hostPublicKey":return"".concat(e,"/host/").concat(n);case"contract":return"".concat(e,"/contract/").concat(n);case"transaction":return"".concat(e,"/tx/").concat(n);case"address":return"".concat(e,"/address/").concat(n);case"block":return"".concat(e,"/block/").concat(n);default:return""}}(o,a,r),className:"block w-full",underline:"none",children:(0,D.jsxs)(cY,{onClick:e=>{e.stopPropagation()},children:[(0,D.jsx)(cK,{children:(0,D.jsx)(lf.V8Q,{})}),"View on Siascan"]})})]})}function S3(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:o="change"}=e,a=(0,g_.yF)(String(t),{units:"SF"});return(0,D.jsx)(lu,{content:(i?"".concat(i," "):"")+a,children:(0,D.jsxs)(t7,{size:n,scaleSize:r,weight:"medium",font:"mono",color:"change"===o?t>0?"green":t<0?"red":"subtle":"contrast",children:["change"===o&&t>0?"+":"",a]})})}function S5(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:o="change",color:a,fixed:s=3,dynamicUnits:l=!0,hastingUnits:u=!0,extendedSuffix:c,showTooltip:d=!0}=e,f=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",h=a||("change"===o?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast"),p=(0,D.jsxs)(t7,{size:n,scaleSize:r,weight:"medium",font:"mono",ellipsis:!0,color:h,children:["change"===o?"".concat(f).concat((0,g_.Vz)(t.absoluteValue(),{fixed:s,dynamicUnits:l})):(0,g_.Vz)(t,{fixed:s,dynamicUnits:l,hastingUnits:u}),(0,D.jsx)(t7,{size:"20",weight:"medium",font:"mono",ellipsis:!0,color:"subtle",children:c?"".concat(c):""})]});return d?(0,D.jsx)(lu,{content:(i?"".concat(i," "):"")+(0,g_.Vz)(t,{fixed:16,dynamicUnits:!1}),children:p}):p}function S6(e){let{sc:t,size:n,scaleSize:r,color:i,tooltip:o="",variant:a="change",fixed:s,fixedTip:l=20,showTooltip:u=!0}=e,c=(0,fM.BW)(),{settings:{currency:d}}=(0,fC.Hv)(),f=t.isZero()?"":t.isGreaterThan(0)&&"change"===a?"+":t.isLessThan(0)?"-":"",h=i||("change"===a?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast");if(!c.data)return null;let p=new(fk())(c.data.rates.sc[d.id]||1).times(t).div(1e24),m=void 0!==s?s:d.fixed,v=(0,D.jsx)(t7,{size:n,scaleSize:r,weight:"medium",font:"mono",ellipsis:!0,color:h,children:"".concat(f).concat(d.prefix).concat(S8(p.absoluteValue(),m))});return u?(0,D.jsx)(lu,{content:(o?"".concat(o," "):"")+"".concat(f).concat(d.prefix).concat(S8(p.absoluteValue(),l)),children:v}):v}function S8(e,t){let[n,r]=e.toFixed(t).split("."),i=new Intl.NumberFormat().format(parseInt(n));return r?"".concat(i).concat(Intl.NumberFormat().format(1.1).charAt(1)).concat(r):i}function S7(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:o="change",fixed:a=3,fixedFiat:s,fixedTipFiat:l,dynamicUnits:u=!0,hastingUnits:c=!0,extendedSuffix:d,showTooltip:f=!0,displayBoth:h=!1,displayBothDirection:p="column"}=e,{settings:{currencyDisplay:m}}=(0,fC.Hv)(),v=(0,fM.BW)(),g=(0,Z.useMemo)(()=>(0,D.jsx)(S5,{value:t,size:n,color:h&&"row"===p&&"bothPreferFiat"===m?"subtle":void 0,scaleSize:r,tooltip:i,variant:o,fixed:a,dynamicUnits:u,hastingUnits:c,extendedSuffix:d,showTooltip:f}),[t,n,r,i,o,a,u,c,d,f,m,h,p]),y=(0,Z.useMemo)(()=>(0,D.jsx)(S6,{sc:t,size:n,color:h&&"row"===p&&"bothPreferSc"===m?"subtle":void 0,scaleSize:r,tooltip:i,variant:o,fixed:s,fixedTip:l,dynamicUnits:u,hastingUnits:c,extendedSuffix:d,showTooltip:f}),[t,n,r,i,o,s,l,u,c,d,f,m,h,p]);return"sc"!==m&&v.data?"fiat"===m?y:"bothPreferSc"===m?h?(0,D.jsxs)("div",{className:"column"===p?"flex flex-col items-end":"flex gap-1",children:[g,y]}):g:"bothPreferFiat"===m?h?(0,D.jsxs)("div",{className:"column"===p?"flex flex-col items-end":"flex gap-1",children:[y,g]}):y:g:g}function S9(e){let{value:t,size:n="14",weight:r="semibold",tooltip:i="",variant:o="change",color:a,format:s}=e,l=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",u="change"===o?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast";return(0,D.jsx)(lu,{content:(i?"".concat(i," "):"")+s(t),children:(0,D.jsx)(t7,{size:n,weight:r,font:"mono",ellipsis:!0,color:a||u,children:"change"===o?"".concat(l).concat(s(t.absoluteValue())):s(t)})})}var Oe=n(19510),Ot=1/0,On=function(e){var t,n=(t=e)?(t=vj(t))===Ot||t===-Ot?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0,r=n%1;return n==n?r?n-r:n:0},Or=Math.min,Oi=function(e,t){if((e=On(e))<1||e>9007199254740991)return[];var n,r=4294967295,i=Or(e,4294967295);t="function"==typeof(n=t)?n:kE.Z,e-=4294967295;for(var o=(0,Oe.Z)(i,t);++r(0,D.jsxs)("div",{className:(0,eE.cx)("relative flex gap-4 p-3.5",(0,eE.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:[(0,D.jsx)(fz,{className:"w-[60px] h-[50px]"}),(0,D.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,D.jsx)(fz,{className:"w-[90%] h-[20px]"}),(0,D.jsx)(fz,{className:"w-[140px] h-[14px]"})]})]},e))})}var Oa=n(66700),Os=n(19785);function Ol(e,t){(0,Os.Z)(2,arguments);var n=(0,Oa.Z)(e),r=(0,Oa.Z)(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}var Ou={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},Oc={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Od(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var Of={date:Od({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Od({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Od({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Oh={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Op(e){return function(t,n){var r,i=n||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=i.width?String(i.width):o;r=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=i.width?String(i.width):e.defaultWidth;r=e.values[l]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function Om(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var s=a[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var n=0;n0?"in "+r:r+" ago":r},formatLong:Of,formatRelative:function(e,t,n,r){return Oh[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Op({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Op({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Op({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Op({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Op({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(x={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(x.matchPattern);if(!n)return null;var r=n[0],i=e.match(x.parsePattern);if(!i)return null;var o=x.valueCallback?x.valueCallback(i[0]):i[0];return{value:o=t.valueCallback?t.valueCallback(o):o,rest:e.slice(r.length)}}),era:Om({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Om({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Om({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Om({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Om({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function Og(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var Oy=n(81441),Ob=n(32690),Ox=n(36202),Ow=n(25186),OE=function(e){e=(0,Ow.Z)(e);var t=(0,Ob.Z)(e)?(0,Ox.Z)(e):void 0,n=t?t[0]:e.charAt(0),r=t?(0,Oy.Z)(t,1).join(""):e.slice(1);return n.toUpperCase()+r};function Oj(e){let{type:t,label:n,initials:r,href:i,src:o,shape:a}=e,s=(0,D.jsx)(lO,{interactive:!!i,fallback:r||t&&(t||n||"").split(" ").map(e=>e.charAt(0).toUpperCase).join(""),src:o,shape:a||(t&&"address"!==t&&"block"!==t?"circle":"square")}),l=i&&(0,D.jsx)(de,{href:i,underline:"none",children:s}),u=l||s;return t?(0,D.jsx)(lu,{content:n||S0(t),children:(0,D.jsx)("div",{className:"",children:u})}):u}function Ok(e){let{label:t,type:n,avatar:r,avatarShape:i,initials:o,href:a,onClick:s,children:l}=e;return(0,D.jsxs)("div",{className:(0,eE.cx)("flex gap-4 p-4",(0,eE.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),onClick:s,children:[(0,D.jsx)(Oj,{label:t,type:n,shape:i,src:r,initials:o||(n||t||"").split(" ").map(e=>e.charAt(0).toUpperCase()).join(""),href:a}),l]})}function OS(e){let t=e.sc,n=e.sf,r=e.hash&&(0,D.jsx)(S2,{value:e.hash,type:e.type,label:e.label,siascanUrl:e.siascanUrl,href:e.href,color:"subtle"}),i=e.label||"transaction"===e.type&&e.txType&&S1(e.txType)||S0(e.type),o=!function(e){if(!e)return!1;try{return new URL(e),!0}catch(e){return!1}}(i)?OE(i):i;return(0,D.jsx)(Ok,{...e,children:(0,D.jsxs)("div",{className:"flex flex-col items-center gap-1 w-full",children:[(0,D.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,D.jsxs)("div",{className:"flex gap-2 items-center",children:[e.height&&e.blockHref&&(0,D.jsx)(t7,{color:"subtle",weight:"semibold",children:(0,D.jsx)(de,{href:e.blockHref,underline:"none",children:(0,g_.yF)(e.height)})}),(0,D.jsx)(t7,{weight:"medium",children:o||r})]}),(0,D.jsx)("div",{className:"flex-1"}),!!t&&(0,D.jsx)(S7,{variant:e.scVariant,value:t}),!!n&&(0,D.jsx)(S3,{variant:e.sfVariant,value:n})]}),(0,D.jsxs)("div",{className:"flex justify-between w-full",children:[(0,D.jsx)("div",{className:"flex gap-1",children:!!o&&r}),(0,D.jsxs)("div",{className:"flex gap-1 items-center",children:[e.unconfirmed?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(t7,{color:"verySubtle",children:"unconfirmed"}),e.timestamp?(0,D.jsx)(t7,{color:"verySubtle",children:(0,D.jsx)(lf.Bpb,{className:"scale-50"})}):null]}):null,e.timestamp&&(0,D.jsx)(t7,{color:"subtle",children:function(e,t){var n,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,Os.Z)(2,arguments);var a=o.locale||Ov;if(!a.formatDistance)throw RangeError("locale must contain formatDistance property");var s=Ol(e,t);if(isNaN(s))throw RangeError("Invalid time value");var l=function(e,t){if(null==e)throw TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}({},o);l.addSuffix=!!o.addSuffix,l.comparison=s,s>0?(n=(0,Oa.Z)(t),r=(0,Oa.Z)(e)):(n=(0,Oa.Z)(e),r=(0,Oa.Z)(t));var u=function(e,t,n){(0,Os.Z)(2,arguments);var r,i=function(e,t){return(0,Os.Z)(2,arguments),(0,Oa.Z)(e).getTime()-(0,Oa.Z)(t).getTime()}(e,t)/1e3;return((r=null==n?void 0:n.roundingMethod)?Ou[r]:Ou.trunc)(i)}(r,n),c=Math.round((u-(Og(r)-Og(n))/1e3)/60);if(c<2){if(o.includeSeconds){if(u<5)return a.formatDistance("lessThanXSeconds",5,l);if(u<10)return a.formatDistance("lessThanXSeconds",10,l);if(u<20)return a.formatDistance("lessThanXSeconds",20,l);if(u<40)return a.formatDistance("halfAMinute",null,l);else if(u<60)return a.formatDistance("lessThanXMinutes",1,l);else return a.formatDistance("xMinutes",1,l)}return 0===c?a.formatDistance("lessThanXMinutes",1,l):a.formatDistance("xMinutes",c,l)}if(c<45)return a.formatDistance("xMinutes",c,l);if(c<90)return a.formatDistance("aboutXHours",1,l);if(c<1440){var d=Math.round(c/60);return a.formatDistance("aboutXHours",d,l)}if(c<2520)return a.formatDistance("xDays",1,l);if(c<43200){var f=Math.round(c/1440);return a.formatDistance("xDays",f,l)}if(c<86400)return i=Math.round(c/43200),a.formatDistance("aboutXMonths",i,l);if((i=function(e,t){(0,Os.Z)(2,arguments);var n,r=(0,Oa.Z)(e),i=(0,Oa.Z)(t),o=Ol(r,i),a=Math.abs(function(e,t){(0,Os.Z)(2,arguments);var n=(0,Oa.Z)(e),r=(0,Oa.Z)(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}(r,i));if(a<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-o*a);var s=Ol(r,i)===-o;(function(e){(0,Os.Z)(1,arguments);var t=(0,Oa.Z)(e);return(function(e){(0,Os.Z)(1,arguments);var t=(0,Oa.Z)(e);return t.setHours(23,59,59,999),t})(t).getTime()===(function(e){(0,Os.Z)(1,arguments);var t=(0,Oa.Z)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t})(t).getTime()})((0,Oa.Z)(e))&&1===a&&1===Ol(e,i)&&(s=!1),n=o*(a-Number(s))}return 0===n?0:n}(r,n))<12){var h=Math.round(c/43200);return a.formatDistance("xMonths",h,l)}var p=i%12,m=Math.floor(i/12);return p<3?a.formatDistance("aboutXYears",m,l):p<9?a.formatDistance("overXYears",m,l):a.formatDistance("almostXYears",m+1,l)}(new Date(e.timestamp),new Date,{addSuffix:!0})})]})]})]})})}function OO(e){let{title:t,actions:n,dataset:r,isLoading:i,emptyState:o,emptyMessage:a,skeletonCount:s=10,children:l}=e,u="emptyState";return!i||(null==r?void 0:r.length)||l||(u="skeleton"),((null==r?void 0:r.length)||l)&&(u="currentData"),(0,D.jsx)(nt,{children:(0,D.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[(t||n)&&(0,D.jsxs)("div",{className:"flex items-center p-4 border-b border-gray-200 dark:border-graydark-300",children:[t&&(0,D.jsx)(c0,{size:"20",font:"mono",ellipsis:!0,children:t}),(0,D.jsx)("div",{className:"flex-1"}),n]}),(0,D.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:["emptyState"===u&&(o||(0,D.jsx)("div",{className:(0,eE.cx)("flex items-center justify-center h-[84px]",(0,eE.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:(0,D.jsx)(t7,{size:"18",color:"subtle",children:a||"No results"})})),"currentData"===u&&(l||(null==r?void 0:r.map((e,t)=>(0,D.jsx)(OS,{...e},e.hash||e.label||t)))),"skeleton"===u&&(0,D.jsx)(Oo,{skeletonCount:s})]})]})})}function O_(e){let{label:t,entityType:n,entityValue:r,actions:i,href:o,value:a,extendedSuffix:s,hash:l,sc:u,sf:c,comment:d,commentTip:f,scaleSize:h="40",isLoading:p,onClick:m}=e,v=(0,D.jsx)(t7,{color:"subtle",size:"12",className:"h-6",children:d});return(0,D.jsx)(nt,{children:(0,D.jsx)("div",{className:(0,eE.cx)("flex items-center py-2 px-4 h-full min-w-[250px]",m?"cursor-pointer":""),onClick:m,children:(0,D.jsxs)("div",{className:"flex flex-col gap-4 flex-wrap items-start w-full",children:[(0,D.jsxs)("div",{className:"flex relative top-px flex-1 w-full gap-6 items-center justify-between",children:[(0,D.jsx)(t7,{color:"subtle",ellipsis:!0,scaleSize:"14",children:"string"==typeof t?OE(t):t}),i]}),(0,D.jsxs)("div",{className:"flex flex-col items-end md:items-start gap-2 md:flex-2",children:[p?(0,D.jsx)(fz,{className:"h-12 w-[150px]"}):(0,D.jsxs)(D.Fragment,{children:[void 0!==u&&(0,D.jsx)(S7,{extendedSuffix:s,scaleSize:h,variant:"value",value:u,fixed:0}),void 0!==c&&(0,D.jsx)(S3,{scaleSize:h,variant:"value",value:c}),n&&(r?(0,D.jsx)(S2,{scaleSize:h,label:S0(n),href:o,value:r,displayValue:"block"===n&&r?Number(r).toLocaleString():r,className:"relative top-0.5"}):(0,D.jsx)(t7,{font:"mono",weight:"medium",scaleSize:h,children:"-"})),l&&(0,D.jsx)(S2,{scaleSize:h,label:"hash",value:l}),void 0!==a&&(0,D.jsx)(t7,{font:"mono",weight:"medium",scaleSize:h,ellipsis:!0,children:a})]}),v?(0,D.jsx)("div",{className:"mt-1",children:p?(0,D.jsx)("div",{className:"mt-1 h-6 justify-center",children:(0,D.jsx)(fz,{className:"h-4 w-[100px]"})}):f?(0,D.jsx)(lu,{content:f,children:v}):v}):null]})]})})})}function OC(e){let{title:t,actions:n,name:r}=e;return(0,D.jsxs)("div",{className:"flex gap-0.5 items-center",children:[t?(0,D.jsx)(c8,{htmlFor:r,noWrap:!0,children:t}):null,n]})}function OM(e){var t;let{form:n,name:r}=e,i=n.formState.errors[r],o=null===(t=n.formState.errors[r])||void 0===t?void 0:t.message;return i?(0,D.jsx)(t7,{size:"14",color:"red",children:o}):null}function OA(e){let{form:t,title:n,actions:r,name:i,className:o,wrap:a}=e,s=t.formState.errors[i];return n||s?(0,D.jsxs)("div",{className:(0,eE.cx)("flex justify-between items-center gap-x-4 overflow-hidden",a?"flex-wrap":"",o),children:[(0,D.jsx)(OC,{name:i,title:n,actions:r}),(0,D.jsx)(OM,{form:t,name:i})]}):null}function OT(e){let{children:t,...n}=e;return(0,D.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,D.jsx)(OA,{...n}),t]})}function OP(e){let{form:t,size:n="medium",variant:r="accent",children:i}=e;return(0,D.jsx)(D.Fragment,{children:(0,D.jsx)(ld,{size:n,variant:r,state:t.formState.isSubmitting?"waiting":void 0,type:"submit",children:t.formState.isSubmitting?(0,D.jsx)(kN,{}):i})})}function ON(e){let{formik:t,title:n,name:r,placeholder:i,disabled:o,readOnly:a,autoComplete:s="off",spellCheck:l=!1,tabIndex:u,allowDecimals:c=!1,decimalsLimitFiat:d=3,decimalsLimitSc:f=3,decimalsLimit:h=2,disableGroupSeparators:p=!1,showFiat:m=!0,units:v,type:g,variants:y}=e;return(0,D.jsx)(OF,{formik:t,title:n,name:r,children:"number"===g?(0,D.jsx)(OD,{formik:t,name:r,units:v,disabled:o,readOnly:a,tabIndex:u,decimalsLimit:h,allowDecimals:c,disableGroupSeparators:p,placeholder:i,variants:y}):"siacoin"===g?(0,D.jsx)(OZ,{formik:t,name:r,disabled:o,readOnly:a,placeholder:i,tabIndex:u,showFiat:m,decimalsLimitFiat:d,decimalsLimitSc:f,variants:y}):(0,D.jsx)(OR,{formik:t,name:r,autoComplete:s,disabled:o,readOnly:a,placeholder:i,tabIndex:u,spellCheck:l,type:g,variants:y})})}function OR(e){let{formik:t,name:n,placeholder:r,autoComplete:i="off",disabled:o,readOnly:a,tabIndex:s,spellCheck:l=!1,type:u,variants:c}=e;return(0,D.jsx)(fn,{id:n,name:n,autoComplete:i,disabled:o,spellCheck:l,placeholder:r,tabIndex:s,readOnly:a||t.isSubmitting,type:u,onBlur:t.handleBlur,onChange:t.handleChange,value:t.values[n]||"",...c})}function OD(e){let{formik:t,name:n,units:r,disabled:i,readOnly:o,tabIndex:a,placeholder:s,decimalsLimit:l,allowDecimals:u=!1,disableGroupSeparators:c=!1,variants:d}=e;return(0,D.jsx)(fO,{id:n,units:r,name:n,placeholder:new(fk())(s),disabled:i,allowDecimals:u,decimalsLimit:l,disableGroupSeparators:c,readOnly:o||t.isSubmitting,tabIndex:a,onBlur:t.handleBlur,onChange:e=>t.setFieldValue(n,e),value:t.values[n],...d})}function OZ(e){let{formik:t,name:n,disabled:r,readOnly:i,tabIndex:o,placeholder:a,showFiat:s,decimalsLimitFiat:l=3,decimalsLimitSc:u=3,variants:c}=e;return(0,D.jsx)(fT,{id:n,name:n,disabled:r,showFiat:s,decimalsLimitFiat:l,decimalsLimitSc:u,readOnly:i||t.isSubmitting,tabIndex:o,onFocus:()=>t.setFieldTouched(n),sc:new(fk())(t.values[n]),placeholder:new(fk())(a),onChange:e=>t.setFieldValue(n,null==e?void 0:e.toString()),...c})}function OL(e){var t,n;let{formik:r,title:i,name:o,withStatusError:a=!1,className:s}=e,l=r.errors[o]&&r.touched[o]||a&&(null===(t=r.status)||void 0===t?void 0:t.error),u=r.errors[o]||a&&(null===(n=r.status)||void 0===n?void 0:n.error);return(i||l)&&(0,D.jsxs)("div",{className:(0,eE.cx)("flex justify-between items-center gap-4",s),children:[i?(0,D.jsx)(c8,{htmlFor:o,children:i}):(0,D.jsx)("div",{}),l&&(0,D.jsx)(t7,{size:"14",color:"red",children:u})]})}function OF(e){let{children:t,...n}=e;return(0,D.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,D.jsx)(OL,{...n}),t]})}function Oz(e){var t;let{formik:n,size:r="medium",variant:i="accent",withStatusError:o=!0,children:a}=e;return(0,D.jsxs)(D.Fragment,{children:[o&&(null===(t=n.status)||void 0===t?void 0:t.error)&&(0,D.jsx)(t7,{color:"red",children:n.status.error}),(0,D.jsx)(ld,{size:r,variant:i,state:n.isSubmitting?"waiting":void 0,type:"submit",children:n.isSubmitting?(0,D.jsx)(kN,{}):a})]})}function OV(e){let{columns:t,data:n,context:r,sortField:i,sortDirection:o,sortableColumns:a,toggleSort:s,summary:l,rowSize:u="default",pageSize:c,isLoading:d,emptyState:f,focusId:h,focusColor:p="default"}=e,m="emptyState";!d||(null==n?void 0:n.length)||(m="skeleton"),(null==n?void 0:n.length)&&(m="currentData");let v=(0,Z.useCallback)((e,n,r)=>(0,eE.cx)(0===e?"pl-6":"pl-4",e===t.length-1?"pr-6":"pr-4",r?[0===e?"rounded-tl-lg":"",e===t.length-1?"rounded-tr-lg":""]:"",n),[t]),g=(0,Z.useCallback)((e,t)=>(0,eE.cx)("flex items-center",t),[]);return(0,D.jsxs)(nt,{children:[(0,D.jsxs)("table",{className:"relative z-10 table-auto border-collapse w-full",children:[(0,D.jsx)("thead",{className:(0,eE.cx)("sticky top-0 z-20 bg-white dark:bg-graydark-100","shadow-border-b shadow-gray-400 dark:shadow-graydark-300"),children:(0,D.jsx)("tr",{children:t.map((e,t)=>{let{id:n,icon:r,label:l,tip:u,cellClassName:c,contentClassName:d}=e,f=(null==a?void 0:a.includes(n))&&!!s,h=i===n;return(0,D.jsx)("th",{className:(0,eE.cx)(v(t,c,!1),"border-b border-gray-400 dark:border-graydark-400"),children:(0,D.jsx)("div",{className:(0,eE.cx)("overflow-hidden","py-3"),children:(0,D.jsxs)("div",{onClick:()=>{f&&s(n)},className:(0,eE.cx)(g(t,d),f?"cursor-pointer":""),children:[(0,D.jsx)(lu,{content:u,children:(0,D.jsxs)(t7,{color:"subtle",className:"relative flex gap-1",ellipsis:!0,children:[r?(0,D.jsx)("div",{children:r}):null,(0,D.jsx)(t7,{ellipsis:!0,size:"12",weight:"medium",children:l})]})}),h&&(0,D.jsx)(t7,{color:"contrast",children:"asc"===o?(0,D.jsx)(lf.kqg,{className:"scale-75"}):(0,D.jsx)(lf.EMN,{className:"scale-75"})}),f&&!h&&(0,D.jsx)(t7,{color:"verySubtle",children:(0,D.jsx)(lf.kqg,{className:"scale-75"})})]})})},n)})})}),(0,D.jsxs)("tbody",{className:"bg-gray-50 dark:bg-graydark-50",children:[l&&(0,D.jsx)("tr",{className:"bg-gray-50 dark:bg-graydark-50 border-l border-r border-b border-gray-200 dark:border-graydark-200",children:t.map((e,t)=>{let{id:n,summary:r,contentClassName:i,cellClassName:o}=e;return(0,D.jsx)("td",{className:v(t,o,!1),children:(0,D.jsx)("div",{className:g(t,i),children:r&&r()})},n)})}),"currentData"===m&&(null==n?void 0:n.map(e=>(0,D.jsx)("tr",{id:e.id,onClick:e.onClick,className:(0,eE.cx)("border-b border-gray-200/50 dark:border-graydark-100",e.onClick?"cursor-pointer":""),children:t.map((t,n)=>{let{id:i,render:o,contentClassName:a,cellClassName:s}=t;return(0,D.jsx)("td",{className:(0,eE.cx)(v(n,s,!1),h&&h===e.id?["shadow-border-y","first:shadow-border-tlb","last:shadow-border-trb"]:"","default"===p?"!shadow-blue-900 dark:!shadow-blue-200":"","blue"===p?"!shadow-blue-500 dark:!shadow-blue-400":"","red"===p?"!shadow-red-500 dark:!shadow-red-400":"","amber"===p?"!shadow-amber-500 dark:!shadow-amber-500":"","green"===p?"!shadow-green-500 dark:!shadow-green-400":""),children:(0,D.jsx)("div",{className:(0,eE.cx)(g(n,a),"dense"===u?"h-[50px]":"h-[100px]"),children:(0,D.jsx)(o,{data:e,context:r})})},"".concat(i,"/").concat(e.id))})},e.id))),"skeleton"===m&&Oi(c).map(e=>(0,D.jsx)("tr",{className:"border-b border-gray-200/50 dark:border-graydark-100",children:t.map((e,t)=>{let{id:n,contentClassName:r,cellClassName:i}=e;return(0,D.jsx)("td",{className:v(t,i,!1),children:(0,D.jsx)("div",{className:(0,eE.cx)(g(t,r),"dense"===u?"h-[50px]":"h-[100px]")})},"".concat(t,"/").concat(n))})},e))]})]}),"emptyState"===m&&f]})}function OI(e){let{offset:t,limit:n,datasetTotal:r,isLoading:i}=e,o=(0,cX.j0)();return(0,D.jsxs)(lN,{children:[(0,D.jsx)(ld,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>o.push({query:{...o.query,offset:0}}),children:(0,D.jsx)("div",{className:"flex scale-[0.65]",children:(0,D.jsx)(lf.XJM,{})})}),(0,D.jsx)(ld,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.max(t-n,0)}}),children:(0,D.jsx)(lf.bdU,{})}),(0,D.jsx)(ld,{state:"waiting",className:"rounded-none px-3",children:r>0?"".concat(t+1," - ").concat(Math.min(t+n,r)," of ").concat(r?r.toLocaleString():""):i?(0,D.jsx)(kN,{className:"px-2"}):"No results"}),(0,D.jsx)(ld,{icon:"contrast",disabled:t+n>=r,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.min(t+n,r)}}),children:(0,D.jsx)(lf.VUy,{})}),(0,D.jsx)(ld,{icon:"contrast",disabled:t+n>=r,size:"small",variant:"gray",className:"rounded-l-none",onClick:()=>o.push({query:{...o.query,offset:Math.floor(r/n)*n}}),children:(0,D.jsx)("div",{className:"flex",style:{transform:"scale(0.65)"},children:(0,D.jsx)(lf.RRj,{})})})]})}function OB(e){let{offset:t,limit:n,pageTotal:r,isLoading:i}=e,o=(0,cX.j0)(),a=Math.min(t+n,t+r);return(0,D.jsxs)(lN,{children:[(0,D.jsx)(ld,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>o.push({query:{...o.query,offset:0}}),children:(0,D.jsx)("div",{className:"flex scale-[0.65]",children:(0,D.jsx)(lf.XJM,{})})}),(0,D.jsx)(ld,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.max(t-n,0)}}),children:(0,D.jsx)(lf.bdU,{})}),i?(0,D.jsx)(ld,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:(0,D.jsx)(kN,{className:"px-2"})}):r?(0,D.jsxs)(ld,{className:"rounded-none px-3",state:"waiting",children:[t+1," - ",a]}):(0,D.jsx)(ld,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:"none"}),(0,D.jsx)(ld,{icon:"contrast",disabled:!(r>=n),size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:t+n}}),children:(0,D.jsx)(lf.VUy,{})})]})}function OH(e){let{title:t,nav:n,stats:r,actions:i}=e;return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)("div",{className:"flex items-center gap-2 px-6 h-14 z-10 bg-white dark:bg-graydark-50 border-b border-gray-500 dark:border-graydark-500",children:[t?"string"==typeof t?(0,D.jsx)(t7,{font:"mono",size:"18",weight:"bold",className:"hidden lg:block relative -top-px",children:t}):t:null,(0,D.jsxs)("div",{className:"flex-1 flex gap-4 items-center justify-between h-full px-1 -mx-1 overflow-x-hidden",children:[(0,D.jsx)("div",{className:"flex gap-2 items-center h-full flex-1 overflow-x-hidden",children:n}),(0,D.jsx)("div",{className:"flex gap-2 items-center h-full",children:i})]})]}),r&&(0,D.jsx)("div",{className:"flex items-center gap-2 px-6 py-2 h-14 z-10 bg-gray-50 dark:bg-graydark-50 border-b border-gray-300 dark:border-graydark-300",children:r})]})}let OU=("string"==typeof(w={src:"/_next/static/media/background-pattern.b997b25c.jpg",height:104,width:34,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCAAIAAMDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAX/xAAZEAADAAMAAAAAAAAAAAAAAAAAAQIREpH/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8ArRb1WYXQAB//2Q==",blurWidth:3,blurHeight:8})?{src:w}:w).src;function OW(e){let{children:t}=e;return(0,D.jsxs)("div",{className:"relative -z-10 opacity-100 pointer-events-none",children:[(0,D.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 z-10 bg-white dark:bg-graydark-50"}),(0,D.jsx)("div",{className:"fixed top-0 left-0 right-0 w-[200vw] h-[200vh] opacity-30 z-30 translate-x[-50vw] translate-y[-100vh]",style:{backgroundImage:"url(".concat(OU,")"),backgroundPositionY:"bottom",backgroundSize:"auto"}}),(0,D.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 opacity-95 z-40 bg-white dark:bg-graydark-50"}),t]})}function Oq(e){let{appName:t,title:n,children:r}=e,i=n?"".concat(t," - ").concat(n):t;return(0,D.jsxs)(cX.Fb,{children:[(0,D.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,D.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),(0,D.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),(0,D.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"}),(0,D.jsx)("link",{rel:"manifest",href:"/site.webmanifest"}),(0,D.jsx)("link",{rel:"mask-icon",href:"/safari-pinned-tab.svg",color:"#1ed660"}),(0,D.jsx)("meta",{name:"msapplication-TileColor",content:"#2b5797"}),(0,D.jsx)("meta",{name:"theme-color",content:"#ffffff"}),r,(0,D.jsx)("title",{children:i})]})}function O$(e){let{appName:t,title:n,children:r}=e;return(0,D.jsxs)("div",{className:"h-screen",children:[(0,D.jsx)(Oq,{appName:t,title:n}),r]})}function OY(e){let{appName:t,title:n,children:r,filters:i,actions:o}=e;return(0,D.jsxs)(O$,{appName:t,title:n,children:[(0,D.jsx)(OW,{}),(0,D.jsx)("div",{className:"flex h-full",children:(0,D.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,D.jsx)(OH,{nav:i,actions:o}),(0,D.jsx)("div",{className:"flex-1",children:(0,D.jsx)(lD,{className:"h-full",children:r})})]})})]})}function OG(e){let{side:t,balanceSc:n,children:r}=e;return n?(0,D.jsx)(lu,{side:t,content:(0,D.jsxs)("div",{className:"flex flex-col justify-center gap-2",children:[(0,D.jsxs)("div",{className:"flex gap-4",children:[(0,D.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,D.jsx)(t7,{children:"spendable"}),(0,D.jsx)(t7,{color:"subtle",children:"All confirmed outputs not in-use."})]}),(0,D.jsx)("div",{className:"flex justify-end",children:(0,D.jsx)(S7,{displayBoth:!0,variant:"value",value:n.spendable})})]}),(0,D.jsx)(cZ,{className:"w-full"}),(0,D.jsxs)("div",{className:"flex gap-4",children:[(0,D.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,D.jsx)(t7,{children:"confirmed"}),(0,D.jsx)(t7,{color:"subtle",children:"All confirmed outputs."})]}),(0,D.jsx)("div",{className:"flex justify-end",children:(0,D.jsx)(S7,{displayBoth:!0,variant:"value",value:n.confirmed})})]}),(0,D.jsx)(cZ,{className:"w-full"}),(0,D.jsxs)("div",{className:"flex gap-4",children:[(0,D.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,D.jsx)(t7,{children:"unconfirmed"}),(0,D.jsx)(t7,{color:"subtle",children:"All unconfirmed outputs not in-use."})]}),(0,D.jsx)("div",{className:"flex justify-end",children:(0,D.jsx)(S7,{displayBoth:!0,variant:"value",value:n.unconfirmed})})]})]}),children:(0,D.jsx)("div",{children:r})}):null}function OK(e){let{balanceSc:t,isSynced:n,syncingMessage:r}=e;if(!t)return null;let i=(0,D.jsx)(S7,{showTooltip:!1,value:t.spendable.plus(t.unconfirmed),variant:"value",size:"12",fixed:0,fixedFiat:0});return n?(0,D.jsx)(OG,{side:"right",balanceSc:t,children:i}):(0,D.jsx)(lu,{side:"right",content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,D.jsx)("div",{children:i})})}function OX(e){let{title:t,children:n,route:r,onClick:i}=e,o=(0,cX.jD)(),a=r&&("/"===r?o===r:null==o?void 0:o.startsWith(r));return r?(0,D.jsx)(de,{href:r,className:"no-underline",children:(0,D.jsx)(lu,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,D.jsx)(ld,{icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:n})})}):(0,D.jsx)(lu,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,D.jsx)(ld,{icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:n})})}function OQ(e){let{walletBalanceSc:t,isSynced:n,routes:r}=e;return(0,D.jsx)(OX,{title:"Wallet",route:r.wallet.view,children:(0,D.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,D.jsx)(lf.oaN,{}),n&&t&&(0,D.jsx)(OK,{isSynced:n,balanceSc:t})]})})}function OJ(e){let{routes:t,profile:n,isSynced:r,showWallet:i=!0,walletBalanceSc:o,lock:a,openSettings:s,children:l}=e;return(0,D.jsx)(nt,{className:"relative overflow-hidden z-10 h-full w-[75px] rounded-none border-y-0",children:(0,D.jsxs)("div",{className:"flex flex-col items-center h-full",children:[(0,D.jsx)("div",{className:"flex items-center justify-center",style:{height:"".concat(60,"px")},children:n||(0,D.jsx)(dn,{size:30})}),(0,D.jsxs)("div",{className:"flex flex-col gap-6 items-center pt-4 pb-6 h-full",children:[(0,D.jsx)("div",{className:"flex flex-col gap-6 items-center",children:l}),(0,D.jsx)("div",{className:"flex-1"}),(0,D.jsx)(cZ,{className:"w-full"}),i&&(0,D.jsx)(OQ,{routes:t,isSynced:r,walletBalanceSc:o}),(0,D.jsx)(OX,{title:"Blockchain node",route:t.node.index,children:(0,D.jsx)(lf.kBK,{})}),(0,D.jsx)(OX,{title:"App preferences",onClick:()=>s(),children:(0,D.jsx)(lf.UG6,{})}),(0,D.jsx)(OX,{title:"Lock app",onClick:a,children:(0,D.jsx)(lf.mBM,{})})]})]})})}var O0=Object.create,O1=Object.defineProperty,O2=Object.getOwnPropertyDescriptor,O4=Object.getOwnPropertyNames,O3=Object.getPrototypeOf,O5=Object.prototype.hasOwnProperty,O6=(S=null!=(k=(E=(e,t)=>{var r,i;r=e,i=function(e){var t,n=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,r=2*536870912,i=new WeakMap,o=(t=function(e,t){return i.set(e,t),t},function(e){var o=i.get(e),a=void 0===o?e.size:on)throw Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;e.has(a);)a=Math.floor(Math.random()*n);return t(e,a)});e.addUniqueNumber=function(e){var t=o(e);return e.add(t),t},e.generateUniqueNumber=o},"object"==typeof e&&"u">typeof t?i(e):"function"==typeof define&&n.amdO?define(["exports"],i):i((r="u">typeof globalThis?globalThis:r||self).fastUniqueNumbers={})},()=>(j||E((j={exports:{}}).exports,j),j.exports))())?O0(O3(k)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of O4(t))O5.call(e,n)||void 0===n||O1(e,n,{get:()=>t[n],enumerable:!(r=O2(t,n))||r.enumerable});return e})(k&&k.__esModule?S:O1(S,"default",{value:k,enumerable:!0}),k)),O8=e=>void 0!==e.method&&"call"===e.method,O7=e=>null===e.error&&"number"==typeof e.id;O=e=>{let t=new Map([[0,()=>{}]]),n=new Map([[0,()=>{}]]),r=new Map,i=new Worker(e);return i.addEventListener("message",({data:e})=>{if(O8(e)){let{params:{timerId:i,timerType:o}}=e;if("interval"===o){let e=t.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==o)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e();else throw Error("The timer is in an undefined state.")}else if("timeout"===o){let e=n.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==o)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e(),n.delete(i);else throw Error("The timer is in an undefined state.")}}else if(O7(e)){let{id:i}=e,o=r.get(i);if(void 0===o)throw Error("The timer is in an undefined state.");let{timerId:a,timerType:s}=o;r.delete(i),"interval"===s?t.delete(a):n.delete(a)}else{let{error:{message:t}}=e;throw Error(t)}}),{clearInterval:e=>{let n=(0,O6.generateUniqueNumber)(r);r.set(n,{timerId:e,timerType:"interval"}),t.set(e,n),i.postMessage({id:n,method:"clear",params:{timerId:e,timerType:"interval"}})},clearTimeout:e=>{let t=(0,O6.generateUniqueNumber)(r);r.set(t,{timerId:e,timerType:"timeout"}),n.set(e,t),i.postMessage({id:t,method:"clear",params:{timerId:e,timerType:"timeout"}})},setInterval:(e,n)=>{let r=(0,O6.generateUniqueNumber)(t);return t.set(r,()=>{e(),"function"==typeof t.get(r)&&i.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:r,timerType:"interval"}})}),i.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:r,timerType:"interval"}}),r},setTimeout:(e,t)=>{let r=(0,O6.generateUniqueNumber)(n);return n.set(r,e),i.postMessage({id:null,method:"set",params:{delay:t,now:performance.now(),timerId:r,timerType:"timeout"}}),r}}},a=null,()=>{if(null!==a)return a;let e=new Blob(['(()=>{"use strict";const e=new Map,t=new Map,r=(e,t)=>{let r,o;const i=performance.now();r=i,o=e-Math.max(0,i-t);return{expected:r+o,remainingDelay:o}},o=(e,t,r,i)=>{const s=performance.now();s>r?postMessage({id:null,method:"call",params:{timerId:t,timerType:i}}):e.set(t,setTimeout(o,r-s,e,t,r,i))};addEventListener("message",(i=>{let{data:s}=i;try{if("clear"===s.method){const{id:r,params:{timerId:o,timerType:i}}=s;if("interval"===i)(t=>{const r=e.get(t);if(void 0===r)throw new Error(\'There is no interval scheduled with the given id "\'.concat(t,\'".\'));clearTimeout(r),e.delete(t)})(o),postMessage({error:null,id:r});else{if("timeout"!==i)throw new Error(\'The given type "\'.concat(i,\'" is not supported\'));(e=>{const r=t.get(e);if(void 0===r)throw new Error(\'There is no timeout scheduled with the given id "\'.concat(e,\'".\'));clearTimeout(r),t.delete(e)})(o),postMessage({error:null,id:r})}}else{if("set"!==s.method)throw new Error(\'The given method "\'.concat(s.method,\'" is not supported\'));{const{params:{delay:i,now:n,timerId:a,timerType:d}}=s;if("interval"===d)((t,i,s)=>{const{expected:n,remainingDelay:a}=r(t,s);e.set(i,setTimeout(o,a,e,i,n,"interval"))})(i,a,n);else{if("timeout"!==d)throw new Error(\'The given type "\'.concat(d,\'" is not supported\'));((e,i,s)=>{const{expected:n,remainingDelay:a}=r(e,s);t.set(i,setTimeout(o,a,t,i,n,"timeout"))})(i,a,n)}}}}catch(e){postMessage({error:{message:e.message},id:s.id,result:null})}}))})();'],{type:"application/javascript; charset=utf-8"}),t=URL.createObjectURL(e);return a=O(t),setTimeout(()=>URL.revokeObjectURL(t)),a};var O9=(typeof window>"u"?"undefined":typeof window)=="object",_e={setTimeout:O9?setTimeout.bind(window):setTimeout,clearTimeout:O9?clearTimeout.bind(window):clearTimeout,setInterval:O9?setInterval.bind(window):setInterval,clearInterval:O9?clearInterval.bind(window):clearInterval},_t={},_n=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,_t[e]=_t[e]||[],_t[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){if(e.storageArea!==window.localStorage||e.key.substring(0,this.name.length)!==this.name||null===e.newValue)return;let t=JSON.parse(e.newValue);this.mc.port2.postMessage(t)}postMessage(e){if(this.closed)throw Error("InvalidStateError");let t=JSON.stringify(e),n=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(n,t),_e.setTimeout(()=>{window.localStorage.removeItem(n)},500),_t[this.name].forEach(e=>{e!==this&&e.mc.port2.postMessage(JSON.parse(t))})}close(){if(this.closed)return;this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage);let e=_t[this.name].indexOf(this);_t[this.name].splice(e,1)}get onmessage(){return this.mc.port1.onmessage}set onmessage(e){this.mc.port1.onmessage=e}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(e){this.mc.port1.onmessageerror=e}addEventListener(e,t){return this.mc.port1.addEventListener(e,t)}removeEventListener(e,t){return this.mc.port1.removeEventListener(e,t)}dispatchEvent(e){return this.mc.port1.dispatchEvent(e)}},_r=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:_n;function _i(){return Math.random().toString(36).substring(2)}var _o=class{options;channel;token=_i();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(e,t){this.channel=e,this.options=t,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return this.reApply=!0,!1;this.isApplying=!0;let e=!1,t=t=>{let{token:n,action:r}=t.data;n!==this.token&&(0===r&&n>this.token&&(e=!0),1===r&&(e=!0))};this.channel.addEventListener("message",t);try{return this.sendAction(0),await function(e=0){return new Promise(t=>_e.setTimeout(t,e))}(this.options.responseTime),this.channel.removeEventListener("message",t),this.isApplying=!1,e?!!this.reApply&&this.apply():(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let e=!1,t=null;return new Promise(n=>{let r=()=>{if(e)return;e=!0;try{_e.clearInterval(t)}catch{}let r=this.intervals.indexOf(t);r>=0&&this.intervals.splice(r,1),this.channel.removeEventListener("message",i),n()};t=_e.setInterval(()=>{this.apply().then(()=>{this.isLeader&&r()})},this.options.fallbackInterval),this.intervals.push(t);let i=e=>{let{action:t}=e.data;2===t&&this.apply().then(()=>{this.isLeader&&r()})};this.channel.addEventListener("message",i)})}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;let e=e=>{let{action:t}=e.data;0===t&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred||(this.deferred=this.awaitLeadership()),this.deferred}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach(e=>this.channel.removeEventListener("message",e)),this.intervals.forEach(e=>_e.clearInterval(e))}catch{}}}},_a=class{channel;options;elector;token=_i();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;this.options=e,this.channel=new _r(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new _o(this.channel,{fallbackInterval:2e3,responseTime:100}),this.elector.waitForLeadership()),this.channel.addEventListener("message",e=>{let{action:t,token:n,data:r}=e.data;switch(t){case 3:this.registry.set(n,2);break;case 4:this.registry.delete(n);break;case 5:this.idle(n);break;case 6:this.active(n);break;case 7:this.prompt(n);break;case 8:this.start(n);break;case 9:this.reset(n);break;case 10:this.activate(n);break;case 11:this.pause(n);break;case 12:this.resume(n);break;case 13:this.options.onMessage(r)}}),this.send(3)}get isLeader(){if(!this.elector)throw Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.');return this.elector.isLeader}prompt(e=this.token){this.registry.set(e,0);let t=[...this.registry.values()].every(e=>0===e);e===this.token&&this.send(7),t&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);let t=[...this.registry.values()].every(e=>2===e);e===this.token&&this.send(5),!this.allIdle&&t&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);let t=[...this.registry.values()].some(e=>1===e);e===this.token&&this.send(6),t&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},_s=O9?document:null,_l=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function _u(e,t){let n=0;return function(...r){let i=new Date().getTime();if(!(i-nDate.now();function _d(e){let{route:t}=e,n=(0,fC.Nf)({route:t,config:{swr:{refreshInterval:3e4}}});return{isConnected:!n.error,isValidating:n.isValidating}}function _f(e){let{appName:t,title:n,navTitle:r,profile:i,size:o="4",banner:a,nav:s,actions:l,stats:u,children:c,sidenav:d,connectivityRoute:f,isSynced:h,showWallet:p,walletBalanceSc:m,routes:v,scroll:g=!0,openSettings:y}=e,{lock:b,settings:x}=(0,fC.Hv)();return!function(e){let{lock:t,route:n,routes:r}=e,{isConnected:i,isValidating:o}=_d({route:n}),{settings:a}=(0,fC.Hv)(),s=(0,cX.j0)();(0,Z.useEffect)(()=>{if(o)return;let e=!s.asPath.startsWith(r.login),n=!a.password||!i;if(e&&n){t();return}},[s,a.password,i,o])}({lock:b,route:f,routes:v}),!function(e){let{enabled:t,lock:n,lockTimeout:r}=e,i=(0,Z.useCallback)(()=>{n()},[n]);!function({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:n=0,element:r=_s,events:i=_l,timers:o,immediateEvents:a=[],onPresenceChange:s=()=>{},onPrompt:l=()=>{},onIdle:u=()=>{},onActive:c=()=>{},onAction:d=()=>{},onMessage:f=()=>{},debounce:h=0,throttle:p=0,eventsThrottle:m=200,startOnMount:v=!0,startManually:g=!1,stopOnIdle:y=!1,crossTab:b=!1,name:x="idle-timer",syncTimers:w=0,leaderElection:E=!1,disabled:j=!1}={}){let k=(0,Z.useRef)(_c()),S=(0,Z.useRef)(_c()),O=(0,Z.useRef)(null),_=(0,Z.useRef)(null),C=(0,Z.useRef)(0),M=(0,Z.useRef)(0),A=(0,Z.useRef)(0),T=(0,Z.useRef)(0),P=(0,Z.useRef)(!1),N=(0,Z.useRef)(!1),R=(0,Z.useRef)(!1),D=(0,Z.useRef)(!0),L=(0,Z.useRef)(!1),F=(0,Z.useRef)(null),z=(0,Z.useRef)(null),V=(0,Z.useRef)(e),I=(0,Z.useRef)(0);(0,Z.useEffect)(()=>{if(t&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),n&&t)throw Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(e>=2147483647)throw Error(`\u274C The value for the timeout property must fit in a 32 bit signed integer, 2147483647.`);if(t>=2147483647)throw Error(`\u274C The value for the promptTimeout property must fit in a 32 bit signed integer, 2147483647.`);if(n>=2147483647)throw Error(`\u274C The value for the promptBeforeIdle property must fit in a 32 bit signed integer, 2147483647.`);if(n>=e)throw Error(`\u274C The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);if(n?(V.current=e-n,I.current=n):(V.current=e,I.current=t),!D.current){if(g||j)return;P.current&&(K.current(null,eT),z.current&&z.current.active()),ed()}},[e,t,n,g,j]);let B=(0,Z.useRef)(y);(0,Z.useEffect)(()=>{B.current=y},[y]);let H=(0,Z.useRef)(a),U=(0,Z.useRef)(r),W=(0,Z.useRef)([...new Set([...i,...a]).values()]),q=(0,Z.useRef)(j);(0,Z.useEffect)(()=>{q.current=j,!D.current&&(j?ep():g||ed())},[j]);let $=(0,Z.useRef)(s);(0,Z.useEffect)(()=>{$.current=s},[s]);let Y=(0,Z.useRef)(l);(0,Z.useEffect)(()=>{Y.current=l},[l]);let G=(0,Z.useRef)(u);(0,Z.useEffect)(()=>{G.current=u},[u]);let K=(0,Z.useRef)(c);(0,Z.useEffect)(()=>{K.current=c},[c]);let X=(0,Z.useRef)(d);(0,Z.useEffect)(()=>{X.current=d},[d]);let Q=(0,Z.useRef)(f);(0,Z.useEffect)(()=>{Q.current=f},[f]);let J=(0,Z.useMemo)(()=>{let e=(e,t)=>X.current(e,t);return h>0?function(e,t){let n;function r(...i){n&&clearTimeout(n),n=setTimeout(()=>{e(...i),n=null},t)}return r.cancel=function(){clearTimeout(n)},r}(e,h):p>0?_u(e,p):e},[p,h]),ee=(0,Z.useRef)();(0,Z.useEffect)(()=>{b&&w&&(ee.current=_u(()=>{z.current.active()},w))},[b,w]);let et=()=>{null!==F.current&&(_e.clearTimeout(F.current),F.current=null)},en=(e,t=!0)=>{et(),F.current=_e.setTimeout(ea,e||V.current),t&&(_.current=_c())},er=e=>{N.current||P.current||(Y.current(e,eT),$.current({type:"active",prompted:!0},eT)),T.current=0,A.current=_c(),N.current=!0,en(I.current,!1)},ei=()=>{et(),P.current||(G.current(null,eT),$.current({type:"idle"},eT)),P.current=!0,O.current=_c(),B.current?ec():N.current&&(A.current=0,N.current=!1)},eo=e=>{et(),(P.current||N.current)&&(K.current(e,eT),$.current({type:"active",prompted:!1},eT)),N.current=!1,A.current=0,P.current=!1,C.current+=_c()-O.current,M.current+=_c()-O.current,eu(),en()},ea=e=>{if(!P.current){J.cancel&&J.cancel();let t=_c()-_.current;if(!(V.current+I.current0&&!N.current){z.current?z.current.prompt():er(e);return}z.current?z.current.idle():ei();return}z.current?z.current.active():eo(e)},es=e=>{if(v||_.current||(_.current=_c(),K.current(null,eT)),J(e,eT),N.current)return;if(et(),!P.current&&H.current.includes(e.type)){ea(e);return}let t=_c()-_.current;if(P.current&&!y||!P.current&&t>=V.current){ea(e);return}R.current=!1,T.current=0,A.current=0,en(),b&&w&&ee.current()},el=(0,Z.useRef)(es);(0,Z.useEffect)(()=>{let e=L.current;e&&ec(),m>0?el.current=_u(es,m):el.current=es,e&&eu()},[m,p,h,X,b,w]);let eu=()=>{O9&&U.current&&(L.current||(W.current.forEach(e=>{U.current.addEventListener(e,el.current,{capture:!0,passive:!0})}),L.current=!0))},ec=(e=!1)=>{O9&&U.current&&(L.current||e)&&(W.current.forEach(e=>{U.current.removeEventListener(e,el.current,{capture:!0})}),L.current=!1)},ed=(0,Z.useCallback)(e=>!q.current&&(et(),eu(),P.current=!1,N.current=!1,R.current=!1,T.current=0,A.current=0,z.current&&!e&&z.current.start(),en(),!0),[F,P,q,V,z]),ef=(0,Z.useCallback)(e=>!q.current&&(et(),eu(),S.current=_c(),C.current+=_c()-O.current,M.current+=_c()-O.current,C.current=0,P.current=!1,N.current=!1,R.current=!1,T.current=0,A.current=0,z.current&&!e&&z.current.reset(),g||en(),!0),[F,P,V,g,q,z]),eh=(0,Z.useCallback)(e=>!q.current&&(et(),eu(),(P.current||N.current)&&eo(),P.current=!1,N.current=!1,R.current=!1,T.current=0,A.current=0,S.current=_c(),z.current&&!e&&z.current.activate(),en(),!0),[F,P,N,q,V,z]),ep=(0,Z.useCallback)((e=!1)=>!q.current&&!R.current&&(T.current=eE(),R.current=!0,ec(),et(),z.current&&!e&&z.current.pause(),!0),[F,q,z]),em=(0,Z.useCallback)((e=!1)=>!q.current&&!!R.current&&(R.current=!1,N.current||eu(),P.current||en(T.current),A.current&&(A.current=_c()),z.current&&!e&&z.current.resume(),!0),[F,V,q,T,z]),ev=(0,Z.useCallback)((e,t)=>(z.current?(t&&Q.current(e,eT),z.current.message(e)):t&&Q.current(e,eT),!0),[f]),eg=(0,Z.useCallback)(()=>P.current,[P]),ey=(0,Z.useCallback)(()=>N.current,[N]),eb=(0,Z.useCallback)(()=>z.current?z.current.isLeader:null,[z]),ex=(0,Z.useCallback)(()=>z.current?z.current.isLastActive:null,[z]),ew=(0,Z.useCallback)(()=>z.current?z.current.token:null,[z]),eE=(0,Z.useCallback)(()=>{if(R.current)return T.current;let e=Math.floor((T.current?T.current:I.current+V.current)-(_.current?_c()-_.current:0));return e<0?0:Math.abs(e)},[V,I,N,T,_]),ej=(0,Z.useCallback)(()=>Math.round(_c()-S.current),[S]),ek=(0,Z.useCallback)(()=>Math.round(_c()-k.current),[k]),eS=(0,Z.useCallback)(()=>O.current?new Date(O.current):null,[O]),eO=(0,Z.useCallback)(()=>_.current?new Date(_.current):null,[_]),e_=(0,Z.useCallback)(()=>P.current?Math.round(_c()-O.current+C.current):Math.round(C.current),[O,C]),eC=(0,Z.useCallback)(()=>P.current?Math.round(_c()-O.current+M.current):Math.round(M.current),[O,M]),eM=(0,Z.useCallback)(()=>{let e=Math.round(ej()-e_());return e>=0?e:0},[O,C]),eA=(0,Z.useCallback)(()=>{let e=Math.round(ek()-eC());return e>=0?e:0},[O,C]);(0,Z.useEffect)(()=>{if(h>0&&p>0)throw Error("❌ onAction can either be throttled or debounced, not both.");o&&(_e.setTimeout=o.setTimeout,_e.clearTimeout=o.clearTimeout,_e.setInterval=o.setInterval,_e.clearInterval=o.clearInterval);let e=()=>{z.current&&z.current.close(),J.cancel&&J.cancel(),et(),ec(!0)};return O9&&window.addEventListener("beforeunload",e),()=>{O9&&window.removeEventListener("beforeunload",e),z.current&&z.current.close(),J.cancel&&J.cancel(),et(),ec(!0)}},[]),(0,Z.useEffect)(()=>{z.current&&z.current.close(),b?z.current=new _a({channelName:x,leaderElection:E,onPrompt:()=>{er()},onIdle:()=>{ei()},onActive:()=>{eo()},onMessage:e=>{Q.current(e,eT)},start:ed,reset:ef,activate:eh,pause:ep,resume:em}):z.current=null},[b,x,E,Y,G,K,Q,ed,ef,ep,em]),(0,Z.useEffect)(()=>{D.current||(et(),ec(!0)),g||j||(v?ed():eu())},[g,v,j,D]),(0,Z.useEffect)(()=>{if(!D.current){let e=[...new Set([...i,...a]).values()];ec(),W.current=e,U.current=r,H.current=a,g||j||(v?ed():eu())}},[r,JSON.stringify(i),JSON.stringify(a),D,j,g,v]),(0,Z.useEffect)(()=>{D.current&&(D.current=!1)},[D]);let eT={message:ev,start:ed,reset:ef,activate:eh,pause:ep,resume:em,isIdle:eg,isPrompted:ey,isLeader:eb,isLastActiveTab:ex,getTabId:ew,getRemainingTime:eE,getElapsedTime:ej,getTotalElapsedTime:ek,getLastIdleTime:eS,getLastActiveTime:eO,getIdleTime:e_,getTotalIdleTime:eC,getActiveTime:eM,getTotalActiveTime:eA,setOnPresenceChange:e=>{s=e,$.current=e},setOnPrompt:e=>{l=e,Y.current=e},setOnIdle:e=>{u=e,G.current=e},setOnActive:e=>{c=e,K.current=e},setOnAction:e=>{d=e,X.current=e},setOnMessage:e=>{f=e,Q.current=e}}}({disabled:!t,onIdle:i,timeout:r,throttle:5e3,eventsThrottle:5e3})}({enabled:!!x.autoLock,lockTimeout:x.autoLockTimeout,lock:b}),(0,D.jsxs)(O$,{appName:t,title:n,children:[(0,D.jsx)(OW,{}),(0,D.jsxs)("div",{className:"flex flex-col h-full w-full",children:[a,(0,D.jsxs)("div",{className:"flex flex-1 w-full overflow-hidden",children:[(0,D.jsx)(OJ,{routes:v,profile:i,openSettings:y,lock:b,showWallet:p,walletBalanceSc:m,isSynced:h,children:d}),(0,D.jsxs)("div",{className:"flex flex-col flex-1 overflow-hidden",children:[(0,D.jsx)(OH,{title:void 0===r?n:r,nav:s,actions:l,stats:u}),g?(0,D.jsx)(us,{className:"z-0",children:(0,D.jsx)(lD,{size:o,pad:!1,children:(0,D.jsx)("div",{className:"flex flex-col gap-5",children:c})})}):(0,D.jsx)(lD,{size:o,pad:!1,className:"flex-1 flex flex-col gap-5 overflow-hidden",children:c})]})]})]})]})}function _h(e,t,n,r){let[i,o]=(0,Z.useState)();return(0,Z.useEffect)(()=>{!t&&e&&o(e.length)},[t,e,o]),(0,Z.useMemo)(()=>n?"error":void 0===i||i>0&&!e?"loading":0===i?0===r.length?"noneYet":"noneMatchingFilters":void 0,[e,i,n,r])}function _p(e){let{filtered:t}=e;return(0,D.jsxs)("div",{className:"flex flex-col gap-8 justify-center items-center h-[300px]",children:[(0,D.jsx)(t7,{children:(0,D.jsx)(lf.Hb6,{className:"scale-[200%]"})}),(0,D.jsx)(t7,{color:"subtle",className:"text-center max-w-[500px]",children:t?"No matching alerts.":"There are currently no alerts."})]})}(0,Z.createContext)(null).Consumer;let _m=[];function _v(e){let{open:t,onOpenChange:n,dismissOne:r,dismissMany:i,alerts:o,dataFieldOrder:a,dataFields:s}=e,l=_h(o.data,o.isValidating,o.error,_m),[u,c]=(0,Z.useState)(),d=(0,Z.useMemo)(()=>{var e;return(null===(e=o.data)||void 0===e?void 0:e.filter(e=>!u||e.severity===u))||[]},[o.data,u]),f=(0,Z.useCallback)(e=>{let t=Object.keys(e).sort((e,t)=>{let n=a.indexOf(e),r=a.indexOf(t);return -1===n&&-1===r?0:-1===n?1:-1===r?-1:n-r});return t},[a]);return(0,D.jsx)(uc,{open:t,onOpenChange:e=>{n(e)},contentVariants:{className:"w-[500px] h-[80vh]"},title:(0,D.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,D.jsxs)(c0,{size:"20",children:["Alerts ",o.data?"(".concat(o.data.length,")"):""]}),(0,D.jsxs)("div",{className:"flex gap-1",children:[(0,D.jsx)(ld,{variant:void 0===u?"accent":"gray",onClick:()=>c(void 0),children:"all"}),(0,D.jsx)(ld,{variant:"info"===u?"accent":"gray",onClick:()=>c("info"),children:"info"}),(0,D.jsx)(ld,{variant:"warning"===u?"accent":"gray",onClick:()=>c("warning"),children:"warning"}),(0,D.jsx)(ld,{variant:"error"===u?"accent":"gray",onClick:()=>c("error"),children:"error"}),(0,D.jsx)(ld,{variant:"critical"===u?"accent":"gray",onClick:()=>c("critical"),children:"critical"}),(0,D.jsx)("div",{className:"flex-1"}),!l&&!!d.length&&(0,D.jsxs)(ld,{tip:u?"dismiss ".concat(d.length):"dismiss all",onClick:()=>i(d.map(e=>e.id),u),children:[(0,D.jsx)(lf.NlZ,{}),d.length>0?" ".concat(d.length):""]})]})]}),children:(0,D.jsxs)("div",{className:(0,eE.cx)("flex flex-col overflow-hidden -m-4","border-t border-gray-200 dark:border-graydark-300"),children:["noneYet"===l&&(0,D.jsx)(_p,{filtered:!1}),"error"===l&&(0,D.jsx)("div",{className:(0,eE.cx)("flex items-center justify-center h-[100px]",_b()),children:(0,D.jsx)(t7,{size:"18",color:"subtle",children:o.error.message})}),"loading"===l&&(0,D.jsx)(_y,{}),!l&&(0,D.jsx)("div",{className:"flex flex-col",children:d.length?d.map(e=>(0,D.jsxs)("div",{className:(0,eE.cx)("flex flex-col gap-1 w-full p-4","border-t border-gray-200 dark:border-graydark-300","first:border-none"),children:[(0,D.jsxs)("div",{className:"flex justify-between gap-1 w-full",children:[(0,D.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,D.jsxs)(t7,{weight:"medium",className:"w-full",children:[e.severity,": ",e.message]})}),(0,D.jsx)(ld,{tip:"Dismiss alert",onClick:()=>r(e.id),children:(0,D.jsx)(lf.NlZ,{})})]}),(0,D.jsxs)("div",{className:"flex justify-between w-full",children:[(0,D.jsx)(t7,{color:"subtle",ellipsis:!0,children:"timestamp"}),(0,D.jsx)(t7,{color:"contrast",ellipsis:!0,children:(0,g_.rN)(e.timestamp,{timeStyle:"medium"})})]}),f(e.data).map(t=>{var n;let r=e.data[t];if(null==r||"object"==typeof r&&!Object.keys(r).length)return null;let i=(null==s?void 0:null===(n=s[t])||void 0===n?void 0:n.render)||_g;return(0,D.jsx)(i,{label:t,value:r},t)})]},e.id)):(0,D.jsx)(_p,{filtered:!!u})})]})})}function _g(e){let{label:t,value:n}=e;return(0,D.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,D.jsx)(t7,{color:"subtle",children:t}),(0,D.jsx)(t7,{color:"contrast",ellipsis:!0,children:String(n)})]})}function _y(){return(0,D.jsx)(D.Fragment,{children:Oi(10,e=>(0,D.jsx)("div",{className:(0,eE.cx)("relative flex gap-4 p-3.5",_b()),children:(0,D.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,D.jsxs)("div",{className:"flex justify-between gap-2 w-full",children:[(0,D.jsx)(fz,{className:"w-[160px] h-[20px]"}),(0,D.jsx)(fz,{className:"w-[160px] h-[20px]"})]}),(0,D.jsx)(fz,{className:"w-[100px] h-[20px]"}),(0,D.jsx)(fz,{className:"w-full h-[120px]"})]})},e))})}function _b(){return(0,eE.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")}var _x=n(89644),_w=n.n(_x),_E=n(63955),_j=n(92263),_k=n(45500),_S=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n},_O=(_=n(6623).Z,function(e){var t,n=(0,_j.Z)(e);return"[object Map]"==n?(0,_k.Z)(e):"[object Set]"==n?_S(e):(t=_(e),(0,ke.Z)(t,function(t){return[t,e[t]]}))});function __(e){let{form:t,field:n,name:r}=e,i=t.watch(r),o=t.formState.touchedFields[r]&&!!t.formState.errors[r],{ref:a,onChange:s,onBlur:l}=t.register(r,n.validation),u=(0,Z.useCallback)(e=>{var r;s(e),null===(r=n.trigger)||void 0===r||r.forEach(e=>t.trigger(e))},[s,t,n]),c=(0,Z.useCallback)((e,i)=>{var o;t.setValue(r,e,"boolean"==typeof i?i?{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0}:void 0:i),null===(o=n.trigger)||void 0===o||o.forEach(e=>t.trigger(e))},[r,t,n]);return{ref:a,name:r,value:i,error:o,onBlur:l,onChange:u,setValue:c}}function _C(e){return(0,Z.useCallback)(t=>{SH(_O(t).map(t=>{let[n,r]=t;return"".concat(e[n].title||n,": ").concat(null==r?void 0:r.message)}).join(", "))},[e])}function _M(e){let{name:t,form:n,fields:r,size:i="small",autoComplete:o,spellCheck:a,state:s=!0,group:l=!0}=e,u=r[t],{ref:c,onChange:d,onBlur:f,error:h}=__({name:t,form:n,field:u}),p=(0,D.jsx)(fn,{ref:c,name:t,placeholder:u.placeholder,size:i,autoComplete:o,type:u.type,readOnly:u.readOnly,spellCheck:a,onClick:u.onClick,state:s?h?"invalid":n.formState.dirtyFields[t]?"valid":"default":"default",onChange:d,onBlur:f});return l?(0,D.jsx)(OT,{title:u.title,actions:u.actions,name:t,form:n,children:p}):p}var _A=n(52390),_T=function(e,t){return kS(kx(e,t,kE.Z),e+"")},_P=n(78804),_N=n(63282),_R=n(66401),_D=function(e,t,n){if(!(0,vh.Z)(n))return!1;var r=typeof t;return("number"==r?!!((0,_N.Z)(n)&&(0,_R.Z)(t,n.length)):"string"==r&&t in n)&&(0,_P.Z)(n[t],e)},_Z=_T(function(e,t){if(null==e)return[];var n=t.length;return n>1&&_D(e,t[0],t[1])?t=[]:n>2&&_D(t[0],t[1],t[2])&&(t=[t[0]]),(0,_A.Z)(e,kg(t,1),[])});async function _L(e){let{api:t,route:n,password:r}=e;try{return await _w().get("".concat(t,"/api").concat(n),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(":".concat(r))},timeout:1e4}),{}}catch(n){let e=n.code,t=n.response;if((null==t?void 0:t.status)===504)return{error:"Error, check that daemon is running"};if((null==t?void 0:t.status)===401)return{error:"Error, wrong password"};if("ECONNABORTED"===e)return{error:"Error, daemon did not respond"};return{error:"Error, something went wrong"}}}function _F(e){let{appName:t,route:n,routes:r}=e,i=(0,cX.j0)(),{settings:o,setSettings:a}=(0,fC.Hv)(),{allowCustomApi:s}=o,l=(0,Z.useMemo)(()=>({api:o.api,password:""}),[o.api]),u=(0,_E.cI)({mode:"onBlur",defaultValues:l});(0,Z.useEffect)(()=>{u.clearErrors()},[s]);let c=(0,Z.useCallback)(async e=>{let t="";if(s){let n=new URL(e.api);t="".concat(n.protocol,"//").concat(n.host)}let{error:c}=await _L({api:t,route:n,password:e.password});c?u.setError("password",{message:c}):(a({api:t,password:e.password,recentApis:{...o.recentApis,[t]:{lastUsed:new Date().getTime()}}}),i.push(i.query.prev?decodeURIComponent(i.query.prev):r.home),u.reset(l))},[s,u,i,r,o,a,l,n]),d=function(e){let{allowCustomApi:t}=e;return{api:{type:"text",title:"API",placeholder:"http://127.0.0.1:9980",validation:{validate:{required:e=>!t||!!e||"API is required",url:e=>{try{let t=new URL(e);return!!t.protocol&&!!t.host||"invalid API URL"}catch(e){return"invalid API URL"}},https:e=>{let t="https:"===window.location.protocol;return!t||t&&e.startsWith("https")||"API must use HTTPS"}}}},password:{type:"password",title:"Password",placeholder:"Enter password",validation:{required:"password is required"}}}}({allowCustomApi:s}),f=_C(d),h=u.formState.errors.api||u.formState.errors.password,p=_Z(Object.entries(o.recentApis),e=>{let[t,{lastUsed:n}]=e;return-n}).map(e=>{let[t]=e;return t});return(0,D.jsx)("div",{className:"flex flex-col items-center justify-center gap-6 h-full",children:(0,D.jsx)(nt,{className:"relative top-[-50px] w-[300px] p-2.5",children:(0,D.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,D.jsxs)("div",{className:"flex justify-between items-center",children:[(0,D.jsx)(t7,{font:"mono",weight:"bold",size:"20",children:t}),(0,D.jsx)(c$,{trigger:(0,D.jsx)(ld,{icon:"hover",variant:"ghost",children:(0,D.jsx)(lf.shL,{})}),children:(0,D.jsx)(cY,{onSelect:()=>a({allowCustomApi:!s}),children:s?"Hide custom API":"Show custom API"})})]}),(0,D.jsx)(cZ,{className:"w-full mt-2 mb-3"}),(0,D.jsx)("form",{onSubmit:u.handleSubmit(c,f),children:(0,D.jsxs)("div",{className:"flex flex-col gap-1.5",children:[s?(0,D.jsxs)(lN,{children:[(0,D.jsx)(_M,{name:"api",form:u,fields:d,group:!1}),p.length>1&&(0,D.jsx)(c$,{trigger:(0,D.jsx)(ld,{type:"button",children:(0,D.jsx)(lf.wGX,{})}),children:p.map(e=>(0,D.jsx)(cY,{onSelect:()=>u.setValue("api",e),children:e},e))})]}):null,(0,D.jsx)(_M,{name:"password",form:u,fields:d,group:!1}),h&&(0,D.jsx)(t7,{size:"14",color:"red",children:h.message}),(0,D.jsx)(OP,{size:"small",form:u,children:"Unlock"})]})})]})})})}var _z=n(7114),_V=n(24511);let _I={address:"",siacoin:void 0,includeFee:!1},_B=_V.Ry().shape({address:_V.Z_().required("Required"),siacoin:_V.Z_().required("Required").test("greater than zero","Must be greater than zero",e=>!new(fk())(e||0).isZero())});function _H(e){let{address:t,siacoin:n,fee:r,transactionId:i}=e,o=n.plus(r);return(0,D.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,D.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,D.jsx)(t7,{color:"verySubtle",noWrap:!0,children:"Address"}),(0,D.jsx)(S2,{value:t,type:"address"})]}),(0,D.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,D.jsx)(t7,{color:"verySubtle",noWrap:!0,children:"Amount"}),(0,D.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,D.jsx)(S5,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,D.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,D.jsx)(t7,{color:"verySubtle",noWrap:!0,children:"Network fee"}),(0,D.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,D.jsx)(S5,{size:"14",value:r,variant:"value",dynamicUnits:!1})})]}),(0,D.jsxs)("div",{className:"flex items-center gap-2 justify-between",children:[(0,D.jsx)(t7,{color:"verySubtle",noWrap:!0,children:"Total"}),(0,D.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,D.jsx)(S5,{size:"14",value:o,variant:"value",dynamicUnits:!1})})]}),i&&(0,D.jsxs)("div",{className:"flex gap-6 items-center justify-between",children:[(0,D.jsx)(t7,{color:"verySubtle",noWrap:!0,children:"Transaction ID"}),(0,D.jsx)(S2,{value:i,type:"transaction"})]})]})}function _U(e){let{activeStep:t,steps:n,onChange:r}=e,i=n.findIndex(e=>e.id===t),o=n.length-1;return(0,D.jsxs)("div",{className:"relative w-full mt-8 mb-3",children:[(0,D.jsx)("div",{className:"absolute w-full h-1 bg-gray-500 dark:bg-graydark-500 rounded-lg"}),(0,D.jsx)("div",{className:"absolute h-1 bg-accent-800 dark:bg-accentdark-800 rounded-lg",style:{width:"".concat(i/o*100,"%")}}),n.map((e,n)=>{let{id:a,label:s}=e,l=t===a,u=i>=n,c=n===o,d=0===n,f=u&&i!==o;return(0,D.jsxs)("div",{className:(0,eE.cx)("absolute h-2 w-2 -top-0.5",f?"cursor-pointer":"cursor-default"),style:{left:"calc(".concat(n/o*100,"% - ").concat(c?8:d?0:4,"px)")},onClick:()=>{f&&r(a)},children:[(0,D.jsx)(t7,{color:l?"contrast":"verySubtle",className:(0,eE.cx)("absolute top-[-30px]",d?"left-0":"",c?"right-0":"",d||c?"":"-translate-x-1/2"),noWrap:!0,children:s}),(0,D.jsx)("div",{className:(0,eE.cx)("absolute left-0 top-0 h-full w-full rounded-lg border",u?"bg-accent-800 dark-accentdark-800":"bg-gray-500 dark:bg-graydark-500",u?"border-accent-900 dark:border-accentdark-900":"border-gray-600 dark:border-graydark-600")}),l&&(0,D.jsx)("div",{className:"absolute left-0 top-0 h-full w-full rounded-lg bg-accent-800 dark:bg-accentdark-800 animate-pingslow"})]},a)})]})}function _W(e){let{data:{address:t,siacoin:n},fee:r,transactionId:i}=e;return(0,D.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,D.jsx)(_H,{address:t,siacoin:n,fee:r,transactionId:i}),(0,D.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 my-4",children:[(0,D.jsx)(t7,{children:(0,D.jsx)(lf.Z$8,{})}),(0,D.jsx)(t7,{children:"Transaction successfully broadcasted."})]})]})}let _q=(0,g_.qN)(.00393),_$={address:"",siacoin:new(fk())(0),includeFee:!1};function _Y(e){let{trigger:t,open:n,onOpenChange:r,balance:i,send:o}=e,[a,s]=(0,Z.useState)("setup"),[l,u]=(0,Z.useState)(),[c,d]=(0,Z.useState)(_$),f=function(e){let{balance:t,fee:n,onComplete:r}=e,i=(0,_z.TA)({initialValues:_I,validationSchema:_B,onSubmit:async e=>{if(!e.siacoin)return;let o=e.includeFee?(0,g_.qN)(e.siacoin).minus(n):(0,g_.qN)(e.siacoin);if(t){if(t.isLessThan((0,g_.qN)(e.siacoin).plus(n))){i.setStatus({error:"Not enough funds in wallet."});return}i.setStatus({}),r({includeFee:e.includeFee,address:e.address,siacoin:o})}}}),o=(0,g_.qN)(i.values.siacoin||0),a=(0,D.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,D.jsx)(ON,{formik:i,variants:{size:"medium"},title:"Address",name:"address",placeholder:"e3b1050aef388438668b52983cf78f40925af8f0aa8b9de80c18eadcefce8388d168a313e3f2",autoComplete:"off",type:"text"}),(0,D.jsx)(ON,{formik:i,title:"Siacoin",name:"siacoin",placeholder:"100",type:"siacoin"}),(0,D.jsxs)("div",{className:"flex items-center",children:[(0,D.jsx)(fJ,{name:"includeFee",onCheckedChange:e=>i.setFieldValue("includeFee",e),children:"Include fee"}),(0,D.jsx)(fN,{children:"Include or exclude the network fee from the above transaction value."}),(0,D.jsx)("div",{className:"flex flex-1"})]}),(0,D.jsxs)("div",{className:"flex flex-col gap-2 my-1",children:[(0,D.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,D.jsx)(t7,{color:"verySubtle",children:"Network fee"}),(0,D.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,D.jsx)(S5,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,D.jsxs)("div",{className:"flex justify-between gap-2 items-center",children:[(0,D.jsx)(t7,{color:"verySubtle",children:"Total"}),(0,D.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,D.jsx)(S5,{size:"14",value:i.values.includeFee?o:o.plus(n),variant:"value",dynamicUnits:!1})})]})]})]});return{formik:i,form:a}}({balance:i,fee:_q,onComplete:e=>{d(e),s("confirm")}}),h=function(e){let{send:t,formData:n,fee:r,onConfirm:i}=e,{address:o,siacoin:a}=n||{},s=(0,_z.TA)({initialValues:{},onSubmit:async()=>{let{transactionId:e,error:n}=await t({address:o,sc:a});if(n){s.setStatus({error:n});return}i({transactionId:e})}}),l=(0,D.jsx)("div",{className:"flex flex-col gap-4",children:(0,D.jsx)(_H,{address:o,siacoin:a,fee:r})});return{form:l,formik:s}}({fee:_q,formData:c,send:o,onConfirm:e=>{let{transactionId:t}=e;u(t),s("done")}}),p=(0,Z.useMemo)(()=>"setup"===a?{submitLabel:"Generate transaction",formik:f.formik}:"confirm"===a?{submitLabel:"Broadcast transaction",formik:h.formik}:void 0,[a,f,h]);return(0,D.jsx)(uc,{trigger:t,open:n,onOpenChange:e=>{e||(f.formik.resetForm(),h.formik.resetForm(),s("setup")),r(e)},title:"Send siacoin",onSubmit:p?p.formik.handleSubmit:void 0,controls:p&&(0,D.jsx)("div",{className:"flex flex-col gap-1",children:(0,D.jsx)(Oz,{formik:p.formik,children:p.submitLabel})}),contentVariants:{className:"w-[400px]"},children:(0,D.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,D.jsx)(_U,{onChange:e=>s(e),activeStep:a,steps:[{id:"setup",label:"Setup"},{id:"confirm",label:"Confirm"},{id:"done",label:"Complete"}]}),(0,D.jsx)(cZ,{className:"w-full mt-4"}),"setup"===a&&f.form,"confirm"===a&&h.form,"done"===a&&(0,D.jsx)(_W,{data:c,fee:_q,transactionId:l})]})})}let _G="[a-fA-F\\d:]",_K=e=>e&&e.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(_G,")|(?<=").concat(_G,")(?=\\s|$))"):"",_X="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",_Q="[a-fA-F\\d]{1,4}",_J="\n(?:\n(?:".concat(_Q,":){7}(?:").concat(_Q,"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:").concat(_Q,":){6}(?:").concat(_X,"|:").concat(_Q,"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:").concat(_Q,":){5}(?::").concat(_X,"|(?::").concat(_Q,"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:").concat(_Q,":){4}(?:(?::").concat(_Q,"){0,1}:").concat(_X,"|(?::").concat(_Q,"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:").concat(_Q,":){3}(?:(?::").concat(_Q,"){0,2}:").concat(_X,"|(?::").concat(_Q,"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:").concat(_Q,":){2}(?:(?::").concat(_Q,"){0,3}:").concat(_X,"|(?::").concat(_Q,"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:").concat(_Q,":){1}(?:(?::").concat(_Q,"){0,4}:").concat(_X,"|(?::").concat(_Q,"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::").concat(_Q,"){0,5}:").concat(_X,"|(?::").concat(_Q,"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),_0=new RegExp("(?:^".concat(_X,"$)|(?:^").concat(_J,"$)")),_1=new RegExp("^".concat(_X,"$")),_2=new RegExp("^".concat(_J,"$")),_4=e=>e&&e.exact?_0:RegExp("(?:".concat(_K(e)).concat(_X).concat(_K(e),")|(?:").concat(_K(e)).concat(_J).concat(_K(e),")"),"g");_4.v4=e=>e&&e.exact?_1:RegExp("".concat(_K(e)).concat(_X).concat(_K(e)),"g"),_4.v6=e=>e&&e.exact?_2:RegExp("".concat(_K(e)).concat(_J).concat(_K(e)),"g");let _3=()=>RegExp("^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|((([a-zA-Z]|[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]).)+([A-Za-z|[A-Za-z][A-Za-z0-9‌​-]*[A-Za-z0-9])))$","g"),_5={port:9981,ip:""},_6=_V.Ry().shape({port:_V.Rx().required("Required").min(0,"Out of valid range").max(65535,"Out of valid range"),ip:_V.Z_().required("Required").test("ip","Invalid hostname or IP address",e=>_3().test(e||""))});function _8(e){let{trigger:t,open:n,connect:r,onOpenChange:i}=e,o=(0,_z.TA)({initialValues:_5,validationSchema:_6,onSubmit:async(e,t)=>{let n="".concat(e.ip,":").concat(e.port),o=await r(n);if(o.error){let e=o.error.replace("invalid peer address: address ".concat(n,":"),"");t.setStatus({error:e})}else SI("Connected to peer"),t.resetForm(),i(!1)}});return(0,D.jsx)(uc,{trigger:t,title:"Connect peer",open:n,onOpenChange:e=>{e||o.resetForm(),i(e)},contentVariants:{className:"w-[400px]"},children:(0,D.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,D.jsx)(t9,{size:"14",children:"Connect to a peer by IP address."}),(0,D.jsx)("form",{onSubmit:o.handleSubmit,children:(0,D.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,D.jsx)(ON,{formik:o,title:"Address",name:"ip",placeholder:"host.acme.com or 127.0.0.1",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,D.jsx)(ON,{formik:o,title:"Port",name:"port",disableGroupSeparators:!0,placeholder:"9981",autoComplete:"off",type:"number",variants:{size:"medium"}}),(0,D.jsx)(Oz,{formik:o,size:"medium",children:"Connect"})]})})]})})}function _7(e){var t,n;let{id:r,transaction:i,trigger:o,open:a,onOpenChange:s}=e;return(0,D.jsx)(uc,{title:SG((null==i?void 0:i.txType)?OE(S1(i.txType)):"Transaction",r,16),trigger:o,open:a,onOpenChange:s,contentVariants:{className:"w-[800px]"},children:i?(0,D.jsxs)("div",{className:"flex flex-col gap-4 pb-10 w-full overflow-hidden",children:[(0,D.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(null==i?void 0:i.inflow)!==void 0&&(0,D.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,D.jsx)(t7,{children:"Inflow"}),(0,D.jsx)(S5,{value:new(fk())((null==i?void 0:i.inflow)||0)})]}),(null==i?void 0:i.outflow)!==void 0&&(0,D.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,D.jsx)(t7,{children:"Outflow"}),(0,D.jsx)(S5,{value:new(fk())((null==i?void 0:i.outflow)||0).negated()})]}),(null==i?void 0:null===(t=i.raw)||void 0===t?void 0:t.minerFees)!==void 0&&(0,D.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,D.jsx)(t7,{children:"Miner fee"}),(0,D.jsx)(S5,{value:new(fk())((null==i?void 0:null===(n=i.raw.minerFees)||void 0===n?void 0:n.reduce((e,t)=>e.plus(t),new(fk())(0)))||0)})]}),(0,D.jsx)("div",{className:"flex-1"}),(0,D.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,D.jsx)(t7,{children:"Timestamp"}),(0,D.jsx)(t7,{children:(null==i?void 0:i.timestamp)?(0,g_.rN)((null==i?void 0:i.timestamp)||0,{timeStyle:"short"}):"Unconfirmed"})]})]}),(0,D.jsx)(lM,{children:JSON.stringify(null==i?void 0:i.raw,null,2)})]}):(0,D.jsx)(t7,{children:"Could not find transaction in wallet"})})}_V.Ry().shape({address:_V.Z_().required("Required"),description:_V.Z_().required("Required"),index:_V.Rx().integer().required("Required")});var _9=n(38001);function Ce(e){let{title:t,description:n,address:r}=e;return(0,D.jsxs)("div",{className:"flex flex-col gap-4 items-center justify-center",children:[t&&(0,D.jsx)(c0,{size:"20",font:"mono",children:t}),n&&(0,D.jsx)(t7,{children:n}),(0,D.jsx)("div",{className:"relative p-[5px] bg-white h-[210px] w-[210px]",children:(0,D.jsx)("div",{className:"absolute",children:(0,D.jsx)(_9.Z,{size:200,value:r})})}),(0,D.jsx)(S2,{type:"address",value:r})]})}function Ct(e){let{address:t,isValidating:n,trigger:r,open:i,onOpenChange:o}=e;return(0,D.jsx)(uc,{title:SG("Address",SY(t)||"",16),trigger:r,open:i,onOpenChange:o,contentVariants:{className:"w-[400px]"},children:(0,D.jsx)("div",{className:"flex flex-col gap-4",children:t||n?(0,D.jsx)(Ce,{address:t||""}):(0,D.jsx)(t7,{children:"Could not retreive wallet address"})})})}function Cn(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i}=e;return t?n?null:(0,D.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,D.jsx)(t7,{color:"amber",children:(0,D.jsx)(lf.qdM,{})}),(0,D.jsxs)(t7,{size:"14",children:["Wallet is scanning (",i,"%), transaction data may be incomplete."]})]}):(0,D.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,D.jsx)(t7,{color:"amber",children:(0,D.jsx)(lf.qdM,{})}),(0,D.jsxs)(t7,{size:"14",children:["Blockchain is syncing (",r,"%), transaction data may be incomplete."]})]})}let Cr={blog:"https://blog.sia.tech",docs:{index:"https://docs.sia.tech",sia101:"https://docs.sia.tech/get-started-with-sia/sia101",renterd:"https://docs.sia.tech/renting/about-renting",hostd:"https://docs.sia.tech/hosting/about-hosting-on-sia",walletd:"https://docs.sia.tech/wallet/wallet-overview",renting:"https://docs.sia.tech/renting/about-renting",wallet:"https://docs.sia.tech/wallet/wallet-overview",hosting:"https://docs.sia.tech/hosting/about-hosting-on-sia",mining:"https://docs.sia.tech/mining/about-mining-on-sia",embarcadero:"https://github.com/SiaFoundation/embarcadero",siad:"https://api.sia.tech",siaui:"https://docs.sia.tech/your-sia-wallet/sia-ui-faqs",brand:"https://docs.sia.tech/sia-integrations/sia-brand-guidelines"},website:{index:"https://sia.tech",tos:"https://sia.tech/terms-of-service",privacy:"https://sia.tech/privacy-policy"},explore:{mainnet:"https://siascan.com",testnetZen:"https://zen.siascan.com",testnetZenFaucet:"https://zen.siascan.com/faucet"},design:"https://design.sia.tech",apiDocs:{renterd:"https://api.sia.tech/renterd",hostd:"https://api.sia.tech/hostd",walletd:"https://api.sia.tech/walletd"},github:{index:"https://github.com/SiaFoundation",embarcadero:"https://github.com/SiaFoundation/embarcadero",siad:"https://github.com/SiaFoundation/siad",renterd:"https://github.com/SiaFoundation/renterd",walletd:"https://github.com/SiaFoundation/walletd",hostd:"https://github.com/SiaFoundation/hostd",siaui:"https://gitlab.com/NebulousLabs/Sia-UI"},discord:"https://sia.tech/discord",twitter:"https://twitter.com/sia__foundation",bluesky:"https://bsky.app/profile/sia.tech",twitterHandle:"@sia__foundation",reddit:"https://reddit.com/r/siacoin",forum:"https://forum.sia.tech/",forumGrants:"https://forum.sia.tech/c/grants/",forumGrantsProposed:"https://forum.sia.tech/c/grants/proposed/",merch:"https://siagear.tech/",email:"hello@sia.tech",benchmarks:"https://benchmarks.sia.tech",storageStats:"https://hosts.siacentral.com/",hostTroubleshoot:"https://troubleshoot.siacentral.com/",coinmarketcap:"https://coinmarketcap.com/currencies/siacoin/",jobs:"https://siafoundation.homerun.co/"};function Ci(){let{settings:e,setCurrency:t,currencyOptions:n}=(0,fC.Hv)();return(0,D.jsx)(fZ,{disabled:!e.siaCentral,value:e.currency.id,onChange:e=>t(e.currentTarget.value),children:n.map(e=>{let{id:t,label:n}=e;return(0,D.jsx)(fL,{value:t,children:n},t)})})}let Co=[{id:"sc",label:"Siacoin"},{id:"fiat",label:"Fiat"},{id:"bothPreferSc",label:"Both - prefer siacoin"},{id:"bothPreferFiat",label:"Both - prefer fiat"}];function Ca(){let{settings:e,setSettings:t}=(0,fC.Hv)();return(0,D.jsx)(fZ,{disabled:!e.siaCentral,value:e.currencyDisplay,onChange:e=>t({currencyDisplay:e.currentTarget.value}),children:Co.map(e=>{let{id:t,label:n}=e;return(0,D.jsx)(fL,{value:t,children:n},t)})})}function Cs(e){let{open:t,onOpenChange:n,securityEl:r,showGpuSetting:i}=e,{settings:o,setSettings:a,gpu:s}=(0,fC.Hv)();return(0,D.jsx)(uc,{open:t,title:"App preferences",onOpenChange:n,contentVariants:{className:"w-[450px]"},children:(0,D.jsxs)("div",{className:"flex flex-col gap-6 mb-2",children:[(0,D.jsx)("div",{className:"flex flex-col gap-4",children:(0,D.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,D.jsx)(t7,{size:"16",weight:"bold",children:"Display"}),(0,D.jsx)(t9,{size:"14",children:"Configure visual and locale display preferences."}),(0,D.jsx)(lp,{children:(0,D.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,D.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,D.jsx)(t7,{children:(0,D.jsx)(lf.RdX,{})}),(0,D.jsx)(c0,{size:"20",className:"flex-1",children:"Currency display"}),(0,D.jsx)(Ca,{})]}),(0,D.jsx)(t9,{size:"14",children:"Select whether you would like to see currency values in siacoin, fiat, or both. Fiat requires Sia Central third-party data enabled under Privacy."})]})}),(0,D.jsx)(lp,{children:(0,D.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,D.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,D.jsx)(t7,{children:(0,D.jsx)(lf.RdX,{})}),(0,D.jsx)(c0,{size:"20",className:"flex-1",children:"Fiat"}),(0,D.jsx)(Ci,{})]}),(0,D.jsx)(t9,{size:"14",children:"Select a fiat currency for price conversions from Siacoin. Requires Sia Central third-party data enabled under Privacy."})]})}),(0,D.jsx)(lp,{children:(0,D.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,D.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,D.jsx)(t7,{children:(0,D.jsx)(lf.RdX,{})}),(0,D.jsx)(c0,{size:"20",className:"flex-1",children:"Theme"}),(0,D.jsx)(pE,{})]}),(0,D.jsx)(t9,{size:"14",children:"Switch between a dark or light mode, or follow your system's settings."})]})}),i&&(0,D.jsx)(lp,{children:(0,D.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,D.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,D.jsx)(t7,{children:(0,D.jsx)(lf.RdX,{})}),(0,D.jsx)(c0,{size:"20",className:"flex-1",children:"GPU"}),(0,D.jsx)(fJ,{disabled:!s.canGpuRender,checked:s.canGpuRender&&s.isGpuEnabled,onCheckedChange:s.setIsGpuEnabled,size:"medium"})]}),(0,D.jsxs)(t9,{size:"14",children:["Enable features that require a GPU."," ",s.canGpuRender?"":"This device does not support GPU rendering."]})]})})]})}),(0,D.jsx)(cZ,{className:"w-full"}),(0,D.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,D.jsx)(t7,{size:"16",weight:"bold",children:"Security"}),(0,D.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,D.jsx)(t9,{size:"14",children:"Configure security preferences."}),(0,D.jsx)(lp,{children:(0,D.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,D.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,D.jsx)(t7,{children:(0,D.jsx)(lf.RdX,{})}),(0,D.jsx)(c0,{size:"20",className:"flex-1",children:"Lock app"}),(0,D.jsx)(fJ,{size:"medium",checked:o.autoLock,onCheckedChange:e=>a({autoLock:e})}),(0,D.jsxs)(fZ,{disabled:!o.autoLock,value:String(o.autoLockTimeout),onChange:e=>{a({autoLockTimeout:Number(e.currentTarget.value)})},children:[(0,D.jsx)(fL,{value:kC(5),children:"5 minutes"}),(0,D.jsx)(fL,{value:kC(10),children:"10 minutes"}),(0,D.jsx)(fL,{value:kC(20),children:"20 minutes"}),(0,D.jsx)(fL,{value:kC(30),children:"30 minutes"}),(0,D.jsx)(fL,{value:kC(60),children:"1 hour"})]})]}),(0,D.jsx)(t9,{size:"14",children:"Automatically lock the app after a certain period of inactivity."})]})}),r]})]}),(0,D.jsx)(cZ,{className:"w-full"}),(0,D.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,D.jsx)(t7,{size:"16",weight:"bold",children:"Privacy"}),(0,D.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,D.jsx)(t9,{size:"14",children:"Configure privacy preferences. The app uses the third-party APIs listed below to improve the user experience. All third-party APIs are optional and can be toggled on or off."}),(0,D.jsx)(lp,{children:(0,D.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,D.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,D.jsx)(t7,{children:(0,D.jsx)(lf.RdX,{})}),(0,D.jsx)(c0,{size:"20",className:"flex-1",children:"Sia Central"}),(0,D.jsx)(fJ,{size:"medium",checked:o.siaCentral,onCheckedChange:e=>a({siaCentral:e})})]}),(0,D.jsx)(t9,{size:"14",children:"The app fetches Siacoin exchange rates from the Sia Central API."})]})})]})]}),(0,D.jsx)(cZ,{className:"w-full"}),(0,D.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,D.jsx)(t7,{size:"16",weight:"bold",children:"Help"}),(0,D.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,D.jsx)(t9,{size:"14",children:"Find information about the Sia software at our website, documentation site, and on Github. Join our active Discord community for discussion and help troubleshooting issues."}),(0,D.jsxs)("div",{className:"flex gap-4",children:[(0,D.jsxs)(de,{href:Cr.website.index,target:"_blank",className:"flex items-center gap-1",children:[(0,D.jsx)(lf.lq1,{}),"Website"]}),(0,D.jsxs)(de,{href:Cr.docs.index,target:"_blank",className:"flex items-center gap-1",children:[(0,D.jsx)(lf.RdX,{}),"Docs"]}),(0,D.jsxs)(de,{href:Cr.github.index,target:"_blank",className:"flex items-center gap-1",children:[(0,D.jsx)(lf.Sfn,{}),"About"]}),(0,D.jsxs)(de,{href:Cr.discord,target:"_blank",className:"flex items-center gap-1",children:[(0,D.jsx)(lf.b47,{}),"Discord"]})]})]})]})]})})}function Cl(e){let{balanceSc:t,isSynced:n,syncingMessage:r}=e;return t?n?(0,D.jsx)(OG,{side:"bottom",balanceSc:t,children:(0,D.jsx)(nt,{className:"hidden sm:flex h-7 px-3 items-center",children:(0,D.jsx)(S7,{variant:"value",value:t.spendable.plus(t.unconfirmed),size:"12",showTooltip:!1})})}):(0,D.jsx)(lu,{content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,D.jsxs)(nt,{className:"hidden sm:flex h-7 pl-2 pr-3 gap-1.5 items-center",children:[(0,D.jsx)(t7,{color:"amber",children:(0,D.jsx)(lf.qdM,{})}),(0,D.jsx)(S7,{variant:"value",value:t.spendable.plus(t.unconfirmed),size:"12",showTooltip:!1})]})}):null}function Cu(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i,balanceSc:o,sendSiacoin:a,receiveSiacoin:s}=e;return(0,D.jsxs)(D.Fragment,{children:[o&&(0,D.jsx)(Cl,{isSynced:t&&n,syncingMessage:t?"Wallet is scanning (".concat(i,"%), balance may be incorrect."):"Blockchain is syncing (".concat(r,"%), balance may be incorrect."),balanceSc:o}),s&&(0,D.jsxs)(ld,{size:"small",onClick:s,children:[(0,D.jsx)(lf.xHM,{}),"Receive"]}),(0,D.jsxs)(ld,{size:"small",variant:"accent",onClick:a,children:[(0,D.jsx)(lf.rW0,{}),"Send"]})]})}function Cc(e,t){if(!e||!e.length)return[];let n=Object.keys(k_(e[0],"timestamp"));e.sort((e,t)=>e.timestamp>t.timestamp?1:-1);let r=[];return"delta"===t?e.forEach((t,i)=>{let o={...t};0!==i&&(n.forEach(n=>{let r=t[n],a=e[i-1][n];o[n]=r-a}),r.push(o))}):r=e,r}function Cd(e,t){return"all"===e?{start:new Date(2022,1,1).getTime(),end:t}:{start:t-kA(Number(e)),end:t}}let Cf={"5m":e=>{let t=e+kC(5);return"5m interval from ".concat((0,g_.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,g_.rN)(t,{timeStyle:"short",hour12:!1}))},"15m":e=>{let t=e+kC(15);return"15m interval from ".concat((0,g_.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,g_.rN)(t,{timeStyle:"short",hour12:!1}))},hourly:e=>{let t=e+kM(1);return"Hour interval from ".concat((0,g_.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,g_.rN)(t,{timeStyle:"short",hour12:!1}))},daily:e=>{let t=e+kM(24);return"Day interval from ".concat((0,g_.rN)(e)," to ").concat((0,g_.rN)(t))},weekly:e=>{let t=e+kA(7);return"Week interval from ".concat((0,g_.rN)(e)," to ").concat((0,g_.rN)(t))},monthly:e=>{let t=e+kA(30);return"Month interval from ".concat((0,g_.rN)(e)," to ").concat((0,g_.rN)(t))},yearly:e=>{let t=e+kA(365);return"Year interval from ".concat((0,g_.rN)(e)," to ").concat((0,g_.rN)(t))},default:e=>"".concat((0,g_.rN)(e))};function Ch(e){return Cf[e]||Cf.default}function Cp(e){if(!e||!e.length)return{};let t=Object.keys(k_(e[0],"timestamp"));e.sort((e,t)=>e.timestamp>t.timestamp?1:-1);let n=t.reduce((t,n)=>({...t,[n]:function(e,t){var n,r;let i=(null===(n=t[0])||void 0===n?void 0:n[e])||0,o=(null===(r=t[t.length-1])||void 0===r?void 0:r[e])||0,a=t.reduce((t,n)=>t+(n[e]||0),0);return Cm({total:a,start:i,end:o,count:t.length})}(n,e)}),{});return{...n,total:function(e,t){let n=Cv(e,t[0]),r=Cv(e,t[t.length-1]),i=t.reduce((t,n)=>t+Cv(e,n),0);return Cm({total:i,start:n,end:r,count:t.length})}(t,e)}}function Cm(e){let{total:t,start:n,end:r,count:i}=e,o=r-n;return{total:t,diff:o,change:0===n?void 0:o/n*100,latest:r,average:t/i}}function Cv(e,t){return e.reduce((e,n)=>e+((null==t?void 0:t[n])||0),0)}function Cg(e){let{balances:t,isLoading:n,chartType:r="area"}=e,{resolvedTheme:i}=(0,px.F)(),o=(0,Z.useMemo)(()=>"light"===i?{sc:{label:"siacoin",color:gO.accent[800]}}:{sc:{label:"siacoin",color:gO.accentdark[800]}},[i]),a=(0,Z.useMemo)(()=>{let e=Cc(t,"none"),i=Cp(t);return{data:e,stats:i,config:{enabledGraph:["sc"],enabledTip:["sc"],data:{sc:o.sc},format:e=>(0,g_.Vz)(e),formatTimestamp:Ch("default"),formatTickY:e=>(0,g_.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:r},isLoading:n}},[t,n,o,r]);return(0,D.jsx)("div",{className:"relative",children:(0,D.jsx)(kD,{id:"balance",height:200,allowConfiguration:!1,data:a.data,config:a.config})})}function Cy(e){let{peers:t,isLoading:n,connectPeer:r}=e;return(0,D.jsx)(OO,{title:"Peers",actions:(0,D.jsx)(ld,{onClick:r,children:"Connect"}),isLoading:n,dataset:(null==t?void 0:t.map(e=>({type:"ip",hash:e})))||[]})}function Cb(e){let{size:t,label:n,enabled:r=!0,onChange:i,color:o}=e;return(0,D.jsxs)("div",{className:(0,eE.cx)("flex gap-1.5 items-center",r?"opacity-100":"opacity-50",i?"cursor-pointer":"cursor-auto",i&&(r?"hover:opacity-90":"hover:opacity-60")),onClick:()=>i&&i(!r),children:[o&&(0,D.jsx)("div",{className:"relative top-px",children:(0,D.jsx)(fI,{style:{backgroundColor:o}})}),(0,D.jsx)(t7,{size:t,children:n})]})}var Cx=n(92762);let Cw={total:"total",average:"average",latest:"latest"};function CE(e){let{category:t,label:n,color:r,sc:i,value:o,extendedSuffix:a,format:s=e=>e.toFixed(2),defaultMode:l,enabledModes:u=["total","average","latest"],isLoading:c,showChange:d=!0}=e,[f,h]=(0,Cx.Z)("v0/datum/".concat(t,"/").concat(n),{defaultValue:l});return(0,D.jsx)(O_,{isLoading:c,label:(0,D.jsx)(Cb,{label:n,color:r}),actions:(0,D.jsx)(fZ,{onChange:e=>h(e.currentTarget.value),defaultValue:f,children:u.map(e=>(0,D.jsx)(fL,{value:e,children:Cw[e]},e))}),sc:(null==i?void 0:i[f])!==void 0?new(fk())(i[f]):void 0,extendedSuffix:a,value:(null==o?void 0:o[f])!==void 0&&s?s(o[f]):void 0,comment:i?(0,D.jsxs)("div",{className:"flex items-center gap-4",children:[(0,D.jsx)(S7,{tooltip:"Net change over time range:",fixedTipFiat:10,value:new(fk())(i.diff)}),d&&void 0!==i.change&&(0,D.jsx)(lu,{content:"Percent change over time range",children:(0,D.jsxs)(t7,{size:"14",weight:"semibold",font:"mono",ellipsis:!0,color:"verySubtle",children:[i.change.toFixed(2),"%"]})})]}):o&&(0,D.jsxs)("div",{className:"flex items-center gap-4",children:[(0,D.jsx)(S9,{tooltip:"Net change over time range:",format:e=>s(e.toNumber()),value:new(fk())(o.diff)}),d&&void 0!==o.change&&(0,D.jsx)(lu,{content:"Percent change over time range",children:(0,D.jsxs)(t7,{size:"14",weight:"semibold",font:"mono",ellipsis:!0,color:"verySubtle",children:[o.change.toFixed(2),"%"]})})]})})}function Cj(e){let{children:t,bleed:n}=e;return(0,D.jsx)("div",{className:(0,eE.cx)(n?"-mx-5 overflow-hidden":""),children:(0,D.jsx)(us,{children:(0,D.jsx)("div",{className:(0,eE.cx)("flex gap-4 py-4",n?"px-5 w-fit":""),children:t})})})}function Ck(e){let{children:t,variant:n,align:r}=e;return(0,D.jsx)("div",{className:"relative",style:{top:"primary"===n?"6px":void 0,left:"start"===r?"0px":void 0,right:"end"===r?"0px":void 0},children:(0,D.jsx)(t7,{size:"10",color:"primary"===n?"contrast":"verySubtle",dir:"start"===r?"rtl":"ltr",weight:"primary"===n?"semibold":"regular",ellipsis:!0,children:t})})}function CS(e){let{date:t,align:n,variant:r}=e;return t?(0,D.jsx)(Ck,{variant:r,align:n,children:(0,g_.rN)(t)}):null}function CO(e){let{blockHeight:t,align:n,variant:r}=e;return t?(0,D.jsx)(Ck,{variant:r,align:n,children:t.toLocaleString()}):null}function C_(e){let{label:t,currentHeight:n,range:r,startHeight:i,endHeight:o,color:a,align:s,rounded:l,className:u,showDates:c}=e;if(!i||!o)return null;let d=r.endHeight-r.startHeight,f=(0,g_.pp)(d),h=(0,g_.jr)(n,r.startHeight),p=(0,g_.jr)(n,i),m=(0,g_.jr)(n,o),v=(p-h)/f,g=(m-h)/f;return(0,D.jsxs)("div",{className:(0,eE.cx)("group flex items-center justify-center","absolute -top-[5px] h-4","cursor-pointer","transition-colors"),style:{left:CC(v),width:CC(g-v)},children:[(0,D.jsx)("div",{className:(0,eE.cx)("z-0 absolute w-full h-full","rounded-md","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10"),style:{width:"calc(100% + 8px)",left:"-4px"}}),(0,D.jsx)("div",{className:(0,eE.cx)("z-10 absolute w-full h-1.5",u,"start"===l?"rounded-l-lg":"end"===l?"rounded-r-lg":"rounded-lg","border-y","start"===l?"border-l":"end"===l?"border-r":"border","blue"===a?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-blue-500/50 dark:border-blue-500/50"]:[],"green"===a?["bg-green-300 dark:bg-green-300","group-hover:bg-green-400 dark:group-hover:bg-green-400","border-green-500/50 dark:border-green-500/50"]:[],"amber"===a?["bg-amber-300 dark:bg-amber-300","group-hover:bg-amber-400 dark:group-hover:bg-amber-400","border-amber-500/50 dark:border-amber-500/50"]:[])}),(0,D.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 bottom-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:CC(1-g)}:{left:CC(v)},children:[(0,D.jsx)(CO,{blockHeight:i,align:"start",variant:"primary"}),(0,D.jsx)(Ck,{variant:"primary",children:t}),(0,D.jsx)(CO,{blockHeight:o,align:"end",variant:"primary"})]}),c&&(0,D.jsxs)("div",{className:"flex group-hover/segments:hidden absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:CC(1-g)}:{left:CC(v)},children:[(0,D.jsx)(CS,{date:p,align:"start",variant:"secondary"}),(0,D.jsx)(CS,{date:m,align:"start",variant:"secondary"})]}),(0,D.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:CC(1-g)}:{left:CC(v)},children:[(0,D.jsx)(CS,{date:p,align:"start",variant:"secondary"}),(0,D.jsx)(CS,{date:m,align:"start",variant:"secondary"})]})]})}function CC(e){return"".concat(100*e,"%")}function CM(e){let{currentHeight:t,eventHeight:n,range:r,label:i,bottomLabel:o,color:a,className:s,unconfirmedPing:l=!0}=e,u=!!n&&n>t,c=n&&!u&&t-n<6,d=r.endHeight-r.startHeight,f=(0,g_.pp)(d),h=(0,g_.jr)(t,r.startHeight),p=n?(0,g_.jr)(t,n):0;return n?(0,D.jsx)("div",{className:(0,eE.cx)("group","absolute -top-[5px] w-4 h-4","flex items-center justify-center","rounded-full cursor-pointer","-translate-x-1/2",s),style:{left:"".concat(100*(p?(p-h)/f:0),"%")},children:(0,D.jsxs)("div",{className:(0,eE.cx)("relative w-full h-full","flex items-center justify-center","rounded-full cursor-pointer"),children:[l&&c&&(0,D.jsx)("div",{className:(0,eE.cx)("z-0 absolute w-1.5 h-1.5","rounded-full","bg-amber-500 dark:bg-amber-200","animate-pingslow")}),(0,D.jsx)("div",{className:(0,eE.cx)("z-0 absolute w-4 h-4","rounded-full","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10")}),(0,D.jsx)("div",{className:(0,eE.cx)("absolute w-1.5 h-1.5","rounded-full","border","green"===a?["bg-green-500 dark:bg-green-500","group-hover:bg-green-600 dark:group-hover:bg-green-600","border-white dark:border-white"]:[],"amber"===a?["bg-amber-500 dark:bg-amber-500","group-hover:bg-amber-600 dark:group-hover:bg-amber-600","border-white dark:border-white"]:[],"gray"===a?["bg-gray-700 dark:bg-graydark-900","group-hover:bg-gray-800 dark:group-hover:bg-graydark-800","border-white dark:border-white"]:[],"blue"===a?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-white dark:border-white"]:[])}),(0,D.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 bottom-[100%] left-1.5",children:[(0,D.jsx)(CO,{blockHeight:n,align:"start",variant:"primary"}),(0,D.jsx)(Ck,{variant:"primary",children:i})]}),(0,D.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 top-[100%] left-1.5",children:[(0,D.jsx)(CS,{date:p,align:"start",variant:"secondary"}),o&&(0,D.jsx)(Ck,{variant:"secondary",children:o})]})]})}):null}function CA(e){let{currentHeight:t,contractHeightStart:n,contractHeightEnd:r,proofWindowHeightStart:i,proofWindowHeightEnd:o,revisionHeight:a,proofHeight:s,range:l}=e,u=t-n<6;return(0,D.jsx)("div",{className:"group/main relative w-full",children:(0,D.jsx)("div",{className:"relative py-6",children:(0,D.jsxs)("div",{className:"relative z-10 h-1.5",children:[(0,D.jsx)("div",{className:"absolute h-full w-full bg-gray-300 dark:bg-graydark-400 rounded-lg"}),(0,D.jsxs)("div",{className:"group/segments",children:[(0,D.jsx)(C_,{label:"contract duration",currentHeight:t,startHeight:n,endHeight:r,range:l,color:"blue",align:"center",rounded:"start",className:u?"border-dotted opacity-50":"",showDates:!0}),(0,D.jsx)(C_,{label:"proof window",currentHeight:t,startHeight:i,endHeight:o,range:l,color:"green",align:"end",rounded:"end",className:u?"border-dotted opacity-50":""}),(0,D.jsx)(CM,{label:"contract formation",bottomLabel:u?"unconfirmed":"",currentHeight:t,eventHeight:n,range:l,color:u?"amber":"blue",className:"z-20"}),(0,D.jsx)(CM,{label:"last revision",currentHeight:t,eventHeight:a,range:l,color:"green",className:"z-20"}),(0,D.jsx)(CM,{label:"storage proof",currentHeight:t,eventHeight:s,range:l,color:"green",className:"z-20"}),(0,D.jsx)(CM,{label:"current block",currentHeight:t,eventHeight:t,range:l,color:"gray",className:"z-10",unconfirmedPing:!1})]})]})})})}var CT=n(90463),CP=n(81721),CN=function(e,t){return!!(null==e?0:e.length)&&(0,CP.Z)(e,t,0)>-1},CR=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r=200&&(o=CZ.Z,a=!1,t=new CT.Z(t));t:for(;++i{e.stopPropagation(),i(n)},children:(0,D.jsx)(lf.xVB,{})}),(0,D.jsx)(ld,{icon:s?"contrast":"hover",tip:"".concat(t,": hide all"),variant:"ghost",onClick:e=>{e.stopPropagation(),o(n)},children:(0,D.jsx)(lf.pHg,{})})]})]})}function CB(e){let{title:t,children:n}=e;return(0,D.jsxs)("div",{className:"flex flex-col gap-6",children:[t&&(0,D.jsx)(c0,{anchorLink:!0,size:"24",children:t}),(0,D.jsx)(nt,{className:"p-6",children:(0,D.jsx)("div",{className:"flex flex-col gap-6",children:n})})]})}function CH(e){let{title:t,description:n,control:r}=e;return(0,D.jsxs)("div",{className:"flex gap-10 justify-between",children:[(0,D.jsxs)("div",{className:"flex flex-col gap-2 max-w-[600px]",children:[(0,D.jsx)(c0,{size:"20",children:t}),(0,D.jsx)(t9,{size:"14",children:n})]}),(0,D.jsx)("div",{className:"",children:r})]})}function CU(e){let{open:t,params:n,trigger:r,onOpenChange:i}=e,{body:o,title:a,variant:s,action:l,onConfirm:u}=n||{},c=(0,_E.cI)(),d=(0,Z.useCallback)(()=>{u&&u(),i(!1)},[u,i]);return(0,D.jsx)(uc,{title:a,trigger:r,open:t,onOpenChange:i,contentVariants:{className:"w-[400px]"},children:(0,D.jsx)("form",{onSubmit:c.handleSubmit(d),children:(0,D.jsxs)("div",{className:"flex flex-col gap-4",children:[o,(0,D.jsx)("div",{className:"flex gap-1 justify-end",children:(0,D.jsx)(OP,{variant:s,form:c,size:"small",children:l})})]})})})}function CW(e){let{name:t,peerCount:n,isSynced:r,nodeBlockHeight:i,connectPeer:o}=e;return(0,D.jsxs)("div",{className:"flex justify-between items-center",children:[(0,D.jsx)(t7,{font:"mono",weight:"bold",size:"20",children:t}),(0,D.jsxs)("div",{className:"flex items-center",children:[n?(0,D.jsxs)(ld,{className:"relative left-2 only:left-0",variant:"ghost",onClick:o,tip:"".concat(n," connected peers"),children:[(0,D.jsx)(t7,{color:"subtle",children:n.toLocaleString()}),(0,D.jsx)(lf.RK4,{})]}):null,i&&r?(0,D.jsx)(lu,{content:"Blockchain is synced",children:(0,D.jsx)("div",{className:"relative left-2",children:(0,D.jsxs)(ld,{variant:"ghost",state:"waiting",children:[(0,D.jsx)(t7,{color:"subtle",children:i.toLocaleString()}),(0,D.jsx)(t7,{color:"green",children:(0,D.jsx)(lf.Y3p,{})})]})})}):null]})]})}function Cq(e){let{nodeBlockHeight:t,networkBlockHeight:n,moreThan100BlocksToSync:r,percent:i}=e;return(0,D.jsxs)("div",{className:"flex flex-col justify-between h-full mb-1",children:[(0,D.jsx)(dz,{variant:"accent",value:t&&n?t:0,max:n||1,className:""}),(0,D.jsxs)("div",{className:"flex justify-between mt-1.5",children:[(0,D.jsx)(t7,{color:"subtle",size:"10",children:"Syncing..."}),t&&n?r?(0,D.jsx)(t7,{color:"subtle",size:"10",children:"".concat(t.toLocaleString()," / ").concat(n.toLocaleString()," (").concat(i,"%)")}):(0,D.jsx)(t7,{color:"subtle",size:"10",children:"(".concat(i,"%)")}):null]})]})}function C$(e){let{name:t,peerCount:n,connectPeer:r,isSynced:i,syncPercent:o,nodeBlockHeight:a,estimatedBlockHeight:s,firstTimeSyncing:l,moreThan100BlocksToSync:u,children:c}=e;return(0,D.jsx)(hV,{rootProps:{openDelay:100,closeDelay:1e3},contentProps:{side:"right",align:"start",sideOffset:5,className:"!max-w-none"},trigger:(0,D.jsxs)("div",{className:"relative hover:scale-105 transition-transform",children:[i||100===o||0===o?null:(0,D.jsx)("div",{className:"absolute -bottom-2.5 w-full flex justify-center",children:(0,D.jsxs)(t7,{className:"bg-amber-500 py-px px-1 rounded-sm scale-75",size:"10",children:[o,"%"]})}),(0,D.jsx)(dn,{size:30})]}),children:(0,D.jsxs)("div",{className:"flex flex-col gap-2 px-1 pt-1 pb-2 w-[350px]",children:[(0,D.jsx)(CW,{nodeBlockHeight:a,isSynced:i,name:t,peerCount:n,connectPeer:r}),i?(0,D.jsx)(cZ,{className:"w-full mb-0.5"}):(0,D.jsx)(Cq,{percent:o,nodeBlockHeight:a,networkBlockHeight:s,moreThan100BlocksToSync:u}),l&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(t7,{color:"contrast",size:"14",children:"Welcome to Sia! The blockchain is syncing to the current network height. Depending on your system this process may take a while."}),(0,D.jsx)(cZ,{className:"w-full mb-1"})]}),c]})})}function CY(e){let{testnetName:t}=e;return(0,D.jsxs)("div",{className:"flex gap-2 items-center justify-center py-2 px-3 bg-amber-600 dark:bg-amber-500",children:[(0,D.jsx)(t7,{color:"lo",children:(0,D.jsx)(lf.RdX,{})}),(0,D.jsxs)(t7,{size:"14",color:"lo",children:["You are on the ",t,"."]})]})}function CG(e){let{type:t,label:n,link:r,tip:i,icon:o,value:a,onClick:s,decimalsLimit:l,units:u}=e;return(0,D.jsxs)("div",{className:"flex justify-between items-center",children:[(0,D.jsx)(lu,{align:"start",side:"bottom",content:i,children:(0,D.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,D.jsx)(t7,{className:"flex relative",children:o||(0,D.jsx)(lf.RdX,{})}),(0,D.jsx)(t7,{size:"12",ellipsis:!0,children:r?(0,D.jsx)(de,{href:r,target:"_blank",children:n}):n})]})}),(0,D.jsx)("div",{className:(0,eE.cx)("flex items-center",s?"cursor-pointer":""),onClick:()=>{s&&s(a)},children:"siacoin"===t?(0,D.jsx)(S5,{value:a,variant:"value",size:"12",fixed:l,dynamicUnits:!1,showTooltip:!1}):(0,D.jsx)(S9,{value:a,variant:"value",size:"12",format:e=>"".concat(fS(e,l)," ").concat(u)})})]})}function CK(e){let{name:t,form:n,fields:r}=e,i=r[t],{average:o,suggestion:a,placeholder:s,units:l,suggestionTip:u,averageTip:c,after:d,decimalsLimitSc:f=6,decimalsLimitFiat:h=6,tipsDecimalsLimitSc:p=0}=i,{setValue:m,value:v,error:g}=__({name:t,field:i,form:n}),y=d||(()=>null),b=(0,Z.useMemo)(()=>s?new(fk())(s):a&&"boolean"!=typeof a?new(fk())(a):void 0,[s,a]);return(0,D.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,D.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,D.jsx)(fT,{name:t,size:"small",sc:v,units:l,decimalsLimitSc:f,decimalsLimitFiat:h,error:g,changed:n.formState.dirtyFields[t],placeholder:b,onChange:e=>{m(e,!0)},onBlur:()=>{m(v,!0)}}),(0,D.jsx)(y,{name:t,form:n,fields:r}),o&&(0,D.jsx)(CG,{type:"siacoin",label:"Network average",tip:c||"Averages provided by Sia Central.",decimalsLimit:p,value:(0,g_.qN)(o),onClick:()=>{m(o,!0)}}),a&&u&&(0,D.jsx)(CG,{type:"siacoin",label:"Suggestion",tip:u,decimalsLimit:p,value:(0,g_.qN)(a),onClick:()=>{m(a,!0)}})]}),(0,D.jsx)("div",{className:"h-[20px]",children:(0,D.jsx)(OA,{form:n,name:t})})]})}function CX(e){let{name:t,form:n,fields:r}=e,i=r[t],{average:o,averageTip:a,suggestion:s,suggestionTip:l,decimalsLimit:u=2,placeholder:c,units:d}=i,{setValue:f,value:h,error:p}=__({form:n,field:i,name:t}),m=(0,Z.useMemo)(()=>c?new(fk())(c):s&&"boolean"!=typeof s?new(fk())(s):void 0,[c,s]);return(0,D.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,D.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,D.jsx)(fO,{name:t,value:h,units:d,decimalsLimit:u,placeholder:m,state:p?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:e=>{let t=void 0!==e?new(fk())(e):void 0;f(t,!0)},onBlur:()=>{f(h,!0)}}),(0,D.jsxs)("div",{className:"flex flex-col gap-2",children:[o&&(0,D.jsx)(CG,{type:"number",label:"Network average",tip:a||"Averages provided by Sia Central.",decimalsLimit:u,value:o,units:d,onClick:()=>{f(o,!0)}}),s&&l&&(0,D.jsx)(CG,{type:"number",label:"Suggestion",tip:l,decimalsLimit:u,value:s,units:d,onClick:()=>{f(s,!0)}})]})]}),(0,D.jsx)("div",{className:"h-[20px]",children:(0,D.jsx)(OA,{form:n,name:t})})]})}function CQ(e){let{label:t,link:n,tip:r,value:i,onClick:o}=e;return(0,D.jsxs)("div",{className:"flex justify-between items-center",children:[(0,D.jsx)(lu,{align:"start",side:"bottom",content:r,children:(0,D.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,D.jsx)(t7,{className:"flex relative",children:(0,D.jsx)(lf.RdX,{})}),(0,D.jsx)(t7,{size:"12",children:n?(0,D.jsx)(de,{href:n,target:"_blank",children:t}):t})]})}),(0,D.jsx)("div",{className:"flex cursor-pointer items-center",onClick:o,children:(0,D.jsx)(t7,{size:"12",children:(0,D.jsx)(lT,{children:i})})})]})}function CJ(e){let{name:t,form:n,fields:r,type:i}=e,o=r[t],{placeholder:a,suggestion:s,suggestionTip:l}=o,{ref:u,onChange:c,setValue:d,onBlur:f,error:h}=__({name:t,form:n,field:o});return(0,D.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,D.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,D.jsx)(fn,{ref:u,name:t,placeholder:a,type:i,state:h?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:c,onBlur:f}),(0,D.jsx)("div",{className:"flex flex-col gap-2",children:s&&l&&(0,D.jsx)(CQ,{label:"Suggestion",tip:l,value:s,onClick:()=>{d(s,!0)}})})]}),(0,D.jsx)("div",{className:"h-[20px]",children:(0,D.jsx)(OA,{form:n,name:t})})]})}function C0(e){let{name:t,form:n,fields:r}=e,i=r[t],{suggestion:o,suggestionTip:a}=i,{setValue:s,value:l,error:u}=__({name:t,field:i,form:n});return(0,D.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,D.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,D.jsx)("div",{className:"flex justify-end w-full",children:(0,D.jsx)(fJ,{name:t,size:"medium",checked:l,state:u?"invalid":n.formState.dirtyFields[t]?"valid":"default",onCheckedChange:e=>{s(e,!0)},onBlur:()=>{s(l,!0)}})}),(0,D.jsx)("div",{className:"flex flex-col gap-2",children:void 0!==o&&a&&(0,D.jsx)(CQ,{label:"Suggestion",tip:a,value:o?"on":"off",onClick:()=>{s(o,!0)}})})]}),(0,D.jsx)("div",{className:"h-[20px]",children:(0,D.jsx)(OA,{form:n,name:t})})]})}function C1(e){let{name:t,form:n,fields:r}=e,i=r[t],{options:o,suggestion:a,suggestionTip:s}=i,{ref:l,onChange:u,setValue:c,onBlur:d,value:f,error:h}=__({name:t,form:n,field:i});return(0,D.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,D.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,D.jsx)("div",{className:"flex justify-end w-full",children:(0,D.jsx)(fZ,{ref:l,name:t,size:"small",value:f,state:h?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:u,onBlur:d,children:null==o?void 0:o.map(e=>(0,D.jsx)(fL,{value:e.value,children:e.label},e.value))})}),(0,D.jsx)("div",{className:"flex flex-col gap-2",children:void 0!==a&&s&&(0,D.jsx)(CQ,{label:"Suggestion",tip:s,value:a?"on":"off",onClick:()=>{c(a,!0)}})})]}),(0,D.jsx)("div",{className:"h-[20px]",children:(0,D.jsx)(OA,{form:n,name:t})})]})}function C2(e){let{title:t,category:n,form:r,fields:i}=e,o=Object.entries(i).filter(e=>{let[t,i]=e;return i.category===n&&!i.hidden&&(!i.show||i.show(r.getValues()))});return 0===o.length?null:(0,D.jsx)(CB,{title:t,children:o.map((e,t)=>{let[n,a]=e;return(0,D.jsxs)(Z.Fragment,{children:[(0,D.jsx)(CH,{title:a.title,description:a.description,control:"number"===a.type?(0,D.jsx)(CX,{form:r,name:n,fields:i}):"siacoin"===a.type?(0,D.jsx)(CK,{form:r,name:n,fields:i}):"text"===a.type?(0,D.jsx)(CJ,{form:r,name:n,fields:i}):"password"===a.type?(0,D.jsx)(CJ,{form:r,type:"password",fields:i,name:n}):"boolean"===a.type?(0,D.jsx)(C0,{form:r,name:n,fields:i}):"select"===a.type?(0,D.jsx)(C1,{form:r,name:n,fields:i}):null}),t{let t=void 0!==e?new(fk())(e):void 0;u(t,!0)},onBlur:()=>{u(d,!0)}})})}function C3(e){let{name:t,form:n,fields:r,size:i="medium",group:o=!0,children:a}=e,s=r[t],{setValue:l,value:u,error:c}=__({name:t,field:s,form:n}),d=(0,D.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,D.jsx)(fJ,{name:t,size:i,checked:u,state:c?"invalid":n.formState.dirtyFields[t]?"valid":"default",onCheckedChange:e=>{l(e,!0)},onBlur:()=>{l(u,!0)}}),a]});return o?(0,D.jsx)(OT,{title:s.title,name:t,form:n,children:d}):d}function C5(e){let{form:t,remoteValues:n}=e,r=(0,Z.useCallback)(()=>{if(t.formState.isSubmitting||!n)return;let e=t.getValues();for(let[r,i]of(t.reset(n),Object.entries(e)))t.setValue(r,i,{shouldDirty:!0})},[t,n]);(0,Z.useEffect)(()=>{r()},[n])}function C6(e){let{form:t}=e,n=Object.entries(t.formState.dirtyFields).filter(e=>{let[t,n]=e;return!!n}).length;return{changeCount:n}}function C8(e){let{form:t,remoteValues:n}=e,[r,i]=(0,Z.useState)(!1),{isUnlockedAndAuthedRoute:o}=(0,fC.Hv)();(0,Z.useEffect)(()=>{o||i(!1)},[o]),(0,Z.useEffect)(()=>{!r&&n&&(i(!0),t.reset(n))},[n])}lf.lg1,lf.eHR,lf.I$H,lf.KiD,lf.P5r,lf.CCF,lf.w9S,lf.EL$,lf.aPl,lf.wEY,lf.EOT,lf.kSc,lf.W$S,lf.lJ7,lf.ORH,lf.ka0,lf.BdP,lf.d19,lf.Mes,lf.VUg,lf.U_S,lf.T85;let C7=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,[a,s]=(0,Z.useState)(!0),l=(0,Z.useRef)(!1),u=(0,Z.useRef)(0);return(0,Z.useEffect)(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,Z.createElement)(tH,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:(0,Z.useCallback)(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:(0,Z.useCallback)(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:(0,Z.useCallback)(e=>{l.current=e},[]),disableHoverableContent:i},o)};function C9(e){let{children:t}=e,[n,r]=(0,Z.useState)(!1);return(0,Z.useEffect)(()=>{r(!0)},[]),(0,D.jsx)("div",{children:n?t:null})}function Me(e){let{className:t,passwordProtectRequestHooks:n,fallback:r,children:i,lockRoutes:o}=e;return(0,D.jsx)(C9,{children:(0,D.jsx)(fC.kl,{fallback:r,children:(0,D.jsx)(px.f,{attribute:"class",children:(0,D.jsx)(C7,{children:(0,D.jsx)(fC.bW,{lockRoutes:o,passwordProtectRequestHooks:n,children:(0,D.jsxs)("div",{id:"root",className:t,children:[(0,D.jsx)(SW,{}),i]})})})})})})}var Mt=Math.min,Mn=function(e,t,n){for(var r=n?CR:CN,i=e[0].length,o=e.length,a=o,s=Array(o),l=1/0,u=[];a--;){var c=e[a];a&&t&&(c=(0,ke.Z)(c,(0,CD.Z)(t))),l=Mt(c.length,l),s[a]=!n&&(t||i>=120&&c.length>=120)?new CT.Z(a&&c):void 0}c=e[0];var d=-1,f=s[0];t:for(;++d=200){var u=t?null:Ms(e);if(u)return(0,Ma.Z)(u);a=!1,i=CZ.Z,l=new CT.Z}else l=t?[]:s;t:for(;++r{l(t=>t.includes(e)?t.filter(t=>t!==e):t.concat(e))},[l]),c=(0,Z.useCallback)(e=>{l(t=>{var n;return(n=[...t,...e]).length?Ml(n):[]})},[l]),d=(0,Z.useCallback)(e=>{l(t=>CV(t,e))},[l]),f=(0,Z.useCallback)(()=>{l(r)},[l,r]),h=(0,Z.useMemo)(()=>n.filter(e=>{let t=null==a?void 0:a.includes(e.category||"");return!e.fixed&&!t}),[n,a]),p=(0,Z.useMemo)(()=>n.filter(e=>{let t=e.fixed||s.includes(e.id),n=null==a?void 0:a.includes(e.category||"");return t&&!n}).map(e=>e.id),[n,s,a]),{sortField:m,sortDirection:v,setSortField:g,setSortDirection:y,toggleSort:b}=function(e,t){let{defaultSortField:n,sortOptions:r,enabledColumns:i}=t,[o,a]=(0,Cx.Z)("".concat(e,"/sortField"),{defaultValue:n}),[s,l]=(0,Cx.Z)("".concat(e,"/sortDirection"),{defaultValue:"desc"}),u=(0,Z.useCallback)(e=>{if(o!==e){a(e),l("asc");return}l(e=>"desc"===e?"asc":"desc")},[o,a,l]),c=(0,Z.useMemo)(()=>{if(!r)return[];let e=r.map(e=>e.id);return Mi(e,i)},[r,i]);return{toggleSort:u,setSortDirection:l,setSortField:a,sortableColumns:c,sortField:o,sortDirection:s}}(e,{defaultSortField:i,sortOptions:o,enabledColumns:p}),x=(0,Z.useMemo)(()=>{if(!o)return[];let e=o.map(e=>e.id);return Mi(e,p)},[o,p]);return{configurableColumns:h,enabledColumns:p,toggleColumnVisibility:u,toggleSort:b,setSortDirection:y,setSortField:g,sortableColumns:x,sortField:m,setColumnsVisible:c,setColumnsHidden:d,sortDirection:v,resetDefaultColumnVisibility:f}}function Md(){let e=(0,cX.j0)(),[t,n]=(0,Z.useState)([]),r=(0,Z.useCallback)(()=>{let t={...e.query};delete t.limit,delete t.offset,e.replace({query:t})},[e]),i=(0,Z.useCallback)(e=>{n(t=>{let n=t.filter(t=>t.id!==e.id);return n.concat(e)}),r()},[n,r]),o=(0,Z.useCallback)(()=>{n([]),r()},[n,r]),a=(0,Z.useCallback)(e=>{n(t=>t.filter(t=>t.id!==e)),r()},[n,r]),s=(0,Z.useCallback)(()=>{t.length&&(n(e=>e.slice(0,-1)),r())},[t,n,r]);return{filters:t,setFilter:i,removeFilter:a,removeLastFilter:s,resetFilters:o}}function Mf(e){return(0,g_.B$)(e).times(4)}function Mh(e){return(0,g_.Uz)(Mf(e))}function Mp(e){var t;return t=(0,g_.Hz)(e),(0,g_.il)(t).div(4).integerValue()}function Mm(e,t){let n=t.reduce((e,t)=>{let n=e.startHeight,r=e.endHeight;return t.contractHeightStartr&&(r=t.contractHeightEnd),{startHeight:n,endHeight:r}},{startHeight:e,endHeight:0});n.endHeight=Math.max(n.endHeight,e)+(0,g_.gU)(5),n.startHeight=n.startHeight-(0,g_.gU)(5);let r=[],i=n.startHeight;for(;i<=n.endHeight;)r.push(i),i+=kA(1);let o=r.reduce((e,t)=>({...e,[t]:{total:null,timestamp:t}}),{});return{allDatesMap:o,range:n}}new(fk())(0)},44114:function(e,t,n){"use strict";n.d(t,{Ee:function(){return l.a},Fb:function(){return a.a},j0:function(){return c.useRouter},jD:function(){return u.usePathname},rU:function(){return i.a},xj:function(){return u.useRouter}});var r=n(39097),i=n.n(r),o=n(97729),a=n.n(o),s=n(96577),l=n.n(s),u=n(82876),c=n(5632)},95753:function(e,t,n){"use strict";n.d(t,{bW:function(){return z},kl:function(){return G},gw:function(){return a},Tc:function(){return $},du:function(){return Y},Hv:function(){return F},iv:function(){return q},Nf:function(){return W},E:function(){return U},mw:function(){return I},q0:function(){return V},Tb:function(){return A},V1:function(){return H},I7:function(){return B}});var r={};n.r(r),n.d(r,{getGPUTier:function(){return M}});var i=n(79381);function o(e,t){return!e||t?null:e}function a(e){return new Promise(t=>setTimeout(t,e))}var s=n(89644),l=n.n(s),u=n(2784);function c(e){return{...e,config:{...null==e?void 0:e.config}}}function d(e){return{...e,config:{...null==e?void 0:e.config}}}function f(e){return{...e,config:{...null==e?void 0:e.config}}}function h(e,t,n){return(null==n?void 0:n.api)||(null==t?void 0:t.api)||e.api}function p(e,t,n){var r,i;let o=function(e,t,n){var r,i,o,a;let s={"Content-Type":"application/json",...null===(i=t.config)||void 0===i?void 0:null===(r=i.axios)||void 0===r?void 0:r.headers,...null==n?void 0:null===(a=n.config)||void 0===a?void 0:null===(o=a.axios)||void 0===o?void 0:o.headers},l=h(e,t,n);return e.api===l&&e.password&&(s.Authorization="Basic "+btoa(":".concat(e.password))),s}(e,t,n);return{responseType:"json",...null===(r=t.config)||void 0===r?void 0:r.axios,...null==n?void 0:null===(i=n.config)||void 0===i?void 0:i.axios,headers:o}}function m(e,t,n,r){if(!t)return null;let i=(null==n?void 0:n.params)||{};if(r&&r.params&&(i={...i,...r.params}),!(t=function(e,t){if(e&&t){let n=Object.keys(t);for(let r of n){let n=String(t[r]);e.includes(":".concat(r))?e=e.replace(":".concat(r),n):e.includes("?")?e+="&".concat(r,"=").concat(encodeURIComponent(n)):e+="?".concat(r,"=").concat(encodeURIComponent(n))}}return e}(t,i)))return null;let o=h(e,n,r);return o===e.api?"".concat(o,"/api").concat(t):"".concat(o).concat(t)}function v(e,t,n,r){let i=h(e,n,r);return i===e.api?t.replace("".concat(i,"/api"),""):t.replace(i,"")}var g=n(52322),y=n(44114),b=n(92762);function x(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}let w=["geforce 320m","geforce 8600","geforce 8600m gt","geforce 8800 gs","geforce 8800 gt","geforce 9400","geforce 9400m g","geforce 9400m","geforce 9600m gt","geforce 9600m","geforce fx go5200","geforce gt 120","geforce gt 130","geforce gt 330m","geforce gtx 285","google swiftshader","intel g41","intel g45","intel gma 4500mhd","intel gma x3100","intel hd 3000","intel q45","legacy","mali-2","mali-3","mali-4","quadro fx 1500","quadro fx 4","quadro fx 5","radeon hd 2400","radeon hd 2600","radeon hd 4670","radeon hd 4850","radeon hd 4870","radeon hd 5670","radeon hd 5750","radeon hd 6290","radeon hd 6300","radeon hd 6310","radeon hd 6320","radeon hd 6490m","radeon hd 6630m","radeon hd 6750m","radeon hd 6770m","radeon hd 6970m","sgx 543","sgx543"];function E(e){return e=e.toLowerCase().replace(/.*angle ?\((.+)\)(?: on vulkan [0-9.]+)?$/i,"$1").replace(/\s(\d{1,2}gb|direct3d.+$)|\(r\)| \([^)]+\)$/g,"").replace(/(?:vulkan|opengl) \d+\.\d+(?:\.\d+)?(?: \((.*)\))?/,"$1")}let j="undefined"==typeof window,k=(()=>{if(j)return;let{userAgent:e,platform:t,maxTouchPoints:n}=window.navigator,r=/(iphone|ipod|ipad)/i.test(e),i="iPad"===t||"MacIntel"===t&&n>0&&!window.MSStream;return{isIpad:i,isMobile:/android/i.test(e)||r||i,isSafari12:/Version\/12.+Safari/.test(e)}})();class S extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}let O=[],_=[];function C(e){return null!=e}let M=({mobileTiers:e=[0,15,30,60],desktopTiers:t=[0,15,30,60],override:n={},glContext:r,failIfMajorPerformanceCaveat:i=!1,benchmarksURL:o="https://unpkg.com/detect-gpu@5.0.34/dist/benchmarks"}={})=>x(void 0,void 0,void 0,function*(){let a={};if(j)return{tier:0,type:"SSR"};let{isIpad:s=!!(null==k?void 0:k.isIpad),isMobile:l=!!(null==k?void 0:k.isMobile),screenSize:u=window.screen,loadBenchmarks:c=e=>x(void 0,void 0,void 0,function*(){let t=yield fetch(`${o}/${e}`).then(e=>e.json());if(4>parseInt(t.shift().split(".")[0],10))throw new S("Detect GPU benchmark data is out of date. Please update to version 4x");return t})}=n,{renderer:d}=n,f=(e,t,n,r,i)=>({device:i,fps:r,gpu:n,isMobile:l,tier:e,type:t}),h,p="";if(d)h=[d=E(d)];else{var m;let e=r||function(e,t=!1){let n={alpha:!1,antialias:!1,depth:!1,failIfMajorPerformanceCaveat:t,powerPreference:"high-performance",stencil:!1};e&&delete n.powerPreference;let r=window.document.createElement("canvas"),i=r.getContext("webgl",n)||r.getContext("experimental-webgl",n);return null!=i?i:void 0}(null==k?void 0:k.isSafari12,i);if(!e)return f(0,"WEBGL_UNSUPPORTED");let t=e.getExtension("WEBGL_debug_renderer_info");if(t&&(d=e.getParameter(t.UNMASKED_RENDERER_WEBGL)),!d)return f(1,"FALLBACK");p=d,h="apple gpu"===(m=d=E(d))?function(e,t,n){let r;if(!n)return[t];let i=function(e){let t=e.createShader(35633),n=e.createShader(35632),r=e.createProgram();if(!(n&&t&&r))return;e.shaderSource(t,"\n precision highp float;\n attribute vec3 aPosition;\n varying float vvv;\n void main() {\n vvv = 0.31622776601683794;\n gl_Position = vec4(aPosition, 1.0);\n }\n "),e.shaderSource(n,"\n precision highp float;\n varying float vvv;\n void main() {\n vec4 enc = vec4(1.0, 255.0, 65025.0, 16581375.0) * vvv;\n enc = fract(enc);\n enc -= enc.yzww * vec4(1.0 / 255.0, 1.0 / 255.0, 1.0 / 255.0, 0.0);\n gl_FragColor = enc;\n }\n "),e.compileShader(t),e.compileShader(n),e.attachShader(r,t),e.attachShader(r,n),e.linkProgram(r),e.detachShader(r,t),e.detachShader(r,n),e.deleteShader(t),e.deleteShader(n),e.useProgram(r);let i=e.createBuffer();e.bindBuffer(34962,i),e.bufferData(34962,new Float32Array([-1,-1,0,3,-1,0,-1,3,0]),35044);let o=e.getAttribLocation(r,"aPosition");e.vertexAttribPointer(o,3,5126,!1,0,0),e.enableVertexAttribArray(o),e.clearColor(1,1,1,1),e.clear(16384),e.viewport(0,0,1,1),e.drawArrays(4,0,3);let a=new Uint8Array(4);return e.readPixels(0,0,1,1,6408,5121,a),e.deleteProgram(r),e.deleteBuffer(i),a.join("")}(e),o="801621810",a="8016218135",s="80162181161",l=(null==k?void 0:k.isIpad)?[["a7",s,12],["a8",a,15],["a8x",a,15],["a9",a,15],["a9x",a,15],["a10",a,15],["a10x",a,15],["a12",o,15],["a12x",o,15],["a12z",o,15],["a14",o,15],["m1",o,15]]:[["a7",s,12],["a8",a,12],["a9",a,15],["a10",a,15],["a11",o,15],["a12",o,15],["a13",o,15],["a14",o,15]];return"80162181255"===i?r=l.filter(([,,e])=>e>=14):(r=l.filter(([,e])=>e===i)).length||(r=l),r.map(([e])=>`apple ${e} gpu`)}(e,m,l):[m]}let v=(yield Promise.all(h.map(function(e){var t;return x(this,void 0,void 0,function*(){let n;let r=(e=>{let t=l?["adreno","apple","mali-t","mali","nvidia","powervr","samsung"]:["intel","apple","amd","radeon","nvidia","geforce"];for(let n of t)if(e.includes(n))return n})(e);if(!r)return;let i=`${l?"m":"d"}-${r}${s?"-ipad":""}.json`,o=a[i]=null!==(t=a[i])&&void 0!==t?t:c(i);try{n=yield o}catch(e){if(e instanceof S)throw e;return}let d=function(e){var t;let n=(e=e.replace(/\([^)]+\)/,"")).match(/\d+/)||e.match(/(\W|^)([A-Za-z]{1,3})(\W|$)/g);return null!==(t=null==n?void 0:n.join("").replace(/\W|amd/g,""))&&void 0!==t?t:""}(e),f=n.filter(([,e])=>e===d);f.length||(f=n.filter(([t])=>t.includes(e)));let h=f.length;if(0===h)return;let p=e.split(/[.,()\[\]/\s]/g).sort().filter((e,t,n)=>0===t||e!==n[t-1]).join(" "),m,[v,,,,g]=h>1?f.map(e=>[e,function(e,t){if(e===t)return 0;let n=e;e.length>t.length&&(e=t,t=n);let r=e.length,i=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i);)r--,i--;let o,a=0;for(;au?l>u?u+1:l:l>s?s+1:l;return u}(p,e[2])]).sort(([,e],[,t])=>e-t)[0][0]:f[0],y=Number.MAX_VALUE,{devicePixelRatio:b}=window,x=u.width*b*u.height*b;for(let e of g){let[t,n]=e,r=t*n,i=Math.abs(x-r);ie===n?t-r:e-n);if(!v.length){let e=w.find(e=>d.includes(e));return e?f(0,"BLOCKLISTED",e):f(1,"FALLBACK",`${d} (${p})`)}let[,g,y,b]=v[0];if(-1===g)return f(0,"BLOCKLISTED",y,g,b);let M=l?e:t,A=0;for(let e=0;e=M[e]&&(A=e);return f(A,"BENCHMARK",y,g,b)});function A(){var e,t;let n=null===(e=(t=window).matchMedia)||void 0===e?void 0:e.call(t,"(prefers-reduced-motion: reduce)");return!n||!!n.matches}let{getGPUTier:T}=r,P=(0,u.createContext)({}),N=()=>(0,u.useContext)(P);function R(e){let{children:t}=e,n=function(){let[e,t]=(0,u.useState)({}),n=(0,u.useCallback)((e,n)=>{t(t=>({...t,[e]:{key:e,...n}}))},[t]),r=(0,u.useCallback)(e=>{t(t=>(delete t[e],{...t}))},[t]),i=(0,u.useCallback)(()=>{t({})},[t]),o=(0,u.useMemo)(()=>Object.entries(e).map(e=>e[1]),[e]);return{setWorkflow:n,removeWorkflow:r,resetWorkflows:i,workflows:o}}();return(0,g.jsx)(P.Provider,{value:n,children:t})}let D=[{id:"usd",label:"USD",prefix:"$",fixed:2},{id:"cad",label:"CAD",prefix:"$",fixed:2},{id:"eur",label:"EUR",prefix:"€",fixed:2},{id:"gbp",label:"GBP",prefix:"\xa3",fixed:2},{id:"jpy",label:"JPY",prefix:"\xa5",fixed:2},{id:"aud",label:"AUD",prefix:"$",fixed:2},{id:"rub",label:"RUB",prefix:"₽",fixed:2},{id:"cny",label:"CNY",prefix:"\xa5",fixed:2},{id:"btc",label:"BTC",prefix:"₿",fixed:6},{id:"eth",label:"ETH",prefix:"Ξ",fixed:6}],Z={api:"",allowCustomApi:!1,siaCentral:!0,password:void 0,currency:D[0],currencyDisplay:"bothPreferSc",recentApis:{},autoLock:!1,autoLockTimeout:6e5},L=(0,u.createContext)({}),F=()=>(0,u.useContext)(L);function z(e){let{children:t,...n}=e,r=function(e){let{passwordProtectRequestHooks:t,lockRoutes:n,defaultSettings:r}=e,o=(0,u.useMemo)(()=>({...Z,...r}),[r]),[a,s]=(0,b.Z)("v1/settings",{defaultValue:o});(0,u.useEffect)(()=>{s(e=>({...o,...e}))},[]);let l=(0,u.useMemo)(()=>({...o,...a}),[a,o]),{resetWorkflows:c}=N(),d=(0,u.useCallback)(e=>{s(t=>({...t,...e}))},[s]),f=(0,u.useCallback)(e=>{let t=D.find(t=>t.id===e);t&&d({currency:t})},[d]),h=(0,y.xj)(),p=(0,y.jD)(),[m,v]=(0,u.useState)({}),g=(0,u.useCallback)((e,t)=>{v(n=>({...n,[e]:t}))},[v]),x=(0,u.useCallback)(()=>{for(let[e,t]of(n&&h.push("".concat(n.login,"?prev=").concat([n.login].includes(p)?n.home:p)),d({password:""}),c(),(0,i.JG)(()=>!0,void 0,{revalidate:!1}),Object.entries(m)))t&&t()},[h,n,d,c,m,p]),w=function(e){let t=(0,y.jD)();return![e.login].includes(t)}({login:(null==n?void 0:n.login)||"/login"}),E=(0,u.useMemo)(()=>!!l.password,[l]),j=function(){let e=A(),[t,n]=(0,u.useState)(!1),[r,i]=(0,u.useState)(!1),[{isGpuEnabled:o,hasUserSet:a},s]=(0,b.Z)("v1/gpuFeatures",{defaultValue:{isGpuEnabled:!e,hasUserSet:!1}}),l=(0,u.useCallback)(function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];s(n=>({...n,isGpuEnabled:e,hasUserSet:t}))},[s]),c=(0,u.useCallback)(async()=>{let e=!1;{let t=await T();console.log("GPU",t),e=t.tier>0,!a&&t.tier<2&&l(!1,!1)}i(e),n(!0)},[i,l,a]);return(0,u.useEffect)(()=>{c()},[]),{hasCheckedGpu:t,canGpuRender:r,isGpuEnabled:o,shouldRender:r&&o,setCanGpuRender:i,setIsGpuEnabled:l}}();return{settings:l,setSettings:d,setCurrency:f,currencyOptions:D,gpu:j,lock:x,isUnlockedAndAuthedRoute:E&&w,passwordProtectRequestHooks:t,setOnLockCallback:g}}(n);return(0,g.jsx)(L.Provider,{value:r,children:t})}function V(e){var t;let n=(0,u.useMemo)(()=>d(e),[e]),{settings:r,passwordProtectRequestHooks:a}=F(),s=m(r,n.route,n,void 0),c=(0,u.useMemo)(()=>o(s?"".concat(s).concat(JSON.stringify(void 0!==e.payload?e.payload:"")):null,n.disabled||a&&!r.password),[s,e,n,a,r]);return(0,i.ZP)(c,async()=>{if(!n.route)throw Error("No route");let t=p(r,n,void 0);if(!s)throw Error("No route");try{let n=await l().post(s,e.payload,t);return n.data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=n.config)||void 0===t?void 0:t.swr)}function I(e,t){let{setWorkflow:n,removeWorkflow:r}=N(),{mutate:o}=(0,i.kY)(),{settings:a}=F(),s=c(e);return{post:async e=>{let i=f(e);try{let u;let c=p(a,s,i),d=m(a,s.route,s,i);if(!d)throw Error("No route");"payload"in i&&(u=i.payload);let f="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),h=v(a,d,e,i);n(f,{path:h,payload:u});let g=await l().post(d,u,c);return t&&await t(function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,r=arguments.length>2?arguments[2]:void 0;return o(n=>{if("string"!=typeof n)return!1;let r=v(a,n,e,i);return t(r)},n,r)},i,g),r(f),{status:g.status,data:g.data}}catch(e){var u,c;return{status:null===(u=e.response)||void 0===u?void 0:u.status,error:(null===(c=e.response)||void 0===c?void 0:c.data)||e.message}}}}}function B(e){var t;let n=(0,u.useMemo)(()=>d(e),[e]),{settings:r,passwordProtectRequestHooks:a}=F(),s=m(r,n.route,n,void 0),c=(0,u.useMemo)(()=>o(s?"".concat(s).concat(JSON.stringify(void 0!==e.payload?e.payload:"")):null,n.disabled||a&&!r.password),[s,e,n,a,r]);return(0,i.ZP)(c,async()=>{if(!n.route)throw Error("No route");let t=p(r,n,void 0);if(!s)throw Error("No route");try{let n=await l().put(s,e.payload,t);return n.data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=n.config)||void 0===t?void 0:t.swr)}function H(e,t){let{mutate:n}=(0,i.kY)(),{settings:r}=F(),{setWorkflow:o,removeWorkflow:a}=N(),s=c(e);return{put:async e=>{let i=f(e);try{let u;let c=p(r,s,i),d=m(r,s.route,s,i);if(!d)throw Error("No route");"payload"in i&&(u=i.payload);let f="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),h=v(r,d,e,i);o(f,{path:h,payload:u});let g=await l().put(d,u,c);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let o=v(r,n,e,i);return t(o)},o,a)},i,g),a(f),{status:g.status,data:g.data}}catch(e){var u,c;return{status:null===(u=e.response)||void 0===u?void 0:u.status,error:(null===(c=e.response)||void 0===c?void 0:c.data)||e.message}}}}}function U(e,t){let{mutate:n}=(0,i.kY)(),{settings:r}=F(),{setWorkflow:o,removeWorkflow:a}=N(),s=c(e);return{patch:async e=>{let i=f(e);try{let u;let c=p(r,s,i),d=m(r,s.route,s,i);if(!d)throw Error("No route");"payload"in i&&(u=i.payload);let f="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),h=v(r,d,e,i);o(f,{path:h,payload:u});let g=await l().patch(d,u,c);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let o=v(r,n,e,i);return t(o)},o,a)},i,g),a(f),{status:g.status,data:g.data}}catch(e){var u,c;return{status:null===(u=e.response)||void 0===u?void 0:u.status,error:(null===(c=e.response)||void 0===c?void 0:c.data)||e.message}}}}}function W(e){var t;let n=(0,u.useMemo)(()=>d(e),[e]),{settings:r,passwordProtectRequestHooks:a}=F(),s=m(r,n.route,n,void 0);return(0,i.ZP)(o(e.standalone?"".concat(e.standalone,"/").concat(s):s,n.disabled||a&&!r.password),async()=>{if(!n.route)throw Error("No route");let e=p(r,n,void 0);if(!s)throw Error("No route");try{let t=await l().get(s,e);return t.data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=n.config)||void 0===t?void 0:t.swr)}function q(e,t){let{mutate:n}=(0,i.kY)(),{settings:r}=F(),{setWorkflow:o,removeWorkflow:a}=N(),s=c(e);return{delete:async e=>{let i=f(e);try{let u=p(r,s,i),c=m(r,s.route,s,i);if(!c)throw Error("No route");let d=v(r,c,e,i);o(c,{path:d});let f=await l().delete(c,u);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let o=v(r,n,e,i);return t(o)},o,a)},i,f),a(c),{status:f.status,data:f.data}}catch(e){var u,c;return{status:null===(u=e.response)||void 0===u?void 0:u.status,error:(null===(c=e.response)||void 0===c?void 0:c.data)||e.message}}}}}function $(){return Math.round((new Date().getTime()-14336e8)/6e5)}function Y(){return Math.round((new Date().getTime()-16736e8)/6e5)}function G(e){let{fallback:t,cacheProvider:n,children:r}=e;return(0,g.jsx)(R,{children:(0,g.jsx)(i.J$,{value:{fallback:t||{},provider:n},children:r})})}},27444:function(e,t,n){"use strict";n.d(t,{dk:function(){return o},Z7:function(){return L},Uy:function(){return F},GP:function(){return y},kr:function(){return b},nH:function(){return l},KU:function(){return x},rV:function(){return E},Az:function(){return k},uo:function(){return S},Te:function(){return j},d$:function(){return s},On:function(){return a},Wl:function(){return d},cQ:function(){return c},cM:function(){return R},Kw:function(){return D},hV:function(){return g},ST:function(){return _},_3:function(){return N},HU:function(){return M},uq:function(){return T},G:function(){return P},Rz:function(){return A},Fn:function(){return O},Os:function(){return f},a0:function(){return m},cj:function(){return v},Qq:function(){return h}});var r=n(95753),i=n(79381);let o="/state/host";function a(e){return(0,r.Nf)({...e,route:o})}function s(e){return(0,r.Nf)({...e,route:"/state/consensus"})}function l(){let e=a({config:{swr:{revalidateOnFocus:!1}}}),t=(0,i.ZP)(e,()=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.network)==="Zen Testnet"?(0,r.du)():(0,r.Tc)()},{refreshInterval:6e4,keepPreviousData:!0});return t.data||0}let u="/syncer/peers";function c(e){return(0,r.Nf)({...e,route:u})}function d(e){return(0,r.V1)({...e,route:"/syncer/peers"},async e=>{e(e=>e===u)})}function f(e){return(0,r.Nf)({...e,route:"/wallet"})}function h(e){return(0,r.Nf)({...e,route:"/wallet/transactions"})}let p="/wallet/pending";function m(e){return(0,r.Nf)({...e,route:p})}function v(e){return(0,r.mw)({...e,route:"/wallet/send"},async e=>{await (0,r.gw)(2e3),e(e=>e.startsWith(p))})}function g(e){return(0,r.Nf)({...e,route:"/tpool/fee"})}function y(e){return(0,r.q0)({...e,route:"/contracts"})}function b(e){return(0,r.V1)({...e,route:"/contracts/:id/integrity"})}function x(e){return(0,r.Nf)({...e,route:"/metrics/:interval"})}let w="/settings";function E(e){return(0,r.Nf)({...e,route:w})}function j(e){return(0,r.E)({...e,route:"/settings"},async e=>{await e(e=>e.startsWith(w))})}function k(e){return(0,r.mw)({...e,route:"/settings/announce"})}function S(e){return(0,r.I7)({...e,payload:{},route:"/settings/ddns/update"})}function O(e){return(0,r.Nf)({...e,route:"/volumes"})}function _(e){return(0,r.Nf)({...e,route:"/volumes/:id"})}let C="/volumes";function M(e){return(0,r.mw)({...e,route:C},async e=>{e(e=>e.startsWith(C))})}function A(e){return(0,r.V1)({...e,route:"/volumes/:id"},async e=>{e(e=>e.startsWith(C))})}function T(e){return(0,r.iv)({...e,route:"/volumes/:id"},async e=>{e(e=>e.startsWith(C))})}function P(e){return(0,r.V1)({...e,route:"/volumes/:id/resize"},async e=>{await (0,r.gw)(1e4),e(e=>e.startsWith(C))})}function N(e){return(0,r.iv)({...e,route:"/volumes/:id/cancel"},async e=>{await (0,r.gw)(3e3),e(e=>e.startsWith(C))})}function R(e){return(0,r.Nf)({...e,route:"/system/dir"})}function D(e){return(0,r.V1)({...e,route:"/system/dir"})}let Z="/alerts";function L(e){return(0,r.Nf)({...e,route:Z})}function F(e){return(0,r.mw)({...e,route:"/alerts/dismiss"},async e=>{e(e=>e.startsWith(Z))})}},41775:function(e,t,n){"use strict";function r(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 i(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{RVU:function(){return tF},eHR:function(){return tq},xHM:function(){return t$},IRm:function(){return tY},L6f:function(){return tG},rW0:function(){return tK},osk:function(){return tX},JaG:function(){return tQ},wWN:function(){return id},Dkj:function(){return iE},cfm:function(){return t0},YV2:function(){return t7},EMN:function(){return t9},bdU:function(){return ne},VUy:function(){return nt},Cp0:function(){return nn},kqg:function(){return nr},Mes:function(){return ni},DI$:function(){return na},NlZ:function(){return np},Y3p:function(){return nv},Z$8:function(){return nm},tEK:function(){return ng},PcV:function(){return nb},QN4:function(){return ny},Jsc:function(){return nx},wEY:function(){return nj},olJ:function(){return nk},KiD:function(){return n_},dDl:function(){return nC},Jrl:function(){return nT},aPl:function(){return nP},kBK:function(){return iy},Bpb:function(){return nR},iG7:function(){return nz},dr6:function(){return nV},d19:function(){return nI},w9S:function(){return nB},VBo:function(){return ih},Hb6:function(){return nW},CCF:function(){return nq},Qbr:function(){return nK},L37:function(){return nX},ROc:function(){return ix},UG6:function(){return ib},lq1:function(){return nQ},zvn:function(){return ip},K2o:function(){return ig},EL$:function(){return n0},BdP:function(){return n6},dsj:function(){return n8},P5r:function(){return n7},RdX:function(){return n9},U_S:function(){return re},V8Q:function(){return ri},POp:function(){return ro},kSc:function(){return ra},mBM:function(){return iv},Lur:function(){return rc},b47:function(){return rd},Sfn:function(){return rf},W$S:function(){return ry},T85:function(){return rb},Ckx:function(){return rx},dZ8:function(){return rE},EOT:function(){return rw},RK4:function(){return rk},XJM:function(){return rC},RRj:function(){return rM},ka0:function(){return rA},hzZ:function(){return rP},VUg:function(){return rL},owP:function(){return rF},Fs9:function(){return rz},wGX:function(){return rV},Wet:function(){return rU},BB5:function(){return rW},ZEk:function(){return rq},$Iz:function(){return rK},shL:function(){return rX},hiv:function(){return rQ},mli:function(){return r0},lJ7:function(){return iw},ORH:function(){return r2},xVB:function(){return r9},pHg:function(){return ie},I$H:function(){return ir},HCc:function(){return it},oaN:function(){return im},qdM:function(){return io},gFQ:function(){return ii},SmH:function(){return il},lg1:function(){return iu}});var a,s,l,u,c,d,f,h,p,m,v,g,y,b,x,w,E,j,k,S,O,_,C,M,A,T,P,N,R,D,Z,L,F,z,V,I,B,H,U,W,q,$,Y,G,K,X,Q,J,ee,et,en,er,ei,eo,ea,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,eb,ex,ew,eE,ej,ek,eS,eO,e_,eC,eM,eA,eT,eP,eN,eR,eD,eZ,eL,eF,ez,eV,eI,eB,eH,eU,eW,eq,e$,eY,eG,eK,eX,eQ,eJ,e0,e1,e2,e4,e3,e5,e6,e8,e7,e9,te,tt,tn,tr,ti,to,ta,ts,tl,tu,tc,td,tf,th,tp,tm,tv,tg,ty,tb,tx,tw,tE,tj,tk=["width","height","viewBox"],tS=["tabindex"],tO={focusable:"false",preserveAspectRatio:"xMidYMid meet"},t_=n(13980),tC=n.n(t_),tM=n(2784);function tA(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 tT(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var tR=["className","children","tabIndex"],tD=["tabindex"],tZ=tM.forwardRef(function(e,t){var n=e.className,r=e.children,a=e.tabIndex,s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,a=void 0===r?"0 0 ".concat(t," ").concat(n):r,s=o(e,tk),l=s.tabindex,u=o(s,tS),c=i(i(i({},tO),u),{},{width:t,height:n,viewBox:a});return c["aria-label"]||c["aria-labelledby"]||c.title?(c.role="img",null!=l&&(c.focusable="true",c.tabindex=l)):c["aria-hidden"]=!0,c}(tT(tT({},tN(e,tR)),{},{tabindex:a})),l=s.tabindex,u=tN(s,tD);return n&&(u.className=n),null!=l&&(u.tabIndex=l),t&&(u.ref=t),tM.createElement("svg",u,r)});tZ.displayName="Icon",tZ.propTypes={"aria-hidden":tC().string,"aria-label":tC().string,"aria-labelledby":tC().string,children:tC().node,className:tC().string,height:tC().oneOfType([tC().number,tC().string]),preserveAspectRatio:tC().string,tabIndex:tC().string,viewBox:tC().string,width:tC().oneOfType([tC().number,tC().string]),xmlns:tC().string},tZ.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"};var tL=["children"],tF=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,tL);return tM.createElement(tZ,tP({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),a||(a=tM.createElement("path",{d:"M17 15L17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z"})),n)}),tz=["children"],tV=["children"],tI=["children"],tB=["children"],tH=["children"],tU=["children"],tW=["children"],tq=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,tz);return tM.createElement(tZ,tP({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),s||(s=tM.createElement("path",{d:"M14 19H18V21H14z"})),l||(l=tM.createElement("path",{d:"M6,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V2ZM24,28H8V16H24Zm0-14H8V10H24ZM8,8V4H24V8Z"})),n)}),t$=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,tV);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),u||(u=tM.createElement("path",{d:"M22 26L22 24 9.41 24 26 7.41 24.59 6 8 22.59 8 10 6 10 6 26 22 26z"})),n)}),tY=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,tI);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),c||(c=tM.createElement("path",{d:"M10 26L10 24 22.59 24 6 7.41 7.41 6 24 22.59 24 10 26 10 26 26 10 26z"})),n)}),tG=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,tB);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),d||(d=tM.createElement("path",{d:"M22 6L22 8 9.41 8 26 24.59 24.59 26 8 9.41 8 22 6 22 6 6 22 6z"})),n)}),tK=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,tH);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),f||(f=tM.createElement("path",{d:"M10 6L10 8 22.59 8 6 24.59 7.41 26 24 9.41 24 22 26 22 26 6 10 6z"})),n)}),tX=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,tU);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),h||(h=tM.createElement("path",{d:"M7.2,2.3c-1,4.4,1.7,8.7,6.1,9.8c0.1,0,0.1,0,0.2,0c-1.1,1.2-2.7,1.8-4.3,1.8c-0.1,0-0.2,0-0.2,0C5.6,13.8,3,11,3.2,7.7 C3.2,5.3,4.8,3.1,7.2,2.3 M8,1L8,1C4.1,1.6,1.5,5.3,2.1,9.1c0.6,3.3,3.4,5.8,6.8,5.9c0.1,0,0.2,0,0.3,0c2.3,0,4.4-1.1,5.8-3 c0.2-0.2,0.1-0.6-0.1-0.7c-0.1-0.1-0.2-0.1-0.3-0.1c-3.9-0.3-6.7-3.8-6.4-7.6C8.3,3,8.4,2.4,8.6,1.8c0.1-0.3,0-0.6-0.3-0.7 C8.1,1,8.1,1,8,1z"})),n)}),tQ=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,tW);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),p||(p=tM.createElement("path",{d:"M7.5 1H8.5V3.5H7.5z"})),m||(m=tM.createElement("path",{d:"M10.8 3.4H13.3V4.4H10.8z",transform:"rotate(-45.001 12.074 3.922)"})),v||(v=tM.createElement("path",{d:"M12.5 7.5H15V8.5H12.5z"})),g||(g=tM.createElement("path",{d:"M11.6 10.8H12.6V13.3H11.6z",transform:"rotate(-45.001 12.077 12.075)"})),y||(y=tM.createElement("path",{d:"M7.5 12.5H8.5V15H7.5z"})),b||(b=tM.createElement("path",{d:"M2.7 11.6H5.2V12.6H2.7z",transform:"rotate(-45.001 3.929 12.078)"})),x||(x=tM.createElement("path",{d:"M1 7.5H3.5V8.5H1z"})),w||(w=tM.createElement("path",{d:"M3.4 2.7H4.4V5.2H3.4z",transform:"rotate(-45.001 3.926 3.925)"})),E||(E=tM.createElement("path",{d:"M8,6c1.1,0,2,0.9,2,2s-0.9,2-2,2S6,9.1,6,8S6.9,6,8,6 M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z"})),n)}),tJ=["children"],t0=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,tJ);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),j||(j=tM.createElement("path",{d:"M26,6V8.17L5.64,11.87a2,2,0,0,0-1.64,2v4.34a2,2,0,0,0,1.64,2L8,20.56V24a2,2,0,0,0,2,2h8a2,2,0,0,0,2-2V22.74l6,1.09V26h2V6ZM18,24H10V20.93l8,1.45ZM6,18.17V13.83L26,10.2V21.8Z"})),n)}),t1=["children"],t2=["children"],t4=["children"],t3=["children"],t5=["children"],t6=["children"],t8=["children"],t7=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,t1);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),k||(k=tM.createElement("path",{d:"M26,4H22V2H20V4H12V2H10V4H6A2.0025,2.0025,0,0,0,4,6V26a2.0025,2.0025,0,0,0,2,2H26a2.0025,2.0025,0,0,0,2-2V6A2.0025,2.0025,0,0,0,26,4ZM6,6h4V8h2V6h8V8h2V6h4l0,4H6Zm0,6h5v6H6ZM19,26H13V20h6Zm0-8H13V12h6Zm2,8V20h5l.0012,6Z"})),n)}),t9=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,t2);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),S||(S=tM.createElement("path",{d:"M24 12L16 22 8 12z"})),n)}),ne=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,t4);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),O||(O=tM.createElement("path",{d:"M20 24L10 16 20 8z"})),n)}),nt=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,t3);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),_||(_=tM.createElement("path",{d:"M12 8L22 16 12 24z"})),n)}),nn=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,t5);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),C||(C=tM.createElement("path",{d:"M24 24L16 32 8 24zM8 8L16 0 24 8z"})),n)}),nr=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,t6);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),M||(M=tM.createElement("path",{d:"M8 20L16 10 24 20z"})),n)}),ni=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,t8);return tM.createElement(tZ,tP({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),A||(A=tM.createElement("path",{d:"M30,15H27.9492A12.0071,12.0071,0,0,0,17,4.0508V2H15V4.0508A12.0071,12.0071,0,0,0,4.0508,15H2v2H4.0508A12.0071,12.0071,0,0,0,15,27.9492V30h2V27.9492A12.0071,12.0071,0,0,0,27.9492,17H30ZM17,25.9492V22H15v3.9492A10.0166,10.0166,0,0,1,6.0508,17H10V15H6.0508A10.0166,10.0166,0,0,1,15,6.0508V10h2V6.0508A10.0166,10.0166,0,0,1,25.9492,15H22v2h3.9492A10.0166,10.0166,0,0,1,17,25.9492Z"})),n)}),no=["children"],na=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,no);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),T||(T=tM.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z"})),P||(P=tM.createElement("path",{fill:"none",d:"M14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z","data-icon-path":"inner-path"})),n)}),ns=["children"],nl=["children"],nu=["children"],nc=["children"],nd=["children"],nf=["children"],nh=["children"],np=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,ns);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),N||(N=tM.createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),n)}),nm=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,nl);return tM.createElement(tZ,tP({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),R||(R=tM.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"})),D||(D=tM.createElement("path",{fill:"none",d:"M14 21.591L9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z","data-icon-path":"inner-path"})),n)}),nv=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,nu);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Z||(Z=tM.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"})),L||(L=tM.createElement("path",{d:"M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z","data-icon-path":"inner-path",opacity:"0"})),n)}),ng=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,nc);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),F||(F=tM.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),z||(z=tM.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),n)}),ny=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,nd);return tM.createElement(tZ,tP({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),V||(V=tM.createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),n)}),nb=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,nf);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),I||(I=tM.createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),n)}),nx=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,nh);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),B||(B=tM.createElement("path",{d:"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12 S22.6,28,16,28z"})),H||(H=tM.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),n)}),nw=["children"],nE=["children"],nj=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,nw);return tM.createElement(tZ,tP({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),U||(U=tM.createElement("path",{d:"M31 16L24 23 22.59 21.59 28.17 16 22.59 10.41 24 9 31 16zM1 16L8 9 9.41 10.41 3.83 16 9.41 21.59 8 23 1 16z"})),W||(W=tM.createElement("path",{d:"M5.91 15H26.080000000000002V17H5.91z",transform:"rotate(-75 15.996 16)"})),n)}),nk=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,nE);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),q||(q=tM.createElement("path",{d:"M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z"})),$||($=tM.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),n)}),nS=["children"],nO=["children"],n_=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,nS);return tM.createElement(tZ,tP({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Y||(Y=tM.createElement("path",{d:"M21,12V10H17V7H15v3H13a2.002,2.002,0,0,0-2,2v3a2.002,2.002,0,0,0,2,2h6v3H11v2h4v3h2V22h2a2.0023,2.0023,0,0,0,2-2V17a2.002,2.002,0,0,0-2-2H13V12Z"})),G||(G=tM.createElement("path",{d:"M16,4A12,12,0,1,1,4,16,12.0353,12.0353,0,0,1,16,4m0-2A14,14,0,1,0,30,16,14.0412,14.0412,0,0,0,16,2Z"})),n)}),nC=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,nO);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),K||(K=tM.createElement("path",{d:"M23 27.18L20.41 24.59 19 26 23 30 30 23 28.59 21.59 23 27.18z"})),X||(X=tM.createElement("circle",{cx:"11",cy:"8",r:"1"})),Q||(Q=tM.createElement("circle",{cx:"11",cy:"16",r:"1"})),J||(J=tM.createElement("circle",{cx:"11",cy:"24",r:"1"})),ee||(ee=tM.createElement("path",{d:"M24,3H8A2,2,0,0,0,6,5V27a2,2,0,0,0,2,2h8V27H8V21H26V5A2,2,0,0,0,24,3Zm0,16H8V13H24Zm0-8H8V5H24Z"})),n)}),nM=["children"],nA=["children"],nT=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,nM);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),et||(et=tM.createElement("path",{d:"M12 12H14V24H12zM18 12H20V24H18z"})),en||(en=tM.createElement("path",{d:"M4 6V8H6V28a2 2 0 002 2H24a2 2 0 002-2V8h2V6zM8 28V8H24V28zM12 2H20V4H12z"})),n)}),nP=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,nA);return tM.createElement(tZ,tP({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),er||(er=tM.createElement("path",{d:"M8 4V8H4V4H8M2 2v8h8V2zM18 7v4H14V7h4M12 5v8h8V5zM8 16v4H4V16H8M2 14v8h8V14z"})),ei||(ei=tM.createElement("path",{d:"M22,10v6H16v6H10v8H30V10Zm-4,8h4v4H18ZM16,28H12V24h4Zm6,0H18V24h4Zm6,0H24V24h4Zm0-6H24V18h4Zm-4-6V12h4v4Z"})),n)}),nN=["children"],nR=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,nN);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eo||(eo=tM.createElement("circle",{cx:"16",cy:"16",r:"8"})),n)}),nD=["children"],nZ=["children"],nL=["children"],nF=["children"],nz=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,nD);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ea||(ea=tM.createElement("path",{d:"M10 6H14V10H10zM18 6H22V10H18zM10 14H14V18H10zM18 14H22V18H18zM10 22H14V26H10zM18 22H22V26H18z"})),n)}),nV=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,nZ);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),es||(es=tM.createElement("path",{d:"M2 26H30V28H2zM25.4 9c.8-.8.8-2 0-2.8 0 0 0 0 0 0l-3.6-3.6c-.8-.8-2-.8-2.8 0 0 0 0 0 0 0l-15 15V24h6.4L25.4 9zM20.4 4L24 7.6l-3 3L17.4 7 20.4 4zM6 22v-3.6l10-10 3.6 3.6-10 10H6z"})),n)}),nI=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,nL);return tM.createElement(tZ,tP({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),el||(el=tM.createElement("path",{d:"M21,30a8,8,0,1,1,8-8A8,8,0,0,1,21,30Zm0-14a6,6,0,1,0,6,6A6,6,0,0,0,21,16Z"})),eu||(eu=tM.createElement("path",{d:"M22.59 25L20 22.41 20 18 22 18 22 21.59 24 23.59 22.59 25z"})),ec||(ec=tM.createElement("path",{d:"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z"})),n)}),nB=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,nF);return tM.createElement(tZ,tP({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ed||(ed=tM.createElement("path",{d:"M18 31h2V29a1.0006 1.0006 0 011-1h6a1.0006 1.0006 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 25a4 4 0 114-4A4.0039 4.0039 0 0124 25zm0-6a2 2 0 102 2A2.0027 2.0027 0 0024 19zM2 31H4V29a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 25a4 4 0 114-4A4.0042 4.0042 0 018 25zm0-6a2 2 0 102 2A2.0023 2.0023 0 008 19zM18 16h2V14a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 10a4 4 0 114-4A4.0042 4.0042 0 0124 10zm0-6a2 2 0 102 2A2.0023 2.0023 0 0024 4zM2 16H4V14a1.0013 1.0013 0 011-1h6a1.0013 1.0013 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 10a4 4 0 114-4A4.0045 4.0045 0 018 10zM8 4a2 2 0 102 2A2.002 2.002 0 008 4z"})),n)}),nH=["children"],nU=["children"],nW=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,nH);return tM.createElement(tZ,tP({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ef||(ef=tM.createElement("path",{d:"M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"})),n)}),nq=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,nU);return tM.createElement(tZ,tP({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eh||(eh=tM.createElement("path",{d:"M2 28H30V30H2zM27 11a1 1 0 001-1V7a1 1 0 00-.66-.94l-11-4a1 1 0 00-.68 0l-11 4A1 1 0 004 7v3a1 1 0 001 1H6V24H4v2H28V24H26V11zM6 7.7L16 4.06 26 7.7V9H6zM18 24H14V11h4zM8 11h4V24H8zM24 24H20V11h4z"})),n)}),n$=["children"],nY=["children"],nG=["children"],nK=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,n$);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ep||(ep=tM.createElement("path",{d:"M11.17,6l3.42,3.41.58.59H28V26H4V6h7.17m0-2H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2H16L12.59,4.59A2,2,0,0,0,11.17,4Z"})),n)}),nX=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,nY);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),em||(em=tM.createElement("path",{d:"M26 20L24 20 24 24 20 24 20 26 24 26 24 30 26 30 26 26 30 26 30 24 26 24z"})),ev||(ev=tM.createElement("path",{d:"M28,8H16l-3.4-3.4C12.2,4.2,11.7,4,11.2,4H4C2.9,4,2,4.9,2,6v20c0,1.1,0.9,2,2,2h14v-2H4V6h7.2l3.4,3.4l0.6,0.6H28v8h2v-8 C30,8.9,29.1,8,28,8z"})),n)}),nQ=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,nG);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eg||(eg=tM.createElement("path",{d:"M14,4a7,7,0,1,1-7,7,7,7,0,0,1,7-7m0-2a9,9,0,1,0,9,9A9,9,0,0,0,14,2Z"})),ey||(ey=tM.createElement("path",{d:"M28,11a13.9563,13.9563,0,0,0-4.1051-9.8949L22.4813,2.5187A11.9944,11.9944,0,0,1,5.5568,19.5194l-.0381-.0381L4.1051,20.8949A13.9563,13.9563,0,0,0,14,25v3H10v2H20V28H16V24.84A14.0094,14.0094,0,0,0,28,11Z"})),n)}),nJ=["children"],n0=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,nJ);return tM.createElement(tZ,tP({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eb||(eb=tM.createElement("path",{d:"M16,.0005,4,5.9784V20.0443a12,12,0,0,0,24,0V5.9784Zm6.83,27.3138L16,23.9119V26.14l5.0361,2.5088A10.0025,10.0025,0,0,1,6,20.0443V7.21L16,2.2284,26,7.21v3.75L16,5.9783V8.2062l10,4.9816v3.75L16,11.9562v2.2279l10,4.9815v.8787a9.9045,9.9045,0,0,1-.37,2.6871L16,17.934v2.2279l8.8952,4.4313A10.0252,10.0252,0,0,1,22.83,27.3143Z"})),n)}),n1=["children"],n2=["children"],n4=["children"],n3=["children"],n5=["children"],n6=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,n1);return tM.createElement(tZ,tP({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ex||(ex=tM.createElement("path",{d:"M11 24H21V26H11zM13 28H19V30H13zM16 2A10 10 0 006 12a9.19 9.19 0 003.46 7.62c1 .93 1.54 1.46 1.54 2.38h2c0-1.84-1.11-2.87-2.19-3.86A7.2 7.2 0 018 12a8 8 0 0116 0 7.2 7.2 0 01-2.82 6.14c-1.07 1-2.18 2-2.18 3.86h2c0-.92.53-1.45 1.54-2.39A9.18 9.18 0 0026 12 10 10 0 0016 2z"})),n)}),n8=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,n2);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ew||(ew=tM.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2Zm0,26A12,12,0,0,1,16,4V16l8.4812,8.4814A11.9625,11.9625,0,0,1,16,28Z"})),n)}),n7=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,n4);return tM.createElement(tZ,tP({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eE||(eE=tM.createElement("path",{d:"M29.53,6.15a1,1,0,0,0-1,0L20,10.38V7a1,1,0,0,0-1.45-.89L10,10.38V3A1,1,0,0,0,9,2H3A1,1,0,0,0,2,3V28H30V7A1,1,0,0,0,29.53,6.15ZM22,26H18V19h4Zm6,0H24V18a1,1,0,0,0-1-1H17a1,1,0,0,0-1,1v8H4V4H8v9.62l10-5v5l10-5Z"})),n)}),n9=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,n3);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ej||(ej=tM.createElement("path",{d:"M8.5 11L8.5 6.5 6.5 6.5 6.5 7.5 7.5 7.5 7.5 11 6 11 6 12 10 12 10 11zM8 3.5c-.4 0-.8.3-.8.8S7.6 5 8 5c.4 0 .8-.3.8-.8S8.4 3.5 8 3.5z"})),ek||(ek=tM.createElement("path",{d:"M8,15c-3.9,0-7-3.1-7-7s3.1-7,7-7s7,3.1,7,7S11.9,15,8,15z M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z"})),n)}),re=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,n5);return tM.createElement(tZ,tP({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eS||(eS=tM.createElement("path",{d:"M29.88,15.52l-6-11A1,1,0,0,0,23,4H9a1,1,0,0,0-.88.52l-6,11a1,1,0,0,0,0,1l6,11A1,1,0,0,0,9,28H23a1,1,0,0,0,.88-.52l6-11A1,1,0,0,0,29.88,15.52ZM22.93,7l4.39,8h-9.5ZM16,14.14,10.82,6H21.18ZM9.07,7l5.11,8H4.68ZM4.68,17h9.5L9.07,25ZM16,17.86,21.18,26H10.82ZM22.93,25l-5.11-8h9.5Z"})),n)}),rt=["children"],rn=["children"],rr=["children"],ri=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,rt);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eO||(eO=tM.createElement("path",{d:"M13,14H3c-0.6,0-1-0.4-1-1V3c0-0.6,0.4-1,1-1h5v1H3v10h10V8h1v5C14,13.6,13.6,14,13,14z"})),e_||(e_=tM.createElement("path",{d:"M10 1L10 2 13.3 2 9 6.3 9.7 7 14 2.7 14 6 15 6 15 1z"})),n)}),ro=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,rn);return tM.createElement(tZ,tP({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eC||(eC=tM.createElement("path",{d:"M29.25,6.76a6,6,0,0,0-8.5,0l1.42,1.42a4,4,0,1,1,5.67,5.67l-8,8a4,4,0,1,1-5.67-5.66l1.41-1.42-1.41-1.42-1.42,1.42a6,6,0,0,0,0,8.5A6,6,0,0,0,17,25a6,6,0,0,0,4.27-1.76l8-8A6,6,0,0,0,29.25,6.76Z"})),eM||(eM=tM.createElement("path",{d:"M4.19,24.82a4,4,0,0,1,0-5.67l8-8a4,4,0,0,1,5.67,0A3.94,3.94,0,0,1,19,14a4,4,0,0,1-1.17,2.85L15.71,19l1.42,1.42,2.12-2.12a6,6,0,0,0-8.51-8.51l-8,8a6,6,0,0,0,0,8.51A6,6,0,0,0,7,28a6.07,6.07,0,0,0,4.28-1.76L9.86,24.82A4,4,0,0,1,4.19,24.82Z"})),n)}),ra=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,rr);return tM.createElement(tZ,tP({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eA||(eA=tM.createElement("path",{d:"M16 8H30V10H16zM6 10.59L3.41 8 2 9.41 6 13.41 14 5.41 12.59 4 6 10.59zM16 22H30V24H16zM6 24.59L3.41 22 2 23.41 6 27.41 14 19.41 12.59 18 6 24.59z"})),n)}),rs=["children"],rl=["children"],ru=["children"],rc=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,rs);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eT||(eT=tM.createElement("path",{d:"M24,14H22V8A6,6,0,0,0,10,8v6H8a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V16A2,2,0,0,0,24,14ZM12,8a4,4,0,0,1,8,0v6H12ZM24,28H8V16H24Z"})),n)}),rd=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,rl);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eP||(eP=tM.createElement("path",{d:"M13.647,14.907a1.4482,1.4482,0,1,0,1.326,1.443A1.385,1.385,0,0,0,13.647,14.907Zm4.745,0a1.4482,1.4482,0,1,0,1.326,1.443A1.385,1.385,0,0,0,18.392,14.907Z"})),eN||(eN=tM.createElement("path",{d:"M24.71,4H7.29A2.6714,2.6714,0,0,0,4.625,6.678V24.254A2.6714,2.6714,0,0,0,7.29,26.932H22.032l-.689-2.405,1.664,1.547L24.58,27.53,27.375,30V6.678A2.6714,2.6714,0,0,0,24.71,4ZM19.692,20.978s-.468-.559-.858-1.053a4.1021,4.1021,0,0,0,2.353-1.547,7.4391,7.4391,0,0,1-1.495.767,8.5564,8.5564,0,0,1-1.885.559,9.1068,9.1068,0,0,1-3.367-.013,10.9127,10.9127,0,0,1-1.911-.559,7.6184,7.6184,0,0,1-.949-.442c-.039-.026-.078-.039-.117-.065a.18.18,0,0,1-.052-.039c-.234-.13-.364-.221-.364-.221a4.0432,4.0432,0,0,0,2.275,1.534c-.39.494-.871,1.079-.871,1.079a4.7134,4.7134,0,0,1-3.965-1.976,17.409,17.409,0,0,1,1.872-7.579,6.4285,6.4285,0,0,1,3.653-1.365l.13.156a8.77,8.77,0,0,0-3.419,1.703s.286-.156.767-.377a9.7625,9.7625,0,0,1,2.951-.819,1.2808,1.2808,0,0,1,.221-.026,11,11,0,0,1,2.626-.026A10.5971,10.5971,0,0,1,21.2,11.917a8.6518,8.6518,0,0,0-3.237-1.651l.182-.208a6.4285,6.4285,0,0,1,3.653,1.365,17.409,17.409,0,0,1,1.872,7.579A4.752,4.752,0,0,1,19.692,20.978Z"})),n)}),rf=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,ru);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eR||(eR=tM.createElement("path",{fillRule:"evenodd",d:"M16,2a14,14,0,0,0-4.43,27.28c.7.13,1-.3,1-.67s0-1.21,0-2.38c-3.89.84-4.71-1.88-4.71-1.88A3.71,3.71,0,0,0,6.24,22.3c-1.27-.86.1-.85.1-.85A2.94,2.94,0,0,1,8.48,22.9a3,3,0,0,0,4.08,1.16,2.93,2.93,0,0,1,.88-1.87c-3.1-.36-6.37-1.56-6.37-6.92a5.4,5.4,0,0,1,1.44-3.76,5,5,0,0,1,.14-3.7s1.17-.38,3.85,1.43a13.3,13.3,0,0,1,7,0c2.67-1.81,3.84-1.43,3.84-1.43a5,5,0,0,1,.14,3.7,5.4,5.4,0,0,1,1.44,3.76c0,5.38-3.27,6.56-6.39,6.91a3.33,3.33,0,0,1,.95,2.59c0,1.87,0,3.38,0,3.84s.25.81,1,.67A14,14,0,0,0,16,2Z"})),n)}),rh=["children"],rp=["children"],rm=["children"],rv=["children"],rg=["children"],ry=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,rh);return tM.createElement(tZ,tP({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eD||(eD=tM.createElement("path",{d:"M16.59 20.41L20.17 24 20.17 24 16.58 27.59 18 29 23 24 18 19 16.59 20.41zM23.59 20.41L27.17 24 27.17 24 23.58 27.59 25 29 30 24 25 19 23.59 20.41z"})),eZ||(eZ=tM.createElement("path",{d:"M14,23H4V7.91l11.43,7.91a1,1,0,0,0,1.14,0L28,7.91V17h2V7a2,2,0,0,0-2-2H4A2,2,0,0,0,2,7V23a2,2,0,0,0,2,2H14ZM25.8,7,16,13.78,6.2,7Z"})),n)}),rb=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,rp);return tM.createElement(tZ,tP({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eL||(eL=tM.createElement("path",{d:"M25.3943,24a7.8772,7.8772,0,0,0-1.6707-8.5684,3.918,3.918,0,0,0-1.0844-4.414l2.7759-2.7759a2.0025,2.0025,0,0,0,0-2.8286L22.5869,2.5849a2.0021,2.0021,0,0,0-2.8286,0L6.5859,15.7573a2.0027,2.0027,0,0,0,0,2.8286l2.8282,2.8282a2.0024,2.0024,0,0,0,2.8286,0l4.7749-4.7754a3.9329,3.9329,0,0,0,5.5139.4326A5.9442,5.9442,0,0,1,23.1775,24H16v4H4v2H28V24ZM10.8281,20,8,17.1714,9.8787,15.293l2.8283,2.8281ZM16,14a3.9811,3.9811,0,0,0,.0762.7524L14.1211,16.707l-2.8284-2.8281,9.88-9.88L24.001,6.8271l-3.2488,3.2491A3.9771,3.9771,0,0,0,16,14Zm4,2a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,20,16Zm6,12H18V26h8Z"})),n)}),rx=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,rm);return tM.createElement(tZ,tP({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eF||(eF=tM.createElement("path",{d:"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12 S22.6,28,16,28z"})),ez||(ez=tM.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),n)}),rw=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,rv);return tM.createElement(tZ,tP({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eV||(eV=tM.createElement("path",{d:"M2 22H30V24H2zM2 26H30V28H2zM24 10a2 2 0 102 2 2 2 0 00-2-2zM16 16a4 4 0 114-4A4.0045 4.0045 0 0116 16zm0-6a2 2 0 102 2A2.002 2.002 0 0016 10zM8 10a2 2 0 102 2 2 2 0 00-2-2z"})),eI||(eI=tM.createElement("path",{d:"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z"})),n)}),rE=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,rg);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eB||(eB=tM.createElement("path",{d:"M2 22H30V24H2zM2 26H30V28H2zM24 10a2 2 0 102 2 2 2 0 00-2-2zM16 16a4 4 0 114-4A4.0045 4.0045 0 0116 16zm0-6a2 2 0 102 2A2.002 2.002 0 0016 10zM8 10a2 2 0 102 2 2 2 0 00-2-2z"})),eH||(eH=tM.createElement("path",{d:"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z"})),n)}),rj=["children"],rk=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,rj);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eU||(eU=tM.createElement("circle",{cx:"21",cy:"26",r:"2"})),eW||(eW=tM.createElement("circle",{cx:"21",cy:"6",r:"2"})),eq||(eq=tM.createElement("circle",{cx:"4",cy:"16",r:"2"})),e$||(e$=tM.createElement("path",{d:"M28,12a3.9962,3.9962,0,0,0-3.8579,3H19.8579a3.9655,3.9655,0,0,0-5.4914-2.6426L11.19,8.3872A3.9626,3.9626,0,0,0,12,6a4,4,0,1,0-4,4,3.96,3.96,0,0,0,1.6338-.3574l3.176,3.97a3.9239,3.9239,0,0,0,0,4.7744l-3.1758,3.97A3.96,3.96,0,0,0,8,22a4,4,0,1,0,4,4,3.9624,3.9624,0,0,0-.81-2.3872l3.1758-3.97A3.9658,3.9658,0,0,0,19.8579,17h4.2842A3.9934,3.9934,0,1,0,28,12ZM6,6A2,2,0,1,1,8,8,2.0023,2.0023,0,0,1,6,6ZM8,28a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,8,28Zm8-10a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,16,18Zm12,0a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,28,18Z"})),n)}),rS=["children"],rO=["children"],r_=["children"],rC=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,rS);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eY||(eY=tM.createElement("path",{d:"M14 16L24 6 25.4 7.4 16.8 16 25.4 24.6 24 26zM8 4H10V28H8z"})),n)}),rM=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,rO);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eG||(eG=tM.createElement("path",{d:"M18 16L8 26 6.6 24.6 15.2 16 6.6 7.4 8 6zM22 4H24V28H22z"})),n)}),rA=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,r_);return tM.createElement(tZ,tP({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eK||(eK=tM.createElement("path",{d:"M21,2a8.9977,8.9977,0,0,0-8.6119,11.6118L2,24v6H8L18.3881,19.6118A9,9,0,1,0,21,2Zm0,16a7.0125,7.0125,0,0,1-2.0322-.3022L17.821,17.35l-.8472.8472-3.1811,3.1812L12.4141,20,11,21.4141l1.3787,1.3786-1.5859,1.586L9.4141,23,8,24.4141l1.3787,1.3786L7.1716,28H4V24.8284l9.8023-9.8023.8472-.8474-.3473-1.1467A7,7,0,1,1,21,18Z"})),eX||(eX=tM.createElement("circle",{cx:"22",cy:"10",r:"2"})),n)}),rT=["children"],rP=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,rT);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eQ||(eQ=tM.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM8,18a2,2,0,1,1,2-2A2,2,0,0,1,8,18Zm8,0a2,2,0,1,1,2-2A2,2,0,0,1,16,18Zm8,0a2,2,0,1,1,2-2A2,2,0,0,1,24,18Z"})),eJ||(eJ=tM.createElement("path",{fill:"none",d:"M10,16a2,2,0,1,1-2-2A2,2,0,0,1,10,16Zm6-2a2,2,0,1,0,2,2A2,2,0,0,0,16,14Zm8,0a2,2,0,1,0,2,2A2,2,0,0,0,24,14Z","data-icon-path":"inner-path"})),n)}),rN=["children"],rR=["children"],rD=["children"],rZ=["children"],rL=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,rN);return tM.createElement(tZ,tP({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e0||(e0=tM.createElement("path",{d:"M30 18A6 6 0 1020 22.46v7.54l4-1.8926 4 1.8926V22.46A5.98 5.98 0 0030 18zm-4 8.84l-2-.9467L22 26.84V23.65a5.8877 5.8877 0 004 0zM24 22a4 4 0 114-4A4.0045 4.0045 0 0124 22zM9 14H16V16H9zM9 8H19V10H9z"})),e1||(e1=tM.createElement("path",{d:"M6,30a2.0021,2.0021,0,0,1-2-2V4A2.0021,2.0021,0,0,1,6,2H22a2.0021,2.0021,0,0,1,2,2V8H22V4H6V28H16v2Z"})),n)}),rF=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,rR);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e2||(e2=tM.createElement("circle",{cx:"11",cy:"15.5",r:"1.5"})),e4||(e4=tM.createElement("path",{d:"M12,12H10V8h2a2,2,0,0,0,0-4H10A2.0023,2.0023,0,0,0,8,6v.5H6V6a4.0045,4.0045,0,0,1,4-4h2a4,4,0,0,1,0,8Z"})),e3||(e3=tM.createElement("path",{d:"M22.4479,21.0337A10.971,10.971,0,0,0,19.9211,4.7446l-.999,1.73A8.9967,8.9967,0,1,1,5,14H3a10.9916,10.9916,0,0,0,18.0338,8.4478L28.5859,30,30,28.5859Z"})),n)}),rz=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,rD);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e5||(e5=tM.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),n)}),rV=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,rZ);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e6||(e6=tM.createElement("path",{d:"M20.59 22L15 16.41 15 7 17 7 17 15.58 22 20.59 20.59 22z"})),e8||(e8=tM.createElement("path",{d:"M16,2A13.94,13.94,0,0,0,6,6.23V2H4v8h8V8H7.08A12,12,0,1,1,4,16H2A14,14,0,1,0,16,2Z"})),n)}),rI=["children"],rB=["children"],rH=["children"],rU=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,rI);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e7||(e7=tM.createElement("path",{d:"M18,28A12,12,0,1,0,6,16v6.2L2.4,18.6,1,20l6,6,6-6-1.4-1.4L8,22.2V16H8A10,10,0,1,1,18,26Z"})),n)}),rW=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,rB);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e9||(e9=tM.createElement("path",{d:"M29,10H3a1,1,0,0,0-1,1V21a1,1,0,0,0,1,1H29a1,1,0,0,0,1-1V11A1,1,0,0,0,29,10ZM28,20H4V12H8v4h2V12h5v4h2V12h5v4h2V12h4Z"})),n)}),rq=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,rH);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),te||(te=tM.createElement("path",{d:"M13.9,4.6l-2.5-2.5C11.3,2.1,11.1,2,11,2H3C2.4,2,2,2.4,2,3v10c0,0.6,0.4,1,1,1h10c0.6,0,1-0.4,1-1V5 C14,4.9,13.9,4.7,13.9,4.6z M6,3h4v2H6V3z M10,13H6V9h4V13z M11,13V9c0-0.6-0.4-1-1-1H6C5.4,8,5,8.4,5,9v4H3V3h2v2c0,0.6,0.4,1,1,1 h4c0.6,0,1-0.4,1-1V3.2l2,2V13H11z"})),n)}),r$=["children"],rY=["children"],rG=["children"],rK=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,r$);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tt||(tt=tM.createElement("path",{d:"M28,4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM18,28H14V24h4Zm10-6H4V6H28Z"})),n)}),rX=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,rY);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tn||(tn=tM.createElement("path",{d:"M13.5,8.4c0-0.1,0-0.3,0-0.4c0-0.1,0-0.3,0-0.4l1-0.8c0.4-0.3,0.4-0.9,0.2-1.3l-1.2-2C13.3,3.2,13,3,12.6,3 c-0.1,0-0.2,0-0.3,0.1l-1.2,0.4c-0.2-0.1-0.4-0.3-0.7-0.4l-0.3-1.3C10.1,1.3,9.7,1,9.2,1H6.8c-0.5,0-0.9,0.3-1,0.8L5.6,3.1 C5.3,3.2,5.1,3.3,4.9,3.4L3.7,3C3.6,3,3.5,3,3.4,3C3,3,2.7,3.2,2.5,3.5l-1.2,2C1.1,5.9,1.2,6.4,1.6,6.8l0.9,0.9c0,0.1,0,0.3,0,0.4 c0,0.1,0,0.3,0,0.4L1.6,9.2c-0.4,0.3-0.5,0.9-0.2,1.3l1.2,2C2.7,12.8,3,13,3.4,13c0.1,0,0.2,0,0.3-0.1l1.2-0.4 c0.2,0.1,0.4,0.3,0.7,0.4l0.3,1.3c0.1,0.5,0.5,0.8,1,0.8h2.4c0.5,0,0.9-0.3,1-0.8l0.3-1.3c0.2-0.1,0.4-0.2,0.7-0.4l1.2,0.4 c0.1,0,0.2,0.1,0.3,0.1c0.4,0,0.7-0.2,0.9-0.5l1.1-2c0.2-0.4,0.2-0.9-0.2-1.3L13.5,8.4z M12.6,12l-1.7-0.6c-0.4,0.3-0.9,0.6-1.4,0.8 L9.2,14H6.8l-0.4-1.8c-0.5-0.2-0.9-0.5-1.4-0.8L3.4,12l-1.2-2l1.4-1.2c-0.1-0.5-0.1-1.1,0-1.6L2.2,6l1.2-2l1.7,0.6 C5.5,4.2,6,4,6.5,3.8L6.8,2h2.4l0.4,1.8c0.5,0.2,0.9,0.5,1.4,0.8L12.6,4l1.2,2l-1.4,1.2c0.1,0.5,0.1,1.1,0,1.6l1.4,1.2L12.6,12z"})),tr||(tr=tM.createElement("path",{d:"M8,11c-1.7,0-3-1.3-3-3s1.3-3,3-3s3,1.3,3,3C11,9.6,9.7,11,8,11C8,11,8,11,8,11z M8,6C6.9,6,6,6.8,6,7.9C6,7.9,6,8,6,8 c0,1.1,0.8,2,1.9,2c0,0,0.1,0,0.1,0c1.1,0,2-0.8,2-1.9c0,0,0-0.1,0-0.1C10,6.9,9.2,6,8,6C8.1,6,8,6,8,6z"})),n)}),rQ=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,rG);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ti||(ti=tM.createElement("path",{d:"M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30V8zM21 12c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3S22.7 12 21 12zM2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2V24zM11 20c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3S9.3 20 11 20z"})),n)}),rJ=["children"],r0=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,rJ);return tM.createElement(tZ,tP({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),to||(to=tM.createElement("path",{d:"M8 15H24V17H8z"})),n)}),r1=["children"],r2=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,r1);return tM.createElement(tZ,tP({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ta||(ta=tM.createElement("path",{d:"M23,9h6a2,2,0,0,0,2-2V3a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2V4H11V3A2,2,0,0,0,9,1H3A2,2,0,0,0,1,3V7A2,2,0,0,0,3,9H9a2,2,0,0,0,2-2V6h4V26a2.0023,2.0023,0,0,0,2,2h4v1a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V25a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2v1H17V17h4v1a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V14a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2v1H17V6h4V7A2,2,0,0,0,23,9Zm0-6h6V7H23ZM9,7H3V3H9ZM23,25h6v4H23Zm0-11h6v4H23Z",transform:"translate(0 .005)"})),n)}),r4=["children"],r3=["children"],r5=["children"],r6=["children"],r8=["children"],r7=["children"],r9=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,r4);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ts||(ts=tM.createElement("path",{d:"M15.5,7.8C14.3,4.7,11.3,2.6,8,2.5C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3c1.2,3.1,4.1,5.2,7.5,5.3 c3.3-0.1,6.3-2.2,7.5-5.3C15.5,8.1,15.5,7.9,15.5,7.8z M8,12.5c-2.7,0-5.4-2-6.5-4.5c1-2.5,3.8-4.5,6.5-4.5s5.4,2,6.5,4.5 C13.4,10.5,10.6,12.5,8,12.5z"})),tl||(tl=tM.createElement("path",{d:"M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z M8,10c-1.1,0-2-0.9-2-2s0.9-2,2-2s2,0.9,2,2S9.1,10,8,10z"})),n)}),ie=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,r3);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tu||(tu=tM.createElement("path",{d:"M2.6,11.3l0.7-0.7C2.6,9.8,1.9,9,1.5,8c1-2.5,3.8-4.5,6.5-4.5c0.7,0,1.4,0.1,2,0.4l0.8-0.8C9.9,2.7,9,2.5,8,2.5 C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3C1,9.3,1.7,10.4,2.6,11.3z"})),tc||(tc=tM.createElement("path",{d:"M6 7.9c.1-1 .9-1.8 1.8-1.8l.9-.9C7.2 4.7 5.5 5.6 5.1 7.2 5 7.7 5 8.3 5.1 8.8L6 7.9zM15.5 7.8c-.6-1.5-1.6-2.8-2.9-3.7L15 1.7 14.3 1 1 14.3 1.7 15l2.6-2.6c1.1.7 2.4 1 3.7 1.1 3.3-.1 6.3-2.2 7.5-5.3C15.5 8.1 15.5 7.9 15.5 7.8zM10 8c0 1.1-.9 2-2 2-.3 0-.7-.1-1-.3L9.7 7C9.9 7.3 10 7.6 10 8zM8 12.5c-1 0-2.1-.3-3-.8l1.3-1.3c1.4.9 3.2.6 4.2-.8.7-1 .7-2.4 0-3.4l1.4-1.4c1.1.8 2 1.9 2.6 3.2C13.4 10.5 10.6 12.5 8 12.5z"})),n)}),it=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,r5);return tM.createElement(tZ,tP({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),td||(td=tM.createElement("path",{d:"M22 17H24V19H22z"})),tf||(tf=tM.createElement("path",{d:"M28,8H4V5H26V3H4A2,2,0,0,0,2,5V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10A2,2,0,0,0,28,8ZM4,26V10H28v3H20a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h8v3ZM28,15v6H20V15Z"})),n)}),ir=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,r6);return tM.createElement(tZ,tP({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),th||(th=tM.createElement("path",{d:"M22 17H24V19H22z"})),tp||(tp=tM.createElement("path",{d:"M28,8H4V5H26V3H4A2,2,0,0,0,2,5V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10A2,2,0,0,0,28,8ZM4,26V10H28v3H20a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h8v3ZM28,15v6H20V15Z"})),n)}),ii=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,r8);return tM.createElement(tZ,tP({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tm||(tm=tM.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),tv||(tv=tM.createElement("path",{d:"M15 8H17V19H15zM16 22a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0016 22z"})),n)}),io=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,r7);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tg||(tg=tM.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M8,14c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6S11.3,14,8,14z"})),ty||(ty=tM.createElement("path",{d:"M7.5 4H8.5V9H7.5zM8 10.2c-.4 0-.8.3-.8.8s.3.8.8.8c.4 0 .8-.3.8-.8S8.4 10.2 8 10.2z"})),n)}),ia=["children"],is=["children"],il=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,ia);return tM.createElement(tZ,tP({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tb||(tb=tM.createElement("path",{d:"M26.0022,4H5.998A1.998,1.998,0,0,0,4,5.998V26.002A1.998,1.998,0,0,0,5.998,28H26.0022A1.9979,1.9979,0,0,0,28,26.002V5.998A1.9979,1.9979,0,0,0,26.0022,4ZM14.8752,8h2.25V18h-2.25ZM16,24a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,24Z"})),tx||(tx=tM.createElement("path",{fill:"none",d:"M14.8751,8h2.25V18h-2.25ZM16,24a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,24Z","data-icon-path":"inner-path"})),n)}),iu=tM.forwardRef(function(e,t){var n=e.children,r=tN(e,is);return tM.createElement(tZ,tP({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tw||(tw=tM.createElement("path",{d:"M29.3164,8.0513l-18-6A1,1,0,0,0,10.4,2.2L4,7V2H2V30H4V11l6.4,4.8a1,1,0,0,0,.9165.1489l18-6a1,1,0,0,0,0-1.8974ZM10,13,4.6665,9,10,5Zm4-.0542-2,.667V4.3872l2,.667Zm4-1.333-2,.6665V5.7207l2,.6665Zm2-.667V7.0542L25.8379,9Z"})),tE||(tE=tM.createElement("path",{d:"M20,22a4,4,0,0,0-8,0h2a2,2,0,1,1,2,2H8v2h8A4.0045,4.0045,0,0,0,20,22Z"})),tj||(tj=tM.createElement("path",{d:"M26,22a4.0045,4.0045,0,0,0-4,4h2a2,2,0,1,1,2,2H12v2H26a4,4,0,0,0,0-8Z"})),n)}),ic=n(52322);function id(e){let{size:t=24}=e;return(0,ic.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",children:(0,ic.jsx)("path",{d:"M464 64C490.5 64 512 85.49 512 112V176C512 202.5 490.5 224 464 224H48C21.49 224 0 202.5 0 176V112C0 85.49 21.49 64 48 64H464zM448 128H320V160H448V128zM464 288C490.5 288 512 309.5 512 336V400C512 426.5 490.5 448 464 448H48C21.49 448 0 426.5 0 400V336C0 309.5 21.49 288 48 288H464zM192 352V384H448V352H192z"})})}function ih(e){let{size:t=24,className:n}=e;return(0,ic.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:n,fill:"currentColor",viewBox:"0 0 384 512",children:(0,ic.jsx)("path",{d:"M256 0v128h128L256 0zM224 128L224 0H48C21.49 0 0 21.49 0 48v416C0 490.5 21.49 512 48 512h288c26.51 0 48-21.49 48-48V160h-127.1C238.3 160 224 145.7 224 128zM64 72C64 67.63 67.63 64 72 64h80C156.4 64 160 67.63 160 72v16C160 92.38 156.4 96 152 96h-80C67.63 96 64 92.38 64 88V72zM64 136C64 131.6 67.63 128 72 128h80C156.4 128 160 131.6 160 136v16C160 156.4 156.4 160 152 160h-80C67.63 160 64 156.4 64 152V136zM304 384c8.875 0 16 7.125 16 16S312.9 416 304 416h-47.25c-16.38 0-31.25-9.125-38.63-23.88c-2.875-5.875-8-6.5-10.12-6.5s-7.25 .625-10 6.125l-7.75 15.38C187.6 412.6 181.1 416 176 416H174.9c-6.5-.5-12-4.75-14-11L144 354.6L133.4 386.5C127.5 404.1 111 416 92.38 416H80C71.13 416 64 408.9 64 400S71.13 384 80 384h12.38c4.875 0 9.125-3.125 10.62-7.625l18.25-54.63C124.5 311.9 133.6 305.3 144 305.3s19.5 6.625 22.75 16.5l13.88 41.63c19.75-16.25 54.13-9.75 66 14.12c2 4 6 6.5 10.12 6.5H304z"})})}function ip(e){let{size:t=24,className:n}=e;return(0,ic.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",className:n,children:(0,ic.jsx)("path",{d:"M464 288h-416C21.5 288 0 309.5 0 336v96C0 458.5 21.5 480 48 480h416c26.5 0 48-21.5 48-48v-96C512 309.5 490.5 288 464 288zM320 416c-17.62 0-32-14.38-32-32s14.38-32 32-32s32 14.38 32 32S337.6 416 320 416zM416 416c-17.62 0-32-14.38-32-32s14.38-32 32-32s32 14.38 32 32S433.6 416 416 416zM464 32h-416C21.5 32 0 53.5 0 80v192.4C13.41 262.3 29.92 256 48 256h416c18.08 0 34.59 6.254 48 16.41V80C512 53.5 490.5 32 464 32z"})})}function im(e){let{size:t=24,className:n}=e;return(0,ic.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,className:n,fill:"currentColor",viewBox:"0 0 512 512",children:(0,ic.jsx)("path",{d:"M448 32C465.7 32 480 46.33 480 64C480 81.67 465.7 96 448 96H80C71.16 96 64 103.2 64 112C64 120.8 71.16 128 80 128H448C483.3 128 512 156.7 512 192V416C512 451.3 483.3 480 448 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H448zM416 336C433.7 336 448 321.7 448 304C448 286.3 433.7 272 416 272C398.3 272 384 286.3 384 304C384 321.7 398.3 336 416 336z"})})}function iv(e){let{size:t=24}=e;return(0,ic.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ic.jsx)("path",{d:"M80 192V144C80 64.47 144.5 0 224 0C303.5 0 368 64.47 368 144V192H384C419.3 192 448 220.7 448 256V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V256C0 220.7 28.65 192 64 192H80zM144 192H304V144C304 99.82 268.2 64 224 64C179.8 64 144 99.82 144 144V192z"})})}function ig(e){let{size:t=24}=e;return(0,ic.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 576 512",children:(0,ic.jsx)("path",{d:"M575.8 255.5C575.8 273.5 560.8 287.6 543.8 287.6H511.8L512.5 447.7C512.5 450.5 512.3 453.1 512 455.8V472C512 494.1 494.1 512 472 512H456C454.9 512 453.8 511.1 452.7 511.9C451.3 511.1 449.9 512 448.5 512H392C369.9 512 352 494.1 352 472V384C352 366.3 337.7 352 320 352H256C238.3 352 224 366.3 224 384V472C224 494.1 206.1 512 184 512H128.1C126.6 512 125.1 511.9 123.6 511.8C122.4 511.9 121.2 512 120 512H104C81.91 512 64 494.1 64 472V360C64 359.1 64.03 358.1 64.09 357.2V287.6H32.05C14.02 287.6 0 273.5 0 255.5C0 246.5 3.004 238.5 10.01 231.5L266.4 8.016C273.4 1.002 281.4 0 288.4 0C295.4 0 303.4 2.004 309.5 7.014L564.8 231.5C572.8 238.5 576.9 246.5 575.8 255.5L575.8 255.5z"})})}function iy(e){let{size:t=24}=e;return(0,ic.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ic.jsx)("path",{d:"M7.994 153.5c1.326 0 2.687 .3508 3.975 1.119L208 271.5v223.8c0 9.741-7.656 16.71-16.01 16.71c-2.688 0-5.449-.7212-8.05-2.303l-152.2-92.47C12.13 405.3 0 383.3 0 359.5v-197.7C0 156.1 3.817 153.5 7.994 153.5zM426.2 117.2c0 2.825-1.352 5.647-4.051 7.248L224 242.6L25.88 124.4C23.19 122.8 21.85 119.1 21.85 117.2c0-2.8 1.32-5.603 3.965-7.221l165.1-100.9C201.7 3.023 212.9 0 224 0s22.27 3.023 32.22 9.07l165.1 100.9C424.8 111.6 426.2 114.4 426.2 117.2zM440 153.5C444.2 153.5 448 156.1 448 161.8v197.7c0 23.75-12.12 45.75-31.78 57.69l-152.2 92.5C261.5 511.3 258.7 512 256 512C247.7 512 240 505 240 495.3V271.5l196-116.9C437.3 153.8 438.7 153.5 440 153.5z"})})}function ib(e){let{size:t=24}=e;return(0,ic.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:t,height:t,fill:"currentColor",children:(0,ic.jsx)("path",{d:"M495.9 166.6C499.2 175.2 496.4 184.9 489.6 191.2L446.3 230.6C447.4 238.9 448 247.4 448 256C448 264.6 447.4 273.1 446.3 281.4L489.6 320.8C496.4 327.1 499.2 336.8 495.9 345.4C491.5 357.3 486.2 368.8 480.2 379.7L475.5 387.8C468.9 398.8 461.5 409.2 453.4 419.1C447.4 426.2 437.7 428.7 428.9 425.9L373.2 408.1C359.8 418.4 344.1 427 329.2 433.6L316.7 490.7C314.7 499.7 307.7 506.1 298.5 508.5C284.7 510.8 270.5 512 255.1 512C241.5 512 227.3 510.8 213.5 508.5C204.3 506.1 197.3 499.7 195.3 490.7L182.8 433.6C167 427 152.2 418.4 138.8 408.1L83.14 425.9C74.3 428.7 64.55 426.2 58.63 419.1C50.52 409.2 43.12 398.8 36.52 387.8L31.84 379.7C25.77 368.8 20.49 357.3 16.06 345.4C12.82 336.8 15.55 327.1 22.41 320.8L65.67 281.4C64.57 273.1 64 264.6 64 256C64 247.4 64.57 238.9 65.67 230.6L22.41 191.2C15.55 184.9 12.82 175.3 16.06 166.6C20.49 154.7 25.78 143.2 31.84 132.3L36.51 124.2C43.12 113.2 50.52 102.8 58.63 92.95C64.55 85.8 74.3 83.32 83.14 86.14L138.8 103.9C152.2 93.56 167 84.96 182.8 78.43L195.3 21.33C197.3 12.25 204.3 5.04 213.5 3.51C227.3 1.201 241.5 0 256 0C270.5 0 284.7 1.201 298.5 3.51C307.7 5.04 314.7 12.25 316.7 21.33L329.2 78.43C344.1 84.96 359.8 93.56 373.2 103.9L428.9 86.14C437.7 83.32 447.4 85.8 453.4 92.95C461.5 102.8 468.9 113.2 475.5 124.2L480.2 132.3C486.2 143.2 491.5 154.7 495.9 166.6V166.6zM256 336C300.2 336 336 300.2 336 255.1C336 211.8 300.2 175.1 256 175.1C211.8 175.1 176 211.8 176 255.1C176 300.2 211.8 336 256 336z"})})}function ix(e){let{size:t=24}=e;return(0,ic.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,width:t,fill:"currentColor",children:(0,ic.jsx)("path",{d:"M64 480H448c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H298.5c-17 0-33.3-6.7-45.3-18.7L226.7 50.7c-12-12-28.3-18.7-45.3-18.7H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64z"})})}function iw(e){let{size:t=24}=e;return(0,ic.jsxs)("svg",{version:"1.1",id:"icon",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:t,height:t,fill:"currentColor",viewBox:"0 0 32 32",children:[(0,ic.jsx)("polygon",{points:"23,9.2 20.4,6.6 19,8 23,12 30,5 28.6,3.6 "}),(0,ic.jsx)("polygon",{points:"12,5.4 10.6,4 8,6.6 5.4,4 4,5.4 6.6,8 4,10.6 5.4,12 8,9.4 10.6,12 12,10.6 9.4,8 "}),(0,ic.jsx)("polygon",{points:"12,21.4 10.6,20 8,22.6 5.4,20 4,21.4 6.6,24 4,26.6 5.4,28 8,25.4 10.6,28 12,26.6 9.4,24 "}),(0,ic.jsx)("polygon",{points:"17,15 17,2 15,2 15,15 2,15 2,17 15,17 15,30 17,30 17,17 30,17 30,15 "}),(0,ic.jsx)("rect",{fill:"none",width:"32",height:"32"})]})}function iE(e){let{size:t=24}=e;return(0,ic.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ic.jsx)("path",{d:"M224 0c-17.7 0-32 14.3-32 32V51.2C119 66 64 130.6 64 208v18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416H416c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8V208c0-77.4-55-142-128-156.8V32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3H224 160c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"})})}},9455:function(e,t,n){"use strict";n.d(t,{BW:function(){return i}});var r=n(95753);function i(e){let{settings:t}=(0,r.Hv)();return(0,r.Nf)({api:"https://api.siacentral.com/v2",...e,route:"/market/exchange-rate?currencies=sc",disabled:(null==e?void 0:e.disabled)||!t.siaCentral})}},25205:function(e,t,n){"use strict";n.d(t,{Hz:function(){return u},Y:function(){return d},B$:function(){return a},xf:function(){return s},jr:function(){return S},pp:function(){return j},E6:function(){return k},Uz:function(){return l},BT:function(){return c},il:function(){return o},gU:function(){return w},vW:function(){return g},rN:function(){return x},yF:function(){return b},Vz:function(){return v},bc:function(){return y},S5:function(){return E},qN:function(){return p},ll:function(){return h}});var r=n(6391),i=n.n(r);function o(e){return new(i())(e).div(1024).div(1024)}function a(e){return new(i())(e).times(1024).times(1024)}function s(e){return new(i())(e).times(1e3).times(1e3).times(1e3).times(1e3)}function l(e){return new(i())(e).div(1e3).div(1e3).div(1e3)}function u(e){return new(i())(e).times(1e3).times(1e3).times(1e3)}function c(e){return new(i())(e).div(1e3).div(1e3)}function d(e){return new(i())(e).times(1e3).times(1e3)}r.BigNumber.config({EXPONENTIAL_AT:1e9}),r.BigNumber.config({DECIMAL_PLACES:30});let f=new r.BigNumber("10").exponentiatedBy(24);function h(e,t){return void 0!==t?new r.BigNumber(new r.BigNumber(e).dividedBy(f).toFixed(t)):new r.BigNumber(e).dividedBy(f)}function p(e){return new r.BigNumber(new r.BigNumber(e).times(f).toFixed(0))}let m={fixed:3,dynamicUnits:!0,hastingUnits:!1};function v(e,t){let{fixed:n,dynamicUnits:i,hastingUnits:o}={...m,...t},a=new r.BigNumber(1e12),s=new r.BigNumber(1e3),l=new r.BigNumber(e),u=new r.BigNumber(e).abs(),c=l.isNegative()?"-":"";if(!i)return"".concat(c).concat(h(u).toFormat(n)," SC");if(u.dividedBy(a).isLessThan(1))return o?"".concat(c).concat(u," H"):"".concat(c,"0 SC");let d=["pS","nS","uS","mS","SC","KS","MS","GS","TS"];for(let e=0;ee.multipliedBy(s),new r.BigNumber(1)),i=u.dividedBy(a.multipliedBy(t));if(i.isLessThan(s)||e===d.length-1)return"".concat(c).concat(i.toFormat(n)," ").concat(d[e])}return""}function g(e,t){let n="number"==typeof e?e:e instanceof i()?e.toNumber():Number(e),{fixed:r=2}=t||{};if(!n)return"0 B";if(n<1e3)return"".concat(n," B");let o=Math.floor(Math.log10(n)/Math.log10(1e3)),a=n/Math.pow(1e3,o);return a.toFixed(r)+" "+["B","KB","MB","GB","TB","PB","EB"][o]}function y(e){return 0===e?"0ms":(e/=1e6)<1e3?" ".concat(Math.floor(100*e)/100,"ms"):(e/=1e3)<60?"".concat(Math.floor(100*e)/100,"s"):"".concat(Math.floor(e/60*100)/100,"m")}function b(e,t){let{fixed:n=0,units:r="",abbreviated:o=!1}=t||{},a=new(i())(e||0);if(o){let e=a.toNumber();if(e<1e3)return a.toString();let t=["","K","M","B","t","q","Q","s","S","o","n","d","U","D"],i=Math.floor(Math.log10(e)/Math.log10(1e3)),o=e/Math.pow(1e3,i);return"".concat(o.toFixed(n)).concat(t[i]?" ".concat(t[i]):"").concat(r?" ".concat(r):"")}return"".concat(a.toFormat(n)).concat(r?" ".concat(r):"")}function x(e,t){let n;return n=navigator.language,new Intl.DateTimeFormat(n,{dateStyle:"short",...t}).format(new Date(e))}function w(e){return 144*e}function E(e){return 4320*e}function j(e){return e/16666666666666669e-22}function k(e){return e/4320}function S(e,t){return new Date().getTime()+j(t-e)}n(81395)},2271:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return o}});let n=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class r{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}}let i=globalThis.AsyncLocalStorage;function o(){return i?new i:new r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},26252:function(e,t,n){"use strict";function r(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return r}}),n(43219),n(2784),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55046:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return h},useSearchParams:function(){return p},usePathname:function(){return m},ServerInsertedHTMLContext:function(){return l.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return l.useServerInsertedHTML},useRouter:function(){return v},useParams:function(){return g},useSelectedLayoutSegments:function(){return y},useSelectedLayoutSegment:function(){return b},redirect:function(){return u.redirect},permanentRedirect:function(){return u.permanentRedirect},RedirectType:function(){return u.RedirectType},notFound:function(){return c.notFound}});let r=n(2784),i=n(60587),o=n(58839),a=n(26252),s=n(4424),l=n(44673),u=n(75903),c=n(47067),d=Symbol("internal for urlsearchparams readonly");function f(){return Error("ReadonlyURLSearchParams cannot be modified")}class h{[Symbol.iterator](){return this[d][Symbol.iterator]()}append(){throw f()}delete(){throw f()}set(){throw f()}sort(){throw f()}constructor(e){this[d]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e),this.size=e.size}}function p(){(0,a.clientHookInServerComponentError)("useSearchParams");let e=(0,r.useContext)(o.SearchParamsContext),t=(0,r.useMemo)(()=>e?new h(e):null,[e]);return t}function m(){return(0,a.clientHookInServerComponentError)("usePathname"),(0,r.useContext)(o.PathnameContext)}function v(){(0,a.clientHookInServerComponentError)("useRouter");let e=(0,r.useContext)(i.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function g(){(0,a.clientHookInServerComponentError)("useParams");let e=(0,r.useContext)(i.GlobalLayoutRouterContext),t=(0,r.useContext)(o.PathParamsContext);return e?function e(t,n){void 0===n&&(n={});let r=t[1];for(let t of Object.values(r)){let r=t[0],i=Array.isArray(r),o=i?r[1]:r;if(!o||o.startsWith("__PAGE__"))continue;let a=i&&("c"===r[2]||"oc"===r[2]);a?n[r[0]]=r[1].split("/"):i&&(n[r[0]]=r[1]),n=e(t,n)}return n}(e.tree):t}function y(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,r.useContext)(i.LayoutRouterContext);return function e(t,n,r,i){let o;if(void 0===r&&(r=!0),void 0===i&&(i=[]),r)o=t[1][n];else{var a;let e=t[1];o=null!=(a=e.children)?a:Object.values(e)[0]}if(!o)return i;let l=o[0],u=(0,s.getSegmentValue)(l);return!u||u.startsWith("__PAGE__")?i:(i.push(u),e(o,n,!1,i))}(t,e)}function b(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=y(e);return 0===t.length?null:t[0]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},47067:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{notFound:function(){return r},isNotFoundError:function(){return i}});let n="NEXT_NOT_FOUND";function r(){let e=Error(n);throw e.digest=n,e}function i(e){return(null==e?void 0:e.digest)===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75903:function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return r},getRedirectError:function(){return s},redirect:function(){return l},permanentRedirect:function(){return u},isRedirectError:function(){return c},getURLFromRedirectError:function(){return d},getRedirectTypeFromError:function(){return f}});let o=n(7552),a="NEXT_REDIRECT";function s(e,t,n){void 0===n&&(n=!1);let r=Error(a);r.digest=a+";"+t+";"+e+";"+n;let i=o.requestAsyncStorage.getStore();return i&&(r.mutableCookies=i.mutableCookies),r}function l(e,t){throw void 0===t&&(t="replace"),s(e,t,!1)}function u(e,t){throw void 0===t&&(t="replace"),s(e,t,!0)}function c(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,n,r,i]=e.digest.split(";",4);return t===a&&("replace"===n||"push"===n)&&"string"==typeof r&&("true"===i||"false"===i)}function d(e){return c(e)?e.digest.split(";",3)[2]:null}function f(e){if(!c(e))throw Error("Not a redirect error");return e.digest.split(";",3)[1]}(i=r||(r={})).push="push",i.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7552:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return i}});let r=n(2271),i=(0,r.createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4424:function(e,t){"use strict";function n(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},23116:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PrefetchKind:function(){return n},ACTION_REFRESH:function(){return i},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return s},ACTION_PREFETCH:function(){return l},ACTION_FAST_REFRESH:function(){return u},ACTION_SERVER_ACTION:function(){return c}});let i="refresh",o="navigate",a="restore",s="server-patch",l="prefetch",u="fast-refresh",c="server-action";(r=n||(n={})).AUTO="auto",r.FULL="full",r.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25146:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(67858),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},80920:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return y}});let r=n(43219),i=n(16794),o=i._(n(2784)),a=r._(n(28316)),s=r._(n(37412)),l=n(31918),u=n(97686),c=n(45802);n(84759);let d=n(54365),f=r._(n(2088)),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function p(e,t,n,r,i,o){let a=null==e?void 0:e.src;if(!e||e["data-loaded-src"]===a)return;e["data-loaded-src"]=a;let s="decode"in e?e.decode():Promise.resolve();s.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,i=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}})}function m(e){let[t,n]=o.version.split("."),r=parseInt(t,10),i=parseInt(n,10);return r>18||18===r&&i>=3?{fetchPriority:e}:{fetchpriority:e}}let v=(0,o.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:i,height:a,width:s,decoding:l,className:u,style:c,fetchPriority:d,placeholder:f,loading:h,unoptimized:v,fill:g,onLoadRef:y,onLoadingCompleteRef:b,setBlurComplete:x,setShowAltText:w,onLoad:E,onError:j,...k}=e;return o.default.createElement("img",{...k,...m(d),loading:h,width:s,height:a,decoding:l,"data-nimg":g?"fill":"1",className:u,style:c,sizes:i,srcSet:r,src:n,ref:(0,o.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(j&&(e.src=e.src),e.complete&&p(e,f,y,b,x,v))},[n,f,y,b,x,j,v,t]),onLoad:e=>{let t=e.currentTarget;p(t,f,y,b,x,v)},onError:e=>{w(!0),"empty"!==f&&x(!0),j&&j(e)}})});function g(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...m(n.fetchPriority)};return t&&a.default.preload?(a.default.preload(n.src,r),null):o.default.createElement(s.default,null,o.default.createElement("link",{key:"__nimg-"+n.src+n.srcSet+n.sizes,rel:"preload",href:n.srcSet?void 0:n.src,...r}))}let y=(0,o.forwardRef)((e,t)=>{let n=(0,o.useContext)(d.RouterContext),r=(0,o.useContext)(c.ImageConfigContext),i=(0,o.useMemo)(()=>{let e=h||r||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[r]),{onLoad:a,onLoadingComplete:s}=e,p=(0,o.useRef)(a);(0,o.useEffect)(()=>{p.current=a},[a]);let m=(0,o.useRef)(s);(0,o.useEffect)(()=>{m.current=s},[s]);let[y,b]=(0,o.useState)(!1),[x,w]=(0,o.useState)(!1),{props:E,meta:j}=(0,l.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:y,showAltText:x});return o.default.createElement(o.default.Fragment,null,o.default.createElement(v,{...E,unoptimized:j.unoptimized,placeholder:j.placeholder,fill:j.fill,onLoadRef:p,onLoadingCompleteRef:m,setBlurComplete:b,setShowAltText:w,ref:t}),j.priority?o.default.createElement(g,{isAppRouter:!n,imgAttributes:E}):null)});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},13814:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});let r=n(43219),i=r._(n(2784)),o=n(31068),a=n(33134),s=n(39585),l=n(51570),u=n(19868),c=n(54365),d=n(60587),f=n(93629),h=n(25146),p=n(10694),m=n(23116),v=new Set;function g(e,t,n,r,i,o){if(!o&&!(0,a.isLocalURL)(t))return;if(!r.bypassPrefetchedCheck){let i=void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0,o=t+"%"+n+"%"+i;if(v.has(o))return;v.add(o)}let s=o?e.prefetch(t,i):e.prefetch(t,n,r);Promise.resolve(s).catch(e=>{})}function y(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let b=i.default.forwardRef(function(e,t){let n,r;let{href:s,as:v,children:b,prefetch:x=null,passHref:w,replace:E,shallow:j,scroll:k,locale:S,onClick:O,onMouseEnter:_,onTouchStart:C,legacyBehavior:M=!1,...A}=e;n=b,M&&("string"==typeof n||"number"==typeof n)&&(n=i.default.createElement("a",null,n));let T=i.default.useContext(c.RouterContext),P=i.default.useContext(d.AppRouterContext),N=null!=T?T:P,R=!T,D=!1!==x,Z=null===x?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,{href:L,as:F}=i.default.useMemo(()=>{if(!T){let e=y(s);return{href:e,as:v?y(v):e}}let[e,t]=(0,o.resolveHref)(T,s,!0);return{href:e,as:v?(0,o.resolveHref)(T,v):t||e}},[T,s,v]),z=i.default.useRef(L),V=i.default.useRef(F);M&&(r=i.default.Children.only(n));let I=M?r&&"object"==typeof r&&r.ref:t,[B,H,U]=(0,f.useIntersection)({rootMargin:"200px"}),W=i.default.useCallback(e=>{(V.current!==F||z.current!==L)&&(U(),V.current=F,z.current=L),B(e),I&&("function"==typeof I?I(e):"object"==typeof I&&(I.current=e))},[F,I,L,U,B]);i.default.useEffect(()=>{N&&H&&D&&g(N,L,F,{locale:S},{kind:Z},R)},[F,L,H,S,D,null==T?void 0:T.locale,N,R,Z]);let q={ref:W,onClick(e){M||"function"!=typeof O||O(e),M&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),N&&!e.defaultPrevented&&function(e,t,n,r,o,s,l,u,c,d){let{nodeName:f}=e.currentTarget,h="A"===f.toUpperCase();if(h&&(function(e){let t=e.currentTarget,n=t.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let p=()=>{let e=null==l||l;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:s,locale:u,scroll:e}):t[o?"replace":"push"](r||n,{forceOptimisticNavigation:!d,scroll:e})};c?i.default.startTransition(p):p()}(e,N,L,F,E,j,k,S,R,D)},onMouseEnter(e){M||"function"!=typeof _||_(e),M&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),N&&(D||!R)&&g(N,L,F,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:Z},R)},onTouchStart(e){M||"function"!=typeof C||C(e),M&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),N&&(D||!R)&&g(N,L,F,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:Z},R)}};if((0,l.isAbsoluteUrl)(F))q.href=F;else if(!M||w||"a"===r.type&&!("href"in r.props)){let e=void 0!==S?S:null==T?void 0:T.locale,t=(null==T?void 0:T.isLocaleDomain)&&(0,h.getDomainLocale)(F,e,null==T?void 0:T.locales,null==T?void 0:T.domainLocales);q.href=t||(0,p.addBasePath)((0,u.addLocale)(F,e,null==T?void 0:T.defaultLocale))}return M?i.default.cloneElement(r,q):i.default.createElement("a",{...A,...q},n)}),x=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93629:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(2784),i=n(30857),o="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,u=l||!o,[c,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),h=(0,r.useCallback)(e=>{f.current=e},[]);(0,r.useEffect)(()=>{if(o){if(u||c)return;let e=f.current;if(e&&e.tagName){let r=function(e,t,n){let{id:r,observer:i,elements:o}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let i=new Map,o=new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:o,elements:i},s.push(n),a.set(n,t),t}(n);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n});return r}}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,n,t,c,f.current]);let p=(0,r.useCallback)(()=>{d(!1)},[]);return[h,c,p]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},31918:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),n(84759);let r=n(69933),i=n(97686);function o(e){return void 0!==e.default}function a(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function s(e,t){var n;let s,l,u,{src:c,sizes:d,unoptimized:f=!1,priority:h=!1,loading:p,className:m,quality:v,width:g,height:y,fill:b=!1,style:x,onLoad:w,onLoadingComplete:E,placeholder:j="empty",blurDataURL:k,fetchPriority:S,layout:O,objectFit:_,objectPosition:C,lazyBoundary:M,lazyRoot:A,...T}=e,{imgConf:P,showAltText:N,blurComplete:R,defaultLoader:D}=t,Z=P||i.imageConfigDefault;if("allSizes"in Z)s=Z;else{let e=[...Z.deviceSizes,...Z.imageSizes].sort((e,t)=>e-t),t=Z.deviceSizes.sort((e,t)=>e-t);s={...Z,allSizes:e,deviceSizes:t}}let L=T.loader||D;delete T.loader,delete T.srcSet;let F="__next_img_default"in L;if(F){if("custom"===s.loader)throw Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=L;L=t=>{let{config:n,...r}=t;return e(r)}}if(O){"fill"===O&&(b=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[O];e&&(x={...x,...e});let t={responsive:"100vw",fill:"100vw"}[O];t&&!d&&(d=t)}let z="",V=a(g),I=a(y);if("object"==typeof(n=c)&&(o(n)||void 0!==n.src)){let e=o(c)?c.default:c;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(l=e.blurWidth,u=e.blurHeight,k=k||e.blurDataURL,z=e.src,!b){if(V||I){if(V&&!I){let t=V/e.width;I=Math.round(e.height*t)}else if(!V&&I){let t=I/e.height;V=Math.round(e.width*t)}}else V=e.width,I=e.height}}let B=!h&&("lazy"===p||void 0===p);(!(c="string"==typeof c?c:z)||c.startsWith("data:")||c.startsWith("blob:"))&&(f=!0,B=!1),s.unoptimized&&(f=!0),F&&c.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(f=!0),h&&(S="high");let H=a(v),U=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:_,objectPosition:C}:{},N?{}:{color:"transparent"},x),W=R||"empty"===j?null:"blur"===j?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:V,heightInt:I,blurWidth:l,blurHeight:u,blurDataURL:k||"",objectFit:U.objectFit})+'")':'url("'+j+'")',q=W?{backgroundSize:U.objectFit||"cover",backgroundPosition:U.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:W}:{},$=function(e){let{config:t,src:n,unoptimized:r,width:i,quality:o,sizes:a,loader:s}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,n){let{deviceSizes:r,allSizes:i}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:i,kind:"w"}}if("number"!=typeof t)return{widths:r,kind:"w"};let o=[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))];return{widths:o,kind:"x"}}(t,i,a),c=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((e,r)=>s({config:t,src:n,quality:o,width:e})+" "+("w"===u?e:r+1)+u).join(", "),src:s({config:t,src:n,quality:o,width:l[c]})}}({config:s,src:c,unoptimized:f,width:V,quality:H,sizes:d,loader:L}),Y={...T,loading:B?"lazy":p,fetchPriority:S,width:V,height:I,decoding:"async",className:m,style:{...U,...q},sizes:$.sizes,srcSet:$.srcSet,src:$.src},G={unoptimized:f,priority:h,placeholder:j,fill:b};return{props:Y,meta:G}}},69933:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:o,objectFit:a}=e,s=r?40*r:t,l=i?40*i:n,u=s&&l?"viewBox='0 0 "+s+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},81963:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return u},unstable_getImgProps:function(){return l}});let r=n(43219),i=n(31918),o=n(84759),a=n(80920),s=r._(n(2088)),l=e=>{(0,o.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:t}=(0,i.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}},u=a.Image},2088:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:i}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},44673:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return a}});let r=n(16794),i=r._(n(2784)),o=i.default.createContext(null);function a(e){let t=(0,i.useContext)(o);t&&t(e)}},37832:function(){},49854:function(e){e.exports={style:{fontFamily:"'__IBM_Plex_Mono_355ef5', '__IBM_Plex_Mono_Fallback_355ef5'"},className:"__className_355ef5",variable:"__variable_355ef5"}},1240:function(e){e.exports={style:{fontFamily:"'__IBM_Plex_Sans_829fdc', '__IBM_Plex_Sans_Fallback_829fdc'"},className:"__className_829fdc",variable:"__variable_829fdc"}},97729:function(e,t,n){e.exports=n(37412)},96577:function(e,t,n){e.exports=n(81963)},39097:function(e,t,n){e.exports=n(13814)},82876:function(e,t,n){e.exports=n(55046)},5632:function(e,t,n){e.exports=n(60222)},24470:function(e){var t=String,n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}};e.exports=n(),e.exports.createColors=n},34406:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c1)for(var n=1;n=this._maxSize&&this.clear(),!(e in this._values)&&this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,i=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new t(512),l=new t(512),u=new t(512);function c(e){return s.get(e)||s.set(e,d(e).map(function(e){return e.replace(a,"$2")}))}function d(e){return e.match(n)||[""]}function f(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}e.exports={Cache:t,split:d,normalizePath:c,setter:function(e){var t=c(e);return l.get(e)||l.set(e,function(e,n){for(var r=0,i=t.length,o=e;r>>7-e%8&1)==1},put:function(e,t){for(var n=0;n>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},81432:function(e){e.exports={L:1,M:0,Q:3,H:2}},84695:function(e,t,n){var r=n(35856);function i(e,t){if(void 0==e.length)throw Error(e.length+"/"+t);for(var n=0;n=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=l.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},u.setupPositionProbePattern=function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1)&&!(this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4?this.modules[e+n][t+r]=!0:this.modules[e+n][t+r]=!1)},u.getBestMaskPattern=function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=a.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t},u.createMovieClip=function(e,t,n){var r=e.createEmptyMovieClip(t,n);this.make();for(var i=0;i>n&1)==1;this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(var n=0;n<18;n++){var r=!e&&(t>>n&1)==1;this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},u.setupTypeInfo=function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=a.getBCHTypeInfo(n),i=0;i<15;i++){var o=!e&&(r>>i&1)==1;i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(var i=0;i<15;i++){var o=!e&&(r>>i&1)==1;i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o}this.modules[this.moduleCount-8][8]=!e},u.mapData=function(e,t){for(var n=-1,r=this.moduleCount-1,i=7,o=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var l=0;l<2;l++)if(null==this.modules[r][s-l]){var u=!1;o>>i&1)==1),a.getMask(t,r,s-l)&&(u=!u),this.modules[r][s-l]=u,-1==--i&&(o++,i=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}},l.PAD0=236,l.PAD1=17,l.createData=function(e,t,n){for(var r=i.getRSBlocks(e,t),s=new o,u=0;u8*d)throw Error("code length overflow. ("+s.getLengthInBits()+">"+8*d+")");for(s.getLengthInBits()+4<=8*d&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*d)&&(s.put(l.PAD0,8),!(s.getLengthInBits()>=8*d));)s.put(l.PAD1,8);return l.createBytes(s,r)},l.createBytes=function(e,t){for(var n=0,r=0,i=0,o=Array(t.length),l=Array(t.length),u=0;u=0?p.get(m):0}}for(var v=0,f=0;f=256;)e-=255;return t.EXP_TABLE[e]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},n=0;n<8;n++)t.EXP_TABLE[n]=1<=0;)t^=s.G15<=0;)t^=s.G18<>>=1;return t},getPatternPosition:function(e){return s.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case a.PATTERN000:return(t+n)%2==0;case a.PATTERN001:return t%2==0;case a.PATTERN010:return n%3==0;case a.PATTERN011:return(t+n)%3==0;case a.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case a.PATTERN101:return t*n%2+t*n%3==0;case a.PATTERN110:return(t*n%2+t*n%3)%2==0;case a.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new i([1],0),n=0;n5&&(n+=3+o-5)}for(var r=0;r=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","size","title","xmlns"]);return o.default.createElement("svg",r({},s,{height:n,width:n,xmlns:a}),i?o.default.createElement("title",null,i):null,t)};l.propTypes=s,l.defaultProps={title:void 0,xmlns:"http://www.w3.org/2000/svg"},t.default=l},38001:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["bgColor","fgColor","level","size","value"]),h=new i.default(-1,o.default[a]);h.addData(d),h.make();var p=h.modules,m=s/p.length;return l.default.createElement(c.default,r({},f,{size:s}),p.map(function(e,r){return e.map(function(e,i){var o=Math.round(i*m),a=Math.round(r*m),s=Math.round((i+1)*m)-o,c=Math.round((r+1)*m)-a;return l.default.createElement(u.default,{key:"rectangle-"+r+"-"+i,d:"M 0 0 L "+s+" 0 L "+s+" "+c+" L 0 "+c+" Z",fill:e?n:t,transformX:o,transformY:a})})}))};h.propTypes=f,h.defaultProps={bgColor:"#FFFFFF",fgColor:"#000000",level:"L",size:256},t.Z=(0,s.memo)(h)},70506:function(e,t,n){"use strict";n.d(t,{Z:function(){return H}});var r,i,o,a,s,l,u=n(22970),c=n(2784),d="right-scroll-bar-position",f="width-before-scroll-bar",h=(void 0===r&&(r={}),(void 0===i&&(i=function(e){return e}),o=[],a=!1,s={read:function(){if(a)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:null},useMedium:function(e){var t=i(e,a);return o.push(t),function(){o=o.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(a=!0;o.length;){var t=o;o=[],t.forEach(e)}o={push:function(t){return e(t)},filter:function(){return o}}},assignMedium:function(e){a=!0;var t=[];if(o.length){var n=o;o=[],n.forEach(e),t=o}var r=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(r)};i(),o={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),o}}}}).options=(0,u.pi)({async:!0,ssr:!1},r),s),p=function(){},m=c.forwardRef(function(e,t){var n,r,i,o=c.useRef(null),a=c.useState({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:p}),s=a[0],l=a[1],d=e.forwardProps,f=e.children,m=e.className,v=e.removeScrollBar,g=e.enabled,y=e.shards,b=e.sideCar,x=e.noIsolation,w=e.inert,E=e.allowPinchZoom,j=e.as,k=void 0===j?"div":j,S=(0,u._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),O=(n=[o,t],r=function(e){return n.forEach(function(t){return"function"==typeof t?t(e):t&&(t.current=e),t})},(i=(0,c.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,i.facade),_=(0,u.pi)((0,u.pi)({},S),s);return c.createElement(c.Fragment,null,g&&c.createElement(b,{sideCar:h,removeScrollBar:v,shards:y,noIsolation:x,inert:w,setCallbacks:l,allowPinchZoom:!!E,lockRef:o}),d?c.cloneElement(c.Children.only(f),(0,u.pi)((0,u.pi)({},_),{ref:O})):c.createElement(k,(0,u.pi)({},_,{className:m,ref:O}),f))});m.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},m.classNames={fullWidth:f,zeroRight:d};var v=function(e){var t=e.sideCar,n=(0,u._T)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return c.createElement(r,(0,u.pi)({},n))};v.isSideCarExport=!0;var g=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=l||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},y=function(){var e=g();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},b=function(){var e=y();return function(t){return e(t.styles,t.dynamic),null}},x={left:0,top:0,right:0,gap:0},w=function(e){return parseInt(e||"",10)||0},E=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[w(n),w(r),w(i)]},j=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return x;var t=E(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},k=b(),S=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(d," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(f," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(d," .").concat(d," {\n right: 0 ").concat(r,";\n }\n \n .").concat(f," .").concat(f," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},O=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r,o=c.useMemo(function(){return j(i)},[i]);return c.createElement(k,{styles:S(o,!t,i,n?"":"!important")})},_=!1;if("undefined"!=typeof window)try{var C=Object.defineProperty({},"passive",{get:function(){return _=!0,!0}});window.addEventListener("test",C,C),window.removeEventListener("test",C,C)}catch(e){_=!1}var M=!!_&&{passive:!1},A=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)},T=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)},P=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),N(e,n)){var r=R(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},N=function(e,t){return"v"===e?A(t):T(t)},R=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},D=function(e,t,n,r,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*r,l=n.target,u=t.contains(l),c=!1,d=s>0,f=0,h=0;do{var p=R(e,l),m=p[0],v=p[1]-p[2]-a*m;(m||v)&&N(e,l)&&(f+=v,h+=m),l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&0===f||!i&&s>f)?c=!0:!d&&(i&&0===h||!i&&-s>h)&&(c=!0),c},Z=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},L=function(e){return[e.deltaX,e.deltaY]},F=function(e){return e&&"current"in e?e.current:e},z=0,V=[],I=(h.useMedium(function(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),i=c.useState(z++)[0],o=c.useState(function(){return b()})[0],a=c.useRef(e);c.useEffect(function(){a.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,u.ev)([e.lockRef.current],(e.shards||[]).map(F),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=c.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var i,o=Z(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-o[0],u="deltaY"in e?e.deltaY:s[1]-o[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=P(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=P(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var h=r.current||i;return D(h,t,e,"h"===h?l:u,!0)},[]),l=c.useCallback(function(e){if(V.length&&V[V.length-1]===o){var n="deltaY"in e?L(e):Z(e),r=t.current.filter(function(t){var r;return t.name===e.type&&t.target===e.target&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.preventDefault();return}if(!r){var i=(a.current.shards||[]).map(F).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!a.current.noIsolation)&&e.preventDefault()}}},[]),d=c.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),f=c.useCallback(function(e){n.current=Z(e),r.current=void 0},[]),h=c.useCallback(function(t){d(t.type,L(t),t.target,s(t,e.lockRef.current))},[]),p=c.useCallback(function(t){d(t.type,Z(t),t.target,s(t,e.lockRef.current))},[]);c.useEffect(function(){return V.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",l,M),document.addEventListener("touchmove",l,M),document.addEventListener("touchstart",f,M),function(){V=V.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,M),document.removeEventListener("touchmove",l,M),document.removeEventListener("touchstart",f,M)}},[]);var m=e.removeScrollBar,v=e.inert;return c.createElement(c.Fragment,null,v?c.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,m?c.createElement(O,{gapMode:"margin"}):null)}),v),B=c.forwardRef(function(e,t){return c.createElement(m,(0,u.pi)({},e,{ref:t,sideCar:I}))});B.classNames=m.classNames;var H=B},32718:function(e,t,n){var r,i=n(58085),o=n(41964),a=n(53207),s=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;e.exports=function(e,t){return r=0,t=Math.pow(10,void 0===t?5:t),o(e=e.replace(/\n+/g," "),/((?:\-[a-z]+\-)?calc)\(/,function e(n,o,l){if(r++>100)throw r=0,Error("Call stack overflow for "+l);if(""===n)throw Error(o+"(): '"+l+"' must contain a non-whitespace string");var u,c=function(e){for(var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,i=r.exec(e);i;)i&&i[1]&&(-1===n.indexOf(i[1].toLowerCase())&&(t.push(i[1]),n.push(i[1].toLowerCase())),i=r.exec(e));return t}(n=function(t,n){t=t.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var r,o="",a=t;r=s.exec(a);){r[0].index>0&&(o+=a.substring(0,r[0].index));var l=i("(",")",a.substring([0].index));if(""===l.body)throw Error("'"+t+"' must contain a non-whitespace string");var u=e(l.body,"",n);o+=l.pre+u,a=l.post}return o+a}(n,l));if(c.length>1||n.indexOf("var(")>-1)return o+"("+n+")";var d=c[0]||"";"%"===d&&(n=n.replace(/\b[0-9\.]+%/g,function(e){return .01*parseFloat(e.slice(0,-1))}));var f=n.replace(RegExp(d,"gi"),"");try{u=a.eval(f)}catch(e){return o+"("+n+")"}return"%"===d&&(u*=100),(o.length||"%"===d)&&(u=Math.round(u*t)/t),u+=d})}},58085:function(e){function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var o=r(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,o,a,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){for(r=[],o=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(s=[o,a])}return s}e.exports=t,t.range=r},41964:function(e,t,n){var r=n(82294);e.exports=function e(t,n,i){return(function(e,t){var n=[],i="string"==typeof t?RegExp("\\b("+t+")\\("):t;do{var o=i.exec(e);if(!o)break;if(void 0===o[1])throw Error("Missing the first couple of parenthesis to get the function identifier in "+t);var a=o[1],s=o.index,l=r("(",")",e.substring(s));if(!l||l.start!==o[0].length-1)throw SyntaxError(a+"(): missing closing ')' in the value '"+e+"'");n.push({matches:l,functionIdentifier:a}),e=l.post}while(i.test(e));return n})(t,n).reduce(function(r,o){var a,s;return r.replace(o.functionIdentifier+"("+o.matches.body+")",(a=o.matches.body,s=o.functionIdentifier,i(e(a,n,i),s,t)))},t)}},6692:function(e,t,n){let r=n(83128);e.exports=(r.__esModule?r:{default:r}).default},83128:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:()=>a});let i=(r=n(37540))&&r.__esModule?r:{default:r};function o({version:e,from:t,to:n}){i.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${n}\`.`,"Update your configuration file to silence this warning."])}let a={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},get lightBlue(){return o({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return o({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return o({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return o({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return o({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}},37540:function(e,t,n){"use strict";var r,i=n(34406);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{dim:()=>l,default:()=>u});let o=(r=n(24470))&&r.__esModule?r:{default:r},a=new Set;function s(e,t,n){(void 0===i||!i.env.JEST_WORKER_ID)&&(n&&a.has(n)||(n&&a.add(n),console.warn(""),t.forEach(t=>console.warn(e,"-",t))))}function l(e){return o.default.dim(e)}let u={info(e,t){s(o.default.bold(o.default.cyan("info")),...Array.isArray(e)?[e]:[t,e])},warn(e,t){s(o.default.bold(o.default.yellow("warn")),...Array.isArray(e)?[e]:[t,e])},risk(e,t){s(o.default.bold(o.default.magenta("risk")),...Array.isArray(e)?[e]:[t,e])}}},95159:function(e){function t(e,t){var n=e.length,r=Array(n),i={},o=n,a=function(e){for(var t=new Map,n=0,r=e.length;n{},{isPersistent:!0,removeItem:()=>{}}];let l=null==t?void 0:t.serializer;return function(e,t,n=!0,l=function(e){return"undefined"===e?void 0:JSON.parse(e)},u=JSON.stringify){i.has(e)||void 0===t||null!==s(()=>localStorage.getItem(e))||s(()=>localStorage.setItem(e,u(t)));let c=(0,r.useRef)({item:null,parsed:t}),d=(0,r.useSyncExternalStore)((0,r.useCallback)(t=>{let n=n=>{e===n&&t()};return o.add(n),()=>{o.delete(n)}},[e]),()=>{var n;let r=null!==(n=s(()=>localStorage.getItem(e)))&&void 0!==n?n:null;if(i.has(e))c.current={item:r,parsed:i.get(e)};else if(r!==c.current.item){let e;try{e=null===r?t:l(r)}catch(n){e=t}c.current={item:r,parsed:e}}return c.current.parsed},()=>t),f=(0,r.useCallback)(t=>{let n=t instanceof Function?t(c.current.parsed):t;try{localStorage.setItem(e,u(n)),i.delete(e)}catch(t){i.set(e,n)}a(e)},[e,u]);return(0,r.useEffect)(()=>{if(!n)return;let t=t=>{t.storageArea===s(()=>localStorage)&&t.key===e&&a(e)};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)},[e,n]),(0,r.useMemo)(()=>[d,f,{isPersistent:d===t||!i.has(e),removeItem(){s(()=>localStorage.removeItem(e)),i.delete(e),a(e)}}],[e,f,d,t])}(e,n,null==t?void 0:t.storageSync,null==l?void 0:l.parse,null==l?void 0:l.stringify)}},20452:function(e,t,n){"use strict";/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var r=n(2784),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),a(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},43100:function(e,t,n){"use strict";e.exports=n(20452)},24511:function(e,t,n){"use strict";n.d(t,{Rx:function(){return Y},Ry:function(){return em},Z_:function(){return W}});try{v=Map}catch(e){}try{g=Set}catch(e){}function r(e){return function e(t,n,i){if(!t||"object"!=typeof t||"function"==typeof t)return t;if(t.nodeType&&"cloneNode"in t)return t.cloneNode(!0);if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);if(Array.isArray(t))return t.map(r);if(v&&t instanceof v)return new Map(Array.from(t.entries()));if(g&&t instanceof g)return new Set(Array.from(t.values()));if(t instanceof Object){n.push(t);var o=Object.create(t);for(var a in i.push(o),t){var s=n.findIndex(function(e){return e===t[a]});o[a]=s>-1?i[s]:e(t[a],n,i)}return o}return t}(e,[],[])}let i=Object.prototype.toString,o=Error.prototype.toString,a=RegExp.prototype.toString,s="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",l=/^Symbol\((.*)\)(.*)$/;function u(e,t=!1){if(null==e||!0===e||!1===e)return""+e;let n=typeof e;if("number"===n)return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e;if("string"===n)return t?`"${e}"`:e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return s.call(e).replace(l,"Symbol($1)");let r=i.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+o.call(e)+"]":"RegExp"===r?a.call(e):null}function c(e,t){let n=u(e,t);return null!==n?n:JSON.stringify(e,function(e,n){let r=u(this[e],t);return null!==r?r:n},2)}let d={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{let i=null!=r&&r!==n,o=`${e} must be a \`${t}\` type, but the final value was: \`${c(n,!0)}\``+(i?` (cast from the value \`${c(r,!0)}\`).`:".");return null===n&&(o+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),o},defined:"${path} must be defined"},f={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},h={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},p={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},m={noUnknown:"${path} field has unspecified keys: ${unknown}"};Object.assign(Object.create(null),{mixed:d,string:f,number:h,date:p,object:m,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:{isValue:"${path} field must be ${value}"}});var v,g,y=n(93352),b=n.n(y),x=e=>e&&e.__isYupSchema__,w=class{constructor(e,t){if(this.fn=void 0,this.refs=e,this.refs=e,"function"==typeof t){this.fn=t;return}if(!b()(t,"is"))throw TypeError("`is:` is required for `when()` conditions");if(!t.then&&!t.otherwise)throw TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:r,otherwise:i}=t,o="function"==typeof n?n:(...e)=>e.every(e=>e===n);this.fn=function(...e){let t=e.pop(),n=e.pop(),a=o(...e)?r:i;if(a)return"function"==typeof a?a(n):n.concat(a.resolve(t))}}resolve(e,t){let n=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),r=this.fn.apply(e,n.concat(e,t));if(void 0===r||r===e)return e;if(!x(r))throw TypeError("conditions must return a schema object");return r.resolve(t)}};function E(e){return null==e?[]:[].concat(e)}function j(){return(j=Object.assign||function(e){for(var t=1;tc(t[n])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,n,r){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],E(e).forEach(e=>{S.isError(e)?(this.errors.push(...e.errors),this.inner=this.inner.concat(e.inner.length?e.inner:e)):this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,S)}}let O=e=>{let t=!1;return(...n)=>{t||(t=!0,e(...n))}};function _(e,t){let{endEarly:n,tests:r,args:i,value:o,errors:a,sort:s,path:l}=e,u=O(t),c=r.length,d=[];if(a=a||[],!c)return a.length?u(new S(a,o,l)):u(null,o);for(let e=0;e=0||(i[n]=e[n]);return i}(t,["value","path","label","options","originalValue","sync"]),{name:d,test:f,params:h,message:p}=e,{parent:m,context:v}=s;function g(e){return P.isRef(e)?e.getValue(i,m,v):e}function y(e={}){let t=M()(N({value:i,originalValue:l,label:a,path:e.path||o},h,e.params),g),n=new S(S.formatError(e.message||p,t),i,t.path,e.type||d);return n.params=t,n}let b=N({path:o,parent:m,type:d,createError:y,resolve:g,options:s,originalValue:l},c);if(!u){try{Promise.resolve(f.call(b,i,b)).then(e=>{S.isError(e)?n(e):e?n(null,e):n(y())}).catch(n)}catch(e){n(e)}return}try{var x;if(r=f.call(b,i,b),"function"==typeof(null==(x=r)?void 0:x.then))throw Error(`Validation test of type: "${b.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(e){n(e);return}S.isError(r)?n(r):r?n(null,r):n(y())}return t.OPTIONS=e,t}P.prototype.__isYupRef=!0;let D=e=>e.substr(0,e.length-1).substr(1);class Z{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){let e=[];for(let t of this.list)e.push(t);for(let[,t]of this.refs)e.push(t.describe());return e}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(e){return this.toArray().reduce((t,n)=>t.concat(P.isRef(n)?e(n):n),[])}add(e){P.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){P.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){let e=new Z;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,t){let n=this.clone();return e.list.forEach(e=>n.add(e)),e.refs.forEach(e=>n.add(e)),t.list.forEach(e=>n.delete(e)),t.refs.forEach(e=>n.delete(e)),n}}function L(){return(L=Object.assign||function(e){for(var t=1;t{this.typeError(d.notType)}),this.type=(null==e?void 0:e.type)||"mixed",this.spec=L({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},null==e?void 0:e.spec)}get _type(){return this.type}_typeCheck(e){return!0}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;let t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeError=this._typeError,t._whitelistError=this._whitelistError,t._blacklistError=this._blacklistError,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.exclusiveTests=L({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=r(L({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=t,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=e.clone(),n=L({},this.spec,t.spec);return t.spec=n,t._typeError||(t._typeError=this._typeError),t._whitelistError||(t._whitelistError=this._whitelistError),t._blacklistError||(t._blacklistError=this._blacklistError),t._whitelist=this._whitelist.merge(e._whitelist,e._blacklist),t._blacklist=this._blacklist.merge(e._blacklist,e._whitelist),t.tests=this.tests,t.exclusiveTests=this.exclusiveTests,t.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),t.transforms=[...this.transforms,...t.transforms],t}isType(e){return!!this.spec.nullable&&null===e||this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let n=t.conditions;(t=t.clone()).conditions=[],t=(t=n.reduce((t,n)=>n.resolve(t,e),t)).resolve(e)}return t}cast(e,t={}){let n=this.resolve(L({value:e},t)),r=n._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==n.isType(r)){let i=c(e),o=c(r);throw TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${n._type}". + +attempted value: ${i} +`+(o!==i?`result of cast: ${o}`:""))}return r}_cast(e,t){let n=void 0===e?e:this.transforms.reduce((t,n)=>n.call(this,t,e,this),e);return void 0===n&&(n=this.getDefault()),n}_validate(e,t={},n){let{sync:r,path:i,from:o=[],originalValue:a=e,strict:s=this.spec.strict,abortEarly:l=this.spec.abortEarly}=t,u=e;s||(u=this._cast(u,L({assert:!1},t)));let c={value:u,path:i,options:t,originalValue:a,schema:this,label:this.spec.label,sync:r,from:o},d=[];this._typeError&&d.push(this._typeError);let f=[];this._whitelistError&&f.push(this._whitelistError),this._blacklistError&&f.push(this._blacklistError),_({args:c,value:u,path:i,sync:r,tests:d,endEarly:l},e=>{if(e)return void n(e,u);_({tests:this.tests.concat(f),args:c,path:i,sync:r,value:u,endEarly:l},n)})}validate(e,t,n){let r=this.resolve(L({},t,{value:e}));return"function"==typeof n?r._validate(e,t,n):new Promise((n,i)=>r._validate(e,t,(e,t)=>{e?i(e):n(t)}))}validateSync(e,t){let n;return this.resolve(L({},t,{value:e}))._validate(e,L({},t,{sync:!0}),(e,t)=>{if(e)throw e;n=t}),n}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(S.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(S.isError(e))return!1;throw e}}_getDefault(){let e=this.spec.default;return null==e?e:"function"==typeof e?e.call(this):r(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){return 0==arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){let t=this.clone();return t.spec.strict=e,t}_isPresent(e){return null!=e}defined(e=d.defined){return this.test({message:e,name:"defined",exclusive:!0,test:e=>void 0!==e})}required(e=d.required){return this.clone({presence:"required"}).withMutation(t=>t.test({message:e,name:"required",exclusive:!0,test(e){return this.schema._isPresent(e)}}))}notRequired(){let e=this.clone({presence:"optional"});return e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e}nullable(e=!0){return this.clone({nullable:!1!==e})}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(void 0===(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]}).message&&(t.message=d.default),"function"!=typeof t.test)throw TypeError("`test` is a required parameters");let n=this.clone(),r=R(t),i=t.exclusive||t.name&&!0===n.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(n.exclusiveTests[t.name]=!!t.exclusive),n.tests=n.tests.filter(e=>e.OPTIONS.name!==t.name||!i&&e.OPTIONS.test!==r.OPTIONS.test),n.tests.push(r),n}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let n=this.clone(),r=E(e).map(e=>new P(e));return r.forEach(e=>{e.isSibling&&n.deps.push(e.key)}),n.conditions.push(new w(r,t)),n}typeError(e){let t=this.clone();return t._typeError=R({message:e,name:"typeError",test(e){return!!(void 0===e||this.schema.isType(e))||this.createError({params:{type:this.schema._type}})}}),t}oneOf(e,t=d.oneOf){let n=this.clone();return e.forEach(e=>{n._whitelist.add(e),n._blacklist.delete(e)}),n._whitelistError=R({message:t,name:"oneOf",test(e){if(void 0===e)return!0;let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}notOneOf(e,t=d.notOneOf){let n=this.clone();return e.forEach(e=>{n._blacklist.add(e),n._whitelist.delete(e)}),n._blacklistError=R({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(){let e=this.clone(),{label:t,meta:n}=e.spec,r={meta:n,label:t,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map(e=>({name:e.OPTIONS.name,params:e.OPTIONS.params})).filter((e,t,n)=>n.findIndex(t=>t.name===e.name)===t)};return r}}for(let e of(F.prototype.__isYupSchema__=!0,["validate","validateSync"]))F.prototype[`${e}At`]=function(t,n,r={}){let{parent:i,parentPath:o,schema:a}=function(e,t,n,r=n){let i,o,a;return t?((0,A.forEach)(t,(s,l,u)=>{let c=l?D(s):s;if((e=e.resolve({context:r,parent:i,value:n})).innerType){let r=u?parseInt(c,10):0;if(n&&r>=n.length)throw Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[r],e=e.innerType}if(!u){if(!e.fields||!e.fields[c])throw Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e._type}")`);i=n,n=n&&n[c],e=e.fields[c]}o=c,a=l?"["+s+"]":"."+s}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}(this,t,n,r.context);return a[e](i&&i[o],L({},r,{parent:i,path:t}))};for(let e of["equals","is"])F.prototype[e]=F.prototype.oneOf;for(let e of["not","nope"])F.prototype[e]=F.prototype.notOneOf;F.prototype.optional=F.prototype.notRequired,F.prototype;var z=e=>null==e;let V=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,I=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,B=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,H=e=>z(e)||e===e.trim(),U=({}).toString();function W(){return new q}class q extends F{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform(function(e){if(this.isType(e)||Array.isArray(e))return e;let t=null!=e&&e.toString?e.toString():e;return t===U?e:t})})}_typeCheck(e){return e instanceof String&&(e=e.valueOf()),"string"==typeof e}_isPresent(e){return super._isPresent(e)&&!!e.length}length(e,t=f.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return z(t)||t.length===this.resolve(e)}})}min(e,t=f.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return z(t)||t.length>=this.resolve(e)}})}max(e,t=f.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},test(t){return z(t)||t.length<=this.resolve(e)}})}matches(e,t){let n,r,i=!1;return t&&("object"==typeof t?{excludeEmptyString:i=!1,message:n,name:r}=t:n=t),this.test({name:r||"matches",message:n||f.matches,params:{regex:e},test:t=>z(t)||""===t&&i||-1!==t.search(e)})}email(e=f.email){return this.matches(V,{name:"email",message:e,excludeEmptyString:!0})}url(e=f.url){return this.matches(I,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=f.uuid){return this.matches(B,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=f.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:H})}lowercase(e=f.lowercase){return this.transform(e=>z(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>z(e)||e===e.toLowerCase()})}uppercase(e=f.uppercase){return this.transform(e=>z(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>z(e)||e===e.toUpperCase()})}}W.prototype=q.prototype;let $=e=>e!=+e;function Y(){return new G}class G extends F{constructor(){super({type:"number"}),this.withMutation(()=>{this.transform(function(e){let t=e;if("string"==typeof t){if(""===(t=t.replace(/\s/g,"")))return NaN;t=+t}return this.isType(t)?t:parseFloat(t)})})}_typeCheck(e){return e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&!$(e)}min(e,t=h.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return z(t)||t>=this.resolve(e)}})}max(e,t=h.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return z(t)||t<=this.resolve(e)}})}lessThan(e,t=h.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},test(t){return z(t)||tthis.resolve(e)}})}positive(e=h.positive){return this.moreThan(0,e)}negative(e=h.negative){return this.lessThan(0,e)}integer(e=h.integer){return this.test({name:"integer",message:e,test:e=>z(e)||Number.isInteger(e)})}truncate(){return this.transform(e=>z(e)?e:0|e)}round(e){var t;let n=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===n.indexOf(e.toLowerCase()))throw TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(t=>z(t)?t:Math[e](t))}}Y.prototype=G.prototype;var K=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let X=new Date(""),Q=e=>"[object Date]"===Object.prototype.toString.call(e);function J(){return new ee}class ee extends F{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(e){return this.isType(e)?e:isNaN(e=function(e){var t,n,r=[1,4,5,6,7,10,11],i=0;if(n=K.exec(e)){for(var o,a=0;o=r[a];++a)n[o]=+n[o]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,n[7]=n[7]?String(n[7]).substr(0,3):0,(void 0===n[8]||""===n[8])&&(void 0===n[9]||""===n[9])?t=+new Date(n[1],n[2],n[3],n[4],n[5],n[6],n[7]):("Z"!==n[8]&&void 0!==n[9]&&(i=60*n[10]+n[11],"+"===n[9]&&(i=0-i)),t=Date.UTC(n[1],n[2],n[3],n[4],n[5]+i,n[6],n[7]))}else t=Date.parse?Date.parse(e):NaN;return t}(e))?X:new Date(e)})})}_typeCheck(e){return Q(e)&&!isNaN(e.getTime())}prepareParam(e,t){let n;if(P.isRef(e))n=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);n=r}return n}min(e,t=p.min){let n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(e){return z(e)||e>=this.resolve(n)}})}max(e,t=p.max){let n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(e){return z(e)||e<=this.resolve(n)}})}}ee.INVALID_DATE=X,J.prototype=ee.prototype,J.INVALID_DATE=X;var et=n(57370),en=n.n(et),er=n(96009),ei=n.n(er),eo=n(19950),ea=n.n(eo),es=n(95159),el=n.n(es);function eu(e,t){let n=1/0;return e.some((e,r)=>{var i;if((null==(i=t.path)?void 0:i.indexOf(e))!==-1)return n=r,!0}),n}function ec(e){return(t,n)=>eu(e,t)-eu(e,n)}function ed(){return(ed=Object.assign||function(e){for(var t=1;t"[object Object]"===Object.prototype.toString.call(e),eh=ec([]);class ep extends F{constructor(e){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=eh,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform(function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null}),e&&this.shape(e)})}_typeCheck(e){return ef(e)||"function"==typeof e}_cast(e,t={}){var n;let r=super._cast(e,t);if(void 0===r)return this.getDefault();if(!this._typeCheck(r))return r;let i=this.fields,o=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,a=this._nodes.concat(Object.keys(r).filter(e=>-1===this._nodes.indexOf(e))),s={},l=ed({},t,{parent:s,__validating:t.__validating||!1}),u=!1;for(let e of a){let n=i[e],a=b()(r,e);if(n){let i;let o=r[e];l.path=(t.path?`${t.path}.`:"")+e;let a="spec"in(n=n.resolve({value:o,context:t.context,parent:s}))?n.spec:void 0,c=null==a?void 0:a.strict;if(null==a?void 0:a.strip){u=u||e in r;continue}void 0!==(i=t.__validating&&c?r[e]:n.cast(r[e],l))&&(s[e]=i)}else a&&!o&&(s[e]=r[e]);s[e]!==r[e]&&(u=!0)}return u?s:r}_validate(e,t={},n){let r=[],{sync:i,from:o=[],originalValue:a=e,abortEarly:s=this.spec.abortEarly,recursive:l=this.spec.recursive}=t;o=[{schema:this,value:a},...o],t.__validating=!0,t.originalValue=a,t.from=o,super._validate(e,t,(e,u)=>{if(e){if(!S.isError(e)||s)return void n(e,u);r.push(e)}if(!l||!ef(u)){n(r[0]||null,u);return}a=a||u,_({sync:i,tests:this._nodes.map(e=>(n,r)=>{let i=-1===e.indexOf(".")?(t.path?`${t.path}.`:"")+e:`${t.path||""}["${e}"]`,s=this.fields[e];if(s&&"validate"in s){s.validate(u[e],ed({},t,{path:i,from:o,strict:!0,parent:u,originalValue:a[e]}),r);return}r(null)}),value:u,errors:r,endEarly:s,sort:this._sortErrors,path:t.path},n)})}clone(e){let t=super.clone(e);return t.fields=ed({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),n=t.fields;for(let[e,t]of Object.entries(this.fields)){let r=n[e];void 0===r?n[e]=t:r instanceof F&&t instanceof F&&(n[e]=t.concat(r))}return t.withMutation(()=>t.shape(n,this._excludedEdges))}getDefaultFromShape(){let e={};return this._nodes.forEach(t=>{let n=this.fields[t];e[t]="default"in n?n.getDefault():void 0}),e}_getDefault(){return"default"in this.spec?super._getDefault():this._nodes.length?this.getDefaultFromShape():void 0}shape(e,t=[]){let n=this.clone(),r=Object.assign(n.fields,e);return n.fields=r,n._sortErrors=ec(Object.keys(r)),t.length&&(Array.isArray(t[0])||(t=[t]),n._excludedEdges=[...n._excludedEdges,...t]),n._nodes=function(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([e,t])=>`${e}-${t}`));function o(e,t){let o=(0,A.split)(e)[0];r.add(o),i.has(`${t}-${o}`)||n.push([t,o])}for(let t in e)if(b()(e,t)){let n=e[t];r.add(t),P.isRef(n)&&n.isSibling?o(n.path,t):x(n)&&"deps"in n&&n.deps.forEach(e=>o(e,t))}return el().array(Array.from(r),n).reverse()}(r,n._excludedEdges),n}pick(e){let t={};for(let n of e)this.fields[n]&&(t[n]=this.fields[n]);return this.clone().withMutation(e=>(e.fields={},e.shape(t)))}omit(e){let t=this.clone(),n=t.fields;for(let r of(t.fields={},e))delete n[r];return t.withMutation(()=>t.shape(n))}from(e,t,n){let r=(0,A.getter)(e,!0);return this.transform(i=>{if(null==i)return i;let o=i;return b()(i,e)&&(o=ed({},i),n||delete o[e],o[t]=r(i)),o})}noUnknown(e=!0,t=m.noUnknown){"string"==typeof e&&(t=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){let n;if(null==t)return!0;let r=(n=Object.keys(this.schema.fields),Object.keys(t).filter(e=>-1===n.indexOf(e)));return!e||0===r.length||this.createError({params:{unknown:r.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(e=!0,t=m.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>t&&ea()(t,(t,n)=>e(n)))}camelCase(){return this.transformKeys(ei())}snakeCase(){return this.transformKeys(en())}constantCase(){return this.transformKeys(e=>en()(e).toUpperCase())}describe(){let e=super.describe();return e.fields=M()(this.fields,e=>e.describe()),e}}function em(e){return new ep(e)}em.prototype=ep.prototype},44868:function(e,t,n){"use strict";var r,i,o=Object.create,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},f={};((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(f,{Animated:()=>b,AnimatedArray:()=>C,AnimatedObject:()=>_,AnimatedString:()=>j,AnimatedValue:()=>w,createHost:()=>z,getAnimated:()=>v,getAnimatedType:()=>T,getPayload:()=>y,isAnimated:()=>m,setAnimated:()=>g}),e.exports=d(a({},"__esModule",{value:!0}),f);var h=n(6901),p=Symbol.for("Animated:node"),m=e=>!!e&&e[p]===e,v=e=>e&&e[p],g=(e,t)=>(0,h.defineHidden)(e,p,t),y=e=>e&&e[p]&&e[p].getPayload(),b=class{constructor(){g(this,this)}getPayload(){return this.payload||[]}},x=n(6901),w=class extends b{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,x.is.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new w(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return x.is.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,x.is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},E=n(6901),j=class extends w{constructor(e){super(0),this._string=null,this._toString=(0,E.createInterpolator)({output:[e,e]})}static create(e){return new j(e)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(e){if(E.is.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=(0,E.createInterpolator)({output:[this.getValue(),e]})),this._value=0,super.reset()}},k=n(6901),S=n(6901),O={dependencies:null},_=class extends b{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return(0,S.eachProp)(this.source,(n,r)=>{m(n)?t[r]=n.getValue(e):(0,S.hasFluidValue)(n)?t[r]=(0,S.getFluidValue)(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&(0,S.each)(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return(0,S.eachProp)(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){O.dependencies&&(0,S.hasFluidValue)(e)&&O.dependencies.add(e);let t=y(e);t&&(0,S.each)(t,e=>this.add(e))}},C=class extends _{constructor(e){super(e)}static create(e){return new C(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(M)),!0)}};function M(e){return((0,k.isAnimatedString)(e)?j:w).create(e)}var A=n(6901);function T(e){let t=v(e);return t?t.constructor:A.is.arr(e)?C:(0,A.isAnimatedString)(e)?j:w}var P=n(6901),N=(i=null!=(r=n(2784))?o(u(r)):{},d(r&&r.__esModule?i:a(i,"default",{value:r,enumerable:!0}),r)),R=n(2784),D=n(6901),Z=(e,t)=>{let n=!D.is.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,R.forwardRef)((r,i)=>{var o;let a;let s=(0,R.useRef)(null),l=n&&(0,R.useCallback)(e=>{s.current=(i&&(D.is.fun(i)?i(e):i.current=e),e)},[i]),[u,c]=(o=r,a=new Set,O.dependencies=a,o.style&&(o={...o,style:t.createAnimatedStyle(o.style)}),o=new _(o),O.dependencies=null,[o,a]),d=(0,D.useForceUpdate)(),f=()=>{let e=s.current;(!n||e)&&(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))===!1&&d()},h=new L(f,c),p=(0,R.useRef)();(0,D.useIsomorphicLayoutEffect)(()=>(p.current=h,(0,D.each)(c,e=>(0,D.addFluidObserver)(e,h)),()=>{p.current&&((0,D.each)(p.current.deps,e=>(0,D.removeFluidObserver)(e,p.current)),D.raf.cancel(p.current.update))})),(0,R.useEffect)(f,[]),(0,D.useOnce)(()=>()=>{let e=p.current;(0,D.each)(e.deps,t=>(0,D.removeFluidObserver)(t,e))});let m=t.getComponentProps(u.getValue());return N.createElement(e,{...m,ref:l})})},L=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&D.raf.write(this.update)}},F=Symbol.for("AnimatedComponent"),z=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new _(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{let t=V(e)||"Anonymous";return(e=P.is.str(e)?o[e]||(o[e]=Z(e,i)):e[F]||(e[F]=Z(e,i))).displayName=`Animated(${t})`,e};return(0,P.eachProp)(e,(t,n)=>{P.is.arr(e)&&(n=V(t)),o[n]=o(t)}),{animated:o}},V=e=>P.is.str(e)?e:e&&P.is.str(e.displayName)?e.displayName:P.is.fun(e)&&e.name||null},22360:function(e,t,n){"use strict";var r,i,o=Object.create,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},f=(e,t,n)=>(n=null!=e?o(u(e)):{},d(!t&&e&&e.__esModule?n:a(n,"default",{value:e,enumerable:!0}),e)),h={};((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(h,{BailSignal:()=>Q,Controller:()=>eE,FrameValue:()=>ei,Globals:()=>tl.Globals,Interpolation:()=>tn,Spring:()=>e5,SpringContext:()=>eN,SpringRef:()=>eZ,SpringValue:()=>ed,Trail:()=>e8,Transition:()=>e7,config:()=>L,createInterpolator:()=>tc.createInterpolator,easings:()=>tc.easings,inferTo:()=>k,interpolate:()=>ts,to:()=>ta,update:()=>tu,useChain:()=>A,useInView:()=>e3,useIsomorphicLayoutEffect:()=>tc.useIsomorphicLayoutEffect,useReducedMotion:()=>tc.useReducedMotion,useResize:()=>e0,useScroll:()=>eQ,useSpring:()=>eF,useSpringRef:()=>eI,useSpringValue:()=>eH,useSprings:()=>eL,useTrail:()=>eW,useTransition:()=>eG}),e.exports=d(a({},"__esModule",{value:!0}),h);var p=n(6901),m=n(6901);function v(e,...t){return m.is.fun(e)?e(...t):e}var g=(e,t)=>!0===e||!!(t&&e&&(m.is.fun(e)?e(t):(0,m.toArray)(e).includes(t))),y=(e,t)=>m.is.obj(e)?t&&e[t]:e,b=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,x=e=>e,w=(e,t=x)=>{let n=E;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);m.is.und(n)||(r[i]=n)}return r},E=["config","onProps","onStart","onChange","onPause","onResume","onRest"],j={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function k(e){let t=function(e){let t={},n=0;if((0,m.eachProp)(e,(e,r)=>{j[r]||(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return(0,m.eachProp)(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function S(e){return e=(0,m.getFluidValue)(e),m.is.arr(e)?e.map(S):(0,m.isAnimatedString)(e)?m.Globals.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function O(e){for(let t in e)return!0;return!1}function _(e){return m.is.fun(e)||m.is.arr(e)&&m.is.obj(e[0])}function C(e,t){e.ref?.delete(e),t?.delete(e)}function M(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}function A(e,t,n=1e3){(0,p.useIsomorphicLayoutEffect)(()=>{if(t){let r=0;(0,p.each)(e,(e,i)=>{let o=e.current;if(o.length){let a=n*t[i];isNaN(a)?a=r:r=a,(0,p.each)(o,e=>{(0,p.each)(e.queue,e=>{let t=e.delay;e.delay=e=>a+v(t||0,e)})}),e.start()}})}else{let t=Promise.resolve();(0,p.each)(e,e=>{let n=e.current;if(n.length){let r=n.map(e=>{let t=e.queue;return e.queue=[],t});t=t.then(()=>((0,p.each)(n,(e,t)=>(0,p.each)(r[t]||[],t=>e.queue.push(t))),Promise.all(e.start())))}})}})}var T=n(6901),P=n(2784),N=n(6901),R=n(6901),D=n(25447),Z=n(6901),L={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},F={...L.default,mass:1,damping:1,easing:Z.easings.linear,clamp:!1},z=class{constructor(){this.velocity=0,Object.assign(this,F)}};function V(e,t){if(Z.is.und(t.decay)){let n=!Z.is.und(t.tension)||!Z.is.und(t.friction);!n&&Z.is.und(t.frequency)&&Z.is.und(t.damping)&&Z.is.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var I=[],B=class{constructor(){this.changed=!1,this.values=I,this.toValues=null,this.fromValues=I,this.config=new z,this.immediate=!1}},H=n(6901);function U(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{let l,u,c=g(n.cancel??r?.cancel,t);if(c)h();else{H.is.und(n.pause)||(i.paused=g(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||g(e,t)),l=v(n.delay||0,t),e?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),l=u.time-H.raf.now()}function f(){l>0&&!H.Globals.skipAnimation?(i.delayed=!0,u=H.raf.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(u)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{o.start({...n,callId:e,cancel:c},a)}catch(e){s(e)}}})}var W=n(6901),q=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?G(e.get()):t.every(e=>e.noop)?$(e.get()):Y(e.get(),t.every(e=>e.finished)),$=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Y=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),G=e=>({value:e,cancelled:!0,finished:!1});function K(e,t,n,r){let{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;let u=w(t,(e,t)=>"onRest"===t?void 0:e),c,d,f=new Promise((e,t)=>(c=e,d=t)),h=e=>{let t=i<=(n.cancelId||0)&&G(r)||i!==n.asyncId&&Y(r,!1);if(t)throw e.result=t,d(e),e},p=(e,t)=>{let o=new Q,a=new J;return(async()=>{if(W.Globals.skipAnimation)throw X(n),a.result=Y(r,!1),d(a),a;h(o);let s=W.is.obj(e)?{...e}:{...t,to:e};s.parentId=i,(0,W.eachProp)(u,(e,t)=>{W.is.und(s[t])&&(s[t]=e)});let l=await r.start(s);return h(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()},m;if(W.Globals.skipAnimation)return X(n),Y(r,!1);try{let t;t=W.is.arr(e)?(async e=>{for(let t of e)await p(t)})(e):Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([t.then(c),f]),m=Y(r.get(),!0,!1)}catch(e){if(e instanceof Q)m=e.result;else if(e instanceof J)m=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return W.is.fun(a)&&W.raf.batchedUpdates(()=>{a(m,r,r.item)}),m})():l}function X(e,t){(0,W.flush)(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Q=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},J=class extends Error{constructor(){super("SkipAnimationSignal")}},ee=n(6901),et=n(25447),en=e=>e instanceof ei,er=1,ei=class extends ee.FluidValue{constructor(){super(...arguments),this.id=er++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=(0,et.getAnimated)(this);return e&&e.getValue()}to(...e){return ee.Globals.to(this,e)}interpolate(...e){return(0,ee.deprecateInterpolate)(),ee.Globals.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){(0,ee.callFluidObservers)(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||ee.frameLoop.sort(this),(0,ee.callFluidObservers)(this,{type:"priority",parent:this,priority:e})}},eo=Symbol.for("SpringPhase"),ea=e=>(1&e[eo])>0,es=e=>(2&e[eo])>0,el=e=>(4&e[eo])>0,eu=(e,t)=>t?e[eo]|=3:e[eo]&=-3,ec=(e,t)=>t?e[eo]|=4:e[eo]&=-5,ed=class extends ei{constructor(e,t){if(super(),this.animation=new B,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!R.is.und(e)||!R.is.und(t)){let n=R.is.obj(e)?{...e}:{...t,from:e};R.is.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(es(this)||this._state.asyncTo)||el(this)}get goal(){return(0,R.getFluidValue)(this.animation.to)}get velocity(){let e=(0,D.getAnimated)(this);return e instanceof D.AnimatedValue?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return ea(this)}get isAnimating(){return es(this)}get isPaused(){return el(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:o}=r,a=(0,D.getPayload)(r.to);!a&&(0,R.hasFluidValue)(r.to)&&(i=(0,R.toArray)((0,R.getFluidValue)(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==D.AnimatedString?1:a?a[l].lastPosition:i[l],c=r.immediate,d=u;if(!c){if(d=s.lastPosition,o.tension<=0){s.done=!0;return}let t=s.elapsedTime+=e,n=r.fromValues[l],i=null!=s.v0?s.v0:s.v0=R.is.arr(o.velocity)?o.velocity[l]:o.velocity,a,f=o.precision||(n==u?.005:Math.min(1,.001*Math.abs(u-n)));if(R.is.und(o.duration)){if(o.decay){let e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*t);d=n+i/(1-e)*(1-r),c=Math.abs(s.lastPosition-d)<=f,a=i*r}else{a=null==s.lastVelocity?i:s.lastVelocity;let t=o.restVelocity||f/10,r=o.clamp?0:o.bounce,l=!R.is.und(r),h=n==u?s.v0>0:nt)&&(c=Math.abs(u-d)<=f));++e){l&&(d==u||d>u==h)&&(a=-a*r,d=u);let e=(-(1e-6*o.tension)*(d-u)+-(.001*o.friction)*a)/o.mass;a+=1*e,d+=1*a}}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,s.durationProgress>0&&(s.elapsedTime=o.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(r=(o.progress||0)+t/this._memoizedDuration)>1?1:r<0?0:r,s.durationProgress=r),a=((d=n+o.easing(r)*(u-n))-s.lastPosition)/e,c=1==r}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}a&&!a[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,o.round)&&(n=!0)});let s=(0,D.getAnimated)(this),l=s.getValue();if(t){let e=(0,R.getFluidValue)(r.to);(l!==e||n)&&!o.decay?(s.setValue(e),this._onChange(e)):n&&o.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return R.raf.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(es(this)){let{to:e,config:t}=this.animation;R.raf.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return R.is.und(e)?(n=this.queue||[],this.queue=[]):n=[R.is.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>q(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),X(this._state,e&&this._lastCallId),R.raf.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:n,from:r}=e;(null==(n=R.is.obj(n)?n[t]:n)||_(n))&&(n=void 0),null==(r=R.is.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return ea(this)||(e.reverse&&([n,r]=[r,n]),r=(0,R.getFluidValue)(r),R.is.und(r)?(0,D.getAnimated)(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,w(e,(e,t)=>/^on/.test(t)?y(e,n):e)),eg(this,e,"onProps"),ey(this,"onProps",e,this);let i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let o=this._state;return U(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{el(this)||(ec(this,!0),(0,R.flushCalls)(o.pauseQueue),ey(this,"onPause",Y(this,ef(this,this.animation.to)),this))},resume:()=>{el(this)&&(ec(this,!1),es(this)&&this._resume(),(0,R.flushCalls)(o.resumeQueue),ey(this,"onResume",Y(this,ef(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=eh(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(G(this));let r=!R.is.und(e.to),i=!R.is.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(G(this));this._lastToId=t.callId}let{key:o,defaultProps:a,animation:s}=this,{to:l,from:u}=s,{to:c=l,from:d=u}=e;i&&!r&&(!t.default||R.is.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!(0,R.isEqual)(d,u);f&&(s.from=d),d=(0,R.getFluidValue)(d);let h=!(0,R.isEqual)(c,l);h&&this._focus(c);let p=_(t.to),{config:m}=s,{decay:y,velocity:b}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(V(n={...n},t),t={...n,...t}),V(e,t),Object.assign(e,t),F)null==e[r]&&(e[r]=F[r]);let{frequency:r,damping:i}=e,{mass:o}=e;Z.is.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r)}(m,v(t.config,o),t.config!==a.config?v(a.config,o):void 0);let x=(0,D.getAnimated)(this);if(!x||R.is.und(c))return n(Y(this,!0));let w=R.is.und(t.reset)?i&&!t.default:!R.is.und(d)&&g(t.reset,o),E=w?d:this.get(),j=S(c),k=R.is.num(j)||R.is.arr(j)||(0,R.isAnimatedString)(j),O=!p&&(!k||g(a.immediate||t.immediate,o));if(h){let e=(0,D.getAnimatedType)(c);if(e!==x.constructor){if(O)x=this._set(j);else throw Error(`Cannot animate between ${x.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let C=x.constructor,M=(0,R.hasFluidValue)(c),A=!1;if(!M){let e=w||!ea(this)&&f;(h||e)&&(M=!(A=(0,R.isEqual)(S(E),j))),((0,R.isEqual)(s.immediate,O)||O)&&(0,R.isEqual)(m.decay,y)&&(0,R.isEqual)(m.velocity,b)||(M=!0)}if(A&&es(this)&&(s.changed&&!w?M=!0:M||this._stop(l)),!p&&((M||(0,R.hasFluidValue)(l))&&(s.values=x.getPayload(),s.toValues=(0,R.hasFluidValue)(c)?null:C==D.AnimatedString?[1]:(0,R.toArray)(j)),s.immediate==O||(s.immediate=O,O||w||this._set(l)),M)){let{onRest:e}=s;(0,R.each)(ev,e=>eg(this,t,e));let r=Y(this,ef(this,l));(0,R.flushCalls)(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&R.raf.batchedUpdates(()=>{s.changed=!w,e?.(r,this),w?v(a.onRest,r):s.onStart?.(r,this)})}w&&this._set(E),p?n(K(t.to,t,this._state,this)):M?this._start():es(this)&&!h?this._pendingCalls.add(n):n($(E))}_focus(e){let t=this.animation;e!==t.to&&((0,R.getFluidObservers)(this)&&this._detach(),t.to=e,(0,R.getFluidObservers)(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;(0,R.hasFluidValue)(t)&&((0,R.addFluidObserver)(t,this),en(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;(0,R.hasFluidValue)(e)&&(0,R.removeFluidObserver)(e,this)}_set(e,t=!0){let n=(0,R.getFluidValue)(e);if(!R.is.und(n)){let e=(0,D.getAnimated)(this);if(!e||!(0,R.isEqual)(n,e.getValue())){let r=(0,D.getAnimatedType)(n);e&&e.constructor==r?e.setValue(n):(0,D.setAnimated)(this,r.create(n)),e&&R.raf.batchedUpdates(()=>{this._onChange(n,t)})}}return(0,D.getAnimated)(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,ey(this,"onStart",Y(this,ef(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),v(this.animation.onChange,e,this)),v(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;(0,D.getAnimated)(this).reset((0,R.getFluidValue)(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),es(this)||(eu(this,!0),el(this)||this._resume())}_resume(){R.Globals.skipAnimation?this.finish():R.frameLoop.start(this)}_stop(e,t){if(es(this)){eu(this,!1);let n=this.animation;(0,R.each)(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),(0,R.callFluidObservers)(this,{type:"idle",parent:this});let r=t?G(this.get()):Y(this.get(),ef(this,e??n.to));(0,R.flushCalls)(this._pendingCalls,r),n.changed&&(n.changed=!1,ey(this,"onRest",r,this))}}};function ef(e,t){let n=S(t),r=S(e.get());return(0,R.isEqual)(r,n)}function eh(e,t=e.loop,n=e.to){let r=v(t);if(r){let i=!0!==r&&k(r),o=(i||e).reverse,a=!i||i.reset;return ep({...e,loop:t,default:!1,pause:void 0,to:!o||_(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function ep(e){let{to:t,from:n}=e=k(e),r=new Set;return R.is.obj(t)&&em(t,r),R.is.obj(n)&&em(n,r),e.keys=r.size?Array.from(r):null,e}function em(e,t){(0,R.eachProp)(e,(e,n)=>null!=e&&t.add(n))}var ev=["onStart","onRest","onChange","onPause","onResume"];function eg(e,t,n){e.animation[n]=t[n]!==b(t,n)?y(t[n],e.key):void 0}function ey(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var eb=n(6901),ex=["onStart","onChange","onRest"],ew=1,eE=class{constructor(e,t){this.id=ew++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];eb.is.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(ep(e)),this}start(e){let{queue:t}=this;return e?t=(0,eb.toArray)(e).map(ep):this.queue=[],this._flush?this._flush(this,t):(eM(this,t),ej(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;(0,eb.each)((0,eb.toArray)(t),t=>n[t].stop(!!e))}else X(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(eb.is.und(e))this.start({pause:!0});else{let t=this.springs;(0,eb.each)((0,eb.toArray)(e),e=>t[e].pause())}return this}resume(e){if(eb.is.und(e))this.start({pause:!1});else{let t=this.springs;(0,eb.each)((0,eb.toArray)(e),e=>t[e].resume())}return this}each(e){(0,eb.eachProp)(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,(0,eb.flush)(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&(0,eb.flush)(t,([e,t])=>{t.value=a,e(t,this,this._item)}),o&&(this._started=!1,(0,eb.flush)(n,([e,t])=>{t.value=a,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}eb.raf.onFrame(this._onFrame)}};function ej(e,t){return Promise.all(t.map(t=>ek(e,t))).then(t=>q(e,t))}async function ek(e,t,n){let{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=eb.is.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);let c=eb.is.arr(i)||eb.is.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):(0,eb.each)(ex,n=>{let r=t[n];if(eb.is.fun(r)){let i=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}});let d=e._state;!d.paused===t.pause?(d.paused=t.pause,(0,eb.flushCalls)(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let f=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),h=!0===t.cancel||!0===b(t,"cancel");(c||h&&d.asyncId)&&f.push(U(++e._lastAsyncId,{props:t,state:d,actions:{pause:eb.noop,resume:eb.noop,start(t,n){h?(X(d,e._lastAsyncId),n(G(e))):(t.onRest=s,n(K(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=q(e,await Promise.all(f));if(a&&p.finished&&!(n&&p.noop)){let n=eh(t,a,i);if(n)return eM(e,[n]),ek(e,n,!0)}return l&&eb.raf.batchedUpdates(()=>l(p,e,e.item)),p}function eS(e,t){let n={...e.springs};return t&&(0,eb.each)((0,eb.toArray)(t),e=>{eb.is.und(e.keys)&&(e=ep(e)),eb.is.obj(e.to)||(e={...e,to:void 0}),eC(n,e,e=>e_(e))}),eO(e,n),n}function eO(e,t){(0,eb.eachProp)(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,(0,eb.addFluidObserver)(t,e))})}function e_(e,t){let n=new ed;return n.key=e,t&&(0,eb.addFluidObserver)(n,t),n}function eC(e,t,n){t.keys&&(0,eb.each)(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function eM(e,t){(0,eb.each)(t,t=>{eC(e.springs,t,t=>e_(t,e))})}var eA=f(n(2784)),eT=n(2784),eP=n(6901),eN=({children:e,...t})=>{let n=(0,eT.useContext)(eR),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=(0,eP.useMemoOne)(()=>({pause:r,immediate:i}),[r,i]);let{Provider:o}=eR;return eA.createElement(o,{value:t},e)},eR=(Object.assign(eN,eA.createContext({})),eN.Provider._context=eN,eN.Consumer._context=eN,eN);eN.Provider=eR.Provider,eN.Consumer=eR.Consumer;var eD=n(6901),eZ=()=>{let e=[],t=function(t){(0,eD.deprecateDirectCall)();let r=[];return(0,eD.each)(e,(e,i)=>{if(eD.is.und(t))r.push(e.start());else{let o=n(t,e,i);o&&r.push(e.start(o))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return(0,eD.each)(e,e=>e.pause(...arguments)),this},t.resume=function(){return(0,eD.each)(e,e=>e.resume(...arguments)),this},t.set=function(t){(0,eD.each)(e,(e,n)=>{let r=eD.is.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return(0,eD.each)(e,(e,r)=>{if(eD.is.und(t))n.push(e.start());else{let i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return(0,eD.each)(e,e=>e.stop(...arguments)),this},t.update=function(t){return(0,eD.each)(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return eD.is.fun(e)?e(n,t):e};return t._getProps=n,t};function eL(e,t,n){let r=N.is.fun(t)&&t;r&&!n&&(n=[]);let i=(0,P.useMemo)(()=>r||3==arguments.length?eZ():void 0,[]),o=(0,P.useRef)(0),a=(0,N.useForceUpdate)(),s=(0,P.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=eS(e,t);return!(o.current>0)||s.queue.length||Object.keys(n).some(t=>!e.springs[t])?new Promise(r=>{eO(e,n),s.queue.push(()=>{r(ej(e,t))}),a()}):ej(e,t)}}),[]),l=(0,P.useRef)([...s.ctrls]),u=[],c=(0,N.usePrev)(e)||0;function d(e,n){for(let i=e;i{(0,N.each)(l.current.slice(e,c),e=>{C(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,P.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=l.current.map((e,t)=>eS(e,u[t])),h=(0,P.useContext)(eN),p=(0,N.usePrev)(h),m=h!==p&&O(h);(0,N.useIsomorphicLayoutEffect)(()=>{o.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],(0,N.each)(e,e=>e())),(0,N.each)(l.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(M(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),(0,N.useOnce)(()=>()=>{(0,N.each)(s.ctrls,e=>e.stop(!0))});let v=f.map(e=>({...e}));return i?[v,i]:v}function eF(e,t){let n=T.is.fun(e),[[r],i]=eL(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}var ez=n(2784),eV=()=>eZ(),eI=()=>(0,ez.useState)(eV)[0],eB=n(6901),eH=(e,t)=>{let n=(0,eB.useConstant)(()=>new ed(e,t));return(0,eB.useOnce)(()=>()=>{n.stop()}),n},eU=n(6901);function eW(e,t,n){let r=eU.is.fun(t)&&t;r&&!n&&(n=[]);let i=!0,o,a=eL(e,(e,n)=>{let a=r?r(e,n):t;return o=a.ref,i=i&&a.reverse,a},n||[{}]);if((0,eU.useIsomorphicLayoutEffect)(()=>{(0,eU.each)(a[1].current,(e,t)=>{let n=a[1].current[t+(i?1:-1)];if(M(e,o),e.ref){n&&e.update({to:n.springs});return}n?e.start({to:n.springs}):e.start()})},n),r||3==arguments.length){let e=o??a[1];return e._getProps=(t,n,r)=>{let i=eU.is.fun(t)?t(r,n):t;if(i){let t=e.current[r+(i.reverse?1:-1)];return t&&(i.to=t.springs),i}},a}return a[0]}var eq=f(n(2784)),e$=n(2784),eY=n(6901);function eG(e,t,n){let r=eY.is.fun(t)&&t,{reset:i,sort:o,trail:a=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=(0,e$.useMemo)(()=>r||3==arguments.length?eZ():void 0,[]),h=(0,eY.toArray)(e),p=[],m=(0,e$.useRef)(null),g=i?null:m.current;(0,eY.useIsomorphicLayoutEffect)(()=>{m.current=p}),(0,eY.useOnce)(()=>((0,eY.each)(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{(0,eY.each)(m.current,e=>{e.expired&&clearTimeout(e.expirationId),C(e.ctrl,f),e.ctrl.stop(!0)})}));let y=function(e,{key:t,keys:n=t},r){if(null===n){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&"leave"!==n.phase&&!t.has(n));return n?(t.add(n),n.key):eK++})}return eY.is.und(n)?e:eY.is.fun(n)?e.map(n):(0,eY.toArray)(n)}(h,r?r():t,g),b=i&&m.current||[];(0,eY.useIsomorphicLayoutEffect)(()=>(0,eY.each)(b,({ctrl:e,item:t,key:n})=>{C(e,f),v(u,t,n)}));let x=[];if(g&&(0,eY.each)(g,(e,t)=>{e.expired?(clearTimeout(e.expirationId),b.push(e)):~(t=x[t]=y.indexOf(e.key))&&(p[t]=e)}),(0,eY.each)(h,(e,t)=>{p[t]||(p[t]={key:y[t],item:e,phase:"mount",ctrl:new eE},p[t].ctrl.item=e)}),x.length){let e=-1,{leave:n}=r?r():t;(0,eY.each)(x,(t,r)=>{let i=g[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}eY.is.fun(o)&&p.sort((e,t)=>o(e.item,t.item));let E=-a,j=(0,eY.useForceUpdate)(),S=w(t),_=new Map,A=(0,e$.useRef)(new Map),T=(0,e$.useRef)(!1);(0,eY.each)(p,(e,n)=>{let i=e.key,o=e.phase,u=r?r():t,f,h,p=v(u.delay||0,i);if("mount"==o)f=u.enter,h="enter";else{let e=0>y.indexOf(i);if("leave"!=o){if(e)f=u.leave,h="leave";else{if(!(f=u.update))return;h="update"}}else{if(e)return;f=u.enter,h="enter"}}if(f=v(f,e.item,n),!(f=eY.is.obj(f)?k(f):{to:f}).config){let t=d||S.config;f.config=v(t,e.item,n,h)}E+=a;let b={...S,delay:p+E,ref:c,immediate:u.immediate,reset:!1,...f};if("enter"==h&&eY.is.und(b.from)){let i=r?r():t,o=eY.is.und(i.initial)||g?i.from:i.initial;b.from=v(o,e.item,n)}let{onResolve:x}=b;b.onResolve=e=>{v(x,e);let t=m.current,n=t.find(e=>e.key===i);if(n&&!(e.cancelled&&"update"!=n.phase)&&n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){let t=v(s,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(j,r));return}}}e&&t.some(e=>e.expired)&&(A.current.delete(n),l&&(T.current=!0),j())}};let w=eS(e.ctrl,b);"leave"===h&&l?A.current.set(e,{phase:h,springs:w,payload:b}):_.set(e,{phase:h,springs:w,payload:b})});let P=(0,e$.useContext)(eN),N=(0,eY.usePrev)(P),R=P!==N&&O(P);(0,eY.useIsomorphicLayoutEffect)(()=>{R&&(0,eY.each)(p,e=>{e.ctrl.start({default:P})})},[P]),(0,eY.each)(_,(e,t)=>{if(A.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),(0,eY.useIsomorphicLayoutEffect)(()=>{(0,eY.each)(A.current.size?A.current:_,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),R&&"enter"==e&&r.start({default:P}),t&&(M(r,t.ref),(r.ref||f)&&!T.current?r.update(t):(r.start(t),T.current&&(T.current=!1)))})},i?void 0:n);let D=e=>eq.createElement(eq.Fragment,null,p.map((t,n)=>{let{springs:r}=_.get(t)||t.ctrl,i=e({...r},t.item,t,n);return i&&i.type?eq.createElement(i.type,{...i.props,key:eY.is.str(t.key)||eY.is.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[D,f]:D}var eK=1,eX=n(6901),eQ=({container:e,...t}={})=>{let[n,r]=eF(()=>({scrollX:0,scrollY:0,scrollXProgress:0,scrollYProgress:0,...t}),[]);return(0,eX.useIsomorphicLayoutEffect)(()=>{let t=(0,eX.onScroll)(({x:e,y:t})=>{r.start({scrollX:e.current,scrollXProgress:e.progress,scrollY:t.current,scrollYProgress:t.progress})},{container:e?.current||void 0});return()=>{(0,eX.each)(Object.values(n),e=>e.stop()),t()}},[]),n},eJ=n(6901),e0=({container:e,...t})=>{let[n,r]=eF(()=>({width:0,height:0,...t}),[]);return(0,eJ.useIsomorphicLayoutEffect)(()=>{let t=(0,eJ.onResize)(({width:e,height:t})=>{r.start({width:e,height:t,immediate:0===n.width.get()||0===n.height.get()})},{container:e?.current||void 0});return()=>{(0,eJ.each)(Object.values(n),e=>e.stop()),t()}},[]),n},e1=n(2784),e2=n(6901),e4={any:0,all:1};function e3(e,t){let[n,r]=(0,e1.useState)(!1),i=(0,e1.useRef)(),o=e2.is.fun(e)&&e,{to:a={},from:s={},...l}=o?o():{},u=o?t:e,[c,d]=eF(()=>({from:s,...l}),[]);return(0,e2.useIsomorphicLayoutEffect)(()=>{let e=i.current,{root:t,once:o,amount:l="any",...c}=u??{};if(!e||o&&n||typeof IntersectionObserver>"u")return;let f=new WeakMap,h=()=>(a&&d.start(a),r(!0),o?void 0:()=>{s&&d.start(s),r(!1)}),p=new IntersectionObserver(e=>{e.forEach(e=>{let t=f.get(e.target);if(!!t!==e.isIntersecting){if(e.isIntersecting){let t=h();e2.is.fun(t)?f.set(e.target,t):p.unobserve(e.target)}else t&&(t(),f.delete(e.target))}})},{root:t&&t.current||void 0,threshold:"number"==typeof l||Array.isArray(l)?l:e4[l],...c});return p.observe(e),()=>p.unobserve(e)},[u]),o?[i,c]:[i,n]}function e5({children:e,...t}){return e(eF(t))}var e6=n(6901);function e8({items:e,children:t,...n}){let r=eW(e.length,n);return e.map((e,n)=>{let i=t(e,n);return e6.is.fun(i)?i(r[n]):i})}function e7({items:e,children:t,...n}){return eG(e,n)(t)}var e9=n(6901),te=n(6901),tt=n(25447),tn=class extends ei{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=(0,te.createInterpolator)(...t);let n=this._get(),r=(0,tt.getAnimatedType)(n);(0,tt.setAnimated)(this,r.create(n))}advance(e){let t=this._get(),n=this.get();(0,te.isEqual)(t,n)||((0,tt.getAnimated)(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&ti(this._active)&&to(this)}_get(){let e=te.is.arr(this.source)?this.source.map(te.getFluidValue):(0,te.toArray)((0,te.getFluidValue)(this.source));return this.calc(...e)}_start(){this.idle&&!ti(this._active)&&(this.idle=!1,(0,te.each)((0,tt.getPayload)(this),e=>{e.done=!1}),te.Globals.skipAnimation?(te.raf.batchedUpdates(()=>this.advance()),to(this)):te.frameLoop.start(this))}_attach(){let e=1;(0,te.each)((0,te.toArray)(this.source),t=>{(0,te.hasFluidValue)(t)&&(0,te.addFluidObserver)(t,this),en(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){(0,te.each)((0,te.toArray)(this.source),e=>{(0,te.hasFluidValue)(e)&&(0,te.removeFluidObserver)(e,this)}),this._active.clear(),to(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=(0,te.toArray)(this.source).reduce((e,t)=>Math.max(e,(en(t)?t.priority:0)+1),0))}};function tr(e){return!1!==e.idle}function ti(e){return!e.size||Array.from(e).every(tr)}function to(e){e.idle||(e.idle=!0,(0,te.each)((0,tt.getPayload)(e),e=>{e.done=!0}),(0,te.callFluidObservers)(e,{type:"idle",parent:e}))}var ta=(e,...t)=>new tn(e,t),ts=(e,...t)=>((0,e9.deprecateInterpolate)(),new tn(e,t)),tl=n(6901);tl.Globals.assign({createStringInterpolator:tl.createStringInterpolator,to:(e,t)=>new tn(e,t)});var tu=tl.frameLoop.advance,tc=n(6901);r=n(8669),i=e.exports,d(h,r,"default"),i&&d(i,r,"default")},78476:function(e,t,n){"use strict";var r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,s=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},l={};s(l,{FluidValue:()=>eT,Globals:()=>u,addFluidObserver:()=>eN,callFluidObserver:()=>eM,callFluidObservers:()=>eA,clamp:()=>J,colorToRgba:()=>ey,colors:()=>ee,createInterpolator:()=>eb,createStringInterpolator:()=>eW,defineHidden:()=>M,deprecateDirectCall:()=>eX,deprecateInterpolate:()=>eG,each:()=>P,eachProp:()=>N,easings:()=>ej,flush:()=>D,flushCalls:()=>F,frameLoop:()=>Y,getFluidObservers:()=>eC,getFluidValue:()=>e_,hasFluidValue:()=>eO,hex3:()=>el,hex4:()=>eu,hex6:()=>ec,hex8:()=>ed,hsl:()=>ea,hsla:()=>es,is:()=>A,isAnimatedString:()=>eQ,isEqual:()=>T,isSSR:()=>z,noop:()=>C,onResize:()=>e6,onScroll:()=>ti,once:()=>e$,prefix:()=>eq,raf:()=>d,removeFluidObserver:()=>eR,rgb:()=>ei,rgba:()=>eo,setFluidGetter:()=>eP,toArray:()=>R,useConstant:()=>ta,useForceUpdate:()=>tf,useIsomorphicLayoutEffect:()=>tc,useMemoOne:()=>tp,useOnce:()=>tv,usePrev:()=>tb,useReducedMotion:()=>tw}),e.exports=((e,t,n,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of o(t))a.call(e,n)||void 0===n||r(e,n,{get:()=>t[n],enumerable:!(s=i(t,n))||s.enumerable});return e})(r({},"__esModule",{value:!0}),l);var u={};s(u,{assign:()=>H,colors:()=>V,createStringInterpolator:()=>Z,skipAnimation:()=>I,to:()=>L,willAdvance:()=>B});var c=O(),d=e=>E(e,c),f=O();d.write=e=>E(e,f);var h=O();d.onStart=e=>E(e,h);var p=O();d.onFrame=e=>E(e,p);var m=O();d.onFinish=e=>E(e,m);var v=[];d.setTimeout=(e,t)=>{let n=d.now()+t,r=()=>{let e=v.findIndex(e=>e.cancel==r);~e&&v.splice(e,1),x-=~e?1:0},i={time:n,handler:e,cancel:r};return v.splice(g(n),0,i),x+=1,j(),i};var g=e=>~(~v.findIndex(t=>t.time>e)||~v.length);d.cancel=e=>{h.delete(e),p.delete(e),m.delete(e),c.delete(e),f.delete(e)},d.sync=e=>{w=!0,d.batchedUpdates(e),w=!1},d.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,d.onStart(n)}return r.handler=e,r.cancel=()=>{h.delete(n),t=null},r};var y="u">typeof window?window.requestAnimationFrame:()=>{};d.use=e=>y=e,d.now="u">typeof performance?()=>performance.now():Date.now,d.batchedUpdates=e=>e(),d.catch=console.error,d.frameLoop="always",d.advance=()=>{"demand"!==d.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):S()};var b=-1,x=0,w=!1;function E(e,t){w?(t.delete(e),e(0)):(t.add(e),j())}function j(){b<0&&(b=0,"demand"!==d.frameLoop&&y(k))}function k(){~b&&(y(k),d.batchedUpdates(S))}function S(){let e=b,t=g(b=d.now());if(t&&(_(v.splice(0,t),e=>e.handler()),x-=t),!x){b=-1;return}h.flush(),c.flush(e?Math.min(64,b-e):16.667),p.flush(),f.flush(),m.flush()}function O(){let e=new Set,t=e;return{add(n){x+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(x-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,x-=t.size,_(t,t=>t(n)&&e.add(t)),x+=e.size,t=e)}}}function _(e,t){e.forEach(e=>{try{t(e)}catch(e){d.catch(e)}})}function C(){}var M=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),A={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function T(e,t){if(A.arr(e)){if(!A.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function N(e,t,n){if(A.arr(e)){for(let r=0;rA.und(e)?[]:A.arr(e)?e:[e];function D(e,t){if(e.size){let n=Array.from(e);e.clear(),P(n,t)}}var Z,L,F=(e,...t)=>D(e,e=>e(...t)),z=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),V=null,I=!1,B=C,H=e=>{e.to&&(L=e.to),e.now&&(d.now=e.now),void 0!==e.colors&&(V=e.colors),null!=e.skipAnimation&&(I=e.skipAnimation),e.createStringInterpolator&&(Z=e.createStringInterpolator),e.requestAnimationFrame&&d.use(e.requestAnimationFrame),e.batchedUpdates&&(d.batchedUpdates=e.batchedUpdates),e.willAdvance&&(B=e.willAdvance),e.frameLoop&&(d.frameLoop=e.frameLoop)},U=new Set,W=[],q=[],$=0,Y={get idle(){return!U.size&&!W.length},start(e){$>e.priority?(U.add(e),d.onStart(G)):(K(e),d(Q))},advance:Q,sort(e){if($)d.onFrame(()=>Y.sort(e));else{let t=W.indexOf(e);~t&&(W.splice(t,1),X(e))}},clear(){W=[],U.clear()}};function G(){U.forEach(K),U.clear(),d(Q)}function K(e){W.includes(e)||X(e)}function X(e){var t;let n;W.splice((n=(t=W).findIndex(t=>t.priority>e.priority))<0?t.length:n,0,e)}function Q(e){let t=q;for(let n=0;n0}var J=(e,t,n)=>Math.min(Math.max(n,e),t),ee={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},et="[-+]?\\d*\\.?\\d+",en=et+"%";function er(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var ei=RegExp("rgb"+er(et,et,et)),eo=RegExp("rgba"+er(et,et,et,et)),ea=RegExp("hsl"+er(et,en,en)),es=RegExp("hsla"+er(et,en,en,et)),el=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,eu=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ec=/^#([0-9a-fA-F]{6})$/,ed=/^#([0-9a-fA-F]{8})$/;function ef(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function eh(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;return Math.round(255*ef(i,r,e+1/3))<<24|Math.round(255*ef(i,r,e))<<16|Math.round(255*ef(i,r,e-1/3))<<8}function ep(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function em(e){return(parseFloat(e)%360+360)%360/360}function ev(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function eg(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function ey(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ec.exec(e))?parseInt(t[1]+"ff",16)>>>0:V&&void 0!==V[e]?V[e]:(t=ei.exec(e))?(ep(t[1])<<24|ep(t[2])<<16|ep(t[3])<<8|255)>>>0:(t=eo.exec(e))?(ep(t[1])<<24|ep(t[2])<<16|ep(t[3])<<8|ev(t[4]))>>>0:(t=el.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ed.exec(e))?parseInt(t[1],16)>>>0:(t=eu.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ea.exec(e))?(255|eh(em(t[1]),eg(t[2]),eg(t[3])))>>>0:(t=es.exec(e))?(eh(em(t[1]),eg(t[2]),eg(t[3]))|ev(t[4]))>>>0:null;return null===n?e:`rgba(${(4278190080&(n=n||0))>>>24}, ${(16711680&n)>>>16}, ${(65280&n)>>>8}, ${(255&n)/255})`}var eb=(e,t,n)=>{if(A.fun(e))return e;if(A.arr(e))return eb({range:e,output:t,extrapolate:n});if(A.str(e.output[0]))return Z(e);let r=e.output,i=e.range||[0,1],o=e.extrapolateLeft||e.extrapolate||"extend",a=e.extrapolateRight||e.extrapolate||"extend",s=e.easing||(e=>e);return t=>{let n=function(e,t){for(var n=1;n=e);++n);return n-1}(t,i);return function(e,t,n,r,i,o,a,s,l){let u=l?l(e):e;if(un){if("identity"===s)return u;"clamp"===s&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=o(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r,u)}(t,i[n],i[n+1],r[n],r[n+1],s,o,a,e.map)}},ex=2*Math.PI/3,ew=2*Math.PI/4.5,eE=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,ej={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>2.70158*e*e*e-1.70158*e*e,easeOutBack:e=>1+2.70158*Math.pow(e-1,3)+1.70158*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(3.5949095*2*e-2.5949095)/2:(Math.pow(2*e-2,2)*(3.5949095*(2*e-2)+2.5949095)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*ex),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*ex)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*ew))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*ew)/2+1,easeInBounce:e=>1-eE(1-e),easeOutBounce:eE,easeInOutBounce:e=>e<.5?(1-eE(1-2*e))/2:(1+eE(2*e-1))/2,steps:(e,t="end")=>n=>{let r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return J(0,1,("end"===t?Math.floor(r):Math.ceil(r))/e)}},ek=Symbol.for("FluidValue.get"),eS=Symbol.for("FluidValue.observers"),eO=e=>!!(e&&e[ek]),e_=e=>e&&e[ek]?e[ek]():e,eC=e=>e[eS]||null;function eM(e,t){e.eventObserved?e.eventObserved(t):e(t)}function eA(e,t){let n=e[eS];n&&n.forEach(e=>{eM(e,t)})}var eT=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");eP(this,e)}},eP=(e,t)=>eZ(e,ek,t);function eN(e,t){if(e[ek]){let n=e[eS];n||eZ(e,eS,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function eR(e,t){let n=e[eS];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[eS]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var eD,eZ=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),eL=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,eF=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ez=RegExp(`(${eL.source})(%|[a-z]+)`,"i"),eV=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,eI=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,eB=e=>{let[t,n]=eH(e);if(!t||z())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);return r?r.trim():n&&n.startsWith("--")?window.getComputedStyle(document.documentElement).getPropertyValue(n)||e:n&&eI.test(n)?eB(n):n||e},eH=e=>{let t=eI.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},eU=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,eW=e=>{eD||(eD=V?RegExp(`(${Object.keys(V).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>e_(e).replace(eI,eB).replace(eF,ey).replace(eD,ey)),n=t.map(e=>e.match(eL).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>eb({...e,output:t}));return e=>{let n=!ez.test(t[0])&&t.find(e=>ez.test(e))?.replace(eL,""),i=0;return t[0].replace(eL,()=>`${r[i++](e)}${n||""}`).replace(eV,eU)}},eq="react-spring: ",e$=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${eq}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},eY=e$(console.warn);function eG(){eY(`${eq}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var eK=e$(console.warn);function eX(){eK(`${eq}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function eQ(e){return A.str(e)&&("#"==e[0]||/\d/.test(e)||!z()&&eI.test(e)||e in(V||{}))}var eJ,e0,e1=new WeakMap,e2=e=>e.forEach(({target:e,contentRect:t})=>e1.get(e)?.forEach(e=>e(t))),e4=new Set,e3=()=>{let e=()=>{e4.forEach(e=>e({width:window.innerWidth,height:window.innerHeight}))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},e5=e=>(e4.add(e),e0||(e0=e3()),()=>{e4.delete(e),!e4.size&&e0&&(e0(),e0=void 0)}),e6=(e,{container:t=document.documentElement}={})=>{let n;return t===document.documentElement?e5(e):(eJ||"u">typeof ResizeObserver&&(eJ=new ResizeObserver(e2)),(n=e1.get(t))||(n=new Set,e1.set(t,n)),n.add(e),eJ&&eJ.observe(t),()=>{let n=e1.get(t);n&&(n.delete(e),!n.size&&eJ&&eJ.unobserve(t))})},e8=(e,t,n)=>t-e==0?1:(n-e)/(t-e),e7={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}},e9=class{constructor(e,t){this.createAxis=()=>({current:0,progress:0,scrollLength:0}),this.updateAxis=e=>{let t=this.info[e],{length:n,position:r}=e7[e];t.current=this.container[`scroll${r}`],t.scrollLength=this.container["scroll"+n]-this.container["client"+n],t.progress=e8(0,t.scrollLength,t.current)},this.update=()=>{this.updateAxis("x"),this.updateAxis("y")},this.sendEvent=()=>{this.callback(this.info)},this.advance=()=>{this.update(),this.sendEvent()},this.callback=e,this.container=t,this.info={time:0,x:this.createAxis(),y:this.createAxis()}}},te=new WeakMap,tt=new WeakMap,tn=new WeakMap,tr=e=>e===document.documentElement?window:e,ti=(e,{container:t=document.documentElement}={})=>{let n=tn.get(t);n||(n=new Set,tn.set(t,n));let r=new e9(e,t);if(n.add(r),!te.has(t)){let e=()=>(n?.forEach(e=>e.advance()),!0);te.set(t,e);let r=tr(t);window.addEventListener("resize",e,{passive:!0}),t!==document.documentElement&&tt.set(t,e6(e,{container:t})),r.addEventListener("scroll",e,{passive:!0})}let i=te.get(t);return d(i),()=>{d.cancel(i);let e=tn.get(t);if(!e||(e.delete(r),e.size))return;let n=te.get(t);te.delete(t),n&&(tr(t).removeEventListener("scroll",n),window.removeEventListener("resize",n),tt.get(t)?.())}},to=n(2784);function ta(e){let t=(0,to.useRef)(null);return null===t.current&&(t.current=e()),t.current}var ts=n(2784),tl=n(2784),tu=n(2784),tc=z()?tu.useEffect:tu.useLayoutEffect,td=()=>{let e=(0,tl.useRef)(!1);return tc(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function tf(){let e=(0,ts.useState)()[1],t=td();return()=>{t.current&&e(Math.random())}}var th=n(2784);function tp(e,t){let[n]=(0,th.useState)(()=>({inputs:t,result:e()})),r=(0,th.useRef)(),i=r.current,o=i;return o?t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}var tm=n(2784),tv=e=>(0,tm.useEffect)(e,tg),tg=[],ty=n(2784);function tb(e){let t=(0,ty.useRef)();return(0,ty.useEffect)(()=>{t.current=e}),t.current}var tx=n(2784),tw=()=>{let[e,t]=(0,tx.useState)(null);return tc(()=>{let e=window.matchMedia("(prefers-reduced-motion)"),n=e=>{t(e.matches),H({skipAnimation:e.matches})};return n(e),e.addEventListener("change",n),()=>{e.removeEventListener("change",n)}},[]),e}},19455:function(e){"use strict";var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,o={};((e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})})(o,{Any:()=>a}),e.exports=((e,o,a,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let a of r(o))i.call(e,a)||void 0===a||t(e,a,{get:()=>o[a],enumerable:!(s=n(o,a))||s.enumerable});return e})(t({},"__esModule",{value:!0}),o);var a=class{}},96721:function(e,t,n){"use strict";var r,i,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))l.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},c={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(c,{a:()=>M,animated:()=>M}),e.exports=u(o({},"__esModule",{value:!0}),c);var d=n(99550),f=n(28316),h=n(6901),p=n(25447),m=/^--/,v={},g={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},y=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),b=["Webkit","Ms","Moz","O"];g=Object.keys(g).reduce((e,t)=>(b.forEach(n=>e[y(n,t)]=e[t]),e),g);var x=n(25447),w=n(6901),E=/^(matrix|translate|scale|rotate|skew)/,j=/^(translate)/,k=/^(rotate|skew)/,S=(e,t)=>w.is.num(e)&&0!==e?e+t:e,O=(e,t)=>w.is.arr(e)?e.every(e=>O(e,t)):w.is.num(e)?e===t:parseFloat(e)===t,_=class extends x.AnimatedObject{constructor({x:e,y:t,z:n,...r}){let i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(e=>[`translate3d(${e.map(e=>S(e,"px")).join(",")})`,O(e,0)])),(0,w.eachProp)(r,(e,t)=>{if("transform"===t)i.push([e||""]),o.push(e=>[e,""===e]);else if(E.test(t)){if(delete r[t],w.is.und(e))return;let n=j.test(t)?"px":k.test(t)?"deg":"";i.push((0,w.toArray)(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${S(i,n)})`,O(i,0)]:e=>[`${t}(${e.map(e=>S(e,n)).join(",")})`,O(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new C(i,o)),super(r)}},C=class extends w.FluidValue{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return(0,w.each)(this.inputs,(n,r)=>{let i=(0,w.getFluidValue)(n[0]),[o,a]=this.transforms[r](w.is.arr(i)?i:n.map(w.getFluidValue));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){1==e&&(0,w.each)(this.inputs,e=>(0,w.each)(e,e=>(0,w.hasFluidValue)(e)&&(0,w.addFluidObserver)(e,this)))}observerRemoved(e){0==e&&(0,w.each)(this.inputs,e=>(0,w.each)(e,e=>(0,w.hasFluidValue)(e)&&(0,w.removeFluidObserver)(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),(0,w.callFluidObservers)(this,e)}};r=n(99550),i=e.exports,u(c,r,"default"),i&&u(i,r,"default"),d.Globals.assign({batchedUpdates:f.unstable_batchedUpdates,createStringInterpolator:h.createStringInterpolator,colors:h.colors});var M=(0,p.createHost)(["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"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:i,scrollTop:o,scrollLeft:a,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(t=>n||e.hasAttribute(t)?t:v[t]||(v[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==i&&(e.textContent=i),r)if(r.hasOwnProperty(t)){var d;let n=null==(d=r[t])||"boolean"==typeof d||""===d?"":"number"!=typeof d||0===d||m.test(t)||g.hasOwnProperty(t)&&g[t]?(""+d).trim():d+"px";m.test(t)?e.style.setProperty(t,n):e.style[t]=n}c.forEach((t,n)=>{e.setAttribute(t,u[n])}),void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new _(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated},7896:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t"boolean"==typeof e?"".concat(e):0===e?"0":e,i=function(){for(var e,t,n=0,r="";nn=>{var o;if((null==t?void 0:t.variants)==null)return i(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(e=>{let t=null==n?void 0:n[e],i=null==s?void 0:s[e];if(null===t)return null;let o=r(t)||r(i);return a[e][o]}),u=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),c=null==t?void 0:null===(o=t.compoundVariants)||void 0===o?void 0:o.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...s,...u}[t]):({...s,...u})[t]===n})?[...e,n,r]:e},[]);return i(e,l,c,null==n?void 0:n.class,null==n?void 0:n.className)}},99182:function(e,t,n){"use strict";n.d(t,{U8:function(){return A},mY:function(){return S}});var r=n(72331),i=n(2784),o=n(40844),a='[cmdk-group=""]',s='[cmdk-group-items=""]',l='[cmdk-item=""]',u=`${l}:not([aria-disabled="true"])`,c="cmdk-item-select",d="data-value",f=(e,t)=>o(e,t),h=i.createContext(void 0),p=()=>i.useContext(h),m=i.createContext(void 0),v=()=>i.useContext(m),g=i.createContext(void 0),y=i.forwardRef((e,t)=>{let n=i.useRef(null),r=C(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),o=C(()=>new Set),p=C(()=>new Map),v=C(()=>new Map),g=C(()=>new Set),y=O(e),{label:b,children:x,value:w,onValueChange:E,filter:j,shouldFilter:k,...S}=e,A=i.useId(),T=i.useId(),R=i.useId(),D=P();_(()=>{if(void 0!==w){let e=w.trim().toLowerCase();r.current.value=e,D(6,B),Z.emit()}},[w]);let Z=i.useMemo(()=>({subscribe:e=>(g.current.add(e),()=>g.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var i,o,a;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)I(),z(),D(1,V);else if("value"===e){if((null==(i=y.current)?void 0:i.value)!==void 0){null==(a=(o=y.current).onValueChange)||a.call(o,t);return}n||D(5,B)}Z.emit()}},emit:()=>{g.current.forEach(e=>e())}}),[]),L=i.useMemo(()=>({value:(e,t)=>{t!==v.current.get(e)&&(v.current.set(e,t),r.current.filtered.items.set(e,F(t)),D(2,()=>{z(),Z.emit()}))},item:(e,t)=>(o.current.add(e),t&&(p.current.has(t)?p.current.get(t).add(e):p.current.set(t,new Set([e]))),D(3,()=>{I(),z(),r.current.value||V(),Z.emit()}),()=>{v.current.delete(e),o.current.delete(e),r.current.filtered.items.delete(e),D(4,()=>{I(),V(),Z.emit()})}),group:e=>(p.current.has(e)||p.current.set(e,new Set),()=>{v.current.delete(e),p.current.delete(e)}),filter:()=>y.current.shouldFilter,label:b||e["aria-label"],listId:A,inputId:R,labelId:T}),[]);function F(e){var t;let n=(null==(t=y.current)?void 0:t.filter)??f;return e?n(e,r.current.search):0}function z(){if(!n.current||!r.current.search||!1===y.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(n=>{let r=p.current.get(n),i=0;r.forEach(t=>{i=Math.max(e.get(t),i)}),t.push([n,i])});let i=n.current.querySelector('[cmdk-list-sizer=""]');U().sort((t,n)=>{let r=t.getAttribute(d),i=n.getAttribute(d);return(e.get(i)??0)-(e.get(r)??0)}).forEach(e=>{let t=e.closest(s);t?t.appendChild(e.parentElement===t?e:e.closest(`${s} > *`)):i.appendChild(e.parentElement===i?e:e.closest(`${s} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{let t=n.current.querySelector(`${a}[${d}="${e[0]}"]`);null==t||t.parentElement.appendChild(t)})}function V(){let e=U().find(e=>!e.ariaDisabled),t=null==e?void 0:e.getAttribute(d);Z.setState("value",t||void 0)}function I(){if(!r.current.search||!1===y.current.shouldFilter){r.current.filtered.count=o.current.size;return}r.current.filtered.groups=new Set;let e=0;for(let t of o.current){let n=F(v.current.get(t));r.current.filtered.items.set(t,n),n>0&&e++}for(let[e,t]of p.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=e}function B(){var e,t,n;let r=H();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(a))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function H(){return n.current.querySelector(`${l}[aria-selected="true"]`)}function U(){return Array.from(n.current.querySelectorAll(u))}function W(e){let t=U()[e];t&&Z.setState("value",t.getAttribute(d))}function q(e){var t;let n=H(),r=U(),i=r.findIndex(e=>e===n),o=r[i+e];null!=(t=y.current)&&t.loop&&(o=i+e<0?r[r.length-1]:i+e===r.length?r[0]:r[i+e]),o&&Z.setState("value",o.getAttribute(d))}function $(e){let t=H(),n=null==t?void 0:t.closest(a),r;for(;n&&!r;)r=null==(n=e>0?function(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}(n,a):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,a))?void 0:n.querySelector(u);r?Z.setState("value",r.getAttribute(d)):q(e)}let Y=()=>W(U().length-1),G=e=>{e.preventDefault(),e.metaKey?Y():e.altKey?$(1):q(1)},K=e=>{e.preventDefault(),e.metaKey?W(0):e.altKey?$(-1):q(-1)};return i.createElement("div",{ref:M([n,t]),...S,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=S.onKeyDown)||t.call(S,e),!e.defaultPrevented)switch(e.key){case"n":case"j":e.ctrlKey&&G(e);break;case"ArrowDown":G(e);break;case"p":case"k":e.ctrlKey&&K(e);break;case"ArrowUp":K(e);break;case"Home":e.preventDefault(),W(0);break;case"End":e.preventDefault(),Y();break;case"Enter":{e.preventDefault();let t=H();if(t){let e=new Event(c);t.dispatchEvent(e)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:L.inputId,id:L.labelId,style:N},b),i.createElement(m.Provider,{value:Z},i.createElement(h.Provider,{value:L},x)))}),b=i.forwardRef((e,t)=>{let n=i.useId(),r=i.useRef(null),o=i.useContext(g),a=p(),s=O(e);_(()=>a.item(n,o),[]);let l=T(n,r,[e.value,e.children,r]),u=v(),d=A(e=>e.value&&e.value===l.current),f=A(e=>!1===a.filter()||!e.search||e.filtered.items.get(n)>0);function h(){var e,t;null==(t=(e=s.current).onSelect)||t.call(e,l.current)}if(i.useEffect(()=>{let t=r.current;if(!(!t||e.disabled))return t.addEventListener(c,h),()=>t.removeEventListener(c,h)},[f,e.onSelect,e.disabled]),!f)return null;let{disabled:m,value:y,onSelect:b,...x}=e;return i.createElement("div",{ref:M([r,t]),...x,"cmdk-item":"",role:"option","aria-disabled":m||void 0,"aria-selected":d||void 0,"data-selected":d||void 0,onPointerMove:m?void 0:function(){u.setState("value",l.current,!0)},onClick:m?void 0:h},e.children)}),x=i.forwardRef((e,t)=>{let{heading:n,children:r,...o}=e,a=i.useId(),s=i.useRef(null),l=i.useRef(null),u=i.useId(),c=p(),d=A(e=>!1===c.filter()||!e.search||e.filtered.groups.has(a));_(()=>c.group(a),[]),T(a,s,[e.value,e.heading,l]);let f=i.createElement(g.Provider,{value:a},r);return i.createElement("div",{ref:M([s,t]),...o,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&i.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),i.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},f))}),w=i.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=i.useRef(null),a=A(e=>!e.search);return n||a?i.createElement("div",{ref:M([o,t]),...r,"cmdk-separator":"",role:"separator"}):null}),E=i.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,a=v(),s=A(e=>e.search),l=p();return i.useEffect(()=>{null!=e.value&&a.setState("search",e.value)},[e.value]),i.createElement("input",{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,id:l.inputId,type:"text",value:o?e.value:s,onChange:e=>{o||a.setState("search",e.target.value),null==n||n(e.target.value)}})}),j=i.forwardRef((e,t)=>{let{children:n,...r}=e,o=i.useRef(null),a=i.useRef(null),s=p();return i.useEffect(()=>{if(a.current&&o.current){let e=a.current,t=o.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.getBoundingClientRect().height;t.style.setProperty("--cmdk-list-height",n.toFixed(1)+"px")})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),i.createElement("div",{ref:M([o,t]),...r,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:s.listId,"aria-labelledby":s.inputId},i.createElement("div",{ref:a,"cmdk-list-sizer":""},n))}),k=i.forwardRef((e,t)=>{let{open:n,onOpenChange:o,container:a,...s}=e;return i.createElement(r.fC,{open:n,onOpenChange:o},i.createElement(r.h_,{container:a},i.createElement(r.aV,{"cmdk-overlay":""}),i.createElement(r.VY,{"aria-label":e.label,"cmdk-dialog":""},i.createElement(y,{ref:t,...s}))))}),S=Object.assign(y,{List:j,Item:b,Input:E,Group:x,Separator:w,Dialog:k,Empty:i.forwardRef((e,t)=>{let n=i.useRef(!0),r=A(e=>0===e.filtered.count);return i.useEffect(()=>{n.current=!1},[]),n.current||!r?null:i.createElement("div",{ref:t,...e,"cmdk-empty":"",role:"presentation"})}),Loading:i.forwardRef((e,t)=>{let{progress:n,children:r,...o}=e;return i.createElement("div",{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},i.createElement("div",{"aria-hidden":!0},r))})});function O(e){let t=i.useRef(e);return _(()=>{t.current=e}),t}var _=typeof window>"u"?i.useEffect:i.useLayoutEffect;function C(e){let t=i.useRef();return void 0===t.current&&(t.current=e()),t}function M(e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}function A(e){let t=v(),n=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,n,n)}function T(e,t,n){let r=i.useRef(),o=p();return _(()=>{var i;let a=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim().toLowerCase();if("object"==typeof t&&"current"in t&&t.current)return null==(e=t.current.textContent)?void 0:e.trim().toLowerCase()}})();o.value(e,a),null==(i=t.current)||i.setAttribute(d,a),r.current=a}),r}var P=()=>{let[e,t]=i.useState(),n=C(()=>new Map);return _(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}},N={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},96300:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(78804),i=function(e,t){for(var n=e.length;n--;)if((0,r.Z)(e[n][0],t))return n;return -1},o=Array.prototype.splice;function a(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},a.prototype.set=function(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var s=a},38896:function(e,t,n){"use strict";var r=n(62411),i=n(93221),o=(0,r.Z)(i.Z,"Map");t.Z=o},23549:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=(0,n(62411).Z)(Object,"create"),i=Object.prototype.hasOwnProperty,o=Object.prototype.hasOwnProperty;function a(e){var t=-1,n=null==e?0:e.length;for(this.clear();++tc))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,v=2&n?new i.Z:void 0;for(l.set(e,t),l.set(t,e);++pt||o&&a&&l&&!s&&!u||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!u&&e=s)return l;return l*("desc"==n[r]?-1:1)}}return e.index-t.index},p=n(89930),m=n(97885),v=function(e,t,n){t=t.length?(0,r.Z)(t,function(e){return(0,m.Z)(e)?function(t){return(0,i.Z)(t,1===e.length?e[0]:e)}:e}):[p.Z];var a=-1;return t=(0,r.Z)(t,(0,c.Z)(o.Z)),u(l(e,function(e,n,i){return{criteria:(0,r.Z)(t,function(t){return t(e)}),index:++a,value:e}}),function(e,t){return h(e,t,n)})}},82472:function(e,t){"use strict";t.Z=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r=i?e:(0,r.Z)(e,t,n)}},31162:function(e,t){"use strict";t.Z=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}},93122:function(e,t){"use strict";t.Z=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},43391:function(e,t){"use strict";t.Z=function(e){return null!=e&&"object"==typeof e}},65255:function(e,t,n){"use strict";var r=n(98147),i=n(29552),o=n(43391),a=Object.prototype,s=Function.prototype.toString,l=a.hasOwnProperty,u=s.call(Object);t.Z=function(e){if(!(0,o.Z)(e)||"[object Object]"!=(0,r.Z)(e))return!1;var t=(0,i.Z)(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==u}},22758:function(e,t,n){"use strict";var r=n(98147),i=n(43391);t.Z=function(e){return"symbol"==typeof e||(0,i.Z)(e)&&"[object Symbol]"==(0,r.Z)(e)}},48532:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(98147),i=n(61164),o=n(43391),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var s=n(93225),l=n(37755),u=l.Z&&l.Z.isTypedArray,c=u?(0,s.Z)(u):function(e){return(0,o.Z)(e)&&(0,i.Z)(e.length)&&!!a[(0,r.Z)(e)]}},6623:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(45423),i=n(15441),o=(0,n(76048).Z)(Object.keys,Object),a=Object.prototype.hasOwnProperty,s=function(e){if(!(0,i.Z)(e))return o(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t},l=n(63282),u=function(e){return(0,l.Z)(e)?(0,r.Z)(e):s(e)}},17816:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(45423),i=n(93122),o=n(15441),a=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},s=Object.prototype.hasOwnProperty,l=function(e){if(!(0,i.Z)(e))return a(e);var t=(0,o.Z)(e),n=[];for(var r in e)"constructor"==r&&(t||!s.call(e,r))||n.push(r);return n},u=n(63282),c=function(e){return(0,u.Z)(e)?(0,r.Z)(e,!0):l(e)}},70813:function(e,t){"use strict";t.Z=function(){return[]}},25186:function(e,t,n){"use strict";var r=n(79200);t.Z=function(e){return null==e?"":(0,r.Z)(e)}},63955:function(e,t,n){"use strict";n.d(t,{cI:function(){return em}});var r=n(2784),i=e=>"checkbox"===e.type,o=e=>e instanceof Date,a=e=>null==e;let s=e=>"object"==typeof e;var l=e=>!a(e)&&!Array.isArray(e)&&s(e)&&!o(e),u=e=>l(e)&&e.target?i(e.target)?e.target.checked:e.target.value:e,c=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,d=(e,t)=>e.has(c(t)),f=e=>{let t=e.constructor&&e.constructor.prototype;return l(t)&&t.hasOwnProperty("isPrototypeOf")},h="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function p(e){let t;let n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(h&&(e instanceof Blob||e instanceof FileList))&&(n||l(e))))return e;else if(t=n?[]:{},Array.isArray(e)||f(e))for(let n in e)t[n]=p(e[n]);else t=e;return t}var m=e=>Array.isArray(e)?e.filter(Boolean):[],v=e=>void 0===e,g=(e,t,n)=>{if(!t||!l(e))return n;let r=m(t.split(/[,[\].]+?/)).reduce((e,t)=>a(e)?e:e[t],e);return v(r)||r===e?v(e[t])?n:e[t]:r};let y={BLUR:"blur",FOCUS_OUT:"focusout"},b={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},x={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};r.createContext(null);var w=(e,t,n,r=!0)=>{let i={defaultValues:t._defaultValues};for(let o in e)Object.defineProperty(i,o,{get:()=>(t._proxyFormState[o]!==b.all&&(t._proxyFormState[o]=!r||b.all),n&&(n[o]=!0),e[o])});return i},E=e=>l(e)&&!Object.keys(e).length,j=(e,t,n,r)=>{n(e);let{name:i,...o}=e;return E(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(e=>t[e]===(!r||b.all))},k=e=>Array.isArray(e)?e:[e],S=e=>"string"==typeof e,O=(e,t,n,r,i)=>S(e)?(r&&t.watch.add(e),g(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),g(n,e))):(r&&(t.watchAll=!0),n),_=e=>/^\w*$/.test(e),C=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/));function M(e,t,n){let r=-1,i=_(t)?[t]:C(t),o=i.length,a=o-1;for(;++rt?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};let T=(e,t,n)=>{for(let r of n||Object.keys(e)){let n=g(e,r);if(n){let{_f:e,...r}=n;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else l(r)&&T(r,t)}}};var P=e=>({isOnSubmit:!e||e===b.onSubmit,isOnBlur:e===b.onBlur,isOnChange:e===b.onChange,isOnAll:e===b.all,isOnTouch:e===b.onTouched}),N=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),R=(e,t,n)=>{let r=m(g(e,n));return M(r,"root",t[n]),M(e,n,r),e},D=e=>"boolean"==typeof e,Z=e=>"file"===e.type,L=e=>"function"==typeof e,F=e=>{if(!h)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},z=e=>S(e),V=e=>"radio"===e.type,I=e=>e instanceof RegExp;let B={value:!1,isValid:!1},H={value:!0,isValid:!0};var U=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!v(e[0].attributes.value)?v(e[0].value)||""===e[0].value?H:{value:e[0].value,isValid:!0}:H:B}return B};let W={isValid:!1,value:null};var q=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,W):W;function $(e,t,n="validate"){if(z(e)||Array.isArray(e)&&e.every(z)||D(e)&&!e)return{type:n,message:z(e)?e:"",ref:t}}var Y=e=>l(e)&&!I(e)?e:{value:e,message:""},G=async(e,t,n,r,o)=>{let{ref:s,refs:u,required:c,maxLength:d,minLength:f,min:h,max:p,pattern:m,validate:y,name:b,valueAsNumber:w,mount:j,disabled:k}=e._f,O=g(t,b);if(!j||k)return{};let _=u?u[0]:s,C=e=>{r&&_.reportValidity&&(_.setCustomValidity(D(e)?"":e||""),_.reportValidity())},M={},T=V(s),P=i(s),N=(w||Z(s))&&v(s.value)&&v(O)||F(s)&&""===s.value||""===O||Array.isArray(O)&&!O.length,R=A.bind(null,b,n,M),B=(e,t,n,r=x.maxLength,i=x.minLength)=>{let o=e?t:n;M[b]={type:e?r:i,message:o,ref:s,...R(e?r:i,o)}};if(o?!Array.isArray(O)||!O.length:c&&(!(T||P)&&(N||a(O))||D(O)&&!O||P&&!U(u).isValid||T&&!q(u).isValid)){let{value:e,message:t}=z(c)?{value:!!c,message:c}:Y(c);if(e&&(M[b]={type:x.required,message:t,ref:_,...R(x.required,t)},!n))return C(t),M}if(!N&&(!a(h)||!a(p))){let e,t;let r=Y(p),i=Y(h);if(a(O)||isNaN(O)){let n=s.valueAsDate||new Date(O),o=e=>new Date(new Date().toDateString()+" "+e),a="time"==s.type,l="week"==s.type;S(r.value)&&O&&(e=a?o(O)>o(r.value):l?O>r.value:n>new Date(r.value)),S(i.value)&&O&&(t=a?o(O)r.value),a(i.value)||(t=n+e.value,i=!a(t.value)&&O.length<+t.value;if((r||i)&&(B(r,e.message,t.message),!n))return C(M[b].message),M}if(m&&!N&&S(O)){let{value:e,message:t}=Y(m);if(I(e)&&!O.match(e)&&(M[b]={type:x.pattern,message:t,ref:s,...R(x.pattern,t)},!n))return C(t),M}if(y){if(L(y)){let e=await y(O,t),r=$(e,_);if(r&&(M[b]={...r,...R(x.validate,r.message)},!n))return C(r.message),M}else if(l(y)){let e={};for(let r in y){if(!E(e)&&!n)break;let i=$(await y[r](O,t),_,r);i&&(e={...i,...R(r,i.message)},C(i.message),n&&(M[b]=e))}if(!E(e)&&(M[b]={ref:_,...e},!n))return M}}return C(!0),M};function K(e,t){let n=Array.isArray(t)?t:_(t)?[t]:C(t),r=1===n.length?e:function(e,t){let n=t.slice(0,-1).length,r=0;for(;r{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}}var Q=e=>a(e)||!s(e);function J(e,t){if(Q(e)||Q(t))return e===t;if(o(e)&&o(t))return e.getTime()===t.getTime();let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n){let n=e[i];if(!r.includes(i))return!1;if("ref"!==i){let e=t[i];if(o(n)&&o(e)||l(n)&&l(e)||Array.isArray(n)&&Array.isArray(e)?!J(n,e):n!==e)return!1}}return!0}var ee=e=>"select-multiple"===e.type,et=e=>V(e)||i(e),en=e=>F(e)&&e.isConnected,er=e=>{for(let t in e)if(L(e[t]))return!0;return!1};function ei(e,t={}){let n=Array.isArray(e);if(l(e)||n)for(let n in e)Array.isArray(e[n])||l(e[n])&&!er(e[n])?(t[n]=Array.isArray(e[n])?[]:{},ei(e[n],t[n])):a(e[n])||(t[n]=!0);return t}var eo=(e,t)=>(function e(t,n,r){let i=Array.isArray(t);if(l(t)||i)for(let i in t)Array.isArray(t[i])||l(t[i])&&!er(t[i])?v(n)||Q(r[i])?r[i]=Array.isArray(t[i])?ei(t[i],[]):{...ei(t[i])}:e(t[i],a(n)?{}:n[i],r[i]):r[i]=!J(t[i],n[i]);return r})(e,t,ei(t)),ea=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>v(e)?e:t?""===e?NaN:e?+e:e:n&&S(e)?new Date(e):r?r(e):e;function es(e){let t=e.ref;return(e.refs?e.refs.every(e=>e.disabled):t.disabled)?void 0:Z(t)?t.files:V(t)?q(e.refs).value:ee(t)?[...t.selectedOptions].map(({value:e})=>e):i(t)?U(e.refs).value:ea(v(t.value)?e.ref.value:t.value,e)}var el=(e,t,n,r)=>{let i={};for(let n of e){let e=g(t,n);e&&M(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},eu=e=>v(e)?e:I(e)?e.source:l(e)?I(e.value)?e.value.source:e.value:e,ec=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ed(e,t,n){let r=g(e,n);if(r||_(n))return{error:r,name:n};let i=n.split(".");for(;i.length;){let r=i.join("."),o=g(t,r),a=g(e,r);if(o&&!Array.isArray(o)&&n!==r)break;if(a&&a.type)return{name:r,error:a};i.pop()}return{name:n}}var ef=(e,t,n,r,i)=>!i.isOnAll&&(!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?!r.isOnChange:!i.isOnChange)||e),eh=(e,t)=>!m(g(e,t)).length&&K(e,t);let ep={mode:b.onSubmit,reValidateMode:b.onChange,shouldFocusError:!0};function em(e={}){let t=r.useRef(),[n,s]=r.useState({isDirty:!1,isValidating:!1,isLoading:L(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:L(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...function(e={},t){let n,r={...ep,...e},s={submitCount:0,isDirty:!1,isLoading:L(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},c={},f=(l(r.defaultValues)||l(r.values))&&p(r.defaultValues||r.values)||{},x=r.shouldUnregister?{}:p(f),w={action:!1,mount:!1,watch:!1},j={mount:new Set,unMount:new Set,array:new Set,watch:new Set},_=0,C={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},A={values:X(),array:X(),state:X()},z=e.resetOptions&&e.resetOptions.keepDirtyValues,V=P(r.mode),I=P(r.reValidateMode),B=r.criteriaMode===b.all,H=e=>t=>{clearTimeout(_),_=setTimeout(e,t)},U=async e=>{if(C.isValid||e){let e=r.resolver?E((await ei()).errors):await ev(c,!0);e!==s.isValid&&A.state.next({isValid:e})}},W=e=>C.isValidating&&A.state.next({isValidating:e}),q=(e,t)=>{M(s.errors,e,t),A.state.next({errors:s.errors})},$=(e,t,n,r)=>{let i=g(c,e);if(i){let o=g(x,e,v(n)?g(f,e):n);v(o)||r&&r.defaultChecked||t?M(x,e,t?o:es(i._f)):eb(e,o),w.mount&&U()}},Y=(e,t,n,r,i)=>{let o=!1,a=!1,l={name:e};if(!n||r){C.isDirty&&(a=s.isDirty,s.isDirty=l.isDirty=eg(),o=a!==l.isDirty);let n=J(g(f,e),t);a=g(s.dirtyFields,e),n?K(s.dirtyFields,e):M(s.dirtyFields,e,!0),l.dirtyFields=s.dirtyFields,o=o||C.dirtyFields&&!n!==a}if(n){let t=g(s.touchedFields,e);t||(M(s.touchedFields,e,n),l.touchedFields=s.touchedFields,o=o||C.touchedFields&&t!==n)}return o&&i&&A.state.next(l),o?l:{}},er=(t,r,i,o)=>{let a=g(s.errors,t),l=C.isValid&&D(r)&&s.isValid!==r;if(e.delayError&&i?(n=H(()=>q(t,i)))(e.delayError):(clearTimeout(_),n=null,i?M(s.errors,t,i):K(s.errors,t)),(i?!J(a,i):a)||!E(o)||l){let e={...o,...l&&D(r)?{isValid:r}:{},errors:s.errors,name:t};s={...s,...e},A.state.next(e)}W(!1)},ei=async e=>r.resolver(x,r.context,el(e||j.mount,c,r.criteriaMode,r.shouldUseNativeValidation)),em=async e=>{let{errors:t}=await ei();if(e)for(let n of e){let e=g(t,n);e?M(s.errors,n,e):K(s.errors,n)}else s.errors=t;return t},ev=async(e,t,n={valid:!0})=>{for(let i in e){let o=e[i];if(o){let{_f:e,...i}=o;if(e){let i=j.array.has(e.name),a=await G(o,x,B,r.shouldUseNativeValidation&&!t,i);if(a[e.name]&&(n.valid=!1,t))break;t||(g(a,e.name)?i?R(s.errors,a,e.name):M(s.errors,e.name,a[e.name]):K(s.errors,e.name))}i&&await ev(i,t,n)}}return n.valid},eg=(e,t)=>(e&&t&&M(x,e,t),!J(ek(),f)),ey=(e,t,n)=>O(e,j,{...w.mount?x:v(t)?f:S(e)?{[e]:t}:t},n,t),eb=(e,t,n={})=>{let r=g(c,e),o=t;if(r){let n=r._f;n&&(n.disabled||M(x,e,ea(t,n)),o=F(n.ref)&&a(t)?"":t,ee(n.ref)?[...n.ref.options].forEach(e=>e.selected=o.includes(e.value)):n.refs?i(n.ref)?n.refs.length>1?n.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find(t=>t===e.value):o===e.value)):n.refs[0]&&(n.refs[0].checked=!!o):n.refs.forEach(e=>e.checked=e.value===o):Z(n.ref)?n.ref.value="":(n.ref.value=o,n.ref.type||A.values.next({name:e,values:{...x}})))}(n.shouldDirty||n.shouldTouch)&&Y(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&ej(e)},ex=(e,t,n)=>{for(let r in t){let i=t[r],a=`${e}.${r}`,s=g(c,a);!j.array.has(e)&&Q(i)&&(!s||s._f)||o(i)?eb(a,i,n):ex(a,i,n)}},ew=(e,n,r={})=>{let i=g(c,e),o=j.array.has(e),l=p(n);M(x,e,l),o?(A.array.next({name:e,values:{...x}}),(C.isDirty||C.dirtyFields)&&r.shouldDirty&&A.state.next({name:e,dirtyFields:eo(f,x),isDirty:eg(e,l)})):!i||i._f||a(l)?eb(e,l,r):ex(e,l,r),N(e,j)&&A.state.next({...s}),A.values.next({name:e,values:{...x}}),w.mount||t()},eE=async e=>{let t=e.target,i=t.name,o=!0,a=g(c,i);if(a){let l,d;let f=t.type?es(a._f):u(e),h=e.type===y.BLUR||e.type===y.FOCUS_OUT,p=!ec(a._f)&&!r.resolver&&!g(s.errors,i)&&!a._f.deps||ef(h,g(s.touchedFields,i),s.isSubmitted,I,V),m=N(i,j,h);M(x,i,f),h?(a._f.onBlur&&a._f.onBlur(e),n&&n(0)):a._f.onChange&&a._f.onChange(e);let v=Y(i,f,h,!1),b=!E(v)||m;if(h||A.values.next({name:i,type:e.type,values:{...x}}),p)return C.isValid&&U(),b&&A.state.next({name:i,...m?{}:v});if(!h&&m&&A.state.next({...s}),W(!0),r.resolver){let{errors:e}=await ei([i]),t=ed(s.errors,c,i),n=ed(e,c,t.name||i);l=n.error,i=n.name,d=E(e)}else l=(await G(a,x,B,r.shouldUseNativeValidation))[i],(o=isNaN(f)||f===g(x,i,f))&&(l?d=!1:C.isValid&&(d=await ev(c,!0)));o&&(a._f.deps&&ej(a._f.deps),er(i,d,l,v))}},ej=async(e,t={})=>{let n,i;let o=k(e);if(W(!0),r.resolver){let t=await em(v(e)?e:o);n=E(t),i=e?!o.some(e=>g(t,e)):n}else e?((i=(await Promise.all(o.map(async e=>{let t=g(c,e);return await ev(t&&t._f?{[e]:t}:t)}))).every(Boolean))||s.isValid)&&U():i=n=await ev(c);return A.state.next({...!S(e)||C.isValid&&n!==s.isValid?{}:{name:e},...r.resolver||!e?{isValid:n}:{},errors:s.errors,isValidating:!1}),t.shouldFocus&&!i&&T(c,e=>e&&g(s.errors,e),e?o:j.mount),i},ek=e=>{let t={...f,...w.mount?x:{}};return v(e)?t:S(e)?g(t,e):e.map(e=>g(t,e))},eS=(e,t)=>({invalid:!!g((t||s).errors,e),isDirty:!!g((t||s).dirtyFields,e),isTouched:!!g((t||s).touchedFields,e),error:g((t||s).errors,e)}),eO=(e,t={})=>{for(let n of e?k(e):j.mount)j.mount.delete(n),j.array.delete(n),t.keepValue||(K(c,n),K(x,n)),t.keepError||K(s.errors,n),t.keepDirty||K(s.dirtyFields,n),t.keepTouched||K(s.touchedFields,n),r.shouldUnregister||t.keepDefaultValue||K(f,n);A.values.next({values:{...x}}),A.state.next({...s,...t.keepDirty?{isDirty:eg()}:{}}),t.keepIsValid||U()},e_=(e,t={})=>{let n=g(c,e),i=D(t.disabled);return M(c,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),j.mount.add(e),n?i&&M(x,e,t.disabled?void 0:g(x,e,es(n._f))):$(e,!0,t.value),{...i?{disabled:t.disabled}:{},...r.shouldUseNativeValidation?{required:!!t.required,min:eu(t.min),max:eu(t.max),minLength:eu(t.minLength),maxLength:eu(t.maxLength),pattern:eu(t.pattern)}:{},name:e,onChange:eE,onBlur:eE,ref:i=>{if(i){e_(e,t),n=g(c,e);let r=v(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,o=et(r),a=n._f.refs||[];(o?a.find(e=>e===r):r===n._f.ref)||(M(c,e,{_f:{...n._f,...o?{refs:[...a.filter(en),r,...Array.isArray(g(f,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),$(e,!1,void 0,r))}else(n=g(c,e,{}))._f&&(n._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&!(d(j.array,e)&&w.action)&&j.unMount.add(e)}}},eC=()=>r.shouldFocusError&&T(c,e=>e&&g(s.errors,e),j.mount),eM=(n,r={})=>{let i=n||f,o=p(i),a=n&&!E(n)?o:f;if(r.keepDefaultValues||(f=i),!r.keepValues){if(r.keepDirtyValues||z)for(let e of j.mount)g(s.dirtyFields,e)?M(a,e,g(x,e)):ew(e,g(a,e));else{if(h&&v(n))for(let e of j.mount){let t=g(c,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(F(e)){let t=e.closest("form");if(t){t.reset();break}}}}c={}}x=e.shouldUnregister?r.keepDefaultValues?p(f):{}:o,A.array.next({values:{...a}}),A.values.next({values:{...a}})}j={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},w.mount||t(),w.mount=!C.isValid||!!r.keepIsValid,w.watch=!!e.shouldUnregister,A.state.next({submitCount:r.keepSubmitCount?s.submitCount:0,isDirty:r.keepDirty?s.isDirty:!!(r.keepDefaultValues&&!J(n,f)),isSubmitted:!!r.keepIsSubmitted&&s.isSubmitted,dirtyFields:r.keepDirtyValues?s.dirtyFields:r.keepDefaultValues&&n?eo(f,n):{},touchedFields:r.keepTouched?s.touchedFields:{},errors:r.keepErrors?s.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},eA=(e,t)=>eM(L(e)?e(x):e,t);return{control:{register:e_,unregister:eO,getFieldState:eS,_executeSchema:ei,_getWatch:ey,_getDirty:eg,_updateValid:U,_removeUnmounted:()=>{for(let e of j.unMount){let t=g(c,e);t&&(t._f.refs?t._f.refs.every(e=>!en(e)):!en(t._f.ref))&&eO(e)}j.unMount=new Set},_updateFieldArray:(e,t=[],n,r,i=!0,o=!0)=>{if(r&&n){if(w.action=!0,o&&Array.isArray(g(c,e))){let t=n(g(c,e),r.argA,r.argB);i&&M(c,e,t)}if(o&&Array.isArray(g(s.errors,e))){let t=n(g(s.errors,e),r.argA,r.argB);i&&M(s.errors,e,t),eh(s.errors,e)}if(C.touchedFields&&o&&Array.isArray(g(s.touchedFields,e))){let t=n(g(s.touchedFields,e),r.argA,r.argB);i&&M(s.touchedFields,e,t)}C.dirtyFields&&(s.dirtyFields=eo(f,x)),A.state.next({name:e,isDirty:eg(e,t),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else M(x,e,t)},_getFieldArray:t=>m(g(w.mount?x:f,t,e.shouldUnregister?g(f,t,[]):[])),_reset:eM,_resetDefaultValues:()=>L(r.defaultValues)&&r.defaultValues().then(e=>{eA(e,r.resetOptions),A.state.next({isLoading:!1})}),_updateFormState:e=>{s={...s,...e}},_subjects:A,_proxyFormState:C,get _fields(){return c},get _formValues(){return x},get _state(){return w},set _state(value){w=value},get _defaultValues(){return f},get _names(){return j},set _names(value){j=value},get _formState(){return s},set _formState(value){s=value},get _options(){return r},set _options(value){r={...r,...value}}},trigger:ej,register:e_,handleSubmit:(e,t)=>async n=>{n&&(n.preventDefault&&n.preventDefault(),n.persist&&n.persist());let i=p(x);if(A.state.next({isSubmitting:!0}),r.resolver){let{errors:e,values:t}=await ei();s.errors=e,i=t}else await ev(c);K(s.errors,"root"),E(s.errors)?(A.state.next({errors:{}}),await e(i,n)):(t&&await t({...s.errors},n),eC(),setTimeout(eC)),A.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:E(s.errors),submitCount:s.submitCount+1,errors:s.errors})},watch:(e,t)=>L(e)?A.values.subscribe({next:n=>e(ey(void 0,t),n)}):ey(e,t,!0),setValue:ew,getValues:ek,reset:eA,resetField:(e,t={})=>{g(c,e)&&(v(t.defaultValue)?ew(e,g(f,e)):(ew(e,t.defaultValue),M(f,e,t.defaultValue)),t.keepTouched||K(s.touchedFields,e),t.keepDirty||(K(s.dirtyFields,e),s.isDirty=t.defaultValue?eg(e,g(f,e)):eg()),!t.keepError&&(K(s.errors,e),C.isValid&&U()),A.state.next({...s}))},clearErrors:e=>{e&&k(e).forEach(e=>K(s.errors,e)),A.state.next({errors:e?s.errors:{}})},unregister:eO,setError:(e,t,n)=>{let r=(g(c,e,{_f:{}})._f||{}).ref;M(s.errors,e,{...t,ref:r}),A.state.next({name:e,errors:s.errors,isValid:!1}),n&&n.shouldFocus&&r&&r.focus&&r.focus()},setFocus:(e,t={})=>{let n=g(c,e),r=n&&n._f;if(r){let e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:eS}}(e,()=>s(e=>({...e}))),formState:n});let c=t.current.control;return c._options=e,!function(e){let t=r.useRef(e);t.current=e,r.useEffect(()=>{let n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}({subject:c._subjects.state,next:e=>{j(e,c._proxyFormState,c._updateFormState,!0)&&s({...c._formState})}}),r.useEffect(()=>{e.values&&!J(e.values,c._defaultValues)?c._reset(e.values,c._options.resetOptions):c._resetDefaultValues()},[e.values,c]),r.useEffect(()=>{c._state.mount||(c._updateValid(),c._state.mount=!0),c._state.watch&&(c._state.watch=!1,c._subjects.state.next({...c._formState})),c._removeUnmounted()}),t.current.formState=w(n,c),t.current}},79381:function(e,t,n){"use strict";n.d(t,{J$:function(){return Q},ZP:function(){return J},JG:function(){return I},kY:function(){return Y}});var r,i=n(2784),o=n(43100);let a=new WeakMap,s={},l={},u=()=>{},c=u(),d=Object,f=e=>e===c,h=e=>"function"==typeof e,p=(e,t)=>({...e,...t}),m="undefined",v=typeof window!=m,g=typeof document!=m,y=()=>v&&typeof window.requestAnimationFrame!=m,b=(e,t)=>{let n=a.get(e);return[()=>e.get(t)||s,r=>{if(!f(t)){let i=e.get(t);t in l||(l[t]=i),n[5](t,p(i,r),i||s)}},n[6],()=>!f(t)&&t in l?l[t]:e.get(t)||s]},x=new WeakMap,w=0,E=e=>{let t,n;let r=typeof e,i=e&&e.constructor,o=i==Date;if(d(e)!==e||o||i==RegExp)t=o?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=x.get(e))return t;if(t=++w+"~",x.set(e,t),i==Array){for(n=0,t="@";n(g&&document.addEventListener("visibilitychange",e),k("focus",e),()=>{g&&document.removeEventListener("visibilitychange",e),S("focus",e)}),initReconnect:e=>{let t=()=>{j=!0,e()},n=()=>{j=!1};return k("online",t),k("offline",n),()=>{S("online",t),S("offline",n)}}},_=!i.useId,C=!v||"Deno"in window,M=e=>y()?window.requestAnimationFrame(e):setTimeout(e,1),A=C?i.useEffect:i.useLayoutEffect,T="undefined"!=typeof navigator&&navigator.connection,P=!C&&T&&(["slow-2g","2g"].includes(T.effectiveType)||T.saveData),N=e=>{if(h(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?E(e):"",t]},R=0,D=()=>++R;var Z={FOCUS_EVENT:0,RECONNECT_EVENT:1,MUTATE_EVENT:2,ERROR_REVALIDATE_EVENT:3};async function L(...e){let[t,n,r,i]=e,o=p({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),s=o.populateCache,l=o.rollbackOnError,u=o.optimisticData,d=!1!==o.revalidate,m=e=>"function"==typeof l?l(e):!1!==l,v=o.throwOnError;if(h(n)){let e=[],r=t.keys();for(let i=r.next();!i.done;i=r.next()){let r=i.value;!/^\$(inf|sub)\$/.test(r)&&n(t.get(r)._k)&&e.push(r)}return Promise.all(e.map(g))}return g(n);async function g(n){let i;let[o]=N(n);if(!o)return;let[l,p]=b(t,o),[g,y,x]=a.get(t),w=g[o],E=()=>d&&(delete x[o],w&&w[0])?w[0](2).then(()=>l().data):l().data;if(e.length<3)return E();let j=r,k=D();y[o]=[k,0];let S=!f(u),O=l(),_=O.data,C=O._c,M=f(C)?_:C;if(S&&p({data:u=h(u)?u(M):u,_c:M}),h(j))try{j=j(M)}catch(e){i=e}if(j&&h(j.then)){if(j=await j.catch(e=>{i=e}),k!==y[o][0]){if(i)throw i;return j}i&&S&&m(i)&&(s=!0,p({data:j=M,_c:c}))}s&&!i&&(h(s)&&(j=s(j,M)),p({data:j,_c:c})),y[o][1]=D();let A=await E();if(p({_c:c}),i){if(v)throw i;return}return s?A:j}}let F=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},z=(e,t)=>{if(!a.has(e)){let n=p(O,t),r={},i=L.bind(c,e),o=u,s={},l=(e,t)=>{let n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},d=(t,n,r)=>{e.set(t,n);let i=s[t];if(i)for(let e of i)e(n,r)},f=()=>{if(!a.has(e)&&(a.set(e,[r,{},{},{},i,d,l]),!C)){let t=n.initFocus(setTimeout.bind(c,F.bind(c,r,0))),i=n.initReconnect(setTimeout.bind(c,F.bind(c,r,1)));o=()=>{t&&t(),i&&i(),a.delete(e)}}};return f(),[e,i,f,o]}return[e,a.get(e)[4]]},[V,I]=z(new Map),B=p({onLoadingSlow:u,onSuccess:u,onError:u,onErrorRetry:(e,t,n,r,i)=>{let o=n.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;(f(o)||!(a>o))&&setTimeout(r,s,i)},onDiscarded:u,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:P?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:P?5e3:3e3,compare:(e,t)=>E(e)==E(t),isPaused:()=>!1,cache:V,mutate:I,fallback:{}},{isOnline:()=>j,isVisible:()=>{let e=g&&document.visibilityState;return f(e)||"hidden"!==e}}),H=(e,t)=>{let n=p(e,t);if(t){let{use:r,fallback:i}=e,{use:o,fallback:a}=t;r&&o&&(n.use=r.concat(o)),i&&a&&(n.fallback=p(i,a))}return n},U=(0,i.createContext)({}),W=v&&window.__SWR_DEVTOOLS_USE__,q=W?window.__SWR_DEVTOOLS_USE__:[],$=e=>h(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],Y=()=>p(B,(0,i.useContext)(U)),G=q.concat(e=>(t,n,r)=>{let i=n&&((...e)=>{let r=N(t)[0],[,,,i]=a.get(V),o=i[r];return o?(delete i[r],o):n(...e)});return e(t,i,r)}),K=(e,t,n)=>{let r=t[e]||(t[e]=[]);return r.push(n),()=>{let e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}};W&&(window.__SWR_DEVTOOLS_REACT__=i);let X={dedupe:!0},Q=d.defineProperty(e=>{let{value:t}=e,n=(0,i.useContext)(U),r=h(t),o=(0,i.useMemo)(()=>r?t(n):t,[r,n,t]),a=(0,i.useMemo)(()=>r?o:H(n,o),[r,n,o]),s=o&&o.provider,l=(0,i.useRef)(c);s&&!l.current&&(l.current=z(s(a.cache||V),o));let u=l.current;return u&&(a.cache=u[0],a.mutate=u[1]),A(()=>{if(u)return u[2]&&u[2](),u[3]},[]),(0,i.createElement)(U.Provider,p(e,{value:a}))},"defaultValue",{value:B});var J=(r=(e,t,n)=>{let{cache:r,compare:s,suspense:l,fallbackData:u,revalidateOnMount:d,revalidateIfStale:m,refreshInterval:v,refreshWhenHidden:g,refreshWhenOffline:y,keepPreviousData:x}=n,[w,E,j]=a.get(r),[k,S]=N(e),O=(0,i.useRef)(!1),T=(0,i.useRef)(!1),P=(0,i.useRef)(k),R=(0,i.useRef)(t),F=(0,i.useRef)(n),z=()=>F.current,V=()=>z().isVisible()&&z().isOnline(),[I,B,H,U]=b(r,k),W=(0,i.useRef)({}).current,q=f(u)?n.fallback[k]:u,$=(e,t)=>{let n=!0;for(let r in W)"data"===r?s(t[r],e[r])||f(e[r])&&s(t[r],ei)||(n=!1):t[r]!==e[r]&&(n=!1);return n},Y=(0,i.useMemo)(()=>{let e=!!k&&!!t&&(f(d)?!z().isPaused()&&!l&&(!!f(m)||m):d),n=t=>{let n=p(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=I(),i=U(),o=n(r),a=r===i?o:n(i),s=o;return[()=>{let e=n(I());return $(e,s)?s:s=e},()=>a]},[r,k]),G=(0,o.useSyncExternalStore)((0,i.useCallback)(e=>H(k,(t,n)=>{$(n,t)||e()}),[r,k]),Y[0],Y[1]),Q=!O.current,J=w[k]&&w[k].length>0,ee=G.data,et=f(ee)?q:ee,en=G.error,er=(0,i.useRef)(et),ei=x?f(ee)?er.current:ee:et,eo=(!J||!!f(en))&&(Q&&!f(d)?d:!z().isPaused()&&(l?!f(et)&&m:f(et)||m)),ea=!!(k&&t&&Q&&eo),es=f(G.isValidating)?ea:G.isValidating,el=f(G.isLoading)?ea:G.isLoading,eu=(0,i.useCallback)(async e=>{let t,r;let i=R.current;if(!k||!i||T.current||z().isPaused())return!1;let o=!0,a=e||{},l=!j[k]||!a.dedupe,u=()=>_?!T.current&&k===P.current&&O.current:k===P.current,d={isValidating:!1,isLoading:!1},p=()=>{B(d)},m=()=>{let e=j[k];e&&e[1]===r&&delete j[k]},v={isValidating:!0};f(I().data)&&(v.isLoading=!0);try{if(l&&(B(v),n.loadingTimeout&&f(I().data)&&setTimeout(()=>{o&&u()&&z().onLoadingSlow(k,n)},n.loadingTimeout),j[k]=[i(S),D()]),[t,r]=j[k],t=await t,l&&setTimeout(m,n.dedupingInterval),!j[k]||j[k][1]!==r)return l&&u()&&z().onDiscarded(k),!1;d.error=c;let e=E[k];if(!f(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return p(),l&&u()&&z().onDiscarded(k),!1;let a=I().data;d.data=s(a,t)?a:t,l&&u()&&z().onSuccess(t,k,n)}catch(n){m();let e=z(),{shouldRetryOnError:t}=e;!e.isPaused()&&(d.error=n,l&&u()&&(e.onError(n,k,e),(!0===t||h(t)&&t(n))&&V()&&e.onErrorRetry(n,k,e,e=>{let t=w[k];t&&t[0]&&t[0](Z.ERROR_REVALIDATE_EVENT,e)},{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return o=!1,p(),!0},[k,r]),ec=(0,i.useCallback)((...e)=>L(r,P.current,...e),[]);if(A(()=>{R.current=t,F.current=n,f(ee)||(er.current=ee)}),A(()=>{if(!k)return;let e=eu.bind(c,X),t=0,n=K(k,w,(n,r={})=>{if(n==Z.FOCUS_EVENT){let n=Date.now();z().revalidateOnFocus&&n>t&&V()&&(t=n+z().focusThrottleInterval,e())}else if(n==Z.RECONNECT_EVENT)z().revalidateOnReconnect&&V()&&e();else if(n==Z.MUTATE_EVENT)return eu();else if(n==Z.ERROR_REVALIDATE_EVENT)return eu(r)});return T.current=!1,P.current=k,O.current=!0,B({_k:S}),eo&&(f(et)||C?e():M(e)),()=>{T.current=!0,n()}},[k]),A(()=>{let e;function t(){let t=h(v)?v(et):v;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!I().error&&(g||z().isVisible())&&(y||z().isOnline())?eu(X).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[v,g,y,k]),(0,i.useDebugValue)(ei),l&&f(et)&&k){if(!_&&C)throw Error("Fallback data is required when using suspense in SSR.");throw R.current=t,F.current=n,T.current=!1,f(en)?eu(X):en}return{mutate:ec,get data(){return W.data=!0,ei},get error(){return W.error=!0,en},get isValidating(){return W.isValidating=!0,es},get isLoading(){return W.isLoading=!0,el}}},function(...e){let t=Y(),[n,i,o]=$(e),a=H(t,o),s=r,{use:l}=a,u=(l||[]).concat(G);for(let e=u.length;e--;)s=u[e](s);return s(n,i||a.fetcher||null,a)})},22970:function(e,t,n){"use strict";n.d(t,{CR:function(){return s},Jh:function(){return a},_T:function(){return i},ev:function(){return l},mG:function(){return o},pi:function(){return r}});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function o(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function a(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]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 l(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;ih("connectPeer"),isSynced:j.isSynced,syncPercent:j.syncPercent,nodeBlockHeight:j.nodeBlockHeight,estimatedBlockHeight:j.estimatedBlockHeight,firstTimeSyncing:j.firstTimeSyncing,moreThan100BlocksToSync:j.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",value:null===(s=v.data)||void 0===s?void 0:s.netAddress,maxLength:24,label:"network address",type:"hostIp",siascanUrl:g})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",value:null===(a=f.data)||void 0===a?void 0:a.publicKey,maxLength:24,label:"public key",type:"hostPublicKey",siascanUrl:g})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",maxLength:24,value:null===(l=f.data)||void 0===l?void 0:l.walletAddress,type:"address"})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.xvT,{size:"14",children:null===(c=f.data)||void 0===c?void 0:c.network})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(i.rUS,{size:"14",href:w,underline:"hover",target:"_blank",ellipsis:!0,children:null===(d=f.data)||void 0===d?void 0:d.version})]})]})}function f(e){let n=(0,r.Os)(),{isSynced:s}=(0,o.n)();return(0,t.jsx)(i.tU3,{appName:"hostd",connectivityRoute:c.h,banner:(0,t.jsx)(d,{}),profile:(0,t.jsx)(h,{}),isSynced:s,walletBalanceSc:n.data&&{spendable:new(l())(n.data.spendable),confirmed:new(l())(n.data.confirmed),unconfirmed:new(l())(n.data.unconfirmed)},...e})}},66724:function(e,n,s){"use strict";s.d(n,{N:function(){return d}});var t=s(52322),i=s(79798),r=s(41775),a=s(27444),l=s(82851),c=s(71930),o=s(22515);function d(){var e,n;let{openDialog:s}=(0,o.Rh)(),d=(0,a.Z7)(),x=!(null===(e=d.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(n=d.data)||void 0===n?void 0:n.length)||0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.KJW,{title:"Dashboard",route:c._.home,children:(0,t.jsx)(r.K2o,{})}),(0,t.jsx)(i.KJW,{title:"Volumes",route:c._.volumes.index,children:(0,t.jsx)(r.zvn,{})}),(0,t.jsx)(i.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,t.jsx)(r.VBo,{})}),(0,t.jsx)(i.KJW,{title:"Configuration",route:c._.config.index,children:(0,t.jsx)(r.wWN,{})}),(0,t.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,t.jsx)("div",{className:(0,l.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!u&&!x&&(0,t.jsx)(i.xvT,{size:"10",className:(0,l.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:u.toLocaleString()}),(0,t.jsx)(i.KJW,{title:"Alerts",onClick:()=>s("alerts"),children:(0,t.jsx)(r.Dkj,{})})]})]})}},29575:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return p}});var t=s(52322),i=s(79798),r=s(41775),a=s(66724),l=s(71930),c=s(22515),o=s(14134),d=s(27444),x=s(25205),u=s(2784),h=s(6391),f=s.n(h);function v(){let{openConfirmDialog:e}=(0,c.Rh)(),n=(0,d.hV)(),s=(0,d.Az)(),a=(0,u.useCallback)(()=>e({title:"Announce",action:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.cfm,{}),"Announce"]}),variant:"accent",body:(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)(i.nvN,{size:"14",children:"Confirm to broadcast host announcement."}),n.data&&(0,t.jsxs)(i.nvN,{size:"14",children:["Announcing will cost"," ",(0,x.Vz)(new(f())(n.data).times(1e3)),"."]})]}),onConfirm:async()=>{let e=await s.post({});if(e.error){(0,i.OHV)("Error announcing host.");return}(0,i.OPV)("Successfully broadcast host announcement.")}}),[e,s,n]);return(0,t.jsxs)(i.zxk,{variant:"accent",tip:"Announce host address",onClick:a,children:[(0,t.jsx)(r.cfm,{}),"Announce"]})}var j=s(99957);function m(){let{showAdvanced:e,setShowAdvanced:n}=(0,j.ZR)();return(0,t.jsx)("div",{className:"pl-1",children:(0,t.jsx)(i.ua7,{content:e?"Hide advanced":"Show advanced",children:(0,t.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,t.jsx)(i.rsf,{checked:e,onCheckedChange:e=>n(e)}),(0,t.jsx)(i.xvT,{size:"12",color:"subtle",children:"Advanced"})]})})})}function g(){var e;let{openDialog:n}=(0,c.Rh)(),{fields:s,settings:d,dynDNSCheck:x,changeCount:u,revalidateAndResetFormData:h,form:f,onSubmit:g}=(0,j.ZR)();return(0,t.jsx)(o.q,{title:"Configuration",routes:l._,nav:(0,t.jsx)(m,{}),sidenav:(0,t.jsx)(a.N,{}),stats:(null===(e=d.data)||void 0===e?void 0:e.ddns.provider)&&!x.isValidating?x.error?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.xvT,{color:"amber",children:(0,t.jsx)(r.qdM,{})}),(0,t.jsxs)(i.xvT,{size:"14",children:["Error with dynamic DNS configuration:"," ",x.error.message]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.xvT,{color:"green",children:(0,t.jsx)(r.Y3p,{})}),(0,t.jsx)(i.xvT,{children:"Dynamic DNS enabled"})]}):null,actions:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[!!u&&(0,t.jsx)(i.xvT,{size:"12",color:"subtle",children:1===u?"1 change":"".concat(u," changes")}),(0,t.jsx)(i.zxk,{tip:"Reset all changes",icon:"contrast",disabled:!u,onClick:h,children:(0,t.jsx)(r.Wet,{})}),(0,t.jsxs)(i.zxk,{tip:"Save all changes",variant:"accent",disabled:!f.formState.isDirty||f.formState.isSubmitting,onClick:g,children:[(0,t.jsx)(r.ZEk,{}),"Save changes"]}),(0,t.jsx)(v,{})]}),openSettings:()=>n("settings"),children:(0,t.jsxs)("div",{className:"p-6 flex flex-col gap-16 max-w-screen-xl",children:[(0,t.jsx)(i.vRO,{title:"Host",category:"host",fields:s,form:f}),(0,t.jsx)(i.vRO,{title:"Pricing",category:"pricing",fields:s,form:f}),(0,t.jsx)(i.vRO,{title:"DNS",category:"DNS",fields:s,form:f}),(0,t.jsx)(i.vRO,{title:"Bandwidth",category:"bandwidth",fields:s,form:f}),(0,t.jsx)(i.vRO,{title:"Registry",category:"registry",fields:s,form:f}),(0,t.jsx)(i.vRO,{title:"Accounts",category:"RHP3",fields:s,form:f})]})})}function p(){return(0,t.jsx)(g,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=57344)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[490],{57344:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/config",function(){return s(91618)}])},14134:function(e,n,s){"use strict";s.d(n,{q:function(){return f}});var t=s(52322),i=s(13474),r=s(27444),a=s(6391),l=s.n(a),c=s(71930),o=s(25573);function d(){let e=(0,r.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(i.t6k,{testnetName:e.data.network}):null}var x=s(30078),u=s(90089);function h(){var e,n,s,a,l,c,d;let{openDialog:h}=(0,x.Rh)(),f=(0,r.On)({config:{swr:{revalidateOnFocus:!1}}}),v=(0,r.rV)({config:{swr:{revalidateOnFocus:!1}}}),j=(0,o.n)(),m=(0,r.cQ)(),g=(0,u.B)(),p=null===(e=f.data)||void 0===e?void 0:e.version,w=(null==p?void 0:p.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(p):"https://github.com/SiaFoundation/hostd/tree/".concat(p);return(0,t.jsxs)(i.HfT,{name:"hostd",peerCount:null===(n=m.data)||void 0===n?void 0:n.length,connectPeer:()=>h("connectPeer"),isSynced:j.isSynced,syncPercent:j.syncPercent,nodeBlockHeight:j.nodeBlockHeight,estimatedBlockHeight:j.estimatedBlockHeight,firstTimeSyncing:j.firstTimeSyncing,moreThan100BlocksToSync:j.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",value:null===(s=v.data)||void 0===s?void 0:s.netAddress,maxLength:24,label:"network address",type:"hostIp",siascanUrl:g})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",value:null===(a=f.data)||void 0===a?void 0:a.publicKey,maxLength:24,label:"public key",type:"hostPublicKey",siascanUrl:g})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",maxLength:24,value:null===(l=f.data)||void 0===l?void 0:l.walletAddress,type:"address"})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.xvT,{size:"14",children:null===(c=f.data)||void 0===c?void 0:c.network})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(i.rUS,{size:"14",href:w,underline:"hover",target:"_blank",ellipsis:!0,children:null===(d=f.data)||void 0===d?void 0:d.version})]})]})}function f(e){let n=(0,r.Os)(),{isSynced:s}=(0,o.n)();return(0,t.jsx)(i.tU3,{appName:"hostd",connectivityRoute:c.h,banner:(0,t.jsx)(d,{}),profile:(0,t.jsx)(h,{}),isSynced:s,walletBalanceSc:n.data&&{spendable:new(l())(n.data.spendable),confirmed:new(l())(n.data.confirmed),unconfirmed:new(l())(n.data.unconfirmed)},...e})}},66724:function(e,n,s){"use strict";s.d(n,{N:function(){return d}});var t=s(52322),i=s(13474),r=s(41775),a=s(27444),l=s(82851),c=s(71930),o=s(30078);function d(){var e,n;let{openDialog:s}=(0,o.Rh)(),d=(0,a.Z7)(),x=!(null===(e=d.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(n=d.data)||void 0===n?void 0:n.length)||0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.KJW,{title:"Dashboard",route:c._.home,children:(0,t.jsx)(r.K2o,{})}),(0,t.jsx)(i.KJW,{title:"Volumes",route:c._.volumes.index,children:(0,t.jsx)(r.zvn,{})}),(0,t.jsx)(i.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,t.jsx)(r.VBo,{})}),(0,t.jsx)(i.KJW,{title:"Configuration",route:c._.config.index,children:(0,t.jsx)(r.wWN,{})}),(0,t.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,t.jsx)("div",{className:(0,l.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!u&&!x&&(0,t.jsx)(i.xvT,{size:"10",className:(0,l.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:u.toLocaleString()}),(0,t.jsx)(i.KJW,{title:"Alerts",onClick:()=>s("alerts"),children:(0,t.jsx)(r.Dkj,{})})]})]})}},91618:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return w}});var t=s(52322),i=s(13474),r=s(41775),a=s(66724),l=s(71930),c=s(30078),o=s(14134),d=s(27444),x=s(25205),u=s(2784),h=s(6391),f=s.n(h);function v(){let{openConfirmDialog:e}=(0,c.Rh)(),n=(0,d.hV)(),s=(0,d.Az)(),a=(0,u.useCallback)(()=>e({title:"Announce",action:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.cfm,{}),"Announce"]}),variant:"accent",body:(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)(i.nvN,{size:"14",children:"Confirm to broadcast host announcement."}),n.data&&(0,t.jsxs)(i.nvN,{size:"14",children:["Announcing will cost"," ",(0,x.Vz)(new(f())(n.data).times(1e3)),"."]})]}),onConfirm:async()=>{let e=await s.post({});if(e.error){(0,i.OHV)("Error announcing host.");return}(0,i.OPV)("Successfully broadcast host announcement.")}}),[e,s,n]);return(0,t.jsxs)(i.zxk,{variant:"accent",tip:"Announce host address",onClick:a,children:[(0,t.jsx)(r.cfm,{}),"Announce"]})}var j=s(10842);function m(){let{showAdvanced:e,setShowAdvanced:n}=(0,j.ZR)();return(0,t.jsx)("div",{className:"pl-1",children:(0,t.jsx)(i.ua7,{content:e?"Hide advanced":"Show advanced",children:(0,t.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,t.jsx)(i.rsf,{checked:e,onCheckedChange:e=>n(e)}),(0,t.jsx)(i.xvT,{size:"12",color:"subtle",children:"Advanced"})]})})})}function g(){let{revalidateAndResetForm:e}=(0,j.ZR)();return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(r.gFQ,{className:"scale-[200%]"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error retrieving settings from daemon. Please check your connection and try again."}),(0,t.jsx)(i.zxk,{onClick:()=>e(),children:"Reload"})]})]})}function p(){var e;let{openDialog:n}=(0,c.Rh)(),{fields:s,settings:d,dynDNSCheck:x,changeCount:u,revalidateAndResetForm:h,form:f,onSubmit:p,remoteError:w}=(0,j.ZR)();return(0,t.jsx)(o.q,{title:"Configuration",routes:l._,nav:(0,t.jsx)(m,{}),sidenav:(0,t.jsx)(a.N,{}),stats:(null===(e=d.data)||void 0===e?void 0:e.ddns.provider)&&!x.isValidating?x.error?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.xvT,{color:"amber",children:(0,t.jsx)(r.qdM,{})}),(0,t.jsxs)(i.xvT,{size:"14",children:["Error with dynamic DNS configuration:"," ",x.error.message]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.xvT,{color:"green",children:(0,t.jsx)(r.Y3p,{})}),(0,t.jsx)(i.xvT,{children:"Dynamic DNS enabled"})]}):null,actions:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[!!u&&(0,t.jsx)(i.xvT,{size:"12",color:"subtle",children:1===u?"1 change":"".concat(u," changes")}),(0,t.jsx)(i.zxk,{tip:"Reset all changes",icon:"contrast",disabled:!u,onClick:h,children:(0,t.jsx)(r.Wet,{})}),(0,t.jsxs)(i.zxk,{tip:"Save all changes",variant:"accent",disabled:!f.formState.isDirty||f.formState.isSubmitting,onClick:p,children:[(0,t.jsx)(r.ZEk,{}),"Save changes"]}),(0,t.jsx)(v,{})]}),openSettings:()=>n("settings"),children:w?(0,t.jsx)(g,{}):(0,t.jsxs)("div",{className:"p-6 flex flex-col gap-16 max-w-screen-xl",children:[(0,t.jsx)(i.vRO,{title:"Host",category:"host",fields:s,form:f}),(0,t.jsx)(i.vRO,{title:"Pricing",category:"pricing",fields:s,form:f}),(0,t.jsx)(i.vRO,{title:"DNS",category:"DNS",fields:s,form:f}),(0,t.jsx)(i.vRO,{title:"Bandwidth",category:"bandwidth",fields:s,form:f}),(0,t.jsx)(i.vRO,{title:"Registry",category:"registry",fields:s,form:f}),(0,t.jsx)(i.vRO,{title:"Accounts",category:"RHP3",fields:s,form:f})]})})}function w(){return(0,t.jsx)(p,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=57344)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/contracts-53bec3be24713df4.js b/hostd/assets/_next/static/chunks/pages/contracts-f1434d685df6f961.js similarity index 50% rename from hostd/assets/_next/static/chunks/pages/contracts-53bec3be24713df4.js rename to hostd/assets/_next/static/chunks/pages/contracts-f1434d685df6f961.js index 67c9d9fb9..03dcda476 100644 --- a/hostd/assets/_next/static/chunks/pages/contracts-53bec3be24713df4.js +++ b/hostd/assets/_next/static/chunks/pages/contracts-f1434d685df6f961.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[348],{77441:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contracts",function(){return n(1974)}])},14134:function(e,s,n){"use strict";n.d(s,{q:function(){return j}});var t=n(52322),l=n(79798),a=n(27444),i=n(6391),r=n.n(i),c=n(71930),o=n(25573);function d(){let e=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(l.t6k,{testnetName:e.data.network}):null}var x=n(22515),u=n(90089);function h(){var e,s,n,i,r,c,d;let{openDialog:h}=(0,x.Rh)(),j=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}}),m=(0,a.rV)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,o.n)(),v=(0,a.cQ)(),p=(0,u.B)(),g=null===(e=j.data)||void 0===e?void 0:e.version,b=(null==g?void 0:g.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(g):"https://github.com/SiaFoundation/hostd/tree/".concat(g);return(0,t.jsxs)(l.HfT,{name:"hostd",peerCount:null===(s=v.data)||void 0===s?void 0:s.length,connectPeer:()=>h("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(l.XxW,{size:"14",value:null===(n=m.data)||void 0===n?void 0:n.netAddress,maxLength:24,label:"network address",type:"hostIp",siascanUrl:p})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(l.XxW,{size:"14",value:null===(i=j.data)||void 0===i?void 0:i.publicKey,maxLength:24,label:"public key",type:"hostPublicKey",siascanUrl:p})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(l.XxW,{size:"14",maxLength:24,value:null===(r=j.data)||void 0===r?void 0:r.walletAddress,type:"address"})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(l.xvT,{size:"14",children:null===(c=j.data)||void 0===c?void 0:c.network})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(l.rUS,{size:"14",href:b,underline:"hover",target:"_blank",ellipsis:!0,children:null===(d=j.data)||void 0===d?void 0:d.version})]})]})}function j(e){let s=(0,a.Os)(),{isSynced:n}=(0,o.n)();return(0,t.jsx)(l.tU3,{appName:"hostd",connectivityRoute:c.h,banner:(0,t.jsx)(d,{}),profile:(0,t.jsx)(h,{}),isSynced:n,walletBalanceSc:s.data&&{spendable:new(r())(s.data.spendable),confirmed:new(r())(s.data.confirmed),unconfirmed:new(r())(s.data.unconfirmed)},...e})}},66724:function(e,s,n){"use strict";n.d(s,{N:function(){return d}});var t=n(52322),l=n(79798),a=n(41775),i=n(27444),r=n(82851),c=n(71930),o=n(22515);function d(){var e,s;let{openDialog:n}=(0,o.Rh)(),d=(0,i.Z7)(),x=!(null===(e=d.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(s=d.data)||void 0===s?void 0:s.length)||0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.KJW,{title:"Dashboard",route:c._.home,children:(0,t.jsx)(a.K2o,{})}),(0,t.jsx)(l.KJW,{title:"Volumes",route:c._.volumes.index,children:(0,t.jsx)(a.zvn,{})}),(0,t.jsx)(l.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,t.jsx)(a.VBo,{})}),(0,t.jsx)(l.KJW,{title:"Configuration",route:c._.config.index,children:(0,t.jsx)(a.wWN,{})}),(0,t.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,t.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!u&&!x&&(0,t.jsx)(l.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:u.toLocaleString()}),(0,t.jsx)(l.KJW,{title:"Alerts",onClick:()=>n("alerts"),children:(0,t.jsx)(a.Dkj,{})})]})]})}},1974:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return _}});var t=n(52322),l=n(66724),a=n(71930),i=n(79798),r=n(22515),c=n(92838),o=n(14134),d=n(41775);function x(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(d.Hb6,{className:"scale-[200%]"})}),(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No active contracts matching filters."})]})}function u(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(d.VBo,{className:"scale-[200%]"})}),(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"There are currently no active contracts. Configure and announce host to start forming contracts."})]})}function h(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(d.Ckx,{className:"scale-[200%]"})}),(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching contracts."})]})}var j=n(56860),m=n(3440),f=n.n(m);function v(){let{configurableColumns:e,toggleColumnVisibility:s,resetDefaultColumnVisibility:n,setColumnsVisible:l,setColumnsHidden:a,sortField:r,setSortField:o,sortDirection:x,setSortDirection:u,enabledColumns:h}=(0,c.G)(),m=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),v=e.filter(e=>"time"===e.category).map(e=>({label:e.label,value:e.id})),p=e.filter(e=>"financial"===e.category).map(e=>({label:e.label,value:e.id}));return(0,t.jsxs)(i.J2e,{trigger:(0,t.jsxs)(i.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,t.jsx)(d.hiv,{}),"View",(0,t.jsx)(d.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,t.jsxs)(i.WVB,{children:[(0,t.jsx)(i.__J,{children:"Order by"}),(0,t.jsx)(i.kFS,{children:(0,t.jsx)(i.PhF,{value:r,onChange:e=>{o(e.currentTarget.value)},children:Object.entries(f()(j.Fo,"category")).map(e=>{let[s,n]=e;return(0,t.jsx)("optgroup",{label:s,children:n.map(e=>(0,t.jsx)(i.Wxm,{value:e.id,children:e.label},e.id))},s)})})})]}),(0,t.jsxs)(i.WVB,{children:[(0,t.jsx)(i.__J,{children:"Direction"}),(0,t.jsx)(i.kFS,{children:(0,t.jsxs)(i.PhF,{value:x,onClick:e=>{e.stopPropagation()},onChange:e=>{u(e.currentTarget.value)},children:[(0,t.jsx)(i.Wxm,{value:"desc",children:"descending"},"desc"),(0,t.jsx)(i.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,t.jsx)(i.Clw,{}),(0,t.jsxs)(i.WVB,{children:[(0,t.jsx)(i.__J,{children:"Display properties"}),(0,t.jsx)(i.kFS,{children:(0,t.jsx)(i.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),n()},children:(0,t.jsx)(d.Wet,{})})})]}),(0,t.jsx)(i.FzK,{label:"General",columns:m.map(e=>e.value),enabled:h,setColumnsVisible:l,setColumnsHidden:a}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:m,values:h,onChange:e=>s(e)})}),(0,t.jsx)(i.FzK,{label:"Time",columns:v.map(e=>e.value),enabled:h,setColumnsVisible:l,setColumnsHidden:a}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:v,values:h,onChange:e=>s(e)})}),(0,t.jsx)(i.FzK,{label:"Usage",columns:p.map(e=>e.value),enabled:h,setColumnsVisible:l,setColumnsHidden:a}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:p,values:h,onChange:e=>s(e)})})]})}function p(){return(0,t.jsx)("div",{className:"flex gap-2",children:(0,t.jsx)(v,{})})}var g=n(99182),b=n(2784),w=n(3639);function N(){let{filters:e,removeFilter:s,removeLastFilter:n}=(0,c.G)(),[l,a]=(0,b.useState)(!1),[r,o]=(0,b.useState)(""),[x,u]=(0,b.useState)([]),h=x[x.length-1],j=(x.length,(0,b.useRef)(null)),m=(0,b.useRef)(null),f=(0,b.useCallback)(e=>{u(s=>[...s,e])},[u]),v=(0,b.useCallback)(()=>{u([])},[u]);(0,b.useEffect)(()=>{let e=e=>{j.current&&!j.current.contains(e.target)&&a(!1)};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}},[]);let p=(0,b.useCallback)(()=>{var e;null===(e=m.current)||void 0===e||e.focus()},[m]),N=(0,b.useCallback)(()=>{o(""),v()},[v]);return(0,t.jsxs)("div",{className:"flex gap-1",children:[e.map(e=>(0,t.jsxs)(i.eQh,{children:[(0,t.jsx)(i.zxk,{variant:"active",state:"waiting",children:(0,i.$Gg)(e.label,30)}),(0,t.jsx)(i.zxk,{variant:"active",size:"small",onClick:()=>s(e.id),children:(0,t.jsx)(d.PcV,{})})]},e.id)),(0,t.jsxs)(g.mY,{ref:j,label:"Command Menu",onFocus:()=>a(!0),onKeyDown:e=>{if(x.length>0)"Escape"!==e.key&&("Backspace"!==e.key||r)||(e.preventDefault(),u(e=>e.slice(0,-1)));else if(0===x.length&&("Backspace"!==e.key||r||n(),"Escape"===e.key&&!r)){var s;a(!1),null===(s=m.current)||void 0===s||s.blur()}},children:[(0,t.jsx)(g.mY.Input,{ref:m,value:r,onValueChange:o,className:(0,i.cEb)({variant:"ghost",focus:"none"}),placeholder:"Filter contracts"}),l&&(0,t.jsx)(i.s_4,{className:"absolute z-20 min-w-[200px] max-h-[400px] overflow-auto p-1",children:(0,t.jsxs)(i.xrM,{children:[h&&(0,t.jsx)(i.__J,{className:"px-1.5 py-1",children:h.label}),(0,t.jsx)(g.mY.List,{children:(0,t.jsx)(w.F,{currentPage:h,beforeSelect:p,afterSelect:N,pushPage:f})})]})})]})]})}function y(){let{offset:e,limit:s,totalCount:n,pageCount:l,dataState:a}=(0,c.G)();return(0,t.jsxs)("div",{className:"flex gap-2 justify-between w-full",children:[(0,t.jsx)(N,{}),(0,t.jsx)(i.uDJ,{offset:e,limit:s,isLoading:"loading"===a,datasetTotal:n,pageTotal:l})]})}function k(){let{openDialog:e}=(0,r.Rh)(),{columns:s,dataset:n,sortField:d,sortDirection:j,sortableColumns:m,toggleSort:f,limit:v,dataState:g,cellContext:b}=(0,c.G)();return(0,t.jsx)(o.q,{title:"Contracts",routes:a._,sidenav:(0,t.jsx)(l.N,{}),openSettings:()=>e("settings"),actions:(0,t.jsx)(p,{}),stats:(0,t.jsx)(y,{}),size:"full",children:(0,t.jsx)("div",{className:"p-6 min-w-fit",children:(0,t.jsx)(i.iA_,{context:b,isLoading:"loading"===g,emptyState:"noneMatchingFilters"===g?(0,t.jsx)(x,{}):"noneYet"===g?(0,t.jsx)(u,{}):"error"===g?(0,t.jsx)(h,{}):null,pageSize:v,data:n,columns:s,sortableColumns:m,sortDirection:j,sortField:d,toggleSort:f})})})}function _(){return(0,t.jsx)(k,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=77441)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[348],{77441:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contracts",function(){return n(1974)}])},14134:function(e,s,n){"use strict";n.d(s,{q:function(){return j}});var t=n(52322),l=n(13474),a=n(27444),i=n(6391),r=n.n(i),c=n(71930),o=n(25573);function d(){let e=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(l.t6k,{testnetName:e.data.network}):null}var x=n(30078),u=n(90089);function h(){var e,s,n,i,r,c,d;let{openDialog:h}=(0,x.Rh)(),j=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}}),m=(0,a.rV)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,o.n)(),v=(0,a.cQ)(),p=(0,u.B)(),g=null===(e=j.data)||void 0===e?void 0:e.version,b=(null==g?void 0:g.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(g):"https://github.com/SiaFoundation/hostd/tree/".concat(g);return(0,t.jsxs)(l.HfT,{name:"hostd",peerCount:null===(s=v.data)||void 0===s?void 0:s.length,connectPeer:()=>h("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(l.XxW,{size:"14",value:null===(n=m.data)||void 0===n?void 0:n.netAddress,maxLength:24,label:"network address",type:"hostIp",siascanUrl:p})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(l.XxW,{size:"14",value:null===(i=j.data)||void 0===i?void 0:i.publicKey,maxLength:24,label:"public key",type:"hostPublicKey",siascanUrl:p})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(l.XxW,{size:"14",maxLength:24,value:null===(r=j.data)||void 0===r?void 0:r.walletAddress,type:"address"})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(l.xvT,{size:"14",children:null===(c=j.data)||void 0===c?void 0:c.network})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(l.rUS,{size:"14",href:b,underline:"hover",target:"_blank",ellipsis:!0,children:null===(d=j.data)||void 0===d?void 0:d.version})]})]})}function j(e){let s=(0,a.Os)(),{isSynced:n}=(0,o.n)();return(0,t.jsx)(l.tU3,{appName:"hostd",connectivityRoute:c.h,banner:(0,t.jsx)(d,{}),profile:(0,t.jsx)(h,{}),isSynced:n,walletBalanceSc:s.data&&{spendable:new(r())(s.data.spendable),confirmed:new(r())(s.data.confirmed),unconfirmed:new(r())(s.data.unconfirmed)},...e})}},66724:function(e,s,n){"use strict";n.d(s,{N:function(){return d}});var t=n(52322),l=n(13474),a=n(41775),i=n(27444),r=n(82851),c=n(71930),o=n(30078);function d(){var e,s;let{openDialog:n}=(0,o.Rh)(),d=(0,i.Z7)(),x=!(null===(e=d.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(s=d.data)||void 0===s?void 0:s.length)||0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.KJW,{title:"Dashboard",route:c._.home,children:(0,t.jsx)(a.K2o,{})}),(0,t.jsx)(l.KJW,{title:"Volumes",route:c._.volumes.index,children:(0,t.jsx)(a.zvn,{})}),(0,t.jsx)(l.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,t.jsx)(a.VBo,{})}),(0,t.jsx)(l.KJW,{title:"Configuration",route:c._.config.index,children:(0,t.jsx)(a.wWN,{})}),(0,t.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,t.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!u&&!x&&(0,t.jsx)(l.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:u.toLocaleString()}),(0,t.jsx)(l.KJW,{title:"Alerts",onClick:()=>n("alerts"),children:(0,t.jsx)(a.Dkj,{})})]})]})}},1974:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return k}});var t=n(52322),l=n(66724),a=n(71930),i=n(13474),r=n(30078),c=n(92838),o=n(14134),d=n(41775);function x(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(d.Hb6,{className:"scale-[200%]"})}),(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No active contracts matching filters."})]})}function u(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(d.VBo,{className:"scale-[200%]"})}),(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"There are currently no active contracts. Configure and announce host to start forming contracts."})]})}function h(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(d.Ckx,{className:"scale-[200%]"})}),(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching contracts."})]})}var j=n(56860),m=n(52058);function f(){let{configurableColumns:e,toggleColumnVisibility:s,resetDefaultColumnVisibility:n,setColumnsVisible:l,setColumnsHidden:a,sortField:r,setSortField:o,sortDirection:x,setSortDirection:u,enabledColumns:h}=(0,c.G)(),f=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),v=e.filter(e=>"time"===e.category).map(e=>({label:e.label,value:e.id})),p=e.filter(e=>"financial"===e.category).map(e=>({label:e.label,value:e.id}));return(0,t.jsxs)(i.J2e,{trigger:(0,t.jsxs)(i.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,t.jsx)(d.hiv,{}),"View",(0,t.jsx)(d.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,t.jsxs)(i.WVB,{children:[(0,t.jsx)(i.__J,{children:"Order by"}),(0,t.jsx)(i.kFS,{children:(0,t.jsx)(i.PhF,{value:r,onChange:e=>{o(e.currentTarget.value)},children:Object.entries((0,m.Z)(j.Fo,"category")).map(e=>{let[s,n]=e;return(0,t.jsx)("optgroup",{label:s,children:n.map(e=>(0,t.jsx)(i.Wxm,{value:e.id,children:e.label},e.id))},s)})})})]}),(0,t.jsxs)(i.WVB,{children:[(0,t.jsx)(i.__J,{children:"Direction"}),(0,t.jsx)(i.kFS,{children:(0,t.jsxs)(i.PhF,{value:x,onClick:e=>{e.stopPropagation()},onChange:e=>{u(e.currentTarget.value)},children:[(0,t.jsx)(i.Wxm,{value:"desc",children:"descending"},"desc"),(0,t.jsx)(i.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,t.jsx)(i.Clw,{}),(0,t.jsxs)(i.WVB,{children:[(0,t.jsx)(i.__J,{children:"Display properties"}),(0,t.jsx)(i.kFS,{children:(0,t.jsx)(i.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),n()},children:(0,t.jsx)(d.Wet,{})})})]}),(0,t.jsx)(i.FzK,{label:"General",columns:f.map(e=>e.value),enabled:h,setColumnsVisible:l,setColumnsHidden:a}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:f,values:h,onChange:e=>s(e)})}),(0,t.jsx)(i.FzK,{label:"Time",columns:v.map(e=>e.value),enabled:h,setColumnsVisible:l,setColumnsHidden:a}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:v,values:h,onChange:e=>s(e)})}),(0,t.jsx)(i.FzK,{label:"Usage",columns:p.map(e=>e.value),enabled:h,setColumnsVisible:l,setColumnsHidden:a}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:p,values:h,onChange:e=>s(e)})})]})}function v(){return(0,t.jsx)("div",{className:"flex gap-2",children:(0,t.jsx)(f,{})})}var p=n(99182),g=n(2784),b=n(3639);function w(){let{filters:e,removeFilter:s,removeLastFilter:n}=(0,c.G)(),[l,a]=(0,g.useState)(!1),[r,o]=(0,g.useState)(""),[x,u]=(0,g.useState)([]),h=x[x.length-1],j=(x.length,(0,g.useRef)(null)),m=(0,g.useRef)(null),f=(0,g.useCallback)(e=>{u(s=>[...s,e])},[u]),v=(0,g.useCallback)(()=>{u([])},[u]);(0,g.useEffect)(()=>{let e=e=>{j.current&&!j.current.contains(e.target)&&a(!1)};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}},[]);let w=(0,g.useCallback)(()=>{var e;null===(e=m.current)||void 0===e||e.focus()},[m]),N=(0,g.useCallback)(()=>{o(""),v()},[v]);return(0,t.jsxs)("div",{className:"flex gap-1",children:[e.map(e=>(0,t.jsxs)(i.eQh,{children:[(0,t.jsx)(i.zxk,{variant:"active",state:"waiting",children:(0,i.$Gg)(e.label,30)}),(0,t.jsx)(i.zxk,{variant:"active",size:"small",onClick:()=>s(e.id),children:(0,t.jsx)(d.PcV,{})})]},e.id)),(0,t.jsxs)(p.mY,{ref:j,label:"Command Menu",onFocus:()=>a(!0),onKeyDown:e=>{if(x.length>0)"Escape"!==e.key&&("Backspace"!==e.key||r)||(e.preventDefault(),u(e=>e.slice(0,-1)));else if(0===x.length&&("Backspace"!==e.key||r||n(),"Escape"===e.key&&!r)){var s;a(!1),null===(s=m.current)||void 0===s||s.blur()}},children:[(0,t.jsx)(p.mY.Input,{ref:m,value:r,onValueChange:o,className:(0,i.cEb)({variant:"ghost",focus:"none"}),placeholder:"Filter contracts"}),l&&(0,t.jsx)(i.s_4,{className:"absolute z-20 min-w-[200px] max-h-[400px] overflow-auto p-1",children:(0,t.jsxs)(i.xrM,{children:[h&&(0,t.jsx)(i.__J,{className:"px-1.5 py-1",children:h.label}),(0,t.jsx)(p.mY.List,{children:(0,t.jsx)(b.F,{currentPage:h,beforeSelect:w,afterSelect:N,pushPage:f})})]})})]})]})}function N(){let{offset:e,limit:s,totalCount:n,pageCount:l,dataState:a}=(0,c.G)();return(0,t.jsxs)("div",{className:"flex gap-2 justify-between w-full",children:[(0,t.jsx)(w,{}),(0,t.jsx)(i.uDJ,{offset:e,limit:s,isLoading:"loading"===a,datasetTotal:n,pageTotal:l})]})}function y(){let{openDialog:e}=(0,r.Rh)(),{columns:s,dataset:n,sortField:d,sortDirection:j,sortableColumns:m,toggleSort:f,limit:p,dataState:g,cellContext:b}=(0,c.G)();return(0,t.jsx)(o.q,{title:"Contracts",routes:a._,sidenav:(0,t.jsx)(l.N,{}),openSettings:()=>e("settings"),actions:(0,t.jsx)(v,{}),stats:(0,t.jsx)(N,{}),size:"full",children:(0,t.jsx)("div",{className:"p-6 min-w-fit",children:(0,t.jsx)(i.iA_,{context:b,isLoading:"loading"===g,emptyState:"noneMatchingFilters"===g?(0,t.jsx)(x,{}):"noneYet"===g?(0,t.jsx)(u,{}):"error"===g?(0,t.jsx)(h,{}):null,pageSize:p,data:n,columns:s,sortableColumns:m,sortDirection:j,sortField:d,toggleSort:f})})})}function k(){return(0,t.jsx)(y,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=77441)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/index-52b11961e4af1881.js b/hostd/assets/_next/static/chunks/pages/index-9adb16f0d82c08e7.js similarity index 97% rename from hostd/assets/_next/static/chunks/pages/index-52b11961e4af1881.js rename to hostd/assets/_next/static/chunks/pages/index-9adb16f0d82c08e7.js index c1c969525..7b1d08820 100644 --- a/hostd/assets/_next/static/chunks/pages/index-52b11961e4af1881.js +++ b/hostd/assets/_next/static/chunks/pages/index-9adb16f0d82c08e7.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{87314:function(e,a,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return s(23659)}])},14134:function(e,a,s){"use strict";s.d(a,{q:function(){return u}});var t=s(52322),o=s(79798),i=s(27444),l=s(6391),n=s.n(l),d=s(71930),r=s(25573);function c(){let e=(0,i.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(o.t6k,{testnetName:e.data.network}):null}var g=s(22515),x=s(90089);function f(){var e,a,s,l,n,d,c;let{openDialog:f}=(0,g.Rh)(),u=(0,i.On)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,i.rV)({config:{swr:{revalidateOnFocus:!1}}}),j=(0,r.n)(),v=(0,i.cQ)(),b=(0,x.B)(),m=null===(e=u.data)||void 0===e?void 0:e.version,p=(null==m?void 0:m.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(m):"https://github.com/SiaFoundation/hostd/tree/".concat(m);return(0,t.jsxs)(o.HfT,{name:"hostd",peerCount:null===(a=v.data)||void 0===a?void 0:a.length,connectPeer:()=>f("connectPeer"),isSynced:j.isSynced,syncPercent:j.syncPercent,nodeBlockHeight:j.nodeBlockHeight,estimatedBlockHeight:j.estimatedBlockHeight,firstTimeSyncing:j.firstTimeSyncing,moreThan100BlocksToSync:j.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(o.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(o.XxW,{size:"14",value:null===(s=h.data)||void 0===s?void 0:s.netAddress,maxLength:24,label:"network address",type:"hostIp",siascanUrl:b})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(o.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(o.XxW,{size:"14",value:null===(l=u.data)||void 0===l?void 0:l.publicKey,maxLength:24,label:"public key",type:"hostPublicKey",siascanUrl:b})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(o.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(o.XxW,{size:"14",maxLength:24,value:null===(n=u.data)||void 0===n?void 0:n.walletAddress,type:"address"})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(o.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(o.xvT,{size:"14",children:null===(d=u.data)||void 0===d?void 0:d.network})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(o.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(o.rUS,{size:"14",href:p,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=u.data)||void 0===c?void 0:c.version})]})]})}function u(e){let a=(0,i.Os)(),{isSynced:s}=(0,r.n)();return(0,t.jsx)(o.tU3,{appName:"hostd",connectivityRoute:d.h,banner:(0,t.jsx)(c,{}),profile:(0,t.jsx)(f,{}),isSynced:s,walletBalanceSc:a.data&&{spendable:new(n())(a.data.spendable),confirmed:new(n())(a.data.confirmed),unconfirmed:new(n())(a.data.unconfirmed)},...e})}},66724:function(e,a,s){"use strict";s.d(a,{N:function(){return c}});var t=s(52322),o=s(79798),i=s(41775),l=s(27444),n=s(82851),d=s(71930),r=s(22515);function c(){var e,a;let{openDialog:s}=(0,r.Rh)(),c=(0,l.Z7)(),g=!(null===(e=c.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(a=c.data)||void 0===a?void 0:a.length)||0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.KJW,{title:"Dashboard",route:d._.home,children:(0,t.jsx)(i.K2o,{})}),(0,t.jsx)(o.KJW,{title:"Volumes",route:d._.volumes.index,children:(0,t.jsx)(i.zvn,{})}),(0,t.jsx)(o.KJW,{title:"Contracts",route:d._.contracts.index,children:(0,t.jsx)(i.VBo,{})}),(0,t.jsx)(o.KJW,{title:"Configuration",route:d._.config.index,children:(0,t.jsx)(i.wWN,{})}),(0,t.jsxs)("div",{className:"relative",children:[!!x&&g&&(0,t.jsx)("div",{className:(0,n.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!x&&!g&&(0,t.jsx)(o.xvT,{size:"10",className:(0,n.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:x.toLocaleString()}),(0,t.jsx)(o.KJW,{title:"Alerts",onClick:()=>s("alerts"),children:(0,t.jsx)(i.Dkj,{})})]})]})}},23659:function(e,a,s){"use strict";s.r(a),s.d(a,{default:function(){return y}});var t=s(52322),o=s(79798),i=s(41775),l=s(5187);function n(){let{revenue:e}=(0,l.B)();return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(o.X6q,{children:"Revenue"}),(0,t.jsxs)(o.Vy9,{bleed:!0,children:[(0,t.jsx)(o.A06,{category:"revenue",label:"potential - all",color:e.config.data.potential.color,sc:e.stats.potential,defaultMode:"total",isLoading:e.isLoading,showChange:!1}),(0,t.jsx)(o.Z0O,{variant:"vertical"}),(0,t.jsx)(o.A06,{category:"revenue",label:"earned - all",color:e.config.data.earned.color,sc:e.stats.earned,defaultMode:"total",isLoading:e.isLoading}),(0,t.jsx)(o.A06,{category:"revenue",label:"earned - storage",color:e.config.data.storage.color,sc:e.stats.storage,defaultMode:"total",isLoading:e.isLoading}),(0,t.jsx)(o.A06,{category:"revenue",label:"earned - egress",color:e.config.data.egress.color,sc:e.stats.egress,defaultMode:"total",isLoading:e.isLoading}),(0,t.jsx)(o.A06,{category:"revenue",label:"earned - ingress",color:e.config.data.ingress.color,sc:e.stats.ingress,defaultMode:"total",isLoading:e.isLoading})]}),(0,t.jsx)(o.b0u,{id:"revenue",height:300,data:e.data,config:e.config,isLoading:e.isLoading,actionsLeft:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Revenue"})})})]})}var d=s(25205);function r(){let{storage:e}=(0,l.B)();return(0,t.jsxs)("div",{className:"flex flex-col gap-3 flex-1 overflow-hidden",children:[(0,t.jsx)(o.X6q,{children:"Storage"}),(0,t.jsxs)(o.Vy9,{children:[(0,t.jsx)(o.A06,{category:"storage",label:"storage - physical",color:e.config.data.physicalSectors.color,value:e.stats.physicalSectors,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"],format:d.vW}),(0,t.jsx)(o.A06,{category:"storage",label:"storage - contract",color:e.config.data.contractSectors.color,value:e.stats.contractSectors,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"],format:d.vW}),(0,t.jsx)(o.A06,{category:"storage",label:"storage - temp",color:e.config.data.tempSectors.color,value:e.stats.tempSectors,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"],format:d.vW})]}),(0,t.jsx)(o.b0u,{id:"storage",height:300,data:e.data,config:e.config,isLoading:e.isLoading,actionsLeft:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Storage"})})})]})}function c(){let{contracts:e}=(0,l.B)();return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(o.X6q,{children:"Contracts"}),(0,t.jsxs)(o.Vy9,{bleed:!0,children:[(0,t.jsx)(o.A06,{category:"contracts",label:"Active contracts",color:e.config.data.active.color,value:e.stats.active,format:e=>e.toFixed(0),defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"contracts",label:"Successful contracts",color:e.config.data.successful.color,value:e.stats.successful,format:e=>e.toFixed(0),defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"contracts",label:"Failed contracts",color:e.config.data.failed.color,value:e.stats.failed,format:e=>e.toFixed(0),defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]})]}),(0,t.jsx)(o.b0u,{id:"contracts",actionsLeft:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Contracts"})}),data:e.data,config:e.config,isLoading:e.isLoading,height:300})]})}var g=s(94977);function x(){let{pricing:e}=(0,l.B)();return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(o.X6q,{children:"Pricing"}),(0,t.jsxs)(o.Vy9,{bleed:!0,children:[(0,t.jsx)(o.A06,{category:"pricing",label:"storage",color:e.config.data.storage.color,sc:e.stats.storage,extendedSuffix:g.dz,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"pricing",label:"ingress",color:e.config.data.ingress.color,sc:e.stats.ingress,defaultMode:"latest",extendedSuffix:g.LP,isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"pricing",label:"egress",color:e.config.data.egress.color,sc:e.stats.egress,defaultMode:"latest",extendedSuffix:g.s2,isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"pricing",label:"collateral",color:e.config.data.collateral.color,sc:e.stats.collateral,defaultMode:"latest",extendedSuffix:g.rZ,isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"pricing",label:"contract",color:e.config.data.contract.color,sc:e.stats.contract,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"pricing",label:"sector access",color:e.config.data.sectorAccess.color,sc:e.stats.sectorAccess,extendedSuffix:g.K9,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"pricing",label:"base RPC",color:e.config.data.baseRPC.color,sc:e.stats.baseRPC,extendedSuffix:g.co,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]})]}),(0,t.jsx)(o.b0u,{id:"pricing",height:300,data:e.data,config:e.config,isLoading:e.isLoading,actionsLeft:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Pricing"})})})]})}var f=s(14134),u=s(71930),h=s(66724),j=s(22515),v=s(14817);function b(){let{operations:e}=(0,l.B)();return(0,t.jsx)("div",{className:"flex gap-3",children:(0,t.jsxs)("div",{className:"flex flex-col gap-3 flex-1 overflow-hidden",children:[(0,t.jsx)(o.X6q,{children:"Operations"}),(0,t.jsxs)(o.Vy9,{children:[(0,t.jsx)(o.A06,{category:"operations",label:"storage reads",color:e.config.data.storageReads.color,value:e.stats.storageReads,defaultMode:"total",isLoading:e.isLoading,enabledModes:["total","average","latest"],format:d.yF}),(0,t.jsx)(o.A06,{category:"operations",label:"storage writes",color:e.config.data.storageWrites.color,value:e.stats.storageWrites,defaultMode:"total",isLoading:e.isLoading,enabledModes:["total","average","latest"],format:d.yF})]}),(0,t.jsx)(o.b0u,{id:"operations",height:300,data:e.data,config:e.config,isLoading:e.isLoading,actionsLeft:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Operations"})})})]})})}function m(){let{bandwidth:e}=(0,l.B)();return(0,t.jsxs)("div",{className:"flex flex-col gap-3 flex-1 overflow-hidden",children:[(0,t.jsx)(o.X6q,{children:"Bandwidth"}),(0,t.jsxs)(o.Vy9,{children:[(0,t.jsx)(o.A06,{category:"bandwidth",label:"ingress",color:e.config.data.ingress.color,value:e.stats.ingress,defaultMode:"total",isLoading:e.isLoading,format:d.vW}),(0,t.jsx)(o.A06,{category:"bandwidth",label:"egress",color:e.config.data.egress.color,value:e.stats.egress,defaultMode:"total",isLoading:e.isLoading,format:d.vW})]}),(0,t.jsx)(o.b0u,{id:"bandwidth",height:300,data:e.data,config:e.config,isLoading:e.isLoading,actionsLeft:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Bandwidth"})})})]})}function p(){let{collateral:e}=(0,l.B)();return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(o.X6q,{children:"Collateral"}),(0,t.jsxs)(o.Vy9,{bleed:!0,children:[(0,t.jsx)(o.A06,{category:"collateral",label:"Locked collateral",color:e.config.data.locked.color,sc:e.stats.locked,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"collateral",label:"Risked collateral",color:e.config.data.risked.color,sc:e.stats.risked,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]})]}),(0,t.jsx)(o.b0u,{id:"collateral",actionsLeft:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Collateral"})}),data:e.data,config:e.config,isLoading:e.isLoading,height:300})]})}function L(){let{openDialog:e}=(0,j.Rh)(),{timeRange:a,dataTimeSpan:s,setDataTimeSpan:g,dataInterval:L}=(0,l.B)();return(0,t.jsx)(f.q,{title:"Overview",routes:u._,sidenav:(0,t.jsx)(h.N,{}),openSettings:()=>e("settings"),nav:(0,t.jsx)("div",{className:"flex gap-2 flex-1",children:(0,t.jsxs)(o.eQh,{children:[(0,t.jsx)(o.zxk,{state:"waiting",children:(0,t.jsx)(o.xvT,{size:"12",children:(0,d.rN)(a.start,{dateStyle:"long"})})}),(0,t.jsx)(o.zxk,{state:"waiting",children:(0,t.jsx)(o.xvT,{size:"12",color:"subtle",children:"to"})}),(0,t.jsx)(o.zxk,{state:"waiting",children:(0,t.jsx)(o.xvT,{size:"12",children:(0,d.rN)(a.end,{dateStyle:"long"})})})]})}),size:"full",actions:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.ua7,{side:"bottom",content:"Data interval: ".concat(L),children:(0,t.jsx)("div",{children:(0,t.jsxs)(o.zxk,{variant:"ghost",state:"waiting",children:[(0,t.jsx)(i.BB5,{}),L]})})}),(0,t.jsx)(o.ua7,{content:"Data time range",side:"bottom",children:(0,t.jsx)("div",{children:(0,t.jsx)(o.PhF,{value:String(s),onChange:e=>{let a=e.currentTarget.value;g(a)},icon:(0,t.jsx)(o.xvT,{className:"pl-1 pr-2",children:(0,t.jsx)(i.YV2,{})}),children:v.lv.map(e=>(0,t.jsx)(o.Wxm,{value:e.value,children:e.label},e.value))})})})]}),children:(0,t.jsxs)("div",{className:"p-6 flex flex-col gap-14",children:[(0,t.jsx)(n,{}),(0,t.jsx)(p,{}),(0,t.jsx)(r,{}),(0,t.jsx)(m,{}),(0,t.jsx)(b,{}),(0,t.jsx)(c,{}),(0,t.jsx)(x,{})]})})}function y(){return(0,t.jsx)(L,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=87314)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{87314:function(e,a,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return s(23659)}])},14134:function(e,a,s){"use strict";s.d(a,{q:function(){return u}});var t=s(52322),o=s(13474),i=s(27444),l=s(6391),n=s.n(l),d=s(71930),r=s(25573);function c(){let e=(0,i.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(o.t6k,{testnetName:e.data.network}):null}var g=s(30078),x=s(90089);function f(){var e,a,s,l,n,d,c;let{openDialog:f}=(0,g.Rh)(),u=(0,i.On)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,i.rV)({config:{swr:{revalidateOnFocus:!1}}}),j=(0,r.n)(),v=(0,i.cQ)(),b=(0,x.B)(),m=null===(e=u.data)||void 0===e?void 0:e.version,p=(null==m?void 0:m.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(m):"https://github.com/SiaFoundation/hostd/tree/".concat(m);return(0,t.jsxs)(o.HfT,{name:"hostd",peerCount:null===(a=v.data)||void 0===a?void 0:a.length,connectPeer:()=>f("connectPeer"),isSynced:j.isSynced,syncPercent:j.syncPercent,nodeBlockHeight:j.nodeBlockHeight,estimatedBlockHeight:j.estimatedBlockHeight,firstTimeSyncing:j.firstTimeSyncing,moreThan100BlocksToSync:j.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(o.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(o.XxW,{size:"14",value:null===(s=h.data)||void 0===s?void 0:s.netAddress,maxLength:24,label:"network address",type:"hostIp",siascanUrl:b})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(o.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(o.XxW,{size:"14",value:null===(l=u.data)||void 0===l?void 0:l.publicKey,maxLength:24,label:"public key",type:"hostPublicKey",siascanUrl:b})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(o.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(o.XxW,{size:"14",maxLength:24,value:null===(n=u.data)||void 0===n?void 0:n.walletAddress,type:"address"})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(o.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(o.xvT,{size:"14",children:null===(d=u.data)||void 0===d?void 0:d.network})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(o.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(o.rUS,{size:"14",href:p,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=u.data)||void 0===c?void 0:c.version})]})]})}function u(e){let a=(0,i.Os)(),{isSynced:s}=(0,r.n)();return(0,t.jsx)(o.tU3,{appName:"hostd",connectivityRoute:d.h,banner:(0,t.jsx)(c,{}),profile:(0,t.jsx)(f,{}),isSynced:s,walletBalanceSc:a.data&&{spendable:new(n())(a.data.spendable),confirmed:new(n())(a.data.confirmed),unconfirmed:new(n())(a.data.unconfirmed)},...e})}},66724:function(e,a,s){"use strict";s.d(a,{N:function(){return c}});var t=s(52322),o=s(13474),i=s(41775),l=s(27444),n=s(82851),d=s(71930),r=s(30078);function c(){var e,a;let{openDialog:s}=(0,r.Rh)(),c=(0,l.Z7)(),g=!(null===(e=c.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(a=c.data)||void 0===a?void 0:a.length)||0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.KJW,{title:"Dashboard",route:d._.home,children:(0,t.jsx)(i.K2o,{})}),(0,t.jsx)(o.KJW,{title:"Volumes",route:d._.volumes.index,children:(0,t.jsx)(i.zvn,{})}),(0,t.jsx)(o.KJW,{title:"Contracts",route:d._.contracts.index,children:(0,t.jsx)(i.VBo,{})}),(0,t.jsx)(o.KJW,{title:"Configuration",route:d._.config.index,children:(0,t.jsx)(i.wWN,{})}),(0,t.jsxs)("div",{className:"relative",children:[!!x&&g&&(0,t.jsx)("div",{className:(0,n.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!x&&!g&&(0,t.jsx)(o.xvT,{size:"10",className:(0,n.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:x.toLocaleString()}),(0,t.jsx)(o.KJW,{title:"Alerts",onClick:()=>s("alerts"),children:(0,t.jsx)(i.Dkj,{})})]})]})}},23659:function(e,a,s){"use strict";s.r(a),s.d(a,{default:function(){return y}});var t=s(52322),o=s(13474),i=s(41775),l=s(5187);function n(){let{revenue:e}=(0,l.B)();return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(o.X6q,{children:"Revenue"}),(0,t.jsxs)(o.Vy9,{bleed:!0,children:[(0,t.jsx)(o.A06,{category:"revenue",label:"potential - all",color:e.config.data.potential.color,sc:e.stats.potential,defaultMode:"total",isLoading:e.isLoading,showChange:!1}),(0,t.jsx)(o.Z0O,{variant:"vertical"}),(0,t.jsx)(o.A06,{category:"revenue",label:"earned - all",color:e.config.data.earned.color,sc:e.stats.earned,defaultMode:"total",isLoading:e.isLoading}),(0,t.jsx)(o.A06,{category:"revenue",label:"earned - storage",color:e.config.data.storage.color,sc:e.stats.storage,defaultMode:"total",isLoading:e.isLoading}),(0,t.jsx)(o.A06,{category:"revenue",label:"earned - egress",color:e.config.data.egress.color,sc:e.stats.egress,defaultMode:"total",isLoading:e.isLoading}),(0,t.jsx)(o.A06,{category:"revenue",label:"earned - ingress",color:e.config.data.ingress.color,sc:e.stats.ingress,defaultMode:"total",isLoading:e.isLoading})]}),(0,t.jsx)(o.b0u,{id:"revenue",height:300,data:e.data,config:e.config,isLoading:e.isLoading,actionsLeft:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Revenue"})})})]})}var d=s(25205);function r(){let{storage:e}=(0,l.B)();return(0,t.jsxs)("div",{className:"flex flex-col gap-3 flex-1 overflow-hidden",children:[(0,t.jsx)(o.X6q,{children:"Storage"}),(0,t.jsxs)(o.Vy9,{children:[(0,t.jsx)(o.A06,{category:"storage",label:"storage - physical",color:e.config.data.physicalSectors.color,value:e.stats.physicalSectors,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"],format:d.vW}),(0,t.jsx)(o.A06,{category:"storage",label:"storage - contract",color:e.config.data.contractSectors.color,value:e.stats.contractSectors,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"],format:d.vW}),(0,t.jsx)(o.A06,{category:"storage",label:"storage - temp",color:e.config.data.tempSectors.color,value:e.stats.tempSectors,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"],format:d.vW})]}),(0,t.jsx)(o.b0u,{id:"storage",height:300,data:e.data,config:e.config,isLoading:e.isLoading,actionsLeft:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Storage"})})})]})}function c(){let{contracts:e}=(0,l.B)();return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(o.X6q,{children:"Contracts"}),(0,t.jsxs)(o.Vy9,{bleed:!0,children:[(0,t.jsx)(o.A06,{category:"contracts",label:"Active contracts",color:e.config.data.active.color,value:e.stats.active,format:e=>e.toFixed(0),defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"contracts",label:"Successful contracts",color:e.config.data.successful.color,value:e.stats.successful,format:e=>e.toFixed(0),defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"contracts",label:"Failed contracts",color:e.config.data.failed.color,value:e.stats.failed,format:e=>e.toFixed(0),defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]})]}),(0,t.jsx)(o.b0u,{id:"contracts",actionsLeft:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Contracts"})}),data:e.data,config:e.config,isLoading:e.isLoading,height:300})]})}var g=s(94977);function x(){let{pricing:e}=(0,l.B)();return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(o.X6q,{children:"Pricing"}),(0,t.jsxs)(o.Vy9,{bleed:!0,children:[(0,t.jsx)(o.A06,{category:"pricing",label:"storage",color:e.config.data.storage.color,sc:e.stats.storage,extendedSuffix:g.dz,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"pricing",label:"ingress",color:e.config.data.ingress.color,sc:e.stats.ingress,defaultMode:"latest",extendedSuffix:g.LP,isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"pricing",label:"egress",color:e.config.data.egress.color,sc:e.stats.egress,defaultMode:"latest",extendedSuffix:g.s2,isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"pricing",label:"collateral",color:e.config.data.collateral.color,sc:e.stats.collateral,defaultMode:"latest",extendedSuffix:g.rZ,isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"pricing",label:"contract",color:e.config.data.contract.color,sc:e.stats.contract,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"pricing",label:"sector access",color:e.config.data.sectorAccess.color,sc:e.stats.sectorAccess,extendedSuffix:g.K9,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"pricing",label:"base RPC",color:e.config.data.baseRPC.color,sc:e.stats.baseRPC,extendedSuffix:g.co,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]})]}),(0,t.jsx)(o.b0u,{id:"pricing",height:300,data:e.data,config:e.config,isLoading:e.isLoading,actionsLeft:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Pricing"})})})]})}var f=s(14134),u=s(71930),h=s(66724),j=s(30078),v=s(14817);function b(){let{operations:e}=(0,l.B)();return(0,t.jsx)("div",{className:"flex gap-3",children:(0,t.jsxs)("div",{className:"flex flex-col gap-3 flex-1 overflow-hidden",children:[(0,t.jsx)(o.X6q,{children:"Operations"}),(0,t.jsxs)(o.Vy9,{children:[(0,t.jsx)(o.A06,{category:"operations",label:"storage reads",color:e.config.data.storageReads.color,value:e.stats.storageReads,defaultMode:"total",isLoading:e.isLoading,enabledModes:["total","average","latest"],format:d.yF}),(0,t.jsx)(o.A06,{category:"operations",label:"storage writes",color:e.config.data.storageWrites.color,value:e.stats.storageWrites,defaultMode:"total",isLoading:e.isLoading,enabledModes:["total","average","latest"],format:d.yF})]}),(0,t.jsx)(o.b0u,{id:"operations",height:300,data:e.data,config:e.config,isLoading:e.isLoading,actionsLeft:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Operations"})})})]})})}function m(){let{bandwidth:e}=(0,l.B)();return(0,t.jsxs)("div",{className:"flex flex-col gap-3 flex-1 overflow-hidden",children:[(0,t.jsx)(o.X6q,{children:"Bandwidth"}),(0,t.jsxs)(o.Vy9,{children:[(0,t.jsx)(o.A06,{category:"bandwidth",label:"ingress",color:e.config.data.ingress.color,value:e.stats.ingress,defaultMode:"total",isLoading:e.isLoading,format:d.vW}),(0,t.jsx)(o.A06,{category:"bandwidth",label:"egress",color:e.config.data.egress.color,value:e.stats.egress,defaultMode:"total",isLoading:e.isLoading,format:d.vW})]}),(0,t.jsx)(o.b0u,{id:"bandwidth",height:300,data:e.data,config:e.config,isLoading:e.isLoading,actionsLeft:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Bandwidth"})})})]})}function p(){let{collateral:e}=(0,l.B)();return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(o.X6q,{children:"Collateral"}),(0,t.jsxs)(o.Vy9,{bleed:!0,children:[(0,t.jsx)(o.A06,{category:"collateral",label:"Locked collateral",color:e.config.data.locked.color,sc:e.stats.locked,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,t.jsx)(o.A06,{category:"collateral",label:"Risked collateral",color:e.config.data.risked.color,sc:e.stats.risked,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]})]}),(0,t.jsx)(o.b0u,{id:"collateral",actionsLeft:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Collateral"})}),data:e.data,config:e.config,isLoading:e.isLoading,height:300})]})}function L(){let{openDialog:e}=(0,j.Rh)(),{timeRange:a,dataTimeSpan:s,setDataTimeSpan:g,dataInterval:L}=(0,l.B)();return(0,t.jsx)(f.q,{title:"Overview",routes:u._,sidenav:(0,t.jsx)(h.N,{}),openSettings:()=>e("settings"),nav:(0,t.jsx)("div",{className:"flex gap-2 flex-1",children:(0,t.jsxs)(o.eQh,{children:[(0,t.jsx)(o.zxk,{state:"waiting",children:(0,t.jsx)(o.xvT,{size:"12",children:(0,d.rN)(a.start,{dateStyle:"long"})})}),(0,t.jsx)(o.zxk,{state:"waiting",children:(0,t.jsx)(o.xvT,{size:"12",color:"subtle",children:"to"})}),(0,t.jsx)(o.zxk,{state:"waiting",children:(0,t.jsx)(o.xvT,{size:"12",children:(0,d.rN)(a.end,{dateStyle:"long"})})})]})}),size:"full",actions:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.ua7,{side:"bottom",content:"Data interval: ".concat(L),children:(0,t.jsx)("div",{children:(0,t.jsxs)(o.zxk,{variant:"ghost",state:"waiting",children:[(0,t.jsx)(i.BB5,{}),L]})})}),(0,t.jsx)(o.ua7,{content:"Data time range",side:"bottom",children:(0,t.jsx)("div",{children:(0,t.jsx)(o.PhF,{value:String(s),onChange:e=>{let a=e.currentTarget.value;g(a)},icon:(0,t.jsx)(o.xvT,{className:"pl-1 pr-2",children:(0,t.jsx)(i.YV2,{})}),children:v.lv.map(e=>(0,t.jsx)(o.Wxm,{value:e.value,children:e.label},e.value))})})})]}),children:(0,t.jsxs)("div",{className:"p-6 flex flex-col gap-14",children:[(0,t.jsx)(n,{}),(0,t.jsx)(p,{}),(0,t.jsx)(r,{}),(0,t.jsx)(m,{}),(0,t.jsx)(b,{}),(0,t.jsx)(c,{}),(0,t.jsx)(x,{})]})})}function y(){return(0,t.jsx)(L,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=87314)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/login-2462f78776d3453a.js b/hostd/assets/_next/static/chunks/pages/login-a7eddb9b0450d5ea.js similarity index 88% rename from hostd/assets/_next/static/chunks/pages/login-2462f78776d3453a.js rename to hostd/assets/_next/static/chunks/pages/login-a7eddb9b0450d5ea.js index 0d043bbf8..d6be3268b 100644 --- a/hostd/assets/_next/static/chunks/pages/login-2462f78776d3453a.js +++ b/hostd/assets/_next/static/chunks/pages/login-a7eddb9b0450d5ea.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[459],{97946:function(n,u,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return t(76309)}])},76309:function(n,u,t){"use strict";t.r(u),t.d(u,{default:function(){return c}});var r=t(52322),e=t(79798),o=t(71930);function i(n){return(0,r.jsx)(e.juT,{appName:"hostd",...n})}function s(){return(0,r.jsx)(i,{children:(0,r.jsx)(e.zXq,{appName:"hostd",route:o.h,routes:o._})})}function c(){return(0,r.jsx)(s,{})}}},function(n){n.O(0,[774,888,179],function(){return n(n.s=97946)}),_N_E=n.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[459],{97946:function(n,u,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return t(76309)}])},76309:function(n,u,t){"use strict";t.r(u),t.d(u,{default:function(){return c}});var r=t(52322),e=t(13474),o=t(71930);function i(n){return(0,r.jsx)(e.juT,{appName:"hostd",...n})}function s(){return(0,r.jsx)(i,{children:(0,r.jsx)(e.zXq,{appName:"hostd",route:o.h,routes:o._})})}function c(){return(0,r.jsx)(s,{})}}},function(n){n.O(0,[774,888,179],function(){return n(n.s=97946)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/node-3371d72dcb581908.js b/hostd/assets/_next/static/chunks/pages/node-3371d72dcb581908.js new file mode 100644 index 000000000..09bfe9559 --- /dev/null +++ b/hostd/assets/_next/static/chunks/pages/node-3371d72dcb581908.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[54],{27725:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/node",function(){return t(97556)}])},14134:function(e,n,t){"use strict";t.d(n,{q:function(){return v}});var s=t(52322),i=t(13474),l=t(27444),a=t(6391),r=t.n(a),o=t(71930),d=t(25573);function c(){let e=(0,l.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,s.jsx)(i.t6k,{testnetName:e.data.network}):null}var u=t(30078),x=t(90089);function h(){var e,n,t,a,r,o,c;let{openDialog:h}=(0,u.Rh)(),v=(0,l.On)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,l.rV)({config:{swr:{revalidateOnFocus:!1}}}),j=(0,d.n)(),p=(0,l.cQ)(),m=(0,x.B)(),g=null===(e=v.data)||void 0===e?void 0:e.version,w=(null==g?void 0:g.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(g):"https://github.com/SiaFoundation/hostd/tree/".concat(g);return(0,s.jsxs)(i.HfT,{name:"hostd",peerCount:null===(n=p.data)||void 0===n?void 0:n.length,connectPeer:()=>h("connectPeer"),isSynced:j.isSynced,syncPercent:j.syncPercent,nodeBlockHeight:j.nodeBlockHeight,estimatedBlockHeight:j.estimatedBlockHeight,firstTimeSyncing:j.firstTimeSyncing,moreThan100BlocksToSync:j.moreThan100BlocksToSync,children:[(0,s.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.XxW,{size:"14",value:null===(t=f.data)||void 0===t?void 0:t.netAddress,maxLength:24,label:"network address",type:"hostIp",siascanUrl:m})})]}),(0,s.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.XxW,{size:"14",value:null===(a=v.data)||void 0===a?void 0:a.publicKey,maxLength:24,label:"public key",type:"hostPublicKey",siascanUrl:m})})]}),(0,s.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.XxW,{size:"14",maxLength:24,value:null===(r=v.data)||void 0===r?void 0:r.walletAddress,type:"address"})})]}),(0,s.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(i.xvT,{size:"14",children:null===(o=v.data)||void 0===o?void 0:o.network})})]}),(0,s.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,s.jsx)(i.rUS,{size:"14",href:w,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=v.data)||void 0===c?void 0:c.version})]})]})}function v(e){let n=(0,l.Os)(),{isSynced:t}=(0,d.n)();return(0,s.jsx)(i.tU3,{appName:"hostd",connectivityRoute:o.h,banner:(0,s.jsx)(c,{}),profile:(0,s.jsx)(h,{}),isSynced:t,walletBalanceSc:n.data&&{spendable:new(r())(n.data.spendable),confirmed:new(r())(n.data.confirmed),unconfirmed:new(r())(n.data.unconfirmed)},...e})}},66724:function(e,n,t){"use strict";t.d(n,{N:function(){return c}});var s=t(52322),i=t(13474),l=t(41775),a=t(27444),r=t(82851),o=t(71930),d=t(30078);function c(){var e,n;let{openDialog:t}=(0,d.Rh)(),c=(0,a.Z7)(),u=!(null===(e=c.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(n=c.data)||void 0===n?void 0:n.length)||0;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.KJW,{title:"Dashboard",route:o._.home,children:(0,s.jsx)(l.K2o,{})}),(0,s.jsx)(i.KJW,{title:"Volumes",route:o._.volumes.index,children:(0,s.jsx)(l.zvn,{})}),(0,s.jsx)(i.KJW,{title:"Contracts",route:o._.contracts.index,children:(0,s.jsx)(l.VBo,{})}),(0,s.jsx)(i.KJW,{title:"Configuration",route:o._.config.index,children:(0,s.jsx)(l.wWN,{})}),(0,s.jsxs)("div",{className:"relative",children:[!!x&&u&&(0,s.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!x&&!u&&(0,s.jsx)(i.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:x.toLocaleString()}),(0,s.jsx)(i.KJW,{title:"Alerts",onClick:()=>t("alerts"),children:(0,s.jsx)(l.Dkj,{})})]})]})}},97556:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return f}});var s=t(52322),i=t(13474),l=t(27444),a=t(71930),r=t(30078),o=t(66724),d=t(14134),c=t(2784),u=t(52390),x=t(97885),h=t(25573);function v(){var e;let n=(0,l.cQ)(),t=(0,h.n)(),{openDialog:v}=(0,r.Rh)(),f=(0,c.useMemo)(()=>{var e,t,s;return n.data?(e=n.data,t=["address"],null==e?[]:((0,x.Z)(t)||(t=null==t?[]:[t]),(0,x.Z)(s)||(s=null==s?[]:[s]),(0,u.Z)(e,t,s))).map(e=>e.address):null},[n.data]);return(0,s.jsx)(d.q,{routes:a._,sidenav:(0,s.jsx)(o.N,{}),openSettings:()=>v("settings"),title:"Node",children:(0,s.jsxs)("div",{className:"p-6 flex flex-col gap-5",children:[(0,s.jsxs)("div",{className:"flex flex-wrap gap-7",children:[(0,s.jsx)(i.ncR,{label:"Height",value:t.nodeBlockHeight?t.nodeBlockHeight.toLocaleString():void 0,comment:t.isSynced?void 0:"Syncing to ".concat(t.estimatedBlockHeight.toLocaleString())}),(0,s.jsx)(i.ncR,{label:"Connected peers",value:null===(e=n.data)||void 0===e?void 0:e.length})]}),(0,s.jsx)(i.u5Q,{peers:f,isLoading:n.isValidating,connectPeer:()=>v("connectPeer")})]})})}function f(){return(0,s.jsx)(v,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=27725)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/node-8e127bd25872c5c9.js b/hostd/assets/_next/static/chunks/pages/node-8e127bd25872c5c9.js deleted file mode 100644 index 1db4e3156..000000000 --- a/hostd/assets/_next/static/chunks/pages/node-8e127bd25872c5c9.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[54],{34498:function(e,n,t){var s=t(23813),i=t(86152);e.exports=function(e,n,t,l){return null==e?[]:(i(n)||(n=null==n?[]:[n]),i(t=l?void 0:t)||(t=null==t?[]:[t]),s(e,n,t))}},27725:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/node",function(){return t(61936)}])},14134:function(e,n,t){"use strict";t.d(n,{q:function(){return v}});var s=t(52322),i=t(79798),l=t(27444),a=t(6391),o=t.n(a),r=t(71930),d=t(25573);function c(){let e=(0,l.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,s.jsx)(i.t6k,{testnetName:e.data.network}):null}var u=t(22515),x=t(90089);function h(){var e,n,t,a,o,r,c;let{openDialog:h}=(0,u.Rh)(),v=(0,l.On)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,l.rV)({config:{swr:{revalidateOnFocus:!1}}}),p=(0,d.n)(),j=(0,l.cQ)(),m=(0,x.B)(),g=null===(e=v.data)||void 0===e?void 0:e.version,w=(null==g?void 0:g.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(g):"https://github.com/SiaFoundation/hostd/tree/".concat(g);return(0,s.jsxs)(i.HfT,{name:"hostd",peerCount:null===(n=j.data)||void 0===n?void 0:n.length,connectPeer:()=>h("connectPeer"),isSynced:p.isSynced,syncPercent:p.syncPercent,nodeBlockHeight:p.nodeBlockHeight,estimatedBlockHeight:p.estimatedBlockHeight,firstTimeSyncing:p.firstTimeSyncing,moreThan100BlocksToSync:p.moreThan100BlocksToSync,children:[(0,s.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.XxW,{size:"14",value:null===(t=f.data)||void 0===t?void 0:t.netAddress,maxLength:24,label:"network address",type:"hostIp",siascanUrl:m})})]}),(0,s.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.XxW,{size:"14",value:null===(a=v.data)||void 0===a?void 0:a.publicKey,maxLength:24,label:"public key",type:"hostPublicKey",siascanUrl:m})})]}),(0,s.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.XxW,{size:"14",maxLength:24,value:null===(o=v.data)||void 0===o?void 0:o.walletAddress,type:"address"})})]}),(0,s.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(i.xvT,{size:"14",children:null===(r=v.data)||void 0===r?void 0:r.network})})]}),(0,s.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,s.jsx)(i.rUS,{size:"14",href:w,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=v.data)||void 0===c?void 0:c.version})]})]})}function v(e){let n=(0,l.Os)(),{isSynced:t}=(0,d.n)();return(0,s.jsx)(i.tU3,{appName:"hostd",connectivityRoute:r.h,banner:(0,s.jsx)(c,{}),profile:(0,s.jsx)(h,{}),isSynced:t,walletBalanceSc:n.data&&{spendable:new(o())(n.data.spendable),confirmed:new(o())(n.data.confirmed),unconfirmed:new(o())(n.data.unconfirmed)},...e})}},66724:function(e,n,t){"use strict";t.d(n,{N:function(){return c}});var s=t(52322),i=t(79798),l=t(41775),a=t(27444),o=t(82851),r=t(71930),d=t(22515);function c(){var e,n;let{openDialog:t}=(0,d.Rh)(),c=(0,a.Z7)(),u=!(null===(e=c.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(n=c.data)||void 0===n?void 0:n.length)||0;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.KJW,{title:"Dashboard",route:r._.home,children:(0,s.jsx)(l.K2o,{})}),(0,s.jsx)(i.KJW,{title:"Volumes",route:r._.volumes.index,children:(0,s.jsx)(l.zvn,{})}),(0,s.jsx)(i.KJW,{title:"Contracts",route:r._.contracts.index,children:(0,s.jsx)(l.VBo,{})}),(0,s.jsx)(i.KJW,{title:"Configuration",route:r._.config.index,children:(0,s.jsx)(l.wWN,{})}),(0,s.jsxs)("div",{className:"relative",children:[!!x&&u&&(0,s.jsx)("div",{className:(0,o.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!x&&!u&&(0,s.jsx)(i.xvT,{size:"10",className:(0,o.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:x.toLocaleString()}),(0,s.jsx)(i.KJW,{title:"Alerts",onClick:()=>t("alerts"),children:(0,s.jsx)(l.Dkj,{})})]})]})}},61936:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return f}});var s=t(52322),i=t(79798),l=t(27444),a=t(71930),o=t(22515),r=t(66724),d=t(14134),c=t(2784),u=t(34498),x=t.n(u),h=t(25573);function v(){var e;let n=(0,l.cQ)(),t=(0,h.n)(),{openDialog:u}=(0,o.Rh)(),v=(0,c.useMemo)(()=>n.data?x()(n.data,["address"]).map(e=>e.address):null,[n.data]);return(0,s.jsx)(d.q,{routes:a._,sidenav:(0,s.jsx)(r.N,{}),openSettings:()=>u("settings"),title:"Node",children:(0,s.jsxs)("div",{className:"p-6 flex flex-col gap-5",children:[(0,s.jsxs)("div",{className:"flex flex-wrap gap-7",children:[(0,s.jsx)(i.ncR,{label:"Height",value:t.nodeBlockHeight?t.nodeBlockHeight.toLocaleString():void 0,comment:t.isSynced?void 0:"Syncing to ".concat(t.estimatedBlockHeight.toLocaleString())}),(0,s.jsx)(i.ncR,{label:"Connected peers",value:null===(e=n.data)||void 0===e?void 0:e.length})]}),(0,s.jsx)(i.u5Q,{peers:v,isLoading:n.isValidating,connectPeer:()=>u("connectPeer")})]})})}function f(){return(0,s.jsx)(v,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=27725)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/volumes-c61eb60015ee71e0.js b/hostd/assets/_next/static/chunks/pages/volumes-105b1d78658672f2.js similarity index 94% rename from hostd/assets/_next/static/chunks/pages/volumes-c61eb60015ee71e0.js rename to hostd/assets/_next/static/chunks/pages/volumes-105b1d78658672f2.js index a0cefc34c..0e7a47590 100644 --- a/hostd/assets/_next/static/chunks/pages/volumes-c61eb60015ee71e0.js +++ b/hostd/assets/_next/static/chunks/pages/volumes-105b1d78658672f2.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[144],{13252:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/volumes",function(){return s(89516)}])},14134:function(e,n,s){"use strict";s.d(n,{q:function(){return v}});var t=s(52322),i=s(79798),l=s(27444),a=s(6391),r=s.n(a),o=s(71930),d=s(25573);function c(){let e=(0,l.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(i.t6k,{testnetName:e.data.network}):null}var u=s(22515),x=s(90089);function h(){var e,n,s,a,r,o,c;let{openDialog:h}=(0,u.Rh)(),v=(0,l.On)({config:{swr:{revalidateOnFocus:!1}}}),j=(0,l.rV)({config:{swr:{revalidateOnFocus:!1}}}),m=(0,d.n)(),f=(0,l.cQ)(),p=(0,x.B)(),g=null===(e=v.data)||void 0===e?void 0:e.version,w=(null==g?void 0:g.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(g):"https://github.com/SiaFoundation/hostd/tree/".concat(g);return(0,t.jsxs)(i.HfT,{name:"hostd",peerCount:null===(n=f.data)||void 0===n?void 0:n.length,connectPeer:()=>h("connectPeer"),isSynced:m.isSynced,syncPercent:m.syncPercent,nodeBlockHeight:m.nodeBlockHeight,estimatedBlockHeight:m.estimatedBlockHeight,firstTimeSyncing:m.firstTimeSyncing,moreThan100BlocksToSync:m.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",value:null===(s=j.data)||void 0===s?void 0:s.netAddress,maxLength:24,label:"network address",type:"hostIp",siascanUrl:p})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",value:null===(a=v.data)||void 0===a?void 0:a.publicKey,maxLength:24,label:"public key",type:"hostPublicKey",siascanUrl:p})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",maxLength:24,value:null===(r=v.data)||void 0===r?void 0:r.walletAddress,type:"address"})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.xvT,{size:"14",children:null===(o=v.data)||void 0===o?void 0:o.network})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(i.rUS,{size:"14",href:w,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=v.data)||void 0===c?void 0:c.version})]})]})}function v(e){let n=(0,l.Os)(),{isSynced:s}=(0,d.n)();return(0,t.jsx)(i.tU3,{appName:"hostd",connectivityRoute:o.h,banner:(0,t.jsx)(c,{}),profile:(0,t.jsx)(h,{}),isSynced:s,walletBalanceSc:n.data&&{spendable:new(r())(n.data.spendable),confirmed:new(r())(n.data.confirmed),unconfirmed:new(r())(n.data.unconfirmed)},...e})}},66724:function(e,n,s){"use strict";s.d(n,{N:function(){return c}});var t=s(52322),i=s(79798),l=s(41775),a=s(27444),r=s(82851),o=s(71930),d=s(22515);function c(){var e,n;let{openDialog:s}=(0,d.Rh)(),c=(0,a.Z7)(),u=!(null===(e=c.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(n=c.data)||void 0===n?void 0:n.length)||0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.KJW,{title:"Dashboard",route:o._.home,children:(0,t.jsx)(l.K2o,{})}),(0,t.jsx)(i.KJW,{title:"Volumes",route:o._.volumes.index,children:(0,t.jsx)(l.zvn,{})}),(0,t.jsx)(i.KJW,{title:"Contracts",route:o._.contracts.index,children:(0,t.jsx)(l.VBo,{})}),(0,t.jsx)(i.KJW,{title:"Configuration",route:o._.config.index,children:(0,t.jsx)(l.wWN,{})}),(0,t.jsxs)("div",{className:"relative",children:[!!x&&u&&(0,t.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!x&&!u&&(0,t.jsx)(i.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:x.toLocaleString()}),(0,t.jsx)(i.KJW,{title:"Alerts",onClick:()=>s("alerts"),children:(0,t.jsx)(l.Dkj,{})})]})]})}},89516:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return j}});var t=s(52322),i=s(79798),l=s(41775),a=s(25205),r=s(14134),o=s(22515),d=s(66724),c=s(71930),u=s(78743);function x(){let{configurableColumns:e,toggleColumnVisibility:n,resetDefaultColumnVisibility:s,setColumnsVisible:a,setColumnsHidden:r,enabledColumns:o}=(0,u.F)(),d=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),c=e.filter(e=>"operations"===e.category).map(e=>({label:e.label,value:e.id}));return(0,t.jsxs)(i.J2e,{trigger:(0,t.jsxs)(i.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,t.jsx)(l.hiv,{}),"View",(0,t.jsx)(l.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,t.jsxs)(i.WVB,{children:[(0,t.jsx)(i.__J,{children:"Display properties"}),(0,t.jsx)(i.kFS,{children:(0,t.jsx)(i.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),s()},children:(0,t.jsx)(l.Wet,{})})})]}),(0,t.jsx)(i.FzK,{label:"General",columns:d.map(e=>e.value),enabled:o,setColumnsVisible:a,setColumnsHidden:r}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:d,values:o,onChange:e=>n(e)})}),(0,t.jsx)(i.FzK,{label:"Operations",columns:c.map(e=>e.value),enabled:o,setColumnsVisible:a,setColumnsHidden:r}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:c,values:o,onChange:e=>n(e)})})]})}function h(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(l.zvn,{className:"scale-[200%]"})}),(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"There are currently no volumes. Create one to get started."})]})}function v(){let{openDialog:e}=(0,o.Rh)(),{dataset:n,isLoading:s,columns:v}=(0,u.F)(),j=null==n?void 0:n.reduce((e,n)=>e+n.totalBytes,0),m=null==n?void 0:n.reduce((e,n)=>e+n.usedBytes,0),f=j-m;return(0,t.jsx)(r.q,{title:"Volumes",routes:c._,sidenav:(0,t.jsx)(d.N,{}),openSettings:()=>e("settings"),actions:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(i.zxk,{onClick:()=>e("volumeCreate"),children:[(0,t.jsx)(l.RVU,{}),"Create volume"]}),(0,t.jsx)(x,{})]}),stats:(0,t.jsxs)("div",{className:"flex gap-4",children:[(0,t.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:"".concat((0,a.vW)(m)," used")}),(0,t.jsx)(i.Z0O,{variant:"vertical"}),(0,t.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:"".concat((0,a.vW)(f)," free")}),(0,t.jsx)(i.Z0O,{variant:"vertical"}),(0,t.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:"".concat((0,a.vW)(j)," total")})]}),children:(0,t.jsx)("div",{className:"p-6 min-w-fit",children:(0,t.jsx)(i.iA_,{isLoading:s,pageSize:20,data:n,columns:v,emptyState:(0,t.jsx)(h,{})})})})}function j(){return(0,t.jsx)(v,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=13252)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[144],{13252:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/volumes",function(){return s(89516)}])},14134:function(e,n,s){"use strict";s.d(n,{q:function(){return v}});var t=s(52322),i=s(13474),l=s(27444),a=s(6391),r=s.n(a),o=s(71930),d=s(25573);function c(){let e=(0,l.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(i.t6k,{testnetName:e.data.network}):null}var u=s(30078),x=s(90089);function h(){var e,n,s,a,r,o,c;let{openDialog:h}=(0,u.Rh)(),v=(0,l.On)({config:{swr:{revalidateOnFocus:!1}}}),j=(0,l.rV)({config:{swr:{revalidateOnFocus:!1}}}),m=(0,d.n)(),f=(0,l.cQ)(),p=(0,x.B)(),g=null===(e=v.data)||void 0===e?void 0:e.version,w=(null==g?void 0:g.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(g):"https://github.com/SiaFoundation/hostd/tree/".concat(g);return(0,t.jsxs)(i.HfT,{name:"hostd",peerCount:null===(n=f.data)||void 0===n?void 0:n.length,connectPeer:()=>h("connectPeer"),isSynced:m.isSynced,syncPercent:m.syncPercent,nodeBlockHeight:m.nodeBlockHeight,estimatedBlockHeight:m.estimatedBlockHeight,firstTimeSyncing:m.firstTimeSyncing,moreThan100BlocksToSync:m.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",value:null===(s=j.data)||void 0===s?void 0:s.netAddress,maxLength:24,label:"network address",type:"hostIp",siascanUrl:p})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",value:null===(a=v.data)||void 0===a?void 0:a.publicKey,maxLength:24,label:"public key",type:"hostPublicKey",siascanUrl:p})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",maxLength:24,value:null===(r=v.data)||void 0===r?void 0:r.walletAddress,type:"address"})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.xvT,{size:"14",children:null===(o=v.data)||void 0===o?void 0:o.network})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(i.rUS,{size:"14",href:w,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=v.data)||void 0===c?void 0:c.version})]})]})}function v(e){let n=(0,l.Os)(),{isSynced:s}=(0,d.n)();return(0,t.jsx)(i.tU3,{appName:"hostd",connectivityRoute:o.h,banner:(0,t.jsx)(c,{}),profile:(0,t.jsx)(h,{}),isSynced:s,walletBalanceSc:n.data&&{spendable:new(r())(n.data.spendable),confirmed:new(r())(n.data.confirmed),unconfirmed:new(r())(n.data.unconfirmed)},...e})}},66724:function(e,n,s){"use strict";s.d(n,{N:function(){return c}});var t=s(52322),i=s(13474),l=s(41775),a=s(27444),r=s(82851),o=s(71930),d=s(30078);function c(){var e,n;let{openDialog:s}=(0,d.Rh)(),c=(0,a.Z7)(),u=!(null===(e=c.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(n=c.data)||void 0===n?void 0:n.length)||0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.KJW,{title:"Dashboard",route:o._.home,children:(0,t.jsx)(l.K2o,{})}),(0,t.jsx)(i.KJW,{title:"Volumes",route:o._.volumes.index,children:(0,t.jsx)(l.zvn,{})}),(0,t.jsx)(i.KJW,{title:"Contracts",route:o._.contracts.index,children:(0,t.jsx)(l.VBo,{})}),(0,t.jsx)(i.KJW,{title:"Configuration",route:o._.config.index,children:(0,t.jsx)(l.wWN,{})}),(0,t.jsxs)("div",{className:"relative",children:[!!x&&u&&(0,t.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!x&&!u&&(0,t.jsx)(i.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:x.toLocaleString()}),(0,t.jsx)(i.KJW,{title:"Alerts",onClick:()=>s("alerts"),children:(0,t.jsx)(l.Dkj,{})})]})]})}},89516:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return j}});var t=s(52322),i=s(13474),l=s(41775),a=s(25205),r=s(14134),o=s(30078),d=s(66724),c=s(71930),u=s(78743);function x(){let{configurableColumns:e,toggleColumnVisibility:n,resetDefaultColumnVisibility:s,setColumnsVisible:a,setColumnsHidden:r,enabledColumns:o}=(0,u.F)(),d=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),c=e.filter(e=>"operations"===e.category).map(e=>({label:e.label,value:e.id}));return(0,t.jsxs)(i.J2e,{trigger:(0,t.jsxs)(i.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,t.jsx)(l.hiv,{}),"View",(0,t.jsx)(l.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,t.jsxs)(i.WVB,{children:[(0,t.jsx)(i.__J,{children:"Display properties"}),(0,t.jsx)(i.kFS,{children:(0,t.jsx)(i.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),s()},children:(0,t.jsx)(l.Wet,{})})})]}),(0,t.jsx)(i.FzK,{label:"General",columns:d.map(e=>e.value),enabled:o,setColumnsVisible:a,setColumnsHidden:r}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:d,values:o,onChange:e=>n(e)})}),(0,t.jsx)(i.FzK,{label:"Operations",columns:c.map(e=>e.value),enabled:o,setColumnsVisible:a,setColumnsHidden:r}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:c,values:o,onChange:e=>n(e)})})]})}function h(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(l.zvn,{className:"scale-[200%]"})}),(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"There are currently no volumes. Create one to get started."})]})}function v(){let{openDialog:e}=(0,o.Rh)(),{dataset:n,isLoading:s,columns:v}=(0,u.F)(),j=null==n?void 0:n.reduce((e,n)=>e+n.totalBytes,0),m=null==n?void 0:n.reduce((e,n)=>e+n.usedBytes,0),f=j-m;return(0,t.jsx)(r.q,{title:"Volumes",routes:c._,sidenav:(0,t.jsx)(d.N,{}),openSettings:()=>e("settings"),actions:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(i.zxk,{onClick:()=>e("volumeCreate"),children:[(0,t.jsx)(l.RVU,{}),"Create volume"]}),(0,t.jsx)(x,{})]}),stats:(0,t.jsxs)("div",{className:"flex gap-4",children:[(0,t.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:"".concat((0,a.vW)(m)," used")}),(0,t.jsx)(i.Z0O,{variant:"vertical"}),(0,t.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:"".concat((0,a.vW)(f)," free")}),(0,t.jsx)(i.Z0O,{variant:"vertical"}),(0,t.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:"".concat((0,a.vW)(j)," total")})]}),children:(0,t.jsx)("div",{className:"p-6 min-w-fit",children:(0,t.jsx)(i.iA_,{isLoading:s,pageSize:20,data:n,columns:v,emptyState:(0,t.jsx)(h,{})})})})}function j(){return(0,t.jsx)(v,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=13252)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/wallet-598d783ef1af8964.js b/hostd/assets/_next/static/chunks/pages/wallet-cc57a1bae45c0c32.js similarity index 95% rename from hostd/assets/_next/static/chunks/pages/wallet-598d783ef1af8964.js rename to hostd/assets/_next/static/chunks/pages/wallet-cc57a1bae45c0c32.js index 6540cb47f..620b5bd5b 100644 --- a/hostd/assets/_next/static/chunks/pages/wallet-598d783ef1af8964.js +++ b/hostd/assets/_next/static/chunks/pages/wallet-cc57a1bae45c0c32.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[789],{69171:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/wallet",function(){return s(97677)}])},14134:function(e,n,s){"use strict";s.d(n,{q:function(){return h}});var t=s(52322),i=s(79798),a=s(27444),l=s(6391),r=s.n(l),d=s(71930),c=s(25573);function o(){let e=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(i.t6k,{testnetName:e.data.network}):null}var x=s(22515),u=s(90089);function f(){var e,n,s,l,r,d,o;let{openDialog:f}=(0,x.Rh)(),h=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}}),v=(0,a.rV)({config:{swr:{revalidateOnFocus:!1}}}),j=(0,c.n)(),m=(0,a.cQ)(),p=(0,u.B)(),g=null===(e=h.data)||void 0===e?void 0:e.version,w=(null==g?void 0:g.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(g):"https://github.com/SiaFoundation/hostd/tree/".concat(g);return(0,t.jsxs)(i.HfT,{name:"hostd",peerCount:null===(n=m.data)||void 0===n?void 0:n.length,connectPeer:()=>f("connectPeer"),isSynced:j.isSynced,syncPercent:j.syncPercent,nodeBlockHeight:j.nodeBlockHeight,estimatedBlockHeight:j.estimatedBlockHeight,firstTimeSyncing:j.firstTimeSyncing,moreThan100BlocksToSync:j.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",value:null===(s=v.data)||void 0===s?void 0:s.netAddress,maxLength:24,label:"network address",type:"hostIp",siascanUrl:p})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",value:null===(l=h.data)||void 0===l?void 0:l.publicKey,maxLength:24,label:"public key",type:"hostPublicKey",siascanUrl:p})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",maxLength:24,value:null===(r=h.data)||void 0===r?void 0:r.walletAddress,type:"address"})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.xvT,{size:"14",children:null===(d=h.data)||void 0===d?void 0:d.network})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(i.rUS,{size:"14",href:w,underline:"hover",target:"_blank",ellipsis:!0,children:null===(o=h.data)||void 0===o?void 0:o.version})]})]})}function h(e){let n=(0,a.Os)(),{isSynced:s}=(0,c.n)();return(0,t.jsx)(i.tU3,{appName:"hostd",connectivityRoute:d.h,banner:(0,t.jsx)(o,{}),profile:(0,t.jsx)(f,{}),isSynced:s,walletBalanceSc:n.data&&{spendable:new(r())(n.data.spendable),confirmed:new(r())(n.data.confirmed),unconfirmed:new(r())(n.data.unconfirmed)},...e})}},66724:function(e,n,s){"use strict";s.d(n,{N:function(){return o}});var t=s(52322),i=s(79798),a=s(41775),l=s(27444),r=s(82851),d=s(71930),c=s(22515);function o(){var e,n;let{openDialog:s}=(0,c.Rh)(),o=(0,l.Z7)(),x=!(null===(e=o.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(n=o.data)||void 0===n?void 0:n.length)||0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.KJW,{title:"Dashboard",route:d._.home,children:(0,t.jsx)(a.K2o,{})}),(0,t.jsx)(i.KJW,{title:"Volumes",route:d._.volumes.index,children:(0,t.jsx)(a.zvn,{})}),(0,t.jsx)(i.KJW,{title:"Contracts",route:d._.contracts.index,children:(0,t.jsx)(a.VBo,{})}),(0,t.jsx)(i.KJW,{title:"Configuration",route:d._.config.index,children:(0,t.jsx)(a.wWN,{})}),(0,t.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,t.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!u&&!x&&(0,t.jsx)(i.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:u.toLocaleString()}),(0,t.jsx)(i.KJW,{title:"Alerts",onClick:()=>s("alerts"),children:(0,t.jsx)(a.Dkj,{})})]})]})}},97677:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return p}});var t=s(52322),i=s(79798),a=s(27444),l=s(22515),r=s(71930),d=s(6391),c=s.n(d),o=s(66724),x=s(14134),u=s(25573),f=s(41775);function h(){let{openDialog:e}=(0,l.Rh)();return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(f.HCc,{className:"scale-[200%]"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-6 justify-center items-center",children:[(0,t.jsxs)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["Send funds to your ",(0,t.jsx)(i.EKh,{children:"hostd"})," wallet address to get started."]}),(0,t.jsx)(i.zxk,{variant:"accent",onClick:()=>e("addressDetails"),children:"View address"})]})]})}var v=s(63171);function j(){let{isSynced:e,syncPercent:n,isWalletSynced:s,walletScanPercent:a}=(0,u.n)();return(0,t.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,t.jsx)(i.DmW,{isSynced:e,isWalletSynced:s,syncPercent:n,walletScanPercent:a}),(0,t.jsx)("div",{className:"flex-1"})]})}function m(){let{openDialog:e}=(0,l.Rh)(),n=(0,a.Os)(),{isSynced:s,isWalletSynced:d,syncPercent:f,walletScanPercent:m}=(0,u.n)(),{dataset:p,balances:g,metrics:w,offset:y,limit:b,dataState:N,pageCount:_}=(0,v.n)();return(0,t.jsx)(x.q,{routes:r._,sidenav:(0,t.jsx)(o.N,{}),openSettings:()=>e("settings"),title:"Wallet",actions:(0,t.jsx)(i.QUh,{isSynced:s,isWalletSynced:d,syncPercent:f,walletScanPercent:m,balanceSc:n.data?{spendable:new(c())(n.data.spendable),unconfirmed:new(c())(n.data.unconfirmed),confirmed:new(c())(n.data.confirmed)}:void 0,receiveSiacoin:()=>e("addressDetails"),sendSiacoin:()=>e("sendSiacoin")}),stats:(0,t.jsx)(j,{}),children:(0,t.jsxs)("div",{className:"p-6 flex flex-col gap-5",children:[(null==g?void 0:g.length)&&g.find(e=>e.sc)?(0,t.jsx)(i.Z58,{balances:g,isLoading:w.isValidating}):null,(0,t.jsx)(i.XOF,{title:"Transactions",dataset:p,isLoading:"loading"===N,emptyState:(0,t.jsx)(h,{}),actions:(0,t.jsx)(i.wFK,{offset:y,limit:b,pageTotal:_,isLoading:"loading"===N})})]})})}function p(){return(0,t.jsx)(m,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=69171)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[789],{69171:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/wallet",function(){return s(97677)}])},14134:function(e,n,s){"use strict";s.d(n,{q:function(){return h}});var t=s(52322),i=s(13474),a=s(27444),l=s(6391),r=s.n(l),d=s(71930),c=s(25573);function o(){let e=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(i.t6k,{testnetName:e.data.network}):null}var x=s(30078),u=s(90089);function f(){var e,n,s,l,r,d,o;let{openDialog:f}=(0,x.Rh)(),h=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}}),v=(0,a.rV)({config:{swr:{revalidateOnFocus:!1}}}),j=(0,c.n)(),m=(0,a.cQ)(),p=(0,u.B)(),g=null===(e=h.data)||void 0===e?void 0:e.version,w=(null==g?void 0:g.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(g):"https://github.com/SiaFoundation/hostd/tree/".concat(g);return(0,t.jsxs)(i.HfT,{name:"hostd",peerCount:null===(n=m.data)||void 0===n?void 0:n.length,connectPeer:()=>f("connectPeer"),isSynced:j.isSynced,syncPercent:j.syncPercent,nodeBlockHeight:j.nodeBlockHeight,estimatedBlockHeight:j.estimatedBlockHeight,firstTimeSyncing:j.firstTimeSyncing,moreThan100BlocksToSync:j.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",value:null===(s=v.data)||void 0===s?void 0:s.netAddress,maxLength:24,label:"network address",type:"hostIp",siascanUrl:p})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",value:null===(l=h.data)||void 0===l?void 0:l.publicKey,maxLength:24,label:"public key",type:"hostPublicKey",siascanUrl:p})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(i.XxW,{size:"14",maxLength:24,value:null===(r=h.data)||void 0===r?void 0:r.walletAddress,type:"address"})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.xvT,{size:"14",children:null===(d=h.data)||void 0===d?void 0:d.network})})]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(i.rUS,{size:"14",href:w,underline:"hover",target:"_blank",ellipsis:!0,children:null===(o=h.data)||void 0===o?void 0:o.version})]})]})}function h(e){let n=(0,a.Os)(),{isSynced:s}=(0,c.n)();return(0,t.jsx)(i.tU3,{appName:"hostd",connectivityRoute:d.h,banner:(0,t.jsx)(o,{}),profile:(0,t.jsx)(f,{}),isSynced:s,walletBalanceSc:n.data&&{spendable:new(r())(n.data.spendable),confirmed:new(r())(n.data.confirmed),unconfirmed:new(r())(n.data.unconfirmed)},...e})}},66724:function(e,n,s){"use strict";s.d(n,{N:function(){return o}});var t=s(52322),i=s(13474),a=s(41775),l=s(27444),r=s(82851),d=s(71930),c=s(30078);function o(){var e,n;let{openDialog:s}=(0,c.Rh)(),o=(0,l.Z7)(),x=!(null===(e=o.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(n=o.data)||void 0===n?void 0:n.length)||0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.KJW,{title:"Dashboard",route:d._.home,children:(0,t.jsx)(a.K2o,{})}),(0,t.jsx)(i.KJW,{title:"Volumes",route:d._.volumes.index,children:(0,t.jsx)(a.zvn,{})}),(0,t.jsx)(i.KJW,{title:"Contracts",route:d._.contracts.index,children:(0,t.jsx)(a.VBo,{})}),(0,t.jsx)(i.KJW,{title:"Configuration",route:d._.config.index,children:(0,t.jsx)(a.wWN,{})}),(0,t.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,t.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!u&&!x&&(0,t.jsx)(i.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:u.toLocaleString()}),(0,t.jsx)(i.KJW,{title:"Alerts",onClick:()=>s("alerts"),children:(0,t.jsx)(a.Dkj,{})})]})]})}},97677:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return p}});var t=s(52322),i=s(13474),a=s(27444),l=s(30078),r=s(71930),d=s(6391),c=s.n(d),o=s(66724),x=s(14134),u=s(25573),f=s(41775);function h(){let{openDialog:e}=(0,l.Rh)();return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(f.HCc,{className:"scale-[200%]"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-6 justify-center items-center",children:[(0,t.jsxs)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["Send funds to your ",(0,t.jsx)(i.EKh,{children:"hostd"})," wallet address to get started."]}),(0,t.jsx)(i.zxk,{variant:"accent",onClick:()=>e("addressDetails"),children:"View address"})]})]})}var v=s(63171);function j(){let{isSynced:e,syncPercent:n,isWalletSynced:s,walletScanPercent:a}=(0,u.n)();return(0,t.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,t.jsx)(i.DmW,{isSynced:e,isWalletSynced:s,syncPercent:n,walletScanPercent:a}),(0,t.jsx)("div",{className:"flex-1"})]})}function m(){let{openDialog:e}=(0,l.Rh)(),n=(0,a.Os)(),{isSynced:s,isWalletSynced:d,syncPercent:f,walletScanPercent:m}=(0,u.n)(),{dataset:p,balances:g,metrics:w,offset:y,limit:b,dataState:N,pageCount:_}=(0,v.n)();return(0,t.jsx)(x.q,{routes:r._,sidenav:(0,t.jsx)(o.N,{}),openSettings:()=>e("settings"),title:"Wallet",actions:(0,t.jsx)(i.QUh,{isSynced:s,isWalletSynced:d,syncPercent:f,walletScanPercent:m,balanceSc:n.data?{spendable:new(c())(n.data.spendable),unconfirmed:new(c())(n.data.unconfirmed),confirmed:new(c())(n.data.confirmed)}:void 0,receiveSiacoin:()=>e("addressDetails"),sendSiacoin:()=>e("sendSiacoin")}),stats:(0,t.jsx)(j,{}),children:(0,t.jsxs)("div",{className:"p-6 flex flex-col gap-5",children:[(null==g?void 0:g.length)&&g.find(e=>e.sc)?(0,t.jsx)(i.Z58,{balances:g,isLoading:w.isValidating}):null,(0,t.jsx)(i.XOF,{title:"Transactions",dataset:p,isLoading:"loading"===N,emptyState:(0,t.jsx)(h,{}),actions:(0,t.jsx)(i.wFK,{offset:y,limit:b,pageTotal:_,isLoading:"loading"===N})})]})})}function p(){return(0,t.jsx)(m,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=69171)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/log3Gu2Bk7YPwQpsRNpA3/_buildManifest.js b/hostd/assets/_next/static/log3Gu2Bk7YPwQpsRNpA3/_buildManifest.js new file mode 100644 index 000000000..67d6a5966 --- /dev/null +++ b/hostd/assets/_next/static/log3Gu2Bk7YPwQpsRNpA3/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":["static/chunks/pages/index-9adb16f0d82c08e7.js"],"/_error":["static/chunks/pages/_error-bef7735c65ba8b47.js"],"/config":["static/chunks/pages/config-67934471297a4668.js"],"/contracts":["static/chunks/pages/contracts-f1434d685df6f961.js"],"/login":["static/chunks/pages/login-a7eddb9b0450d5ea.js"],"/node":["static/chunks/pages/node-3371d72dcb581908.js"],"/volumes":["static/chunks/pages/volumes-105b1d78658672f2.js"],"/wallet":["static/chunks/pages/wallet-cc57a1bae45c0c32.js"],sortedPages:["/","/_app","/_error","/config","/contracts","/login","/node","/volumes","/wallet"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/hostd/assets/_next/static/9heB63_-kiSTLJHZhPmct/_ssgManifest.js b/hostd/assets/_next/static/log3Gu2Bk7YPwQpsRNpA3/_ssgManifest.js similarity index 100% rename from hostd/assets/_next/static/9heB63_-kiSTLJHZhPmct/_ssgManifest.js rename to hostd/assets/_next/static/log3Gu2Bk7YPwQpsRNpA3/_ssgManifest.js diff --git a/hostd/assets/config.html b/hostd/assets/config.html index 5aa789e8e..e221e9f21 100644 --- a/hostd/assets/config.html +++ b/hostd/assets/config.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/hostd/assets/contracts.html b/hostd/assets/contracts.html index 17238a325..320876be6 100644 --- a/hostd/assets/contracts.html +++ b/hostd/assets/contracts.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/hostd/assets/index.html b/hostd/assets/index.html index fefe430eb..dd2a40a8c 100644 --- a/hostd/assets/index.html +++ b/hostd/assets/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/hostd/assets/login.html b/hostd/assets/login.html index 56e34679e..73b08f38f 100644 --- a/hostd/assets/login.html +++ b/hostd/assets/login.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/hostd/assets/node.html b/hostd/assets/node.html index 789c8a7d8..dc0fc95a8 100644 --- a/hostd/assets/node.html +++ b/hostd/assets/node.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/hostd/assets/volumes.html b/hostd/assets/volumes.html index 907a8c952..bb02e7aba 100644 --- a/hostd/assets/volumes.html +++ b/hostd/assets/volumes.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/hostd/assets/wallet.html b/hostd/assets/wallet.html index 55cff2469..1db0ecaa2 100644 --- a/hostd/assets/wallet.html +++ b/hostd/assets/wallet.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/404.html b/renterd/assets/404.html index 0e6bc37d3..7e0259526 100644 --- a/renterd/assets/404.html +++ b/renterd/assets/404.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/_next/static/0SYSB9jy3rGUSY7Sie5wh/_buildManifest.js b/renterd/assets/_next/static/0SYSB9jy3rGUSY7Sie5wh/_buildManifest.js deleted file mode 100644 index a5a0ddda2..000000000 --- a/renterd/assets/_next/static/0SYSB9jy3rGUSY7Sie5wh/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":["static/chunks/pages/index-249f4d5800907767.js"],"/_error":["static/chunks/pages/_error-bef7735c65ba8b47.js"],"/config":["static/chunks/pages/config-e7a2ff5329267881.js"],"/contracts":["static/chunks/pages/contracts-e97ddb031b3d9e19.js"],"/files/[[...path]]":["static/chunks/pages/files/[[...path]]-06b90ae12e391ecf.js"],"/hosts":["static/chunks/pages/hosts-715b52fbc12875bc.js"],"/login":["static/chunks/pages/login-84e15bbb2ad42ca9.js"],"/node":["static/chunks/pages/node-7b5c687e26d6ca72.js"],"/wallet":["static/chunks/pages/wallet-2e196f4ed9637ee1.js"],sortedPages:["/","/_app","/_error","/config","/contracts","/files/[[...path]]","/hosts","/login","/node","/wallet"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/renterd/assets/_next/static/H4JO-fMYgg-t35zBsQIzT/_buildManifest.js b/renterd/assets/_next/static/H4JO-fMYgg-t35zBsQIzT/_buildManifest.js new file mode 100644 index 000000000..be7f08192 --- /dev/null +++ b/renterd/assets/_next/static/H4JO-fMYgg-t35zBsQIzT/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":["static/chunks/pages/index-df84518950ea4199.js"],"/_error":["static/chunks/pages/_error-bef7735c65ba8b47.js"],"/config":["static/chunks/pages/config-52c8930185c30b08.js"],"/contracts":["static/chunks/pages/contracts-68daaddfe5b44721.js"],"/files/[[...path]]":["static/chunks/pages/files/[[...path]]-315a5fca3eeaf377.js"],"/hosts":["static/chunks/pages/hosts-5444b4c4a6b90837.js"],"/login":["static/chunks/pages/login-234d684d4a7af2fd.js"],"/node":["static/chunks/pages/node-2ca2bc1ac2348f40.js"],"/wallet":["static/chunks/pages/wallet-1a1d8b8c90854cd1.js"],sortedPages:["/","/_app","/_error","/config","/contracts","/files/[[...path]]","/hosts","/login","/node","/wallet"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/renterd/assets/_next/static/0SYSB9jy3rGUSY7Sie5wh/_ssgManifest.js b/renterd/assets/_next/static/H4JO-fMYgg-t35zBsQIzT/_ssgManifest.js similarity index 100% rename from renterd/assets/_next/static/0SYSB9jy3rGUSY7Sie5wh/_ssgManifest.js rename to renterd/assets/_next/static/H4JO-fMYgg-t35zBsQIzT/_ssgManifest.js diff --git a/renterd/assets/_next/static/chunks/0e2c2e51.b5d5dd23e6c7bcf1.js b/renterd/assets/_next/static/chunks/0e2c2e51.13d5752865551113.js similarity index 99% rename from renterd/assets/_next/static/chunks/0e2c2e51.b5d5dd23e6c7bcf1.js rename to renterd/assets/_next/static/chunks/0e2c2e51.13d5752865551113.js index e537147c6..267d457ea 100644 --- a/renterd/assets/_next/static/chunks/0e2c2e51.b5d5dd23e6c7bcf1.js +++ b/renterd/assets/_next/static/chunks/0e2c2e51.13d5752865551113.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[508],{65950:function(e,l,t){t.d(l,{Z:function(){return ls}});var a=t(96995),n=t(60082),r=t(49310),o=t(3452),i=t(69386),q=t(23320),m=t(46373),u=t(78508),s=t(98550),c=t(1547),h=t(17935),x=t(50918),f=t(4493),d=t(53312),p=t(60846),_=t(53456),g=t(68303),y=t(76039),b=t(2385),v=t(75070),w=t(81219);function O(e,l){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);l&&(a=a.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,a)}return t}function T(e){for(var l=1;le.length)&&(l=e.length);for(var t=0,a=Array(l);t1?n-1:0),o=1;o2&&void 0!==arguments[2]?arguments[2]:0,a=(90-e)*Math.PI/180,n=(90-l)*Math.PI/180,r=100*(1+t);return{x:r*Math.sin(a)*Math.cos(n),y:r*Math.cos(a),z:r*Math.sin(a)*Math.sin(n)}}function Y(e){var l=e.x,t=e.y,a=e.z,n=Math.sqrt(l*l+t*t+a*a),r=Math.atan2(a,l);return{lat:90-180*Math.acos(t/n)/Math.PI,lng:90-180*r/Math.PI-(r<-Math.PI/2?360:0),altitude:n/100-1}}function J(e){return e*Math.PI/180}var X=window.THREE?window.THREE:{BackSide:a._Li,BufferAttribute:a.TlE,Color:a.Ilk,Mesh:a.Kj0,ShaderMaterial:a.jyz},K={backside:!0,coefficient:.5,color:"gold",size:2,power:1},Q=window.THREE?window.THREE:{Color:a.Ilk,LineBasicMaterial:a.nls,LineSegments:a.ejS,Mesh:a.Kj0,MeshPhongMaterial:a.xoR,SphereGeometry:a.xo$,SRGBColorSpace:a.KI_,TextureLoader:a.dpR},$=(0,n.Z)({props:{globeImageUrl:{},bumpImageUrl:{},showGlobe:{default:!0,onChange:function(e,l){l.globeObj.visible=!!e},triggerUpdate:!1},showGraticules:{default:!1,onChange:function(e,l){l.graticulesObj.visible=!!e},triggerUpdate:!1},showAtmosphere:{default:!0,onChange:function(e,l){l.atmosphereObj&&(l.atmosphereObj.visible=!!e)},triggerUpdate:!1},atmosphereColor:{default:"lightskyblue"},atmosphereAltitude:{default:.15},onReady:{default:function(){},triggerUpdate:!1}},methods:{globeMaterial:function(e,l){return void 0!==l?(e.globeObj.material=l||e.defaultGlobeMaterial,this):e.globeObj.material},_destructor:function(e){H(e.globeObj),H(e.graticulesObj)}},stateInit:function(){var e=new Q.SphereGeometry(100,75,75),l=new Q.MeshPhongMaterial({color:0,transparent:!0}),t=new Q.Mesh(e,l);return t.rotation.y=-Math.PI/2,t.__globeObjType="globe",{globeObj:t,graticulesObj:new Q.LineSegments(new o.k((0,i.e)(),100,2),new Q.LineBasicMaterial({color:"lightgrey",transparent:!0,opacity:.1})),defaultGlobeMaterial:l}},init:function(e,l){H(e),l.scene=e,l.scene.add(l.globeObj),l.scene.add(l.graticulesObj),l.ready=!1},update:function(e,l){var t=e.globeObj.material;if(l.hasOwnProperty("globeImageUrl")&&(e.globeImageUrl?new Q.TextureLoader().load(e.globeImageUrl,function(l){l.colorSpace=Q.SRGBColorSpace,t.map=l,t.color=null,t.needsUpdate=!0,!e.ready&&(e.ready=!0)&&setTimeout(e.onReady)}):t.color||(t.color=new Q.Color(0))),l.hasOwnProperty("bumpImageUrl")&&(e.bumpImageUrl?e.bumpImageUrl&&new Q.TextureLoader().load(e.bumpImageUrl,function(e){t.bumpMap=e,t.needsUpdate=!0}):(t.bumpMap=null,t.needsUpdate=!0)),(l.hasOwnProperty("atmosphereColor")||l.hasOwnProperty("atmosphereAltitude"))&&(e.atmosphereObj&&(e.scene.remove(e.atmosphereObj),H(e.atmosphereObj)),e.atmosphereColor&&e.atmosphereAltitude)){var a=e.atmosphereObj=function(e){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:K,t=l.backside,a=l.coefficient,n=l.color,r=l.size,o=l.power,i=function(e,l){for(var t=e.clone(),a=new Float32Array(3*e.attributes.position.count),n=0,r=a.length;n1)||void 0===arguments[1]||arguments[1],t=(0,c.Z)(e).toRgb(),a=["r","g","b"].map(function(e){return t[e]/255});return l?[].concat(Z(a),[t.a]):a};function ea(e,l){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=a.removeDelay,r=void 0===n?0:n;return(0,h.Z)(e,l.children,function(e){return l.add(e)},function(e){var t=function(){l.remove(e),H(e),e&&e.hasOwnProperty("__data")&&delete e.__data.__currentTargetD};r?setTimeout(t,r):t()},T({objBindAttr:"__threeObj"},t))}var en=window.THREE?window.THREE:{BufferAttribute:a.TlE,BufferGeometry:a.u9r,Color:a.Ilk,CylinderGeometry:a.fHI,Matrix4:a.yGw,Mesh:a.Kj0,MeshBasicMaterial:a.vBJ,MeshLambertMaterial:a.YBo,Object3D:a.Tme,Vector3:a.Pa4},er=Object.assign({},u),eo=er.BufferGeometryUtils||er,ei=new en.BufferGeometry().applyMatrix4?"applyMatrix4":"applyMatrix",eq=(0,n.Z)({props:{pointsData:{default:[]},pointLat:{default:"lat"},pointLng:{default:"lng"},pointColor:{default:function(){return"#ffffaa"}},pointAltitude:{default:.1},pointRadius:{default:.25},pointResolution:{default:12,triggerUpdate:!1},pointsMerge:{default:!1},pointsTransitionDuration:{default:1e3,triggerUpdate:!1}},init:function(e,l){H(e),l.scene=e},update:function(e){var l=(0,s.Z)(e.pointLat),t=(0,s.Z)(e.pointLng),a=(0,s.Z)(e.pointAltitude),n=(0,s.Z)(e.pointRadius),o=(0,s.Z)(e.pointColor),i=new en.CylinderGeometry(1,1,1,e.pointResolution);i[ei](new en.Matrix4().makeRotationX(Math.PI/2)),i[ei](new en.Matrix4().makeTranslation(0,0,-.5));var q=2*Math.PI*100/360,m={},u=e.pointsMerge?new en.Object3D:e.scene;if(ea(e.pointsData,u,{createObj:function(){var e=new en.Mesh(i);return e.__globeObjType="point",e},updateObj:function(i,u){var s=function(l){var t=i.__currentTargetD=l,a=t.r,n=t.alt,r=t.lat,o=t.lng;Object.assign(i.position,W(r,o));var m=e.pointsMerge?new en.Vector3(0,0,0):e.scene.localToWorld(new en.Vector3(0,0,0));i.lookAt(m),i.scale.x=i.scale.y=Math.min(30,a)*q,i.scale.z=Math.max(100*n,.1)},c={alt:+a(u),r:+n(u),lat:+l(u),lng:+t(u)},h=i.__currentTargetD||Object.assign({},c,{alt:-.001});if(Object.keys(c).some(function(e){return h[e]!==c[e]})&&(e.pointsMerge||!e.pointsTransitionDuration||e.pointsTransitionDuration<0?s(c):new r.kX(h).to(c,e.pointsTransitionDuration).easing(r.oY.Quadratic.InOut).onUpdate(s).start()),!e.pointsMerge){var x=o(u),f=x?el(x):0,d=!!f;i.visible=d,d&&(m.hasOwnProperty(x)||(m[x]=new en.MeshLambertMaterial({color:ee(x),transparent:f<1,opacity:f})),i.material=m[x])}}}),e.pointsMerge){var c=e.pointsData.length?(eo.mergeGeometries||eo.mergeBufferGeometries)(e.pointsData.map(function(e){var l=e.__threeObj;e.__threeObj=void 0;var t=l.geometry.clone();l.updateMatrix(),t[ei](l.matrix);for(var a=new en.Color(o(e)),n=t.attributes.position.count,r=new Float32Array(3*n),i=0;i dashSize) discard;\n \n // set px color: [r, g, b, a], interpolated between vertices \n gl_FragColor = vColor; \n }\n "},ex=(0,n.Z)({props:{arcsData:{default:[]},arcStartLat:{default:"startLat"},arcStartLng:{default:"startLng"},arcEndLat:{default:"endLat"},arcEndLng:{default:"endLng"},arcColor:{default:function(){return"#ffffaa"}},arcAltitude:{},arcAltitudeAutoScale:{default:.5},arcStroke:{},arcCurveResolution:{default:64,triggerUpdate:!1},arcCircularResolution:{default:6,triggerUpdate:!1},arcDashLength:{default:1},arcDashGap:{default:0},arcDashInitialGap:{default:0},arcDashAnimateTime:{default:0},arcsTransitionDuration:{default:1e3,triggerUpdate:!1}},methods:{pauseAnimation:function(e){var l;null===(l=e.ticker)||void 0===l||l.pause()},resumeAnimation:function(e){var l;null===(l=e.ticker)||void 0===l||l.resume()},_destructor:function(e){var l;null===(l=e.ticker)||void 0===l||l.dispose()}},init:function(e,l){H(e),l.scene=e,l.ticker=new es,l.ticker.onTick.add(function(e,t){l.arcsData.filter(function(e){return e.__threeObj&&e.__threeObj.children.length&&e.__threeObj.children[0].material&&e.__threeObj.children[0].__dashAnimateStep}).forEach(function(e){var l=e.__threeObj.children[0],a=l.__dashAnimateStep*t,n=l.material.uniforms.dashTranslate.value%1e9;l.material.uniforms.dashTranslate.value=n+a})})},update:function(e){var l=(0,s.Z)(e.arcStartLat),t=(0,s.Z)(e.arcStartLng),a=(0,s.Z)(e.arcEndLat),n=(0,s.Z)(e.arcEndLng),o=(0,s.Z)(e.arcAltitude),i=(0,s.Z)(e.arcAltitudeAutoScale),u=(0,s.Z)(e.arcStroke),c=(0,s.Z)(e.arcColor),h=(0,s.Z)(e.arcDashLength),x=(0,s.Z)(e.arcDashGap),d=(0,s.Z)(e.arcDashInitialGap),p=(0,s.Z)(e.arcDashAnimateTime),_=new eu.ShaderMaterial(T(T({},eh),{},{transparent:!0,blending:eu.NormalBlending}));ea(e.arcsData,e.scene,{createObj:function(){var e=new eu.Group;return e.__globeObjType="arc",e},updateObj:function(s,g){var y=u(g),b=null!=y;if(!s.children.length||b!==("Mesh"===s.children[0].type)){H(s);var v=b?new eu.Mesh:new eu.Line(new eu.BufferGeometry);v.material=_.clone(),s.add(v)}var w=s.children[0];Object.assign(w.material.uniforms,{dashSize:{value:h(g)},gapSize:{value:x(g)},dashOffset:{value:d(g)}});var O=p(g);w.__dashAnimateStep=O>0?1e3/O:0;var T=function(e,l){var t,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=l+1;if(e instanceof Array||e instanceof Function){var r=e instanceof Array?(0,f.Z)().domain(e.map(function(l,t){return t/(e.length-1)})).range(e):e;t=function(e){return et(r(e))}}else{var o=et(e);t=function(){return o}}for(var i=new eu.Float32BufferAttribute(4*n*a,4),q=0;q1&&void 0!==arguments[1]?arguments[1]:1,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=e+1,n=a*l,r=new eu.Float32BufferAttribute(n,1),o=0;o=0||(n[t]=e[t]);return n}(e,l);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}(t,em));b?(w.geometry&&w.geometry.dispose(),w.geometry=new eu.TubeGeometry(n,e.arcCurveResolution,a/2,e.arcCircularResolution),w.geometry[ec]("vertexColor",T),w.geometry[ec]("vertexRelDistance",j)):w.geometry.setFromPoints(n.getPoints(e.arcCurveResolution))},D={stroke:y,alt:o(g),altAutoScale:+i(g),startLat:+l(g),startLng:+t(g),endLat:+a(g),endLng:+n(g)},R=g.__currentTargetD||Object.assign({},D,{altAutoScale:-.001});Object.keys(D).some(function(e){return R[e]!==D[e]})&&(!e.arcsTransitionDuration||e.arcsTransitionDuration<0?M(D):new r.kX(R).to(D,e.arcsTransitionDuration).easing(r.oY.Quadratic.InOut).onUpdate(M).start())}})}}),ef=window.THREE?window.THREE:{BufferAttribute:a.TlE,BufferGeometry:a.u9r,Color:a.Ilk,DoubleSide:a.ehD,Mesh:a.Kj0,MeshBasicMaterial:a.vBJ,MeshLambertMaterial:a.YBo,Object3D:a.Tme},ed=Object.assign({},u),ep=ed.BufferGeometryUtils||ed,e_=new ef.BufferGeometry().applyMatrix4?"applyMatrix4":"applyMatrix",eg=(0,n.Z)({props:{hexBinPointsData:{default:[]},hexBinPointLat:{default:"lat"},hexBinPointLng:{default:"lng"},hexBinPointWeight:{default:1},hexBinResolution:{default:4},hexMargin:{default:.2},hexTopCurvatureResolution:{default:5},hexTopColor:{default:function(){return"#ffffaa"}},hexSideColor:{default:function(){return"#ffffaa"}},hexAltitude:{default:function(e){return .01*e.sumWeight}},hexBinMerge:{default:!1},hexTransitionDuration:{default:1e3,triggerUpdate:!1}},init:function(e,l){H(e),l.scene=e},update:function(e){var l=(0,s.Z)(e.hexBinPointLat),t=(0,s.Z)(e.hexBinPointLng),a=(0,s.Z)(e.hexBinPointWeight),n=(0,s.Z)(e.hexAltitude),o=(0,s.Z)(e.hexTopColor),i=(0,s.Z)(e.hexSideColor),q=(0,s.Z)(e.hexMargin),m=Object.entries((0,p.Z)(e.hexBinPointsData.map(function(a){return T(T({},a),{},{h3Idx:(0,_.mD)(l(a),t(a),e.hexBinResolution)})}),"h3Idx")).map(function(e){var l=I(e,2),t=l[0],n=l[1];return{h3Idx:t,points:n,sumWeight:n.reduce(function(e,l){return e+ +a(l)},0)}}),u={};if(ea(m,e.hexBinMerge?new ef.Object3D:e.scene,{createObj:function(e){var l=new ef.Mesh;l.__hexCenter=(0,_.rS)(e.h3Idx),l.__hexGeoJson=(0,_.jf)(e.h3Idx,!0).reverse();var t=l.__hexCenter[1];return l.__hexGeoJson.forEach(function(e){var l=e[0];Math.abs(t-l)>170&&(e[0]+=t>l?360:-360)}),l.__globeObjType="hexbin",l},updateObj:function(l,t){var a=Math.max(0,Math.min(1,+q(t))),m=I(l.__hexCenter,2),s=m[0],c=m[1],h=0===a?l.__hexGeoJson:l.__hexGeoJson.map(function(e){var l=I(e,2);return[[l[0],c],[l[1],s]].map(function(e){var l=I(e,2),t=l[0];return t-(t-l[1])*a})}),x=e.hexTopCurvatureResolution;l.geometry&&l.geometry.dispose(),l.geometry=new d.E([h],0,100,!1,!0,!0,x);var f={alt:+n(t)},p=function(e){var t=(l.__currentTargetD=e).alt;l.scale.x=l.scale.y=l.scale.z=1+t},_=l.__currentTargetD||Object.assign({},f,{alt:-.001});if(Object.keys(f).some(function(e){return _[e]!==f[e]})&&(e.hexBinMerge||!e.hexTransitionDuration||e.hexTransitionDuration<0?p(f):new r.kX(_).to(f,e.hexTransitionDuration).easing(r.oY.Quadratic.InOut).onUpdate(p).start()),!e.hexBinMerge){var g=i(t),y=o(t);[g,y].forEach(function(e){if(!u.hasOwnProperty(e)){var l=el(e);u[e]=new ef.MeshLambertMaterial({color:ee(e),transparent:l<1,opacity:l,side:ef.DoubleSide})}}),l.material=[g,y].map(function(e){return u[e]})}},idAccessor:function(e){return e.h3Idx}}),e.hexBinMerge){var c=m.length?(ep.mergeGeometries||ep.mergeBufferGeometries)(m.map(function(e){var l=e.__threeObj;e.__threeObj=void 0;var t=l.geometry.toNonIndexed();l.updateMatrix(),t[e_](l.matrix);for(var a=new ef.Color(o(e)),n=new ef.Color(i(e)),r=t.attributes.position.count,q=t.groups[0].count,m=new Float32Array(3*r),u=0;u=q?a:n;m[s]=c.r,m[s+1]=c.g,m[s+2]=c.b}return t.setAttribute("color",new ef.BufferAttribute(m,3)),t})):new ef.BufferGeometry,h=new ef.Mesh(c,new ef.MeshBasicMaterial({color:16777215,vertexColors:!0,side:ef.DoubleSide}));h.__globeObjType="hexBinPoints",h.__data=m,H(e.scene),e.scene.add(h)}}}),ey=window.THREE?window.THREE:{DoubleSide:a.ehD,Group:a.ZAu,LineBasicMaterial:a.nls,LineSegments:a.ejS,Mesh:a.Kj0,MeshBasicMaterial:a.vBJ},eb=(0,n.Z)({props:{polygonsData:{default:[]},polygonGeoJsonGeometry:{default:"geometry"},polygonSideColor:{default:function(){return"#ffffaa"}},polygonSideMaterial:{},polygonCapColor:{default:function(){return"#ffffaa"}},polygonCapMaterial:{},polygonStrokeColor:{},polygonAltitude:{default:.01},polygonCapCurvatureResolution:{default:5},polygonsTransitionDuration:{default:1e3,triggerUpdate:!1}},init:function(e,l){H(e),l.scene=e},update:function(e){var l=(0,s.Z)(e.polygonGeoJsonGeometry),t=(0,s.Z)(e.polygonAltitude),a=(0,s.Z)(e.polygonCapCurvatureResolution),n=(0,s.Z)(e.polygonCapColor),i=(0,s.Z)(e.polygonCapMaterial),q=(0,s.Z)(e.polygonSideColor),m=(0,s.Z)(e.polygonSideMaterial),u=(0,s.Z)(e.polygonStrokeColor),c=[];e.polygonsData.forEach(function(e){var r={data:e,capColor:n(e),capMaterial:i(e),sideColor:q(e),sideMaterial:m(e),strokeColor:u(e),altitude:+t(e),capCurvatureResolution:+a(e)},o=l(e),s=e.__id||"".concat(Math.round(1e9*Math.random()));e.__id=s,"Polygon"===o.type?c.push(T({id:"".concat(s,"_0"),coords:o.coordinates},r)):"MultiPolygon"===o.type?c.push.apply(c,Z(o.coordinates.map(function(e,l){return T({id:"".concat(s,"_").concat(l),coords:e},r)}))):console.warn("Unsupported GeoJson geometry type: ".concat(o.type,". Skipping geometry..."))}),ea(c,e.scene,{idAccessor:function(e){return e.id},createObj:function(){var e=new ey.Group;return e.__defaultSideMaterial=new ey.MeshBasicMaterial({side:ey.DoubleSide,depthWrite:!0}),e.__defaultCapMaterial=new ey.MeshBasicMaterial({side:ey.DoubleSide,depthWrite:!0}),e.add(new ey.Mesh(void 0,[e.__defaultSideMaterial,e.__defaultCapMaterial])),e.add(new ey.LineSegments(void 0,new ey.LineBasicMaterial)),e.__globeObjType="polygon",e},updateObj:function(l,t){var a=t.coords,n=t.capColor,i=t.capMaterial,q=t.sideColor,m=t.sideMaterial,u=t.strokeColor,s=t.altitude,c=t.capCurvatureResolution,h=I(l.children,2),x=h[0],f=h[1],p=!!u;if(f.visible=p,!function(e,l){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return function(e,l){return e===l}};return Object.entries(l).every(function(l){var a=I(l,2),n=a[0],r=a[1];return e.hasOwnProperty(n)&&t(n)(e[n],r)})}(x.geometry.parameters||{},{polygonGeoJson:a,curvatureResolution:c})&&(x.geometry&&x.geometry.dispose(),x.geometry=new d.E(a,0,100,!1,!0,!0,c)),p&&(!f.geometry.parameters||f.geometry.parameters.geoJson.coordinates!==a||f.geometry.parameters.resolution!==c)&&(f.geometry&&f.geometry.dispose(),f.geometry=new o.k({type:"Polygon",coordinates:a},100,c)),x.material[0]=m||l.__defaultSideMaterial,x.material[1]=i||l.__defaultCapMaterial,[!m&&q,!i&&n].forEach(function(e,l){if(e){var t=x.material[l],a=el(e);t.color.set(ee(e)),t.transparent=a<1,t.opacity=a}}),p){var _=f.material,g=el(u);_.color.set(ee(u)),_.transparent=g<1,_.opacity=g}var y={alt:s},b=function(e){var t=(l.__currentTargetD=e).alt;x.scale.x=x.scale.y=x.scale.z=1+t,p&&(f.scale.x=f.scale.y=f.scale.z=1+t+1e-4)},v=l.__currentTargetD||Object.assign({},y,{alt:-.001});Object.keys(y).some(function(e){return v[e]!==y[e]})&&(!e.polygonsTransitionDuration||e.polygonsTransitionDuration<0||v.alt===y.alt?b(y):new r.kX(v).to(y,e.polygonsTransitionDuration).easing(r.oY.Quadratic.InOut).onUpdate(b).start())}})}}),ev=window.THREE?window.THREE:{BufferGeometry:a.u9r,DoubleSide:a.ehD,Mesh:a.Kj0,MeshLambertMaterial:a.YBo},ew=Object.assign({},u),eO=ew.BufferGeometryUtils||ew,eT=(0,n.Z)({props:{hexPolygonsData:{default:[]},hexPolygonGeoJsonGeometry:{default:"geometry"},hexPolygonColor:{default:function(){return"#ffffaa"}},hexPolygonAltitude:{default:.001},hexPolygonResolution:{default:3},hexPolygonMargin:{default:.2},hexPolygonCurvatureResolution:{default:5},hexPolygonsTransitionDuration:{default:0,triggerUpdate:!1}},init:function(e,l){H(e),l.scene=e},update:function(e){var l=(0,s.Z)(e.hexPolygonGeoJsonGeometry),t=(0,s.Z)(e.hexPolygonColor),a=(0,s.Z)(e.hexPolygonAltitude),n=(0,s.Z)(e.hexPolygonResolution),o=(0,s.Z)(e.hexPolygonMargin),i=(0,s.Z)(e.hexPolygonCurvatureResolution);ea(e.hexPolygonsData,e.scene,{createObj:function(e){var l=new ev.Mesh(void 0,new ev.MeshLambertMaterial({side:ev.DoubleSide}));return l.__globeObjType="hexPolygon",l},updateObj:function(q,m){var u=l(m),s=n(m),c=a(m),h=Math.max(0,Math.min(1,+o(m))),x=i(m),f=t(m),p=el(f);q.material.color.set(ee(f)),q.material.transparent=p<1,q.material.opacity=p;var g={alt:c,margin:h,curvatureResolution:x},y=q.__currentTargetD||Object.assign({},g,{alt:-.001});if(Object.keys(g).some(function(e){return y[e]!==g[e]})){var b=[];"Polygon"===u.type?(0,_.KC)(u.coordinates,s,!0).forEach(function(e){return b.push(e)}):"MultiPolygon"===u.type?u.coordinates.forEach(function(e){return(0,_.KC)(e,s,!0).forEach(function(e){return b.push(e)})}):console.warn("Unsupported GeoJson geometry type: ".concat(u.type,". Skipping geometry..."));var v=b.map(function(e){var l=(0,_.rS)(e),t=(0,_.jf)(e,!0).reverse(),a=l[1];return t.forEach(function(e){var l=e[0];Math.abs(a-l)>170&&(e[0]+=a>l?360:-360)}),{h3Idx:e,hexCenter:l,hexGeoJson:t}}),w=function(e){var l=q.__currentTargetD=e,t=l.alt,a=l.margin,n=l.curvatureResolution;q.geometry&&q.geometry.dispose(),q.geometry=v.length?(eO.mergeGeometries||eO.mergeBufferGeometries)(v.map(function(e){var l=I(e.hexCenter,2),r=l[0],o=l[1],i=0===a?e.hexGeoJson:e.hexGeoJson.map(function(e){var l=I(e,2);return[[l[0],o],[l[1],r]].map(function(e){var l=I(e,2),t=l[0];return t-(t-l[1])*a})});return new d.E([i],100,100*(1+t),!1,!0,!1,n)})):new ev.BufferGeometry};!e.hexPolygonsTransitionDuration||e.hexPolygonsTransitionDuration<0?w(g):new r.kX(y).to(g,e.hexPolygonsTransitionDuration).easing(r.oY.Quadratic.InOut).onUpdate(w).start()}}})}}),ej=window.THREE?window.THREE:{Vector3:a.Pa4},eM=window.THREE?window.THREE:{BufferGeometry:a.u9r,Color:a.Ilk,Float32BufferAttribute:a.a$l,Group:a.ZAu,Line:a.x12,NormalBlending:a.bdR,ShaderMaterial:a.jyz,Vector3:a.Pa4},eD=x.default||x,eR=new eM.BufferGeometry().setAttribute?"setAttribute":"addAttribute",eA={uniforms:{dashOffset:{value:0},dashSize:{value:1},gapSize:{value:0},dashTranslate:{value:0}},vertexShader:"\n uniform float dashTranslate;\n\n attribute vec4 vertexColor;\n varying vec4 vColor;\n\n attribute float vertexRelDistance;\n varying float vRelDistance;\n\n void main() {\n // pass through colors and distances\n vColor = vertexColor;\n vRelDistance = vertexRelDistance + dashTranslate;\n gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n }\n ",fragmentShader:"\n uniform float dashOffset;\n uniform float dashSize;\n uniform float gapSize;\n\n varying vec4 vColor;\n varying float vRelDistance;\n\n void main() {\n // ignore pixels in the gap\n if (vRelDistance < dashOffset) discard;\n if (mod(vRelDistance - dashOffset, dashSize + gapSize) > dashSize) discard;\n\n // set px color: [r, g, b, a], interpolated between vertices\n gl_FragColor = vColor;\n }\n "},eS=(0,n.Z)({props:{pathsData:{default:[]},pathPoints:{default:function(e){return e}},pathPointLat:{default:function(e){return e[0]}},pathPointLng:{default:function(e){return e[1]}},pathPointAlt:{default:.001},pathResolution:{default:2},pathColor:{default:function(){return"#ffffaa"}},pathStroke:{},pathDashLength:{default:1},pathDashGap:{default:0},pathDashInitialGap:{default:0},pathDashAnimateTime:{default:0},pathTransitionDuration:{default:1e3,triggerUpdate:!1},rendererSize:{}},methods:{pauseAnimation:function(e){var l;null===(l=e.ticker)||void 0===l||l.pause()},resumeAnimation:function(e){var l;null===(l=e.ticker)||void 0===l||l.resume()},_destructor:function(e){var l;null===(l=e.ticker)||void 0===l||l.dispose()}},init:function(e,l){H(e),l.scene=e,l.ticker=new eD,l.ticker.onTick.add(function(e,t){l.pathsData.filter(function(e){return e.__threeObj&&e.__threeObj.children.length&&e.__threeObj.children[0].material&&e.__threeObj.children[0].__dashAnimateStep}).forEach(function(e){var l=e.__threeObj.children[0],a=l.__dashAnimateStep*t;if("Line"===l.type){var n=l.material.uniforms.dashTranslate.value%1e9;l.material.uniforms.dashTranslate.value=n+a}else if("Line2"===l.type){for(var r=l.material.dashOffset-a,o=l.material.dashSize+l.material.gapSize;r<=-o;)r+=o;l.material.dashOffset=r}})})},update:function(e){var l=(0,s.Z)(e.pathPoints),t=(0,s.Z)(e.pathPointLat),a=(0,s.Z)(e.pathPointLng),n=(0,s.Z)(e.pathPointAlt),o=(0,s.Z)(e.pathStroke),i=(0,s.Z)(e.pathColor),q=(0,s.Z)(e.pathDashLength),m=(0,s.Z)(e.pathDashGap),u=(0,s.Z)(e.pathDashInitialGap),c=(0,s.Z)(e.pathDashAnimateTime),h=new eM.ShaderMaterial(T(T({},eA),{},{transparent:!0,blending:eM.NormalBlending}));function x(e,l){var t,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=!(arguments.length>3)||void 0===arguments[3]||arguments[3],r=l+1;if(e instanceof Array||e instanceof Function){var o=e instanceof Array?(0,f.Z)().domain(e.map(function(l,t){return t/(e.length-1)})).range(e):e;t=function(e){return et(o(e),n)}}else{var i=et(e,n);t=function(){return i}}for(var q=n?4:3,m=new eM.Float32BufferAttribute(r*q*a,q),u=0;u0&&void 0!==arguments[0]?arguments[0]:[],l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,t=[],a=null;return e.forEach(function(e){if(a){for(;Math.abs(a[1]-e[1])>180;)a[1]+=360*(a[1]l)for(var r=Math.floor(n/l),o=A(a[0],e[0],r),i=A(a[1],e[1],r),q=A(a[2],e[2],r),m=0,u=o.length;m0?1e3/M:0,w){T.material.resolution=e.rendererSize;var D,R,A,S,L,C=q(f),E=m(f),P=u(f);T.material.dashed=E>0,T.material.dashed?T.material.defines.USE_DASH="":delete T.material.defines.USE_DASH,T.material.dashed&&(T.material.dashScale=1/(L=0,j.forEach(function(e){S&&(L+=S.distanceTo(e)),S=e}),L),T.material.dashSize=C,T.material.gapSize=E,T.material.dashOffset=-P);var G=i(f);if(G instanceof Array){var k=x(i(f),j.length-1,1,!1);T.geometry.setColors(k.array),T.material.vertexColors=!0}else{var B=el(G);T.material.color=new eM.Color(ee(G)),T.material.transparent=B<1,T.material.opacity=B,T.material.vertexColors=!1}T.material.needsUpdate=!0}else{Object.assign(T.material.uniforms,{dashSize:{value:q(f)},gapSize:{value:m(f)},dashOffset:{value:u(f)}});var U=x(i(f),j.length),F=function(e){for(var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=e+1,n=a*l,r=new eM.Float32BufferAttribute(n,1),o=0;o":{x_min:18.0625,x_max:774,ha:792,o:"m 774 376 l 18 40 l 18 149 l 631 421 l 18 692 l 18 799 l 774 465 l 774 376 "},v:{x_min:0,x_max:675.15625,ha:761,o:"m 675 738 l 404 0 l 272 0 l 0 738 l 133 737 l 340 147 l 541 737 l 675 738 "},τ:{x_min:.28125,x_max:644.5,ha:703,o:"m 644 628 l 382 628 l 382 179 q 388 120 382 137 q 436 91 401 91 q 474 94 447 91 q 504 97 501 97 l 504 0 q 454 -9 482 -5 q 401 -14 426 -14 q 278 67 308 -14 q 260 233 260 118 l 260 628 l 0 628 l 0 739 l 644 739 l 644 628 "},ξ:{x_min:0,x_max:624.9375,ha:699,o:"m 624 -37 q 608 -153 624 -96 q 563 -278 593 -211 l 454 -278 q 491 -183 486 -200 q 511 -83 511 -126 q 484 -23 511 -44 q 370 1 452 1 q 323 0 354 1 q 283 -1 293 -1 q 84 76 169 -1 q 0 266 0 154 q 56 431 0 358 q 197 538 108 498 q 94 613 134 562 q 54 730 54 665 q 77 823 54 780 q 143 901 101 867 l 27 901 l 27 1012 l 576 1012 l 576 901 l 380 901 q 244 863 303 901 q 178 745 178 820 q 312 600 178 636 q 532 582 380 582 l 532 479 q 276 455 361 479 q 118 281 118 410 q 165 173 118 217 q 274 120 208 133 q 494 101 384 110 q 624 -37 624 76 "},"&":{x_min:-3,x_max:894.25,ha:992,o:"m 894 0 l 725 0 l 624 123 q 471 0 553 40 q 306 -41 390 -41 q 168 -7 231 -41 q 62 92 105 26 q 14 187 31 139 q -3 276 -3 235 q 55 433 -3 358 q 248 581 114 508 q 170 689 196 640 q 137 817 137 751 q 214 985 137 922 q 384 1041 284 1041 q 548 988 483 1041 q 622 824 622 928 q 563 666 622 739 q 431 556 516 608 l 621 326 q 649 407 639 361 q 663 493 653 426 l 781 493 q 703 229 781 352 l 894 0 m 504 818 q 468 908 504 877 q 384 940 433 940 q 293 907 331 940 q 255 818 255 875 q 289 714 255 767 q 363 628 313 678 q 477 729 446 682 q 504 818 504 771 m 556 209 l 314 499 q 179 395 223 449 q 135 283 135 341 q 146 222 135 253 q 183 158 158 192 q 333 80 241 80 q 556 209 448 80 "},Λ:{x_min:0,x_max:862.5,ha:942,o:"m 862 0 l 719 0 l 426 847 l 143 0 l 0 0 l 356 1013 l 501 1013 l 862 0 "},I:{x_min:41,x_max:180,ha:293,o:"m 180 0 l 41 0 l 41 1013 l 180 1013 l 180 0 "},G:{x_min:0,x_max:921,ha:1011,o:"m 921 0 l 832 0 l 801 136 q 655 15 741 58 q 470 -28 568 -28 q 126 133 259 -28 q 0 499 0 284 q 125 881 0 731 q 486 1043 259 1043 q 763 957 647 1043 q 905 709 890 864 l 772 709 q 668 866 747 807 q 486 926 589 926 q 228 795 322 926 q 142 507 142 677 q 228 224 142 342 q 483 94 323 94 q 712 195 625 94 q 796 435 796 291 l 477 435 l 477 549 l 921 549 l 921 0 "},ΰ:{x_min:0,x_max:617,ha:725,o:"m 524 800 l 414 800 l 414 925 l 524 925 l 524 800 m 183 800 l 73 800 l 73 925 l 183 925 l 183 800 m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 m 489 1040 l 300 819 l 216 819 l 351 1040 l 489 1040 "},"`":{x_min:0,x_max:138.890625,ha:236,o:"m 138 699 l 0 699 l 0 861 q 36 974 0 929 q 138 1041 72 1020 l 138 977 q 82 931 95 969 q 69 839 69 893 l 138 839 l 138 699 "},"\xb7":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 "},Υ:{x_min:.328125,x_max:819.515625,ha:889,o:"m 819 1013 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1013 l 140 1013 l 411 533 l 679 1013 l 819 1013 "},r:{x_min:0,x_max:355.5625,ha:432,o:"m 355 621 l 343 621 q 179 569 236 621 q 122 411 122 518 l 122 0 l 0 0 l 0 737 l 117 737 l 117 604 q 204 719 146 686 q 355 753 262 753 l 355 621 "},x:{x_min:0,x_max:675,ha:764,o:"m 675 0 l 525 0 l 331 286 l 144 0 l 0 0 l 256 379 l 12 738 l 157 737 l 336 473 l 516 738 l 661 738 l 412 380 l 675 0 "},μ:{x_min:0,x_max:696.609375,ha:747,o:"m 696 -4 q 628 -14 657 -14 q 498 97 513 -14 q 422 8 470 41 q 313 -24 374 -24 q 207 3 258 -24 q 120 80 157 31 l 120 -278 l 0 -278 l 0 738 l 124 738 l 124 343 q 165 172 124 246 q 308 82 216 82 q 451 177 402 82 q 492 358 492 254 l 492 738 l 616 738 l 616 214 q 623 136 616 160 q 673 92 636 92 q 696 95 684 92 l 696 -4 "},h:{x_min:0,x_max:615,ha:724,o:"m 615 472 l 615 0 l 490 0 l 490 454 q 456 590 490 535 q 338 654 416 654 q 186 588 251 654 q 122 436 122 522 l 122 0 l 0 0 l 0 1013 l 122 1013 l 122 633 q 218 727 149 694 q 362 760 287 760 q 552 676 484 760 q 615 472 615 600 "},".":{x_min:0,x_max:142,ha:239,o:"m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 "},φ:{x_min:-2,x_max:878,ha:974,o:"m 496 -279 l 378 -279 l 378 -17 q 101 88 204 -17 q -2 367 -2 194 q 68 626 -2 510 q 283 758 151 758 l 283 646 q 167 537 209 626 q 133 373 133 462 q 192 177 133 254 q 378 93 259 93 l 378 758 q 445 764 426 763 q 476 765 464 765 q 765 659 653 765 q 878 377 878 553 q 771 96 878 209 q 496 -17 665 -17 l 496 -279 m 496 93 l 514 93 q 687 183 623 93 q 746 380 746 265 q 691 569 746 491 q 522 658 629 658 l 496 656 l 496 93 "},";":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 m 142 -12 q 105 -132 142 -82 q 0 -206 68 -182 l 0 -138 q 58 -82 43 -123 q 68 0 68 -56 l 0 0 l 0 151 l 142 151 l 142 -12 "},f:{x_min:0,x_max:378,ha:472,o:"m 378 638 l 246 638 l 246 0 l 121 0 l 121 638 l 0 638 l 0 738 l 121 738 q 137 935 121 887 q 290 1028 171 1028 q 320 1027 305 1028 q 378 1021 334 1026 l 378 908 q 323 918 346 918 q 257 870 273 918 q 246 780 246 840 l 246 738 l 378 738 l 378 638 "},"“":{x_min:1,x_max:348.21875,ha:454,o:"m 140 670 l 1 670 l 1 830 q 37 943 1 897 q 140 1011 74 990 l 140 947 q 82 900 97 940 q 68 810 68 861 l 140 810 l 140 670 m 348 670 l 209 670 l 209 830 q 245 943 209 897 q 348 1011 282 990 l 348 947 q 290 900 305 940 q 276 810 276 861 l 348 810 l 348 670 "},A:{x_min:.03125,x_max:906.953125,ha:1008,o:"m 906 0 l 756 0 l 648 303 l 251 303 l 142 0 l 0 0 l 376 1013 l 529 1013 l 906 0 m 610 421 l 452 867 l 293 421 l 610 421 "},"‘":{x_min:1,x_max:139.890625,ha:236,o:"m 139 670 l 1 670 l 1 830 q 37 943 1 897 q 139 1011 74 990 l 139 947 q 82 900 97 940 q 68 810 68 861 l 139 810 l 139 670 "},ϊ:{x_min:-70,x_max:283,ha:361,o:"m 283 800 l 173 800 l 173 925 l 283 925 l 283 800 m 40 800 l -70 800 l -70 925 l 40 925 l 40 800 m 283 3 q 232 -10 257 -5 q 181 -15 206 -15 q 84 26 118 -15 q 41 200 41 79 l 41 737 l 166 737 l 167 215 q 171 141 167 157 q 225 101 182 101 q 247 103 238 101 q 283 112 256 104 l 283 3 "},π:{x_min:-.21875,x_max:773.21875,ha:857,o:"m 773 -7 l 707 -11 q 575 40 607 -11 q 552 174 552 77 l 552 226 l 552 626 l 222 626 l 222 0 l 97 0 l 97 626 l 0 626 l 0 737 l 773 737 l 773 626 l 676 626 l 676 171 q 695 103 676 117 q 773 90 714 90 l 773 -7 "},ά:{x_min:0,x_max:765.5625,ha:809,o:"m 765 -4 q 698 -14 726 -14 q 564 97 586 -14 q 466 7 525 40 q 337 -26 407 -26 q 88 98 186 -26 q 0 369 0 212 q 88 637 0 525 q 337 760 184 760 q 465 727 407 760 q 563 637 524 695 l 563 738 l 685 738 l 685 222 q 693 141 685 168 q 748 94 708 94 q 765 95 760 94 l 765 -4 m 584 371 q 531 562 584 485 q 360 653 470 653 q 192 566 254 653 q 135 379 135 489 q 186 181 135 261 q 358 84 247 84 q 528 176 465 84 q 584 371 584 260 m 604 1040 l 415 819 l 332 819 l 466 1040 l 604 1040 "},O:{x_min:0,x_max:958,ha:1057,o:"m 485 1041 q 834 882 702 1041 q 958 512 958 734 q 834 136 958 287 q 481 -26 702 -26 q 126 130 261 -26 q 0 504 0 279 q 127 880 0 728 q 485 1041 263 1041 m 480 98 q 731 225 638 98 q 815 504 815 340 q 733 783 815 669 q 480 912 640 912 q 226 784 321 912 q 142 504 142 670 q 226 224 142 339 q 480 98 319 98 "},n:{x_min:0,x_max:615,ha:724,o:"m 615 463 l 615 0 l 490 0 l 490 454 q 453 592 490 537 q 331 656 410 656 q 178 585 240 656 q 117 421 117 514 l 117 0 l 0 0 l 0 738 l 117 738 l 117 630 q 218 728 150 693 q 359 764 286 764 q 552 675 484 764 q 615 463 615 593 "},l:{x_min:41,x_max:166,ha:279,o:"m 166 0 l 41 0 l 41 1013 l 166 1013 l 166 0 "},"\xa4":{x_min:40.09375,x_max:728.796875,ha:825,o:"m 728 304 l 649 224 l 512 363 q 383 331 458 331 q 256 363 310 331 l 119 224 l 40 304 l 177 441 q 150 553 150 493 q 184 673 150 621 l 40 818 l 119 898 l 267 749 q 321 766 291 759 q 384 773 351 773 q 447 766 417 773 q 501 749 477 759 l 649 898 l 728 818 l 585 675 q 612 618 604 648 q 621 553 621 587 q 591 441 621 491 l 728 304 m 384 682 q 280 643 318 682 q 243 551 243 604 q 279 461 243 499 q 383 423 316 423 q 487 461 449 423 q 525 553 525 500 q 490 641 525 605 q 384 682 451 682 "},κ:{x_min:0,x_max:632.328125,ha:679,o:"m 632 0 l 482 0 l 225 384 l 124 288 l 124 0 l 0 0 l 0 738 l 124 738 l 124 446 l 433 738 l 596 738 l 312 466 l 632 0 "},p:{x_min:0,x_max:685,ha:786,o:"m 685 364 q 598 96 685 205 q 350 -23 504 -23 q 121 89 205 -23 l 121 -278 l 0 -278 l 0 738 l 121 738 l 121 633 q 220 726 159 691 q 351 761 280 761 q 598 636 504 761 q 685 364 685 522 m 557 371 q 501 560 557 481 q 330 651 437 651 q 162 559 223 651 q 108 366 108 479 q 162 177 108 254 q 333 87 224 87 q 502 178 441 87 q 557 371 557 258 "},"‡":{x_min:0,x_max:777,ha:835,o:"m 458 238 l 458 0 l 319 0 l 319 238 l 0 238 l 0 360 l 319 360 l 319 681 l 0 683 l 0 804 l 319 804 l 319 1015 l 458 1013 l 458 804 l 777 804 l 777 683 l 458 683 l 458 360 l 777 360 l 777 238 l 458 238 "},ψ:{x_min:0,x_max:808,ha:907,o:"m 465 -278 l 341 -278 l 341 -15 q 87 102 180 -15 q 0 378 0 210 l 0 739 l 133 739 l 133 379 q 182 195 133 275 q 341 98 242 98 l 341 922 l 465 922 l 465 98 q 623 195 563 98 q 675 382 675 278 l 675 742 l 808 742 l 808 381 q 720 104 808 213 q 466 -13 627 -13 l 465 -278 "},η:{x_min:.78125,x_max:697,ha:810,o:"m 697 -278 l 572 -278 l 572 454 q 540 587 572 536 q 425 650 501 650 q 271 579 337 650 q 206 420 206 509 l 206 0 l 81 0 l 81 489 q 73 588 81 562 q 0 644 56 644 l 0 741 q 68 755 38 755 q 158 720 124 755 q 200 630 193 686 q 297 726 234 692 q 434 761 359 761 q 620 692 544 761 q 697 516 697 624 l 697 -278 "}},cssFontWeight:"normal",ascender:1189,underlinePosition:-100,cssFontStyle:"normal",boundingBox:{yMin:-334,xMin:-111,yMax:1189,xMax:1672},resolution:1e3,original_font_information:{postscript_name:"Helvetiker-Regular",version_string:"Version 1.00 2004 initial release",vendor_url:"http://www.magenta.gr/",full_font_name:"Helvetiker",font_family_name:"Helvetiker",copyright:"Copyright (c) Μagenta ltd, 2004",description:"",trademark:"",designer:"",designer_url:"",unique_font_identifier:"Μagenta ltd:Helvetiker:22-10-104",license_url:"http://www.ellak.gr/fonts/MgOpen/license.html",license_description:'Copyright (c) 2004 by MAGENTA Ltd. All Rights Reserved.\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions: \r\n\r\nThe above copyright and this permission notice shall be included in all copies of one or more of the Font Software typefaces.\r\n\r\nThe Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing the word "MgOpen", or if the modifications are accepted for inclusion in the Font Software itself by the each appointed Administrator.\r\n\r\nThis License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "MgOpen" name.\r\n\r\nThe Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself. \r\n\r\nTHE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL MAGENTA OR PERSONS OR BODIES IN CHARGE OF ADMINISTRATION AND MAINTENANCE OF THE FONT SOFTWARE BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.',manufacturer_name:"Μagenta ltd",font_sub_family_name:"Regular"},descender:-334,familyName:"Helvetiker",lineHeight:1522,underlineThickness:50},onChange:function(e,l){l.font=new eP.Font(e)}},labelColor:{default:function(){return"lightgrey"}},labelRotation:{default:0},labelResolution:{default:3},labelIncludeDot:{default:!0},labelDotRadius:{default:.1},labelDotOrientation:{default:function(){return"bottom"}},labelsTransitionDuration:{default:1e3,triggerUpdate:!1}},init:function(e,l){H(e),l.scene=e},update:function(e){var l=(0,s.Z)(e.labelLat),t=(0,s.Z)(e.labelLng),n=(0,s.Z)(e.labelAltitude),o=(0,s.Z)(e.labelText),i=(0,s.Z)(e.labelSize),q=(0,s.Z)(e.labelRotation),m=(0,s.Z)(e.labelColor),u=(0,s.Z)(e.labelIncludeDot),c=(0,s.Z)(e.labelDotRadius),h=(0,s.Z)(e.labelDotOrientation),x=new Set(["right","top","bottom"]),f=2*Math.PI*100/360,d=new eP.CircleGeometry(1,16);ea(e.labelsData,e.scene,{createObj:function(){var e=new eP.MeshLambertMaterial;e.side=a.ehD;var l=new eP.Group;return l.add(new eP.Mesh(d,e)),l.add(new eP.Mesh(void 0,e)),l.__globeObjType="label",l},updateObj:function(a,s){var d=I(a.children,2),p=d[0],_=d[1],g=m(s),y=el(g);_.material.color.set(ee(g)),_.material.transparent=y<1,_.material.opacity=y;var b=u(s),v=h(s);b&&(x.has(v)||(v="bottom"));var w=b?+c(s)*f:1e-12;p.scale.x=p.scale.y=w;var O=+i(s)*f;if(_.geometry&&_.geometry.dispose(),_.geometry=new eP.TextGeometry(o(s),{font:e.font,size:O,height:0,curveSegments:e.labelResolution}),"right"!==v&&_.geometry.center(),b){var T=w+O/2;"right"===v&&(_.position.x=T),_.position.y=({right:-O/2,top:T+O/2,bottom:-T-O/2})[v]}var j=function(l){var t=a.__currentTargetD=l,n=t.lat,r=t.lng,o=t.alt,i=t.rot,q=t.scale;Object.assign(a.position,W(n,r,o)),a.lookAt(e.scene.localToWorld(new eP.Vector3(0,0,0))),a.rotateY(Math.PI),a.rotateZ(-i*Math.PI/180),a.scale.x=a.scale.y=a.scale.z=q},M={lat:+l(s),lng:+t(s),alt:+n(s),rot:+q(s),scale:1},D=a.__currentTargetD||Object.assign({},M,{scale:1e-12});Object.keys(M).some(function(e){return D[e]!==M[e]})&&(!e.labelsTransitionDuration||e.labelsTransitionDuration<0?j(M):new r.kX(D).to(M,e.labelsTransitionDuration).easing(r.oY.Quadratic.InOut).onUpdate(j).start())}})}}),eI=function(e){A(t,e);var l=G(t);function t(){var e,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:32;j(this,t),(e=l.call(this)).type="CircleLineGeometry",e.parameters={radius:a,segmentCount:n};for(var r=[],o=0;o<=n;o++){var i=(o/n-.25)*Math.PI*2;r.push({x:Math.cos(i)*a,y:Math.sin(i)*a,z:0})}return e.setFromPoints(r),e}return D(t)}((window.THREE?window.THREE:{BufferGeometry:a.u9r}).BufferGeometry),eZ=window.THREE?window.THREE:{Color:a.Ilk,Group:a.ZAu,Line:a.x12,LineBasicMaterial:a.nls,Vector3:a.Pa4},ek=x.default||x,eB=(0,n.Z)({props:{ringsData:{default:[]},ringLat:{default:"lat"},ringLng:{default:"lng"},ringAltitude:{default:.0015},ringColor:{default:function(){return"#ffffaa"},triggerUpdate:!1},ringResolution:{default:64,triggerUpdate:!1},ringMaxRadius:{default:2,triggerUpdate:!1},ringPropagationSpeed:{default:1,triggerUpdate:!1},ringRepeatPeriod:{default:700,triggerUpdate:!1}},methods:{pauseAnimation:function(e){var l;null===(l=e.ticker)||void 0===l||l.pause()},resumeAnimation:function(e){var l;null===(l=e.ticker)||void 0===l||l.resume()},_destructor:function(e){var l;null===(l=e.ticker)||void 0===l||l.dispose()}},init:function(e,l){H(e),l.scene=e,l.ticker=new ek,l.ticker.onTick.add(function(e){if(l.ringsData.length){var t=(0,s.Z)(l.ringColor),a=(0,s.Z)(l.ringAltitude),n=(0,s.Z)(l.ringMaxRadius),o=(0,s.Z)(l.ringPropagationSpeed),i=(0,s.Z)(l.ringRepeatPeriod);l.ringsData.filter(function(e){return e.__threeObj}).forEach(function(q){var m=q.__threeObj;if((m.__nextRingTime||0)<=e){var u,s,c,h,x=i(q)/1e3;m.__nextRingTime=e+(x<=0?1/0:x);var d=new eZ.Line(new eI(1,l.ringResolution),new eZ.LineBasicMaterial),p=t(q),_=p instanceof Array||p instanceof Function;_?p instanceof Array?(h=(0,f.Z)().domain(p.map(function(e,l){return l/(p.length-1)})).range(p),d.material.transparent=p.some(function(e){return 1>el(e)})):(h=p,d.material.transparent=!0):(d.material.color=new eZ.Color(ee(p)),u=d.material,s=el(p),u.opacity=s,u.transparent=s<1,u.depthWrite=void 0===c?s>=1:c);var g=100*(1+a(q)),y=n(q),b=y*Math.PI/180,v=o(q),w=v<=0,O=function(e){var l=e.t,t=(w?1-l:l)*b;if(d.scale.x=d.scale.y=g*Math.sin(t),d.position.z=g*(1-Math.cos(t)),_){var a=h(l);d.material.color=new eZ.Color(ee(a)),d.material.transparent&&(d.material.opacity=el(a))}};0===v?(O({t:0}),m.add(d)):new r.kX({t:0}).to({t:1},1e3*Math.abs(y/v)).onUpdate(O).onStart(function(){return m.add(d)}).onComplete(function(){m.remove(d),N(d)}).start()}})}})},update:function(e){var l=(0,s.Z)(e.ringLat),t=(0,s.Z)(e.ringLng),a=(0,s.Z)(e.ringAltitude),n=e.scene.localToWorld(new eZ.Vector3(0,0,0));ea(e.ringsData,e.scene,{createObj:function(){var e=new eZ.Group;return e.__globeObjType="ring",e},updateObj:function(e,r){var o=l(r),i=t(r),q=a(r);Object.assign(e.position,W(o,i,q)),e.lookAt(n)}},{removeDelay:3e4})}}),eU=T(T({},window.THREE?window.THREE:{}),{},{CSS2DObject:w.j}),eF=(0,n.Z)({props:{htmlElementsData:{default:[]},htmlLat:{default:"lat"},htmlLng:{default:"lng"},htmlAltitude:{default:0},htmlElement:{},htmlTransitionDuration:{default:1e3,triggerUpdate:!1},isBehindGlobe:{onChange:function(){this.updateObjVisibility()},triggerUpdate:!1}},methods:{updateObjVisibility:function(e,l){(l?[l]:e.htmlElementsData.map(function(e){return e.__threeObj}).filter(function(e){return e})).forEach(function(l){return l.visible=!e.isBehindGlobe||!e.isBehindGlobe(l.position)})}},init:function(e,l){H(e),l.scene=e},update:function(e,l){var t=this,a=(0,s.Z)(e.htmlLat),n=(0,s.Z)(e.htmlLng),o=(0,s.Z)(e.htmlAltitude),i=(0,s.Z)(e.htmlElement);ea(e.htmlElementsData,e.scene,{purge:l.hasOwnProperty("htmlElement"),createObj:function(e){var l=i(e),t=new eU.CSS2DObject(l);return t.__globeObjType="html",t},updateObj:function(l,i){var q=function(e){var a=l.__currentTargetD=e,n=a.alt,r=a.lat,o=a.lng;Object.assign(l.position,W(r,o,n)),t.updateObjVisibility(l)},m={lat:+a(i),lng:+n(i),alt:+o(i)};e.htmlTransitionDuration&&!(e.htmlTransitionDuration<0)&&l.__currentTargetD?new r.kX(l.__currentTargetD).to(m,e.pointsTransitionDuration).easing(r.oY.Quadratic.InOut).onUpdate(q).start():q(m)}})}}),eN=window.THREE?window.THREE:{Euler:a.USm,Group:a.ZAu,Mesh:a.Kj0,MeshLambertMaterial:a.YBo,SphereGeometry:a.xo$},eH=(0,n.Z)({props:{objectsData:{default:[]},objectLat:{default:"lat"},objectLng:{default:"lng"},objectAltitude:{default:.01},objectFacesSurface:{default:!0},objectRotation:{},objectThreeObject:{default:new eN.Mesh(new eN.SphereGeometry(1,16,8),new eN.MeshLambertMaterial({color:"#ffffaa",transparent:!0,opacity:.7}))}},init:function(e,l){H(e),l.scene=e},update:function(e,l){var t=(0,s.Z)(e.objectLat),n=(0,s.Z)(e.objectLng),r=(0,s.Z)(e.objectAltitude),o=(0,s.Z)(e.objectFacesSurface),i=(0,s.Z)(e.objectRotation),q=(0,s.Z)(e.objectThreeObject);ea(e.objectsData,e.scene,{purge:l.hasOwnProperty("objectThreeObject"),createObj:function(l){var t=q(l);e.objectThreeObject===t&&(t=t.clone());var a=new eN.Group;return a.add(t),a.__globeObjType="object",a},updateObj:function(e,l){var q=+t(l),m=+n(l),u=+r(l);Object.assign(e.position,W(q,m,u)),o(l)?e.setRotationFromEuler(new a.USm(J(-q),J(m),0,"YXZ")):e.rotation.set(0,0,0);var s=e.children[0],c=i(l);c&&s.setRotationFromEuler(new a.USm(J(c.x||0),J(c.y||0),J(c.z||0)))}})}}),ez=(0,n.Z)({props:{customLayerData:{default:[]},customThreeObject:{},customThreeObjectUpdate:{triggerUpdate:!1}},init:function(e,l){H(e),l.scene=e},update:function(e,l){e.customThreeObjectUpdate||H(e.scene);var t=(0,s.Z)(e.customThreeObject),a=(0,s.Z)(e.customThreeObjectUpdate);ea(e.customLayerData,e.scene,{purge:l.hasOwnProperty("customThreeObject"),createObj:function(l){var a=t(l,100);return a&&(e.customThreeObject===a&&(a=a.clone()),a.__globeObjType="custom"),a},updateObj:function(e,l){return a(e,l,100)}})}}),eV=window.THREE?window.THREE:{Group:a.ZAu,Vector2:a.FM8,Vector3:a.Pa4},eW=["globeLayer","pointsLayer","arcsLayer","hexBinLayer","polygonsLayer","hexedPolygonsLayer","pathsLayer","tilesLayer","labelsLayer","ringsLayer","htmlElementsLayer","objectsLayer","customLayer"],eY=z("globeLayer",$),eJ=Object.assign.apply(Object,Z(["globeImageUrl","bumpImageUrl","showGlobe","showGraticules","showAtmosphere","atmosphereColor","atmosphereAltitude"].map(function(e){return R({},e,eY.linkProp(e))}))),eX=Object.assign.apply(Object,Z(["globeMaterial"].map(function(e){return R({},e,eY.linkMethod(e))}))),eK=z("pointsLayer",eq),eQ=Object.assign.apply(Object,Z(["pointsData","pointLat","pointLng","pointColor","pointAltitude","pointRadius","pointResolution","pointsMerge","pointsTransitionDuration"].map(function(e){return R({},e,eK.linkProp(e))}))),e$=z("arcsLayer",ex),e1=Object.assign.apply(Object,Z(["arcsData","arcStartLat","arcStartLng","arcEndLat","arcEndLng","arcColor","arcAltitude","arcAltitudeAutoScale","arcStroke","arcCurveResolution","arcCircularResolution","arcDashLength","arcDashGap","arcDashInitialGap","arcDashAnimateTime","arcsTransitionDuration"].map(function(e){return R({},e,e$.linkProp(e))}))),e0=z("hexBinLayer",eg),e2=Object.assign.apply(Object,Z(["hexBinPointsData","hexBinPointLat","hexBinPointLng","hexBinPointWeight","hexBinResolution","hexMargin","hexTopCurvatureResolution","hexTopColor","hexSideColor","hexAltitude","hexBinMerge","hexTransitionDuration"].map(function(e){return R({},e,e0.linkProp(e))}))),e3=z("hexedPolygonsLayer",eT),e4=Object.assign.apply(Object,Z(["hexPolygonsData","hexPolygonGeoJsonGeometry","hexPolygonColor","hexPolygonAltitude","hexPolygonResolution","hexPolygonMargin","hexPolygonCurvatureResolution","hexPolygonsTransitionDuration"].map(function(e){return R({},e,e3.linkProp(e))}))),e5=z("polygonsLayer",eb),e6=Object.assign.apply(Object,Z(["polygonsData","polygonGeoJsonGeometry","polygonCapColor","polygonCapMaterial","polygonSideColor","polygonSideMaterial","polygonStrokeColor","polygonAltitude","polygonCapCurvatureResolution","polygonsTransitionDuration"].map(function(e){return R({},e,e5.linkProp(e))}))),e7=z("pathsLayer",eS),e8=Object.assign.apply(Object,Z(["pathsData","pathPoints","pathPointLat","pathPointLng","pathPointAlt","pathResolution","pathColor","pathStroke","pathDashLength","pathDashGap","pathDashInitialGap","pathDashAnimateTime","pathTransitionDuration"].map(function(e){return R({},e,e7.linkProp(e))}))),e9=z("tilesLayer",eC),le=Object.assign.apply(Object,Z(["tilesData","tileLat","tileLng","tileAltitude","tileWidth","tileHeight","tileUseGlobeProjection","tileMaterial","tileCurvatureResolution","tilesTransitionDuration"].map(function(e){return R({},e,e9.linkProp(e))}))),ll=z("labelsLayer",eG),lt=Object.assign.apply(Object,Z(["labelsData","labelLat","labelLng","labelAltitude","labelRotation","labelText","labelSize","labelTypeFace","labelColor","labelResolution","labelIncludeDot","labelDotRadius","labelDotOrientation","labelsTransitionDuration"].map(function(e){return R({},e,ll.linkProp(e))}))),la=z("ringsLayer",eB),ln=Object.assign.apply(Object,Z(["ringsData","ringLat","ringLng","ringAltitude","ringColor","ringResolution","ringMaxRadius","ringPropagationSpeed","ringRepeatPeriod"].map(function(e){return R({},e,la.linkProp(e))}))),lr=z("htmlElementsLayer",eF),lo=Object.assign.apply(Object,Z(["htmlElementsData","htmlLat","htmlLng","htmlAltitude","htmlElement","htmlTransitionDuration"].map(function(e){return R({},e,lr.linkProp(e))}))),li=z("objectsLayer",eH),lq=Object.assign.apply(Object,Z(["objectsData","objectLat","objectLng","objectAltitude","objectRotation","objectFacesSurface","objectThreeObject"].map(function(e){return R({},e,li.linkProp(e))}))),lm=z("customLayer",ez),lu=Object.assign.apply(Object,Z(["customLayerData","customThreeObject","customThreeObjectUpdate"].map(function(e){return R({},e,lm.linkProp(e))}))),ls=function(e){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=function(l){A(n,l);var a=G(n);function n(){var l;j(this,n);for(var r=arguments.length,o=Array(r),i=0;i1?l-1:0),a=1;a1?l-1:0),a=1;ae.length)&&(l=e.length);for(var t=0,a=Array(l);t1?n-1:0),o=1;o2&&void 0!==arguments[2]?arguments[2]:0,a=(90-e)*Math.PI/180,n=(90-l)*Math.PI/180,r=100*(1+t);return{x:r*Math.sin(a)*Math.cos(n),y:r*Math.cos(a),z:r*Math.sin(a)*Math.sin(n)}}function Y(e){var l=e.x,t=e.y,a=e.z,n=Math.sqrt(l*l+t*t+a*a),r=Math.atan2(a,l);return{lat:90-180*Math.acos(t/n)/Math.PI,lng:90-180*r/Math.PI-(r<-Math.PI/2?360:0),altitude:n/100-1}}function J(e){return e*Math.PI/180}var X=window.THREE?window.THREE:{BackSide:a._Li,BufferAttribute:a.TlE,Color:a.Ilk,Mesh:a.Kj0,ShaderMaterial:a.jyz},K={backside:!0,coefficient:.5,color:"gold",size:2,power:1},Q=window.THREE?window.THREE:{Color:a.Ilk,LineBasicMaterial:a.nls,LineSegments:a.ejS,Mesh:a.Kj0,MeshPhongMaterial:a.xoR,SphereGeometry:a.xo$,SRGBColorSpace:a.KI_,TextureLoader:a.dpR},$=(0,n.Z)({props:{globeImageUrl:{},bumpImageUrl:{},showGlobe:{default:!0,onChange:function(e,l){l.globeObj.visible=!!e},triggerUpdate:!1},showGraticules:{default:!1,onChange:function(e,l){l.graticulesObj.visible=!!e},triggerUpdate:!1},showAtmosphere:{default:!0,onChange:function(e,l){l.atmosphereObj&&(l.atmosphereObj.visible=!!e)},triggerUpdate:!1},atmosphereColor:{default:"lightskyblue"},atmosphereAltitude:{default:.15},onReady:{default:function(){},triggerUpdate:!1}},methods:{globeMaterial:function(e,l){return void 0!==l?(e.globeObj.material=l||e.defaultGlobeMaterial,this):e.globeObj.material},_destructor:function(e){H(e.globeObj),H(e.graticulesObj)}},stateInit:function(){var e=new Q.SphereGeometry(100,75,75),l=new Q.MeshPhongMaterial({color:0,transparent:!0}),t=new Q.Mesh(e,l);return t.rotation.y=-Math.PI/2,t.__globeObjType="globe",{globeObj:t,graticulesObj:new Q.LineSegments(new o.k((0,i.e)(),100,2),new Q.LineBasicMaterial({color:"lightgrey",transparent:!0,opacity:.1})),defaultGlobeMaterial:l}},init:function(e,l){H(e),l.scene=e,l.scene.add(l.globeObj),l.scene.add(l.graticulesObj),l.ready=!1},update:function(e,l){var t=e.globeObj.material;if(l.hasOwnProperty("globeImageUrl")&&(e.globeImageUrl?new Q.TextureLoader().load(e.globeImageUrl,function(l){l.colorSpace=Q.SRGBColorSpace,t.map=l,t.color=null,t.needsUpdate=!0,!e.ready&&(e.ready=!0)&&setTimeout(e.onReady)}):t.color||(t.color=new Q.Color(0))),l.hasOwnProperty("bumpImageUrl")&&(e.bumpImageUrl?e.bumpImageUrl&&new Q.TextureLoader().load(e.bumpImageUrl,function(e){t.bumpMap=e,t.needsUpdate=!0}):(t.bumpMap=null,t.needsUpdate=!0)),(l.hasOwnProperty("atmosphereColor")||l.hasOwnProperty("atmosphereAltitude"))&&(e.atmosphereObj&&(e.scene.remove(e.atmosphereObj),H(e.atmosphereObj)),e.atmosphereColor&&e.atmosphereAltitude)){var a=e.atmosphereObj=function(e){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:K,t=l.backside,a=l.coefficient,n=l.color,r=l.size,o=l.power,i=function(e,l){for(var t=e.clone(),a=new Float32Array(3*e.attributes.position.count),n=0,r=a.length;n1)||void 0===arguments[1]||arguments[1],t=(0,c.Z)(e).toRgb(),a=["r","g","b"].map(function(e){return t[e]/255});return l?[].concat(Z(a),[t.a]):a};function ea(e,l){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=a.removeDelay,r=void 0===n?0:n;return(0,h.Z)(e,l.children,function(e){return l.add(e)},function(e){var t=function(){l.remove(e),H(e),e&&e.hasOwnProperty("__data")&&delete e.__data.__currentTargetD};r?setTimeout(t,r):t()},T({objBindAttr:"__threeObj"},t))}var en=window.THREE?window.THREE:{BufferAttribute:a.TlE,BufferGeometry:a.u9r,Color:a.Ilk,CylinderGeometry:a.fHI,Matrix4:a.yGw,Mesh:a.Kj0,MeshBasicMaterial:a.vBJ,MeshLambertMaterial:a.YBo,Object3D:a.Tme,Vector3:a.Pa4},er=Object.assign({},u),eo=er.BufferGeometryUtils||er,ei=new en.BufferGeometry().applyMatrix4?"applyMatrix4":"applyMatrix",eq=(0,n.Z)({props:{pointsData:{default:[]},pointLat:{default:"lat"},pointLng:{default:"lng"},pointColor:{default:function(){return"#ffffaa"}},pointAltitude:{default:.1},pointRadius:{default:.25},pointResolution:{default:12,triggerUpdate:!1},pointsMerge:{default:!1},pointsTransitionDuration:{default:1e3,triggerUpdate:!1}},init:function(e,l){H(e),l.scene=e},update:function(e){var l=(0,s.Z)(e.pointLat),t=(0,s.Z)(e.pointLng),a=(0,s.Z)(e.pointAltitude),n=(0,s.Z)(e.pointRadius),o=(0,s.Z)(e.pointColor),i=new en.CylinderGeometry(1,1,1,e.pointResolution);i[ei](new en.Matrix4().makeRotationX(Math.PI/2)),i[ei](new en.Matrix4().makeTranslation(0,0,-.5));var q=2*Math.PI*100/360,m={},u=e.pointsMerge?new en.Object3D:e.scene;if(ea(e.pointsData,u,{createObj:function(){var e=new en.Mesh(i);return e.__globeObjType="point",e},updateObj:function(i,u){var s=function(l){var t=i.__currentTargetD=l,a=t.r,n=t.alt,r=t.lat,o=t.lng;Object.assign(i.position,W(r,o));var m=e.pointsMerge?new en.Vector3(0,0,0):e.scene.localToWorld(new en.Vector3(0,0,0));i.lookAt(m),i.scale.x=i.scale.y=Math.min(30,a)*q,i.scale.z=Math.max(100*n,.1)},c={alt:+a(u),r:+n(u),lat:+l(u),lng:+t(u)},h=i.__currentTargetD||Object.assign({},c,{alt:-.001});if(Object.keys(c).some(function(e){return h[e]!==c[e]})&&(e.pointsMerge||!e.pointsTransitionDuration||e.pointsTransitionDuration<0?s(c):new r.kX(h).to(c,e.pointsTransitionDuration).easing(r.oY.Quadratic.InOut).onUpdate(s).start()),!e.pointsMerge){var x=o(u),f=x?el(x):0,d=!!f;i.visible=d,d&&(m.hasOwnProperty(x)||(m[x]=new en.MeshLambertMaterial({color:ee(x),transparent:f<1,opacity:f})),i.material=m[x])}}}),e.pointsMerge){var c=e.pointsData.length?(eo.mergeGeometries||eo.mergeBufferGeometries)(e.pointsData.map(function(e){var l=e.__threeObj;e.__threeObj=void 0;var t=l.geometry.clone();l.updateMatrix(),t[ei](l.matrix);for(var a=new en.Color(o(e)),n=t.attributes.position.count,r=new Float32Array(3*n),i=0;i dashSize) discard;\n \n // set px color: [r, g, b, a], interpolated between vertices \n gl_FragColor = vColor; \n }\n "},ex=(0,n.Z)({props:{arcsData:{default:[]},arcStartLat:{default:"startLat"},arcStartLng:{default:"startLng"},arcEndLat:{default:"endLat"},arcEndLng:{default:"endLng"},arcColor:{default:function(){return"#ffffaa"}},arcAltitude:{},arcAltitudeAutoScale:{default:.5},arcStroke:{},arcCurveResolution:{default:64,triggerUpdate:!1},arcCircularResolution:{default:6,triggerUpdate:!1},arcDashLength:{default:1},arcDashGap:{default:0},arcDashInitialGap:{default:0},arcDashAnimateTime:{default:0},arcsTransitionDuration:{default:1e3,triggerUpdate:!1}},methods:{pauseAnimation:function(e){var l;null===(l=e.ticker)||void 0===l||l.pause()},resumeAnimation:function(e){var l;null===(l=e.ticker)||void 0===l||l.resume()},_destructor:function(e){var l;null===(l=e.ticker)||void 0===l||l.dispose()}},init:function(e,l){H(e),l.scene=e,l.ticker=new es,l.ticker.onTick.add(function(e,t){l.arcsData.filter(function(e){return e.__threeObj&&e.__threeObj.children.length&&e.__threeObj.children[0].material&&e.__threeObj.children[0].__dashAnimateStep}).forEach(function(e){var l=e.__threeObj.children[0],a=l.__dashAnimateStep*t,n=l.material.uniforms.dashTranslate.value%1e9;l.material.uniforms.dashTranslate.value=n+a})})},update:function(e){var l=(0,s.Z)(e.arcStartLat),t=(0,s.Z)(e.arcStartLng),a=(0,s.Z)(e.arcEndLat),n=(0,s.Z)(e.arcEndLng),o=(0,s.Z)(e.arcAltitude),i=(0,s.Z)(e.arcAltitudeAutoScale),u=(0,s.Z)(e.arcStroke),c=(0,s.Z)(e.arcColor),h=(0,s.Z)(e.arcDashLength),x=(0,s.Z)(e.arcDashGap),d=(0,s.Z)(e.arcDashInitialGap),p=(0,s.Z)(e.arcDashAnimateTime),_=new eu.ShaderMaterial(T(T({},eh),{},{transparent:!0,blending:eu.NormalBlending}));ea(e.arcsData,e.scene,{createObj:function(){var e=new eu.Group;return e.__globeObjType="arc",e},updateObj:function(s,g){var y=u(g),b=null!=y;if(!s.children.length||b!==("Mesh"===s.children[0].type)){H(s);var v=b?new eu.Mesh:new eu.Line(new eu.BufferGeometry);v.material=_.clone(),s.add(v)}var w=s.children[0];Object.assign(w.material.uniforms,{dashSize:{value:h(g)},gapSize:{value:x(g)},dashOffset:{value:d(g)}});var O=p(g);w.__dashAnimateStep=O>0?1e3/O:0;var T=function(e,l){var t,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=l+1;if(e instanceof Array||e instanceof Function){var r=e instanceof Array?(0,f.Z)().domain(e.map(function(l,t){return t/(e.length-1)})).range(e):e;t=function(e){return et(r(e))}}else{var o=et(e);t=function(){return o}}for(var i=new eu.Float32BufferAttribute(4*n*a,4),q=0;q1&&void 0!==arguments[1]?arguments[1]:1,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=e+1,n=a*l,r=new eu.Float32BufferAttribute(n,1),o=0;o=0||(n[t]=e[t]);return n}(e,l);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}(t,em));b?(w.geometry&&w.geometry.dispose(),w.geometry=new eu.TubeGeometry(n,e.arcCurveResolution,a/2,e.arcCircularResolution),w.geometry[ec]("vertexColor",T),w.geometry[ec]("vertexRelDistance",j)):w.geometry.setFromPoints(n.getPoints(e.arcCurveResolution))},D={stroke:y,alt:o(g),altAutoScale:+i(g),startLat:+l(g),startLng:+t(g),endLat:+a(g),endLng:+n(g)},R=g.__currentTargetD||Object.assign({},D,{altAutoScale:-.001});Object.keys(D).some(function(e){return R[e]!==D[e]})&&(!e.arcsTransitionDuration||e.arcsTransitionDuration<0?M(D):new r.kX(R).to(D,e.arcsTransitionDuration).easing(r.oY.Quadratic.InOut).onUpdate(M).start())}})}}),ef=window.THREE?window.THREE:{BufferAttribute:a.TlE,BufferGeometry:a.u9r,Color:a.Ilk,DoubleSide:a.ehD,Mesh:a.Kj0,MeshBasicMaterial:a.vBJ,MeshLambertMaterial:a.YBo,Object3D:a.Tme},ed=Object.assign({},u),ep=ed.BufferGeometryUtils||ed,e_=new ef.BufferGeometry().applyMatrix4?"applyMatrix4":"applyMatrix",eg=(0,n.Z)({props:{hexBinPointsData:{default:[]},hexBinPointLat:{default:"lat"},hexBinPointLng:{default:"lng"},hexBinPointWeight:{default:1},hexBinResolution:{default:4},hexMargin:{default:.2},hexTopCurvatureResolution:{default:5},hexTopColor:{default:function(){return"#ffffaa"}},hexSideColor:{default:function(){return"#ffffaa"}},hexAltitude:{default:function(e){return .01*e.sumWeight}},hexBinMerge:{default:!1},hexTransitionDuration:{default:1e3,triggerUpdate:!1}},init:function(e,l){H(e),l.scene=e},update:function(e){var l=(0,s.Z)(e.hexBinPointLat),t=(0,s.Z)(e.hexBinPointLng),a=(0,s.Z)(e.hexBinPointWeight),n=(0,s.Z)(e.hexAltitude),o=(0,s.Z)(e.hexTopColor),i=(0,s.Z)(e.hexSideColor),q=(0,s.Z)(e.hexMargin),m=Object.entries((0,p.Z)(e.hexBinPointsData.map(function(a){return T(T({},a),{},{h3Idx:(0,_.mD)(l(a),t(a),e.hexBinResolution)})}),"h3Idx")).map(function(e){var l=I(e,2),t=l[0],n=l[1];return{h3Idx:t,points:n,sumWeight:n.reduce(function(e,l){return e+ +a(l)},0)}}),u={};if(ea(m,e.hexBinMerge?new ef.Object3D:e.scene,{createObj:function(e){var l=new ef.Mesh;l.__hexCenter=(0,_.rS)(e.h3Idx),l.__hexGeoJson=(0,_.jf)(e.h3Idx,!0).reverse();var t=l.__hexCenter[1];return l.__hexGeoJson.forEach(function(e){var l=e[0];Math.abs(t-l)>170&&(e[0]+=t>l?360:-360)}),l.__globeObjType="hexbin",l},updateObj:function(l,t){var a=Math.max(0,Math.min(1,+q(t))),m=I(l.__hexCenter,2),s=m[0],c=m[1],h=0===a?l.__hexGeoJson:l.__hexGeoJson.map(function(e){var l=I(e,2);return[[l[0],c],[l[1],s]].map(function(e){var l=I(e,2),t=l[0];return t-(t-l[1])*a})}),x=e.hexTopCurvatureResolution;l.geometry&&l.geometry.dispose(),l.geometry=new d.E([h],0,100,!1,!0,!0,x);var f={alt:+n(t)},p=function(e){var t=(l.__currentTargetD=e).alt;l.scale.x=l.scale.y=l.scale.z=1+t},_=l.__currentTargetD||Object.assign({},f,{alt:-.001});if(Object.keys(f).some(function(e){return _[e]!==f[e]})&&(e.hexBinMerge||!e.hexTransitionDuration||e.hexTransitionDuration<0?p(f):new r.kX(_).to(f,e.hexTransitionDuration).easing(r.oY.Quadratic.InOut).onUpdate(p).start()),!e.hexBinMerge){var g=i(t),y=o(t);[g,y].forEach(function(e){if(!u.hasOwnProperty(e)){var l=el(e);u[e]=new ef.MeshLambertMaterial({color:ee(e),transparent:l<1,opacity:l,side:ef.DoubleSide})}}),l.material=[g,y].map(function(e){return u[e]})}},idAccessor:function(e){return e.h3Idx}}),e.hexBinMerge){var c=m.length?(ep.mergeGeometries||ep.mergeBufferGeometries)(m.map(function(e){var l=e.__threeObj;e.__threeObj=void 0;var t=l.geometry.toNonIndexed();l.updateMatrix(),t[e_](l.matrix);for(var a=new ef.Color(o(e)),n=new ef.Color(i(e)),r=t.attributes.position.count,q=t.groups[0].count,m=new Float32Array(3*r),u=0;u=q?a:n;m[s]=c.r,m[s+1]=c.g,m[s+2]=c.b}return t.setAttribute("color",new ef.BufferAttribute(m,3)),t})):new ef.BufferGeometry,h=new ef.Mesh(c,new ef.MeshBasicMaterial({color:16777215,vertexColors:!0,side:ef.DoubleSide}));h.__globeObjType="hexBinPoints",h.__data=m,H(e.scene),e.scene.add(h)}}}),ey=window.THREE?window.THREE:{DoubleSide:a.ehD,Group:a.ZAu,LineBasicMaterial:a.nls,LineSegments:a.ejS,Mesh:a.Kj0,MeshBasicMaterial:a.vBJ},eb=(0,n.Z)({props:{polygonsData:{default:[]},polygonGeoJsonGeometry:{default:"geometry"},polygonSideColor:{default:function(){return"#ffffaa"}},polygonSideMaterial:{},polygonCapColor:{default:function(){return"#ffffaa"}},polygonCapMaterial:{},polygonStrokeColor:{},polygonAltitude:{default:.01},polygonCapCurvatureResolution:{default:5},polygonsTransitionDuration:{default:1e3,triggerUpdate:!1}},init:function(e,l){H(e),l.scene=e},update:function(e){var l=(0,s.Z)(e.polygonGeoJsonGeometry),t=(0,s.Z)(e.polygonAltitude),a=(0,s.Z)(e.polygonCapCurvatureResolution),n=(0,s.Z)(e.polygonCapColor),i=(0,s.Z)(e.polygonCapMaterial),q=(0,s.Z)(e.polygonSideColor),m=(0,s.Z)(e.polygonSideMaterial),u=(0,s.Z)(e.polygonStrokeColor),c=[];e.polygonsData.forEach(function(e){var r={data:e,capColor:n(e),capMaterial:i(e),sideColor:q(e),sideMaterial:m(e),strokeColor:u(e),altitude:+t(e),capCurvatureResolution:+a(e)},o=l(e),s=e.__id||"".concat(Math.round(1e9*Math.random()));e.__id=s,"Polygon"===o.type?c.push(T({id:"".concat(s,"_0"),coords:o.coordinates},r)):"MultiPolygon"===o.type?c.push.apply(c,Z(o.coordinates.map(function(e,l){return T({id:"".concat(s,"_").concat(l),coords:e},r)}))):console.warn("Unsupported GeoJson geometry type: ".concat(o.type,". Skipping geometry..."))}),ea(c,e.scene,{idAccessor:function(e){return e.id},createObj:function(){var e=new ey.Group;return e.__defaultSideMaterial=new ey.MeshBasicMaterial({side:ey.DoubleSide,depthWrite:!0}),e.__defaultCapMaterial=new ey.MeshBasicMaterial({side:ey.DoubleSide,depthWrite:!0}),e.add(new ey.Mesh(void 0,[e.__defaultSideMaterial,e.__defaultCapMaterial])),e.add(new ey.LineSegments(void 0,new ey.LineBasicMaterial)),e.__globeObjType="polygon",e},updateObj:function(l,t){var a=t.coords,n=t.capColor,i=t.capMaterial,q=t.sideColor,m=t.sideMaterial,u=t.strokeColor,s=t.altitude,c=t.capCurvatureResolution,h=I(l.children,2),x=h[0],f=h[1],p=!!u;if(f.visible=p,!function(e,l){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return function(e,l){return e===l}};return Object.entries(l).every(function(l){var a=I(l,2),n=a[0],r=a[1];return e.hasOwnProperty(n)&&t(n)(e[n],r)})}(x.geometry.parameters||{},{polygonGeoJson:a,curvatureResolution:c})&&(x.geometry&&x.geometry.dispose(),x.geometry=new d.E(a,0,100,!1,!0,!0,c)),p&&(!f.geometry.parameters||f.geometry.parameters.geoJson.coordinates!==a||f.geometry.parameters.resolution!==c)&&(f.geometry&&f.geometry.dispose(),f.geometry=new o.k({type:"Polygon",coordinates:a},100,c)),x.material[0]=m||l.__defaultSideMaterial,x.material[1]=i||l.__defaultCapMaterial,[!m&&q,!i&&n].forEach(function(e,l){if(e){var t=x.material[l],a=el(e);t.color.set(ee(e)),t.transparent=a<1,t.opacity=a}}),p){var _=f.material,g=el(u);_.color.set(ee(u)),_.transparent=g<1,_.opacity=g}var y={alt:s},b=function(e){var t=(l.__currentTargetD=e).alt;x.scale.x=x.scale.y=x.scale.z=1+t,p&&(f.scale.x=f.scale.y=f.scale.z=1+t+1e-4)},v=l.__currentTargetD||Object.assign({},y,{alt:-.001});Object.keys(y).some(function(e){return v[e]!==y[e]})&&(!e.polygonsTransitionDuration||e.polygonsTransitionDuration<0||v.alt===y.alt?b(y):new r.kX(v).to(y,e.polygonsTransitionDuration).easing(r.oY.Quadratic.InOut).onUpdate(b).start())}})}}),ev=window.THREE?window.THREE:{BufferGeometry:a.u9r,DoubleSide:a.ehD,Mesh:a.Kj0,MeshLambertMaterial:a.YBo},ew=Object.assign({},u),eO=ew.BufferGeometryUtils||ew,eT=(0,n.Z)({props:{hexPolygonsData:{default:[]},hexPolygonGeoJsonGeometry:{default:"geometry"},hexPolygonColor:{default:function(){return"#ffffaa"}},hexPolygonAltitude:{default:.001},hexPolygonResolution:{default:3},hexPolygonMargin:{default:.2},hexPolygonCurvatureResolution:{default:5},hexPolygonsTransitionDuration:{default:0,triggerUpdate:!1}},init:function(e,l){H(e),l.scene=e},update:function(e){var l=(0,s.Z)(e.hexPolygonGeoJsonGeometry),t=(0,s.Z)(e.hexPolygonColor),a=(0,s.Z)(e.hexPolygonAltitude),n=(0,s.Z)(e.hexPolygonResolution),o=(0,s.Z)(e.hexPolygonMargin),i=(0,s.Z)(e.hexPolygonCurvatureResolution);ea(e.hexPolygonsData,e.scene,{createObj:function(e){var l=new ev.Mesh(void 0,new ev.MeshLambertMaterial({side:ev.DoubleSide}));return l.__globeObjType="hexPolygon",l},updateObj:function(q,m){var u=l(m),s=n(m),c=a(m),h=Math.max(0,Math.min(1,+o(m))),x=i(m),f=t(m),p=el(f);q.material.color.set(ee(f)),q.material.transparent=p<1,q.material.opacity=p;var g={alt:c,margin:h,curvatureResolution:x},y=q.__currentTargetD||Object.assign({},g,{alt:-.001});if(Object.keys(g).some(function(e){return y[e]!==g[e]})){var b=[];"Polygon"===u.type?(0,_.KC)(u.coordinates,s,!0).forEach(function(e){return b.push(e)}):"MultiPolygon"===u.type?u.coordinates.forEach(function(e){return(0,_.KC)(e,s,!0).forEach(function(e){return b.push(e)})}):console.warn("Unsupported GeoJson geometry type: ".concat(u.type,". Skipping geometry..."));var v=b.map(function(e){var l=(0,_.rS)(e),t=(0,_.jf)(e,!0).reverse(),a=l[1];return t.forEach(function(e){var l=e[0];Math.abs(a-l)>170&&(e[0]+=a>l?360:-360)}),{h3Idx:e,hexCenter:l,hexGeoJson:t}}),w=function(e){var l=q.__currentTargetD=e,t=l.alt,a=l.margin,n=l.curvatureResolution;q.geometry&&q.geometry.dispose(),q.geometry=v.length?(eO.mergeGeometries||eO.mergeBufferGeometries)(v.map(function(e){var l=I(e.hexCenter,2),r=l[0],o=l[1],i=0===a?e.hexGeoJson:e.hexGeoJson.map(function(e){var l=I(e,2);return[[l[0],o],[l[1],r]].map(function(e){var l=I(e,2),t=l[0];return t-(t-l[1])*a})});return new d.E([i],100,100*(1+t),!1,!0,!1,n)})):new ev.BufferGeometry};!e.hexPolygonsTransitionDuration||e.hexPolygonsTransitionDuration<0?w(g):new r.kX(y).to(g,e.hexPolygonsTransitionDuration).easing(r.oY.Quadratic.InOut).onUpdate(w).start()}}})}}),ej=window.THREE?window.THREE:{Vector3:a.Pa4},eM=window.THREE?window.THREE:{BufferGeometry:a.u9r,Color:a.Ilk,Float32BufferAttribute:a.a$l,Group:a.ZAu,Line:a.x12,NormalBlending:a.bdR,ShaderMaterial:a.jyz,Vector3:a.Pa4},eD=x.default||x,eR=new eM.BufferGeometry().setAttribute?"setAttribute":"addAttribute",eA={uniforms:{dashOffset:{value:0},dashSize:{value:1},gapSize:{value:0},dashTranslate:{value:0}},vertexShader:"\n uniform float dashTranslate;\n\n attribute vec4 vertexColor;\n varying vec4 vColor;\n\n attribute float vertexRelDistance;\n varying float vRelDistance;\n\n void main() {\n // pass through colors and distances\n vColor = vertexColor;\n vRelDistance = vertexRelDistance + dashTranslate;\n gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n }\n ",fragmentShader:"\n uniform float dashOffset;\n uniform float dashSize;\n uniform float gapSize;\n\n varying vec4 vColor;\n varying float vRelDistance;\n\n void main() {\n // ignore pixels in the gap\n if (vRelDistance < dashOffset) discard;\n if (mod(vRelDistance - dashOffset, dashSize + gapSize) > dashSize) discard;\n\n // set px color: [r, g, b, a], interpolated between vertices\n gl_FragColor = vColor;\n }\n "},eS=(0,n.Z)({props:{pathsData:{default:[]},pathPoints:{default:function(e){return e}},pathPointLat:{default:function(e){return e[0]}},pathPointLng:{default:function(e){return e[1]}},pathPointAlt:{default:.001},pathResolution:{default:2},pathColor:{default:function(){return"#ffffaa"}},pathStroke:{},pathDashLength:{default:1},pathDashGap:{default:0},pathDashInitialGap:{default:0},pathDashAnimateTime:{default:0},pathTransitionDuration:{default:1e3,triggerUpdate:!1},rendererSize:{}},methods:{pauseAnimation:function(e){var l;null===(l=e.ticker)||void 0===l||l.pause()},resumeAnimation:function(e){var l;null===(l=e.ticker)||void 0===l||l.resume()},_destructor:function(e){var l;null===(l=e.ticker)||void 0===l||l.dispose()}},init:function(e,l){H(e),l.scene=e,l.ticker=new eD,l.ticker.onTick.add(function(e,t){l.pathsData.filter(function(e){return e.__threeObj&&e.__threeObj.children.length&&e.__threeObj.children[0].material&&e.__threeObj.children[0].__dashAnimateStep}).forEach(function(e){var l=e.__threeObj.children[0],a=l.__dashAnimateStep*t;if("Line"===l.type){var n=l.material.uniforms.dashTranslate.value%1e9;l.material.uniforms.dashTranslate.value=n+a}else if("Line2"===l.type){for(var r=l.material.dashOffset-a,o=l.material.dashSize+l.material.gapSize;r<=-o;)r+=o;l.material.dashOffset=r}})})},update:function(e){var l=(0,s.Z)(e.pathPoints),t=(0,s.Z)(e.pathPointLat),a=(0,s.Z)(e.pathPointLng),n=(0,s.Z)(e.pathPointAlt),o=(0,s.Z)(e.pathStroke),i=(0,s.Z)(e.pathColor),q=(0,s.Z)(e.pathDashLength),m=(0,s.Z)(e.pathDashGap),u=(0,s.Z)(e.pathDashInitialGap),c=(0,s.Z)(e.pathDashAnimateTime),h=new eM.ShaderMaterial(T(T({},eA),{},{transparent:!0,blending:eM.NormalBlending}));function x(e,l){var t,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=!(arguments.length>3)||void 0===arguments[3]||arguments[3],r=l+1;if(e instanceof Array||e instanceof Function){var o=e instanceof Array?(0,f.Z)().domain(e.map(function(l,t){return t/(e.length-1)})).range(e):e;t=function(e){return et(o(e),n)}}else{var i=et(e,n);t=function(){return i}}for(var q=n?4:3,m=new eM.Float32BufferAttribute(r*q*a,q),u=0;u0&&void 0!==arguments[0]?arguments[0]:[],l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,t=[],a=null;return e.forEach(function(e){if(a){for(;Math.abs(a[1]-e[1])>180;)a[1]+=360*(a[1]l)for(var r=Math.floor(n/l),o=A(a[0],e[0],r),i=A(a[1],e[1],r),q=A(a[2],e[2],r),m=0,u=o.length;m0?1e3/M:0,w){T.material.resolution=e.rendererSize;var D,R,A,S,L,C=q(f),E=m(f),P=u(f);T.material.dashed=E>0,T.material.dashed?T.material.defines.USE_DASH="":delete T.material.defines.USE_DASH,T.material.dashed&&(T.material.dashScale=1/(L=0,j.forEach(function(e){S&&(L+=S.distanceTo(e)),S=e}),L),T.material.dashSize=C,T.material.gapSize=E,T.material.dashOffset=-P);var G=i(f);if(G instanceof Array){var k=x(i(f),j.length-1,1,!1);T.geometry.setColors(k.array),T.material.vertexColors=!0}else{var B=el(G);T.material.color=new eM.Color(ee(G)),T.material.transparent=B<1,T.material.opacity=B,T.material.vertexColors=!1}T.material.needsUpdate=!0}else{Object.assign(T.material.uniforms,{dashSize:{value:q(f)},gapSize:{value:m(f)},dashOffset:{value:u(f)}});var U=x(i(f),j.length),F=function(e){for(var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=e+1,n=a*l,r=new eM.Float32BufferAttribute(n,1),o=0;o":{x_min:18.0625,x_max:774,ha:792,o:"m 774 376 l 18 40 l 18 149 l 631 421 l 18 692 l 18 799 l 774 465 l 774 376 "},v:{x_min:0,x_max:675.15625,ha:761,o:"m 675 738 l 404 0 l 272 0 l 0 738 l 133 737 l 340 147 l 541 737 l 675 738 "},τ:{x_min:.28125,x_max:644.5,ha:703,o:"m 644 628 l 382 628 l 382 179 q 388 120 382 137 q 436 91 401 91 q 474 94 447 91 q 504 97 501 97 l 504 0 q 454 -9 482 -5 q 401 -14 426 -14 q 278 67 308 -14 q 260 233 260 118 l 260 628 l 0 628 l 0 739 l 644 739 l 644 628 "},ξ:{x_min:0,x_max:624.9375,ha:699,o:"m 624 -37 q 608 -153 624 -96 q 563 -278 593 -211 l 454 -278 q 491 -183 486 -200 q 511 -83 511 -126 q 484 -23 511 -44 q 370 1 452 1 q 323 0 354 1 q 283 -1 293 -1 q 84 76 169 -1 q 0 266 0 154 q 56 431 0 358 q 197 538 108 498 q 94 613 134 562 q 54 730 54 665 q 77 823 54 780 q 143 901 101 867 l 27 901 l 27 1012 l 576 1012 l 576 901 l 380 901 q 244 863 303 901 q 178 745 178 820 q 312 600 178 636 q 532 582 380 582 l 532 479 q 276 455 361 479 q 118 281 118 410 q 165 173 118 217 q 274 120 208 133 q 494 101 384 110 q 624 -37 624 76 "},"&":{x_min:-3,x_max:894.25,ha:992,o:"m 894 0 l 725 0 l 624 123 q 471 0 553 40 q 306 -41 390 -41 q 168 -7 231 -41 q 62 92 105 26 q 14 187 31 139 q -3 276 -3 235 q 55 433 -3 358 q 248 581 114 508 q 170 689 196 640 q 137 817 137 751 q 214 985 137 922 q 384 1041 284 1041 q 548 988 483 1041 q 622 824 622 928 q 563 666 622 739 q 431 556 516 608 l 621 326 q 649 407 639 361 q 663 493 653 426 l 781 493 q 703 229 781 352 l 894 0 m 504 818 q 468 908 504 877 q 384 940 433 940 q 293 907 331 940 q 255 818 255 875 q 289 714 255 767 q 363 628 313 678 q 477 729 446 682 q 504 818 504 771 m 556 209 l 314 499 q 179 395 223 449 q 135 283 135 341 q 146 222 135 253 q 183 158 158 192 q 333 80 241 80 q 556 209 448 80 "},Λ:{x_min:0,x_max:862.5,ha:942,o:"m 862 0 l 719 0 l 426 847 l 143 0 l 0 0 l 356 1013 l 501 1013 l 862 0 "},I:{x_min:41,x_max:180,ha:293,o:"m 180 0 l 41 0 l 41 1013 l 180 1013 l 180 0 "},G:{x_min:0,x_max:921,ha:1011,o:"m 921 0 l 832 0 l 801 136 q 655 15 741 58 q 470 -28 568 -28 q 126 133 259 -28 q 0 499 0 284 q 125 881 0 731 q 486 1043 259 1043 q 763 957 647 1043 q 905 709 890 864 l 772 709 q 668 866 747 807 q 486 926 589 926 q 228 795 322 926 q 142 507 142 677 q 228 224 142 342 q 483 94 323 94 q 712 195 625 94 q 796 435 796 291 l 477 435 l 477 549 l 921 549 l 921 0 "},ΰ:{x_min:0,x_max:617,ha:725,o:"m 524 800 l 414 800 l 414 925 l 524 925 l 524 800 m 183 800 l 73 800 l 73 925 l 183 925 l 183 800 m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 m 489 1040 l 300 819 l 216 819 l 351 1040 l 489 1040 "},"`":{x_min:0,x_max:138.890625,ha:236,o:"m 138 699 l 0 699 l 0 861 q 36 974 0 929 q 138 1041 72 1020 l 138 977 q 82 931 95 969 q 69 839 69 893 l 138 839 l 138 699 "},"\xb7":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 "},Υ:{x_min:.328125,x_max:819.515625,ha:889,o:"m 819 1013 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1013 l 140 1013 l 411 533 l 679 1013 l 819 1013 "},r:{x_min:0,x_max:355.5625,ha:432,o:"m 355 621 l 343 621 q 179 569 236 621 q 122 411 122 518 l 122 0 l 0 0 l 0 737 l 117 737 l 117 604 q 204 719 146 686 q 355 753 262 753 l 355 621 "},x:{x_min:0,x_max:675,ha:764,o:"m 675 0 l 525 0 l 331 286 l 144 0 l 0 0 l 256 379 l 12 738 l 157 737 l 336 473 l 516 738 l 661 738 l 412 380 l 675 0 "},μ:{x_min:0,x_max:696.609375,ha:747,o:"m 696 -4 q 628 -14 657 -14 q 498 97 513 -14 q 422 8 470 41 q 313 -24 374 -24 q 207 3 258 -24 q 120 80 157 31 l 120 -278 l 0 -278 l 0 738 l 124 738 l 124 343 q 165 172 124 246 q 308 82 216 82 q 451 177 402 82 q 492 358 492 254 l 492 738 l 616 738 l 616 214 q 623 136 616 160 q 673 92 636 92 q 696 95 684 92 l 696 -4 "},h:{x_min:0,x_max:615,ha:724,o:"m 615 472 l 615 0 l 490 0 l 490 454 q 456 590 490 535 q 338 654 416 654 q 186 588 251 654 q 122 436 122 522 l 122 0 l 0 0 l 0 1013 l 122 1013 l 122 633 q 218 727 149 694 q 362 760 287 760 q 552 676 484 760 q 615 472 615 600 "},".":{x_min:0,x_max:142,ha:239,o:"m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 "},φ:{x_min:-2,x_max:878,ha:974,o:"m 496 -279 l 378 -279 l 378 -17 q 101 88 204 -17 q -2 367 -2 194 q 68 626 -2 510 q 283 758 151 758 l 283 646 q 167 537 209 626 q 133 373 133 462 q 192 177 133 254 q 378 93 259 93 l 378 758 q 445 764 426 763 q 476 765 464 765 q 765 659 653 765 q 878 377 878 553 q 771 96 878 209 q 496 -17 665 -17 l 496 -279 m 496 93 l 514 93 q 687 183 623 93 q 746 380 746 265 q 691 569 746 491 q 522 658 629 658 l 496 656 l 496 93 "},";":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 m 142 -12 q 105 -132 142 -82 q 0 -206 68 -182 l 0 -138 q 58 -82 43 -123 q 68 0 68 -56 l 0 0 l 0 151 l 142 151 l 142 -12 "},f:{x_min:0,x_max:378,ha:472,o:"m 378 638 l 246 638 l 246 0 l 121 0 l 121 638 l 0 638 l 0 738 l 121 738 q 137 935 121 887 q 290 1028 171 1028 q 320 1027 305 1028 q 378 1021 334 1026 l 378 908 q 323 918 346 918 q 257 870 273 918 q 246 780 246 840 l 246 738 l 378 738 l 378 638 "},"“":{x_min:1,x_max:348.21875,ha:454,o:"m 140 670 l 1 670 l 1 830 q 37 943 1 897 q 140 1011 74 990 l 140 947 q 82 900 97 940 q 68 810 68 861 l 140 810 l 140 670 m 348 670 l 209 670 l 209 830 q 245 943 209 897 q 348 1011 282 990 l 348 947 q 290 900 305 940 q 276 810 276 861 l 348 810 l 348 670 "},A:{x_min:.03125,x_max:906.953125,ha:1008,o:"m 906 0 l 756 0 l 648 303 l 251 303 l 142 0 l 0 0 l 376 1013 l 529 1013 l 906 0 m 610 421 l 452 867 l 293 421 l 610 421 "},"‘":{x_min:1,x_max:139.890625,ha:236,o:"m 139 670 l 1 670 l 1 830 q 37 943 1 897 q 139 1011 74 990 l 139 947 q 82 900 97 940 q 68 810 68 861 l 139 810 l 139 670 "},ϊ:{x_min:-70,x_max:283,ha:361,o:"m 283 800 l 173 800 l 173 925 l 283 925 l 283 800 m 40 800 l -70 800 l -70 925 l 40 925 l 40 800 m 283 3 q 232 -10 257 -5 q 181 -15 206 -15 q 84 26 118 -15 q 41 200 41 79 l 41 737 l 166 737 l 167 215 q 171 141 167 157 q 225 101 182 101 q 247 103 238 101 q 283 112 256 104 l 283 3 "},π:{x_min:-.21875,x_max:773.21875,ha:857,o:"m 773 -7 l 707 -11 q 575 40 607 -11 q 552 174 552 77 l 552 226 l 552 626 l 222 626 l 222 0 l 97 0 l 97 626 l 0 626 l 0 737 l 773 737 l 773 626 l 676 626 l 676 171 q 695 103 676 117 q 773 90 714 90 l 773 -7 "},ά:{x_min:0,x_max:765.5625,ha:809,o:"m 765 -4 q 698 -14 726 -14 q 564 97 586 -14 q 466 7 525 40 q 337 -26 407 -26 q 88 98 186 -26 q 0 369 0 212 q 88 637 0 525 q 337 760 184 760 q 465 727 407 760 q 563 637 524 695 l 563 738 l 685 738 l 685 222 q 693 141 685 168 q 748 94 708 94 q 765 95 760 94 l 765 -4 m 584 371 q 531 562 584 485 q 360 653 470 653 q 192 566 254 653 q 135 379 135 489 q 186 181 135 261 q 358 84 247 84 q 528 176 465 84 q 584 371 584 260 m 604 1040 l 415 819 l 332 819 l 466 1040 l 604 1040 "},O:{x_min:0,x_max:958,ha:1057,o:"m 485 1041 q 834 882 702 1041 q 958 512 958 734 q 834 136 958 287 q 481 -26 702 -26 q 126 130 261 -26 q 0 504 0 279 q 127 880 0 728 q 485 1041 263 1041 m 480 98 q 731 225 638 98 q 815 504 815 340 q 733 783 815 669 q 480 912 640 912 q 226 784 321 912 q 142 504 142 670 q 226 224 142 339 q 480 98 319 98 "},n:{x_min:0,x_max:615,ha:724,o:"m 615 463 l 615 0 l 490 0 l 490 454 q 453 592 490 537 q 331 656 410 656 q 178 585 240 656 q 117 421 117 514 l 117 0 l 0 0 l 0 738 l 117 738 l 117 630 q 218 728 150 693 q 359 764 286 764 q 552 675 484 764 q 615 463 615 593 "},l:{x_min:41,x_max:166,ha:279,o:"m 166 0 l 41 0 l 41 1013 l 166 1013 l 166 0 "},"\xa4":{x_min:40.09375,x_max:728.796875,ha:825,o:"m 728 304 l 649 224 l 512 363 q 383 331 458 331 q 256 363 310 331 l 119 224 l 40 304 l 177 441 q 150 553 150 493 q 184 673 150 621 l 40 818 l 119 898 l 267 749 q 321 766 291 759 q 384 773 351 773 q 447 766 417 773 q 501 749 477 759 l 649 898 l 728 818 l 585 675 q 612 618 604 648 q 621 553 621 587 q 591 441 621 491 l 728 304 m 384 682 q 280 643 318 682 q 243 551 243 604 q 279 461 243 499 q 383 423 316 423 q 487 461 449 423 q 525 553 525 500 q 490 641 525 605 q 384 682 451 682 "},κ:{x_min:0,x_max:632.328125,ha:679,o:"m 632 0 l 482 0 l 225 384 l 124 288 l 124 0 l 0 0 l 0 738 l 124 738 l 124 446 l 433 738 l 596 738 l 312 466 l 632 0 "},p:{x_min:0,x_max:685,ha:786,o:"m 685 364 q 598 96 685 205 q 350 -23 504 -23 q 121 89 205 -23 l 121 -278 l 0 -278 l 0 738 l 121 738 l 121 633 q 220 726 159 691 q 351 761 280 761 q 598 636 504 761 q 685 364 685 522 m 557 371 q 501 560 557 481 q 330 651 437 651 q 162 559 223 651 q 108 366 108 479 q 162 177 108 254 q 333 87 224 87 q 502 178 441 87 q 557 371 557 258 "},"‡":{x_min:0,x_max:777,ha:835,o:"m 458 238 l 458 0 l 319 0 l 319 238 l 0 238 l 0 360 l 319 360 l 319 681 l 0 683 l 0 804 l 319 804 l 319 1015 l 458 1013 l 458 804 l 777 804 l 777 683 l 458 683 l 458 360 l 777 360 l 777 238 l 458 238 "},ψ:{x_min:0,x_max:808,ha:907,o:"m 465 -278 l 341 -278 l 341 -15 q 87 102 180 -15 q 0 378 0 210 l 0 739 l 133 739 l 133 379 q 182 195 133 275 q 341 98 242 98 l 341 922 l 465 922 l 465 98 q 623 195 563 98 q 675 382 675 278 l 675 742 l 808 742 l 808 381 q 720 104 808 213 q 466 -13 627 -13 l 465 -278 "},η:{x_min:.78125,x_max:697,ha:810,o:"m 697 -278 l 572 -278 l 572 454 q 540 587 572 536 q 425 650 501 650 q 271 579 337 650 q 206 420 206 509 l 206 0 l 81 0 l 81 489 q 73 588 81 562 q 0 644 56 644 l 0 741 q 68 755 38 755 q 158 720 124 755 q 200 630 193 686 q 297 726 234 692 q 434 761 359 761 q 620 692 544 761 q 697 516 697 624 l 697 -278 "}},cssFontWeight:"normal",ascender:1189,underlinePosition:-100,cssFontStyle:"normal",boundingBox:{yMin:-334,xMin:-111,yMax:1189,xMax:1672},resolution:1e3,original_font_information:{postscript_name:"Helvetiker-Regular",version_string:"Version 1.00 2004 initial release",vendor_url:"http://www.magenta.gr/",full_font_name:"Helvetiker",font_family_name:"Helvetiker",copyright:"Copyright (c) Μagenta ltd, 2004",description:"",trademark:"",designer:"",designer_url:"",unique_font_identifier:"Μagenta ltd:Helvetiker:22-10-104",license_url:"http://www.ellak.gr/fonts/MgOpen/license.html",license_description:'Copyright (c) 2004 by MAGENTA Ltd. All Rights Reserved.\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions: \r\n\r\nThe above copyright and this permission notice shall be included in all copies of one or more of the Font Software typefaces.\r\n\r\nThe Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing the word "MgOpen", or if the modifications are accepted for inclusion in the Font Software itself by the each appointed Administrator.\r\n\r\nThis License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "MgOpen" name.\r\n\r\nThe Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself. \r\n\r\nTHE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL MAGENTA OR PERSONS OR BODIES IN CHARGE OF ADMINISTRATION AND MAINTENANCE OF THE FONT SOFTWARE BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.',manufacturer_name:"Μagenta ltd",font_sub_family_name:"Regular"},descender:-334,familyName:"Helvetiker",lineHeight:1522,underlineThickness:50},onChange:function(e,l){l.font=new eP.Font(e)}},labelColor:{default:function(){return"lightgrey"}},labelRotation:{default:0},labelResolution:{default:3},labelIncludeDot:{default:!0},labelDotRadius:{default:.1},labelDotOrientation:{default:function(){return"bottom"}},labelsTransitionDuration:{default:1e3,triggerUpdate:!1}},init:function(e,l){H(e),l.scene=e},update:function(e){var l=(0,s.Z)(e.labelLat),t=(0,s.Z)(e.labelLng),n=(0,s.Z)(e.labelAltitude),o=(0,s.Z)(e.labelText),i=(0,s.Z)(e.labelSize),q=(0,s.Z)(e.labelRotation),m=(0,s.Z)(e.labelColor),u=(0,s.Z)(e.labelIncludeDot),c=(0,s.Z)(e.labelDotRadius),h=(0,s.Z)(e.labelDotOrientation),x=new Set(["right","top","bottom"]),f=2*Math.PI*100/360,d=new eP.CircleGeometry(1,16);ea(e.labelsData,e.scene,{createObj:function(){var e=new eP.MeshLambertMaterial;e.side=a.ehD;var l=new eP.Group;return l.add(new eP.Mesh(d,e)),l.add(new eP.Mesh(void 0,e)),l.__globeObjType="label",l},updateObj:function(a,s){var d=I(a.children,2),p=d[0],_=d[1],g=m(s),y=el(g);_.material.color.set(ee(g)),_.material.transparent=y<1,_.material.opacity=y;var b=u(s),v=h(s);b&&(x.has(v)||(v="bottom"));var w=b?+c(s)*f:1e-12;p.scale.x=p.scale.y=w;var O=+i(s)*f;if(_.geometry&&_.geometry.dispose(),_.geometry=new eP.TextGeometry(o(s),{font:e.font,size:O,height:0,curveSegments:e.labelResolution}),"right"!==v&&_.geometry.center(),b){var T=w+O/2;"right"===v&&(_.position.x=T),_.position.y=({right:-O/2,top:T+O/2,bottom:-T-O/2})[v]}var j=function(l){var t=a.__currentTargetD=l,n=t.lat,r=t.lng,o=t.alt,i=t.rot,q=t.scale;Object.assign(a.position,W(n,r,o)),a.lookAt(e.scene.localToWorld(new eP.Vector3(0,0,0))),a.rotateY(Math.PI),a.rotateZ(-i*Math.PI/180),a.scale.x=a.scale.y=a.scale.z=q},M={lat:+l(s),lng:+t(s),alt:+n(s),rot:+q(s),scale:1},D=a.__currentTargetD||Object.assign({},M,{scale:1e-12});Object.keys(M).some(function(e){return D[e]!==M[e]})&&(!e.labelsTransitionDuration||e.labelsTransitionDuration<0?j(M):new r.kX(D).to(M,e.labelsTransitionDuration).easing(r.oY.Quadratic.InOut).onUpdate(j).start())}})}}),eI=function(e){A(t,e);var l=G(t);function t(){var e,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:32;j(this,t),(e=l.call(this)).type="CircleLineGeometry",e.parameters={radius:a,segmentCount:n};for(var r=[],o=0;o<=n;o++){var i=(o/n-.25)*Math.PI*2;r.push({x:Math.cos(i)*a,y:Math.sin(i)*a,z:0})}return e.setFromPoints(r),e}return D(t)}((window.THREE?window.THREE:{BufferGeometry:a.u9r}).BufferGeometry),eZ=window.THREE?window.THREE:{Color:a.Ilk,Group:a.ZAu,Line:a.x12,LineBasicMaterial:a.nls,Vector3:a.Pa4},ek=x.default||x,eB=(0,n.Z)({props:{ringsData:{default:[]},ringLat:{default:"lat"},ringLng:{default:"lng"},ringAltitude:{default:.0015},ringColor:{default:function(){return"#ffffaa"},triggerUpdate:!1},ringResolution:{default:64,triggerUpdate:!1},ringMaxRadius:{default:2,triggerUpdate:!1},ringPropagationSpeed:{default:1,triggerUpdate:!1},ringRepeatPeriod:{default:700,triggerUpdate:!1}},methods:{pauseAnimation:function(e){var l;null===(l=e.ticker)||void 0===l||l.pause()},resumeAnimation:function(e){var l;null===(l=e.ticker)||void 0===l||l.resume()},_destructor:function(e){var l;null===(l=e.ticker)||void 0===l||l.dispose()}},init:function(e,l){H(e),l.scene=e,l.ticker=new ek,l.ticker.onTick.add(function(e){if(l.ringsData.length){var t=(0,s.Z)(l.ringColor),a=(0,s.Z)(l.ringAltitude),n=(0,s.Z)(l.ringMaxRadius),o=(0,s.Z)(l.ringPropagationSpeed),i=(0,s.Z)(l.ringRepeatPeriod);l.ringsData.filter(function(e){return e.__threeObj}).forEach(function(q){var m=q.__threeObj;if((m.__nextRingTime||0)<=e){var u,s,c,h,x=i(q)/1e3;m.__nextRingTime=e+(x<=0?1/0:x);var d=new eZ.Line(new eI(1,l.ringResolution),new eZ.LineBasicMaterial),p=t(q),_=p instanceof Array||p instanceof Function;_?p instanceof Array?(h=(0,f.Z)().domain(p.map(function(e,l){return l/(p.length-1)})).range(p),d.material.transparent=p.some(function(e){return 1>el(e)})):(h=p,d.material.transparent=!0):(d.material.color=new eZ.Color(ee(p)),u=d.material,s=el(p),u.opacity=s,u.transparent=s<1,u.depthWrite=void 0===c?s>=1:c);var g=100*(1+a(q)),y=n(q),b=y*Math.PI/180,v=o(q),w=v<=0,O=function(e){var l=e.t,t=(w?1-l:l)*b;if(d.scale.x=d.scale.y=g*Math.sin(t),d.position.z=g*(1-Math.cos(t)),_){var a=h(l);d.material.color=new eZ.Color(ee(a)),d.material.transparent&&(d.material.opacity=el(a))}};0===v?(O({t:0}),m.add(d)):new r.kX({t:0}).to({t:1},1e3*Math.abs(y/v)).onUpdate(O).onStart(function(){return m.add(d)}).onComplete(function(){m.remove(d),N(d)}).start()}})}})},update:function(e){var l=(0,s.Z)(e.ringLat),t=(0,s.Z)(e.ringLng),a=(0,s.Z)(e.ringAltitude),n=e.scene.localToWorld(new eZ.Vector3(0,0,0));ea(e.ringsData,e.scene,{createObj:function(){var e=new eZ.Group;return e.__globeObjType="ring",e},updateObj:function(e,r){var o=l(r),i=t(r),q=a(r);Object.assign(e.position,W(o,i,q)),e.lookAt(n)}},{removeDelay:3e4})}}),eU=T(T({},window.THREE?window.THREE:{}),{},{CSS2DObject:w.j}),eF=(0,n.Z)({props:{htmlElementsData:{default:[]},htmlLat:{default:"lat"},htmlLng:{default:"lng"},htmlAltitude:{default:0},htmlElement:{},htmlTransitionDuration:{default:1e3,triggerUpdate:!1},isBehindGlobe:{onChange:function(){this.updateObjVisibility()},triggerUpdate:!1}},methods:{updateObjVisibility:function(e,l){(l?[l]:e.htmlElementsData.map(function(e){return e.__threeObj}).filter(function(e){return e})).forEach(function(l){return l.visible=!e.isBehindGlobe||!e.isBehindGlobe(l.position)})}},init:function(e,l){H(e),l.scene=e},update:function(e,l){var t=this,a=(0,s.Z)(e.htmlLat),n=(0,s.Z)(e.htmlLng),o=(0,s.Z)(e.htmlAltitude),i=(0,s.Z)(e.htmlElement);ea(e.htmlElementsData,e.scene,{purge:l.hasOwnProperty("htmlElement"),createObj:function(e){var l=i(e),t=new eU.CSS2DObject(l);return t.__globeObjType="html",t},updateObj:function(l,i){var q=function(e){var a=l.__currentTargetD=e,n=a.alt,r=a.lat,o=a.lng;Object.assign(l.position,W(r,o,n)),t.updateObjVisibility(l)},m={lat:+a(i),lng:+n(i),alt:+o(i)};e.htmlTransitionDuration&&!(e.htmlTransitionDuration<0)&&l.__currentTargetD?new r.kX(l.__currentTargetD).to(m,e.pointsTransitionDuration).easing(r.oY.Quadratic.InOut).onUpdate(q).start():q(m)}})}}),eN=window.THREE?window.THREE:{Euler:a.USm,Group:a.ZAu,Mesh:a.Kj0,MeshLambertMaterial:a.YBo,SphereGeometry:a.xo$},eH=(0,n.Z)({props:{objectsData:{default:[]},objectLat:{default:"lat"},objectLng:{default:"lng"},objectAltitude:{default:.01},objectFacesSurface:{default:!0},objectRotation:{},objectThreeObject:{default:new eN.Mesh(new eN.SphereGeometry(1,16,8),new eN.MeshLambertMaterial({color:"#ffffaa",transparent:!0,opacity:.7}))}},init:function(e,l){H(e),l.scene=e},update:function(e,l){var t=(0,s.Z)(e.objectLat),n=(0,s.Z)(e.objectLng),r=(0,s.Z)(e.objectAltitude),o=(0,s.Z)(e.objectFacesSurface),i=(0,s.Z)(e.objectRotation),q=(0,s.Z)(e.objectThreeObject);ea(e.objectsData,e.scene,{purge:l.hasOwnProperty("objectThreeObject"),createObj:function(l){var t=q(l);e.objectThreeObject===t&&(t=t.clone());var a=new eN.Group;return a.add(t),a.__globeObjType="object",a},updateObj:function(e,l){var q=+t(l),m=+n(l),u=+r(l);Object.assign(e.position,W(q,m,u)),o(l)?e.setRotationFromEuler(new a.USm(J(-q),J(m),0,"YXZ")):e.rotation.set(0,0,0);var s=e.children[0],c=i(l);c&&s.setRotationFromEuler(new a.USm(J(c.x||0),J(c.y||0),J(c.z||0)))}})}}),ez=(0,n.Z)({props:{customLayerData:{default:[]},customThreeObject:{},customThreeObjectUpdate:{triggerUpdate:!1}},init:function(e,l){H(e),l.scene=e},update:function(e,l){e.customThreeObjectUpdate||H(e.scene);var t=(0,s.Z)(e.customThreeObject),a=(0,s.Z)(e.customThreeObjectUpdate);ea(e.customLayerData,e.scene,{purge:l.hasOwnProperty("customThreeObject"),createObj:function(l){var a=t(l,100);return a&&(e.customThreeObject===a&&(a=a.clone()),a.__globeObjType="custom"),a},updateObj:function(e,l){return a(e,l,100)}})}}),eV=window.THREE?window.THREE:{Group:a.ZAu,Vector2:a.FM8,Vector3:a.Pa4},eW=["globeLayer","pointsLayer","arcsLayer","hexBinLayer","polygonsLayer","hexedPolygonsLayer","pathsLayer","tilesLayer","labelsLayer","ringsLayer","htmlElementsLayer","objectsLayer","customLayer"],eY=z("globeLayer",$),eJ=Object.assign.apply(Object,Z(["globeImageUrl","bumpImageUrl","showGlobe","showGraticules","showAtmosphere","atmosphereColor","atmosphereAltitude"].map(function(e){return R({},e,eY.linkProp(e))}))),eX=Object.assign.apply(Object,Z(["globeMaterial"].map(function(e){return R({},e,eY.linkMethod(e))}))),eK=z("pointsLayer",eq),eQ=Object.assign.apply(Object,Z(["pointsData","pointLat","pointLng","pointColor","pointAltitude","pointRadius","pointResolution","pointsMerge","pointsTransitionDuration"].map(function(e){return R({},e,eK.linkProp(e))}))),e$=z("arcsLayer",ex),e1=Object.assign.apply(Object,Z(["arcsData","arcStartLat","arcStartLng","arcEndLat","arcEndLng","arcColor","arcAltitude","arcAltitudeAutoScale","arcStroke","arcCurveResolution","arcCircularResolution","arcDashLength","arcDashGap","arcDashInitialGap","arcDashAnimateTime","arcsTransitionDuration"].map(function(e){return R({},e,e$.linkProp(e))}))),e0=z("hexBinLayer",eg),e2=Object.assign.apply(Object,Z(["hexBinPointsData","hexBinPointLat","hexBinPointLng","hexBinPointWeight","hexBinResolution","hexMargin","hexTopCurvatureResolution","hexTopColor","hexSideColor","hexAltitude","hexBinMerge","hexTransitionDuration"].map(function(e){return R({},e,e0.linkProp(e))}))),e3=z("hexedPolygonsLayer",eT),e4=Object.assign.apply(Object,Z(["hexPolygonsData","hexPolygonGeoJsonGeometry","hexPolygonColor","hexPolygonAltitude","hexPolygonResolution","hexPolygonMargin","hexPolygonCurvatureResolution","hexPolygonsTransitionDuration"].map(function(e){return R({},e,e3.linkProp(e))}))),e5=z("polygonsLayer",eb),e6=Object.assign.apply(Object,Z(["polygonsData","polygonGeoJsonGeometry","polygonCapColor","polygonCapMaterial","polygonSideColor","polygonSideMaterial","polygonStrokeColor","polygonAltitude","polygonCapCurvatureResolution","polygonsTransitionDuration"].map(function(e){return R({},e,e5.linkProp(e))}))),e7=z("pathsLayer",eS),e8=Object.assign.apply(Object,Z(["pathsData","pathPoints","pathPointLat","pathPointLng","pathPointAlt","pathResolution","pathColor","pathStroke","pathDashLength","pathDashGap","pathDashInitialGap","pathDashAnimateTime","pathTransitionDuration"].map(function(e){return R({},e,e7.linkProp(e))}))),e9=z("tilesLayer",eC),le=Object.assign.apply(Object,Z(["tilesData","tileLat","tileLng","tileAltitude","tileWidth","tileHeight","tileUseGlobeProjection","tileMaterial","tileCurvatureResolution","tilesTransitionDuration"].map(function(e){return R({},e,e9.linkProp(e))}))),ll=z("labelsLayer",eG),lt=Object.assign.apply(Object,Z(["labelsData","labelLat","labelLng","labelAltitude","labelRotation","labelText","labelSize","labelTypeFace","labelColor","labelResolution","labelIncludeDot","labelDotRadius","labelDotOrientation","labelsTransitionDuration"].map(function(e){return R({},e,ll.linkProp(e))}))),la=z("ringsLayer",eB),ln=Object.assign.apply(Object,Z(["ringsData","ringLat","ringLng","ringAltitude","ringColor","ringResolution","ringMaxRadius","ringPropagationSpeed","ringRepeatPeriod"].map(function(e){return R({},e,la.linkProp(e))}))),lr=z("htmlElementsLayer",eF),lo=Object.assign.apply(Object,Z(["htmlElementsData","htmlLat","htmlLng","htmlAltitude","htmlElement","htmlTransitionDuration"].map(function(e){return R({},e,lr.linkProp(e))}))),li=z("objectsLayer",eH),lq=Object.assign.apply(Object,Z(["objectsData","objectLat","objectLng","objectAltitude","objectRotation","objectFacesSurface","objectThreeObject"].map(function(e){return R({},e,li.linkProp(e))}))),lm=z("customLayer",ez),lu=Object.assign.apply(Object,Z(["customLayerData","customThreeObject","customThreeObjectUpdate"].map(function(e){return R({},e,lm.linkProp(e))}))),ls=function(e){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=function(l){A(n,l);var a=G(n);function n(){var l;j(this,n);for(var r=arguments.length,o=Array(r),i=0;i1?l-1:0),a=1;a1?l-1:0),a=1;a=o.next.y&&o.next.y!==o.y){var f=o.x+(l-o.y)*(o.next.x-o.x)/(o.next.y-o.y);if(f<=u&&f>c&&(c=f,i=o.x=o.x&&o.x>=m&&u!==o.x&&a(li.x||o.x===i.x&&(n=i,r=o,0>s(n.prev,n,r.prev)&&0>s(r.next,n,n.next))))&&(i=o,y=p)),o=o.next;while(o!==d);return i}(e,t);if(!n)return t;var i=p(n,e);return r(i,i.next),r(n,n.next)}(g[l],o);return o}(e,t,S,c)),e.length>80*c){f=g=e[0],d=y=e[1];for(var E=c;E<_;E+=c)b=e[E],v=e[E+1],bg&&(g=b),v>y&&(y=v);x=0!==(x=Math.max(g-f,y-d))?32767/x:0}return function e(t,n,i,c,f,d,g){if(t){!g&&d&&function(e,t,n,r){var i=e;do 0===i.z&&(i.z=o(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,function(e){var t,n,r,i,o,a,s,u,l=1;do{for(n=e,e=null,o=null,a=0;n;){for(a++,r=n,s=0,t=0;t0||u>0&&r;)0!==s&&(0===u||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,u--),o?o.nextZ=i:e=i,i.prevZ=o,o=i;n=r}o.nextZ=null,l*=2}while(a>1)}(i)}(t,c,f,d);for(var y,b,v=t;t.prev!==t.next;){if(y=t.prev,b=t.next,d?function(e,t,n,r){var i=e.prev,u=e.next;if(s(i,e,u)>=0)return!1;for(var l=i.x,c=e.x,f=u.x,h=i.y,p=e.y,d=u.y,m=lc?l>f?l:f:c>f?c:f,b=h>p?h>d?h:d:p>d?p:d,v=o(m,g,t,n,r),x=o(y,b,t,n,r),w=e.prevZ,_=e.nextZ;w&&w.z>=v&&_&&_.z<=x;){if(w.x>=m&&w.x<=y&&w.y>=g&&w.y<=b&&w!==i&&w!==u&&a(l,h,c,p,f,d,w.x,w.y)&&s(w.prev,w,w.next)>=0||(w=w.prevZ,_.x>=m&&_.x<=y&&_.y>=g&&_.y<=b&&_!==i&&_!==u&&a(l,h,c,p,f,d,_.x,_.y)&&s(_.prev,_,_.next)>=0))return!1;_=_.nextZ}for(;w&&w.z>=v;){if(w.x>=m&&w.x<=y&&w.y>=g&&w.y<=b&&w!==i&&w!==u&&a(l,h,c,p,f,d,w.x,w.y)&&s(w.prev,w,w.next)>=0)return!1;w=w.prevZ}for(;_&&_.z<=x;){if(_.x>=m&&_.x<=y&&_.y>=g&&_.y<=b&&_!==i&&_!==u&&a(l,h,c,p,f,d,_.x,_.y)&&s(_.prev,_,_.next)>=0)return!1;_=_.nextZ}return!0}(t,c,f,d):function(e){var t=e.prev,n=e.next;if(s(t,e,n)>=0)return!1;for(var r=t.x,i=e.x,o=n.x,u=t.y,l=e.y,c=n.y,f=ri?r>o?r:o:i>o?i:o,d=u>l?u>c?u:c:l>c?l:c,m=n.next;m!==t;){if(m.x>=f&&m.x<=p&&m.y>=h&&m.y<=d&&a(r,u,i,l,o,c,m.x,m.y)&&s(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}(t)){n.push(y.i/i|0),n.push(t.i/i|0),n.push(b.i/i|0),m(t),t=b.next,v=b.next;continue}if((t=b)===v){g?1===g?e(t=function(e,t,n){var i=e;do{var o=i.prev,a=i.next.next;!u(o,a)&&l(o,i,i.next,a)&&h(o,a)&&h(a,o)&&(t.push(o.i/n|0),t.push(i.i/n|0),t.push(a.i/n|0),m(i),m(i.next),i=e=a),i=i.next}while(i!==e);return r(i)}(r(t),n,i),n,i,c,f,d,2):2===g&&function(t,n,i,o,a,c){var f=t;do{for(var d,m,g=f.next.next;g!==f.prev;){if(f.i!==g.i&&(d=f,m=g,d.next.i!==m.i&&d.prev.i!==m.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&l(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(d,m)&&(h(d,m)&&h(m,d)&&function(e,t){var n=e,r=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next;while(n!==e);return r}(d,m)&&(s(d.prev,d,m.prev)||s(d,m.prev,m))||u(d,m)&&s(d.prev,d,d.next)>0&&s(m.prev,m,m.next)>0))){var y=p(f,g);f=r(f,f.next),y=r(y,y.next),e(f,n,i,o,a,c,0),e(y,n,i,o,a,c,0);return}g=g.next}f=f.next}while(f!==t)}(t,n,i,c,f,d):e(r(t),n,i,c,f,d,1);break}}}}(S,O,c,f,d,x,0),O}function n(e,t,n,r,i){var o,a;if(i===y(e,t,n,r)>0)for(o=t;o=t;o-=r)a=d(o,e[o],e[o+1],a);return a&&u(a,a.next)&&(m(a),a=a.next),a}function r(e,t){if(!e)return e;t||(t=e);var n,r=e;do if(n=!1,!r.steiner&&(u(r,r.next)||0===s(r.prev,r,r.next))){if(m(r),(r=t=r.prev)===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function i(e,t){return e.x-t.x}function o(e,t,n,r,i){return(e=((e=((e=((e=((e=(e-n)*i|0)|e<<8)&16711935)|e<<4)&252645135)|e<<2)&858993459)|e<<1)&1431655765)|(t=((t=((t=((t=((t=(t-r)*i|0)|t<<8)&16711935)|t<<4)&252645135)|t<<2)&858993459)|t<<1)&1431655765)<<1}function a(e,t,n,r,i,o,a,s){return(i-a)*(t-s)>=(e-a)*(o-s)&&(e-a)*(r-s)>=(n-a)*(t-s)&&(n-a)*(o-s)>=(i-a)*(r-s)}function s(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function u(e,t){return e.x===t.x&&e.y===t.y}function l(e,t,n,r){var i=f(s(e,t,n)),o=f(s(e,t,r)),a=f(s(n,r,e)),u=f(s(n,r,t));return!!(i!==o&&a!==u||0===i&&c(e,n,t)||0===o&&c(e,r,t)||0===a&&c(n,e,r)||0===u&&c(n,t,r))}function c(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function f(e){return e>0?1:e<0?-1:0}function h(e,t){return 0>s(e.prev,e,e.next)?s(e,t,e.next)>=0&&s(e,e.prev,t)>=0:0>s(e,t,e.prev)||0>s(e,e.next,t)}function p(e,t){var n=new g(e.i,e.x,e.y),r=new g(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function d(e,t,n,r){var i=new g(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function m(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function g(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function y(e,t,n,r){for(var i=0,o=t,a=n-r;o0&&(r+=e[i-1].length,n.holes.push(r))}return n}},50918:function(e){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";var r=n(1),i=function(){function e(e,t,n){void 0===e&&(e=NaN),void 0===t&&(t=NaN),void 0===n&&(n=!1),this._minFPS=t,this._maxFPS=e,this._timeScale=1,this._currentTick=0,this._currentTime=0,this._tickDeltaTime=0,this._isRunning=!1,this._maxInterval=isNaN(this._minFPS)?NaN:1e3/this._minFPS,this._minInterval=isNaN(this._maxFPS)?NaN:1e3/this._maxFPS,this._onResume=new r.default,this._onPause=new r.default,this._onTick=new r.default,this._onTickOncePerFrame=new r.default,n||this.resume()}return e.prototype.updateOnce=function(e){e(this.currentTimeSeconds,this.tickDeltaTimeSeconds,this.currentTick)},e.prototype.resume=function(){this._isRunning||(this._isRunning=!0,this._lastTimeUpdated=this.getTimer(),this._onResume.dispatch(),this.animateOnce())},e.prototype.pause=function(){this._isRunning&&(this._isRunning=!1,this._onPause.dispatch(),window.cancelAnimationFrame(this._animationFrameHandle))},e.prototype.dispose=function(){this.pause(),this._onResume.removeAll(),this._onPause.removeAll(),this._onTick.removeAll()},Object.defineProperty(e.prototype,"currentTick",{get:function(){return this._currentTick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentTimeSeconds",{get:function(){return this._currentTime/1e3},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tickDeltaTimeSeconds",{get:function(){return this._tickDeltaTime/1e3},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timeScale",{get:function(){return this._timeScale},set:function(e){this._timeScale!==e&&(this._timeScale=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onResume",{get:function(){return this._onResume},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onPause",{get:function(){return this._onPause},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTick",{get:function(){return this._onTick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTickOncePerFrame",{get:function(){return this._onTickOncePerFrame},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRunning",{get:function(){return this._isRunning},enumerable:!0,configurable:!0}),e.prototype.animateOnce=function(){var e=this;this._animationFrameHandle=window.requestAnimationFrame(function(){return e.onFrame()})},e.prototype.onFrame=function(){if(this._now=this.getTimer(),this._frameDeltaTime=this._now-this._lastTimeUpdated,isNaN(this._minInterval)||this._frameDeltaTime>=this._minInterval){if(isNaN(this._maxInterval))this.update(this._frameDeltaTime*this._timeScale,!0),this._lastTimeUpdated=this._now;else for(this._interval=Math.min(this._frameDeltaTime,this._maxInterval);this._now>=this._lastTimeUpdated+this._interval;)this.update(this._interval*this._timeScale,this._now<=this._lastTimeUpdated+2*this._maxInterval),this._lastTimeUpdated+=this._interval}this._isRunning&&this.animateOnce()},e.prototype.update=function(e,t){void 0===t&&(t=!0),this._currentTick++,this._currentTime+=e,this._tickDeltaTime=e,this._onTick.dispatch(this.currentTimeSeconds,this.tickDeltaTimeSeconds,this.currentTick),t&&this._onTickOncePerFrame.dispatch(this.currentTimeSeconds,this.tickDeltaTimeSeconds,this.currentTick)},e.prototype.getTimer=function(){return Date.now()},e}();Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},function(e,t,n){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t){"use strict";var n=function(){function e(){this.functions=[]}return e.prototype.add=function(e){return -1===this.functions.indexOf(e)&&(this.functions.push(e),!0)},e.prototype.remove=function(e){var t=this.functions.indexOf(e);return t>-1&&(this.functions.splice(t,1),!0)},e.prototype.removeAll=function(){return this.functions.length>0&&(this.functions.length=0,!0)},e.prototype.dispatch=function(){for(var e=[],t=0;t */e.exports=function(e){return[...e].reduce((e,[t,n])=>(e[t]=n,e),{})}},49310:function(e,t,n){"use strict";n.d(t,{Vx:function(){return f},kX:function(){return c},oY:function(){return i}});var r,i=Object.freeze({Linear:Object.freeze({None:function(e){return e},In:function(e){return this.None(e)},Out:function(e){return this.None(e)},InOut:function(e){return this.None(e)}}),Quadratic:Object.freeze({In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}}),Cubic:Object.freeze({In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}}),Quartic:Object.freeze({In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}}),Quintic:Object.freeze({In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}}),Sinusoidal:Object.freeze({In:function(e){return 1-Math.sin((1-e)*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return .5*(1-Math.sin(Math.PI*(.5-e)))}}),Exponential:Object.freeze({In:function(e){return 0===e?0:Math.pow(1024,e-1)},Out:function(e){return 1===e?1:1-Math.pow(2,-10*e)},InOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)}}),Circular:Object.freeze({In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}}),Elastic:Object.freeze({In:function(e){return 0===e?0:1===e?1:-Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI)},Out:function(e){return 0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((e-.1)*5*Math.PI)+1},InOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?-.5*Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin((e-1.1)*5*Math.PI)+1}}),Back:Object.freeze({In:function(e){return 1===e?1:e*e*(2.70158*e-1.70158)},Out:function(e){return 0===e?0:--e*e*(2.70158*e+1.70158)+1},InOut:function(e){return(e*=2)<1?.5*(e*e*(3.5949095*e-2.5949095)):.5*((e-=2)*e*(3.5949095*e+2.5949095)+2)}}),Bounce:Object.freeze({In:function(e){return 1-i.Bounce.Out(1-e)},Out:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},InOut:function(e){return e<.5?.5*i.Bounce.In(2*e):.5*i.Bounce.Out(2*e-1)+.5}}),generatePow:function(e){return void 0===e&&(e=4),e=(e=e1e4?1e4:e,{In:function(t){return Math.pow(t,e)},Out:function(t){return 1-Math.pow(1-t,e)},InOut:function(t){return t<.5?Math.pow(2*t,e)/2:(1-Math.pow(2-2*t,e))/2+.5}}}}),o=function(){return performance.now()},a=function(){function e(){this._tweens={},this._tweensAddedDuringUpdate={}}return e.prototype.getAll=function(){var e=this;return Object.keys(this._tweens).map(function(t){return e._tweens[t]})},e.prototype.removeAll=function(){this._tweens={}},e.prototype.add=function(e){this._tweens[e.getId()]=e,this._tweensAddedDuringUpdate[e.getId()]=e},e.prototype.remove=function(e){delete this._tweens[e.getId()],delete this._tweensAddedDuringUpdate[e.getId()]},e.prototype.update=function(e,t){void 0===e&&(e=o()),void 0===t&&(t=!1);var n=Object.keys(this._tweens);if(0===n.length)return!1;for(;n.length>0;){this._tweensAddedDuringUpdate={};for(var r=0;r1?o(e[n],e[n-1],n-r):o(e[i],e[i+1>n?n:i+1],r-i)},Bezier:function(e,t){for(var n=0,r=e.length-1,i=Math.pow,o=s.Utils.Bernstein,a=0;a<=r;a++)n+=i(1-t,r-a)*i(t,a)*e[a]*o(r,a);return n},CatmullRom:function(e,t){var n=e.length-1,r=n*t,i=Math.floor(r),o=s.Utils.CatmullRom;return e[0]===e[n]?(t<0&&(i=Math.floor(r=n*(1+t))),o(e[(i-1+n)%n],e[i],e[(i+1)%n],e[(i+2)%n],r-i)):t<0?e[0]-(o(e[0],e[0],e[1],e[1],-r)-e[0]):t>1?e[n]-(o(e[n],e[n],e[n-1],e[n-1],r-n)-e[n]):o(e[i?i-1:0],e[i],e[n1;n--)t*=n;return r[e]=t,t}),CatmullRom:function(e,t,n,r,i){var o=(n-e)*.5,a=(r-t)*.5,s=i*i;return(2*t-2*n+o+a)*(i*s)+(-3*t+3*n-2*o-a)*s+o*i+t}}},u=function(){function e(){}return e.nextId=function(){return e._nextId++},e._nextId=0,e}(),l=new a,c=function(){function e(e,t){void 0===t&&(t=l),this._object=e,this._group=t,this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._isDynamic=!1,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=i.Linear.None,this._interpolationFunction=s.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._id=u.nextId(),this._isChainStopped=!1,this._propertiesAreSetUp=!1,this._goToEnd=!1}return e.prototype.getId=function(){return this._id},e.prototype.isPlaying=function(){return this._isPlaying},e.prototype.isPaused=function(){return this._isPaused},e.prototype.to=function(e,t){if(void 0===t&&(t=1e3),this._isPlaying)throw Error("Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.");return this._valuesEnd=e,this._propertiesAreSetUp=!1,this._duration=t,this},e.prototype.duration=function(e){return void 0===e&&(e=1e3),this._duration=e,this},e.prototype.dynamic=function(e){return void 0===e&&(e=!1),this._isDynamic=e,this},e.prototype.start=function(e,t){if(void 0===e&&(e=o()),void 0===t&&(t=!1),this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed)for(var n in this._reversed=!1,this._valuesStartRepeat)this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n];if(this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=e,this._startTime+=this._delayTime,!this._propertiesAreSetUp||t){if(this._propertiesAreSetUp=!0,!this._isDynamic){var r={};for(var i in this._valuesEnd)r[i]=this._valuesEnd[i];this._valuesEnd=r}this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat,t)}return this},e.prototype.startFromCurrentValues=function(e){return this.start(e,!0)},e.prototype._setupProperties=function(e,t,n,r,i){for(var o in n){var a=e[o],s=Array.isArray(a),u=s?"array":typeof a,l=!s&&Array.isArray(n[o]);if("undefined"!==u&&"function"!==u){if(l){var c=n[o];if(0===c.length)continue;for(var f=[a],h=0,p=c.length;hi)return!1;t&&this.start(e,!0)}if(this._goToEnd=!1,e1?1:r;var a=this._easingFunction(r);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,a),this._onUpdateCallback&&this._onUpdateCallback(this._object,r),1===r){if(this._repeat>0){for(n in isFinite(this._repeat)&&this._repeat--,this._valuesStartRepeat)this._yoyo||"string"!=typeof this._valuesEnd[n]||(this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(this._valuesEnd[n])),this._yoyo&&this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n];this._yoyo&&(this._reversed=!this._reversed),void 0!==this._repeatDelayTime?this._startTime=e+this._repeatDelayTime:this._startTime=e+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var s=0,u=this._chainedTweens.length;s0){for(o=e[--t];t>0&&(o=(n=o)+(r=e[--t]),!(i=r-(o-n))););t>0&&(i<0&&e[t-1]<0||i>0&&e[t-1]>0)&&(n=o+(r=2*i),r==n-o&&(o=n))}return o}}},23320:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r,i,o,a,s=n(15852),u=n(33909),l=n(60858),c=n(2708),f={sphere:l.Z,point:l.Z,lineStart:function(){f.point=p,f.lineEnd=h},lineEnd:l.Z,polygonStart:l.Z,polygonEnd:l.Z};function h(){f.point=f.lineEnd=l.Z}function p(e,t){e*=u.uR,t*=u.uR,i=e,o=(0,u.O$)(t),a=(0,u.mC)(t),f.point=d}function d(e,t){e*=u.uR,t*=u.uR;var n=(0,u.O$)(t),s=(0,u.mC)(t),l=(0,u.Wn)(e-i),c=(0,u.mC)(l),f=s*(0,u.O$)(l),h=a*n-o*s*c,p=o*n+a*s*c;r.add((0,u.fv)((0,u._b)(f*f+h*h),p)),i=e,o=n,a=s}var m=[null,null],g={type:"LineString",coordinates:m};function y(e,t){return m[0]=e,m[1]=t,r=new s.dU,(0,c.Z)(g,f),+r}},69386:function(e,t,n){"use strict";function r(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=Array(i);++ri.Ho}).map(h)).concat(r((0,i.mD)(l/y)*y,u,y).filter(function(e){return(0,i.Wn)(e%v)>i.Ho}).map(p))}return w.lines=function(){return _().map(function(e){return{type:"LineString",coordinates:e}})},w.outline=function(){return{type:"Polygon",coordinates:[d(s).concat(m(c).slice(1),d(n).reverse().slice(1),m(f).reverse().slice(1))]}},w.extent=function(e){return arguments.length?w.extentMajor(e).extentMinor(e):w.extentMinor()},w.extentMajor=function(e){return arguments.length?(s=+e[0][0],n=+e[1][0],f=+e[0][1],c=+e[1][1],s>n&&(e=s,s=n,n=e),f>c&&(e=f,f=c,c=e),w.precision(x)):[[s,f],[n,c]]},w.extentMinor=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],l=+n[0][1],u=+n[1][1],t>e&&(n=t,t=e,e=n),l>u&&(n=l,l=u,u=n),w.precision(x)):[[t,l],[e,u]]},w.step=function(e){return arguments.length?w.stepMajor(e).stepMinor(e):w.stepMinor()},w.stepMajor=function(e){return arguments.length?(b=+e[0],v=+e[1],w):[b,v]},w.stepMinor=function(e){return arguments.length?(g=+e[0],y=+e[1],w):[g,y]},w.precision=function(r){return arguments.length?(x=+r,h=o(l,u,90),p=a(t,e,x),d=o(f,c,90),m=a(s,n,x),w):x},w.extentMajor([[-180,-90+i.Ho],[180,90-i.Ho]]).extentMinor([[-180,-80-i.Ho],[180,80+i.Ho]])})()()}},46373:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(33909);function i(e,t){var n=e[0]*r.uR,i=e[1]*r.uR,o=t[0]*r.uR,a=t[1]*r.uR,s=(0,r.mC)(i),u=(0,r.O$)(i),l=(0,r.mC)(a),c=(0,r.O$)(a),f=s*(0,r.mC)(n),h=s*(0,r.O$)(n),p=l*(0,r.mC)(o),d=l*(0,r.O$)(o),m=2*(0,r.ZR)((0,r._b)((0,r.Jy)(a-i)+s*l*(0,r.Jy)(o-n))),g=(0,r.O$)(m),y=m?function(e){var t=(0,r.O$)(e*=m)/g,n=(0,r.O$)(m-e)/g,i=n*f+t*p,o=n*h+t*d;return[(0,r.fv)(o,i)*r.RW,(0,r.fv)(n*u+t*c,(0,r._b)(i*i+o*o))*r.RW]}:function(){return[n*r.RW,i*r.RW]};return y.distance=m,y}},33909:function(e,t,n){"use strict";n.d(t,{BZ:function(){return u},Ho:function(){return r},Jy:function(){return _},Kh:function(){return x},O$:function(){return y},RW:function(){return l},Wn:function(){return f},Xx:function(){return b},ZR:function(){return w},_b:function(){return v},_m:function(){return g},aW:function(){return i},fv:function(){return p},mC:function(){return d},mD:function(){return m},ou:function(){return a},pi:function(){return o},pu:function(){return s},uR:function(){return c},z4:function(){return h}});var r=1e-6,i=1e-12,o=Math.PI,a=o/2,s=o/4,u=2*o,l=180/o,c=o/180,f=Math.abs,h=Math.atan,p=Math.atan2,d=Math.cos,m=Math.ceil,g=Math.hypot,y=Math.sin,b=Math.sign||function(e){return e>0?1:e<0?-1:0},v=Math.sqrt;function x(e){return e>1?0:e<-1?o:Math.acos(e)}function w(e){return e>1?a:e<-1?-a:Math.asin(e)}function _(e){return(e=y(e/2))*e}},60858:function(e,t,n){"use strict";function r(){}n.d(t,{Z:function(){return r}})},2708:function(e,t,n){"use strict";function r(e,t){e&&o.hasOwnProperty(e.type)&&o[e.type](e,t)}n.d(t,{Z:function(){return u}});var i={Feature:function(e,t){r(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,i=-1,o=n.length;++ie.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(l,c))).objBindAttr)?"__obj":p,g=void 0===(m=h.dataBindAttr)?"__data":m,y=h.idAccessor,b=h.purge,v=function(e){return e.hasOwnProperty(g)},x=t.filter(function(e){return!v(e)}),w=t.filter(v).map(function(e){return e[g]}),(_=void 0!==b&&b?{enter:e,exit:w,update:[]}:function(e,t,n){var i={enter:[],update:[],exit:[]};if(n){var o=(0,r.Z)(e,n,!1),u=(0,r.Z)(t,n,!1);Object.entries(Object.assign({},o,u)).forEach(function(e){var t=a(e,2),n=t[0],r=t[1],s=o.hasOwnProperty(n)?u.hasOwnProperty(n)?"update":"exit":"enter";i[s].push("update"===s?[o[n],u[n]]:r)})}else{var l=new Set(e),c=new Set(t);new Set([].concat(s(l),s(c))).forEach(function(e){var t=l.has(e)?c.has(e)?"update":"exit":"enter";i[t].push("update"===t?[e,e]:e)})}return i}(w,e,y)).update=_.update.map(function(e){var t=a(e,2),n=t[0],r=t[1];return n!==r&&(r[d]=n[d],r[d][g]=r),r}),_.exit=_.exit.concat(x.map(function(e){return o({},d,e)})),_),L=R.enter,I=R.update;R.exit.forEach(function(e){var t=e[j];delete e[j],M(t),u(t)});var D=(f=[],L.forEach(function(e){var t=O(e);t&&(t[k]=e,e[j]=t,f.push(t))}),f);(function(e){e.forEach(function(e){var t=e[j];t&&(t[k]=e,A(t,e))})})([].concat(s(L),s(I))),D.forEach(n)}},60846:function(e,t,n){"use strict";function r(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=(t instanceof Array?t.length?t:[void 0]:[t]).map(function(e){return{keyAccessor:e,isProp:!(e instanceof Function)}}),u=e.reduce(function(e,t){var r=e,i=t;return s.forEach(function(e,t){var a,u=e.keyAccessor;if(e.isProp){var l=i,c=l[u],f=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(l,[u].map(o));a=c,i=f}else a=u(i,t);t+11&&void 0!==arguments[1]?arguments[1]:1;r===s.length?Object.keys(t).forEach(function(e){return t[e]=n(t[e])}):Object.values(t).forEach(function(t){return e(t,r+1)})}(u);var l=u;return a&&(l=[],function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];n.length===s.length?l.push({keys:n,vals:t}):Object.entries(t).forEach(function(t){var o=function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,2)||r(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=o[0];return e(o[1],[].concat(function(e){if(Array.isArray(e))return i(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||r(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[a]))})}(u),t instanceof Array&&0===t.length&&1===l.length&&(l[0].keys=[])),l}},60082:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r,i,o,a=n(93122),s=n(93221),u=function(){return s.Z.Date.now()},l=/\s/,c=function(e){for(var t=e.length;t--&&l.test(e.charAt(t)););return t},f=/^\s+/,h=n(22758),p=0/0,d=/^[-+]0x[0-9a-f]+$/i,m=/^0b[01]+$/i,g=/^0o[0-7]+$/i,y=parseInt,b=function(e){if("number"==typeof e)return e;if((0,h.Z)(e))return p;if((0,a.Z)(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=(0,a.Z)(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=(t=e)?t.slice(0,c(t)+1).replace(f,""):t;var r=m.test(e);return r||g.test(e)?y(e.slice(2),r?2:8):d.test(e)?p:+e},v=Math.max,x=Math.min,w=function(e,t,n){var r,i,o,s,l,c,f=0,h=!1,p=!1,d=!0;if("function"!=typeof e)throw TypeError("Expected a function");function m(t){var n=r,o=i;return r=i=void 0,f=t,s=e.apply(o,n)}function g(e){var n=e-c,r=e-f;return void 0===c||n>=t||n<0||p&&r>=o}function y(){var e,n,r,i=u();if(g(i))return w(i);l=setTimeout(y,(e=i-c,n=i-f,r=t-e,p?x(r,o-n):r))}function w(e){return(l=void 0,d&&r)?m(e):(r=i=void 0,s)}function _(){var e,n=u(),o=g(n);if(r=arguments,i=this,c=n,o){if(void 0===l)return f=e=c,l=setTimeout(y,t),h?m(e):s;if(p)return clearTimeout(l),l=setTimeout(y,t),m(c)}return void 0===l&&(l=setTimeout(y,t)),s}return t=b(t)||0,(0,a.Z)(n)&&(h=!!n.leading,o=(p="maxWait"in n)?v(b(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d),_.cancel=function(){void 0!==l&&clearTimeout(l),f=0,r=c=i=l=void 0},_.flush=function(){return void 0===l?s:w(u())},_};function _(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},n instanceof Function?n(e):n,{initialised:!1}),r={};function i(t){return o(t,e),s(),i}var o=function(e,n){c.call(i,e,t,n),t.initialised=!0},s=w(function(){t.initialised&&(h.call(i,t,r),r={})},1);return p.forEach(function(e){var n,o,a,u,l,c,f;i[e.name]=(n=e.name,a=void 0!==(o=e.triggerUpdate)&&o,l=void 0===(u=e.onChange)?function(e,t){}:u,f=void 0===(c=e.defaultVal)?null:c,function(e){var o=t[n];if(!arguments.length)return o;var u=void 0===e?f:e;return t[n]=u,l.call(i,u,t,o),r.hasOwnProperty(n)||(r[n]=o),a&&s(),i})}),Object.keys(a).forEach(function(e){i[e]=function(){for(var n,r=arguments.length,o=Array(r),s=0;se.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:i.useEffect,n=(0,i.useRef)(),r=(0,i.useRef)(!1),o=(0,i.useRef)(!1),a=f((0,i.useState)(0),2);a[0];var s=a[1];r.current&&(o.current=!0),t(function(){return r.current||(n.current=e(),r.current=!0),s(function(e){return e+1}),function(){o.current&&n.current&&n.current()}},[])}var g=n(96995),y=n(81219),b=n(65950);let v={type:"change"},x={type:"start"},w={type:"end"};class _ extends g.pBf{constructor(e,t){super();let n=this,r={NONE:-1,ROTATE:0,ZOOM:1,PAN:2,TOUCH_ROTATE:3,TOUCH_ZOOM_PAN:4};this.object=e,this.domElement=t,this.domElement.style.touchAction="none",this.enabled=!0,this.screen={left:0,top:0,width:0,height:0},this.rotateSpeed=1,this.zoomSpeed=1.2,this.panSpeed=.3,this.noRotate=!1,this.noZoom=!1,this.noPan=!1,this.staticMoving=!1,this.dynamicDampingFactor=.2,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.keys=["KeyA","KeyS","KeyD"],this.mouseButtons={LEFT:g.RsA.ROTATE,MIDDLE:g.RsA.DOLLY,RIGHT:g.RsA.PAN},this.target=new g.Pa4;let i=new g.Pa4,o=1,a=r.NONE,s=r.NONE,u=0,l=0,c=0,f=new g.Pa4,h=new g.FM8,p=new g.FM8,d=new g.Pa4,m=new g.FM8,y=new g.FM8,b=new g.FM8,_=new g.FM8,S=[],O={};this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.up0=this.object.up.clone(),this.zoom0=this.object.zoom,this.handleResize=function(){let e=n.domElement.getBoundingClientRect(),t=n.domElement.ownerDocument.documentElement;n.screen.left=e.left+window.pageXOffset-t.clientLeft,n.screen.top=e.top+window.pageYOffset-t.clientTop,n.screen.width=e.width,n.screen.height=e.height};let E=function(){let e=new g.FM8;return function(t,r){return e.set((t-n.screen.left)/n.screen.width,(r-n.screen.top)/n.screen.height),e}}(),A=function(){let e=new g.FM8;return function(t,r){return e.set((t-.5*n.screen.width-n.screen.left)/(.5*n.screen.width),(n.screen.height+2*(n.screen.top-r))/n.screen.width),e}}();function T(e){!1!==n.enabled&&(0===S.length&&(n.domElement.setPointerCapture(e.pointerId),n.domElement.addEventListener("pointermove",M),n.domElement.addEventListener("pointerup",P)),S.push(e),"touch"===e.pointerType?function(e){if(D(e),1===S.length)a=r.TOUCH_ROTATE,p.copy(A(S[0].pageX,S[0].pageY)),h.copy(p);else{a=r.TOUCH_ZOOM_PAN;let e=S[0].pageX-S[1].pageX,t=S[0].pageY-S[1].pageY;l=u=Math.sqrt(e*e+t*t);let n=(S[0].pageX+S[1].pageX)/2,i=(S[0].pageY+S[1].pageY)/2;b.copy(E(n,i)),_.copy(b)}n.dispatchEvent(x)}(e):function(e){if(a===r.NONE)switch(e.button){case n.mouseButtons.LEFT:a=r.ROTATE;break;case n.mouseButtons.MIDDLE:a=r.ZOOM;break;case n.mouseButtons.RIGHT:a=r.PAN}let t=s!==r.NONE?s:a;t!==r.ROTATE||n.noRotate?t!==r.ZOOM||n.noZoom?t!==r.PAN||n.noPan||(b.copy(E(e.pageX,e.pageY)),_.copy(b)):(m.copy(E(e.pageX,e.pageY)),y.copy(m)):(p.copy(A(e.pageX,e.pageY)),h.copy(p)),n.dispatchEvent(x)}(e))}function M(e){!1!==n.enabled&&("touch"===e.pointerType?function(e){if(D(e),1===S.length)h.copy(p),p.copy(A(e.pageX,e.pageY));else{let t=function(e){let t=e.pointerId===S[0].pointerId?S[1]:S[0];return O[t.pointerId]}(e),n=e.pageX-t.x,r=e.pageY-t.y;l=Math.sqrt(n*n+r*r);let i=(e.pageX+t.x)/2,o=(e.pageY+t.y)/2;_.copy(E(i,o))}}(e):function(e){let t=s!==r.NONE?s:a;t!==r.ROTATE||n.noRotate?t!==r.ZOOM||n.noZoom?t!==r.PAN||n.noPan||_.copy(E(e.pageX,e.pageY)):y.copy(E(e.pageX,e.pageY)):(h.copy(p),p.copy(A(e.pageX,e.pageY)))}(e))}function P(e){!1!==n.enabled&&("touch"===e.pointerType?function(e){switch(S.length){case 0:a=r.NONE;break;case 1:a=r.TOUCH_ROTATE,p.copy(A(e.pageX,e.pageY)),h.copy(p);break;case 2:a=r.TOUCH_ZOOM_PAN;for(let t=0;t0&&(n.object.isPerspectiveCamera?f.multiplyScalar(e):n.object.isOrthographicCamera?(n.object.zoom=g.M8C.clamp(n.object.zoom/e,n.minZoom,n.maxZoom),o!==n.object.zoom&&n.object.updateProjectionMatrix()):console.warn("THREE.TrackballControls: Unsupported camera type")),n.staticMoving?m.copy(y):m.y+=(y.y-m.y)*this.dynamicDampingFactor)},this.panCamera=function(){let e=new g.FM8,t=new g.Pa4,r=new g.Pa4;return function(){if(e.copy(_).sub(b),e.lengthSq()){if(n.object.isOrthographicCamera){let t=(n.object.right-n.object.left)/n.object.zoom/n.domElement.clientWidth,r=(n.object.top-n.object.bottom)/n.object.zoom/n.domElement.clientWidth;e.x*=t,e.y*=r}e.multiplyScalar(f.length()*n.panSpeed),r.copy(f).cross(n.object.up).setLength(e.x),r.add(t.copy(n.object.up).setLength(e.y)),n.object.position.add(r),n.target.add(r),n.staticMoving?b.copy(_):b.add(e.subVectors(_,b).multiplyScalar(n.dynamicDampingFactor))}}}(),this.checkDistances=function(){n.noZoom&&n.noPan||(f.lengthSq()>n.maxDistance*n.maxDistance&&(n.object.position.addVectors(n.target,f.setLength(n.maxDistance)),m.copy(y)),f.lengthSq()1e-6&&(n.dispatchEvent(v),i.copy(n.object.position))):n.object.isOrthographicCamera?(n.object.lookAt(n.target),(i.distanceToSquared(n.object.position)>1e-6||o!==n.object.zoom)&&(n.dispatchEvent(v),i.copy(n.object.position),o=n.object.zoom)):console.warn("THREE.TrackballControls: Unsupported camera type")},this.reset=function(){a=r.NONE,s=r.NONE,n.target.copy(n.target0),n.object.position.copy(n.position0),n.object.up.copy(n.up0),n.object.zoom=n.zoom0,n.object.updateProjectionMatrix(),f.subVectors(n.object.position,n.target),n.object.lookAt(n.target),n.dispatchEvent(v),i.copy(n.object.position),o=n.object.zoom},this.dispose=function(){n.domElement.removeEventListener("contextmenu",L),n.domElement.removeEventListener("pointerdown",T),n.domElement.removeEventListener("pointercancel",j),n.domElement.removeEventListener("wheel",R),n.domElement.removeEventListener("pointermove",M),n.domElement.removeEventListener("pointerup",P),window.removeEventListener("keydown",C),window.removeEventListener("keyup",k)},this.domElement.addEventListener("contextmenu",L),this.domElement.addEventListener("pointerdown",T),this.domElement.addEventListener("pointercancel",j),this.domElement.addEventListener("wheel",R,{passive:!1}),window.addEventListener("keydown",C),window.addEventListener("keyup",k),this.handleResize(),this.update()}}let S={type:"change"},O={type:"start"},E={type:"end"},A=new g.zHn,T=new g.JOQ,M=Math.cos(70*g.M8C.DEG2RAD);class P extends g.pBf{constructor(e,t){super(),this.object=e,this.domElement=t,this.domElement.style.touchAction="none",this.enabled=!0,this.target=new g.Pa4,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.zoomToCursor=!1,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:g.RsA.ROTATE,MIDDLE:g.RsA.DOLLY,RIGHT:g.RsA.PAN},this.touches={ONE:g.QmN.ROTATE,TWO:g.QmN.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this.getPolarAngle=function(){return a.phi},this.getAzimuthalAngle=function(){return a.theta},this.getDistance=function(){return this.object.position.distanceTo(this.target)},this.listenToKeyEvents=function(e){e.addEventListener("keydown",J),this._domElementKeyEvents=e},this.stopListenToKeyEvents=function(){this._domElementKeyEvents.removeEventListener("keydown",J),this._domElementKeyEvents=null},this.saveState=function(){n.target0.copy(n.target),n.position0.copy(n.object.position),n.zoom0=n.object.zoom},this.reset=function(){n.target.copy(n.target0),n.object.position.copy(n.position0),n.object.zoom=n.zoom0,n.object.updateProjectionMatrix(),n.dispatchEvent(S),n.update(),i=r.NONE},this.update=function(){let t=new g.Pa4,c=new g._fP().setFromUnitVectors(e.up,new g.Pa4(0,1,0)),f=c.clone().invert(),h=new g.Pa4,p=new g._fP,d=new g.Pa4,m=2*Math.PI;return function(){let y=n.object.position;t.copy(y).sub(n.target),t.applyQuaternion(c),a.setFromVector3(t),n.autoRotate&&i===r.NONE&&k(2*Math.PI/60/60*n.autoRotateSpeed),n.enableDamping?(a.theta+=s.theta*n.dampingFactor,a.phi+=s.phi*n.dampingFactor):(a.theta+=s.theta,a.phi+=s.phi);let b=n.minAzimuthAngle,v=n.maxAzimuthAngle;isFinite(b)&&isFinite(v)&&(b<-Math.PI?b+=m:b>Math.PI&&(b-=m),v<-Math.PI?v+=m:v>Math.PI&&(v-=m),b<=v?a.theta=Math.max(b,Math.min(v,a.theta)):a.theta=a.theta>(b+v)/2?Math.max(b,a.theta):Math.min(v,a.theta)),a.phi=Math.max(n.minPolarAngle,Math.min(n.maxPolarAngle,a.phi)),a.makeSafe(),!0===n.enableDamping?n.target.addScaledVector(l,n.dampingFactor):n.target.add(l),n.zoomToCursor&&_||n.object.isOrthographicCamera?a.radius=N(a.radius):a.radius=N(a.radius*u),t.setFromSpherical(a),t.applyQuaternion(f),y.copy(n.target).add(t),n.object.lookAt(n.target),!0===n.enableDamping?(s.theta*=1-n.dampingFactor,s.phi*=1-n.dampingFactor,l.multiplyScalar(1-n.dampingFactor)):(s.set(0,0,0),l.set(0,0,0));let O=!1;if(n.zoomToCursor&&_){let r=null;if(n.object.isPerspectiveCamera){let e=t.length();r=N(e*u);let i=e-r;n.object.position.addScaledVector(x,i),n.object.updateMatrixWorld()}else if(n.object.isOrthographicCamera){let e=new g.Pa4(w.x,w.y,0);e.unproject(n.object),n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom/u)),n.object.updateProjectionMatrix(),O=!0;let i=new g.Pa4(w.x,w.y,0);i.unproject(n.object),n.object.position.sub(i).add(e),n.object.updateMatrixWorld(),r=t.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),n.zoomToCursor=!1;null!==r&&(this.screenSpacePanning?n.target.set(0,0,-1).transformDirection(n.object.matrix).multiplyScalar(r).add(n.object.position):(A.origin.copy(n.object.position),A.direction.set(0,0,-1).transformDirection(n.object.matrix),Math.abs(n.object.up.dot(A.direction))o||8*(1-p.dot(n.object.quaternion))>o||d.distanceToSquared(n.target)>0)&&(n.dispatchEvent(S),h.copy(n.object.position),p.copy(n.object.quaternion),d.copy(n.target),O=!1,!0)}}(),this.dispose=function(){n.domElement.removeEventListener("contextmenu",ee),n.domElement.removeEventListener("pointerdown",X),n.domElement.removeEventListener("pointercancel",K),n.domElement.removeEventListener("wheel",Q),n.domElement.removeEventListener("pointermove",q),n.domElement.removeEventListener("pointerup",K),null!==n._domElementKeyEvents&&(n._domElementKeyEvents.removeEventListener("keydown",J),n._domElementKeyEvents=null)};let n=this,r={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6},i=r.NONE,o=1e-6,a=new g.$V,s=new g.$V,u=1,l=new g.Pa4,c=new g.FM8,f=new g.FM8,h=new g.FM8,p=new g.FM8,d=new g.FM8,m=new g.FM8,y=new g.FM8,b=new g.FM8,v=new g.FM8,x=new g.Pa4,w=new g.FM8,_=!1,P=[],j={};function C(){return Math.pow(.95,n.zoomSpeed)}function k(e){s.theta-=e}function R(e){s.phi-=e}let L=function(){let e=new g.Pa4;return function(t,n){e.setFromMatrixColumn(n,0),e.multiplyScalar(-t),l.add(e)}}(),I=function(){let e=new g.Pa4;return function(t,r){!0===n.screenSpacePanning?e.setFromMatrixColumn(r,1):(e.setFromMatrixColumn(r,0),e.crossVectors(n.object.up,e)),e.multiplyScalar(t),l.add(e)}}(),D=function(){let e=new g.Pa4;return function(t,r){let i=n.domElement;if(n.object.isPerspectiveCamera){let o=n.object.position;e.copy(o).sub(n.target);let a=e.length();L(2*t*(a*=Math.tan(n.object.fov/2*Math.PI/180))/i.clientHeight,n.object.matrix),I(2*r*a/i.clientHeight,n.object.matrix)}else n.object.isOrthographicCamera?(L(t*(n.object.right-n.object.left)/n.object.zoom/i.clientWidth,n.object.matrix),I(r*(n.object.top-n.object.bottom)/n.object.zoom/i.clientHeight,n.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),n.enablePan=!1)}}();function z(e){n.object.isPerspectiveCamera||n.object.isOrthographicCamera?u/=e:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function U(e){n.object.isPerspectiveCamera||n.object.isOrthographicCamera?u*=e:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function B(t){if(!n.zoomToCursor)return;_=!0;let r=n.domElement.getBoundingClientRect(),i=t.clientX-r.left,o=t.clientY-r.top,a=r.width,s=r.height;w.x=i/a*2-1,w.y=-(2*(o/s))+1,x.set(w.x,w.y,1).unproject(e).sub(e.position).normalize()}function N(e){return Math.max(n.minDistance,Math.min(n.maxDistance,e))}function H(e){c.set(e.clientX,e.clientY)}function F(e){p.set(e.clientX,e.clientY)}function Z(){if(1===P.length)c.set(P[0].pageX,P[0].pageY);else{let e=.5*(P[0].pageX+P[1].pageX),t=.5*(P[0].pageY+P[1].pageY);c.set(e,t)}}function G(){if(1===P.length)p.set(P[0].pageX,P[0].pageY);else{let e=.5*(P[0].pageX+P[1].pageX),t=.5*(P[0].pageY+P[1].pageY);p.set(e,t)}}function V(){let e=P[0].pageX-P[1].pageX,t=P[0].pageY-P[1].pageY,n=Math.sqrt(e*e+t*t);y.set(0,n)}function W(e){if(1==P.length)f.set(e.pageX,e.pageY);else{let t=en(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);f.set(n,r)}h.subVectors(f,c).multiplyScalar(n.rotateSpeed);let t=n.domElement;k(2*Math.PI*h.x/t.clientHeight),R(2*Math.PI*h.y/t.clientHeight),c.copy(f)}function $(e){if(1===P.length)d.set(e.pageX,e.pageY);else{let t=en(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);d.set(n,r)}m.subVectors(d,p).multiplyScalar(n.panSpeed),D(m.x,m.y),p.copy(d)}function Y(e){let t=en(e),r=e.pageX-t.x,i=e.pageY-t.y,o=Math.sqrt(r*r+i*i);b.set(0,o),v.set(0,Math.pow(b.y/y.y,n.zoomSpeed)),z(v.y),y.copy(b)}function X(e){!1!==n.enabled&&(0===P.length&&(n.domElement.setPointerCapture(e.pointerId),n.domElement.addEventListener("pointermove",q),n.domElement.addEventListener("pointerup",K)),P.push(e),"touch"===e.pointerType?function(e){switch(et(e),P.length){case 1:switch(n.touches.ONE){case g.QmN.ROTATE:if(!1===n.enableRotate)return;Z(),i=r.TOUCH_ROTATE;break;case g.QmN.PAN:if(!1===n.enablePan)return;G(),i=r.TOUCH_PAN;break;default:i=r.NONE}break;case 2:switch(n.touches.TWO){case g.QmN.DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;n.enableZoom&&V(),n.enablePan&&G(),i=r.TOUCH_DOLLY_PAN;break;case g.QmN.DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;n.enableZoom&&V(),n.enableRotate&&Z(),i=r.TOUCH_DOLLY_ROTATE;break;default:i=r.NONE}break;default:i=r.NONE}i!==r.NONE&&n.dispatchEvent(O)}(e):function(e){let t;switch(e.button){case 0:t=n.mouseButtons.LEFT;break;case 1:t=n.mouseButtons.MIDDLE;break;case 2:t=n.mouseButtons.RIGHT;break;default:t=-1}switch(t){case g.RsA.DOLLY:if(!1===n.enableZoom)return;B(e),y.set(e.clientX,e.clientY),i=r.DOLLY;break;case g.RsA.ROTATE:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===n.enablePan)return;F(e),i=r.PAN}else{if(!1===n.enableRotate)return;H(e),i=r.ROTATE}break;case g.RsA.PAN:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===n.enableRotate)return;H(e),i=r.ROTATE}else{if(!1===n.enablePan)return;F(e),i=r.PAN}break;default:i=r.NONE}i!==r.NONE&&n.dispatchEvent(O)}(e))}function q(e){!1!==n.enabled&&("touch"===e.pointerType?function(e){switch(et(e),i){case r.TOUCH_ROTATE:if(!1===n.enableRotate)return;W(e),n.update();break;case r.TOUCH_PAN:if(!1===n.enablePan)return;$(e),n.update();break;case r.TOUCH_DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;n.enableZoom&&Y(e),n.enablePan&&$(e),n.update();break;case r.TOUCH_DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;n.enableZoom&&Y(e),n.enableRotate&&W(e),n.update();break;default:i=r.NONE}}(e):function(e){switch(i){case r.ROTATE:if(!1===n.enableRotate)return;!function(e){f.set(e.clientX,e.clientY),h.subVectors(f,c).multiplyScalar(n.rotateSpeed);let t=n.domElement;k(2*Math.PI*h.x/t.clientHeight),R(2*Math.PI*h.y/t.clientHeight),c.copy(f),n.update()}(e);break;case r.DOLLY:if(!1===n.enableZoom)return;b.set(e.clientX,e.clientY),v.subVectors(b,y),v.y>0?z(C()):v.y<0&&U(C()),y.copy(b),n.update();break;case r.PAN:if(!1===n.enablePan)return;d.set(e.clientX,e.clientY),m.subVectors(d,p).multiplyScalar(n.panSpeed),D(m.x,m.y),p.copy(d),n.update()}}(e))}function K(e){(function(e){delete j[e.pointerId];for(let t=0;t0&&z(C()),n.update(),n.dispatchEvent(E))}function J(e){!1!==n.enabled&&!1!==n.enablePan&&function(e){let t=!1;switch(e.code){case n.keys.UP:e.ctrlKey||e.metaKey||e.shiftKey?R(2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):D(0,n.keyPanSpeed),t=!0;break;case n.keys.BOTTOM:e.ctrlKey||e.metaKey||e.shiftKey?R(-2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):D(0,-n.keyPanSpeed),t=!0;break;case n.keys.LEFT:e.ctrlKey||e.metaKey||e.shiftKey?k(2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):D(n.keyPanSpeed,0),t=!0;break;case n.keys.RIGHT:e.ctrlKey||e.metaKey||e.shiftKey?k(-2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):D(-n.keyPanSpeed,0),t=!0}t&&(e.preventDefault(),n.update())}(e)}function ee(e){!1!==n.enabled&&e.preventDefault()}function et(e){let t=j[e.pointerId];void 0===t&&(t=new g.FM8,j[e.pointerId]=t),t.set(e.pageX,e.pageY)}function en(e){let t=e.pointerId===P[0].pointerId?P[1]:P[0];return j[t.pointerId]}n.domElement.addEventListener("contextmenu",ee),n.domElement.addEventListener("pointerdown",X),n.domElement.addEventListener("pointercancel",K),n.domElement.addEventListener("wheel",Q,{passive:!1}),this.update()}}let j={type:"change"};class C extends g.pBf{constructor(e,t){super(),this.object=e,this.domElement=t,this.enabled=!0,this.movementSpeed=1,this.rollSpeed=.005,this.dragToLook=!1,this.autoForward=!1;let n=this,r=new g._fP,i=new g.Pa4;this.tmpQuaternion=new g._fP,this.status=0,this.moveState={up:0,down:0,left:0,right:0,forward:0,back:0,pitchUp:0,pitchDown:0,yawLeft:0,yawRight:0,rollLeft:0,rollRight:0},this.moveVector=new g.Pa4(0,0,0),this.rotationVector=new g.Pa4(0,0,0),this.keydown=function(e){if(!e.altKey&&!1!==this.enabled){switch(e.code){case"ShiftLeft":case"ShiftRight":this.movementSpeedMultiplier=.1;break;case"KeyW":this.moveState.forward=1;break;case"KeyS":this.moveState.back=1;break;case"KeyA":this.moveState.left=1;break;case"KeyD":this.moveState.right=1;break;case"KeyR":this.moveState.up=1;break;case"KeyF":this.moveState.down=1;break;case"ArrowUp":this.moveState.pitchUp=1;break;case"ArrowDown":this.moveState.pitchDown=1;break;case"ArrowLeft":this.moveState.yawLeft=1;break;case"ArrowRight":this.moveState.yawRight=1;break;case"KeyQ":this.moveState.rollLeft=1;break;case"KeyE":this.moveState.rollRight=1}this.updateMovementVector(),this.updateRotationVector()}},this.keyup=function(e){if(!1!==this.enabled){switch(e.code){case"ShiftLeft":case"ShiftRight":this.movementSpeedMultiplier=1;break;case"KeyW":this.moveState.forward=0;break;case"KeyS":this.moveState.back=0;break;case"KeyA":this.moveState.left=0;break;case"KeyD":this.moveState.right=0;break;case"KeyR":this.moveState.up=0;break;case"KeyF":this.moveState.down=0;break;case"ArrowUp":this.moveState.pitchUp=0;break;case"ArrowDown":this.moveState.pitchDown=0;break;case"ArrowLeft":this.moveState.yawLeft=0;break;case"ArrowRight":this.moveState.yawRight=0;break;case"KeyQ":this.moveState.rollLeft=0;break;case"KeyE":this.moveState.rollRight=0}this.updateMovementVector(),this.updateRotationVector()}},this.pointerdown=function(e){if(!1!==this.enabled){if(this.dragToLook)this.status++;else{switch(e.button){case 0:this.moveState.forward=1;break;case 2:this.moveState.back=1}this.updateMovementVector()}}},this.pointermove=function(e){if(!1!==this.enabled&&(!this.dragToLook||this.status>0)){let t=this.getContainerDimensions(),n=t.size[0]/2,r=t.size[1]/2;this.moveState.yawLeft=-(e.pageX-t.offset[0]-n)/n,this.moveState.pitchDown=(e.pageY-t.offset[1]-r)/r,this.updateRotationVector()}},this.pointerup=function(e){if(!1!==this.enabled){if(this.dragToLook)this.status--,this.moveState.yawLeft=this.moveState.pitchDown=0;else{switch(e.button){case 0:this.moveState.forward=0;break;case 2:this.moveState.back=0}this.updateMovementVector()}this.updateRotationVector()}},this.contextMenu=function(e){!1!==this.enabled&&e.preventDefault()},this.update=function(e){if(!1===this.enabled)return;let t=e*n.movementSpeed,o=e*n.rollSpeed;n.object.translateX(n.moveVector.x*t),n.object.translateY(n.moveVector.y*t),n.object.translateZ(n.moveVector.z*t),n.tmpQuaternion.set(n.rotationVector.x*o,n.rotationVector.y*o,n.rotationVector.z*o,1).normalize(),n.object.quaternion.multiply(n.tmpQuaternion),(i.distanceToSquared(n.object.position)>1e-6||8*(1-r.dot(n.object.quaternion))>1e-6)&&(n.dispatchEvent(j),r.copy(n.object.quaternion),i.copy(n.object.position))},this.updateMovementVector=function(){let e=this.moveState.forward||this.autoForward&&!this.moveState.back?1:0;this.moveVector.x=-this.moveState.left+this.moveState.right,this.moveVector.y=-this.moveState.down+this.moveState.up,this.moveVector.z=-e+this.moveState.back},this.updateRotationVector=function(){this.rotationVector.x=-this.moveState.pitchDown+this.moveState.pitchUp,this.rotationVector.y=-this.moveState.yawRight+this.moveState.yawLeft,this.rotationVector.z=-this.moveState.rollRight+this.moveState.rollLeft},this.getContainerDimensions=function(){return this.domElement!=document?{size:[this.domElement.offsetWidth,this.domElement.offsetHeight],offset:[this.domElement.offsetLeft,this.domElement.offsetTop]}:{size:[window.innerWidth,window.innerHeight],offset:[0,0]}},this.dispose=function(){this.domElement.removeEventListener("contextmenu",o),this.domElement.removeEventListener("pointerdown",s),this.domElement.removeEventListener("pointermove",a),this.domElement.removeEventListener("pointerup",u),window.removeEventListener("keydown",l),window.removeEventListener("keyup",c)};let o=this.contextMenu.bind(this),a=this.pointermove.bind(this),s=this.pointerdown.bind(this),u=this.pointerup.bind(this),l=this.keydown.bind(this),c=this.keyup.bind(this);this.domElement.addEventListener("contextmenu",o),this.domElement.addEventListener("pointerdown",s),this.domElement.addEventListener("pointermove",a),this.domElement.addEventListener("pointerup",u),window.addEventListener("keydown",l),window.addEventListener("keyup",c),this.updateMovementVector(),this.updateRotationVector()}}let k={name:"CopyShader",uniforms:{tDiffuse:{value:null},opacity:{value:1}},vertexShader:` +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[764],{29502:function(e){"use strict";function t(e,t,c){c=c||2;var f,d,g,y,b,v,x,w=t&&t.length,_=w?t[0]*c:e.length,S=n(e,0,_,c,!0),O=[];if(!S||S.next===S.prev)return O;if(w&&(S=function(e,t,o,u){var l,c,f,d,m,g=[];for(l=0,c=t.length;l=o.next.y&&o.next.y!==o.y){var f=o.x+(l-o.y)*(o.next.x-o.x)/(o.next.y-o.y);if(f<=u&&f>c&&(c=f,i=o.x=o.x&&o.x>=m&&u!==o.x&&a(li.x||o.x===i.x&&(n=i,r=o,0>s(n.prev,n,r.prev)&&0>s(r.next,n,n.next))))&&(i=o,y=p)),o=o.next;while(o!==d);return i}(e,t);if(!n)return t;var i=p(n,e);return r(i,i.next),r(n,n.next)}(g[l],o);return o}(e,t,S,c)),e.length>80*c){f=g=e[0],d=y=e[1];for(var E=c;E<_;E+=c)b=e[E],v=e[E+1],bg&&(g=b),v>y&&(y=v);x=0!==(x=Math.max(g-f,y-d))?32767/x:0}return function e(t,n,i,c,f,d,g){if(t){!g&&d&&function(e,t,n,r){var i=e;do 0===i.z&&(i.z=o(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,function(e){var t,n,r,i,o,a,s,u,l=1;do{for(n=e,e=null,o=null,a=0;n;){for(a++,r=n,s=0,t=0;t0||u>0&&r;)0!==s&&(0===u||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,u--),o?o.nextZ=i:e=i,i.prevZ=o,o=i;n=r}o.nextZ=null,l*=2}while(a>1)}(i)}(t,c,f,d);for(var y,b,v=t;t.prev!==t.next;){if(y=t.prev,b=t.next,d?function(e,t,n,r){var i=e.prev,u=e.next;if(s(i,e,u)>=0)return!1;for(var l=i.x,c=e.x,f=u.x,h=i.y,p=e.y,d=u.y,m=lc?l>f?l:f:c>f?c:f,b=h>p?h>d?h:d:p>d?p:d,v=o(m,g,t,n,r),x=o(y,b,t,n,r),w=e.prevZ,_=e.nextZ;w&&w.z>=v&&_&&_.z<=x;){if(w.x>=m&&w.x<=y&&w.y>=g&&w.y<=b&&w!==i&&w!==u&&a(l,h,c,p,f,d,w.x,w.y)&&s(w.prev,w,w.next)>=0||(w=w.prevZ,_.x>=m&&_.x<=y&&_.y>=g&&_.y<=b&&_!==i&&_!==u&&a(l,h,c,p,f,d,_.x,_.y)&&s(_.prev,_,_.next)>=0))return!1;_=_.nextZ}for(;w&&w.z>=v;){if(w.x>=m&&w.x<=y&&w.y>=g&&w.y<=b&&w!==i&&w!==u&&a(l,h,c,p,f,d,w.x,w.y)&&s(w.prev,w,w.next)>=0)return!1;w=w.prevZ}for(;_&&_.z<=x;){if(_.x>=m&&_.x<=y&&_.y>=g&&_.y<=b&&_!==i&&_!==u&&a(l,h,c,p,f,d,_.x,_.y)&&s(_.prev,_,_.next)>=0)return!1;_=_.nextZ}return!0}(t,c,f,d):function(e){var t=e.prev,n=e.next;if(s(t,e,n)>=0)return!1;for(var r=t.x,i=e.x,o=n.x,u=t.y,l=e.y,c=n.y,f=ri?r>o?r:o:i>o?i:o,d=u>l?u>c?u:c:l>c?l:c,m=n.next;m!==t;){if(m.x>=f&&m.x<=p&&m.y>=h&&m.y<=d&&a(r,u,i,l,o,c,m.x,m.y)&&s(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}(t)){n.push(y.i/i|0),n.push(t.i/i|0),n.push(b.i/i|0),m(t),t=b.next,v=b.next;continue}if((t=b)===v){g?1===g?e(t=function(e,t,n){var i=e;do{var o=i.prev,a=i.next.next;!u(o,a)&&l(o,i,i.next,a)&&h(o,a)&&h(a,o)&&(t.push(o.i/n|0),t.push(i.i/n|0),t.push(a.i/n|0),m(i),m(i.next),i=e=a),i=i.next}while(i!==e);return r(i)}(r(t),n,i),n,i,c,f,d,2):2===g&&function(t,n,i,o,a,c){var f=t;do{for(var d,m,g=f.next.next;g!==f.prev;){if(f.i!==g.i&&(d=f,m=g,d.next.i!==m.i&&d.prev.i!==m.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&l(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(d,m)&&(h(d,m)&&h(m,d)&&function(e,t){var n=e,r=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next;while(n!==e);return r}(d,m)&&(s(d.prev,d,m.prev)||s(d,m.prev,m))||u(d,m)&&s(d.prev,d,d.next)>0&&s(m.prev,m,m.next)>0))){var y=p(f,g);f=r(f,f.next),y=r(y,y.next),e(f,n,i,o,a,c,0),e(y,n,i,o,a,c,0);return}g=g.next}f=f.next}while(f!==t)}(t,n,i,c,f,d):e(r(t),n,i,c,f,d,1);break}}}}(S,O,c,f,d,x,0),O}function n(e,t,n,r,i){var o,a;if(i===y(e,t,n,r)>0)for(o=t;o=t;o-=r)a=d(o,e[o],e[o+1],a);return a&&u(a,a.next)&&(m(a),a=a.next),a}function r(e,t){if(!e)return e;t||(t=e);var n,r=e;do if(n=!1,!r.steiner&&(u(r,r.next)||0===s(r.prev,r,r.next))){if(m(r),(r=t=r.prev)===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function i(e,t){return e.x-t.x}function o(e,t,n,r,i){return(e=((e=((e=((e=((e=(e-n)*i|0)|e<<8)&16711935)|e<<4)&252645135)|e<<2)&858993459)|e<<1)&1431655765)|(t=((t=((t=((t=((t=(t-r)*i|0)|t<<8)&16711935)|t<<4)&252645135)|t<<2)&858993459)|t<<1)&1431655765)<<1}function a(e,t,n,r,i,o,a,s){return(i-a)*(t-s)>=(e-a)*(o-s)&&(e-a)*(r-s)>=(n-a)*(t-s)&&(n-a)*(o-s)>=(i-a)*(r-s)}function s(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function u(e,t){return e.x===t.x&&e.y===t.y}function l(e,t,n,r){var i=f(s(e,t,n)),o=f(s(e,t,r)),a=f(s(n,r,e)),u=f(s(n,r,t));return!!(i!==o&&a!==u||0===i&&c(e,n,t)||0===o&&c(e,r,t)||0===a&&c(n,e,r)||0===u&&c(n,t,r))}function c(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function f(e){return e>0?1:e<0?-1:0}function h(e,t){return 0>s(e.prev,e,e.next)?s(e,t,e.next)>=0&&s(e,e.prev,t)>=0:0>s(e,t,e.prev)||0>s(e,e.next,t)}function p(e,t){var n=new g(e.i,e.x,e.y),r=new g(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function d(e,t,n,r){var i=new g(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function m(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function g(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function y(e,t,n,r){for(var i=0,o=t,a=n-r;o0&&(r+=e[i-1].length,n.holes.push(r))}return n}},50918:function(e){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";var r=n(1),i=function(){function e(e,t,n){void 0===e&&(e=NaN),void 0===t&&(t=NaN),void 0===n&&(n=!1),this._minFPS=t,this._maxFPS=e,this._timeScale=1,this._currentTick=0,this._currentTime=0,this._tickDeltaTime=0,this._isRunning=!1,this._maxInterval=isNaN(this._minFPS)?NaN:1e3/this._minFPS,this._minInterval=isNaN(this._maxFPS)?NaN:1e3/this._maxFPS,this._onResume=new r.default,this._onPause=new r.default,this._onTick=new r.default,this._onTickOncePerFrame=new r.default,n||this.resume()}return e.prototype.updateOnce=function(e){e(this.currentTimeSeconds,this.tickDeltaTimeSeconds,this.currentTick)},e.prototype.resume=function(){this._isRunning||(this._isRunning=!0,this._lastTimeUpdated=this.getTimer(),this._onResume.dispatch(),this.animateOnce())},e.prototype.pause=function(){this._isRunning&&(this._isRunning=!1,this._onPause.dispatch(),window.cancelAnimationFrame(this._animationFrameHandle))},e.prototype.dispose=function(){this.pause(),this._onResume.removeAll(),this._onPause.removeAll(),this._onTick.removeAll()},Object.defineProperty(e.prototype,"currentTick",{get:function(){return this._currentTick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentTimeSeconds",{get:function(){return this._currentTime/1e3},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tickDeltaTimeSeconds",{get:function(){return this._tickDeltaTime/1e3},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timeScale",{get:function(){return this._timeScale},set:function(e){this._timeScale!==e&&(this._timeScale=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onResume",{get:function(){return this._onResume},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onPause",{get:function(){return this._onPause},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTick",{get:function(){return this._onTick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTickOncePerFrame",{get:function(){return this._onTickOncePerFrame},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRunning",{get:function(){return this._isRunning},enumerable:!0,configurable:!0}),e.prototype.animateOnce=function(){var e=this;this._animationFrameHandle=window.requestAnimationFrame(function(){return e.onFrame()})},e.prototype.onFrame=function(){if(this._now=this.getTimer(),this._frameDeltaTime=this._now-this._lastTimeUpdated,isNaN(this._minInterval)||this._frameDeltaTime>=this._minInterval){if(isNaN(this._maxInterval))this.update(this._frameDeltaTime*this._timeScale,!0),this._lastTimeUpdated=this._now;else for(this._interval=Math.min(this._frameDeltaTime,this._maxInterval);this._now>=this._lastTimeUpdated+this._interval;)this.update(this._interval*this._timeScale,this._now<=this._lastTimeUpdated+2*this._maxInterval),this._lastTimeUpdated+=this._interval}this._isRunning&&this.animateOnce()},e.prototype.update=function(e,t){void 0===t&&(t=!0),this._currentTick++,this._currentTime+=e,this._tickDeltaTime=e,this._onTick.dispatch(this.currentTimeSeconds,this.tickDeltaTimeSeconds,this.currentTick),t&&this._onTickOncePerFrame.dispatch(this.currentTimeSeconds,this.tickDeltaTimeSeconds,this.currentTick)},e.prototype.getTimer=function(){return Date.now()},e}();Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},function(e,t,n){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t){"use strict";var n=function(){function e(){this.functions=[]}return e.prototype.add=function(e){return -1===this.functions.indexOf(e)&&(this.functions.push(e),!0)},e.prototype.remove=function(e){var t=this.functions.indexOf(e);return t>-1&&(this.functions.splice(t,1),!0)},e.prototype.removeAll=function(){return this.functions.length>0&&(this.functions.length=0,!0)},e.prototype.dispatch=function(){for(var e=[],t=0;t */e.exports=function(e){return[...e].reduce((e,[t,n])=>(e[t]=n,e),{})}},49310:function(e,t,n){"use strict";n.d(t,{Vx:function(){return f},kX:function(){return c},oY:function(){return i}});var r,i=Object.freeze({Linear:Object.freeze({None:function(e){return e},In:function(e){return this.None(e)},Out:function(e){return this.None(e)},InOut:function(e){return this.None(e)}}),Quadratic:Object.freeze({In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}}),Cubic:Object.freeze({In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}}),Quartic:Object.freeze({In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}}),Quintic:Object.freeze({In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}}),Sinusoidal:Object.freeze({In:function(e){return 1-Math.sin((1-e)*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return .5*(1-Math.sin(Math.PI*(.5-e)))}}),Exponential:Object.freeze({In:function(e){return 0===e?0:Math.pow(1024,e-1)},Out:function(e){return 1===e?1:1-Math.pow(2,-10*e)},InOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)}}),Circular:Object.freeze({In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}}),Elastic:Object.freeze({In:function(e){return 0===e?0:1===e?1:-Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI)},Out:function(e){return 0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((e-.1)*5*Math.PI)+1},InOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?-.5*Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin((e-1.1)*5*Math.PI)+1}}),Back:Object.freeze({In:function(e){return 1===e?1:e*e*(2.70158*e-1.70158)},Out:function(e){return 0===e?0:--e*e*(2.70158*e+1.70158)+1},InOut:function(e){return(e*=2)<1?.5*(e*e*(3.5949095*e-2.5949095)):.5*((e-=2)*e*(3.5949095*e+2.5949095)+2)}}),Bounce:Object.freeze({In:function(e){return 1-i.Bounce.Out(1-e)},Out:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},InOut:function(e){return e<.5?.5*i.Bounce.In(2*e):.5*i.Bounce.Out(2*e-1)+.5}}),generatePow:function(e){return void 0===e&&(e=4),e=(e=e1e4?1e4:e,{In:function(t){return Math.pow(t,e)},Out:function(t){return 1-Math.pow(1-t,e)},InOut:function(t){return t<.5?Math.pow(2*t,e)/2:(1-Math.pow(2-2*t,e))/2+.5}}}}),o=function(){return performance.now()},a=function(){function e(){this._tweens={},this._tweensAddedDuringUpdate={}}return e.prototype.getAll=function(){var e=this;return Object.keys(this._tweens).map(function(t){return e._tweens[t]})},e.prototype.removeAll=function(){this._tweens={}},e.prototype.add=function(e){this._tweens[e.getId()]=e,this._tweensAddedDuringUpdate[e.getId()]=e},e.prototype.remove=function(e){delete this._tweens[e.getId()],delete this._tweensAddedDuringUpdate[e.getId()]},e.prototype.update=function(e,t){void 0===e&&(e=o()),void 0===t&&(t=!1);var n=Object.keys(this._tweens);if(0===n.length)return!1;for(;n.length>0;){this._tweensAddedDuringUpdate={};for(var r=0;r1?o(e[n],e[n-1],n-r):o(e[i],e[i+1>n?n:i+1],r-i)},Bezier:function(e,t){for(var n=0,r=e.length-1,i=Math.pow,o=s.Utils.Bernstein,a=0;a<=r;a++)n+=i(1-t,r-a)*i(t,a)*e[a]*o(r,a);return n},CatmullRom:function(e,t){var n=e.length-1,r=n*t,i=Math.floor(r),o=s.Utils.CatmullRom;return e[0]===e[n]?(t<0&&(i=Math.floor(r=n*(1+t))),o(e[(i-1+n)%n],e[i],e[(i+1)%n],e[(i+2)%n],r-i)):t<0?e[0]-(o(e[0],e[0],e[1],e[1],-r)-e[0]):t>1?e[n]-(o(e[n],e[n],e[n-1],e[n-1],r-n)-e[n]):o(e[i?i-1:0],e[i],e[n1;n--)t*=n;return r[e]=t,t}),CatmullRom:function(e,t,n,r,i){var o=(n-e)*.5,a=(r-t)*.5,s=i*i;return(2*t-2*n+o+a)*(i*s)+(-3*t+3*n-2*o-a)*s+o*i+t}}},u=function(){function e(){}return e.nextId=function(){return e._nextId++},e._nextId=0,e}(),l=new a,c=function(){function e(e,t){void 0===t&&(t=l),this._object=e,this._group=t,this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._isDynamic=!1,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=i.Linear.None,this._interpolationFunction=s.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._id=u.nextId(),this._isChainStopped=!1,this._propertiesAreSetUp=!1,this._goToEnd=!1}return e.prototype.getId=function(){return this._id},e.prototype.isPlaying=function(){return this._isPlaying},e.prototype.isPaused=function(){return this._isPaused},e.prototype.to=function(e,t){if(void 0===t&&(t=1e3),this._isPlaying)throw Error("Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.");return this._valuesEnd=e,this._propertiesAreSetUp=!1,this._duration=t,this},e.prototype.duration=function(e){return void 0===e&&(e=1e3),this._duration=e,this},e.prototype.dynamic=function(e){return void 0===e&&(e=!1),this._isDynamic=e,this},e.prototype.start=function(e,t){if(void 0===e&&(e=o()),void 0===t&&(t=!1),this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed)for(var n in this._reversed=!1,this._valuesStartRepeat)this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n];if(this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=e,this._startTime+=this._delayTime,!this._propertiesAreSetUp||t){if(this._propertiesAreSetUp=!0,!this._isDynamic){var r={};for(var i in this._valuesEnd)r[i]=this._valuesEnd[i];this._valuesEnd=r}this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat,t)}return this},e.prototype.startFromCurrentValues=function(e){return this.start(e,!0)},e.prototype._setupProperties=function(e,t,n,r,i){for(var o in n){var a=e[o],s=Array.isArray(a),u=s?"array":typeof a,l=!s&&Array.isArray(n[o]);if("undefined"!==u&&"function"!==u){if(l){var c=n[o];if(0===c.length)continue;for(var f=[a],h=0,p=c.length;hi)return!1;t&&this.start(e,!0)}if(this._goToEnd=!1,e1?1:r;var a=this._easingFunction(r);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,a),this._onUpdateCallback&&this._onUpdateCallback(this._object,r),1===r){if(this._repeat>0){for(n in isFinite(this._repeat)&&this._repeat--,this._valuesStartRepeat)this._yoyo||"string"!=typeof this._valuesEnd[n]||(this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(this._valuesEnd[n])),this._yoyo&&this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n];this._yoyo&&(this._reversed=!this._reversed),void 0!==this._repeatDelayTime?this._startTime=e+this._repeatDelayTime:this._startTime=e+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var s=0,u=this._chainedTweens.length;s0){for(o=e[--t];t>0&&(o=(n=o)+(r=e[--t]),!(i=r-(o-n))););t>0&&(i<0&&e[t-1]<0||i>0&&e[t-1]>0)&&(n=o+(r=2*i),r==n-o&&(o=n))}return o}}},23320:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r,i,o,a,s=n(15852),u=n(33909),l=n(60858),c=n(2708),f={sphere:l.Z,point:l.Z,lineStart:function(){f.point=p,f.lineEnd=h},lineEnd:l.Z,polygonStart:l.Z,polygonEnd:l.Z};function h(){f.point=f.lineEnd=l.Z}function p(e,t){e*=u.uR,t*=u.uR,i=e,o=(0,u.O$)(t),a=(0,u.mC)(t),f.point=d}function d(e,t){e*=u.uR,t*=u.uR;var n=(0,u.O$)(t),s=(0,u.mC)(t),l=(0,u.Wn)(e-i),c=(0,u.mC)(l),f=s*(0,u.O$)(l),h=a*n-o*s*c,p=o*n+a*s*c;r.add((0,u.fv)((0,u._b)(f*f+h*h),p)),i=e,o=n,a=s}var m=[null,null],g={type:"LineString",coordinates:m};function y(e,t){return m[0]=e,m[1]=t,r=new s.dU,(0,c.Z)(g,f),+r}},69386:function(e,t,n){"use strict";function r(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=Array(i);++ri.Ho}).map(h)).concat(r((0,i.mD)(l/y)*y,u,y).filter(function(e){return(0,i.Wn)(e%v)>i.Ho}).map(p))}return w.lines=function(){return _().map(function(e){return{type:"LineString",coordinates:e}})},w.outline=function(){return{type:"Polygon",coordinates:[d(s).concat(m(c).slice(1),d(n).reverse().slice(1),m(f).reverse().slice(1))]}},w.extent=function(e){return arguments.length?w.extentMajor(e).extentMinor(e):w.extentMinor()},w.extentMajor=function(e){return arguments.length?(s=+e[0][0],n=+e[1][0],f=+e[0][1],c=+e[1][1],s>n&&(e=s,s=n,n=e),f>c&&(e=f,f=c,c=e),w.precision(x)):[[s,f],[n,c]]},w.extentMinor=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],l=+n[0][1],u=+n[1][1],t>e&&(n=t,t=e,e=n),l>u&&(n=l,l=u,u=n),w.precision(x)):[[t,l],[e,u]]},w.step=function(e){return arguments.length?w.stepMajor(e).stepMinor(e):w.stepMinor()},w.stepMajor=function(e){return arguments.length?(b=+e[0],v=+e[1],w):[b,v]},w.stepMinor=function(e){return arguments.length?(g=+e[0],y=+e[1],w):[g,y]},w.precision=function(r){return arguments.length?(x=+r,h=o(l,u,90),p=a(t,e,x),d=o(f,c,90),m=a(s,n,x),w):x},w.extentMajor([[-180,-90+i.Ho],[180,90-i.Ho]]).extentMinor([[-180,-80-i.Ho],[180,80+i.Ho]])})()()}},46373:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(33909);function i(e,t){var n=e[0]*r.uR,i=e[1]*r.uR,o=t[0]*r.uR,a=t[1]*r.uR,s=(0,r.mC)(i),u=(0,r.O$)(i),l=(0,r.mC)(a),c=(0,r.O$)(a),f=s*(0,r.mC)(n),h=s*(0,r.O$)(n),p=l*(0,r.mC)(o),d=l*(0,r.O$)(o),m=2*(0,r.ZR)((0,r._b)((0,r.Jy)(a-i)+s*l*(0,r.Jy)(o-n))),g=(0,r.O$)(m),y=m?function(e){var t=(0,r.O$)(e*=m)/g,n=(0,r.O$)(m-e)/g,i=n*f+t*p,o=n*h+t*d;return[(0,r.fv)(o,i)*r.RW,(0,r.fv)(n*u+t*c,(0,r._b)(i*i+o*o))*r.RW]}:function(){return[n*r.RW,i*r.RW]};return y.distance=m,y}},33909:function(e,t,n){"use strict";n.d(t,{BZ:function(){return u},Ho:function(){return r},Jy:function(){return _},Kh:function(){return x},O$:function(){return y},RW:function(){return l},Wn:function(){return f},Xx:function(){return b},ZR:function(){return w},_b:function(){return v},_m:function(){return g},aW:function(){return i},fv:function(){return p},mC:function(){return d},mD:function(){return m},ou:function(){return a},pi:function(){return o},pu:function(){return s},uR:function(){return c},z4:function(){return h}});var r=1e-6,i=1e-12,o=Math.PI,a=o/2,s=o/4,u=2*o,l=180/o,c=o/180,f=Math.abs,h=Math.atan,p=Math.atan2,d=Math.cos,m=Math.ceil,g=Math.hypot,y=Math.sin,b=Math.sign||function(e){return e>0?1:e<0?-1:0},v=Math.sqrt;function x(e){return e>1?0:e<-1?o:Math.acos(e)}function w(e){return e>1?a:e<-1?-a:Math.asin(e)}function _(e){return(e=y(e/2))*e}},60858:function(e,t,n){"use strict";function r(){}n.d(t,{Z:function(){return r}})},2708:function(e,t,n){"use strict";function r(e,t){e&&o.hasOwnProperty(e.type)&&o[e.type](e,t)}n.d(t,{Z:function(){return u}});var i={Feature:function(e,t){r(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,i=-1,o=n.length;++ie.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(l,c))).objBindAttr)?"__obj":p,g=void 0===(m=h.dataBindAttr)?"__data":m,y=h.idAccessor,b=h.purge,v=function(e){return e.hasOwnProperty(g)},x=t.filter(function(e){return!v(e)}),w=t.filter(v).map(function(e){return e[g]}),(_=void 0!==b&&b?{enter:e,exit:w,update:[]}:function(e,t,n){var i={enter:[],update:[],exit:[]};if(n){var o=(0,r.Z)(e,n,!1),u=(0,r.Z)(t,n,!1);Object.entries(Object.assign({},o,u)).forEach(function(e){var t=a(e,2),n=t[0],r=t[1],s=o.hasOwnProperty(n)?u.hasOwnProperty(n)?"update":"exit":"enter";i[s].push("update"===s?[o[n],u[n]]:r)})}else{var l=new Set(e),c=new Set(t);new Set([].concat(s(l),s(c))).forEach(function(e){var t=l.has(e)?c.has(e)?"update":"exit":"enter";i[t].push("update"===t?[e,e]:e)})}return i}(w,e,y)).update=_.update.map(function(e){var t=a(e,2),n=t[0],r=t[1];return n!==r&&(r[d]=n[d],r[d][g]=r),r}),_.exit=_.exit.concat(x.map(function(e){return o({},d,e)})),_),L=R.enter,I=R.update;R.exit.forEach(function(e){var t=e[j];delete e[j],P(t),u(t)});var D=(f=[],L.forEach(function(e){var t=O(e);t&&(t[k]=e,e[j]=t,f.push(t))}),f);(function(e){e.forEach(function(e){var t=e[j];t&&(t[k]=e,A(t,e))})})([].concat(s(L),s(I))),D.forEach(n)}},60846:function(e,t,n){"use strict";function r(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=(t instanceof Array?t.length?t:[void 0]:[t]).map(function(e){return{keyAccessor:e,isProp:!(e instanceof Function)}}),u=e.reduce(function(e,t){var r=e,i=t;return s.forEach(function(e,t){var a,u=e.keyAccessor;if(e.isProp){var l=i,c=l[u],f=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(l,[u].map(o));a=c,i=f}else a=u(i,t);t+11&&void 0!==arguments[1]?arguments[1]:1;r===s.length?Object.keys(t).forEach(function(e){return t[e]=n(t[e])}):Object.values(t).forEach(function(t){return e(t,r+1)})}(u);var l=u;return a&&(l=[],function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];n.length===s.length?l.push({keys:n,vals:t}):Object.entries(t).forEach(function(t){var o=function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,2)||r(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=o[0];return e(o[1],[].concat(function(e){if(Array.isArray(e))return i(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||r(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[a]))})}(u),t instanceof Array&&0===t.length&&1===l.length&&(l[0].keys=[])),l}},37299:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r,i,o,a=n(1456);function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},n instanceof Function?n(e):n,{initialised:!1}),r={};function i(t){return o(t,e),l(),i}var o=function(e,n){p.call(i,e,t,n),t.initialised=!0},l=(0,a.Z)(function(){t.initialised&&(m.call(i,t,r),r={})},1);return g.forEach(function(e){var n,o,a,s,u,c,f;i[e.name]=(n=e.name,a=void 0!==(o=e.triggerUpdate)&&o,u=void 0===(s=e.onChange)?function(e,t){}:s,f=void 0===(c=e.defaultVal)?null:c,function(e){var o=t[n];if(!arguments.length)return o;var s=void 0===e?f:e;return t[n]=s,u.call(i,s,t,o),r.hasOwnProperty(n)||(r[n]=o),a&&l(),i})}),Object.keys(s).forEach(function(e){i[e]=function(){for(var n,r=arguments.length,o=Array(r),a=0;ae.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:i.useEffect,n=(0,i.useRef)(),r=(0,i.useRef)(!1),o=(0,i.useRef)(!1),a=f((0,i.useState)(0),2);a[0];var s=a[1];r.current&&(o.current=!0),t(function(){return r.current||(n.current=e(),r.current=!0),s(function(e){return e+1}),function(){o.current&&n.current&&n.current()}},[])}var g=n(96995),y=n(81219),b=n(65950);let v={type:"change"},x={type:"start"},w={type:"end"};class _ extends g.pBf{constructor(e,t){super();let n=this,r={NONE:-1,ROTATE:0,ZOOM:1,PAN:2,TOUCH_ROTATE:3,TOUCH_ZOOM_PAN:4};this.object=e,this.domElement=t,this.domElement.style.touchAction="none",this.enabled=!0,this.screen={left:0,top:0,width:0,height:0},this.rotateSpeed=1,this.zoomSpeed=1.2,this.panSpeed=.3,this.noRotate=!1,this.noZoom=!1,this.noPan=!1,this.staticMoving=!1,this.dynamicDampingFactor=.2,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.keys=["KeyA","KeyS","KeyD"],this.mouseButtons={LEFT:g.RsA.ROTATE,MIDDLE:g.RsA.DOLLY,RIGHT:g.RsA.PAN},this.target=new g.Pa4;let i=new g.Pa4,o=1,a=r.NONE,s=r.NONE,u=0,l=0,c=0,f=new g.Pa4,h=new g.FM8,p=new g.FM8,d=new g.Pa4,m=new g.FM8,y=new g.FM8,b=new g.FM8,_=new g.FM8,S=[],O={};this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.up0=this.object.up.clone(),this.zoom0=this.object.zoom,this.handleResize=function(){let e=n.domElement.getBoundingClientRect(),t=n.domElement.ownerDocument.documentElement;n.screen.left=e.left+window.pageXOffset-t.clientLeft,n.screen.top=e.top+window.pageYOffset-t.clientTop,n.screen.width=e.width,n.screen.height=e.height};let E=function(){let e=new g.FM8;return function(t,r){return e.set((t-n.screen.left)/n.screen.width,(r-n.screen.top)/n.screen.height),e}}(),A=function(){let e=new g.FM8;return function(t,r){return e.set((t-.5*n.screen.width-n.screen.left)/(.5*n.screen.width),(n.screen.height+2*(n.screen.top-r))/n.screen.width),e}}();function T(e){!1!==n.enabled&&(0===S.length&&(n.domElement.setPointerCapture(e.pointerId),n.domElement.addEventListener("pointermove",P),n.domElement.addEventListener("pointerup",M)),S.push(e),"touch"===e.pointerType?function(e){if(D(e),1===S.length)a=r.TOUCH_ROTATE,p.copy(A(S[0].pageX,S[0].pageY)),h.copy(p);else{a=r.TOUCH_ZOOM_PAN;let e=S[0].pageX-S[1].pageX,t=S[0].pageY-S[1].pageY;l=u=Math.sqrt(e*e+t*t);let n=(S[0].pageX+S[1].pageX)/2,i=(S[0].pageY+S[1].pageY)/2;b.copy(E(n,i)),_.copy(b)}n.dispatchEvent(x)}(e):function(e){if(a===r.NONE)switch(e.button){case n.mouseButtons.LEFT:a=r.ROTATE;break;case n.mouseButtons.MIDDLE:a=r.ZOOM;break;case n.mouseButtons.RIGHT:a=r.PAN}let t=s!==r.NONE?s:a;t!==r.ROTATE||n.noRotate?t!==r.ZOOM||n.noZoom?t!==r.PAN||n.noPan||(b.copy(E(e.pageX,e.pageY)),_.copy(b)):(m.copy(E(e.pageX,e.pageY)),y.copy(m)):(p.copy(A(e.pageX,e.pageY)),h.copy(p)),n.dispatchEvent(x)}(e))}function P(e){!1!==n.enabled&&("touch"===e.pointerType?function(e){if(D(e),1===S.length)h.copy(p),p.copy(A(e.pageX,e.pageY));else{let t=function(e){let t=e.pointerId===S[0].pointerId?S[1]:S[0];return O[t.pointerId]}(e),n=e.pageX-t.x,r=e.pageY-t.y;l=Math.sqrt(n*n+r*r);let i=(e.pageX+t.x)/2,o=(e.pageY+t.y)/2;_.copy(E(i,o))}}(e):function(e){let t=s!==r.NONE?s:a;t!==r.ROTATE||n.noRotate?t!==r.ZOOM||n.noZoom?t!==r.PAN||n.noPan||_.copy(E(e.pageX,e.pageY)):y.copy(E(e.pageX,e.pageY)):(h.copy(p),p.copy(A(e.pageX,e.pageY)))}(e))}function M(e){!1!==n.enabled&&("touch"===e.pointerType?function(e){switch(S.length){case 0:a=r.NONE;break;case 1:a=r.TOUCH_ROTATE,p.copy(A(e.pageX,e.pageY)),h.copy(p);break;case 2:a=r.TOUCH_ZOOM_PAN;for(let t=0;t0&&(n.object.isPerspectiveCamera?f.multiplyScalar(e):n.object.isOrthographicCamera?(n.object.zoom=g.M8C.clamp(n.object.zoom/e,n.minZoom,n.maxZoom),o!==n.object.zoom&&n.object.updateProjectionMatrix()):console.warn("THREE.TrackballControls: Unsupported camera type")),n.staticMoving?m.copy(y):m.y+=(y.y-m.y)*this.dynamicDampingFactor)},this.panCamera=function(){let e=new g.FM8,t=new g.Pa4,r=new g.Pa4;return function(){if(e.copy(_).sub(b),e.lengthSq()){if(n.object.isOrthographicCamera){let t=(n.object.right-n.object.left)/n.object.zoom/n.domElement.clientWidth,r=(n.object.top-n.object.bottom)/n.object.zoom/n.domElement.clientWidth;e.x*=t,e.y*=r}e.multiplyScalar(f.length()*n.panSpeed),r.copy(f).cross(n.object.up).setLength(e.x),r.add(t.copy(n.object.up).setLength(e.y)),n.object.position.add(r),n.target.add(r),n.staticMoving?b.copy(_):b.add(e.subVectors(_,b).multiplyScalar(n.dynamicDampingFactor))}}}(),this.checkDistances=function(){n.noZoom&&n.noPan||(f.lengthSq()>n.maxDistance*n.maxDistance&&(n.object.position.addVectors(n.target,f.setLength(n.maxDistance)),m.copy(y)),f.lengthSq()1e-6&&(n.dispatchEvent(v),i.copy(n.object.position))):n.object.isOrthographicCamera?(n.object.lookAt(n.target),(i.distanceToSquared(n.object.position)>1e-6||o!==n.object.zoom)&&(n.dispatchEvent(v),i.copy(n.object.position),o=n.object.zoom)):console.warn("THREE.TrackballControls: Unsupported camera type")},this.reset=function(){a=r.NONE,s=r.NONE,n.target.copy(n.target0),n.object.position.copy(n.position0),n.object.up.copy(n.up0),n.object.zoom=n.zoom0,n.object.updateProjectionMatrix(),f.subVectors(n.object.position,n.target),n.object.lookAt(n.target),n.dispatchEvent(v),i.copy(n.object.position),o=n.object.zoom},this.dispose=function(){n.domElement.removeEventListener("contextmenu",L),n.domElement.removeEventListener("pointerdown",T),n.domElement.removeEventListener("pointercancel",j),n.domElement.removeEventListener("wheel",R),n.domElement.removeEventListener("pointermove",P),n.domElement.removeEventListener("pointerup",M),window.removeEventListener("keydown",C),window.removeEventListener("keyup",k)},this.domElement.addEventListener("contextmenu",L),this.domElement.addEventListener("pointerdown",T),this.domElement.addEventListener("pointercancel",j),this.domElement.addEventListener("wheel",R,{passive:!1}),window.addEventListener("keydown",C),window.addEventListener("keyup",k),this.handleResize(),this.update()}}let S={type:"change"},O={type:"start"},E={type:"end"},A=new g.zHn,T=new g.JOQ,P=Math.cos(70*g.M8C.DEG2RAD);class M extends g.pBf{constructor(e,t){super(),this.object=e,this.domElement=t,this.domElement.style.touchAction="none",this.enabled=!0,this.target=new g.Pa4,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.zoomToCursor=!1,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:g.RsA.ROTATE,MIDDLE:g.RsA.DOLLY,RIGHT:g.RsA.PAN},this.touches={ONE:g.QmN.ROTATE,TWO:g.QmN.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this.getPolarAngle=function(){return a.phi},this.getAzimuthalAngle=function(){return a.theta},this.getDistance=function(){return this.object.position.distanceTo(this.target)},this.listenToKeyEvents=function(e){e.addEventListener("keydown",J),this._domElementKeyEvents=e},this.stopListenToKeyEvents=function(){this._domElementKeyEvents.removeEventListener("keydown",J),this._domElementKeyEvents=null},this.saveState=function(){n.target0.copy(n.target),n.position0.copy(n.object.position),n.zoom0=n.object.zoom},this.reset=function(){n.target.copy(n.target0),n.object.position.copy(n.position0),n.object.zoom=n.zoom0,n.object.updateProjectionMatrix(),n.dispatchEvent(S),n.update(),i=r.NONE},this.update=function(){let t=new g.Pa4,c=new g._fP().setFromUnitVectors(e.up,new g.Pa4(0,1,0)),f=c.clone().invert(),h=new g.Pa4,p=new g._fP,d=new g.Pa4,m=2*Math.PI;return function(){let y=n.object.position;t.copy(y).sub(n.target),t.applyQuaternion(c),a.setFromVector3(t),n.autoRotate&&i===r.NONE&&k(2*Math.PI/60/60*n.autoRotateSpeed),n.enableDamping?(a.theta+=s.theta*n.dampingFactor,a.phi+=s.phi*n.dampingFactor):(a.theta+=s.theta,a.phi+=s.phi);let b=n.minAzimuthAngle,v=n.maxAzimuthAngle;isFinite(b)&&isFinite(v)&&(b<-Math.PI?b+=m:b>Math.PI&&(b-=m),v<-Math.PI?v+=m:v>Math.PI&&(v-=m),b<=v?a.theta=Math.max(b,Math.min(v,a.theta)):a.theta=a.theta>(b+v)/2?Math.max(b,a.theta):Math.min(v,a.theta)),a.phi=Math.max(n.minPolarAngle,Math.min(n.maxPolarAngle,a.phi)),a.makeSafe(),!0===n.enableDamping?n.target.addScaledVector(l,n.dampingFactor):n.target.add(l),n.zoomToCursor&&_||n.object.isOrthographicCamera?a.radius=N(a.radius):a.radius=N(a.radius*u),t.setFromSpherical(a),t.applyQuaternion(f),y.copy(n.target).add(t),n.object.lookAt(n.target),!0===n.enableDamping?(s.theta*=1-n.dampingFactor,s.phi*=1-n.dampingFactor,l.multiplyScalar(1-n.dampingFactor)):(s.set(0,0,0),l.set(0,0,0));let O=!1;if(n.zoomToCursor&&_){let r=null;if(n.object.isPerspectiveCamera){let e=t.length();r=N(e*u);let i=e-r;n.object.position.addScaledVector(x,i),n.object.updateMatrixWorld()}else if(n.object.isOrthographicCamera){let e=new g.Pa4(w.x,w.y,0);e.unproject(n.object),n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom/u)),n.object.updateProjectionMatrix(),O=!0;let i=new g.Pa4(w.x,w.y,0);i.unproject(n.object),n.object.position.sub(i).add(e),n.object.updateMatrixWorld(),r=t.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),n.zoomToCursor=!1;null!==r&&(this.screenSpacePanning?n.target.set(0,0,-1).transformDirection(n.object.matrix).multiplyScalar(r).add(n.object.position):(A.origin.copy(n.object.position),A.direction.set(0,0,-1).transformDirection(n.object.matrix),Math.abs(n.object.up.dot(A.direction))o||8*(1-p.dot(n.object.quaternion))>o||d.distanceToSquared(n.target)>0)&&(n.dispatchEvent(S),h.copy(n.object.position),p.copy(n.object.quaternion),d.copy(n.target),O=!1,!0)}}(),this.dispose=function(){n.domElement.removeEventListener("contextmenu",ee),n.domElement.removeEventListener("pointerdown",X),n.domElement.removeEventListener("pointercancel",K),n.domElement.removeEventListener("wheel",Q),n.domElement.removeEventListener("pointermove",q),n.domElement.removeEventListener("pointerup",K),null!==n._domElementKeyEvents&&(n._domElementKeyEvents.removeEventListener("keydown",J),n._domElementKeyEvents=null)};let n=this,r={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6},i=r.NONE,o=1e-6,a=new g.$V,s=new g.$V,u=1,l=new g.Pa4,c=new g.FM8,f=new g.FM8,h=new g.FM8,p=new g.FM8,d=new g.FM8,m=new g.FM8,y=new g.FM8,b=new g.FM8,v=new g.FM8,x=new g.Pa4,w=new g.FM8,_=!1,M=[],j={};function C(){return Math.pow(.95,n.zoomSpeed)}function k(e){s.theta-=e}function R(e){s.phi-=e}let L=function(){let e=new g.Pa4;return function(t,n){e.setFromMatrixColumn(n,0),e.multiplyScalar(-t),l.add(e)}}(),I=function(){let e=new g.Pa4;return function(t,r){!0===n.screenSpacePanning?e.setFromMatrixColumn(r,1):(e.setFromMatrixColumn(r,0),e.crossVectors(n.object.up,e)),e.multiplyScalar(t),l.add(e)}}(),D=function(){let e=new g.Pa4;return function(t,r){let i=n.domElement;if(n.object.isPerspectiveCamera){let o=n.object.position;e.copy(o).sub(n.target);let a=e.length();L(2*t*(a*=Math.tan(n.object.fov/2*Math.PI/180))/i.clientHeight,n.object.matrix),I(2*r*a/i.clientHeight,n.object.matrix)}else n.object.isOrthographicCamera?(L(t*(n.object.right-n.object.left)/n.object.zoom/i.clientWidth,n.object.matrix),I(r*(n.object.top-n.object.bottom)/n.object.zoom/i.clientHeight,n.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),n.enablePan=!1)}}();function z(e){n.object.isPerspectiveCamera||n.object.isOrthographicCamera?u/=e:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function U(e){n.object.isPerspectiveCamera||n.object.isOrthographicCamera?u*=e:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function B(t){if(!n.zoomToCursor)return;_=!0;let r=n.domElement.getBoundingClientRect(),i=t.clientX-r.left,o=t.clientY-r.top,a=r.width,s=r.height;w.x=i/a*2-1,w.y=-(2*(o/s))+1,x.set(w.x,w.y,1).unproject(e).sub(e.position).normalize()}function N(e){return Math.max(n.minDistance,Math.min(n.maxDistance,e))}function H(e){c.set(e.clientX,e.clientY)}function F(e){p.set(e.clientX,e.clientY)}function Z(){if(1===M.length)c.set(M[0].pageX,M[0].pageY);else{let e=.5*(M[0].pageX+M[1].pageX),t=.5*(M[0].pageY+M[1].pageY);c.set(e,t)}}function G(){if(1===M.length)p.set(M[0].pageX,M[0].pageY);else{let e=.5*(M[0].pageX+M[1].pageX),t=.5*(M[0].pageY+M[1].pageY);p.set(e,t)}}function V(){let e=M[0].pageX-M[1].pageX,t=M[0].pageY-M[1].pageY,n=Math.sqrt(e*e+t*t);y.set(0,n)}function W(e){if(1==M.length)f.set(e.pageX,e.pageY);else{let t=en(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);f.set(n,r)}h.subVectors(f,c).multiplyScalar(n.rotateSpeed);let t=n.domElement;k(2*Math.PI*h.x/t.clientHeight),R(2*Math.PI*h.y/t.clientHeight),c.copy(f)}function $(e){if(1===M.length)d.set(e.pageX,e.pageY);else{let t=en(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);d.set(n,r)}m.subVectors(d,p).multiplyScalar(n.panSpeed),D(m.x,m.y),p.copy(d)}function Y(e){let t=en(e),r=e.pageX-t.x,i=e.pageY-t.y,o=Math.sqrt(r*r+i*i);b.set(0,o),v.set(0,Math.pow(b.y/y.y,n.zoomSpeed)),z(v.y),y.copy(b)}function X(e){!1!==n.enabled&&(0===M.length&&(n.domElement.setPointerCapture(e.pointerId),n.domElement.addEventListener("pointermove",q),n.domElement.addEventListener("pointerup",K)),M.push(e),"touch"===e.pointerType?function(e){switch(et(e),M.length){case 1:switch(n.touches.ONE){case g.QmN.ROTATE:if(!1===n.enableRotate)return;Z(),i=r.TOUCH_ROTATE;break;case g.QmN.PAN:if(!1===n.enablePan)return;G(),i=r.TOUCH_PAN;break;default:i=r.NONE}break;case 2:switch(n.touches.TWO){case g.QmN.DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;n.enableZoom&&V(),n.enablePan&&G(),i=r.TOUCH_DOLLY_PAN;break;case g.QmN.DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;n.enableZoom&&V(),n.enableRotate&&Z(),i=r.TOUCH_DOLLY_ROTATE;break;default:i=r.NONE}break;default:i=r.NONE}i!==r.NONE&&n.dispatchEvent(O)}(e):function(e){let t;switch(e.button){case 0:t=n.mouseButtons.LEFT;break;case 1:t=n.mouseButtons.MIDDLE;break;case 2:t=n.mouseButtons.RIGHT;break;default:t=-1}switch(t){case g.RsA.DOLLY:if(!1===n.enableZoom)return;B(e),y.set(e.clientX,e.clientY),i=r.DOLLY;break;case g.RsA.ROTATE:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===n.enablePan)return;F(e),i=r.PAN}else{if(!1===n.enableRotate)return;H(e),i=r.ROTATE}break;case g.RsA.PAN:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===n.enableRotate)return;H(e),i=r.ROTATE}else{if(!1===n.enablePan)return;F(e),i=r.PAN}break;default:i=r.NONE}i!==r.NONE&&n.dispatchEvent(O)}(e))}function q(e){!1!==n.enabled&&("touch"===e.pointerType?function(e){switch(et(e),i){case r.TOUCH_ROTATE:if(!1===n.enableRotate)return;W(e),n.update();break;case r.TOUCH_PAN:if(!1===n.enablePan)return;$(e),n.update();break;case r.TOUCH_DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;n.enableZoom&&Y(e),n.enablePan&&$(e),n.update();break;case r.TOUCH_DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;n.enableZoom&&Y(e),n.enableRotate&&W(e),n.update();break;default:i=r.NONE}}(e):function(e){switch(i){case r.ROTATE:if(!1===n.enableRotate)return;!function(e){f.set(e.clientX,e.clientY),h.subVectors(f,c).multiplyScalar(n.rotateSpeed);let t=n.domElement;k(2*Math.PI*h.x/t.clientHeight),R(2*Math.PI*h.y/t.clientHeight),c.copy(f),n.update()}(e);break;case r.DOLLY:if(!1===n.enableZoom)return;b.set(e.clientX,e.clientY),v.subVectors(b,y),v.y>0?z(C()):v.y<0&&U(C()),y.copy(b),n.update();break;case r.PAN:if(!1===n.enablePan)return;d.set(e.clientX,e.clientY),m.subVectors(d,p).multiplyScalar(n.panSpeed),D(m.x,m.y),p.copy(d),n.update()}}(e))}function K(e){(function(e){delete j[e.pointerId];for(let t=0;t0&&z(C()),n.update(),n.dispatchEvent(E))}function J(e){!1!==n.enabled&&!1!==n.enablePan&&function(e){let t=!1;switch(e.code){case n.keys.UP:e.ctrlKey||e.metaKey||e.shiftKey?R(2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):D(0,n.keyPanSpeed),t=!0;break;case n.keys.BOTTOM:e.ctrlKey||e.metaKey||e.shiftKey?R(-2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):D(0,-n.keyPanSpeed),t=!0;break;case n.keys.LEFT:e.ctrlKey||e.metaKey||e.shiftKey?k(2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):D(n.keyPanSpeed,0),t=!0;break;case n.keys.RIGHT:e.ctrlKey||e.metaKey||e.shiftKey?k(-2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):D(-n.keyPanSpeed,0),t=!0}t&&(e.preventDefault(),n.update())}(e)}function ee(e){!1!==n.enabled&&e.preventDefault()}function et(e){let t=j[e.pointerId];void 0===t&&(t=new g.FM8,j[e.pointerId]=t),t.set(e.pageX,e.pageY)}function en(e){let t=e.pointerId===M[0].pointerId?M[1]:M[0];return j[t.pointerId]}n.domElement.addEventListener("contextmenu",ee),n.domElement.addEventListener("pointerdown",X),n.domElement.addEventListener("pointercancel",K),n.domElement.addEventListener("wheel",Q,{passive:!1}),this.update()}}let j={type:"change"};class C extends g.pBf{constructor(e,t){super(),this.object=e,this.domElement=t,this.enabled=!0,this.movementSpeed=1,this.rollSpeed=.005,this.dragToLook=!1,this.autoForward=!1;let n=this,r=new g._fP,i=new g.Pa4;this.tmpQuaternion=new g._fP,this.status=0,this.moveState={up:0,down:0,left:0,right:0,forward:0,back:0,pitchUp:0,pitchDown:0,yawLeft:0,yawRight:0,rollLeft:0,rollRight:0},this.moveVector=new g.Pa4(0,0,0),this.rotationVector=new g.Pa4(0,0,0),this.keydown=function(e){if(!e.altKey&&!1!==this.enabled){switch(e.code){case"ShiftLeft":case"ShiftRight":this.movementSpeedMultiplier=.1;break;case"KeyW":this.moveState.forward=1;break;case"KeyS":this.moveState.back=1;break;case"KeyA":this.moveState.left=1;break;case"KeyD":this.moveState.right=1;break;case"KeyR":this.moveState.up=1;break;case"KeyF":this.moveState.down=1;break;case"ArrowUp":this.moveState.pitchUp=1;break;case"ArrowDown":this.moveState.pitchDown=1;break;case"ArrowLeft":this.moveState.yawLeft=1;break;case"ArrowRight":this.moveState.yawRight=1;break;case"KeyQ":this.moveState.rollLeft=1;break;case"KeyE":this.moveState.rollRight=1}this.updateMovementVector(),this.updateRotationVector()}},this.keyup=function(e){if(!1!==this.enabled){switch(e.code){case"ShiftLeft":case"ShiftRight":this.movementSpeedMultiplier=1;break;case"KeyW":this.moveState.forward=0;break;case"KeyS":this.moveState.back=0;break;case"KeyA":this.moveState.left=0;break;case"KeyD":this.moveState.right=0;break;case"KeyR":this.moveState.up=0;break;case"KeyF":this.moveState.down=0;break;case"ArrowUp":this.moveState.pitchUp=0;break;case"ArrowDown":this.moveState.pitchDown=0;break;case"ArrowLeft":this.moveState.yawLeft=0;break;case"ArrowRight":this.moveState.yawRight=0;break;case"KeyQ":this.moveState.rollLeft=0;break;case"KeyE":this.moveState.rollRight=0}this.updateMovementVector(),this.updateRotationVector()}},this.pointerdown=function(e){if(!1!==this.enabled){if(this.dragToLook)this.status++;else{switch(e.button){case 0:this.moveState.forward=1;break;case 2:this.moveState.back=1}this.updateMovementVector()}}},this.pointermove=function(e){if(!1!==this.enabled&&(!this.dragToLook||this.status>0)){let t=this.getContainerDimensions(),n=t.size[0]/2,r=t.size[1]/2;this.moveState.yawLeft=-(e.pageX-t.offset[0]-n)/n,this.moveState.pitchDown=(e.pageY-t.offset[1]-r)/r,this.updateRotationVector()}},this.pointerup=function(e){if(!1!==this.enabled){if(this.dragToLook)this.status--,this.moveState.yawLeft=this.moveState.pitchDown=0;else{switch(e.button){case 0:this.moveState.forward=0;break;case 2:this.moveState.back=0}this.updateMovementVector()}this.updateRotationVector()}},this.contextMenu=function(e){!1!==this.enabled&&e.preventDefault()},this.update=function(e){if(!1===this.enabled)return;let t=e*n.movementSpeed,o=e*n.rollSpeed;n.object.translateX(n.moveVector.x*t),n.object.translateY(n.moveVector.y*t),n.object.translateZ(n.moveVector.z*t),n.tmpQuaternion.set(n.rotationVector.x*o,n.rotationVector.y*o,n.rotationVector.z*o,1).normalize(),n.object.quaternion.multiply(n.tmpQuaternion),(i.distanceToSquared(n.object.position)>1e-6||8*(1-r.dot(n.object.quaternion))>1e-6)&&(n.dispatchEvent(j),r.copy(n.object.quaternion),i.copy(n.object.position))},this.updateMovementVector=function(){let e=this.moveState.forward||this.autoForward&&!this.moveState.back?1:0;this.moveVector.x=-this.moveState.left+this.moveState.right,this.moveVector.y=-this.moveState.down+this.moveState.up,this.moveVector.z=-e+this.moveState.back},this.updateRotationVector=function(){this.rotationVector.x=-this.moveState.pitchDown+this.moveState.pitchUp,this.rotationVector.y=-this.moveState.yawRight+this.moveState.yawLeft,this.rotationVector.z=-this.moveState.rollRight+this.moveState.rollLeft},this.getContainerDimensions=function(){return this.domElement!=document?{size:[this.domElement.offsetWidth,this.domElement.offsetHeight],offset:[this.domElement.offsetLeft,this.domElement.offsetTop]}:{size:[window.innerWidth,window.innerHeight],offset:[0,0]}},this.dispose=function(){this.domElement.removeEventListener("contextmenu",o),this.domElement.removeEventListener("pointerdown",s),this.domElement.removeEventListener("pointermove",a),this.domElement.removeEventListener("pointerup",u),window.removeEventListener("keydown",l),window.removeEventListener("keyup",c)};let o=this.contextMenu.bind(this),a=this.pointermove.bind(this),s=this.pointerdown.bind(this),u=this.pointerup.bind(this),l=this.keydown.bind(this),c=this.keyup.bind(this);this.domElement.addEventListener("contextmenu",o),this.domElement.addEventListener("pointerdown",s),this.domElement.addEventListener("pointermove",a),this.domElement.addEventListener("pointerup",u),window.addEventListener("keydown",l),window.addEventListener("keyup",c),this.updateMovementVector(),this.updateRotationVector()}}let k={name:"CopyShader",uniforms:{tDiffuse:{value:null},opacity:{value:1}},vertexShader:` varying vec2 vUv; @@ -21,7 +21,7 @@ gl_FragColor = opacity * texel; - }`};class R{constructor(){this.isPass=!0,this.enabled=!0,this.needsSwap=!0,this.clear=!1,this.renderToScreen=!1}setSize(){}render(){console.error("THREE.Pass: .render() must be implemented in derived pass.")}dispose(){}}let L=new g.iKG(-1,1,1,-1,0,1),I=new g.u9r;I.setAttribute("position",new g.a$l([-1,3,0,-1,-1,0,3,-1,0],3)),I.setAttribute("uv",new g.a$l([0,2,0,0,2,0],2));class D{constructor(e){this._mesh=new g.Kj0(I,e)}dispose(){this._mesh.geometry.dispose()}render(e){e.render(this._mesh,L)}get material(){return this._mesh.material}set material(e){this._mesh.material=e}}class z extends R{constructor(e,t){super(),this.textureID=void 0!==t?t:"tDiffuse",e instanceof g.jyz?(this.uniforms=e.uniforms,this.material=e):e&&(this.uniforms=g.rDY.clone(e.uniforms),this.material=new g.jyz({name:void 0!==e.name?e.name:"unspecified",defines:Object.assign({},e.defines),uniforms:this.uniforms,vertexShader:e.vertexShader,fragmentShader:e.fragmentShader})),this.fsQuad=new D(this.material)}render(e,t,n){this.uniforms[this.textureID]&&(this.uniforms[this.textureID].value=n.texture),this.fsQuad.material=this.material,this.renderToScreen?e.setRenderTarget(null):(e.setRenderTarget(t),this.clear&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil)),this.fsQuad.render(e)}dispose(){this.material.dispose(),this.fsQuad.dispose()}}class U extends R{constructor(e,t){super(),this.scene=e,this.camera=t,this.clear=!0,this.needsSwap=!1,this.inverse=!1}render(e,t,n){let r,i;let o=e.getContext(),a=e.state;a.buffers.color.setMask(!1),a.buffers.depth.setMask(!1),a.buffers.color.setLocked(!0),a.buffers.depth.setLocked(!0),this.inverse?(r=0,i=1):(r=1,i=0),a.buffers.stencil.setTest(!0),a.buffers.stencil.setOp(o.REPLACE,o.REPLACE,o.REPLACE),a.buffers.stencil.setFunc(o.ALWAYS,r,4294967295),a.buffers.stencil.setClear(i),a.buffers.stencil.setLocked(!0),e.setRenderTarget(n),this.clear&&e.clear(),e.render(this.scene,this.camera),e.setRenderTarget(t),this.clear&&e.clear(),e.render(this.scene,this.camera),a.buffers.color.setLocked(!1),a.buffers.depth.setLocked(!1),a.buffers.color.setMask(!0),a.buffers.depth.setMask(!0),a.buffers.stencil.setLocked(!1),a.buffers.stencil.setFunc(o.EQUAL,1,4294967295),a.buffers.stencil.setOp(o.KEEP,o.KEEP,o.KEEP),a.buffers.stencil.setLocked(!0)}}class B extends R{constructor(){super(),this.needsSwap=!1}render(e){e.state.buffers.stencil.setLocked(!1),e.state.buffers.stencil.setTest(!1)}}class N{constructor(e,t){if(this.renderer=e,this._pixelRatio=e.getPixelRatio(),void 0===t){let n=e.getSize(new g.FM8);this._width=n.width,this._height=n.height,(t=new g.dd2(this._width*this._pixelRatio,this._height*this._pixelRatio,{type:g.cLu})).texture.name="EffectComposer.rt1"}else this._width=t.width,this._height=t.height;this.renderTarget1=t,this.renderTarget2=t.clone(),this.renderTarget2.texture.name="EffectComposer.rt2",this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2,this.renderToScreen=!0,this.passes=[],this.copyPass=new z(k),this.copyPass.material.blending=g.jFi,this.clock=new g.SUY}swapBuffers(){let e=this.readBuffer;this.readBuffer=this.writeBuffer,this.writeBuffer=e}addPass(e){this.passes.push(e),e.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}insertPass(e,t){this.passes.splice(t,0,e),e.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}removePass(e){let t=this.passes.indexOf(e);-1!==t&&this.passes.splice(t,1)}isLastEnabledPass(e){for(let t=e+1;t=0&&i<1?(s=o,u=a):i>=1&&i<2?(s=a,u=o):i>=2&&i<3?(u=o,l=a):i>=3&&i<4?(u=a,l=o):i>=4&&i<5?(s=a,l=o):i>=5&&i<6&&(s=o,l=a);var c=n-o/2;return r(s+c,u+c,l+c)}var K={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Q=/^#[a-fA-F0-9]{6}$/,J=/^#[a-fA-F0-9]{8}$/,ee=/^#[a-fA-F0-9]{3}$/,et=/^#[a-fA-F0-9]{4}$/,en=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,er=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,ei=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,eo=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function ea(e){if("string"!=typeof e)throw new $(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return K[t]?"#"+K[t]:e}(e);if(t.match(Q))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(J)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(ee))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(et)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var i=en.exec(t);if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10)};var o=er.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var a=ei.exec(t);if(a){var s="rgb("+q(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",u=en.exec(s);if(!u)throw new $(4,t,s);return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10)}}var l=eo.exec(t.substring(0,50));if(l){var c="rgb("+q(parseInt(""+l[1],10),parseInt(""+l[2],10)/100,parseInt(""+l[3],10)/100)+")",f=en.exec(c);if(!f)throw new $(4,t,c);return{red:parseInt(""+f[1],10),green:parseInt(""+f[2],10),blue:parseInt(""+f[3],10),alpha:parseFloat(""+l[4])>1?parseFloat(""+l[4])/100:parseFloat(""+l[4])}}throw new $(5)}var es=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function eu(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function el(e){return eu(Math.round(255*e))}function ec(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return es("#"+eu(e)+eu(t)+eu(n));if("object"==typeof e&&void 0===t&&void 0===n)return es("#"+eu(e.red)+eu(e.green)+eu(e.blue));throw new $(6)}var ef=function e(t,n,r){return function(){var i=r.concat(Array.prototype.slice.call(arguments));return i.length>=n?t.apply(this,i):e(t,n,i)}}(r=function(e,t){if("transparent"===t)return t;var n=ea(t),r="number"==typeof n.alpha?n.alpha:1;return function(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var i=ea(e);return"rgba("+i.red+","+i.green+","+i.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?ec(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?ec(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new $(7)}((0,F.Z)({},n,{alpha:Math.max(0,Math.min(1,(100*r+100*parseFloat(e))/100))}))},r.length,[]),eh=n(49310),ep=n(98550),ed=n(60082);function em(e){return function(e){if(Array.isArray(e))return ey(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||eg(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eg(e,t){if(e){if("string"==typeof e)return ey(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ey(e,t)}}function ey(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=arguments.length,i=Array(r>3?r-3:0),o=3;o2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,i=e.camera;if(t){var o=new eb.Vector3(0,0,0),a=2*Math.max.apply(Math,em(Object.entries(t).map(function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,2)||eg(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],r=t[1];return Math.max.apply(Math,em(r.map(function(e){return Math.abs(o[n]-e)})))})))/Math.atan((1-2*r/e.height)*i.fov*Math.PI/180),s=a/i.aspect,u=Math.max(a,s);if(u>0){var l=o.clone().sub(i.position).normalize().multiplyScalar(-u);this.cameraPosition(l,o,n)}}return this},getBbox:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},n=new eb.Box3(new eb.Vector3(0,0,0),new eb.Vector3(0,0,0)),r=e.objects.filter(t);return r.length?(r.forEach(function(e){return n.expandByObject(e)}),Object.assign.apply(Object,em(["x","y","z"].map(function(e){var t,r,i,o;return t={},r=e,i=[n.min[e],n.max[e]],(r="symbol"==typeof(o=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||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(r,"string"))?o:String(o))in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t})))):null},getScreenCoords:function(e,t,n,r){var i=new eb.Vector3(t,n,r);return i.project(this.camera()),{x:(i.x+1)*e.width/2,y:-(i.y-1)*e.height/2}},getSceneCoords:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=new eb.Vector2(t/e.width*2-1,-(2*(n/e.height))+1),o=new eb.Raycaster;return o.setFromCamera(i,e.camera),Object.assign({},o.ray.at(r,new eb.Vector3))},intersectingObjects:function(e,t,n){var r=new eb.Vector2(t/e.width*2-1,-(2*(n/e.height))+1),i=new eb.Raycaster;return i.params.Line.threshold=e.lineHoverPrecision,i.setFromCamera(r,e.camera),i.intersectObjects(e.objects,!0)},renderer:function(e){return e.renderer},scene:function(e){return e.scene},camera:function(e){return e.camera},postProcessingComposer:function(e){return e.postProcessingComposer},controls:function(e){return e.controls},tbControls:function(e){return e.controls}},stateInit:function(){return{scene:new eb.Scene,camera:new eb.PerspectiveCamera,clock:new eb.Clock}},init:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.controlType,i=void 0===r?"trackball":r,o=n.rendererConfig,a=void 0===o?{}:o,s=n.extraRenderers,u=n.waitForLoadComplete;e.innerHTML="",e.appendChild(t.container=document.createElement("div")),t.container.className="scene-container",t.container.style.position="relative",t.container.appendChild(t.navInfo=document.createElement("div")),t.navInfo.className="scene-nav-info",t.navInfo.textContent=({orbit:"Left-click: rotate, Mouse-wheel/middle-click: zoom, Right-click: pan",trackball:"Left-click: rotate, Mouse-wheel/middle-click: zoom, Right-click: pan",fly:"WASD: move, R|F: up | down, Q|E: roll, up|down: pitch, left|right: yaw"})[i]||"",t.navInfo.style.display=t.showNavInfo?null:"none",t.toolTipElem=document.createElement("div"),t.toolTipElem.classList.add("scene-tooltip"),t.container.appendChild(t.toolTipElem),t.pointerPos=new eb.Vector2,t.pointerPos.x=-2,t.pointerPos.y=-2,["pointermove","pointerdown"].forEach(function(e){return t.container.addEventListener(e,function(n){if("pointerdown"===e&&(t.isPointerPressed=!0),!t.isPointerDragging&&"pointermove"===n.type&&(n.pressure>0||t.isPointerPressed)&&("touch"!==n.pointerType||void 0===n.movementX||[n.movementX,n.movementY].some(function(e){return Math.abs(e)>1}))&&(t.isPointerDragging=!0),t.enablePointerInteraction){var r,i,o,a=(r=t.container.getBoundingClientRect(),i=window.pageXOffset||document.documentElement.scrollLeft,o=window.pageYOffset||document.documentElement.scrollTop,{top:r.top+o,left:r.left+i});t.pointerPos.x=n.pageX-a.left,t.pointerPos.y=n.pageY-a.top,t.toolTipElem.style.top="".concat(t.pointerPos.y,"px"),t.toolTipElem.style.left="".concat(t.pointerPos.x,"px"),t.toolTipElem.style.transform="translate(-".concat(t.pointerPos.x/t.width*100,"%, ").concat(t.height-t.pointerPos.y<100?"calc(-100% - 8px)":"21px",")")}},{passive:!0})}),t.container.addEventListener("pointerup",function(e){t.isPointerPressed=!1,(!t.isPointerDragging||(t.isPointerDragging=!1,t.clickAfterDrag))&&requestAnimationFrame(function(){0===e.button&&t.onClick(t.hoverObj||null,e,t.intersectionPoint),2===e.button&&t.onRightClick&&t.onRightClick(t.hoverObj||null,e,t.intersectionPoint)})},{passive:!0,capture:!0}),t.container.addEventListener("contextmenu",function(e){t.onRightClick&&e.preventDefault()}),t.renderer=new eb.WebGLRenderer(Object.assign({antialias:!0,alpha:!0},a)),t.renderer.setPixelRatio(Math.min(2,window.devicePixelRatio)),t.container.appendChild(t.renderer.domElement),t.extraRenderers=void 0===s?[]:s,t.extraRenderers.forEach(function(e){e.domElement.style.position="absolute",e.domElement.style.top="0px",e.domElement.style.pointerEvents="none",t.container.appendChild(e.domElement)}),t.postProcessingComposer=new N(t.renderer),t.postProcessingComposer.addPass(new H(t.scene,t.camera)),t.controls=new({trackball:_,orbit:P,fly:C})[i](t.camera,t.renderer.domElement),"fly"===i&&(t.controls.movementSpeed=300,t.controls.rollSpeed=Math.PI/6,t.controls.dragToLook=!0),("trackball"===i||"orbit"===i)&&(t.controls.minDistance=.1,t.controls.maxDistance=t.skyRadius,t.controls.addEventListener("start",function(){t.controlsEngaged=!0}),t.controls.addEventListener("change",function(){t.controlsEngaged&&(t.controlsDragging=!0)}),t.controls.addEventListener("end",function(){t.controlsEngaged=!1,t.controlsDragging=!1})),[t.renderer,t.postProcessingComposer].concat(em(t.extraRenderers)).forEach(function(e){return e.setSize(t.width,t.height)}),t.camera.aspect=t.width/t.height,t.camera.updateProjectionMatrix(),t.camera.position.z=1e3,t.scene.add(t.skysphere=new eb.Mesh),t.skysphere.visible=!1,t.loadComplete=t.scene.visible=!(void 0===u||u),window.scene=t.scene},update:function(e,t){if(e.width&&e.height&&(t.hasOwnProperty("width")||t.hasOwnProperty("height"))&&(e.container.style.width="".concat(e.width,"px"),e.container.style.height="".concat(e.height,"px"),[e.renderer,e.postProcessingComposer].concat(em(e.extraRenderers)).forEach(function(t){return t.setSize(e.width,e.height)}),e.camera.aspect=e.width/e.height,e.camera.updateProjectionMatrix()),t.hasOwnProperty("skyRadius")&&e.skyRadius&&(e.controls.hasOwnProperty("maxDistance")&&t.skyRadius&&(e.controls.maxDistance=Math.min(e.controls.maxDistance,e.skyRadius)),e.camera.far=2.5*e.skyRadius,e.camera.updateProjectionMatrix(),e.skysphere.geometry=new eb.SphereGeometry(e.skyRadius)),t.hasOwnProperty("backgroundColor")){var n=ea(e.backgroundColor).alpha;void 0===n&&(n=1),e.renderer.setClearColor(new eb.Color(ef(1,e.backgroundColor)),n)}function r(){e.loadComplete=e.scene.visible=!0}t.hasOwnProperty("backgroundImageUrl")&&(e.backgroundImageUrl?new eb.TextureLoader().load(e.backgroundImageUrl,function(t){t.colorSpace=eb.SRGBColorSpace,e.skysphere.material=new eb.MeshBasicMaterial({map:t,side:eb.BackSide}),e.skysphere.visible=!0,e.onBackgroundImageLoaded&&setTimeout(e.onBackgroundImageLoaded),e.loadComplete||r()}):(e.skysphere.visible=!1,e.skysphere.material.map=null,e.loadComplete||r())),t.hasOwnProperty("showNavInfo")&&(e.navInfo.style.display=e.showNavInfo?null:"none"),t.hasOwnProperty("objects")&&((t.objects||[]).forEach(function(t){return e.scene.remove(t)}),e.objects.forEach(function(t){return e.scene.add(t)}))}});function ex(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 ew(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n1?i-1:0),a=1;a1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=e.globe.toGeoCoords(e.renderObjs.cameraPosition());if(void 0===t.lat&&void 0===t.lng&&void 0===t.altitude)return r;var i=Object.assign({},r,t);if(["lat","lng","altitude"].forEach(function(e){return i[e]=+i[e]}),n){for(;r.lng-i.lng>180;)r.lng-=360;for(;r.lng-i.lng<-180;)r.lng+=360;new eh.kX(r).to(i,n).easing(eh.oY.Cubic.InOut).onUpdate(o).start()}else o(i);return this;function o(t){var n=t.lat,r=t.lng,i=t.altitude;e.renderObjs.cameraPosition(e.globe.getCoords(n,r,i))}},getScreenCoords:function(e){for(var t,n=arguments.length,r=Array(n>1?n-1:0),i=1;i=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,eA),o=new b.Z(ew({waitForGlobeReady:r},i));return{globe:o,renderObjs:ev({controlType:"orbit",rendererConfig:t,waitForLoadComplete:r,extraRenderers:[new eT.CSS2DRenderer]}).skyRadius(500*o.getGlobeRadius()).showNavInfo(!1)}},init:function(e,t){var n=this;e.innerHTML="",e.appendChild(t.container=document.createElement("div")),t.container.style.position="relative";var r=document.createElement("div");t.container.appendChild(r),t.renderObjs(r),t.globe.rendererSize(t.renderObjs.renderer().getSize(new eT.Vector2)),this.pointOfView({altitude:2.5});var i=t.globe.getGlobeRadius(),o=t.renderObjs.controls();o.minDistance=1.01*i,o.maxDistance=100*i,o.enablePan=!1,o.enableDamping=!0,o.dampingFactor=.1,o.rotateSpeed=.3,o.zoomSpeed=.3,o.addEventListener("change",function(){var e=n.pointOfView();o.rotateSpeed=.2*e.altitude,o.zoomSpeed=(e.altitude+1)*.1,t.globe.setPointOfView(t.renderObjs.camera().position),t.onZoom&&t.onZoom(e)});var a=function(e){for(var t=e;t&&!t.hasOwnProperty("__globeObjType");)t=t.parent;return t},s={point:function(e){return e},arc:function(e){return e},polygon:function(e){return e.data},path:function(e){return e},hexbin:function(e){return e},hexPolygon:function(e){return e},tile:function(e){return e},label:function(e){return e},object:function(e){return e},custom:function(e){return e}};t.renderObjs.objects([new eT.AmbientLight(13421772),new eT.DirectionalLight(16777215,.6),t.globe]).hoverOrderComparator(function(e,t){var n=a(e),r=a(t),i=function(e){return!e};return i(n)-i(r)}).tooltipContent(function(e){var n={point:t.pointLabel,arc:t.arcLabel,polygon:t.polygonLabel,path:t.pathLabel,hexbin:t.hexLabel,hexPolygon:t.hexPolygonLabel,tile:t.tileLabel,label:t.labelLabel,object:t.objectLabel,custom:t.customLayerLabel},r=a(e),i=r&&r.__globeObjType;return r&&i&&n.hasOwnProperty(i)&&s.hasOwnProperty(i)&&(0,ep.Z)(n[i])(s[i](r.__data))||""}).onHover(function(e){var n={point:t.onPointHover,arc:t.onArcHover,polygon:t.onPolygonHover,path:t.onPathHover,hexbin:t.onHexHover,hexPolygon:t.onHexPolygonHover,tile:t.onTileHover,label:t.onLabelHover,object:t.onObjectHover,custom:t.onCustomLayerHover},r={globe:t.onGlobeClick,point:t.onPointClick,arc:t.onArcClick,polygon:t.onPolygonClick,path:t.onPathClick,hexbin:t.onHexClick,hexPolygon:t.onHexPolygonClick,tile:t.onTileClick,label:t.onLabelClick,object:t.onObjectClick,custom:t.onCustomLayerClick},i=a(e);if(i&&!n.hasOwnProperty(i.__globeObjType)&&(i=null),i!==t.hoverObj){var o=t.hoverObj?t.hoverObj.__globeObjType:null,u=t.hoverObj?s[o](t.hoverObj.__data):null,l=i?i.__globeObjType:null,c=i?s[l](i.__data):null;o&&o!==l&&n[o]&&n[o](null,u),l&&n[l]&&n[l](c,o===l?u:null),t.renderObjs.renderer().domElement.classList[l&&r[l]?"add":"remove"]("clickable"),t.hoverObj=i}}).onClick(function(e,r,i){if(e){var o={globe:t.onGlobeClick,point:t.onPointClick,arc:t.onArcClick,polygon:t.onPolygonClick,path:t.onPathClick,hexbin:t.onHexClick,hexPolygon:t.onHexPolygonClick,tile:t.onTileClick,label:t.onLabelClick,object:t.onObjectClick,custom:t.onCustomLayerClick},u=a(e),l=u.__globeObjType;if(u&&o.hasOwnProperty(l)&&o[l]){var c=[r];if("globe"===l){var f=n.toGeoCoords(i),h=f.lat,p=f.lng;c.unshift({lat:h,lng:p})}else c.push(n.toGeoCoords(i));s.hasOwnProperty(l)&&c.unshift(s[l](u.__data)),o[l].apply(o,c)}}}).onRightClick(function(e,r,i){if(e){var o={globe:t.onGlobeRightClick,point:t.onPointRightClick,arc:t.onArcRightClick,polygon:t.onPolygonRightClick,path:t.onPathRightClick,hexbin:t.onHexRightClick,hexPolygon:t.onHexPolygonRightClick,tile:t.onTileRightClick,label:t.onLabelRightClick,object:t.onObjectRightClick,custom:t.onCustomLayerRightClick},u=a(e),l=u.__globeObjType;if(u&&o.hasOwnProperty(l)&&o[l]){var c=[r];if("globe"===l){var f=n.toGeoCoords(i),h=f.lat,p=f.lng;c.unshift({lat:h,lng:p})}else c.push(n.toGeoCoords(i));s.hasOwnProperty(l)&&c.unshift(s[l](u.__data)),o[l].apply(o,c)}}}),this._animationCycle()}}),eI=n(13980),eD={width:eI.number,height:eI.number,backgroundColor:eI.string,backgroundImageUrl:eI.string,globeImageUrl:eI.string,bumpImageUrl:eI.string,showGlobe:eI.bool,showGraticules:eI.bool,showAtmosphere:eI.bool,atmosphereColor:eI.string,atmosphereAltitude:eI.number,globeMaterial:eI.object,onGlobeReady:eI.func,onGlobeClick:eI.func,onGlobeRightClick:eI.func,pointsData:eI.arrayOf(eI.object),pointLat:eI.oneOfType([eI.number,eI.string,eI.func]),pointLng:eI.oneOfType([eI.number,eI.string,eI.func]),pointColor:eI.oneOfType([eI.string,eI.func]),pointAltitude:eI.oneOfType([eI.number,eI.string,eI.func]),pointRadius:eI.oneOfType([eI.number,eI.string,eI.func]),pointResolution:eI.number,pointsMerge:eI.bool,pointsTransitionDuration:eI.number,pointLabel:eI.oneOfType([eI.string,eI.func]),onPointClick:eI.func,onPointRightClick:eI.func,onPointHover:eI.func,arcsData:eI.arrayOf(eI.object),arcStartLat:eI.oneOfType([eI.number,eI.string,eI.func]),arcStartLng:eI.oneOfType([eI.number,eI.string,eI.func]),arcEndLat:eI.oneOfType([eI.number,eI.string,eI.func]),arcEndLng:eI.oneOfType([eI.number,eI.string,eI.func]),arcColor:eI.oneOfType([eI.string,eI.arrayOf(eI.string),eI.func]),arcAltitude:eI.oneOfType([eI.number,eI.string,eI.func]),arcAltitudeAutoScale:eI.oneOfType([eI.number,eI.string,eI.func]),arcStroke:eI.oneOfType([eI.number,eI.string,eI.func]),arcCurveResolution:eI.number,arcCircularResolution:eI.number,arcDashLength:eI.oneOfType([eI.number,eI.string,eI.func]),arcDashGap:eI.oneOfType([eI.number,eI.string,eI.func]),arcDashInitialGap:eI.oneOfType([eI.number,eI.string,eI.func]),arcDashAnimateTime:eI.oneOfType([eI.number,eI.string,eI.func]),arcsTransitionDuration:eI.number,arcLabel:eI.oneOfType([eI.string,eI.func]),onArcClick:eI.func,onArcRightClick:eI.func,onArcHover:eI.func,polygonsData:eI.arrayOf(eI.object),polygonGeoJsonGeometry:eI.oneOfType([eI.string,eI.func]),polygonCapColor:eI.oneOfType([eI.string,eI.func]),polygonCapMaterial:eI.oneOfType([eI.object,eI.string,eI.func]),polygonSideColor:eI.oneOfType([eI.string,eI.func]),polygonSideMaterial:eI.oneOfType([eI.object,eI.string,eI.func]),polygonStrokeColor:eI.oneOfType([eI.string,eI.func]),polygonAltitude:eI.oneOfType([eI.number,eI.string,eI.func]),polygonCapCurvatureResolution:eI.oneOfType([eI.number,eI.string,eI.func]),polygonsTransitionDuration:eI.number,polygonLabel:eI.oneOfType([eI.string,eI.func]),onPolygonClick:eI.func,onPolygonRightClick:eI.func,onPolygonHover:eI.func,pathsData:eI.array,pathPoints:eI.oneOfType([eI.array,eI.string,eI.func]),pathPointLat:eI.oneOfType([eI.number,eI.string,eI.func]),pathPointLng:eI.oneOfType([eI.number,eI.string,eI.func]),pathPointAlt:eI.oneOfType([eI.number,eI.string,eI.func]),pathResolution:eI.number,pathColor:eI.oneOfType([eI.string,eI.arrayOf(eI.string),eI.func]),pathStroke:eI.oneOfType([eI.number,eI.string,eI.func]),pathDashLength:eI.oneOfType([eI.number,eI.string,eI.func]),pathDashGap:eI.oneOfType([eI.number,eI.string,eI.func]),pathDashInitialGap:eI.oneOfType([eI.number,eI.string,eI.func]),pathDashAnimateTime:eI.oneOfType([eI.number,eI.string,eI.func]),pathTransitionDuration:eI.number,pathLabel:eI.oneOfType([eI.string,eI.func]),onPathClick:eI.func,onPathRightClick:eI.func,onPathHover:eI.func,hexBinPointsData:eI.arrayOf(eI.object),hexBinPointLat:eI.oneOfType([eI.number,eI.string,eI.func]),hexBinPointLng:eI.oneOfType([eI.number,eI.string,eI.func]),hexBinPointWeight:eI.oneOfType([eI.number,eI.string,eI.func]),hexBinResolution:eI.number,hexMargin:eI.oneOfType([eI.number,eI.func]),hexTopColor:eI.func,hexSideColor:eI.func,hexAltitude:eI.oneOfType([eI.number,eI.func]),hexTopCurvatureResolution:eI.number,hexBinMerge:eI.bool,hexTransitionDuration:eI.number,hexLabel:eI.oneOfType([eI.string,eI.func]),onHexClick:eI.func,onHexRightClick:eI.func,onHexHover:eI.func,hexPolygonsData:eI.arrayOf(eI.object),hexPolygonGeoJsonGeometry:eI.oneOfType([eI.string,eI.func]),hexPolygonColor:eI.oneOfType([eI.string,eI.func]),hexPolygonAltitude:eI.oneOfType([eI.number,eI.string,eI.func]),hexPolygonResolution:eI.oneOfType([eI.number,eI.string,eI.func]),hexPolygonMargin:eI.oneOfType([eI.number,eI.string,eI.func]),hexPolygonCurvatureResolution:eI.oneOfType([eI.number,eI.string,eI.func]),hexPolygonsTransitionDuration:eI.number,hexPolygonLabel:eI.oneOfType([eI.string,eI.func]),onHexPolygonClick:eI.func,onHexPolygonRightClick:eI.func,onHexPolygonHover:eI.func,tilesData:eI.arrayOf(eI.object),tileLat:eI.oneOfType([eI.number,eI.string,eI.func]),tileLng:eI.oneOfType([eI.number,eI.string,eI.func]),tileAltitude:eI.oneOfType([eI.number,eI.string,eI.func]),tileWidth:eI.oneOfType([eI.number,eI.string,eI.func]),tileHeight:eI.oneOfType([eI.number,eI.string,eI.func]),tileUseGlobeProjection:eI.oneOfType([eI.bool,eI.string,eI.func]),tileMaterial:eI.oneOfType([eI.object,eI.string,eI.func]),tileCurvatureResolution:eI.oneOfType([eI.number,eI.string,eI.func]),tilesTransitionDuration:eI.number,tileLabel:eI.oneOfType([eI.string,eI.func]),onTileClick:eI.func,onTileRightClick:eI.func,onTileHover:eI.func,ringsData:eI.arrayOf(eI.object),ringLat:eI.oneOfType([eI.number,eI.string,eI.func]),ringLng:eI.oneOfType([eI.number,eI.string,eI.func]),ringAltitude:eI.oneOfType([eI.number,eI.string,eI.func]),ringColor:eI.oneOfType([eI.string,eI.arrayOf(eI.string),eI.func]),ringResolution:eI.number,ringMaxRadius:eI.oneOfType([eI.number,eI.string,eI.func]),ringPropagationSpeed:eI.oneOfType([eI.number,eI.string,eI.func]),ringRepeatPeriod:eI.oneOfType([eI.number,eI.string,eI.func]),labelsData:eI.arrayOf(eI.object),labelLat:eI.oneOfType([eI.number,eI.string,eI.func]),labelLng:eI.oneOfType([eI.number,eI.string,eI.func]),labelAltitude:eI.oneOfType([eI.number,eI.string,eI.func]),labelRotation:eI.oneOfType([eI.number,eI.string,eI.func]),labelText:eI.oneOfType([eI.string,eI.func]),labelSize:eI.oneOfType([eI.number,eI.string,eI.func]),labelTypeFace:eI.object,labelColor:eI.oneOfType([eI.string,eI.func]),labelResolution:eI.number,labelIncludeDot:eI.oneOfType([eI.bool,eI.string,eI.func]),labelDotRadius:eI.oneOfType([eI.number,eI.string,eI.func]),labelDotOrientation:eI.oneOfType([eI.string,eI.func]),labelsTransitionDuration:eI.number,labelLabel:eI.oneOfType([eI.string,eI.func]),onLabelClick:eI.func,onLabelRightClick:eI.func,onLabelHover:eI.func,htmlElementsData:eI.arrayOf(eI.object),htmlLat:eI.oneOfType([eI.number,eI.string,eI.func]),htmlLng:eI.oneOfType([eI.number,eI.string,eI.func]),htmlAltitude:eI.oneOfType([eI.number,eI.string,eI.func]),htmlElement:eI.oneOfType([eI.string,eI.func]),htmlTransitionDuration:eI.number,objectsData:eI.arrayOf(eI.object),objectLat:eI.oneOfType([eI.number,eI.string,eI.func]),objectLng:eI.oneOfType([eI.number,eI.string,eI.func]),objectAltitude:eI.oneOfType([eI.number,eI.string,eI.func]),objectRotation:eI.oneOfType([eI.shape({x:eI.number,y:eI.number,z:eI.number}),eI.string,eI.func]),objectFacesSurface:eI.oneOfType([eI.bool,eI.string,eI.func]),objectThreeObject:eI.oneOfType([eI.object,eI.string,eI.func]),objectLabel:eI.oneOfType([eI.string,eI.func]),onObjectClick:eI.func,onObjectRightClick:eI.func,onObjectHover:eI.func,customLayerData:eI.arrayOf(eI.object),customThreeObject:eI.oneOfType([eI.object,eI.string,eI.func]),customThreeObjectUpdate:eI.oneOfType([eI.string,eI.func]),customLayerLabel:eI.oneOfType([eI.string,eI.func]),onCustomLayerClick:eI.func,onCustomLayerRightClick:eI.func,onCustomLayerHover:eI.func,enablePointerInteraction:eI.bool,pointerEventsFilter:eI.func,lineHoverPrecision:eI.number,onZoom:eI.func},ez=function(e,t){var n="object"===c(t)?t:{wrapperElementType:t,methodNames:(arguments.length<=2?void 0:arguments[2])||void 0,initPropNames:(arguments.length<=3?void 0:arguments[3])||void 0},r=n.wrapperElementType,o=void 0===r?"div":r,a=n.nodeMapper,s=void 0===a?function(e){return e}:a,p=n.methodNames,d=void 0===p?[]:p,g=n.initPropNames,y=void 0===g?[]:g;return(0,i.forwardRef)(function(t,n){var r=(0,i.useRef)(),a=f((0,i.useState)({}),2),c=a[0],p=a[1];(0,i.useEffect)(function(){return p(t)});var g=(0,i.useMemo)(function(){return e(l(y.filter(function(e){return t.hasOwnProperty(e)}).map(function(e){return[e,t[e]]})))},[]);m(function(){g(s(r.current))},i.useLayoutEffect),m(function(){return g._destructor instanceof Function?g._destructor:void 0});var b=(0,i.useCallback)(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;rl==c>-l?(o=l,l=t[++f]):(o=c,c=r[++h]);let p=0;if(fl==c>-l?(a=l+o,s=o-(a-l),l=t[++f]):(a=c+o,s=o-(a-c),c=r[++h]),o=a,0!==s&&(i[p++]=s);fl==c>-l?(u=(a=o+l)-o,s=o-(a-u)+(l-u),l=t[++f]):(u=(a=o+c)-o,s=o-(a-u)+(c-u),c=r[++h]),o=a,0!==s&&(i[p++]=s);for(;f=z*l?u:-function(e,t,n,r,i,o,a){let s,u,l,c,f,h,p,d,m,g,y,b,v,x,w,_,S,O;let E=e-i,A=n-i,T=t-o,M=r-o;x=E*M,p=(h=134217729*E)-(h-E),d=E-p,m=(h=134217729*M)-(h-M),w=d*(g=M-m)-(x-p*m-d*m-p*g),_=T*A,p=(h=134217729*T)-(h-T),d=T-p,m=(h=134217729*A)-(h-A),y=w-(S=d*(g=A-m)-(_-p*m-d*m-p*g)),f=w-y,N[0]=w-(y+f)+(f-S),f=(b=x+y)-x,y=(v=x-(b-f)+(y-f))-_,f=v-y,N[1]=v-(y+f)+(f-_),f=(O=b+y)-b,N[2]=b-(O-f)+(y-f),N[3]=O;let P=function(e,t){let n=t[0];for(let e=1;e<4;e++)n+=t[e];return n}(0,N),j=U*a;if(P>=j||-P>=j||(f=e-E,s=e-(E+f)+(f-i),f=n-A,l=n-(A+f)+(f-i),f=t-T,u=t-(T+f)+(f-o),f=r-M,c=r-(M+f)+(f-o),0===s&&0===u&&0===l&&0===c)||(j=B*a+L*Math.abs(P),(P+=E*c+M*s-(T*l+A*u))>=j||-P>=j))return P;x=s*M,p=(h=134217729*s)-(h-s),d=s-p,m=(h=134217729*M)-(h-M),w=d*(g=M-m)-(x-p*m-d*m-p*g),_=u*A,p=(h=134217729*u)-(h-u),d=u-p,m=(h=134217729*A)-(h-A),y=w-(S=d*(g=A-m)-(_-p*m-d*m-p*g)),f=w-y,G[0]=w-(y+f)+(f-S),f=(b=x+y)-x,y=(v=x-(b-f)+(y-f))-_,f=v-y,G[1]=v-(y+f)+(f-_),f=(O=b+y)-b,G[2]=b-(O-f)+(y-f),G[3]=O;let C=I(4,N,4,G,H);x=E*c,p=(h=134217729*E)-(h-E),d=E-p,m=(h=134217729*c)-(h-c),w=d*(g=c-m)-(x-p*m-d*m-p*g),_=T*l,p=(h=134217729*T)-(h-T),d=T-p,m=(h=134217729*l)-(h-l),y=w-(S=d*(g=l-m)-(_-p*m-d*m-p*g)),f=w-y,G[0]=w-(y+f)+(f-S),f=(b=x+y)-x,y=(v=x-(b-f)+(y-f))-_,f=v-y,G[1]=v-(y+f)+(f-_),f=(O=b+y)-b,G[2]=b-(O-f)+(y-f),G[3]=O;let k=I(C,H,4,G,F);x=s*c,p=(h=134217729*s)-(h-s),d=s-p,m=(h=134217729*c)-(h-c),w=d*(g=c-m)-(x-p*m-d*m-p*g),_=u*l,p=(h=134217729*u)-(h-u),d=u-p,m=(h=134217729*l)-(h-l),y=w-(S=d*(g=l-m)-(_-p*m-d*m-p*g)),f=w-y,G[0]=w-(y+f)+(f-S),f=(b=x+y)-x,y=(v=x-(b-f)+(y-f))-_,f=v-y,G[1]=v-(y+f)+(f-_),f=(O=b+y)-b,G[2]=b-(O-f)+(y-f),G[3]=O;let R=I(k,F,4,G,Z);return Z[R-1]}(e,t,n,r,i,o,l)}D(4),D(4),D(4),D(4),D(4),D(4),D(4),D(4),D(4),D(8),D(8),D(8),D(4),D(8),D(8),D(8),D(12),D(192),D(192),D(4),D(4),D(4),D(4),D(4),D(4),D(4),D(4),D(8),D(8),D(8),D(8),D(8),D(8),D(8),D(8),D(8),D(4),D(4),D(4),D(8),D(16),D(16),D(16),D(32),D(32),D(48),D(64),D(1152),D(1152),D(4),D(4),D(4),D(4),D(4),D(4),D(4),D(4),D(4),D(4),D(24),D(24),D(24),D(24),D(24),D(24),D(24),D(24),D(24),D(24),D(1152),D(1152),D(1152),D(1152),D(1152),D(2304),D(2304),D(3456),D(5760),D(8),D(8),D(8),D(16),D(24),D(48),D(48),D(96),D(192),D(384),D(384),D(384),D(768),D(96),D(96),D(96),D(1152);let W=new Uint32Array(512);class ${static from(e,t=K,n=Q){let r=e.length,i=new Float64Array(2*r);for(let o=0;o>1;if(t>0&&"number"!=typeof e[0])throw Error("Expected coords to contain numbers.");this.coords=e;let n=Math.max(2*t-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(t)),this._hullPrev=new Uint32Array(t),this._hullNext=new Uint32Array(t),this._hullTri=new Uint32Array(t),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(t),this._dists=new Float64Array(t),this.update()}update(){let e,t,n;let{coords:r,_hullPrev:i,_hullNext:o,_hullTri:a,_hullHash:s}=this,u=r.length>>1,l=1/0,c=1/0,f=-1/0,h=-1/0;for(let e=0;ef&&(f=t),n>h&&(h=n),this._ids[e]=e}let p=(l+f)/2,d=(c+h)/2,m=1/0;for(let t=0;t0&&(t=n,m=i)}let b=r[2*t],v=r[2*t+1],x=1/0;for(let i=0;ir&&(e[t++]=i,r=this._dists[i])}this.hull=e.subarray(0,t),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(0>V(g,y,b,v,w,_)){let e=t,r=b,i=v;t=n,b=w,v=_,n=e,w=r,_=i}let S=function(e,t,n,r,i,o){let a=n-e,s=r-t,u=i-e,l=o-t,c=a*a+s*s,f=u*u+l*l,h=.5/(a*l-s*u);return{x:e+(l*c-s*f)*h,y:t+(a*f-u*c)*h}}(g,y,b,v,w,_);this._cx=S.x,this._cy=S.y;for(let e=0;e0&&2220446049250313e-31>=Math.abs(h-l)&&2220446049250313e-31>=Math.abs(p-c)||(l=h,c=p,f===e||f===t||f===n))continue;let d=0;for(let e=0,t=this._hashKey(h,p);e=0;)if((m=g)===d){m=-1;break}if(-1===m)continue;let y=this._addTriangle(m,f,o[m],-1,-1,a[m]);a[f]=this._legalize(y+2),a[m]=y,O++;let b=o[m];for(;g=o[b],0>V(h,p,r[2*b],r[2*b+1],r[2*g],r[2*g+1]);)y=this._addTriangle(b,f,g,a[f],-1,a[b]),a[f]=this._legalize(y+2),o[b]=b,O--,b=g;if(m===d)for(;0>V(h,p,r[2*(g=i[m])],r[2*g+1],r[2*m],r[2*m+1]);)y=this._addTriangle(g,f,m,-1,a[m],a[g]),this._legalize(y+2),a[g]=y,o[m]=m,O--,m=g;this._hullStart=i[f]=m,o[m]=i[b]=f,o[f]=b,s[this._hashKey(h,p)]=f,s[this._hashKey(r[2*m],r[2*m+1])]=m}this.hull=new Uint32Array(O);for(let e=0,t=this._hullStart;e0?3-n:1+n)/4}(e-this._cx,t-this._cy)*this._hashSize)%this._hashSize}_legalize(e){let{_triangles:t,_halfedges:n,coords:r}=this,i=0,o=0;for(;;){let a=n[e],s=e-e%3;if(o=s+(e+2)%3,-1===a){if(0===i)break;e=W[--i];continue}let u=a-a%3,l=s+(e+1)%3,c=u+(a+2)%3,f=t[o],h=t[e],p=t[l],d=t[c],m=function(e,t,n,r,i,o,a,s){let u=e-a,l=t-s,c=n-a,f=r-s,h=i-a,p=o-s,d=c*c+f*f,m=h*h+p*p;return u*(f*m-d*p)-l*(c*m-d*h)+(u*u+l*l)*(c*p-f*h)<0}(r[2*f],r[2*f+1],r[2*h],r[2*h+1],r[2*p],r[2*p+1],r[2*d],r[2*d+1]);if(m){t[e]=d,t[a]=f;let r=n[c];if(-1===r){let t=this._hullStart;do{if(this._hullTri[t]===c){this._hullTri[t]=e;break}t=this._hullPrev[t]}while(t!==this._hullStart)}this._link(e,r),this._link(a,n[o]),this._link(o,c);let s=u+(a+1)%3;i=n&&t[e[a]]>o;)e[a+1]=e[a--];e[a+1]=r}else{let i=n+r>>1,o=n+1,a=r;q(e,i,o),t[e[n]]>t[e[r]]&&q(e,n,r),t[e[o]]>t[e[r]]&&q(e,o,r),t[e[n]]>t[e[o]]&&q(e,n,o);let s=e[o],u=t[s];for(;;){do o++;while(t[e[o]]u);if(a=a-n?(X(e,t,o,r),X(e,t,n,a-1)):(X(e,t,n,a-1),X(e,t,o,r))}}function q(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function K(e){return e[0]}function Q(e){return e[1]}function J(e,t,n){var r=!1;t[0][0]===t[t.length-1][0]&&t[0][1]===t[t.length-1][1]&&(t=t.slice(0,t.length-1));for(var i=0,o=t.length-1;ie[1]!=l>e[1]&&e[0]<(u-a)*(e[1]-s)/(l-s)+a&&(r=!r)}return r}var ee,et,en,er,ei,eo=n(15852),ea=n(33909),es=n(60858),eu=new eo.dU,el=new eo.dU,ec={point:es.Z,lineStart:es.Z,lineEnd:es.Z,polygonStart:function(){eu=new eo.dU,ec.lineStart=ef,ec.lineEnd=eh},polygonEnd:function(){var e=+eu;el.add(e<0?ea.BZ+e:e),this.lineStart=this.lineEnd=this.point=es.Z},sphere:function(){el.add(ea.BZ)}};function ef(){ec.point=ep}function eh(){ed(ee,et)}function ep(e,t){ec.point=ed,ee=e,et=t,e*=ea.uR,t*=ea.uR,en=e,er=(0,ea.mC)(t=t/2+ea.pu),ei=(0,ea.O$)(t)}function ed(e,t){e*=ea.uR,t*=ea.uR,t=t/2+ea.pu;var n=e-en,r=n>=0?1:-1,i=r*n,o=(0,ea.mC)(t),a=(0,ea.O$)(t),s=ei*a,u=er*o+s*(0,ea.mC)(i),l=s*r*(0,ea.O$)(i);eu.add((0,ea.fv)(l,u)),en=e,er=o,ei=a}function em(e){return[(0,ea.fv)(e[1],e[0]),(0,ea.ZR)(e[2])]}function eg(e){var t=e[0],n=e[1],r=(0,ea.mC)(n);return[r*(0,ea.mC)(t),r*(0,ea.O$)(t),(0,ea.O$)(n)]}function ey(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function eb(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function ev(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function ex(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function ew(e){var t=(0,ea._b)(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var e_=n(2708),eS={point:eO,lineStart:eA,lineEnd:eT,polygonStart:function(){eS.point=eM,eS.lineStart=eP,eS.lineEnd=ej,f=new eo.dU,ec.polygonStart()},polygonEnd:function(){ec.polygonEnd(),eS.point=eO,eS.lineStart=eA,eS.lineEnd=eT,eu<0?(r=-(o=180),i=-(a=90)):f>ea.Ho?a=90:f<-ea.Ho&&(i=-90),p[0]=r,p[1]=o},sphere:function(){r=-(o=180),i=-(a=90)}};function eO(e,t){h.push(p=[r=e,o=e]),ta&&(a=t)}function eE(e,t){var n=eg([e*ea.uR,t*ea.uR]);if(c){var u=eb(c,n),l=eb([u[1],-u[0],0],u);ew(l),l=em(l);var f,d=e-s,m=d>0?1:-1,g=l[0]*ea.RW*m,y=(0,ea.Wn)(d)>180;y^(m*sa&&(a=f):y^(m*s<(g=(g+360)%360-180)&&ga&&(a=t)),y?eeC(r,o)&&(o=e):eC(e,o)>eC(r,o)&&(r=e):o>=r?(eo&&(o=e)):e>s?eC(r,e)>eC(r,o)&&(o=e):eC(e,o)>eC(r,o)&&(r=e)}else h.push(p=[r=e,o=e]);ta&&(a=t),c=n,s=e}function eA(){eS.point=eE}function eT(){p[0]=r,p[1]=o,eS.point=eO,c=null}function eM(e,t){if(c){var n=e-s;f.add((0,ea.Wn)(n)>180?n+(n>0?360:-360):n)}else u=e,l=t;ec.point(e,t),eE(e,t)}function eP(){ec.lineStart()}function ej(){eM(u,l),ec.lineEnd(),(0,ea.Wn)(f)>ea.Ho&&(r=-(o=180)),p[0]=r,p[1]=o,c=null}function eC(e,t){return(t-=e)<0?t+360:t}function ek(e,t){return e[0]-t[0]}function eR(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:teC(s[0],s[1])&&(s[1]=u[1]),eC(u[0],s[1])>eC(s[0],s[1])&&(s[0]=u[0])):l.push(s=u);for(c=-1/0,n=l.length-1,t=0,s=l[n];t<=n;s=u,++t)u=l[t],(f=eC(s[1],u[0]))>c&&(c=f,r=u[0],o=s[1])}return h=p=null,r===1/0||i===1/0?[[NaN,NaN],[NaN,NaN]]:[[r,i],[o,a]]}var eI=n(23320),eD=n(46373);function ez(e){return(0,ea.Wn)(e[0])<=ea.pi?e[0]:(0,ea.Xx)(e[0])*(((0,ea.Wn)(e[0])+ea.pi)%ea.BZ-ea.pi)}function eU(e,t){var n=ez(t),r=t[1],i=(0,ea.O$)(r),o=[(0,ea.O$)(n),-(0,ea.mC)(n),0],a=0,s=0,u=new eo.dU;1===i?r=ea.ou+ea.Ho:-1===i&&(r=-ea.ou-ea.Ho);for(var l=0,c=e.length;l=0?1:-1,A=E*O,T=A>ea.pi,M=g*_;if(u.add((0,ea.fv)(M*E*(0,ea.O$)(A),y*S+M*(0,ea.mC)(A))),a+=T?O+E*ea.BZ:O,T^d>=n^x>=n){var P=eb(eg(p),eg(v));ew(P);var j=eb(o,P);ew(j);var C=(T^O>=0?-1:1)*(0,ea.ZR)(j[2]);(r>C||r===C&&(P[0]||P[1]))&&(s+=T^O>=0?1:-1)}}return(a<-ea.Ho||a0&&(i=(0,eI.Z)(e[o],e[o-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))1e-6||Math.abs(this._y1-i)>1e-6)&&(this._+="L"+r+","+i),n&&(this._+=`A${n},${n},0,1,1,${e-n},${t}A${n},${n},0,1,1,${this._x1=r},${this._y1=i}`)}rect(e,t,n,r){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${+n}v${+r}h${-n}Z`}value(){return this._||null}}class e8{constructor(){this._=[]}moveTo(e,t){this._.push([e,t])}closePath(){this._.push(this._[0].slice())}lineTo(e,t){this._.push([e,t])}value(){return this._.length?this._:null}}class e6{constructor(e,[t,n,r,i]=[0,0,960,500]){if(!((r=+r)>=(t=+t))||!((i=+i)>=(n=+n)))throw Error("invalid bounds");this.delaunay=e,this._circumcenters=new Float64Array(2*e.points.length),this.vectors=new Float64Array(2*e.points.length),this.xmax=r,this.xmin=t,this.ymax=i,this.ymin=n,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){let e,t;let{delaunay:{points:n,hull:r,triangles:i},vectors:o}=this,a=this.circumcenters=this._circumcenters.subarray(0,i.length/3*2);for(let o=0,s=0,u=i.length,l,c;oMath.abs(S)){if(void 0===e){for(let i of(e=t=0,r))e+=n[2*i],t+=n[2*i+1];e/=r.length,t/=r.length}let i=1e9*Math.sign((e-p)*_-(t-d)*w);l=(p+y)/2-i*_,c=(d+b)/2+i*w}else{let e=1/S,t=v*v+x*x,n=w*w+_*_;l=p+(_*t-x*n)*e,c=d+(v*n-w*t)*e}a[s]=l,a[s+1]=c}let s=r[r.length-1],u,l=4*s,c,f=n[2*s],h,p=n[2*s+1];o.fill(0);for(let e=0;e1;)i-=2;for(let e=2;e0){if(t>=this.ymax)return null;(o=(this.ymax-t)/r)0){if(e>=this.xmax)return null;(o=(this.xmax-e)/n)this.xmax?2:0)|(tthis.ymax?8:0)}_simplify(e){if(e&&e.length>4){for(let t=0;t2&&function(e){let{triangles:t,coords:n}=e;for(let e=0;e1e-10)return!1}return!0}(e)){this.collinear=Int32Array.from({length:t.length/2},(e,t)=>t).sort((e,n)=>t[2*e]-t[2*n]||t[2*e+1]-t[2*n+1]);let e=this.collinear[0],i=this.collinear[this.collinear.length-1],o=[t[2*e],t[2*e+1],t[2*i],t[2*i+1]],a=1e-8*Math.hypot(o[3]-o[1],o[2]-o[0]);for(let e=0,i=t.length/2;e0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=o[0],s[o[0]]=1,2===o.length&&(s[o[1]]=0,this.triangles[1]=o[1],this.triangles[2]=o[1]))}voronoi(e){return new e6(this,e)}*neighbors(e){let{inedges:t,hull:n,_hullIndex:r,halfedges:i,triangles:o,collinear:a}=this;if(a){let t=a.indexOf(e);t>0&&(yield a[t-1]),t=0&&r!==n&&r!==i;)n=r;return r}_step(e,t,n){let{inedges:r,hull:i,_hullIndex:o,halfedges:a,triangles:s,points:u}=this;if(-1===r[e]||!u.length)return(e+1)%(u.length>>1);let l=e,c=e7(t-u[2*e],2)+e7(n-u[2*e+1],2),f=r[e],h=f;do{let r=s[h],f=e7(t-u[2*r],2)+e7(n-u[2*r+1],2);if(fea.pi&&(e-=Math.round(e/ea.BZ)*ea.BZ),[e,t]}function to(e,t,n){return(e%=ea.BZ)?t||n?tr(ts(e),tu(t,n)):ts(e):t||n?tu(t,n):ti}function ta(e){return function(t,n){return t+=e,(0,ea.Wn)(t)>ea.pi&&(t-=Math.round(t/ea.BZ)*ea.BZ),[t,n]}}function ts(e){var t=ta(e);return t.invert=ta(-e),t}function tu(e,t){var n=(0,ea.mC)(e),r=(0,ea.O$)(e),i=(0,ea.mC)(t),o=(0,ea.O$)(t);function a(e,t){var a=(0,ea.mC)(t),s=(0,ea.mC)(e)*a,u=(0,ea.O$)(e)*a,l=(0,ea.O$)(t),c=l*n+s*r;return[(0,ea.fv)(u*i-c*o,s*n-l*r),(0,ea.ZR)(c*i+u*o)]}return a.invert=function(e,t){var a=(0,ea.mC)(t),s=(0,ea.mC)(e)*a,u=(0,ea.O$)(e)*a,l=(0,ea.O$)(t),c=l*i-u*o;return[(0,ea.fv)(u*i+l*o,s*n+c*r),(0,ea.ZR)(c*n-s*r)]},a}function tl(){var e,t=[];return{point:function(t,n,r){e.push([t,n,r])},lineStart:function(){t.push(e=[])},lineEnd:es.Z,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}}function tc(e,t){return(0,ea.Wn)(e[0]-t[0])=0;--o)i.point((c=l[o])[0],c[1]);else r(h.x,h.p.x,-1,i);h=h.p}l=(h=h.o).z,p=!p}while(!h.v);i.lineEnd()}}}function tp(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r0){for(f||(i.polygonStart(),f=!0),i.lineStart(),e=0;e1&&2&u&&h.push(h.pop().concat(h.shift())),a.push(h.filter(tm))}}return h}}function tm(e){return e.length>1}function tg(e,t){return((e=e.x)[0]<0?e[1]-ea.ou-ea.Ho:ea.ou-e[1])-((t=t.x)[0]<0?t[1]-ea.ou-ea.Ho:ea.ou-t[1])}ti.invert=ti;var ty=td(function(){return!0},function(e){var t,n=NaN,r=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,a){var s,u,l,c,f,h,p=o>0?ea.pi:-ea.pi,d=(0,ea.Wn)(o-n);(0,ea.Wn)(d-ea.pi)0?ea.ou:-ea.ou),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(p,r),e.point(o,r),t=0):i!==p&&d>=ea.pi&&((0,ea.Wn)(n-i)ea.Ho?(0,ea.z4)(((0,ea.O$)(u)*(f=(0,ea.mC)(a))*(0,ea.O$)(l)-(0,ea.O$)(a)*(c=(0,ea.mC)(u))*(0,ea.O$)(s))/(c*f*h)):(u+a)/2,e.point(i,r),e.lineEnd(),e.lineStart(),e.point(p,r),t=0),e.point(n=o,r=a),i=p},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}},function(e,t,n,r){var i;if(null==e)i=n*ea.ou,r.point(-ea.pi,i),r.point(0,i),r.point(ea.pi,i),r.point(ea.pi,0),r.point(ea.pi,-i),r.point(0,-i),r.point(-ea.pi,-i),r.point(-ea.pi,0),r.point(-ea.pi,i);else if((0,ea.Wn)(e[0]-t[0])>ea.Ho){var o=e[0]-t[2]?-n:n)+ea.BZ-ea.Ho)%ea.BZ}var tv=e=>e;function tx(e){return function(t){var n=new tw;for(var r in e)n[r]=e[r];return n.stream=t,n}}function tw(){}tw.prototype={constructor:tw,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var t_=1/0,tS=1/0,tO=-1/0,tE=tO,tA={point:function(e,t){etO&&(tO=e),ttE&&(tE=t)},lineStart:es.Z,lineEnd:es.Z,polygonStart:es.Z,polygonEnd:es.Z,result:function(){var e=[[t_,tS],[tO,tE]];return tO=tE=-(tS=t_=1/0),e}};function tT(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=r&&e.clipExtent(null),(0,e_.Z)(n,e.stream(tA)),t(tA.result()),null!=r&&e.clipExtent(r),e}function tM(e,t,n){return tT(e,function(n){var r=t[1][0]-t[0][0],i=t[1][1]-t[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),a=+t[0][0]+(r-o*(n[1][0]+n[0][0]))/2,s=+t[0][1]+(i-o*(n[1][1]+n[0][1]))/2;e.scale(150*o).translate([a,s])},n)}var tP=(0,ea.mC)(30*ea.uR);function tj(e,t){return+t?function(e,t){function n(r,i,o,a,s,u,l,c,f,h,p,d,m,g){var y=l-r,b=c-i,v=y*y+b*b;if(v>4*t&&m--){var x=a+h,w=s+p,_=u+d,S=(0,ea._b)(x*x+w*w+_*_),O=(0,ea.ZR)(_/=S),E=(0,ea.Wn)((0,ea.Wn)(_)-1)t||(0,ea.Wn)((y*P+b*j)/v-.5)>.3||a*h+s*p+u*d0?1:e<0?-1:0},tG=Math.sqrt;function tV(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function tW(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function t$(e,t){return[e[0]+t[0],e[1]+t[1],e[2]+t[2]]}function tY(e){var t=tG(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);return[e[0]/t,e[1]/t,e[2]/t]}function tX(e){var t;return[tU(e[1],e[0])*tD,((t=tN(-1,tH(1,e[2])))>1?tI:t<-1?-tI:Math.asin(t))*tD]}function tq(e){let t=e[0]*tz,n=e[1]*tz,r=tB(n);return[r*tB(t),r*tF(t),tF(n)]}function tK(e){return tV((e=e.map(e=>tq(e)))[0],tW(e[2],e[1]))}function tQ(e,t,n){e=tq(e),t=tq(t),n=tq(n);let r=tZ(tV(tW(t,e),n));return tX(tY(t$(e,t)).map(e=>r*e))}var tJ=n(93963);function t0(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n2&&void 0!==arguments[2]&&arguments[2];return n?(t&&eB.hasOwnProperty(t.type)?eB[t.type]:eH)(t,e):function(e,t,n){if(void 0===n&&(n={}),!e)throw Error("point is required");if(!t)throw Error("polygon is required");var r=function(e){if(!e)throw Error("coord is required");if(!Array.isArray(e)){if("Feature"===e.type&&null!==e.geometry&&"Point"===e.geometry.type)return e.geometry.coordinates;if("Point"===e.type)return e.coordinates}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return e;throw Error("coord must be GeoJSON Point or an Array of numbers")}(e),i="Feature"===t.type?t.geometry:t,o=i.type,a=t.bbox,s=i.coordinates;if(a&&!1==(a[0]<=r[0]&&a[1]<=r[1]&&a[2]>=r[0]&&a[3]>=r[1]))return!1;"Polygon"===o&&(s=[s]);for(var u=!1,l=0;l1&&void 0!==arguments[1]?arguments[1]:{},n=t.resolution,r=void 0===n?1/0:n,i=e.map(function(e){var t,n=[];return e.forEach(function(e){if(t){var i=180*(0,eI.Z)(e,t)/Math.PI;if(i>r)for(var o=(0,eD.Z)(t,e),a=1/Math.ceil(i/r),s=a;s<1;)n.push(o(s)),s+=a}n.push(t=e)}),n}),o=C(i),a=function(e,t){var n={type:"Polygon",coordinates:e},r=t3(eL(n),2),i=t3(r[0],2),o=i[0],a=i[1],s=t3(r[1],2),u=s[0],l=s[1];if(Math.min(Math.abs(u-o),Math.abs(l-a))u||l>=89||a<=-89;return(function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minLng,r=t.maxLng,i=t.minLat,o=t.maxLat,a=Math.round(Math.pow(360/e,2)/Math.PI),s=(1+Math.sqrt(5))/2,u=function(e){return a*(Math.cos((e+90)*Math.PI/180)+1)/2},l=[void 0!==o?Math.ceil(u(o)):0,void 0!==i?Math.floor(u(i)):a-1],c=void 0===n&&void 0===r?function(){return!0}:void 0===n?function(e){return e<=r}:void 0===r?function(e){return e>=n}:r>=n?function(e){return e>=n&&e<=r}:function(e){return e>=n||e<=r},f=[],h=l[0];h<=l[1];h++){var p=h/s*360%360-180;c(p)&&f.push([p,Math.acos(2*h/a-1)/Math.PI*180-90])}return f})(t,{minLng:o,maxLng:u,minLat:a,maxLat:l}).filter(function(e){return t6(e,n,c)})}(e,r),s=[].concat(t5(o),t5(a)),u={type:"Polygon",coordinates:e},l=t3(eL(u),2),c=t3(l[0],2),f=c[0],h=c[1],p=t3(l[1],2),d=p[0],m=p[1],g=f>d||m>=89||h<=-89,y=[];if(g){var b=(function(e){let t=function(e){if(t.delaunay=null,t._data=e,"object"==typeof t._data&&"FeatureCollection"===t._data.type&&(t._data=t._data.features),"object"==typeof t._data){let e=t._data.map(e=>[t._vx(e),t._vy(e),e]).filter(e=>isFinite(e[0]+e[1]));t.points=e.map(e=>[e[0],e[1]]),t.valid=e.map(e=>e[2]),t.delaunay=function(e){let t=function(e){if(e.length<2)return{};let t=0;for(;isNaN(e[t][0]+e[t][1])&&t++2?e[2]*ea.uR:0),t.invert=function(t){return t=e.invert(t[0]*ea.uR,t[1]*ea.uR),t[0]*=ea.RW,t[1]*=ea.RW,t},t}(e[t]),r=(function(e){var t,n,r,i,o,a,s,u,l,c,f=150,h=480,p=250,d=0,m=0,g=0,y=0,b=0,v=0,x=1,w=1,_=null,S=ty,O=null,E=tv,A=.5;function T(e){return u(e[0]*ea.uR,e[1]*ea.uR)}function M(e){return(e=u.invert(e[0],e[1]))&&[e[0]*ea.RW,e[1]*ea.RW]}function P(){var e=tk(f,0,0,x,w,v).apply(null,t(d,m)),r=tk(f,h-e[0],p-e[1],x,w,v);return n=to(g,y,b),s=tr(t,r),u=tr(n,s),a=tj(s,A),j()}function j(){return l=c=null,T}return T.stream=function(e){var t;return l&&c===e?l:l=tC((t=n,tx({point:function(e,n){var r=t(e,n);return this.stream.point(r[0],r[1])}}))(S(a(E(c=e)))))},T.preclip=function(e){return arguments.length?(S=e,_=void 0,j()):S},T.postclip=function(e){return arguments.length?(E=e,O=r=i=o=null,j()):E},T.clipAngle=function(e){return arguments.length?(S=+e?function(e){var t=(0,ea.mC)(e),n=6*ea.uR,r=t>0,i=(0,ea.Wn)(t)>ea.Ho;function o(e,n){return(0,ea.mC)(e)*(0,ea.mC)(n)>t}function a(e,n,r){var i=eg(e),o=eg(n),a=[1,0,0],s=eb(i,o),u=ey(s,s),l=s[0],c=u-l*l;if(!c)return!r&&e;var f=t*u/c,h=-t*l/c,p=eb(a,s),d=ex(a,f);ev(d,ex(s,h));var m=ey(d,p),g=ey(p,p),y=m*m-g*(ey(d,d)-1);if(!(y<0)){var b=(0,ea._b)(y),v=ex(p,(-m-b)/g);if(ev(v,d),v=em(v),!r)return v;var x,w=e[0],_=n[0],S=e[1],O=n[1];_0^v[1]<((0,ea.Wn)(v[0]-w)ea.pi^(w<=v[0]&&v[0]<=_)){var M=ex(p,(-m+b)/g);return ev(M,d),[v,em(M)]}}}function s(t,n){var i=r?e:ea.pi-e,o=0;return t<-i?o|=1:t>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return td(o,function(e){var t,n,u,l,c;return{lineStart:function(){l=u=!1,c=1},point:function(f,h){var p,d,m=[f,h],g=o(f,h),y=r?g?0:s(f,h):g?s(f+(f<0?ea.pi:-ea.pi),h):0;!t&&(l=u=g)&&e.lineStart(),g!==u&&(!(d=a(t,m))||tc(t,d)||tc(m,d))&&(m[2]=1),g!==u?(c=0,g?(e.lineStart(),d=a(m,t),e.point(d[0],d[1])):(d=a(t,m),e.point(d[0],d[1],2),e.lineEnd()),t=d):i&&t&&r^g&&!(y&n)&&(p=a(m,t,!0))&&(c=0,r?(e.lineStart(),e.point(p[0][0],p[0][1]),e.point(p[1][0],p[1][1]),e.lineEnd()):(e.point(p[1][0],p[1][1]),e.lineEnd(),e.lineStart(),e.point(p[0][0],p[0][1],3))),!g||t&&tc(t,m)||e.point(m[0],m[1]),t=m,u=g,n=y},lineEnd:function(){u&&e.lineEnd(),t=null},clean:function(){return c|(l&&u)<<1}}},function(t,r,i,o){!function(e,t,n,r,i,o){if(n){var a=(0,ea.mC)(t),s=(0,ea.O$)(t),u=r*n;null==i?(i=t+r*ea.BZ,o=t-u/2):(i=tb(a,i),o=tb(a,o),(r>0?io)&&(i+=r*ea.BZ));for(var l,c=i;r>0?c>o:cu(i,o)^s>0)do l.point(0===c||3===c?e:n,c>1?r:t);while((c=(c+s+4)%4)!==f);else l.point(o[0],o[1])}function a(r,i){return(0,ea.Wn)(r[0]-e)0?0:3:(0,ea.Wn)(r[0]-n)0?2:1:(0,ea.Wn)(r[1]-t)0?1:0:i>0?3:2}function s(e,t){return u(e.x,t.x)}function u(e,t){var n=a(e,1),r=a(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(a){var u,l,c,f,h,p,d,m,g,y,b,v=a,x=tl(),w={point:_,lineStart:function(){w.point=S,l&&l.push(c=[]),y=!0,g=!1,d=m=NaN},lineEnd:function(){u&&(S(f,h),p&&g&&x.rejoin(),u.push(x.result())),w.point=_,g&&v.lineEnd()},polygonStart:function(){v=x,u=[],l=[],b=!0},polygonEnd:function(){var t=function(){for(var t=0,n=0,i=l.length;nr&&(h-o)*(r-a)>(p-a)*(e-o)&&++t:p<=r&&(h-o)*(r-a)<(p-a)*(e-o)&&--t;return t}(),n=b&&t,i=(u=C(u)).length;(n||i)&&(a.polygonStart(),n&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),i&&th(u,s,t,o,a),a.polygonEnd()),v=a,u=l=c=null}};function _(e,t){i(e,t)&&v.point(e,t)}function S(o,a){var s=i(o,a);if(l&&c.push([o,a]),y)f=o,h=a,p=s,y=!1,s&&(v.lineStart(),v.point(o,a));else if(s&&g)v.point(o,a);else{var u=[d=Math.max(-1e9,Math.min(1e9,d)),m=Math.max(-1e9,Math.min(1e9,m))],x=[o=Math.max(-1e9,Math.min(1e9,o)),a=Math.max(-1e9,Math.min(1e9,a))];(function(e,t,n,r,i,o){var a,s=e[0],u=e[1],l=t[0],c=t[1],f=0,h=1,p=l-s,d=c-u;if(a=n-s,p||!(a>0)){if(a/=p,p<0){if(a0){if(a>h)return;a>f&&(f=a)}if(a=i-s,p||!(a<0)){if(a/=p,p<0){if(a>h)return;a>f&&(f=a)}else if(p>0){if(a0)){if(a/=d,d<0){if(a0){if(a>h)return;a>f&&(f=a)}if(a=o-u,d||!(a<0)){if(a/=d,d<0){if(a>h)return;a>f&&(f=a)}else if(d>0){if(a0&&(e[0]=s+f*p,e[1]=u+f*d),h<1&&(t[0]=s+h*p,t[1]=u+h*d),!0}}}}})(u,x,e,t,n,r)?(g||(v.lineStart(),v.point(u[0],u[1])),v.point(x[0],x[1]),s||v.lineEnd(),b=!1):s&&(v.lineStart(),v.point(o,a),b=!1)}d=o,m=a,g=s}return w}}(O=+e[0][0],r=+e[0][1],i=+e[1][0],o=+e[1][1]),j()):null==O?null:[[O,r],[i,o]]},T.scale=function(e){return arguments.length?(f=+e,P()):f},T.translate=function(e){return arguments.length?(h=+e[0],p=+e[1],P()):[h,p]},T.center=function(e){return arguments.length?(d=e[0]%360*ea.uR,m=e[1]%360*ea.uR,P()):[d*ea.RW,m*ea.RW]},T.rotate=function(e){return arguments.length?(g=e[0]%360*ea.uR,y=e[1]%360*ea.uR,b=e.length>2?e[2]%360*ea.uR:0,P()):[g*ea.RW,y*ea.RW,b*ea.RW]},T.angle=function(e){return arguments.length?(v=e%360*ea.uR,P()):v*ea.RW},T.reflectX=function(e){return arguments.length?(x=e?-1:1,P()):x<0},T.reflectY=function(e){return arguments.length?(w=e?-1:1,P()):w<0},T.precision=function(e){return arguments.length?(a=tj(s,A=e*e),j()):(0,ea._b)(A)},T.fitExtent=function(e,t){return tM(T,e,t)},T.fitSize=function(e,t){return tM(T,[[0,0],e],t)},T.fitWidth=function(e,t){return tT(T,function(t){var n=+e,r=n/(t[1][0]-t[0][0]),i=(n-r*(t[1][0]+t[0][0]))/2,o=-r*t[0][1];T.scale(150*r).translate([i,o])},t)},T.fitHeight=function(e,t){return tT(T,function(t){var n=+e,r=n/(t[1][1]-t[0][1]),i=-r*t[0][0],o=(n-r*(t[1][1]+t[0][1]))/2;T.scale(150*r).translate([i,o])},t)},function(){return t=e.apply(this,arguments),T.invert=t.invert&&M,P()}})(function(){return tR})().scale(250).clipAngle(142).translate([0,0]).scale(1).rotate(n.invert([180,0]));e=e.map(r);let i=[],o=1;for(let t=0,n=e.length;t1e32?i.push(t):n>o&&(o=n)}let a=1e6*tG(o);i.forEach(t=>e[t]=[a,0]),e.push([0,a]),e.push([-a,0]),e.push([0,-a]);let s=tn.from(e);s.projection=r;let{triangles:u,halfedges:l,inedges:c}=s,f=[];for(let n=0,r=l.length;ne.length-3-1&&(u[n]=t);return s}(e),n=function(e){let{triangles:t}=e;if(!t)return[];let n=[];for(let e=0,r=t.length/3;e{if(e[0]!==e[1]&&!(0>tK(e.map(e=>t[e]))))for(let t=0,r;t<3;t++)r=(t+1)%3,n.add((0,k.Z)([e[t],e[r]]).join("-"))}),Array.from(n,e=>e.split("-").map(Number)))}(n,e),i=function(e,t){let n=[];return e.forEach(e=>{for(let t=0;t<3;t++){let r=e[t],i=e[(t+1)%3];n[r]=n[r]||[],n[r].push(i)}}),0===e.length&&(2===t?(n[0]=[1],n[1]=[0]):1===t&&(n[0]=[])),n}(n,e.length),o=function(e,t){function n(e,t){let n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}return function(r,i,o){void 0===o&&(o=0);let a,s,u=o,l=tq([r,i]);do a=o,o=null,s=n(l,tq(t[a])),e[a].forEach(e=>{let r=n(l,tq(t[e]));if(r{let n=t.map(t=>e[t]).map(tq),r=t$(t$(tW(n[1],n[0]),tW(n[2],n[1])),tW(n[0],n[2]));return tX(tY(r))}),{polygons:s,centers:u}=function(e,t,n){let r=[],i=e.slice();if(0===t.length){if(n.length<2)return{polygons:r,centers:i};if(2===n.length){let e=tq(n[0]),t=tq(n[1]),o=tY(t$(e,t)),s=tY(tW(e,t)),u=tW(o,s),l=[o,tW(o,u),tW(tW(o,u),u),tW(tW(tW(o,u),u),u)].map(tX).map(a);return r.push(l),r.push(l.slice().reverse()),{polygons:r,centers:i}}}t.forEach((e,t)=>{for(let n=0;n<3;n++){let i=e[n],o=e[(n+1)%3],a=e[(n+2)%3];r[i]=r[i]||[],r[i].push([o,a,t,[i,o,a]])}});let o=r.map(e=>{let t=[e[0][2]],r=e[0][1];for(let n=1;n2)return t;if(2==t.length){let r=tQ(n[e[0][3][0]],n[e[0][3][1]],i[t[0]]),o=tQ(n[e[0][3][2]],n[e[0][3][0]],i[t[0]]),s=a(r),u=a(o);return[t[0],u,t[1],s]}});function a(e){let n=-1;return i.slice(t.length,1/0).forEach((r,i)=>{r[0]===e[0]&&r[1]===e[1]&&(n=i+t.length)}),n<0&&(n=i.length,i.push(e)),n}return{polygons:o,centers:i}}(a,n,e),l=function(e){let t=[];return e.forEach(e=>{if(!e)return;let n=e[e.length-1];for(let r of e)r>n&&t.push([n,r]),n=r}),t}(s),c=function(e,t){let n;let r=new Set,i=[];e.map(e=>{if(!(tK(e.map(e=>t[e>t.length?0:e]))>1e-12))for(let t=0;t<3;t++){let n=[e[t],e[(t+1)%3]],i=`${n[0]}-${n[1]}`;r.has(i)?r.delete(i):r.add(`${n[1]}-${n[0]}`)}});let o=new Map;if(r.forEach(e=>{e=e.split("-").map(Number),o.set(e[0],e[1]),n=e[0]}),void 0===n)return i;let a=n;do{i.push(a);let e=o.get(a);o.set(a,-1),a=e}while(a>-1&&a!==n);return i}(n,e);return{delaunay:t,edges:r,triangles:n,centers:u,neighbors:i,polygons:s,mesh:l,hull:c,urquhart:function(e){let t=new Map,i=new Map;return r.forEach((n,r)=>{let o=n.join("-");t.set(o,e[r]),i.set(o,!0)}),n.forEach(e=>{let n=0,r=-1;for(let i=0;i<3;i++){let o=(0,k.Z)([e[i],e[(i+1)%3]]).join("-");t.get(o)>n&&(n=t.get(o),r=o)}i.set(r,!1)}),r.map(e=>i.get(e.join("-")))},find:o}}(t.points)}return t};return t._vx=function(e){return"object"==typeof e&&"type"in e?e5(e)[0]:0 in e?e[0]:void 0},t._vy=function(e){return"object"==typeof e&&"type"in e?e5(e)[1]:1 in e?e[1]:void 0},t.x=function(e){return e?(t._vx=e,t):t._vx},t.y=function(e){return e?(t._vy=e,t):t._vy},t.polygons=function(e){if(void 0!==e&&t(e),!t.delaunay)return!1;let n={type:"FeatureCollection",features:[]};return 0===t.valid.length||(t.delaunay.polygons.forEach((e,r)=>n.features.push({type:"Feature",geometry:e?{type:"Polygon",coordinates:[[...e,e[0]].map(e=>t.delaunay.centers[e])]}:null,properties:{site:t.valid[r],sitecoordinates:t.points[r],neighbours:t.delaunay.neighbors[r]}})),1===t.valid.length&&n.features.push({type:"Feature",geometry:{type:"Sphere"},properties:{site:t.valid[0],sitecoordinates:t.points[0],neighbours:[]}})),n},t.triangles=function(e){return void 0!==e&&t(e),!!t.delaunay&&{type:"FeatureCollection",features:t.delaunay.triangles.map((e,n)=>((e=e.map(e=>t.points[e])).center=t.delaunay.centers[n],e)).filter(e=>tK(e)>0).map(e=>({type:"Feature",properties:{circumcenter:e.center},geometry:{type:"Polygon",coordinates:[[...e,e[0]]]}}))}},t.links=function(e){if(void 0!==e&&t(e),!t.delaunay)return!1;let n=t.delaunay.edges.map(e=>(0,eI.Z)(t.points[e[0]],t.points[e[1]])),r=t.delaunay.urquhart(n);return{type:"FeatureCollection",features:t.delaunay.edges.map((e,i)=>({type:"Feature",properties:{source:t.valid[e[0]],target:t.valid[e[1]],length:n[i],urquhart:!!r[i]},geometry:{type:"LineString",coordinates:[t.points[e[0]],t.points[e[1]]]}}))}},t.mesh=function(e){return void 0!==e&&t(e),!!t.delaunay&&{type:"MultiLineString",coordinates:t.delaunay.edges.map(e=>[t.points[e[0]],t.points[e[1]]])}},t.cellMesh=function(e){if(void 0!==e&&t(e),!t.delaunay)return!1;let{centers:n,polygons:r}=t.delaunay,i=[];for(let e of r)if(e)for(let t=e.length,r=e[t-1],o=e[0],a=0;ar&&i.push([n[r],n[o]]);return{type:"MultiLineString",coordinates:i}},t._found=void 0,t.find=function(e,n,r){if(t._found=t.delaunay.find(e,n,t._found),!r||(0,eI.Z)([e,n],t.points[t._found])r[e]),r[n[0]]]]}},e?t(e):t})(s).triangles(),v=new Map(s.map(function(e,t){var n=t3(e,2),r=n[0],i=n[1];return["".concat(r,"-").concat(i),t]}));b.features.forEach(function(e){var t,n=e.geometry.coordinates[0].slice(0,3).reverse(),r=[];if(n.forEach(function(e){var t=t3(e,2),n=t[0],i=t[1],o="".concat(n,"-").concat(i);v.has(o)&&r.push(v.get(o))}),3===r.length){if(r.some(function(e){return e=t&&(++n,r+=t);else{let i=-1;for(let o of e)null!=(o=t(o,++i,e))&&(o=+o)>=o&&(++n,r+=o)}if(n)return r/n}(r,function(t){return t[e]})}),u,g))return"continue";(t=y).push.apply(t,t5(n))},_=0,S=x.triangles.length;_2&&void 0!==arguments[2]?arguments[2]:0,r=(90-e)*Math.PI/180,i=(90-t)*Math.PI/180;return[n*Math.sin(r)*Math.cos(i),n*Math.cos(r),n*Math.sin(r)*Math.sin(i)]}(n[1],r,t)})});return R.flatten(n)}function x(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return{indices:t?h.indices:h.indices.slice().reverse(),vertices:v([h.points],e).vertices,uvs:p}}return s&&b(function(){for(var e=v(f,t),r=e.vertices,i=e.holes,o=v(f,n).vertices,a=C([o,r]),s=Math.round(o.length/3),u=new Set(i),l=0,c=[],h=0;h=0;g--)for(var y=0;y=0&&i<1?(s=o,u=a):i>=1&&i<2?(s=a,u=o):i>=2&&i<3?(u=o,l=a):i>=3&&i<4?(u=a,l=o):i>=4&&i<5?(s=a,l=o):i>=5&&i<6&&(s=o,l=a);var c=n-o/2;return r(s+c,u+c,l+c)}var K={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Q=/^#[a-fA-F0-9]{6}$/,J=/^#[a-fA-F0-9]{8}$/,ee=/^#[a-fA-F0-9]{3}$/,et=/^#[a-fA-F0-9]{4}$/,en=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,er=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,ei=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,eo=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function ea(e){if("string"!=typeof e)throw new $(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return K[t]?"#"+K[t]:e}(e);if(t.match(Q))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(J)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(ee))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(et)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var i=en.exec(t);if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10)};var o=er.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var a=ei.exec(t);if(a){var s="rgb("+q(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",u=en.exec(s);if(!u)throw new $(4,t,s);return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10)}}var l=eo.exec(t.substring(0,50));if(l){var c="rgb("+q(parseInt(""+l[1],10),parseInt(""+l[2],10)/100,parseInt(""+l[3],10)/100)+")",f=en.exec(c);if(!f)throw new $(4,t,c);return{red:parseInt(""+f[1],10),green:parseInt(""+f[2],10),blue:parseInt(""+f[3],10),alpha:parseFloat(""+l[4])>1?parseFloat(""+l[4])/100:parseFloat(""+l[4])}}throw new $(5)}var es=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function eu(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function el(e){return eu(Math.round(255*e))}function ec(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return es("#"+eu(e)+eu(t)+eu(n));if("object"==typeof e&&void 0===t&&void 0===n)return es("#"+eu(e.red)+eu(e.green)+eu(e.blue));throw new $(6)}var ef=function e(t,n,r){return function(){var i=r.concat(Array.prototype.slice.call(arguments));return i.length>=n?t.apply(this,i):e(t,n,i)}}(r=function(e,t){if("transparent"===t)return t;var n=ea(t),r="number"==typeof n.alpha?n.alpha:1;return function(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var i=ea(e);return"rgba("+i.red+","+i.green+","+i.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?ec(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?ec(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new $(7)}((0,F.Z)({},n,{alpha:Math.max(0,Math.min(1,(100*r+100*parseFloat(e))/100))}))},r.length,[]),eh=n(49310),ep=n(98550),ed=n(37299);function em(e){return function(e){if(Array.isArray(e))return ey(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||eg(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eg(e,t){if(e){if("string"==typeof e)return ey(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ey(e,t)}}function ey(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=arguments.length,i=Array(r>3?r-3:0),o=3;o2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,i=e.camera;if(t){var o=new eb.Vector3(0,0,0),a=2*Math.max.apply(Math,em(Object.entries(t).map(function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,2)||eg(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],r=t[1];return Math.max.apply(Math,em(r.map(function(e){return Math.abs(o[n]-e)})))})))/Math.atan((1-2*r/e.height)*i.fov*Math.PI/180),s=a/i.aspect,u=Math.max(a,s);if(u>0){var l=o.clone().sub(i.position).normalize().multiplyScalar(-u);this.cameraPosition(l,o,n)}}return this},getBbox:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},n=new eb.Box3(new eb.Vector3(0,0,0),new eb.Vector3(0,0,0)),r=e.objects.filter(t);return r.length?(r.forEach(function(e){return n.expandByObject(e)}),Object.assign.apply(Object,em(["x","y","z"].map(function(e){var t,r,i,o;return t={},r=e,i=[n.min[e],n.max[e]],(r="symbol"==typeof(o=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||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(r,"string"))?o:String(o))in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t})))):null},getScreenCoords:function(e,t,n,r){var i=new eb.Vector3(t,n,r);return i.project(this.camera()),{x:(i.x+1)*e.width/2,y:-(i.y-1)*e.height/2}},getSceneCoords:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=new eb.Vector2(t/e.width*2-1,-(2*(n/e.height))+1),o=new eb.Raycaster;return o.setFromCamera(i,e.camera),Object.assign({},o.ray.at(r,new eb.Vector3))},intersectingObjects:function(e,t,n){var r=new eb.Vector2(t/e.width*2-1,-(2*(n/e.height))+1),i=new eb.Raycaster;return i.params.Line.threshold=e.lineHoverPrecision,i.setFromCamera(r,e.camera),i.intersectObjects(e.objects,!0)},renderer:function(e){return e.renderer},scene:function(e){return e.scene},camera:function(e){return e.camera},postProcessingComposer:function(e){return e.postProcessingComposer},controls:function(e){return e.controls},tbControls:function(e){return e.controls}},stateInit:function(){return{scene:new eb.Scene,camera:new eb.PerspectiveCamera,clock:new eb.Clock}},init:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.controlType,i=void 0===r?"trackball":r,o=n.rendererConfig,a=void 0===o?{}:o,s=n.extraRenderers,u=n.waitForLoadComplete;e.innerHTML="",e.appendChild(t.container=document.createElement("div")),t.container.className="scene-container",t.container.style.position="relative",t.container.appendChild(t.navInfo=document.createElement("div")),t.navInfo.className="scene-nav-info",t.navInfo.textContent=({orbit:"Left-click: rotate, Mouse-wheel/middle-click: zoom, Right-click: pan",trackball:"Left-click: rotate, Mouse-wheel/middle-click: zoom, Right-click: pan",fly:"WASD: move, R|F: up | down, Q|E: roll, up|down: pitch, left|right: yaw"})[i]||"",t.navInfo.style.display=t.showNavInfo?null:"none",t.toolTipElem=document.createElement("div"),t.toolTipElem.classList.add("scene-tooltip"),t.container.appendChild(t.toolTipElem),t.pointerPos=new eb.Vector2,t.pointerPos.x=-2,t.pointerPos.y=-2,["pointermove","pointerdown"].forEach(function(e){return t.container.addEventListener(e,function(n){if("pointerdown"===e&&(t.isPointerPressed=!0),!t.isPointerDragging&&"pointermove"===n.type&&(n.pressure>0||t.isPointerPressed)&&("touch"!==n.pointerType||void 0===n.movementX||[n.movementX,n.movementY].some(function(e){return Math.abs(e)>1}))&&(t.isPointerDragging=!0),t.enablePointerInteraction){var r,i,o,a=(r=t.container.getBoundingClientRect(),i=window.pageXOffset||document.documentElement.scrollLeft,o=window.pageYOffset||document.documentElement.scrollTop,{top:r.top+o,left:r.left+i});t.pointerPos.x=n.pageX-a.left,t.pointerPos.y=n.pageY-a.top,t.toolTipElem.style.top="".concat(t.pointerPos.y,"px"),t.toolTipElem.style.left="".concat(t.pointerPos.x,"px"),t.toolTipElem.style.transform="translate(-".concat(t.pointerPos.x/t.width*100,"%, ").concat(t.height-t.pointerPos.y<100?"calc(-100% - 8px)":"21px",")")}},{passive:!0})}),t.container.addEventListener("pointerup",function(e){t.isPointerPressed=!1,(!t.isPointerDragging||(t.isPointerDragging=!1,t.clickAfterDrag))&&requestAnimationFrame(function(){0===e.button&&t.onClick(t.hoverObj||null,e,t.intersectionPoint),2===e.button&&t.onRightClick&&t.onRightClick(t.hoverObj||null,e,t.intersectionPoint)})},{passive:!0,capture:!0}),t.container.addEventListener("contextmenu",function(e){t.onRightClick&&e.preventDefault()}),t.renderer=new eb.WebGLRenderer(Object.assign({antialias:!0,alpha:!0},a)),t.renderer.setPixelRatio(Math.min(2,window.devicePixelRatio)),t.container.appendChild(t.renderer.domElement),t.extraRenderers=void 0===s?[]:s,t.extraRenderers.forEach(function(e){e.domElement.style.position="absolute",e.domElement.style.top="0px",e.domElement.style.pointerEvents="none",t.container.appendChild(e.domElement)}),t.postProcessingComposer=new N(t.renderer),t.postProcessingComposer.addPass(new H(t.scene,t.camera)),t.controls=new({trackball:_,orbit:M,fly:C})[i](t.camera,t.renderer.domElement),"fly"===i&&(t.controls.movementSpeed=300,t.controls.rollSpeed=Math.PI/6,t.controls.dragToLook=!0),("trackball"===i||"orbit"===i)&&(t.controls.minDistance=.1,t.controls.maxDistance=t.skyRadius,t.controls.addEventListener("start",function(){t.controlsEngaged=!0}),t.controls.addEventListener("change",function(){t.controlsEngaged&&(t.controlsDragging=!0)}),t.controls.addEventListener("end",function(){t.controlsEngaged=!1,t.controlsDragging=!1})),[t.renderer,t.postProcessingComposer].concat(em(t.extraRenderers)).forEach(function(e){return e.setSize(t.width,t.height)}),t.camera.aspect=t.width/t.height,t.camera.updateProjectionMatrix(),t.camera.position.z=1e3,t.scene.add(t.skysphere=new eb.Mesh),t.skysphere.visible=!1,t.loadComplete=t.scene.visible=!(void 0===u||u),window.scene=t.scene},update:function(e,t){if(e.width&&e.height&&(t.hasOwnProperty("width")||t.hasOwnProperty("height"))&&(e.container.style.width="".concat(e.width,"px"),e.container.style.height="".concat(e.height,"px"),[e.renderer,e.postProcessingComposer].concat(em(e.extraRenderers)).forEach(function(t){return t.setSize(e.width,e.height)}),e.camera.aspect=e.width/e.height,e.camera.updateProjectionMatrix()),t.hasOwnProperty("skyRadius")&&e.skyRadius&&(e.controls.hasOwnProperty("maxDistance")&&t.skyRadius&&(e.controls.maxDistance=Math.min(e.controls.maxDistance,e.skyRadius)),e.camera.far=2.5*e.skyRadius,e.camera.updateProjectionMatrix(),e.skysphere.geometry=new eb.SphereGeometry(e.skyRadius)),t.hasOwnProperty("backgroundColor")){var n=ea(e.backgroundColor).alpha;void 0===n&&(n=1),e.renderer.setClearColor(new eb.Color(ef(1,e.backgroundColor)),n)}function r(){e.loadComplete=e.scene.visible=!0}t.hasOwnProperty("backgroundImageUrl")&&(e.backgroundImageUrl?new eb.TextureLoader().load(e.backgroundImageUrl,function(t){t.colorSpace=eb.SRGBColorSpace,e.skysphere.material=new eb.MeshBasicMaterial({map:t,side:eb.BackSide}),e.skysphere.visible=!0,e.onBackgroundImageLoaded&&setTimeout(e.onBackgroundImageLoaded),e.loadComplete||r()}):(e.skysphere.visible=!1,e.skysphere.material.map=null,e.loadComplete||r())),t.hasOwnProperty("showNavInfo")&&(e.navInfo.style.display=e.showNavInfo?null:"none"),t.hasOwnProperty("objects")&&((t.objects||[]).forEach(function(t){return e.scene.remove(t)}),e.objects.forEach(function(t){return e.scene.add(t)}))}});function ex(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 ew(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n1?i-1:0),a=1;a1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=e.globe.toGeoCoords(e.renderObjs.cameraPosition());if(void 0===t.lat&&void 0===t.lng&&void 0===t.altitude)return r;var i=Object.assign({},r,t);if(["lat","lng","altitude"].forEach(function(e){return i[e]=+i[e]}),n){for(;r.lng-i.lng>180;)r.lng-=360;for(;r.lng-i.lng<-180;)r.lng+=360;new eh.kX(r).to(i,n).easing(eh.oY.Cubic.InOut).onUpdate(o).start()}else o(i);return this;function o(t){var n=t.lat,r=t.lng,i=t.altitude;e.renderObjs.cameraPosition(e.globe.getCoords(n,r,i))}},getScreenCoords:function(e){for(var t,n=arguments.length,r=Array(n>1?n-1:0),i=1;i=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,eA),o=new b.Z(ew({waitForGlobeReady:r},i));return{globe:o,renderObjs:ev({controlType:"orbit",rendererConfig:t,waitForLoadComplete:r,extraRenderers:[new eT.CSS2DRenderer]}).skyRadius(500*o.getGlobeRadius()).showNavInfo(!1)}},init:function(e,t){var n=this;e.innerHTML="",e.appendChild(t.container=document.createElement("div")),t.container.style.position="relative";var r=document.createElement("div");t.container.appendChild(r),t.renderObjs(r),t.globe.rendererSize(t.renderObjs.renderer().getSize(new eT.Vector2)),this.pointOfView({altitude:2.5});var i=t.globe.getGlobeRadius(),o=t.renderObjs.controls();o.minDistance=1.01*i,o.maxDistance=100*i,o.enablePan=!1,o.enableDamping=!0,o.dampingFactor=.1,o.rotateSpeed=.3,o.zoomSpeed=.3,o.addEventListener("change",function(){var e=n.pointOfView();o.rotateSpeed=.2*e.altitude,o.zoomSpeed=(e.altitude+1)*.1,t.globe.setPointOfView(t.renderObjs.camera().position),t.onZoom&&t.onZoom(e)});var a=function(e){for(var t=e;t&&!t.hasOwnProperty("__globeObjType");)t=t.parent;return t},s={point:function(e){return e},arc:function(e){return e},polygon:function(e){return e.data},path:function(e){return e},hexbin:function(e){return e},hexPolygon:function(e){return e},tile:function(e){return e},label:function(e){return e},object:function(e){return e},custom:function(e){return e}};t.renderObjs.objects([new eT.AmbientLight(13421772),new eT.DirectionalLight(16777215,.6),t.globe]).hoverOrderComparator(function(e,t){var n=a(e),r=a(t),i=function(e){return!e};return i(n)-i(r)}).tooltipContent(function(e){var n={point:t.pointLabel,arc:t.arcLabel,polygon:t.polygonLabel,path:t.pathLabel,hexbin:t.hexLabel,hexPolygon:t.hexPolygonLabel,tile:t.tileLabel,label:t.labelLabel,object:t.objectLabel,custom:t.customLayerLabel},r=a(e),i=r&&r.__globeObjType;return r&&i&&n.hasOwnProperty(i)&&s.hasOwnProperty(i)&&(0,ep.Z)(n[i])(s[i](r.__data))||""}).onHover(function(e){var n={point:t.onPointHover,arc:t.onArcHover,polygon:t.onPolygonHover,path:t.onPathHover,hexbin:t.onHexHover,hexPolygon:t.onHexPolygonHover,tile:t.onTileHover,label:t.onLabelHover,object:t.onObjectHover,custom:t.onCustomLayerHover},r={globe:t.onGlobeClick,point:t.onPointClick,arc:t.onArcClick,polygon:t.onPolygonClick,path:t.onPathClick,hexbin:t.onHexClick,hexPolygon:t.onHexPolygonClick,tile:t.onTileClick,label:t.onLabelClick,object:t.onObjectClick,custom:t.onCustomLayerClick},i=a(e);if(i&&!n.hasOwnProperty(i.__globeObjType)&&(i=null),i!==t.hoverObj){var o=t.hoverObj?t.hoverObj.__globeObjType:null,u=t.hoverObj?s[o](t.hoverObj.__data):null,l=i?i.__globeObjType:null,c=i?s[l](i.__data):null;o&&o!==l&&n[o]&&n[o](null,u),l&&n[l]&&n[l](c,o===l?u:null),t.renderObjs.renderer().domElement.classList[l&&r[l]?"add":"remove"]("clickable"),t.hoverObj=i}}).onClick(function(e,r,i){if(e){var o={globe:t.onGlobeClick,point:t.onPointClick,arc:t.onArcClick,polygon:t.onPolygonClick,path:t.onPathClick,hexbin:t.onHexClick,hexPolygon:t.onHexPolygonClick,tile:t.onTileClick,label:t.onLabelClick,object:t.onObjectClick,custom:t.onCustomLayerClick},u=a(e),l=u.__globeObjType;if(u&&o.hasOwnProperty(l)&&o[l]){var c=[r];if("globe"===l){var f=n.toGeoCoords(i),h=f.lat,p=f.lng;c.unshift({lat:h,lng:p})}else c.push(n.toGeoCoords(i));s.hasOwnProperty(l)&&c.unshift(s[l](u.__data)),o[l].apply(o,c)}}}).onRightClick(function(e,r,i){if(e){var o={globe:t.onGlobeRightClick,point:t.onPointRightClick,arc:t.onArcRightClick,polygon:t.onPolygonRightClick,path:t.onPathRightClick,hexbin:t.onHexRightClick,hexPolygon:t.onHexPolygonRightClick,tile:t.onTileRightClick,label:t.onLabelRightClick,object:t.onObjectRightClick,custom:t.onCustomLayerRightClick},u=a(e),l=u.__globeObjType;if(u&&o.hasOwnProperty(l)&&o[l]){var c=[r];if("globe"===l){var f=n.toGeoCoords(i),h=f.lat,p=f.lng;c.unshift({lat:h,lng:p})}else c.push(n.toGeoCoords(i));s.hasOwnProperty(l)&&c.unshift(s[l](u.__data)),o[l].apply(o,c)}}}),this._animationCycle()}}),eI=n(13980),eD={width:eI.number,height:eI.number,backgroundColor:eI.string,backgroundImageUrl:eI.string,globeImageUrl:eI.string,bumpImageUrl:eI.string,showGlobe:eI.bool,showGraticules:eI.bool,showAtmosphere:eI.bool,atmosphereColor:eI.string,atmosphereAltitude:eI.number,globeMaterial:eI.object,onGlobeReady:eI.func,onGlobeClick:eI.func,onGlobeRightClick:eI.func,pointsData:eI.arrayOf(eI.object),pointLat:eI.oneOfType([eI.number,eI.string,eI.func]),pointLng:eI.oneOfType([eI.number,eI.string,eI.func]),pointColor:eI.oneOfType([eI.string,eI.func]),pointAltitude:eI.oneOfType([eI.number,eI.string,eI.func]),pointRadius:eI.oneOfType([eI.number,eI.string,eI.func]),pointResolution:eI.number,pointsMerge:eI.bool,pointsTransitionDuration:eI.number,pointLabel:eI.oneOfType([eI.string,eI.func]),onPointClick:eI.func,onPointRightClick:eI.func,onPointHover:eI.func,arcsData:eI.arrayOf(eI.object),arcStartLat:eI.oneOfType([eI.number,eI.string,eI.func]),arcStartLng:eI.oneOfType([eI.number,eI.string,eI.func]),arcEndLat:eI.oneOfType([eI.number,eI.string,eI.func]),arcEndLng:eI.oneOfType([eI.number,eI.string,eI.func]),arcColor:eI.oneOfType([eI.string,eI.arrayOf(eI.string),eI.func]),arcAltitude:eI.oneOfType([eI.number,eI.string,eI.func]),arcAltitudeAutoScale:eI.oneOfType([eI.number,eI.string,eI.func]),arcStroke:eI.oneOfType([eI.number,eI.string,eI.func]),arcCurveResolution:eI.number,arcCircularResolution:eI.number,arcDashLength:eI.oneOfType([eI.number,eI.string,eI.func]),arcDashGap:eI.oneOfType([eI.number,eI.string,eI.func]),arcDashInitialGap:eI.oneOfType([eI.number,eI.string,eI.func]),arcDashAnimateTime:eI.oneOfType([eI.number,eI.string,eI.func]),arcsTransitionDuration:eI.number,arcLabel:eI.oneOfType([eI.string,eI.func]),onArcClick:eI.func,onArcRightClick:eI.func,onArcHover:eI.func,polygonsData:eI.arrayOf(eI.object),polygonGeoJsonGeometry:eI.oneOfType([eI.string,eI.func]),polygonCapColor:eI.oneOfType([eI.string,eI.func]),polygonCapMaterial:eI.oneOfType([eI.object,eI.string,eI.func]),polygonSideColor:eI.oneOfType([eI.string,eI.func]),polygonSideMaterial:eI.oneOfType([eI.object,eI.string,eI.func]),polygonStrokeColor:eI.oneOfType([eI.string,eI.func]),polygonAltitude:eI.oneOfType([eI.number,eI.string,eI.func]),polygonCapCurvatureResolution:eI.oneOfType([eI.number,eI.string,eI.func]),polygonsTransitionDuration:eI.number,polygonLabel:eI.oneOfType([eI.string,eI.func]),onPolygonClick:eI.func,onPolygonRightClick:eI.func,onPolygonHover:eI.func,pathsData:eI.array,pathPoints:eI.oneOfType([eI.array,eI.string,eI.func]),pathPointLat:eI.oneOfType([eI.number,eI.string,eI.func]),pathPointLng:eI.oneOfType([eI.number,eI.string,eI.func]),pathPointAlt:eI.oneOfType([eI.number,eI.string,eI.func]),pathResolution:eI.number,pathColor:eI.oneOfType([eI.string,eI.arrayOf(eI.string),eI.func]),pathStroke:eI.oneOfType([eI.number,eI.string,eI.func]),pathDashLength:eI.oneOfType([eI.number,eI.string,eI.func]),pathDashGap:eI.oneOfType([eI.number,eI.string,eI.func]),pathDashInitialGap:eI.oneOfType([eI.number,eI.string,eI.func]),pathDashAnimateTime:eI.oneOfType([eI.number,eI.string,eI.func]),pathTransitionDuration:eI.number,pathLabel:eI.oneOfType([eI.string,eI.func]),onPathClick:eI.func,onPathRightClick:eI.func,onPathHover:eI.func,hexBinPointsData:eI.arrayOf(eI.object),hexBinPointLat:eI.oneOfType([eI.number,eI.string,eI.func]),hexBinPointLng:eI.oneOfType([eI.number,eI.string,eI.func]),hexBinPointWeight:eI.oneOfType([eI.number,eI.string,eI.func]),hexBinResolution:eI.number,hexMargin:eI.oneOfType([eI.number,eI.func]),hexTopColor:eI.func,hexSideColor:eI.func,hexAltitude:eI.oneOfType([eI.number,eI.func]),hexTopCurvatureResolution:eI.number,hexBinMerge:eI.bool,hexTransitionDuration:eI.number,hexLabel:eI.oneOfType([eI.string,eI.func]),onHexClick:eI.func,onHexRightClick:eI.func,onHexHover:eI.func,hexPolygonsData:eI.arrayOf(eI.object),hexPolygonGeoJsonGeometry:eI.oneOfType([eI.string,eI.func]),hexPolygonColor:eI.oneOfType([eI.string,eI.func]),hexPolygonAltitude:eI.oneOfType([eI.number,eI.string,eI.func]),hexPolygonResolution:eI.oneOfType([eI.number,eI.string,eI.func]),hexPolygonMargin:eI.oneOfType([eI.number,eI.string,eI.func]),hexPolygonCurvatureResolution:eI.oneOfType([eI.number,eI.string,eI.func]),hexPolygonsTransitionDuration:eI.number,hexPolygonLabel:eI.oneOfType([eI.string,eI.func]),onHexPolygonClick:eI.func,onHexPolygonRightClick:eI.func,onHexPolygonHover:eI.func,tilesData:eI.arrayOf(eI.object),tileLat:eI.oneOfType([eI.number,eI.string,eI.func]),tileLng:eI.oneOfType([eI.number,eI.string,eI.func]),tileAltitude:eI.oneOfType([eI.number,eI.string,eI.func]),tileWidth:eI.oneOfType([eI.number,eI.string,eI.func]),tileHeight:eI.oneOfType([eI.number,eI.string,eI.func]),tileUseGlobeProjection:eI.oneOfType([eI.bool,eI.string,eI.func]),tileMaterial:eI.oneOfType([eI.object,eI.string,eI.func]),tileCurvatureResolution:eI.oneOfType([eI.number,eI.string,eI.func]),tilesTransitionDuration:eI.number,tileLabel:eI.oneOfType([eI.string,eI.func]),onTileClick:eI.func,onTileRightClick:eI.func,onTileHover:eI.func,ringsData:eI.arrayOf(eI.object),ringLat:eI.oneOfType([eI.number,eI.string,eI.func]),ringLng:eI.oneOfType([eI.number,eI.string,eI.func]),ringAltitude:eI.oneOfType([eI.number,eI.string,eI.func]),ringColor:eI.oneOfType([eI.string,eI.arrayOf(eI.string),eI.func]),ringResolution:eI.number,ringMaxRadius:eI.oneOfType([eI.number,eI.string,eI.func]),ringPropagationSpeed:eI.oneOfType([eI.number,eI.string,eI.func]),ringRepeatPeriod:eI.oneOfType([eI.number,eI.string,eI.func]),labelsData:eI.arrayOf(eI.object),labelLat:eI.oneOfType([eI.number,eI.string,eI.func]),labelLng:eI.oneOfType([eI.number,eI.string,eI.func]),labelAltitude:eI.oneOfType([eI.number,eI.string,eI.func]),labelRotation:eI.oneOfType([eI.number,eI.string,eI.func]),labelText:eI.oneOfType([eI.string,eI.func]),labelSize:eI.oneOfType([eI.number,eI.string,eI.func]),labelTypeFace:eI.object,labelColor:eI.oneOfType([eI.string,eI.func]),labelResolution:eI.number,labelIncludeDot:eI.oneOfType([eI.bool,eI.string,eI.func]),labelDotRadius:eI.oneOfType([eI.number,eI.string,eI.func]),labelDotOrientation:eI.oneOfType([eI.string,eI.func]),labelsTransitionDuration:eI.number,labelLabel:eI.oneOfType([eI.string,eI.func]),onLabelClick:eI.func,onLabelRightClick:eI.func,onLabelHover:eI.func,htmlElementsData:eI.arrayOf(eI.object),htmlLat:eI.oneOfType([eI.number,eI.string,eI.func]),htmlLng:eI.oneOfType([eI.number,eI.string,eI.func]),htmlAltitude:eI.oneOfType([eI.number,eI.string,eI.func]),htmlElement:eI.oneOfType([eI.string,eI.func]),htmlTransitionDuration:eI.number,objectsData:eI.arrayOf(eI.object),objectLat:eI.oneOfType([eI.number,eI.string,eI.func]),objectLng:eI.oneOfType([eI.number,eI.string,eI.func]),objectAltitude:eI.oneOfType([eI.number,eI.string,eI.func]),objectRotation:eI.oneOfType([eI.shape({x:eI.number,y:eI.number,z:eI.number}),eI.string,eI.func]),objectFacesSurface:eI.oneOfType([eI.bool,eI.string,eI.func]),objectThreeObject:eI.oneOfType([eI.object,eI.string,eI.func]),objectLabel:eI.oneOfType([eI.string,eI.func]),onObjectClick:eI.func,onObjectRightClick:eI.func,onObjectHover:eI.func,customLayerData:eI.arrayOf(eI.object),customThreeObject:eI.oneOfType([eI.object,eI.string,eI.func]),customThreeObjectUpdate:eI.oneOfType([eI.string,eI.func]),customLayerLabel:eI.oneOfType([eI.string,eI.func]),onCustomLayerClick:eI.func,onCustomLayerRightClick:eI.func,onCustomLayerHover:eI.func,enablePointerInteraction:eI.bool,pointerEventsFilter:eI.func,lineHoverPrecision:eI.number,onZoom:eI.func},ez=function(e,t){var n="object"===c(t)?t:{wrapperElementType:t,methodNames:(arguments.length<=2?void 0:arguments[2])||void 0,initPropNames:(arguments.length<=3?void 0:arguments[3])||void 0},r=n.wrapperElementType,o=void 0===r?"div":r,a=n.nodeMapper,s=void 0===a?function(e){return e}:a,p=n.methodNames,d=void 0===p?[]:p,g=n.initPropNames,y=void 0===g?[]:g;return(0,i.forwardRef)(function(t,n){var r=(0,i.useRef)(),a=f((0,i.useState)({}),2),c=a[0],p=a[1];(0,i.useEffect)(function(){return p(t)});var g=(0,i.useMemo)(function(){return e(l(y.filter(function(e){return t.hasOwnProperty(e)}).map(function(e){return[e,t[e]]})))},[]);m(function(){g(s(r.current))},i.useLayoutEffect),m(function(){return g._destructor instanceof Function?g._destructor:void 0});var b=(0,i.useCallback)(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;rl==c>-l?(o=l,l=t[++f]):(o=c,c=r[++h]);let p=0;if(fl==c>-l?(a=l+o,s=o-(a-l),l=t[++f]):(a=c+o,s=o-(a-c),c=r[++h]),o=a,0!==s&&(i[p++]=s);fl==c>-l?(u=(a=o+l)-o,s=o-(a-u)+(l-u),l=t[++f]):(u=(a=o+c)-o,s=o-(a-u)+(c-u),c=r[++h]),o=a,0!==s&&(i[p++]=s);for(;f=z*l?u:-function(e,t,n,r,i,o,a){let s,u,l,c,f,h,p,d,m,g,y,b,v,x,w,_,S,O;let E=e-i,A=n-i,T=t-o,P=r-o;x=E*P,p=(h=134217729*E)-(h-E),d=E-p,m=(h=134217729*P)-(h-P),w=d*(g=P-m)-(x-p*m-d*m-p*g),_=T*A,p=(h=134217729*T)-(h-T),d=T-p,m=(h=134217729*A)-(h-A),y=w-(S=d*(g=A-m)-(_-p*m-d*m-p*g)),f=w-y,N[0]=w-(y+f)+(f-S),f=(b=x+y)-x,y=(v=x-(b-f)+(y-f))-_,f=v-y,N[1]=v-(y+f)+(f-_),f=(O=b+y)-b,N[2]=b-(O-f)+(y-f),N[3]=O;let M=function(e,t){let n=t[0];for(let e=1;e<4;e++)n+=t[e];return n}(0,N),j=U*a;if(M>=j||-M>=j||(f=e-E,s=e-(E+f)+(f-i),f=n-A,l=n-(A+f)+(f-i),f=t-T,u=t-(T+f)+(f-o),f=r-P,c=r-(P+f)+(f-o),0===s&&0===u&&0===l&&0===c)||(j=B*a+L*Math.abs(M),(M+=E*c+P*s-(T*l+A*u))>=j||-M>=j))return M;x=s*P,p=(h=134217729*s)-(h-s),d=s-p,m=(h=134217729*P)-(h-P),w=d*(g=P-m)-(x-p*m-d*m-p*g),_=u*A,p=(h=134217729*u)-(h-u),d=u-p,m=(h=134217729*A)-(h-A),y=w-(S=d*(g=A-m)-(_-p*m-d*m-p*g)),f=w-y,G[0]=w-(y+f)+(f-S),f=(b=x+y)-x,y=(v=x-(b-f)+(y-f))-_,f=v-y,G[1]=v-(y+f)+(f-_),f=(O=b+y)-b,G[2]=b-(O-f)+(y-f),G[3]=O;let C=I(4,N,4,G,H);x=E*c,p=(h=134217729*E)-(h-E),d=E-p,m=(h=134217729*c)-(h-c),w=d*(g=c-m)-(x-p*m-d*m-p*g),_=T*l,p=(h=134217729*T)-(h-T),d=T-p,m=(h=134217729*l)-(h-l),y=w-(S=d*(g=l-m)-(_-p*m-d*m-p*g)),f=w-y,G[0]=w-(y+f)+(f-S),f=(b=x+y)-x,y=(v=x-(b-f)+(y-f))-_,f=v-y,G[1]=v-(y+f)+(f-_),f=(O=b+y)-b,G[2]=b-(O-f)+(y-f),G[3]=O;let k=I(C,H,4,G,F);x=s*c,p=(h=134217729*s)-(h-s),d=s-p,m=(h=134217729*c)-(h-c),w=d*(g=c-m)-(x-p*m-d*m-p*g),_=u*l,p=(h=134217729*u)-(h-u),d=u-p,m=(h=134217729*l)-(h-l),y=w-(S=d*(g=l-m)-(_-p*m-d*m-p*g)),f=w-y,G[0]=w-(y+f)+(f-S),f=(b=x+y)-x,y=(v=x-(b-f)+(y-f))-_,f=v-y,G[1]=v-(y+f)+(f-_),f=(O=b+y)-b,G[2]=b-(O-f)+(y-f),G[3]=O;let R=I(k,F,4,G,Z);return Z[R-1]}(e,t,n,r,i,o,l)}D(4),D(4),D(4),D(4),D(4),D(4),D(4),D(4),D(4),D(8),D(8),D(8),D(4),D(8),D(8),D(8),D(12),D(192),D(192),D(4),D(4),D(4),D(4),D(4),D(4),D(4),D(4),D(8),D(8),D(8),D(8),D(8),D(8),D(8),D(8),D(8),D(4),D(4),D(4),D(8),D(16),D(16),D(16),D(32),D(32),D(48),D(64),D(1152),D(1152),D(4),D(4),D(4),D(4),D(4),D(4),D(4),D(4),D(4),D(4),D(24),D(24),D(24),D(24),D(24),D(24),D(24),D(24),D(24),D(24),D(1152),D(1152),D(1152),D(1152),D(1152),D(2304),D(2304),D(3456),D(5760),D(8),D(8),D(8),D(16),D(24),D(48),D(48),D(96),D(192),D(384),D(384),D(384),D(768),D(96),D(96),D(96),D(1152);let W=new Uint32Array(512);class ${static from(e,t=K,n=Q){let r=e.length,i=new Float64Array(2*r);for(let o=0;o>1;if(t>0&&"number"!=typeof e[0])throw Error("Expected coords to contain numbers.");this.coords=e;let n=Math.max(2*t-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(t)),this._hullPrev=new Uint32Array(t),this._hullNext=new Uint32Array(t),this._hullTri=new Uint32Array(t),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(t),this._dists=new Float64Array(t),this.update()}update(){let e,t,n;let{coords:r,_hullPrev:i,_hullNext:o,_hullTri:a,_hullHash:s}=this,u=r.length>>1,l=1/0,c=1/0,f=-1/0,h=-1/0;for(let e=0;ef&&(f=t),n>h&&(h=n),this._ids[e]=e}let p=(l+f)/2,d=(c+h)/2,m=1/0;for(let t=0;t0&&(t=n,m=i)}let b=r[2*t],v=r[2*t+1],x=1/0;for(let i=0;ir&&(e[t++]=i,r=this._dists[i])}this.hull=e.subarray(0,t),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(0>V(g,y,b,v,w,_)){let e=t,r=b,i=v;t=n,b=w,v=_,n=e,w=r,_=i}let S=function(e,t,n,r,i,o){let a=n-e,s=r-t,u=i-e,l=o-t,c=a*a+s*s,f=u*u+l*l,h=.5/(a*l-s*u);return{x:e+(l*c-s*f)*h,y:t+(a*f-u*c)*h}}(g,y,b,v,w,_);this._cx=S.x,this._cy=S.y;for(let e=0;e0&&2220446049250313e-31>=Math.abs(h-l)&&2220446049250313e-31>=Math.abs(p-c)||(l=h,c=p,f===e||f===t||f===n))continue;let d=0;for(let e=0,t=this._hashKey(h,p);e=0;)if((m=g)===d){m=-1;break}if(-1===m)continue;let y=this._addTriangle(m,f,o[m],-1,-1,a[m]);a[f]=this._legalize(y+2),a[m]=y,O++;let b=o[m];for(;g=o[b],0>V(h,p,r[2*b],r[2*b+1],r[2*g],r[2*g+1]);)y=this._addTriangle(b,f,g,a[f],-1,a[b]),a[f]=this._legalize(y+2),o[b]=b,O--,b=g;if(m===d)for(;0>V(h,p,r[2*(g=i[m])],r[2*g+1],r[2*m],r[2*m+1]);)y=this._addTriangle(g,f,m,-1,a[m],a[g]),this._legalize(y+2),a[g]=y,o[m]=m,O--,m=g;this._hullStart=i[f]=m,o[m]=i[b]=f,o[f]=b,s[this._hashKey(h,p)]=f,s[this._hashKey(r[2*m],r[2*m+1])]=m}this.hull=new Uint32Array(O);for(let e=0,t=this._hullStart;e0?3-n:1+n)/4}(e-this._cx,t-this._cy)*this._hashSize)%this._hashSize}_legalize(e){let{_triangles:t,_halfedges:n,coords:r}=this,i=0,o=0;for(;;){let a=n[e],s=e-e%3;if(o=s+(e+2)%3,-1===a){if(0===i)break;e=W[--i];continue}let u=a-a%3,l=s+(e+1)%3,c=u+(a+2)%3,f=t[o],h=t[e],p=t[l],d=t[c],m=function(e,t,n,r,i,o,a,s){let u=e-a,l=t-s,c=n-a,f=r-s,h=i-a,p=o-s,d=c*c+f*f,m=h*h+p*p;return u*(f*m-d*p)-l*(c*m-d*h)+(u*u+l*l)*(c*p-f*h)<0}(r[2*f],r[2*f+1],r[2*h],r[2*h+1],r[2*p],r[2*p+1],r[2*d],r[2*d+1]);if(m){t[e]=d,t[a]=f;let r=n[c];if(-1===r){let t=this._hullStart;do{if(this._hullTri[t]===c){this._hullTri[t]=e;break}t=this._hullPrev[t]}while(t!==this._hullStart)}this._link(e,r),this._link(a,n[o]),this._link(o,c);let s=u+(a+1)%3;i=n&&t[e[a]]>o;)e[a+1]=e[a--];e[a+1]=r}else{let i=n+r>>1,o=n+1,a=r;q(e,i,o),t[e[n]]>t[e[r]]&&q(e,n,r),t[e[o]]>t[e[r]]&&q(e,o,r),t[e[n]]>t[e[o]]&&q(e,n,o);let s=e[o],u=t[s];for(;;){do o++;while(t[e[o]]u);if(a=a-n?(X(e,t,o,r),X(e,t,n,a-1)):(X(e,t,n,a-1),X(e,t,o,r))}}function q(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function K(e){return e[0]}function Q(e){return e[1]}function J(e,t,n){var r=!1;t[0][0]===t[t.length-1][0]&&t[0][1]===t[t.length-1][1]&&(t=t.slice(0,t.length-1));for(var i=0,o=t.length-1;ie[1]!=l>e[1]&&e[0]<(u-a)*(e[1]-s)/(l-s)+a&&(r=!r)}return r}var ee,et,en,er,ei,eo=n(15852),ea=n(33909),es=n(60858),eu=new eo.dU,el=new eo.dU,ec={point:es.Z,lineStart:es.Z,lineEnd:es.Z,polygonStart:function(){eu=new eo.dU,ec.lineStart=ef,ec.lineEnd=eh},polygonEnd:function(){var e=+eu;el.add(e<0?ea.BZ+e:e),this.lineStart=this.lineEnd=this.point=es.Z},sphere:function(){el.add(ea.BZ)}};function ef(){ec.point=ep}function eh(){ed(ee,et)}function ep(e,t){ec.point=ed,ee=e,et=t,e*=ea.uR,t*=ea.uR,en=e,er=(0,ea.mC)(t=t/2+ea.pu),ei=(0,ea.O$)(t)}function ed(e,t){e*=ea.uR,t*=ea.uR,t=t/2+ea.pu;var n=e-en,r=n>=0?1:-1,i=r*n,o=(0,ea.mC)(t),a=(0,ea.O$)(t),s=ei*a,u=er*o+s*(0,ea.mC)(i),l=s*r*(0,ea.O$)(i);eu.add((0,ea.fv)(l,u)),en=e,er=o,ei=a}function em(e){return[(0,ea.fv)(e[1],e[0]),(0,ea.ZR)(e[2])]}function eg(e){var t=e[0],n=e[1],r=(0,ea.mC)(n);return[r*(0,ea.mC)(t),r*(0,ea.O$)(t),(0,ea.O$)(n)]}function ey(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function eb(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function ev(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function ex(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function ew(e){var t=(0,ea._b)(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var e_=n(2708),eS={point:eO,lineStart:eA,lineEnd:eT,polygonStart:function(){eS.point=eP,eS.lineStart=eM,eS.lineEnd=ej,f=new eo.dU,ec.polygonStart()},polygonEnd:function(){ec.polygonEnd(),eS.point=eO,eS.lineStart=eA,eS.lineEnd=eT,eu<0?(r=-(o=180),i=-(a=90)):f>ea.Ho?a=90:f<-ea.Ho&&(i=-90),p[0]=r,p[1]=o},sphere:function(){r=-(o=180),i=-(a=90)}};function eO(e,t){h.push(p=[r=e,o=e]),ta&&(a=t)}function eE(e,t){var n=eg([e*ea.uR,t*ea.uR]);if(c){var u=eb(c,n),l=eb([u[1],-u[0],0],u);ew(l),l=em(l);var f,d=e-s,m=d>0?1:-1,g=l[0]*ea.RW*m,y=(0,ea.Wn)(d)>180;y^(m*sa&&(a=f):y^(m*s<(g=(g+360)%360-180)&&ga&&(a=t)),y?eeC(r,o)&&(o=e):eC(e,o)>eC(r,o)&&(r=e):o>=r?(eo&&(o=e)):e>s?eC(r,e)>eC(r,o)&&(o=e):eC(e,o)>eC(r,o)&&(r=e)}else h.push(p=[r=e,o=e]);ta&&(a=t),c=n,s=e}function eA(){eS.point=eE}function eT(){p[0]=r,p[1]=o,eS.point=eO,c=null}function eP(e,t){if(c){var n=e-s;f.add((0,ea.Wn)(n)>180?n+(n>0?360:-360):n)}else u=e,l=t;ec.point(e,t),eE(e,t)}function eM(){ec.lineStart()}function ej(){eP(u,l),ec.lineEnd(),(0,ea.Wn)(f)>ea.Ho&&(r=-(o=180)),p[0]=r,p[1]=o,c=null}function eC(e,t){return(t-=e)<0?t+360:t}function ek(e,t){return e[0]-t[0]}function eR(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:teC(s[0],s[1])&&(s[1]=u[1]),eC(u[0],s[1])>eC(s[0],s[1])&&(s[0]=u[0])):l.push(s=u);for(c=-1/0,n=l.length-1,t=0,s=l[n];t<=n;s=u,++t)u=l[t],(f=eC(s[1],u[0]))>c&&(c=f,r=u[0],o=s[1])}return h=p=null,r===1/0||i===1/0?[[NaN,NaN],[NaN,NaN]]:[[r,i],[o,a]]}var eI=n(23320),eD=n(46373);function ez(e){return(0,ea.Wn)(e[0])<=ea.pi?e[0]:(0,ea.Xx)(e[0])*(((0,ea.Wn)(e[0])+ea.pi)%ea.BZ-ea.pi)}function eU(e,t){var n=ez(t),r=t[1],i=(0,ea.O$)(r),o=[(0,ea.O$)(n),-(0,ea.mC)(n),0],a=0,s=0,u=new eo.dU;1===i?r=ea.ou+ea.Ho:-1===i&&(r=-ea.ou-ea.Ho);for(var l=0,c=e.length;l=0?1:-1,A=E*O,T=A>ea.pi,P=g*_;if(u.add((0,ea.fv)(P*E*(0,ea.O$)(A),y*S+P*(0,ea.mC)(A))),a+=T?O+E*ea.BZ:O,T^d>=n^x>=n){var M=eb(eg(p),eg(v));ew(M);var j=eb(o,M);ew(j);var C=(T^O>=0?-1:1)*(0,ea.ZR)(j[2]);(r>C||r===C&&(M[0]||M[1]))&&(s+=T^O>=0?1:-1)}}return(a<-ea.Ho||a0&&(i=(0,eI.Z)(e[o],e[o-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))1e-6||Math.abs(this._y1-i)>1e-6)&&(this._+="L"+r+","+i),n&&(this._+=`A${n},${n},0,1,1,${e-n},${t}A${n},${n},0,1,1,${this._x1=r},${this._y1=i}`)}rect(e,t,n,r){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${+n}v${+r}h${-n}Z`}value(){return this._||null}}class e8{constructor(){this._=[]}moveTo(e,t){this._.push([e,t])}closePath(){this._.push(this._[0].slice())}lineTo(e,t){this._.push([e,t])}value(){return this._.length?this._:null}}class e6{constructor(e,[t,n,r,i]=[0,0,960,500]){if(!((r=+r)>=(t=+t))||!((i=+i)>=(n=+n)))throw Error("invalid bounds");this.delaunay=e,this._circumcenters=new Float64Array(2*e.points.length),this.vectors=new Float64Array(2*e.points.length),this.xmax=r,this.xmin=t,this.ymax=i,this.ymin=n,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){let e,t;let{delaunay:{points:n,hull:r,triangles:i},vectors:o}=this,a=this.circumcenters=this._circumcenters.subarray(0,i.length/3*2);for(let o=0,s=0,u=i.length,l,c;oMath.abs(S)){if(void 0===e){for(let i of(e=t=0,r))e+=n[2*i],t+=n[2*i+1];e/=r.length,t/=r.length}let i=1e9*Math.sign((e-p)*_-(t-d)*w);l=(p+y)/2-i*_,c=(d+b)/2+i*w}else{let e=1/S,t=v*v+x*x,n=w*w+_*_;l=p+(_*t-x*n)*e,c=d+(v*n-w*t)*e}a[s]=l,a[s+1]=c}let s=r[r.length-1],u,l=4*s,c,f=n[2*s],h,p=n[2*s+1];o.fill(0);for(let e=0;e1;)i-=2;for(let e=2;e0){if(t>=this.ymax)return null;(o=(this.ymax-t)/r)0){if(e>=this.xmax)return null;(o=(this.xmax-e)/n)this.xmax?2:0)|(tthis.ymax?8:0)}_simplify(e){if(e&&e.length>4){for(let t=0;t2&&function(e){let{triangles:t,coords:n}=e;for(let e=0;e1e-10)return!1}return!0}(e)){this.collinear=Int32Array.from({length:t.length/2},(e,t)=>t).sort((e,n)=>t[2*e]-t[2*n]||t[2*e+1]-t[2*n+1]);let e=this.collinear[0],i=this.collinear[this.collinear.length-1],o=[t[2*e],t[2*e+1],t[2*i],t[2*i+1]],a=1e-8*Math.hypot(o[3]-o[1],o[2]-o[0]);for(let e=0,i=t.length/2;e0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=o[0],s[o[0]]=1,2===o.length&&(s[o[1]]=0,this.triangles[1]=o[1],this.triangles[2]=o[1]))}voronoi(e){return new e6(this,e)}*neighbors(e){let{inedges:t,hull:n,_hullIndex:r,halfedges:i,triangles:o,collinear:a}=this;if(a){let t=a.indexOf(e);t>0&&(yield a[t-1]),t=0&&r!==n&&r!==i;)n=r;return r}_step(e,t,n){let{inedges:r,hull:i,_hullIndex:o,halfedges:a,triangles:s,points:u}=this;if(-1===r[e]||!u.length)return(e+1)%(u.length>>1);let l=e,c=e7(t-u[2*e],2)+e7(n-u[2*e+1],2),f=r[e],h=f;do{let r=s[h],f=e7(t-u[2*r],2)+e7(n-u[2*r+1],2);if(fea.pi&&(e-=Math.round(e/ea.BZ)*ea.BZ),[e,t]}function to(e,t,n){return(e%=ea.BZ)?t||n?tr(ts(e),tu(t,n)):ts(e):t||n?tu(t,n):ti}function ta(e){return function(t,n){return t+=e,(0,ea.Wn)(t)>ea.pi&&(t-=Math.round(t/ea.BZ)*ea.BZ),[t,n]}}function ts(e){var t=ta(e);return t.invert=ta(-e),t}function tu(e,t){var n=(0,ea.mC)(e),r=(0,ea.O$)(e),i=(0,ea.mC)(t),o=(0,ea.O$)(t);function a(e,t){var a=(0,ea.mC)(t),s=(0,ea.mC)(e)*a,u=(0,ea.O$)(e)*a,l=(0,ea.O$)(t),c=l*n+s*r;return[(0,ea.fv)(u*i-c*o,s*n-l*r),(0,ea.ZR)(c*i+u*o)]}return a.invert=function(e,t){var a=(0,ea.mC)(t),s=(0,ea.mC)(e)*a,u=(0,ea.O$)(e)*a,l=(0,ea.O$)(t),c=l*i-u*o;return[(0,ea.fv)(u*i+l*o,s*n+c*r),(0,ea.ZR)(c*n-s*r)]},a}function tl(){var e,t=[];return{point:function(t,n,r){e.push([t,n,r])},lineStart:function(){t.push(e=[])},lineEnd:es.Z,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}}function tc(e,t){return(0,ea.Wn)(e[0]-t[0])=0;--o)i.point((c=l[o])[0],c[1]);else r(h.x,h.p.x,-1,i);h=h.p}l=(h=h.o).z,p=!p}while(!h.v);i.lineEnd()}}}function tp(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r0){for(f||(i.polygonStart(),f=!0),i.lineStart(),e=0;e1&&2&u&&h.push(h.pop().concat(h.shift())),a.push(h.filter(tm))}}return h}}function tm(e){return e.length>1}function tg(e,t){return((e=e.x)[0]<0?e[1]-ea.ou-ea.Ho:ea.ou-e[1])-((t=t.x)[0]<0?t[1]-ea.ou-ea.Ho:ea.ou-t[1])}ti.invert=ti;var ty=td(function(){return!0},function(e){var t,n=NaN,r=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,a){var s,u,l,c,f,h,p=o>0?ea.pi:-ea.pi,d=(0,ea.Wn)(o-n);(0,ea.Wn)(d-ea.pi)0?ea.ou:-ea.ou),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(p,r),e.point(o,r),t=0):i!==p&&d>=ea.pi&&((0,ea.Wn)(n-i)ea.Ho?(0,ea.z4)(((0,ea.O$)(u)*(f=(0,ea.mC)(a))*(0,ea.O$)(l)-(0,ea.O$)(a)*(c=(0,ea.mC)(u))*(0,ea.O$)(s))/(c*f*h)):(u+a)/2,e.point(i,r),e.lineEnd(),e.lineStart(),e.point(p,r),t=0),e.point(n=o,r=a),i=p},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}},function(e,t,n,r){var i;if(null==e)i=n*ea.ou,r.point(-ea.pi,i),r.point(0,i),r.point(ea.pi,i),r.point(ea.pi,0),r.point(ea.pi,-i),r.point(0,-i),r.point(-ea.pi,-i),r.point(-ea.pi,0),r.point(-ea.pi,i);else if((0,ea.Wn)(e[0]-t[0])>ea.Ho){var o=e[0]-t[2]?-n:n)+ea.BZ-ea.Ho)%ea.BZ}var tv=e=>e;function tx(e){return function(t){var n=new tw;for(var r in e)n[r]=e[r];return n.stream=t,n}}function tw(){}tw.prototype={constructor:tw,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var t_=1/0,tS=1/0,tO=-1/0,tE=tO,tA={point:function(e,t){etO&&(tO=e),ttE&&(tE=t)},lineStart:es.Z,lineEnd:es.Z,polygonStart:es.Z,polygonEnd:es.Z,result:function(){var e=[[t_,tS],[tO,tE]];return tO=tE=-(tS=t_=1/0),e}};function tT(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=r&&e.clipExtent(null),(0,e_.Z)(n,e.stream(tA)),t(tA.result()),null!=r&&e.clipExtent(r),e}function tP(e,t,n){return tT(e,function(n){var r=t[1][0]-t[0][0],i=t[1][1]-t[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),a=+t[0][0]+(r-o*(n[1][0]+n[0][0]))/2,s=+t[0][1]+(i-o*(n[1][1]+n[0][1]))/2;e.scale(150*o).translate([a,s])},n)}var tM=(0,ea.mC)(30*ea.uR);function tj(e,t){return+t?function(e,t){function n(r,i,o,a,s,u,l,c,f,h,p,d,m,g){var y=l-r,b=c-i,v=y*y+b*b;if(v>4*t&&m--){var x=a+h,w=s+p,_=u+d,S=(0,ea._b)(x*x+w*w+_*_),O=(0,ea.ZR)(_/=S),E=(0,ea.Wn)((0,ea.Wn)(_)-1)t||(0,ea.Wn)((y*M+b*j)/v-.5)>.3||a*h+s*p+u*d0?1:e<0?-1:0},tG=Math.sqrt;function tV(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function tW(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function t$(e,t){return[e[0]+t[0],e[1]+t[1],e[2]+t[2]]}function tY(e){var t=tG(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);return[e[0]/t,e[1]/t,e[2]/t]}function tX(e){var t;return[tU(e[1],e[0])*tD,((t=tN(-1,tH(1,e[2])))>1?tI:t<-1?-tI:Math.asin(t))*tD]}function tq(e){let t=e[0]*tz,n=e[1]*tz,r=tB(n);return[r*tB(t),r*tF(t),tF(n)]}function tK(e){return tV((e=e.map(e=>tq(e)))[0],tW(e[2],e[1]))}function tQ(e,t,n){e=tq(e),t=tq(t),n=tq(n);let r=tZ(tV(tW(t,e),n));return tX(tY(t$(e,t)).map(e=>r*e))}var tJ=n(93963);function t0(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n2&&void 0!==arguments[2]&&arguments[2];return n?(t&&eB.hasOwnProperty(t.type)?eB[t.type]:eH)(t,e):function(e,t,n){if(void 0===n&&(n={}),!e)throw Error("point is required");if(!t)throw Error("polygon is required");var r=function(e){if(!e)throw Error("coord is required");if(!Array.isArray(e)){if("Feature"===e.type&&null!==e.geometry&&"Point"===e.geometry.type)return e.geometry.coordinates;if("Point"===e.type)return e.coordinates}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return e;throw Error("coord must be GeoJSON Point or an Array of numbers")}(e),i="Feature"===t.type?t.geometry:t,o=i.type,a=t.bbox,s=i.coordinates;if(a&&!1==(a[0]<=r[0]&&a[1]<=r[1]&&a[2]>=r[0]&&a[3]>=r[1]))return!1;"Polygon"===o&&(s=[s]);for(var u=!1,l=0;l1&&void 0!==arguments[1]?arguments[1]:{},n=t.resolution,r=void 0===n?1/0:n,i=e.map(function(e){var t,n=[];return e.forEach(function(e){if(t){var i=180*(0,eI.Z)(e,t)/Math.PI;if(i>r)for(var o=(0,eD.Z)(t,e),a=1/Math.ceil(i/r),s=a;s<1;)n.push(o(s)),s+=a}n.push(t=e)}),n}),o=C(i),a=function(e,t){var n={type:"Polygon",coordinates:e},r=t3(eL(n),2),i=t3(r[0],2),o=i[0],a=i[1],s=t3(r[1],2),u=s[0],l=s[1];if(Math.min(Math.abs(u-o),Math.abs(l-a))u||l>=89||a<=-89;return(function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minLng,r=t.maxLng,i=t.minLat,o=t.maxLat,a=Math.round(Math.pow(360/e,2)/Math.PI),s=(1+Math.sqrt(5))/2,u=function(e){return a*(Math.cos((e+90)*Math.PI/180)+1)/2},l=[void 0!==o?Math.ceil(u(o)):0,void 0!==i?Math.floor(u(i)):a-1],c=void 0===n&&void 0===r?function(){return!0}:void 0===n?function(e){return e<=r}:void 0===r?function(e){return e>=n}:r>=n?function(e){return e>=n&&e<=r}:function(e){return e>=n||e<=r},f=[],h=l[0];h<=l[1];h++){var p=h/s*360%360-180;c(p)&&f.push([p,Math.acos(2*h/a-1)/Math.PI*180-90])}return f})(t,{minLng:o,maxLng:u,minLat:a,maxLat:l}).filter(function(e){return t6(e,n,c)})}(e,r),s=[].concat(t5(o),t5(a)),u={type:"Polygon",coordinates:e},l=t3(eL(u),2),c=t3(l[0],2),f=c[0],h=c[1],p=t3(l[1],2),d=p[0],m=p[1],g=f>d||m>=89||h<=-89,y=[];if(g){var b=(function(e){let t=function(e){if(t.delaunay=null,t._data=e,"object"==typeof t._data&&"FeatureCollection"===t._data.type&&(t._data=t._data.features),"object"==typeof t._data){let e=t._data.map(e=>[t._vx(e),t._vy(e),e]).filter(e=>isFinite(e[0]+e[1]));t.points=e.map(e=>[e[0],e[1]]),t.valid=e.map(e=>e[2]),t.delaunay=function(e){let t=function(e){if(e.length<2)return{};let t=0;for(;isNaN(e[t][0]+e[t][1])&&t++2?e[2]*ea.uR:0),t.invert=function(t){return t=e.invert(t[0]*ea.uR,t[1]*ea.uR),t[0]*=ea.RW,t[1]*=ea.RW,t},t}(e[t]),r=(function(e){var t,n,r,i,o,a,s,u,l,c,f=150,h=480,p=250,d=0,m=0,g=0,y=0,b=0,v=0,x=1,w=1,_=null,S=ty,O=null,E=tv,A=.5;function T(e){return u(e[0]*ea.uR,e[1]*ea.uR)}function P(e){return(e=u.invert(e[0],e[1]))&&[e[0]*ea.RW,e[1]*ea.RW]}function M(){var e=tk(f,0,0,x,w,v).apply(null,t(d,m)),r=tk(f,h-e[0],p-e[1],x,w,v);return n=to(g,y,b),s=tr(t,r),u=tr(n,s),a=tj(s,A),j()}function j(){return l=c=null,T}return T.stream=function(e){var t;return l&&c===e?l:l=tC((t=n,tx({point:function(e,n){var r=t(e,n);return this.stream.point(r[0],r[1])}}))(S(a(E(c=e)))))},T.preclip=function(e){return arguments.length?(S=e,_=void 0,j()):S},T.postclip=function(e){return arguments.length?(E=e,O=r=i=o=null,j()):E},T.clipAngle=function(e){return arguments.length?(S=+e?function(e){var t=(0,ea.mC)(e),n=6*ea.uR,r=t>0,i=(0,ea.Wn)(t)>ea.Ho;function o(e,n){return(0,ea.mC)(e)*(0,ea.mC)(n)>t}function a(e,n,r){var i=eg(e),o=eg(n),a=[1,0,0],s=eb(i,o),u=ey(s,s),l=s[0],c=u-l*l;if(!c)return!r&&e;var f=t*u/c,h=-t*l/c,p=eb(a,s),d=ex(a,f);ev(d,ex(s,h));var m=ey(d,p),g=ey(p,p),y=m*m-g*(ey(d,d)-1);if(!(y<0)){var b=(0,ea._b)(y),v=ex(p,(-m-b)/g);if(ev(v,d),v=em(v),!r)return v;var x,w=e[0],_=n[0],S=e[1],O=n[1];_0^v[1]<((0,ea.Wn)(v[0]-w)ea.pi^(w<=v[0]&&v[0]<=_)){var P=ex(p,(-m+b)/g);return ev(P,d),[v,em(P)]}}}function s(t,n){var i=r?e:ea.pi-e,o=0;return t<-i?o|=1:t>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return td(o,function(e){var t,n,u,l,c;return{lineStart:function(){l=u=!1,c=1},point:function(f,h){var p,d,m=[f,h],g=o(f,h),y=r?g?0:s(f,h):g?s(f+(f<0?ea.pi:-ea.pi),h):0;!t&&(l=u=g)&&e.lineStart(),g!==u&&(!(d=a(t,m))||tc(t,d)||tc(m,d))&&(m[2]=1),g!==u?(c=0,g?(e.lineStart(),d=a(m,t),e.point(d[0],d[1])):(d=a(t,m),e.point(d[0],d[1],2),e.lineEnd()),t=d):i&&t&&r^g&&!(y&n)&&(p=a(m,t,!0))&&(c=0,r?(e.lineStart(),e.point(p[0][0],p[0][1]),e.point(p[1][0],p[1][1]),e.lineEnd()):(e.point(p[1][0],p[1][1]),e.lineEnd(),e.lineStart(),e.point(p[0][0],p[0][1],3))),!g||t&&tc(t,m)||e.point(m[0],m[1]),t=m,u=g,n=y},lineEnd:function(){u&&e.lineEnd(),t=null},clean:function(){return c|(l&&u)<<1}}},function(t,r,i,o){!function(e,t,n,r,i,o){if(n){var a=(0,ea.mC)(t),s=(0,ea.O$)(t),u=r*n;null==i?(i=t+r*ea.BZ,o=t-u/2):(i=tb(a,i),o=tb(a,o),(r>0?io)&&(i+=r*ea.BZ));for(var l,c=i;r>0?c>o:cu(i,o)^s>0)do l.point(0===c||3===c?e:n,c>1?r:t);while((c=(c+s+4)%4)!==f);else l.point(o[0],o[1])}function a(r,i){return(0,ea.Wn)(r[0]-e)0?0:3:(0,ea.Wn)(r[0]-n)0?2:1:(0,ea.Wn)(r[1]-t)0?1:0:i>0?3:2}function s(e,t){return u(e.x,t.x)}function u(e,t){var n=a(e,1),r=a(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(a){var u,l,c,f,h,p,d,m,g,y,b,v=a,x=tl(),w={point:_,lineStart:function(){w.point=S,l&&l.push(c=[]),y=!0,g=!1,d=m=NaN},lineEnd:function(){u&&(S(f,h),p&&g&&x.rejoin(),u.push(x.result())),w.point=_,g&&v.lineEnd()},polygonStart:function(){v=x,u=[],l=[],b=!0},polygonEnd:function(){var t=function(){for(var t=0,n=0,i=l.length;nr&&(h-o)*(r-a)>(p-a)*(e-o)&&++t:p<=r&&(h-o)*(r-a)<(p-a)*(e-o)&&--t;return t}(),n=b&&t,i=(u=C(u)).length;(n||i)&&(a.polygonStart(),n&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),i&&th(u,s,t,o,a),a.polygonEnd()),v=a,u=l=c=null}};function _(e,t){i(e,t)&&v.point(e,t)}function S(o,a){var s=i(o,a);if(l&&c.push([o,a]),y)f=o,h=a,p=s,y=!1,s&&(v.lineStart(),v.point(o,a));else if(s&&g)v.point(o,a);else{var u=[d=Math.max(-1e9,Math.min(1e9,d)),m=Math.max(-1e9,Math.min(1e9,m))],x=[o=Math.max(-1e9,Math.min(1e9,o)),a=Math.max(-1e9,Math.min(1e9,a))];(function(e,t,n,r,i,o){var a,s=e[0],u=e[1],l=t[0],c=t[1],f=0,h=1,p=l-s,d=c-u;if(a=n-s,p||!(a>0)){if(a/=p,p<0){if(a0){if(a>h)return;a>f&&(f=a)}if(a=i-s,p||!(a<0)){if(a/=p,p<0){if(a>h)return;a>f&&(f=a)}else if(p>0){if(a0)){if(a/=d,d<0){if(a0){if(a>h)return;a>f&&(f=a)}if(a=o-u,d||!(a<0)){if(a/=d,d<0){if(a>h)return;a>f&&(f=a)}else if(d>0){if(a0&&(e[0]=s+f*p,e[1]=u+f*d),h<1&&(t[0]=s+h*p,t[1]=u+h*d),!0}}}}})(u,x,e,t,n,r)?(g||(v.lineStart(),v.point(u[0],u[1])),v.point(x[0],x[1]),s||v.lineEnd(),b=!1):s&&(v.lineStart(),v.point(o,a),b=!1)}d=o,m=a,g=s}return w}}(O=+e[0][0],r=+e[0][1],i=+e[1][0],o=+e[1][1]),j()):null==O?null:[[O,r],[i,o]]},T.scale=function(e){return arguments.length?(f=+e,M()):f},T.translate=function(e){return arguments.length?(h=+e[0],p=+e[1],M()):[h,p]},T.center=function(e){return arguments.length?(d=e[0]%360*ea.uR,m=e[1]%360*ea.uR,M()):[d*ea.RW,m*ea.RW]},T.rotate=function(e){return arguments.length?(g=e[0]%360*ea.uR,y=e[1]%360*ea.uR,b=e.length>2?e[2]%360*ea.uR:0,M()):[g*ea.RW,y*ea.RW,b*ea.RW]},T.angle=function(e){return arguments.length?(v=e%360*ea.uR,M()):v*ea.RW},T.reflectX=function(e){return arguments.length?(x=e?-1:1,M()):x<0},T.reflectY=function(e){return arguments.length?(w=e?-1:1,M()):w<0},T.precision=function(e){return arguments.length?(a=tj(s,A=e*e),j()):(0,ea._b)(A)},T.fitExtent=function(e,t){return tP(T,e,t)},T.fitSize=function(e,t){return tP(T,[[0,0],e],t)},T.fitWidth=function(e,t){return tT(T,function(t){var n=+e,r=n/(t[1][0]-t[0][0]),i=(n-r*(t[1][0]+t[0][0]))/2,o=-r*t[0][1];T.scale(150*r).translate([i,o])},t)},T.fitHeight=function(e,t){return tT(T,function(t){var n=+e,r=n/(t[1][1]-t[0][1]),i=-r*t[0][0],o=(n-r*(t[1][1]+t[0][1]))/2;T.scale(150*r).translate([i,o])},t)},function(){return t=e.apply(this,arguments),T.invert=t.invert&&P,M()}})(function(){return tR})().scale(250).clipAngle(142).translate([0,0]).scale(1).rotate(n.invert([180,0]));e=e.map(r);let i=[],o=1;for(let t=0,n=e.length;t1e32?i.push(t):n>o&&(o=n)}let a=1e6*tG(o);i.forEach(t=>e[t]=[a,0]),e.push([0,a]),e.push([-a,0]),e.push([0,-a]);let s=tn.from(e);s.projection=r;let{triangles:u,halfedges:l,inedges:c}=s,f=[];for(let n=0,r=l.length;ne.length-3-1&&(u[n]=t);return s}(e),n=function(e){let{triangles:t}=e;if(!t)return[];let n=[];for(let e=0,r=t.length/3;e{if(e[0]!==e[1]&&!(0>tK(e.map(e=>t[e]))))for(let t=0,r;t<3;t++)r=(t+1)%3,n.add((0,k.Z)([e[t],e[r]]).join("-"))}),Array.from(n,e=>e.split("-").map(Number)))}(n,e),i=function(e,t){let n=[];return e.forEach(e=>{for(let t=0;t<3;t++){let r=e[t],i=e[(t+1)%3];n[r]=n[r]||[],n[r].push(i)}}),0===e.length&&(2===t?(n[0]=[1],n[1]=[0]):1===t&&(n[0]=[])),n}(n,e.length),o=function(e,t){function n(e,t){let n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}return function(r,i,o){void 0===o&&(o=0);let a,s,u=o,l=tq([r,i]);do a=o,o=null,s=n(l,tq(t[a])),e[a].forEach(e=>{let r=n(l,tq(t[e]));if(r{let n=t.map(t=>e[t]).map(tq),r=t$(t$(tW(n[1],n[0]),tW(n[2],n[1])),tW(n[0],n[2]));return tX(tY(r))}),{polygons:s,centers:u}=function(e,t,n){let r=[],i=e.slice();if(0===t.length){if(n.length<2)return{polygons:r,centers:i};if(2===n.length){let e=tq(n[0]),t=tq(n[1]),o=tY(t$(e,t)),s=tY(tW(e,t)),u=tW(o,s),l=[o,tW(o,u),tW(tW(o,u),u),tW(tW(tW(o,u),u),u)].map(tX).map(a);return r.push(l),r.push(l.slice().reverse()),{polygons:r,centers:i}}}t.forEach((e,t)=>{for(let n=0;n<3;n++){let i=e[n],o=e[(n+1)%3],a=e[(n+2)%3];r[i]=r[i]||[],r[i].push([o,a,t,[i,o,a]])}});let o=r.map(e=>{let t=[e[0][2]],r=e[0][1];for(let n=1;n2)return t;if(2==t.length){let r=tQ(n[e[0][3][0]],n[e[0][3][1]],i[t[0]]),o=tQ(n[e[0][3][2]],n[e[0][3][0]],i[t[0]]),s=a(r),u=a(o);return[t[0],u,t[1],s]}});function a(e){let n=-1;return i.slice(t.length,1/0).forEach((r,i)=>{r[0]===e[0]&&r[1]===e[1]&&(n=i+t.length)}),n<0&&(n=i.length,i.push(e)),n}return{polygons:o,centers:i}}(a,n,e),l=function(e){let t=[];return e.forEach(e=>{if(!e)return;let n=e[e.length-1];for(let r of e)r>n&&t.push([n,r]),n=r}),t}(s),c=function(e,t){let n;let r=new Set,i=[];e.map(e=>{if(!(tK(e.map(e=>t[e>t.length?0:e]))>1e-12))for(let t=0;t<3;t++){let n=[e[t],e[(t+1)%3]],i=`${n[0]}-${n[1]}`;r.has(i)?r.delete(i):r.add(`${n[1]}-${n[0]}`)}});let o=new Map;if(r.forEach(e=>{e=e.split("-").map(Number),o.set(e[0],e[1]),n=e[0]}),void 0===n)return i;let a=n;do{i.push(a);let e=o.get(a);o.set(a,-1),a=e}while(a>-1&&a!==n);return i}(n,e);return{delaunay:t,edges:r,triangles:n,centers:u,neighbors:i,polygons:s,mesh:l,hull:c,urquhart:function(e){let t=new Map,i=new Map;return r.forEach((n,r)=>{let o=n.join("-");t.set(o,e[r]),i.set(o,!0)}),n.forEach(e=>{let n=0,r=-1;for(let i=0;i<3;i++){let o=(0,k.Z)([e[i],e[(i+1)%3]]).join("-");t.get(o)>n&&(n=t.get(o),r=o)}i.set(r,!1)}),r.map(e=>i.get(e.join("-")))},find:o}}(t.points)}return t};return t._vx=function(e){return"object"==typeof e&&"type"in e?e5(e)[0]:0 in e?e[0]:void 0},t._vy=function(e){return"object"==typeof e&&"type"in e?e5(e)[1]:1 in e?e[1]:void 0},t.x=function(e){return e?(t._vx=e,t):t._vx},t.y=function(e){return e?(t._vy=e,t):t._vy},t.polygons=function(e){if(void 0!==e&&t(e),!t.delaunay)return!1;let n={type:"FeatureCollection",features:[]};return 0===t.valid.length||(t.delaunay.polygons.forEach((e,r)=>n.features.push({type:"Feature",geometry:e?{type:"Polygon",coordinates:[[...e,e[0]].map(e=>t.delaunay.centers[e])]}:null,properties:{site:t.valid[r],sitecoordinates:t.points[r],neighbours:t.delaunay.neighbors[r]}})),1===t.valid.length&&n.features.push({type:"Feature",geometry:{type:"Sphere"},properties:{site:t.valid[0],sitecoordinates:t.points[0],neighbours:[]}})),n},t.triangles=function(e){return void 0!==e&&t(e),!!t.delaunay&&{type:"FeatureCollection",features:t.delaunay.triangles.map((e,n)=>((e=e.map(e=>t.points[e])).center=t.delaunay.centers[n],e)).filter(e=>tK(e)>0).map(e=>({type:"Feature",properties:{circumcenter:e.center},geometry:{type:"Polygon",coordinates:[[...e,e[0]]]}}))}},t.links=function(e){if(void 0!==e&&t(e),!t.delaunay)return!1;let n=t.delaunay.edges.map(e=>(0,eI.Z)(t.points[e[0]],t.points[e[1]])),r=t.delaunay.urquhart(n);return{type:"FeatureCollection",features:t.delaunay.edges.map((e,i)=>({type:"Feature",properties:{source:t.valid[e[0]],target:t.valid[e[1]],length:n[i],urquhart:!!r[i]},geometry:{type:"LineString",coordinates:[t.points[e[0]],t.points[e[1]]]}}))}},t.mesh=function(e){return void 0!==e&&t(e),!!t.delaunay&&{type:"MultiLineString",coordinates:t.delaunay.edges.map(e=>[t.points[e[0]],t.points[e[1]]])}},t.cellMesh=function(e){if(void 0!==e&&t(e),!t.delaunay)return!1;let{centers:n,polygons:r}=t.delaunay,i=[];for(let e of r)if(e)for(let t=e.length,r=e[t-1],o=e[0],a=0;ar&&i.push([n[r],n[o]]);return{type:"MultiLineString",coordinates:i}},t._found=void 0,t.find=function(e,n,r){if(t._found=t.delaunay.find(e,n,t._found),!r||(0,eI.Z)([e,n],t.points[t._found])r[e]),r[n[0]]]]}},e?t(e):t})(s).triangles(),v=new Map(s.map(function(e,t){var n=t3(e,2),r=n[0],i=n[1];return["".concat(r,"-").concat(i),t]}));b.features.forEach(function(e){var t,n=e.geometry.coordinates[0].slice(0,3).reverse(),r=[];if(n.forEach(function(e){var t=t3(e,2),n=t[0],i=t[1],o="".concat(n,"-").concat(i);v.has(o)&&r.push(v.get(o))}),3===r.length){if(r.some(function(e){return e=t&&(++n,r+=t);else{let i=-1;for(let o of e)null!=(o=t(o,++i,e))&&(o=+o)>=o&&(++n,r+=o)}if(n)return r/n}(r,function(t){return t[e]})}),u,g))return"continue";(t=y).push.apply(t,t5(n))},_=0,S=x.triangles.length;_2&&void 0!==arguments[2]?arguments[2]:0,r=(90-e)*Math.PI/180,i=(90-t)*Math.PI/180;return[n*Math.sin(r)*Math.cos(i),n*Math.cos(r),n*Math.sin(r)*Math.sin(i)]}(n[1],r,t)})});return R.flatten(n)}function x(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return{indices:t?h.indices:h.indices.slice().reverse(),vertices:v([h.points],e).vertices,uvs:p}}return s&&b(function(){for(var e=v(f,t),r=e.vertices,i=e.holes,o=v(f,n).vertices,a=C([o,r]),s=Math.round(o.length/3),u=new Set(i),l=0,c=[],h=0;h=0;g--)for(var y=0;y #include #include @@ -375,4 +375,4 @@ #include } - `};class c extends l.ShaderMaterial{constructor(e){super({type:"LineMaterial",uniforms:l.UniformsUtils.clone(l.ShaderLib.line.uniforms),vertexShader:l.ShaderLib.line.vertexShader,fragmentShader:l.ShaderLib.line.fragmentShader,clipping:!0}),Object.defineProperties(this,{color:{enumerable:!0,get:function(){return this.uniforms.diffuse.value},set:function(e){this.uniforms.diffuse.value=e}},worldUnits:{enumerable:!0,get:function(){return"WORLD_UNITS"in this.defines},set:function(e){!0===e?this.defines.WORLD_UNITS="":delete this.defines.WORLD_UNITS}},linewidth:{enumerable:!0,get:function(){return this.uniforms.linewidth.value},set:function(e){this.uniforms.linewidth.value=e}},dashed:{enumerable:!0,get:function(){return"USE_DASH"in this.defines},set(e){!!e!="USE_DASH"in this.defines&&(this.needsUpdate=!0),!0===e?this.defines.USE_DASH="":delete this.defines.USE_DASH}},dashScale:{enumerable:!0,get:function(){return this.uniforms.dashScale.value},set:function(e){this.uniforms.dashScale.value=e}},dashSize:{enumerable:!0,get:function(){return this.uniforms.dashSize.value},set:function(e){this.uniforms.dashSize.value=e}},dashOffset:{enumerable:!0,get:function(){return this.uniforms.dashOffset.value},set:function(e){this.uniforms.dashOffset.value=e}},gapSize:{enumerable:!0,get:function(){return this.uniforms.gapSize.value},set:function(e){this.uniforms.gapSize.value=e}},opacity:{enumerable:!0,get:function(){return this.uniforms.opacity.value},set:function(e){this.uniforms.opacity.value=e}},resolution:{enumerable:!0,get:function(){return this.uniforms.resolution.value},set:function(e){this.uniforms.resolution.value.copy(e)}},alphaToCoverage:{enumerable:!0,get:function(){return"ALPHA_TO_COVERAGE"in this.defines},set:function(e){!!e!="ALPHA_TO_COVERAGE"in this.defines&&(this.needsUpdate=!0),!0===e?(this.defines.ALPHA_TO_COVERAGE="",this.extensions.derivatives=!0):(delete this.defines.ALPHA_TO_COVERAGE,this.extensions.derivatives=!1)}}}),this.setValues(e)}}c.prototype.isLineMaterial=!0;let f=window.THREE?window.THREE:{Box3:r.ZzF,BufferGeometry:r.u9r,InstancedInterleavedBuffer:r.$TI,InterleavedBufferAttribute:r.kB5,Line3:r.Zzh,MathUtils:r.M8C,Matrix4:r.yGw,Mesh:r.Kj0,Sphere:r.aLr,Vector3:r.Pa4,Vector4:r.Ltg};var h=new f.BufferGeometry().setAttribute?"setAttribute":"addAttribute";let p=new f.Vector3,d=new f.Vector3,m=new f.Vector4,g=new f.Vector4,y=new f.Vector4,b=new f.Vector3,v=new f.Matrix4,x=new f.Line3,w=new f.Vector3,_=new f.Box3,S=new f.Sphere,O=new f.Vector4;class E extends f.Mesh{constructor(e=new u,t=new c({color:16777215*Math.random()})){super(e,t),this.type="LineSegments2"}computeLineDistances(){let e=this.geometry,t=e.attributes.instanceStart,n=e.attributes.instanceEnd,r=new Float32Array(2*t.count);for(let e=0,i=0,o=t.count;ed&&g.z>d)continue;if(m.z>d){let e=m.z-g.z,t=(m.z-d)/e;m.lerp(g,t)}else if(g.z>d){let e=g.z-m.z,t=(g.z-d)/e;g.lerp(m,t)}m.applyMatrix4(o),g.applyMatrix4(o),m.multiplyScalar(1/m.w),g.multiplyScalar(1/g.w),m.x*=l.x/2,m.y*=l.y/2,g.x*=l.x/2,g.y*=l.y/2,x.start.copy(m),x.start.z=0,x.end.copy(g),x.end.z=0;let n=x.closestPointToPointParameter(b,!0);x.at(n,w);let i=f.MathUtils.lerp(m.z,g.z,n),s=i>=-1&&i<=1,u=b.distanceTo(w)<.5*c;if(s&&u){x.start.fromBufferAttribute(h,e),x.end.fromBufferAttribute(p,e),x.start.applyMatrix4(a),x.end.applyMatrix4(a);let n=new f.Vector3,i=new f.Vector3;r.distanceSqToSegment(x.start,x.end,i,n),t.push({point:i,pointOnLine:n,distance:r.origin.distanceTo(i),object:this,face:null,faceIndex:e,uv:null,uv2:null})}}}}}E.prototype.LineSegments2=!0;class A extends u{constructor(){super(),this.type="LineGeometry"}setPositions(e){for(var t=e.length-3,n=new Float32Array(2*t),r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=[],r=null;return e.forEach(function(e){if(r){var i=180*(0,o.Z)(e,r)/Math.PI;if(i>t)for(var s=(0,a.Z)(r,e),u=1/Math.ceil(i/t),l=u;l<1;)n.push(s(l)),l+=u}n.push(r=e)}),n},d="undefined"!=typeof window&&window.THREE?window.THREE:{BufferGeometry:r.u9r,Float32BufferAttribute:r.a$l},m=new d.BufferGeometry().setAttribute?"setAttribute":"addAttribute",g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(a,e);var t,n,r,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=u(a);if(t){var r=u(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this)).type="GeoJsonGeometry",t.parameters={geoJson:e,radius:n,resolution:r};var s=(({Point:h,MultiPoint:function(e,t){var n={vertices:[],indices:[]};return e.map(function(e){return h(e,t)}).forEach(function(e){y(n,c(e,1)[0])}),[n]},LineString:g,MultiLineString:function(e,t){var n={vertices:[],indices:[]};return e.map(function(e){return g(e,t)}).forEach(function(e){y(n,c(e,1)[0])}),[n]},Polygon:b,MultiPolygon:function(e,t){var n={vertices:[],indices:[]},r={vertices:[],indices:[]};e.map(function(e){return b(e,t)}).forEach(function(e){var t=c(e,2),i=t[0],o=t[1];y(n,i),o&&y(r,o)});var i=[n];return r.vertices.length&&i.push(r),i}})[e.type]||function(){return[]})(e.coordinates,n),u=[],l=[],f=0;function h(e,t){return[{vertices:v(e[1],e[0],t),indices:[]}]}function g(e,t){for(var n=p(e,r).map(function(e){var n=c(e,2),r=n[0];return v(n[1],r,t)}),o=i.flatten([n]).vertices,a=Math.round(o.length/3),s=[],u=1;u=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;e.push(i)}}catch(e){r.e(e)}finally{r.f()}}function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=(90-e)*Math.PI/180,i=(90-t)*Math.PI/180;return[n*Math.sin(r)*Math.cos(i),n*Math.cos(r),n*Math.sin(r)*Math.sin(i)]}},76039:function(e,t,n){"use strict";n.d(t,{M:function(){return a},Z:function(){return o}});var r=n(13346),i=n(25484);function o(e,t){return((0,i.v)(t)?i.Z:a)(e,t)}function a(e,t){var n,i=t?t.length:0,o=e?Math.min(i,e.length):0,a=Array(o),s=Array(i);for(n=0;ns&&(a=t.slice(s,a),l[u]?l[u]+=a:l[++u]=a),(i=i[0])===(o=o[0])?l[u]?l[u]+=o:l[++u]=o:(l[++u]=null,p.push({i:u,x:(0,c.Z)(i,o)})),s=h.lastIndex;return s()=>e;function a(e,t){var n=t-e;return n?function(t){return e+t*n}:o(isNaN(e)?t:e)}var s=function e(t){var n,i=1==(n=+(n=t))?a:function(e,t){var r,i,a;return t-e?(r=e,i=t,r=Math.pow(r,a=n),i=Math.pow(i,a)-r,a=1/a,function(e){return Math.pow(r+e*i,a)}):o(isNaN(e)?t:e)};function s(e,t){var n=i((e=(0,r.B8)(e)).r,(t=(0,r.B8)(t)).r),o=i(e.g,t.g),s=i(e.b,t.b),u=a(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=s(t),e.opacity=u(t),e+""}}return s.gamma=e,s}(1);function u(e){return function(t){var n,i,o=t.length,a=Array(o),s=Array(o),u=Array(o);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[r],a=e[r+1],s=r>0?e[r-1]:2*o-a,u=rt&&(n=e,e=t,t=n),l=function(n){return Math.max(e,Math.min(t,n))}),r=u>2?v:b,i=o=null,y}function y(t){return null==t||isNaN(t=+t)?n:(i||(i=r(a.map(e),s,u)))(e(l(t)))}return y.invert=function(n){return l(t((o||(o=r(s,a.map(e),h.Z)))(n)))},y.domain=function(e){return arguments.length?(a=Array.from(e,d),c()):a.slice()},y.range=function(e){return arguments.length?(s=Array.from(e),c()):s.slice()},y.rangeRound=function(e){return s=Array.from(e),u=p,c()},y.clamp=function(e){return arguments.length?(l=!!e||g,c()):l!==g},y.interpolate=function(e){return arguments.length?(u=e,c()):u},y.unknown=function(e){return arguments.length?(n=e,y):n},function(n,r){return e=n,t=r,c()}})()(g,g);return n.copy=function(){return e().domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())},x.apply(n,arguments),t=n.domain,n.ticks=function(e){var n=t();return function(e,t,n){var r,i,o,s,u=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t0){let n=Math.round(e/s),r=Math.round(t/s);for(n*st&&--r,o=Array(i=r-n+1);++ut&&--r,o=Array(i=r-n+1);++u=r?u*=10:l>=i?u*=5:l>=o&&(u*=2),t0;){if((i=a(l,c,e))===r)return o[s]=l,o[u]=c,t(o);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else if(i<0)l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i;else break;r=i}return n},n}}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,n){var a=(t-e)/Math.max(0,n),s=Math.floor(Math.log(a)/Math.LN10),u=a/Math.pow(10,s);return s>=0?(u>=r?10:u>=i?5:u>=o?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(u>=r?10:u>=i?5:u>=o?2:1)}var s=n(86801),u=n(78307);let l=(0,u.Z)(s.Z),c=l.right;l.left,(0,u.Z)(function(e){return null===e?NaN:+e}).center;var f=n(13346),h=n(84364);function p(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function d(e){return+e}var m=[0,1];function g(e){return e}function y(e,t){var n;return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n})}function b(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i=-1&&o.z<=1&&!0===t.layers.test(a.layers);if(t.element.style.display=!0===e?"":"none",!0===e){t.onBeforeRender(c,n,a);let e=t.element;e.style.transform="translate("+-100*t.center.x+"%,"+-100*t.center.y+"%)translate("+(o.x*r+r)+"px,"+(-o.y*i+i)+"px)",e.parentNode!==h&&h.appendChild(e),t.onAfterRender(c,n,a)}let p={distanceToCameraSquared:(u.setFromMatrixPosition(a.matrixWorld),l.setFromMatrixPosition(t.matrixWorld),u.distanceToSquared(l))};f.objects.set(t,p)}for(let r=0,i=t.children.length;r2&&(t[r++]=e.getZ(n));return t}return e.array instanceof Float32Array?e.array:new Float32Array(e.array)}let o=e.index?e.toNonIndexed():e,a=t.generateTangents(i(o.attributes.position),i(o.attributes.normal),i(o.attributes.uv));if(n)for(let e=3;e=2&&t.setY(n,e.getY(n)),o>=3&&t.setZ(n,e.getZ(n)),o>=4&&t.setW(n,e.getW(n));return t}function c(e){let t=e.attributes,n=e.morphTargets,r=new Map;for(let e in t){let n=t[e];n.isInterleavedBufferAttribute&&(r.has(n)||r.set(n,l(n)),t[e]=r.get(n))}for(let e in n){let t=n[e];t.isInterleavedBufferAttribute&&(r.has(t)||r.set(t,l(t)),n[e]=r.get(t))}}function f(e){let t=0;for(let n in e.attributes){let r=e.getAttribute(n);t+=r.count*r.itemSize*r.array.BYTES_PER_ELEMENT}let n=e.getIndex();return t+(n?n.count*n.itemSize*n.array.BYTES_PER_ELEMENT:0)}function h(e,t=1e-4){t=Math.max(t,Number.EPSILON);let n={},i=e.getIndex(),o=e.getAttribute("position"),a=i?i.count:o.count,s=0,u=Object.keys(e.attributes),l={},c={},f=[],h=["getX","getY","getZ","getW"],p=["setX","setY","setZ","setW"];for(let t=0,n=u.length;te.materialIndex!==t.materialIndex?e.materialIndex-t.materialIndex:e.start-t.start),null===e.getIndex()){let t=e.getAttribute("position"),n=[];for(let e=0;en&&l.add(t)}l.normalize(),m.setXYZ(t+e,l.x,l.y,l.z)}}return f.setAttribute("normal",m),f}function y(e,t=!1){return console.warn("THREE.BufferGeometryUtils: mergeBufferGeometries() has been renamed to mergeGeometries()."),o(e,t)}function b(e){return console.warn("THREE.BufferGeometryUtils: mergeBufferAttributes() has been renamed to mergeAttributes()."),a(e)}},1547:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:function(){return l}});var i,o,a,s=/^\s+/,u=/\s+$/;function l(e,t){if(t=t||{},(e=e||"")instanceof l)return e;if(!(this instanceof l))return new l(e,t);var n,i,o,a,c,f,h,p,d,m,g,y,b,v,x,w,_,S,O,E,T=(i={r:0,g:0,b:0},o=1,a=null,c=null,f=null,h=!1,p=!1,"string"==typeof(n=e)&&(n=function(e){e=e.replace(s,"").replace(u,"").toLowerCase();var t,n=!1;if(A[e])e=A[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=I.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=I.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=I.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=I.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=I.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=I.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=I.hex8.exec(e))?{r:C(t[1]),g:C(t[2]),b:C(t[3]),a:C(t[4])/255,format:n?"name":"hex8"}:(t=I.hex6.exec(e))?{r:C(t[1]),g:C(t[2]),b:C(t[3]),format:n?"name":"hex"}:(t=I.hex4.exec(e))?{r:C(t[1]+""+t[1]),g:C(t[2]+""+t[2]),b:C(t[3]+""+t[3]),a:C(t[4]+""+t[4])/255,format:n?"name":"hex8"}:!!(t=I.hex3.exec(e))&&{r:C(t[1]+""+t[1]),g:C(t[2]+""+t[2]),b:C(t[3]+""+t[3]),format:n?"name":"hex"}}(n)),"object"==r(n)&&(D(n.r)&&D(n.g)&&D(n.b)?(d=n.r,m=n.g,g=n.b,i={r:255*P(d,255),g:255*P(m,255),b:255*P(g,255)},h=!0,p="%"===String(n.r).substr(-1)?"prgb":"rgb"):D(n.h)&&D(n.s)&&D(n.v)?(a=R(n.s),c=R(n.v),y=n.h,b=a,v=c,y=6*P(y,360),b=P(b,100),v=P(v,100),x=Math.floor(y),w=y-x,_=v*(1-b),S=v*(1-w*b),O=v*(1-(1-w)*b),i={r:255*[v,S,_,_,O,v][E=x%6],g:255*[O,v,v,S,_,_][E],b:255*[_,_,O,v,v,S][E]},h=!0,p="hsv"):D(n.h)&&D(n.s)&&D(n.l)&&(a=R(n.s),f=R(n.l),i=function(e,t,n){var r,i,o;function a(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=P(e,360),t=P(t,100),n=P(n,100),0===t)r=i=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;r=a(u,s,e+1/3),i=a(u,s,e),o=a(u,s,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(n.h,a,f),h=!0,p="hsl"),n.hasOwnProperty("a")&&(o=n.a)),o=M(o),{ok:h,format:n.format||p,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a:o});this._originalInput=e,this._r=T.r,this._g=T.g,this._b=T.b,this._a=T.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||T.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=T.ok}function c(e,t,n){var r,i,o=Math.max(e=P(e,255),t=P(t,255),n=P(n,255)),a=Math.min(e,t,n),s=(o+a)/2;if(o==a)r=i=0;else{var u=o-a;switch(i=s>.5?u/(2-o-a):u/(o+a),o){case e:r=(t-n)/u+(t>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(l(r));return o}function E(e,t){t=t||6;for(var n=l(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(l({h:r,s:i,v:o})),o=(o+s)%1;return a}l.prototype={isDark:function(){return 128>this.getBrightness()},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*((t=r.g/255)<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*((n=r.b/255)<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=M(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=f(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=c(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=c(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return h(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){var t,n,r,i,o;return t=this._r,n=this._g,r=this._b,i=this._a,o=[k(Math.round(t).toString(16)),k(Math.round(n).toString(16)),k(Math.round(r).toString(16)),k(L(i))],e&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*P(this._r,255))+"%",g:Math.round(100*P(this._g,255))+"%",b:Math.round(100*P(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*P(this._r,255))+"%, "+Math.round(100*P(this._g,255))+"%, "+Math.round(100*P(this._b,255))+"%)":"rgba("+Math.round(100*P(this._r,255))+"%, "+Math.round(100*P(this._g,255))+"%, "+Math.round(100*P(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(T[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+p(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=l(e);n="#"+p(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return!t&&r&&("hex"===e||"hex6"===e||"hex3"===e||"hex4"===e||"hex8"===e||"name"===e)?"name"===e&&0===this._a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return l(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(y,arguments)},brighten:function(){return this._applyModification(b,arguments)},darken:function(){return this._applyModification(v,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(x,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(O,arguments)},complement:function(){return this._applyCombination(w,arguments)},monochromatic:function(){return this._applyCombination(E,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(_,[3])},tetrad:function(){return this._applyCombination(_,[4])}},l.fromRatio=function(e,t){if("object"==r(e)){var n={};for(var i in e)e.hasOwnProperty(i)&&("a"===i?n[i]=e[i]:n[i]=R(e[i]));e=n}return l(e,t)},l.equals=function(e,t){return!!e&&!!t&&l(e).toRgbString()==l(t).toRgbString()},l.random=function(){return l.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},l.mix=function(e,t,n){n=0===n?0:n||50;var r=l(e).toRgb(),i=l(t).toRgb(),o=n/100;return l({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},l.readability=function(e,t){var n=l(e),r=l(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},l.isReadable=function(e,t,n){var r,i,o,a,s,u=l.readability(e,t);switch(s=!1,(i=((r=(r=n)||{level:"AA",size:"small"}).level||"AA").toUpperCase(),o=(r.size||"small").toLowerCase(),"AA"!==i&&"AAA"!==i&&(i="AA"),"small"!==o&&"large"!==o&&(o="small"),a={level:i,size:o}).level+a.size){case"AAsmall":case"AAAlarge":s=u>=4.5;break;case"AAlarge":s=u>=3;break;case"AAAsmall":s=u>=7}return s},l.mostReadable=function(e,t,n){var r,i,o,a,s=null,u=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var c=0;cu&&(u=r,s=l(t[c]));return l.isReadable(e,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,l.mostReadable(e,["#fff","#000"],n))};var A=l.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},T=l.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(A);function M(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function P(e,t){"string"==typeof(n=e)&&-1!=n.indexOf(".")&&1===parseFloat(n)&&(e="100%");var n,r,i="string"==typeof(r=e)&&-1!=r.indexOf("%");return(e=Math.min(t,Math.max(0,parseFloat(e))),i&&(e=parseInt(e*t,10)/100),1e-6>Math.abs(e-t))?1:e%t/parseFloat(t)}function j(e){return Math.min(1,Math.max(0,e))}function C(e){return parseInt(e,16)}function k(e){return 1==e.length?"0"+e:""+e}function R(e){return e<=1&&(e=100*e+"%"),e}function L(e){return Math.round(255*parseFloat(e)).toString(16)}var I=(o="[\\s|\\(]+("+(i="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+i+")[,|\\s]+("+i+")\\s*\\)?",a="[\\s|\\(]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")\\s*\\)?",{CSS_UNIT:new RegExp(i),rgb:RegExp("rgb"+o),rgba:RegExp("rgba"+a),hsl:RegExp("hsl"+o),hsla:RegExp("hsla"+a),hsv:RegExp("hsv"+o),hsva:RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function D(e){return!!I.CSS_UNIT.exec(e)}}}]); \ No newline at end of file + `};class c extends l.ShaderMaterial{constructor(e){super({type:"LineMaterial",uniforms:l.UniformsUtils.clone(l.ShaderLib.line.uniforms),vertexShader:l.ShaderLib.line.vertexShader,fragmentShader:l.ShaderLib.line.fragmentShader,clipping:!0}),Object.defineProperties(this,{color:{enumerable:!0,get:function(){return this.uniforms.diffuse.value},set:function(e){this.uniforms.diffuse.value=e}},worldUnits:{enumerable:!0,get:function(){return"WORLD_UNITS"in this.defines},set:function(e){!0===e?this.defines.WORLD_UNITS="":delete this.defines.WORLD_UNITS}},linewidth:{enumerable:!0,get:function(){return this.uniforms.linewidth.value},set:function(e){this.uniforms.linewidth.value=e}},dashed:{enumerable:!0,get:function(){return"USE_DASH"in this.defines},set(e){!!e!="USE_DASH"in this.defines&&(this.needsUpdate=!0),!0===e?this.defines.USE_DASH="":delete this.defines.USE_DASH}},dashScale:{enumerable:!0,get:function(){return this.uniforms.dashScale.value},set:function(e){this.uniforms.dashScale.value=e}},dashSize:{enumerable:!0,get:function(){return this.uniforms.dashSize.value},set:function(e){this.uniforms.dashSize.value=e}},dashOffset:{enumerable:!0,get:function(){return this.uniforms.dashOffset.value},set:function(e){this.uniforms.dashOffset.value=e}},gapSize:{enumerable:!0,get:function(){return this.uniforms.gapSize.value},set:function(e){this.uniforms.gapSize.value=e}},opacity:{enumerable:!0,get:function(){return this.uniforms.opacity.value},set:function(e){this.uniforms.opacity.value=e}},resolution:{enumerable:!0,get:function(){return this.uniforms.resolution.value},set:function(e){this.uniforms.resolution.value.copy(e)}},alphaToCoverage:{enumerable:!0,get:function(){return"ALPHA_TO_COVERAGE"in this.defines},set:function(e){!!e!="ALPHA_TO_COVERAGE"in this.defines&&(this.needsUpdate=!0),!0===e?(this.defines.ALPHA_TO_COVERAGE="",this.extensions.derivatives=!0):(delete this.defines.ALPHA_TO_COVERAGE,this.extensions.derivatives=!1)}}}),this.setValues(e)}}c.prototype.isLineMaterial=!0;let f=window.THREE?window.THREE:{Box3:r.ZzF,BufferGeometry:r.u9r,InstancedInterleavedBuffer:r.$TI,InterleavedBufferAttribute:r.kB5,Line3:r.Zzh,MathUtils:r.M8C,Matrix4:r.yGw,Mesh:r.Kj0,Sphere:r.aLr,Vector3:r.Pa4,Vector4:r.Ltg};var h=new f.BufferGeometry().setAttribute?"setAttribute":"addAttribute";let p=new f.Vector3,d=new f.Vector3,m=new f.Vector4,g=new f.Vector4,y=new f.Vector4,b=new f.Vector3,v=new f.Matrix4,x=new f.Line3,w=new f.Vector3,_=new f.Box3,S=new f.Sphere,O=new f.Vector4;class E extends f.Mesh{constructor(e=new u,t=new c({color:16777215*Math.random()})){super(e,t),this.type="LineSegments2"}computeLineDistances(){let e=this.geometry,t=e.attributes.instanceStart,n=e.attributes.instanceEnd,r=new Float32Array(2*t.count);for(let e=0,i=0,o=t.count;ed&&g.z>d)continue;if(m.z>d){let e=m.z-g.z,t=(m.z-d)/e;m.lerp(g,t)}else if(g.z>d){let e=g.z-m.z,t=(g.z-d)/e;g.lerp(m,t)}m.applyMatrix4(o),g.applyMatrix4(o),m.multiplyScalar(1/m.w),g.multiplyScalar(1/g.w),m.x*=l.x/2,m.y*=l.y/2,g.x*=l.x/2,g.y*=l.y/2,x.start.copy(m),x.start.z=0,x.end.copy(g),x.end.z=0;let n=x.closestPointToPointParameter(b,!0);x.at(n,w);let i=f.MathUtils.lerp(m.z,g.z,n),s=i>=-1&&i<=1,u=b.distanceTo(w)<.5*c;if(s&&u){x.start.fromBufferAttribute(h,e),x.end.fromBufferAttribute(p,e),x.start.applyMatrix4(a),x.end.applyMatrix4(a);let n=new f.Vector3,i=new f.Vector3;r.distanceSqToSegment(x.start,x.end,i,n),t.push({point:i,pointOnLine:n,distance:r.origin.distanceTo(i),object:this,face:null,faceIndex:e,uv:null,uv2:null})}}}}}E.prototype.LineSegments2=!0;class A extends u{constructor(){super(),this.type="LineGeometry"}setPositions(e){for(var t=e.length-3,n=new Float32Array(2*t),r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=[],r=null;return e.forEach(function(e){if(r){var i=180*(0,o.Z)(e,r)/Math.PI;if(i>t)for(var s=(0,a.Z)(r,e),u=1/Math.ceil(i/t),l=u;l<1;)n.push(s(l)),l+=u}n.push(r=e)}),n},d="undefined"!=typeof window&&window.THREE?window.THREE:{BufferGeometry:r.u9r,Float32BufferAttribute:r.a$l},m=new d.BufferGeometry().setAttribute?"setAttribute":"addAttribute",g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(a,e);var t,n,r,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=u(a);if(t){var r=u(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this)).type="GeoJsonGeometry",t.parameters={geoJson:e,radius:n,resolution:r};var s=(({Point:h,MultiPoint:function(e,t){var n={vertices:[],indices:[]};return e.map(function(e){return h(e,t)}).forEach(function(e){y(n,c(e,1)[0])}),[n]},LineString:g,MultiLineString:function(e,t){var n={vertices:[],indices:[]};return e.map(function(e){return g(e,t)}).forEach(function(e){y(n,c(e,1)[0])}),[n]},Polygon:b,MultiPolygon:function(e,t){var n={vertices:[],indices:[]},r={vertices:[],indices:[]};e.map(function(e){return b(e,t)}).forEach(function(e){var t=c(e,2),i=t[0],o=t[1];y(n,i),o&&y(r,o)});var i=[n];return r.vertices.length&&i.push(r),i}})[e.type]||function(){return[]})(e.coordinates,n),u=[],l=[],f=0;function h(e,t){return[{vertices:v(e[1],e[0],t),indices:[]}]}function g(e,t){for(var n=p(e,r).map(function(e){var n=c(e,2),r=n[0];return v(n[1],r,t)}),o=i.flatten([n]).vertices,a=Math.round(o.length/3),s=[],u=1;u=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;e.push(i)}}catch(e){r.e(e)}finally{r.f()}}function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=(90-e)*Math.PI/180,i=(90-t)*Math.PI/180;return[n*Math.sin(r)*Math.cos(i),n*Math.cos(r),n*Math.sin(r)*Math.sin(i)]}},76039:function(e,t,n){"use strict";n.d(t,{M:function(){return a},Z:function(){return o}});var r=n(13346),i=n(25484);function o(e,t){return((0,i.v)(t)?i.Z:a)(e,t)}function a(e,t){var n,i=t?t.length:0,o=e?Math.min(i,e.length):0,a=Array(o),s=Array(i);for(n=0;ns&&(a=t.slice(s,a),l[u]?l[u]+=a:l[++u]=a),(i=i[0])===(o=o[0])?l[u]?l[u]+=o:l[++u]=o:(l[++u]=null,p.push({i:u,x:(0,c.Z)(i,o)})),s=h.lastIndex;return s()=>e;function a(e,t){var n=t-e;return n?function(t){return e+t*n}:o(isNaN(e)?t:e)}var s=function e(t){var n,i=1==(n=+(n=t))?a:function(e,t){var r,i,a;return t-e?(r=e,i=t,r=Math.pow(r,a=n),i=Math.pow(i,a)-r,a=1/a,function(e){return Math.pow(r+e*i,a)}):o(isNaN(e)?t:e)};function s(e,t){var n=i((e=(0,r.B8)(e)).r,(t=(0,r.B8)(t)).r),o=i(e.g,t.g),s=i(e.b,t.b),u=a(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=s(t),e.opacity=u(t),e+""}}return s.gamma=e,s}(1);function u(e){return function(t){var n,i,o=t.length,a=Array(o),s=Array(o),u=Array(o);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[r],a=e[r+1],s=r>0?e[r-1]:2*o-a,u=rt&&(n=e,e=t,t=n),l=function(n){return Math.max(e,Math.min(t,n))}),r=u>2?v:b,i=o=null,y}function y(t){return null==t||isNaN(t=+t)?n:(i||(i=r(a.map(e),s,u)))(e(l(t)))}return y.invert=function(n){return l(t((o||(o=r(s,a.map(e),h.Z)))(n)))},y.domain=function(e){return arguments.length?(a=Array.from(e,d),c()):a.slice()},y.range=function(e){return arguments.length?(s=Array.from(e),c()):s.slice()},y.rangeRound=function(e){return s=Array.from(e),u=p,c()},y.clamp=function(e){return arguments.length?(l=!!e||g,c()):l!==g},y.interpolate=function(e){return arguments.length?(u=e,c()):u},y.unknown=function(e){return arguments.length?(n=e,y):n},function(n,r){return e=n,t=r,c()}})()(g,g);return n.copy=function(){return e().domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())},x.apply(n,arguments),t=n.domain,n.ticks=function(e){var n=t();return function(e,t,n){var r,i,o,s,u=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t0){let n=Math.round(e/s),r=Math.round(t/s);for(n*st&&--r,o=Array(i=r-n+1);++ut&&--r,o=Array(i=r-n+1);++u=r?u*=10:l>=i?u*=5:l>=o&&(u*=2),t0;){if((i=a(l,c,e))===r)return o[s]=l,o[u]=c,t(o);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else if(i<0)l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i;else break;r=i}return n},n}}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,n){var a=(t-e)/Math.max(0,n),s=Math.floor(Math.log(a)/Math.LN10),u=a/Math.pow(10,s);return s>=0?(u>=r?10:u>=i?5:u>=o?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(u>=r?10:u>=i?5:u>=o?2:1)}var s=n(86801),u=n(78307);let l=(0,u.Z)(s.Z),c=l.right;l.left,(0,u.Z)(function(e){return null===e?NaN:+e}).center;var f=n(13346),h=n(84364);function p(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function d(e){return+e}var m=[0,1];function g(e){return e}function y(e,t){var n;return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n})}function b(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i=-1&&o.z<=1&&!0===t.layers.test(a.layers);if(t.element.style.display=!0===e?"":"none",!0===e){t.onBeforeRender(c,n,a);let e=t.element;e.style.transform="translate("+-100*t.center.x+"%,"+-100*t.center.y+"%)translate("+(o.x*r+r)+"px,"+(-o.y*i+i)+"px)",e.parentNode!==h&&h.appendChild(e),t.onAfterRender(c,n,a)}let p={distanceToCameraSquared:(u.setFromMatrixPosition(a.matrixWorld),l.setFromMatrixPosition(t.matrixWorld),u.distanceToSquared(l))};f.objects.set(t,p)}for(let r=0,i=t.children.length;r2&&(t[r++]=e.getZ(n));return t}return e.array instanceof Float32Array?e.array:new Float32Array(e.array)}let o=e.index?e.toNonIndexed():e,a=t.generateTangents(i(o.attributes.position),i(o.attributes.normal),i(o.attributes.uv));if(n)for(let e=3;e=2&&t.setY(n,e.getY(n)),o>=3&&t.setZ(n,e.getZ(n)),o>=4&&t.setW(n,e.getW(n));return t}function c(e){let t=e.attributes,n=e.morphTargets,r=new Map;for(let e in t){let n=t[e];n.isInterleavedBufferAttribute&&(r.has(n)||r.set(n,l(n)),t[e]=r.get(n))}for(let e in n){let t=n[e];t.isInterleavedBufferAttribute&&(r.has(t)||r.set(t,l(t)),n[e]=r.get(t))}}function f(e){let t=0;for(let n in e.attributes){let r=e.getAttribute(n);t+=r.count*r.itemSize*r.array.BYTES_PER_ELEMENT}let n=e.getIndex();return t+(n?n.count*n.itemSize*n.array.BYTES_PER_ELEMENT:0)}function h(e,t=1e-4){t=Math.max(t,Number.EPSILON);let n={},i=e.getIndex(),o=e.getAttribute("position"),a=i?i.count:o.count,s=0,u=Object.keys(e.attributes),l={},c={},f=[],h=["getX","getY","getZ","getW"],p=["setX","setY","setZ","setW"];for(let t=0,n=u.length;te.materialIndex!==t.materialIndex?e.materialIndex-t.materialIndex:e.start-t.start),null===e.getIndex()){let t=e.getAttribute("position"),n=[];for(let e=0;en&&l.add(t)}l.normalize(),m.setXYZ(t+e,l.x,l.y,l.z)}}return f.setAttribute("normal",m),f}function y(e,t=!1){return console.warn("THREE.BufferGeometryUtils: mergeBufferGeometries() has been renamed to mergeGeometries()."),o(e,t)}function b(e){return console.warn("THREE.BufferGeometryUtils: mergeBufferAttributes() has been renamed to mergeAttributes()."),a(e)}},1547:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:function(){return l}});var i,o,a,s=/^\s+/,u=/\s+$/;function l(e,t){if(t=t||{},(e=e||"")instanceof l)return e;if(!(this instanceof l))return new l(e,t);var n,i,o,a,c,f,h,p,d,m,g,y,b,v,x,w,_,S,O,E,T=(i={r:0,g:0,b:0},o=1,a=null,c=null,f=null,h=!1,p=!1,"string"==typeof(n=e)&&(n=function(e){e=e.replace(s,"").replace(u,"").toLowerCase();var t,n=!1;if(A[e])e=A[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=I.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=I.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=I.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=I.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=I.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=I.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=I.hex8.exec(e))?{r:C(t[1]),g:C(t[2]),b:C(t[3]),a:C(t[4])/255,format:n?"name":"hex8"}:(t=I.hex6.exec(e))?{r:C(t[1]),g:C(t[2]),b:C(t[3]),format:n?"name":"hex"}:(t=I.hex4.exec(e))?{r:C(t[1]+""+t[1]),g:C(t[2]+""+t[2]),b:C(t[3]+""+t[3]),a:C(t[4]+""+t[4])/255,format:n?"name":"hex8"}:!!(t=I.hex3.exec(e))&&{r:C(t[1]+""+t[1]),g:C(t[2]+""+t[2]),b:C(t[3]+""+t[3]),format:n?"name":"hex"}}(n)),"object"==r(n)&&(D(n.r)&&D(n.g)&&D(n.b)?(d=n.r,m=n.g,g=n.b,i={r:255*M(d,255),g:255*M(m,255),b:255*M(g,255)},h=!0,p="%"===String(n.r).substr(-1)?"prgb":"rgb"):D(n.h)&&D(n.s)&&D(n.v)?(a=R(n.s),c=R(n.v),y=n.h,b=a,v=c,y=6*M(y,360),b=M(b,100),v=M(v,100),x=Math.floor(y),w=y-x,_=v*(1-b),S=v*(1-w*b),O=v*(1-(1-w)*b),i={r:255*[v,S,_,_,O,v][E=x%6],g:255*[O,v,v,S,_,_][E],b:255*[_,_,O,v,v,S][E]},h=!0,p="hsv"):D(n.h)&&D(n.s)&&D(n.l)&&(a=R(n.s),f=R(n.l),i=function(e,t,n){var r,i,o;function a(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=M(e,360),t=M(t,100),n=M(n,100),0===t)r=i=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;r=a(u,s,e+1/3),i=a(u,s,e),o=a(u,s,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(n.h,a,f),h=!0,p="hsl"),n.hasOwnProperty("a")&&(o=n.a)),o=P(o),{ok:h,format:n.format||p,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a:o});this._originalInput=e,this._r=T.r,this._g=T.g,this._b=T.b,this._a=T.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||T.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=T.ok}function c(e,t,n){var r,i,o=Math.max(e=M(e,255),t=M(t,255),n=M(n,255)),a=Math.min(e,t,n),s=(o+a)/2;if(o==a)r=i=0;else{var u=o-a;switch(i=s>.5?u/(2-o-a):u/(o+a),o){case e:r=(t-n)/u+(t>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(l(r));return o}function E(e,t){t=t||6;for(var n=l(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(l({h:r,s:i,v:o})),o=(o+s)%1;return a}l.prototype={isDark:function(){return 128>this.getBrightness()},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*((t=r.g/255)<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*((n=r.b/255)<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=P(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=f(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=c(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=c(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return h(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){var t,n,r,i,o;return t=this._r,n=this._g,r=this._b,i=this._a,o=[k(Math.round(t).toString(16)),k(Math.round(n).toString(16)),k(Math.round(r).toString(16)),k(L(i))],e&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*M(this._r,255))+"%",g:Math.round(100*M(this._g,255))+"%",b:Math.round(100*M(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*M(this._r,255))+"%, "+Math.round(100*M(this._g,255))+"%, "+Math.round(100*M(this._b,255))+"%)":"rgba("+Math.round(100*M(this._r,255))+"%, "+Math.round(100*M(this._g,255))+"%, "+Math.round(100*M(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(T[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+p(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=l(e);n="#"+p(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return!t&&r&&("hex"===e||"hex6"===e||"hex3"===e||"hex4"===e||"hex8"===e||"name"===e)?"name"===e&&0===this._a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return l(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(y,arguments)},brighten:function(){return this._applyModification(b,arguments)},darken:function(){return this._applyModification(v,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(x,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(O,arguments)},complement:function(){return this._applyCombination(w,arguments)},monochromatic:function(){return this._applyCombination(E,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(_,[3])},tetrad:function(){return this._applyCombination(_,[4])}},l.fromRatio=function(e,t){if("object"==r(e)){var n={};for(var i in e)e.hasOwnProperty(i)&&("a"===i?n[i]=e[i]:n[i]=R(e[i]));e=n}return l(e,t)},l.equals=function(e,t){return!!e&&!!t&&l(e).toRgbString()==l(t).toRgbString()},l.random=function(){return l.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},l.mix=function(e,t,n){n=0===n?0:n||50;var r=l(e).toRgb(),i=l(t).toRgb(),o=n/100;return l({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},l.readability=function(e,t){var n=l(e),r=l(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},l.isReadable=function(e,t,n){var r,i,o,a,s,u=l.readability(e,t);switch(s=!1,(i=((r=(r=n)||{level:"AA",size:"small"}).level||"AA").toUpperCase(),o=(r.size||"small").toLowerCase(),"AA"!==i&&"AAA"!==i&&(i="AA"),"small"!==o&&"large"!==o&&(o="small"),a={level:i,size:o}).level+a.size){case"AAsmall":case"AAAlarge":s=u>=4.5;break;case"AAlarge":s=u>=3;break;case"AAAsmall":s=u>=7}return s},l.mostReadable=function(e,t,n){var r,i,o,a,s=null,u=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var c=0;cu&&(u=r,s=l(t[c]));return l.isReadable(e,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,l.mostReadable(e,["#fff","#000"],n))};var A=l.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},T=l.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(A);function P(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function M(e,t){"string"==typeof(n=e)&&-1!=n.indexOf(".")&&1===parseFloat(n)&&(e="100%");var n,r,i="string"==typeof(r=e)&&-1!=r.indexOf("%");return(e=Math.min(t,Math.max(0,parseFloat(e))),i&&(e=parseInt(e*t,10)/100),1e-6>Math.abs(e-t))?1:e%t/parseFloat(t)}function j(e){return Math.min(1,Math.max(0,e))}function C(e){return parseInt(e,16)}function k(e){return 1==e.length?"0"+e:""+e}function R(e){return e<=1&&(e=100*e+"%"),e}function L(e){return Math.round(255*parseFloat(e)).toString(16)}var I=(o="[\\s|\\(]+("+(i="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+i+")[,|\\s]+("+i+")\\s*\\)?",a="[\\s|\\(]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")\\s*\\)?",{CSS_UNIT:new RegExp(i),rgb:RegExp("rgb"+o),rgba:RegExp("rgba"+a),hsl:RegExp("hsl"+o),hsla:RegExp("hsla"+a),hsv:RegExp("hsv"+o),hsva:RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function D(e){return!!I.CSS_UNIT.exec(e)}}}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/_app-73a71411f41c38cd.js b/renterd/assets/_next/static/chunks/pages/_app-73a71411f41c38cd.js deleted file mode 100644 index 47db67ec9..000000000 --- a/renterd/assets/_next/static/chunks/pages/_app-73a71411f41c38cd.js +++ /dev/null @@ -1,90 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{44711:function(e,t,n){"use strict";n.r(t),n.d(t,{ResizeObserver:function(){return q},ResizeObserverEntry:function(){return _},ResizeObserverSize:function(){return c}});var r,i,o,a=[],s="ResizeObserver loop completed with undelivered notifications.",l=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:s}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=s),window.dispatchEvent(e)};(r=i||(i={})).BORDER_BOX="border-box",r.CONTENT_BOX="content-box",r.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box";var u=function(e){return Object.freeze(e)},c=function(e,t){this.inlineSize=e,this.blockSize=t,u(this)},d=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,u(this)}return e.prototype.toJSON=function(){return{x:this.x,y:this.y,top:this.top,right:this.right,bottom:this.bottom,left:this.left,width:this.width,height:this.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),f=function(e){return e instanceof SVGElement&&"getBBox"in e},h=function(e){if(f(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e.offsetWidth,o=e.offsetHeight;return!(i||o||e.getClientRects().length)},p=function(e){if(e instanceof Element)return!0;var t,n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},m=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},v="undefined"!=typeof window?window:{},g=new WeakMap,y=/auto|scroll/,x=/^tb|vertical/,b=/msie|trident/i.test(v.navigator&&v.navigator.userAgent),w=function(e){return parseFloat(e||"0")},j=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new c((n?t:e)||0,(n?e:t)||0)},k=u({devicePixelContentBoxSize:j(),borderBoxSize:j(),contentBoxSize:j(),contentRect:new d(0,0,0,0)}),E=function(e,t){if(void 0===t&&(t=!1),g.has(e)&&!t)return g.get(e);if(h(e))return g.set(e,k),k;var n=getComputedStyle(e),r=f(e)&&e.ownerSVGElement&&e.getBBox(),i=!b&&"border-box"===n.boxSizing,o=x.test(n.writingMode||""),a=!r&&y.test(n.overflowY||""),s=!r&&y.test(n.overflowX||""),l=r?0:w(n.paddingTop),c=r?0:w(n.paddingRight),p=r?0:w(n.paddingBottom),m=r?0:w(n.paddingLeft),v=r?0:w(n.borderTopWidth),E=r?0:w(n.borderRightWidth),S=r?0:w(n.borderBottomWidth),_=r?0:w(n.borderLeftWidth),C=m+c,O=l+p,M=_+E,T=v+S,A=s?e.offsetHeight-T-e.clientHeight:0,P=a?e.offsetWidth-M-e.clientWidth:0,N=r?r.width:w(n.width)-(i?C+M:0)-P,R=r?r.height:w(n.height)-(i?O+T:0)-A,D=N+C+P+M,L=R+O+A+T,F=u({devicePixelContentBoxSize:j(Math.round(N*devicePixelRatio),Math.round(R*devicePixelRatio),o),borderBoxSize:j(D,L,o),contentBoxSize:j(N,R,o),contentRect:new d(m,l,N,R)});return g.set(e,F),F},S=function(e,t,n){var r=E(e,n),o=r.borderBoxSize,a=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case i.DEVICE_PIXEL_CONTENT_BOX:return s;case i.BORDER_BOX:return o;default:return a}},_=function(e){var t=E(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=u([t.borderBoxSize]),this.contentBoxSize=u([t.contentBoxSize]),this.devicePixelContentBoxSize=u([t.devicePixelContentBoxSize])},C=function(e){if(h(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},O=function(){var e=1/0,t=[];a.forEach(function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach(function(t){var n=new _(t.target),i=C(t.target);r.push(n),t.lastReportedSize=S(t.target,t.observedBox),ie?t.activeTargets.push(n):t.skippedTargets.push(n))})})},T=function(){var e=0;for(M(0);a.some(function(e){return e.activeTargets.length>0});)M(e=O());return a.some(function(e){return e.skippedTargets.length>0})&&l(),e>0},A=[],P=function(e){if(!o){var t=0,n=document.createTextNode("");new MutationObserver(function(){return A.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),o=function(){n.textContent=""+(t?t--:t++)}}A.push(e),o()},N=function(e){P(function(){requestAnimationFrame(e)})},R=0,D={attributes:!0,characterData:!0,childList:!0,subtree:!0},L=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],F=function(e){return void 0===e&&(e=0),Date.now()+e},z=!1,V=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),!z){z=!0;var n=F(e);N(function(){var r=!1;try{r=T()}finally{if(z=!1,e=n-F(),!R)return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},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,D)};document.body?t():v.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),L.forEach(function(t){return v.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),L.forEach(function(t){return v.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),Z=function(e){!R&&e>0&&V.start(),(R+=e)||V.stop()},I=function(){function e(e,t){this.target=e,this.observedBox=t||i.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=S(this.target,this.observedBox,!0);return f(e=this.target)||m(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),B=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},H=new WeakMap,U=function(e,t){for(var n=0;nU(r.observationTargets,t)&&(i&&a.push(r),r.observationTargets.push(new I(t,n&&n.box)),Z(1),V.schedule())},e.unobserve=function(e,t){var n=H.get(e),r=U(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&a.splice(a.indexOf(n),1),n.observationTargets.splice(r,1),Z(-1))},e.disconnect=function(e){var t=this,n=H.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),q=function(){function e(e){if(0==arguments.length)throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");W.connect(this,e)}return e.prototype.observe=function(e,t){if(0==arguments.length)throw TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!p(e))throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");W.observe(this,e,t)},e.prototype.unobserve=function(e){if(0==arguments.length)throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!p(e))throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");W.unobserve(this,e)},e.prototype.disconnect=function(){W.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}()},41816:function(e,t,n){"use strict";function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}n.d(t,{M:function(){return r}})},26215:function(e,t,n){"use strict";n.d(t,{F:function(){return i},e:function(){return o}});var r=n(2784);function i(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function o(...e){return(0,r.useCallback)(i(...e),e)}},34540:function(e,t,n){"use strict";n.d(t,{b:function(){return o},k:function(){return i}});var r=n(2784);function i(e,t){let n=(0,r.createContext)(t);function i(e){let{children:t,...i}=e,o=(0,r.useMemo)(()=>i,Object.values(i));return(0,r.createElement)(n.Provider,{value:o},t)}return i.displayName=e+"Provider",[i,function(i){let o=(0,r.useContext)(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function o(e,t=[]){let n=[],i=()=>{let t=n.map(e=>(0,r.createContext)(e));return function(n){let i=(null==n?void 0:n[e])||t;return(0,r.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return i.scopeName=e,[function(t,i){let o=(0,r.createContext)(i),a=n.length;function s(t){let{scope:n,children:i,...s}=t,l=(null==n?void 0:n[e][a])||o,u=(0,r.useMemo)(()=>s,Object.values(s));return(0,r.createElement)(l.Provider,{value:u},i)}return n=[...n,i],s.displayName=t+"Provider",[s,function(n,s){let l=(null==s?void 0:s[e][a])||o,u=(0,r.useContext)(l);if(u)return u;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e),o=i[`__scope${r}`];return{...t,...o}},{});return(0,r.useMemo)(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(i,...t)]}},72331:function(e,t,n){"use strict";n.d(t,{Dx:function(){return K},VY:function(){return $},aV:function(){return q},dk:function(){return Y},fC:function(){return H},h_:function(){return W},x8:function(){return G},xz:function(){return U}});var r=n(7896),i=n(2784),o=n(41816),a=n(26215),s=n(34540),l=n(26074),u=n(73597),c=n(83317),d=n(77334),f=n(6500),h=n(28245),p=n(72130),m=n(55070),v=n(70506),g=n(49732),y=n(99575);let x="Dialog",[b,w]=(0,s.b)(x),[j,k]=b(x),E=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...s}=e,l=k("DialogTrigger",n),u=(0,a.e)(t,l.triggerRef);return(0,i.createElement)(p.WV.button,(0,r.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":Z(l.open)},s,{ref:u,onClick:(0,o.M)(e.onClick,l.onOpenToggle)}))}),S="DialogPortal",[_,C]=b(S,{forceMount:void 0}),O="DialogOverlay",M=(0,i.forwardRef)((e,t)=>{let n=C(O,e.__scopeDialog),{forceMount:o=n.forceMount,...a}=e,s=k(O,e.__scopeDialog);return s.modal?(0,i.createElement)(h.z,{present:o||s.open},(0,i.createElement)(T,(0,r.Z)({},a,{ref:t}))):null}),T=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=k(O,n);return(0,i.createElement)(v.Z,{as:y.g7,allowPinchZoom:!0,shards:[a.contentRef]},(0,i.createElement)(p.WV.div,(0,r.Z)({"data-state":Z(a.open)},o,{ref:t,style:{pointerEvents:"auto",...o.style}})))}),A="DialogContent",P=(0,i.forwardRef)((e,t)=>{let n=C(A,e.__scopeDialog),{forceMount:o=n.forceMount,...a}=e,s=k(A,e.__scopeDialog);return(0,i.createElement)(h.z,{present:o||s.open},s.modal?(0,i.createElement)(N,(0,r.Z)({},a,{ref:t})):(0,i.createElement)(R,(0,r.Z)({},a,{ref:t})))}),N=(0,i.forwardRef)((e,t)=>{let n=k(A,e.__scopeDialog),s=(0,i.useRef)(null),l=(0,a.e)(t,n.contentRef,s);return(0,i.useEffect)(()=>{let e=s.current;if(e)return(0,g.R)(e)},[]),(0,i.createElement)(D,(0,r.Z)({},e,{ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;r&&e.preventDefault()}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault())}))}),R=(0,i.forwardRef)((e,t)=>{let n=k(A,e.__scopeDialog),o=(0,i.useRef)(!1);return(0,i.createElement)(D,(0,r.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,i;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),o.current=!1},onInteractOutside:t=>{var r,i;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current=!0);let a=t.target,s=null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(a);s&&t.preventDefault()}}))}),D=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:l,...u}=e,f=k(A,n),h=(0,i.useRef)(null),p=(0,a.e)(t,h);return(0,m.EW)(),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(d.M,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:s,onUnmountAutoFocus:l},(0,i.createElement)(c.XB,(0,r.Z)({role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":Z(f.open)},u,{ref:p,onDismiss:()=>f.onOpenChange(!1)}))),!1)}),L="DialogTitle",F=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=k(L,n);return(0,i.createElement)(p.WV.h2,(0,r.Z)({id:a.titleId},o,{ref:t}))}),z=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=k("DialogDescription",n);return(0,i.createElement)(p.WV.p,(0,r.Z)({id:a.descriptionId},o,{ref:t}))}),V=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...a}=e,s=k("DialogClose",n);return(0,i.createElement)(p.WV.button,(0,r.Z)({type:"button"},a,{ref:t,onClick:(0,o.M)(e.onClick,()=>s.onOpenChange(!1))}))});function Z(e){return e?"open":"closed"}let[I,B]=(0,s.k)("DialogTitleWarning",{contentName:A,titleName:L,docsSlug:"dialog"}),H=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,c=(0,i.useRef)(null),d=(0,i.useRef)(null),[f=!1,h]=(0,u.T)({prop:r,defaultProp:o,onChange:a});return(0,i.createElement)(j,{scope:t,triggerRef:c,contentRef:d,contentId:(0,l.M)(),titleId:(0,l.M)(),descriptionId:(0,l.M)(),open:f,onOpenChange:h,onOpenToggle:(0,i.useCallback)(()=>h(e=>!e),[h]),modal:s},n)},U=E,W=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=k(S,t);return(0,i.createElement)(_,{scope:t,forceMount:n},i.Children.map(r,e=>(0,i.createElement)(h.z,{present:n||a.open},(0,i.createElement)(f.h,{asChild:!0,container:o},e))))},q=M,$=P,K=F,Y=z,G=V},83317:function(e,t,n){"use strict";let r;n.d(t,{XB:function(){return f}});var i=n(7896),o=n(2784),a=n(41816),s=n(72130),l=n(26215),u=n(86029);let c="dismissableLayer.update",d=(0,o.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=(0,o.forwardRef)((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:g,onDismiss:y,...x}=e,b=(0,o.useContext)(d),[w,j]=(0,o.useState)(null),[,k]=(0,o.useState)({}),E=(0,l.e)(t,e=>j(e)),S=Array.from(b.layers),[_]=[...b.layersWithOutsidePointerEventsDisabled].slice(-1),C=S.indexOf(_),O=w?S.indexOf(w):-1,M=b.layersWithOutsidePointerEventsDisabled.size>0,T=O>=C,A=function(e){let t=(0,u.W)(e),n=(0,o.useRef)(!1),r=(0,o.useRef)(()=>{});return(0,o.useEffect)(()=>{let e=e=>{if(e.target&&!n.current){let n={originalEvent:e};function i(){p("dismissableLayer.pointerDownOutside",t,n,{discrete:!0})}"touch"===e.pointerType?(document.removeEventListener("click",r.current),r.current=i,document.addEventListener("click",r.current,{once:!0})):i()}n.current=!1},i=window.setTimeout(()=>{document.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),document.removeEventListener("pointerdown",e),document.removeEventListener("click",r.current)}},[t]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,n=[...b.branches].some(e=>e.contains(t));!T||n||(null==m||m(e),null==g||g(e),e.defaultPrevented||null==y||y())}),P=function(e){let t=(0,u.W)(e),n=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{let e=e=>{e.target&&!n.current&&p("dismissableLayer.focusOutside",t,{originalEvent:e},{discrete:!1})};return document.addEventListener("focusin",e),()=>document.removeEventListener("focusin",e)},[t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target,n=[...b.branches].some(e=>e.contains(t));n||(null==v||v(e),null==g||g(e),e.defaultPrevented||null==y||y())});return!function(e){let t=(0,u.W)(e);(0,o.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t])}(e=>{let t=O===b.layers.size-1;t&&(null==f||f(e),!e.defaultPrevented&&y&&(e.preventDefault(),y()))}),(0,o.useEffect)(()=>{if(w)return n&&(0===b.layersWithOutsidePointerEventsDisabled.size&&(r=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),b.layersWithOutsidePointerEventsDisabled.add(w)),b.layers.add(w),h(),()=>{n&&1===b.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=r)}},[w,n,b]),(0,o.useEffect)(()=>()=>{w&&(b.layers.delete(w),b.layersWithOutsidePointerEventsDisabled.delete(w),h())},[w,b]),(0,o.useEffect)(()=>{let e=()=>k({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,o.createElement)(s.WV.div,(0,i.Z)({},x,{ref:E,style:{pointerEvents:M?T?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.M)(e.onFocusCapture,P.onFocusCapture),onBlurCapture:(0,a.M)(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:(0,a.M)(e.onPointerDownCapture,A.onPointerDownCapture)}))});function h(){let e=new CustomEvent(c);document.dispatchEvent(e)}function p(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,s.jH)(i,o):i.dispatchEvent(o)}},55070:function(e,t,n){"use strict";n.d(t,{EW:function(){return o}});var r=n(2784);let i=0;function o(){(0,r.useEffect)(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:a()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:a()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}},77334:function(e,t,n){"use strict";let r;n.d(t,{M:function(){return f}});var i=n(7896),o=n(2784),a=n(26215),s=n(72130),l=n(86029);let u="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},f=(0,o.forwardRef)((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:f,onUnmountAutoFocus:g,...y}=e,[x,b]=(0,o.useState)(null),w=(0,l.W)(f),j=(0,l.W)(g),k=(0,o.useRef)(null),E=(0,a.e)(t,e=>b(e)),S=(0,o.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,o.useEffect)(()=>{if(r){function e(e){if(S.paused||!x)return;let t=e.target;x.contains(t)?k.current=t:m(k.current,{select:!0})}function t(e){S.paused||!x||x.contains(e.relatedTarget)||m(k.current,{select:!0})}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}},[r,x,S.paused]),(0,o.useEffect)(()=>{if(x){v.add(S);let e=document.activeElement,t=x.contains(e);if(!t){let t=new CustomEvent(u,d);x.addEventListener(u,w),x.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(m(r,{select:t}),document.activeElement!==n)return}(h(x).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&m(x))}return()=>{x.removeEventListener(u,w),setTimeout(()=>{let t=new CustomEvent(c,d);x.addEventListener(c,j),x.dispatchEvent(t),t.defaultPrevented||m(null!=e?e:document.body,{select:!0}),x.removeEventListener(c,j),v.remove(S)},0)}}},[x,w,j,S]);let _=(0,o.useCallback)(e=>{if(!n&&!r||S.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,o]=function(e){let t=h(e),n=p(t,e),r=p(t.reverse(),e);return[n,r]}(t),a=r&&o;a?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&m(o,{select:!0})):(e.preventDefault(),n&&m(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,S.paused]);return(0,o.createElement)(s.WV.div,(0,i.Z)({tabIndex:-1},y,{ref:E,onKeyDown:_}))});function h(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function p(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function m(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}let v=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=g(r,e)).unshift(e)},remove(e){var t;null===(t=(r=g(r,e))[0])||void 0===t||t.resume()}});function g(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},26074:function(e,t,n){"use strict";n.d(t,{M:function(){return l}});var r,i=n(2784),o=n(64680);let a=(r||(r=n.t(i,2)))["useId".toString()]||(()=>void 0),s=0;function l(e){let[t,n]=i.useState(a());return(0,o.b)(()=>{e||n(e=>null!=e?e:String(s++))},[e]),e||(t?`radix-${t}`:"")}},6500:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(7896),i=n(2784),o=n(28316),a=n(72130);let s=(0,i.forwardRef)((e,t)=>{var n;let{container:s=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...l}=e;return s?o.createPortal((0,i.createElement)(a.WV.div,(0,r.Z)({},l,{ref:t})),s):null})},28245:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var r=n(2784),i=n(28316),o=n(26215),a=n(64680);let s=e=>{let{present:t,children:n}=e,s=function(e){var t;let[n,o]=(0,r.useState)(),s=(0,r.useRef)({}),u=(0,r.useRef)(e),c=(0,r.useRef)("none"),d=e?"mounted":"unmounted",[f,h]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,r.useReducer)((e,n)=>{let r=t[e][n];return null!=r?r:e},d));return(0,r.useEffect)(()=>{let e=l(s.current);c.current="mounted"===f?e:"none"},[f]),(0,a.b)(()=>{let t=s.current,n=u.current,r=n!==e;if(r){let r=c.current,i=l(t);e?h("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?h("UNMOUNT"):n&&r!==i?h("ANIMATION_OUT"):h("UNMOUNT"),u.current=e}},[e,h]),(0,a.b)(()=>{if(n){let e=e=>{let t=l(s.current),r=t.includes(e.animationName);e.target===n&&r&&(0,i.flushSync)(()=>h("ANIMATION_END"))},t=e=>{e.target===n&&(c.current=l(s.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}h("ANIMATION_END")},[n,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:(0,r.useCallback)(e=>{e&&(s.current=getComputedStyle(e)),o(e)},[])}}(t),u="function"==typeof n?n({present:s.isPresent}):r.Children.only(n),c=(0,o.e)(s.ref,u.ref),d="function"==typeof n;return d||s.isPresent?(0,r.cloneElement)(u,{ref:c}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}s.displayName="Presence"},72130:function(e,t,n){"use strict";n.d(t,{WV:function(){return s},jH:function(){return l}});var r=n(7896),i=n(2784),o=n(28316),a=n(99575);let s=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,i.forwardRef)((e,n)=>{let{asChild:o,...s}=e,l=o?a.g7:t;return(0,i.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,i.createElement)(l,(0,r.Z)({},s,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function l(e,t){e&&(0,o.flushSync)(()=>e.dispatchEvent(t))}},99575:function(e,t,n){"use strict";n.d(t,{A4:function(){return l},g7:function(){return a}});var r=n(7896),i=n(2784),o=n(26215);let a=(0,i.forwardRef)((e,t)=>{let{children:n,...o}=e,a=i.Children.toArray(n),l=a.find(u);if(l){let e=l.props.children,n=a.map(t=>t!==l?t:i.Children.count(e)>1?i.Children.only(null):(0,i.isValidElement)(e)?e.props.children:null);return(0,i.createElement)(s,(0,r.Z)({},o,{ref:t}),(0,i.isValidElement)(e)?(0,i.cloneElement)(e,void 0,n):null)}return(0,i.createElement)(s,(0,r.Z)({},o,{ref:t}),n)});a.displayName="Slot";let s=(0,i.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,i.isValidElement)(n)?(0,i.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r],a=/^on[A-Z]/.test(r);a?n[r]=(...e)=>{null==o||o(...e),null==i||i(...e)}:"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:(0,o.F)(t,n.ref)}):i.Children.count(n)>1?i.Children.only(null):null});s.displayName="SlotClone";let l=({children:e})=>(0,i.createElement)(i.Fragment,null,e);function u(e){return(0,i.isValidElement)(e)&&e.type===l}},86029:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(2784);function i(e){let t=(0,r.useRef)(e);return(0,r.useEffect)(()=>{t.current=e}),(0,r.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}},73597:function(e,t,n){"use strict";n.d(t,{T:function(){return o}});var r=n(2784),i=n(86029);function o({prop:e,defaultProp:t,onChange:n=()=>{}}){let[o,a]=function({defaultProp:e,onChange:t}){let n=(0,r.useState)(e),[o]=n,a=(0,r.useRef)(o),s=(0,i.W)(t);return(0,r.useEffect)(()=>{a.current!==o&&(s(o),a.current=o)},[o,a,s]),n}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:o,u=(0,i.W)(n),c=(0,r.useCallback)(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else a(t)},[s,e,a,u]);return[l,c]}},64680:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(2784);let i=(null==globalThis?void 0:globalThis.document)?r.useLayoutEffect:()=>{}},25447:function(e,t,n){"use strict";e.exports=n(44868)},99550:function(e,t,n){"use strict";e.exports=n(22360)},6901:function(e,t,n){"use strict";e.exports=n(78476)},8669:function(e,t,n){"use strict";e.exports=n(19455)},53609:function(e,t,n){"use strict";e.exports=n(96721)},81401:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.children,n=void 0===t?s.default:t,p=e.axisClassName,v=e.hideAxisLine,g=e.hideTicks,y=e.hideZero,x=void 0!==y&&y,b=e.left,w=e.numTicks,j=void 0===w?10:w,k=e.orientation,E=void 0===k?d.default.bottom:k,S=e.rangePadding,_=void 0===S?0:S,C=e.scale,O=e.tickFormat,M=e.tickLength,T=void 0===M?8:M,A=e.tickValues,P=e.top,N=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,h),R=null!=O?O:(0,u.default)(C),D=E===d.default.left,L=E===d.default.top,F=L||E===d.default.bottom,z=(0,l.default)(C),V=D||L?-1:1,Z=C.range(),I=(0,f.default)(_),B=(0,c.default)({x:Number(Z[0])+.5-I.start,y:0},F),H=(0,c.default)({x:Number(Z[Z.length-1])+.5+I.end,y:0},F),U=(null!=A?A:(0,a.getTicks)(C,j)).filter(function(e){return!x||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),W=U.map(function(e){var t=e.value,n=e.index,r=(0,a.coerceNumber)(z(t));return{value:t,index:n,from:(0,c.default)({x:r,y:0},F),to:(0,c.default)({x:r,y:T*V},F),formattedValue:R(t,n,U)}});return r.default.createElement(o.Group,{className:(0,i.default)("visx-axis",p),top:void 0===P?0:P,left:void 0===b?0:b},n(m({},N,{axisFromPoint:B,axisToPoint:H,hideAxisLine:void 0!==v&&v,hideTicks:void 0!==g&&g,hideZero:x,horizontal:F,numTicks:j,orientation:E,rangePadding:_,scale:C,tickFormat:R,tickLength:T,tickPosition:z,tickSign:V,ticks:W})))},p(n(13980));var r=p(n(2784)),i=p(n(72779)),o=n(71602),a=n(63243),s=p(n(58052)),l=p(n(71387)),u=p(n(16882)),c=p(n(89591)),d=p(n(87209)),f=p(n(31863)),h=["children","axisClassName","hideAxisLine","hideTicks","hideZero","left","numTicks","orientation","rangePadding","scale","tickFormat","tickLength","tickValues","top"];function p(e){return e&&e.__esModule?e:{default:e}}function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:a.default.bottom,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))};var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:a.default.left,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.leftTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-right",t),labelOffset:void 0===n?36:n,orientation:a.default.right,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.rightTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-top",t),labelOffset:void 0===n?8:n,orientation:a.default.top,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.topTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(r=a()).done;){var s=r.value,l=Math.sqrt(Math.pow(s.x-e.x,2)+Math.pow(s.y-e.y,2));l0)?(0,i.default)(e,t):{x:(0,r.default)(e.x,null!=(o=n.xMin)?o:-1/0,null!=(a=n.xMax)?a:1/0),y:(0,r.default)(e.y,null!=(s=n.yMin)?s:-1/0,null!=(l=n.yMax)?l:1/0)}};var r=o(n(30968)),i=o(n(98929));function o(e){return e&&e.__esModule?e:{default:e}}},32722:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return(0,r.useMemo)(function(){if(!e)return[];var t=e.getCTM()||new DOMMatrix;return function(e,t,n){if(void 0===n&&(n=1),!e)return[];for(var r=[],i=e.getTotalLength(),o=0;o<=i;o+=n){var a=e.getPointAtLength(o).matrixTransform(t);r.push(a)}return r}(e,t)},[null==e?void 0:e.getTotalLength()])};var r=n(2784)},37016:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=(0,r.useState)(e),n=t[0],i=t[1],o=(0,r.useRef)(null),a=(0,r.useCallback)(function(e,t){o.current=t||null,i(e)},[i]);return(0,r.useLayoutEffect)(function(){o.current&&(o.current(n),o.current=null)},[n]),[n,a]};var r=n(2784)},65319:function(e,t,n){"use strict";n.r(t),n.d(t,{localPoint:function(){return r.Z},touchPoint:function(){return i.Z}});var r=n(91032),i=n(49833)},91032:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(49833),i=n(44321);function o(e,t){if((0,i.kK)(e)&&t)return(0,r.Z)(e,t);if((0,i.cO)(e)){var n=e.target;if(n)return(0,r.Z)(n,e)}return null}},49833:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(19067),i=n(44321);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:o({},a);if((0,i.N5)(e))return{x:e.clientX,y:e.clientY};var t=null==e?void 0:e.target,n=t&&"getBoundingClientRect"in t?t.getBoundingClientRect():null;return n?{x:n.x+n.width/2,y:n.y+n.height/2}:o({},a)}(t),s=(0,i.vZ)(e)?e.ownerSVGElement:e,l=(0,i.DY)(s)?s.getScreenCTM():null;if((0,i.r4)(s)&&l){var u=s.createSVGPoint();return u.x=n.x,u.y=n.y,u=u.matrixTransform(l.inverse()),new r.Z({x:u.x,y:u.y})}var c=e.getBoundingClientRect();return new r.Z({x:n.x-c.left-e.clientLeft,y:n.y-c.top-e.clientTop})}},44321:function(e,t,n){"use strict";function r(e){return!!e&&e instanceof Element}function i(e){return!!e&&(e instanceof SVGElement||"ownerSVGElement"in e)}function o(e){return!!e&&"createSVGPoint"in e}function a(e){return!!e&&"getScreenCTM"in e}function s(e){return!!e&&"changedTouches"in e}function l(e){return!!e&&"clientX"in e}function u(e){return!!e&&(e instanceof Event||"nativeEvent"in e&&e.nativeEvent instanceof Event)}n.d(t,{DY:function(){return a},N5:function(){return l},cO:function(){return u},kK:function(){return r},r4:function(){return o},vZ:function(){return i},z6:function(){return s}})},21516:function(e,t,n){"use strict";t.__esModule=!0,t.default=p;var r=f(n(13980)),i=f(n(2784)),o=f(n(72779)),a=f(n(47440)),s=n(71602),l=n(61305),u=n(63243),c=f(n(12345)),d=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function f(e){return e&&e.__esModule?e:{default:e}}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),_=null!=k?k:(0,u.getTicks)(r,void 0===b?10:b),C=(null!=j?j:0)+(0,c.default)(r)/2,O=_.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+C;return{index:t,from:new l.Point({x:i,y:0}),to:new l.Point({x:i,y:f})}});return i.default.createElement(s.Group,{className:(0,o.default)("visx-columns",x),top:void 0===t?0:t,left:void 0===n?0:n},E?E({lines:O}):O.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(a.default,h({key:"column-line-"+r,from:t,to:n,stroke:m,strokeWidth:g,strokeDasharray:y,style:w},S))}))}p.propTypes={tickValues:r.default.array,height:r.default.number.isRequired}},34264:function(e,t,n){"use strict";t.__esModule=!0,t.default=p;var r=f(n(13980)),i=f(n(2784)),o=f(n(72779)),a=f(n(47440)),s=n(71602),l=n(61305),u=n(63243),c=f(n(12345)),d=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function f(e){return e&&e.__esModule?e:{default:e}}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),_=null!=E?E:(0,u.getTicks)(r,void 0===w?10:w),C=(null!=k?k:0)+(0,c.default)(r)/2,O=_.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+C;return{index:t,from:new l.Point({x:0,y:i}),to:new l.Point({x:f,y:i})}});return i.default.createElement(s.Group,{className:(0,o.default)("visx-rows",x),top:void 0===t?0:t,left:void 0===n?0:n},b?b({lines:O}):O.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(a.default,h({key:"row-line-"+r,from:t,to:n,stroke:m,strokeWidth:g,strokeDasharray:y,style:j},S))}))}p.propTypes={tickValues:r.default.array,width:r.default.number.isRequired}},12345:function(e,t){"use strict";t.__esModule=!0,t.default=function(e){return"bandwidth"in e?e.bandwidth():0}},59309:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(13980),i=n.n(r),o=n(2784),a=n(72779),s=n.n(a),l=["top","left","transform","className","children","innerRef"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,l);return o.createElement("g",u({ref:c,className:s()("visx-group",i),transform:r||"translate("+(void 0===n?0:n)+", "+(void 0===t?0:t)+")"},d),a)}c.propTypes={top:i().number,left:i().number,transform:i().string,className:i().string,children:i().node,innerRef:i().oneOfType([i().string,i().func,i().object])}},71602:function(e,t,n){"use strict";n.r(t),n.d(t,{Group:function(){return r.Z}});var r=n(59309)},19067:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=function(){function e(e){var t=e.x,n=e.y;this.x=0,this.y=0,this.x=void 0===t?0:t,this.y=void 0===n?0:n}var t=e.prototype;return t.value=function(){return{x:this.x,y:this.y}},t.toArray=function(){return[this.x,this.y]},e}()},61305:function(e,t,n){"use strict";n.r(t),n.d(t,{Point:function(){return r.Z},subtractPoints:function(){return o},sumPoints:function(){return i}});var r=n(19067);function i(e,t){return new r.Z({x:e.x+t.x,y:e.y+t.y})}function o(e,t){return new r.Z({x:e.x-t.x,y:e.y-t.y})}},93125:function(e,t,n){"use strict";t.Z=function(e){var t=e.animationTrajectory,n=e.tickComponent,s=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,a),l=(0,r.useMemo)(function(){return function(e){return r.default.createElement(o.default,u({},e,{tickComponent:n,animationTrajectory:t}))}},[t,n]);return r.default.createElement(i.default,u({},s,{ticksComponent:l}))},l(n(13980));var r=function(e,t){if(!t&&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]}return r.default=e,n&&n.set(e,r),r}(n(2784)),i=l(n(81401)),o=l(n(65154)),a=["animationTrajectory","tickComponent"];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 l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a);return r.default.createElement(i.default,{scale:t,height:n,numTicks:s,tickValues:u,className:c,top:f,left:h},function(e){var n=e.lines;return r.default.createElement(o.default,l({scale:t,lines:n,animationTrajectory:d,animateXOrY:"x",lineKey:function(e){var t,n;return"column-"+(null!=(t=null==e?void 0:null==(n=e.from)?void 0:n.x)?t:"")+"-"+e.index}},p))})};var r=s(n(2784)),i=s(n(21516)),o=s(n(55727)),a=["scale","height","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),h=(0,o.useTransition)(n,u({},(0,a.default)({scale:t,animateXOrY:l,animationTrajectory:r}),{key:c}));return i.default.createElement(i.default.Fragment,null,h(function(e,t,n){var r=e.fromX,a=e.toX,s=e.fromY,l=e.toY,c=e.opacity,h=n.key;return i.default.createElement(o.animated.line,u({key:h,x1:r,x2:a,y1:s,y2:l,strokeOpacity:c,style:d},f))}))}c.propTypes={lineKey:r.default.func.isRequired}},93353:function(e,t,n){"use strict";t.Z=function(e){var t=e.scale,n=e.width,s=e.numTicks,u=e.tickValues,c=(e.offset,e.className),d=e.animationTrajectory,f=e.top,h=e.left,p=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,a);return r.default.createElement(i.default,{scale:t,width:n,numTicks:s,tickValues:u,className:c,top:f,left:h},function(e){var n=e.lines;return r.default.createElement(o.default,l({scale:t,lines:n,animationTrajectory:d,animateXOrY:"y",lineKey:function(e){var t,n;return"row-"+(null!=(t=null==e?void 0:null==(n=e.from)?void 0:n.y)?t:"")+"-"+e.index}},p))})};var r=s(n(2784)),i=s(n(34264)),o=s(n(55727)),a=["scale","width","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),g=(0,o.useRef)(null),y=(0,o.useRef)(0),x=(0,o.useState)({width:0,height:0,top:0,left:0}),b=x[0],w=x[1],j=(0,o.useMemo)(function(){var e=Array.isArray(f)?f:[f];return(0,i.default)(function(t){w(function(n){return Object.keys(n).filter(function(e){return n[e]!==t[e]}).every(function(t){return e.includes(t)})?n:t})},l,{leading:m})},[l,m,f]);return(0,o.useEffect)(function(){var e=new a.ResizeObserver(function(e){void 0===e&&(e=[]),e.forEach(function(e){var t=e.contentRect,n=t.left,r=t.top,i=t.width,o=t.height;y.current=window.requestAnimationFrame(function(){j({width:i,height:o,top:r,left:n})})})});return g.current&&e.observe(g.current),function(){window.cancelAnimationFrame(y.current),e.disconnect(),null!=j&&j.cancel&&j.cancel()}},[j]),o.default.createElement("div",c({style:void 0===h?{width:"100%",height:"100%"}:h,ref:g,className:t},v),n(c({},b,{ref:g.current,resize:j})))}f.propTypes={className:r.default.string,debounceTime:r.default.number,enableDebounceLeadingCall:r.default.bool,ignoreDimensions:r.default.oneOfType([r.default.any,r.default.arrayOf(r.default.any)]),children:r.default.func.isRequired}},2663:function(e,t,n){"use strict";var r=n(8597),i=n(12430),o=n(70590),a=n(50630),s=n(34278),l=n(64183),u=n(61662),c=n(43634),d=n(73335),f=n(54229),h=n(30558),p=n(71646),m=n(26587);t.Z=function(e){if(void 0!==e&&"type"in e)switch(e.type){case"linear":break;case"log":return(0,i.Z)(e);case"pow":return(0,o.Z)(e);case"sqrt":return(0,a.Z)(e);case"symlog":return(0,s.Z)(e);case"time":return(0,l.Z)(e);case"utc":return(0,u.Z)(e);case"quantile":return(0,c.Z)(e);case"quantize":return(0,d.Z)(e);case"threshold":return(0,f.Z)(e);case"ordinal":return(0,h.Z)(e);case"point":return(0,p.Z)(e);case"band":return(0,m.Z)(e)}return(0,r.Z)(e)}},63243:function(e,t,n){"use strict";n.r(t),n.d(t,{coerceNumber:function(){return S.Z},createScale:function(){return b.Z},getTicks:function(){return _.Z},inferScaleType:function(){return E},scaleBand:function(){return r.Z},scaleCanBeZeroed:function(){return O.Z},scaleLinear:function(){return o.Z},scaleLog:function(){return f.Z},scaleOrdinal:function(){return p.Z},scalePoint:function(){return i.Z},scalePower:function(){return h.Z},scaleQuantile:function(){return v.Z},scaleQuantize:function(){return m.Z},scaleRadial:function(){return u},scaleSqrt:function(){return x.Z},scaleSymlog:function(){return g.Z},scaleThreshold:function(){return y.Z},scaleTime:function(){return c.Z},scaleUtc:function(){return d.Z},toString:function(){return C.Z},updateScale:function(){return j}});var r=n(26587),i=n(71646),o=n(8597),a=n(19637),s=n(25176),l=(0,s.Z)("domain","range","clamp","nice","round","unknown");function u(e){return l((0,a.Z)(),e)}var c=n(64183),d=n(61662),f=n(12430),h=n(70590),p=n(30558),m=n(73335),v=n(43634),g=n(34278),y=n(54229),x=n(50630),b=n(2663),w=s.Z.apply(void 0,s.a),j=function(e,t){return w(e.copy(),t)},k=n(40668);function E(e){return"paddingInner"in e?"band":"padding"in e?"point":"quantiles"in e?"quantile":"base"in e?"log":"exponent"in e?.5===e.exponent()?"sqrt":"pow":"constant"in e?"symlog":"clamp"in e?e.ticks()[0]instanceof Date?(0,k.Z)(e)?"utc":"time":"linear":"nice"in e?"quantize":"invertExtent"in e?"threshold":"ordinal"}var S=n(28142),_=n(71220),C=n(51519),O=n(34636)},25176:function(e,t,n){"use strict";n.d(t,{a:function(){return _},Z:function(){return O}});var r=n(88751),i=n(87286),o=n(43780),a=n(77636),s=n(78978),l={lab:r.Z,hcl:i.Z,"hcl-long":i.b,hsl:o.Z,"hsl-long":o.q,cubehelix:a.Z,"cubehelix-long":a.B,rgb:s.ZP},u=n(68603),c=n(54076),d=n(18450),f=n(50690),h=n(52546),p=n(76231),m=n(97344),v=n(12370),g=n(28239),y=n(52004),x=n(94758),b=n(97631),w=n(2908),j=n(40668),k={day:u.Z,hour:c.Z,minute:d.Z,month:f.Z,second:h.Z,week:p.OM,year:m.Z},E={day:v.Z,hour:g.Z,minute:y.Z,month:x.Z,second:h.Z,week:b.Ox,year:w.Z},S=n(74672),_=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],C={domain:function(e,t){t.domain&&e.domain(t.domain)},nice:function(e,t){if("nice"in t&&void 0!==t.nice&&"nice"in e){var n=t.nice;if("boolean"==typeof n)n&&e.nice();else if("number"==typeof n)e.nice(n);else{var r=(0,j.Z)(e);if("string"==typeof n)e.nice(r?E[n]:k[n]);else{var i=n.interval,o=n.step,a=(r?E[i]:k[i]).every(o);null!=a&&e.nice(a)}}}},zero:function(e,t){if("zero"in t&&!0===t.zero){var n=e.domain(),r=n[0],i=n[1],o=i=0||(i[n]=e[n]);return i}(e,s),y=(0,a.Nb)({innerRadius:i,outerRadius:u,cornerRadius:c,startAngle:d,endAngle:f,padAngle:h,padRadius:p});return m?r.createElement(r.Fragment,null,m({path:y})):n||null!=d&&null!=f&&null!=i&&null!=u?r.createElement("path",l({ref:v,className:o()("visx-arc",t),d:y(n)||""},g)):(console.warn("[@visx/shape/Arc]: expected data because one of startAngle, endAngle, innerRadius, outerRadius is undefined. Bailing."),null)}var c=n(59309),d=["className","top","left","data","centroid","innerRadius","outerRadius","cornerRadius","startAngle","endAngle","padAngle","padRadius","pieSort","pieSortValues","pieValue","children","fill"];function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),_=(0,a.Nb)({innerRadius:void 0===u?0:u,outerRadius:h,cornerRadius:p,padRadius:y}),C=(0,a.ve)({startAngle:m,endAngle:v,padAngle:g,value:w,sort:x,sortValues:b}),O=C(void 0===s?[]:s);return j?r.createElement(r.Fragment,null,j({arcs:O,path:_,pie:C})):r.createElement(c.Z,{className:"visx-pie-arcs-group",top:n,left:i},O.map(function(e,n){return r.createElement("g",{key:"pie-arc-"+n},r.createElement("path",f({className:o()("visx-pie-arc",t),d:_(e)||"",fill:null==E||"string"==typeof E?E:E(e)},S)),null==l?void 0:l(_.centroid(e),e))}))}var p=n(63739),m=n(27079),v=["className","angle","radius","defined","curve","data","innerRef","children","fill"];function g(){return(g=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,v),m=(0,a.aJ)({angle:n,radius:i,defined:s,curve:l});return f?r.createElement(r.Fragment,null,f({path:m})):r.createElement("path",g({ref:d,className:o()("visx-line-radial",t),d:m(c)||"",fill:void 0===h?"transparent":h},p))}var x=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function b(){return(b=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,x),y=(0,a.SO)({x:n,x0:i,x1:s,y:l,y0:u,y1:c,defined:void 0===h?function(){return!0}:h,curve:m});return t?r.createElement(r.Fragment,null,t({path:y})):r.createElement("path",b({ref:v,className:o()("visx-area",p),d:y(f)||""},g))}var j=n(55746),k=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function E(){return(E=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,k),S=(0,a.kn)({keys:s,value:g,order:y,offset:x}),_=(0,a.SO)({x:f,x0:h,x1:p,y0:m,y1:v,curve:u,defined:d}),C=S(l);return w?r.createElement(r.Fragment,null,w({stacks:C,path:_,stack:S})):r.createElement(c.Z,{top:n,left:i},C.map(function(e,n){return r.createElement("path",E({className:o()("visx-stack",t),key:"stack-"+n+"-"+(e.key||""),d:_(e)||"",fill:null==b?void 0:b(e.key,n)},j))}))}var _=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function C(){return(C=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,_);return r.createElement(S,C({className:t,top:n,left:i,keys:a,data:s,curve:l,defined:u,x:c,x0:d,x1:f,y0:h,y1:p,value:m,order:v,offset:g,color:y},b),x||function(e){var n=e.stacks,i=e.path;return n.map(function(e,n){return r.createElement("path",C({className:o()("visx-area-stack",t),key:"area-stack-"+n+"-"+(e.key||""),d:i(e)||"",fill:null==y?void 0:y(e.key,n)},b))})})}var M=n(14582),T=n(10897);function A(e){if("bandwidth"in e)return e.bandwidth();var t=e.range(),n=e.domain();return Math.abs(t[t.length-1]-t[0])/n.length}var P=["data","className","top","left","x0","x0Scale","x1Scale","yScale","color","keys","height","children"];function N(){return(N=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,P),g=A(u),y=t.map(function(e,t){return{index:t,x0:l(s(e)),bars:h.map(function(t,n){var r=e[t];return{index:n,key:t,value:r,width:g,x:u(t)||0,y:d(r)||0,color:f(t,n),height:p-(d(r)||0)}})}});return m?r.createElement(r.Fragment,null,m(y)):r.createElement(c.Z,{className:o()("visx-bar-group",n),top:i,left:a},y.map(function(e){return r.createElement(c.Z,{key:"bar-group-"+e.index+"-"+e.x0,left:e.x0},e.bars.map(function(t){return r.createElement(M.Z,N({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},v))}))}))}var D=["data","className","top","left","x","y0","y0Scale","y1Scale","xScale","color","keys","width","children"];function L(){return(L=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,D),y=A(f),x=t.map(function(e,t){return{index:t,y0:d(u(e))||0,bars:m.map(function(t,n){var r=e[t];return{index:n,key:t,value:r,height:y,x:l(r)||0,y:f(t)||0,color:p(t,n),width:h(r)||0}})}});return v?r.createElement(r.Fragment,null,v(x)):r.createElement(c.Z,{className:o()("visx-bar-group-horizontal",n),top:i,left:a},x.map(function(e){return r.createElement(c.Z,{key:"bar-group-"+e.index+"-"+e.y0,top:e.y0},e.bars.map(function(t){return r.createElement(M.Z,L({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},g))}))}))}var z=n(98926);function V(e){return"number"==typeof(null==e?void 0:e.x)?null==e?void 0:e.x:0}function Z(e){return"number"==typeof(null==e?void 0:e.y)?null==e?void 0:e.y:0}function I(e){return null==e?void 0:e.source}function B(e){return null==e?void 0:e.target}function H(e){return null==e?void 0:e[0]}function U(e){return null==e?void 0:e[1]}var W=n(26078),q=n(44081),$=n(30382),K=["data","className","top","left","x","y0","y1","xScale","yScale","color","keys","value","order","offset","children"];function Y(){return(Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,K),j=(0,z.Z)();v&&j.keys(v),g&&(0,W.Z)(j.value,g),y&&j.order((0,q.ZP)(y)),x&&j.offset((0,$.ZP)(x));var k=j(t),E=A(h),S=k.map(function(e,t){var n=e.key;return{index:t,key:n,bars:e.map(function(t,r){var i=(p(u(t))||0)-(p(f(t))||0),o=p(f(t)),a="bandwidth"in h?h(s(t.data)):Math.max((h(s(t.data))||0)-E/2);return{bar:t,key:n,index:r,height:i,width:E,x:a||0,y:o||0,color:m(e.key,r)}})}});return b?r.createElement(r.Fragment,null,b(S)):r.createElement(c.Z,{className:o()("visx-bar-stack",n),top:i,left:a},S.map(function(e){return e.bars.map(function(t){return r.createElement(M.Z,Y({key:"bar-stack-"+e.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},w))})}))}var X=["data","className","top","left","y","x0","x1","xScale","yScale","color","keys","value","order","offset","children"];function J(){return(J=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,X),j=(0,z.Z)();v&&j.keys(v),g&&(0,W.Z)(j.value,g),y&&j.order((0,q.ZP)(y)),x&&j.offset((0,$.ZP)(x));var k=j(t),E=A(p),S=k.map(function(e,t){var n=e.key;return{index:t,key:n,bars:e.map(function(t,r){var i=(h(f(t))||0)-(h(u(t))||0),o=h(u(t)),a="bandwidth"in p?p(s(t.data)):Math.max((p(s(t.data))||0)-i/2);return{bar:t,key:n,index:r,height:E,width:i,x:o||0,y:a||0,color:m(e.key,r)}})}});return b?r.createElement(r.Fragment,null,b(S)):r.createElement(c.Z,{className:o()("visx-bar-stack-horizontal",n),top:i,left:a},S.map(function(e){return e.bars.map(function(t){return r.createElement(M.Z,J({key:"bar-stack-"+e.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},w))})}))}var ee=function(e){return Math.PI/180*e},et=n(72215),en=["className","children","data","innerRef","path","x","y","source","target"];function er(){return(er=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,en),h=s||ei({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?Z:l,y:void 0===u?V:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",er({ref:a,className:o()("visx-link visx-link-horizontal-diagonal",t),d:h(i)||""},f))}var ea=["className","children","data","innerRef","path","x","y","source","target"];function es(){return(es=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ea),h=s||el({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?V:l,y:void 0===u?Z:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",es({ref:a,className:o()("visx-link visx-link-vertical-diagonal",t),d:h(i)||""},f))}var ec=["className","children","data","innerRef","path","angle","radius","source","target"];function ed(){return(ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ec),h=s||ef({source:void 0===c?I:c,target:void 0===d?B:d,angle:void 0===l?V:l,radius:void 0===u?Z:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",ed({ref:a,className:o()("visx-link visx-link-radial-diagonal",t),d:h(i)||""},f))}var ep=n(91672),em=["className","children","data","innerRef","path","percent","x","y","source","target"];function ev(){return(ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,em),p=s||eg({source:void 0===d?I:d,target:void 0===f?B:f,x:void 0===u?Z:u,y:void 0===c?V:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",ev({ref:a,className:o()("visx-link visx-link-horizontal-curve",t),d:p(i)||""},h))}var ex=["className","children","data","innerRef","path","percent","x","y","source","target"];function eb(){return(eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ex),p=s||ew({source:void 0===d?I:d,target:void 0===f?B:f,x:void 0===u?V:u,y:void 0===c?Z:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",eb({ref:a,className:o()("visx-link visx-link-vertical-curve",t),d:p(i)||""},h))}var ek=["className","children","data","innerRef","path","percent","x","y","source","target"];function eE(){return(eE=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ek),p=s||eS({source:void 0===d?I:d,target:void 0===f?B:f,x:void 0===u?V:u,y:void 0===c?Z:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",eE({ref:a,className:o()("visx-link visx-link-radial-curve",t),d:p(i)||""},h))}var eC=["className","children","innerRef","data","path","x","y","source","target"];function eO(){return(eO=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eC),h=s||eM({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?Z:l,y:void 0===u?V:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",eO({ref:i,className:o()("visx-link visx-link-horizontal-line",t),d:h(a)||""},f))}var eA=["className","innerRef","data","path","x","y","source","target","children"];function eP(){return(eP=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eA),h=a||eN({source:void 0===u?I:u,target:void 0===c?B:c,x:void 0===s?V:s,y:void 0===l?Z:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eP({ref:n,className:o()("visx-link visx-link-vertical-line",t),d:h(i)||""},f))}var eD=["className","innerRef","data","path","x","y","source","target","children"];function eL(){return(eL=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eD),h=a||eF({source:void 0===u?I:u,target:void 0===c?B:c,x:void 0===s?V:s,y:void 0===l?Z:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eL({ref:n,className:o()("visx-link visx-link-radial-line",t),d:h(i)||""},f))}var eV=["className","innerRef","data","path","percent","x","y","source","target","children"];function eZ(){return(eZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eV),p=a||eI({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?Z:l,y:void 0===u?V:u,percent:void 0===s?.5:s});return f?r.createElement(r.Fragment,null,f({path:p})):r.createElement("path",eZ({ref:n,className:o()("visx-link visx-link-horizontal-step",t),d:p(i)||""},h))}var eH=["className","innerRef","data","path","percent","x","y","source","target","children"];function eU(){return(eU=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eH),p=a||eW({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?V:l,y:void 0===u?Z:u,percent:void 0===s?.5:s});return f?r.createElement(r.Fragment,null,f({path:p})):r.createElement("path",eU({ref:n,className:o()("visx-link visx-link-vertical-step",t),d:p(i)||""},h))}var e$=["className","innerRef","data","path","x","y","source","target","children"];function eK(){return(eK=Object.assign?Object.assign.bind():function(e){for(var t=1;tMath.PI?f<=d:f>d)?1:0)+","+l*h+","+l*p+"\n L"+c*h+","+c*p+"\n "}}function eG(e){var t=e.className,n=e.innerRef,i=e.data,a=e.path,s=e.x,l=e.y,u=e.source,c=e.target,d=e.children,f=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,e$),h=a||eY({source:void 0===u?I:u,target:void 0===c?B:c,x:void 0===s?V:s,y:void 0===l?Z:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eK({ref:n,className:o()("visx-link visx-link-radial-step",t),d:h(i)||""},f))}var eX=["sides","size","center","rotate","className","children","innerRef","points"];function eJ(){return(eJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eX),f=c||e1({sides:void 0===t?4:t,size:void 0===n?25:n,center:void 0===i?eQ:i,rotate:void 0===a?0:a}).map(function(e){return[e.x,e.y]});return l?r.createElement(r.Fragment,null,l({points:f})):r.createElement("polygon",eJ({ref:u,className:o()("visx-polygon",s),points:f.join(" ")},d))}var e4=["className","innerRef"];function e3(){return(e3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,e4);return r.createElement("circle",e3({ref:n,className:o()("visx-circle",t)},i))}var e6=n(13980),e8=n.n(e6),e7="http://www.w3.org/2000/svg",e9=function(){return!0};function te(){return(te=Object.assign?Object.assign.bind():function(e){for(var t=1;tf[i]?d.map(function(e){return void 0===e?e9:function(t){return t>=e}}):d.map(function(e){return void 0===e?e9:function(t){return t<=e}}),p=0,m=0;m<=l;m+=a){for(var v=s.getPointAtLength(m),g=v[i];p=w[E+1];)E+=1;c[E].push(_)}}return c}catch(e){return[]}}({path:p,segmentation:s,pointsInSegments:h,sampleRate:l})},[p,s,h,l]);return r.createElement("g",null,v.map(function(e,i){return t?r.createElement(r.Fragment,{key:i},t({index:i,segment:e,styles:f[i]||f[i%f.length]})):r.createElement(m.Z,te({key:i,className:n,data:e,x:tt,y:tn},f[i]||f[i%f.length]))}))}tr.propTypes={segments:e8().arrayOf(e8().array).isRequired,styles:e8().array.isRequired,children:e8().func,className:e8().string}},55746:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(2784),i=n(72779),o=n.n(i),a=n(26078),s=n(52511),l=["x","x0","x1","y","y1","y0","yScale","data","defined","className","curve","innerRef","children"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,l),j=(0,s.SO)({x:t,x0:n,x1:i,defined:void 0===v?function(){return!0}:v,curve:y});return(null==f?j.y0(h.range()[0]):(0,a.Z)(j.y0,f),c&&!d&&(0,a.Z)(j.y1,c),d&&!c&&(0,a.Z)(j.y1,d),b)?r.createElement(r.Fragment,null,b({path:j})):r.createElement("path",u({ref:x,className:o()("visx-area-closed",g),d:j(m)||""},w))}},14582:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["className","innerRef"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a);return r.createElement("rect",s({ref:n,className:o()("visx-bar",t)},i))}},10897:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["children","className","innerRef","x","y","width","height","radius","all","top","bottom","left","right","topLeft","topRight","bottomLeft","bottomRight"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a),V=(n=(t={x:E,y:S,width:_,height:C,radius:O,all:void 0!==M&&M,top:void 0!==T&&T,bottom:void 0!==A&&A,left:void 0!==P&&P,right:void 0!==N&&N,topLeft:void 0!==R&&R,topRight:void 0!==D&&D,bottomLeft:void 0!==L&&L,bottomRight:void 0!==F&&F}).all,i=t.bottom,l=t.bottomLeft,u=t.bottomRight,c=t.height,d=t.left,f=t.radius,h=t.right,p=t.top,m=t.topLeft,v=t.topRight,g=t.width,y=t.x,x=t.y,v=n||p||h||v,u=n||i||h||u,l=n||i||d||l,m=n||p||d||m,b=2*(f=Math.max(1,Math.min(f,Math.min(g,c)/2))),("M"+(y+f)+","+x+" h"+(g-b)+"\n "+(v?"a"+f+","+f+" 0 0 1 "+f+","+f:"h"+f+"v"+f)+"\n v"+(c-b)+"\n "+(u?"a"+f+","+f+" 0 0 1 "+-f+","+f:"v"+f+"h"+-f)+"\n h"+(b-g)+"\n "+(l?"a"+f+","+f+" 0 0 1 "+-f+","+-f:"h"+-f+"v"+-f)+"\n v"+(b-c)+"\n "+(m?"a"+f+","+f+" 0 0 1 "+f+","+-f:"v"+-f+"h"+f)+"\nz").split("\n").join(""));return w?r.createElement(r.Fragment,null,w({path:V})):r.createElement("path",s({ref:k,className:o()("visx-bar-rounded",j),d:V},z))}},63739:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["from","to","fill","className","innerRef"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a),h=n.x===l.x||n.y===l.y;return r.createElement("line",s({ref:d,className:o()("visx-line",c),x1:n.x,y1:n.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))}},27079:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(2784),i=n(72779),o=n.n(i),a=n(52511),s=["children","data","x","y","fill","className","curve","innerRef","defined"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),g=(0,a.jv)({x:u,y:c,defined:void 0===m?function(){return!0}:m,curve:h});return t?r.createElement(r.Fragment,null,t({path:g})):r.createElement("path",l({ref:p,className:o()("visx-linepath",f),d:g(i)||"",fill:void 0===d?"transparent":d,strokeLinecap:"round"},v))}},52511:function(e,t,n){"use strict";n.d(t,{Nb:function(){return f},SO:function(){return h},aJ:function(){return v},jv:function(){return p},kn:function(){return g},ve:function(){return m}});var r=n(38764),i=n(12235),o=n(79767),a=n(69619),s=n(8329),l=n(98926),u=n(26078),c=n(44081),d=n(30382);function f(e){var t=void 0===e?{}:e,n=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.startAngle,s=t.endAngle,l=t.padAngle,c=t.padRadius,d=(0,r.Z)();return null!=n&&(0,u.Z)(d.innerRadius,n),null!=i&&(0,u.Z)(d.outerRadius,i),null!=o&&(0,u.Z)(d.cornerRadius,o),null!=a&&(0,u.Z)(d.startAngle,a),null!=s&&(0,u.Z)(d.endAngle,s),null!=l&&(0,u.Z)(d.padAngle,l),null!=c&&(0,u.Z)(d.padRadius,c),d}function h(e){var t=void 0===e?{}:e,n=t.x,r=t.x0,o=t.x1,a=t.y,s=t.y0,l=t.y1,c=t.defined,d=t.curve,f=(0,i.Z)();return n&&(0,u.Z)(f.x,n),r&&(0,u.Z)(f.x0,r),o&&(0,u.Z)(f.x1,o),a&&(0,u.Z)(f.y,a),s&&(0,u.Z)(f.y0,s),l&&(0,u.Z)(f.y1,l),c&&f.defined(c),d&&f.curve(d),f}function p(e){var t=void 0===e?{}:e,n=t.x,r=t.y,i=t.defined,a=t.curve,s=(0,o.Z)();return n&&(0,u.Z)(s.x,n),r&&(0,u.Z)(s.y,r),i&&s.defined(i),a&&s.curve(a),s}function m(e){var t=void 0===e?{}:e,n=t.startAngle,r=t.endAngle,i=t.padAngle,o=t.value,s=t.sort,l=t.sortValues,c=(0,a.Z)();return null===s?c.sort(s):null!=s&&c.sort(s),null===l?c.sortValues(l):null!=l&&c.sortValues(l),null!=o&&c.value(o),null!=i&&(0,u.Z)(c.padAngle,i),null!=n&&(0,u.Z)(c.startAngle,n),null!=r&&(0,u.Z)(c.endAngle,r),c}function v(e){var t=void 0===e?{}:e,n=t.angle,r=t.radius,i=t.defined,o=t.curve,a=(0,s.Z)();return n&&(0,u.Z)(a.angle,n),r&&(0,u.Z)(a.radius,r),i&&a.defined(i),o&&a.curve(o),a}function g(e){var t=e.keys,n=e.value,r=e.order,i=e.offset,o=(0,l.Z)();return t&&o.keys(t),n&&(0,u.Z)(o.value,n),r&&o.order((0,c.ZP)(r)),i&&o.offset((0,d.ZP)(i)),o}},26078:function(e,t,n){"use strict";function r(e,t){e(t)}n.d(t,{Z:function(){return r}})},30382:function(e,t,n){"use strict";n.d(t,{ZP:function(){return c},ed:function(){return u},nW:function(){return l}});var r=n(22254),i=n(76751),o=n(90541),a=n(36538),s=n(34928),l={expand:r.Z,diverging:i.Z,none:o.Z,silhouette:a.Z,wiggle:s.Z},u=Object.keys(l);function c(e){return e&&l[e]||l.none}},44081:function(e,t,n){"use strict";n.d(t,{ZP:function(){return c},s2:function(){return u},un:function(){return l}});var r=n(19721),i=n(82564),o=n(12197),a=n(81182),s=n(40277),l={ascending:r.Z,descending:i.Z,insideout:o.Z,none:a.Z,reverse:s.Z},u=Object.keys(l);function c(e){return e&&l[e]||l.none}},12935:function(e,t,n){"use strict";t.Z=function(e){var t=e.children,n=e.x,s=e.x0,u=e.x1,c=e.y,d=e.y0,f=e.y1,h=e.data,p=void 0===h?[]:h,m=e.defined,v=e.className,g=e.curve,y=e.innerRef,x=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,a),b=(0,o.area)({x:n,x0:s,x1:u,y:c,y0:d,y1:f,defined:void 0===m?function(){return!0}:m,curve:g});return t?r.default.createElement(r.default.Fragment,null,t({path:b})):r.default.createElement("path",l({ref:y,className:(0,i.default)("visx-area",v),d:b(p)||""},x))};var r=s(n(2784)),i=s(n(72779)),o=n(15601),a=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o),h=n.x===l.x||n.y===l.y;return r.default.createElement("line",s({ref:d,className:(0,i.default)("visx-line",c),x1:n.x,y1:n.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))};var r=a(n(2784)),i=a(n(72779)),o=["from","to","fill","className","innerRef"];function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a),g=(0,o.line)({x:u,y:c,defined:void 0===m?function(){return!0}:m,curve:h});return t?r.default.createElement(r.default.Fragment,null,t({path:g})):r.default.createElement("path",l({ref:p,className:(0,i.default)("visx-linepath",f),d:g(s)||"",fill:void 0===d?"transparent":d,strokeLinecap:"round"},v))};var r=s(n(2784)),i=s(n(72779)),o=n(15601),a=["children","data","x","y","fill","className","curve","innerRef","defined"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o)),p=h.x,m=void 0===p?0:p,v=h.fontSize,g=(0,i.Z)(e),y=g.wordsByLines,x=g.startDy,b=g.transform;return r.createElement("svg",{ref:u,x:void 0===t?0:t,y:void 0===n?0:n,fontSize:v,style:s},y.length>0?r.createElement("text",a({ref:c,transform:b},h,{textAnchor:void 0===l?"start":l}),y.map(function(e,t){return r.createElement("tspan",{key:t,x:m,dy:0===t?x:f},e.words.join(" "))})):null)}},89907:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(2784),i=n(32718),o=n.n(i),a=n(75715),s=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function l(e){return"number"==typeof e}function u(e){return"number"==typeof e&&Number.isFinite(e)||"string"==typeof e}function c(e){var t=e.verticalAnchor,n=void 0===t?"end":t,i=e.scaleToFit,c=void 0!==i&&i,d=e.angle,f=e.width,h=e.lineHeight,p=void 0===h?"1em":h,m=e.capHeight,v=void 0===m?"0.71em":m,g=e.children,y=e.style,x=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,s),b=x.x,w=void 0===b?0:b,j=x.y,k=void 0===j?0:j,E=!u(w)||!u(k),S=(0,r.useMemo)(function(){return{wordsWithWidth:(null==g?[]:g.toString().split(/(?:(?!\u00A0+)\s+)/)).map(function(e){return{word:e,wordWidth:(0,a.Z)(e,y)||0}}),spaceWidth:(0,a.Z)("\xa0",y)||0}},[g,y]),_=S.wordsWithWidth,C=S.spaceWidth,O=(0,r.useMemo)(function(){return E?[]:f||c?_.reduce(function(e,t){var n=t.word,r=t.wordWidth,i=e[e.length-1];return i&&(null==f||c||(i.width||0)+r+C0){var t=O[0].width||1,n="shrink-only"===c?Math.min(f/t,1):f/t,r=w-n*w,i=k-n*k;e.push("matrix("+n+", 0, 0, "+n+", "+r+", "+i+")")}return d&&e.push("rotate("+d+", "+w+", "+k+")"),e.length>0?e.join(" "):""},[E,w,k,f,c,O,d]);return{wordsByLines:O,startDy:M,transform:T}}},44425:function(e,t,n){"use strict";n.r(t),n.d(t,{Text:function(){return r.Z},getStringWidth:function(){return i.Z},useText:function(){return o.Z}});var r=n(64170),i=n(75715),o=n(89907)},75715:function(e,t,n){"use strict";var r=n(30733),i=n.n(r),o="__react_svg_text_measurement_id";t.Z=i()(function(e,t){try{var n=document.getElementById(o);if(!n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("aria-hidden","true"),r.style.width="0",r.style.height="0",r.style.position="absolute",r.style.top="-100%",r.style.left="-100%",(n=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("id",o),r.appendChild(n),document.body.appendChild(r)}return Object.assign(n.style,t),n.textContent=e,n.getComputedTextLength()}catch(e){return null}},function(e,t){return e+"_"+JSON.stringify(t)})},49732:function(e,t,n){"use strict";n.d(t,{R:function(){return s}});var r=new WeakMap,i=new WeakMap,o={},a=0,s=function(e,t,n){void 0===t&&(t="undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body),void 0===n&&(n="data-aria-hidden");var s=Array.isArray(e)?e:[e];o[n]||(o[n]=new WeakMap);var l=o[n],u=[],c=new Set,d=function(e){!e||c.has(e)||(c.add(e),d(e.parentNode))};s.forEach(d);var f=function(e){!e||s.indexOf(e)>=0||Array.prototype.forEach.call(e.children,function(e){if(c.has(e))f(e);else{var t=e.getAttribute("aria-hidden"),o=null!==t&&"false"!==t,a=(r.get(e)||0)+1,s=(l.get(e)||0)+1;r.set(e,a),l.set(e,s),u.push(e),1===a&&o&&i.set(e,!0),1===s&&e.setAttribute(n,"true"),o||e.setAttribute("aria-hidden","true")}})};return f(t),c.clear(),a++,function(){u.forEach(function(e){var t=r.get(e)-1,o=l.get(e)-1;r.set(e,t),l.set(e,o),t||(i.has(e)||e.removeAttribute("aria-hidden"),i.delete(e)),o||e.removeAttribute(n)}),--a||(r=new WeakMap,r=new WeakMap,i=new WeakMap,o={})}}},30387:function(e,t){"use strict";t.Z=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?o===t.replace(/\/.*$/,""):i===t})}return!0}},89644:function(e,t,n){e.exports=n(25644)},70353:function(e,t,n){"use strict";var r=n(93044),i=n(86955),o=n(92233),a=n(68030),s=n(97948),l=n(51875),u=n(60842),c=n(98560),d=n(21218),f=n(68047),h=n(10738);e.exports=function(e){return new Promise(function(t,n){var p,m=e.data,v=e.headers,g=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(m)&&r.isStandardBrowserEnv()&&delete v["Content-Type"];var x=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(b+":"+w)}var j=s(e.baseURL,e.url);function k(){if(x){var r="getAllResponseHeaders"in x?l(x.getAllResponseHeaders()):null;i(function(e){t(e),y()},function(e){n(e),y()},{data:g&&"text"!==g&&"json"!==g?x.response:x.responseText,status:x.status,statusText:x.statusText,headers:r,config:e,request:x}),x=null}}if(x.open(e.method.toUpperCase(),a(j,e.params,e.paramsSerializer),!0),x.timeout=e.timeout,"onloadend"in x?x.onloadend=k:x.onreadystatechange=function(){x&&4===x.readyState&&(0!==x.status||x.responseURL&&0===x.responseURL.indexOf("file:"))&&setTimeout(k)},x.onabort=function(){x&&(n(new d("Request aborted",d.ECONNABORTED,e,x)),x=null)},x.onerror=function(){n(new d("Network Error",d.ERR_NETWORK,e,x,x)),x=null},x.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new d(t,r.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,x)),x=null},r.isStandardBrowserEnv()){var E=(e.withCredentials||u(j))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;E&&(v[e.xsrfHeaderName]=E)}"setRequestHeader"in x&&r.forEach(v,function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete v[t]:x.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(x.withCredentials=!!e.withCredentials),g&&"json"!==g&&(x.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&x.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&x.upload&&x.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){x&&(n(!e||e&&e.type?new f:e),x.abort(),x=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),m||(m=null);var S=h(j);if(S&&-1===["http","https","file"].indexOf(S)){n(new d("Unsupported protocol "+S+":",d.ERR_BAD_REQUEST,e));return}x.send(m)})}},25644:function(e,t,n){"use strict";var r=n(93044),i=n(73644),o=n(62215),a=n(92937),s=function e(t){var n=new o(t),s=i(o.prototype.request,n);return r.extend(s,o.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(10663));s.Axios=o,s.CanceledError=n(68047),s.CancelToken=n(34089),s.isCancel=n(98041),s.VERSION=n(29241).version,s.toFormData=n(49027),s.AxiosError=n(21218),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(70783),s.isAxiosError=n(65587),e.exports=s,e.exports.default=s},34089:function(e,t,n){"use strict";var r=n(68047);function i(e){if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});var t,n=this;this.promise.then(function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],function(e){f.headers[e]={}}),o.forEach(["post","put","patch"],function(e){f.headers[e]=o.merge(c)}),e.exports=f},98560:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},29241:function(e){e.exports={version:"0.27.2"}},73644:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=Array(arguments.length),r=0;r=0)&&("set-cookie"===t?a[t]=(a[t]?a[t]:[]).concat([n]):a[t]=a[t]?a[t]+", "+n:n)}),a}},10738:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},70783:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},49027:function(e,t,n){"use strict";var r=n(48834).lW,i=n(93044);e.exports=function(e,t){t=t||new FormData;var n=[];function o(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):r.from(e):e}return!function e(r,a){if(i.isPlainObject(r)||i.isArray(r)){if(-1!==n.indexOf(r))throw Error("Circular reference detected in "+a);n.push(r),i.forEach(r,function(n,r){if(!i.isUndefined(n)){var s,l=a?a+"."+r:r;if(n&&!a&&"object"==typeof n){if(i.endsWith(r,"{}"))n=JSON.stringify(n);else if(i.endsWith(r,"[]")&&(s=i.toArray(n))){s.forEach(function(e){i.isUndefined(e)||t.append(l,o(e))});return}}e(n,l)}}),n.pop()}else t.append(a,o(r))}(e),t}},17525:function(e,t,n){"use strict";var r=n(29241).version,i=n(21218),o={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var a={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new i(o(r," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var a=r[o],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new i("option "+a+" must be "+u,i.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new i("Unknown option "+a,i.ERR_BAD_OPTION)}},validators:o}},93044:function(e,t,n){"use strict";var r,i,o=n(73644),a=Object.prototype.toString,s=(r=Object.create(null),function(e){var t=a.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function l(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function u(e){return Array.isArray(e)}function c(e){return void 0===e}var d=l("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function h(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=l("Date"),m=l("File"),v=l("Blob"),g=l("FileList");function y(e){return"[object Function]"===a.call(e)}var x=l("URLSearchParams");function b(e,t){if(null!=e){if("object"!=typeof e&&(e=[e]),u(e))for(var n=0,r=e.length;n0;)a[o=r[i]]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:l,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return -1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:g}},82294:function(e){"use strict";function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var o=r(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,o,a,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){if(e===t)return[l,u];for(r=[],o=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(s=[o,a])}return s}e.exports=t,t.range=r},95766:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,o=l(e),a=o[0],s=o[1],u=new i((a+s)*3/4-s),c=0,d=s>0?a-4:a;for(n=0;n>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;a>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&o.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},6391:function(e,t,n){var r;!function(i){"use strict";var o,a=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,l=Math.floor,u="[BigNumber Error] ",c=u+"Number primitive has more than 15 significant digits: ",d=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function f(e){var t=0|e;return e>0||e===t?t:t-1}function h(e){for(var t,n,r=1,i=e.length,o=e[0]+"";ru^n?1:-1;for(a=0,s=(l=i.length)<(u=o.length)?l:u;ao[a]^n?1:-1;return l==u?0:l>u^n?1:-1}function m(e,t,n,r){if(en||e!==l(e))throw Error(u+(r||"Argument")+("number"==typeof e?en?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function v(e){var t=e.c.length-1;return f(e.e/14)==t&&e.c[t]%2!=0}function g(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function y(e,t,n){var r,i;if(t<0){for(i=n+".";++t;i+=n);e=i+e}else if(r=e.length,++t>r){for(i=n,t-=r;--t;i+=n);e+=i}else tA?h.c=h.e=null:e.e=10;s/=10,o++);o>A?h.c=h.e=null:(h.e=o,h.c=[e]);return}f=String(e)}else{if(!a.test(f=String(e)))return k(h,f,u);h.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(o=f.indexOf("."))>-1&&(f=f.replace(".","")),(s=f.search(/e/i))>0?(o<0&&(o=s),o+=+f.slice(s+1),f=f.substring(0,s)):o<0&&(o=f.length)}else{if(m(t,2,L.length,"Base"),10==t&&F)return B(h=new z(e),_+h.e+1,C);if(f=String(e),u="number"==typeof e){if(0*e!=0)return k(h,f,u,t);if(h.s=1/e<0?(f=f.slice(1),-1):1,z.DEBUG&&f.replace(/^0\.0*|\./,"").length>15)throw Error(c+e)}else h.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(n=L.slice(0,t),o=s=0,d=f.length;sn.indexOf(r=f.charAt(s))){if("."==r){if(s>o){o=d;continue}}else if(!i&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){i=!0,s=-1,o=0;continue}return k(h,String(e),u,t)}u=!1,(o=(f=j(f,t,10,h.s)).indexOf("."))>-1?f=f.replace(".",""):o=f.length}for(s=0;48===f.charCodeAt(s);s++);for(d=f.length;48===f.charCodeAt(--d););if(f=f.slice(s,++d)){if(d-=s,u&&z.DEBUG&&d>15&&(e>9007199254740991||e!==l(e)))throw Error(c+h.s*e);if((o=o-s-1)>A)h.c=h.e=null;else if(o=M)?g(l,a):y(l,a,"0");else if(o=(e=B(new z(e),t,n)).e,s=(l=h(e.c)).length,1==r||2==r&&(t<=o||o<=O)){for(;ss){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=o-s)>0)for(o+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function Z(e,t){for(var n,r=1,i=new z(e[0]);r=10;i/=10,r++);return(n=r+14*n-1)>A?e.c=e.e=null:n=10;u/=10,i++);if((o=t-i)<0)o+=14,a=t,h=(c=p[f=0])/d[i-a-1]%10|0;else if((f=s((o+1)/14))>=p.length){if(r){for(;p.length<=f;p.push(0));c=h=0,i=1,o%=14,a=o-14+1}else break e}else{for(i=1,c=u=p[f];u>=10;u/=10,i++);o%=14,h=(a=o-14+i)<0?0:c/d[i-a-1]%10|0}if(r=r||t<0||null!=p[f+1]||(a<0?c:c%d[i-a-1]),r=n<4?(h||r)&&(0==n||n==(e.s<0?3:2)):h>5||5==h&&(4==n||r||6==n&&(o>0?a>0?c/d[i-a]:0:p[f-1])%10&1||n==(e.s<0?8:7)),t<1||!p[0])return p.length=0,r?(t-=e.e+1,p[0]=d[(14-t%14)%14],e.e=-t||0):p[0]=e.e=0,e;if(0==o?(p.length=f,u=1,f--):(p.length=f+1,u=d[14-o],p[f]=a>0?l(c/d[i-a]%d[a])*u:0),r)for(;;){if(0==f){for(o=1,a=p[0];a>=10;a/=10,o++);for(a=p[0]+=u,u=1;a>=10;a/=10,u++);o!=u&&(e.e++,1e14==p[0]&&(p[0]=1));break}if(p[f]+=u,1e14!=p[f])break;p[f--]=0,u=1}for(o=p.length;0===p[--o];p.pop());}e.e>A?e.c=e.e=null:e.e=M?g(t,n):y(t,n,"0"),e.s<0?"-"+t:t)}return z.clone=e,z.ROUND_UP=0,z.ROUND_DOWN=1,z.ROUND_CEIL=2,z.ROUND_FLOOR=3,z.ROUND_HALF_UP=4,z.ROUND_HALF_DOWN=5,z.ROUND_HALF_EVEN=6,z.ROUND_HALF_CEIL=7,z.ROUND_HALF_FLOOR=8,z.EUCLID=9,z.config=z.set=function(e){var t,n;if(null!=e){if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(m(n=e[t],0,1e9,t),_=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(m(n=e[t],0,8,t),C=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(m(n[0],-1e9,0,t),m(n[1],0,1e9,t),O=n[0],M=n[1]):(m(n,-1e9,1e9,t),O=-(M=n<0?-n:n))),e.hasOwnProperty(t="RANGE")){if((n=e[t])&&n.pop)m(n[0],-1e9,-1,t),m(n[1],1,1e9,t),T=n[0],A=n[1];else if(m(n,-1e9,1e9,t),n)T=-(A=n<0?-n:n);else throw Error(u+t+" cannot be zero: "+n)}if(e.hasOwnProperty(t="CRYPTO")){if(!!(n=e[t])===n){if(n){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))P=n;else throw P=!n,Error(u+"crypto unavailable")}else P=n}else throw Error(u+t+" not true or false: "+n)}if(e.hasOwnProperty(t="MODULO_MODE")&&(m(n=e[t],0,9,t),N=n),e.hasOwnProperty(t="POW_PRECISION")&&(m(n=e[t],0,1e9,t),R=n),e.hasOwnProperty(t="FORMAT")){if("object"==typeof(n=e[t]))D=n;else throw Error(u+t+" not an object: "+n)}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(u+t+" invalid: "+n);F="0123456789"==n.slice(0,10),L=n}}else throw Error(u+"Object expected: "+e)}return{DECIMAL_PLACES:_,ROUNDING_MODE:C,EXPONENTIAL_AT:[O,M],RANGE:[T,A],CRYPTO:P,MODULO_MODE:N,POW_PRECISION:R,FORMAT:D,ALPHABET:L}},z.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!z.DEBUG)return!0;var t,n,r=e.c,i=e.e,o=e.s;e:if("[object Array]"==({}).toString.call(r)){if((1===o||-1===o)&&i>=-1e9&&i<=1e9&&i===l(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break e}if((t=(i+1)%14)<1&&(t+=14),String(r[0]).length==t){for(t=0;t=1e14||n!==l(n))break e;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(u+"Invalid BigNumber: "+e)},z.maximum=z.max=function(){return Z(arguments,E.lt)},z.minimum=z.min=function(){return Z(arguments,E.gt)},z.random=(n=9007199254740992*Math.random()&2097151?function(){return l(9007199254740992*Math.random())}:function(){return(1073741824*Math.random()|0)*8388608+(8388608*Math.random()|0)},function(e){var t,r,i,o,a,c=0,f=[],h=new z(S);if(null==e?e=_:m(e,0,1e9),o=s(e/14),P){if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));c>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[c]=r[0],t[c+1]=r[1]):(f.push(a%1e14),c+=2);c=o/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(o*=7);c=9e15?crypto.randomBytes(7).copy(t,c):(f.push(a%1e14),c+=7);c=o/7}else throw P=!1,Error(u+"crypto unavailable")}if(!P)for(;c=10;a/=10,c++);c<14&&(i-=14-c)}return h.e=i,h.c=f,h}),z.sum=function(){for(var e=1,t=arguments,n=new z(t[0]);en-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}return function(n,r,i,o,a){var s,l,u,c,d,f,p,m,v=n.indexOf("."),g=_,x=C;for(v>=0&&(c=R,R=0,n=n.replace(".",""),f=(m=new z(r)).pow(n.length-v),R=c,m.c=t(y(h(f.c),f.e,"0"),10,i,e),m.e=m.c.length),u=c=(p=t(n,r,i,a?(s=L,e):(s=e,L))).length;0==p[--c];p.pop());if(!p[0])return s.charAt(0);if(v<0?--u:(f.c=p,f.e=u,f.s=o,p=(f=w(f,m,g,x,i)).c,d=f.r,u=f.e),v=p[l=u+g+1],c=i/2,d=d||l<0||null!=p[l+1],d=x<4?(null!=v||d)&&(0==x||x==(f.s<0?3:2)):v>c||v==c&&(4==x||d||6==x&&1&p[l-1]||x==(f.s<0?8:7)),l<1||!p[0])n=d?y(s.charAt(1),-g,s.charAt(0)):s.charAt(0);else{if(p.length=l,d)for(--i;++p[--l]>i;)p[l]=0,l||(++u,p=[1].concat(p));for(c=p.length;!p[--c];);for(v=0,n="";v<=c;n+=s.charAt(p[v++]));n=y(n,u,s.charAt(0))}return n}}(),w=function(){function e(e,t,n){var r,i,o,a,s=0,l=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();l--;)r=c*(o=e[l]%1e7)+(a=e[l]/1e7|0)*u,s=((i=u*o+r%1e7*1e7+s)/n|0)+(r/1e7|0)+c*a,e[l]=i%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;it[i]?1:-1;break}return o}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]1;e.splice(0,1));}return function(r,i,o,a,s){var u,c,d,h,p,m,v,g,y,x,b,w,j,k,E,S,_,C=r.s==i.s?1:-1,O=r.c,M=i.c;if(!O||!O[0]||!M||!M[0])return new z(r.s&&i.s&&(O?!M||O[0]!=M[0]:M)?O&&0==O[0]||!M?0*C:C/0:NaN);for(y=(g=new z(C)).c=[],C=o+(c=r.e-i.e)+1,s||(s=1e14,c=f(r.e/14)-f(i.e/14),C=C/14|0),d=0;M[d]==(O[d]||0);d++);if(M[d]>(O[d]||0)&&c--,C<0)y.push(1),h=!0;else{for(k=O.length,S=M.length,d=0,C+=2,(p=l(s/(M[0]+1)))>1&&(M=e(M,p,s),O=e(O,p,s),S=M.length,k=O.length),j=S,b=(x=O.slice(0,S)).length;b=s/2&&E++;do{if(p=0,(u=t(M,x,S,b))<0){if(w=x[0],S!=b&&(w=w*s+(x[1]||0)),(p=l(w/E))>1)for(p>=s&&(p=s-1),v=(m=e(M,p,s)).length,b=x.length;1==t(m,x,v,b);)p--,n(m,St(M,x,S,b);)p++,n(x,S=10;C/=10,d++);B(g,o+(g.e=d+14*c-1)+1,a,h)}else g.e=c,g.r=+h;return g}}(),r=/^(-?)0([xbo])(?=\w[\w.]*$)/i,i=/^([^.]+)\.$/,o=/^\.([^.]+)$/,x=/^-?(Infinity|NaN)$/,b=/^\s*\+(?=[\w.])|^\s+|\s+$/g,k=function(e,t,n,a){var s,l=n?t:t.replace(b,"");if(x.test(l))e.s=isNaN(l)?null:l<0?-1:1;else{if(!n&&(l=l.replace(r,function(e,t,n){return s="x"==(n=n.toLowerCase())?16:"b"==n?2:8,a&&a!=s?e:t}),a&&(s=a,l=l.replace(i,"$1").replace(o,"0.$1")),t!=l))return new z(l,s);if(z.DEBUG)throw Error(u+"Not a"+(a?" base "+a:"")+" number: "+t);e.s=null}e.c=e.e=null},E.absoluteValue=E.abs=function(){var e=new z(this);return e.s<0&&(e.s=1),e},E.comparedTo=function(e,t){return p(this,new z(e,t))},E.decimalPlaces=E.dp=function(e,t){var n,r,i;if(null!=e)return m(e,0,1e9),null==t?t=C:m(t,0,8),B(new z(this),e+this.e+1,t);if(!(n=this.c))return null;if(r=((i=n.length-1)-f(this.e/14))*14,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},E.dividedBy=E.div=function(e,t){return w(this,new z(e,t),_,C)},E.dividedToIntegerBy=E.idiv=function(e,t){return w(this,new z(e,t),0,1)},E.exponentiatedBy=E.pow=function(e,t){var n,r,i,o,a,c,d,f,h,p=this;if((e=new z(e)).c&&!e.isInteger())throw Error(u+"Exponent not an integer: "+H(e));if(null!=t&&(t=new z(t)),c=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return h=new z(Math.pow(+H(p),c?2-v(e):+H(e))),t?h.mod(t):h;if(d=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new z(NaN);(r=!d&&p.isInteger()&&t.isInteger())&&(p=p.mod(t))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||c&&p.c[1]>=24e7:p.c[0]<8e13||c&&p.c[0]<=9999975e7)))return o=p.s<0&&v(e)?-0:0,p.e>-1&&(o=1/o),new z(d?1/o:o);R&&(o=s(R/14+2))}for(c?(n=new z(.5),d&&(e.s=1),f=v(e)):f=(i=Math.abs(+H(e)))%2,h=new z(S);;){if(f){if(!(h=h.times(p)).c)break;o?h.c.length>o&&(h.c.length=o):r&&(h=h.mod(t))}if(i){if(0===(i=l(i/2)))break;f=i%2}else if(B(e=e.times(n),e.e+1,1),e.e>14)f=v(e);else{if(0==(i=+H(e)))break;f=i%2}p=p.times(p),o?p.c&&p.c.length>o&&(p.c.length=o):r&&(p=p.mod(t))}return r?h:(d&&(h=S.div(h)),t?h.mod(t):o?B(h,R,C,a):h)},E.integerValue=function(e){var t=new z(this);return null==e?e=C:m(e,0,8),B(t,t.e+1,e)},E.isEqualTo=E.eq=function(e,t){return 0===p(this,new z(e,t))},E.isFinite=function(){return!!this.c},E.isGreaterThan=E.gt=function(e,t){return p(this,new z(e,t))>0},E.isGreaterThanOrEqualTo=E.gte=function(e,t){return 1===(t=p(this,new z(e,t)))||0===t},E.isInteger=function(){return!!this.c&&f(this.e/14)>this.c.length-2},E.isLessThan=E.lt=function(e,t){return 0>p(this,new z(e,t))},E.isLessThanOrEqualTo=E.lte=function(e,t){return -1===(t=p(this,new z(e,t)))||0===t},E.isNaN=function(){return!this.s},E.isNegative=function(){return this.s<0},E.isPositive=function(){return this.s>0},E.isZero=function(){return!!this.c&&0==this.c[0]},E.minus=function(e,t){var n,r,i,o,a=this.s;if(t=(e=new z(e,t)).s,!a||!t)return new z(NaN);if(a!=t)return e.s=-t,this.plus(e);var s=this.e/14,l=e.e/14,u=this.c,c=e.c;if(!s||!l){if(!u||!c)return u?(e.s=-t,e):new z(c?this:NaN);if(!u[0]||!c[0])return c[0]?(e.s=-t,e):new z(u[0]?this:3==C?-0:0)}if(s=f(s),l=f(l),u=u.slice(),a=s-l){for((o=a<0)?(a=-a,i=u):(l=s,i=c),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(r=(o=(a=u.length)<(t=c.length))?a:t,a=t=0;t0)for(;t--;u[n++]=0);for(t=1e14-1;r>a;){if(u[--r]=0;){for(n=0,h=g[i]%1e7,p=g[i]/1e7|0,o=i+(a=l);o>i;)s=p*(u=v[--a]%1e7)+(c=v[a]/1e7|0)*h,n=((u=h*u+s%1e7*1e7+m[o]+n)/1e14|0)+(s/1e7|0)+p*c,m[o--]=u%1e14;m[o]=n}return n?++r:m.splice(0,1),I(e,m,r)},E.negated=function(){var e=new z(this);return e.s=-e.s||null,e},E.plus=function(e,t){var n,r=this.s;if(t=(e=new z(e,t)).s,!r||!t)return new z(NaN);if(r!=t)return e.s=-t,this.minus(e);var i=this.e/14,o=e.e/14,a=this.c,s=e.c;if(!i||!o){if(!a||!s)return new z(r/0);if(!a[0]||!s[0])return s[0]?e:new z(a[0]?this:0*r)}if(i=f(i),o=f(o),a=a.slice(),r=i-o){for(r>0?(o=i,n=s):(r=-r,n=a),n.reverse();r--;n.push(0));n.reverse()}for((r=a.length)-(t=s.length)<0&&(n=s,s=a,a=n,t=r),r=0;t;)r=(a[--t]=a[t]+s[t]+r)/1e14|0,a[t]=1e14===a[t]?0:a[t]%1e14;return r&&(a=[r].concat(a),++o),I(e,a,o)},E.precision=E.sd=function(e,t){var n,r,i;if(null!=e&&!!e!==e)return m(e,1,1e9),null==t?t=C:m(t,0,8),B(new z(this),e,t);if(!(n=this.c))return null;if(r=14*(i=n.length-1)+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return e&&this.e+1>r&&(r=this.e+1),r},E.shiftedBy=function(e){return m(e,-9007199254740991,9007199254740991),this.times("1e"+e)},E.squareRoot=E.sqrt=function(){var e,t,n,r,i,o=this.c,a=this.s,s=this.e,l=_+4,u=new z("0.5");if(1!==a||!o||!o[0])return new z(!a||a<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(a=Math.sqrt(+H(this)))||a==1/0?(((t=h(o)).length+s)%2==0&&(t+="0"),a=Math.sqrt(+t),s=f((s+1)/2)-(s<0||s%2),t=a==1/0?"5e"+s:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+s,n=new z(t)):n=new z(a+""),n.c[0]){for((a=(s=n.e)+l)<3&&(a=0);;)if(i=n,n=u.times(i.plus(w(this,i,l,1))),h(i.c).slice(0,a)===(t=h(n.c)).slice(0,a)){if(n.e0&&p>0){for(i=p%a||a,c=h.substr(0,i);i0&&(c+=l+h.slice(i)),f&&(c="-"+c)}r=d?c+(n.decimalSeparator||"")+((s=+n.fractionGroupSize)?d.replace(RegExp("\\d{"+s+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):d):c}return(n.prefix||"")+r+(n.suffix||"")},E.toFraction=function(e){var t,n,r,i,o,a,s,l,c,f,p,m,v=this.c;if(null!=e&&(!(s=new z(e)).isInteger()&&(s.c||1!==s.s)||s.lt(S)))throw Error(u+"Argument "+(s.isInteger()?"out of range: ":"not an integer: ")+H(s));if(!v)return new z(this);for(t=new z(S),c=n=new z(S),r=l=new z(S),m=h(v),o=t.e=m.length-this.e-1,t.c[0]=d[(a=o%14)<0?14+a:a],e=!e||s.comparedTo(t)>0?o>0?t:c:s,a=A,A=1/0,s=new z(m),l.c[0]=0;f=w(s,t,0,1),1!=(i=n.plus(f.times(r))).comparedTo(e);)n=r,r=i,c=l.plus(f.times(i=c)),l=i,t=s.minus(f.times(i=t)),s=i;return i=w(e.minus(n),r,0,1),l=l.plus(i.times(c)),n=n.plus(i.times(r)),l.s=c.s=this.s,o*=2,p=1>w(c,r,o,C).minus(this).abs().comparedTo(w(l,n,o,C).minus(this).abs())?[c,r]:[l,n],A=a,p},E.toNumber=function(){return+H(this)},E.toPrecision=function(e,t){return null!=e&&m(e,1,1e9),V(this,e,t,2)},E.toString=function(e){var t,n=this,r=n.s,i=n.e;return null===i?r?(t="Infinity",r<0&&(t="-"+t)):t="NaN":(null==e?t=i<=O||i>=M?g(h(n.c),i):y(h(n.c),i,"0"):10===e&&F?t=y(h((n=B(new z(n),_+i+1,C)).c),n.e,"0"):(m(e,2,L.length,"Base"),t=j(y(h(n.c),i,"0"),10,e,r,!0)),r<0&&n.c[0]&&(t="-"+t)),t},E.valueOf=E.toJSON=function(){return H(this)},E._isBigNumber=!0,null!=t&&z.set(t),z}()).default=o.BigNumber=o,void 0!==(r=(function(){return o}).call(t,n,t,e))&&(e.exports=r)}(0)},70651:function(e,t,n){let r=n(7967);function i(e,t,n){let r=e[t]+e[n],i=e[t+1]+e[n+1];r>=4294967296&&i++,e[t]=r,e[t+1]=i}function o(e,t,n,r){let i=e[t]+n;n<0&&(i+=4294967296);let o=e[t+1]+r;i>=4294967296&&o++,e[t]=i,e[t+1]=o}function a(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function s(e,t,n,r,a,s){let l=d[a],u=d[a+1],f=d[s],h=d[s+1];i(c,e,t),o(c,e,l,u);let p=c[r]^c[e],m=c[r+1]^c[e+1];c[r]=m,c[r+1]=p,i(c,n,r),p=c[t]^c[n],m=c[t+1]^c[n+1],c[t]=p>>>24^m<<8,c[t+1]=m>>>24^p<<8,i(c,e,t),o(c,e,f,h),p=c[r]^c[e],m=c[r+1]^c[e+1],c[r]=p>>>16^m<<16,c[r+1]=m>>>16^p<<16,i(c,n,r),p=c[t]^c[n],m=c[t+1]^c[n+1],c[t]=m>>>31^p<<1,c[t+1]=p>>>31^m<<1}let l=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),u=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map(function(e){return 2*e})),c=new Uint32Array(32),d=new Uint32Array(32);function f(e,t){let n=0;for(n=0;n<16;n++)c[n]=e.h[n],c[n+16]=l[n];for(c[24]=c[24]^e.t,c[25]=c[25]^e.t/4294967296,t&&(c[28]=~c[28],c[29]=~c[29]),n=0;n<32;n++)d[n]=a(e.b,4*n);for(n=0;n<12;n++)s(0,8,16,24,u[16*n+0],u[16*n+1]),s(2,10,18,26,u[16*n+2],u[16*n+3]),s(4,12,20,28,u[16*n+4],u[16*n+5]),s(6,14,22,30,u[16*n+6],u[16*n+7]),s(0,10,20,30,u[16*n+8],u[16*n+9]),s(2,12,22,24,u[16*n+10],u[16*n+11]),s(4,14,16,26,u[16*n+12],u[16*n+13]),s(6,8,18,28,u[16*n+14],u[16*n+15]);for(n=0;n<16;n++)e.h[n]=e.h[n]^c[n]^c[n+16]}let h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function p(e,t,n,r){if(0===e||e>64)throw Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(n&&16!==n.length)throw Error("Illegal salt, expected Uint8Array with length is 16");if(r&&16!==r.length)throw Error("Illegal personal, expected Uint8Array with length is 16");let i={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e};h.fill(0),h[0]=e,t&&(h[1]=t.length),h[2]=1,h[3]=1,n&&h.set(n,32),r&&h.set(r,48);for(let e=0;e<16;e++)i.h[e]=l[e]^a(h,4*e);return t&&(m(i,t),i.c=128),i}function m(e,t){for(let n=0;n>2]>>8*(3&n);return t}function g(e,t,n,i,o){n=n||64,e=r.normalizeInput(e),i&&(i=r.normalizeInput(i)),o&&(o=r.normalizeInput(o));let a=p(n,t,i,o);return m(a,e),v(a)}e.exports={blake2b:g,blake2bHex:function(e,t,n,i,o){let a=g(e,t,n,i,o);return r.toHex(a)},blake2bInit:p,blake2bUpdate:m,blake2bFinal:v}},39962:function(e,t,n){let r=n(7967);function i(e,t,n,r,i,a){l[e]=l[e]+l[t]+i,l[r]=o(l[r]^l[e],16),l[n]=l[n]+l[r],l[t]=o(l[t]^l[n],12),l[e]=l[e]+l[t]+a,l[r]=o(l[r]^l[e],8),l[n]=l[n]+l[r],l[t]=o(l[t]^l[n],7)}function o(e,t){return e>>>t^e<<32-t}let a=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),s=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),l=new Uint32Array(16),u=new Uint32Array(16);function c(e,t){let n=0;for(n=0;n<8;n++)l[n]=e.h[n],l[n+8]=a[n];for(l[12]^=e.t,l[13]^=e.t/4294967296,t&&(l[14]=~l[14]),n=0;n<16;n++){var r,o;u[n]=(r=e.b)[o=4*n]^r[o+1]<<8^r[o+2]<<16^r[o+3]<<24}for(n=0;n<10;n++)i(0,4,8,12,u[s[16*n+0]],u[s[16*n+1]]),i(1,5,9,13,u[s[16*n+2]],u[s[16*n+3]]),i(2,6,10,14,u[s[16*n+4]],u[s[16*n+5]]),i(3,7,11,15,u[s[16*n+6]],u[s[16*n+7]]),i(0,5,10,15,u[s[16*n+8]],u[s[16*n+9]]),i(1,6,11,12,u[s[16*n+10]],u[s[16*n+11]]),i(2,7,8,13,u[s[16*n+12]],u[s[16*n+13]]),i(3,4,9,14,u[s[16*n+14]],u[s[16*n+15]]);for(n=0;n<8;n++)e.h[n]^=l[n]^l[n+8]}function d(e,t){if(!(e>0&&e<=32))throw Error("Incorrect output length, should be in [1, 32]");let n=t?t.length:0;if(t&&!(n>0&&n<=32))throw Error("Incorrect key length, should be in [1, 32]");let r={h:new Uint32Array(a),b:new Uint8Array(64),c:0,t:0,outlen:e};return r.h[0]^=16842752^n<<8^e,n>0&&(f(r,t),r.c=64),r}function f(e,t){for(let n=0;n>2]>>8*(3&n)&255;return t}function p(e,t,n){n=n||32,e=r.normalizeInput(e);let i=d(n,t);return f(i,e),h(i)}e.exports={blake2s:p,blake2sHex:function(e,t,n){let i=p(e,t,n);return r.toHex(i)},blake2sInit:d,blake2sUpdate:f,blake2sFinal:h}},81395:function(e,t,n){let r=n(70651),i=n(39962);e.exports={blake2b:r.blake2b,blake2bHex:r.blake2bHex,blake2bInit:r.blake2bInit,blake2bUpdate:r.blake2bUpdate,blake2bFinal:r.blake2bFinal,blake2s:i.blake2s,blake2sHex:i.blake2sHex,blake2sInit:i.blake2sInit,blake2sUpdate:i.blake2sUpdate,blake2sFinal:i.blake2sFinal}},7967:function(e){function t(e){return(4294967296+e).toString(16).substring(1)}e.exports={normalizeInput:function(e){let t;if(e instanceof Uint8Array)t=e;else if("string"==typeof e){let n=new TextEncoder;t=n.encode(e)}else throw Error("Input must be an string, Buffer or Uint8Array");return t},toHex:function(e){return Array.prototype.map.call(e,function(e){return(e<16?"0":"")+e.toString(16)}).join("")},debugPrint:function(e,n,r){let i="\n"+e+" = ";for(let o=0;o - * @license MIT - */var r=n(95766),i=n(62333),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|p(e,t),r=a(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(M(e,Uint8Array)){var t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(M(e,ArrayBuffer)||e&&M(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(M(e,SharedArrayBuffer)||e&&M(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);var i=function(e){if(s.isBuffer(e)){var t,n=0|h(e.length),r=a(n);return 0===r.length||e.copy(r,0,0,n),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|h(e))}function d(e){for(var t=e.length<0?0:0|h(e.length),n=a(t),r=0;r=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||M(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return _(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return C(e).length;default:if(i)return r?-1:_(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){var i,o,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(o=n=+n)!=o&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var d=!0,f=0;f239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;rn)throw RangeError("Trying to access beyond buffer length")}function w(e,t,n,r,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function j(e,t,n,r,i,o){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function k(e,t,n,r,o){return t=+t,n>>>=0,o||j(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function E(e,t,n,r,o){return t=+t,n>>>=0,o||j(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.lW=s,t.h2=50,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),M(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);ir.length?s.from(o).copy(r,i):Uint8Array.prototype.set.call(r,o,i);else if(s.isBuffer(o))o.copy(r,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return r},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tn&&(e+=" ... "),""},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,l=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n),d=0;d>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,l,u,c,d,f=this.length-t;if((void 0===n||n>f)&&(n=f),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var h=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a=0;a>8,i.push(n%256),i.push(r);return i}(e,this.length-c),this,c,d);default:if(h)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],i=1,o=0;++o>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=1,a=0;for(this[t]=255&e;++a>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=n-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return k(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return k(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return E(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return E(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!i){if(n>56319||a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function C(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function O(e,t,n,r){for(var i=0;i=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function M(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var T=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},72779:function(e,t){var n;/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t=0;)(u=e(r,i,o,a,h+1,l+1))>p&&(h===s?u*=1:t.test(r.charAt(h-1))?(u*=.9,(d=r.slice(s,h-1).match(n))&&s>0&&(u*=Math.pow(.999,d.length))):(t.test(r.slice(s,h-1))?u*=0:u*=.3,s>0&&(u*=Math.pow(.999,h-s))),r.charAt(h)!==i.charAt(l)&&(u*=.9999)),u<.1&&o.charAt(h-1)===a.charAt(l+1)&&o.charAt(h-1)!==a.charAt(l)&&.1*(c=e(r,i,o,a,h+1,l+2))>u&&(u=.1*c),u>p&&(p=u),h=o.indexOf(f,h+1);return p}(e,r,e.toLowerCase(),r.toLowerCase(),0,0)}},68847:function(e,t,n){"use strict";n.d(t,{B8:function(){return E},Il:function(){return i},J5:function(){return a},SU:function(){return k},Ss:function(){return S},Ym:function(){return A},ZP:function(){return b},xV:function(){return o}});var r=n(40948);function i(){}var o=.7,a=1.4285714285714286,s="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,d=RegExp("^rgb\\("+[s,s,s]+"\\)$"),f=RegExp("^rgb\\("+[u,u,u]+"\\)$"),h=RegExp("^rgba\\("+[s,s,s,l]+"\\)$"),p=RegExp("^rgba\\("+[u,u,u,l]+"\\)$"),m=RegExp("^hsl\\("+[l,u,u]+"\\)$"),v=RegExp("^hsla\\("+[l,u,u,l]+"\\)$"),g={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(){return this.rgb().formatHex()}function x(){return this.rgb().formatRgb()}function b(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=c.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?w(t):3===n?new S(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?j(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?j(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=d.exec(e))?new S(t[1],t[2],t[3],1):(t=f.exec(e))?new S(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=h.exec(e))?j(t[1],t[2],t[3],t[4]):(t=p.exec(e))?j(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=m.exec(e))?M(t[1],t[2]/100,t[3]/100,1):(t=v.exec(e))?M(t[1],t[2]/100,t[3]/100,t[4]):g.hasOwnProperty(e)?w(g[e]):"transparent"===e?new S(NaN,NaN,NaN,0):null}function w(e){return new S(e>>16&255,e>>8&255,255&e,1)}function j(e,t,n,r){return r<=0&&(e=t=n=NaN),new S(e,t,n,r)}function k(e){return(e instanceof i||(e=b(e)),e)?(e=e.rgb(),new S(e.r,e.g,e.b,e.opacity)):new S}function E(e,t,n,r){return 1==arguments.length?k(e):new S(e,t,n,null==r?1:r)}function S(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function _(){return"#"+O(this.r)+O(this.g)+O(this.b)}function C(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function O(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function M(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new P(e,t,n,r)}function T(e){if(e instanceof P)return new P(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=b(e)),!e)return new P;if(e instanceof P)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=NaN,l=a-o,u=(a+o)/2;return l?(s=t===a?(n-r)/l+(n0&&u<1?0:s,new P(s,l,u,e.opacity)}function A(e,t,n,r){return 1==arguments.length?T(e):new P(e,t,n,null==r?1:r)}function P(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function N(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}(0,r.Z)(i,b,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return T(this).formatHsl()},formatRgb:x,toString:x}),(0,r.Z)(S,E,(0,r.l)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:_,formatHex:_,formatRgb:C,toString:C})),(0,r.Z)(P,A,(0,r.l)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new P(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new P(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new S(N(e>=240?e-240:e+120,i,r),N(e,i,r),N(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},40948:function(e,t,n){"use strict";function r(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function i(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}n.d(t,{Z:function(){return r},l:function(){return i}})},20966:function(e,t,n){"use strict";n.d(t,{Uc:function(){return g},ZP:function(){return d}});var r=n(40948),i=n(68847),o=n(10810),a=4/29,s=6/29,l=3*(6/29)*(6/29),u=6/29*(6/29)*(6/29);function c(e){if(e instanceof f)return new f(e.l,e.a,e.b,e.opacity);if(e instanceof y)return x(e);e instanceof i.Ss||(e=(0,i.SU)(e));var t,n,r=v(e.r),o=v(e.g),a=v(e.b),s=h((.2225045*r+.7168786*o+.0606169*a)/1);return r===o&&o===a?t=n=s:(t=h((.4360747*r+.3850649*o+.1430804*a)/.96422),n=h((.0139322*r+.0971045*o+.7141733*a)/.82521)),new f(116*s-16,500*(t-s),200*(s-n),e.opacity)}function d(e,t,n,r){return 1==arguments.length?c(e):new f(e,t,n,null==r?1:r)}function f(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function h(e){return e>u?Math.pow(e,1/3):e/l+a}function p(e){return e>s?e*e*e:l*(e-a)}function m(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function v(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function g(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof y)return new y(e.h,e.c,e.l,e.opacity);if(e instanceof f||(e=c(e)),0===e.a&&0===e.b)return new y(NaN,0i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}var d={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:u.Z,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>c(100*e,t),r:c,s:function(e,t){var n=(0,u.V)(e,t);if(!n)return e+"";var i=n[0],o=n[1],a=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+Array(1-a).join("0")+(0,u.V)(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function f(e){return e}var h=Array.prototype.map,p=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];o=(i=function(e){var t,n,i,o=void 0===e.grouping||void 0===e.thousands?f:(t=h.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),a=void 0===e.currency?"":e.currency[0]+"",u=void 0===e.currency?"":e.currency[1]+"",c=void 0===e.decimal?".":e.decimal+"",m=void 0===e.numerals?f:(i=h.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return i[+e]})}),v=void 0===e.percent?"%":e.percent+"",g=void 0===e.minus?"−":e.minus+"",y=void 0===e.nan?"NaN":e.nan+"";function x(e){var t=(e=(0,l.Z)(e)).fill,n=e.align,i=e.sign,s=e.symbol,f=e.zero,h=e.width,x=e.comma,b=e.precision,w=e.trim,j=e.type;"n"===j?(x=!0,j="g"):d[j]||(void 0===b&&(b=12),w=!0,j="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var k="$"===s?a:"#"===s&&/[boxX]/.test(j)?"0"+j.toLowerCase():"",E="$"===s?u:/[%p]/.test(j)?v:"",S=d[j],_=/[defgprs%]/.test(j);function C(e){var a,s,l,u=k,d=E;if("c"===j)d=S(e)+d,e="";else{var v=(e=+e)<0||1/e<0;if(e=isNaN(e)?y:S(Math.abs(e),b),w&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),v&&0==+e&&"+"!==i&&(v=!1),u=(v?"("===i?i:g:"-"===i||"("===i?"":i)+u,d=("s"===j?p[8+r/3]:"")+d+(v&&"("===i?")":""),_){for(a=-1,s=e.length;++a(l=e.charCodeAt(a))||l>57){d=(46===l?c+e.slice(a+1):e.slice(a))+d,e=e.slice(0,a);break}}}x&&!f&&(e=o(e,1/0));var C=u.length+e.length+d.length,O=C>1)+u+e+d+O.slice(C);break;default:e=O+u+e+d}return m(e)}return b=void 0===b?6:/[gprs]/.test(j)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),C.toString=function(){return e+""},C}return{format:x,formatPrefix:function(e,t){var n=x(((e=(0,l.Z)(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor((0,s.Z)(t)/3))),i=Math.pow(10,-r),o=p[8+r/3];return function(e){return n(i*e)+o}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,a=i.formatPrefix},23733:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(39801);function i(e){return(e=(0,r.V)(Math.abs(e)))?e[1]:NaN}},39801:function(e,t,n){"use strict";function r(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function i(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}n.d(t,{V:function(){return i},Z:function(){return r}})},52328:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(e){var t;if(!(t=r.exec(e)))throw Error("invalid format: "+e);return new o({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function o(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}i.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},88013:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(23733);function i(e){return Math.max(0,-(0,r.Z)(Math.abs(e)))}},21032:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(23733);function i(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,r.Z)(t)/3)))-(0,r.Z)(Math.abs(e)))}},61652:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(23733);function i(e,t){return t=Math.abs(t)-(e=Math.abs(e)),Math.max(0,(0,r.Z)(t)-(0,r.Z)(e))+1}},12766:function(e,t){!function(e){"use strict";function t(){return(t=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a,s=!0,l=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==o.return||o.return()}finally{if(l)throw a}}}}function o(e){var t={};return 4===e.length&&(t.x2=e[2][0],t.y2=e[2][1]),e.length>=3&&(t.x1=e[1][0],t.y1=e[1][1]),t.x=e[e.length-1][0],t.y=e[e.length-1][1],4===e.length?t.type="C":3===e.length?t.type="Q":t.type="L",t}var a=/[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g,s={M:["x","y"],L:["x","y"],H:["x"],V:["y"],C:["x1","y1","x2","y2","x","y"],S:["x2","y2","x","y"],Q:["x1","y1","x","y"],T:["x","y"],A:["rx","ry","xAxisRotation","largeArcFlag","sweepFlag","x","y"],Z:[]};function l(e,t){for(var n=Array(e),r=0;r0?o-=1:o0&&(o-=1)),t[o]=(t[o]||0)+1,t},[]).reduce(function(n,r,i){if(i===e.length-1){var a=l(r,t({},e[e.length-1]));return"M"===a[0].type&&a.forEach(function(e){e.type="L"}),n.concat(a)}return n.concat(function(e,n,r){var i,a=[];if("L"===n.type||"Q"===n.type||"C"===n.type)a=a.concat((i=[[e.x,e.y]],null!=n.x1&&i.push([n.x1,n.y1]),null!=n.x2&&i.push([n.x2,n.y2]),i.push([n.x,n.y]),(function(e,t){for(var n=[],r=e,i=1/(t=t||2),o=0;o0&&"Z"===o[o.length-1].type&&o.pop(),a.length>0&&"Z"===a[a.length-1].type&&a.pop(),o.length?a.length||a.push(o[0]):o.push(a[0]),0!==Math.abs(a.length-o.length)&&(a.length>o.length?o=u(o,a,r):a.length0)for(var n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[i],a=e[i+1],s=i>0?e[i-1]:2*o-a,l=i180||n<-180?n-360*Math.round(n/360):n):(0,r.Z)(isNaN(e)?t:e)}function a(e){return 1==(e=+e)?s:function(t,n){var i,o,a;return n-t?(i=t,o=n,i=Math.pow(i,a=e),o=Math.pow(o,a)-i,a=1/a,function(e){return Math.pow(i+e*o,a)}):(0,r.Z)(isNaN(t)?n:t)}}function s(e,t){var n=t-e;return n?i(e,n):(0,r.Z)(isNaN(e)?t:e)}},88992:function(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{Z:function(){return r}})},77636:function(e,t,n){"use strict";n.d(t,{B:function(){return f},Z:function(){return d}});var r=n(40948),i=n(68847),o=n(10810),a=-1.78277*.29227-.1347134789;function s(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof l)return new l(e.h,e.s,e.l,e.opacity);e instanceof i.Ss||(e=(0,i.SU)(e));var t=e.r/255,n=e.g/255,r=e.b/255,s=(a*r+-1.7884503806*t-3.5172982438*n)/(a+-1.7884503806-3.5172982438),u=r-s,c=-((1.97294*(n-s)- -.29227*u)/.90649),d=Math.sqrt(c*c+u*u)/(1.97294*s*(1-s)),f=d?Math.atan2(c,u)*o.B-120:NaN;return new l(f<0?f+360:f,d,s,e.opacity)}(e):new l(e,t,n,null==r?1:r)}function l(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}(0,r.Z)(l,s,(0,r.l)(i.Il,{brighter:function(e){return e=null==e?i.J5:Math.pow(i.J5,e),new l(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?i.xV:Math.pow(i.xV,e),new l(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*o.V,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),a=Math.sin(e);return new i.Ss(255*(t+n*(-.14861*r+1.78277*a)),255*(t+n*(-.29227*r+-.90649*a)),255*(t+n*(1.97294*r)),this.opacity)}}));var u=n(1234);function c(e){return function t(n){function r(t,r){var i=e((t=s(t)).h,(r=s(r)).h),o=(0,u.ZP)(t.s,r.s),a=(0,u.ZP)(t.l,r.l),l=(0,u.ZP)(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=l(e),t+""}}return n=+n,r.gamma=t,r}(1)}var d=c(u.wx),f=c(u.ZP)},91255:function(e,t,n){"use strict";function r(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}n.d(t,{Z:function(){return r}})},87286:function(e,t,n){"use strict";n.d(t,{b:function(){return a}});var r=n(20966),i=n(1234);function o(e){return function(t,n){var o=e((t=(0,r.Uc)(t)).h,(n=(0,r.Uc)(n)).h),a=(0,i.ZP)(t.c,n.c),s=(0,i.ZP)(t.l,n.l),l=(0,i.ZP)(t.opacity,n.opacity);return function(e){return t.h=o(e),t.c=a(e),t.l=s(e),t.opacity=l(e),t+""}}}t.Z=o(i.wx);var a=o(i.ZP)},43780:function(e,t,n){"use strict";n.d(t,{q:function(){return a}});var r=n(68847),i=n(1234);function o(e){return function(t,n){var o=e((t=(0,r.Ym)(t)).h,(n=(0,r.Ym)(n)).h),a=(0,i.ZP)(t.s,n.s),s=(0,i.ZP)(t.l,n.l),l=(0,i.ZP)(t.opacity,n.opacity);return function(e){return t.h=o(e),t.s=a(e),t.l=s(e),t.opacity=l(e),t+""}}}t.Z=o(i.wx);var a=o(i.ZP)},31380:function(e,t,n){"use strict";n.r(t),n.d(t,{interpolate:function(){return s.Z},interpolateArray:function(){return l.Z},interpolateBasis:function(){return u.Z},interpolateBasisClosed:function(){return c.Z},interpolateCubehelix:function(){return N.Z},interpolateCubehelixLong:function(){return N.B},interpolateDate:function(){return d.Z},interpolateDiscrete:function(){return f},interpolateHcl:function(){return P.Z},interpolateHclLong:function(){return P.b},interpolateHsl:function(){return T.Z},interpolateHslLong:function(){return T.q},interpolateHue:function(){return p},interpolateLab:function(){return A.Z},interpolateNumber:function(){return m.Z},interpolateNumberArray:function(){return v.Z},interpolateObject:function(){return g.Z},interpolateRgb:function(){return M.ZP},interpolateRgbBasis:function(){return M.hD},interpolateRgbBasisClosed:function(){return M.YD},interpolateRound:function(){return y.Z},interpolateString:function(){return x.Z},interpolateTransformCss:function(){return E},interpolateTransformSvg:function(){return S},interpolateZoom:function(){return O},piecewise:function(){return R.Z},quantize:function(){return D}});var r,i,o,a,s=n(69777),l=n(47639),u=n(67855),c=n(6984),d=n(91255);function f(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var h=n(1234);function p(e,t){var n=(0,h.wx)(+e,+t);return function(e){var t=n(e);return t-360*Math.floor(t/360)}}var m=n(98876),v=n(43289),g=n(73363),y=n(74672),x=n(76060),b=180/Math.PI,w={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function j(e,t,n,r,i,o){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r180?l+=360:l-s>180&&(s+=360),f.push({i:d.push(i(d)+"rotate(",null,r)-2,x:(0,m.Z)(s,l)})):l&&d.push(i(d)+"rotate("+l+r),(u=o.skewX)!==(c=a.skewX)?f.push({i:d.push(i(d)+"skewX(",null,r)-2,x:(0,m.Z)(u,c)}):c&&d.push(i(d)+"skewX("+c+r),!function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:(0,m.Z)(e,n)},{i:s-2,x:(0,m.Z)(t,r)})}else(1!==n||1!==r)&&o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,d,f),o=a=null,function(e){for(var t,n=-1,r=f.length;++nc&&(u=t.slice(c,u),f[d]?f[d]+=u:f[++d]=u),(s=s[0])===(l=l[0])?f[d]?f[d]+=l:f[++d]=l:(f[++d]=null,h.push({i:d,x:(0,r.Z)(s,l)})),c=o.lastIndex;return c1e-6){if(Math.abs(d*l-u*c)>1e-6&&o){var h=r-a,p=i-s,m=l*l+u*u,v=Math.sqrt(m),g=Math.sqrt(f),y=o*Math.tan((n-Math.acos((m+f-(h*h+p*p))/(2*v*g)))/2),x=y/g,b=y/v;Math.abs(x-1)>1e-6&&(this._+="L"+(e+x*c)+","+(t+x*d)),this._+="A"+o+","+o+",0,0,"+ +(d*h>c*p)+","+(this._x1=e+b*l)+","+(this._y1=t+b*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t)}},arc:function(e,t,o,a,s,l){e=+e,t=+t,o=+o,l=!!l;var u=o*Math.cos(a),c=o*Math.sin(a),d=e+u,f=t+c,h=1^l,p=l?a-s:s-a;if(o<0)throw Error("negative radius: "+o);null===this._x1?this._+="M"+d+","+f:(Math.abs(this._x1-d)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+d+","+f),o&&(p<0&&(p=p%r+r),p>i?this._+="A"+o+","+o+",0,1,"+h+","+(e-u)+","+(t-c)+"A"+o+","+o+",0,1,"+h+","+(this._x1=d)+","+(this._y1=f):p>1e-6&&(this._+="A"+o+","+o+",0,"+ +(p>=n)+","+h+","+(this._x1=e+o*Math.cos(s))+","+(this._y1=t+o*Math.sin(s))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},t.Z=a},1169:function(e,t,n){"use strict";function r(e,t){return et?1:e>=t?0:NaN}n.d(t,{Z:function(){return r}})},98038:function(e,t,n){"use strict";n.d(t,{ZP:function(){return l}});var r=n(1169);function i(e){let t=e,n=e;function i(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;0>n(e[o],t)?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>(0,r.Z)(e(t),n)),{left:i,center:function(e,n,r,o){null==r&&(r=0),null==o&&(o=e.length);let a=i(e,n,r,o-1);return a>r&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}var o=n(81048);let a=i(r.Z),s=a.right;a.left,i(o.Z).center;var l=s},81048:function(e,t,n){"use strict";function r(e){return null===e?NaN:+e}function*i(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}n.d(t,{K:function(){return i},Z:function(){return r}})},33907:function(e,t,n){"use strict";function r(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}function i(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}n.d(t,{Z:function(){return l},s:function(){return u}});var o=n(1169);function a(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}var s=n(81048);function l(e,t,n){if(l=(e=Float64Array.from((0,s.K)(e,n))).length){if((t=+t)<=0||l<2)return i(e);if(t>=1)return r(e);var l,u=(l-1)*t,c=Math.floor(u),d=r((function e(t,n,r=0,i=t.length-1,s=o.Z){for(;i>r;){if(i-r>600){let o=i-r+1,a=n-r+1,l=Math.log(o),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(o-u)/o)*(a-o/2<0?-1:1),d=Math.max(r,Math.floor(n-a*u/o+c)),f=Math.min(i,Math.floor(n+(o-a)*u/o+c));e(t,n,d,f,s)}let o=t[n],l=r,u=i;for(a(t,r,n),s(t[i],o)>0&&a(t,r,i);ls(t[l],o);)++l;for(;s(t[u],o)>0;)--u}0===s(t[r],o)?a(t,r,u):a(t,++u,i),u<=n&&(r=u+1),n<=u&&(i=u-1)}return t})(e,c).subarray(0,c+1));return d+(i(e.subarray(c+1))-d)*(u-c)}}function u(e,t,n=s.Z){if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}}},32071:function(e,t,n){"use strict";n.d(t,{G9:function(){return s},ZP:function(){return a},ly:function(){return l}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,n){var r,i,o,a,l=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t0){let n=Math.round(e/a),r=Math.round(t/a);for(n*at&&--r,o=Array(i=r-n+1);++lt&&--r,o=Array(i=r-n+1);++l=0?(l>=r?10:l>=i?5:l>=o?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=r?10:l>=i?5:l>=o?2:1)}function l(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=i?s*=5:l>=o&&(s*=2),t[e.toLowerCase(),t]))}function k(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function E(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function S(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function _(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function C(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function O(e,t,n){var r=v.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function M(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function T(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function A(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function P(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function N(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function R(e,t,n){var r=v.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function D(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function L(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function F(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function z(e,t,n){var r=v.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function V(e,t,n){var r=v.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Z(e,t,n){var r=g.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function I(e,t,n){var r=v.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function B(e,t,n){var r=v.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function H(e,t){return x(e.getDate(),t,2)}function U(e,t){return x(e.getHours(),t,2)}function W(e,t){return x(e.getHours()%12||12,t,2)}function q(e,t){return x(1+u.Z.count((0,c.Z)(e),e),t,3)}function $(e,t){return x(e.getMilliseconds(),t,3)}function K(e,t){return $(e,t)+"000"}function Y(e,t){return x(e.getMonth()+1,t,2)}function G(e,t){return x(e.getMinutes(),t,2)}function X(e,t){return x(e.getSeconds(),t,2)}function J(e){var t=e.getDay();return 0===t?7:t}function Q(e,t){return x(l.OM.count((0,c.Z)(e)-1,e),t,2)}function ee(e){var t=e.getDay();return t>=4||0===t?(0,l.bL)(e):l.bL.ceil(e)}function et(e,t){return e=ee(e),x(l.bL.count((0,c.Z)(e),e)+(4===(0,c.Z)(e).getDay()),t,2)}function en(e){return e.getDay()}function er(e,t){return x(l.wA.count((0,c.Z)(e)-1,e),t,2)}function ei(e,t){return x(e.getFullYear()%100,t,2)}function eo(e,t){return x((e=ee(e)).getFullYear()%100,t,2)}function ea(e,t){return x(e.getFullYear()%1e4,t,4)}function es(e,t){var n=e.getDay();return x((e=n>=4||0===n?(0,l.bL)(e):l.bL.ceil(e)).getFullYear()%1e4,t,4)}function el(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+x(t/60|0,"0",2)+x(t%60,"0",2)}function eu(e,t){return x(e.getUTCDate(),t,2)}function ec(e,t){return x(e.getUTCHours(),t,2)}function ed(e,t){return x(e.getUTCHours()%12||12,t,2)}function ef(e,t){return x(1+s.Z.count((0,d.Z)(e),e),t,3)}function eh(e,t){return x(e.getUTCMilliseconds(),t,3)}function ep(e,t){return eh(e,t)+"000"}function em(e,t){return x(e.getUTCMonth()+1,t,2)}function ev(e,t){return x(e.getUTCMinutes(),t,2)}function eg(e,t){return x(e.getUTCSeconds(),t,2)}function ey(e){var t=e.getUTCDay();return 0===t?7:t}function ex(e,t){return x(a.Ox.count((0,d.Z)(e)-1,e),t,2)}function eb(e){var t=e.getUTCDay();return t>=4||0===t?(0,a.hB)(e):a.hB.ceil(e)}function ew(e,t){return e=eb(e),x(a.hB.count((0,d.Z)(e),e)+(4===(0,d.Z)(e).getUTCDay()),t,2)}function ej(e){return e.getUTCDay()}function ek(e,t){return x(a.l6.count((0,d.Z)(e)-1,e),t,2)}function eE(e,t){return x(e.getUTCFullYear()%100,t,2)}function eS(e,t){return x((e=eb(e)).getUTCFullYear()%100,t,2)}function e_(e,t){return x(e.getUTCFullYear()%1e4,t,4)}function eC(e,t){var n=e.getUTCDay();return x((e=n>=4||0===n?(0,a.hB)(e):a.hB.ceil(e)).getUTCFullYear()%1e4,t,4)}function eO(){return"+0000"}function eM(){return"%"}function eT(e){return+e}function eA(e){return Math.floor(+e/1e3)}i=(r=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,c=e.shortDays,d=e.months,v=e.shortMonths,g=w(i),y=j(i),x=w(o),b=j(o),ee=w(c),eb=j(c),eP=w(d),eN=j(d),eR=w(v),eD=j(v),eL={a:function(e){return c[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return v[e.getMonth()]},B:function(e){return d[e.getMonth()]},c:null,d:H,e:H,f:K,g:eo,G:es,H:U,I:W,j:q,L:$,m:Y,M:G,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:eT,s:eA,S:X,u:J,U:Q,V:et,w:en,W:er,x:null,X:null,y:ei,Y:ea,Z:el,"%":eM},eF={a:function(e){return c[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return v[e.getUTCMonth()]},B:function(e){return d[e.getUTCMonth()]},c:null,d:eu,e:eu,f:ep,g:eS,G:eC,H:ec,I:ed,j:ef,L:eh,m:em,M:ev,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:eT,s:eA,S:eg,u:ey,U:ex,V:ew,w:ej,W:ek,x:null,X:null,y:eE,Y:e_,Z:eO,"%":eM},ez={a:function(e,t,n){var r=ee.exec(t.slice(n));return r?(e.w=eb.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=x.exec(t.slice(n));return r?(e.w=b.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=eR.exec(t.slice(n));return r?(e.m=eD.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=eP.exec(t.slice(n));return r?(e.m=eN.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return eI(e,t,n,r)},d:N,e:N,f:V,g:M,G:O,H:D,I:D,j:R,L:z,m:P,M:L,p:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.p=y.get(r[0].toLowerCase()),n+r[0].length):-1},q:A,Q:I,s:B,S:F,u:E,U:S,V:_,w:k,W:C,x:function(e,t,r){return eI(e,n,t,r)},X:function(e,t,n){return eI(e,r,t,n)},y:M,Y:O,Z:T,"%":Z};function eV(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=(r=h(p(o.y,0,1))).getUTCDay())>4||0===i?a.l6.ceil(r):(0,a.l6)(r),r=s.Z.offset(r,(o.V-1)*7),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=(i=(r=f(p(o.y,0,1))).getDay())>4||0===i?l.wA.ceil(r):(0,l.wA)(r),r=u.Z.offset(r,(o.V-1)*7),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?h(p(o.y,0,1)).getUTCDay():f(p(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,h(o)):f(o)}}function eI(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a=l)return -1;if(37===(i=t.charCodeAt(a++))){if(!(o=ez[(i=t.charAt(a++))in m?t.charAt(a++):i])||(r=o(e,n,r))<0)return -1}else if(i!=n.charCodeAt(r++))return -1}return r}return eL.x=eV(n,eL),eL.X=eV(r,eL),eL.c=eV(t,eL),eF.x=eV(n,eF),eF.X=eV(r,eF),eF.c=eV(t,eF),{format:function(e){var t=eV(e+="",eL);return t.toString=function(){return e},t},parse:function(e){var t=eZ(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=eV(e+="",eF);return t.toString=function(){return e},t},utcParse:function(e){var t=eZ(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,r.parse,o=r.utcFormat,r.utcParse},48623:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},x:function(){return a}});var r=n(22274),i=n(34130);function o(){var e,t,n=(0,i.Z)().unknown(void 0),a=n.domain,s=n.range,l=0,u=1,c=!1,d=0,f=0,h=.5;function p(){var n=a().length,r=ut&&(n=e,e=t,t=n),g=function(n){return Math.max(e,Math.min(t,n))}),r=i>2?f:d,c=h=null,x}function x(t){return null==t||isNaN(t=+t)?n:(c||(c=r(p.map(e),m,v)))(e(g(t)))}return x.invert=function(n){return g(t((h||(h=r(m,p.map(e),o.Z)))(n)))},x.domain=function(e){return arguments.length?(p=Array.from(e,s.Z),y()):p.slice()},x.range=function(e){return arguments.length?(m=Array.from(e),y()):m.slice()},x.rangeRound=function(e){return m=Array.from(e),v=a.Z,y()},x.clamp=function(e){return arguments.length?(g=!!e||u,y()):g!==u},x.interpolate=function(e){return arguments.length?(v=e,y()):v},x.unknown=function(e){return arguments.length?(n=e,x):n},function(n,r){return e=n,t=r,y()}}function m(){return p()(u,u)}},79870:function(e,t,n){"use strict";n.r(t),n.d(t,{scaleBand:function(){return r.Z},scaleDiverging:function(){return function e(){var t=(0,i.Q)(O()(y.yR));return t.copy=function(){return w(t,e())},x.O.apply(t,arguments)}},scaleDivergingLog:function(){return function e(){var t=(0,a.Q)(O()).domain([.1,1,10]);return t.copy=function(){return w(t,e()).base(t.base())},x.O.apply(t,arguments)}},scaleDivergingPow:function(){return M},scaleDivergingSqrt:function(){return T},scaleDivergingSymlog:function(){return function e(){var t=(0,s.P)(O());return t.copy=function(){return w(t,e()).constant(t.constant())},x.O.apply(t,arguments)}},scaleIdentity:function(){return function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,o.Z),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,o.Z):[0,1],(0,i.Q)(r)}},scaleImplicit:function(){return l.O},scaleLinear:function(){return i.Z},scaleLog:function(){return a.Z},scaleOrdinal:function(){return l.Z},scalePoint:function(){return r.x},scalePow:function(){return u.ZP},scaleQuantile:function(){return d.Z},scaleQuantize:function(){return f.Z},scaleRadial:function(){return c.Z},scaleSequential:function(){return function e(){var t=(0,i.Q)(b()(y.yR));return t.copy=function(){return w(t,e())},x.O.apply(t,arguments)}},scaleSequentialLog:function(){return function e(){var t=(0,a.Q)(b()).domain([1,10]);return t.copy=function(){return w(t,e()).base(t.base())},x.O.apply(t,arguments)}},scaleSequentialPow:function(){return j},scaleSequentialQuantile:function(){return function e(){var t=[],n=y.yR;function r(e){if(null!=e&&!isNaN(e=+e))return n(((0,E.ZP)(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();for(let n of(t=[],e))null==n||isNaN(n=+n)||t.push(n);return t.sort(S.Z),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map((e,r)=>n(r/(t.length-1)))},r.quantiles=function(e){return Array.from({length:e+1},(n,r)=>(0,_.Z)(t,r/e))},r.copy=function(){return e(n).domain(t)},x.O.apply(r,arguments)}},scaleSequentialSqrt:function(){return k},scaleSequentialSymlog:function(){return function e(){var t=(0,s.P)(b());return t.copy=function(){return w(t,e()).constant(t.constant())},x.O.apply(t,arguments)}},scaleSqrt:function(){return u._b},scaleSymlog:function(){return s.Z},scaleThreshold:function(){return h.Z},scaleTime:function(){return p.Z},scaleUtc:function(){return m.Z},tickFormat:function(){return A.Z}});var r=n(48623),i=n(93963),o=n(5497),a=n(13641),s=n(46494),l=n(34130),u=n(72851),c=n(19637),d=n(96417),f=n(73408),h=n(74995),p=n(37932),m=n(83803),v=n(69777),g=n(74672),y=n(70552),x=n(22274);function b(){var e,t,n,r,i,o=0,a=1,s=y.yR,l=!1;function u(t){return null==t||isNaN(t=+t)?i:s(0===n?.5:(t=(r(t)-e)*n,l?Math.max(0,Math.min(1,t)):t))}function c(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),u):[s(0),s(1)]}}return u.domain=function(i){return arguments.length?([o,a]=i,e=r(o=+o),t=r(a=+a),n=e===t?0:1/(t-e),u):[o,a]},u.clamp=function(e){return arguments.length?(l=!!e,u):l},u.interpolator=function(e){return arguments.length?(s=e,u):s},u.range=c(v.Z),u.rangeRound=c(g.Z),u.unknown=function(e){return arguments.length?(i=e,u):i},function(i){return r=i,e=i(o),t=i(a),n=e===t?0:1/(t-e),u}}function w(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function j(){var e=(0,u.Hh)(b());return e.copy=function(){return w(e,j()).exponent(e.exponent())},x.O.apply(e,arguments)}function k(){return j.apply(null,arguments).exponent(.5)}var E=n(98038),S=n(1169),_=n(33907),C=n(87475);function O(){var e,t,n,r,i,o,a,s=0,l=.5,u=1,c=1,d=y.yR,f=!1;function h(e){return isNaN(e=+e)?a:(e=.5+((e=+o(e))-t)*(c*e0;){if((o=(0,r.G9)(u,c,n))===i)return a[s]=u,a[l]=c,t(a);if(o>0)u=Math.floor(u/o)*o,c=Math.ceil(c/o)*o;else if(o<0)u=Math.ceil(u*o)/o,c=Math.floor(c*o)/o;else break;i=o}return e},e}},13641:function(e,t,n){"use strict";n.d(t,{Q:function(){return p},Z:function(){return function e(){var t=p((0,a.l4)()).domain([1,10]);return t.copy=function(){return(0,a.JG)(t,e()).base(t.base())},s.o.apply(t,arguments),t}}});var r=n(32071),i=n(11192),o=n(10070),a=n(70552),s=n(22274);function l(e){return Math.log(e)}function u(e){return Math.exp(e)}function c(e){return-Math.log(-e)}function d(e){return-Math.exp(-e)}function f(e){return isFinite(e)?+("1e"+e):e<0?0:e}function h(e){return function(t){return-e(-t)}}function p(e){var t,n,a=e(l,u),s=a.domain,p=10;function m(){var r,i;return t=(r=p)===Math.E?Math.log:10===r&&Math.log10||2===r&&Math.log2||(r=Math.log(r),function(e){return Math.log(e)/r}),n=10===(i=p)?f:i===Math.E?Math.exp:function(e){return Math.pow(i,e)},s()[0]<0?(t=h(t),n=h(n),e(c,d)):e(l,u),a}return a.base=function(e){return arguments.length?(p=+e,m()):p},a.domain=function(e){return arguments.length?(s(e),m()):s()},a.ticks=function(e){var i,o=s(),a=o[0],l=o[o.length-1];(i=l0){for(;f<=h;++f)for(c=1,u=n(f);cl)break;v.push(d)}}else for(;f<=h;++f)for(c=p-1,u=n(f);c>=1;--c)if(!((d=u*c)l)break;v.push(d)}2*v.length0?l[t-1]:n[0],t=s?[l[s-1],a]:[l[t-1],l[t]]},c.unknown=function(e){return arguments.length&&(t=e),c},c.thresholds=function(){return l.slice()},c.copy=function(){return e().domain([n,a]).range(u).unknown(t)},o.o.apply((0,i.Q)(c),arguments)}}});var r=n(98038),i=n(93963),o=n(22274)},19637:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(){var t,n=(0,r.ZP)(),l=[0,1],u=!1;function c(e){var r,i=Math.sign(r=n(e))*Math.sqrt(Math.abs(r));return isNaN(i)?t:u?Math.round(i):i}return c.invert=function(e){return n.invert(s(e))},c.domain=function(e){return arguments.length?(n.domain(e),c):n.domain()},c.range=function(e){return arguments.length?(n.range((l=Array.from(e,a.Z)).map(s)),c):l.slice()},c.rangeRound=function(e){return c.range(e).round(!0)},c.round=function(e){return arguments.length?(u=!!e,c):u},c.clamp=function(e){return arguments.length?(n.clamp(e),c):n.clamp()},c.unknown=function(e){return arguments.length?(t=e,c):t},c.copy=function(){return e(n.domain(),l).round(u).clamp(n.clamp()).unknown(t)},i.o.apply(c,arguments),(0,o.Q)(c)}}});var r=n(70552),i=n(22274),o=n(93963),a=n(5497);function s(e){return Math.sign(e)*e*e}},46494:function(e,t,n){"use strict";n.d(t,{P:function(){return l},Z:function(){return function e(){var t=l((0,i.l4)());return t.copy=function(){return(0,i.JG)(t,e()).constant(t.constant())},o.o.apply(t,arguments)}}});var r=n(93963),i=n(70552),o=n(22274);function a(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function s(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function l(e){var t=1,n=e(a(1),s(t));return n.constant=function(n){return arguments.length?e(a(t=+n),s(t)):t},(0,r.Q)(n)}},74995:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(){var t,n=[.5],o=[0,1],a=1;function s(e){return null!=e&&e<=e?o[(0,r.ZP)(n,e,0,a)]:t}return s.domain=function(e){return arguments.length?(a=Math.min((n=Array.from(e)).length,o.length-1),s):n.slice()},s.range=function(e){return arguments.length?(o=Array.from(e),a=Math.min(n.length,o.length-1),s):o.slice()},s.invertExtent=function(e){var t=o.indexOf(e);return[n[t-1],n[t]]},s.unknown=function(e){return arguments.length?(t=e,s):t},s.copy=function(){return e().domain(n).range(o).unknown(t)},i.o.apply(s,arguments)}}});var r=n(98038),i=n(22274)},78937:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(32071),i=n(52328),o=n(21032),a=n(11192),s=n(61652),l=n(88013);function u(e,t,n,u){var c,d=(0,r.ly)(e,t,n);switch((u=(0,i.Z)(null==u?",f":u)).type){case"s":var f=Math.max(Math.abs(e),Math.abs(t));return null!=u.precision||isNaN(c=(0,o.Z)(d,f))||(u.precision=c),(0,a.jH)(u,f);case"":case"e":case"g":case"p":case"r":null!=u.precision||isNaN(c=(0,s.Z)(d,Math.max(Math.abs(e),Math.abs(t))))||(u.precision=c-("e"===u.type));break;case"f":case"%":null!=u.precision||isNaN(c=(0,l.Z)(d))||(u.precision=c-("%"===u.type)*2)}return(0,a.WU)(u)}},37932:function(e,t,n){"use strict";n.d(t,{Y:function(){return g},Z:function(){return y}});var r=n(1381),i=n(97344),o=n(50690),a=n(76231),s=n(68603),l=n(54076),u=n(18450),c=n(52546),d=n(61743),f=n(70552),h=n(22274),p=n(10070);function m(e){return new Date(e)}function v(e){return e instanceof Date?+e:+new Date(+e)}function g(e,t,n,r,i,o,a,s,l,u){var c=(0,f.ZP)(),d=c.invert,h=c.domain,y=u(".%L"),x=u(":%S"),b=u("%I:%M"),w=u("%I %p"),j=u("%a %d"),k=u("%b %d"),E=u("%B"),S=u("%Y");function _(e){return(l(e)A*A+P*P&&(S=C,_=O),{cx:S,cy:_,x01:-d,y01:-f,x11:S*(i/j-1),y11:_*(i/j-1)}}function f(){var e=a,t=s,n=(0,i.Z)(0),f=null,h=l,p=u,m=c,v=null;function g(){var i,a,s=+e.apply(this,arguments),l=+t.apply(this,arguments),u=h.apply(this,arguments)-o.ou,c=p.apply(this,arguments)-o.ou,g=(0,o.Wn)(c-u),y=c>u;if(v||(v=i=(0,r.Z)()),lo.Ho){if(g>o.BZ-o.Ho)v.moveTo(l*(0,o.mC)(u),l*(0,o.O$)(u)),v.arc(0,0,l,u,c,!y),s>o.Ho&&(v.moveTo(s*(0,o.mC)(c),s*(0,o.O$)(c)),v.arc(0,0,s,c,u,y));else{var x,b,w=u,j=c,k=u,E=c,S=g,_=g,C=m.apply(this,arguments)/2,O=C>o.Ho&&(f?+f.apply(this,arguments):(0,o._b)(s*s+l*l)),M=(0,o.VV)((0,o.Wn)(l-s)/2,+n.apply(this,arguments)),T=M,A=M;if(O>o.Ho){var P=(0,o.ZR)(O/s*(0,o.O$)(C)),N=(0,o.ZR)(O/l*(0,o.O$)(C));(S-=2*P)>o.Ho?(P*=y?1:-1,k+=P,E-=P):(S=0,k=E=(u+c)/2),(_-=2*N)>o.Ho?(N*=y?1:-1,w+=N,j-=N):(_=0,w=j=(u+c)/2)}var R=l*(0,o.mC)(w),D=l*(0,o.O$)(w),L=s*(0,o.mC)(E),F=s*(0,o.O$)(E);if(M>o.Ho){var z,V=l*(0,o.mC)(j),Z=l*(0,o.O$)(j),I=s*(0,o.mC)(k),B=s*(0,o.O$)(k);if(go.Ho?A>o.Ho?(x=d(I,B,R,D,l,A,y),b=d(V,Z,L,F,l,A,y),v.moveTo(x.cx+x.x01,x.cy+x.y01),Ao.Ho&&S>o.Ho?T>o.Ho?(x=d(L,F,V,Z,s,-T,y),b=d(R,D,I,B,s,-T,y),v.lineTo(x.cx+x.x01,x.cy+x.y01),T=a;--s)f.point(g[s],y[s]);f.lineEnd(),f.areaEnd()}}v&&(g[o]=+e(h,o,i),y[o]=+n(h,o,i),f.point(t?+t(h,o,i):g[o],l?+l(h,o,i):y[o]))}if(p)return f=null,p+""||null}function p(){return(0,a.Z)().defined(u).curve(d).context(c)}return h.x=function(n){return arguments.length?(e="function"==typeof n?n:(0,i.Z)(+n),t=null,h):e},h.x0=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.Z)(+t),h):e},h.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:(0,i.Z)(+e),h):t},h.y=function(e){return arguments.length?(n="function"==typeof e?e:(0,i.Z)(+e),l=null,h):n},h.y0=function(e){return arguments.length?(n="function"==typeof e?e:(0,i.Z)(+e),h):n},h.y1=function(e){return arguments.length?(l=null==e?null:"function"==typeof e?e:(0,i.Z)(+e),h):l},h.lineX0=h.lineY0=function(){return p().x(e).y(n)},h.lineY1=function(){return p().x(e).y(l)},h.lineX1=function(){return p().x(t).y(n)},h.defined=function(e){return arguments.length?(u="function"==typeof e?e:(0,i.Z)(!!e),h):u},h.curve=function(e){return arguments.length?(d=e,null!=c&&(f=d(c)),h):d},h.context=function(e){return arguments.length?(null==e?c=f=null:f=d(c=e),h):c},h}},72299:function(e,t,n){"use strict";n.d(t,{t:function(){return r}});var r=Array.prototype.slice},33554:function(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{Z:function(){return r}})},46385:function(e,t,n){"use strict";function r(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function i(e,t){this._context=e,this._k=(1-t)/6}n.d(t,{pC:function(){return i},xm:function(){return r}}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:r(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:r(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},t.ZP=function e(t){function n(e){return new i(e,t)}return n.tension=function(t){return e(+t)},n}(0)},20651:function(e,t,n){"use strict";function r(e){this._context=e}function i(e){return new r(e)}n.d(t,{Z:function(){return i}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}}},27266:function(e,t,n){"use strict";function r(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0);return((o<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs((o*i+a*r)/(r+i)))||0}function i(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function o(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function a(e){this._context=e}function s(e){this._context=new l(e)}function l(e){this._context=e}function u(e){return new a(e)}function c(e){return new s(e)}n.d(t,{Z:function(){return u},s:function(){return c}}),a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:o(this,this._t0,i(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,o(this,i(this,n=r(this,e,t)),n);break;default:o(this,this._t0,n=r(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(s.prototype=Object.create(a.prototype)).point=function(e,t){a.prototype.point.call(this,t,e)},l.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}}},23165:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},j:function(){return r}});var r=o(n(20651).Z);function i(e){this._curve=e}function o(e){function t(t){return new i(e(t))}return t._curve=e,t}i.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),-(t*Math.cos(e)))}}},45742:function(e,t,n){"use strict";function r(e,t){this._context=e,this._t=t}function i(e){return new r(e,.5)}function o(e){return new r(e,0)}function a(e){return new r(e,1)}n.d(t,{RN:function(){return o},ZP:function(){return i},cD:function(){return a}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}}},59207:function(e,t,n){"use strict";n.r(t),n.d(t,{arc:function(){return r.Z},area:function(){return i.Z},areaRadial:function(){return u},curveBasis:function(){return k},curveBasisClosed:function(){return S},curveBasisOpen:function(){return C},curveBundle:function(){return M},curveCardinal:function(){return T.ZP},curveCardinalClosed:function(){return P},curveCardinalOpen:function(){return R},curveCatmullRom:function(){return z},curveCatmullRomClosed:function(){return Z},curveCatmullRomOpen:function(){return B},curveLinear:function(){return W.Z},curveLinearClosed:function(){return U},curveMonotoneX:function(){return q.Z},curveMonotoneY:function(){return q.s},curveNatural:function(){return Y},curveStep:function(){return G.ZP},curveStepAfter:function(){return G.cD},curveStepBefore:function(){return G.RN},line:function(){return o.Z},lineRadial:function(){return l.Z},linkHorizontal:function(){return d.h5},linkRadial:function(){return d.M4},linkVertical:function(){return d.rR},pie:function(){return a.Z},pointRadial:function(){return c.Z},radialArea:function(){return u},radialLine:function(){return l.Z},stack:function(){return X.Z},stackOffsetDiverging:function(){return Q.Z},stackOffsetExpand:function(){return J.Z},stackOffsetNone:function(){return ee.Z},stackOffsetSilhouette:function(){return et.Z},stackOffsetWiggle:function(){return en.Z},stackOrderAppearance:function(){return er.Z},stackOrderAscending:function(){return ei.Z},stackOrderDescending:function(){return eo.Z},stackOrderInsideOut:function(){return ea.Z},stackOrderNone:function(){return es.Z},stackOrderReverse:function(){return el.Z},symbol:function(){return f.Z},symbolCircle:function(){return h.Z},symbolCross:function(){return p.Z},symbolDiamond:function(){return m.Z},symbolSquare:function(){return v.Z},symbolStar:function(){return g.Z},symbolTriangle:function(){return y.Z},symbolWye:function(){return x.Z},symbols:function(){return f.u}});var r=n(38764),i=n(12235),o=n(79767),a=n(69619),s=n(23165),l=n(8329);function u(){var e=(0,i.Z)().curve(s.j),t=e.curve,n=e.lineX0,r=e.lineX1,o=e.lineY0,a=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return(0,l.X)(n())},delete e.lineX0,e.lineEndAngle=function(){return(0,l.X)(r())},delete e.lineX1,e.lineInnerRadius=function(){return(0,l.X)(o())},delete e.lineY0,e.lineOuterRadius=function(){return(0,l.X)(a())},delete e.lineY1,e.curve=function(e){return arguments.length?t((0,s.Z)(e)):t()._curve},e}var c=n(3326),d=n(72215),f=n(24037),h=n(62628),p=n(9135),m=n(82893),v=n(44523),g=n(86707),y=n(42965),x=n(60598);function b(){}function w(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function j(e){this._context=e}function k(e){return new j(e)}function E(e){this._context=e}function S(e){return new E(e)}function _(e){this._context=e}function C(e){return new _(e)}function O(e,t){this._basis=new j(e),this._beta=t}j.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:w(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},E.prototype={areaStart:b,areaEnd:b,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},O.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],o=t[0],a=e[n]-i,s=t[n]-o,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*a),this._beta*t[l]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var M=function e(t){function n(e){return 1===t?new j(e):new O(e,t)}return n.beta=function(t){return e(+t)},n}(.85),T=n(46385);function A(e,t){this._context=e,this._k=(1-t)/6}A.prototype={areaStart:b,areaEnd:b,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:(0,T.xm)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var P=function e(t){function n(e){return new A(e,t)}return n.tension=function(t){return e(+t)},n}(0);function N(e,t){this._context=e,this._k=(1-t)/6}N.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:(0,T.xm)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var R=function e(t){function n(e){return new N(e,t)}return n.tension=function(t){return e(+t)},n}(0),D=n(15);function L(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>D.Ho){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>D.Ho){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*u+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function F(e,t){this._context=e,this._alpha=t}F.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var z=function e(t){function n(e){return t?new F(e,t):new T.pC(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function V(e,t){this._context=e,this._alpha=t}V.prototype={areaStart:b,areaEnd:b,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Z=function e(t){function n(e){return t?new V(e,t):new A(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function I(e,t){this._context=e,this._alpha=t}I.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var B=function e(t){function n(e){return t?new I(e,t):new N(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function H(e){this._context=e}function U(e){return new H(e)}H.prototype={areaStart:b,areaEnd:b,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};var W=n(20651),q=n(27266);function $(e){this._context=e}function K(e){var t,n,r=e.length-1,i=Array(r),o=Array(r),a=Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(t=0,o[r-1]=(e[r]+i[r-1])/2;t1?0:e<-1?d:Math.acos(e)}function m(e){return e>=1?f:e<=-1?-f:Math.asin(e)}},76751:function(e,t,n){"use strict";function r(e,t){if((s=e.length)>0)for(var n,r,i,o,a,s,l=0,u=e[t[0]].length;l0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)}n.d(t,{Z:function(){return r}})},22254:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(90541);function i(e,t){if((i=e.length)>0){for(var n,i,o,a=0,s=e[0].length;a1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o0){for(var n,i=0,o=e[t[0]],a=o.length;i0&&(i=(n=e[t[0]]).length)>0){for(var n,i,o,a=0,s=1;so&&(o=t,r=n);return r}},19721:function(e,t,n){"use strict";n.d(t,{S:function(){return o},Z:function(){return i}});var r=n(81182);function i(e){var t=e.map(o);return(0,r.Z)(e).sort(function(e,n){return t[e]-t[n]})}function o(e){for(var t,n=0,r=-1,i=e.length;++r=0;)n[t]=t;return n}n.d(t,{Z:function(){return r}})},40277:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(81182);function i(e){return(0,r.Z)(e).reverse()}},69619:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(33554);function i(e,t){return te?1:t>=e?0:NaN}function o(e){return e}var a=n(15);function s(){var e=o,t=i,n=null,s=(0,r.Z)(0),l=(0,r.Z)(a.BZ),u=(0,r.Z)(0);function c(r){var i,o,c,d,f,h=r.length,p=0,m=Array(h),v=Array(h),g=+s.apply(this,arguments),y=Math.min(a.BZ,Math.max(-a.BZ,l.apply(this,arguments)-g)),x=Math.min(Math.abs(y)/h,u.apply(this,arguments)),b=x*(y<0?-1:1);for(i=0;i0&&(p+=f);for(null!=t?m.sort(function(e,n){return t(v[e],v[n])}):null!=n&&m.sort(function(e,t){return n(r[e],r[t])}),i=0,c=p?(y-h*b)/p:0;i0?f*c:0)+b,v[o]={data:r[o],index:i,value:f,startAngle:g,endAngle:d,padAngle:x};return v}return c.value=function(t){return arguments.length?(e="function"==typeof t?t:(0,r.Z)(+t),c):e},c.sortValues=function(e){return arguments.length?(t=e,n=null,c):t},c.sort=function(e){return arguments.length?(n=e,t=null,c):n},c.startAngle=function(e){return arguments.length?(s="function"==typeof e?e:(0,r.Z)(+e),c):s},c.endAngle=function(e){return arguments.length?(l="function"==typeof e?e:(0,r.Z)(+e),c):l},c.padAngle=function(e){return arguments.length?(u="function"==typeof e?e:(0,r.Z)(+e),c):u},c}},11053:function(e,t,n){"use strict";function r(e){return e[0]}function i(e){return e[1]}n.d(t,{x:function(){return r},y:function(){return i}})},3326:function(e,t,n){"use strict";function r(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}n.d(t,{Z:function(){return r}})},98926:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(72299),i=n(33554),o=n(90541),a=n(81182);function s(e,t){return e[t]}function l(){var e=(0,i.Z)([]),t=a.Z,n=o.Z,l=s;function u(r){var i,o,a=e.apply(this,arguments),s=r.length,u=a.length,c=Array(u);for(i=0;ie.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.yB)/i.UD,e=>e.getDate()-1);t.Z=o;var a=o.range},1514:function(e,t,n){"use strict";n.d(t,{UD:function(){return a},Y2:function(){return o},Ym:function(){return r},iM:function(){return s},jz:function(){return l},qz:function(){return u},yB:function(){return i}});let r=1e3,i=60*r,o=60*i,a=24*o,s=7*a,l=30*a,u=365*a},54076:function(e,t,n){"use strict";n.d(t,{i:function(){return a}});var r=n(22179),i=n(1514),o=(0,r.Z)(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.Ym-e.getMinutes()*i.yB)},function(e,t){e.setTime(+e+t*i.Y2)},function(e,t){return(t-e)/i.Y2},function(e){return e.getHours()});t.Z=o;var a=o.range},11365:function(e,t,n){"use strict";n.r(t),n.d(t,{timeDay:function(){return l.Z},timeDays:function(){return l.a},timeFriday:function(){return u.mC},timeFridays:function(){return u.b$},timeHour:function(){return s.Z},timeHours:function(){return s.i},timeInterval:function(){return r.Z},timeMillisecond:function(){return i.Z},timeMilliseconds:function(){return i.m},timeMinute:function(){return a.Z},timeMinutes:function(){return a.L},timeMonday:function(){return u.wA},timeMondays:function(){return u.bJ},timeMonth:function(){return c.Z},timeMonths:function(){return c.e},timeSaturday:function(){return u.EY},timeSaturdays:function(){return u.Ff},timeSecond:function(){return o.Z},timeSeconds:function(){return o.m},timeSunday:function(){return u.OM},timeSundays:function(){return u.vm},timeThursday:function(){return u.bL},timeThursdays:function(){return u.$t},timeTickInterval:function(){return y._g},timeTicks:function(){return y.jK},timeTuesday:function(){return u.sy},timeTuesdays:function(){return u.aU},timeWednesday:function(){return u.zg},timeWednesdays:function(){return u.Ld},timeWeek:function(){return u.OM},timeWeeks:function(){return u.vm},timeYear:function(){return d.Z},timeYears:function(){return d.g},utcDay:function(){return p.Z},utcDays:function(){return p.y},utcFriday:function(){return m.QQ},utcFridays:function(){return m.fz},utcHour:function(){return h.Z},utcHours:function(){return h.X},utcMillisecond:function(){return i.Z},utcMilliseconds:function(){return i.m},utcMinute:function(){return f.Z},utcMinutes:function(){return f.N},utcMonday:function(){return m.l6},utcMondays:function(){return m.$3},utcMonth:function(){return v.Z},utcMonths:function(){return v.K},utcSaturday:function(){return m.g4},utcSaturdays:function(){return m.Q_},utcSecond:function(){return o.Z},utcSeconds:function(){return o.m},utcSunday:function(){return m.Ox},utcSundays:function(){return m.SU},utcThursday:function(){return m.hB},utcThursdays:function(){return m.xj},utcTickInterval:function(){return y.jo},utcTicks:function(){return y.WG},utcTuesday:function(){return m.J1},utcTuesdays:function(){return m.DK},utcWednesday:function(){return m.b3},utcWednesdays:function(){return m.uy},utcWeek:function(){return m.Ox},utcWeeks:function(){return m.SU},utcYear:function(){return g.Z},utcYears:function(){return g.D}});var r=n(22179),i=n(30356),o=n(52546),a=n(18450),s=n(54076),l=n(68603),u=n(76231),c=n(50690),d=n(97344),f=n(52004),h=n(28239),p=n(12370),m=n(97631),v=n(94758),g=n(2908),y=n(1381)},22179:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(t,n,o,a){function s(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return s.floor=function(e){return t(e=new Date(+e)),e},s.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},s.round=function(e){var t=s(e),n=s.ceil(e);return e-t0))return a;do a.push(o=new Date(+e)),n(e,i),t(e);while(o=e)for(;t(e),!r(e);)e.setTime(e-1)},function(e,t){if(e>=e){if(t<0)for(;++t<=0;)for(;n(e,-1),!r(e););else for(;--t>=0;)for(;n(e,1),!r(e););}})},o&&(s.count=function(e,n){return r.setTime(+e),i.setTime(+n),t(r),t(i),Math.floor(o(r,i))},s.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?s.filter(a?function(t){return a(t)%e==0}:function(t){return s.count(0,t)%e==0}):s:null}),s}}});var r=new Date,i=new Date},30356:function(e,t,n){"use strict";n.d(t,{m:function(){return o}});var r=n(22179),i=(0,r.Z)(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});i.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?(0,r.Z)(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):i:null},t.Z=i;var o=i.range},18450:function(e,t,n){"use strict";n.d(t,{L:function(){return a}});var r=n(22179),i=n(1514),o=(0,r.Z)(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.Ym)},function(e,t){e.setTime(+e+t*i.yB)},function(e,t){return(t-e)/i.yB},function(e){return e.getMinutes()});t.Z=o;var a=o.range},50690:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var r=(0,n(22179).Z)(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});t.Z=r;var i=r.range},52546:function(e,t,n){"use strict";n.d(t,{m:function(){return a}});var r=n(22179),i=n(1514),o=(0,r.Z)(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*i.Ym)},function(e,t){return(t-e)/i.Ym},function(e){return e.getUTCSeconds()});t.Z=o;var a=o.range},1381:function(e,t,n){"use strict";n.d(t,{_g:function(){return _},jK:function(){return S},jo:function(){return E},WG:function(){return k}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=i?s*=5:l>=o&&(s*=2),t>>1;0>n(e[o],t)?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>{var r;return(r=e(t))n?1:r>=n?0:NaN}),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);let a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}})(([,,e])=>e).right(c,i);if(o===c.length)return e.every(a(t/s.qz,n/s.qz,r));if(0===o)return l.Z.every(Math.max(a(t,n,r),1));let[u,d]=c[i/c[o-1][2]0?(0,r.Z)(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null},t.Z=i;var o=i.range},76231:function(e,t,n){"use strict";n.d(t,{$t:function(){return g},EY:function(){return f},Ff:function(){return x},Ld:function(){return v},OM:function(){return a},aU:function(){return m},b$:function(){return y},bJ:function(){return p},bL:function(){return c},mC:function(){return d},sy:function(){return l},vm:function(){return h},wA:function(){return s},zg:function(){return u}});var r=n(22179),i=n(1514);function o(e){return(0,r.Z)(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.yB)/i.iM})}var a=o(0),s=o(1),l=o(2),u=o(3),c=o(4),d=o(5),f=o(6),h=a.range,p=s.range,m=l.range,v=u.range,g=c.range,y=d.range,x=f.range},97344:function(e,t,n){"use strict";n.d(t,{g:function(){return o}});var r=n(22179),i=(0,r.Z)(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});i.every=function(e){return isFinite(e=Math.floor(e))&&e>0?(0,r.Z)(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null},t.Z=i;var o=i.range},1645:function(e,t,n){"use strict";function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,{Z:function(){return r}})},19785:function(e,t,n){"use strict";function r(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:function(){return r}})},29193:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(66700),i=n(19785);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),o=(0,r.Z)(t),a=n.getTime()-o.getTime();return a<0?-1:a>0?1:a}var a={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},s=n(88811),l=n(1645);function u(e,t){var n,u,c,d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,i.Z)(2,arguments);var f=d.locale||s.Z;if(!f.formatDistance)throw RangeError("locale must contain formatDistance property");var h=o(e,t);if(isNaN(h))throw RangeError("Invalid time value");var p=function(e,t){if(null==e)throw TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}({},d);p.addSuffix=!!d.addSuffix,p.comparison=h,h>0?(n=(0,r.Z)(t),u=(0,r.Z)(e)):(n=(0,r.Z)(e),u=(0,r.Z)(t));var m=function(e,t,n){(0,i.Z)(2,arguments);var o,s=function(e,t){return(0,i.Z)(2,arguments),(0,r.Z)(e).getTime()-(0,r.Z)(t).getTime()}(e,t)/1e3;return((o=null==n?void 0:n.roundingMethod)?a[o]:a.trunc)(s)}(u,n),v=Math.round((m-((0,l.Z)(u)-(0,l.Z)(n))/1e3)/60);if(v<2){if(d.includeSeconds){if(m<5)return f.formatDistance("lessThanXSeconds",5,p);if(m<10)return f.formatDistance("lessThanXSeconds",10,p);if(m<20)return f.formatDistance("lessThanXSeconds",20,p);if(m<40)return f.formatDistance("halfAMinute",null,p);else if(m<60)return f.formatDistance("lessThanXMinutes",1,p);else return f.formatDistance("xMinutes",1,p)}return 0===v?f.formatDistance("lessThanXMinutes",1,p):f.formatDistance("xMinutes",v,p)}if(v<45)return f.formatDistance("xMinutes",v,p);if(v<90)return f.formatDistance("aboutXHours",1,p);if(v<1440){var g=Math.round(v/60);return f.formatDistance("aboutXHours",g,p)}if(v<2520)return f.formatDistance("xDays",1,p);if(v<43200){var y=Math.round(v/1440);return f.formatDistance("xDays",y,p)}if(v<86400)return c=Math.round(v/43200),f.formatDistance("aboutXMonths",c,p);if((c=function(e,t){(0,i.Z)(2,arguments);var n,a=(0,r.Z)(e),s=(0,r.Z)(t),l=o(a,s),u=Math.abs(function(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),o=(0,r.Z)(t);return 12*(n.getFullYear()-o.getFullYear())+(n.getMonth()-o.getMonth())}(a,s));if(u<1)n=0;else{1===a.getMonth()&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-l*u);var c=o(a,s)===-l;(function(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e);return(function(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e);return t.setHours(23,59,59,999),t})(t).getTime()===(function(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t})(t).getTime()})((0,r.Z)(e))&&1===u&&1===o(e,s)&&(c=!1),n=l*(u-Number(c))}return 0===n?0:n}(u,n))<12){var x=Math.round(v/43200);return f.formatDistance("xMonths",x,p)}var b=c%12,w=Math.floor(c/12);return b<3?f.formatDistance("aboutXYears",w,p):b<9?f.formatDistance("overXYears",w,p):f.formatDistance("almostXYears",w+1,p)}},88811:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r,i={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function o(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var a={date:o({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:o({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:o({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function l(e){return function(t,n){var r,i=n||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=i.width?String(i.width):o;r=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=i.width?String(i.width):e.defaultWidth;r=e.values[l]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function u(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var s=a[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var n=0;n0?"in "+r:r+" ago":r},formatLong:a,formatRelative:function(e,t,n,r){return s[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:l({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:l({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:l({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:l({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:l({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(r={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(r.matchPattern);if(!n)return null;var i=n[0],o=e.match(r.parsePattern);if(!o)return null;var a=r.valueCallback?r.valueCallback(o[0]):o[0];return{value:a=t.valueCallback?t.valueCallback(a):a,rest:e.slice(i.length)}}),era:u({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:u({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:u({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:u({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:u({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},66700:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(19785);function i(e){(0,r.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(Error().stack)),new Date(NaN))}},36386:function(e){function t(e,t,n){function r(){var u=Date.now()-s;u=0?i=setTimeout(r,t-u):(i=null,n||(l=e.apply(a,o),a=o=null))}null==t&&(t=100);var i,o,a,s,l,u=function(){a=this,o=arguments,s=Date.now();var u=n&&!i;return i||(i=setTimeout(r,t)),u&&(l=e.apply(a,o),a=o=null),l};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(l=e.apply(a,o),a=o=null,clearTimeout(i),i=null)},u}t.debounce=t,e.exports=t},9156:function(e,t,n){"use strict";n.d(t,{TA:function(){return t3}});var r,i,o,a=n(2784),s=n(78435),l=n.n(s),u=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==c},c="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function d(e,t){return!1!==t.clone&&t.isMergeableObject(e)?h(Array.isArray(e)?[]:{},e,t):e}function f(e,t,n){return e.concat(t).map(function(e){return d(e,n)})}function h(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||f,n.isMergeableObject=n.isMergeableObject||u;var r,i,o=Array.isArray(t);return o!==Array.isArray(e)?d(t,n):o?n.arrayMerge(e,t,n):(i={},(r=n).isMergeableObject(e)&&Object.keys(e).forEach(function(t){i[t]=d(e[t],r)}),Object.keys(t).forEach(function(n){r.isMergeableObject(t[n])&&e[n]?i[n]=h(e[n],t[n],r):i[n]=d(t[n],r)}),i)}h.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return h(e,n,t)},{})};var p=h,m=n(98147),v=function(e,t){return function(n){return e(t(n))}},g=v(Object.getPrototypeOf,Object),y=n(43391),x=Object.prototype,b=Function.prototype.toString,w=x.hasOwnProperty,j=b.call(Object),k=function(e){if(!(0,y.Z)(e)||"[object Object]"!=(0,m.Z)(e))return!1;var t=g(e);if(null===t)return!0;var n=w.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&b.call(n)==j},E=function(e,t){return e===t||e!=e&&t!=t},S=function(e,t){for(var n=e.length;n--;)if(E(e[n][0],t))return n;return -1},_=Array.prototype.splice;function C(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},C.prototype.set=function(e,t){var n=this.__data__,r=S(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var O=n(93122),M=function(e){if(!(0,O.Z)(e))return!1;var t=(0,m.Z)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},T=n(93221),A=T.Z["__core-js_shared__"],P=(r=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",N=Function.prototype.toString,R=function(e){if(null!=e){try{return N.call(e)}catch(e){}try{return e+""}catch(e){}}return""},D=/^\[object .+?Constructor\]$/,L=Object.prototype,F=Function.prototype.toString,z=L.hasOwnProperty,V=RegExp("^"+F.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Z=function(e,t){var n,r=null==e?void 0:e[t];return(n=r,(0,O.Z)(n)&&(!P||!(P in n))&&(M(n)?V:D).test(R(n)))?r:void 0},I=Z(T.Z,"Map"),B=Z(Object,"create"),H=Object.prototype.hasOwnProperty,U=Object.prototype.hasOwnProperty;function W(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},ev={};ev["[object Float32Array]"]=ev["[object Float64Array]"]=ev["[object Int8Array]"]=ev["[object Int16Array]"]=ev["[object Int32Array]"]=ev["[object Uint8Array]"]=ev["[object Uint8ClampedArray]"]=ev["[object Uint16Array]"]=ev["[object Uint32Array]"]=!0,ev["[object Arguments]"]=ev["[object Array]"]=ev["[object ArrayBuffer]"]=ev["[object Boolean]"]=ev["[object DataView]"]=ev["[object Date]"]=ev["[object Error]"]=ev["[object Function]"]=ev["[object Map]"]=ev["[object Number]"]=ev["[object Object]"]=ev["[object RegExp]"]=ev["[object Set]"]=ev["[object String]"]=ev["[object WeakMap]"]=!1;var eg=function(e){return function(t){return e(t)}},ey=n(92168),ex="object"==typeof exports&&exports&&!exports.nodeType&&exports,eb=ex&&"object"==typeof module&&module&&!module.nodeType&&module,ew=eb&&eb.exports===ex&&ey.Z.process,ej=function(){try{var e=eb&&eb.require&&eb.require("util").types;if(e)return e;return ew&&ew.binding&&ew.binding("util")}catch(e){}}(),ek=ej&&ej.isTypedArray,eE=ek?eg(ek):function(e){return(0,y.Z)(e)&&em(e.length)&&!!ev[(0,m.Z)(e)]},eS=Object.prototype.hasOwnProperty,e_=function(e,t){var n=el(e),r=!n&&es(e),i=!n&&!r&&ef(e),o=!n&&!r&&!i&&eE(e),a=n||r||i||o,s=a?en(e.length,String):[],l=s.length;for(var u in e)(t||eS.call(e,u))&&!(a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ep(u,l)))&&s.push(u);return s},eC=Object.prototype,eO=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||eC)},eM=v(Object.keys,Object),eT=Object.prototype.hasOwnProperty,eA=function(e){if(!eO(e))return eM(e);var t=[];for(var n in Object(e))eT.call(e,n)&&"constructor"!=n&&t.push(n);return t},eP=function(e){return null!=e&&em(e.length)&&!M(e)},eN=function(e){return eP(e)?e_(e):eA(e)},eR=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},eD=Object.prototype.hasOwnProperty,eL=function(e){if(!(0,O.Z)(e))return eR(e);var t=eO(e),n=[];for(var r in e)"constructor"==r&&(t||!eD.call(e,r))||n.push(r);return n},eF=function(e){return eP(e)?e_(e,!0):eL(e)},ez="object"==typeof exports&&exports&&!exports.nodeType&&exports,eV=ez&&"object"==typeof module&&module&&!module.nodeType&&module,eZ=eV&&eV.exports===ez?T.Z.Buffer:void 0,eI=eZ?eZ.allocUnsafe:void 0,eB=function(e,t){if(t)return e.slice();var n=e.length,r=eI?eI(n):new e.constructor(n);return e.copy(r),r},eH=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n=0||(i[n]=e[n]);return i}function tq(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(73463);var t$=function(e){return Array.isArray(e)&&0===e.length},tK=function(e){return"function"==typeof e},tY=function(e){return null!==e&&"object"==typeof e},tG=function(e){return"[object String]"===Object.prototype.toString.call(e)},tX=function(e){return tY(e)&&tK(e.then)};function tJ(e,t,n,r){void 0===r&&(r=0);for(var i=tB(t);e&&r=0?[]:{}}}return(0===o?e:i)[a[o]]===n?e:(void 0===n?delete i[a[o]]:i[a[o]]=n,0===o&&void 0===n&&delete r[a[o]],r)}var t0=(0,a.createContext)(void 0);function t1(e,t){switch(t.type){case"SET_VALUES":return tU({},e,{values:t.payload});case"SET_TOUCHED":return tU({},e,{touched:t.payload});case"SET_ERRORS":if(l()(e.errors,t.payload))return e;return tU({},e,{errors:t.payload});case"SET_STATUS":return tU({},e,{status:t.payload});case"SET_ISSUBMITTING":return tU({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return tU({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return tU({},e,{values:tQ(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return tU({},e,{touched:tQ(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return tU({},e,{errors:tQ(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return tU({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return tU({},e,{touched:function e(t,n,r,i){void 0===r&&(r=new WeakMap),void 0===i&&(i={});for(var o=0,a=Object.keys(t);o=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var o,a=o;tJ(t,a.path)||(t=tQ(t,a.path,a.message))}}return t}(n)):t(n)})})},[m.validationSchema]),O=(0,a.useCallback)(function(e,t){return new Promise(function(n){return n(w.current[e].validate(t))})},[]),M=(0,a.useCallback)(function(e){var t=Object.keys(w.current).filter(function(e){return tK(w.current[e].validate)});return Promise.all(t.length>0?t.map(function(t){return O(t,tJ(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")]).then(function(e){return e.reduce(function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=tQ(e,t[r],n)),e},{})})},[O]),T=(0,a.useCallback)(function(e){return Promise.all([M(e),m.validationSchema?C(e):{},m.validate?_(e):{}]).then(function(e){var t=e[0],n=e[1],r=e[2];return p.all([t,n,r],{arrayMerge:t5})})},[m.validate,m.validationSchema,M,_,C]),A=t8(function(e){return void 0===e&&(e=E.values),S({type:"SET_ISVALIDATING",payload:!0}),T(e).then(function(e){return b.current&&(S({type:"SET_ISVALIDATING",payload:!1}),S({type:"SET_ERRORS",payload:e})),e})});(0,a.useEffect)(function(){s&&!0===b.current&&l()(v.current,m.initialValues)&&A(v.current)},[s,A]);var P=(0,a.useCallback)(function(e){var t=e&&e.values?e.values:v.current,n=e&&e.errors?e.errors:g.current?g.current:m.initialErrors||{},r=e&&e.touched?e.touched:y.current?y.current:m.initialTouched||{},i=e&&e.status?e.status:x.current?x.current:m.initialStatus;v.current=t,g.current=n,y.current=r,x.current=i;var o=function(){S({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(m.onReset){var a=m.onReset(E.values,X);tX(a)?a.then(o):o()}else o()},[m.initialErrors,m.initialStatus,m.initialTouched]);(0,a.useEffect)(function(){!0===b.current&&!l()(v.current,m.initialValues)&&(d&&(v.current=m.initialValues,P()),s&&A(v.current))},[d,m.initialValues,P,s,A]),(0,a.useEffect)(function(){d&&!0===b.current&&!l()(g.current,m.initialErrors)&&(g.current=m.initialErrors||t2,S({type:"SET_ERRORS",payload:m.initialErrors||t2}))},[d,m.initialErrors]),(0,a.useEffect)(function(){d&&!0===b.current&&!l()(y.current,m.initialTouched)&&(y.current=m.initialTouched||t4,S({type:"SET_TOUCHED",payload:m.initialTouched||t4}))},[d,m.initialTouched]),(0,a.useEffect)(function(){d&&!0===b.current&&!l()(x.current,m.initialStatus)&&(x.current=m.initialStatus,S({type:"SET_STATUS",payload:m.initialStatus}))},[d,m.initialStatus,m.initialTouched]);var N=t8(function(e){if(w.current[e]&&tK(w.current[e].validate)){var t=tJ(E.values,e),n=w.current[e].validate(t);return tX(n)?(S({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),S({type:"SET_ISVALIDATING",payload:!1})})):(S({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return m.validationSchema?(S({type:"SET_ISVALIDATING",payload:!0}),C(E.values,e).then(function(e){return e}).then(function(t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),S({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),R=(0,a.useCallback)(function(e,t){var n=t.validate;w.current[e]={validate:n}},[]),D=(0,a.useCallback)(function(e){delete w.current[e]},[]),L=t8(function(e,t){return S({type:"SET_TOUCHED",payload:e}),(void 0===t?i:t)?A(E.values):Promise.resolve()}),F=(0,a.useCallback)(function(e){S({type:"SET_ERRORS",payload:e})},[]),z=t8(function(e,t){var r=tK(e)?e(E.values):e;return S({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?A(r):Promise.resolve()}),V=(0,a.useCallback)(function(e,t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),Z=t8(function(e,t,r){return S({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?A(tQ(E.values,e,t)):Promise.resolve()}),I=(0,a.useCallback)(function(e,t){var n,r=t,i=e;if(!tG(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,a=o.type,s=o.name,l=o.id,u=o.value,c=o.checked,d=(o.outerHTML,o.options),f=o.multiple;r=t||s||l,i=/number|range/.test(a)?isNaN(n=parseFloat(u))?"":n:/checkbox/.test(a)?function(e,t,n){if("boolean"==typeof e)return!!t;var r=[],i=!1,o=-1;if(Array.isArray(e))r=e,i=(o=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return!!t;return t&&n&&!i?r.concat(n):i?r.slice(0,o).concat(r.slice(o+1)):r}(tJ(E.values,r),c,u):d&&f?Array.from(d).filter(function(e){return e.selected}).map(function(e){return e.value}):u}r&&Z(r,i)},[Z,E.values]),B=t8(function(e){if(tG(e))return function(t){return I(t,e)};I(e)}),H=t8(function(e,t,n){return void 0===t&&(t=!0),S({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?i:n)?A(E.values):Promise.resolve()}),U=(0,a.useCallback)(function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,i=n.id;n.outerHTML,H(t||r||i,!0)},[H]),W=t8(function(e){if(tG(e))return function(t){return U(t,e)};U(e)}),q=(0,a.useCallback)(function(e){tK(e)?S({type:"SET_FORMIK_STATE",payload:e}):S({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),$=(0,a.useCallback)(function(e){S({type:"SET_STATUS",payload:e})},[]),K=(0,a.useCallback)(function(e){S({type:"SET_ISSUBMITTING",payload:e})},[]),Y=t8(function(){return S({type:"SUBMIT_ATTEMPT"}),A().then(function(e){var t,n=e instanceof Error;if(!n&&0===Object.keys(e).length){try{if(t=J(),void 0===t)return}catch(e){throw e}return Promise.resolve(t).then(function(e){return b.current&&S({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(b.current)throw S({type:"SUBMIT_FAILURE"}),e})}if(b.current&&(S({type:"SUBMIT_FAILURE"}),n))throw e})}),G=t8(function(e){e&&e.preventDefault&&tK(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&tK(e.stopPropagation)&&e.stopPropagation(),Y().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),X={resetForm:P,validateForm:A,validateField:N,setErrors:F,setFieldError:V,setFieldTouched:H,setFieldValue:Z,setStatus:$,setSubmitting:K,setTouched:L,setValues:z,setFormikState:q,submitForm:Y},J=t8(function(){return f(E.values,X)}),Q=t8(function(e){e&&e.preventDefault&&tK(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&tK(e.stopPropagation)&&e.stopPropagation(),P()}),ee=(0,a.useCallback)(function(e){return{value:tJ(E.values,e),error:tJ(E.errors,e),touched:!!tJ(E.touched,e),initialValue:tJ(v.current,e),initialTouched:!!tJ(y.current,e),initialError:tJ(g.current,e)}},[E.errors,E.touched,E.values]),et=(0,a.useCallback)(function(e){return{setValue:function(t,n){return Z(e,t,n)},setTouched:function(t,n){return H(e,t,n)},setError:function(t){return V(e,t)}}},[Z,H,V]),en=(0,a.useCallback)(function(e){var t=tY(e),n=t?e.name:e,r=tJ(E.values,n),i={name:n,value:r,onChange:B,onBlur:W};if(t){var o=e.type,a=e.value,s=e.as,l=e.multiple;"checkbox"===o?void 0===a?i.checked=!!r:(i.checked=!!(Array.isArray(r)&&~r.indexOf(a)),i.value=a):"radio"===o?(i.checked=r===a,i.value=a):"select"===s&&l&&(i.value=i.value||[],i.multiple=!0)}return i},[W,B,E.values]),er=(0,a.useMemo)(function(){return!l()(v.current,E.values)},[v.current,E.values]),ei=(0,a.useMemo)(function(){return void 0!==u?er?E.errors&&0===Object.keys(E.errors).length:!1!==u&&tK(u)?u(m):u:E.errors&&0===Object.keys(E.errors).length},[u,er,E.errors,m]);return tU({},E,{initialValues:v.current,initialErrors:g.current,initialTouched:y.current,initialStatus:x.current,handleBlur:W,handleChange:B,handleReset:Q,handleSubmit:G,resetForm:P,setErrors:F,setFormikState:q,setFieldTouched:H,setFieldValue:Z,setFieldError:V,setStatus:$,setSubmitting:K,setTouched:L,setValues:z,submitForm:Y,validateForm:A,validateField:N,isValid:ei,dirty:er,unregisterField:D,registerField:R,getFieldProps:en,getFieldMeta:ee,getFieldHelpers:et,validateOnBlur:i,validateOnChange:n,validateOnMount:s})}function t5(e,t,n){var r=e.slice();return t.forEach(function(t,i){if(void 0===r[i]){var o=!1!==n.clone&&n.isMergeableObject(t);r[i]=o?p(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[i]=p(e[i],t,n):-1===e.indexOf(t)&&r.push(t)}),r}var t6="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;function t8(e){var t=(0,a.useRef)(e);return t6(function(){t.current=e}),(0,a.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;re?t:e},0);return Array.from(tU({},e,{length:t+1}))};(function(e){function t(t){var n;return(n=e.call(this,t)||this).updateArrayField=function(e,t,r){var i=n.props,o=i.name;(0,i.formik.setFormikState)(function(n){var i="function"==typeof r?r:e,a="function"==typeof t?t:e,s=tQ(n.values,o,e(tJ(n.values,o))),l=r?i(tJ(n.errors,o)):void 0,u=t?a(tJ(n.touched,o)):void 0;return t$(l)&&(l=void 0),t$(u)&&(u=void 0),tU({},n,{values:s,errors:r?tQ(n.errors,o,l):n.errors,touched:t?tQ(n.touched,o,u):n.touched})})},n.push=function(e){return n.updateArrayField(function(t){return[].concat(nn(t),[tO(e,5)])},!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField(function(n){return t9(n,e,t)},!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField(function(n){return t7(n,e,t)},!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField(function(n){return ne(n,e,t)},function(t){return ne(t,e,null)},function(t){return ne(t,e,null)})},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField(function(n){return nt(n,e,t)},!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField(function(n){var r=n?[e].concat(n):[e];return t<0&&(t=r.length),r},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n}),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(tq(n)),n.pop=n.pop.bind(tq(n)),n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e;var n=t.prototype;return n.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!l()(tJ(e.formik.values,e.name),tJ(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(e){var t;return this.updateArrayField(function(n){var r=n?nn(n):[];return t||(t=r[e]),tK(r.splice)&&r.splice(e,1),r},!0,!0),t},n.pop=function(){var e;return this.updateArrayField(function(t){return e||(e=t&&t.pop&&t.pop()),t},!0,!0),e},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,r=t.render,i=t.children,o=t.name,s=tW(t.formik,["validate","validationSchema"]),l=tU({},e,{form:s,name:o});return n?(0,a.createElement)(n,l):r?r(l):i?"function"==typeof i?i(l):0===a.Children.count(i)?null:a.Children.only(i):null},t})(a.Component).defaultProps={validateOnChange:!0}},73463:function(e,t,n){"use strict";var r=n(73887),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),v=0;v */t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,c=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:(h?-1:1)*(1/0);a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,f=23===i?5960464477539062e-23:0,h=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[n+h]=255&a,h+=p,a/=256,u-=8);e[n+h-p]|=128*m}},39515:function(e,t,n){var r=n(38761)(n(37772),"DataView");e.exports=r},89612:function(e,t,n){var r=n(52118),i=n(96909),o=n(98138),a=n(4174),s=n(7942);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1}},34893:function(e){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r=200&&(d=l,f=!1,t=new r(t));t:for(;++c0&&o(c)?n>1?e(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},15308:function(e,t,n){var r=n(55463)();e.exports=r},26548:function(e,t,n){var r=n(15308),i=n(90249);e.exports=function(e,t){return e&&r(e,t,i)}},13324:function(e,t,n){var r=n(17297),i=n(33812);e.exports=function(e,t){t=r(t,e);for(var n=0,o=t.length;null!=e&&n=120&&g.length>=120)?new r(h&&g):void 0}g=e[0];var y=-1,x=p[0];t:for(;++yi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r=200){var m=t?null:s(e);if(m)return l(m);f=!1,c=a,p=new r}else p=t?[]:h;t:for(;++u=i?e:r(e,t,n)}},79882:function(e,t,n){var r=n(79162);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},92175:function(e,t,n){e=n.nmd(e);var r=n(37772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},34727:function(e,t,n){var r=n(79882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},96058:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},70169:function(e,t,n){var r=n(50857),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},6190:function(e,t,n){var r=n(79882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},27520:function(e,t,n){var r=n(4795);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e==e,a=r(e),s=void 0!==t,l=null===t,u=t==t,c=r(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||i&&s&&u||!n&&u||!o)return 1;if(!i&&!a&&!c&&e=l)return u;return u*("desc"==n[i]?-1:1)}}return e.index-t.index}},51522:function(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++rc))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,v=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p-1&&e%1==0&&e-1}},94769:function(e,t,n){var r=n(22218);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},92411:function(e,t,n){var r=n(89612),i=n(80235),o=n(10326);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},36417:function(e,t,n){var r=n(27937);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},86928:function(e,t,n){var r=n(27937);e.exports=function(e){return r(this,e).get(e)}},79493:function(e,t,n){var r=n(27937);e.exports=function(e){return r(this,e).has(e)}},24150:function(e,t,n){var r=n(27937);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},75179:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},73477:function(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},77777:function(e,t,n){var r=n(30733);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},99191:function(e,t,n){var r=n(38761)(Object,"create");e.exports=r},54248:function(e,t,n){var r=n(60241)(Object.keys,Object);e.exports=r},62966:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},4146:function(e,t,n){e=n.nmd(e);var r=n(51242),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},37157:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},60241:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},43114:function(e,t,n){var r=n(49432),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},15243:function(e,t,n){var r=n(80235);e.exports=function(){this.__data__=new r,this.size=0}},72858:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},4417:function(e){e.exports=function(e){return this.__data__.get(e)}},8605:function(e){e.exports=function(e){return this.__data__.has(e)}},71418:function(e,t,n){var r=n(80235),i=n(10326),o=n(96738);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},66024:function(e){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r=t||n<0||v&&r>=c}function b(){var e,n,r,o=i();if(x(o))return w(o);f=setTimeout(b,(e=o-h,n=o-p,r=t-e,v?s(r,c-n):r))}function w(e){return(f=void 0,g&&l)?y(e):(l=u=void 0,d)}function j(){var e,n=i(),r=x(n);if(l=arguments,u=this,h=n,r){if(void 0===f)return p=e=h,f=setTimeout(b,t),m?y(e):d;if(v)return clearTimeout(f),f=setTimeout(b,t),y(h)}return void 0===f&&(f=setTimeout(b,t)),d}return t=o(t)||0,r(n)&&(m=!!n.leading,c=(v="maxWait"in n)?a(o(n.maxWait)||0,t):c,g="trailing"in n?!!n.trailing:g),j.cancel=function(){void 0!==f&&clearTimeout(f),p=0,l=h=u=f=void 0},j.flush=function(){return void 0===f?d:w(i())},j}},97329:function(e,t,n){var r=n(61655),i=n(66188),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,r).replace(a,"")}},17335:function(e,t,n){var r=n(85246),i=n(62034),o=n(36060),a=n(93746),s=o(function(e,t){return a(e)?r(e,i(t,1,a,!0)):[]});e.exports=s},45861:function(e,t,n){e.exports=n(28460)},41225:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},35676:function(e,t,n){var r=n(62034);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},72579:function(e,t,n){var r=n(13324);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},3440:function(e,t,n){var r=n(13940),i=n(36740),o=Object.prototype.hasOwnProperty,a=i(function(e,t,n){o.call(e,n)?e[n].push(t):r(e,n,[t])});e.exports=a},93352:function(e,t,n){var r=n(32726),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,r)}},95041:function(e,t,n){var r=n(20187),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,r)}},23059:function(e){e.exports=function(e){return e}},30898:function(e,t,n){var r=n(50343),i=n(88390),o=n(36060),a=n(5642),s=o(function(e){var t=r(e,a);return t.length&&t[0]===e[0]?i(t):[]});e.exports=s},79631:function(e,t,n){var r=n(15183),i=n(15125),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},86152:function(e){var t=Array.isArray;e.exports=t},67878:function(e,t,n){var r=n(61049),i=n(61158);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},93746:function(e,t,n){var r=n(67878),i=n(15125);e.exports=function(e){return i(e)&&r(e)}},73226:function(e,t,n){e=n.nmd(e);var r=n(37772),i=n(36330),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=s?s.isBuffer:void 0;e.exports=l||i},18149:function(e,t,n){var r=n(88746);e.exports=function(e,t){return r(e,t)}},61049:function(e,t,n){var r=n(53366),i=n(29259);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},61158:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},4714:function(e,t,n){var r=n(74511),i=n(47826),o=n(4146),a=o&&o.isMap,s=a?i(a):r;e.exports=s},29259:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},15125:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},97030:function(e,t,n){var r=n(53366),i=n(47353),o=n(15125),a=Object.prototype,s=Function.prototype.toString,l=a.hasOwnProperty,u=s.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==u}},43679:function(e,t,n){var r=n(8109),i=n(47826),o=n(4146),a=o&&o.isSet,s=a?i(a):r;e.exports=s},4795:function(e,t,n){var r=n(53366),i=n(15125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},77598:function(e,t,n){var r=n(35522),i=n(47826),o=n(4146),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},90249:function(e,t,n){var r=n(1634),i=n(86411),o=n(67878);e.exports=function(e){return o(e)?r(e):i(e)}},18582:function(e,t,n){var r=n(1634),i=n(18390),o=n(67878);e.exports=function(e){return o(e)?r(e,!0):i(e)}},56974:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},19950:function(e,t,n){var r=n(13940),i=n(26548),o=n(68286);e.exports=function(e,t){var n={};return t=o(t,3),i(e,function(e,i,o){r(n,t(e,i,o),e)}),n}},34519:function(e,t,n){var r=n(13940),i=n(26548),o=n(68286);e.exports=function(e,t){var n={};return t=o(t,3),i(e,function(e,i,o){r(n,i,t(e,i,o))}),n}},30733:function(e,t,n){var r=n(96738);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},98537:function(e,t,n){var r=n(84565),i=n(97263)(function(e,t,n){r(e,t,n)});e.exports=i},65680:function(e,t,n){var r=n(2229),i=n(17606),o=n(23059);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},34291:function(e){e.exports=function(){}},61100:function(e,t,n){var r=n(37772);e.exports=function(){return r.Date.now()}},17620:function(e,t,n){var r=n(50343),i=n(18874),o=n(29078),a=n(17297),s=n(752),l=n(48642),u=n(29097),c=n(76939),d=u(function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,function(t){return t=a(t,e),u||(u=t.length>1),t}),s(e,c(e),n),u&&(n=i(n,7,l));for(var d=t.length;d--;)o(n,t[d]);return n});e.exports=d},65798:function(e,t,n){var r=n(20256),i=n(82952),o=n(21401),a=n(33812);e.exports=function(e){return o(e)?r(a(e)):i(e)}},57370:function(e,t,n){var r=n(34311)(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});e.exports=r},829:function(e,t,n){var r=n(62034),i=n(23813),o=n(36060),a=n(82406),s=o(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])});e.exports=s},30981:function(e){e.exports=function(){return[]}},36330:function(e){e.exports=function(){return!1}},12436:function(e,t,n){var r=n(54073),i=n(29259);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},61258:function(e,t,n){var r=n(36473),i=n(89419),o=n(38101),a=Math.min;e.exports=function(e,t){if((e=o(e))<1||e>9007199254740991)return[];var n=4294967295,s=a(e,4294967295);t=i(t),e-=4294967295;for(var l=r(s,t);++n"+t.value+""+i[o].show+""+e.value+"",type:10}):r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+""+e.value+"",type:1})):2===i[o].type||9===i[o].type?(e=r.pop(),t=r.pop(),r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+i[o].show+(1!=e.type?"(":"")+e.value+(1!=e.type?")":""),type:i[o].type})):12===i[o].type&&(e=r.pop(),t=r.pop(),n=r.pop(),r.push({value:i[o].show+"("+n.value+","+t.value+","+e.value+")",type:12}));return r[0].value},e.exports=r},66655:function(e,t,n){"use strict";var r=n(72346);function i(e,t){for(var n=0;np.length-2?p.length-1:e.length-l;n>0;n--)if(void 0!==p[n])for(i=0;i0&&En)s.push(e);else{for(;n>=i&&!c||c&&i1)throw new r.Exception("Uncaught Syntax error");return o[0].value>1e15?"Infinity":parseFloat(o[0].value.toFixed(15))},r.eval=function(e,t,n){return void 0===t?this.lex(e).toPostfix().postfixEval():void 0!==n?this.lex(e,t).toPostfix().postfixEval(n):void 0!==t.length?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t)},e.exports=r},38617:function(e,t,n){"use strict";n.d(t,{F:function(){return u},f:function(){return c}});var r=n(2784);let i=["light","dark"],o="(prefers-color-scheme: dark)",a="undefined"==typeof window,s=(0,r.createContext)(void 0),l={setTheme:e=>{},themes:[]},u=()=>{var e;return null!==(e=(0,r.useContext)(s))&&void 0!==e?e:l},c=e=>(0,r.useContext)(s)?r.createElement(r.Fragment,null,e.children):r.createElement(f,e),d=["light","dark"],f=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:a=!0,storageKey:l="theme",themes:u=d,defaultTheme:c=n?"system":"light",attribute:f="data-theme",value:g,children:y,nonce:x})=>{let[b,w]=(0,r.useState)(()=>p(l,c)),[j,k]=(0,r.useState)(()=>p(l)),E=g?Object.values(g):u,S=(0,r.useCallback)(e=>{let r=e;if(!r)return;"system"===e&&n&&(r=v());let o=g?g[r]:r,s=t?m():null,l=document.documentElement;if("class"===f?(l.classList.remove(...E),o&&l.classList.add(o)):o?l.setAttribute(f,o):l.removeAttribute(f),a){let e=i.includes(c)?c:null,t=i.includes(r)?r:e;l.style.colorScheme=t}null==s||s()},[]),_=(0,r.useCallback)(e=>{w(e);try{localStorage.setItem(l,e)}catch(e){}},[e]),C=(0,r.useCallback)(t=>{let r=v(t);k(r),"system"===b&&n&&!e&&S("system")},[b,e]);(0,r.useEffect)(()=>{let e=window.matchMedia(o);return e.addListener(C),C(e),()=>e.removeListener(C)},[C]),(0,r.useEffect)(()=>{let e=e=>{e.key===l&&_(e.newValue||c)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[_]),(0,r.useEffect)(()=>{S(null!=e?e:b)},[e,b]);let O=(0,r.useMemo)(()=>({theme:b,setTheme:_,forcedTheme:e,resolvedTheme:"system"===b?j:b,themes:n?[...u,"system"]:u,systemTheme:n?j:void 0}),[b,_,e,j,n,u]);return r.createElement(s.Provider,{value:O},r.createElement(h,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:a,storageKey:l,themes:u,defaultTheme:c,attribute:f,value:g,children:y,attrs:E,nonce:x}),y)},h=(0,r.memo)(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:a,enableColorScheme:s,defaultTheme:l,value:u,attrs:c,nonce:d})=>{let f="system"===l,h="class"===n?`var d=document.documentElement,c=d.classList;c.remove(${c.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=s?i.includes(l)&&l?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${l}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(e,t=!1,r=!0)=>{let o=u?u[e]:e,a=t?e+"|| ''":`'${o}'`,l="";return s&&r&&!t&&i.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===n?l+=t||o?`c.add(${a})`:"null":o&&(l+=`d[s](n,${a})`),l},v=e?`!function(){${h}${m(e)}}()`:a?`!function(){try{${h}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${f})){var t='${o}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}${f?"":"else{"+m(l,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${h}var e=localStorage.getItem('${t}');if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}else{${m(l,!1,!1)};}${p}}catch(t){}}();`;return r.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:v}})},()=>!0),p=(e,t)=>{let n;if(!a){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},m=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},v=e=>(e||(e=window.matchMedia(o)),e.matches?"dark":"light")},86570:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(73221)}])},4941:function(e,t,n){"use strict";n.d(t,{Ul:function(){return s},WD:function(){return l},fu:function(){return c},o4:function(){return u}});var r=n(52322),i=n(35701),o=n(82851),a=n(99182);function s(e){let{currentPage:t,parentPage:n,commandPage:s,className:l,...u}=e,c=(0,a.U8)(e=>e.search);if((null==n?void 0:n.namespace)===(null==t?void 0:t.namespace)&&!c)return(0,r.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",l),value:"".concat(null==s?void 0:s.label," ").concat(u.children.toString()),...u})}function l(e){let{currentPage:t,commandPage:n,className:s,...l}=e,u=(0,a.U8)(e=>e.search),c=n.namespace.startsWith((null==t?void 0:t.namespace)||"");if(u&&c||n.namespace===(null==t?void 0:t.namespace))return(0,r.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",s),value:"".concat(n.label," ").concat(l.children.toString()),...l})}function u(e){let{currentPage:t,commandPage:n,className:s,...l}=e,u=(0,a.U8)(e=>e.search),c=n.namespace.startsWith((null==t?void 0:t.namespace)||"");if(u&&c||!t||n.namespace===(null==t?void 0:t.namespace))return(0,r.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",s),value:"".concat(n.label," ").concat(l.children.toString()),...l})}function c(e){let{heading:t,currentPage:n,commandPage:o,...s}=e,l=(0,a.U8)(e=>e.search);return(0,r.jsx)(a.mY.Group,{heading:l&&(null==n?void 0:n.namespace)!==o.namespace&&(0,r.jsx)(i.__J,{className:"px-1",size:"12",children:o.label}),...s})}n(2784)},82459:function(e,t,n){"use strict";n.d(t,{F:function(){return g}});var r=n(52322),i=n(35701),o=n(88242),a=n(9969),s=n(71930),l=n(5632),u=n(26592),c=n(19513),d=n(33571),f=n(98358),h=n(31781),p=n(24801),m=n(86811),v=n(2784);function g(e){var t,n;let{id:g,address:y,publicKey:x,contentProps:b,buttonProps:w}=e,j=(0,l.useRouter)(),{setFilter:k,resetFilters:E}=(0,c.l)(),{setFilter:S,resetFilters:_}=(0,u.G)(),C=(0,a.uf)(),O=(0,a.s2)(),M=(0,f.l)(),T=(0,d.I)(),A=function(){let{openConfirmDialog:e}=(0,m.Rh)(),t=(0,a.IK)();return(0,v.useCallback)(n=>e({title:"Delete contract",action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Jrl,{}),"Delete"]}),variant:"red",body:(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)(i.nvN,{size:"14",children:"Are you sure you would like to delete the following contract:"}),(0,r.jsxs)(i.nvN,{size:"14",font:"mono",children:[n.slice(0,20),"..."]})]}),onConfirm:async()=>{let e=await t.delete({params:{id:n}});e.error&&(0,i.OHV)("Error deleting contract."),(0,i.OPV)("Successfully deleted contract.")}}),[e,t])}();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...w,children:(0,r.jsx)(o.iG7,{})}),contentProps:{align:"start",...b,onClick:e=>{e.stopPropagation()}},children:[(0,r.jsx)("div",{className:"px-1.5 py-1",children:(0,r.jsxs)(i.xvT,{size:"14",weight:"medium",color:"subtle",children:["Contract ",x.slice(0,24),"..."]})}),(0,r.jsx)(i.Juw,{children:"Filters"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{E(),k({id:"addressContains",value:y,label:"Address contains ".concat(y)}),j.push(s._.hosts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter hosts by host address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{_(),S((0,h.e)(y)),j.push(s._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter contracts by host address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{_(),S((0,p.V)(x)),j.push(s._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter contracts by host public key"]}),(0,r.jsx)(i.Juw,{children:"Actions"}),(null===(t=C.data)||void 0===t?void 0:t.find(e=>e===y))?(0,r.jsxs)(i.Xiv,{onSelect:()=>M([],[y]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Remove host address from blocklist"]}):(0,r.jsxs)(i.Xiv,{onSelect:()=>M([y],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Add host address to blocklist"]}),(null===(n=O.data)||void 0===n?void 0:n.find(e=>e===x))?(0,r.jsxs)(i.Xiv,{onSelect:()=>T([],[x]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Remove host public key from allowlist"]}):(0,r.jsxs)(i.Xiv,{onSelect:()=>T([x],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Add host public key to allowlist"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>A(g),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.Jrl,{})}),"Delete contract"]}),(0,r.jsx)(i.Juw,{children:"Copy"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>(0,i.vQq)(g,"contract ID"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.olJ,{})}),"Contract ID"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>(0,i.vQq)(x,"host public key"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.olJ,{})}),"Host public key"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>(0,i.vQq)(y,"host address"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.olJ,{})}),"Host address"]})]})}},93216:function(e,t,n){"use strict";n.d(t,{F:function(){return M}});var r=n(52322),i=n(35701),o=n(4941);let a={namespace:"contracts/filterExpiryDate",label:"Contracts filter by expiry date"},s=[{id:"expiry",value:"day",label:"expires today",fn:e=>{let t=new Date().getTime(),n=t+(0,i.NrH)(1);return e.endTimet}},{id:"expiry",value:"week",label:"expires this week",fn:e=>{let t=new Date().getTime(),n=t+(0,i.BL0)(1);return e.endTimet}},{id:"expiry",value:"month",label:"expires this month",fn:e=>{let t=new Date().getTime(),n=t+(0,i.xLV)(1);return e.endTimet}},{id:"expiry",value:"nextMonth",label:"expires next month",fn:e=>{let t=new Date().getTime(),n=t+(0,i.xLV)(2);return e.endTimet}},{id:"expiry",value:"year",label:"expires this year",fn:e=>{let t=new Date().getTime(),n=t+(0,i.ivg)(1);return e.endTimet}},{id:"expiry",value:"expired",label:"expired",fn:e=>{let t=new Date().getTime();return e.endTime(0,r.jsx)(o.WD,{currentPage:t,commandPage:a,onSelect:()=>{n(e)},children:e.label},e.id+e.value))})}let u={namespace:"contracts/filterFormationDate",label:"Contracts filter by formation date"},c=[{id:"formationDate",value:"day",label:"formed in the last day",fn:e=>{let t=new Date().getTime(),n=t-(0,i.NrH)(1);return e.startTime>=n}},{id:"formationDate",value:"week",label:"formed in the last week",fn:e=>{let t=new Date().getTime(),n=t-(0,i.BL0)(1);return e.startTime>=n}},{id:"formationDate",value:"twoWeeks",label:"formed in the last two weeks",fn:e=>{let t=new Date().getTime(),n=t-(0,i.BL0)(2);return e.startTime>=n}},{id:"formationDate",value:"month",label:"formed in the last month",fn:e=>{let t=new Date().getTime(),n=t-(0,i.xLV)(1);return e.startTime>=n}},{id:"formationDate",value:"twoMonths",label:"formed in the last two months",fn:e=>{let t=new Date().getTime(),n=t-(0,i.xLV)(2);return e.startTime>=n}},{id:"formationDate",value:"year",label:"formed in the last year",fn:e=>{let t=new Date().getTime(),n=t-(0,i.ivg)(1);return e.startTime>=n}}];function d(e){let{currentPage:t,select:n}=e;return(0,r.jsx)(o.fu,{currentPage:t,commandPage:u,children:c.map(e=>(0,r.jsx)(o.WD,{currentPage:t,commandPage:u,onSelect:()=>{n(e)},children:e.label},e.id+e.value))})}let f={namespace:"contracts/filterRenewDate",label:"Contracts filter by renew date"},h=[{id:"renewDate",value:"day",label:"renewed in the last day",fn:e=>{let t=new Date().getTime(),n=t-(0,i.NrH)(1);return e.isRenewed&&e.startTime>=n}},{id:"renewDate",value:"week",label:"renewed in the last week",fn:e=>{let t=new Date().getTime(),n=t-(0,i.BL0)(1);return e.isRenewed&&e.startTime>=n}},{id:"renewDate",value:"twoWeeks",label:"renewed in the last two weeks",fn:e=>{let t=new Date().getTime(),n=t-(0,i.BL0)(2);return e.isRenewed&&e.startTime>=n}},{id:"renewDate",value:"month",label:"renewed in the last month",fn:e=>{let t=new Date().getTime(),n=t-(0,i.xLV)(1);return e.isRenewed&&e.startTime>=n}},{id:"renewDate",value:"twoMonths",label:"renewed in the last two months",fn:e=>{let t=new Date().getTime(),n=t-(0,i.xLV)(2);return e.isRenewed&&e.startTime>=n}},{id:"renewDate",value:"year",label:"renewed in the last year",fn:e=>{let t=new Date().getTime(),n=t-(0,i.ivg)(1);return e.isRenewed&&e.startTime>=n}}];function p(e){let{currentPage:t,select:n}=e;return(0,r.jsx)(o.fu,{currentPage:t,commandPage:f,children:h.map(e=>(0,r.jsx)(o.WD,{currentPage:t,commandPage:f,onSelect:()=>{n(e)},children:e.label},e.id+e.value))})}var m=n(86811),v=n(31781);let g={namespace:"contracts/filterAddress",label:"Contracts filter by address"};function y(e){let{select:t,currentPage:n}=e,{openDialog:i}=(0,m.Rh)(),a=(0,v.e)("");return(0,r.jsx)(o.fu,{currentPage:n,commandPage:g,children:(0,r.jsx)(o.WD,{currentPage:n,commandPage:g,onSelect:()=>{t(),i("contractsFilterAddress")},children:a.label})})}function x(e){let{select:t,currentPage:n,parentPage:i,commandPage:a}=e,{openDialog:s}=(0,m.Rh)();return(0,r.jsx)(o.Ul,{currentPage:n,parentPage:i,commandPage:a,onSelect:()=>{t(),s("contractsFilterAddress")},children:g.label})}var b=n(24801);let w={namespace:"contracts/filterPublicKey",label:"Contracts filter by public key"};function j(e){let{select:t,currentPage:n}=e,i=(0,b.V)(""),{openDialog:a}=(0,m.Rh)();return(0,r.jsx)(o.fu,{currentPage:n,commandPage:w,children:(0,r.jsx)(o.WD,{currentPage:n,commandPage:w,onSelect:()=>{t(),a("contractsFilterPublicKey")},children:i.label})})}function k(e){let{select:t,currentPage:n,parentPage:i,commandPage:a}=e,{openDialog:s}=(0,m.Rh)();return(0,r.jsx)(o.Ul,{currentPage:n,parentPage:i,commandPage:a,onSelect:()=>{t(),s("contractsFilterPublicKey")},children:w.label})}function E(e){let{currentPage:t,select:n}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(y,{currentPage:t,select:n}),(0,r.jsx)(j,{currentPage:t,select:n}),(0,r.jsx)(l,{currentPage:t,select:n}),(0,r.jsx)(d,{currentPage:t,select:n}),(0,r.jsx)(p,{currentPage:t,select:n})]})}let S={namespace:"contracts",label:"Contracts"};function _(e){let{currentPage:t,parentPage:n,pushPage:i,select:s}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x,{currentPage:t,parentPage:n,commandPage:S,select:s}),(0,r.jsx)(k,{currentPage:t,parentPage:n,commandPage:S,select:s}),(0,r.jsx)(o.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{i(u)},children:u.label}),(0,r.jsx)(o.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{i(a)},children:a.label}),(0,r.jsx)(o.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{i(f)},children:f.label})]})}var C=n(26592),O=n(2784);function M(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,{setFilter:s}=(0,C.G)(),l=(0,O.useCallback)(e=>{o&&o(),e&&s(e),a&&a()},[s,o,a]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(_,{parentPage:n,currentPage:t,pushPage:i,select:l}),(0,r.jsx)(E,{currentPage:t,select:l})]})}},31781:function(e,t,n){"use strict";n.d(t,{e:function(){return u},p:function(){return f}});var r=n(52322),i=n(35701),o=n(26592),a=n(9156),s=n(24511),l=n(86811);function u(e){return{id:"addressContains",value:e,label:"address contains ".concat(e),fn:t=>t.hostIp.includes(e)}}let c={address:""},d=s.Ry().shape({address:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,o.G)(),p=(0,a.TA)({initialValues:c,validationSchema:d,onSubmit:e=>{h(u(e.address)),p.resetForm(),f()}});return(0,r.jsx)(i.VqE,{trigger:t,title:"Filter by address",open:n,onOpenChange:e=>{e||p.resetForm(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Address",name:"address",placeholder:"Partial match against domain or IP",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},24801:function(e,t,n){"use strict";n.d(t,{C:function(){return f},V:function(){return u}});var r=n(52322),i=n(35701),o=n(26592),a=n(9156),s=n(24511),l=n(86811);function u(e){return{id:"publicKeyContains",value:e,label:"public key contains ".concat((0,i.$Gg)(e,20)),fn:t=>t.hostKey.includes(e)}}let c={publicKey:""},d=s.Ry().shape({publicKey:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,o.G)(),p=(0,a.TA)({initialValues:c,validationSchema:d,onSubmit:e=>{h(u(e.publicKey)),p.resetForm(),f()}});return(0,r.jsx)(i.VqE,{trigger:t,title:"Filter by public key",open:n,onOpenChange:e=>{e||p.resetForm(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Public key",name:"publicKey",placeholder:"ed25519:02aabd26e627fd...",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},4370:function(e,t,n){"use strict";n.d(t,{F:function(){return o}});var r=n(26592),i=n(34658);function o(){var e;let t=(0,i.w)(),{datasetCount:n,isLoading:o}=(0,r.G)(),a=t.data&&!o&&n{e.stopPropagation()}},children:[(0,r.jsx)("div",{className:"px-1.5 py-1",children:(0,r.jsxs)(i.xvT,{size:"14",weight:"medium",color:"subtle",children:["Host ",g.slice(0,24),"..."]})}),(0,r.jsx)(i.Juw,{children:"Filters"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{j(),w({id:"addressContains",value:v,label:"Address contains ".concat((0,i.$Gg)(v,20))}),b.push(s._.hosts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter hosts by address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{j(),w((0,m.K)(g)),b.push(s._.hosts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter hosts by public key"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{E(),k((0,h.e)(v)),b.push(s._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter contracts by host address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{E(),k((0,p.V)(g)),b.push(s._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter contracts by host public key"]}),(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>M.post({payload:{hostKey:g,hostIP:v,timeout:(0,i.XBW)(30)}}),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o._Eq,{})}),"Rescan host"]}),(null===(t=S.data)||void 0===t?void 0:t.find(e=>e===v))?(0,r.jsxs)(i.Xiv,{onSelect:()=>C([],[v]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Remove address from blocklist"]}):(0,r.jsxs)(i.Xiv,{onSelect:()=>C([v],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Add address to blocklist"]}),(null===(n=_.data)||void 0===n?void 0:n.find(e=>e===g))?(0,r.jsxs)(i.Xiv,{onSelect:()=>O([],[g]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Remove public key from allowlist"]}):(0,r.jsxs)(i.Xiv,{onSelect:()=>O([g],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Add public key to allowlist"]}),(0,r.jsx)(i.Juw,{children:"Copy"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>(0,i.vQq)(g,"host public key"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.olJ,{})}),"Host public key"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>(0,i.vQq)(v,"host address"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.olJ,{})}),"Host address"]})]})}},34444:function(e,t,n){"use strict";n.d(t,{T:function(){return j},N:function(){return w}});var r=n(52322),i=n(2784),o=n(35701),a=n(25205),s=n(6391),l=n.n(s);function u(e){let{host:t,rates:n}=e,r=n?"$".concat(new(l())(t.settings.storageprice).times((0,a.xf)(1)).times((0,a.S5)(1)).div(1e24).times((null==n?void 0:n.usd)||1).toFixed(2),"/TB"):"".concat((0,a.Vz)(new(l())(t.settings.storageprice).times((0,a.xf)(1)).times((0,a.S5)(1)),{fixed:0}),"/TB"),i="".concat((0,a.vW)(t.activeContracts.reduce((e,t)=>e.plus(t.size),new(l())(0)).toNumber())," utilized"),s="".concat((0,a.vW)(t.settings.remainingstorage)," / ").concat((0,a.vW)(t.settings.totalstorage)," available");return"".concat((0,o.HLH)(t.countryCode)," \xb7 ").concat(r," \xb7 ").concat(i," \xb7 ").concat(s)}var c=function(){let[e,t]=(0,i.useState)(null),[n,r]=(0,i.useState)({width:0,height:0}),o=(0,i.useCallback)(()=>{r({width:(null==e?void 0:e.offsetWidth)||0,height:(null==e?void 0:e.offsetHeight)||0})},[null==e?void 0:e.offsetHeight,null==e?void 0:e.offsetWidth]);return d("resize",o),h(()=>{o()},[null==e?void 0:e.offsetHeight,null==e?void 0:e.offsetWidth]),[t,n]},d=function(e,t,n,r){let o=(0,i.useRef)(t);h(()=>{o.current=t},[t]),(0,i.useEffect)(()=>{var t;let i=null!==(t=null==n?void 0:n.current)&&void 0!==t?t:window;if(!(i&&i.addEventListener))return;let a=e=>o.current(e);return i.addEventListener(e,a,r),()=>{i.removeEventListener(e,a,r)}},[e,n,r])};let f="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;var h=f,p=n(95753),m=n(25237),v=n.n(m);let g=v()(()=>Promise.all([n.e(546),n.e(508),n.e(167),n.e(764),n.e(17)]).then(n.bind(n,45017)),{loadableGenerated:{webpack:()=>[45017]},ssr:!1}),y=(0,i.forwardRef)(function(e,t){return(0,r.jsx)(g,{...e,forwardRef:t})});var x=n(10917),b=n(47025);let w={moveToLocation:(e,t)=>null};function j(e){let{activeHost:t,hosts:n,onMount:o,onHostClick:a,onHostHover:s}=e,d=(0,b.BW)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,i.useRef)(null),h=(0,i.useRef)(w),m=(0,i.useCallback)((e,t)=>{var n;e&&(null===(n=f.current)||void 0===n||n.pointOfView({lat:e[0]-8,lng:e[1],altitude:t||1.5},700))},[]);(0,i.useEffect)(()=>{h.current.moveToLocation=m},[m]),(0,p.Q5)(()=>{var e;if(!f.current)return!1;m((null==t?void 0:t.location)||[48.8323,2.4075],1.5);let n=null===(e=f.current)||void 0===e?void 0:e.scene().children.find(e=>"DirectionalLight"===e.type);return n&&(n.intensity=10),!0}),(0,i.useEffect)(()=>{o&&o(h.current)},[]);let[v,{height:g,width:j}]=c(),k=(0,i.useMemo)(()=>n||[],[n]);return(0,r.jsx)("div",{ref:v,className:"w-full h-full",children:(0,r.jsx)(y,{ref:f,width:j,height:g,backgroundColor:"rgba(0,0,0,0)",globeImageUrl:"/_next/static/media/earth-dark-contrast.bf7081fc.png",bumpImageUrl:"/_next/static/media/earth-topology.e385a70e.png",arcsData:[],atmosphereColor:"rgba(0,0,0,0)",atmosphereAltitude:.16,animateIn:!1,arcLabel:e=>{var t;return u({host:e.dst,rates:null===(t=d.data)||void 0===t?void 0:t.rates.sc})},arcStartLat:e=>+e.src.location[0],arcStartLng:e=>+e.src.location[1],arcEndLat:e=>+e.dst.location[0],arcEndLng:e=>+e.dst.location[1],arcDashLength:.75,arcAltitude:0,arcDashGap:.1,arcDashInitialGap:()=>Math.random(),arcDashAnimateTime:5e3,arcColor:e=>t&&(e.dst.publicKey===t.publicKey||e.src.publicKey===t.publicKey)?["rgba(187, 229, 201, 0.25)","rgba(187, 229, 201, 0.25)"]:["rgba(187, 229, 201, 0.10)","rgba(187, 229, 201, 0.10)"],arcsTransitionDuration:0,pointsData:k,pointLat:e=>e.location[0],pointLng:e=>e.location[1],pointLabel:e=>{var t;return u({host:e,rates:null===(t=d.data)||void 0===t?void 0:t.rates.sc})},pointAltitude:e=>(t&&e.publicKey===(null==t?void 0:t.publicKey)||e.activeContractsCount.gt(0),.1),pointsTransitionDuration:0,pointColor:e=>{let{colorHex:n}=(0,x.Kg)(e);return t&&e.publicKey!==(null==t?void 0:t.publicKey)?function(e,t){let n=parseInt(e.slice(1,3),16),r=parseInt(e.slice(3,5),16),i=parseInt(e.slice(5,7),16);return"rgba(".concat(n,", ").concat(r,", ").concat(i,", ").concat(.2,")")}(n,0):n},pointRadius:e=>(e.activeContractsCount.gt(0)&&e.activeContracts.reduce((e,t)=>e.plus(t.size),new(l())(0)).div(1e12).toNumber(),Math.max(e.settings.remainingstorage/1e13/3,.1)),onPointHover:e=>{e&&(null==s||s(e.publicKey,e.location))},onPointClick:e=>{e&&(null==a||a(e.publicKey,e.location))},pointsMerge:!1})})}},18006:function(e,t,n){"use strict";n.d(t,{L:function(){return M}});var r=n(52322),i=n(4941),o=n(86811),a=n(2320);let s={namespace:"hosts/filterAddress",label:"Hosts filter by address"};function l(e){let{select:t,currentPage:n}=e,{openDialog:l}=(0,o.Rh)(),u=(0,a.q)("");return(0,r.jsx)(i.fu,{currentPage:n,commandPage:s,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:s,onSelect:()=>{t(),l("hostsFilterAddress")},children:u.label})})}function u(e){let{select:t,currentPage:n,parentPage:a,commandPage:l}=e,{openDialog:u}=(0,o.Rh)();return(0,r.jsx)(i.Ul,{currentPage:n,parentPage:a,commandPage:l,onSelect:()=>{t(),u("hostsFilterAddress")},children:s.label})}let c={namespace:"hosts/filterAllowBlock",label:"Hosts filter by allow/block status"},d=[{id:"filterMode",value:"allowed",label:"allowed"},{id:"filterMode",value:"blocked",label:"blocked"}];function f(e){let{select:t,currentPage:n}=e;return(0,r.jsx)(i.fu,{currentPage:n,commandPage:c,children:d.map(e=>(0,r.jsx)(i.WD,{currentPage:n,commandPage:c,onSelect:()=>{t(e)},children:e.label},e.id+e.value))})}let h={namespace:"hosts/filterActiveContracts",label:"Hosts filter by contracts"},p={id:"hasActiveContracts",bool:!0,label:"has active contracts"};function m(e){let{select:t,currentPage:n}=e;return(0,r.jsx)(i.fu,{currentPage:n,commandPage:h,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:h,onSelect:()=>{t(p)},children:p.label})})}let v={namespace:"hosts/filterUsable",label:"Hosts filter by usable"},g=[{id:"usabilityMode",value:"usable",label:"usable"},{id:"usabilityMode",value:"unusable",label:"unusable"}];function y(e){let{select:t,currentPage:n}=e;return(0,r.jsx)(i.fu,{currentPage:n,commandPage:v,children:g.map(e=>(0,r.jsx)(i.WD,{currentPage:n,commandPage:v,onSelect:()=>{t(e)},children:e.label},e.id+e.value))})}var x=n(91641),b=n(54155);let w={namespace:"hosts/filterPublicKey",label:"Hosts filter by public key"};function j(e){let{select:t,currentPage:n}=e,{openDialog:a}=(0,o.Rh)(),s=(0,b.K)("");return(0,r.jsx)(i.fu,{currentPage:n,commandPage:w,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:w,onSelect:()=>{t(),a("hostsFilterPublicKey")},children:s.label})})}function k(e){let{select:t,currentPage:n,parentPage:a,commandPage:s}=e,{openDialog:l}=(0,o.Rh)();return(0,r.jsx)(i.Ul,{currentPage:n,parentPage:a,commandPage:s,onSelect:()=>{t(),l("hostsFilterPublicKey")},children:w.label})}function E(e){let{currentPage:t,select:n}=e,{autopilot:i}=(0,x.q)();return(0,r.jsxs)(r.Fragment,{children:["on"===i.status&&(0,r.jsx)(y,{currentPage:t,select:n}),(0,r.jsx)(m,{currentPage:t,select:n}),(0,r.jsx)(l,{currentPage:t,select:n}),(0,r.jsx)(j,{currentPage:t,select:n}),(0,r.jsx)(f,{currentPage:t,select:n})]})}let S={namespace:"hosts",label:"Hosts"};function _(e){let{currentPage:t,parentPage:n,pushPage:o,select:a}=e,{autopilot:s}=(0,x.q)();return(0,r.jsxs)(r.Fragment,{children:["on"===s.status&&(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{o(v)},children:v.label}),(0,r.jsx)(k,{currentPage:t,parentPage:n,commandPage:S,select:a}),(0,r.jsx)(u,{currentPage:t,parentPage:n,commandPage:S,select:a}),(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{o(h)},children:h.label}),(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{o(c)},children:c.label})]})}var C=n(19513),O=n(2784);function M(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,{setFilter:s}=(0,C.l)(),l=(0,O.useCallback)(e=>{o&&o(),e&&s(e),a&&a()},[s,o,a]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(_,{parentPage:n,currentPage:t,pushPage:i,select:l}),(0,r.jsx)(E,{currentPage:t,pushPage:i,select:l})]})}},2320:function(e,t,n){"use strict";n.d(t,{g:function(){return f},q:function(){return u}});var r=n(52322),i=n(35701),o=n(19513),a=n(9156),s=n(24511),l=n(86811);function u(e){return{id:"addressContains",value:e,label:"address contains ".concat(e)}}let c={address:""},d=s.Ry().shape({address:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,o.l)(),p=(0,a.TA)({initialValues:c,validationSchema:d,onSubmit:e=>{h(u(e.address)),p.resetForm(),f()}});return(0,r.jsx)(i.VqE,{trigger:t,title:"Filter by address",open:n,onOpenChange:e=>{e||p.resetForm(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Address",name:"address",placeholder:"Partial match against domain or IP",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},54155:function(e,t,n){"use strict";n.d(t,{K:function(){return u},a:function(){return f}});var r=n(52322),i=n(35701),o=n(19513),a=n(9156),s=n(24511),l=n(86811);function u(e){return{id:"publicKeyEquals",value:e,label:"public key is ".concat((0,i.$Gg)(e,20))}}let c={publicKey:""},d=s.Ry().shape({publicKey:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,o.l)(),p=(0,a.TA)({initialValues:c,validationSchema:d,onSubmit:e=>{h(u(e.publicKey)),p.resetForm(),f()}});return(0,r.jsx)(i.VqE,{trigger:t,title:"Filter by public key",open:n,onOpenChange:e=>{e||p.resetForm(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Public key",name:"publicKey",placeholder:"ed25519:b050c0c6...",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},71930:function(e,t,n){"use strict";n.d(t,{_:function(){return i},h:function(){return o}});var r=n(9969);let i={home:"/",files:{index:"/files"},config:{index:"/config",storage:"/config#storage",pricing:"/config#pricing",hosts:"/config#hosts",wallet:"/config#wallet",contracts:"/config#contracts",uploads:"/config#uploads",redundancy:"/config#redundancy"},contracts:{index:"/contracts"},hosts:{index:"/hosts"},wallet:{view:"/wallet"},node:{index:"/node"},login:"/login"},o=r.HI},91641:function(e,t,n){"use strict";n.d(t,{w:function(){return u},q:function(){return l}});var r=n(52322),i=n(2784),o=n(35701),a=n(9969);let s=(0,i.createContext)({}),l=()=>(0,i.useContext)(s);function u(e){let{children:t}=e,n=function(){let e=function(){let e=(0,a.YX)({config:{swr:{dedupingInterval:(0,o.XBW)(5),revalidateOnFocus:!1,refreshInterval:e=>e?(0,o.XBW)(60):(0,o.XBW)(1)}}}),[t,n]=(0,i.useState)("init");return(0,i.useEffect)(()=>{if(e.isLoading)n("init");else if(e.isValidating)return;else if(e.error)n("off");else if(e.data){let t="object"==typeof e.data;n(t?"on":"off")}},[e]),{status:t,state:e}}();return{autopilot:e}}();return(0,r.jsx)(s.Provider,{value:n,children:t})}},1657:function(e,t,n){"use strict";n.d(t,{iV:function(){return I},ZR:function(){return Z}});var r=n(52322),i=n(2784),o=n(35701),a=n(6391),s=n.n(a),l=n(9969);function u(e){let{isAutopilotEnabled:t,advancedDefaults:n,showAdvanced:i,redundancyMultiplier:a,includeRedundancyMaxStoragePrice:l,includeRedundancyMaxUploadPrice:u,storageAverage:f,uploadAverage:h,downloadAverage:p,contractAverage:m}=e;return{storageTB:{type:"number",category:"storage",title:"Expected storage",description:(0,r.jsx)(r.Fragment,{children:"The amount of storage you would like to rent in TB."}),units:"TB",hidden:!t,validation:t?{required:"required"}:{}},uploadTBMonth:{type:"number",category:"storage",title:"Expected upload",description:(0,r.jsx)(r.Fragment,{children:"The amount of upload bandwidth you plan to use each month in TB."}),units:"TB/month",hidden:!t,validation:t?{required:"required"}:{}},downloadTBMonth:{type:"number",category:"storage",title:"Expected download",description:(0,r.jsx)(r.Fragment,{children:"The amount of download bandwidth you plan to use each month in TB."}),units:"TB/month",hidden:!t,validation:t?{required:"required"}:{}},allowanceMonth:{type:"siacoin",category:"storage",title:"Allowance",description:(0,r.jsx)(r.Fragment,{children:"The amount of Siacoin you would like to spend per month."}),units:"SC/month",decimalsLimitSc:6,hidden:!t||!i,validation:t&&i?{required:"required"}:{}},periodWeeks:{type:"number",category:"storage",title:"Period",description:(0,r.jsx)(r.Fragment,{children:"The length of the storage contracts."}),units:"weeks",suggestion:null==n?void 0:n.periodWeeks,suggestionTip:"Typically ".concat(null==n?void 0:n.periodWeeks," weeks."),hidden:!t||!i,validation:t&&i?{required:"required"}:{}},renewWindowWeeks:{type:"number",category:"storage",title:"Renew window",description:(0,r.jsx)(r.Fragment,{children:"The number of weeks prior to contract expiration that Sia will attempt to renew your contracts."}),units:"weeks",decimalsLimit:6,suggestion:null==n?void 0:n.renewWindowWeeks,suggestionTip:"Typically ".concat(null==n?void 0:n.renewWindowWeeks," weeks."),hidden:!t||!i,validation:t&&i?{required:"required"}:{}},amountHosts:{type:"number",category:"storage",title:"Hosts",description:(0,r.jsx)(r.Fragment,{children:"The number of hosts to create contracts with."}),units:"hosts",decimalsLimit:0,suggestion:null==n?void 0:n.amountHosts,suggestionTip:"Typically ".concat(null==n?void 0:n.amountHosts," hosts."),hidden:!t||!i,validation:t&&i?{required:"required"}:{}},autopilotContractSet:{type:"text",category:"storage",title:"Contract set",description:(0,r.jsx)(r.Fragment,{children:"The contract set that autopilot should use. This should typically be the same as the default contract set."}),placeholder:null==n?void 0:n.autopilotContractSet,suggestion:null==n?void 0:n.autopilotContractSet,suggestionTip:(0,r.jsxs)(r.Fragment,{children:["The default contract set is"," ",(0,r.jsx)(o.EKh,{children:null==n?void 0:n.autopilotContractSet}),"."]}),hidden:!t||!i,validation:t&&i?{required:"required"}:{}},prune:{type:"boolean",category:"storage",title:"Prune sector roots",description:(0,r.jsx)(r.Fragment,{children:"When enabled, autopilot will try to prune deleted sector roots from contracts one contract at a time, for a max duration of 10 minutes per contract. For old hosts this process takes quite a while, while for new hosts it is fast. For new hosts pruning effectively deletes data from the contract, allowing the renter to stop paying for storage they are not using."}),suggestion:null==n?void 0:n.prune,suggestionTip:(0,r.jsxs)(r.Fragment,{children:["The default value is ",(0,r.jsx)(o.EKh,{children:null==n?void 0:n.prune}),"."]}),hidden:!t||!i,validation:{}},allowRedundantIPs:{type:"boolean",category:"hosts",title:"Redundant IPs",description:(0,r.jsx)(r.Fragment,{children:"Whether or not to allow forming contracts with multiple hosts in the same IP subnet. The subnets used are /16 for IPv4, and /64 for IPv6."}),suggestion:null==n?void 0:n.allowRedundantIPs,suggestionTip:"Defaults to ".concat((null==n?void 0:n.allowRedundantIPs)?"on":"off","."),hidden:!t||!i,validation:{}},maxDowntimeHours:{type:"number",category:"hosts",title:"Max downtime",description:(0,r.jsx)(r.Fragment,{children:"The maximum amount of host downtime that autopilot will tolerate in hours."}),units:"hours",suggestion:null==n?void 0:n.maxDowntimeHours,suggestionTip:"Defaults to ".concat(null==n?void 0:n.maxDowntimeHours.toNumber().toLocaleString()," which is ").concat((0,o.y70)(new(s())((0,o.XAn)(null==n?void 0:n.maxDowntimeHours.toNumber())),1)," days."),hidden:!t||!i,validation:t&&i?{required:"required"}:{}},minRecentScanFailures:{type:"number",category:"hosts",title:"Min recent scan failures",description:(0,r.jsx)(r.Fragment,{children:"The minimum number of recent scan failures that autopilot will tolerate."}),units:"scans",decimalsLimit:0,suggestion:null==n?void 0:n.minRecentScanFailures,suggestionTip:"Defaults to ".concat(null==n?void 0:n.minRecentScanFailures.toNumber(),"."),hidden:!t||!i,validation:t&&i?{required:"required"}:{}},defragThreshold:{type:"number",category:"wallet",title:"Defrag threshold",description:(0,r.jsx)(r.Fragment,{children:"The threshold after which autopilot will defrag wallet outputs."}),units:"outputs",suggestion:null==n?void 0:n.defragThreshold,suggestionTip:"Defaults to 1,000.",hidden:!t||!i,validation:t&&i?{required:"required"}:{}},defaultContractSet:{category:"contractset",type:"text",title:"Default contract set",placeholder:null==n?void 0:n.defaultContractSet,suggestion:null==n?void 0:n.defaultContractSet,suggestionTip:(0,r.jsx)(r.Fragment,{children:"Autopilot users will typically want to keep this the same as the autopilot contract set."}),description:(0,r.jsx)(r.Fragment,{children:"The default contract set is where data is uploaded to by default."}),hidden:!i,validation:i?{required:"required"}:{}},uploadPackingEnabled:{category:"uploadpacking",type:"boolean",title:"Upload packing",description:(0,r.jsx)(r.Fragment,{children:"Data on the Sia network is stored in 4MiB sectors. With the default 10 of 30 redundancy scheme, uploaded files are split into 40MiB chunks and encoded into 120MiB slabs. This means that storage is wasted on padding and files smaller than 40MiB still use 120MiB of space. The redundancy scheme can be configured, but unless all files are exactly 4MiB * the redundancy's minimum shards, there will always be wasted storage. Upload packing avoids this waste by buffering files and packing them together before they are uploaded to the network. This trades some performance for storage efficiency. It is also important to note that because buffered files are temporarily stored on disk they must be considered when backing up your renterd data."}),hidden:!i,validation:{}},maxStoragePriceTBMonth:{category:"gouging",type:"siacoin",title:"Max storage price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed price to store 1 TB per month."}),units:"SC/TB/month",average:f,averageTip:c(l,a),after:function(e){let{form:t,fields:n}=e;return(0,r.jsx)(o.ua7,{align:"start",side:"bottom",content:d(l,a),children:(0,r.jsx)("div",{children:(0,r.jsx)(o.QBj,{size:"small",form:t,fields:n,name:"includeRedundancyMaxStoragePrice",group:!1,children:(0,r.jsxs)(o.xvT,{size:"12",weight:"medium",children:["Including ",a.toFixed(1),"x redundancy"]})})})})},decimalsLimitSc:6,validation:{required:"required"}},maxUploadPriceTB:{category:"gouging",type:"siacoin",title:"Max upload price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed price to upload 1 TB."}),units:"SC/TB/month",average:h,averageTip:c(u,a),after:function(e){let{form:t,fields:n}=e;return(0,r.jsx)(o.ua7,{align:"start",side:"bottom",content:d(u,a),children:(0,r.jsx)("div",{children:(0,r.jsx)(o.QBj,{size:"small",form:t,fields:n,name:"includeRedundancyMaxUploadPrice",group:!1,children:(0,r.jsxs)(o.xvT,{size:"12",weight:"medium",children:["Including ",a.toFixed(1),"x redundancy"]})})})})},decimalsLimitSc:6,validation:{required:"required"}},maxDownloadPriceTB:{category:"gouging",type:"siacoin",title:"Max download price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed price to download 1 TB."}),units:"SC/TB/month",average:p,averageTip:"Averages provided by Sia Central.",decimalsLimitSc:6,validation:{required:"required"}},maxContractPrice:{category:"gouging",type:"siacoin",title:"Max contract price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed price to form a contract."}),average:m,decimalsLimitSc:6,tipsDecimalsLimitSc:3,hidden:!i,validation:i?{required:"required"}:{}},maxRpcPriceMillion:{category:"gouging",type:"siacoin",title:"Max RPC price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed base price for RPCs in siacoins per million calls."}),units:"SC/million",decimalsLimitSc:6,hidden:!i,validation:i?{required:"required"}:{}},minMaxCollateral:{category:"gouging",type:"siacoin",title:"Min max collateral",description:(0,r.jsx)(r.Fragment,{children:"The min value for max collateral in the host's price settings."}),decimalsLimitSc:6,hidden:!i,validation:i?{required:"required"}:{}},hostBlockHeightLeeway:{category:"gouging",type:"number",title:"Block height leeway",description:(0,r.jsx)(r.Fragment,{children:"The amount of blocks of leeway given to the host block height in the host's price table."}),units:"blocks",decimalsLimit:0,suggestion:null==n?void 0:n.hostBlockHeightLeeway,suggestionTip:"The recommended value is 6 blocks.",hidden:!i,validation:i?{required:"required",validate:{min:e=>new(s())(e).gte(3)||"must be at least 3 blocks"}}:{}},minPriceTableValidityMinutes:{category:"gouging",type:"number",title:"Min price table validity",units:"minutes",description:(0,r.jsx)(r.Fragment,{children:"The min accepted value for `Validity` in the host's price settings."}),hidden:!i,validation:i?{required:"required",validate:{min:e=>new(s())(e).gte((0,o.GXN)(10))||"must be at least 10 seconds"}}:{}},minAccountExpiryDays:{category:"gouging",type:"number",title:"Min account expiry",units:"days",description:(0,r.jsx)(r.Fragment,{children:"The min accepted value for `AccountExpiry` in the host's price settings."}),hidden:!i,validation:i?{required:"required",validate:{min:e=>new(s())(e).gte((0,o.XAn)(1))||"must be at least 1 hour"}}:{}},minMaxEphemeralAccountBalance:{category:"gouging",type:"siacoin",title:"Min max ephemeral account balance",description:(0,r.jsx)(r.Fragment,{children:"The min accepted value for `MaxEphemeralAccountBalance` in the host's price settings."}),decimalsLimitSc:6,hidden:!i,validation:i?{required:"required",validate:{min:e=>new(s())(e).gte(1)||"must be at least 1 SC"}}:{}},migrationSurchargeMultiplier:{category:"gouging",type:"number",title:"Migration surcharge multiplier",units:"* download price",placeholder:"10",decimalsLimit:1,description:(0,r.jsx)(r.Fragment,{children:"Factor that gets applied on the max download price when trying to download migration-critical sectors from a host that is price gouging. For example, when migrating a low-health file, if the download is failing but would potentially succeed with looser gouging settings, we apply the migration surcharge multiplier to overpay on every sector download if it means saving the file/migration."}),suggestion:new(s())(10),suggestionTip:"The default multiplier is 10x the download price.",hidden:!i,validation:i?{required:"required"}:{}},minShards:{type:"number",category:"redundancy",title:"Min shards",description:(0,r.jsx)(r.Fragment,{children:"The min amount of shards needed to reconstruct a slab."}),suggestion:null==n?void 0:n.minShards,suggestionTip:"Typically ".concat(null==n?void 0:n.minShards," shards."),units:"shards",hidden:!i,validation:i?{required:"required",validate:{min:e=>new(s())(e).gt(0)||"must be greater than 0"}}:{},trigger:["totalShards"]},totalShards:{type:"number",category:"redundancy",title:"Total shards",description:(0,r.jsx)(r.Fragment,{children:"The total amount of shards for each slab."}),suggestion:null==n?void 0:n.totalShards,suggestionTip:"Typically ".concat(null==n?void 0:n.totalShards," shards."),units:"shards",hidden:!i,validation:i?{required:"required",validate:{gteMinShards:(e,t)=>new(s())(e).gte(t.minShards)||"must be at least equal to min shards",max:e=>new(s())(e).lt(256)||"must be less than 256"}}:{}},includeRedundancyMaxStoragePrice:{type:"boolean",title:"Include redundancy",validation:{}},includeRedundancyMaxUploadPrice:{type:"boolean",title:"Include redundancy",validation:{}}}}function c(e,t){return e?"The average price is adjusted for ".concat(t.toFixed(1),"x redundancy. Averages provided by Sia Central."):"The average price is not adjusted for redundancy. Averages provided by Sia Central."}function d(e,t){return e?(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsxs)(o.xvT,{color:"subtle",children:["Specified max price includes the cost of"," ",t.toFixed(1),"x redundancy."]}),(0,r.jsxs)(o.xvT,{color:"subtle",children:["Redundancy is calculated from the ratio of data shards:"," ",(0,r.jsx)(o.EKh,{children:"total shards / min shards"}),"."]})]}):"Specified max price does not include redundancy."}let f={autopilotContractSet:"",amountHosts:void 0,allowanceMonth:void 0,periodWeeks:void 0,renewWindowWeeks:void 0,downloadTBMonth:void 0,uploadTBMonth:void 0,storageTB:void 0,prune:!1,allowRedundantIPs:!1,maxDowntimeHours:void 0,minRecentScanFailures:void 0,defragThreshold:void 0},h={defaultContractSet:""},p={uploadPackingEnabled:!0},m={includeRedundancyMaxStoragePrice:!0,includeRedundancyMaxUploadPrice:!0},v={maxRpcPriceMillion:void 0,maxStoragePriceTBMonth:void 0,maxContractPrice:void 0,maxDownloadPriceTB:void 0,maxUploadPriceTB:void 0,minMaxCollateral:void 0,hostBlockHeightLeeway:void 0,minPriceTableValidityMinutes:void 0,minAccountExpiryDays:void 0,minMaxEphemeralAccountBalance:void 0,migrationSurchargeMultiplier:void 0},g={...f,...h,...p,...v,minShards:void 0,totalShards:void 0,...m};function y(e){return{storageTB:void 0,downloadTBMonth:void 0,uploadTBMonth:void 0,allowanceMonth:void 0,..."Mainnet"===e?{periodWeeks:new(s())(6),renewWindowWeeks:new(s())(2),amountHosts:new(s())(50),autopilotContractSet:"autopilot",allowRedundantIPs:!1,maxDowntimeHours:new(s())(336),minRecentScanFailures:new(s())(10),defragThreshold:new(s())(1e3),prune:!0}:{periodWeeks:new(s())(6),renewWindowWeeks:new(s())(2),amountHosts:new(s())(12),autopilotContractSet:"autopilot",allowRedundantIPs:!1,maxDowntimeHours:new(s())(336),minRecentScanFailures:new(s())(10),defragThreshold:new(s())(1e3),prune:!0}}}let x={...h,defaultContractSet:"autopilot"},b={...m},w={...p},j={...v};var k=n(25205);let E=e=>Object.fromEntries(Object.entries(e).filter(e=>{let[t,n]=e;return void 0!==n&&""!==n}));function S(e,t){let n=e.defaultContractSet||(null==t?void 0:t.default)||x.defaultContractSet;return{...t,default:n}}function _(e){let{autopilot:t,contractSet:n,uploadPacking:r,gouging:i,redundancy:a,display:l}=e,u=l?{includeRedundancyMaxStoragePrice:l.includeRedundancyMaxStoragePrice,includeRedundancyMaxUploadPrice:l.includeRedundancyMaxUploadPrice}:m,c={minShards:new(s())(a.minShards),totalShards:new(s())(a.totalShards)};return{...function(e){if(!e)return f;let t=e.contracts.set,n=(0,k.ll)(T(new(s())(e.contracts.allowance),e.contracts.period),6),r=new(s())(e.contracts.amount),i=new(s())((0,k.x5)(e.contracts.period)),a=new(s())((0,k.x5)(e.contracts.renewWindow)),l=new(s())((0,o.y70)(T((0,k.JW)(e.contracts.download),e.contracts.period),2)),u=new(s())((0,o.y70)(T((0,k.JW)(e.contracts.upload),e.contracts.period),2)),c=(0,k.JW)(new(s())(e.contracts.storage)),d=e.contracts.prune;return{autopilotContractSet:t,allowanceMonth:n,amountHosts:r,periodWeeks:i,renewWindowWeeks:a,downloadTBMonth:l,uploadTBMonth:u,storageTB:c,prune:d,allowRedundantIPs:e.hosts.allowRedundantIPs,maxDowntimeHours:new(s())(e.hosts.maxDowntimeHours),minRecentScanFailures:new(s())(e.hosts.minRecentScanFailures),defragThreshold:new(s())(e.wallet.defragThreshold)}}(t),...n?{defaultContractSet:n.default}:h,uploadPackingEnabled:r.enabled,maxStoragePriceTBMonth:(0,k.ll)(new(s())(i.maxStoragePrice).times((0,k.S5)(1)).times((0,k.xf)(1)).times(O(c.minShards,c.totalShards,u.includeRedundancyMaxStoragePrice)),6),maxUploadPriceTB:(0,k.ll)(new(s())(i.maxUploadPrice).times(O(c.minShards,c.totalShards,u.includeRedundancyMaxUploadPrice)),6),maxDownloadPriceTB:(0,k.ll)(i.maxDownloadPrice,6),maxContractPrice:(0,k.ll)(i.maxContractPrice,6),maxRpcPriceMillion:(0,k.ll)(i.maxRPCPrice,6).times(1e6),minMaxCollateral:(0,k.ll)(i.minMaxCollateral,6),hostBlockHeightLeeway:new(s())(i.hostBlockHeightLeeway),minPriceTableValidityMinutes:new(s())((0,o.AEA)(i.minPriceTableValidity)),minAccountExpiryDays:new(s())((0,o.okB)(i.minAccountExpiry)),minMaxEphemeralAccountBalance:(0,k.ll)(i.minMaxEphemeralAccountBalance,6),migrationSurchargeMultiplier:new(s())(i.migrationSurchargeMultiplier),...c,...u}}function C(e,t){let n=new(s())(1),r=e&&t&&!e.isZero()&&!t.isZero()&&t.gte(e);return r&&(n=t.div(e)),n}function O(e,t,n){let r=C(e,t);return n?r:new(s())(1)}function M(e,t){let n=(0,k.mv)(t.toNumber());return e.times(n).div((0,k.S5)(1))}function T(e,t){let n=e.div(t);return n.times((0,k.S5)(1))}var A=n(95753),P=n(92762),N=n(80489);let R="v0-config-display-options";var D=n(34658),L=n(47025),F=n(91641),z=n(63955);let V=(0,i.createContext)({}),Z=()=>(0,i.useContext)(V);function I(e){let{children:t}=e,n=function(){var e;let{app:t,isAutopilotEnabled:n,autopilot:a,contractSet:c,display:d,gouging:f,redundancy:h,uploadPacking:p,settingUpdate:m,averages:v,showAdvanced:T,setShowAdvanced:V,mode:Z,shouldSyncDefaultContractSet:I,setShouldSyncDefaultContractSet:B,syncDefaultContractSet:H,autopilotUpdate:U,appSettings:W}=function(){var e,t,n,a;let s=(0,F.q)(),u=null===(e=s.autopilot.state.data)||void 0===e?void 0:e.configured,c="on"===s.autopilot.status,d=(0,l.e$)({disabled:!c,standalone:"configFormAutopilot",config:{swr:{errorRetryCount:0,refreshInterval:(0,o.sWj)(1)}}}),f=(0,N.a)({standalone:"configFormContractSet",config:{swr:{errorRetryCount:0,refreshInterval:(0,o.sWj)(1)}}}),h=(t={standalone:"configFormConfigApp",config:{swr:{errorRetryCount:0,refreshInterval:(0,o.sWj)(1)}}},(0,l.yu)({...t,params:{key:R}})),p=(n={standalone:"configFormGouging",config:{swr:{refreshInterval:(0,o.sWj)(1)}}},(0,l.yu)({...n,params:{key:"gouging"}})),m=(0,D.w)({standalone:"configFormRedundancy",config:{swr:{refreshInterval:(0,o.sWj)(1)}}}),v=(a={standalone:"configFormUploadPacking",config:{swr:{refreshInterval:(0,o.sWj)(1)}}},(0,l.yu)({...a,params:{key:"uploadpacking"}})),g=(0,l.KJ)(),y=(0,L.BF)({config:{swr:{revalidateOnFocus:!1}}}),[x,b]=(0,P.Z)("v0/config/showAdvanced",{defaultValue:!1}),{shouldSyncDefaultContractSet:w,setShouldSyncDefaultContractSet:j,syncDefaultContractSet:k}=function(){let[e,t]=(0,P.Z)("v0/autopilot/syncDefaultContractSet",{defaultValue:!0}),n=(0,N.a)({config:{swr:{errorRetryCount:0}}}),a=(0,l.KJ)(),s=(0,i.useCallback)(async t=>{let i=n.data||{default:""};try{e&&t!==i.default&&(await a.put({params:{key:"contractset"},payload:S({defaultContractSet:t},n.data)}),n.mutate(),(0,o.OPV)((0,r.jsxs)(o.xvT,{children:["Default contract set has been updated to:"," ",(0,r.jsx)(o.EKh,{children:t}),"."]})))}catch(e){(0,o.OHV)(e.message),console.log(e)}},[n.data,a,e]);return{shouldSyncDefaultContractSet:e,setShouldSyncDefaultContractSet:t,syncDefaultContractSet:s}}(),E=(0,l.oe)(),_=(0,A.Hv)();return{app:s,isAutopilotConfigured:u,isAutopilotEnabled:c,autopilot:d,contractSet:f,display:h,gouging:p,redundancy:m,uploadPacking:v,settingUpdate:g,averages:y,showAdvanced:x,setShowAdvanced:b,mode:x?"advanced":"simple",shouldSyncDefaultContractSet:w,setShouldSyncDefaultContractSet:j,syncDefaultContractSet:k,autopilotUpdate:E,appSettings:_}}(),{form:q,maxStoragePriceTBMonth:$,maxDownloadPriceTB:K,maxUploadPriceTB:Y,storageTB:G,downloadTBMonth:X,uploadTBMonth:J,minShards:Q,totalShards:ee,includeRedundancyMaxStoragePrice:et,includeRedundancyMaxUploadPrice:en,redundancyMultiplier:er}=function(){let e=(0,z.cI)({mode:"all",defaultValues:g}),t=e.watch("maxStoragePriceTBMonth"),n=e.watch("maxDownloadPriceTB"),r=e.watch("maxUploadPriceTB"),o=e.watch("storageTB"),a=e.watch("downloadTBMonth"),s=e.watch("uploadTBMonth"),l=e.watch("minShards"),u=e.watch("totalShards"),c=e.watch("includeRedundancyMaxStoragePrice"),d=e.watch("includeRedundancyMaxUploadPrice"),f=(0,i.useMemo)(()=>C(l,u),[l,u]);return{form:e,maxStoragePriceTBMonth:t,maxDownloadPriceTB:n,maxUploadPriceTB:r,storageTB:o,downloadTBMonth:a,uploadTBMonth:s,minShards:l,totalShards:u,includeRedundancyMaxStoragePrice:c,includeRedundancyMaxUploadPrice:d,redundancyMultiplier:f}}(),{storageAverage:ei,uploadAverage:eo,downloadAverage:ea,contractAverage:es}=function(e){let{minShards:t,totalShards:n,includeRedundancyMaxStoragePrice:r,includeRedundancyMaxUploadPrice:o}=e,a=(0,L.BF)({config:{swr:{revalidateOnFocus:!1}}}),l=(0,i.useMemo)(()=>a.data?new(s())((0,k.ll)(a.data.settings.storage_price).times((0,k.S5)(1)).times((0,k.xf)(1)).times(O(t,n,r)).toFixed(0)):void 0,[a.data,t,n,r]),u=(0,i.useMemo)(()=>a.data?new(s())((0,k.ll)(a.data.settings.upload_price).times((0,k.xf)(1)).times(O(t,n,o)).toFixed(0)):void 0,[a.data,t,n,o]),c=(0,i.useMemo)(()=>a.data?new(s())((0,k.ll)(a.data.settings.download_price).times((0,k.xf)(1)).toFixed(0)):void 0,[a.data]),d=(0,i.useMemo)(()=>a.data?new(s())((0,k.ll)(a.data.settings.contract_price).toFixed(0)):void 0,[a.data]);return{storageAverage:l,uploadAverage:u,downloadAverage:c,contractAverage:d}}({minShards:Q,totalShards:ee,includeRedundancyMaxStoragePrice:et,includeRedundancyMaxUploadPrice:en}),el=(0,i.useCallback)(e=>{var n,r,i,o;return e&&"init"!==t.autopilot.status?!W.settings.siaCentral||(null===(n=t.autopilot.state.data)||void 0===n?void 0:n.configured)?e:v.isLoading?null:v.data?{...e,maxStoragePrice:null===(r=v.data)||void 0===r?void 0:r.settings.storage_price,maxDownloadPrice:new(s())(null===(i=v.data)||void 0===i?void 0:i.settings.download_price).times((0,k.xf)(1)).toString(),maxUploadPrice:new(s())(null===(o=v.data)||void 0===o?void 0:o.settings.upload_price).times((0,k.xf)(1)).toString()}:e:null},[v.data,v.isLoading,W.settings.siaCentral,t.autopilot.status,null===(e=t.autopilot.state.data)||void 0===e?void 0:e.configured]),eu=(0,i.useMemo)(()=>{let e=el(f.data);return(!n||a.data||a.error)&&e&&h.data&&p.data&&(c.data||c.error)&&(d.data||d.error)?_({autopilot:a.data,contractSet:c.data,uploadPacking:p.data,gouging:e,redundancy:h.data,display:d.data}):null},[n,a.data,a.error,c.data,c.error,p.data,f.data,el,h.data,d.data,d.error]),ec=(0,i.useCallback)(async()=>{let e=n?await a.mutate():void 0,t=await c.mutate(),r=await f.mutate(),i=await h.mutate(),s=await p.mutate(),l=await d.mutate();if(!r||!i)return(0,o.OHV)("Error fetching settings."),null;{let n=el(r);return n?_({autopilot:e,contractSet:t,gouging:n,redundancy:i,uploadPacking:s,display:l}):null}},[n,a,c,f,el,p,h,d]),{isUnlockedAndAuthedRoute:ed}=(0,A.Hv)(),{revalidateAndResetFormData:ef,changeCount:eh}=(0,o.hWm)({form:q,remoteValues:eu,revalidate:ec,initialized:ed,mode:Z}),ep=(0,l.d_)(),em=(0,i.useMemo)(()=>{var e;let t=ep.data?{...y(e=ep.data.network),...x,...b,...w,...j,..."Mainnet"===e?{minShards:new(s())(10),totalShards:new(s())(30)}:{minShards:new(s())(2),totalShards:new(s())(6)}}:void 0;return v.data?u({advancedDefaults:t,isAutopilotEnabled:n,showAdvanced:T,redundancyMultiplier:er,includeRedundancyMaxStoragePrice:et,includeRedundancyMaxUploadPrice:en,storageAverage:ei,uploadAverage:eo,downloadAverage:ea,contractAverage:es}):u({advancedDefaults:t,isAutopilotEnabled:n,showAdvanced:T,redundancyMultiplier:er,includeRedundancyMaxStoragePrice:et,includeRedundancyMaxUploadPrice:en})},[ep.data,n,T,v.data,ei,eo,ea,es,er,et,en]),{canEstimate:ev,estimatedSpendingPerMonth:eg,estimatedSpendingPerTB:ey}=function(e){let{isAutopilotEnabled:t,includeRedundancyMaxStoragePrice:n,includeRedundancyMaxUploadPrice:r,redundancyMultiplier:o,maxStoragePriceTBMonth:a,storageTB:l,maxDownloadPriceTB:u,downloadTBMonth:c,maxUploadPriceTB:d,uploadTBMonth:f}=e,h=(0,i.useMemo)(()=>!!t&&(null==a?void 0:a.gt(0))&&(null==l?void 0:l.gt(0))&&(null==u?void 0:u.gt(0))&&(null==d?void 0:d.gt(0)),[t,a,l,u,d]),p=(0,i.useMemo)(()=>{if(!h)return new(s())(0);let e=(null==l?void 0:l.gt(0))?l:new(s())(0),t=(null==c?void 0:c.gt(0))?c:new(s())(0),i=(null==f?void 0:f.gt(0))?f:new(s())(0),p=(null==a?void 0:a.gt(0))?a:new(s())(0),m=(null==d?void 0:d.gt(0))?d:new(s())(0),v=(null==u?void 0:u.gt(0))?u:new(s())(0),g=n?p.times(e):p.times(o).times(e),y=v.times(t),x=r?m.times(i):m.times(o).times(i),b=g.plus(y).plus(x);return b},[h,n,r,o,a,l,u,c,d,f]),m=(0,i.useMemo)(()=>{if(!h)return new(s())(0);let e=p.div(l);return e},[h,p,l]);return{canEstimate:h,estimatedSpendingPerMonth:p,estimatedSpendingPerTB:m}}({isAutopilotEnabled:n,includeRedundancyMaxStoragePrice:et,includeRedundancyMaxUploadPrice:en,redundancyMultiplier:er,maxStoragePriceTBMonth:$,storageTB:G,maxDownloadPriceTB:K,downloadTBMonth:X,maxUploadPriceTB:Y,uploadTBMonth:J}),ex=function(e){let{gouging:t,redundancy:n,renterdState:r,estimatedSpendingPerMonth:a,isAutopilotEnabled:s,showAdvanced:u,revalidateAndResetFormData:c,syncDefaultContractSet:d,settingUpdate:f,contractSet:h,uploadPacking:p,display:m,autopilot:v,autopilotUpdate:g}=e,x=(0,l.Bl)(),b=(0,A.Tu)(),w=(0,i.useCallback)(async e=>{if(t.data&&n.data&&r.data)try{let i={};s&&!u&&(i.allowanceMonth=a);let w={...e,...i},j=s&&!v.data,_=s?await g.put({payload:function(e,t,n){let r={...y(e),...E(t)};return{...n,contracts:{...null==n?void 0:n.contracts,set:r.autopilotContractSet,amount:Math.round(r.amountHosts.toNumber()),allowance:(0,k.qN)(M(r.allowanceMonth,r.periodWeeks)).toString(),period:Math.round((0,k.mv)(r.periodWeeks.toNumber())),renewWindow:Math.round((0,k.mv)(r.renewWindowWeeks.toNumber())),download:Number(M((0,k.xf)(r.downloadTBMonth),r.periodWeeks).toFixed(0)),upload:Number(M((0,k.xf)(r.uploadTBMonth),r.periodWeeks).toFixed(0)),storage:(0,k.xf)(r.storageTB).toNumber(),prune:r.prune},hosts:{...null==n?void 0:n.hosts,maxDowntimeHours:r.maxDowntimeHours.toNumber(),minRecentScanFailures:r.minRecentScanFailures.toNumber(),allowRedundantIPs:r.allowRedundantIPs,scoreOverrides:(null==n?void 0:n.hosts.scoreOverrides)||null},wallet:{...null==n?void 0:n.wallet,defragThreshold:r.defragThreshold.toNumber()}}}(r.data.network,w,v.data)}):void 0,[C,T,P,N,D]=await Promise.all([f.put({params:{key:"contractset"},payload:S(w,h.data)}),f.put({params:{key:"uploadpacking"},payload:{...p.data,enabled:w.uploadPackingEnabled}}),f.put({params:{key:"gouging"},payload:{...t.data,maxRPCPrice:(0,k.qN)(w.maxRpcPriceMillion.div(1e6)).toString(),maxStoragePrice:(0,k.qN)(w.maxStoragePriceTBMonth.div((0,k.S5)(1)).div((0,k.xf)(1)).div(O(w.minShards,w.totalShards,w.includeRedundancyMaxStoragePrice))).toString(),maxUploadPrice:(0,k.qN)(w.maxUploadPriceTB.div(O(w.minShards,w.totalShards,w.includeRedundancyMaxUploadPrice))).toString(),maxDownloadPrice:(0,k.qN)(w.maxDownloadPriceTB).toString(),maxContractPrice:(0,k.qN)(w.maxContractPrice).toString(),minMaxCollateral:(0,k.qN)(w.minMaxCollateral).toString(),hostBlockHeightLeeway:Math.round(w.hostBlockHeightLeeway.toNumber()),minPriceTableValidity:Math.round((0,o.ort)(w.minPriceTableValidityMinutes.toNumber())),minAccountExpiry:Math.round((0,o.k9c)(w.minAccountExpiryDays.toNumber())),minMaxEphemeralAccountBalance:(0,k.qN)(w.minMaxEphemeralAccountBalance).toString(),migrationSurchargeMultiplier:w.migrationSurchargeMultiplier.toNumber()}}),f.put({params:{key:"redundancy"},payload:{...n.data,minShards:w.minShards.toNumber(),totalShards:w.totalShards.toNumber()}}),f.put({params:{key:R},payload:{...m.data,includeRedundancyMaxStoragePrice:w.includeRedundancyMaxStoragePrice,includeRedundancyMaxUploadPrice:w.includeRedundancyMaxUploadPrice}})]);if(null==_?void 0:_.error)throw Error(_.error);if(C.error)throw Error(C.error);if(T.error)throw Error(T.error);if(P.error)throw Error(P.error);if(N.error)throw Error(N.error);if(D.error)throw Error(D.error);if(s&&(d(w.autopilotContractSet),x.post({payload:{forceScan:!0}})),(0,o.OPV)("Configuration has been saved."),j){let e=async()=>{await (0,A.gw)(5e3),b(e=>e.startsWith(l.pz)),await (0,A.gw)(5e3),b(e=>e.startsWith(l.pz))};e()}await c()}catch(e){(0,o.OHV)(e.message),console.log(e)}},[r.data,a,u,s,v,g,c,d,b,f,h,p,n,t,m,x]);return w}({renterdState:ep,estimatedSpendingPerMonth:eg,showAdvanced:T,isAutopilotEnabled:n,autopilot:a,autopilotUpdate:U,revalidateAndResetFormData:ef,syncDefaultContractSet:H,settingUpdate:m,contractSet:c,uploadPacking:p,redundancy:h,gouging:f,display:d}),eb=(0,o.WsO)(em),ew=(0,i.useMemo)(()=>q.handleSubmit(ex,eb),[q,ex,eb]);return{onSubmit:ew,revalidateAndResetFormData:ef,form:q,fields:em,changeCount:eh,canEstimate:ev,estimatedSpendingPerMonth:eg,estimatedSpendingPerTB:ey,redundancyMultiplier:er,storageTB:G,shouldSyncDefaultContractSet:I,setShouldSyncDefaultContractSet:B,showAdvanced:T,setShowAdvanced:V}}();return(0,r.jsx)(V.Provider,{value:n,children:t})}},26592:function(e,t,n){"use strict";n.d(t,{x:function(){return j},G:function(){return w}});var r=n(52322),i=n(35701),o=n(5632),a=n(9969),s=n(2784),l=n(6391),u=n.n(l),c=n(56860),d=n(88242),f=n(25205),h=n(82459);let p=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:{id:t,hostIp:n,hostKey:i}}=e;return(0,r.jsx)(h.F,{id:t,address:n,publicKey:i})}},{id:"contractId",label:"contract ID",category:"general",render:e=>{let{data:{id:t,isRenewed:n,renewedFrom:o},context:{siascanUrl:a}}=e;return(0,r.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,r.jsx)(i.XxW,{size:"12",value:(0,i.I13)(t),type:"contract",label:"contract ID",siascanUrl:a}),n&&(0,r.jsx)(i.ua7,{content:"Renewed from",align:"start",children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)(i.xvT,{color:"subtle",children:(0,r.jsx)(d.L6f,{className:"scale-75"})}),(0,r.jsx)(i.XxW,{color:"subtle",size:"10",type:"contract",value:(0,i.I13)(o),siascanUrl:a,label:"contract ID"})]})})]})}},{id:"hostIp",label:"host address",category:"general",render:e=>{let{data:{hostIp:t},context:{siascanUrl:n}}=e;return(0,r.jsx)(i.XxW,{size:"12",value:t,type:"hostIp",siascanUrl:n})}},{id:"hostKey",label:"host public key",category:"general",render:e=>{let{data:{hostKey:t},context:{siascanUrl:n}}=e;return(0,r.jsx)(i.XxW,{size:"12",value:t,type:"hostPublicKey",siascanUrl:n})}},{id:"state",label:"state",category:"general",render:e=>{let{data:{state:t}}=e;return(0,r.jsx)(i.ua7,{content:(0,r.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)(i.xvT,{className:"flex-1",weight:"medium",children:"pending"}),(0,r.jsx)(i.xvT,{className:"flex-[2]",color:"subtle",children:"Contract has been added."})]}),(0,r.jsx)(i.Z0O,{className:"w-full"}),(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)(i.xvT,{className:"flex-1",weight:"medium",children:"active"}),(0,r.jsx)(i.xvT,{className:"flex-[2]",color:"subtle",children:"Contract has appeared on chain."})]}),(0,r.jsx)(i.Z0O,{className:"w-full"}),(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)(i.xvT,{className:"flex-1",weight:"medium",children:"complete"}),(0,r.jsx)(i.xvT,{className:"flex-[2]",color:"subtle",children:"Storage proof has appeared on chain."})]}),(0,r.jsx)(i.Z0O,{className:"w-full"}),(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)(i.xvT,{className:"flex-1",weight:"medium",children:"failed"}),(0,r.jsx)(i.xvT,{className:"flex-[2]",color:"subtle",children:"Storage proof was not submitted before the end of proof window."})]})]}),children:(0,r.jsx)(i.Cts,{variant:"active"===t?"amber":"failed"===t?"red":"pending"===t?"amber":"complete"===t?"green":void 0,children:t})})}},{id:"timeline",label:"timeline",category:"time",render:e=>{let{data:{contractHeightStart:t,contractHeightEnd:n,proofWindowHeightStart:o,proofWindowHeightEnd:a,revisionHeight:s,proofHeight:l},context:{currentHeight:u,contractsTimeRange:c}}=e;return(0,r.jsx)("div",{className:"w-[400px]",children:(0,r.jsx)(i.TaT,{currentHeight:u,contractHeightStart:t,contractHeightEnd:n,proofWindowHeightStart:o,proofWindowHeightEnd:a,proofHeight:l,revisionHeight:s,range:c})})}},{id:"startTime",label:"start date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{startTime:t}}=e;return(0,r.jsx)(i.xvT,{size:"12",font:"mono",ellipsis:!0,children:(0,f.rN)(t)})}},{id:"endTime",label:"end date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{endTime:t}}=e;return(0,r.jsx)(i.xvT,{size:"12",font:"mono",ellipsis:!0,children:(0,f.rN)(t)})}},{id:"size",label:"size",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{size:t}}=e;return(0,r.jsx)(i.m2c,{size:"12",value:t,variant:"value",format:e=>(0,f.vW)(e)})}},{id:"totalCost",label:"total cost",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{totalCost:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.negated()})}},{id:"spendingUploads",label:"uploads spending",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{spendingUploads:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.negated()})}},{id:"spendingDownloads",label:"downloads spending",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{spendingDownloads:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.negated()})}},{id:"spendingFundAccount",label:"fund account spending",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{spendingFundAccount:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.negated()})}}];var m=n(47025),v=n(25573),g=n(20189);function y(e){let t=(0,i.sWj)(5);return Math.round(e/t)*t}function x(e){let{start:t,disabled:n,contractId:o}=e,l=y(t),c=(0,i.NrH)(1),d=(0,s.useMemo)(()=>{let e=new Date().getTime(),t=y(e),n=t-l,r=Math.round(n/c);return Math.max(r,1)},[l,c]),h=(0,s.useMemo)(()=>{let e={start:new Date(l||0).toISOString(),interval:c,n:d};return o&&(e.contractID=o),e},[l,c,d,o]),p=(0,a.Yy)({disabled:n,params:h}),m=(0,s.useMemo)(()=>{var e;let t=(0,i.Y_Z)(null===(e=p.data)||void 0===e?void 0:e.map(e=>({uploadSpending:Number(e.uploadSpending),listSpending:Number(e.listSpending),deleteSpending:Number(e.deleteSpending),fundAccountSpending:Number(e.fundAccountSpending),remainingCollateral:Number(e.remainingCollateral),remainingFunds:Number(e.remainingFunds),timestamp:new Date(e.timestamp).getTime()})),"none"),n=(0,i.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["remainingFunds","remainingCollateral","fundAccountSpending","uploadSpending","listSpending","deleteSpending"],enabledTip:["remainingFunds","remainingCollateral","fundAccountSpending","uploadSpending","listSpending","deleteSpending"],categories:["funding","spending"],data:{remainingFunds:{label:"remaining funds",category:"funding",color:i.O9T.emerald[600]},remainingCollateral:{label:"remaining collateral",category:"funding",pattern:!0,color:i.O9T.emerald[600]},fundAccountSpending:{label:"fund account",category:"spending",color:i.O9T.red[600]},uploadSpending:{label:"upload",category:"spending",color:i.O9T.red[600]},listSpending:{label:"list",category:"spending",color:i.O9T.red[600]},deleteSpending:{label:"delete",category:"spending",color:i.O9T.red[600]}},formatComponent:function(e){let{value:t}=e;return(0,r.jsx)(i.ho9,{variant:"value",value:new(u())(t)})},formatTimestamp:c===(0,i.NrH)(1)?(0,i.kOJ)("daily"):void 0,formatTickY:e=>(0,f.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:"barstack",curveType:"linear",stackOffset:"none"},isLoading:p.isValidating&&!p.data}},[p.data,p.isValidating,c]);return{contractMetrics:m}}let b=(0,s.createContext)({}),w=()=>(0,s.useContext)(b);function j(e){let{children:t}=e,n=function(){let[e,t]=(0,s.useState)("list"),[n,r]=(0,s.useState)("spending"),l=(0,o.useRouter)(),d=Number(l.query.limit||50),h=Number(l.query.offset||0),b=(0,a.GP)({config:{swr:{refreshInterval:(0,i.sWj)(1)}}}),w=(0,m.JL)(),j=(0,s.useMemo)(()=>{var e;return(null===(e=w.data)||void 0===e?void 0:e.hosts)||[]},[w.data]),k=(0,v.n)(),E=k.isSynced?k.nodeBlockHeight:k.estimatedBlockHeight,[S,_]=(0,s.useState)(),C=(0,s.useCallback)(e=>{if(S===e){_(void 0);return}_(e),t("detail"),r("spending")},[S,_,t]),O=(0,s.useMemo)(()=>{var e;if(!b.data)return null;let t=(null===(e=b.data)||void 0===e?void 0:e.map(e=>{var t;let n="fcid:0000000000000000000000000000000000000000000000000000000000000000"!==e.renewedFrom,r=(0,f.jr)(E,e.startHeight),i=e.windowStart,o=(0,f.jr)(E,i);return{id:e.id,onClick:()=>C(e.id),contractId:e.id,state:e.state,hostIp:e.hostIP,hostKey:e.hostKey,location:null===(t=j.find(t=>t.public_key===e.hostKey))||void 0===t?void 0:t.location,timeline:r,startTime:r,endTime:o,contractHeightStart:e.startHeight,contractHeightEnd:i,proofWindowHeightStart:e.windowStart,proofWindowHeightEnd:e.windowEnd,proofHeight:e.proofHeight,revisionHeight:e.revisionHeight,isRenewed:n,renewedFrom:e.renewedFrom,totalCost:new(u())(e.totalCost),spendingUploads:new(u())(e.spending.uploads),spendingDownloads:new(u())(e.spending.downloads),spendingFundAccount:new(u())(e.spending.fundAccount),size:new(u())(e.size)}}))||[];return t},[b.data,j,E,C]),M=(0,s.useMemo)(()=>null==O?void 0:O.find(e=>e.id===S),[O,S]),{filters:T,setFilter:A,removeFilter:P,removeLastFilter:N,resetFilters:R}=(0,i.Wdu)(),{configurableColumns:D,enabledColumns:L,sortableColumns:F,toggleColumnVisibility:z,setColumnsVisible:V,setColumnsHidden:Z,toggleSort:I,setSortDirection:B,setSortField:H,sortField:U,sortDirection:W,resetDefaultColumnVisibility:q}=(0,i.oy6)("renterd/v0/contracts",{columns:p,columnsDefaultVisible:c.gd,sortOptions:c.Fo,defaultSortField:c.nw}),$=(0,i._4u)({dataset:O,filters:T,sortField:U,sortDirection:W}),K=(0,s.useMemo)(()=>$?$.slice(h,h+d):null,[$,h,d]),{range:Y}=(0,s.useMemo)(()=>(0,i.EJC)(E,K||[]),[E,K]),G=(0,s.useMemo)(()=>p.filter(e=>e.fixed||L.includes(e.id)),[L]),X=(0,i.c2j)($,b.isValidating,b.error,T),J=(0,g.B)(),Q=(0,s.useMemo)(()=>({currentHeight:k.estimatedBlockHeight,contractsTimeRange:Y,siascanUrl:J}),[k.estimatedBlockHeight,Y,J]),ee=new Date().getTime()-(0,i.NrH)(30),{contractMetrics:et}=x({start:ee}),{contractMetrics:en}=x({contractId:S,start:(null==M?void 0:M.startTime)||0,disabled:!M}),{contractSetMetrics:er}=function(){var e;let t=y(new Date().getTime()-(0,i.NrH)(30)),n=(0,i.NrH)(1),r=(0,s.useMemo)(()=>{let e=new Date().getTime(),r=y(e),i=r-t;return Math.round(i/n)},[t,n]),o=(0,a.e$)(),l=(0,a.Bi)({disabled:!o.data,params:{name:null===(e=o.data)||void 0===e?void 0:e.contracts.set,start:new Date(t).toISOString(),interval:n,n:r}}),u=(0,s.useMemo)(()=>{var e;let t=(0,i.Y_Z)(null===(e=l.data)||void 0===e?void 0:e.map(e=>({contracts:Number(e.contracts),timestamp:new Date(e.timestamp).getTime()})),"none"),r=(0,i.fVJ)(t);return{data:t,stats:r,config:{enabledGraph:["contracts"],enabledTip:["contracts"],data:{contracts:{label:"contracts",color:i.O9T.emerald[600]}},formatTimestamp:n===(0,i.NrH)(1)?(0,i.kOJ)("daily"):void 0,disableAnimations:!0,chartType:"line",curveType:"linear",stackOffset:"none"},isLoading:l.isValidating&&!l.data}},[l.data,l.isValidating,n]);return{contractSetMetrics:u}}();return{dataState:X,limit:d,offset:h,isLoading:b.isLoading,error:b.error,pageCount:(null==K?void 0:K.length)||0,datasetCount:(null==O?void 0:O.length)||0,datasetFilteredCount:(null==$?void 0:$.length)||0,columns:G,dataset:O,cellContext:Q,datasetPage:K,configurableColumns:D,enabledColumns:L,sortableColumns:F,toggleColumnVisibility:z,setColumnsVisible:V,setColumnsHidden:Z,toggleSort:I,setSortDirection:B,setSortField:H,sortField:U,filters:T,setFilter:A,removeFilter:P,removeLastFilter:N,resetFilters:R,sortDirection:W,resetDefaultColumnVisibility:q,viewMode:e,setViewMode:t,graphMode:n,setGraphMode:r,selectedContract:M,selectContract:C,allContractsSpendingMetrics:et,selectedContractSpendingMetrics:en,contractSetCountMetrics:er}}();return(0,r.jsx)(b.Provider,{value:n,children:t})}},56860:function(e,t,n){"use strict";n.d(t,{Fo:function(){return o},gd:function(){return r},nw:function(){return i}});let r=["contractId","hostIp","hostKey","state","timeline","size","totalCost","spendingUploads","spendingDownloads","spendingFundAccount"],i="startTime",o=[{id:"contractId",label:"contract ID",category:"general"},{id:"hostIp",label:"host address",category:"general"},{id:"hostKey",label:"host public key",category:"general"},{id:"state",label:"state",category:"general"},{id:"timeline",label:"timeline",category:"time"},{id:"startTime",label:"start date",category:"time"},{id:"endTime",label:"end date",category:"time"},{id:"size",label:"size",category:"general"},{id:"totalCost",label:"total cost",category:"financial"},{id:"spendingUploads",label:"uploads spending",category:"financial"},{id:"spendingDownloads",label:"downloads spending",category:"financial"},{id:"spendingFundAccount",label:"fund account spending",category:"financial"}]},86811:function(e,t,n){"use strict";n.d(t,{Tu:function(){return eP},xQ:function(){return eN},Rh:function(){return eA}});var r=n(52322),i=n(2784),o=n(35701),a=n(95753),s=n(71930),l=n(82851),u=n(99182),c=n(5632),d=n(4941),f=n(9969);let h={namespace:"wallet",label:"Wallet"};function p(e){var t;let{currentPage:n,parentPage:i,pushPage:a}=e,{openDialog:l,closeDialog:u}=eA(),p=(0,c.useRouter)(),m=(0,f.X2)();return(0,r.jsxs)(d.fu,{currentPage:n,commandPage:h,children:[(0,r.jsx)(d.Ul,{currentPage:n,parentPage:i,commandPage:h,onSelect:()=>{a(h)},children:h.label}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{p.push(s._.wallet.view),u()},children:"View wallet transactions"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{l("sendSiacoin")},children:"Send siacoin"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{l("addressDetails")},children:"Receive siacoin"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{l("addressDetails")},children:"View wallet address"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,disabled:!(null===(t=m.data)||void 0===t?void 0:t.address),onSelect:()=>{var e;(null===(e=m.data)||void 0===e?void 0:e.address)&&((0,o.vQq)(m.data.address,"wallet address"),u())},children:"Copy wallet address to clipboard"})]})}var m=n(38617);let v={namespace:"settings",label:"Settings"};function g(e){let{currentPage:t,parentPage:n}=e,{openDialog:i,closeDialog:o}=eA(),{setTheme:s}=(0,m.F)(),{settings:l,setSettings:u,lock:c,currencyOptions:f,setCurrency:h}=(0,a.Hv)();return(0,r.jsxs)(d.fu,{currentPage:t,commandPage:v,children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:v,onSelect:()=>{i("settings")},children:"Open settings"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{u({siaCentral:!l.siaCentral}),o()},children:(l.siaCentral?"Disable":"Enable")+" external API - Sia Central exchange rates"}),(0,r.jsx)(d.o4,{currentPage:t,commandPage:v,onSelect:()=>{c(),o()},children:"Lock renterd"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{i("settings")},children:"Open interface theme menu"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{s("system"),o()},children:"Set theme to system preference"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{s("dark"),o()},children:"Set theme to dark"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{s("light"),o()},children:"Set theme to light"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{i("settings")},children:"Open currency settings menu"}),f.map(e=>{let{id:n,label:i}=e;return(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{h(n),o()},children:"Set currency to ".concat(i)},n)})]})}let y={namespace:"node",label:"Blockchain node"};function x(e){let{currentPage:t,parentPage:n,pushPage:i}=e,{openDialog:o,closeDialog:a}=eA(),l=(0,c.useRouter)();return(0,r.jsxs)(d.fu,{currentPage:t,commandPage:y,children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:y,onSelect:()=>{i(y)},children:y.label}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:y,onSelect:()=>{o("connectPeer")},children:"Connect to a peer"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:y,onSelect:()=>{l.push(s._.node.index),a()},children:"View peers"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:y,onSelect:()=>{l.push(s._.node.index),a()},children:"View transaction pool"})]})}var b=n(1657),w=n(91641);let j={namespace:"configuration",label:"Configuration"};function k(e){let{currentPage:t,parentPage:n,pushPage:i}=e,o=(0,c.useRouter)(),{showAdvanced:a}=(0,b.ZR)(),{closeDialog:l}=eA(),{autopilot:u}=(0,w.q)();return(0,r.jsxs)(d.fu,{currentPage:t,commandPage:j,children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:j,onSelect:()=>{i(j)},children:j.label}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.index),l()},children:"Open configuration"}),"on"===u.status&&(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.storage),l()},children:"Configure storage"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.pricing),l()},children:"Configure pricing"}),a&&(0,r.jsxs)(r.Fragment,{children:["on"===u.status&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.hosts),l()},children:"Configure hosts"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.wallet),l()},children:"Configure wallet"})]}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.contracts),l()},children:"Configure contracts"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.uploads),l()},children:"Configure uploads"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.redundancy),l()},children:"Configure redundancy"})]})]})}var E=n(93216);let S={namespace:"contracts",label:"Contracts"};function _(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,l=(0,c.useRouter)(),{closeDialog:u}=eA();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(S)},children:S.label}),(0,r.jsx)(d.fu,{currentPage:t,commandPage:S,children:(0,r.jsx)(d.WD,{currentPage:t,commandPage:S,onSelect:()=>{l.push(s._.contracts.index),u()},children:"View contracts"})}),(0,r.jsx)(E.F,{parentPage:S,currentPage:t,beforeSelect:o,afterSelect:a,pushPage:i})]})}var C=n(26592),O=n(18006);let M={namespace:"hosts",label:"Hosts"};function T(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,l=(0,c.useRouter)(),{closeDialog:u,openDialog:f}=eA();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(M)},children:M.label}),(0,r.jsx)(d.fu,{currentPage:t,commandPage:M,children:(0,r.jsx)(d.WD,{currentPage:t,commandPage:M,onSelect:()=>{l.push(s._.hosts.index),u()},children:"View hosts"})}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:M,onSelect:()=>{f("hostsManageAllowBlock")},children:"Manage filter lists: allowlist + blocklist"}),(0,r.jsx)(O.L,{parentPage:M,currentPage:t,beforeSelect:o,afterSelect:a,pushPage:i})]})}var A=n(91652),P=n(48528),N=n(88242);function R(e){let{debouncedSearch:t}=e;return(0,r.jsxs)(o.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsxs)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:[(0,r.jsx)(N.e1T,{}),(0,r.jsx)(N.JCW,{}),(0,r.jsx)(N.c_L,{})]}),(0,r.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No files match the query.":"Type a query to get started."})]})}let D={namespace:"files/search",label:"File search",prompt:"Search for files, eg: backups, photo_archive.zip, etc...",empty:R};function L(e){let{debouncedSearch:t,search:n,currentPage:i,beforeSelect:a,afterSelect:s}=e,{activeBucket:l,navigateToFile:u}=(0,P.Y)(),c=(null==i?void 0:i.namespace)===D.namespace,h=(0,f.Iy)({disabled:!c,params:{bucket:l||"default",key:t,skip:0,limit:10},config:{swr:{keepPreviousData:!0}}});return c&&h.data?(0,r.jsx)(d.fu,{currentPage:i,commandPage:D,children:h.data.map(e=>{let{name:t}=e,l=function(e,t,n){let r=Math.max(e.length-55,0);if(0===r)return e;let i=F(e),o=F(t),a=i.toLowerCase().indexOf(o.toLowerCase()),s=a+o.length-1,l=0,u=0,c=i.split("/"),d=c.map(e=>{if(l>=r)return u+=e.length,F(e);let t=u,n=u+e.length+1;return ta?(u+=e.length,F(e)):!e.includes(o)&&e.length>3?(u+=e.length,l+=e.length+1,"..."):(u+=e.length,F(e))});return d.reverse().join("/")}(t,n,0),{startIndex:c,endIndex:f}=function(e,t){let n=F(e),r=F(t),i=n.toLowerCase().indexOf(r.toLowerCase()),o=i+r.length;return{endIndex:e.length-i,startIndex:e.length-o}}(l,n);return(0,r.jsx)(d.WD,{commandPage:D,currentPage:i,onSelect:()=>{a(),u(t),s()},value:t,children:(0,r.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"group-data-[selected=true]:text-gray-1000 dark:group-data-[selected=true]:text-graydark-1000",children:(0,A.IQ)(t)?(0,r.jsx)(N.ROc,{size:16}):(0,r.jsx)(N.c_L,{})}),(0,r.jsxs)(o.xvT,{className:"flex items-center",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",ellipsis:!0,children:l.slice(0,c)}),(0,r.jsx)(o.xvT,{color:"accent",ellipsis:!0,children:l.slice(c,f)}),(0,r.jsx)(o.xvT,{color:"verySubtle",ellipsis:!0,children:l.slice(f)})]})]})},t)})}):null}function F(e){return e.split("").reverse().join("")}let z={namespace:"files",label:"Files"};function V(e){let{search:t,debouncedSearch:n,currentPage:i,parentPage:o,pushPage:a,beforeSelect:l,afterSelect:u}=e,f=(0,c.useRouter)(),{closeDialog:h}=eA();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:i,parentPage:o,commandPage:o,onSelect:()=>{a(z)},children:z.label}),(0,r.jsxs)(d.fu,{currentPage:i,commandPage:z,children:[(0,r.jsx)(d.WD,{currentPage:i,commandPage:z,onSelect:()=>{f.pathname.startsWith(s._.files.index)||f.push(s._.files.index),h(),u()},children:"View files"}),(0,r.jsx)(d.WD,{currentPage:i,commandPage:z,onSelect:()=>{a(D),u()},children:"Search files"})]}),(0,r.jsx)(L,{debouncedSearch:n,search:t,currentPage:i,beforeSelect:l,afterSelect:u})]})}var Z=n(19513),I=n(94225);function B(e){let{search:t}=e;return(0,r.jsxs)(o.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:(0,r.jsx)(N.owP,{})}),(0,r.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No results matching query.":"Type a query to get started."})]})}function H(e){let{panel:t}=e,{resetFilters:n}=(0,C.G)(),{resetFilters:a}=(0,Z.l)(),{closeDialog:d}=eA(),f=(0,c.useRouter)(),[h,m]=(0,i.useState)(""),[v]=(0,I.Nr)(h,500),[y,b]=(0,i.useState)([]),w=y[y.length-1],j=0===y.length,E=(0,i.useCallback)(e=>{b(t=>[...t,e])},[b]),S=(0,i.useCallback)(()=>{d()},[d]),O=(0,i.useCallback)(()=>{m("")},[m]),M=(null==w?void 0:w.empty)||B;return(0,r.jsxs)(u.mY,{label:"Command Menu",loop:!0,className:(0,l.cx)(t&&(0,o.z$)()),onKeyDown:e=>{(y.length>0&&"Escape"===e.key||"Backspace"===e.key&&!h)&&(e.preventDefault(),b(e=>e.slice(0,-1)))},children:[w&&(0,r.jsx)(o.__J,{className:"px-2",children:w.label}),(0,r.jsx)(u.mY.Input,{value:h,onValueChange:m,className:(0,o.cEb)({variant:"ghost",focus:"none"}),placeholder:(null==w?void 0:w.prompt)||(j?"Search for commands, eg: theme, redundancy":"Search commands")}),(0,r.jsx)(o.Z0O,{className:"my-2"}),(0,r.jsxs)(u.mY.List,{children:[(0,r.jsx)(u.mY.Empty,{children:(0,r.jsx)(M,{search:h,debouncedSearch:v})}),(0,r.jsx)(g,{currentPage:w,pushPage:E}),(0,r.jsx)(V,{debouncedSearch:v,search:h,currentPage:w,pushPage:E,beforeSelect:()=>{S()},afterSelect:()=>{O()}}),(0,r.jsx)(p,{currentPage:w,pushPage:E}),(0,r.jsx)(_,{currentPage:w,pushPage:E,beforeSelect:()=>{S(),n()},afterSelect:()=>{f.pathname.startsWith(s._.contracts.index)||f.push(s._.contracts.index),O()}}),(0,r.jsx)(T,{currentPage:w,pushPage:E,beforeSelect:()=>{S(),a()},afterSelect:()=>{f.pathname.startsWith(s._.hosts.index)||f.push(s._.hosts.index),O()}}),(0,r.jsx)(k,{currentPage:w,pushPage:E}),(0,r.jsx)(x,{currentPage:w,pushPage:E})]})]})}function U(e){let{open:t,onOpenChange:n,setOpen:l}=e,{isUnlockedAndAuthedRoute:u}=(0,a.Hv)(),{isConnected:c}=(0,o.Y97)({route:s.h});return(0,i.useEffect)(()=>{if(!u||!c)return;let e=e=>{"k"===e.key&&e.metaKey&&l()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[u,c,l]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(o.VqE,{open:t,onOpenChange:n,contentVariants:{className:"!absolute !p-1 w-[450px] top-[200px]"},bodyClassName:"!px-1 !py-1",closeClassName:"hidden",children:(0,r.jsx)(H,{})})})}var W=n(9156),q=n(24511);let $={name:""},K=q.Ry().shape({name:q.Z_().required("Required")});function Y(e){let{trigger:t,open:n,onOpenChange:i}=e,{activeDirectoryPath:a}=(0,P.Y)(),s=(0,f.ZM)(),l=(0,W.TA)({initialValues:$,validationSchema:K,onSubmit:async(e,t)=>{let n=await s.put({params:(0,A.W0)(a+e.name+"/"),payload:null});n.error?(0,o.OHV)(n.error):((0,o.RFt)("Directory created."),t.resetForm(),i(!1))}});return(0,r.jsx)(o.VqE,{trigger:t,title:"New directory",open:n,onOpenChange:e=>{e||l.resetForm(),i(e)},contentVariants:{className:"w-[400px]"},children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsx)("form",{onSubmit:l.handleSubmit,children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(o.cB7,{formik:l,title:"Name",name:"name",placeholder:"photos, backups, etc",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(o.IKw,{formik:l,size:"medium",children:"Create"})]})})})})}var G=n(33571);let X={publicKey:""},J=q.Ry().shape({publicKey:q.Z_().required("Required")});function Q(){var e;let t=(0,f.s2)({config:{swr:{refreshInterval:6e4}}}),n=(0,G.I)(),a=(0,W.TA)({initialValues:X,validationSchema:J,onSubmit:async(e,t)=>{let r=await n([e.publicKey],[]);r?t.resetForm():t.setStatus({error:"Error updating allowlist"})}});(0,i.useEffect)(()=>{a.setStatus(void 0)},[a.values]);let s=a.values.publicKey,l=(null===(e=t.data)||void 0===e?void 0:e.filter(e=>!a.values.publicKey||e.includes(a.values.publicKey)))||[];return(0,r.jsxs)("form",{onSubmit:a.handleSubmit,className:"flex flex-col gap-2 h-[400px]",children:[(0,r.jsx)(o.S$c,{title:"Public key",name:"publicKey",formik:a,withStatusError:!0,children:(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(o.KZS,{name:"publicKey",formik:a,placeholder:"ed25519:02aabd26e627fd...",autoComplete:"off",variants:{size:"small"}}),(0,r.jsx)(o.IKw,{formik:a,size:"small",variant:"amber",withStatusError:!1,children:"Allow public key"})]})}),(0,r.jsxs)(o.s_4,{className:"p-2 flex gap-2 items-center",children:[(0,r.jsx)(o.xvT,{children:(0,r.jsx)(N.qdM,{})}),(0,r.jsxs)(o.nvN,{size:"12",children:[(0,r.jsx)(o.xvT,{weight:"semibold",children:"Caution:"})," Please note that because the allowlist is inclusive, as soon as there are more than zero entries, contracting will be limited to only the hosts explicitly on the allowlist - all other existing contracts will immediately abort."]})]}),(0,r.jsx)("div",{className:"flex-1 overflow-hidden !-m-2",children:l.length?(0,r.jsx)(o.xrM,{children:(0,r.jsx)("div",{className:"p-2",children:(0,r.jsx)(o.hmz,{options:l.map(e=>({value:e,label:"".concat(e.slice(0,20),"...")}))||[],onClick:e=>(0,o.vQq)(e,"allowed public key"),onRemove:e=>n([],[e])})})}):s?(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(o.xvT,{color:"subtle",children:(0,r.jsx)(N.Hb6,{})}),(0,r.jsxs)(o.xvT,{color:"subtle",children:["No existing entries match ",a.values.publicKey,"."]})]}):(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(o.xvT,{color:"subtle",children:(0,r.jsx)(N.TtX,{})}),(0,r.jsx)(o.xvT,{color:"subtle",children:"The allowlist is empty."})]})})]})}var ee=n(98358);let et={address:""},en=["45.148.30.56","51.158.108.244","siacentral.ddnsfree.com","siacentral.mooo.com"],er=q.Ry().shape({address:q.Z_().required("Required").test("address","Invalid hostname or IP address",e=>(0,o.Ztc)().test(e||""))});function ei(){let e=(0,f.uf)({config:{swr:{refreshInterval:6e4}}}),t=(0,ee.l)(),n=(0,W.TA)({initialValues:et,validationSchema:er,onSubmit:async(e,n)=>{let r=await t([e.address],[]);r?n.resetForm():n.setStatus({error:"Error updating blocklist"})}});(0,i.useEffect)(()=>{n.setStatus(void 0)},[n.values]);let a=n.values.address,s=(0,i.useMemo)(()=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.filter(e=>!n.values.address||e.includes(n.values.address)))||[]},[e.data,n.values.address]),{dataset:l}=(0,C.G)(),u=(0,i.useMemo)(()=>en.filter(t=>{var n;return!(null===(n=e.data)||void 0===n?void 0:n.find(e=>e===t))}).map(e=>({address:e,contractCount:null==l?void 0:l.filter(t=>t.hostIp===e).length})),[e.data,l]);return(0,r.jsxs)("form",{onSubmit:n.handleSubmit,className:"flex flex-col gap-2 h-[400px]",children:[(0,r.jsx)(o.S$c,{title:"Address",name:"address",formik:n,withStatusError:!0,children:(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(o.KZS,{name:"address",formik:n,placeholder:"eg: 51.258.128.144 or spam.ddnsfree.com",autoComplete:"off",variants:{size:"small"}}),(0,r.jsx)(o.IKw,{formik:n,size:"small",variant:"red",withStatusError:!1,children:"Block address"})]})}),(0,r.jsx)("div",{className:"flex-1 overflow-hidden !-m-2",children:(0,r.jsx)(o.xrM,{children:(0,r.jsxs)("div",{className:"p-2",children:[!!u.length&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex gap-1 flex-wrap",children:[(0,r.jsx)(o.xvT,{size:"12",color:"subtle",children:"Suggestions:"}),u.map((e,t)=>{let{address:i,contractCount:a}=e;return(0,r.jsxs)(o.xvT,{size:"12",underline:"hover",className:"cursor-pointer",onClick:()=>n.setFieldValue("address",i),children:[i,!!a&&(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)(o.ua7,{content:"".concat(a," active contracts"),children:(0,r.jsxs)(o.xvT,{color:"red",children:["(",a,")"]})})]}),t!==u.length-1&&(0,r.jsx)(o.xvT,{children:","})]},i)})]}),(0,r.jsx)(o.Z0O,{className:"my-2"})]}),s.length?(0,r.jsx)(o.hmz,{options:s.map(e=>({value:e,label:"".concat(e.slice(0,20),"...")}))||[],onClick:e=>(0,o.vQq)(e,"blocked address"),onRemove:e=>t([],[e])}):a?(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(o.xvT,{color:"subtle",children:(0,r.jsx)(N.Hb6,{})}),(0,r.jsxs)(o.xvT,{color:"subtle",children:["No existing entries match ",n.values.address,"."]})]}):(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(o.xvT,{color:"subtle",children:(0,r.jsx)(N.TtX,{})}),(0,r.jsx)(o.xvT,{color:"subtle",children:"The blocklist is empty."})]})]})})})]})}function eo(e){let{trigger:t,open:n,onOpenChange:i}=e;return(0,r.jsx)(o.VqE,{trigger:t,title:"Manage host blocklist and allowlist",open:n,onOpenChange:e=>{i(e)},contentVariants:{className:"w-[500px]"},children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(o.nvN,{size:"12",children:"The allowlist and blocklist limit the set of hosts that renterd will consider when forming contracts. The blocklist excludes hosts with matching addresses whereas the allowlist restricts consideration to hosts with a matching public key. Each list's filtering is enabled and applied when it contains more than zero entries."}),(0,r.jsxs)(o.mQc,{defaultValue:"blocklist",children:[(0,r.jsxs)(o.drW,{"aria-label":"blocklist and allowlist tabs",children:[(0,r.jsx)(o.SPt,{value:"blocklist",children:"Block"}),(0,r.jsx)(o.SPt,{value:"allowlist",children:"Allow"})]}),(0,r.jsx)(o.nUL,{value:"blocklist",children:(0,r.jsx)(ei,{})}),(0,r.jsx)(o.nUL,{value:"allowlist",children:(0,r.jsx)(Q,{})})]})]})})}var ea=n(2320),es=n(31781),el=n(24801);function eu(e){let{panel:t}=e,{resetFilters:n}=(0,C.G)(),{closeDialog:a}=eA(),d=(0,c.useRouter)(),[f,h]=(0,i.useState)(""),[p]=(0,I.Nr)(f,500),m=(0,i.useCallback)(()=>{a()},[a]);return(0,r.jsxs)(u.mY,{label:"Files search",shouldFilter:!1,className:(0,l.cx)(t&&(0,o.z$)()),children:[(0,r.jsx)(o.__J,{className:"px-2",children:"File search"}),(0,r.jsx)(u.mY.Input,{value:f,onValueChange:h,className:(0,o.cEb)({variant:"ghost",focus:"none"}),placeholder:D.prompt}),(0,r.jsx)(o.Z0O,{className:"my-2"}),(0,r.jsx)("div",{className:"overflow-hidden",children:(0,r.jsxs)(u.mY.List,{children:[(0,r.jsx)(u.mY.Empty,{children:(0,r.jsx)(R,{search:f,debouncedSearch:p})}),(0,r.jsx)(L,{debouncedSearch:p,search:f,currentPage:D,beforeSelect:()=>{m(),n()},afterSelect:()=>{d.pathname.startsWith(s._.files.index)||d.push(s._.files.index)}})]})})]})}function ec(e){let{open:t,onOpenChange:n,trigger:i}=e;return(0,r.jsx)(o.VqE,{open:t,trigger:i,onOpenChange:n,contentVariants:{className:"!absolute !p-1 w-[450px] top-[200px]"},bodyClassName:"!px-1 !py-1",closeClassName:"hidden",children:(0,r.jsx)(eu,{})})}var ed=n(6391),ef=n.n(ed);function eh(){let{dialog:e,openDialog:t,closeDialog:n}=eA(),a=(0,f.X2)(),s=(0,f.gU)(),l=(0,f.cg)(),u=(0,f.ys)(),c=(0,f.aO)(),d=(0,i.useCallback)(async e=>{let{sc:t,address:n}=e,r=await s.post({payload:{amount:t.toString(),transaction:{siacoinOutputs:[{address:n,value:t.toString()}]}}});if(r.error)return{error:r.error};let i=await l.post({payload:{transaction:r.data.transaction,toSign:r.data.toSign,coveredFields:{wholeTransaction:!0}}});if(i.error)return c.post({payload:r.data.transaction}),{error:i.error};let o=await u.post({payload:[i.data]});return o.error?(c.post({payload:i.data}),{error:o.error}):{}},[s,l,u,c]);return(0,r.jsx)(o.weF,{balance:a.data?new(ef())(a.data.spendable):void 0,send:d,open:"sendSiacoin"===e,onOpenChange:r=>r?t(e):n()})}var ep=n(63171);function em(){let{id:e,dialog:t,openDialog:n,closeDialog:a}=eA(),{dataset:s}=(0,ep.n)(),l=(0,i.useMemo)(()=>null==s?void 0:s.find(t=>t.hash===e),[s,e]);return(0,r.jsx)(o.mPE,{id:e,transaction:l,open:"transactionDetails"===t,onOpenChange:e=>e?n(t):a()})}var ev=n(82459);function eg(e){let{id:t,contentProps:n,buttonProps:i}=e,a=(0,f.cq)({params:{id:t}});return a.data?(0,r.jsx)(ev.F,{id:t,address:a.data.hostIP,publicKey:a.data.hostKey,contentProps:n,buttonProps:i}):(0,r.jsx)(o.zxk,{variant:"ghost",icon:"hover",state:"waiting",...i,children:(0,r.jsx)(N.iG7,{})})}var ey=n(848);function ex(e){let{open:t,onOpenChange:n}=e,a=(0,f.Z7)(),s=(0,f.Uy)(),l=(0,i.useCallback)(async e=>{let t=await s.post({payload:[e]});t.error?(0,o.OHV)("Error dismissing alert."):(0,o.OPV)("Alert has been dismissed.")},[s]),u=(0,i.useCallback)(async(e,t)=>{if(!a.data)return;let n=await s.post({payload:e});n.error?(0,o.OHV)(t?"Error dismissing all ".concat(t," alerts."):"Error dismissing all alerts."):(0,o.OPV)(t?"All ".concat(t," alerts have been dismissed."):"All alerts have been dismissed.")},[s,a.data]);return(0,r.jsx)(o.hcY,{open:t,onOpenChange:e=>{n(e)},alerts:a,dataFieldOrder:eb,dataFields:ew,dismissMany:u,dismissOne:l})}let eb=["hint","error","origin","hostKey","contractID","accountID","slabKey","additions","removals"],ew={contractID:{render:function(e){let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"contract ID"}),(0,r.jsx)(o.PF9,{value:t,menu:(0,r.jsx)(eg,{id:t,contentProps:{align:"end"},buttonProps:{size:"none"}})})]})}},accountID:{render:function(e){let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"account ID"}),(0,r.jsx)(o.XxW,{value:t,label:"account ID"})]})}},hostKey:{render:function(e){let{value:t}=e,n=(0,f.$)({params:{hostKey:t}});return n.data?(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"host key"}),(0,r.jsx)(o.PF9,{value:t,menu:(0,r.jsx)(ey.G,{publicKey:n.data.publicKey,address:n.data.netAddress,contentProps:{align:"end"},buttonProps:{size:"none"}})})]}):null}},slabKey:{render:function(e){let{value:t}=e,{setActiveDirectory:n}=(0,P.Y)(),{closeDialog:i}=eA(),a=(0,f.og)({params:{key:t},config:{swr:{revalidateOnFocus:!1}}});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"key"}),(0,r.jsx)(o.XxW,{value:t})]}),a.data&&(0,r.jsx)(o.xrM,{children:(0,r.jsx)("div",{className:"flex flex-col gap-2 mt-2 mb-2",children:a.data.map(e=>(0,r.jsx)(o.rUS,{color:"accent",underline:"hover",size:"12",noWrap:!0,onClick:()=>{n(()=>(0,A.gD)(e.name)),i()},children:e.name},e.name))})})]})}},additions:{render:function(e){let{value:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"flex justify-between w-full gap-2",children:(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"additions"})}),t&&(0,r.jsx)(o.xrM,{children:(0,r.jsx)("div",{className:"flex flex-wrap gap-2 mb-2",children:t.map(e=>(0,r.jsx)("div",{children:(0,r.jsx)(o.XxW,{value:e,label:"contract ID"})},e))})})]})}},removals:{render:function(e){let{value:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"flex justify-between w-full gap-2",children:(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"removals"})}),t&&(0,r.jsx)(o.xrM,{children:(0,r.jsx)("div",{className:"flex flex-col gap-2 mb-2",children:Object.entries(t).map(e=>{let[t,n]=e;return(0,r.jsxs)("div",{className:"flex gap-2 justify-between w-full",children:[(0,r.jsx)(o.XxW,{value:t,label:"contract ID"}),(0,r.jsx)(o.ua7,{content:n,children:(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:n})})]},t)})})})]})}},error:{render:e=>{let{value:t}=e;return(0,r.jsx)("div",{className:"flex flex-col w-full gap-2",children:(0,r.jsx)(o.UQy,{type:"single",children:(0,r.jsxs)(o.Qdk,{value:"error",variant:"ghost",children:[(0,r.jsx)(o.o48,{children:(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"error"})}),(0,r.jsx)(o.vF,{children:(0,r.jsx)(o.xvT,{color:"contrast",children:t})})]})})})}},hint:{render:e=>{let{value:t}=e;return(0,r.jsx)("div",{className:"flex flex-col w-full gap-2",children:(0,r.jsx)(o.xvT,{color:"contrast",children:t})})}},allowance:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"allowance"}),(0,r.jsx)(o.YKL,{variant:"value",value:new(ef())(t)})]})}},balance:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"balance"}),(0,r.jsx)(o.YKL,{variant:"value",value:new(ef())(t)})]})}},address:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"address"}),(0,r.jsx)(o.XxW,{value:t,type:"address"})]})}},account:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"account"}),(0,r.jsx)(o.XxW,{value:t})]})}}};var ej=n(54155),ek=n(63955);let eE={name:""};function eS(e){let{trigger:t,open:n,onOpenChange:a}=e,{id:s,closeDialog:l}=eA(),u=(0,f.sg)(),c=(0,ek.cI)({mode:"all",defaultValues:eE}),d=(0,i.useCallback)(async e=>{let t=await u.delete({params:{name:e.name}});t.error?(0,o.OHV)(t.error):((0,o.OPV)("Bucket permanently deleted."),c.reset(),l())},[c,u,l]),h=(0,i.useMemo)(()=>({name:{type:"text",title:"Name",placeholder:s,validation:{required:"required",validate:{notDefault:()=>"default"!==s||"cannot delete default bucket",equals:e=>e===s||"bucket name does not match"}}}}),[s]),p=(0,o.WsO)(h);return(0,r.jsx)(o.VqE,{title:"Delete Bucket",trigger:t,open:n,onOpenChange:e=>{e||c.reset(eE),a(e)},contentVariants:{className:"w-[400px]"},onSubmit:c.handleSubmit(d,p),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(o.nvN,{size:"14",children:"Before you delete a bucket you must ensure that it is empty. Re-enter the bucket name to confirm the removal."}),(0,r.jsx)("div",{children:(0,r.jsx)(o.EKh,{color:"gray",children:s})}),(0,r.jsx)(o.yEL,{name:"name",form:c,fields:h,autoComplete:"off"}),(0,r.jsx)(o.ZqQ,{variant:"red",form:c,children:"Delete"})]})})}let e_={visibility:"public"};function eC(e){let{trigger:t,open:n,onOpenChange:a}=e,{id:s,closeDialog:l}=eA(),u=(0,f.D5)({disabled:!n,params:{name:s},config:{swr:{revalidateOnFocus:!1}}}),c=(0,f.ol)(),d=(0,ek.cI)({mode:"all",defaultValues:e_});(0,i.useEffect)(()=>{var e,t;d.reset({visibility:(null===(t=u.data)||void 0===t?void 0:null===(e=t.policy)||void 0===e?void 0:e.publicReadAccess)?"public":"private"})},[d,u.data]);let h=(0,i.useCallback)(async e=>{let t=await c.put({params:{name:s},payload:{policy:{publicReadAccess:"public"===e.visibility}}});t.error?(0,o.OHV)(t.error):((0,o.OPV)("Bucket policy has been updated."),d.reset(),l())},[d,s,c,l]),p=(0,i.useMemo)(()=>({visibility:{type:"text",title:"Read Access",placeholder:s,validation:{required:"required"},options:[{label:"Public",value:"public"},{label:"Private",value:"private"}]}}),[s]),m=(0,o.WsO)(p);return(0,r.jsx)(o.VqE,{title:"Change Policy: ".concat(s),trigger:t,open:n,onOpenChange:e=>{e||d.reset(e_),a(e)},contentVariants:{className:"w-[400px]"},onSubmit:d.handleSubmit(h,m),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(o.nvN,{size:"14",children:"Update the bucket's policy to set read access to either private or public. Files in public read access buckets can be accessed without authentication via the S3 API."}),(0,r.jsx)(o.WyV,{name:"visibility",form:d,fields:p}),(0,r.jsx)(o.ZqQ,{variant:"accent",form:d,children:"Update policy"})]})})}let eO={name:""};function eM(e){let{trigger:t,open:n,onOpenChange:a}=e,{closeDialog:s}=eA(),l=(0,f.oV)(),u=(0,ek.cI)({mode:"all",defaultValues:eO}),c=(0,i.useCallback)(async e=>{let t=await l.post({payload:{name:e.name}});t.error?(0,o.OHV)(t.error):((0,o.OPV)("Bucket created."),u.reset(),s())},[u,l,s]),d=(0,i.useMemo)(()=>({name:{type:"text",title:"Name",placeholder:"photos, backups, etc",validation:{required:"required"}}}),[]),h=(0,o.WsO)(d);return(0,r.jsx)(o.VqE,{title:"Create Bucket",trigger:t,open:n,onOpenChange:e=>{e||u.reset(eO),a(e)},contentVariants:{className:"w-[400px]"},onSubmit:u.handleSubmit(c,h),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(o.nvN,{size:"14",children:"A bucket is an isolated collection of files."}),(0,r.jsx)(o.yEL,{name:"name",form:u,fields:d,autoComplete:"off"}),(0,r.jsx)(o.ZqQ,{form:u,children:"Create bucket"})]})})}let eT=(0,i.createContext)({}),eA=()=>(0,i.useContext)(eT);function eP(e){let{children:t}=e,n=function(){let[e,t]=(0,i.useState)(),[n,r]=(0,i.useState)(),o=(0,i.useCallback)((e,n)=>{t(e),r(n)},[t,r]),[a,s]=(0,i.useState)(),l=(0,i.useCallback)(e=>{t("confirm"),s(e)},[t,s]),u=(0,i.useCallback)(()=>{t(void 0),r(void 0),s(void 0)},[t,r,s]),c=(0,i.useCallback)(e=>{e||u()},[u]);return{dialog:e,id:n,openDialog:o,confirm:a,openConfirmDialog:l,closeDialog:u,onOpenChange:c}}();return(0,r.jsx)(eT.Provider,{value:n,children:t})}function eN(){var e;let{dialog:t,openDialog:n,onOpenChange:i,closeDialog:a,confirm:s,openConfirmDialog:l}=eA(),u=(0,f.Wl)(),c=(0,f.X2)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(U,{open:"cmdk"===t,onOpenChange:i,setOpen:()=>n("cmdk")}),(0,r.jsx)(o.DLL,{open:"settings"===t,onOpenChange:i,showGpuSetting:!0}),(0,r.jsx)(eh,{}),(0,r.jsx)(o.YNn,{address:null===(e=c.data)||void 0===e?void 0:e.address,isValidating:c.isValidating,open:"addressDetails"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(em,{}),(0,r.jsx)(o.D_D,{open:"connectPeer"===t,connect:e=>u.post({payload:e}),onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(eM,{open:"filesCreateBucket"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(eS,{open:"filesDeleteBucket"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(eC,{open:"filesBucketPolicy"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(Y,{open:"filesCreateDirectory"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(ec,{open:"filesSearch"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(eo,{open:"hostsManageAllowBlock"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(ea.g,{open:"hostsFilterAddress"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(ej.a,{open:"hostsFilterPublicKey"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(es.p,{open:"contractsFilterAddress"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(el.C,{open:"contractsFilterPublicKey"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(ex,{open:"alerts"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(o.QHy,{open:"confirm"===t,params:s,onOpenChange:e=>e?l(s):a()})]})}},48528:function(e,t,n){"use strict";n.d(t,{Z:function(){return L},Y:function(){return D}});var r=n(52322),i=n(35701),o=n(5632),a=n(2784),s=n(88242),l=n(25205),u=n(86811),c=n(9969),d=n(91652);function f(e){let{path:t}=e,n=(0,c.wy)({params:(0,d.W0)(t),config:{swr:{dedupingInterval:5e3}}});return(0,r.jsxs)(i.Xiv,{disabled:!n.data,onSelect:()=>{n.data&&(0,i.vQq)(JSON.stringify(n.data.object,null,2),"object metadata")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.olJ,{})}),"Copy metadata"]})}function h(e){let{path:t}=e,{downloadFiles:n,getFileUrl:o,navigateToFile:l}=D(),h=function(){let{openConfirmDialog:e}=(0,u.Rh)(),t=(0,c.xw)();return(0,a.useCallback)(n=>e({title:"Delete file",action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.Jrl,{}),"Delete"]}),variant:"red",body:(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)(i.nvN,{size:"14",children:"Are you sure you would like to delete the following file:"}),(0,r.jsx)(i.nvN,{size:"14",font:"mono",className:"break-words",children:n})]}),onConfirm:async()=>{let e=await t.delete({params:(0,d.W0)(n)});e.error&&(0,i.OHV)("Error deleting file."),(0,i.OPV)("Successfully deleted file.")}}),[e,t])}();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,r.jsx)(s.c_L,{})}),contentProps:{align:"start"},children:[(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:async()=>{n([t])},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.vzB,{})}),"Download file"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>h(t),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.Jrl,{})}),"Delete file"]}),(0,r.jsx)(i.Juw,{children:"Filter"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{l(t)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.q0D,{})}),"Filter by file name"]}),(0,r.jsx)(i.Juw,{children:"Copy"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{(0,i.vQq)(t,"file path")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.olJ,{})}),"Copy file path"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{(0,i.vQq)((0,d.vt)(t),"file path")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.olJ,{})}),"Copy file name"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{(0,i.vQq)(o(t,!1),"file URL")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.olJ,{})}),"Copy URL"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{(0,i.E5z)(o(t,!0),(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)(i.xvT,{children:"Copied authenticated file URL to clipboard."}),(0,r.jsxs)(i.xvT,{children:["The authenticated URL contains the ",(0,r.jsx)(i.EKh,{children:"renterd"})," ","password, be careful when pasting or sharing the URL."]})]}),{icon:(0,r.jsx)("div",{className:"!flex-none w-5",children:(0,r.jsx)(s.qdM,{className:"w-5 text-amber-600"})}),duration:1e4,className:"!max-w-[1200px]"})},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.olJ,{})}),"Copy authenticated URL"]}),(0,r.jsx)(f,{path:t})]})}function p(e){let{path:t,size:n}=e,o=function(){let{openConfirmDialog:e}=(0,u.Rh)(),t=(0,c.xw)();return(0,a.useCallback)((n,o)=>e({title:"Delete directory",action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.Jrl,{}),"Delete"]}),variant:"red",body:(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsxs)(i.nvN,{size:"14",children:["Are you sure you would like to delete the following directory which contains ",(0,l.vW)(o)," of data:"]}),(0,r.jsx)(i.nvN,{size:"14",font:"mono",className:"break-words",children:n})]}),onConfirm:async()=>{let e=await t.delete({params:{...(0,d.W0)(n),batch:!0}});e.error&&(0,i.OHV)("Error deleting directory."),(0,i.OPV)("Successfully deleted directory.")}}),[e,t])}();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,r.jsx)(s.ROc,{size:16})}),contentProps:{align:"start"},children:[(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{o(t,n)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.Jrl,{})}),"Delete directory"]})]})}var m=n(6391),v=n.n(m),g=n(82439),y=n(82851),x=n(829),b=n.n(x);function w(e){var t,n,o;let{path:a,isUploading:s,type:l,health:u,size:f}=e,h="directory"===l,p=(0,c.wy)({disabled:s||h,params:(0,d.W0)(a),config:{swr:{dedupingInterval:5e3}}}),{displayHealth:m,label:v}=(0,g.B)({health:u,size:f,isDirectory:h});if(p.isValidating)return(0,r.jsx)(j,{displayHealth:m,label:v,children:(0,r.jsx)("div",{className:"flex justify-center my-2",children:(0,r.jsx)(i.xgg,{})})});if(!(null===(t=p.data)||void 0===t?void 0:t.object))return(0,r.jsx)(j,{displayHealth:m,label:v,children:(0,r.jsx)(i.xvT,{size:"12",children:"Error fetching slab metadata."})});let y=b()(p.data.object.slabs.map(e=>{var t;return{...e.slab,isPartialSlab:!!e.slab.shards,contractSetShards:(null===(t=e.slab.shards)||void 0===t?void 0:t.length)?function(e){let{totalShards:t,minShards:n,health:r}=e,i=Math.ceil(r*(t-n)),o=i+n;return o<=0?0:o>t?t:o}({totalShards:e.slab.shards.length,minShards:e.slab.minShards,health:e.slab.health}):0}}),"contractSetShards");return(0,r.jsx)(j,{className:y.length>15?"h-[300px]":"",displayHealth:m,label:v,minShards:null===(n=y.find(e=>e.minShards))||void 0===n?void 0:n.minShards,totalShards:null===(o=y.find(e=>e.shards))||void 0===o?void 0:o.shards.length,children:y.map(e=>(0,r.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",className:"flex items-center",font:"mono",children:["Slab ",e.key.replace("key:","").slice(0,4),":"]}),(0,r.jsx)(i.xvT,{size:"12",className:"flex items-center",children:e.isPartialSlab?"".concat(e.contractSetShards,"/").concat(e.shards.length):"partial slab"})]},e.key))})}function j(e){let{className:t,displayHealth:n,label:o,children:a,minShards:s,totalShards:l}=e;return(0,r.jsxs)("div",{className:(0,y.cx)("z-10 flex flex-col pb-1 -mx-1 overflow-hidden",t),children:[(0,r.jsxs)("div",{className:"flex justify-between gap-2 pt-0.5 pb-px px-2",children:[(0,r.jsx)(i.xvT,{size:"12",children:o}),(0,r.jsxs)(i.xvT,{size:"12",children:[(100*n).toFixed(0),"%"]})]}),s&&l?(0,r.jsxs)("div",{className:"flex justify-between gap-2 pt-0.5 pb-px px-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:"redundancy"}),(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",children:[s," of ",l]})]}):null,(0,r.jsx)("div",{className:"px-2",children:(0,r.jsx)(i.Z0O,{className:"w-full my-1"})}),(0,r.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,r.jsx)(i.xrM,{children:(0,r.jsx)("div",{className:"px-2",children:a})})})]})}function k(e){let{name:t,isUploading:n,type:o,health:a,size:s}=e,l="directory"===o,{displayHealth:u,label:c,color:d,icon:f}=(0,g.B)({health:a,size:s,isDirectory:l});return l?".."===t?null:(0,r.jsx)(i.zsw,{rootProps:{openDelay:100},trigger:(0,r.jsx)(i.xvT,{color:d,className:"flex cursor-pointer",children:f}),children:(0,r.jsx)("div",{className:"z-10 flex flex-col -mx-1 overflow-hidden",children:(0,r.jsxs)("div",{className:"flex justify-between gap-2 py-0.5 px-2",children:[(0,r.jsx)(i.xvT,{size:"12",children:c}),(0,r.jsxs)(i.xvT,{size:"12",children:[(100*u).toFixed(0),"%"]})]})})}):n?(0,r.jsx)(i.xgg,{}):(0,r.jsx)(i.zsw,{rootProps:{openDelay:100},trigger:(0,r.jsx)(i.xvT,{color:d,className:"flex cursor-pointer",children:f}),children:(0,r.jsx)(w,{...e})})}function E(e){let{name:t}=e,{openDialog:n}=(0,u.Rh)();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,r.jsx)(s.fi8,{size:16})}),contentProps:{align:"start"},children:[(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{n("filesBucketPolicy",t)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.Zbu,{})}),"Change policy"]}),(0,r.jsxs)(i.Xiv,{disabled:"default"===t,onSelect:()=>{n("filesDeleteBucket",t)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.Jrl,{})}),"Delete bucket"]})]})}n(65680);let S=[{id:"type",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-2 [&+*]:!pl-0",render:function(e){let{data:{isUploading:t,type:n,name:o,path:a,size:l}}=e,{setActiveDirectory:u}=D();return t?(0,r.jsx)(i.zxk,{variant:"ghost",state:"waiting",children:(0,r.jsx)(s.c_L,{})}):".."===o?(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",onClick:e=>{e.stopPropagation(),u(e=>e.slice(0,-1))},children:(0,r.jsx)(s.ROc,{size:16})}):"bucket"===n?(0,r.jsx)(E,{name:o}):"directory"===n?(0,r.jsx)(p,{path:a,size:l}):(0,r.jsx)(h,{path:a})}},{id:"name",label:"name",category:"general",contentClassName:"max-w-[600px]",render:function(e){let{data:{name:t,type:n}}=e,{setActiveDirectory:o}=D();return"bucket"===n?(0,r.jsx)(i.xvT,{ellipsis:!0,color:"accent",weight:"semibold",className:"cursor-pointer",onClick:e=>{e.stopPropagation(),o(()=>[t])},children:t}):"directory"===n?".."===t?(0,r.jsx)(i.xvT,{ellipsis:!0,color:"accent",weight:"semibold",className:"cursor-pointer",onClick:e=>{e.stopPropagation(),o(e=>e.slice(0,-1))},children:t}):(0,r.jsx)(i.xvT,{ellipsis:!0,color:"accent",weight:"semibold",className:"cursor-pointer",onClick:e=>{e.stopPropagation(),o(e=>e.concat(t.slice(0,-1)))},children:t}):(0,r.jsx)(i.xvT,{ellipsis:!0,weight:"semibold",children:t})}},{id:"readAccess",label:"public read access",contentClassName:"justify-center",render:function(e){var t,n;let{data:o}=e;if(".."===o.name)return null;let a=null===(n=o.bucket)||void 0===n?void 0:null===(t=n.policy)||void 0===t?void 0:t.publicReadAccess;return(0,r.jsx)(i.ua7,{content:a?"The bucket policy allows public read access.":"The bucket policy only allows private read access.",children:(0,r.jsx)("div",{children:(0,r.jsx)(i.zxk,{variant:"ghost",state:"waiting",children:(0,r.jsx)(i.xvT,{color:a?"contrast":"verySubtle",className:"flex gap-0.5 items-center",children:a?(0,r.jsx)(s.nDH,{}):(0,r.jsx)(s.Lur,{})})})})})}},{id:"size",label:"size",contentClassName:"justify-end",render:function(e){let{data:{type:t,name:n,size:o,isUploading:a}}=e;return"bucket"===t?null:a?(0,r.jsx)(i.xgg,{}):".."===n?null:(0,r.jsx)(i.m2c,{size:"12",value:new(v())(o),variant:"value",color:"subtle",format:e=>(0,l.vW)(e.toNumber())})}},{id:"health",label:"health",contentClassName:"justify-center",render:function(e){let{data:t}=e;return"bucket"===t.type?null:(0,r.jsx)(k,{...t})}}];var _=n(81471),C=n(12436),O=n.n(C),M=n(95753),T=n(28460),A=n.n(T),P=n(79381),N=n(26592);let R=(0,a.createContext)({}),D=()=>(0,a.useContext)(R);function L(e){let{children:t}=e,n=function(){let{configurableColumns:e,enabledColumns:t,sortableColumns:n,toggleColumnVisibility:r,setColumnsVisible:s,setColumnsHidden:l,toggleSort:u,setSortDirection:f,setSortField:h,sortField:p,sortDirection:m,resetDefaultColumnVisibility:v}=(0,i.oy6)("renterd/v0/objects",{columns:S,columnsDefaultVisible:_.gd,sortOptions:_.Fo,defaultSortField:_.nw}),g=(0,o.useRouter)(),{filters:y,setFilter:x,removeFilter:w,removeLastFilter:j,resetFilters:k}=(0,i.Uu5)(),E=(0,a.useMemo)(()=>(g.query.path||[]).map(decodeURIComponent),[g.query.path]),C=(0,a.useMemo)(()=>E[0],[E]),T=(0,a.useMemo)(()=>(0,d.rd)(E)+"/",[E]),R=(0,a.useCallback)(e=>{let t=e(E);g.push("/files/"+t.map(encodeURIComponent).join("/"))},[g,E]),{uploadFiles:D,uploadsList:L,uploadCancel:F}=function(e){let{activeDirectoryPath:t}=e,n=(0,c.B$)(),r=(0,c.ZM)(),[o,s]=(0,a.useState)({}),l=(0,a.useCallback)(e=>{s(t=>({...t,[e.path]:{id:e.path,path:e.path,bucket:e.bucket,name:e.name,size:e.size,loaded:e.loaded,isUploading:!0,controller:e.controller,type:"file"}}))},[s]),u=(0,a.useCallback)(e=>{s(t=>t[e.path]?{...t,[e.path]:{...t[e.path],path:e.path,loaded:e.loaded,size:e.size}}:t)},[s]),f=(0,a.useCallback)(e=>{s(t=>(delete t[e],{...t}))},[s]),h=(0,a.useCallback)(e=>{e.controller.abort()},[]),p=async e=>{e.forEach(async e=>{var a;let s=e.name,c=(0,d.pC)(t,s),h=(0,d.ru)(c),p=null===(a=n.data)||void 0===a?void 0:a.find(e=>e.name===h);if(o[c]){(0,i.OHV)("Already uploading file: ".concat(c));return}let m=new AbortController,v=O()(e=>u({path:c,loaded:e.loaded,size:e.total}),2e3);l({path:c,name:s,bucket:p,loaded:0,size:1,controller:m});let g=await r.put({params:(0,d.W0)(c),payload:e,config:{axios:{onUploadProgress:v,signal:m.signal}}});g.error?("canceled"===g.error?(0,i.RFt)("File upload canceled."):(0,i.OHV)(g.error),f(c)):(f(c),(0,i.OPV)("Upload complete: ".concat(s)))})},m=(0,a.useMemo)(()=>Object.entries(o).map(e=>e[1]),[o]);return{uploadFiles:p,uploadsList:m,uploadCancel:h}}({activeDirectoryPath:T}),{downloadFiles:z,downloadsList:V,getFileUrl:Z,downloadCancel:I}=function(){let e=(0,c.B$)(),t=(0,c.p$)(),[n,r]=(0,a.useState)({}),o=(0,a.useCallback)(e=>{r(t=>({...t,[e.path]:{id:e.path,path:e.path,bucket:e.bucket,name:e.name,size:e.size,loaded:e.loaded,isUploading:!1,controller:e.controller,type:"file"}}))},[r]),s=(0,a.useCallback)(e=>{r(t=>t[e.path]?{...t,[e.path]:{...t[e.path],path:e.path,loaded:e.loaded,size:e.size}}:t)},[r]),l=(0,a.useCallback)(e=>{r(t=>(delete t[e],{...t}))},[r]),u=(0,a.useCallback)(e=>{e.controller.abort()},[]),f=async r=>{r.forEach(async r=>{var a;let u=!1,c=(0,d.ru)(r),f=null===(a=e.data)||void 0===a?void 0:a.find(e=>e.name===c),h=(0,d.vt)(r);if(n[r]){(0,i.OHV)("Already downloading file: ".concat(r));return}let p=new AbortController,m=O()(e=>{u||s({path:r,loaded:e.loaded,size:e.total})},2e3);o({path:r,name:h,bucket:f,loaded:0,size:1,controller:p});let v=await t.get(h,{params:(0,d.W0)(r),config:{axios:{onDownloadProgress:m,signal:p.signal}}});u=!0,v.error&&("canceled"===v.error?(0,i.RFt)("File download canceled."):(0,i.OHV)(v.error)),l(r)})},h=(0,a.useMemo)(()=>Object.entries(n).map(e=>e[1]),[n]),{settings:p}=(0,M.Hv)(),m=(0,a.useCallback)((e,t)=>{let{bucket:n,key:r}=(0,d.W0)(e),i="/worker/objects/".concat(r,"?bucket=").concat(n),o=p.api||location.origin,a=o.startsWith("https")?"https":"http",s=o.replace("https://","").replace("http://","");return t?"".concat(a,"://:").concat(p.password,"@").concat(s,"/api").concat(i):"".concat(a,"://").concat(s,"/api").concat(i)},[p]);return{downloadFiles:f,downloadsList:h,getFileUrl:m,downloadCancel:u}}(),{limit:B,offset:H,response:U,dataset:W}=function(e){var t,n;let{activeDirectoryPath:r,uploadsList:s,sortDirection:l,sortField:u,filters:f}=e,h=(0,c.B$)(),p=(0,o.useRouter)(),m=Number(p.query.limit||50),v=Number(p.query.offset||0),g=(0,d.ru)(r),y=null===(t=h.data)||void 0===t?void 0:t.find(e=>e.name===g),x=(null===(n=f.find(e=>"fileNamePrefix"===e.id))||void 0===n?void 0:n.value)||"",w=(0,a.useMemo)(()=>{let e={...(0,d.W0)(r),sortBy:u,sortDir:l,offset:v,limit:m};return x&&(e.prefix=x),e},[r,x,u,l,v,m]),j=(0,c.Jv)({disabled:!g,params:w,config:{swr:{refreshInterval:(0,i.sWj)(1)}}}),{dataset:k}=(0,N.G)(),E=(0,P.ZP)(j.isValidating||h.isValidating?null:[j.data,s,k,h.data,g,r],()=>{var e,t;let n={};y?j.data&&(null===(t=j.data.entries)||void 0===t||t.forEach(e=>{let{name:t,size:r,health:i}=e,o=(0,d.M7)(g,t);n[o]={id:o,path:o,bucket:y,size:r,health:i,name:(0,d.vt)(t),type:(0,d.IQ)(t)?"directory":"file"}}),s.filter(e=>{let{path:t,name:n}=e;return t===(0,d.pC)(r,n)}).forEach(e=>{n[e.path]=e})):null===(e=h.data)||void 0===e||e.forEach(e=>{let t=e.name,r=(0,d.wv)(t,"");n[t]={id:r,path:r,bucket:e,size:0,health:0,name:t,type:"bucket"}});let i=b()(A()(n).map(e=>e[1]),u);return"desc"===l&&i.reverse(),i},{keepPreviousData:!0});return{limit:m,offset:v,response:j,dataset:E.data}}({activeDirectoryPath:T,uploadsList:L,sortField:p,sortDirection:m,filters:y}),q=(0,a.useMemo)(()=>W?E.length>0&&W.length>0?[{id:"..",name:"..",path:"..",type:"directory"},...W]:W:null,[W]),$=(0,a.useMemo)(()=>S.filter(e=>e.fixed||t.includes(e.id)),[t]),K=(0,i.c2j)(W,U.isValidating,U.error,y),Y=0===E.length,G=1===E.length,X=E.length>0,J=(0,a.useCallback)(e=>{R(()=>[C,...(0,d.gD)(e)]),x({id:"fileNamePrefix",label:"",value:(0,d.vt)(e)})},[C,R,x]);return{isViewingBuckets:Y,isViewingABucket:X,isViewingRootOfABucket:G,activeBucket:C,activeDirectory:E,setActiveDirectory:R,activeDirectoryPath:T,navigateToFile:J,dataState:K,limit:B,offset:H,datasetPage:q,pageCount:(null==W?void 0:W.length)||0,columns:$,uploadFiles:D,uploadsList:L,uploadCancel:F,downloadFiles:z,downloadsList:V,downloadCancel:I,configurableColumns:e,enabledColumns:t,sortableColumns:n,toggleColumnVisibility:r,setColumnsVisible:s,setColumnsHidden:l,toggleSort:u,setSortDirection:f,setSortField:h,sortField:p,filters:y,setFilter:x,removeFilter:w,removeLastFilter:j,resetFilters:k,sortDirection:m,resetDefaultColumnVisibility:v,getFileUrl:Z}}();return(0,r.jsx)(R.Provider,{value:n,children:t})}},91652:function(e,t,n){"use strict";function r(e,t){let n=t.startsWith("/")?t.slice(1):t;return e+n}function i(e,t){let n=r(e,t);return n.endsWith("/")?n:n+"/"}function o(e,t){return"".concat(e).concat(t)}function a(e){return e.split("/")[0]}function s(e){return{bucket:a(e),key:(function(e){let t=e.split("/").slice(1).join("/");return"/".concat(t)})(e).slice(1).split("/").map(encodeURIComponent).join("/")}}function l(e){let t=e.split("/");return e.endsWith("/")?"".concat(t[t.length-2],"/"):t[t.length-1]}function u(e){return e.endsWith("/")}function c(e){return u(e)?e.slice(0,-1).split("/"):e.split("/").slice(0,-1)}function d(e){return e.join("/")}n.d(t,{IQ:function(){return u},M7:function(){return o},W0:function(){return s},gD:function(){return c},pC:function(){return r},rd:function(){return d},ru:function(){return a},vt:function(){return l},wv:function(){return i}})},81471:function(e,t,n){"use strict";n.d(t,{Fo:function(){return o},gd:function(){return r},nw:function(){return i}});let r=["type","name","readAccess","size","health"],i="name",o=[{id:"name",label:"name",category:"general"},{id:"health",label:"health",category:"general"}]},19513:function(e,t,n){"use strict";n.d(t,{x:function(){return eu},l:function(){return el}});var r,i,o=n(52322),a=n(35701),s=n(9969),l=n(2784);let u=["allow","netAddress","publicKey","lastScan","lastAnnouncement","totalScans","uptime","hasContract","ap_usable","ap_scoreOverall"];var c=n(5632),d=n(88242),f=n(25205),h=n(19785),p=n(66700),m=n(88811);function v(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function g(e,t){return(0,h.Z)(2,arguments),function(e,t){(0,h.Z)(2,arguments);var n=(0,p.Z)(e).getTime(),r=v(t);return new Date(n+r)}(e,-v(t))}function y(e){(0,h.Z)(1,arguments);var t=(0,p.Z)(e),n=t.getUTCDay();return t.setUTCDate(t.getUTCDate()-((n<1?7:0)+n-1)),t.setUTCHours(0,0,0,0),t}function x(e){(0,h.Z)(1,arguments);var t=(0,p.Z)(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=y(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=y(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function b(e,t){(0,h.Z)(1,arguments);var n=t||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,o=null==i?0:v(i),a=null==n.weekStartsOn?o:v(n.weekStartsOn);if(!(a>=0&&a<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=(0,p.Z)(e),l=s.getUTCDay();return s.setUTCDate(s.getUTCDate()-((l=1&&l<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=new Date(0);u.setUTCFullYear(r+1,0,l),u.setUTCHours(0,0,0,0);var c=b(u,t),d=new Date(0);d.setUTCFullYear(r,0,l),d.setUTCHours(0,0,0,0);var f=b(d,t);return n.getTime()>=c.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function j(e,t){for(var n=Math.abs(e).toString();n.length0?n:1-n;return j("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):j(n+1,2)},d:function(e,t){return j(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return j(e.getUTCHours()%12||12,t.length)},H:function(e,t){return j(e.getUTCHours(),t.length)},m:function(e,t){return j(e.getUTCMinutes(),t.length)},s:function(e,t){return j(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length;return j(Math.floor(e.getUTCMilliseconds()*Math.pow(10,n-3)),t.length)}},E={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function S(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;return 0===o?n+String(i):n+String(i)+(t||"")+j(o,2)}function _(e,t){return e%60==0?(e>0?"-":"+")+j(Math.abs(e)/60,2):C(e,t)}function C(e,t){var n=e>0?"-":"+",r=Math.abs(e);return n+j(Math.floor(r/60),2)+(t||"")+j(r%60,2)}var O={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return k.y(e,t)},Y:function(e,t,n,r){var i=w(e,r),o=i>0?i:1-i;return"YY"===t?j(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):j(o,t.length)},R:function(e,t){return j(x(e),t.length)},u:function(e,t){return j(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return j(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return j(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return k.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return j(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=function(e,t){(0,h.Z)(1,arguments);var n=(0,p.Z)(e);return Math.round((b(n,t).getTime()-(function(e,t){(0,h.Z)(1,arguments);var n=t||{},r=n.locale,i=r&&r.options&&r.options.firstWeekContainsDate,o=null==i?1:v(i),a=null==n.firstWeekContainsDate?o:v(n.firstWeekContainsDate),s=w(e,t),l=new Date(0);return l.setUTCFullYear(s,0,a),l.setUTCHours(0,0,0,0),b(l,t)})(n,t).getTime())/6048e5)+1}(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):j(i,t.length)},I:function(e,t,n){var r=function(e){(0,h.Z)(1,arguments);var t=(0,p.Z)(e);return Math.round((y(t).getTime()-(function(e){(0,h.Z)(1,arguments);var t=x(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),y(n)})(t).getTime())/6048e5)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):j(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):k.d(e,t)},D:function(e,t,n){var r=function(e){(0,h.Z)(1,arguments);var t=(0,p.Z)(e),n=t.getTime();return t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),Math.floor((n-t.getTime())/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):j(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return j(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return j(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return j(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?E.noon:0===i?E.midnight:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?E.evening:i>=12?E.afternoon:i>=4?E.morning:E.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return k.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):k.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):j(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):j(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):k.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):k.s(e,t)},S:function(e,t){return k.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return _(i);case"XXXX":case"XX":return C(i);default:return C(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return _(i);case"xxxx":case"xx":return C(i);default:return C(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+S(i,":");default:return"GMT"+C(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+S(i,":");default:return"GMT"+C(i,":")}},t:function(e,t,n,r){return j(Math.floor((r._originalDate||e).getTime()/1e3),t.length)},T:function(e,t,n,r){return j((r._originalDate||e).getTime(),t.length)}};function M(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function T(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var A={p:T,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return M(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",M(i,t)).replace("{{time}}",T(o,t))}},P=n(1645),N=["D","DD"],R=["YY","YYYY"];function D(e,t,n){if("YYYY"===e)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var L=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,F=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,z=/^'([^]*?)'?$/,V=/''/g,Z=/[a-zA-Z]/;function I(e,t,n){(0,h.Z)(2,arguments);var r=String(t),i=n||{},o=i.locale||m.Z,a=o.options&&o.options.firstWeekContainsDate,s=null==a?1:v(a),l=null==i.firstWeekContainsDate?s:v(i.firstWeekContainsDate);if(!(l>=1&&l<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=o.options&&o.options.weekStartsOn,c=null==u?0:v(u),d=null==i.weekStartsOn?c:v(i.weekStartsOn);if(!(d>=0&&d<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw RangeError("locale must contain localize property");if(!o.formatLong)throw RangeError("locale must contain formatLong property");var f=(0,p.Z)(e);if(!function(e){return(0,h.Z)(1,arguments),(!!function(e){return(0,h.Z)(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}(e)||"number"==typeof e)&&!isNaN(Number((0,p.Z)(e)))}(f))throw RangeError("Invalid time value");var y=(0,P.Z)(f),x=g(f,y),b={firstWeekContainsDate:l,weekStartsOn:d,locale:o,_originalDate:f};return r.match(F).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,A[t])(e,o.formatLong,b):e}).join("").match(L).map(function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return n.match(z)[1].replace(V,"'");var a=O[r];if(a)return i.useAdditionalWeekYearTokens||-1===R.indexOf(n)||D(n,t,e),i.useAdditionalDayOfYearTokens||-1===N.indexOf(n)||D(n,t,e),a(x,n,o.localize,b);if(r.match(Z))throw RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n}).join("")}var B=n(29193);function H(e){(0,h.Z)(1,arguments);var t=(0,p.Z)(e);return t.setHours(0,0,0,0),t}var U=n(848),W=n(95753),q=n(6391),$=n.n(q);let K=[{id:"actions",label:"",fixed:!0,category:"general",cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:t}=e;return(0,o.jsx)(U.G,{address:t.netAddress,publicKey:t.publicKey})}},{id:"allow",label:"allowed",category:"general",contentClassName:"justify-center",render:function(e){var t;let{data:n}=e,r=(0,s.s2)({config:{swr:{dedupingInterval:5e3}}}),i=!!(null===(t=r.data)||void 0===t?void 0:t.length);return(0,o.jsx)(a.ua7,{side:"right",content:(i?"Allowlist ".concat(n.isOnAllowlist?"allows this host.":"does not allow this host."):"Allowlist is inactive.")+" Blocklist ".concat(n.isOnBlocklist?"blocks this host.":"does not block this host."),children:(0,o.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:n.isBlocked?"red":"green",children:n.isBlocked?(0,o.jsx)(d.SmH,{}):(0,o.jsx)(d.DI$,{})})}),(0,o.jsxs)("div",{className:"flex flex-col",children:[(0,o.jsx)(a.xvT,{size:"10",color:n.isOnBlocklist?"red":"verySubtle",noWrap:!0,children:"Blocklist"}),(0,o.jsx)(a.xvT,{size:"10",color:i?n.isOnAllowlist?"green":"red":"verySubtle",noWrap:!0,children:"Allowlist"})]})]})})}},{id:"ap_usable",label:"usable",category:"autopilot",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.ua7,{side:"right",content:t.usable?"Host is usable":"Host is not usable",children:(0,o.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:t.usable?"green":"red",children:t.usable?(0,o.jsx)(d.DI$,{}):(0,o.jsx)(d.SmH,{})})}),(0,o.jsx)("div",{className:"flex flex-col",children:t.unusableReasons.map(e=>(0,o.jsx)(a.xvT,{size:"10",noWrap:!0,children:e},e))})]})}):(0,o.jsx)(a.ua7,{side:"right",content:"Autopilot is not configured",children:(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:"subtle",children:(0,o.jsx)(d.I98,{})})})})}},{id:"ap_gouging",label:"gouging",category:"autopilot",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.ua7,{side:"right",content:t.gouging?"Host is price gouging":"Host is not price gouging",children:(0,o.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:t.gouging?"red":"subtle",children:t.gouging?(0,o.jsx)(d.SmH,{}):(0,o.jsx)(d.I98,{})})}),(0,o.jsx)("div",{className:"flex flex-col",children:Object.entries(t.gougingBreakdown).filter(e=>{let[t,n]=e;return n&&"string"==typeof n}).map(e=>{let[t,n]=e;return(0,o.jsx)(a.xvT,{size:"10",noWrap:!0,children:n},t)})})]})}):(0,o.jsx)(a.ua7,{side:"right",content:"Autopilot is not configured",children:(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:"subtle",children:(0,o.jsx)(d.I98,{})})})})}},{id:"lastScan",label:"last scan",category:"general",render:function(e){let{data:t}=e,{workflows:n}=(0,W.D)(),r=n.find(e=>{var n;return e.path.startsWith(s.RF)&&(null===(n=e.payload)||void 0===n?void 0:n.hostKey)===t.publicKey});if(r)return(0,o.jsx)(a.xgg,{});let i=(0,B.Z)(new Date(t.lastScan||0),new Date,{addSuffix:!0}),l="",u=null,c="subtle";return t.lastScan||(l="host has not been scanned",u=(0,o.jsx)(d.I98,{}),c="subtle"),t.lastScan&&!t.lastScanSuccess&&(l="host scan failed ".concat(i),u=(0,o.jsx)(d.SmH,{}),c="red"),t.lastScan&&t.lastScanSuccess&&(l="host scan succeeded ".concat(i),u=(0,o.jsx)(d.DI$,{}),c="green"),(0,o.jsx)(a.ua7,{side:"right",content:l,children:(0,o.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:c,children:u})}),t.lastScan&&(0,o.jsxs)("div",{className:"flex flex-col",children:[(0,o.jsx)(a.xvT,{size:"12",noWrap:!0,children:i}),(0,o.jsx)(a.xvT,{color:"subtle",size:"10",noWrap:!0,children:I(new Date(t.lastScan),"Pp")})]})]})})}},{id:"hasContract",label:"active contract",category:"general",contentClassName:"w-[50px]",render:e=>{let{data:t}=e,n=t.activeContractsCount.gt(0);return(0,o.jsx)(a.ua7,{side:"right",content:n?"Host has active contract":"Host does not have an active contract",children:(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:n?"green":"subtle",children:n?(0,o.jsx)(d.DI$,{}):(0,o.jsx)(d.I98,{})})})})}},{id:"netAddress",label:"address",category:"general",render:e=>{let{data:t,context:n}=e;return(0,o.jsx)(a.XxW,{value:t.netAddress,size:"12",type:"hostIp",siascanUrl:n.siascanUrl})}},{id:"publicKey",label:"public key",category:"general",render:e=>{let{data:t,context:n}=e;return(0,o.jsx)(a.XxW,{value:t.publicKey,size:"12",type:"hostPublicKey",siascanUrl:n.siascanUrl})}},{id:"lastAnnouncement",label:"last announcement",category:"general",render:e=>{let{data:t}=e;return(0,o.jsxs)("div",{className:"flex flex-col",children:[(0,o.jsxs)(a.xvT,{size:"12",noWrap:!0,children:[(0,B.Z)(new Date,new Date(t.lastAnnouncement))," ago"]}),(0,o.jsx)(a.xvT,{color:"subtle",size:"10",noWrap:!0,children:function(e,t,n){(0,h.Z)(2,arguments);var r=(0,p.Z)(e),i=(0,p.Z)(t),o={},a=o.locale,s=void 0===a?m.Z:a,l=o.weekStartsOn,u=void 0===l?0:l;if(!s.localize)throw RangeError("locale must contain localize property");if(!s.formatLong)throw RangeError("locale must contain formatLong property");if(!s.formatRelative)throw RangeError("locale must contain formatRelative property");var c=function(e,t){(0,h.Z)(2,arguments);var n=H(e),r=H(t);return Math.round((n.getTime()-(0,P.Z)(n)-(r.getTime()-(0,P.Z)(r)))/864e5)}(r,i);if(isNaN(c))throw RangeError("Invalid time value");var d=g(r,(0,P.Z)(r)),f=g(i,(0,P.Z)(i));return I(r,s.formatRelative(c<-6?"other":c<-1?"lastWeek":c<0?"yesterday":c<1?"today":c<2?"tomorrow":c<7?"nextWeek":"other",d,f,{locale:s,weekStartsOn:u}),{locale:s,weekStartsOn:u})}(new Date(t.lastAnnouncement),new Date)})]})}},{id:"totalScans",label:"total scans",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,o.jsx)(a.m2c,{size:"12",value:t.totalScans,variant:"value",format:e=>(0,f.yF)(e.toNumber())})}},{id:"uptime",label:"uptime",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,o.jsx)(a.m2c,{size:"12",value:t.uptime.div(1e9).div(60).div(60).div(24),variant:"value",format:e=>(0,f.yF)(e,{fixed:e.isZero()?0:2,units:"days"})})}},{id:"downtime",label:"downtime",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,o.jsx)(a.m2c,{size:"12",value:t.downtime.div(1e9).div(60).div(60).div(24),variant:"value",format:e=>(0,f.yF)(e,{fixed:e.isZero()?0:2,units:"days"})})}},{id:"totalInteractions",label:"total interactions",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,o.jsx)(a.m2c,{size:"12",value:t.totalInteractions,variant:"value",format:e=>(0,f.yF)(e)})}},{id:"successfulInteractions",label:"successful interactions",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,o.jsx)(a.m2c,{size:"12",value:t.successfulInteractions,variant:"value",format:e=>(0,f.yF)(e.toNumber())})}},{id:"failedInteractions",label:"failed interactions",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,o.jsx)(a.m2c,{size:"12",value:t.failedInteractions,variant:"value",format:e=>(0,f.yF)(e.toNumber())})}},{id:"contractCount",label:"contract count",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,o.jsx)(a.m2c,{size:"12",value:t.activeContractsCount,variant:"value",format:e=>(0,f.yF)(e.toNumber())})}},{id:"ap_scoreOverall",label:"overall score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.m2c,{size:"12",value:t.score,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreAge",label:"age score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.age,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreCollateral",label:"collateral score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.collateral,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreInteractions",label:"interactions score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.interactions,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scorePrices",label:"prices score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.prices,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreStorageRemaining",label:"storage remaining score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.storageRemaining,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreUptime",label:"uptime score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.uptime,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreVersion",label:"version score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.version,variant:"value",format:e=>n.isAutopilotConfigured?"-":e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"hpt_accountbalancecost",label:"account balance cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","accountbalancecost")},{id:"hpt_collateralcost",label:"collateral cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","collateralcost")},{id:"hpt_contractprice",label:"contract price",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","contractprice")},{id:"hpt_downloadbandwidthcost",label:"download bandwidth cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","downloadbandwidthcost")},{id:"hpt_dropsectorsbasecost",label:"drop sectors base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","dropsectorsbasecost")},{id:"hpt_dropsectorsunitcost",label:"drop sectors unit cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","dropsectorsunitcost")},{id:"hpt_expiry",label:"expiry",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","dropsectorsunitcost")},{id:"hpt_fundaccountcost",label:"fund account cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","fundaccountcost")},{id:"hpt_hassectorbasecost",label:"has sector cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","hassectorbasecost")},{id:"hpt_hostblockheight",label:"host block height",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","hostblockheight")},{id:"hpt_initbasecost",label:"init base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","initbasecost")},{id:"hpt_latestrevisioncost",label:"latest revision cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","latestrevisioncost")},{id:"hpt_maxcollateral",label:"max collateral",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","maxcollateral")},{id:"hpt_maxduration",label:"max duration",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","maxduration")},{id:"hpt_memorytimecost",label:"memory time cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","memorytimecost")},{id:"hpt_readbasecost",label:"read base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","readbasecost")},{id:"hpt_readlengthcost",label:"read length cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","readlengthcost")},{id:"hpt_registryentriesleft",label:"registry entries left",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","registryentriesleft")},{id:"hpt_registryentriestotal",label:"registry entries total",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","registryentriestotal")},{id:"hpt_renewcontractcost",label:"renew contract cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","renewcontractcost")},{id:"hpt_revisionbasecost",label:"revision base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","renewcontractcost")},{id:"hpt_subscriptionmemorycost",label:"subscription memory cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","subscriptionmemorycost")},{id:"hpt_subscriptionnotificationcost",label:"subscription notification cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","subscriptionnotificationcost")},{id:"hpt_swapsectorcost",label:"swap sector cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","swapsectorcost")},{id:"hpt_txnfeemaxrecommended",label:"txn fee max recommended",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","txnfeemaxrecommended")},{id:"hpt_txnfeeminrecommended",label:"txn fee min recommended",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","txnfeeminrecommended")},{id:"hpt_uid",label:"UID",category:"priceTable",contentClassName:"w-[120px] justify-end",render:X("priceTable","uid")},{id:"hpt_updatepricetablecost",label:"update price table cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","updatepricetablecost")},{id:"hpt_uploadbandwidthcost",label:"upload bandwidth cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","uploadbandwidthcost")},{id:"hpt_validity",label:"validity",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","validity")},{id:"hpt_windowsize",label:"window size",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","windowsize")},{id:"hpt_writebasecost",label:"write base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","writebasecost")},{id:"hpt_writelengthcost",label:"write length cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","writelengthcost")},{id:"hpt_writestorecost",label:"write store cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","writestorecost")},{id:"hs_acceptingcontracts",label:"accepting contracts",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:(r="settings",i="acceptingcontracts",function(e){let{data:t}=e;return t[r]?(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:t[r][i]?"green":"red",children:t[r][i]?(0,o.jsx)(d.DI$,{}):(0,o.jsx)(d.SmH,{})})}):null})},{id:"hs_baserpcprice",label:"base RPC price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","baserpcprice")},{id:"hs_collateral",label:"collateral",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","collateral")},{id:"hs_contractprice",label:"contract price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","contractprice")},{id:"hs_downloadbandwidthprice",label:"download bandwidth price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","downloadbandwidthprice")},{id:"hs_ephemeralaccountexpiry",label:"ephemeral account expiry",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:G("settings","ephemeralaccountexpiry")},{id:"hs_maxcollateral",label:"max collateral",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","maxcollateral")},{id:"hs_maxdownloadbatchsize",label:"max download batch size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:J("settings","maxdownloadbatchsize")},{id:"hs_maxduration",label:"max duration",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:G("settings","maxduration")},{id:"hs_maxephemeralaccountbalance",label:"max ephemeral account balance",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","maxephemeralaccountbalance")},{id:"hs_maxrevisebatchsize",label:"max revise batch size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:J("settings","maxrevisebatchsize")},{id:"hs_netaddress",label:"net address",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:X("settings","netaddress")},{id:"hs_remainingstorage",label:"remaining storage",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:J("settings","remainingstorage")},{id:"hs_revisionnumber",label:"revision number",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:G("settings","revisionnumber")},{id:"hs_sectoraccessprice",label:"sector access price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","sectoraccessprice")},{id:"hs_sectorsize",label:"sector size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:J("settings","sectorsize")},{id:"hs_siamuxport",label:"siamux port",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:G("settings","siamuxport")},{id:"hs_storageprice",label:"storage price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","storageprice")},{id:"hs_totalstorage",label:"total storage",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:J("settings","totalstorage")},{id:"hs_unlockhash",label:"unlock hash",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:X("settings","unlockhash")},{id:"hs_uploadbandwidthprice",label:"upload bandwidth price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","uploadbandwidthprice")},{id:"hs_version",label:"verison",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:X("settings","version")},{id:"hs_windowsize",label:"window size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:G("settings","windowsize")}].map(e=>({...e,..."autopilot"===e.category?{icon:(0,o.jsx)(d.n6M,{className:"relative opacity-50 scale-75"}),label:e.label,tip:"autopilot: ".concat(e.label)}:"hostSettings"===e.category?{icon:(0,o.jsx)(d.shL,{className:"relative top-px opacity-50 scale-75"}),label:e.label,tip:"host settings (RHPv2): ".concat(e.label)}:"priceTable"===e.category?{icon:(0,o.jsx)(d.B4q,{className:"relative top-px opacity-50 scale-75"}),label:e.label,tip:"price table (RHPv3): ".concat(e.label)}:{label:e.label,tip:e.label}}));function Y(e,t){return(0,l.memo)(function(n){let{data:r}=n;return r[e]?(0,o.jsx)(a.ho9,{displayBoth:!0,size:"12",value:new($())(r[e][t]||0),fixedFiat:4,variant:"value"}):null})}function G(e,t,n){return function(r){let{data:i}=r;return i[e]?(0,o.jsx)(a.m2c,{size:"12",value:new($())(i[e][t]||0),variant:"value",format:e=>(0,f.yF)(e,{abbreviated:n})}):null}}function X(e,t){return function(n){let{data:r}=n;return r[e]?(0,o.jsx)(a.XxW,{value:r[e][t],size:"12"}):null}}function J(e,t){return function(n){let{data:r}=n;return r[e]?(0,o.jsx)(a.xvT,{size:"12",weight:"semibold",ellipsis:!0,children:(0,f.vW)(r[e][t])}):null}}var Q=n(26592);function ee(e,t){return{id:e.publicKey,netAddress:e.netAddress,publicKey:e.publicKey,lastScanSuccess:e.interactions.lastScanSuccess,lastScan:"0001-01-01T00:00:00Z"===e.interactions.lastScan?null:e.interactions.lastScan,knownSince:"0001-01-01T00:00:00Z"===e.knownSince?null:e.knownSince,lastAnnouncement:"0001-01-01T00:00:00Z"===e.lastAnnouncement?null:e.lastAnnouncement,uptime:new($())(e.interactions.uptime||0),downtime:new($())(e.interactions.downtime||0),successfulInteractions:new($())(e.interactions.successfulInteractions||0),totalInteractions:new($())(e.interactions.successfulInteractions+e.interactions.failedInteractions||0),failedInteractions:new($())(e.interactions.failedInteractions||0),totalScans:new($())(e.interactions.totalScans||0),activeContractsCount:new($())((null==t?void 0:t.filter(t=>t.hostKey===e.publicKey).length)||0),activeContracts:(null==t?void 0:t.filter(t=>t.hostKey===e.publicKey))||[],priceTable:e.priceTable,settings:e.settings}}function et(e){let{host:t,allowlist:n,blocklist:r,isAllowlistActive:i}=e,o=!!(null==n?void 0:n.find(e=>e===t.publicKey)),a=!!(null==r?void 0:r.find(e=>{if(e===t.netAddress)return!0;try{let n=new URL("https://"+t.netAddress).hostname;return e===n}catch(e){return!1}}));return{isOnAllowlist:o,isOnBlocklist:a,isBlocked:a||!(!i||o)}}function en(e){return{score:new($())((null==e?void 0:e.score)||0),scoreBreakdown:{age:new($())((null==e?void 0:e.scoreBreakdown.age)||0),collateral:new($())((null==e?void 0:e.scoreBreakdown.collateral)||0),interactions:new($())((null==e?void 0:e.scoreBreakdown.interactions)||0),prices:new($())((null==e?void 0:e.scoreBreakdown.prices)||0),storageRemaining:new($())((null==e?void 0:e.scoreBreakdown.storageRemaining)||0),uptime:new($())((null==e?void 0:e.scoreBreakdown.uptime)||0),version:new($())((null==e?void 0:e.scoreBreakdown.version)||0)},gougingBreakdown:(null==e?void 0:e.gougingBreakdown)||{},gouging:null==e?void 0:e.gouging,unusableReasons:(null==e?void 0:e.unusableReasons)||[],usable:null==e?void 0:e.usable}}var er=n(91641),ei=n(34444),eo=n(47025),ea=n(20189);let es=(0,l.createContext)({}),el=()=>(0,l.useContext)(es);function eu(e){let{children:t}=e,n=function(){var e,t,n,r,i,o,d;let f=(0,c.useRouter)(),[h,p]=(0,l.useState)("list"),m=Number(f.query.limit||50),v=Number(f.query.offset||0),{filters:g,setFilter:y,removeFilter:x,removeLastFilter:b,resetFilters:w}=(0,a.Uu5)(),{dataset:j}=(0,Q.G)(),{autopilot:k}=(0,er.q)(),E=(0,l.useMemo)(()=>{let e=[];g.find(e=>"hasActiveContracts"===e.id)&&j&&(e=j.map(e=>e.hostKey));let t=g.find(e=>"publicKeyEquals"===e.id);return t&&e.push(null==t?void 0:t.value),e.length?e:void 0},[g,j]),S=(0,s.S0)({disabled:g.find(e=>"hasActiveContracts"===e.id)&&!j||"on"!==k.status,payload:{limit:m,offset:v,usabilityMode:(null===(e=g.find(e=>"usabilityMode"===e.id))||void 0===e?void 0:e.value)||"all",filterMode:(null===(t=g.find(e=>"filterMode"===e.id))||void 0===t?void 0:t.value)||"all",addressContains:null===(n=g.find(e=>"addressContains"===e.id))||void 0===n?void 0:n.value,keyIn:E},config:{swr:{errorRetryInterval:2e4,refreshInterval:(0,a.sWj)(1)}}}),_=(0,s.FV)({disabled:"off"!==k.status,payload:{limit:m,offset:v,filterMode:(null===(r=g.find(e=>"filterMode"===e.id))||void 0===r?void 0:r.value)||"all",addressContains:null===(i=g.find(e=>"addressContains"===e.id))||void 0===i?void 0:i.value,keyIn:g.find(e=>"hasActiveContracts"===e.id)&&j?j.map(e=>e.hostKey):void 0},config:{swr:{refreshInterval:(0,a.sWj)(1)}}}),C=(0,s.s2)(),O=(0,s.uf)(),M=!!(null===(o=C.data)||void 0===o?void 0:o.length),{settings:T}=(0,W.Hv)(),A=(0,eo.JL)({disabled:!T.siaCentral,config:{swr:{revalidateOnFocus:!1}}});(0,l.useEffect)(()=>{T.siaCentral||p("list")},[T.siaCentral]);let P=(0,l.useMemo)(()=>{var e;return(null===(e=A.data)||void 0===e?void 0:e.hosts)||[]},[A.data]),N=(0,l.useRef)(ei.N),R=(0,l.useCallback)(e=>{N.current=e},[N]),[D,L]=(0,l.useState)(),F=(0,l.useCallback)(e=>{let t=document.getElementById(e),n=document.getElementById("scroll-hosts");t&&n&&n.scroll({top:t.offsetTop-50,behavior:"smooth"})},[]),z=(0,l.useCallback)((e,t)=>{if(D===e){L(void 0);return}L(e),t&&N.current.moveToLocation(t),F(e)},[L,N,D,F]),V=(0,l.useCallback)((e,t)=>{if(D===e){L(void 0);return}L(e),t?N.current.moveToLocation(t):(0,a.OHV)("Geographic location is unknown for host ".concat((0,a.$Gg)(e,20))),F(e)},[L,N,D,F]),Z=(0,l.useCallback)((e,t)=>null,[]),I=function(e){let{autopilotStatus:t,regularResponse:n,autopilotResponse:r,allContracts:i,allowlist:o,blocklist:a,isAllowlistActive:s,geoHosts:u,onHostSelect:c}=e;return(0,l.useMemo)(()=>{var e,l;return"off"===t?(null===(e=n.data)||void 0===e?void 0:e.map(e=>{let t=u.find(t=>t.public_key===e.publicKey);return{onClick:()=>c(e.publicKey,null==t?void 0:t.location),...ee(e,i),...et({host:e,allowlist:o.data,blocklist:a.data,isAllowlistActive:s}),...en(),location:null==t?void 0:t.location,countryCode:null==t?void 0:t.country_code}}))||null:"on"===t&&(null===(l=r.data)||void 0===l?void 0:l.map(e=>{let t=u.find(t=>t.public_key===e.host.publicKey);return{onClick:()=>c(e.host.publicKey,null==t?void 0:t.location),...ee(e.host,i),...et({host:e.host,allowlist:o.data,blocklist:a.data,isAllowlistActive:s}),...en(e.checks),location:null==t?void 0:t.location,countryCode:null==t?void 0:t.country_code}}))||null},[c,t,n.data,r.data,i,o.data,a.data,s,u])}({autopilotStatus:k.status,autopilotResponse:S,regularResponse:_,allContracts:j,allowlist:C,blocklist:O,isAllowlistActive:M,geoHosts:P,onHostSelect:V}),B=(0,l.useMemo)(()=>"off"===k.status?["autopilot"]:[],[k.status]),{configurableColumns:H,enabledColumns:U,toggleColumnVisibility:q,setColumnsVisible:$,setColumnsHidden:Y,toggleSort:G,setSortDirection:X,setSortField:J,sortField:es,sortDirection:el,resetDefaultColumnVisibility:eu}=(0,a.oy6)("renterd/v0/hosts",{columns:K,columnsDefaultVisible:u,disabledCategories:B}),ec=(0,l.useMemo)(()=>K.filter(e=>U.includes(e.id)),[U]),ed="on"===k.status?S.isValidating:_.isValidating,ef="on"===k.status?S.error:_.error,eh=(0,a.c2j)(I,ed,ef,g),ep=(0,ea.B)(),em=null===(d=k.state.data)||void 0===d?void 0:d.configured,ev=(0,l.useMemo)(()=>({isAutopilotConfigured:em,siascanUrl:ep}),[em,ep]),eg=(0,l.useMemo)(()=>null==I?void 0:I.filter(e=>e.location),[I]),ey=(0,l.useMemo)(()=>null==I?void 0:I.find(e=>e.publicKey===D),[I,D]);return{setCmd:R,viewMode:h,activeHost:ey,onHostMapHover:Z,onHostMapClick:z,setViewMode:p,hostsWithLocation:eg,error:ef,dataState:eh,offset:v,limit:m,pageCount:(null==I?void 0:I.length)||0,columns:ec,dataset:I,tableContext:ev,configurableColumns:H,enabledColumns:U,toggleColumnVisibility:q,setColumnsVisible:$,setColumnsHidden:Y,toggleSort:G,setSortDirection:X,setSortField:J,sortField:es,sortDirection:el,resetDefaultColumnVisibility:eu,filters:g,setFilter:y,removeFilter:x,removeLastFilter:b,resetFilters:w}}();return(0,o.jsx)(es.Provider,{value:n,children:t})}},10917:function(e,t,n){"use strict";n.d(t,{Kg:function(){return o},jY:function(){return i}});var r=n(35701);let i={activeAndUsable:{colorHex:r.O9T.green[600],colorName:"green"},activeAndUnusable:{colorHex:r.O9T.amber[600],colorName:"amber"},potentialHost:{colorHex:r.O9T.blue[600],colorName:"blue"}};function o(e){return e.activeContractsCount.gt(0)&&!e.usable?{status:"activeAndUnusable",...i.activeAndUnusable}:e.activeContractsCount.gt(0)?{status:"activeAndUsable",...i.activeAndUsable}:{status:"potentialHost",...i.potentialHost}}},63171:function(e,t,n){"use strict";n.d(t,{n:function(){return p},v:function(){return m}});var r=n(52322),i=n(35701),o=n(9969),a=n(2784),s=n(86811),l=n(6391),u=n.n(l),c=n(5632),d=n(20189);let f=[],h=(0,a.createContext)({}),p=()=>(0,a.useContext)(h);function m(e){let{children:t}=e,n=function(){let e=(0,c.useRouter)(),t=Number(e.query.limit||50),n=Number(e.query.offset||0),r=(0,o.Qq)({params:{limit:t,offset:n},config:{swr:{refreshInterval:(0,i.XBW)(60)}}}),l=(0,o.a0)({config:{swr:{refreshInterval:(0,i.XBW)(60)}}}),{openDialog:h}=(0,s.Rh)(),p=(0,d.B)(),m=(0,a.useMemo)(()=>l.data&&r.data?[...(l.data||[]).map(e=>({type:"transaction",txType:(0,i.leQ)(e),unconfirmed:!0,siascanUrl:p})),...(r.data||[]).map(e=>({type:"transaction",txType:(0,i.leQ)(e.raw),hash:(0,i.I13)(e.id),timestamp:new Date(e.timestamp).getTime(),onClick:()=>h("transactionDetails",(0,i.I13)(e.id)),raw:e.raw,inflow:e.inflow,outflow:e.outflow,sc:new(u())(e.inflow).minus(e.outflow),siascanUrl:p})).sort((e,t)=>e.timestamp{let e=new Date().getTime(),t=30*y;return new Date(e-t).toISOString()},[30,y]),b=(0,o.X1)({params:{start:x,interval:y,n:30}}),w=(0,a.useMemo)(()=>(b.data||[]).map(e=>({sc:new(u())(e.spendable).plus(e.unconfirmed).toNumber(),timestamp:new Date(e.timestamp).getTime()})).sort((e,t)=>e.timestamp>=t.timestamp?1:-1),[b.data]);return{dataset:m,error:v,dataState:g,offset:n,limit:t,pageCount:(null==m?void 0:m.length)||0,balances:w,metrics:b}}();return(0,r.jsx)(h.Provider,{value:n,children:t})}},33571:function(e,t,n){"use strict";n.d(t,{I:function(){return a}});var r=n(35701),i=n(9969),o=n(2784);function a(){let e=(0,i.ni)();return(0,o.useCallback)((t,n)=>{let i=async()=>{let i=await e.put({payload:{add:t,remove:n}});return i.error?((0,r.OHV)(i.error),!1):(t.length&&(0,r.RFt)("".concat(t.map(e=>(0,r.$Gg)(e,20)).join(", ")," added to allowlist")),n.length&&(0,r.RFt)("".concat(n.map(e=>(0,r.$Gg)(e,20)).join(", ")," removed from allowlist")),!0)};return i()},[e])}},98358:function(e,t,n){"use strict";n.d(t,{l:function(){return a}});var r=n(35701),i=n(9969),o=n(2784);function a(){let e=(0,i.Os)();return(0,o.useCallback)((t,n)=>{let i=async()=>{let i=await e.put({payload:{add:t,remove:n}});return i.error?((0,r.OHV)(i.error),!1):(t.length&&(0,r.RFt)("".concat(t.map(e=>(0,r.$Gg)(e,20)).join(", ")," added to blocklist")),n.length&&(0,r.RFt)("".concat(n.map(e=>(0,r.$Gg)(e,20)).join(", ")," removed from blocklist")),!0)};return i()},[e])}},80489:function(e,t,n){"use strict";n.d(t,{a:function(){return i}});var r=n(9969);function i(e){return(0,r.yu)({...e,params:{key:"contractset"}})}},82439:function(e,t,n){"use strict";n.d(t,{B:function(){return a},V:function(){return o}});var r=n(52322),i=n(88242);let o={excellent:1,good:.5,poor:0};function a(e){let{health:t,size:n,isDirectory:a}=e,s="excellent",l="green",u=t,c=(0,r.jsx)(i.Y3p,{});return t1&&(u=1),t<0&&(u=0),{label:s+" health",color:l,icon:c,displayHealth:u}}},34658:function(e,t,n){"use strict";n.d(t,{w:function(){return i}});var r=n(9969);function i(e){return(0,r.yu)({...e,params:{key:"redundancy"}})}},20189:function(e,t,n){"use strict";n.d(t,{B:function(){return o}});var r=n(35701),i=n(9969);function o(){var e;let t=(0,i.d_)();return(null===(e=t.data)||void 0===e?void 0:e.network)==="Zen Testnet"?r.nNd.explore.testnetZen:r.nNd.explore.mainnet}},25573:function(e,t,n){"use strict";n.d(t,{n:function(){return a}});var r=n(35701),i=n(95753),o=n(9969);function a(){var e,t,n,a;let{isUnlockedAndAuthedRoute:s}=(0,i.Hv)(),l=(0,o.DQ)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.synced)?(0,r.XBW)(60):(0,r.XBW)(10)}}}),u=(0,o.nH)(),c=l.data?null===(e=l.data)||void 0===e?void 0:e.blockHeight:0,d=(0,o.X2)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.scanHeight)>=c?(0,r.XBW)(60):(0,r.XBW)(10)}}}),f=s&&c&&u?Number((100*Math.min(c/u,1)).toFixed(1)):0,h=s&&c&&d.data?Number((100*Math.min(d.data.scanHeight/u,1)).toFixed(1)):0;return{isSynced:null===(t=l.data)||void 0===t?void 0:t.synced,isWalletSynced:(null===(n=l.data)||void 0===n?void 0:n.synced)&&(null===(a=d.data)||void 0===a?void 0:a.scanHeight)>=c-1,nodeBlockHeight:c,estimatedBlockHeight:u,syncPercent:f,walletScanPercent:h,moreThan100BlocksToSync:!!c&&!!u&&u-c>100,firstTimeSyncing:!!c&&!!u&&u-c>5e4}}},73221:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return R}});var r=n(52322);n(37832);var i=n(35701),o=n(86811),a=n(48528),s=n(26592),l=n(19513),u=n(2784),c=n(91641),d=n(1657),f=n(88242),h=n(25573),p=n(71930),m=n(4370),v=n(9969),g=n(6391),y=n.n(g),x=n(25205),b=n(95753),w=n(92762);function j(){var e,t;let{isUnlockedAndAuthedRoute:n}=(0,b.Hv)(),a=(0,c.q)(),{openDialog:s}=(0,o.Rh)(),l=(0,v.X2)(),u=(0,v.e$)({config:{swr:{errorRetryInterval:1e4}}}),[d,g]=(0,w.Z)("v0/renterd/onboarding/maximized",{defaultValue:!0}),j=(0,h.n)(),E=(0,m.F)();if(!n||"on"!==a.autopilot.status)return null;let S=new(y())(l.data?l.data.confirmed+l.data.unconfirmed:0),_=new(y())((null===(e=u.data)||void 0===e?void 0:e.contracts.allowance)||0),C=null===(t=a.autopilot.state.data)||void 0===t?void 0:t.configured,O=j.isSynced,M=S.gt(0),T=!E.active,A=[C,O,M,T],P=A.length,N=A.filter(e=>e).length;return P===N?null:d?(0,r.jsx)("div",{className:"z-20 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsx)(i.s_4,{className:"w-[400px] flex flex-col max-h-[600px]",children:(0,r.jsxs)(i.xrM,{children:[(0,r.jsxs)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)(i.TRl,{}),(0,r.jsx)(i.xvT,{size:"20",weight:"semibold",children:"Welcome to Sia"})]}),(0,r.jsx)(i.zxk,{variant:"ghost",onClick:()=>g(!1),children:(0,r.jsx)(f.mli,{})})]}),(0,r.jsx)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:(0,r.jsx)(i.xvT,{size:"14",children:"Get set up by completing the following steps. Once they are complete, you can start uploading files."})}),(0,r.jsx)(k,{title:(0,r.jsx)(i.rUS,{href:p._.config.index,ellipsis:!0,size:"14",underline:"hover",children:"Step 1: Configure your storage settings"}),description:"Specify how much data you plan to store and your target price.",action:C?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(f.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.rUS,{href:p._.config.index,children:(0,r.jsx)(f.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(f.Fs9,{})})]})}),(0,r.jsx)(k,{title:(0,r.jsx)(i.rUS,{href:p._.node.index,underline:"hover",ellipsis:!0,size:"14",children:"Step 2: Wait for the blockchain to sync"}),description:"The blockchain will sync in the background, this takes some time. No user action required.",action:O?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(f.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.xvT,{ellipsis:!0,size:"14",children:[j.syncPercent,"%"]}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(f.hzZ,{})})]})}),(0,r.jsx)(k,{title:(0,r.jsx)(i.rUS,{href:p._.wallet.view,onClick:()=>s("addressDetails"),ellipsis:!0,size:"14",underline:"hover",children:"Step 3: Fund your wallet"}),description:"Fund your wallet with at least ".concat((0,x.Vz)(_)," siacoin to cover the required allowance.").concat(j.isWalletSynced?"":" Balance will not be accurate until wallet is finished scanning."),action:M?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(f.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[!j.isWalletSynced&&(0,r.jsx)(i.ua7,{content:"Wallet scanning progress ".concat(j.walletScanPercent,"%"),children:(0,r.jsxs)(i.xvT,{size:"14",children:[j.walletScanPercent,"%"]})}),(0,r.jsx)(i.rUS,{href:p._.wallet.view,onClick:()=>s("addressDetails"),children:(0,r.jsx)(f.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(f.Fs9,{})})]})}),(0,r.jsx)(k,{title:(0,r.jsx)(i.rUS,{href:p._.contracts.index,ellipsis:!0,size:"14",underline:"hover",children:"Step 4: Wait for storage contracts to form"}),description:"Once all other steps are complete, contracts will automatically form. No user action required.",action:T?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(f.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.xvT,{ellipsis:!0,size:"14",children:[E.count,"/",E.required]}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(f.hzZ,{})})]})})]})})}):(0,r.jsx)("div",{className:"z-30 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsx)(i.zxk,{onClick:()=>g(!0),size:"large",className:"flex gap-3 !px-3",children:(0,r.jsxs)(i.xvT,{className:"flex items-center gap-1",children:[(0,r.jsx)(i.TRl,{}),"Setup: ",N,"/",P," steps complete"]})})})}function k(e){let{title:t,action:n,description:o}=e;return(0,r.jsx)("div",{className:"border-t first:border-t-0 border-gray-200 dark:border-graydark-300 px-3 py-2",children:(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)("div",{className:"flex-1 flex items-center",children:t}),n]}),(0,r.jsx)("div",{className:"pr-5",children:(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:o})})]})})}function E(e){return void 0!==e.loaded?e.loaded/e.size:1}function S(){let{isUnlockedAndAuthedRoute:e}=(0,b.Hv)(),{uploadsList:t,uploadCancel:n,downloadsList:o,downloadCancel:s}=(0,a.Y)(),[l,c]=(0,u.useState)(!0),d=t.length,h=o.length;return e&&(0!==d||0!==h)?l?(0,r.jsx)("div",{className:"z-30 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsx)(i.s_4,{className:"w-[400px] flex flex-col max-h-[600px]",children:(0,r.jsxs)(i.xrM,{children:[d>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:[(0,r.jsxs)(i.xvT,{size:"16",weight:"semibold",children:["Active uploads (",d,")"]}),(0,r.jsx)(i.zxk,{variant:"ghost",onClick:()=>c(!1),children:(0,r.jsx)(f.mli,{})})]}),t.map(e=>{let t=E(e);return(0,r.jsxs)("div",{className:"flex flex-col gap-1 border-t first:border-t-0 border-gray-200 dark:border-graydark-300 px-3 py-2",children:[(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(i.xvT,{ellipsis:!0,size:"14",className:"flex-1",children:e.path}),(0,r.jsx)(i.zxk,{tip:"Cancel file upload",variant:"ghost",size:"none",onClick:()=>n(e),children:(0,r.jsx)(f.PcV,{})})]}),(0,r.jsx)(i.kod,{variant:"accent",value:e.loaded,max:e.size,className:1===t?"animate-pulse":""}),(0,r.jsxs)("div",{className:"flex justify-between mt-1",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:1===t?"Processing":"Uploading"}),(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",children:[(100*t).toFixed(0),"%"]})]})]},e.path)})]}):null,h>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:[(0,r.jsxs)(i.xvT,{size:"16",weight:"semibold",children:["Active downloads (",h,")"]}),0===d?(0,r.jsx)(i.zxk,{variant:"ghost",onClick:()=>c(!1),children:(0,r.jsx)(f.mli,{})}):null]}),o.map(e=>{let t=E(e);return(0,r.jsxs)("div",{className:"flex flex-col gap-1 border-t first:border-t-0 border-gray-200 dark:border-graydark-300 px-3 py-2",children:[(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(i.xvT,{ellipsis:!0,size:"14",className:"flex-1",children:e.path}),(0,r.jsx)(i.zxk,{tip:"Cancel file download",variant:"ghost",size:"none",onClick:()=>s(e),children:(0,r.jsx)(f.PcV,{})})]}),(0,r.jsx)(i.kod,{variant:"accent",value:e.loaded,max:e.size,className:1===t?"animate-pulse":""}),(0,r.jsxs)("div",{className:"flex justify-between mt-1",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:1===t?"Processing":"Downloading"}),(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",children:[(100*t).toFixed(0),"%"]})]})]},e.path)})]}):null]})})}):(0,r.jsx)("div",{className:"z-30 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsxs)(i.zxk,{onClick:()=>c(!0),className:"flex gap-3",children:[(0,r.jsx)(i.xgg,{}),d?(0,r.jsxs)(i.xvT,{className:"flex gap-1",children:[d,(0,r.jsx)(f.R$6,{className:"opacity-50 scale-75 relative top-px"})]}):null,h?(0,r.jsxs)(i.xvT,{className:"flex gap-1",children:[h&&h,(0,r.jsx)(f.vzB,{className:"opacity-50 scale-75"})]}):null]})}):null}var _=n(63171);function C(e){let{children:t}=e;return(0,r.jsx)(c.w,{children:(0,r.jsx)(d.iV,{children:(0,r.jsx)(o.Tu,{children:(0,r.jsx)(_.v,{children:(0,r.jsx)(s.x,{children:(0,r.jsx)(l.x,{children:(0,r.jsxs)(a.Z,{children:[(0,r.jsx)(j,{}),(0,r.jsx)(S,{}),(0,r.jsx)(o.xQ,{}),t]})})})})})})})}var O=n(1240),M=n.n(O),T=n(49854),A=n.n(T),P=n(82851);let N=(0,P.cx)(M().variable,A().variable);function R(e){let{Component:t,pageProps:n}=e;return(0,r.jsx)(i.PD$,{className:N,fallback:n.fallback,passwordProtectRequestHooks:!0,lockRoutes:p._,children:(0,r.jsx)(C,{children:(0,r.jsx)(t,{...n})})})}},35701:function(e,t,n){"use strict";let r,i,o,a;n.d(t,{UQy:function(){return la},vF:function(){return lc},Qdk:function(){return lu},o48:function(){return ls},hcY:function(){return _c},tU3:function(){return _a},zXq:function(){return _S},juT:function(){return SI},Cts:function(){return l_},Z58:function(){return Cr},WVB:function(){return cZ},zxk:function(){return li},b0u:function(){return kl},EKh:function(){return lM},vRO:function(){return CT},QHy:function(){return Cy},TaT:function(){return Cf},eQh:function(){return lA},HfT:function(){return Cw},wEc:function(){return Co},ncR:function(){return Sg},VqE:function(){return ul},h_2:function(){return cW},Xiv:function(){return cq},Juw:function(){return c$},KpP:function(){return cK},fhJ:function(){return pH},XOF:function(){return Sv},S$c:function(){return SO},WyV:function(){return CP},QBj:function(){return CA},yEL:function(){return _w},cB7:function(){return Sk},ZqQ:function(){return Sj},IKw:function(){return SM},KZS:function(){return SE},zsw:function(){return h5},__J:function(){return c7},rUS:function(){return dt},Qjf:function(){return dn},xgg:function(){return ka},TRl:function(){return di},kFS:function(){return cI},FzK:function(){return Cm},Clw:function(){return cV},PD$:function(){return Cz},Wxm:function(){return f2},uDJ:function(){return SP},wFK:function(){return SN},s_4:function(){return t3},nvN:function(){return t2},u5Q:function(){return Ci},j4H:function(){return fJ},hmz:function(){return fQ},J2e:function(){return dC},kod:function(){return dI},xrM:function(){return uo},PhF:function(){return f1},Z0O:function(){return cR},DLL:function(){return _3},KJW:function(){return SW},rsf:function(){return hl},D_D:function(){return _K},iA_:function(){return ST},mQc:function(){return fm},nUL:function(){return fy},drW:function(){return fv},SPt:function(){return fg},t6k:function(){return Cj},xvT:function(){return t1},nvn:function(){return fb},ua7:function(){return ln},mPE:function(){return _Y},XxW:function(){return E7},PF9:function(){return Se},m2c:function(){return Sa},YKL:function(){return Sn},ho9:function(){return So},QUh:function(){return _6},weF:function(){return _D},YNn:function(){return _J},DmW:function(){return _Q},O9T:function(){return vw},fVJ:function(){return Ce},vQq:function(){return EG},E5z:function(){return EX},HLH:function(){return CX},NrH:function(){return j3},k9c:function(){return ke},Y_Z:function(){return _8},EJC:function(){return CY},kOJ:function(){return _9},leQ:function(){return E1},Ztc:function(){return _W},XAn:function(){return kt},Vkc:function(){return cL},sWj:function(){return j4},ort:function(){return kn},xLV:function(){return j6},okB:function(){return j9},AEA:function(){return j7},z$:function(){return t4},XBW:function(){return ki},GXN:function(){return kr},I13:function(){return EQ},cEb:function(){return fx},y70:function(){return fH},OHV:function(){return E$},OPV:function(){return Eq},RFt:function(){return EU},$Gg:function(){return EJ},_4u:function(){return CW},Wdu:function(){return CU},Y97:function(){return _o},c2j:function(){return _s},WsO:function(){return _b},Uu5:function(){return Cq},hWm:function(){return CN},fb0:function(){return CK},oy6:function(){return CH},nNd:function(){return _0},BL0:function(){return j5},ivg:function(){return j8}});var s,l,u,c,d,f,h,p,m,v,g,y=n(52322),x=n(2784),b=n.t(x,2),w=n(7896),j=n(34540),k=n(26215),E=n(99575);function S(e){let t=e+"CollectionProvider",[n,r]=(0,j.b)(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=x.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(a,n),s=(0,k.e)(t,i.collectionRef);return x.createElement(E.g7,{ref:s},r)}),l=e+"CollectionItemSlot",u="data-radix-collection-item",c=x.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=x.useRef(null),s=(0,k.e)(t,a),c=o(l,n);return x.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),x.createElement(E.g7,{[u]:"",ref:s},r)});return[{Provider:e=>{let{scope:t,children:n}=e,r=x.useRef(null),o=x.useRef(new Map).current;return x.createElement(i,{scope:t,itemMap:o,collectionRef:r},n)},Slot:s,ItemSlot:c},function(t){let n=o(e+"CollectionConsumer",t),r=x.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()),i=r.sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return i},[n.collectionRef,n.itemMap]);return r},r]}var _=n(41816),C=n(73597),O=n(72130),M=n(64680),T=n(28245),A=n(26074);let P="Collapsible",[N,R]=(0,j.b)(P),[D,L]=N(P),F=(0,x.forwardRef)((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:o,onOpenChange:a,...s}=e,[l=!1,u]=(0,C.T)({prop:r,defaultProp:i,onChange:a});return(0,x.createElement)(D,{scope:n,disabled:o,contentId:(0,A.M)(),open:l,onOpenToggle:(0,x.useCallback)(()=>u(e=>!e),[u])},(0,x.createElement)(O.WV.div,(0,w.Z)({"data-state":B(l),"data-disabled":o?"":void 0},s,{ref:t})))}),z=(0,x.forwardRef)((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=L("CollapsibleTrigger",n);return(0,x.createElement)(O.WV.button,(0,w.Z)({type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":B(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled},r,{ref:t,onClick:(0,_.M)(e.onClick,i.onOpenToggle)}))}),V="CollapsibleContent",Z=(0,x.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=L(V,e.__scopeCollapsible);return(0,x.createElement)(T.z,{present:n||i.open},({present:e})=>(0,x.createElement)(I,(0,w.Z)({},r,{ref:t,present:e})))}),I=(0,x.forwardRef)((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...o}=e,a=L(V,n),[s,l]=(0,x.useState)(r),u=(0,x.useRef)(null),c=(0,k.e)(t,u),d=(0,x.useRef)(0),f=d.current,h=(0,x.useRef)(0),p=h.current,m=a.open||s,v=(0,x.useRef)(m),g=(0,x.useRef)();return(0,x.useEffect)(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,M.b)(()=>{let e=u.current;if(e){g.current=g.current||{transitionDuration:e.style.transitionDuration,animationDuration:e.style.animationDuration,animationFillMode:e.style.animationFillMode},e.style.transitionDuration="0s",e.style.animationDuration="0s",e.style.animationFillMode="none";let t=e.getBoundingClientRect();d.current=t.height,h.current=t.width,v.current||(e.style.transitionDuration=g.current.transitionDuration,e.style.animationDuration=g.current.animationDuration,e.style.animationFillMode=g.current.animationFillMode),l(r)}},[a.open,r]),(0,x.createElement)(O.WV.div,(0,w.Z)({"data-state":B(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!m},o,{ref:c,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":p?`${p}px`:void 0,...e.style}}),m&&i)});function B(e){return e?"open":"closed"}let H="Accordion",U=["Home","End","ArrowDown","ArrowUp"],[W,q,$]=S(H),[K,Y]=(0,j.b)(H,[$,R]),G=R(),X=x.forwardRef((e,t)=>{let{type:n,...r}=e;return x.createElement(W.Provider,{scope:e.__scopeAccordion},"multiple"===n?x.createElement(er,(0,w.Z)({},r,{ref:t})):x.createElement(en,(0,w.Z)({},r,{ref:t})))});X.propTypes={type(e){let t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):"multiple"===e.type&&"string"==typeof t?Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):"single"===e.type&&Array.isArray(t)?Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};let[J,Q]=K(H),[ee,et]=K(H,{collapsible:!1}),en=x.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:o=!1,...a}=e,[s,l]=(0,C.T)({prop:n,defaultProp:r,onChange:i});return x.createElement(J,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:l,onItemClose:x.useCallback(()=>o&&l(""),[o,l])},x.createElement(ee,{scope:e.__scopeAccordion,collapsible:o},x.createElement(ea,(0,w.Z)({},a,{ref:t}))))}),er=x.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...o}=e,[a=[],s]=(0,C.T)({prop:n,defaultProp:r,onChange:i}),l=x.useCallback(e=>s((t=[])=>[...t,e]),[s]),u=x.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return x.createElement(J,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:u},x.createElement(ee,{scope:e.__scopeAccordion,collapsible:!0},x.createElement(ea,(0,w.Z)({},o,{ref:t}))))}),[ei,eo]=K(H),ea=x.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:r,...i}=e,o=x.useRef(null),a=(0,k.e)(o,t),s=q(n),l=(0,_.M)(e.onKeyDown,e=>{var t;if(!U.includes(e.key))return;let n=e.target,r=s().filter(e=>{var t;return!(null!==(t=e.ref.current)&&void 0!==t&&t.disabled)}),i=r.findIndex(e=>e.ref.current===n),o=r.length;if(-1===i)return;e.preventDefault();let a=i;switch(e.key){case"Home":a=0;break;case"End":a=o-1;break;case"ArrowDown":a=i+1;break;case"ArrowUp":(a=i-1)<0&&(a=o-1)}let l=a%o;null===(t=r[l].ref.current)||void 0===t||t.focus()});return x.createElement(ei,{scope:n,disabled:r},x.createElement(W.Slot,{scope:n},x.createElement(O.WV.div,(0,w.Z)({},i,{ref:a,onKeyDown:r?void 0:l}))))}),es="AccordionItem",[el,eu]=K(es),ec=x.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...i}=e,o=eo(es,n),a=Q(es,n),s=G(n),l=(0,A.M)(),u=r&&a.value.includes(r)||!1,c=o.disabled||e.disabled;return x.createElement(el,{scope:n,open:u,disabled:c,triggerId:l},x.createElement(F,(0,w.Z)({"data-state":u?"open":"closed"},s,i,{ref:t,disabled:c,open:u,onOpenChange:e=>{e?a.onItemOpen(r):a.onItemClose(r)}})))}),ed=x.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=eu("AccordionHeader",n);return x.createElement(O.WV.h3,(0,w.Z)({"data-state":i.open?"open":"closed","data-disabled":i.disabled?"":void 0},r,{ref:t}))}),ef="AccordionTrigger",eh=x.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=eu(ef,n),o=et(ef,n),a=G(n);return x.createElement(W.ItemSlot,{scope:n},x.createElement(z,(0,w.Z)({"aria-disabled":i.open&&!o.collapsible||void 0,id:i.triggerId},a,r,{ref:t})))}),ep=x.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=eu("AccordionContent",n),o=G(n);return x.createElement(Z,(0,w.Z)({role:"region","aria-labelledby":i.triggerId},o,r,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});var em=n(82851),ev=n(83317);function eg(e){return e.split("-")[0]}function ey(e){return e.split("-")[1]}function ex(e){return["top","bottom"].includes(eg(e))?"x":"y"}function eb(e){return"y"===e?"height":"width"}function ew(e,t,n){let r,{reference:i,floating:o}=e,a=i.x+i.width/2-o.width/2,s=i.y+i.height/2-o.height/2,l=ex(t),u=eb(l),c=i[u]/2-o[u]/2,d="x"===l;switch(eg(t)){case"top":r={x:a,y:i.y-o.height};break;case"bottom":r={x:a,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:s};break;case"left":r={x:i.x-o.width,y:s};break;default:r={x:i.x,y:i.y}}switch(ey(t)){case"start":r[l]-=c*(n&&d?-1:1);break;case"end":r[l]+=c*(n&&d?-1:1)}return r}let ej=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=await (null==a.isRTL?void 0:a.isRTL(t)),l=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=ew(l,r,s),d=r,f={},h=0;for(let n=0;n({name:"arrow",options:e,async fn(t){let{element:n,padding:r=0}=null!=e?e:{},{x:i,y:o,placement:a,rects:s,platform:l}=t;if(null==n)return{};let u=ek(r),c={x:i,y:o},d=ex(a),f=ey(a),h=eb(d),p=await l.getDimensions(n),m="y"===d?"top":"left",v="y"===d?"bottom":"right",g=s.reference[h]+s.reference[d]-c[d]-s.floating[h],y=c[d]-s.reference[d],x=await (null==l.getOffsetParent?void 0:l.getOffsetParent(n)),b=x?"y"===d?x.clientHeight||0:x.clientWidth||0:0;0===b&&(b=s.floating[h]);let w=u[m],j=b-p[h]-u[v],k=b/2-p[h]/2+(g/2-y/2),E=eC(w,e_(k,j)),S=("start"===f?u[m]:u[v])>0&&k!==E&&s.reference[h]<=s.floating[h];return{[d]:c[d]-(S?keM[e])}let eA={start:"end",end:"start"};function eP(e){return e.replace(/start|end/g,e=>eA[e])}let eN=["top","right","bottom","left"];eN.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);let eR=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o;let{placement:a,middlewareData:s,rects:l,initialPlacement:u,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",flipAlignment:v=!0,...g}=e,y=eg(a),x=p||(y!==u&&v?function(e){let t=eT(e);return[eP(e),t,eP(t)]}(u):[eT(u)]),b=[u,...x],w=await eS(t,g),j=[],k=(null==(n=s.flip)?void 0:n.overflows)||[];if(f&&j.push(w[y]),h){let{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);let r=ey(e),i=ex(e),o=eb(i),a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=eT(a)),{main:a,cross:eT(a)}}(a,l,await (null==c.isRTL?void 0:c.isRTL(d.floating)));j.push(w[e],w[t])}if(k=[...k,{placement:a,overflows:j}],!j.every(e=>e<=0)){let e=(null!=(r=null==(i=s.flip)?void 0:i.index)?r:0)+1,t=b[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n="bottom";switch(m){case"bestFit":{let e=null==(o=k.map(e=>[e,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0].placement;e&&(n=e);break}case"initialPlacement":n=u}if(a!==n)return{reset:{placement:n}}}return{}}}};function eD(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function eL(e){return eN.some(t=>e[t]>=0)}let eF=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){let{rects:r}=e;switch(t){case"referenceHidden":{let t=eD(await eS(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:eL(t)}}}case"escaped":{let t=eD(await eS(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:eL(t)}}}default:return{}}}}},ez=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){let{x:n,y:r}=t,i=await async function(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),a=eg(n),s=ey(n),l="x"===ex(n),u=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,d="function"==typeof t?t(e):t,{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}(t,e);return{x:n+i.x,y:r+i.y,data:i}}}};function eV(e){return"x"===e?"y":"x"}let eZ=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=e,u={x:n,y:r},c=await eS(t,l),d=ex(eg(i)),f=eV(d),h=u[d],p=u[f];if(o){let e="y"===d?"bottom":"right";h=eC(h+c["y"===d?"top":"left"],e_(h,h-c[e]))}a&&(p=eC(p+c["y"===f?"top":"left"],e_(p,p-c["y"===f?"bottom":"right"])));let m=s.fn({...t,[d]:h,[f]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}},eI=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=e,c={x:n,y:r},d=ex(i),f=eV(d),h=c[d],p=c[f],m="function"==typeof s?s({...o,placement:i}):s,v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let e="y"===d?"height":"width",t=o.reference[d]-o.floating[e]+v.mainAxis,n=o.reference[d]+o.reference[e]-v.mainAxis;hn&&(h=n)}if(u){var g,y,x,b;let e="y"===d?"width":"height",t=["top","left"].includes(eg(i)),n=o.reference[f]-o.floating[e]+(t&&null!=(g=null==(y=a.offset)?void 0:y[f])?g:0)+(t?0:v.crossAxis),r=o.reference[f]+o.reference[e]+(t?0:null!=(x=null==(b=a.offset)?void 0:b[f])?x:0)-(t?v.crossAxis:0);pr&&(p=r)}return{[d]:h,[f]:p}}}};function eB(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function eH(e){if(null==e)return window;if(!eB(e)){let t=e.ownerDocument;return t&&t.defaultView||window}return e}function eU(e){return eH(e).getComputedStyle(e)}function eW(e){return eB(e)?"":e?(e.nodeName||"").toLowerCase():""}function eq(){let e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function e$(e){return e instanceof eH(e).HTMLElement}function eK(e){return e instanceof eH(e).Element}function eY(e){return"undefined"!=typeof ShadowRoot&&(e instanceof eH(e).ShadowRoot||e instanceof ShadowRoot)}function eG(e){let{overflow:t,overflowX:n,overflowY:r}=eU(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function eX(e){let t=/firefox/i.test(eq()),n=eU(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function eJ(){return!/^((?!chrome|android).)*safari/i.test(eq())}let eQ=Math.min,e0=Math.max,e1=Math.round;function e2(e,t,n){var r,i,o,a;void 0===t&&(t=!1),void 0===n&&(n=!1);let s=e.getBoundingClientRect(),l=1,u=1;t&&e$(e)&&(l=e.offsetWidth>0&&e1(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&e1(s.height)/e.offsetHeight||1);let c=eK(e)?eH(e):window,d=!eJ()&&n,f=(s.left+(d&&null!=(r=null==(i=c.visualViewport)?void 0:i.offsetLeft)?r:0))/l,h=(s.top+(d&&null!=(o=null==(a=c.visualViewport)?void 0:a.offsetTop)?o:0))/u,p=s.width/l,m=s.height/u;return{width:p,height:m,top:h,right:f+p,bottom:h+m,left:f,x:f,y:h}}function e4(e){return((e instanceof eH(e).Node?e.ownerDocument:e.document)||window.document).documentElement}function e3(e){return eK(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function e5(e){return e2(e4(e)).left+e3(e).scrollLeft}function e6(e){return"html"===eW(e)?e:e.assignedSlot||e.parentNode||(eY(e)?e.host:null)||e4(e)}function e8(e){return e$(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function e7(e){let t=eH(e),n=e8(e);for(;n&&["table","td","th"].includes(eW(n))&&"static"===getComputedStyle(n).position;)n=e8(n);return n&&("html"===eW(n)||"body"===eW(n)&&"static"===getComputedStyle(n).position&&!eX(n))?t:n||function(e){let t=e6(e);for(eY(t)&&(t=t.host);e$(t)&&!["html","body"].includes(eW(t));){if(eX(t))return t;t=t.parentNode}return null}(e)||t}function e9(e){if(e$(e))return{width:e.offsetWidth,height:e.offsetHeight};let t=e2(e);return{width:t.width,height:t.height}}function te(e,t){var n;void 0===t&&(t=[]);let r=function e(t){let n=e6(t);return["html","body","#document"].includes(eW(n))?t.ownerDocument.body:e$(n)&&eG(n)?n:e(n)}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=eH(r),a=i?[o].concat(o.visualViewport||[],eG(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(te(a))}function tt(e,t,n){return"viewport"===t?eE(function(e,t){let n=eH(e),r=e4(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=eJ();(e||!e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n)):eK(t)?function(e,t){let n=e2(e,!1,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft;return{top:r,left:i,x:i,y:r,right:i+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):eE(function(e){var t;let n=e4(e),r=e3(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=e0(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=e0(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+e5(e),l=-r.scrollTop;return"rtl"===eU(i||n).direction&&(s+=e0(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(e4(e)))}let tn={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?function(e){let t=te(e),n=["absolute","fixed"].includes(eU(e).position)&&e$(e)?e7(e):e;return eK(n)?t.filter(e=>eK(e)&&function(e,t){let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&eY(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==eW(e)):[]}(t):[].concat(n),r],a=o[0],s=o.reduce((e,n)=>{let r=tt(t,n,i);return e.top=e0(r.top,e.top),e.right=eQ(r.right,e.right),e.bottom=eQ(r.bottom,e.bottom),e.left=e0(r.left,e.left),e},tt(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=e$(n),o=e4(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==eW(n)||eG(o))&&(a=e3(n)),e$(n))){let e=e2(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:eK,getDimensions:e9,getOffsetParent:e7,getDocumentElement:e4,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:function(e,t,n){let r=e$(t),i=e4(t),o=e2(e,r&&function(e){let t=e2(e);return e1(t.width)!==e.offsetWidth||e1(t.height)!==e.offsetHeight}(t),"fixed"===n),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&"fixed"!==n){if(("body"!==eW(t)||eG(i))&&(a=e3(t)),e$(t)){let e=e2(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=e5(i))}return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}(t,e7(n),r),floating:{...e9(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===eU(e).direction};function tr(e,t,n,r){void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=i&&!s,u=o&&!s,c=l||u?[...eK(e)?te(e):[],...te(t)]:[];c.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let d,f=null;if(a){let r=!0;f=new ResizeObserver(()=>{r||n(),r=!1}),eK(e)&&!s&&f.observe(e),f.observe(t)}let h=s?e2(e):null;return s&&function t(){let r=e2(e);h&&(r.x!==h.x||r.y!==h.y||r.width!==h.width||r.height!==h.height)&&n(),h=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{l&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}let ti=(e,t,n)=>ej(e,t,{platform:tn,...n});var to=n(28316),ta="undefined"!=typeof document?x.useLayoutEffect:x.useEffect;function ts(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:i}=void 0===e?{}:e,o=x.useRef(null),a=x.useRef(null),s=function(e){let t=x.useRef(e);return ta(()=>{t.current=e}),t}(i),l=x.useRef(null),[u,c]=x.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=x.useState(t);!function e(t,n){let r,i,o;if(t===n)return!0;if(typeof t!=typeof n)return!1;if("function"==typeof t&&t.toString()===n.toString())return!0;if(t&&n&&"object"==typeof t){if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){let r=o[i];if(("_owner"!==r||!t.$$typeof)&&!e(t[r],n[r]))return!1}return!0}return t!=t&&n!=n}(null==d?void 0:d.map(e=>{let{options:t}=e;return t}),null==t?void 0:t.map(e=>{let{options:t}=e;return t}))&&f(t);let h=x.useCallback(()=>{o.current&&a.current&&ti(o.current,a.current,{middleware:d,placement:n,strategy:r}).then(e=>{p.current&&to.flushSync(()=>{c(e)})})},[d,n,r]);ta(()=>{p.current&&h()},[h]);let p=x.useRef(!1);ta(()=>(p.current=!0,()=>{p.current=!1}),[]);let m=x.useCallback(()=>{if("function"==typeof l.current&&(l.current(),l.current=null),o.current&&a.current){if(s.current){let e=s.current(o.current,a.current,h);l.current=e}else h()}},[h,s]),v=x.useCallback(e=>{o.current=e,m()},[m]),g=x.useCallback(e=>{a.current=e,m()},[m]),y=x.useMemo(()=>({reference:o,floating:a}),[]);return x.useMemo(()=>({...u,update:h,refs:y,reference:v,floating:g}),[u,h,y,v,g])}let tl=e=>{let{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){if(Object.prototype.hasOwnProperty.call(t,"current")){if(null!=t.current)return eO({element:t.current,padding:n}).fn(e)}else if(t)return eO({element:t,padding:n}).fn(e);return{}}}},tu=(0,x.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,x.createElement)(O.WV.svg,(0,w.Z)({},o,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,x.createElement)("polygon",{points:"0,0 30,0 15,10"}))});function tc(e){let[t,n]=(0,x.useState)(void 0);return(0,M.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}let td="Popper",[tf,th]=(0,j.b)(td),[tp,tm]=tf(td),tv=(0,x.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,o=tm("PopperAnchor",n),a=(0,x.useRef)(null),s=(0,k.e)(t,a);return(0,x.useEffect)(()=>{o.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,x.createElement)(O.WV.div,(0,w.Z)({},i,{ref:s}))}),tg="PopperContent",[ty,tx]=tf(tg),[tb,tw]=tf(tg,{hasParent:!1,positionUpdateFns:new Set}),tj=(0,x.forwardRef)((e,t)=>{var n,r,i,o,a,s,l,u;let{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:h="center",alignOffset:p=0,arrowPadding:m=0,collisionBoundary:v=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:b=!1,avoidCollisions:w=!0,...j}=e,E=tm(tg,c),[S,_]=(0,x.useState)(null),C=(0,k.e)(t,e=>_(e)),[T,A]=(0,x.useState)(null),P=tc(T),N=null!==(n=null==P?void 0:P.width)&&void 0!==n?n:0,R=null!==(r=null==P?void 0:P.height)&&void 0!==r?r:0,D="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},L=Array.isArray(v)?v:[v],F=L.length>0,z={padding:D,boundary:L.filter(t_),altBoundary:F},{reference:V,floating:Z,strategy:I,x:B,y:H,placement:U,middlewareData:W,update:q}=ts({strategy:"fixed",placement:d+("center"!==h?"-"+h:""),whileElementsMounted:tr,middleware:[ez({mainAxis:f+R,alignmentAxis:p}),w?eZ({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?eI():void 0,...z}):void 0,T?tl({element:T,padding:m}):void 0,w?eR({...z}):void 0,tC({arrowWidth:N,arrowHeight:R}),b?eF({strategy:"referenceHidden"}):void 0].filter(tS)});(0,M.b)(()=>{V(E.anchor)},[V,E.anchor]);let $=null!==B&&null!==H,[K,Y]=tO(U),G=null===(i=W.arrow)||void 0===i?void 0:i.x,X=null===(o=W.arrow)||void 0===o?void 0:o.y,J=(null===(a=W.arrow)||void 0===a?void 0:a.centerOffset)!==0,[Q,ee]=(0,x.useState)();(0,M.b)(()=>{S&&ee(window.getComputedStyle(S).zIndex)},[S]);let{hasParent:et,positionUpdateFns:en}=tw(tg,c),er=!et;(0,x.useLayoutEffect)(()=>{if(!er)return en.add(q),()=>{en.delete(q)}},[er,en,q]),(0,x.useLayoutEffect)(()=>{er&&$&&Array.from(en).reverse().forEach(e=>requestAnimationFrame(e))},[er,$,en]);let ei={"data-side":K,"data-align":Y,...j,ref:C,style:{...j.style,animation:$?void 0:"none",opacity:null!==(s=W.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,x.createElement)("div",{ref:Z,"data-radix-popper-content-wrapper":"",style:{position:I,left:0,top:0,transform:$?`translate3d(${Math.round(B)}px, ${Math.round(H)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null===(l=W.transformOrigin)||void 0===l?void 0:l.x,null===(u=W.transformOrigin)||void 0===u?void 0:u.y].join(" ")}},(0,x.createElement)(ty,{scope:c,placedSide:K,onArrowChange:A,arrowX:G,arrowY:X,shouldHideArrow:J},er?(0,x.createElement)(tb,{scope:c,hasParent:!0,positionUpdateFns:en},(0,x.createElement)(O.WV.div,ei)):(0,x.createElement)(O.WV.div,ei)))}),tk={top:"bottom",right:"left",bottom:"top",left:"right"},tE=(0,x.forwardRef)(function(e,t){let{__scopePopper:n,...r}=e,i=tx("PopperArrow",n),o=tk[i.placedSide];return(0,x.createElement)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},(0,x.createElement)(tu,(0,w.Z)({},r,{ref:t,style:{...r.style,display:"block"}})))});function tS(e){return void 0!==e}function t_(e){return null!==e}let tC=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=tO(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(r=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+d/2,g=(null!==(o=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==o?o:0)+f/2,y="",x="";return"bottom"===h?(y=c?m:`${v}px`,x=`${-f}px`):"top"===h?(y=c?m:`${v}px`,x=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,x=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,x=c?m:`${g}px`),{data:{x:y,y:x}}}});function tO(e){let[t,n="center"]=e.split("-");return[t,n]}let tM=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,x.useState)(null);return(0,x.createElement)(tp,{scope:t,anchor:r,onAnchorChange:i},n)};var tT=n(6500);let tA=(0,x.forwardRef)((e,t)=>(0,x.createElement)(O.WV.span,(0,w.Z)({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),[tP,tN]=(0,j.b)("Tooltip",[th]),tR=th(),tD="tooltip.open",[tL,tF]=tP("TooltipProvider"),tz="Tooltip",[tV,tZ]=tP(tz),tI="TooltipTrigger",tB=(0,x.forwardRef)((e,t)=>{let{__scopeTooltip:n,...r}=e,i=tZ(tI,n),o=tF(tI,n),a=tR(n),s=(0,x.useRef)(null),l=(0,k.e)(t,s,i.onTriggerChange),u=(0,x.useRef)(!1),c=(0,x.useRef)(!1),d=(0,x.useCallback)(()=>u.current=!1,[]);return(0,x.useEffect)(()=>()=>document.removeEventListener("pointerup",d),[d]),(0,x.createElement)(tv,(0,w.Z)({asChild:!0},a),(0,x.createElement)(O.WV.button,(0,w.Z)({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},r,{ref:l,onPointerMove:(0,_.M)(e.onPointerMove,e=>{"touch"===e.pointerType||c.current||o.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:(0,_.M)(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:(0,_.M)(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:(0,_.M)(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:(0,_.M)(e.onBlur,i.onClose),onClick:(0,_.M)(e.onClick,e=>{let t=0===e.detail;t&&i.onClose()})})))}),tH="TooltipPortal",[tU,tW]=tP(tH,{forceMount:void 0}),tq="TooltipContent",t$=(0,x.forwardRef)((e,t)=>{let n=tW(tq,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,a=tZ(tq,e.__scopeTooltip);return(0,x.createElement)(T.z,{present:r||a.open},a.disableHoverableContent?(0,x.createElement)(tX,(0,w.Z)({side:i},o,{ref:t})):(0,x.createElement)(tK,(0,w.Z)({side:i},o,{ref:t})))}),tK=(0,x.forwardRef)((e,t)=>{let n=tZ(tq,e.__scopeTooltip),r=tF(tq,e.__scopeTooltip),i=(0,x.useRef)(null),o=(0,k.e)(t,i),[a,s]=(0,x.useState)(null),{trigger:l,onClose:u}=n,c=i.current,{onPointerInTransitChange:d}=r,f=(0,x.useCallback)(()=>{s(null),d(!1)},[d]),h=(0,x.useCallback)((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:return null}}(r,n.getBoundingClientRect()),o="right"===i||"bottom"===i?-5:5,a="right"===i||"left"===i?{x:e.clientX+o,y:e.clientY}:{x:e.clientX,y:e.clientY+o},l=function(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}(t.getBoundingClientRect()),u=function(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y?1:0),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}([a,...l]);s(u),d(!0)},[d]);return(0,x.useEffect)(()=>()=>f(),[f]),(0,x.useEffect)(()=>{if(l&&c){let e=e=>h(e,c),t=e=>h(e,l);return l.addEventListener("pointerleave",e),c.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),c.removeEventListener("pointerleave",t)}}},[l,c,h,f]),(0,x.useEffect)(()=>{if(a){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==l?void 0:l.contains(t))||(null==c?void 0:c.contains(t)),i=!function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;er!=u>r&&n<(l-a)*(r-s)/(u-s)+a;c&&(i=!i)}return i}(n,a);r?f():i&&(f(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[l,c,a,u,f]),(0,x.createElement)(tX,(0,w.Z)({},e,{ref:o}))}),[tY,tG]=tP(tz,{isInside:!1}),tX=(0,x.forwardRef)((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:a,...s}=e,l=tZ(tq,n),u=tR(n),{onClose:c}=l;return(0,x.useEffect)(()=>(document.addEventListener(tD,c),()=>document.removeEventListener(tD,c)),[c]),(0,x.useEffect)(()=>{if(l.trigger){let e=e=>{let t=e.target;null!=t&&t.contains(l.trigger)&&c()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[l.trigger,c]),(0,x.createElement)(ev.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:c},(0,x.createElement)(tj,(0,w.Z)({"data-state":l.stateAttribute},u,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),(0,x.createElement)(E.A4,null,r),(0,x.createElement)(tY,{scope:n,isInside:!0},(0,x.createElement)(tA,{id:l.contentId,role:"tooltip"},i||r))))}),tJ=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:o,disableHoverableContent:a,delayDuration:s}=e,l=tF(tz,e.__scopeTooltip),u=tR(t),[c,d]=(0,x.useState)(null),f=(0,A.M)(),h=(0,x.useRef)(0),p=null!=a?a:l.disableHoverableContent,m=null!=s?s:l.delayDuration,v=(0,x.useRef)(!1),[g=!1,y]=(0,C.T)({prop:r,defaultProp:i,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(tD))):l.onClose(),null==o||o(e)}}),b=(0,x.useMemo)(()=>g?v.current?"delayed-open":"instant-open":"closed",[g]),w=(0,x.useCallback)(()=>{window.clearTimeout(h.current),v.current=!1,y(!0)},[y]),j=(0,x.useCallback)(()=>{window.clearTimeout(h.current),y(!1)},[y]),k=(0,x.useCallback)(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,y(!0)},m)},[m,y]);return(0,x.useEffect)(()=>()=>window.clearTimeout(h.current),[]),(0,x.createElement)(tM,u,(0,x.createElement)(tV,{scope:t,contentId:f,open:g,stateAttribute:b,trigger:c,onTriggerChange:d,onTriggerEnter:(0,x.useCallback)(()=>{l.isOpenDelayed?k():w()},[l.isOpenDelayed,k,w]),onTriggerLeave:(0,x.useCallback)(()=>{p?j():window.clearTimeout(h.current)},[j,p]),onOpen:w,onClose:j,disableHoverableContent:p},n))},tQ=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=tZ(tH,t);return(0,x.createElement)(tU,{scope:t,forceMount:n},(0,x.createElement)(T.z,{present:n||o.open},(0,x.createElement)(tT.h,{asChild:!0,container:i},r)))},t0=(0,em.j)([],{variants:{display:{default:"inline-block",none:""},font:{mono:"font-mono",sans:"font-sans"},color:{verySubtle:"text-gray-700 dark:text-graydark-700",subtle:"text-gray-1000 dark:text-graydark-1000",contrast:"text-gray-1100 dark:text-white",lo:"text-white dark:text-graydark-50",accent:"text-accent-1100 dark:text-accentdark-1100",red:"text-red-700 dark:text-red-400",green:"text-emerald-700 dark:text-emerald-500",amber:"text-amber-600 dark:text-amber-500",none:""},weight:{extrabold:"font-extrabold",bold:"font-bold",medium:"font-medium",semibold:"font-semibold",regular:"font-normal",normal:"font-normal",light:"font-light",none:""},size:{10:"text-xxs",12:"text-xs",14:"text-sm",16:"text-base",18:"text-lg",20:"text-xl",24:"text-2xl",30:"text-3xl",36:"text-4xl",40:"text-5xl",48:"text-5xl",60:"text-6xl",64:"text-6xl"},scaleSize:{12:"text-xxs md:text-xs",14:"text-xs md:text-sm",16:"text-sm md:text-base",18:"text-base md:text-lg",20:"text-base md:text-xl",24:"text-xl md:text-2xl",30:"text-2xl md:text-3xl",36:"text-3xl md:text-4xl",40:"text-4xl md:text-5xl",48:"text-4xl md:text-5xl",60:"text-5xl md:text-6xl",64:"text-5xl md:text-6xl"},noWrap:{true:"whitespace-nowrap"},underline:{accent:"underline underline-offset-2 decoration-2 decoration-accent-900 dark:decoration-accentdark-900",show:"underline underline-offset-2 decoration-gray-1100 dark:decoration-gray-500",hover:"hover:underline underline-offset-2 decoration-gray-1100 dark:decoration-gray-500",none:""},ellipsis:{true:"overflow-hidden text-ellipsis whitespace-nowrap"},wrapEllipsis:{true:"overflow-hidden text-ellipsis"}},defaultVariants:{display:"default",weight:"regular",font:"sans",color:"contrast",underline:"none"}}),t1=x.forwardRef((e,t)=>{let{tag:n="span",className:r,font:i,color:o,weight:a,size:s,scaleSize:l,noWrap:u,underline:c,ellipsis:d,wrapEllipsis:f,...h}=e;return(0,y.jsx)(n,{ref:t,className:(0,em.cx)(r,t0({font:i,color:o,weight:a,size:s,scaleSize:l,underline:c,noWrap:u,ellipsis:d,wrapEllipsis:f})),...h})}),t2=x.forwardRef((e,t)=>{let{size:n="18",...r}=e;return(0,y.jsx)(t1,{tag:"p",...r,ref:t,weight:"regular",scaleSize:n,color:"subtle",className:(0,em.cx)("leading-relaxed md:leading-relaxed",e.className)})}),t4=(0,em.j)(["bg-white dark:bg-graydark-200","transition-shadow ease-in-out duration-300","shadow-sm hover:shadow","rounded","border","border-gray-400 dark:border-graydark-400"]),t3=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)("div",{ref:t,className:t4({className:n}),...r})});var t5=n(34406);let t6=(void 0===t5||t5.env,"production"),t8=1/60*1e3,t7="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),t9="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(t7()),t8),ne=!0,nt=!1,nn=!1,nr={delta:0,timestamp:0},ni=["read","update","preRender","render","postRender"],no=ni.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,o=!1,a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{let l=s&&i,u=l?t:n;return o&&a.add(e),-1===u.indexOf(e)&&(u.push(e),l&&i&&(r=t.length)),e},cancel:e=>{let t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length)for(let n=0;nnt=!0),e),{}),na=ni.reduce((e,t)=>{let n=no[t];return e[t]=(e,t=!1,r=!1)=>(nt||nd(),n.schedule(e,t,r)),e},{}),ns=ni.reduce((e,t)=>(e[t]=no[t].cancel,e),{}),nl=ni.reduce((e,t)=>(e[t]=()=>no[t].process(nr),e),{}),nu=e=>no[e].process(nr),nc=e=>{nt=!1,nr.delta=ne?t8:Math.max(Math.min(e-nr.timestamp,40),1),nr.timestamp=e,nn=!0,ni.forEach(nu),nn=!1,nt&&(ne=!1,t9(nc))},nd=()=>{nt=!0,ne=!0,nn||t9(nc)},nf=()=>nr,nh="undefined"!=typeof document,np=nh?x.useLayoutEffect:x.useEffect;function nm(){let e=(0,x.useRef)(!1);return np(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let nv=(0,x.createContext)(null);function ng(e){let t=(0,x.useRef)(null);return null===t.current&&(t.current=e()),t.current}class ny extends x.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function nx({children:e,isPresent:t}){let n=(0,x.useId)(),r=(0,x.useRef)(null),i=(0,x.useRef)({width:0,height:0,top:0,left:0});return(0,x.useInsertionEffect)(()=>{let{width:e,height:o,top:a,left:s}=i.current;if(t||!r.current||!e||!o)return;r.current.dataset.motionPopId=n;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` - [data-motion-pop-id="${n}"] { - position: absolute !important; - width: ${e}px !important; - height: ${o}px !important; - top: ${a}px !important; - left: ${s}px !important; - } - `),()=>{document.head.removeChild(l)}},[t]),x.createElement(ny,{isPresent:t,childRef:r,sizeRef:i},x.cloneElement(e,{ref:r}))}let nb=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{let s=ng(nw),l=(0,x.useId)(),u=(0,x.useMemo)(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:e=>{for(let t of(s.set(e,!0),s.values()))if(!t)return;r&&r()},register:e=>(s.set(e,!1),()=>s.delete(e))}),o?void 0:[n]);return(0,x.useMemo)(()=>{s.forEach((e,t)=>s.set(t,!1))},[n]),x.useEffect(()=>{n||s.size||!r||r()},[n]),"popLayout"===a&&(e=x.createElement(nx,{isPresent:n},e)),x.createElement(nv.Provider,{value:u},e)};function nw(){return new Map}let nj=(0,x.createContext)({});function nk(e){return(0,x.useEffect)(()=>()=>e(),[])}let nE=new Set;function nS(e,t,n){e||nE.has(t)||(console.warn(t),n&&console.warn(n),nE.add(t))}let n_=e=>e.key||"",nC=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",nS(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=function(){let e=nm(),[t,n]=(0,x.useState)(0),r=(0,x.useCallback)(()=>{e.current&&n(t+1)},[t]),i=(0,x.useCallback)(()=>na.postRender(r),[r]);return[i,t]}(),l=(0,x.useContext)(nj).forceRender;l&&(s=l);let u=nm(),c=function(e){let t=[];return x.Children.forEach(e,e=>{(0,x.isValidElement)(e)&&t.push(e)}),t}(e),d=c,f=new Set,h=(0,x.useRef)(d),p=(0,x.useRef)(new Map).current,m=(0,x.useRef)(!0);if(np(()=>{m.current=!1,function(e,t){e.forEach(e=>{let n=n_(e);t.set(n,e)})}(c,p),h.current=d}),nk(()=>{m.current=!0,p.clear(),f.clear()}),m.current)return x.createElement(x.Fragment,null,d.map(e=>x.createElement(nb,{key:n_(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:o,mode:a},e)));d=[...d];let v=h.current.map(n_),g=c.map(n_),y=v.length;for(let e=0;e{if(-1!==g.indexOf(e))return;let n=p.get(e);if(!n)return;let i=v.indexOf(e);d.splice(i,0,x.createElement(nb,{key:n_(n),isPresent:!1,onExitComplete:()=>{p.delete(e),f.delete(e);let t=h.current.findIndex(t=>t.key===e);if(h.current.splice(t,1),!f.size){if(h.current=c,!1===u.current)return;s(),r&&r()}},custom:t,presenceAffectsLayout:o,mode:a},n))}),d=d.map(e=>{let t=e.key;return f.has(t)?e:x.createElement(nb,{key:n_(e),isPresent:!0,presenceAffectsLayout:o,mode:a},e)}),"production"!==t6&&"wait"===a&&d.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.'),x.createElement(x.Fragment,null,f.size?d:d.map(e=>(0,x.cloneElement)(e)))},nO=(0,x.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),nM=(0,x.createContext)({}),nT=(0,x.createContext)({strict:!1});function nA(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function nP(e){return"string"==typeof e||Array.isArray(e)}function nN(e){return"object"==typeof e&&"function"==typeof e.start}let nR=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function nD(e){return nN(e.animate)||nR.some(t=>nP(e[t]))}function nL(e){return!!(nD(e)||e.variants)}function nF(e){return Array.isArray(e)?e.join(" "):e}let nz=e=>({isEnabled:t=>e.some(e=>!!t[e])}),nV={measureLayout:nz(["layout","layoutId","drag"]),animation:nz(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:nz(["exit"]),drag:nz(["drag","dragControls"]),focus:nz(["whileFocus"]),hover:nz(["whileHover","onHoverStart","onHoverEnd"]),tap:nz(["whileTap","onTap","onTapStart","onTapCancel"]),pan:nz(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:nz(["whileInView","onViewportEnter","onViewportLeave"])},nZ={hasAnimatedSinceResize:!0,hasEverUpdated:!1},nI=1;class nB extends x.Component{getSnapshotBeforeUpdate(){let{visualElement:e,props:t}=this.props;return e&&e.setProps(t),null}componentDidUpdate(){}render(){return this.props.children}}let nH=(0,x.createContext)({}),nU=Symbol.for("motionComponentSymbol"),nW=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function nq(e){if("string"!=typeof e||e.includes("-"));else if(nW.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let n$={},nK=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],nY=new Set(nK);function nG(e,{layout:t,layoutId:n}){return nY.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!n$[e]||"opacity"===e)}let nX=e=>!!(null==e?void 0:e.getVelocity),nJ={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nQ=(e,t)=>nK.indexOf(e)-nK.indexOf(t);function n0(e){return e.startsWith("--")}let n1=(e,t)=>t&&"number"==typeof e?t.transform(e):e,n2=(e,t)=>n=>Math.max(Math.min(n,t),e),n4=e=>e%1?Number(e.toFixed(5)):e,n3=/(-)?([\d]*\.?[\d])+/g,n5=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,n6=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function n8(e){return"string"==typeof e}let n7=e=>({test:t=>n8(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),n9=n7("deg"),re=n7("%"),rt=n7("px"),rn=n7("vh"),rr=n7("vw"),ri=Object.assign(Object.assign({},re),{parse:e=>re.parse(e)/100,transform:e=>re.transform(100*e)}),ro={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},ra=Object.assign(Object.assign({},ro),{transform:n2(0,1)}),rs=Object.assign(Object.assign({},ro),{default:1}),rl={...ro,transform:Math.round},ru={borderWidth:rt,borderTopWidth:rt,borderRightWidth:rt,borderBottomWidth:rt,borderLeftWidth:rt,borderRadius:rt,radius:rt,borderTopLeftRadius:rt,borderTopRightRadius:rt,borderBottomRightRadius:rt,borderBottomLeftRadius:rt,width:rt,maxWidth:rt,height:rt,maxHeight:rt,size:rt,top:rt,right:rt,bottom:rt,left:rt,padding:rt,paddingTop:rt,paddingRight:rt,paddingBottom:rt,paddingLeft:rt,margin:rt,marginTop:rt,marginRight:rt,marginBottom:rt,marginLeft:rt,rotate:n9,rotateX:n9,rotateY:n9,rotateZ:n9,scale:rs,scaleX:rs,scaleY:rs,scaleZ:rs,skew:n9,skewX:n9,skewY:n9,distance:rt,translateX:rt,translateY:rt,translateZ:rt,x:rt,y:rt,z:rt,perspective:rt,transformPerspective:rt,opacity:ra,originX:ri,originY:ri,originZ:rt,zIndex:rl,fillOpacity:ra,strokeOpacity:ra,numOctaves:rl};function rc(e,t,n,r){let{style:i,vars:o,transform:a,transformKeys:s,transformOrigin:l}=e;s.length=0;let u=!1,c=!1,d=!0;for(let e in t){let n=t[e];if(n0(e)){o[e]=n;continue}let r=ru[e],f=n1(n,r);if(nY.has(e)){if(u=!0,a[e]=f,s.push(e),!d)continue;n!==(r.default||0)&&(d=!1)}else e.startsWith("origin")?(c=!0,l[e]=f):i[e]=f}if(!t.transform&&(u||r?i.transform=function({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},i,o){let a="";for(let n of(t.sort(nQ),t))a+=`${nJ[n]||n}(${e[n]}) `;return n&&!e.z&&(a+="translateZ(0)"),a=a.trim(),o?a=o(e,i?"":a):r&&i&&(a="none"),a}(e,n,d,r):i.transform&&(i.transform="none")),c){let{originX:e="50%",originY:t="50%",originZ:n=0}=l;i.transformOrigin=`${e} ${t} ${n}`}}let rd=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function rf(e,t,n){for(let r in t)nX(t[r])||nG(r,n)||(e[r]=t[r])}function rh(e,t,n){let r={},i=function(e,t,n){let r=e.style||{},i={};return rf(i,r,e),Object.assign(i,function({transformTemplate:e},t,n){return(0,x.useMemo)(()=>{let r=rd();return rc(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}(e,t,n)),e.transformValues?e.transformValues(i):i}(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),r.style=i,r}let rp=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll","whileInView","onViewportEnter","onViewportLeave","viewport","whileTap","onTap","onTapStart","onTapCancel","animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView","onPan","onPanStart","onPanSessionStart","onPanEnd"]);function rm(e){return rp.has(e)}let rv=e=>!rm(e);try{(kf=require("@emotion/is-prop-valid").default)&&(rv=e=>e.startsWith("on")?!rm(e):kf(e))}catch(e){}function rg(e,t,n){return"string"==typeof e?e:rt.transform(t+n*e)}let ry={offset:"stroke-dashoffset",array:"stroke-dasharray"},rx={offset:"strokeDashoffset",array:"strokeDasharray"};function rb(e,{attrX:t,attrY:n,originX:r,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:s=0,...l},u,c){rc(e,l,u,c),e.attrs=e.style,e.style={};let{attrs:d,style:f,dimensions:h}=e;d.transform&&(h&&(f.transform=d.transform),delete d.transform),h&&(void 0!==r||void 0!==i||f.transform)&&(f.transformOrigin=function(e,t,n){let r=rg(t,e.x,e.width),i=rg(n,e.y,e.height);return`${r} ${i}`}(h,void 0!==r?r:.5,void 0!==i?i:.5)),void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==o&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?ry:rx;e[o.offset]=rt.transform(-r);let a=rt.transform(t),s=rt.transform(n);e[o.array]=`${a} ${s}`}(d,o,a,s,!1)}let rw=()=>({...rd(),attrs:{}});function rj(e,t){let n=(0,x.useMemo)(()=>{let n=rw();return rb(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};rf(t,e.style,e),n.style={...t,...n.style}}return n}let rk=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function rE(e,{style:t,vars:n},r,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(r)),n)e.style.setProperty(o,n[o])}let rS=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function r_(e,t,n,r){for(let n in rE(e,t,void 0,r),t.attrs)e.setAttribute(rS.has(n)?n:rk(n),t.attrs[n])}function rC(e){let{style:t}=e,n={};for(let r in t)(nX(t[r])||nG(r,e))&&(n[r]=t[r]);return n}function rO(e){let t=rC(e);for(let n in e)if(nX(e[n])){let r="x"===n||"y"===n?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function rM(e,t,n,r={},i={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),t}let rT=e=>Array.isArray(e),rA=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),rP=e=>rT(e)?e[e.length-1]||0:e;function rN(e){let t=nX(e)?e.get():e;return rA(t)?t.toValue():t}let rR=e=>(t,n)=>{let r=(0,x.useContext)(nM),i=(0,x.useContext)(nv),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){let a={latestValues:function(e,t,n,r){let i={},o=r(e);for(let e in o)i[e]=rN(o[e]);let{initial:a,animate:s}=e,l=nD(e),u=nL(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial;c=c||!1===a;let d=c?s:a;if(d&&"boolean"!=typeof d&&!nN(d)){let t=Array.isArray(d)?d:[d];t.forEach(t=>{let n=rM(e,t);if(!n)return;let{transitionEnd:r,transition:o,...a}=n;for(let e in a){let t=a[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let e in r)i[e]=r[e]})}return i}(r,i,o,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a})(e,t,r,i);return n?o():ng(o)},rD={useVisualState:rR({scrapeMotionValuesFromProps:rO,createRenderState:rw,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}rb(n,r,{enableHardwareAcceleration:!1},e.transformTemplate),r_(t,n)}})},rL={useVisualState:rR({scrapeMotionValuesFromProps:rC,createRenderState:rd})};function rF(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function rz(e,t,n,r){(0,x.useEffect)(()=>{let i=e.current;if(n&&i)return rF(i,t,n,r)},[e,t,n,r])}function rV(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function rZ(e){let t=!!e.touches;return t}(kh=ky||(ky={})).Animate="animate",kh.Hover="whileHover",kh.Tap="whileTap",kh.Drag="whileDrag",kh.Focus="whileFocus",kh.InView="whileInView",kh.Exit="exit";let rI={pageX:0,pageY:0};function rB(e,t="page"){return{point:rZ(e)?function(e,t="page"){let n=e.touches[0]||e.changedTouches[0],r=n||rI;return{x:r[t+"X"],y:r[t+"Y"]}}(e,t):function(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}(e,t)}}let rH=(e,t=!1)=>{let n=t=>e(t,rB(t));return t?e=>{let t=e instanceof MouseEvent,r=!t||t&&0===e.button;r&&n(e)}:n},rU=()=>nh&&null===window.onpointerdown,rW=()=>nh&&null===window.ontouchstart,rq=()=>nh&&null===window.onmousedown,r$={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},rK={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function rY(e){if(rU());else if(rW())return rK[e];else if(rq())return r$[e];return e}function rG(e,t,n,r){return rF(e,rY(t),rH(n,"pointerdown"===t),r)}function rX(e,t,n,r){return rz(e,rY(t),n&&rH(n,"pointerdown"===t),r)}function rJ(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let rQ=rJ("dragHorizontal"),r0=rJ("dragVertical");function r1(e){let t=!1;if("y"===e)t=r0();else if("x"===e)t=rQ();else{let e=rQ(),n=r0();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function r2(){let e=r1(!0);return!e||(e(),!1)}function r4(e,t,n){return(r,i)=>{!(!rV(r)||r2())&&(e.animationState&&e.animationState.setActive(ky.Hover,t),n&&n(r,i))}}let r3=(e,t)=>!!t&&(e===t||r3(e,t.parentElement)),r5=(e,t)=>n=>t(e(n)),r6=(...e)=>e.reduce(r5),r8=new WeakMap,r7=new WeakMap,r9=e=>{let t=r8.get(e.target);t&&t(e)},ie=e=>{e.forEach(r9)},it={some:0,all:1};function ir(e,t,n,{root:r,margin:i,amount:o="some",once:a}){(0,x.useEffect)(()=>{if(!e||!n.current)return;let s={root:null==r?void 0:r.current,rootMargin:i,threshold:"number"==typeof o?o:it[o]};return function(e,t,n){let r=function({root:e,...t}){let n=e||document;r7.has(n)||r7.set(n,{});let r=r7.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(ie,{root:e,...t})),r[i]}(t);return r8.set(e,n),r.observe(e),()=>{r8.delete(e),r.unobserve(e)}}(n.current,s,e=>{let{isIntersecting:r}=e;if(t.isInView===r||(t.isInView=r,a&&!r&&t.hasEnteredView))return;r&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(ky.InView,r);let i=n.getProps(),o=r?i.onViewportEnter:i.onViewportLeave;o&&o(e)})},[e,r,i,o])}function ii(e,t,n,{fallback:r=!0}){(0,x.useEffect)(()=>{e&&r&&("production"!==t6&&nS(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;let{onViewportEnter:e}=n.getProps();e&&e(null),n.animationState&&n.animationState.setActive(ky.InView,!0)}))},[e])}let io=e=>t=>(e(t),null),ia={inView:io(function({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:i={}}){let o=(0,x.useRef)({hasEnteredView:!1,isInView:!1}),a=!!(t||n||r);i.once&&o.current.hasEnteredView&&(a=!1);let s="undefined"==typeof IntersectionObserver?ii:ir;s(a,o.current,e,i)}),tap:io(function({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:i}){let o=e||t||n||r,a=(0,x.useRef)(!1),s=(0,x.useRef)(null),l={passive:!(t||e||n||h)};function u(){s.current&&s.current(),s.current=null}function c(){return u(),a.current=!1,i.animationState&&i.animationState.setActive(ky.Tap,!1),!r2()}function d(t,r){c()&&(r3(i.current,t.target)?e&&e(t,r):n&&n(t,r))}function f(e,t){c()&&n&&n(e,t)}function h(e,n){u(),!a.current&&(a.current=!0,s.current=r6(rG(window,"pointerup",d,l),rG(window,"pointercancel",f,l)),i.animationState&&i.animationState.setActive(ky.Tap,!0),t&&t(e,n))}rX(i,"pointerdown",o?h:void 0,l),nk(u)}),focus:io(function({whileFocus:e,visualElement:t}){let{animationState:n}=t;rz(t,"focus",e?()=>{n&&n.setActive(ky.Focus,!0)}:void 0),rz(t,"blur",e?()=>{n&&n.setActive(ky.Focus,!1)}:void 0)}),hover:io(function({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){rX(r,"pointerenter",e||n?r4(r,!0,e):void 0,{passive:!e}),rX(r,"pointerleave",t||n?r4(r,!1,t):void 0,{passive:!t})})};function is(){let e=(0,x.useContext)(nv);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:r}=e,i=(0,x.useId)();return(0,x.useEffect)(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function il(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;rt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var ic=function(){},id=function(){};let ih=(e,t,n)=>Math.min(Math.max(n,e),t);function ip(e,t){return e*Math.sqrt(1-t*t)}let im=["duration","bounce"],iv=["stiffness","damping","mass"];function ig(e,t){return t.some(t=>void 0!==e[t])}function iy(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=iu(e,["from","to","restSpeed","restDelta"]);let a={done:!1,value:t},{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!ig(e,iv)&&ig(e,im)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;ic(e<=1e4,"Spring duration must be 10 seconds or less");let a=1-t;a=ih(.05,1,a),e=ih(.01,10,e/1e3),a<1?(i=t=>{let r=t*a,i=r*e,o=ip(t,a),s=Math.exp(-i);return .001-(r-n)/o*s},o=t=>{let r=t*a,o=r*e,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-o),u=ip(Math.pow(t,2),a),c=-i(t)+.001>0?-1:1;return c*((o*n+n-s)*l)/u}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return -.001+r*i},o=t=>{let r=Math.exp(-t*e),i=(n-t)*(e*e);return r*i});let s=5/e,l=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,s);if(e*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(l,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);(t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(o),h=ix,p=ix;function m(){let e=c?-(c/1e3):0,r=n-t,o=l/(2*Math.sqrt(s*u)),a=Math.sqrt(s/u)/1e3;if(void 0===i&&(i=Math.min(Math.abs(n-t)/100,.4)),o<1){let t=ip(a,o);h=i=>{let s=Math.exp(-o*a*i);return n-s*((e+o*a*r)/t*Math.sin(t*i)+r*Math.cos(t*i))},p=n=>{let i=Math.exp(-o*a*n);return o*a*i*(Math.sin(t*n)*(e+o*a*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+o*a*r)-t*r*Math.sin(t*n))}}else if(1===o)h=t=>n-Math.exp(-a*t)*(r+(e+a*r)*t);else{let t=a*Math.sqrt(o*o-1);h=i=>{let s=Math.exp(-o*a*i),l=Math.min(t*i,300);return n-s*((e+o*a*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return m(),{next:e=>{let t=h(e);if(f)a.done=e>=d;else{let o=1e3*p(e),s=Math.abs(o)<=r,l=Math.abs(n-t)<=i;a.done=s&&l}return a.value=a.done?n:t,a},flipTarget:()=>{c=-c,[t,n]=[n,t],m()}}}iy.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let ix=e=>0,ib=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r},iw=(e,t,n)=>-n*e+n*t+e,ij=(e,t)=>n=>!!(n8(n)&&n6.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),ik=(e,t,n)=>r=>{if(!n8(r))return r;let[i,o,a,s]=r.match(n3);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},iE=n2(0,255),iS=Object.assign(Object.assign({},ro),{transform:e=>Math.round(iE(e))}),i_={test:ij("rgb","red"),parse:ik("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+iS.transform(e)+", "+iS.transform(t)+", "+iS.transform(n)+", "+n4(ra.transform(r))+")"},iC={test:ij("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:i_.transform},iO={test:ij("hsl","hue"),parse:ik("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+re.transform(n4(t))+", "+re.transform(n4(n))+", "+n4(ra.transform(r))+")"};function iM(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function iT({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=iM(s,r,e+1/3),o=iM(s,r,e),a=iM(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}let iA=(e,t,n)=>{let r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},iP=[iC,i_,iO],iN=e=>iP.find(t=>t.test(e)),iR=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,iD=(e,t)=>{let n=iN(e),r=iN(t);id(!!n,iR(e)),id(!!r,iR(t));let i=n.parse(e),o=r.parse(t);n===iO&&(i=iT(i),n=i_),r===iO&&(o=iT(o),r=i_);let a=Object.assign({},i);return e=>{for(let t in a)"alpha"!==t&&(a[t]=iA(i[t],o[t],e));return a.alpha=iw(i.alpha,o.alpha,e),n.transform(a)}},iL={test:e=>i_.test(e)||iC.test(e)||iO.test(e),parse:e=>i_.test(e)?i_.parse(e):iO.test(e)?iO.parse(e):iC.parse(e),transform:e=>n8(e)?e:e.hasOwnProperty("red")?i_.transform(e):iO.transform(e)},iF="${c}",iz="${n}";function iV(e){"number"==typeof e&&(e=`${e}`);let t=[],n=0,r=e.match(n5);r&&(n=r.length,e=e.replace(n5,iF),t.push(...r.map(iL.parse)));let i=e.match(n3);return i&&(e=e.replace(n3,iz),t.push(...i.map(ro.parse))),{values:t,numColors:n,tokenised:e}}function iZ(e){return iV(e).values}function iI(e){let{values:t,numColors:n,tokenised:r}=iV(e),i=t.length;return e=>{let t=r;for(let r=0;r"number"==typeof e?0:e,iH={test:function(e){var t,n,r,i;return isNaN(e)&&n8(e)&&(null!==(n=null===(t=e.match(n3))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(n5))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:iZ,createTransformer:iI,getAnimatableNone:function(e){let t=iZ(e),n=iI(e);return n(t.map(iB))}},iU=e=>"number"==typeof e;function iW(e,t){return iU(e)?n=>iw(e,t,n):iL.test(e)?iD(e,t):iY(e,t)}let iq=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>iW(e,t[n]));return e=>{for(let t=0;t{let n=Object.assign(Object.assign({},e),t),r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=iW(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}};function iK(e){let t=iH.parse(e),n=t.length,r=0,i=0,o=0;for(let e=0;e{let n=iH.createTransformer(t),r=iK(e),i=iK(t),o=r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers;return o?r6(iq(r.parsed,i.parsed),n):(ic(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?t:e}`)},iG=(e,t)=>n=>iw(e,t,n);function iX(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;id(o===t.length,"Both input and output ranges must be the same length"),id(!r||!Array.isArray(r)||r.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let a=function(e,t,n){var r;let i=[],o=n||("number"==typeof(r=e[0])?iG:"string"==typeof r?iL.test(r)?iD:iY:Array.isArray(r)?iq:"object"==typeof r?i$:void 0),a=e.length-1;for(let n=0;nn(ib(e,t,r))}(e,a):function(e,t){let n=e.length,r=n-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[r]&&(o=r-1,a=!0),!a){let t=1;for(;ti)&&t!==r;t++);o=t-1}let s=ib(e[o],e[o+1],i);return t[o](s)}}(e,a);return n?t=>s(ih(e[0],e[o-1],t)):s}let iJ=e=>t=>1-e(1-t),iQ=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,i0=e=>t=>t*t*((e+1)*t-e),i1=4/11,i2=8/11,i4=e=>e,i3=e=>Math.pow(e,2),i5=iJ(i3),i6=iQ(i3),i8=e=>1-Math.sin(Math.acos(e)),i7=iJ(i8),i9=iQ(i7),oe=i0(1.525),ot=iJ(oe),on=iQ(oe),or=(e=>{let t=i0(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(0),oi=4356/361,oo=35442/1805,oa=16061/1805,os=e=>{if(1===e||0===e)return e;let t=e*e;return e0!==n?n/(t-1):0)}(a)).map(e=>e*i);function l(){return iX(s,a,{ease:Array.isArray(n)?n:a.map(()=>n||i6).splice(0,a.length-1)})}let u=l();return{next:e=>(o.value=u(e),o.done=e>=i,o),flipTarget:()=>{a.reverse(),u=l()}}}let oc={keyframes:ou,spring:iy,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){let a={done:!1,value:t},s=n*e,l=t+s,u=void 0===o?l:o(l);return u!==l&&(s=u-t),{next:e=>{let t=-s*Math.exp(-e/r);return a.done=!(t>i||t<-i),a.value=a.done?u:u+t,a},flipTarget:()=>{}}}};function od(e,t,n=0){return e-t-n}let of=e=>{let t=({delta:t})=>e(t);return{start:()=>na.update(t,!0),stop:()=>ns.update(t)}};function oh(e){let t,n,r;var i,{from:o,autoplay:a=!0,driver:s=of,elapsed:l=0,repeat:u=0,repeatType:c="loop",repeatDelay:d=0,onPlay:f,onStop:h,onComplete:p,onRepeat:m,onUpdate:v}=e,g=iu(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:y}=g,x=0,b=g.duration,w=!1,j=!0,k=function(e){if(Array.isArray(e.to))return ou;if(oc[e.type])return oc[e.type];let t=new Set(Object.keys(e));if(t.has("ease")||t.has("duration")&&!t.has("dampingRatio"));else if(t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta"))return iy;return ou}(g);(null===(i=k.needsInterpolation)||void 0===i?void 0:i.call(k,o,y))&&(r=iX([0,100],[o,y],{clamp:!1}),o=0,y=100);let E=k(Object.assign(Object.assign({},g),{from:o,to:y}));return a&&(null==f||f(),(t=s(function(e){if(j||(e=-e),l+=e,!w){let e=E.next(Math.max(0,l));n=e.value,r&&(n=r(n)),w=j?e.done:l<=0}if(null==v||v(n),w){if(0===x&&(null!=b||(b=l)),x=o+d:i<=-d)&&(x++,"reverse"===c?l=function(e,t,n=0,r=!0){return r?od(t+-e,t,n):t-(e-t)+n}(l,b,d,j=x%2==0):(l=od(l,b,d),"mirror"===c&&E.flipTarget()),w=!1,m&&m())}else t.stop(),p&&p()}})).start()),{stop:()=>{null==h||h(),t.stop()}}}let op=e=>1e3*e,om=(e,t)=>1-3*t+3*e,ov=(e,t)=>3*t-6*e,og=e=>3*e,oy=(e,t,n)=>((om(t,n)*e+ov(t,n))*e+og(t))*e,ox=(e,t,n)=>3*om(t,n)*e*e+2*ov(t,n)*e+og(t),ob={linear:i4,easeIn:i3,easeInOut:i6,easeOut:i5,circIn:i8,circInOut:i9,circOut:i7,backIn:oe,backInOut:on,backOut:ot,anticipate:or,bounceIn:ol,bounceInOut:e=>e<.5?.5*(1-os(1-2*e)):.5*os(2*e-1)+.5,bounceOut:os},ow=e=>{if(Array.isArray(e)){id(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,i]=e;return function(e,t,n,r){if(e===t&&n===r)return i4;let i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=oy(.1*t,e,n);return o=>0===o||1===o?o:oy(function(t){let r=0,o=1;for(;10!==o&&i[o]<=t;++o)r+=.1;--o;let a=(t-i[o])/(i[o+1]-i[o]),s=r+.1*a,l=ox(s,e,n);return l>=.001?function(e,t,n,r){for(let i=0;i<8;++i){let i=ox(t,n,r);if(0===i)break;let o=oy(t,n,r)-e;t-=o/i}return t}(t,s,e,n):0===l?s:function(e,t,n,r,i){let o,a;let s=0;do(o=oy(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a;while(Math.abs(o)>1e-7&&++s<10);return a}(t,r,r+.1,e,n)}(o),t,r)}(t,n,r,i)}return"string"==typeof e?(id(void 0!==ob[e],`Invalid easing type '${e}'`),ob[e]):e},oj=e=>Array.isArray(e)&&"number"!=typeof e[0],ok=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&iH.test(t)&&!t.startsWith("url(")),oE=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),oS=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),o_=()=>({type:"keyframes",ease:"linear",duration:.3}),oC=e=>({type:"keyframes",duration:.8,values:e}),oO={x:oE,y:oE,z:oE,rotate:oE,rotateX:oE,rotateY:oE,rotateZ:oE,scaleX:oS,scaleY:oS,scale:oS,opacity:o_,backgroundColor:o_,color:o_,default:oS},oM=(e,t)=>({to:t,...(rT(t)?oC:oO[e]||oO.default)(t)}),oT=new Set(["brightness","contrast","saturate","opacity"]);function oA(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(n3)||[];if(!r)return e;let i=n.replace(r,""),o=oT.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}let oP=/([a-z-]*)\(.*?\)/g,oN=Object.assign(Object.assign({},iH),{getAnimatableNone:e=>{let t=e.match(oP);return t?t.map(oA).join(" "):e}}),oR={...ru,color:iL,backgroundColor:iL,outlineColor:iL,fill:iL,stroke:iL,borderColor:iL,borderTopColor:iL,borderRightColor:iL,borderBottomColor:iL,borderLeftColor:iL,filter:oN,WebkitFilter:oN},oD=e=>oR[e];function oL(e,t){var n;let r=oD(e);return r!==oN&&(r=iH),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}let oF={current:!1};function oz(e,t){let n=performance.now(),r=({timestamp:i})=>{let o=i-n;o>=t&&(ns.read(r),e(o-t))};return na.read(r,!0),()=>ns.read(r)}let oV=!1;function oZ(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function oI(e){return"number"==typeof e?0:oL("",e)}function oB(e,t){return e[t]||e.default||e}function oH(e,t,n,r={}){return oF.current&&(r={type:!1}),t.start(i=>{let o,a;let s=function(e,t,n,r,i){let o=oB(r,e)||{},a=void 0!==o.from?o.from:t.get(),s=ok(e,n);"none"===a&&s&&"string"==typeof n?a=oL(e,n):oZ(a)&&"string"==typeof n?a=oI(n):!Array.isArray(n)&&oZ(n)&&"string"==typeof a&&(n=oI(a));let l=ok(e,a);return ic(l===s,`You are trying to animate ${e} from "${a}" to "${n}". ${a} is not an animatable value - to enable this animation set ${a} to a value animatable to ${n} via the \`style\` property.`),l&&s&&!1!==o.type?function(){var r;let s={from:a,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:e=>t.set(e)};return"inertia"===o.type||"decay"===o.type?function({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:f,onStop:h}){let p;function m(e){return void 0!==n&&er}function v(e){return void 0===n?r:void 0===r?n:Math.abs(n-e){var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:h}))}function y(e){g(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:l},e))}if(m(e))y({from:e,velocity:t,to:v(e)});else{let r,a,s=i*t+e;void 0!==u&&(s=u(s));let c=v(s),d=c===n?-1:1;g({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:l,modifyTarget:u,onUpdate:m(s)?e=>{var n;r=a,a=e,t=(n=nf().delta)?(e-r)*(1e3/n):0,(1===d&&e>c||-1===d&&enull==p?void 0:p.stop()}}({...s,...o}):oh({...(r=o,Array.isArray(s.to)&&void 0===r.duration&&(r.duration=.8),Array.isArray(s.to)&&null===s.to[0]&&(s.to=[...s.to],s.to[0]=s.from),!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,...u}){return!!Object.keys(u).length}(r)&&(r={...r,...oM(e,s.to)}),{...s,...function({ease:e,times:t,yoyo:n,flip:r,loop:i,...o}){let a={...o};return t&&(a.offset=t),o.duration&&(a.duration=op(o.duration)),o.repeatDelay&&(a.repeatDelay=op(o.repeatDelay)),e&&(a.ease=oj(e)?e.map(ow):ow(e)),"tween"===o.type&&(a.type="keyframes"),(n||i||r)&&(ic(!oV,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),oV=!0,n?a.repeatType="reverse":i?a.repeatType="loop":r&&(a.repeatType="mirror"),a.repeat=i||n||r||o.repeat),"spring"!==o.type&&(a.type="keyframes"),a}(r)}),onUpdate:e=>{s.onUpdate(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{s.onComplete(),o.onComplete&&o.onComplete()}})}:function(){let e=rP(n);return t.set(e),i(),o.onUpdate&&o.onUpdate(e),o.onComplete&&o.onComplete(),{stop:()=>{}}}}(e,t,n,r,i),l=function(e,t){var n,r;let i=oB(e,t)||{};return null!==(r=null!==(n=i.delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=()=>o=s();return l?a=oz(u,op(l)):u(),()=>{a&&a(),o&&o.stop()}})}let oU=e=>/^\-?\d*\.?\d+$/.test(e),oW=e=>/^0[^.\s]+$/.test(e);function oq(e,t){-1===e.indexOf(t)&&e.push(t)}function o$(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class oK{constructor(){this.subscriptions=[]}add(e){return oq(this.subscriptions,e),()=>o$(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i!isNaN(parseFloat(e));class oG{constructor(e){this.version="7.6.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new oK,this.velocityUpdateSubscribers=new oK,this.renderSubscribers=new oK,this.canTrackVelocity=!1,this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:n,timestamp:r}=nf();this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,na.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),t&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>na.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=oY(this.current)}onChange(e){return this.updateSubscribers.add(e)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(e){return e(this.get()),this.renderSubscribers.add(e)}attach(e){this.passiveEffect=e}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){var e,t;return this.canTrackVelocity?(e=parseFloat(this.current)-parseFloat(this.prev),(t=this.timeDelta)?e*(1e3/t):0):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.stopAnimation=e(t)}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function oX(e){return new oG(e)}let oJ=e=>t=>t.test(e),oQ=[ro,rt,re,n9,rr,rn,{test:e=>"auto"===e,parse:e=>e}],o0=e=>oQ.find(oJ(e)),o1=[...oQ,iL,iH],o2=e=>o1.find(oJ(e));function o4(e,t,n){let r=e.getProps();return rM(r,t,void 0!==n?n:r.custom,function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}function o3(e){return!!(nX(e)&&e.add)}function o5(e,t,n={}){var r;let i=o4(e,t,n.custom),{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);let a=i?()=>o6(e,i,n):()=>Promise.resolve(),s=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?(r=0)=>{let{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,i=1,o){let a=[],s=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(o8).forEach((e,r)=>{a.push(o5(e,t,{...o,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([a(),s(n.delay)]);{let[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then(t)}}function o6(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t),u=e.getValue("willChange");r&&(a=r);let c=[],d=i&&(null===(o=e.animationState)||void 0===o?void 0:o.getState()[i]);for(let t in l){let r=e.getValue(t),i=l[t];if(!r||void 0===i||d&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(d,t))continue;let o={delay:n,...a};e.shouldReduceMotion&&nY.has(t)&&(o={...o,type:!1,delay:0});let s=oH(t,r,i,o);o3(u)&&(u.add(t),s=s.then(()=>u.remove(t))),c.push(s)}return Promise.all(c).then(()=>{s&&function(e,t){let n=o4(e,t),{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};for(let t in o={...o,...r}){let n=rP(o[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,oX(n))}}(e,s)})}function o8(e,t){return e.sortNodePosition(t)}let o7=[ky.Animate,ky.InView,ky.Focus,ky.Hover,ky.Tap,ky.Drag,ky.Exit],o9=[...o7].reverse(),ae=o7.length;function at(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let an={animation:io(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){let i=t.map(t=>o5(e,t,n));r=Promise.all(i)}else if("string"==typeof t)r=o5(e,t,n);else{let i="function"==typeof t?o4(e,t,n.custom):t;r=o6(e,i,n)}return r.then(()=>e.notify("AnimationComplete",t))})(e,t,n))),n={[ky.Animate]:at(!0),[ky.InView]:at(),[ky.Hover]:at(),[ky.Tap]:at(),[ky.Drag]:at(),[ky.Focus]:at(),[ky.Exit]:at()},r=!0,i=(t,n)=>{let r=o4(e,n);if(r){let{transition:e,transitionEnd:n,...i}=r;t={...t,...i,...n}}return t};function o(o,a){var s,l;let u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set,h={},p=1/0;for(let t=0;tp&&y,k=Array.isArray(g)?g:[g],E=k.reduce(i,{});!1===x&&(E={});let{prevResolvedValues:S={}}=v,_={...S,...E},C=e=>{j=!0,f.delete(e),v.needsAnimating[e]=!0};for(let e in _){let t=E[e],n=S[e];h.hasOwnProperty(e)||(t!==n?rT(t)&&rT(n)?!il(t,n)||w?C(e):v.protectedKeys[e]=!0:void 0!==t?C(e):f.add(e):void 0!==t&&f.has(e)?C(e):v.protectedKeys[e]=!0)}v.prevProp=g,v.prevResolvedValues=E,v.isActive&&(h={...h,...E}),r&&e.blockInitialAnimation&&(j=!1),j&&!b&&d.push(...k.map(e=>({animation:e,options:{type:m,...o}})))}if(f.size){let t={};f.forEach(n=>{let r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)}),d.push({animation:t})}let m=!!d.length;return r&&!1===u.initial&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(d):Promise.resolve()}return{animateChanges:o,setActive:function(t,r,i){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;let s=o(i,t);for(let e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}(e)),nN(t)&&(0,x.useEffect)(()=>t.subscribe(e),[t])}),exit:io(e=>{let{custom:t,visualElement:n}=e,[r,i]=is(),o=(0,x.useContext)(nv);(0,x.useEffect)(()=>{n.isPresent=r;let e=n.animationState&&n.animationState.setActive(ky.Exit,!r,{custom:o&&o.custom||t});e&&!r&&e.then(i)},[r])})},ar=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),ai=e=>ar(e)&&e.hasOwnProperty("z"),ao=(e,t)=>Math.abs(e-t);function aa(e,t){if(iU(e)&&iU(t))return ao(e,t);if(ar(e)&&ar(t)){let n=ao(e.x,t.x),r=ao(e.y,t.y),i=ai(e)&&ai(t)?ao(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}class as{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=ac(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=aa(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=nf();this.history.push({...r,timestamp:i});let{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{if(this.lastMoveEvent=e,this.lastMoveEventInfo=al(t,this.transformPagePoint),rV(e)&&0===e.buttons){this.handlePointerUp(e,t);return}na.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r}=this.handlers,i=ac(al(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},rZ(e)&&e.touches.length>1)return;this.handlers=t,this.transformPagePoint=n;let r=rB(e),i=al(r,this.transformPagePoint),{point:o}=i,{timestamp:a}=nf();this.history=[{...o,timestamp:a}];let{onSessionStart:s}=t;s&&s(e,ac(i,this.history)),this.removeListeners=r6(rG(window,"pointermove",this.handlePointerMove),rG(window,"pointerup",this.handlePointerUp),rG(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ns.update(this.updatePoint)}}function al(e,t){return t?{point:t(e.point)}:e}function au(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ac({point:e},t){return{point:e,delta:au(e,ad(t)),offset:au(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=ad(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>op(.1)));)n--;if(!r)return{x:0,y:0};let o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};let a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function ad(e){return e[e.length-1]}function af(e){return e.max-e.min}function ah(e,t=0,n=.01){return aa(e,t)({translate:0,scale:1,origin:0,originPoint:0}),aE=()=>({x:ak(),y:ak()}),aS=()=>({min:0,max:0}),a_=()=>({x:aS(),y:aS()});function aC(e){return[e("x"),e("y")]}function aO({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function aM(e){return void 0===e||1===e}function aT({scale:e,scaleX:t,scaleY:n}){return!aM(e)||!aM(t)||!aM(n)}function aA(e){return aT(e)||aP(e)||e.z||e.rotate||e.rotateX||e.rotateY}function aP(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function aN(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function aR(e,t=0,n=1,r,i){e.min=aN(e.min,t,n,r,i),e.max=aN(e.max,t,n,r,i)}function aD(e,{x:t,y:n}){aR(e.x,t.translate,t.scale,t.originPoint),aR(e.y,n.translate,n.scale,n.originPoint)}function aL(e,t){e.min=e.min+t,e.max=e.max+t}function aF(e,t,[n,r,i]){let o=void 0!==t[i]?t[i]:.5,a=iw(e.min,e.max,o);aR(e,t[n],t[r],a,t.scale)}let az=["x","scaleX","originX"],aV=["y","scaleY","originY"];function aZ(e,t){aF(e.x,t,az),aF(e.y,t,aV)}function aI(e,t){return aO(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}let aB=new WeakMap;class aH{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=a_(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){!1!==this.visualElement.isPresent&&(this.panSession=new as(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(rB(e,"page").point)},onStart:(e,t)=>{var n;let{drag:r,dragPropagation:i,onDragStart:o}=this.getProps();(!r||i||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=r1(r),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),aC(e=>{var t,n;let r=this.getAxisMotionValue(e).get()||0;if(re.test(r)){let i=null===(n=null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===n?void 0:n.actual[e];if(i){let e=af(i);r=e*(parseFloat(r)/100)}}this.originPoint[e]=r}),null==o||o(e,t),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(ky.Drag,!0))},onMove:(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&(null==i||i(this.currentDirection));return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),null==o||o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()}))}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();null==i||i(e,t)}cancel(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(ky.Drag,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!aU(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&en&&(e=r?iw(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&nA(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:ax(e.x,n,i),y:ax(e.y,t,r)}}(n.actual,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:aw(e,"left","right"),y:aw(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&aC(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.actual[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!nA(t))return!1;let r=t.current;id(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,n){let r=aI(e,n),{scroll:i}=t;return i&&(aL(r.x,i.x),aL(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a={x:ab((e=i.layout.actual).x,o.x),y:ab(e.y,o.y)};if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=aO(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=aC(a=>{var l;if(!aU(a,t,this.currentDirection))return;let u=null!==(l=null==s?void 0:s[a])&&void 0!==l?l:{};o&&(u={min:0,max:0});let c={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...u};return this.startAxisValueAnimation(a,c)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return oH(e,n,0,t)}stopAnimation(){aC(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){var t,n;let r="_drag"+e.toUpperCase(),i=this.visualElement.getProps()[r];return i||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)}snapToCursor(e){aC(t=>{let{drag:n}=this.getProps();if(!aU(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.actual[t];i.set(e[t]-iw(n,o,.5))}})}scalePositionWithinConstraints(){var e;if(!this.visualElement.current)return;let{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!nA(n)||!r||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};aC(e=>{let t=this.getAxisMotionValue(e);if(t){let n=t.get();i[e]=function(e,t){let n=.5,r=af(e),i=af(t);return i>r?n=ib(t.min,t.max-r,e.min):r>i&&(n=ib(e.min,e.max-i,t.min)),ih(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",null===(e=r.root)||void 0===e||e.updateScroll(),r.updateLayout(),this.resolveConstraints(),aC(e=>{if(!aU(e,t,null))return;let n=this.getAxisMotionValue(e),{min:r,max:o}=this.constraints[e];n.set(iw(r,o,i[e]))})}addListeners(){var e;if(!this.visualElement.current)return;aB.set(this.visualElement,this);let t=this.visualElement.current,n=rG(t,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),r=()=>{let{dragConstraints:e}=this.getProps();nA(e)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),r();let a=rF(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(aC(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),null==s||s()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function aU(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let aW={pan:io(function({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:i}){let o=e||t||n||r,a=(0,x.useRef)(null),{transformPagePoint:s}=(0,x.useContext)(nO),l={onSessionStart:r,onStart:t,onMove:e,onEnd:(e,t)=>{a.current=null,n&&n(e,t)}};(0,x.useEffect)(()=>{null!==a.current&&a.current.updateHandlers(l)}),rX(i,"pointerdown",o&&function(e){a.current=new as(e,l,{transformPagePoint:s})}),nk(()=>a.current&&a.current.end())}),drag:io(function(e){let{dragControls:t,visualElement:n}=e,r=ng(()=>new aH(n));(0,x.useEffect)(()=>t&&t.subscribe(r),[r,t]),(0,x.useEffect)(()=>r.addListeners(),[r])})};function aq(e){return"string"==typeof e&&e.startsWith("var(--")}let a$=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function aK(e,t,n=1){id(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,i]=function(e){let t=a$.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]}(e);if(!r)return;let o=window.getComputedStyle(t).getPropertyValue(r);return o?o.trim():aq(i)?aK(i,t,n+1):i}let aY=new Set(["width","height","top","left","right","bottom","x","y"]),aG=e=>aY.has(e),aX=e=>Object.keys(e).some(aG),aJ=(e,t)=>{e.set(t,!1),e.set(t)},aQ=e=>e===ro||e===rt;(kp=kx||(kx={})).width="width",kp.height="height",kp.left="left",kp.right="right",kp.top="top",kp.bottom="bottom";let a0=(e,t)=>parseFloat(e.split(", ")[t]),a1=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/);if(i)return a0(i[1],t);{let t=r.match(/^matrix\((.+)\)$/);return t?a0(t[1],e):0}},a2=new Set(["x","y","z"]),a4=nK.filter(e=>!a2.has(e)),a3={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:a1(4,13),y:a1(5,14)},a5=(e,t,n)=>{let r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{s[e]=a3[e](r,o)}),t.render();let l=t.measureViewportBox();return n.forEach(n=>{let r=t.getValue(n);aJ(r,s[n]),e[n]=a3[n](l,o)}),e},a6=(e,t,n={},r={})=>{t={...t},r={...r};let i=Object.keys(t).filter(aG),o=[],a=!1,s=[];if(i.forEach(i=>{let l;let u=e.getValue(i);if(!e.hasValue(i))return;let c=n[i],d=o0(c),f=t[i];if(rT(f)){let e=f.length,t=null===f[0]?1:0;d=o0(c=f[t]);for(let n=t;n{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),a=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:t[i],aJ(u,f))}}),!s.length)return{target:t,transitionEnd:r};{let n=s.indexOf("height")>=0?window.pageYOffset:null,i=a5(t,e,s);return o.length&&o.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),nh&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}},a8=(e,t,n,r)=>{var i,o;let a=function(e,{...t},n){let r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};for(let i in n&&(n={...n}),e.values.forEach(e=>{let t=e.get();if(!aq(t))return;let n=aK(t,r);n&&e.set(n)}),t){let e=t[i];if(!aq(e))continue;let o=aK(e,r);o&&(t[i]=o,n&&void 0===n[i]&&(n[i]=e))}return{target:t,transitionEnd:n}}(e,t,r);return t=a.target,r=a.transitionEnd,i=t,o=r,aX(i)?a6(e,i,n,o):{target:i,transitionEnd:o}},a7={current:null},a9={current:!1},se=Object.keys(nV),st=se.length,sn=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class sr{constructor({parent:e,props:t,reducedMotionConfig:n,visualState:r},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>na.render(this.render,!1,!0);let{latestValues:o,renderState:a}=r;this.latestValues=o,this.baseTarget={...o},this.initialValues=t.initial?{...o}:{},this.renderState=a,this.parent=e,this.props=t,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=i,this.isControllingVariants=nD(t),this.isVariantNode=nL(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:s,...l}=this.scrapeMotionValuesFromProps(t);for(let e in l){let t=l[e];void 0!==o[e]&&nX(t)&&(t.set(o[e],!1),o3(s)&&s.add(e))}if(t.values)for(let e in t.values){let n=t.values[e];void 0!==o[e]&&nX(n)&&n.set(o[e])}}scrapeMotionValuesFromProps(e){return{}}mount(e){var t;this.current=e,this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===(t=this.parent)||void 0===t?void 0:t.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),a9.current||function(){if(a9.current=!0,nh){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>a7.current=e.matches;e.addListener(t),t()}else a7.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||a7.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var e,t,n;for(let r in null===(e=this.projection)||void 0===e||e.unmount(),ns.update(this.notifyUpdate),ns.render(this.render),this.valueSubscriptions.forEach(e=>e()),null===(t=this.removeFromVariantTree)||void 0===t||t.call(this),null===(n=this.parent)||void 0===n||n.children.delete(this),this.events)this.events[r].clear();this.current=null}bindToMotionValue(e,t){let n=t.onChange(t=>{this.latestValues[e]=t,this.props.onUpdate&&na.update(this.notifyUpdate,!1,!0)}),r=t.onRenderRequest(this.scheduleRender);this.valueSubscriptions.set(e,()=>{n(),r()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures(e,t,n,r,i,o){let a=[];"production"!==t6&&n&&t&&id(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let t=0;tthis.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:l})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):a_()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}setProps(e){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=e;for(let t=0;tn.variantChildren.delete(e)}addValue(e,t){this.hasValue(e)&&this.removeValue(e),this.values.set(e,t),this.latestValues[e]=t.get(),this.bindToMotionValue(e,t)}removeValue(e){var t;this.values.delete(e),null===(t=this.valueSubscriptions.get(e))||void 0===t||t(),this.valueSubscriptions.delete(e),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=oX(t),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=rM(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||nX(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new oK),this.events[e].add(t)}notify(e,...t){var n;null===(n=this.events[e])||void 0===n||n.notify(...t)}}let si=["initial",...o7],so=si.length;class sa extends sr{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},i){let o=function(e,t,n){var r;let i={};for(let o in e){let e=function(e,t){if(!t)return;let n=t[e]||t.default||t;return n.from}(o,t);i[o]=void 0!==e?e:null===(r=n.getValue(o))||void 0===r?void 0:r.get()}return i}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),o&&(o=r(o))),i){!function(e,t,n){var r,i;let o=Object.keys(t).filter(t=>!e.hasValue(t)),a=o.length;if(a)for(let s=0;snq(e)?new sl(t,{enableHardwareAcceleration:!1}):new ss(t,{enableHardwareAcceleration:!0});function sc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let sd={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!rt.test(e))return e;e=parseFloat(e)}let n=sc(e,t.target.x),r=sc(e,t.target.y);return`${n}% ${r}%`}},sf="_$css",sh={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=e.includes("var("),o=[];i&&(e=e.replace(a$,e=>(o.push(e),sf)));let a=iH.parse(e);if(a.length>5)return r;let s=iH.createTransformer(e),l="number"!=typeof a[0]?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;a[0+l]/=u,a[1+l]/=c;let d=iw(u,c,.5);"number"==typeof a[2+l]&&(a[2+l]/=d),"number"==typeof a[3+l]&&(a[3+l]/=d);let f=s(a);if(i){let e=0;f=f.replace(sf,()=>{let t=o[e];return e++,t})}return f}};class sp extends x.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;Object.assign(n$,sm),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),nZ.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,r||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent===i||(i?o.promote():o.relegate()||na.postRender(()=>{var e;(null===(e=o.getStack())||void 0===e?void 0:e.members.length)||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),(null==t?void 0:t.group)&&t.group.remove(r),(null==n?void 0:n.deregister)&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;null==e||e()}render(){return null}}let sm={borderRadius:{...sd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sd,borderTopRightRadius:sd,borderBottomLeftRadius:sd,borderBottomRightRadius:sd,boxShadow:sh},sv=["TopLeft","TopRight","BottomLeft","BottomRight"],sg=sv.length,sy=e=>"string"==typeof e?parseFloat(e):e,sx=e=>"number"==typeof e||rt.test(e);function sb(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}let sw=sk(0,.5,i7),sj=sk(.5,.95,i4);function sk(e,t,n){return r=>rt?1:n(ib(e,t,r))}function sE(e,t){e.min=t.min,e.max=t.max}function sS(e,t){sE(e.x,t.x),sE(e.y,t.y)}function s_(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function sC(e,t,[n,r,i],o,a){!function(e,t=0,n=1,r=.5,i,o=e,a=e){if(re.test(t)){t=parseFloat(t);let e=iw(a.min,a.max,t/100);t=e-a.min}if("number"!=typeof t)return;let s=iw(o.min,o.max,r);e===o&&(s-=t),e.min=s_(e.min,t,n,s,i),e.max=s_(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,o,a)}let sO=["x","scaleX","originX"],sM=["y","scaleY","originY"];function sT(e,t,n,r){sC(e.x,t,sO,null==n?void 0:n.x,null==r?void 0:r.x),sC(e.y,t,sM,null==n?void 0:n.y,null==r?void 0:r.y)}function sA(e){return 0===e.translate&&1===e.scale}function sP(e){return sA(e.x)&&sA(e.y)}function sN(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function sR(e){return af(e.x)/af(e.y)}class sD{constructor(){this.members=[]}add(e){oq(this.members,e),e.scheduleRender()}remove(e){if(o$(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){var n;let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0);let{crossfade:i}=e.options;!1===i&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{var t,n,r,i,o;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(o=null===(r=e.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===o||o.call(i)})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function sL(e,t,n){let r=e.x.translate/t.x,i=e.y.translate/t.y,o=`translate3d(${r}px, ${i}px, 0) `;if(o+=`scale(${1/t.x}, ${1/t.y}) `,n){let{rotate:e,rotateX:t,rotateY:r}=n;e&&(o+=`rotate(${e}deg) `),t&&(o+=`rotateX(${t}deg) `),r&&(o+=`rotateY(${r}deg) `)}let a=e.x.scale*t.x,s=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"==(o+=`scale(${a}, ${s})`)?"none":o}let sF=(e,t)=>e.depth-t.depth;class sz{constructor(){this.children=[],this.isDirty=!1}add(e){oq(this.children,e),this.isDirty=!0}remove(e){o$(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(sF),this.isDirty=!1,this.children.forEach(e)}}let sV=["","X","Y","Z"];function sZ({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e,n={},r=null==t?void 0:t()){this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(s$),this.nodes.forEach(sK)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=n,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(let e=0;ethis.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=oz(r,250),nZ.hasAnimatedSinceResize&&(nZ.hasAnimatedSinceResize=!1,this.nodes.forEach(sq))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&a&&(i||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{var i,o,s,l,u;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let c=null!==(o=null!==(i=this.options.transition)&&void 0!==i?i:a.getDefaultTransition())&&void 0!==o?o:s0,{onLayoutAnimationStart:d,onLayoutAnimationComplete:f}=a.getProps(),h=!this.targetLayout||!sN(this.targetLayout,r)||n,p=!t&&n;if((null===(s=this.resumeFrom)||void 0===s?void 0:s.instance)||p||t&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,p);let t={...oB(c,"layout"),onPlay:d,onComplete:f};a.shouldReduceMotion&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||sq(this),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=r})}unmount(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,ns.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1}startUpdate(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(sY))}willUpdate(e=!0){var t,n,r;if(this.root.isUpdateBlocked()){null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;let e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));s4(t),this.snapshot={measured:e,layout:t,latestValues:{}}}updateLayout(){var e;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0),c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(sQ));this.animationProgress=0,this.mixTargetDelta=t=>{var n,r,d;let f=t/1e3;sX(a.x,e.x,f),sX(a.y,e.y,f),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(ay(s,this.layout.actual,this.relativeParent.layout.actual),r=this.relativeTarget,d=this.relativeTargetOrigin,sJ(r.x,d.x,s.x,f),sJ(r.y,d.y,s.y,f)),l&&(this.animationValues=o,function(e,t,n,r,i,o){var a,s,l,u;i?(e.opacity=iw(0,null!==(a=n.opacity)&&void 0!==a?a:1,sw(r)),e.opacityExit=iw(null!==(s=t.opacity)&&void 0!==s?s:1,0,sj(r))):o&&(e.opacity=iw(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(let i=0;i{nZ.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n={}){let r=nX(e)?e:oX(e);return oH("",r,1e3,n),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}(0,0,{...e,onUpdate:t=>{var n;this.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:()=>{var t;null===(t=e.onComplete)||void 0===t||t.call(e),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&s3(this.options.animationType,this.layout.actual,r.actual)){n=this.target||a_();let t=af(this.layout.actual.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=af(this.layout.actual.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}sS(t,n),aZ(t,i),am(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new sD);let o=this.sharedNodes.get(e);o.add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(i=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(r,t)})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,n={};for(let r=0;r{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(sU),this.root.sharedNodes.clear()}}}function sI(e){e.updateLayout()}function sB(e){var t,n,r;let i=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){let{actual:t,measured:n}=e.layout,{animationType:r}=e.options;"size"===r?aC(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=af(n);n.min=t[e].min,n.max=n.min+r}):s3(r,i.layout,t)&&aC(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=af(t[e]);n.max=n.min+r});let o=aE();am(o,t,i.layout);let a=aE();i.isShared?am(a,e.applyTransform(n,!0),i.measured):am(a,t,i.layout);let s=!sP(o),l=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:e,layout:r}=n;if(e&&r){let n=a_();ay(n,i.layout,e.layout);let o=a_();ay(o,t,r.actual),sN(n,o)||(l=!0)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:s,hasRelativeTargetChanged:l})}else e.isLead()&&(null===(r=(n=e.options).onExitComplete)||void 0===r||r.call(n));e.options.transition=void 0}function sH(e){e.clearSnapshot()}function sU(e){e.clearMeasurements()}function sW(e){let{visualElement:t}=e.options;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sq(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function s$(e){e.resolveTargetDelta()}function sK(e){e.calcProjection()}function sY(e){e.resetRotation()}function sG(e){e.removeLeadSnapshot()}function sX(e,t,n){e.translate=iw(t.translate,0,n),e.scale=iw(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function sJ(e,t,n,r){e.min=iw(t.min,n.min,r),e.max=iw(t.max,n.max,r)}function sQ(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let s0={duration:.45,ease:[.4,0,.1,1]};function s1(e,t){let n=e.root;for(let t=e.path.length-1;t>=0;t--)if(e.path[t].instance){n=e.path[t];break}let r=n&&n!==e.root?n.instance:document,i=r.querySelector(`[data-projection-id="${t}"]`);i&&e.mount(i,!0)}function s2(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function s4(e){s2(e.x),s2(e.y)}function s3(e,t,n){return"position"===e||"preserve-aspect"===e&&!function(e,t,n=.1){return aa(e,t)<=n}(sR(t),sR(n),.2)}let s5=sZ({attachResizeListener:(e,t)=>rF(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),s6={current:void 0},s8=sZ({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!s6.current){let e=new s5(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),s6.current=e}return s6.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),s7={...an,...ia,...aW,measureLayout:function(e){let[t,n]=is(),r=(0,x.useContext)(nj);return x.createElement(sp,{...e,layoutGroup:r,switchLayoutGroup:(0,x.useContext)(nH),isPresent:t,safeToRemove:n})}},s9=function(e){function t(t,n={}){return function({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:r,useVisualState:i,Component:o}){e&&function(e){for(let t in e)"projectionNodeConstructor"===t?nV.projectionNodeConstructor=e[t]:nV[t].Component=e[t]}(e);let a=(0,x.forwardRef)(function(a,s){var l;let u={...(0,x.useContext)(nO),...a,layoutId:function({layoutId:e}){let t=(0,x.useContext)(nj).id;return t&&void 0!==e?t+"-"+e:e}(a)},{isStatic:c}=u,d=null,f=function(e){let{initial:t,animate:n}=function(e,t){if(nD(e)){let{initial:t,animate:n}=e;return{initial:!1===t||nP(t)?t:void 0,animate:nP(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,x.useContext)(nM));return(0,x.useMemo)(()=>({initial:t,animate:n}),[nF(t),nF(n)])}(a),h=c?void 0:ng(()=>{if(nZ.hasEverUpdated)return nI++}),p=i(a,c);if(!c&&nh){f.visualElement=function(e,t,n,r){let i=(0,x.useContext)(nM).visualElement,o=(0,x.useContext)(nT),a=(0,x.useContext)(nv),s=(0,x.useContext)(nO).reducedMotion,l=(0,x.useRef)();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceId:a?a.id:void 0,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));let u=l.current;return np(()=>{u&&u.render()}),(0,x.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),np(()=>()=>u&&u.notify("Unmount"),[]),u}(o,p,u,t);let r=(0,x.useContext)(nT).strict,i=(0,x.useContext)(nH);f.visualElement&&(d=f.visualElement.loadFeatures(u,r,e,h,n||nV.projectionNodeConstructor,i))}return x.createElement(nB,{visualElement:f.visualElement,props:u},d,x.createElement(nM.Provider,{value:f},r(o,a,h,(l=f.visualElement,(0,x.useCallback)(e=>{e&&p.mount&&p.mount(e),l&&(e?l.mount(e):l.unmount()),s&&("function"==typeof s?s(e):nA(s)&&(s.current=e))},[l])),p,c,f.visualElement)))});return a[nU]=o,a}(e(t,n))}if("undefined"==typeof Proxy)return t;let n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},n,r,i){let o=nq(e)?rD:rL;return{...o,preloadedFeatures:n,useRender:function(e=!1){return(t,n,r,i,{latestValues:o},a)=>{let s=nq(t)?rj:rh,l=s(n,o,a),u=function(e,t,n){let r={};for(let i in e)(rv(i)||!0===n&&rm(i)||!t&&!rm(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),c={...u,...l,ref:i};return r&&(c["data-projection-id"]=r),(0,x.createElement)(t,c)}}(t),createVisualElement:r,projectionNodeConstructor:i,Component:e}})(e,t,s7,su,s8));function le(e){let{open:t,onOpenChange:n}=e,[r,i]=(0,x.useState)(!1),o=(0,x.useMemo)(()=>n?t:r,[n,r,t]),a=(0,x.useCallback)(e=>{n?n(e):i(e)},[n]);return{open:o,onOpenChange:a}}let lt={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}};function ln(e){let{children:t,content:n,defaultOpen:r,open:i,onOpenChange:o,delayDuration:a=300,disableHoverableContent:s,...l}=e,{open:u,onOpenChange:c}=le({open:i,onOpenChange:o});return(0,y.jsxs)(tJ,{open:u,delayDuration:a,disableHoverableContent:s,defaultOpen:r,onOpenChange:c,children:[(0,y.jsx)(tB,{asChild:!0,children:t}),(0,y.jsx)(nC,{children:n&&u?(0,y.jsx)(tQ,{forceMount:!0,children:(0,y.jsx)(t$,{forceMount:!0,asChild:!0,side:"top",align:"center",sideOffset:l.sideOffset||5,...l,children:(0,y.jsx)(s9.div,{variants:lt,initial:"init",animate:"show",exit:"exit",className:(0,em.cx)("relative","z-50","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"),children:(0,y.jsx)("div",{className:(0,em.cx)("py-1 px-2","max-w-xs","overflow-hidden",t4()),children:(0,y.jsx)(t2,{size:"12",children:n})})})})}):null})]})}let lr=(0,em.j)(["inline-flex","gap-1","appearance-none","shrink-0","items-center","justify-center","select-none","leading-normal","font-sans","cursor-pointer","overflow-hidden","focus:z-10","disabled:cursor-auto","disabled:pointer-events-none","outline-none","focus:ring ring-blue-500 dark:ring-blue-200","transition-colors duration-75"],{variants:{size:{small:["text-xs","px-2","h-7"],medium:["text-base","px-4","h-10"],large:["text-lg","px-4","h-12"],none:[]},state:{waiting:["pointer-events-none"]},disabled:{true:"cursor-auto pointer-events-none"},rounded:{true:"rounded",false:""},variant:{accent:["border","text-white dark:text-white","enabled:bg-green-700 enabled:dark:bg-green-700","enabled:border-green-800/30 enabled:dark:border-green-600/70","enabled:hover:bg-green-800/90 dark:enabled:hover:bg-green-700/90","enabled:hover:border-green-800/50 enabled:hover:dark:border-green-600","disabled:text-white/50 disabled:dark:text-white/50","disabled:bg-green-700/70 disabled:dark:bg-green-600/70","disabled:border-green-600/50 disabled:dark:border-green-500/30","[&[href]]:bg-green-700 [&[href]]:dark:bg-green-700","[&[href]]:border-green-800/30 [&[href]]:dark:border-green-600/70","[&[href]]:hover:bg-green-800/90 dark:[&[href]]:hover:bg-green-700/90","[&[href]]:hover:border-green-800/50 [href]]:hover:dark:border-green-600"],red:["border","bg-red-700 dark:bg-red-700","border-red-800/30 dark:border-red-600/70","enabled:hover:bg-red-800/90 dark:enabled:hover:bg-red-700/90","enabled:hover:border-red-800/50 enabled:hover:dark:border-red-600","disabled:bg-red-700/70 disabled:dark:bg-red-600/70","disabled:border-red-600/50 disabled:dark:border-red-500/30","text-white dark:text-white","disabled:text-white/50 disabled:dark:text-white/50"],amber:["border","bg-amber-700 dark:bg-amber-700","border-amber-800/30 dark:border-amber-600/70","enabled:hover:bg-amber-800/90 dark:enabled:hover:bg-amber-700/90","enabled:hover:border-amber-800/50 enabled:hover:dark:border-amber-600","disabled:bg-amber-700/70 disabled:dark:bg-amber-600/70","disabled:border-amber-600/50 disabled:dark:border-amber-500/30","text-white dark:text-white","disabled:text-white/50 disabled:dark:text-white/50"],gray:["border","bg-white dark:bg-graydark-200","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100 dark:text-gray-300","disabled:text-gray-600 disabled:dark:text-graydark-700"],active:["border","bg-gray-200 dark:bg-graydark-400","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-500 dark:border-graydark-500","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],inactive:["border","bg-white dark:bg-graydark-200","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-400/70 dark:border-graydark-400/70","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100/30 dark:text-white/30","enabled:hover:text-gray-1100 enabled:hover:dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],ghost:["appearance-none border-none bg-transparent","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],state:["open:text-gray-1100 open:dark:text-white","hover:text-gray-1000 hover:dark:text-graydark-1000","text-gray-700 dark:text-graydark-800"]},icon:{contrast:"",hover:"[&>svg]:opacity-50 hover:[&>svg]:opacity-100 transition-opacity",subtle:"[&>svg]:opacity-50"},color:{verySubtle:"!text-gray-700 dark:!text-graydark-700",subtle:"!text-gray-1000 dark:!text-graydark-1000",contrast:"!text-gray-1100 dark:!text-white",lo:"!text-white dark:!text-graydark-50",accent:"!text-accent-1100 dark:!text-accentdark-1100",red:"!text-red-700 dark:!text-red-400",green:"!text-emerald-700 dark:!text-emerald-500",amber:"!text-amber-600 dark:!text-amber-500",none:""}},defaultVariants:{variant:"gray",size:"small",rounded:!0,icon:"subtle",color:"none"}}),li=x.forwardRef((e,t)=>{let{variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,tip:u,tipAlign:c,tipSide:d,className:f,type:h="button",...p}=e;return u?(0,y.jsx)(ln,{content:u,align:c,side:d,children:(0,y.jsx)("button",{ref:t,type:h,disabled:a,className:lr({variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})}):(0,y.jsx)("button",{ref:t,disabled:a,type:h,className:lr({variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})});var lo=n(88242);let la=x.forwardRef((e,t)=>{let{children:n,...r}=e;return(0,y.jsx)(X,{ref:t,...r,..."single"===r.type?{collapsible:!0}:{},children:n})}),ls=x.forwardRef((e,t)=>{let{children:n,...r}=e;return(0,y.jsx)(ed,{children:(0,y.jsx)(eh,{...r,asChild:!0,ref:t,children:(0,y.jsxs)(li,{variant:"ghost",size:"none",className:"w-full flex gap-2 justify-between",children:[(0,y.jsx)("span",{className:"flex-1 text-left",children:n}),(0,y.jsx)("span",{className:"pr-3",children:(0,y.jsx)(lo.cRw,{})})]})})})}),ll=(0,em.j)([],{variants:{variant:{default:"border-t border-gray-500 dark:border-graydark-500 last-of-type:border-b",ghost:""}},defaultVariants:{variant:"default"}}),lu=x.forwardRef((e,t)=>{let{variant:n,className:r,...i}=e;return(0,y.jsx)(ec,{...i,className:ll({variant:n,className:r}),ref:t})}),lc=ep,ld=(0,em.j)("border border-gray-500 dark:border-graydark-500 bg-gray-100 dark:bg-graydark-100 rounded p-4"),lf=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)("div",{...r,className:ld({className:n}),ref:t})});var lh=n(86029);let lp="Avatar",[lm,lv]=(0,j.b)(lp),[lg,ly]=lm(lp),lx=(0,x.forwardRef)((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,o]=(0,x.useState)("idle");return(0,x.createElement)(lg,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:o},(0,x.createElement)(O.WV.span,(0,w.Z)({},r,{ref:t})))}),lb=(0,x.forwardRef)((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...o}=e,a=ly("AvatarImage",n),s=function(e){let[t,n]=(0,x.useState)("idle");return(0,x.useEffect)(()=>{if(!e){n("error");return}let t=!0,r=new window.Image,i=e=>()=>{t&&n(e)};return n("loading"),r.onload=i("loaded"),r.onerror=i("error"),r.src=e,()=>{t=!1}},[e]),t}(r),l=(0,lh.W)(e=>{i(e),a.onImageLoadingStatusChange(e)});return(0,M.b)(()=>{"idle"!==s&&l(s)},[s,l]),"loaded"===s?(0,x.createElement)(O.WV.img,(0,w.Z)({},o,{ref:t,src:r})):null}),lw=(0,x.forwardRef)((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,o=ly("AvatarFallback",n),[a,s]=(0,x.useState)(void 0===r);return(0,x.useEffect)(()=>{if(void 0!==r){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),a&&"loaded"!==o.imageLoadingStatus?(0,x.createElement)(O.WV.span,(0,w.Z)({},i,{ref:t})):null}),lj=(0,em.j)(["items-center justify-center align-middle flex flex-shrink-0 relative","overflow-hidden select-none outline-none","font-sans font-medium text-sm","border"],{variants:{size:{1:"w-6 h-6",2:"w-12 h-12",3:"w-16 h-16",4:"w-28 h-28"},variant:{filter:"bg-transparent",hiContrast:["bg-gray-900 dark:bg-white text-white dark:text-gray-1100","border-gray-900 dark:border-white text-white dark:text-gray-1100"],gray:["bg-gray-500 dark:bg-gray-800 text-gray-1100 dark:text-white","border-gray-500 dark:border-gray-800 text-gray-1100 dark:text-white"]},shape:{square:"rounded",circle:"rounded-full"},inactive:{true:"opacity-30"},interactive:{true:"cursor-pointer"}},defaultVariants:{size:"2",variant:"gray",shape:"circle"}}),lk=(0,em.j)("uppercase",{variants:{size:{1:"text-sm",2:"text-base",3:"text-lg",4:"text-lg"}},defaultVariants:{size:"2"}}),lE=x.forwardRef((e,t)=>{let{alt:n,src:r,fallback:i,size:o,variant:a,shape:s,interactive:l,inactive:u,className:c,...d}=e;return(0,y.jsx)("div",{className:(0,em.cx)("relative h-fit w-fit",c),children:(0,y.jsxs)(lx,{...d,ref:t,className:lj({className:c,size:o,variant:a,interactive:l,inactive:u,shape:s}),children:["filter"===a&&(0,y.jsx)("div",{className:"absolute w-full h-full z-10",style:{backgroundColor:"rgba(30, 169, 76, 0.3)"}}),(0,y.jsx)(lb,{alt:n,src:r,className:"flex object-cover h-full align-middle w-full"}),(0,y.jsx)(lw,{className:lk({size:o}),children:i})]})})}),lS=(0,em.j)(["items-center appearance-none inline-flex flex-shrink-0 whitespace-nowrap","font-sans font-regular text-sm","justify-center align-middle outline-none p-0 decoration-none select-none","disabled:pointer-events-none","py-0.5 px-2"],{variants:{variant:{active:["border","bg-gray-800 text-gray-900 border-gray-900","dark:bg-transparent dark:text-white dark:border-white/10"],simple:"bg-gray-300 dark:bg-graydark-800 text-gray-900 dark:text-white",green:["border","[&>svg]:opacity-50","bg-green-700 dark:bg-green-700","border-green-800/30 dark:border-green-600/70","hover:bg-green-800/90 dark:hover:bg-green-700/90","hover:border-green-800/50 hover:dark:border-green-600","text-white dark:text-white"],accent:["border","[&>svg]:opacity-50","bg-green-700 dark:bg-green-700","border-green-800/30 dark:border-green-600/70","hover:bg-green-800/90 dark:hover:bg-green-700/90","hover:border-green-800/50 hover:dark:border-green-600","text-white dark:text-white"],red:["border","[&>svg]:opacity-50","bg-red-700 dark:bg-red-700","border-red-800/30 dark:border-red-600/70","hover:bg-red-800/90 dark:hover:bg-red-700/90","hover:border-red-800/50 hover:dark:border-red-600","text-white dark:text-white"],amber:["border","[&>svg]:opacity-50","bg-amber-700 dark:bg-amber-700","border-amber-800/30 dark:border-amber-600/70","hover:bg-amber-800/90 dark:hover:bg-amber-700/90","hover:border-amber-800/50 hover:dark:border-amber-600","text-white dark:text-white"],gray:["border","[&>svg]:opacity-50","bg-white dark:bg-graydark-200","border-gray-400 dark:border-graydark-400","hover:bg-gray-50 dark:hover:bg-graydark-300","hover:border-gray-500 hover:dark:border-graydark-500","text-gray-1100 dark:text-white"],inactive:["border","[&>svg]:opacity-50","bg-white dark:bg-transparent","border-gray-400 dark:border-graydark-400","hover:border-gray-500 hover:dark:border-graydark-500","text-gray-1100/30 dark:text-white/30","hover:text-gray-1100/50 hover:dark:text-white/50"]},interactive:{true:"cursor-pointer"},rounded:{true:"rounded",false:""}},defaultVariants:{variant:"gray",rounded:!0}}),l_=x.forwardRef((e,t)=>{let{variant:n,interactive:r,rounded:i,className:o,...a}=e;return(0,y.jsx)("div",{...a,className:lS({variant:n,interactive:r,rounded:i,className:o}),ref:t})}),lC=x.forwardRef((e,t)=>{let{className:n,size:r,color:i,...o}=e;return(0,y.jsx)("pre",{children:(0,y.jsx)("code",{className:(0,em.cx)(t0({font:"mono",size:r,color:i}),"block","w-full","overflow-auto","p-3","bg-white dark:bg-graydark-200","border border-gray-400 dark:border-graydark-400","rounded",n),...o,ref:t})})}),lO=(0,em.j)(["font-mono","whitespace-nowrap","rounded"],{variants:{color:{gray:["bg-gray-200 dark:bg-graydark-200","text-gray-1100 dark:text-graydark-1100"],accent:["bg-accent-200 dark:bg-accentdark-200","text-accent-1100 dark:text-accentdark-1100"]}},defaultVariants:{color:"accent"}}),lM=x.forwardRef((e,t)=>{let{color:n,className:r,...i}=e;return(0,y.jsx)("code",{...i,className:lO({color:n,className:r}),ref:t})}),lT=(0,em.j)(["flex","relative","[&>*]:rounded-none [&>*:last-child]:rounded-r [&>*:first-child]:rounded-l","[&>*]:border-r-0 [&>*]:border-l [&>*:first-child]:border-l [&>*:last-child]:border-r"]),lA=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)("div",{ref:t,className:lT({className:n}),...r})});(0,em.j)(["select-none appearance-none outline-none overflow-hidden","inline-flex items-center justify-center","focus:ring ring-blue-500 dark:ring-blue-200","border","bg-gray-300 dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","disabled:cursor-default","enabled:data-[state=checked]:bg-green-600 dark:enabled:data-[state=checked]:bg-green-500","disabled:data-[state=checked]:bg-green-600/50 dark:disabled:data-[state=checked]:bg-green-500/50"],{variants:{size:{small:"w-4 h-4 rounded",medium:"w-6 h-6 rounded"}},defaultVariants:{size:"small"}});let lP=(0,em.j)(["flex-shrink-0 w-full mx-auto"],{variants:{pad:{true:"px-5 md:px-10",false:""},size:{1:"max-w-screen-sm",2:"max-w-screen-md",3:"max-w-[1145px]",4:"max-w-screen-2xl",full:"max-w-none"}},defaultVariants:{pad:!0,size:"3"}}),lN=x.forwardRef((e,t)=>{let{className:n,pad:r,size:i,...o}=e;return(0,y.jsx)("div",{ref:t,...o,className:lP({size:i,pad:r,className:n})})});var lR=n(72331);let lD=(0,x.createContext)(void 0);function lL(e){let t=(0,x.useContext)(lD);return e||t||"ltr"}let lF="ScrollArea",[lz,lV]=(0,j.b)(lF),[lZ,lI]=lz(lF),lB=(0,x.forwardRef)((e,t)=>{let{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:o=600,...a}=e,[s,l]=(0,x.useState)(null),[u,c]=(0,x.useState)(null),[d,f]=(0,x.useState)(null),[h,p]=(0,x.useState)(null),[m,v]=(0,x.useState)(null),[g,y]=(0,x.useState)(0),[b,j]=(0,x.useState)(0),[E,S]=(0,x.useState)(!1),[_,C]=(0,x.useState)(!1),M=(0,k.e)(t,e=>l(e)),T=lL(i);return(0,x.createElement)(lZ,{scope:n,type:r,dir:T,scrollHideDelay:o,scrollArea:s,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:h,onScrollbarXChange:p,scrollbarXEnabled:E,onScrollbarXEnabledChange:S,scrollbarY:m,onScrollbarYChange:v,scrollbarYEnabled:_,onScrollbarYEnabledChange:C,onCornerWidthChange:y,onCornerHeightChange:j},(0,x.createElement)(O.WV.div,(0,w.Z)({dir:T},a,{ref:M,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":b+"px",...e.style}})))}),lH=(0,x.forwardRef)((e,t)=>{let{__scopeScrollArea:n,children:r,...i}=e,o=lI("ScrollAreaViewport",n),a=(0,x.useRef)(null),s=(0,k.e)(t,a,o.onViewportChange);return(0,x.createElement)(x.Fragment,null,(0,x.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),(0,x.createElement)(O.WV.div,(0,w.Z)({"data-radix-scroll-area-viewport":""},i,{ref:s,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style}}),(0,x.createElement)("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"}},r)))}),lU="ScrollAreaScrollbar",lW=(0,x.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=lI(lU,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:a}=i,s="horizontal"===e.orientation;return(0,x.useEffect)(()=>(s?o(!0):a(!0),()=>{s?o(!1):a(!1)}),[s,o,a]),"hover"===i.type?(0,x.createElement)(lq,(0,w.Z)({},r,{ref:t,forceMount:n})):"scroll"===i.type?(0,x.createElement)(l$,(0,w.Z)({},r,{ref:t,forceMount:n})):"auto"===i.type?(0,x.createElement)(lK,(0,w.Z)({},r,{ref:t,forceMount:n})):"always"===i.type?(0,x.createElement)(lY,(0,w.Z)({},r,{ref:t})):null}),lq=(0,x.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=lI(lU,e.__scopeScrollArea),[o,a]=(0,x.useState)(!1);return(0,x.useEffect)(()=>{let e=i.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),a(!0)},r=()=>{t=window.setTimeout(()=>a(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[i.scrollArea,i.scrollHideDelay]),(0,x.createElement)(T.z,{present:n||o},(0,x.createElement)(lK,(0,w.Z)({"data-state":o?"visible":"hidden"},r,{ref:t})))}),l$=(0,x.forwardRef)((e,t)=>{var n;let{forceMount:r,...i}=e,o=lI(lU,e.__scopeScrollArea),a="horizontal"===e.orientation,s=ur(()=>u("SCROLL_END"),100),[l,u]=(n={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},(0,x.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},"hidden"));return(0,x.useEffect)(()=>{if("idle"===l){let e=window.setTimeout(()=>u("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(e)}},[l,o.scrollHideDelay,u]),(0,x.useEffect)(()=>{let e=o.viewport,t=a?"scrollLeft":"scrollTop";if(e){let n=e[t],r=()=>{let r=e[t],i=n!==r;i&&(u("SCROLL"),s()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[o.viewport,a,u,s]),(0,x.createElement)(T.z,{present:r||"hidden"!==l},(0,x.createElement)(lY,(0,w.Z)({"data-state":"hidden"===l?"hidden":"visible"},i,{ref:t,onPointerEnter:(0,_.M)(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:(0,_.M)(e.onPointerLeave,()=>u("POINTER_LEAVE"))})))}),lK=(0,x.forwardRef)((e,t)=>{let n=lI(lU,e.__scopeScrollArea),{forceMount:r,...i}=e,[o,a]=(0,x.useState)(!1),s="horizontal"===e.orientation,l=ur(()=>{if(n.viewport){let e=n.viewport.offsetWidth{let{orientation:n="vertical",...r}=e,i=lI(lU,e.__scopeScrollArea),o=(0,x.useRef)(null),a=(0,x.useRef)(0),[s,l]=(0,x.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=l7(s.viewport,s.content),c={...r,sizes:s,onSizesChange:l,hasThumb:!!(u>0&&u<1),onThumbChange:e=>o.current=e,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:e=>a.current=e};function d(e,t){return function(e,t,n,r="ltr"){let i=l9(n),o=t||i/2,a=n.scrollbar.paddingStart+o,s=n.scrollbar.size-n.scrollbar.paddingEnd-(i-o),l=n.content-n.viewport,u=ut([a,s],"ltr"===r?[0,l]:[-1*l,0]);return u(e)}(e,a.current,s,t)}return"horizontal"===n?(0,x.createElement)(lG,(0,w.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=i.viewport.scrollLeft,t=ue(e,s,i.dir);o.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,i.dir))}})):"vertical"===n?(0,x.createElement)(lX,(0,w.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=i.viewport.scrollTop,t=ue(e,s);o.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}})):null}),lG=(0,x.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,o=lI(lU,e.__scopeScrollArea),[a,s]=(0,x.useState)(),l=(0,x.useRef)(null),u=(0,k.e)(t,l,o.onScrollbarXChange);return(0,x.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,x.createElement)(l0,(0,w.Z)({"data-orientation":"horizontal"},i,{ref:u,sizes:n,style:{bottom:0,left:"rtl"===o.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===o.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":l9(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),r>0&&r{l.current&&o.viewport&&a&&r({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:l8(a.paddingLeft),paddingEnd:l8(a.paddingRight)}})}}))}),lX=(0,x.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,o=lI(lU,e.__scopeScrollArea),[a,s]=(0,x.useState)(),l=(0,x.useRef)(null),u=(0,k.e)(t,l,o.onScrollbarYChange);return(0,x.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,x.createElement)(l0,(0,w.Z)({"data-orientation":"vertical"},i,{ref:u,sizes:n,style:{top:0,right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":l9(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),r>0&&r{l.current&&o.viewport&&a&&r({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:l8(a.paddingTop),paddingEnd:l8(a.paddingBottom)}})}}))}),[lJ,lQ]=lz(lU),l0=(0,x.forwardRef)((e,t)=>{let{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:o,onThumbPointerUp:a,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,h=lI(lU,n),[p,m]=(0,x.useState)(null),v=(0,k.e)(t,e=>m(e)),g=(0,x.useRef)(null),y=(0,x.useRef)(""),b=h.viewport,j=r.content-r.viewport,E=(0,lh.W)(c),S=(0,lh.W)(l),C=ur(d,10);function M(e){if(g.current){let t=e.clientX-g.current.left,n=e.clientY-g.current.top;u({x:t,y:n})}}return(0,x.useEffect)(()=>{let e=e=>{let t=e.target,n=null==p?void 0:p.contains(t);n&&E(e,j)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[b,p,j,E]),(0,x.useEffect)(S,[r,S]),ui(p,C),ui(h.content,C),(0,x.createElement)(lJ,{scope:n,scrollbar:p,hasThumb:i,onThumbChange:(0,lh.W)(o),onThumbPointerUp:(0,lh.W)(a),onThumbPositionChange:S,onThumbPointerDown:(0,lh.W)(s)},(0,x.createElement)(O.WV.div,(0,w.Z)({},f,{ref:v,style:{position:"absolute",...f.style},onPointerDown:(0,_.M)(e.onPointerDown,e=>{if(0===e.button){let t=e.target;t.setPointerCapture(e.pointerId),g.current=p.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",M(e)}}),onPointerMove:(0,_.M)(e.onPointerMove,M),onPointerUp:(0,_.M)(e.onPointerUp,e=>{let t=e.target;t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=y.current,g.current=null})})))}),l1="ScrollAreaThumb",l2=(0,x.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=lQ(l1,e.__scopeScrollArea);return(0,x.createElement)(T.z,{present:n||i.hasThumb},(0,x.createElement)(l4,(0,w.Z)({ref:t},r)))}),l4=(0,x.forwardRef)((e,t)=>{let{__scopeScrollArea:n,style:r,...i}=e,o=lI(l1,n),a=lQ(l1,n),{onThumbPositionChange:s}=a,l=(0,k.e)(t,e=>a.onThumbChange(e)),u=(0,x.useRef)(),c=ur(()=>{u.current&&(u.current(),u.current=void 0)},100);return(0,x.useEffect)(()=>{let e=o.viewport;if(e){let t=()=>{if(c(),!u.current){let t=un(e,s);u.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[o.viewport,c,s]),(0,x.createElement)(O.WV.div,(0,w.Z)({"data-state":a.hasThumb?"visible":"hidden"},i,{ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:(0,_.M)(e.onPointerDownCapture,e=>{let t=e.target,n=t.getBoundingClientRect(),r=e.clientX-n.left,i=e.clientY-n.top;a.onThumbPointerDown({x:r,y:i})}),onPointerUp:(0,_.M)(e.onPointerUp,a.onThumbPointerUp)}))}),l3="ScrollAreaCorner",l5=(0,x.forwardRef)((e,t)=>{let n=lI(l3,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY),i="scroll"!==n.type&&r;return i?(0,x.createElement)(l6,(0,w.Z)({},e,{ref:t})):null}),l6=(0,x.forwardRef)((e,t)=>{let{__scopeScrollArea:n,...r}=e,i=lI(l3,n),[o,a]=(0,x.useState)(0),[s,l]=(0,x.useState)(0);return ui(i.scrollbarX,()=>{var e;let t=(null===(e=i.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;i.onCornerHeightChange(t),l(t)}),ui(i.scrollbarY,()=>{var e;let t=(null===(e=i.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;i.onCornerWidthChange(t),a(t)}),o&&s?(0,x.createElement)(O.WV.div,(0,w.Z)({},r,{ref:t,style:{width:o,height:s,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...e.style}})):null});function l8(e){return e?parseInt(e,10):0}function l7(e,t){let n=e/t;return isNaN(n)?0:n}function l9(e){let t=l7(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function ue(e,t,n="ltr"){let r=l9(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,a=t.content-t.viewport,s="ltr"===n?[0,a]:[-1*a,0],l=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,s),u=ut([0,a],[0,o-r]);return u(l)}function ut(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}let un=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return!function i(){let o={left:e.scrollLeft,top:e.scrollTop},a=n.left!==o.left,s=n.top!==o.top;(a||s)&&t(),n=o,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function ur(e,t){let n=(0,lh.W)(e),r=(0,x.useRef)(0);return(0,x.useEffect)(()=>()=>window.clearTimeout(r.current),[]),(0,x.useCallback)(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function ui(e,t){let n=(0,lh.W)(t);(0,M.b)(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}let uo=x.forwardRef((e,t)=>{let{id:n,className:r,style:i,children:o,keyToResetScrollbars:a}=e;return(0,y.jsxs)(lB,{className:(0,em.cx)("w-full h-full overflow-hidden",r),style:i,children:[(0,y.jsx)(lH,{id:n,ref:t,className:"w-full h-full [&>div]:!block [&>div]:!h-full",children:o}),(0,y.jsx)(lW,{orientation:"vertical",className:"z-10 flex select-none touch-none transition-colors hover:bg-black/20 w-1.5 m-px",children:(0,y.jsx)(l2,{className:(0,em.cx)("flex-1 relative bg-gray-300 rounded",'before:content[""] before:absolute before:top-1/2 before:left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full')})},a?"v-".concat(a):void 0),(0,y.jsx)(lW,{orientation:"horizontal",className:"z-10 flex flex-col select-none touch-none transition-colors duration-1000 hover:bg-black/20 h-1 m-px",children:(0,y.jsx)(l2,{className:(0,em.cx)("flex-1 relative bg-gray-300 rounded",'before:content[""] before:absolute before:top-1/2 before:left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full')})},a?"h-".concat(a):void 0),(0,y.jsx)(l5,{className:"bg-black/70"})]})}),ua=(0,em.j)(["z-20","overflow-hidden"],{variants:{variant:{default:"flex items-center justify-center w-full h-full",none:""}},defaultVariants:{variant:"default"}}),us={show:{scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},ul=x.forwardRef((e,t)=>{let{trigger:n,rootProps:r,open:i,onOpenChange:o,onSubmit:a,title:s,description:l,containerVariants:u,contentVariants:c,controls:d,children:f,bodyClassName:h,closeClassName:p,dynamicHeight:m=!0}=e,{open:v,onOpenChange:g}=le({open:i,onOpenChange:o});return(0,y.jsxs)(lR.fC,{open:v,onOpenChange:g,...r,children:[n&&(0,y.jsx)(lR.xz,{asChild:!0,children:n}),(0,y.jsx)(nC,{children:v?(0,y.jsx)(lR.h_,{forceMount:!0,children:(0,y.jsx)(lR.VY,{asChild:!0,forceMount:!0,ref:t,children:(0,y.jsxs)("div",{className:"fixed w-full h-full top-0 left-0 z-20",children:[(0,y.jsx)(lR.aV,{onClick:()=>g(!1),className:"fixed z-10 top-0 right-0 bottom-0 left-0 inset-0 transition-opacity opacity-0 open:opacity-10 dark:open:opacity-20 bg-black"}),(0,y.jsx)(s9.div,{variants:us,initial:"init",animate:"show",exit:"exit",className:ua(u),children:(0,y.jsx)(ud,{title:s,description:l,contentVariants:c,onSubmit:a,controls:d,bodyClassName:h,closeClassName:p,dynamicHeight:m,children:f})})]})})}):null})]})});function uu(e){let{className:t}=e;return(0,y.jsx)(lR.x8,{asChild:!0,type:"button",children:(0,y.jsx)("div",{className:(0,em.cx)("appearance-none",t),children:(0,y.jsx)(li,{size:"small",variant:"ghost",type:"button",children:(0,y.jsx)(lo.QN4,{})})})})}let uc=(0,em.j)(["relative","z-40","overflow-hidden"],{variants:{variant:{default:[t4()],none:""}},defaultVariants:{variant:"default"}}),ud=x.forwardRef((e,t)=>{let{children:n,onSubmit:r,title:i,description:o,controls:a,contentVariants:s,closeClassName:l,bodyClassName:u,dynamicHeight:c=!0}=e,{ref:d,height:f}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t,n]=(0,x.useState)(0),r=(0,x.useRef)(null);return(0,x.useLayoutEffect)(()=>{if(!r.current)return;let e=r.current,t=()=>n(e.clientHeight);t(),r.current.addEventListener("resize",t);let i=new ResizeObserver(t);return i.observe(e),()=>{e.removeEventListener("resize",t),i.unobserve(e)}},e),{ref:r,height:t}}([n,o]),[h,p]=(0,x.useState)(!1);return(0,x.useEffect)(()=>{p(f>.7*window.innerHeight)},[f]),(0,y.jsxs)(r?"form":"div",{onSubmit:r,ref:t,className:uc(s),children:[i&&(0,y.jsx)(lR.Dx,{className:uf({showSeparator:h}),children:i}),(0,y.jsx)(uo,{style:{height:c?"".concat(f,"px"):void 0,maxHeight:c?"70vh":void 0},children:(0,y.jsxs)("div",{ref:d,className:(0,em.cx)("p-4",u),children:[o&&(0,y.jsx)(lR.dk,{className:uh(),children:o}),n]})}),a&&(0,y.jsx)(up,{separator:h,children:a}),(0,y.jsx)(uu,{className:l||"absolute top-3.5 right-2"})]})}),uf=(0,em.j)(["pt-4 pb-2 px-4 w-full",t0({size:"20",weight:"semibold",font:"sans",color:"contrast"})],{variants:{showSeparator:{true:"border-b border-gray-200 dark:border-graydark-200"}}}),uh=(0,em.j)([t0({color:"subtle",size:"14"}),"py-2"]);function up(e){let{children:t,separator:n=!0}=e;return(0,y.jsx)("div",{className:(0,em.cx)("py-2 mx-3",n?"border-t border-gray-200 dark:border-graydark-200":""),children:t})}var um=n(55070),uv=n(77334);let ug="rovingFocusGroup.onEntryFocus",uy={bubbles:!1,cancelable:!0},ux="RovingFocusGroup",[ub,uw,uj]=S(ux),[uk,uE]=(0,j.b)(ux,[uj]),[uS,u_]=uk(ux),uC=(0,x.forwardRef)((e,t)=>(0,x.createElement)(ub.Provider,{scope:e.__scopeRovingFocusGroup},(0,x.createElement)(ub.Slot,{scope:e.__scopeRovingFocusGroup},(0,x.createElement)(uO,(0,w.Z)({},e,{ref:t}))))),uO=(0,x.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:o,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,...c}=e,d=(0,x.useRef)(null),f=(0,k.e)(t,d),h=lL(o),[p=null,m]=(0,C.T)({prop:a,defaultProp:s,onChange:l}),[v,g]=(0,x.useState)(!1),y=(0,lh.W)(u),b=uw(n),j=(0,x.useRef)(!1);return(0,x.useEffect)(()=>{let e=d.current;if(e)return e.addEventListener(ug,y),()=>e.removeEventListener(ug,y)},[y]),(0,x.createElement)(uS,{scope:n,orientation:r,dir:h,loop:i,currentTabStopId:p,onItemFocus:(0,x.useCallback)(e=>m(e),[m]),onItemShiftTab:(0,x.useCallback)(()=>g(!0),[])},(0,x.createElement)(O.WV.div,(0,w.Z)({tabIndex:v?-1:0,"data-orientation":r},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:(0,_.M)(e.onMouseDown,()=>{j.current=!0}),onFocus:(0,_.M)(e.onFocus,e=>{let t=!j.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(ug,uy);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable),t=e.find(e=>e.active),n=e.find(e=>e.id===p),r=[t,n,...e].filter(Boolean),i=r.map(e=>e.ref.current);uA(i)}}j.current=!1}),onBlur:(0,_.M)(e.onBlur,()=>g(!1))})))}),uM=(0,x.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,...o}=e,a=(0,A.M)(),s=u_("RovingFocusGroupItem",n),l=s.currentTabStopId===a,u=uw(n);return(0,x.createElement)(ub.ItemSlot,{scope:n,id:a,focusable:r,active:i},(0,x.createElement)(O.WV.span,(0,w.Z)({tabIndex:l?0:-1,"data-orientation":s.orientation},o,{ref:t,onMouseDown:(0,_.M)(e.onMouseDown,e=>{r?s.onItemFocus(a):e.preventDefault()}),onFocus:(0,_.M)(e.onFocus,()=>s.onItemFocus(a)),onKeyDown:(0,_.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){s.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let i=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return uT[i]}(e,s.orientation,s.dir);if(void 0!==t){e.preventDefault();let i=u().filter(e=>e.focusable),o=i.map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=s.loop?(n=o,r=i+1,n.map((e,t)=>n[(r+t)%n.length])):o.slice(i+1)}setTimeout(()=>uA(o))}})})))}),uT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function uA(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}var uP=n(49732),uN=n(70506);let uR=["Enter"," "],uD=["ArrowUp","PageDown","End"],uL=["ArrowDown","PageUp","Home",...uD],uF={ltr:[...uR,"ArrowRight"],rtl:[...uR,"ArrowLeft"]},uz={ltr:["ArrowLeft"],rtl:["ArrowRight"]},uV="Menu",[uZ,uI,uB]=S(uV),[uH,uU]=(0,j.b)(uV,[uB,th,uE]),uW=th(),uq=uE(),[u$,uK]=uH(uV),[uY,uG]=uH(uV),uX=(0,x.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e,i=uW(n);return(0,x.createElement)(tv,(0,w.Z)({},i,r,{ref:t}))}),uJ="MenuPortal",[uQ,u0]=uH(uJ,{forceMount:void 0}),u1="MenuContent",[u2,u4]=uH(u1),u3=(0,x.forwardRef)((e,t)=>{let n=u0(u1,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=uK(u1,e.__scopeMenu),a=uG(u1,e.__scopeMenu);return(0,x.createElement)(uZ.Provider,{scope:e.__scopeMenu},(0,x.createElement)(T.z,{present:r||o.open},(0,x.createElement)(uZ.Slot,{scope:e.__scopeMenu},a.modal?(0,x.createElement)(u5,(0,w.Z)({},i,{ref:t})):(0,x.createElement)(u6,(0,w.Z)({},i,{ref:t})))))}),u5=(0,x.forwardRef)((e,t)=>{let n=uK(u1,e.__scopeMenu),r=(0,x.useRef)(null),i=(0,k.e)(t,r);return(0,x.useEffect)(()=>{let e=r.current;if(e)return(0,uP.R)(e)},[]),(0,x.createElement)(u8,(0,w.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,_.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),u6=(0,x.forwardRef)((e,t)=>{let n=uK(u1,e.__scopeMenu);return(0,x.createElement)(u8,(0,w.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),u8=(0,x.forwardRef)((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f,disableOutsideScroll:h,...p}=e,m=uK(u1,n),v=uG(u1,n),g=uW(n),y=uq(n),b=uI(n),[j,S]=(0,x.useState)(null),C=(0,x.useRef)(null),O=(0,k.e)(t,C,m.onContentChange),M=(0,x.useRef)(0),T=(0,x.useRef)(""),A=(0,x.useRef)(0),P=(0,x.useRef)(null),N=(0,x.useRef)("right"),R=(0,x.useRef)(0),D=h?uN.Z:x.Fragment,L=h?{as:E.g7,allowPinchZoom:!0}:void 0,F=e=>{var t,n;let r=T.current+e,i=b().filter(e=>!e.disabled),o=document.activeElement,a=null===(t=i.find(e=>e.ref.current===o))||void 0===t?void 0:t.textValue,s=i.map(e=>e.textValue),l=function(e,t,n){var r;let i=t.length>1&&Array.from(t).every(e=>e===t[0]),o=i?t[0]:t,a=n?e.indexOf(n):-1,s=(r=Math.max(a,0),e.map((t,n)=>e[(r+n)%e.length])),l=1===o.length;l&&(s=s.filter(e=>e!==n));let u=s.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}(s,r,a),u=null===(n=i.find(e=>e.textValue===l))||void 0===n?void 0:n.ref.current;!function e(t){T.current=t,window.clearTimeout(M.current),""!==t&&(M.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>u.focus())};(0,x.useEffect)(()=>()=>window.clearTimeout(M.current),[]),(0,um.EW)();let z=(0,x.useCallback)(e=>{var t,n;let r=N.current===(null===(t=P.current)||void 0===t?void 0:t.side);return r&&function(e,t){if(!t)return!1;let n={x:e.clientX,y:e.clientY};return function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;er!=u>r&&n<(l-a)*(r-s)/(u-s)+a;c&&(i=!i)}return i}(n,t)}(e,null===(n=P.current)||void 0===n?void 0:n.area)},[]);return(0,x.createElement)(u2,{scope:n,searchRef:T,onItemEnter:(0,x.useCallback)(e=>{z(e)&&e.preventDefault()},[z]),onItemLeave:(0,x.useCallback)(e=>{var t;z(e)||(null===(t=C.current)||void 0===t||t.focus(),S(null))},[z]),onTriggerLeave:(0,x.useCallback)(e=>{z(e)&&e.preventDefault()},[z]),pointerGraceTimerRef:A,onPointerGraceIntentChange:(0,x.useCallback)(e=>{P.current=e},[])},(0,x.createElement)(D,L,(0,x.createElement)(uv.M,{asChild:!0,trapped:i,onMountAutoFocus:(0,_.M)(o,e=>{var t;e.preventDefault(),null===(t=C.current)||void 0===t||t.focus()}),onUnmountAutoFocus:a},(0,x.createElement)(ev.XB,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f},(0,x.createElement)(uC,(0,w.Z)({asChild:!0},y,{dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:j,onCurrentTabStopIdChange:S,onEntryFocus:e=>{v.isUsingKeyboardRef.current||e.preventDefault()}}),(0,x.createElement)(tj,(0,w.Z)({role:"menu","aria-orientation":"vertical","data-state":cf(m.open),dir:v.dir},g,p,{ref:O,style:{outline:"none",...p.style},onKeyDown:(0,_.M)(p.onKeyDown,e=>{let t=e.target,n=t.closest('[role="menu"]')===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,i=1===e.key.length;n&&("Tab"===e.key&&e.preventDefault(),!r&&i&&F(e.key));let o=C.current;if(e.target!==o||!uL.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled),s=a.map(e=>e.ref.current);uD.includes(e.key)&&s.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(s)}),onBlur:(0,_.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(M.current),T.current="")}),onPointerMove:(0,_.M)(e.onPointerMove,cp(e=>{let t=e.target,n=R.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>R.current?"right":"left";N.current=t,R.current=e.clientX}}))})))))))}),u7=(0,x.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,x.createElement)(O.WV.div,(0,w.Z)({role:"group"},r,{ref:t}))}),u9=(0,x.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,x.createElement)(O.WV.div,(0,w.Z)({},r,{ref:t}))}),ce="MenuItem",ct="menu.itemSelect",cn=(0,x.forwardRef)((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,o=(0,x.useRef)(null),a=uG(ce,e.__scopeMenu),s=u4(ce,e.__scopeMenu),l=(0,k.e)(t,o),u=(0,x.useRef)(!1);return(0,x.createElement)(cr,(0,w.Z)({},i,{ref:l,disabled:n,onClick:(0,_.M)(e.onClick,()=>{let e=o.current;if(!n&&e){let t=new CustomEvent(ct,{bubbles:!0,cancelable:!0});e.addEventListener(ct,e=>null==r?void 0:r(e),{once:!0}),(0,O.jH)(e,t),t.defaultPrevented?u.current=!1:a.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),u.current=!0},onPointerUp:(0,_.M)(e.onPointerUp,e=>{var t;u.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,_.M)(e.onKeyDown,e=>{let t=""!==s.searchRef.current;!n&&(!t||" "!==e.key)&&uR.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))}),cr=(0,x.forwardRef)((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...o}=e,a=u4(ce,n),s=uq(n),l=(0,x.useRef)(null),u=(0,k.e)(t,l),[c,d]=(0,x.useState)(!1),[f,h]=(0,x.useState)("");return(0,x.useEffect)(()=>{let e=l.current;if(e){var t;h((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[o.children]),(0,x.createElement)(uZ.ItemSlot,{scope:n,disabled:r,textValue:null!=i?i:f},(0,x.createElement)(uM,(0,w.Z)({asChild:!0},s,{focusable:!r}),(0,x.createElement)(O.WV.div,(0,w.Z)({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},o,{ref:u,onPointerMove:(0,_.M)(e.onPointerMove,cp(e=>{if(r)a.onItemLeave(e);else if(a.onItemEnter(e),!e.defaultPrevented){let t=e.currentTarget;t.focus()}})),onPointerLeave:(0,_.M)(e.onPointerLeave,cp(e=>a.onItemLeave(e))),onFocus:(0,_.M)(e.onFocus,()=>d(!0)),onBlur:(0,_.M)(e.onBlur,()=>d(!1))}))))}),[ci,co]=((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,x.createElement)(cs,{scope:e.__scopeMenu,checked:n},(0,x.createElement)(cn,(0,w.Z)({role:"menuitemcheckbox","aria-checked":n},i,{ref:t,"data-state":ch(n),onSelect:(0,_.M)(i.onSelect,()=>null==r?void 0:r(!n),{checkForDefaultPrevented:!1})})))},uH("MenuRadioGroup",{value:void 0,onValueChange:()=>{}})),ca=((e,t)=>{let{value:n,onValueChange:r,...i}=e,o=(0,lh.W)(r);return(0,x.createElement)(ci,{scope:e.__scopeMenu,value:n,onValueChange:o},(0,x.createElement)(u7,(0,w.Z)({},i,{ref:t})))},"MenuItemIndicator"),[cs,cl]=uH(ca,{checked:!1}),[cu,cc]=((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,o=cl(ca,n);return(0,x.createElement)(T.z,{present:r||o.checked},(0,x.createElement)(O.WV.span,(0,w.Z)({},i,{ref:t,"data-state":ch(o.checked)})))},uH("MenuSub")),cd="MenuSubTrigger";function cf(e){return e?"open":"closed"}function ch(e){return e?"checked":"unchecked"}function cp(e){return t=>"mouse"===t.pointerType?e(t):void 0}(e,t)=>{let n=uK(cd,e.__scopeMenu),r=uG(cd,e.__scopeMenu),i=cc(cd,e.__scopeMenu),o=u4(cd,e.__scopeMenu),a=(0,x.useRef)(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=o,u={__scopeMenu:e.__scopeMenu},c=(0,x.useCallback)(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return(0,x.useEffect)(()=>c,[c]),(0,x.useEffect)(()=>{let e=s.current;return()=>{window.clearTimeout(e),l(null)}},[s,l]),(0,x.createElement)(uX,(0,w.Z)({asChild:!0},u),(0,x.createElement)(cr,(0,w.Z)({id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":cf(n.open)},e,{ref:(0,k.F)(t,i.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,_.M)(e.onPointerMove,cp(t=>{o.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||a.current||(o.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),c()},100))})),onPointerLeave:(0,_.M)(e.onPointerLeave,cp(e=>{var t,r;c();let i=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(i){let t=null===(r=n.content)||void 0===r?void 0:r.dataset.side,a="right"===t,l=i[a?"left":"right"],u=i[a?"right":"left"];o.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:l,y:i.top},{x:u,y:i.top},{x:u,y:i.bottom},{x:l,y:i.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(e),e.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:(0,_.M)(e.onKeyDown,t=>{let i=""!==o.searchRef.current;if(!e.disabled&&(!i||" "!==t.key)&&uF[r.dir].includes(t.key)){var a;n.onOpenChange(!0),null===(a=n.content)||void 0===a||a.focus(),t.preventDefault()}})})))},(e,t)=>{let n=u0(u1,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=uK(u1,e.__scopeMenu),a=uG(u1,e.__scopeMenu),s=cc("MenuSubContent",e.__scopeMenu),l=(0,x.useRef)(null),u=(0,k.e)(t,l);return(0,x.createElement)(uZ.Provider,{scope:e.__scopeMenu},(0,x.createElement)(T.z,{present:r||o.open},(0,x.createElement)(uZ.Slot,{scope:e.__scopeMenu},(0,x.createElement)(u8,(0,w.Z)({id:s.contentId,"aria-labelledby":s.triggerId},i,{ref:u,align:"start",side:"rtl"===a.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;a.isUsingKeyboardRef.current&&(null===(t=l.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,_.M)(e.onFocusOutside,e=>{e.target!==s.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:(0,_.M)(e.onEscapeKeyDown,a.onClose),onKeyDown:(0,_.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=uz[a.dir].includes(e.key);if(t&&n){var r;o.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault()}})})))))};let cm=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:o,modal:a=!0}=e,s=uW(t),[l,u]=(0,x.useState)(null),c=(0,x.useRef)(!1),d=(0,lh.W)(o),f=lL(i);return(0,x.useEffect)(()=>{let e=()=>{c.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>c.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,x.createElement)(tM,s,(0,x.createElement)(u$,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:u},(0,x.createElement)(uY,{scope:t,onClose:(0,x.useCallback)(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:a},r)))},cv=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=uK(uJ,t);return(0,x.createElement)(uQ,{scope:t,forceMount:n},(0,x.createElement)(T.z,{present:n||o.open},(0,x.createElement)(tT.h,{asChild:!0,container:i},r)))},cg="DropdownMenu",[cy,cx]=(0,j.b)(cg,[uU]),cb=uU(),[cw,cj]=cy(cg),ck=(0,x.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,o=cj("DropdownMenuTrigger",n),a=cb(n);return(0,x.createElement)(uX,(0,w.Z)({asChild:!0},a),(0,x.createElement)(O.WV.button,(0,w.Z)({type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":!!o.open||void 0,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},i,{ref:(0,k.F)(t,o.triggerRef),onPointerDown:(0,_.M)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:(0,_.M)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),[" ","ArrowDown"].includes(e.key)&&e.preventDefault())})})))}),cE=(0,x.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cj("DropdownMenuContent",n),o=cb(n),a=(0,x.useRef)(!1);return(0,x.createElement)(u3,(0,w.Z)({id:i.contentId,"aria-labelledby":i.triggerId},o,r,{ref:t,onCloseAutoFocus:(0,_.M)(e.onCloseAutoFocus,e=>{var t;a.current||null===(t=i.triggerRef.current)||void 0===t||t.focus(),a.current=!1,e.preventDefault()}),onInteractOutside:(0,_.M)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!i.modal||r)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)"}}))}),cS=(0,x.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cb(n);return(0,x.createElement)(u9,(0,w.Z)({},i,r,{ref:t}))}),c_=(0,x.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cb(n);return(0,x.createElement)(cn,(0,w.Z)({},i,r,{ref:t}))}),cC=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,l=cb(t),u=(0,x.useRef)(null),[c=!1,d]=(0,C.T)({prop:i,defaultProp:o,onChange:a});return(0,x.createElement)(cw,{scope:t,triggerId:(0,A.M)(),triggerRef:u,contentId:(0,A.M)(),open:c,onOpenChange:d,onOpenToggle:(0,x.useCallback)(()=>d(e=>!e),[d]),modal:s},(0,x.createElement)(cm,(0,w.Z)({},l,{open:c,onOpenChange:d,dir:r,modal:s}),n))},cO=e=>{let{__scopeDropdownMenu:t,...n}=e,r=cb(t);return(0,x.createElement)(cv,(0,w.Z)({},r,n))},cM="horizontal",cT=["horizontal","vertical"],cA=(0,x.forwardRef)((e,t)=>{let{decorative:n,orientation:r=cM,...i}=e,o=cP(r)?r:cM;return(0,x.createElement)(O.WV.div,(0,w.Z)({"data-orientation":o},n?{role:"none"}:{"aria-orientation":"vertical"===o?o:void 0,role:"separator"},i,{ref:t}))});function cP(e){return cT.includes(e)}cA.propTypes={orientation(e,t,n){let r=e[t],i=String(r);return r&&!cP(r)?Error(`Invalid prop \`orientation\` of value \`${i}\` supplied to \`${n}\`, expected one of: - - horizontal - - vertical - -Defaulting to \`${cM}\`.`):null}};let cN=(0,em.j)(["m-0 flex-shrink-0 cursor-default"],{variants:{variant:{vertical:"border-r",horizontal:"border-b"},color:{subtle:"border-gray-300 dark:border-graydark-300",verySubtle:"border-gray-100 dark:border-graydark-100",panel:"border-gray-100 dark:border-graydark-400/50"}},defaultVariants:{variant:"horizontal",color:"subtle"}}),cR=x.forwardRef((e,t)=>{let{variant:n,color:r,className:i,...o}=e;return(0,y.jsx)(cA,{ref:t,className:cN({variant:n,color:r,className:i}),...o})}),cD=function(){let{className:e,font:t,color:n="subtle",weight:r="medium",size:i="14",scaleSize:o,noWrap:a,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,em.cx)(t0({font:t,color:n,weight:r,size:i,scaleSize:o,noWrap:a,ellipsis:s,className:e}),["relative","flex","items-center","tabular-nums","select-none","whitespace-nowrap","px-1.5","py-1.5"])},cL=function(){let{className:e,font:t,color:n="contrast",weight:r="medium",size:i="14",scaleSize:o,noWrap:a,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,em.cx)(cD({font:t,color:n,weight:r,size:i,scaleSize:o,noWrap:a,ellipsis:s,className:e}),["group","cursor-pointer","rounded-sm","focus:outline-none","focus:text-gray-900","dark:focus:text-white","focus:bg-gray-300","dark:focus:bg-graydark-300","aria-selected:bg-gray-400","aria-selected:dark:bg-graydark-500","data-[disabled]:pointer-events-none","data-[disabled]:text-gray-700","dark:data-[disabled]:text-graydark-700"])},cF=e=>{let{className:t,font:n,color:r="verySubtle",weight:i="medium",size:o="14",scaleSize:a,noWrap:s,ellipsis:l}=e;return t0({font:n,color:r,weight:i,size:o,scaleSize:a,noWrap:s,ellipsis:l,className:t})},cz=e=>(0,em.cx)(["h-px","my-2","mx-1.5",e]),cV=x.forwardRef((e,t)=>{let{className:n,color:r,...i}=e;return(0,y.jsx)(cR,{ref:t,className:cz(n),...i})}),cZ=x.forwardRef((e,t)=>{let{className:n,font:r,color:i,weight:o,size:a="14",scaleSize:s,noWrap:l,ellipsis:u,...c}=e;return(0,y.jsx)("div",{ref:t,className:(0,em.cx)(cD({className:n,font:r,color:i,weight:o,size:a,scaleSize:s,noWrap:l,ellipsis:u})),...c})}),cI=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)("div",{ref:t,className:(0,em.cx)(["ml-auto","pl-5",n]),...r})}),cB=(0,em.j)(["relative","max-w-sm","z-30","py-1","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-tip","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),cH=e=>(0,em.cx)(t4(),(0,em.j)(["max-w-xs","shadow-sm","py-1","px-1"])({className:e})),cU={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},cW=x.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o,className:a,open:s,onOpenChange:l}=e,{open:u,onOpenChange:c}=le({open:s,onOpenChange:l});return(0,y.jsxs)(cC,{open:u,onOpenChange:c,...i,children:[(0,y.jsx)(ck,{asChild:!0,children:n}),(0,y.jsx)(nC,{children:u?(0,y.jsx)(cO,{forceMount:!0,children:(0,y.jsx)(cE,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,y.jsx)(s9.div,{variants:cU,initial:"init",animate:"show",exit:"exit",className:cB(),children:(0,y.jsx)("div",{className:cH(a),children:r})})})}):null})]})}),cq=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(c_,{ref:t,className:cL({className:n}),...r})}),c$=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(cS,{ref:t,className:(0,em.cx)("px-1.5",cF({className:n})),...r})}),cK=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)("div",{ref:t,className:(0,em.cx)(["pr-2","opacity-70 group-hover:opacity-100",n]),...r})});var cY=n(39097),cG=n.n(cY);let cX={20:"h3",24:"h3",32:"h2",40:"h2",64:"h1"},cJ={20:"font-semibold text-base md:text-xl",24:"font-bold text-xl md:text-2xl",32:"font-semibold text-2xl md:text-3xl",40:"font-semibold text-3xl md:text-4xl",64:"font-semibold text-4xl md:text-6xl"},cQ=x.forwardRef((e,t)=>{let{size:n="24",className:r,id:i,children:o,anchorLink:a,showAnchor:s,...l}=e,u=cX[n];if(a){let e=i||("string"==typeof o?encodeURI(o.toLowerCase().replace(/ /g,"-")):"");return(0,y.jsxs)("div",{className:(0,em.cx)("relative flex flex-col gap-6 items-start",r),children:[(0,y.jsx)("div",{id:e,className:"absolute -top-[100px]"}),(0,y.jsxs)(cG(),{href:"#".concat(e),className:"relative group",children:[(0,y.jsx)(t1,{className:"hidden group-hover:block",children:(0,y.jsx)(lo.POp,{className:"absolute top-1 -left-7 hidden md:block"})}),(0,y.jsx)(t1,{as:u,...l,ref:t,weight:"none",className:(0,em.cx)("proportional-nums inline-block",cJ[n]),children:o})]})]})}return(0,y.jsx)("div",{className:(0,em.cx)("flex flex-col gap-6 items-start",r),children:(0,y.jsx)(t1,{as:u,...l,ref:t,weight:"none",className:(0,em.cx)("proportional-nums inline-block",cJ[n],r),children:o})})});var c0=n(96577),c1=n.n(c0);let c2=(0,em.j)(["rounded"]);function c4(e){let{className:t,...n}=e;return(0,y.jsx)(c1(),{className:c2({className:t}),...n})}let[c3,c5]=(0,j.k)("Label",{id:void 0,controlRef:{current:null}}),c6=(0,x.forwardRef)((e,t)=>{let{htmlFor:n,id:r,...i}=e,o=(0,x.useRef)(null),a=(0,x.useRef)(null),s=(0,k.e)(t,a),l=(0,A.M)(r);return(0,x.useEffect)(()=>{if(n){let e=document.getElementById(n),t=a.current;if(t&&e){let t=()=>e.getAttribute("aria-labelledby"),n=[l,t()].filter(Boolean).join(" ");return e.setAttribute("aria-labelledby",n),o.current=e,()=>{var n;let r=null===(n=t())||void 0===n?void 0:n.replace(l,"");""===r?e.removeAttribute("aria-labelledby"):r&&e.setAttribute("aria-labelledby",r)}}}},[l,n]),(0,x.createElement)(c3,{id:l,controlRef:o},(0,x.createElement)(O.WV.span,(0,w.Z)({role:"label",id:l},i,{ref:s,onMouseDown:t=>{var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()},onClick:t=>{var n;if(null===(n=e.onClick)||void 0===n||n.call(e,t),!o.current||t.defaultPrevented)return;let r=o.current.contains(t.target),i=!0===t.isTrusted;!r&&i&&(o.current.click(),o.current.focus())}})))}),c8=e=>{let t=c5("LabelConsumer"),{controlRef:n}=t;return(0,x.useEffect)(()=>{e&&(n.current=e)},[e,n]),t.id},c7=x.forwardRef((e,t)=>{let{font:n,size:r="14",scaleSize:i,weight:o,color:a="verySubtle",noWrap:s,ellipsis:l,className:u,...c}=e;return(0,y.jsx)(c6,{ref:t,...c,className:cF({font:n,size:r,scaleSize:i,color:a,weight:o,noWrap:s,ellipsis:l,className:u})})}),c9=(0,em.j)(["cursor-pointer"],{variants:{disabled:{true:"opacity-50 pointer-events-none"},underline:{accent:"underline underline-offset-4 decoration-2 decoration-accentdark-900 dark:decoration-accentdark-900",default:"underline underline-offset-4",hover:"hover:underline underline-offset-4",none:""}},defaultVariants:{disabled:!1,underline:"default"}}),de=e=>{let{font:t,size:n,scaleSize:r,color:i,weight:o,noWrap:a,ellipsis:s,underline:l,disabled:u,className:c}=e;return(0,em.cx)(t0({scaleSize:r,size:n,font:t,color:i,weight:o,noWrap:a,ellipsis:s,underline:l}),c9({disabled:u,underline:l}),c)},dt=x.forwardRef((e,t)=>{let{href:n,font:r,size:i,scaleSize:o,color:a,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f,rel:h,target:p,onClick:m,...v}=e,g=(0,x.useCallback)(e=>{m&&(n||e.preventDefault(),m(e))},[m,n]);return(0,y.jsx)(cG(),{href:n||"#",ref:t,className:de({font:r,scaleSize:o,size:i,color:a,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f}),...v,onClick:g,rel:h||("_blank"===p?"noopener":void 0),target:p})}),dn=x.forwardRef((e,t)=>{let{href:n,disabled:r,variant:i,size:o,state:a,rounded:s,icon:l,className:u,tip:c,rel:d,target:f,onClick:h,...p}=e,m=d||("_blank"===f?"noopener":void 0),v=(0,x.useCallback)(e=>{h&&(n||e.preventDefault(),h(e))},[h,n]);return c?(0,y.jsx)(ln,{content:c,children:(0,y.jsx)(cG(),{href:n||"#",ref:t,className:lr({variant:i,size:o,state:a,rounded:s,disabled:r,icon:l,className:u}),onClick:v,...p,rel:m,target:f})}):(0,y.jsx)(cG(),{href:n||"#",ref:t,className:lr({variant:i,size:o,state:a,rounded:s,disabled:r,icon:l,className:u}),onClick:v,...p,rel:m,target:f})}),dr={src:"/_next/static/media/logo.0e2362ab.png"};function di(e){let{size:t=30,className:n}=e;return(0,y.jsx)(c4,{priority:!0,src:"/_next/static/media/logo.0e2362ab.png",alt:"Logo",width:t,height:t,className:n})}let da="Popover",[ds,dl]=(0,j.b)(da,[th]),du=th(),[dc,dd]=ds(da),df=(0,x.forwardRef)((e,t)=>{let{__scopePopover:n,...r}=e,i=dd("PopoverTrigger",n),o=du(n),a=(0,k.e)(t,i.triggerRef),s=(0,x.createElement)(O.WV.button,(0,w.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":dw(i.open)},r,{ref:a,onClick:(0,_.M)(e.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?s:(0,x.createElement)(tv,(0,w.Z)({asChild:!0},o),s)}),dh="PopoverPortal",[dp,dm]=ds(dh,{forceMount:void 0}),dv="PopoverContent",dg=(0,x.forwardRef)((e,t)=>{let n=dm(dv,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,o=dd(dv,e.__scopePopover);return(0,x.createElement)(T.z,{present:r||o.open},o.modal?(0,x.createElement)(dy,(0,w.Z)({},i,{ref:t})):(0,x.createElement)(dx,(0,w.Z)({},i,{ref:t})))}),dy=(0,x.forwardRef)((e,t)=>{let n=dd(dv,e.__scopePopover),r=(0,x.useRef)(null),i=(0,k.e)(t,r),o=(0,x.useRef)(!1);return(0,x.useEffect)(()=>{let e=r.current;if(e)return(0,uP.R)(e)},[]),(0,x.createElement)(uN.Z,{as:E.g7,allowPinchZoom:!0},(0,x.createElement)(db,(0,w.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,_.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),o.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,_.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,_.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})))}),dx=(0,x.forwardRef)((e,t)=>{let n=dd(dv,e.__scopePopover),r=(0,x.useRef)(!1);return(0,x.createElement)(db,(0,w.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,o;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current||null===(o=n.triggerRef.current)||void 0===o||o.focus(),t.preventDefault()),r.current=!1},onInteractOutside:t=>{var i,o;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0);let a=t.target,s=null===(o=n.triggerRef.current)||void 0===o?void 0:o.contains(a);s&&t.preventDefault()}}))}),db=(0,x.forwardRef)((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,f=dd(dv,n),h=du(n);return(0,um.EW)(),(0,x.createElement)(uv.M,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o},(0,x.createElement)(ev.XB,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:c,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1)},(0,x.createElement)(tj,(0,w.Z)({"data-state":dw(f.open),role:"dialog",id:f.contentId},h,d,{ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function dw(e){return e?"open":"closed"}let dj=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:a=!1}=e,s=du(t),l=(0,x.useRef)(null),[u,c]=(0,x.useState)(!1),[d=!1,f]=(0,C.T)({prop:r,defaultProp:i,onChange:o});return(0,x.createElement)(tM,s,(0,x.createElement)(dc,{scope:t,contentId:(0,A.M)(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:(0,x.useCallback)(()=>f(e=>!e),[f]),hasCustomAnchor:u,onCustomAnchorAdd:(0,x.useCallback)(()=>c(!0),[]),onCustomAnchorRemove:(0,x.useCallback)(()=>c(!1),[]),modal:a},n))},dk=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,o=dd(dh,t);return(0,x.createElement)(dp,{scope:t,forceMount:n},(0,x.createElement)(T.z,{present:n||o.open},(0,x.createElement)(tT.h,{asChild:!0,container:i},r)))},dE=(0,em.j)(["relative","z-10","outline-none","max-w-sm","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),dS=(0,em.cx)(t4(),(0,em.j)(["py-1","px-1"])()),d_={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},dC=x.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o}=e,{open:a,onOpenChange:s}=le({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,y.jsxs)(dj,{open:a,onOpenChange:s,...i,children:[(0,y.jsx)(df,{asChild:!0,children:n}),(0,y.jsx)(nC,{children:a?(0,y.jsx)(dk,{forceMount:!0,children:(0,y.jsx)(dg,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,y.jsx)(s9.div,{variants:d_,initial:"init",animate:"show",exit:"exit",className:dE(),children:(0,y.jsx)(uo,{className:dS,children:r})})})}):null})]})}),dO="Progress",[dM,dT]=(0,j.b)(dO),[dA,dP]=dM(dO),dN=(0,x.forwardRef)((e,t)=>{let{__scopeProgress:n,value:r,max:i,getValueLabel:o=dD,...a}=e,s=dz(i)?i:100,l=dV(r,s)?r:null,u=dF(l)?o(l,s):void 0;return(0,x.createElement)(dA,{scope:n,value:l,max:s},(0,x.createElement)(O.WV.div,(0,w.Z)({"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":dF(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":dL(l,s),"data-value":null!=l?l:void 0,"data-max":s},a,{ref:t})))});dN.propTypes={max(e,t,n){let r=e[t],i=String(r);return r&&!dz(r)?Error(`Invalid prop \`max\` of value \`${i}\` supplied to \`${n}\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`):null},value(e,t,n){let r=e[t],i=String(r),o=dz(e.max)?e.max:100;return null==r||dV(r,o)?null:Error(`Invalid prop \`value\` of value \`${i}\` supplied to \`${n}\`. The \`value\` prop must be: - - a positive number - - less than the value passed to \`max\` (or 100 if no \`max\` prop is set) - - \`null\` if the progress is indeterminate. - -Defaulting to \`null\`.`)}};let dR=(0,x.forwardRef)((e,t)=>{var n;let{__scopeProgress:r,...i}=e,o=dP("ProgressIndicator",r);return(0,x.createElement)(O.WV.div,(0,w.Z)({"data-state":dL(o.value,o.max),"data-value":null!==(n=o.value)&&void 0!==n?n:void 0,"data-max":o.max},i,{ref:t}))});function dD(e,t){return`${Math.round(e/t*100)}%`}function dL(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function dF(e){return"number"==typeof e}function dz(e){return dF(e)&&!isNaN(e)&&e>0}function dV(e,t){return dF(e)&&!isNaN(e)&&e<=t&&e>=0}let dZ=(0,em.j)(["relative h-1 w-full overflow-hidden rounded-lg"],{variants:{variant:{gray:"bg-gray-700 dark:bg-graydark-700",accent:"bg-green-600 dark:bg-green-500"}},defaultVariants:{variant:"gray"}}),dI=x.forwardRef((e,t)=>{let{label:n,variant:r,className:i,value:o,max:a=100,...s}=e,l=null!=o?Math.round(o/a*100):null;return(0,y.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,y.jsx)(dN,{...s,ref:t,value:o,max:a,className:dZ({variant:r,className:i}),children:(0,y.jsx)(dR,{className:"absolute top-0 right-0 left-0 bottom-0 w-full bg-gray-300 dark:bg-graydark-300 transition-transform",style:{transform:"translateX(".concat(l,"%)")}})}),n&&(0,y.jsx)(t1,{color:"subtle",size:"12",ellipsis:!0,children:n})]})});function dB(e){let t=(0,x.useRef)({value:e,previous:e});return(0,x.useMemo)(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}let dH="Radio",[dU,dW]=(0,j.b)(dH),[dq,d$]=dU(dH),dK=(0,x.forwardRef)((e,t)=>{let{__scopeRadio:n,"aria-labelledby":r,name:i,checked:o=!1,required:a,disabled:s,value:l="on",onCheck:u,...c}=e,[d,f]=(0,x.useState)(null),h=(0,k.e)(t,e=>f(e)),p=c8(d),m=(0,x.useRef)(!1),v=!d||!!d.closest("form");return(0,x.createElement)(dq,{scope:n,checked:o,disabled:s},(0,x.createElement)(O.WV.button,(0,w.Z)({type:"button",role:"radio","aria-checked":o,"aria-labelledby":r||p,"data-state":dX(o),"data-disabled":s?"":void 0,disabled:s,value:l},c,{ref:h,onClick:(0,_.M)(e.onClick,e=>{o||null==u||u(),v&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})),v&&(0,x.createElement)(dG,{control:d,bubbles:!m.current,name:i,value:l,checked:o,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))}),dY=(0,x.forwardRef)((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,o=d$("RadioIndicator",n);return(0,x.createElement)(T.z,{present:r||o.checked},(0,x.createElement)(O.WV.span,(0,w.Z)({"data-state":dX(o.checked),"data-disabled":o.disabled?"":void 0},i,{ref:t})))}),dG=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,o=(0,x.useRef)(null),a=dB(n),s=tc(t);return(0,x.useEffect)(()=>{let e=o.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked"),s=i.set;if(a!==n&&s){let t=new Event("click",{bubbles:r});s.call(e,n),e.dispatchEvent(t)}},[a,n,r]),(0,x.createElement)("input",(0,w.Z)({type:"radio","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function dX(e){return e?"checked":"unchecked"}let dJ=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],dQ="RadioGroup",[d0,d1]=(0,j.b)(dQ,[uE,dW]),d2=uE(),d4=dW(),[d3,d5]=d0(dQ),d6=(0,x.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,name:r,"aria-labelledby":i,defaultValue:o,value:a,required:s=!1,orientation:l,dir:u,loop:c=!0,onValueChange:d,...f}=e,h=c8(),p=d2(n),m=lL(u),[v,g]=(0,C.T)({prop:a,defaultProp:o,onChange:d});return(0,x.createElement)(d3,{scope:n,name:r,required:s,value:v,onValueChange:g},(0,x.createElement)(uC,(0,w.Z)({asChild:!0},p,{orientation:l,dir:m,loop:c}),(0,x.createElement)(O.WV.div,(0,w.Z)({role:"radiogroup","aria-required":s,"aria-orientation":l,"aria-labelledby":i||h,dir:m},f,{ref:t}))))}),d8=(0,x.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,disabled:r,...i}=e,o=d5("RadioGroupItem",n),a=d2(n),s=d4(n),l=(0,x.useRef)(null),u=(0,k.e)(t,l),c=o.value===i.value,d=(0,x.useRef)(!1);return(0,x.useEffect)(()=>{let e=e=>{dJ.includes(e.key)&&(d.current=!0)},t=()=>d.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,x.createElement)(uM,(0,w.Z)({asChild:!0},a,{focusable:!r,active:c}),(0,x.createElement)(dK,(0,w.Z)({disabled:r,required:o.required,checked:c},s,i,{name:o.name,ref:u,onCheck:()=>o.onValueChange(i.value),onKeyDown:(0,_.M)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,_.M)(i.onFocus,()=>{var e;d.current&&(null===(e=l.current)||void 0===e||e.click())})})))}),d7=(0,x.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,...r}=e,i=d4(n);return(0,x.createElement)(dY,(0,w.Z)({},i,r,{ref:t}))}),d9=(0,em.j)(["relative flex items-center h-full justify-center w-full",'after:content-[""] after:block after:rounded-full after:bg-green-600 after:dark:bg-green-500'],{variants:{size:{small:"after:w-2 after:h-2 ",medium:"after:w-4 after:h-4"}},defaultVariants:{size:"small"}}),fe=(0,em.j)(["select-none","inline-flex items-center justify-center","m-0 p-0","outline-none","rounded-full","overflow-hidden","focus:ring ring-blue-500 dark:ring-blue-200","bg-white dark:bg-graydark-200","border border-gray-500 dark:border-graydark-400","enabled:hover:border-gray-700 enabled:hover:dark:border-graydark-600","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-400","disabled:bg-gray-200 disabled:dark:bg-graydark-200"],{variants:{size:{small:"w-4 h-4",medium:"w-6 h-6"}},defaultVariants:{size:"small"}}),ft=x.forwardRef((e,t)=>{let{size:n,className:r,children:i,...o}=e;return(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(d8,{...o,className:fe({size:n,className:r}),ref:t,children:(0,y.jsx)(d7,{className:d9({size:n})})}),(0,y.jsx)(t1,{size:"14",className:"relative top-px flex items-center",color:o.disabled?"verySubtle":"subtle",children:i})]})}),fn=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(d6,{...r,className:(0,em.cx)("flex gap-2",n),ref:t})}),fr="Tabs",[fi,fo]=(0,j.b)(fr,[uE]),fa=uE(),[fs,fl]=fi(fr),fu=(0,x.forwardRef)((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:o,orientation:a="horizontal",dir:s,activationMode:l="automatic",...u}=e,c=lL(s),[d,f]=(0,C.T)({prop:r,onChange:i,defaultProp:o});return(0,x.createElement)(fs,{scope:n,baseId:(0,A.M)(),value:d,onValueChange:f,orientation:a,dir:c,activationMode:l},(0,x.createElement)(O.WV.div,(0,w.Z)({dir:c,"data-orientation":a},u,{ref:t})))}),fc=(0,x.forwardRef)((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,o=fl("TabsList",n),a=fa(n);return(0,x.createElement)(uC,(0,w.Z)({asChild:!0},a,{orientation:o.orientation,dir:o.dir,loop:r}),(0,x.createElement)(O.WV.div,(0,w.Z)({role:"tablist","aria-orientation":o.orientation},i,{ref:t})))}),fd=(0,x.forwardRef)((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...o}=e,a=fl("TabsTrigger",n),s=fa(n),l=fh(a.baseId,r),u=fp(a.baseId,r),c=r===a.value;return(0,x.createElement)(uM,(0,w.Z)({asChild:!0},s,{focusable:!i,active:c}),(0,x.createElement)(O.WV.button,(0,w.Z)({type:"button",role:"tab","aria-selected":c,"aria-controls":u,"data-state":c?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:l},o,{ref:t,onMouseDown:(0,_.M)(e.onMouseDown,e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(r)}),onKeyDown:(0,_.M)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&a.onValueChange(r)}),onFocus:(0,_.M)(e.onFocus,()=>{let e="manual"!==a.activationMode;c||i||!e||a.onValueChange(r)})})))}),ff=(0,x.forwardRef)((e,t)=>{let{__scopeTabs:n,value:r,forceMount:i,children:o,...a}=e,s=fl("TabsContent",n),l=fh(s.baseId,r),u=fp(s.baseId,r),c=r===s.value,d=(0,x.useRef)(c);return(0,x.useEffect)(()=>{let e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,x.createElement)(T.z,{present:i||c},({present:n})=>(0,x.createElement)(O.WV.div,(0,w.Z)({"data-state":c?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!n,id:u,tabIndex:0},a,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),n&&o))});function fh(e,t){return`${e}-trigger-${t}`}function fp(e,t){return`${e}-content-${t}`}let fm=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(fu,{ref:t,className:(0,em.cx)("flex flex-col",n),...r})}),fv=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(fc,{ref:t,className:(0,em.cx)("flex flex-shrink-0 border-b border-gray-500 dark:border-graydark-500",n),...r})}),fg=x.forwardRef((e,t)=>{let{font:n,size:r="16",weight:i="medium",className:o,...a}=e;return(0,y.jsx)(fd,{ref:t,type:"button",className:(0,em.cx)("px-10 h-12","flex-1 flex items-center justify-center","outline-none","select-none cursor-pointer","border-b-3","text-gray-1000 dark:text-graydark-1000","hover:text-gray-1100 hover:dark:text-white","border-transparent","data-[state=active]:text-accent-1100 data-[state=active]:dark:text-accentdark-1100","data-[state=active]:border-green-600 data-[state=active]:dark:border-green-500",t0({font:n,size:r,weight:i,ellipsis:!0}),o),...a})}),fy=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(ff,{ref:t,className:(0,em.cx)("flex-grow-1 pt-6 outline-none",n),...r})});(0,em.j)(["relative appearance-none outline-none","p-2 m-0 w-full","min-h-[80px]",t0(),"tabular-nums","resize-y","rounded","focus:ring ring-blue-500 dark:ring-blue-200","text-gray-1100 dark:text-white","placeholder:text-gray-600 placeholder:dark:text-graydark-500","disabled:text-gray-400 disabled:dark:text-graydark-400"],{variants:{size:{small:"h-7 text-sm px-2",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},variant:{default:["border","bg-white dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800"],ghost:"bg-transparent"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]},cursor:{default:"",text:"cursor-text"}},defaultVariants:{size:"small",variant:"default",cursor:"default",state:"default"}});let fx=(0,em.j)(["font-sans [type=number]:font-mono","outline-none m-0 p-0 w-full","disabled:pointer-events-none","tabular-nums","rounded","text-gray-1100 dark:text-white","autofill:text-fill-gray-1100 autofill:dark:text-fill-white","autofill:placeholder:text-fill-gray-700 autofill:placeholder:dark:text-fill-graydark-700","placeholder:text-gray-700 placeholder:dark:text-graydark-700","disabled:text-gray-400 disabled:dark:text-graydark-400"],{variants:{size:{small:"h-7 text-sm px-2",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},variant:{default:["border","bg-white dark:bg-graydark-50","autofill:bg-white autofill:dark:bg-graydark-50","autofill:shadow-fill-white autofill:dark:shadow-fill-graydark-50"],ghost:"bg-transparent"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]},focus:{default:["focus:ring ring-blue-500 dark:ring-blue-200","focus:z-10"],none:""},cursor:{default:"",text:"cursor-text"},noSpin:{true:"[&::-webkit-outer-spin-button, &::-webkit-inner-spin-button]:appearance-none"}},defaultVariants:{size:"small",focus:"default",variant:"default",cursor:"default",state:"default"}}),fb=x.forwardRef((e,t)=>{let{variant:n,size:r,state:i,noSpin:o,cursor:a,focus:s,className:l,...u}=e;return(0,y.jsx)("input",{ref:t,className:fx({variant:n,size:r,state:i,noSpin:o,cursor:a,focus:s,className:l}),...u})});/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var fw=function(){return(fw=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1){if(e.includes(t)){var r=e.split(t),i=r[0],o=r[1];if(o.length>n)return""+i+t+o.slice(0,n)}var a=e.length>n?RegExp("(\\d+)(\\d{"+n+"})"):RegExp("(\\d)(\\d+)"),s=e.match(a);if(s){var i=s[1],o=s[2];return""+i+t+o}}return e},fT=function(e,t){var n=t.groupSeparator,r=t.decimalSeparator,i=RegExp("\\d([^"+fk(void 0===n?",":n)+fk(void 0===r?".":r)+"0-9]+)"),o=e.match(i);return o?o[1]:void 0},fA=function(e){var t=e.value,n=e.decimalSeparator,r=e.intlConfig,i=e.decimalScale,o=e.prefix,a=void 0===o?"":o,s=e.suffix,l=void 0===s?"":s;if(""===t||void 0===t)return"";if("-"===t)return"-";var u=RegExp("^\\d?-"+(a?fk(a)+"?":"")+"\\d").test(t),c="."!==n?fP(t,n,u):t,d=fN((r?new Intl.NumberFormat(r.locale,r.currency?{style:"currency",currency:r.currency,minimumFractionDigits:i||0,maximumFractionDigits:20}:void 0):new Intl.NumberFormat(void 0,{minimumFractionDigits:i||0,maximumFractionDigits:20})).formatToParts(Number(c)),e),f=fT(d,fw({},e)),h=t.slice(-1)===n?n:"",p=(c.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return(void 0===i&&p&&n&&(d=d.includes(n)?d.replace(RegExp("(\\d+)("+fk(n)+")(\\d+)","g"),"$1$2"+p):f&&!l?d.replace(f,""+n+p+f):""+d+n+p),l&&h)?""+d+h+l:f&&h?d.replace(f,""+h+f):f&&l?d.replace(f,""+h+l):[d,h,l].join("")},fP=function(e,t,n){var r=e;return t&&"."!==t&&(r=r.replace(RegExp(fk(t),"g"),"."),n&&"-"===t&&(r="-"+r.slice(1))),r},fN=function(e,t){var n=t.prefix,r=t.groupSeparator,i=t.decimalSeparator,o=t.decimalScale,a=t.disableGroupSeparators,s=void 0!==a&&a;return e.reduce(function(e,t,a){var l=t.type,u=t.value;return 0===a&&n?"minusSign"===l?[u,n]:"currency"===l?fj(fj([],e),[n]):[n,u]:"currency"===l?n?e:fj(fj([],e),[u]):"group"===l?s?e:fj(fj([],e),[void 0!==r?r:u]):"decimal"===l?void 0!==o&&0===o?e:fj(fj([],e),[void 0!==i?i:u]):"fraction"===l?fj(fj([],e),[void 0!==o?u.slice(0,o):u]):fj(fj([],e),[u])},[""]).join("")},fR={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},fD=function(e){var t=e||{},n=t.locale,r=t.currency;return(n?new Intl.NumberFormat(n,r?{currency:r,style:"currency"}:void 0):new Intl.NumberFormat).formatToParts(1000.1).reduce(function(e,t,n){return"currency"===t.type?0===n?fw(fw({},e),{currencySymbol:t.value,prefix:t.value}):fw(fw({},e),{currencySymbol:t.value,suffix:t.value}):"group"===t.type?fw(fw({},e),{groupSeparator:t.value}):"decimal"===t.type?fw(fw({},e),{decimalSeparator:t.value}):e},fR)},fL=function(e){return RegExp(/\d/,"gi").test(e)},fF=function(e,t,n){if(void 0===t&&(t="."),void 0===n||""===e||void 0===e)return e;if(!e.match(/\d/g))return"";var r=e.split(t),i=r[0],o=r[1];if(0===n)return i;var a=o||"";if(a.lengtht.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}(e,["allowDecimals","allowNegativeValue","id","name","className","customInput","decimalsLimit","defaultValue","disabled","maxLength","value","onValueChange","fixedDecimalLength","placeholder","decimalScale","prefix","suffix","intlConfig","step","min","max","disableGroupSeparators","disableAbbreviations","decimalSeparator","groupSeparator","onChange","onFocus","onBlur","onKeyDown","onKeyUp","transformRawValue"]);if(C&&fL(C))throw Error("decimalSeparator cannot be a number");if(O&&fL(O))throw Error("groupSeparator cannot be a number");var L=(0,x.useMemo)(function(){return fD(b)},[b]),F=C||L.decimalSeparator||"",z=O||L.groupSeparator||"";if(F&&z&&F===z&&!1===S)throw Error("decimalSeparator cannot be the same as groupSeparator");var V={decimalSeparator:F,groupSeparator:z,disableGroupSeparators:S,intlConfig:b,prefix:g||L.prefix,suffix:y},Z={decimalSeparator:F,groupSeparator:z,allowDecimals:void 0===n||n,decimalsLimit:l||p||2,allowNegativeValue:void 0===r||r,disableAbbreviations:void 0!==_&&_,prefix:g||L.prefix,transformRawValue:R},I=null!=u?fA(fw(fw({},V),{decimalScale:v,value:String(u)})):null!=f?fA(fw(fw({},V),{decimalScale:v,value:String(f)})):"",B=(0,x.useState)(I),H=B[0],U=B[1],W=(0,x.useState)(!1),q=W[0],$=W[1],K=(0,x.useState)(0),Y=K[0],G=K[1],X=(0,x.useState)(0),J=X[0],Q=X[1],ee=(0,x.useState)(null),et=ee[0],en=ee[1],er=t||(0,x.useRef)(null),ei=function(e,t){$(!0);var n=fz({selectionStart:t,value:e,lastKeyStroke:et,stateValue:H,groupSeparator:z}),r=n.modifiedValue,i=n.cursorPosition,a=fO(fw({value:r},Z));if(!d||!(a.replace(/-/g,"").length>d)){if(""===a||"-"===a||a===F){h&&h(void 0,o,{float:null,formatted:"",value:""}),U(a);return}var s=parseFloat(a.replace(F,".")),l=fA(fw({value:a},V));if(null!=i){var u=i+(l.length-e.length);G(u=u<=0?g?g.length:0:u),Q(J+1)}U(l),h&&h(a,o,{float:s,formatted:l,value:a})}};(0,x.useEffect)(function(){q&&"-"!==H&&er&&"object"==typeof er&&er.current&&er.current.setSelectionRange(Y,Y)},[H,Y,er,q,J]);var eo=fw({type:"text",inputMode:"decimal",id:i,name:o,className:a,onChange:function(e){var t=e.target;ei(t.value,t.selectionStart),M&&M(e)},onBlur:function(e){var t=e.target.value,n=fO(fw({value:t},Z));if("-"===n||!n){U(""),A&&A(e);return}var r=fF(fM(n,F,p),F,void 0!==v?v:p),i=parseFloat(r.replace(F,".")),a=fA(fw(fw({},V),{value:r}));h&&h(r,o,{float:i,formatted:a,value:r}),U(a),A&&A(e)},onFocus:function(e){return T&&T(e),H?H.length:0},onKeyDown:function(e){var t=e.key;if(en(t),w&&("ArrowUp"===t||"ArrowDown"===t)){e.preventDefault(),G(H.length);var n=parseFloat(null!=f?String(f).replace(F,"."):fO(fw({value:H},Z)))||0,r="ArrowUp"===t?n+w:n-w;if(void 0!==j&&rk)return;var i=String(w).includes(".")?Number(String(w).split(".")[1].length):void 0;ei(String(i?r.toFixed(i):r).replace(".",F))}P&&P(e)},onKeyUp:function(e){var t=e.key,n=e.currentTarget.selectionStart;if("ArrowUp"!==t&&"ArrowDown"!==t&&"-"!==H){var r=fT(H,{groupSeparator:z,decimalSeparator:F});if(r&&n&&n>H.length-r.length&&er&&"object"==typeof er&&er.current){var i=H.length-r.length;er.current.setSelectionRange(i,i)}}N&&N(e)},placeholder:m,disabled:void 0!==c&&c,value:null==f||"-"===H||F&&H===F?H:fA(fw(fw({},V),{decimalScale:q?void 0:v,value:String(f)})),ref:er},D);return s?x.createElement(s,fw({},eo)):x.createElement("input",fw({},eo))});function fZ(e){let{units:t,variant:n,size:r="small",state:i,noSpin:o,focus:a,cursor:s,className:l,decimalsLimit:u,onValueChange:c,...d}=e,[f,h]=(0,x.useState)();return(0,x.useEffect)(()=>{h(navigator.language)},[]),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(fV,{...d,decimalsLimit:u,intlConfig:f?{locale:f}:void 0,allowDecimals:!!u,autoComplete:"off",spellCheck:!1,onValueChange:c,transformRawValue:e=>{if(e.length>0){if("."===e[0])return"0."+e.slice(1);if(","===e[0])return"0,"+e.slice(1)}return e},className:(0,em.cx)(fx({variant:n,size:r,state:i,focus:a,noSpin:o,cursor:s,className:l}),t?"pr-9":"")}),t&&(0,y.jsx)("div",{className:(0,em.cx)("flex items-center absolute top-0 h-full","small"===r?"right-2":"","medium"===r?"right-3":"","large"===r?"right-3":""),children:(0,y.jsx)(t1,{size:"12",weight:"medium",color:"subtle",children:t})})]})}fV.displayName="CurrencyInput";var fI=n(6391),fB=n.n(fI);function fH(e,t){return e.decimalPlaces()>t?e.toFixed(t):e.toString()}let fU=(0,x.forwardRef)(function(e,t){let{value:n,placeholder:r=new(fB())(100),decimalsLimit:i=6,onChange:o,size:a="small",units:s,error:l,changed:u,onBlur:c,onFocus:d,...f}=e,h=(0,x.useMemo)(()=>new(fB())(n),[n]),[p,m]=(0,x.useState)(""),v=(0,x.useMemo)(()=>fW(p),[p]),g=(0,x.useCallback)(e=>{o&&o((e=fW(e))&&!isNaN(Number(e))?new(fB())(e):void 0)},[o]),b=(0,x.useCallback)(e=>{m(e),g(e)},[m,g]);return(0,x.useEffect)(()=>{if(!h.isEqualTo(v)){let e=fH(h,i);m(e)}},[h]),(0,y.jsx)(fZ,{ref:t,...f,"data-testid":"numberfield",size:a,placeholder:r.isNaN()?"":fH(r,i),units:s,value:"NaN"!==p?p:"",decimalsLimit:i,onBlur:e=>{c&&c(e)},onFocus:e=>{d&&d(e)},onValueChange:e=>b(e||"")})});function fW(e){return(null==e?void 0:e.replace(/,/g,"."))||""}var fq=n(95753),f$=n(47025);let fK=new(fB())(0),fY=(0,x.forwardRef)(function(e,t){let{sc:n,placeholder:r=new(fB())(100),decimalsLimitFiat:i=6,decimalsLimitSc:o=6,onChange:a,size:s="medium",units:l="SC",showFiat:u=!0,error:c,changed:d,prefix:f,onBlur:h,onFocus:p,...m}=e,v=(0,x.useMemo)(()=>new(fB())(void 0===n?NaN:n),[n]),{settings:g}=(0,fq.Hv)(),b=(0,f$.BW)({config:{swr:{revalidateOnFocus:!1}}}),w=(0,x.useMemo)(()=>{var e;return g.siaCentral&&b.data?new(fB())((null===(e=b.data)||void 0===e?void 0:e.rates.sc[g.currency.id])||fK):fK},[b.data,g]),[j,k]=(0,x.useState)(),[E,S]=(0,x.useState)(""),[_,C]=(0,x.useState)(""),O=(0,x.useMemo)(()=>fG(E),[E]),M=(0,x.useMemo)(()=>fG(_),[_]),T=(0,x.useCallback)(e=>{a&&a((e=fG(e))&&!isNaN(Number(e))?new(fB())(e):void 0)},[a]),A=(0,x.useCallback)(e=>{let t=fH(e,i);C(t)},[C,i]),P=(0,x.useCallback)(e=>{let t=fH(e,o);return S(t),T(t),t},[S,o,T]),N=(0,x.useCallback)(e=>{S(e),T(e)},[S,T]),R=(0,x.useCallback)(e=>{let t=new(fB())(e).times(w);A(t)},[A,w]),D=(0,x.useCallback)(e=>{let t=new(fB())(e).dividedBy(w);P(t)},[P,w]),[L,F]=(0,x.useState)(!1);return(0,x.useEffect)(()=>{if(!v.isEqualTo(O)){let e=fH(v,o);S(e),"fiat"!==j&&R(e)}L||F(!0)},[v]),(0,x.useEffect)(()=>{L&&R(O)},[w]),(0,x.useEffect)(()=>{"sc"===j&&R(O)},[O]),(0,x.useEffect)(()=>{"fiat"===j&&D(M)},[M]),(0,y.jsxs)("div",{ref:t,className:(0,em.cx)("flex flex-col bg-white dark:bg-graydark-50","focus-within:ring ring-blue-500 dark:ring-blue-200","border",c?"border-red-500 dark:border-red-400":d?"border-green-500 dark:border-green-400":"border-gray-200 dark:border-graydark-200","rounded"),children:[(0,y.jsx)(fZ,{...m,"data-testid":"scInput",size:s,variant:"ghost",focus:"none",placeholder:fH(r,o),units:l,value:"NaN"!==E?E:"",decimalsLimit:o,allowNegativeValue:!1,onBlur:e=>{k(void 0),h&&h(e)},onFocus:e=>{k("sc"),p&&p(e)},onValueChange:e=>{N(e||"")}}),u&&g.siaCentral&&(0,y.jsx)(fZ,{...m,"data-testid":"fiatInput",size:s,variant:"ghost",focus:"none",value:"NaN"!==_?_:"",units:g.currency.label,decimalsLimit:i,allowNegativeValue:!1,placeholder:"".concat(g.currency.prefix).concat(w?w.times(r).toFixed(i):"0.42"),prefix:f||g.currency.prefix,onFocus:e=>{k("fiat"),p&&p(e)},onBlur:e=>{k(void 0),h&&h(e)},onValueChange:e=>{C(e||"")}})]})});function fG(e){return(null==e?void 0:e.replace(/,/g,"."))||""}function fX(e){let{children:t}=e;return(0,y.jsx)(ln,{content:t,children:(0,y.jsx)("div",{className:"relative items-center inline mx-1",children:(0,y.jsx)(t1,{color:"subtle",children:(0,y.jsx)(lo.RdX,{className:"scale-75"})})})})}function fJ(e){let{values:t,options:n,onChange:r}=e;return(0,y.jsx)("div",{className:"flex flex-wrap gap-1",children:n.map(e=>(0,y.jsx)(li,{variant:t.includes(e.value)?"active":"inactive",onClick:()=>{r(e.value)},children:e.label},e.value))})}function fQ(e){let{options:t,onClick:n,onRemove:r}=e;return(0,y.jsx)("div",{className:"flex flex-wrap gap-1",children:t.map(e=>(0,y.jsxs)(lA,{children:[(0,y.jsx)(li,{variant:"active",onClick:()=>{n&&n(e.value)},children:e.label}),(0,y.jsx)(li,{variant:"active",size:"small",onClick:()=>r(e.value),children:(0,y.jsx)(lo.PcV,{})})]},e.value))})}let f0=(0,em.j)(["font-sans","font-normal","tabular-nums","flex-shrink-0","rounded","flex items-center","bg-white dark:bg-graydark-200","hover:bg-gray-50 dark:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","autofill:bg-blue-100 autofill:dark:bg-blue-800","border","focus-within:z-10","focus-within:ring ring-blue-500 dark:ring-blue-200","text-gray-1100 dark:text-white","[&>select:disabled]:text-gray-600 [&>select:disabled]:dark:text-graydark-700"],{variants:{size:{small:"h-7 text-sm px-1",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]}},defaultVariants:{state:"default",size:"small"}}),f1=x.forwardRef((e,t)=>{let{size:n,state:r,icon:i,className:o,...a}=e;return(0,y.jsxs)("div",{className:f0({size:n,state:r,className:o}),children:[i,(0,y.jsx)("select",{ref:t,...a,className:"appearance-none flex-1 bg-transparent outline-none w-full h-full pl-1 pr-1"}),(0,y.jsx)(lo.Cp0,{className:"pointer-events-none scale-75"})]})}),f2=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)("option",{ref:t,...r,className:(0,em.cx)("bg-white dark:bg-graydark-200","text-gray-1100 dark:text-white",n)})}),f4=(0,em.j)(["bg-gray-300 dark:bg-graydark-300","relative","overflow-hidden","animate-pulse","rounded"]);function f3(e){let{className:t}=e;return(0,y.jsx)("div",{className:f4({className:t})})}let f5=(0,em.j)(["rounded-full flex-shrink-0"],{variants:{size:{default:"w-2 h-2"}},defaultVariants:{size:"default"}}),f6=x.forwardRef((e,t)=>{let{size:n,className:r,...i}=e;return(0,y.jsx)("div",{ref:t,className:f5({size:n,className:r}),...i})}),f8="Switch",[f7,f9]=(0,j.b)(f8),[he,ht]=f7(f8),hn=(0,x.forwardRef)((e,t)=>{let{__scopeSwitch:n,"aria-labelledby":r,name:i,checked:o,defaultChecked:a,required:s,disabled:l,value:u="on",onCheckedChange:c,...d}=e,[f,h]=(0,x.useState)(null),p=(0,k.e)(t,e=>h(e)),m=c8(f),v=(0,x.useRef)(!1),g=!f||!!f.closest("form"),[y=!1,b]=(0,C.T)({prop:o,defaultProp:a,onChange:c});return(0,x.createElement)(he,{scope:n,checked:y,disabled:l},(0,x.createElement)(O.WV.button,(0,w.Z)({type:"button",role:"switch","aria-checked":y,"aria-labelledby":r||m,"aria-required":s,"data-state":ho(y),"data-disabled":l?"":void 0,disabled:l,value:u},d,{ref:p,onClick:(0,_.M)(e.onClick,e=>{b(e=>!e),g&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})),g&&(0,x.createElement)(hi,{control:f,bubbles:!v.current,name:i,value:u,checked:y,required:s,disabled:l,style:{transform:"translateX(-100%)"}}))}),hr=(0,x.forwardRef)((e,t)=>{let{__scopeSwitch:n,...r}=e,i=ht("SwitchThumb",n);return(0,x.createElement)(O.WV.span,(0,w.Z)({"data-state":ho(i.checked),"data-disabled":i.disabled?"":void 0},r,{ref:t}))}),hi=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,o=(0,x.useRef)(null),a=dB(n),s=tc(t);return(0,x.useEffect)(()=>{let e=o.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked"),s=i.set;if(a!==n&&s){let t=new Event("click",{bubbles:r});s.call(e,n),e.dispatchEvent(t)}},[a,n,r]),(0,x.createElement)("input",(0,w.Z)({type:"checkbox","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function ho(e){return e?"checked":"unchecked"}let ha=(0,em.j)(["absolute left-0 rounded-full","transition-transform","bg-white dark:bg-graydark-500"],{variants:{size:{small:["w-3 h-3","translate-x-px","data-[state=checked]:translate-x-[9px]"],medium:["w-5 h-5","translate-x-0.5","data-[state=checked]:translate-x-[20px]"]}},defaultVariants:{size:"small"}}),hs=(0,em.j)(["select-none outline-none","relative inline-flex items-center justify-center","m-0 rounded-full","focus:ring ring-blue-500 dark:ring-blue-200","border","bg-gray-300 dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","disabled:cursor-default","enabled:data-[state=checked]:bg-green-600 dark:enabled:data-[state=checked]:bg-green-500","disabled:data-[state=checked]:bg-green-600/50 dark:disabled:data-[state=checked]:bg-green-500/50"],{variants:{size:{small:"w-6 h-4",medium:"w-11 h-6"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]}},defaultVariants:{size:"small",state:"default"}}),hl=(0,x.forwardRef)((e,t)=>{let{size:n,state:r,className:i,children:o,...a}=e;return(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(hn,{className:hs({size:n,state:r,className:i}),...a,ref:t,children:(0,y.jsx)(hr,{className:ha({size:n})})}),o&&(0,y.jsx)(t1,{color:a.disabled?"subtle":"contrast",children:o})]})}),hu=(0,x.forwardRef)((e,t)=>{let{children:n,...r}=e,i=x.Children.toArray(n),o=i.find(hf);if(o){let e=o.props.children,n=i.map(t=>t!==o?t:x.Children.count(e)>1?x.Children.only(null):(0,x.isValidElement)(e)?e.props.children:null);return(0,x.createElement)(hc,(0,w.Z)({},r,{ref:t}),(0,x.isValidElement)(e)?(0,x.cloneElement)(e,void 0,n):null)}return(0,x.createElement)(hc,(0,w.Z)({},r,{ref:t}),n)});hu.displayName="Slot";let hc=(0,x.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,x.isValidElement)(n)?(0,x.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r],a=/^on[A-Z]/.test(r);a?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:(0,k.F)(t,n.ref)}):x.Children.count(n)>1?x.Children.only(null):null});hc.displayName="SlotClone";let hd=({children:e})=>(0,x.createElement)(x.Fragment,null,e);function hf(e){return(0,x.isValidElement)(e)&&e.type===hd}let hh=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,x.forwardRef)((e,n)=>{let{asChild:r,...i}=e,o=r?hu:t;return(0,x.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,x.createElement)(o,(0,w.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),hp=(0,x.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,x.createElement)(hh.svg,(0,w.Z)({},o,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,x.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),hm="Popper",[hv,hg]=(0,j.b)(hm),[hy,hx]=hv(hm),hb=(0,x.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,o=hx("PopperAnchor",n),a=(0,x.useRef)(null),s=(0,k.e)(t,a);return(0,x.useEffect)(()=>{o.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,x.createElement)(hh.div,(0,w.Z)({},i,{ref:s}))}),hw="PopperContent",[hj,hk]=hv(hw),[hE,hS]=hv(hw,{hasParent:!1,positionUpdateFns:new Set}),h_=(0,x.forwardRef)((e,t)=>{var n,r,i,o,a,s,l,u,c;let{__scopePopper:d,side:f="bottom",sideOffset:h=0,align:p="center",alignOffset:m=0,arrowPadding:v=0,collisionBoundary:g=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:w=!1,avoidCollisions:j=!0,onPlaced:E,...S}=e,_=hx(hw,d),[C,O]=(0,x.useState)(null),T=(0,k.e)(t,e=>O(e)),[A,P]=(0,x.useState)(null),N=tc(A),R=null!==(n=null==N?void 0:N.width)&&void 0!==n?n:0,D=null!==(r=null==N?void 0:N.height)&&void 0!==r?r:0,L="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},F=Array.isArray(g)?g:[g],z=F.length>0,V={padding:L,boundary:F.filter(hM),altBoundary:z},{reference:Z,floating:I,strategy:B,x:H,y:U,placement:W,middlewareData:q,update:$}=ts({strategy:"fixed",placement:f+("center"!==p?"-"+p:""),whileElementsMounted:tr,middleware:[hT(),ez({mainAxis:h+D,alignmentAxis:m}),j?eZ({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?eI():void 0,...V}):void 0,A?tl({element:A,padding:v}):void 0,j?eR({...V}):void 0,{name:"size",options:c={...V,apply:({elements:e,availableWidth:t,availableHeight:n})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${n}px`)}},async fn(e){let t,n;let{placement:r,rects:i,platform:o,elements:a}=e,{apply:s,...l}=c,u=await eS(e,l),d=eg(r),f=ey(r);"top"===d||"bottom"===d?(t=d,n=f===(await (null==o.isRTL?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(n=d,t="end"===f?"top":"bottom");let h=eC(u.left,0),p=eC(u.right,0),m=eC(u.top,0),v=eC(u.bottom,0),g={availableHeight:i.floating.height-(["left","right"].includes(r)?2*(0!==m||0!==v?m+v:eC(u.top,u.bottom)):u[t]),availableWidth:i.floating.width-(["top","bottom"].includes(r)?2*(0!==h||0!==p?h+p:eC(u.left,u.right)):u[n])},y=await o.getDimensions(a.floating);null==s||s({...e,...g});let x=await o.getDimensions(a.floating);return y.width!==x.width||y.height!==x.height?{reset:{rects:!0}}:{}}},hA({arrowWidth:R,arrowHeight:D}),w?eF({strategy:"referenceHidden"}):void 0].filter(hO)});(0,M.b)(()=>{Z(_.anchor)},[Z,_.anchor]);let K=null!==H&&null!==U,[Y,G]=hP(W),X=(0,lh.W)(E);(0,M.b)(()=>{K&&(null==X||X())},[K,X]);let J=null===(i=q.arrow)||void 0===i?void 0:i.x,Q=null===(o=q.arrow)||void 0===o?void 0:o.y,ee=(null===(a=q.arrow)||void 0===a?void 0:a.centerOffset)!==0,[et,en]=(0,x.useState)();(0,M.b)(()=>{C&&en(window.getComputedStyle(C).zIndex)},[C]);let{hasParent:er,positionUpdateFns:ei}=hS(hw,d),eo=!er;(0,x.useLayoutEffect)(()=>{if(!eo)return ei.add($),()=>{ei.delete($)}},[eo,ei,$]),(0,M.b)(()=>{eo&&K&&Array.from(ei).reverse().forEach(e=>requestAnimationFrame(e))},[eo,K,ei]);let ea={"data-side":Y,"data-align":G,...S,ref:T,style:{...S.style,animation:K?void 0:"none",opacity:null!==(s=q.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,x.createElement)("div",{ref:I,"data-radix-popper-content-wrapper":"",style:{position:B,left:0,top:0,transform:K?`translate3d(${Math.round(H)}px, ${Math.round(U)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:et,"--radix-popper-transform-origin":[null===(l=q.transformOrigin)||void 0===l?void 0:l.x,null===(u=q.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},(0,x.createElement)(hj,{scope:d,placedSide:Y,onArrowChange:P,arrowX:J,arrowY:Q,shouldHideArrow:ee},eo?(0,x.createElement)(hE,{scope:d,hasParent:!0,positionUpdateFns:ei},(0,x.createElement)(hh.div,ea)):(0,x.createElement)(hh.div,ea)))}),hC={top:"bottom",right:"left",bottom:"top",left:"right"};function hO(e){return void 0!==e}function hM(e){return null!==e}let hT=()=>({name:"anchorCssProperties",fn(e){let{rects:t,elements:n}=e,{width:r,height:i}=t.reference;return n.floating.style.setProperty("--radix-popper-anchor-width",`${r}px`),n.floating.style.setProperty("--radix-popper-anchor-height",`${i}px`),{}}}),hA=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=hP(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(r=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+d/2,g=(null!==(o=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==o?o:0)+f/2,y="",x="";return"bottom"===h?(y=c?m:`${v}px`,x=`${-f}px`):"top"===h?(y=c?m:`${v}px`,x=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,x=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,x=c?m:`${g}px`),{data:{x:y,y:x}}}});function hP(e){let[t,n="center"]=e.split("-");return[t,n]}let hN=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,x.useState)(null);return(0,x.createElement)(hy,{scope:t,anchor:r,onAnchorChange:i},n)},hR=(0,x.forwardRef)((e,t)=>{var n;let{container:r=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...i}=e;return r?to.createPortal((0,x.createElement)(hh.div,(0,w.Z)({},i,{ref:t})),r):null}),hD="dismissableLayer.update",hL=(0,x.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hF=(0,x.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,x.useContext)(hL),[f,h]=(0,x.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,x.useState)({}),v=(0,k.e)(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),j=f?g.indexOf(f):-1,E=d.layersWithOutsidePointerEventsDisabled.size>0,S=j>=b,C=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,lh.W)(e),r=(0,x.useRef)(!1),i=(0,x.useRef)(()=>{});return(0,x.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function o(){hV("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=o,t.addEventListener("click",i.current,{once:!0})):o()}r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));!S||n||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),O=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,lh.W)(e),r=(0,x.useRef)(!1);return(0,x.useEffect)(()=>{let e=e=>{e.target&&!r.current&&hV("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));n||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==u||u())},p);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,lh.W)(e);(0,x.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{let t=j===d.layers.size-1;t&&(null==o||o(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,x.useEffect)(()=>{if(f)return i&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(r=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),hz(),()=>{i&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=r)}},[f,p,i,d]),(0,x.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),hz())},[f,d]),(0,x.useEffect)(()=>{let e=()=>m({});return document.addEventListener(hD,e),()=>document.removeEventListener(hD,e)},[]),(0,x.createElement)(hh.div,(0,w.Z)({},c,{ref:v,style:{pointerEvents:E?S?"auto":"none":void 0,...e.style},onFocusCapture:(0,_.M)(e.onFocusCapture,O.onFocusCapture),onBlurCapture:(0,_.M)(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:(0,_.M)(e.onPointerDownCapture,C.onPointerDownCapture)}))});function hz(){let e=new CustomEvent(hD);document.dispatchEvent(e)}function hV(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&i.addEventListener(e,t,{once:!0}),r)?i&&(0,to.flushSync)(()=>i.dispatchEvent(o)):i.dispatchEvent(o)}let hZ="HoverCard",[hI,hB]=(0,j.b)(hZ,[hg]),hH=hg(),[hU,hW]=hI(hZ),hq=(0,x.forwardRef)((e,t)=>{let{__scopeHoverCard:n,...r}=e,i=hW("HoverCardTrigger",n),o=hH(n);return(0,x.createElement)(hb,(0,w.Z)({asChild:!0},o),(0,x.createElement)(hh.a,(0,w.Z)({"data-state":i.open?"open":"closed"},r,{ref:t,onPointerEnter:(0,_.M)(e.onPointerEnter,hQ(i.onOpen)),onPointerLeave:(0,_.M)(e.onPointerLeave,hQ(i.onClose)),onFocus:(0,_.M)(e.onFocus,i.onOpen),onBlur:(0,_.M)(e.onBlur,i.onClose),onTouchStart:(0,_.M)(e.onTouchStart,e=>e.preventDefault())})))}),h$="HoverCardPortal",[hK,hY]=hI(h$,{forceMount:void 0}),hG="HoverCardContent",hX=(0,x.forwardRef)((e,t)=>{let n=hY(hG,e.__scopeHoverCard),{forceMount:r=n.forceMount,...i}=e,o=hW(hG,e.__scopeHoverCard);return(0,x.createElement)(T.z,{present:r||o.open},(0,x.createElement)(hJ,(0,w.Z)({"data-state":o.open?"open":"closed"},i,{onPointerEnter:(0,_.M)(e.onPointerEnter,hQ(o.onOpen)),onPointerLeave:(0,_.M)(e.onPointerLeave,hQ(o.onClose)),ref:t})))}),hJ=(0,x.forwardRef)((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,...l}=e,u=hW(hG,n),c=hH(n),d=(0,x.useRef)(null),f=(0,k.e)(t,d),[h,p]=(0,x.useState)(!1);return(0,x.useEffect)(()=>{if(h){let e=document.body;return i=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=i,e.style.webkitUserSelect=i}}},[h]),(0,x.useEffect)(()=>{if(d.current){let e=()=>{p(!1),u.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;let t=(null===(e=document.getSelection())||void 0===e?void 0:e.toString())!=="";t&&(u.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!1}}},[u.isPointerDownOnContentRef,u.hasSelectionRef]),(0,x.useEffect)(()=>{if(d.current){let e=function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}(d.current);e.forEach(e=>e.setAttribute("tabindex","-1"))}}),(0,x.createElement)(hF,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:s,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:(0,_.M)(a,e=>{e.preventDefault()}),onDismiss:u.onDismiss},(0,x.createElement)(h_,(0,w.Z)({},c,l,{onPointerDown:(0,_.M)(l.onPointerDown,e=>{e.currentTarget.contains(e.target)&&p(!0),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!0}),ref:f,style:{...l.style,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)",userSelect:h?"text":void 0,WebkitUserSelect:h?"text":void 0}})))});function hQ(e){return t=>"touch"===t.pointerType?void 0:e()}let h0=e=>{let{__scopeHoverCard:t,children:n,open:r,defaultOpen:i,onOpenChange:o,openDelay:a=700,closeDelay:s=300}=e,l=hH(t),u=(0,x.useRef)(0),c=(0,x.useRef)(0),d=(0,x.useRef)(!1),f=(0,x.useRef)(!1),[h=!1,p]=(0,C.T)({prop:r,defaultProp:i,onChange:o}),m=(0,x.useCallback)(()=>{clearTimeout(c.current),u.current=window.setTimeout(()=>p(!0),a)},[a,p]),v=(0,x.useCallback)(()=>{clearTimeout(u.current),d.current||f.current||(c.current=window.setTimeout(()=>p(!1),s))},[s,p]),g=(0,x.useCallback)(()=>p(!1),[p]);return(0,x.useEffect)(()=>()=>{clearTimeout(u.current),clearTimeout(c.current)},[]),(0,x.createElement)(hU,{scope:t,open:h,onOpenChange:p,onOpen:m,onClose:v,onDismiss:g,hasSelectionRef:d,isPointerDownOnContentRef:f},(0,x.createElement)(hN,l,n))},h1=e=>{let{__scopeHoverCard:t,forceMount:n,children:r,container:i}=e,o=hW(h$,t);return(0,x.createElement)(hK,{scope:t,forceMount:n},(0,x.createElement)(T.z,{present:n||o.open},(0,x.createElement)(hR,{asChild:!0,container:i},r)))},h2=(0,em.j)(["relative","z-10","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),h4=(0,em.cx)(t4(),"max-w-sm","py-0.5","px-1"),h3={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},h5=x.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o}=e,{className:a,...s}=o||{},{open:l,onOpenChange:u}=le({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,y.jsxs)(h0,{open:l,onOpenChange:u,...i,children:[n&&(0,y.jsx)(hq,{asChild:!0,children:n}),(0,y.jsx)(nC,{children:l?(0,y.jsx)(h1,{forceMount:!0,children:(0,y.jsx)(hX,{asChild:!0,forceMount:!0,ref:t,...s,children:(0,y.jsx)(s9.div,{variants:h3,initial:"init",animate:"show",exit:"exit",className:h2(),children:(0,y.jsx)("div",{className:(0,em.cx)(h4,a),children:r})})})}):null})]})});function h6(e,t=[]){let n=[],r=()=>{let t=n.map(e=>(0,x.createContext)(e));return function(n){let r=(null==n?void 0:n[e])||t;return(0,x.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=(0,x.createContext)(r),o=n.length;function a(t){let{scope:n,children:r,...a}=t,s=(null==n?void 0:n[e][o])||i,l=(0,x.useMemo)(()=>a,Object.values(a));return(0,x.createElement)(s.Provider,{value:l},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){let s=(null==a?void 0:a[e][o])||i,l=(0,x.useContext)(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e),o=i[`__scope${r}`];return{...t,...o}},{});return(0,x.useMemo)(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}function h8(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function h7(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function h9(...e){return(0,x.useCallback)(h7(...e),e)}let pe=(0,x.forwardRef)((e,t)=>{let{children:n,...r}=e,i=x.Children.toArray(n),o=i.find(pr);if(o){let e=o.props.children,n=i.map(t=>t!==o?t:x.Children.count(e)>1?x.Children.only(null):(0,x.isValidElement)(e)?e.props.children:null);return(0,x.createElement)(pt,(0,w.Z)({},r,{ref:t}),(0,x.isValidElement)(e)?(0,x.cloneElement)(e,void 0,n):null)}return(0,x.createElement)(pt,(0,w.Z)({},r,{ref:t}),n)});pe.displayName="Slot";let pt=(0,x.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,x.isValidElement)(n)?(0,x.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r],a=/^on[A-Z]/.test(r);a?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:t?h7(t,n.ref):n.ref}):x.Children.count(n)>1?x.Children.only(null):null});pt.displayName="SlotClone";let pn=({children:e})=>(0,x.createElement)(x.Fragment,null,e);function pr(e){return(0,x.isValidElement)(e)&&e.type===pn}let pi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,x.forwardRef)((e,n)=>{let{asChild:r,...i}=e,o=r?pe:t;return(0,x.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,x.createElement)(o,(0,w.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function po(e){let t=(0,x.useRef)(e);return(0,x.useEffect)(()=>{t.current=e}),(0,x.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}let pa=(null==globalThis?void 0:globalThis.document)?x.useLayoutEffect:()=>{},ps=e=>{let{present:t,children:n}=e,r=function(e){var t;let[n,r]=(0,x.useState)(),i=(0,x.useRef)({}),o=(0,x.useRef)(e),a=(0,x.useRef)("none"),s=e?"mounted":"unmounted",[l,u]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,x.useReducer)((e,n)=>{let r=t[e][n];return null!=r?r:e},s));return(0,x.useEffect)(()=>{let e=pl(i.current);a.current="mounted"===l?e:"none"},[l]),pa(()=>{let t=i.current,n=o.current,r=n!==e;if(r){let r=a.current,i=pl(t);e?u("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?u("UNMOUNT"):n&&r!==i?u("ANIMATION_OUT"):u("UNMOUNT"),o.current=e}},[e,u]),pa(()=>{if(n){let e=e=>{let t=pl(i.current),r=t.includes(e.animationName);e.target===n&&r&&(0,to.flushSync)(()=>u("ANIMATION_END"))},t=e=>{e.target===n&&(a.current=pl(i.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}u("ANIMATION_END")},[n,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,x.useCallback)(e=>{e&&(i.current=getComputedStyle(e)),r(e)},[])}}(t),i="function"==typeof n?n({present:r.isPresent}):x.Children.only(n),o=h9(r.ref,i.ref),a="function"==typeof n;return a||r.isPresent?(0,x.cloneElement)(i,{ref:o}):null};function pl(e){return(null==e?void 0:e.animationName)||"none"}ps.displayName="Presence";let pu=b["useId".toString()]||(()=>void 0),pc=0;function pd(e){let t=e+"CollectionProvider",[n,r]=h6(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=x.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(a,n),s=h9(t,i.collectionRef);return x.createElement(pe,{ref:s},r)}),l=e+"CollectionItemSlot",u="data-radix-collection-item",c=x.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=x.useRef(null),s=h9(t,a),c=o(l,n);return x.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),x.createElement(pe,{[u]:"",ref:s},r)});return[{Provider:e=>{let{scope:t,children:n}=e,r=x.useRef(null),o=x.useRef(new Map).current;return x.createElement(i,{scope:t,itemMap:o,collectionRef:r},n)},Slot:s,ItemSlot:c},function(t){let n=o(e+"CollectionConsumer",t),r=x.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()),i=r.sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return i},[n.collectionRef,n.itemMap]);return r},r]}let pf="dismissableLayer.update",ph=(0,x.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pp=(0,x.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,x.useContext)(ph),[f,h]=(0,x.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,x.useState)({}),v=h9(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),j=f?g.indexOf(f):-1,k=d.layersWithOutsidePointerEventsDisabled.size>0,E=j>=b,S=function(e,t=null==globalThis?void 0:globalThis.document){let n=po(e),r=(0,x.useRef)(!1),i=(0,x.useRef)(()=>{});return(0,x.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function o(){pv("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=o,t.addEventListener("click",i.current,{once:!0})):o()}r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));!E||n||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),_=function(e,t=null==globalThis?void 0:globalThis.document){let n=po(e),r=(0,x.useRef)(!1);return(0,x.useEffect)(()=>{let e=e=>{e.target&&!r.current&&pv("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));n||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==u||u())},p);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=po(e);(0,x.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{let t=j===d.layers.size-1;t&&(null==i||i(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,x.useEffect)(()=>{if(f)return r&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(o=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),pm(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=o)}},[f,p,r,d]),(0,x.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),pm())},[f,d]),(0,x.useEffect)(()=>{let e=()=>m({});return document.addEventListener(pf,e),()=>document.removeEventListener(pf,e)},[]),(0,x.createElement)(pi.div,(0,w.Z)({},c,{ref:v,style:{pointerEvents:k?E?"auto":"none":void 0,...e.style},onFocusCapture:h8(e.onFocusCapture,_.onFocusCapture),onBlurCapture:h8(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:h8(e.onPointerDownCapture,S.onPointerDownCapture)}))});function pm(){let e=new CustomEvent(pf);document.dispatchEvent(e)}function pv(e,t,n,{discrete:r}){var i,o;let a=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?(i=a,o=s,i&&(0,to.flushSync)(()=>i.dispatchEvent(o))):a.dispatchEvent(s)}(e,t)=>(0,x.createElement)(pi.span,(0,w.Z)({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));let pg="NavigationMenu",[py,px,pb]=pd(pg),[pw,pj,pk]=pd(pg),[pE,pS]=h6(pg,[pb,pk]),[p_,pC]=pE(pg),[pO,pM]=pE(pg),[pT,pA]=pE("NavigationMenuItem"),pP=((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pC("NavigationMenuIndicator",n),o=px(n),[a,s]=(0,x.useState)(null),[l,u]=(0,x.useState)(null),c="horizontal"===i.orientation,d=!!i.value;(0,x.useEffect)(()=>{var e;let t=o(),n=null===(e=t.find(e=>e.value===i.value))||void 0===e?void 0:e.ref.current;n&&s(n)},[o,i.value]);let f=()=>{a&&u({size:c?a.offsetWidth:a.offsetHeight,offset:c?a.offsetLeft:a.offsetTop})};return pz(a,f),pz(i.indicatorTrack,f),l?(0,x.createElement)(pi.div,(0,w.Z)({"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":i.orientation},r,{ref:t,style:{position:"absolute",...c?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}})):null},"NavigationMenuContent"),pN=((e,t)=>{let n=pC(pP,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:i}=n;return pa(()=>{r(e.value,{ref:t,...e})},[e,t,r]),pa(()=>()=>i(e.value),[e.value,i]),null},"navigationMenu.rootContentDismiss"),pR=(0,x.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,value:r,triggerRef:i,focusProxyRef:o,wasEscapeCloseRef:a,onRootContentClose:s,onContentFocusOutside:l,...u}=e,c=pC(pP,n),d=(0,x.useRef)(null),f=h9(d,t),h=function(e,t){return`${e}-trigger-${t}`}(c.baseId,r),p=function(e,t){return`${e}-content-${t}`}(c.baseId,r),m=px(n),v=(0,x.useRef)(null),{onItemDismiss:g}=c;(0,x.useEffect)(()=>{let e=d.current;if(c.isRootMenu&&e){let t=()=>{var t;g(),s(),e.contains(document.activeElement)&&(null===(t=i.current)||void 0===t||t.focus())};return e.addEventListener(pN,t),()=>e.removeEventListener(pN,t)}},[c.isRootMenu,e.value,i,g,s]);let y=(0,x.useMemo)(()=>{let e=m(),t=e.map(e=>e.value);"rtl"===c.dir&&t.reverse();let n=t.indexOf(c.value),i=t.indexOf(c.previousValue),o=r===c.value,a=i===t.indexOf(r);if(!o&&!a)return v.current;let s=(()=>{if(n!==i){if(o&&-1!==i)return n>i?"from-end":"from-start";if(a&&-1!==n)return n>i?"to-start":"to-end"}return null})();return v.current=s,s},[c.previousValue,c.value,c.dir,m,r]);return(0,x.createElement)(pD,{asChild:!0},(0,x.createElement)(pp,(0,w.Z)({id:p,"aria-labelledby":h,"data-motion":y,"data-orientation":c.orientation},u,{ref:f,onDismiss:()=>{var e;let t=new Event(pN,{bubbles:!0,cancelable:!0});null===(e=d.current)||void 0===e||e.dispatchEvent(t)},onFocusOutside:h8(e.onFocusOutside,e=>{var t;l();let n=e.target;null!==(t=c.rootNavigationMenu)&&void 0!==t&&t.contains(n)&&e.preventDefault()}),onPointerDownOutside:h8(e.onPointerDownOutside,e=>{var t;let n=e.target,r=m().some(e=>{var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(n)}),i=c.isRootMenu&&(null===(t=c.viewport)||void 0===t?void 0:t.contains(n));(r||i||!c.isRootMenu)&&e.preventDefault()}),onKeyDown:h8(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey,n="Tab"===e.key&&!t;if(n){let t=function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}(e.currentTarget),n=document.activeElement,i=t.findIndex(e=>e===n),a=e.shiftKey,s=a?t.slice(0,i).reverse():t.slice(i+1,t.length);if(pF(s))e.preventDefault();else{var r;null===(r=o.current)||void 0===r||r.focus()}}}),onEscapeKeyDown:h8(e.onEscapeKeyDown,e=>{a.current=!0})})))}),pD=((e,t)=>{let{__scopeNavigationMenu:n,children:r,...i}=e,o=pC("NavigationMenuViewport",n),a=h9(t,o.onViewportChange),s=pM(pP,e.__scopeNavigationMenu),[l,u]=(0,x.useState)(null),[c,d]=(0,x.useState)(null),f=l?(null==l?void 0:l.width)+"px":void 0,h=l?(null==l?void 0:l.height)+"px":void 0,p=!!o.value,m=p?o.value:o.previousValue;return pz(c,()=>{c&&u({width:c.offsetWidth,height:c.offsetHeight})}),(0,x.createElement)(pi.div,(0,w.Z)({"data-state":function(e){return e?"open":"closed"}(p),"data-orientation":o.orientation},i,{ref:a,style:{pointerEvents:!p&&o.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":f,"--radix-navigation-menu-viewport-height":h,...i.style},onPointerEnter:h8(e.onPointerEnter,o.onContentEnter),onPointerLeave:h8(e.onPointerLeave,function(e){return t=>"mouse"===t.pointerType?e(t):void 0}(o.onContentLeave))}),Array.from(s.items).map(([e,{ref:t,forceMount:n,...r}])=>{let i=m===e;return(0,x.createElement)(ps,{key:e,present:n||i},(0,x.createElement)(pR,(0,w.Z)({},r,{ref:h7(t,e=>{i&&e&&d(e)})})))}))},(0,x.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pC("FocusGroup",n);return(0,x.createElement)(pw.Provider,{scope:n},(0,x.createElement)(pw.Slot,{scope:n},(0,x.createElement)(pi.div,(0,w.Z)({dir:i.dir},r,{ref:t}))))})),pL=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"];(e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pj(n),o=pC("FocusGroupItem",n);return(0,x.createElement)(pw.ItemSlot,{scope:n},(0,x.createElement)(pi.button,(0,w.Z)({},r,{ref:t,onKeyDown:h8(e.onKeyDown,e=>{let t=["Home","End",...pL].includes(e.key);if(t){let t=i().map(e=>e.ref.current),n="rtl"===o.dir?"ArrowRight":"ArrowLeft";if([n,"ArrowUp","End"].includes(e.key)&&t.reverse(),pL.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>pF(t)),e.preventDefault()}})})))};function pF(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function pz(e,t){let n=po(t);pa(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var pV=n(38617);let pZ=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(d8,{...r,ref:t,className:(0,em.cx)("select-none flex items-center rounded cursor-pointer","focus:ring ring-blue-500 dark:ring-blue-200","text-gray-700 dark:text-graydark-700","data-[state=checked]:text-gray-1100 data-[state=checked]:dark:text-white",n)})});function pI(e){let{className:t,tooltipClassName:n,tabIndex:r}=e,{theme:i,setTheme:o}=(0,pV.F)();return(0,y.jsxs)(d6,{value:i,tabIndex:r,className:(0,em.cx)("flex gap-4",t),onValueChange:e=>o(e),children:[(0,y.jsx)(pZ,{value:"system",children:(0,y.jsx)(ln,{className:n,sideOffset:16,content:"System",children:(0,y.jsx)(lo.$Iz,{})})}),(0,y.jsx)(pZ,{value:"light",children:(0,y.jsx)(ln,{className:n,sideOffset:16,content:"Light",children:(0,y.jsx)(lo.JaG,{})})}),(0,y.jsx)(pZ,{value:"dark",children:(0,y.jsx)(ln,{className:n,sideOffset:16,content:"Dark",children:(0,y.jsx)(lo.osk,{})})})]})}var pB=n(74424);function pH(e){let{title:t,children:n,rootClassName:r,className:i,message:o,showBorderInactive:a,...s}=e,{getRootProps:l,getInputProps:u,isDragActive:c}=(0,pB.uI)(s);return(0,y.jsxs)("div",{...l(),className:(0,em.cx)("outline-none",r),children:[(0,y.jsxs)("div",{className:(0,em.cx)(c?"z-20":"","absolute","top-0","left-0","w-full","h-full","pointer-events-none","rounded","p-4","flex justify-center items-center text-center","border-2 border-dashed",a?["border-green-600 dark:border-green-500","hover:border-green-700 hover:dark:border-green-500"]:"border-transparent",c?["border-green-500 dark:border-green-600 bg-green-100/20 dark:bg-green-100/20","hover:border-green-500 hover:dark:border-green-600 hover:bg-green-100/20 hover:dark:bg-green-100/20"]:"",i),children:[(0,y.jsx)("input",{...u()}),o&&(0,y.jsx)(t2,{size:"14",children:t||"Drop your files here or click to to open the file picker."})]}),n]})}var pU=n(14582),pW=n(63739),pq=n(13980),p$=n.n(pq),pK=n(72779),pY=n.n(pK),pG=n(47440),pX=n(59309),pJ=n(19067),pQ=n(71220),p0=n(28142);function p1(e){return"bandwidth"in e?e.bandwidth():0}var p2=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function p4(){return(p4=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,p2),g=null!=m?m:(0,pQ.Z)(r,void 0===f?10:f),y=(null!=p?p:0)+p1(r)/2,b=g.map(function(e,t){var n,o=(null!=(n=(0,p0.Z)(r(e)))?n:0)+y;return{index:t,from:new pJ.Z({x:0,y:o}),to:new pJ.Z({x:i,y:o})}});return x.createElement(pX.Z,{className:pY()("visx-rows",c),top:void 0===t?0:t,left:void 0===n?0:n},d?d({lines:b}):b.map(function(e){var t=e.from,n=e.to,r=e.index;return x.createElement(pG.default,p4({key:"row-line-"+r,from:t,to:n,stroke:a,strokeWidth:l,strokeDasharray:u,style:h},v))}))}p3.propTypes={tickValues:p$().array,width:p$().number.isRequired};var p5=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function p6(){return(p6=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,p5),g=null!=p?p:(0,pQ.Z)(r,void 0===d?10:d),y=(null!=h?h:0)+p1(r)/2,b=g.map(function(e,t){var n,o=(null!=(n=(0,p0.Z)(r(e)))?n:0)+y;return{index:t,from:new pJ.Z({x:o,y:0}),to:new pJ.Z({x:o,y:i})}});return x.createElement(pX.Z,{className:pY()("visx-columns",c),top:void 0===t?0:t,left:void 0===n?0:n},m?m({lines:b}):b.map(function(e){var t=e.from,n=e.to,r=e.index;return x.createElement(pG.default,p6({key:"column-line-"+r,from:t,to:n,stroke:a,strokeWidth:l,strokeDasharray:u,style:f},v))}))}p8.propTypes={tickValues:p$().array,height:p$().number.isRequired};var p7=n(64183),p9=n(8597);function me(e){var t=e.id,n=e.width,r=e.height,i=e.children;return x.createElement("defs",null,x.createElement("pattern",{id:t,width:n,height:r,patternUnits:"userSpaceOnUse"},i))}me.propTypes={id:p$().string.isRequired,width:p$().number.isRequired,height:p$().number.isRequired,children:p$().node.isRequired};var mt={horizontal:"horizontal",vertical:"vertical",diagonal:"diagonal",diagonalRightToLeft:"diagonalRightToLeft"};function mn(e){var t=e.id,n=e.width,r=e.height,i=e.stroke,o=e.strokeWidth,a=e.strokeDasharray,s=e.strokeLinecap,l=void 0===s?"square":s,u=e.shapeRendering,c=void 0===u?"auto":u,d=e.orientation,f=void 0===d?["vertical"]:d,h=e.background,p=e.className,m=Array.isArray(f)?f:[f];return x.createElement(me,{id:t,width:n,height:r},!!h&&x.createElement("rect",{className:pY()("visx-pattern-line-background"),width:n,height:r,fill:h}),m.map(function(e,n){return x.createElement("path",{key:"visx-"+t+"-line-"+e+"-"+n,className:pY()("visx-pattern-line",p),d:function(e){var t=e.height;switch(e.orientation){case mt.horizontal:return"M 0,"+t/2+" l "+t+",0";case mt.diagonal:return"M 0,"+t+" l "+t+","+-t+" M "+-t/4+","+t/4+" l "+t/2+","+-t/2+"\n M "+3/4*t+","+5/4*t+" l "+t/2+","+-t/2;case mt.diagonalRightToLeft:return"M 0,0 l "+t+","+t+"\n M "+-t/4+","+3/4*t+" l "+t/2+","+t/2+"\n M "+3/4*t+","+-t/4+" l "+t/2+","+t/2;case mt.vertical:default:return"M "+t/2+", 0 l 0, "+t}}({orientation:e,height:r}),stroke:i,strokeWidth:o,strokeDasharray:a,strokeLinecap:l,shapeRendering:c})}))}mn.propTypes={id:p$().string.isRequired,width:p$().number.isRequired,height:p$().number.isRequired,className:p$().string,background:p$().string,stroke:p$().string,strokeWidth:p$().oneOfType([p$().number,p$().string]),strokeDasharray:p$().oneOfType([p$().string,p$().number]),strokeLinecap:p$().oneOf(["square","butt","round","inherit"]),shapeRendering:p$().oneOfType([p$().string,p$().number]),orientation:p$().array};var mr=["tooltipOpen"];function mi(){return(mi=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mo);return x.createElement("div",ma({ref:t,className:pY()("visx-tooltip",n),style:ma({top:null==r||null==l?r:r+l,left:null==i||null==a?i:i+a},m&&{position:"absolute"},!h&&c)},v),d)});function mu(){return(mu=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mp),g=!1,y=!1;if(u&&l){var b=void 0===r?0:r,w=void 0===f?0:f;if(l.width){var j=b+o+u.width-l.width,k=u.width-b-o;g=j>0&&j>k}else{var E=b+o+u.width-window.innerWidth,S=u.width-b-o;g=E>0&&E>S}if(l.height){var _=w+s+u.height-l.height,C=u.height-w-s;y=_>0&&_>C}else y=w+s+u.height>window.innerHeight;b=g?b-u.width-o:b+o,w=y?w-u.height-s:w+s,t="translate("+(b=Math.round(b))+"px, "+(w=Math.round(w))+"px)"}return x.createElement(ml,mm({ref:m,style:mm({left:0,top:0,transform:t},!p&&d)},v),x.createElement(mh,{value:{isFlippedVertically:!y,isFlippedHorizontally:!g}},n))}mv.propTypes={nodeRef:p$().oneOfType([p$().string,p$().func,p$().object])};var mg=((km=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={rect:void 0,parentRect:void 0},n.nodeRef=x.createRef(),n.getRects=n.getRects.bind(function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,mc(t,e);var n=t.prototype;return n.componentDidMount=function(){var e,t=this;this.node=null!=(e=this.nodeRef)&&e.current?this.nodeRef.current:to.findDOMNode(this),this.setState(function(){return t.getRects()})},n.getRects=function(){if(!this.node)return this.state;var e=this.node,t=e.parentNode;return{rect:e.getBoundingClientRect?e.getBoundingClientRect():md,parentRect:null!=t&&t.getBoundingClientRect?t.getBoundingClientRect():md}},n.render=function(){return x.createElement(mv,mu({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},t}(x.PureComponent)).displayName="withBoundingRects("+(mv.displayName||"")+")",km),my=n(99985);function mx(e,t){if("invert"in e&&void 0!==e.invert)return e.invert(t).valueOf();var n=e.range(),r=n[0],i=n[1],o=0,a=("step"in e&&void 0!==e.step?e.step():1)*(i-r)/Math.abs(i-r);if(a>0)for(;t>r+a*(o+1);)o+=1;else for(;t0?Math.min(e.dx,t.bounds.x1-a):Math.max(e.dx,t.bounds.x0-r),u=e.dy>0?Math.min(e.dy,t.bounds.y1-s):Math.max(e.dy,t.bounds.y0-i);return mO({},t,{isBrushing:!0,extent:mO({},t.extent,{x0:r+l,x1:a+l,y0:i+u,y1:s+u})})})},t.selectionDragEnd=function(){var e=t.props,n=e.updateBrush,r=e.onBrushEnd,i=e.onMoveSelectionChange;e.isControlled||n(function(e){var t=mO({},e,{isBrushing:!1,start:mO({},e.start,{x:Math.min(e.extent.x0,e.extent.x1),y:Math.min(e.extent.y0,e.extent.y1)}),end:mO({},e.end,{x:Math.max(e.extent.x0,e.extent.x1),y:Math.max(e.extent.y0,e.extent.y1)})});return r&&r(t),t}),i&&i()},t}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,mM(t,e),t.prototype.render=function(){var e=this.props,t=e.width,n=e.height,r=e.stageWidth,i=e.stageHeight,o=e.brush,a=e.disableDraggingSelection,s=e.onMouseLeave,l=e.onMouseMove,u=e.onMouseUp,c=e.onClick,d=e.selectedBoxStyle,f=e.isControlled,h=e.isDragInProgress;return x.createElement(my.Z,{width:t,height:n,resetOnStart:!0,onDragStart:this.selectionDragStart,onDragMove:this.selectionDragMove,onDragEnd:this.selectionDragEnd,isDragging:f?h:void 0},function(e){var h=e.isDragging,p=e.dragStart,m=e.dragEnd,v=e.dragMove;return x.createElement("g",null,h&&x.createElement("rect",{width:r,height:i,fill:"transparent",onPointerUp:f?void 0:m,onPointerMove:v,onPointerLeave:f?void 0:m,style:mT}),x.createElement("rect",mO({x:Math.min(o.extent.x0,o.extent.x1),y:Math.min(o.extent.y0,o.extent.y1),width:t,height:n,className:"visx-brush-selection",onPointerDown:a?void 0:p,onPointerLeave:function(e){s&&s(e)},onPointerMove:function(e){v(e),l&&l(e)},onPointerUp:function(e){f||m(e),u&&u(e)},onClick:function(e){c&&c(e)},style:{pointerEvents:o.isBrushing||o.activeHandle?"none":"all",cursor:a?void 0:"move"}},d)))})},t}(x.Component);function mP(){return(mP=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Math.min(l,e.bounds.x1-o):Math.max(l,e.bounds.x0-n),c=u>0?Math.min(u,e.bounds.y1-a):Math.max(u,e.bounds.y0-r);return mP({},e,{isBrushing:!0,extent:mP({},e.extent,{x0:n+s,y0:r+c,x1:o+s,y1:a+c})})}),"select"===i&&n.updateBrush(function(e){var t=e.start,r=t.x,i=t.y,o={x:Math.min(Math.max(r+l,e.bounds.x0),e.bounds.x1),y:Math.min(Math.max(i+u,e.bounds.y0),e.bounds.y1)},a=n.getExtent(s,o);return mP({},e,{end:o,extent:a})})}},n.getExtent=function(e,t){var r=n.props,i=r.brushDirection,o=r.width,a=r.height;return{x0:"vertical"===i?0:Math.min(e.x||0,t.x||0),x1:"vertical"===i?o:Math.max(e.x||0,t.x||0),y0:"horizontal"===i?0:Math.min(e.y||0,t.y||0),y1:"horizontal"===i?a:Math.max(e.y||0,t.y||0)}},n.handleDragStart=function(e){var t=n.props,r=t.onBrushStart,i=t.left,o=t.top,a=t.inheritedMargin,s=t.useWindowMoveEvents,l=null!=a&&a.left?a.left:0,u=null!=a&&a.top?a.top:0,c={x:(e.x||0)+e.dx-i-l,y:(e.y||0)+e.dy-o-u},d=mP({},c);r&&r(c),n.updateBrush(function(t){return mP({},t,{start:c,end:d,extent:{x0:-1,x1:-1,y0:-1,y1:-1},isBrushing:!0,brushingType:"select",brushPageOffset:s?mw(e.event):void 0})})},n.handleBrushStart=function(e){var t=n.props,r=t.onBrushStart,i=t.left,o=t.top,a=t.inheritedMargin;if(r){var s=null!=a&&a.left?a.left:0,l=null!=a&&a.top?a.top:0;r({x:(e.x||0)+e.dx-i-s,y:(e.y||0)+e.dy-o-l})}},n.handleDragMove=function(e){var t=n.props,r=t.left,i=t.top,o=t.inheritedMargin,a=t.useWindowMoveEvents;if(e.isDragging&&!a){var s=(null==o?void 0:o.left)||0,l=(null==o?void 0:o.top)||0,u={x:(e.x||0)+e.dx-r-s,y:(e.y||0)+e.dy-i-l};n.updateBrush(function(e){var t=e.start,r=n.getExtent(t,u);return mP({},e,{end:u,extent:r})})}},n.handleDragEnd=function(){var e=n.props,t=e.onBrushEnd,r=e.resetOnEnd;e.useWindowMoveEvents||n.updateBrush(function(e){var i=e.extent,o=mP({},e,{start:{x:i.x0,y:i.y0},end:{x:i.x1,y:i.y1},isBrushing:!1,brushingType:void 0,activeHandle:null});return t&&t(o),r&&n.reset(),o})},n.getBrushWidth=function(){var e=n.state.extent,t=e.x0,r=e.x1;return Math.max(Math.max(t,r)-Math.min(t,r),0)},n.getBrushHeight=function(){var e=n.state.extent,t=e.y1,r=e.y0;return Math.max(Math.max(r,t)-Math.min(r,t),0)},n.handles=function(){var e=n.props.handleSize,t=n.state.extent,r=t.x0,i=t.x1,o=t.y0,a=t.y1,s=e/2,l=n.getBrushWidth(),u=n.getBrushHeight();return{top:{x:r-s,y:o-s,height:e,width:l+e},bottom:{x:r-s,y:a-s,height:e,width:l+e},right:{x:i-s,y:o-s,height:u+e,width:e},left:{x:r-s,y:o-s,height:u+e,width:e}}},n.corners=function(){var e=n.props.handleSize,t=n.state.extent,r=t.x0,i=t.x1,o=t.y0,a=t.y1,s=e/2;return{topLeft:{x:Math.min(r,i)-s,y:Math.min(o,a)-s,width:e,height:e},topRight:{x:Math.max(r,i)-s,y:Math.min(o,a)-s,width:e,height:e},bottomLeft:{x:Math.min(r,i)-s,y:Math.max(o,a)-s,width:e,height:e},bottomRight:{x:Math.max(r,i)-s,y:Math.max(o,a)-s,width:e,height:e}}},n.updateBrush=function(e){var t=n.props.onChange;n.setState(e,function(){t&&t(n.state)})},n.reset=function(){var e=n.props,t=e.width,r=e.height;n.updateBrush(function(){return{start:{x:0,y:0},end:{x:0,y:0},extent:{x0:-1,x1:-1,y0:-1,y1:-1},bounds:{x0:0,x1:t,y0:0,y1:r},isBrushing:!1,brushPageOffset:void 0,activeHandle:null,brushingType:void 0}})},n.handleBrushingTypeChange=function(e,t){n.updateBrush(function(n){var r=mP({},n,{brushingType:e,isBrushing:void 0!==e});return(t||void 0===e)&&(r.brushPageOffset=t),r})};var n,r=t.initialBrushPosition,i=r?n.getExtent(r.start,r.end):{x0:-1,x1:-1,y0:-1,y1:-1};return n.state={start:{x:Math.max(0,i.x0),y:Math.max(0,i.y0)},end:{x:Math.max(0,i.x1),y:Math.max(0,i.y1)},extent:i,bounds:{x0:0,x1:n.props.width,y0:0,y1:n.props.height},isBrushing:!1,brushingType:void 0,activeHandle:null},n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,mN(t,e);var n=t.prototype;return n.componentDidUpdate=function(e){var t=this;(this.props.width!==e.width||this.props.height!==e.height)&&this.setState(function(n){var r=n.start,i=n.end,o=n.extent;if(!(-1===o.x0&&-1===o.x1&&-1===o.y0&&-1===o.y1)){var a=t.props.width/e.width,s=t.props.height/e.height;r={x:a*o.x0,y:s*o.y0},i={x:a*o.x1,y:s*o.y1},o=t.getExtent(r,i)}return{start:r,end:i,extent:o,bounds:{x0:0,x1:t.props.width,y0:0,y1:t.props.height}}})},n.componentDidMount=function(){this.props.useWindowMoveEvents&&(window.addEventListener("mouseup",this.handleWindowPointerUp),window.addEventListener("mousemove",this.handleWindowPointerMove))},n.componentWillUnmount=function(){this.props.useWindowMoveEvents&&(window.removeEventListener("mouseup",this.handleWindowPointerUp),window.removeEventListener("mousemove",this.handleWindowPointerMove))},n.render=function(){var e=this,t=this.state,n=t.start,r=t.end,i=this.props,o=i.top,a=i.left,s=i.width,l=i.height,u=i.onMouseLeave,c=i.onMouseUp,d=i.onMouseMove,f=i.onBrushEnd,h=i.onClick,p=i.resizeTriggerAreas,m=i.selectedBoxStyle,v=i.disableDraggingSelection,g=i.clickSensitivity,y=i.useWindowMoveEvents,b=i.renderBrushHandle,w=this.state.brushingType,j=this.handles(),k=this.corners(),E=this.getBrushWidth(),S=this.getBrushHeight(),_=new Set(p);return x.createElement(pX.Z,{className:"visx-brush",top:o,left:a},x.createElement(my.Z,{width:s,height:l,resetOnStart:!0,onDragStart:this.handleDragStart,onDragMove:this.handleDragMove,onDragEnd:this.handleDragEnd,isDragging:y?"select"===w:void 0},function(t){var n=t.dragStart,r=t.isDragging,i=t.dragMove,o=t.dragEnd;return x.createElement(pU.Z,{className:"visx-brush-overlay",fill:"transparent",x:0,y:0,width:s,height:l,onDoubleClick:function(){return e.reset()},onClick:function(t){var n=e.mouseUpTime-e.mouseDownTime;h&&n=0||(i[n]=e[n]);return i}(e,mZ),g=o,y=s,b=a,w=l;return void 0!==m&&!m||g||y||b||w||(g="0",y="0",b="0",w="1"),x.createElement("defs",null,x.createElement("linearGradient",mI({id:n,x1:g,y1:b,x2:y,y2:w,gradientTransform:h?"rotate("+h+")":p},v),!!t&&t,!t&&x.createElement("stop",{offset:void 0===u?"0%":u,stopColor:r,stopOpacity:void 0===c?1:c}),!t&&x.createElement("stop",{offset:void 0===d?"100%":d,stopColor:i,stopOpacity:void 0===f?1:f})))}mB.propTypes={id:p$().string.isRequired,from:p$().string,to:p$().string,x1:p$().oneOfType([p$().string,p$().number]),x2:p$().oneOfType([p$().string,p$().number]),y1:p$().oneOfType([p$().string,p$().number]),y2:p$().oneOfType([p$().string,p$().number]),fromOffset:p$().oneOfType([p$().string,p$().number]),fromOpacity:p$().oneOfType([p$().string,p$().number]),toOffset:p$().oneOfType([p$().string,p$().number]),toOpacity:p$().oneOfType([p$().string,p$().number]),rotate:p$().oneOfType([p$().string,p$().number]),transform:p$().string,children:p$().node,vertical:p$().bool};var mH=n(78307),mU=n(74747);function mW(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}var mq=n(12436),m$=n.n(mq),mK=n(55746),mY=n(45742),mG=n(27266),mX=["id","markerWidth","markerHeight","markerUnits","children"];function mJ(){return(mJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mX);return x.createElement("defs",null,x.createElement("marker",mJ({id:t,markerWidth:void 0===n?3:n,markerHeight:void 0===r?3:r,markerUnits:void 0===i?"userSpaceOnUse":i},a),o))}mQ.propTypes={id:p$().string.isRequired,size:p$().number,markerWidth:p$().oneOfType([p$().string,p$().number]),markerHeight:p$().oneOfType([p$().string,p$().number]),markerUnits:p$().string,refX:p$().oneOfType([p$().string,p$().number]),refY:p$().oneOfType([p$().string,p$().number]),strokeWidth:p$().number,children:p$().node.isRequired};var m0=["id","size","strokeWidth"];function m1(){return(m1=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,m0),s=2*r+o,l=s/2;return x.createElement(mQ,m1({id:t,markerWidth:s,markerHeight:s,refX:0,refY:l,orient:"auto-start-reverse",markerUnits:"strokeWidth",strokeWidth:o},a),x.createElement("circle",{r:r,cx:l,cy:l}))}var m4=n(64170),m3={top:"top",left:"left",bottom:"bottom"};function m5(){return(m5=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vr),E=null!=g?g:"tickFormat"in v?v.tickFormat():ve.Z,S=h===m3.left,_=h===m3.top,C=_||h===m3.bottom,O=function(e,t){if(void 0===t&&(t="center"),"start"!==t&&"bandwidth"in e){var n=e.bandwidth();return"center"===t&&(n/=2),e.round()&&(n=Math.round(n)),function(t){var r=e(t);return"number"==typeof r?r+n:r}}return e}(v),M=S||_?-1:1,T=v.range(),A=(void 0===(t=m)&&(t=0),"number"==typeof t?{start:t,end:t}:vn({start:0,end:0},t)),P=vt({x:Number(T[0])+.5-A.start,y:0},C),N=vt({x:Number(T[T.length-1])+.5+A.end,y:0},C),R=(null!=w?w:(0,pQ.Z)(v,d)).filter(function(e){return!l||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),D=R.map(function(e){var t=e.value,n=e.index,r=(0,p0.Z)(O(t));return{value:t,index:n,from:vt({x:r,y:0},C),to:vt({x:r,y:b*M},C),formattedValue:E(t,n,R)}});return x.createElement(pX.Z,{className:pY()("visx-axis",i),top:void 0===j?0:j,left:void 0===u?0:u},r(vi({},k,{axisFromPoint:P,axisToPoint:N,hideAxisLine:void 0!==o&&o,hideTicks:void 0!==a&&a,hideZero:l,horizontal:C,numTicks:d,orientation:h,rangePadding:m,scale:v,tickFormat:E,tickLength:b,tickPosition:O,tickSign:M,ticks:D})))}var va=["axisClassName","labelOffset","tickLabelProps","tickLength"];function vs(){return(vs=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,va);return x.createElement(vo,vs({axisClassName:pY()("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:m3.bottom,tickLabelProps:void 0===r?vl:r,tickLength:void 0===i?8:i},o))}var vc=["axisClassName","labelOffset","tickLabelProps","tickLength"];function vd(){return(vd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vc);return x.createElement(vo,vd({axisClassName:pY()("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:m3.left,tickLabelProps:void 0===r?vf:r,tickLength:void 0===i?8:i},o))}let vp=e=>new Date((null==e?void 0:e.timestamp)||0),vm=e=>(null==e?void 0:e.value)||0,vv="var(--colors-hiContrast)",vg={textAnchor:"middle",fontFamily:"var(--fonts-sans)",fontSize:10,fill:vv},vy={dx:"-0.25em",dy:"0.25em",fontFamily:"var(--fonts-sans)",fontSize:10,textAnchor:"end",fill:vv};function vx(e){let{data:t,gradientColor:n,width:r,yMax:i,margin:o,xScale:a,yScale:s,hideBottomAxis:l=!1,hideLeftAxis:u=!1,top:c,left:d,curve:f="step",children:h}=e;return r<10?null:(0,y.jsxs)(pX.Z,{left:d||o.left,top:c||o.top,children:[(0,y.jsx)(m2,{id:"marker-circle",fill:"var(--colors-accent11)",size:1.5,refX:1.5}),(0,y.jsx)(mB,{id:"gradient",from:n,fromOpacity:1,to:n,toOpacity:.2}),(0,y.jsx)(mK.Z,{data:t,x:e=>a(vp(e))||0,y:e=>s(vm(e))||0,yScale:s,strokeWidth:1,stroke:"url(#gradient)",fill:"url(#gradient)",markerMid:"url(#marker-circle)",curve:"step"===f?mY.ZP:mG.Z}),!l&&(0,y.jsx)(vu,{top:i,scale:a,numTicks:r>520?10:5,stroke:vv,tickStroke:vv,tickLabelProps:()=>vg}),!u&&(0,y.jsx)(vh,{scale:s,numTicks:5,stroke:vv,tickStroke:vv,tickLabelProps:()=>vy}),h]})}var vb=n(6692);let vw={inherit:vb.inherit,current:vb.current,transparent:vb.transparent,black:vb.black,white:vb.white,slate:vb.slate,zinc:vb.zinc,neutral:vb.neutral,stone:vb.stone,red:vb.red,orange:vb.orange,amber:vb.amber,yellow:vb.yellow,lime:vb.lime,green:vb.green,emerald:vb.emerald,teal:vb.teal,cyan:vb.cyan,sky:vb.sky,blue:vb.blue,indigo:vb.indigo,violet:vb.violet,purple:vb.purple,fuchsia:vb.fuchsia,pink:vb.pink,rose:vb.rose,mask:"rgba(30, 169, 76, .3)",accent:{50:"#F6FFF9",100:"#E9FBEF",200:"#D5F2DE",300:"#C9EED4",400:"#BBE8C9",500:"#9BDAAE",600:"#71C48A",700:"#3EAA5F",800:"#05872D",900:"#056B24",1e3:"#04511B",1100:"#011F0A"},accentdark:{50:"#05150A",100:"#051C0C",200:"#062811",300:"#073515",400:"#064018",500:"#075820",600:"#056824",700:"#077A2A",800:"#05872D",900:"#069F35",1e3:"#2FA052",1100:"#D9F4E1"},gray:{50:"hsl(206, 30.0%, 98.8%)",100:"hsl(210, 16.7%, 97.6%)",200:"hsl(209, 13.3%, 95.3%)",300:"hsl(209, 12.2%, 93.2%)",400:"hsl(208, 11.7%, 91.1%)",500:"hsl(208, 11.3%, 88.9%)",600:"hsl(207, 11.1%, 85.9%)",700:"hsl(205, 10.7%, 78.0%)",800:"hsl(206, 6.0%, 56.1%)",900:"hsl(206, 5.8%, 52.3%)",1e3:"hsl(206, 6.0%, 43.5%)",1100:"hsl(206, 24.0%, 9.0%)"},graydark:{50:"hsl(200, 7.0%, 8.8%)",100:"hsl(195, 7.1%, 11.0%)",200:"hsl(197, 6.8%, 13.6%)",300:"hsl(198, 6.6%, 15.8%)",400:"hsl(199, 6.4%, 17.9%)",500:"hsl(201, 6.2%, 20.5%)",600:"hsl(203, 6.0%, 24.3%)",700:"hsl(207, 5.6%, 31.6%)",800:"hsl(206, 6.0%, 43.9%)",900:"hsl(206, 5.2%, 49.5%)",1e3:"hsl(206, 6.0%, 63.0%)",1100:"hsl(210, 6.0%, 93.0%)"}};var vj=n(25205);let vk={top:10,bottom:15,left:10,right:10},vE="brush_pattern",vS="brush_gradient",v_=m$()(e=>e(),15),vC=(0,mH.Z)(e=>new Date((null==e?void 0:e.timestamp)||0)).left;void 0===kv&&(kv={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===kg&&(kg=function(e,t){return x.createElement("div",t,e)});var vO=n(70390),vM=n(3440),vT=n.n(vM);function vA(e){let{id:t,width:n,height:r,accessors:i,animationTrajectory:o,curve:a,data:s,config:l,scales:u,enabledGraph:c,enabledTip:d,isStack:f,todayOffset:h,numTicks:p,renderAreaSeries:m,renderAreaStack:v,renderBarGroup:g,renderBarStack:b,enableTooltipGlyph:w,renderTooltipGlyph:j,renderLineSeries:k,sharedTooltip:E,showHorizontalCrosshair:S,showTooltip:_,showVerticalCrosshair:C,snapTooltipToDatum:O,stackOffset:M,margin:T,theme:A,xAxisOrientation:P,yAxisOrientation:N,AreaSeries:R,AreaStack:D,Axis:L,BarGroup:F,BarSeries:z,BarStack:V,Grid:Z,LineSeries:I,Tooltip:B,XYChart:H}=e;return(0,y.jsxs)(H,{theme:A.xyChartTheme,xScale:u.x,yScale:u.y,height:Math.min(400,r),margin:T,captureEvents:!0,children:[(0,y.jsx)("g",{children:(0,y.jsx)("rect",{className:"fill-gray-600 dark:fill-graydark-600 h-full w-px y-0",style:{left:"".concat(100*h,"%")}})},"today-line-".concat(n,"-").concat(r)),(0,y.jsx)(mB,{id:"gradient-default",from:"gray",fromOpacity:1,to:"gray",toOpacity:.4}),Object.entries(l.data).map(e=>{let[n,r]=e,i=r.color;return(0,y.jsxs)(x.Fragment,{children:[(0,y.jsx)(mn,{id:"pattern-".concat(vP(t,n)),height:6,width:6,stroke:i,strokeWidth:.5,orientation:["diagonal"]}),(0,y.jsx)(mB,{id:"gradient-".concat(vP(t,n)),from:i,fromOpacity:1,to:i,toOpacity:f?.4:1})]},n)}),(0,y.jsx)(Z,{rows:!1,columns:!0,strokeDasharray:"1,3",animationTrajectory:o,numTicks:p},"grid-".concat(o)),b&&(0,y.jsx)(V,{offset:l.stackOffset,children:c.map(e=>(0,y.jsx)(z,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>vN(t,e,l)},e))}),g&&(0,y.jsx)(F,{children:c.map(e=>(0,y.jsx)(z,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>vN(t,e,l)},e))}),m&&(0,y.jsx)(y.Fragment,{children:c.map(e=>(0,y.jsx)(R,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:vN(t,e,l),fill:vN(t,e,l),curve:a},e))}),v&&(0,y.jsx)(D,{curve:a,offset:l.stackOffset,renderLine:"wiggle"!==M,children:c.map(e=>(0,y.jsx)(R,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:vN(t,e,l),fill:vN(t,e,l)},e))}),k&&(0,y.jsx)(y.Fragment,{children:c.map(e=>{var t,n;return(0,y.jsx)(I,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:(null===(n=l.data)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.color)||"gray",curve:a},e)})}),(0,y.jsx)(L,{orientation:P,numTicks:p,animationTrajectory:o,tickFormat:e=>(0,vj.rN)(e),tickLength:12,tickLabelProps:e=>({...e,fill:A.labels.color,fontFamily:A.labels.fontFamily,y:"14px",fontWeight:"500",fontSize:"8"})},"time-axis-".concat(o)),(0,y.jsx)(L,{label:null==M?"SC":"expand"===M?"Fraction of total":"",orientation:N,numTicks:p,tickLength:12,animationTrajectory:o,tickFormat:l.formatTickY,tickTransform:"translate(-300px, 0)",tickLabelProps:e=>({...e,fill:A.labels.color,fontFamily:A.labels.fontFamily,fontWeight:"500",fontSize:"8"})},"temp-axis-".concat(o)),_&&(0,y.jsx)(B,{showHorizontalCrosshair:S,showVerticalCrosshair:C,snapTooltipToDatumX:O,snapTooltipToDatumY:O,showDatumGlyph:O&&!g,showSeriesGlyphs:E&&!g,renderGlyph:w?j:void 0,renderTooltip:e=>{var t,n;let{tooltipData:r}=e,o=null==r?void 0:null===(t=r.nearestDatum)||void 0===t?void 0:t.datum,a=null==r?void 0:null===(n=r.nearestDatum)||void 0===n?void 0:n.key,s=E?d:a?[a]:[],u=l.formatTimestamp||(e=>(0,vj.rN)(e,{timeStyle:"short",hour12:!1})),c=s.map(e=>{var t,n;return{key:e,category:(null===(n=l.data)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.category)||""}}),h=vT()(c,"category"),p=l.categories?l.categories.map(e=>[e,h[e]]):Object.entries(h);return(0,y.jsxs)("div",{className:(0,em.cx)("flex flex-col gap-2 py-1"),children:[(0,y.jsx)(t1,{font:"mono",size:"12",color:"contrast",className:"text-end",children:o?u(i.date(o)):"No date"}),(0,y.jsx)(cR,{color:"panel",className:"w-full"}),(0,y.jsx)("div",{className:(0,em.cx)("grid gap-x-6 gap-y-4",p.length>1?"grid-cols-2":"grid-cols-1"),children:p.map(e=>{let[t,n]=e,r=o?n.reduce((e,t)=>{let{key:n}=t,r=i.y[n](o);return null==r||Number.isNaN(r)?e:e+r},0):0,s=null==l?void 0:l.formatComponent;return(0,y.jsxs)("div",{className:"flex flex-col gap-2 w-[250px]",children:[t&&(0,y.jsx)(t1,{weight:"semibold",children:t}),(0,y.jsxs)("div",{className:"grid grid-cols-2 gap-x-2 gap-y-1 items-center",children:[n.map(e=>{var t,n,r,u;let{key:c}=e,d=o&&i.y[c](o);return(0,y.jsxs)(x.Fragment,{children:[(0,y.jsx)(t1,{color:"accent",style:{color:null===(n=l.data)||void 0===n?void 0:null===(t=n[c])||void 0===t?void 0:t.color},className:(0,em.cx)(a===c?"underline":""),children:(null===(u=l.data)||void 0===u?void 0:null===(r=u[c])||void 0===r?void 0:r.label)||c}),(0,y.jsx)(t1,{size:"12",style:{textAlign:"end"},className:(0,em.cx)(a===c?"underline":""),children:null==d||Number.isNaN(d)?"–":s?(0,y.jsx)(s,{value:d}):l.format?l.format(d):d})]},c)}),n.length>1&&f&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(t1,{className:"pt-2",children:"total"}),(0,y.jsx)(t1,{size:"12",weight:"bold",className:"pt-2 text-end",children:s?(0,y.jsx)(s,{value:r}):l.format?l.format(r):r})]})]})]},t)})})]})}})]})}function vP(e,t){return"".concat(e,"-").concat(t)}function vN(e,t,n){var r;let i=vP(e,t);return(null===(r=n.data)||void 0===r?void 0:r[t])?n.data[t].pattern?"url(#pattern-".concat(i,")"):"url(#gradient-".concat(i,")"):"url(#gradient-default)"}var vR=n(24037),vD=n(86707);function vL(e){var t=e.top,n=e.left,r=e.className,i=e.children;return x.createElement(pX.Z,{className:pY()("visx-glyph",r),top:void 0===t?0:t,left:void 0===n?0:n},i)}vL.propTypes={top:p$().number,left:p$().number,className:p$().string,children:p$().node};var vF=["children","className","top","left","size"];function vz(){return(vz=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vF),s=(0,vR.Z)();return(s.type(vD.Z),"number"==typeof o?s.size(o):o&&s.size(o),t)?x.createElement(x.Fragment,null,t({path:s})):x.createElement(vL,{top:r,left:i},x.createElement("path",vz({className:pY()("visx-glyph-star",n),d:s()||""},a)))}vV.propTypes={children:p$().func,className:p$().string,top:p$().number,left:p$().number,size:p$().oneOfType([p$().number,p$().func])};var vZ=["top","left","className"];function vI(){return(vI=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vZ);return x.createElement(vL,{top:void 0===t?0:t,left:void 0===n?0:n},x.createElement("circle",vI({className:pY()("visx-glyph-dot",r)},i)))}vB.propTypes={className:p$().string,top:p$().number,left:p$().number,r:p$().number,cx:p$().number,cy:p$().number};var vH=n(9135),vU=["children","className","top","left","size"];function vW(){return(vW=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vU),s=(0,vR.Z)();return(s.type(vH.Z),"number"==typeof o?s.size(o):o&&s.size(o),t)?x.createElement(x.Fragment,null,t({path:s})):x.createElement(vL,{top:r,left:i},x.createElement("path",vW({className:pY()("visx-glyph-cross",n),d:s()||""},a)))}vq.propTypes={children:p$().func,className:p$().string,top:p$().number,left:p$().number,size:p$().oneOfType([p$().number,p$().func])};var v$=n(46385),vK=n(20651),vY={red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"]},vG=vY.gray,vX=vG[7],vJ=[vY.cyan[9],vY.cyan[3],vY.yellow[5],vY.red[4],vY.grape[8],vY.grape[5],vY.pink[9]];function vQ(){return(vQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t{for(var n in t)v3(e,n,{get:t[n],enumerable:!0})})(v5,{assign:()=>gC,colors:()=>gE,createStringInterpolator:()=>kb,skipAnimation:()=>gS,to:()=>kw,willAdvance:()=>g_});var v6=gf(),v8=e=>gl(e,v6),v7=gf();v8.write=e=>gl(e,v7);var v9=gf();v8.onStart=e=>gl(e,v9);var ge=gf();v8.onFrame=e=>gl(e,ge);var gt=gf();v8.onFinish=e=>gl(e,gt);var gn=[];v8.setTimeout=(e,t)=>{let n=v8.now()+t,r=()=>{let e=gn.findIndex(e=>e.cancel==r);~e&&gn.splice(e,1),ga-=~e?1:0},i={time:n,handler:e,cancel:r};return gn.splice(gr(n),0,i),ga+=1,gu(),i};var gr=e=>~(~gn.findIndex(t=>t.time>e)||~gn.length);v8.cancel=e=>{v9.delete(e),ge.delete(e),gt.delete(e),v6.delete(e),v7.delete(e)},v8.sync=e=>{gs=!0,v8.batchedUpdates(e),gs=!1},v8.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,v8.onStart(n)}return r.handler=e,r.cancel=()=>{v9.delete(n),t=null},r};var gi="undefined"!=typeof window?window.requestAnimationFrame:()=>{};v8.use=e=>gi=e,v8.now="undefined"!=typeof performance?()=>performance.now():Date.now,v8.batchedUpdates=e=>e(),v8.catch=console.error,v8.frameLoop="always",v8.advance=()=>{"demand"!==v8.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):gd()};var go=-1,ga=0,gs=!1;function gl(e,t){gs?(t.delete(e),e(0)):(t.add(e),gu())}function gu(){go<0&&(go=0,"demand"!==v8.frameLoop&&gi(gc))}function gc(){~go&&(gi(gc),v8.batchedUpdates(gd))}function gd(){let e=go;go=v8.now();let t=gr(go);if(t&&(gh(gn.splice(0,t),e=>e.handler()),ga-=t),!ga){go=-1;return}v9.flush(),v6.flush(e?Math.min(64,go-e):16.667),ge.flush(),v7.flush(),gt.flush()}function gf(){let e=new Set,t=e;return{add(n){ga+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(ga-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,ga-=t.size,gh(t,t=>t(n)&&e.add(t)),ga+=e.size,t=e)}}}function gh(e,t){e.forEach(e=>{try{t(e)}catch(e){v8.catch(e)}})}function gp(){}var gm=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),gv={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function gg(e,t){if(gv.arr(e)){if(!gv.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function gx(e,t,n){if(gv.arr(e)){for(let r=0;rgv.und(e)?[]:gv.arr(e)?e:[e];function gw(e,t){if(e.size){let n=Array.from(e);e.clear(),gy(n,t)}}var gj=(e,...t)=>gw(e,e=>e(...t)),gk=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),gE=null,gS=!1,g_=gp,gC=e=>{e.to&&(kw=e.to),e.now&&(v8.now=e.now),void 0!==e.colors&&(gE=e.colors),null!=e.skipAnimation&&(gS=e.skipAnimation),e.createStringInterpolator&&(kb=e.createStringInterpolator),e.requestAnimationFrame&&v8.use(e.requestAnimationFrame),e.batchedUpdates&&(v8.batchedUpdates=e.batchedUpdates),e.willAdvance&&(g_=e.willAdvance),e.frameLoop&&(v8.frameLoop=e.frameLoop)},gO=new Set,gM=[],gT=[],gA=0,gP={get idle(){return!gO.size&&!gM.length},start(e){gA>e.priority?(gO.add(e),v8.onStart(gN)):(gR(e),v8(gL))},advance:gL,sort(e){if(gA)v8.onFrame(()=>gP.sort(e));else{let t=gM.indexOf(e);~t&&(gM.splice(t,1),gD(e))}},clear(){gM=[],gO.clear()}};function gN(){gO.forEach(gR),gO.clear(),v8(gL)}function gR(e){gM.includes(e)||gD(e)}function gD(e){gM.splice(function(e,t){let n=e.findIndex(t);return n<0?e.length:n}(gM,t=>t.priority>e.priority),0,e)}function gL(e){let t=gT;for(let n=0;n0}var gF="[-+]?\\d*\\.?\\d+",gz=gF+"%";function gV(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var gZ=RegExp("rgb"+gV(gF,gF,gF)),gI=RegExp("rgba"+gV(gF,gF,gF,gF)),gB=RegExp("hsl"+gV(gF,gz,gz)),gH=RegExp("hsla"+gV(gF,gz,gz,gF)),gU=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gW=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gq=/^#([0-9a-fA-F]{6})$/,g$=/^#([0-9a-fA-F]{8})$/;function gK(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function gY(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=gK(i,r,e+1/3),a=gK(i,r,e),s=gK(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function gG(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function gX(e){let t=parseFloat(e);return(t%360+360)%360/360}function gJ(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function gQ(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function g0(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=gq.exec(e))?parseInt(t[1]+"ff",16)>>>0:gE&&void 0!==gE[e]?gE[e]:(t=gZ.exec(e))?(gG(t[1])<<24|gG(t[2])<<16|gG(t[3])<<8|255)>>>0:(t=gI.exec(e))?(gG(t[1])<<24|gG(t[2])<<16|gG(t[3])<<8|gJ(t[4]))>>>0:(t=gU.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=g$.exec(e))?parseInt(t[1],16)>>>0:(t=gW.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=gB.exec(e))?(255|gY(gX(t[1]),gQ(t[2]),gQ(t[3])))>>>0:(t=gH.exec(e))?(gY(gX(t[1]),gQ(t[2]),gQ(t[3]))|gJ(t[4]))>>>0:null;if(null===n)return e;n=n||0;let r=(4278190080&n)>>>24,i=(16711680&n)>>>16,o=(65280&n)>>>8,a=(255&n)/255;return`rgba(${r}, ${i}, ${o}, ${a})`}var g1=(e,t,n)=>{if(gv.fun(e))return e;if(gv.arr(e))return g1({range:e,output:t,extrapolate:n});if(gv.str(e.output[0]))return kb(e);let r=e.output,i=e.range||[0,1],o=e.extrapolateLeft||e.extrapolate||"extend",a=e.extrapolateRight||e.extrapolate||"extend",s=e.easing||(e=>e);return t=>{let n=function(e,t){for(var n=1;n=e);++n);return n-1}(t,i);return function(e,t,n,r,i,o,a,s,l){let u=l?l(e):e;if(un){if("identity"===s)return u;"clamp"===s&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=o(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r,u)}(t,i[n],i[n+1],r[n],r[n+1],s,o,a,e.map)}},g2=Symbol.for("FluidValue.get"),g4=Symbol.for("FluidValue.observers"),g3=e=>!!(e&&e[g2]),g5=e=>e&&e[g2]?e[g2]():e,g6=e=>e[g4]||null;function g8(e,t){let n=e[g4];n&&n.forEach(e=>{e.eventObserved?e.eventObserved(t):e(t)})}var g7=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");g9(this,e)}},g9=(e,t)=>yn(e,g2,t);function ye(e,t){if(e[g2]){let n=e[g4];n||yn(e,g4,n=new Set),!n.has(t)&&(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function yt(e,t){let n=e[g4];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[g4]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var yn=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),yr=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,yi=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,yo=RegExp(`(${yr.source})(%|[a-z]+)`,"i"),ya=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,ys=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,yl=e=>{let[t,n]=yu(e);if(!t||gk())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){let e=window.getComputedStyle(document.documentElement).getPropertyValue(n);if(e)return e}else if(n&&ys.test(n))return yl(n);else if(n)return n;return e},yu=e=>{let t=ys.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},yc=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,yd=e=>{kj||(kj=gE?RegExp(`(${Object.keys(gE).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>g5(e).replace(ys,yl).replace(yi,g0).replace(kj,g0)),n=t.map(e=>e.match(yr).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})),i=r.map(t=>g1({...e,output:t}));return e=>{let n=!yo.test(t[0])&&t.find(e=>yo.test(e))?.replace(yr,""),r=0;return t[0].replace(yr,()=>`${i[r++](e)}${n||""}`).replace(ya,yc)}},yf="react-spring: ",yh=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${yf}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},yp=yh(console.warn),ym=yh(console.warn);function yv(e){return gv.str(e)&&("#"==e[0]||/\d/.test(e)||!gk()&&ys.test(e)||e in(gE||{}))}var yg=gk()?x.useEffect:x.useLayoutEffect,yy=()=>{let e=(0,x.useRef)(!1);return yg(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function yx(){let e=(0,x.useState)()[1],t=yy();return()=>{t.current&&e(Math.random())}}var yb=e=>(0,x.useEffect)(e,yw),yw=[];function yj(e){let t=(0,x.useRef)();return(0,x.useEffect)(()=>{t.current=e}),t.current}var yk=Symbol.for("Animated:node"),yE=e=>!!e&&e[yk]===e,yS=e=>e&&e[yk],y_=(e,t)=>gm(e,yk,t),yC=e=>e&&e[yk]&&e[yk].getPayload(),yO=class{constructor(){y_(this,this)}getPayload(){return this.payload||[]}},yM=class extends yO{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,gv.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new yM(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return gv.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,gv.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},yT=class extends yM{constructor(e){super(0),this._string=null,this._toString=g1({output:[e,e]})}static create(e){return new yT(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(gv.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=g1({output:[this.getValue(),e]})),this._value=0,super.reset()}},yA={dependencies:null},yP=class extends yO{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return gx(this.source,(n,r)=>{yE(n)?t[r]=n.getValue(e):g3(n)?t[r]=g5(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&gy(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return gx(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){yA.dependencies&&g3(e)&&yA.dependencies.add(e);let t=yC(e);t&&gy(t,e=>this.add(e))}},yN=class extends yP{constructor(e){super(e)}static create(e){return new yN(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(yR)),!0)}};function yR(e){let t=yv(e)?yT:yM;return t.create(e)}function yD(e){let t=yS(e);return t?t.constructor:gv.arr(e)?yN:yv(e)?yT:yM}var yL=(e,t)=>{let n=!gv.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,x.forwardRef)((r,i)=>{let o=(0,x.useRef)(null),a=n&&(0,x.useCallback)(e=>{o.current=(i&&(gv.fun(i)?i(e):i.current=e),e)},[i]),[s,l]=function(e,t){let n=new Set;return yA.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new yP(e),yA.dependencies=null,[e,n]}(r,t),u=yx(),c=()=>{let e=o.current;if(n&&!e)return;let r=!!e&&t.applyAnimatedValues(e,s.getValue(!0));!1===r&&u()},d=new yF(c,l),f=(0,x.useRef)();yg(()=>(f.current=d,gy(l,e=>ye(e,d)),()=>{f.current&&(gy(f.current.deps,e=>yt(e,f.current)),v8.cancel(f.current.update))})),(0,x.useEffect)(c,[]),yb(()=>()=>{let e=f.current;gy(e.deps,t=>yt(t,e))});let h=t.getComponentProps(s.getValue());return x.createElement(e,{...h,ref:a})})},yF=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&v8.write(this.update)}},yz=Symbol.for("AnimatedComponent"),yV=e=>gv.str(e)?e:e&&gv.str(e.displayName)?e.displayName:gv.fun(e)&&e.name||null;function yZ(e,...t){return gv.fun(e)?e(...t):e}var yI=(e,t)=>!0===e||!!(t&&e&&(gv.fun(e)?e(t):gb(e).includes(t))),yB=(e,t)=>gv.obj(e)?t&&e[t]:e,yH=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,yU=e=>e,yW=(e,t=yU)=>{let n=yq;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);gv.und(n)||(r[i]=n)}return r},yq=["config","onProps","onStart","onChange","onPause","onResume","onRest"],y$={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function yK(e){let t=function(e){let t={},n=0;if(gx(e,(e,r)=>{!y$[r]&&(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return gx(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function yY(e){return e=g5(e),gv.arr(e)?e.map(yY):yv(e)?v5.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function yG(e){for(let t in e)return!0;return!1}function yX(e){return gv.fun(e)||gv.arr(e)&&gv.obj(e[0])}function yJ(e,t){e.ref?.delete(e),t?.delete(e)}function yQ(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var y0={tension:170,friction:26,mass:1,damping:1,easing:e=>e,clamp:!1},y1=class{constructor(){this.velocity=0,Object.assign(this,y0)}};function y2(e,t){if(gv.und(t.decay)){let n=!gv.und(t.tension)||!gv.und(t.friction);!n&&gv.und(t.frequency)&&gv.und(t.damping)&&gv.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var y4=[],y3=class{constructor(){this.changed=!1,this.values=y4,this.toValues=null,this.fromValues=y4,this.config=new y1,this.immediate=!1}};function y5(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{let l,u;let c=yI(n.cancel??r?.cancel,t);if(c)h();else{gv.und(n.pause)||(i.paused=yI(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||yI(e,t)),l=yZ(n.delay||0,t),e?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),l=u.time-v8.now()}function f(){l>0&&!v5.skipAnimation?(i.delayed=!0,u=v8.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(u)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{o.start({...n,callId:e,cancel:c},a)}catch(e){s(e)}}})}var y6=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?y9(e.get()):t.every(e=>e.noop)?y8(e.get()):y7(e.get(),t.every(e=>e.finished)),y8=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),y7=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),y9=e=>({value:e,cancelled:!0,finished:!1});function xe(e,t,n,r){let{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{let u,c,d;n.asyncId=i,n.asyncTo=e;let f=yW(t,(e,t)=>"onRest"===t?void 0:e),h=new Promise((e,t)=>(u=e,c=t)),p=e=>{let t=i<=(n.cancelId||0)&&y9(r)||i!==n.asyncId&&y7(r,!1);if(t)throw e.result=t,c(e),e},m=(e,t)=>{let o=new xn,a=new xr;return(async()=>{if(v5.skipAnimation)throw xt(n),a.result=y7(r,!1),c(a),a;p(o);let s=gv.obj(e)?{...e}:{...t,to:e};s.parentId=i,gx(f,(e,t)=>{gv.und(s[t])&&(s[t]=e)});let l=await r.start(s);return p(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()};if(v5.skipAnimation)return xt(n),y7(r,!1);try{let t;t=gv.arr(e)?(async e=>{for(let t of e)await m(t)})(e):Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([t.then(u),h]),d=y7(r.get(),!0,!1)}catch(e){if(e instanceof xn)d=e.result;else if(e instanceof xr)d=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return gv.fun(a)&&v8.batchedUpdates(()=>{a(d,r,r.item)}),d})():l}function xt(e,t){gw(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var xn=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},xr=class extends Error{constructor(){super("SkipAnimationSignal")}},xi=e=>e instanceof xa,xo=1,xa=class extends g7{constructor(){super(...arguments),this.id=xo++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=yS(this);return e&&e.getValue()}to(...e){return v5.to(this,e)}interpolate(...e){return yp(`${yf}The "interpolate" function is deprecated in v9 (use "to" instead)`),v5.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){g8(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||gP.sort(this),g8(this,{type:"priority",parent:this,priority:e})}},xs=Symbol.for("SpringPhase"),xl=e=>(1&e[xs])>0,xu=e=>(2&e[xs])>0,xc=e=>(4&e[xs])>0,xd=(e,t)=>t?e[xs]|=3:e[xs]&=-3,xf=(e,t)=>t?e[xs]|=4:e[xs]&=-5,xh=class extends xa{constructor(e,t){if(super(),this.animation=new y3,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!gv.und(e)||!gv.und(t)){let n=gv.obj(e)?{...e}:{...t,from:e};gv.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(xu(this)||this._state.asyncTo)||xc(this)}get goal(){return g5(this.animation.to)}get velocity(){let e=yS(this);return e instanceof yM?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return xl(this)}get isAnimating(){return xu(this)}get isPaused(){return xc(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:o}=r,a=yC(r.to);!a&&g3(r.to)&&(i=gb(g5(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==yT?1:a?a[l].lastPosition:i[l],c=r.immediate,d=u;if(!c){let t;if(d=s.lastPosition,o.tension<=0){s.done=!0;return}let n=s.elapsedTime+=e,i=r.fromValues[l],a=null!=s.v0?s.v0:s.v0=gv.arr(o.velocity)?o.velocity[l]:o.velocity,f=o.precision||(i==u?.005:Math.min(1,.001*Math.abs(u-i)));if(gv.und(o.duration)){if(o.decay){let e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*n);d=i+a/(1-e)*(1-r),c=Math.abs(s.lastPosition-d)<=f,t=a*r}else{t=null==s.lastVelocity?a:s.lastVelocity;let n=o.restVelocity||f/10,r=o.clamp?0:o.bounce,l=!gv.und(r),h=i==u?s.v0>0:in)&&(c=Math.abs(u-d)<=f));++e){l&&(d==u||d>u==h)&&(t=-t*r,d=u);let e=-(1e-6*o.tension)*(d-u),n=-(.001*o.friction)*t,i=(e+n)/o.mass;t+=1*i,d+=1*t}}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,s.durationProgress>0&&(s.elapsedTime=o.duration*s.durationProgress,n=s.elapsedTime+=e)),r=(r=(o.progress||0)+n/this._memoizedDuration)>1?1:r<0?0:r,s.durationProgress=r),t=((d=i+o.easing(r)*(u-i))-s.lastPosition)/e,c=1==r}s.lastVelocity=t,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}a&&!a[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,o.round)&&(n=!0)});let s=yS(this),l=s.getValue();if(t){let e=g5(r.to);(l!==e||n)&&!o.decay?(s.setValue(e),this._onChange(e)):n&&o.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return v8.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(xu(this)){let{to:e,config:t}=this.animation;v8.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){let t=this.queue||(this.queue=[]);return t.push(e),this}start(e,t){let n;return gv.und(e)?(n=this.queue||[],this.queue=[]):n=[gv.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>{let t=this._update(e);return t})).then(e=>y6(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),xt(this._state,e&&this._lastCallId),v8.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:n,from:r}=e;(null==(n=gv.obj(n)?n[t]:n)||yX(n))&&(n=void 0),null==(r=gv.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return xl(this)||(e.reverse&&([n,r]=[r,n]),r=g5(r),gv.und(r)?yS(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,yW(e,(e,t)=>/^on/.test(t)?yB(e,n):e)),xx(this,e,"onProps"),xb(this,"onProps",e,this);let i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let o=this._state;return y5(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{xc(this)||(xf(this,!0),gj(o.pauseQueue),xb(this,"onPause",y7(this,xp(this,this.animation.to)),this))},resume:()=>{xc(this)&&(xf(this,!1),xu(this)&&this._resume(),gj(o.resumeQueue),xb(this,"onResume",y7(this,xp(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=xm(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(y9(this));let r=!gv.und(e.to),i=!gv.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(y9(this));this._lastToId=t.callId}let{key:o,defaultProps:a,animation:s}=this,{to:l,from:u}=s,{to:c=l,from:d=u}=e;i&&!r&&(!t.default||gv.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!gg(d,u);f&&(s.from=d),d=g5(d);let h=!gg(c,l);h&&this._focus(c);let p=yX(t.to),{config:m}=s,{decay:v,velocity:g}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(y2(n={...n},t),t={...n,...t}),y2(e,t),Object.assign(e,t),y0)null==e[r]&&(e[r]=y0[r]);let{frequency:r,damping:i}=e,{mass:o}=e;gv.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r)}(m,yZ(t.config,o),t.config!==a.config?yZ(a.config,o):void 0);let y=yS(this);if(!y||gv.und(c))return n(y7(this,!0));let x=gv.und(t.reset)?i&&!t.default:!gv.und(d)&&yI(t.reset,o),b=x?d:this.get(),w=yY(c),j=gv.num(w)||gv.arr(w)||yv(w),k=!p&&(!j||yI(a.immediate||t.immediate,o));if(h){let e=yD(c);if(e!==y.constructor){if(k)y=this._set(w);else throw Error(`Cannot animate between ${y.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let E=y.constructor,S=g3(c),_=!1;if(!S){let e=x||!xl(this)&&f;(h||e)&&(S=!(_=gg(yY(b),w))),(gg(s.immediate,k)||k)&&gg(m.decay,v)&&gg(m.velocity,g)||(S=!0)}if(_&&xu(this)&&(s.changed&&!x?S=!0:S||this._stop(l)),!p&&((S||g3(l))&&(s.values=y.getPayload(),s.toValues=g3(c)?null:E==yT?[1]:gb(w)),s.immediate==k||(s.immediate=k,k||x||this._set(l)),S)){let{onRest:e}=s;gy(xy,e=>xx(this,t,e));let r=y7(this,xp(this,l));gj(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&v8.batchedUpdates(()=>{s.changed=!x,e?.(r,this),x?yZ(a.onRest,r):s.onStart?.(r,this)})}x&&this._set(b),p?n(xe(t.to,t,this._state,this)):S?this._start():xu(this)&&!h?this._pendingCalls.add(n):n(y8(b))}_focus(e){let t=this.animation;e!==t.to&&(g6(this)&&this._detach(),t.to=e,g6(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;g3(t)&&(ye(t,this),xi(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;g3(e)&&yt(e,this)}_set(e,t=!0){let n=g5(e);if(!gv.und(n)){let e=yS(this);if(!e||!gg(n,e.getValue())){let r=yD(n);e&&e.constructor==r?e.setValue(n):y_(this,r.create(n)),e&&v8.batchedUpdates(()=>{this._onChange(n,t)})}}return yS(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,xb(this,"onStart",y7(this,xp(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),yZ(this.animation.onChange,e,this)),yZ(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;yS(this).reset(g5(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),xu(this)||(xd(this,!0),xc(this)||this._resume())}_resume(){v5.skipAnimation?this.finish():gP.start(this)}_stop(e,t){if(xu(this)){xd(this,!1);let n=this.animation;gy(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),g8(this,{type:"idle",parent:this});let r=t?y9(this.get()):y7(this.get(),xp(this,e??n.to));gj(this._pendingCalls,r),n.changed&&(n.changed=!1,xb(this,"onRest",r,this))}}};function xp(e,t){let n=yY(t),r=yY(e.get());return gg(r,n)}function xm(e,t=e.loop,n=e.to){let r=yZ(t);if(r){let i=!0!==r&&yK(r),o=(i||e).reverse,a=!i||i.reset;return xv({...e,loop:t,default:!1,pause:void 0,to:!o||yX(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function xv(e){let{to:t,from:n}=e=yK(e),r=new Set;return gv.obj(t)&&xg(t,r),gv.obj(n)&&xg(n,r),e.keys=r.size?Array.from(r):null,e}function xg(e,t){gx(e,(e,n)=>null!=e&&t.add(n))}var xy=["onStart","onRest","onChange","onPause","onResume"];function xx(e,t,n){e.animation[n]=t[n]!==yH(t,n)?yB(t[n],e.key):void 0}function xb(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var xw=["onStart","onChange","onRest"],xj=1,xk=class{constructor(e,t){this.id=xj++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];gv.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(xv(e)),this}start(e){let{queue:t}=this;return(e?t=gb(e).map(xv):this.queue=[],this._flush)?this._flush(this,t):(xT(this,t),xE(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;gy(gb(t),t=>n[t].stop(!!e))}else xt(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(gv.und(e))this.start({pause:!0});else{let t=this.springs;gy(gb(e),e=>t[e].pause())}return this}resume(e){if(gv.und(e))this.start({pause:!1});else{let t=this.springs;gy(gb(e),e=>t[e].resume())}return this}each(e){gx(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,gw(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&gw(t,([e,t])=>{t.value=a,e(t,this,this._item)}),o&&(this._started=!1,gw(n,([e,t])=>{t.value=a,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}v8.onFrame(this._onFrame)}};function xE(e,t){return Promise.all(t.map(t=>xS(e,t))).then(t=>y6(e,t))}async function xS(e,t,n){let{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=gv.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);let c=gv.arr(i)||gv.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):gy(xw,n=>{let r=t[n];if(gv.fun(r)){let i=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}});let d=e._state;!d.paused===t.pause?(d.paused=t.pause,gj(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let f=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),h=!0===t.cancel||!0===yH(t,"cancel");(c||h&&d.asyncId)&&f.push(y5(++e._lastAsyncId,{props:t,state:d,actions:{pause:gp,resume:gp,start(t,n){h?(xt(d,e._lastAsyncId),n(y9(e))):(t.onRest=s,n(xe(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=y6(e,await Promise.all(f));if(a&&p.finished&&!(n&&p.noop)){let n=xm(t,a,i);if(n)return xT(e,[n]),xS(e,n,!0)}return l&&v8.batchedUpdates(()=>l(p,e,e.item)),p}function x_(e,t){let n={...e.springs};return t&&gy(gb(t),e=>{gv.und(e.keys)&&(e=xv(e)),gv.obj(e.to)||(e={...e,to:void 0}),xM(n,e,e=>xO(e))}),xC(e,n),n}function xC(e,t){gx(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,ye(t,e))})}function xO(e,t){let n=new xh;return n.key=e,t&&ye(n,t),n}function xM(e,t,n){t.keys&&gy(t.keys,r=>{let i=e[r]||(e[r]=n(r));i._prepareNode(t)})}function xT(e,t){gy(t,t=>{xM(e.springs,t,t=>xO(t,e))})}var xA=({children:e,...t})=>{let n=(0,x.useContext)(xP),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=function(e,t){let[n]=(0,x.useState)(()=>({inputs:t,result:e()})),r=(0,x.useRef)(),i=r.current,o=i;if(o){let n=!!(t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}(()=>({pause:r,immediate:i}),[r,i]);let{Provider:o}=xP;return x.createElement(o,{value:t},e)},xP=(Object.assign(xA,x.createContext({})),xA.Provider._context=xA,xA.Consumer._context=xA,xA);xA.Provider=xP.Provider,xA.Consumer=xP.Consumer;var xN=()=>{let e=[],t=function(t){ym(`${yf}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);let r=[];return gy(e,(e,i)=>{if(gv.und(t))r.push(e.start());else{let o=n(t,e,i);o&&r.push(e.start(o))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return gy(e,e=>e.pause(...arguments)),this},t.resume=function(){return gy(e,e=>e.resume(...arguments)),this},t.set=function(t){gy(e,(e,n)=>{let r=gv.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return gy(e,(e,r)=>{if(gv.und(t))n.push(e.start());else{let i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return gy(e,e=>e.stop(...arguments)),this},t.update=function(t){return gy(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return gv.fun(e)?e(n,t):e};return t._getProps=n,t};function xR(e,t){let n=gv.fun(e),[[r],i]=function(e,t,n){let r=gv.fun(t)&&t;r&&!n&&(n=[]);let i=(0,x.useMemo)(()=>r||3==arguments.length?xN():void 0,[]),o=(0,x.useRef)(0),a=yx(),s=(0,x.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=x_(e,t),r=o.current>0&&!s.queue.length&&!Object.keys(n).some(t=>!e.springs[t]);return r?xE(e,t):new Promise(r=>{xC(e,n),s.queue.push(()=>{r(xE(e,t))}),a()})}}),[]),l=(0,x.useRef)([...s.ctrls]),u=[],c=yj(e)||0;function d(e,n){for(let i=e;i{gy(l.current.slice(e,c),e=>{yJ(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,x.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=l.current.map((e,t)=>x_(e,u[t])),h=(0,x.useContext)(xA),p=yj(h),m=h!==p&&yG(h);yg(()=>{o.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],gy(e,e=>e())),gy(l.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(yQ(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),yb(()=>()=>{gy(s.ctrls,e=>e.stop(!0))});let v=f.map(e=>({...e}));return i?[v,i]:v}(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}function xD(e,t,n){let r=gv.fun(t)&&t,{reset:i,sort:o,trail:a=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=(0,x.useMemo)(()=>r||3==arguments.length?xN():void 0,[]),h=gb(e),p=[],m=(0,x.useRef)(null),v=i?null:m.current;yg(()=>{m.current=p}),yb(()=>(gy(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{gy(m.current,e=>{e.expired&&clearTimeout(e.expirationId),yJ(e.ctrl,f),e.ctrl.stop(!0)})}));let g=function(e,{key:t,keys:n=t},r){if(null===n){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&"leave"!==n.phase&&!t.has(n));return n?(t.add(n),n.key):xL++})}return gv.und(n)?e:gv.fun(n)?e.map(n):gb(n)}(h,r?r():t,v),y=i&&m.current||[];yg(()=>gy(y,({ctrl:e,item:t,key:n})=>{yJ(e,f),yZ(u,t,n)}));let b=[];if(v&&gy(v,(e,t)=>{e.expired?(clearTimeout(e.expirationId),y.push(e)):~(t=b[t]=g.indexOf(e.key))&&(p[t]=e)}),gy(h,(e,t)=>{p[t]||(p[t]={key:g[t],item:e,phase:"mount",ctrl:new xk},p[t].ctrl.item=e)}),b.length){let e=-1,{leave:n}=r?r():t;gy(b,(t,r)=>{let i=v[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}gv.fun(o)&&p.sort((e,t)=>o(e.item,t.item));let w=-a,j=yx(),k=yW(t),E=new Map,S=(0,x.useRef)(new Map),_=(0,x.useRef)(!1);gy(p,(e,n)=>{let i,o;let u=e.key,f=e.phase,h=r?r():t,p=yZ(h.delay||0,u);if("mount"==f)i=h.enter,o="enter";else{let e=0>g.indexOf(u);if("leave"!=f){if(e)i=h.leave,o="leave";else{if(!(i=h.update))return;o="update"}}else{if(e)return;i=h.enter,o="enter"}}if(i=yZ(i,e.item,n),!(i=gv.obj(i)?yK(i):{to:i}).config){let t=d||k.config;i.config=yZ(t,e.item,n,o)}w+=a;let y={...k,delay:p+w,ref:c,immediate:h.immediate,reset:!1,...i};if("enter"==o&&gv.und(y.from)){let i=r?r():t,o=gv.und(i.initial)||v?i.from:i.initial;y.from=yZ(o,e.item,n)}let{onResolve:x}=y;y.onResolve=e=>{yZ(x,e);let t=m.current,n=t.find(e=>e.key===u);if(n){if(e.cancelled&&"update"!=n.phase)return;if(n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){let t=yZ(s,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(j,r));return}}}e&&t.some(e=>e.expired)&&(S.current.delete(n),l&&(_.current=!0),j())}}};let b=x_(e.ctrl,y);"leave"===o&&l?S.current.set(e,{phase:o,springs:b,payload:y}):E.set(e,{phase:o,springs:b,payload:y})});let C=(0,x.useContext)(xA),O=yj(C),M=C!==O&&yG(C);yg(()=>{M&&gy(p,e=>{e.ctrl.start({default:C})})},[C]),gy(E,(e,t)=>{if(S.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),yg(()=>{gy(S.current.size?S.current:E,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),M&&"enter"==e&&r.start({default:C}),t&&(yQ(r,t.ref),(r.ref||f)&&!_.current?r.update(t):(r.start(t),_.current&&(_.current=!1)))})},i?void 0:n);let T=e=>x.createElement(x.Fragment,null,p.map((t,n)=>{let{springs:r}=E.get(t)||t.ctrl,i=e({...r},t.item,t,n);return i&&i.type?x.createElement(i.type,{...i.props,key:gv.str(t.key)||gv.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[T,f]:T}var xL=1,xF=class extends xa{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=g1(...t);let n=this._get(),r=yD(n);y_(this,r.create(n))}advance(e){let t=this._get(),n=this.get();gg(t,n)||(yS(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&xV(this._active)&&xZ(this)}_get(){let e=gv.arr(this.source)?this.source.map(g5):gb(g5(this.source));return this.calc(...e)}_start(){this.idle&&!xV(this._active)&&(this.idle=!1,gy(yC(this),e=>{e.done=!1}),v5.skipAnimation?(v8.batchedUpdates(()=>this.advance()),xZ(this)):gP.start(this))}_attach(){let e=1;gy(gb(this.source),t=>{g3(t)&&ye(t,this),xi(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){gy(gb(this.source),e=>{g3(e)&&yt(e,this)}),this._active.clear(),xZ(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=gb(this.source).reduce((e,t)=>Math.max(e,(xi(t)?t.priority:0)+1),0))}};function xz(e){return!1!==e.idle}function xV(e){return!e.size||Array.from(e).every(xz)}function xZ(e){e.idle||(e.idle=!0,gy(yC(e),e=>{e.done=!0}),g8(e,{type:"idle",parent:e}))}var xI=(e,...t)=>new xF(e,t);v5.assign({createStringInterpolator:yd,to:(e,t)=>new xF(e,t)}),gP.advance;var xB=/^--/,xH={},xU={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},xW=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),xq=["Webkit","Ms","Moz","O"];xU=Object.keys(xU).reduce((e,t)=>(xq.forEach(n=>e[xW(n,t)]=e[t]),e),xU);var x$=/^(matrix|translate|scale|rotate|skew)/,xK=/^(translate)/,xY=/^(rotate|skew)/,xG=(e,t)=>gv.num(e)&&0!==e?e+t:e,xX=(e,t)=>gv.arr(e)?e.every(e=>xX(e,t)):gv.num(e)?e===t:parseFloat(e)===t,xJ=class extends yP{constructor({x:e,y:t,z:n,...r}){let i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(e=>[`translate3d(${e.map(e=>xG(e,"px")).join(",")})`,xX(e,0)])),gx(r,(e,t)=>{if("transform"===t)i.push([e||""]),o.push(e=>[e,""===e]);else if(x$.test(t)){if(delete r[t],gv.und(e))return;let n=xK.test(t)?"px":xY.test(t)?"deg":"";i.push(gb(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${xG(i,n)})`,xX(i,0)]:e=>[`${t}(${e.map(e=>xG(e,n)).join(",")})`,xX(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new xQ(i,o)),super(r)}},xQ=class extends g7{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return gy(this.inputs,(n,r)=>{let i=g5(n[0]),[o,a]=this.transforms[r](gv.arr(i)?i:n.map(g5));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){1==e&&gy(this.inputs,e=>gy(e,e=>g3(e)&&ye(e,this)))}observerRemoved(e){0==e&&gy(this.inputs,e=>gy(e,e=>g3(e)&&yt(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),g8(this,e)}};v5.assign({batchedUpdates:to.unstable_batchedUpdates,createStringInterpolator:yd,colors:{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}});var x0=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new yP(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{let t=yV(e)||"Anonymous";return(e=gv.str(e)?o[e]||(o[e]=yL(e,i)):e[yz]||(e[yz]=yL(e,i))).displayName=`Animated(${t})`,e};return gx(e,(t,n)=>{gv.arr(e)&&(n=yV(t)),o[n]=o(t)}),{animated:o}})(["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"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:i,scrollTop:o,scrollLeft:a,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(t=>n||e.hasAttribute(t)?t:xH[t]||(xH[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==i&&(e.textContent=i),r)if(r.hasOwnProperty(t)){var d;let n=null==(d=r[t])||"boolean"==typeof d||""===d?"":"number"!=typeof d||0===d||xB.test(t)||xU.hasOwnProperty(t)&&xU[t]?(""+d).trim():d+"px";xB.test(t)?e.style.setProperty(t,n):e.style[t]=n}c.forEach((t,n)=>{e.setAttribute(t,u[n])}),void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new xJ(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated,x1=n(23442),x2=(0,x.createContext)({});function x4(e){var t=e.x,n=e.y,r=e.dx,i=e.dy,o=e.children,a=(0,x.useMemo)(function(){return{x:t,y:n,dx:r,dy:i}},[t,n,r,i]);return x.createElement(x2.Provider,{value:a},o)}function x3(){return(x3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,be),p=(0,x.useContext)(x8)||{},m=p.innerHeight,v=p.innerWidth,g=p.margin,y=p.xScale,b=p.yScale,w=p.dataRegistry,j=(0,x.useMemo)(function(){return y?x7(y):0},[y]),k=(0,x.useMemo)(function(){return b?x7(b):0},[b]);if((!s||!l)&&!a)return console.warn("[@visx/xychart/BaseAnnotation]: dataKey or x/yAccessors must be specified."),null;var E=s&&l||null==a?null:null==w?void 0:w.get(a),S=s||(null==E?void 0:E.xAccessor),_=l||(null==E?void 0:E.yAccessor);if(!y||!b||!v||!m||!S||!_||!g)return null;var C=(null!=(t=(0,p0.Z)(y(S(o))))?t:NaN)+j/2,O=(null!=(n=(0,p0.Z)(b(_(o))))?n:NaN)+k/2,M=C+c+16>g.left+v?-c:c,T=O+f+16>g.top+m?-f:f;return x9(C)&&x9(O)?x.createElement(r,bt({width:v,height:m},h,{x:C,y:O,dx:M,dy:T}),i):null}bn.propTypes={dataKey:p$().string,xAccessor:p$().func,yAccessor:p$().func};var br=["x","y","AnnotationComponent"],bi=["editable"];function bo(){return(bo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function bs(e){var t=e.x,n=void 0===t?0:t,r=e.y,i=void 0===r?0:r,o=e.AnnotationComponent,a=ba(e,br),s=(0,x.useRef)({x:n,y:i}),l=xR({from:{x:s.current.x-n,y:s.current.y-i},to:{x:0,y:0},reset:!0});return(0,x.useEffect)(function(){s.current={x:n,y:i}},[n,i]),x.createElement(x0.g,{transform:xI([l.x,l.y],function(e,t){return"translate("+e+", "+t+")"})},x.createElement(o,bo({x:n,y:i},a)))}function bl(e){var t=e.editable,n=ba(e,bi),r=(0,x.useCallback)(function(e){return x.createElement(bs,bo({AnnotationComponent:t?x6:x4},e))},[t]);return x.createElement(bn,bo({AnnotationComponent:r},n))}bl.propTypes={editable:p$().bool};var bu=n(12766),bc=n(54073),bd=n.n(bc),bf=["d","stroke","fill"];function bh(){return(bh=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,bf),o=(0,x.useRef)(t),a=(0,x.useCallback)(bd()(function(e){o.current=e},50),[]),s=(0,bu.interpolatePath)(o.current,t);a(t);var l=xR({from:{t:0},to:{t:1},reset:!0,delay:0}).t,u=xR({stroke:void 0===n?"transparent":n,fill:void 0===r?"transparent":r});return x.createElement(x0.path,bh({className:"visx-path",d:l.to(s),stroke:u.stroke,fill:u.fill},i))}var bm=n(12935),bv=n(12151);function bg(){return(bg=Object.assign?Object.assign.bind():function(e){for(var t=1;tt?1:e>=t?0:NaN}function bO(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;0>n(e[o],t)?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>bC(e(t),n)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);let a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}let bM=bO(bC);bM.right;let bT=bM.left;function bA(e){var t,n,r=e.scale,i=e.accessor,o=e.scaledValue,a=e.data;if("invert"in r&&"function"==typeof r.invert){var s=bO(i).left,l=Number(r.invert(o)),u=s(a,l),c=a[u-1],d=a[u];n=(t=!c||Math.abs(l-i(c))>Math.abs(l-i(d))?d:c)===c?u-1:u}else{if(!("step"in r)||void 0===r.step)return console.warn("[visx/xychart/findNearestDatum] encountered incompatible scale type, bailing"),null;var f=r.domain(),h=r.range().map(Number),p=[].concat(h).sort(function(e,t){return e-t}),m=bT(function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=Array(i);++r=0||(i[n]=e[n]);return i}(e,bH),C=(0,x.useContext)(x8),O=C.colorScale,M=C.theme,T=C.horizontal,A=(0,x.useMemo)(function(){return w?bx(j,w):void 0},[j,w]),P=(0,x.useMemo)(function(){return bx(j,b)},[j,b]),N=(0,x.useMemo)(function(){return E?bx(S,E):void 0},[S,E]),R=(0,x.useMemo)(function(){return bx(S,k)},[S,k]),D=(0,x.useCallback)(function(e){return x9(j(b(e)))&&x9(S(k(e)))},[j,b,S,k]),L=null!=(t=null!=(n=null==O?void 0:O(l))?n:null==M?void 0:null==(r=M.colors)?void 0:r[0])?t:"#222",F="AREASERIES_EVENT_SOURCE-"+l,z=bz({dataKey:l,enableEvents:void 0===v||v,onBlur:c,onFocus:d,onPointerMove:f,onPointerOut:h,onPointerUp:p,onPointerDown:m,source:F,allowedSources:[bw,F]}),V=(0,x.useMemo)(function(){var e=bb(T?j:S);return T?{x0:null!=A?A:e,x1:P,y:R}:{x:P,y0:null!=N?N:e,y1:R}},[j,S,T,P,R,A,N]),Z=!!(d||c),I=(0,x.useCallback)(function(e){var t=e.glyphs;return Z?t.map(function(e){return x.createElement(x.Fragment,{key:e.key},bB(bU({},e,{color:"transparent",onFocus:z.onFocus,onBlur:z.onBlur})))}):null},[Z,z.onFocus,z.onBlur]);return x.createElement(x.Fragment,null,x.createElement(bm.Z,bU({},V,_,{curve:a,defined:D}),function(e){var t=e.path;return x.createElement(o,bU({className:"visx-area",stroke:"transparent",fill:L,strokeLinecap:"round"},_,{d:t(s)||""},z))}),y&&x.createElement(bv.Z,bU({x:P,y:R,defined:D,curve:a},u),function(e){var t=e.path;return x.createElement(o,bU({className:"visx-line",fill:"transparent",stroke:L,strokeWidth:2,pointerEvents:"none",strokeLinecap:"round"},u,{d:t(s)||""}))}),Z&&x.createElement(bZ,{dataKey:l,data:s,xAccessor:b,yAccessor:k,xScale:j,yScale:S,renderGlyphs:I}))}bW.propTypes={renderLine:p$().bool};var bq=by(bW);function b$(){return(b$=Object.assign?Object.assign.bind():function(e){for(var t=1;t1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o=0;)n[t]=t;return n}function b0(e,t){return e[t]}function b1(e){let t=[];return t.key=e,t}Array.prototype.slice;var b2=n(74322),b4=n(58543);function b3(e,t){let n,r;if(void 0===t)for(let t of e)null!=t&&(void 0===n?t>=t&&(n=r=t):(n>t&&(n=t),r=o&&(n=r=o):(n>o&&(n=o),r=0?"positiveSum":"negativeSum"]+=i})}}),Object.values(e)},[o,l]),d=(0,x.useMemo)(function(){var e=r?null:c.some(function(e){return e.negativeSum<0}),t=function(){var e=bX([]),t=bQ,n=bJ,r=b0;function i(i){var o,a,s,l=Array.from(e.apply(this,arguments),b1),u=l.length,c=-1;for(let e of i)for(a=0,++c;a0&&0===r&&(o?i.xScale=function(e){return e.domain(b3(e.domain().concat(f)))}:i.yScale=function(e){return e.domain(b3(e.domain().concat(f)))}),i}).filter(function(e){return e}))),function(){return s(u)}},[u,f,o,d,a,s,l]),{seriesChildren:l,dataKeys:u,stackedData:d}}function we(e,t,n){var r,i,o,a,s=e.xScale,l=e.yScale,u=e.point,c=(n?bN:bP)(e),d=(null==c?void 0:c.index)==null?null:t[c.index];return c&&d&&u?{index:c.index,datum:d,distanceX:n&&u.x>=(null!=(r=s((0,bG.l8)(c.datum)))?r:1/0)&&u.x<=(null!=(i=s((0,bG.xf)(c.datum)))?i:-1/0)?0:c.distanceX,distanceY:n?c.distanceY:u.y<=(null!=(o=l((0,bG.l8)(c.datum)))?o:-1/0)&&u.y>=(null!=(a=l((0,bG.xf)(c.datum)))?a:1/0)?0:c.distanceY}:null}var wt=["data","dataKey","xAccessor","yAccessor","curve","PathComponent","lineProps","renderLine"];function wn(){return(wn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(a,wt)),u=wn({fill:null!=(n=null!=(r=null==g?void 0:g(e.key))?r:null==k?void 0:null==(i=k.colors)?void 0:i[0])?n:"#222"},l);return{key:t+"-"+e.key,accessors:O,data:e,areaProps:u,lineProps:s}})},[C,O,g,_,k]),T=(0,x.useCallback)(function(e){var t,n,r=null==(t=_.find(function(t){return t.props.dataKey===e.dataKey}))?void 0:null==(n=t.props)?void 0:n.data;return r?we(e,r,b):null},[_,b]),A="AREASTACK_EVENT_SOURCE-"+S.join("-"),P=bz({dataKey:S,enableEvents:void 0===o||o,findNearestDatum:T,onBlur:s,onFocus:l,onPointerMove:u,onPointerOut:c,onPointerUp:d,onPointerDown:f,source:A,allowedSources:[bw,A]}),N=!!(l||s),R=(0,x.useCallback)(function(e){var t=e.glyphs;return N?t.map(function(e){return x.createElement(x.Fragment,{key:e.key},bB(wn({},e,{color:"transparent",onFocus:P.onFocus,onBlur:P.onBlur})))}):null},[N,P.onFocus,P.onBlur]);return!S.some(function(e){return null==y.get(e)})&&w&&j&&g?x.createElement("g",{className:"visx-area-stack"},M.map(function(e){return x.createElement(bm.Z,wn({key:e.key,curve:i},e.accessors),function(t){var r=t.path;return x.createElement(n,wn({className:"visx-area",stroke:"transparent",d:r(e.data)||""},e.areaProps,P))})}),m&&M.map(function(e){return x.createElement(bY.Z,wn({key:"line-"+e.key,x:e.accessors.x||e.accessors.x1,y:e.accessors.y||e.accessors.y1,defined:e.accessors.defined,curve:i},e.lineProps),function(t){var r=t.path;return x.createElement(n,wn({className:"visx-line",fill:"transparent",stroke:e.areaProps.fill,strokeWidth:2,pointerEvents:"none"},e.lineProps,{d:r(e.data)||""}))})}),N&&M.map(function(e,t){var n=M[M.length-t-1];return x.createElement(bZ,{key:"glyphs-"+n.key,dataKey:n.key,data:n.data,xAccessor:n.accessors.x||n.accessors.x1,yAccessor:n.accessors.y||n.accessors.y1,xScale:wr,yScale:wr,renderGlyphs:R})})):null}function wo(){return(wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wl),c=(0,x.useContext)(x8),d=c.theme,f=c.xScale,h=c.yScale,p=c.margin,m=c.width,v=c.height,g=u.orientation,y=(0,x.useMemo)(function(){var e,t,n,r;return"left"===g||"right"===g?null==d?void 0:null==(e=d.axisStyles)?void 0:null==(t=e.y)?void 0:t[g]:null==d?void 0:null==(n=d.axisStyles)?void 0:null==(r=n.x)?void 0:r[g]},[d,g]),b=u.tickLabelProps,w=(0,x.useMemo)(function(){return b||y?function(e,t,n){return wu({},null==y?void 0:y.tickLabel,{width:"left"===g||"right"===g?null==p?void 0:p[g]:void 0},null==b?void 0:b(e,t,n))}:void 0},[b,y,g,p]),j="bottom"===g?(null!=v?v:0)-(null!=(t=null==p?void 0:p.bottom)?t:0):"top"===g&&null!=(n=null==p?void 0:p.top)?n:0,k="left"===g?null!=(r=null==p?void 0:p.left)?r:0:"right"===g?(null!=m?m:0)-(null!=(i=null==p?void 0:p.right)?i:0):0,E="left"===g||"right"===g?h:f;return E?x.createElement(l,wu({top:j,left:k,labelProps:null==y?void 0:y.axisLabel,stroke:null==y?void 0:null==(o=y.axisLine)?void 0:o.stroke,strokeWidth:null==y?void 0:null==(a=y.axisLine)?void 0:a.strokeWidth,tickLength:null==y?void 0:y.tickLength,tickStroke:null==y?void 0:null==(s=y.tickLine)?void 0:s.stroke},u,{tickLabelProps:w,scale:E})):null}function wd(){return(wd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=h&&l.y<=p;return wp({},u,{distanceX:0,distanceY:m?0:Math.abs(l.y-(h+p)/2)})}var v=a(i(u.datum)),g=(null!=v?v:1/0)+(null!=c?c:1/0),y=g+d,x=l.x>=g&&l.x<=y;return wp({},u,{distanceY:0,distanceX:x?0:Math.abs(l.x-(g+y)/2)})}(e,E,v)},[E,v]),_="BARGROUP_EVENT_SOURCE-"+k.join("-")+"}",C=bz({dataKey:k,enableEvents:void 0===f||f,findNearestDatum:S,onBlur:a,onFocus:s,onPointerMove:l,onPointerOut:u,onPointerUp:c,onPointerDown:d,source:_,allowedSources:[bw,_]}),O=(0,x.useMemo)(function(){return b?bb(b):0},[b]),M=(0,x.useMemo)(function(){return w?bb(w):0},[w]),T=k.map(function(e){return m.get(e)});if(T.some(function(e){return null==e})||!b||!w||!p)return null;var A=x7(E),P=T.map(function(e){var t,n=e.xAccessor,r=e.yAccessor,i=e.data,o=e.key,a=function(e){var t,i;return v?(null!=(t=b(n(e)))?t:NaN)-O:(null!=(i=w(r(e)))?i:NaN)-M},s=v?function(e){var t;return null!=(t=w(r(e)))?t:NaN}:function(e){var t;return null!=(t=b(n(e)))?t:NaN},l=null!=(t=E(o))?t:0,u=v?function(e){return O+Math.min(0,a(e))}:function(e){return s(e)+l},c=v?function(e){return s(e)+l}:function(e){return M+Math.min(0,a(e))},d=v?function(e){return Math.abs(a(e))}:function(){return A},f=v?function(){return A}:function(e){return Math.abs(a(e))},h=j.find(function(e){return e.props.dataKey===o}),m=(null==h?void 0:h.props)||{},g=m.colorAccessor;return{key:o,radius:m.radius,radiusAll:m.radiusAll,radiusBottom:m.radiusBottom,radiusLeft:m.radiusLeft,radiusRight:m.radiusRight,radiusTop:m.radiusTop,bars:i.map(function(e,t){var n,r=u(e);if(!x9(r))return null;var i=c(e);if(!x9(i))return null;var a=d(e);if(!x9(a))return null;var s=f(e);return x9(s)?{key:o+"-"+t,x:r,y:i,width:a,height:s,fill:null!=(n=null==g?void 0:g(e,t))?n:p(o)}:null}).filter(function(e){return e})}});return x.createElement("g",{className:"visx-bar-group"},P.map(function(e){return e&&x.createElement(o,wm({horizontal:v,xScale:b,yScale:w},e,C,{key:e.key}))}))}wv.propTypes={children:p$().node.isRequired,padding:p$().number,sortBars:p$().func};var wg=n(10897),wy=function(e){return!!(null==e?void 0:e.includes("url("))},wx=function(e){return wy(e)?"rgba(0,0,0,0.1)":e},wb=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"],ww=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"];function wj(){return(wj=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function wE(e){return{x:e.x,y:e.y,width:e.width,height:e.height,fill:wx(e.fill),opacity:1}}function wS(e){var t=e.bars,n=(e.xScale,e.yScale,e.horizontal,e.radius),r=e.radiusAll,i=e.radiusTop,o=e.radiusRight,a=e.radiusBottom,s=e.radiusLeft,l=wk(e,wb);return x.createElement(x.Fragment,null,t.map(function(e){var t=e.key,u=e.fill,c=e.x,d=e.y,f=e.width,h=e.height;return x.createElement(wg.Z,{key:t,x:c,y:d,width:f,height:h,radius:n,all:r,top:i,right:o,bottom:a,left:s},function(e){var t=e.path;return x.createElement(bp,wj({className:"visx-bar visx-bar-rounded",d:t,fill:u},l))})}))}function w_(e){var t,n,r,i=e.bars,o=e.xScale,a=e.yScale,s=e.horizontal,l=(e.radius,e.radiusAll,e.radiusTop,e.radiusRight,e.radiusBottom,e.radiusLeft,wk(e,ww)),u=xD(i,wj({},(n=(t={horizontal:s,scale:s?o:a}).scale,r=!!t.horizontal,(0,x.useMemo)(function(){var e=bb(n);function t(t){var n=t.x,i=t.y,o=t.width,a=t.height;return{x:r?null!=e?e:0:n,y:r?i:null!=e?e:0,width:r?0:o,height:r?a:0,fill:wx(t.fill),opacity:0}}return{unique:!0,from:t,leave:t,enter:wE,update:wE,keys:function(e){return e.key}}},[n,r])))),c=!!(l.onFocus||l.onBlur);return x.createElement(x.Fragment,null,u(function(e,t,n){var r=e.x,i=e.y,o=e.width,a=e.height,s=e.fill,u=e.opacity,d=n.key;return null==t||null==d?null:x.createElement(x0.rect,wj({key:d,tabIndex:c?0:void 0,className:"visx-bar",x:r,y:i,width:o,height:a,fill:wy(t.fill)?t.fill:s,opacity:u},l))}))}function wC(e){return null==e.radius?x.createElement(w_,e):x.createElement(wS,wj({},e,{radius:e.radius}))}function wO(){return(wO=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wT),j=(0,x.useContext)(x8),k=j.colorScale,E=j.horizontal,S=j.theme,_=j.innerWidth,C=j.innerHeight,O=(0,x.useMemo)(function(){return bx(g,v)},[g,v]),M=(0,x.useMemo)(function(){return bx(b,y)},[b,y]),T=x7(E?b:g)||(E?void 0===C?0:C:void 0===_?0:_)/s.length*(1-Math.min(1,Math.max(0,void 0===o?.1:o))),A=(0,x.useMemo)(function(){return g?bb(g):0},[g]),P=(0,x.useMemo)(function(){return b?bb(b):0},[b]),N=null!=(t=null!=(n=null==k?void 0:k(l))?n:null==S?void 0:null==(r=S.colors)?void 0:r[0])?t:"#222",R=(0,x.useMemo)(function(){var e=E?0:-T/2,t=E?-T/2:0;return s.map(function(n,r){var i,o=O(n)+e;if(!x9(o))return null;var s=M(n)+t;if(!x9(s))return null;var l=E?o-A:s-P;return x9(l)?{key:""+r,x:E?A+Math.min(0,l):o,y:E?s:P+Math.min(0,l),width:E?Math.abs(l):T,height:E?T:Math.abs(l),fill:null!=(i=null==a?void 0:a(n,r))?i:N}:null}).filter(function(e){return e})},[T,N,a,s,O,M,E,A,P]),D="BARSERIES_EVENT_SOURCE-"+l,L=bz({dataKey:l,enableEvents:void 0===m||m,onBlur:u,onFocus:c,onPointerMove:d,onPointerOut:f,onPointerUp:h,onPointerDown:p,source:D,allowedSources:[bw,D]});return x.createElement("g",{className:"vx-bar-series"},x.createElement(i,wA({bars:R,horizontal:E,xScale:g,yScale:b},L,w)))}wP.propTypes={barPadding:p$().number,colorAccessor:p$().func};var wN=by(wP),wR=["colorAccessor"];function wD(){return(wD=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wR);return x.createElement(wN,wD({},n,{colorAccessor:t,BarsComponent:wC}))}var wF=n(15590);function wz(){return(wz=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wU),i=(0,x.useCallback)(function(e){return x.createElement(wH,wW({},e,{renderGlyph:n}))},[n]);return x.createElement(bI,wW({},r,{renderGlyphs:i}))}var w$=n(93353),wK=n(63962),wY=["rows","columns","GridRowsComponent","GridColumnsComponent"];function wG(){return(wG=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wY),l=(0,x.useContext)(x8),u=l.theme,c=l.xScale,d=l.yScale,f=l.margin,h=l.innerWidth,p=l.innerHeight,m=null==u?void 0:u.gridStyles;return x.createElement(x.Fragment,null,n&&d&&null!=h&&x.createElement(o,wG({left:null==f?void 0:f.left,lineStyle:m,width:h,scale:d},s)),i&&c&&null!=p&&x.createElement(a,wG({top:null==f?void 0:f.top,lineStyle:m,height:p,scale:c},s)))}wX.propTypes={rows:p$().bool,columns:p$().bool};var wJ=["animationTrajectory"];function wQ(){return(wQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wJ),r=(0,x.useMemo)(function(){return function(e){return x.createElement(w$.Z,wQ({},e,{animationTrajectory:t}))}},[t]),i=(0,x.useMemo)(function(){return function(e){return x.createElement(wK.Z,wQ({},e,{animationTrajectory:t}))}},[t]);return x.createElement(wX,wQ({GridRowsComponent:r,GridColumnsComponent:i},n))}var w1=["colorAccessor","curve","data","dataKey","onBlur","onFocus","onPointerMove","onPointerOut","onPointerUp","onPointerDown","enableEvents","xAccessor","xScale","yAccessor","yScale","PathComponent"];function w2(){return(w2=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,w1),k=(0,x.useContext)(x8),E=k.colorScale,S=k.theme,_=(0,x.useMemo)(function(){return bx(v,m)},[v,m]),C=(0,x.useMemo)(function(){return bx(y,g)},[y,g]),O=(0,x.useCallback)(function(e){return x9(v(m(e)))&&x9(y(g(e)))},[v,m,y,g]),M=null!=(t=null!=(n=null==E?void 0:E(s))?n:null==S?void 0:null==(r=S.colors)?void 0:r[0])?t:"#222",T="LINESERIES_EVENT_SOURCE-"+s,A=bz({dataKey:s,enableEvents:void 0===p||p,onBlur:l,onFocus:u,onPointerMove:c,onPointerOut:d,onPointerUp:f,onPointerDown:h,source:T,allowedSources:[bw,T]}),P=!!(u||l),N=(0,x.useCallback)(function(e){var t=e.glyphs;return P?t.map(function(e){return x.createElement(x.Fragment,{key:e.key},bB(w2({},e,{color:"transparent",onFocus:A.onFocus,onBlur:A.onBlur})))}):null},[P,A.onFocus,A.onBlur]);return x.createElement(x.Fragment,null,x.createElement(bv.Z,w2({x:_,y:C,defined:O,curve:o},j),function(e){var t,n=e.path;return x.createElement(w,w2({stroke:null!=(t=null==i?void 0:i(s))?t:M,strokeWidth:2,fill:"transparent",strokeLinecap:"round"},j,{d:n(a)||""},A))}),P&&x.createElement(bZ,{dataKey:s,data:a,xAccessor:m,yAccessor:g,xScale:v,yScale:y,renderGlyphs:N}))}w4.propTypes={colorAccessor:p$().func};var w3=by(w4);function w5(){return(w5=Object.assign?Object.assign.bind():function(e){for(var t=1;tw9.every(n=>e[n]===t[n]);function jt(e,t){return(jt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var jn=function(e){function t(){return e.apply(this,arguments)||this}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,jt(t,e);var n=t.prototype;return n.componentWillUnmount=function(){this.node&&document.body&&(document.body.removeChild(this.node),delete this.node)},n.render=function(){return(this.node||"undefined"==typeof document||(this.node=document.createElement("div"),null!=this.props.zIndex&&(this.node.style.zIndex=""+this.props.zIndex),document.body.append(this.node)),this.node)?to.createPortal(this.props.children,this.node):null},t}(x.PureComponent);jn.propTypes={zIndex:p$().oneOfType([p$().number,p$().string])};var jr=["detectBounds","zIndex"],ji=["left","top","detectBounds","zIndex"];function jo(){return(jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var js=["debounce","detectBounds","horizontalCrosshairStyle","glyphStyle","renderTooltip","renderGlyph","resizeObserverPolyfill","scroll","showDatumGlyph","showHorizontalCrosshair","showSeriesGlyphs","showVerticalCrosshair","snapTooltipToDatumX","snapTooltipToDatumY","verticalCrosshairStyle","zIndex"],jl=["x","y"];function ju(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function jc(){return(jc=Object.assign?Object.assign.bind():function(e){for(var t=1;t(f.current=!0,()=>void(f.current=!1)));let[h,p,m]=(0,x.useMemo)(()=>{let e=()=>{if(!u.current.element)return;let{left:e,top:t,width:n,height:r,bottom:i,right:a,x:s,y:c}=u.current.element.getBoundingClientRect(),d={left:e,top:t,width:n,height:r,bottom:i,right:a,x:s,y:c};u.current.element instanceof HTMLElement&&o&&(d.height=u.current.element.offsetHeight,d.width=u.current.element.offsetWidth),Object.freeze(d),f.current&&!je(u.current.lastBounds,d)&&l(u.current.lastBounds=d)};return[e,d?w7()(e,d):e,c?w7()(e,c):e]},[l,o,c,d]);function v(){u.current.scrollContainers&&(u.current.scrollContainers.forEach(e=>e.removeEventListener("scroll",m,!0)),u.current.scrollContainers=null),u.current.resizeObserver&&(u.current.resizeObserver.disconnect(),u.current.resizeObserver=null)}function g(){u.current.element&&(u.current.resizeObserver=new a(m),u.current.resizeObserver.observe(u.current.element),r&&u.current.scrollContainers&&u.current.scrollContainers.forEach(e=>e.addEventListener("scroll",m,{capture:!0,passive:!0})))}return t=!!r,(0,x.useEffect)(()=>{if(t)return window.addEventListener("scroll",m,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",m,!0)},[m,t]),(0,x.useEffect)(()=>(window.addEventListener("resize",p),()=>void window.removeEventListener("resize",p)),[p]),(0,x.useEffect)(()=>{v(),g()},[r,m,p]),(0,x.useEffect)(()=>v,[]),[e=>{e&&e!==u.current.element&&(v(),u.current.element=e,u.current.scrollContainers=function e(t){let n=[];if(!t||t===document.body)return n;let{overflow:r,overflowX:i,overflowY:o}=window.getComputedStyle(t);return[r,i,o].some(e=>"auto"===e||"scroll"===e)&&n.push(t),[...n,...e(t.parentElement)]}(e),g())},s,h]}(ja(ei,jr)))[0],ec=el[1],ed=el[2],ef=(0,x.useMemo)(function(){return function(e){var t=e.left,n=e.top,r=e.detectBounds,i=e.zIndex,o=ja(e,ji),a=null==i?es:i,s=(null==r?ea:r)?mg:ml,l=(void 0===t?0:t)+(ec.left||0)+window.scrollX,u=(void 0===n?0:n)+(ec.top||0)+window.scrollY;return x.createElement(jn,{zIndex:a},x.createElement(s,jo({left:l,top:u},o)))}},[ea,es,ec.left,ec.top]),{containerRef:eu,containerBounds:ec,forceRefreshBounds:ed,TooltipInPortal:ef}),L=D.containerRef,F=D.TooltipInPortal,z=D.forceRefreshBounds,V=(0,x.useCallback)(function(e){var t;L(null!=(t=null==e?void 0:e.parentElement)?t:null)},[L]),Z=null!=R&&R.tooltipOpen?o(jc({},R,{colorScale:_})):null,I=(null==R?void 0:R.tooltipOpen)&&null!=Z,B=(0,x.useRef)(!1);(0,x.useEffect)(function(){I&&!B.current&&z(),B.current=I},[I,z]);var H=null==R?void 0:R.tooltipLeft,U=null==R?void 0:R.tooltipTop,W=A?x7(A):0,q=P?x7(P):0,$=(0,x.useCallback)(function(e,t){var n,r,i=null==N?void 0:N.get(e),o=null==i?void 0:i.xAccessor,a=null==i?void 0:i.yAccessor;return{left:A&&o?null!=(n=Number(A(o(t)))+W/2)?n:0:void 0,top:P&&a?null!=(r=Number(P(a(t)))+q/2)?r:0:void 0}},[N,W,q,A,P]),K=null==R?void 0:null==(eh=R.tooltipData)?void 0:eh.nearestDatum,Y=null!=(ep=null==K?void 0:K.key)?ep:"";if(I&&K&&(y||w)){var G=$(Y,K.datum),X=G.left,J=G.top;H=y&&x9(X)?X:H,U=w&&x9(J)?J:U}var Q=[];if(I&&(void 0!==c&&c||p)){var ee=Number(null!=(e_=null==i?void 0:i.radius)?e_:4);if(p)Object.values(null!=(eC=null==R?void 0:null==(eO=R.tooltipData)?void 0:eO.datumByKey)?eC:{}).forEach(function(e){var t,n,r,o=e.key,a=e.datum,s=e.index,l=null!=(t=null!=(n=null==_?void 0:_(o))?n:null==C?void 0:null==(r=C.htmlLabel)?void 0:r.color)?t:"#222",u=$(o,a),c=u.left,d=u.top;x9(c)&&x9(d)&&Q.push({key:o,color:l,datum:a,index:s,size:ee,x:c,y:d,glyphStyle:i,isNearestDatum:!!K&&K.key===o})});else if(K){var et=$(Y,K.datum),en=et.left,er=et.top;if(x9(en)&&x9(er)){var ei,eo,ea,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,ex,eb,ew,ej,ek,eE,eS,e_,eC,eO,eM,eT,eA,eP,eN,eR,eD=null!=(eM=null!=(eT=null!=(eA=null!=(eP=Y&&(null==_?void 0:_(Y)))?eP:null)?eA:null==C?void 0:null==(eN=C.gridStyles)?void 0:eN.stroke)?eT:null==C?void 0:null==(eR=C.htmlLabel)?void 0:eR.color)?eM:"#222";Q.push({key:Y,color:eD,datum:K.datum,index:K.index,size:ee,x:en,y:er,glyphStyle:i,isNearestDatum:!0})}}}return x.createElement(x.Fragment,null,x.createElement("svg",{ref:V,style:jf}),I&&x.createElement(x.Fragment,null,v&&x.createElement(F,{className:"visx-crosshair visx-crosshair-vertical",left:H,top:null==T?void 0:T.top,offsetLeft:0,offsetTop:0,detectBounds:!1,style:jd},x.createElement("svg",{width:"1",height:O,overflow:"visible"},x.createElement("line",jc({x1:0,x2:0,y1:0,y2:O,strokeWidth:1.5,stroke:null!=(em=null!=(ev=null==C?void 0:null==(eg=C.gridStyles)?void 0:eg.stroke)?ev:null==C?void 0:null==(ey=C.htmlLabel)?void 0:ey.color)?em:"#222"},j)))),f&&x.createElement(F,{className:"visx-crosshair visx-crosshair-horizontal",left:null==T?void 0:T.left,top:U,offsetLeft:0,offsetTop:0,detectBounds:!1,style:jd},x.createElement("svg",{width:M,height:"1",overflow:"visible"},x.createElement("line",jc({x1:0,x2:M,y1:0,y2:0,strokeWidth:1.5,stroke:null!=(ex=null!=(eb=null==C?void 0:null==(ew=C.gridStyles)?void 0:ew.stroke)?eb:null==C?void 0:null==(ej=C.htmlLabel)?void 0:ej.color)?ex:"#222"},r)))),Q.map(function(e,t){var n=e.x,r=e.y,i=ju(e,jl);return x.createElement(F,{key:t,className:"visx-tooltip-glyph",left:n,top:r,offsetLeft:0,offsetTop:0,detectBounds:!1,style:jd},x.createElement("svg",{overflow:"visible"},s(jc({x:0,y:0},i))))}),x.createElement(F,jc({left:H,top:U,style:jc({},ms,{background:null!=(ek=null==C?void 0:C.backgroundColor)?ek:"white",boxShadow:"0 1px 2px "+(null!=C&&null!=(eE=C.htmlLabel)&&eE.color?(null==C?void 0:null==(eS=C.htmlLabel)?void 0:eS.color)+"55":"#22222255")},null==C?void 0:C.htmlLabel)},E),Z)))}function jv(e){var t=(0,x.useContext)(bj);return null!=t&&t.tooltipOpen?x.createElement(jm,e):null}function jg(e){var t=e.children,n=(0,x.useMemo)(function(){var e;return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map(function(e){e(n)}),(e.get("*")||[]).slice().map(function(e){e(t,n)})}}},[]);return x.createElement(bk.Provider,{value:n},t)}function jy(){return(jy=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(t,mr);return mi({},e(n),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:e.tooltipLeft,tooltipTop:e.tooltipTop,tooltipData:e.tooltipData})},[r]),o=(0,x.useCallback)(function(){return r({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})},[r]),{tooltipOpen:n.tooltipOpen,tooltipLeft:n.tooltipLeft,tooltipTop:n.tooltipTop,tooltipData:n.tooltipData,updateTooltip:r,showTooltip:i,hideTooltip:o}),c=u.tooltipOpen,d=u.tooltipLeft,f=u.tooltipTop,h=u.tooltipData,p=u.updateTooltip,m=u.hideTooltip,v=(0,x.useRef)(null),g=(0,x.useRef)(function(e){var t=e.svgPoint,n=e.index,r=e.key,i=e.datum,o=e.distanceX,a=e.distanceY;v.current&&(v.current.cancel(),v.current=null);var s=Math.sqrt(Math.pow(x9(o)?o:1/0,2)+Math.pow(x9(a)?a:1/0,2));p(function(e){var o,a,l,u=e.tooltipData,c=null!=u&&u.nearestDatum&&x9(u.nearestDatum.distance)?u.nearestDatum.distance:1/0;return{tooltipOpen:!0,tooltipLeft:null==t?void 0:t.x,tooltipTop:null==t?void 0:t.y,tooltipData:{nearestDatum:(null!=(o=null==u?void 0:null==(a=u.nearestDatum)?void 0:a.key)?o:"")!==r&&c0&&o>0&&y({width:m,height:o,margin:l})},[y,m,o,l]);var j=bS({source:bw});return(bF({dataKey:"nearest"===(void 0===h?"nearest":h)?bL:bD,onPointerMove:u,onPointerOut:c,onPointerUp:d,onPointerDown:f,allowedSources:jP}),y)?null==m||null==o?x.createElement(vO.Z,null,function(t){return x.createElement(jN,jT({},e,{width:null==e.width?t.width:e.width,height:null==e.height?t.height:e.height}))}):null==b?x.createElement(jx,null,x.createElement(jN,e)):null==w?x.createElement(jg,null,x.createElement(jN,e)):m>0&&o>0?x.createElement("svg",{width:m,height:o,"aria-label":void 0===t?"XYChart":t},i,r&&x.createElement("rect",jT({x:l.left,y:l.top,width:m-l.left-l.right,height:o-l.top-l.bottom,fill:"transparent"},j))):null:v&&g?x.createElement(jM,{xScale:v,yScale:g,theme:p,initialDimensions:{width:m,height:o,margin:l},horizontal:a},x.createElement(jN,e)):(console.warn("[@visx/xychart] XYChart: When no DataProvider is available in context, you must pass xScale & yScale config to XYChart."),null)}function jR(e){return x.createElement(bq,e)}function jD(e){return x.createElement(wi,e)}function jL(){return(jL=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function jB(e){var t=e.bars,n=(e.horizontal,e.xScale,e.yScale,e.radius),r=e.radiusAll,i=e.radiusTop,o=e.radiusRight,a=e.radiusBottom,s=e.radiusLeft,l=jI(e,jz),u=!!(l.onFocus||l.onBlur);return x.createElement(x.Fragment,null,t.map(function(e){var t=e.key,c=jI(e,jV);return null==n?x.createElement("rect",jZ({key:t,className:"visx-bar",tabIndex:u?0:void 0},c,l)):x.createElement(wg.Z,jZ({key:t,className:"visx-bar",tabIndex:u?0:void 0,radius:n,all:r,top:i,right:o,bottom:a,left:s},c,l))}))}function jH(){return(jH=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jW);return x.createElement(wN,jq({},n,{colorAccessor:t,BarsComponent:jB}))};function jK(){return(jK=Object.assign?Object.assign.bind():function(e){for(var t=1;tr(e),className:"flex flex-col gap-1",children:[(0,y.jsx)(ft,{value:"line",children:"Line"}),(0,y.jsx)(ft,{disabled:p||m,value:"areastack",children:"Area Stack"}),(0,y.jsx)(ft,{disabled:p||m,value:"barstack",children:"Bar Stack"}),(0,y.jsx)(ft,{disabled:p,value:"area",children:"Area"}),(0,y.jsx)(ft,{disabled:p,value:"bargroup",children:"Bar Group"})]})]}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsx)(t1,{weight:"semibold",children:"Stack series offset"}),(0,y.jsxs)(fn,{value:l,onValueChange:e=>u(e),className:"flex flex-col gap-1",children:[(0,y.jsxs)(ft,{disabled:!s,value:"none",children:["None",(0,y.jsx)(fX,{children:"zero-baseline"})]}),(0,y.jsxs)(ft,{disabled:!s,value:"diverging",children:["Diverging",(0,y.jsx)(fX,{children:"non zero-baseline"})]}),(0,y.jsxs)(ft,{disabled:!s,value:"expand",children:["Expand",(0,y.jsx)(fX,{children:"values sum to 1"})]}),(0,y.jsxs)(ft,{disabled:!s,value:"wiggle",children:["Wiggle",(0,y.jsx)(fX,{children:"stream graph"})]})]})]}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsx)(t1,{weight:"semibold",children:"Curve shape"}),(0,y.jsxs)(fn,{value:i,onValueChange:e=>o(e),className:"flex flex-col gap-1",children:[(0,y.jsx)(ft,{disabled:!a,value:"linear",children:"Linear"}),(0,y.jsx)(ft,{disabled:!a,value:"cardinal",children:"Cardinal"}),(0,y.jsx)(ft,{disabled:!a,value:"step",children:"Step"})]})]}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsx)(t1,{weight:"semibold",children:"Axes"}),(0,y.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,y.jsxs)(fn,{value:c,onValueChange:e=>d(e),className:"flex flex-col gap-1",children:[(0,y.jsx)(ft,{value:"bottom",children:"Bottom"}),(0,y.jsx)(ft,{value:"top",children:"Top"})]}),(0,y.jsxs)(fn,{value:f,onValueChange:e=>h(e),className:"flex flex-col gap-2",children:[(0,y.jsx)(ft,{value:"left",children:"Left"}),(0,y.jsx)(ft,{value:"right",children:"Right"})]})]})]})]})})}let ka=(0,x.forwardRef)((e,t)=>{let{className:n}=e;return(0,y.jsxs)("div",{ref:t,className:(0,em.cx)("flex gap-1 items-center",n),children:[(0,y.jsx)(ks,{}),(0,y.jsx)(ks,{}),(0,y.jsx)(ks,{})]})});function ks(){return(0,y.jsx)("div",{className:"w-1 h-1 bg-slate-400 dark:bg-slate-200 rounded-full animate-pulselight [&:nth-child(2)]:animation-delay-500 [&:nth-child(3)]:animation-delay-1000"})}function kl(e){let{id:t,height:n,data:r,config:i,actionsLeft:o,isLoading:a,actionsRight:s,emptyState:l,variant:u="panel",allowConfiguration:c=!0}=e,d=function(e,t,n){let[r,i]=(0,x.useState)(!(0,fq.Tb)()&&!n.disableAnimations),{resolvedTheme:o}=(0,pV.F)(),a=(0,x.useMemo)(()=>"dark"===o?v4:v2,[o]),[s,l]=(0,x.useState)("center"),[u,c]=(0,x.useState)([!1,!1]),[d,f]=u,[h,p]=(0,x.useState)("bottom"),[m,v]=(0,x.useState)("right"),[g,b]=(0,x.useState)(!0),[w,j]=(0,x.useState)(!0),[k,E]=(0,x.useState)(!1),[S,_]=(0,x.useState)(!0),[C,O]=(0,x.useState)(!0),M=n.chartType||"areastack",T=n.curveType||"linear",A=n.stackOffset||"none",[P,N]=(0,x.useState)(M),[R,D]=(0,x.useState)(T),L=["line","area","areastack"].includes(P),F=["barstack","areastack"].includes(P),[z,V]=(0,x.useState)(A),Z=a.xyChartTheme.gridStyles.stroke,[I,B]=(0,x.useState)(!1),[H,U]=(0,x.useState)("star"),W=(0,x.useCallback)(e=>{let{x:t,y:n,size:r,color:i,onPointerMove:o,onPointerOut:a,onPointerUp:s,isNearestDatum:l}=e,u={onPointerMove:o,onPointerOut:a,onPointerUp:s};return"star"===H?(0,y.jsx)(vV,{left:t,top:n,stroke:Z,fill:i,size:10*r,...u}):"circle"===H?(0,y.jsx)(vB,{left:t,top:n,stroke:Z,fill:i,r:r,...u}):"cross"===H?(0,y.jsx)(vq,{left:t,top:n,stroke:Z,fill:i,size:10*r,...u}):(0,y.jsx)("text",{x:t,y:n,dx:"-0.75em",dy:"0.25em",fontSize:14,...u,children:l?"\uD83C\uDF4D":"\uD83C\uDF4C"})},[H,Z]),q=(0,x.useMemo)(()=>{if(t.sort((e,t)=>e.timestamp>t.timestamp?1:-1),0===t.length)return[];let e=t[t.length-1];return"barstack"!==P&&"bargroup"!==P?[...t,{...e,timestamp:e.timestamp+j3(1)}]:t},[P,t]),$=(0,x.useMemo)(()=>{if(q.length<2)return 0;let e=[q[0].timestamp,q[q.length-1].timestamp],t=new Date().getTime();return t>e[0]&&tObject.keys(j2()(t[0],"timestamp")),[t]),Y=(0,x.useMemo)(()=>n.enabledGraph||K,[K,n]),G=(0,x.useMemo)(()=>n.enabledTip||K,[K,n]),X=(0,x.useMemo)(()=>({x:K.reduce((e,t)=>({...e,[t]:e=>e.timestamp}),{}),y:K.reduce((e,t)=>({...e,[t]:e=>e[t]}),{}),date:e=>e.timestamp}),[K]),J=(0,x.useMemo)(()=>({x:{type:"band",paddingInner:L?1:.3},y:{type:"linear"}}),[L]),Q=(0,x.useMemo)(()=>"cardinal"===R&&v$.ZP||"step"===R&&mY.ZP||vK.Z,[R]),ee=(0,x.useMemo)(()=>({top:30,bottom:"top"===h?0:20,right:"right"===m?60:0,left:"left"===m?60:0}),[h,m]);return{id:e,accessors:X,animationTrajectory:s,config:n,scales:J,data:q,curve:Q,chartData:t,numTicks:4,isLine:L,isStack:F,todayOffset:$,initialChartType:M,initialCurveType:T,initialStackOffset:A,chartType:P,curveType:R,keys:K,enabledGraph:Y,enabledTip:G,renderBarGroup:"bargroup"===P,renderBarStack:"barstack"===P,enableTooltipGlyph:I,renderTooltipGlyph:W,renderAreaSeries:"area"===P,renderAreaStack:"areastack"===P,renderLineSeries:"line"===P,sharedTooltip:C,showGridColumns:f,showGridRows:d,showHorizontalCrosshair:k,showTooltip:g,showVerticalCrosshair:w,snapTooltipToDatum:!F&&S,stackOffset:z,theme:a,margin:ee,xAxisOrientation:h,yAxisOrientation:m,setUseAnimatedComponents:i,setAnimationTrajectory:l,setGridProps:c,setXAxisOrientation:p,setYAxisOrientation:v,setShowTooltip:b,setShowVerticalCrosshair:j,setShowHorizontalCrosshair:E,setSnapTooltipToDatum:_,setSharedTooltip:O,setChartType:N,setCurveType:D,setStackOffset:V,setEnableTooltipGlyph:B,setTooltipGlyphComponent:U,...r?{Annotation:bl,AreaSeries:bK,AreaStack:wa,Axis:wf,BarGroup:wM,BarSeries:wL,BarStack:wI,GlyphSeries:wq,Grid:w0,LineSeries:w6,Tooltip:jv,XYChart:jN}:{AreaSeries:jR,AreaStack:jD,Axis:jF,BarGroup:jU,BarSeries:j$,BarStack:jY,Grid:jQ,LineSeries:j0,Tooltip:jv,XYChart:jN}}}(t,r,i),f=(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{className:"flex gap-2 absolute top-3 right-4",children:[s,"panel"===u&&c&&(0,y.jsx)(ko,{...d})]}),(0,y.jsx)("div",{className:"flex gap-2 absolute top-3 left-4",children:o}),(0,y.jsx)(vO.Z,{children:e=>{let{width:t,height:n}=e;return a?(0,y.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,y.jsx)(ka,{className:"scale-150"})}):0===r.length&&l?l:(0,y.jsx)(vA,{...d,width:t,height:n})}})]});return"panel"===u?(0,y.jsx)(t3,{className:"relative p-px",style:{height:n},children:f}):(0,y.jsx)("div",{className:"relative p-px",style:{height:n},children:f})}/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */function ku(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function kc(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]-1?(kd('UA "Edge" => assuming success'),[2,!0]):kD(document.body,e)?(kd("copyUsingTempSelection worked"),[2,!0]):((i=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),i.textContent="temporary element",document.body.appendChild(i),o=kD(i,e),document.body.removeChild(i),o)?(kd("copyUsingTempElem worked"),[2,!0]):(a=e["text/plain"],kd("copyTextUsingDOM"),(s=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),l=s,s.attachShadow&&(kd("Using shadow DOM."),l=s.attachShadow({mode:"open"})),(u=document.createElement("span")).innerText=a,l.appendChild(u),document.body.appendChild(s),kL(u),c=document.execCommand("copy"),kF(),document.body.removeChild(s),c)?(kd("copyTextUsingDOM worked"),[2,!0]):[2,!1]})})}(((n={})["text/plain"]=e,n)))throw Error("writeText() failed");return[2]})})}let kV={data:""},kZ=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||kV,kI=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,kB=/\/\*[^]*?\*\/|\s\s+|\n/g,kH=(e,t)=>{let n="",r="",i="";for(let o in e){let a=e[o];"@"==o[0]?"i"==o[1]?n=o+" "+a+";":r+="f"==o[1]?kH(a,o):o+"{"+kH(a,"k"==o[1]?"":t)+"}":"object"==typeof a?r+=kH(a,t?t.replace(/([^,])+/g,e=>o.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):o):null!=a&&(o=o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=kH.p?kH.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},kU={},kW=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+kW(e[n]);return t}return e},kq=(e,t,n,r,i)=>{var o;let a=kW(e),s=kU[a]||(kU[a]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(a));if(!kU[s]){let t=a!==e?e:(e=>{let t,n=[{}];for(;t=kI.exec(e.replace(kB,""));)t[4]?n.shift():t[3]?n.unshift(n[0][t[3]]=n[0][t[3]]||{}):n[0][t[1]]=t[2];return n[0]})(e);kU[s]=kH(i?{["@keyframes "+s]:t}:t,n?"":"."+s)}return o=kU[s],-1==t.data.indexOf(o)&&(t.data=r?o+t.data:t.data+o),s},k$=(e,t,n)=>e.reduce((e,r,i)=>{let o=t[i];if(o&&o.call){let e=o(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":kH(e,""):!1===e?"":e}return e+r+(null==o?"":o)},"");function kK(e){let t=this||{},n=e.call?e(t.p):e;return kq(n.unshift?n.raw?k$(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,kZ(t.target),t.g,t.o,t.k)}kK.bind({g:1});let kY,kG,kX,kJ=kK.bind({k:1});function kQ(e,t){let n=this||{};return function(){let r=arguments;function i(o,a){let s=Object.assign({},o),l=s.className||i.className;n.p=Object.assign({theme:kG&&kG()},s),n.o=/ *go\d+/.test(l),s.className=kK.apply(n,r)+(l?" "+l:""),t&&(s.ref=a);let u=e;return e[0]&&(u=s.as||e,delete s.as),kX&&u[0]&&kX(s),kY(u,s)}return t?t(i):i}}function k0(){return(k0=Object.assign||function(e){for(var t=1;t-1&&k9.splice(e,1)}},[n]);var i=n.toasts.map(function(t){var n,r,i;return k0({},e,e[t.type],t,{duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==(r=e)?void 0:r.duration)||En[t.type],style:k0({},e.style,null==(i=e[t.type])?void 0:i.style,t.style)})});return k0({},n,{toasts:i})},Ei=function(e){return function(t,n){var r,i=(void 0===(r=e)&&(r="blank"),k0({createdAt:Date.now(),visible:!0,type:r,ariaProps:{role:"status","aria-live":"polite"},message:t,pauseDuration:0},n,{id:(null==n?void 0:n.id)||k4()}));return Et({type:g.UPSERT_TOAST,toast:i}),i.id}},Eo=function(e,t){return Ei("blank")(e,t)};Eo.error=Ei("error"),Eo.success=Ei("success"),Eo.loading=Ei("loading"),Eo.custom=Ei("custom"),Eo.dismiss=function(e){Et({type:g.DISMISS_TOAST,toastId:e})},Eo.remove=function(e){return Et({type:g.REMOVE_TOAST,toastId:e})},Eo.promise=function(e,t,n){var r=Eo.loading(t.loading,k0({},n,null==n?void 0:n.loading));return e.then(function(e){return Eo.success(k2(t.success,e),k0({id:r},n,null==n?void 0:n.success)),e}).catch(function(e){Eo.error(k2(t.error,e),k0({id:r},n,null==n?void 0:n.error))}),e};var Ea=function(e){var t=Er(e),n=t.toasts,r=t.pausedAt;(0,x.useEffect)(function(){if(!r){var e=Date.now(),t=n.map(function(t){if(t.duration!==1/0){var n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(n<0){t.visible&&Eo.dismiss(t.id);return}return setTimeout(function(){return Eo.dismiss(t.id)},n)}});return function(){t.forEach(function(e){return e&&clearTimeout(e)})}}},[n,r]);var i=(0,x.useMemo)(function(){return{startPause:function(){Et({type:g.START_PAUSE,time:Date.now()})},endPause:function(){r&&Et({type:g.END_PAUSE,time:Date.now()})},updateHeight:function(e,t){return Et({type:g.UPDATE_TOAST,toast:{id:e,height:t}})},calculateOffset:function(e,t){var r,i=t||{},o=i.reverseOrder,a=void 0!==o&&o,s=i.gutter,l=void 0===s?8:s,u=i.defaultPosition,c=n.filter(function(t){return(t.position||u)===(e.position||u)&&t.height}),d=c.findIndex(function(t){return t.id===e.id}),f=c.filter(function(e,t){return t * {\n pointer-events: auto;\n }\n"]);return EZ=function(){return e},e}c=x.createElement,kH.p=void 0,kY=c,kG=void 0,kX=void 0;var EI=function(e,t){var n=e.includes("top"),r=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return k0({left:0,right:0,display:"flex",position:"absolute",transition:k3()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY("+t*(n?1:-1)+"px)"},n?{top:0}:{bottom:0},r)},EB=kK(EZ()),EH=function(e){var t=e.reverseOrder,n=e.position,r=void 0===n?"top-center":n,i=e.toastOptions,o=e.gutter,a=e.children,s=e.containerStyle,l=e.containerClassName,u=Ea(i),c=u.toasts,d=u.handlers;return(0,x.createElement)("div",{style:k0({position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none"},s),className:l,onMouseEnter:d.startPause,onMouseLeave:d.endPause},c.map(function(e){var n,i=e.position||r,s=EI(i,d.calculateOffset(e,{reverseOrder:t,gutter:o,defaultPosition:r})),l=e.height?void 0:(n=function(t){d.updateHeight(e.id,t.height)},function(e){e&&setTimeout(function(){n(e.getBoundingClientRect())})});return(0,x.createElement)("div",{ref:l,className:e.visible?EB:"",key:e.id,style:s},"custom"===e.type?k2(e.message,e):a?a(e):(0,x.createElement)(EV,{toast:e,position:i}))}))};let EU=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Eo((0,y.jsx)(t1,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200)):e}),EK(t))},EW=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Eo(e,EK(t))},Eq=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Eo.success((0,y.jsx)(t1,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200),"..."):e}),EK(t))},E$=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Eo.error((0,y.jsx)(t1,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200),"..."):e}),EK(t))};function EK(){let{className:e,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{position:"top-center",duration:6e3,className:(0,em.cx)(t4(),"font-sans font-normal","text-gray-1100 dark:text-white","max-w-[800px] overflow-hidden text-ellipsis","[&>div]:overflow-hidden","[&>div]:flex-1",e),success:{icon:(0,y.jsx)("div",{className:"!flex-none w-5",children:(0,y.jsx)(lo.tEK,{className:"w-5 text-green-600"})})},error:{icon:(0,y.jsx)("div",{className:"!flex-none w-5",children:(0,y.jsx)(lo.Jsc,{className:"w-5 text-red-600"})})},...t}}function EY(){return(0,y.jsx)(EH,{toastOptions:EK()})}let EG=(e,t)=>{let n=t?"Copied ".concat(t," to clipboard"):"Copied to clipboard";EU(n),kz(e)},EX=(e,t,n)=>{EW(t,n),kz(e)};function EJ(e,t){return e?t&&e.length>t?"".concat(e.slice(0,t),"..."):"".concat(e.slice(0,t)):""}function EQ(e){return(e||"").replace(/^addr:/,"").replace(/^txid:/,"").replace(/^fcid:/,"").replace(/^h:/,"").replace(/^scoid:/,"").replace(/^sfoid:/,"").replace(/^key:/,"")}function E0(e,t,n){return t?"".concat(e," ").concat(EJ(t,n)):"".concat(e)}function E1(e,t){return"miner"===t?"minerPayout":"siafundClaim"===t?"siafundClaim":"contract"===t?"contractPayout":"foundation"===t?"foundationSubsidy":e.storageProofs&&e.storageProofs.length>0?"storageProof":e.fileContracts&&e.fileContracts.length>0&&e.fileContractRevisions&&e.fileContractRevisions.length>0?"contractRenewal":e.fileContractRevisions&&e.fileContractRevisions.length>0?"contractRevision":e.fileContracts&&e.fileContracts.length>0?"contractFormation":e.arbitraryData&&e.arbitraryData.length>0&&0===atob(e.arbitraryData[0]).indexOf("HostAnnouncement")?"hostAnnouncement":e.siafundOutputs&&e.siafundOutputs.length>0?"siafund":e.siacoinOutputs&&e.siacoinOutputs.length>0?"siacoin":void 0}let E2={transaction:"transaction",contract:"contract",block:"block",output:"output",address:"address",hostIp:"host",hostPublicKey:"host",ip:"IP"},E4={transaction:"transaction ID",contract:"contract ID",block:"block",output:"output ID",address:"address",hostIp:"host address",hostPublicKey:"host public key",ip:"IP"},E3={siacoin:"siacoin transfer",siafund:"siafund transfer",contractFormation:"contract formation",contractRenewal:"contract renewal",contractRevision:"contract revision",contractPayout:"contract payout",storageProof:"storage proof",minerPayout:"miner payout",siafundClaim:"siafund claim",foundationSubsidy:"foundation subsidy",hostAnnouncement:"host announcement"};function E5(e){return e?E2[e]:void 0}function E6(e){return e?E3[e]:void 0}function E8(e){return e&&["ip","hostIp"].includes(e)?20:12}function E7(e){let{value:t,displayValue:n,type:r,label:i,href:o,maxLength:a,size:s,scaleSize:l,weight:u,color:c="contrast",className:d,siascanUrl:f}=e,h=i||(r?E4[r]:void 0),p=a||E8(r),m=EQ(t),v=n||m,g="".concat(null==v?void 0:v.slice(0,p)).concat(((null==v?void 0:v.length)||0)>p?"...":"");return(0,y.jsxs)("div",{className:(0,em.cx)("flex items-center",d),children:[o?(0,y.jsx)(dt,{href:o,underline:"hover",size:s,scaleSize:l,color:c,weight:u,ellipsis:!0,children:g}):(0,y.jsx)(t1,{size:s,scaleSize:l,color:c,weight:u,ellipsis:!0,children:g}),(0,y.jsx)("div",{className:"ml-1 flex items-center",children:(0,y.jsx)(E9,{cleanValue:m,label:h,size:s,siascanUrl:f,type:r})})]})}function E9(e){var t;let{size:n,cleanValue:r,label:i,siascanUrl:o,type:a}=e;return(0,y.jsxs)(cW,{trigger:(0,y.jsx)(li,{size:"none",variant:"ghost",children:(0,y.jsx)(lo.EMN,{className:"10"===n?"scale-75":"scale-90"})}),contentProps:{align:"end"},children:[(0,y.jsxs)(cq,{onSelect:e=>{EG(r,i)},onClick:e=>{e.stopPropagation()},children:[(0,y.jsx)(cK,{children:(0,y.jsx)(lo.olJ,{})}),"Copy to clipboard"]}),o&&a&&(t=a)&&["hostIp","hostPublicKey","contract","address","transaction","block"].includes(t)&&(0,y.jsx)(dt,{target:"_blank",href:function(e,t,n){switch(t){case"hostIp":case"hostPublicKey":return"".concat(e,"/host/").concat(n);case"contract":return"".concat(e,"/contract/").concat(n);case"transaction":return"".concat(e,"/tx/").concat(n);case"address":return"".concat(e,"/address/").concat(n);case"block":return"".concat(e,"/block/").concat(n);default:return""}}(o,a,r),className:"block w-full",underline:"none",children:(0,y.jsxs)(cq,{onClick:e=>{e.stopPropagation()},children:[(0,y.jsx)(cK,{children:(0,y.jsx)(lo.V8Q,{})}),"View on Siascan"]})})]})}function Se(e){let{value:t,displayValue:n,type:r,href:i,maxLength:o,size:a,scaleSize:s,color:l="contrast",menu:u,className:c}=e,d=o||E8(r),f=EQ(t),h=n||f,p="".concat(null==h?void 0:h.slice(0,d)).concat(((null==h?void 0:h.length)||0)>d?"...":"");return(0,y.jsxs)("div",{className:(0,em.cx)("flex items-center",c),children:[i?(0,y.jsx)(dt,{href:i,underline:"hover",size:a,scaleSize:s,color:l,ellipsis:!0,children:p}):(0,y.jsx)(t1,{size:a,scaleSize:s,color:l,ellipsis:!0,children:p}),(0,y.jsx)("div",{className:"ml-1 flex items-center",children:u})]})}function St(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:o="change"}=e,a=(0,vj.yF)(String(t),{units:"SF"});return(0,y.jsx)(ln,{content:(i?"".concat(i," "):"")+a,children:(0,y.jsxs)(t1,{size:n,scaleSize:r,weight:"medium",font:"mono",color:"change"===o?t>0?"green":t<0?"red":"subtle":"contrast",children:["change"===o&&t>0?"+":"",a]})})}function Sn(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:o="change",color:a,fixed:s=3,dynamicUnits:l=!0,hastingUnits:u=!0,extendedSuffix:c,showTooltip:d=!0}=e,f=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",h=a||("change"===o?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast"),p=(0,y.jsxs)(t1,{size:n,scaleSize:r,weight:"medium",font:"mono",ellipsis:!0,color:h,children:["change"===o?"".concat(f).concat((0,vj.Vz)(t.absoluteValue(),{fixed:s,dynamicUnits:l})):(0,vj.Vz)(t,{fixed:s,dynamicUnits:l,hastingUnits:u}),(0,y.jsx)(t1,{size:"20",weight:"medium",font:"mono",ellipsis:!0,color:"subtle",children:c?"".concat(c):""})]});return d?(0,y.jsx)(ln,{content:(i?"".concat(i," "):"")+(0,vj.Vz)(t,{fixed:16,dynamicUnits:!1}),children:p}):p}function Sr(e){let{sc:t,size:n,scaleSize:r,color:i,tooltip:o="",variant:a="change",fixed:s,fixedTip:l=20,showTooltip:u=!0}=e,c=(0,f$.BW)(),{settings:{currency:d}}=(0,fq.Hv)(),f=t.isZero()?"":t.isGreaterThan(0)&&"change"===a?"+":t.isLessThan(0)?"-":"",h=i||("change"===a?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast");if(!c.data)return null;let p=new(fB())(c.data.rates.sc[d.id]||1).times(t).div(1e24),m=void 0!==s?s:d.fixed,v=(0,y.jsx)(t1,{size:n,scaleSize:r,weight:"medium",font:"mono",ellipsis:!0,color:h,children:"".concat(f).concat(d.prefix).concat(Si(p.absoluteValue(),m))});return u?(0,y.jsx)(ln,{content:(o?"".concat(o," "):"")+"".concat(f).concat(d.prefix).concat(Si(p.absoluteValue(),l)),children:v}):v}function Si(e,t){let[n,r]=e.toFixed(t).split("."),i=new Intl.NumberFormat().format(parseInt(n));return r?"".concat(i).concat(Intl.NumberFormat().format(1.1).charAt(1)).concat(r):i}function So(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:o="change",fixed:a=3,fixedFiat:s,fixedTipFiat:l,dynamicUnits:u=!0,hastingUnits:c=!0,extendedSuffix:d,showTooltip:f=!0,displayBoth:h=!1,displayBothDirection:p="column"}=e,{settings:{currencyDisplay:m}}=(0,fq.Hv)(),v=(0,f$.BW)(),g=(0,x.useMemo)(()=>(0,y.jsx)(Sn,{value:t,size:n,color:h&&"row"===p&&"bothPreferFiat"===m?"subtle":void 0,scaleSize:r,tooltip:i,variant:o,fixed:a,dynamicUnits:u,hastingUnits:c,extendedSuffix:d,showTooltip:f}),[t,n,r,i,o,a,u,c,d,f,m,h,p]),b=(0,x.useMemo)(()=>(0,y.jsx)(Sr,{sc:t,size:n,color:h&&"row"===p&&"bothPreferSc"===m?"subtle":void 0,scaleSize:r,tooltip:i,variant:o,fixed:s,fixedTip:l,dynamicUnits:u,hastingUnits:c,extendedSuffix:d,showTooltip:f}),[t,n,r,i,o,s,l,u,c,d,f,m,h,p]);return"sc"!==m&&v.data?"fiat"===m?b:"bothPreferSc"===m?h?(0,y.jsxs)("div",{className:"column"===p?"flex flex-col items-end":"flex gap-1",children:[g,b]}):g:"bothPreferFiat"===m?h?(0,y.jsxs)("div",{className:"column"===p?"flex flex-col items-end":"flex gap-1",children:[b,g]}):b:g:g}function Sa(e){let{value:t,size:n="14",weight:r="semibold",tooltip:i="",variant:o="change",color:a,format:s}=e,l=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",u="change"===o?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast";return(0,y.jsx)(ln,{content:(i?"".concat(i," "):"")+s(t),children:(0,y.jsx)(t1,{size:n,weight:r,font:"mono",ellipsis:!0,color:a||u,children:"change"===o?"".concat(l).concat(s(t.absoluteValue())):s(t)})})}var Ss=n(61258),Sl=n.n(Ss);function Su(e){let{skeletonCount:t=10}=e;return(0,y.jsx)(y.Fragment,{children:Sl()(t,e=>(0,y.jsxs)("div",{className:(0,em.cx)("relative flex gap-4 p-3.5",(0,em.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:[(0,y.jsx)(f3,{className:"w-[60px] h-[50px]"}),(0,y.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,y.jsx)(f3,{className:"w-[90%] h-[20px]"}),(0,y.jsx)(f3,{className:"w-[140px] h-[14px]"})]})]},e))})}var Sc=n(29193),Sd=n(23779),Sf=n.n(Sd);function Sh(e){let{type:t,label:n,initials:r,href:i,src:o,shape:a}=e,s=(0,y.jsx)(lE,{interactive:!!i,fallback:r||t&&(t||n||"").split(" ").map(e=>e.charAt(0).toUpperCase).join(""),src:o,shape:a||(t&&"address"!==t&&"block"!==t?"circle":"square")}),l=i&&(0,y.jsx)(dt,{href:i,underline:"none",children:s}),u=l||s;return t?(0,y.jsx)(ln,{content:n||E5(t),children:(0,y.jsx)("div",{className:"",children:u})}):u}function Sp(e){let{label:t,type:n,avatar:r,avatarShape:i,initials:o,href:a,onClick:s,children:l}=e;return(0,y.jsxs)("div",{className:(0,em.cx)("flex gap-4 p-4",(0,em.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),onClick:s,children:[(0,y.jsx)(Sh,{label:t,type:n,shape:i,src:r,initials:o||(n||t||"").split(" ").map(e=>e.charAt(0).toUpperCase()).join(""),href:a}),l]})}function Sm(e){let t=e.sc,n=e.sf,r=e.hash&&(0,y.jsx)(E7,{value:e.hash,type:e.type,label:e.label,siascanUrl:e.siascanUrl,href:e.href,color:"subtle"}),i=e.label||"transaction"===e.type&&e.txType&&E6(e.txType)||E5(e.type),o=!function(e){if(!e)return!1;try{return new URL(e),!0}catch(e){return!1}}(i)?Sf()(i):i;return(0,y.jsx)(Sp,{...e,children:(0,y.jsxs)("div",{className:"flex flex-col items-center gap-1 w-full",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[e.height&&e.blockHref&&(0,y.jsx)(t1,{color:"subtle",weight:"semibold",children:(0,y.jsx)(dt,{href:e.blockHref,underline:"none",children:(0,vj.yF)(e.height)})}),(0,y.jsx)(t1,{weight:"medium",children:o||r})]}),(0,y.jsx)("div",{className:"flex-1"}),!!t&&(0,y.jsx)(So,{variant:e.scVariant,value:t}),!!n&&(0,y.jsx)(St,{variant:e.sfVariant,value:n})]}),(0,y.jsxs)("div",{className:"flex justify-between w-full",children:[(0,y.jsx)("div",{className:"flex gap-1",children:!!o&&r}),(0,y.jsxs)("div",{className:"flex gap-1 items-center",children:[e.unconfirmed?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(t1,{color:"verySubtle",children:"unconfirmed"}),e.timestamp?(0,y.jsx)(t1,{color:"verySubtle",children:(0,y.jsx)(lo.Bpb,{className:"scale-50"})}):null]}):null,e.timestamp&&(0,y.jsx)(t1,{color:"subtle",children:(0,Sc.Z)(new Date(e.timestamp),new Date,{addSuffix:!0})})]})]})]})})}function Sv(e){let{title:t,actions:n,dataset:r,isLoading:i,emptyState:o,emptyMessage:a,skeletonCount:s=10,children:l}=e,u="emptyState";return!i||(null==r?void 0:r.length)||l||(u="skeleton"),((null==r?void 0:r.length)||l)&&(u="currentData"),(0,y.jsx)(t3,{children:(0,y.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[(t||n)&&(0,y.jsxs)("div",{className:"flex items-center p-4 border-b border-gray-200 dark:border-graydark-300",children:[t&&(0,y.jsx)(cQ,{size:"20",font:"mono",ellipsis:!0,children:t}),(0,y.jsx)("div",{className:"flex-1"}),n]}),(0,y.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:["emptyState"===u&&(o||(0,y.jsx)("div",{className:(0,em.cx)("flex items-center justify-center h-[84px]",(0,em.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:(0,y.jsx)(t1,{size:"18",color:"subtle",children:a||"No results"})})),"currentData"===u&&(l||(null==r?void 0:r.map((e,t)=>(0,y.jsx)(Sm,{...e},e.hash||e.label||t)))),"skeleton"===u&&(0,y.jsx)(Su,{skeletonCount:s})]})]})})}function Sg(e){let{label:t,entityType:n,entityValue:r,actions:i,href:o,value:a,extendedSuffix:s,hash:l,sc:u,sf:c,comment:d,commentTip:f,scaleSize:h="40",isLoading:p,onClick:m}=e,v=(0,y.jsx)(t1,{color:"subtle",size:"12",className:"h-6",children:d});return(0,y.jsx)(t3,{children:(0,y.jsx)("div",{className:(0,em.cx)("flex items-center py-2 px-4 h-full min-w-[250px]",m?"cursor-pointer":""),onClick:m,children:(0,y.jsxs)("div",{className:"flex flex-col gap-4 flex-wrap items-start w-full",children:[(0,y.jsxs)("div",{className:"flex relative top-px flex-1 w-full gap-6 items-center justify-between",children:[(0,y.jsx)(t1,{color:"subtle",ellipsis:!0,scaleSize:"14",children:"string"==typeof t?Sf()(t):t}),i]}),(0,y.jsxs)("div",{className:"flex flex-col items-end md:items-start gap-2 md:flex-2",children:[p?(0,y.jsx)(f3,{className:"h-12 w-[150px]"}):(0,y.jsxs)(y.Fragment,{children:[void 0!==u&&(0,y.jsx)(So,{extendedSuffix:s,scaleSize:h,variant:"value",value:u,fixed:0}),void 0!==c&&(0,y.jsx)(St,{scaleSize:h,variant:"value",value:c}),n&&(r?(0,y.jsx)(E7,{scaleSize:h,label:E5(n),href:o,value:r,displayValue:"block"===n&&r?Number(r).toLocaleString():r,className:"relative top-0.5"}):(0,y.jsx)(t1,{font:"mono",weight:"medium",scaleSize:h,children:"-"})),l&&(0,y.jsx)(E7,{scaleSize:h,label:"hash",value:l}),void 0!==a&&(0,y.jsx)(t1,{font:"mono",weight:"medium",scaleSize:h,ellipsis:!0,children:a})]}),v?(0,y.jsx)("div",{className:"mt-1",children:p?(0,y.jsx)("div",{className:"mt-1 h-6 justify-center",children:(0,y.jsx)(f3,{className:"h-4 w-[100px]"})}):f?(0,y.jsx)(ln,{content:f,children:v}):v}):null]})]})})})}function Sy(e){let{title:t,actions:n,name:r}=e;return(0,y.jsxs)("div",{className:"flex gap-0.5 items-center",children:[t?(0,y.jsx)(c7,{htmlFor:r,noWrap:!0,children:t}):null,n]})}function Sx(e){var t;let{form:n,name:r}=e,i=n.formState.errors[r],o=null===(t=n.formState.errors[r])||void 0===t?void 0:t.message;return i?(0,y.jsx)(t1,{size:"14",color:"red",children:o}):null}function Sb(e){let{form:t,title:n,actions:r,name:i,className:o,wrap:a}=e,s=t.formState.errors[i];return n||s?(0,y.jsxs)("div",{className:(0,em.cx)("flex justify-between items-center gap-x-4 overflow-hidden",a?"flex-wrap":"",o),children:[(0,y.jsx)(Sy,{name:i,title:n,actions:r}),(0,y.jsx)(Sx,{form:t,name:i})]}):null}function Sw(e){let{children:t,...n}=e;return(0,y.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,y.jsx)(Sb,{...n}),t]})}function Sj(e){let{form:t,size:n="medium",variant:r="accent",children:i}=e;return(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(li,{size:n,variant:r,state:t.formState.isSubmitting?"waiting":void 0,type:"submit",children:t.formState.isSubmitting?(0,y.jsx)(ka,{}):i})})}function Sk(e){let{formik:t,title:n,name:r,placeholder:i,disabled:o,readOnly:a,autoComplete:s="off",spellCheck:l=!1,tabIndex:u,allowDecimals:c=!1,decimalsLimitFiat:d=3,decimalsLimitSc:f=3,decimalsLimit:h=2,disableGroupSeparators:p=!1,showFiat:m=!0,units:v,type:g,variants:x}=e;return(0,y.jsx)(SO,{formik:t,title:n,name:r,children:"number"===g?(0,y.jsx)(SS,{formik:t,name:r,units:v,disabled:o,readOnly:a,tabIndex:u,decimalsLimit:h,allowDecimals:c,disableGroupSeparators:p,placeholder:i,variants:x}):"siacoin"===g?(0,y.jsx)(S_,{formik:t,name:r,disabled:o,readOnly:a,placeholder:i,tabIndex:u,showFiat:m,decimalsLimitFiat:d,decimalsLimitSc:f,variants:x}):(0,y.jsx)(SE,{formik:t,name:r,autoComplete:s,disabled:o,readOnly:a,placeholder:i,tabIndex:u,spellCheck:l,type:g,variants:x})})}function SE(e){let{formik:t,name:n,placeholder:r,autoComplete:i="off",disabled:o,readOnly:a,tabIndex:s,spellCheck:l=!1,type:u,variants:c}=e;return(0,y.jsx)(fb,{id:n,name:n,autoComplete:i,disabled:o,spellCheck:l,placeholder:r,tabIndex:s,readOnly:a||t.isSubmitting,type:u,onBlur:t.handleBlur,onChange:t.handleChange,value:t.values[n]||"",...c})}function SS(e){let{formik:t,name:n,units:r,disabled:i,readOnly:o,tabIndex:a,placeholder:s,decimalsLimit:l,allowDecimals:u=!1,disableGroupSeparators:c=!1,variants:d}=e;return(0,y.jsx)(fU,{id:n,units:r,name:n,placeholder:new(fB())(s),disabled:i,allowDecimals:u,decimalsLimit:l,disableGroupSeparators:c,readOnly:o||t.isSubmitting,tabIndex:a,onBlur:t.handleBlur,onChange:e=>t.setFieldValue(n,e),value:t.values[n],...d})}function S_(e){let{formik:t,name:n,disabled:r,readOnly:i,tabIndex:o,placeholder:a,showFiat:s,decimalsLimitFiat:l=3,decimalsLimitSc:u=3,variants:c}=e;return(0,y.jsx)(fY,{id:n,name:n,disabled:r,showFiat:s,decimalsLimitFiat:l,decimalsLimitSc:u,readOnly:i||t.isSubmitting,tabIndex:o,onFocus:()=>t.setFieldTouched(n),sc:new(fB())(t.values[n]),placeholder:new(fB())(a),onChange:e=>t.setFieldValue(n,null==e?void 0:e.toString()),...c})}function SC(e){var t,n;let{formik:r,title:i,name:o,withStatusError:a=!1,className:s}=e,l=r.errors[o]&&r.touched[o]||a&&(null===(t=r.status)||void 0===t?void 0:t.error),u=r.errors[o]||a&&(null===(n=r.status)||void 0===n?void 0:n.error);return(i||l)&&(0,y.jsxs)("div",{className:(0,em.cx)("flex justify-between items-center gap-4",s),children:[i?(0,y.jsx)(c7,{htmlFor:o,children:i}):(0,y.jsx)("div",{}),l&&(0,y.jsx)(t1,{size:"14",color:"red",children:u})]})}function SO(e){let{children:t,...n}=e;return(0,y.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,y.jsx)(SC,{...n}),t]})}function SM(e){var t;let{formik:n,size:r="medium",variant:i="accent",withStatusError:o=!0,children:a}=e;return(0,y.jsxs)(y.Fragment,{children:[o&&(null===(t=n.status)||void 0===t?void 0:t.error)&&(0,y.jsx)(t1,{color:"red",children:n.status.error}),(0,y.jsx)(li,{size:r,variant:i,state:n.isSubmitting?"waiting":void 0,type:"submit",children:n.isSubmitting?(0,y.jsx)(ka,{}):a})]})}function ST(e){let{columns:t,data:n,context:r,sortField:i,sortDirection:o,sortableColumns:a,toggleSort:s,summary:l,rowSize:u="default",pageSize:c,isLoading:d,emptyState:f,focusId:h,focusColor:p="default"}=e,m="emptyState";!d||(null==n?void 0:n.length)||(m="skeleton"),(null==n?void 0:n.length)&&(m="currentData");let v=(0,x.useCallback)((e,n,r)=>(0,em.cx)(0===e?"pl-6":"pl-4",e===t.length-1?"pr-6":"pr-4",r?[0===e?"rounded-tl-lg":"",e===t.length-1?"rounded-tr-lg":""]:"",n),[t]),g=(0,x.useCallback)((e,t)=>(0,em.cx)("flex items-center",t),[]);return(0,y.jsxs)(t3,{children:[(0,y.jsxs)("table",{className:"relative z-10 table-auto border-collapse w-full",children:[(0,y.jsx)("thead",{className:(0,em.cx)("sticky top-0 z-20 bg-white dark:bg-graydark-100","shadow-border-b shadow-gray-400 dark:shadow-graydark-300"),children:(0,y.jsx)("tr",{children:t.map((e,t)=>{let{id:n,icon:r,label:l,tip:u,cellClassName:c,contentClassName:d}=e,f=(null==a?void 0:a.includes(n))&&!!s,h=i===n;return(0,y.jsx)("th",{className:(0,em.cx)(v(t,c,!1),"border-b border-gray-400 dark:border-graydark-400"),children:(0,y.jsx)("div",{className:(0,em.cx)("overflow-hidden","py-3"),children:(0,y.jsxs)("div",{onClick:()=>{f&&s(n)},className:(0,em.cx)(g(t,d),f?"cursor-pointer":""),children:[(0,y.jsx)(ln,{content:u,children:(0,y.jsxs)(t1,{color:"subtle",className:"relative flex gap-1",ellipsis:!0,children:[r?(0,y.jsx)("div",{children:r}):null,(0,y.jsx)(t1,{ellipsis:!0,size:"12",weight:"medium",children:l})]})}),h&&(0,y.jsx)(t1,{color:"contrast",children:"asc"===o?(0,y.jsx)(lo.kqg,{className:"scale-75"}):(0,y.jsx)(lo.EMN,{className:"scale-75"})}),f&&!h&&(0,y.jsx)(t1,{color:"verySubtle",children:(0,y.jsx)(lo.kqg,{className:"scale-75"})})]})})},n)})})}),(0,y.jsxs)("tbody",{className:"bg-gray-50 dark:bg-graydark-50",children:[l&&(0,y.jsx)("tr",{className:"bg-gray-50 dark:bg-graydark-50 border-l border-r border-b border-gray-200 dark:border-graydark-200",children:t.map((e,t)=>{let{id:n,summary:r,contentClassName:i,cellClassName:o}=e;return(0,y.jsx)("td",{className:v(t,o,!1),children:(0,y.jsx)("div",{className:g(t,i),children:r&&r()})},n)})}),"currentData"===m&&(null==n?void 0:n.map(e=>(0,y.jsx)("tr",{id:e.id,onClick:e.onClick,className:(0,em.cx)("border-b border-gray-200/50 dark:border-graydark-100",e.onClick?"cursor-pointer":""),children:t.map((t,n)=>{let{id:i,render:o,contentClassName:a,cellClassName:s}=t;return(0,y.jsx)("td",{className:(0,em.cx)(v(n,s,!1),h&&h===e.id?["shadow-border-y","first:shadow-border-tlb","last:shadow-border-trb"]:"","default"===p?"!shadow-blue-900 dark:!shadow-blue-200":"","blue"===p?"!shadow-blue-500 dark:!shadow-blue-400":"","red"===p?"!shadow-red-500 dark:!shadow-red-400":"","amber"===p?"!shadow-amber-500 dark:!shadow-amber-500":"","green"===p?"!shadow-green-500 dark:!shadow-green-400":""),children:(0,y.jsx)("div",{className:(0,em.cx)(g(n,a),"dense"===u?"h-[50px]":"h-[100px]"),children:(0,y.jsx)(o,{data:e,context:r})})},"".concat(i,"/").concat(e.id))})},e.id))),"skeleton"===m&&Sl()(c).map(e=>(0,y.jsx)("tr",{className:"border-b border-gray-200/50 dark:border-graydark-100",children:t.map((e,t)=>{let{id:n,contentClassName:r,cellClassName:i}=e;return(0,y.jsx)("td",{className:v(t,i,!1),children:(0,y.jsx)("div",{className:(0,em.cx)(g(t,r),"dense"===u?"h-[50px]":"h-[100px]")})},"".concat(t,"/").concat(n))})},e))]})]}),"emptyState"===m&&f]})}var SA=n(5632);function SP(e){let{offset:t,limit:n,datasetTotal:r,isLoading:i}=e,o=(0,SA.useRouter)();return(0,y.jsxs)(lA,{children:[(0,y.jsx)(li,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>o.push({query:{...o.query,offset:0}}),children:(0,y.jsx)("div",{className:"flex scale-[0.65]",children:(0,y.jsx)(lo.XJM,{})})}),(0,y.jsx)(li,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.max(t-n,0)}}),children:(0,y.jsx)(lo.bdU,{})}),(0,y.jsx)(li,{state:"waiting",className:"rounded-none px-3",children:r>0?"".concat(t+1," - ").concat(Math.min(t+n,r)," of ").concat(r?r.toLocaleString():""):i?(0,y.jsx)(ka,{className:"px-2"}):"No results"}),(0,y.jsx)(li,{icon:"contrast",disabled:t+n>=r,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.min(t+n,r)}}),children:(0,y.jsx)(lo.VUy,{})}),(0,y.jsx)(li,{icon:"contrast",disabled:t+n>=r,size:"small",variant:"gray",className:"rounded-l-none",onClick:()=>o.push({query:{...o.query,offset:Math.floor(r/n)*n}}),children:(0,y.jsx)("div",{className:"flex",style:{transform:"scale(0.65)"},children:(0,y.jsx)(lo.RRj,{})})})]})}function SN(e){let{offset:t,limit:n,pageTotal:r,isLoading:i}=e,o=(0,SA.useRouter)(),a=Math.min(t+n,t+r);return(0,y.jsxs)(lA,{children:[(0,y.jsx)(li,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>o.push({query:{...o.query,offset:0}}),children:(0,y.jsx)("div",{className:"flex scale-[0.65]",children:(0,y.jsx)(lo.XJM,{})})}),(0,y.jsx)(li,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.max(t-n,0)}}),children:(0,y.jsx)(lo.bdU,{})}),i?(0,y.jsx)(li,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:(0,y.jsx)(ka,{className:"px-2"})}):r?(0,y.jsxs)(li,{className:"rounded-none px-3",state:"waiting",children:[t+1," - ",a]}):(0,y.jsx)(li,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:"none"}),(0,y.jsx)(li,{icon:"contrast",disabled:!(r>=n),size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:t+n}}),children:(0,y.jsx)(lo.VUy,{})})]})}function SR(e){let{title:t,nav:n,stats:r,actions:i}=e;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{className:"flex items-center gap-2 px-6 h-14 z-10 bg-white dark:bg-graydark-50 border-b border-gray-500 dark:border-graydark-500",children:[t?"string"==typeof t?(0,y.jsx)(t1,{font:"mono",size:"18",weight:"bold",className:"hidden lg:block relative -top-px",children:t}):t:null,(0,y.jsxs)("div",{className:"flex-1 flex gap-4 items-center justify-between h-full px-1 -mx-1 overflow-x-hidden",children:[(0,y.jsx)("div",{className:"flex gap-2 items-center h-full flex-1 overflow-x-hidden",children:n}),(0,y.jsx)("div",{className:"flex gap-2 items-center h-full",children:i})]})]}),r&&(0,y.jsx)("div",{className:"flex items-center gap-2 px-6 py-2 h-14 z-10 bg-gray-50 dark:bg-graydark-50 border-b border-gray-300 dark:border-graydark-300",children:r})]})}let SD=("string"==typeof(d={src:"/_next/static/media/background-pattern.b997b25c.jpg",height:104,width:34,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCAAIAAMDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAX/xAAZEAADAAMAAAAAAAAAAAAAAAAAAQISIpH/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8ArRbxWi6AAP/Z",blurWidth:3,blurHeight:8})?{src:d}:d).src;function SL(e){let{children:t}=e;return(0,y.jsxs)("div",{className:"relative -z-10 opacity-100 pointer-events-none",children:[(0,y.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 z-10 bg-white dark:bg-graydark-50"}),(0,y.jsx)("div",{className:"fixed top-0 left-0 right-0 w-[200vw] h-[200vh] opacity-30 z-30 translate-x[-50vw] translate-y[-100vh]",style:{backgroundImage:"url(".concat(SD,")"),backgroundPositionY:"bottom",backgroundSize:"auto"}}),(0,y.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 opacity-95 z-40 bg-white dark:bg-graydark-50"}),t]})}var SF=n(97729),Sz=n.n(SF);function SV(e){let{appName:t,title:n,children:r}=e,i=n?"".concat(t," - ").concat(n):t;return(0,y.jsxs)(Sz(),{children:[(0,y.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,y.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),(0,y.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),(0,y.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"}),(0,y.jsx)("link",{rel:"manifest",href:"/site.webmanifest"}),(0,y.jsx)("link",{rel:"mask-icon",href:"/safari-pinned-tab.svg",color:"#1ed660"}),(0,y.jsx)("meta",{name:"msapplication-TileColor",content:"#2b5797"}),(0,y.jsx)("meta",{name:"theme-color",content:"#ffffff"}),r,(0,y.jsx)("title",{children:i})]})}function SZ(e){let{appName:t,title:n,children:r}=e;return(0,y.jsxs)("div",{className:"h-screen",children:[(0,y.jsx)(SV,{appName:t,title:n}),r]})}function SI(e){let{appName:t,title:n,children:r,filters:i,actions:o}=e;return(0,y.jsxs)(SZ,{appName:t,title:n,children:[(0,y.jsx)(SL,{}),(0,y.jsx)("div",{className:"flex h-full",children:(0,y.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,y.jsx)(SR,{nav:i,actions:o}),(0,y.jsx)("div",{className:"flex-1",children:(0,y.jsx)(lN,{className:"h-full",children:r})})]})})]})}function SB(e){let{side:t,balanceSc:n,children:r}=e;return n?(0,y.jsx)(ln,{side:t,content:(0,y.jsxs)("div",{className:"flex flex-col justify-center gap-2",children:[(0,y.jsxs)("div",{className:"flex gap-4",children:[(0,y.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,y.jsx)(t1,{children:"spendable"}),(0,y.jsx)(t1,{color:"subtle",children:"All confirmed outputs not in-use."})]}),(0,y.jsx)("div",{className:"flex justify-end",children:(0,y.jsx)(So,{displayBoth:!0,variant:"value",value:n.spendable})})]}),(0,y.jsx)(cR,{className:"w-full"}),(0,y.jsxs)("div",{className:"flex gap-4",children:[(0,y.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,y.jsx)(t1,{children:"confirmed"}),(0,y.jsx)(t1,{color:"subtle",children:"All confirmed outputs."})]}),(0,y.jsx)("div",{className:"flex justify-end",children:(0,y.jsx)(So,{displayBoth:!0,variant:"value",value:n.confirmed})})]}),(0,y.jsx)(cR,{className:"w-full"}),(0,y.jsxs)("div",{className:"flex gap-4",children:[(0,y.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,y.jsx)(t1,{children:"unconfirmed"}),(0,y.jsx)(t1,{color:"subtle",children:"All unconfirmed outputs not in-use."})]}),(0,y.jsx)("div",{className:"flex justify-end",children:(0,y.jsx)(So,{displayBoth:!0,variant:"value",value:n.unconfirmed})})]})]}),children:(0,y.jsx)("div",{children:r})}):null}function SH(e){let{balanceSc:t,isSynced:n,syncingMessage:r}=e;if(!t)return null;let i=(0,y.jsx)(So,{showTooltip:!1,value:t.spendable.plus(t.unconfirmed),variant:"value",size:"12",fixed:0,fixedFiat:0});return n?(0,y.jsx)(SB,{side:"right",balanceSc:t,children:i}):(0,y.jsx)(ln,{side:"right",content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,y.jsx)("div",{children:i})})}var SU=n(82876);function SW(e){let{title:t,children:n,route:r,onClick:i}=e,o=(0,SU.usePathname)(),a=r&&("/"===r?o===r:null==o?void 0:o.startsWith(r));return r?(0,y.jsx)(dt,{href:r,className:"no-underline",children:(0,y.jsx)(ln,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,y.jsx)(li,{icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:n})})}):(0,y.jsx)(ln,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,y.jsx)(li,{icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:n})})}function Sq(e){let{walletBalanceSc:t,isSynced:n,routes:r}=e;return(0,y.jsx)(SW,{title:"Wallet",route:r.wallet.view,children:(0,y.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,y.jsx)(lo.oaN,{}),n&&t&&(0,y.jsx)(SH,{isSynced:n,balanceSc:t})]})})}function S$(e){let{routes:t,profile:n,isSynced:r,showWallet:i=!0,walletBalanceSc:o,lock:a,openSettings:s,children:l}=e;return(0,y.jsx)(t3,{className:"relative overflow-hidden z-10 h-full w-[75px] rounded-none border-y-0",children:(0,y.jsxs)("div",{className:"flex flex-col items-center h-full",children:[(0,y.jsx)("div",{className:"flex items-center justify-center",style:{height:"".concat(60,"px")},children:n||(0,y.jsx)(di,{size:30})}),(0,y.jsxs)("div",{className:"flex flex-col gap-6 items-center pt-4 pb-6 h-full",children:[(0,y.jsx)("div",{className:"flex flex-col gap-6 items-center",children:l}),(0,y.jsx)("div",{className:"flex-1"}),(0,y.jsx)(cR,{className:"w-full"}),i&&(0,y.jsx)(Sq,{routes:t,isSynced:r,walletBalanceSc:o}),(0,y.jsx)(SW,{title:"Blockchain node",route:t.node.index,children:(0,y.jsx)(lo.kBK,{})}),(0,y.jsx)(SW,{title:"App preferences",onClick:()=>s(),children:(0,y.jsx)(lo.UG6,{})}),(0,y.jsx)(SW,{title:"Lock app",onClick:a,children:(0,y.jsx)(lo.mBM,{})})]})]})})}var SK=Object.create,SY=Object.defineProperty,SG=Object.getOwnPropertyDescriptor,SX=Object.getOwnPropertyNames,SJ=Object.getPrototypeOf,SQ=Object.prototype.hasOwnProperty,S0=(m=null!=(p=(f=(e,t)=>{var r,i;r=e,i=function(e){var t,n=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,r=2*536870912,i=new WeakMap,o=(t=function(e,t){return i.set(e,t),t},function(e){var o=i.get(e),a=void 0===o?e.size:on)throw Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;e.has(a);)a=Math.floor(Math.random()*n);return t(e,a)});e.addUniqueNumber=function(e){var t=o(e);return e.add(t),t},e.generateUniqueNumber=o},"object"==typeof e&&"u">typeof t?i(e):"function"==typeof define&&n.amdO?define(["exports"],i):i((r="u">typeof globalThis?globalThis:r||self).fastUniqueNumbers={})},()=>(h||f((h={exports:{}}).exports,h),h.exports))())?SK(SJ(p)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of SX(t))SQ.call(e,n)||void 0===n||SY(e,n,{get:()=>t[n],enumerable:!(r=SG(t,n))||r.enumerable});return e})(p&&p.__esModule?m:SY(m,"default",{value:p,enumerable:!0}),p)),S1=e=>void 0!==e.method&&"call"===e.method,S2=e=>null===e.error&&"number"==typeof e.id;v=e=>{let t=new Map([[0,()=>{}]]),n=new Map([[0,()=>{}]]),r=new Map,i=new Worker(e);return i.addEventListener("message",({data:e})=>{if(S1(e)){let{params:{timerId:i,timerType:o}}=e;if("interval"===o){let e=t.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==o)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e();else throw Error("The timer is in an undefined state.")}else if("timeout"===o){let e=n.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==o)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e(),n.delete(i);else throw Error("The timer is in an undefined state.")}}else if(S2(e)){let{id:i}=e,o=r.get(i);if(void 0===o)throw Error("The timer is in an undefined state.");let{timerId:a,timerType:s}=o;r.delete(i),"interval"===s?t.delete(a):n.delete(a)}else{let{error:{message:t}}=e;throw Error(t)}}),{clearInterval:e=>{let n=(0,S0.generateUniqueNumber)(r);r.set(n,{timerId:e,timerType:"interval"}),t.set(e,n),i.postMessage({id:n,method:"clear",params:{timerId:e,timerType:"interval"}})},clearTimeout:e=>{let t=(0,S0.generateUniqueNumber)(r);r.set(t,{timerId:e,timerType:"timeout"}),n.set(e,t),i.postMessage({id:t,method:"clear",params:{timerId:e,timerType:"timeout"}})},setInterval:(e,n)=>{let r=(0,S0.generateUniqueNumber)(t);return t.set(r,()=>{e(),"function"==typeof t.get(r)&&i.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:r,timerType:"interval"}})}),i.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:r,timerType:"interval"}}),r},setTimeout:(e,t)=>{let r=(0,S0.generateUniqueNumber)(n);return n.set(r,e),i.postMessage({id:null,method:"set",params:{delay:t,now:performance.now(),timerId:r,timerType:"timeout"}}),r}}},a=null,()=>{if(null!==a)return a;let e=new Blob(['(()=>{"use strict";const e=new Map,t=new Map,r=(e,t)=>{let r,o;const i=performance.now();r=i,o=e-Math.max(0,i-t);return{expected:r+o,remainingDelay:o}},o=(e,t,r,i)=>{const s=performance.now();s>r?postMessage({id:null,method:"call",params:{timerId:t,timerType:i}}):e.set(t,setTimeout(o,r-s,e,t,r,i))};addEventListener("message",(i=>{let{data:s}=i;try{if("clear"===s.method){const{id:r,params:{timerId:o,timerType:i}}=s;if("interval"===i)(t=>{const r=e.get(t);if(void 0===r)throw new Error(\'There is no interval scheduled with the given id "\'.concat(t,\'".\'));clearTimeout(r),e.delete(t)})(o),postMessage({error:null,id:r});else{if("timeout"!==i)throw new Error(\'The given type "\'.concat(i,\'" is not supported\'));(e=>{const r=t.get(e);if(void 0===r)throw new Error(\'There is no timeout scheduled with the given id "\'.concat(e,\'".\'));clearTimeout(r),t.delete(e)})(o),postMessage({error:null,id:r})}}else{if("set"!==s.method)throw new Error(\'The given method "\'.concat(s.method,\'" is not supported\'));{const{params:{delay:i,now:n,timerId:a,timerType:d}}=s;if("interval"===d)((t,i,s)=>{const{expected:n,remainingDelay:a}=r(t,s);e.set(i,setTimeout(o,a,e,i,n,"interval"))})(i,a,n);else{if("timeout"!==d)throw new Error(\'The given type "\'.concat(d,\'" is not supported\'));((e,i,s)=>{const{expected:n,remainingDelay:a}=r(e,s);t.set(i,setTimeout(o,a,t,i,n,"timeout"))})(i,a,n)}}}}catch(e){postMessage({error:{message:e.message},id:s.id,result:null})}}))})();'],{type:"application/javascript; charset=utf-8"}),t=URL.createObjectURL(e);return a=v(t),setTimeout(()=>URL.revokeObjectURL(t)),a};var S4=(typeof window>"u"?"undefined":typeof window)=="object",S3={setTimeout:S4?setTimeout.bind(window):setTimeout,clearTimeout:S4?clearTimeout.bind(window):clearTimeout,setInterval:S4?setInterval.bind(window):setInterval,clearInterval:S4?clearInterval.bind(window):clearInterval},S5={},S6=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,S5[e]=S5[e]||[],S5[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){if(e.storageArea!==window.localStorage||e.key.substring(0,this.name.length)!==this.name||null===e.newValue)return;let t=JSON.parse(e.newValue);this.mc.port2.postMessage(t)}postMessage(e){if(this.closed)throw Error("InvalidStateError");let t=JSON.stringify(e),n=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(n,t),S3.setTimeout(()=>{window.localStorage.removeItem(n)},500),S5[this.name].forEach(e=>{e!==this&&e.mc.port2.postMessage(JSON.parse(t))})}close(){if(this.closed)return;this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage);let e=S5[this.name].indexOf(this);S5[this.name].splice(e,1)}get onmessage(){return this.mc.port1.onmessage}set onmessage(e){this.mc.port1.onmessage=e}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(e){this.mc.port1.onmessageerror=e}addEventListener(e,t){return this.mc.port1.addEventListener(e,t)}removeEventListener(e,t){return this.mc.port1.removeEventListener(e,t)}dispatchEvent(e){return this.mc.port1.dispatchEvent(e)}},S8=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:S6;function S7(){return Math.random().toString(36).substring(2)}var S9=class{options;channel;token=S7();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(e,t){this.channel=e,this.options=t,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return this.reApply=!0,!1;this.isApplying=!0;let e=!1,t=t=>{let{token:n,action:r}=t.data;n!==this.token&&(0===r&&n>this.token&&(e=!0),1===r&&(e=!0))};this.channel.addEventListener("message",t);try{return this.sendAction(0),await function(e=0){return new Promise(t=>S3.setTimeout(t,e))}(this.options.responseTime),this.channel.removeEventListener("message",t),this.isApplying=!1,e?!!this.reApply&&this.apply():(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let e=!1,t=null;return new Promise(n=>{let r=()=>{if(e)return;e=!0;try{S3.clearInterval(t)}catch{}let r=this.intervals.indexOf(t);r>=0&&this.intervals.splice(r,1),this.channel.removeEventListener("message",i),n()};t=S3.setInterval(()=>{this.apply().then(()=>{this.isLeader&&r()})},this.options.fallbackInterval),this.intervals.push(t);let i=e=>{let{action:t}=e.data;2===t&&this.apply().then(()=>{this.isLeader&&r()})};this.channel.addEventListener("message",i)})}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;let e=e=>{let{action:t}=e.data;0===t&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred||(this.deferred=this.awaitLeadership()),this.deferred}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach(e=>this.channel.removeEventListener("message",e)),this.intervals.forEach(e=>S3.clearInterval(e))}catch{}}}},_e=class{channel;options;elector;token=S7();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;this.options=e,this.channel=new S8(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new S9(this.channel,{fallbackInterval:2e3,responseTime:100}),this.elector.waitForLeadership()),this.channel.addEventListener("message",e=>{let{action:t,token:n,data:r}=e.data;switch(t){case 3:this.registry.set(n,2);break;case 4:this.registry.delete(n);break;case 5:this.idle(n);break;case 6:this.active(n);break;case 7:this.prompt(n);break;case 8:this.start(n);break;case 9:this.reset(n);break;case 10:this.activate(n);break;case 11:this.pause(n);break;case 12:this.resume(n);break;case 13:this.options.onMessage(r)}}),this.send(3)}get isLeader(){if(!this.elector)throw Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.');return this.elector.isLeader}prompt(e=this.token){this.registry.set(e,0);let t=[...this.registry.values()].every(e=>0===e);e===this.token&&this.send(7),t&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);let t=[...this.registry.values()].every(e=>2===e);e===this.token&&this.send(5),!this.allIdle&&t&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);let t=[...this.registry.values()].some(e=>1===e);e===this.token&&this.send(6),t&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},_t=S4?document:null,_n=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function _r(e,t){let n=0;return function(...r){let i=new Date().getTime();if(!(i-nDate.now();function _o(e){let{route:t}=e,n=(0,fq.Nf)({route:t,config:{swr:{refreshInterval:3e4}}});return{isConnected:!n.error,isValidating:n.isValidating}}function _a(e){let{appName:t,title:n,navTitle:r,profile:i,size:o="4",banner:a,nav:s,actions:l,stats:u,children:c,sidenav:d,connectivityRoute:f,isSynced:h,showWallet:p,walletBalanceSc:m,routes:v,scroll:g=!0,openSettings:b}=e,{lock:w,settings:j}=(0,fq.Hv)();return!function(e){let{lock:t,route:n,routes:r}=e,{isConnected:i,isValidating:o}=_o({route:n}),{settings:a}=(0,fq.Hv)(),s=(0,SA.useRouter)();(0,x.useEffect)(()=>{if(o)return;let e=!s.asPath.startsWith(r.login),n=!a.password||!i;if(e&&n){t();return}},[s,a.password,i,o])}({lock:w,route:f,routes:v}),!function(e){let{enabled:t,lock:n,lockTimeout:r}=e,i=(0,x.useCallback)(()=>{n()},[n]);!function({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:n=0,element:r=_t,events:i=_n,timers:o,immediateEvents:a=[],onPresenceChange:s=()=>{},onPrompt:l=()=>{},onIdle:u=()=>{},onActive:c=()=>{},onAction:d=()=>{},onMessage:f=()=>{},debounce:h=0,throttle:p=0,eventsThrottle:m=200,startOnMount:v=!0,startManually:g=!1,stopOnIdle:y=!1,crossTab:b=!1,name:w="idle-timer",syncTimers:j=0,leaderElection:k=!1,disabled:E=!1}={}){let S=(0,x.useRef)(_i()),_=(0,x.useRef)(_i()),C=(0,x.useRef)(null),O=(0,x.useRef)(null),M=(0,x.useRef)(0),T=(0,x.useRef)(0),A=(0,x.useRef)(0),P=(0,x.useRef)(0),N=(0,x.useRef)(!1),R=(0,x.useRef)(!1),D=(0,x.useRef)(!1),L=(0,x.useRef)(!0),F=(0,x.useRef)(!1),z=(0,x.useRef)(null),V=(0,x.useRef)(null),Z=(0,x.useRef)(e),I=(0,x.useRef)(0);(0,x.useEffect)(()=>{if(t&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),n&&t)throw Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(e>=2147483647)throw Error(`\u274C The value for the timeout property must fit in a 32 bit signed integer, 2147483647.`);if(t>=2147483647)throw Error(`\u274C The value for the promptTimeout property must fit in a 32 bit signed integer, 2147483647.`);if(n>=2147483647)throw Error(`\u274C The value for the promptBeforeIdle property must fit in a 32 bit signed integer, 2147483647.`);if(n>=e)throw Error(`\u274C The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);if(n?(Z.current=e-n,I.current=n):(Z.current=e,I.current=t),!L.current){if(g||E)return;N.current&&(G.current(null,eA),V.current&&V.current.active()),ed()}},[e,t,n,g,E]);let B=(0,x.useRef)(y);(0,x.useEffect)(()=>{B.current=y},[y]);let H=(0,x.useRef)(a),U=(0,x.useRef)(r),W=(0,x.useRef)([...new Set([...i,...a]).values()]),q=(0,x.useRef)(E);(0,x.useEffect)(()=>{q.current=E,!L.current&&(E?ep():g||ed())},[E]);let $=(0,x.useRef)(s);(0,x.useEffect)(()=>{$.current=s},[s]);let K=(0,x.useRef)(l);(0,x.useEffect)(()=>{K.current=l},[l]);let Y=(0,x.useRef)(u);(0,x.useEffect)(()=>{Y.current=u},[u]);let G=(0,x.useRef)(c);(0,x.useEffect)(()=>{G.current=c},[c]);let X=(0,x.useRef)(d);(0,x.useEffect)(()=>{X.current=d},[d]);let J=(0,x.useRef)(f);(0,x.useEffect)(()=>{J.current=f},[f]);let Q=(0,x.useMemo)(()=>{let e=(e,t)=>X.current(e,t);return h>0?function(e,t){let n;function r(...i){n&&clearTimeout(n),n=setTimeout(()=>{e(...i),n=null},t)}return r.cancel=function(){clearTimeout(n)},r}(e,h):p>0?_r(e,p):e},[p,h]),ee=(0,x.useRef)();(0,x.useEffect)(()=>{b&&j&&(ee.current=_r(()=>{V.current.active()},j))},[b,j]);let et=()=>{null!==z.current&&(S3.clearTimeout(z.current),z.current=null)},en=(e,t=!0)=>{et(),z.current=S3.setTimeout(ea,e||Z.current),t&&(O.current=_i())},er=e=>{R.current||N.current||(K.current(e,eA),$.current({type:"active",prompted:!0},eA)),P.current=0,A.current=_i(),R.current=!0,en(I.current,!1)},ei=()=>{et(),N.current||(Y.current(null,eA),$.current({type:"idle"},eA)),N.current=!0,C.current=_i(),B.current?ec():R.current&&(A.current=0,R.current=!1)},eo=e=>{et(),(N.current||R.current)&&(G.current(e,eA),$.current({type:"active",prompted:!1},eA)),R.current=!1,A.current=0,N.current=!1,M.current+=_i()-C.current,T.current+=_i()-C.current,eu(),en()},ea=e=>{if(!N.current){Q.cancel&&Q.cancel();let t=_i()-O.current;if(!(Z.current+I.current0&&!R.current){V.current?V.current.prompt():er(e);return}V.current?V.current.idle():ei();return}V.current?V.current.active():eo(e)},es=e=>{if(v||O.current||(O.current=_i(),G.current(null,eA)),Q(e,eA),R.current)return;if(et(),!N.current&&H.current.includes(e.type)){ea(e);return}let t=_i()-O.current;if(N.current&&!y||!N.current&&t>=Z.current){ea(e);return}D.current=!1,P.current=0,A.current=0,en(),b&&j&&ee.current()},el=(0,x.useRef)(es);(0,x.useEffect)(()=>{let e=F.current;e&&ec(),m>0?el.current=_r(es,m):el.current=es,e&&eu()},[m,p,h,X,b,j]);let eu=()=>{S4&&U.current&&(F.current||(W.current.forEach(e=>{U.current.addEventListener(e,el.current,{capture:!0,passive:!0})}),F.current=!0))},ec=(e=!1)=>{S4&&U.current&&(F.current||e)&&(W.current.forEach(e=>{U.current.removeEventListener(e,el.current,{capture:!0})}),F.current=!1)},ed=(0,x.useCallback)(e=>!q.current&&(et(),eu(),N.current=!1,R.current=!1,D.current=!1,P.current=0,A.current=0,V.current&&!e&&V.current.start(),en(),!0),[z,N,q,Z,V]),ef=(0,x.useCallback)(e=>!q.current&&(et(),eu(),_.current=_i(),M.current+=_i()-C.current,T.current+=_i()-C.current,M.current=0,N.current=!1,R.current=!1,D.current=!1,P.current=0,A.current=0,V.current&&!e&&V.current.reset(),g||en(),!0),[z,N,Z,g,q,V]),eh=(0,x.useCallback)(e=>!q.current&&(et(),eu(),(N.current||R.current)&&eo(),N.current=!1,R.current=!1,D.current=!1,P.current=0,A.current=0,_.current=_i(),V.current&&!e&&V.current.activate(),en(),!0),[z,N,R,q,Z,V]),ep=(0,x.useCallback)((e=!1)=>!q.current&&!D.current&&(P.current=ej(),D.current=!0,ec(),et(),V.current&&!e&&V.current.pause(),!0),[z,q,V]),em=(0,x.useCallback)((e=!1)=>!q.current&&!!D.current&&(D.current=!1,R.current||eu(),N.current||en(P.current),A.current&&(A.current=_i()),V.current&&!e&&V.current.resume(),!0),[z,Z,q,P,V]),ev=(0,x.useCallback)((e,t)=>(V.current?(t&&J.current(e,eA),V.current.message(e)):t&&J.current(e,eA),!0),[f]),eg=(0,x.useCallback)(()=>N.current,[N]),ey=(0,x.useCallback)(()=>R.current,[R]),ex=(0,x.useCallback)(()=>V.current?V.current.isLeader:null,[V]),eb=(0,x.useCallback)(()=>V.current?V.current.isLastActive:null,[V]),ew=(0,x.useCallback)(()=>V.current?V.current.token:null,[V]),ej=(0,x.useCallback)(()=>{if(D.current)return P.current;let e=Math.floor((P.current?P.current:I.current+Z.current)-(O.current?_i()-O.current:0));return e<0?0:Math.abs(e)},[Z,I,R,P,O]),ek=(0,x.useCallback)(()=>Math.round(_i()-_.current),[_]),eE=(0,x.useCallback)(()=>Math.round(_i()-S.current),[S]),eS=(0,x.useCallback)(()=>C.current?new Date(C.current):null,[C]),e_=(0,x.useCallback)(()=>O.current?new Date(O.current):null,[O]),eC=(0,x.useCallback)(()=>N.current?Math.round(_i()-C.current+M.current):Math.round(M.current),[C,M]),eO=(0,x.useCallback)(()=>N.current?Math.round(_i()-C.current+T.current):Math.round(T.current),[C,T]),eM=(0,x.useCallback)(()=>{let e=Math.round(ek()-eC());return e>=0?e:0},[C,M]),eT=(0,x.useCallback)(()=>{let e=Math.round(eE()-eO());return e>=0?e:0},[C,M]);(0,x.useEffect)(()=>{if(h>0&&p>0)throw Error("❌ onAction can either be throttled or debounced, not both.");o&&(S3.setTimeout=o.setTimeout,S3.clearTimeout=o.clearTimeout,S3.setInterval=o.setInterval,S3.clearInterval=o.clearInterval);let e=()=>{V.current&&V.current.close(),Q.cancel&&Q.cancel(),et(),ec(!0)};return S4&&window.addEventListener("beforeunload",e),()=>{S4&&window.removeEventListener("beforeunload",e),V.current&&V.current.close(),Q.cancel&&Q.cancel(),et(),ec(!0)}},[]),(0,x.useEffect)(()=>{V.current&&V.current.close(),b?V.current=new _e({channelName:w,leaderElection:k,onPrompt:()=>{er()},onIdle:()=>{ei()},onActive:()=>{eo()},onMessage:e=>{J.current(e,eA)},start:ed,reset:ef,activate:eh,pause:ep,resume:em}):V.current=null},[b,w,k,K,Y,G,J,ed,ef,ep,em]),(0,x.useEffect)(()=>{L.current||(et(),ec(!0)),g||E||(v?ed():eu())},[g,v,E,L]),(0,x.useEffect)(()=>{if(!L.current){let e=[...new Set([...i,...a]).values()];ec(),W.current=e,U.current=r,H.current=a,g||E||(v?ed():eu())}},[r,JSON.stringify(i),JSON.stringify(a),L,E,g,v]),(0,x.useEffect)(()=>{L.current&&(L.current=!1)},[L]);let eA={message:ev,start:ed,reset:ef,activate:eh,pause:ep,resume:em,isIdle:eg,isPrompted:ey,isLeader:ex,isLastActiveTab:eb,getTabId:ew,getRemainingTime:ej,getElapsedTime:ek,getTotalElapsedTime:eE,getLastIdleTime:eS,getLastActiveTime:e_,getIdleTime:eC,getTotalIdleTime:eO,getActiveTime:eM,getTotalActiveTime:eT,setOnPresenceChange:e=>{s=e,$.current=e},setOnPrompt:e=>{l=e,K.current=e},setOnIdle:e=>{u=e,Y.current=e},setOnActive:e=>{c=e,G.current=e},setOnAction:e=>{d=e,X.current=e},setOnMessage:e=>{f=e,J.current=e}}}({disabled:!t,onIdle:i,timeout:r,throttle:5e3,eventsThrottle:5e3})}({enabled:!!j.autoLock,lockTimeout:j.autoLockTimeout,lock:w}),(0,y.jsxs)(SZ,{appName:t,title:n,children:[(0,y.jsx)(SL,{}),(0,y.jsxs)("div",{className:"flex flex-col h-full w-full",children:[a,(0,y.jsxs)("div",{className:"flex flex-1 w-full overflow-hidden",children:[(0,y.jsx)(S$,{routes:v,profile:i,openSettings:b,lock:w,showWallet:p,walletBalanceSc:m,isSynced:h,children:d}),(0,y.jsxs)("div",{className:"flex flex-col flex-1 overflow-hidden",children:[(0,y.jsx)(SR,{title:void 0===r?n:r,nav:s,actions:l,stats:u}),g?(0,y.jsx)(uo,{className:"z-0",children:(0,y.jsx)(lN,{size:o,pad:!1,children:(0,y.jsx)("div",{className:"flex flex-col gap-5",children:c})})}):(0,y.jsx)(lN,{size:o,pad:!1,className:"flex-1 flex flex-col gap-5 overflow-hidden",children:c})]})]})]})]})}function _s(e,t,n,r){let[i,o]=(0,x.useState)();return(0,x.useEffect)(()=>{!t&&e&&o(e.length)},[t,e,o]),(0,x.useMemo)(()=>n?"error":void 0===i||i>0&&!e?"loading":0===i?0===r.length?"noneYet":"noneMatchingFilters":void 0,[e,i,n,r])}function _l(e){let{filtered:t}=e;return(0,y.jsxs)("div",{className:"flex flex-col gap-8 justify-center items-center h-[300px]",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lo.Hb6,{className:"scale-[200%]"})}),(0,y.jsx)(t1,{color:"subtle",className:"text-center max-w-[500px]",children:t?"No matching alerts.":"There are currently no alerts."})]})}(0,x.createContext)(null).Consumer;let _u=[];function _c(e){let{open:t,onOpenChange:n,dismissOne:r,dismissMany:i,alerts:o,dataFieldOrder:a,dataFields:s}=e,l=_s(o.data,o.isValidating,o.error,_u),[u,c]=(0,x.useState)(),d=(0,x.useMemo)(()=>{var e;return(null===(e=o.data)||void 0===e?void 0:e.filter(e=>!u||e.severity===u))||[]},[o.data,u]),f=(0,x.useCallback)(e=>{let t=Object.keys(e).sort((e,t)=>{let n=a.indexOf(e),r=a.indexOf(t);return -1===n&&-1===r?0:-1===n?1:-1===r?-1:n-r});return t},[a]);return(0,y.jsx)(ul,{open:t,onOpenChange:e=>{n(e)},contentVariants:{className:"w-[500px] h-[80vh]"},title:(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsxs)(cQ,{size:"20",children:["Alerts ",o.data?"(".concat(o.data.length,")"):""]}),(0,y.jsxs)("div",{className:"flex gap-1",children:[(0,y.jsx)(li,{variant:void 0===u?"accent":"gray",onClick:()=>c(void 0),children:"all"}),(0,y.jsx)(li,{variant:"info"===u?"accent":"gray",onClick:()=>c("info"),children:"info"}),(0,y.jsx)(li,{variant:"warning"===u?"accent":"gray",onClick:()=>c("warning"),children:"warning"}),(0,y.jsx)(li,{variant:"error"===u?"accent":"gray",onClick:()=>c("error"),children:"error"}),(0,y.jsx)(li,{variant:"critical"===u?"accent":"gray",onClick:()=>c("critical"),children:"critical"}),(0,y.jsx)("div",{className:"flex-1"}),!l&&!!d.length&&(0,y.jsxs)(li,{tip:u?"dismiss ".concat(d.length):"dismiss all",onClick:()=>i(d.map(e=>e.id),u),children:[(0,y.jsx)(lo.NlZ,{}),d.length>0?" ".concat(d.length):""]})]})]}),children:(0,y.jsxs)("div",{className:(0,em.cx)("flex flex-col overflow-hidden -m-4","border-t border-gray-200 dark:border-graydark-300"),children:["noneYet"===l&&(0,y.jsx)(_l,{filtered:!1}),"error"===l&&(0,y.jsx)("div",{className:(0,em.cx)("flex items-center justify-center h-[100px]",_h()),children:(0,y.jsx)(t1,{size:"18",color:"subtle",children:o.error.message})}),"loading"===l&&(0,y.jsx)(_f,{}),!l&&(0,y.jsx)("div",{className:"flex flex-col",children:d.length?d.map(e=>(0,y.jsxs)("div",{className:(0,em.cx)("flex flex-col gap-1 w-full p-4","border-t border-gray-200 dark:border-graydark-300","first:border-none"),children:[(0,y.jsxs)("div",{className:"flex justify-between gap-1 w-full",children:[(0,y.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,y.jsxs)(t1,{weight:"medium",className:"w-full",children:[e.severity,": ",e.message]})}),(0,y.jsx)(li,{tip:"Dismiss alert",onClick:()=>r(e.id),children:(0,y.jsx)(lo.NlZ,{})})]}),(0,y.jsxs)("div",{className:"flex justify-between w-full",children:[(0,y.jsx)(t1,{color:"subtle",ellipsis:!0,children:"timestamp"}),(0,y.jsx)(t1,{color:"contrast",ellipsis:!0,children:(0,vj.rN)(e.timestamp,{timeStyle:"medium"})})]}),f(e.data).map(t=>{var n;let r=e.data[t];if(null==r||"object"==typeof r&&!Object.keys(r).length)return null;let i=(null==s?void 0:null===(n=s[t])||void 0===n?void 0:n.render)||_d;return(0,y.jsx)(i,{label:t,value:r},t)})]},e.id)):(0,y.jsx)(_l,{filtered:!!u})})]})})}function _d(e){let{label:t,value:n}=e;return(0,y.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,y.jsx)(t1,{color:"subtle",children:t}),(0,y.jsx)(t1,{color:"contrast",ellipsis:!0,children:String(n)})]})}function _f(){return(0,y.jsx)(y.Fragment,{children:Sl()(10,e=>(0,y.jsx)("div",{className:(0,em.cx)("relative flex gap-4 p-3.5",_h()),children:(0,y.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,y.jsxs)("div",{className:"flex justify-between gap-2 w-full",children:[(0,y.jsx)(f3,{className:"w-[160px] h-[20px]"}),(0,y.jsx)(f3,{className:"w-[160px] h-[20px]"})]}),(0,y.jsx)(f3,{className:"w-[100px] h-[20px]"}),(0,y.jsx)(f3,{className:"w-full h-[120px]"})]})},e))})}function _h(){return(0,em.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")}var _p=n(89644),_m=n.n(_p),_v=n(63955),_g=n(45861),_y=n.n(_g);function _x(e){let{form:t,field:n,name:r}=e,i=t.watch(r),o=t.formState.touchedFields[r]&&!!t.formState.errors[r],{ref:a,onChange:s,onBlur:l}=t.register(r,n.validation),u=(0,x.useCallback)(e=>{var r;s(e),null===(r=n.trigger)||void 0===r||r.forEach(e=>t.trigger(e))},[s,t,n]),c=(0,x.useCallback)((e,i)=>{var o;t.setValue(r,e,"boolean"==typeof i?i?{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0}:void 0:i),null===(o=n.trigger)||void 0===o||o.forEach(e=>t.trigger(e))},[r,t,n]);return{ref:a,name:r,value:i,error:o,onBlur:l,onChange:u,setValue:c}}function _b(e){return(0,x.useCallback)(t=>{E$(_y()(t).map(t=>{let[n,r]=t;return"".concat(e[n].title||n,": ").concat(null==r?void 0:r.message)}).join(", "))},[e])}function _w(e){let{name:t,form:n,fields:r,size:i="small",autoComplete:o,spellCheck:a,state:s=!0,group:l=!0}=e,u=r[t],{ref:c,onChange:d,onBlur:f,error:h}=_x({name:t,form:n,field:u}),p=(0,y.jsx)(fb,{ref:c,name:t,placeholder:u.placeholder,size:i,autoComplete:o,type:u.type,readOnly:u.readOnly,spellCheck:a,onClick:u.onClick,state:s?h?"invalid":n.formState.dirtyFields[t]?"valid":"default":"default",onChange:d,onBlur:f});return l?(0,y.jsx)(Sw,{title:u.title,actions:u.actions,name:t,form:n,children:p}):p}var _j=n(829),_k=n.n(_j);async function _E(e){let{api:t,route:n,password:r}=e;try{return await _m().get("".concat(t,"/api").concat(n),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(":".concat(r))},timeout:1e4}),{}}catch(n){let e=n.code,t=n.response;if((null==t?void 0:t.status)===504)return{error:"Error, check that daemon is running"};if((null==t?void 0:t.status)===401)return{error:"Error, wrong password"};if("ECONNABORTED"===e)return{error:"Error, daemon did not respond"};return{error:"Error, something went wrong"}}}function _S(e){let{appName:t,route:n,routes:r}=e,i=(0,SA.useRouter)(),{settings:o,setSettings:a}=(0,fq.Hv)(),{allowCustomApi:s}=o,l=(0,x.useMemo)(()=>({api:o.api,password:""}),[o.api]),u=(0,_v.cI)({mode:"onBlur",defaultValues:l});(0,x.useEffect)(()=>{u.clearErrors()},[s]);let c=(0,x.useCallback)(async e=>{let t="";if(s){let n=new URL(e.api);t="".concat(n.protocol,"//").concat(n.host)}let{error:c}=await _E({api:t,route:n,password:e.password});c?u.setError("password",{message:c}):(a({api:t,password:e.password,recentApis:{...o.recentApis,[t]:{lastUsed:new Date().getTime()}}}),i.push(i.query.prev?decodeURIComponent(i.query.prev):r.home),u.reset(l))},[s,u,i,r,o,a,l,n]),d=function(e){let{allowCustomApi:t}=e;return{api:{type:"text",title:"API",placeholder:"http://127.0.0.1:9980",validation:{validate:{required:e=>!t||!!e||"API is required",url:e=>{try{let t=new URL(e);return!!t.protocol&&!!t.host||"invalid API URL"}catch(e){return"invalid API URL"}},https:e=>{let t="https:"===window.location.protocol;return!t||t&&e.startsWith("https")||"API must use HTTPS"}}}},password:{type:"password",title:"Password",placeholder:"Enter password",validation:{required:"password is required"}}}}({allowCustomApi:s}),f=_b(d),h=u.formState.errors.api||u.formState.errors.password,p=_k()(Object.entries(o.recentApis),e=>{let[t,{lastUsed:n}]=e;return-n}).map(e=>{let[t]=e;return t});return(0,y.jsx)("div",{className:"flex flex-col items-center justify-center gap-6 h-full",children:(0,y.jsx)(t3,{className:"relative top-[-50px] w-[300px] p-2.5",children:(0,y.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,y.jsxs)("div",{className:"flex justify-between items-center",children:[(0,y.jsx)(t1,{font:"mono",weight:"bold",size:"20",children:t}),(0,y.jsx)(cW,{trigger:(0,y.jsx)(li,{icon:"hover",variant:"ghost",children:(0,y.jsx)(lo.shL,{})}),children:(0,y.jsx)(cq,{onSelect:()=>a({allowCustomApi:!s}),children:s?"Hide custom API":"Show custom API"})})]}),(0,y.jsx)(cR,{className:"w-full mt-2 mb-3"}),(0,y.jsx)("form",{onSubmit:u.handleSubmit(c,f),children:(0,y.jsxs)("div",{className:"flex flex-col gap-1.5",children:[s?(0,y.jsxs)(lA,{children:[(0,y.jsx)(_w,{name:"api",form:u,fields:d,group:!1}),p.length>1&&(0,y.jsx)(cW,{trigger:(0,y.jsx)(li,{type:"button",children:(0,y.jsx)(lo.wGX,{})}),children:p.map(e=>(0,y.jsx)(cq,{onSelect:()=>u.setValue("api",e),children:e},e))})]}):null,(0,y.jsx)(_w,{name:"password",form:u,fields:d,group:!1}),h&&(0,y.jsx)(t1,{size:"14",color:"red",children:h.message}),(0,y.jsx)(Sj,{size:"small",form:u,children:"Unlock"})]})})]})})})}var __=n(9156),_C=n(24511);let _O={address:"",siacoin:void 0,includeFee:!1},_M=_C.Ry().shape({address:_C.Z_().required("Required"),siacoin:_C.Z_().required("Required").test("greater than zero","Must be greater than zero",e=>!new(fB())(e||0).isZero())});function _T(e){let{address:t,siacoin:n,fee:r,transactionId:i}=e,o=n.plus(r);return(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,y.jsx)(t1,{color:"verySubtle",noWrap:!0,children:"Address"}),(0,y.jsx)(E7,{value:t,type:"address"})]}),(0,y.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,y.jsx)(t1,{color:"verySubtle",noWrap:!0,children:"Amount"}),(0,y.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,y.jsx)(Sn,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,y.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,y.jsx)(t1,{color:"verySubtle",noWrap:!0,children:"Network fee"}),(0,y.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,y.jsx)(Sn,{size:"14",value:r,variant:"value",dynamicUnits:!1})})]}),(0,y.jsxs)("div",{className:"flex items-center gap-2 justify-between",children:[(0,y.jsx)(t1,{color:"verySubtle",noWrap:!0,children:"Total"}),(0,y.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,y.jsx)(Sn,{size:"14",value:o,variant:"value",dynamicUnits:!1})})]}),i&&(0,y.jsxs)("div",{className:"flex gap-6 items-center justify-between",children:[(0,y.jsx)(t1,{color:"verySubtle",noWrap:!0,children:"Transaction ID"}),(0,y.jsx)(E7,{value:i,type:"transaction"})]})]})}function _A(e){let{activeStep:t,steps:n,onChange:r}=e,i=n.findIndex(e=>e.id===t),o=n.length-1;return(0,y.jsxs)("div",{className:"relative w-full mt-8 mb-3",children:[(0,y.jsx)("div",{className:"absolute w-full h-1 bg-gray-500 dark:bg-graydark-500 rounded-lg"}),(0,y.jsx)("div",{className:"absolute h-1 bg-accent-800 dark:bg-accentdark-800 rounded-lg",style:{width:"".concat(i/o*100,"%")}}),n.map((e,n)=>{let{id:a,label:s}=e,l=t===a,u=i>=n,c=n===o,d=0===n,f=u&&i!==o;return(0,y.jsxs)("div",{className:(0,em.cx)("absolute h-2 w-2 -top-0.5",f?"cursor-pointer":"cursor-default"),style:{left:"calc(".concat(n/o*100,"% - ").concat(c?8:d?0:4,"px)")},onClick:()=>{f&&r(a)},children:[(0,y.jsx)(t1,{color:l?"contrast":"verySubtle",className:(0,em.cx)("absolute top-[-30px]",d?"left-0":"",c?"right-0":"",d||c?"":"-translate-x-1/2"),noWrap:!0,children:s}),(0,y.jsx)("div",{className:(0,em.cx)("absolute left-0 top-0 h-full w-full rounded-lg border",u?"bg-accent-800 dark-accentdark-800":"bg-gray-500 dark:bg-graydark-500",u?"border-accent-900 dark:border-accentdark-900":"border-gray-600 dark:border-graydark-600")}),l&&(0,y.jsx)("div",{className:"absolute left-0 top-0 h-full w-full rounded-lg bg-accent-800 dark:bg-accentdark-800 animate-pingslow"})]},a)})]})}function _P(e){let{data:{address:t,siacoin:n},fee:r,transactionId:i}=e;return(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(_T,{address:t,siacoin:n,fee:r,transactionId:i}),(0,y.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 my-4",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lo.Z$8,{})}),(0,y.jsx)(t1,{children:"Transaction successfully broadcasted."})]})]})}let _N=(0,vj.qN)(.00393),_R={address:"",siacoin:new(fB())(0),includeFee:!1};function _D(e){let{trigger:t,open:n,onOpenChange:r,balance:i,send:o}=e,[a,s]=(0,x.useState)("setup"),[l,u]=(0,x.useState)(),[c,d]=(0,x.useState)(_R),f=function(e){let{balance:t,fee:n,onComplete:r}=e,i=(0,__.TA)({initialValues:_O,validationSchema:_M,onSubmit:async e=>{if(!e.siacoin)return;let o=e.includeFee?(0,vj.qN)(e.siacoin).minus(n):(0,vj.qN)(e.siacoin);if(t){if(t.isLessThan((0,vj.qN)(e.siacoin).plus(n))){i.setStatus({error:"Not enough funds in wallet."});return}i.setStatus({}),r({includeFee:e.includeFee,address:e.address,siacoin:o})}}}),o=(0,vj.qN)(i.values.siacoin||0),a=(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(Sk,{formik:i,variants:{size:"medium"},title:"Address",name:"address",placeholder:"e3b1050aef388438668b52983cf78f40925af8f0aa8b9de80c18eadcefce8388d168a313e3f2",autoComplete:"off",type:"text"}),(0,y.jsx)(Sk,{formik:i,title:"Siacoin",name:"siacoin",placeholder:"100",type:"siacoin"}),(0,y.jsxs)("div",{className:"flex items-center",children:[(0,y.jsx)(hl,{name:"includeFee",onCheckedChange:e=>i.setFieldValue("includeFee",e),children:"Include fee"}),(0,y.jsx)(fX,{children:"Include or exclude the network fee from the above transaction value."}),(0,y.jsx)("div",{className:"flex flex-1"})]}),(0,y.jsxs)("div",{className:"flex flex-col gap-2 my-1",children:[(0,y.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,y.jsx)(t1,{color:"verySubtle",children:"Network fee"}),(0,y.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,y.jsx)(Sn,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,y.jsxs)("div",{className:"flex justify-between gap-2 items-center",children:[(0,y.jsx)(t1,{color:"verySubtle",children:"Total"}),(0,y.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,y.jsx)(Sn,{size:"14",value:i.values.includeFee?o:o.plus(n),variant:"value",dynamicUnits:!1})})]})]})]});return{formik:i,form:a}}({balance:i,fee:_N,onComplete:e=>{d(e),s("confirm")}}),h=function(e){let{send:t,formData:n,fee:r,onConfirm:i}=e,{address:o,siacoin:a}=n||{},s=(0,__.TA)({initialValues:{},onSubmit:async()=>{let{transactionId:e,error:n}=await t({address:o,sc:a});if(n){s.setStatus({error:n});return}i({transactionId:e})}}),l=(0,y.jsx)("div",{className:"flex flex-col gap-4",children:(0,y.jsx)(_T,{address:o,siacoin:a,fee:r})});return{form:l,formik:s}}({fee:_N,formData:c,send:o,onConfirm:e=>{let{transactionId:t}=e;u(t),s("done")}}),p=(0,x.useMemo)(()=>"setup"===a?{submitLabel:"Generate transaction",formik:f.formik}:"confirm"===a?{submitLabel:"Broadcast transaction",formik:h.formik}:void 0,[a,f,h]);return(0,y.jsx)(ul,{trigger:t,open:n,onOpenChange:e=>{e||(f.formik.resetForm(),h.formik.resetForm(),s("setup")),r(e)},title:"Send siacoin",onSubmit:p?p.formik.handleSubmit:void 0,controls:p&&(0,y.jsx)("div",{className:"flex flex-col gap-1",children:(0,y.jsx)(SM,{formik:p.formik,children:p.submitLabel})}),contentVariants:{className:"w-[400px]"},children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(_A,{onChange:e=>s(e),activeStep:a,steps:[{id:"setup",label:"Setup"},{id:"confirm",label:"Confirm"},{id:"done",label:"Complete"}]}),(0,y.jsx)(cR,{className:"w-full mt-4"}),"setup"===a&&f.form,"confirm"===a&&h.form,"done"===a&&(0,y.jsx)(_P,{data:c,fee:_N,transactionId:l})]})})}let _L="[a-fA-F\\d:]",_F=e=>e&&e.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(_L,")|(?<=").concat(_L,")(?=\\s|$))"):"",_z="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",_V="[a-fA-F\\d]{1,4}",_Z="\n(?:\n(?:".concat(_V,":){7}(?:").concat(_V,"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:").concat(_V,":){6}(?:").concat(_z,"|:").concat(_V,"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:").concat(_V,":){5}(?::").concat(_z,"|(?::").concat(_V,"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:").concat(_V,":){4}(?:(?::").concat(_V,"){0,1}:").concat(_z,"|(?::").concat(_V,"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:").concat(_V,":){3}(?:(?::").concat(_V,"){0,2}:").concat(_z,"|(?::").concat(_V,"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:").concat(_V,":){2}(?:(?::").concat(_V,"){0,3}:").concat(_z,"|(?::").concat(_V,"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:").concat(_V,":){1}(?:(?::").concat(_V,"){0,4}:").concat(_z,"|(?::").concat(_V,"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::").concat(_V,"){0,5}:").concat(_z,"|(?::").concat(_V,"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),_I=new RegExp("(?:^".concat(_z,"$)|(?:^").concat(_Z,"$)")),_B=new RegExp("^".concat(_z,"$")),_H=new RegExp("^".concat(_Z,"$")),_U=e=>e&&e.exact?_I:RegExp("(?:".concat(_F(e)).concat(_z).concat(_F(e),")|(?:").concat(_F(e)).concat(_Z).concat(_F(e),")"),"g");_U.v4=e=>e&&e.exact?_B:RegExp("".concat(_F(e)).concat(_z).concat(_F(e)),"g"),_U.v6=e=>e&&e.exact?_H:RegExp("".concat(_F(e)).concat(_Z).concat(_F(e)),"g");let _W=()=>RegExp("^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|((([a-zA-Z]|[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]).)+([A-Za-z|[A-Za-z][A-Za-z0-9‌​-]*[A-Za-z0-9])))$","g"),_q={port:9981,ip:""},_$=_C.Ry().shape({port:_C.Rx().required("Required").min(0,"Out of valid range").max(65535,"Out of valid range"),ip:_C.Z_().required("Required").test("ip","Invalid hostname or IP address",e=>_W().test(e||""))});function _K(e){let{trigger:t,open:n,connect:r,onOpenChange:i}=e,o=(0,__.TA)({initialValues:_q,validationSchema:_$,onSubmit:async(e,t)=>{let n="".concat(e.ip,":").concat(e.port),o=await r(n);if(o.error){let e=o.error.replace("invalid peer address: address ".concat(n,":"),"");t.setStatus({error:e})}else EU("Connected to peer"),t.resetForm(),i(!1)}});return(0,y.jsx)(ul,{trigger:t,title:"Connect peer",open:n,onOpenChange:e=>{e||o.resetForm(),i(e)},contentVariants:{className:"w-[400px]"},children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(t2,{size:"14",children:"Connect to a peer by IP address."}),(0,y.jsx)("form",{onSubmit:o.handleSubmit,children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(Sk,{formik:o,title:"Address",name:"ip",placeholder:"host.acme.com or 127.0.0.1",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,y.jsx)(Sk,{formik:o,title:"Port",name:"port",disableGroupSeparators:!0,placeholder:"9981",autoComplete:"off",type:"number",variants:{size:"medium"}}),(0,y.jsx)(SM,{formik:o,size:"medium",children:"Connect"})]})})]})})}function _Y(e){var t,n;let{id:r,transaction:i,trigger:o,open:a,onOpenChange:s}=e;return(0,y.jsx)(ul,{title:E0((null==i?void 0:i.txType)?Sf()(E6(i.txType)):"Transaction",r,16),trigger:o,open:a,onOpenChange:s,contentVariants:{className:"w-[800px]"},children:i?(0,y.jsxs)("div",{className:"flex flex-col gap-4 pb-10 w-full overflow-hidden",children:[(0,y.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(null==i?void 0:i.inflow)!==void 0&&(0,y.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,y.jsx)(t1,{children:"Inflow"}),(0,y.jsx)(Sn,{value:new(fB())((null==i?void 0:i.inflow)||0)})]}),(null==i?void 0:i.outflow)!==void 0&&(0,y.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,y.jsx)(t1,{children:"Outflow"}),(0,y.jsx)(Sn,{value:new(fB())((null==i?void 0:i.outflow)||0).negated()})]}),(null==i?void 0:null===(t=i.raw)||void 0===t?void 0:t.minerFees)!==void 0&&(0,y.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,y.jsx)(t1,{children:"Miner fee"}),(0,y.jsx)(Sn,{value:new(fB())((null==i?void 0:null===(n=i.raw.minerFees)||void 0===n?void 0:n.reduce((e,t)=>e.plus(t),new(fB())(0)))||0)})]}),(0,y.jsx)("div",{className:"flex-1"}),(0,y.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,y.jsx)(t1,{children:"Timestamp"}),(0,y.jsx)(t1,{children:(null==i?void 0:i.timestamp)?(0,vj.rN)((null==i?void 0:i.timestamp)||0,{timeStyle:"short"}):"Unconfirmed"})]})]}),(0,y.jsx)(lC,{children:JSON.stringify(null==i?void 0:i.raw,null,2)})]}):(0,y.jsx)(t1,{children:"Could not find transaction in wallet"})})}_C.Ry().shape({address:_C.Z_().required("Required"),description:_C.Z_().required("Required"),index:_C.Rx().integer().required("Required")});var _G=n(38001);function _X(e){let{title:t,description:n,address:r}=e;return(0,y.jsxs)("div",{className:"flex flex-col gap-4 items-center justify-center",children:[t&&(0,y.jsx)(cQ,{size:"20",font:"mono",children:t}),n&&(0,y.jsx)(t1,{children:n}),(0,y.jsx)("div",{className:"relative p-[5px] bg-white h-[210px] w-[210px]",children:(0,y.jsx)("div",{className:"absolute",children:(0,y.jsx)(_G.Z,{size:200,value:r})})}),(0,y.jsx)(E7,{type:"address",value:r})]})}function _J(e){let{address:t,isValidating:n,trigger:r,open:i,onOpenChange:o}=e;return(0,y.jsx)(ul,{title:E0("Address",EQ(t)||"",16),trigger:r,open:i,onOpenChange:o,contentVariants:{className:"w-[400px]"},children:(0,y.jsx)("div",{className:"flex flex-col gap-4",children:t||n?(0,y.jsx)(_X,{address:t||""}):(0,y.jsx)(t1,{children:"Could not retreive wallet address"})})})}function _Q(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i}=e;return t?n?null:(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{color:"amber",children:(0,y.jsx)(lo.qdM,{})}),(0,y.jsxs)(t1,{size:"14",children:["Wallet is scanning (",i,"%), transaction data may be incomplete."]})]}):(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{color:"amber",children:(0,y.jsx)(lo.qdM,{})}),(0,y.jsxs)(t1,{size:"14",children:["Blockchain is syncing (",r,"%), transaction data may be incomplete."]})]})}let _0={blog:"https://blog.sia.tech",docs:{index:"https://docs.sia.tech",sia101:"https://docs.sia.tech/get-started-with-sia/sia101",renterd:"https://docs.sia.tech/renting/about-renting",hostd:"https://docs.sia.tech/hosting/about-hosting-on-sia",walletd:"https://docs.sia.tech/wallet/wallet-overview",renting:"https://docs.sia.tech/renting/about-renting",wallet:"https://docs.sia.tech/wallet/wallet-overview",hosting:"https://docs.sia.tech/hosting/about-hosting-on-sia",mining:"https://docs.sia.tech/mining/about-mining-on-sia",embarcadero:"https://github.com/SiaFoundation/embarcadero",siad:"https://api.sia.tech",siaui:"https://docs.sia.tech/your-sia-wallet/sia-ui-faqs",brand:"https://docs.sia.tech/sia-integrations/sia-brand-guidelines"},website:{index:"https://sia.tech",tos:"https://sia.tech/terms-of-service",privacy:"https://sia.tech/privacy-policy"},explore:{mainnet:"https://siascan.com",testnetZen:"https://zen.siascan.com",testnetZenFaucet:"https://zen.siascan.com/faucet"},design:"https://design.sia.tech",apiDocs:{renterd:"https://api.sia.tech/renterd",hostd:"https://api.sia.tech/hostd",walletd:"https://api.sia.tech/walletd"},github:{index:"https://github.com/SiaFoundation",embarcadero:"https://github.com/SiaFoundation/embarcadero",siad:"https://github.com/SiaFoundation/siad",renterd:"https://github.com/SiaFoundation/renterd",walletd:"https://github.com/SiaFoundation/walletd",hostd:"https://github.com/SiaFoundation/hostd",siaui:"https://gitlab.com/NebulousLabs/Sia-UI"},discord:"https://sia.tech/discord",twitter:"https://twitter.com/sia__foundation",bluesky:"https://bsky.app/profile/sia.tech",twitterHandle:"@sia__foundation",reddit:"https://reddit.com/r/siacoin",forum:"https://forum.sia.tech/",forumGrants:"https://forum.sia.tech/c/grants/",forumGrantsProposed:"https://forum.sia.tech/c/grants/proposed/",merch:"https://siagear.tech/",email:"hello@sia.tech",benchmarks:"https://benchmarks.sia.tech",storageStats:"https://hosts.siacentral.com/",hostTroubleshoot:"https://troubleshoot.siacentral.com/",coinmarketcap:"https://coinmarketcap.com/currencies/siacoin/",jobs:"https://siafoundation.homerun.co/"};function _1(){let{settings:e,setCurrency:t,currencyOptions:n}=(0,fq.Hv)();return(0,y.jsx)(f1,{disabled:!e.siaCentral,value:e.currency.id,onChange:e=>t(e.currentTarget.value),children:n.map(e=>{let{id:t,label:n}=e;return(0,y.jsx)(f2,{value:t,children:n},t)})})}let _2=[{id:"sc",label:"Siacoin"},{id:"fiat",label:"Fiat"},{id:"bothPreferSc",label:"Both - prefer siacoin"},{id:"bothPreferFiat",label:"Both - prefer fiat"}];function _4(){let{settings:e,setSettings:t}=(0,fq.Hv)();return(0,y.jsx)(f1,{disabled:!e.siaCentral,value:e.currencyDisplay,onChange:e=>t({currencyDisplay:e.currentTarget.value}),children:_2.map(e=>{let{id:t,label:n}=e;return(0,y.jsx)(f2,{value:t,children:n},t)})})}function _3(e){let{open:t,onOpenChange:n,securityEl:r,showGpuSetting:i}=e,{settings:o,setSettings:a,gpu:s}=(0,fq.Hv)();return(0,y.jsx)(ul,{open:t,title:"App preferences",onOpenChange:n,contentVariants:{className:"w-[450px]"},children:(0,y.jsxs)("div",{className:"flex flex-col gap-6 mb-2",children:[(0,y.jsx)("div",{className:"flex flex-col gap-4",children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(t1,{size:"16",weight:"bold",children:"Display"}),(0,y.jsx)(t2,{size:"14",children:"Configure visual and locale display preferences."}),(0,y.jsx)(lf,{children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lo.RdX,{})}),(0,y.jsx)(cQ,{size:"20",className:"flex-1",children:"Currency display"}),(0,y.jsx)(_4,{})]}),(0,y.jsx)(t2,{size:"14",children:"Select whether you would like to see currency values in siacoin, fiat, or both. Fiat requires Sia Central third-party data enabled under Privacy."})]})}),(0,y.jsx)(lf,{children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lo.RdX,{})}),(0,y.jsx)(cQ,{size:"20",className:"flex-1",children:"Fiat"}),(0,y.jsx)(_1,{})]}),(0,y.jsx)(t2,{size:"14",children:"Select a fiat currency for price conversions from Siacoin. Requires Sia Central third-party data enabled under Privacy."})]})}),(0,y.jsx)(lf,{children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lo.RdX,{})}),(0,y.jsx)(cQ,{size:"20",className:"flex-1",children:"Theme"}),(0,y.jsx)(pI,{})]}),(0,y.jsx)(t2,{size:"14",children:"Switch between a dark or light mode, or follow your system's settings."})]})}),i&&(0,y.jsx)(lf,{children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lo.RdX,{})}),(0,y.jsx)(cQ,{size:"20",className:"flex-1",children:"GPU"}),(0,y.jsx)(hl,{disabled:!s.canGpuRender,checked:s.canGpuRender&&s.isGpuEnabled,onCheckedChange:s.setIsGpuEnabled,size:"medium"})]}),(0,y.jsxs)(t2,{size:"14",children:["Enable features that require a GPU."," ",s.canGpuRender?"":"This device does not support GPU rendering."]})]})})]})}),(0,y.jsx)(cR,{className:"w-full"}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsx)(t1,{size:"16",weight:"bold",children:"Security"}),(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(t2,{size:"14",children:"Configure security preferences."}),(0,y.jsx)(lf,{children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lo.RdX,{})}),(0,y.jsx)(cQ,{size:"20",className:"flex-1",children:"Lock app"}),(0,y.jsx)(hl,{size:"medium",checked:o.autoLock,onCheckedChange:e=>a({autoLock:e})}),(0,y.jsxs)(f1,{disabled:!o.autoLock,value:String(o.autoLockTimeout),onChange:e=>{a({autoLockTimeout:Number(e.currentTarget.value)})},children:[(0,y.jsx)(f2,{value:j4(5),children:"5 minutes"}),(0,y.jsx)(f2,{value:j4(10),children:"10 minutes"}),(0,y.jsx)(f2,{value:j4(20),children:"20 minutes"}),(0,y.jsx)(f2,{value:j4(30),children:"30 minutes"}),(0,y.jsx)(f2,{value:j4(60),children:"1 hour"})]})]}),(0,y.jsx)(t2,{size:"14",children:"Automatically lock the app after a certain period of inactivity."})]})}),r]})]}),(0,y.jsx)(cR,{className:"w-full"}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsx)(t1,{size:"16",weight:"bold",children:"Privacy"}),(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(t2,{size:"14",children:"Configure privacy preferences. The app uses the third-party APIs listed below to improve the user experience. All third-party APIs are optional and can be toggled on or off."}),(0,y.jsx)(lf,{children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lo.RdX,{})}),(0,y.jsx)(cQ,{size:"20",className:"flex-1",children:"Sia Central"}),(0,y.jsx)(hl,{size:"medium",checked:o.siaCentral,onCheckedChange:e=>a({siaCentral:e})})]}),(0,y.jsx)(t2,{size:"14",children:"The app fetches Siacoin exchange rates from the Sia Central API."})]})})]})]}),(0,y.jsx)(cR,{className:"w-full"}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsx)(t1,{size:"16",weight:"bold",children:"Help"}),(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(t2,{size:"14",children:"Find information about the Sia software at our website, documentation site, and on Github. Join our active Discord community for discussion and help troubleshooting issues."}),(0,y.jsxs)("div",{className:"flex gap-4",children:[(0,y.jsxs)(dt,{href:_0.website.index,target:"_blank",className:"flex items-center gap-1",children:[(0,y.jsx)(lo.lq1,{}),"Website"]}),(0,y.jsxs)(dt,{href:_0.docs.index,target:"_blank",className:"flex items-center gap-1",children:[(0,y.jsx)(lo.RdX,{}),"Docs"]}),(0,y.jsxs)(dt,{href:_0.github.index,target:"_blank",className:"flex items-center gap-1",children:[(0,y.jsx)(lo.Sfn,{}),"About"]}),(0,y.jsxs)(dt,{href:_0.discord,target:"_blank",className:"flex items-center gap-1",children:[(0,y.jsx)(lo.b47,{}),"Discord"]})]})]})]})]})})}function _5(e){let{balanceSc:t,isSynced:n,syncingMessage:r}=e;return t?n?(0,y.jsx)(SB,{side:"bottom",balanceSc:t,children:(0,y.jsx)(t3,{className:"hidden sm:flex h-7 px-3 items-center",children:(0,y.jsx)(So,{variant:"value",value:t.spendable.plus(t.unconfirmed),size:"12",showTooltip:!1})})}):(0,y.jsx)(ln,{content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,y.jsxs)(t3,{className:"hidden sm:flex h-7 pl-2 pr-3 gap-1.5 items-center",children:[(0,y.jsx)(t1,{color:"amber",children:(0,y.jsx)(lo.qdM,{})}),(0,y.jsx)(So,{variant:"value",value:t.spendable.plus(t.unconfirmed),size:"12",showTooltip:!1})]})}):null}function _6(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i,balanceSc:o,sendSiacoin:a,receiveSiacoin:s}=e;return(0,y.jsxs)(y.Fragment,{children:[o&&(0,y.jsx)(_5,{isSynced:t&&n,syncingMessage:t?"Wallet is scanning (".concat(i,"%), balance may be incorrect."):"Blockchain is syncing (".concat(r,"%), balance may be incorrect."),balanceSc:o}),s&&(0,y.jsxs)(li,{size:"small",onClick:s,children:[(0,y.jsx)(lo.xHM,{}),"Receive"]}),(0,y.jsxs)(li,{size:"small",variant:"accent",onClick:a,children:[(0,y.jsx)(lo.rW0,{}),"Send"]})]})}function _8(e,t){if(!e||!e.length)return[];let n=Object.keys(j2()(e[0],"timestamp"));e.sort((e,t)=>e.timestamp>t.timestamp?1:-1);let r=[];return"delta"===t?e.forEach((t,i)=>{let o={...t};0!==i&&(n.forEach(n=>{let r=t[n],a=e[i-1][n];o[n]=r-a}),r.push(o))}):r=e,r}let _7={"5m":e=>{let t=e+j4(5);return"5m interval from ".concat((0,vj.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,vj.rN)(t,{timeStyle:"short",hour12:!1}))},"15m":e=>{let t=e+j4(15);return"15m interval from ".concat((0,vj.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,vj.rN)(t,{timeStyle:"short",hour12:!1}))},hourly:e=>{let t=e+36e5;return"Hour interval from ".concat((0,vj.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,vj.rN)(t,{timeStyle:"short",hour12:!1}))},daily:e=>{let t=e+864e5;return"Day interval from ".concat((0,vj.rN)(e)," to ").concat((0,vj.rN)(t))},weekly:e=>{let t=e+j3(7);return"Week interval from ".concat((0,vj.rN)(e)," to ").concat((0,vj.rN)(t))},monthly:e=>{let t=e+j3(30);return"Month interval from ".concat((0,vj.rN)(e)," to ").concat((0,vj.rN)(t))},yearly:e=>{let t=e+j3(365);return"Year interval from ".concat((0,vj.rN)(e)," to ").concat((0,vj.rN)(t))},default:e=>"".concat((0,vj.rN)(e))};function _9(e){return _7[e]||_7.default}function Ce(e){if(!e||!e.length)return{};let t=Object.keys(j2()(e[0],"timestamp"));e.sort((e,t)=>e.timestamp>t.timestamp?1:-1);let n=t.reduce((t,n)=>({...t,[n]:function(e,t){var n,r;let i=(null===(n=t[0])||void 0===n?void 0:n[e])||0,o=(null===(r=t[t.length-1])||void 0===r?void 0:r[e])||0,a=t.reduce((t,n)=>t+(n[e]||0),0);return Ct({total:a,start:i,end:o,count:t.length})}(n,e)}),{});return{...n,total:function(e,t){let n=Cn(e,t[0]),r=Cn(e,t[t.length-1]),i=t.reduce((t,n)=>t+Cn(e,n),0);return Ct({total:i,start:n,end:r,count:t.length})}(t,e)}}function Ct(e){let{total:t,start:n,end:r,count:i}=e,o=r-n;return{total:t,diff:o,change:0===n?void 0:o/n*100,latest:r,average:t/i}}function Cn(e,t){return e.reduce((e,n)=>e+((null==t?void 0:t[n])||0),0)}function Cr(e){let{balances:t,isLoading:n,chartType:r="area"}=e,{resolvedTheme:i}=(0,pV.F)(),o=(0,x.useMemo)(()=>"light"===i?{sc:{label:"siacoin",color:vw.accent[800]}}:{sc:{label:"siacoin",color:vw.accentdark[800]}},[i]),a=(0,x.useMemo)(()=>{let e=_8(t,"none"),i=Ce(t);return{data:e,stats:i,config:{enabledGraph:["sc"],enabledTip:["sc"],data:{sc:o.sc},format:e=>(0,vj.Vz)(e),formatTimestamp:_9("default"),formatTickY:e=>(0,vj.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:r},isLoading:n}},[t,n,o,r]);return(0,y.jsx)("div",{className:"relative",children:(0,y.jsx)(kl,{id:"balance",height:200,allowConfiguration:!1,data:a.data,config:a.config})})}function Ci(e){let{peers:t,isLoading:n,connectPeer:r}=e;return(0,y.jsx)(Sv,{title:"Peers",actions:(0,y.jsx)(li,{onClick:r,children:"Connect"}),isLoading:n,dataset:(null==t?void 0:t.map(e=>({type:"ip",hash:e})))||[]})}function Co(e){let{size:t,label:n,enabled:r=!0,onChange:i,color:o}=e;return(0,y.jsxs)("div",{className:(0,em.cx)("flex gap-1.5 items-center",r?"opacity-100":"opacity-50",i?"cursor-pointer":"cursor-auto",i&&(r?"hover:opacity-90":"hover:opacity-60")),onClick:()=>i&&i(!r),children:[o&&(0,y.jsx)("div",{className:"relative top-px",children:(0,y.jsx)(f6,{style:{backgroundColor:o}})}),(0,y.jsx)(t1,{size:t,children:n})]})}function Ca(e){let{children:t,variant:n,align:r}=e;return(0,y.jsx)("div",{className:"relative",style:{top:"primary"===n?"6px":void 0,left:"start"===r?"0px":void 0,right:"end"===r?"0px":void 0},children:(0,y.jsx)(t1,{size:"10",color:"primary"===n?"contrast":"verySubtle",dir:"start"===r?"rtl":"ltr",weight:"primary"===n?"semibold":"regular",ellipsis:!0,children:t})})}function Cs(e){let{date:t,align:n,variant:r}=e;return t?(0,y.jsx)(Ca,{variant:r,align:n,children:(0,vj.rN)(t)}):null}function Cl(e){let{blockHeight:t,align:n,variant:r}=e;return t?(0,y.jsx)(Ca,{variant:r,align:n,children:t.toLocaleString()}):null}function Cu(e){let{label:t,currentHeight:n,range:r,startHeight:i,endHeight:o,color:a,align:s,rounded:l,className:u,showDates:c}=e;if(!i||!o)return null;let d=r.endHeight-r.startHeight,f=(0,vj.pp)(d),h=(0,vj.jr)(n,r.startHeight),p=(0,vj.jr)(n,i),m=(0,vj.jr)(n,o),v=(p-h)/f,g=(m-h)/f;return(0,y.jsxs)("div",{className:(0,em.cx)("group flex items-center justify-center","absolute -top-[5px] h-4","cursor-pointer","transition-colors"),style:{left:Cc(v),width:Cc(g-v)},children:[(0,y.jsx)("div",{className:(0,em.cx)("z-0 absolute w-full h-full","rounded-md","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10"),style:{width:"calc(100% + 8px)",left:"-4px"}}),(0,y.jsx)("div",{className:(0,em.cx)("z-10 absolute w-full h-1.5",u,"start"===l?"rounded-l-lg":"end"===l?"rounded-r-lg":"rounded-lg","border-y","start"===l?"border-l":"end"===l?"border-r":"border","blue"===a?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-blue-500/50 dark:border-blue-500/50"]:[],"green"===a?["bg-green-300 dark:bg-green-300","group-hover:bg-green-400 dark:group-hover:bg-green-400","border-green-500/50 dark:border-green-500/50"]:[],"amber"===a?["bg-amber-300 dark:bg-amber-300","group-hover:bg-amber-400 dark:group-hover:bg-amber-400","border-amber-500/50 dark:border-amber-500/50"]:[])}),(0,y.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 bottom-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:Cc(1-g)}:{left:Cc(v)},children:[(0,y.jsx)(Cl,{blockHeight:i,align:"start",variant:"primary"}),(0,y.jsx)(Ca,{variant:"primary",children:t}),(0,y.jsx)(Cl,{blockHeight:o,align:"end",variant:"primary"})]}),c&&(0,y.jsxs)("div",{className:"flex group-hover/segments:hidden absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:Cc(1-g)}:{left:Cc(v)},children:[(0,y.jsx)(Cs,{date:p,align:"start",variant:"secondary"}),(0,y.jsx)(Cs,{date:m,align:"start",variant:"secondary"})]}),(0,y.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:Cc(1-g)}:{left:Cc(v)},children:[(0,y.jsx)(Cs,{date:p,align:"start",variant:"secondary"}),(0,y.jsx)(Cs,{date:m,align:"start",variant:"secondary"})]})]})}function Cc(e){return"".concat(100*e,"%")}function Cd(e){let{currentHeight:t,eventHeight:n,range:r,label:i,bottomLabel:o,color:a,className:s,unconfirmedPing:l=!0}=e,u=!!n&&n>t,c=n&&!u&&t-n<6,d=r.endHeight-r.startHeight,f=(0,vj.pp)(d),h=(0,vj.jr)(t,r.startHeight),p=n?(0,vj.jr)(t,n):0;return n?(0,y.jsx)("div",{className:(0,em.cx)("group","absolute -top-[5px] w-4 h-4","flex items-center justify-center","rounded-full cursor-pointer","-translate-x-1/2",s),style:{left:"".concat(100*(p?(p-h)/f:0),"%")},children:(0,y.jsxs)("div",{className:(0,em.cx)("relative w-full h-full","flex items-center justify-center","rounded-full cursor-pointer"),children:[l&&c&&(0,y.jsx)("div",{className:(0,em.cx)("z-0 absolute w-1.5 h-1.5","rounded-full","bg-amber-500 dark:bg-amber-200","animate-pingslow")}),(0,y.jsx)("div",{className:(0,em.cx)("z-0 absolute w-4 h-4","rounded-full","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10")}),(0,y.jsx)("div",{className:(0,em.cx)("absolute w-1.5 h-1.5","rounded-full","border","green"===a?["bg-green-500 dark:bg-green-500","group-hover:bg-green-600 dark:group-hover:bg-green-600","border-white dark:border-white"]:[],"amber"===a?["bg-amber-500 dark:bg-amber-500","group-hover:bg-amber-600 dark:group-hover:bg-amber-600","border-white dark:border-white"]:[],"gray"===a?["bg-gray-700 dark:bg-graydark-900","group-hover:bg-gray-800 dark:group-hover:bg-graydark-800","border-white dark:border-white"]:[],"blue"===a?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-white dark:border-white"]:[])}),(0,y.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 bottom-[100%] left-1.5",children:[(0,y.jsx)(Cl,{blockHeight:n,align:"start",variant:"primary"}),(0,y.jsx)(Ca,{variant:"primary",children:i})]}),(0,y.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 top-[100%] left-1.5",children:[(0,y.jsx)(Cs,{date:p,align:"start",variant:"secondary"}),o&&(0,y.jsx)(Ca,{variant:"secondary",children:o})]})]})}):null}function Cf(e){let{currentHeight:t,contractHeightStart:n,contractHeightEnd:r,proofWindowHeightStart:i,proofWindowHeightEnd:o,revisionHeight:a,proofHeight:s,range:l}=e,u=t-n<6;return(0,y.jsx)("div",{className:"group/main relative w-full",children:(0,y.jsx)("div",{className:"relative py-6",children:(0,y.jsxs)("div",{className:"relative z-10 h-1.5",children:[(0,y.jsx)("div",{className:"absolute h-full w-full bg-gray-300 dark:bg-graydark-400 rounded-lg"}),(0,y.jsxs)("div",{className:"group/segments",children:[(0,y.jsx)(Cu,{label:"contract duration",currentHeight:t,startHeight:n,endHeight:r,range:l,color:"blue",align:"center",rounded:"start",className:u?"border-dotted opacity-50":"",showDates:!0}),(0,y.jsx)(Cu,{label:"proof window",currentHeight:t,startHeight:i,endHeight:o,range:l,color:"green",align:"end",rounded:"end",className:u?"border-dotted opacity-50":""}),(0,y.jsx)(Cd,{label:"contract formation",bottomLabel:u?"unconfirmed":"",currentHeight:t,eventHeight:n,range:l,color:u?"amber":"blue",className:"z-20"}),(0,y.jsx)(Cd,{label:"last revision",currentHeight:t,eventHeight:a,range:l,color:"green",className:"z-20"}),(0,y.jsx)(Cd,{label:"storage proof",currentHeight:t,eventHeight:s,range:l,color:"green",className:"z-20"}),(0,y.jsx)(Cd,{label:"current block",currentHeight:t,eventHeight:t,range:l,color:"gray",className:"z-10",unconfirmedPing:!1})]})]})})})}var Ch=n(17335),Cp=n.n(Ch);function Cm(e){let{label:t,columns:n,enabled:r,setColumnsVisible:i,setColumnsHidden:o}=e,a=0===Cp()(n,r).length,s=Cp()(n,r).length===n.length;return(0,y.jsxs)(cZ,{children:[(0,y.jsx)(c7,{children:t}),(0,y.jsxs)(cI,{children:[(0,y.jsx)(li,{tip:"".concat(t,": show all"),icon:a?"contrast":"hover",variant:"ghost",onClick:e=>{e.stopPropagation(),i(n)},children:(0,y.jsx)(lo.xVB,{})}),(0,y.jsx)(li,{icon:s?"contrast":"hover",tip:"".concat(t,": hide all"),variant:"ghost",onClick:e=>{e.stopPropagation(),o(n)},children:(0,y.jsx)(lo.pHg,{})})]})]})}function Cv(e){let{title:t,children:n}=e;return(0,y.jsxs)("div",{className:"flex flex-col gap-6",children:[t&&(0,y.jsx)(cQ,{anchorLink:!0,size:"24",children:t}),(0,y.jsx)(t3,{className:"p-6",children:(0,y.jsx)("div",{className:"flex flex-col gap-6",children:n})})]})}function Cg(e){let{title:t,description:n,control:r}=e;return(0,y.jsxs)("div",{className:"flex gap-10 justify-between",children:[(0,y.jsxs)("div",{className:"flex flex-col gap-2 max-w-[600px]",children:[(0,y.jsx)(cQ,{size:"20",children:t}),(0,y.jsx)(t2,{size:"14",children:n})]}),(0,y.jsx)("div",{className:"",children:r})]})}function Cy(e){let{open:t,params:n,trigger:r,onOpenChange:i}=e,{body:o,title:a,variant:s,action:l,onConfirm:u}=n||{},c=(0,_v.cI)(),d=(0,x.useCallback)(()=>{u&&u(),i(!1)},[u,i]);return(0,y.jsx)(ul,{title:a,trigger:r,open:t,onOpenChange:i,contentVariants:{className:"w-[400px]"},children:(0,y.jsx)("form",{onSubmit:c.handleSubmit(d),children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[o,(0,y.jsx)("div",{className:"flex gap-1 justify-end",children:(0,y.jsx)(Sj,{variant:s,form:c,size:"small",children:l})})]})})})}function Cx(e){let{name:t,peerCount:n,isSynced:r,nodeBlockHeight:i,connectPeer:o}=e;return(0,y.jsxs)("div",{className:"flex justify-between items-center",children:[(0,y.jsx)(t1,{font:"mono",weight:"bold",size:"20",children:t}),(0,y.jsxs)("div",{className:"flex items-center",children:[n?(0,y.jsxs)(li,{className:"relative left-2 only:left-0",variant:"ghost",onClick:o,tip:"".concat(n," connected peers"),children:[(0,y.jsx)(t1,{color:"subtle",children:n.toLocaleString()}),(0,y.jsx)(lo.RK4,{})]}):null,i&&r?(0,y.jsx)(ln,{content:"Blockchain is synced",children:(0,y.jsx)("div",{className:"relative left-2",children:(0,y.jsxs)(li,{variant:"ghost",state:"waiting",children:[(0,y.jsx)(t1,{color:"subtle",children:i.toLocaleString()}),(0,y.jsx)(t1,{color:"green",children:(0,y.jsx)(lo.Y3p,{})})]})})}):null]})]})}function Cb(e){let{nodeBlockHeight:t,networkBlockHeight:n,moreThan100BlocksToSync:r,percent:i}=e;return(0,y.jsxs)("div",{className:"flex flex-col justify-between h-full mb-1",children:[(0,y.jsx)(dI,{variant:"accent",value:t&&n?t:0,max:n||1,className:""}),(0,y.jsxs)("div",{className:"flex justify-between mt-1.5",children:[(0,y.jsx)(t1,{color:"subtle",size:"10",children:"Syncing..."}),t&&n?r?(0,y.jsx)(t1,{color:"subtle",size:"10",children:"".concat(t.toLocaleString()," / ").concat(n.toLocaleString()," (").concat(i,"%)")}):(0,y.jsx)(t1,{color:"subtle",size:"10",children:"(".concat(i,"%)")}):null]})]})}function Cw(e){let{name:t,peerCount:n,connectPeer:r,isSynced:i,syncPercent:o,nodeBlockHeight:a,estimatedBlockHeight:s,firstTimeSyncing:l,moreThan100BlocksToSync:u,children:c}=e;return(0,y.jsx)(h5,{rootProps:{openDelay:100,closeDelay:1e3},contentProps:{side:"right",align:"start",sideOffset:5,className:"!max-w-none"},trigger:(0,y.jsxs)("div",{className:"relative hover:scale-105 transition-transform",children:[i||100===o||0===o?null:(0,y.jsx)("div",{className:"absolute -bottom-2.5 w-full flex justify-center",children:(0,y.jsxs)(t1,{className:"bg-amber-500 py-px px-1 rounded-sm scale-75",size:"10",children:[o,"%"]})}),(0,y.jsx)(di,{size:30})]}),children:(0,y.jsxs)("div",{className:"flex flex-col gap-2 px-1 pt-1 pb-2 w-[350px]",children:[(0,y.jsx)(Cx,{nodeBlockHeight:a,isSynced:i,name:t,peerCount:n,connectPeer:r}),i?(0,y.jsx)(cR,{className:"w-full mb-0.5"}):(0,y.jsx)(Cb,{percent:o,nodeBlockHeight:a,networkBlockHeight:s,moreThan100BlocksToSync:u}),l&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(t1,{color:"contrast",size:"14",children:"Welcome to Sia! The blockchain is syncing to the current network height. Depending on your system this process may take a while."}),(0,y.jsx)(cR,{className:"w-full mb-1"})]}),c]})})}function Cj(e){let{testnetName:t}=e;return(0,y.jsxs)("div",{className:"flex gap-2 items-center justify-center py-2 px-3 bg-amber-600 dark:bg-amber-500",children:[(0,y.jsx)(t1,{color:"lo",children:(0,y.jsx)(lo.RdX,{})}),(0,y.jsxs)(t1,{size:"14",color:"lo",children:["You are on the ",t,"."]})]})}function Ck(e){let{type:t,label:n,link:r,tip:i,icon:o,value:a,onClick:s,decimalsLimit:l,units:u}=e;return(0,y.jsxs)("div",{className:"flex justify-between items-center",children:[(0,y.jsx)(ln,{align:"start",side:"bottom",content:i,children:(0,y.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,y.jsx)(t1,{className:"flex relative",children:o||(0,y.jsx)(lo.RdX,{})}),(0,y.jsx)(t1,{size:"12",ellipsis:!0,children:r?(0,y.jsx)(dt,{href:r,target:"_blank",children:n}):n})]})}),(0,y.jsx)("div",{className:(0,em.cx)("flex items-center",s?"cursor-pointer":""),onClick:()=>{s&&s(a)},children:"siacoin"===t?(0,y.jsx)(Sn,{value:a,variant:"value",size:"12",fixed:l,dynamicUnits:!1,showTooltip:!1}):(0,y.jsx)(Sa,{value:a,variant:"value",size:"12",format:e=>"".concat(fH(e,l)," ").concat(u)})})]})}function CE(e){let{name:t,form:n,fields:r}=e,i=r[t],{average:o,suggestion:a,placeholder:s,units:l,suggestionTip:u,averageTip:c,after:d,decimalsLimitSc:f=6,decimalsLimitFiat:h=6,tipsDecimalsLimitSc:p=0}=i,{setValue:m,value:v,error:g}=_x({name:t,field:i,form:n}),b=d||(()=>null),w=(0,x.useMemo)(()=>s?new(fB())(s):a&&"boolean"!=typeof a?new(fB())(a):void 0,[s,a]);return(0,y.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,y.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,y.jsx)(fY,{name:t,size:"small",sc:v,units:l,decimalsLimitSc:f,decimalsLimitFiat:h,error:g,changed:n.formState.dirtyFields[t],placeholder:w,onChange:e=>{m(e,!0)},onBlur:()=>{m(v,!0)}}),(0,y.jsx)(b,{name:t,form:n,fields:r}),o&&(0,y.jsx)(Ck,{type:"siacoin",label:"Network average",tip:c||"Averages provided by Sia Central.",decimalsLimit:p,value:(0,vj.qN)(o),onClick:()=>{m(o,!0)}}),a&&u&&(0,y.jsx)(Ck,{type:"siacoin",label:"Suggestion",tip:u,decimalsLimit:p,value:(0,vj.qN)(a),onClick:()=>{m(a,!0)}})]}),(0,y.jsx)("div",{className:"h-[20px]",children:(0,y.jsx)(Sb,{form:n,name:t})})]})}function CS(e){let{name:t,form:n,fields:r}=e,i=r[t],{average:o,averageTip:a,suggestion:s,suggestionTip:l,decimalsLimit:u=2,placeholder:c,units:d}=i,{setValue:f,value:h,error:p}=_x({form:n,field:i,name:t}),m=(0,x.useMemo)(()=>c?new(fB())(c):s&&"boolean"!=typeof s?new(fB())(s):void 0,[c,s]);return(0,y.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,y.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,y.jsx)(fU,{name:t,value:h,units:d,decimalsLimit:u,placeholder:m,state:p?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:e=>{let t=void 0!==e?new(fB())(e):void 0;f(t,!0)},onBlur:()=>{f(h,!0)}}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[o&&(0,y.jsx)(Ck,{type:"number",label:"Network average",tip:a||"Averages provided by Sia Central.",decimalsLimit:u,value:o,units:d,onClick:()=>{f(o,!0)}}),s&&l&&(0,y.jsx)(Ck,{type:"number",label:"Suggestion",tip:l,decimalsLimit:u,value:s,units:d,onClick:()=>{f(s,!0)}})]})]}),(0,y.jsx)("div",{className:"h-[20px]",children:(0,y.jsx)(Sb,{form:n,name:t})})]})}function C_(e){let{label:t,link:n,tip:r,value:i,onClick:o}=e;return(0,y.jsxs)("div",{className:"flex justify-between items-center",children:[(0,y.jsx)(ln,{align:"start",side:"bottom",content:r,children:(0,y.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,y.jsx)(t1,{className:"flex relative",children:(0,y.jsx)(lo.RdX,{})}),(0,y.jsx)(t1,{size:"12",children:n?(0,y.jsx)(dt,{href:n,target:"_blank",children:t}):t})]})}),(0,y.jsx)("div",{className:"flex cursor-pointer items-center",onClick:o,children:(0,y.jsx)(t1,{size:"12",children:(0,y.jsx)(lM,{children:i})})})]})}function CC(e){let{name:t,form:n,fields:r,type:i}=e,o=r[t],{placeholder:a,suggestion:s,suggestionTip:l}=o,{ref:u,onChange:c,setValue:d,onBlur:f,error:h}=_x({name:t,form:n,field:o});return(0,y.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,y.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,y.jsx)(fb,{ref:u,name:t,placeholder:a,type:i,state:h?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:c,onBlur:f}),(0,y.jsx)("div",{className:"flex flex-col gap-2",children:s&&l&&(0,y.jsx)(C_,{label:"Suggestion",tip:l,value:s,onClick:()=>{d(s,!0)}})})]}),(0,y.jsx)("div",{className:"h-[20px]",children:(0,y.jsx)(Sb,{form:n,name:t})})]})}function CO(e){let{name:t,form:n,fields:r}=e,i=r[t],{suggestion:o,suggestionTip:a}=i,{setValue:s,value:l,error:u}=_x({name:t,field:i,form:n});return(0,y.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,y.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,y.jsx)("div",{className:"flex justify-end w-full",children:(0,y.jsx)(hl,{name:t,size:"medium",checked:l,state:u?"invalid":n.formState.dirtyFields[t]?"valid":"default",onCheckedChange:e=>{s(e,!0)},onBlur:()=>{s(l,!0)}})}),(0,y.jsx)("div",{className:"flex flex-col gap-2",children:void 0!==o&&a&&(0,y.jsx)(C_,{label:"Suggestion",tip:a,value:o?"on":"off",onClick:()=>{s(o,!0)}})})]}),(0,y.jsx)("div",{className:"h-[20px]",children:(0,y.jsx)(Sb,{form:n,name:t})})]})}function CM(e){let{name:t,form:n,fields:r}=e,i=r[t],{options:o,suggestion:a,suggestionTip:s}=i,{ref:l,onChange:u,setValue:c,onBlur:d,value:f,error:h}=_x({name:t,form:n,field:i});return(0,y.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,y.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,y.jsx)("div",{className:"flex justify-end w-full",children:(0,y.jsx)(f1,{ref:l,name:t,size:"small",value:f,state:h?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:u,onBlur:d,children:null==o?void 0:o.map(e=>(0,y.jsx)(f2,{value:e.value,children:e.label},e.value))})}),(0,y.jsx)("div",{className:"flex flex-col gap-2",children:void 0!==a&&s&&(0,y.jsx)(C_,{label:"Suggestion",tip:s,value:a?"on":"off",onClick:()=>{c(a,!0)}})})]}),(0,y.jsx)("div",{className:"h-[20px]",children:(0,y.jsx)(Sb,{form:n,name:t})})]})}function CT(e){let{title:t,category:n,form:r,fields:i}=e,o=Object.entries(i).filter(e=>{let[t,i]=e;return i.category===n&&!i.hidden&&(!i.show||i.show(r.getValues()))});return 0===o.length?null:(0,y.jsx)(Cv,{title:t,children:o.map((e,t)=>{let[n,a]=e;return(0,y.jsxs)(x.Fragment,{children:[(0,y.jsx)(Cg,{title:a.title,description:a.description,control:"number"===a.type?(0,y.jsx)(CS,{form:r,name:n,fields:i}):"siacoin"===a.type?(0,y.jsx)(CE,{form:r,name:n,fields:i}):"text"===a.type?(0,y.jsx)(CC,{form:r,name:n,fields:i}):"password"===a.type?(0,y.jsx)(CC,{form:r,type:"password",fields:i,name:n}):"boolean"===a.type?(0,y.jsx)(CO,{form:r,name:n,fields:i}):"select"===a.type?(0,y.jsx)(CM,{form:r,name:n,fields:i}):null}),t{l(e,!0)},onBlur:()=>{l(u,!0)}}),a]});return o?(0,y.jsx)(Sw,{title:s.title,name:t,form:n,children:d}):d}function CP(e){let{name:t,form:n,fields:r,size:i="small",group:o=!0}=e,a=r[t],{options:s}=a,{ref:l,onChange:u,onBlur:c,error:d}=_x({name:t,form:n,field:a}),f=(0,y.jsx)(f1,{ref:l,name:t,size:i,state:d?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:u,onBlur:c,children:null==s?void 0:s.map(e=>(0,y.jsx)(f2,{value:e.value,children:e.label},e.value))});return o?(0,y.jsx)(Sw,{title:a.title,name:t,form:n,children:f}):f}function CN(e){let{form:t,remoteValues:n,revalidate:r,mode:i,initialized:o}=e,a=Object.entries(t.formState.dirtyFields).filter(e=>{let[t,n]=e;return!!n}).length,s=(0,x.useCallback)(async()=>{let e=await r();e&&t.reset(e)},[t,r]),[l,u]=(0,x.useState)(!1);(0,x.useEffect)(()=>{o||u(!1)},[o]),(0,x.useEffect)(()=>{!l&&n&&(t.reset(n),u(!0))},[n]);let c=(0,x.useCallback)(()=>{if(!l||t.formState.isSubmitting||!n)return;let e=t.getValues();for(let[r,i]of(t.reset(n),Object.entries(e)))t.setValue(r,i,{shouldDirty:!0})},[t,l,n]);return(0,x.useEffect)(()=>{c()},[i,n]),{changeCount:a,revalidateAndResetFormData:s}}var CR=n(75652),CD=n.n(CR);lo.lg1,lo.eHR,lo.I$H,lo.KiD,lo.P5r,lo.CCF,lo.w9S,lo.EL$,lo.aPl,lo.wEY,lo.EOT,lo.kSc,lo.W$S,lo.lJ7,lo.ORH,lo.ka0,lo.BdP,lo.d19,lo.Mes,lo.VUg,lo.U_S,lo.T85;let CL=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,[a,s]=(0,x.useState)(!0),l=(0,x.useRef)(!1),u=(0,x.useRef)(0);return(0,x.useEffect)(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,x.createElement)(tL,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:(0,x.useCallback)(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:(0,x.useCallback)(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:(0,x.useCallback)(e=>{l.current=e},[]),disableHoverableContent:i},o)};function CF(e){let{children:t}=e,[n,r]=(0,x.useState)(!1);return(0,x.useEffect)(()=>{r(!0)},[]),(0,y.jsx)("div",{children:n?t:null})}function Cz(e){let{className:t,passwordProtectRequestHooks:n,fallback:r,children:i,lockRoutes:o}=e;return(0,y.jsx)(CF,{children:(0,y.jsx)(fq.kl,{fallback:r,children:(0,y.jsx)(pV.f,{attribute:"class",children:(0,y.jsx)(CL,{children:(0,y.jsx)(fq.bW,{lockRoutes:o,passwordProtectRequestHooks:n,children:(0,y.jsxs)("div",{id:"root",className:t,children:[(0,y.jsx)(EY,{}),i]})})})})})})}var CV=n(30898),CZ=n.n(CV),CI=n(92762);let CB=[];function CH(e,t){let{columns:n,columnsDefaultVisible:r,defaultSortField:i,sortOptions:o,disabledCategories:a}={disabledCategories:CB,...t},[s,l]=(0,CI.Z)("".concat(e,"/enabledColumns"),{defaultValue:r}),u=(0,x.useCallback)(e=>{l(t=>t.includes(e)?t.filter(t=>t!==e):t.concat(e))},[l]),c=(0,x.useCallback)(e=>{l(t=>CD()([...t,...e]))},[l]),d=(0,x.useCallback)(e=>{l(t=>Cp()(t,e))},[l]),f=(0,x.useCallback)(()=>{l(r)},[l,r]),h=(0,x.useMemo)(()=>n.filter(e=>{let t=null==a?void 0:a.includes(e.category||"");return!e.fixed&&!t}),[n,a]),p=(0,x.useMemo)(()=>n.filter(e=>{let t=e.fixed||s.includes(e.id),n=null==a?void 0:a.includes(e.category||"");return t&&!n}).map(e=>e.id),[n,s,a]),{sortField:m,sortDirection:v,setSortField:g,setSortDirection:y,toggleSort:b}=function(e,t){let{defaultSortField:n,sortOptions:r,enabledColumns:i}=t,[o,a]=(0,CI.Z)("".concat(e,"/sortField"),{defaultValue:n}),[s,l]=(0,CI.Z)("".concat(e,"/sortDirection"),{defaultValue:"desc"}),u=(0,x.useCallback)(e=>{if(o!==e){a(e),l("asc");return}l(e=>"desc"===e?"asc":"desc")},[o,a,l]),c=(0,x.useMemo)(()=>{if(!r)return[];let e=r.map(e=>e.id);return CZ()(e,i)},[r,i]);return{toggleSort:u,setSortDirection:l,setSortField:a,sortableColumns:c,sortField:o,sortDirection:s}}(e,{defaultSortField:i,sortOptions:o,enabledColumns:p}),w=(0,x.useMemo)(()=>{if(!o)return[];let e=o.map(e=>e.id);return CZ()(e,p)},[o,p]);return{configurableColumns:h,enabledColumns:p,toggleColumnVisibility:u,toggleSort:b,setSortDirection:y,setSortField:g,sortableColumns:w,sortField:m,setColumnsVisible:c,setColumnsHidden:d,sortDirection:v,resetDefaultColumnVisibility:f}}function CU(){let e=(0,SA.useRouter)(),[t,n]=(0,x.useState)([]),r=(0,x.useCallback)(t=>{n(e=>{let n=e.filter(e=>e.id!==t.id);return n.concat(t)}),e.replace({query:{}})},[e,n]),i=(0,x.useCallback)(()=>{n([]),e.replace({query:{}})},[e,n]),o=(0,x.useCallback)(t=>{n(e=>e.filter(e=>e.id!==t)),e.replace({query:{}})},[e,n]),a=(0,x.useCallback)(()=>{t.length&&(n(e=>e.slice(0,-1)),e.replace({query:{}}))},[e,n,t]);return{filters:t,setFilter:r,removeFilter:o,removeLastFilter:a,resetFilters:i}}function CW(e){let{dataset:t,filters:n,sortField:r,sortDirection:i}=e;return(0,x.useMemo)(()=>{if(!t)return null;let e=Object.entries(n).map(e=>{let[t,n]=e;return n}),o=e.length?t.filter(t=>{for(let n of e)if(!n.fn(t))return!1;return!0}):t;return[...o=o.sort((e,t)=>{let n=e[r],o=t[r];return"desc"===i?n instanceof fB()&&o instanceof fB()?n.lte(o)?1:-1:n<=o?1:-1:n instanceof fB()&&o instanceof fB()?n.gte(o)?1:-1:n>=o?1:-1})]},[t,n,r,i])}function Cq(){let e=(0,SA.useRouter)(),[t,n]=(0,x.useState)([]),r=(0,x.useCallback)(()=>{let t={...e.query};delete t.limit,delete t.offset,e.replace({query:t})},[e]),i=(0,x.useCallback)(e=>{n(t=>{let n=t.filter(t=>t.id!==e.id);return n.concat(e)}),r()},[n,r]),o=(0,x.useCallback)(()=>{n([]),r()},[n,r]),a=(0,x.useCallback)(e=>{n(t=>t.filter(t=>t.id!==e)),r()},[n,r]),s=(0,x.useCallback)(()=>{t.length&&(n(e=>e.slice(0,-1)),r())},[t,n,r]);return{filters:t,setFilter:i,removeFilter:a,removeLastFilter:s,resetFilters:o}}let C$=new(fB())(0);function CK(e){let{sc:t}=e,{settings:n}=(0,fq.Hv)(),r=(0,f$.BW)({config:{swr:{revalidateOnFocus:!1}}}),i=(0,x.useMemo)(()=>{var e;return n.siaCentral&&r.data?new(fB())((null===(e=r.data)||void 0===e?void 0:e.rates.sc[n.currency.id])||C$):C$},[r.data,n]),o=(0,x.useMemo)(()=>new(fB())(t).times(i),[t,i]);return i.isZero()?{}:{fiat:o,currency:n.currency}}function CY(e,t){let n=t.reduce((e,t)=>{let n=e.startHeight,r=e.endHeight;return t.contractHeightStartr&&(r=t.contractHeightEnd),{startHeight:n,endHeight:r}},{startHeight:e,endHeight:0});n.endHeight=Math.max(n.endHeight,e)+(0,vj.gU)(5),n.startHeight=n.startHeight-(0,vj.gU)(5);let r=[],i=n.startHeight;for(;i<=n.endHeight;)r.push(i),i+=j3(1);let o=r.reduce((e,t)=>({...e,[t]:{total:null,timestamp:t}}),{});return{allDatesMap:o,range:n}}let CG=/^[a-z]{2}$/i;function CX(e){if(!CG.test(e)){let t=typeof e;throw TypeError("cc argument must be an ISO 3166-1 alpha-2 string, but got '".concat("string"===t?e:t,"' instead."))}let t=[...e.toUpperCase()].map(e=>e.codePointAt()+127397);return String.fromCodePoint(...t)}},95753:function(e,t,n){"use strict";n.d(t,{bW:function(){return L},kl:function(){return $},gw:function(){return i},Tc:function(){return U},du:function(){return W},Hv:function(){return D},iv:function(){return I},rB:function(){return B},Nf:function(){return Z},Tu:function(){return q},mw:function(){return z},q0:function(){return F},Tb:function(){return O},V1:function(){return V},Q5:function(){return H},D:function(){return T}});var r=n(79381);function i(e){return new Promise(t=>setTimeout(t,e))}var o=n(89644),a=n.n(o),s=n(2784);function l(e){return{...e,config:{...null==e?void 0:e.config}}}function u(e){return{...e,config:{...null==e?void 0:e.config}}}function c(e){return{...e,config:{...null==e?void 0:e.config}}}function d(e,t,n){return(null==n?void 0:n.api)||(null==t?void 0:t.api)||e.api}function f(e,t,n){var r,i;let o=function(e,t,n){var r,i,o,a;let s={"Content-Type":"application/json",...null===(i=t.config)||void 0===i?void 0:null===(r=i.axios)||void 0===r?void 0:r.headers,...null==n?void 0:null===(a=n.config)||void 0===a?void 0:null===(o=a.axios)||void 0===o?void 0:o.headers},l=d(e,t,n);return e.api===l&&e.password&&(s.Authorization="Basic "+btoa(":".concat(e.password))),s}(e,t,n);return{responseType:"json",...null===(r=t.config)||void 0===r?void 0:r.axios,...null==n?void 0:null===(i=n.config)||void 0===i?void 0:i.axios,headers:o}}function h(e,t,n,r){if(!t)return null;let i=(null==n?void 0:n.params)||{};if(r&&r.params&&(i={...i,...r.params}),!(t=function(e,t){if(e&&t){let n=Object.keys(t);for(let r of n){let n=String(t[r]);e.includes(":".concat(r))?e=e.replace(":".concat(r),n):e.includes("?")?e+="&".concat(r,"=").concat(encodeURIComponent(n)):e+="?".concat(r,"=").concat(encodeURIComponent(n))}}return e}(t,i)))return null;let o=d(e,n,r);return o===e.api?"".concat(o,"/api").concat(t):"".concat(o).concat(t)}function p(e,t,n,r){let i=d(e,n,r);return i===e.api?t.replace("".concat(i,"/api"),""):t.replace(i,"")}var m=n(52322),v=n(82876),g=n(92762);function y(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}let x=["geforce 320m","geforce 8600","geforce 8600m gt","geforce 8800 gs","geforce 8800 gt","geforce 9400","geforce 9400m g","geforce 9400m","geforce 9600m gt","geforce 9600m","geforce fx go5200","geforce gt 120","geforce gt 130","geforce gt 330m","geforce gtx 285","google swiftshader","intel g41","intel g45","intel gma 4500mhd","intel gma x3100","intel hd 3000","intel q45","legacy","mali-2","mali-3","mali-4","quadro fx 1500","quadro fx 4","quadro fx 5","radeon hd 2400","radeon hd 2600","radeon hd 4670","radeon hd 4850","radeon hd 4870","radeon hd 5670","radeon hd 5750","radeon hd 6290","radeon hd 6300","radeon hd 6310","radeon hd 6320","radeon hd 6490m","radeon hd 6630m","radeon hd 6750m","radeon hd 6770m","radeon hd 6970m","sgx 543","sgx543"];function b(e){return e=e.toLowerCase().replace(/.*angle ?\((.+)\)(?: on vulkan [0-9.]+)?$/i,"$1").replace(/\s(\d{1,2}gb|direct3d.+$)|\(r\)| \([^)]+\)$/g,"").replace(/(?:vulkan|opengl) \d+\.\d+(?:\.\d+)?(?: \((.*)\))?/,"$1")}let w="undefined"==typeof window,j=(()=>{if(w)return;let{userAgent:e,platform:t,maxTouchPoints:n}=window.navigator,r=/(iphone|ipod|ipad)/i.test(e),i="iPad"===t||"MacIntel"===t&&n>0&&!window.MSStream;return{isIpad:i,isMobile:/android/i.test(e)||r||i,isSafari12:/Version\/12.+Safari/.test(e)}})();class k extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}let E=[],S=[];function _(e){return null!=e}let C=({mobileTiers:e=[0,15,30,60],desktopTiers:t=[0,15,30,60],override:n={},glContext:r,failIfMajorPerformanceCaveat:i=!1,benchmarksURL:o="https://unpkg.com/detect-gpu@5.0.34/dist/benchmarks"}={})=>y(void 0,void 0,void 0,function*(){let a={};if(w)return{tier:0,type:"SSR"};let{isIpad:s=!!(null==j?void 0:j.isIpad),isMobile:l=!!(null==j?void 0:j.isMobile),screenSize:u=window.screen,loadBenchmarks:c=e=>y(void 0,void 0,void 0,function*(){let t=yield fetch(`${o}/${e}`).then(e=>e.json());if(4>parseInt(t.shift().split(".")[0],10))throw new k("Detect GPU benchmark data is out of date. Please update to version 4x");return t})}=n,{renderer:d}=n,f=(e,t,n,r,i)=>({device:i,fps:r,gpu:n,isMobile:l,tier:e,type:t}),h,p="";if(d)h=[d=b(d)];else{var m;let e=r||function(e,t=!1){let n={alpha:!1,antialias:!1,depth:!1,failIfMajorPerformanceCaveat:t,powerPreference:"high-performance",stencil:!1};e&&delete n.powerPreference;let r=window.document.createElement("canvas"),i=r.getContext("webgl",n)||r.getContext("experimental-webgl",n);return null!=i?i:void 0}(null==j?void 0:j.isSafari12,i);if(!e)return f(0,"WEBGL_UNSUPPORTED");let t=e.getExtension("WEBGL_debug_renderer_info");if(t&&(d=e.getParameter(t.UNMASKED_RENDERER_WEBGL)),!d)return f(1,"FALLBACK");p=d,h="apple gpu"===(m=d=b(d))?function(e,t,n){let r;if(!n)return[t];let i=function(e){let t=e.createShader(35633),n=e.createShader(35632),r=e.createProgram();if(!(n&&t&&r))return;e.shaderSource(t,"\n precision highp float;\n attribute vec3 aPosition;\n varying float vvv;\n void main() {\n vvv = 0.31622776601683794;\n gl_Position = vec4(aPosition, 1.0);\n }\n "),e.shaderSource(n,"\n precision highp float;\n varying float vvv;\n void main() {\n vec4 enc = vec4(1.0, 255.0, 65025.0, 16581375.0) * vvv;\n enc = fract(enc);\n enc -= enc.yzww * vec4(1.0 / 255.0, 1.0 / 255.0, 1.0 / 255.0, 0.0);\n gl_FragColor = enc;\n }\n "),e.compileShader(t),e.compileShader(n),e.attachShader(r,t),e.attachShader(r,n),e.linkProgram(r),e.detachShader(r,t),e.detachShader(r,n),e.deleteShader(t),e.deleteShader(n),e.useProgram(r);let i=e.createBuffer();e.bindBuffer(34962,i),e.bufferData(34962,new Float32Array([-1,-1,0,3,-1,0,-1,3,0]),35044);let o=e.getAttribLocation(r,"aPosition");e.vertexAttribPointer(o,3,5126,!1,0,0),e.enableVertexAttribArray(o),e.clearColor(1,1,1,1),e.clear(16384),e.viewport(0,0,1,1),e.drawArrays(4,0,3);let a=new Uint8Array(4);return e.readPixels(0,0,1,1,6408,5121,a),e.deleteProgram(r),e.deleteBuffer(i),a.join("")}(e),o="801621810",a="8016218135",s="80162181161",l=(null==j?void 0:j.isIpad)?[["a7",s,12],["a8",a,15],["a8x",a,15],["a9",a,15],["a9x",a,15],["a10",a,15],["a10x",a,15],["a12",o,15],["a12x",o,15],["a12z",o,15],["a14",o,15],["m1",o,15]]:[["a7",s,12],["a8",a,12],["a9",a,15],["a10",a,15],["a11",o,15],["a12",o,15],["a13",o,15],["a14",o,15]];return"80162181255"===i?r=l.filter(([,,e])=>e>=14):(r=l.filter(([,e])=>e===i)).length||(r=l),r.map(([e])=>`apple ${e} gpu`)}(e,m,l):[m]}let v=(yield Promise.all(h.map(function(e){var t;return y(this,void 0,void 0,function*(){let n;let r=(e=>{let t=l?["adreno","apple","mali-t","mali","nvidia","powervr","samsung"]:["intel","apple","amd","radeon","nvidia","geforce"];for(let n of t)if(e.includes(n))return n})(e);if(!r)return;let i=`${l?"m":"d"}-${r}${s?"-ipad":""}.json`,o=a[i]=null!==(t=a[i])&&void 0!==t?t:c(i);try{n=yield o}catch(e){if(e instanceof k)throw e;return}let d=function(e){var t;let n=(e=e.replace(/\([^)]+\)/,"")).match(/\d+/)||e.match(/(\W|^)([A-Za-z]{1,3})(\W|$)/g);return null!==(t=null==n?void 0:n.join("").replace(/\W|amd/g,""))&&void 0!==t?t:""}(e),f=n.filter(([,e])=>e===d);f.length||(f=n.filter(([t])=>t.includes(e)));let h=f.length;if(0===h)return;let p=e.split(/[.,()\[\]/\s]/g).sort().filter((e,t,n)=>0===t||e!==n[t-1]).join(" "),m,[v,,,,g]=h>1?f.map(e=>[e,function(e,t){if(e===t)return 0;let n=e;e.length>t.length&&(e=t,t=n);let r=e.length,i=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i);)r--,i--;let o,a=0;for(;au?l>u?u+1:l:l>s?s+1:l;return u}(p,e[2])]).sort(([,e],[,t])=>e-t)[0][0]:f[0],y=Number.MAX_VALUE,{devicePixelRatio:x}=window,b=u.width*x*u.height*x;for(let e of g){let[t,n]=e,r=t*n,i=Math.abs(b-r);ie===n?t-r:e-n);if(!v.length){let e=x.find(e=>d.includes(e));return e?f(0,"BLOCKLISTED",e):f(1,"FALLBACK",`${d} (${p})`)}let[,g,C,O]=v[0];if(-1===g)return f(0,"BLOCKLISTED",C,g,O);let M=l?e:t,T=0;for(let e=0;e=M[e]&&(T=e);return f(T,"BENCHMARK",C,g,O)});function O(){var e,t;let n=null===(e=(t=window).matchMedia)||void 0===e?void 0:e.call(t,"(prefers-reduced-motion: reduce)");return!n||!!n.matches}let M=(0,s.createContext)({}),T=()=>(0,s.useContext)(M);function A(e){let{children:t}=e,n=function(){let[e,t]=(0,s.useState)({}),n=(0,s.useCallback)((e,n)=>{t(t=>({...t,[e]:{key:e,...n}}))},[t]),r=(0,s.useCallback)(e=>{t(t=>(delete t[e],{...t}))},[t]),i=(0,s.useCallback)(()=>{t({})},[t]),o=(0,s.useMemo)(()=>Object.entries(e).map(e=>e[1]),[e]);return{setWorkflow:n,removeWorkflow:r,resetWorkflows:i,workflows:o}}();return(0,m.jsx)(M.Provider,{value:n,children:t})}let P=[{id:"usd",label:"USD",prefix:"$",fixed:2},{id:"cad",label:"CAD",prefix:"$",fixed:2},{id:"eur",label:"EUR",prefix:"€",fixed:2},{id:"gbp",label:"GBP",prefix:"\xa3",fixed:2},{id:"jpy",label:"JPY",prefix:"\xa5",fixed:2},{id:"aud",label:"AUD",prefix:"$",fixed:2},{id:"rub",label:"RUB",prefix:"₽",fixed:2},{id:"cny",label:"CNY",prefix:"\xa5",fixed:2},{id:"btc",label:"BTC",prefix:"₿",fixed:6},{id:"eth",label:"ETH",prefix:"Ξ",fixed:6}],N={api:"",allowCustomApi:!1,siaCentral:!0,password:void 0,currency:P[0],currencyDisplay:"bothPreferSc",recentApis:{},autoLock:!1,autoLockTimeout:6e5},R=(0,s.createContext)({}),D=()=>(0,s.useContext)(R);function L(e){let{children:t,...n}=e,i=function(e){let{passwordProtectRequestHooks:t,lockRoutes:n,defaultSettings:i}=e,o=(0,s.useMemo)(()=>({...N,...i}),[i]),[a,l]=(0,g.Z)("v1/settings",{defaultValue:o});(0,s.useEffect)(()=>{l(e=>({...o,...e}))},[]);let u=(0,s.useMemo)(()=>({...o,...a}),[a,o]),{resetWorkflows:c}=T(),d=(0,s.useCallback)(e=>{l(t=>({...t,...e}))},[l]),f=(0,s.useCallback)(e=>{let t=P.find(t=>t.id===e);t&&d({currency:t})},[d]),h=(0,v.useRouter)(),p=(0,v.usePathname)(),[m,y]=(0,s.useState)({}),x=(0,s.useCallback)((e,t)=>{y(n=>({...n,[e]:t}))},[y]),b=(0,s.useCallback)(()=>{for(let[e,t]of(n&&h.push("".concat(n.login,"?prev=").concat([n.login].includes(p)?n.home:p)),d({password:""}),c(),(0,r.JG)(()=>!0,void 0,{revalidate:!1}),Object.entries(m)))t&&t()},[h,n,d,c,m,p]),w=function(e){let t=(0,v.usePathname)();return![e.login].includes(t)}({login:(null==n?void 0:n.login)||"/login"}),j=(0,s.useMemo)(()=>!!u.password,[u]),k=function(){let e=O(),[t,n]=(0,s.useState)(!1),[r,i]=(0,s.useState)(!1),[{isGpuEnabled:o,hasUserSet:a},l]=(0,g.Z)("v1/gpuFeatures",{defaultValue:{isGpuEnabled:!e,hasUserSet:!1}}),u=(0,s.useCallback)(function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];l(n=>({...n,isGpuEnabled:e,hasUserSet:t}))},[l]),c=(0,s.useCallback)(async()=>{let e=!1;{let t=await C();console.log("GPU",t),e=t.tier>0,!a&&t.tier<2&&u(!1,!1)}i(e),n(!0)},[i,u,a]);return(0,s.useEffect)(()=>{c()},[]),{hasCheckedGpu:t,canGpuRender:r,isGpuEnabled:o,shouldRender:r&&o,setCanGpuRender:i,setIsGpuEnabled:u}}();return{settings:u,setSettings:d,setCurrency:f,currencyOptions:P,gpu:k,lock:b,isUnlockedAndAuthedRoute:j&&w,passwordProtectRequestHooks:t,setOnLockCallback:x}}(n);return(0,m.jsx)(R.Provider,{value:i,children:t})}function F(e){var t;let n=(0,s.useMemo)(()=>u(e),[e]),{settings:i,passwordProtectRequestHooks:o}=D(),l=h(i,n.route,n,void 0),c=(0,s.useMemo)(()=>{var t,r;return t=l?"".concat(l).concat(JSON.stringify(void 0!==e.payload?e.payload:"")):null,r=n.disabled||o&&!i.password,!t||r?null:t},[l,e,n,o,i]);return(0,r.ZP)(c,async()=>{if(!n.route)throw Error("No route");let t=f(i,n,void 0);if(!l)throw Error("No route");try{let n=await a().post(l,e.payload,t);return n.data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=n.config)||void 0===t?void 0:t.swr)}function z(e,t){let{setWorkflow:n,removeWorkflow:i}=T(),{mutate:o}=(0,r.kY)(),{settings:s}=D(),u=l(e);return{post:async e=>{let r=c(e);try{let l;let c=f(s,u,r),d=h(s,u.route,u,r);if(!d)throw Error("No route");"payload"in r&&(l=r.payload);let m="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=p(s,d,e,r);n(m,{path:v,payload:l});let g=await a().post(d,l,c);return t&&await t(function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,i=arguments.length>2?arguments[2]:void 0;return o(n=>{if("string"!=typeof n)return!1;let i=p(s,n,e,r);return t(i)},n,i)},r,g),i(m),{status:g.status,data:g.data}}catch(e){var l,d;return{status:null===(l=e.response)||void 0===l?void 0:l.status,error:(null===(d=e.response)||void 0===d?void 0:d.data)||e.message}}}}}function V(e,t){let{mutate:n}=(0,r.kY)(),{settings:i}=D(),{setWorkflow:o,removeWorkflow:s}=T(),u=l(e);return{put:async e=>{let r=c(e);try{let l;let c=f(i,u,r),d=h(i,u.route,u,r);if(!d)throw Error("No route");"payload"in r&&(l=r.payload);let m="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=p(i,d,e,r);o(m,{path:v,payload:l});let g=await a().put(d,l,c);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let o=p(i,n,e,r);return t(o)},o,a)},r,g),s(m),{status:g.status,data:g.data}}catch(e){var l,d;return{status:null===(l=e.response)||void 0===l?void 0:l.status,error:(null===(d=e.response)||void 0===d?void 0:d.data)||e.message}}}}}function Z(e){var t,n,i;let o=(0,s.useMemo)(()=>u(e),[e]),{settings:l,passwordProtectRequestHooks:c}=D(),d=h(l,o.route,o,void 0);return(0,r.ZP)((n=e.standalone?"".concat(e.standalone,"/").concat(d):d,i=o.disabled||c&&!l.password,!n||i?null:n),async()=>{if(!o.route)throw Error("No route");let e=f(l,o,void 0);if(!d)throw Error("No route");try{let t=await a().get(d,e);return t.data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=o.config)||void 0===t?void 0:t.swr)}function I(e,t){let{mutate:n}=(0,r.kY)(),{settings:i}=D(),{setWorkflow:o,removeWorkflow:s}=T(),u=l(e);return{delete:async e=>{let r=c(e);try{let l=f(i,u,r),c=h(i,u.route,u,r);if(!c)throw Error("No route");let d=p(i,c,e,r);o(c,{path:d});let m=await a().delete(c,l);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let o=p(i,n,e,r);return t(o)},o,a)},r,m),s(c),{status:m.status,data:m.data}}catch(e){var l,d;return{status:null===(l=e.response)||void 0===l?void 0:l.status,error:(null===(d=e.response)||void 0===d?void 0:d.data)||e.message}}}}}function B(e){var t;let{get:n}=function(e){let{settings:t}=D(),n=l(e);return{get:async e=>{let r=c(e);try{let e=f(t,n,r),i=h(t,n.route,n,r);if(!i)throw Error("No route");let o=await a().get(i,e);return{status:o.status,data:o.data}}catch(t){var i,o,s,l;let e=(null===(i=t.response)||void 0===i?void 0:i.data)instanceof Blob?await (null===(o=t.response)||void 0===o?void 0:o.data.text()):(null===(s=t.response)||void 0===s?void 0:s.data)||t.message;return{status:null===(l=t.response)||void 0===l?void 0:l.status,error:e}}}}}({...e,config:{...e.config,axios:{...null===(t=e.config)||void 0===t?void 0:t.axios,responseType:"blob"}}});return{get:async(e,t)=>{let r=await n(t);return r.data&&function(e,t){let n=URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download=e,document.body.appendChild(r),r.click(),setTimeout(()=>{document.body.removeChild(r),URL.revokeObjectURL(n)},100)}(e,r.data),r}}}function H(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,[n,r]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{if(n)return;let i=setInterval(()=>{e()&&(r(!0),clearInterval(i))},t);return()=>clearInterval(i)},[e,n,t]),n}function U(){return Math.round((new Date().getTime()-14336e8)/6e5)}function W(){return Math.round((new Date().getTime()-16736e8)/6e5)}function q(e){let{settings:t}=D();return(0,s.useMemo)(()=>function(n,i,o){return(0,r.JG)(r=>{if("string"!=typeof r)return!1;let i=p(t,r,e,void 0);return n(i)},i,o)},[t,e])}function $(e){let{fallback:t,cacheProvider:n,children:i}=e;return(0,m.jsx)(A,{children:(0,m.jsx)(r.J$,{value:{fallback:t||{},provider:n},children:i})})}},88242:function(e,t,n){"use strict";function r(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 i(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{aXP:function(){return t6},eHR:function(){return nr},xHM:function(){return ni},L6f:function(){return no},rW0:function(){return na},osk:function(){return ns},JaG:function(){return nl},wWN:function(){return i9},Dkj:function(){return ou},fi8:function(){return i7},EMN:function(){return ng},bdU:function(){return ny},VUy:function(){return nx},Cp0:function(){return nb},kqg:function(){return nw},Mes:function(){return nj},oce:function(){return nE},uTh:function(){return nk},DI$:function(){return n_},NlZ:function(){return nz},Y3p:function(){return nZ},Z$8:function(){return nV},tEK:function(){return nI},cRw:function(){return nB},F3j:function(){return nH},PcV:function(){return nW},QN4:function(){return nU},Jsc:function(){return nq},bQp:function(){return nK},Y9T:function(){return n$},wEY:function(){return nX},olJ:function(){return nJ},KiD:function(){return n1},B4q:function(){return n6},_Eq:function(){return n2},VHe:function(){return oa},Jrl:function(){return n8},aPl:function(){return n7},kBK:function(){return oi},c_L:function(){return rn},Bpb:function(){return rr},vzB:function(){return ri},iG7:function(){return ru},nDH:function(){return rc},d19:function(){return rd},w9S:function(){return rf},VBo:function(){return oe},q0D:function(){return rg},Hb6:function(){return rv},CCF:function(){return ry},L37:function(){return rw},ROc:function(){return os},UG6:function(){return oo},lq1:function(){return rj},zvn:function(){return ot},EL$:function(){return rE},BdP:function(){return rT},e1T:function(){return rA},P5r:function(){return rP},RdX:function(){return rN},U_S:function(){return rR},V8Q:function(){return rZ},POp:function(){return rI},nCM:function(){return rU},kSc:function(){return rH},TtX:function(){return rB},mBM:function(){return or},Lur:function(){return rK},b47:function(){return rY},Sfn:function(){return rG},W$S:function(){return r2},T85:function(){return r4},c6N:function(){return r3},Ckx:function(){return r5},EOT:function(){return r6},RK4:function(){return r7},XJM:function(){return ir},RRj:function(){return ii},ka0:function(){return io},hzZ:function(){return il},n6M:function(){return iu},VUg:function(){return im},owP:function(){return iv},Fs9:function(){return ig},wGX:function(){return iy},Wet:function(){return ij},Zbu:function(){return ik},ZEk:function(){return iE},$Iz:function(){return iM},UBs:function(){return iT},shL:function(){return iA},hiv:function(){return iP},mli:function(){return iR},lJ7:function(){return ol},ORH:function(){return iz},I98:function(){return iV},R$6:function(){return iZ},JCW:function(){return iK},xVB:function(){return iY},pHg:function(){return iG},I$H:function(){return iJ},HCc:function(){return iX},oaN:function(){return on},qdM:function(){return iQ},Gu6:function(){return i0},SmH:function(){return i3},RFr:function(){return i5},lg1:function(){return i6}});var a,s,l,u,c,d,f,h,p,m,v,g,y,x,b,w,j,k,E,S,_,C,O,M,T,A,P,N,R,D,L,F,z,V,Z,I,B,H,U,W,q,$,K,Y,G,X,J,Q,ee,et,en,er,ei,eo,ea,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,ex,eb,ew,ej,ek,eE,eS,e_,eC,eO,eM,eT,eA,eP,eN,eR,eD,eL,eF,ez,eV,eZ,eI,eB,eH,eU,eW,eq,e$,eK,eY,eG,eX,eJ,eQ,e0,e1,e2,e4,e3,e5,e6,e8,e7,e9,te,tt,tn,tr,ti,to,ta,ts,tl,tu,tc,td,tf,th,tp,tm,tv,tg,ty,tx,tb,tw,tj,tk,tE,tS,t_,tC,tO,tM,tT,tA,tP,tN,tR,tD,tL,tF,tz,tV,tZ,tI,tB,tH,tU,tW,tq=["width","height","viewBox"],t$=["tabindex"],tK={focusable:"false",preserveAspectRatio:"xMidYMid meet"},tY=n(13980),tG=n.n(tY),tX=n(2784);function tJ(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 tQ(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var t2=["className","children","tabIndex"],t4=["tabindex"],t3=tX.forwardRef(function(e,t){var n=e.className,r=e.children,a=e.tabIndex,s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,a=void 0===r?"0 0 ".concat(t," ").concat(n):r,s=o(e,tq),l=s.tabindex,u=o(s,t$),c=i(i(i({},tK),u),{},{width:t,height:n,viewBox:a});return c["aria-label"]||c["aria-labelledby"]||c.title?(c.role="img",null!=l&&(c.focusable="true",c.tabindex=l)):c["aria-hidden"]=!0,c}(tQ(tQ({},t1(e,t2)),{},{tabindex:a})),l=s.tabindex,u=t1(s,t4);return n&&(u.className=n),null!=l&&(u.tabIndex=l),t&&(u.ref=t),tX.createElement("svg",u,r)});t3.displayName="Icon",t3.propTypes={"aria-hidden":tG().string,"aria-label":tG().string,"aria-labelledby":tG().string,children:tG().node,className:tG().string,height:tG().oneOfType([tG().number,tG().string]),preserveAspectRatio:tG().string,tabIndex:tG().string,viewBox:tG().string,width:tG().oneOfType([tG().number,tG().string]),xmlns:tG().string},t3.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"};var t5=["children"],t6=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,t5);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),a||(a=tX.createElement("path",{d:"M17 15L17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z"})),n)}),t8=["children"],t7=["children"],t9=["children"],ne=["children"],nt=["children"],nn=["children"],nr=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,t8);return tX.createElement(t3,t0({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),s||(s=tX.createElement("path",{d:"M14 19H18V21H14z"})),l||(l=tX.createElement("path",{d:"M6,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V2ZM24,28H8V16H24Zm0-14H8V10H24ZM8,8V4H24V8Z"})),n)}),ni=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,t7);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),u||(u=tX.createElement("path",{d:"M22 26L22 24 9.41 24 26 7.41 24.59 6 8 22.59 8 10 6 10 6 26 22 26z"})),n)}),no=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,t9);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),c||(c=tX.createElement("path",{d:"M22 6L22 8 9.41 8 26 24.59 24.59 26 8 9.41 8 22 6 22 6 6 22 6z"})),n)}),na=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,ne);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),d||(d=tX.createElement("path",{d:"M10 6L10 8 22.59 8 6 24.59 7.41 26 24 9.41 24 22 26 22 26 6 10 6z"})),n)}),ns=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,nt);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),f||(f=tX.createElement("path",{d:"M7.2,2.3c-1,4.4,1.7,8.7,6.1,9.8c0.1,0,0.1,0,0.2,0c-1.1,1.2-2.7,1.8-4.3,1.8c-0.1,0-0.2,0-0.2,0C5.6,13.8,3,11,3.2,7.7 C3.2,5.3,4.8,3.1,7.2,2.3 M8,1L8,1C4.1,1.6,1.5,5.3,2.1,9.1c0.6,3.3,3.4,5.8,6.8,5.9c0.1,0,0.2,0,0.3,0c2.3,0,4.4-1.1,5.8-3 c0.2-0.2,0.1-0.6-0.1-0.7c-0.1-0.1-0.2-0.1-0.3-0.1c-3.9-0.3-6.7-3.8-6.4-7.6C8.3,3,8.4,2.4,8.6,1.8c0.1-0.3,0-0.6-0.3-0.7 C8.1,1,8.1,1,8,1z"})),n)}),nl=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,nn);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),h||(h=tX.createElement("path",{d:"M7.5 1H8.5V3.5H7.5z"})),p||(p=tX.createElement("path",{d:"M10.8 3.4H13.3V4.4H10.8z",transform:"rotate(-45.001 12.074 3.922)"})),m||(m=tX.createElement("path",{d:"M12.5 7.5H15V8.5H12.5z"})),v||(v=tX.createElement("path",{d:"M11.6 10.8H12.6V13.3H11.6z",transform:"rotate(-45.001 12.077 12.075)"})),g||(g=tX.createElement("path",{d:"M7.5 12.5H8.5V15H7.5z"})),y||(y=tX.createElement("path",{d:"M2.7 11.6H5.2V12.6H2.7z",transform:"rotate(-45.001 3.929 12.078)"})),x||(x=tX.createElement("path",{d:"M1 7.5H3.5V8.5H1z"})),b||(b=tX.createElement("path",{d:"M3.4 2.7H4.4V5.2H3.4z",transform:"rotate(-45.001 3.926 3.925)"})),w||(w=tX.createElement("path",{d:"M8,6c1.1,0,2,0.9,2,2s-0.9,2-2,2S6,9.1,6,8S6.9,6,8,6 M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z"})),n)}),nu=["children"],nc=["children"],nd=["children"],nf=["children"],nh=["children"],np=["children"],nm=["children"],nv=["children"],ng=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,nu);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),j||(j=tX.createElement("path",{d:"M24 12L16 22 8 12z"})),n)}),ny=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,nc);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),k||(k=tX.createElement("path",{d:"M20 24L10 16 20 8z"})),n)}),nx=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,nd);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),E||(E=tX.createElement("path",{d:"M12 8L22 16 12 24z"})),n)}),nb=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,nf);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),S||(S=tX.createElement("path",{d:"M24 24L16 32 8 24zM8 8L16 0 24 8z"})),n)}),nw=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,nh);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),_||(_=tX.createElement("path",{d:"M8 20L16 10 24 20z"})),n)}),nj=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,np);return tX.createElement(t3,t0({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),C||(C=tX.createElement("path",{d:"M30,15H27.9492A12.0071,12.0071,0,0,0,17,4.0508V2H15V4.0508A12.0071,12.0071,0,0,0,4.0508,15H2v2H4.0508A12.0071,12.0071,0,0,0,15,27.9492V30h2V27.9492A12.0071,12.0071,0,0,0,27.9492,17H30ZM17,25.9492V22H15v3.9492A10.0166,10.0166,0,0,1,6.0508,17H10V15H6.0508A10.0166,10.0166,0,0,1,15,6.0508V10h2V6.0508A10.0166,10.0166,0,0,1,25.9492,15H22v2h3.9492A10.0166,10.0166,0,0,1,17,25.9492Z"})),n)}),nk=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,nm);return tX.createElement(t3,t0({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),O||(O=tX.createElement("path",{d:"M20.4761,8.0151,13.4473,4.2109a2.0076,2.0076,0,0,0-2.1158.2051L4,10.001V2H2V28a2,2,0,0,0,2,2H30V5.7354ZM28,20.209l-7.62,1.8022-7.0288-2.8838a1.99,1.99,0,0,0-2.022.37L4,25.8359v-4.455l8.375-9.4,7.0186,5.62a2.0155,2.0155,0,0,0,2.0459.2119L28,14.6025ZM12.5239,5.9849l7.03,3.8042a2.012,2.012,0,0,0,1.3408.16L28,8.2646v4.1138L20.6187,16.02,13.6,10.4a1.99,1.99,0,0,0-2.6885.2642L4,18.3838v-5.87ZM4.5513,28,12.62,20.9888l7.0288,2.8838a1.9977,1.9977,0,0,0,1.147.0771L28,22.2612V28Z"})),n)}),nE=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,nv);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),M||(M=tX.createElement("path",{d:"M20.4761,8.0151,13.4473,4.2109a2.0076,2.0076,0,0,0-2.1158.2051L4,10.001V2H2V28a2,2,0,0,0,2,2H30V5.7354ZM28,20.209l-7.62,1.8022-7.0288-2.8838a1.99,1.99,0,0,0-2.022.37L4,25.8359v-4.455l8.375-9.4,7.0186,5.62a2.0155,2.0155,0,0,0,2.0459.2119L28,14.6025ZM12.5239,5.9849l7.03,3.8042a2.012,2.012,0,0,0,1.3408.16L28,8.2646v4.1138L20.6187,16.02,13.6,10.4a1.99,1.99,0,0,0-2.6885.2642L4,18.3838v-5.87ZM4.5513,28,12.62,20.9888l7.0288,2.8838a1.9977,1.9977,0,0,0,1.147.0771L28,22.2612V28Z"})),n)}),nS=["children"],n_=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,nS);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),T||(T=tX.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z"})),A||(A=tX.createElement("path",{fill:"none",d:"M14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z","data-icon-path":"inner-path"})),n)}),nC=["children"],nO=["children"],nM=["children"],nT=["children"],nA=["children"],nP=["children"],nN=["children"],nR=["children"],nD=["children"],nL=["children"],nF=["children"],nz=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,nC);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),P||(P=tX.createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),n)}),nV=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,nO);return tX.createElement(t3,t0({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),N||(N=tX.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"})),R||(R=tX.createElement("path",{fill:"none",d:"M14 21.591L9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z","data-icon-path":"inner-path"})),n)}),nZ=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,nM);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),D||(D=tX.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"})),L||(L=tX.createElement("path",{d:"M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z","data-icon-path":"inner-path",opacity:"0"})),n)}),nI=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,nT);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),F||(F=tX.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),z||(z=tX.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),n)}),nB=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,nA);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),V||(V=tX.createElement("path",{d:"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),n)}),nH=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,nP);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Z||(Z=tX.createElement("path",{d:"M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z"})),n)}),nU=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,nN);return tX.createElement(t3,t0({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),I||(I=tX.createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),n)}),nW=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,nR);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),B||(B=tX.createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),n)}),nq=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,nD);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),H||(H=tX.createElement("path",{d:"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12 S22.6,28,16,28z"})),U||(U=tX.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),n)}),n$=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,nL);return tX.createElement(t3,t0({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),W||(W=tX.createElement("path",{d:"M11 18L12.41 19.41 15 16.83 15 29 17 29 17 16.83 19.59 19.41 21 18 16 13 11 18z"})),q||(q=tX.createElement("path",{d:"M23.5,22H23V20h.5a4.5,4.5,0,0,0,.36-9L23,11l-.1-.82a7,7,0,0,0-13.88,0L9,11,8.14,11a4.5,4.5,0,0,0,.36,9H9v2H8.5A6.5,6.5,0,0,1,7.2,9.14a9,9,0,0,1,17.6,0A6.5,6.5,0,0,1,23.5,22Z"})),n)}),nK=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,nF);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),$||($=tX.createElement("path",{d:"M11 18L12.41 19.41 15 16.83 15 29 17 29 17 16.83 19.59 19.41 21 18 16 13 11 18z"})),K||(K=tX.createElement("path",{d:"M23.5,22H23V20h.5a4.5,4.5,0,0,0,.36-9L23,11l-.1-.82a7,7,0,0,0-13.88,0L9,11,8.14,11a4.5,4.5,0,0,0,.36,9H9v2H8.5A6.5,6.5,0,0,1,7.2,9.14a9,9,0,0,1,17.6,0A6.5,6.5,0,0,1,23.5,22Z"})),n)}),nY=["children"],nG=["children"],nX=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,nY);return tX.createElement(t3,t0({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Y||(Y=tX.createElement("path",{d:"M31 16L24 23 22.59 21.59 28.17 16 22.59 10.41 24 9 31 16zM1 16L8 9 9.41 10.41 3.83 16 9.41 21.59 8 23 1 16z"})),G||(G=tX.createElement("path",{d:"M5.91 15H26.080000000000002V17H5.91z",transform:"rotate(-75 15.996 16)"})),n)}),nJ=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,nG);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),X||(X=tX.createElement("path",{d:"M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z"})),J||(J=tX.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),n)}),nQ=["children"],n0=["children"],n1=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,nQ);return tX.createElement(t3,t0({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Q||(Q=tX.createElement("path",{d:"M21,12V10H17V7H15v3H13a2.002,2.002,0,0,0-2,2v3a2.002,2.002,0,0,0,2,2h6v3H11v2h4v3h2V22h2a2.0023,2.0023,0,0,0,2-2V17a2.002,2.002,0,0,0-2-2H13V12Z"})),ee||(ee=tX.createElement("path",{d:"M16,4A12,12,0,1,1,4,16,12.0353,12.0353,0,0,1,16,4m0-2A14,14,0,1,0,30,16,14.0412,14.0412,0,0,0,16,2Z"})),n)}),n2=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,n0);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),et||(et=tX.createElement("circle",{cx:"22",cy:"24",r:"2"})),en||(en=tX.createElement("path",{d:"M29.7769,23.4785A8.64,8.64,0,0,0,22,18a8.64,8.64,0,0,0-7.7769,5.4785L14,24l.2231.5215A8.64,8.64,0,0,0,22,30a8.64,8.64,0,0,0,7.7769-5.4785L30,24ZM22,28a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,22,28Z"})),er||(er=tX.createElement("circle",{cx:"8",cy:"8",r:"1"})),ei||(ei=tX.createElement("circle",{cx:"8",cy:"16",r:"1"})),eo||(eo=tX.createElement("circle",{cx:"8",cy:"24",r:"1"})),ea||(ea=tX.createElement("path",{d:"M5,21h7V19H5V13H21v3h2V5a2,2,0,0,0-2-2H5A2,2,0,0,0,3,5V27a2,2,0,0,0,2,2h7V27H5ZM5,5H21v6H5Z"})),n)}),n4=["children"],n3=["children"],n5=["children"],n6=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,n4);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),es||(es=tX.createElement("path",{d:"M8 18H12V20H8zM14 18H18V20H14zM8 14H12V16H8zM14 22H18V24H14zM20 14H24V16H20zM20 22H24V24H20z"})),el||(el=tX.createElement("path",{d:"M27,3H5A2.0025,2.0025,0,0,0,3,5V27a2.0025,2.0025,0,0,0,2,2H27a2.0025,2.0025,0,0,0,2-2V5A2.0025,2.0025,0,0,0,27,3Zm0,2,0,4H5V5ZM5,27V11H27l0,16Z"})),n)}),n8=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,n3);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eu||(eu=tX.createElement("path",{d:"M12 12H14V24H12zM18 12H20V24H18z"})),ec||(ec=tX.createElement("path",{d:"M4 6V8H6V28a2 2 0 002 2H24a2 2 0 002-2V8h2V6zM8 28V8H24V28zM12 2H20V4H12z"})),n)}),n7=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,n5);return tX.createElement(t3,t0({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ed||(ed=tX.createElement("path",{d:"M8 4V8H4V4H8M2 2v8h8V2zM18 7v4H14V7h4M12 5v8h8V5zM8 16v4H4V16H8M2 14v8h8V14z"})),ef||(ef=tX.createElement("path",{d:"M22,10v6H16v6H10v8H30V10Zm-4,8h4v4H18ZM16,28H12V24h4Zm6,0H18V24h4Zm6,0H24V24h4Zm0-6H24V18h4Zm-4-6V12h4v4Z"})),n)}),n9=["children"],re=["children"],rt=["children"],rn=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,n9);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eh||(eh=tX.createElement("path",{d:"M25.7,9.3l-7-7C18.5,2.1,18.3,2,18,2H8C6.9,2,6,2.9,6,4v24c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V10C26,9.7,25.9,9.5,25.7,9.3 z M18,4.4l5.6,5.6H18V4.4z M24,28H8V4h8v6c0,1.1,0.9,2,2,2h6V28z"})),ep||(ep=tX.createElement("path",{d:"M10 22H22V24H10zM10 16H22V18H10z"})),n)}),rr=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,re);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),em||(em=tX.createElement("circle",{cx:"16",cy:"16",r:"8"})),n)}),ri=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,rt);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ev||(ev=tX.createElement("path",{d:"M13 7L12.3 6.3 8.5 10.1 8.5 1 7.5 1 7.5 10.1 3.7 6.3 3 7 8 12zM13 12v2H3v-2H2v2l0 0c0 .6.4 1 1 1h10c.6 0 1-.4 1-1l0 0v-2H13z"})),n)}),ro=["children"],ra=["children"],rs=["children"],rl=["children"],ru=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,ro);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eg||(eg=tX.createElement("path",{d:"M10 6H14V10H10zM18 6H22V10H18zM10 14H14V18H10zM18 14H22V18H18zM10 22H14V26H10zM18 22H22V26H18z"})),n)}),rc=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,ra);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ey||(ey=tX.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2Zm5,3.1055a12.0136,12.0136,0,0,1,2.9158,1.8994L23.5034,8H21ZM13.3784,27.7026A11.9761,11.9761,0,0,1,8.1157,6.9761L9.4648,9h3.3423l-1.5,4H7.2793L5.8967,17.1475,8.4648,21h5l1.4319,2.1475ZM16,28c-.2034,0-.4016-.02-.6025-.03l1.3967-4.19a1.9876,1.9876,0,0,0-.2334-1.7412l-1.4319-2.1475A1.9962,1.9962,0,0,0,13.4648,19h-3.93L8.1033,16.8525,8.7207,15H11v2h2V14.1812l2.9363-7.83-1.8726-.7022L13.5571,7H10.5352L9.728,5.7891A11.7941,11.7941,0,0,1,19,4.395V8a2.0025,2.0025,0,0,0,2,2h2.5857A1.9865,1.9865,0,0,0,25,9.4141l.1406-.1407.2818-.68A11.9813,11.9813,0,0,1,27.3,12H22.5986a1.9927,1.9927,0,0,0-1.9719,1.665L20.03,17.1064a1.99,1.99,0,0,0,.991,2.086l2.1647,1.4638,1.4585,3.646A11.9577,11.9577,0,0,1,16,28Zm8.8145-8.6563L22.1,17.5088l-.1-.06L22.5986,14h5.2207a11.743,11.743,0,0,1-1.7441,8.4951Z"})),n)}),rd=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,rs);return tX.createElement(t3,t0({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ex||(ex=tX.createElement("path",{d:"M21,30a8,8,0,1,1,8-8A8,8,0,0,1,21,30Zm0-14a6,6,0,1,0,6,6A6,6,0,0,0,21,16Z"})),eb||(eb=tX.createElement("path",{d:"M22.59 25L20 22.41 20 18 22 18 22 21.59 24 23.59 22.59 25z"})),ew||(ew=tX.createElement("path",{d:"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z"})),n)}),rf=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,rl);return tX.createElement(t3,t0({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ej||(ej=tX.createElement("path",{d:"M18 31h2V29a1.0006 1.0006 0 011-1h6a1.0006 1.0006 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 25a4 4 0 114-4A4.0039 4.0039 0 0124 25zm0-6a2 2 0 102 2A2.0027 2.0027 0 0024 19zM2 31H4V29a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 25a4 4 0 114-4A4.0042 4.0042 0 018 25zm0-6a2 2 0 102 2A2.0023 2.0023 0 008 19zM18 16h2V14a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 10a4 4 0 114-4A4.0042 4.0042 0 0124 10zm0-6a2 2 0 102 2A2.0023 2.0023 0 0024 4zM2 16H4V14a1.0013 1.0013 0 011-1h6a1.0013 1.0013 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 10a4 4 0 114-4A4.0045 4.0045 0 018 10zM8 4a2 2 0 102 2A2.002 2.002 0 008 4z"})),n)}),rh=["children"],rp=["children"],rm=["children"],rv=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,rh);return tX.createElement(t3,t0({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ek||(ek=tX.createElement("path",{d:"M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"})),n)}),rg=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,rp);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eE||(eE=tX.createElement("path",{d:"M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"})),n)}),ry=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,rm);return tX.createElement(t3,t0({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eS||(eS=tX.createElement("path",{d:"M2 28H30V30H2zM27 11a1 1 0 001-1V7a1 1 0 00-.66-.94l-11-4a1 1 0 00-.68 0l-11 4A1 1 0 004 7v3a1 1 0 001 1H6V24H4v2H28V24H26V11zM6 7.7L16 4.06 26 7.7V9H6zM18 24H14V11h4zM8 11h4V24H8zM24 24H20V11h4z"})),n)}),rx=["children"],rb=["children"],rw=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,rx);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e_||(e_=tX.createElement("path",{d:"M26 20L24 20 24 24 20 24 20 26 24 26 24 30 26 30 26 26 30 26 30 24 26 24z"})),eC||(eC=tX.createElement("path",{d:"M28,8H16l-3.4-3.4C12.2,4.2,11.7,4,11.2,4H4C2.9,4,2,4.9,2,6v20c0,1.1,0.9,2,2,2h14v-2H4V6h7.2l3.4,3.4l0.6,0.6H28v8h2v-8 C30,8.9,29.1,8,28,8z"})),n)}),rj=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,rb);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eO||(eO=tX.createElement("path",{d:"M14,4a7,7,0,1,1-7,7,7,7,0,0,1,7-7m0-2a9,9,0,1,0,9,9A9,9,0,0,0,14,2Z"})),eM||(eM=tX.createElement("path",{d:"M28,11a13.9563,13.9563,0,0,0-4.1051-9.8949L22.4813,2.5187A11.9944,11.9944,0,0,1,5.5568,19.5194l-.0381-.0381L4.1051,20.8949A13.9563,13.9563,0,0,0,14,25v3H10v2H20V28H16V24.84A14.0094,14.0094,0,0,0,28,11Z"})),n)}),rk=["children"],rE=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,rk);return tX.createElement(t3,t0({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eT||(eT=tX.createElement("path",{d:"M16,.0005,4,5.9784V20.0443a12,12,0,0,0,24,0V5.9784Zm6.83,27.3138L16,23.9119V26.14l5.0361,2.5088A10.0025,10.0025,0,0,1,6,20.0443V7.21L16,2.2284,26,7.21v3.75L16,5.9783V8.2062l10,4.9816v3.75L16,11.9562v2.2279l10,4.9815v.8787a9.9045,9.9045,0,0,1-.37,2.6871L16,17.934v2.2279l8.8952,4.4313A10.0252,10.0252,0,0,1,22.83,27.3143Z"})),n)}),rS=["children"],r_=["children"],rC=["children"],rO=["children"],rM=["children"],rT=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,rS);return tX.createElement(t3,t0({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eA||(eA=tX.createElement("path",{d:"M11 24H21V26H11zM13 28H19V30H13zM16 2A10 10 0 006 12a9.19 9.19 0 003.46 7.62c1 .93 1.54 1.46 1.54 2.38h2c0-1.84-1.11-2.87-2.19-3.86A7.2 7.2 0 018 12a8 8 0 0116 0 7.2 7.2 0 01-2.82 6.14c-1.07 1-2.18 2-2.18 3.86h2c0-.92.53-1.45 1.54-2.39A9.18 9.18 0 0026 12 10 10 0 0016 2z"})),n)}),rA=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,r_);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eP||(eP=tX.createElement("path",{d:"M19,14a3,3,0,1,0-3-3A3,3,0,0,0,19,14Zm0-4a1,1,0,1,1-1,1A1,1,0,0,1,19,10Z"})),eN||(eN=tX.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4Zm0,22H6V20l5-5,5.59,5.59a2,2,0,0,0,2.82,0L21,19l5,5Zm0-4.83-3.59-3.59a2,2,0,0,0-2.82,0L18,19.17l-5.59-5.59a2,2,0,0,0-2.82,0L6,17.17V6H26Z"})),n)}),rP=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,rC);return tX.createElement(t3,t0({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eR||(eR=tX.createElement("path",{d:"M29.53,6.15a1,1,0,0,0-1,0L20,10.38V7a1,1,0,0,0-1.45-.89L10,10.38V3A1,1,0,0,0,9,2H3A1,1,0,0,0,2,3V28H30V7A1,1,0,0,0,29.53,6.15ZM22,26H18V19h4Zm6,0H24V18a1,1,0,0,0-1-1H17a1,1,0,0,0-1,1v8H4V4H8v9.62l10-5v5l10-5Z"})),n)}),rN=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,rO);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eD||(eD=tX.createElement("path",{d:"M8.5 11L8.5 6.5 6.5 6.5 6.5 7.5 7.5 7.5 7.5 11 6 11 6 12 10 12 10 11zM8 3.5c-.4 0-.8.3-.8.8S7.6 5 8 5c.4 0 .8-.3.8-.8S8.4 3.5 8 3.5z"})),eL||(eL=tX.createElement("path",{d:"M8,15c-3.9,0-7-3.1-7-7s3.1-7,7-7s7,3.1,7,7S11.9,15,8,15z M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z"})),n)}),rR=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,rM);return tX.createElement(t3,t0({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eF||(eF=tX.createElement("path",{d:"M29.88,15.52l-6-11A1,1,0,0,0,23,4H9a1,1,0,0,0-.88.52l-6,11a1,1,0,0,0,0,1l6,11A1,1,0,0,0,9,28H23a1,1,0,0,0,.88-.52l6-11A1,1,0,0,0,29.88,15.52ZM22.93,7l4.39,8h-9.5ZM16,14.14,10.82,6H21.18ZM9.07,7l5.11,8H4.68ZM4.68,17h9.5L9.07,25ZM16,17.86,21.18,26H10.82ZM22.93,25l-5.11-8h9.5Z"})),n)}),rD=["children"],rL=["children"],rF=["children"],rz=["children"],rV=["children"],rZ=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,rD);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ez||(ez=tX.createElement("path",{d:"M13,14H3c-0.6,0-1-0.4-1-1V3c0-0.6,0.4-1,1-1h5v1H3v10h10V8h1v5C14,13.6,13.6,14,13,14z"})),eV||(eV=tX.createElement("path",{d:"M10 1L10 2 13.3 2 9 6.3 9.7 7 14 2.7 14 6 15 6 15 1z"})),n)}),rI=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,rL);return tX.createElement(t3,t0({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eZ||(eZ=tX.createElement("path",{d:"M29.25,6.76a6,6,0,0,0-8.5,0l1.42,1.42a4,4,0,1,1,5.67,5.67l-8,8a4,4,0,1,1-5.67-5.66l1.41-1.42-1.41-1.42-1.42,1.42a6,6,0,0,0,0,8.5A6,6,0,0,0,17,25a6,6,0,0,0,4.27-1.76l8-8A6,6,0,0,0,29.25,6.76Z"})),eI||(eI=tX.createElement("path",{d:"M4.19,24.82a4,4,0,0,1,0-5.67l8-8a4,4,0,0,1,5.67,0A3.94,3.94,0,0,1,19,14a4,4,0,0,1-1.17,2.85L15.71,19l1.42,1.42,2.12-2.12a6,6,0,0,0-8.51-8.51l-8,8a6,6,0,0,0,0,8.51A6,6,0,0,0,7,28a6.07,6.07,0,0,0,4.28-1.76L9.86,24.82A4,4,0,0,1,4.19,24.82Z"})),n)}),rB=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,rF);return tX.createElement(t3,t0({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eB||(eB=tX.createElement("path",{d:"M16 8H30V10H16zM6 10.59L3.41 8 2 9.41 6 13.41 14 5.41 12.59 4 6 10.59zM16 22H30V24H16zM6 24.59L3.41 22 2 23.41 6 27.41 14 19.41 12.59 18 6 24.59z"})),n)}),rH=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,rz);return tX.createElement(t3,t0({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eH||(eH=tX.createElement("path",{d:"M16 8H30V10H16zM6 10.59L3.41 8 2 9.41 6 13.41 14 5.41 12.59 4 6 10.59zM16 22H30V24H16zM6 24.59L3.41 22 2 23.41 6 27.41 14 19.41 12.59 18 6 24.59z"})),n)}),rU=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,rV);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eU||(eU=tX.createElement("path",{d:"M16 8H30V10H16zM6 10.59L3.41 8 2 9.41 6 13.41 14 5.41 12.59 4 6 10.59zM16 22H30V24H16zM6 24.59L3.41 22 2 23.41 6 27.41 14 19.41 12.59 18 6 24.59z"})),n)}),rW=["children"],rq=["children"],r$=["children"],rK=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,rW);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eW||(eW=tX.createElement("path",{d:"M24,14H22V8A6,6,0,0,0,10,8v6H8a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V16A2,2,0,0,0,24,14ZM12,8a4,4,0,0,1,8,0v6H12ZM24,28H8V16H24Z"})),n)}),rY=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,rq);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eq||(eq=tX.createElement("path",{d:"M13.647,14.907a1.4482,1.4482,0,1,0,1.326,1.443A1.385,1.385,0,0,0,13.647,14.907Zm4.745,0a1.4482,1.4482,0,1,0,1.326,1.443A1.385,1.385,0,0,0,18.392,14.907Z"})),e$||(e$=tX.createElement("path",{d:"M24.71,4H7.29A2.6714,2.6714,0,0,0,4.625,6.678V24.254A2.6714,2.6714,0,0,0,7.29,26.932H22.032l-.689-2.405,1.664,1.547L24.58,27.53,27.375,30V6.678A2.6714,2.6714,0,0,0,24.71,4ZM19.692,20.978s-.468-.559-.858-1.053a4.1021,4.1021,0,0,0,2.353-1.547,7.4391,7.4391,0,0,1-1.495.767,8.5564,8.5564,0,0,1-1.885.559,9.1068,9.1068,0,0,1-3.367-.013,10.9127,10.9127,0,0,1-1.911-.559,7.6184,7.6184,0,0,1-.949-.442c-.039-.026-.078-.039-.117-.065a.18.18,0,0,1-.052-.039c-.234-.13-.364-.221-.364-.221a4.0432,4.0432,0,0,0,2.275,1.534c-.39.494-.871,1.079-.871,1.079a4.7134,4.7134,0,0,1-3.965-1.976,17.409,17.409,0,0,1,1.872-7.579,6.4285,6.4285,0,0,1,3.653-1.365l.13.156a8.77,8.77,0,0,0-3.419,1.703s.286-.156.767-.377a9.7625,9.7625,0,0,1,2.951-.819,1.2808,1.2808,0,0,1,.221-.026,11,11,0,0,1,2.626-.026A10.5971,10.5971,0,0,1,21.2,11.917a8.6518,8.6518,0,0,0-3.237-1.651l.182-.208a6.4285,6.4285,0,0,1,3.653,1.365,17.409,17.409,0,0,1,1.872,7.579A4.752,4.752,0,0,1,19.692,20.978Z"})),n)}),rG=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,r$);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eK||(eK=tX.createElement("path",{fillRule:"evenodd",d:"M16,2a14,14,0,0,0-4.43,27.28c.7.13,1-.3,1-.67s0-1.21,0-2.38c-3.89.84-4.71-1.88-4.71-1.88A3.71,3.71,0,0,0,6.24,22.3c-1.27-.86.1-.85.1-.85A2.94,2.94,0,0,1,8.48,22.9a3,3,0,0,0,4.08,1.16,2.93,2.93,0,0,1,.88-1.87c-3.1-.36-6.37-1.56-6.37-6.92a5.4,5.4,0,0,1,1.44-3.76,5,5,0,0,1,.14-3.7s1.17-.38,3.85,1.43a13.3,13.3,0,0,1,7,0c2.67-1.81,3.84-1.43,3.84-1.43a5,5,0,0,1,.14,3.7,5.4,5.4,0,0,1,1.44,3.76c0,5.38-3.27,6.56-6.39,6.91a3.33,3.33,0,0,1,.95,2.59c0,1.87,0,3.38,0,3.84s.25.81,1,.67A14,14,0,0,0,16,2Z"})),n)}),rX=["children"],rJ=["children"],rQ=["children"],r0=["children"],r1=["children"],r2=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,rX);return tX.createElement(t3,t0({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eY||(eY=tX.createElement("path",{d:"M16.59 20.41L20.17 24 20.17 24 16.58 27.59 18 29 23 24 18 19 16.59 20.41zM23.59 20.41L27.17 24 27.17 24 23.58 27.59 25 29 30 24 25 19 23.59 20.41z"})),eG||(eG=tX.createElement("path",{d:"M14,23H4V7.91l11.43,7.91a1,1,0,0,0,1.14,0L28,7.91V17h2V7a2,2,0,0,0-2-2H4A2,2,0,0,0,2,7V23a2,2,0,0,0,2,2H14ZM25.8,7,16,13.78,6.2,7Z"})),n)}),r4=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,rJ);return tX.createElement(t3,t0({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eX||(eX=tX.createElement("path",{d:"M25.3943,24a7.8772,7.8772,0,0,0-1.6707-8.5684,3.918,3.918,0,0,0-1.0844-4.414l2.7759-2.7759a2.0025,2.0025,0,0,0,0-2.8286L22.5869,2.5849a2.0021,2.0021,0,0,0-2.8286,0L6.5859,15.7573a2.0027,2.0027,0,0,0,0,2.8286l2.8282,2.8282a2.0024,2.0024,0,0,0,2.8286,0l4.7749-4.7754a3.9329,3.9329,0,0,0,5.5139.4326A5.9442,5.9442,0,0,1,23.1775,24H16v4H4v2H28V24ZM10.8281,20,8,17.1714,9.8787,15.293l2.8283,2.8281ZM16,14a3.9811,3.9811,0,0,0,.0762.7524L14.1211,16.707l-2.8284-2.8281,9.88-9.88L24.001,6.8271l-3.2488,3.2491A3.9771,3.9771,0,0,0,16,14Zm4,2a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,20,16Zm6,12H18V26h8Z"})),n)}),r3=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,rQ);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eJ||(eJ=tX.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M10.7,11.5L8,8.8l-2.7,2.7l-0.8-0.8L7.2,8L4.5,5.3l0.8-0.8L8,7.2 l2.7-2.7l0.8,0.8L8.8,8l2.7,2.7L10.7,11.5z"})),eQ||(eQ=tX.createElement("path",{d:"M10.7,11.5L8,8.8l-2.7,2.7l-0.8-0.8L7.2,8L4.5,5.3l0.8-0.8L8,7.2l2.7-2.7l0.8,0.8L8.8,8 l2.7,2.7L10.7,11.5z","data-icon-path":"inner-path",opacity:"0"})),n)}),r5=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,r0);return tX.createElement(t3,t0({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e0||(e0=tX.createElement("path",{d:"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12 S22.6,28,16,28z"})),e1||(e1=tX.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),n)}),r6=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,r1);return tX.createElement(t3,t0({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e2||(e2=tX.createElement("path",{d:"M2 22H30V24H2zM2 26H30V28H2zM24 10a2 2 0 102 2 2 2 0 00-2-2zM16 16a4 4 0 114-4A4.0045 4.0045 0 0116 16zm0-6a2 2 0 102 2A2.002 2.002 0 0016 10zM8 10a2 2 0 102 2 2 2 0 00-2-2z"})),e4||(e4=tX.createElement("path",{d:"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z"})),n)}),r8=["children"],r7=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,r8);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e3||(e3=tX.createElement("circle",{cx:"21",cy:"26",r:"2"})),e5||(e5=tX.createElement("circle",{cx:"21",cy:"6",r:"2"})),e6||(e6=tX.createElement("circle",{cx:"4",cy:"16",r:"2"})),e8||(e8=tX.createElement("path",{d:"M28,12a3.9962,3.9962,0,0,0-3.8579,3H19.8579a3.9655,3.9655,0,0,0-5.4914-2.6426L11.19,8.3872A3.9626,3.9626,0,0,0,12,6a4,4,0,1,0-4,4,3.96,3.96,0,0,0,1.6338-.3574l3.176,3.97a3.9239,3.9239,0,0,0,0,4.7744l-3.1758,3.97A3.96,3.96,0,0,0,8,22a4,4,0,1,0,4,4,3.9624,3.9624,0,0,0-.81-2.3872l3.1758-3.97A3.9658,3.9658,0,0,0,19.8579,17h4.2842A3.9934,3.9934,0,1,0,28,12ZM6,6A2,2,0,1,1,8,8,2.0023,2.0023,0,0,1,6,6ZM8,28a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,8,28Zm8-10a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,16,18Zm12,0a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,28,18Z"})),n)}),r9=["children"],ie=["children"],it=["children"],ir=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,r9);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e7||(e7=tX.createElement("path",{d:"M14 16L24 6 25.4 7.4 16.8 16 25.4 24.6 24 26zM8 4H10V28H8z"})),n)}),ii=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,ie);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e9||(e9=tX.createElement("path",{d:"M18 16L8 26 6.6 24.6 15.2 16 6.6 7.4 8 6zM22 4H24V28H22z"})),n)}),io=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,it);return tX.createElement(t3,t0({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),te||(te=tX.createElement("path",{d:"M21,2a8.9977,8.9977,0,0,0-8.6119,11.6118L2,24v6H8L18.3881,19.6118A9,9,0,1,0,21,2Zm0,16a7.0125,7.0125,0,0,1-2.0322-.3022L17.821,17.35l-.8472.8472-3.1811,3.1812L12.4141,20,11,21.4141l1.3787,1.3786-1.5859,1.586L9.4141,23,8,24.4141l1.3787,1.3786L7.1716,28H4V24.8284l9.8023-9.8023.8472-.8474-.3473-1.1467A7,7,0,1,1,21,18Z"})),tt||(tt=tX.createElement("circle",{cx:"22",cy:"10",r:"2"})),n)}),ia=["children"],is=["children"],il=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,ia);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tn||(tn=tX.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM8,18a2,2,0,1,1,2-2A2,2,0,0,1,8,18Zm8,0a2,2,0,1,1,2-2A2,2,0,0,1,16,18Zm8,0a2,2,0,1,1,2-2A2,2,0,0,1,24,18Z"})),tr||(tr=tX.createElement("path",{fill:"none",d:"M10,16a2,2,0,1,1-2-2A2,2,0,0,1,10,16Zm6-2a2,2,0,1,0,2,2A2,2,0,0,0,16,14Zm8,0a2,2,0,1,0,2,2A2,2,0,0,0,24,14Z","data-icon-path":"inner-path"})),n)}),iu=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,is);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ti||(ti=tX.createElement("path",{d:"M29.37,14.75,20,10V6a4,4,0,0,0-8,0v4L2.63,14.75a1,1,0,0,0-.63.93v5a1,1,0,0,0,1,1,1,1,0,0,0,.29-.05L12,18v5L8.55,24.72a1,1,0,0,0-.55.9V29a1,1,0,0,0,1,1,.9.9,0,0,0,.28,0L16,28l6.72,2A.9.9,0,0,0,23,30a1,1,0,0,0,1-1V25.62a1,1,0,0,0-.55-.9L20,23V18l8.71,3.61a1,1,0,0,0,.29.05,1,1,0,0,0,1-1v-5A1,1,0,0,0,29.37,14.75ZM28,19.15,18,15v9.24l4,2v1.43l-6-1.75-6,1.75V26.24l4-2V15L4,19.15V16.3l10-5.07V6a2,2,0,0,1,4,0v5.23L28,16.3Z"})),n)}),ic=["children"],id=["children"],ih=["children"],ip=["children"],im=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,ic);return tX.createElement(t3,t0({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),to||(to=tX.createElement("path",{d:"M30 18A6 6 0 1020 22.46v7.54l4-1.8926 4 1.8926V22.46A5.98 5.98 0 0030 18zm-4 8.84l-2-.9467L22 26.84V23.65a5.8877 5.8877 0 004 0zM24 22a4 4 0 114-4A4.0045 4.0045 0 0124 22zM9 14H16V16H9zM9 8H19V10H9z"})),ta||(ta=tX.createElement("path",{d:"M6,30a2.0021,2.0021,0,0,1-2-2V4A2.0021,2.0021,0,0,1,6,2H22a2.0021,2.0021,0,0,1,2,2V8H22V4H6V28H16v2Z"})),n)}),iv=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,id);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ts||(ts=tX.createElement("circle",{cx:"11",cy:"15.5",r:"1.5"})),tl||(tl=tX.createElement("path",{d:"M12,12H10V8h2a2,2,0,0,0,0-4H10A2.0023,2.0023,0,0,0,8,6v.5H6V6a4.0045,4.0045,0,0,1,4-4h2a4,4,0,0,1,0,8Z"})),tu||(tu=tX.createElement("path",{d:"M22.4479,21.0337A10.971,10.971,0,0,0,19.9211,4.7446l-.999,1.73A8.9967,8.9967,0,1,1,5,14H3a10.9916,10.9916,0,0,0,18.0338,8.4478L28.5859,30,30,28.5859Z"})),n)}),ig=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,ih);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tc||(tc=tX.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),n)}),iy=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,ip);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),td||(td=tX.createElement("path",{d:"M20.59 22L15 16.41 15 7 17 7 17 15.58 22 20.59 20.59 22z"})),tf||(tf=tX.createElement("path",{d:"M16,2A13.94,13.94,0,0,0,6,6.23V2H4v8h8V8H7.08A12,12,0,1,1,4,16H2A14,14,0,1,0,16,2Z"})),n)}),ix=["children"],ib=["children"],iw=["children"],ij=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,ix);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),th||(th=tX.createElement("path",{d:"M18,28A12,12,0,1,0,6,16v6.2L2.4,18.6,1,20l6,6,6-6-1.4-1.4L8,22.2V16H8A10,10,0,1,1,18,26Z"})),n)}),ik=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,ib);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tp||(tp=tX.createElement("path",{d:"M10 16H22V18H10zM10 10H22V12H10z"})),tm||(tm=tX.createElement("path",{d:"M16,30,9.8242,26.7071A10.9815,10.9815,0,0,1,4,17V4A2.0022,2.0022,0,0,1,6,2H26a2.0022,2.0022,0,0,1,2,2V17a10.9815,10.9815,0,0,1-5.8242,9.7069ZM6,4V17a8.9852,8.9852,0,0,0,4.7656,7.9423L16,27.7333l5.2344-2.791A8.9852,8.9852,0,0,0,26,17V4Z"})),n)}),iE=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,iw);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tv||(tv=tX.createElement("path",{d:"M13.9,4.6l-2.5-2.5C11.3,2.1,11.1,2,11,2H3C2.4,2,2,2.4,2,3v10c0,0.6,0.4,1,1,1h10c0.6,0,1-0.4,1-1V5 C14,4.9,13.9,4.7,13.9,4.6z M6,3h4v2H6V3z M10,13H6V9h4V13z M11,13V9c0-0.6-0.4-1-1-1H6C5.4,8,5,8.4,5,9v4H3V3h2v2c0,0.6,0.4,1,1,1 h4c0.6,0,1-0.4,1-1V3.2l2,2V13H11z"})),n)}),iS=["children"],i_=["children"],iC=["children"],iO=["children"],iM=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,iS);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tg||(tg=tX.createElement("path",{d:"M28,4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM18,28H14V24h4Zm10-6H4V6H28Z"})),n)}),iT=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,i_);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ty||(ty=tX.createElement("path",{d:"M15,14.3L10.7,10c1.9-2.3,1.6-5.8-0.7-7.7S4.2,0.7,2.3,3S0.7,8.8,3,10.7c2,1.7,5,1.7,7,0l4.3,4.3L15,14.3z M2,6.5 C2,4,4,2,6.5,2S11,4,11,6.5S9,11,6.5,11S2,9,2,6.5z"})),n)}),iA=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,iC);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tx||(tx=tX.createElement("path",{d:"M13.5,8.4c0-0.1,0-0.3,0-0.4c0-0.1,0-0.3,0-0.4l1-0.8c0.4-0.3,0.4-0.9,0.2-1.3l-1.2-2C13.3,3.2,13,3,12.6,3 c-0.1,0-0.2,0-0.3,0.1l-1.2,0.4c-0.2-0.1-0.4-0.3-0.7-0.4l-0.3-1.3C10.1,1.3,9.7,1,9.2,1H6.8c-0.5,0-0.9,0.3-1,0.8L5.6,3.1 C5.3,3.2,5.1,3.3,4.9,3.4L3.7,3C3.6,3,3.5,3,3.4,3C3,3,2.7,3.2,2.5,3.5l-1.2,2C1.1,5.9,1.2,6.4,1.6,6.8l0.9,0.9c0,0.1,0,0.3,0,0.4 c0,0.1,0,0.3,0,0.4L1.6,9.2c-0.4,0.3-0.5,0.9-0.2,1.3l1.2,2C2.7,12.8,3,13,3.4,13c0.1,0,0.2,0,0.3-0.1l1.2-0.4 c0.2,0.1,0.4,0.3,0.7,0.4l0.3,1.3c0.1,0.5,0.5,0.8,1,0.8h2.4c0.5,0,0.9-0.3,1-0.8l0.3-1.3c0.2-0.1,0.4-0.2,0.7-0.4l1.2,0.4 c0.1,0,0.2,0.1,0.3,0.1c0.4,0,0.7-0.2,0.9-0.5l1.1-2c0.2-0.4,0.2-0.9-0.2-1.3L13.5,8.4z M12.6,12l-1.7-0.6c-0.4,0.3-0.9,0.6-1.4,0.8 L9.2,14H6.8l-0.4-1.8c-0.5-0.2-0.9-0.5-1.4-0.8L3.4,12l-1.2-2l1.4-1.2c-0.1-0.5-0.1-1.1,0-1.6L2.2,6l1.2-2l1.7,0.6 C5.5,4.2,6,4,6.5,3.8L6.8,2h2.4l0.4,1.8c0.5,0.2,0.9,0.5,1.4,0.8L12.6,4l1.2,2l-1.4,1.2c0.1,0.5,0.1,1.1,0,1.6l1.4,1.2L12.6,12z"})),tb||(tb=tX.createElement("path",{d:"M8,11c-1.7,0-3-1.3-3-3s1.3-3,3-3s3,1.3,3,3C11,9.6,9.7,11,8,11C8,11,8,11,8,11z M8,6C6.9,6,6,6.8,6,7.9C6,7.9,6,8,6,8 c0,1.1,0.8,2,1.9,2c0,0,0.1,0,0.1,0c1.1,0,2-0.8,2-1.9c0,0,0-0.1,0-0.1C10,6.9,9.2,6,8,6C8.1,6,8,6,8,6z"})),n)}),iP=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,iO);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tw||(tw=tX.createElement("path",{d:"M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30V8zM21 12c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3S22.7 12 21 12zM2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2V24zM11 20c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3S9.3 20 11 20z"})),n)}),iN=["children"],iR=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,iN);return tX.createElement(t3,t0({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tj||(tj=tX.createElement("path",{d:"M8 15H24V17H8z"})),n)}),iD=["children"],iL=["children"],iF=["children"],iz=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,iD);return tX.createElement(t3,t0({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tk||(tk=tX.createElement("path",{d:"M23,9h6a2,2,0,0,0,2-2V3a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2V4H11V3A2,2,0,0,0,9,1H3A2,2,0,0,0,1,3V7A2,2,0,0,0,3,9H9a2,2,0,0,0,2-2V6h4V26a2.0023,2.0023,0,0,0,2,2h4v1a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V25a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2v1H17V17h4v1a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V14a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2v1H17V6h4V7A2,2,0,0,0,23,9Zm0-6h6V7H23ZM9,7H3V3H9ZM23,25h6v4H23Zm0-11h6v4H23Z",transform:"translate(0 .005)"})),n)}),iV=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,iL);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tE||(tE=tX.createElement("path",{d:"M29.391,14.527L17.473,2.609C17.067,2.203,16.533,2,16,2s-1.067,0.203-1.473,0.609L2.609,14.527C2.203,14.933,2,15.466,2,16 s0.203,1.067,0.609,1.473l11.917,11.917C14.933,29.797,15.467,30,16,30s1.067-0.203,1.473-0.609l11.917-11.917 C29.797,17.067,30,16.534,30,16S29.797,14.933,29.391,14.527z M21,18H11v-4h10V18z"})),tS||(tS=tX.createElement("path",{fill:"none",d:"M11 14H21V18H11z","data-icon-path":"inner-path"})),n)}),iZ=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,iF);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t_||(t_=tX.createElement("path",{d:"M3 9L3.7 9.7 7.5 5.9 7.5 15 8.5 15 8.5 5.9 12.3 9.7 13 9 8 4zM3 4V2h10v2h1V2c0-.6-.4-1-1-1H3C2.4 1 2 1.4 2 2v2H3z"})),n)}),iI=["children"],iB=["children"],iH=["children"],iU=["children"],iW=["children"],iq=["children"],i$=["children"],iK=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,iI);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tC||(tC=tX.createElement("path",{d:"M21,26H4a2,2,0,0,1-2-2V8A2,2,0,0,1,4,6H21a2,2,0,0,1,2,2v4.06l5.42-3.87A1,1,0,0,1,30,9V23a1,1,0,0,1-1.58.81L23,19.94V24A2,2,0,0,1,21,26ZM4,8V24H21V18a1,1,0,0,1,1.58-.81L28,21.06V10.94l-5.42,3.87A1,1,0,0,1,21,14V8Z"})),n)}),iY=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,iB);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tO||(tO=tX.createElement("path",{d:"M15.5,7.8C14.3,4.7,11.3,2.6,8,2.5C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3c1.2,3.1,4.1,5.2,7.5,5.3 c3.3-0.1,6.3-2.2,7.5-5.3C15.5,8.1,15.5,7.9,15.5,7.8z M8,12.5c-2.7,0-5.4-2-6.5-4.5c1-2.5,3.8-4.5,6.5-4.5s5.4,2,6.5,4.5 C13.4,10.5,10.6,12.5,8,12.5z"})),tM||(tM=tX.createElement("path",{d:"M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z M8,10c-1.1,0-2-0.9-2-2s0.9-2,2-2s2,0.9,2,2S9.1,10,8,10z"})),n)}),iG=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,iH);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tT||(tT=tX.createElement("path",{d:"M2.6,11.3l0.7-0.7C2.6,9.8,1.9,9,1.5,8c1-2.5,3.8-4.5,6.5-4.5c0.7,0,1.4,0.1,2,0.4l0.8-0.8C9.9,2.7,9,2.5,8,2.5 C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3C1,9.3,1.7,10.4,2.6,11.3z"})),tA||(tA=tX.createElement("path",{d:"M6 7.9c.1-1 .9-1.8 1.8-1.8l.9-.9C7.2 4.7 5.5 5.6 5.1 7.2 5 7.7 5 8.3 5.1 8.8L6 7.9zM15.5 7.8c-.6-1.5-1.6-2.8-2.9-3.7L15 1.7 14.3 1 1 14.3 1.7 15l2.6-2.6c1.1.7 2.4 1 3.7 1.1 3.3-.1 6.3-2.2 7.5-5.3C15.5 8.1 15.5 7.9 15.5 7.8zM10 8c0 1.1-.9 2-2 2-.3 0-.7-.1-1-.3L9.7 7C9.9 7.3 10 7.6 10 8zM8 12.5c-1 0-2.1-.3-3-.8l1.3-1.3c1.4.9 3.2.6 4.2-.8.7-1 .7-2.4 0-3.4l1.4-1.4c1.1.8 2 1.9 2.6 3.2C13.4 10.5 10.6 12.5 8 12.5z"})),n)}),iX=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,iU);return tX.createElement(t3,t0({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tP||(tP=tX.createElement("path",{d:"M22 17H24V19H22z"})),tN||(tN=tX.createElement("path",{d:"M28,8H4V5H26V3H4A2,2,0,0,0,2,5V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10A2,2,0,0,0,28,8ZM4,26V10H28v3H20a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h8v3ZM28,15v6H20V15Z"})),n)}),iJ=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,iW);return tX.createElement(t3,t0({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tR||(tR=tX.createElement("path",{d:"M22 17H24V19H22z"})),tD||(tD=tX.createElement("path",{d:"M28,8H4V5H26V3H4A2,2,0,0,0,2,5V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10A2,2,0,0,0,28,8ZM4,26V10H28v3H20a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h8v3ZM28,15v6H20V15Z"})),n)}),iQ=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,iq);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tL||(tL=tX.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M8,14c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6S11.3,14,8,14z"})),tF||(tF=tX.createElement("path",{d:"M7.5 4H8.5V9H7.5zM8 10.2c-.4 0-.8.3-.8.8s.3.8.8.8c.4 0 .8-.3.8-.8S8.4 10.2 8 10.2z"})),n)}),i0=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,i$);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tz||(tz=tX.createElement("path",{d:"M8,1C4.2,1,1,4.2,1,8s3.2,7,7,7s7-3.1,7-7S11.9,1,8,1z M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2 c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z"})),tV||(tV=tX.createElement("path",{d:"M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8 c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z","data-icon-path":"inner-path",opacity:"0"})),n)}),i1=["children"],i2=["children"],i4=["children"],i3=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,i1);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tZ||(tZ=tX.createElement("path",{d:"M26.0022,4H5.998A1.998,1.998,0,0,0,4,5.998V26.002A1.998,1.998,0,0,0,5.998,28H26.0022A1.9979,1.9979,0,0,0,28,26.002V5.998A1.9979,1.9979,0,0,0,26.0022,4ZM14.8752,8h2.25V18h-2.25ZM16,24a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,24Z"})),tI||(tI=tX.createElement("path",{fill:"none",d:"M14.8751,8h2.25V18h-2.25ZM16,24a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,24Z","data-icon-path":"inner-path"})),n)}),i5=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,i2);return tX.createElement(t3,t0({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tB||(tB=tX.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM28,15H22A24.26,24.26,0,0,0,19.21,4.45,12,12,0,0,1,28,15ZM16,28a5,5,0,0,1-.67,0A21.85,21.85,0,0,1,12,17H20a21.85,21.85,0,0,1-3.3,11A5,5,0,0,1,16,28ZM12,15a21.85,21.85,0,0,1,3.3-11,6,6,0,0,1,1.34,0A21.85,21.85,0,0,1,20,15Zm.76-10.55A24.26,24.26,0,0,0,10,15h-6A12,12,0,0,1,12.79,4.45ZM4.05,17h6a24.26,24.26,0,0,0,2.75,10.55A12,12,0,0,1,4.05,17ZM19.21,27.55A24.26,24.26,0,0,0,22,17h6A12,12,0,0,1,19.21,27.55Z"})),n)}),i6=tX.forwardRef(function(e,t){var n=e.children,r=t1(e,i4);return tX.createElement(t3,t0({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tH||(tH=tX.createElement("path",{d:"M29.3164,8.0513l-18-6A1,1,0,0,0,10.4,2.2L4,7V2H2V30H4V11l6.4,4.8a1,1,0,0,0,.9165.1489l18-6a1,1,0,0,0,0-1.8974ZM10,13,4.6665,9,10,5Zm4-.0542-2,.667V4.3872l2,.667Zm4-1.333-2,.6665V5.7207l2,.6665Zm2-.667V7.0542L25.8379,9Z"})),tU||(tU=tX.createElement("path",{d:"M20,22a4,4,0,0,0-8,0h2a2,2,0,1,1,2,2H8v2h8A4.0045,4.0045,0,0,0,20,22Z"})),tW||(tW=tX.createElement("path",{d:"M26,22a4.0045,4.0045,0,0,0-4,4h2a2,2,0,1,1,2,2H12v2H26a4,4,0,0,0,0-8Z"})),n)}),i8=n(52322);function i7(e){let{size:t=24}=e;return(0,i8.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,i8.jsx)("path",{d:"M96 152v8H48v-8C48 68.1 116.1 0 200 0h48c83.9 0 152 68.1 152 152v8H352v-8c0-57.4-46.6-104-104-104H200C142.6 48 96 94.6 96 152zM0 224c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32h-5.1L388.5 469c-2.6 24.4-23.2 43-47.7 43H107.2c-24.6 0-45.2-18.5-47.7-43L37.1 256H32c-17.7 0-32-14.3-32-32z"})})}function i9(e){let{size:t=24}=e;return(0,i8.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",children:(0,i8.jsx)("path",{d:"M464 64C490.5 64 512 85.49 512 112V176C512 202.5 490.5 224 464 224H48C21.49 224 0 202.5 0 176V112C0 85.49 21.49 64 48 64H464zM448 128H320V160H448V128zM464 288C490.5 288 512 309.5 512 336V400C512 426.5 490.5 448 464 448H48C21.49 448 0 426.5 0 400V336C0 309.5 21.49 288 48 288H464zM192 352V384H448V352H192z"})})}function oe(e){let{size:t=24,className:n}=e;return(0,i8.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:n,fill:"currentColor",viewBox:"0 0 384 512",children:(0,i8.jsx)("path",{d:"M256 0v128h128L256 0zM224 128L224 0H48C21.49 0 0 21.49 0 48v416C0 490.5 21.49 512 48 512h288c26.51 0 48-21.49 48-48V160h-127.1C238.3 160 224 145.7 224 128zM64 72C64 67.63 67.63 64 72 64h80C156.4 64 160 67.63 160 72v16C160 92.38 156.4 96 152 96h-80C67.63 96 64 92.38 64 88V72zM64 136C64 131.6 67.63 128 72 128h80C156.4 128 160 131.6 160 136v16C160 156.4 156.4 160 152 160h-80C67.63 160 64 156.4 64 152V136zM304 384c8.875 0 16 7.125 16 16S312.9 416 304 416h-47.25c-16.38 0-31.25-9.125-38.63-23.88c-2.875-5.875-8-6.5-10.12-6.5s-7.25 .625-10 6.125l-7.75 15.38C187.6 412.6 181.1 416 176 416H174.9c-6.5-.5-12-4.75-14-11L144 354.6L133.4 386.5C127.5 404.1 111 416 92.38 416H80C71.13 416 64 408.9 64 400S71.13 384 80 384h12.38c4.875 0 9.125-3.125 10.62-7.625l18.25-54.63C124.5 311.9 133.6 305.3 144 305.3s19.5 6.625 22.75 16.5l13.88 41.63c19.75-16.25 54.13-9.75 66 14.12c2 4 6 6.5 10.12 6.5H304z"})})}function ot(e){let{size:t=24,className:n}=e;return(0,i8.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",className:n,children:(0,i8.jsx)("path",{d:"M464 288h-416C21.5 288 0 309.5 0 336v96C0 458.5 21.5 480 48 480h416c26.5 0 48-21.5 48-48v-96C512 309.5 490.5 288 464 288zM320 416c-17.62 0-32-14.38-32-32s14.38-32 32-32s32 14.38 32 32S337.6 416 320 416zM416 416c-17.62 0-32-14.38-32-32s14.38-32 32-32s32 14.38 32 32S433.6 416 416 416zM464 32h-416C21.5 32 0 53.5 0 80v192.4C13.41 262.3 29.92 256 48 256h416c18.08 0 34.59 6.254 48 16.41V80C512 53.5 490.5 32 464 32z"})})}function on(e){let{size:t=24,className:n}=e;return(0,i8.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,className:n,fill:"currentColor",viewBox:"0 0 512 512",children:(0,i8.jsx)("path",{d:"M448 32C465.7 32 480 46.33 480 64C480 81.67 465.7 96 448 96H80C71.16 96 64 103.2 64 112C64 120.8 71.16 128 80 128H448C483.3 128 512 156.7 512 192V416C512 451.3 483.3 480 448 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H448zM416 336C433.7 336 448 321.7 448 304C448 286.3 433.7 272 416 272C398.3 272 384 286.3 384 304C384 321.7 398.3 336 416 336z"})})}function or(e){let{size:t=24}=e;return(0,i8.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,i8.jsx)("path",{d:"M80 192V144C80 64.47 144.5 0 224 0C303.5 0 368 64.47 368 144V192H384C419.3 192 448 220.7 448 256V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V256C0 220.7 28.65 192 64 192H80zM144 192H304V144C304 99.82 268.2 64 224 64C179.8 64 144 99.82 144 144V192z"})})}function oi(e){let{size:t=24}=e;return(0,i8.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,i8.jsx)("path",{d:"M7.994 153.5c1.326 0 2.687 .3508 3.975 1.119L208 271.5v223.8c0 9.741-7.656 16.71-16.01 16.71c-2.688 0-5.449-.7212-8.05-2.303l-152.2-92.47C12.13 405.3 0 383.3 0 359.5v-197.7C0 156.1 3.817 153.5 7.994 153.5zM426.2 117.2c0 2.825-1.352 5.647-4.051 7.248L224 242.6L25.88 124.4C23.19 122.8 21.85 119.1 21.85 117.2c0-2.8 1.32-5.603 3.965-7.221l165.1-100.9C201.7 3.023 212.9 0 224 0s22.27 3.023 32.22 9.07l165.1 100.9C424.8 111.6 426.2 114.4 426.2 117.2zM440 153.5C444.2 153.5 448 156.1 448 161.8v197.7c0 23.75-12.12 45.75-31.78 57.69l-152.2 92.5C261.5 511.3 258.7 512 256 512C247.7 512 240 505 240 495.3V271.5l196-116.9C437.3 153.8 438.7 153.5 440 153.5z"})})}function oo(e){let{size:t=24}=e;return(0,i8.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:t,height:t,fill:"currentColor",children:(0,i8.jsx)("path",{d:"M495.9 166.6C499.2 175.2 496.4 184.9 489.6 191.2L446.3 230.6C447.4 238.9 448 247.4 448 256C448 264.6 447.4 273.1 446.3 281.4L489.6 320.8C496.4 327.1 499.2 336.8 495.9 345.4C491.5 357.3 486.2 368.8 480.2 379.7L475.5 387.8C468.9 398.8 461.5 409.2 453.4 419.1C447.4 426.2 437.7 428.7 428.9 425.9L373.2 408.1C359.8 418.4 344.1 427 329.2 433.6L316.7 490.7C314.7 499.7 307.7 506.1 298.5 508.5C284.7 510.8 270.5 512 255.1 512C241.5 512 227.3 510.8 213.5 508.5C204.3 506.1 197.3 499.7 195.3 490.7L182.8 433.6C167 427 152.2 418.4 138.8 408.1L83.14 425.9C74.3 428.7 64.55 426.2 58.63 419.1C50.52 409.2 43.12 398.8 36.52 387.8L31.84 379.7C25.77 368.8 20.49 357.3 16.06 345.4C12.82 336.8 15.55 327.1 22.41 320.8L65.67 281.4C64.57 273.1 64 264.6 64 256C64 247.4 64.57 238.9 65.67 230.6L22.41 191.2C15.55 184.9 12.82 175.3 16.06 166.6C20.49 154.7 25.78 143.2 31.84 132.3L36.51 124.2C43.12 113.2 50.52 102.8 58.63 92.95C64.55 85.8 74.3 83.32 83.14 86.14L138.8 103.9C152.2 93.56 167 84.96 182.8 78.43L195.3 21.33C197.3 12.25 204.3 5.04 213.5 3.51C227.3 1.201 241.5 0 256 0C270.5 0 284.7 1.201 298.5 3.51C307.7 5.04 314.7 12.25 316.7 21.33L329.2 78.43C344.1 84.96 359.8 93.56 373.2 103.9L428.9 86.14C437.7 83.32 447.4 85.8 453.4 92.95C461.5 102.8 468.9 113.2 475.5 124.2L480.2 132.3C486.2 143.2 491.5 154.7 495.9 166.6V166.6zM256 336C300.2 336 336 300.2 336 255.1C336 211.8 300.2 175.1 256 175.1C211.8 175.1 176 211.8 176 255.1C176 300.2 211.8 336 256 336z"})})}function oa(e){let{size:t=24}=e;return(0,i8.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:t,width:t,fill:"currentColor",children:(0,i8.jsx)("path",{d:"M448 80v48c0 44.2-100.3 80-224 80S0 172.2 0 128V80C0 35.8 100.3 0 224 0S448 35.8 448 80zM393.2 214.7c20.8-7.4 39.9-16.9 54.8-28.6V288c0 44.2-100.3 80-224 80S0 332.2 0 288V186.1c14.9 11.8 34 21.2 54.8 28.6C99.7 230.7 159.5 240 224 240s124.3-9.3 169.2-25.3zM0 346.1c14.9 11.8 34 21.2 54.8 28.6C99.7 390.7 159.5 400 224 400s124.3-9.3 169.2-25.3c20.8-7.4 39.9-16.9 54.8-28.6V432c0 44.2-100.3 80-224 80S0 476.2 0 432V346.1z"})})}function os(e){let{size:t=24}=e;return(0,i8.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,width:t,fill:"currentColor",children:(0,i8.jsx)("path",{d:"M64 480H448c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H298.5c-17 0-33.3-6.7-45.3-18.7L226.7 50.7c-12-12-28.3-18.7-45.3-18.7H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64z"})})}function ol(e){let{size:t=24}=e;return(0,i8.jsxs)("svg",{version:"1.1",id:"icon",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:t,height:t,fill:"currentColor",viewBox:"0 0 32 32",children:[(0,i8.jsx)("polygon",{points:"23,9.2 20.4,6.6 19,8 23,12 30,5 28.6,3.6 "}),(0,i8.jsx)("polygon",{points:"12,5.4 10.6,4 8,6.6 5.4,4 4,5.4 6.6,8 4,10.6 5.4,12 8,9.4 10.6,12 12,10.6 9.4,8 "}),(0,i8.jsx)("polygon",{points:"12,21.4 10.6,20 8,22.6 5.4,20 4,21.4 6.6,24 4,26.6 5.4,28 8,25.4 10.6,28 12,26.6 9.4,24 "}),(0,i8.jsx)("polygon",{points:"17,15 17,2 15,2 15,15 2,15 2,17 15,17 15,30 17,30 17,17 30,17 30,15 "}),(0,i8.jsx)("rect",{fill:"none",width:"32",height:"32"})]})}function ou(e){let{size:t=24}=e;return(0,i8.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,i8.jsx)("path",{d:"M224 0c-17.7 0-32 14.3-32 32V51.2C119 66 64 130.6 64 208v18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416H416c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8V208c0-77.4-55-142-128-156.8V32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3H224 160c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"})})}},9969:function(e,t,n){"use strict";n.d(t,{pz:function(){return eo},HI:function(){return o},Z7:function(){return K},Uy:function(){return Y},e$:function(){return er},oe:function(){return ei},S0:function(){return ea},YX:function(){return et},Bl:function(){return es},D5:function(){return L},oV:function(){return F},sg:function(){return V},ol:function(){return z},B$:function(){return D},d_:function(){return a},DQ:function(){return s},cq:function(){return N},IK:function(){return R},GP:function(){return P},nH:function(){return l},$:function(){return E},s2:function(){return O},ni:function(){return M},uf:function(){return _},Os:function(){return T},FV:function(){return k},Yy:function(){return X},Bi:function(){return J},X1:function(){return Q},wy:function(){return I},xw:function(){return H},Jv:function(){return Z},p$:function(){return ec},Iy:function(){return B},Q5:function(){return U},ZM:function(){return ed},f$:function(){return ep},yu:function(){return W},KJ:function(){return q},og:function(){return G},Wl:function(){return d},cQ:function(){return c},ys:function(){return p},QL:function(){return h},X2:function(){return m},aO:function(){return x},gU:function(){return g},a0:function(){return w},cg:function(){return y},Qq:function(){return v},RF:function(){return eh}});var r=n(79381),i=n(95753);let o="/bus/state";function a(e){return(0,i.Nf)({...e,route:o})}function s(e){return(0,i.Nf)({...e,route:"/bus/consensus/state"})}function l(){let e=a({config:{swr:{revalidateOnFocus:!1}}}),t=(0,r.ZP)(e,()=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.network)==="Zen Testnet"?(0,i.du)():(0,i.Tc)()},{refreshInterval:6e4,keepPreviousData:!0});return t.data||0}let u="/bus/syncer/peers";function c(e){return(0,i.Nf)({...e,route:u})}function d(e){return(0,i.mw)({...e,route:"/bus/syncer/connect"},async e=>{e(e=>e===u)})}let f="/bus/txpool/transactions";function h(e){return(0,i.Nf)({...e,route:f})}function p(e){return(0,i.mw)({...e,route:"/bus/txpool/broadcast"},async e=>{await (0,i.gw)(2e3),e(e=>e.startsWith(f)||e.startsWith(b))})}function m(e){return(0,i.Nf)({...e,route:"/bus/wallet"})}function v(e){return(0,i.Nf)({...e,route:"/bus/wallet/transactions"})}function g(e){return(0,i.mw)({...e,route:"/bus/wallet/fund"})}function y(e){return(0,i.mw)({...e,route:"/bus/wallet/sign"})}function x(e){return(0,i.mw)({...e,route:"/bus/wallet/discard"})}let b="/bus/wallet/pending";function w(e){return(0,i.Nf)({...e,route:b})}let j="/bus/search/hosts";function k(e){return(0,i.q0)({...e,route:j})}function E(e){return(0,i.Nf)({...e,route:"/bus/host/:hostKey"})}let S="/bus/hosts/blocklist";function _(e){return(0,i.Nf)({...e,route:S})}let C="/bus/hosts/allowlist";function O(e){return(0,i.Nf)({...e,route:C})}function M(e){return(0,i.V1)({...e,route:"/bus/hosts/allowlist"},async e=>{e(e=>!![j,C,A].find(t=>e.startsWith(t)))})}function T(e){return(0,i.V1)({...e,route:"/bus/hosts/blocklist"},async e=>{e(e=>!![j,S,A].find(t=>e.startsWith(t)))})}let A="/bus/contracts";function P(e){return(0,i.Nf)({...e,route:A})}function N(e){return(0,i.Nf)({...e,route:"/bus/contract/:id"})}function R(e){return(0,i.iv)({...e,route:"/bus/contract/:id"},async e=>{e(e=>e.startsWith("/bus/contract"))})}function D(e){return(0,i.Nf)({...e,route:"/bus/buckets"})}function L(e){return(0,i.Nf)({...e,route:"/bus/bucket/:name"})}function F(e){return(0,i.mw)({...e,route:"/bus/buckets"},async e=>{e(e=>e.startsWith("/bus/buckets"))})}function z(e){return(0,i.V1)({...e,route:"/bus/bucket/:name/policy"},async e=>{e(e=>e.startsWith("/bus/bucket"))})}function V(e){return(0,i.iv)({...e,route:"/bus/bucket/:name"},async e=>{e(e=>e.startsWith("/bus/bucket"))})}function Z(e){return(0,i.Nf)({...e,route:"/bus/objects/:key"})}function I(e){return(0,i.Nf)({...e,route:"/bus/objects/:key"})}function B(e){return(0,i.Nf)({...e,route:"/bus/search/objects"})}function H(e){return(0,i.iv)({...e,route:"/bus/objects/:key"},async e=>{e(e=>e.startsWith("/bus/objects/"))})}function U(e){return(0,i.Nf)({...e,route:"/bus/stats/objects"})}function W(e){return(0,i.Nf)({...e,route:"/bus/setting/:key"})}function q(e){return(0,i.V1)({...e,route:"/bus/setting/:key"},async(e,t)=>{e(e=>e.startsWith("/bus/setting/".concat(t.params.key)))})}let $="/bus/alerts";function K(e){return(0,i.Nf)({...e,route:$})}function Y(e){return(0,i.mw)({...e,route:"/bus/alerts/dismiss"},async e=>{e(e=>e.startsWith($))})}function G(e){return(0,i.Nf)({...e,route:"/bus/slab/:key/objects"})}function X(e){return(0,i.Nf)({...e,route:"/bus/metric/contract"})}function J(e){return(0,i.Nf)({...e,route:"/bus/metric/contractset"})}function Q(e){return(0,i.Nf)({...e,route:"/bus/metric/wallet"})}let ee="/autopilot/state";function et(e){return(0,i.Nf)({...e,route:ee})}let en="/autopilot/config";function er(e){return(0,i.Nf)({...e,route:en})}function ei(e){return(0,i.V1)({...e,route:en},async e=>{e(e=>e===en);let t=async()=>{await (0,i.gw)(1e3),e(e=>e===ee)};t()})}let eo="/autopilot/hosts";function ea(e){return(0,i.q0)({...e,route:eo})}function es(e){return(0,i.mw)({...e,route:"/autopilot/trigger"})}var el=n(54073),eu=n.n(el);function ec(e){return(0,i.rB)({...e,route:"/worker/objects/:key"})}function ed(e){var t;return(0,i.V1)({...e,config:{...null==e?void 0:e.config,axios:{...null==e?void 0:null===(t=e.config)||void 0===t?void 0:t.axios,headers:{"Content-Type":"multipart/form-data"}}},route:"/worker/objects/:key"},async e=>{e(e=>e.startsWith("/bus/objects"))})}let ef=eu()(e=>e(),5e3),eh="/worker/rhp/scan";function ep(e){return(0,i.mw)({...e,route:eh},async(e,t,n)=>{let{payload:{hostKey:r}}=t;e(e=>e.startsWith("/autopilot/hosts"),e=>null==e?void 0:e.map(e=>e.host.publicKey===r?{...e,host:{...e.host,interactions:{...e.host.interactions,LastScan:new Date().toISOString(),LastScanSuccess:!n.data.scanError},settings:n.data.settings}}:e),!1),e(e=>e.startsWith("/bus/search/hosts"),e=>null==e?void 0:e.map(e=>e.publicKey===r?{...e,interactions:{...e.interactions,LastScan:new Date().toISOString(),LastScanSuccess:!n.data.scanError},settings:n.data.settings}:e),!1),ef(()=>{e(e=>e.startsWith("/autopilot/hosts")||e.startsWith("/bus/search/hosts"),e=>e,!0)})})}},47025:function(e,t,n){"use strict";n.d(t,{BW:function(){return s},JL:function(){return o},BF:function(){return a}});var r=n(95753);let i="https://api.siacentral.com/v2";function o(e){let{settings:t}=(0,r.Hv)();return(0,r.Nf)({api:i,...e,route:"/hosts/list?showinactive=false&sort=download_speed&dir=desc&protocol=rhp3&page=0&limit=1000",disabled:(null==e?void 0:e.disabled)||!t.siaCentral})}function a(e){let{settings:t}=(0,r.Hv)();return(0,r.Nf)({api:i,...e,route:"/hosts/network/averages",disabled:(null==e?void 0:e.disabled)||!t.siaCentral})}function s(e){let{settings:t}=(0,r.Hv)();return(0,r.Nf)({api:i,...e,route:"/market/exchange-rate?currencies=sc",disabled:(null==e?void 0:e.disabled)||!t.siaCentral})}n(98537)},25205:function(e,t,n){"use strict";n.d(t,{xf:function(){return a},jr:function(){return b},pp:function(){return y},x5:function(){return x},JW:function(){return o},gU:function(){return m},vW:function(){return f},rN:function(){return p},yF:function(){return h},Vz:function(){return d},S5:function(){return g},qN:function(){return u},ll:function(){return l},mv:function(){return v}});var r=n(6391),i=n.n(r);function o(e){return new(i())(e).div(1e3).div(1e3).div(1e3).div(1e3)}function a(e){return new(i())(e).times(1e3).times(1e3).times(1e3).times(1e3)}r.BigNumber.config({EXPONENTIAL_AT:1e9}),r.BigNumber.config({DECIMAL_PLACES:30});let s=new r.BigNumber("10").exponentiatedBy(24);function l(e,t){return void 0!==t?new r.BigNumber(new r.BigNumber(e).dividedBy(s).toFixed(t)):new r.BigNumber(e).dividedBy(s)}function u(e){return new r.BigNumber(new r.BigNumber(e).times(s).toFixed(0))}let c={fixed:3,dynamicUnits:!0,hastingUnits:!1};function d(e,t){let{fixed:n,dynamicUnits:i,hastingUnits:o}={...c,...t},a=new r.BigNumber(1e12),s=new r.BigNumber(1e3),u=new r.BigNumber(e),d=new r.BigNumber(e).abs(),f=u.isNegative()?"-":"";if(!i)return"".concat(f).concat(l(d).toFormat(n)," SC");if(d.dividedBy(a).isLessThan(1))return o?"".concat(f).concat(d," H"):"".concat(f,"0 SC");let h=["pS","nS","uS","mS","SC","KS","MS","GS","TS"];for(let e=0;ee.multipliedBy(s),new r.BigNumber(1)),i=d.dividedBy(a.multipliedBy(t));if(i.isLessThan(s)||e===h.length-1)return"".concat(f).concat(i.toFormat(n)," ").concat(h[e])}return""}function f(e,t){let n="number"==typeof e?e:e instanceof i()?e.toNumber():Number(e),{fixed:r=2}=t||{};if(!n)return"0 B";if(n<1e3)return"".concat(n," B");let o=Math.floor(Math.log10(n)/Math.log10(1e3)),a=n/Math.pow(1e3,o);return a.toFixed(r)+" "+["B","KB","MB","GB","TB","PB","EB"][o]}function h(e,t){let{fixed:n=0,units:r="",abbreviated:o=!1}=t||{},a=new(i())(e||0);if(o){let e=a.toNumber();if(e<1e3)return a.toString();let t=["","K","M","B","t","q","Q","s","S","o","n","d","U","D"],i=Math.floor(Math.log10(e)/Math.log10(1e3)),o=e/Math.pow(1e3,i);return"".concat(o.toFixed(n)).concat(t[i]?" ".concat(t[i]):"").concat(r?" ".concat(r):"")}return"".concat(a.toFormat(n)).concat(r?" ".concat(r):"")}function p(e,t){let n;return n=navigator.language,new Intl.DateTimeFormat(n,{dateStyle:"short",...t}).format(new Date(e))}function m(e){return 144*e}function v(e){return 1008*e}function g(e){return 4320*e}function y(e){return e/16666666666666669e-22}function x(e){return e/1008}function b(e,t){return new Date().getTime()+y(t-e)}n(81395),n(18149)},2271:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return o}});let n=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class r{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}}let i=globalThis.AsyncLocalStorage;function o(){return i?new i:new r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},26252:function(e,t,n){"use strict";function r(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return r}}),n(43219),n(2784),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55046:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return h},useSearchParams:function(){return p},usePathname:function(){return m},ServerInsertedHTMLContext:function(){return l.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return l.useServerInsertedHTML},useRouter:function(){return v},useParams:function(){return g},useSelectedLayoutSegments:function(){return y},useSelectedLayoutSegment:function(){return x},redirect:function(){return u.redirect},permanentRedirect:function(){return u.permanentRedirect},RedirectType:function(){return u.RedirectType},notFound:function(){return c.notFound}});let r=n(2784),i=n(60587),o=n(58839),a=n(26252),s=n(4424),l=n(44673),u=n(75903),c=n(47067),d=Symbol("internal for urlsearchparams readonly");function f(){return Error("ReadonlyURLSearchParams cannot be modified")}class h{[Symbol.iterator](){return this[d][Symbol.iterator]()}append(){throw f()}delete(){throw f()}set(){throw f()}sort(){throw f()}constructor(e){this[d]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e),this.size=e.size}}function p(){(0,a.clientHookInServerComponentError)("useSearchParams");let e=(0,r.useContext)(o.SearchParamsContext),t=(0,r.useMemo)(()=>e?new h(e):null,[e]);return t}function m(){return(0,a.clientHookInServerComponentError)("usePathname"),(0,r.useContext)(o.PathnameContext)}function v(){(0,a.clientHookInServerComponentError)("useRouter");let e=(0,r.useContext)(i.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function g(){(0,a.clientHookInServerComponentError)("useParams");let e=(0,r.useContext)(i.GlobalLayoutRouterContext),t=(0,r.useContext)(o.PathParamsContext);return e?function e(t,n){void 0===n&&(n={});let r=t[1];for(let t of Object.values(r)){let r=t[0],i=Array.isArray(r),o=i?r[1]:r;if(!o||o.startsWith("__PAGE__"))continue;let a=i&&("c"===r[2]||"oc"===r[2]);a?n[r[0]]=r[1].split("/"):i&&(n[r[0]]=r[1]),n=e(t,n)}return n}(e.tree):t}function y(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,r.useContext)(i.LayoutRouterContext);return function e(t,n,r,i){let o;if(void 0===r&&(r=!0),void 0===i&&(i=[]),r)o=t[1][n];else{var a;let e=t[1];o=null!=(a=e.children)?a:Object.values(e)[0]}if(!o)return i;let l=o[0],u=(0,s.getSegmentValue)(l);return!u||u.startsWith("__PAGE__")?i:(i.push(u),e(o,n,!1,i))}(t,e)}function x(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=y(e);return 0===t.length?null:t[0]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},47067:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{notFound:function(){return r},isNotFoundError:function(){return i}});let n="NEXT_NOT_FOUND";function r(){let e=Error(n);throw e.digest=n,e}function i(e){return(null==e?void 0:e.digest)===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75903:function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return r},getRedirectError:function(){return s},redirect:function(){return l},permanentRedirect:function(){return u},isRedirectError:function(){return c},getURLFromRedirectError:function(){return d},getRedirectTypeFromError:function(){return f}});let o=n(7552),a="NEXT_REDIRECT";function s(e,t,n){void 0===n&&(n=!1);let r=Error(a);r.digest=a+";"+t+";"+e+";"+n;let i=o.requestAsyncStorage.getStore();return i&&(r.mutableCookies=i.mutableCookies),r}function l(e,t){throw void 0===t&&(t="replace"),s(e,t,!1)}function u(e,t){throw void 0===t&&(t="replace"),s(e,t,!0)}function c(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,n,r,i]=e.digest.split(";",4);return t===a&&("replace"===n||"push"===n)&&"string"==typeof r&&("true"===i||"false"===i)}function d(e){return c(e)?e.digest.split(";",3)[2]:null}function f(e){if(!c(e))throw Error("Not a redirect error");return e.digest.split(";",3)[1]}(i=r||(r={})).push="push",i.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7552:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return i}});let r=n(2271),i=(0,r.createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4424:function(e,t){"use strict";function n(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},23116:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PrefetchKind:function(){return n},ACTION_REFRESH:function(){return i},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return s},ACTION_PREFETCH:function(){return l},ACTION_FAST_REFRESH:function(){return u},ACTION_SERVER_ACTION:function(){return c}});let i="refresh",o="navigate",a="restore",s="server-patch",l="prefetch",u="fast-refresh",c="server-action";(r=n||(n={})).AUTO="auto",r.FULL="full",r.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25146:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(67858),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},80920:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return y}});let r=n(43219),i=n(16794),o=i._(n(2784)),a=r._(n(28316)),s=r._(n(37412)),l=n(31918),u=n(97686),c=n(45802);n(84759);let d=n(54365),f=r._(n(2088)),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function p(e,t,n,r,i,o){let a=null==e?void 0:e.src;if(!e||e["data-loaded-src"]===a)return;e["data-loaded-src"]=a;let s="decode"in e?e.decode():Promise.resolve();s.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,i=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}})}function m(e){let[t,n]=o.version.split("."),r=parseInt(t,10),i=parseInt(n,10);return r>18||18===r&&i>=3?{fetchPriority:e}:{fetchpriority:e}}let v=(0,o.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:i,height:a,width:s,decoding:l,className:u,style:c,fetchPriority:d,placeholder:f,loading:h,unoptimized:v,fill:g,onLoadRef:y,onLoadingCompleteRef:x,setBlurComplete:b,setShowAltText:w,onLoad:j,onError:k,...E}=e;return o.default.createElement("img",{...E,...m(d),loading:h,width:s,height:a,decoding:l,"data-nimg":g?"fill":"1",className:u,style:c,sizes:i,srcSet:r,src:n,ref:(0,o.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(k&&(e.src=e.src),e.complete&&p(e,f,y,x,b,v))},[n,f,y,x,b,k,v,t]),onLoad:e=>{let t=e.currentTarget;p(t,f,y,x,b,v)},onError:e=>{w(!0),"empty"!==f&&b(!0),k&&k(e)}})});function g(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...m(n.fetchPriority)};return t&&a.default.preload?(a.default.preload(n.src,r),null):o.default.createElement(s.default,null,o.default.createElement("link",{key:"__nimg-"+n.src+n.srcSet+n.sizes,rel:"preload",href:n.srcSet?void 0:n.src,...r}))}let y=(0,o.forwardRef)((e,t)=>{let n=(0,o.useContext)(d.RouterContext),r=(0,o.useContext)(c.ImageConfigContext),i=(0,o.useMemo)(()=>{let e=h||r||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[r]),{onLoad:a,onLoadingComplete:s}=e,p=(0,o.useRef)(a);(0,o.useEffect)(()=>{p.current=a},[a]);let m=(0,o.useRef)(s);(0,o.useEffect)(()=>{m.current=s},[s]);let[y,x]=(0,o.useState)(!1),[b,w]=(0,o.useState)(!1),{props:j,meta:k}=(0,l.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:y,showAltText:b});return o.default.createElement(o.default.Fragment,null,o.default.createElement(v,{...j,unoptimized:k.unoptimized,placeholder:k.placeholder,fill:k.fill,onLoadRef:p,onLoadingCompleteRef:m,setBlurComplete:x,setShowAltText:w,ref:t}),k.priority?o.default.createElement(g,{isAppRouter:!n,imgAttributes:j}):null)});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},13814:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return b}});let r=n(43219),i=r._(n(2784)),o=n(31068),a=n(33134),s=n(39585),l=n(51570),u=n(19868),c=n(54365),d=n(60587),f=n(93629),h=n(25146),p=n(10694),m=n(23116),v=new Set;function g(e,t,n,r,i,o){if(!o&&!(0,a.isLocalURL)(t))return;if(!r.bypassPrefetchedCheck){let i=void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0,o=t+"%"+n+"%"+i;if(v.has(o))return;v.add(o)}let s=o?e.prefetch(t,i):e.prefetch(t,n,r);Promise.resolve(s).catch(e=>{})}function y(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let x=i.default.forwardRef(function(e,t){let n,r;let{href:s,as:v,children:x,prefetch:b=null,passHref:w,replace:j,shallow:k,scroll:E,locale:S,onClick:_,onMouseEnter:C,onTouchStart:O,legacyBehavior:M=!1,...T}=e;n=x,M&&("string"==typeof n||"number"==typeof n)&&(n=i.default.createElement("a",null,n));let A=i.default.useContext(c.RouterContext),P=i.default.useContext(d.AppRouterContext),N=null!=A?A:P,R=!A,D=!1!==b,L=null===b?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,{href:F,as:z}=i.default.useMemo(()=>{if(!A){let e=y(s);return{href:e,as:v?y(v):e}}let[e,t]=(0,o.resolveHref)(A,s,!0);return{href:e,as:v?(0,o.resolveHref)(A,v):t||e}},[A,s,v]),V=i.default.useRef(F),Z=i.default.useRef(z);M&&(r=i.default.Children.only(n));let I=M?r&&"object"==typeof r&&r.ref:t,[B,H,U]=(0,f.useIntersection)({rootMargin:"200px"}),W=i.default.useCallback(e=>{(Z.current!==z||V.current!==F)&&(U(),Z.current=z,V.current=F),B(e),I&&("function"==typeof I?I(e):"object"==typeof I&&(I.current=e))},[z,I,F,U,B]);i.default.useEffect(()=>{N&&H&&D&&g(N,F,z,{locale:S},{kind:L},R)},[z,F,H,S,D,null==A?void 0:A.locale,N,R,L]);let q={ref:W,onClick(e){M||"function"!=typeof _||_(e),M&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),N&&!e.defaultPrevented&&function(e,t,n,r,o,s,l,u,c,d){let{nodeName:f}=e.currentTarget,h="A"===f.toUpperCase();if(h&&(function(e){let t=e.currentTarget,n=t.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let p=()=>{let e=null==l||l;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:s,locale:u,scroll:e}):t[o?"replace":"push"](r||n,{forceOptimisticNavigation:!d,scroll:e})};c?i.default.startTransition(p):p()}(e,N,F,z,j,k,E,S,R,D)},onMouseEnter(e){M||"function"!=typeof C||C(e),M&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),N&&(D||!R)&&g(N,F,z,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:L},R)},onTouchStart(e){M||"function"!=typeof O||O(e),M&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),N&&(D||!R)&&g(N,F,z,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:L},R)}};if((0,l.isAbsoluteUrl)(z))q.href=z;else if(!M||w||"a"===r.type&&!("href"in r.props)){let e=void 0!==S?S:null==A?void 0:A.locale,t=(null==A?void 0:A.isLocaleDomain)&&(0,h.getDomainLocale)(z,e,null==A?void 0:A.locales,null==A?void 0:A.domainLocales);q.href=t||(0,p.addBasePath)((0,u.addLocale)(z,e,null==A?void 0:A.defaultLocale))}return M?i.default.cloneElement(r,q):i.default.createElement("a",{...T,...q},n)}),b=x;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93629:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(2784),i=n(30857),o="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,u=l||!o,[c,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),h=(0,r.useCallback)(e=>{f.current=e},[]);(0,r.useEffect)(()=>{if(o){if(u||c)return;let e=f.current;if(e&&e.tagName){let r=function(e,t,n){let{id:r,observer:i,elements:o}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let i=new Map,o=new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:o,elements:i},s.push(n),a.set(n,t),t}(n);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n});return r}}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,n,t,c,f.current]);let p=(0,r.useCallback)(()=>{d(!1)},[]);return[h,c,p]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},22698:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{noSSR:function(){return a},default:function(){return s}});let r=n(43219),i=(n(2784),r._(n(94780)));function o(e){return{default:(null==e?void 0:e.default)||e}}function a(e,t){return delete t.webpack,delete t.modules,e(t)}function s(e,t){let n=i.default,r={loading:e=>{let{error:t,isLoading:n,pastDelay:r}=e;return null}};e instanceof Promise?r.loader=()=>e:"function"==typeof e?r.loader=e:"object"==typeof e&&(r={...r,...e}),r={...r,...t};let s=r.loader;return(r.loadableGenerated&&(r={...r,...r.loadableGenerated},delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr)?n({...r,loader:()=>null!=s?s().then(o):Promise.resolve(o(()=>null))}):(delete r.webpack,delete r.modules,a(n,r))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},31918:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),n(84759);let r=n(69933),i=n(97686);function o(e){return void 0!==e.default}function a(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function s(e,t){var n;let s,l,u,{src:c,sizes:d,unoptimized:f=!1,priority:h=!1,loading:p,className:m,quality:v,width:g,height:y,fill:x=!1,style:b,onLoad:w,onLoadingComplete:j,placeholder:k="empty",blurDataURL:E,fetchPriority:S,layout:_,objectFit:C,objectPosition:O,lazyBoundary:M,lazyRoot:T,...A}=e,{imgConf:P,showAltText:N,blurComplete:R,defaultLoader:D}=t,L=P||i.imageConfigDefault;if("allSizes"in L)s=L;else{let e=[...L.deviceSizes,...L.imageSizes].sort((e,t)=>e-t),t=L.deviceSizes.sort((e,t)=>e-t);s={...L,allSizes:e,deviceSizes:t}}let F=A.loader||D;delete A.loader,delete A.srcSet;let z="__next_img_default"in F;if(z){if("custom"===s.loader)throw Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=F;F=t=>{let{config:n,...r}=t;return e(r)}}if(_){"fill"===_&&(x=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[_];e&&(b={...b,...e});let t={responsive:"100vw",fill:"100vw"}[_];t&&!d&&(d=t)}let V="",Z=a(g),I=a(y);if("object"==typeof(n=c)&&(o(n)||void 0!==n.src)){let e=o(c)?c.default:c;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(l=e.blurWidth,u=e.blurHeight,E=E||e.blurDataURL,V=e.src,!x){if(Z||I){if(Z&&!I){let t=Z/e.width;I=Math.round(e.height*t)}else if(!Z&&I){let t=I/e.height;Z=Math.round(e.width*t)}}else Z=e.width,I=e.height}}let B=!h&&("lazy"===p||void 0===p);(!(c="string"==typeof c?c:V)||c.startsWith("data:")||c.startsWith("blob:"))&&(f=!0,B=!1),s.unoptimized&&(f=!0),z&&c.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(f=!0),h&&(S="high");let H=a(v),U=Object.assign(x?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:C,objectPosition:O}:{},N?{}:{color:"transparent"},b),W=R||"empty"===k?null:"blur"===k?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:Z,heightInt:I,blurWidth:l,blurHeight:u,blurDataURL:E||"",objectFit:U.objectFit})+'")':'url("'+k+'")',q=W?{backgroundSize:U.objectFit||"cover",backgroundPosition:U.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:W}:{},$=function(e){let{config:t,src:n,unoptimized:r,width:i,quality:o,sizes:a,loader:s}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,n){let{deviceSizes:r,allSizes:i}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:i,kind:"w"}}if("number"!=typeof t)return{widths:r,kind:"w"};let o=[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))];return{widths:o,kind:"x"}}(t,i,a),c=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((e,r)=>s({config:t,src:n,quality:o,width:e})+" "+("w"===u?e:r+1)+u).join(", "),src:s({config:t,src:n,quality:o,width:l[c]})}}({config:s,src:c,unoptimized:f,width:Z,quality:H,sizes:d,loader:F}),K={...A,loading:B?"lazy":p,fetchPriority:S,width:Z,height:I,decoding:"async",className:m,style:{...U,...q},sizes:$.sizes,srcSet:$.srcSet,src:$.src},Y={unoptimized:f,priority:h,placeholder:k,fill:x};return{props:K,meta:Y}}},69933:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:o,objectFit:a}=e,s=r?40*r:t,l=i?40*i:n,u=s&&l?"viewBox='0 0 "+s+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},81963:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return u},unstable_getImgProps:function(){return l}});let r=n(43219),i=n(31918),o=n(84759),a=n(80920),s=r._(n(2088)),l=e=>{(0,o.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:t}=(0,i.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}},u=a.Image},2088:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:i}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},49306:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return o}});let r=n(43219),i=r._(n(2784)),o=i.default.createContext(null)},94780:function(e,t,n){"use strict";/** -@copyright (c) 2017-present James Kyle - MIT License - Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE -*/Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let r=n(43219),i=r._(n(2784)),o=n(49306),a=[],s=[],l=!1;function u(e){let t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}class c{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function d(e){return function(e,t){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),r=null;function a(){if(!r){let t=new c(e,n);r={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return r.promise()}if(!l){let e=n.webpack?n.webpack():n.modules;e&&s.push(t=>{for(let n of e)if(t.includes(n))return a()})}function u(e,t){!function(){a();let e=i.default.useContext(o.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach(t=>{e(t)})}();let s=i.default.useSyncExternalStore(r.subscribe,r.getCurrentValue,r.getCurrentValue);return i.default.useImperativeHandle(t,()=>({retry:r.retry}),[]),i.default.useMemo(()=>{var t;return s.loading||s.error?i.default.createElement(n.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:r.retry}):s.loaded?i.default.createElement((t=s.loaded)&&t.default?t.default:t,e):null},[e,s])}return u.preload=()=>a(),u.displayName="LoadableComponent",i.default.forwardRef(u)}(u,e)}function f(e,t){let n=[];for(;e.length;){let r=e.pop();n.push(r(t))}return Promise.all(n).then(()=>{if(e.length)return f(e,t)})}d.preloadAll=()=>new Promise((e,t)=>{f(a).then(e,t)}),d.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let n=()=>(l=!0,t());f(s,e).then(n,n)})),window.__NEXT_PRELOADREADY=d.preloadReady;let h=d},44673:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return a}});let r=n(16794),i=r._(n(2784)),o=i.default.createContext(null);function a(e){let t=(0,i.useContext)(o);t&&t(e)}},37832:function(){},49854:function(e){e.exports={style:{fontFamily:"'__IBM_Plex_Mono_355ef5', '__IBM_Plex_Mono_Fallback_355ef5'"},className:"__className_355ef5",variable:"__variable_355ef5"}},1240:function(e){e.exports={style:{fontFamily:"'__IBM_Plex_Sans_829fdc', '__IBM_Plex_Sans_Fallback_829fdc'"},className:"__className_829fdc",variable:"__variable_829fdc"}},25237:function(e,t,n){e.exports=n(22698)},97729:function(e,t,n){e.exports=n(37412)},96577:function(e,t,n){e.exports=n(81963)},39097:function(e,t,n){e.exports=n(13814)},82876:function(e,t,n){e.exports=n(55046)},5632:function(e,t,n){e.exports=n(60222)},24470:function(e){var t=String,n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}};e.exports=n(),e.exports.createColors=n},34406:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c1)for(var n=1;n=this._maxSize&&this.clear(),!(e in this._values)&&this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,i=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new t(512),l=new t(512),u=new t(512);function c(e){return s.get(e)||s.set(e,d(e).map(function(e){return e.replace(a,"$2")}))}function d(e){return e.match(n)||[""]}function f(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}e.exports={Cache:t,split:d,normalizePath:c,setter:function(e){var t=c(e);return l.get(e)||l.set(e,function(e,n){for(var r=0,i=t.length,o=e;r>>7-e%8&1)==1},put:function(e,t){for(var n=0;n>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},81432:function(e){e.exports={L:1,M:0,Q:3,H:2}},84695:function(e,t,n){var r=n(35856);function i(e,t){if(void 0==e.length)throw Error(e.length+"/"+t);for(var n=0;n=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=l.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},u.setupPositionProbePattern=function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1)&&!(this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4?this.modules[e+n][t+r]=!0:this.modules[e+n][t+r]=!1)},u.getBestMaskPattern=function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=a.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t},u.createMovieClip=function(e,t,n){var r=e.createEmptyMovieClip(t,n);this.make();for(var i=0;i>n&1)==1;this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(var n=0;n<18;n++){var r=!e&&(t>>n&1)==1;this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},u.setupTypeInfo=function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=a.getBCHTypeInfo(n),i=0;i<15;i++){var o=!e&&(r>>i&1)==1;i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(var i=0;i<15;i++){var o=!e&&(r>>i&1)==1;i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o}this.modules[this.moduleCount-8][8]=!e},u.mapData=function(e,t){for(var n=-1,r=this.moduleCount-1,i=7,o=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var l=0;l<2;l++)if(null==this.modules[r][s-l]){var u=!1;o>>i&1)==1),a.getMask(t,r,s-l)&&(u=!u),this.modules[r][s-l]=u,-1==--i&&(o++,i=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}},l.PAD0=236,l.PAD1=17,l.createData=function(e,t,n){for(var r=i.getRSBlocks(e,t),s=new o,u=0;u8*d)throw Error("code length overflow. ("+s.getLengthInBits()+">"+8*d+")");for(s.getLengthInBits()+4<=8*d&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*d)&&(s.put(l.PAD0,8),!(s.getLengthInBits()>=8*d));)s.put(l.PAD1,8);return l.createBytes(s,r)},l.createBytes=function(e,t){for(var n=0,r=0,i=0,o=Array(t.length),l=Array(t.length),u=0;u=0?p.get(m):0}}for(var v=0,f=0;f=256;)e-=255;return t.EXP_TABLE[e]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},n=0;n<8;n++)t.EXP_TABLE[n]=1<=0;)t^=s.G15<=0;)t^=s.G18<>>=1;return t},getPatternPosition:function(e){return s.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case a.PATTERN000:return(t+n)%2==0;case a.PATTERN001:return t%2==0;case a.PATTERN010:return n%3==0;case a.PATTERN011:return(t+n)%3==0;case a.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case a.PATTERN101:return t*n%2+t*n%3==0;case a.PATTERN110:return(t*n%2+t*n%3)%2==0;case a.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new i([1],0),n=0;n5&&(n+=3+o-5)}for(var r=0;r0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var u=[".DS_Store","Thumbs.db"];function c(e){return"object"==typeof e&&null!==e}function d(e){return e.filter(function(e){return -1===u.indexOf(e.name)})}function f(e){if(null===e)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);nn)return[!1,_(n)];if(e.sizen)return[!1,_(n)]}return[!0,null]}function A(e){return null!=e}function P(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function N(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(e){return"Files"===e||"application/x-moz-file"===e}):!!e.target&&!!e.target.files}function R(e){e.preventDefault()}function D(){for(var e=arguments.length,t=Array(e),n=0;n1?n-1:0),i=1;ie.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Y=(0,r.forwardRef)(function(e,t){var n=e.children,i=J(K(e,z)),o=i.open,a=K(i,V);return(0,r.useImperativeHandle)(t,function(){return{open:o}},[o]),r.createElement(r.Fragment,null,n(q(q({},a),{},{open:o})))});Y.displayName="Dropzone";var G={disabled:!1,getFilesFromEvent:function(e){return(0,a.mG)(this,void 0,void 0,function(){return(0,a.Jh)(this,function(t){return c(e)&&c(e.dataTransfer)?[2,function(e,t){return(0,a.mG)(this,void 0,void 0,function(){var n;return(0,a.Jh)(this,function(r){switch(r.label){case 0:if(!e.items)return[3,2];if(n=f(e.items).filter(function(e){return"file"===e.kind}),"drop"!==t)return[2,n];return[4,Promise.all(n.map(h))];case 1:return[2,d(function e(t){return t.reduce(function(t,n){return(0,a.ev)((0,a.ev)([],(0,a.CR)(t),!1),(0,a.CR)(Array.isArray(n)?e(n):[n]),!1)},[])}(r.sent()))];case 2:return[2,d(f(e.files).map(function(e){return l(e)}))]}})})}(e.dataTransfer,e.type)]:c(e)&&c(e.target)?[2,f(e.target.files).map(function(e){return l(e)})]:Array.isArray(e)&&e.every(function(e){return"getFile"in e&&"function"==typeof e.getFile})?[2,function(e){return(0,a.mG)(this,void 0,void 0,function(){return(0,a.Jh)(this,function(t){switch(t.label){case 0:return[4,Promise.all(e.map(function(e){return e.getFile()}))];case 1:return[2,t.sent().map(function(e){return l(e)})]}})})}(e)]:[2,[]]})})},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Y.defaultProps=G,Y.propTypes={children:o().func,accept:o().objectOf(o().arrayOf(o().string)),multiple:o().bool,preventDropOnDocument:o().bool,noClick:o().bool,noKeyboard:o().bool,noDrag:o().bool,noDragEventsBubbling:o().bool,minSize:o().number,maxSize:o().number,maxFiles:o().number,disabled:o().bool,getFilesFromEvent:o().func,onFileDialogCancel:o().func,onFileDialogOpen:o().func,useFsAccessApi:o().bool,autoFocus:o().bool,onDragEnter:o().func,onDragLeave:o().func,onDragOver:o().func,onDrop:o().func,onDropAccepted:o().func,onDropRejected:o().func,onError:o().func,validator:o().func};var X={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function J(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=q(q({},G),e),n=t.accept,i=t.disabled,o=t.getFilesFromEvent,a=t.maxSize,s=t.minSize,l=t.multiple,u=t.maxFiles,c=t.onDragEnter,d=t.onDragLeave,f=t.onDragOver,h=t.onDrop,p=t.onDropAccepted,m=t.onDropRejected,v=t.onFileDialogCancel,g=t.onFileDialogOpen,x=t.useFsAccessApi,k=t.autoFocus,E=t.preventDropOnDocument,S=t.noClick,_=t.noKeyboard,C=t.noDrag,z=t.noDragEventsBubbling,V=t.onError,W=t.validator,Y=(0,r.useMemo)(function(){return function(e){if(A(e))return Object.entries(e).reduce(function(e,t){var n=j(t,2),r=n[0],i=n[1];return[].concat(y(e),[r],y(i))},[]).filter(function(e){return L(e)||F(e)}).join(",")}(n)},[n]),J=(0,r.useMemo)(function(){return A(n)?[{description:"Files",accept:Object.entries(n).filter(function(e){var t=j(e,2),n=t[0],r=t[1],i=!0;return L(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),i=!1),Array.isArray(r)&&r.every(F)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),i=!1),i}).reduce(function(e,t){var n=j(t,2),r=n[0],i=n[1];return b(b({},e),{},w({},r,i))},{})}]:n},[n]),et=(0,r.useMemo)(function(){return"function"==typeof g?g:ee},[g]),en=(0,r.useMemo)(function(){return"function"==typeof v?v:ee},[v]),er=(0,r.useRef)(null),ei=(0,r.useRef)(null),eo=B((0,r.useReducer)(Q,X),2),ea=eo[0],es=eo[1],el=ea.isFocused,eu=ea.isFileDialogActive,ec=(0,r.useRef)("undefined"!=typeof window&&window.isSecureContext&&x&&"showOpenFilePicker"in window),ed=function(){!ec.current&&eu&&setTimeout(function(){ei.current&&!ei.current.files.length&&(es({type:"closeDialog"}),en())},300)};(0,r.useEffect)(function(){return window.addEventListener("focus",ed,!1),function(){window.removeEventListener("focus",ed,!1)}},[ei,eu,en,ec]);var ef=(0,r.useRef)([]),eh=function(e){er.current&&er.current.contains(e.target)||(e.preventDefault(),ef.current=[])};(0,r.useEffect)(function(){return E&&(document.addEventListener("dragover",R,!1),document.addEventListener("drop",eh,!1)),function(){E&&(document.removeEventListener("dragover",R),document.removeEventListener("drop",eh))}},[er,E]),(0,r.useEffect)(function(){return!i&&k&&er.current&&er.current.focus(),function(){}},[er,k,i]);var ep=(0,r.useCallback)(function(e){V?V(e):console.error(e)},[V]),em=(0,r.useCallback)(function(e){var t;e.preventDefault(),e.persist(),eO(e),ef.current=[].concat(function(e){if(Array.isArray(e))return U(e)}(t=ef.current)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||H(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e.target]),N(e)&&Promise.resolve(o(e)).then(function(t){if(!P(e)||z){var n,r,i,o,d,f,h,p,m=t.length,v=m>0&&(r=(n={files:t,accept:Y,minSize:s,maxSize:a,multiple:l,maxFiles:u,validator:W}).files,i=n.accept,o=n.minSize,d=n.maxSize,f=n.multiple,h=n.maxFiles,p=n.validator,(!!f||!(r.length>1))&&(!f||!(h>=1)||!(r.length>h))&&r.every(function(e){var t=j(M(e,i),1)[0],n=j(T(e,o,d),1)[0],r=p?p(e):null;return t&&n&&!r}));es({isDragAccept:v,isDragReject:m>0&&!v,isDragActive:!0,type:"setDraggedFiles"}),c&&c(e)}}).catch(function(e){return ep(e)})},[o,c,ep,z,Y,s,a,l,u,W]),ev=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eO(e);var t=N(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&f&&f(e),!1},[f,z]),eg=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eO(e);var t=ef.current.filter(function(e){return er.current&&er.current.contains(e)}),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),ef.current=t,!(t.length>0)&&(es({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),N(e)&&d&&d(e))},[er,d,z]),ey=(0,r.useCallback)(function(e,t){var n=[],r=[];e.forEach(function(e){var t=B(M(e,Y),2),i=t[0],o=t[1],l=B(T(e,s,a),2),u=l[0],c=l[1],d=W?W(e):null;if(i&&u&&!d)n.push(e);else{var f=[o,c];d&&(f=f.concat(d)),r.push({file:e,errors:f.filter(function(e){return e})})}}),(!l&&n.length>1||l&&u>=1&&n.length>u)&&(n.forEach(function(e){r.push({file:e,errors:[O]})}),n.splice(0)),es({acceptedFiles:n,fileRejections:r,type:"setFiles"}),h&&h(n,r,t),r.length>0&&m&&m(r,t),n.length>0&&p&&p(n,t)},[es,l,Y,s,a,u,h,p,m,W]),ex=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eO(e),ef.current=[],N(e)&&Promise.resolve(o(e)).then(function(t){(!P(e)||z)&&ey(t,e)}).catch(function(e){return ep(e)}),es({type:"reset"})},[o,ey,ep,z]),eb=(0,r.useCallback)(function(){if(ec.current){es({type:"openDialog"}),et(),window.showOpenFilePicker({multiple:l,types:J}).then(function(e){return o(e)}).then(function(e){ey(e,null),es({type:"closeDialog"})}).catch(function(e){e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)?(en(e),es({type:"closeDialog"})):e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)?(ec.current=!1,ei.current?(ei.current.value=null,ei.current.click()):ep(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):ep(e)});return}ei.current&&(es({type:"openDialog"}),et(),ei.current.value=null,ei.current.click())},[es,et,en,x,ey,ep,J,l]),ew=(0,r.useCallback)(function(e){er.current&&er.current.isEqualNode(e.target)&&(" "===e.key||"Enter"===e.key||32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),eb())},[er,eb]),ej=(0,r.useCallback)(function(){es({type:"focus"})},[]),ek=(0,r.useCallback)(function(){es({type:"blur"})},[]),eE=(0,r.useCallback)(function(){S||(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return -1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/")}()?setTimeout(eb,0):eb())},[S,eb]),eS=function(e){return i?null:e},e_=function(e){return _?null:eS(e)},eC=function(e){return C?null:eS(e)},eO=function(e){z&&e.stopPropagation()},eM=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.role,o=e.onKeyDown,a=e.onFocus,s=e.onBlur,l=e.onClick,u=e.onDragEnter,c=e.onDragOver,d=e.onDragLeave,f=e.onDrop,h=K(e,Z);return q(q($({onKeyDown:e_(D(o,ew)),onFocus:e_(D(a,ej)),onBlur:e_(D(s,ek)),onClick:eS(D(l,eE)),onDragEnter:eC(D(u,em)),onDragOver:eC(D(c,ev)),onDragLeave:eC(D(d,eg)),onDrop:eC(D(f,ex)),role:"string"==typeof r&&""!==r?r:"presentation"},n,er),i||_?{}:{tabIndex:0}),h)}},[er,ew,ej,ek,eE,em,ev,eg,ex,_,C,i]),eT=(0,r.useCallback)(function(e){e.stopPropagation()},[]),eA=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,i=e.onClick,o=K(e,I);return q(q({},$({accept:Y,multiple:l,type:"file",style:{display:"none"},onChange:eS(D(r,ex)),onClick:eS(D(i,eT)),tabIndex:-1},n,ei)),o)}},[ei,n,l,ex,i]);return q(q({},ea),{},{isFocused:el&&!i,getRootProps:eM,getInputProps:eA,rootRef:er,inputRef:ei,open:eS(eb)})}function Q(e,t){switch(t.type){case"focus":return q(q({},e),{},{isFocused:!0});case"blur":return q(q({},e),{},{isFocused:!1});case"openDialog":return q(q({},X),{},{isFileDialogActive:!0});case"closeDialog":return q(q({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return q(q({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return q(q({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return q({},X);default:return e}}function ee(){}},78435:function(e){"use strict";var t=Array.isArray,n=Object.keys,r=Object.prototype.hasOwnProperty,i="undefined"!=typeof Element;e.exports=function(e,o){try{return function e(o,a){if(o===a)return!0;if(o&&a&&"object"==typeof o&&"object"==typeof a){var s,l,u,c=t(o),d=t(a);if(c&&d){if((l=o.length)!=a.length)return!1;for(s=l;0!=s--;)if(!e(o[s],a[s]))return!1;return!0}if(c!=d)return!1;var f=o instanceof Date,h=a instanceof Date;if(f!=h)return!1;if(f&&h)return o.getTime()==a.getTime();var p=o instanceof RegExp,m=a instanceof RegExp;if(p!=m)return!1;if(p&&m)return o.toString()==a.toString();var v=n(o);if((l=v.length)!==n(a).length)return!1;for(s=l;0!=s--;)if(!r.call(a,v[s]))return!1;if(i&&o instanceof Element&&a instanceof Element)return o===a;for(s=l;0!=s--;)if(("_owner"!==(u=v[s])||!o.$$typeof)&&!e(o[u],a[u]))return!1;return!0}return o!=o&&a!=a}(e,o)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},72660:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(13980)),i=o(n(2784));function o(e){return e&&e.__esModule?e:{default:e}}var a={d:r.default.string.isRequired,fill:r.default.string.isRequired,transformX:r.default.number.isRequired,transformY:r.default.number.isRequired},s=function(e){var t=e.d,n=e.fill,r=e.transformX,o=e.transformY;return i.default.createElement("path",{d:t,fill:n,transform:"matrix("+[1,0,0,1,r,o]+")"})};s.propTypes=a,s.defaultProps={},t.default=s},76672:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","size","title","xmlns"]);return o.default.createElement("svg",r({},s,{height:n,width:n,xmlns:a}),i?o.default.createElement("title",null,i):null,t)};l.propTypes=s,l.defaultProps={title:void 0,xmlns:"http://www.w3.org/2000/svg"},t.default=l},38001:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["bgColor","fgColor","level","size","value"]),h=new i.default(-1,o.default[a]);h.addData(d),h.make();var p=h.modules,m=s/p.length;return l.default.createElement(c.default,r({},f,{size:s}),p.map(function(e,r){return e.map(function(e,i){var o=Math.round(i*m),a=Math.round(r*m),s=Math.round((i+1)*m)-o,c=Math.round((r+1)*m)-a;return l.default.createElement(u.default,{key:"rectangle-"+r+"-"+i,d:"M 0 0 L "+s+" 0 L "+s+" "+c+" L 0 "+c+" Z",fill:e?n:t,transformX:o,transformY:a})})}))};h.propTypes=f,h.defaultProps={bgColor:"#FFFFFF",fgColor:"#000000",level:"L",size:256},t.Z=(0,s.memo)(h)},70506:function(e,t,n){"use strict";n.d(t,{Z:function(){return H}});var r,i,o,a,s,l,u=n(22970),c=n(2784),d="right-scroll-bar-position",f="width-before-scroll-bar",h=(void 0===r&&(r={}),(void 0===i&&(i=function(e){return e}),o=[],a=!1,s={read:function(){if(a)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:null},useMedium:function(e){var t=i(e,a);return o.push(t),function(){o=o.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(a=!0;o.length;){var t=o;o=[],t.forEach(e)}o={push:function(t){return e(t)},filter:function(){return o}}},assignMedium:function(e){a=!0;var t=[];if(o.length){var n=o;o=[],n.forEach(e),t=o}var r=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(r)};i(),o={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),o}}}}).options=(0,u.pi)({async:!0,ssr:!1},r),s),p=function(){},m=c.forwardRef(function(e,t){var n,r,i,o=c.useRef(null),a=c.useState({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:p}),s=a[0],l=a[1],d=e.forwardProps,f=e.children,m=e.className,v=e.removeScrollBar,g=e.enabled,y=e.shards,x=e.sideCar,b=e.noIsolation,w=e.inert,j=e.allowPinchZoom,k=e.as,E=void 0===k?"div":k,S=(0,u._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),_=(n=[o,t],r=function(e){return n.forEach(function(t){return"function"==typeof t?t(e):t&&(t.current=e),t})},(i=(0,c.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,i.facade),C=(0,u.pi)((0,u.pi)({},S),s);return c.createElement(c.Fragment,null,g&&c.createElement(x,{sideCar:h,removeScrollBar:v,shards:y,noIsolation:b,inert:w,setCallbacks:l,allowPinchZoom:!!j,lockRef:o}),d?c.cloneElement(c.Children.only(f),(0,u.pi)((0,u.pi)({},C),{ref:_})):c.createElement(E,(0,u.pi)({},C,{className:m,ref:_}),f))});m.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},m.classNames={fullWidth:f,zeroRight:d};var v=function(e){var t=e.sideCar,n=(0,u._T)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return c.createElement(r,(0,u.pi)({},n))};v.isSideCarExport=!0;var g=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=l||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},y=function(){var e=g();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},x=function(){var e=y();return function(t){return e(t.styles,t.dynamic),null}},b={left:0,top:0,right:0,gap:0},w=function(e){return parseInt(e||"",10)||0},j=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[w(n),w(r),w(i)]},k=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return b;var t=j(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},E=x(),S=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(d," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(f," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(d," .").concat(d," {\n right: 0 ").concat(r,";\n }\n \n .").concat(f," .").concat(f," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},_=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r,o=c.useMemo(function(){return k(i)},[i]);return c.createElement(E,{styles:S(o,!t,i,n?"":"!important")})},C=!1;if("undefined"!=typeof window)try{var O=Object.defineProperty({},"passive",{get:function(){return C=!0,!0}});window.addEventListener("test",O,O),window.removeEventListener("test",O,O)}catch(e){C=!1}var M=!!C&&{passive:!1},T=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)},A=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)},P=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),N(e,n)){var r=R(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},N=function(e,t){return"v"===e?T(t):A(t)},R=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},D=function(e,t,n,r,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*r,l=n.target,u=t.contains(l),c=!1,d=s>0,f=0,h=0;do{var p=R(e,l),m=p[0],v=p[1]-p[2]-a*m;(m||v)&&N(e,l)&&(f+=v,h+=m),l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&0===f||!i&&s>f)?c=!0:!d&&(i&&0===h||!i&&-s>h)&&(c=!0),c},L=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},F=function(e){return[e.deltaX,e.deltaY]},z=function(e){return e&&"current"in e?e.current:e},V=0,Z=[],I=(h.useMedium(function(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),i=c.useState(V++)[0],o=c.useState(function(){return x()})[0],a=c.useRef(e);c.useEffect(function(){a.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,u.ev)([e.lockRef.current],(e.shards||[]).map(z),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=c.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var i,o=L(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-o[0],u="deltaY"in e?e.deltaY:s[1]-o[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=P(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=P(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var h=r.current||i;return D(h,t,e,"h"===h?l:u,!0)},[]),l=c.useCallback(function(e){if(Z.length&&Z[Z.length-1]===o){var n="deltaY"in e?F(e):L(e),r=t.current.filter(function(t){var r;return t.name===e.type&&t.target===e.target&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.preventDefault();return}if(!r){var i=(a.current.shards||[]).map(z).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!a.current.noIsolation)&&e.preventDefault()}}},[]),d=c.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),f=c.useCallback(function(e){n.current=L(e),r.current=void 0},[]),h=c.useCallback(function(t){d(t.type,F(t),t.target,s(t,e.lockRef.current))},[]),p=c.useCallback(function(t){d(t.type,L(t),t.target,s(t,e.lockRef.current))},[]);c.useEffect(function(){return Z.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",l,M),document.addEventListener("touchmove",l,M),document.addEventListener("touchstart",f,M),function(){Z=Z.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,M),document.removeEventListener("touchmove",l,M),document.removeEventListener("touchstart",f,M)}},[]);var m=e.removeScrollBar,v=e.inert;return c.createElement(c.Fragment,null,v?c.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,m?c.createElement(_,{gapMode:"margin"}):null)}),v),B=c.forwardRef(function(e,t){return c.createElement(m,(0,u.pi)({},e,{ref:t,sideCar:I}))});B.classNames=m.classNames;var H=B},32718:function(e,t,n){var r,i=n(58085),o=n(41964),a=n(53207),s=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;e.exports=function(e,t){return r=0,t=Math.pow(10,void 0===t?5:t),o(e=e.replace(/\n+/g," "),/((?:\-[a-z]+\-)?calc)\(/,function e(n,o,l){if(r++>100)throw r=0,Error("Call stack overflow for "+l);if(""===n)throw Error(o+"(): '"+l+"' must contain a non-whitespace string");var u,c=function(e){for(var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,i=r.exec(e);i;)i&&i[1]&&(-1===n.indexOf(i[1].toLowerCase())&&(t.push(i[1]),n.push(i[1].toLowerCase())),i=r.exec(e));return t}(n=function(t,n){t=t.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var r,o="",a=t;r=s.exec(a);){r[0].index>0&&(o+=a.substring(0,r[0].index));var l=i("(",")",a.substring([0].index));if(""===l.body)throw Error("'"+t+"' must contain a non-whitespace string");var u=e(l.body,"",n);o+=l.pre+u,a=l.post}return o+a}(n,l));if(c.length>1||n.indexOf("var(")>-1)return o+"("+n+")";var d=c[0]||"";"%"===d&&(n=n.replace(/\b[0-9\.]+%/g,function(e){return .01*parseFloat(e.slice(0,-1))}));var f=n.replace(RegExp(d,"gi"),"");try{u=a.eval(f)}catch(e){return o+"("+n+")"}return"%"===d&&(u*=100),(o.length||"%"===d)&&(u=Math.round(u*t)/t),u+=d})}},58085:function(e){function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var o=r(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,o,a,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){for(r=[],o=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(s=[o,a])}return s}e.exports=t,t.range=r},41964:function(e,t,n){var r=n(82294);e.exports=function e(t,n,i){return(function(e,t){var n=[],i="string"==typeof t?RegExp("\\b("+t+")\\("):t;do{var o=i.exec(e);if(!o)break;if(void 0===o[1])throw Error("Missing the first couple of parenthesis to get the function identifier in "+t);var a=o[1],s=o.index,l=r("(",")",e.substring(s));if(!l||l.start!==o[0].length-1)throw SyntaxError(a+"(): missing closing ')' in the value '"+e+"'");n.push({matches:l,functionIdentifier:a}),e=l.post}while(i.test(e));return n})(t,n).reduce(function(r,o){var a,s;return r.replace(o.functionIdentifier+"("+o.matches.body+")",(a=o.matches.body,s=o.functionIdentifier,i(e(a,n,i),s,t)))},t)}},6692:function(e,t,n){let r=n(83128);e.exports=(r.__esModule?r:{default:r}).default},83128:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:()=>a});let i=(r=n(37540))&&r.__esModule?r:{default:r};function o({version:e,from:t,to:n}){i.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${n}\`.`,"Update your configuration file to silence this warning."])}let a={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},get lightBlue(){return o({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return o({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return o({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return o({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return o({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}},37540:function(e,t,n){"use strict";var r,i=n(34406);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{dim:()=>l,default:()=>u});let o=(r=n(24470))&&r.__esModule?r:{default:r},a=new Set;function s(e,t,n){(void 0===i||!i.env.JEST_WORKER_ID)&&(n&&a.has(n)||(n&&a.add(n),console.warn(""),t.forEach(t=>console.warn(e,"-",t))))}function l(e){return o.default.dim(e)}let u={info(e,t){s(o.default.bold(o.default.cyan("info")),...Array.isArray(e)?[e]:[t,e])},warn(e,t){s(o.default.bold(o.default.yellow("warn")),...Array.isArray(e)?[e]:[t,e])},risk(e,t){s(o.default.bold(o.default.magenta("risk")),...Array.isArray(e)?[e]:[t,e])}}},95159:function(e){function t(e,t){var n=e.length,r=Array(n),i={},o=n,a=function(e){for(var t=new Map,n=0,r=e.length;n=t||n<0||v&&e-a.current>=g},y=function(t){return s.current=null,m&&l.current?e(t):(l.current=u.current=null,c.current)},x=function e(){var i=Date.now();if(r(i))return y(i);if(f.current){var s=t-(i-o.current);n(e,v?Math.min(s,g-(i-a.current)):s)}},b=function(){var d=Date.now(),h=r(d);if(l.current=[].slice.call(arguments),u.current=i,o.current=d,h){if(!s.current&&f.current)return a.current=o.current,n(x,t),p?e(o.current):c.current;if(v)return n(x,t),e(o.current)}return s.current||n(x,t),c.current};return b.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,l.current=o.current=u.current=s.current=null},b.isPending=function(){return!!s.current},b.flush=function(){return s.current?y(Date.now()):c.current},b},[p,v,t,g,m,h])}((0,r.useCallback)(function(e){return d(e)},[d]),t,n),h=(0,r.useRef)(e);return l(h.current,e)||(f(e),h.current=e),[c,f]}},92762:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784);let i=new Map,o=new Set;function a(e){for(let t of[...o])t(e)}function s(e){try{return e()}catch(e){return}}var l=function(e,t){if(void 0===r.useSyncExternalStore)throw TypeError('You are using React 17 or below. Install with "npm install use-local-storage-state@17".');let[n]=(0,r.useState)(null==t?void 0:t.defaultValue);if("undefined"==typeof window)return[n,()=>{},{isPersistent:!0,removeItem:()=>{}}];let l=null==t?void 0:t.serializer;return function(e,t,n=!0,l=function(e){return"undefined"===e?void 0:JSON.parse(e)},u=JSON.stringify){i.has(e)||void 0===t||null!==s(()=>localStorage.getItem(e))||s(()=>localStorage.setItem(e,u(t)));let c=(0,r.useRef)({item:null,parsed:t}),d=(0,r.useSyncExternalStore)((0,r.useCallback)(t=>{let n=n=>{e===n&&t()};return o.add(n),()=>{o.delete(n)}},[e]),()=>{var n;let r=null!==(n=s(()=>localStorage.getItem(e)))&&void 0!==n?n:null;if(i.has(e))c.current={item:r,parsed:i.get(e)};else if(r!==c.current.item){let e;try{e=null===r?t:l(r)}catch(n){e=t}c.current={item:r,parsed:e}}return c.current.parsed},()=>t),f=(0,r.useCallback)(t=>{let n=t instanceof Function?t(c.current.parsed):t;try{localStorage.setItem(e,u(n)),i.delete(e)}catch(t){i.set(e,n)}a(e)},[e,u]);return(0,r.useEffect)(()=>{if(!n)return;let t=t=>{t.storageArea===s(()=>localStorage)&&t.key===e&&a(e)};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)},[e,n]),(0,r.useMemo)(()=>[d,f,{isPersistent:d===t||!i.has(e),removeItem(){s(()=>localStorage.removeItem(e)),i.delete(e),a(e)}}],[e,f,d,t])}(e,n,null==t?void 0:t.storageSync,null==l?void 0:l.parse,null==l?void 0:l.stringify)}},20452:function(e,t,n){"use strict";/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var r=n(2784),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),a(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},43100:function(e,t,n){"use strict";e.exports=n(20452)},24511:function(e,t,n){"use strict";n.d(t,{Rx:function(){return K},Ry:function(){return em},Z_:function(){return W}});try{v=Map}catch(e){}try{g=Set}catch(e){}function r(e){return function e(t,n,i){if(!t||"object"!=typeof t||"function"==typeof t)return t;if(t.nodeType&&"cloneNode"in t)return t.cloneNode(!0);if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);if(Array.isArray(t))return t.map(r);if(v&&t instanceof v)return new Map(Array.from(t.entries()));if(g&&t instanceof g)return new Set(Array.from(t.values()));if(t instanceof Object){n.push(t);var o=Object.create(t);for(var a in i.push(o),t){var s=n.findIndex(function(e){return e===t[a]});o[a]=s>-1?i[s]:e(t[a],n,i)}return o}return t}(e,[],[])}let i=Object.prototype.toString,o=Error.prototype.toString,a=RegExp.prototype.toString,s="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",l=/^Symbol\((.*)\)(.*)$/;function u(e,t=!1){if(null==e||!0===e||!1===e)return""+e;let n=typeof e;if("number"===n)return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e;if("string"===n)return t?`"${e}"`:e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return s.call(e).replace(l,"Symbol($1)");let r=i.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+o.call(e)+"]":"RegExp"===r?a.call(e):null}function c(e,t){let n=u(e,t);return null!==n?n:JSON.stringify(e,function(e,n){let r=u(this[e],t);return null!==r?r:n},2)}let d={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{let i=null!=r&&r!==n,o=`${e} must be a \`${t}\` type, but the final value was: \`${c(n,!0)}\``+(i?` (cast from the value \`${c(r,!0)}\`).`:".");return null===n&&(o+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),o},defined:"${path} must be defined"},f={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},h={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},p={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},m={noUnknown:"${path} field has unspecified keys: ${unknown}"};Object.assign(Object.create(null),{mixed:d,string:f,number:h,date:p,object:m,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:{isValue:"${path} field must be ${value}"}});var v,g,y=n(93352),x=n.n(y),b=e=>e&&e.__isYupSchema__,w=class{constructor(e,t){if(this.fn=void 0,this.refs=e,this.refs=e,"function"==typeof t){this.fn=t;return}if(!x()(t,"is"))throw TypeError("`is:` is required for `when()` conditions");if(!t.then&&!t.otherwise)throw TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:r,otherwise:i}=t,o="function"==typeof n?n:(...e)=>e.every(e=>e===n);this.fn=function(...e){let t=e.pop(),n=e.pop(),a=o(...e)?r:i;if(a)return"function"==typeof a?a(n):n.concat(a.resolve(t))}}resolve(e,t){let n=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),r=this.fn.apply(e,n.concat(e,t));if(void 0===r||r===e)return e;if(!b(r))throw TypeError("conditions must return a schema object");return r.resolve(t)}};function j(e){return null==e?[]:[].concat(e)}function k(){return(k=Object.assign||function(e){for(var t=1;tc(t[n])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,n,r){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],j(e).forEach(e=>{S.isError(e)?(this.errors.push(...e.errors),this.inner=this.inner.concat(e.inner.length?e.inner:e)):this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,S)}}let _=e=>{let t=!1;return(...n)=>{t||(t=!0,e(...n))}};function C(e,t){let{endEarly:n,tests:r,args:i,value:o,errors:a,sort:s,path:l}=e,u=_(t),c=r.length,d=[];if(a=a||[],!c)return a.length?u(new S(a,o,l)):u(null,o);for(let e=0;e=0||(i[n]=e[n]);return i}(t,["value","path","label","options","originalValue","sync"]),{name:d,test:f,params:h,message:p}=e,{parent:m,context:v}=s;function g(e){return P.isRef(e)?e.getValue(i,m,v):e}function y(e={}){let t=M()(N({value:i,originalValue:l,label:a,path:e.path||o},h,e.params),g),n=new S(S.formatError(e.message||p,t),i,t.path,e.type||d);return n.params=t,n}let x=N({path:o,parent:m,type:d,createError:y,resolve:g,options:s,originalValue:l},c);if(!u){try{Promise.resolve(f.call(x,i,x)).then(e=>{S.isError(e)?n(e):e?n(null,e):n(y())}).catch(n)}catch(e){n(e)}return}try{var b;if(r=f.call(x,i,x),"function"==typeof(null==(b=r)?void 0:b.then))throw Error(`Validation test of type: "${x.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(e){n(e);return}S.isError(r)?n(r):r?n(null,r):n(y())}return t.OPTIONS=e,t}P.prototype.__isYupRef=!0;let D=e=>e.substr(0,e.length-1).substr(1);class L{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){let e=[];for(let t of this.list)e.push(t);for(let[,t]of this.refs)e.push(t.describe());return e}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(e){return this.toArray().reduce((t,n)=>t.concat(P.isRef(n)?e(n):n),[])}add(e){P.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){P.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){let e=new L;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,t){let n=this.clone();return e.list.forEach(e=>n.add(e)),e.refs.forEach(e=>n.add(e)),t.list.forEach(e=>n.delete(e)),t.refs.forEach(e=>n.delete(e)),n}}function F(){return(F=Object.assign||function(e){for(var t=1;t{this.typeError(d.notType)}),this.type=(null==e?void 0:e.type)||"mixed",this.spec=F({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},null==e?void 0:e.spec)}get _type(){return this.type}_typeCheck(e){return!0}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;let t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeError=this._typeError,t._whitelistError=this._whitelistError,t._blacklistError=this._blacklistError,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.exclusiveTests=F({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=r(F({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=t,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=e.clone(),n=F({},this.spec,t.spec);return t.spec=n,t._typeError||(t._typeError=this._typeError),t._whitelistError||(t._whitelistError=this._whitelistError),t._blacklistError||(t._blacklistError=this._blacklistError),t._whitelist=this._whitelist.merge(e._whitelist,e._blacklist),t._blacklist=this._blacklist.merge(e._blacklist,e._whitelist),t.tests=this.tests,t.exclusiveTests=this.exclusiveTests,t.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),t.transforms=[...this.transforms,...t.transforms],t}isType(e){return!!this.spec.nullable&&null===e||this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let n=t.conditions;(t=t.clone()).conditions=[],t=(t=n.reduce((t,n)=>n.resolve(t,e),t)).resolve(e)}return t}cast(e,t={}){let n=this.resolve(F({value:e},t)),r=n._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==n.isType(r)){let i=c(e),o=c(r);throw TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${n._type}". - -attempted value: ${i} -`+(o!==i?`result of cast: ${o}`:""))}return r}_cast(e,t){let n=void 0===e?e:this.transforms.reduce((t,n)=>n.call(this,t,e,this),e);return void 0===n&&(n=this.getDefault()),n}_validate(e,t={},n){let{sync:r,path:i,from:o=[],originalValue:a=e,strict:s=this.spec.strict,abortEarly:l=this.spec.abortEarly}=t,u=e;s||(u=this._cast(u,F({assert:!1},t)));let c={value:u,path:i,options:t,originalValue:a,schema:this,label:this.spec.label,sync:r,from:o},d=[];this._typeError&&d.push(this._typeError);let f=[];this._whitelistError&&f.push(this._whitelistError),this._blacklistError&&f.push(this._blacklistError),C({args:c,value:u,path:i,sync:r,tests:d,endEarly:l},e=>{if(e)return void n(e,u);C({tests:this.tests.concat(f),args:c,path:i,sync:r,value:u,endEarly:l},n)})}validate(e,t,n){let r=this.resolve(F({},t,{value:e}));return"function"==typeof n?r._validate(e,t,n):new Promise((n,i)=>r._validate(e,t,(e,t)=>{e?i(e):n(t)}))}validateSync(e,t){let n;return this.resolve(F({},t,{value:e}))._validate(e,F({},t,{sync:!0}),(e,t)=>{if(e)throw e;n=t}),n}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(S.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(S.isError(e))return!1;throw e}}_getDefault(){let e=this.spec.default;return null==e?e:"function"==typeof e?e.call(this):r(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){return 0==arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){let t=this.clone();return t.spec.strict=e,t}_isPresent(e){return null!=e}defined(e=d.defined){return this.test({message:e,name:"defined",exclusive:!0,test:e=>void 0!==e})}required(e=d.required){return this.clone({presence:"required"}).withMutation(t=>t.test({message:e,name:"required",exclusive:!0,test(e){return this.schema._isPresent(e)}}))}notRequired(){let e=this.clone({presence:"optional"});return e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e}nullable(e=!0){return this.clone({nullable:!1!==e})}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(void 0===(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]}).message&&(t.message=d.default),"function"!=typeof t.test)throw TypeError("`test` is a required parameters");let n=this.clone(),r=R(t),i=t.exclusive||t.name&&!0===n.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(n.exclusiveTests[t.name]=!!t.exclusive),n.tests=n.tests.filter(e=>e.OPTIONS.name!==t.name||!i&&e.OPTIONS.test!==r.OPTIONS.test),n.tests.push(r),n}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let n=this.clone(),r=j(e).map(e=>new P(e));return r.forEach(e=>{e.isSibling&&n.deps.push(e.key)}),n.conditions.push(new w(r,t)),n}typeError(e){let t=this.clone();return t._typeError=R({message:e,name:"typeError",test(e){return!!(void 0===e||this.schema.isType(e))||this.createError({params:{type:this.schema._type}})}}),t}oneOf(e,t=d.oneOf){let n=this.clone();return e.forEach(e=>{n._whitelist.add(e),n._blacklist.delete(e)}),n._whitelistError=R({message:t,name:"oneOf",test(e){if(void 0===e)return!0;let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}notOneOf(e,t=d.notOneOf){let n=this.clone();return e.forEach(e=>{n._blacklist.add(e),n._whitelist.delete(e)}),n._blacklistError=R({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(){let e=this.clone(),{label:t,meta:n}=e.spec,r={meta:n,label:t,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map(e=>({name:e.OPTIONS.name,params:e.OPTIONS.params})).filter((e,t,n)=>n.findIndex(t=>t.name===e.name)===t)};return r}}for(let e of(z.prototype.__isYupSchema__=!0,["validate","validateSync"]))z.prototype[`${e}At`]=function(t,n,r={}){let{parent:i,parentPath:o,schema:a}=function(e,t,n,r=n){let i,o,a;return t?((0,T.forEach)(t,(s,l,u)=>{let c=l?D(s):s;if((e=e.resolve({context:r,parent:i,value:n})).innerType){let r=u?parseInt(c,10):0;if(n&&r>=n.length)throw Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[r],e=e.innerType}if(!u){if(!e.fields||!e.fields[c])throw Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e._type}")`);i=n,n=n&&n[c],e=e.fields[c]}o=c,a=l?"["+s+"]":"."+s}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}(this,t,n,r.context);return a[e](i&&i[o],F({},r,{parent:i,path:t}))};for(let e of["equals","is"])z.prototype[e]=z.prototype.oneOf;for(let e of["not","nope"])z.prototype[e]=z.prototype.notOneOf;z.prototype.optional=z.prototype.notRequired,z.prototype;var V=e=>null==e;let Z=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,I=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,B=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,H=e=>V(e)||e===e.trim(),U=({}).toString();function W(){return new q}class q extends z{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform(function(e){if(this.isType(e)||Array.isArray(e))return e;let t=null!=e&&e.toString?e.toString():e;return t===U?e:t})})}_typeCheck(e){return e instanceof String&&(e=e.valueOf()),"string"==typeof e}_isPresent(e){return super._isPresent(e)&&!!e.length}length(e,t=f.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return V(t)||t.length===this.resolve(e)}})}min(e,t=f.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return V(t)||t.length>=this.resolve(e)}})}max(e,t=f.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},test(t){return V(t)||t.length<=this.resolve(e)}})}matches(e,t){let n,r,i=!1;return t&&("object"==typeof t?{excludeEmptyString:i=!1,message:n,name:r}=t:n=t),this.test({name:r||"matches",message:n||f.matches,params:{regex:e},test:t=>V(t)||""===t&&i||-1!==t.search(e)})}email(e=f.email){return this.matches(Z,{name:"email",message:e,excludeEmptyString:!0})}url(e=f.url){return this.matches(I,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=f.uuid){return this.matches(B,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=f.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:H})}lowercase(e=f.lowercase){return this.transform(e=>V(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>V(e)||e===e.toLowerCase()})}uppercase(e=f.uppercase){return this.transform(e=>V(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>V(e)||e===e.toUpperCase()})}}W.prototype=q.prototype;let $=e=>e!=+e;function K(){return new Y}class Y extends z{constructor(){super({type:"number"}),this.withMutation(()=>{this.transform(function(e){let t=e;if("string"==typeof t){if(""===(t=t.replace(/\s/g,"")))return NaN;t=+t}return this.isType(t)?t:parseFloat(t)})})}_typeCheck(e){return e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&!$(e)}min(e,t=h.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return V(t)||t>=this.resolve(e)}})}max(e,t=h.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return V(t)||t<=this.resolve(e)}})}lessThan(e,t=h.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},test(t){return V(t)||tthis.resolve(e)}})}positive(e=h.positive){return this.moreThan(0,e)}negative(e=h.negative){return this.lessThan(0,e)}integer(e=h.integer){return this.test({name:"integer",message:e,test:e=>V(e)||Number.isInteger(e)})}truncate(){return this.transform(e=>V(e)?e:0|e)}round(e){var t;let n=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===n.indexOf(e.toLowerCase()))throw TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(t=>V(t)?t:Math[e](t))}}K.prototype=Y.prototype;var G=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let X=new Date(""),J=e=>"[object Date]"===Object.prototype.toString.call(e);function Q(){return new ee}class ee extends z{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(e){return this.isType(e)?e:isNaN(e=function(e){var t,n,r=[1,4,5,6,7,10,11],i=0;if(n=G.exec(e)){for(var o,a=0;o=r[a];++a)n[o]=+n[o]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,n[7]=n[7]?String(n[7]).substr(0,3):0,(void 0===n[8]||""===n[8])&&(void 0===n[9]||""===n[9])?t=+new Date(n[1],n[2],n[3],n[4],n[5],n[6],n[7]):("Z"!==n[8]&&void 0!==n[9]&&(i=60*n[10]+n[11],"+"===n[9]&&(i=0-i)),t=Date.UTC(n[1],n[2],n[3],n[4],n[5]+i,n[6],n[7]))}else t=Date.parse?Date.parse(e):NaN;return t}(e))?X:new Date(e)})})}_typeCheck(e){return J(e)&&!isNaN(e.getTime())}prepareParam(e,t){let n;if(P.isRef(e))n=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);n=r}return n}min(e,t=p.min){let n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(e){return V(e)||e>=this.resolve(n)}})}max(e,t=p.max){let n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(e){return V(e)||e<=this.resolve(n)}})}}ee.INVALID_DATE=X,Q.prototype=ee.prototype,Q.INVALID_DATE=X;var et=n(57370),en=n.n(et),er=n(96009),ei=n.n(er),eo=n(19950),ea=n.n(eo),es=n(95159),el=n.n(es);function eu(e,t){let n=1/0;return e.some((e,r)=>{var i;if((null==(i=t.path)?void 0:i.indexOf(e))!==-1)return n=r,!0}),n}function ec(e){return(t,n)=>eu(e,t)-eu(e,n)}function ed(){return(ed=Object.assign||function(e){for(var t=1;t"[object Object]"===Object.prototype.toString.call(e),eh=ec([]);class ep extends z{constructor(e){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=eh,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform(function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null}),e&&this.shape(e)})}_typeCheck(e){return ef(e)||"function"==typeof e}_cast(e,t={}){var n;let r=super._cast(e,t);if(void 0===r)return this.getDefault();if(!this._typeCheck(r))return r;let i=this.fields,o=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,a=this._nodes.concat(Object.keys(r).filter(e=>-1===this._nodes.indexOf(e))),s={},l=ed({},t,{parent:s,__validating:t.__validating||!1}),u=!1;for(let e of a){let n=i[e],a=x()(r,e);if(n){let i;let o=r[e];l.path=(t.path?`${t.path}.`:"")+e;let a="spec"in(n=n.resolve({value:o,context:t.context,parent:s}))?n.spec:void 0,c=null==a?void 0:a.strict;if(null==a?void 0:a.strip){u=u||e in r;continue}void 0!==(i=t.__validating&&c?r[e]:n.cast(r[e],l))&&(s[e]=i)}else a&&!o&&(s[e]=r[e]);s[e]!==r[e]&&(u=!0)}return u?s:r}_validate(e,t={},n){let r=[],{sync:i,from:o=[],originalValue:a=e,abortEarly:s=this.spec.abortEarly,recursive:l=this.spec.recursive}=t;o=[{schema:this,value:a},...o],t.__validating=!0,t.originalValue=a,t.from=o,super._validate(e,t,(e,u)=>{if(e){if(!S.isError(e)||s)return void n(e,u);r.push(e)}if(!l||!ef(u)){n(r[0]||null,u);return}a=a||u,C({sync:i,tests:this._nodes.map(e=>(n,r)=>{let i=-1===e.indexOf(".")?(t.path?`${t.path}.`:"")+e:`${t.path||""}["${e}"]`,s=this.fields[e];if(s&&"validate"in s){s.validate(u[e],ed({},t,{path:i,from:o,strict:!0,parent:u,originalValue:a[e]}),r);return}r(null)}),value:u,errors:r,endEarly:s,sort:this._sortErrors,path:t.path},n)})}clone(e){let t=super.clone(e);return t.fields=ed({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),n=t.fields;for(let[e,t]of Object.entries(this.fields)){let r=n[e];void 0===r?n[e]=t:r instanceof z&&t instanceof z&&(n[e]=t.concat(r))}return t.withMutation(()=>t.shape(n,this._excludedEdges))}getDefaultFromShape(){let e={};return this._nodes.forEach(t=>{let n=this.fields[t];e[t]="default"in n?n.getDefault():void 0}),e}_getDefault(){return"default"in this.spec?super._getDefault():this._nodes.length?this.getDefaultFromShape():void 0}shape(e,t=[]){let n=this.clone(),r=Object.assign(n.fields,e);return n.fields=r,n._sortErrors=ec(Object.keys(r)),t.length&&(Array.isArray(t[0])||(t=[t]),n._excludedEdges=[...n._excludedEdges,...t]),n._nodes=function(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([e,t])=>`${e}-${t}`));function o(e,t){let o=(0,T.split)(e)[0];r.add(o),i.has(`${t}-${o}`)||n.push([t,o])}for(let t in e)if(x()(e,t)){let n=e[t];r.add(t),P.isRef(n)&&n.isSibling?o(n.path,t):b(n)&&"deps"in n&&n.deps.forEach(e=>o(e,t))}return el().array(Array.from(r),n).reverse()}(r,n._excludedEdges),n}pick(e){let t={};for(let n of e)this.fields[n]&&(t[n]=this.fields[n]);return this.clone().withMutation(e=>(e.fields={},e.shape(t)))}omit(e){let t=this.clone(),n=t.fields;for(let r of(t.fields={},e))delete n[r];return t.withMutation(()=>t.shape(n))}from(e,t,n){let r=(0,T.getter)(e,!0);return this.transform(i=>{if(null==i)return i;let o=i;return x()(i,e)&&(o=ed({},i),n||delete o[e],o[t]=r(i)),o})}noUnknown(e=!0,t=m.noUnknown){"string"==typeof e&&(t=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){let n;if(null==t)return!0;let r=(n=Object.keys(this.schema.fields),Object.keys(t).filter(e=>-1===n.indexOf(e)));return!e||0===r.length||this.createError({params:{unknown:r.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(e=!0,t=m.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>t&&ea()(t,(t,n)=>e(n)))}camelCase(){return this.transformKeys(ei())}snakeCase(){return this.transformKeys(en())}constantCase(){return this.transformKeys(e=>en()(e).toUpperCase())}describe(){let e=super.describe();return e.fields=M()(this.fields,e=>e.describe()),e}}function em(e){return new ep(e)}em.prototype=ep.prototype},44868:function(e,t,n){"use strict";var r,i,o=Object.create,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},f={};((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(f,{Animated:()=>x,AnimatedArray:()=>O,AnimatedObject:()=>C,AnimatedString:()=>k,AnimatedValue:()=>w,createHost:()=>V,getAnimated:()=>v,getAnimatedType:()=>A,getPayload:()=>y,isAnimated:()=>m,setAnimated:()=>g}),e.exports=d(a({},"__esModule",{value:!0}),f);var h=n(6901),p=Symbol.for("Animated:node"),m=e=>!!e&&e[p]===e,v=e=>e&&e[p],g=(e,t)=>(0,h.defineHidden)(e,p,t),y=e=>e&&e[p]&&e[p].getPayload(),x=class{constructor(){g(this,this)}getPayload(){return this.payload||[]}},b=n(6901),w=class extends x{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,b.is.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new w(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return b.is.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,b.is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},j=n(6901),k=class extends w{constructor(e){super(0),this._string=null,this._toString=(0,j.createInterpolator)({output:[e,e]})}static create(e){return new k(e)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(e){if(j.is.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=(0,j.createInterpolator)({output:[this.getValue(),e]})),this._value=0,super.reset()}},E=n(6901),S=n(6901),_={dependencies:null},C=class extends x{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return(0,S.eachProp)(this.source,(n,r)=>{m(n)?t[r]=n.getValue(e):(0,S.hasFluidValue)(n)?t[r]=(0,S.getFluidValue)(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&(0,S.each)(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return(0,S.eachProp)(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){_.dependencies&&(0,S.hasFluidValue)(e)&&_.dependencies.add(e);let t=y(e);t&&(0,S.each)(t,e=>this.add(e))}},O=class extends C{constructor(e){super(e)}static create(e){return new O(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(M)),!0)}};function M(e){return((0,E.isAnimatedString)(e)?k:w).create(e)}var T=n(6901);function A(e){let t=v(e);return t?t.constructor:T.is.arr(e)?O:(0,T.isAnimatedString)(e)?k:w}var P=n(6901),N=(i=null!=(r=n(2784))?o(u(r)):{},d(r&&r.__esModule?i:a(i,"default",{value:r,enumerable:!0}),r)),R=n(2784),D=n(6901),L=(e,t)=>{let n=!D.is.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,R.forwardRef)((r,i)=>{var o;let a;let s=(0,R.useRef)(null),l=n&&(0,R.useCallback)(e=>{s.current=(i&&(D.is.fun(i)?i(e):i.current=e),e)},[i]),[u,c]=(o=r,a=new Set,_.dependencies=a,o.style&&(o={...o,style:t.createAnimatedStyle(o.style)}),o=new C(o),_.dependencies=null,[o,a]),d=(0,D.useForceUpdate)(),f=()=>{let e=s.current;(!n||e)&&(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))===!1&&d()},h=new F(f,c),p=(0,R.useRef)();(0,D.useIsomorphicLayoutEffect)(()=>(p.current=h,(0,D.each)(c,e=>(0,D.addFluidObserver)(e,h)),()=>{p.current&&((0,D.each)(p.current.deps,e=>(0,D.removeFluidObserver)(e,p.current)),D.raf.cancel(p.current.update))})),(0,R.useEffect)(f,[]),(0,D.useOnce)(()=>()=>{let e=p.current;(0,D.each)(e.deps,t=>(0,D.removeFluidObserver)(t,e))});let m=t.getComponentProps(u.getValue());return N.createElement(e,{...m,ref:l})})},F=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&D.raf.write(this.update)}},z=Symbol.for("AnimatedComponent"),V=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new C(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{let t=Z(e)||"Anonymous";return(e=P.is.str(e)?o[e]||(o[e]=L(e,i)):e[z]||(e[z]=L(e,i))).displayName=`Animated(${t})`,e};return(0,P.eachProp)(e,(t,n)=>{P.is.arr(e)&&(n=Z(t)),o[n]=o(t)}),{animated:o}},Z=e=>P.is.str(e)?e:e&&P.is.str(e.displayName)?e.displayName:P.is.fun(e)&&e.name||null},22360:function(e,t,n){"use strict";var r,i,o=Object.create,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},f=(e,t,n)=>(n=null!=e?o(u(e)):{},d(!t&&e&&e.__esModule?n:a(n,"default",{value:e,enumerable:!0}),e)),h={};((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(h,{BailSignal:()=>J,Controller:()=>ej,FrameValue:()=>ei,Globals:()=>tl.Globals,Interpolation:()=>tn,Spring:()=>e5,SpringContext:()=>eN,SpringRef:()=>eL,SpringValue:()=>ed,Trail:()=>e8,Transition:()=>e7,config:()=>F,createInterpolator:()=>tc.createInterpolator,easings:()=>tc.easings,inferTo:()=>E,interpolate:()=>ts,to:()=>ta,update:()=>tu,useChain:()=>T,useInView:()=>e3,useIsomorphicLayoutEffect:()=>tc.useIsomorphicLayoutEffect,useReducedMotion:()=>tc.useReducedMotion,useResize:()=>e0,useScroll:()=>eJ,useSpring:()=>ez,useSpringRef:()=>eI,useSpringValue:()=>eH,useSprings:()=>eF,useTrail:()=>eW,useTransition:()=>eY}),e.exports=d(a({},"__esModule",{value:!0}),h);var p=n(6901),m=n(6901);function v(e,...t){return m.is.fun(e)?e(...t):e}var g=(e,t)=>!0===e||!!(t&&e&&(m.is.fun(e)?e(t):(0,m.toArray)(e).includes(t))),y=(e,t)=>m.is.obj(e)?t&&e[t]:e,x=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,b=e=>e,w=(e,t=b)=>{let n=j;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);m.is.und(n)||(r[i]=n)}return r},j=["config","onProps","onStart","onChange","onPause","onResume","onRest"],k={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function E(e){let t=function(e){let t={},n=0;if((0,m.eachProp)(e,(e,r)=>{k[r]||(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return(0,m.eachProp)(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function S(e){return e=(0,m.getFluidValue)(e),m.is.arr(e)?e.map(S):(0,m.isAnimatedString)(e)?m.Globals.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function _(e){for(let t in e)return!0;return!1}function C(e){return m.is.fun(e)||m.is.arr(e)&&m.is.obj(e[0])}function O(e,t){e.ref?.delete(e),t?.delete(e)}function M(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}function T(e,t,n=1e3){(0,p.useIsomorphicLayoutEffect)(()=>{if(t){let r=0;(0,p.each)(e,(e,i)=>{let o=e.current;if(o.length){let a=n*t[i];isNaN(a)?a=r:r=a,(0,p.each)(o,e=>{(0,p.each)(e.queue,e=>{let t=e.delay;e.delay=e=>a+v(t||0,e)})}),e.start()}})}else{let t=Promise.resolve();(0,p.each)(e,e=>{let n=e.current;if(n.length){let r=n.map(e=>{let t=e.queue;return e.queue=[],t});t=t.then(()=>((0,p.each)(n,(e,t)=>(0,p.each)(r[t]||[],t=>e.queue.push(t))),Promise.all(e.start())))}})}})}var A=n(6901),P=n(2784),N=n(6901),R=n(6901),D=n(25447),L=n(6901),F={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},z={...F.default,mass:1,damping:1,easing:L.easings.linear,clamp:!1},V=class{constructor(){this.velocity=0,Object.assign(this,z)}};function Z(e,t){if(L.is.und(t.decay)){let n=!L.is.und(t.tension)||!L.is.und(t.friction);!n&&L.is.und(t.frequency)&&L.is.und(t.damping)&&L.is.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var I=[],B=class{constructor(){this.changed=!1,this.values=I,this.toValues=null,this.fromValues=I,this.config=new V,this.immediate=!1}},H=n(6901);function U(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{let l,u,c=g(n.cancel??r?.cancel,t);if(c)h();else{H.is.und(n.pause)||(i.paused=g(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||g(e,t)),l=v(n.delay||0,t),e?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),l=u.time-H.raf.now()}function f(){l>0&&!H.Globals.skipAnimation?(i.delayed=!0,u=H.raf.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(u)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{o.start({...n,callId:e,cancel:c},a)}catch(e){s(e)}}})}var W=n(6901),q=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?Y(e.get()):t.every(e=>e.noop)?$(e.get()):K(e.get(),t.every(e=>e.finished)),$=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),K=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Y=e=>({value:e,cancelled:!0,finished:!1});function G(e,t,n,r){let{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;let u=w(t,(e,t)=>"onRest"===t?void 0:e),c,d,f=new Promise((e,t)=>(c=e,d=t)),h=e=>{let t=i<=(n.cancelId||0)&&Y(r)||i!==n.asyncId&&K(r,!1);if(t)throw e.result=t,d(e),e},p=(e,t)=>{let o=new J,a=new Q;return(async()=>{if(W.Globals.skipAnimation)throw X(n),a.result=K(r,!1),d(a),a;h(o);let s=W.is.obj(e)?{...e}:{...t,to:e};s.parentId=i,(0,W.eachProp)(u,(e,t)=>{W.is.und(s[t])&&(s[t]=e)});let l=await r.start(s);return h(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()},m;if(W.Globals.skipAnimation)return X(n),K(r,!1);try{let t;t=W.is.arr(e)?(async e=>{for(let t of e)await p(t)})(e):Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([t.then(c),f]),m=K(r.get(),!0,!1)}catch(e){if(e instanceof J)m=e.result;else if(e instanceof Q)m=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return W.is.fun(a)&&W.raf.batchedUpdates(()=>{a(m,r,r.item)}),m})():l}function X(e,t){(0,W.flush)(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var J=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Q=class extends Error{constructor(){super("SkipAnimationSignal")}},ee=n(6901),et=n(25447),en=e=>e instanceof ei,er=1,ei=class extends ee.FluidValue{constructor(){super(...arguments),this.id=er++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=(0,et.getAnimated)(this);return e&&e.getValue()}to(...e){return ee.Globals.to(this,e)}interpolate(...e){return(0,ee.deprecateInterpolate)(),ee.Globals.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){(0,ee.callFluidObservers)(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||ee.frameLoop.sort(this),(0,ee.callFluidObservers)(this,{type:"priority",parent:this,priority:e})}},eo=Symbol.for("SpringPhase"),ea=e=>(1&e[eo])>0,es=e=>(2&e[eo])>0,el=e=>(4&e[eo])>0,eu=(e,t)=>t?e[eo]|=3:e[eo]&=-3,ec=(e,t)=>t?e[eo]|=4:e[eo]&=-5,ed=class extends ei{constructor(e,t){if(super(),this.animation=new B,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!R.is.und(e)||!R.is.und(t)){let n=R.is.obj(e)?{...e}:{...t,from:e};R.is.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(es(this)||this._state.asyncTo)||el(this)}get goal(){return(0,R.getFluidValue)(this.animation.to)}get velocity(){let e=(0,D.getAnimated)(this);return e instanceof D.AnimatedValue?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return ea(this)}get isAnimating(){return es(this)}get isPaused(){return el(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:o}=r,a=(0,D.getPayload)(r.to);!a&&(0,R.hasFluidValue)(r.to)&&(i=(0,R.toArray)((0,R.getFluidValue)(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==D.AnimatedString?1:a?a[l].lastPosition:i[l],c=r.immediate,d=u;if(!c){if(d=s.lastPosition,o.tension<=0){s.done=!0;return}let t=s.elapsedTime+=e,n=r.fromValues[l],i=null!=s.v0?s.v0:s.v0=R.is.arr(o.velocity)?o.velocity[l]:o.velocity,a,f=o.precision||(n==u?.005:Math.min(1,.001*Math.abs(u-n)));if(R.is.und(o.duration)){if(o.decay){let e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*t);d=n+i/(1-e)*(1-r),c=Math.abs(s.lastPosition-d)<=f,a=i*r}else{a=null==s.lastVelocity?i:s.lastVelocity;let t=o.restVelocity||f/10,r=o.clamp?0:o.bounce,l=!R.is.und(r),h=n==u?s.v0>0:nt)&&(c=Math.abs(u-d)<=f));++e){l&&(d==u||d>u==h)&&(a=-a*r,d=u);let e=(-(1e-6*o.tension)*(d-u)+-(.001*o.friction)*a)/o.mass;a+=1*e,d+=1*a}}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,s.durationProgress>0&&(s.elapsedTime=o.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(r=(o.progress||0)+t/this._memoizedDuration)>1?1:r<0?0:r,s.durationProgress=r),a=((d=n+o.easing(r)*(u-n))-s.lastPosition)/e,c=1==r}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}a&&!a[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,o.round)&&(n=!0)});let s=(0,D.getAnimated)(this),l=s.getValue();if(t){let e=(0,R.getFluidValue)(r.to);(l!==e||n)&&!o.decay?(s.setValue(e),this._onChange(e)):n&&o.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return R.raf.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(es(this)){let{to:e,config:t}=this.animation;R.raf.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return R.is.und(e)?(n=this.queue||[],this.queue=[]):n=[R.is.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>q(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),X(this._state,e&&this._lastCallId),R.raf.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:n,from:r}=e;(null==(n=R.is.obj(n)?n[t]:n)||C(n))&&(n=void 0),null==(r=R.is.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return ea(this)||(e.reverse&&([n,r]=[r,n]),r=(0,R.getFluidValue)(r),R.is.und(r)?(0,D.getAnimated)(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,w(e,(e,t)=>/^on/.test(t)?y(e,n):e)),eg(this,e,"onProps"),ey(this,"onProps",e,this);let i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let o=this._state;return U(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{el(this)||(ec(this,!0),(0,R.flushCalls)(o.pauseQueue),ey(this,"onPause",K(this,ef(this,this.animation.to)),this))},resume:()=>{el(this)&&(ec(this,!1),es(this)&&this._resume(),(0,R.flushCalls)(o.resumeQueue),ey(this,"onResume",K(this,ef(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=eh(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Y(this));let r=!R.is.und(e.to),i=!R.is.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(Y(this));this._lastToId=t.callId}let{key:o,defaultProps:a,animation:s}=this,{to:l,from:u}=s,{to:c=l,from:d=u}=e;i&&!r&&(!t.default||R.is.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!(0,R.isEqual)(d,u);f&&(s.from=d),d=(0,R.getFluidValue)(d);let h=!(0,R.isEqual)(c,l);h&&this._focus(c);let p=C(t.to),{config:m}=s,{decay:y,velocity:x}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(Z(n={...n},t),t={...n,...t}),Z(e,t),Object.assign(e,t),z)null==e[r]&&(e[r]=z[r]);let{frequency:r,damping:i}=e,{mass:o}=e;L.is.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r)}(m,v(t.config,o),t.config!==a.config?v(a.config,o):void 0);let b=(0,D.getAnimated)(this);if(!b||R.is.und(c))return n(K(this,!0));let w=R.is.und(t.reset)?i&&!t.default:!R.is.und(d)&&g(t.reset,o),j=w?d:this.get(),k=S(c),E=R.is.num(k)||R.is.arr(k)||(0,R.isAnimatedString)(k),_=!p&&(!E||g(a.immediate||t.immediate,o));if(h){let e=(0,D.getAnimatedType)(c);if(e!==b.constructor){if(_)b=this._set(k);else throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let O=b.constructor,M=(0,R.hasFluidValue)(c),T=!1;if(!M){let e=w||!ea(this)&&f;(h||e)&&(M=!(T=(0,R.isEqual)(S(j),k))),((0,R.isEqual)(s.immediate,_)||_)&&(0,R.isEqual)(m.decay,y)&&(0,R.isEqual)(m.velocity,x)||(M=!0)}if(T&&es(this)&&(s.changed&&!w?M=!0:M||this._stop(l)),!p&&((M||(0,R.hasFluidValue)(l))&&(s.values=b.getPayload(),s.toValues=(0,R.hasFluidValue)(c)?null:O==D.AnimatedString?[1]:(0,R.toArray)(k)),s.immediate==_||(s.immediate=_,_||w||this._set(l)),M)){let{onRest:e}=s;(0,R.each)(ev,e=>eg(this,t,e));let r=K(this,ef(this,l));(0,R.flushCalls)(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&R.raf.batchedUpdates(()=>{s.changed=!w,e?.(r,this),w?v(a.onRest,r):s.onStart?.(r,this)})}w&&this._set(j),p?n(G(t.to,t,this._state,this)):M?this._start():es(this)&&!h?this._pendingCalls.add(n):n($(j))}_focus(e){let t=this.animation;e!==t.to&&((0,R.getFluidObservers)(this)&&this._detach(),t.to=e,(0,R.getFluidObservers)(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;(0,R.hasFluidValue)(t)&&((0,R.addFluidObserver)(t,this),en(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;(0,R.hasFluidValue)(e)&&(0,R.removeFluidObserver)(e,this)}_set(e,t=!0){let n=(0,R.getFluidValue)(e);if(!R.is.und(n)){let e=(0,D.getAnimated)(this);if(!e||!(0,R.isEqual)(n,e.getValue())){let r=(0,D.getAnimatedType)(n);e&&e.constructor==r?e.setValue(n):(0,D.setAnimated)(this,r.create(n)),e&&R.raf.batchedUpdates(()=>{this._onChange(n,t)})}}return(0,D.getAnimated)(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,ey(this,"onStart",K(this,ef(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),v(this.animation.onChange,e,this)),v(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;(0,D.getAnimated)(this).reset((0,R.getFluidValue)(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),es(this)||(eu(this,!0),el(this)||this._resume())}_resume(){R.Globals.skipAnimation?this.finish():R.frameLoop.start(this)}_stop(e,t){if(es(this)){eu(this,!1);let n=this.animation;(0,R.each)(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),(0,R.callFluidObservers)(this,{type:"idle",parent:this});let r=t?Y(this.get()):K(this.get(),ef(this,e??n.to));(0,R.flushCalls)(this._pendingCalls,r),n.changed&&(n.changed=!1,ey(this,"onRest",r,this))}}};function ef(e,t){let n=S(t),r=S(e.get());return(0,R.isEqual)(r,n)}function eh(e,t=e.loop,n=e.to){let r=v(t);if(r){let i=!0!==r&&E(r),o=(i||e).reverse,a=!i||i.reset;return ep({...e,loop:t,default:!1,pause:void 0,to:!o||C(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function ep(e){let{to:t,from:n}=e=E(e),r=new Set;return R.is.obj(t)&&em(t,r),R.is.obj(n)&&em(n,r),e.keys=r.size?Array.from(r):null,e}function em(e,t){(0,R.eachProp)(e,(e,n)=>null!=e&&t.add(n))}var ev=["onStart","onRest","onChange","onPause","onResume"];function eg(e,t,n){e.animation[n]=t[n]!==x(t,n)?y(t[n],e.key):void 0}function ey(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var ex=n(6901),eb=["onStart","onChange","onRest"],ew=1,ej=class{constructor(e,t){this.id=ew++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];ex.is.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(ep(e)),this}start(e){let{queue:t}=this;return e?t=(0,ex.toArray)(e).map(ep):this.queue=[],this._flush?this._flush(this,t):(eM(this,t),ek(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;(0,ex.each)((0,ex.toArray)(t),t=>n[t].stop(!!e))}else X(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(ex.is.und(e))this.start({pause:!0});else{let t=this.springs;(0,ex.each)((0,ex.toArray)(e),e=>t[e].pause())}return this}resume(e){if(ex.is.und(e))this.start({pause:!1});else{let t=this.springs;(0,ex.each)((0,ex.toArray)(e),e=>t[e].resume())}return this}each(e){(0,ex.eachProp)(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,(0,ex.flush)(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&(0,ex.flush)(t,([e,t])=>{t.value=a,e(t,this,this._item)}),o&&(this._started=!1,(0,ex.flush)(n,([e,t])=>{t.value=a,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}ex.raf.onFrame(this._onFrame)}};function ek(e,t){return Promise.all(t.map(t=>eE(e,t))).then(t=>q(e,t))}async function eE(e,t,n){let{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=ex.is.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);let c=ex.is.arr(i)||ex.is.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):(0,ex.each)(eb,n=>{let r=t[n];if(ex.is.fun(r)){let i=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}});let d=e._state;!d.paused===t.pause?(d.paused=t.pause,(0,ex.flushCalls)(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let f=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),h=!0===t.cancel||!0===x(t,"cancel");(c||h&&d.asyncId)&&f.push(U(++e._lastAsyncId,{props:t,state:d,actions:{pause:ex.noop,resume:ex.noop,start(t,n){h?(X(d,e._lastAsyncId),n(Y(e))):(t.onRest=s,n(G(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=q(e,await Promise.all(f));if(a&&p.finished&&!(n&&p.noop)){let n=eh(t,a,i);if(n)return eM(e,[n]),eE(e,n,!0)}return l&&ex.raf.batchedUpdates(()=>l(p,e,e.item)),p}function eS(e,t){let n={...e.springs};return t&&(0,ex.each)((0,ex.toArray)(t),e=>{ex.is.und(e.keys)&&(e=ep(e)),ex.is.obj(e.to)||(e={...e,to:void 0}),eO(n,e,e=>eC(e))}),e_(e,n),n}function e_(e,t){(0,ex.eachProp)(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,(0,ex.addFluidObserver)(t,e))})}function eC(e,t){let n=new ed;return n.key=e,t&&(0,ex.addFluidObserver)(n,t),n}function eO(e,t,n){t.keys&&(0,ex.each)(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function eM(e,t){(0,ex.each)(t,t=>{eO(e.springs,t,t=>eC(t,e))})}var eT=f(n(2784)),eA=n(2784),eP=n(6901),eN=({children:e,...t})=>{let n=(0,eA.useContext)(eR),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=(0,eP.useMemoOne)(()=>({pause:r,immediate:i}),[r,i]);let{Provider:o}=eR;return eT.createElement(o,{value:t},e)},eR=(Object.assign(eN,eT.createContext({})),eN.Provider._context=eN,eN.Consumer._context=eN,eN);eN.Provider=eR.Provider,eN.Consumer=eR.Consumer;var eD=n(6901),eL=()=>{let e=[],t=function(t){(0,eD.deprecateDirectCall)();let r=[];return(0,eD.each)(e,(e,i)=>{if(eD.is.und(t))r.push(e.start());else{let o=n(t,e,i);o&&r.push(e.start(o))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return(0,eD.each)(e,e=>e.pause(...arguments)),this},t.resume=function(){return(0,eD.each)(e,e=>e.resume(...arguments)),this},t.set=function(t){(0,eD.each)(e,(e,n)=>{let r=eD.is.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return(0,eD.each)(e,(e,r)=>{if(eD.is.und(t))n.push(e.start());else{let i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return(0,eD.each)(e,e=>e.stop(...arguments)),this},t.update=function(t){return(0,eD.each)(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return eD.is.fun(e)?e(n,t):e};return t._getProps=n,t};function eF(e,t,n){let r=N.is.fun(t)&&t;r&&!n&&(n=[]);let i=(0,P.useMemo)(()=>r||3==arguments.length?eL():void 0,[]),o=(0,P.useRef)(0),a=(0,N.useForceUpdate)(),s=(0,P.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=eS(e,t);return!(o.current>0)||s.queue.length||Object.keys(n).some(t=>!e.springs[t])?new Promise(r=>{e_(e,n),s.queue.push(()=>{r(ek(e,t))}),a()}):ek(e,t)}}),[]),l=(0,P.useRef)([...s.ctrls]),u=[],c=(0,N.usePrev)(e)||0;function d(e,n){for(let i=e;i{(0,N.each)(l.current.slice(e,c),e=>{O(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,P.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=l.current.map((e,t)=>eS(e,u[t])),h=(0,P.useContext)(eN),p=(0,N.usePrev)(h),m=h!==p&&_(h);(0,N.useIsomorphicLayoutEffect)(()=>{o.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],(0,N.each)(e,e=>e())),(0,N.each)(l.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(M(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),(0,N.useOnce)(()=>()=>{(0,N.each)(s.ctrls,e=>e.stop(!0))});let v=f.map(e=>({...e}));return i?[v,i]:v}function ez(e,t){let n=A.is.fun(e),[[r],i]=eF(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}var eV=n(2784),eZ=()=>eL(),eI=()=>(0,eV.useState)(eZ)[0],eB=n(6901),eH=(e,t)=>{let n=(0,eB.useConstant)(()=>new ed(e,t));return(0,eB.useOnce)(()=>()=>{n.stop()}),n},eU=n(6901);function eW(e,t,n){let r=eU.is.fun(t)&&t;r&&!n&&(n=[]);let i=!0,o,a=eF(e,(e,n)=>{let a=r?r(e,n):t;return o=a.ref,i=i&&a.reverse,a},n||[{}]);if((0,eU.useIsomorphicLayoutEffect)(()=>{(0,eU.each)(a[1].current,(e,t)=>{let n=a[1].current[t+(i?1:-1)];if(M(e,o),e.ref){n&&e.update({to:n.springs});return}n?e.start({to:n.springs}):e.start()})},n),r||3==arguments.length){let e=o??a[1];return e._getProps=(t,n,r)=>{let i=eU.is.fun(t)?t(r,n):t;if(i){let t=e.current[r+(i.reverse?1:-1)];return t&&(i.to=t.springs),i}},a}return a[0]}var eq=f(n(2784)),e$=n(2784),eK=n(6901);function eY(e,t,n){let r=eK.is.fun(t)&&t,{reset:i,sort:o,trail:a=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=(0,e$.useMemo)(()=>r||3==arguments.length?eL():void 0,[]),h=(0,eK.toArray)(e),p=[],m=(0,e$.useRef)(null),g=i?null:m.current;(0,eK.useIsomorphicLayoutEffect)(()=>{m.current=p}),(0,eK.useOnce)(()=>((0,eK.each)(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{(0,eK.each)(m.current,e=>{e.expired&&clearTimeout(e.expirationId),O(e.ctrl,f),e.ctrl.stop(!0)})}));let y=function(e,{key:t,keys:n=t},r){if(null===n){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&"leave"!==n.phase&&!t.has(n));return n?(t.add(n),n.key):eG++})}return eK.is.und(n)?e:eK.is.fun(n)?e.map(n):(0,eK.toArray)(n)}(h,r?r():t,g),x=i&&m.current||[];(0,eK.useIsomorphicLayoutEffect)(()=>(0,eK.each)(x,({ctrl:e,item:t,key:n})=>{O(e,f),v(u,t,n)}));let b=[];if(g&&(0,eK.each)(g,(e,t)=>{e.expired?(clearTimeout(e.expirationId),x.push(e)):~(t=b[t]=y.indexOf(e.key))&&(p[t]=e)}),(0,eK.each)(h,(e,t)=>{p[t]||(p[t]={key:y[t],item:e,phase:"mount",ctrl:new ej},p[t].ctrl.item=e)}),b.length){let e=-1,{leave:n}=r?r():t;(0,eK.each)(b,(t,r)=>{let i=g[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}eK.is.fun(o)&&p.sort((e,t)=>o(e.item,t.item));let j=-a,k=(0,eK.useForceUpdate)(),S=w(t),C=new Map,T=(0,e$.useRef)(new Map),A=(0,e$.useRef)(!1);(0,eK.each)(p,(e,n)=>{let i=e.key,o=e.phase,u=r?r():t,f,h,p=v(u.delay||0,i);if("mount"==o)f=u.enter,h="enter";else{let e=0>y.indexOf(i);if("leave"!=o){if(e)f=u.leave,h="leave";else{if(!(f=u.update))return;h="update"}}else{if(e)return;f=u.enter,h="enter"}}if(f=v(f,e.item,n),!(f=eK.is.obj(f)?E(f):{to:f}).config){let t=d||S.config;f.config=v(t,e.item,n,h)}j+=a;let x={...S,delay:p+j,ref:c,immediate:u.immediate,reset:!1,...f};if("enter"==h&&eK.is.und(x.from)){let i=r?r():t,o=eK.is.und(i.initial)||g?i.from:i.initial;x.from=v(o,e.item,n)}let{onResolve:b}=x;x.onResolve=e=>{v(b,e);let t=m.current,n=t.find(e=>e.key===i);if(n&&!(e.cancelled&&"update"!=n.phase)&&n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){let t=v(s,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(k,r));return}}}e&&t.some(e=>e.expired)&&(T.current.delete(n),l&&(A.current=!0),k())}};let w=eS(e.ctrl,x);"leave"===h&&l?T.current.set(e,{phase:h,springs:w,payload:x}):C.set(e,{phase:h,springs:w,payload:x})});let P=(0,e$.useContext)(eN),N=(0,eK.usePrev)(P),R=P!==N&&_(P);(0,eK.useIsomorphicLayoutEffect)(()=>{R&&(0,eK.each)(p,e=>{e.ctrl.start({default:P})})},[P]),(0,eK.each)(C,(e,t)=>{if(T.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),(0,eK.useIsomorphicLayoutEffect)(()=>{(0,eK.each)(T.current.size?T.current:C,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),R&&"enter"==e&&r.start({default:P}),t&&(M(r,t.ref),(r.ref||f)&&!A.current?r.update(t):(r.start(t),A.current&&(A.current=!1)))})},i?void 0:n);let D=e=>eq.createElement(eq.Fragment,null,p.map((t,n)=>{let{springs:r}=C.get(t)||t.ctrl,i=e({...r},t.item,t,n);return i&&i.type?eq.createElement(i.type,{...i.props,key:eK.is.str(t.key)||eK.is.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[D,f]:D}var eG=1,eX=n(6901),eJ=({container:e,...t}={})=>{let[n,r]=ez(()=>({scrollX:0,scrollY:0,scrollXProgress:0,scrollYProgress:0,...t}),[]);return(0,eX.useIsomorphicLayoutEffect)(()=>{let t=(0,eX.onScroll)(({x:e,y:t})=>{r.start({scrollX:e.current,scrollXProgress:e.progress,scrollY:t.current,scrollYProgress:t.progress})},{container:e?.current||void 0});return()=>{(0,eX.each)(Object.values(n),e=>e.stop()),t()}},[]),n},eQ=n(6901),e0=({container:e,...t})=>{let[n,r]=ez(()=>({width:0,height:0,...t}),[]);return(0,eQ.useIsomorphicLayoutEffect)(()=>{let t=(0,eQ.onResize)(({width:e,height:t})=>{r.start({width:e,height:t,immediate:0===n.width.get()||0===n.height.get()})},{container:e?.current||void 0});return()=>{(0,eQ.each)(Object.values(n),e=>e.stop()),t()}},[]),n},e1=n(2784),e2=n(6901),e4={any:0,all:1};function e3(e,t){let[n,r]=(0,e1.useState)(!1),i=(0,e1.useRef)(),o=e2.is.fun(e)&&e,{to:a={},from:s={},...l}=o?o():{},u=o?t:e,[c,d]=ez(()=>({from:s,...l}),[]);return(0,e2.useIsomorphicLayoutEffect)(()=>{let e=i.current,{root:t,once:o,amount:l="any",...c}=u??{};if(!e||o&&n||typeof IntersectionObserver>"u")return;let f=new WeakMap,h=()=>(a&&d.start(a),r(!0),o?void 0:()=>{s&&d.start(s),r(!1)}),p=new IntersectionObserver(e=>{e.forEach(e=>{let t=f.get(e.target);if(!!t!==e.isIntersecting){if(e.isIntersecting){let t=h();e2.is.fun(t)?f.set(e.target,t):p.unobserve(e.target)}else t&&(t(),f.delete(e.target))}})},{root:t&&t.current||void 0,threshold:"number"==typeof l||Array.isArray(l)?l:e4[l],...c});return p.observe(e),()=>p.unobserve(e)},[u]),o?[i,c]:[i,n]}function e5({children:e,...t}){return e(ez(t))}var e6=n(6901);function e8({items:e,children:t,...n}){let r=eW(e.length,n);return e.map((e,n)=>{let i=t(e,n);return e6.is.fun(i)?i(r[n]):i})}function e7({items:e,children:t,...n}){return eY(e,n)(t)}var e9=n(6901),te=n(6901),tt=n(25447),tn=class extends ei{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=(0,te.createInterpolator)(...t);let n=this._get(),r=(0,tt.getAnimatedType)(n);(0,tt.setAnimated)(this,r.create(n))}advance(e){let t=this._get(),n=this.get();(0,te.isEqual)(t,n)||((0,tt.getAnimated)(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&ti(this._active)&&to(this)}_get(){let e=te.is.arr(this.source)?this.source.map(te.getFluidValue):(0,te.toArray)((0,te.getFluidValue)(this.source));return this.calc(...e)}_start(){this.idle&&!ti(this._active)&&(this.idle=!1,(0,te.each)((0,tt.getPayload)(this),e=>{e.done=!1}),te.Globals.skipAnimation?(te.raf.batchedUpdates(()=>this.advance()),to(this)):te.frameLoop.start(this))}_attach(){let e=1;(0,te.each)((0,te.toArray)(this.source),t=>{(0,te.hasFluidValue)(t)&&(0,te.addFluidObserver)(t,this),en(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){(0,te.each)((0,te.toArray)(this.source),e=>{(0,te.hasFluidValue)(e)&&(0,te.removeFluidObserver)(e,this)}),this._active.clear(),to(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=(0,te.toArray)(this.source).reduce((e,t)=>Math.max(e,(en(t)?t.priority:0)+1),0))}};function tr(e){return!1!==e.idle}function ti(e){return!e.size||Array.from(e).every(tr)}function to(e){e.idle||(e.idle=!0,(0,te.each)((0,tt.getPayload)(e),e=>{e.done=!0}),(0,te.callFluidObservers)(e,{type:"idle",parent:e}))}var ta=(e,...t)=>new tn(e,t),ts=(e,...t)=>((0,e9.deprecateInterpolate)(),new tn(e,t)),tl=n(6901);tl.Globals.assign({createStringInterpolator:tl.createStringInterpolator,to:(e,t)=>new tn(e,t)});var tu=tl.frameLoop.advance,tc=n(6901);r=n(8669),i=e.exports,d(h,r,"default"),i&&d(i,r,"default")},78476:function(e,t,n){"use strict";var r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,s=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},l={};s(l,{FluidValue:()=>eA,Globals:()=>u,addFluidObserver:()=>eN,callFluidObserver:()=>eM,callFluidObservers:()=>eT,clamp:()=>Q,colorToRgba:()=>ey,colors:()=>ee,createInterpolator:()=>ex,createStringInterpolator:()=>eW,defineHidden:()=>M,deprecateDirectCall:()=>eX,deprecateInterpolate:()=>eY,each:()=>P,eachProp:()=>N,easings:()=>ek,flush:()=>D,flushCalls:()=>z,frameLoop:()=>K,getFluidObservers:()=>eO,getFluidValue:()=>eC,hasFluidValue:()=>e_,hex3:()=>el,hex4:()=>eu,hex6:()=>ec,hex8:()=>ed,hsl:()=>ea,hsla:()=>es,is:()=>T,isAnimatedString:()=>eJ,isEqual:()=>A,isSSR:()=>V,noop:()=>O,onResize:()=>e6,onScroll:()=>ti,once:()=>e$,prefix:()=>eq,raf:()=>d,removeFluidObserver:()=>eR,rgb:()=>ei,rgba:()=>eo,setFluidGetter:()=>eP,toArray:()=>R,useConstant:()=>ta,useForceUpdate:()=>tf,useIsomorphicLayoutEffect:()=>tc,useMemoOne:()=>tp,useOnce:()=>tv,usePrev:()=>tx,useReducedMotion:()=>tw}),e.exports=((e,t,n,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of o(t))a.call(e,n)||void 0===n||r(e,n,{get:()=>t[n],enumerable:!(s=i(t,n))||s.enumerable});return e})(r({},"__esModule",{value:!0}),l);var u={};s(u,{assign:()=>H,colors:()=>Z,createStringInterpolator:()=>L,skipAnimation:()=>I,to:()=>F,willAdvance:()=>B});var c=_(),d=e=>j(e,c),f=_();d.write=e=>j(e,f);var h=_();d.onStart=e=>j(e,h);var p=_();d.onFrame=e=>j(e,p);var m=_();d.onFinish=e=>j(e,m);var v=[];d.setTimeout=(e,t)=>{let n=d.now()+t,r=()=>{let e=v.findIndex(e=>e.cancel==r);~e&&v.splice(e,1),b-=~e?1:0},i={time:n,handler:e,cancel:r};return v.splice(g(n),0,i),b+=1,k(),i};var g=e=>~(~v.findIndex(t=>t.time>e)||~v.length);d.cancel=e=>{h.delete(e),p.delete(e),m.delete(e),c.delete(e),f.delete(e)},d.sync=e=>{w=!0,d.batchedUpdates(e),w=!1},d.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,d.onStart(n)}return r.handler=e,r.cancel=()=>{h.delete(n),t=null},r};var y="u">typeof window?window.requestAnimationFrame:()=>{};d.use=e=>y=e,d.now="u">typeof performance?()=>performance.now():Date.now,d.batchedUpdates=e=>e(),d.catch=console.error,d.frameLoop="always",d.advance=()=>{"demand"!==d.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):S()};var x=-1,b=0,w=!1;function j(e,t){w?(t.delete(e),e(0)):(t.add(e),k())}function k(){x<0&&(x=0,"demand"!==d.frameLoop&&y(E))}function E(){~x&&(y(E),d.batchedUpdates(S))}function S(){let e=x,t=g(x=d.now());if(t&&(C(v.splice(0,t),e=>e.handler()),b-=t),!b){x=-1;return}h.flush(),c.flush(e?Math.min(64,x-e):16.667),p.flush(),f.flush(),m.flush()}function _(){let e=new Set,t=e;return{add(n){b+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(b-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,b-=t.size,C(t,t=>t(n)&&e.add(t)),b+=e.size,t=e)}}}function C(e,t){e.forEach(e=>{try{t(e)}catch(e){d.catch(e)}})}function O(){}var M=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),T={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function A(e,t){if(T.arr(e)){if(!T.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function N(e,t,n){if(T.arr(e)){for(let r=0;rT.und(e)?[]:T.arr(e)?e:[e];function D(e,t){if(e.size){let n=Array.from(e);e.clear(),P(n,t)}}var L,F,z=(e,...t)=>D(e,e=>e(...t)),V=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Z=null,I=!1,B=O,H=e=>{e.to&&(F=e.to),e.now&&(d.now=e.now),void 0!==e.colors&&(Z=e.colors),null!=e.skipAnimation&&(I=e.skipAnimation),e.createStringInterpolator&&(L=e.createStringInterpolator),e.requestAnimationFrame&&d.use(e.requestAnimationFrame),e.batchedUpdates&&(d.batchedUpdates=e.batchedUpdates),e.willAdvance&&(B=e.willAdvance),e.frameLoop&&(d.frameLoop=e.frameLoop)},U=new Set,W=[],q=[],$=0,K={get idle(){return!U.size&&!W.length},start(e){$>e.priority?(U.add(e),d.onStart(Y)):(G(e),d(J))},advance:J,sort(e){if($)d.onFrame(()=>K.sort(e));else{let t=W.indexOf(e);~t&&(W.splice(t,1),X(e))}},clear(){W=[],U.clear()}};function Y(){U.forEach(G),U.clear(),d(J)}function G(e){W.includes(e)||X(e)}function X(e){var t;let n;W.splice((n=(t=W).findIndex(t=>t.priority>e.priority))<0?t.length:n,0,e)}function J(e){let t=q;for(let n=0;n0}var Q=(e,t,n)=>Math.min(Math.max(n,e),t),ee={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},et="[-+]?\\d*\\.?\\d+",en=et+"%";function er(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var ei=RegExp("rgb"+er(et,et,et)),eo=RegExp("rgba"+er(et,et,et,et)),ea=RegExp("hsl"+er(et,en,en)),es=RegExp("hsla"+er(et,en,en,et)),el=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,eu=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ec=/^#([0-9a-fA-F]{6})$/,ed=/^#([0-9a-fA-F]{8})$/;function ef(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function eh(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;return Math.round(255*ef(i,r,e+1/3))<<24|Math.round(255*ef(i,r,e))<<16|Math.round(255*ef(i,r,e-1/3))<<8}function ep(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function em(e){return(parseFloat(e)%360+360)%360/360}function ev(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function eg(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function ey(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ec.exec(e))?parseInt(t[1]+"ff",16)>>>0:Z&&void 0!==Z[e]?Z[e]:(t=ei.exec(e))?(ep(t[1])<<24|ep(t[2])<<16|ep(t[3])<<8|255)>>>0:(t=eo.exec(e))?(ep(t[1])<<24|ep(t[2])<<16|ep(t[3])<<8|ev(t[4]))>>>0:(t=el.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ed.exec(e))?parseInt(t[1],16)>>>0:(t=eu.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ea.exec(e))?(255|eh(em(t[1]),eg(t[2]),eg(t[3])))>>>0:(t=es.exec(e))?(eh(em(t[1]),eg(t[2]),eg(t[3]))|ev(t[4]))>>>0:null;return null===n?e:`rgba(${(4278190080&(n=n||0))>>>24}, ${(16711680&n)>>>16}, ${(65280&n)>>>8}, ${(255&n)/255})`}var ex=(e,t,n)=>{if(T.fun(e))return e;if(T.arr(e))return ex({range:e,output:t,extrapolate:n});if(T.str(e.output[0]))return L(e);let r=e.output,i=e.range||[0,1],o=e.extrapolateLeft||e.extrapolate||"extend",a=e.extrapolateRight||e.extrapolate||"extend",s=e.easing||(e=>e);return t=>{let n=function(e,t){for(var n=1;n=e);++n);return n-1}(t,i);return function(e,t,n,r,i,o,a,s,l){let u=l?l(e):e;if(un){if("identity"===s)return u;"clamp"===s&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=o(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r,u)}(t,i[n],i[n+1],r[n],r[n+1],s,o,a,e.map)}},eb=2*Math.PI/3,ew=2*Math.PI/4.5,ej=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,ek={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>2.70158*e*e*e-1.70158*e*e,easeOutBack:e=>1+2.70158*Math.pow(e-1,3)+1.70158*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(3.5949095*2*e-2.5949095)/2:(Math.pow(2*e-2,2)*(3.5949095*(2*e-2)+2.5949095)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*eb),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*eb)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*ew))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*ew)/2+1,easeInBounce:e=>1-ej(1-e),easeOutBounce:ej,easeInOutBounce:e=>e<.5?(1-ej(1-2*e))/2:(1+ej(2*e-1))/2,steps:(e,t="end")=>n=>{let r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return Q(0,1,("end"===t?Math.floor(r):Math.ceil(r))/e)}},eE=Symbol.for("FluidValue.get"),eS=Symbol.for("FluidValue.observers"),e_=e=>!!(e&&e[eE]),eC=e=>e&&e[eE]?e[eE]():e,eO=e=>e[eS]||null;function eM(e,t){e.eventObserved?e.eventObserved(t):e(t)}function eT(e,t){let n=e[eS];n&&n.forEach(e=>{eM(e,t)})}var eA=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");eP(this,e)}},eP=(e,t)=>eL(e,eE,t);function eN(e,t){if(e[eE]){let n=e[eS];n||eL(e,eS,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function eR(e,t){let n=e[eS];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[eS]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var eD,eL=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),eF=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ez=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,eV=RegExp(`(${eF.source})(%|[a-z]+)`,"i"),eZ=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,eI=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,eB=e=>{let[t,n]=eH(e);if(!t||V())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);return r?r.trim():n&&n.startsWith("--")?window.getComputedStyle(document.documentElement).getPropertyValue(n)||e:n&&eI.test(n)?eB(n):n||e},eH=e=>{let t=eI.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},eU=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,eW=e=>{eD||(eD=Z?RegExp(`(${Object.keys(Z).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>eC(e).replace(eI,eB).replace(ez,ey).replace(eD,ey)),n=t.map(e=>e.match(eF).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>ex({...e,output:t}));return e=>{let n=!eV.test(t[0])&&t.find(e=>eV.test(e))?.replace(eF,""),i=0;return t[0].replace(eF,()=>`${r[i++](e)}${n||""}`).replace(eZ,eU)}},eq="react-spring: ",e$=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${eq}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},eK=e$(console.warn);function eY(){eK(`${eq}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var eG=e$(console.warn);function eX(){eG(`${eq}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function eJ(e){return T.str(e)&&("#"==e[0]||/\d/.test(e)||!V()&&eI.test(e)||e in(Z||{}))}var eQ,e0,e1=new WeakMap,e2=e=>e.forEach(({target:e,contentRect:t})=>e1.get(e)?.forEach(e=>e(t))),e4=new Set,e3=()=>{let e=()=>{e4.forEach(e=>e({width:window.innerWidth,height:window.innerHeight}))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},e5=e=>(e4.add(e),e0||(e0=e3()),()=>{e4.delete(e),!e4.size&&e0&&(e0(),e0=void 0)}),e6=(e,{container:t=document.documentElement}={})=>{let n;return t===document.documentElement?e5(e):(eQ||"u">typeof ResizeObserver&&(eQ=new ResizeObserver(e2)),(n=e1.get(t))||(n=new Set,e1.set(t,n)),n.add(e),eQ&&eQ.observe(t),()=>{let n=e1.get(t);n&&(n.delete(e),!n.size&&eQ&&eQ.unobserve(t))})},e8=(e,t,n)=>t-e==0?1:(n-e)/(t-e),e7={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}},e9=class{constructor(e,t){this.createAxis=()=>({current:0,progress:0,scrollLength:0}),this.updateAxis=e=>{let t=this.info[e],{length:n,position:r}=e7[e];t.current=this.container[`scroll${r}`],t.scrollLength=this.container["scroll"+n]-this.container["client"+n],t.progress=e8(0,t.scrollLength,t.current)},this.update=()=>{this.updateAxis("x"),this.updateAxis("y")},this.sendEvent=()=>{this.callback(this.info)},this.advance=()=>{this.update(),this.sendEvent()},this.callback=e,this.container=t,this.info={time:0,x:this.createAxis(),y:this.createAxis()}}},te=new WeakMap,tt=new WeakMap,tn=new WeakMap,tr=e=>e===document.documentElement?window:e,ti=(e,{container:t=document.documentElement}={})=>{let n=tn.get(t);n||(n=new Set,tn.set(t,n));let r=new e9(e,t);if(n.add(r),!te.has(t)){let e=()=>(n?.forEach(e=>e.advance()),!0);te.set(t,e);let r=tr(t);window.addEventListener("resize",e,{passive:!0}),t!==document.documentElement&&tt.set(t,e6(e,{container:t})),r.addEventListener("scroll",e,{passive:!0})}let i=te.get(t);return d(i),()=>{d.cancel(i);let e=tn.get(t);if(!e||(e.delete(r),e.size))return;let n=te.get(t);te.delete(t),n&&(tr(t).removeEventListener("scroll",n),window.removeEventListener("resize",n),tt.get(t)?.())}},to=n(2784);function ta(e){let t=(0,to.useRef)(null);return null===t.current&&(t.current=e()),t.current}var ts=n(2784),tl=n(2784),tu=n(2784),tc=V()?tu.useEffect:tu.useLayoutEffect,td=()=>{let e=(0,tl.useRef)(!1);return tc(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function tf(){let e=(0,ts.useState)()[1],t=td();return()=>{t.current&&e(Math.random())}}var th=n(2784);function tp(e,t){let[n]=(0,th.useState)(()=>({inputs:t,result:e()})),r=(0,th.useRef)(),i=r.current,o=i;return o?t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}var tm=n(2784),tv=e=>(0,tm.useEffect)(e,tg),tg=[],ty=n(2784);function tx(e){let t=(0,ty.useRef)();return(0,ty.useEffect)(()=>{t.current=e}),t.current}var tb=n(2784),tw=()=>{let[e,t]=(0,tb.useState)(null);return tc(()=>{let e=window.matchMedia("(prefers-reduced-motion)"),n=e=>{t(e.matches),H({skipAnimation:e.matches})};return n(e),e.addEventListener("change",n),()=>{e.removeEventListener("change",n)}},[]),e}},19455:function(e){"use strict";var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,o={};((e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})})(o,{Any:()=>a}),e.exports=((e,o,a,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let a of r(o))i.call(e,a)||void 0===a||t(e,a,{get:()=>o[a],enumerable:!(s=n(o,a))||s.enumerable});return e})(t({},"__esModule",{value:!0}),o);var a=class{}},96721:function(e,t,n){"use strict";var r,i,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))l.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},c={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(c,{a:()=>M,animated:()=>M}),e.exports=u(o({},"__esModule",{value:!0}),c);var d=n(99550),f=n(28316),h=n(6901),p=n(25447),m=/^--/,v={},g={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},y=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),x=["Webkit","Ms","Moz","O"];g=Object.keys(g).reduce((e,t)=>(x.forEach(n=>e[y(n,t)]=e[t]),e),g);var b=n(25447),w=n(6901),j=/^(matrix|translate|scale|rotate|skew)/,k=/^(translate)/,E=/^(rotate|skew)/,S=(e,t)=>w.is.num(e)&&0!==e?e+t:e,_=(e,t)=>w.is.arr(e)?e.every(e=>_(e,t)):w.is.num(e)?e===t:parseFloat(e)===t,C=class extends b.AnimatedObject{constructor({x:e,y:t,z:n,...r}){let i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(e=>[`translate3d(${e.map(e=>S(e,"px")).join(",")})`,_(e,0)])),(0,w.eachProp)(r,(e,t)=>{if("transform"===t)i.push([e||""]),o.push(e=>[e,""===e]);else if(j.test(t)){if(delete r[t],w.is.und(e))return;let n=k.test(t)?"px":E.test(t)?"deg":"";i.push((0,w.toArray)(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${S(i,n)})`,_(i,0)]:e=>[`${t}(${e.map(e=>S(e,n)).join(",")})`,_(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new O(i,o)),super(r)}},O=class extends w.FluidValue{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return(0,w.each)(this.inputs,(n,r)=>{let i=(0,w.getFluidValue)(n[0]),[o,a]=this.transforms[r](w.is.arr(i)?i:n.map(w.getFluidValue));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){1==e&&(0,w.each)(this.inputs,e=>(0,w.each)(e,e=>(0,w.hasFluidValue)(e)&&(0,w.addFluidObserver)(e,this)))}observerRemoved(e){0==e&&(0,w.each)(this.inputs,e=>(0,w.each)(e,e=>(0,w.hasFluidValue)(e)&&(0,w.removeFluidObserver)(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),(0,w.callFluidObservers)(this,e)}};r=n(99550),i=e.exports,u(c,r,"default"),i&&u(i,r,"default"),d.Globals.assign({batchedUpdates:f.unstable_batchedUpdates,createStringInterpolator:h.createStringInterpolator,colors:h.colors});var M=(0,p.createHost)(["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"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:i,scrollTop:o,scrollLeft:a,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(t=>n||e.hasAttribute(t)?t:v[t]||(v[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==i&&(e.textContent=i),r)if(r.hasOwnProperty(t)){var d;let n=null==(d=r[t])||"boolean"==typeof d||""===d?"":"number"!=typeof d||0===d||m.test(t)||g.hasOwnProperty(t)&&g[t]?(""+d).trim():d+"px";m.test(t)?e.style.setProperty(t,n):e.style[t]=n}c.forEach((t,n)=>{e.setAttribute(t,u[n])}),void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new C(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated},7896:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t"boolean"==typeof e?"".concat(e):0===e?"0":e,i=function(){for(var e,t,n=0,r="";nn=>{var o;if((null==t?void 0:t.variants)==null)return i(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(e=>{let t=null==n?void 0:n[e],i=null==s?void 0:s[e];if(null===t)return null;let o=r(t)||r(i);return a[e][o]}),u=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),c=null==t?void 0:null===(o=t.compoundVariants)||void 0===o?void 0:o.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...s,...u}[t]):({...s,...u})[t]===n})?[...e,n,r]:e},[]);return i(e,l,c,null==n?void 0:n.class,null==n?void 0:n.className)}},99182:function(e,t,n){"use strict";n.d(t,{U8:function(){return T},mY:function(){return S}});var r=n(72331),i=n(2784),o=n(40844),a='[cmdk-group=""]',s='[cmdk-group-items=""]',l='[cmdk-item=""]',u=`${l}:not([aria-disabled="true"])`,c="cmdk-item-select",d="data-value",f=(e,t)=>o(e,t),h=i.createContext(void 0),p=()=>i.useContext(h),m=i.createContext(void 0),v=()=>i.useContext(m),g=i.createContext(void 0),y=i.forwardRef((e,t)=>{let n=i.useRef(null),r=O(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),o=O(()=>new Set),p=O(()=>new Map),v=O(()=>new Map),g=O(()=>new Set),y=_(e),{label:x,children:b,value:w,onValueChange:j,filter:k,shouldFilter:E,...S}=e,T=i.useId(),A=i.useId(),R=i.useId(),D=P();C(()=>{if(void 0!==w){let e=w.trim().toLowerCase();r.current.value=e,D(6,B),L.emit()}},[w]);let L=i.useMemo(()=>({subscribe:e=>(g.current.add(e),()=>g.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var i,o,a;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)I(),V(),D(1,Z);else if("value"===e){if((null==(i=y.current)?void 0:i.value)!==void 0){null==(a=(o=y.current).onValueChange)||a.call(o,t);return}n||D(5,B)}L.emit()}},emit:()=>{g.current.forEach(e=>e())}}),[]),F=i.useMemo(()=>({value:(e,t)=>{t!==v.current.get(e)&&(v.current.set(e,t),r.current.filtered.items.set(e,z(t)),D(2,()=>{V(),L.emit()}))},item:(e,t)=>(o.current.add(e),t&&(p.current.has(t)?p.current.get(t).add(e):p.current.set(t,new Set([e]))),D(3,()=>{I(),V(),r.current.value||Z(),L.emit()}),()=>{v.current.delete(e),o.current.delete(e),r.current.filtered.items.delete(e),D(4,()=>{I(),Z(),L.emit()})}),group:e=>(p.current.has(e)||p.current.set(e,new Set),()=>{v.current.delete(e),p.current.delete(e)}),filter:()=>y.current.shouldFilter,label:x||e["aria-label"],listId:T,inputId:R,labelId:A}),[]);function z(e){var t;let n=(null==(t=y.current)?void 0:t.filter)??f;return e?n(e,r.current.search):0}function V(){if(!n.current||!r.current.search||!1===y.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(n=>{let r=p.current.get(n),i=0;r.forEach(t=>{i=Math.max(e.get(t),i)}),t.push([n,i])});let i=n.current.querySelector('[cmdk-list-sizer=""]');U().sort((t,n)=>{let r=t.getAttribute(d),i=n.getAttribute(d);return(e.get(i)??0)-(e.get(r)??0)}).forEach(e=>{let t=e.closest(s);t?t.appendChild(e.parentElement===t?e:e.closest(`${s} > *`)):i.appendChild(e.parentElement===i?e:e.closest(`${s} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{let t=n.current.querySelector(`${a}[${d}="${e[0]}"]`);null==t||t.parentElement.appendChild(t)})}function Z(){let e=U().find(e=>!e.ariaDisabled),t=null==e?void 0:e.getAttribute(d);L.setState("value",t||void 0)}function I(){if(!r.current.search||!1===y.current.shouldFilter){r.current.filtered.count=o.current.size;return}r.current.filtered.groups=new Set;let e=0;for(let t of o.current){let n=z(v.current.get(t));r.current.filtered.items.set(t,n),n>0&&e++}for(let[e,t]of p.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=e}function B(){var e,t,n;let r=H();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(a))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function H(){return n.current.querySelector(`${l}[aria-selected="true"]`)}function U(){return Array.from(n.current.querySelectorAll(u))}function W(e){let t=U()[e];t&&L.setState("value",t.getAttribute(d))}function q(e){var t;let n=H(),r=U(),i=r.findIndex(e=>e===n),o=r[i+e];null!=(t=y.current)&&t.loop&&(o=i+e<0?r[r.length-1]:i+e===r.length?r[0]:r[i+e]),o&&L.setState("value",o.getAttribute(d))}function $(e){let t=H(),n=null==t?void 0:t.closest(a),r;for(;n&&!r;)r=null==(n=e>0?function(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}(n,a):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,a))?void 0:n.querySelector(u);r?L.setState("value",r.getAttribute(d)):q(e)}let K=()=>W(U().length-1),Y=e=>{e.preventDefault(),e.metaKey?K():e.altKey?$(1):q(1)},G=e=>{e.preventDefault(),e.metaKey?W(0):e.altKey?$(-1):q(-1)};return i.createElement("div",{ref:M([n,t]),...S,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=S.onKeyDown)||t.call(S,e),!e.defaultPrevented)switch(e.key){case"n":case"j":e.ctrlKey&&Y(e);break;case"ArrowDown":Y(e);break;case"p":case"k":e.ctrlKey&&G(e);break;case"ArrowUp":G(e);break;case"Home":e.preventDefault(),W(0);break;case"End":e.preventDefault(),K();break;case"Enter":{e.preventDefault();let t=H();if(t){let e=new Event(c);t.dispatchEvent(e)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:F.inputId,id:F.labelId,style:N},x),i.createElement(m.Provider,{value:L},i.createElement(h.Provider,{value:F},b)))}),x=i.forwardRef((e,t)=>{let n=i.useId(),r=i.useRef(null),o=i.useContext(g),a=p(),s=_(e);C(()=>a.item(n,o),[]);let l=A(n,r,[e.value,e.children,r]),u=v(),d=T(e=>e.value&&e.value===l.current),f=T(e=>!1===a.filter()||!e.search||e.filtered.items.get(n)>0);function h(){var e,t;null==(t=(e=s.current).onSelect)||t.call(e,l.current)}if(i.useEffect(()=>{let t=r.current;if(!(!t||e.disabled))return t.addEventListener(c,h),()=>t.removeEventListener(c,h)},[f,e.onSelect,e.disabled]),!f)return null;let{disabled:m,value:y,onSelect:x,...b}=e;return i.createElement("div",{ref:M([r,t]),...b,"cmdk-item":"",role:"option","aria-disabled":m||void 0,"aria-selected":d||void 0,"data-selected":d||void 0,onPointerMove:m?void 0:function(){u.setState("value",l.current,!0)},onClick:m?void 0:h},e.children)}),b=i.forwardRef((e,t)=>{let{heading:n,children:r,...o}=e,a=i.useId(),s=i.useRef(null),l=i.useRef(null),u=i.useId(),c=p(),d=T(e=>!1===c.filter()||!e.search||e.filtered.groups.has(a));C(()=>c.group(a),[]),A(a,s,[e.value,e.heading,l]);let f=i.createElement(g.Provider,{value:a},r);return i.createElement("div",{ref:M([s,t]),...o,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&i.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),i.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},f))}),w=i.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=i.useRef(null),a=T(e=>!e.search);return n||a?i.createElement("div",{ref:M([o,t]),...r,"cmdk-separator":"",role:"separator"}):null}),j=i.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,a=v(),s=T(e=>e.search),l=p();return i.useEffect(()=>{null!=e.value&&a.setState("search",e.value)},[e.value]),i.createElement("input",{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,id:l.inputId,type:"text",value:o?e.value:s,onChange:e=>{o||a.setState("search",e.target.value),null==n||n(e.target.value)}})}),k=i.forwardRef((e,t)=>{let{children:n,...r}=e,o=i.useRef(null),a=i.useRef(null),s=p();return i.useEffect(()=>{if(a.current&&o.current){let e=a.current,t=o.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.getBoundingClientRect().height;t.style.setProperty("--cmdk-list-height",n.toFixed(1)+"px")})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),i.createElement("div",{ref:M([o,t]),...r,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:s.listId,"aria-labelledby":s.inputId},i.createElement("div",{ref:a,"cmdk-list-sizer":""},n))}),E=i.forwardRef((e,t)=>{let{open:n,onOpenChange:o,container:a,...s}=e;return i.createElement(r.fC,{open:n,onOpenChange:o},i.createElement(r.h_,{container:a},i.createElement(r.aV,{"cmdk-overlay":""}),i.createElement(r.VY,{"aria-label":e.label,"cmdk-dialog":""},i.createElement(y,{ref:t,...s}))))}),S=Object.assign(y,{List:k,Item:x,Input:j,Group:b,Separator:w,Dialog:E,Empty:i.forwardRef((e,t)=>{let n=i.useRef(!0),r=T(e=>0===e.filtered.count);return i.useEffect(()=>{n.current=!1},[]),n.current||!r?null:i.createElement("div",{ref:t,...e,"cmdk-empty":"",role:"presentation"})}),Loading:i.forwardRef((e,t)=>{let{progress:n,children:r,...o}=e;return i.createElement("div",{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},i.createElement("div",{"aria-hidden":!0},r))})});function _(e){let t=i.useRef(e);return C(()=>{t.current=e}),t}var C=typeof window>"u"?i.useEffect:i.useLayoutEffect;function O(e){let t=i.useRef();return void 0===t.current&&(t.current=e()),t}function M(e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}function T(e){let t=v(),n=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,n,n)}function A(e,t,n){let r=i.useRef(),o=p();return C(()=>{var i;let a=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim().toLowerCase();if("object"==typeof t&&"current"in t&&t.current)return null==(e=t.current.textContent)?void 0:e.trim().toLowerCase()}})();o.value(e,a),null==(i=t.current)||i.setAttribute(d,a),r.current=a}),r}var P=()=>{let[e,t]=i.useState(),n=O(()=>new Map);return C(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}},N={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},86801:function(e,t,n){"use strict";function r(e,t){return null==e||null==t?NaN:et?1:e>=t?0:NaN}n.d(t,{Z:function(){return r}})},78307:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(86801);function i(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function o(e){let t,n,o;function s(e,r,i=0,o=e.length){if(i>>1;0>n(e[t],r)?i=t+1:o=t}while(i(0,r.Z)(e(t),n),o=(t,n)=>e(t)-n):(t=e===r.Z||e===i?e:a,n=e,o=e),{left:s,center:function(e,t,n=0,r=e.length){let i=s(e,t,n,r-1);return i>n&&o(e[i-1],t)>-o(e[i],t)?i-1:i},right:function(e,r,i=0,o=e.length){if(i>>1;0>=n(e[t],r)?i=t+1:o=t}while(i=t&&(n=r=t):(n>t&&(n=t),r=o&&(n=r=o):(n>o&&(n=o),r"checkbox"===e.type,o=e=>e instanceof Date,a=e=>null==e;let s=e=>"object"==typeof e;var l=e=>!a(e)&&!Array.isArray(e)&&s(e)&&!o(e),u=e=>l(e)&&e.target?i(e.target)?e.target.checked:e.target.value:e,c=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,d=(e,t)=>e.has(c(t)),f=e=>{let t=e.constructor&&e.constructor.prototype;return l(t)&&t.hasOwnProperty("isPrototypeOf")},h="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function p(e){let t;let n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(h&&(e instanceof Blob||e instanceof FileList))&&(n||l(e))))return e;else if(t=n?[]:{},Array.isArray(e)||f(e))for(let n in e)t[n]=p(e[n]);else t=e;return t}var m=e=>Array.isArray(e)?e.filter(Boolean):[],v=e=>void 0===e,g=(e,t,n)=>{if(!t||!l(e))return n;let r=m(t.split(/[,[\].]+?/)).reduce((e,t)=>a(e)?e:e[t],e);return v(r)||r===e?v(e[t])?n:e[t]:r};let y={BLUR:"blur",FOCUS_OUT:"focusout"},x={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},b={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};r.createContext(null);var w=(e,t,n,r=!0)=>{let i={defaultValues:t._defaultValues};for(let o in e)Object.defineProperty(i,o,{get:()=>(t._proxyFormState[o]!==x.all&&(t._proxyFormState[o]=!r||x.all),n&&(n[o]=!0),e[o])});return i},j=e=>l(e)&&!Object.keys(e).length,k=(e,t,n,r)=>{n(e);let{name:i,...o}=e;return j(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(e=>t[e]===(!r||x.all))},E=e=>Array.isArray(e)?e:[e],S=e=>"string"==typeof e,_=(e,t,n,r,i)=>S(e)?(r&&t.watch.add(e),g(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),g(n,e))):(r&&(t.watchAll=!0),n),C=e=>/^\w*$/.test(e),O=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/));function M(e,t,n){let r=-1,i=C(t)?[t]:O(t),o=i.length,a=o-1;for(;++rt?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};let A=(e,t,n)=>{for(let r of n||Object.keys(e)){let n=g(e,r);if(n){let{_f:e,...r}=n;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else l(r)&&A(r,t)}}};var P=e=>({isOnSubmit:!e||e===x.onSubmit,isOnBlur:e===x.onBlur,isOnChange:e===x.onChange,isOnAll:e===x.all,isOnTouch:e===x.onTouched}),N=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),R=(e,t,n)=>{let r=m(g(e,n));return M(r,"root",t[n]),M(e,n,r),e},D=e=>"boolean"==typeof e,L=e=>"file"===e.type,F=e=>"function"==typeof e,z=e=>{if(!h)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},V=e=>S(e),Z=e=>"radio"===e.type,I=e=>e instanceof RegExp;let B={value:!1,isValid:!1},H={value:!0,isValid:!0};var U=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!v(e[0].attributes.value)?v(e[0].value)||""===e[0].value?H:{value:e[0].value,isValid:!0}:H:B}return B};let W={isValid:!1,value:null};var q=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,W):W;function $(e,t,n="validate"){if(V(e)||Array.isArray(e)&&e.every(V)||D(e)&&!e)return{type:n,message:V(e)?e:"",ref:t}}var K=e=>l(e)&&!I(e)?e:{value:e,message:""},Y=async(e,t,n,r,o)=>{let{ref:s,refs:u,required:c,maxLength:d,minLength:f,min:h,max:p,pattern:m,validate:y,name:x,valueAsNumber:w,mount:k,disabled:E}=e._f,_=g(t,x);if(!k||E)return{};let C=u?u[0]:s,O=e=>{r&&C.reportValidity&&(C.setCustomValidity(D(e)?"":e||""),C.reportValidity())},M={},A=Z(s),P=i(s),N=(w||L(s))&&v(s.value)&&v(_)||z(s)&&""===s.value||""===_||Array.isArray(_)&&!_.length,R=T.bind(null,x,n,M),B=(e,t,n,r=b.maxLength,i=b.minLength)=>{let o=e?t:n;M[x]={type:e?r:i,message:o,ref:s,...R(e?r:i,o)}};if(o?!Array.isArray(_)||!_.length:c&&(!(A||P)&&(N||a(_))||D(_)&&!_||P&&!U(u).isValid||A&&!q(u).isValid)){let{value:e,message:t}=V(c)?{value:!!c,message:c}:K(c);if(e&&(M[x]={type:b.required,message:t,ref:C,...R(b.required,t)},!n))return O(t),M}if(!N&&(!a(h)||!a(p))){let e,t;let r=K(p),i=K(h);if(a(_)||isNaN(_)){let n=s.valueAsDate||new Date(_),o=e=>new Date(new Date().toDateString()+" "+e),a="time"==s.type,l="week"==s.type;S(r.value)&&_&&(e=a?o(_)>o(r.value):l?_>r.value:n>new Date(r.value)),S(i.value)&&_&&(t=a?o(_)r.value),a(i.value)||(t=n+e.value,i=!a(t.value)&&_.length<+t.value;if((r||i)&&(B(r,e.message,t.message),!n))return O(M[x].message),M}if(m&&!N&&S(_)){let{value:e,message:t}=K(m);if(I(e)&&!_.match(e)&&(M[x]={type:b.pattern,message:t,ref:s,...R(b.pattern,t)},!n))return O(t),M}if(y){if(F(y)){let e=await y(_,t),r=$(e,C);if(r&&(M[x]={...r,...R(b.validate,r.message)},!n))return O(r.message),M}else if(l(y)){let e={};for(let r in y){if(!j(e)&&!n)break;let i=$(await y[r](_,t),C,r);i&&(e={...i,...R(r,i.message)},O(i.message),n&&(M[x]=e))}if(!j(e)&&(M[x]={ref:C,...e},!n))return M}}return O(!0),M};function G(e,t){let n=Array.isArray(t)?t:C(t)?[t]:O(t),r=1===n.length?e:function(e,t){let n=t.slice(0,-1).length,r=0;for(;r{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}}var J=e=>a(e)||!s(e);function Q(e,t){if(J(e)||J(t))return e===t;if(o(e)&&o(t))return e.getTime()===t.getTime();let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n){let n=e[i];if(!r.includes(i))return!1;if("ref"!==i){let e=t[i];if(o(n)&&o(e)||l(n)&&l(e)||Array.isArray(n)&&Array.isArray(e)?!Q(n,e):n!==e)return!1}}return!0}var ee=e=>"select-multiple"===e.type,et=e=>Z(e)||i(e),en=e=>z(e)&&e.isConnected,er=e=>{for(let t in e)if(F(e[t]))return!0;return!1};function ei(e,t={}){let n=Array.isArray(e);if(l(e)||n)for(let n in e)Array.isArray(e[n])||l(e[n])&&!er(e[n])?(t[n]=Array.isArray(e[n])?[]:{},ei(e[n],t[n])):a(e[n])||(t[n]=!0);return t}var eo=(e,t)=>(function e(t,n,r){let i=Array.isArray(t);if(l(t)||i)for(let i in t)Array.isArray(t[i])||l(t[i])&&!er(t[i])?v(n)||J(r[i])?r[i]=Array.isArray(t[i])?ei(t[i],[]):{...ei(t[i])}:e(t[i],a(n)?{}:n[i],r[i]):r[i]=!Q(t[i],n[i]);return r})(e,t,ei(t)),ea=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>v(e)?e:t?""===e?NaN:e?+e:e:n&&S(e)?new Date(e):r?r(e):e;function es(e){let t=e.ref;return(e.refs?e.refs.every(e=>e.disabled):t.disabled)?void 0:L(t)?t.files:Z(t)?q(e.refs).value:ee(t)?[...t.selectedOptions].map(({value:e})=>e):i(t)?U(e.refs).value:ea(v(t.value)?e.ref.value:t.value,e)}var el=(e,t,n,r)=>{let i={};for(let n of e){let e=g(t,n);e&&M(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},eu=e=>v(e)?e:I(e)?e.source:l(e)?I(e.value)?e.value.source:e.value:e,ec=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ed(e,t,n){let r=g(e,n);if(r||C(n))return{error:r,name:n};let i=n.split(".");for(;i.length;){let r=i.join("."),o=g(t,r),a=g(e,r);if(o&&!Array.isArray(o)&&n!==r)break;if(a&&a.type)return{name:r,error:a};i.pop()}return{name:n}}var ef=(e,t,n,r,i)=>!i.isOnAll&&(!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?!r.isOnChange:!i.isOnChange)||e),eh=(e,t)=>!m(g(e,t)).length&&G(e,t);let ep={mode:x.onSubmit,reValidateMode:x.onChange,shouldFocusError:!0};function em(e={}){let t=r.useRef(),[n,s]=r.useState({isDirty:!1,isValidating:!1,isLoading:F(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:F(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...function(e={},t){let n,r={...ep,...e},s={submitCount:0,isDirty:!1,isLoading:F(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},c={},f=(l(r.defaultValues)||l(r.values))&&p(r.defaultValues||r.values)||{},b=r.shouldUnregister?{}:p(f),w={action:!1,mount:!1,watch:!1},k={mount:new Set,unMount:new Set,array:new Set,watch:new Set},C=0,O={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},T={values:X(),array:X(),state:X()},V=e.resetOptions&&e.resetOptions.keepDirtyValues,Z=P(r.mode),I=P(r.reValidateMode),B=r.criteriaMode===x.all,H=e=>t=>{clearTimeout(C),C=setTimeout(e,t)},U=async e=>{if(O.isValid||e){let e=r.resolver?j((await ei()).errors):await ev(c,!0);e!==s.isValid&&T.state.next({isValid:e})}},W=e=>O.isValidating&&T.state.next({isValidating:e}),q=(e,t)=>{M(s.errors,e,t),T.state.next({errors:s.errors})},$=(e,t,n,r)=>{let i=g(c,e);if(i){let o=g(b,e,v(n)?g(f,e):n);v(o)||r&&r.defaultChecked||t?M(b,e,t?o:es(i._f)):ex(e,o),w.mount&&U()}},K=(e,t,n,r,i)=>{let o=!1,a=!1,l={name:e};if(!n||r){O.isDirty&&(a=s.isDirty,s.isDirty=l.isDirty=eg(),o=a!==l.isDirty);let n=Q(g(f,e),t);a=g(s.dirtyFields,e),n?G(s.dirtyFields,e):M(s.dirtyFields,e,!0),l.dirtyFields=s.dirtyFields,o=o||O.dirtyFields&&!n!==a}if(n){let t=g(s.touchedFields,e);t||(M(s.touchedFields,e,n),l.touchedFields=s.touchedFields,o=o||O.touchedFields&&t!==n)}return o&&i&&T.state.next(l),o?l:{}},er=(t,r,i,o)=>{let a=g(s.errors,t),l=O.isValid&&D(r)&&s.isValid!==r;if(e.delayError&&i?(n=H(()=>q(t,i)))(e.delayError):(clearTimeout(C),n=null,i?M(s.errors,t,i):G(s.errors,t)),(i?!Q(a,i):a)||!j(o)||l){let e={...o,...l&&D(r)?{isValid:r}:{},errors:s.errors,name:t};s={...s,...e},T.state.next(e)}W(!1)},ei=async e=>r.resolver(b,r.context,el(e||k.mount,c,r.criteriaMode,r.shouldUseNativeValidation)),em=async e=>{let{errors:t}=await ei();if(e)for(let n of e){let e=g(t,n);e?M(s.errors,n,e):G(s.errors,n)}else s.errors=t;return t},ev=async(e,t,n={valid:!0})=>{for(let i in e){let o=e[i];if(o){let{_f:e,...i}=o;if(e){let i=k.array.has(e.name),a=await Y(o,b,B,r.shouldUseNativeValidation&&!t,i);if(a[e.name]&&(n.valid=!1,t))break;t||(g(a,e.name)?i?R(s.errors,a,e.name):M(s.errors,e.name,a[e.name]):G(s.errors,e.name))}i&&await ev(i,t,n)}}return n.valid},eg=(e,t)=>(e&&t&&M(b,e,t),!Q(eE(),f)),ey=(e,t,n)=>_(e,k,{...w.mount?b:v(t)?f:S(e)?{[e]:t}:t},n,t),ex=(e,t,n={})=>{let r=g(c,e),o=t;if(r){let n=r._f;n&&(n.disabled||M(b,e,ea(t,n)),o=z(n.ref)&&a(t)?"":t,ee(n.ref)?[...n.ref.options].forEach(e=>e.selected=o.includes(e.value)):n.refs?i(n.ref)?n.refs.length>1?n.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find(t=>t===e.value):o===e.value)):n.refs[0]&&(n.refs[0].checked=!!o):n.refs.forEach(e=>e.checked=e.value===o):L(n.ref)?n.ref.value="":(n.ref.value=o,n.ref.type||T.values.next({name:e,values:{...b}})))}(n.shouldDirty||n.shouldTouch)&&K(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&ek(e)},eb=(e,t,n)=>{for(let r in t){let i=t[r],a=`${e}.${r}`,s=g(c,a);!k.array.has(e)&&J(i)&&(!s||s._f)||o(i)?ex(a,i,n):eb(a,i,n)}},ew=(e,n,r={})=>{let i=g(c,e),o=k.array.has(e),l=p(n);M(b,e,l),o?(T.array.next({name:e,values:{...b}}),(O.isDirty||O.dirtyFields)&&r.shouldDirty&&T.state.next({name:e,dirtyFields:eo(f,b),isDirty:eg(e,l)})):!i||i._f||a(l)?ex(e,l,r):eb(e,l,r),N(e,k)&&T.state.next({...s}),T.values.next({name:e,values:{...b}}),w.mount||t()},ej=async e=>{let t=e.target,i=t.name,o=!0,a=g(c,i);if(a){let l,d;let f=t.type?es(a._f):u(e),h=e.type===y.BLUR||e.type===y.FOCUS_OUT,p=!ec(a._f)&&!r.resolver&&!g(s.errors,i)&&!a._f.deps||ef(h,g(s.touchedFields,i),s.isSubmitted,I,Z),m=N(i,k,h);M(b,i,f),h?(a._f.onBlur&&a._f.onBlur(e),n&&n(0)):a._f.onChange&&a._f.onChange(e);let v=K(i,f,h,!1),x=!j(v)||m;if(h||T.values.next({name:i,type:e.type,values:{...b}}),p)return O.isValid&&U(),x&&T.state.next({name:i,...m?{}:v});if(!h&&m&&T.state.next({...s}),W(!0),r.resolver){let{errors:e}=await ei([i]),t=ed(s.errors,c,i),n=ed(e,c,t.name||i);l=n.error,i=n.name,d=j(e)}else l=(await Y(a,b,B,r.shouldUseNativeValidation))[i],(o=isNaN(f)||f===g(b,i,f))&&(l?d=!1:O.isValid&&(d=await ev(c,!0)));o&&(a._f.deps&&ek(a._f.deps),er(i,d,l,v))}},ek=async(e,t={})=>{let n,i;let o=E(e);if(W(!0),r.resolver){let t=await em(v(e)?e:o);n=j(t),i=e?!o.some(e=>g(t,e)):n}else e?((i=(await Promise.all(o.map(async e=>{let t=g(c,e);return await ev(t&&t._f?{[e]:t}:t)}))).every(Boolean))||s.isValid)&&U():i=n=await ev(c);return T.state.next({...!S(e)||O.isValid&&n!==s.isValid?{}:{name:e},...r.resolver||!e?{isValid:n}:{},errors:s.errors,isValidating:!1}),t.shouldFocus&&!i&&A(c,e=>e&&g(s.errors,e),e?o:k.mount),i},eE=e=>{let t={...f,...w.mount?b:{}};return v(e)?t:S(e)?g(t,e):e.map(e=>g(t,e))},eS=(e,t)=>({invalid:!!g((t||s).errors,e),isDirty:!!g((t||s).dirtyFields,e),isTouched:!!g((t||s).touchedFields,e),error:g((t||s).errors,e)}),e_=(e,t={})=>{for(let n of e?E(e):k.mount)k.mount.delete(n),k.array.delete(n),t.keepValue||(G(c,n),G(b,n)),t.keepError||G(s.errors,n),t.keepDirty||G(s.dirtyFields,n),t.keepTouched||G(s.touchedFields,n),r.shouldUnregister||t.keepDefaultValue||G(f,n);T.values.next({values:{...b}}),T.state.next({...s,...t.keepDirty?{isDirty:eg()}:{}}),t.keepIsValid||U()},eC=(e,t={})=>{let n=g(c,e),i=D(t.disabled);return M(c,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),k.mount.add(e),n?i&&M(b,e,t.disabled?void 0:g(b,e,es(n._f))):$(e,!0,t.value),{...i?{disabled:t.disabled}:{},...r.shouldUseNativeValidation?{required:!!t.required,min:eu(t.min),max:eu(t.max),minLength:eu(t.minLength),maxLength:eu(t.maxLength),pattern:eu(t.pattern)}:{},name:e,onChange:ej,onBlur:ej,ref:i=>{if(i){eC(e,t),n=g(c,e);let r=v(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,o=et(r),a=n._f.refs||[];(o?a.find(e=>e===r):r===n._f.ref)||(M(c,e,{_f:{...n._f,...o?{refs:[...a.filter(en),r,...Array.isArray(g(f,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),$(e,!1,void 0,r))}else(n=g(c,e,{}))._f&&(n._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&!(d(k.array,e)&&w.action)&&k.unMount.add(e)}}},eO=()=>r.shouldFocusError&&A(c,e=>e&&g(s.errors,e),k.mount),eM=(n,r={})=>{let i=n||f,o=p(i),a=n&&!j(n)?o:f;if(r.keepDefaultValues||(f=i),!r.keepValues){if(r.keepDirtyValues||V)for(let e of k.mount)g(s.dirtyFields,e)?M(a,e,g(b,e)):ew(e,g(a,e));else{if(h&&v(n))for(let e of k.mount){let t=g(c,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(z(e)){let t=e.closest("form");if(t){t.reset();break}}}}c={}}b=e.shouldUnregister?r.keepDefaultValues?p(f):{}:o,T.array.next({values:{...a}}),T.values.next({values:{...a}})}k={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},w.mount||t(),w.mount=!O.isValid||!!r.keepIsValid,w.watch=!!e.shouldUnregister,T.state.next({submitCount:r.keepSubmitCount?s.submitCount:0,isDirty:r.keepDirty?s.isDirty:!!(r.keepDefaultValues&&!Q(n,f)),isSubmitted:!!r.keepIsSubmitted&&s.isSubmitted,dirtyFields:r.keepDirtyValues?s.dirtyFields:r.keepDefaultValues&&n?eo(f,n):{},touchedFields:r.keepTouched?s.touchedFields:{},errors:r.keepErrors?s.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},eT=(e,t)=>eM(F(e)?e(b):e,t);return{control:{register:eC,unregister:e_,getFieldState:eS,_executeSchema:ei,_getWatch:ey,_getDirty:eg,_updateValid:U,_removeUnmounted:()=>{for(let e of k.unMount){let t=g(c,e);t&&(t._f.refs?t._f.refs.every(e=>!en(e)):!en(t._f.ref))&&e_(e)}k.unMount=new Set},_updateFieldArray:(e,t=[],n,r,i=!0,o=!0)=>{if(r&&n){if(w.action=!0,o&&Array.isArray(g(c,e))){let t=n(g(c,e),r.argA,r.argB);i&&M(c,e,t)}if(o&&Array.isArray(g(s.errors,e))){let t=n(g(s.errors,e),r.argA,r.argB);i&&M(s.errors,e,t),eh(s.errors,e)}if(O.touchedFields&&o&&Array.isArray(g(s.touchedFields,e))){let t=n(g(s.touchedFields,e),r.argA,r.argB);i&&M(s.touchedFields,e,t)}O.dirtyFields&&(s.dirtyFields=eo(f,b)),T.state.next({name:e,isDirty:eg(e,t),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else M(b,e,t)},_getFieldArray:t=>m(g(w.mount?b:f,t,e.shouldUnregister?g(f,t,[]):[])),_reset:eM,_resetDefaultValues:()=>F(r.defaultValues)&&r.defaultValues().then(e=>{eT(e,r.resetOptions),T.state.next({isLoading:!1})}),_updateFormState:e=>{s={...s,...e}},_subjects:T,_proxyFormState:O,get _fields(){return c},get _formValues(){return b},get _state(){return w},set _state(value){w=value},get _defaultValues(){return f},get _names(){return k},set _names(value){k=value},get _formState(){return s},set _formState(value){s=value},get _options(){return r},set _options(value){r={...r,...value}}},trigger:ek,register:eC,handleSubmit:(e,t)=>async n=>{n&&(n.preventDefault&&n.preventDefault(),n.persist&&n.persist());let i=p(b);if(T.state.next({isSubmitting:!0}),r.resolver){let{errors:e,values:t}=await ei();s.errors=e,i=t}else await ev(c);G(s.errors,"root"),j(s.errors)?(T.state.next({errors:{}}),await e(i,n)):(t&&await t({...s.errors},n),eO(),setTimeout(eO)),T.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:j(s.errors),submitCount:s.submitCount+1,errors:s.errors})},watch:(e,t)=>F(e)?T.values.subscribe({next:n=>e(ey(void 0,t),n)}):ey(e,t,!0),setValue:ew,getValues:eE,reset:eT,resetField:(e,t={})=>{g(c,e)&&(v(t.defaultValue)?ew(e,g(f,e)):(ew(e,t.defaultValue),M(f,e,t.defaultValue)),t.keepTouched||G(s.touchedFields,e),t.keepDirty||(G(s.dirtyFields,e),s.isDirty=t.defaultValue?eg(e,g(f,e)):eg()),!t.keepError&&(G(s.errors,e),O.isValid&&U()),T.state.next({...s}))},clearErrors:e=>{e&&E(e).forEach(e=>G(s.errors,e)),T.state.next({errors:e?s.errors:{}})},unregister:e_,setError:(e,t,n)=>{let r=(g(c,e,{_f:{}})._f||{}).ref;M(s.errors,e,{...t,ref:r}),T.state.next({name:e,errors:s.errors,isValid:!1}),n&&n.shouldFocus&&r&&r.focus&&r.focus()},setFocus:(e,t={})=>{let n=g(c,e),r=n&&n._f;if(r){let e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:eS}}(e,()=>s(e=>({...e}))),formState:n});let c=t.current.control;return c._options=e,!function(e){let t=r.useRef(e);t.current=e,r.useEffect(()=>{let n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}({subject:c._subjects.state,next:e=>{k(e,c._proxyFormState,c._updateFormState,!0)&&s({...c._formState})}}),r.useEffect(()=>{e.values&&!Q(e.values,c._defaultValues)?c._reset(e.values,c._options.resetOptions):c._resetDefaultValues()},[e.values,c]),r.useEffect(()=>{c._state.mount||(c._updateValid(),c._state.mount=!0),c._state.watch&&(c._state.watch=!1,c._subjects.state.next({...c._formState})),c._removeUnmounted()}),t.current.formState=w(n,c),t.current}},79381:function(e,t,n){"use strict";n.d(t,{J$:function(){return J},ZP:function(){return Q},JG:function(){return I},kY:function(){return K}});var r,i=n(2784),o=n(43100);let a=new WeakMap,s={},l={},u=()=>{},c=u(),d=Object,f=e=>e===c,h=e=>"function"==typeof e,p=(e,t)=>({...e,...t}),m="undefined",v=typeof window!=m,g=typeof document!=m,y=()=>v&&typeof window.requestAnimationFrame!=m,x=(e,t)=>{let n=a.get(e);return[()=>e.get(t)||s,r=>{if(!f(t)){let i=e.get(t);t in l||(l[t]=i),n[5](t,p(i,r),i||s)}},n[6],()=>!f(t)&&t in l?l[t]:e.get(t)||s]},b=new WeakMap,w=0,j=e=>{let t,n;let r=typeof e,i=e&&e.constructor,o=i==Date;if(d(e)!==e||o||i==RegExp)t=o?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=b.get(e))return t;if(t=++w+"~",b.set(e,t),i==Array){for(n=0,t="@";n(g&&document.addEventListener("visibilitychange",e),E("focus",e),()=>{g&&document.removeEventListener("visibilitychange",e),S("focus",e)}),initReconnect:e=>{let t=()=>{k=!0,e()},n=()=>{k=!1};return E("online",t),E("offline",n),()=>{S("online",t),S("offline",n)}}},C=!i.useId,O=!v||"Deno"in window,M=e=>y()?window.requestAnimationFrame(e):setTimeout(e,1),T=O?i.useEffect:i.useLayoutEffect,A="undefined"!=typeof navigator&&navigator.connection,P=!O&&A&&(["slow-2g","2g"].includes(A.effectiveType)||A.saveData),N=e=>{if(h(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?j(e):"",t]},R=0,D=()=>++R;var L={FOCUS_EVENT:0,RECONNECT_EVENT:1,MUTATE_EVENT:2,ERROR_REVALIDATE_EVENT:3};async function F(...e){let[t,n,r,i]=e,o=p({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),s=o.populateCache,l=o.rollbackOnError,u=o.optimisticData,d=!1!==o.revalidate,m=e=>"function"==typeof l?l(e):!1!==l,v=o.throwOnError;if(h(n)){let e=[],r=t.keys();for(let i=r.next();!i.done;i=r.next()){let r=i.value;!/^\$(inf|sub)\$/.test(r)&&n(t.get(r)._k)&&e.push(r)}return Promise.all(e.map(g))}return g(n);async function g(n){let i;let[o]=N(n);if(!o)return;let[l,p]=x(t,o),[g,y,b]=a.get(t),w=g[o],j=()=>d&&(delete b[o],w&&w[0])?w[0](2).then(()=>l().data):l().data;if(e.length<3)return j();let k=r,E=D();y[o]=[E,0];let S=!f(u),_=l(),C=_.data,O=_._c,M=f(O)?C:O;if(S&&p({data:u=h(u)?u(M):u,_c:M}),h(k))try{k=k(M)}catch(e){i=e}if(k&&h(k.then)){if(k=await k.catch(e=>{i=e}),E!==y[o][0]){if(i)throw i;return k}i&&S&&m(i)&&(s=!0,p({data:k=M,_c:c}))}s&&!i&&(h(s)&&(k=s(k,M)),p({data:k,_c:c})),y[o][1]=D();let T=await j();if(p({_c:c}),i){if(v)throw i;return}return s?T:k}}let z=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},V=(e,t)=>{if(!a.has(e)){let n=p(_,t),r={},i=F.bind(c,e),o=u,s={},l=(e,t)=>{let n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},d=(t,n,r)=>{e.set(t,n);let i=s[t];if(i)for(let e of i)e(n,r)},f=()=>{if(!a.has(e)&&(a.set(e,[r,{},{},{},i,d,l]),!O)){let t=n.initFocus(setTimeout.bind(c,z.bind(c,r,0))),i=n.initReconnect(setTimeout.bind(c,z.bind(c,r,1)));o=()=>{t&&t(),i&&i(),a.delete(e)}}};return f(),[e,i,f,o]}return[e,a.get(e)[4]]},[Z,I]=V(new Map),B=p({onLoadingSlow:u,onSuccess:u,onError:u,onErrorRetry:(e,t,n,r,i)=>{let o=n.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;(f(o)||!(a>o))&&setTimeout(r,s,i)},onDiscarded:u,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:P?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:P?5e3:3e3,compare:(e,t)=>j(e)==j(t),isPaused:()=>!1,cache:Z,mutate:I,fallback:{}},{isOnline:()=>k,isVisible:()=>{let e=g&&document.visibilityState;return f(e)||"hidden"!==e}}),H=(e,t)=>{let n=p(e,t);if(t){let{use:r,fallback:i}=e,{use:o,fallback:a}=t;r&&o&&(n.use=r.concat(o)),i&&a&&(n.fallback=p(i,a))}return n},U=(0,i.createContext)({}),W=v&&window.__SWR_DEVTOOLS_USE__,q=W?window.__SWR_DEVTOOLS_USE__:[],$=e=>h(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],K=()=>p(B,(0,i.useContext)(U)),Y=q.concat(e=>(t,n,r)=>{let i=n&&((...e)=>{let r=N(t)[0],[,,,i]=a.get(Z),o=i[r];return o?(delete i[r],o):n(...e)});return e(t,i,r)}),G=(e,t,n)=>{let r=t[e]||(t[e]=[]);return r.push(n),()=>{let e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}};W&&(window.__SWR_DEVTOOLS_REACT__=i);let X={dedupe:!0},J=d.defineProperty(e=>{let{value:t}=e,n=(0,i.useContext)(U),r=h(t),o=(0,i.useMemo)(()=>r?t(n):t,[r,n,t]),a=(0,i.useMemo)(()=>r?o:H(n,o),[r,n,o]),s=o&&o.provider,l=(0,i.useRef)(c);s&&!l.current&&(l.current=V(s(a.cache||Z),o));let u=l.current;return u&&(a.cache=u[0],a.mutate=u[1]),T(()=>{if(u)return u[2]&&u[2](),u[3]},[]),(0,i.createElement)(U.Provider,p(e,{value:a}))},"defaultValue",{value:B});var Q=(r=(e,t,n)=>{let{cache:r,compare:s,suspense:l,fallbackData:u,revalidateOnMount:d,revalidateIfStale:m,refreshInterval:v,refreshWhenHidden:g,refreshWhenOffline:y,keepPreviousData:b}=n,[w,j,k]=a.get(r),[E,S]=N(e),_=(0,i.useRef)(!1),A=(0,i.useRef)(!1),P=(0,i.useRef)(E),R=(0,i.useRef)(t),z=(0,i.useRef)(n),V=()=>z.current,Z=()=>V().isVisible()&&V().isOnline(),[I,B,H,U]=x(r,E),W=(0,i.useRef)({}).current,q=f(u)?n.fallback[E]:u,$=(e,t)=>{let n=!0;for(let r in W)"data"===r?s(t[r],e[r])||f(e[r])&&s(t[r],ei)||(n=!1):t[r]!==e[r]&&(n=!1);return n},K=(0,i.useMemo)(()=>{let e=!!E&&!!t&&(f(d)?!V().isPaused()&&!l&&(!!f(m)||m):d),n=t=>{let n=p(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=I(),i=U(),o=n(r),a=r===i?o:n(i),s=o;return[()=>{let e=n(I());return $(e,s)?s:s=e},()=>a]},[r,E]),Y=(0,o.useSyncExternalStore)((0,i.useCallback)(e=>H(E,(t,n)=>{$(n,t)||e()}),[r,E]),K[0],K[1]),J=!_.current,Q=w[E]&&w[E].length>0,ee=Y.data,et=f(ee)?q:ee,en=Y.error,er=(0,i.useRef)(et),ei=b?f(ee)?er.current:ee:et,eo=(!Q||!!f(en))&&(J&&!f(d)?d:!V().isPaused()&&(l?!f(et)&&m:f(et)||m)),ea=!!(E&&t&&J&&eo),es=f(Y.isValidating)?ea:Y.isValidating,el=f(Y.isLoading)?ea:Y.isLoading,eu=(0,i.useCallback)(async e=>{let t,r;let i=R.current;if(!E||!i||A.current||V().isPaused())return!1;let o=!0,a=e||{},l=!k[E]||!a.dedupe,u=()=>C?!A.current&&E===P.current&&_.current:E===P.current,d={isValidating:!1,isLoading:!1},p=()=>{B(d)},m=()=>{let e=k[E];e&&e[1]===r&&delete k[E]},v={isValidating:!0};f(I().data)&&(v.isLoading=!0);try{if(l&&(B(v),n.loadingTimeout&&f(I().data)&&setTimeout(()=>{o&&u()&&V().onLoadingSlow(E,n)},n.loadingTimeout),k[E]=[i(S),D()]),[t,r]=k[E],t=await t,l&&setTimeout(m,n.dedupingInterval),!k[E]||k[E][1]!==r)return l&&u()&&V().onDiscarded(E),!1;d.error=c;let e=j[E];if(!f(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return p(),l&&u()&&V().onDiscarded(E),!1;let a=I().data;d.data=s(a,t)?a:t,l&&u()&&V().onSuccess(t,E,n)}catch(n){m();let e=V(),{shouldRetryOnError:t}=e;!e.isPaused()&&(d.error=n,l&&u()&&(e.onError(n,E,e),(!0===t||h(t)&&t(n))&&Z()&&e.onErrorRetry(n,E,e,e=>{let t=w[E];t&&t[0]&&t[0](L.ERROR_REVALIDATE_EVENT,e)},{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return o=!1,p(),!0},[E,r]),ec=(0,i.useCallback)((...e)=>F(r,P.current,...e),[]);if(T(()=>{R.current=t,z.current=n,f(ee)||(er.current=ee)}),T(()=>{if(!E)return;let e=eu.bind(c,X),t=0,n=G(E,w,(n,r={})=>{if(n==L.FOCUS_EVENT){let n=Date.now();V().revalidateOnFocus&&n>t&&Z()&&(t=n+V().focusThrottleInterval,e())}else if(n==L.RECONNECT_EVENT)V().revalidateOnReconnect&&Z()&&e();else if(n==L.MUTATE_EVENT)return eu();else if(n==L.ERROR_REVALIDATE_EVENT)return eu(r)});return A.current=!1,P.current=E,_.current=!0,B({_k:S}),eo&&(f(et)||O?e():M(e)),()=>{A.current=!0,n()}},[E]),T(()=>{let e;function t(){let t=h(v)?v(et):v;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!I().error&&(g||V().isVisible())&&(y||V().isOnline())?eu(X).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[v,g,y,E]),(0,i.useDebugValue)(ei),l&&f(et)&&E){if(!C&&O)throw Error("Fallback data is required when using suspense in SSR.");throw R.current=t,z.current=n,A.current=!1,f(en)?eu(X):en}return{mutate:ec,get data(){return W.data=!0,ei},get error(){return W.error=!0,en},get isValidating(){return W.isValidating=!0,es},get isLoading(){return W.isLoading=!0,el}}},function(...e){let t=K(),[n,i,o]=$(e),a=H(t,o),s=r,{use:l}=a,u=(l||[]).concat(Y);for(let e=u.length;e--;)s=u[e](s);return s(n,i||a.fetcher||null,a)})},22970:function(e,t,n){"use strict";n.d(t,{CR:function(){return s},Jh:function(){return a},_T:function(){return i},ev:function(){return l},mG:function(){return o},pi:function(){return r}});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function o(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function a(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]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 l(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;ie?t.activeTargets.push(n):t.skippedTargets.push(n))})})},T=function(){var e=0;for(M(0);a.some(function(e){return e.activeTargets.length>0});)M(e=O());return a.some(function(e){return e.skippedTargets.length>0})&&l(),e>0},A=[],P=function(e){if(!o){var t=0,n=document.createTextNode("");new MutationObserver(function(){return A.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),o=function(){n.textContent=""+(t?t--:t++)}}A.push(e),o()},N=function(e){P(function(){requestAnimationFrame(e)})},R=0,D={attributes:!0,characterData:!0,childList:!0,subtree:!0},L=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Z=function(e){return void 0===e&&(e=0),Date.now()+e},F=!1,z=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),!F){F=!0;var n=Z(e);N(function(){var r=!1;try{r=T()}finally{if(F=!1,e=n-Z(),!R)return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},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,D)};document.body?t():v.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),L.forEach(function(t){return v.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),L.forEach(function(t){return v.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),V=function(e){!R&&e>0&&z.start(),(R+=e)||z.stop()},I=function(){function e(e,t){this.target=e,this.observedBox=t||i.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=S(this.target,this.observedBox,!0);return f(e=this.target)||m(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),B=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},H=new WeakMap,U=function(e,t){for(var n=0;nU(r.observationTargets,t)&&(i&&a.push(r),r.observationTargets.push(new I(t,n&&n.box)),V(1),z.schedule())},e.unobserve=function(e,t){var n=H.get(e),r=U(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&a.splice(a.indexOf(n),1),n.observationTargets.splice(r,1),V(-1))},e.disconnect=function(e){var t=this,n=H.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),q=function(){function e(e){if(0==arguments.length)throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");W.connect(this,e)}return e.prototype.observe=function(e,t){if(0==arguments.length)throw TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!p(e))throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");W.observe(this,e,t)},e.prototype.unobserve=function(e){if(0==arguments.length)throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!p(e))throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");W.unobserve(this,e)},e.prototype.disconnect=function(){W.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}()},41816:function(e,t,n){"use strict";function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}n.d(t,{M:function(){return r}})},26215:function(e,t,n){"use strict";n.d(t,{F:function(){return i},e:function(){return o}});var r=n(2784);function i(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function o(...e){return(0,r.useCallback)(i(...e),e)}},34540:function(e,t,n){"use strict";n.d(t,{b:function(){return o},k:function(){return i}});var r=n(2784);function i(e,t){let n=(0,r.createContext)(t);function i(e){let{children:t,...i}=e,o=(0,r.useMemo)(()=>i,Object.values(i));return(0,r.createElement)(n.Provider,{value:o},t)}return i.displayName=e+"Provider",[i,function(i){let o=(0,r.useContext)(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function o(e,t=[]){let n=[],i=()=>{let t=n.map(e=>(0,r.createContext)(e));return function(n){let i=(null==n?void 0:n[e])||t;return(0,r.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return i.scopeName=e,[function(t,i){let o=(0,r.createContext)(i),a=n.length;function s(t){let{scope:n,children:i,...s}=t,l=(null==n?void 0:n[e][a])||o,u=(0,r.useMemo)(()=>s,Object.values(s));return(0,r.createElement)(l.Provider,{value:u},i)}return n=[...n,i],s.displayName=t+"Provider",[s,function(n,s){let l=(null==s?void 0:s[e][a])||o,u=(0,r.useContext)(l);if(u)return u;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e),o=i[`__scope${r}`];return{...t,...o}},{});return(0,r.useMemo)(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(i,...t)]}},72331:function(e,t,n){"use strict";n.d(t,{Dx:function(){return K},VY:function(){return $},aV:function(){return q},dk:function(){return Y},fC:function(){return H},h_:function(){return W},x8:function(){return G},xz:function(){return U}});var r=n(7896),i=n(2784),o=n(41816),a=n(26215),s=n(34540),l=n(26074),u=n(73597),c=n(83317),d=n(77334),f=n(6500),h=n(28245),p=n(72130),m=n(55070),v=n(70506),g=n(49732),y=n(99575);let b="Dialog",[x,w]=(0,s.b)(b),[j,k]=x(b),E=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...s}=e,l=k("DialogTrigger",n),u=(0,a.e)(t,l.triggerRef);return(0,i.createElement)(p.WV.button,(0,r.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":V(l.open)},s,{ref:u,onClick:(0,o.M)(e.onClick,l.onOpenToggle)}))}),S="DialogPortal",[_,C]=x(S,{forceMount:void 0}),O="DialogOverlay",M=(0,i.forwardRef)((e,t)=>{let n=C(O,e.__scopeDialog),{forceMount:o=n.forceMount,...a}=e,s=k(O,e.__scopeDialog);return s.modal?(0,i.createElement)(h.z,{present:o||s.open},(0,i.createElement)(T,(0,r.Z)({},a,{ref:t}))):null}),T=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=k(O,n);return(0,i.createElement)(v.Z,{as:y.g7,allowPinchZoom:!0,shards:[a.contentRef]},(0,i.createElement)(p.WV.div,(0,r.Z)({"data-state":V(a.open)},o,{ref:t,style:{pointerEvents:"auto",...o.style}})))}),A="DialogContent",P=(0,i.forwardRef)((e,t)=>{let n=C(A,e.__scopeDialog),{forceMount:o=n.forceMount,...a}=e,s=k(A,e.__scopeDialog);return(0,i.createElement)(h.z,{present:o||s.open},s.modal?(0,i.createElement)(N,(0,r.Z)({},a,{ref:t})):(0,i.createElement)(R,(0,r.Z)({},a,{ref:t})))}),N=(0,i.forwardRef)((e,t)=>{let n=k(A,e.__scopeDialog),s=(0,i.useRef)(null),l=(0,a.e)(t,n.contentRef,s);return(0,i.useEffect)(()=>{let e=s.current;if(e)return(0,g.R)(e)},[]),(0,i.createElement)(D,(0,r.Z)({},e,{ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;r&&e.preventDefault()}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault())}))}),R=(0,i.forwardRef)((e,t)=>{let n=k(A,e.__scopeDialog),o=(0,i.useRef)(!1);return(0,i.createElement)(D,(0,r.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,i;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),o.current=!1},onInteractOutside:t=>{var r,i;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current=!0);let a=t.target,s=null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(a);s&&t.preventDefault()}}))}),D=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:l,...u}=e,f=k(A,n),h=(0,i.useRef)(null),p=(0,a.e)(t,h);return(0,m.EW)(),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(d.M,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:s,onUnmountAutoFocus:l},(0,i.createElement)(c.XB,(0,r.Z)({role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":V(f.open)},u,{ref:p,onDismiss:()=>f.onOpenChange(!1)}))),!1)}),L="DialogTitle",Z=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=k(L,n);return(0,i.createElement)(p.WV.h2,(0,r.Z)({id:a.titleId},o,{ref:t}))}),F=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=k("DialogDescription",n);return(0,i.createElement)(p.WV.p,(0,r.Z)({id:a.descriptionId},o,{ref:t}))}),z=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...a}=e,s=k("DialogClose",n);return(0,i.createElement)(p.WV.button,(0,r.Z)({type:"button"},a,{ref:t,onClick:(0,o.M)(e.onClick,()=>s.onOpenChange(!1))}))});function V(e){return e?"open":"closed"}let[I,B]=(0,s.k)("DialogTitleWarning",{contentName:A,titleName:L,docsSlug:"dialog"}),H=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,c=(0,i.useRef)(null),d=(0,i.useRef)(null),[f=!1,h]=(0,u.T)({prop:r,defaultProp:o,onChange:a});return(0,i.createElement)(j,{scope:t,triggerRef:c,contentRef:d,contentId:(0,l.M)(),titleId:(0,l.M)(),descriptionId:(0,l.M)(),open:f,onOpenChange:h,onOpenToggle:(0,i.useCallback)(()=>h(e=>!e),[h]),modal:s},n)},U=E,W=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=k(S,t);return(0,i.createElement)(_,{scope:t,forceMount:n},i.Children.map(r,e=>(0,i.createElement)(h.z,{present:n||a.open},(0,i.createElement)(f.h,{asChild:!0,container:o},e))))},q=M,$=P,K=Z,Y=F,G=z},83317:function(e,t,n){"use strict";let r;n.d(t,{XB:function(){return f}});var i=n(7896),o=n(2784),a=n(41816),s=n(72130),l=n(26215),u=n(86029);let c="dismissableLayer.update",d=(0,o.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=(0,o.forwardRef)((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:g,onDismiss:y,...b}=e,x=(0,o.useContext)(d),[w,j]=(0,o.useState)(null),[,k]=(0,o.useState)({}),E=(0,l.e)(t,e=>j(e)),S=Array.from(x.layers),[_]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),C=S.indexOf(_),O=w?S.indexOf(w):-1,M=x.layersWithOutsidePointerEventsDisabled.size>0,T=O>=C,A=function(e){let t=(0,u.W)(e),n=(0,o.useRef)(!1),r=(0,o.useRef)(()=>{});return(0,o.useEffect)(()=>{let e=e=>{if(e.target&&!n.current){let n={originalEvent:e};function i(){p("dismissableLayer.pointerDownOutside",t,n,{discrete:!0})}"touch"===e.pointerType?(document.removeEventListener("click",r.current),r.current=i,document.addEventListener("click",r.current,{once:!0})):i()}n.current=!1},i=window.setTimeout(()=>{document.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),document.removeEventListener("pointerdown",e),document.removeEventListener("click",r.current)}},[t]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,n=[...x.branches].some(e=>e.contains(t));!T||n||(null==m||m(e),null==g||g(e),e.defaultPrevented||null==y||y())}),P=function(e){let t=(0,u.W)(e),n=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{let e=e=>{e.target&&!n.current&&p("dismissableLayer.focusOutside",t,{originalEvent:e},{discrete:!1})};return document.addEventListener("focusin",e),()=>document.removeEventListener("focusin",e)},[t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target,n=[...x.branches].some(e=>e.contains(t));n||(null==v||v(e),null==g||g(e),e.defaultPrevented||null==y||y())});return!function(e){let t=(0,u.W)(e);(0,o.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t])}(e=>{let t=O===x.layers.size-1;t&&(null==f||f(e),!e.defaultPrevented&&y&&(e.preventDefault(),y()))}),(0,o.useEffect)(()=>{if(w)return n&&(0===x.layersWithOutsidePointerEventsDisabled.size&&(r=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(w)),x.layers.add(w),h(),()=>{n&&1===x.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=r)}},[w,n,x]),(0,o.useEffect)(()=>()=>{w&&(x.layers.delete(w),x.layersWithOutsidePointerEventsDisabled.delete(w),h())},[w,x]),(0,o.useEffect)(()=>{let e=()=>k({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,o.createElement)(s.WV.div,(0,i.Z)({},b,{ref:E,style:{pointerEvents:M?T?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.M)(e.onFocusCapture,P.onFocusCapture),onBlurCapture:(0,a.M)(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:(0,a.M)(e.onPointerDownCapture,A.onPointerDownCapture)}))});function h(){let e=new CustomEvent(c);document.dispatchEvent(e)}function p(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,s.jH)(i,o):i.dispatchEvent(o)}},55070:function(e,t,n){"use strict";n.d(t,{EW:function(){return o}});var r=n(2784);let i=0;function o(){(0,r.useEffect)(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:a()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:a()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}},77334:function(e,t,n){"use strict";let r;n.d(t,{M:function(){return f}});var i=n(7896),o=n(2784),a=n(26215),s=n(72130),l=n(86029);let u="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},f=(0,o.forwardRef)((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:f,onUnmountAutoFocus:g,...y}=e,[b,x]=(0,o.useState)(null),w=(0,l.W)(f),j=(0,l.W)(g),k=(0,o.useRef)(null),E=(0,a.e)(t,e=>x(e)),S=(0,o.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,o.useEffect)(()=>{if(r){function e(e){if(S.paused||!b)return;let t=e.target;b.contains(t)?k.current=t:m(k.current,{select:!0})}function t(e){S.paused||!b||b.contains(e.relatedTarget)||m(k.current,{select:!0})}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}},[r,b,S.paused]),(0,o.useEffect)(()=>{if(b){v.add(S);let e=document.activeElement,t=b.contains(e);if(!t){let t=new CustomEvent(u,d);b.addEventListener(u,w),b.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(m(r,{select:t}),document.activeElement!==n)return}(h(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&m(b))}return()=>{b.removeEventListener(u,w),setTimeout(()=>{let t=new CustomEvent(c,d);b.addEventListener(c,j),b.dispatchEvent(t),t.defaultPrevented||m(null!=e?e:document.body,{select:!0}),b.removeEventListener(c,j),v.remove(S)},0)}}},[b,w,j,S]);let _=(0,o.useCallback)(e=>{if(!n&&!r||S.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,o]=function(e){let t=h(e),n=p(t,e),r=p(t.reverse(),e);return[n,r]}(t),a=r&&o;a?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&m(o,{select:!0})):(e.preventDefault(),n&&m(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,S.paused]);return(0,o.createElement)(s.WV.div,(0,i.Z)({tabIndex:-1},y,{ref:E,onKeyDown:_}))});function h(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function p(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function m(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}let v=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=g(r,e)).unshift(e)},remove(e){var t;null===(t=(r=g(r,e))[0])||void 0===t||t.resume()}});function g(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},26074:function(e,t,n){"use strict";n.d(t,{M:function(){return l}});var r,i=n(2784),o=n(64680);let a=(r||(r=n.t(i,2)))["useId".toString()]||(()=>void 0),s=0;function l(e){let[t,n]=i.useState(a());return(0,o.b)(()=>{e||n(e=>null!=e?e:String(s++))},[e]),e||(t?`radix-${t}`:"")}},6500:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(7896),i=n(2784),o=n(28316),a=n(72130);let s=(0,i.forwardRef)((e,t)=>{var n;let{container:s=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...l}=e;return s?o.createPortal((0,i.createElement)(a.WV.div,(0,r.Z)({},l,{ref:t})),s):null})},28245:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var r=n(2784),i=n(28316),o=n(26215),a=n(64680);let s=e=>{let{present:t,children:n}=e,s=function(e){var t;let[n,o]=(0,r.useState)(),s=(0,r.useRef)({}),u=(0,r.useRef)(e),c=(0,r.useRef)("none"),d=e?"mounted":"unmounted",[f,h]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,r.useReducer)((e,n)=>{let r=t[e][n];return null!=r?r:e},d));return(0,r.useEffect)(()=>{let e=l(s.current);c.current="mounted"===f?e:"none"},[f]),(0,a.b)(()=>{let t=s.current,n=u.current,r=n!==e;if(r){let r=c.current,i=l(t);e?h("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?h("UNMOUNT"):n&&r!==i?h("ANIMATION_OUT"):h("UNMOUNT"),u.current=e}},[e,h]),(0,a.b)(()=>{if(n){let e=e=>{let t=l(s.current),r=t.includes(e.animationName);e.target===n&&r&&(0,i.flushSync)(()=>h("ANIMATION_END"))},t=e=>{e.target===n&&(c.current=l(s.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}h("ANIMATION_END")},[n,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:(0,r.useCallback)(e=>{e&&(s.current=getComputedStyle(e)),o(e)},[])}}(t),u="function"==typeof n?n({present:s.isPresent}):r.Children.only(n),c=(0,o.e)(s.ref,u.ref),d="function"==typeof n;return d||s.isPresent?(0,r.cloneElement)(u,{ref:c}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}s.displayName="Presence"},72130:function(e,t,n){"use strict";n.d(t,{WV:function(){return s},jH:function(){return l}});var r=n(7896),i=n(2784),o=n(28316),a=n(99575);let s=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,i.forwardRef)((e,n)=>{let{asChild:o,...s}=e,l=o?a.g7:t;return(0,i.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,i.createElement)(l,(0,r.Z)({},s,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function l(e,t){e&&(0,o.flushSync)(()=>e.dispatchEvent(t))}},99575:function(e,t,n){"use strict";n.d(t,{A4:function(){return l},g7:function(){return a}});var r=n(7896),i=n(2784),o=n(26215);let a=(0,i.forwardRef)((e,t)=>{let{children:n,...o}=e,a=i.Children.toArray(n),l=a.find(u);if(l){let e=l.props.children,n=a.map(t=>t!==l?t:i.Children.count(e)>1?i.Children.only(null):(0,i.isValidElement)(e)?e.props.children:null);return(0,i.createElement)(s,(0,r.Z)({},o,{ref:t}),(0,i.isValidElement)(e)?(0,i.cloneElement)(e,void 0,n):null)}return(0,i.createElement)(s,(0,r.Z)({},o,{ref:t}),n)});a.displayName="Slot";let s=(0,i.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,i.isValidElement)(n)?(0,i.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r],a=/^on[A-Z]/.test(r);a?n[r]=(...e)=>{null==o||o(...e),null==i||i(...e)}:"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:(0,o.F)(t,n.ref)}):i.Children.count(n)>1?i.Children.only(null):null});s.displayName="SlotClone";let l=({children:e})=>(0,i.createElement)(i.Fragment,null,e);function u(e){return(0,i.isValidElement)(e)&&e.type===l}},86029:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(2784);function i(e){let t=(0,r.useRef)(e);return(0,r.useEffect)(()=>{t.current=e}),(0,r.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}},73597:function(e,t,n){"use strict";n.d(t,{T:function(){return o}});var r=n(2784),i=n(86029);function o({prop:e,defaultProp:t,onChange:n=()=>{}}){let[o,a]=function({defaultProp:e,onChange:t}){let n=(0,r.useState)(e),[o]=n,a=(0,r.useRef)(o),s=(0,i.W)(t);return(0,r.useEffect)(()=>{a.current!==o&&(s(o),a.current=o)},[o,a,s]),n}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:o,u=(0,i.W)(n),c=(0,r.useCallback)(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else a(t)},[s,e,a,u]);return[l,c]}},64680:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(2784);let i=(null==globalThis?void 0:globalThis.document)?r.useLayoutEffect:()=>{}},25447:function(e,t,n){"use strict";e.exports=n(44868)},99550:function(e,t,n){"use strict";e.exports=n(22360)},6901:function(e,t,n){"use strict";e.exports=n(78476)},8669:function(e,t,n){"use strict";e.exports=n(19455)},53609:function(e,t,n){"use strict";e.exports=n(96721)},81401:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.children,n=void 0===t?s.default:t,p=e.axisClassName,v=e.hideAxisLine,g=e.hideTicks,y=e.hideZero,b=void 0!==y&&y,x=e.left,w=e.numTicks,j=void 0===w?10:w,k=e.orientation,E=void 0===k?d.default.bottom:k,S=e.rangePadding,_=void 0===S?0:S,C=e.scale,O=e.tickFormat,M=e.tickLength,T=void 0===M?8:M,A=e.tickValues,P=e.top,N=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,h),R=null!=O?O:(0,u.default)(C),D=E===d.default.left,L=E===d.default.top,Z=L||E===d.default.bottom,F=(0,l.default)(C),z=D||L?-1:1,V=C.range(),I=(0,f.default)(_),B=(0,c.default)({x:Number(V[0])+.5-I.start,y:0},Z),H=(0,c.default)({x:Number(V[V.length-1])+.5+I.end,y:0},Z),U=(null!=A?A:(0,a.getTicks)(C,j)).filter(function(e){return!b||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),W=U.map(function(e){var t=e.value,n=e.index,r=(0,a.coerceNumber)(F(t));return{value:t,index:n,from:(0,c.default)({x:r,y:0},Z),to:(0,c.default)({x:r,y:T*z},Z),formattedValue:R(t,n,U)}});return r.default.createElement(o.Group,{className:(0,i.default)("visx-axis",p),top:void 0===P?0:P,left:void 0===x?0:x},n(m({},N,{axisFromPoint:B,axisToPoint:H,hideAxisLine:void 0!==v&&v,hideTicks:void 0!==g&&g,hideZero:b,horizontal:Z,numTicks:j,orientation:E,rangePadding:_,scale:C,tickFormat:R,tickLength:T,tickPosition:F,tickSign:z,ticks:W})))},p(n(13980));var r=p(n(2784)),i=p(n(72779)),o=n(71602),a=n(63243),s=p(n(58052)),l=p(n(71387)),u=p(n(16882)),c=p(n(89591)),d=p(n(87209)),f=p(n(31863)),h=["children","axisClassName","hideAxisLine","hideTicks","hideZero","left","numTicks","orientation","rangePadding","scale","tickFormat","tickLength","tickValues","top"];function p(e){return e&&e.__esModule?e:{default:e}}function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:a.default.bottom,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))};var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:a.default.left,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.leftTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-right",t),labelOffset:void 0===n?36:n,orientation:a.default.right,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.rightTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-top",t),labelOffset:void 0===n?8:n,orientation:a.default.top,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.topTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(r=a()).done;){var s=r.value,l=Math.sqrt(Math.pow(s.x-e.x,2)+Math.pow(s.y-e.y,2));l0)?(0,i.default)(e,t):{x:(0,r.default)(e.x,null!=(o=n.xMin)?o:-1/0,null!=(a=n.xMax)?a:1/0),y:(0,r.default)(e.y,null!=(s=n.yMin)?s:-1/0,null!=(l=n.yMax)?l:1/0)}};var r=o(n(30968)),i=o(n(98929));function o(e){return e&&e.__esModule?e:{default:e}}},32722:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return(0,r.useMemo)(function(){if(!e)return[];var t=e.getCTM()||new DOMMatrix;return function(e,t,n){if(void 0===n&&(n=1),!e)return[];for(var r=[],i=e.getTotalLength(),o=0;o<=i;o+=n){var a=e.getPointAtLength(o).matrixTransform(t);r.push(a)}return r}(e,t)},[null==e?void 0:e.getTotalLength()])};var r=n(2784)},37016:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=(0,r.useState)(e),n=t[0],i=t[1],o=(0,r.useRef)(null),a=(0,r.useCallback)(function(e,t){o.current=t||null,i(e)},[i]);return(0,r.useLayoutEffect)(function(){o.current&&(o.current(n),o.current=null)},[n]),[n,a]};var r=n(2784)},65319:function(e,t,n){"use strict";n.r(t),n.d(t,{localPoint:function(){return r.Z},touchPoint:function(){return i.Z}});var r=n(91032),i=n(49833)},91032:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(49833),i=n(44321);function o(e,t){if((0,i.kK)(e)&&t)return(0,r.Z)(e,t);if((0,i.cO)(e)){var n=e.target;if(n)return(0,r.Z)(n,e)}return null}},49833:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(19067),i=n(44321);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:o({},a);if((0,i.N5)(e))return{x:e.clientX,y:e.clientY};var t=null==e?void 0:e.target,n=t&&"getBoundingClientRect"in t?t.getBoundingClientRect():null;return n?{x:n.x+n.width/2,y:n.y+n.height/2}:o({},a)}(t),s=(0,i.vZ)(e)?e.ownerSVGElement:e,l=(0,i.DY)(s)?s.getScreenCTM():null;if((0,i.r4)(s)&&l){var u=s.createSVGPoint();return u.x=n.x,u.y=n.y,u=u.matrixTransform(l.inverse()),new r.Z({x:u.x,y:u.y})}var c=e.getBoundingClientRect();return new r.Z({x:n.x-c.left-e.clientLeft,y:n.y-c.top-e.clientTop})}},44321:function(e,t,n){"use strict";function r(e){return!!e&&e instanceof Element}function i(e){return!!e&&(e instanceof SVGElement||"ownerSVGElement"in e)}function o(e){return!!e&&"createSVGPoint"in e}function a(e){return!!e&&"getScreenCTM"in e}function s(e){return!!e&&"changedTouches"in e}function l(e){return!!e&&"clientX"in e}function u(e){return!!e&&(e instanceof Event||"nativeEvent"in e&&e.nativeEvent instanceof Event)}n.d(t,{DY:function(){return a},N5:function(){return l},cO:function(){return u},kK:function(){return r},r4:function(){return o},vZ:function(){return i},z6:function(){return s}})},21516:function(e,t,n){"use strict";t.__esModule=!0,t.default=p;var r=f(n(13980)),i=f(n(2784)),o=f(n(72779)),a=f(n(47440)),s=n(71602),l=n(61305),u=n(63243),c=f(n(12345)),d=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function f(e){return e&&e.__esModule?e:{default:e}}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),_=null!=k?k:(0,u.getTicks)(r,void 0===x?10:x),C=(null!=j?j:0)+(0,c.default)(r)/2,O=_.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+C;return{index:t,from:new l.Point({x:i,y:0}),to:new l.Point({x:i,y:f})}});return i.default.createElement(s.Group,{className:(0,o.default)("visx-columns",b),top:void 0===t?0:t,left:void 0===n?0:n},E?E({lines:O}):O.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(a.default,h({key:"column-line-"+r,from:t,to:n,stroke:m,strokeWidth:g,strokeDasharray:y,style:w},S))}))}p.propTypes={tickValues:r.default.array,height:r.default.number.isRequired}},34264:function(e,t,n){"use strict";t.__esModule=!0,t.default=p;var r=f(n(13980)),i=f(n(2784)),o=f(n(72779)),a=f(n(47440)),s=n(71602),l=n(61305),u=n(63243),c=f(n(12345)),d=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function f(e){return e&&e.__esModule?e:{default:e}}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),_=null!=E?E:(0,u.getTicks)(r,void 0===w?10:w),C=(null!=k?k:0)+(0,c.default)(r)/2,O=_.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+C;return{index:t,from:new l.Point({x:0,y:i}),to:new l.Point({x:f,y:i})}});return i.default.createElement(s.Group,{className:(0,o.default)("visx-rows",b),top:void 0===t?0:t,left:void 0===n?0:n},x?x({lines:O}):O.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(a.default,h({key:"row-line-"+r,from:t,to:n,stroke:m,strokeWidth:g,strokeDasharray:y,style:j},S))}))}p.propTypes={tickValues:r.default.array,width:r.default.number.isRequired}},12345:function(e,t){"use strict";t.__esModule=!0,t.default=function(e){return"bandwidth"in e?e.bandwidth():0}},59309:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(13980),i=n.n(r),o=n(2784),a=n(72779),s=n.n(a),l=["top","left","transform","className","children","innerRef"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,l);return o.createElement("g",u({ref:c,className:s()("visx-group",i),transform:r||"translate("+(void 0===n?0:n)+", "+(void 0===t?0:t)+")"},d),a)}c.propTypes={top:i().number,left:i().number,transform:i().string,className:i().string,children:i().node,innerRef:i().oneOfType([i().string,i().func,i().object])}},71602:function(e,t,n){"use strict";n.r(t),n.d(t,{Group:function(){return r.Z}});var r=n(59309)},19067:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=function(){function e(e){var t=e.x,n=e.y;this.x=0,this.y=0,this.x=void 0===t?0:t,this.y=void 0===n?0:n}var t=e.prototype;return t.value=function(){return{x:this.x,y:this.y}},t.toArray=function(){return[this.x,this.y]},e}()},61305:function(e,t,n){"use strict";n.r(t),n.d(t,{Point:function(){return r.Z},subtractPoints:function(){return o},sumPoints:function(){return i}});var r=n(19067);function i(e,t){return new r.Z({x:e.x+t.x,y:e.y+t.y})}function o(e,t){return new r.Z({x:e.x-t.x,y:e.y-t.y})}},93125:function(e,t,n){"use strict";t.Z=function(e){var t=e.animationTrajectory,n=e.tickComponent,s=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,a),l=(0,r.useMemo)(function(){return function(e){return r.default.createElement(o.default,u({},e,{tickComponent:n,animationTrajectory:t}))}},[t,n]);return r.default.createElement(i.default,u({},s,{ticksComponent:l}))},l(n(13980));var r=function(e,t){if(!t&&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]}return r.default=e,n&&n.set(e,r),r}(n(2784)),i=l(n(81401)),o=l(n(65154)),a=["animationTrajectory","tickComponent"];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 l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a);return r.default.createElement(i.default,{scale:t,height:n,numTicks:s,tickValues:u,className:c,top:f,left:h},function(e){var n=e.lines;return r.default.createElement(o.default,l({scale:t,lines:n,animationTrajectory:d,animateXOrY:"x",lineKey:function(e){var t,n;return"column-"+(null!=(t=null==e?void 0:null==(n=e.from)?void 0:n.x)?t:"")+"-"+e.index}},p))})};var r=s(n(2784)),i=s(n(21516)),o=s(n(55727)),a=["scale","height","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),h=(0,o.useTransition)(n,u({},(0,a.default)({scale:t,animateXOrY:l,animationTrajectory:r}),{key:c}));return i.default.createElement(i.default.Fragment,null,h(function(e,t,n){var r=e.fromX,a=e.toX,s=e.fromY,l=e.toY,c=e.opacity,h=n.key;return i.default.createElement(o.animated.line,u({key:h,x1:r,x2:a,y1:s,y2:l,strokeOpacity:c,style:d},f))}))}c.propTypes={lineKey:r.default.func.isRequired}},93353:function(e,t,n){"use strict";t.Z=function(e){var t=e.scale,n=e.width,s=e.numTicks,u=e.tickValues,c=(e.offset,e.className),d=e.animationTrajectory,f=e.top,h=e.left,p=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,a);return r.default.createElement(i.default,{scale:t,width:n,numTicks:s,tickValues:u,className:c,top:f,left:h},function(e){var n=e.lines;return r.default.createElement(o.default,l({scale:t,lines:n,animationTrajectory:d,animateXOrY:"y",lineKey:function(e){var t,n;return"row-"+(null!=(t=null==e?void 0:null==(n=e.from)?void 0:n.y)?t:"")+"-"+e.index}},p))})};var r=s(n(2784)),i=s(n(34264)),o=s(n(55727)),a=["scale","width","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),g=(0,o.useRef)(null),y=(0,o.useRef)(0),b=(0,o.useState)({width:0,height:0,top:0,left:0}),x=b[0],w=b[1],j=(0,o.useMemo)(function(){var e=Array.isArray(f)?f:[f];return(0,i.default)(function(t){w(function(n){return Object.keys(n).filter(function(e){return n[e]!==t[e]}).every(function(t){return e.includes(t)})?n:t})},l,{leading:m})},[l,m,f]);return(0,o.useEffect)(function(){var e=new a.ResizeObserver(function(e){void 0===e&&(e=[]),e.forEach(function(e){var t=e.contentRect,n=t.left,r=t.top,i=t.width,o=t.height;y.current=window.requestAnimationFrame(function(){j({width:i,height:o,top:r,left:n})})})});return g.current&&e.observe(g.current),function(){window.cancelAnimationFrame(y.current),e.disconnect(),null!=j&&j.cancel&&j.cancel()}},[j]),o.default.createElement("div",c({style:void 0===h?{width:"100%",height:"100%"}:h,ref:g,className:t},v),n(c({},x,{ref:g.current,resize:j})))}f.propTypes={className:r.default.string,debounceTime:r.default.number,enableDebounceLeadingCall:r.default.bool,ignoreDimensions:r.default.oneOfType([r.default.any,r.default.arrayOf(r.default.any)]),children:r.default.func.isRequired}},2663:function(e,t,n){"use strict";var r=n(8597),i=n(12430),o=n(70590),a=n(50630),s=n(34278),l=n(64183),u=n(61662),c=n(43634),d=n(73335),f=n(54229),h=n(30558),p=n(71646),m=n(26587);t.Z=function(e){if(void 0!==e&&"type"in e)switch(e.type){case"linear":break;case"log":return(0,i.Z)(e);case"pow":return(0,o.Z)(e);case"sqrt":return(0,a.Z)(e);case"symlog":return(0,s.Z)(e);case"time":return(0,l.Z)(e);case"utc":return(0,u.Z)(e);case"quantile":return(0,c.Z)(e);case"quantize":return(0,d.Z)(e);case"threshold":return(0,f.Z)(e);case"ordinal":return(0,h.Z)(e);case"point":return(0,p.Z)(e);case"band":return(0,m.Z)(e)}return(0,r.Z)(e)}},63243:function(e,t,n){"use strict";n.r(t),n.d(t,{coerceNumber:function(){return S.Z},createScale:function(){return x.Z},getTicks:function(){return _.Z},inferScaleType:function(){return E},scaleBand:function(){return r.Z},scaleCanBeZeroed:function(){return O.Z},scaleLinear:function(){return o.Z},scaleLog:function(){return f.Z},scaleOrdinal:function(){return p.Z},scalePoint:function(){return i.Z},scalePower:function(){return h.Z},scaleQuantile:function(){return v.Z},scaleQuantize:function(){return m.Z},scaleRadial:function(){return u},scaleSqrt:function(){return b.Z},scaleSymlog:function(){return g.Z},scaleThreshold:function(){return y.Z},scaleTime:function(){return c.Z},scaleUtc:function(){return d.Z},toString:function(){return C.Z},updateScale:function(){return j}});var r=n(26587),i=n(71646),o=n(8597),a=n(19637),s=n(25176),l=(0,s.Z)("domain","range","clamp","nice","round","unknown");function u(e){return l((0,a.Z)(),e)}var c=n(64183),d=n(61662),f=n(12430),h=n(70590),p=n(30558),m=n(73335),v=n(43634),g=n(34278),y=n(54229),b=n(50630),x=n(2663),w=s.Z.apply(void 0,s.a),j=function(e,t){return w(e.copy(),t)},k=n(40668);function E(e){return"paddingInner"in e?"band":"padding"in e?"point":"quantiles"in e?"quantile":"base"in e?"log":"exponent"in e?.5===e.exponent()?"sqrt":"pow":"constant"in e?"symlog":"clamp"in e?e.ticks()[0]instanceof Date?(0,k.Z)(e)?"utc":"time":"linear":"nice"in e?"quantize":"invertExtent"in e?"threshold":"ordinal"}var S=n(28142),_=n(71220),C=n(51519),O=n(34636)},25176:function(e,t,n){"use strict";n.d(t,{a:function(){return _},Z:function(){return O}});var r=n(88751),i=n(87286),o=n(43780),a=n(77636),s=n(78978),l={lab:r.Z,hcl:i.Z,"hcl-long":i.b,hsl:o.Z,"hsl-long":o.q,cubehelix:a.Z,"cubehelix-long":a.B,rgb:s.ZP},u=n(68603),c=n(54076),d=n(18450),f=n(50690),h=n(52546),p=n(76231),m=n(97344),v=n(12370),g=n(28239),y=n(52004),b=n(94758),x=n(97631),w=n(2908),j=n(40668),k={day:u.Z,hour:c.Z,minute:d.Z,month:f.Z,second:h.Z,week:p.OM,year:m.Z},E={day:v.Z,hour:g.Z,minute:y.Z,month:b.Z,second:h.Z,week:x.Ox,year:w.Z},S=n(74672),_=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],C={domain:function(e,t){t.domain&&e.domain(t.domain)},nice:function(e,t){if("nice"in t&&void 0!==t.nice&&"nice"in e){var n=t.nice;if("boolean"==typeof n)n&&e.nice();else if("number"==typeof n)e.nice(n);else{var r=(0,j.Z)(e);if("string"==typeof n)e.nice(r?E[n]:k[n]);else{var i=n.interval,o=n.step,a=(r?E[i]:k[i]).every(o);null!=a&&e.nice(a)}}}},zero:function(e,t){if("zero"in t&&!0===t.zero){var n=e.domain(),r=n[0],i=n[1],o=i=0||(i[n]=e[n]);return i}(e,s),y=(0,a.Nb)({innerRadius:i,outerRadius:u,cornerRadius:c,startAngle:d,endAngle:f,padAngle:h,padRadius:p});return m?r.createElement(r.Fragment,null,m({path:y})):n||null!=d&&null!=f&&null!=i&&null!=u?r.createElement("path",l({ref:v,className:o()("visx-arc",t),d:y(n)||""},g)):(console.warn("[@visx/shape/Arc]: expected data because one of startAngle, endAngle, innerRadius, outerRadius is undefined. Bailing."),null)}var c=n(59309),d=["className","top","left","data","centroid","innerRadius","outerRadius","cornerRadius","startAngle","endAngle","padAngle","padRadius","pieSort","pieSortValues","pieValue","children","fill"];function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),_=(0,a.Nb)({innerRadius:void 0===u?0:u,outerRadius:h,cornerRadius:p,padRadius:y}),C=(0,a.ve)({startAngle:m,endAngle:v,padAngle:g,value:w,sort:b,sortValues:x}),O=C(void 0===s?[]:s);return j?r.createElement(r.Fragment,null,j({arcs:O,path:_,pie:C})):r.createElement(c.Z,{className:"visx-pie-arcs-group",top:n,left:i},O.map(function(e,n){return r.createElement("g",{key:"pie-arc-"+n},r.createElement("path",f({className:o()("visx-pie-arc",t),d:_(e)||"",fill:null==E||"string"==typeof E?E:E(e)},S)),null==l?void 0:l(_.centroid(e),e))}))}var p=n(63739),m=n(27079),v=["className","angle","radius","defined","curve","data","innerRef","children","fill"];function g(){return(g=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,v),m=(0,a.aJ)({angle:n,radius:i,defined:s,curve:l});return f?r.createElement(r.Fragment,null,f({path:m})):r.createElement("path",g({ref:d,className:o()("visx-line-radial",t),d:m(c)||"",fill:void 0===h?"transparent":h},p))}var b=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function x(){return(x=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,b),y=(0,a.SO)({x:n,x0:i,x1:s,y:l,y0:u,y1:c,defined:void 0===h?function(){return!0}:h,curve:m});return t?r.createElement(r.Fragment,null,t({path:y})):r.createElement("path",x({ref:v,className:o()("visx-area",p),d:y(f)||""},g))}var j=n(55746),k=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function E(){return(E=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,k),S=(0,a.kn)({keys:s,value:g,order:y,offset:b}),_=(0,a.SO)({x:f,x0:h,x1:p,y0:m,y1:v,curve:u,defined:d}),C=S(l);return w?r.createElement(r.Fragment,null,w({stacks:C,path:_,stack:S})):r.createElement(c.Z,{top:n,left:i},C.map(function(e,n){return r.createElement("path",E({className:o()("visx-stack",t),key:"stack-"+n+"-"+(e.key||""),d:_(e)||"",fill:null==x?void 0:x(e.key,n)},j))}))}var _=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function C(){return(C=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,_);return r.createElement(S,C({className:t,top:n,left:i,keys:a,data:s,curve:l,defined:u,x:c,x0:d,x1:f,y0:h,y1:p,value:m,order:v,offset:g,color:y},x),b||function(e){var n=e.stacks,i=e.path;return n.map(function(e,n){return r.createElement("path",C({className:o()("visx-area-stack",t),key:"area-stack-"+n+"-"+(e.key||""),d:i(e)||"",fill:null==y?void 0:y(e.key,n)},x))})})}var M=n(14582),T=n(10897);function A(e){if("bandwidth"in e)return e.bandwidth();var t=e.range(),n=e.domain();return Math.abs(t[t.length-1]-t[0])/n.length}var P=["data","className","top","left","x0","x0Scale","x1Scale","yScale","color","keys","height","children"];function N(){return(N=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,P),g=A(u),y=t.map(function(e,t){return{index:t,x0:l(s(e)),bars:h.map(function(t,n){var r=e[t];return{index:n,key:t,value:r,width:g,x:u(t)||0,y:d(r)||0,color:f(t,n),height:p-(d(r)||0)}})}});return m?r.createElement(r.Fragment,null,m(y)):r.createElement(c.Z,{className:o()("visx-bar-group",n),top:i,left:a},y.map(function(e){return r.createElement(c.Z,{key:"bar-group-"+e.index+"-"+e.x0,left:e.x0},e.bars.map(function(t){return r.createElement(M.Z,N({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},v))}))}))}var D=["data","className","top","left","x","y0","y0Scale","y1Scale","xScale","color","keys","width","children"];function L(){return(L=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,D),y=A(f),b=t.map(function(e,t){return{index:t,y0:d(u(e))||0,bars:m.map(function(t,n){var r=e[t];return{index:n,key:t,value:r,height:y,x:l(r)||0,y:f(t)||0,color:p(t,n),width:h(r)||0}})}});return v?r.createElement(r.Fragment,null,v(b)):r.createElement(c.Z,{className:o()("visx-bar-group-horizontal",n),top:i,left:a},b.map(function(e){return r.createElement(c.Z,{key:"bar-group-"+e.index+"-"+e.y0,top:e.y0},e.bars.map(function(t){return r.createElement(M.Z,L({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},g))}))}))}var F=n(98926);function z(e){return"number"==typeof(null==e?void 0:e.x)?null==e?void 0:e.x:0}function V(e){return"number"==typeof(null==e?void 0:e.y)?null==e?void 0:e.y:0}function I(e){return null==e?void 0:e.source}function B(e){return null==e?void 0:e.target}function H(e){return null==e?void 0:e[0]}function U(e){return null==e?void 0:e[1]}var W=n(26078),q=n(44081),$=n(30382),K=["data","className","top","left","x","y0","y1","xScale","yScale","color","keys","value","order","offset","children"];function Y(){return(Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,K),j=(0,F.Z)();v&&j.keys(v),g&&(0,W.Z)(j.value,g),y&&j.order((0,q.ZP)(y)),b&&j.offset((0,$.ZP)(b));var k=j(t),E=A(h),S=k.map(function(e,t){var n=e.key;return{index:t,key:n,bars:e.map(function(t,r){var i=(p(u(t))||0)-(p(f(t))||0),o=p(f(t)),a="bandwidth"in h?h(s(t.data)):Math.max((h(s(t.data))||0)-E/2);return{bar:t,key:n,index:r,height:i,width:E,x:a||0,y:o||0,color:m(e.key,r)}})}});return x?r.createElement(r.Fragment,null,x(S)):r.createElement(c.Z,{className:o()("visx-bar-stack",n),top:i,left:a},S.map(function(e){return e.bars.map(function(t){return r.createElement(M.Z,Y({key:"bar-stack-"+e.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},w))})}))}var X=["data","className","top","left","y","x0","x1","xScale","yScale","color","keys","value","order","offset","children"];function Q(){return(Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,X),j=(0,F.Z)();v&&j.keys(v),g&&(0,W.Z)(j.value,g),y&&j.order((0,q.ZP)(y)),b&&j.offset((0,$.ZP)(b));var k=j(t),E=A(p),S=k.map(function(e,t){var n=e.key;return{index:t,key:n,bars:e.map(function(t,r){var i=(h(f(t))||0)-(h(u(t))||0),o=h(u(t)),a="bandwidth"in p?p(s(t.data)):Math.max((p(s(t.data))||0)-i/2);return{bar:t,key:n,index:r,height:E,width:i,x:o||0,y:a||0,color:m(e.key,r)}})}});return x?r.createElement(r.Fragment,null,x(S)):r.createElement(c.Z,{className:o()("visx-bar-stack-horizontal",n),top:i,left:a},S.map(function(e){return e.bars.map(function(t){return r.createElement(M.Z,Q({key:"bar-stack-"+e.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},w))})}))}var ee=function(e){return Math.PI/180*e},et=n(72215),en=["className","children","data","innerRef","path","x","y","source","target"];function er(){return(er=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,en),h=s||ei({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?V:l,y:void 0===u?z:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",er({ref:a,className:o()("visx-link visx-link-horizontal-diagonal",t),d:h(i)||""},f))}var ea=["className","children","data","innerRef","path","x","y","source","target"];function es(){return(es=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ea),h=s||el({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?z:l,y:void 0===u?V:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",es({ref:a,className:o()("visx-link visx-link-vertical-diagonal",t),d:h(i)||""},f))}var ec=["className","children","data","innerRef","path","angle","radius","source","target"];function ed(){return(ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ec),h=s||ef({source:void 0===c?I:c,target:void 0===d?B:d,angle:void 0===l?z:l,radius:void 0===u?V:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",ed({ref:a,className:o()("visx-link visx-link-radial-diagonal",t),d:h(i)||""},f))}var ep=n(91672),em=["className","children","data","innerRef","path","percent","x","y","source","target"];function ev(){return(ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,em),p=s||eg({source:void 0===d?I:d,target:void 0===f?B:f,x:void 0===u?V:u,y:void 0===c?z:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",ev({ref:a,className:o()("visx-link visx-link-horizontal-curve",t),d:p(i)||""},h))}var eb=["className","children","data","innerRef","path","percent","x","y","source","target"];function ex(){return(ex=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eb),p=s||ew({source:void 0===d?I:d,target:void 0===f?B:f,x:void 0===u?z:u,y:void 0===c?V:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",ex({ref:a,className:o()("visx-link visx-link-vertical-curve",t),d:p(i)||""},h))}var ek=["className","children","data","innerRef","path","percent","x","y","source","target"];function eE(){return(eE=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ek),p=s||eS({source:void 0===d?I:d,target:void 0===f?B:f,x:void 0===u?z:u,y:void 0===c?V:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",eE({ref:a,className:o()("visx-link visx-link-radial-curve",t),d:p(i)||""},h))}var eC=["className","children","innerRef","data","path","x","y","source","target"];function eO(){return(eO=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eC),h=s||eM({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?V:l,y:void 0===u?z:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",eO({ref:i,className:o()("visx-link visx-link-horizontal-line",t),d:h(a)||""},f))}var eA=["className","innerRef","data","path","x","y","source","target","children"];function eP(){return(eP=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eA),h=a||eN({source:void 0===u?I:u,target:void 0===c?B:c,x:void 0===s?z:s,y:void 0===l?V:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eP({ref:n,className:o()("visx-link visx-link-vertical-line",t),d:h(i)||""},f))}var eD=["className","innerRef","data","path","x","y","source","target","children"];function eL(){return(eL=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eD),h=a||eZ({source:void 0===u?I:u,target:void 0===c?B:c,x:void 0===s?z:s,y:void 0===l?V:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eL({ref:n,className:o()("visx-link visx-link-radial-line",t),d:h(i)||""},f))}var ez=["className","innerRef","data","path","percent","x","y","source","target","children"];function eV(){return(eV=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ez),p=a||eI({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?V:l,y:void 0===u?z:u,percent:void 0===s?.5:s});return f?r.createElement(r.Fragment,null,f({path:p})):r.createElement("path",eV({ref:n,className:o()("visx-link visx-link-horizontal-step",t),d:p(i)||""},h))}var eH=["className","innerRef","data","path","percent","x","y","source","target","children"];function eU(){return(eU=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eH),p=a||eW({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?z:l,y:void 0===u?V:u,percent:void 0===s?.5:s});return f?r.createElement(r.Fragment,null,f({path:p})):r.createElement("path",eU({ref:n,className:o()("visx-link visx-link-vertical-step",t),d:p(i)||""},h))}var e$=["className","innerRef","data","path","x","y","source","target","children"];function eK(){return(eK=Object.assign?Object.assign.bind():function(e){for(var t=1;tMath.PI?f<=d:f>d)?1:0)+","+l*h+","+l*p+"\n L"+c*h+","+c*p+"\n "}}function eG(e){var t=e.className,n=e.innerRef,i=e.data,a=e.path,s=e.x,l=e.y,u=e.source,c=e.target,d=e.children,f=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,e$),h=a||eY({source:void 0===u?I:u,target:void 0===c?B:c,x:void 0===s?z:s,y:void 0===l?V:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eK({ref:n,className:o()("visx-link visx-link-radial-step",t),d:h(i)||""},f))}var eX=["sides","size","center","rotate","className","children","innerRef","points"];function eQ(){return(eQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eX),f=c||e1({sides:void 0===t?4:t,size:void 0===n?25:n,center:void 0===i?eJ:i,rotate:void 0===a?0:a}).map(function(e){return[e.x,e.y]});return l?r.createElement(r.Fragment,null,l({points:f})):r.createElement("polygon",eQ({ref:u,className:o()("visx-polygon",s),points:f.join(" ")},d))}var e4=["className","innerRef"];function e3(){return(e3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,e4);return r.createElement("circle",e3({ref:n,className:o()("visx-circle",t)},i))}var e6=n(13980),e8=n.n(e6),e7="http://www.w3.org/2000/svg",e9=function(){return!0};function te(){return(te=Object.assign?Object.assign.bind():function(e){for(var t=1;tf[i]?d.map(function(e){return void 0===e?e9:function(t){return t>=e}}):d.map(function(e){return void 0===e?e9:function(t){return t<=e}}),p=0,m=0;m<=l;m+=a){for(var v=s.getPointAtLength(m),g=v[i];p=w[E+1];)E+=1;c[E].push(_)}}return c}catch(e){return[]}}({path:p,segmentation:s,pointsInSegments:h,sampleRate:l})},[p,s,h,l]);return r.createElement("g",null,v.map(function(e,i){return t?r.createElement(r.Fragment,{key:i},t({index:i,segment:e,styles:f[i]||f[i%f.length]})):r.createElement(m.Z,te({key:i,className:n,data:e,x:tt,y:tn},f[i]||f[i%f.length]))}))}tr.propTypes={segments:e8().arrayOf(e8().array).isRequired,styles:e8().array.isRequired,children:e8().func,className:e8().string}},55746:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(2784),i=n(72779),o=n.n(i),a=n(26078),s=n(52511),l=["x","x0","x1","y","y1","y0","yScale","data","defined","className","curve","innerRef","children"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,l),j=(0,s.SO)({x:t,x0:n,x1:i,defined:void 0===v?function(){return!0}:v,curve:y});return(null==f?j.y0(h.range()[0]):(0,a.Z)(j.y0,f),c&&!d&&(0,a.Z)(j.y1,c),d&&!c&&(0,a.Z)(j.y1,d),x)?r.createElement(r.Fragment,null,x({path:j})):r.createElement("path",u({ref:b,className:o()("visx-area-closed",g),d:j(m)||""},w))}},14582:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["className","innerRef"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a);return r.createElement("rect",s({ref:n,className:o()("visx-bar",t)},i))}},10897:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["children","className","innerRef","x","y","width","height","radius","all","top","bottom","left","right","topLeft","topRight","bottomLeft","bottomRight"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a),z=(n=(t={x:E,y:S,width:_,height:C,radius:O,all:void 0!==M&&M,top:void 0!==T&&T,bottom:void 0!==A&&A,left:void 0!==P&&P,right:void 0!==N&&N,topLeft:void 0!==R&&R,topRight:void 0!==D&&D,bottomLeft:void 0!==L&&L,bottomRight:void 0!==Z&&Z}).all,i=t.bottom,l=t.bottomLeft,u=t.bottomRight,c=t.height,d=t.left,f=t.radius,h=t.right,p=t.top,m=t.topLeft,v=t.topRight,g=t.width,y=t.x,b=t.y,v=n||p||h||v,u=n||i||h||u,l=n||i||d||l,m=n||p||d||m,x=2*(f=Math.max(1,Math.min(f,Math.min(g,c)/2))),("M"+(y+f)+","+b+" h"+(g-x)+"\n "+(v?"a"+f+","+f+" 0 0 1 "+f+","+f:"h"+f+"v"+f)+"\n v"+(c-x)+"\n "+(u?"a"+f+","+f+" 0 0 1 "+-f+","+f:"v"+f+"h"+-f)+"\n h"+(x-g)+"\n "+(l?"a"+f+","+f+" 0 0 1 "+-f+","+-f:"h"+-f+"v"+-f)+"\n v"+(x-c)+"\n "+(m?"a"+f+","+f+" 0 0 1 "+f+","+-f:"v"+-f+"h"+f)+"\nz").split("\n").join(""));return w?r.createElement(r.Fragment,null,w({path:z})):r.createElement("path",s({ref:k,className:o()("visx-bar-rounded",j),d:z},F))}},63739:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["from","to","fill","className","innerRef"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a),h=n.x===l.x||n.y===l.y;return r.createElement("line",s({ref:d,className:o()("visx-line",c),x1:n.x,y1:n.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))}},27079:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(2784),i=n(72779),o=n.n(i),a=n(52511),s=["children","data","x","y","fill","className","curve","innerRef","defined"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),g=(0,a.jv)({x:u,y:c,defined:void 0===m?function(){return!0}:m,curve:h});return t?r.createElement(r.Fragment,null,t({path:g})):r.createElement("path",l({ref:p,className:o()("visx-linepath",f),d:g(i)||"",fill:void 0===d?"transparent":d,strokeLinecap:"round"},v))}},52511:function(e,t,n){"use strict";n.d(t,{Nb:function(){return f},SO:function(){return h},aJ:function(){return v},jv:function(){return p},kn:function(){return g},ve:function(){return m}});var r=n(38764),i=n(79493),o=n(79767),a=n(69619),s=n(8329),l=n(98926),u=n(26078),c=n(44081),d=n(30382);function f(e){var t=void 0===e?{}:e,n=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.startAngle,s=t.endAngle,l=t.padAngle,c=t.padRadius,d=(0,r.Z)();return null!=n&&(0,u.Z)(d.innerRadius,n),null!=i&&(0,u.Z)(d.outerRadius,i),null!=o&&(0,u.Z)(d.cornerRadius,o),null!=a&&(0,u.Z)(d.startAngle,a),null!=s&&(0,u.Z)(d.endAngle,s),null!=l&&(0,u.Z)(d.padAngle,l),null!=c&&(0,u.Z)(d.padRadius,c),d}function h(e){var t=void 0===e?{}:e,n=t.x,r=t.x0,o=t.x1,a=t.y,s=t.y0,l=t.y1,c=t.defined,d=t.curve,f=(0,i.Z)();return n&&(0,u.Z)(f.x,n),r&&(0,u.Z)(f.x0,r),o&&(0,u.Z)(f.x1,o),a&&(0,u.Z)(f.y,a),s&&(0,u.Z)(f.y0,s),l&&(0,u.Z)(f.y1,l),c&&f.defined(c),d&&f.curve(d),f}function p(e){var t=void 0===e?{}:e,n=t.x,r=t.y,i=t.defined,a=t.curve,s=(0,o.Z)();return n&&(0,u.Z)(s.x,n),r&&(0,u.Z)(s.y,r),i&&s.defined(i),a&&s.curve(a),s}function m(e){var t=void 0===e?{}:e,n=t.startAngle,r=t.endAngle,i=t.padAngle,o=t.value,s=t.sort,l=t.sortValues,c=(0,a.Z)();return null===s?c.sort(s):null!=s&&c.sort(s),null===l?c.sortValues(l):null!=l&&c.sortValues(l),null!=o&&c.value(o),null!=i&&(0,u.Z)(c.padAngle,i),null!=n&&(0,u.Z)(c.startAngle,n),null!=r&&(0,u.Z)(c.endAngle,r),c}function v(e){var t=void 0===e?{}:e,n=t.angle,r=t.radius,i=t.defined,o=t.curve,a=(0,s.Z)();return n&&(0,u.Z)(a.angle,n),r&&(0,u.Z)(a.radius,r),i&&a.defined(i),o&&a.curve(o),a}function g(e){var t=e.keys,n=e.value,r=e.order,i=e.offset,o=(0,l.Z)();return t&&o.keys(t),n&&(0,u.Z)(o.value,n),r&&o.order((0,c.ZP)(r)),i&&o.offset((0,d.ZP)(i)),o}},26078:function(e,t,n){"use strict";function r(e,t){e(t)}n.d(t,{Z:function(){return r}})},30382:function(e,t,n){"use strict";n.d(t,{ZP:function(){return c},ed:function(){return u},nW:function(){return l}});var r=n(22254),i=n(76751),o=n(90541),a=n(36538),s=n(34928),l={expand:r.Z,diverging:i.Z,none:o.Z,silhouette:a.Z,wiggle:s.Z},u=Object.keys(l);function c(e){return e&&l[e]||l.none}},44081:function(e,t,n){"use strict";n.d(t,{ZP:function(){return c},s2:function(){return u},un:function(){return l}});var r=n(19721),i=n(82564),o=n(12197),a=n(81182),s=n(40277),l={ascending:r.Z,descending:i.Z,insideout:o.Z,none:a.Z,reverse:s.Z},u=Object.keys(l);function c(e){return e&&l[e]||l.none}},12935:function(e,t,n){"use strict";t.Z=function(e){var t=e.children,n=e.x,s=e.x0,u=e.x1,c=e.y,d=e.y0,f=e.y1,h=e.data,p=void 0===h?[]:h,m=e.defined,v=e.className,g=e.curve,y=e.innerRef,b=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,a),x=(0,o.area)({x:n,x0:s,x1:u,y:c,y0:d,y1:f,defined:void 0===m?function(){return!0}:m,curve:g});return t?r.default.createElement(r.default.Fragment,null,t({path:x})):r.default.createElement("path",l({ref:y,className:(0,i.default)("visx-area",v),d:x(p)||""},b))};var r=s(n(2784)),i=s(n(72779)),o=n(15601),a=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o),h=n.x===l.x||n.y===l.y;return r.default.createElement("line",s({ref:d,className:(0,i.default)("visx-line",c),x1:n.x,y1:n.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))};var r=a(n(2784)),i=a(n(72779)),o=["from","to","fill","className","innerRef"];function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a),g=(0,o.line)({x:u,y:c,defined:void 0===m?function(){return!0}:m,curve:h});return t?r.default.createElement(r.default.Fragment,null,t({path:g})):r.default.createElement("path",l({ref:p,className:(0,i.default)("visx-linepath",f),d:g(s)||"",fill:void 0===d?"transparent":d,strokeLinecap:"round"},v))};var r=s(n(2784)),i=s(n(72779)),o=n(15601),a=["children","data","x","y","fill","className","curve","innerRef","defined"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o)),p=h.x,m=void 0===p?0:p,v=h.fontSize,g=(0,i.Z)(e),y=g.wordsByLines,b=g.startDy,x=g.transform;return r.createElement("svg",{ref:u,x:void 0===t?0:t,y:void 0===n?0:n,fontSize:v,style:s},y.length>0?r.createElement("text",a({ref:c,transform:x},h,{textAnchor:void 0===l?"start":l}),y.map(function(e,t){return r.createElement("tspan",{key:t,x:m,dy:0===t?b:f},e.words.join(" "))})):null)}},89907:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(2784),i=n(32718),o=n.n(i),a=n(75715),s=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function l(e){return"number"==typeof e}function u(e){return"number"==typeof e&&Number.isFinite(e)||"string"==typeof e}function c(e){var t=e.verticalAnchor,n=void 0===t?"end":t,i=e.scaleToFit,c=void 0!==i&&i,d=e.angle,f=e.width,h=e.lineHeight,p=void 0===h?"1em":h,m=e.capHeight,v=void 0===m?"0.71em":m,g=e.children,y=e.style,b=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,s),x=b.x,w=void 0===x?0:x,j=b.y,k=void 0===j?0:j,E=!u(w)||!u(k),S=(0,r.useMemo)(function(){return{wordsWithWidth:(null==g?[]:g.toString().split(/(?:(?!\u00A0+)\s+)/)).map(function(e){return{word:e,wordWidth:(0,a.Z)(e,y)||0}}),spaceWidth:(0,a.Z)("\xa0",y)||0}},[g,y]),_=S.wordsWithWidth,C=S.spaceWidth,O=(0,r.useMemo)(function(){return E?[]:f||c?_.reduce(function(e,t){var n=t.word,r=t.wordWidth,i=e[e.length-1];return i&&(null==f||c||(i.width||0)+r+C0){var t=O[0].width||1,n="shrink-only"===c?Math.min(f/t,1):f/t,r=w-n*w,i=k-n*k;e.push("matrix("+n+", 0, 0, "+n+", "+r+", "+i+")")}return d&&e.push("rotate("+d+", "+w+", "+k+")"),e.length>0?e.join(" "):""},[E,w,k,f,c,O,d]);return{wordsByLines:O,startDy:M,transform:T}}},44425:function(e,t,n){"use strict";n.r(t),n.d(t,{Text:function(){return r.Z},getStringWidth:function(){return i.Z},useText:function(){return o.Z}});var r=n(64170),i=n(75715),o=n(89907)},75715:function(e,t,n){"use strict";var r=n(30733),i=n.n(r),o="__react_svg_text_measurement_id";t.Z=i()(function(e,t){try{var n=document.getElementById(o);if(!n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("aria-hidden","true"),r.style.width="0",r.style.height="0",r.style.position="absolute",r.style.top="-100%",r.style.left="-100%",(n=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("id",o),r.appendChild(n),document.body.appendChild(r)}return Object.assign(n.style,t),n.textContent=e,n.getComputedTextLength()}catch(e){return null}},function(e,t){return e+"_"+JSON.stringify(t)})},49732:function(e,t,n){"use strict";n.d(t,{R:function(){return s}});var r=new WeakMap,i=new WeakMap,o={},a=0,s=function(e,t,n){void 0===t&&(t="undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body),void 0===n&&(n="data-aria-hidden");var s=Array.isArray(e)?e:[e];o[n]||(o[n]=new WeakMap);var l=o[n],u=[],c=new Set,d=function(e){!e||c.has(e)||(c.add(e),d(e.parentNode))};s.forEach(d);var f=function(e){!e||s.indexOf(e)>=0||Array.prototype.forEach.call(e.children,function(e){if(c.has(e))f(e);else{var t=e.getAttribute("aria-hidden"),o=null!==t&&"false"!==t,a=(r.get(e)||0)+1,s=(l.get(e)||0)+1;r.set(e,a),l.set(e,s),u.push(e),1===a&&o&&i.set(e,!0),1===s&&e.setAttribute(n,"true"),o||e.setAttribute("aria-hidden","true")}})};return f(t),c.clear(),a++,function(){u.forEach(function(e){var t=r.get(e)-1,o=l.get(e)-1;r.set(e,t),l.set(e,o),t||(i.has(e)||e.removeAttribute("aria-hidden"),i.delete(e)),o||e.removeAttribute(n)}),--a||(r=new WeakMap,r=new WeakMap,i=new WeakMap,o={})}}},30387:function(e,t){"use strict";t.Z=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?o===t.replace(/\/.*$/,""):i===t})}return!0}},89644:function(e,t,n){e.exports=n(25644)},70353:function(e,t,n){"use strict";var r=n(93044),i=n(86955),o=n(92233),a=n(68030),s=n(97948),l=n(51875),u=n(60842),c=n(98560),d=n(21218),f=n(68047),h=n(10738);e.exports=function(e){return new Promise(function(t,n){var p,m=e.data,v=e.headers,g=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(m)&&r.isStandardBrowserEnv()&&delete v["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var x=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(x+":"+w)}var j=s(e.baseURL,e.url);function k(){if(b){var r="getAllResponseHeaders"in b?l(b.getAllResponseHeaders()):null;i(function(e){t(e),y()},function(e){n(e),y()},{data:g&&"text"!==g&&"json"!==g?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b}),b=null}}if(b.open(e.method.toUpperCase(),a(j,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=k:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(k)},b.onabort=function(){b&&(n(new d("Request aborted",d.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new d("Network Error",d.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new d(t,r.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,b)),b=null},r.isStandardBrowserEnv()){var E=(e.withCredentials||u(j))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;E&&(v[e.xsrfHeaderName]=E)}"setRequestHeader"in b&&r.forEach(v,function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete v[t]:b.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),g&&"json"!==g&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){b&&(n(!e||e&&e.type?new f:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),m||(m=null);var S=h(j);if(S&&-1===["http","https","file"].indexOf(S)){n(new d("Unsupported protocol "+S+":",d.ERR_BAD_REQUEST,e));return}b.send(m)})}},25644:function(e,t,n){"use strict";var r=n(93044),i=n(73644),o=n(62215),a=n(92937),s=function e(t){var n=new o(t),s=i(o.prototype.request,n);return r.extend(s,o.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(10663));s.Axios=o,s.CanceledError=n(68047),s.CancelToken=n(34089),s.isCancel=n(98041),s.VERSION=n(29241).version,s.toFormData=n(49027),s.AxiosError=n(21218),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(70783),s.isAxiosError=n(65587),e.exports=s,e.exports.default=s},34089:function(e,t,n){"use strict";var r=n(68047);function i(e){if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});var t,n=this;this.promise.then(function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],function(e){f.headers[e]={}}),o.forEach(["post","put","patch"],function(e){f.headers[e]=o.merge(c)}),e.exports=f},98560:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},29241:function(e){e.exports={version:"0.27.2"}},73644:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=Array(arguments.length),r=0;r=0)&&("set-cookie"===t?a[t]=(a[t]?a[t]:[]).concat([n]):a[t]=a[t]?a[t]+", "+n:n)}),a}},10738:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},70783:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},49027:function(e,t,n){"use strict";var r=n(48834).lW,i=n(93044);e.exports=function(e,t){t=t||new FormData;var n=[];function o(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):r.from(e):e}return!function e(r,a){if(i.isPlainObject(r)||i.isArray(r)){if(-1!==n.indexOf(r))throw Error("Circular reference detected in "+a);n.push(r),i.forEach(r,function(n,r){if(!i.isUndefined(n)){var s,l=a?a+"."+r:r;if(n&&!a&&"object"==typeof n){if(i.endsWith(r,"{}"))n=JSON.stringify(n);else if(i.endsWith(r,"[]")&&(s=i.toArray(n))){s.forEach(function(e){i.isUndefined(e)||t.append(l,o(e))});return}}e(n,l)}}),n.pop()}else t.append(a,o(r))}(e),t}},17525:function(e,t,n){"use strict";var r=n(29241).version,i=n(21218),o={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var a={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new i(o(r," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var a=r[o],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new i("option "+a+" must be "+u,i.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new i("Unknown option "+a,i.ERR_BAD_OPTION)}},validators:o}},93044:function(e,t,n){"use strict";var r,i,o=n(73644),a=Object.prototype.toString,s=(r=Object.create(null),function(e){var t=a.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function l(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function u(e){return Array.isArray(e)}function c(e){return void 0===e}var d=l("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function h(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=l("Date"),m=l("File"),v=l("Blob"),g=l("FileList");function y(e){return"[object Function]"===a.call(e)}var b=l("URLSearchParams");function x(e,t){if(null!=e){if("object"!=typeof e&&(e=[e]),u(e))for(var n=0,r=e.length;n0;)a[o=r[i]]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:l,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return -1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:g}},82294:function(e){"use strict";function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var o=r(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,o,a,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){if(e===t)return[l,u];for(r=[],o=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(s=[o,a])}return s}e.exports=t,t.range=r},95766:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,o=l(e),a=o[0],s=o[1],u=new i((a+s)*3/4-s),c=0,d=s>0?a-4:a;for(n=0;n>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;a>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&o.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},6391:function(e,t,n){var r;!function(i){"use strict";var o,a=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,l=Math.floor,u="[BigNumber Error] ",c=u+"Number primitive has more than 15 significant digits: ",d=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function f(e){var t=0|e;return e>0||e===t?t:t-1}function h(e){for(var t,n,r=1,i=e.length,o=e[0]+"";ru^n?1:-1;for(a=0,s=(l=i.length)<(u=o.length)?l:u;ao[a]^n?1:-1;return l==u?0:l>u^n?1:-1}function m(e,t,n,r){if(en||e!==l(e))throw Error(u+(r||"Argument")+("number"==typeof e?en?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function v(e){var t=e.c.length-1;return f(e.e/14)==t&&e.c[t]%2!=0}function g(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function y(e,t,n){var r,i;if(t<0){for(i=n+".";++t;i+=n);e=i+e}else if(r=e.length,++t>r){for(i=n,t-=r;--t;i+=n);e+=i}else tA?h.c=h.e=null:e.e=10;s/=10,o++);o>A?h.c=h.e=null:(h.e=o,h.c=[e]);return}f=String(e)}else{if(!a.test(f=String(e)))return k(h,f,u);h.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(o=f.indexOf("."))>-1&&(f=f.replace(".","")),(s=f.search(/e/i))>0?(o<0&&(o=s),o+=+f.slice(s+1),f=f.substring(0,s)):o<0&&(o=f.length)}else{if(m(t,2,L.length,"Base"),10==t&&Z)return B(h=new F(e),_+h.e+1,C);if(f=String(e),u="number"==typeof e){if(0*e!=0)return k(h,f,u,t);if(h.s=1/e<0?(f=f.slice(1),-1):1,F.DEBUG&&f.replace(/^0\.0*|\./,"").length>15)throw Error(c+e)}else h.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(n=L.slice(0,t),o=s=0,d=f.length;sn.indexOf(r=f.charAt(s))){if("."==r){if(s>o){o=d;continue}}else if(!i&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){i=!0,s=-1,o=0;continue}return k(h,String(e),u,t)}u=!1,(o=(f=j(f,t,10,h.s)).indexOf("."))>-1?f=f.replace(".",""):o=f.length}for(s=0;48===f.charCodeAt(s);s++);for(d=f.length;48===f.charCodeAt(--d););if(f=f.slice(s,++d)){if(d-=s,u&&F.DEBUG&&d>15&&(e>9007199254740991||e!==l(e)))throw Error(c+h.s*e);if((o=o-s-1)>A)h.c=h.e=null;else if(o=M)?g(l,a):y(l,a,"0");else if(o=(e=B(new F(e),t,n)).e,s=(l=h(e.c)).length,1==r||2==r&&(t<=o||o<=O)){for(;ss){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=o-s)>0)for(o+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function V(e,t){for(var n,r=1,i=new F(e[0]);r=10;i/=10,r++);return(n=r+14*n-1)>A?e.c=e.e=null:n=10;u/=10,i++);if((o=t-i)<0)o+=14,a=t,h=(c=p[f=0])/d[i-a-1]%10|0;else if((f=s((o+1)/14))>=p.length){if(r){for(;p.length<=f;p.push(0));c=h=0,i=1,o%=14,a=o-14+1}else break e}else{for(i=1,c=u=p[f];u>=10;u/=10,i++);o%=14,h=(a=o-14+i)<0?0:c/d[i-a-1]%10|0}if(r=r||t<0||null!=p[f+1]||(a<0?c:c%d[i-a-1]),r=n<4?(h||r)&&(0==n||n==(e.s<0?3:2)):h>5||5==h&&(4==n||r||6==n&&(o>0?a>0?c/d[i-a]:0:p[f-1])%10&1||n==(e.s<0?8:7)),t<1||!p[0])return p.length=0,r?(t-=e.e+1,p[0]=d[(14-t%14)%14],e.e=-t||0):p[0]=e.e=0,e;if(0==o?(p.length=f,u=1,f--):(p.length=f+1,u=d[14-o],p[f]=a>0?l(c/d[i-a]%d[a])*u:0),r)for(;;){if(0==f){for(o=1,a=p[0];a>=10;a/=10,o++);for(a=p[0]+=u,u=1;a>=10;a/=10,u++);o!=u&&(e.e++,1e14==p[0]&&(p[0]=1));break}if(p[f]+=u,1e14!=p[f])break;p[f--]=0,u=1}for(o=p.length;0===p[--o];p.pop());}e.e>A?e.c=e.e=null:e.e=M?g(t,n):y(t,n,"0"),e.s<0?"-"+t:t)}return F.clone=e,F.ROUND_UP=0,F.ROUND_DOWN=1,F.ROUND_CEIL=2,F.ROUND_FLOOR=3,F.ROUND_HALF_UP=4,F.ROUND_HALF_DOWN=5,F.ROUND_HALF_EVEN=6,F.ROUND_HALF_CEIL=7,F.ROUND_HALF_FLOOR=8,F.EUCLID=9,F.config=F.set=function(e){var t,n;if(null!=e){if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(m(n=e[t],0,1e9,t),_=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(m(n=e[t],0,8,t),C=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(m(n[0],-1e9,0,t),m(n[1],0,1e9,t),O=n[0],M=n[1]):(m(n,-1e9,1e9,t),O=-(M=n<0?-n:n))),e.hasOwnProperty(t="RANGE")){if((n=e[t])&&n.pop)m(n[0],-1e9,-1,t),m(n[1],1,1e9,t),T=n[0],A=n[1];else if(m(n,-1e9,1e9,t),n)T=-(A=n<0?-n:n);else throw Error(u+t+" cannot be zero: "+n)}if(e.hasOwnProperty(t="CRYPTO")){if(!!(n=e[t])===n){if(n){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))P=n;else throw P=!n,Error(u+"crypto unavailable")}else P=n}else throw Error(u+t+" not true or false: "+n)}if(e.hasOwnProperty(t="MODULO_MODE")&&(m(n=e[t],0,9,t),N=n),e.hasOwnProperty(t="POW_PRECISION")&&(m(n=e[t],0,1e9,t),R=n),e.hasOwnProperty(t="FORMAT")){if("object"==typeof(n=e[t]))D=n;else throw Error(u+t+" not an object: "+n)}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(u+t+" invalid: "+n);Z="0123456789"==n.slice(0,10),L=n}}else throw Error(u+"Object expected: "+e)}return{DECIMAL_PLACES:_,ROUNDING_MODE:C,EXPONENTIAL_AT:[O,M],RANGE:[T,A],CRYPTO:P,MODULO_MODE:N,POW_PRECISION:R,FORMAT:D,ALPHABET:L}},F.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!F.DEBUG)return!0;var t,n,r=e.c,i=e.e,o=e.s;e:if("[object Array]"==({}).toString.call(r)){if((1===o||-1===o)&&i>=-1e9&&i<=1e9&&i===l(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break e}if((t=(i+1)%14)<1&&(t+=14),String(r[0]).length==t){for(t=0;t=1e14||n!==l(n))break e;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(u+"Invalid BigNumber: "+e)},F.maximum=F.max=function(){return V(arguments,E.lt)},F.minimum=F.min=function(){return V(arguments,E.gt)},F.random=(n=9007199254740992*Math.random()&2097151?function(){return l(9007199254740992*Math.random())}:function(){return(1073741824*Math.random()|0)*8388608+(8388608*Math.random()|0)},function(e){var t,r,i,o,a,c=0,f=[],h=new F(S);if(null==e?e=_:m(e,0,1e9),o=s(e/14),P){if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));c>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[c]=r[0],t[c+1]=r[1]):(f.push(a%1e14),c+=2);c=o/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(o*=7);c=9e15?crypto.randomBytes(7).copy(t,c):(f.push(a%1e14),c+=7);c=o/7}else throw P=!1,Error(u+"crypto unavailable")}if(!P)for(;c=10;a/=10,c++);c<14&&(i-=14-c)}return h.e=i,h.c=f,h}),F.sum=function(){for(var e=1,t=arguments,n=new F(t[0]);en-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}return function(n,r,i,o,a){var s,l,u,c,d,f,p,m,v=n.indexOf("."),g=_,b=C;for(v>=0&&(c=R,R=0,n=n.replace(".",""),f=(m=new F(r)).pow(n.length-v),R=c,m.c=t(y(h(f.c),f.e,"0"),10,i,e),m.e=m.c.length),u=c=(p=t(n,r,i,a?(s=L,e):(s=e,L))).length;0==p[--c];p.pop());if(!p[0])return s.charAt(0);if(v<0?--u:(f.c=p,f.e=u,f.s=o,p=(f=w(f,m,g,b,i)).c,d=f.r,u=f.e),v=p[l=u+g+1],c=i/2,d=d||l<0||null!=p[l+1],d=b<4?(null!=v||d)&&(0==b||b==(f.s<0?3:2)):v>c||v==c&&(4==b||d||6==b&&1&p[l-1]||b==(f.s<0?8:7)),l<1||!p[0])n=d?y(s.charAt(1),-g,s.charAt(0)):s.charAt(0);else{if(p.length=l,d)for(--i;++p[--l]>i;)p[l]=0,l||(++u,p=[1].concat(p));for(c=p.length;!p[--c];);for(v=0,n="";v<=c;n+=s.charAt(p[v++]));n=y(n,u,s.charAt(0))}return n}}(),w=function(){function e(e,t,n){var r,i,o,a,s=0,l=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();l--;)r=c*(o=e[l]%1e7)+(a=e[l]/1e7|0)*u,s=((i=u*o+r%1e7*1e7+s)/n|0)+(r/1e7|0)+c*a,e[l]=i%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;it[i]?1:-1;break}return o}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]1;e.splice(0,1));}return function(r,i,o,a,s){var u,c,d,h,p,m,v,g,y,b,x,w,j,k,E,S,_,C=r.s==i.s?1:-1,O=r.c,M=i.c;if(!O||!O[0]||!M||!M[0])return new F(r.s&&i.s&&(O?!M||O[0]!=M[0]:M)?O&&0==O[0]||!M?0*C:C/0:NaN);for(y=(g=new F(C)).c=[],C=o+(c=r.e-i.e)+1,s||(s=1e14,c=f(r.e/14)-f(i.e/14),C=C/14|0),d=0;M[d]==(O[d]||0);d++);if(M[d]>(O[d]||0)&&c--,C<0)y.push(1),h=!0;else{for(k=O.length,S=M.length,d=0,C+=2,(p=l(s/(M[0]+1)))>1&&(M=e(M,p,s),O=e(O,p,s),S=M.length,k=O.length),j=S,x=(b=O.slice(0,S)).length;x=s/2&&E++;do{if(p=0,(u=t(M,b,S,x))<0){if(w=b[0],S!=x&&(w=w*s+(b[1]||0)),(p=l(w/E))>1)for(p>=s&&(p=s-1),v=(m=e(M,p,s)).length,x=b.length;1==t(m,b,v,x);)p--,n(m,St(M,b,S,x);)p++,n(b,S=10;C/=10,d++);B(g,o+(g.e=d+14*c-1)+1,a,h)}else g.e=c,g.r=+h;return g}}(),r=/^(-?)0([xbo])(?=\w[\w.]*$)/i,i=/^([^.]+)\.$/,o=/^\.([^.]+)$/,b=/^-?(Infinity|NaN)$/,x=/^\s*\+(?=[\w.])|^\s+|\s+$/g,k=function(e,t,n,a){var s,l=n?t:t.replace(x,"");if(b.test(l))e.s=isNaN(l)?null:l<0?-1:1;else{if(!n&&(l=l.replace(r,function(e,t,n){return s="x"==(n=n.toLowerCase())?16:"b"==n?2:8,a&&a!=s?e:t}),a&&(s=a,l=l.replace(i,"$1").replace(o,"0.$1")),t!=l))return new F(l,s);if(F.DEBUG)throw Error(u+"Not a"+(a?" base "+a:"")+" number: "+t);e.s=null}e.c=e.e=null},E.absoluteValue=E.abs=function(){var e=new F(this);return e.s<0&&(e.s=1),e},E.comparedTo=function(e,t){return p(this,new F(e,t))},E.decimalPlaces=E.dp=function(e,t){var n,r,i;if(null!=e)return m(e,0,1e9),null==t?t=C:m(t,0,8),B(new F(this),e+this.e+1,t);if(!(n=this.c))return null;if(r=((i=n.length-1)-f(this.e/14))*14,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},E.dividedBy=E.div=function(e,t){return w(this,new F(e,t),_,C)},E.dividedToIntegerBy=E.idiv=function(e,t){return w(this,new F(e,t),0,1)},E.exponentiatedBy=E.pow=function(e,t){var n,r,i,o,a,c,d,f,h,p=this;if((e=new F(e)).c&&!e.isInteger())throw Error(u+"Exponent not an integer: "+H(e));if(null!=t&&(t=new F(t)),c=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return h=new F(Math.pow(+H(p),c?2-v(e):+H(e))),t?h.mod(t):h;if(d=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new F(NaN);(r=!d&&p.isInteger()&&t.isInteger())&&(p=p.mod(t))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||c&&p.c[1]>=24e7:p.c[0]<8e13||c&&p.c[0]<=9999975e7)))return o=p.s<0&&v(e)?-0:0,p.e>-1&&(o=1/o),new F(d?1/o:o);R&&(o=s(R/14+2))}for(c?(n=new F(.5),d&&(e.s=1),f=v(e)):f=(i=Math.abs(+H(e)))%2,h=new F(S);;){if(f){if(!(h=h.times(p)).c)break;o?h.c.length>o&&(h.c.length=o):r&&(h=h.mod(t))}if(i){if(0===(i=l(i/2)))break;f=i%2}else if(B(e=e.times(n),e.e+1,1),e.e>14)f=v(e);else{if(0==(i=+H(e)))break;f=i%2}p=p.times(p),o?p.c&&p.c.length>o&&(p.c.length=o):r&&(p=p.mod(t))}return r?h:(d&&(h=S.div(h)),t?h.mod(t):o?B(h,R,C,a):h)},E.integerValue=function(e){var t=new F(this);return null==e?e=C:m(e,0,8),B(t,t.e+1,e)},E.isEqualTo=E.eq=function(e,t){return 0===p(this,new F(e,t))},E.isFinite=function(){return!!this.c},E.isGreaterThan=E.gt=function(e,t){return p(this,new F(e,t))>0},E.isGreaterThanOrEqualTo=E.gte=function(e,t){return 1===(t=p(this,new F(e,t)))||0===t},E.isInteger=function(){return!!this.c&&f(this.e/14)>this.c.length-2},E.isLessThan=E.lt=function(e,t){return 0>p(this,new F(e,t))},E.isLessThanOrEqualTo=E.lte=function(e,t){return -1===(t=p(this,new F(e,t)))||0===t},E.isNaN=function(){return!this.s},E.isNegative=function(){return this.s<0},E.isPositive=function(){return this.s>0},E.isZero=function(){return!!this.c&&0==this.c[0]},E.minus=function(e,t){var n,r,i,o,a=this.s;if(t=(e=new F(e,t)).s,!a||!t)return new F(NaN);if(a!=t)return e.s=-t,this.plus(e);var s=this.e/14,l=e.e/14,u=this.c,c=e.c;if(!s||!l){if(!u||!c)return u?(e.s=-t,e):new F(c?this:NaN);if(!u[0]||!c[0])return c[0]?(e.s=-t,e):new F(u[0]?this:3==C?-0:0)}if(s=f(s),l=f(l),u=u.slice(),a=s-l){for((o=a<0)?(a=-a,i=u):(l=s,i=c),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(r=(o=(a=u.length)<(t=c.length))?a:t,a=t=0;t0)for(;t--;u[n++]=0);for(t=1e14-1;r>a;){if(u[--r]=0;){for(n=0,h=g[i]%1e7,p=g[i]/1e7|0,o=i+(a=l);o>i;)s=p*(u=v[--a]%1e7)+(c=v[a]/1e7|0)*h,n=((u=h*u+s%1e7*1e7+m[o]+n)/1e14|0)+(s/1e7|0)+p*c,m[o--]=u%1e14;m[o]=n}return n?++r:m.splice(0,1),I(e,m,r)},E.negated=function(){var e=new F(this);return e.s=-e.s||null,e},E.plus=function(e,t){var n,r=this.s;if(t=(e=new F(e,t)).s,!r||!t)return new F(NaN);if(r!=t)return e.s=-t,this.minus(e);var i=this.e/14,o=e.e/14,a=this.c,s=e.c;if(!i||!o){if(!a||!s)return new F(r/0);if(!a[0]||!s[0])return s[0]?e:new F(a[0]?this:0*r)}if(i=f(i),o=f(o),a=a.slice(),r=i-o){for(r>0?(o=i,n=s):(r=-r,n=a),n.reverse();r--;n.push(0));n.reverse()}for((r=a.length)-(t=s.length)<0&&(n=s,s=a,a=n,t=r),r=0;t;)r=(a[--t]=a[t]+s[t]+r)/1e14|0,a[t]=1e14===a[t]?0:a[t]%1e14;return r&&(a=[r].concat(a),++o),I(e,a,o)},E.precision=E.sd=function(e,t){var n,r,i;if(null!=e&&!!e!==e)return m(e,1,1e9),null==t?t=C:m(t,0,8),B(new F(this),e,t);if(!(n=this.c))return null;if(r=14*(i=n.length-1)+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return e&&this.e+1>r&&(r=this.e+1),r},E.shiftedBy=function(e){return m(e,-9007199254740991,9007199254740991),this.times("1e"+e)},E.squareRoot=E.sqrt=function(){var e,t,n,r,i,o=this.c,a=this.s,s=this.e,l=_+4,u=new F("0.5");if(1!==a||!o||!o[0])return new F(!a||a<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(a=Math.sqrt(+H(this)))||a==1/0?(((t=h(o)).length+s)%2==0&&(t+="0"),a=Math.sqrt(+t),s=f((s+1)/2)-(s<0||s%2),t=a==1/0?"5e"+s:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+s,n=new F(t)):n=new F(a+""),n.c[0]){for((a=(s=n.e)+l)<3&&(a=0);;)if(i=n,n=u.times(i.plus(w(this,i,l,1))),h(i.c).slice(0,a)===(t=h(n.c)).slice(0,a)){if(n.e0&&p>0){for(i=p%a||a,c=h.substr(0,i);i0&&(c+=l+h.slice(i)),f&&(c="-"+c)}r=d?c+(n.decimalSeparator||"")+((s=+n.fractionGroupSize)?d.replace(RegExp("\\d{"+s+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):d):c}return(n.prefix||"")+r+(n.suffix||"")},E.toFraction=function(e){var t,n,r,i,o,a,s,l,c,f,p,m,v=this.c;if(null!=e&&(!(s=new F(e)).isInteger()&&(s.c||1!==s.s)||s.lt(S)))throw Error(u+"Argument "+(s.isInteger()?"out of range: ":"not an integer: ")+H(s));if(!v)return new F(this);for(t=new F(S),c=n=new F(S),r=l=new F(S),m=h(v),o=t.e=m.length-this.e-1,t.c[0]=d[(a=o%14)<0?14+a:a],e=!e||s.comparedTo(t)>0?o>0?t:c:s,a=A,A=1/0,s=new F(m),l.c[0]=0;f=w(s,t,0,1),1!=(i=n.plus(f.times(r))).comparedTo(e);)n=r,r=i,c=l.plus(f.times(i=c)),l=i,t=s.minus(f.times(i=t)),s=i;return i=w(e.minus(n),r,0,1),l=l.plus(i.times(c)),n=n.plus(i.times(r)),l.s=c.s=this.s,o*=2,p=1>w(c,r,o,C).minus(this).abs().comparedTo(w(l,n,o,C).minus(this).abs())?[c,r]:[l,n],A=a,p},E.toNumber=function(){return+H(this)},E.toPrecision=function(e,t){return null!=e&&m(e,1,1e9),z(this,e,t,2)},E.toString=function(e){var t,n=this,r=n.s,i=n.e;return null===i?r?(t="Infinity",r<0&&(t="-"+t)):t="NaN":(null==e?t=i<=O||i>=M?g(h(n.c),i):y(h(n.c),i,"0"):10===e&&Z?t=y(h((n=B(new F(n),_+i+1,C)).c),n.e,"0"):(m(e,2,L.length,"Base"),t=j(y(h(n.c),i,"0"),10,e,r,!0)),r<0&&n.c[0]&&(t="-"+t)),t},E.valueOf=E.toJSON=function(){return H(this)},E._isBigNumber=!0,null!=t&&F.set(t),F}()).default=o.BigNumber=o,void 0!==(r=(function(){return o}).call(t,n,t,e))&&(e.exports=r)}(0)},70651:function(e,t,n){let r=n(7967);function i(e,t,n){let r=e[t]+e[n],i=e[t+1]+e[n+1];r>=4294967296&&i++,e[t]=r,e[t+1]=i}function o(e,t,n,r){let i=e[t]+n;n<0&&(i+=4294967296);let o=e[t+1]+r;i>=4294967296&&o++,e[t]=i,e[t+1]=o}function a(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function s(e,t,n,r,a,s){let l=d[a],u=d[a+1],f=d[s],h=d[s+1];i(c,e,t),o(c,e,l,u);let p=c[r]^c[e],m=c[r+1]^c[e+1];c[r]=m,c[r+1]=p,i(c,n,r),p=c[t]^c[n],m=c[t+1]^c[n+1],c[t]=p>>>24^m<<8,c[t+1]=m>>>24^p<<8,i(c,e,t),o(c,e,f,h),p=c[r]^c[e],m=c[r+1]^c[e+1],c[r]=p>>>16^m<<16,c[r+1]=m>>>16^p<<16,i(c,n,r),p=c[t]^c[n],m=c[t+1]^c[n+1],c[t]=m>>>31^p<<1,c[t+1]=p>>>31^m<<1}let l=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),u=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map(function(e){return 2*e})),c=new Uint32Array(32),d=new Uint32Array(32);function f(e,t){let n=0;for(n=0;n<16;n++)c[n]=e.h[n],c[n+16]=l[n];for(c[24]=c[24]^e.t,c[25]=c[25]^e.t/4294967296,t&&(c[28]=~c[28],c[29]=~c[29]),n=0;n<32;n++)d[n]=a(e.b,4*n);for(n=0;n<12;n++)s(0,8,16,24,u[16*n+0],u[16*n+1]),s(2,10,18,26,u[16*n+2],u[16*n+3]),s(4,12,20,28,u[16*n+4],u[16*n+5]),s(6,14,22,30,u[16*n+6],u[16*n+7]),s(0,10,20,30,u[16*n+8],u[16*n+9]),s(2,12,22,24,u[16*n+10],u[16*n+11]),s(4,14,16,26,u[16*n+12],u[16*n+13]),s(6,8,18,28,u[16*n+14],u[16*n+15]);for(n=0;n<16;n++)e.h[n]=e.h[n]^c[n]^c[n+16]}let h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function p(e,t,n,r){if(0===e||e>64)throw Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(n&&16!==n.length)throw Error("Illegal salt, expected Uint8Array with length is 16");if(r&&16!==r.length)throw Error("Illegal personal, expected Uint8Array with length is 16");let i={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e};h.fill(0),h[0]=e,t&&(h[1]=t.length),h[2]=1,h[3]=1,n&&h.set(n,32),r&&h.set(r,48);for(let e=0;e<16;e++)i.h[e]=l[e]^a(h,4*e);return t&&(m(i,t),i.c=128),i}function m(e,t){for(let n=0;n>2]>>8*(3&n);return t}function g(e,t,n,i,o){n=n||64,e=r.normalizeInput(e),i&&(i=r.normalizeInput(i)),o&&(o=r.normalizeInput(o));let a=p(n,t,i,o);return m(a,e),v(a)}e.exports={blake2b:g,blake2bHex:function(e,t,n,i,o){let a=g(e,t,n,i,o);return r.toHex(a)},blake2bInit:p,blake2bUpdate:m,blake2bFinal:v}},39962:function(e,t,n){let r=n(7967);function i(e,t,n,r,i,a){l[e]=l[e]+l[t]+i,l[r]=o(l[r]^l[e],16),l[n]=l[n]+l[r],l[t]=o(l[t]^l[n],12),l[e]=l[e]+l[t]+a,l[r]=o(l[r]^l[e],8),l[n]=l[n]+l[r],l[t]=o(l[t]^l[n],7)}function o(e,t){return e>>>t^e<<32-t}let a=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),s=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),l=new Uint32Array(16),u=new Uint32Array(16);function c(e,t){let n=0;for(n=0;n<8;n++)l[n]=e.h[n],l[n+8]=a[n];for(l[12]^=e.t,l[13]^=e.t/4294967296,t&&(l[14]=~l[14]),n=0;n<16;n++){var r,o;u[n]=(r=e.b)[o=4*n]^r[o+1]<<8^r[o+2]<<16^r[o+3]<<24}for(n=0;n<10;n++)i(0,4,8,12,u[s[16*n+0]],u[s[16*n+1]]),i(1,5,9,13,u[s[16*n+2]],u[s[16*n+3]]),i(2,6,10,14,u[s[16*n+4]],u[s[16*n+5]]),i(3,7,11,15,u[s[16*n+6]],u[s[16*n+7]]),i(0,5,10,15,u[s[16*n+8]],u[s[16*n+9]]),i(1,6,11,12,u[s[16*n+10]],u[s[16*n+11]]),i(2,7,8,13,u[s[16*n+12]],u[s[16*n+13]]),i(3,4,9,14,u[s[16*n+14]],u[s[16*n+15]]);for(n=0;n<8;n++)e.h[n]^=l[n]^l[n+8]}function d(e,t){if(!(e>0&&e<=32))throw Error("Incorrect output length, should be in [1, 32]");let n=t?t.length:0;if(t&&!(n>0&&n<=32))throw Error("Incorrect key length, should be in [1, 32]");let r={h:new Uint32Array(a),b:new Uint8Array(64),c:0,t:0,outlen:e};return r.h[0]^=16842752^n<<8^e,n>0&&(f(r,t),r.c=64),r}function f(e,t){for(let n=0;n>2]>>8*(3&n)&255;return t}function p(e,t,n){n=n||32,e=r.normalizeInput(e);let i=d(n,t);return f(i,e),h(i)}e.exports={blake2s:p,blake2sHex:function(e,t,n){let i=p(e,t,n);return r.toHex(i)},blake2sInit:d,blake2sUpdate:f,blake2sFinal:h}},81395:function(e,t,n){let r=n(70651),i=n(39962);e.exports={blake2b:r.blake2b,blake2bHex:r.blake2bHex,blake2bInit:r.blake2bInit,blake2bUpdate:r.blake2bUpdate,blake2bFinal:r.blake2bFinal,blake2s:i.blake2s,blake2sHex:i.blake2sHex,blake2sInit:i.blake2sInit,blake2sUpdate:i.blake2sUpdate,blake2sFinal:i.blake2sFinal}},7967:function(e){function t(e){return(4294967296+e).toString(16).substring(1)}e.exports={normalizeInput:function(e){let t;if(e instanceof Uint8Array)t=e;else if("string"==typeof e){let n=new TextEncoder;t=n.encode(e)}else throw Error("Input must be an string, Buffer or Uint8Array");return t},toHex:function(e){return Array.prototype.map.call(e,function(e){return(e<16?"0":"")+e.toString(16)}).join("")},debugPrint:function(e,n,r){let i="\n"+e+" = ";for(let o=0;o + * @license MIT + */var r=n(95766),i=n(62333),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|p(e,t),r=a(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(M(e,Uint8Array)){var t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(M(e,ArrayBuffer)||e&&M(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(M(e,SharedArrayBuffer)||e&&M(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);var i=function(e){if(s.isBuffer(e)){var t,n=0|h(e.length),r=a(n);return 0===r.length||e.copy(r,0,0,n),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|h(e))}function d(e){for(var t=e.length<0?0:0|h(e.length),n=a(t),r=0;r=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||M(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return _(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return C(e).length;default:if(i)return r?-1:_(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){var i,o,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(o=n=+n)!=o&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var d=!0,f=0;f239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;rn)throw RangeError("Trying to access beyond buffer length")}function w(e,t,n,r,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function j(e,t,n,r,i,o){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function k(e,t,n,r,o){return t=+t,n>>>=0,o||j(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function E(e,t,n,r,o){return t=+t,n>>>=0,o||j(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.lW=s,t.h2=50,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),M(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);ir.length?s.from(o).copy(r,i):Uint8Array.prototype.set.call(r,o,i);else if(s.isBuffer(o))o.copy(r,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return r},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tn&&(e+=" ... "),""},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,l=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n),d=0;d>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,l,u,c,d,f=this.length-t;if((void 0===n||n>f)&&(n=f),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var h=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a=0;a>8,i.push(n%256),i.push(r);return i}(e,this.length-c),this,c,d);default:if(h)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||x(e,t,this.length);for(var r=this[e],i=1,o=0;++o>>=0,t>>>=0,n||x(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||x(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=1,a=0;for(this[t]=255&e;++a>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=n-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return k(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return k(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return E(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return E(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!i){if(n>56319||a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function C(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function O(e,t,n,r){for(var i=0;i=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function M(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var T=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},72779:function(e,t){var n;/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t=0;)(u=e(r,i,o,a,h+1,l+1))>p&&(h===s?u*=1:t.test(r.charAt(h-1))?(u*=.9,(d=r.slice(s,h-1).match(n))&&s>0&&(u*=Math.pow(.999,d.length))):(t.test(r.slice(s,h-1))?u*=0:u*=.3,s>0&&(u*=Math.pow(.999,h-s))),r.charAt(h)!==i.charAt(l)&&(u*=.9999)),u<.1&&o.charAt(h-1)===a.charAt(l+1)&&o.charAt(h-1)!==a.charAt(l)&&.1*(c=e(r,i,o,a,h+1,l+2))>u&&(u=.1*c),u>p&&(p=u),h=o.indexOf(f,h+1);return p}(e,r,e.toLowerCase(),r.toLowerCase(),0,0)}},68847:function(e,t,n){"use strict";n.d(t,{B8:function(){return E},Il:function(){return i},J5:function(){return a},SU:function(){return k},Ss:function(){return S},Ym:function(){return A},ZP:function(){return x},xV:function(){return o}});var r=n(40948);function i(){}var o=.7,a=1.4285714285714286,s="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,d=RegExp("^rgb\\("+[s,s,s]+"\\)$"),f=RegExp("^rgb\\("+[u,u,u]+"\\)$"),h=RegExp("^rgba\\("+[s,s,s,l]+"\\)$"),p=RegExp("^rgba\\("+[u,u,u,l]+"\\)$"),m=RegExp("^hsl\\("+[l,u,u]+"\\)$"),v=RegExp("^hsla\\("+[l,u,u,l]+"\\)$"),g={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(){return this.rgb().formatHex()}function b(){return this.rgb().formatRgb()}function x(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=c.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?w(t):3===n?new S(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?j(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?j(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=d.exec(e))?new S(t[1],t[2],t[3],1):(t=f.exec(e))?new S(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=h.exec(e))?j(t[1],t[2],t[3],t[4]):(t=p.exec(e))?j(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=m.exec(e))?M(t[1],t[2]/100,t[3]/100,1):(t=v.exec(e))?M(t[1],t[2]/100,t[3]/100,t[4]):g.hasOwnProperty(e)?w(g[e]):"transparent"===e?new S(NaN,NaN,NaN,0):null}function w(e){return new S(e>>16&255,e>>8&255,255&e,1)}function j(e,t,n,r){return r<=0&&(e=t=n=NaN),new S(e,t,n,r)}function k(e){return(e instanceof i||(e=x(e)),e)?(e=e.rgb(),new S(e.r,e.g,e.b,e.opacity)):new S}function E(e,t,n,r){return 1==arguments.length?k(e):new S(e,t,n,null==r?1:r)}function S(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function _(){return"#"+O(this.r)+O(this.g)+O(this.b)}function C(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function O(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function M(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new P(e,t,n,r)}function T(e){if(e instanceof P)return new P(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=x(e)),!e)return new P;if(e instanceof P)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=NaN,l=a-o,u=(a+o)/2;return l?(s=t===a?(n-r)/l+(n0&&u<1?0:s,new P(s,l,u,e.opacity)}function A(e,t,n,r){return 1==arguments.length?T(e):new P(e,t,n,null==r?1:r)}function P(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function N(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}(0,r.Z)(i,x,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return T(this).formatHsl()},formatRgb:b,toString:b}),(0,r.Z)(S,E,(0,r.l)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:_,formatHex:_,formatRgb:C,toString:C})),(0,r.Z)(P,A,(0,r.l)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new P(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new P(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new S(N(e>=240?e-240:e+120,i,r),N(e,i,r),N(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},40948:function(e,t,n){"use strict";function r(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function i(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}n.d(t,{Z:function(){return r},l:function(){return i}})},20966:function(e,t,n){"use strict";n.d(t,{Uc:function(){return g},ZP:function(){return d}});var r=n(40948),i=n(68847),o=n(10810),a=4/29,s=6/29,l=3*(6/29)*(6/29),u=6/29*(6/29)*(6/29);function c(e){if(e instanceof f)return new f(e.l,e.a,e.b,e.opacity);if(e instanceof y)return b(e);e instanceof i.Ss||(e=(0,i.SU)(e));var t,n,r=v(e.r),o=v(e.g),a=v(e.b),s=h((.2225045*r+.7168786*o+.0606169*a)/1);return r===o&&o===a?t=n=s:(t=h((.4360747*r+.3850649*o+.1430804*a)/.96422),n=h((.0139322*r+.0971045*o+.7141733*a)/.82521)),new f(116*s-16,500*(t-s),200*(s-n),e.opacity)}function d(e,t,n,r){return 1==arguments.length?c(e):new f(e,t,n,null==r?1:r)}function f(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function h(e){return e>u?Math.pow(e,1/3):e/l+a}function p(e){return e>s?e*e*e:l*(e-a)}function m(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function v(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function g(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof y)return new y(e.h,e.c,e.l,e.opacity);if(e instanceof f||(e=c(e)),0===e.a&&0===e.b)return new y(NaN,0i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}var d={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:u.Z,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>c(100*e,t),r:c,s:function(e,t){var n=(0,u.V)(e,t);if(!n)return e+"";var i=n[0],o=n[1],a=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+Array(1-a).join("0")+(0,u.V)(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function f(e){return e}var h=Array.prototype.map,p=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];o=(i=function(e){var t,n,i,o=void 0===e.grouping||void 0===e.thousands?f:(t=h.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),a=void 0===e.currency?"":e.currency[0]+"",u=void 0===e.currency?"":e.currency[1]+"",c=void 0===e.decimal?".":e.decimal+"",m=void 0===e.numerals?f:(i=h.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return i[+e]})}),v=void 0===e.percent?"%":e.percent+"",g=void 0===e.minus?"−":e.minus+"",y=void 0===e.nan?"NaN":e.nan+"";function b(e){var t=(e=(0,l.Z)(e)).fill,n=e.align,i=e.sign,s=e.symbol,f=e.zero,h=e.width,b=e.comma,x=e.precision,w=e.trim,j=e.type;"n"===j?(b=!0,j="g"):d[j]||(void 0===x&&(x=12),w=!0,j="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var k="$"===s?a:"#"===s&&/[boxX]/.test(j)?"0"+j.toLowerCase():"",E="$"===s?u:/[%p]/.test(j)?v:"",S=d[j],_=/[defgprs%]/.test(j);function C(e){var a,s,l,u=k,d=E;if("c"===j)d=S(e)+d,e="";else{var v=(e=+e)<0||1/e<0;if(e=isNaN(e)?y:S(Math.abs(e),x),w&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),v&&0==+e&&"+"!==i&&(v=!1),u=(v?"("===i?i:g:"-"===i||"("===i?"":i)+u,d=("s"===j?p[8+r/3]:"")+d+(v&&"("===i?")":""),_){for(a=-1,s=e.length;++a(l=e.charCodeAt(a))||l>57){d=(46===l?c+e.slice(a+1):e.slice(a))+d,e=e.slice(0,a);break}}}b&&!f&&(e=o(e,1/0));var C=u.length+e.length+d.length,O=C>1)+u+e+d+O.slice(C);break;default:e=O+u+e+d}return m(e)}return x=void 0===x?6:/[gprs]/.test(j)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x)),C.toString=function(){return e+""},C}return{format:b,formatPrefix:function(e,t){var n=b(((e=(0,l.Z)(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor((0,s.Z)(t)/3))),i=Math.pow(10,-r),o=p[8+r/3];return function(e){return n(i*e)+o}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,a=i.formatPrefix},23733:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(39801);function i(e){return(e=(0,r.V)(Math.abs(e)))?e[1]:NaN}},39801:function(e,t,n){"use strict";function r(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function i(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}n.d(t,{V:function(){return i},Z:function(){return r}})},52328:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(e){var t;if(!(t=r.exec(e)))throw Error("invalid format: "+e);return new o({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function o(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}i.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},88013:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(23733);function i(e){return Math.max(0,-(0,r.Z)(Math.abs(e)))}},21032:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(23733);function i(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,r.Z)(t)/3)))-(0,r.Z)(Math.abs(e)))}},61652:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(23733);function i(e,t){return t=Math.abs(t)-(e=Math.abs(e)),Math.max(0,(0,r.Z)(t)-(0,r.Z)(e))+1}},12766:function(e,t){!function(e){"use strict";function t(){return(t=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a,s=!0,l=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==o.return||o.return()}finally{if(l)throw a}}}}function o(e){var t={};return 4===e.length&&(t.x2=e[2][0],t.y2=e[2][1]),e.length>=3&&(t.x1=e[1][0],t.y1=e[1][1]),t.x=e[e.length-1][0],t.y=e[e.length-1][1],4===e.length?t.type="C":3===e.length?t.type="Q":t.type="L",t}var a=/[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g,s={M:["x","y"],L:["x","y"],H:["x"],V:["y"],C:["x1","y1","x2","y2","x","y"],S:["x2","y2","x","y"],Q:["x1","y1","x","y"],T:["x","y"],A:["rx","ry","xAxisRotation","largeArcFlag","sweepFlag","x","y"],Z:[]};function l(e,t){for(var n=Array(e),r=0;r0?o-=1:o0&&(o-=1)),t[o]=(t[o]||0)+1,t},[]).reduce(function(n,r,i){if(i===e.length-1){var a=l(r,t({},e[e.length-1]));return"M"===a[0].type&&a.forEach(function(e){e.type="L"}),n.concat(a)}return n.concat(function(e,n,r){var i,a=[];if("L"===n.type||"Q"===n.type||"C"===n.type)a=a.concat((i=[[e.x,e.y]],null!=n.x1&&i.push([n.x1,n.y1]),null!=n.x2&&i.push([n.x2,n.y2]),i.push([n.x,n.y]),(function(e,t){for(var n=[],r=e,i=1/(t=t||2),o=0;o0&&"Z"===o[o.length-1].type&&o.pop(),a.length>0&&"Z"===a[a.length-1].type&&a.pop(),o.length?a.length||a.push(o[0]):o.push(a[0]),0!==Math.abs(a.length-o.length)&&(a.length>o.length?o=u(o,a,r):a.length0)for(var n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[i],a=e[i+1],s=i>0?e[i-1]:2*o-a,l=i180||n<-180?n-360*Math.round(n/360):n):(0,r.Z)(isNaN(e)?t:e)}function a(e){return 1==(e=+e)?s:function(t,n){var i,o,a;return n-t?(i=t,o=n,i=Math.pow(i,a=e),o=Math.pow(o,a)-i,a=1/a,function(e){return Math.pow(i+e*o,a)}):(0,r.Z)(isNaN(t)?n:t)}}function s(e,t){var n=t-e;return n?i(e,n):(0,r.Z)(isNaN(e)?t:e)}},88992:function(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{Z:function(){return r}})},77636:function(e,t,n){"use strict";n.d(t,{B:function(){return f},Z:function(){return d}});var r=n(40948),i=n(68847),o=n(10810),a=-1.78277*.29227-.1347134789;function s(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof l)return new l(e.h,e.s,e.l,e.opacity);e instanceof i.Ss||(e=(0,i.SU)(e));var t=e.r/255,n=e.g/255,r=e.b/255,s=(a*r+-1.7884503806*t-3.5172982438*n)/(a+-1.7884503806-3.5172982438),u=r-s,c=-((1.97294*(n-s)- -.29227*u)/.90649),d=Math.sqrt(c*c+u*u)/(1.97294*s*(1-s)),f=d?Math.atan2(c,u)*o.B-120:NaN;return new l(f<0?f+360:f,d,s,e.opacity)}(e):new l(e,t,n,null==r?1:r)}function l(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}(0,r.Z)(l,s,(0,r.l)(i.Il,{brighter:function(e){return e=null==e?i.J5:Math.pow(i.J5,e),new l(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?i.xV:Math.pow(i.xV,e),new l(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*o.V,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),a=Math.sin(e);return new i.Ss(255*(t+n*(-.14861*r+1.78277*a)),255*(t+n*(-.29227*r+-.90649*a)),255*(t+n*(1.97294*r)),this.opacity)}}));var u=n(1234);function c(e){return function t(n){function r(t,r){var i=e((t=s(t)).h,(r=s(r)).h),o=(0,u.ZP)(t.s,r.s),a=(0,u.ZP)(t.l,r.l),l=(0,u.ZP)(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=l(e),t+""}}return n=+n,r.gamma=t,r}(1)}var d=c(u.wx),f=c(u.ZP)},91255:function(e,t,n){"use strict";function r(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}n.d(t,{Z:function(){return r}})},87286:function(e,t,n){"use strict";n.d(t,{b:function(){return a}});var r=n(20966),i=n(1234);function o(e){return function(t,n){var o=e((t=(0,r.Uc)(t)).h,(n=(0,r.Uc)(n)).h),a=(0,i.ZP)(t.c,n.c),s=(0,i.ZP)(t.l,n.l),l=(0,i.ZP)(t.opacity,n.opacity);return function(e){return t.h=o(e),t.c=a(e),t.l=s(e),t.opacity=l(e),t+""}}}t.Z=o(i.wx);var a=o(i.ZP)},43780:function(e,t,n){"use strict";n.d(t,{q:function(){return a}});var r=n(68847),i=n(1234);function o(e){return function(t,n){var o=e((t=(0,r.Ym)(t)).h,(n=(0,r.Ym)(n)).h),a=(0,i.ZP)(t.s,n.s),s=(0,i.ZP)(t.l,n.l),l=(0,i.ZP)(t.opacity,n.opacity);return function(e){return t.h=o(e),t.s=a(e),t.l=s(e),t.opacity=l(e),t+""}}}t.Z=o(i.wx);var a=o(i.ZP)},31380:function(e,t,n){"use strict";n.r(t),n.d(t,{interpolate:function(){return s.Z},interpolateArray:function(){return l.Z},interpolateBasis:function(){return u.Z},interpolateBasisClosed:function(){return c.Z},interpolateCubehelix:function(){return N.Z},interpolateCubehelixLong:function(){return N.B},interpolateDate:function(){return d.Z},interpolateDiscrete:function(){return f},interpolateHcl:function(){return P.Z},interpolateHclLong:function(){return P.b},interpolateHsl:function(){return T.Z},interpolateHslLong:function(){return T.q},interpolateHue:function(){return p},interpolateLab:function(){return A.Z},interpolateNumber:function(){return m.Z},interpolateNumberArray:function(){return v.Z},interpolateObject:function(){return g.Z},interpolateRgb:function(){return M.ZP},interpolateRgbBasis:function(){return M.hD},interpolateRgbBasisClosed:function(){return M.YD},interpolateRound:function(){return y.Z},interpolateString:function(){return b.Z},interpolateTransformCss:function(){return E},interpolateTransformSvg:function(){return S},interpolateZoom:function(){return O},piecewise:function(){return R.Z},quantize:function(){return D}});var r,i,o,a,s=n(69777),l=n(47639),u=n(67855),c=n(6984),d=n(91255);function f(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var h=n(1234);function p(e,t){var n=(0,h.wx)(+e,+t);return function(e){var t=n(e);return t-360*Math.floor(t/360)}}var m=n(98876),v=n(43289),g=n(73363),y=n(74672),b=n(76060),x=180/Math.PI,w={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function j(e,t,n,r,i,o){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r180?l+=360:l-s>180&&(s+=360),f.push({i:d.push(i(d)+"rotate(",null,r)-2,x:(0,m.Z)(s,l)})):l&&d.push(i(d)+"rotate("+l+r),(u=o.skewX)!==(c=a.skewX)?f.push({i:d.push(i(d)+"skewX(",null,r)-2,x:(0,m.Z)(u,c)}):c&&d.push(i(d)+"skewX("+c+r),!function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:(0,m.Z)(e,n)},{i:s-2,x:(0,m.Z)(t,r)})}else(1!==n||1!==r)&&o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,d,f),o=a=null,function(e){for(var t,n=-1,r=f.length;++nc&&(u=t.slice(c,u),f[d]?f[d]+=u:f[++d]=u),(s=s[0])===(l=l[0])?f[d]?f[d]+=l:f[++d]=l:(f[++d]=null,h.push({i:d,x:(0,r.Z)(s,l)})),c=o.lastIndex;return c1e-6){if(Math.abs(d*l-u*c)>1e-6&&o){var h=r-a,p=i-s,m=l*l+u*u,v=Math.sqrt(m),g=Math.sqrt(f),y=o*Math.tan((n-Math.acos((m+f-(h*h+p*p))/(2*v*g)))/2),b=y/g,x=y/v;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*c)+","+(t+b*d)),this._+="A"+o+","+o+",0,0,"+ +(d*h>c*p)+","+(this._x1=e+x*l)+","+(this._y1=t+x*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t)}},arc:function(e,t,o,a,s,l){e=+e,t=+t,o=+o,l=!!l;var u=o*Math.cos(a),c=o*Math.sin(a),d=e+u,f=t+c,h=1^l,p=l?a-s:s-a;if(o<0)throw Error("negative radius: "+o);null===this._x1?this._+="M"+d+","+f:(Math.abs(this._x1-d)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+d+","+f),o&&(p<0&&(p=p%r+r),p>i?this._+="A"+o+","+o+",0,1,"+h+","+(e-u)+","+(t-c)+"A"+o+","+o+",0,1,"+h+","+(this._x1=d)+","+(this._y1=f):p>1e-6&&(this._+="A"+o+","+o+",0,"+ +(p>=n)+","+h+","+(this._x1=e+o*Math.cos(s))+","+(this._y1=t+o*Math.sin(s))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},t.Z=a},1169:function(e,t,n){"use strict";function r(e,t){return et?1:e>=t?0:NaN}n.d(t,{Z:function(){return r}})},98038:function(e,t,n){"use strict";n.d(t,{ZP:function(){return l}});var r=n(1169);function i(e){let t=e,n=e;function i(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;0>n(e[o],t)?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>(0,r.Z)(e(t),n)),{left:i,center:function(e,n,r,o){null==r&&(r=0),null==o&&(o=e.length);let a=i(e,n,r,o-1);return a>r&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}var o=n(81048);let a=i(r.Z),s=a.right;a.left,i(o.Z).center;var l=s},81048:function(e,t,n){"use strict";function r(e){return null===e?NaN:+e}function*i(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}n.d(t,{K:function(){return i},Z:function(){return r}})},33907:function(e,t,n){"use strict";function r(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}function i(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}n.d(t,{Z:function(){return l},s:function(){return u}});var o=n(1169);function a(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}var s=n(81048);function l(e,t,n){if(l=(e=Float64Array.from((0,s.K)(e,n))).length){if((t=+t)<=0||l<2)return i(e);if(t>=1)return r(e);var l,u=(l-1)*t,c=Math.floor(u),d=r((function e(t,n,r=0,i=t.length-1,s=o.Z){for(;i>r;){if(i-r>600){let o=i-r+1,a=n-r+1,l=Math.log(o),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(o-u)/o)*(a-o/2<0?-1:1),d=Math.max(r,Math.floor(n-a*u/o+c)),f=Math.min(i,Math.floor(n+(o-a)*u/o+c));e(t,n,d,f,s)}let o=t[n],l=r,u=i;for(a(t,r,n),s(t[i],o)>0&&a(t,r,i);ls(t[l],o);)++l;for(;s(t[u],o)>0;)--u}0===s(t[r],o)?a(t,r,u):a(t,++u,i),u<=n&&(r=u+1),n<=u&&(i=u-1)}return t})(e,c).subarray(0,c+1));return d+(i(e.subarray(c+1))-d)*(u-c)}}function u(e,t,n=s.Z){if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}}},32071:function(e,t,n){"use strict";n.d(t,{G9:function(){return s},ZP:function(){return a},ly:function(){return l}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,n){var r,i,o,a,l=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t0){let n=Math.round(e/a),r=Math.round(t/a);for(n*at&&--r,o=Array(i=r-n+1);++lt&&--r,o=Array(i=r-n+1);++l=0?(l>=r?10:l>=i?5:l>=o?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=r?10:l>=i?5:l>=o?2:1)}function l(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=i?s*=5:l>=o&&(s*=2),t[e.toLowerCase(),t]))}function k(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function E(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function S(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function _(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function C(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function O(e,t,n){var r=v.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function M(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function T(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function A(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function P(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function N(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function R(e,t,n){var r=v.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function D(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function L(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Z(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function F(e,t,n){var r=v.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function z(e,t,n){var r=v.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function V(e,t,n){var r=g.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function I(e,t,n){var r=v.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function B(e,t,n){var r=v.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function H(e,t){return b(e.getDate(),t,2)}function U(e,t){return b(e.getHours(),t,2)}function W(e,t){return b(e.getHours()%12||12,t,2)}function q(e,t){return b(1+u.Z.count((0,c.Z)(e),e),t,3)}function $(e,t){return b(e.getMilliseconds(),t,3)}function K(e,t){return $(e,t)+"000"}function Y(e,t){return b(e.getMonth()+1,t,2)}function G(e,t){return b(e.getMinutes(),t,2)}function X(e,t){return b(e.getSeconds(),t,2)}function Q(e){var t=e.getDay();return 0===t?7:t}function J(e,t){return b(l.OM.count((0,c.Z)(e)-1,e),t,2)}function ee(e){var t=e.getDay();return t>=4||0===t?(0,l.bL)(e):l.bL.ceil(e)}function et(e,t){return e=ee(e),b(l.bL.count((0,c.Z)(e),e)+(4===(0,c.Z)(e).getDay()),t,2)}function en(e){return e.getDay()}function er(e,t){return b(l.wA.count((0,c.Z)(e)-1,e),t,2)}function ei(e,t){return b(e.getFullYear()%100,t,2)}function eo(e,t){return b((e=ee(e)).getFullYear()%100,t,2)}function ea(e,t){return b(e.getFullYear()%1e4,t,4)}function es(e,t){var n=e.getDay();return b((e=n>=4||0===n?(0,l.bL)(e):l.bL.ceil(e)).getFullYear()%1e4,t,4)}function el(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+b(t/60|0,"0",2)+b(t%60,"0",2)}function eu(e,t){return b(e.getUTCDate(),t,2)}function ec(e,t){return b(e.getUTCHours(),t,2)}function ed(e,t){return b(e.getUTCHours()%12||12,t,2)}function ef(e,t){return b(1+s.Z.count((0,d.Z)(e),e),t,3)}function eh(e,t){return b(e.getUTCMilliseconds(),t,3)}function ep(e,t){return eh(e,t)+"000"}function em(e,t){return b(e.getUTCMonth()+1,t,2)}function ev(e,t){return b(e.getUTCMinutes(),t,2)}function eg(e,t){return b(e.getUTCSeconds(),t,2)}function ey(e){var t=e.getUTCDay();return 0===t?7:t}function eb(e,t){return b(a.Ox.count((0,d.Z)(e)-1,e),t,2)}function ex(e){var t=e.getUTCDay();return t>=4||0===t?(0,a.hB)(e):a.hB.ceil(e)}function ew(e,t){return e=ex(e),b(a.hB.count((0,d.Z)(e),e)+(4===(0,d.Z)(e).getUTCDay()),t,2)}function ej(e){return e.getUTCDay()}function ek(e,t){return b(a.l6.count((0,d.Z)(e)-1,e),t,2)}function eE(e,t){return b(e.getUTCFullYear()%100,t,2)}function eS(e,t){return b((e=ex(e)).getUTCFullYear()%100,t,2)}function e_(e,t){return b(e.getUTCFullYear()%1e4,t,4)}function eC(e,t){var n=e.getUTCDay();return b((e=n>=4||0===n?(0,a.hB)(e):a.hB.ceil(e)).getUTCFullYear()%1e4,t,4)}function eO(){return"+0000"}function eM(){return"%"}function eT(e){return+e}function eA(e){return Math.floor(+e/1e3)}i=(r=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,c=e.shortDays,d=e.months,v=e.shortMonths,g=w(i),y=j(i),b=w(o),x=j(o),ee=w(c),ex=j(c),eP=w(d),eN=j(d),eR=w(v),eD=j(v),eL={a:function(e){return c[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return v[e.getMonth()]},B:function(e){return d[e.getMonth()]},c:null,d:H,e:H,f:K,g:eo,G:es,H:U,I:W,j:q,L:$,m:Y,M:G,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:eT,s:eA,S:X,u:Q,U:J,V:et,w:en,W:er,x:null,X:null,y:ei,Y:ea,Z:el,"%":eM},eZ={a:function(e){return c[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return v[e.getUTCMonth()]},B:function(e){return d[e.getUTCMonth()]},c:null,d:eu,e:eu,f:ep,g:eS,G:eC,H:ec,I:ed,j:ef,L:eh,m:em,M:ev,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:eT,s:eA,S:eg,u:ey,U:eb,V:ew,w:ej,W:ek,x:null,X:null,y:eE,Y:e_,Z:eO,"%":eM},eF={a:function(e,t,n){var r=ee.exec(t.slice(n));return r?(e.w=ex.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=b.exec(t.slice(n));return r?(e.w=x.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=eR.exec(t.slice(n));return r?(e.m=eD.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=eP.exec(t.slice(n));return r?(e.m=eN.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return eI(e,t,n,r)},d:N,e:N,f:z,g:M,G:O,H:D,I:D,j:R,L:F,m:P,M:L,p:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.p=y.get(r[0].toLowerCase()),n+r[0].length):-1},q:A,Q:I,s:B,S:Z,u:E,U:S,V:_,w:k,W:C,x:function(e,t,r){return eI(e,n,t,r)},X:function(e,t,n){return eI(e,r,t,n)},y:M,Y:O,Z:T,"%":V};function ez(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=(r=h(p(o.y,0,1))).getUTCDay())>4||0===i?a.l6.ceil(r):(0,a.l6)(r),r=s.Z.offset(r,(o.V-1)*7),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=(i=(r=f(p(o.y,0,1))).getDay())>4||0===i?l.wA.ceil(r):(0,l.wA)(r),r=u.Z.offset(r,(o.V-1)*7),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?h(p(o.y,0,1)).getUTCDay():f(p(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,h(o)):f(o)}}function eI(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a=l)return -1;if(37===(i=t.charCodeAt(a++))){if(!(o=eF[(i=t.charAt(a++))in m?t.charAt(a++):i])||(r=o(e,n,r))<0)return -1}else if(i!=n.charCodeAt(r++))return -1}return r}return eL.x=ez(n,eL),eL.X=ez(r,eL),eL.c=ez(t,eL),eZ.x=ez(n,eZ),eZ.X=ez(r,eZ),eZ.c=ez(t,eZ),{format:function(e){var t=ez(e+="",eL);return t.toString=function(){return e},t},parse:function(e){var t=eV(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=ez(e+="",eZ);return t.toString=function(){return e},t},utcParse:function(e){var t=eV(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,r.parse,o=r.utcFormat,r.utcParse},48623:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},x:function(){return a}});var r=n(22274),i=n(34130);function o(){var e,t,n=(0,i.Z)().unknown(void 0),a=n.domain,s=n.range,l=0,u=1,c=!1,d=0,f=0,h=.5;function p(){var n=a().length,r=ut&&(n=e,e=t,t=n),g=function(n){return Math.max(e,Math.min(t,n))}),r=i>2?f:d,c=h=null,b}function b(t){return null==t||isNaN(t=+t)?n:(c||(c=r(p.map(e),m,v)))(e(g(t)))}return b.invert=function(n){return g(t((h||(h=r(m,p.map(e),o.Z)))(n)))},b.domain=function(e){return arguments.length?(p=Array.from(e,s.Z),y()):p.slice()},b.range=function(e){return arguments.length?(m=Array.from(e),y()):m.slice()},b.rangeRound=function(e){return m=Array.from(e),v=a.Z,y()},b.clamp=function(e){return arguments.length?(g=!!e||u,y()):g!==u},b.interpolate=function(e){return arguments.length?(v=e,y()):v},b.unknown=function(e){return arguments.length?(n=e,b):n},function(n,r){return e=n,t=r,y()}}function m(){return p()(u,u)}},79870:function(e,t,n){"use strict";n.r(t),n.d(t,{scaleBand:function(){return r.Z},scaleDiverging:function(){return function e(){var t=(0,i.Q)(O()(y.yR));return t.copy=function(){return w(t,e())},b.O.apply(t,arguments)}},scaleDivergingLog:function(){return function e(){var t=(0,a.Q)(O()).domain([.1,1,10]);return t.copy=function(){return w(t,e()).base(t.base())},b.O.apply(t,arguments)}},scaleDivergingPow:function(){return M},scaleDivergingSqrt:function(){return T},scaleDivergingSymlog:function(){return function e(){var t=(0,s.P)(O());return t.copy=function(){return w(t,e()).constant(t.constant())},b.O.apply(t,arguments)}},scaleIdentity:function(){return function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,o.Z),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,o.Z):[0,1],(0,i.Q)(r)}},scaleImplicit:function(){return l.O},scaleLinear:function(){return i.Z},scaleLog:function(){return a.Z},scaleOrdinal:function(){return l.Z},scalePoint:function(){return r.x},scalePow:function(){return u.ZP},scaleQuantile:function(){return d.Z},scaleQuantize:function(){return f.Z},scaleRadial:function(){return c.Z},scaleSequential:function(){return function e(){var t=(0,i.Q)(x()(y.yR));return t.copy=function(){return w(t,e())},b.O.apply(t,arguments)}},scaleSequentialLog:function(){return function e(){var t=(0,a.Q)(x()).domain([1,10]);return t.copy=function(){return w(t,e()).base(t.base())},b.O.apply(t,arguments)}},scaleSequentialPow:function(){return j},scaleSequentialQuantile:function(){return function e(){var t=[],n=y.yR;function r(e){if(null!=e&&!isNaN(e=+e))return n(((0,E.ZP)(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();for(let n of(t=[],e))null==n||isNaN(n=+n)||t.push(n);return t.sort(S.Z),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map((e,r)=>n(r/(t.length-1)))},r.quantiles=function(e){return Array.from({length:e+1},(n,r)=>(0,_.Z)(t,r/e))},r.copy=function(){return e(n).domain(t)},b.O.apply(r,arguments)}},scaleSequentialSqrt:function(){return k},scaleSequentialSymlog:function(){return function e(){var t=(0,s.P)(x());return t.copy=function(){return w(t,e()).constant(t.constant())},b.O.apply(t,arguments)}},scaleSqrt:function(){return u._b},scaleSymlog:function(){return s.Z},scaleThreshold:function(){return h.Z},scaleTime:function(){return p.Z},scaleUtc:function(){return m.Z},tickFormat:function(){return A.Z}});var r=n(48623),i=n(93963),o=n(5497),a=n(13641),s=n(46494),l=n(34130),u=n(72851),c=n(19637),d=n(96417),f=n(73408),h=n(74995),p=n(37932),m=n(83803),v=n(69777),g=n(74672),y=n(70552),b=n(22274);function x(){var e,t,n,r,i,o=0,a=1,s=y.yR,l=!1;function u(t){return null==t||isNaN(t=+t)?i:s(0===n?.5:(t=(r(t)-e)*n,l?Math.max(0,Math.min(1,t)):t))}function c(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),u):[s(0),s(1)]}}return u.domain=function(i){return arguments.length?([o,a]=i,e=r(o=+o),t=r(a=+a),n=e===t?0:1/(t-e),u):[o,a]},u.clamp=function(e){return arguments.length?(l=!!e,u):l},u.interpolator=function(e){return arguments.length?(s=e,u):s},u.range=c(v.Z),u.rangeRound=c(g.Z),u.unknown=function(e){return arguments.length?(i=e,u):i},function(i){return r=i,e=i(o),t=i(a),n=e===t?0:1/(t-e),u}}function w(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function j(){var e=(0,u.Hh)(x());return e.copy=function(){return w(e,j()).exponent(e.exponent())},b.O.apply(e,arguments)}function k(){return j.apply(null,arguments).exponent(.5)}var E=n(98038),S=n(1169),_=n(33907),C=n(87475);function O(){var e,t,n,r,i,o,a,s=0,l=.5,u=1,c=1,d=y.yR,f=!1;function h(e){return isNaN(e=+e)?a:(e=.5+((e=+o(e))-t)*(c*e0;){if((o=(0,r.G9)(u,c,n))===i)return a[s]=u,a[l]=c,t(a);if(o>0)u=Math.floor(u/o)*o,c=Math.ceil(c/o)*o;else if(o<0)u=Math.ceil(u*o)/o,c=Math.floor(c*o)/o;else break;i=o}return e},e}},13641:function(e,t,n){"use strict";n.d(t,{Q:function(){return p},Z:function(){return function e(){var t=p((0,a.l4)()).domain([1,10]);return t.copy=function(){return(0,a.JG)(t,e()).base(t.base())},s.o.apply(t,arguments),t}}});var r=n(32071),i=n(11192),o=n(10070),a=n(70552),s=n(22274);function l(e){return Math.log(e)}function u(e){return Math.exp(e)}function c(e){return-Math.log(-e)}function d(e){return-Math.exp(-e)}function f(e){return isFinite(e)?+("1e"+e):e<0?0:e}function h(e){return function(t){return-e(-t)}}function p(e){var t,n,a=e(l,u),s=a.domain,p=10;function m(){var r,i;return t=(r=p)===Math.E?Math.log:10===r&&Math.log10||2===r&&Math.log2||(r=Math.log(r),function(e){return Math.log(e)/r}),n=10===(i=p)?f:i===Math.E?Math.exp:function(e){return Math.pow(i,e)},s()[0]<0?(t=h(t),n=h(n),e(c,d)):e(l,u),a}return a.base=function(e){return arguments.length?(p=+e,m()):p},a.domain=function(e){return arguments.length?(s(e),m()):s()},a.ticks=function(e){var i,o=s(),a=o[0],l=o[o.length-1];(i=l0){for(;f<=h;++f)for(c=1,u=n(f);cl)break;v.push(d)}}else for(;f<=h;++f)for(c=p-1,u=n(f);c>=1;--c)if(!((d=u*c)l)break;v.push(d)}2*v.length0?l[t-1]:n[0],t=s?[l[s-1],a]:[l[t-1],l[t]]},c.unknown=function(e){return arguments.length&&(t=e),c},c.thresholds=function(){return l.slice()},c.copy=function(){return e().domain([n,a]).range(u).unknown(t)},o.o.apply((0,i.Q)(c),arguments)}}});var r=n(98038),i=n(93963),o=n(22274)},19637:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(){var t,n=(0,r.ZP)(),l=[0,1],u=!1;function c(e){var r,i=Math.sign(r=n(e))*Math.sqrt(Math.abs(r));return isNaN(i)?t:u?Math.round(i):i}return c.invert=function(e){return n.invert(s(e))},c.domain=function(e){return arguments.length?(n.domain(e),c):n.domain()},c.range=function(e){return arguments.length?(n.range((l=Array.from(e,a.Z)).map(s)),c):l.slice()},c.rangeRound=function(e){return c.range(e).round(!0)},c.round=function(e){return arguments.length?(u=!!e,c):u},c.clamp=function(e){return arguments.length?(n.clamp(e),c):n.clamp()},c.unknown=function(e){return arguments.length?(t=e,c):t},c.copy=function(){return e(n.domain(),l).round(u).clamp(n.clamp()).unknown(t)},i.o.apply(c,arguments),(0,o.Q)(c)}}});var r=n(70552),i=n(22274),o=n(93963),a=n(5497);function s(e){return Math.sign(e)*e*e}},46494:function(e,t,n){"use strict";n.d(t,{P:function(){return l},Z:function(){return function e(){var t=l((0,i.l4)());return t.copy=function(){return(0,i.JG)(t,e()).constant(t.constant())},o.o.apply(t,arguments)}}});var r=n(93963),i=n(70552),o=n(22274);function a(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function s(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function l(e){var t=1,n=e(a(1),s(t));return n.constant=function(n){return arguments.length?e(a(t=+n),s(t)):t},(0,r.Q)(n)}},74995:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(){var t,n=[.5],o=[0,1],a=1;function s(e){return null!=e&&e<=e?o[(0,r.ZP)(n,e,0,a)]:t}return s.domain=function(e){return arguments.length?(a=Math.min((n=Array.from(e)).length,o.length-1),s):n.slice()},s.range=function(e){return arguments.length?(o=Array.from(e),a=Math.min(n.length,o.length-1),s):o.slice()},s.invertExtent=function(e){var t=o.indexOf(e);return[n[t-1],n[t]]},s.unknown=function(e){return arguments.length?(t=e,s):t},s.copy=function(){return e().domain(n).range(o).unknown(t)},i.o.apply(s,arguments)}}});var r=n(98038),i=n(22274)},78937:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(32071),i=n(52328),o=n(21032),a=n(11192),s=n(61652),l=n(88013);function u(e,t,n,u){var c,d=(0,r.ly)(e,t,n);switch((u=(0,i.Z)(null==u?",f":u)).type){case"s":var f=Math.max(Math.abs(e),Math.abs(t));return null!=u.precision||isNaN(c=(0,o.Z)(d,f))||(u.precision=c),(0,a.jH)(u,f);case"":case"e":case"g":case"p":case"r":null!=u.precision||isNaN(c=(0,s.Z)(d,Math.max(Math.abs(e),Math.abs(t))))||(u.precision=c-("e"===u.type));break;case"f":case"%":null!=u.precision||isNaN(c=(0,l.Z)(d))||(u.precision=c-("%"===u.type)*2)}return(0,a.WU)(u)}},37932:function(e,t,n){"use strict";n.d(t,{Y:function(){return g},Z:function(){return y}});var r=n(1381),i=n(97344),o=n(50690),a=n(76231),s=n(68603),l=n(54076),u=n(18450),c=n(52546),d=n(61743),f=n(70552),h=n(22274),p=n(10070);function m(e){return new Date(e)}function v(e){return e instanceof Date?+e:+new Date(+e)}function g(e,t,n,r,i,o,a,s,l,u){var c=(0,f.ZP)(),d=c.invert,h=c.domain,y=u(".%L"),b=u(":%S"),x=u("%I:%M"),w=u("%I %p"),j=u("%a %d"),k=u("%b %d"),E=u("%B"),S=u("%Y");function _(e){return(l(e)A*A+P*P&&(S=C,_=O),{cx:S,cy:_,x01:-d,y01:-f,x11:S*(i/j-1),y11:_*(i/j-1)}}function f(){var e=a,t=s,n=(0,i.Z)(0),f=null,h=l,p=u,m=c,v=null;function g(){var i,a,s=+e.apply(this,arguments),l=+t.apply(this,arguments),u=h.apply(this,arguments)-o.ou,c=p.apply(this,arguments)-o.ou,g=(0,o.Wn)(c-u),y=c>u;if(v||(v=i=(0,r.Z)()),lo.Ho){if(g>o.BZ-o.Ho)v.moveTo(l*(0,o.mC)(u),l*(0,o.O$)(u)),v.arc(0,0,l,u,c,!y),s>o.Ho&&(v.moveTo(s*(0,o.mC)(c),s*(0,o.O$)(c)),v.arc(0,0,s,c,u,y));else{var b,x,w=u,j=c,k=u,E=c,S=g,_=g,C=m.apply(this,arguments)/2,O=C>o.Ho&&(f?+f.apply(this,arguments):(0,o._b)(s*s+l*l)),M=(0,o.VV)((0,o.Wn)(l-s)/2,+n.apply(this,arguments)),T=M,A=M;if(O>o.Ho){var P=(0,o.ZR)(O/s*(0,o.O$)(C)),N=(0,o.ZR)(O/l*(0,o.O$)(C));(S-=2*P)>o.Ho?(P*=y?1:-1,k+=P,E-=P):(S=0,k=E=(u+c)/2),(_-=2*N)>o.Ho?(N*=y?1:-1,w+=N,j-=N):(_=0,w=j=(u+c)/2)}var R=l*(0,o.mC)(w),D=l*(0,o.O$)(w),L=s*(0,o.mC)(E),Z=s*(0,o.O$)(E);if(M>o.Ho){var F,z=l*(0,o.mC)(j),V=l*(0,o.O$)(j),I=s*(0,o.mC)(k),B=s*(0,o.O$)(k);if(go.Ho?A>o.Ho?(b=d(I,B,R,D,l,A,y),x=d(z,V,L,Z,l,A,y),v.moveTo(b.cx+b.x01,b.cy+b.y01),Ao.Ho&&S>o.Ho?T>o.Ho?(b=d(L,Z,z,V,s,-T,y),x=d(R,D,I,B,s,-T,y),v.lineTo(b.cx+b.x01,b.cy+b.y01),T=a;--s)f.point(g[s],y[s]);f.lineEnd(),f.areaEnd()}}v&&(g[o]=+e(h,o,i),y[o]=+n(h,o,i),f.point(t?+t(h,o,i):g[o],l?+l(h,o,i):y[o]))}if(p)return f=null,p+""||null}function p(){return(0,a.Z)().defined(u).curve(d).context(c)}return h.x=function(n){return arguments.length?(e="function"==typeof n?n:(0,i.Z)(+n),t=null,h):e},h.x0=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.Z)(+t),h):e},h.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:(0,i.Z)(+e),h):t},h.y=function(e){return arguments.length?(n="function"==typeof e?e:(0,i.Z)(+e),l=null,h):n},h.y0=function(e){return arguments.length?(n="function"==typeof e?e:(0,i.Z)(+e),h):n},h.y1=function(e){return arguments.length?(l=null==e?null:"function"==typeof e?e:(0,i.Z)(+e),h):l},h.lineX0=h.lineY0=function(){return p().x(e).y(n)},h.lineY1=function(){return p().x(e).y(l)},h.lineX1=function(){return p().x(t).y(n)},h.defined=function(e){return arguments.length?(u="function"==typeof e?e:(0,i.Z)(!!e),h):u},h.curve=function(e){return arguments.length?(d=e,null!=c&&(f=d(c)),h):d},h.context=function(e){return arguments.length?(null==e?c=f=null:f=d(c=e),h):c},h}},72299:function(e,t,n){"use strict";n.d(t,{t:function(){return r}});var r=Array.prototype.slice},33554:function(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{Z:function(){return r}})},46385:function(e,t,n){"use strict";function r(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function i(e,t){this._context=e,this._k=(1-t)/6}n.d(t,{pC:function(){return i},xm:function(){return r}}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:r(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:r(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},t.ZP=function e(t){function n(e){return new i(e,t)}return n.tension=function(t){return e(+t)},n}(0)},20651:function(e,t,n){"use strict";function r(e){this._context=e}function i(e){return new r(e)}n.d(t,{Z:function(){return i}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}}},27266:function(e,t,n){"use strict";function r(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0);return((o<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs((o*i+a*r)/(r+i)))||0}function i(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function o(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function a(e){this._context=e}function s(e){this._context=new l(e)}function l(e){this._context=e}function u(e){return new a(e)}function c(e){return new s(e)}n.d(t,{Z:function(){return u},s:function(){return c}}),a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:o(this,this._t0,i(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,o(this,i(this,n=r(this,e,t)),n);break;default:o(this,this._t0,n=r(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(s.prototype=Object.create(a.prototype)).point=function(e,t){a.prototype.point.call(this,t,e)},l.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}}},23165:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},j:function(){return r}});var r=o(n(20651).Z);function i(e){this._curve=e}function o(e){function t(t){return new i(e(t))}return t._curve=e,t}i.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),-(t*Math.cos(e)))}}},45742:function(e,t,n){"use strict";function r(e,t){this._context=e,this._t=t}function i(e){return new r(e,.5)}function o(e){return new r(e,0)}function a(e){return new r(e,1)}n.d(t,{RN:function(){return o},ZP:function(){return i},cD:function(){return a}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}}},59207:function(e,t,n){"use strict";n.r(t),n.d(t,{arc:function(){return r.Z},area:function(){return i.Z},areaRadial:function(){return u},curveBasis:function(){return k},curveBasisClosed:function(){return S},curveBasisOpen:function(){return C},curveBundle:function(){return M},curveCardinal:function(){return T.ZP},curveCardinalClosed:function(){return P},curveCardinalOpen:function(){return R},curveCatmullRom:function(){return F},curveCatmullRomClosed:function(){return V},curveCatmullRomOpen:function(){return B},curveLinear:function(){return W.Z},curveLinearClosed:function(){return U},curveMonotoneX:function(){return q.Z},curveMonotoneY:function(){return q.s},curveNatural:function(){return Y},curveStep:function(){return G.ZP},curveStepAfter:function(){return G.cD},curveStepBefore:function(){return G.RN},line:function(){return o.Z},lineRadial:function(){return l.Z},linkHorizontal:function(){return d.h5},linkRadial:function(){return d.M4},linkVertical:function(){return d.rR},pie:function(){return a.Z},pointRadial:function(){return c.Z},radialArea:function(){return u},radialLine:function(){return l.Z},stack:function(){return X.Z},stackOffsetDiverging:function(){return J.Z},stackOffsetExpand:function(){return Q.Z},stackOffsetNone:function(){return ee.Z},stackOffsetSilhouette:function(){return et.Z},stackOffsetWiggle:function(){return en.Z},stackOrderAppearance:function(){return er.Z},stackOrderAscending:function(){return ei.Z},stackOrderDescending:function(){return eo.Z},stackOrderInsideOut:function(){return ea.Z},stackOrderNone:function(){return es.Z},stackOrderReverse:function(){return el.Z},symbol:function(){return f.Z},symbolCircle:function(){return h.Z},symbolCross:function(){return p.Z},symbolDiamond:function(){return m.Z},symbolSquare:function(){return v.Z},symbolStar:function(){return g.Z},symbolTriangle:function(){return y.Z},symbolWye:function(){return b.Z},symbols:function(){return f.u}});var r=n(38764),i=n(79493),o=n(79767),a=n(69619),s=n(23165),l=n(8329);function u(){var e=(0,i.Z)().curve(s.j),t=e.curve,n=e.lineX0,r=e.lineX1,o=e.lineY0,a=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return(0,l.X)(n())},delete e.lineX0,e.lineEndAngle=function(){return(0,l.X)(r())},delete e.lineX1,e.lineInnerRadius=function(){return(0,l.X)(o())},delete e.lineY0,e.lineOuterRadius=function(){return(0,l.X)(a())},delete e.lineY1,e.curve=function(e){return arguments.length?t((0,s.Z)(e)):t()._curve},e}var c=n(3326),d=n(72215),f=n(24037),h=n(62628),p=n(9135),m=n(82893),v=n(44523),g=n(86707),y=n(42965),b=n(60598);function x(){}function w(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function j(e){this._context=e}function k(e){return new j(e)}function E(e){this._context=e}function S(e){return new E(e)}function _(e){this._context=e}function C(e){return new _(e)}function O(e,t){this._basis=new j(e),this._beta=t}j.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:w(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},E.prototype={areaStart:x,areaEnd:x,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},O.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],o=t[0],a=e[n]-i,s=t[n]-o,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*a),this._beta*t[l]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var M=function e(t){function n(e){return 1===t?new j(e):new O(e,t)}return n.beta=function(t){return e(+t)},n}(.85),T=n(46385);function A(e,t){this._context=e,this._k=(1-t)/6}A.prototype={areaStart:x,areaEnd:x,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:(0,T.xm)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var P=function e(t){function n(e){return new A(e,t)}return n.tension=function(t){return e(+t)},n}(0);function N(e,t){this._context=e,this._k=(1-t)/6}N.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:(0,T.xm)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var R=function e(t){function n(e){return new N(e,t)}return n.tension=function(t){return e(+t)},n}(0),D=n(15);function L(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>D.Ho){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>D.Ho){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*u+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function Z(e,t){this._context=e,this._alpha=t}Z.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var F=function e(t){function n(e){return t?new Z(e,t):new T.pC(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function z(e,t){this._context=e,this._alpha=t}z.prototype={areaStart:x,areaEnd:x,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var V=function e(t){function n(e){return t?new z(e,t):new A(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function I(e,t){this._context=e,this._alpha=t}I.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var B=function e(t){function n(e){return t?new I(e,t):new N(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function H(e){this._context=e}function U(e){return new H(e)}H.prototype={areaStart:x,areaEnd:x,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};var W=n(20651),q=n(27266);function $(e){this._context=e}function K(e){var t,n,r=e.length-1,i=Array(r),o=Array(r),a=Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(t=0,o[r-1]=(e[r]+i[r-1])/2;t1?0:e<-1?d:Math.acos(e)}function m(e){return e>=1?f:e<=-1?-f:Math.asin(e)}},76751:function(e,t,n){"use strict";function r(e,t){if((s=e.length)>0)for(var n,r,i,o,a,s,l=0,u=e[t[0]].length;l0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)}n.d(t,{Z:function(){return r}})},22254:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(90541);function i(e,t){if((i=e.length)>0){for(var n,i,o,a=0,s=e[0].length;a1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o0){for(var n,i=0,o=e[t[0]],a=o.length;i0&&(i=(n=e[t[0]]).length)>0){for(var n,i,o,a=0,s=1;so&&(o=t,r=n);return r}},19721:function(e,t,n){"use strict";n.d(t,{S:function(){return o},Z:function(){return i}});var r=n(81182);function i(e){var t=e.map(o);return(0,r.Z)(e).sort(function(e,n){return t[e]-t[n]})}function o(e){for(var t,n=0,r=-1,i=e.length;++r=0;)n[t]=t;return n}n.d(t,{Z:function(){return r}})},40277:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(81182);function i(e){return(0,r.Z)(e).reverse()}},69619:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(33554);function i(e,t){return te?1:t>=e?0:NaN}function o(e){return e}var a=n(15);function s(){var e=o,t=i,n=null,s=(0,r.Z)(0),l=(0,r.Z)(a.BZ),u=(0,r.Z)(0);function c(r){var i,o,c,d,f,h=r.length,p=0,m=Array(h),v=Array(h),g=+s.apply(this,arguments),y=Math.min(a.BZ,Math.max(-a.BZ,l.apply(this,arguments)-g)),b=Math.min(Math.abs(y)/h,u.apply(this,arguments)),x=b*(y<0?-1:1);for(i=0;i0&&(p+=f);for(null!=t?m.sort(function(e,n){return t(v[e],v[n])}):null!=n&&m.sort(function(e,t){return n(r[e],r[t])}),i=0,c=p?(y-h*x)/p:0;i0?f*c:0)+x,v[o]={data:r[o],index:i,value:f,startAngle:g,endAngle:d,padAngle:b};return v}return c.value=function(t){return arguments.length?(e="function"==typeof t?t:(0,r.Z)(+t),c):e},c.sortValues=function(e){return arguments.length?(t=e,n=null,c):t},c.sort=function(e){return arguments.length?(n=e,t=null,c):n},c.startAngle=function(e){return arguments.length?(s="function"==typeof e?e:(0,r.Z)(+e),c):s},c.endAngle=function(e){return arguments.length?(l="function"==typeof e?e:(0,r.Z)(+e),c):l},c.padAngle=function(e){return arguments.length?(u="function"==typeof e?e:(0,r.Z)(+e),c):u},c}},11053:function(e,t,n){"use strict";function r(e){return e[0]}function i(e){return e[1]}n.d(t,{x:function(){return r},y:function(){return i}})},3326:function(e,t,n){"use strict";function r(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}n.d(t,{Z:function(){return r}})},98926:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(72299),i=n(33554),o=n(90541),a=n(81182);function s(e,t){return e[t]}function l(){var e=(0,i.Z)([]),t=a.Z,n=o.Z,l=s;function u(r){var i,o,a=e.apply(this,arguments),s=r.length,u=a.length,c=Array(u);for(i=0;ie.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.yB)/i.UD,e=>e.getDate()-1);t.Z=o;var a=o.range},1514:function(e,t,n){"use strict";n.d(t,{UD:function(){return a},Y2:function(){return o},Ym:function(){return r},iM:function(){return s},jz:function(){return l},qz:function(){return u},yB:function(){return i}});let r=1e3,i=60*r,o=60*i,a=24*o,s=7*a,l=30*a,u=365*a},54076:function(e,t,n){"use strict";n.d(t,{i:function(){return a}});var r=n(22179),i=n(1514),o=(0,r.Z)(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.Ym-e.getMinutes()*i.yB)},function(e,t){e.setTime(+e+t*i.Y2)},function(e,t){return(t-e)/i.Y2},function(e){return e.getHours()});t.Z=o;var a=o.range},11365:function(e,t,n){"use strict";n.r(t),n.d(t,{timeDay:function(){return l.Z},timeDays:function(){return l.a},timeFriday:function(){return u.mC},timeFridays:function(){return u.b$},timeHour:function(){return s.Z},timeHours:function(){return s.i},timeInterval:function(){return r.Z},timeMillisecond:function(){return i.Z},timeMilliseconds:function(){return i.m},timeMinute:function(){return a.Z},timeMinutes:function(){return a.L},timeMonday:function(){return u.wA},timeMondays:function(){return u.bJ},timeMonth:function(){return c.Z},timeMonths:function(){return c.e},timeSaturday:function(){return u.EY},timeSaturdays:function(){return u.Ff},timeSecond:function(){return o.Z},timeSeconds:function(){return o.m},timeSunday:function(){return u.OM},timeSundays:function(){return u.vm},timeThursday:function(){return u.bL},timeThursdays:function(){return u.$t},timeTickInterval:function(){return y._g},timeTicks:function(){return y.jK},timeTuesday:function(){return u.sy},timeTuesdays:function(){return u.aU},timeWednesday:function(){return u.zg},timeWednesdays:function(){return u.Ld},timeWeek:function(){return u.OM},timeWeeks:function(){return u.vm},timeYear:function(){return d.Z},timeYears:function(){return d.g},utcDay:function(){return p.Z},utcDays:function(){return p.y},utcFriday:function(){return m.QQ},utcFridays:function(){return m.fz},utcHour:function(){return h.Z},utcHours:function(){return h.X},utcMillisecond:function(){return i.Z},utcMilliseconds:function(){return i.m},utcMinute:function(){return f.Z},utcMinutes:function(){return f.N},utcMonday:function(){return m.l6},utcMondays:function(){return m.$3},utcMonth:function(){return v.Z},utcMonths:function(){return v.K},utcSaturday:function(){return m.g4},utcSaturdays:function(){return m.Q_},utcSecond:function(){return o.Z},utcSeconds:function(){return o.m},utcSunday:function(){return m.Ox},utcSundays:function(){return m.SU},utcThursday:function(){return m.hB},utcThursdays:function(){return m.xj},utcTickInterval:function(){return y.jo},utcTicks:function(){return y.WG},utcTuesday:function(){return m.J1},utcTuesdays:function(){return m.DK},utcWednesday:function(){return m.b3},utcWednesdays:function(){return m.uy},utcWeek:function(){return m.Ox},utcWeeks:function(){return m.SU},utcYear:function(){return g.Z},utcYears:function(){return g.D}});var r=n(22179),i=n(30356),o=n(52546),a=n(18450),s=n(54076),l=n(68603),u=n(76231),c=n(50690),d=n(97344),f=n(52004),h=n(28239),p=n(12370),m=n(97631),v=n(94758),g=n(2908),y=n(1381)},22179:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(t,n,o,a){function s(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return s.floor=function(e){return t(e=new Date(+e)),e},s.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},s.round=function(e){var t=s(e),n=s.ceil(e);return e-t0))return a;do a.push(o=new Date(+e)),n(e,i),t(e);while(o=e)for(;t(e),!r(e);)e.setTime(e-1)},function(e,t){if(e>=e){if(t<0)for(;++t<=0;)for(;n(e,-1),!r(e););else for(;--t>=0;)for(;n(e,1),!r(e););}})},o&&(s.count=function(e,n){return r.setTime(+e),i.setTime(+n),t(r),t(i),Math.floor(o(r,i))},s.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?s.filter(a?function(t){return a(t)%e==0}:function(t){return s.count(0,t)%e==0}):s:null}),s}}});var r=new Date,i=new Date},30356:function(e,t,n){"use strict";n.d(t,{m:function(){return o}});var r=n(22179),i=(0,r.Z)(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});i.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?(0,r.Z)(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):i:null},t.Z=i;var o=i.range},18450:function(e,t,n){"use strict";n.d(t,{L:function(){return a}});var r=n(22179),i=n(1514),o=(0,r.Z)(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.Ym)},function(e,t){e.setTime(+e+t*i.yB)},function(e,t){return(t-e)/i.yB},function(e){return e.getMinutes()});t.Z=o;var a=o.range},50690:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var r=(0,n(22179).Z)(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});t.Z=r;var i=r.range},52546:function(e,t,n){"use strict";n.d(t,{m:function(){return a}});var r=n(22179),i=n(1514),o=(0,r.Z)(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*i.Ym)},function(e,t){return(t-e)/i.Ym},function(e){return e.getUTCSeconds()});t.Z=o;var a=o.range},1381:function(e,t,n){"use strict";n.d(t,{_g:function(){return _},jK:function(){return S},jo:function(){return E},WG:function(){return k}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=i?s*=5:l>=o&&(s*=2),t>>1;0>n(e[o],t)?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>{var r;return(r=e(t))n?1:r>=n?0:NaN}),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);let a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}})(([,,e])=>e).right(c,i);if(o===c.length)return e.every(a(t/s.qz,n/s.qz,r));if(0===o)return l.Z.every(Math.max(a(t,n,r),1));let[u,d]=c[i/c[o-1][2]0?(0,r.Z)(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null},t.Z=i;var o=i.range},76231:function(e,t,n){"use strict";n.d(t,{$t:function(){return g},EY:function(){return f},Ff:function(){return b},Ld:function(){return v},OM:function(){return a},aU:function(){return m},b$:function(){return y},bJ:function(){return p},bL:function(){return c},mC:function(){return d},sy:function(){return l},vm:function(){return h},wA:function(){return s},zg:function(){return u}});var r=n(22179),i=n(1514);function o(e){return(0,r.Z)(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.yB)/i.iM})}var a=o(0),s=o(1),l=o(2),u=o(3),c=o(4),d=o(5),f=o(6),h=a.range,p=s.range,m=l.range,v=u.range,g=c.range,y=d.range,b=f.range},97344:function(e,t,n){"use strict";n.d(t,{g:function(){return o}});var r=n(22179),i=(0,r.Z)(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});i.every=function(e){return isFinite(e=Math.floor(e))&&e>0?(0,r.Z)(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null},t.Z=i;var o=i.range},1645:function(e,t,n){"use strict";function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,{Z:function(){return r}})},19785:function(e,t,n){"use strict";function r(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:function(){return r}})},29193:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(66700),i=n(19785);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),o=(0,r.Z)(t),a=n.getTime()-o.getTime();return a<0?-1:a>0?1:a}var a={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},s=n(88811),l=n(1645);function u(e,t){var n,u,c,d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,i.Z)(2,arguments);var f=d.locale||s.Z;if(!f.formatDistance)throw RangeError("locale must contain formatDistance property");var h=o(e,t);if(isNaN(h))throw RangeError("Invalid time value");var p=function(e,t){if(null==e)throw TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}({},d);p.addSuffix=!!d.addSuffix,p.comparison=h,h>0?(n=(0,r.Z)(t),u=(0,r.Z)(e)):(n=(0,r.Z)(e),u=(0,r.Z)(t));var m=function(e,t,n){(0,i.Z)(2,arguments);var o,s=function(e,t){return(0,i.Z)(2,arguments),(0,r.Z)(e).getTime()-(0,r.Z)(t).getTime()}(e,t)/1e3;return((o=null==n?void 0:n.roundingMethod)?a[o]:a.trunc)(s)}(u,n),v=Math.round((m-((0,l.Z)(u)-(0,l.Z)(n))/1e3)/60);if(v<2){if(d.includeSeconds){if(m<5)return f.formatDistance("lessThanXSeconds",5,p);if(m<10)return f.formatDistance("lessThanXSeconds",10,p);if(m<20)return f.formatDistance("lessThanXSeconds",20,p);if(m<40)return f.formatDistance("halfAMinute",null,p);else if(m<60)return f.formatDistance("lessThanXMinutes",1,p);else return f.formatDistance("xMinutes",1,p)}return 0===v?f.formatDistance("lessThanXMinutes",1,p):f.formatDistance("xMinutes",v,p)}if(v<45)return f.formatDistance("xMinutes",v,p);if(v<90)return f.formatDistance("aboutXHours",1,p);if(v<1440){var g=Math.round(v/60);return f.formatDistance("aboutXHours",g,p)}if(v<2520)return f.formatDistance("xDays",1,p);if(v<43200){var y=Math.round(v/1440);return f.formatDistance("xDays",y,p)}if(v<86400)return c=Math.round(v/43200),f.formatDistance("aboutXMonths",c,p);if((c=function(e,t){(0,i.Z)(2,arguments);var n,a=(0,r.Z)(e),s=(0,r.Z)(t),l=o(a,s),u=Math.abs(function(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),o=(0,r.Z)(t);return 12*(n.getFullYear()-o.getFullYear())+(n.getMonth()-o.getMonth())}(a,s));if(u<1)n=0;else{1===a.getMonth()&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-l*u);var c=o(a,s)===-l;(function(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e);return(function(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e);return t.setHours(23,59,59,999),t})(t).getTime()===(function(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t})(t).getTime()})((0,r.Z)(e))&&1===u&&1===o(e,s)&&(c=!1),n=l*(u-Number(c))}return 0===n?0:n}(u,n))<12){var b=Math.round(v/43200);return f.formatDistance("xMonths",b,p)}var x=c%12,w=Math.floor(c/12);return x<3?f.formatDistance("aboutXYears",w,p):x<9?f.formatDistance("overXYears",w,p):f.formatDistance("almostXYears",w+1,p)}},88811:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r,i={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function o(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var a={date:o({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:o({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:o({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function l(e){return function(t,n){var r,i=n||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=i.width?String(i.width):o;r=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=i.width?String(i.width):e.defaultWidth;r=e.values[l]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function u(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var s=a[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var n=0;n0?"in "+r:r+" ago":r},formatLong:a,formatRelative:function(e,t,n,r){return s[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:l({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:l({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:l({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:l({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:l({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(r={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(r.matchPattern);if(!n)return null;var i=n[0],o=e.match(r.parsePattern);if(!o)return null;var a=r.valueCallback?r.valueCallback(o[0]):o[0];return{value:a=t.valueCallback?t.valueCallback(a):a,rest:e.slice(i.length)}}),era:u({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:u({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:u({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:u({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:u({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},66700:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(19785);function i(e){(0,r.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(Error().stack)),new Date(NaN))}},36386:function(e){function t(e,t,n){function r(){var u=Date.now()-s;u=0?i=setTimeout(r,t-u):(i=null,n||(l=e.apply(a,o),a=o=null))}null==t&&(t=100);var i,o,a,s,l,u=function(){a=this,o=arguments,s=Date.now();var u=n&&!i;return i||(i=setTimeout(r,t)),u&&(l=e.apply(a,o),a=o=null),l};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(l=e.apply(a,o),a=o=null,clearTimeout(i),i=null)},u}t.debounce=t,e.exports=t},7114:function(e,t,n){"use strict";n.d(t,{TA:function(){return F}});var r=n(2784),i=n(78435),o=n.n(i),a=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==s},s="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function l(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c(Array.isArray(e)?[]:{},e,t):e}function u(e,t,n){return e.concat(t).map(function(e){return l(e,n)})}function c(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||u,n.isMergeableObject=n.isMergeableObject||a;var r,i,o=Array.isArray(t);return o!==Array.isArray(e)?l(t,n):o?n.arrayMerge(e,t,n):(i={},(r=n).isMergeableObject(e)&&Object.keys(e).forEach(function(t){i[t]=l(e[t],r)}),Object.keys(t).forEach(function(n){r.isMergeableObject(t[n])&&e[n]?i[n]=c(e[n],t[n],r):i[n]=l(t[n],r)}),i)}c.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return c(e,n,t)},{})};var d=c,f=n(65255),h=n(99625),p=function(e){return(0,h.Z)(e,4)},m=n(95598),v=n(31162),g=n(97885),y=n(22758),b=n(71354),x=n(57969),w=n(50063),j=function(e){return(0,g.Z)(e)?(0,m.Z)(e,x.Z):(0,y.Z)(e)?[e]:(0,v.Z)((0,b.Z)((0,w.Z)(e)))},k=function(e,t){};function E(){return(E=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function _(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(73463);var C=function(e){return Array.isArray(e)&&0===e.length},O=function(e){return"function"==typeof e},M=function(e){return null!==e&&"object"==typeof e},T=function(e){return"[object String]"===Object.prototype.toString.call(e)},A=function(e){return M(e)&&O(e.then)};function P(e,t,n,r){void 0===r&&(r=0);for(var i=j(t);e&&r=0?[]:{}}}return(0===o?e:i)[a[o]]===n?e:(void 0===n?delete i[a[o]]:i[a[o]]=n,0===o&&void 0===n&&delete r[a[o]],r)}var R=(0,r.createContext)(void 0);function D(e,t){switch(t.type){case"SET_VALUES":return E({},e,{values:t.payload});case"SET_TOUCHED":return E({},e,{touched:t.payload});case"SET_ERRORS":if(o()(e.errors,t.payload))return e;return E({},e,{errors:t.payload});case"SET_STATUS":return E({},e,{status:t.payload});case"SET_ISSUBMITTING":return E({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return E({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return E({},e,{values:N(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return E({},e,{touched:N(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return E({},e,{errors:N(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return E({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return E({},e,{touched:function e(t,n,r,i){void 0===r&&(r=new WeakMap),void 0===i&&(i={});for(var o=0,a=Object.keys(t);o=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var o,a=o;P(t,a.path)||(t=N(t,a.path,a.message))}}return t}(n)):t(n)})})},[v.validationSchema]),V=(0,r.useCallback)(function(e,t){return new Promise(function(n){return n(j.current[e].validate(t))})},[]),B=(0,r.useCallback)(function(e){var t=Object.keys(j.current).filter(function(e){return O(j.current[e].validate)});return Promise.all(t.length>0?t.map(function(t){return V(t,P(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")]).then(function(e){return e.reduce(function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=N(e,t[r],n)),e},{})})},[V]),H=(0,r.useCallback)(function(e){return Promise.all([B(e),v.validationSchema?F(e):{},v.validate?R(e):{}]).then(function(e){var t=e[0],n=e[1],r=e[2];return d.all([t,n,r],{arrayMerge:z})})},[v.validate,v.validationSchema,B,R,F]),U=I(function(e){return void 0===e&&(e=_.values),C({type:"SET_ISVALIDATING",payload:!0}),H(e).then(function(e){return w.current&&(C({type:"SET_ISVALIDATING",payload:!1}),C({type:"SET_ERRORS",payload:e})),e})});(0,r.useEffect)(function(){l&&!0===w.current&&o()(g.current,v.initialValues)&&U(g.current)},[l,U]);var W=(0,r.useCallback)(function(e){var t=e&&e.values?e.values:g.current,n=e&&e.errors?e.errors:y.current?y.current:v.initialErrors||{},r=e&&e.touched?e.touched:b.current?b.current:v.initialTouched||{},i=e&&e.status?e.status:x.current?x.current:v.initialStatus;g.current=t,y.current=n,b.current=r,x.current=i;var o=function(){C({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(v.onReset){var a=v.onReset(_.values,ec);A(a)?a.then(o):o()}else o()},[v.initialErrors,v.initialStatus,v.initialTouched]);(0,r.useEffect)(function(){!0===w.current&&!o()(g.current,v.initialValues)&&(h&&(g.current=v.initialValues,W()),l&&U(g.current))},[h,v.initialValues,W,l,U]),(0,r.useEffect)(function(){h&&!0===w.current&&!o()(y.current,v.initialErrors)&&(y.current=v.initialErrors||L,C({type:"SET_ERRORS",payload:v.initialErrors||L}))},[h,v.initialErrors]),(0,r.useEffect)(function(){h&&!0===w.current&&!o()(b.current,v.initialTouched)&&(b.current=v.initialTouched||Z,C({type:"SET_TOUCHED",payload:v.initialTouched||Z}))},[h,v.initialTouched]),(0,r.useEffect)(function(){h&&!0===w.current&&!o()(x.current,v.initialStatus)&&(x.current=v.initialStatus,C({type:"SET_STATUS",payload:v.initialStatus}))},[h,v.initialStatus,v.initialTouched]);var q=I(function(e){if(j.current[e]&&O(j.current[e].validate)){var t=P(_.values,e),n=j.current[e].validate(t);return A(n)?(C({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){C({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),C({type:"SET_ISVALIDATING",payload:!1})})):(C({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return v.validationSchema?(C({type:"SET_ISVALIDATING",payload:!0}),F(_.values,e).then(function(e){return e}).then(function(t){C({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),C({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),$=(0,r.useCallback)(function(e,t){var n=t.validate;j.current[e]={validate:n}},[]),K=(0,r.useCallback)(function(e){delete j.current[e]},[]),Y=I(function(e,t){return C({type:"SET_TOUCHED",payload:e}),(void 0===t?a:t)?U(_.values):Promise.resolve()}),G=(0,r.useCallback)(function(e){C({type:"SET_ERRORS",payload:e})},[]),X=I(function(e,t){var r=O(e)?e(_.values):e;return C({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?U(r):Promise.resolve()}),Q=(0,r.useCallback)(function(e,t){C({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),J=I(function(e,t,r){return C({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?U(N(_.values,e,t)):Promise.resolve()}),ee=(0,r.useCallback)(function(e,t){var n,r=t,i=e;if(!T(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,a=o.type,s=o.name,l=o.id,u=o.value,c=o.checked,d=(o.outerHTML,o.options),f=o.multiple;r=t||s||l,i=/number|range/.test(a)?isNaN(n=parseFloat(u))?"":n:/checkbox/.test(a)?function(e,t,n){if("boolean"==typeof e)return!!t;var r=[],i=!1,o=-1;if(Array.isArray(e))r=e,i=(o=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return!!t;return t&&n&&!i?r.concat(n):i?r.slice(0,o).concat(r.slice(o+1)):r}(P(_.values,r),c,u):d&&f?Array.from(d).filter(function(e){return e.selected}).map(function(e){return e.value}):u}r&&J(r,i)},[J,_.values]),et=I(function(e){if(T(e))return function(t){return ee(t,e)};ee(e)}),en=I(function(e,t,n){return void 0===t&&(t=!0),C({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?a:n)?U(_.values):Promise.resolve()}),er=(0,r.useCallback)(function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,i=n.id;n.outerHTML,en(t||r||i,!0)},[en]),ei=I(function(e){if(T(e))return function(t){return er(t,e)};er(e)}),eo=(0,r.useCallback)(function(e){O(e)?C({type:"SET_FORMIK_STATE",payload:e}):C({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),ea=(0,r.useCallback)(function(e){C({type:"SET_STATUS",payload:e})},[]),es=(0,r.useCallback)(function(e){C({type:"SET_ISSUBMITTING",payload:e})},[]),el=I(function(){return C({type:"SUBMIT_ATTEMPT"}),U().then(function(e){var t,n=e instanceof Error;if(!n&&0===Object.keys(e).length){try{if(t=ed(),void 0===t)return}catch(e){throw e}return Promise.resolve(t).then(function(e){return w.current&&C({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(w.current)throw C({type:"SUBMIT_FAILURE"}),e})}if(w.current&&(C({type:"SUBMIT_FAILURE"}),n))throw e})}),eu=I(function(e){e&&e.preventDefault&&O(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&O(e.stopPropagation)&&e.stopPropagation(),el().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),ec={resetForm:W,validateForm:U,validateField:q,setErrors:G,setFieldError:Q,setFieldTouched:en,setFieldValue:J,setStatus:ea,setSubmitting:es,setTouched:Y,setValues:X,setFormikState:eo,submitForm:el},ed=I(function(){return p(_.values,ec)}),ef=I(function(e){e&&e.preventDefault&&O(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&O(e.stopPropagation)&&e.stopPropagation(),W()}),eh=(0,r.useCallback)(function(e){return{value:P(_.values,e),error:P(_.errors,e),touched:!!P(_.touched,e),initialValue:P(g.current,e),initialTouched:!!P(b.current,e),initialError:P(y.current,e)}},[_.errors,_.touched,_.values]),ep=(0,r.useCallback)(function(e){return{setValue:function(t,n){return J(e,t,n)},setTouched:function(t,n){return en(e,t,n)},setError:function(t){return Q(e,t)}}},[J,en,Q]),em=(0,r.useCallback)(function(e){var t=M(e),n=t?e.name:e,r=P(_.values,n),i={name:n,value:r,onChange:et,onBlur:ei};if(t){var o=e.type,a=e.value,s=e.as,l=e.multiple;"checkbox"===o?void 0===a?i.checked=!!r:(i.checked=!!(Array.isArray(r)&&~r.indexOf(a)),i.value=a):"radio"===o?(i.checked=r===a,i.value=a):"select"===s&&l&&(i.value=i.value||[],i.multiple=!0)}return i},[ei,et,_.values]),ev=(0,r.useMemo)(function(){return!o()(g.current,_.values)},[g.current,_.values]),eg=(0,r.useMemo)(function(){return void 0!==u?ev?_.errors&&0===Object.keys(_.errors).length:!1!==u&&O(u)?u(v):u:_.errors&&0===Object.keys(_.errors).length},[u,ev,_.errors,v]);return E({},_,{initialValues:g.current,initialErrors:y.current,initialTouched:b.current,initialStatus:x.current,handleBlur:ei,handleChange:et,handleReset:ef,handleSubmit:eu,resetForm:W,setErrors:G,setFormikState:eo,setFieldTouched:en,setFieldValue:J,setFieldError:Q,setStatus:ea,setSubmitting:es,setTouched:Y,setValues:X,submitForm:el,validateForm:U,validateField:q,isValid:eg,dirty:ev,unregisterField:K,registerField:$,getFieldProps:em,getFieldMeta:eh,getFieldHelpers:ep,validateOnBlur:a,validateOnChange:n,validateOnMount:l})}function z(e,t,n){var r=e.slice();return t.forEach(function(t,i){if(void 0===r[i]){var o=!1!==n.clone&&n.isMergeableObject(t);r[i]=o?d(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[i]=d(e[i],t,n):-1===e.indexOf(t)&&r.push(t)}),r}var V="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;function I(e){var t=(0,r.useRef)(e);return V(function(){t.current=e}),(0,r.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;re?t:e},0);return Array.from(E({},e,{length:t+1}))};(function(e){function t(t){var n;return(n=e.call(this,t)||this).updateArrayField=function(e,t,r){var i=n.props,o=i.name;(0,i.formik.setFormikState)(function(n){var i="function"==typeof r?r:e,a="function"==typeof t?t:e,s=N(n.values,o,e(P(n.values,o))),l=r?i(P(n.errors,o)):void 0,u=t?a(P(n.touched,o)):void 0;return C(l)&&(l=void 0),C(u)&&(u=void 0),E({},n,{values:s,errors:r?N(n.errors,o,l):n.errors,touched:t?N(n.touched,o,u):n.touched})})},n.push=function(e){return n.updateArrayField(function(t){return[].concat(q(t),[(0,h.Z)(e,5)])},!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField(function(n){return H(n,e,t)},!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField(function(n){return B(n,e,t)},!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField(function(n){return U(n,e,t)},function(t){return U(t,e,null)},function(t){return U(t,e,null)})},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField(function(n){return W(n,e,t)},!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField(function(n){var r=n?[e].concat(n):[e];return t<0&&(t=r.length),r},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n}),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(_(n)),n.pop=n.pop.bind(_(n)),n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e;var n=t.prototype;return n.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!o()(P(e.formik.values,e.name),P(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(e){var t;return this.updateArrayField(function(n){var r=n?q(n):[];return t||(t=r[e]),O(r.splice)&&r.splice(e,1),r},!0,!0),t},n.pop=function(){var e;return this.updateArrayField(function(t){return e||(e=t&&t.pop&&t.pop()),t},!0,!0),e},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,i=t.render,o=t.children,a=t.name,s=S(t.formik,["validate","validationSchema"]),l=E({},e,{form:s,name:a});return n?(0,r.createElement)(n,l):i?i(l):o?"function"==typeof o?o(l):0===r.Children.count(o)?null:r.Children.only(o):null},t})(r.Component).defaultProps={validateOnChange:!0}},73463:function(e,t,n){"use strict";var r=n(73887),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),v=0;v */t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,c=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:(h?-1:1)*(1/0);a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,f=23===i?5960464477539062e-23:0,h=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[n+h]=255&a,h+=p,a/=256,u-=8);e[n+h-p]|=128*m}},39515:function(e,t,n){var r=n(38761)(n(37772),"DataView");e.exports=r},89612:function(e,t,n){var r=n(52118),i=n(96909),o=n(98138),a=n(4174),s=n(7942);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++ti?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r=i?e:r(e,t,n)}},24019:function(e,t,n){var r=n(37772)["__core-js_shared__"];e.exports=r},55463:function(e){e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}},83126:function(e,t,n){var r=n(23895),i=n(33880),o=n(8435),a=n(66188);e.exports=function(e){return function(t){var n=i(t=a(t))?o(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},34311:function(e,t,n){var r=n(81207),i=n(97329),o=n(11618),a=RegExp("['’]","g");e.exports=function(e){return function(t){return r(o(i(t).replace(a,"")),e,"")}}},61655:function(e,t,n){var r=n(6435)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=r},83043:function(e,t,n){var r=n(38761),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},74871:function(e,t,n){var r=n(45386),i=n(87064),o=n(59950);e.exports=function(e,t,n,a,s,l){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,v=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p-1&&e%1==0&&e-1}},94769:function(e,t,n){var r=n(22218);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},92411:function(e,t,n){var r=n(89612),i=n(80235),o=n(10326);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},36417:function(e,t,n){var r=n(27937);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},86928:function(e,t,n){var r=n(27937);e.exports=function(e){return r(this,e).get(e)}},18052:function(e,t,n){var r=n(27937);e.exports=function(e){return r(this,e).has(e)}},24150:function(e,t,n){var r=n(27937);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},75179:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},73477:function(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},77777:function(e,t,n){var r=n(30733);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},99191:function(e,t,n){var r=n(38761)(Object,"create");e.exports=r},54248:function(e,t,n){var r=n(60241)(Object.keys,Object);e.exports=r},4146:function(e,t,n){e=n.nmd(e);var r=n(51242),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},37157:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},60241:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},37772:function(e,t,n){var r=n(51242),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},52842:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},52482:function(e){e.exports=function(e){return this.__data__.has(e)}},16909:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},15243:function(e,t,n){var r=n(80235);e.exports=function(){this.__data__=new r,this.size=0}},72858:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},4417:function(e){e.exports=function(e){return this.__data__.get(e)}},8605:function(e){e.exports=function(e){return this.__data__.has(e)}},71418:function(e,t,n){var r=n(80235),i=n(10326),o=n(96738);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},8435:function(e,t,n){var r=n(50217),i=n(33880),o=n(63344);e.exports=function(e){return i(e)?o(e):r(e)}},54452:function(e,t,n){var r=n(77777),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)}),t});e.exports=a},33812:function(e,t,n){var r=n(4795),i=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},87035:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},52153:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},63344:function(e){var t="\ud800-\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\ud83c[\udffb-\udfff]",i="[^"+t+"]",o="(?:\ud83c[\udde6-\uddff]){2}",a="[\ud800-\udbff][\udc00-\udfff]",s="(?:"+n+"|"+r+")?",l="[\\ufe0e\\ufe0f]?",u="(?:\\u200d(?:"+[i,o,a].join("|")+")"+l+s+")*",c=RegExp(r+"(?="+r+")|(?:"+[i+n+"?",n,o,a,"["+t+"]"].join("|")+")"+(l+s+u),"g");e.exports=function(e){return e.match(c)||[]}},75304:function(e){var t="\ud800-\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="['’]",s="["+o+"]",l="["+r+"]",u="[^"+t+o+"\\d+"+n+r+i+"]",c="(?:\ud83c[\udde6-\uddff]){2}",d="[\ud800-\udbff][\udc00-\udfff]",f="["+i+"]",h="(?:"+l+"|"+u+")",p="(?:"+a+"(?:d|ll|m|re|s|t|ve))?",m="(?:"+a+"(?:D|LL|M|RE|S|T|VE))?",v="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",g="[\\ufe0e\\ufe0f]?",y="(?:\\u200d(?:"+["[^"+t+"]",c,d].join("|")+")"+g+v+")*",b="(?:"+["["+n+"]",c,d].join("|")+")"+(g+v+y),x=RegExp([f+"?"+l+"+"+p+"(?="+[s,f,"$"].join("|")+")","(?:"+f+"|"+u+")+"+m+"(?="+[s,f+h,"$"].join("|")+")",f+"?"+h+"+"+p,f+"+"+m,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",b].join("|"),"g");e.exports=function(e){return e.match(x)||[]}},96009:function(e,t,n){var r=n(82108),i=n(34311)(function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)});e.exports=i},82108:function(e,t,n){var r=n(66188),i=n(23779);e.exports=function(e){return i(r(e).toLowerCase())}},54073:function(e,t,n){var r=n(29259),i=n(61100),o=n(7642),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,u,c,d,f,h,p=0,m=!1,v=!1,g=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=l,r=u;return l=u=void 0,p=t,d=e.apply(r,n)}function b(e){var n=e-h,r=e-p;return void 0===h||n>=t||n<0||v&&r>=c}function x(){var e,n,r,o=i();if(b(o))return w(o);f=setTimeout(x,(e=o-h,n=o-p,r=t-e,v?s(r,c-n):r))}function w(e){return(f=void 0,g&&l)?y(e):(l=u=void 0,d)}function j(){var e,n=i(),r=b(n);if(l=arguments,u=this,h=n,r){if(void 0===f)return p=e=h,f=setTimeout(x,t),m?y(e):d;if(v)return clearTimeout(f),f=setTimeout(x,t),y(h)}return void 0===f&&(f=setTimeout(x,t)),d}return t=o(t)||0,r(n)&&(m=!!n.leading,c=(v="maxWait"in n)?a(o(n.maxWait)||0,t):c,g="trailing"in n?!!n.trailing:g),j.cancel=function(){void 0!==f&&clearTimeout(f),p=0,l=h=u=f=void 0},j.flush=function(){return void 0===f?d:w(i())},j}},97329:function(e,t,n){var r=n(61655),i=n(66188),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,r).replace(a,"")}},41225:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},72579:function(e,t,n){var r=n(13324);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},93352:function(e,t,n){var r=n(32726),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,r)}},95041:function(e,t,n){var r=n(20187),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,r)}},23059:function(e){e.exports=function(e){return e}},79631:function(e,t,n){var r=n(15183),i=n(15125),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},86152:function(e){var t=Array.isArray;e.exports=t},67878:function(e,t,n){var r=n(61049),i=n(61158);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},73226:function(e,t,n){e=n.nmd(e);var r=n(37772),i=n(36330),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=s?s.isBuffer:void 0;e.exports=l||i},61049:function(e,t,n){var r=n(53366),i=n(29259);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},61158:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},29259:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},15125:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},4795:function(e,t,n){var r=n(53366),i=n(15125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},77598:function(e,t,n){var r=n(35522),i=n(47826),o=n(4146),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},90249:function(e,t,n){var r=n(1634),i=n(86411),o=n(67878);e.exports=function(e){return o(e)?r(e):i(e)}},19950:function(e,t,n){var r=n(13940),i=n(26548),o=n(68286);e.exports=function(e,t){var n={};return t=o(t,3),i(e,function(e,i,o){r(n,t(e,i,o),e)}),n}},34519:function(e,t,n){var r=n(13940),i=n(26548),o=n(68286);e.exports=function(e,t){var n={};return t=o(t,3),i(e,function(e,i,o){r(n,i,t(e,i,o))}),n}},30733:function(e,t,n){var r=n(96738);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},61100:function(e,t,n){var r=n(37772);e.exports=function(){return r.Date.now()}},65798:function(e,t,n){var r=n(20256),i=n(82952),o=n(21401),a=n(33812);e.exports=function(e){return o(e)?r(a(e)):i(e)}},57370:function(e,t,n){var r=n(34311)(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});e.exports=r},30981:function(e){e.exports=function(){return[]}},36330:function(e){e.exports=function(){return!1}},7642:function(e,t,n){var r=n(51704),i=n(29259),o=n(4795),a=0/0,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):s.test(e)?a:+e}},66188:function(e,t,n){var r=n(1054);e.exports=function(e){return null==e?"":r(e)}},23779:function(e,t,n){var r=n(83126)("toUpperCase");e.exports=r},11618:function(e,t,n){var r=n(45981),i=n(83559),o=n(66188),a=n(75304);e.exports=function(e,t,n){return(e=o(e),void 0===(t=n?void 0:t))?i(e)?a(e):r(e):e.match(t)||[]}},53207:function(e,t,n){var r=n(96570);r.prototype.formulaEval=function(){"use strict";for(var e,t,n,r=[],i=this.value,o=0;o"+t.value+""+i[o].show+""+e.value+"",type:10}):r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+""+e.value+"",type:1})):2===i[o].type||9===i[o].type?(e=r.pop(),t=r.pop(),r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+i[o].show+(1!=e.type?"(":"")+e.value+(1!=e.type?")":""),type:i[o].type})):12===i[o].type&&(e=r.pop(),t=r.pop(),n=r.pop(),r.push({value:i[o].show+"("+n.value+","+t.value+","+e.value+")",type:12}));return r[0].value},e.exports=r},66655:function(e,t,n){"use strict";var r=n(72346);function i(e,t){for(var n=0;np.length-2?p.length-1:e.length-l;n>0;n--)if(void 0!==p[n])for(i=0;i0&&En)s.push(e);else{for(;n>=i&&!c||c&&i1)throw new r.Exception("Uncaught Syntax error");return o[0].value>1e15?"Infinity":parseFloat(o[0].value.toFixed(15))},r.eval=function(e,t,n){return void 0===t?this.lex(e).toPostfix().postfixEval():void 0!==n?this.lex(e,t).toPostfix().postfixEval(n):void 0!==t.length?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t)},e.exports=r},38617:function(e,t,n){"use strict";n.d(t,{F:function(){return u},f:function(){return c}});var r=n(2784);let i=["light","dark"],o="(prefers-color-scheme: dark)",a="undefined"==typeof window,s=(0,r.createContext)(void 0),l={setTheme:e=>{},themes:[]},u=()=>{var e;return null!==(e=(0,r.useContext)(s))&&void 0!==e?e:l},c=e=>(0,r.useContext)(s)?r.createElement(r.Fragment,null,e.children):r.createElement(f,e),d=["light","dark"],f=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:a=!0,storageKey:l="theme",themes:u=d,defaultTheme:c=n?"system":"light",attribute:f="data-theme",value:g,children:y,nonce:b})=>{let[x,w]=(0,r.useState)(()=>p(l,c)),[j,k]=(0,r.useState)(()=>p(l)),E=g?Object.values(g):u,S=(0,r.useCallback)(e=>{let r=e;if(!r)return;"system"===e&&n&&(r=v());let o=g?g[r]:r,s=t?m():null,l=document.documentElement;if("class"===f?(l.classList.remove(...E),o&&l.classList.add(o)):o?l.setAttribute(f,o):l.removeAttribute(f),a){let e=i.includes(c)?c:null,t=i.includes(r)?r:e;l.style.colorScheme=t}null==s||s()},[]),_=(0,r.useCallback)(e=>{w(e);try{localStorage.setItem(l,e)}catch(e){}},[e]),C=(0,r.useCallback)(t=>{let r=v(t);k(r),"system"===x&&n&&!e&&S("system")},[x,e]);(0,r.useEffect)(()=>{let e=window.matchMedia(o);return e.addListener(C),C(e),()=>e.removeListener(C)},[C]),(0,r.useEffect)(()=>{let e=e=>{e.key===l&&_(e.newValue||c)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[_]),(0,r.useEffect)(()=>{S(null!=e?e:x)},[e,x]);let O=(0,r.useMemo)(()=>({theme:x,setTheme:_,forcedTheme:e,resolvedTheme:"system"===x?j:x,themes:n?[...u,"system"]:u,systemTheme:n?j:void 0}),[x,_,e,j,n,u]);return r.createElement(s.Provider,{value:O},r.createElement(h,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:a,storageKey:l,themes:u,defaultTheme:c,attribute:f,value:g,children:y,attrs:E,nonce:b}),y)},h=(0,r.memo)(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:a,enableColorScheme:s,defaultTheme:l,value:u,attrs:c,nonce:d})=>{let f="system"===l,h="class"===n?`var d=document.documentElement,c=d.classList;c.remove(${c.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=s?i.includes(l)&&l?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${l}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(e,t=!1,r=!0)=>{let o=u?u[e]:e,a=t?e+"|| ''":`'${o}'`,l="";return s&&r&&!t&&i.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===n?l+=t||o?`c.add(${a})`:"null":o&&(l+=`d[s](n,${a})`),l},v=e?`!function(){${h}${m(e)}}()`:a?`!function(){try{${h}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${f})){var t='${o}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}${f?"":"else{"+m(l,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${h}var e=localStorage.getItem('${t}');if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}else{${m(l,!1,!1)};}${p}}catch(t){}}();`;return r.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:v}})},()=>!0),p=(e,t)=>{let n;if(!a){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},m=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},v=e=>(e||(e=window.matchMedia(o)),e.matches?"dark":"light")},86570:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(73221)}])},4941:function(e,t,n){"use strict";n.d(t,{Ul:function(){return s},WD:function(){return l},fu:function(){return c},o4:function(){return u}});var r=n(52322),i=n(57362),o=n(82851),a=n(99182);function s(e){let{currentPage:t,parentPage:n,commandPage:s,className:l,...u}=e,c=(0,a.U8)(e=>e.search);if((null==n?void 0:n.namespace)===(null==t?void 0:t.namespace)&&!c)return(0,r.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",l),value:"".concat(null==s?void 0:s.label," ").concat(u.children.toString()),...u})}function l(e){let{currentPage:t,commandPage:n,className:s,...l}=e,u=(0,a.U8)(e=>e.search),c=n.namespace.startsWith((null==t?void 0:t.namespace)||"");if(u&&c||n.namespace===(null==t?void 0:t.namespace))return(0,r.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",s),value:"".concat(n.label," ").concat(l.children.toString()),...l})}function u(e){let{currentPage:t,commandPage:n,className:s,...l}=e,u=(0,a.U8)(e=>e.search),c=n.namespace.startsWith((null==t?void 0:t.namespace)||"");if(u&&c||!t||n.namespace===(null==t?void 0:t.namespace))return(0,r.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",s),value:"".concat(n.label," ").concat(l.children.toString()),...l})}function c(e){let{heading:t,currentPage:n,commandPage:o,...s}=e,l=(0,a.U8)(e=>e.search);return(0,r.jsx)(a.mY.Group,{heading:l&&(null==n?void 0:n.namespace)!==o.namespace&&(0,r.jsx)(i.__J,{className:"px-1",size:"12",children:o.label}),...s})}n(2784)},82459:function(e,t,n){"use strict";n.d(t,{F:function(){return g}});var r=n(52322),i=n(57362),o=n(88242),a=n(9969),s=n(71930),l=n(5632),u=n(26592),c=n(19513),d=n(33571),f=n(98358),h=n(31781),p=n(24801),m=n(86811),v=n(2784);function g(e){var t,n;let{id:g,address:y,publicKey:b,contentProps:x,buttonProps:w}=e,j=(0,l.useRouter)(),{setFilter:k,resetFilters:E}=(0,c.l)(),{setFilter:S,resetFilters:_}=(0,u.G)(),C=(0,a.uf)(),O=(0,a.s2)(),M=(0,f.l)(),T=(0,d.I)(),A=function(){let{openConfirmDialog:e}=(0,m.Rh)(),t=(0,a.IK)();return(0,v.useCallback)(n=>e({title:"Delete contract",action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Jrl,{}),"Delete"]}),variant:"red",body:(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)(i.nvN,{size:"14",children:"Are you sure you would like to delete the following contract:"}),(0,r.jsxs)(i.nvN,{size:"14",font:"mono",children:[n.slice(0,20),"..."]})]}),onConfirm:async()=>{let e=await t.delete({params:{id:n}});e.error&&(0,i.OHV)("Error deleting contract."),(0,i.OPV)("Successfully deleted contract.")}}),[e,t])}();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...w,children:(0,r.jsx)(o.iG7,{})}),contentProps:{align:"start",...x,onClick:e=>{e.stopPropagation()}},children:[(0,r.jsx)("div",{className:"px-1.5 py-1",children:(0,r.jsxs)(i.xvT,{size:"14",weight:"medium",color:"subtle",children:["Contract ",b.slice(0,24),"..."]})}),(0,r.jsx)(i.Juw,{children:"Filters"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{E(),k({id:"addressContains",value:y,label:"Address contains ".concat(y)}),j.push(s._.hosts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter hosts by host address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{_(),S((0,h.e)(y)),j.push(s._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter contracts by host address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{_(),S((0,p.V)(b)),j.push(s._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter contracts by host public key"]}),(0,r.jsx)(i.Juw,{children:"Actions"}),(null===(t=C.data)||void 0===t?void 0:t.find(e=>e===y))?(0,r.jsxs)(i.Xiv,{onSelect:()=>M([],[y]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Remove host address from blocklist"]}):(0,r.jsxs)(i.Xiv,{onSelect:()=>M([y],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Add host address to blocklist"]}),(null===(n=O.data)||void 0===n?void 0:n.find(e=>e===b))?(0,r.jsxs)(i.Xiv,{onSelect:()=>T([],[b]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Remove host public key from allowlist"]}):(0,r.jsxs)(i.Xiv,{onSelect:()=>T([b],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Add host public key to allowlist"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>A(g),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.Jrl,{})}),"Delete contract"]}),(0,r.jsx)(i.Juw,{children:"Copy"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>(0,i.vQq)(g,"contract ID"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.olJ,{})}),"Contract ID"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>(0,i.vQq)(b,"host public key"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.olJ,{})}),"Host public key"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>(0,i.vQq)(y,"host address"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.olJ,{})}),"Host address"]})]})}},93216:function(e,t,n){"use strict";n.d(t,{F:function(){return M}});var r=n(52322),i=n(57362),o=n(4941);let a={namespace:"contracts/filterExpiryDate",label:"Contracts filter by expiry date"},s=[{id:"expiry",value:"day",label:"expires today",fn:e=>{let t=new Date().getTime(),n=t+(0,i.NrH)(1);return e.endTimet}},{id:"expiry",value:"week",label:"expires this week",fn:e=>{let t=new Date().getTime(),n=t+(0,i.BL0)(1);return e.endTimet}},{id:"expiry",value:"month",label:"expires this month",fn:e=>{let t=new Date().getTime(),n=t+(0,i.xLV)(1);return e.endTimet}},{id:"expiry",value:"nextMonth",label:"expires next month",fn:e=>{let t=new Date().getTime(),n=t+(0,i.xLV)(2);return e.endTimet}},{id:"expiry",value:"year",label:"expires this year",fn:e=>{let t=new Date().getTime(),n=t+(0,i.ivg)(1);return e.endTimet}},{id:"expiry",value:"expired",label:"expired",fn:e=>{let t=new Date().getTime();return e.endTime(0,r.jsx)(o.WD,{currentPage:t,commandPage:a,onSelect:()=>{n(e)},children:e.label},e.id+e.value))})}let u={namespace:"contracts/filterFormationDate",label:"Contracts filter by formation date"},c=[{id:"formationDate",value:"day",label:"formed in the last day",fn:e=>{let t=new Date().getTime(),n=t-(0,i.NrH)(1);return e.startTime>=n}},{id:"formationDate",value:"week",label:"formed in the last week",fn:e=>{let t=new Date().getTime(),n=t-(0,i.BL0)(1);return e.startTime>=n}},{id:"formationDate",value:"twoWeeks",label:"formed in the last two weeks",fn:e=>{let t=new Date().getTime(),n=t-(0,i.BL0)(2);return e.startTime>=n}},{id:"formationDate",value:"month",label:"formed in the last month",fn:e=>{let t=new Date().getTime(),n=t-(0,i.xLV)(1);return e.startTime>=n}},{id:"formationDate",value:"twoMonths",label:"formed in the last two months",fn:e=>{let t=new Date().getTime(),n=t-(0,i.xLV)(2);return e.startTime>=n}},{id:"formationDate",value:"year",label:"formed in the last year",fn:e=>{let t=new Date().getTime(),n=t-(0,i.ivg)(1);return e.startTime>=n}}];function d(e){let{currentPage:t,select:n}=e;return(0,r.jsx)(o.fu,{currentPage:t,commandPage:u,children:c.map(e=>(0,r.jsx)(o.WD,{currentPage:t,commandPage:u,onSelect:()=>{n(e)},children:e.label},e.id+e.value))})}let f={namespace:"contracts/filterRenewDate",label:"Contracts filter by renew date"},h=[{id:"renewDate",value:"day",label:"renewed in the last day",fn:e=>{let t=new Date().getTime(),n=t-(0,i.NrH)(1);return e.isRenewed&&e.startTime>=n}},{id:"renewDate",value:"week",label:"renewed in the last week",fn:e=>{let t=new Date().getTime(),n=t-(0,i.BL0)(1);return e.isRenewed&&e.startTime>=n}},{id:"renewDate",value:"twoWeeks",label:"renewed in the last two weeks",fn:e=>{let t=new Date().getTime(),n=t-(0,i.BL0)(2);return e.isRenewed&&e.startTime>=n}},{id:"renewDate",value:"month",label:"renewed in the last month",fn:e=>{let t=new Date().getTime(),n=t-(0,i.xLV)(1);return e.isRenewed&&e.startTime>=n}},{id:"renewDate",value:"twoMonths",label:"renewed in the last two months",fn:e=>{let t=new Date().getTime(),n=t-(0,i.xLV)(2);return e.isRenewed&&e.startTime>=n}},{id:"renewDate",value:"year",label:"renewed in the last year",fn:e=>{let t=new Date().getTime(),n=t-(0,i.ivg)(1);return e.isRenewed&&e.startTime>=n}}];function p(e){let{currentPage:t,select:n}=e;return(0,r.jsx)(o.fu,{currentPage:t,commandPage:f,children:h.map(e=>(0,r.jsx)(o.WD,{currentPage:t,commandPage:f,onSelect:()=>{n(e)},children:e.label},e.id+e.value))})}var m=n(86811),v=n(31781);let g={namespace:"contracts/filterAddress",label:"Contracts filter by address"};function y(e){let{select:t,currentPage:n}=e,{openDialog:i}=(0,m.Rh)(),a=(0,v.e)("");return(0,r.jsx)(o.fu,{currentPage:n,commandPage:g,children:(0,r.jsx)(o.WD,{currentPage:n,commandPage:g,onSelect:()=>{t(),i("contractsFilterAddress")},children:a.label})})}function b(e){let{select:t,currentPage:n,parentPage:i,commandPage:a}=e,{openDialog:s}=(0,m.Rh)();return(0,r.jsx)(o.Ul,{currentPage:n,parentPage:i,commandPage:a,onSelect:()=>{t(),s("contractsFilterAddress")},children:g.label})}var x=n(24801);let w={namespace:"contracts/filterPublicKey",label:"Contracts filter by public key"};function j(e){let{select:t,currentPage:n}=e,i=(0,x.V)(""),{openDialog:a}=(0,m.Rh)();return(0,r.jsx)(o.fu,{currentPage:n,commandPage:w,children:(0,r.jsx)(o.WD,{currentPage:n,commandPage:w,onSelect:()=>{t(),a("contractsFilterPublicKey")},children:i.label})})}function k(e){let{select:t,currentPage:n,parentPage:i,commandPage:a}=e,{openDialog:s}=(0,m.Rh)();return(0,r.jsx)(o.Ul,{currentPage:n,parentPage:i,commandPage:a,onSelect:()=>{t(),s("contractsFilterPublicKey")},children:w.label})}function E(e){let{currentPage:t,select:n}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(y,{currentPage:t,select:n}),(0,r.jsx)(j,{currentPage:t,select:n}),(0,r.jsx)(l,{currentPage:t,select:n}),(0,r.jsx)(d,{currentPage:t,select:n}),(0,r.jsx)(p,{currentPage:t,select:n})]})}let S={namespace:"contracts",label:"Contracts"};function _(e){let{currentPage:t,parentPage:n,pushPage:i,select:s}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b,{currentPage:t,parentPage:n,commandPage:S,select:s}),(0,r.jsx)(k,{currentPage:t,parentPage:n,commandPage:S,select:s}),(0,r.jsx)(o.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{i(u)},children:u.label}),(0,r.jsx)(o.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{i(a)},children:a.label}),(0,r.jsx)(o.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{i(f)},children:f.label})]})}var C=n(26592),O=n(2784);function M(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,{setFilter:s}=(0,C.G)(),l=(0,O.useCallback)(e=>{o&&o(),e&&s(e),a&&a()},[s,o,a]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(_,{parentPage:n,currentPage:t,pushPage:i,select:l}),(0,r.jsx)(E,{currentPage:t,select:l})]})}},31781:function(e,t,n){"use strict";n.d(t,{e:function(){return u},p:function(){return f}});var r=n(52322),i=n(57362),o=n(26592),a=n(7114),s=n(24511),l=n(86811);function u(e){return{id:"addressContains",value:e,label:"address contains ".concat(e),fn:t=>t.hostIp.includes(e)}}let c={address:""},d=s.Ry().shape({address:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,o.G)(),p=(0,a.TA)({initialValues:c,validationSchema:d,onSubmit:e=>{h(u(e.address)),p.resetForm(),f()}});return(0,r.jsx)(i.VqE,{trigger:t,title:"Filter by address",open:n,onOpenChange:e=>{e||p.resetForm(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Address",name:"address",placeholder:"Partial match against domain or IP",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},24801:function(e,t,n){"use strict";n.d(t,{C:function(){return f},V:function(){return u}});var r=n(52322),i=n(57362),o=n(26592),a=n(7114),s=n(24511),l=n(86811);function u(e){return{id:"publicKeyContains",value:e,label:"public key contains ".concat((0,i.$Gg)(e,20)),fn:t=>t.hostKey.includes(e)}}let c={publicKey:""},d=s.Ry().shape({publicKey:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,o.G)(),p=(0,a.TA)({initialValues:c,validationSchema:d,onSubmit:e=>{h(u(e.publicKey)),p.resetForm(),f()}});return(0,r.jsx)(i.VqE,{trigger:t,title:"Filter by public key",open:n,onOpenChange:e=>{e||p.resetForm(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Public key",name:"publicKey",placeholder:"ed25519:02aabd26e627fd...",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},4370:function(e,t,n){"use strict";n.d(t,{F:function(){return o}});var r=n(26592),i=n(34658);function o(){var e;let t=(0,i.w)(),{datasetCount:n,isLoading:o}=(0,r.G)(),a=t.data&&!o&&n{e.stopPropagation()}},children:[(0,r.jsx)("div",{className:"px-1.5 py-1",children:(0,r.jsxs)(i.xvT,{size:"14",weight:"medium",color:"subtle",children:["Host ",g.slice(0,24),"..."]})}),(0,r.jsx)(i.Juw,{children:"Filters"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{j(),w({id:"addressContains",value:v,label:"Address contains ".concat((0,i.$Gg)(v,20))}),x.push(s._.hosts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter hosts by address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{j(),w((0,m.K)(g)),x.push(s._.hosts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter hosts by public key"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{E(),k((0,h.e)(v)),x.push(s._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter contracts by host address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{E(),k((0,p.V)(g)),x.push(s._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter contracts by host public key"]}),(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>M.post({payload:{hostKey:g,hostIP:v,timeout:(0,i.XBW)(30)}}),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o._Eq,{})}),"Rescan host"]}),(null===(t=S.data)||void 0===t?void 0:t.find(e=>e===v))?(0,r.jsxs)(i.Xiv,{onSelect:()=>C([],[v]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Remove address from blocklist"]}):(0,r.jsxs)(i.Xiv,{onSelect:()=>C([v],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Add address to blocklist"]}),(null===(n=_.data)||void 0===n?void 0:n.find(e=>e===g))?(0,r.jsxs)(i.Xiv,{onSelect:()=>O([],[g]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Remove public key from allowlist"]}):(0,r.jsxs)(i.Xiv,{onSelect:()=>O([g],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Add public key to allowlist"]}),(0,r.jsx)(i.Juw,{children:"Copy"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>(0,i.vQq)(g,"host public key"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.olJ,{})}),"Host public key"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>(0,i.vQq)(v,"host address"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.olJ,{})}),"Host address"]})]})}},34444:function(e,t,n){"use strict";n.d(t,{T:function(){return j},N:function(){return w}});var r=n(52322),i=n(2784),o=n(57362),a=n(25205),s=n(6391),l=n.n(s);function u(e){let{host:t,rates:n}=e,r=n?"$".concat(new(l())(t.settings.storageprice).times((0,a.xf)(1)).times((0,a.S5)(1)).div(1e24).times((null==n?void 0:n.usd)||1).toFixed(2),"/TB"):"".concat((0,a.Vz)(new(l())(t.settings.storageprice).times((0,a.xf)(1)).times((0,a.S5)(1)),{fixed:0}),"/TB"),i="".concat((0,a.vW)(t.activeContracts.reduce((e,t)=>e.plus(t.size),new(l())(0)).toNumber())," utilized"),s="".concat((0,a.vW)(t.settings.remainingstorage)," / ").concat((0,a.vW)(t.settings.totalstorage)," available");return"".concat((0,o.HLH)(t.countryCode)," \xb7 ").concat(r," \xb7 ").concat(i," \xb7 ").concat(s)}var c=function(){let[e,t]=(0,i.useState)(null),[n,r]=(0,i.useState)({width:0,height:0}),o=(0,i.useCallback)(()=>{r({width:(null==e?void 0:e.offsetWidth)||0,height:(null==e?void 0:e.offsetHeight)||0})},[null==e?void 0:e.offsetHeight,null==e?void 0:e.offsetWidth]);return d("resize",o),h(()=>{o()},[null==e?void 0:e.offsetHeight,null==e?void 0:e.offsetWidth]),[t,n]},d=function(e,t,n,r){let o=(0,i.useRef)(t);h(()=>{o.current=t},[t]),(0,i.useEffect)(()=>{var t;let i=null!==(t=null==n?void 0:n.current)&&void 0!==t?t:window;if(!(i&&i.addEventListener))return;let a=e=>o.current(e);return i.addEventListener(e,a,r),()=>{i.removeEventListener(e,a,r)}},[e,n,r])};let f="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;var h=f,p=n(95753),m=n(25237),v=n.n(m);let g=v()(()=>Promise.all([n.e(546),n.e(508),n.e(167),n.e(764),n.e(17)]).then(n.bind(n,45017)),{loadableGenerated:{webpack:()=>[45017]},ssr:!1}),y=(0,i.forwardRef)(function(e,t){return(0,r.jsx)(g,{...e,forwardRef:t})});var b=n(10917),x=n(9455);let w={moveToLocation:(e,t)=>null};function j(e){let{activeHost:t,hosts:n,onMount:o,onHostClick:a,onHostHover:s}=e,d=(0,x.BW)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,i.useRef)(null),h=(0,i.useRef)(w),m=(0,i.useCallback)((e,t)=>{var n;e&&(null===(n=f.current)||void 0===n||n.pointOfView({lat:e[0]-8,lng:e[1],altitude:t||1.5},700))},[]);(0,i.useEffect)(()=>{h.current.moveToLocation=m},[m]),(0,p.Q5)(()=>{var e;if(!f.current)return!1;m((null==t?void 0:t.location)||[48.8323,2.4075],1.5);let n=null===(e=f.current)||void 0===e?void 0:e.scene().children.find(e=>"DirectionalLight"===e.type);return n&&(n.intensity=10),!0}),(0,i.useEffect)(()=>{o&&o(h.current)},[]);let[v,{height:g,width:j}]=c(),k=(0,i.useMemo)(()=>n||[],[n]);return(0,r.jsx)("div",{ref:v,className:"w-full h-full",children:(0,r.jsx)(y,{ref:f,width:j,height:g,backgroundColor:"rgba(0,0,0,0)",globeImageUrl:"/_next/static/media/earth-dark-contrast.bf7081fc.png",bumpImageUrl:"/_next/static/media/earth-topology.e385a70e.png",arcsData:[],atmosphereColor:"rgba(0,0,0,0)",atmosphereAltitude:.16,animateIn:!1,arcLabel:e=>{var t;return u({host:e.dst,rates:null===(t=d.data)||void 0===t?void 0:t.rates.sc})},arcStartLat:e=>+e.src.location[0],arcStartLng:e=>+e.src.location[1],arcEndLat:e=>+e.dst.location[0],arcEndLng:e=>+e.dst.location[1],arcDashLength:.75,arcAltitude:0,arcDashGap:.1,arcDashInitialGap:()=>Math.random(),arcDashAnimateTime:5e3,arcColor:e=>t&&(e.dst.publicKey===t.publicKey||e.src.publicKey===t.publicKey)?["rgba(187, 229, 201, 0.25)","rgba(187, 229, 201, 0.25)"]:["rgba(187, 229, 201, 0.10)","rgba(187, 229, 201, 0.10)"],arcsTransitionDuration:0,pointsData:k,pointLat:e=>e.location[0],pointLng:e=>e.location[1],pointLabel:e=>{var t;return u({host:e,rates:null===(t=d.data)||void 0===t?void 0:t.rates.sc})},pointAltitude:e=>(t&&e.publicKey===(null==t?void 0:t.publicKey)||e.activeContractsCount.gt(0),.1),pointsTransitionDuration:0,pointColor:e=>{let{colorHex:n}=(0,b.Kg)(e);return t&&e.publicKey!==(null==t?void 0:t.publicKey)?function(e,t){let n=parseInt(e.slice(1,3),16),r=parseInt(e.slice(3,5),16),i=parseInt(e.slice(5,7),16);return"rgba(".concat(n,", ").concat(r,", ").concat(i,", ").concat(.2,")")}(n,0):n},pointRadius:e=>(e.activeContractsCount.gt(0)&&e.activeContracts.reduce((e,t)=>e.plus(t.size),new(l())(0)).div(1e12).toNumber(),Math.max(e.settings.remainingstorage/1e13/3,.1)),onPointHover:e=>{e&&(null==s||s(e.publicKey,e.location))},onPointClick:e=>{e&&(null==a||a(e.publicKey,e.location))},pointsMerge:!1})})}},18006:function(e,t,n){"use strict";n.d(t,{L:function(){return M}});var r=n(52322),i=n(4941),o=n(86811),a=n(2320);let s={namespace:"hosts/filterAddress",label:"Hosts filter by address"};function l(e){let{select:t,currentPage:n}=e,{openDialog:l}=(0,o.Rh)(),u=(0,a.q)("");return(0,r.jsx)(i.fu,{currentPage:n,commandPage:s,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:s,onSelect:()=>{t(),l("hostsFilterAddress")},children:u.label})})}function u(e){let{select:t,currentPage:n,parentPage:a,commandPage:l}=e,{openDialog:u}=(0,o.Rh)();return(0,r.jsx)(i.Ul,{currentPage:n,parentPage:a,commandPage:l,onSelect:()=>{t(),u("hostsFilterAddress")},children:s.label})}let c={namespace:"hosts/filterAllowBlock",label:"Hosts filter by allow/block status"},d=[{id:"filterMode",value:"allowed",label:"allowed"},{id:"filterMode",value:"blocked",label:"blocked"}];function f(e){let{select:t,currentPage:n}=e;return(0,r.jsx)(i.fu,{currentPage:n,commandPage:c,children:d.map(e=>(0,r.jsx)(i.WD,{currentPage:n,commandPage:c,onSelect:()=>{t(e)},children:e.label},e.id+e.value))})}let h={namespace:"hosts/filterActiveContracts",label:"Hosts filter by contracts"},p={id:"hasActiveContracts",bool:!0,label:"has active contracts"};function m(e){let{select:t,currentPage:n}=e;return(0,r.jsx)(i.fu,{currentPage:n,commandPage:h,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:h,onSelect:()=>{t(p)},children:p.label})})}let v={namespace:"hosts/filterUsable",label:"Hosts filter by usable"},g=[{id:"usabilityMode",value:"usable",label:"usable"},{id:"usabilityMode",value:"unusable",label:"unusable"}];function y(e){let{select:t,currentPage:n}=e;return(0,r.jsx)(i.fu,{currentPage:n,commandPage:v,children:g.map(e=>(0,r.jsx)(i.WD,{currentPage:n,commandPage:v,onSelect:()=>{t(e)},children:e.label},e.id+e.value))})}var b=n(91641),x=n(54155);let w={namespace:"hosts/filterPublicKey",label:"Hosts filter by public key"};function j(e){let{select:t,currentPage:n}=e,{openDialog:a}=(0,o.Rh)(),s=(0,x.K)("");return(0,r.jsx)(i.fu,{currentPage:n,commandPage:w,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:w,onSelect:()=>{t(),a("hostsFilterPublicKey")},children:s.label})})}function k(e){let{select:t,currentPage:n,parentPage:a,commandPage:s}=e,{openDialog:l}=(0,o.Rh)();return(0,r.jsx)(i.Ul,{currentPage:n,parentPage:a,commandPage:s,onSelect:()=>{t(),l("hostsFilterPublicKey")},children:w.label})}function E(e){let{currentPage:t,select:n}=e,{autopilot:i}=(0,b.q)();return(0,r.jsxs)(r.Fragment,{children:["on"===i.status&&(0,r.jsx)(y,{currentPage:t,select:n}),(0,r.jsx)(m,{currentPage:t,select:n}),(0,r.jsx)(l,{currentPage:t,select:n}),(0,r.jsx)(j,{currentPage:t,select:n}),(0,r.jsx)(f,{currentPage:t,select:n})]})}let S={namespace:"hosts",label:"Hosts"};function _(e){let{currentPage:t,parentPage:n,pushPage:o,select:a}=e,{autopilot:s}=(0,b.q)();return(0,r.jsxs)(r.Fragment,{children:["on"===s.status&&(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{o(v)},children:v.label}),(0,r.jsx)(k,{currentPage:t,parentPage:n,commandPage:S,select:a}),(0,r.jsx)(u,{currentPage:t,parentPage:n,commandPage:S,select:a}),(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{o(h)},children:h.label}),(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{o(c)},children:c.label})]})}var C=n(19513),O=n(2784);function M(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,{setFilter:s}=(0,C.l)(),l=(0,O.useCallback)(e=>{o&&o(),e&&s(e),a&&a()},[s,o,a]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(_,{parentPage:n,currentPage:t,pushPage:i,select:l}),(0,r.jsx)(E,{currentPage:t,pushPage:i,select:l})]})}},2320:function(e,t,n){"use strict";n.d(t,{g:function(){return f},q:function(){return u}});var r=n(52322),i=n(57362),o=n(19513),a=n(7114),s=n(24511),l=n(86811);function u(e){return{id:"addressContains",value:e,label:"address contains ".concat(e)}}let c={address:""},d=s.Ry().shape({address:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,o.l)(),p=(0,a.TA)({initialValues:c,validationSchema:d,onSubmit:e=>{h(u(e.address)),p.resetForm(),f()}});return(0,r.jsx)(i.VqE,{trigger:t,title:"Filter by address",open:n,onOpenChange:e=>{e||p.resetForm(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Address",name:"address",placeholder:"Partial match against domain or IP",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},54155:function(e,t,n){"use strict";n.d(t,{K:function(){return u},a:function(){return f}});var r=n(52322),i=n(57362),o=n(19513),a=n(7114),s=n(24511),l=n(86811);function u(e){return{id:"publicKeyEquals",value:e,label:"public key is ".concat((0,i.$Gg)(e,20))}}let c={publicKey:""},d=s.Ry().shape({publicKey:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,o.l)(),p=(0,a.TA)({initialValues:c,validationSchema:d,onSubmit:e=>{h(u(e.publicKey)),p.resetForm(),f()}});return(0,r.jsx)(i.VqE,{trigger:t,title:"Filter by public key",open:n,onOpenChange:e=>{e||p.resetForm(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Public key",name:"publicKey",placeholder:"ed25519:b050c0c6...",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},71930:function(e,t,n){"use strict";n.d(t,{_:function(){return i},h:function(){return o}});var r=n(9969);let i={home:"/",files:{index:"/files"},config:{index:"/config",storage:"/config#storage",pricing:"/config#pricing",hosts:"/config#hosts",wallet:"/config#wallet",contracts:"/config#contracts",uploads:"/config#uploads",redundancy:"/config#redundancy"},contracts:{index:"/contracts"},hosts:{index:"/hosts"},wallet:{view:"/wallet"},node:{index:"/node"},login:"/login"},o=r.HI},91641:function(e,t,n){"use strict";n.d(t,{w:function(){return u},q:function(){return l}});var r=n(52322),i=n(2784),o=n(57362),a=n(9969);let s=(0,i.createContext)({}),l=()=>(0,i.useContext)(s);function u(e){let{children:t}=e,n=function(){let e=function(){let e=(0,a.YX)({config:{swr:{dedupingInterval:(0,o.XBW)(5),revalidateOnFocus:!1,refreshInterval:e=>e?(0,o.XBW)(60):(0,o.XBW)(1)}}}),[t,n]=(0,i.useState)("init");return(0,i.useEffect)(()=>{if(e.isLoading)n("init");else if(e.isValidating)return;else if(e.error)n("off");else if(e.data){let t="object"==typeof e.data;n(t?"on":"off")}},[e]),{status:t,state:e}}();return{autopilot:e}}();return(0,r.jsx)(s.Provider,{value:n,children:t})}},19847:function(e,t,n){"use strict";n.d(t,{iV:function(){return B},ZR:function(){return I}});var r=n(52322),i=n(2784),o=n(57362),a=n(25205),s=n(6391),l=n.n(s);let u={autopilotContractSet:"",amountHosts:void 0,allowanceMonth:void 0,periodWeeks:void 0,renewWindowWeeks:void 0,downloadTBMonth:void 0,uploadTBMonth:void 0,storageTB:void 0,prune:!1,allowRedundantIPs:!1,maxDowntimeHours:void 0,minRecentScanFailures:void 0,defragThreshold:void 0},c={defaultContractSet:""},d={uploadPackingEnabled:!0},f={includeRedundancyMaxStoragePrice:!0,includeRedundancyMaxUploadPrice:!0},h={maxRpcPriceMillion:void 0,maxStoragePriceTBMonth:void 0,maxContractPrice:void 0,maxDownloadPriceTB:void 0,maxUploadPriceTB:void 0,minMaxCollateral:void 0,hostBlockHeightLeeway:void 0,minPriceTableValidityMinutes:void 0,minAccountExpiryDays:void 0,minMaxEphemeralAccountBalance:void 0,migrationSurchargeMultiplier:void 0},p={...u,...c,...d,...h,minShards:void 0,totalShards:void 0,...f};function m(e){return{storageTB:void 0,downloadTBMonth:void 0,uploadTBMonth:void 0,allowanceMonth:void 0,..."Mainnet"===e?{periodWeeks:new(l())(6),renewWindowWeeks:new(l())(2),amountHosts:new(l())(50),autopilotContractSet:"autopilot",allowRedundantIPs:!1,maxDowntimeHours:new(l())(336),minRecentScanFailures:new(l())(10),defragThreshold:new(l())(1e3),prune:!0}:{periodWeeks:new(l())(6),renewWindowWeeks:new(l())(2),amountHosts:new(l())(12),autopilotContractSet:"autopilot",allowRedundantIPs:!1,maxDowntimeHours:new(l())(336),minRecentScanFailures:new(l())(10),defragThreshold:new(l())(1e3),prune:!0}}}let v={...c,defaultContractSet:"autopilot"},g={...f},y={...d},b={...h},x=e=>Object.fromEntries(Object.entries(e).filter(e=>{let[t,n]=e;return void 0!==n&&""!==n}));function w(e,t){let n=e.defaultContractSet||(null==t?void 0:t.default)||v.defaultContractSet;return{...t,default:n}}function j(e){let{autopilot:t,contractSet:n,uploadPacking:r,gouging:i,redundancy:s,display:d,averages:h}=e,p=d?{includeRedundancyMaxStoragePrice:d.includeRedundancyMaxStoragePrice,includeRedundancyMaxUploadPrice:d.includeRedundancyMaxUploadPrice}:f,m={minShards:new(l())(s.minShards),totalShards:new(l())(s.totalShards)};return{...function(e){if(!e)return u;let t=e.contracts.set,n=(0,a.ll)(_(new(l())(e.contracts.allowance),e.contracts.period),6),r=new(l())(e.contracts.amount),i=new(l())((0,a.x5)(e.contracts.period)),s=new(l())((0,a.x5)(e.contracts.renewWindow)),c=new(l())((0,o.y70)(_((0,a.JW)(e.contracts.download),e.contracts.period),2)),d=new(l())((0,o.y70)(_((0,a.JW)(e.contracts.upload),e.contracts.period),2)),f=(0,a.JW)(new(l())(e.contracts.storage)),h=e.contracts.prune;return{autopilotContractSet:t,allowanceMonth:n,amountHosts:r,periodWeeks:i,renewWindowWeeks:s,downloadTBMonth:c,uploadTBMonth:d,storageTB:f,prune:h,allowRedundantIPs:e.hosts.allowRedundantIPs,maxDowntimeHours:new(l())(e.hosts.maxDowntimeHours),minRecentScanFailures:new(l())(e.hosts.minRecentScanFailures),defragThreshold:new(l())(e.wallet.defragThreshold)}}(t),...n?{defaultContractSet:n.default}:c,uploadPackingEnabled:r.enabled,...function(e){let{gouging:t,redundancy:n,display:r,averages:i,hasBeenConfigured:s}=e,u=function(e){let{gouging:t,averages:n,hasBeenConfigured:r}=e;return r||!n?t:{...t,maxStoragePrice:n.settings.storage_price,maxDownloadPrice:new(l())(n.settings.download_price).times((0,a.xf)(1)).toString(),maxUploadPrice:new(l())(n.settings.upload_price).times((0,a.xf)(1)).toString()}}({gouging:t,averages:i,hasBeenConfigured:s});return{maxStoragePriceTBMonth:(0,a.ll)(new(l())(u.maxStoragePrice).times((0,a.S5)(1)).times((0,a.xf)(1)).times(E(n.minShards,n.totalShards,r.includeRedundancyMaxStoragePrice)),6),maxUploadPriceTB:(0,a.ll)(new(l())(u.maxUploadPrice).times(E(n.minShards,n.totalShards,r.includeRedundancyMaxUploadPrice)),6),maxDownloadPriceTB:(0,a.ll)(u.maxDownloadPrice,6),maxContractPrice:(0,a.ll)(u.maxContractPrice,6),maxRpcPriceMillion:(0,a.ll)(u.maxRPCPrice,6).times(1e6),minMaxCollateral:(0,a.ll)(u.minMaxCollateral,6),hostBlockHeightLeeway:new(l())(u.hostBlockHeightLeeway),minPriceTableValidityMinutes:new(l())((0,o.AEA)(u.minPriceTableValidity)),minAccountExpiryDays:new(l())((0,o.okB)(u.minAccountExpiry)),minMaxEphemeralAccountBalance:(0,a.ll)(u.minMaxEphemeralAccountBalance,6),migrationSurchargeMultiplier:new(l())(u.migrationSurchargeMultiplier)}}({gouging:i,averages:h,redundancy:m,display:p,hasBeenConfigured:!!d}),...m,...p}}function k(e,t){let n=new(l())(1),r=e&&t&&!e.isZero()&&!t.isZero()&&t.gte(e);return r&&(n=t.div(e)),n}function E(e,t,n){let r=k(e,t);return n?r:new(l())(1)}function S(e,t){let n=(0,a.mv)(t.toNumber());return e.times(n).div((0,a.S5)(1))}function _(e,t){let n=e.div(t);return n.times((0,a.S5)(1))}var C=n(9969),O=n(92762),M=n(80489);function T(){let[e,t]=(0,O.Z)("v0/autopilot/syncDefaultContractSet",{defaultValue:!0}),n=(0,M.a)({config:{swr:{errorRetryCount:0}}}),a=(0,C.KJ)(),s=(0,i.useCallback)(async t=>{let i=n.data||{default:""};try{e&&t!==i.default&&(await a.put({params:{key:"contractset"},payload:w({defaultContractSet:t},n.data)}),n.mutate(),(0,o.OPV)((0,r.jsxs)(o.xvT,{children:["Default contract set has been updated to:"," ",(0,r.jsx)(o.EKh,{children:t}),"."]})))}catch(e){(0,o.OHV)(e.message),console.log(e)}},[n.data,a,e]);return{shouldSyncDefaultContractSet:e,setShouldSyncDefaultContractSet:t,syncDefaultContractSet:s}}var A=n(95753);let P="v0-config-display-options";var N=n(34658),R=n(9455),D=n(91641),L=n(63955);function Z(e){let{isAutopilotEnabled:t,advancedDefaults:n,showAdvanced:i,redundancyMultiplier:a,includeRedundancyMaxStoragePrice:s,includeRedundancyMaxUploadPrice:u,storageAverage:c,uploadAverage:d,downloadAverage:f,contractAverage:h}=e;return{storageTB:{type:"number",category:"storage",title:"Expected storage",description:(0,r.jsx)(r.Fragment,{children:"The amount of storage you would like to rent in TB."}),units:"TB",hidden:!t,validation:t?{required:"required"}:{}},uploadTBMonth:{type:"number",category:"storage",title:"Expected upload",description:(0,r.jsx)(r.Fragment,{children:"The amount of upload bandwidth you plan to use each month in TB."}),units:"TB/month",hidden:!t,validation:t?{required:"required"}:{}},downloadTBMonth:{type:"number",category:"storage",title:"Expected download",description:(0,r.jsx)(r.Fragment,{children:"The amount of download bandwidth you plan to use each month in TB."}),units:"TB/month",hidden:!t,validation:t?{required:"required"}:{}},allowanceMonth:{type:"siacoin",category:"storage",title:"Allowance",description:(0,r.jsx)(r.Fragment,{children:"The amount of Siacoin you would like to spend per month."}),units:"SC/month",decimalsLimitSc:6,hidden:!t||!i,validation:t&&i?{required:"required"}:{}},periodWeeks:{type:"number",category:"storage",title:"Period",description:(0,r.jsx)(r.Fragment,{children:"The length of the storage contracts."}),units:"weeks",suggestion:null==n?void 0:n.periodWeeks,suggestionTip:"Typically ".concat(null==n?void 0:n.periodWeeks," weeks."),hidden:!t||!i,validation:t&&i?{required:"required"}:{}},renewWindowWeeks:{type:"number",category:"storage",title:"Renew window",description:(0,r.jsx)(r.Fragment,{children:"The number of weeks prior to contract expiration that Sia will attempt to renew your contracts."}),units:"weeks",decimalsLimit:6,suggestion:null==n?void 0:n.renewWindowWeeks,suggestionTip:"Typically ".concat(null==n?void 0:n.renewWindowWeeks," weeks."),hidden:!t||!i,validation:t&&i?{required:"required"}:{}},amountHosts:{type:"number",category:"storage",title:"Hosts",description:(0,r.jsx)(r.Fragment,{children:"The number of hosts to create contracts with."}),units:"hosts",decimalsLimit:0,suggestion:null==n?void 0:n.amountHosts,suggestionTip:"Typically ".concat(null==n?void 0:n.amountHosts," hosts."),hidden:!t||!i,validation:t&&i?{required:"required"}:{}},autopilotContractSet:{type:"text",category:"storage",title:"Contract set",description:(0,r.jsx)(r.Fragment,{children:"The contract set that autopilot should use. This should typically be the same as the default contract set."}),placeholder:null==n?void 0:n.autopilotContractSet,suggestion:null==n?void 0:n.autopilotContractSet,suggestionTip:(0,r.jsxs)(r.Fragment,{children:["The default contract set is"," ",(0,r.jsx)(o.EKh,{children:null==n?void 0:n.autopilotContractSet}),"."]}),hidden:!t||!i,validation:t&&i?{required:"required"}:{}},prune:{type:"boolean",category:"storage",title:"Prune sector roots",description:(0,r.jsx)(r.Fragment,{children:"When enabled, autopilot will try to prune deleted sector roots from contracts one contract at a time, for a max duration of 10 minutes per contract. For old hosts this process takes quite a while, while for new hosts it is fast. For new hosts pruning effectively deletes data from the contract, allowing the renter to stop paying for storage they are not using."}),suggestion:null==n?void 0:n.prune,suggestionTip:(0,r.jsxs)(r.Fragment,{children:["The default value is ",(0,r.jsx)(o.EKh,{children:null==n?void 0:n.prune}),"."]}),hidden:!t||!i,validation:{}},allowRedundantIPs:{type:"boolean",category:"hosts",title:"Redundant IPs",description:(0,r.jsx)(r.Fragment,{children:"Whether or not to allow forming contracts with multiple hosts in the same IP subnet. The subnets used are /16 for IPv4, and /64 for IPv6."}),suggestion:null==n?void 0:n.allowRedundantIPs,suggestionTip:"Defaults to ".concat((null==n?void 0:n.allowRedundantIPs)?"on":"off","."),hidden:!t||!i,validation:{}},maxDowntimeHours:{type:"number",category:"hosts",title:"Max downtime",description:(0,r.jsx)(r.Fragment,{children:"The maximum amount of host downtime that autopilot will tolerate in hours."}),units:"hours",suggestion:null==n?void 0:n.maxDowntimeHours,suggestionTip:"Defaults to ".concat(null==n?void 0:n.maxDowntimeHours.toNumber().toLocaleString()," which is ").concat((0,o.y70)(new(l())((0,o.XAn)(null==n?void 0:n.maxDowntimeHours.toNumber())),1)," days."),hidden:!t||!i,validation:t&&i?{required:"required"}:{}},minRecentScanFailures:{type:"number",category:"hosts",title:"Min recent scan failures",description:(0,r.jsx)(r.Fragment,{children:"The minimum number of recent scan failures that autopilot will tolerate."}),units:"scans",decimalsLimit:0,suggestion:null==n?void 0:n.minRecentScanFailures,suggestionTip:"Defaults to ".concat(null==n?void 0:n.minRecentScanFailures.toNumber(),"."),hidden:!t||!i,validation:t&&i?{required:"required"}:{}},defragThreshold:{type:"number",category:"wallet",title:"Defrag threshold",description:(0,r.jsx)(r.Fragment,{children:"The threshold after which autopilot will defrag wallet outputs."}),units:"outputs",suggestion:null==n?void 0:n.defragThreshold,suggestionTip:"Defaults to 1,000.",hidden:!t||!i,validation:t&&i?{required:"required"}:{}},defaultContractSet:{category:"contractset",type:"text",title:"Default contract set",placeholder:null==n?void 0:n.defaultContractSet,suggestion:null==n?void 0:n.defaultContractSet,suggestionTip:(0,r.jsx)(r.Fragment,{children:"Autopilot users will typically want to keep this the same as the autopilot contract set."}),description:(0,r.jsx)(r.Fragment,{children:"The default contract set is where data is uploaded to by default."}),hidden:!i,validation:i?{required:"required"}:{}},uploadPackingEnabled:{category:"uploadpacking",type:"boolean",title:"Upload packing",description:(0,r.jsx)(r.Fragment,{children:"Data on the Sia network is stored in 4MiB sectors. With the default 10 of 30 redundancy scheme, uploaded files are split into 40MiB chunks and encoded into 120MiB slabs. This means that storage is wasted on padding and files smaller than 40MiB still use 120MiB of space. The redundancy scheme can be configured, but unless all files are exactly 4MiB * the redundancy's minimum shards, there will always be wasted storage. Upload packing avoids this waste by buffering files and packing them together before they are uploaded to the network. This trades some performance for storage efficiency. It is also important to note that because buffered files are temporarily stored on disk they must be considered when backing up your renterd data."}),hidden:!i,validation:{}},maxStoragePriceTBMonth:{category:"gouging",type:"siacoin",title:"Max storage price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed price to store 1 TB per month."}),units:"SC/TB/month",average:c,averageTip:F(s,a),after:function(e){let{form:t,fields:n}=e;return(0,r.jsx)(o.ua7,{align:"start",side:"bottom",content:z(s,a),children:(0,r.jsx)("div",{children:(0,r.jsx)(o.QBj,{size:"small",form:t,fields:n,name:"includeRedundancyMaxStoragePrice",group:!1,children:(0,r.jsxs)(o.xvT,{size:"12",weight:"medium",children:["Including ",a.toFixed(1),"x redundancy"]})})})})},decimalsLimitSc:6,validation:{required:"required"}},maxUploadPriceTB:{category:"gouging",type:"siacoin",title:"Max upload price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed price to upload 1 TB."}),units:"SC/TB/month",average:d,averageTip:F(u,a),after:function(e){let{form:t,fields:n}=e;return(0,r.jsx)(o.ua7,{align:"start",side:"bottom",content:z(u,a),children:(0,r.jsx)("div",{children:(0,r.jsx)(o.QBj,{size:"small",form:t,fields:n,name:"includeRedundancyMaxUploadPrice",group:!1,children:(0,r.jsxs)(o.xvT,{size:"12",weight:"medium",children:["Including ",a.toFixed(1),"x redundancy"]})})})})},decimalsLimitSc:6,validation:{required:"required"}},maxDownloadPriceTB:{category:"gouging",type:"siacoin",title:"Max download price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed price to download 1 TB."}),units:"SC/TB/month",average:f,averageTip:"Averages provided by Sia Central.",decimalsLimitSc:6,validation:{required:"required"}},maxContractPrice:{category:"gouging",type:"siacoin",title:"Max contract price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed price to form a contract."}),average:h,decimalsLimitSc:6,tipsDecimalsLimitSc:3,hidden:!i,validation:i?{required:"required"}:{}},maxRpcPriceMillion:{category:"gouging",type:"siacoin",title:"Max RPC price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed base price for RPCs in siacoins per million calls."}),units:"SC/million",decimalsLimitSc:6,hidden:!i,validation:i?{required:"required"}:{}},minMaxCollateral:{category:"gouging",type:"siacoin",title:"Min max collateral",description:(0,r.jsx)(r.Fragment,{children:"The min value for max collateral in the host's price settings."}),decimalsLimitSc:6,hidden:!i,validation:i?{required:"required"}:{}},hostBlockHeightLeeway:{category:"gouging",type:"number",title:"Block height leeway",description:(0,r.jsx)(r.Fragment,{children:"The amount of blocks of leeway given to the host block height in the host's price table."}),units:"blocks",decimalsLimit:0,suggestion:null==n?void 0:n.hostBlockHeightLeeway,suggestionTip:"The recommended value is 6 blocks.",hidden:!i,validation:i?{required:"required",validate:{min:e=>new(l())(e).gte(3)||"must be at least 3 blocks"}}:{}},minPriceTableValidityMinutes:{category:"gouging",type:"number",title:"Min price table validity",units:"minutes",description:(0,r.jsx)(r.Fragment,{children:"The min accepted value for `Validity` in the host's price settings."}),hidden:!i,validation:i?{required:"required",validate:{min:e=>new(l())(e).gte((0,o.GXN)(10))||"must be at least 10 seconds"}}:{}},minAccountExpiryDays:{category:"gouging",type:"number",title:"Min account expiry",units:"days",description:(0,r.jsx)(r.Fragment,{children:"The min accepted value for `AccountExpiry` in the host's price settings."}),hidden:!i,validation:i?{required:"required",validate:{min:e=>new(l())(e).gte((0,o.XAn)(1))||"must be at least 1 hour"}}:{}},minMaxEphemeralAccountBalance:{category:"gouging",type:"siacoin",title:"Min max ephemeral account balance",description:(0,r.jsx)(r.Fragment,{children:"The min accepted value for `MaxEphemeralAccountBalance` in the host's price settings."}),decimalsLimitSc:6,hidden:!i,validation:i?{required:"required",validate:{min:e=>new(l())(e).gte(1)||"must be at least 1 SC"}}:{}},migrationSurchargeMultiplier:{category:"gouging",type:"number",title:"Migration surcharge multiplier",units:"* download price",placeholder:"10",decimalsLimit:1,description:(0,r.jsx)(r.Fragment,{children:"Factor that gets applied on the max download price when trying to download migration-critical sectors from a host that is price gouging. For example, when migrating a low-health file, if the download is failing but would potentially succeed with looser gouging settings, we apply the migration surcharge multiplier to overpay on every sector download if it means saving the file/migration."}),suggestion:new(l())(10),suggestionTip:"The default multiplier is 10x the download price.",hidden:!i,validation:i?{required:"required"}:{}},minShards:{type:"number",category:"redundancy",title:"Min shards",description:(0,r.jsx)(r.Fragment,{children:"The min amount of shards needed to reconstruct a slab."}),suggestion:null==n?void 0:n.minShards,suggestionTip:"Typically ".concat(null==n?void 0:n.minShards," shards."),units:"shards",hidden:!i,validation:i?{required:"required",validate:{min:e=>new(l())(e).gt(0)||"must be greater than 0"}}:{},trigger:["totalShards"]},totalShards:{type:"number",category:"redundancy",title:"Total shards",description:(0,r.jsx)(r.Fragment,{children:"The total amount of shards for each slab."}),suggestion:null==n?void 0:n.totalShards,suggestionTip:"Typically ".concat(null==n?void 0:n.totalShards," shards."),units:"shards",hidden:!i,validation:i?{required:"required",validate:{gteMinShards:(e,t)=>new(l())(e).gte(t.minShards)||"must be at least equal to min shards",max:e=>new(l())(e).lt(256)||"must be less than 256"}}:{}},includeRedundancyMaxStoragePrice:{type:"boolean",title:"Include redundancy",validation:{}},includeRedundancyMaxUploadPrice:{type:"boolean",title:"Include redundancy",validation:{}}}}function F(e,t){return e?"The average price is adjusted for ".concat(t.toFixed(1),"x redundancy. Averages provided by Sia Central."):"The average price is not adjusted for redundancy. Averages provided by Sia Central."}function z(e,t){return e?(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsxs)(o.xvT,{color:"subtle",children:["Specified max price includes the cost of"," ",t.toFixed(1),"x redundancy."]}),(0,r.jsxs)(o.xvT,{color:"subtle",children:["Redundancy is calculated from the ratio of data shards:"," ",(0,r.jsx)(o.EKh,{children:"total shards / min shards"}),"."]})]}):"Specified max price does not include redundancy."}let V=(0,i.createContext)({}),I=()=>(0,i.useContext)(V);function B(e){let{children:t}=e,n=function(){let{autopilot:e,contractSet:t,display:n,gouging:r,redundancy:s,uploadPacking:u,averages:c,shouldSyncDefaultContractSet:d,setShouldSyncDefaultContractSet:f,appSettings:h,isAutopilotEnabled:_}=function(){var e,t,n;let r=(0,D.q)(),i="on"===r.autopilot.status,a=(0,C.e$)({config:{swr:{errorRetryCount:0,refreshInterval:(0,o.sWj)(1)}}}),s=(0,M.a)({config:{swr:{errorRetryCount:0,refreshInterval:(0,o.sWj)(1)}}}),l=(e={config:{swr:{errorRetryCount:0,refreshInterval:(0,o.sWj)(1)}}},(0,C.yu)({...e,params:{key:P}})),u=(t={config:{swr:{refreshInterval:(0,o.sWj)(1)}}},(0,C.yu)({...t,params:{key:"gouging"}})),c=(0,N.w)({config:{swr:{refreshInterval:(0,o.sWj)(1)}}}),d=(n={config:{swr:{refreshInterval:(0,o.sWj)(1)}}},(0,C.yu)({...n,params:{key:"uploadpacking"}})),f=(0,R.BF)({config:{swr:{revalidateOnFocus:!1}}}),{shouldSyncDefaultContractSet:h,setShouldSyncDefaultContractSet:p,syncDefaultContractSet:m}=T(),v=(0,A.Hv)();return{autopilot:a,contractSet:s,display:l,gouging:u,redundancy:c,uploadPacking:d,averages:f,shouldSyncDefaultContractSet:h,setShouldSyncDefaultContractSet:p,syncDefaultContractSet:m,appSettings:v,isAutopilotEnabled:i}}(),{form:F,maxStoragePriceTBMonth:z,maxDownloadPriceTB:V,maxUploadPriceTB:I,storageTB:B,downloadTBMonth:H,uploadTBMonth:U,includeRedundancyMaxStoragePrice:W,includeRedundancyMaxUploadPrice:q,redundancyMultiplier:$,fields:K,showAdvanced:Y,setShowAdvanced:G}=function(){let e=(0,L.cI)({mode:"all",defaultValues:p}),t=e.watch("maxStoragePriceTBMonth"),n=e.watch("maxDownloadPriceTB"),r=e.watch("maxUploadPriceTB"),o=e.watch("storageTB"),s=e.watch("downloadTBMonth"),u=e.watch("uploadTBMonth"),c=e.watch("minShards"),d=e.watch("totalShards"),f=e.watch("includeRedundancyMaxStoragePrice"),h=e.watch("includeRedundancyMaxUploadPrice"),x=(0,i.useMemo)(()=>k(c,d),[c,d]),{averages:w,storageAverage:j,uploadAverage:S,downloadAverage:_,contractAverage:M}=function(e){let{minShards:t,totalShards:n,includeRedundancyMaxStoragePrice:r,includeRedundancyMaxUploadPrice:o}=e,s=(0,R.BF)({config:{swr:{revalidateOnFocus:!1}}}),u=(0,i.useMemo)(()=>s.data?new(l())((0,a.ll)(s.data.settings.storage_price).times((0,a.S5)(1)).times((0,a.xf)(1)).times(E(t,n,r)).toFixed(0)):void 0,[s.data,t,n,r]),c=(0,i.useMemo)(()=>s.data?new(l())((0,a.ll)(s.data.settings.upload_price).times((0,a.xf)(1)).times(E(t,n,o)).toFixed(0)):void 0,[s.data,t,n,o]),d=(0,i.useMemo)(()=>s.data?new(l())((0,a.ll)(s.data.settings.download_price).times((0,a.xf)(1)).toFixed(0)):void 0,[s.data]),f=(0,i.useMemo)(()=>s.data?new(l())((0,a.ll)(s.data.settings.contract_price).toFixed(0)):void 0,[s.data]);return{averages:s,storageAverage:u,uploadAverage:c,downloadAverage:d,contractAverage:f}}({minShards:c,totalShards:d,includeRedundancyMaxStoragePrice:f,includeRedundancyMaxUploadPrice:h}),T=(0,D.q)(),A="on"===T.autopilot.status,[P,N]=(0,O.Z)("v0/config/showAdvanced",{defaultValue:!1}),F=(0,C.d_)(),z=(0,i.useMemo)(()=>{var e;let t=F.data?{...m(e=F.data.network),...v,...g,...y,...b,..."Mainnet"===e?{minShards:new(l())(10),totalShards:new(l())(30)}:{minShards:new(l())(2),totalShards:new(l())(6)}}:void 0;return w.data?Z({advancedDefaults:t,isAutopilotEnabled:A,showAdvanced:P,redundancyMultiplier:x,includeRedundancyMaxStoragePrice:f,includeRedundancyMaxUploadPrice:h,storageAverage:j,uploadAverage:S,downloadAverage:_,contractAverage:M}):Z({advancedDefaults:t,isAutopilotEnabled:A,showAdvanced:P,redundancyMultiplier:x,includeRedundancyMaxStoragePrice:f,includeRedundancyMaxUploadPrice:h})},[F.data,A,P,w.data,j,S,_,M,x,f,h]);return{form:e,fields:z,maxStoragePriceTBMonth:t,maxDownloadPriceTB:n,maxUploadPriceTB:r,storageTB:o,downloadTBMonth:s,uploadTBMonth:u,minShards:c,totalShards:d,includeRedundancyMaxStoragePrice:f,includeRedundancyMaxUploadPrice:h,redundancyMultiplier:x,showAdvanced:P,setShowAdvanced:N}}(),X=(0,i.useMemo)(()=>({autopilot:{data:e.data,error:e.error},contractSet:{data:t.data,error:t.error},uploadPacking:{data:u.data,error:u.error},gouging:{data:r.data,error:r.error},redundancy:{data:s.data,error:s.error},display:{data:n.data,error:n.error},averages:{data:c.data,error:c.error},appSettings:{settings:{siaCentral:h.settings.siaCentral}}}),[e.data,e.error,t.data,t.error,u.data,u.error,r.data,r.error,s.data,s.error,n.data,n.error,c.data,c.error,h.settings.siaCentral]),Q=(0,i.useMemo)(()=>!function(e){let{autopilot:t,contractSet:n,uploadPacking:r,gouging:i,redundancy:o,display:a,averages:s,appSettings:l}=e;return!!(o.data&&r.data&&i.data&&(t.data||t.error)&&(n.data||n.error)&&(a.data||a.error)&&(!l.settings.siaCentral||s.data))}(X)?null:j({autopilot:X.autopilot.data,contractSet:X.contractSet.data,uploadPacking:X.uploadPacking.data,gouging:X.gouging.data,averages:X.averages.data,redundancy:X.redundancy.data,display:X.display.data}),[X]),J=(0,i.useMemo)(()=>(function(e){let{uploadPacking:t,gouging:n,redundancy:r}=e;return!!(r.error||t.error||n.error)})(X),[X]),ee=(0,i.useCallback)(async()=>{let i=_?await e.mutate():void 0,a=await t.mutate(),l=await r.mutate(),d=await s.mutate(),f=await u.mutate(),h=await n.mutate();if(!r||!s)return(0,o.OHV)("Error fetching settings."),null;F.reset(j({autopilot:i,contractSet:a,uploadPacking:f,gouging:l,averages:c.data,redundancy:d,display:h}))},[F,_,e,t,r,u,s,n,c.data]);(0,o.u$d)({form:F,remoteValues:Q}),(0,o.Z4p)({form:F,remoteValues:Q});let{changeCount:et}=(0,o.mYE)({form:F}),{canEstimate:en,estimatedSpendingPerMonth:er,estimatedSpendingPerTB:ei}=function(e){let{isAutopilotEnabled:t,includeRedundancyMaxStoragePrice:n,includeRedundancyMaxUploadPrice:r,redundancyMultiplier:o,maxStoragePriceTBMonth:a,storageTB:s,maxDownloadPriceTB:u,downloadTBMonth:c,maxUploadPriceTB:d,uploadTBMonth:f}=e,h=(0,i.useMemo)(()=>!!t&&(null==a?void 0:a.gt(0))&&(null==s?void 0:s.gt(0))&&(null==u?void 0:u.gt(0))&&(null==d?void 0:d.gt(0)),[t,a,s,u,d]),p=(0,i.useMemo)(()=>{if(!h)return new(l())(0);let e=(null==s?void 0:s.gt(0))?s:new(l())(0),t=(null==c?void 0:c.gt(0))?c:new(l())(0),i=(null==f?void 0:f.gt(0))?f:new(l())(0),p=(null==a?void 0:a.gt(0))?a:new(l())(0),m=(null==d?void 0:d.gt(0))?d:new(l())(0),v=(null==u?void 0:u.gt(0))?u:new(l())(0),g=n?p.times(e):p.times(o).times(e),y=v.times(t),b=r?m.times(i):m.times(o).times(i),x=g.plus(y).plus(b);return x},[h,n,r,o,a,s,u,c,d,f]),m=(0,i.useMemo)(()=>{if(!h)return new(l())(0);let e=p.div(s);return e},[h,p,s]);return{canEstimate:h,estimatedSpendingPerMonth:p,estimatedSpendingPerTB:m}}({isAutopilotEnabled:_,includeRedundancyMaxStoragePrice:W,includeRedundancyMaxUploadPrice:q,redundancyMultiplier:$,maxStoragePriceTBMonth:z,storageTB:B,maxDownloadPriceTB:V,downloadTBMonth:H,maxUploadPriceTB:I,uploadTBMonth:U}),eo=function(e){let{resources:t,estimatedSpendingPerMonth:n,isAutopilotEnabled:r,showAdvanced:s,revalidateAndResetForm:l}=e,u=(0,C.Bl)(),c=(0,C.oe)(),d=(0,C.KJ)(),f=(0,C.d_)(),{syncDefaultContractSet:h}=T(),p=(0,A.Tu)(),v=(0,i.useCallback)(async e=>{if(t.gouging.data&&t.redundancy.data&&f.data)try{let i={};r&&!s&&(i.allowanceMonth=n);let v={...e,...i},g=r&&!t.autopilot.data,y=r?await c.put({payload:function(e,t,n){let r={...m(e),...x(t)};return{...n,contracts:{...null==n?void 0:n.contracts,set:r.autopilotContractSet,amount:Math.round(r.amountHosts.toNumber()),allowance:(0,a.qN)(S(r.allowanceMonth,r.periodWeeks)).toString(),period:Math.round((0,a.mv)(r.periodWeeks.toNumber())),renewWindow:Math.round((0,a.mv)(r.renewWindowWeeks.toNumber())),download:Number(S((0,a.xf)(r.downloadTBMonth),r.periodWeeks).toFixed(0)),upload:Number(S((0,a.xf)(r.uploadTBMonth),r.periodWeeks).toFixed(0)),storage:(0,a.xf)(r.storageTB).toNumber(),prune:r.prune},hosts:{...null==n?void 0:n.hosts,maxDowntimeHours:r.maxDowntimeHours.toNumber(),minRecentScanFailures:r.minRecentScanFailures.toNumber(),allowRedundantIPs:r.allowRedundantIPs,scoreOverrides:(null==n?void 0:n.hosts.scoreOverrides)||null},wallet:{...null==n?void 0:n.wallet,defragThreshold:r.defragThreshold.toNumber()}}}(f.data.network,v,t.autopilot.data)}):void 0,[b,j,k,_,O]=await Promise.all([d.put({params:{key:"contractset"},payload:w(v,t.contractSet.data)}),d.put({params:{key:"uploadpacking"},payload:{...t.uploadPacking.data,enabled:v.uploadPackingEnabled}}),d.put({params:{key:"gouging"},payload:{...t.gouging.data,maxRPCPrice:(0,a.qN)(v.maxRpcPriceMillion.div(1e6)).toString(),maxStoragePrice:(0,a.qN)(v.maxStoragePriceTBMonth.div((0,a.S5)(1)).div((0,a.xf)(1)).div(E(v.minShards,v.totalShards,v.includeRedundancyMaxStoragePrice))).toString(),maxUploadPrice:(0,a.qN)(v.maxUploadPriceTB.div(E(v.minShards,v.totalShards,v.includeRedundancyMaxUploadPrice))).toString(),maxDownloadPrice:(0,a.qN)(v.maxDownloadPriceTB).toString(),maxContractPrice:(0,a.qN)(v.maxContractPrice).toString(),minMaxCollateral:(0,a.qN)(v.minMaxCollateral).toString(),hostBlockHeightLeeway:Math.round(v.hostBlockHeightLeeway.toNumber()),minPriceTableValidity:Math.round((0,o.ort)(v.minPriceTableValidityMinutes.toNumber())),minAccountExpiry:Math.round((0,o.k9c)(v.minAccountExpiryDays.toNumber())),minMaxEphemeralAccountBalance:(0,a.qN)(v.minMaxEphemeralAccountBalance).toString(),migrationSurchargeMultiplier:v.migrationSurchargeMultiplier.toNumber()}}),d.put({params:{key:"redundancy"},payload:{...t.redundancy.data,minShards:v.minShards.toNumber(),totalShards:v.totalShards.toNumber()}}),d.put({params:{key:P},payload:{...t.display.data,includeRedundancyMaxStoragePrice:v.includeRedundancyMaxStoragePrice,includeRedundancyMaxUploadPrice:v.includeRedundancyMaxUploadPrice}})]);if(null==y?void 0:y.error)throw Error(y.error);if(b.error)throw Error(b.error);if(j.error)throw Error(j.error);if(k.error)throw Error(k.error);if(_.error)throw Error(_.error);if(O.error)throw Error(O.error);if(r&&(h(v.autopilotContractSet),u.post({payload:{forceScan:!0}})),(0,o.OPV)("Configuration has been saved."),g){let e=async()=>{await (0,A.gw)(5e3),p(e=>e.startsWith(C.pz)),await (0,A.gw)(5e3),p(e=>e.startsWith(C.pz))};e()}await l()}catch(e){(0,o.OHV)(e.message),console.log(e)}},[f.data,n,s,r,c,l,h,p,d,t,u]);return v}({resources:X,estimatedSpendingPerMonth:er,showAdvanced:Y,isAutopilotEnabled:_,revalidateAndResetForm:ee}),ea=(0,o.WsO)(K),es=(0,i.useMemo)(()=>F.handleSubmit(eo,ea),[F,eo,ea]);return{onSubmit:es,revalidateAndResetForm:ee,form:F,fields:K,changeCount:et,canEstimate:en,estimatedSpendingPerMonth:er,estimatedSpendingPerTB:ei,redundancyMultiplier:$,storageTB:B,shouldSyncDefaultContractSet:d,setShouldSyncDefaultContractSet:f,showAdvanced:Y,setShowAdvanced:G,remoteError:J}}();return(0,r.jsx)(V.Provider,{value:n,children:t})}},26592:function(e,t,n){"use strict";n.d(t,{x:function(){return E},G:function(){return k}});var r=n(52322),i=n(57362),o=n(5632),a=n(9969),s=n(2784),l=n(6391),u=n.n(l),c=n(56860),d=n(88242),f=n(25205),h=n(82459),p=n(82851);let m=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:{id:t,hostIp:n,hostKey:i}}=e;return(0,r.jsx)(h.F,{id:t,address:n,publicKey:i})}},{id:"contractId",label:"contract ID",category:"general",render:e=>{let{data:{id:t,isRenewed:n,renewedFrom:o},context:{siascanUrl:a}}=e;return(0,r.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,r.jsx)(i.XxW,{size:"12",value:(0,i.I13)(t),type:"contract",label:"contract ID",siascanUrl:a}),n&&(0,r.jsx)(i.ua7,{content:"Renewed from",align:"start",children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)(i.xvT,{color:"subtle",children:(0,r.jsx)(d.L6f,{className:"scale-75"})}),(0,r.jsx)(i.XxW,{color:"subtle",size:"10",type:"contract",value:(0,i.I13)(o),siascanUrl:a,label:"contract ID"})]})})]})}},{id:"sets",label:"contract sets",contentClassName:"w-[120px]",category:"general",render:e=>{let{data:{sets:t},context:{defaultSet:n}}=e;return t?(0,r.jsx)("div",{className:"flex flex-col items-center overflow-hidden h-full",children:(0,r.jsx)(i.xrM,{children:(0,r.jsx)("div",{className:"flex min-h-full gap-1 flex-wrap py-2 items-center",children:t.map(e=>{let t=n===e;return(0,r.jsx)(i.ua7,{content:"Contract is part of set ".concat(e,".")+(t?" ".concat(e," is the default contract set."):""),children:(0,r.jsxs)(i.Cts,{interactive:!1,size:"small",className:(0,p.cx)("flex gap-px items-center",t?"pl-px":""),children:[t?(0,r.jsx)(d.Y3p,{className:"scale-75"}):null,e]})},e)})})})}):null}},{id:"hostIp",label:"host address",category:"general",render:e=>{let{data:{hostIp:t},context:{siascanUrl:n}}=e;return(0,r.jsx)(i.XxW,{size:"12",value:t,type:"hostIp",siascanUrl:n})}},{id:"hostKey",label:"host public key",category:"general",render:e=>{let{data:{hostKey:t},context:{siascanUrl:n}}=e;return(0,r.jsx)(i.XxW,{size:"12",value:t,type:"hostPublicKey",siascanUrl:n})}},{id:"state",label:"state",category:"general",render:e=>{let{data:{state:t}}=e;return(0,r.jsx)(i.ua7,{content:(0,r.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)(i.xvT,{className:"flex-1",weight:"medium",children:"pending"}),(0,r.jsx)(i.xvT,{className:"flex-[2]",color:"subtle",children:"Contract has been added."})]}),(0,r.jsx)(i.Z0O,{className:"w-full"}),(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)(i.xvT,{className:"flex-1",weight:"medium",children:"active"}),(0,r.jsx)(i.xvT,{className:"flex-[2]",color:"subtle",children:"Contract has appeared on chain."})]}),(0,r.jsx)(i.Z0O,{className:"w-full"}),(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)(i.xvT,{className:"flex-1",weight:"medium",children:"complete"}),(0,r.jsx)(i.xvT,{className:"flex-[2]",color:"subtle",children:"Storage proof has appeared on chain."})]}),(0,r.jsx)(i.Z0O,{className:"w-full"}),(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)(i.xvT,{className:"flex-1",weight:"medium",children:"failed"}),(0,r.jsx)(i.xvT,{className:"flex-[2]",color:"subtle",children:"Storage proof was not submitted before the end of proof window."})]})]}),children:(0,r.jsx)(i.Cts,{variant:"active"===t?"amber":"failed"===t?"red":"pending"===t?"amber":"complete"===t?"green":void 0,children:t})})}},{id:"timeline",label:"timeline",category:"time",render:e=>{let{data:{contractHeightStart:t,contractHeightEnd:n,proofWindowHeightStart:o,proofWindowHeightEnd:a,revisionHeight:s,proofHeight:l},context:{currentHeight:u,contractsTimeRange:c}}=e;return(0,r.jsx)("div",{className:"w-[400px]",children:(0,r.jsx)(i.TaT,{currentHeight:u,contractHeightStart:t,contractHeightEnd:n,proofWindowHeightStart:o,proofWindowHeightEnd:a,proofHeight:l,revisionHeight:s,range:c})})}},{id:"startTime",label:"start date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{startTime:t}}=e;return(0,r.jsx)(i.xvT,{size:"12",font:"mono",ellipsis:!0,children:(0,f.rN)(t)})}},{id:"endTime",label:"end date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{endTime:t}}=e;return(0,r.jsx)(i.xvT,{size:"12",font:"mono",ellipsis:!0,children:(0,f.rN)(t)})}},{id:"size",label:"size",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{size:t}}=e;return(0,r.jsx)(i.m2c,{size:"12",value:t,variant:"value",format:e=>(0,f.vW)(e)})}},{id:"totalCost",label:"total cost",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{totalCost:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.negated()})}},{id:"spendingUploads",label:"uploads spending",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{spendingUploads:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.negated()})}},{id:"spendingDownloads",label:"downloads spending",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{spendingDownloads:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.negated()})}},{id:"spendingFundAccount",label:"fund account spending",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{spendingFundAccount:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.negated()})}}];var v=n(9455),g=n(25573),y=n(20189);function b(e){let t=(0,i.sWj)(5);return Math.round(e/t)*t}function x(e){let{start:t,disabled:n,contractId:o}=e,l=b(t),c=(0,i.NrH)(1),d=(0,s.useMemo)(()=>{let e=new Date().getTime(),t=b(e),n=t-l,r=Math.round(n/c);return Math.max(r,1)},[l,c]),h=(0,s.useMemo)(()=>{let e={start:new Date(l||0).toISOString(),interval:c,n:d};return o&&(e.contractID=o),e},[l,c,d,o]),p=(0,a.Yy)({disabled:n,params:h}),m=(0,s.useMemo)(()=>{var e;let t=(0,i.Y_Z)(null===(e=p.data)||void 0===e?void 0:e.map(e=>({uploadSpending:Number(e.uploadSpending),listSpending:Number(e.listSpending),deleteSpending:Number(e.deleteSpending),fundAccountSpending:Number(e.fundAccountSpending),remainingCollateral:Number(e.remainingCollateral),remainingFunds:Number(e.remainingFunds),timestamp:new Date(e.timestamp).getTime()})),"none"),n=(0,i.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["remainingFunds","remainingCollateral","fundAccountSpending","uploadSpending","listSpending","deleteSpending"],enabledTip:["remainingFunds","remainingCollateral","fundAccountSpending","uploadSpending","listSpending","deleteSpending"],categories:["funding","spending"],data:{remainingFunds:{label:"remaining funds",category:"funding",color:i.O9T.emerald[600]},remainingCollateral:{label:"remaining collateral",category:"funding",pattern:!0,color:i.O9T.emerald[600]},fundAccountSpending:{label:"fund account",category:"spending",color:i.O9T.red[600]},uploadSpending:{label:"upload",category:"spending",color:i.O9T.red[600]},listSpending:{label:"list",category:"spending",color:i.O9T.red[600]},deleteSpending:{label:"delete",category:"spending",color:i.O9T.red[600]}},formatComponent:function(e){let{value:t}=e;return(0,r.jsx)(i.ho9,{variant:"value",value:new(u())(t)})},formatTimestamp:c===(0,i.NrH)(1)?(0,i.kOJ)("daily"):void 0,formatTickY:e=>(0,f.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:"barstack",curveType:"linear",stackOffset:"none"},isLoading:p.isValidating&&!p.data}},[p.data,p.isValidating,c]);return{contractMetrics:m}}var w=n(80489);let j=(0,s.createContext)({}),k=()=>(0,s.useContext)(j);function E(e){let{children:t}=e,n=function(){let[e,t]=(0,s.useState)("list"),[n,r]=(0,s.useState)("spending"),l=(0,o.useRouter)(),d=Number(l.query.limit||50),h=Number(l.query.offset||0),p=(0,a.GP)({config:{swr:{refreshInterval:(0,i.sWj)(1)}}}),j=(0,v.JL)(),k=(0,s.useMemo)(()=>{var e;return(null===(e=j.data)||void 0===e?void 0:e.hosts)||[]},[j.data]),E=(0,g.n)(),S=E.isSynced?E.nodeBlockHeight:E.estimatedBlockHeight,[_,C]=(0,s.useState)(),O=(0,s.useCallback)(e=>{if(_===e){C(void 0);return}C(e),t("detail"),r("spending")},[_,C,t]),M=(0,s.useMemo)(()=>{var e;if(!p.data)return null;let t=(null===(e=p.data)||void 0===e?void 0:e.map(e=>{var t;let n="fcid:0000000000000000000000000000000000000000000000000000000000000000"!==e.renewedFrom,r=(0,f.jr)(S,e.startHeight),i=e.windowStart,o=(0,f.jr)(S,i);return{id:e.id,onClick:()=>O(e.id),contractId:e.id,state:e.state,hostIp:e.hostIP,hostKey:e.hostKey,sets:e.sets,location:null===(t=k.find(t=>t.public_key===e.hostKey))||void 0===t?void 0:t.location,timeline:r,startTime:r,endTime:o,contractHeightStart:e.startHeight,contractHeightEnd:i,proofWindowHeightStart:e.windowStart,proofWindowHeightEnd:e.windowEnd,proofHeight:e.proofHeight,revisionHeight:e.revisionHeight,isRenewed:n,renewedFrom:e.renewedFrom,totalCost:new(u())(e.totalCost),spendingUploads:new(u())(e.spending.uploads),spendingDownloads:new(u())(e.spending.downloads),spendingFundAccount:new(u())(e.spending.fundAccount),size:new(u())(e.size)}}))||[];return t},[p.data,k,S,O]),T=(0,s.useMemo)(()=>null==M?void 0:M.find(e=>e.id===_),[M,_]),{filters:A,setFilter:P,removeFilter:N,removeLastFilter:R,resetFilters:D}=(0,i.Wdu)(),{configurableColumns:L,enabledColumns:Z,sortableColumns:F,toggleColumnVisibility:z,setColumnsVisible:V,setColumnsHidden:I,toggleSort:B,setSortDirection:H,setSortField:U,sortField:W,sortDirection:q,resetDefaultColumnVisibility:$}=(0,i.oy6)("renterd/v0/contracts",{columns:m,columnsDefaultVisible:c.gd,sortOptions:c.Fo,defaultSortField:c.nw}),K=(0,i._4u)({dataset:M,filters:A,sortField:W,sortDirection:q}),Y=(0,s.useMemo)(()=>K?K.slice(h,h+d):null,[K,h,d]),{range:G}=(0,s.useMemo)(()=>(0,i.EJC)(S,Y||[]),[S,Y]),X=(0,s.useMemo)(()=>m.filter(e=>e.fixed||Z.includes(e.id)),[Z]),Q=(0,i.c2j)(K,p.isValidating,p.error,A),J=(0,y.B)(),ee=(0,w.a)(),et=(0,s.useMemo)(()=>{var e;return{currentHeight:E.estimatedBlockHeight,defaultSet:null===(e=ee.data)||void 0===e?void 0:e.default,contractsTimeRange:G,siascanUrl:J}},[E.estimatedBlockHeight,G,J,ee.data]),en=new Date().getTime()-(0,i.NrH)(30),{contractMetrics:er}=x({start:en}),{contractMetrics:ei}=x({contractId:_,start:(null==T?void 0:T.startTime)||0,disabled:!T}),{contractSetMetrics:eo}=function(){var e;let t=b(new Date().getTime()-(0,i.NrH)(30)),n=(0,i.NrH)(1),r=(0,s.useMemo)(()=>{let e=new Date().getTime(),r=b(e),i=r-t;return Math.round(i/n)},[t,n]),o=(0,a.e$)(),l=(0,a.Bi)({disabled:!o.data,params:{name:null===(e=o.data)||void 0===e?void 0:e.contracts.set,start:new Date(t).toISOString(),interval:n,n:r}}),u=(0,s.useMemo)(()=>{var e;let t=(0,i.Y_Z)(null===(e=l.data)||void 0===e?void 0:e.map(e=>({contracts:Number(e.contracts),timestamp:new Date(e.timestamp).getTime()})),"none"),r=(0,i.fVJ)(t);return{data:t,stats:r,config:{enabledGraph:["contracts"],enabledTip:["contracts"],data:{contracts:{label:"contracts",color:i.O9T.emerald[600]}},formatTimestamp:n===(0,i.NrH)(1)?(0,i.kOJ)("daily"):void 0,disableAnimations:!0,chartType:"line",curveType:"linear",stackOffset:"none"},isLoading:l.isValidating&&!l.data}},[l.data,l.isValidating,n]);return{contractSetMetrics:u}}();return{dataState:Q,limit:d,offset:h,isLoading:p.isLoading,error:p.error,pageCount:(null==Y?void 0:Y.length)||0,datasetCount:(null==M?void 0:M.length)||0,datasetFilteredCount:(null==K?void 0:K.length)||0,columns:X,dataset:M,cellContext:et,datasetPage:Y,configurableColumns:L,enabledColumns:Z,sortableColumns:F,toggleColumnVisibility:z,setColumnsVisible:V,setColumnsHidden:I,toggleSort:B,setSortDirection:H,setSortField:U,sortField:W,filters:A,setFilter:P,removeFilter:N,removeLastFilter:R,resetFilters:D,sortDirection:q,resetDefaultColumnVisibility:$,viewMode:e,setViewMode:t,graphMode:n,setGraphMode:r,selectedContract:T,selectContract:O,allContractsSpendingMetrics:er,selectedContractSpendingMetrics:ei,contractSetCountMetrics:eo}}();return(0,r.jsx)(j.Provider,{value:n,children:t})}},56860:function(e,t,n){"use strict";n.d(t,{Fo:function(){return o},gd:function(){return r},nw:function(){return i}});let r=["contractId","sets","hostIp","hostKey","state","timeline","size","totalCost","spendingUploads","spendingDownloads","spendingFundAccount"],i="startTime",o=[{id:"contractId",label:"contract ID",category:"general"},{id:"hostIp",label:"host address",category:"general"},{id:"hostKey",label:"host public key",category:"general"},{id:"state",label:"state",category:"general"},{id:"timeline",label:"timeline",category:"time"},{id:"startTime",label:"start date",category:"time"},{id:"endTime",label:"end date",category:"time"},{id:"size",label:"size",category:"general"},{id:"totalCost",label:"total cost",category:"financial"},{id:"spendingUploads",label:"uploads spending",category:"financial"},{id:"spendingDownloads",label:"downloads spending",category:"financial"},{id:"spendingFundAccount",label:"fund account spending",category:"financial"}]},86811:function(e,t,n){"use strict";n.d(t,{Tu:function(){return eP},xQ:function(){return eN},Rh:function(){return eA}});var r=n(52322),i=n(2784),o=n(57362),a=n(95753),s=n(71930),l=n(82851),u=n(99182),c=n(5632),d=n(4941),f=n(9969);let h={namespace:"wallet",label:"Wallet"};function p(e){var t;let{currentPage:n,parentPage:i,pushPage:a}=e,{openDialog:l,closeDialog:u}=eA(),p=(0,c.useRouter)(),m=(0,f.X2)();return(0,r.jsxs)(d.fu,{currentPage:n,commandPage:h,children:[(0,r.jsx)(d.Ul,{currentPage:n,parentPage:i,commandPage:h,onSelect:()=>{a(h)},children:h.label}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{p.push(s._.wallet.view),u()},children:"View wallet transactions"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{l("sendSiacoin")},children:"Send siacoin"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{l("addressDetails")},children:"Receive siacoin"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{l("addressDetails")},children:"View wallet address"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,disabled:!(null===(t=m.data)||void 0===t?void 0:t.address),onSelect:()=>{var e;(null===(e=m.data)||void 0===e?void 0:e.address)&&((0,o.vQq)(m.data.address,"wallet address"),u())},children:"Copy wallet address to clipboard"})]})}var m=n(38617);let v={namespace:"settings",label:"Settings"};function g(e){let{currentPage:t,parentPage:n}=e,{openDialog:i,closeDialog:o}=eA(),{setTheme:s}=(0,m.F)(),{settings:l,setSettings:u,lock:c,currencyOptions:f,setCurrency:h}=(0,a.Hv)();return(0,r.jsxs)(d.fu,{currentPage:t,commandPage:v,children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:v,onSelect:()=>{i("settings")},children:"Open settings"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{u({siaCentral:!l.siaCentral}),o()},children:(l.siaCentral?"Disable":"Enable")+" external API - Sia Central exchange rates"}),(0,r.jsx)(d.o4,{currentPage:t,commandPage:v,onSelect:()=>{c(),o()},children:"Lock renterd"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{i("settings")},children:"Open interface theme menu"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{s("system"),o()},children:"Set theme to system preference"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{s("dark"),o()},children:"Set theme to dark"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{s("light"),o()},children:"Set theme to light"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{i("settings")},children:"Open currency settings menu"}),f.map(e=>{let{id:n,label:i}=e;return(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{h(n),o()},children:"Set currency to ".concat(i)},n)})]})}let y={namespace:"node",label:"Blockchain node"};function b(e){let{currentPage:t,parentPage:n,pushPage:i}=e,{openDialog:o,closeDialog:a}=eA(),l=(0,c.useRouter)();return(0,r.jsxs)(d.fu,{currentPage:t,commandPage:y,children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:y,onSelect:()=>{i(y)},children:y.label}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:y,onSelect:()=>{o("connectPeer")},children:"Connect to a peer"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:y,onSelect:()=>{l.push(s._.node.index),a()},children:"View peers"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:y,onSelect:()=>{l.push(s._.node.index),a()},children:"View transaction pool"})]})}var x=n(19847),w=n(91641);let j={namespace:"configuration",label:"Configuration"};function k(e){let{currentPage:t,parentPage:n,pushPage:i}=e,o=(0,c.useRouter)(),{showAdvanced:a}=(0,x.ZR)(),{closeDialog:l}=eA(),{autopilot:u}=(0,w.q)();return(0,r.jsxs)(d.fu,{currentPage:t,commandPage:j,children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:j,onSelect:()=>{i(j)},children:j.label}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.index),l()},children:"Open configuration"}),"on"===u.status&&(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.storage),l()},children:"Configure storage"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.pricing),l()},children:"Configure pricing"}),a&&(0,r.jsxs)(r.Fragment,{children:["on"===u.status&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.hosts),l()},children:"Configure hosts"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.wallet),l()},children:"Configure wallet"})]}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.contracts),l()},children:"Configure contracts"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.uploads),l()},children:"Configure uploads"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.redundancy),l()},children:"Configure redundancy"})]})]})}var E=n(93216);let S={namespace:"contracts",label:"Contracts"};function _(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,l=(0,c.useRouter)(),{closeDialog:u}=eA();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(S)},children:S.label}),(0,r.jsx)(d.fu,{currentPage:t,commandPage:S,children:(0,r.jsx)(d.WD,{currentPage:t,commandPage:S,onSelect:()=>{l.push(s._.contracts.index),u()},children:"View contracts"})}),(0,r.jsx)(E.F,{parentPage:S,currentPage:t,beforeSelect:o,afterSelect:a,pushPage:i})]})}var C=n(26592),O=n(18006);let M={namespace:"hosts",label:"Hosts"};function T(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,l=(0,c.useRouter)(),{closeDialog:u,openDialog:f}=eA();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(M)},children:M.label}),(0,r.jsx)(d.fu,{currentPage:t,commandPage:M,children:(0,r.jsx)(d.WD,{currentPage:t,commandPage:M,onSelect:()=>{l.push(s._.hosts.index),u()},children:"View hosts"})}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:M,onSelect:()=>{f("hostsManageAllowBlock")},children:"Manage filter lists: allowlist + blocklist"}),(0,r.jsx)(O.L,{parentPage:M,currentPage:t,beforeSelect:o,afterSelect:a,pushPage:i})]})}var A=n(91652),P=n(48528),N=n(88242);function R(e){let{debouncedSearch:t}=e;return(0,r.jsxs)(o.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsxs)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:[(0,r.jsx)(N.e1T,{}),(0,r.jsx)(N.JCW,{}),(0,r.jsx)(N.c_L,{})]}),(0,r.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No files match the query.":"Type a query to get started."})]})}let D={namespace:"files/search",label:"File search",prompt:"Search for files, eg: backups, photo_archive.zip, etc...",empty:R};function L(e){let{debouncedSearch:t,search:n,currentPage:i,beforeSelect:a,afterSelect:s}=e,{activeBucket:l,navigateToFile:u}=(0,P.Y)(),c=(null==i?void 0:i.namespace)===D.namespace,h=(0,f.Iy)({disabled:!c,params:{bucket:l||"default",key:t,skip:0,limit:10},config:{swr:{keepPreviousData:!0}}});return c&&h.data?(0,r.jsx)(d.fu,{currentPage:i,commandPage:D,children:h.data.map(e=>{let{name:t}=e,l=function(e,t,n){let r=Math.max(e.length-55,0);if(0===r)return e;let i=Z(e),o=Z(t),a=i.toLowerCase().indexOf(o.toLowerCase()),s=a+o.length-1,l=0,u=0,c=i.split("/"),d=c.map(e=>{if(l>=r)return u+=e.length,Z(e);let t=u,n=u+e.length+1;return ta?(u+=e.length,Z(e)):!e.includes(o)&&e.length>3?(u+=e.length,l+=e.length+1,"..."):(u+=e.length,Z(e))});return d.reverse().join("/")}(t,n,0),{startIndex:c,endIndex:f}=function(e,t){let n=Z(e),r=Z(t),i=n.toLowerCase().indexOf(r.toLowerCase()),o=i+r.length;return{endIndex:e.length-i,startIndex:e.length-o}}(l,n);return(0,r.jsx)(d.WD,{commandPage:D,currentPage:i,onSelect:()=>{a(),u(t),s()},value:t,children:(0,r.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"group-data-[selected=true]:text-gray-1000 dark:group-data-[selected=true]:text-graydark-1000",children:(0,A.IQ)(t)?(0,r.jsx)(N.ROc,{size:16}):(0,r.jsx)(N.c_L,{})}),(0,r.jsxs)(o.xvT,{className:"flex items-center",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",ellipsis:!0,children:l.slice(0,c)}),(0,r.jsx)(o.xvT,{color:"accent",ellipsis:!0,children:l.slice(c,f)}),(0,r.jsx)(o.xvT,{color:"verySubtle",ellipsis:!0,children:l.slice(f)})]})]})},t)})}):null}function Z(e){return e.split("").reverse().join("")}let F={namespace:"files",label:"Files"};function z(e){let{search:t,debouncedSearch:n,currentPage:i,parentPage:o,pushPage:a,beforeSelect:l,afterSelect:u}=e,f=(0,c.useRouter)(),{closeDialog:h}=eA();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:i,parentPage:o,commandPage:o,onSelect:()=>{a(F)},children:F.label}),(0,r.jsxs)(d.fu,{currentPage:i,commandPage:F,children:[(0,r.jsx)(d.WD,{currentPage:i,commandPage:F,onSelect:()=>{f.pathname.startsWith(s._.files.index)||f.push(s._.files.index),h(),u()},children:"View files"}),(0,r.jsx)(d.WD,{currentPage:i,commandPage:F,onSelect:()=>{a(D),u()},children:"Search files"})]}),(0,r.jsx)(L,{debouncedSearch:n,search:t,currentPage:i,beforeSelect:l,afterSelect:u})]})}var V=n(19513),I=n(94225);function B(e){let{search:t}=e;return(0,r.jsxs)(o.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:(0,r.jsx)(N.owP,{})}),(0,r.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No results matching query.":"Type a query to get started."})]})}function H(e){let{panel:t}=e,{resetFilters:n}=(0,C.G)(),{resetFilters:a}=(0,V.l)(),{closeDialog:d}=eA(),f=(0,c.useRouter)(),[h,m]=(0,i.useState)(""),[v]=(0,I.Nr)(h,500),[y,x]=(0,i.useState)([]),w=y[y.length-1],j=0===y.length,E=(0,i.useCallback)(e=>{x(t=>[...t,e])},[x]),S=(0,i.useCallback)(()=>{d()},[d]),O=(0,i.useCallback)(()=>{m("")},[m]),M=(null==w?void 0:w.empty)||B;return(0,r.jsxs)(u.mY,{label:"Command Menu",loop:!0,className:(0,l.cx)(t&&(0,o.z$)()),onKeyDown:e=>{(y.length>0&&"Escape"===e.key||"Backspace"===e.key&&!h)&&(e.preventDefault(),x(e=>e.slice(0,-1)))},children:[w&&(0,r.jsx)(o.__J,{className:"px-2",children:w.label}),(0,r.jsx)(u.mY.Input,{value:h,onValueChange:m,className:(0,o.cEb)({variant:"ghost",focus:"none"}),placeholder:(null==w?void 0:w.prompt)||(j?"Search for commands, eg: theme, redundancy":"Search commands")}),(0,r.jsx)(o.Z0O,{className:"my-2"}),(0,r.jsxs)(u.mY.List,{children:[(0,r.jsx)(u.mY.Empty,{children:(0,r.jsx)(M,{search:h,debouncedSearch:v})}),(0,r.jsx)(g,{currentPage:w,pushPage:E}),(0,r.jsx)(z,{debouncedSearch:v,search:h,currentPage:w,pushPage:E,beforeSelect:()=>{S()},afterSelect:()=>{O()}}),(0,r.jsx)(p,{currentPage:w,pushPage:E}),(0,r.jsx)(_,{currentPage:w,pushPage:E,beforeSelect:()=>{S(),n()},afterSelect:()=>{f.pathname.startsWith(s._.contracts.index)||f.push(s._.contracts.index),O()}}),(0,r.jsx)(T,{currentPage:w,pushPage:E,beforeSelect:()=>{S(),a()},afterSelect:()=>{f.pathname.startsWith(s._.hosts.index)||f.push(s._.hosts.index),O()}}),(0,r.jsx)(k,{currentPage:w,pushPage:E}),(0,r.jsx)(b,{currentPage:w,pushPage:E})]})]})}function U(e){let{open:t,onOpenChange:n,setOpen:l}=e,{isUnlockedAndAuthedRoute:u}=(0,a.Hv)(),{isConnected:c}=(0,o.Y97)({route:s.h});return(0,i.useEffect)(()=>{if(!u||!c)return;let e=e=>{"k"===e.key&&e.metaKey&&l()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[u,c,l]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(o.VqE,{open:t,onOpenChange:n,contentVariants:{className:"!absolute !p-1 w-[450px] top-[200px]"},bodyClassName:"!px-1 !py-1",closeClassName:"hidden",children:(0,r.jsx)(H,{})})})}var W=n(7114),q=n(24511);let $={name:""},K=q.Ry().shape({name:q.Z_().required("Required")});function Y(e){let{trigger:t,open:n,onOpenChange:i}=e,{activeDirectoryPath:a}=(0,P.Y)(),s=(0,f.ZM)(),l=(0,W.TA)({initialValues:$,validationSchema:K,onSubmit:async(e,t)=>{let n=await s.put({params:(0,A.W0)(a+e.name+"/"),payload:null});n.error?(0,o.OHV)(n.error):((0,o.RFt)("Directory created."),t.resetForm(),i(!1))}});return(0,r.jsx)(o.VqE,{trigger:t,title:"New directory",open:n,onOpenChange:e=>{e||l.resetForm(),i(e)},contentVariants:{className:"w-[400px]"},children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsx)("form",{onSubmit:l.handleSubmit,children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(o.cB7,{formik:l,title:"Name",name:"name",placeholder:"photos, backups, etc",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(o.IKw,{formik:l,size:"medium",children:"Create"})]})})})})}var G=n(33571);let X={publicKey:""},Q=q.Ry().shape({publicKey:q.Z_().required("Required")});function J(){var e;let t=(0,f.s2)({config:{swr:{refreshInterval:6e4}}}),n=(0,G.I)(),a=(0,W.TA)({initialValues:X,validationSchema:Q,onSubmit:async(e,t)=>{let r=await n([e.publicKey],[]);r?t.resetForm():t.setStatus({error:"Error updating allowlist"})}});(0,i.useEffect)(()=>{a.setStatus(void 0)},[a.values]);let s=a.values.publicKey,l=(null===(e=t.data)||void 0===e?void 0:e.filter(e=>!a.values.publicKey||e.includes(a.values.publicKey)))||[];return(0,r.jsxs)("form",{onSubmit:a.handleSubmit,className:"flex flex-col gap-2 h-[400px]",children:[(0,r.jsx)(o.S$c,{title:"Public key",name:"publicKey",formik:a,withStatusError:!0,children:(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(o.KZS,{name:"publicKey",formik:a,placeholder:"ed25519:02aabd26e627fd...",autoComplete:"off",variants:{size:"small"}}),(0,r.jsx)(o.IKw,{formik:a,size:"small",variant:"amber",withStatusError:!1,children:"Allow public key"})]})}),(0,r.jsxs)(o.s_4,{className:"p-2 flex gap-2 items-center",children:[(0,r.jsx)(o.xvT,{children:(0,r.jsx)(N.qdM,{})}),(0,r.jsxs)(o.nvN,{size:"12",children:[(0,r.jsx)(o.xvT,{weight:"semibold",children:"Caution:"})," Please note that because the allowlist is inclusive, as soon as there are more than zero entries, contracting will be limited to only the hosts explicitly on the allowlist - all other existing contracts will immediately abort."]})]}),(0,r.jsx)("div",{className:"flex-1 overflow-hidden !-m-2",children:l.length?(0,r.jsx)(o.xrM,{children:(0,r.jsx)("div",{className:"p-2",children:(0,r.jsx)(o.hmz,{options:l.map(e=>({value:e,label:"".concat(e.slice(0,20),"...")}))||[],onClick:e=>(0,o.vQq)(e,"allowed public key"),onRemove:e=>n([],[e])})})}):s?(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(o.xvT,{color:"subtle",children:(0,r.jsx)(N.Hb6,{})}),(0,r.jsxs)(o.xvT,{color:"subtle",children:["No existing entries match ",a.values.publicKey,"."]})]}):(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(o.xvT,{color:"subtle",children:(0,r.jsx)(N.TtX,{})}),(0,r.jsx)(o.xvT,{color:"subtle",children:"The allowlist is empty."})]})})]})}var ee=n(98358);let et={address:""},en=["45.148.30.56","51.158.108.244","siacentral.ddnsfree.com","siacentral.mooo.com"],er=q.Ry().shape({address:q.Z_().required("Required").test("address","Invalid hostname or IP address",e=>(0,o.Ztc)().test(e||""))});function ei(){let e=(0,f.uf)({config:{swr:{refreshInterval:6e4}}}),t=(0,ee.l)(),n=(0,W.TA)({initialValues:et,validationSchema:er,onSubmit:async(e,n)=>{let r=await t([e.address],[]);r?n.resetForm():n.setStatus({error:"Error updating blocklist"})}});(0,i.useEffect)(()=>{n.setStatus(void 0)},[n.values]);let a=n.values.address,s=(0,i.useMemo)(()=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.filter(e=>!n.values.address||e.includes(n.values.address)))||[]},[e.data,n.values.address]),{dataset:l}=(0,C.G)(),u=(0,i.useMemo)(()=>en.filter(t=>{var n;return!(null===(n=e.data)||void 0===n?void 0:n.find(e=>e===t))}).map(e=>({address:e,contractCount:null==l?void 0:l.filter(t=>t.hostIp===e).length})),[e.data,l]);return(0,r.jsxs)("form",{onSubmit:n.handleSubmit,className:"flex flex-col gap-2 h-[400px]",children:[(0,r.jsx)(o.S$c,{title:"Address",name:"address",formik:n,withStatusError:!0,children:(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(o.KZS,{name:"address",formik:n,placeholder:"eg: 51.258.128.144 or spam.ddnsfree.com",autoComplete:"off",variants:{size:"small"}}),(0,r.jsx)(o.IKw,{formik:n,size:"small",variant:"red",withStatusError:!1,children:"Block address"})]})}),(0,r.jsx)("div",{className:"flex-1 overflow-hidden !-m-2",children:(0,r.jsx)(o.xrM,{children:(0,r.jsxs)("div",{className:"p-2",children:[!!u.length&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex gap-1 flex-wrap",children:[(0,r.jsx)(o.xvT,{size:"12",color:"subtle",children:"Suggestions:"}),u.map((e,t)=>{let{address:i,contractCount:a}=e;return(0,r.jsxs)(o.xvT,{size:"12",underline:"hover",className:"cursor-pointer",onClick:()=>n.setFieldValue("address",i),children:[i,!!a&&(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)(o.ua7,{content:"".concat(a," active contracts"),children:(0,r.jsxs)(o.xvT,{color:"red",children:["(",a,")"]})})]}),t!==u.length-1&&(0,r.jsx)(o.xvT,{children:","})]},i)})]}),(0,r.jsx)(o.Z0O,{className:"my-2"})]}),s.length?(0,r.jsx)(o.hmz,{options:s.map(e=>({value:e,label:"".concat(e.slice(0,20),"...")}))||[],onClick:e=>(0,o.vQq)(e,"blocked address"),onRemove:e=>t([],[e])}):a?(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(o.xvT,{color:"subtle",children:(0,r.jsx)(N.Hb6,{})}),(0,r.jsxs)(o.xvT,{color:"subtle",children:["No existing entries match ",n.values.address,"."]})]}):(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(o.xvT,{color:"subtle",children:(0,r.jsx)(N.TtX,{})}),(0,r.jsx)(o.xvT,{color:"subtle",children:"The blocklist is empty."})]})]})})})]})}function eo(e){let{trigger:t,open:n,onOpenChange:i}=e;return(0,r.jsx)(o.VqE,{trigger:t,title:"Manage host blocklist and allowlist",open:n,onOpenChange:e=>{i(e)},contentVariants:{className:"w-[500px]"},children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(o.nvN,{size:"12",children:"The allowlist and blocklist limit the set of hosts that renterd will consider when forming contracts. The blocklist excludes hosts with matching addresses whereas the allowlist restricts consideration to hosts with a matching public key. Each list's filtering is enabled and applied when it contains more than zero entries."}),(0,r.jsxs)(o.mQc,{defaultValue:"blocklist",children:[(0,r.jsxs)(o.drW,{"aria-label":"blocklist and allowlist tabs",children:[(0,r.jsx)(o.SPt,{value:"blocklist",children:"Block"}),(0,r.jsx)(o.SPt,{value:"allowlist",children:"Allow"})]}),(0,r.jsx)(o.nUL,{value:"blocklist",children:(0,r.jsx)(ei,{})}),(0,r.jsx)(o.nUL,{value:"allowlist",children:(0,r.jsx)(J,{})})]})]})})}var ea=n(2320),es=n(31781),el=n(24801);function eu(e){let{panel:t}=e,{resetFilters:n}=(0,C.G)(),{closeDialog:a}=eA(),d=(0,c.useRouter)(),[f,h]=(0,i.useState)(""),[p]=(0,I.Nr)(f,500),m=(0,i.useCallback)(()=>{a()},[a]);return(0,r.jsxs)(u.mY,{label:"Files search",shouldFilter:!1,className:(0,l.cx)(t&&(0,o.z$)()),children:[(0,r.jsx)(o.__J,{className:"px-2",children:"File search"}),(0,r.jsx)(u.mY.Input,{value:f,onValueChange:h,className:(0,o.cEb)({variant:"ghost",focus:"none"}),placeholder:D.prompt}),(0,r.jsx)(o.Z0O,{className:"my-2"}),(0,r.jsx)("div",{className:"overflow-hidden",children:(0,r.jsxs)(u.mY.List,{children:[(0,r.jsx)(u.mY.Empty,{children:(0,r.jsx)(R,{search:f,debouncedSearch:p})}),(0,r.jsx)(L,{debouncedSearch:p,search:f,currentPage:D,beforeSelect:()=>{m(),n()},afterSelect:()=>{d.pathname.startsWith(s._.files.index)||d.push(s._.files.index)}})]})})]})}function ec(e){let{open:t,onOpenChange:n,trigger:i}=e;return(0,r.jsx)(o.VqE,{open:t,trigger:i,onOpenChange:n,contentVariants:{className:"!absolute !p-1 w-[450px] top-[200px]"},bodyClassName:"!px-1 !py-1",closeClassName:"hidden",children:(0,r.jsx)(eu,{})})}var ed=n(6391),ef=n.n(ed);function eh(){let{dialog:e,openDialog:t,closeDialog:n}=eA(),a=(0,f.X2)(),s=(0,f.gU)(),l=(0,f.cg)(),u=(0,f.ys)(),c=(0,f.aO)(),d=(0,i.useCallback)(async e=>{let{sc:t,address:n}=e,r=await s.post({payload:{amount:t.toString(),transaction:{siacoinOutputs:[{address:n,value:t.toString()}]}}});if(r.error)return{error:r.error};let i=await l.post({payload:{transaction:r.data.transaction,toSign:r.data.toSign,coveredFields:{wholeTransaction:!0}}});if(i.error)return c.post({payload:r.data.transaction}),{error:i.error};let o=await u.post({payload:[i.data]});return o.error?(c.post({payload:i.data}),{error:o.error}):{}},[s,l,u,c]);return(0,r.jsx)(o.weF,{balance:a.data?new(ef())(a.data.spendable):void 0,send:d,open:"sendSiacoin"===e,onOpenChange:r=>r?t(e):n()})}var ep=n(63171);function em(){let{id:e,dialog:t,openDialog:n,closeDialog:a}=eA(),{dataset:s}=(0,ep.n)(),l=(0,i.useMemo)(()=>null==s?void 0:s.find(t=>t.hash===e),[s,e]);return(0,r.jsx)(o.mPE,{id:e,transaction:l,open:"transactionDetails"===t,onOpenChange:e=>e?n(t):a()})}var ev=n(82459);function eg(e){let{id:t,contentProps:n,buttonProps:i}=e,a=(0,f.cq)({params:{id:t}});return a.data?(0,r.jsx)(ev.F,{id:t,address:a.data.hostIP,publicKey:a.data.hostKey,contentProps:n,buttonProps:i}):(0,r.jsx)(o.zxk,{variant:"ghost",icon:"hover",state:"waiting",...i,children:(0,r.jsx)(N.iG7,{})})}var ey=n(848);function eb(e){let{open:t,onOpenChange:n}=e,a=(0,f.Z7)(),s=(0,f.Uy)(),l=(0,i.useCallback)(async e=>{let t=await s.post({payload:[e]});t.error?(0,o.OHV)("Error dismissing alert."):(0,o.OPV)("Alert has been dismissed.")},[s]),u=(0,i.useCallback)(async(e,t)=>{if(!a.data)return;let n=await s.post({payload:e});n.error?(0,o.OHV)(t?"Error dismissing all ".concat(t," alerts."):"Error dismissing all alerts."):(0,o.OPV)(t?"All ".concat(t," alerts have been dismissed."):"All alerts have been dismissed.")},[s,a.data]);return(0,r.jsx)(o.hcY,{open:t,onOpenChange:e=>{n(e)},alerts:a,dataFieldOrder:ex,dataFields:ew,dismissMany:u,dismissOne:l})}let ex=["hint","error","origin","hostKey","contractID","accountID","slabKey","additions","removals"],ew={contractID:{render:function(e){let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"contract ID"}),(0,r.jsx)(o.PF9,{value:t,menu:(0,r.jsx)(eg,{id:t,contentProps:{align:"end"},buttonProps:{size:"none"}})})]})}},accountID:{render:function(e){let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"account ID"}),(0,r.jsx)(o.XxW,{value:t,label:"account ID"})]})}},hostKey:{render:function(e){let{value:t}=e,n=(0,f.$)({params:{hostKey:t}});return n.data?(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"host key"}),(0,r.jsx)(o.PF9,{value:t,menu:(0,r.jsx)(ey.G,{publicKey:n.data.publicKey,address:n.data.netAddress,contentProps:{align:"end"},buttonProps:{size:"none"}})})]}):null}},slabKey:{render:function(e){let{value:t}=e,{setActiveDirectory:n}=(0,P.Y)(),{closeDialog:i}=eA(),a=(0,f.og)({params:{key:t},config:{swr:{revalidateOnFocus:!1}}});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"key"}),(0,r.jsx)(o.XxW,{value:t})]}),a.data&&(0,r.jsx)(o.xrM,{children:(0,r.jsx)("div",{className:"flex flex-col gap-2 mt-2 mb-2",children:a.data.map(e=>(0,r.jsx)(o.rUS,{color:"accent",underline:"hover",size:"12",noWrap:!0,onClick:()=>{n(()=>(0,A.gD)(e.name)),i()},children:e.name},e.name))})})]})}},additions:{render:function(e){let{value:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"flex justify-between w-full gap-2",children:(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"additions"})}),t&&(0,r.jsx)(o.xrM,{children:(0,r.jsx)("div",{className:"flex flex-wrap gap-2 mb-2",children:t.map(e=>(0,r.jsx)("div",{children:(0,r.jsx)(o.XxW,{value:e,label:"contract ID"})},e))})})]})}},removals:{render:function(e){let{value:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"flex justify-between w-full gap-2",children:(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"removals"})}),t&&(0,r.jsx)(o.xrM,{children:(0,r.jsx)("div",{className:"flex flex-col gap-2 mb-2",children:Object.entries(t).map(e=>{let[t,n]=e;return(0,r.jsxs)("div",{className:"flex gap-2 justify-between w-full",children:[(0,r.jsx)(o.XxW,{value:t,label:"contract ID"}),(0,r.jsx)(o.ua7,{content:n,children:(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:n})})]},t)})})})]})}},error:{render:e=>{let{value:t}=e;return(0,r.jsx)("div",{className:"flex flex-col w-full gap-2",children:(0,r.jsx)(o.UQy,{type:"single",children:(0,r.jsxs)(o.Qdk,{value:"error",variant:"ghost",children:[(0,r.jsx)(o.o48,{children:(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"error"})}),(0,r.jsx)(o.vF,{children:(0,r.jsx)(o.xvT,{color:"contrast",children:t})})]})})})}},hint:{render:e=>{let{value:t}=e;return(0,r.jsx)("div",{className:"flex flex-col w-full gap-2",children:(0,r.jsx)(o.xvT,{color:"contrast",children:t})})}},allowance:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"allowance"}),(0,r.jsx)(o.YKL,{variant:"value",value:new(ef())(t)})]})}},balance:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"balance"}),(0,r.jsx)(o.YKL,{variant:"value",value:new(ef())(t)})]})}},address:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"address"}),(0,r.jsx)(o.XxW,{value:t,type:"address"})]})}},account:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"account"}),(0,r.jsx)(o.XxW,{value:t})]})}}};var ej=n(54155),ek=n(63955);let eE={name:""};function eS(e){let{trigger:t,open:n,onOpenChange:a}=e,{id:s,closeDialog:l}=eA(),u=(0,f.sg)(),c=(0,ek.cI)({mode:"all",defaultValues:eE}),d=(0,i.useCallback)(async e=>{let t=await u.delete({params:{name:e.name}});t.error?(0,o.OHV)(t.error):((0,o.OPV)("Bucket permanently deleted."),c.reset(),l())},[c,u,l]),h=(0,i.useMemo)(()=>({name:{type:"text",title:"Name",placeholder:s,validation:{required:"required",validate:{notDefault:()=>"default"!==s||"cannot delete default bucket",equals:e=>e===s||"bucket name does not match"}}}}),[s]),p=(0,o.WsO)(h);return(0,r.jsx)(o.VqE,{title:"Delete Bucket",trigger:t,open:n,onOpenChange:e=>{e||c.reset(eE),a(e)},contentVariants:{className:"w-[400px]"},onSubmit:c.handleSubmit(d,p),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(o.nvN,{size:"14",children:"Before you delete a bucket you must ensure that it is empty. Re-enter the bucket name to confirm the removal."}),(0,r.jsx)("div",{children:(0,r.jsx)(o.EKh,{color:"gray",children:s})}),(0,r.jsx)(o.yEL,{name:"name",form:c,fields:h,autoComplete:"off"}),(0,r.jsx)(o.ZqQ,{variant:"red",form:c,children:"Delete"})]})})}let e_={visibility:"public"};function eC(e){let{trigger:t,open:n,onOpenChange:a}=e,{id:s,closeDialog:l}=eA(),u=(0,f.D5)({disabled:!n,params:{name:s},config:{swr:{revalidateOnFocus:!1}}}),c=(0,f.ol)(),d=(0,ek.cI)({mode:"all",defaultValues:e_});(0,i.useEffect)(()=>{var e,t;d.reset({visibility:(null===(t=u.data)||void 0===t?void 0:null===(e=t.policy)||void 0===e?void 0:e.publicReadAccess)?"public":"private"})},[d,u.data]);let h=(0,i.useCallback)(async e=>{let t=await c.put({params:{name:s},payload:{policy:{publicReadAccess:"public"===e.visibility}}});t.error?(0,o.OHV)(t.error):((0,o.OPV)("Bucket policy has been updated."),d.reset(),l())},[d,s,c,l]),p=(0,i.useMemo)(()=>({visibility:{type:"text",title:"Read Access",placeholder:s,validation:{required:"required"},options:[{label:"Public",value:"public"},{label:"Private",value:"private"}]}}),[s]),m=(0,o.WsO)(p);return(0,r.jsx)(o.VqE,{title:"Change Policy: ".concat(s),trigger:t,open:n,onOpenChange:e=>{e||d.reset(e_),a(e)},contentVariants:{className:"w-[400px]"},onSubmit:d.handleSubmit(h,m),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(o.nvN,{size:"14",children:"Update the bucket's policy to set read access to either private or public. Files in public read access buckets can be accessed without authentication via the S3 API."}),(0,r.jsx)(o.WyV,{name:"visibility",form:d,fields:p}),(0,r.jsx)(o.ZqQ,{variant:"accent",form:d,children:"Update policy"})]})})}let eO={name:""};function eM(e){let{trigger:t,open:n,onOpenChange:a}=e,{closeDialog:s}=eA(),l=(0,f.oV)(),u=(0,ek.cI)({mode:"all",defaultValues:eO}),c=(0,i.useCallback)(async e=>{let t=await l.post({payload:{name:e.name}});t.error?(0,o.OHV)(t.error):((0,o.OPV)("Bucket created."),u.reset(),s())},[u,l,s]),d=(0,i.useMemo)(()=>({name:{type:"text",title:"Name",placeholder:"photos, backups, etc",validation:{required:"required"}}}),[]),h=(0,o.WsO)(d);return(0,r.jsx)(o.VqE,{title:"Create Bucket",trigger:t,open:n,onOpenChange:e=>{e||u.reset(eO),a(e)},contentVariants:{className:"w-[400px]"},onSubmit:u.handleSubmit(c,h),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(o.nvN,{size:"14",children:"A bucket is an isolated collection of files."}),(0,r.jsx)(o.yEL,{name:"name",form:u,fields:d,autoComplete:"off"}),(0,r.jsx)(o.ZqQ,{form:u,children:"Create bucket"})]})})}let eT=(0,i.createContext)({}),eA=()=>(0,i.useContext)(eT);function eP(e){let{children:t}=e,n=function(){let[e,t]=(0,i.useState)(),[n,r]=(0,i.useState)(),o=(0,i.useCallback)((e,n)=>{t(e),r(n)},[t,r]),[a,s]=(0,i.useState)(),l=(0,i.useCallback)(e=>{t("confirm"),s(e)},[t,s]),u=(0,i.useCallback)(()=>{t(void 0),r(void 0),s(void 0)},[t,r,s]),c=(0,i.useCallback)(e=>{e||u()},[u]);return{dialog:e,id:n,openDialog:o,confirm:a,openConfirmDialog:l,closeDialog:u,onOpenChange:c}}();return(0,r.jsx)(eT.Provider,{value:n,children:t})}function eN(){var e;let{dialog:t,openDialog:n,onOpenChange:i,closeDialog:a,confirm:s,openConfirmDialog:l}=eA(),u=(0,f.Wl)(),c=(0,f.X2)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(U,{open:"cmdk"===t,onOpenChange:i,setOpen:()=>n("cmdk")}),(0,r.jsx)(o.DLL,{open:"settings"===t,onOpenChange:i,showGpuSetting:!0}),(0,r.jsx)(eh,{}),(0,r.jsx)(o.YNn,{address:null===(e=c.data)||void 0===e?void 0:e.address,isValidating:c.isValidating,open:"addressDetails"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(em,{}),(0,r.jsx)(o.D_D,{open:"connectPeer"===t,connect:e=>u.post({payload:e}),onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(eM,{open:"filesCreateBucket"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(eS,{open:"filesDeleteBucket"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(eC,{open:"filesBucketPolicy"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(Y,{open:"filesCreateDirectory"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(ec,{open:"filesSearch"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(eo,{open:"hostsManageAllowBlock"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(ea.g,{open:"hostsFilterAddress"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(ej.a,{open:"hostsFilterPublicKey"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(es.p,{open:"contractsFilterAddress"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(el.C,{open:"contractsFilterPublicKey"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(eb,{open:"alerts"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(o.QHy,{open:"confirm"===t,params:s,onOpenChange:e=>e?l(s):a()})]})}},48528:function(e,t,n){"use strict";n.d(t,{Z:function(){return N},Y:function(){return P}});var r=n(52322),i=n(57362),o=n(5632),a=n(2784),s=n(88242),l=n(25205),u=n(86811),c=n(9969),d=n(91652);function f(e){let{path:t}=e,n=(0,c.wy)({params:(0,d.W0)(t),config:{swr:{dedupingInterval:5e3}}});return(0,r.jsxs)(i.Xiv,{disabled:!n.data,onSelect:()=>{n.data&&(0,i.vQq)(JSON.stringify(n.data.object,null,2),"object metadata")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.olJ,{})}),"Copy metadata"]})}function h(e){let{path:t}=e,{downloadFiles:n,getFileUrl:o,navigateToFile:l}=P(),h=function(){let{openConfirmDialog:e}=(0,u.Rh)(),t=(0,c.xw)();return(0,a.useCallback)(n=>e({title:"Delete file",action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.Jrl,{}),"Delete"]}),variant:"red",body:(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)(i.nvN,{size:"14",children:"Are you sure you would like to delete the following file:"}),(0,r.jsx)(i.nvN,{size:"14",font:"mono",className:"break-words",children:n})]}),onConfirm:async()=>{let e=await t.delete({params:(0,d.W0)(n)});e.error&&(0,i.OHV)("Error deleting file."),(0,i.OPV)("Successfully deleted file.")}}),[e,t])}();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,r.jsx)(s.c_L,{})}),contentProps:{align:"start"},children:[(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:async()=>{n([t])},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.vzB,{})}),"Download file"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>h(t),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.Jrl,{})}),"Delete file"]}),(0,r.jsx)(i.Juw,{children:"Filter"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{l(t)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.q0D,{})}),"Filter by file name"]}),(0,r.jsx)(i.Juw,{children:"Copy"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{(0,i.vQq)(t,"file path")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.olJ,{})}),"Copy file path"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{(0,i.vQq)((0,d.vt)(t),"file path")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.olJ,{})}),"Copy file name"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{(0,i.vQq)(o(t,!1),"file URL")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.olJ,{})}),"Copy URL"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{(0,i.E5z)(o(t,!0),(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)(i.xvT,{children:"Copied authenticated file URL to clipboard."}),(0,r.jsxs)(i.xvT,{children:["The authenticated URL contains the ",(0,r.jsx)(i.EKh,{children:"renterd"})," ","password, be careful when pasting or sharing the URL."]})]}),{icon:(0,r.jsx)("div",{className:"!flex-none w-5",children:(0,r.jsx)(s.qdM,{className:"w-5 text-amber-600"})}),duration:1e4,className:"!max-w-[1200px]"})},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.olJ,{})}),"Copy authenticated URL"]}),(0,r.jsx)(f,{path:t})]})}function p(e){let{path:t,size:n}=e,o=function(){let{openConfirmDialog:e}=(0,u.Rh)(),t=(0,c.xw)();return(0,a.useCallback)((n,o)=>e({title:"Delete directory",action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.Jrl,{}),"Delete"]}),variant:"red",body:(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsxs)(i.nvN,{size:"14",children:["Are you sure you would like to delete the following directory which contains ",(0,l.vW)(o)," of data:"]}),(0,r.jsx)(i.nvN,{size:"14",font:"mono",className:"break-words",children:n})]}),onConfirm:async()=>{let e=await t.delete({params:{...(0,d.W0)(n),batch:!0}});e.error&&(0,i.OHV)("Error deleting directory."),(0,i.OPV)("Successfully deleted directory.")}}),[e,t])}();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,r.jsx)(s.ROc,{size:16})}),contentProps:{align:"start"},children:[(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{o(t,n)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.Jrl,{})}),"Delete directory"]})]})}var m=n(6391),v=n.n(m),g=n(82439),y=n(82851),b=n(67693);function x(e){var t,n,o;let{path:a,isUploading:s,type:l,health:u,size:f}=e,h="directory"===l,p=(0,c.wy)({disabled:s||h,params:(0,d.W0)(a),config:{swr:{dedupingInterval:5e3}}}),{displayHealth:m,label:v}=(0,g.B)({health:u,size:f,isDirectory:h});if(p.isValidating)return(0,r.jsx)(w,{displayHealth:m,label:v,children:(0,r.jsx)("div",{className:"flex justify-center my-2",children:(0,r.jsx)(i.xgg,{})})});if(!(null===(t=p.data)||void 0===t?void 0:t.object))return(0,r.jsx)(w,{displayHealth:m,label:v,children:(0,r.jsx)(i.xvT,{size:"12",children:"Error fetching slab metadata."})});let y=(0,b.Z)(p.data.object.slabs.map(e=>{var t;return{...e.slab,isPartialSlab:!!e.slab.shards,contractSetShards:(null===(t=e.slab.shards)||void 0===t?void 0:t.length)?function(e){let{totalShards:t,minShards:n,health:r}=e,i=Math.ceil(r*(t-n)),o=i+n;return o<=0?0:o>t?t:o}({totalShards:e.slab.shards.length,minShards:e.slab.minShards,health:e.slab.health}):0}}),"contractSetShards");return(0,r.jsx)(w,{className:y.length>15?"h-[300px]":"",displayHealth:m,label:v,minShards:null===(n=y.find(e=>e.minShards))||void 0===n?void 0:n.minShards,totalShards:null===(o=y.find(e=>e.shards))||void 0===o?void 0:o.shards.length,children:y.map(e=>(0,r.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",className:"flex items-center",font:"mono",children:["Slab ",e.key.replace("key:","").slice(0,4),":"]}),(0,r.jsx)(i.xvT,{size:"12",className:"flex items-center",children:e.isPartialSlab?"".concat(e.contractSetShards,"/").concat(e.shards.length):"partial slab"})]},e.key))})}function w(e){let{className:t,displayHealth:n,label:o,children:a,minShards:s,totalShards:l}=e;return(0,r.jsxs)("div",{className:(0,y.cx)("z-10 flex flex-col pb-1 -mx-1 overflow-hidden",t),children:[(0,r.jsxs)("div",{className:"flex justify-between gap-2 pt-0.5 pb-px px-2",children:[(0,r.jsx)(i.xvT,{size:"12",children:o}),(0,r.jsxs)(i.xvT,{size:"12",children:[(100*n).toFixed(0),"%"]})]}),s&&l?(0,r.jsxs)("div",{className:"flex justify-between gap-2 pt-0.5 pb-px px-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:"redundancy"}),(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",children:[s," of ",l]})]}):null,(0,r.jsx)("div",{className:"px-2",children:(0,r.jsx)(i.Z0O,{className:"w-full my-1"})}),(0,r.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,r.jsx)(i.xrM,{children:(0,r.jsx)("div",{className:"px-2",children:a})})})]})}function j(e){let{name:t,isUploading:n,type:o,health:a,size:s}=e,l="directory"===o,{displayHealth:u,label:c,color:d,icon:f}=(0,g.B)({health:a,size:s,isDirectory:l});return l?".."===t?null:(0,r.jsx)(i.zsw,{rootProps:{openDelay:100},trigger:(0,r.jsx)(i.xvT,{color:d,className:"flex cursor-pointer",children:f}),children:(0,r.jsx)("div",{className:"z-10 flex flex-col -mx-1 overflow-hidden",children:(0,r.jsxs)("div",{className:"flex justify-between gap-2 py-0.5 px-2",children:[(0,r.jsx)(i.xvT,{size:"12",children:c}),(0,r.jsxs)(i.xvT,{size:"12",children:[(100*u).toFixed(0),"%"]})]})})}):n?(0,r.jsx)(i.xgg,{}):(0,r.jsx)(i.zsw,{rootProps:{openDelay:100},trigger:(0,r.jsx)(i.xvT,{color:d,className:"flex cursor-pointer",children:f}),children:(0,r.jsx)(x,{...e})})}function k(e){let{name:t}=e,{openDialog:n}=(0,u.Rh)();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,r.jsx)(s.fi8,{size:16})}),contentProps:{align:"start"},children:[(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{n("filesBucketPolicy",t)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.Zbu,{})}),"Change policy"]}),(0,r.jsxs)(i.Xiv,{disabled:"default"===t,onSelect:()=>{n("filesDeleteBucket",t)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.Jrl,{})}),"Delete bucket"]})]})}let E=[{id:"type",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-2 [&+*]:!pl-0",render:function(e){let{data:{isUploading:t,type:n,name:o,path:a,size:l}}=e,{setActiveDirectory:u}=P();return t?(0,r.jsx)(i.zxk,{variant:"ghost",state:"waiting",children:(0,r.jsx)(s.c_L,{})}):".."===o?(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",onClick:e=>{e.stopPropagation(),u(e=>e.slice(0,-1))},children:(0,r.jsx)(s.ROc,{size:16})}):"bucket"===n?(0,r.jsx)(k,{name:o}):"directory"===n?(0,r.jsx)(p,{path:a,size:l}):(0,r.jsx)(h,{path:a})}},{id:"name",label:"name",category:"general",contentClassName:"max-w-[600px]",render:function(e){let{data:{name:t,type:n}}=e,{setActiveDirectory:o}=P();return"bucket"===n?(0,r.jsx)(i.xvT,{ellipsis:!0,color:"accent",weight:"semibold",className:"cursor-pointer",onClick:e=>{e.stopPropagation(),o(()=>[t])},children:t}):"directory"===n?".."===t?(0,r.jsx)(i.xvT,{ellipsis:!0,color:"accent",weight:"semibold",className:"cursor-pointer",onClick:e=>{e.stopPropagation(),o(e=>e.slice(0,-1))},children:t}):(0,r.jsx)(i.xvT,{ellipsis:!0,color:"accent",weight:"semibold",className:"cursor-pointer",onClick:e=>{e.stopPropagation(),o(e=>e.concat(t.slice(0,-1)))},children:t}):(0,r.jsx)(i.xvT,{ellipsis:!0,weight:"semibold",children:t})}},{id:"readAccess",label:"public read access",contentClassName:"justify-center",render:function(e){var t,n;let{data:o}=e;if(".."===o.name)return null;let a=null===(n=o.bucket)||void 0===n?void 0:null===(t=n.policy)||void 0===t?void 0:t.publicReadAccess;return(0,r.jsx)(i.ua7,{content:a?"The bucket policy allows public read access.":"The bucket policy only allows private read access.",children:(0,r.jsx)("div",{children:(0,r.jsx)(i.zxk,{variant:"ghost",state:"waiting",children:(0,r.jsx)(i.xvT,{color:a?"contrast":"verySubtle",className:"flex gap-0.5 items-center",children:a?(0,r.jsx)(s.nDH,{}):(0,r.jsx)(s.Lur,{})})})})})}},{id:"size",label:"size",contentClassName:"justify-end",render:function(e){let{data:{type:t,name:n,size:o,isUploading:a}}=e;return"bucket"===t?null:a?(0,r.jsx)(i.xgg,{}):".."===n?null:(0,r.jsx)(i.m2c,{size:"12",value:new(v())(o),variant:"value",color:"subtle",format:e=>(0,l.vW)(e.toNumber())})}},{id:"health",label:"health",contentClassName:"justify-center",render:function(e){let{data:t}=e;return"bucket"===t.type?null:(0,r.jsx)(j,{...t})}}];var S=n(81471),_=n(88744),C=n(95753),O=n(69046),M=n(79381),T=n(26592);let A=(0,a.createContext)({}),P=()=>(0,a.useContext)(A);function N(e){let{children:t}=e,n=function(){let{configurableColumns:e,enabledColumns:t,sortableColumns:n,toggleColumnVisibility:r,setColumnsVisible:s,setColumnsHidden:l,toggleSort:u,setSortDirection:f,setSortField:h,sortField:p,sortDirection:m,resetDefaultColumnVisibility:v}=(0,i.oy6)("renterd/v0/objects",{columns:E,columnsDefaultVisible:S.gd,sortOptions:S.Fo,defaultSortField:S.nw}),g=(0,o.useRouter)(),{filters:y,setFilter:x,removeFilter:w,removeLastFilter:j,resetFilters:k}=(0,i.Uu5)(),A=(0,a.useMemo)(()=>(g.query.path||[]).map(decodeURIComponent),[g.query.path]),P=(0,a.useMemo)(()=>A[0],[A]),N=(0,a.useMemo)(()=>(0,d.rd)(A)+"/",[A]),R=(0,a.useCallback)(e=>{let t=e(A);g.push("/files/"+t.map(encodeURIComponent).join("/"))},[g,A]),{uploadFiles:D,uploadsList:L,uploadCancel:Z}=function(e){let{activeDirectoryPath:t}=e,n=(0,c.B$)(),r=(0,c.ZM)(),[o,s]=(0,a.useState)({}),l=(0,a.useCallback)(e=>{s(t=>({...t,[e.path]:{id:e.path,path:e.path,bucket:e.bucket,name:e.name,size:e.size,loaded:e.loaded,isUploading:!0,controller:e.controller,type:"file"}}))},[s]),u=(0,a.useCallback)(e=>{s(t=>t[e.path]?{...t,[e.path]:{...t[e.path],path:e.path,loaded:e.loaded,size:e.size}}:t)},[s]),f=(0,a.useCallback)(e=>{s(t=>(delete t[e],{...t}))},[s]),h=(0,a.useCallback)(e=>{e.controller.abort()},[]),p=async e=>{e.forEach(async e=>{var a;let s=e.name,c=(0,d.pC)(t,s),h=(0,d.ru)(c),p=null===(a=n.data)||void 0===a?void 0:a.find(e=>e.name===h);if(o[c]){(0,i.OHV)("Already uploading file: ".concat(c));return}let m=new AbortController,v=(0,_.Z)(e=>u({path:c,loaded:e.loaded,size:e.total}),2e3);l({path:c,name:s,bucket:p,loaded:0,size:1,controller:m});let g=await r.put({params:(0,d.W0)(c),payload:e,config:{axios:{onUploadProgress:v,signal:m.signal}}});g.error?("canceled"===g.error?(0,i.RFt)("File upload canceled."):(0,i.OHV)(g.error),f(c)):(f(c),(0,i.OPV)("Upload complete: ".concat(s)))})},m=(0,a.useMemo)(()=>Object.entries(o).map(e=>e[1]),[o]);return{uploadFiles:p,uploadsList:m,uploadCancel:h}}({activeDirectoryPath:N}),{downloadFiles:F,downloadsList:z,getFileUrl:V,downloadCancel:I}=function(){let e=(0,c.B$)(),t=(0,c.p$)(),[n,r]=(0,a.useState)({}),o=(0,a.useCallback)(e=>{r(t=>({...t,[e.path]:{id:e.path,path:e.path,bucket:e.bucket,name:e.name,size:e.size,loaded:e.loaded,isUploading:!1,controller:e.controller,type:"file"}}))},[r]),s=(0,a.useCallback)(e=>{r(t=>t[e.path]?{...t,[e.path]:{...t[e.path],path:e.path,loaded:e.loaded,size:e.size}}:t)},[r]),l=(0,a.useCallback)(e=>{r(t=>(delete t[e],{...t}))},[r]),u=(0,a.useCallback)(e=>{e.controller.abort()},[]),f=async r=>{r.forEach(async r=>{var a;let u=!1,c=(0,d.ru)(r),f=null===(a=e.data)||void 0===a?void 0:a.find(e=>e.name===c),h=(0,d.vt)(r);if(n[r]){(0,i.OHV)("Already downloading file: ".concat(r));return}let p=new AbortController,m=(0,_.Z)(e=>{u||s({path:r,loaded:e.loaded,size:e.total})},2e3);o({path:r,name:h,bucket:f,loaded:0,size:1,controller:p});let v=await t.get(h,{params:(0,d.W0)(r),config:{axios:{onDownloadProgress:m,signal:p.signal}}});u=!0,v.error&&("canceled"===v.error?(0,i.RFt)("File download canceled."):(0,i.OHV)(v.error)),l(r)})},h=(0,a.useMemo)(()=>Object.entries(n).map(e=>e[1]),[n]),{settings:p}=(0,C.Hv)(),m=(0,a.useCallback)((e,t)=>{let{bucket:n,key:r}=(0,d.W0)(e),i="/worker/objects/".concat(r,"?bucket=").concat(n),o=p.api||location.origin,a=o.startsWith("https")?"https":"http",s=o.replace("https://","").replace("http://","");return t?"".concat(a,"://:").concat(p.password,"@").concat(s,"/api").concat(i):"".concat(a,"://").concat(s,"/api").concat(i)},[p]);return{downloadFiles:f,downloadsList:h,getFileUrl:m,downloadCancel:u}}(),{limit:B,offset:H,response:U,dataset:W}=function(e){var t,n;let{activeDirectoryPath:r,uploadsList:s,sortDirection:l,sortField:u,filters:f}=e,h=(0,c.B$)(),p=(0,o.useRouter)(),m=Number(p.query.limit||50),v=Number(p.query.offset||0),g=(0,d.ru)(r),y=null===(t=h.data)||void 0===t?void 0:t.find(e=>e.name===g),x=(null===(n=f.find(e=>"fileNamePrefix"===e.id))||void 0===n?void 0:n.value)||"",w=(0,a.useMemo)(()=>{let e={...(0,d.W0)(r),sortBy:u,sortDir:l,offset:v,limit:m};return x&&(e.prefix=x),e},[r,x,u,l,v,m]),j=(0,c.Jv)({disabled:!g,params:w,config:{swr:{refreshInterval:(0,i.sWj)(1)}}}),{dataset:k}=(0,T.G)(),E=(0,M.ZP)(j.isValidating||h.isValidating?null:[j.data,s,k,h.data,g,r],()=>{var e,t;let n={};y?j.data&&(null===(t=j.data.entries)||void 0===t||t.forEach(e=>{let{name:t,size:r,health:i}=e,o=(0,d.M7)(g,t);n[o]={id:o,path:o,bucket:y,size:r,health:i,name:(0,d.vt)(t),type:(0,d.IQ)(t)?"directory":"file"}}),s.filter(e=>{let{path:t,name:n}=e;return t===(0,d.pC)(r,n)}).forEach(e=>{n[e.path]=e})):null===(e=h.data)||void 0===e||e.forEach(e=>{let t=e.name,r=(0,d.wv)(t,"");n[t]={id:r,path:r,bucket:e,size:0,health:0,name:t,type:"bucket"}});let i=(0,b.Z)((0,O.Z)(n).map(e=>e[1]),u);return"desc"===l&&i.reverse(),i},{keepPreviousData:!0});return{limit:m,offset:v,response:j,dataset:E.data}}({activeDirectoryPath:N,uploadsList:L,sortField:p,sortDirection:m,filters:y}),q=(0,a.useMemo)(()=>W?A.length>0&&W.length>0?[{id:"..",name:"..",path:"..",type:"directory"},...W]:W:null,[W]),$=(0,a.useMemo)(()=>E.filter(e=>e.fixed||t.includes(e.id)),[t]),K=(0,i.c2j)(W,U.isValidating,U.error,y),Y=0===A.length,G=1===A.length,X=A.length>0,Q=(0,a.useCallback)(e=>{R(()=>[P,...(0,d.gD)(e)]),x({id:"fileNamePrefix",label:"",value:(0,d.vt)(e)})},[P,R,x]);return{isViewingBuckets:Y,isViewingABucket:X,isViewingRootOfABucket:G,activeBucket:P,activeDirectory:A,setActiveDirectory:R,activeDirectoryPath:N,navigateToFile:Q,dataState:K,limit:B,offset:H,datasetPage:q,pageCount:(null==W?void 0:W.length)||0,columns:$,uploadFiles:D,uploadsList:L,uploadCancel:Z,downloadFiles:F,downloadsList:z,downloadCancel:I,configurableColumns:e,enabledColumns:t,sortableColumns:n,toggleColumnVisibility:r,setColumnsVisible:s,setColumnsHidden:l,toggleSort:u,setSortDirection:f,setSortField:h,sortField:p,filters:y,setFilter:x,removeFilter:w,removeLastFilter:j,resetFilters:k,sortDirection:m,resetDefaultColumnVisibility:v,getFileUrl:V}}();return(0,r.jsx)(A.Provider,{value:n,children:t})}},91652:function(e,t,n){"use strict";function r(e,t){let n=t.startsWith("/")?t.slice(1):t;return e+n}function i(e,t){let n=r(e,t);return n.endsWith("/")?n:n+"/"}function o(e,t){return"".concat(e).concat(t)}function a(e){return e.split("/")[0]}function s(e){return{bucket:a(e),key:(function(e){let t=e.split("/").slice(1).join("/");return"/".concat(t)})(e).slice(1).split("/").map(encodeURIComponent).join("/")}}function l(e){let t=e.split("/");return e.endsWith("/")?"".concat(t[t.length-2],"/"):t[t.length-1]}function u(e){return e.endsWith("/")}function c(e){return u(e)?e.slice(0,-1).split("/"):e.split("/").slice(0,-1)}function d(e){return e.join("/")}n.d(t,{IQ:function(){return u},M7:function(){return o},W0:function(){return s},gD:function(){return c},pC:function(){return r},rd:function(){return d},ru:function(){return a},vt:function(){return l},wv:function(){return i}})},81471:function(e,t,n){"use strict";n.d(t,{Fo:function(){return o},gd:function(){return r},nw:function(){return i}});let r=["type","name","readAccess","size","health"],i="name",o=[{id:"name",label:"name",category:"general"},{id:"health",label:"health",category:"general"}]},19513:function(e,t,n){"use strict";n.d(t,{x:function(){return eu},l:function(){return el}});var r,i,o=n(52322),a=n(57362),s=n(9969),l=n(2784);let u=["allow","netAddress","publicKey","lastScan","lastAnnouncement","totalScans","uptime","hasContract","ap_usable","ap_scoreOverall"];var c=n(5632),d=n(88242),f=n(25205),h=n(19785),p=n(66700),m=n(88811);function v(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function g(e,t){return(0,h.Z)(2,arguments),function(e,t){(0,h.Z)(2,arguments);var n=(0,p.Z)(e).getTime(),r=v(t);return new Date(n+r)}(e,-v(t))}function y(e){(0,h.Z)(1,arguments);var t=(0,p.Z)(e),n=t.getUTCDay();return t.setUTCDate(t.getUTCDate()-((n<1?7:0)+n-1)),t.setUTCHours(0,0,0,0),t}function b(e){(0,h.Z)(1,arguments);var t=(0,p.Z)(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=y(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=y(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function x(e,t){(0,h.Z)(1,arguments);var n=t||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,o=null==i?0:v(i),a=null==n.weekStartsOn?o:v(n.weekStartsOn);if(!(a>=0&&a<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=(0,p.Z)(e),l=s.getUTCDay();return s.setUTCDate(s.getUTCDate()-((l=1&&l<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=new Date(0);u.setUTCFullYear(r+1,0,l),u.setUTCHours(0,0,0,0);var c=x(u,t),d=new Date(0);d.setUTCFullYear(r,0,l),d.setUTCHours(0,0,0,0);var f=x(d,t);return n.getTime()>=c.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function j(e,t){for(var n=Math.abs(e).toString();n.length0?n:1-n;return j("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):j(n+1,2)},d:function(e,t){return j(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return j(e.getUTCHours()%12||12,t.length)},H:function(e,t){return j(e.getUTCHours(),t.length)},m:function(e,t){return j(e.getUTCMinutes(),t.length)},s:function(e,t){return j(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length;return j(Math.floor(e.getUTCMilliseconds()*Math.pow(10,n-3)),t.length)}},E={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function S(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;return 0===o?n+String(i):n+String(i)+(t||"")+j(o,2)}function _(e,t){return e%60==0?(e>0?"-":"+")+j(Math.abs(e)/60,2):C(e,t)}function C(e,t){var n=e>0?"-":"+",r=Math.abs(e);return n+j(Math.floor(r/60),2)+(t||"")+j(r%60,2)}var O={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return k.y(e,t)},Y:function(e,t,n,r){var i=w(e,r),o=i>0?i:1-i;return"YY"===t?j(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):j(o,t.length)},R:function(e,t){return j(b(e),t.length)},u:function(e,t){return j(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return j(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return j(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return k.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return j(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=function(e,t){(0,h.Z)(1,arguments);var n=(0,p.Z)(e);return Math.round((x(n,t).getTime()-(function(e,t){(0,h.Z)(1,arguments);var n=t||{},r=n.locale,i=r&&r.options&&r.options.firstWeekContainsDate,o=null==i?1:v(i),a=null==n.firstWeekContainsDate?o:v(n.firstWeekContainsDate),s=w(e,t),l=new Date(0);return l.setUTCFullYear(s,0,a),l.setUTCHours(0,0,0,0),x(l,t)})(n,t).getTime())/6048e5)+1}(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):j(i,t.length)},I:function(e,t,n){var r=function(e){(0,h.Z)(1,arguments);var t=(0,p.Z)(e);return Math.round((y(t).getTime()-(function(e){(0,h.Z)(1,arguments);var t=b(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),y(n)})(t).getTime())/6048e5)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):j(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):k.d(e,t)},D:function(e,t,n){var r=function(e){(0,h.Z)(1,arguments);var t=(0,p.Z)(e),n=t.getTime();return t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),Math.floor((n-t.getTime())/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):j(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return j(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return j(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return j(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?E.noon:0===i?E.midnight:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?E.evening:i>=12?E.afternoon:i>=4?E.morning:E.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return k.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):k.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):j(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):j(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):k.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):k.s(e,t)},S:function(e,t){return k.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return _(i);case"XXXX":case"XX":return C(i);default:return C(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return _(i);case"xxxx":case"xx":return C(i);default:return C(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+S(i,":");default:return"GMT"+C(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+S(i,":");default:return"GMT"+C(i,":")}},t:function(e,t,n,r){return j(Math.floor((r._originalDate||e).getTime()/1e3),t.length)},T:function(e,t,n,r){return j((r._originalDate||e).getTime(),t.length)}};function M(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function T(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var A={p:T,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return M(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",M(i,t)).replace("{{time}}",T(o,t))}},P=n(1645),N=["D","DD"],R=["YY","YYYY"];function D(e,t,n){if("YYYY"===e)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var L=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Z=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,F=/^'([^]*?)'?$/,z=/''/g,V=/[a-zA-Z]/;function I(e,t,n){(0,h.Z)(2,arguments);var r=String(t),i=n||{},o=i.locale||m.Z,a=o.options&&o.options.firstWeekContainsDate,s=null==a?1:v(a),l=null==i.firstWeekContainsDate?s:v(i.firstWeekContainsDate);if(!(l>=1&&l<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=o.options&&o.options.weekStartsOn,c=null==u?0:v(u),d=null==i.weekStartsOn?c:v(i.weekStartsOn);if(!(d>=0&&d<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw RangeError("locale must contain localize property");if(!o.formatLong)throw RangeError("locale must contain formatLong property");var f=(0,p.Z)(e);if(!function(e){return(0,h.Z)(1,arguments),(!!function(e){return(0,h.Z)(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}(e)||"number"==typeof e)&&!isNaN(Number((0,p.Z)(e)))}(f))throw RangeError("Invalid time value");var y=(0,P.Z)(f),b=g(f,y),x={firstWeekContainsDate:l,weekStartsOn:d,locale:o,_originalDate:f};return r.match(Z).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,A[t])(e,o.formatLong,x):e}).join("").match(L).map(function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return n.match(F)[1].replace(z,"'");var a=O[r];if(a)return i.useAdditionalWeekYearTokens||-1===R.indexOf(n)||D(n,t,e),i.useAdditionalDayOfYearTokens||-1===N.indexOf(n)||D(n,t,e),a(b,n,o.localize,x);if(r.match(V))throw RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n}).join("")}var B=n(29193);function H(e){(0,h.Z)(1,arguments);var t=(0,p.Z)(e);return t.setHours(0,0,0,0),t}var U=n(848),W=n(95753),q=n(6391),$=n.n(q);let K=[{id:"actions",label:"",fixed:!0,category:"general",cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:t}=e;return(0,o.jsx)(U.G,{address:t.netAddress,publicKey:t.publicKey})}},{id:"allow",label:"allowed",category:"general",contentClassName:"justify-center",render:function(e){var t;let{data:n}=e,r=(0,s.s2)({config:{swr:{dedupingInterval:5e3}}}),i=!!(null===(t=r.data)||void 0===t?void 0:t.length);return(0,o.jsx)(a.ua7,{side:"right",content:(i?"Allowlist ".concat(n.isOnAllowlist?"allows this host.":"does not allow this host."):"Allowlist is inactive.")+" Blocklist ".concat(n.isOnBlocklist?"blocks this host.":"does not block this host."),children:(0,o.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:n.isBlocked?"red":"green",children:n.isBlocked?(0,o.jsx)(d.SmH,{}):(0,o.jsx)(d.DI$,{})})}),(0,o.jsxs)("div",{className:"flex flex-col",children:[(0,o.jsx)(a.xvT,{size:"10",color:n.isOnBlocklist?"red":"verySubtle",noWrap:!0,children:"Blocklist"}),(0,o.jsx)(a.xvT,{size:"10",color:i?n.isOnAllowlist?"green":"red":"verySubtle",noWrap:!0,children:"Allowlist"})]})]})})}},{id:"ap_usable",label:"usable",category:"autopilot",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.ua7,{side:"right",content:t.usable?"Host is usable":"Host is not usable",children:(0,o.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:t.usable?"green":"red",children:t.usable?(0,o.jsx)(d.DI$,{}):(0,o.jsx)(d.SmH,{})})}),(0,o.jsx)("div",{className:"flex flex-col",children:t.unusableReasons.map(e=>(0,o.jsx)(a.xvT,{size:"10",noWrap:!0,children:e},e))})]})}):(0,o.jsx)(a.ua7,{side:"right",content:"Autopilot is not configured",children:(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:"subtle",children:(0,o.jsx)(d.I98,{})})})})}},{id:"ap_gouging",label:"gouging",category:"autopilot",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.ua7,{side:"right",content:t.gouging?"Host is price gouging":"Host is not price gouging",children:(0,o.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:t.gouging?"red":"subtle",children:t.gouging?(0,o.jsx)(d.SmH,{}):(0,o.jsx)(d.I98,{})})}),(0,o.jsx)("div",{className:"flex flex-col",children:Object.entries(t.gougingBreakdown).filter(e=>{let[t,n]=e;return n&&"string"==typeof n}).map(e=>{let[t,n]=e;return(0,o.jsx)(a.xvT,{size:"10",noWrap:!0,children:n},t)})})]})}):(0,o.jsx)(a.ua7,{side:"right",content:"Autopilot is not configured",children:(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:"subtle",children:(0,o.jsx)(d.I98,{})})})})}},{id:"lastScan",label:"last scan",category:"general",render:function(e){let{data:t}=e,{workflows:n}=(0,W.D)(),r=n.find(e=>{var n;return e.path.startsWith(s.RF)&&(null===(n=e.payload)||void 0===n?void 0:n.hostKey)===t.publicKey});if(r)return(0,o.jsx)(a.xgg,{});let i=(0,B.Z)(new Date(t.lastScan||0),new Date,{addSuffix:!0}),l="",u=null,c="subtle";return t.lastScan||(l="host has not been scanned",u=(0,o.jsx)(d.I98,{}),c="subtle"),t.lastScan&&!t.lastScanSuccess&&(l="host scan failed ".concat(i),u=(0,o.jsx)(d.SmH,{}),c="red"),t.lastScan&&t.lastScanSuccess&&(l="host scan succeeded ".concat(i),u=(0,o.jsx)(d.DI$,{}),c="green"),(0,o.jsx)(a.ua7,{side:"right",content:l,children:(0,o.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:c,children:u})}),t.lastScan&&(0,o.jsxs)("div",{className:"flex flex-col",children:[(0,o.jsx)(a.xvT,{size:"12",noWrap:!0,children:i}),(0,o.jsx)(a.xvT,{color:"subtle",size:"10",noWrap:!0,children:I(new Date(t.lastScan),"Pp")})]})]})})}},{id:"hasContract",label:"active contract",category:"general",contentClassName:"w-[50px]",render:e=>{let{data:t}=e,n=t.activeContractsCount.gt(0);return(0,o.jsx)(a.ua7,{side:"right",content:n?"Host has active contract":"Host does not have an active contract",children:(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:n?"green":"subtle",children:n?(0,o.jsx)(d.DI$,{}):(0,o.jsx)(d.I98,{})})})})}},{id:"netAddress",label:"address",category:"general",render:e=>{let{data:t,context:n}=e;return(0,o.jsx)(a.XxW,{value:t.netAddress,size:"12",type:"hostIp",siascanUrl:n.siascanUrl})}},{id:"publicKey",label:"public key",category:"general",render:e=>{let{data:t,context:n}=e;return(0,o.jsx)(a.XxW,{value:t.publicKey,size:"12",type:"hostPublicKey",siascanUrl:n.siascanUrl})}},{id:"lastAnnouncement",label:"last announcement",category:"general",render:e=>{let{data:t}=e;return(0,o.jsxs)("div",{className:"flex flex-col",children:[(0,o.jsxs)(a.xvT,{size:"12",noWrap:!0,children:[(0,B.Z)(new Date,new Date(t.lastAnnouncement))," ago"]}),(0,o.jsx)(a.xvT,{color:"subtle",size:"10",noWrap:!0,children:function(e,t,n){(0,h.Z)(2,arguments);var r=(0,p.Z)(e),i=(0,p.Z)(t),o={},a=o.locale,s=void 0===a?m.Z:a,l=o.weekStartsOn,u=void 0===l?0:l;if(!s.localize)throw RangeError("locale must contain localize property");if(!s.formatLong)throw RangeError("locale must contain formatLong property");if(!s.formatRelative)throw RangeError("locale must contain formatRelative property");var c=function(e,t){(0,h.Z)(2,arguments);var n=H(e),r=H(t);return Math.round((n.getTime()-(0,P.Z)(n)-(r.getTime()-(0,P.Z)(r)))/864e5)}(r,i);if(isNaN(c))throw RangeError("Invalid time value");var d=g(r,(0,P.Z)(r)),f=g(i,(0,P.Z)(i));return I(r,s.formatRelative(c<-6?"other":c<-1?"lastWeek":c<0?"yesterday":c<1?"today":c<2?"tomorrow":c<7?"nextWeek":"other",d,f,{locale:s,weekStartsOn:u}),{locale:s,weekStartsOn:u})}(new Date(t.lastAnnouncement),new Date)})]})}},{id:"totalScans",label:"total scans",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,o.jsx)(a.m2c,{size:"12",value:t.totalScans,variant:"value",format:e=>(0,f.yF)(e.toNumber())})}},{id:"uptime",label:"uptime",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,o.jsx)(a.m2c,{size:"12",value:t.uptime.div(1e9).div(60).div(60).div(24),variant:"value",format:e=>(0,f.yF)(e,{fixed:e.isZero()?0:2,units:"days"})})}},{id:"downtime",label:"downtime",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,o.jsx)(a.m2c,{size:"12",value:t.downtime.div(1e9).div(60).div(60).div(24),variant:"value",format:e=>(0,f.yF)(e,{fixed:e.isZero()?0:2,units:"days"})})}},{id:"totalInteractions",label:"total interactions",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,o.jsx)(a.m2c,{size:"12",value:t.totalInteractions,variant:"value",format:e=>(0,f.yF)(e)})}},{id:"successfulInteractions",label:"successful interactions",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,o.jsx)(a.m2c,{size:"12",value:t.successfulInteractions,variant:"value",format:e=>(0,f.yF)(e.toNumber())})}},{id:"failedInteractions",label:"failed interactions",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,o.jsx)(a.m2c,{size:"12",value:t.failedInteractions,variant:"value",format:e=>(0,f.yF)(e.toNumber())})}},{id:"contractCount",label:"contract count",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,o.jsx)(a.m2c,{size:"12",value:t.activeContractsCount,variant:"value",format:e=>(0,f.yF)(e.toNumber())})}},{id:"ap_scoreOverall",label:"overall score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.m2c,{size:"12",value:t.score,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreAge",label:"age score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.age,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreCollateral",label:"collateral score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.collateral,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreInteractions",label:"interactions score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.interactions,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scorePrices",label:"prices score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.prices,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreStorageRemaining",label:"storage remaining score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.storageRemaining,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreUptime",label:"uptime score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.uptime,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreVersion",label:"version score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.version,variant:"value",format:e=>n.isAutopilotConfigured?"-":e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"hpt_accountbalancecost",label:"account balance cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","accountbalancecost")},{id:"hpt_collateralcost",label:"collateral cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","collateralcost")},{id:"hpt_contractprice",label:"contract price",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","contractprice")},{id:"hpt_downloadbandwidthcost",label:"download bandwidth cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","downloadbandwidthcost")},{id:"hpt_dropsectorsbasecost",label:"drop sectors base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","dropsectorsbasecost")},{id:"hpt_dropsectorsunitcost",label:"drop sectors unit cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","dropsectorsunitcost")},{id:"hpt_expiry",label:"expiry",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","dropsectorsunitcost")},{id:"hpt_fundaccountcost",label:"fund account cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","fundaccountcost")},{id:"hpt_hassectorbasecost",label:"has sector cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","hassectorbasecost")},{id:"hpt_hostblockheight",label:"host block height",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","hostblockheight")},{id:"hpt_initbasecost",label:"init base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","initbasecost")},{id:"hpt_latestrevisioncost",label:"latest revision cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","latestrevisioncost")},{id:"hpt_maxcollateral",label:"max collateral",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","maxcollateral")},{id:"hpt_maxduration",label:"max duration",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","maxduration")},{id:"hpt_memorytimecost",label:"memory time cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","memorytimecost")},{id:"hpt_readbasecost",label:"read base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","readbasecost")},{id:"hpt_readlengthcost",label:"read length cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","readlengthcost")},{id:"hpt_registryentriesleft",label:"registry entries left",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","registryentriesleft")},{id:"hpt_registryentriestotal",label:"registry entries total",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","registryentriestotal")},{id:"hpt_renewcontractcost",label:"renew contract cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","renewcontractcost")},{id:"hpt_revisionbasecost",label:"revision base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","renewcontractcost")},{id:"hpt_subscriptionmemorycost",label:"subscription memory cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","subscriptionmemorycost")},{id:"hpt_subscriptionnotificationcost",label:"subscription notification cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","subscriptionnotificationcost")},{id:"hpt_swapsectorcost",label:"swap sector cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","swapsectorcost")},{id:"hpt_txnfeemaxrecommended",label:"txn fee max recommended",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","txnfeemaxrecommended")},{id:"hpt_txnfeeminrecommended",label:"txn fee min recommended",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","txnfeeminrecommended")},{id:"hpt_uid",label:"UID",category:"priceTable",contentClassName:"w-[120px] justify-end",render:X("priceTable","uid")},{id:"hpt_updatepricetablecost",label:"update price table cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","updatepricetablecost")},{id:"hpt_uploadbandwidthcost",label:"upload bandwidth cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","uploadbandwidthcost")},{id:"hpt_validity",label:"validity",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","validity")},{id:"hpt_windowsize",label:"window size",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","windowsize")},{id:"hpt_writebasecost",label:"write base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","writebasecost")},{id:"hpt_writelengthcost",label:"write length cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","writelengthcost")},{id:"hpt_writestorecost",label:"write store cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","writestorecost")},{id:"hs_acceptingcontracts",label:"accepting contracts",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:(r="settings",i="acceptingcontracts",function(e){let{data:t}=e;return t[r]?(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:t[r][i]?"green":"red",children:t[r][i]?(0,o.jsx)(d.DI$,{}):(0,o.jsx)(d.SmH,{})})}):null})},{id:"hs_baserpcprice",label:"base RPC price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","baserpcprice")},{id:"hs_collateral",label:"collateral",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","collateral")},{id:"hs_contractprice",label:"contract price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","contractprice")},{id:"hs_downloadbandwidthprice",label:"download bandwidth price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","downloadbandwidthprice")},{id:"hs_ephemeralaccountexpiry",label:"ephemeral account expiry",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:G("settings","ephemeralaccountexpiry")},{id:"hs_maxcollateral",label:"max collateral",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","maxcollateral")},{id:"hs_maxdownloadbatchsize",label:"max download batch size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Q("settings","maxdownloadbatchsize")},{id:"hs_maxduration",label:"max duration",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:G("settings","maxduration")},{id:"hs_maxephemeralaccountbalance",label:"max ephemeral account balance",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","maxephemeralaccountbalance")},{id:"hs_maxrevisebatchsize",label:"max revise batch size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Q("settings","maxrevisebatchsize")},{id:"hs_netaddress",label:"net address",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:X("settings","netaddress")},{id:"hs_remainingstorage",label:"remaining storage",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Q("settings","remainingstorage")},{id:"hs_revisionnumber",label:"revision number",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:G("settings","revisionnumber")},{id:"hs_sectoraccessprice",label:"sector access price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","sectoraccessprice")},{id:"hs_sectorsize",label:"sector size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Q("settings","sectorsize")},{id:"hs_siamuxport",label:"siamux port",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:G("settings","siamuxport")},{id:"hs_storageprice",label:"storage price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","storageprice")},{id:"hs_totalstorage",label:"total storage",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Q("settings","totalstorage")},{id:"hs_unlockhash",label:"unlock hash",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:X("settings","unlockhash")},{id:"hs_uploadbandwidthprice",label:"upload bandwidth price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","uploadbandwidthprice")},{id:"hs_version",label:"verison",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:X("settings","version")},{id:"hs_windowsize",label:"window size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:G("settings","windowsize")}].map(e=>({...e,..."autopilot"===e.category?{icon:(0,o.jsx)(d.n6M,{className:"relative opacity-50 scale-75"}),label:e.label,tip:"autopilot: ".concat(e.label)}:"hostSettings"===e.category?{icon:(0,o.jsx)(d.shL,{className:"relative top-px opacity-50 scale-75"}),label:e.label,tip:"host settings (RHPv2): ".concat(e.label)}:"priceTable"===e.category?{icon:(0,o.jsx)(d.B4q,{className:"relative top-px opacity-50 scale-75"}),label:e.label,tip:"price table (RHPv3): ".concat(e.label)}:{label:e.label,tip:e.label}}));function Y(e,t){return(0,l.memo)(function(n){let{data:r}=n;return r[e]?(0,o.jsx)(a.ho9,{displayBoth:!0,size:"12",value:new($())(r[e][t]||0),fixedFiat:4,variant:"value"}):null})}function G(e,t,n){return function(r){let{data:i}=r;return i[e]?(0,o.jsx)(a.m2c,{size:"12",value:new($())(i[e][t]||0),variant:"value",format:e=>(0,f.yF)(e,{abbreviated:n})}):null}}function X(e,t){return function(n){let{data:r}=n;return r[e]?(0,o.jsx)(a.XxW,{value:r[e][t],size:"12"}):null}}function Q(e,t){return function(n){let{data:r}=n;return r[e]?(0,o.jsx)(a.xvT,{size:"12",weight:"semibold",ellipsis:!0,children:(0,f.vW)(r[e][t])}):null}}var J=n(26592);function ee(e,t){return{id:e.publicKey,netAddress:e.netAddress,publicKey:e.publicKey,lastScanSuccess:e.interactions.lastScanSuccess,lastScan:"0001-01-01T00:00:00Z"===e.interactions.lastScan?null:e.interactions.lastScan,knownSince:"0001-01-01T00:00:00Z"===e.knownSince?null:e.knownSince,lastAnnouncement:"0001-01-01T00:00:00Z"===e.lastAnnouncement?null:e.lastAnnouncement,uptime:new($())(e.interactions.uptime||0),downtime:new($())(e.interactions.downtime||0),successfulInteractions:new($())(e.interactions.successfulInteractions||0),totalInteractions:new($())(e.interactions.successfulInteractions+e.interactions.failedInteractions||0),failedInteractions:new($())(e.interactions.failedInteractions||0),totalScans:new($())(e.interactions.totalScans||0),activeContractsCount:new($())((null==t?void 0:t.filter(t=>t.hostKey===e.publicKey).length)||0),activeContracts:(null==t?void 0:t.filter(t=>t.hostKey===e.publicKey))||[],priceTable:e.priceTable,settings:e.settings}}function et(e){let{host:t,allowlist:n,blocklist:r,isAllowlistActive:i}=e,o=!!(null==n?void 0:n.find(e=>e===t.publicKey)),a=!!(null==r?void 0:r.find(e=>{if(e===t.netAddress)return!0;try{let n=new URL("https://"+t.netAddress).hostname;return e===n}catch(e){return!1}}));return{isOnAllowlist:o,isOnBlocklist:a,isBlocked:a||!(!i||o)}}function en(e){return{score:new($())((null==e?void 0:e.score)||0),scoreBreakdown:{age:new($())((null==e?void 0:e.scoreBreakdown.age)||0),collateral:new($())((null==e?void 0:e.scoreBreakdown.collateral)||0),interactions:new($())((null==e?void 0:e.scoreBreakdown.interactions)||0),prices:new($())((null==e?void 0:e.scoreBreakdown.prices)||0),storageRemaining:new($())((null==e?void 0:e.scoreBreakdown.storageRemaining)||0),uptime:new($())((null==e?void 0:e.scoreBreakdown.uptime)||0),version:new($())((null==e?void 0:e.scoreBreakdown.version)||0)},gougingBreakdown:(null==e?void 0:e.gougingBreakdown)||{},gouging:null==e?void 0:e.gouging,unusableReasons:(null==e?void 0:e.unusableReasons)||[],usable:null==e?void 0:e.usable}}var er=n(91641),ei=n(34444),eo=n(9455),ea=n(20189);let es=(0,l.createContext)({}),el=()=>(0,l.useContext)(es);function eu(e){let{children:t}=e,n=function(){var e,t,n,r,i,o,d;let f=(0,c.useRouter)(),[h,p]=(0,l.useState)("list"),m=Number(f.query.limit||50),v=Number(f.query.offset||0),{filters:g,setFilter:y,removeFilter:b,removeLastFilter:x,resetFilters:w}=(0,a.Uu5)(),{dataset:j}=(0,J.G)(),{autopilot:k}=(0,er.q)(),E=(0,l.useMemo)(()=>{let e=[];g.find(e=>"hasActiveContracts"===e.id)&&j&&(e=j.map(e=>e.hostKey));let t=g.find(e=>"publicKeyEquals"===e.id);return t&&e.push(null==t?void 0:t.value),e.length?e:void 0},[g,j]),S=(0,s.S0)({disabled:g.find(e=>"hasActiveContracts"===e.id)&&!j||"on"!==k.status,payload:{limit:m,offset:v,usabilityMode:(null===(e=g.find(e=>"usabilityMode"===e.id))||void 0===e?void 0:e.value)||"all",filterMode:(null===(t=g.find(e=>"filterMode"===e.id))||void 0===t?void 0:t.value)||"all",addressContains:null===(n=g.find(e=>"addressContains"===e.id))||void 0===n?void 0:n.value,keyIn:E},config:{swr:{errorRetryInterval:2e4,refreshInterval:(0,a.sWj)(1)}}}),_=(0,s.FV)({disabled:"off"!==k.status,payload:{limit:m,offset:v,filterMode:(null===(r=g.find(e=>"filterMode"===e.id))||void 0===r?void 0:r.value)||"all",addressContains:null===(i=g.find(e=>"addressContains"===e.id))||void 0===i?void 0:i.value,keyIn:g.find(e=>"hasActiveContracts"===e.id)&&j?j.map(e=>e.hostKey):void 0},config:{swr:{refreshInterval:(0,a.sWj)(1)}}}),C=(0,s.s2)(),O=(0,s.uf)(),M=!!(null===(o=C.data)||void 0===o?void 0:o.length),{settings:T}=(0,W.Hv)(),A=(0,eo.JL)({disabled:!T.siaCentral,config:{swr:{revalidateOnFocus:!1}}});(0,l.useEffect)(()=>{T.siaCentral||p("list")},[T.siaCentral]);let P=(0,l.useMemo)(()=>{var e;return(null===(e=A.data)||void 0===e?void 0:e.hosts)||[]},[A.data]),N=(0,l.useRef)(ei.N),R=(0,l.useCallback)(e=>{N.current=e},[N]),[D,L]=(0,l.useState)(),Z=(0,l.useCallback)(e=>{let t=document.getElementById(e),n=document.getElementById("scroll-hosts");t&&n&&n.scroll({top:t.offsetTop-50,behavior:"smooth"})},[]),F=(0,l.useCallback)((e,t)=>{if(D===e){L(void 0);return}L(e),t&&N.current.moveToLocation(t),Z(e)},[L,N,D,Z]),z=(0,l.useCallback)((e,t)=>{if(D===e){L(void 0);return}L(e),t?N.current.moveToLocation(t):(0,a.OHV)("Geographic location is unknown for host ".concat((0,a.$Gg)(e,20))),Z(e)},[L,N,D,Z]),V=(0,l.useCallback)((e,t)=>null,[]),I=function(e){let{autopilotStatus:t,regularResponse:n,autopilotResponse:r,allContracts:i,allowlist:o,blocklist:a,isAllowlistActive:s,geoHosts:u,onHostSelect:c}=e;return(0,l.useMemo)(()=>{var e,l;return"off"===t?(null===(e=n.data)||void 0===e?void 0:e.map(e=>{let t=u.find(t=>t.public_key===e.publicKey);return{onClick:()=>c(e.publicKey,null==t?void 0:t.location),...ee(e,i),...et({host:e,allowlist:o.data,blocklist:a.data,isAllowlistActive:s}),...en(),location:null==t?void 0:t.location,countryCode:null==t?void 0:t.country_code}}))||null:"on"===t&&(null===(l=r.data)||void 0===l?void 0:l.map(e=>{let t=u.find(t=>t.public_key===e.host.publicKey);return{onClick:()=>c(e.host.publicKey,null==t?void 0:t.location),...ee(e.host,i),...et({host:e.host,allowlist:o.data,blocklist:a.data,isAllowlistActive:s}),...en(e.checks),location:null==t?void 0:t.location,countryCode:null==t?void 0:t.country_code}}))||null},[c,t,n.data,r.data,i,o.data,a.data,s,u])}({autopilotStatus:k.status,autopilotResponse:S,regularResponse:_,allContracts:j,allowlist:C,blocklist:O,isAllowlistActive:M,geoHosts:P,onHostSelect:z}),B=(0,l.useMemo)(()=>"off"===k.status?["autopilot"]:[],[k.status]),{configurableColumns:H,enabledColumns:U,toggleColumnVisibility:q,setColumnsVisible:$,setColumnsHidden:Y,toggleSort:G,setSortDirection:X,setSortField:Q,sortField:es,sortDirection:el,resetDefaultColumnVisibility:eu}=(0,a.oy6)("renterd/v0/hosts",{columns:K,columnsDefaultVisible:u,disabledCategories:B}),ec=(0,l.useMemo)(()=>K.filter(e=>U.includes(e.id)),[U]),ed="on"===k.status?S.isValidating:_.isValidating,ef="on"===k.status?S.error:_.error,eh=(0,a.c2j)(I,ed,ef,g),ep=(0,ea.B)(),em=null===(d=k.state.data)||void 0===d?void 0:d.configured,ev=(0,l.useMemo)(()=>({isAutopilotConfigured:em,siascanUrl:ep}),[em,ep]),eg=(0,l.useMemo)(()=>null==I?void 0:I.filter(e=>e.location),[I]),ey=(0,l.useMemo)(()=>null==I?void 0:I.find(e=>e.publicKey===D),[I,D]);return{setCmd:R,viewMode:h,activeHost:ey,onHostMapHover:V,onHostMapClick:F,setViewMode:p,hostsWithLocation:eg,error:ef,dataState:eh,offset:v,limit:m,pageCount:(null==I?void 0:I.length)||0,columns:ec,dataset:I,tableContext:ev,configurableColumns:H,enabledColumns:U,toggleColumnVisibility:q,setColumnsVisible:$,setColumnsHidden:Y,toggleSort:G,setSortDirection:X,setSortField:Q,sortField:es,sortDirection:el,resetDefaultColumnVisibility:eu,filters:g,setFilter:y,removeFilter:b,removeLastFilter:x,resetFilters:w}}();return(0,o.jsx)(es.Provider,{value:n,children:t})}},10917:function(e,t,n){"use strict";n.d(t,{Kg:function(){return o},jY:function(){return i}});var r=n(57362);let i={activeAndUsable:{colorHex:r.O9T.green[600],colorName:"green"},activeAndUnusable:{colorHex:r.O9T.amber[600],colorName:"amber"},potentialHost:{colorHex:r.O9T.blue[600],colorName:"blue"}};function o(e){return e.activeContractsCount.gt(0)&&!e.usable?{status:"activeAndUnusable",...i.activeAndUnusable}:e.activeContractsCount.gt(0)?{status:"activeAndUsable",...i.activeAndUsable}:{status:"potentialHost",...i.potentialHost}}},63171:function(e,t,n){"use strict";n.d(t,{n:function(){return p},v:function(){return m}});var r=n(52322),i=n(57362),o=n(9969),a=n(2784),s=n(86811),l=n(6391),u=n.n(l),c=n(5632),d=n(20189);let f=[],h=(0,a.createContext)({}),p=()=>(0,a.useContext)(h);function m(e){let{children:t}=e,n=function(){let e=(0,c.useRouter)(),t=Number(e.query.limit||50),n=Number(e.query.offset||0),r=(0,o.Qq)({params:{limit:t,offset:n},config:{swr:{refreshInterval:(0,i.XBW)(60)}}}),l=(0,o.a0)({config:{swr:{refreshInterval:(0,i.XBW)(60)}}}),{openDialog:h}=(0,s.Rh)(),p=(0,d.B)(),m=(0,a.useMemo)(()=>l.data&&r.data?[...(l.data||[]).map(e=>({type:"transaction",txType:(0,i.leQ)(e),unconfirmed:!0,siascanUrl:p})),...(r.data||[]).map(e=>({type:"transaction",txType:(0,i.leQ)(e.raw),hash:(0,i.I13)(e.id),timestamp:new Date(e.timestamp).getTime(),onClick:()=>h("transactionDetails",(0,i.I13)(e.id)),raw:e.raw,inflow:e.inflow,outflow:e.outflow,sc:new(u())(e.inflow).minus(e.outflow),siascanUrl:p})).sort((e,t)=>e.timestamp{let e=new Date().getTime(),t=30*y;return new Date(e-t).toISOString()},[30,y]),x=(0,o.X1)({params:{start:b,interval:y,n:30}}),w=(0,a.useMemo)(()=>(x.data||[]).map(e=>({sc:new(u())(e.spendable).plus(e.unconfirmed).toNumber(),timestamp:new Date(e.timestamp).getTime()})).sort((e,t)=>e.timestamp>=t.timestamp?1:-1),[x.data]);return{dataset:m,error:v,dataState:g,offset:n,limit:t,pageCount:(null==m?void 0:m.length)||0,balances:w,metrics:x}}();return(0,r.jsx)(h.Provider,{value:n,children:t})}},33571:function(e,t,n){"use strict";n.d(t,{I:function(){return a}});var r=n(57362),i=n(9969),o=n(2784);function a(){let e=(0,i.ni)();return(0,o.useCallback)((t,n)=>{let i=async()=>{let i=await e.put({payload:{add:t,remove:n}});return i.error?((0,r.OHV)(i.error),!1):(t.length&&(0,r.RFt)("".concat(t.map(e=>(0,r.$Gg)(e,20)).join(", ")," added to allowlist")),n.length&&(0,r.RFt)("".concat(n.map(e=>(0,r.$Gg)(e,20)).join(", ")," removed from allowlist")),!0)};return i()},[e])}},98358:function(e,t,n){"use strict";n.d(t,{l:function(){return a}});var r=n(57362),i=n(9969),o=n(2784);function a(){let e=(0,i.Os)();return(0,o.useCallback)((t,n)=>{let i=async()=>{let i=await e.put({payload:{add:t,remove:n}});return i.error?((0,r.OHV)(i.error),!1):(t.length&&(0,r.RFt)("".concat(t.map(e=>(0,r.$Gg)(e,20)).join(", ")," added to blocklist")),n.length&&(0,r.RFt)("".concat(n.map(e=>(0,r.$Gg)(e,20)).join(", ")," removed from blocklist")),!0)};return i()},[e])}},80489:function(e,t,n){"use strict";n.d(t,{a:function(){return i}});var r=n(9969);function i(e){return(0,r.yu)({...e,params:{key:"contractset"}})}},82439:function(e,t,n){"use strict";n.d(t,{B:function(){return a},V:function(){return o}});var r=n(52322),i=n(88242);let o={excellent:1,good:.5,poor:0};function a(e){let{health:t,size:n,isDirectory:a}=e,s="excellent",l="green",u=t,c=(0,r.jsx)(i.Y3p,{});return t1&&(u=1),t<0&&(u=0),{label:s+" health",color:l,icon:c,displayHealth:u}}},34658:function(e,t,n){"use strict";n.d(t,{w:function(){return i}});var r=n(9969);function i(e){return(0,r.yu)({...e,params:{key:"redundancy"}})}},20189:function(e,t,n){"use strict";n.d(t,{B:function(){return o}});var r=n(57362),i=n(9969);function o(){var e;let t=(0,i.d_)();return(null===(e=t.data)||void 0===e?void 0:e.network)==="Zen Testnet"?r.nNd.explore.testnetZen:r.nNd.explore.mainnet}},25573:function(e,t,n){"use strict";n.d(t,{n:function(){return a}});var r=n(57362),i=n(95753),o=n(9969);function a(){var e,t,n,a;let{isUnlockedAndAuthedRoute:s}=(0,i.Hv)(),l=(0,o.DQ)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.synced)?(0,r.XBW)(60):(0,r.XBW)(10)}}}),u=(0,o.nH)(),c=l.data?null===(e=l.data)||void 0===e?void 0:e.blockHeight:0,d=(0,o.X2)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.scanHeight)>=c?(0,r.XBW)(60):(0,r.XBW)(10)}}}),f=s&&c&&u?Number((100*Math.min(c/u,1)).toFixed(1)):0,h=s&&c&&d.data?Number((100*Math.min(d.data.scanHeight/u,1)).toFixed(1)):0;return{isSynced:null===(t=l.data)||void 0===t?void 0:t.synced,isWalletSynced:(null===(n=l.data)||void 0===n?void 0:n.synced)&&(null===(a=d.data)||void 0===a?void 0:a.scanHeight)>=c-1,nodeBlockHeight:c,estimatedBlockHeight:u,syncPercent:f,walletScanPercent:h,moreThan100BlocksToSync:!!c&&!!u&&u-c>100,firstTimeSyncing:!!c&&!!u&&u-c>5e4}}},73221:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return R}});var r=n(52322);n(37832);var i=n(57362),o=n(86811),a=n(48528),s=n(26592),l=n(19513),u=n(2784),c=n(91641),d=n(19847),f=n(88242),h=n(25573),p=n(71930),m=n(4370),v=n(9969),g=n(6391),y=n.n(g),b=n(25205),x=n(95753),w=n(92762);function j(){var e,t;let{isUnlockedAndAuthedRoute:n}=(0,x.Hv)(),a=(0,c.q)(),{openDialog:s}=(0,o.Rh)(),l=(0,v.X2)(),u=(0,v.e$)({config:{swr:{errorRetryInterval:1e4}}}),[d,g]=(0,w.Z)("v0/renterd/onboarding/maximized",{defaultValue:!0}),j=(0,h.n)(),E=(0,m.F)();if(!n||"on"!==a.autopilot.status)return null;let S=new(y())(l.data?l.data.confirmed+l.data.unconfirmed:0),_=new(y())((null===(e=u.data)||void 0===e?void 0:e.contracts.allowance)||0),C=null===(t=a.autopilot.state.data)||void 0===t?void 0:t.configured,O=j.isSynced,M=S.gt(0),T=!E.active,A=[C,O,M,T],P=A.length,N=A.filter(e=>e).length;return P===N?null:d?(0,r.jsx)("div",{className:"z-20 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsx)(i.s_4,{className:"w-[400px] flex flex-col max-h-[600px]",children:(0,r.jsxs)(i.xrM,{children:[(0,r.jsxs)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)(i.TRl,{}),(0,r.jsx)(i.xvT,{size:"20",weight:"semibold",children:"Welcome to Sia"})]}),(0,r.jsx)(i.zxk,{variant:"ghost",onClick:()=>g(!1),children:(0,r.jsx)(f.mli,{})})]}),(0,r.jsx)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:(0,r.jsx)(i.xvT,{size:"14",children:"Get set up by completing the following steps. Once they are complete, you can start uploading files."})}),(0,r.jsx)(k,{title:(0,r.jsx)(i.rUS,{href:p._.config.index,ellipsis:!0,size:"14",underline:"hover",children:"Step 1: Configure your storage settings"}),description:"Specify how much data you plan to store and your target price.",action:C?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(f.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.rUS,{href:p._.config.index,children:(0,r.jsx)(f.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(f.Fs9,{})})]})}),(0,r.jsx)(k,{title:(0,r.jsx)(i.rUS,{href:p._.node.index,underline:"hover",ellipsis:!0,size:"14",children:"Step 2: Wait for the blockchain to sync"}),description:"The blockchain will sync in the background, this takes some time. No user action required.",action:O?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(f.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.xvT,{ellipsis:!0,size:"14",children:[j.syncPercent,"%"]}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(f.hzZ,{})})]})}),(0,r.jsx)(k,{title:(0,r.jsx)(i.rUS,{href:p._.wallet.view,onClick:()=>s("addressDetails"),ellipsis:!0,size:"14",underline:"hover",children:"Step 3: Fund your wallet"}),description:"Fund your wallet with at least ".concat((0,b.Vz)(_)," siacoin to cover the required allowance.").concat(j.isWalletSynced?"":" Balance will not be accurate until wallet is finished scanning."),action:M?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(f.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[!j.isWalletSynced&&(0,r.jsx)(i.ua7,{content:"Wallet scanning progress ".concat(j.walletScanPercent,"%"),children:(0,r.jsxs)(i.xvT,{size:"14",children:[j.walletScanPercent,"%"]})}),(0,r.jsx)(i.rUS,{href:p._.wallet.view,onClick:()=>s("addressDetails"),children:(0,r.jsx)(f.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(f.Fs9,{})})]})}),(0,r.jsx)(k,{title:(0,r.jsx)(i.rUS,{href:p._.contracts.index,ellipsis:!0,size:"14",underline:"hover",children:"Step 4: Wait for storage contracts to form"}),description:"Once all other steps are complete, contracts will automatically form. No user action required.",action:T?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(f.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.xvT,{ellipsis:!0,size:"14",children:[E.count,"/",E.required]}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(f.hzZ,{})})]})})]})})}):(0,r.jsx)("div",{className:"z-30 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsx)(i.zxk,{onClick:()=>g(!0),size:"large",className:"flex gap-3 !px-3",children:(0,r.jsxs)(i.xvT,{className:"flex items-center gap-1",children:[(0,r.jsx)(i.TRl,{}),"Setup: ",N,"/",P," steps complete"]})})})}function k(e){let{title:t,action:n,description:o}=e;return(0,r.jsx)("div",{className:"border-t first:border-t-0 border-gray-200 dark:border-graydark-300 px-3 py-2",children:(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)("div",{className:"flex-1 flex items-center",children:t}),n]}),(0,r.jsx)("div",{className:"pr-5",children:(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:o})})]})})}function E(e){return void 0!==e.loaded?e.loaded/e.size:1}function S(){let{isUnlockedAndAuthedRoute:e}=(0,x.Hv)(),{uploadsList:t,uploadCancel:n,downloadsList:o,downloadCancel:s}=(0,a.Y)(),[l,c]=(0,u.useState)(!0),d=t.length,h=o.length;return e&&(0!==d||0!==h)?l?(0,r.jsx)("div",{className:"z-30 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsx)(i.s_4,{className:"w-[400px] flex flex-col max-h-[600px]",children:(0,r.jsxs)(i.xrM,{children:[d>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:[(0,r.jsxs)(i.xvT,{size:"16",weight:"semibold",children:["Active uploads (",d,")"]}),(0,r.jsx)(i.zxk,{variant:"ghost",onClick:()=>c(!1),children:(0,r.jsx)(f.mli,{})})]}),t.map(e=>{let t=E(e);return(0,r.jsxs)("div",{className:"flex flex-col gap-1 border-t first:border-t-0 border-gray-200 dark:border-graydark-300 px-3 py-2",children:[(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(i.xvT,{ellipsis:!0,size:"14",className:"flex-1",children:e.path}),(0,r.jsx)(i.zxk,{tip:"Cancel file upload",variant:"ghost",size:"none",onClick:()=>n(e),children:(0,r.jsx)(f.PcV,{})})]}),(0,r.jsx)(i.kod,{variant:"accent",value:e.loaded,max:e.size,className:1===t?"animate-pulse":""}),(0,r.jsxs)("div",{className:"flex justify-between mt-1",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:1===t?"Processing":"Uploading"}),(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",children:[(100*t).toFixed(0),"%"]})]})]},e.path)})]}):null,h>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:[(0,r.jsxs)(i.xvT,{size:"16",weight:"semibold",children:["Active downloads (",h,")"]}),0===d?(0,r.jsx)(i.zxk,{variant:"ghost",onClick:()=>c(!1),children:(0,r.jsx)(f.mli,{})}):null]}),o.map(e=>{let t=E(e);return(0,r.jsxs)("div",{className:"flex flex-col gap-1 border-t first:border-t-0 border-gray-200 dark:border-graydark-300 px-3 py-2",children:[(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(i.xvT,{ellipsis:!0,size:"14",className:"flex-1",children:e.path}),(0,r.jsx)(i.zxk,{tip:"Cancel file download",variant:"ghost",size:"none",onClick:()=>s(e),children:(0,r.jsx)(f.PcV,{})})]}),(0,r.jsx)(i.kod,{variant:"accent",value:e.loaded,max:e.size,className:1===t?"animate-pulse":""}),(0,r.jsxs)("div",{className:"flex justify-between mt-1",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:1===t?"Processing":"Downloading"}),(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",children:[(100*t).toFixed(0),"%"]})]})]},e.path)})]}):null]})})}):(0,r.jsx)("div",{className:"z-30 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsxs)(i.zxk,{onClick:()=>c(!0),className:"flex gap-3",children:[(0,r.jsx)(i.xgg,{}),d?(0,r.jsxs)(i.xvT,{className:"flex gap-1",children:[d,(0,r.jsx)(f.R$6,{className:"opacity-50 scale-75 relative top-px"})]}):null,h?(0,r.jsxs)(i.xvT,{className:"flex gap-1",children:[h&&h,(0,r.jsx)(f.vzB,{className:"opacity-50 scale-75"})]}):null]})}):null}var _=n(63171);function C(e){let{children:t}=e;return(0,r.jsx)(c.w,{children:(0,r.jsx)(d.iV,{children:(0,r.jsx)(o.Tu,{children:(0,r.jsx)(_.v,{children:(0,r.jsx)(s.x,{children:(0,r.jsx)(l.x,{children:(0,r.jsxs)(a.Z,{children:[(0,r.jsx)(j,{}),(0,r.jsx)(S,{}),(0,r.jsx)(o.xQ,{}),t]})})})})})})})}var O=n(1240),M=n.n(O),T=n(49854),A=n.n(T),P=n(82851);let N=(0,P.cx)(M().variable,A().variable);function R(e){let{Component:t,pageProps:n}=e;return(0,r.jsx)(i.PD$,{className:N,fallback:n.fallback,passwordProtectRequestHooks:!0,lockRoutes:p._,children:(0,r.jsx)(C,{children:(0,r.jsx)(t,{...n})})})}},57362:function(e,t,n){"use strict";let r,i,o,a;n.d(t,{UQy:function(){return ly},vF:function(){return lj},Qdk:function(){return lw},o48:function(){return lb},hcY:function(){return _$},tU3:function(){return _H},zXq:function(){return _6},juT:function(){return _m},Cts:function(){return lF},Z58:function(){return CF},WVB:function(){return cQ},zxk:function(){return lv},b0u:function(){return k8},EKh:function(){return lI},vRO:function(){return Oh},QHy:function(){return Ot},TaT:function(){return C$},eQh:function(){return lH},HfT:function(){return Oi},wEc:function(){return CV},ncR:function(){return S3},VqE:function(){return ux},h_2:function(){return c4},Xiv:function(){return c3},Juw:function(){return c5},KpP:function(){return c6},fhJ:function(){return pJ},XOF:function(){return S4},S$c:function(){return _o},WyV:function(){return Om},QBj:function(){return Op},yEL:function(){return _4},cB7:function(){return _e},ZqQ:function(){return S9},IKw:function(){return _a},KZS:function(){return _t},zsw:function(){return pi},__J:function(){return dl},rUS:function(){return dd},Qjf:function(){return df},xgg:function(){return k5},TRl:function(){return dp},kFS:function(){return cJ},FzK:function(){return C7},Clw:function(){return cX},PD$:function(){return Ow},Wxm:function(){return ht},uDJ:function(){return _l},wFK:function(){return _u},s_4:function(){return na},nvN:function(){return ni},u5Q:function(){return Cz},j4H:function(){return f8},hmz:function(){return f7},J2e:function(){return dL},kod:function(){return dG},xrM:function(){return ug},PhF:function(){return he},Z0O:function(){return cq},DLL:function(){return CM},KJW:function(){return _y},rsf:function(){return hg},D_D:function(){return Cb},iA_:function(){return _s},mQc:function(){return fE},nUL:function(){return fC},drW:function(){return fS},SPt:function(){return f_},t6k:function(){return Oo},xvT:function(){return nr},nvn:function(){return fM},ua7:function(){return lp},mPE:function(){return Cx},XxW:function(){return Sw},PF9:function(){return Sk},m2c:function(){return SM},YKL:function(){return SS},ho9:function(){return SO},QUh:function(){return CA},weF:function(){return Ca},YNn:function(){return Ck},DmW:function(){return CE},O9T:function(){return v2},fVJ:function(){return CD},vQq:function(){return Su},E5z:function(){return Sc},HLH:function(){return OV},NrH:function(){return k$},k9c:function(){return kJ},Y_Z:function(){return CP},EJC:function(){return OF},kOJ:function(){return CR},leQ:function(){return Sp},Ztc:function(){return Cv},XAn:function(){return k0},Vkc:function(){return cK},sWj:function(){return kq},ort:function(){return k1},xLV:function(){return kY},okB:function(){return kQ},AEA:function(){return kX},z$:function(){return no},XBW:function(){return k4},GXN:function(){return k2},I13:function(){return Sf},cEb:function(){return fO},y70:function(){return fQ},OHV:function(){return Sa},OPV:function(){return So},RFt:function(){return Sr},$Gg:function(){return Sd},_4u:function(){return OR},Wdu:function(){return ON},Y97:function(){return _B},c2j:function(){return _U},mYE:function(){return Og},u$d:function(){return Oy},Z4p:function(){return Ov},WsO:function(){return _2},Uu5:function(){return OD},fb0:function(){return OZ},oy6:function(){return OP},nNd:function(){return CS},BL0:function(){return kK},ivg:function(){return kG}});var s,l,u,c,d,f,h,p,m,v,g,y,b,x,w,j,k,E,S,_,C,O,M,T=n(52322),A=n(2784),P=n.t(A,2),N=n(7896),R=n(34540),D=n(26215),L=n(99575);function Z(e){let t=e+"CollectionProvider",[n,r]=(0,R.b)(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=A.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(a,n),s=(0,D.e)(t,i.collectionRef);return A.createElement(L.g7,{ref:s},r)}),l=e+"CollectionItemSlot",u="data-radix-collection-item",c=A.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=A.useRef(null),s=(0,D.e)(t,a),c=o(l,n);return A.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),A.createElement(L.g7,{[u]:"",ref:s},r)});return[{Provider:e=>{let{scope:t,children:n}=e,r=A.useRef(null),o=A.useRef(new Map).current;return A.createElement(i,{scope:t,itemMap:o,collectionRef:r},n)},Slot:s,ItemSlot:c},function(t){let n=o(e+"CollectionConsumer",t),r=A.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()),i=r.sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return i},[n.collectionRef,n.itemMap]);return r},r]}var F=n(41816),z=n(73597),V=n(72130),I=n(64680),B=n(28245),H=n(26074);let U="Collapsible",[W,q]=(0,R.b)(U),[$,K]=W(U),Y=(0,A.forwardRef)((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:o,onOpenChange:a,...s}=e,[l=!1,u]=(0,z.T)({prop:r,defaultProp:i,onChange:a});return(0,A.createElement)($,{scope:n,disabled:o,contentId:(0,H.M)(),open:l,onOpenToggle:(0,A.useCallback)(()=>u(e=>!e),[u])},(0,A.createElement)(V.WV.div,(0,N.Z)({"data-state":ee(l),"data-disabled":o?"":void 0},s,{ref:t})))}),G=(0,A.forwardRef)((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=K("CollapsibleTrigger",n);return(0,A.createElement)(V.WV.button,(0,N.Z)({type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":ee(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled},r,{ref:t,onClick:(0,F.M)(e.onClick,i.onOpenToggle)}))}),X="CollapsibleContent",Q=(0,A.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=K(X,e.__scopeCollapsible);return(0,A.createElement)(B.z,{present:n||i.open},({present:e})=>(0,A.createElement)(J,(0,N.Z)({},r,{ref:t,present:e})))}),J=(0,A.forwardRef)((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...o}=e,a=K(X,n),[s,l]=(0,A.useState)(r),u=(0,A.useRef)(null),c=(0,D.e)(t,u),d=(0,A.useRef)(0),f=d.current,h=(0,A.useRef)(0),p=h.current,m=a.open||s,v=(0,A.useRef)(m),g=(0,A.useRef)();return(0,A.useEffect)(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,I.b)(()=>{let e=u.current;if(e){g.current=g.current||{transitionDuration:e.style.transitionDuration,animationDuration:e.style.animationDuration,animationFillMode:e.style.animationFillMode},e.style.transitionDuration="0s",e.style.animationDuration="0s",e.style.animationFillMode="none";let t=e.getBoundingClientRect();d.current=t.height,h.current=t.width,v.current||(e.style.transitionDuration=g.current.transitionDuration,e.style.animationDuration=g.current.animationDuration,e.style.animationFillMode=g.current.animationFillMode),l(r)}},[a.open,r]),(0,A.createElement)(V.WV.div,(0,N.Z)({"data-state":ee(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!m},o,{ref:c,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":p?`${p}px`:void 0,...e.style}}),m&&i)});function ee(e){return e?"open":"closed"}let et="Accordion",en=["Home","End","ArrowDown","ArrowUp"],[er,ei,eo]=Z(et),[ea,es]=(0,R.b)(et,[eo,q]),el=q(),eu=A.forwardRef((e,t)=>{let{type:n,...r}=e;return A.createElement(er.Provider,{scope:e.__scopeAccordion},"multiple"===n?A.createElement(em,(0,N.Z)({},r,{ref:t})):A.createElement(ep,(0,N.Z)({},r,{ref:t})))});eu.propTypes={type(e){let t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):"multiple"===e.type&&"string"==typeof t?Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):"single"===e.type&&Array.isArray(t)?Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};let[ec,ed]=ea(et),[ef,eh]=ea(et,{collapsible:!1}),ep=A.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:o=!1,...a}=e,[s,l]=(0,z.T)({prop:n,defaultProp:r,onChange:i});return A.createElement(ec,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:l,onItemClose:A.useCallback(()=>o&&l(""),[o,l])},A.createElement(ef,{scope:e.__scopeAccordion,collapsible:o},A.createElement(ey,(0,N.Z)({},a,{ref:t}))))}),em=A.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...o}=e,[a=[],s]=(0,z.T)({prop:n,defaultProp:r,onChange:i}),l=A.useCallback(e=>s((t=[])=>[...t,e]),[s]),u=A.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return A.createElement(ec,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:u},A.createElement(ef,{scope:e.__scopeAccordion,collapsible:!0},A.createElement(ey,(0,N.Z)({},o,{ref:t}))))}),[ev,eg]=ea(et),ey=A.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:r,...i}=e,o=A.useRef(null),a=(0,D.e)(o,t),s=ei(n),l=(0,F.M)(e.onKeyDown,e=>{var t;if(!en.includes(e.key))return;let n=e.target,r=s().filter(e=>{var t;return!(null!==(t=e.ref.current)&&void 0!==t&&t.disabled)}),i=r.findIndex(e=>e.ref.current===n),o=r.length;if(-1===i)return;e.preventDefault();let a=i;switch(e.key){case"Home":a=0;break;case"End":a=o-1;break;case"ArrowDown":a=i+1;break;case"ArrowUp":(a=i-1)<0&&(a=o-1)}let l=a%o;null===(t=r[l].ref.current)||void 0===t||t.focus()});return A.createElement(ev,{scope:n,disabled:r},A.createElement(er.Slot,{scope:n},A.createElement(V.WV.div,(0,N.Z)({},i,{ref:a,onKeyDown:r?void 0:l}))))}),eb="AccordionItem",[ex,ew]=ea(eb),ej=A.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...i}=e,o=eg(eb,n),a=ed(eb,n),s=el(n),l=(0,H.M)(),u=r&&a.value.includes(r)||!1,c=o.disabled||e.disabled;return A.createElement(ex,{scope:n,open:u,disabled:c,triggerId:l},A.createElement(Y,(0,N.Z)({"data-state":u?"open":"closed"},s,i,{ref:t,disabled:c,open:u,onOpenChange:e=>{e?a.onItemOpen(r):a.onItemClose(r)}})))}),ek=A.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=ew("AccordionHeader",n);return A.createElement(V.WV.h3,(0,N.Z)({"data-state":i.open?"open":"closed","data-disabled":i.disabled?"":void 0},r,{ref:t}))}),eE="AccordionTrigger",eS=A.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=ew(eE,n),o=eh(eE,n),a=el(n);return A.createElement(er.ItemSlot,{scope:n},A.createElement(G,(0,N.Z)({"aria-disabled":i.open&&!o.collapsible||void 0,id:i.triggerId},a,r,{ref:t})))}),e_=A.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=ew("AccordionContent",n),o=el(n);return A.createElement(Q,(0,N.Z)({role:"region","aria-labelledby":i.triggerId},o,r,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});var eC=n(82851),eO=n(83317);function eM(e){return e.split("-")[0]}function eT(e){return e.split("-")[1]}function eA(e){return["top","bottom"].includes(eM(e))?"x":"y"}function eP(e){return"y"===e?"height":"width"}function eN(e,t,n){let r,{reference:i,floating:o}=e,a=i.x+i.width/2-o.width/2,s=i.y+i.height/2-o.height/2,l=eA(t),u=eP(l),c=i[u]/2-o[u]/2,d="x"===l;switch(eM(t)){case"top":r={x:a,y:i.y-o.height};break;case"bottom":r={x:a,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:s};break;case"left":r={x:i.x-o.width,y:s};break;default:r={x:i.x,y:i.y}}switch(eT(t)){case"start":r[l]-=c*(n&&d?-1:1);break;case"end":r[l]+=c*(n&&d?-1:1)}return r}let eR=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=await (null==a.isRTL?void 0:a.isRTL(t)),l=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=eN(l,r,s),d=r,f={},h=0;for(let n=0;n({name:"arrow",options:e,async fn(t){let{element:n,padding:r=0}=null!=e?e:{},{x:i,y:o,placement:a,rects:s,platform:l}=t;if(null==n)return{};let u=eD(r),c={x:i,y:o},d=eA(a),f=eT(a),h=eP(d),p=await l.getDimensions(n),m="y"===d?"top":"left",v="y"===d?"bottom":"right",g=s.reference[h]+s.reference[d]-c[d]-s.floating[h],y=c[d]-s.reference[d],b=await (null==l.getOffsetParent?void 0:l.getOffsetParent(n)),x=b?"y"===d?b.clientHeight||0:b.clientWidth||0:0;0===x&&(x=s.floating[h]);let w=u[m],j=x-p[h]-u[v],k=x/2-p[h]/2+(g/2-y/2),E=ez(w,eF(k,j)),S=("start"===f?u[m]:u[v])>0&&k!==E&&s.reference[h]<=s.floating[h];return{[d]:c[d]-(S?keI[e])}let eH={start:"end",end:"start"};function eU(e){return e.replace(/start|end/g,e=>eH[e])}let eW=["top","right","bottom","left"];eW.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);let eq=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o;let{placement:a,middlewareData:s,rects:l,initialPlacement:u,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",flipAlignment:v=!0,...g}=e,y=eM(a),b=p||(y!==u&&v?function(e){let t=eB(e);return[eU(e),t,eU(t)]}(u):[eB(u)]),x=[u,...b],w=await eZ(t,g),j=[],k=(null==(n=s.flip)?void 0:n.overflows)||[];if(f&&j.push(w[y]),h){let{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);let r=eT(e),i=eA(e),o=eP(i),a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=eB(a)),{main:a,cross:eB(a)}}(a,l,await (null==c.isRTL?void 0:c.isRTL(d.floating)));j.push(w[e],w[t])}if(k=[...k,{placement:a,overflows:j}],!j.every(e=>e<=0)){let e=(null!=(r=null==(i=s.flip)?void 0:i.index)?r:0)+1,t=x[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n="bottom";switch(m){case"bestFit":{let e=null==(o=k.map(e=>[e,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0].placement;e&&(n=e);break}case"initialPlacement":n=u}if(a!==n)return{reset:{placement:n}}}return{}}}};function e$(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function eK(e){return eW.some(t=>e[t]>=0)}let eY=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){let{rects:r}=e;switch(t){case"referenceHidden":{let t=e$(await eZ(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:eK(t)}}}case"escaped":{let t=e$(await eZ(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:eK(t)}}}default:return{}}}}},eG=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){let{x:n,y:r}=t,i=await async function(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),a=eM(n),s=eT(n),l="x"===eA(n),u=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,d="function"==typeof t?t(e):t,{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}(t,e);return{x:n+i.x,y:r+i.y,data:i}}}};function eX(e){return"x"===e?"y":"x"}let eQ=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=e,u={x:n,y:r},c=await eZ(t,l),d=eA(eM(i)),f=eX(d),h=u[d],p=u[f];if(o){let e="y"===d?"bottom":"right";h=ez(h+c["y"===d?"top":"left"],eF(h,h-c[e]))}a&&(p=ez(p+c["y"===f?"top":"left"],eF(p,p-c["y"===f?"bottom":"right"])));let m=s.fn({...t,[d]:h,[f]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}},eJ=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=e,c={x:n,y:r},d=eA(i),f=eX(d),h=c[d],p=c[f],m="function"==typeof s?s({...o,placement:i}):s,v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let e="y"===d?"height":"width",t=o.reference[d]-o.floating[e]+v.mainAxis,n=o.reference[d]+o.reference[e]-v.mainAxis;hn&&(h=n)}if(u){var g,y,b,x;let e="y"===d?"width":"height",t=["top","left"].includes(eM(i)),n=o.reference[f]-o.floating[e]+(t&&null!=(g=null==(y=a.offset)?void 0:y[f])?g:0)+(t?0:v.crossAxis),r=o.reference[f]+o.reference[e]+(t?0:null!=(b=null==(x=a.offset)?void 0:x[f])?b:0)-(t?v.crossAxis:0);pr&&(p=r)}return{[d]:h,[f]:p}}}};function e0(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function e1(e){if(null==e)return window;if(!e0(e)){let t=e.ownerDocument;return t&&t.defaultView||window}return e}function e2(e){return e1(e).getComputedStyle(e)}function e4(e){return e0(e)?"":e?(e.nodeName||"").toLowerCase():""}function e3(){let e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function e5(e){return e instanceof e1(e).HTMLElement}function e6(e){return e instanceof e1(e).Element}function e8(e){return"undefined"!=typeof ShadowRoot&&(e instanceof e1(e).ShadowRoot||e instanceof ShadowRoot)}function e7(e){let{overflow:t,overflowX:n,overflowY:r}=e2(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function e9(e){let t=/firefox/i.test(e3()),n=e2(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function te(){return!/^((?!chrome|android).)*safari/i.test(e3())}let tt=Math.min,tn=Math.max,tr=Math.round;function ti(e,t,n){var r,i,o,a;void 0===t&&(t=!1),void 0===n&&(n=!1);let s=e.getBoundingClientRect(),l=1,u=1;t&&e5(e)&&(l=e.offsetWidth>0&&tr(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&tr(s.height)/e.offsetHeight||1);let c=e6(e)?e1(e):window,d=!te()&&n,f=(s.left+(d&&null!=(r=null==(i=c.visualViewport)?void 0:i.offsetLeft)?r:0))/l,h=(s.top+(d&&null!=(o=null==(a=c.visualViewport)?void 0:a.offsetTop)?o:0))/u,p=s.width/l,m=s.height/u;return{width:p,height:m,top:h,right:f+p,bottom:h+m,left:f,x:f,y:h}}function to(e){return((e instanceof e1(e).Node?e.ownerDocument:e.document)||window.document).documentElement}function ta(e){return e6(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ts(e){return ti(to(e)).left+ta(e).scrollLeft}function tl(e){return"html"===e4(e)?e:e.assignedSlot||e.parentNode||(e8(e)?e.host:null)||to(e)}function tu(e){return e5(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function tc(e){let t=e1(e),n=tu(e);for(;n&&["table","td","th"].includes(e4(n))&&"static"===getComputedStyle(n).position;)n=tu(n);return n&&("html"===e4(n)||"body"===e4(n)&&"static"===getComputedStyle(n).position&&!e9(n))?t:n||function(e){let t=tl(e);for(e8(t)&&(t=t.host);e5(t)&&!["html","body"].includes(e4(t));){if(e9(t))return t;t=t.parentNode}return null}(e)||t}function td(e){if(e5(e))return{width:e.offsetWidth,height:e.offsetHeight};let t=ti(e);return{width:t.width,height:t.height}}function tf(e,t){var n;void 0===t&&(t=[]);let r=function e(t){let n=tl(t);return["html","body","#document"].includes(e4(n))?t.ownerDocument.body:e5(n)&&e7(n)?n:e(n)}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=e1(r),a=i?[o].concat(o.visualViewport||[],e7(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(tf(a))}function th(e,t,n){return"viewport"===t?eL(function(e,t){let n=e1(e),r=to(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=te();(e||!e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n)):e6(t)?function(e,t){let n=ti(e,!1,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft;return{top:r,left:i,x:i,y:r,right:i+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):eL(function(e){var t;let n=to(e),r=ta(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=tn(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=tn(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+ts(e),l=-r.scrollTop;return"rtl"===e2(i||n).direction&&(s+=tn(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(to(e)))}let tp={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?function(e){let t=tf(e),n=["absolute","fixed"].includes(e2(e).position)&&e5(e)?tc(e):e;return e6(n)?t.filter(e=>e6(e)&&function(e,t){let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&e8(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==e4(e)):[]}(t):[].concat(n),r],a=o[0],s=o.reduce((e,n)=>{let r=th(t,n,i);return e.top=tn(r.top,e.top),e.right=tt(r.right,e.right),e.bottom=tt(r.bottom,e.bottom),e.left=tn(r.left,e.left),e},th(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=e5(n),o=to(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==e4(n)||e7(o))&&(a=ta(n)),e5(n))){let e=ti(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:e6,getDimensions:td,getOffsetParent:tc,getDocumentElement:to,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:function(e,t,n){let r=e5(t),i=to(t),o=ti(e,r&&function(e){let t=ti(e);return tr(t.width)!==e.offsetWidth||tr(t.height)!==e.offsetHeight}(t),"fixed"===n),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&"fixed"!==n){if(("body"!==e4(t)||e7(i))&&(a=ta(t)),e5(t)){let e=ti(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=ts(i))}return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}(t,tc(n),r),floating:{...td(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===e2(e).direction};function tm(e,t,n,r){void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=i&&!s,u=o&&!s,c=l||u?[...e6(e)?tf(e):[],...tf(t)]:[];c.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let d,f=null;if(a){let r=!0;f=new ResizeObserver(()=>{r||n(),r=!1}),e6(e)&&!s&&f.observe(e),f.observe(t)}let h=s?ti(e):null;return s&&function t(){let r=ti(e);h&&(r.x!==h.x||r.y!==h.y||r.width!==h.width||r.height!==h.height)&&n(),h=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{l&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}let tv=(e,t,n)=>eR(e,t,{platform:tp,...n});var tg=n(28316),ty="undefined"!=typeof document?A.useLayoutEffect:A.useEffect;function tb(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:i}=void 0===e?{}:e,o=A.useRef(null),a=A.useRef(null),s=function(e){let t=A.useRef(e);return ty(()=>{t.current=e}),t}(i),l=A.useRef(null),[u,c]=A.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=A.useState(t);!function e(t,n){let r,i,o;if(t===n)return!0;if(typeof t!=typeof n)return!1;if("function"==typeof t&&t.toString()===n.toString())return!0;if(t&&n&&"object"==typeof t){if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){let r=o[i];if(("_owner"!==r||!t.$$typeof)&&!e(t[r],n[r]))return!1}return!0}return t!=t&&n!=n}(null==d?void 0:d.map(e=>{let{options:t}=e;return t}),null==t?void 0:t.map(e=>{let{options:t}=e;return t}))&&f(t);let h=A.useCallback(()=>{o.current&&a.current&&tv(o.current,a.current,{middleware:d,placement:n,strategy:r}).then(e=>{p.current&&tg.flushSync(()=>{c(e)})})},[d,n,r]);ty(()=>{p.current&&h()},[h]);let p=A.useRef(!1);ty(()=>(p.current=!0,()=>{p.current=!1}),[]);let m=A.useCallback(()=>{if("function"==typeof l.current&&(l.current(),l.current=null),o.current&&a.current){if(s.current){let e=s.current(o.current,a.current,h);l.current=e}else h()}},[h,s]),v=A.useCallback(e=>{o.current=e,m()},[m]),g=A.useCallback(e=>{a.current=e,m()},[m]),y=A.useMemo(()=>({reference:o,floating:a}),[]);return A.useMemo(()=>({...u,update:h,refs:y,reference:v,floating:g}),[u,h,y,v,g])}let tx=e=>{let{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){if(Object.prototype.hasOwnProperty.call(t,"current")){if(null!=t.current)return eV({element:t.current,padding:n}).fn(e)}else if(t)return eV({element:t,padding:n}).fn(e);return{}}}},tw=(0,A.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,A.createElement)(V.WV.svg,(0,N.Z)({},o,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,A.createElement)("polygon",{points:"0,0 30,0 15,10"}))});function tj(e){let[t,n]=(0,A.useState)(void 0);return(0,I.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}let tk="Popper",[tE,tS]=(0,R.b)(tk),[t_,tC]=tE(tk),tO=(0,A.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,o=tC("PopperAnchor",n),a=(0,A.useRef)(null),s=(0,D.e)(t,a);return(0,A.useEffect)(()=>{o.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,A.createElement)(V.WV.div,(0,N.Z)({},i,{ref:s}))}),tM="PopperContent",[tT,tA]=tE(tM),[tP,tN]=tE(tM,{hasParent:!1,positionUpdateFns:new Set}),tR=(0,A.forwardRef)((e,t)=>{var n,r,i,o,a,s,l,u;let{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:h="center",alignOffset:p=0,arrowPadding:m=0,collisionBoundary:v=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:b=!1,avoidCollisions:x=!0,...w}=e,j=tC(tM,c),[k,E]=(0,A.useState)(null),S=(0,D.e)(t,e=>E(e)),[_,C]=(0,A.useState)(null),O=tj(_),M=null!==(n=null==O?void 0:O.width)&&void 0!==n?n:0,T=null!==(r=null==O?void 0:O.height)&&void 0!==r?r:0,P="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},N=Array.isArray(v)?v:[v],R=N.length>0,L={padding:P,boundary:N.filter(tF),altBoundary:R},{reference:Z,floating:F,strategy:z,x:B,y:H,placement:U,middlewareData:W,update:q}=tb({strategy:"fixed",placement:d+("center"!==h?"-"+h:""),whileElementsMounted:tm,middleware:[eG({mainAxis:f+T,alignmentAxis:p}),x?eQ({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?eJ():void 0,...L}):void 0,_?tx({element:_,padding:m}):void 0,x?eq({...L}):void 0,tz({arrowWidth:M,arrowHeight:T}),b?eY({strategy:"referenceHidden"}):void 0].filter(tZ)});(0,I.b)(()=>{Z(j.anchor)},[Z,j.anchor]);let $=null!==B&&null!==H,[K,Y]=tV(U),G=null===(i=W.arrow)||void 0===i?void 0:i.x,X=null===(o=W.arrow)||void 0===o?void 0:o.y,Q=(null===(a=W.arrow)||void 0===a?void 0:a.centerOffset)!==0,[J,ee]=(0,A.useState)();(0,I.b)(()=>{k&&ee(window.getComputedStyle(k).zIndex)},[k]);let{hasParent:et,positionUpdateFns:en}=tN(tM,c),er=!et;(0,A.useLayoutEffect)(()=>{if(!er)return en.add(q),()=>{en.delete(q)}},[er,en,q]),(0,A.useLayoutEffect)(()=>{er&&$&&Array.from(en).reverse().forEach(e=>requestAnimationFrame(e))},[er,$,en]);let ei={"data-side":K,"data-align":Y,...w,ref:S,style:{...w.style,animation:$?void 0:"none",opacity:null!==(s=W.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,A.createElement)("div",{ref:F,"data-radix-popper-content-wrapper":"",style:{position:z,left:0,top:0,transform:$?`translate3d(${Math.round(B)}px, ${Math.round(H)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[null===(l=W.transformOrigin)||void 0===l?void 0:l.x,null===(u=W.transformOrigin)||void 0===u?void 0:u.y].join(" ")}},(0,A.createElement)(tT,{scope:c,placedSide:K,onArrowChange:C,arrowX:G,arrowY:X,shouldHideArrow:Q},er?(0,A.createElement)(tP,{scope:c,hasParent:!0,positionUpdateFns:en},(0,A.createElement)(V.WV.div,ei)):(0,A.createElement)(V.WV.div,ei)))}),tD={top:"bottom",right:"left",bottom:"top",left:"right"},tL=(0,A.forwardRef)(function(e,t){let{__scopePopper:n,...r}=e,i=tA("PopperArrow",n),o=tD[i.placedSide];return(0,A.createElement)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},(0,A.createElement)(tw,(0,N.Z)({},r,{ref:t,style:{...r.style,display:"block"}})))});function tZ(e){return void 0!==e}function tF(e){return null!==e}let tz=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=tV(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(r=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+d/2,g=(null!==(o=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==o?o:0)+f/2,y="",b="";return"bottom"===h?(y=c?m:`${v}px`,b=`${-f}px`):"top"===h?(y=c?m:`${v}px`,b=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,b=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,b=c?m:`${g}px`),{data:{x:y,y:b}}}});function tV(e){let[t,n="center"]=e.split("-");return[t,n]}let tI=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,A.useState)(null);return(0,A.createElement)(t_,{scope:t,anchor:r,onAnchorChange:i},n)};var tB=n(6500);let tH=(0,A.forwardRef)((e,t)=>(0,A.createElement)(V.WV.span,(0,N.Z)({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),[tU,tW]=(0,R.b)("Tooltip",[tS]),tq=tS(),t$="tooltip.open",[tK,tY]=tU("TooltipProvider"),tG="Tooltip",[tX,tQ]=tU(tG),tJ="TooltipTrigger",t0=(0,A.forwardRef)((e,t)=>{let{__scopeTooltip:n,...r}=e,i=tQ(tJ,n),o=tY(tJ,n),a=tq(n),s=(0,A.useRef)(null),l=(0,D.e)(t,s,i.onTriggerChange),u=(0,A.useRef)(!1),c=(0,A.useRef)(!1),d=(0,A.useCallback)(()=>u.current=!1,[]);return(0,A.useEffect)(()=>()=>document.removeEventListener("pointerup",d),[d]),(0,A.createElement)(tO,(0,N.Z)({asChild:!0},a),(0,A.createElement)(V.WV.button,(0,N.Z)({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},r,{ref:l,onPointerMove:(0,F.M)(e.onPointerMove,e=>{"touch"===e.pointerType||c.current||o.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:(0,F.M)(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:(0,F.M)(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:(0,F.M)(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:(0,F.M)(e.onBlur,i.onClose),onClick:(0,F.M)(e.onClick,e=>{let t=0===e.detail;t&&i.onClose()})})))}),t1="TooltipPortal",[t2,t4]=tU(t1,{forceMount:void 0}),t3="TooltipContent",t5=(0,A.forwardRef)((e,t)=>{let n=t4(t3,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,a=tQ(t3,e.__scopeTooltip);return(0,A.createElement)(B.z,{present:r||a.open},a.disableHoverableContent?(0,A.createElement)(t9,(0,N.Z)({side:i},o,{ref:t})):(0,A.createElement)(t6,(0,N.Z)({side:i},o,{ref:t})))}),t6=(0,A.forwardRef)((e,t)=>{let n=tQ(t3,e.__scopeTooltip),r=tY(t3,e.__scopeTooltip),i=(0,A.useRef)(null),o=(0,D.e)(t,i),[a,s]=(0,A.useState)(null),{trigger:l,onClose:u}=n,c=i.current,{onPointerInTransitChange:d}=r,f=(0,A.useCallback)(()=>{s(null),d(!1)},[d]),h=(0,A.useCallback)((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:return null}}(r,n.getBoundingClientRect()),o="right"===i||"bottom"===i?-5:5,a="right"===i||"left"===i?{x:e.clientX+o,y:e.clientY}:{x:e.clientX,y:e.clientY+o},l=function(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}(t.getBoundingClientRect()),u=function(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y?1:0),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}([a,...l]);s(u),d(!0)},[d]);return(0,A.useEffect)(()=>()=>f(),[f]),(0,A.useEffect)(()=>{if(l&&c){let e=e=>h(e,c),t=e=>h(e,l);return l.addEventListener("pointerleave",e),c.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),c.removeEventListener("pointerleave",t)}}},[l,c,h,f]),(0,A.useEffect)(()=>{if(a){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==l?void 0:l.contains(t))||(null==c?void 0:c.contains(t)),i=!function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;er!=u>r&&n<(l-a)*(r-s)/(u-s)+a;c&&(i=!i)}return i}(n,a);r?f():i&&(f(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[l,c,a,u,f]),(0,A.createElement)(t9,(0,N.Z)({},e,{ref:o}))}),[t8,t7]=tU(tG,{isInside:!1}),t9=(0,A.forwardRef)((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:a,...s}=e,l=tQ(t3,n),u=tq(n),{onClose:c}=l;return(0,A.useEffect)(()=>(document.addEventListener(t$,c),()=>document.removeEventListener(t$,c)),[c]),(0,A.useEffect)(()=>{if(l.trigger){let e=e=>{let t=e.target;null!=t&&t.contains(l.trigger)&&c()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[l.trigger,c]),(0,A.createElement)(eO.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:c},(0,A.createElement)(tR,(0,N.Z)({"data-state":l.stateAttribute},u,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),(0,A.createElement)(L.A4,null,r),(0,A.createElement)(t8,{scope:n,isInside:!0},(0,A.createElement)(tH,{id:l.contentId,role:"tooltip"},i||r))))}),ne=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:o,disableHoverableContent:a,delayDuration:s}=e,l=tY(tG,e.__scopeTooltip),u=tq(t),[c,d]=(0,A.useState)(null),f=(0,H.M)(),h=(0,A.useRef)(0),p=null!=a?a:l.disableHoverableContent,m=null!=s?s:l.delayDuration,v=(0,A.useRef)(!1),[g=!1,y]=(0,z.T)({prop:r,defaultProp:i,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(t$))):l.onClose(),null==o||o(e)}}),b=(0,A.useMemo)(()=>g?v.current?"delayed-open":"instant-open":"closed",[g]),x=(0,A.useCallback)(()=>{window.clearTimeout(h.current),v.current=!1,y(!0)},[y]),w=(0,A.useCallback)(()=>{window.clearTimeout(h.current),y(!1)},[y]),j=(0,A.useCallback)(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,y(!0)},m)},[m,y]);return(0,A.useEffect)(()=>()=>window.clearTimeout(h.current),[]),(0,A.createElement)(tI,u,(0,A.createElement)(tX,{scope:t,contentId:f,open:g,stateAttribute:b,trigger:c,onTriggerChange:d,onTriggerEnter:(0,A.useCallback)(()=>{l.isOpenDelayed?j():x()},[l.isOpenDelayed,j,x]),onTriggerLeave:(0,A.useCallback)(()=>{p?w():window.clearTimeout(h.current)},[w,p]),onOpen:x,onClose:w,disableHoverableContent:p},n))},nt=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=tQ(t1,t);return(0,A.createElement)(t2,{scope:t,forceMount:n},(0,A.createElement)(B.z,{present:n||o.open},(0,A.createElement)(tB.h,{asChild:!0,container:i},r)))},nn=(0,eC.j)([],{variants:{display:{default:"inline-block",none:""},font:{mono:"font-mono",sans:"font-sans"},color:{verySubtle:"text-gray-700 dark:text-graydark-700",subtle:"text-gray-1000 dark:text-graydark-1000",contrast:"text-gray-1100 dark:text-white",lo:"text-white dark:text-graydark-50",accent:"text-accent-1100 dark:text-accentdark-1100",red:"text-red-700 dark:text-red-400",green:"text-emerald-700 dark:text-emerald-500",amber:"text-amber-600 dark:text-amber-500",none:""},weight:{extrabold:"font-extrabold",bold:"font-bold",medium:"font-medium",semibold:"font-semibold",regular:"font-normal",normal:"font-normal",light:"font-light",none:""},size:{10:"text-xxs",12:"text-xs",14:"text-sm",16:"text-base",18:"text-lg",20:"text-xl",24:"text-2xl",30:"text-3xl",36:"text-4xl",40:"text-5xl",48:"text-5xl",60:"text-6xl",64:"text-6xl"},scaleSize:{12:"text-xxs md:text-xs",14:"text-xs md:text-sm",16:"text-sm md:text-base",18:"text-base md:text-lg",20:"text-base md:text-xl",24:"text-xl md:text-2xl",30:"text-2xl md:text-3xl",36:"text-3xl md:text-4xl",40:"text-4xl md:text-5xl",48:"text-4xl md:text-5xl",60:"text-5xl md:text-6xl",64:"text-5xl md:text-6xl"},noWrap:{true:"whitespace-nowrap"},underline:{accent:"underline underline-offset-2 decoration-2 decoration-accent-900 dark:decoration-accentdark-900",show:"underline underline-offset-2 decoration-gray-1100 dark:decoration-gray-500",hover:"hover:underline underline-offset-2 decoration-gray-1100 dark:decoration-gray-500",none:""},ellipsis:{true:"overflow-hidden text-ellipsis whitespace-nowrap"},wrapEllipsis:{true:"overflow-hidden text-ellipsis"}},defaultVariants:{display:"default",weight:"regular",font:"sans",color:"contrast",underline:"none"}}),nr=A.forwardRef((e,t)=>{let{tag:n="span",className:r,font:i,color:o,weight:a,size:s,scaleSize:l,noWrap:u,underline:c,ellipsis:d,wrapEllipsis:f,...h}=e;return(0,T.jsx)(n,{ref:t,className:(0,eC.cx)(r,nn({font:i,color:o,weight:a,size:s,scaleSize:l,underline:c,noWrap:u,ellipsis:d,wrapEllipsis:f})),...h})}),ni=A.forwardRef((e,t)=>{let{size:n="18",...r}=e;return(0,T.jsx)(nr,{tag:"p",...r,ref:t,weight:"regular",scaleSize:n,color:"subtle",className:(0,eC.cx)("leading-relaxed md:leading-relaxed",e.className)})}),no=(0,eC.j)(["bg-white dark:bg-graydark-200","transition-shadow ease-in-out duration-300","shadow-sm hover:shadow","rounded","border","border-gray-400 dark:border-graydark-400"]),na=A.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,T.jsx)("div",{ref:t,className:no({className:n}),...r})});var ns=n(34406);let nl=(void 0===ns||ns.env,"production"),nu=1/60*1e3,nc="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),nd="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(nc()),nu),nf=!0,nh=!1,np=!1,nm={delta:0,timestamp:0},nv=["read","update","preRender","render","postRender"],ng=nv.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,o=!1,a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{let l=s&&i,u=l?t:n;return o&&a.add(e),-1===u.indexOf(e)&&(u.push(e),l&&i&&(r=t.length)),e},cancel:e=>{let t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length)for(let n=0;nnh=!0),e),{}),ny=nv.reduce((e,t)=>{let n=ng[t];return e[t]=(e,t=!1,r=!1)=>(nh||nk(),n.schedule(e,t,r)),e},{}),nb=nv.reduce((e,t)=>(e[t]=ng[t].cancel,e),{}),nx=nv.reduce((e,t)=>(e[t]=()=>ng[t].process(nm),e),{}),nw=e=>ng[e].process(nm),nj=e=>{nh=!1,nm.delta=nf?nu:Math.max(Math.min(e-nm.timestamp,40),1),nm.timestamp=e,np=!0,nv.forEach(nw),np=!1,nh&&(nf=!1,nd(nj))},nk=()=>{nh=!0,nf=!0,np||nd(nj)},nE=()=>nm,nS="undefined"!=typeof document,n_=nS?A.useLayoutEffect:A.useEffect;function nC(){let e=(0,A.useRef)(!1);return n_(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let nO=(0,A.createContext)(null);function nM(e){let t=(0,A.useRef)(null);return null===t.current&&(t.current=e()),t.current}class nT extends A.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function nA({children:e,isPresent:t}){let n=(0,A.useId)(),r=(0,A.useRef)(null),i=(0,A.useRef)({width:0,height:0,top:0,left:0});return(0,A.useInsertionEffect)(()=>{let{width:e,height:o,top:a,left:s}=i.current;if(t||!r.current||!e||!o)return;r.current.dataset.motionPopId=n;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` + [data-motion-pop-id="${n}"] { + position: absolute !important; + width: ${e}px !important; + height: ${o}px !important; + top: ${a}px !important; + left: ${s}px !important; + } + `),()=>{document.head.removeChild(l)}},[t]),A.createElement(nT,{isPresent:t,childRef:r,sizeRef:i},A.cloneElement(e,{ref:r}))}let nP=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{let s=nM(nN),l=(0,A.useId)(),u=(0,A.useMemo)(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:e=>{for(let t of(s.set(e,!0),s.values()))if(!t)return;r&&r()},register:e=>(s.set(e,!1),()=>s.delete(e))}),o?void 0:[n]);return(0,A.useMemo)(()=>{s.forEach((e,t)=>s.set(t,!1))},[n]),A.useEffect(()=>{n||s.size||!r||r()},[n]),"popLayout"===a&&(e=A.createElement(nA,{isPresent:n},e)),A.createElement(nO.Provider,{value:u},e)};function nN(){return new Map}let nR=(0,A.createContext)({});function nD(e){return(0,A.useEffect)(()=>()=>e(),[])}let nL=new Set;function nZ(e,t,n){e||nL.has(t)||(console.warn(t),n&&console.warn(n),nL.add(t))}let nF=e=>e.key||"",nz=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",nZ(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=function(){let e=nC(),[t,n]=(0,A.useState)(0),r=(0,A.useCallback)(()=>{e.current&&n(t+1)},[t]),i=(0,A.useCallback)(()=>ny.postRender(r),[r]);return[i,t]}(),l=(0,A.useContext)(nR).forceRender;l&&(s=l);let u=nC(),c=function(e){let t=[];return A.Children.forEach(e,e=>{(0,A.isValidElement)(e)&&t.push(e)}),t}(e),d=c,f=new Set,h=(0,A.useRef)(d),p=(0,A.useRef)(new Map).current,m=(0,A.useRef)(!0);if(n_(()=>{m.current=!1,function(e,t){e.forEach(e=>{let n=nF(e);t.set(n,e)})}(c,p),h.current=d}),nD(()=>{m.current=!0,p.clear(),f.clear()}),m.current)return A.createElement(A.Fragment,null,d.map(e=>A.createElement(nP,{key:nF(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:o,mode:a},e)));d=[...d];let v=h.current.map(nF),g=c.map(nF),y=v.length;for(let e=0;e{if(-1!==g.indexOf(e))return;let n=p.get(e);if(!n)return;let i=v.indexOf(e);d.splice(i,0,A.createElement(nP,{key:nF(n),isPresent:!1,onExitComplete:()=>{p.delete(e),f.delete(e);let t=h.current.findIndex(t=>t.key===e);if(h.current.splice(t,1),!f.size){if(h.current=c,!1===u.current)return;s(),r&&r()}},custom:t,presenceAffectsLayout:o,mode:a},n))}),d=d.map(e=>{let t=e.key;return f.has(t)?e:A.createElement(nP,{key:nF(e),isPresent:!0,presenceAffectsLayout:o,mode:a},e)}),"production"!==nl&&"wait"===a&&d.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.'),A.createElement(A.Fragment,null,f.size?d:d.map(e=>(0,A.cloneElement)(e)))},nV=(0,A.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),nI=(0,A.createContext)({}),nB=(0,A.createContext)({strict:!1});function nH(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function nU(e){return"string"==typeof e||Array.isArray(e)}function nW(e){return"object"==typeof e&&"function"==typeof e.start}let nq=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function n$(e){return nW(e.animate)||nq.some(t=>nU(e[t]))}function nK(e){return!!(n$(e)||e.variants)}function nY(e){return Array.isArray(e)?e.join(" "):e}let nG=e=>({isEnabled:t=>e.some(e=>!!t[e])}),nX={measureLayout:nG(["layout","layoutId","drag"]),animation:nG(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:nG(["exit"]),drag:nG(["drag","dragControls"]),focus:nG(["whileFocus"]),hover:nG(["whileHover","onHoverStart","onHoverEnd"]),tap:nG(["whileTap","onTap","onTapStart","onTapCancel"]),pan:nG(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:nG(["whileInView","onViewportEnter","onViewportLeave"])},nQ={hasAnimatedSinceResize:!0,hasEverUpdated:!1},nJ=1;class n0 extends A.Component{getSnapshotBeforeUpdate(){let{visualElement:e,props:t}=this.props;return e&&e.setProps(t),null}componentDidUpdate(){}render(){return this.props.children}}let n1=(0,A.createContext)({}),n2=Symbol.for("motionComponentSymbol"),n4=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function n3(e){if("string"!=typeof e||e.includes("-"));else if(n4.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let n5={},n6=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],n8=new Set(n6);function n7(e,{layout:t,layoutId:n}){return n8.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!n5[e]||"opacity"===e)}let n9=e=>!!(null==e?void 0:e.getVelocity),re={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rt=(e,t)=>n6.indexOf(e)-n6.indexOf(t);function rn(e){return e.startsWith("--")}let rr=(e,t)=>t&&"number"==typeof e?t.transform(e):e,ri=(e,t)=>n=>Math.max(Math.min(n,t),e),ro=e=>e%1?Number(e.toFixed(5)):e,ra=/(-)?([\d]*\.?[\d])+/g,rs=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,rl=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ru(e){return"string"==typeof e}let rc=e=>({test:t=>ru(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),rd=rc("deg"),rf=rc("%"),rh=rc("px"),rp=rc("vh"),rm=rc("vw"),rv=Object.assign(Object.assign({},rf),{parse:e=>rf.parse(e)/100,transform:e=>rf.transform(100*e)}),rg={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},ry=Object.assign(Object.assign({},rg),{transform:ri(0,1)}),rb=Object.assign(Object.assign({},rg),{default:1}),rx={...rg,transform:Math.round},rw={borderWidth:rh,borderTopWidth:rh,borderRightWidth:rh,borderBottomWidth:rh,borderLeftWidth:rh,borderRadius:rh,radius:rh,borderTopLeftRadius:rh,borderTopRightRadius:rh,borderBottomRightRadius:rh,borderBottomLeftRadius:rh,width:rh,maxWidth:rh,height:rh,maxHeight:rh,size:rh,top:rh,right:rh,bottom:rh,left:rh,padding:rh,paddingTop:rh,paddingRight:rh,paddingBottom:rh,paddingLeft:rh,margin:rh,marginTop:rh,marginRight:rh,marginBottom:rh,marginLeft:rh,rotate:rd,rotateX:rd,rotateY:rd,rotateZ:rd,scale:rb,scaleX:rb,scaleY:rb,scaleZ:rb,skew:rd,skewX:rd,skewY:rd,distance:rh,translateX:rh,translateY:rh,translateZ:rh,x:rh,y:rh,z:rh,perspective:rh,transformPerspective:rh,opacity:ry,originX:rv,originY:rv,originZ:rh,zIndex:rx,fillOpacity:ry,strokeOpacity:ry,numOctaves:rx};function rj(e,t,n,r){let{style:i,vars:o,transform:a,transformKeys:s,transformOrigin:l}=e;s.length=0;let u=!1,c=!1,d=!0;for(let e in t){let n=t[e];if(rn(e)){o[e]=n;continue}let r=rw[e],f=rr(n,r);if(n8.has(e)){if(u=!0,a[e]=f,s.push(e),!d)continue;n!==(r.default||0)&&(d=!1)}else e.startsWith("origin")?(c=!0,l[e]=f):i[e]=f}if(!t.transform&&(u||r?i.transform=function({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},i,o){let a="";for(let n of(t.sort(rt),t))a+=`${re[n]||n}(${e[n]}) `;return n&&!e.z&&(a+="translateZ(0)"),a=a.trim(),o?a=o(e,i?"":a):r&&i&&(a="none"),a}(e,n,d,r):i.transform&&(i.transform="none")),c){let{originX:e="50%",originY:t="50%",originZ:n=0}=l;i.transformOrigin=`${e} ${t} ${n}`}}let rk=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function rE(e,t,n){for(let r in t)n9(t[r])||n7(r,n)||(e[r]=t[r])}function rS(e,t,n){let r={},i=function(e,t,n){let r=e.style||{},i={};return rE(i,r,e),Object.assign(i,function({transformTemplate:e},t,n){return(0,A.useMemo)(()=>{let r=rk();return rj(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}(e,t,n)),e.transformValues?e.transformValues(i):i}(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),r.style=i,r}let r_=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll","whileInView","onViewportEnter","onViewportLeave","viewport","whileTap","onTap","onTapStart","onTapCancel","animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView","onPan","onPanStart","onPanSessionStart","onPanEnd"]);function rC(e){return r_.has(e)}let rO=e=>!rC(e);try{(s=require("@emotion/is-prop-valid").default)&&(rO=e=>e.startsWith("on")?!rC(e):s(e))}catch(e){}function rM(e,t,n){return"string"==typeof e?e:rh.transform(t+n*e)}let rT={offset:"stroke-dashoffset",array:"stroke-dasharray"},rA={offset:"strokeDashoffset",array:"strokeDasharray"};function rP(e,{attrX:t,attrY:n,originX:r,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:s=0,...l},u,c){rj(e,l,u,c),e.attrs=e.style,e.style={};let{attrs:d,style:f,dimensions:h}=e;d.transform&&(h&&(f.transform=d.transform),delete d.transform),h&&(void 0!==r||void 0!==i||f.transform)&&(f.transformOrigin=function(e,t,n){let r=rM(t,e.x,e.width),i=rM(n,e.y,e.height);return`${r} ${i}`}(h,void 0!==r?r:.5,void 0!==i?i:.5)),void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==o&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?rT:rA;e[o.offset]=rh.transform(-r);let a=rh.transform(t),s=rh.transform(n);e[o.array]=`${a} ${s}`}(d,o,a,s,!1)}let rN=()=>({...rk(),attrs:{}});function rR(e,t){let n=(0,A.useMemo)(()=>{let n=rN();return rP(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};rE(t,e.style,e),n.style={...t,...n.style}}return n}let rD=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function rL(e,{style:t,vars:n},r,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(r)),n)e.style.setProperty(o,n[o])}let rZ=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function rF(e,t,n,r){for(let n in rL(e,t,void 0,r),t.attrs)e.setAttribute(rZ.has(n)?n:rD(n),t.attrs[n])}function rz(e){let{style:t}=e,n={};for(let r in t)(n9(t[r])||n7(r,e))&&(n[r]=t[r]);return n}function rV(e){let t=rz(e);for(let n in e)if(n9(e[n])){let r="x"===n||"y"===n?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function rI(e,t,n,r={},i={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),t}let rB=e=>Array.isArray(e),rH=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),rU=e=>rB(e)?e[e.length-1]||0:e;function rW(e){let t=n9(e)?e.get():e;return rH(t)?t.toValue():t}let rq=e=>(t,n)=>{let r=(0,A.useContext)(nI),i=(0,A.useContext)(nO),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){let a={latestValues:function(e,t,n,r){let i={},o=r(e);for(let e in o)i[e]=rW(o[e]);let{initial:a,animate:s}=e,l=n$(e),u=nK(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial;c=c||!1===a;let d=c?s:a;if(d&&"boolean"!=typeof d&&!nW(d)){let t=Array.isArray(d)?d:[d];t.forEach(t=>{let n=rI(e,t);if(!n)return;let{transitionEnd:r,transition:o,...a}=n;for(let e in a){let t=a[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let e in r)i[e]=r[e]})}return i}(r,i,o,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a})(e,t,r,i);return n?o():nM(o)},r$={useVisualState:rq({scrapeMotionValuesFromProps:rV,createRenderState:rN,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}rP(n,r,{enableHardwareAcceleration:!1},e.transformTemplate),rF(t,n)}})},rK={useVisualState:rq({scrapeMotionValuesFromProps:rz,createRenderState:rk})};function rY(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function rG(e,t,n,r){(0,A.useEffect)(()=>{let i=e.current;if(n&&i)return rY(i,t,n,r)},[e,t,n,r])}function rX(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function rQ(e){let t=!!e.touches;return t}(l=E||(E={})).Animate="animate",l.Hover="whileHover",l.Tap="whileTap",l.Drag="whileDrag",l.Focus="whileFocus",l.InView="whileInView",l.Exit="exit";let rJ={pageX:0,pageY:0};function r0(e,t="page"){return{point:rQ(e)?function(e,t="page"){let n=e.touches[0]||e.changedTouches[0],r=n||rJ;return{x:r[t+"X"],y:r[t+"Y"]}}(e,t):function(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}(e,t)}}let r1=(e,t=!1)=>{let n=t=>e(t,r0(t));return t?e=>{let t=e instanceof MouseEvent,r=!t||t&&0===e.button;r&&n(e)}:n},r2=()=>nS&&null===window.onpointerdown,r4=()=>nS&&null===window.ontouchstart,r3=()=>nS&&null===window.onmousedown,r5={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},r6={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function r8(e){if(r2());else if(r4())return r6[e];else if(r3())return r5[e];return e}function r7(e,t,n,r){return rY(e,r8(t),r1(n,"pointerdown"===t),r)}function r9(e,t,n,r){return rG(e,r8(t),n&&r1(n,"pointerdown"===t),r)}function ie(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let it=ie("dragHorizontal"),ir=ie("dragVertical");function ii(e){let t=!1;if("y"===e)t=ir();else if("x"===e)t=it();else{let e=it(),n=ir();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function io(){let e=ii(!0);return!e||(e(),!1)}function ia(e,t,n){return(r,i)=>{!(!rX(r)||io())&&(e.animationState&&e.animationState.setActive(E.Hover,t),n&&n(r,i))}}let is=(e,t)=>!!t&&(e===t||is(e,t.parentElement)),il=(e,t)=>n=>t(e(n)),iu=(...e)=>e.reduce(il),ic=new WeakMap,id=new WeakMap,ih=e=>{let t=ic.get(e.target);t&&t(e)},ip=e=>{e.forEach(ih)},im={some:0,all:1};function iv(e,t,n,{root:r,margin:i,amount:o="some",once:a}){(0,A.useEffect)(()=>{if(!e||!n.current)return;let s={root:null==r?void 0:r.current,rootMargin:i,threshold:"number"==typeof o?o:im[o]};return function(e,t,n){let r=function({root:e,...t}){let n=e||document;id.has(n)||id.set(n,{});let r=id.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(ip,{root:e,...t})),r[i]}(t);return ic.set(e,n),r.observe(e),()=>{ic.delete(e),r.unobserve(e)}}(n.current,s,e=>{let{isIntersecting:r}=e;if(t.isInView===r||(t.isInView=r,a&&!r&&t.hasEnteredView))return;r&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(E.InView,r);let i=n.getProps(),o=r?i.onViewportEnter:i.onViewportLeave;o&&o(e)})},[e,r,i,o])}function ig(e,t,n,{fallback:r=!0}){(0,A.useEffect)(()=>{e&&r&&("production"!==nl&&nZ(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;let{onViewportEnter:e}=n.getProps();e&&e(null),n.animationState&&n.animationState.setActive(E.InView,!0)}))},[e])}let iy=e=>t=>(e(t),null),ib={inView:iy(function({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:i={}}){let o=(0,A.useRef)({hasEnteredView:!1,isInView:!1}),a=!!(t||n||r);i.once&&o.current.hasEnteredView&&(a=!1);let s="undefined"==typeof IntersectionObserver?ig:iv;s(a,o.current,e,i)}),tap:iy(function({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:i}){let o=e||t||n||r,a=(0,A.useRef)(!1),s=(0,A.useRef)(null),l={passive:!(t||e||n||h)};function u(){s.current&&s.current(),s.current=null}function c(){return u(),a.current=!1,i.animationState&&i.animationState.setActive(E.Tap,!1),!io()}function d(t,r){c()&&(is(i.current,t.target)?e&&e(t,r):n&&n(t,r))}function f(e,t){c()&&n&&n(e,t)}function h(e,n){u(),!a.current&&(a.current=!0,s.current=iu(r7(window,"pointerup",d,l),r7(window,"pointercancel",f,l)),i.animationState&&i.animationState.setActive(E.Tap,!0),t&&t(e,n))}r9(i,"pointerdown",o?h:void 0,l),nD(u)}),focus:iy(function({whileFocus:e,visualElement:t}){let{animationState:n}=t;rG(t,"focus",e?()=>{n&&n.setActive(E.Focus,!0)}:void 0),rG(t,"blur",e?()=>{n&&n.setActive(E.Focus,!1)}:void 0)}),hover:iy(function({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){r9(r,"pointerenter",e||n?ia(r,!0,e):void 0,{passive:!e}),r9(r,"pointerleave",t||n?ia(r,!1,t):void 0,{passive:!t})})};function ix(){let e=(0,A.useContext)(nO);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:r}=e,i=(0,A.useId)();return(0,A.useEffect)(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function iw(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;rt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var ik=function(){},iE=function(){};let iS=(e,t,n)=>Math.min(Math.max(n,e),t);function i_(e,t){return e*Math.sqrt(1-t*t)}let iC=["duration","bounce"],iO=["stiffness","damping","mass"];function iM(e,t){return t.some(t=>void 0!==e[t])}function iT(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=ij(e,["from","to","restSpeed","restDelta"]);let a={done:!1,value:t},{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!iM(e,iO)&&iM(e,iC)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;ik(e<=1e4,"Spring duration must be 10 seconds or less");let a=1-t;a=iS(.05,1,a),e=iS(.01,10,e/1e3),a<1?(i=t=>{let r=t*a,i=r*e,o=i_(t,a),s=Math.exp(-i);return .001-(r-n)/o*s},o=t=>{let r=t*a,o=r*e,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-o),u=i_(Math.pow(t,2),a),c=-i(t)+.001>0?-1:1;return c*((o*n+n-s)*l)/u}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return -.001+r*i},o=t=>{let r=Math.exp(-t*e),i=(n-t)*(e*e);return r*i});let s=5/e,l=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,s);if(e*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(l,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);(t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(o),h=iA,p=iA;function m(){let e=c?-(c/1e3):0,r=n-t,o=l/(2*Math.sqrt(s*u)),a=Math.sqrt(s/u)/1e3;if(void 0===i&&(i=Math.min(Math.abs(n-t)/100,.4)),o<1){let t=i_(a,o);h=i=>{let s=Math.exp(-o*a*i);return n-s*((e+o*a*r)/t*Math.sin(t*i)+r*Math.cos(t*i))},p=n=>{let i=Math.exp(-o*a*n);return o*a*i*(Math.sin(t*n)*(e+o*a*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+o*a*r)-t*r*Math.sin(t*n))}}else if(1===o)h=t=>n-Math.exp(-a*t)*(r+(e+a*r)*t);else{let t=a*Math.sqrt(o*o-1);h=i=>{let s=Math.exp(-o*a*i),l=Math.min(t*i,300);return n-s*((e+o*a*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return m(),{next:e=>{let t=h(e);if(f)a.done=e>=d;else{let o=1e3*p(e),s=Math.abs(o)<=r,l=Math.abs(n-t)<=i;a.done=s&&l}return a.value=a.done?n:t,a},flipTarget:()=>{c=-c,[t,n]=[n,t],m()}}}iT.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let iA=e=>0,iP=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r},iN=(e,t,n)=>-n*e+n*t+e,iR=(e,t)=>n=>!!(ru(n)&&rl.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),iD=(e,t,n)=>r=>{if(!ru(r))return r;let[i,o,a,s]=r.match(ra);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},iL=ri(0,255),iZ=Object.assign(Object.assign({},rg),{transform:e=>Math.round(iL(e))}),iF={test:iR("rgb","red"),parse:iD("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+iZ.transform(e)+", "+iZ.transform(t)+", "+iZ.transform(n)+", "+ro(ry.transform(r))+")"},iz={test:iR("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:iF.transform},iV={test:iR("hsl","hue"),parse:iD("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+rf.transform(ro(t))+", "+rf.transform(ro(n))+", "+ro(ry.transform(r))+")"};function iI(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function iB({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=iI(s,r,e+1/3),o=iI(s,r,e),a=iI(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}let iH=(e,t,n)=>{let r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},iU=[iz,iF,iV],iW=e=>iU.find(t=>t.test(e)),iq=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,i$=(e,t)=>{let n=iW(e),r=iW(t);iE(!!n,iq(e)),iE(!!r,iq(t));let i=n.parse(e),o=r.parse(t);n===iV&&(i=iB(i),n=iF),r===iV&&(o=iB(o),r=iF);let a=Object.assign({},i);return e=>{for(let t in a)"alpha"!==t&&(a[t]=iH(i[t],o[t],e));return a.alpha=iN(i.alpha,o.alpha,e),n.transform(a)}},iK={test:e=>iF.test(e)||iz.test(e)||iV.test(e),parse:e=>iF.test(e)?iF.parse(e):iV.test(e)?iV.parse(e):iz.parse(e),transform:e=>ru(e)?e:e.hasOwnProperty("red")?iF.transform(e):iV.transform(e)},iY="${c}",iG="${n}";function iX(e){"number"==typeof e&&(e=`${e}`);let t=[],n=0,r=e.match(rs);r&&(n=r.length,e=e.replace(rs,iY),t.push(...r.map(iK.parse)));let i=e.match(ra);return i&&(e=e.replace(ra,iG),t.push(...i.map(rg.parse))),{values:t,numColors:n,tokenised:e}}function iQ(e){return iX(e).values}function iJ(e){let{values:t,numColors:n,tokenised:r}=iX(e),i=t.length;return e=>{let t=r;for(let r=0;r"number"==typeof e?0:e,i1={test:function(e){var t,n,r,i;return isNaN(e)&&ru(e)&&(null!==(n=null===(t=e.match(ra))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(rs))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:iQ,createTransformer:iJ,getAnimatableNone:function(e){let t=iQ(e),n=iJ(e);return n(t.map(i0))}},i2=e=>"number"==typeof e;function i4(e,t){return i2(e)?n=>iN(e,t,n):iK.test(e)?i$(e,t):i8(e,t)}let i3=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>i4(e,t[n]));return e=>{for(let t=0;t{let n=Object.assign(Object.assign({},e),t),r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=i4(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}};function i6(e){let t=i1.parse(e),n=t.length,r=0,i=0,o=0;for(let e=0;e{let n=i1.createTransformer(t),r=i6(e),i=i6(t),o=r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers;return o?iu(i3(r.parsed,i.parsed),n):(ik(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?t:e}`)},i7=(e,t)=>n=>iN(e,t,n);function i9(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;iE(o===t.length,"Both input and output ranges must be the same length"),iE(!r||!Array.isArray(r)||r.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let a=function(e,t,n){var r;let i=[],o=n||("number"==typeof(r=e[0])?i7:"string"==typeof r?iK.test(r)?i$:i8:Array.isArray(r)?i3:"object"==typeof r?i5:void 0),a=e.length-1;for(let n=0;nn(iP(e,t,r))}(e,a):function(e,t){let n=e.length,r=n-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[r]&&(o=r-1,a=!0),!a){let t=1;for(;ti)&&t!==r;t++);o=t-1}let s=iP(e[o],e[o+1],i);return t[o](s)}}(e,a);return n?t=>s(iS(e[0],e[o-1],t)):s}let oe=e=>t=>1-e(1-t),ot=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,on=e=>t=>t*t*((e+1)*t-e),or=4/11,oi=8/11,oo=e=>e,oa=e=>Math.pow(e,2),os=oe(oa),ol=ot(oa),ou=e=>1-Math.sin(Math.acos(e)),oc=oe(ou),od=ot(oc),of=on(1.525),oh=oe(of),op=ot(of),om=(e=>{let t=on(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(0),ov=4356/361,og=35442/1805,oy=16061/1805,ob=e=>{if(1===e||0===e)return e;let t=e*e;return e0!==n?n/(t-1):0)}(a)).map(e=>e*i);function l(){return i9(s,a,{ease:Array.isArray(n)?n:a.map(()=>n||ol).splice(0,a.length-1)})}let u=l();return{next:e=>(o.value=u(e),o.done=e>=i,o),flipTarget:()=>{a.reverse(),u=l()}}}let oj={keyframes:ow,spring:iT,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){let a={done:!1,value:t},s=n*e,l=t+s,u=void 0===o?l:o(l);return u!==l&&(s=u-t),{next:e=>{let t=-s*Math.exp(-e/r);return a.done=!(t>i||t<-i),a.value=a.done?u:u+t,a},flipTarget:()=>{}}}};function ok(e,t,n=0){return e-t-n}let oE=e=>{let t=({delta:t})=>e(t);return{start:()=>ny.update(t,!0),stop:()=>nb.update(t)}};function oS(e){let t,n,r;var i,{from:o,autoplay:a=!0,driver:s=oE,elapsed:l=0,repeat:u=0,repeatType:c="loop",repeatDelay:d=0,onPlay:f,onStop:h,onComplete:p,onRepeat:m,onUpdate:v}=e,g=ij(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:y}=g,b=0,x=g.duration,w=!1,j=!0,k=function(e){if(Array.isArray(e.to))return ow;if(oj[e.type])return oj[e.type];let t=new Set(Object.keys(e));if(t.has("ease")||t.has("duration")&&!t.has("dampingRatio"));else if(t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta"))return iT;return ow}(g);(null===(i=k.needsInterpolation)||void 0===i?void 0:i.call(k,o,y))&&(r=i9([0,100],[o,y],{clamp:!1}),o=0,y=100);let E=k(Object.assign(Object.assign({},g),{from:o,to:y}));return a&&(null==f||f(),(t=s(function(e){if(j||(e=-e),l+=e,!w){let e=E.next(Math.max(0,l));n=e.value,r&&(n=r(n)),w=j?e.done:l<=0}if(null==v||v(n),w){if(0===b&&(null!=x||(x=l)),b=o+d:i<=-d)&&(b++,"reverse"===c?l=function(e,t,n=0,r=!0){return r?ok(t+-e,t,n):t-(e-t)+n}(l,x,d,j=b%2==0):(l=ok(l,x,d),"mirror"===c&&E.flipTarget()),w=!1,m&&m())}else t.stop(),p&&p()}})).start()),{stop:()=>{null==h||h(),t.stop()}}}let o_=e=>1e3*e,oC=(e,t)=>1-3*t+3*e,oO=(e,t)=>3*t-6*e,oM=e=>3*e,oT=(e,t,n)=>((oC(t,n)*e+oO(t,n))*e+oM(t))*e,oA=(e,t,n)=>3*oC(t,n)*e*e+2*oO(t,n)*e+oM(t),oP={linear:oo,easeIn:oa,easeInOut:ol,easeOut:os,circIn:ou,circInOut:od,circOut:oc,backIn:of,backInOut:op,backOut:oh,anticipate:om,bounceIn:ox,bounceInOut:e=>e<.5?.5*(1-ob(1-2*e)):.5*ob(2*e-1)+.5,bounceOut:ob},oN=e=>{if(Array.isArray(e)){iE(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,i]=e;return function(e,t,n,r){if(e===t&&n===r)return oo;let i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=oT(.1*t,e,n);return o=>0===o||1===o?o:oT(function(t){let r=0,o=1;for(;10!==o&&i[o]<=t;++o)r+=.1;--o;let a=(t-i[o])/(i[o+1]-i[o]),s=r+.1*a,l=oA(s,e,n);return l>=.001?function(e,t,n,r){for(let i=0;i<8;++i){let i=oA(t,n,r);if(0===i)break;let o=oT(t,n,r)-e;t-=o/i}return t}(t,s,e,n):0===l?s:function(e,t,n,r,i){let o,a;let s=0;do(o=oT(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a;while(Math.abs(o)>1e-7&&++s<10);return a}(t,r,r+.1,e,n)}(o),t,r)}(t,n,r,i)}return"string"==typeof e?(iE(void 0!==oP[e],`Invalid easing type '${e}'`),oP[e]):e},oR=e=>Array.isArray(e)&&"number"!=typeof e[0],oD=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&i1.test(t)&&!t.startsWith("url(")),oL=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),oZ=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),oF=()=>({type:"keyframes",ease:"linear",duration:.3}),oz=e=>({type:"keyframes",duration:.8,values:e}),oV={x:oL,y:oL,z:oL,rotate:oL,rotateX:oL,rotateY:oL,rotateZ:oL,scaleX:oZ,scaleY:oZ,scale:oZ,opacity:oF,backgroundColor:oF,color:oF,default:oZ},oI=(e,t)=>({to:t,...(rB(t)?oz:oV[e]||oV.default)(t)}),oB=new Set(["brightness","contrast","saturate","opacity"]);function oH(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(ra)||[];if(!r)return e;let i=n.replace(r,""),o=oB.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}let oU=/([a-z-]*)\(.*?\)/g,oW=Object.assign(Object.assign({},i1),{getAnimatableNone:e=>{let t=e.match(oU);return t?t.map(oH).join(" "):e}}),oq={...rw,color:iK,backgroundColor:iK,outlineColor:iK,fill:iK,stroke:iK,borderColor:iK,borderTopColor:iK,borderRightColor:iK,borderBottomColor:iK,borderLeftColor:iK,filter:oW,WebkitFilter:oW},o$=e=>oq[e];function oK(e,t){var n;let r=o$(e);return r!==oW&&(r=i1),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}let oY={current:!1};function oG(e,t){let n=performance.now(),r=({timestamp:i})=>{let o=i-n;o>=t&&(nb.read(r),e(o-t))};return ny.read(r,!0),()=>nb.read(r)}let oX=!1;function oQ(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function oJ(e){return"number"==typeof e?0:oK("",e)}function o0(e,t){return e[t]||e.default||e}function o1(e,t,n,r={}){return oY.current&&(r={type:!1}),t.start(i=>{let o,a;let s=function(e,t,n,r,i){let o=o0(r,e)||{},a=void 0!==o.from?o.from:t.get(),s=oD(e,n);"none"===a&&s&&"string"==typeof n?a=oK(e,n):oQ(a)&&"string"==typeof n?a=oJ(n):!Array.isArray(n)&&oQ(n)&&"string"==typeof a&&(n=oJ(a));let l=oD(e,a);return ik(l===s,`You are trying to animate ${e} from "${a}" to "${n}". ${a} is not an animatable value - to enable this animation set ${a} to a value animatable to ${n} via the \`style\` property.`),l&&s&&!1!==o.type?function(){var r;let s={from:a,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:e=>t.set(e)};return"inertia"===o.type||"decay"===o.type?function({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:f,onStop:h}){let p;function m(e){return void 0!==n&&er}function v(e){return void 0===n?r:void 0===r?n:Math.abs(n-e){var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:h}))}function y(e){g(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:l},e))}if(m(e))y({from:e,velocity:t,to:v(e)});else{let r,a,s=i*t+e;void 0!==u&&(s=u(s));let c=v(s),d=c===n?-1:1;g({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:l,modifyTarget:u,onUpdate:m(s)?e=>{var n;r=a,a=e,t=(n=nE().delta)?(e-r)*(1e3/n):0,(1===d&&e>c||-1===d&&enull==p?void 0:p.stop()}}({...s,...o}):oS({...(r=o,Array.isArray(s.to)&&void 0===r.duration&&(r.duration=.8),Array.isArray(s.to)&&null===s.to[0]&&(s.to=[...s.to],s.to[0]=s.from),!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,...u}){return!!Object.keys(u).length}(r)&&(r={...r,...oI(e,s.to)}),{...s,...function({ease:e,times:t,yoyo:n,flip:r,loop:i,...o}){let a={...o};return t&&(a.offset=t),o.duration&&(a.duration=o_(o.duration)),o.repeatDelay&&(a.repeatDelay=o_(o.repeatDelay)),e&&(a.ease=oR(e)?e.map(oN):oN(e)),"tween"===o.type&&(a.type="keyframes"),(n||i||r)&&(ik(!oX,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),oX=!0,n?a.repeatType="reverse":i?a.repeatType="loop":r&&(a.repeatType="mirror"),a.repeat=i||n||r||o.repeat),"spring"!==o.type&&(a.type="keyframes"),a}(r)}),onUpdate:e=>{s.onUpdate(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{s.onComplete(),o.onComplete&&o.onComplete()}})}:function(){let e=rU(n);return t.set(e),i(),o.onUpdate&&o.onUpdate(e),o.onComplete&&o.onComplete(),{stop:()=>{}}}}(e,t,n,r,i),l=function(e,t){var n,r;let i=o0(e,t)||{};return null!==(r=null!==(n=i.delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=()=>o=s();return l?a=oG(u,o_(l)):u(),()=>{a&&a(),o&&o.stop()}})}let o2=e=>/^\-?\d*\.?\d+$/.test(e),o4=e=>/^0[^.\s]+$/.test(e);function o3(e,t){-1===e.indexOf(t)&&e.push(t)}function o5(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class o6{constructor(){this.subscriptions=[]}add(e){return o3(this.subscriptions,e),()=>o5(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i!isNaN(parseFloat(e));class o7{constructor(e){this.version="7.6.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new o6,this.velocityUpdateSubscribers=new o6,this.renderSubscribers=new o6,this.canTrackVelocity=!1,this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:n,timestamp:r}=nE();this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,ny.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),t&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>ny.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=o8(this.current)}onChange(e){return this.updateSubscribers.add(e)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(e){return e(this.get()),this.renderSubscribers.add(e)}attach(e){this.passiveEffect=e}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){var e,t;return this.canTrackVelocity?(e=parseFloat(this.current)-parseFloat(this.prev),(t=this.timeDelta)?e*(1e3/t):0):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.stopAnimation=e(t)}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function o9(e){return new o7(e)}let ae=e=>t=>t.test(e),at=[rg,rh,rf,rd,rm,rp,{test:e=>"auto"===e,parse:e=>e}],an=e=>at.find(ae(e)),ar=[...at,iK,i1],ai=e=>ar.find(ae(e));function ao(e,t,n){let r=e.getProps();return rI(r,t,void 0!==n?n:r.custom,function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}function aa(e){return!!(n9(e)&&e.add)}function as(e,t,n={}){var r;let i=ao(e,t,n.custom),{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);let a=i?()=>al(e,i,n):()=>Promise.resolve(),s=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?(r=0)=>{let{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,i=1,o){let a=[],s=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(au).forEach((e,r)=>{a.push(as(e,t,{...o,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([a(),s(n.delay)]);{let[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then(t)}}function al(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t),u=e.getValue("willChange");r&&(a=r);let c=[],d=i&&(null===(o=e.animationState)||void 0===o?void 0:o.getState()[i]);for(let t in l){let r=e.getValue(t),i=l[t];if(!r||void 0===i||d&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(d,t))continue;let o={delay:n,...a};e.shouldReduceMotion&&n8.has(t)&&(o={...o,type:!1,delay:0});let s=o1(t,r,i,o);aa(u)&&(u.add(t),s=s.then(()=>u.remove(t))),c.push(s)}return Promise.all(c).then(()=>{s&&function(e,t){let n=ao(e,t),{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};for(let t in o={...o,...r}){let n=rU(o[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,o9(n))}}(e,s)})}function au(e,t){return e.sortNodePosition(t)}let ac=[E.Animate,E.InView,E.Focus,E.Hover,E.Tap,E.Drag,E.Exit],ad=[...ac].reverse(),af=ac.length;function ah(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let ap={animation:iy(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){let i=t.map(t=>as(e,t,n));r=Promise.all(i)}else if("string"==typeof t)r=as(e,t,n);else{let i="function"==typeof t?ao(e,t,n.custom):t;r=al(e,i,n)}return r.then(()=>e.notify("AnimationComplete",t))})(e,t,n))),n={[E.Animate]:ah(!0),[E.InView]:ah(),[E.Hover]:ah(),[E.Tap]:ah(),[E.Drag]:ah(),[E.Focus]:ah(),[E.Exit]:ah()},r=!0,i=(t,n)=>{let r=ao(e,n);if(r){let{transition:e,transitionEnd:n,...i}=r;t={...t,...i,...n}}return t};function o(o,a){var s,l;let u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set,h={},p=1/0;for(let t=0;tp&&y,k=Array.isArray(g)?g:[g],E=k.reduce(i,{});!1===b&&(E={});let{prevResolvedValues:S={}}=v,_={...S,...E},C=e=>{j=!0,f.delete(e),v.needsAnimating[e]=!0};for(let e in _){let t=E[e],n=S[e];h.hasOwnProperty(e)||(t!==n?rB(t)&&rB(n)?!iw(t,n)||w?C(e):v.protectedKeys[e]=!0:void 0!==t?C(e):f.add(e):void 0!==t&&f.has(e)?C(e):v.protectedKeys[e]=!0)}v.prevProp=g,v.prevResolvedValues=E,v.isActive&&(h={...h,...E}),r&&e.blockInitialAnimation&&(j=!1),j&&!x&&d.push(...k.map(e=>({animation:e,options:{type:m,...o}})))}if(f.size){let t={};f.forEach(n=>{let r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)}),d.push({animation:t})}let m=!!d.length;return r&&!1===u.initial&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(d):Promise.resolve()}return{animateChanges:o,setActive:function(t,r,i){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;let s=o(i,t);for(let e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}(e)),nW(t)&&(0,A.useEffect)(()=>t.subscribe(e),[t])}),exit:iy(e=>{let{custom:t,visualElement:n}=e,[r,i]=ix(),o=(0,A.useContext)(nO);(0,A.useEffect)(()=>{n.isPresent=r;let e=n.animationState&&n.animationState.setActive(E.Exit,!r,{custom:o&&o.custom||t});e&&!r&&e.then(i)},[r])})},am=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),av=e=>am(e)&&e.hasOwnProperty("z"),ag=(e,t)=>Math.abs(e-t);function ay(e,t){if(i2(e)&&i2(t))return ag(e,t);if(am(e)&&am(t)){let n=ag(e.x,t.x),r=ag(e.y,t.y),i=av(e)&&av(t)?ag(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}class ab{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=aj(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=ay(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=nE();this.history.push({...r,timestamp:i});let{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{if(this.lastMoveEvent=e,this.lastMoveEventInfo=ax(t,this.transformPagePoint),rX(e)&&0===e.buttons){this.handlePointerUp(e,t);return}ny.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r}=this.handlers,i=aj(ax(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},rQ(e)&&e.touches.length>1)return;this.handlers=t,this.transformPagePoint=n;let r=r0(e),i=ax(r,this.transformPagePoint),{point:o}=i,{timestamp:a}=nE();this.history=[{...o,timestamp:a}];let{onSessionStart:s}=t;s&&s(e,aj(i,this.history)),this.removeListeners=iu(r7(window,"pointermove",this.handlePointerMove),r7(window,"pointerup",this.handlePointerUp),r7(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),nb.update(this.updatePoint)}}function ax(e,t){return t?{point:t(e.point)}:e}function aw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function aj({point:e},t){return{point:e,delta:aw(e,ak(t)),offset:aw(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=ak(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>o_(.1)));)n--;if(!r)return{x:0,y:0};let o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};let a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function ak(e){return e[e.length-1]}function aE(e){return e.max-e.min}function aS(e,t=0,n=.01){return ay(e,t)({translate:0,scale:1,origin:0,originPoint:0}),aL=()=>({x:aD(),y:aD()}),aZ=()=>({min:0,max:0}),aF=()=>({x:aZ(),y:aZ()});function az(e){return[e("x"),e("y")]}function aV({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function aI(e){return void 0===e||1===e}function aB({scale:e,scaleX:t,scaleY:n}){return!aI(e)||!aI(t)||!aI(n)}function aH(e){return aB(e)||aU(e)||e.z||e.rotate||e.rotateX||e.rotateY}function aU(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function aW(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function aq(e,t=0,n=1,r,i){e.min=aW(e.min,t,n,r,i),e.max=aW(e.max,t,n,r,i)}function a$(e,{x:t,y:n}){aq(e.x,t.translate,t.scale,t.originPoint),aq(e.y,n.translate,n.scale,n.originPoint)}function aK(e,t){e.min=e.min+t,e.max=e.max+t}function aY(e,t,[n,r,i]){let o=void 0!==t[i]?t[i]:.5,a=iN(e.min,e.max,o);aq(e,t[n],t[r],a,t.scale)}let aG=["x","scaleX","originX"],aX=["y","scaleY","originY"];function aQ(e,t){aY(e.x,t,aG),aY(e.y,t,aX)}function aJ(e,t){return aV(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}let a0=new WeakMap;class a1{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=aF(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){!1!==this.visualElement.isPresent&&(this.panSession=new ab(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(r0(e,"page").point)},onStart:(e,t)=>{var n;let{drag:r,dragPropagation:i,onDragStart:o}=this.getProps();(!r||i||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ii(r),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),az(e=>{var t,n;let r=this.getAxisMotionValue(e).get()||0;if(rf.test(r)){let i=null===(n=null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===n?void 0:n.actual[e];if(i){let e=aE(i);r=e*(parseFloat(r)/100)}}this.originPoint[e]=r}),null==o||o(e,t),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(E.Drag,!0))},onMove:(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&(null==i||i(this.currentDirection));return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),null==o||o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()}))}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();null==i||i(e,t)}cancel(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(E.Drag,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!a2(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&en&&(e=r?iN(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&nH(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:aA(e.x,n,i),y:aA(e.y,t,r)}}(n.actual,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:aN(e,"left","right"),y:aN(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&az(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.actual[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!nH(t))return!1;let r=t.current;iE(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,n){let r=aJ(e,n),{scroll:i}=t;return i&&(aK(r.x,i.x),aK(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a={x:aP((e=i.layout.actual).x,o.x),y:aP(e.y,o.y)};if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=aV(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=az(a=>{var l;if(!a2(a,t,this.currentDirection))return;let u=null!==(l=null==s?void 0:s[a])&&void 0!==l?l:{};o&&(u={min:0,max:0});let c={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...u};return this.startAxisValueAnimation(a,c)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return o1(e,n,0,t)}stopAnimation(){az(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){var t,n;let r="_drag"+e.toUpperCase(),i=this.visualElement.getProps()[r];return i||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)}snapToCursor(e){az(t=>{let{drag:n}=this.getProps();if(!a2(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.actual[t];i.set(e[t]-iN(n,o,.5))}})}scalePositionWithinConstraints(){var e;if(!this.visualElement.current)return;let{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!nH(n)||!r||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};az(e=>{let t=this.getAxisMotionValue(e);if(t){let n=t.get();i[e]=function(e,t){let n=.5,r=aE(e),i=aE(t);return i>r?n=iP(t.min,t.max-r,e.min):r>i&&(n=iP(e.min,e.max-i,t.min)),iS(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",null===(e=r.root)||void 0===e||e.updateScroll(),r.updateLayout(),this.resolveConstraints(),az(e=>{if(!a2(e,t,null))return;let n=this.getAxisMotionValue(e),{min:r,max:o}=this.constraints[e];n.set(iN(r,o,i[e]))})}addListeners(){var e;if(!this.visualElement.current)return;a0.set(this.visualElement,this);let t=this.visualElement.current,n=r7(t,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),r=()=>{let{dragConstraints:e}=this.getProps();nH(e)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),r();let a=rY(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(az(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),null==s||s()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function a2(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let a4={pan:iy(function({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:i}){let o=e||t||n||r,a=(0,A.useRef)(null),{transformPagePoint:s}=(0,A.useContext)(nV),l={onSessionStart:r,onStart:t,onMove:e,onEnd:(e,t)=>{a.current=null,n&&n(e,t)}};(0,A.useEffect)(()=>{null!==a.current&&a.current.updateHandlers(l)}),r9(i,"pointerdown",o&&function(e){a.current=new ab(e,l,{transformPagePoint:s})}),nD(()=>a.current&&a.current.end())}),drag:iy(function(e){let{dragControls:t,visualElement:n}=e,r=nM(()=>new a1(n));(0,A.useEffect)(()=>t&&t.subscribe(r),[r,t]),(0,A.useEffect)(()=>r.addListeners(),[r])})};function a3(e){return"string"==typeof e&&e.startsWith("var(--")}let a5=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function a6(e,t,n=1){iE(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,i]=function(e){let t=a5.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]}(e);if(!r)return;let o=window.getComputedStyle(t).getPropertyValue(r);return o?o.trim():a3(i)?a6(i,t,n+1):i}let a8=new Set(["width","height","top","left","right","bottom","x","y"]),a7=e=>a8.has(e),a9=e=>Object.keys(e).some(a7),se=(e,t)=>{e.set(t,!1),e.set(t)},st=e=>e===rg||e===rh;(u=S||(S={})).width="width",u.height="height",u.left="left",u.right="right",u.top="top",u.bottom="bottom";let sn=(e,t)=>parseFloat(e.split(", ")[t]),sr=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/);if(i)return sn(i[1],t);{let t=r.match(/^matrix\((.+)\)$/);return t?sn(t[1],e):0}},si=new Set(["x","y","z"]),so=n6.filter(e=>!si.has(e)),sa={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:sr(4,13),y:sr(5,14)},ss=(e,t,n)=>{let r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{s[e]=sa[e](r,o)}),t.render();let l=t.measureViewportBox();return n.forEach(n=>{let r=t.getValue(n);se(r,s[n]),e[n]=sa[n](l,o)}),e},sl=(e,t,n={},r={})=>{t={...t},r={...r};let i=Object.keys(t).filter(a7),o=[],a=!1,s=[];if(i.forEach(i=>{let l;let u=e.getValue(i);if(!e.hasValue(i))return;let c=n[i],d=an(c),f=t[i];if(rB(f)){let e=f.length,t=null===f[0]?1:0;d=an(c=f[t]);for(let n=t;n{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),a=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:t[i],se(u,f))}}),!s.length)return{target:t,transitionEnd:r};{let n=s.indexOf("height")>=0?window.pageYOffset:null,i=ss(t,e,s);return o.length&&o.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),nS&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}},su=(e,t,n,r)=>{var i,o;let a=function(e,{...t},n){let r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};for(let i in n&&(n={...n}),e.values.forEach(e=>{let t=e.get();if(!a3(t))return;let n=a6(t,r);n&&e.set(n)}),t){let e=t[i];if(!a3(e))continue;let o=a6(e,r);o&&(t[i]=o,n&&void 0===n[i]&&(n[i]=e))}return{target:t,transitionEnd:n}}(e,t,r);return t=a.target,r=a.transitionEnd,i=t,o=r,a9(i)?sl(e,i,n,o):{target:i,transitionEnd:o}},sc={current:null},sd={current:!1},sf=Object.keys(nX),sh=sf.length,sp=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class sm{constructor({parent:e,props:t,reducedMotionConfig:n,visualState:r},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>ny.render(this.render,!1,!0);let{latestValues:o,renderState:a}=r;this.latestValues=o,this.baseTarget={...o},this.initialValues=t.initial?{...o}:{},this.renderState=a,this.parent=e,this.props=t,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=i,this.isControllingVariants=n$(t),this.isVariantNode=nK(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:s,...l}=this.scrapeMotionValuesFromProps(t);for(let e in l){let t=l[e];void 0!==o[e]&&n9(t)&&(t.set(o[e],!1),aa(s)&&s.add(e))}if(t.values)for(let e in t.values){let n=t.values[e];void 0!==o[e]&&n9(n)&&n.set(o[e])}}scrapeMotionValuesFromProps(e){return{}}mount(e){var t;this.current=e,this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===(t=this.parent)||void 0===t?void 0:t.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),sd.current||function(){if(sd.current=!0,nS){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>sc.current=e.matches;e.addListener(t),t()}else sc.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||sc.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var e,t,n;for(let r in null===(e=this.projection)||void 0===e||e.unmount(),nb.update(this.notifyUpdate),nb.render(this.render),this.valueSubscriptions.forEach(e=>e()),null===(t=this.removeFromVariantTree)||void 0===t||t.call(this),null===(n=this.parent)||void 0===n||n.children.delete(this),this.events)this.events[r].clear();this.current=null}bindToMotionValue(e,t){let n=t.onChange(t=>{this.latestValues[e]=t,this.props.onUpdate&&ny.update(this.notifyUpdate,!1,!0)}),r=t.onRenderRequest(this.scheduleRender);this.valueSubscriptions.set(e,()=>{n(),r()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures(e,t,n,r,i,o){let a=[];"production"!==nl&&n&&t&&iE(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let t=0;tthis.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:l})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):aF()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}setProps(e){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=e;for(let t=0;tn.variantChildren.delete(e)}addValue(e,t){this.hasValue(e)&&this.removeValue(e),this.values.set(e,t),this.latestValues[e]=t.get(),this.bindToMotionValue(e,t)}removeValue(e){var t;this.values.delete(e),null===(t=this.valueSubscriptions.get(e))||void 0===t||t(),this.valueSubscriptions.delete(e),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=o9(t),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=rI(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||n9(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new o6),this.events[e].add(t)}notify(e,...t){var n;null===(n=this.events[e])||void 0===n||n.notify(...t)}}let sv=["initial",...ac],sg=sv.length;class sy extends sm{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},i){let o=function(e,t,n){var r;let i={};for(let o in e){let e=function(e,t){if(!t)return;let n=t[e]||t.default||t;return n.from}(o,t);i[o]=void 0!==e?e:null===(r=n.getValue(o))||void 0===r?void 0:r.get()}return i}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),o&&(o=r(o))),i){!function(e,t,n){var r,i;let o=Object.keys(t).filter(t=>!e.hasValue(t)),a=o.length;if(a)for(let s=0;sn3(e)?new sx(t,{enableHardwareAcceleration:!1}):new sb(t,{enableHardwareAcceleration:!0});function sj(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let sk={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!rh.test(e))return e;e=parseFloat(e)}let n=sj(e,t.target.x),r=sj(e,t.target.y);return`${n}% ${r}%`}},sE="_$css",sS={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=e.includes("var("),o=[];i&&(e=e.replace(a5,e=>(o.push(e),sE)));let a=i1.parse(e);if(a.length>5)return r;let s=i1.createTransformer(e),l="number"!=typeof a[0]?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;a[0+l]/=u,a[1+l]/=c;let d=iN(u,c,.5);"number"==typeof a[2+l]&&(a[2+l]/=d),"number"==typeof a[3+l]&&(a[3+l]/=d);let f=s(a);if(i){let e=0;f=f.replace(sE,()=>{let t=o[e];return e++,t})}return f}};class s_ extends A.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;Object.assign(n5,sC),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),nQ.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,r||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent===i||(i?o.promote():o.relegate()||ny.postRender(()=>{var e;(null===(e=o.getStack())||void 0===e?void 0:e.members.length)||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),(null==t?void 0:t.group)&&t.group.remove(r),(null==n?void 0:n.deregister)&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;null==e||e()}render(){return null}}let sC={borderRadius:{...sk,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sk,borderTopRightRadius:sk,borderBottomLeftRadius:sk,borderBottomRightRadius:sk,boxShadow:sS},sO=["TopLeft","TopRight","BottomLeft","BottomRight"],sM=sO.length,sT=e=>"string"==typeof e?parseFloat(e):e,sA=e=>"number"==typeof e||rh.test(e);function sP(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}let sN=sD(0,.5,oc),sR=sD(.5,.95,oo);function sD(e,t,n){return r=>rt?1:n(iP(e,t,r))}function sL(e,t){e.min=t.min,e.max=t.max}function sZ(e,t){sL(e.x,t.x),sL(e.y,t.y)}function sF(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function sz(e,t,[n,r,i],o,a){!function(e,t=0,n=1,r=.5,i,o=e,a=e){if(rf.test(t)){t=parseFloat(t);let e=iN(a.min,a.max,t/100);t=e-a.min}if("number"!=typeof t)return;let s=iN(o.min,o.max,r);e===o&&(s-=t),e.min=sF(e.min,t,n,s,i),e.max=sF(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,o,a)}let sV=["x","scaleX","originX"],sI=["y","scaleY","originY"];function sB(e,t,n,r){sz(e.x,t,sV,null==n?void 0:n.x,null==r?void 0:r.x),sz(e.y,t,sI,null==n?void 0:n.y,null==r?void 0:r.y)}function sH(e){return 0===e.translate&&1===e.scale}function sU(e){return sH(e.x)&&sH(e.y)}function sW(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function sq(e){return aE(e.x)/aE(e.y)}class s${constructor(){this.members=[]}add(e){o3(this.members,e),e.scheduleRender()}remove(e){if(o5(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){var n;let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0);let{crossfade:i}=e.options;!1===i&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{var t,n,r,i,o;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(o=null===(r=e.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===o||o.call(i)})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function sK(e,t,n){let r=e.x.translate/t.x,i=e.y.translate/t.y,o=`translate3d(${r}px, ${i}px, 0) `;if(o+=`scale(${1/t.x}, ${1/t.y}) `,n){let{rotate:e,rotateX:t,rotateY:r}=n;e&&(o+=`rotate(${e}deg) `),t&&(o+=`rotateX(${t}deg) `),r&&(o+=`rotateY(${r}deg) `)}let a=e.x.scale*t.x,s=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"==(o+=`scale(${a}, ${s})`)?"none":o}let sY=(e,t)=>e.depth-t.depth;class sG{constructor(){this.children=[],this.isDirty=!1}add(e){o3(this.children,e),this.isDirty=!0}remove(e){o5(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(sY),this.isDirty=!1,this.children.forEach(e)}}let sX=["","X","Y","Z"];function sQ({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e,n={},r=null==t?void 0:t()){this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(s5),this.nodes.forEach(s6)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=n,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(let e=0;ethis.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=oG(r,250),nQ.hasAnimatedSinceResize&&(nQ.hasAnimatedSinceResize=!1,this.nodes.forEach(s3))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&a&&(i||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{var i,o,s,l,u;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let c=null!==(o=null!==(i=this.options.transition)&&void 0!==i?i:a.getDefaultTransition())&&void 0!==o?o:ln,{onLayoutAnimationStart:d,onLayoutAnimationComplete:f}=a.getProps(),h=!this.targetLayout||!sW(this.targetLayout,r)||n,p=!t&&n;if((null===(s=this.resumeFrom)||void 0===s?void 0:s.instance)||p||t&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,p);let t={...o0(c,"layout"),onPlay:d,onComplete:f};a.shouldReduceMotion&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||s3(this),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=r})}unmount(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,nb.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1}startUpdate(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(s8))}willUpdate(e=!0){var t,n,r;if(this.root.isUpdateBlocked()){null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;let e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));lo(t),this.snapshot={measured:e,layout:t,latestValues:{}}}updateLayout(){var e;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0),c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(lt));this.animationProgress=0,this.mixTargetDelta=t=>{var n,r,d;let f=t/1e3;s9(a.x,e.x,f),s9(a.y,e.y,f),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(aT(s,this.layout.actual,this.relativeParent.layout.actual),r=this.relativeTarget,d=this.relativeTargetOrigin,le(r.x,d.x,s.x,f),le(r.y,d.y,s.y,f)),l&&(this.animationValues=o,function(e,t,n,r,i,o){var a,s,l,u;i?(e.opacity=iN(0,null!==(a=n.opacity)&&void 0!==a?a:1,sN(r)),e.opacityExit=iN(null!==(s=t.opacity)&&void 0!==s?s:1,0,sR(r))):o&&(e.opacity=iN(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(let i=0;i{nQ.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n={}){let r=n9(e)?e:o9(e);return o1("",r,1e3,n),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}(0,0,{...e,onUpdate:t=>{var n;this.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:()=>{var t;null===(t=e.onComplete)||void 0===t||t.call(e),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&la(this.options.animationType,this.layout.actual,r.actual)){n=this.target||aF();let t=aE(this.layout.actual.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=aE(this.layout.actual.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}sZ(t,n),aQ(t,i),aC(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new s$);let o=this.sharedNodes.get(e);o.add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(i=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(r,t)})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,n={};for(let r=0;r{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(s2),this.root.sharedNodes.clear()}}}function sJ(e){e.updateLayout()}function s0(e){var t,n,r;let i=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){let{actual:t,measured:n}=e.layout,{animationType:r}=e.options;"size"===r?az(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=aE(n);n.min=t[e].min,n.max=n.min+r}):la(r,i.layout,t)&&az(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=aE(t[e]);n.max=n.min+r});let o=aL();aC(o,t,i.layout);let a=aL();i.isShared?aC(a,e.applyTransform(n,!0),i.measured):aC(a,t,i.layout);let s=!sU(o),l=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:e,layout:r}=n;if(e&&r){let n=aF();aT(n,i.layout,e.layout);let o=aF();aT(o,t,r.actual),sW(n,o)||(l=!0)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:s,hasRelativeTargetChanged:l})}else e.isLead()&&(null===(r=(n=e.options).onExitComplete)||void 0===r||r.call(n));e.options.transition=void 0}function s1(e){e.clearSnapshot()}function s2(e){e.clearMeasurements()}function s4(e){let{visualElement:t}=e.options;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function s3(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function s5(e){e.resolveTargetDelta()}function s6(e){e.calcProjection()}function s8(e){e.resetRotation()}function s7(e){e.removeLeadSnapshot()}function s9(e,t,n){e.translate=iN(t.translate,0,n),e.scale=iN(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function le(e,t,n,r){e.min=iN(t.min,n.min,r),e.max=iN(t.max,n.max,r)}function lt(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let ln={duration:.45,ease:[.4,0,.1,1]};function lr(e,t){let n=e.root;for(let t=e.path.length-1;t>=0;t--)if(e.path[t].instance){n=e.path[t];break}let r=n&&n!==e.root?n.instance:document,i=r.querySelector(`[data-projection-id="${t}"]`);i&&e.mount(i,!0)}function li(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function lo(e){li(e.x),li(e.y)}function la(e,t,n){return"position"===e||"preserve-aspect"===e&&!function(e,t,n=.1){return ay(e,t)<=n}(sq(t),sq(n),.2)}let ls=sQ({attachResizeListener:(e,t)=>rY(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ll={current:void 0},lu=sQ({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ll.current){let e=new ls(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),ll.current=e}return ll.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),lc={...ap,...ib,...a4,measureLayout:function(e){let[t,n]=ix(),r=(0,A.useContext)(nR);return A.createElement(s_,{...e,layoutGroup:r,switchLayoutGroup:(0,A.useContext)(n1),isPresent:t,safeToRemove:n})}},ld=function(e){function t(t,n={}){return function({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:r,useVisualState:i,Component:o}){e&&function(e){for(let t in e)"projectionNodeConstructor"===t?nX.projectionNodeConstructor=e[t]:nX[t].Component=e[t]}(e);let a=(0,A.forwardRef)(function(a,s){var l;let u={...(0,A.useContext)(nV),...a,layoutId:function({layoutId:e}){let t=(0,A.useContext)(nR).id;return t&&void 0!==e?t+"-"+e:e}(a)},{isStatic:c}=u,d=null,f=function(e){let{initial:t,animate:n}=function(e,t){if(n$(e)){let{initial:t,animate:n}=e;return{initial:!1===t||nU(t)?t:void 0,animate:nU(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,A.useContext)(nI));return(0,A.useMemo)(()=>({initial:t,animate:n}),[nY(t),nY(n)])}(a),h=c?void 0:nM(()=>{if(nQ.hasEverUpdated)return nJ++}),p=i(a,c);if(!c&&nS){f.visualElement=function(e,t,n,r){let i=(0,A.useContext)(nI).visualElement,o=(0,A.useContext)(nB),a=(0,A.useContext)(nO),s=(0,A.useContext)(nV).reducedMotion,l=(0,A.useRef)();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceId:a?a.id:void 0,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));let u=l.current;return n_(()=>{u&&u.render()}),(0,A.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),n_(()=>()=>u&&u.notify("Unmount"),[]),u}(o,p,u,t);let r=(0,A.useContext)(nB).strict,i=(0,A.useContext)(n1);f.visualElement&&(d=f.visualElement.loadFeatures(u,r,e,h,n||nX.projectionNodeConstructor,i))}return A.createElement(n0,{visualElement:f.visualElement,props:u},d,A.createElement(nI.Provider,{value:f},r(o,a,h,(l=f.visualElement,(0,A.useCallback)(e=>{e&&p.mount&&p.mount(e),l&&(e?l.mount(e):l.unmount()),s&&("function"==typeof s?s(e):nH(s)&&(s.current=e))},[l])),p,c,f.visualElement)))});return a[n2]=o,a}(e(t,n))}if("undefined"==typeof Proxy)return t;let n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},n,r,i){let o=n3(e)?r$:rK;return{...o,preloadedFeatures:n,useRender:function(e=!1){return(t,n,r,i,{latestValues:o},a)=>{let s=n3(t)?rR:rS,l=s(n,o,a),u=function(e,t,n){let r={};for(let i in e)(rO(i)||!0===n&&rC(i)||!t&&!rC(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),c={...u,...l,ref:i};return r&&(c["data-projection-id"]=r),(0,A.createElement)(t,c)}}(t),createVisualElement:r,projectionNodeConstructor:i,Component:e}})(e,t,lc,sw,lu));function lf(e){let{open:t,onOpenChange:n}=e,[r,i]=(0,A.useState)(!1),o=(0,A.useMemo)(()=>n?t:r,[n,r,t]),a=(0,A.useCallback)(e=>{n?n(e):i(e)},[n]);return{open:o,onOpenChange:a}}let lh={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}};function lp(e){let{children:t,content:n,defaultOpen:r,open:i,onOpenChange:o,delayDuration:a=300,disableHoverableContent:s,...l}=e,{open:u,onOpenChange:c}=lf({open:i,onOpenChange:o});return(0,T.jsxs)(ne,{open:u,delayDuration:a,disableHoverableContent:s,defaultOpen:r,onOpenChange:c,children:[(0,T.jsx)(t0,{asChild:!0,children:t}),(0,T.jsx)(nz,{children:n&&u?(0,T.jsx)(nt,{forceMount:!0,children:(0,T.jsx)(t5,{forceMount:!0,asChild:!0,side:"top",align:"center",sideOffset:l.sideOffset||5,...l,children:(0,T.jsx)(ld.div,{variants:lh,initial:"init",animate:"show",exit:"exit",className:(0,eC.cx)("relative","z-50","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"),children:(0,T.jsx)("div",{className:(0,eC.cx)("py-1 px-2","max-w-xs","overflow-hidden",no()),children:(0,T.jsx)(ni,{size:"12",children:n})})})})}):null})]})}let lm=(0,eC.j)(["inline-flex","gap-1","appearance-none","shrink-0","items-center","justify-center","select-none","leading-normal","font-sans","cursor-pointer","overflow-hidden","focus:z-10","disabled:cursor-auto","disabled:pointer-events-none","outline-none","focus:ring ring-blue-500 dark:ring-blue-200","transition-colors duration-75"],{variants:{size:{small:["text-xs","px-2","h-7"],medium:["text-base","px-4","h-10"],large:["text-lg","px-4","h-12"],none:[]},state:{waiting:["pointer-events-none"]},disabled:{true:"cursor-auto pointer-events-none"},rounded:{true:"rounded",false:""},variant:{accent:["border","text-white dark:text-white","enabled:bg-green-700 enabled:dark:bg-green-700","enabled:border-green-800/30 enabled:dark:border-green-600/70","enabled:hover:bg-green-800/90 dark:enabled:hover:bg-green-700/90","enabled:hover:border-green-800/50 enabled:hover:dark:border-green-600","disabled:text-white/50 disabled:dark:text-white/50","disabled:bg-green-700/70 disabled:dark:bg-green-600/70","disabled:border-green-600/50 disabled:dark:border-green-500/30","[&[href]]:bg-green-700 [&[href]]:dark:bg-green-700","[&[href]]:border-green-800/30 [&[href]]:dark:border-green-600/70","[&[href]]:hover:bg-green-800/90 dark:[&[href]]:hover:bg-green-700/90","[&[href]]:hover:border-green-800/50 [href]]:hover:dark:border-green-600"],red:["border","bg-red-700 dark:bg-red-700","border-red-800/30 dark:border-red-600/70","enabled:hover:bg-red-800/90 dark:enabled:hover:bg-red-700/90","enabled:hover:border-red-800/50 enabled:hover:dark:border-red-600","disabled:bg-red-700/70 disabled:dark:bg-red-600/70","disabled:border-red-600/50 disabled:dark:border-red-500/30","text-white dark:text-white","disabled:text-white/50 disabled:dark:text-white/50"],amber:["border","bg-amber-700 dark:bg-amber-700","border-amber-800/30 dark:border-amber-600/70","enabled:hover:bg-amber-800/90 dark:enabled:hover:bg-amber-700/90","enabled:hover:border-amber-800/50 enabled:hover:dark:border-amber-600","disabled:bg-amber-700/70 disabled:dark:bg-amber-600/70","disabled:border-amber-600/50 disabled:dark:border-amber-500/30","text-white dark:text-white","disabled:text-white/50 disabled:dark:text-white/50"],gray:["border","bg-white dark:bg-graydark-200","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100 dark:text-gray-300","disabled:text-gray-600 disabled:dark:text-graydark-700"],active:["border","bg-gray-200 dark:bg-graydark-400","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-500 dark:border-graydark-500","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],inactive:["border","bg-white dark:bg-graydark-200","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-400/70 dark:border-graydark-400/70","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100/30 dark:text-white/30","enabled:hover:text-gray-1100 enabled:hover:dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],ghost:["appearance-none border-none bg-transparent","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],state:["open:text-gray-1100 open:dark:text-white","hover:text-gray-1000 hover:dark:text-graydark-1000","text-gray-700 dark:text-graydark-800"]},icon:{contrast:"",hover:"[&>svg]:opacity-50 hover:[&>svg]:opacity-100 transition-opacity",subtle:"[&>svg]:opacity-50"},color:{verySubtle:"!text-gray-700 dark:!text-graydark-700",subtle:"!text-gray-1000 dark:!text-graydark-1000",contrast:"!text-gray-1100 dark:!text-white",lo:"!text-white dark:!text-graydark-50",accent:"!text-accent-1100 dark:!text-accentdark-1100",red:"!text-red-700 dark:!text-red-400",green:"!text-emerald-700 dark:!text-emerald-500",amber:"!text-amber-600 dark:!text-amber-500",none:""}},defaultVariants:{variant:"gray",size:"small",rounded:!0,icon:"subtle",color:"none"}}),lv=A.forwardRef((e,t)=>{let{variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,tip:u,tipAlign:c,tipSide:d,className:f,type:h="button",...p}=e;return u?(0,T.jsx)(lp,{content:u,align:c,side:d,children:(0,T.jsx)("button",{ref:t,type:h,disabled:a,className:lm({variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})}):(0,T.jsx)("button",{ref:t,disabled:a,type:h,className:lm({variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})});var lg=n(88242);let ly=A.forwardRef((e,t)=>{let{children:n,...r}=e;return(0,T.jsx)(eu,{ref:t,...r,..."single"===r.type?{collapsible:!0}:{},children:n})}),lb=A.forwardRef((e,t)=>{let{children:n,...r}=e;return(0,T.jsx)(ek,{children:(0,T.jsx)(eS,{...r,asChild:!0,ref:t,children:(0,T.jsxs)(lv,{variant:"ghost",size:"none",className:"w-full flex gap-2 justify-between",children:[(0,T.jsx)("span",{className:"flex-1 text-left",children:n}),(0,T.jsx)("span",{className:"pr-3",children:(0,T.jsx)(lg.cRw,{})})]})})})}),lx=(0,eC.j)([],{variants:{variant:{default:"border-t border-gray-500 dark:border-graydark-500 last-of-type:border-b",ghost:""}},defaultVariants:{variant:"default"}}),lw=A.forwardRef((e,t)=>{let{variant:n,className:r,...i}=e;return(0,T.jsx)(ej,{...i,className:lx({variant:n,className:r}),ref:t})}),lj=e_,lk=(0,eC.j)("border border-gray-500 dark:border-graydark-500 bg-gray-100 dark:bg-graydark-100 rounded p-4"),lE=A.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,T.jsx)("div",{...r,className:lk({className:n}),ref:t})});var lS=n(86029);let l_="Avatar",[lC,lO]=(0,R.b)(l_),[lM,lT]=lC(l_),lA=(0,A.forwardRef)((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,o]=(0,A.useState)("idle");return(0,A.createElement)(lM,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:o},(0,A.createElement)(V.WV.span,(0,N.Z)({},r,{ref:t})))}),lP=(0,A.forwardRef)((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...o}=e,a=lT("AvatarImage",n),s=function(e){let[t,n]=(0,A.useState)("idle");return(0,A.useEffect)(()=>{if(!e){n("error");return}let t=!0,r=new window.Image,i=e=>()=>{t&&n(e)};return n("loading"),r.onload=i("loaded"),r.onerror=i("error"),r.src=e,()=>{t=!1}},[e]),t}(r),l=(0,lS.W)(e=>{i(e),a.onImageLoadingStatusChange(e)});return(0,I.b)(()=>{"idle"!==s&&l(s)},[s,l]),"loaded"===s?(0,A.createElement)(V.WV.img,(0,N.Z)({},o,{ref:t,src:r})):null}),lN=(0,A.forwardRef)((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,o=lT("AvatarFallback",n),[a,s]=(0,A.useState)(void 0===r);return(0,A.useEffect)(()=>{if(void 0!==r){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),a&&"loaded"!==o.imageLoadingStatus?(0,A.createElement)(V.WV.span,(0,N.Z)({},i,{ref:t})):null}),lR=(0,eC.j)(["items-center justify-center align-middle flex flex-shrink-0 relative","overflow-hidden select-none outline-none","font-sans font-medium text-sm","border"],{variants:{size:{1:"w-6 h-6",2:"w-12 h-12",3:"w-16 h-16",4:"w-28 h-28"},variant:{filter:"bg-transparent",hiContrast:["bg-gray-900 dark:bg-white text-white dark:text-gray-1100","border-gray-900 dark:border-white text-white dark:text-gray-1100"],gray:["bg-gray-500 dark:bg-gray-800 text-gray-1100 dark:text-white","border-gray-500 dark:border-gray-800 text-gray-1100 dark:text-white"]},shape:{square:"rounded",circle:"rounded-full"},inactive:{true:"opacity-30"},interactive:{true:"cursor-pointer"}},defaultVariants:{size:"2",variant:"gray",shape:"circle"}}),lD=(0,eC.j)("uppercase",{variants:{size:{1:"text-sm",2:"text-base",3:"text-lg",4:"text-lg"}},defaultVariants:{size:"2"}}),lL=A.forwardRef((e,t)=>{let{alt:n,src:r,fallback:i,size:o,variant:a,shape:s,interactive:l,inactive:u,className:c,...d}=e;return(0,T.jsx)("div",{className:(0,eC.cx)("relative h-fit w-fit",c),children:(0,T.jsxs)(lA,{...d,ref:t,className:lR({className:c,size:o,variant:a,interactive:l,inactive:u,shape:s}),children:["filter"===a&&(0,T.jsx)("div",{className:"absolute w-full h-full z-10",style:{backgroundColor:"rgba(30, 169, 76, 0.3)"}}),(0,T.jsx)(lP,{alt:n,src:r,className:"flex object-cover h-full align-middle w-full"}),(0,T.jsx)(lN,{className:lD({size:o}),children:i})]})})}),lZ=(0,eC.j)(["items-center appearance-none inline-flex flex-shrink-0 whitespace-nowrap","font-sans font-regular","justify-center align-middle outline-none decoration-none select-none","disabled:pointer-events-none"],{variants:{size:{default:"text-sm py-0.5 px-2",small:"text-xs py-px px-1"},variant:{active:["border","bg-gray-800 text-gray-900 border-gray-900","dark:bg-transparent dark:text-white dark:border-white/10"],simple:"bg-gray-300 dark:bg-graydark-800 text-gray-900 dark:text-white",green:["border","[&>svg]:opacity-50","bg-green-700 dark:bg-green-700","border-green-800/30 dark:border-green-600/70","hover:bg-green-800/90 dark:hover:bg-green-700/90","hover:border-green-800/50 hover:dark:border-green-600","text-white dark:text-white"],accent:["border","[&>svg]:opacity-50","bg-green-700 dark:bg-green-700","border-green-800/30 dark:border-green-600/70","hover:bg-green-800/90 dark:hover:bg-green-700/90","hover:border-green-800/50 hover:dark:border-green-600","text-white dark:text-white"],red:["border","[&>svg]:opacity-50","bg-red-700 dark:bg-red-700","border-red-800/30 dark:border-red-600/70","hover:bg-red-800/90 dark:hover:bg-red-700/90","hover:border-red-800/50 hover:dark:border-red-600","text-white dark:text-white"],amber:["border","[&>svg]:opacity-50","bg-amber-700 dark:bg-amber-700","border-amber-800/30 dark:border-amber-600/70","hover:bg-amber-800/90 dark:hover:bg-amber-700/90","hover:border-amber-800/50 hover:dark:border-amber-600","text-white dark:text-white"],gray:["border","[&>svg]:opacity-50","bg-white dark:bg-graydark-200","border-gray-400 dark:border-graydark-400","hover:bg-gray-50 dark:hover:bg-graydark-300","hover:border-gray-500 hover:dark:border-graydark-500","text-gray-1100 dark:text-white"],inactive:["border","[&>svg]:opacity-50","bg-white dark:bg-transparent","border-gray-400 dark:border-graydark-400","hover:border-gray-500 hover:dark:border-graydark-500","text-gray-1100/30 dark:text-white/30","hover:text-gray-1100/50 hover:dark:text-white/50"]},interactive:{true:"cursor-pointer",false:"cursor-auto"},rounded:{true:"rounded",false:""}},defaultVariants:{variant:"gray",size:"default",rounded:!0,interactive:!1}}),lF=A.forwardRef((e,t)=>{let{variant:n,size:r,interactive:i,rounded:o,className:a,...s}=e;return(0,T.jsx)("div",{...s,className:lZ({variant:n,size:r,interactive:i,rounded:o,className:a}),ref:t})}),lz=A.forwardRef((e,t)=>{let{className:n,size:r,color:i,...o}=e;return(0,T.jsx)("pre",{children:(0,T.jsx)("code",{className:(0,eC.cx)(nn({font:"mono",size:r,color:i}),"block","w-full","overflow-auto","p-3","bg-white dark:bg-graydark-200","border border-gray-400 dark:border-graydark-400","rounded",n),...o,ref:t})})}),lV=(0,eC.j)(["font-mono","whitespace-nowrap","rounded"],{variants:{color:{gray:["bg-gray-200 dark:bg-graydark-200","text-gray-1100 dark:text-graydark-1100"],accent:["bg-accent-200 dark:bg-accentdark-200","text-accent-1100 dark:text-accentdark-1100"]}},defaultVariants:{color:"accent"}}),lI=A.forwardRef((e,t)=>{let{color:n,className:r,...i}=e;return(0,T.jsx)("code",{...i,className:lV({color:n,className:r}),ref:t})}),lB=(0,eC.j)(["flex","relative","[&>*]:rounded-none [&>*:last-child]:rounded-r [&>*:first-child]:rounded-l","[&>*]:border-r-0 [&>*]:border-l [&>*:first-child]:border-l [&>*:last-child]:border-r"]),lH=A.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,T.jsx)("div",{ref:t,className:lB({className:n}),...r})});(0,eC.j)(["select-none appearance-none outline-none overflow-hidden","inline-flex items-center justify-center","focus:ring ring-blue-500 dark:ring-blue-200","border","bg-gray-300 dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","disabled:cursor-default","enabled:data-[state=checked]:bg-green-600 dark:enabled:data-[state=checked]:bg-green-500","disabled:data-[state=checked]:bg-green-600/50 dark:disabled:data-[state=checked]:bg-green-500/50"],{variants:{size:{small:"w-4 h-4 rounded",medium:"w-6 h-6 rounded"}},defaultVariants:{size:"small"}});let lU=(0,eC.j)(["flex-shrink-0 w-full mx-auto"],{variants:{pad:{true:"px-5 md:px-10",false:""},size:{1:"max-w-screen-sm",2:"max-w-screen-md",3:"max-w-[1145px]",4:"max-w-screen-2xl",full:"max-w-none"}},defaultVariants:{pad:!0,size:"3"}}),lW=A.forwardRef((e,t)=>{let{className:n,pad:r,size:i,...o}=e;return(0,T.jsx)("div",{ref:t,...o,className:lU({size:i,pad:r,className:n})})});var lq=n(72331);let l$=(0,A.createContext)(void 0);function lK(e){let t=(0,A.useContext)(l$);return e||t||"ltr"}let lY="ScrollArea",[lG,lX]=(0,R.b)(lY),[lQ,lJ]=lG(lY),l0=(0,A.forwardRef)((e,t)=>{let{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:o=600,...a}=e,[s,l]=(0,A.useState)(null),[u,c]=(0,A.useState)(null),[d,f]=(0,A.useState)(null),[h,p]=(0,A.useState)(null),[m,v]=(0,A.useState)(null),[g,y]=(0,A.useState)(0),[b,x]=(0,A.useState)(0),[w,j]=(0,A.useState)(!1),[k,E]=(0,A.useState)(!1),S=(0,D.e)(t,e=>l(e)),_=lK(i);return(0,A.createElement)(lQ,{scope:n,type:r,dir:_,scrollHideDelay:o,scrollArea:s,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:h,onScrollbarXChange:p,scrollbarXEnabled:w,onScrollbarXEnabledChange:j,scrollbarY:m,onScrollbarYChange:v,scrollbarYEnabled:k,onScrollbarYEnabledChange:E,onCornerWidthChange:y,onCornerHeightChange:x},(0,A.createElement)(V.WV.div,(0,N.Z)({dir:_},a,{ref:S,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":b+"px",...e.style}})))}),l1=(0,A.forwardRef)((e,t)=>{let{__scopeScrollArea:n,children:r,...i}=e,o=lJ("ScrollAreaViewport",n),a=(0,A.useRef)(null),s=(0,D.e)(t,a,o.onViewportChange);return(0,A.createElement)(A.Fragment,null,(0,A.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),(0,A.createElement)(V.WV.div,(0,N.Z)({"data-radix-scroll-area-viewport":""},i,{ref:s,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style}}),(0,A.createElement)("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"}},r)))}),l2="ScrollAreaScrollbar",l4=(0,A.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=lJ(l2,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:a}=i,s="horizontal"===e.orientation;return(0,A.useEffect)(()=>(s?o(!0):a(!0),()=>{s?o(!1):a(!1)}),[s,o,a]),"hover"===i.type?(0,A.createElement)(l3,(0,N.Z)({},r,{ref:t,forceMount:n})):"scroll"===i.type?(0,A.createElement)(l5,(0,N.Z)({},r,{ref:t,forceMount:n})):"auto"===i.type?(0,A.createElement)(l6,(0,N.Z)({},r,{ref:t,forceMount:n})):"always"===i.type?(0,A.createElement)(l8,(0,N.Z)({},r,{ref:t})):null}),l3=(0,A.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=lJ(l2,e.__scopeScrollArea),[o,a]=(0,A.useState)(!1);return(0,A.useEffect)(()=>{let e=i.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),a(!0)},r=()=>{t=window.setTimeout(()=>a(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[i.scrollArea,i.scrollHideDelay]),(0,A.createElement)(B.z,{present:n||o},(0,A.createElement)(l6,(0,N.Z)({"data-state":o?"visible":"hidden"},r,{ref:t})))}),l5=(0,A.forwardRef)((e,t)=>{var n;let{forceMount:r,...i}=e,o=lJ(l2,e.__scopeScrollArea),a="horizontal"===e.orientation,s=um(()=>u("SCROLL_END"),100),[l,u]=(n={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},(0,A.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},"hidden"));return(0,A.useEffect)(()=>{if("idle"===l){let e=window.setTimeout(()=>u("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(e)}},[l,o.scrollHideDelay,u]),(0,A.useEffect)(()=>{let e=o.viewport,t=a?"scrollLeft":"scrollTop";if(e){let n=e[t],r=()=>{let r=e[t],i=n!==r;i&&(u("SCROLL"),s()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[o.viewport,a,u,s]),(0,A.createElement)(B.z,{present:r||"hidden"!==l},(0,A.createElement)(l8,(0,N.Z)({"data-state":"hidden"===l?"hidden":"visible"},i,{ref:t,onPointerEnter:(0,F.M)(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:(0,F.M)(e.onPointerLeave,()=>u("POINTER_LEAVE"))})))}),l6=(0,A.forwardRef)((e,t)=>{let n=lJ(l2,e.__scopeScrollArea),{forceMount:r,...i}=e,[o,a]=(0,A.useState)(!1),s="horizontal"===e.orientation,l=um(()=>{if(n.viewport){let e=n.viewport.offsetWidth{let{orientation:n="vertical",...r}=e,i=lJ(l2,e.__scopeScrollArea),o=(0,A.useRef)(null),a=(0,A.useRef)(0),[s,l]=(0,A.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=uc(s.viewport,s.content),c={...r,sizes:s,onSizesChange:l,hasThumb:!!(u>0&&u<1),onThumbChange:e=>o.current=e,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:e=>a.current=e};function d(e,t){return function(e,t,n,r="ltr"){let i=ud(n),o=t||i/2,a=n.scrollbar.paddingStart+o,s=n.scrollbar.size-n.scrollbar.paddingEnd-(i-o),l=n.content-n.viewport,u=uh([a,s],"ltr"===r?[0,l]:[-1*l,0]);return u(e)}(e,a.current,s,t)}return"horizontal"===n?(0,A.createElement)(l7,(0,N.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=i.viewport.scrollLeft,t=uf(e,s,i.dir);o.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,i.dir))}})):"vertical"===n?(0,A.createElement)(l9,(0,N.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=i.viewport.scrollTop,t=uf(e,s);o.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}})):null}),l7=(0,A.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,o=lJ(l2,e.__scopeScrollArea),[a,s]=(0,A.useState)(),l=(0,A.useRef)(null),u=(0,D.e)(t,l,o.onScrollbarXChange);return(0,A.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,A.createElement)(un,(0,N.Z)({"data-orientation":"horizontal"},i,{ref:u,sizes:n,style:{bottom:0,left:"rtl"===o.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===o.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":ud(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),r>0&&r{l.current&&o.viewport&&a&&r({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:uu(a.paddingLeft),paddingEnd:uu(a.paddingRight)}})}}))}),l9=(0,A.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,o=lJ(l2,e.__scopeScrollArea),[a,s]=(0,A.useState)(),l=(0,A.useRef)(null),u=(0,D.e)(t,l,o.onScrollbarYChange);return(0,A.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,A.createElement)(un,(0,N.Z)({"data-orientation":"vertical"},i,{ref:u,sizes:n,style:{top:0,right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":ud(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),r>0&&r{l.current&&o.viewport&&a&&r({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:uu(a.paddingTop),paddingEnd:uu(a.paddingBottom)}})}}))}),[ue,ut]=lG(l2),un=(0,A.forwardRef)((e,t)=>{let{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:o,onThumbPointerUp:a,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,h=lJ(l2,n),[p,m]=(0,A.useState)(null),v=(0,D.e)(t,e=>m(e)),g=(0,A.useRef)(null),y=(0,A.useRef)(""),b=h.viewport,x=r.content-r.viewport,w=(0,lS.W)(c),j=(0,lS.W)(l),k=um(d,10);function E(e){if(g.current){let t=e.clientX-g.current.left,n=e.clientY-g.current.top;u({x:t,y:n})}}return(0,A.useEffect)(()=>{let e=e=>{let t=e.target,n=null==p?void 0:p.contains(t);n&&w(e,x)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[b,p,x,w]),(0,A.useEffect)(j,[r,j]),uv(p,k),uv(h.content,k),(0,A.createElement)(ue,{scope:n,scrollbar:p,hasThumb:i,onThumbChange:(0,lS.W)(o),onThumbPointerUp:(0,lS.W)(a),onThumbPositionChange:j,onThumbPointerDown:(0,lS.W)(s)},(0,A.createElement)(V.WV.div,(0,N.Z)({},f,{ref:v,style:{position:"absolute",...f.style},onPointerDown:(0,F.M)(e.onPointerDown,e=>{if(0===e.button){let t=e.target;t.setPointerCapture(e.pointerId),g.current=p.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",E(e)}}),onPointerMove:(0,F.M)(e.onPointerMove,E),onPointerUp:(0,F.M)(e.onPointerUp,e=>{let t=e.target;t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=y.current,g.current=null})})))}),ur="ScrollAreaThumb",ui=(0,A.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=ut(ur,e.__scopeScrollArea);return(0,A.createElement)(B.z,{present:n||i.hasThumb},(0,A.createElement)(uo,(0,N.Z)({ref:t},r)))}),uo=(0,A.forwardRef)((e,t)=>{let{__scopeScrollArea:n,style:r,...i}=e,o=lJ(ur,n),a=ut(ur,n),{onThumbPositionChange:s}=a,l=(0,D.e)(t,e=>a.onThumbChange(e)),u=(0,A.useRef)(),c=um(()=>{u.current&&(u.current(),u.current=void 0)},100);return(0,A.useEffect)(()=>{let e=o.viewport;if(e){let t=()=>{if(c(),!u.current){let t=up(e,s);u.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[o.viewport,c,s]),(0,A.createElement)(V.WV.div,(0,N.Z)({"data-state":a.hasThumb?"visible":"hidden"},i,{ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:(0,F.M)(e.onPointerDownCapture,e=>{let t=e.target,n=t.getBoundingClientRect(),r=e.clientX-n.left,i=e.clientY-n.top;a.onThumbPointerDown({x:r,y:i})}),onPointerUp:(0,F.M)(e.onPointerUp,a.onThumbPointerUp)}))}),ua="ScrollAreaCorner",us=(0,A.forwardRef)((e,t)=>{let n=lJ(ua,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY),i="scroll"!==n.type&&r;return i?(0,A.createElement)(ul,(0,N.Z)({},e,{ref:t})):null}),ul=(0,A.forwardRef)((e,t)=>{let{__scopeScrollArea:n,...r}=e,i=lJ(ua,n),[o,a]=(0,A.useState)(0),[s,l]=(0,A.useState)(0);return uv(i.scrollbarX,()=>{var e;let t=(null===(e=i.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;i.onCornerHeightChange(t),l(t)}),uv(i.scrollbarY,()=>{var e;let t=(null===(e=i.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;i.onCornerWidthChange(t),a(t)}),o&&s?(0,A.createElement)(V.WV.div,(0,N.Z)({},r,{ref:t,style:{width:o,height:s,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...e.style}})):null});function uu(e){return e?parseInt(e,10):0}function uc(e,t){let n=e/t;return isNaN(n)?0:n}function ud(e){let t=uc(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function uf(e,t,n="ltr"){let r=ud(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,a=t.content-t.viewport,s="ltr"===n?[0,a]:[-1*a,0],l=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,s),u=uh([0,a],[0,o-r]);return u(l)}function uh(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}let up=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return!function i(){let o={left:e.scrollLeft,top:e.scrollTop},a=n.left!==o.left,s=n.top!==o.top;(a||s)&&t(),n=o,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function um(e,t){let n=(0,lS.W)(e),r=(0,A.useRef)(0);return(0,A.useEffect)(()=>()=>window.clearTimeout(r.current),[]),(0,A.useCallback)(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function uv(e,t){let n=(0,lS.W)(t);(0,I.b)(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}let ug=A.forwardRef((e,t)=>{let{id:n,className:r,style:i,children:o,keyToResetScrollbars:a}=e;return(0,T.jsxs)(l0,{className:(0,eC.cx)("w-full h-full overflow-hidden",r),style:i,children:[(0,T.jsx)(l1,{id:n,ref:t,className:"w-full h-full [&>div]:!block [&>div]:!h-full",children:o}),(0,T.jsx)(l4,{orientation:"vertical",className:"z-10 flex select-none touch-none transition-colors hover:bg-black/20 w-1.5 m-px",children:(0,T.jsx)(ui,{className:(0,eC.cx)("flex-1 relative bg-gray-300 rounded",'before:content[""] before:absolute before:top-1/2 before:left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full')})},a?"v-".concat(a):void 0),(0,T.jsx)(l4,{orientation:"horizontal",className:"z-10 flex flex-col select-none touch-none transition-colors duration-1000 hover:bg-black/20 h-1 m-px",children:(0,T.jsx)(ui,{className:(0,eC.cx)("flex-1 relative bg-gray-300 rounded",'before:content[""] before:absolute before:top-1/2 before:left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full')})},a?"h-".concat(a):void 0),(0,T.jsx)(us,{className:"bg-black/70"})]})}),uy=(0,eC.j)(["z-20","overflow-hidden"],{variants:{variant:{default:"flex items-center justify-center w-full h-full",none:""}},defaultVariants:{variant:"default"}}),ub={show:{scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},ux=A.forwardRef((e,t)=>{let{trigger:n,rootProps:r,open:i,onOpenChange:o,onSubmit:a,title:s,description:l,containerVariants:u,contentVariants:c,controls:d,children:f,bodyClassName:h,closeClassName:p,dynamicHeight:m=!0}=e,{open:v,onOpenChange:g}=lf({open:i,onOpenChange:o});return(0,T.jsxs)(lq.fC,{open:v,onOpenChange:g,...r,children:[n&&(0,T.jsx)(lq.xz,{asChild:!0,children:n}),(0,T.jsx)(nz,{children:v?(0,T.jsx)(lq.h_,{forceMount:!0,children:(0,T.jsx)(lq.VY,{asChild:!0,forceMount:!0,ref:t,children:(0,T.jsxs)("div",{className:"fixed w-full h-full top-0 left-0 z-20",children:[(0,T.jsx)(lq.aV,{onClick:()=>g(!1),className:"fixed z-10 top-0 right-0 bottom-0 left-0 inset-0 transition-opacity opacity-0 open:opacity-10 dark:open:opacity-20 bg-black"}),(0,T.jsx)(ld.div,{variants:ub,initial:"init",animate:"show",exit:"exit",className:uy(u),children:(0,T.jsx)(uk,{title:s,description:l,contentVariants:c,onSubmit:a,controls:d,bodyClassName:h,closeClassName:p,dynamicHeight:m,children:f})})]})})}):null})]})});function uw(e){let{className:t}=e;return(0,T.jsx)(lq.x8,{asChild:!0,type:"button",children:(0,T.jsx)("div",{className:(0,eC.cx)("appearance-none",t),children:(0,T.jsx)(lv,{size:"small",variant:"ghost",type:"button",children:(0,T.jsx)(lg.QN4,{})})})})}let uj=(0,eC.j)(["relative","z-40","overflow-hidden"],{variants:{variant:{default:[no()],none:""}},defaultVariants:{variant:"default"}}),uk=A.forwardRef((e,t)=>{let{children:n,onSubmit:r,title:i,description:o,controls:a,contentVariants:s,closeClassName:l,bodyClassName:u,dynamicHeight:c=!0}=e,{ref:d,height:f}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t,n]=(0,A.useState)(0),r=(0,A.useRef)(null);return(0,A.useLayoutEffect)(()=>{if(!r.current)return;let e=r.current,t=()=>n(e.clientHeight);t(),r.current.addEventListener("resize",t);let i=new ResizeObserver(t);return i.observe(e),()=>{e.removeEventListener("resize",t),i.unobserve(e)}},e),{ref:r,height:t}}([n,o]),[h,p]=(0,A.useState)(!1);return(0,A.useEffect)(()=>{p(f>.7*window.innerHeight)},[f]),(0,T.jsxs)(r?"form":"div",{onSubmit:r,ref:t,className:uj(s),children:[i&&(0,T.jsx)(lq.Dx,{className:uE({showSeparator:h}),children:i}),(0,T.jsx)(ug,{style:{height:c?"".concat(f,"px"):void 0,maxHeight:c?"70vh":void 0},children:(0,T.jsxs)("div",{ref:d,className:(0,eC.cx)("p-4",u),children:[o&&(0,T.jsx)(lq.dk,{className:uS(),children:o}),n]})}),a&&(0,T.jsx)(u_,{separator:h,children:a}),(0,T.jsx)(uw,{className:l||"absolute top-3.5 right-2"})]})}),uE=(0,eC.j)(["pt-4 pb-2 px-4 w-full",nn({size:"20",weight:"semibold",font:"sans",color:"contrast"})],{variants:{showSeparator:{true:"border-b border-gray-200 dark:border-graydark-200"}}}),uS=(0,eC.j)([nn({color:"subtle",size:"14"}),"py-2"]);function u_(e){let{children:t,separator:n=!0}=e;return(0,T.jsx)("div",{className:(0,eC.cx)("py-2 mx-3",n?"border-t border-gray-200 dark:border-graydark-200":""),children:t})}var uC=n(55070),uO=n(77334);let uM="rovingFocusGroup.onEntryFocus",uT={bubbles:!1,cancelable:!0},uA="RovingFocusGroup",[uP,uN,uR]=Z(uA),[uD,uL]=(0,R.b)(uA,[uR]),[uZ,uF]=uD(uA),uz=(0,A.forwardRef)((e,t)=>(0,A.createElement)(uP.Provider,{scope:e.__scopeRovingFocusGroup},(0,A.createElement)(uP.Slot,{scope:e.__scopeRovingFocusGroup},(0,A.createElement)(uV,(0,N.Z)({},e,{ref:t}))))),uV=(0,A.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:o,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,...c}=e,d=(0,A.useRef)(null),f=(0,D.e)(t,d),h=lK(o),[p=null,m]=(0,z.T)({prop:a,defaultProp:s,onChange:l}),[v,g]=(0,A.useState)(!1),y=(0,lS.W)(u),b=uN(n),x=(0,A.useRef)(!1);return(0,A.useEffect)(()=>{let e=d.current;if(e)return e.addEventListener(uM,y),()=>e.removeEventListener(uM,y)},[y]),(0,A.createElement)(uZ,{scope:n,orientation:r,dir:h,loop:i,currentTabStopId:p,onItemFocus:(0,A.useCallback)(e=>m(e),[m]),onItemShiftTab:(0,A.useCallback)(()=>g(!0),[])},(0,A.createElement)(V.WV.div,(0,N.Z)({tabIndex:v?-1:0,"data-orientation":r},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:(0,F.M)(e.onMouseDown,()=>{x.current=!0}),onFocus:(0,F.M)(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(uM,uT);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable),t=e.find(e=>e.active),n=e.find(e=>e.id===p),r=[t,n,...e].filter(Boolean),i=r.map(e=>e.ref.current);uH(i)}}x.current=!1}),onBlur:(0,F.M)(e.onBlur,()=>g(!1))})))}),uI=(0,A.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,...o}=e,a=(0,H.M)(),s=uF("RovingFocusGroupItem",n),l=s.currentTabStopId===a,u=uN(n);return(0,A.createElement)(uP.ItemSlot,{scope:n,id:a,focusable:r,active:i},(0,A.createElement)(V.WV.span,(0,N.Z)({tabIndex:l?0:-1,"data-orientation":s.orientation},o,{ref:t,onMouseDown:(0,F.M)(e.onMouseDown,e=>{r?s.onItemFocus(a):e.preventDefault()}),onFocus:(0,F.M)(e.onFocus,()=>s.onItemFocus(a)),onKeyDown:(0,F.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){s.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let i=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return uB[i]}(e,s.orientation,s.dir);if(void 0!==t){e.preventDefault();let i=u().filter(e=>e.focusable),o=i.map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=s.loop?(n=o,r=i+1,n.map((e,t)=>n[(r+t)%n.length])):o.slice(i+1)}setTimeout(()=>uH(o))}})})))}),uB={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function uH(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}var uU=n(49732),uW=n(70506);let uq=["Enter"," "],u$=["ArrowUp","PageDown","End"],uK=["ArrowDown","PageUp","Home",...u$],uY={ltr:[...uq,"ArrowRight"],rtl:[...uq,"ArrowLeft"]},uG={ltr:["ArrowLeft"],rtl:["ArrowRight"]},uX="Menu",[uQ,uJ,u0]=Z(uX),[u1,u2]=(0,R.b)(uX,[u0,tS,uL]),u4=tS(),u3=uL(),[u5,u6]=u1(uX),[u8,u7]=u1(uX),u9=(0,A.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e,i=u4(n);return(0,A.createElement)(tO,(0,N.Z)({},i,r,{ref:t}))}),ce="MenuPortal",[ct,cn]=u1(ce,{forceMount:void 0}),cr="MenuContent",[ci,co]=u1(cr),ca=(0,A.forwardRef)((e,t)=>{let n=cn(cr,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=u6(cr,e.__scopeMenu),a=u7(cr,e.__scopeMenu);return(0,A.createElement)(uQ.Provider,{scope:e.__scopeMenu},(0,A.createElement)(B.z,{present:r||o.open},(0,A.createElement)(uQ.Slot,{scope:e.__scopeMenu},a.modal?(0,A.createElement)(cs,(0,N.Z)({},i,{ref:t})):(0,A.createElement)(cl,(0,N.Z)({},i,{ref:t})))))}),cs=(0,A.forwardRef)((e,t)=>{let n=u6(cr,e.__scopeMenu),r=(0,A.useRef)(null),i=(0,D.e)(t,r);return(0,A.useEffect)(()=>{let e=r.current;if(e)return(0,uU.R)(e)},[]),(0,A.createElement)(cu,(0,N.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,F.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),cl=(0,A.forwardRef)((e,t)=>{let n=u6(cr,e.__scopeMenu);return(0,A.createElement)(cu,(0,N.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),cu=(0,A.forwardRef)((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f,disableOutsideScroll:h,...p}=e,m=u6(cr,n),v=u7(cr,n),g=u4(n),y=u3(n),b=uJ(n),[x,w]=(0,A.useState)(null),j=(0,A.useRef)(null),k=(0,D.e)(t,j,m.onContentChange),E=(0,A.useRef)(0),S=(0,A.useRef)(""),_=(0,A.useRef)(0),C=(0,A.useRef)(null),O=(0,A.useRef)("right"),M=(0,A.useRef)(0),T=h?uW.Z:A.Fragment,P=h?{as:L.g7,allowPinchZoom:!0}:void 0,R=e=>{var t,n;let r=S.current+e,i=b().filter(e=>!e.disabled),o=document.activeElement,a=null===(t=i.find(e=>e.ref.current===o))||void 0===t?void 0:t.textValue,s=i.map(e=>e.textValue),l=function(e,t,n){var r;let i=t.length>1&&Array.from(t).every(e=>e===t[0]),o=i?t[0]:t,a=n?e.indexOf(n):-1,s=(r=Math.max(a,0),e.map((t,n)=>e[(r+n)%e.length])),l=1===o.length;l&&(s=s.filter(e=>e!==n));let u=s.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}(s,r,a),u=null===(n=i.find(e=>e.textValue===l))||void 0===n?void 0:n.ref.current;!function e(t){S.current=t,window.clearTimeout(E.current),""!==t&&(E.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>u.focus())};(0,A.useEffect)(()=>()=>window.clearTimeout(E.current),[]),(0,uC.EW)();let Z=(0,A.useCallback)(e=>{var t,n;let r=O.current===(null===(t=C.current)||void 0===t?void 0:t.side);return r&&function(e,t){if(!t)return!1;let n={x:e.clientX,y:e.clientY};return function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;er!=u>r&&n<(l-a)*(r-s)/(u-s)+a;c&&(i=!i)}return i}(n,t)}(e,null===(n=C.current)||void 0===n?void 0:n.area)},[]);return(0,A.createElement)(ci,{scope:n,searchRef:S,onItemEnter:(0,A.useCallback)(e=>{Z(e)&&e.preventDefault()},[Z]),onItemLeave:(0,A.useCallback)(e=>{var t;Z(e)||(null===(t=j.current)||void 0===t||t.focus(),w(null))},[Z]),onTriggerLeave:(0,A.useCallback)(e=>{Z(e)&&e.preventDefault()},[Z]),pointerGraceTimerRef:_,onPointerGraceIntentChange:(0,A.useCallback)(e=>{C.current=e},[])},(0,A.createElement)(T,P,(0,A.createElement)(uO.M,{asChild:!0,trapped:i,onMountAutoFocus:(0,F.M)(o,e=>{var t;e.preventDefault(),null===(t=j.current)||void 0===t||t.focus()}),onUnmountAutoFocus:a},(0,A.createElement)(eO.XB,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f},(0,A.createElement)(uz,(0,N.Z)({asChild:!0},y,{dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:x,onCurrentTabStopIdChange:w,onEntryFocus:e=>{v.isUsingKeyboardRef.current||e.preventDefault()}}),(0,A.createElement)(tR,(0,N.Z)({role:"menu","aria-orientation":"vertical","data-state":cE(m.open),dir:v.dir},g,p,{ref:k,style:{outline:"none",...p.style},onKeyDown:(0,F.M)(p.onKeyDown,e=>{let t=e.target,n=t.closest('[role="menu"]')===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,i=1===e.key.length;n&&("Tab"===e.key&&e.preventDefault(),!r&&i&&R(e.key));let o=j.current;if(e.target!==o||!uK.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled),s=a.map(e=>e.ref.current);u$.includes(e.key)&&s.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(s)}),onBlur:(0,F.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(E.current),S.current="")}),onPointerMove:(0,F.M)(e.onPointerMove,c_(e=>{let t=e.target,n=M.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>M.current?"right":"left";O.current=t,M.current=e.clientX}}))})))))))}),cc=(0,A.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,A.createElement)(V.WV.div,(0,N.Z)({role:"group"},r,{ref:t}))}),cd=(0,A.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,A.createElement)(V.WV.div,(0,N.Z)({},r,{ref:t}))}),cf="MenuItem",ch="menu.itemSelect",cp=(0,A.forwardRef)((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,o=(0,A.useRef)(null),a=u7(cf,e.__scopeMenu),s=co(cf,e.__scopeMenu),l=(0,D.e)(t,o),u=(0,A.useRef)(!1);return(0,A.createElement)(cm,(0,N.Z)({},i,{ref:l,disabled:n,onClick:(0,F.M)(e.onClick,()=>{let e=o.current;if(!n&&e){let t=new CustomEvent(ch,{bubbles:!0,cancelable:!0});e.addEventListener(ch,e=>null==r?void 0:r(e),{once:!0}),(0,V.jH)(e,t),t.defaultPrevented?u.current=!1:a.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),u.current=!0},onPointerUp:(0,F.M)(e.onPointerUp,e=>{var t;u.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,F.M)(e.onKeyDown,e=>{let t=""!==s.searchRef.current;!n&&(!t||" "!==e.key)&&uq.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))}),cm=(0,A.forwardRef)((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...o}=e,a=co(cf,n),s=u3(n),l=(0,A.useRef)(null),u=(0,D.e)(t,l),[c,d]=(0,A.useState)(!1),[f,h]=(0,A.useState)("");return(0,A.useEffect)(()=>{let e=l.current;if(e){var t;h((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[o.children]),(0,A.createElement)(uQ.ItemSlot,{scope:n,disabled:r,textValue:null!=i?i:f},(0,A.createElement)(uI,(0,N.Z)({asChild:!0},s,{focusable:!r}),(0,A.createElement)(V.WV.div,(0,N.Z)({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},o,{ref:u,onPointerMove:(0,F.M)(e.onPointerMove,c_(e=>{if(r)a.onItemLeave(e);else if(a.onItemEnter(e),!e.defaultPrevented){let t=e.currentTarget;t.focus()}})),onPointerLeave:(0,F.M)(e.onPointerLeave,c_(e=>a.onItemLeave(e))),onFocus:(0,F.M)(e.onFocus,()=>d(!0)),onBlur:(0,F.M)(e.onBlur,()=>d(!1))}))))}),[cv,cg]=((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,A.createElement)(cb,{scope:e.__scopeMenu,checked:n},(0,A.createElement)(cp,(0,N.Z)({role:"menuitemcheckbox","aria-checked":n},i,{ref:t,"data-state":cS(n),onSelect:(0,F.M)(i.onSelect,()=>null==r?void 0:r(!n),{checkForDefaultPrevented:!1})})))},u1("MenuRadioGroup",{value:void 0,onValueChange:()=>{}})),cy=((e,t)=>{let{value:n,onValueChange:r,...i}=e,o=(0,lS.W)(r);return(0,A.createElement)(cv,{scope:e.__scopeMenu,value:n,onValueChange:o},(0,A.createElement)(cc,(0,N.Z)({},i,{ref:t})))},"MenuItemIndicator"),[cb,cx]=u1(cy,{checked:!1}),[cw,cj]=((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,o=cx(cy,n);return(0,A.createElement)(B.z,{present:r||o.checked},(0,A.createElement)(V.WV.span,(0,N.Z)({},i,{ref:t,"data-state":cS(o.checked)})))},u1("MenuSub")),ck="MenuSubTrigger";function cE(e){return e?"open":"closed"}function cS(e){return e?"checked":"unchecked"}function c_(e){return t=>"mouse"===t.pointerType?e(t):void 0}(e,t)=>{let n=u6(ck,e.__scopeMenu),r=u7(ck,e.__scopeMenu),i=cj(ck,e.__scopeMenu),o=co(ck,e.__scopeMenu),a=(0,A.useRef)(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=o,u={__scopeMenu:e.__scopeMenu},c=(0,A.useCallback)(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return(0,A.useEffect)(()=>c,[c]),(0,A.useEffect)(()=>{let e=s.current;return()=>{window.clearTimeout(e),l(null)}},[s,l]),(0,A.createElement)(u9,(0,N.Z)({asChild:!0},u),(0,A.createElement)(cm,(0,N.Z)({id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":cE(n.open)},e,{ref:(0,D.F)(t,i.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,F.M)(e.onPointerMove,c_(t=>{o.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||a.current||(o.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),c()},100))})),onPointerLeave:(0,F.M)(e.onPointerLeave,c_(e=>{var t,r;c();let i=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(i){let t=null===(r=n.content)||void 0===r?void 0:r.dataset.side,a="right"===t,l=i[a?"left":"right"],u=i[a?"right":"left"];o.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:l,y:i.top},{x:u,y:i.top},{x:u,y:i.bottom},{x:l,y:i.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(e),e.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:(0,F.M)(e.onKeyDown,t=>{let i=""!==o.searchRef.current;if(!e.disabled&&(!i||" "!==t.key)&&uY[r.dir].includes(t.key)){var a;n.onOpenChange(!0),null===(a=n.content)||void 0===a||a.focus(),t.preventDefault()}})})))},(e,t)=>{let n=cn(cr,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=u6(cr,e.__scopeMenu),a=u7(cr,e.__scopeMenu),s=cj("MenuSubContent",e.__scopeMenu),l=(0,A.useRef)(null),u=(0,D.e)(t,l);return(0,A.createElement)(uQ.Provider,{scope:e.__scopeMenu},(0,A.createElement)(B.z,{present:r||o.open},(0,A.createElement)(uQ.Slot,{scope:e.__scopeMenu},(0,A.createElement)(cu,(0,N.Z)({id:s.contentId,"aria-labelledby":s.triggerId},i,{ref:u,align:"start",side:"rtl"===a.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;a.isUsingKeyboardRef.current&&(null===(t=l.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,F.M)(e.onFocusOutside,e=>{e.target!==s.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:(0,F.M)(e.onEscapeKeyDown,a.onClose),onKeyDown:(0,F.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=uG[a.dir].includes(e.key);if(t&&n){var r;o.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault()}})})))))};let cC=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:o,modal:a=!0}=e,s=u4(t),[l,u]=(0,A.useState)(null),c=(0,A.useRef)(!1),d=(0,lS.W)(o),f=lK(i);return(0,A.useEffect)(()=>{let e=()=>{c.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>c.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,A.createElement)(tI,s,(0,A.createElement)(u5,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:u},(0,A.createElement)(u8,{scope:t,onClose:(0,A.useCallback)(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:a},r)))},cO=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=u6(ce,t);return(0,A.createElement)(ct,{scope:t,forceMount:n},(0,A.createElement)(B.z,{present:n||o.open},(0,A.createElement)(tB.h,{asChild:!0,container:i},r)))},cM="DropdownMenu",[cT,cA]=(0,R.b)(cM,[u2]),cP=u2(),[cN,cR]=cT(cM),cD=(0,A.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,o=cR("DropdownMenuTrigger",n),a=cP(n);return(0,A.createElement)(u9,(0,N.Z)({asChild:!0},a),(0,A.createElement)(V.WV.button,(0,N.Z)({type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":!!o.open||void 0,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},i,{ref:(0,D.F)(t,o.triggerRef),onPointerDown:(0,F.M)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:(0,F.M)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),[" ","ArrowDown"].includes(e.key)&&e.preventDefault())})})))}),cL=(0,A.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cR("DropdownMenuContent",n),o=cP(n),a=(0,A.useRef)(!1);return(0,A.createElement)(ca,(0,N.Z)({id:i.contentId,"aria-labelledby":i.triggerId},o,r,{ref:t,onCloseAutoFocus:(0,F.M)(e.onCloseAutoFocus,e=>{var t;a.current||null===(t=i.triggerRef.current)||void 0===t||t.focus(),a.current=!1,e.preventDefault()}),onInteractOutside:(0,F.M)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!i.modal||r)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)"}}))}),cZ=(0,A.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cP(n);return(0,A.createElement)(cd,(0,N.Z)({},i,r,{ref:t}))}),cF=(0,A.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cP(n);return(0,A.createElement)(cp,(0,N.Z)({},i,r,{ref:t}))}),cz=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,l=cP(t),u=(0,A.useRef)(null),[c=!1,d]=(0,z.T)({prop:i,defaultProp:o,onChange:a});return(0,A.createElement)(cN,{scope:t,triggerId:(0,H.M)(),triggerRef:u,contentId:(0,H.M)(),open:c,onOpenChange:d,onOpenToggle:(0,A.useCallback)(()=>d(e=>!e),[d]),modal:s},(0,A.createElement)(cC,(0,N.Z)({},l,{open:c,onOpenChange:d,dir:r,modal:s}),n))},cV=e=>{let{__scopeDropdownMenu:t,...n}=e,r=cP(t);return(0,A.createElement)(cO,(0,N.Z)({},r,n))},cI="horizontal",cB=["horizontal","vertical"],cH=(0,A.forwardRef)((e,t)=>{let{decorative:n,orientation:r=cI,...i}=e,o=cU(r)?r:cI;return(0,A.createElement)(V.WV.div,(0,N.Z)({"data-orientation":o},n?{role:"none"}:{"aria-orientation":"vertical"===o?o:void 0,role:"separator"},i,{ref:t}))});function cU(e){return cB.includes(e)}cH.propTypes={orientation(e,t,n){let r=e[t],i=String(r);return r&&!cU(r)?Error(`Invalid prop \`orientation\` of value \`${i}\` supplied to \`${n}\`, expected one of: + - horizontal + - vertical + +Defaulting to \`${cI}\`.`):null}};let cW=(0,eC.j)(["m-0 flex-shrink-0 cursor-default"],{variants:{variant:{vertical:"border-r",horizontal:"border-b"},color:{subtle:"border-gray-300 dark:border-graydark-300",verySubtle:"border-gray-100 dark:border-graydark-100",panel:"border-gray-100 dark:border-graydark-400/50"}},defaultVariants:{variant:"horizontal",color:"subtle"}}),cq=A.forwardRef((e,t)=>{let{variant:n,color:r,className:i,...o}=e;return(0,T.jsx)(cH,{ref:t,className:cW({variant:n,color:r,className:i}),...o})}),c$=function(){let{className:e,font:t,color:n="subtle",weight:r="medium",size:i="14",scaleSize:o,noWrap:a,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,eC.cx)(nn({font:t,color:n,weight:r,size:i,scaleSize:o,noWrap:a,ellipsis:s,className:e}),["relative","flex","items-center","tabular-nums","select-none","whitespace-nowrap","px-1.5","py-1.5"])},cK=function(){let{className:e,font:t,color:n="contrast",weight:r="medium",size:i="14",scaleSize:o,noWrap:a,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,eC.cx)(c$({font:t,color:n,weight:r,size:i,scaleSize:o,noWrap:a,ellipsis:s,className:e}),["group","cursor-pointer","rounded-sm","focus:outline-none","focus:text-gray-900","dark:focus:text-white","focus:bg-gray-300","dark:focus:bg-graydark-300","aria-selected:bg-gray-400","aria-selected:dark:bg-graydark-500","data-[disabled]:pointer-events-none","data-[disabled]:text-gray-700","dark:data-[disabled]:text-graydark-700"])},cY=e=>{let{className:t,font:n,color:r="verySubtle",weight:i="medium",size:o="14",scaleSize:a,noWrap:s,ellipsis:l}=e;return nn({font:n,color:r,weight:i,size:o,scaleSize:a,noWrap:s,ellipsis:l,className:t})},cG=e=>(0,eC.cx)(["h-px","my-2","mx-1.5",e]),cX=A.forwardRef((e,t)=>{let{className:n,color:r,...i}=e;return(0,T.jsx)(cq,{ref:t,className:cG(n),...i})}),cQ=A.forwardRef((e,t)=>{let{className:n,font:r,color:i,weight:o,size:a="14",scaleSize:s,noWrap:l,ellipsis:u,...c}=e;return(0,T.jsx)("div",{ref:t,className:(0,eC.cx)(c$({className:n,font:r,color:i,weight:o,size:a,scaleSize:s,noWrap:l,ellipsis:u})),...c})}),cJ=A.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,T.jsx)("div",{ref:t,className:(0,eC.cx)(["ml-auto","pl-5",n]),...r})}),c0=(0,eC.j)(["relative","max-w-sm","z-30","py-1","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-tip","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),c1=e=>(0,eC.cx)(no(),(0,eC.j)(["max-w-xs","shadow-sm","py-1","px-1"])({className:e})),c2={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},c4=A.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o,className:a,open:s,onOpenChange:l}=e,{open:u,onOpenChange:c}=lf({open:s,onOpenChange:l});return(0,T.jsxs)(cz,{open:u,onOpenChange:c,...i,children:[(0,T.jsx)(cD,{asChild:!0,children:n}),(0,T.jsx)(nz,{children:u?(0,T.jsx)(cV,{forceMount:!0,children:(0,T.jsx)(cL,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,T.jsx)(ld.div,{variants:c2,initial:"init",animate:"show",exit:"exit",className:c0(),children:(0,T.jsx)("div",{className:c1(a),children:r})})})}):null})]})}),c3=A.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,T.jsx)(cF,{ref:t,className:cK({className:n}),...r})}),c5=A.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,T.jsx)(cZ,{ref:t,className:(0,eC.cx)("px-1.5",cY({className:n})),...r})}),c6=A.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,T.jsx)("div",{ref:t,className:(0,eC.cx)(["pr-2","opacity-70 group-hover:opacity-100",n]),...r})});var c8=n(44114);let c7={20:"h3",24:"h3",32:"h2",40:"h2",64:"h1"},c9={20:"font-semibold text-base md:text-xl",24:"font-bold text-xl md:text-2xl",32:"font-semibold text-2xl md:text-3xl",40:"font-semibold text-3xl md:text-4xl",64:"font-semibold text-4xl md:text-6xl"},de=A.forwardRef((e,t)=>{let{size:n="24",className:r,id:i,children:o,anchorLink:a,showAnchor:s,...l}=e,u=c7[n];if(a){let e=i||("string"==typeof o?encodeURI(o.toLowerCase().replace(/ /g,"-")):"");return(0,T.jsxs)("div",{className:(0,eC.cx)("relative flex flex-col gap-6 items-start",r),children:[(0,T.jsx)("div",{id:e,className:"absolute -top-[100px]"}),(0,T.jsxs)(c8.rU,{href:"#".concat(e),className:"relative group",children:[(0,T.jsx)(nr,{className:"hidden group-hover:block",children:(0,T.jsx)(lg.POp,{className:"absolute top-1 -left-7 hidden md:block"})}),(0,T.jsx)(nr,{as:u,...l,ref:t,weight:"none",className:(0,eC.cx)("proportional-nums inline-block",c9[n]),children:o})]})]})}return(0,T.jsx)("div",{className:(0,eC.cx)("flex flex-col gap-6 items-start",r),children:(0,T.jsx)(nr,{as:u,...l,ref:t,weight:"none",className:(0,eC.cx)("proportional-nums inline-block",c9[n],r),children:o})})}),dt=(0,eC.j)(["rounded"]);function dn(e){let{className:t,...n}=e;return(0,T.jsx)(c8.Ee,{className:dt({className:t}),...n})}let[dr,di]=(0,R.k)("Label",{id:void 0,controlRef:{current:null}}),da=(0,A.forwardRef)((e,t)=>{let{htmlFor:n,id:r,...i}=e,o=(0,A.useRef)(null),a=(0,A.useRef)(null),s=(0,D.e)(t,a),l=(0,H.M)(r);return(0,A.useEffect)(()=>{if(n){let e=document.getElementById(n),t=a.current;if(t&&e){let t=()=>e.getAttribute("aria-labelledby"),n=[l,t()].filter(Boolean).join(" ");return e.setAttribute("aria-labelledby",n),o.current=e,()=>{var n;let r=null===(n=t())||void 0===n?void 0:n.replace(l,"");""===r?e.removeAttribute("aria-labelledby"):r&&e.setAttribute("aria-labelledby",r)}}}},[l,n]),(0,A.createElement)(dr,{id:l,controlRef:o},(0,A.createElement)(V.WV.span,(0,N.Z)({role:"label",id:l},i,{ref:s,onMouseDown:t=>{var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()},onClick:t=>{var n;if(null===(n=e.onClick)||void 0===n||n.call(e,t),!o.current||t.defaultPrevented)return;let r=o.current.contains(t.target),i=!0===t.isTrusted;!r&&i&&(o.current.click(),o.current.focus())}})))}),ds=e=>{let t=di("LabelConsumer"),{controlRef:n}=t;return(0,A.useEffect)(()=>{e&&(n.current=e)},[e,n]),t.id},dl=A.forwardRef((e,t)=>{let{font:n,size:r="14",scaleSize:i,weight:o,color:a="verySubtle",noWrap:s,ellipsis:l,className:u,...c}=e;return(0,T.jsx)(da,{ref:t,...c,className:cY({font:n,size:r,scaleSize:i,color:a,weight:o,noWrap:s,ellipsis:l,className:u})})}),du=(0,eC.j)(["cursor-pointer"],{variants:{disabled:{true:"opacity-50 pointer-events-none"},underline:{accent:"underline underline-offset-4 decoration-2 decoration-accentdark-900 dark:decoration-accentdark-900",default:"underline underline-offset-4",hover:"hover:underline underline-offset-4",none:""}},defaultVariants:{disabled:!1,underline:"default"}}),dc=e=>{let{font:t,size:n,scaleSize:r,color:i,weight:o,noWrap:a,ellipsis:s,underline:l,disabled:u,className:c}=e;return(0,eC.cx)(nn({scaleSize:r,size:n,font:t,color:i,weight:o,noWrap:a,ellipsis:s,underline:l}),du({disabled:u,underline:l}),c)},dd=A.forwardRef((e,t)=>{let{href:n,font:r,size:i,scaleSize:o,color:a,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f,rel:h,target:p,onClick:m,...v}=e,g=(0,A.useCallback)(e=>{m&&(n||e.preventDefault(),m(e))},[m,n]);return(0,T.jsx)(c8.rU,{href:n||"#",ref:t,className:dc({font:r,scaleSize:o,size:i,color:a,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f}),...v,onClick:g,rel:h||("_blank"===p?"noopener":void 0),target:p})}),df=A.forwardRef((e,t)=>{let{href:n,disabled:r,variant:i,size:o,state:a,rounded:s,icon:l,className:u,tip:c,rel:d,target:f,onClick:h,...p}=e,m=d||("_blank"===f?"noopener":void 0),v=(0,A.useCallback)(e=>{h&&(n||e.preventDefault(),h(e))},[h,n]);return c?(0,T.jsx)(lp,{content:c,children:(0,T.jsx)(c8.rU,{href:n||"#",ref:t,className:lm({variant:i,size:o,state:a,rounded:s,disabled:r,icon:l,className:u}),onClick:v,...p,rel:m,target:f})}):(0,T.jsx)(c8.rU,{href:n||"#",ref:t,className:lm({variant:i,size:o,state:a,rounded:s,disabled:r,icon:l,className:u}),onClick:v,...p,rel:m,target:f})}),dh={src:"/_next/static/media/logo.0e2362ab.png"};function dp(e){let{size:t=30,className:n}=e;return(0,T.jsx)(dn,{priority:!0,src:"/_next/static/media/logo.0e2362ab.png",alt:"Logo",width:t,height:t,className:n})}let dm="Popover",[dv,dg]=(0,R.b)(dm,[tS]),dy=tS(),[db,dx]=dv(dm),dw=(0,A.forwardRef)((e,t)=>{let{__scopePopover:n,...r}=e,i=dx("PopoverTrigger",n),o=dy(n),a=(0,D.e)(t,i.triggerRef),s=(0,A.createElement)(V.WV.button,(0,N.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":dT(i.open)},r,{ref:a,onClick:(0,F.M)(e.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?s:(0,A.createElement)(tO,(0,N.Z)({asChild:!0},o),s)}),dj="PopoverPortal",[dk,dE]=dv(dj,{forceMount:void 0}),dS="PopoverContent",d_=(0,A.forwardRef)((e,t)=>{let n=dE(dS,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,o=dx(dS,e.__scopePopover);return(0,A.createElement)(B.z,{present:r||o.open},o.modal?(0,A.createElement)(dC,(0,N.Z)({},i,{ref:t})):(0,A.createElement)(dO,(0,N.Z)({},i,{ref:t})))}),dC=(0,A.forwardRef)((e,t)=>{let n=dx(dS,e.__scopePopover),r=(0,A.useRef)(null),i=(0,D.e)(t,r),o=(0,A.useRef)(!1);return(0,A.useEffect)(()=>{let e=r.current;if(e)return(0,uU.R)(e)},[]),(0,A.createElement)(uW.Z,{as:L.g7,allowPinchZoom:!0},(0,A.createElement)(dM,(0,N.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,F.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),o.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,F.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,F.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})))}),dO=(0,A.forwardRef)((e,t)=>{let n=dx(dS,e.__scopePopover),r=(0,A.useRef)(!1);return(0,A.createElement)(dM,(0,N.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,o;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current||null===(o=n.triggerRef.current)||void 0===o||o.focus(),t.preventDefault()),r.current=!1},onInteractOutside:t=>{var i,o;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0);let a=t.target,s=null===(o=n.triggerRef.current)||void 0===o?void 0:o.contains(a);s&&t.preventDefault()}}))}),dM=(0,A.forwardRef)((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,f=dx(dS,n),h=dy(n);return(0,uC.EW)(),(0,A.createElement)(uO.M,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o},(0,A.createElement)(eO.XB,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:c,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1)},(0,A.createElement)(tR,(0,N.Z)({"data-state":dT(f.open),role:"dialog",id:f.contentId},h,d,{ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function dT(e){return e?"open":"closed"}let dA=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:a=!1}=e,s=dy(t),l=(0,A.useRef)(null),[u,c]=(0,A.useState)(!1),[d=!1,f]=(0,z.T)({prop:r,defaultProp:i,onChange:o});return(0,A.createElement)(tI,s,(0,A.createElement)(db,{scope:t,contentId:(0,H.M)(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:(0,A.useCallback)(()=>f(e=>!e),[f]),hasCustomAnchor:u,onCustomAnchorAdd:(0,A.useCallback)(()=>c(!0),[]),onCustomAnchorRemove:(0,A.useCallback)(()=>c(!1),[]),modal:a},n))},dP=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,o=dx(dj,t);return(0,A.createElement)(dk,{scope:t,forceMount:n},(0,A.createElement)(B.z,{present:n||o.open},(0,A.createElement)(tB.h,{asChild:!0,container:i},r)))},dN=(0,eC.j)(["relative","z-10","outline-none","max-w-sm","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),dR=(0,eC.cx)(no(),(0,eC.j)(["py-1","px-1"])()),dD={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},dL=A.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o}=e,{open:a,onOpenChange:s}=lf({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,T.jsxs)(dA,{open:a,onOpenChange:s,...i,children:[(0,T.jsx)(dw,{asChild:!0,children:n}),(0,T.jsx)(nz,{children:a?(0,T.jsx)(dP,{forceMount:!0,children:(0,T.jsx)(d_,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,T.jsx)(ld.div,{variants:dD,initial:"init",animate:"show",exit:"exit",className:dN(),children:(0,T.jsx)(ug,{className:dR,children:r})})})}):null})]})}),dZ="Progress",[dF,dz]=(0,R.b)(dZ),[dV,dI]=dF(dZ),dB=(0,A.forwardRef)((e,t)=>{let{__scopeProgress:n,value:r,max:i,getValueLabel:o=dU,...a}=e,s=d$(i)?i:100,l=dK(r,s)?r:null,u=dq(l)?o(l,s):void 0;return(0,A.createElement)(dV,{scope:n,value:l,max:s},(0,A.createElement)(V.WV.div,(0,N.Z)({"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":dq(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":dW(l,s),"data-value":null!=l?l:void 0,"data-max":s},a,{ref:t})))});dB.propTypes={max(e,t,n){let r=e[t],i=String(r);return r&&!d$(r)?Error(`Invalid prop \`max\` of value \`${i}\` supplied to \`${n}\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`):null},value(e,t,n){let r=e[t],i=String(r),o=d$(e.max)?e.max:100;return null==r||dK(r,o)?null:Error(`Invalid prop \`value\` of value \`${i}\` supplied to \`${n}\`. The \`value\` prop must be: + - a positive number + - less than the value passed to \`max\` (or 100 if no \`max\` prop is set) + - \`null\` if the progress is indeterminate. + +Defaulting to \`null\`.`)}};let dH=(0,A.forwardRef)((e,t)=>{var n;let{__scopeProgress:r,...i}=e,o=dI("ProgressIndicator",r);return(0,A.createElement)(V.WV.div,(0,N.Z)({"data-state":dW(o.value,o.max),"data-value":null!==(n=o.value)&&void 0!==n?n:void 0,"data-max":o.max},i,{ref:t}))});function dU(e,t){return`${Math.round(e/t*100)}%`}function dW(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function dq(e){return"number"==typeof e}function d$(e){return dq(e)&&!isNaN(e)&&e>0}function dK(e,t){return dq(e)&&!isNaN(e)&&e<=t&&e>=0}let dY=(0,eC.j)(["relative h-1 w-full overflow-hidden rounded-lg"],{variants:{variant:{gray:"bg-gray-700 dark:bg-graydark-700",accent:"bg-green-600 dark:bg-green-500"}},defaultVariants:{variant:"gray"}}),dG=A.forwardRef((e,t)=>{let{label:n,variant:r,className:i,value:o,max:a=100,...s}=e,l=null!=o?Math.round(o/a*100):null;return(0,T.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,T.jsx)(dB,{...s,ref:t,value:o,max:a,className:dY({variant:r,className:i}),children:(0,T.jsx)(dH,{className:"absolute top-0 right-0 left-0 bottom-0 w-full bg-gray-300 dark:bg-graydark-300 transition-transform",style:{transform:"translateX(".concat(l,"%)")}})}),n&&(0,T.jsx)(nr,{color:"subtle",size:"12",ellipsis:!0,children:n})]})});function dX(e){let t=(0,A.useRef)({value:e,previous:e});return(0,A.useMemo)(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}let dQ="Radio",[dJ,d0]=(0,R.b)(dQ),[d1,d2]=dJ(dQ),d4=(0,A.forwardRef)((e,t)=>{let{__scopeRadio:n,"aria-labelledby":r,name:i,checked:o=!1,required:a,disabled:s,value:l="on",onCheck:u,...c}=e,[d,f]=(0,A.useState)(null),h=(0,D.e)(t,e=>f(e)),p=ds(d),m=(0,A.useRef)(!1),v=!d||!!d.closest("form");return(0,A.createElement)(d1,{scope:n,checked:o,disabled:s},(0,A.createElement)(V.WV.button,(0,N.Z)({type:"button",role:"radio","aria-checked":o,"aria-labelledby":r||p,"data-state":d6(o),"data-disabled":s?"":void 0,disabled:s,value:l},c,{ref:h,onClick:(0,F.M)(e.onClick,e=>{o||null==u||u(),v&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})),v&&(0,A.createElement)(d5,{control:d,bubbles:!m.current,name:i,value:l,checked:o,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))}),d3=(0,A.forwardRef)((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,o=d2("RadioIndicator",n);return(0,A.createElement)(B.z,{present:r||o.checked},(0,A.createElement)(V.WV.span,(0,N.Z)({"data-state":d6(o.checked),"data-disabled":o.disabled?"":void 0},i,{ref:t})))}),d5=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,o=(0,A.useRef)(null),a=dX(n),s=tj(t);return(0,A.useEffect)(()=>{let e=o.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked"),s=i.set;if(a!==n&&s){let t=new Event("click",{bubbles:r});s.call(e,n),e.dispatchEvent(t)}},[a,n,r]),(0,A.createElement)("input",(0,N.Z)({type:"radio","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function d6(e){return e?"checked":"unchecked"}let d8=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],d7="RadioGroup",[d9,fe]=(0,R.b)(d7,[uL,d0]),ft=uL(),fn=d0(),[fr,fi]=d9(d7),fo=(0,A.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,name:r,"aria-labelledby":i,defaultValue:o,value:a,required:s=!1,orientation:l,dir:u,loop:c=!0,onValueChange:d,...f}=e,h=ds(),p=ft(n),m=lK(u),[v,g]=(0,z.T)({prop:a,defaultProp:o,onChange:d});return(0,A.createElement)(fr,{scope:n,name:r,required:s,value:v,onValueChange:g},(0,A.createElement)(uz,(0,N.Z)({asChild:!0},p,{orientation:l,dir:m,loop:c}),(0,A.createElement)(V.WV.div,(0,N.Z)({role:"radiogroup","aria-required":s,"aria-orientation":l,"aria-labelledby":i||h,dir:m},f,{ref:t}))))}),fa=(0,A.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,disabled:r,...i}=e,o=fi("RadioGroupItem",n),a=ft(n),s=fn(n),l=(0,A.useRef)(null),u=(0,D.e)(t,l),c=o.value===i.value,d=(0,A.useRef)(!1);return(0,A.useEffect)(()=>{let e=e=>{d8.includes(e.key)&&(d.current=!0)},t=()=>d.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,A.createElement)(uI,(0,N.Z)({asChild:!0},a,{focusable:!r,active:c}),(0,A.createElement)(d4,(0,N.Z)({disabled:r,required:o.required,checked:c},s,i,{name:o.name,ref:u,onCheck:()=>o.onValueChange(i.value),onKeyDown:(0,F.M)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,F.M)(i.onFocus,()=>{var e;d.current&&(null===(e=l.current)||void 0===e||e.click())})})))}),fs=(0,A.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,...r}=e,i=fn(n);return(0,A.createElement)(d3,(0,N.Z)({},i,r,{ref:t}))}),fl=(0,eC.j)(["relative flex items-center h-full justify-center w-full",'after:content-[""] after:block after:rounded-full after:bg-green-600 after:dark:bg-green-500'],{variants:{size:{small:"after:w-2 after:h-2 ",medium:"after:w-4 after:h-4"}},defaultVariants:{size:"small"}}),fu=(0,eC.j)(["select-none","inline-flex items-center justify-center","m-0 p-0","outline-none","rounded-full","overflow-hidden","focus:ring ring-blue-500 dark:ring-blue-200","bg-white dark:bg-graydark-200","border border-gray-500 dark:border-graydark-400","enabled:hover:border-gray-700 enabled:hover:dark:border-graydark-600","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-400","disabled:bg-gray-200 disabled:dark:bg-graydark-200"],{variants:{size:{small:"w-4 h-4",medium:"w-6 h-6"}},defaultVariants:{size:"small"}}),fc=A.forwardRef((e,t)=>{let{size:n,className:r,children:i,...o}=e;return(0,T.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,T.jsx)(fa,{...o,className:fu({size:n,className:r}),ref:t,children:(0,T.jsx)(fs,{className:fl({size:n})})}),(0,T.jsx)(nr,{size:"14",className:"relative top-px flex items-center",color:o.disabled?"verySubtle":"subtle",children:i})]})}),fd=A.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,T.jsx)(fo,{...r,className:(0,eC.cx)("flex gap-2",n),ref:t})}),ff="Tabs",[fh,fp]=(0,R.b)(ff,[uL]),fm=uL(),[fv,fg]=fh(ff),fy=(0,A.forwardRef)((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:o,orientation:a="horizontal",dir:s,activationMode:l="automatic",...u}=e,c=lK(s),[d,f]=(0,z.T)({prop:r,onChange:i,defaultProp:o});return(0,A.createElement)(fv,{scope:n,baseId:(0,H.M)(),value:d,onValueChange:f,orientation:a,dir:c,activationMode:l},(0,A.createElement)(V.WV.div,(0,N.Z)({dir:c,"data-orientation":a},u,{ref:t})))}),fb=(0,A.forwardRef)((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,o=fg("TabsList",n),a=fm(n);return(0,A.createElement)(uz,(0,N.Z)({asChild:!0},a,{orientation:o.orientation,dir:o.dir,loop:r}),(0,A.createElement)(V.WV.div,(0,N.Z)({role:"tablist","aria-orientation":o.orientation},i,{ref:t})))}),fx=(0,A.forwardRef)((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...o}=e,a=fg("TabsTrigger",n),s=fm(n),l=fj(a.baseId,r),u=fk(a.baseId,r),c=r===a.value;return(0,A.createElement)(uI,(0,N.Z)({asChild:!0},s,{focusable:!i,active:c}),(0,A.createElement)(V.WV.button,(0,N.Z)({type:"button",role:"tab","aria-selected":c,"aria-controls":u,"data-state":c?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:l},o,{ref:t,onMouseDown:(0,F.M)(e.onMouseDown,e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(r)}),onKeyDown:(0,F.M)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&a.onValueChange(r)}),onFocus:(0,F.M)(e.onFocus,()=>{let e="manual"!==a.activationMode;c||i||!e||a.onValueChange(r)})})))}),fw=(0,A.forwardRef)((e,t)=>{let{__scopeTabs:n,value:r,forceMount:i,children:o,...a}=e,s=fg("TabsContent",n),l=fj(s.baseId,r),u=fk(s.baseId,r),c=r===s.value,d=(0,A.useRef)(c);return(0,A.useEffect)(()=>{let e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,A.createElement)(B.z,{present:i||c},({present:n})=>(0,A.createElement)(V.WV.div,(0,N.Z)({"data-state":c?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!n,id:u,tabIndex:0},a,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),n&&o))});function fj(e,t){return`${e}-trigger-${t}`}function fk(e,t){return`${e}-content-${t}`}let fE=A.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,T.jsx)(fy,{ref:t,className:(0,eC.cx)("flex flex-col",n),...r})}),fS=A.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,T.jsx)(fb,{ref:t,className:(0,eC.cx)("flex flex-shrink-0 border-b border-gray-500 dark:border-graydark-500",n),...r})}),f_=A.forwardRef((e,t)=>{let{font:n,size:r="16",weight:i="medium",className:o,...a}=e;return(0,T.jsx)(fx,{ref:t,type:"button",className:(0,eC.cx)("px-10 h-12","flex-1 flex items-center justify-center","outline-none","select-none cursor-pointer","border-b-3","text-gray-1000 dark:text-graydark-1000","hover:text-gray-1100 hover:dark:text-white","border-transparent","data-[state=active]:text-accent-1100 data-[state=active]:dark:text-accentdark-1100","data-[state=active]:border-green-600 data-[state=active]:dark:border-green-500",nn({font:n,size:r,weight:i,ellipsis:!0}),o),...a})}),fC=A.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,T.jsx)(fw,{ref:t,className:(0,eC.cx)("flex-grow-1 pt-6 outline-none",n),...r})});(0,eC.j)(["relative appearance-none outline-none","p-2 m-0 w-full","min-h-[80px]",nn(),"tabular-nums","resize-y","rounded","focus:ring ring-blue-500 dark:ring-blue-200","text-gray-1100 dark:text-white","placeholder:text-gray-600 placeholder:dark:text-graydark-500","disabled:text-gray-400 disabled:dark:text-graydark-400"],{variants:{size:{small:"h-7 text-sm px-2",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},variant:{default:["border","bg-white dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800"],ghost:"bg-transparent"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]},cursor:{default:"",text:"cursor-text"}},defaultVariants:{size:"small",variant:"default",cursor:"default",state:"default"}});let fO=(0,eC.j)(["font-sans [type=number]:font-mono","outline-none m-0 p-0 w-full","disabled:pointer-events-none","tabular-nums","rounded","text-gray-1100 dark:text-white","autofill:text-fill-gray-1100 autofill:dark:text-fill-white","autofill:placeholder:text-fill-gray-700 autofill:placeholder:dark:text-fill-graydark-700","placeholder:text-gray-700 placeholder:dark:text-graydark-700","disabled:text-gray-400 disabled:dark:text-graydark-400"],{variants:{size:{small:"h-7 text-sm px-2",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},variant:{default:["border","bg-white dark:bg-graydark-50","autofill:bg-white autofill:dark:bg-graydark-50","autofill:shadow-fill-white autofill:dark:shadow-fill-graydark-50"],ghost:"bg-transparent"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]},focus:{default:["focus:ring ring-blue-500 dark:ring-blue-200","focus:z-10"],none:""},cursor:{default:"",text:"cursor-text"},noSpin:{true:"[&::-webkit-outer-spin-button, &::-webkit-inner-spin-button]:appearance-none"}},defaultVariants:{size:"small",focus:"default",variant:"default",cursor:"default",state:"default"}}),fM=A.forwardRef((e,t)=>{let{variant:n,size:r,state:i,noSpin:o,cursor:a,focus:s,className:l,...u}=e;return(0,T.jsx)("input",{ref:t,className:fO({variant:n,size:r,state:i,noSpin:o,cursor:a,focus:s,className:l}),...u})});/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var fT=function(){return(fT=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1){if(e.includes(t)){var r=e.split(t),i=r[0],o=r[1];if(o.length>n)return""+i+t+o.slice(0,n)}var a=e.length>n?RegExp("(\\d+)(\\d{"+n+"})"):RegExp("(\\d)(\\d+)"),s=e.match(a);if(s){var i=s[1],o=s[2];return""+i+t+o}}return e},fz=function(e,t){var n=t.groupSeparator,r=t.decimalSeparator,i=RegExp("\\d([^"+fP(void 0===n?",":n)+fP(void 0===r?".":r)+"0-9]+)"),o=e.match(i);return o?o[1]:void 0},fV=function(e){var t=e.value,n=e.decimalSeparator,r=e.intlConfig,i=e.decimalScale,o=e.prefix,a=void 0===o?"":o,s=e.suffix,l=void 0===s?"":s;if(""===t||void 0===t)return"";if("-"===t)return"-";var u=RegExp("^\\d?-"+(a?fP(a)+"?":"")+"\\d").test(t),c="."!==n?fI(t,n,u):t,d=fB((r?new Intl.NumberFormat(r.locale,r.currency?{style:"currency",currency:r.currency,minimumFractionDigits:i||0,maximumFractionDigits:20}:void 0):new Intl.NumberFormat(void 0,{minimumFractionDigits:i||0,maximumFractionDigits:20})).formatToParts(Number(c)),e),f=fz(d,fT({},e)),h=t.slice(-1)===n?n:"",p=(c.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return(void 0===i&&p&&n&&(d=d.includes(n)?d.replace(RegExp("(\\d+)("+fP(n)+")(\\d+)","g"),"$1$2"+p):f&&!l?d.replace(f,""+n+p+f):""+d+n+p),l&&h)?""+d+h+l:f&&h?d.replace(f,""+h+f):f&&l?d.replace(f,""+h+l):[d,h,l].join("")},fI=function(e,t,n){var r=e;return t&&"."!==t&&(r=r.replace(RegExp(fP(t),"g"),"."),n&&"-"===t&&(r="-"+r.slice(1))),r},fB=function(e,t){var n=t.prefix,r=t.groupSeparator,i=t.decimalSeparator,o=t.decimalScale,a=t.disableGroupSeparators,s=void 0!==a&&a;return e.reduce(function(e,t,a){var l=t.type,u=t.value;return 0===a&&n?"minusSign"===l?[u,n]:"currency"===l?fA(fA([],e),[n]):[n,u]:"currency"===l?n?e:fA(fA([],e),[u]):"group"===l?s?e:fA(fA([],e),[void 0!==r?r:u]):"decimal"===l?void 0!==o&&0===o?e:fA(fA([],e),[void 0!==i?i:u]):"fraction"===l?fA(fA([],e),[void 0!==o?u.slice(0,o):u]):fA(fA([],e),[u])},[""]).join("")},fH={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},fU=function(e){var t=e||{},n=t.locale,r=t.currency;return(n?new Intl.NumberFormat(n,r?{currency:r,style:"currency"}:void 0):new Intl.NumberFormat).formatToParts(1000.1).reduce(function(e,t,n){return"currency"===t.type?0===n?fT(fT({},e),{currencySymbol:t.value,prefix:t.value}):fT(fT({},e),{currencySymbol:t.value,suffix:t.value}):"group"===t.type?fT(fT({},e),{groupSeparator:t.value}):"decimal"===t.type?fT(fT({},e),{decimalSeparator:t.value}):e},fH)},fW=function(e){return RegExp(/\d/,"gi").test(e)},fq=function(e,t,n){if(void 0===t&&(t="."),void 0===n||""===e||void 0===e)return e;if(!e.match(/\d/g))return"";var r=e.split(t),i=r[0],o=r[1];if(0===n)return i;var a=o||"";if(a.lengtht.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}(e,["allowDecimals","allowNegativeValue","id","name","className","customInput","decimalsLimit","defaultValue","disabled","maxLength","value","onValueChange","fixedDecimalLength","placeholder","decimalScale","prefix","suffix","intlConfig","step","min","max","disableGroupSeparators","disableAbbreviations","decimalSeparator","groupSeparator","onChange","onFocus","onBlur","onKeyDown","onKeyUp","transformRawValue"]);if(_&&fW(_))throw Error("decimalSeparator cannot be a number");if(C&&fW(C))throw Error("groupSeparator cannot be a number");var L=(0,A.useMemo)(function(){return fU(b)},[b]),Z=_||L.decimalSeparator||"",F=C||L.groupSeparator||"";if(Z&&F&&Z===F&&!1===E)throw Error("decimalSeparator cannot be the same as groupSeparator");var z={decimalSeparator:Z,groupSeparator:F,disableGroupSeparators:E,intlConfig:b,prefix:g||L.prefix,suffix:y},V={decimalSeparator:Z,groupSeparator:F,allowDecimals:void 0===n||n,decimalsLimit:l||p||2,allowNegativeValue:void 0===r||r,disableAbbreviations:void 0!==S&&S,prefix:g||L.prefix,transformRawValue:R},I=null!=u?fV(fT(fT({},z),{decimalScale:v,value:String(u)})):null!=f?fV(fT(fT({},z),{decimalScale:v,value:String(f)})):"",B=(0,A.useState)(I),H=B[0],U=B[1],W=(0,A.useState)(!1),q=W[0],$=W[1],K=(0,A.useState)(0),Y=K[0],G=K[1],X=(0,A.useState)(0),Q=X[0],J=X[1],ee=(0,A.useState)(null),et=ee[0],en=ee[1],er=t||(0,A.useRef)(null),ei=function(e,t){$(!0);var n=f$({selectionStart:t,value:e,lastKeyStroke:et,stateValue:H,groupSeparator:F}),r=n.modifiedValue,i=n.cursorPosition,a=fZ(fT({value:r},V));if(!d||!(a.replace(/-/g,"").length>d)){if(""===a||"-"===a||a===Z){h&&h(void 0,o,{float:null,formatted:"",value:""}),U(a);return}var s=parseFloat(a.replace(Z,".")),l=fV(fT({value:a},z));if(null!=i){var u=i+(l.length-e.length);G(u=u<=0?g?g.length:0:u),J(Q+1)}U(l),h&&h(a,o,{float:s,formatted:l,value:a})}};(0,A.useEffect)(function(){q&&"-"!==H&&er&&"object"==typeof er&&er.current&&er.current.setSelectionRange(Y,Y)},[H,Y,er,q,Q]);var eo=fT({type:"text",inputMode:"decimal",id:i,name:o,className:a,onChange:function(e){var t=e.target;ei(t.value,t.selectionStart),O&&O(e)},onBlur:function(e){var t=e.target.value,n=fZ(fT({value:t},V));if("-"===n||!n){U(""),T&&T(e);return}var r=fq(fF(n,Z,p),Z,void 0!==v?v:p),i=parseFloat(r.replace(Z,".")),a=fV(fT(fT({},z),{value:r}));h&&h(r,o,{float:i,formatted:a,value:r}),U(a),T&&T(e)},onFocus:function(e){return M&&M(e),H?H.length:0},onKeyDown:function(e){var t=e.key;if(en(t),x&&("ArrowUp"===t||"ArrowDown"===t)){e.preventDefault(),G(H.length);var n=parseFloat(null!=f?String(f).replace(Z,"."):fZ(fT({value:H},V)))||0,r="ArrowUp"===t?n+x:n-x;if(void 0!==w&&rj)return;var i=String(x).includes(".")?Number(String(x).split(".")[1].length):void 0;ei(String(i?r.toFixed(i):r).replace(".",Z))}P&&P(e)},onKeyUp:function(e){var t=e.key,n=e.currentTarget.selectionStart;if("ArrowUp"!==t&&"ArrowDown"!==t&&"-"!==H){var r=fz(H,{groupSeparator:F,decimalSeparator:Z});if(r&&n&&n>H.length-r.length&&er&&"object"==typeof er&&er.current){var i=H.length-r.length;er.current.setSelectionRange(i,i)}}N&&N(e)},placeholder:m,disabled:void 0!==c&&c,value:null==f||"-"===H||Z&&H===Z?H:fV(fT(fT({},z),{decimalScale:q?void 0:v,value:String(f)})),ref:er},D);return s?A.createElement(s,fT({},eo)):A.createElement("input",fT({},eo))});function fY(e){let{units:t,variant:n,size:r="small",state:i,noSpin:o,focus:a,cursor:s,className:l,decimalsLimit:u,onValueChange:c,...d}=e,[f,h]=(0,A.useState)();return(0,A.useEffect)(()=>{h(navigator.language)},[]),(0,T.jsxs)("div",{className:"relative",children:[(0,T.jsx)(fK,{...d,decimalsLimit:u,intlConfig:f?{locale:f}:void 0,allowDecimals:!!u,autoComplete:"off",spellCheck:!1,onValueChange:c,transformRawValue:e=>{if(e.length>0){if("."===e[0])return"0."+e.slice(1);if(","===e[0])return"0,"+e.slice(1)}return e},className:(0,eC.cx)(fO({variant:n,size:r,state:i,focus:a,noSpin:o,cursor:s,className:l}),t?"pr-9":"")}),t&&(0,T.jsx)("div",{className:(0,eC.cx)("flex items-center absolute top-0 h-full","small"===r?"right-2":"","medium"===r?"right-3":"","large"===r?"right-3":""),children:(0,T.jsx)(nr,{size:"12",weight:"medium",color:"subtle",children:t})})]})}fK.displayName="CurrencyInput";var fG=n(6391),fX=n.n(fG);function fQ(e,t){return e.decimalPlaces()>t?e.toFixed(t):e.toString()}let fJ=(0,A.forwardRef)(function(e,t){let{value:n,placeholder:r=new(fX())(100),decimalsLimit:i=6,onChange:o,size:a="small",units:s,error:l,changed:u,onBlur:c,onFocus:d,...f}=e,h=(0,A.useMemo)(()=>new(fX())(n),[n]),[p,m]=(0,A.useState)(""),v=(0,A.useMemo)(()=>f0(p),[p]),g=(0,A.useCallback)(e=>{o&&o((e=f0(e))&&!isNaN(Number(e))?new(fX())(e):void 0)},[o]),y=(0,A.useCallback)(e=>{m(e),g(e)},[m,g]);return(0,A.useEffect)(()=>{if(!h.isEqualTo(v)){let e=fQ(h,i);m(e)}},[h]),(0,T.jsx)(fY,{ref:t,...f,"data-testid":"numberfield",size:a,placeholder:r.isNaN()?"":fQ(r,i),units:s,value:"NaN"!==p?p:"",decimalsLimit:i,onBlur:e=>{c&&c(e)},onFocus:e=>{d&&d(e)},onValueChange:e=>y(e||"")})});function f0(e){return(null==e?void 0:e.replace(/,/g,"."))||""}var f1=n(95753),f2=n(9455);let f4=new(fX())(0),f3=(0,A.forwardRef)(function(e,t){let{sc:n,placeholder:r=new(fX())(100),decimalsLimitFiat:i=6,decimalsLimitSc:o=6,onChange:a,size:s="medium",units:l="SC",showFiat:u=!0,error:c,changed:d,prefix:f,onBlur:h,onFocus:p,...m}=e,v=(0,A.useMemo)(()=>new(fX())(void 0===n?NaN:n),[n]),{settings:g}=(0,f1.Hv)(),y=(0,f2.BW)({config:{swr:{revalidateOnFocus:!1}}}),b=(0,A.useMemo)(()=>{var e;return g.siaCentral&&y.data?new(fX())((null===(e=y.data)||void 0===e?void 0:e.rates.sc[g.currency.id])||f4):f4},[y.data,g]),[x,w]=(0,A.useState)(),[j,k]=(0,A.useState)(""),[E,S]=(0,A.useState)(""),_=(0,A.useMemo)(()=>f5(j),[j]),C=(0,A.useMemo)(()=>f5(E),[E]),O=(0,A.useCallback)(e=>{a&&a((e=f5(e))&&!isNaN(Number(e))?new(fX())(e):void 0)},[a]),M=(0,A.useCallback)(e=>{let t=fQ(e,i);S(t)},[S,i]),P=(0,A.useCallback)(e=>{let t=fQ(e,o);return k(t),O(t),t},[k,o,O]),N=(0,A.useCallback)(e=>{k(e),O(e)},[k,O]),R=(0,A.useCallback)(e=>{let t=new(fX())(e).times(b);M(t)},[M,b]),D=(0,A.useCallback)(e=>{let t=new(fX())(e).dividedBy(b);P(t)},[P,b]),[L,Z]=(0,A.useState)(!1);return(0,A.useEffect)(()=>{if(!v.isEqualTo(_)){let e=fQ(v,o);k(e),"fiat"!==x&&R(e)}L||Z(!0)},[v]),(0,A.useEffect)(()=>{L&&R(_)},[b]),(0,A.useEffect)(()=>{"sc"===x&&R(_)},[_]),(0,A.useEffect)(()=>{"fiat"===x&&D(C)},[C]),(0,T.jsxs)("div",{ref:t,className:(0,eC.cx)("flex flex-col bg-white dark:bg-graydark-50","focus-within:ring ring-blue-500 dark:ring-blue-200","border",c?"border-red-500 dark:border-red-400":d?"border-green-500 dark:border-green-400":"border-gray-200 dark:border-graydark-200","rounded"),children:[(0,T.jsx)(fY,{...m,"data-testid":"scInput",size:s,variant:"ghost",focus:"none",placeholder:fQ(r,o),units:l,value:"NaN"!==j?j:"",decimalsLimit:o,allowNegativeValue:!1,onBlur:e=>{w(void 0),h&&h(e)},onFocus:e=>{w("sc"),p&&p(e)},onValueChange:e=>{N(e||"")}}),u&&g.siaCentral&&(0,T.jsx)(fY,{...m,"data-testid":"fiatInput",size:s,variant:"ghost",focus:"none",value:"NaN"!==E?E:"",units:g.currency.label,decimalsLimit:i,allowNegativeValue:!1,placeholder:"".concat(g.currency.prefix).concat(b?b.times(r).toFixed(i):"0.42"),prefix:f||g.currency.prefix,onFocus:e=>{w("fiat"),p&&p(e)},onBlur:e=>{w(void 0),h&&h(e)},onValueChange:e=>{S(e||"")}})]})});function f5(e){return(null==e?void 0:e.replace(/,/g,"."))||""}function f6(e){let{children:t}=e;return(0,T.jsx)(lp,{content:t,children:(0,T.jsx)("div",{className:"relative items-center inline mx-1",children:(0,T.jsx)(nr,{color:"subtle",children:(0,T.jsx)(lg.RdX,{className:"scale-75"})})})})}function f8(e){let{values:t,options:n,onChange:r}=e;return(0,T.jsx)("div",{className:"flex flex-wrap gap-1",children:n.map(e=>(0,T.jsx)(lv,{variant:t.includes(e.value)?"active":"inactive",onClick:()=>{r(e.value)},children:e.label},e.value))})}function f7(e){let{options:t,onClick:n,onRemove:r}=e;return(0,T.jsx)("div",{className:"flex flex-wrap gap-1",children:t.map(e=>(0,T.jsxs)(lH,{children:[(0,T.jsx)(lv,{variant:"active",onClick:()=>{n&&n(e.value)},children:e.label}),(0,T.jsx)(lv,{variant:"active",size:"small",onClick:()=>r(e.value),children:(0,T.jsx)(lg.PcV,{})})]},e.value))})}let f9=(0,eC.j)(["font-sans","font-normal","tabular-nums","flex-shrink-0","rounded","flex items-center","bg-white dark:bg-graydark-200","hover:bg-gray-50 dark:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","autofill:bg-blue-100 autofill:dark:bg-blue-800","border","focus-within:z-10","focus-within:ring ring-blue-500 dark:ring-blue-200","text-gray-1100 dark:text-white","[&>select:disabled]:text-gray-600 [&>select:disabled]:dark:text-graydark-700"],{variants:{size:{small:"h-7 text-sm px-1",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]}},defaultVariants:{state:"default",size:"small"}}),he=A.forwardRef((e,t)=>{let{size:n,state:r,icon:i,className:o,...a}=e;return(0,T.jsxs)("div",{className:f9({size:n,state:r,className:o}),children:[i,(0,T.jsx)("select",{ref:t,...a,className:"appearance-none flex-1 bg-transparent outline-none w-full h-full pl-1 pr-1"}),(0,T.jsx)(lg.Cp0,{className:"pointer-events-none scale-75"})]})}),ht=A.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,T.jsx)("option",{ref:t,...r,className:(0,eC.cx)("bg-white dark:bg-graydark-200","text-gray-1100 dark:text-white",n)})}),hn=(0,eC.j)(["bg-gray-300 dark:bg-graydark-300","relative","overflow-hidden","animate-pulse","rounded"]);function hr(e){let{className:t}=e;return(0,T.jsx)("div",{className:hn({className:t})})}let hi=(0,eC.j)(["rounded-full flex-shrink-0"],{variants:{size:{default:"w-2 h-2"}},defaultVariants:{size:"default"}}),ho=A.forwardRef((e,t)=>{let{size:n,className:r,...i}=e;return(0,T.jsx)("div",{ref:t,className:hi({size:n,className:r}),...i})}),ha="Switch",[hs,hl]=(0,R.b)(ha),[hu,hc]=hs(ha),hd=(0,A.forwardRef)((e,t)=>{let{__scopeSwitch:n,"aria-labelledby":r,name:i,checked:o,defaultChecked:a,required:s,disabled:l,value:u="on",onCheckedChange:c,...d}=e,[f,h]=(0,A.useState)(null),p=(0,D.e)(t,e=>h(e)),m=ds(f),v=(0,A.useRef)(!1),g=!f||!!f.closest("form"),[y=!1,b]=(0,z.T)({prop:o,defaultProp:a,onChange:c});return(0,A.createElement)(hu,{scope:n,checked:y,disabled:l},(0,A.createElement)(V.WV.button,(0,N.Z)({type:"button",role:"switch","aria-checked":y,"aria-labelledby":r||m,"aria-required":s,"data-state":hp(y),"data-disabled":l?"":void 0,disabled:l,value:u},d,{ref:p,onClick:(0,F.M)(e.onClick,e=>{b(e=>!e),g&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})),g&&(0,A.createElement)(hh,{control:f,bubbles:!v.current,name:i,value:u,checked:y,required:s,disabled:l,style:{transform:"translateX(-100%)"}}))}),hf=(0,A.forwardRef)((e,t)=>{let{__scopeSwitch:n,...r}=e,i=hc("SwitchThumb",n);return(0,A.createElement)(V.WV.span,(0,N.Z)({"data-state":hp(i.checked),"data-disabled":i.disabled?"":void 0},r,{ref:t}))}),hh=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,o=(0,A.useRef)(null),a=dX(n),s=tj(t);return(0,A.useEffect)(()=>{let e=o.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked"),s=i.set;if(a!==n&&s){let t=new Event("click",{bubbles:r});s.call(e,n),e.dispatchEvent(t)}},[a,n,r]),(0,A.createElement)("input",(0,N.Z)({type:"checkbox","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function hp(e){return e?"checked":"unchecked"}let hm=(0,eC.j)(["absolute left-0 rounded-full","transition-transform","bg-white dark:bg-graydark-500"],{variants:{size:{small:["w-3 h-3","translate-x-px","data-[state=checked]:translate-x-[9px]"],medium:["w-5 h-5","translate-x-0.5","data-[state=checked]:translate-x-[20px]"]}},defaultVariants:{size:"small"}}),hv=(0,eC.j)(["select-none outline-none","relative inline-flex items-center justify-center","m-0 rounded-full","focus:ring ring-blue-500 dark:ring-blue-200","border","bg-gray-300 dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","disabled:cursor-default","enabled:data-[state=checked]:bg-green-600 dark:enabled:data-[state=checked]:bg-green-500","disabled:data-[state=checked]:bg-green-600/50 dark:disabled:data-[state=checked]:bg-green-500/50"],{variants:{size:{small:"w-6 h-4",medium:"w-11 h-6"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]}},defaultVariants:{size:"small",state:"default"}}),hg=(0,A.forwardRef)((e,t)=>{let{size:n,state:r,className:i,children:o,...a}=e;return(0,T.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,T.jsx)(hd,{className:hv({size:n,state:r,className:i}),...a,ref:t,children:(0,T.jsx)(hf,{className:hm({size:n})})}),o&&(0,T.jsx)(nr,{color:a.disabled?"subtle":"contrast",children:o})]})}),hy=(0,A.forwardRef)((e,t)=>{let{children:n,...r}=e,i=A.Children.toArray(n),o=i.find(hw);if(o){let e=o.props.children,n=i.map(t=>t!==o?t:A.Children.count(e)>1?A.Children.only(null):(0,A.isValidElement)(e)?e.props.children:null);return(0,A.createElement)(hb,(0,N.Z)({},r,{ref:t}),(0,A.isValidElement)(e)?(0,A.cloneElement)(e,void 0,n):null)}return(0,A.createElement)(hb,(0,N.Z)({},r,{ref:t}),n)});hy.displayName="Slot";let hb=(0,A.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,A.isValidElement)(n)?(0,A.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r],a=/^on[A-Z]/.test(r);a?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:(0,D.F)(t,n.ref)}):A.Children.count(n)>1?A.Children.only(null):null});hb.displayName="SlotClone";let hx=({children:e})=>(0,A.createElement)(A.Fragment,null,e);function hw(e){return(0,A.isValidElement)(e)&&e.type===hx}let hj=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,A.forwardRef)((e,n)=>{let{asChild:r,...i}=e,o=r?hy:t;return(0,A.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,A.createElement)(o,(0,N.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),hk=(0,A.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,A.createElement)(hj.svg,(0,N.Z)({},o,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,A.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),hE="Popper",[hS,h_]=(0,R.b)(hE),[hC,hO]=hS(hE),hM=(0,A.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,o=hO("PopperAnchor",n),a=(0,A.useRef)(null),s=(0,D.e)(t,a);return(0,A.useEffect)(()=>{o.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,A.createElement)(hj.div,(0,N.Z)({},i,{ref:s}))}),hT="PopperContent",[hA,hP]=hS(hT),[hN,hR]=hS(hT,{hasParent:!1,positionUpdateFns:new Set}),hD=(0,A.forwardRef)((e,t)=>{var n,r,i,o,a,s,l,u,c;let{__scopePopper:d,side:f="bottom",sideOffset:h=0,align:p="center",alignOffset:m=0,arrowPadding:v=0,collisionBoundary:g=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:x=!1,avoidCollisions:w=!0,onPlaced:j,...k}=e,E=hO(hT,d),[S,_]=(0,A.useState)(null),C=(0,D.e)(t,e=>_(e)),[O,M]=(0,A.useState)(null),T=tj(O),P=null!==(n=null==T?void 0:T.width)&&void 0!==n?n:0,N=null!==(r=null==T?void 0:T.height)&&void 0!==r?r:0,R="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},L=Array.isArray(g)?g:[g],Z=L.length>0,F={padding:R,boundary:L.filter(hF),altBoundary:Z},{reference:z,floating:V,strategy:B,x:H,y:U,placement:W,middlewareData:q,update:$}=tb({strategy:"fixed",placement:f+("center"!==p?"-"+p:""),whileElementsMounted:tm,middleware:[hz(),eG({mainAxis:h+N,alignmentAxis:m}),w?eQ({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?eJ():void 0,...F}):void 0,O?tx({element:O,padding:v}):void 0,w?eq({...F}):void 0,{name:"size",options:c={...F,apply:({elements:e,availableWidth:t,availableHeight:n})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${n}px`)}},async fn(e){let t,n;let{placement:r,rects:i,platform:o,elements:a}=e,{apply:s,...l}=c,u=await eZ(e,l),d=eM(r),f=eT(r);"top"===d||"bottom"===d?(t=d,n=f===(await (null==o.isRTL?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(n=d,t="end"===f?"top":"bottom");let h=ez(u.left,0),p=ez(u.right,0),m=ez(u.top,0),v=ez(u.bottom,0),g={availableHeight:i.floating.height-(["left","right"].includes(r)?2*(0!==m||0!==v?m+v:ez(u.top,u.bottom)):u[t]),availableWidth:i.floating.width-(["top","bottom"].includes(r)?2*(0!==h||0!==p?h+p:ez(u.left,u.right)):u[n])},y=await o.getDimensions(a.floating);null==s||s({...e,...g});let b=await o.getDimensions(a.floating);return y.width!==b.width||y.height!==b.height?{reset:{rects:!0}}:{}}},hV({arrowWidth:P,arrowHeight:N}),x?eY({strategy:"referenceHidden"}):void 0].filter(hZ)});(0,I.b)(()=>{z(E.anchor)},[z,E.anchor]);let K=null!==H&&null!==U,[Y,G]=hI(W),X=(0,lS.W)(j);(0,I.b)(()=>{K&&(null==X||X())},[K,X]);let Q=null===(i=q.arrow)||void 0===i?void 0:i.x,J=null===(o=q.arrow)||void 0===o?void 0:o.y,ee=(null===(a=q.arrow)||void 0===a?void 0:a.centerOffset)!==0,[et,en]=(0,A.useState)();(0,I.b)(()=>{S&&en(window.getComputedStyle(S).zIndex)},[S]);let{hasParent:er,positionUpdateFns:ei}=hR(hT,d),eo=!er;(0,A.useLayoutEffect)(()=>{if(!eo)return ei.add($),()=>{ei.delete($)}},[eo,ei,$]),(0,I.b)(()=>{eo&&K&&Array.from(ei).reverse().forEach(e=>requestAnimationFrame(e))},[eo,K,ei]);let ea={"data-side":Y,"data-align":G,...k,ref:C,style:{...k.style,animation:K?void 0:"none",opacity:null!==(s=q.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,A.createElement)("div",{ref:V,"data-radix-popper-content-wrapper":"",style:{position:B,left:0,top:0,transform:K?`translate3d(${Math.round(H)}px, ${Math.round(U)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:et,"--radix-popper-transform-origin":[null===(l=q.transformOrigin)||void 0===l?void 0:l.x,null===(u=q.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},(0,A.createElement)(hA,{scope:d,placedSide:Y,onArrowChange:M,arrowX:Q,arrowY:J,shouldHideArrow:ee},eo?(0,A.createElement)(hN,{scope:d,hasParent:!0,positionUpdateFns:ei},(0,A.createElement)(hj.div,ea)):(0,A.createElement)(hj.div,ea)))}),hL={top:"bottom",right:"left",bottom:"top",left:"right"};function hZ(e){return void 0!==e}function hF(e){return null!==e}let hz=()=>({name:"anchorCssProperties",fn(e){let{rects:t,elements:n}=e,{width:r,height:i}=t.reference;return n.floating.style.setProperty("--radix-popper-anchor-width",`${r}px`),n.floating.style.setProperty("--radix-popper-anchor-height",`${i}px`),{}}}),hV=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=hI(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(r=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+d/2,g=(null!==(o=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==o?o:0)+f/2,y="",b="";return"bottom"===h?(y=c?m:`${v}px`,b=`${-f}px`):"top"===h?(y=c?m:`${v}px`,b=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,b=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,b=c?m:`${g}px`),{data:{x:y,y:b}}}});function hI(e){let[t,n="center"]=e.split("-");return[t,n]}let hB=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,A.useState)(null);return(0,A.createElement)(hC,{scope:t,anchor:r,onAnchorChange:i},n)},hH=(0,A.forwardRef)((e,t)=>{var n;let{container:r=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...i}=e;return r?tg.createPortal((0,A.createElement)(hj.div,(0,N.Z)({},i,{ref:t})),r):null}),hU="dismissableLayer.update",hW=(0,A.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hq=(0,A.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,A.useContext)(hW),[f,h]=(0,A.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,A.useState)({}),v=(0,D.e)(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),x=f?g.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,j=x>=b,k=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,lS.W)(e),r=(0,A.useRef)(!1),i=(0,A.useRef)(()=>{});return(0,A.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function o(){hK("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=o,t.addEventListener("click",i.current,{once:!0})):o()}r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));!j||n||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),E=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,lS.W)(e),r=(0,A.useRef)(!1);return(0,A.useEffect)(()=>{let e=e=>{e.target&&!r.current&&hK("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));n||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==u||u())},p);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,lS.W)(e);(0,A.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{let t=x===d.layers.size-1;t&&(null==o||o(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,A.useEffect)(()=>{if(f)return i&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(r=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),h$(),()=>{i&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=r)}},[f,p,i,d]),(0,A.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),h$())},[f,d]),(0,A.useEffect)(()=>{let e=()=>m({});return document.addEventListener(hU,e),()=>document.removeEventListener(hU,e)},[]),(0,A.createElement)(hj.div,(0,N.Z)({},c,{ref:v,style:{pointerEvents:w?j?"auto":"none":void 0,...e.style},onFocusCapture:(0,F.M)(e.onFocusCapture,E.onFocusCapture),onBlurCapture:(0,F.M)(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:(0,F.M)(e.onPointerDownCapture,k.onPointerDownCapture)}))});function h$(){let e=new CustomEvent(hU);document.dispatchEvent(e)}function hK(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&i.addEventListener(e,t,{once:!0}),r)?i&&(0,tg.flushSync)(()=>i.dispatchEvent(o)):i.dispatchEvent(o)}let hY="HoverCard",[hG,hX]=(0,R.b)(hY,[h_]),hQ=h_(),[hJ,h0]=hG(hY),h1=(0,A.forwardRef)((e,t)=>{let{__scopeHoverCard:n,...r}=e,i=h0("HoverCardTrigger",n),o=hQ(n);return(0,A.createElement)(hM,(0,N.Z)({asChild:!0},o),(0,A.createElement)(hj.a,(0,N.Z)({"data-state":i.open?"open":"closed"},r,{ref:t,onPointerEnter:(0,F.M)(e.onPointerEnter,h7(i.onOpen)),onPointerLeave:(0,F.M)(e.onPointerLeave,h7(i.onClose)),onFocus:(0,F.M)(e.onFocus,i.onOpen),onBlur:(0,F.M)(e.onBlur,i.onClose),onTouchStart:(0,F.M)(e.onTouchStart,e=>e.preventDefault())})))}),h2="HoverCardPortal",[h4,h3]=hG(h2,{forceMount:void 0}),h5="HoverCardContent",h6=(0,A.forwardRef)((e,t)=>{let n=h3(h5,e.__scopeHoverCard),{forceMount:r=n.forceMount,...i}=e,o=h0(h5,e.__scopeHoverCard);return(0,A.createElement)(B.z,{present:r||o.open},(0,A.createElement)(h8,(0,N.Z)({"data-state":o.open?"open":"closed"},i,{onPointerEnter:(0,F.M)(e.onPointerEnter,h7(o.onOpen)),onPointerLeave:(0,F.M)(e.onPointerLeave,h7(o.onClose)),ref:t})))}),h8=(0,A.forwardRef)((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,...l}=e,u=h0(h5,n),c=hQ(n),d=(0,A.useRef)(null),f=(0,D.e)(t,d),[h,p]=(0,A.useState)(!1);return(0,A.useEffect)(()=>{if(h){let e=document.body;return i=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=i,e.style.webkitUserSelect=i}}},[h]),(0,A.useEffect)(()=>{if(d.current){let e=()=>{p(!1),u.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;let t=(null===(e=document.getSelection())||void 0===e?void 0:e.toString())!=="";t&&(u.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!1}}},[u.isPointerDownOnContentRef,u.hasSelectionRef]),(0,A.useEffect)(()=>{if(d.current){let e=function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}(d.current);e.forEach(e=>e.setAttribute("tabindex","-1"))}}),(0,A.createElement)(hq,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:s,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:(0,F.M)(a,e=>{e.preventDefault()}),onDismiss:u.onDismiss},(0,A.createElement)(hD,(0,N.Z)({},c,l,{onPointerDown:(0,F.M)(l.onPointerDown,e=>{e.currentTarget.contains(e.target)&&p(!0),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!0}),ref:f,style:{...l.style,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)",userSelect:h?"text":void 0,WebkitUserSelect:h?"text":void 0}})))});function h7(e){return t=>"touch"===t.pointerType?void 0:e()}let h9=e=>{let{__scopeHoverCard:t,children:n,open:r,defaultOpen:i,onOpenChange:o,openDelay:a=700,closeDelay:s=300}=e,l=hQ(t),u=(0,A.useRef)(0),c=(0,A.useRef)(0),d=(0,A.useRef)(!1),f=(0,A.useRef)(!1),[h=!1,p]=(0,z.T)({prop:r,defaultProp:i,onChange:o}),m=(0,A.useCallback)(()=>{clearTimeout(c.current),u.current=window.setTimeout(()=>p(!0),a)},[a,p]),v=(0,A.useCallback)(()=>{clearTimeout(u.current),d.current||f.current||(c.current=window.setTimeout(()=>p(!1),s))},[s,p]),g=(0,A.useCallback)(()=>p(!1),[p]);return(0,A.useEffect)(()=>()=>{clearTimeout(u.current),clearTimeout(c.current)},[]),(0,A.createElement)(hJ,{scope:t,open:h,onOpenChange:p,onOpen:m,onClose:v,onDismiss:g,hasSelectionRef:d,isPointerDownOnContentRef:f},(0,A.createElement)(hB,l,n))},pe=e=>{let{__scopeHoverCard:t,forceMount:n,children:r,container:i}=e,o=h0(h2,t);return(0,A.createElement)(h4,{scope:t,forceMount:n},(0,A.createElement)(B.z,{present:n||o.open},(0,A.createElement)(hH,{asChild:!0,container:i},r)))},pt=(0,eC.j)(["relative","z-10","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),pn=(0,eC.cx)(no(),"max-w-sm","py-0.5","px-1"),pr={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},pi=A.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o}=e,{className:a,...s}=o||{},{open:l,onOpenChange:u}=lf({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,T.jsxs)(h9,{open:l,onOpenChange:u,...i,children:[n&&(0,T.jsx)(h1,{asChild:!0,children:n}),(0,T.jsx)(nz,{children:l?(0,T.jsx)(pe,{forceMount:!0,children:(0,T.jsx)(h6,{asChild:!0,forceMount:!0,ref:t,...s,children:(0,T.jsx)(ld.div,{variants:pr,initial:"init",animate:"show",exit:"exit",className:pt(),children:(0,T.jsx)("div",{className:(0,eC.cx)(pn,a),children:r})})})}):null})]})});function po(e,t=[]){let n=[],r=()=>{let t=n.map(e=>(0,A.createContext)(e));return function(n){let r=(null==n?void 0:n[e])||t;return(0,A.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=(0,A.createContext)(r),o=n.length;function a(t){let{scope:n,children:r,...a}=t,s=(null==n?void 0:n[e][o])||i,l=(0,A.useMemo)(()=>a,Object.values(a));return(0,A.createElement)(s.Provider,{value:l},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){let s=(null==a?void 0:a[e][o])||i,l=(0,A.useContext)(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e),o=i[`__scope${r}`];return{...t,...o}},{});return(0,A.useMemo)(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}function pa(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function ps(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function pl(...e){return(0,A.useCallback)(ps(...e),e)}let pu=(0,A.forwardRef)((e,t)=>{let{children:n,...r}=e,i=A.Children.toArray(n),o=i.find(pf);if(o){let e=o.props.children,n=i.map(t=>t!==o?t:A.Children.count(e)>1?A.Children.only(null):(0,A.isValidElement)(e)?e.props.children:null);return(0,A.createElement)(pc,(0,N.Z)({},r,{ref:t}),(0,A.isValidElement)(e)?(0,A.cloneElement)(e,void 0,n):null)}return(0,A.createElement)(pc,(0,N.Z)({},r,{ref:t}),n)});pu.displayName="Slot";let pc=(0,A.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,A.isValidElement)(n)?(0,A.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r],a=/^on[A-Z]/.test(r);a?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:t?ps(t,n.ref):n.ref}):A.Children.count(n)>1?A.Children.only(null):null});pc.displayName="SlotClone";let pd=({children:e})=>(0,A.createElement)(A.Fragment,null,e);function pf(e){return(0,A.isValidElement)(e)&&e.type===pd}let ph=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,A.forwardRef)((e,n)=>{let{asChild:r,...i}=e,o=r?pu:t;return(0,A.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,A.createElement)(o,(0,N.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function pp(e){let t=(0,A.useRef)(e);return(0,A.useEffect)(()=>{t.current=e}),(0,A.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}let pm=(null==globalThis?void 0:globalThis.document)?A.useLayoutEffect:()=>{},pv=e=>{let{present:t,children:n}=e,r=function(e){var t;let[n,r]=(0,A.useState)(),i=(0,A.useRef)({}),o=(0,A.useRef)(e),a=(0,A.useRef)("none"),s=e?"mounted":"unmounted",[l,u]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,A.useReducer)((e,n)=>{let r=t[e][n];return null!=r?r:e},s));return(0,A.useEffect)(()=>{let e=pg(i.current);a.current="mounted"===l?e:"none"},[l]),pm(()=>{let t=i.current,n=o.current,r=n!==e;if(r){let r=a.current,i=pg(t);e?u("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?u("UNMOUNT"):n&&r!==i?u("ANIMATION_OUT"):u("UNMOUNT"),o.current=e}},[e,u]),pm(()=>{if(n){let e=e=>{let t=pg(i.current),r=t.includes(e.animationName);e.target===n&&r&&(0,tg.flushSync)(()=>u("ANIMATION_END"))},t=e=>{e.target===n&&(a.current=pg(i.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}u("ANIMATION_END")},[n,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,A.useCallback)(e=>{e&&(i.current=getComputedStyle(e)),r(e)},[])}}(t),i="function"==typeof n?n({present:r.isPresent}):A.Children.only(n),o=pl(r.ref,i.ref),a="function"==typeof n;return a||r.isPresent?(0,A.cloneElement)(i,{ref:o}):null};function pg(e){return(null==e?void 0:e.animationName)||"none"}pv.displayName="Presence";let py=P["useId".toString()]||(()=>void 0),pb=0;function px(e){let t=e+"CollectionProvider",[n,r]=po(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=A.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(a,n),s=pl(t,i.collectionRef);return A.createElement(pu,{ref:s},r)}),l=e+"CollectionItemSlot",u="data-radix-collection-item",c=A.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=A.useRef(null),s=pl(t,a),c=o(l,n);return A.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),A.createElement(pu,{[u]:"",ref:s},r)});return[{Provider:e=>{let{scope:t,children:n}=e,r=A.useRef(null),o=A.useRef(new Map).current;return A.createElement(i,{scope:t,itemMap:o,collectionRef:r},n)},Slot:s,ItemSlot:c},function(t){let n=o(e+"CollectionConsumer",t),r=A.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()),i=r.sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return i},[n.collectionRef,n.itemMap]);return r},r]}let pw="dismissableLayer.update",pj=(0,A.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pk=(0,A.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,A.useContext)(pj),[f,h]=(0,A.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,A.useState)({}),v=pl(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),x=f?g.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,j=x>=b,k=function(e,t=null==globalThis?void 0:globalThis.document){let n=pp(e),r=(0,A.useRef)(!1),i=(0,A.useRef)(()=>{});return(0,A.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function o(){pS("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=o,t.addEventListener("click",i.current,{once:!0})):o()}r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));!j||n||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),E=function(e,t=null==globalThis?void 0:globalThis.document){let n=pp(e),r=(0,A.useRef)(!1);return(0,A.useEffect)(()=>{let e=e=>{e.target&&!r.current&&pS("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));n||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==u||u())},p);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=pp(e);(0,A.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{let t=x===d.layers.size-1;t&&(null==i||i(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,A.useEffect)(()=>{if(f)return r&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(o=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),pE(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=o)}},[f,p,r,d]),(0,A.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),pE())},[f,d]),(0,A.useEffect)(()=>{let e=()=>m({});return document.addEventListener(pw,e),()=>document.removeEventListener(pw,e)},[]),(0,A.createElement)(ph.div,(0,N.Z)({},c,{ref:v,style:{pointerEvents:w?j?"auto":"none":void 0,...e.style},onFocusCapture:pa(e.onFocusCapture,E.onFocusCapture),onBlurCapture:pa(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:pa(e.onPointerDownCapture,k.onPointerDownCapture)}))});function pE(){let e=new CustomEvent(pw);document.dispatchEvent(e)}function pS(e,t,n,{discrete:r}){var i,o;let a=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?(i=a,o=s,i&&(0,tg.flushSync)(()=>i.dispatchEvent(o))):a.dispatchEvent(s)}(e,t)=>(0,A.createElement)(ph.span,(0,N.Z)({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));let p_="NavigationMenu",[pC,pO,pM]=px(p_),[pT,pA,pP]=px(p_),[pN,pR]=po(p_,[pM,pP]),[pD,pL]=pN(p_),[pZ,pF]=pN(p_),[pz,pV]=pN("NavigationMenuItem"),pI=((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pL("NavigationMenuIndicator",n),o=pO(n),[a,s]=(0,A.useState)(null),[l,u]=(0,A.useState)(null),c="horizontal"===i.orientation,d=!!i.value;(0,A.useEffect)(()=>{var e;let t=o(),n=null===(e=t.find(e=>e.value===i.value))||void 0===e?void 0:e.ref.current;n&&s(n)},[o,i.value]);let f=()=>{a&&u({size:c?a.offsetWidth:a.offsetHeight,offset:c?a.offsetLeft:a.offsetTop})};return p$(a,f),p$(i.indicatorTrack,f),l?(0,A.createElement)(ph.div,(0,N.Z)({"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":i.orientation},r,{ref:t,style:{position:"absolute",...c?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}})):null},"NavigationMenuContent"),pB=((e,t)=>{let n=pL(pI,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:i}=n;return pm(()=>{r(e.value,{ref:t,...e})},[e,t,r]),pm(()=>()=>i(e.value),[e.value,i]),null},"navigationMenu.rootContentDismiss"),pH=(0,A.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,value:r,triggerRef:i,focusProxyRef:o,wasEscapeCloseRef:a,onRootContentClose:s,onContentFocusOutside:l,...u}=e,c=pL(pI,n),d=(0,A.useRef)(null),f=pl(d,t),h=function(e,t){return`${e}-trigger-${t}`}(c.baseId,r),p=function(e,t){return`${e}-content-${t}`}(c.baseId,r),m=pO(n),v=(0,A.useRef)(null),{onItemDismiss:g}=c;(0,A.useEffect)(()=>{let e=d.current;if(c.isRootMenu&&e){let t=()=>{var t;g(),s(),e.contains(document.activeElement)&&(null===(t=i.current)||void 0===t||t.focus())};return e.addEventListener(pB,t),()=>e.removeEventListener(pB,t)}},[c.isRootMenu,e.value,i,g,s]);let y=(0,A.useMemo)(()=>{let e=m(),t=e.map(e=>e.value);"rtl"===c.dir&&t.reverse();let n=t.indexOf(c.value),i=t.indexOf(c.previousValue),o=r===c.value,a=i===t.indexOf(r);if(!o&&!a)return v.current;let s=(()=>{if(n!==i){if(o&&-1!==i)return n>i?"from-end":"from-start";if(a&&-1!==n)return n>i?"to-start":"to-end"}return null})();return v.current=s,s},[c.previousValue,c.value,c.dir,m,r]);return(0,A.createElement)(pU,{asChild:!0},(0,A.createElement)(pk,(0,N.Z)({id:p,"aria-labelledby":h,"data-motion":y,"data-orientation":c.orientation},u,{ref:f,onDismiss:()=>{var e;let t=new Event(pB,{bubbles:!0,cancelable:!0});null===(e=d.current)||void 0===e||e.dispatchEvent(t)},onFocusOutside:pa(e.onFocusOutside,e=>{var t;l();let n=e.target;null!==(t=c.rootNavigationMenu)&&void 0!==t&&t.contains(n)&&e.preventDefault()}),onPointerDownOutside:pa(e.onPointerDownOutside,e=>{var t;let n=e.target,r=m().some(e=>{var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(n)}),i=c.isRootMenu&&(null===(t=c.viewport)||void 0===t?void 0:t.contains(n));(r||i||!c.isRootMenu)&&e.preventDefault()}),onKeyDown:pa(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey,n="Tab"===e.key&&!t;if(n){let t=function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}(e.currentTarget),n=document.activeElement,i=t.findIndex(e=>e===n),a=e.shiftKey,s=a?t.slice(0,i).reverse():t.slice(i+1,t.length);if(pq(s))e.preventDefault();else{var r;null===(r=o.current)||void 0===r||r.focus()}}}),onEscapeKeyDown:pa(e.onEscapeKeyDown,e=>{a.current=!0})})))}),pU=((e,t)=>{let{__scopeNavigationMenu:n,children:r,...i}=e,o=pL("NavigationMenuViewport",n),a=pl(t,o.onViewportChange),s=pF(pI,e.__scopeNavigationMenu),[l,u]=(0,A.useState)(null),[c,d]=(0,A.useState)(null),f=l?(null==l?void 0:l.width)+"px":void 0,h=l?(null==l?void 0:l.height)+"px":void 0,p=!!o.value,m=p?o.value:o.previousValue;return p$(c,()=>{c&&u({width:c.offsetWidth,height:c.offsetHeight})}),(0,A.createElement)(ph.div,(0,N.Z)({"data-state":function(e){return e?"open":"closed"}(p),"data-orientation":o.orientation},i,{ref:a,style:{pointerEvents:!p&&o.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":f,"--radix-navigation-menu-viewport-height":h,...i.style},onPointerEnter:pa(e.onPointerEnter,o.onContentEnter),onPointerLeave:pa(e.onPointerLeave,function(e){return t=>"mouse"===t.pointerType?e(t):void 0}(o.onContentLeave))}),Array.from(s.items).map(([e,{ref:t,forceMount:n,...r}])=>{let i=m===e;return(0,A.createElement)(pv,{key:e,present:n||i},(0,A.createElement)(pH,(0,N.Z)({},r,{ref:ps(t,e=>{i&&e&&d(e)})})))}))},(0,A.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pL("FocusGroup",n);return(0,A.createElement)(pT.Provider,{scope:n},(0,A.createElement)(pT.Slot,{scope:n},(0,A.createElement)(ph.div,(0,N.Z)({dir:i.dir},r,{ref:t}))))})),pW=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"];(e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pA(n),o=pL("FocusGroupItem",n);return(0,A.createElement)(pT.ItemSlot,{scope:n},(0,A.createElement)(ph.button,(0,N.Z)({},r,{ref:t,onKeyDown:pa(e.onKeyDown,e=>{let t=["Home","End",...pW].includes(e.key);if(t){let t=i().map(e=>e.ref.current),n="rtl"===o.dir?"ArrowRight":"ArrowLeft";if([n,"ArrowUp","End"].includes(e.key)&&t.reverse(),pW.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>pq(t)),e.preventDefault()}})})))};function pq(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function p$(e,t){let n=pp(t);pm(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var pK=n(38617);let pY=A.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,T.jsx)(fa,{...r,ref:t,className:(0,eC.cx)("select-none flex items-center rounded cursor-pointer","focus:ring ring-blue-500 dark:ring-blue-200","text-gray-700 dark:text-graydark-700","data-[state=checked]:text-gray-1100 data-[state=checked]:dark:text-white",n)})});function pG(e){let{className:t,tooltipClassName:n,tabIndex:r}=e,{theme:i,setTheme:o}=(0,pK.F)();return(0,T.jsxs)(fo,{value:i,tabIndex:r,className:(0,eC.cx)("flex gap-4",t),onValueChange:e=>o(e),children:[(0,T.jsx)(pY,{value:"system",children:(0,T.jsx)(lp,{className:n,sideOffset:16,content:"System",children:(0,T.jsx)(lg.$Iz,{})})}),(0,T.jsx)(pY,{value:"light",children:(0,T.jsx)(lp,{className:n,sideOffset:16,content:"Light",children:(0,T.jsx)(lg.JaG,{})})}),(0,T.jsx)(pY,{value:"dark",children:(0,T.jsx)(lp,{className:n,sideOffset:16,content:"Dark",children:(0,T.jsx)(lg.osk,{})})})]})}var pX=n(74424);let{useDropzone:pQ}=pX;function pJ(e){let{title:t,children:n,rootClassName:r,className:i,message:o,showBorderInactive:a,...s}=e,{getRootProps:l,getInputProps:u,isDragActive:c}=pQ(s);return(0,T.jsxs)("div",{...l(),className:(0,eC.cx)("outline-none",r),children:[(0,T.jsxs)("div",{className:(0,eC.cx)(c?"z-20":"","absolute","top-0","left-0","w-full","h-full","pointer-events-none","rounded","p-4","flex justify-center items-center text-center","border-2 border-dashed",a?["border-green-600 dark:border-green-500","hover:border-green-700 hover:dark:border-green-500"]:"border-transparent",c?["border-green-500 dark:border-green-600 bg-green-100/20 dark:bg-green-100/20","hover:border-green-500 hover:dark:border-green-600 hover:bg-green-100/20 hover:dark:bg-green-100/20"]:"",i),children:[(0,T.jsx)("input",{...u()}),o&&(0,T.jsx)(ni,{size:"14",children:t||"Drop your files here or click to to open the file picker."})]}),n]})}var p0=n(14582),p1=n(63739),p2=n(13980),p4=n.n(p2),p3=n(72779),p5=n.n(p3),p6=n(47440),p8=n(59309),p7=n(19067),p9=n(71220),me=n(28142);function mt(e){return"bandwidth"in e?e.bandwidth():0}var mn=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function mr(){return(mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mn),g=null!=m?m:(0,p9.Z)(r,void 0===f?10:f),y=(null!=p?p:0)+mt(r)/2,b=g.map(function(e,t){var n,o=(null!=(n=(0,me.Z)(r(e)))?n:0)+y;return{index:t,from:new p7.Z({x:0,y:o}),to:new p7.Z({x:i,y:o})}});return A.createElement(p8.Z,{className:p5()("visx-rows",c),top:void 0===t?0:t,left:void 0===n?0:n},d?d({lines:b}):b.map(function(e){var t=e.from,n=e.to,r=e.index;return A.createElement(p6.default,mr({key:"row-line-"+r,from:t,to:n,stroke:a,strokeWidth:l,strokeDasharray:u,style:h},v))}))}mi.propTypes={tickValues:p4().array,width:p4().number.isRequired};var mo=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function ma(){return(ma=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mo),g=null!=p?p:(0,p9.Z)(r,void 0===d?10:d),y=(null!=h?h:0)+mt(r)/2,b=g.map(function(e,t){var n,o=(null!=(n=(0,me.Z)(r(e)))?n:0)+y;return{index:t,from:new p7.Z({x:o,y:0}),to:new p7.Z({x:o,y:i})}});return A.createElement(p8.Z,{className:p5()("visx-columns",c),top:void 0===t?0:t,left:void 0===n?0:n},m?m({lines:b}):b.map(function(e){var t=e.from,n=e.to,r=e.index;return A.createElement(p6.default,ma({key:"column-line-"+r,from:t,to:n,stroke:a,strokeWidth:l,strokeDasharray:u,style:f},v))}))}ms.propTypes={tickValues:p4().array,height:p4().number.isRequired};var ml=n(64183),mu=n(8597);function mc(e){var t=e.id,n=e.width,r=e.height,i=e.children;return A.createElement("defs",null,A.createElement("pattern",{id:t,width:n,height:r,patternUnits:"userSpaceOnUse"},i))}mc.propTypes={id:p4().string.isRequired,width:p4().number.isRequired,height:p4().number.isRequired,children:p4().node.isRequired};var md={horizontal:"horizontal",vertical:"vertical",diagonal:"diagonal",diagonalRightToLeft:"diagonalRightToLeft"};function mf(e){var t=e.id,n=e.width,r=e.height,i=e.stroke,o=e.strokeWidth,a=e.strokeDasharray,s=e.strokeLinecap,l=void 0===s?"square":s,u=e.shapeRendering,c=void 0===u?"auto":u,d=e.orientation,f=void 0===d?["vertical"]:d,h=e.background,p=e.className,m=Array.isArray(f)?f:[f];return A.createElement(mc,{id:t,width:n,height:r},!!h&&A.createElement("rect",{className:p5()("visx-pattern-line-background"),width:n,height:r,fill:h}),m.map(function(e,n){return A.createElement("path",{key:"visx-"+t+"-line-"+e+"-"+n,className:p5()("visx-pattern-line",p),d:function(e){var t=e.height;switch(e.orientation){case md.horizontal:return"M 0,"+t/2+" l "+t+",0";case md.diagonal:return"M 0,"+t+" l "+t+","+-t+" M "+-t/4+","+t/4+" l "+t/2+","+-t/2+"\n M "+3/4*t+","+5/4*t+" l "+t/2+","+-t/2;case md.diagonalRightToLeft:return"M 0,0 l "+t+","+t+"\n M "+-t/4+","+3/4*t+" l "+t/2+","+t/2+"\n M "+3/4*t+","+-t/4+" l "+t/2+","+t/2;case md.vertical:default:return"M "+t/2+", 0 l 0, "+t}}({orientation:e,height:r}),stroke:i,strokeWidth:o,strokeDasharray:a,strokeLinecap:l,shapeRendering:c})}))}mf.propTypes={id:p4().string.isRequired,width:p4().number.isRequired,height:p4().number.isRequired,className:p4().string,background:p4().string,stroke:p4().string,strokeWidth:p4().oneOfType([p4().number,p4().string]),strokeDasharray:p4().oneOfType([p4().string,p4().number]),strokeLinecap:p4().oneOf(["square","butt","round","inherit"]),shapeRendering:p4().oneOfType([p4().string,p4().number]),orientation:p4().array};var mh=["tooltipOpen"];function mp(){return(mp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mm);return A.createElement("div",mv({ref:t,className:p5()("visx-tooltip",n),style:mv({top:null==r||null==l?r:r+l,left:null==i||null==a?i:i+a},m&&{position:"absolute"},!h&&c)},v),d)});function mb(){return(mb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mE),g=!1,y=!1;if(u&&l){var b=void 0===r?0:r,x=void 0===f?0:f;if(l.width){var w=b+o+u.width-l.width,j=u.width-b-o;g=w>0&&w>j}else{var k=b+o+u.width-window.innerWidth,E=u.width-b-o;g=k>0&&k>E}if(l.height){var S=x+s+u.height-l.height,_=u.height-x-s;y=S>0&&S>_}else y=x+s+u.height>window.innerHeight;b=g?b-u.width-o:b+o,x=y?x-u.height-s:x+s,t="translate("+(b=Math.round(b))+"px, "+(x=Math.round(x))+"px)"}return A.createElement(my,mS({ref:m,style:mS({left:0,top:0,transform:t},!p&&d)},v),A.createElement(mk,{value:{isFlippedVertically:!y,isFlippedHorizontally:!g}},n))}m_.propTypes={nodeRef:p4().oneOfType([p4().string,p4().func,p4().object])};var mC=((c=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={rect:void 0,parentRect:void 0},n.nodeRef=A.createRef(),n.getRects=n.getRects.bind(function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,mx(t,e);var n=t.prototype;return n.componentDidMount=function(){var e,t=this;this.node=null!=(e=this.nodeRef)&&e.current?this.nodeRef.current:tg.findDOMNode(this),this.setState(function(){return t.getRects()})},n.getRects=function(){if(!this.node)return this.state;var e=this.node,t=e.parentNode;return{rect:e.getBoundingClientRect?e.getBoundingClientRect():mw,parentRect:null!=t&&t.getBoundingClientRect?t.getBoundingClientRect():mw}},n.render=function(){return A.createElement(m_,mb({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},t}(A.PureComponent)).displayName="withBoundingRects("+(m_.displayName||"")+")",c),mO=n(99985);function mM(e,t){if("invert"in e&&void 0!==e.invert)return e.invert(t).valueOf();var n=e.range(),r=n[0],i=n[1],o=0,a=("step"in e&&void 0!==e.step?e.step():1)*(i-r)/Math.abs(i-r);if(a>0)for(;t>r+a*(o+1);)o+=1;else for(;t0?Math.min(e.dx,t.bounds.x1-a):Math.max(e.dx,t.bounds.x0-r),u=e.dy>0?Math.min(e.dy,t.bounds.y1-s):Math.max(e.dy,t.bounds.y0-i);return mF({},t,{isBrushing:!0,extent:mF({},t.extent,{x0:r+l,x1:a+l,y0:i+u,y1:s+u})})})},t.selectionDragEnd=function(){var e=t.props,n=e.updateBrush,r=e.onBrushEnd,i=e.onMoveSelectionChange;e.isControlled||n(function(e){var t=mF({},e,{isBrushing:!1,start:mF({},e.start,{x:Math.min(e.extent.x0,e.extent.x1),y:Math.min(e.extent.y0,e.extent.y1)}),end:mF({},e.end,{x:Math.max(e.extent.x0,e.extent.x1),y:Math.max(e.extent.y0,e.extent.y1)})});return r&&r(t),t}),i&&i()},t}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,mz(t,e),t.prototype.render=function(){var e=this.props,t=e.width,n=e.height,r=e.stageWidth,i=e.stageHeight,o=e.brush,a=e.disableDraggingSelection,s=e.onMouseLeave,l=e.onMouseMove,u=e.onMouseUp,c=e.onClick,d=e.selectedBoxStyle,f=e.isControlled,h=e.isDragInProgress;return A.createElement(mO.Z,{width:t,height:n,resetOnStart:!0,onDragStart:this.selectionDragStart,onDragMove:this.selectionDragMove,onDragEnd:this.selectionDragEnd,isDragging:f?h:void 0},function(e){var h=e.isDragging,p=e.dragStart,m=e.dragEnd,v=e.dragMove;return A.createElement("g",null,h&&A.createElement("rect",{width:r,height:i,fill:"transparent",onPointerUp:f?void 0:m,onPointerMove:v,onPointerLeave:f?void 0:m,style:mV}),A.createElement("rect",mF({x:Math.min(o.extent.x0,o.extent.x1),y:Math.min(o.extent.y0,o.extent.y1),width:t,height:n,className:"visx-brush-selection",onPointerDown:a?void 0:p,onPointerLeave:function(e){s&&s(e)},onPointerMove:function(e){v(e),l&&l(e)},onPointerUp:function(e){f||m(e),u&&u(e)},onClick:function(e){c&&c(e)},style:{pointerEvents:o.isBrushing||o.activeHandle?"none":"all",cursor:a?void 0:"move"}},d)))})},t}(A.Component);function mB(){return(mB=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Math.min(l,e.bounds.x1-o):Math.max(l,e.bounds.x0-n),c=u>0?Math.min(u,e.bounds.y1-a):Math.max(u,e.bounds.y0-r);return mB({},e,{isBrushing:!0,extent:mB({},e.extent,{x0:n+s,y0:r+c,x1:o+s,y1:a+c})})}),"select"===i&&n.updateBrush(function(e){var t=e.start,r=t.x,i=t.y,o={x:Math.min(Math.max(r+l,e.bounds.x0),e.bounds.x1),y:Math.min(Math.max(i+u,e.bounds.y0),e.bounds.y1)},a=n.getExtent(s,o);return mB({},e,{end:o,extent:a})})}},n.getExtent=function(e,t){var r=n.props,i=r.brushDirection,o=r.width,a=r.height;return{x0:"vertical"===i?0:Math.min(e.x||0,t.x||0),x1:"vertical"===i?o:Math.max(e.x||0,t.x||0),y0:"horizontal"===i?0:Math.min(e.y||0,t.y||0),y1:"horizontal"===i?a:Math.max(e.y||0,t.y||0)}},n.handleDragStart=function(e){var t=n.props,r=t.onBrushStart,i=t.left,o=t.top,a=t.inheritedMargin,s=t.useWindowMoveEvents,l=null!=a&&a.left?a.left:0,u=null!=a&&a.top?a.top:0,c={x:(e.x||0)+e.dx-i-l,y:(e.y||0)+e.dy-o-u},d=mB({},c);r&&r(c),n.updateBrush(function(t){return mB({},t,{start:c,end:d,extent:{x0:-1,x1:-1,y0:-1,y1:-1},isBrushing:!0,brushingType:"select",brushPageOffset:s?mA(e.event):void 0})})},n.handleBrushStart=function(e){var t=n.props,r=t.onBrushStart,i=t.left,o=t.top,a=t.inheritedMargin;if(r){var s=null!=a&&a.left?a.left:0,l=null!=a&&a.top?a.top:0;r({x:(e.x||0)+e.dx-i-s,y:(e.y||0)+e.dy-o-l})}},n.handleDragMove=function(e){var t=n.props,r=t.left,i=t.top,o=t.inheritedMargin,a=t.useWindowMoveEvents;if(e.isDragging&&!a){var s=(null==o?void 0:o.left)||0,l=(null==o?void 0:o.top)||0,u={x:(e.x||0)+e.dx-r-s,y:(e.y||0)+e.dy-i-l};n.updateBrush(function(e){var t=e.start,r=n.getExtent(t,u);return mB({},e,{end:u,extent:r})})}},n.handleDragEnd=function(){var e=n.props,t=e.onBrushEnd,r=e.resetOnEnd;e.useWindowMoveEvents||n.updateBrush(function(e){var i=e.extent,o=mB({},e,{start:{x:i.x0,y:i.y0},end:{x:i.x1,y:i.y1},isBrushing:!1,brushingType:void 0,activeHandle:null});return t&&t(o),r&&n.reset(),o})},n.getBrushWidth=function(){var e=n.state.extent,t=e.x0,r=e.x1;return Math.max(Math.max(t,r)-Math.min(t,r),0)},n.getBrushHeight=function(){var e=n.state.extent,t=e.y1,r=e.y0;return Math.max(Math.max(r,t)-Math.min(r,t),0)},n.handles=function(){var e=n.props.handleSize,t=n.state.extent,r=t.x0,i=t.x1,o=t.y0,a=t.y1,s=e/2,l=n.getBrushWidth(),u=n.getBrushHeight();return{top:{x:r-s,y:o-s,height:e,width:l+e},bottom:{x:r-s,y:a-s,height:e,width:l+e},right:{x:i-s,y:o-s,height:u+e,width:e},left:{x:r-s,y:o-s,height:u+e,width:e}}},n.corners=function(){var e=n.props.handleSize,t=n.state.extent,r=t.x0,i=t.x1,o=t.y0,a=t.y1,s=e/2;return{topLeft:{x:Math.min(r,i)-s,y:Math.min(o,a)-s,width:e,height:e},topRight:{x:Math.max(r,i)-s,y:Math.min(o,a)-s,width:e,height:e},bottomLeft:{x:Math.min(r,i)-s,y:Math.max(o,a)-s,width:e,height:e},bottomRight:{x:Math.max(r,i)-s,y:Math.max(o,a)-s,width:e,height:e}}},n.updateBrush=function(e){var t=n.props.onChange;n.setState(e,function(){t&&t(n.state)})},n.reset=function(){var e=n.props,t=e.width,r=e.height;n.updateBrush(function(){return{start:{x:0,y:0},end:{x:0,y:0},extent:{x0:-1,x1:-1,y0:-1,y1:-1},bounds:{x0:0,x1:t,y0:0,y1:r},isBrushing:!1,brushPageOffset:void 0,activeHandle:null,brushingType:void 0}})},n.handleBrushingTypeChange=function(e,t){n.updateBrush(function(n){var r=mB({},n,{brushingType:e,isBrushing:void 0!==e});return(t||void 0===e)&&(r.brushPageOffset=t),r})};var n,r=t.initialBrushPosition,i=r?n.getExtent(r.start,r.end):{x0:-1,x1:-1,y0:-1,y1:-1};return n.state={start:{x:Math.max(0,i.x0),y:Math.max(0,i.y0)},end:{x:Math.max(0,i.x1),y:Math.max(0,i.y1)},extent:i,bounds:{x0:0,x1:n.props.width,y0:0,y1:n.props.height},isBrushing:!1,brushingType:void 0,activeHandle:null},n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,mH(t,e);var n=t.prototype;return n.componentDidUpdate=function(e){var t=this;(this.props.width!==e.width||this.props.height!==e.height)&&this.setState(function(n){var r=n.start,i=n.end,o=n.extent;if(!(-1===o.x0&&-1===o.x1&&-1===o.y0&&-1===o.y1)){var a=t.props.width/e.width,s=t.props.height/e.height;r={x:a*o.x0,y:s*o.y0},i={x:a*o.x1,y:s*o.y1},o=t.getExtent(r,i)}return{start:r,end:i,extent:o,bounds:{x0:0,x1:t.props.width,y0:0,y1:t.props.height}}})},n.componentDidMount=function(){this.props.useWindowMoveEvents&&(window.addEventListener("mouseup",this.handleWindowPointerUp),window.addEventListener("mousemove",this.handleWindowPointerMove))},n.componentWillUnmount=function(){this.props.useWindowMoveEvents&&(window.removeEventListener("mouseup",this.handleWindowPointerUp),window.removeEventListener("mousemove",this.handleWindowPointerMove))},n.render=function(){var e=this,t=this.state,n=t.start,r=t.end,i=this.props,o=i.top,a=i.left,s=i.width,l=i.height,u=i.onMouseLeave,c=i.onMouseUp,d=i.onMouseMove,f=i.onBrushEnd,h=i.onClick,p=i.resizeTriggerAreas,m=i.selectedBoxStyle,v=i.disableDraggingSelection,g=i.clickSensitivity,y=i.useWindowMoveEvents,b=i.renderBrushHandle,x=this.state.brushingType,w=this.handles(),j=this.corners(),k=this.getBrushWidth(),E=this.getBrushHeight(),S=new Set(p);return A.createElement(p8.Z,{className:"visx-brush",top:o,left:a},A.createElement(mO.Z,{width:s,height:l,resetOnStart:!0,onDragStart:this.handleDragStart,onDragMove:this.handleDragMove,onDragEnd:this.handleDragEnd,isDragging:y?"select"===x:void 0},function(t){var n=t.dragStart,r=t.isDragging,i=t.dragMove,o=t.dragEnd;return A.createElement(p0.Z,{className:"visx-brush-overlay",fill:"transparent",x:0,y:0,width:s,height:l,onDoubleClick:function(){return e.reset()},onClick:function(t){var n=e.mouseUpTime-e.mouseDownTime;h&&n=0||(i[n]=e[n]);return i}(e,mG),g=o,y=s,b=a,x=l;return void 0!==m&&!m||g||y||b||x||(g="0",y="0",b="0",x="1"),A.createElement("defs",null,A.createElement("linearGradient",mX({id:n,x1:g,y1:b,x2:y,y2:x,gradientTransform:h?"rotate("+h+")":p},v),!!t&&t,!t&&A.createElement("stop",{offset:void 0===u?"0%":u,stopColor:r,stopOpacity:void 0===c?1:c}),!t&&A.createElement("stop",{offset:void 0===d?"100%":d,stopColor:i,stopOpacity:void 0===f?1:f})))}mQ.propTypes={id:p4().string.isRequired,from:p4().string,to:p4().string,x1:p4().oneOfType([p4().string,p4().number]),x2:p4().oneOfType([p4().string,p4().number]),y1:p4().oneOfType([p4().string,p4().number]),y2:p4().oneOfType([p4().string,p4().number]),fromOffset:p4().oneOfType([p4().string,p4().number]),fromOpacity:p4().oneOfType([p4().string,p4().number]),toOffset:p4().oneOfType([p4().string,p4().number]),toOpacity:p4().oneOfType([p4().string,p4().number]),rotate:p4().oneOfType([p4().string,p4().number]),transform:p4().string,children:p4().node,vertical:p4().bool};var mJ=n(78307),m0=n(74747);function m1(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}var m2=n(88744),m4=n(55746),m3=n(45742),m5=n(27266),m6=["id","markerWidth","markerHeight","markerUnits","children"];function m8(){return(m8=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,m6);return A.createElement("defs",null,A.createElement("marker",m8({id:t,markerWidth:void 0===n?3:n,markerHeight:void 0===r?3:r,markerUnits:void 0===i?"userSpaceOnUse":i},a),o))}m7.propTypes={id:p4().string.isRequired,size:p4().number,markerWidth:p4().oneOfType([p4().string,p4().number]),markerHeight:p4().oneOfType([p4().string,p4().number]),markerUnits:p4().string,refX:p4().oneOfType([p4().string,p4().number]),refY:p4().oneOfType([p4().string,p4().number]),strokeWidth:p4().number,children:p4().node.isRequired};var m9=["id","size","strokeWidth"];function ve(){return(ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,m9),s=2*r+o,l=s/2;return A.createElement(m7,ve({id:t,markerWidth:s,markerHeight:s,refX:0,refY:l,orient:"auto-start-reverse",markerUnits:"strokeWidth",strokeWidth:o},a),A.createElement("circle",{r:r,cx:l,cy:l}))}var vn=n(64170),vr={top:"top",left:"left",bottom:"bottom"};function vi(){return(vi=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vf),k=null!=g?g:"tickFormat"in v?v.tickFormat():vu.Z,E=h===vr.left,S=h===vr.top,_=S||h===vr.bottom,C=function(e,t){if(void 0===t&&(t="center"),"start"!==t&&"bandwidth"in e){var n=e.bandwidth();return"center"===t&&(n/=2),e.round()&&(n=Math.round(n)),function(t){var r=e(t);return"number"==typeof r?r+n:r}}return e}(v),O=E||S?-1:1,M=v.range(),T=(void 0===(t=m)&&(t=0),"number"==typeof t?{start:t,end:t}:vd({start:0,end:0},t)),P=vc({x:Number(M[0])+.5-T.start,y:0},_),N=vc({x:Number(M[M.length-1])+.5+T.end,y:0},_),R=(null!=x?x:(0,p9.Z)(v,d)).filter(function(e){return!l||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),D=R.map(function(e){var t=e.value,n=e.index,r=(0,me.Z)(C(t));return{value:t,index:n,from:vc({x:r,y:0},_),to:vc({x:r,y:b*O},_),formattedValue:k(t,n,R)}});return A.createElement(p8.Z,{className:p5()("visx-axis",i),top:void 0===w?0:w,left:void 0===u?0:u},r(vh({},j,{axisFromPoint:P,axisToPoint:N,hideAxisLine:void 0!==o&&o,hideTicks:void 0!==a&&a,hideZero:l,horizontal:_,numTicks:d,orientation:h,rangePadding:m,scale:v,tickFormat:k,tickLength:b,tickPosition:C,tickSign:O,ticks:D})))}var vm=["axisClassName","labelOffset","tickLabelProps","tickLength"];function vv(){return(vv=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vm);return A.createElement(vp,vv({axisClassName:p5()("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:vr.bottom,tickLabelProps:void 0===r?vg:r,tickLength:void 0===i?8:i},o))}var vb=["axisClassName","labelOffset","tickLabelProps","tickLength"];function vx(){return(vx=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vb);return A.createElement(vp,vx({axisClassName:p5()("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:vr.left,tickLabelProps:void 0===r?vw:r,tickLength:void 0===i?8:i},o))}let vk=e=>new Date((null==e?void 0:e.timestamp)||0),vE=e=>(null==e?void 0:e.value)||0,vS="var(--colors-hiContrast)",v_={textAnchor:"middle",fontFamily:"var(--fonts-sans)",fontSize:10,fill:vS},vC={dx:"-0.25em",dy:"0.25em",fontFamily:"var(--fonts-sans)",fontSize:10,textAnchor:"end",fill:vS};function vO(e){let{data:t,gradientColor:n,width:r,yMax:i,margin:o,xScale:a,yScale:s,hideBottomAxis:l=!1,hideLeftAxis:u=!1,top:c,left:d,curve:f="step",children:h}=e;return r<10?null:(0,T.jsxs)(p8.Z,{left:d||o.left,top:c||o.top,children:[(0,T.jsx)(vt,{id:"marker-circle",fill:"var(--colors-accent11)",size:1.5,refX:1.5}),(0,T.jsx)(mQ,{id:"gradient",from:n,fromOpacity:1,to:n,toOpacity:.2}),(0,T.jsx)(m4.Z,{data:t,x:e=>a(vk(e))||0,y:e=>s(vE(e))||0,yScale:s,strokeWidth:1,stroke:"url(#gradient)",fill:"url(#gradient)",markerMid:"url(#marker-circle)",curve:"step"===f?m3.ZP:m5.Z}),!l&&(0,T.jsx)(vy,{top:i,scale:a,numTicks:r>520?10:5,stroke:vS,tickStroke:vS,tickLabelProps:()=>v_}),!u&&(0,T.jsx)(vj,{scale:s,numTicks:5,stroke:vS,tickStroke:vS,tickLabelProps:()=>vC}),h]})}var vM=n(6692);let{inherit:vT,current:vA,transparent:vP,black:vN,white:vR,slate:vD,zinc:vL,neutral:vZ,stone:vF,red:vz,orange:vV,amber:vI,yellow:vB,lime:vH,green:vU,emerald:vW,teal:vq,cyan:v$,sky:vK,blue:vY,indigo:vG,violet:vX,purple:vQ,fuchsia:vJ,pink:v0,rose:v1}=vM,v2={inherit:vT,current:vA,transparent:vP,black:vN,white:vR,slate:vD,zinc:vL,neutral:vZ,stone:vF,red:vz,orange:vV,amber:vI,yellow:vB,lime:vH,green:vU,emerald:vW,teal:vq,cyan:v$,sky:vK,blue:vY,indigo:vG,violet:vX,purple:vQ,fuchsia:vJ,pink:v0,rose:v1,mask:"rgba(30, 169, 76, .3)",accent:{50:"#F6FFF9",100:"#E9FBEF",200:"#D5F2DE",300:"#C9EED4",400:"#BBE8C9",500:"#9BDAAE",600:"#71C48A",700:"#3EAA5F",800:"#05872D",900:"#056B24",1e3:"#04511B",1100:"#011F0A"},accentdark:{50:"#05150A",100:"#051C0C",200:"#062811",300:"#073515",400:"#064018",500:"#075820",600:"#056824",700:"#077A2A",800:"#05872D",900:"#069F35",1e3:"#2FA052",1100:"#D9F4E1"},gray:{50:"hsl(206, 30.0%, 98.8%)",100:"hsl(210, 16.7%, 97.6%)",200:"hsl(209, 13.3%, 95.3%)",300:"hsl(209, 12.2%, 93.2%)",400:"hsl(208, 11.7%, 91.1%)",500:"hsl(208, 11.3%, 88.9%)",600:"hsl(207, 11.1%, 85.9%)",700:"hsl(205, 10.7%, 78.0%)",800:"hsl(206, 6.0%, 56.1%)",900:"hsl(206, 5.8%, 52.3%)",1e3:"hsl(206, 6.0%, 43.5%)",1100:"hsl(206, 24.0%, 9.0%)"},graydark:{50:"hsl(200, 7.0%, 8.8%)",100:"hsl(195, 7.1%, 11.0%)",200:"hsl(197, 6.8%, 13.6%)",300:"hsl(198, 6.6%, 15.8%)",400:"hsl(199, 6.4%, 17.9%)",500:"hsl(201, 6.2%, 20.5%)",600:"hsl(203, 6.0%, 24.3%)",700:"hsl(207, 5.6%, 31.6%)",800:"hsl(206, 6.0%, 43.9%)",900:"hsl(206, 5.2%, 49.5%)",1e3:"hsl(206, 6.0%, 63.0%)",1100:"hsl(210, 6.0%, 93.0%)"}};var v4=n(25205);let v3={top:10,bottom:15,left:10,right:10},v5="brush_pattern",v6="brush_gradient",v8=(0,m2.Z)(e=>e(),15),v7=(0,mJ.Z)(e=>new Date((null==e?void 0:e.timestamp)||0)).left;void 0===d&&(d={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===f&&(f=function(e,t){return A.createElement("div",t,e)});var v9=n(54073),ge=n.n(v9),gt=n(44711),gn=["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall"];function gr(){return(gr=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,gn),d=(0,A.useRef)(null),f=(0,A.useRef)(0),h=(0,A.useState)({width:0,height:0,top:0,left:0}),p=h[0],m=h[1],v=(0,A.useMemo)(function(){var e=Array.isArray(a)?a:[a];return ge()(function(t){m(function(n){return Object.keys(n).filter(function(e){return n[e]!==t[e]}).every(function(t){return e.includes(t)})?n:t})},i,{leading:u})},[i,u,a]);return(0,A.useEffect)(function(){var e=new gt.ResizeObserver(function(e){void 0===e&&(e=[]),e.forEach(function(e){var t=e.contentRect,n=t.left,r=t.top,i=t.width,o=t.height;f.current=window.requestAnimationFrame(function(){v({width:i,height:o,top:r,left:n})})})});return d.current&&e.observe(d.current),function(){window.cancelAnimationFrame(f.current),e.disconnect(),null!=v&&v.cancel&&v.cancel()}},[v]),A.createElement("div",gr({style:void 0===s?{width:"100%",height:"100%"}:s,ref:d,className:t},c),n(gr({},p,{ref:d.current,resize:v})))}go.propTypes={className:p4().string,debounceTime:p4().number,enableDebounceLeadingCall:p4().bool,ignoreDimensions:p4().oneOfType([p4().any,p4().arrayOf(p4().any)]),children:p4().func.isRequired};var ga=n(52058);function gs(e){let{id:t,width:n,height:r,accessors:i,animationTrajectory:o,curve:a,data:s,config:l,scales:u,enabledGraph:c,enabledTip:d,isStack:f,todayOffset:h,numTicks:p,renderAreaSeries:m,renderAreaStack:v,renderBarGroup:g,renderBarStack:y,enableTooltipGlyph:b,renderTooltipGlyph:x,renderLineSeries:w,sharedTooltip:j,showHorizontalCrosshair:k,showTooltip:E,showVerticalCrosshair:S,snapTooltipToDatum:_,stackOffset:C,margin:O,theme:M,xAxisOrientation:P,yAxisOrientation:N,AreaSeries:R,AreaStack:D,Axis:L,BarGroup:Z,BarSeries:F,BarStack:z,Grid:V,LineSeries:I,Tooltip:B,XYChart:H}=e;return(0,T.jsxs)(H,{theme:M.xyChartTheme,xScale:u.x,yScale:u.y,height:Math.min(400,r),margin:O,captureEvents:!0,children:[(0,T.jsx)("g",{children:(0,T.jsx)("rect",{className:"fill-gray-600 dark:fill-graydark-600 h-full w-px y-0",style:{left:"".concat(100*h,"%")}})},"today-line-".concat(n,"-").concat(r)),(0,T.jsx)(mQ,{id:"gradient-default",from:"gray",fromOpacity:1,to:"gray",toOpacity:.4}),Object.entries(l.data).map(e=>{let[n,r]=e,i=r.color;return(0,T.jsxs)(A.Fragment,{children:[(0,T.jsx)(mf,{id:"pattern-".concat(gl(t,n)),height:6,width:6,stroke:i,strokeWidth:.5,orientation:["diagonal"]}),(0,T.jsx)(mQ,{id:"gradient-".concat(gl(t,n)),from:i,fromOpacity:1,to:i,toOpacity:f?.4:1})]},n)}),(0,T.jsx)(V,{rows:!1,columns:!0,strokeDasharray:"1,3",animationTrajectory:o,numTicks:p},"grid-".concat(o)),y&&(0,T.jsx)(z,{offset:l.stackOffset,children:c.map(e=>(0,T.jsx)(F,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>gu(t,e,l)},e))}),g&&(0,T.jsx)(Z,{children:c.map(e=>(0,T.jsx)(F,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>gu(t,e,l)},e))}),m&&(0,T.jsx)(T.Fragment,{children:c.map(e=>(0,T.jsx)(R,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:gu(t,e,l),fill:gu(t,e,l),curve:a},e))}),v&&(0,T.jsx)(D,{curve:a,offset:l.stackOffset,renderLine:"wiggle"!==C,children:c.map(e=>(0,T.jsx)(R,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:gu(t,e,l),fill:gu(t,e,l)},e))}),w&&(0,T.jsx)(T.Fragment,{children:c.map(e=>{var t,n;return(0,T.jsx)(I,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:(null===(n=l.data)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.color)||"gray",curve:a},e)})}),(0,T.jsx)(L,{orientation:P,numTicks:p,animationTrajectory:o,tickFormat:e=>(0,v4.rN)(e),tickLength:12,tickLabelProps:e=>({...e,fill:M.labels.color,fontFamily:M.labels.fontFamily,y:"14px",fontWeight:"500",fontSize:"8"})},"time-axis-".concat(o)),(0,T.jsx)(L,{label:null==C?"SC":"expand"===C?"Fraction of total":"",orientation:N,numTicks:p,tickLength:12,animationTrajectory:o,tickFormat:l.formatTickY,tickTransform:"translate(-300px, 0)",tickLabelProps:e=>({...e,fill:M.labels.color,fontFamily:M.labels.fontFamily,fontWeight:"500",fontSize:"8"})},"temp-axis-".concat(o)),E&&(0,T.jsx)(B,{showHorizontalCrosshair:k,showVerticalCrosshair:S,snapTooltipToDatumX:_,snapTooltipToDatumY:_,showDatumGlyph:_&&!g,showSeriesGlyphs:j&&!g,renderGlyph:b?x:void 0,renderTooltip:e=>{var t,n;let{tooltipData:r}=e,o=null==r?void 0:null===(t=r.nearestDatum)||void 0===t?void 0:t.datum,a=null==r?void 0:null===(n=r.nearestDatum)||void 0===n?void 0:n.key,s=j?d:a?[a]:[],u=l.formatTimestamp||(e=>(0,v4.rN)(e,{timeStyle:"short",hour12:!1})),c=s.map(e=>{var t,n;return{key:e,category:(null===(n=l.data)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.category)||""}}),h=(0,ga.Z)(c,"category"),p=l.categories?l.categories.map(e=>[e,h[e]]):Object.entries(h);return(0,T.jsxs)("div",{className:(0,eC.cx)("flex flex-col gap-2 py-1"),children:[(0,T.jsx)(nr,{font:"mono",size:"12",color:"contrast",className:"text-end",children:o?u(i.date(o)):"No date"}),(0,T.jsx)(cq,{color:"panel",className:"w-full"}),(0,T.jsx)("div",{className:(0,eC.cx)("grid gap-x-6 gap-y-4",p.length>1?"grid-cols-2":"grid-cols-1"),children:p.map(e=>{let[t,n]=e,r=o?n.reduce((e,t)=>{let{key:n}=t,r=i.y[n](o);return null==r||Number.isNaN(r)?e:e+r},0):0,s=null==l?void 0:l.formatComponent;return(0,T.jsxs)("div",{className:"flex flex-col gap-2 w-[250px]",children:[t&&(0,T.jsx)(nr,{weight:"semibold",children:t}),(0,T.jsxs)("div",{className:"grid grid-cols-2 gap-x-2 gap-y-1 items-center",children:[n.map(e=>{var t,n,r,u;let{key:c}=e,d=o&&i.y[c](o);return(0,T.jsxs)(A.Fragment,{children:[(0,T.jsx)(nr,{color:"accent",style:{color:null===(n=l.data)||void 0===n?void 0:null===(t=n[c])||void 0===t?void 0:t.color},className:(0,eC.cx)(a===c?"underline":""),children:(null===(u=l.data)||void 0===u?void 0:null===(r=u[c])||void 0===r?void 0:r.label)||c}),(0,T.jsx)(nr,{size:"12",style:{textAlign:"end"},className:(0,eC.cx)(a===c?"underline":""),children:null==d||Number.isNaN(d)?"–":s?(0,T.jsx)(s,{value:d}):l.format?l.format(d):d})]},c)}),n.length>1&&f&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(nr,{className:"pt-2",children:"total"}),(0,T.jsx)(nr,{size:"12",weight:"bold",className:"pt-2 text-end",children:s?(0,T.jsx)(s,{value:r}):l.format?l.format(r):r})]})]})]},t)})})]})}})]})}function gl(e,t){return"".concat(e,"-").concat(t)}function gu(e,t,n){var r;let i=gl(e,t);return(null===(r=n.data)||void 0===r?void 0:r[t])?n.data[t].pattern?"url(#pattern-".concat(i,")"):"url(#gradient-".concat(i,")"):"url(#gradient-default)"}var gc=n(24037),gd=n(86707);function gf(e){var t=e.top,n=e.left,r=e.className,i=e.children;return A.createElement(p8.Z,{className:p5()("visx-glyph",r),top:void 0===t?0:t,left:void 0===n?0:n},i)}gf.propTypes={top:p4().number,left:p4().number,className:p4().string,children:p4().node};var gh=["children","className","top","left","size"];function gp(){return(gp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,gh),s=(0,gc.Z)();return(s.type(gd.Z),"number"==typeof o?s.size(o):o&&s.size(o),t)?A.createElement(A.Fragment,null,t({path:s})):A.createElement(gf,{top:r,left:i},A.createElement("path",gp({className:p5()("visx-glyph-star",n),d:s()||""},a)))}gm.propTypes={children:p4().func,className:p4().string,top:p4().number,left:p4().number,size:p4().oneOfType([p4().number,p4().func])};var gv=["top","left","className"];function gg(){return(gg=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,gv);return A.createElement(gf,{top:void 0===t?0:t,left:void 0===n?0:n},A.createElement("circle",gg({className:p5()("visx-glyph-dot",r)},i)))}gy.propTypes={className:p4().string,top:p4().number,left:p4().number,r:p4().number,cx:p4().number,cy:p4().number};var gb=n(9135),gx=["children","className","top","left","size"];function gw(){return(gw=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,gx),s=(0,gc.Z)();return(s.type(gb.Z),"number"==typeof o?s.size(o):o&&s.size(o),t)?A.createElement(A.Fragment,null,t({path:s})):A.createElement(gf,{top:r,left:i},A.createElement("path",gw({className:p5()("visx-glyph-cross",n),d:s()||""},a)))}gj.propTypes={children:p4().func,className:p4().string,top:p4().number,left:p4().number,size:p4().oneOfType([p4().number,p4().func])};var gk=n(46385),gE=n(20651),gS={red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"]},g_=gS.gray,gC=g_[7],gO=[gS.cyan[9],gS.cyan[3],gS.yellow[5],gS.red[4],gS.grape[8],gS.grape[5],gS.pink[9]];function gM(){return(gM=Object.assign?Object.assign.bind():function(e){for(var t=1;t{for(var n in t)gR(e,n,{get:t[n],enumerable:!0})})(gD,{assign:()=>yr,colors:()=>ye,createStringInterpolator:()=>_,skipAnimation:()=>yt,to:()=>C,willAdvance:()=>yn});var gL=gQ(),gZ=e=>gK(e,gL),gF=gQ();gZ.write=e=>gK(e,gF);var gz=gQ();gZ.onStart=e=>gK(e,gz);var gV=gQ();gZ.onFrame=e=>gK(e,gV);var gI=gQ();gZ.onFinish=e=>gK(e,gI);var gB=[];gZ.setTimeout=(e,t)=>{let n=gZ.now()+t,r=()=>{let e=gB.findIndex(e=>e.cancel==r);~e&&gB.splice(e,1),gq-=~e?1:0},i={time:n,handler:e,cancel:r};return gB.splice(gH(n),0,i),gq+=1,gY(),i};var gH=e=>~(~gB.findIndex(t=>t.time>e)||~gB.length);gZ.cancel=e=>{gz.delete(e),gV.delete(e),gI.delete(e),gL.delete(e),gF.delete(e)},gZ.sync=e=>{g$=!0,gZ.batchedUpdates(e),g$=!1},gZ.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,gZ.onStart(n)}return r.handler=e,r.cancel=()=>{gz.delete(n),t=null},r};var gU="undefined"!=typeof window?window.requestAnimationFrame:()=>{};gZ.use=e=>gU=e,gZ.now="undefined"!=typeof performance?()=>performance.now():Date.now,gZ.batchedUpdates=e=>e(),gZ.catch=console.error,gZ.frameLoop="always",gZ.advance=()=>{"demand"!==gZ.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):gX()};var gW=-1,gq=0,g$=!1;function gK(e,t){g$?(t.delete(e),e(0)):(t.add(e),gY())}function gY(){gW<0&&(gW=0,"demand"!==gZ.frameLoop&&gU(gG))}function gG(){~gW&&(gU(gG),gZ.batchedUpdates(gX))}function gX(){let e=gW;gW=gZ.now();let t=gH(gW);if(t&&(gJ(gB.splice(0,t),e=>e.handler()),gq-=t),!gq){gW=-1;return}gz.flush(),gL.flush(e?Math.min(64,gW-e):16.667),gV.flush(),gF.flush(),gI.flush()}function gQ(){let e=new Set,t=e;return{add(n){gq+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(gq-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,gq-=t.size,gJ(t,t=>t(n)&&e.add(t)),gq+=e.size,t=e)}}}function gJ(e,t){e.forEach(e=>{try{t(e)}catch(e){gZ.catch(e)}})}function g0(){}var g1=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),g2={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function g4(e,t){if(g2.arr(e)){if(!g2.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function g5(e,t,n){if(g2.arr(e)){for(let r=0;rg2.und(e)?[]:g2.arr(e)?e:[e];function g8(e,t){if(e.size){let n=Array.from(e);e.clear(),g3(n,t)}}var g7=(e,...t)=>g8(e,e=>e(...t)),g9=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),ye=null,yt=!1,yn=g0,yr=e=>{e.to&&(C=e.to),e.now&&(gZ.now=e.now),void 0!==e.colors&&(ye=e.colors),null!=e.skipAnimation&&(yt=e.skipAnimation),e.createStringInterpolator&&(_=e.createStringInterpolator),e.requestAnimationFrame&&gZ.use(e.requestAnimationFrame),e.batchedUpdates&&(gZ.batchedUpdates=e.batchedUpdates),e.willAdvance&&(yn=e.willAdvance),e.frameLoop&&(gZ.frameLoop=e.frameLoop)},yi=new Set,yo=[],ya=[],ys=0,yl={get idle(){return!yi.size&&!yo.length},start(e){ys>e.priority?(yi.add(e),gZ.onStart(yu)):(yc(e),gZ(yf))},advance:yf,sort(e){if(ys)gZ.onFrame(()=>yl.sort(e));else{let t=yo.indexOf(e);~t&&(yo.splice(t,1),yd(e))}},clear(){yo=[],yi.clear()}};function yu(){yi.forEach(yc),yi.clear(),gZ(yf)}function yc(e){yo.includes(e)||yd(e)}function yd(e){yo.splice(function(e,t){let n=e.findIndex(t);return n<0?e.length:n}(yo,t=>t.priority>e.priority),0,e)}function yf(e){let t=ya;for(let n=0;n0}var yh="[-+]?\\d*\\.?\\d+",yp=yh+"%";function ym(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var yv=RegExp("rgb"+ym(yh,yh,yh)),yg=RegExp("rgba"+ym(yh,yh,yh,yh)),yy=RegExp("hsl"+ym(yh,yp,yp)),yb=RegExp("hsla"+ym(yh,yp,yp,yh)),yx=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,yw=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,yj=/^#([0-9a-fA-F]{6})$/,yk=/^#([0-9a-fA-F]{8})$/;function yE(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function yS(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=yE(i,r,e+1/3),a=yE(i,r,e),s=yE(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function y_(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function yC(e){let t=parseFloat(e);return(t%360+360)%360/360}function yO(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function yM(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function yT(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=yj.exec(e))?parseInt(t[1]+"ff",16)>>>0:ye&&void 0!==ye[e]?ye[e]:(t=yv.exec(e))?(y_(t[1])<<24|y_(t[2])<<16|y_(t[3])<<8|255)>>>0:(t=yg.exec(e))?(y_(t[1])<<24|y_(t[2])<<16|y_(t[3])<<8|yO(t[4]))>>>0:(t=yx.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=yk.exec(e))?parseInt(t[1],16)>>>0:(t=yw.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=yy.exec(e))?(255|yS(yC(t[1]),yM(t[2]),yM(t[3])))>>>0:(t=yb.exec(e))?(yS(yC(t[1]),yM(t[2]),yM(t[3]))|yO(t[4]))>>>0:null;if(null===n)return e;n=n||0;let r=(4278190080&n)>>>24,i=(16711680&n)>>>16,o=(65280&n)>>>8,a=(255&n)/255;return`rgba(${r}, ${i}, ${o}, ${a})`}var yA=(e,t,n)=>{if(g2.fun(e))return e;if(g2.arr(e))return yA({range:e,output:t,extrapolate:n});if(g2.str(e.output[0]))return _(e);let r=e.output,i=e.range||[0,1],o=e.extrapolateLeft||e.extrapolate||"extend",a=e.extrapolateRight||e.extrapolate||"extend",s=e.easing||(e=>e);return t=>{let n=function(e,t){for(var n=1;n=e);++n);return n-1}(t,i);return function(e,t,n,r,i,o,a,s,l){let u=l?l(e):e;if(un){if("identity"===s)return u;"clamp"===s&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=o(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r,u)}(t,i[n],i[n+1],r[n],r[n+1],s,o,a,e.map)}},yP=Symbol.for("FluidValue.get"),yN=Symbol.for("FluidValue.observers"),yR=e=>!!(e&&e[yP]),yD=e=>e&&e[yP]?e[yP]():e,yL=e=>e[yN]||null;function yZ(e,t){let n=e[yN];n&&n.forEach(e=>{e.eventObserved?e.eventObserved(t):e(t)})}var yF=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");yz(this,e)}},yz=(e,t)=>yB(e,yP,t);function yV(e,t){if(e[yP]){let n=e[yN];n||yB(e,yN,n=new Set),!n.has(t)&&(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function yI(e,t){let n=e[yN];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[yN]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var yB=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),yH=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,yU=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,yW=RegExp(`(${yH.source})(%|[a-z]+)`,"i"),yq=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,y$=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,yK=e=>{let[t,n]=yY(e);if(!t||g9())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){let e=window.getComputedStyle(document.documentElement).getPropertyValue(n);if(e)return e}else if(n&&y$.test(n))return yK(n);else if(n)return n;return e},yY=e=>{let t=y$.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},yG=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,yX=e=>{O||(O=ye?RegExp(`(${Object.keys(ye).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>yD(e).replace(y$,yK).replace(yU,yT).replace(O,yT)),n=t.map(e=>e.match(yH).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})),i=r.map(t=>yA({...e,output:t}));return e=>{let n=!yW.test(t[0])&&t.find(e=>yW.test(e))?.replace(yH,""),r=0;return t[0].replace(yH,()=>`${i[r++](e)}${n||""}`).replace(yq,yG)}},yQ="react-spring: ",yJ=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${yQ}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},y0=yJ(console.warn),y1=yJ(console.warn);function y2(e){return g2.str(e)&&("#"==e[0]||/\d/.test(e)||!g9()&&y$.test(e)||e in(ye||{}))}var y4=g9()?A.useEffect:A.useLayoutEffect,y3=()=>{let e=(0,A.useRef)(!1);return y4(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function y5(){let e=(0,A.useState)()[1],t=y3();return()=>{t.current&&e(Math.random())}}var y6=e=>(0,A.useEffect)(e,y8),y8=[];function y7(e){let t=(0,A.useRef)();return(0,A.useEffect)(()=>{t.current=e}),t.current}var y9=Symbol.for("Animated:node"),be=e=>!!e&&e[y9]===e,bt=e=>e&&e[y9],bn=(e,t)=>g1(e,y9,t),br=e=>e&&e[y9]&&e[y9].getPayload(),bi=class{constructor(){bn(this,this)}getPayload(){return this.payload||[]}},bo=class extends bi{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,g2.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new bo(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return g2.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,g2.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},ba=class extends bo{constructor(e){super(0),this._string=null,this._toString=yA({output:[e,e]})}static create(e){return new ba(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(g2.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=yA({output:[this.getValue(),e]})),this._value=0,super.reset()}},bs={dependencies:null},bl=class extends bi{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return g5(this.source,(n,r)=>{be(n)?t[r]=n.getValue(e):yR(n)?t[r]=yD(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&g3(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return g5(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){bs.dependencies&&yR(e)&&bs.dependencies.add(e);let t=br(e);t&&g3(t,e=>this.add(e))}},bu=class extends bl{constructor(e){super(e)}static create(e){return new bu(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(bc)),!0)}};function bc(e){let t=y2(e)?ba:bo;return t.create(e)}function bd(e){let t=bt(e);return t?t.constructor:g2.arr(e)?bu:y2(e)?ba:bo}var bf=(e,t)=>{let n=!g2.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,A.forwardRef)((r,i)=>{let o=(0,A.useRef)(null),a=n&&(0,A.useCallback)(e=>{o.current=(i&&(g2.fun(i)?i(e):i.current=e),e)},[i]),[s,l]=function(e,t){let n=new Set;return bs.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new bl(e),bs.dependencies=null,[e,n]}(r,t),u=y5(),c=()=>{let e=o.current;if(n&&!e)return;let r=!!e&&t.applyAnimatedValues(e,s.getValue(!0));!1===r&&u()},d=new bh(c,l),f=(0,A.useRef)();y4(()=>(f.current=d,g3(l,e=>yV(e,d)),()=>{f.current&&(g3(f.current.deps,e=>yI(e,f.current)),gZ.cancel(f.current.update))})),(0,A.useEffect)(c,[]),y6(()=>()=>{let e=f.current;g3(e.deps,t=>yI(t,e))});let h=t.getComponentProps(s.getValue());return A.createElement(e,{...h,ref:a})})},bh=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&gZ.write(this.update)}},bp=Symbol.for("AnimatedComponent"),bm=e=>g2.str(e)?e:e&&g2.str(e.displayName)?e.displayName:g2.fun(e)&&e.name||null;function bv(e,...t){return g2.fun(e)?e(...t):e}var bg=(e,t)=>!0===e||!!(t&&e&&(g2.fun(e)?e(t):g6(e).includes(t))),by=(e,t)=>g2.obj(e)?t&&e[t]:e,bb=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,bx=e=>e,bw=(e,t=bx)=>{let n=bj;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);g2.und(n)||(r[i]=n)}return r},bj=["config","onProps","onStart","onChange","onPause","onResume","onRest"],bk={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function bE(e){let t=function(e){let t={},n=0;if(g5(e,(e,r)=>{!bk[r]&&(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return g5(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function bS(e){return e=yD(e),g2.arr(e)?e.map(bS):y2(e)?gD.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function b_(e){for(let t in e)return!0;return!1}function bC(e){return g2.fun(e)||g2.arr(e)&&g2.obj(e[0])}function bO(e,t){e.ref?.delete(e),t?.delete(e)}function bM(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var bT={tension:170,friction:26,mass:1,damping:1,easing:e=>e,clamp:!1},bA=class{constructor(){this.velocity=0,Object.assign(this,bT)}};function bP(e,t){if(g2.und(t.decay)){let n=!g2.und(t.tension)||!g2.und(t.friction);!n&&g2.und(t.frequency)&&g2.und(t.damping)&&g2.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var bN=[],bR=class{constructor(){this.changed=!1,this.values=bN,this.toValues=null,this.fromValues=bN,this.config=new bA,this.immediate=!1}};function bD(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{let l,u;let c=bg(n.cancel??r?.cancel,t);if(c)h();else{g2.und(n.pause)||(i.paused=bg(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||bg(e,t)),l=bv(n.delay||0,t),e?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),l=u.time-gZ.now()}function f(){l>0&&!gD.skipAnimation?(i.delayed=!0,u=gZ.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(u)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{o.start({...n,callId:e,cancel:c},a)}catch(e){s(e)}}})}var bL=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?bz(e.get()):t.every(e=>e.noop)?bZ(e.get()):bF(e.get(),t.every(e=>e.finished)),bZ=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),bF=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),bz=e=>({value:e,cancelled:!0,finished:!1});function bV(e,t,n,r){let{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{let u,c,d;n.asyncId=i,n.asyncTo=e;let f=bw(t,(e,t)=>"onRest"===t?void 0:e),h=new Promise((e,t)=>(u=e,c=t)),p=e=>{let t=i<=(n.cancelId||0)&&bz(r)||i!==n.asyncId&&bF(r,!1);if(t)throw e.result=t,c(e),e},m=(e,t)=>{let o=new bB,a=new bH;return(async()=>{if(gD.skipAnimation)throw bI(n),a.result=bF(r,!1),c(a),a;p(o);let s=g2.obj(e)?{...e}:{...t,to:e};s.parentId=i,g5(f,(e,t)=>{g2.und(s[t])&&(s[t]=e)});let l=await r.start(s);return p(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()};if(gD.skipAnimation)return bI(n),bF(r,!1);try{let t;t=g2.arr(e)?(async e=>{for(let t of e)await m(t)})(e):Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([t.then(u),h]),d=bF(r.get(),!0,!1)}catch(e){if(e instanceof bB)d=e.result;else if(e instanceof bH)d=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return g2.fun(a)&&gZ.batchedUpdates(()=>{a(d,r,r.item)}),d})():l}function bI(e,t){g8(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var bB=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},bH=class extends Error{constructor(){super("SkipAnimationSignal")}},bU=e=>e instanceof bq,bW=1,bq=class extends yF{constructor(){super(...arguments),this.id=bW++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=bt(this);return e&&e.getValue()}to(...e){return gD.to(this,e)}interpolate(...e){return y0(`${yQ}The "interpolate" function is deprecated in v9 (use "to" instead)`),gD.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){yZ(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||yl.sort(this),yZ(this,{type:"priority",parent:this,priority:e})}},b$=Symbol.for("SpringPhase"),bK=e=>(1&e[b$])>0,bY=e=>(2&e[b$])>0,bG=e=>(4&e[b$])>0,bX=(e,t)=>t?e[b$]|=3:e[b$]&=-3,bQ=(e,t)=>t?e[b$]|=4:e[b$]&=-5,bJ=class extends bq{constructor(e,t){if(super(),this.animation=new bR,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!g2.und(e)||!g2.und(t)){let n=g2.obj(e)?{...e}:{...t,from:e};g2.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(bY(this)||this._state.asyncTo)||bG(this)}get goal(){return yD(this.animation.to)}get velocity(){let e=bt(this);return e instanceof bo?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return bK(this)}get isAnimating(){return bY(this)}get isPaused(){return bG(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:o}=r,a=br(r.to);!a&&yR(r.to)&&(i=g6(yD(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==ba?1:a?a[l].lastPosition:i[l],c=r.immediate,d=u;if(!c){let t;if(d=s.lastPosition,o.tension<=0){s.done=!0;return}let n=s.elapsedTime+=e,i=r.fromValues[l],a=null!=s.v0?s.v0:s.v0=g2.arr(o.velocity)?o.velocity[l]:o.velocity,f=o.precision||(i==u?.005:Math.min(1,.001*Math.abs(u-i)));if(g2.und(o.duration)){if(o.decay){let e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*n);d=i+a/(1-e)*(1-r),c=Math.abs(s.lastPosition-d)<=f,t=a*r}else{t=null==s.lastVelocity?a:s.lastVelocity;let n=o.restVelocity||f/10,r=o.clamp?0:o.bounce,l=!g2.und(r),h=i==u?s.v0>0:in)&&(c=Math.abs(u-d)<=f));++e){l&&(d==u||d>u==h)&&(t=-t*r,d=u);let e=-(1e-6*o.tension)*(d-u),n=-(.001*o.friction)*t,i=(e+n)/o.mass;t+=1*i,d+=1*t}}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,s.durationProgress>0&&(s.elapsedTime=o.duration*s.durationProgress,n=s.elapsedTime+=e)),r=(r=(o.progress||0)+n/this._memoizedDuration)>1?1:r<0?0:r,s.durationProgress=r),t=((d=i+o.easing(r)*(u-i))-s.lastPosition)/e,c=1==r}s.lastVelocity=t,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}a&&!a[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,o.round)&&(n=!0)});let s=bt(this),l=s.getValue();if(t){let e=yD(r.to);(l!==e||n)&&!o.decay?(s.setValue(e),this._onChange(e)):n&&o.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return gZ.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(bY(this)){let{to:e,config:t}=this.animation;gZ.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){let t=this.queue||(this.queue=[]);return t.push(e),this}start(e,t){let n;return g2.und(e)?(n=this.queue||[],this.queue=[]):n=[g2.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>{let t=this._update(e);return t})).then(e=>bL(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),bI(this._state,e&&this._lastCallId),gZ.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:n,from:r}=e;(null==(n=g2.obj(n)?n[t]:n)||bC(n))&&(n=void 0),null==(r=g2.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return bK(this)||(e.reverse&&([n,r]=[r,n]),r=yD(r),g2.und(r)?bt(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,bw(e,(e,t)=>/^on/.test(t)?by(e,n):e)),b5(this,e,"onProps"),b6(this,"onProps",e,this);let i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let o=this._state;return bD(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{bG(this)||(bQ(this,!0),g7(o.pauseQueue),b6(this,"onPause",bF(this,b0(this,this.animation.to)),this))},resume:()=>{bG(this)&&(bQ(this,!1),bY(this)&&this._resume(),g7(o.resumeQueue),b6(this,"onResume",bF(this,b0(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=b1(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(bz(this));let r=!g2.und(e.to),i=!g2.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(bz(this));this._lastToId=t.callId}let{key:o,defaultProps:a,animation:s}=this,{to:l,from:u}=s,{to:c=l,from:d=u}=e;i&&!r&&(!t.default||g2.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!g4(d,u);f&&(s.from=d),d=yD(d);let h=!g4(c,l);h&&this._focus(c);let p=bC(t.to),{config:m}=s,{decay:v,velocity:g}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(bP(n={...n},t),t={...n,...t}),bP(e,t),Object.assign(e,t),bT)null==e[r]&&(e[r]=bT[r]);let{frequency:r,damping:i}=e,{mass:o}=e;g2.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r)}(m,bv(t.config,o),t.config!==a.config?bv(a.config,o):void 0);let y=bt(this);if(!y||g2.und(c))return n(bF(this,!0));let b=g2.und(t.reset)?i&&!t.default:!g2.und(d)&&bg(t.reset,o),x=b?d:this.get(),w=bS(c),j=g2.num(w)||g2.arr(w)||y2(w),k=!p&&(!j||bg(a.immediate||t.immediate,o));if(h){let e=bd(c);if(e!==y.constructor){if(k)y=this._set(w);else throw Error(`Cannot animate between ${y.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let E=y.constructor,S=yR(c),_=!1;if(!S){let e=b||!bK(this)&&f;(h||e)&&(S=!(_=g4(bS(x),w))),(g4(s.immediate,k)||k)&&g4(m.decay,v)&&g4(m.velocity,g)||(S=!0)}if(_&&bY(this)&&(s.changed&&!b?S=!0:S||this._stop(l)),!p&&((S||yR(l))&&(s.values=y.getPayload(),s.toValues=yR(c)?null:E==ba?[1]:g6(w)),s.immediate==k||(s.immediate=k,k||b||this._set(l)),S)){let{onRest:e}=s;g3(b3,e=>b5(this,t,e));let r=bF(this,b0(this,l));g7(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&gZ.batchedUpdates(()=>{s.changed=!b,e?.(r,this),b?bv(a.onRest,r):s.onStart?.(r,this)})}b&&this._set(x),p?n(bV(t.to,t,this._state,this)):S?this._start():bY(this)&&!h?this._pendingCalls.add(n):n(bZ(x))}_focus(e){let t=this.animation;e!==t.to&&(yL(this)&&this._detach(),t.to=e,yL(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;yR(t)&&(yV(t,this),bU(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;yR(e)&&yI(e,this)}_set(e,t=!0){let n=yD(e);if(!g2.und(n)){let e=bt(this);if(!e||!g4(n,e.getValue())){let r=bd(n);e&&e.constructor==r?e.setValue(n):bn(this,r.create(n)),e&&gZ.batchedUpdates(()=>{this._onChange(n,t)})}}return bt(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,b6(this,"onStart",bF(this,b0(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),bv(this.animation.onChange,e,this)),bv(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;bt(this).reset(yD(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),bY(this)||(bX(this,!0),bG(this)||this._resume())}_resume(){gD.skipAnimation?this.finish():yl.start(this)}_stop(e,t){if(bY(this)){bX(this,!1);let n=this.animation;g3(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),yZ(this,{type:"idle",parent:this});let r=t?bz(this.get()):bF(this.get(),b0(this,e??n.to));g7(this._pendingCalls,r),n.changed&&(n.changed=!1,b6(this,"onRest",r,this))}}};function b0(e,t){let n=bS(t),r=bS(e.get());return g4(r,n)}function b1(e,t=e.loop,n=e.to){let r=bv(t);if(r){let i=!0!==r&&bE(r),o=(i||e).reverse,a=!i||i.reset;return b2({...e,loop:t,default:!1,pause:void 0,to:!o||bC(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function b2(e){let{to:t,from:n}=e=bE(e),r=new Set;return g2.obj(t)&&b4(t,r),g2.obj(n)&&b4(n,r),e.keys=r.size?Array.from(r):null,e}function b4(e,t){g5(e,(e,n)=>null!=e&&t.add(n))}var b3=["onStart","onRest","onChange","onPause","onResume"];function b5(e,t,n){e.animation[n]=t[n]!==bb(t,n)?by(t[n],e.key):void 0}function b6(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var b8=["onStart","onChange","onRest"],b7=1,b9=class{constructor(e,t){this.id=b7++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];g2.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(b2(e)),this}start(e){let{queue:t}=this;return(e?t=g6(e).map(b2):this.queue=[],this._flush)?this._flush(this,t):(xa(this,t),xe(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;g3(g6(t),t=>n[t].stop(!!e))}else bI(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(g2.und(e))this.start({pause:!0});else{let t=this.springs;g3(g6(e),e=>t[e].pause())}return this}resume(e){if(g2.und(e))this.start({pause:!1});else{let t=this.springs;g3(g6(e),e=>t[e].resume())}return this}each(e){g5(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,g8(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&g8(t,([e,t])=>{t.value=a,e(t,this,this._item)}),o&&(this._started=!1,g8(n,([e,t])=>{t.value=a,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}gZ.onFrame(this._onFrame)}};function xe(e,t){return Promise.all(t.map(t=>xt(e,t))).then(t=>bL(e,t))}async function xt(e,t,n){let{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=g2.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);let c=g2.arr(i)||g2.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):g3(b8,n=>{let r=t[n];if(g2.fun(r)){let i=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}});let d=e._state;!d.paused===t.pause?(d.paused=t.pause,g7(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let f=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),h=!0===t.cancel||!0===bb(t,"cancel");(c||h&&d.asyncId)&&f.push(bD(++e._lastAsyncId,{props:t,state:d,actions:{pause:g0,resume:g0,start(t,n){h?(bI(d,e._lastAsyncId),n(bz(e))):(t.onRest=s,n(bV(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=bL(e,await Promise.all(f));if(a&&p.finished&&!(n&&p.noop)){let n=b1(t,a,i);if(n)return xa(e,[n]),xt(e,n,!0)}return l&&gZ.batchedUpdates(()=>l(p,e,e.item)),p}function xn(e,t){let n={...e.springs};return t&&g3(g6(t),e=>{g2.und(e.keys)&&(e=b2(e)),g2.obj(e.to)||(e={...e,to:void 0}),xo(n,e,e=>xi(e))}),xr(e,n),n}function xr(e,t){g5(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,yV(t,e))})}function xi(e,t){let n=new bJ;return n.key=e,t&&yV(n,t),n}function xo(e,t,n){t.keys&&g3(t.keys,r=>{let i=e[r]||(e[r]=n(r));i._prepareNode(t)})}function xa(e,t){g3(t,t=>{xo(e.springs,t,t=>xi(t,e))})}var xs=({children:e,...t})=>{let n=(0,A.useContext)(xl),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=function(e,t){let[n]=(0,A.useState)(()=>({inputs:t,result:e()})),r=(0,A.useRef)(),i=r.current,o=i;if(o){let n=!!(t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}(()=>({pause:r,immediate:i}),[r,i]);let{Provider:o}=xl;return A.createElement(o,{value:t},e)},xl=(Object.assign(xs,A.createContext({})),xs.Provider._context=xs,xs.Consumer._context=xs,xs);xs.Provider=xl.Provider,xs.Consumer=xl.Consumer;var xu=()=>{let e=[],t=function(t){y1(`${yQ}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);let r=[];return g3(e,(e,i)=>{if(g2.und(t))r.push(e.start());else{let o=n(t,e,i);o&&r.push(e.start(o))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return g3(e,e=>e.pause(...arguments)),this},t.resume=function(){return g3(e,e=>e.resume(...arguments)),this},t.set=function(t){g3(e,(e,n)=>{let r=g2.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return g3(e,(e,r)=>{if(g2.und(t))n.push(e.start());else{let i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return g3(e,e=>e.stop(...arguments)),this},t.update=function(t){return g3(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return g2.fun(e)?e(n,t):e};return t._getProps=n,t};function xc(e,t){let n=g2.fun(e),[[r],i]=function(e,t,n){let r=g2.fun(t)&&t;r&&!n&&(n=[]);let i=(0,A.useMemo)(()=>r||3==arguments.length?xu():void 0,[]),o=(0,A.useRef)(0),a=y5(),s=(0,A.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=xn(e,t),r=o.current>0&&!s.queue.length&&!Object.keys(n).some(t=>!e.springs[t]);return r?xe(e,t):new Promise(r=>{xr(e,n),s.queue.push(()=>{r(xe(e,t))}),a()})}}),[]),l=(0,A.useRef)([...s.ctrls]),u=[],c=y7(e)||0;function d(e,n){for(let i=e;i{g3(l.current.slice(e,c),e=>{bO(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,A.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=l.current.map((e,t)=>xn(e,u[t])),h=(0,A.useContext)(xs),p=y7(h),m=h!==p&&b_(h);y4(()=>{o.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],g3(e,e=>e())),g3(l.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(bM(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),y6(()=>()=>{g3(s.ctrls,e=>e.stop(!0))});let v=f.map(e=>({...e}));return i?[v,i]:v}(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}function xd(e,t,n){let r=g2.fun(t)&&t,{reset:i,sort:o,trail:a=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=(0,A.useMemo)(()=>r||3==arguments.length?xu():void 0,[]),h=g6(e),p=[],m=(0,A.useRef)(null),v=i?null:m.current;y4(()=>{m.current=p}),y6(()=>(g3(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{g3(m.current,e=>{e.expired&&clearTimeout(e.expirationId),bO(e.ctrl,f),e.ctrl.stop(!0)})}));let g=function(e,{key:t,keys:n=t},r){if(null===n){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&"leave"!==n.phase&&!t.has(n));return n?(t.add(n),n.key):xf++})}return g2.und(n)?e:g2.fun(n)?e.map(n):g6(n)}(h,r?r():t,v),y=i&&m.current||[];y4(()=>g3(y,({ctrl:e,item:t,key:n})=>{bO(e,f),bv(u,t,n)}));let b=[];if(v&&g3(v,(e,t)=>{e.expired?(clearTimeout(e.expirationId),y.push(e)):~(t=b[t]=g.indexOf(e.key))&&(p[t]=e)}),g3(h,(e,t)=>{p[t]||(p[t]={key:g[t],item:e,phase:"mount",ctrl:new b9},p[t].ctrl.item=e)}),b.length){let e=-1,{leave:n}=r?r():t;g3(b,(t,r)=>{let i=v[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}g2.fun(o)&&p.sort((e,t)=>o(e.item,t.item));let x=-a,w=y5(),j=bw(t),k=new Map,E=(0,A.useRef)(new Map),S=(0,A.useRef)(!1);g3(p,(e,n)=>{let i,o;let u=e.key,f=e.phase,h=r?r():t,p=bv(h.delay||0,u);if("mount"==f)i=h.enter,o="enter";else{let e=0>g.indexOf(u);if("leave"!=f){if(e)i=h.leave,o="leave";else{if(!(i=h.update))return;o="update"}}else{if(e)return;i=h.enter,o="enter"}}if(i=bv(i,e.item,n),!(i=g2.obj(i)?bE(i):{to:i}).config){let t=d||j.config;i.config=bv(t,e.item,n,o)}x+=a;let y={...j,delay:p+x,ref:c,immediate:h.immediate,reset:!1,...i};if("enter"==o&&g2.und(y.from)){let i=r?r():t,o=g2.und(i.initial)||v?i.from:i.initial;y.from=bv(o,e.item,n)}let{onResolve:b}=y;y.onResolve=e=>{bv(b,e);let t=m.current,n=t.find(e=>e.key===u);if(n){if(e.cancelled&&"update"!=n.phase)return;if(n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){let t=bv(s,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(w,r));return}}}e&&t.some(e=>e.expired)&&(E.current.delete(n),l&&(S.current=!0),w())}}};let _=xn(e.ctrl,y);"leave"===o&&l?E.current.set(e,{phase:o,springs:_,payload:y}):k.set(e,{phase:o,springs:_,payload:y})});let _=(0,A.useContext)(xs),C=y7(_),O=_!==C&&b_(_);y4(()=>{O&&g3(p,e=>{e.ctrl.start({default:_})})},[_]),g3(k,(e,t)=>{if(E.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),y4(()=>{g3(E.current.size?E.current:k,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),O&&"enter"==e&&r.start({default:_}),t&&(bM(r,t.ref),(r.ref||f)&&!S.current?r.update(t):(r.start(t),S.current&&(S.current=!1)))})},i?void 0:n);let M=e=>A.createElement(A.Fragment,null,p.map((t,n)=>{let{springs:r}=k.get(t)||t.ctrl,i=e({...r},t.item,t,n);return i&&i.type?A.createElement(i.type,{...i.props,key:g2.str(t.key)||g2.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[M,f]:M}var xf=1,xh=class extends bq{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=yA(...t);let n=this._get(),r=bd(n);bn(this,r.create(n))}advance(e){let t=this._get(),n=this.get();g4(t,n)||(bt(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&xm(this._active)&&xv(this)}_get(){let e=g2.arr(this.source)?this.source.map(yD):g6(yD(this.source));return this.calc(...e)}_start(){this.idle&&!xm(this._active)&&(this.idle=!1,g3(br(this),e=>{e.done=!1}),gD.skipAnimation?(gZ.batchedUpdates(()=>this.advance()),xv(this)):yl.start(this))}_attach(){let e=1;g3(g6(this.source),t=>{yR(t)&&yV(t,this),bU(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){g3(g6(this.source),e=>{yR(e)&&yI(e,this)}),this._active.clear(),xv(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=g6(this.source).reduce((e,t)=>Math.max(e,(bU(t)?t.priority:0)+1),0))}};function xp(e){return!1!==e.idle}function xm(e){return!e.size||Array.from(e).every(xp)}function xv(e){e.idle||(e.idle=!0,g3(br(e),e=>{e.done=!0}),yZ(e,{type:"idle",parent:e}))}var xg=(e,...t)=>new xh(e,t);gD.assign({createStringInterpolator:yX,to:(e,t)=>new xh(e,t)}),yl.advance;var xy=/^--/,xb={},xx={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},xw=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),xj=["Webkit","Ms","Moz","O"];xx=Object.keys(xx).reduce((e,t)=>(xj.forEach(n=>e[xw(n,t)]=e[t]),e),xx);var xk=/^(matrix|translate|scale|rotate|skew)/,xE=/^(translate)/,xS=/^(rotate|skew)/,x_=(e,t)=>g2.num(e)&&0!==e?e+t:e,xC=(e,t)=>g2.arr(e)?e.every(e=>xC(e,t)):g2.num(e)?e===t:parseFloat(e)===t,xO=class extends bl{constructor({x:e,y:t,z:n,...r}){let i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(e=>[`translate3d(${e.map(e=>x_(e,"px")).join(",")})`,xC(e,0)])),g5(r,(e,t)=>{if("transform"===t)i.push([e||""]),o.push(e=>[e,""===e]);else if(xk.test(t)){if(delete r[t],g2.und(e))return;let n=xE.test(t)?"px":xS.test(t)?"deg":"";i.push(g6(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${x_(i,n)})`,xC(i,0)]:e=>[`${t}(${e.map(e=>x_(e,n)).join(",")})`,xC(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new xM(i,o)),super(r)}},xM=class extends yF{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return g3(this.inputs,(n,r)=>{let i=yD(n[0]),[o,a]=this.transforms[r](g2.arr(i)?i:n.map(yD));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){1==e&&g3(this.inputs,e=>g3(e,e=>yR(e)&&yV(e,this)))}observerRemoved(e){0==e&&g3(this.inputs,e=>g3(e,e=>yR(e)&&yI(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),yZ(this,e)}};gD.assign({batchedUpdates:tg.unstable_batchedUpdates,createStringInterpolator:yX,colors:{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}});var xT=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new bl(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{let t=bm(e)||"Anonymous";return(e=g2.str(e)?o[e]||(o[e]=bf(e,i)):e[bp]||(e[bp]=bf(e,i))).displayName=`Animated(${t})`,e};return g5(e,(t,n)=>{g2.arr(e)&&(n=bm(t)),o[n]=o(t)}),{animated:o}})(["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"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:i,scrollTop:o,scrollLeft:a,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(t=>n||e.hasAttribute(t)?t:xb[t]||(xb[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==i&&(e.textContent=i),r)if(r.hasOwnProperty(t)){var d;let n=null==(d=r[t])||"boolean"==typeof d||""===d?"":"number"!=typeof d||0===d||xy.test(t)||xx.hasOwnProperty(t)&&xx[t]?(""+d).trim():d+"px";xy.test(t)?e.style.setProperty(t,n):e.style[t]=n}c.forEach((t,n)=>{e.setAttribute(t,u[n])}),void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new xO(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated,xA=n(23442),xP=(0,A.createContext)({});function xN(e){var t=e.x,n=e.y,r=e.dx,i=e.dy,o=e.children,a=(0,A.useMemo)(function(){return{x:t,y:n,dx:r,dy:i}},[t,n,r,i]);return A.createElement(xP.Provider,{value:a},o)}function xR(){return(xR=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,xV),p=(0,A.useContext)(xZ)||{},m=p.innerHeight,v=p.innerWidth,g=p.margin,y=p.xScale,b=p.yScale,x=p.dataRegistry,w=(0,A.useMemo)(function(){return y?xF(y):0},[y]),j=(0,A.useMemo)(function(){return b?xF(b):0},[b]);if((!s||!l)&&!a)return console.warn("[@visx/xychart/BaseAnnotation]: dataKey or x/yAccessors must be specified."),null;var k=s&&l||null==a?null:null==x?void 0:x.get(a),E=s||(null==k?void 0:k.xAccessor),S=l||(null==k?void 0:k.yAccessor);if(!y||!b||!v||!m||!E||!S||!g)return null;var _=(null!=(t=(0,me.Z)(y(E(o))))?t:NaN)+w/2,C=(null!=(n=(0,me.Z)(b(S(o))))?n:NaN)+j/2,O=_+c+16>g.left+v?-c:c,M=C+f+16>g.top+m?-f:f;return xz(_)&&xz(C)?A.createElement(r,xI({width:v,height:m},h,{x:_,y:C,dx:O,dy:M}),i):null}xB.propTypes={dataKey:p4().string,xAccessor:p4().func,yAccessor:p4().func};var xH=["x","y","AnnotationComponent"],xU=["editable"];function xW(){return(xW=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function x$(e){var t=e.x,n=void 0===t?0:t,r=e.y,i=void 0===r?0:r,o=e.AnnotationComponent,a=xq(e,xH),s=(0,A.useRef)({x:n,y:i}),l=xc({from:{x:s.current.x-n,y:s.current.y-i},to:{x:0,y:0},reset:!0});return(0,A.useEffect)(function(){s.current={x:n,y:i}},[n,i]),A.createElement(xT.g,{transform:xg([l.x,l.y],function(e,t){return"translate("+e+", "+t+")"})},A.createElement(o,xW({x:n,y:i},a)))}function xK(e){var t=e.editable,n=xq(e,xU),r=(0,A.useCallback)(function(e){return A.createElement(x$,xW({AnnotationComponent:t?xL:xN},e))},[t]);return A.createElement(xB,xW({AnnotationComponent:r},n))}xK.propTypes={editable:p4().bool};var xY=n(12766),xG=["d","stroke","fill"];function xX(){return(xX=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,xG),o=(0,A.useRef)(t),a=(0,A.useCallback)(ge()(function(e){o.current=e},50),[]),s=(0,xY.interpolatePath)(o.current,t);a(t);var l=xc({from:{t:0},to:{t:1},reset:!0,delay:0}).t,u=xc({stroke:void 0===n?"transparent":n,fill:void 0===r?"transparent":r});return A.createElement(xT.path,xX({className:"visx-path",d:l.to(s),stroke:u.stroke,fill:u.fill},i))}var xJ=n(12935),x0=n(12151);function x1(){return(x1=Object.assign?Object.assign.bind():function(e){for(var t=1;tt?1:e>=t?0:NaN}function wn(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;0>n(e[o],t)?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>wt(e(t),n)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);let a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}let wr=wn(wt);wr.right;let wi=wr.left;function wo(e){var t,n,r=e.scale,i=e.accessor,o=e.scaledValue,a=e.data;if("invert"in r&&"function"==typeof r.invert){var s=wn(i).left,l=Number(r.invert(o)),u=s(a,l),c=a[u-1],d=a[u];n=(t=!c||Math.abs(l-i(c))>Math.abs(l-i(d))?d:c)===c?u-1:u}else{if(!("step"in r)||void 0===r.step)return console.warn("[visx/xychart/findNearestDatum] encountered incompatible scale type, bailing"),null;var f=r.domain(),h=r.range().map(Number),p=[].concat(h).sort(function(e,t){return e-t}),m=wi(function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=Array(i);++r=0||(i[n]=e[n]);return i}(e,wg),_=(0,A.useContext)(xZ),C=_.colorScale,O=_.theme,M=_.horizontal,T=(0,A.useMemo)(function(){return x?x4(w,x):void 0},[w,x]),P=(0,A.useMemo)(function(){return x4(w,b)},[w,b]),N=(0,A.useMemo)(function(){return k?x4(E,k):void 0},[E,k]),R=(0,A.useMemo)(function(){return x4(E,j)},[E,j]),D=(0,A.useCallback)(function(e){return xz(w(b(e)))&&xz(E(j(e)))},[w,b,E,j]),L=null!=(t=null!=(n=null==C?void 0:C(l))?n:null==O?void 0:null==(r=O.colors)?void 0:r[0])?t:"#222",Z="AREASERIES_EVENT_SOURCE-"+l,F=wf({dataKey:l,enableEvents:void 0===v||v,onBlur:c,onFocus:d,onPointerMove:f,onPointerOut:h,onPointerUp:p,onPointerDown:m,source:Z,allowedSources:[x5,Z]}),z=(0,A.useMemo)(function(){var e=x3(M?w:E);return M?{x0:null!=T?T:e,x1:P,y:R}:{x:P,y0:null!=N?N:e,y1:R}},[w,E,M,P,R,T,N]),V=!!(d||c),I=(0,A.useCallback)(function(e){var t=e.glyphs;return V?t.map(function(e){return A.createElement(A.Fragment,{key:e.key},wv(wy({},e,{color:"transparent",onFocus:F.onFocus,onBlur:F.onBlur})))}):null},[V,F.onFocus,F.onBlur]);return A.createElement(A.Fragment,null,A.createElement(xJ.Z,wy({},z,S,{curve:a,defined:D}),function(e){var t=e.path;return A.createElement(o,wy({className:"visx-area",stroke:"transparent",fill:L,strokeLinecap:"round"},S,{d:t(s)||""},F))}),y&&A.createElement(x0.Z,wy({x:P,y:R,defined:D,curve:a},u),function(e){var t=e.path;return A.createElement(o,wy({className:"visx-line",fill:"transparent",stroke:L,strokeWidth:2,pointerEvents:"none",strokeLinecap:"round"},u,{d:t(s)||""}))}),V&&A.createElement(wp,{dataKey:l,data:s,xAccessor:b,yAccessor:j,xScale:w,yScale:E,renderGlyphs:I}))}wb.propTypes={renderLine:p4().bool};var wx=x2(wb);function ww(){return(ww=Object.assign?Object.assign.bind():function(e){for(var t=1;t1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o=0;)n[t]=t;return n}function wO(e,t){return e[t]}function wM(e){let t=[];return t.key=e,t}Array.prototype.slice;var wT=n(74322),wA=n(58543);function wP(e,t){let n,r;if(void 0===t)for(let t of e)null!=t&&(void 0===n?t>=t&&(n=r=t):(n>t&&(n=t),r=o&&(n=r=o):(n>o&&(n=o),r=0?"positiveSum":"negativeSum"]+=i})}}),Object.values(e)},[o,l]),d=(0,A.useMemo)(function(){var e=r?null:c.some(function(e){return e.negativeSum<0}),t=function(){var e=wS([]),t=wC,n=w_,r=wO;function i(i){var o,a,s,l=Array.from(e.apply(this,arguments),wM),u=l.length,c=-1;for(let e of i)for(a=0,++c;a0&&0===r&&(o?i.xScale=function(e){return e.domain(wP(e.domain().concat(f)))}:i.yScale=function(e){return e.domain(wP(e.domain().concat(f)))}),i}).filter(function(e){return e}))),function(){return s(u)}},[u,f,o,d,a,s,l]),{seriesChildren:l,dataKeys:u,stackedData:d}}function wF(e,t,n){var r,i,o,a,s=e.xScale,l=e.yScale,u=e.point,c=(n?ws:wa)(e),d=(null==c?void 0:c.index)==null?null:t[c.index];return c&&d&&u?{index:c.index,datum:d,distanceX:n&&u.x>=(null!=(r=s((0,wE.l8)(c.datum)))?r:1/0)&&u.x<=(null!=(i=s((0,wE.xf)(c.datum)))?i:-1/0)?0:c.distanceX,distanceY:n?c.distanceY:u.y<=(null!=(o=l((0,wE.l8)(c.datum)))?o:-1/0)&&u.y>=(null!=(a=l((0,wE.xf)(c.datum)))?a:1/0)?0:c.distanceY}:null}var wz=["data","dataKey","xAccessor","yAccessor","curve","PathComponent","lineProps","renderLine"];function wV(){return(wV=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(a,wz)),u=wV({fill:null!=(n=null!=(r=null==g?void 0:g(e.key))?r:null==j?void 0:null==(i=j.colors)?void 0:i[0])?n:"#222"},l);return{key:t+"-"+e.key,accessors:C,data:e,areaProps:u,lineProps:s}})},[_,C,g,S,j]),M=(0,A.useCallback)(function(e){var t,n,r=null==(t=S.find(function(t){return t.props.dataKey===e.dataKey}))?void 0:null==(n=t.props)?void 0:n.data;return r?wF(e,r,b):null},[S,b]),T="AREASTACK_EVENT_SOURCE-"+E.join("-"),P=wf({dataKey:E,enableEvents:void 0===o||o,findNearestDatum:M,onBlur:s,onFocus:l,onPointerMove:u,onPointerOut:c,onPointerUp:d,onPointerDown:f,source:T,allowedSources:[x5,T]}),N=!!(l||s),R=(0,A.useCallback)(function(e){var t=e.glyphs;return N?t.map(function(e){return A.createElement(A.Fragment,{key:e.key},wv(wV({},e,{color:"transparent",onFocus:P.onFocus,onBlur:P.onBlur})))}):null},[N,P.onFocus,P.onBlur]);return!E.some(function(e){return null==y.get(e)})&&x&&w&&g?A.createElement("g",{className:"visx-area-stack"},O.map(function(e){return A.createElement(xJ.Z,wV({key:e.key,curve:i},e.accessors),function(t){var r=t.path;return A.createElement(n,wV({className:"visx-area",stroke:"transparent",d:r(e.data)||""},e.areaProps,P))})}),m&&O.map(function(e){return A.createElement(wk.Z,wV({key:"line-"+e.key,x:e.accessors.x||e.accessors.x1,y:e.accessors.y||e.accessors.y1,defined:e.accessors.defined,curve:i},e.lineProps),function(t){var r=t.path;return A.createElement(n,wV({className:"visx-line",fill:"transparent",stroke:e.areaProps.fill,strokeWidth:2,pointerEvents:"none"},e.lineProps,{d:r(e.data)||""}))})}),N&&O.map(function(e,t){var n=O[O.length-t-1];return A.createElement(wp,{key:"glyphs-"+n.key,dataKey:n.key,data:n.data,xAccessor:n.accessors.x||n.accessors.x1,yAccessor:n.accessors.y||n.accessors.y1,xScale:wI,yScale:wI,renderGlyphs:R})})):null}function wH(){return(wH=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wq),c=(0,A.useContext)(xZ),d=c.theme,f=c.xScale,h=c.yScale,p=c.margin,m=c.width,v=c.height,g=u.orientation,y=(0,A.useMemo)(function(){var e,t,n,r;return"left"===g||"right"===g?null==d?void 0:null==(e=d.axisStyles)?void 0:null==(t=e.y)?void 0:t[g]:null==d?void 0:null==(n=d.axisStyles)?void 0:null==(r=n.x)?void 0:r[g]},[d,g]),b=u.tickLabelProps,x=(0,A.useMemo)(function(){return b||y?function(e,t,n){return w$({},null==y?void 0:y.tickLabel,{width:"left"===g||"right"===g?null==p?void 0:p[g]:void 0},null==b?void 0:b(e,t,n))}:void 0},[b,y,g,p]),w="bottom"===g?(null!=v?v:0)-(null!=(t=null==p?void 0:p.bottom)?t:0):"top"===g&&null!=(n=null==p?void 0:p.top)?n:0,j="left"===g?null!=(r=null==p?void 0:p.left)?r:0:"right"===g?(null!=m?m:0)-(null!=(i=null==p?void 0:p.right)?i:0):0,k="left"===g||"right"===g?h:f;return k?A.createElement(l,w$({top:w,left:j,labelProps:null==y?void 0:y.axisLabel,stroke:null==y?void 0:null==(o=y.axisLine)?void 0:o.stroke,strokeWidth:null==y?void 0:null==(a=y.axisLine)?void 0:a.strokeWidth,tickLength:null==y?void 0:y.tickLength,tickStroke:null==y?void 0:null==(s=y.tickLine)?void 0:s.stroke},u,{tickLabelProps:x,scale:k})):null}function wY(){return(wY=Object.assign?Object.assign.bind():function(e){for(var t=1;t=h&&l.y<=p;return wQ({},u,{distanceX:0,distanceY:m?0:Math.abs(l.y-(h+p)/2)})}var v=a(i(u.datum)),g=(null!=v?v:1/0)+(null!=c?c:1/0),y=g+d,b=l.x>=g&&l.x<=y;return wQ({},u,{distanceY:0,distanceX:b?0:Math.abs(l.x-(g+y)/2)})}(e,k,v)},[k,v]),S="BARGROUP_EVENT_SOURCE-"+j.join("-")+"}",_=wf({dataKey:j,enableEvents:void 0===f||f,findNearestDatum:E,onBlur:a,onFocus:s,onPointerMove:l,onPointerOut:u,onPointerUp:c,onPointerDown:d,source:S,allowedSources:[x5,S]}),C=(0,A.useMemo)(function(){return b?x3(b):0},[b]),O=(0,A.useMemo)(function(){return x?x3(x):0},[x]),M=j.map(function(e){return m.get(e)});if(M.some(function(e){return null==e})||!b||!x||!p)return null;var T=xF(k),P=M.map(function(e){var t,n=e.xAccessor,r=e.yAccessor,i=e.data,o=e.key,a=function(e){var t,i;return v?(null!=(t=b(n(e)))?t:NaN)-C:(null!=(i=x(r(e)))?i:NaN)-O},s=v?function(e){var t;return null!=(t=x(r(e)))?t:NaN}:function(e){var t;return null!=(t=b(n(e)))?t:NaN},l=null!=(t=k(o))?t:0,u=v?function(e){return C+Math.min(0,a(e))}:function(e){return s(e)+l},c=v?function(e){return s(e)+l}:function(e){return O+Math.min(0,a(e))},d=v?function(e){return Math.abs(a(e))}:function(){return T},f=v?function(){return T}:function(e){return Math.abs(a(e))},h=w.find(function(e){return e.props.dataKey===o}),m=(null==h?void 0:h.props)||{},g=m.colorAccessor;return{key:o,radius:m.radius,radiusAll:m.radiusAll,radiusBottom:m.radiusBottom,radiusLeft:m.radiusLeft,radiusRight:m.radiusRight,radiusTop:m.radiusTop,bars:i.map(function(e,t){var n,r=u(e);if(!xz(r))return null;var i=c(e);if(!xz(i))return null;var a=d(e);if(!xz(a))return null;var s=f(e);return xz(s)?{key:o+"-"+t,x:r,y:i,width:a,height:s,fill:null!=(n=null==g?void 0:g(e,t))?n:p(o)}:null}).filter(function(e){return e})}});return A.createElement("g",{className:"visx-bar-group"},P.map(function(e){return e&&A.createElement(o,wJ({horizontal:v,xScale:b,yScale:x},e,_,{key:e.key}))}))}w0.propTypes={children:p4().node.isRequired,padding:p4().number,sortBars:p4().func};var w1=n(10897),w2=function(e){return!!(null==e?void 0:e.includes("url("))},w4=function(e){return w2(e)?"rgba(0,0,0,0.1)":e},w3=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"],w5=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"];function w6(){return(w6=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function w7(e){return{x:e.x,y:e.y,width:e.width,height:e.height,fill:w4(e.fill),opacity:1}}function w9(e){var t=e.bars,n=(e.xScale,e.yScale,e.horizontal,e.radius),r=e.radiusAll,i=e.radiusTop,o=e.radiusRight,a=e.radiusBottom,s=e.radiusLeft,l=w8(e,w3);return A.createElement(A.Fragment,null,t.map(function(e){var t=e.key,u=e.fill,c=e.x,d=e.y,f=e.width,h=e.height;return A.createElement(w1.Z,{key:t,x:c,y:d,width:f,height:h,radius:n,all:r,top:i,right:o,bottom:a,left:s},function(e){var t=e.path;return A.createElement(xQ,w6({className:"visx-bar visx-bar-rounded",d:t,fill:u},l))})}))}function je(e){var t,n,r,i=e.bars,o=e.xScale,a=e.yScale,s=e.horizontal,l=(e.radius,e.radiusAll,e.radiusTop,e.radiusRight,e.radiusBottom,e.radiusLeft,w8(e,w5)),u=xd(i,w6({},(n=(t={horizontal:s,scale:s?o:a}).scale,r=!!t.horizontal,(0,A.useMemo)(function(){var e=x3(n);function t(t){var n=t.x,i=t.y,o=t.width,a=t.height;return{x:r?null!=e?e:0:n,y:r?i:null!=e?e:0,width:r?0:o,height:r?a:0,fill:w4(t.fill),opacity:0}}return{unique:!0,from:t,leave:t,enter:w7,update:w7,keys:function(e){return e.key}}},[n,r])))),c=!!(l.onFocus||l.onBlur);return A.createElement(A.Fragment,null,u(function(e,t,n){var r=e.x,i=e.y,o=e.width,a=e.height,s=e.fill,u=e.opacity,d=n.key;return null==t||null==d?null:A.createElement(xT.rect,w6({key:d,tabIndex:c?0:void 0,className:"visx-bar",x:r,y:i,width:o,height:a,fill:w2(t.fill)?t.fill:s,opacity:u},l))}))}function jt(e){return null==e.radius?A.createElement(je,e):A.createElement(w9,w6({},e,{radius:e.radius}))}function jn(){return(jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ji),w=(0,A.useContext)(xZ),j=w.colorScale,k=w.horizontal,E=w.theme,S=w.innerWidth,_=w.innerHeight,C=(0,A.useMemo)(function(){return x4(g,v)},[g,v]),O=(0,A.useMemo)(function(){return x4(b,y)},[b,y]),M=xF(k?b:g)||(k?void 0===_?0:_:void 0===S?0:S)/s.length*(1-Math.min(1,Math.max(0,void 0===o?.1:o))),T=(0,A.useMemo)(function(){return g?x3(g):0},[g]),P=(0,A.useMemo)(function(){return b?x3(b):0},[b]),N=null!=(t=null!=(n=null==j?void 0:j(l))?n:null==E?void 0:null==(r=E.colors)?void 0:r[0])?t:"#222",R=(0,A.useMemo)(function(){var e=k?0:-M/2,t=k?-M/2:0;return s.map(function(n,r){var i,o=C(n)+e;if(!xz(o))return null;var s=O(n)+t;if(!xz(s))return null;var l=k?o-T:s-P;return xz(l)?{key:""+r,x:k?T+Math.min(0,l):o,y:k?s:P+Math.min(0,l),width:k?Math.abs(l):M,height:k?M:Math.abs(l),fill:null!=(i=null==a?void 0:a(n,r))?i:N}:null}).filter(function(e){return e})},[M,N,a,s,C,O,k,T,P]),D="BARSERIES_EVENT_SOURCE-"+l,L=wf({dataKey:l,enableEvents:void 0===m||m,onBlur:u,onFocus:c,onPointerMove:d,onPointerOut:f,onPointerUp:h,onPointerDown:p,source:D,allowedSources:[x5,D]});return A.createElement("g",{className:"vx-bar-series"},A.createElement(i,jo({bars:R,horizontal:k,xScale:g,yScale:b},L,x)))}ja.propTypes={barPadding:p4().number,colorAccessor:p4().func};var js=x2(ja),jl=["colorAccessor"];function ju(){return(ju=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jl);return A.createElement(js,ju({},n,{colorAccessor:t,BarsComponent:jt}))}var jd=n(15590);function jf(){return(jf=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jy),i=(0,A.useCallback)(function(e){return A.createElement(jg,jb({},e,{renderGlyph:n}))},[n]);return A.createElement(wm,jb({},r,{renderGlyphs:i}))}var jw=n(93353),jj=n(63962),jk=["rows","columns","GridRowsComponent","GridColumnsComponent"];function jE(){return(jE=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jk),l=(0,A.useContext)(xZ),u=l.theme,c=l.xScale,d=l.yScale,f=l.margin,h=l.innerWidth,p=l.innerHeight,m=null==u?void 0:u.gridStyles;return A.createElement(A.Fragment,null,n&&d&&null!=h&&A.createElement(o,jE({left:null==f?void 0:f.left,lineStyle:m,width:h,scale:d},s)),i&&c&&null!=p&&A.createElement(a,jE({top:null==f?void 0:f.top,lineStyle:m,height:p,scale:c},s)))}jS.propTypes={rows:p4().bool,columns:p4().bool};var j_=["animationTrajectory"];function jC(){return(jC=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,j_),r=(0,A.useMemo)(function(){return function(e){return A.createElement(jw.Z,jC({},e,{animationTrajectory:t}))}},[t]),i=(0,A.useMemo)(function(){return function(e){return A.createElement(jj.Z,jC({},e,{animationTrajectory:t}))}},[t]);return A.createElement(jS,jC({GridRowsComponent:r,GridColumnsComponent:i},n))}var jM=["colorAccessor","curve","data","dataKey","onBlur","onFocus","onPointerMove","onPointerOut","onPointerUp","onPointerDown","enableEvents","xAccessor","xScale","yAccessor","yScale","PathComponent"];function jT(){return(jT=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jM),j=(0,A.useContext)(xZ),k=j.colorScale,E=j.theme,S=(0,A.useMemo)(function(){return x4(v,m)},[v,m]),_=(0,A.useMemo)(function(){return x4(y,g)},[y,g]),C=(0,A.useCallback)(function(e){return xz(v(m(e)))&&xz(y(g(e)))},[v,m,y,g]),O=null!=(t=null!=(n=null==k?void 0:k(s))?n:null==E?void 0:null==(r=E.colors)?void 0:r[0])?t:"#222",M="LINESERIES_EVENT_SOURCE-"+s,T=wf({dataKey:s,enableEvents:void 0===p||p,onBlur:l,onFocus:u,onPointerMove:c,onPointerOut:d,onPointerUp:f,onPointerDown:h,source:M,allowedSources:[x5,M]}),P=!!(u||l),N=(0,A.useCallback)(function(e){var t=e.glyphs;return P?t.map(function(e){return A.createElement(A.Fragment,{key:e.key},wv(jT({},e,{color:"transparent",onFocus:T.onFocus,onBlur:T.onBlur})))}):null},[P,T.onFocus,T.onBlur]);return A.createElement(A.Fragment,null,A.createElement(x0.Z,jT({x:S,y:_,defined:C,curve:o},w),function(e){var t,n=e.path;return A.createElement(x,jT({stroke:null!=(t=null==i?void 0:i(s))?t:O,strokeWidth:2,fill:"transparent",strokeLinecap:"round"},w,{d:n(a)||""},T))}),P&&A.createElement(wp,{dataKey:s,data:a,xAccessor:m,yAccessor:g,xScale:v,yScale:y,renderGlyphs:N}))}jA.propTypes={colorAccessor:p4().func};var jP=x2(jA);function jN(){return(jN=Object.assign?Object.assign.bind():function(e){for(var t=1;tjZ.every(n=>e[n]===t[n]);function jz(e,t){return(jz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var jV=function(e){function t(){return e.apply(this,arguments)||this}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,jz(t,e);var n=t.prototype;return n.componentWillUnmount=function(){this.node&&document.body&&(document.body.removeChild(this.node),delete this.node)},n.render=function(){return(this.node||"undefined"==typeof document||(this.node=document.createElement("div"),null!=this.props.zIndex&&(this.node.style.zIndex=""+this.props.zIndex),document.body.append(this.node)),this.node)?tg.createPortal(this.props.children,this.node):null},t}(A.PureComponent);jV.propTypes={zIndex:p4().oneOfType([p4().number,p4().string])};var jI=["detectBounds","zIndex"],jB=["left","top","detectBounds","zIndex"];function jH(){return(jH=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var jW=["debounce","detectBounds","horizontalCrosshairStyle","glyphStyle","renderTooltip","renderGlyph","resizeObserverPolyfill","scroll","showDatumGlyph","showHorizontalCrosshair","showSeriesGlyphs","showVerticalCrosshair","snapTooltipToDatumX","snapTooltipToDatumY","verticalCrosshairStyle","zIndex"],jq=["x","y"];function j$(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function jK(){return(jK=Object.assign?Object.assign.bind():function(e){for(var t=1;t(f.current=!0,()=>void(f.current=!1)));let[h,p,m]=(0,A.useMemo)(()=>{let e=()=>{if(!u.current.element)return;let{left:e,top:t,width:n,height:r,bottom:i,right:a,x:s,y:c}=u.current.element.getBoundingClientRect(),d={left:e,top:t,width:n,height:r,bottom:i,right:a,x:s,y:c};u.current.element instanceof HTMLElement&&o&&(d.height=u.current.element.offsetHeight,d.width=u.current.element.offsetWidth),Object.freeze(d),f.current&&!jF(u.current.lastBounds,d)&&l(u.current.lastBounds=d)};return[e,d?jL()(e,d):e,c?jL()(e,c):e]},[l,o,c,d]);function v(){u.current.scrollContainers&&(u.current.scrollContainers.forEach(e=>e.removeEventListener("scroll",m,!0)),u.current.scrollContainers=null),u.current.resizeObserver&&(u.current.resizeObserver.disconnect(),u.current.resizeObserver=null)}function g(){u.current.element&&(u.current.resizeObserver=new a(m),u.current.resizeObserver.observe(u.current.element),r&&u.current.scrollContainers&&u.current.scrollContainers.forEach(e=>e.addEventListener("scroll",m,{capture:!0,passive:!0})))}return t=!!r,(0,A.useEffect)(()=>{if(t)return window.addEventListener("scroll",m,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",m,!0)},[m,t]),(0,A.useEffect)(()=>(window.addEventListener("resize",p),()=>void window.removeEventListener("resize",p)),[p]),(0,A.useEffect)(()=>{v(),g()},[r,m,p]),(0,A.useEffect)(()=>v,[]),[e=>{e&&e!==u.current.element&&(v(),u.current.element=e,u.current.scrollContainers=function e(t){let n=[];if(!t||t===document.body)return n;let{overflow:r,overflowX:i,overflowY:o}=window.getComputedStyle(t);return[r,i,o].some(e=>"auto"===e||"scroll"===e)&&n.push(t),[...n,...e(t.parentElement)]}(e),g())},s,h]}(jU(ei,jI)))[0],ec=el[1],ed=el[2],ef=(0,A.useMemo)(function(){return function(e){var t=e.left,n=e.top,r=e.detectBounds,i=e.zIndex,o=jU(e,jB),a=null==i?es:i,s=(null==r?ea:r)?mC:my,l=(void 0===t?0:t)+(ec.left||0)+window.scrollX,u=(void 0===n?0:n)+(ec.top||0)+window.scrollY;return A.createElement(jV,{zIndex:a},A.createElement(s,jH({left:l,top:u},o)))}},[ea,es,ec.left,ec.top]),{containerRef:eu,containerBounds:ec,forceRefreshBounds:ed,TooltipInPortal:ef}),L=D.containerRef,Z=D.TooltipInPortal,F=D.forceRefreshBounds,z=(0,A.useCallback)(function(e){var t;L(null!=(t=null==e?void 0:e.parentElement)?t:null)},[L]),V=null!=R&&R.tooltipOpen?o(jK({},R,{colorScale:S})):null,I=(null==R?void 0:R.tooltipOpen)&&null!=V,B=(0,A.useRef)(!1);(0,A.useEffect)(function(){I&&!B.current&&F(),B.current=I},[I,F]);var H=null==R?void 0:R.tooltipLeft,U=null==R?void 0:R.tooltipTop,W=T?xF(T):0,q=P?xF(P):0,$=(0,A.useCallback)(function(e,t){var n,r,i=null==N?void 0:N.get(e),o=null==i?void 0:i.xAccessor,a=null==i?void 0:i.yAccessor;return{left:T&&o?null!=(n=Number(T(o(t)))+W/2)?n:0:void 0,top:P&&a?null!=(r=Number(P(a(t)))+q/2)?r:0:void 0}},[N,W,q,T,P]),K=null==R?void 0:null==(eh=R.tooltipData)?void 0:eh.nearestDatum,Y=null!=(ep=null==K?void 0:K.key)?ep:"";if(I&&K&&(y||x)){var G=$(Y,K.datum),X=G.left,Q=G.top;H=y&&xz(X)?X:H,U=x&&xz(Q)?Q:U}var J=[];if(I&&(void 0!==c&&c||p)){var ee=Number(null!=(e_=null==i?void 0:i.radius)?e_:4);if(p)Object.values(null!=(eC=null==R?void 0:null==(eO=R.tooltipData)?void 0:eO.datumByKey)?eC:{}).forEach(function(e){var t,n,r,o=e.key,a=e.datum,s=e.index,l=null!=(t=null!=(n=null==S?void 0:S(o))?n:null==_?void 0:null==(r=_.htmlLabel)?void 0:r.color)?t:"#222",u=$(o,a),c=u.left,d=u.top;xz(c)&&xz(d)&&J.push({key:o,color:l,datum:a,index:s,size:ee,x:c,y:d,glyphStyle:i,isNearestDatum:!!K&&K.key===o})});else if(K){var et=$(Y,K.datum),en=et.left,er=et.top;if(xz(en)&&xz(er)){var ei,eo,ea,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,eb,ex,ew,ej,ek,eE,eS,e_,eC,eO,eM,eT,eA,eP,eN,eR,eD=null!=(eM=null!=(eT=null!=(eA=null!=(eP=Y&&(null==S?void 0:S(Y)))?eP:null)?eA:null==_?void 0:null==(eN=_.gridStyles)?void 0:eN.stroke)?eT:null==_?void 0:null==(eR=_.htmlLabel)?void 0:eR.color)?eM:"#222";J.push({key:Y,color:eD,datum:K.datum,index:K.index,size:ee,x:en,y:er,glyphStyle:i,isNearestDatum:!0})}}}return A.createElement(A.Fragment,null,A.createElement("svg",{ref:z,style:jG}),I&&A.createElement(A.Fragment,null,v&&A.createElement(Z,{className:"visx-crosshair visx-crosshair-vertical",left:H,top:null==M?void 0:M.top,offsetLeft:0,offsetTop:0,detectBounds:!1,style:jY},A.createElement("svg",{width:"1",height:C,overflow:"visible"},A.createElement("line",jK({x1:0,x2:0,y1:0,y2:C,strokeWidth:1.5,stroke:null!=(em=null!=(ev=null==_?void 0:null==(eg=_.gridStyles)?void 0:eg.stroke)?ev:null==_?void 0:null==(ey=_.htmlLabel)?void 0:ey.color)?em:"#222"},w)))),f&&A.createElement(Z,{className:"visx-crosshair visx-crosshair-horizontal",left:null==M?void 0:M.left,top:U,offsetLeft:0,offsetTop:0,detectBounds:!1,style:jY},A.createElement("svg",{width:O,height:"1",overflow:"visible"},A.createElement("line",jK({x1:0,x2:O,y1:0,y2:0,strokeWidth:1.5,stroke:null!=(eb=null!=(ex=null==_?void 0:null==(ew=_.gridStyles)?void 0:ew.stroke)?ex:null==_?void 0:null==(ej=_.htmlLabel)?void 0:ej.color)?eb:"#222"},r)))),J.map(function(e,t){var n=e.x,r=e.y,i=j$(e,jq);return A.createElement(Z,{key:t,className:"visx-tooltip-glyph",left:n,top:r,offsetLeft:0,offsetTop:0,detectBounds:!1,style:jY},A.createElement("svg",{overflow:"visible"},s(jK({x:0,y:0},i))))}),A.createElement(Z,jK({left:H,top:U,style:jK({},mg,{background:null!=(ek=null==_?void 0:_.backgroundColor)?ek:"white",boxShadow:"0 1px 2px "+(null!=_&&null!=(eE=_.htmlLabel)&&eE.color?(null==_?void 0:null==(eS=_.htmlLabel)?void 0:eS.color)+"55":"#22222255")},null==_?void 0:_.htmlLabel)},k),V)))}function j0(e){var t=(0,A.useContext)(x6);return null!=t&&t.tooltipOpen?A.createElement(jJ,e):null}jX.propTypes={isNearestDatum:p4().bool.isRequired},jJ.propTypes={renderTooltip:p4().func.isRequired,renderGlyph:p4().func,snapTooltipToDatumX:p4().bool,snapTooltipToDatumY:p4().bool,showVerticalCrosshair:p4().bool,showHorizontalCrosshair:p4().bool,showDatumGlyph:p4().bool,showSeriesGlyphs:p4().bool},j0.propTypes={renderTooltip:p4().func.isRequired,renderGlyph:p4().func,snapTooltipToDatumX:p4().bool,snapTooltipToDatumY:p4().bool,showVerticalCrosshair:p4().bool,showHorizontalCrosshair:p4().bool,showDatumGlyph:p4().bool,showSeriesGlyphs:p4().bool};var j1=n(70390);function j2(e){var t=e.children,n=(0,A.useMemo)(function(){var e;return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map(function(e){e(n)}),(e.get("*")||[]).slice().map(function(e){e(t,n)})}}},[]);return A.createElement(x8.Provider,{value:n},t)}function j4(){return(j4=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(t,mh);return mp({},e(n),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:e.tooltipLeft,tooltipTop:e.tooltipTop,tooltipData:e.tooltipData})},[r]),o=(0,A.useCallback)(function(){return r({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})},[r]),{tooltipOpen:n.tooltipOpen,tooltipLeft:n.tooltipLeft,tooltipTop:n.tooltipTop,tooltipData:n.tooltipData,updateTooltip:r,showTooltip:i,hideTooltip:o}),c=u.tooltipOpen,d=u.tooltipLeft,f=u.tooltipTop,h=u.tooltipData,p=u.updateTooltip,m=u.hideTooltip,v=(0,A.useRef)(null),g=(0,A.useRef)(function(e){var t=e.svgPoint,n=e.index,r=e.key,i=e.datum,o=e.distanceX,a=e.distanceY;v.current&&(v.current.cancel(),v.current=null);var s=Math.sqrt(Math.pow(xz(o)?o:1/0,2)+Math.pow(xz(a)?a:1/0,2));p(function(e){var o,a,l,u=e.tooltipData,c=null!=u&&u.nearestDatum&&xz(u.nearestDatum.distance)?u.nearestDatum.distance:1/0;return{tooltipOpen:!0,tooltipLeft:null==t?void 0:t.x,tooltipTop:null==t?void 0:t.y,tooltipData:{nearestDatum:(null!=(o=null==u?void 0:null==(a=u.nearestDatum)?void 0:a.key)?o:"")!==r&&c0&&o>0&&y({width:m,height:o,margin:l})},[y,m,o,l]);var w=x9({source:x5});return(wd({dataKey:"nearest"===(void 0===h?"nearest":h)?wc:wu,onPointerMove:u,onPointerOut:c,onPointerUp:d,onPointerDown:f,allowedSources:ks}),y)?null==m||null==o?A.createElement(j1.Z,null,function(t){return A.createElement(kl,ko({},e,{width:null==e.width?t.width:e.width,height:null==e.height?t.height:e.height}))}):null==b?A.createElement(j3,null,A.createElement(kl,e)):null==x?A.createElement(j2,null,A.createElement(kl,e)):m>0&&o>0?A.createElement("svg",{width:m,height:o,"aria-label":void 0===t?"XYChart":t},i,r&&A.createElement("rect",ko({x:l.left,y:l.top,width:m-l.left-l.right,height:o-l.top-l.bottom,fill:"transparent"},w))):null:v&&g?A.createElement(ki,{xScale:v,yScale:g,theme:p,initialDimensions:{width:m,height:o,margin:l},horizontal:a},A.createElement(kl,e)):(console.warn("[@visx/xychart] XYChart: When no DataProvider is available in context, you must pass xScale & yScale config to XYChart."),null)}function ku(e){return A.createElement(wx,e)}function kc(e){return A.createElement(wB,e)}function kd(){return(kd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function kg(e){var t=e.bars,n=(e.horizontal,e.xScale,e.yScale,e.radius),r=e.radiusAll,i=e.radiusTop,o=e.radiusRight,a=e.radiusBottom,s=e.radiusLeft,l=kv(e,kh),u=!!(l.onFocus||l.onBlur);return A.createElement(A.Fragment,null,t.map(function(e){var t=e.key,c=kv(e,kp);return null==n?A.createElement("rect",km({key:t,className:"visx-bar",tabIndex:u?0:void 0},c,l)):A.createElement(w1.Z,km({key:t,className:"visx-bar",tabIndex:u?0:void 0,radius:n,all:r,top:i,right:o,bottom:a,left:s},c,l))}))}function ky(){return(ky=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,kx);return A.createElement(js,kw({},n,{colorAccessor:t,BarsComponent:kg}))};function kk(){return(kk=Object.assign?Object.assign.bind():function(e){for(var t=1;ti?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r1),t}),(0,kF.Z)(e,(0,kU.Z)(e),n),r&&(n=(0,kA.Z)(n,7,kV));for(var i=t.length;i--;)kZ(n,t[i]);return n},(0,kH.Z)((0,kB.Z)(h,void 0,function(e){return(null==e?0:e.length)?(0,kI.Z)(e,1):[]}),h+""));function kq(e){return 6e4*e}function k$(e){return 864e5*e}function kK(e){return k$(7*e)}function kY(e){return k$(30*e)}function kG(e){return k$(365*e)}function kX(e){return e/1e3/1e3/1e3/60}function kQ(e){return e/1e3/1e3/1e3/60/60/24}function kJ(e){return 864e11*e}function k0(e){return e/24}function k1(e){return 6e10*e}function k2(e){return e/60}function k4(e){return 1e3*e}function k3(e){let{initialChartType:t,chartType:n,setChartType:r,curveType:i,setCurveType:o,isLine:a,isStack:s,stackOffset:l,setStackOffset:u,xAxisOrientation:c,setXAxisOrientation:d,yAxisOrientation:f,setYAxisOrientation:h}=e,p="line"===t,m="area"===t;return(0,T.jsx)(ux,{trigger:(0,T.jsx)(lv,{tip:"Configure chart",variant:"gray",size:"small",children:(0,T.jsx)(lg.shL,{})}),title:"Chart settings",contentVariants:{className:"max-h-[70vh]"},children:(0,T.jsxs)("div",{className:"grid grid-cols-2 gap-x-6 gap-y-10 py-4",children:[(0,T.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,T.jsx)(nr,{weight:"semibold",children:"Graph type"}),(0,T.jsxs)(fd,{value:n,onValueChange:e=>r(e),className:"flex flex-col gap-1",children:[(0,T.jsx)(fc,{value:"line",children:"Line"}),(0,T.jsx)(fc,{disabled:p||m,value:"areastack",children:"Area Stack"}),(0,T.jsx)(fc,{disabled:p||m,value:"barstack",children:"Bar Stack"}),(0,T.jsx)(fc,{disabled:p,value:"area",children:"Area"}),(0,T.jsx)(fc,{disabled:p,value:"bargroup",children:"Bar Group"})]})]}),(0,T.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,T.jsx)(nr,{weight:"semibold",children:"Stack series offset"}),(0,T.jsxs)(fd,{value:l,onValueChange:e=>u(e),className:"flex flex-col gap-1",children:[(0,T.jsxs)(fc,{disabled:!s,value:"none",children:["None",(0,T.jsx)(f6,{children:"zero-baseline"})]}),(0,T.jsxs)(fc,{disabled:!s,value:"diverging",children:["Diverging",(0,T.jsx)(f6,{children:"non zero-baseline"})]}),(0,T.jsxs)(fc,{disabled:!s,value:"expand",children:["Expand",(0,T.jsx)(f6,{children:"values sum to 1"})]}),(0,T.jsxs)(fc,{disabled:!s,value:"wiggle",children:["Wiggle",(0,T.jsx)(f6,{children:"stream graph"})]})]})]}),(0,T.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,T.jsx)(nr,{weight:"semibold",children:"Curve shape"}),(0,T.jsxs)(fd,{value:i,onValueChange:e=>o(e),className:"flex flex-col gap-1",children:[(0,T.jsx)(fc,{disabled:!a,value:"linear",children:"Linear"}),(0,T.jsx)(fc,{disabled:!a,value:"cardinal",children:"Cardinal"}),(0,T.jsx)(fc,{disabled:!a,value:"step",children:"Step"})]})]}),(0,T.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,T.jsx)(nr,{weight:"semibold",children:"Axes"}),(0,T.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,T.jsxs)(fd,{value:c,onValueChange:e=>d(e),className:"flex flex-col gap-1",children:[(0,T.jsx)(fc,{value:"bottom",children:"Bottom"}),(0,T.jsx)(fc,{value:"top",children:"Top"})]}),(0,T.jsxs)(fd,{value:f,onValueChange:e=>h(e),className:"flex flex-col gap-2",children:[(0,T.jsx)(fc,{value:"left",children:"Left"}),(0,T.jsx)(fc,{value:"right",children:"Right"})]})]})]})]})})}let k5=(0,A.forwardRef)((e,t)=>{let{className:n}=e;return(0,T.jsxs)("div",{ref:t,className:(0,eC.cx)("flex gap-1 items-center",n),children:[(0,T.jsx)(k6,{}),(0,T.jsx)(k6,{}),(0,T.jsx)(k6,{})]})});function k6(){return(0,T.jsx)("div",{className:"w-1 h-1 bg-slate-400 dark:bg-slate-200 rounded-full animate-pulselight [&:nth-child(2)]:animation-delay-500 [&:nth-child(3)]:animation-delay-1000"})}function k8(e){let{id:t,height:n,data:r,config:i,actionsLeft:o,isLoading:a,actionsRight:s,emptyState:l,variant:u="panel",allowConfiguration:c=!0}=e,d=function(e,t,n){let[r,i]=(0,A.useState)(!(0,f1.Tb)()&&!n.disableAnimations),{resolvedTheme:o}=(0,pK.F)(),a=(0,A.useMemo)(()=>"dark"===o?gN:gP,[o]),[s,l]=(0,A.useState)("center"),[u,c]=(0,A.useState)([!1,!1]),[d,f]=u,[h,p]=(0,A.useState)("bottom"),[m,v]=(0,A.useState)("right"),[g,y]=(0,A.useState)(!0),[b,x]=(0,A.useState)(!0),[w,j]=(0,A.useState)(!1),[k,E]=(0,A.useState)(!0),[S,_]=(0,A.useState)(!0),C=n.chartType||"areastack",O=n.curveType||"linear",M=n.stackOffset||"none",[P,N]=(0,A.useState)(C),[R,D]=(0,A.useState)(O),L=["line","area","areastack"].includes(P),Z=["barstack","areastack"].includes(P),[F,z]=(0,A.useState)(M),V=a.xyChartTheme.gridStyles.stroke,[I,B]=(0,A.useState)(!1),[H,U]=(0,A.useState)("star"),W=(0,A.useCallback)(e=>{let{x:t,y:n,size:r,color:i,onPointerMove:o,onPointerOut:a,onPointerUp:s,isNearestDatum:l}=e,u={onPointerMove:o,onPointerOut:a,onPointerUp:s};return"star"===H?(0,T.jsx)(gm,{left:t,top:n,stroke:V,fill:i,size:10*r,...u}):"circle"===H?(0,T.jsx)(gy,{left:t,top:n,stroke:V,fill:i,r:r,...u}):"cross"===H?(0,T.jsx)(gj,{left:t,top:n,stroke:V,fill:i,size:10*r,...u}):(0,T.jsx)("text",{x:t,y:n,dx:"-0.75em",dy:"0.25em",fontSize:14,...u,children:l?"\uD83C\uDF4D":"\uD83C\uDF4C"})},[H,V]),q=(0,A.useMemo)(()=>{if(t.sort((e,t)=>e.timestamp>t.timestamp?1:-1),0===t.length)return[];let e=t[t.length-1];return"barstack"!==P&&"bargroup"!==P?[...t,{...e,timestamp:e.timestamp+k$(1)}]:t},[P,t]),$=(0,A.useMemo)(()=>{if(q.length<2)return 0;let e=[q[0].timestamp,q[q.length-1].timestamp],t=new Date().getTime();return t>e[0]&&tObject.keys(kW(t[0],"timestamp")),[t]),Y=(0,A.useMemo)(()=>n.enabledGraph||K,[K,n]),G=(0,A.useMemo)(()=>n.enabledTip||K,[K,n]),X=(0,A.useMemo)(()=>({x:K.reduce((e,t)=>({...e,[t]:e=>e.timestamp}),{}),y:K.reduce((e,t)=>({...e,[t]:e=>e[t]}),{}),date:e=>e.timestamp}),[K]),Q=(0,A.useMemo)(()=>({x:{type:"band",paddingInner:L?1:.3},y:{type:"linear"}}),[L]),J=(0,A.useMemo)(()=>"cardinal"===R&&gk.ZP||"step"===R&&m3.ZP||gE.Z,[R]),ee=(0,A.useMemo)(()=>({top:30,bottom:"top"===h?0:20,right:"right"===m?60:0,left:"left"===m?60:0}),[h,m]);return{id:e,accessors:X,animationTrajectory:s,config:n,scales:Q,data:q,curve:J,chartData:t,numTicks:4,isLine:L,isStack:Z,todayOffset:$,initialChartType:C,initialCurveType:O,initialStackOffset:M,chartType:P,curveType:R,keys:K,enabledGraph:Y,enabledTip:G,renderBarGroup:"bargroup"===P,renderBarStack:"barstack"===P,enableTooltipGlyph:I,renderTooltipGlyph:W,renderAreaSeries:"area"===P,renderAreaStack:"areastack"===P,renderLineSeries:"line"===P,sharedTooltip:S,showGridColumns:f,showGridRows:d,showHorizontalCrosshair:w,showTooltip:g,showVerticalCrosshair:b,snapTooltipToDatum:!Z&&k,stackOffset:F,theme:a,margin:ee,xAxisOrientation:h,yAxisOrientation:m,setUseAnimatedComponents:i,setAnimationTrajectory:l,setGridProps:c,setXAxisOrientation:p,setYAxisOrientation:v,setShowTooltip:y,setShowVerticalCrosshair:x,setShowHorizontalCrosshair:j,setSnapTooltipToDatum:E,setSharedTooltip:_,setChartType:N,setCurveType:D,setStackOffset:z,setEnableTooltipGlyph:B,setTooltipGlyphComponent:U,...r?{Annotation:xK,AreaSeries:wj,AreaStack:wU,Axis:wG,BarGroup:jr,BarSeries:jc,BarStack:jm,GlyphSeries:jx,Grid:jO,LineSeries:jR,Tooltip:j0,XYChart:kl}:{AreaSeries:ku,AreaStack:kc,Axis:kf,BarGroup:kb,BarSeries:kj,BarStack:kE,Grid:kO,LineSeries:kM,Tooltip:j0,XYChart:kl}}}(t,r,i),f=(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)("div",{className:"flex gap-2 absolute top-3 right-4",children:[s,"panel"===u&&c&&(0,T.jsx)(k3,{...d})]}),(0,T.jsx)("div",{className:"flex gap-2 absolute top-3 left-4",children:o}),(0,T.jsx)(go,{children:e=>{let{width:t,height:n}=e;return a?(0,T.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,T.jsx)(k5,{className:"scale-150"})}):0===r.length&&l?l:(0,T.jsx)(gs,{...d,width:t,height:n})}})]});return"panel"===u?(0,T.jsx)(na,{className:"relative p-px",style:{height:n},children:f}):(0,T.jsx)("div",{className:"relative p-px",style:{height:n},children:f})}let k7={data:""},k9=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||k7,Ee=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Et=/\/\*[^]*?\*\/|\s\s+|\n/g,En=(e,t)=>{let n="",r="",i="";for(let o in e){let a=e[o];"@"==o[0]?"i"==o[1]?n=o+" "+a+";":r+="f"==o[1]?En(a,o):o+"{"+En(a,"k"==o[1]?"":t)+"}":"object"==typeof a?r+=En(a,t?t.replace(/([^,])+/g,e=>o.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):o):null!=a&&(o=o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=En.p?En.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},Er={},Ei=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+Ei(e[n]);return t}return e},Eo=(e,t,n,r,i)=>{var o;let a=Ei(e),s=Er[a]||(Er[a]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(a));if(!Er[s]){let t=a!==e?e:(e=>{let t,n=[{}];for(;t=Ee.exec(e.replace(Et,""));)t[4]?n.shift():t[3]?n.unshift(n[0][t[3]]=n[0][t[3]]||{}):n[0][t[1]]=t[2];return n[0]})(e);Er[s]=En(i?{["@keyframes "+s]:t}:t,n?"":"."+s)}return o=Er[s],-1==t.data.indexOf(o)&&(t.data=r?o+t.data:t.data+o),s},Ea=(e,t,n)=>e.reduce((e,r,i)=>{let o=t[i];if(o&&o.call){let e=o(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":En(e,""):!1===e?"":e}return e+r+(null==o?"":o)},"");function Es(e){let t=this||{},n=e.call?e(t.p):e;return Eo(n.unshift?n.raw?Ea(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,k9(t.target),t.g,t.o,t.k)}Es.bind({g:1});let El,Eu,Ec,Ed=Es.bind({k:1});function Ef(e,t){let n=this||{};return function(){let r=arguments;function i(o,a){let s=Object.assign({},o),l=s.className||i.className;n.p=Object.assign({theme:Eu&&Eu()},s),n.o=/ *go\d+/.test(l),s.className=Es.apply(n,r)+(l?" "+l:""),t&&(s.ref=a);let u=e;return e[0]&&(u=s.as||e,delete s.as),Ec&&u[0]&&Ec(s),El(u,s)}return t?t(i):i}}function Eh(){return(Eh=Object.assign||function(e){for(var t=1;t-1&&Ej.splice(e,1)}},[n]);var i=n.toasts.map(function(t){var n,r,i;return Eh({},e,e[t.type],t,{duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==(r=e)?void 0:r.duration)||ES[t.type],style:Eh({},e.style,null==(i=e[t.type])?void 0:i.style,t.style)})});return Eh({},n,{toasts:i})},EC=function(e){return function(t,n){var r,i=(void 0===(r=e)&&(r="blank"),Eh({createdAt:Date.now(),visible:!0,type:r,ariaProps:{role:"status","aria-live":"polite"},message:t,pauseDuration:0},n,{id:(null==n?void 0:n.id)||Ev()}));return EE({type:M.UPSERT_TOAST,toast:i}),i.id}},EO=function(e,t){return EC("blank")(e,t)};EO.error=EC("error"),EO.success=EC("success"),EO.loading=EC("loading"),EO.custom=EC("custom"),EO.dismiss=function(e){EE({type:M.DISMISS_TOAST,toastId:e})},EO.remove=function(e){return EE({type:M.REMOVE_TOAST,toastId:e})},EO.promise=function(e,t,n){var r=EO.loading(t.loading,Eh({},n,null==n?void 0:n.loading));return e.then(function(e){return EO.success(Em(t.success,e),Eh({id:r},n,null==n?void 0:n.success)),e}).catch(function(e){EO.error(Em(t.error,e),Eh({id:r},n,null==n?void 0:n.error))}),e};var EM=function(e){var t=E_(e),n=t.toasts,r=t.pausedAt;(0,A.useEffect)(function(){if(!r){var e=Date.now(),t=n.map(function(t){if(t.duration!==1/0){var n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(n<0){t.visible&&EO.dismiss(t.id);return}return setTimeout(function(){return EO.dismiss(t.id)},n)}});return function(){t.forEach(function(e){return e&&clearTimeout(e)})}}},[n,r]);var i=(0,A.useMemo)(function(){return{startPause:function(){EE({type:M.START_PAUSE,time:Date.now()})},endPause:function(){r&&EE({type:M.END_PAUSE,time:Date.now()})},updateHeight:function(e,t){return EE({type:M.UPDATE_TOAST,toast:{id:e,height:t}})},calculateOffset:function(e,t){var r,i=t||{},o=i.reverseOrder,a=void 0!==o&&o,s=i.gutter,l=void 0===s?8:s,u=i.defaultPosition,c=n.filter(function(t){return(t.position||u)===(e.position||u)&&t.height}),d=c.findIndex(function(t){return t.id===e.id}),f=c.filter(function(e,t){return t * {\n pointer-events: auto;\n }\n"]);return E9=function(){return e},e}g=A.createElement,En.p=void 0,El=g,Eu=void 0,Ec=void 0;var Se=function(e,t){var n=e.includes("top"),r=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return Eh({left:0,right:0,display:"flex",position:"absolute",transition:Eg()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY("+t*(n?1:-1)+"px)"},n?{top:0}:{bottom:0},r)},St=Es(E9()),Sn=function(e){var t=e.reverseOrder,n=e.position,r=void 0===n?"top-center":n,i=e.toastOptions,o=e.gutter,a=e.children,s=e.containerStyle,l=e.containerClassName,u=EM(i),c=u.toasts,d=u.handlers;return(0,A.createElement)("div",{style:Eh({position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none"},s),className:l,onMouseEnter:d.startPause,onMouseLeave:d.endPause},c.map(function(e){var n,i=e.position||r,s=Se(i,d.calculateOffset(e,{reverseOrder:t,gutter:o,defaultPosition:r})),l=e.height?void 0:(n=function(t){d.updateHeight(e.id,t.height)},function(e){e&&setTimeout(function(){n(e.getBoundingClientRect())})});return(0,A.createElement)("div",{ref:l,className:e.visible?St:"",key:e.id,style:s},"custom"===e.type?Em(e.message,e):a?a(e):(0,A.createElement)(E7,{toast:e,position:i}))}))};let Sr=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};EO((0,T.jsx)(nr,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200)):e}),Ss(t))},Si=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};EO(e,Ss(t))},So=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};EO.success((0,T.jsx)(nr,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200),"..."):e}),Ss(t))},Sa=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};EO.error((0,T.jsx)(nr,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200),"..."):e}),Ss(t))};function Ss(){let{className:e,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{position:"top-center",duration:6e3,className:(0,eC.cx)(no(),"font-sans font-normal","text-gray-1100 dark:text-white","max-w-[800px] overflow-hidden text-ellipsis","[&>div]:overflow-hidden","[&>div]:flex-1",e),success:{icon:(0,T.jsx)("div",{className:"!flex-none w-5",children:(0,T.jsx)(lg.tEK,{className:"w-5 text-green-600"})})},error:{icon:(0,T.jsx)("div",{className:"!flex-none w-5",children:(0,T.jsx)(lg.Jsc,{className:"w-5 text-red-600"})})},...t}}function Sl(){return(0,T.jsx)(Sn,{toastOptions:Ss()})}let Su=(e,t)=>{let n=t?"Copied ".concat(t," to clipboard"):"Copied to clipboard";Sr(n),navigator.clipboard.writeText(e)},Sc=(e,t,n)=>{Si(t,n),navigator.clipboard.writeText(e)};function Sd(e,t){return e?t&&e.length>t?"".concat(e.slice(0,t),"..."):"".concat(e.slice(0,t)):""}function Sf(e){return(e||"").replace(/^addr:/,"").replace(/^txid:/,"").replace(/^fcid:/,"").replace(/^h:/,"").replace(/^scoid:/,"").replace(/^sfoid:/,"").replace(/^key:/,"")}function Sh(e,t,n){return t?"".concat(e," ").concat(Sd(t,n)):"".concat(e)}function Sp(e,t){return"miner"===t?"minerPayout":"siafundClaim"===t?"siafundClaim":"contract"===t?"contractPayout":"foundation"===t?"foundationSubsidy":e.storageProofs&&e.storageProofs.length>0?"storageProof":e.fileContracts&&e.fileContracts.length>0&&e.fileContractRevisions&&e.fileContractRevisions.length>0?"contractRenewal":e.fileContractRevisions&&e.fileContractRevisions.length>0?"contractRevision":e.fileContracts&&e.fileContracts.length>0?"contractFormation":e.arbitraryData&&e.arbitraryData.length>0&&0===atob(e.arbitraryData[0]).indexOf("HostAnnouncement")?"hostAnnouncement":e.siafundOutputs&&e.siafundOutputs.length>0?"siafund":e.siacoinOutputs&&e.siacoinOutputs.length>0?"siacoin":void 0}let Sm={transaction:"transaction",contract:"contract",block:"block",output:"output",address:"address",hostIp:"host",hostPublicKey:"host",ip:"IP"},Sv={transaction:"transaction ID",contract:"contract ID",block:"block",output:"output ID",address:"address",hostIp:"host address",hostPublicKey:"host public key",ip:"IP"},Sg={siacoin:"siacoin transfer",siafund:"siafund transfer",contractFormation:"contract formation",contractRenewal:"contract renewal",contractRevision:"contract revision",contractPayout:"contract payout",storageProof:"storage proof",minerPayout:"miner payout",siafundClaim:"siafund claim",foundationSubsidy:"foundation subsidy",hostAnnouncement:"host announcement"};function Sy(e){return e?Sm[e]:void 0}function Sb(e){return e?Sg[e]:void 0}function Sx(e){return e&&["ip","hostIp"].includes(e)?20:12}function Sw(e){let{value:t,displayValue:n,type:r,label:i,href:o,maxLength:a,size:s,scaleSize:l,weight:u,color:c="contrast",className:d,siascanUrl:f}=e,h=i||(r?Sv[r]:void 0),p=a||Sx(r),m=Sf(t),v=n||m,g="".concat(null==v?void 0:v.slice(0,p)).concat(((null==v?void 0:v.length)||0)>p?"...":"");return(0,T.jsxs)("div",{className:(0,eC.cx)("flex items-center",d),children:[o?(0,T.jsx)(dd,{href:o,underline:"hover",size:s,scaleSize:l,color:c,weight:u,ellipsis:!0,children:g}):(0,T.jsx)(nr,{size:s,scaleSize:l,color:c,weight:u,ellipsis:!0,children:g}),(0,T.jsx)("div",{className:"ml-1 flex items-center",children:(0,T.jsx)(Sj,{cleanValue:m,label:h,size:s,siascanUrl:f,type:r})})]})}function Sj(e){var t;let{size:n,cleanValue:r,label:i,siascanUrl:o,type:a}=e;return(0,T.jsxs)(c4,{trigger:(0,T.jsx)(lv,{size:"none",variant:"ghost",children:(0,T.jsx)(lg.EMN,{className:"10"===n?"scale-75":"scale-90"})}),contentProps:{align:"end"},children:[(0,T.jsxs)(c3,{onSelect:e=>{Su(r,i)},onClick:e=>{e.stopPropagation()},children:[(0,T.jsx)(c6,{children:(0,T.jsx)(lg.olJ,{})}),"Copy to clipboard"]}),o&&a&&(t=a)&&["hostIp","hostPublicKey","contract","address","transaction","block"].includes(t)&&(0,T.jsx)(dd,{target:"_blank",href:function(e,t,n){switch(t){case"hostIp":case"hostPublicKey":return"".concat(e,"/host/").concat(n);case"contract":return"".concat(e,"/contract/").concat(n);case"transaction":return"".concat(e,"/tx/").concat(n);case"address":return"".concat(e,"/address/").concat(n);case"block":return"".concat(e,"/block/").concat(n);default:return""}}(o,a,r),className:"block w-full",underline:"none",children:(0,T.jsxs)(c3,{onClick:e=>{e.stopPropagation()},children:[(0,T.jsx)(c6,{children:(0,T.jsx)(lg.V8Q,{})}),"View on Siascan"]})})]})}function Sk(e){let{value:t,displayValue:n,type:r,href:i,maxLength:o,size:a,scaleSize:s,color:l="contrast",menu:u,className:c}=e,d=o||Sx(r),f=Sf(t),h=n||f,p="".concat(null==h?void 0:h.slice(0,d)).concat(((null==h?void 0:h.length)||0)>d?"...":"");return(0,T.jsxs)("div",{className:(0,eC.cx)("flex items-center",c),children:[i?(0,T.jsx)(dd,{href:i,underline:"hover",size:a,scaleSize:s,color:l,ellipsis:!0,children:p}):(0,T.jsx)(nr,{size:a,scaleSize:s,color:l,ellipsis:!0,children:p}),(0,T.jsx)("div",{className:"ml-1 flex items-center",children:u})]})}function SE(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:o="change"}=e,a=(0,v4.yF)(String(t),{units:"SF"});return(0,T.jsx)(lp,{content:(i?"".concat(i," "):"")+a,children:(0,T.jsxs)(nr,{size:n,scaleSize:r,weight:"medium",font:"mono",color:"change"===o?t>0?"green":t<0?"red":"subtle":"contrast",children:["change"===o&&t>0?"+":"",a]})})}function SS(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:o="change",color:a,fixed:s=3,dynamicUnits:l=!0,hastingUnits:u=!0,extendedSuffix:c,showTooltip:d=!0}=e,f=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",h=a||("change"===o?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast"),p=(0,T.jsxs)(nr,{size:n,scaleSize:r,weight:"medium",font:"mono",ellipsis:!0,color:h,children:["change"===o?"".concat(f).concat((0,v4.Vz)(t.absoluteValue(),{fixed:s,dynamicUnits:l})):(0,v4.Vz)(t,{fixed:s,dynamicUnits:l,hastingUnits:u}),(0,T.jsx)(nr,{size:"20",weight:"medium",font:"mono",ellipsis:!0,color:"subtle",children:c?"".concat(c):""})]});return d?(0,T.jsx)(lp,{content:(i?"".concat(i," "):"")+(0,v4.Vz)(t,{fixed:16,dynamicUnits:!1}),children:p}):p}function S_(e){let{sc:t,size:n,scaleSize:r,color:i,tooltip:o="",variant:a="change",fixed:s,fixedTip:l=20,showTooltip:u=!0}=e,c=(0,f2.BW)(),{settings:{currency:d}}=(0,f1.Hv)(),f=t.isZero()?"":t.isGreaterThan(0)&&"change"===a?"+":t.isLessThan(0)?"-":"",h=i||("change"===a?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast");if(!c.data)return null;let p=new(fX())(c.data.rates.sc[d.id]||1).times(t).div(1e24),m=void 0!==s?s:d.fixed,v=(0,T.jsx)(nr,{size:n,scaleSize:r,weight:"medium",font:"mono",ellipsis:!0,color:h,children:"".concat(f).concat(d.prefix).concat(SC(p.absoluteValue(),m))});return u?(0,T.jsx)(lp,{content:(o?"".concat(o," "):"")+"".concat(f).concat(d.prefix).concat(SC(p.absoluteValue(),l)),children:v}):v}function SC(e,t){let[n,r]=e.toFixed(t).split("."),i=new Intl.NumberFormat().format(parseInt(n));return r?"".concat(i).concat(Intl.NumberFormat().format(1.1).charAt(1)).concat(r):i}function SO(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:o="change",fixed:a=3,fixedFiat:s,fixedTipFiat:l,dynamicUnits:u=!0,hastingUnits:c=!0,extendedSuffix:d,showTooltip:f=!0,displayBoth:h=!1,displayBothDirection:p="column"}=e,{settings:{currencyDisplay:m}}=(0,f1.Hv)(),v=(0,f2.BW)(),g=(0,A.useMemo)(()=>(0,T.jsx)(SS,{value:t,size:n,color:h&&"row"===p&&"bothPreferFiat"===m?"subtle":void 0,scaleSize:r,tooltip:i,variant:o,fixed:a,dynamicUnits:u,hastingUnits:c,extendedSuffix:d,showTooltip:f}),[t,n,r,i,o,a,u,c,d,f,m,h,p]),y=(0,A.useMemo)(()=>(0,T.jsx)(S_,{sc:t,size:n,color:h&&"row"===p&&"bothPreferSc"===m?"subtle":void 0,scaleSize:r,tooltip:i,variant:o,fixed:s,fixedTip:l,dynamicUnits:u,hastingUnits:c,extendedSuffix:d,showTooltip:f}),[t,n,r,i,o,s,l,u,c,d,f,m,h,p]);return"sc"!==m&&v.data?"fiat"===m?y:"bothPreferSc"===m?h?(0,T.jsxs)("div",{className:"column"===p?"flex flex-col items-end":"flex gap-1",children:[g,y]}):g:"bothPreferFiat"===m?h?(0,T.jsxs)("div",{className:"column"===p?"flex flex-col items-end":"flex gap-1",children:[y,g]}):y:g:g}function SM(e){let{value:t,size:n="14",weight:r="semibold",tooltip:i="",variant:o="change",color:a,format:s}=e,l=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",u="change"===o?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast";return(0,T.jsx)(lp,{content:(i?"".concat(i," "):"")+s(t),children:(0,T.jsx)(nr,{size:n,weight:r,font:"mono",ellipsis:!0,color:a||u,children:"change"===o?"".concat(l).concat(s(t.absoluteValue())):s(t)})})}var ST=n(19510),SA=n(89930),SP=n(62875),SN=1/0,SR=function(e){var t,n=(t=e)?(t=(0,SP.Z)(t))===SN||t===-SN?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0,r=n%1;return n==n?r?n-r:n:0},SD=Math.min,SL=function(e,t){if((e=SR(e))<1||e>9007199254740991)return[];var n,r=4294967295,i=SD(e,4294967295);t="function"==typeof(n=t)?n:SA.Z,e-=4294967295;for(var o=(0,ST.Z)(i,t);++r(0,T.jsxs)("div",{className:(0,eC.cx)("relative flex gap-4 p-3.5",(0,eC.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:[(0,T.jsx)(hr,{className:"w-[60px] h-[50px]"}),(0,T.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,T.jsx)(hr,{className:"w-[90%] h-[20px]"}),(0,T.jsx)(hr,{className:"w-[140px] h-[14px]"})]})]},e))})}var SF=n(29193),Sz=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:kD(e,t,n)},SV=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),SI=function(e){return SV.test(e)},SB="\ud800-\udfff",SH="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",SU="\ud83c[\udffb-\udfff]",SW="[^"+SB+"]",Sq="(?:\ud83c[\udde6-\uddff]){2}",S$="[\ud800-\udbff][\udc00-\udfff]",SK="(?:"+SH+"|"+SU+")?",SY="[\\ufe0e\\ufe0f]?",SG="(?:\\u200d(?:"+[SW,Sq,S$].join("|")+")"+SY+SK+")*",SX=RegExp(SU+"(?="+SU+")|(?:"+[SW+SH+"?",SH,Sq,S$,"["+SB+"]"].join("|")+")"+(SY+SK+SG),"g"),SQ=n(50063),SJ=function(e){var t,n=SI(e=(0,SQ.Z)(e))?SI(t=e)?t.match(SX)||[]:t.split(""):void 0,r=n?n[0]:e.charAt(0),i=n?Sz(n,1).join(""):e.slice(1);return r.toUpperCase()+i};function S0(e){let{type:t,label:n,initials:r,href:i,src:o,shape:a}=e,s=(0,T.jsx)(lL,{interactive:!!i,fallback:r||t&&(t||n||"").split(" ").map(e=>e.charAt(0).toUpperCase).join(""),src:o,shape:a||(t&&"address"!==t&&"block"!==t?"circle":"square")}),l=i&&(0,T.jsx)(dd,{href:i,underline:"none",children:s}),u=l||s;return t?(0,T.jsx)(lp,{content:n||Sy(t),children:(0,T.jsx)("div",{className:"",children:u})}):u}function S1(e){let{label:t,type:n,avatar:r,avatarShape:i,initials:o,href:a,onClick:s,children:l}=e;return(0,T.jsxs)("div",{className:(0,eC.cx)("flex gap-4 p-4",(0,eC.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),onClick:s,children:[(0,T.jsx)(S0,{label:t,type:n,shape:i,src:r,initials:o||(n||t||"").split(" ").map(e=>e.charAt(0).toUpperCase()).join(""),href:a}),l]})}function S2(e){let t=e.sc,n=e.sf,r=e.hash&&(0,T.jsx)(Sw,{value:e.hash,type:e.type,label:e.label,siascanUrl:e.siascanUrl,href:e.href,color:"subtle"}),i=e.label||"transaction"===e.type&&e.txType&&Sb(e.txType)||Sy(e.type),o=!function(e){if(!e)return!1;try{return new URL(e),!0}catch(e){return!1}}(i)?SJ(i):i;return(0,T.jsx)(S1,{...e,children:(0,T.jsxs)("div",{className:"flex flex-col items-center gap-1 w-full",children:[(0,T.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,T.jsxs)("div",{className:"flex gap-2 items-center",children:[e.height&&e.blockHref&&(0,T.jsx)(nr,{color:"subtle",weight:"semibold",children:(0,T.jsx)(dd,{href:e.blockHref,underline:"none",children:(0,v4.yF)(e.height)})}),(0,T.jsx)(nr,{weight:"medium",children:o||r})]}),(0,T.jsx)("div",{className:"flex-1"}),!!t&&(0,T.jsx)(SO,{variant:e.scVariant,value:t}),!!n&&(0,T.jsx)(SE,{variant:e.sfVariant,value:n})]}),(0,T.jsxs)("div",{className:"flex justify-between w-full",children:[(0,T.jsx)("div",{className:"flex gap-1",children:!!o&&r}),(0,T.jsxs)("div",{className:"flex gap-1 items-center",children:[e.unconfirmed?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(nr,{color:"verySubtle",children:"unconfirmed"}),e.timestamp?(0,T.jsx)(nr,{color:"verySubtle",children:(0,T.jsx)(lg.Bpb,{className:"scale-50"})}):null]}):null,e.timestamp&&(0,T.jsx)(nr,{color:"subtle",children:(0,SF.Z)(new Date(e.timestamp),new Date,{addSuffix:!0})})]})]})]})})}function S4(e){let{title:t,actions:n,dataset:r,isLoading:i,emptyState:o,emptyMessage:a,skeletonCount:s=10,children:l}=e,u="emptyState";return!i||(null==r?void 0:r.length)||l||(u="skeleton"),((null==r?void 0:r.length)||l)&&(u="currentData"),(0,T.jsx)(na,{children:(0,T.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[(t||n)&&(0,T.jsxs)("div",{className:"flex items-center p-4 border-b border-gray-200 dark:border-graydark-300",children:[t&&(0,T.jsx)(de,{size:"20",font:"mono",ellipsis:!0,children:t}),(0,T.jsx)("div",{className:"flex-1"}),n]}),(0,T.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:["emptyState"===u&&(o||(0,T.jsx)("div",{className:(0,eC.cx)("flex items-center justify-center h-[84px]",(0,eC.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:(0,T.jsx)(nr,{size:"18",color:"subtle",children:a||"No results"})})),"currentData"===u&&(l||(null==r?void 0:r.map((e,t)=>(0,T.jsx)(S2,{...e},e.hash||e.label||t)))),"skeleton"===u&&(0,T.jsx)(SZ,{skeletonCount:s})]})]})})}function S3(e){let{label:t,entityType:n,entityValue:r,actions:i,href:o,value:a,extendedSuffix:s,hash:l,sc:u,sf:c,comment:d,commentTip:f,scaleSize:h="40",isLoading:p,onClick:m}=e,v=(0,T.jsx)(nr,{color:"subtle",size:"12",className:"h-6",children:d});return(0,T.jsx)(na,{children:(0,T.jsx)("div",{className:(0,eC.cx)("flex items-center py-2 px-4 h-full min-w-[250px]",m?"cursor-pointer":""),onClick:m,children:(0,T.jsxs)("div",{className:"flex flex-col gap-4 flex-wrap items-start w-full",children:[(0,T.jsxs)("div",{className:"flex relative top-px flex-1 w-full gap-6 items-center justify-between",children:[(0,T.jsx)(nr,{color:"subtle",ellipsis:!0,scaleSize:"14",children:"string"==typeof t?SJ(t):t}),i]}),(0,T.jsxs)("div",{className:"flex flex-col items-end md:items-start gap-2 md:flex-2",children:[p?(0,T.jsx)(hr,{className:"h-12 w-[150px]"}):(0,T.jsxs)(T.Fragment,{children:[void 0!==u&&(0,T.jsx)(SO,{extendedSuffix:s,scaleSize:h,variant:"value",value:u,fixed:0}),void 0!==c&&(0,T.jsx)(SE,{scaleSize:h,variant:"value",value:c}),n&&(r?(0,T.jsx)(Sw,{scaleSize:h,label:Sy(n),href:o,value:r,displayValue:"block"===n&&r?Number(r).toLocaleString():r,className:"relative top-0.5"}):(0,T.jsx)(nr,{font:"mono",weight:"medium",scaleSize:h,children:"-"})),l&&(0,T.jsx)(Sw,{scaleSize:h,label:"hash",value:l}),void 0!==a&&(0,T.jsx)(nr,{font:"mono",weight:"medium",scaleSize:h,ellipsis:!0,children:a})]}),v?(0,T.jsx)("div",{className:"mt-1",children:p?(0,T.jsx)("div",{className:"mt-1 h-6 justify-center",children:(0,T.jsx)(hr,{className:"h-4 w-[100px]"})}):f?(0,T.jsx)(lp,{content:f,children:v}):v}):null]})]})})})}function S5(e){let{title:t,actions:n,name:r}=e;return(0,T.jsxs)("div",{className:"flex gap-0.5 items-center",children:[t?(0,T.jsx)(dl,{htmlFor:r,noWrap:!0,children:t}):null,n]})}function S6(e){var t;let{form:n,name:r}=e,i=n.formState.errors[r],o=null===(t=n.formState.errors[r])||void 0===t?void 0:t.message;return i?(0,T.jsx)(nr,{size:"14",color:"red",children:o}):null}function S8(e){let{form:t,title:n,actions:r,name:i,className:o,wrap:a}=e,s=t.formState.errors[i];return n||s?(0,T.jsxs)("div",{className:(0,eC.cx)("flex justify-between items-center gap-x-4 overflow-hidden",a?"flex-wrap":"",o),children:[(0,T.jsx)(S5,{name:i,title:n,actions:r}),(0,T.jsx)(S6,{form:t,name:i})]}):null}function S7(e){let{children:t,...n}=e;return(0,T.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,T.jsx)(S8,{...n}),t]})}function S9(e){let{form:t,size:n="medium",variant:r="accent",children:i}=e;return(0,T.jsx)(T.Fragment,{children:(0,T.jsx)(lv,{size:n,variant:r,state:t.formState.isSubmitting?"waiting":void 0,type:"submit",children:t.formState.isSubmitting?(0,T.jsx)(k5,{}):i})})}function _e(e){let{formik:t,title:n,name:r,placeholder:i,disabled:o,readOnly:a,autoComplete:s="off",spellCheck:l=!1,tabIndex:u,allowDecimals:c=!1,decimalsLimitFiat:d=3,decimalsLimitSc:f=3,decimalsLimit:h=2,disableGroupSeparators:p=!1,showFiat:m=!0,units:v,type:g,variants:y}=e;return(0,T.jsx)(_o,{formik:t,title:n,name:r,children:"number"===g?(0,T.jsx)(_n,{formik:t,name:r,units:v,disabled:o,readOnly:a,tabIndex:u,decimalsLimit:h,allowDecimals:c,disableGroupSeparators:p,placeholder:i,variants:y}):"siacoin"===g?(0,T.jsx)(_r,{formik:t,name:r,disabled:o,readOnly:a,placeholder:i,tabIndex:u,showFiat:m,decimalsLimitFiat:d,decimalsLimitSc:f,variants:y}):(0,T.jsx)(_t,{formik:t,name:r,autoComplete:s,disabled:o,readOnly:a,placeholder:i,tabIndex:u,spellCheck:l,type:g,variants:y})})}function _t(e){let{formik:t,name:n,placeholder:r,autoComplete:i="off",disabled:o,readOnly:a,tabIndex:s,spellCheck:l=!1,type:u,variants:c}=e;return(0,T.jsx)(fM,{id:n,name:n,autoComplete:i,disabled:o,spellCheck:l,placeholder:r,tabIndex:s,readOnly:a||t.isSubmitting,type:u,onBlur:t.handleBlur,onChange:t.handleChange,value:t.values[n]||"",...c})}function _n(e){let{formik:t,name:n,units:r,disabled:i,readOnly:o,tabIndex:a,placeholder:s,decimalsLimit:l,allowDecimals:u=!1,disableGroupSeparators:c=!1,variants:d}=e;return(0,T.jsx)(fJ,{id:n,units:r,name:n,placeholder:new(fX())(s),disabled:i,allowDecimals:u,decimalsLimit:l,disableGroupSeparators:c,readOnly:o||t.isSubmitting,tabIndex:a,onBlur:t.handleBlur,onChange:e=>t.setFieldValue(n,e),value:t.values[n],...d})}function _r(e){let{formik:t,name:n,disabled:r,readOnly:i,tabIndex:o,placeholder:a,showFiat:s,decimalsLimitFiat:l=3,decimalsLimitSc:u=3,variants:c}=e;return(0,T.jsx)(f3,{id:n,name:n,disabled:r,showFiat:s,decimalsLimitFiat:l,decimalsLimitSc:u,readOnly:i||t.isSubmitting,tabIndex:o,onFocus:()=>t.setFieldTouched(n),sc:new(fX())(t.values[n]),placeholder:new(fX())(a),onChange:e=>t.setFieldValue(n,null==e?void 0:e.toString()),...c})}function _i(e){var t,n;let{formik:r,title:i,name:o,withStatusError:a=!1,className:s}=e,l=r.errors[o]&&r.touched[o]||a&&(null===(t=r.status)||void 0===t?void 0:t.error),u=r.errors[o]||a&&(null===(n=r.status)||void 0===n?void 0:n.error);return(i||l)&&(0,T.jsxs)("div",{className:(0,eC.cx)("flex justify-between items-center gap-4",s),children:[i?(0,T.jsx)(dl,{htmlFor:o,children:i}):(0,T.jsx)("div",{}),l&&(0,T.jsx)(nr,{size:"14",color:"red",children:u})]})}function _o(e){let{children:t,...n}=e;return(0,T.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,T.jsx)(_i,{...n}),t]})}function _a(e){var t;let{formik:n,size:r="medium",variant:i="accent",withStatusError:o=!0,children:a}=e;return(0,T.jsxs)(T.Fragment,{children:[o&&(null===(t=n.status)||void 0===t?void 0:t.error)&&(0,T.jsx)(nr,{color:"red",children:n.status.error}),(0,T.jsx)(lv,{size:r,variant:i,state:n.isSubmitting?"waiting":void 0,type:"submit",children:n.isSubmitting?(0,T.jsx)(k5,{}):a})]})}function _s(e){let{columns:t,data:n,context:r,sortField:i,sortDirection:o,sortableColumns:a,toggleSort:s,summary:l,rowSize:u="default",pageSize:c,isLoading:d,emptyState:f,focusId:h,focusColor:p="default"}=e,m="emptyState";!d||(null==n?void 0:n.length)||(m="skeleton"),(null==n?void 0:n.length)&&(m="currentData");let v=(0,A.useCallback)((e,n,r)=>(0,eC.cx)(0===e?"pl-6":"pl-4",e===t.length-1?"pr-6":"pr-4",r?[0===e?"rounded-tl-lg":"",e===t.length-1?"rounded-tr-lg":""]:"",n),[t]),g=(0,A.useCallback)((e,t)=>(0,eC.cx)("flex items-center",t),[]);return(0,T.jsxs)(na,{children:[(0,T.jsxs)("table",{className:"relative z-10 table-auto border-collapse w-full",children:[(0,T.jsx)("thead",{className:(0,eC.cx)("sticky top-0 z-20 bg-white dark:bg-graydark-100","shadow-border-b shadow-gray-400 dark:shadow-graydark-300"),children:(0,T.jsx)("tr",{children:t.map((e,t)=>{let{id:n,icon:r,label:l,tip:u,cellClassName:c,contentClassName:d}=e,f=(null==a?void 0:a.includes(n))&&!!s,h=i===n;return(0,T.jsx)("th",{className:(0,eC.cx)(v(t,c,!1),"border-b border-gray-400 dark:border-graydark-400"),children:(0,T.jsx)("div",{className:(0,eC.cx)("overflow-hidden","py-3"),children:(0,T.jsxs)("div",{onClick:()=>{f&&s(n)},className:(0,eC.cx)(g(t,d),f?"cursor-pointer":""),children:[(0,T.jsx)(lp,{content:u,children:(0,T.jsxs)(nr,{color:"subtle",className:"relative flex gap-1",ellipsis:!0,children:[r?(0,T.jsx)("div",{children:r}):null,(0,T.jsx)(nr,{ellipsis:!0,size:"12",weight:"medium",children:l})]})}),h&&(0,T.jsx)(nr,{color:"contrast",children:"asc"===o?(0,T.jsx)(lg.kqg,{className:"scale-75"}):(0,T.jsx)(lg.EMN,{className:"scale-75"})}),f&&!h&&(0,T.jsx)(nr,{color:"verySubtle",children:(0,T.jsx)(lg.kqg,{className:"scale-75"})})]})})},n)})})}),(0,T.jsxs)("tbody",{className:"bg-gray-50 dark:bg-graydark-50",children:[l&&(0,T.jsx)("tr",{className:"bg-gray-50 dark:bg-graydark-50 border-l border-r border-b border-gray-200 dark:border-graydark-200",children:t.map((e,t)=>{let{id:n,summary:r,contentClassName:i,cellClassName:o}=e;return(0,T.jsx)("td",{className:v(t,o,!1),children:(0,T.jsx)("div",{className:g(t,i),children:r&&r()})},n)})}),"currentData"===m&&(null==n?void 0:n.map(e=>(0,T.jsx)("tr",{id:e.id,onClick:e.onClick,className:(0,eC.cx)("border-b border-gray-200/50 dark:border-graydark-100",e.onClick?"cursor-pointer":""),children:t.map((t,n)=>{let{id:i,render:o,contentClassName:a,cellClassName:s}=t;return(0,T.jsx)("td",{className:(0,eC.cx)(v(n,s,!1),h&&h===e.id?["shadow-border-y","first:shadow-border-tlb","last:shadow-border-trb"]:"","default"===p?"!shadow-blue-900 dark:!shadow-blue-200":"","blue"===p?"!shadow-blue-500 dark:!shadow-blue-400":"","red"===p?"!shadow-red-500 dark:!shadow-red-400":"","amber"===p?"!shadow-amber-500 dark:!shadow-amber-500":"","green"===p?"!shadow-green-500 dark:!shadow-green-400":""),children:(0,T.jsx)("div",{className:(0,eC.cx)(g(n,a),"dense"===u?"h-[50px]":"h-[100px]"),children:(0,T.jsx)(o,{data:e,context:r})})},"".concat(i,"/").concat(e.id))})},e.id))),"skeleton"===m&&SL(c).map(e=>(0,T.jsx)("tr",{className:"border-b border-gray-200/50 dark:border-graydark-100",children:t.map((e,t)=>{let{id:n,contentClassName:r,cellClassName:i}=e;return(0,T.jsx)("td",{className:v(t,i,!1),children:(0,T.jsx)("div",{className:(0,eC.cx)(g(t,r),"dense"===u?"h-[50px]":"h-[100px]")})},"".concat(t,"/").concat(n))})},e))]})]}),"emptyState"===m&&f]})}function _l(e){let{offset:t,limit:n,datasetTotal:r,isLoading:i}=e,o=(0,c8.j0)();return(0,T.jsxs)(lH,{children:[(0,T.jsx)(lv,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>o.push({query:{...o.query,offset:0}}),children:(0,T.jsx)("div",{className:"flex scale-[0.65]",children:(0,T.jsx)(lg.XJM,{})})}),(0,T.jsx)(lv,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.max(t-n,0)}}),children:(0,T.jsx)(lg.bdU,{})}),(0,T.jsx)(lv,{state:"waiting",className:"rounded-none px-3",children:r>0?"".concat(t+1," - ").concat(Math.min(t+n,r)," of ").concat(r?r.toLocaleString():""):i?(0,T.jsx)(k5,{className:"px-2"}):"No results"}),(0,T.jsx)(lv,{icon:"contrast",disabled:t+n>=r,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.min(t+n,r)}}),children:(0,T.jsx)(lg.VUy,{})}),(0,T.jsx)(lv,{icon:"contrast",disabled:t+n>=r,size:"small",variant:"gray",className:"rounded-l-none",onClick:()=>o.push({query:{...o.query,offset:Math.floor(r/n)*n}}),children:(0,T.jsx)("div",{className:"flex",style:{transform:"scale(0.65)"},children:(0,T.jsx)(lg.RRj,{})})})]})}function _u(e){let{offset:t,limit:n,pageTotal:r,isLoading:i}=e,o=(0,c8.j0)(),a=Math.min(t+n,t+r);return(0,T.jsxs)(lH,{children:[(0,T.jsx)(lv,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>o.push({query:{...o.query,offset:0}}),children:(0,T.jsx)("div",{className:"flex scale-[0.65]",children:(0,T.jsx)(lg.XJM,{})})}),(0,T.jsx)(lv,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.max(t-n,0)}}),children:(0,T.jsx)(lg.bdU,{})}),i?(0,T.jsx)(lv,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:(0,T.jsx)(k5,{className:"px-2"})}):r?(0,T.jsxs)(lv,{className:"rounded-none px-3",state:"waiting",children:[t+1," - ",a]}):(0,T.jsx)(lv,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:"none"}),(0,T.jsx)(lv,{icon:"contrast",disabled:!(r>=n),size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:t+n}}),children:(0,T.jsx)(lg.VUy,{})})]})}function _c(e){let{title:t,nav:n,stats:r,actions:i}=e;return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)("div",{className:"flex items-center gap-2 px-6 h-14 z-10 bg-white dark:bg-graydark-50 border-b border-gray-500 dark:border-graydark-500",children:[t?"string"==typeof t?(0,T.jsx)(nr,{font:"mono",size:"18",weight:"bold",className:"hidden lg:block relative -top-px",children:t}):t:null,(0,T.jsxs)("div",{className:"flex-1 flex gap-4 items-center justify-between h-full px-1 -mx-1 overflow-x-hidden",children:[(0,T.jsx)("div",{className:"flex gap-2 items-center h-full flex-1 overflow-x-hidden",children:n}),(0,T.jsx)("div",{className:"flex gap-2 items-center h-full",children:i})]})]}),r&&(0,T.jsx)("div",{className:"flex items-center gap-2 px-6 py-2 h-14 z-10 bg-gray-50 dark:bg-graydark-50 border-b border-gray-300 dark:border-graydark-300",children:r})]})}let _d=("string"==typeof(y={src:"/_next/static/media/background-pattern.b997b25c.jpg",height:104,width:34,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCAAIAAMDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAX/xAAZEAADAAMAAAAAAAAAAAAAAAAAAQIREpH/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8ArRb1WYXQAB//2Q==",blurWidth:3,blurHeight:8})?{src:y}:y).src;function _f(e){let{children:t}=e;return(0,T.jsxs)("div",{className:"relative -z-10 opacity-100 pointer-events-none",children:[(0,T.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 z-10 bg-white dark:bg-graydark-50"}),(0,T.jsx)("div",{className:"fixed top-0 left-0 right-0 w-[200vw] h-[200vh] opacity-30 z-30 translate-x[-50vw] translate-y[-100vh]",style:{backgroundImage:"url(".concat(_d,")"),backgroundPositionY:"bottom",backgroundSize:"auto"}}),(0,T.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 opacity-95 z-40 bg-white dark:bg-graydark-50"}),t]})}function _h(e){let{appName:t,title:n,children:r}=e,i=n?"".concat(t," - ").concat(n):t;return(0,T.jsxs)(c8.Fb,{children:[(0,T.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,T.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),(0,T.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),(0,T.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"}),(0,T.jsx)("link",{rel:"manifest",href:"/site.webmanifest"}),(0,T.jsx)("link",{rel:"mask-icon",href:"/safari-pinned-tab.svg",color:"#1ed660"}),(0,T.jsx)("meta",{name:"msapplication-TileColor",content:"#2b5797"}),(0,T.jsx)("meta",{name:"theme-color",content:"#ffffff"}),r,(0,T.jsx)("title",{children:i})]})}function _p(e){let{appName:t,title:n,children:r}=e;return(0,T.jsxs)("div",{className:"h-screen",children:[(0,T.jsx)(_h,{appName:t,title:n}),r]})}function _m(e){let{appName:t,title:n,children:r,filters:i,actions:o}=e;return(0,T.jsxs)(_p,{appName:t,title:n,children:[(0,T.jsx)(_f,{}),(0,T.jsx)("div",{className:"flex h-full",children:(0,T.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,T.jsx)(_c,{nav:i,actions:o}),(0,T.jsx)("div",{className:"flex-1",children:(0,T.jsx)(lW,{className:"h-full",children:r})})]})})]})}function _v(e){let{side:t,balanceSc:n,children:r}=e;return n?(0,T.jsx)(lp,{side:t,content:(0,T.jsxs)("div",{className:"flex flex-col justify-center gap-2",children:[(0,T.jsxs)("div",{className:"flex gap-4",children:[(0,T.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,T.jsx)(nr,{children:"spendable"}),(0,T.jsx)(nr,{color:"subtle",children:"All confirmed outputs not in-use."})]}),(0,T.jsx)("div",{className:"flex justify-end",children:(0,T.jsx)(SO,{displayBoth:!0,variant:"value",value:n.spendable})})]}),(0,T.jsx)(cq,{className:"w-full"}),(0,T.jsxs)("div",{className:"flex gap-4",children:[(0,T.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,T.jsx)(nr,{children:"confirmed"}),(0,T.jsx)(nr,{color:"subtle",children:"All confirmed outputs."})]}),(0,T.jsx)("div",{className:"flex justify-end",children:(0,T.jsx)(SO,{displayBoth:!0,variant:"value",value:n.confirmed})})]}),(0,T.jsx)(cq,{className:"w-full"}),(0,T.jsxs)("div",{className:"flex gap-4",children:[(0,T.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,T.jsx)(nr,{children:"unconfirmed"}),(0,T.jsx)(nr,{color:"subtle",children:"All unconfirmed outputs not in-use."})]}),(0,T.jsx)("div",{className:"flex justify-end",children:(0,T.jsx)(SO,{displayBoth:!0,variant:"value",value:n.unconfirmed})})]})]}),children:(0,T.jsx)("div",{children:r})}):null}function _g(e){let{balanceSc:t,isSynced:n,syncingMessage:r}=e;if(!t)return null;let i=(0,T.jsx)(SO,{showTooltip:!1,value:t.spendable.plus(t.unconfirmed),variant:"value",size:"12",fixed:0,fixedFiat:0});return n?(0,T.jsx)(_v,{side:"right",balanceSc:t,children:i}):(0,T.jsx)(lp,{side:"right",content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,T.jsx)("div",{children:i})})}function _y(e){let{title:t,children:n,route:r,onClick:i}=e,o=(0,c8.jD)(),a=r&&("/"===r?o===r:null==o?void 0:o.startsWith(r));return r?(0,T.jsx)(dd,{href:r,className:"no-underline",children:(0,T.jsx)(lp,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,T.jsx)(lv,{icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:n})})}):(0,T.jsx)(lp,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,T.jsx)(lv,{icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:n})})}function _b(e){let{walletBalanceSc:t,isSynced:n,routes:r}=e;return(0,T.jsx)(_y,{title:"Wallet",route:r.wallet.view,children:(0,T.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,T.jsx)(lg.oaN,{}),n&&t&&(0,T.jsx)(_g,{isSynced:n,balanceSc:t})]})})}function _x(e){let{routes:t,profile:n,isSynced:r,showWallet:i=!0,walletBalanceSc:o,lock:a,openSettings:s,children:l}=e;return(0,T.jsx)(na,{className:"relative overflow-hidden z-10 h-full w-[75px] rounded-none border-y-0",children:(0,T.jsxs)("div",{className:"flex flex-col items-center h-full",children:[(0,T.jsx)("div",{className:"flex items-center justify-center",style:{height:"".concat(60,"px")},children:n||(0,T.jsx)(dp,{size:30})}),(0,T.jsxs)("div",{className:"flex flex-col gap-6 items-center pt-4 pb-6 h-full",children:[(0,T.jsx)("div",{className:"flex flex-col gap-6 items-center",children:l}),(0,T.jsx)("div",{className:"flex-1"}),(0,T.jsx)(cq,{className:"w-full"}),i&&(0,T.jsx)(_b,{routes:t,isSynced:r,walletBalanceSc:o}),(0,T.jsx)(_y,{title:"Blockchain node",route:t.node.index,children:(0,T.jsx)(lg.kBK,{})}),(0,T.jsx)(_y,{title:"App preferences",onClick:()=>s(),children:(0,T.jsx)(lg.UG6,{})}),(0,T.jsx)(_y,{title:"Lock app",onClick:a,children:(0,T.jsx)(lg.mBM,{})})]})]})})}var _w=Object.create,_j=Object.defineProperty,_k=Object.getOwnPropertyDescriptor,_E=Object.getOwnPropertyNames,_S=Object.getPrototypeOf,__=Object.prototype.hasOwnProperty,_C=(j=null!=(w=(b=(e,t)=>{var r,i;r=e,i=function(e){var t,n=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,r=2*536870912,i=new WeakMap,o=(t=function(e,t){return i.set(e,t),t},function(e){var o=i.get(e),a=void 0===o?e.size:on)throw Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;e.has(a);)a=Math.floor(Math.random()*n);return t(e,a)});e.addUniqueNumber=function(e){var t=o(e);return e.add(t),t},e.generateUniqueNumber=o},"object"==typeof e&&"u">typeof t?i(e):"function"==typeof define&&n.amdO?define(["exports"],i):i((r="u">typeof globalThis?globalThis:r||self).fastUniqueNumbers={})},()=>(x||b((x={exports:{}}).exports,x),x.exports))())?_w(_S(w)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of _E(t))__.call(e,n)||void 0===n||_j(e,n,{get:()=>t[n],enumerable:!(r=_k(t,n))||r.enumerable});return e})(w&&w.__esModule?j:_j(j,"default",{value:w,enumerable:!0}),w)),_O=e=>void 0!==e.method&&"call"===e.method,_M=e=>null===e.error&&"number"==typeof e.id;k=e=>{let t=new Map([[0,()=>{}]]),n=new Map([[0,()=>{}]]),r=new Map,i=new Worker(e);return i.addEventListener("message",({data:e})=>{if(_O(e)){let{params:{timerId:i,timerType:o}}=e;if("interval"===o){let e=t.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==o)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e();else throw Error("The timer is in an undefined state.")}else if("timeout"===o){let e=n.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==o)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e(),n.delete(i);else throw Error("The timer is in an undefined state.")}}else if(_M(e)){let{id:i}=e,o=r.get(i);if(void 0===o)throw Error("The timer is in an undefined state.");let{timerId:a,timerType:s}=o;r.delete(i),"interval"===s?t.delete(a):n.delete(a)}else{let{error:{message:t}}=e;throw Error(t)}}),{clearInterval:e=>{let n=(0,_C.generateUniqueNumber)(r);r.set(n,{timerId:e,timerType:"interval"}),t.set(e,n),i.postMessage({id:n,method:"clear",params:{timerId:e,timerType:"interval"}})},clearTimeout:e=>{let t=(0,_C.generateUniqueNumber)(r);r.set(t,{timerId:e,timerType:"timeout"}),n.set(e,t),i.postMessage({id:t,method:"clear",params:{timerId:e,timerType:"timeout"}})},setInterval:(e,n)=>{let r=(0,_C.generateUniqueNumber)(t);return t.set(r,()=>{e(),"function"==typeof t.get(r)&&i.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:r,timerType:"interval"}})}),i.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:r,timerType:"interval"}}),r},setTimeout:(e,t)=>{let r=(0,_C.generateUniqueNumber)(n);return n.set(r,e),i.postMessage({id:null,method:"set",params:{delay:t,now:performance.now(),timerId:r,timerType:"timeout"}}),r}}},a=null,()=>{if(null!==a)return a;let e=new Blob(['(()=>{"use strict";const e=new Map,t=new Map,r=(e,t)=>{let r,o;const i=performance.now();r=i,o=e-Math.max(0,i-t);return{expected:r+o,remainingDelay:o}},o=(e,t,r,i)=>{const s=performance.now();s>r?postMessage({id:null,method:"call",params:{timerId:t,timerType:i}}):e.set(t,setTimeout(o,r-s,e,t,r,i))};addEventListener("message",(i=>{let{data:s}=i;try{if("clear"===s.method){const{id:r,params:{timerId:o,timerType:i}}=s;if("interval"===i)(t=>{const r=e.get(t);if(void 0===r)throw new Error(\'There is no interval scheduled with the given id "\'.concat(t,\'".\'));clearTimeout(r),e.delete(t)})(o),postMessage({error:null,id:r});else{if("timeout"!==i)throw new Error(\'The given type "\'.concat(i,\'" is not supported\'));(e=>{const r=t.get(e);if(void 0===r)throw new Error(\'There is no timeout scheduled with the given id "\'.concat(e,\'".\'));clearTimeout(r),t.delete(e)})(o),postMessage({error:null,id:r})}}else{if("set"!==s.method)throw new Error(\'The given method "\'.concat(s.method,\'" is not supported\'));{const{params:{delay:i,now:n,timerId:a,timerType:d}}=s;if("interval"===d)((t,i,s)=>{const{expected:n,remainingDelay:a}=r(t,s);e.set(i,setTimeout(o,a,e,i,n,"interval"))})(i,a,n);else{if("timeout"!==d)throw new Error(\'The given type "\'.concat(d,\'" is not supported\'));((e,i,s)=>{const{expected:n,remainingDelay:a}=r(e,s);t.set(i,setTimeout(o,a,t,i,n,"timeout"))})(i,a,n)}}}}catch(e){postMessage({error:{message:e.message},id:s.id,result:null})}}))})();'],{type:"application/javascript; charset=utf-8"}),t=URL.createObjectURL(e);return a=k(t),setTimeout(()=>URL.revokeObjectURL(t)),a};var _T=(typeof window>"u"?"undefined":typeof window)=="object",_A={setTimeout:_T?setTimeout.bind(window):setTimeout,clearTimeout:_T?clearTimeout.bind(window):clearTimeout,setInterval:_T?setInterval.bind(window):setInterval,clearInterval:_T?clearInterval.bind(window):clearInterval},_P={},_N=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,_P[e]=_P[e]||[],_P[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){if(e.storageArea!==window.localStorage||e.key.substring(0,this.name.length)!==this.name||null===e.newValue)return;let t=JSON.parse(e.newValue);this.mc.port2.postMessage(t)}postMessage(e){if(this.closed)throw Error("InvalidStateError");let t=JSON.stringify(e),n=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(n,t),_A.setTimeout(()=>{window.localStorage.removeItem(n)},500),_P[this.name].forEach(e=>{e!==this&&e.mc.port2.postMessage(JSON.parse(t))})}close(){if(this.closed)return;this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage);let e=_P[this.name].indexOf(this);_P[this.name].splice(e,1)}get onmessage(){return this.mc.port1.onmessage}set onmessage(e){this.mc.port1.onmessage=e}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(e){this.mc.port1.onmessageerror=e}addEventListener(e,t){return this.mc.port1.addEventListener(e,t)}removeEventListener(e,t){return this.mc.port1.removeEventListener(e,t)}dispatchEvent(e){return this.mc.port1.dispatchEvent(e)}},_R=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:_N;function _D(){return Math.random().toString(36).substring(2)}var _L=class{options;channel;token=_D();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(e,t){this.channel=e,this.options=t,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return this.reApply=!0,!1;this.isApplying=!0;let e=!1,t=t=>{let{token:n,action:r}=t.data;n!==this.token&&(0===r&&n>this.token&&(e=!0),1===r&&(e=!0))};this.channel.addEventListener("message",t);try{return this.sendAction(0),await function(e=0){return new Promise(t=>_A.setTimeout(t,e))}(this.options.responseTime),this.channel.removeEventListener("message",t),this.isApplying=!1,e?!!this.reApply&&this.apply():(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let e=!1,t=null;return new Promise(n=>{let r=()=>{if(e)return;e=!0;try{_A.clearInterval(t)}catch{}let r=this.intervals.indexOf(t);r>=0&&this.intervals.splice(r,1),this.channel.removeEventListener("message",i),n()};t=_A.setInterval(()=>{this.apply().then(()=>{this.isLeader&&r()})},this.options.fallbackInterval),this.intervals.push(t);let i=e=>{let{action:t}=e.data;2===t&&this.apply().then(()=>{this.isLeader&&r()})};this.channel.addEventListener("message",i)})}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;let e=e=>{let{action:t}=e.data;0===t&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred||(this.deferred=this.awaitLeadership()),this.deferred}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach(e=>this.channel.removeEventListener("message",e)),this.intervals.forEach(e=>_A.clearInterval(e))}catch{}}}},_Z=class{channel;options;elector;token=_D();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;this.options=e,this.channel=new _R(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new _L(this.channel,{fallbackInterval:2e3,responseTime:100}),this.elector.waitForLeadership()),this.channel.addEventListener("message",e=>{let{action:t,token:n,data:r}=e.data;switch(t){case 3:this.registry.set(n,2);break;case 4:this.registry.delete(n);break;case 5:this.idle(n);break;case 6:this.active(n);break;case 7:this.prompt(n);break;case 8:this.start(n);break;case 9:this.reset(n);break;case 10:this.activate(n);break;case 11:this.pause(n);break;case 12:this.resume(n);break;case 13:this.options.onMessage(r)}}),this.send(3)}get isLeader(){if(!this.elector)throw Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.');return this.elector.isLeader}prompt(e=this.token){this.registry.set(e,0);let t=[...this.registry.values()].every(e=>0===e);e===this.token&&this.send(7),t&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);let t=[...this.registry.values()].every(e=>2===e);e===this.token&&this.send(5),!this.allIdle&&t&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);let t=[...this.registry.values()].some(e=>1===e);e===this.token&&this.send(6),t&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},_F=_T?document:null,_z=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function _V(e,t){let n=0;return function(...r){let i=new Date().getTime();if(!(i-nDate.now();function _B(e){let{route:t}=e,n=(0,f1.Nf)({route:t,config:{swr:{refreshInterval:3e4}}});return{isConnected:!n.error,isValidating:n.isValidating}}function _H(e){let{appName:t,title:n,navTitle:r,profile:i,size:o="4",banner:a,nav:s,actions:l,stats:u,children:c,sidenav:d,connectivityRoute:f,isSynced:h,showWallet:p,walletBalanceSc:m,routes:v,scroll:g=!0,openSettings:y}=e,{lock:b,settings:x}=(0,f1.Hv)();return!function(e){let{lock:t,route:n,routes:r}=e,{isConnected:i,isValidating:o}=_B({route:n}),{settings:a}=(0,f1.Hv)(),s=(0,c8.j0)();(0,A.useEffect)(()=>{if(o)return;let e=!s.asPath.startsWith(r.login),n=!a.password||!i;if(e&&n){t();return}},[s,a.password,i,o])}({lock:b,route:f,routes:v}),!function(e){let{enabled:t,lock:n,lockTimeout:r}=e,i=(0,A.useCallback)(()=>{n()},[n]);!function({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:n=0,element:r=_F,events:i=_z,timers:o,immediateEvents:a=[],onPresenceChange:s=()=>{},onPrompt:l=()=>{},onIdle:u=()=>{},onActive:c=()=>{},onAction:d=()=>{},onMessage:f=()=>{},debounce:h=0,throttle:p=0,eventsThrottle:m=200,startOnMount:v=!0,startManually:g=!1,stopOnIdle:y=!1,crossTab:b=!1,name:x="idle-timer",syncTimers:w=0,leaderElection:j=!1,disabled:k=!1}={}){let E=(0,A.useRef)(_I()),S=(0,A.useRef)(_I()),_=(0,A.useRef)(null),C=(0,A.useRef)(null),O=(0,A.useRef)(0),M=(0,A.useRef)(0),T=(0,A.useRef)(0),P=(0,A.useRef)(0),N=(0,A.useRef)(!1),R=(0,A.useRef)(!1),D=(0,A.useRef)(!1),L=(0,A.useRef)(!0),Z=(0,A.useRef)(!1),F=(0,A.useRef)(null),z=(0,A.useRef)(null),V=(0,A.useRef)(e),I=(0,A.useRef)(0);(0,A.useEffect)(()=>{if(t&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),n&&t)throw Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(e>=2147483647)throw Error(`\u274C The value for the timeout property must fit in a 32 bit signed integer, 2147483647.`);if(t>=2147483647)throw Error(`\u274C The value for the promptTimeout property must fit in a 32 bit signed integer, 2147483647.`);if(n>=2147483647)throw Error(`\u274C The value for the promptBeforeIdle property must fit in a 32 bit signed integer, 2147483647.`);if(n>=e)throw Error(`\u274C The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);if(n?(V.current=e-n,I.current=n):(V.current=e,I.current=t),!L.current){if(g||k)return;N.current&&(G.current(null,eA),z.current&&z.current.active()),ed()}},[e,t,n,g,k]);let B=(0,A.useRef)(y);(0,A.useEffect)(()=>{B.current=y},[y]);let H=(0,A.useRef)(a),U=(0,A.useRef)(r),W=(0,A.useRef)([...new Set([...i,...a]).values()]),q=(0,A.useRef)(k);(0,A.useEffect)(()=>{q.current=k,!L.current&&(k?ep():g||ed())},[k]);let $=(0,A.useRef)(s);(0,A.useEffect)(()=>{$.current=s},[s]);let K=(0,A.useRef)(l);(0,A.useEffect)(()=>{K.current=l},[l]);let Y=(0,A.useRef)(u);(0,A.useEffect)(()=>{Y.current=u},[u]);let G=(0,A.useRef)(c);(0,A.useEffect)(()=>{G.current=c},[c]);let X=(0,A.useRef)(d);(0,A.useEffect)(()=>{X.current=d},[d]);let Q=(0,A.useRef)(f);(0,A.useEffect)(()=>{Q.current=f},[f]);let J=(0,A.useMemo)(()=>{let e=(e,t)=>X.current(e,t);return h>0?function(e,t){let n;function r(...i){n&&clearTimeout(n),n=setTimeout(()=>{e(...i),n=null},t)}return r.cancel=function(){clearTimeout(n)},r}(e,h):p>0?_V(e,p):e},[p,h]),ee=(0,A.useRef)();(0,A.useEffect)(()=>{b&&w&&(ee.current=_V(()=>{z.current.active()},w))},[b,w]);let et=()=>{null!==F.current&&(_A.clearTimeout(F.current),F.current=null)},en=(e,t=!0)=>{et(),F.current=_A.setTimeout(ea,e||V.current),t&&(C.current=_I())},er=e=>{R.current||N.current||(K.current(e,eA),$.current({type:"active",prompted:!0},eA)),P.current=0,T.current=_I(),R.current=!0,en(I.current,!1)},ei=()=>{et(),N.current||(Y.current(null,eA),$.current({type:"idle"},eA)),N.current=!0,_.current=_I(),B.current?ec():R.current&&(T.current=0,R.current=!1)},eo=e=>{et(),(N.current||R.current)&&(G.current(e,eA),$.current({type:"active",prompted:!1},eA)),R.current=!1,T.current=0,N.current=!1,O.current+=_I()-_.current,M.current+=_I()-_.current,eu(),en()},ea=e=>{if(!N.current){J.cancel&&J.cancel();let t=_I()-C.current;if(!(V.current+I.current0&&!R.current){z.current?z.current.prompt():er(e);return}z.current?z.current.idle():ei();return}z.current?z.current.active():eo(e)},es=e=>{if(v||C.current||(C.current=_I(),G.current(null,eA)),J(e,eA),R.current)return;if(et(),!N.current&&H.current.includes(e.type)){ea(e);return}let t=_I()-C.current;if(N.current&&!y||!N.current&&t>=V.current){ea(e);return}D.current=!1,P.current=0,T.current=0,en(),b&&w&&ee.current()},el=(0,A.useRef)(es);(0,A.useEffect)(()=>{let e=Z.current;e&&ec(),m>0?el.current=_V(es,m):el.current=es,e&&eu()},[m,p,h,X,b,w]);let eu=()=>{_T&&U.current&&(Z.current||(W.current.forEach(e=>{U.current.addEventListener(e,el.current,{capture:!0,passive:!0})}),Z.current=!0))},ec=(e=!1)=>{_T&&U.current&&(Z.current||e)&&(W.current.forEach(e=>{U.current.removeEventListener(e,el.current,{capture:!0})}),Z.current=!1)},ed=(0,A.useCallback)(e=>!q.current&&(et(),eu(),N.current=!1,R.current=!1,D.current=!1,P.current=0,T.current=0,z.current&&!e&&z.current.start(),en(),!0),[F,N,q,V,z]),ef=(0,A.useCallback)(e=>!q.current&&(et(),eu(),S.current=_I(),O.current+=_I()-_.current,M.current+=_I()-_.current,O.current=0,N.current=!1,R.current=!1,D.current=!1,P.current=0,T.current=0,z.current&&!e&&z.current.reset(),g||en(),!0),[F,N,V,g,q,z]),eh=(0,A.useCallback)(e=>!q.current&&(et(),eu(),(N.current||R.current)&&eo(),N.current=!1,R.current=!1,D.current=!1,P.current=0,T.current=0,S.current=_I(),z.current&&!e&&z.current.activate(),en(),!0),[F,N,R,q,V,z]),ep=(0,A.useCallback)((e=!1)=>!q.current&&!D.current&&(P.current=ej(),D.current=!0,ec(),et(),z.current&&!e&&z.current.pause(),!0),[F,q,z]),em=(0,A.useCallback)((e=!1)=>!q.current&&!!D.current&&(D.current=!1,R.current||eu(),N.current||en(P.current),T.current&&(T.current=_I()),z.current&&!e&&z.current.resume(),!0),[F,V,q,P,z]),ev=(0,A.useCallback)((e,t)=>(z.current?(t&&Q.current(e,eA),z.current.message(e)):t&&Q.current(e,eA),!0),[f]),eg=(0,A.useCallback)(()=>N.current,[N]),ey=(0,A.useCallback)(()=>R.current,[R]),eb=(0,A.useCallback)(()=>z.current?z.current.isLeader:null,[z]),ex=(0,A.useCallback)(()=>z.current?z.current.isLastActive:null,[z]),ew=(0,A.useCallback)(()=>z.current?z.current.token:null,[z]),ej=(0,A.useCallback)(()=>{if(D.current)return P.current;let e=Math.floor((P.current?P.current:I.current+V.current)-(C.current?_I()-C.current:0));return e<0?0:Math.abs(e)},[V,I,R,P,C]),ek=(0,A.useCallback)(()=>Math.round(_I()-S.current),[S]),eE=(0,A.useCallback)(()=>Math.round(_I()-E.current),[E]),eS=(0,A.useCallback)(()=>_.current?new Date(_.current):null,[_]),e_=(0,A.useCallback)(()=>C.current?new Date(C.current):null,[C]),eC=(0,A.useCallback)(()=>N.current?Math.round(_I()-_.current+O.current):Math.round(O.current),[_,O]),eO=(0,A.useCallback)(()=>N.current?Math.round(_I()-_.current+M.current):Math.round(M.current),[_,M]),eM=(0,A.useCallback)(()=>{let e=Math.round(ek()-eC());return e>=0?e:0},[_,O]),eT=(0,A.useCallback)(()=>{let e=Math.round(eE()-eO());return e>=0?e:0},[_,O]);(0,A.useEffect)(()=>{if(h>0&&p>0)throw Error("❌ onAction can either be throttled or debounced, not both.");o&&(_A.setTimeout=o.setTimeout,_A.clearTimeout=o.clearTimeout,_A.setInterval=o.setInterval,_A.clearInterval=o.clearInterval);let e=()=>{z.current&&z.current.close(),J.cancel&&J.cancel(),et(),ec(!0)};return _T&&window.addEventListener("beforeunload",e),()=>{_T&&window.removeEventListener("beforeunload",e),z.current&&z.current.close(),J.cancel&&J.cancel(),et(),ec(!0)}},[]),(0,A.useEffect)(()=>{z.current&&z.current.close(),b?z.current=new _Z({channelName:x,leaderElection:j,onPrompt:()=>{er()},onIdle:()=>{ei()},onActive:()=>{eo()},onMessage:e=>{Q.current(e,eA)},start:ed,reset:ef,activate:eh,pause:ep,resume:em}):z.current=null},[b,x,j,K,Y,G,Q,ed,ef,ep,em]),(0,A.useEffect)(()=>{L.current||(et(),ec(!0)),g||k||(v?ed():eu())},[g,v,k,L]),(0,A.useEffect)(()=>{if(!L.current){let e=[...new Set([...i,...a]).values()];ec(),W.current=e,U.current=r,H.current=a,g||k||(v?ed():eu())}},[r,JSON.stringify(i),JSON.stringify(a),L,k,g,v]),(0,A.useEffect)(()=>{L.current&&(L.current=!1)},[L]);let eA={message:ev,start:ed,reset:ef,activate:eh,pause:ep,resume:em,isIdle:eg,isPrompted:ey,isLeader:eb,isLastActiveTab:ex,getTabId:ew,getRemainingTime:ej,getElapsedTime:ek,getTotalElapsedTime:eE,getLastIdleTime:eS,getLastActiveTime:e_,getIdleTime:eC,getTotalIdleTime:eO,getActiveTime:eM,getTotalActiveTime:eT,setOnPresenceChange:e=>{s=e,$.current=e},setOnPrompt:e=>{l=e,K.current=e},setOnIdle:e=>{u=e,Y.current=e},setOnActive:e=>{c=e,G.current=e},setOnAction:e=>{d=e,X.current=e},setOnMessage:e=>{f=e,Q.current=e}}}({disabled:!t,onIdle:i,timeout:r,throttle:5e3,eventsThrottle:5e3})}({enabled:!!x.autoLock,lockTimeout:x.autoLockTimeout,lock:b}),(0,T.jsxs)(_p,{appName:t,title:n,children:[(0,T.jsx)(_f,{}),(0,T.jsxs)("div",{className:"flex flex-col h-full w-full",children:[a,(0,T.jsxs)("div",{className:"flex flex-1 w-full overflow-hidden",children:[(0,T.jsx)(_x,{routes:v,profile:i,openSettings:y,lock:b,showWallet:p,walletBalanceSc:m,isSynced:h,children:d}),(0,T.jsxs)("div",{className:"flex flex-col flex-1 overflow-hidden",children:[(0,T.jsx)(_c,{title:void 0===r?n:r,nav:s,actions:l,stats:u}),g?(0,T.jsx)(ug,{className:"z-0",children:(0,T.jsx)(lW,{size:o,pad:!1,children:(0,T.jsx)("div",{className:"flex flex-col gap-5",children:c})})}):(0,T.jsx)(lW,{size:o,pad:!1,className:"flex-1 flex flex-col gap-5 overflow-hidden",children:c})]})]})]})]})}function _U(e,t,n,r){let[i,o]=(0,A.useState)();return(0,A.useEffect)(()=>{!t&&e&&o(e.length)},[t,e,o]),(0,A.useMemo)(()=>n?"error":void 0===i||i>0&&!e?"loading":0===i?0===r.length?"noneYet":"noneMatchingFilters":void 0,[e,i,n,r])}function _W(e){let{filtered:t}=e;return(0,T.jsxs)("div",{className:"flex flex-col gap-8 justify-center items-center h-[300px]",children:[(0,T.jsx)(nr,{children:(0,T.jsx)(lg.Hb6,{className:"scale-[200%]"})}),(0,T.jsx)(nr,{color:"subtle",className:"text-center max-w-[500px]",children:t?"No matching alerts.":"There are currently no alerts."})]})}(0,A.createContext)(null).Consumer;let _q=[];function _$(e){let{open:t,onOpenChange:n,dismissOne:r,dismissMany:i,alerts:o,dataFieldOrder:a,dataFields:s}=e,l=_U(o.data,o.isValidating,o.error,_q),[u,c]=(0,A.useState)(),d=(0,A.useMemo)(()=>{var e;return(null===(e=o.data)||void 0===e?void 0:e.filter(e=>!u||e.severity===u))||[]},[o.data,u]),f=(0,A.useCallback)(e=>{let t=Object.keys(e).sort((e,t)=>{let n=a.indexOf(e),r=a.indexOf(t);return -1===n&&-1===r?0:-1===n?1:-1===r?-1:n-r});return t},[a]);return(0,T.jsx)(ux,{open:t,onOpenChange:e=>{n(e)},contentVariants:{className:"w-[500px] h-[80vh]"},title:(0,T.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,T.jsxs)(de,{size:"20",children:["Alerts ",o.data?"(".concat(o.data.length,")"):""]}),(0,T.jsxs)("div",{className:"flex gap-1",children:[(0,T.jsx)(lv,{variant:void 0===u?"accent":"gray",onClick:()=>c(void 0),children:"all"}),(0,T.jsx)(lv,{variant:"info"===u?"accent":"gray",onClick:()=>c("info"),children:"info"}),(0,T.jsx)(lv,{variant:"warning"===u?"accent":"gray",onClick:()=>c("warning"),children:"warning"}),(0,T.jsx)(lv,{variant:"error"===u?"accent":"gray",onClick:()=>c("error"),children:"error"}),(0,T.jsx)(lv,{variant:"critical"===u?"accent":"gray",onClick:()=>c("critical"),children:"critical"}),(0,T.jsx)("div",{className:"flex-1"}),!l&&!!d.length&&(0,T.jsxs)(lv,{tip:u?"dismiss ".concat(d.length):"dismiss all",onClick:()=>i(d.map(e=>e.id),u),children:[(0,T.jsx)(lg.NlZ,{}),d.length>0?" ".concat(d.length):""]})]})]}),children:(0,T.jsxs)("div",{className:(0,eC.cx)("flex flex-col overflow-hidden -m-4","border-t border-gray-200 dark:border-graydark-300"),children:["noneYet"===l&&(0,T.jsx)(_W,{filtered:!1}),"error"===l&&(0,T.jsx)("div",{className:(0,eC.cx)("flex items-center justify-center h-[100px]",_G()),children:(0,T.jsx)(nr,{size:"18",color:"subtle",children:o.error.message})}),"loading"===l&&(0,T.jsx)(_Y,{}),!l&&(0,T.jsx)("div",{className:"flex flex-col",children:d.length?d.map(e=>(0,T.jsxs)("div",{className:(0,eC.cx)("flex flex-col gap-1 w-full p-4","border-t border-gray-200 dark:border-graydark-300","first:border-none"),children:[(0,T.jsxs)("div",{className:"flex justify-between gap-1 w-full",children:[(0,T.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,T.jsxs)(nr,{weight:"medium",className:"w-full",children:[e.severity,": ",e.message]})}),(0,T.jsx)(lv,{tip:"Dismiss alert",onClick:()=>r(e.id),children:(0,T.jsx)(lg.NlZ,{})})]}),(0,T.jsxs)("div",{className:"flex justify-between w-full",children:[(0,T.jsx)(nr,{color:"subtle",ellipsis:!0,children:"timestamp"}),(0,T.jsx)(nr,{color:"contrast",ellipsis:!0,children:(0,v4.rN)(e.timestamp,{timeStyle:"medium"})})]}),f(e.data).map(t=>{var n;let r=e.data[t];if(null==r||"object"==typeof r&&!Object.keys(r).length)return null;let i=(null==s?void 0:null===(n=s[t])||void 0===n?void 0:n.render)||_K;return(0,T.jsx)(i,{label:t,value:r},t)})]},e.id)):(0,T.jsx)(_W,{filtered:!!u})})]})})}function _K(e){let{label:t,value:n}=e;return(0,T.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,T.jsx)(nr,{color:"subtle",children:t}),(0,T.jsx)(nr,{color:"contrast",ellipsis:!0,children:String(n)})]})}function _Y(){return(0,T.jsx)(T.Fragment,{children:SL(10,e=>(0,T.jsx)("div",{className:(0,eC.cx)("relative flex gap-4 p-3.5",_G()),children:(0,T.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,T.jsxs)("div",{className:"flex justify-between gap-2 w-full",children:[(0,T.jsx)(hr,{className:"w-[160px] h-[20px]"}),(0,T.jsx)(hr,{className:"w-[160px] h-[20px]"})]}),(0,T.jsx)(hr,{className:"w-[100px] h-[20px]"}),(0,T.jsx)(hr,{className:"w-full h-[120px]"})]})},e))})}function _G(){return(0,eC.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")}var _X=n(89644),_Q=n.n(_X),_J=n(63955),_0=n(69046);function _1(e){let{form:t,field:n,name:r}=e,i=t.watch(r),o=t.formState.touchedFields[r]&&!!t.formState.errors[r],{ref:a,onChange:s,onBlur:l}=t.register(r,n.validation),u=(0,A.useCallback)(e=>{var r;s(e),null===(r=n.trigger)||void 0===r||r.forEach(e=>t.trigger(e))},[s,t,n]),c=(0,A.useCallback)((e,i)=>{var o;t.setValue(r,e,"boolean"==typeof i?i?{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0}:void 0:i),null===(o=n.trigger)||void 0===o||o.forEach(e=>t.trigger(e))},[r,t,n]);return{ref:a,name:r,value:i,error:o,onBlur:l,onChange:u,setValue:c}}function _2(e){return(0,A.useCallback)(t=>{Sa((0,_0.Z)(t).map(t=>{let[n,r]=t;return"".concat(e[n].title||n,": ").concat(null==r?void 0:r.message)}).join(", "))},[e])}function _4(e){let{name:t,form:n,fields:r,size:i="small",autoComplete:o,spellCheck:a,state:s=!0,group:l=!0}=e,u=r[t],{ref:c,onChange:d,onBlur:f,error:h}=_1({name:t,form:n,field:u}),p=(0,T.jsx)(fM,{ref:c,name:t,placeholder:u.placeholder,size:i,autoComplete:o,type:u.type,readOnly:u.readOnly,spellCheck:a,onClick:u.onClick,state:s?h?"invalid":n.formState.dirtyFields[t]?"valid":"default":"default",onChange:d,onBlur:f});return l?(0,T.jsx)(S7,{title:u.title,actions:u.actions,name:t,form:n,children:p}):p}var _3=n(67693);async function _5(e){let{api:t,route:n,password:r}=e;try{return await _Q().get("".concat(t,"/api").concat(n),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(":".concat(r))},timeout:1e4}),{}}catch(n){let e=n.code,t=n.response;if((null==t?void 0:t.status)===504)return{error:"Error, check that daemon is running"};if((null==t?void 0:t.status)===401)return{error:"Error, wrong password"};if("ECONNABORTED"===e)return{error:"Error, daemon did not respond"};return{error:"Error, something went wrong"}}}function _6(e){let{appName:t,route:n,routes:r}=e,i=(0,c8.j0)(),{settings:o,setSettings:a}=(0,f1.Hv)(),{allowCustomApi:s}=o,l=(0,A.useMemo)(()=>({api:o.api,password:""}),[o.api]),u=(0,_J.cI)({mode:"onBlur",defaultValues:l});(0,A.useEffect)(()=>{u.clearErrors()},[s]);let c=(0,A.useCallback)(async e=>{let t="";if(s){let n=new URL(e.api);t="".concat(n.protocol,"//").concat(n.host)}let{error:c}=await _5({api:t,route:n,password:e.password});c?u.setError("password",{message:c}):(a({api:t,password:e.password,recentApis:{...o.recentApis,[t]:{lastUsed:new Date().getTime()}}}),i.push(i.query.prev?decodeURIComponent(i.query.prev):r.home),u.reset(l))},[s,u,i,r,o,a,l,n]),d=function(e){let{allowCustomApi:t}=e;return{api:{type:"text",title:"API",placeholder:"http://127.0.0.1:9980",validation:{validate:{required:e=>!t||!!e||"API is required",url:e=>{try{let t=new URL(e);return!!t.protocol&&!!t.host||"invalid API URL"}catch(e){return"invalid API URL"}},https:e=>{let t="https:"===window.location.protocol;return!t||t&&e.startsWith("https")||"API must use HTTPS"}}}},password:{type:"password",title:"Password",placeholder:"Enter password",validation:{required:"password is required"}}}}({allowCustomApi:s}),f=_2(d),h=u.formState.errors.api||u.formState.errors.password,p=(0,_3.Z)(Object.entries(o.recentApis),e=>{let[t,{lastUsed:n}]=e;return-n}).map(e=>{let[t]=e;return t});return(0,T.jsx)("div",{className:"flex flex-col items-center justify-center gap-6 h-full",children:(0,T.jsx)(na,{className:"relative top-[-50px] w-[300px] p-2.5",children:(0,T.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,T.jsxs)("div",{className:"flex justify-between items-center",children:[(0,T.jsx)(nr,{font:"mono",weight:"bold",size:"20",children:t}),(0,T.jsx)(c4,{trigger:(0,T.jsx)(lv,{icon:"hover",variant:"ghost",children:(0,T.jsx)(lg.shL,{})}),children:(0,T.jsx)(c3,{onSelect:()=>a({allowCustomApi:!s}),children:s?"Hide custom API":"Show custom API"})})]}),(0,T.jsx)(cq,{className:"w-full mt-2 mb-3"}),(0,T.jsx)("form",{onSubmit:u.handleSubmit(c,f),children:(0,T.jsxs)("div",{className:"flex flex-col gap-1.5",children:[s?(0,T.jsxs)(lH,{children:[(0,T.jsx)(_4,{name:"api",form:u,fields:d,group:!1}),p.length>1&&(0,T.jsx)(c4,{trigger:(0,T.jsx)(lv,{type:"button",children:(0,T.jsx)(lg.wGX,{})}),children:p.map(e=>(0,T.jsx)(c3,{onSelect:()=>u.setValue("api",e),children:e},e))})]}):null,(0,T.jsx)(_4,{name:"password",form:u,fields:d,group:!1}),h&&(0,T.jsx)(nr,{size:"14",color:"red",children:h.message}),(0,T.jsx)(S9,{size:"small",form:u,children:"Unlock"})]})})]})})})}var _8=n(7114),_7=n(24511);let _9={address:"",siacoin:void 0,includeFee:!1},Ce=_7.Ry().shape({address:_7.Z_().required("Required"),siacoin:_7.Z_().required("Required").test("greater than zero","Must be greater than zero",e=>!new(fX())(e||0).isZero())});function Ct(e){let{address:t,siacoin:n,fee:r,transactionId:i}=e,o=n.plus(r);return(0,T.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,T.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,T.jsx)(nr,{color:"verySubtle",noWrap:!0,children:"Address"}),(0,T.jsx)(Sw,{value:t,type:"address"})]}),(0,T.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,T.jsx)(nr,{color:"verySubtle",noWrap:!0,children:"Amount"}),(0,T.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,T.jsx)(SS,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,T.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,T.jsx)(nr,{color:"verySubtle",noWrap:!0,children:"Network fee"}),(0,T.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,T.jsx)(SS,{size:"14",value:r,variant:"value",dynamicUnits:!1})})]}),(0,T.jsxs)("div",{className:"flex items-center gap-2 justify-between",children:[(0,T.jsx)(nr,{color:"verySubtle",noWrap:!0,children:"Total"}),(0,T.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,T.jsx)(SS,{size:"14",value:o,variant:"value",dynamicUnits:!1})})]}),i&&(0,T.jsxs)("div",{className:"flex gap-6 items-center justify-between",children:[(0,T.jsx)(nr,{color:"verySubtle",noWrap:!0,children:"Transaction ID"}),(0,T.jsx)(Sw,{value:i,type:"transaction"})]})]})}function Cn(e){let{activeStep:t,steps:n,onChange:r}=e,i=n.findIndex(e=>e.id===t),o=n.length-1;return(0,T.jsxs)("div",{className:"relative w-full mt-8 mb-3",children:[(0,T.jsx)("div",{className:"absolute w-full h-1 bg-gray-500 dark:bg-graydark-500 rounded-lg"}),(0,T.jsx)("div",{className:"absolute h-1 bg-accent-800 dark:bg-accentdark-800 rounded-lg",style:{width:"".concat(i/o*100,"%")}}),n.map((e,n)=>{let{id:a,label:s}=e,l=t===a,u=i>=n,c=n===o,d=0===n,f=u&&i!==o;return(0,T.jsxs)("div",{className:(0,eC.cx)("absolute h-2 w-2 -top-0.5",f?"cursor-pointer":"cursor-default"),style:{left:"calc(".concat(n/o*100,"% - ").concat(c?8:d?0:4,"px)")},onClick:()=>{f&&r(a)},children:[(0,T.jsx)(nr,{color:l?"contrast":"verySubtle",className:(0,eC.cx)("absolute top-[-30px]",d?"left-0":"",c?"right-0":"",d||c?"":"-translate-x-1/2"),noWrap:!0,children:s}),(0,T.jsx)("div",{className:(0,eC.cx)("absolute left-0 top-0 h-full w-full rounded-lg border",u?"bg-accent-800 dark-accentdark-800":"bg-gray-500 dark:bg-graydark-500",u?"border-accent-900 dark:border-accentdark-900":"border-gray-600 dark:border-graydark-600")}),l&&(0,T.jsx)("div",{className:"absolute left-0 top-0 h-full w-full rounded-lg bg-accent-800 dark:bg-accentdark-800 animate-pingslow"})]},a)})]})}function Cr(e){let{data:{address:t,siacoin:n},fee:r,transactionId:i}=e;return(0,T.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,T.jsx)(Ct,{address:t,siacoin:n,fee:r,transactionId:i}),(0,T.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 my-4",children:[(0,T.jsx)(nr,{children:(0,T.jsx)(lg.Z$8,{})}),(0,T.jsx)(nr,{children:"Transaction successfully broadcasted."})]})]})}let Ci=(0,v4.qN)(.00393),Co={address:"",siacoin:new(fX())(0),includeFee:!1};function Ca(e){let{trigger:t,open:n,onOpenChange:r,balance:i,send:o}=e,[a,s]=(0,A.useState)("setup"),[l,u]=(0,A.useState)(),[c,d]=(0,A.useState)(Co),f=function(e){let{balance:t,fee:n,onComplete:r}=e,i=(0,_8.TA)({initialValues:_9,validationSchema:Ce,onSubmit:async e=>{if(!e.siacoin)return;let o=e.includeFee?(0,v4.qN)(e.siacoin).minus(n):(0,v4.qN)(e.siacoin);if(t){if(t.isLessThan((0,v4.qN)(e.siacoin).plus(n))){i.setStatus({error:"Not enough funds in wallet."});return}i.setStatus({}),r({includeFee:e.includeFee,address:e.address,siacoin:o})}}}),o=(0,v4.qN)(i.values.siacoin||0),a=(0,T.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,T.jsx)(_e,{formik:i,variants:{size:"medium"},title:"Address",name:"address",placeholder:"e3b1050aef388438668b52983cf78f40925af8f0aa8b9de80c18eadcefce8388d168a313e3f2",autoComplete:"off",type:"text"}),(0,T.jsx)(_e,{formik:i,title:"Siacoin",name:"siacoin",placeholder:"100",type:"siacoin"}),(0,T.jsxs)("div",{className:"flex items-center",children:[(0,T.jsx)(hg,{name:"includeFee",onCheckedChange:e=>i.setFieldValue("includeFee",e),children:"Include fee"}),(0,T.jsx)(f6,{children:"Include or exclude the network fee from the above transaction value."}),(0,T.jsx)("div",{className:"flex flex-1"})]}),(0,T.jsxs)("div",{className:"flex flex-col gap-2 my-1",children:[(0,T.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,T.jsx)(nr,{color:"verySubtle",children:"Network fee"}),(0,T.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,T.jsx)(SS,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,T.jsxs)("div",{className:"flex justify-between gap-2 items-center",children:[(0,T.jsx)(nr,{color:"verySubtle",children:"Total"}),(0,T.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,T.jsx)(SS,{size:"14",value:i.values.includeFee?o:o.plus(n),variant:"value",dynamicUnits:!1})})]})]})]});return{formik:i,form:a}}({balance:i,fee:Ci,onComplete:e=>{d(e),s("confirm")}}),h=function(e){let{send:t,formData:n,fee:r,onConfirm:i}=e,{address:o,siacoin:a}=n||{},s=(0,_8.TA)({initialValues:{},onSubmit:async()=>{let{transactionId:e,error:n}=await t({address:o,sc:a});if(n){s.setStatus({error:n});return}i({transactionId:e})}}),l=(0,T.jsx)("div",{className:"flex flex-col gap-4",children:(0,T.jsx)(Ct,{address:o,siacoin:a,fee:r})});return{form:l,formik:s}}({fee:Ci,formData:c,send:o,onConfirm:e=>{let{transactionId:t}=e;u(t),s("done")}}),p=(0,A.useMemo)(()=>"setup"===a?{submitLabel:"Generate transaction",formik:f.formik}:"confirm"===a?{submitLabel:"Broadcast transaction",formik:h.formik}:void 0,[a,f,h]);return(0,T.jsx)(ux,{trigger:t,open:n,onOpenChange:e=>{e||(f.formik.resetForm(),h.formik.resetForm(),s("setup")),r(e)},title:"Send siacoin",onSubmit:p?p.formik.handleSubmit:void 0,controls:p&&(0,T.jsx)("div",{className:"flex flex-col gap-1",children:(0,T.jsx)(_a,{formik:p.formik,children:p.submitLabel})}),contentVariants:{className:"w-[400px]"},children:(0,T.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,T.jsx)(Cn,{onChange:e=>s(e),activeStep:a,steps:[{id:"setup",label:"Setup"},{id:"confirm",label:"Confirm"},{id:"done",label:"Complete"}]}),(0,T.jsx)(cq,{className:"w-full mt-4"}),"setup"===a&&f.form,"confirm"===a&&h.form,"done"===a&&(0,T.jsx)(Cr,{data:c,fee:Ci,transactionId:l})]})})}let Cs="[a-fA-F\\d:]",Cl=e=>e&&e.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(Cs,")|(?<=").concat(Cs,")(?=\\s|$))"):"",Cu="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",Cc="[a-fA-F\\d]{1,4}",Cd="\n(?:\n(?:".concat(Cc,":){7}(?:").concat(Cc,"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:").concat(Cc,":){6}(?:").concat(Cu,"|:").concat(Cc,"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:").concat(Cc,":){5}(?::").concat(Cu,"|(?::").concat(Cc,"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:").concat(Cc,":){4}(?:(?::").concat(Cc,"){0,1}:").concat(Cu,"|(?::").concat(Cc,"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:").concat(Cc,":){3}(?:(?::").concat(Cc,"){0,2}:").concat(Cu,"|(?::").concat(Cc,"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:").concat(Cc,":){2}(?:(?::").concat(Cc,"){0,3}:").concat(Cu,"|(?::").concat(Cc,"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:").concat(Cc,":){1}(?:(?::").concat(Cc,"){0,4}:").concat(Cu,"|(?::").concat(Cc,"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::").concat(Cc,"){0,5}:").concat(Cu,"|(?::").concat(Cc,"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),Cf=new RegExp("(?:^".concat(Cu,"$)|(?:^").concat(Cd,"$)")),Ch=new RegExp("^".concat(Cu,"$")),Cp=new RegExp("^".concat(Cd,"$")),Cm=e=>e&&e.exact?Cf:RegExp("(?:".concat(Cl(e)).concat(Cu).concat(Cl(e),")|(?:").concat(Cl(e)).concat(Cd).concat(Cl(e),")"),"g");Cm.v4=e=>e&&e.exact?Ch:RegExp("".concat(Cl(e)).concat(Cu).concat(Cl(e)),"g"),Cm.v6=e=>e&&e.exact?Cp:RegExp("".concat(Cl(e)).concat(Cd).concat(Cl(e)),"g");let Cv=()=>RegExp("^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|((([a-zA-Z]|[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]).)+([A-Za-z|[A-Za-z][A-Za-z0-9‌​-]*[A-Za-z0-9])))$","g"),Cg={port:9981,ip:""},Cy=_7.Ry().shape({port:_7.Rx().required("Required").min(0,"Out of valid range").max(65535,"Out of valid range"),ip:_7.Z_().required("Required").test("ip","Invalid hostname or IP address",e=>Cv().test(e||""))});function Cb(e){let{trigger:t,open:n,connect:r,onOpenChange:i}=e,o=(0,_8.TA)({initialValues:Cg,validationSchema:Cy,onSubmit:async(e,t)=>{let n="".concat(e.ip,":").concat(e.port),o=await r(n);if(o.error){let e=o.error.replace("invalid peer address: address ".concat(n,":"),"");t.setStatus({error:e})}else Sr("Connected to peer"),t.resetForm(),i(!1)}});return(0,T.jsx)(ux,{trigger:t,title:"Connect peer",open:n,onOpenChange:e=>{e||o.resetForm(),i(e)},contentVariants:{className:"w-[400px]"},children:(0,T.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,T.jsx)(ni,{size:"14",children:"Connect to a peer by IP address."}),(0,T.jsx)("form",{onSubmit:o.handleSubmit,children:(0,T.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,T.jsx)(_e,{formik:o,title:"Address",name:"ip",placeholder:"host.acme.com or 127.0.0.1",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,T.jsx)(_e,{formik:o,title:"Port",name:"port",disableGroupSeparators:!0,placeholder:"9981",autoComplete:"off",type:"number",variants:{size:"medium"}}),(0,T.jsx)(_a,{formik:o,size:"medium",children:"Connect"})]})})]})})}function Cx(e){var t,n;let{id:r,transaction:i,trigger:o,open:a,onOpenChange:s}=e;return(0,T.jsx)(ux,{title:Sh((null==i?void 0:i.txType)?SJ(Sb(i.txType)):"Transaction",r,16),trigger:o,open:a,onOpenChange:s,contentVariants:{className:"w-[800px]"},children:i?(0,T.jsxs)("div",{className:"flex flex-col gap-4 pb-10 w-full overflow-hidden",children:[(0,T.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(null==i?void 0:i.inflow)!==void 0&&(0,T.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,T.jsx)(nr,{children:"Inflow"}),(0,T.jsx)(SS,{value:new(fX())((null==i?void 0:i.inflow)||0)})]}),(null==i?void 0:i.outflow)!==void 0&&(0,T.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,T.jsx)(nr,{children:"Outflow"}),(0,T.jsx)(SS,{value:new(fX())((null==i?void 0:i.outflow)||0).negated()})]}),(null==i?void 0:null===(t=i.raw)||void 0===t?void 0:t.minerFees)!==void 0&&(0,T.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,T.jsx)(nr,{children:"Miner fee"}),(0,T.jsx)(SS,{value:new(fX())((null==i?void 0:null===(n=i.raw.minerFees)||void 0===n?void 0:n.reduce((e,t)=>e.plus(t),new(fX())(0)))||0)})]}),(0,T.jsx)("div",{className:"flex-1"}),(0,T.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,T.jsx)(nr,{children:"Timestamp"}),(0,T.jsx)(nr,{children:(null==i?void 0:i.timestamp)?(0,v4.rN)((null==i?void 0:i.timestamp)||0,{timeStyle:"short"}):"Unconfirmed"})]})]}),(0,T.jsx)(lz,{children:JSON.stringify(null==i?void 0:i.raw,null,2)})]}):(0,T.jsx)(nr,{children:"Could not find transaction in wallet"})})}_7.Ry().shape({address:_7.Z_().required("Required"),description:_7.Z_().required("Required"),index:_7.Rx().integer().required("Required")});var Cw=n(38001);function Cj(e){let{title:t,description:n,address:r}=e;return(0,T.jsxs)("div",{className:"flex flex-col gap-4 items-center justify-center",children:[t&&(0,T.jsx)(de,{size:"20",font:"mono",children:t}),n&&(0,T.jsx)(nr,{children:n}),(0,T.jsx)("div",{className:"relative p-[5px] bg-white h-[210px] w-[210px]",children:(0,T.jsx)("div",{className:"absolute",children:(0,T.jsx)(Cw.Z,{size:200,value:r})})}),(0,T.jsx)(Sw,{type:"address",value:r})]})}function Ck(e){let{address:t,isValidating:n,trigger:r,open:i,onOpenChange:o}=e;return(0,T.jsx)(ux,{title:Sh("Address",Sf(t)||"",16),trigger:r,open:i,onOpenChange:o,contentVariants:{className:"w-[400px]"},children:(0,T.jsx)("div",{className:"flex flex-col gap-4",children:t||n?(0,T.jsx)(Cj,{address:t||""}):(0,T.jsx)(nr,{children:"Could not retreive wallet address"})})})}function CE(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i}=e;return t?n?null:(0,T.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,T.jsx)(nr,{color:"amber",children:(0,T.jsx)(lg.qdM,{})}),(0,T.jsxs)(nr,{size:"14",children:["Wallet is scanning (",i,"%), transaction data may be incomplete."]})]}):(0,T.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,T.jsx)(nr,{color:"amber",children:(0,T.jsx)(lg.qdM,{})}),(0,T.jsxs)(nr,{size:"14",children:["Blockchain is syncing (",r,"%), transaction data may be incomplete."]})]})}let CS={blog:"https://blog.sia.tech",docs:{index:"https://docs.sia.tech",sia101:"https://docs.sia.tech/get-started-with-sia/sia101",renterd:"https://docs.sia.tech/renting/about-renting",hostd:"https://docs.sia.tech/hosting/about-hosting-on-sia",walletd:"https://docs.sia.tech/wallet/wallet-overview",renting:"https://docs.sia.tech/renting/about-renting",wallet:"https://docs.sia.tech/wallet/wallet-overview",hosting:"https://docs.sia.tech/hosting/about-hosting-on-sia",mining:"https://docs.sia.tech/mining/about-mining-on-sia",embarcadero:"https://github.com/SiaFoundation/embarcadero",siad:"https://api.sia.tech",siaui:"https://docs.sia.tech/your-sia-wallet/sia-ui-faqs",brand:"https://docs.sia.tech/sia-integrations/sia-brand-guidelines"},website:{index:"https://sia.tech",tos:"https://sia.tech/terms-of-service",privacy:"https://sia.tech/privacy-policy"},explore:{mainnet:"https://siascan.com",testnetZen:"https://zen.siascan.com",testnetZenFaucet:"https://zen.siascan.com/faucet"},design:"https://design.sia.tech",apiDocs:{renterd:"https://api.sia.tech/renterd",hostd:"https://api.sia.tech/hostd",walletd:"https://api.sia.tech/walletd"},github:{index:"https://github.com/SiaFoundation",embarcadero:"https://github.com/SiaFoundation/embarcadero",siad:"https://github.com/SiaFoundation/siad",renterd:"https://github.com/SiaFoundation/renterd",walletd:"https://github.com/SiaFoundation/walletd",hostd:"https://github.com/SiaFoundation/hostd",siaui:"https://gitlab.com/NebulousLabs/Sia-UI"},discord:"https://sia.tech/discord",twitter:"https://twitter.com/sia__foundation",bluesky:"https://bsky.app/profile/sia.tech",twitterHandle:"@sia__foundation",reddit:"https://reddit.com/r/siacoin",forum:"https://forum.sia.tech/",forumGrants:"https://forum.sia.tech/c/grants/",forumGrantsProposed:"https://forum.sia.tech/c/grants/proposed/",merch:"https://siagear.tech/",email:"hello@sia.tech",benchmarks:"https://benchmarks.sia.tech",storageStats:"https://hosts.siacentral.com/",hostTroubleshoot:"https://troubleshoot.siacentral.com/",coinmarketcap:"https://coinmarketcap.com/currencies/siacoin/",jobs:"https://siafoundation.homerun.co/"};function C_(){let{settings:e,setCurrency:t,currencyOptions:n}=(0,f1.Hv)();return(0,T.jsx)(he,{disabled:!e.siaCentral,value:e.currency.id,onChange:e=>t(e.currentTarget.value),children:n.map(e=>{let{id:t,label:n}=e;return(0,T.jsx)(ht,{value:t,children:n},t)})})}let CC=[{id:"sc",label:"Siacoin"},{id:"fiat",label:"Fiat"},{id:"bothPreferSc",label:"Both - prefer siacoin"},{id:"bothPreferFiat",label:"Both - prefer fiat"}];function CO(){let{settings:e,setSettings:t}=(0,f1.Hv)();return(0,T.jsx)(he,{disabled:!e.siaCentral,value:e.currencyDisplay,onChange:e=>t({currencyDisplay:e.currentTarget.value}),children:CC.map(e=>{let{id:t,label:n}=e;return(0,T.jsx)(ht,{value:t,children:n},t)})})}function CM(e){let{open:t,onOpenChange:n,securityEl:r,showGpuSetting:i}=e,{settings:o,setSettings:a,gpu:s}=(0,f1.Hv)();return(0,T.jsx)(ux,{open:t,title:"App preferences",onOpenChange:n,contentVariants:{className:"w-[450px]"},children:(0,T.jsxs)("div",{className:"flex flex-col gap-6 mb-2",children:[(0,T.jsx)("div",{className:"flex flex-col gap-4",children:(0,T.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,T.jsx)(nr,{size:"16",weight:"bold",children:"Display"}),(0,T.jsx)(ni,{size:"14",children:"Configure visual and locale display preferences."}),(0,T.jsx)(lE,{children:(0,T.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,T.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,T.jsx)(nr,{children:(0,T.jsx)(lg.RdX,{})}),(0,T.jsx)(de,{size:"20",className:"flex-1",children:"Currency display"}),(0,T.jsx)(CO,{})]}),(0,T.jsx)(ni,{size:"14",children:"Select whether you would like to see currency values in siacoin, fiat, or both. Fiat requires Sia Central third-party data enabled under Privacy."})]})}),(0,T.jsx)(lE,{children:(0,T.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,T.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,T.jsx)(nr,{children:(0,T.jsx)(lg.RdX,{})}),(0,T.jsx)(de,{size:"20",className:"flex-1",children:"Fiat"}),(0,T.jsx)(C_,{})]}),(0,T.jsx)(ni,{size:"14",children:"Select a fiat currency for price conversions from Siacoin. Requires Sia Central third-party data enabled under Privacy."})]})}),(0,T.jsx)(lE,{children:(0,T.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,T.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,T.jsx)(nr,{children:(0,T.jsx)(lg.RdX,{})}),(0,T.jsx)(de,{size:"20",className:"flex-1",children:"Theme"}),(0,T.jsx)(pG,{})]}),(0,T.jsx)(ni,{size:"14",children:"Switch between a dark or light mode, or follow your system's settings."})]})}),i&&(0,T.jsx)(lE,{children:(0,T.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,T.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,T.jsx)(nr,{children:(0,T.jsx)(lg.RdX,{})}),(0,T.jsx)(de,{size:"20",className:"flex-1",children:"GPU"}),(0,T.jsx)(hg,{disabled:!s.canGpuRender,checked:s.canGpuRender&&s.isGpuEnabled,onCheckedChange:s.setIsGpuEnabled,size:"medium"})]}),(0,T.jsxs)(ni,{size:"14",children:["Enable features that require a GPU."," ",s.canGpuRender?"":"This device does not support GPU rendering."]})]})})]})}),(0,T.jsx)(cq,{className:"w-full"}),(0,T.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,T.jsx)(nr,{size:"16",weight:"bold",children:"Security"}),(0,T.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,T.jsx)(ni,{size:"14",children:"Configure security preferences."}),(0,T.jsx)(lE,{children:(0,T.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,T.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,T.jsx)(nr,{children:(0,T.jsx)(lg.RdX,{})}),(0,T.jsx)(de,{size:"20",className:"flex-1",children:"Lock app"}),(0,T.jsx)(hg,{size:"medium",checked:o.autoLock,onCheckedChange:e=>a({autoLock:e})}),(0,T.jsxs)(he,{disabled:!o.autoLock,value:String(o.autoLockTimeout),onChange:e=>{a({autoLockTimeout:Number(e.currentTarget.value)})},children:[(0,T.jsx)(ht,{value:kq(5),children:"5 minutes"}),(0,T.jsx)(ht,{value:kq(10),children:"10 minutes"}),(0,T.jsx)(ht,{value:kq(20),children:"20 minutes"}),(0,T.jsx)(ht,{value:kq(30),children:"30 minutes"}),(0,T.jsx)(ht,{value:kq(60),children:"1 hour"})]})]}),(0,T.jsx)(ni,{size:"14",children:"Automatically lock the app after a certain period of inactivity."})]})}),r]})]}),(0,T.jsx)(cq,{className:"w-full"}),(0,T.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,T.jsx)(nr,{size:"16",weight:"bold",children:"Privacy"}),(0,T.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,T.jsx)(ni,{size:"14",children:"Configure privacy preferences. The app uses the third-party APIs listed below to improve the user experience. All third-party APIs are optional and can be toggled on or off."}),(0,T.jsx)(lE,{children:(0,T.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,T.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,T.jsx)(nr,{children:(0,T.jsx)(lg.RdX,{})}),(0,T.jsx)(de,{size:"20",className:"flex-1",children:"Sia Central"}),(0,T.jsx)(hg,{size:"medium",checked:o.siaCentral,onCheckedChange:e=>a({siaCentral:e})})]}),(0,T.jsx)(ni,{size:"14",children:"The app fetches Siacoin exchange rates from the Sia Central API."})]})})]})]}),(0,T.jsx)(cq,{className:"w-full"}),(0,T.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,T.jsx)(nr,{size:"16",weight:"bold",children:"Help"}),(0,T.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,T.jsx)(ni,{size:"14",children:"Find information about the Sia software at our website, documentation site, and on Github. Join our active Discord community for discussion and help troubleshooting issues."}),(0,T.jsxs)("div",{className:"flex gap-4",children:[(0,T.jsxs)(dd,{href:CS.website.index,target:"_blank",className:"flex items-center gap-1",children:[(0,T.jsx)(lg.lq1,{}),"Website"]}),(0,T.jsxs)(dd,{href:CS.docs.index,target:"_blank",className:"flex items-center gap-1",children:[(0,T.jsx)(lg.RdX,{}),"Docs"]}),(0,T.jsxs)(dd,{href:CS.github.index,target:"_blank",className:"flex items-center gap-1",children:[(0,T.jsx)(lg.Sfn,{}),"About"]}),(0,T.jsxs)(dd,{href:CS.discord,target:"_blank",className:"flex items-center gap-1",children:[(0,T.jsx)(lg.b47,{}),"Discord"]})]})]})]})]})})}function CT(e){let{balanceSc:t,isSynced:n,syncingMessage:r}=e;return t?n?(0,T.jsx)(_v,{side:"bottom",balanceSc:t,children:(0,T.jsx)(na,{className:"hidden sm:flex h-7 px-3 items-center",children:(0,T.jsx)(SO,{variant:"value",value:t.spendable.plus(t.unconfirmed),size:"12",showTooltip:!1})})}):(0,T.jsx)(lp,{content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,T.jsxs)(na,{className:"hidden sm:flex h-7 pl-2 pr-3 gap-1.5 items-center",children:[(0,T.jsx)(nr,{color:"amber",children:(0,T.jsx)(lg.qdM,{})}),(0,T.jsx)(SO,{variant:"value",value:t.spendable.plus(t.unconfirmed),size:"12",showTooltip:!1})]})}):null}function CA(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i,balanceSc:o,sendSiacoin:a,receiveSiacoin:s}=e;return(0,T.jsxs)(T.Fragment,{children:[o&&(0,T.jsx)(CT,{isSynced:t&&n,syncingMessage:t?"Wallet is scanning (".concat(i,"%), balance may be incorrect."):"Blockchain is syncing (".concat(r,"%), balance may be incorrect."),balanceSc:o}),s&&(0,T.jsxs)(lv,{size:"small",onClick:s,children:[(0,T.jsx)(lg.xHM,{}),"Receive"]}),(0,T.jsxs)(lv,{size:"small",variant:"accent",onClick:a,children:[(0,T.jsx)(lg.rW0,{}),"Send"]})]})}function CP(e,t){if(!e||!e.length)return[];let n=Object.keys(kW(e[0],"timestamp"));e.sort((e,t)=>e.timestamp>t.timestamp?1:-1);let r=[];return"delta"===t?e.forEach((t,i)=>{let o={...t};0!==i&&(n.forEach(n=>{let r=t[n],a=e[i-1][n];o[n]=r-a}),r.push(o))}):r=e,r}let CN={"5m":e=>{let t=e+kq(5);return"5m interval from ".concat((0,v4.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,v4.rN)(t,{timeStyle:"short",hour12:!1}))},"15m":e=>{let t=e+kq(15);return"15m interval from ".concat((0,v4.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,v4.rN)(t,{timeStyle:"short",hour12:!1}))},hourly:e=>{let t=e+36e5;return"Hour interval from ".concat((0,v4.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,v4.rN)(t,{timeStyle:"short",hour12:!1}))},daily:e=>{let t=e+864e5;return"Day interval from ".concat((0,v4.rN)(e)," to ").concat((0,v4.rN)(t))},weekly:e=>{let t=e+k$(7);return"Week interval from ".concat((0,v4.rN)(e)," to ").concat((0,v4.rN)(t))},monthly:e=>{let t=e+k$(30);return"Month interval from ".concat((0,v4.rN)(e)," to ").concat((0,v4.rN)(t))},yearly:e=>{let t=e+k$(365);return"Year interval from ".concat((0,v4.rN)(e)," to ").concat((0,v4.rN)(t))},default:e=>"".concat((0,v4.rN)(e))};function CR(e){return CN[e]||CN.default}function CD(e){if(!e||!e.length)return{};let t=Object.keys(kW(e[0],"timestamp"));e.sort((e,t)=>e.timestamp>t.timestamp?1:-1);let n=t.reduce((t,n)=>({...t,[n]:function(e,t){var n,r;let i=(null===(n=t[0])||void 0===n?void 0:n[e])||0,o=(null===(r=t[t.length-1])||void 0===r?void 0:r[e])||0,a=t.reduce((t,n)=>t+(n[e]||0),0);return CL({total:a,start:i,end:o,count:t.length})}(n,e)}),{});return{...n,total:function(e,t){let n=CZ(e,t[0]),r=CZ(e,t[t.length-1]),i=t.reduce((t,n)=>t+CZ(e,n),0);return CL({total:i,start:n,end:r,count:t.length})}(t,e)}}function CL(e){let{total:t,start:n,end:r,count:i}=e,o=r-n;return{total:t,diff:o,change:0===n?void 0:o/n*100,latest:r,average:t/i}}function CZ(e,t){return e.reduce((e,n)=>e+((null==t?void 0:t[n])||0),0)}function CF(e){let{balances:t,isLoading:n,chartType:r="area"}=e,{resolvedTheme:i}=(0,pK.F)(),o=(0,A.useMemo)(()=>"light"===i?{sc:{label:"siacoin",color:v2.accent[800]}}:{sc:{label:"siacoin",color:v2.accentdark[800]}},[i]),a=(0,A.useMemo)(()=>{let e=CP(t,"none"),i=CD(t);return{data:e,stats:i,config:{enabledGraph:["sc"],enabledTip:["sc"],data:{sc:o.sc},format:e=>(0,v4.Vz)(e),formatTimestamp:CR("default"),formatTickY:e=>(0,v4.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:r},isLoading:n}},[t,n,o,r]);return(0,T.jsx)("div",{className:"relative",children:(0,T.jsx)(k8,{id:"balance",height:200,allowConfiguration:!1,data:a.data,config:a.config})})}function Cz(e){let{peers:t,isLoading:n,connectPeer:r}=e;return(0,T.jsx)(S4,{title:"Peers",actions:(0,T.jsx)(lv,{onClick:r,children:"Connect"}),isLoading:n,dataset:(null==t?void 0:t.map(e=>({type:"ip",hash:e})))||[]})}function CV(e){let{size:t,label:n,enabled:r=!0,onChange:i,color:o}=e;return(0,T.jsxs)("div",{className:(0,eC.cx)("flex gap-1.5 items-center",r?"opacity-100":"opacity-50",i?"cursor-pointer":"cursor-auto",i&&(r?"hover:opacity-90":"hover:opacity-60")),onClick:()=>i&&i(!r),children:[o&&(0,T.jsx)("div",{className:"relative top-px",children:(0,T.jsx)(ho,{style:{backgroundColor:o}})}),(0,T.jsx)(nr,{size:t,children:n})]})}function CI(e){let{children:t,variant:n,align:r}=e;return(0,T.jsx)("div",{className:"relative",style:{top:"primary"===n?"6px":void 0,left:"start"===r?"0px":void 0,right:"end"===r?"0px":void 0},children:(0,T.jsx)(nr,{size:"10",color:"primary"===n?"contrast":"verySubtle",dir:"start"===r?"rtl":"ltr",weight:"primary"===n?"semibold":"regular",ellipsis:!0,children:t})})}function CB(e){let{date:t,align:n,variant:r}=e;return t?(0,T.jsx)(CI,{variant:r,align:n,children:(0,v4.rN)(t)}):null}function CH(e){let{blockHeight:t,align:n,variant:r}=e;return t?(0,T.jsx)(CI,{variant:r,align:n,children:t.toLocaleString()}):null}function CU(e){let{label:t,currentHeight:n,range:r,startHeight:i,endHeight:o,color:a,align:s,rounded:l,className:u,showDates:c}=e;if(!i||!o)return null;let d=r.endHeight-r.startHeight,f=(0,v4.pp)(d),h=(0,v4.jr)(n,r.startHeight),p=(0,v4.jr)(n,i),m=(0,v4.jr)(n,o),v=(p-h)/f,g=(m-h)/f;return(0,T.jsxs)("div",{className:(0,eC.cx)("group flex items-center justify-center","absolute -top-[5px] h-4","cursor-pointer","transition-colors"),style:{left:CW(v),width:CW(g-v)},children:[(0,T.jsx)("div",{className:(0,eC.cx)("z-0 absolute w-full h-full","rounded-md","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10"),style:{width:"calc(100% + 8px)",left:"-4px"}}),(0,T.jsx)("div",{className:(0,eC.cx)("z-10 absolute w-full h-1.5",u,"start"===l?"rounded-l-lg":"end"===l?"rounded-r-lg":"rounded-lg","border-y","start"===l?"border-l":"end"===l?"border-r":"border","blue"===a?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-blue-500/50 dark:border-blue-500/50"]:[],"green"===a?["bg-green-300 dark:bg-green-300","group-hover:bg-green-400 dark:group-hover:bg-green-400","border-green-500/50 dark:border-green-500/50"]:[],"amber"===a?["bg-amber-300 dark:bg-amber-300","group-hover:bg-amber-400 dark:group-hover:bg-amber-400","border-amber-500/50 dark:border-amber-500/50"]:[])}),(0,T.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 bottom-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:CW(1-g)}:{left:CW(v)},children:[(0,T.jsx)(CH,{blockHeight:i,align:"start",variant:"primary"}),(0,T.jsx)(CI,{variant:"primary",children:t}),(0,T.jsx)(CH,{blockHeight:o,align:"end",variant:"primary"})]}),c&&(0,T.jsxs)("div",{className:"flex group-hover/segments:hidden absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:CW(1-g)}:{left:CW(v)},children:[(0,T.jsx)(CB,{date:p,align:"start",variant:"secondary"}),(0,T.jsx)(CB,{date:m,align:"start",variant:"secondary"})]}),(0,T.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:CW(1-g)}:{left:CW(v)},children:[(0,T.jsx)(CB,{date:p,align:"start",variant:"secondary"}),(0,T.jsx)(CB,{date:m,align:"start",variant:"secondary"})]})]})}function CW(e){return"".concat(100*e,"%")}function Cq(e){let{currentHeight:t,eventHeight:n,range:r,label:i,bottomLabel:o,color:a,className:s,unconfirmedPing:l=!0}=e,u=!!n&&n>t,c=n&&!u&&t-n<6,d=r.endHeight-r.startHeight,f=(0,v4.pp)(d),h=(0,v4.jr)(t,r.startHeight),p=n?(0,v4.jr)(t,n):0;return n?(0,T.jsx)("div",{className:(0,eC.cx)("group","absolute -top-[5px] w-4 h-4","flex items-center justify-center","rounded-full cursor-pointer","-translate-x-1/2",s),style:{left:"".concat(100*(p?(p-h)/f:0),"%")},children:(0,T.jsxs)("div",{className:(0,eC.cx)("relative w-full h-full","flex items-center justify-center","rounded-full cursor-pointer"),children:[l&&c&&(0,T.jsx)("div",{className:(0,eC.cx)("z-0 absolute w-1.5 h-1.5","rounded-full","bg-amber-500 dark:bg-amber-200","animate-pingslow")}),(0,T.jsx)("div",{className:(0,eC.cx)("z-0 absolute w-4 h-4","rounded-full","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10")}),(0,T.jsx)("div",{className:(0,eC.cx)("absolute w-1.5 h-1.5","rounded-full","border","green"===a?["bg-green-500 dark:bg-green-500","group-hover:bg-green-600 dark:group-hover:bg-green-600","border-white dark:border-white"]:[],"amber"===a?["bg-amber-500 dark:bg-amber-500","group-hover:bg-amber-600 dark:group-hover:bg-amber-600","border-white dark:border-white"]:[],"gray"===a?["bg-gray-700 dark:bg-graydark-900","group-hover:bg-gray-800 dark:group-hover:bg-graydark-800","border-white dark:border-white"]:[],"blue"===a?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-white dark:border-white"]:[])}),(0,T.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 bottom-[100%] left-1.5",children:[(0,T.jsx)(CH,{blockHeight:n,align:"start",variant:"primary"}),(0,T.jsx)(CI,{variant:"primary",children:i})]}),(0,T.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 top-[100%] left-1.5",children:[(0,T.jsx)(CB,{date:p,align:"start",variant:"secondary"}),o&&(0,T.jsx)(CI,{variant:"secondary",children:o})]})]})}):null}function C$(e){let{currentHeight:t,contractHeightStart:n,contractHeightEnd:r,proofWindowHeightStart:i,proofWindowHeightEnd:o,revisionHeight:a,proofHeight:s,range:l}=e,u=t-n<6;return(0,T.jsx)("div",{className:"group/main relative w-full",children:(0,T.jsx)("div",{className:"relative py-6",children:(0,T.jsxs)("div",{className:"relative z-10 h-1.5",children:[(0,T.jsx)("div",{className:"absolute h-full w-full bg-gray-300 dark:bg-graydark-400 rounded-lg"}),(0,T.jsxs)("div",{className:"group/segments",children:[(0,T.jsx)(CU,{label:"contract duration",currentHeight:t,startHeight:n,endHeight:r,range:l,color:"blue",align:"center",rounded:"start",className:u?"border-dotted opacity-50":"",showDates:!0}),(0,T.jsx)(CU,{label:"proof window",currentHeight:t,startHeight:i,endHeight:o,range:l,color:"green",align:"end",rounded:"end",className:u?"border-dotted opacity-50":""}),(0,T.jsx)(Cq,{label:"contract formation",bottomLabel:u?"unconfirmed":"",currentHeight:t,eventHeight:n,range:l,color:u?"amber":"blue",className:"z-20"}),(0,T.jsx)(Cq,{label:"last revision",currentHeight:t,eventHeight:a,range:l,color:"green",className:"z-20"}),(0,T.jsx)(Cq,{label:"storage proof",currentHeight:t,eventHeight:s,range:l,color:"green",className:"z-20"}),(0,T.jsx)(Cq,{label:"current block",currentHeight:t,eventHeight:t,range:l,color:"gray",className:"z-10",unconfirmedPing:!1})]})]})})})}var CK=n(90463),CY=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o-1},CJ=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r=200&&(o=C1.Z,a=!1,t=new CK.Z(t));t:for(;++i{e.stopPropagation(),i(n)},children:(0,T.jsx)(lg.xVB,{})}),(0,T.jsx)(lv,{icon:s?"contrast":"hover",tip:"".concat(t,": hide all"),variant:"ghost",onClick:e=>{e.stopPropagation(),o(n)},children:(0,T.jsx)(lg.pHg,{})})]})]})}function C9(e){let{title:t,children:n}=e;return(0,T.jsxs)("div",{className:"flex flex-col gap-6",children:[t&&(0,T.jsx)(de,{anchorLink:!0,size:"24",children:t}),(0,T.jsx)(na,{className:"p-6",children:(0,T.jsx)("div",{className:"flex flex-col gap-6",children:n})})]})}function Oe(e){let{title:t,description:n,control:r}=e;return(0,T.jsxs)("div",{className:"flex gap-10 justify-between",children:[(0,T.jsxs)("div",{className:"flex flex-col gap-2 max-w-[600px]",children:[(0,T.jsx)(de,{size:"20",children:t}),(0,T.jsx)(ni,{size:"14",children:n})]}),(0,T.jsx)("div",{className:"",children:r})]})}function Ot(e){let{open:t,params:n,trigger:r,onOpenChange:i}=e,{body:o,title:a,variant:s,action:l,onConfirm:u}=n||{},c=(0,_J.cI)(),d=(0,A.useCallback)(()=>{u&&u(),i(!1)},[u,i]);return(0,T.jsx)(ux,{title:a,trigger:r,open:t,onOpenChange:i,contentVariants:{className:"w-[400px]"},children:(0,T.jsx)("form",{onSubmit:c.handleSubmit(d),children:(0,T.jsxs)("div",{className:"flex flex-col gap-4",children:[o,(0,T.jsx)("div",{className:"flex gap-1 justify-end",children:(0,T.jsx)(S9,{variant:s,form:c,size:"small",children:l})})]})})})}function On(e){let{name:t,peerCount:n,isSynced:r,nodeBlockHeight:i,connectPeer:o}=e;return(0,T.jsxs)("div",{className:"flex justify-between items-center",children:[(0,T.jsx)(nr,{font:"mono",weight:"bold",size:"20",children:t}),(0,T.jsxs)("div",{className:"flex items-center",children:[n?(0,T.jsxs)(lv,{className:"relative left-2 only:left-0",variant:"ghost",onClick:o,tip:"".concat(n," connected peers"),children:[(0,T.jsx)(nr,{color:"subtle",children:n.toLocaleString()}),(0,T.jsx)(lg.RK4,{})]}):null,i&&r?(0,T.jsx)(lp,{content:"Blockchain is synced",children:(0,T.jsx)("div",{className:"relative left-2",children:(0,T.jsxs)(lv,{variant:"ghost",state:"waiting",children:[(0,T.jsx)(nr,{color:"subtle",children:i.toLocaleString()}),(0,T.jsx)(nr,{color:"green",children:(0,T.jsx)(lg.Y3p,{})})]})})}):null]})]})}function Or(e){let{nodeBlockHeight:t,networkBlockHeight:n,moreThan100BlocksToSync:r,percent:i}=e;return(0,T.jsxs)("div",{className:"flex flex-col justify-between h-full mb-1",children:[(0,T.jsx)(dG,{variant:"accent",value:t&&n?t:0,max:n||1,className:""}),(0,T.jsxs)("div",{className:"flex justify-between mt-1.5",children:[(0,T.jsx)(nr,{color:"subtle",size:"10",children:"Syncing..."}),t&&n?r?(0,T.jsx)(nr,{color:"subtle",size:"10",children:"".concat(t.toLocaleString()," / ").concat(n.toLocaleString()," (").concat(i,"%)")}):(0,T.jsx)(nr,{color:"subtle",size:"10",children:"(".concat(i,"%)")}):null]})]})}function Oi(e){let{name:t,peerCount:n,connectPeer:r,isSynced:i,syncPercent:o,nodeBlockHeight:a,estimatedBlockHeight:s,firstTimeSyncing:l,moreThan100BlocksToSync:u,children:c}=e;return(0,T.jsx)(pi,{rootProps:{openDelay:100,closeDelay:1e3},contentProps:{side:"right",align:"start",sideOffset:5,className:"!max-w-none"},trigger:(0,T.jsxs)("div",{className:"relative hover:scale-105 transition-transform",children:[i||100===o||0===o?null:(0,T.jsx)("div",{className:"absolute -bottom-2.5 w-full flex justify-center",children:(0,T.jsxs)(nr,{className:"bg-amber-500 py-px px-1 rounded-sm scale-75",size:"10",children:[o,"%"]})}),(0,T.jsx)(dp,{size:30})]}),children:(0,T.jsxs)("div",{className:"flex flex-col gap-2 px-1 pt-1 pb-2 w-[350px]",children:[(0,T.jsx)(On,{nodeBlockHeight:a,isSynced:i,name:t,peerCount:n,connectPeer:r}),i?(0,T.jsx)(cq,{className:"w-full mb-0.5"}):(0,T.jsx)(Or,{percent:o,nodeBlockHeight:a,networkBlockHeight:s,moreThan100BlocksToSync:u}),l&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(nr,{color:"contrast",size:"14",children:"Welcome to Sia! The blockchain is syncing to the current network height. Depending on your system this process may take a while."}),(0,T.jsx)(cq,{className:"w-full mb-1"})]}),c]})})}function Oo(e){let{testnetName:t}=e;return(0,T.jsxs)("div",{className:"flex gap-2 items-center justify-center py-2 px-3 bg-amber-600 dark:bg-amber-500",children:[(0,T.jsx)(nr,{color:"lo",children:(0,T.jsx)(lg.RdX,{})}),(0,T.jsxs)(nr,{size:"14",color:"lo",children:["You are on the ",t,"."]})]})}function Oa(e){let{type:t,label:n,link:r,tip:i,icon:o,value:a,onClick:s,decimalsLimit:l,units:u}=e;return(0,T.jsxs)("div",{className:"flex justify-between items-center",children:[(0,T.jsx)(lp,{align:"start",side:"bottom",content:i,children:(0,T.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,T.jsx)(nr,{className:"flex relative",children:o||(0,T.jsx)(lg.RdX,{})}),(0,T.jsx)(nr,{size:"12",ellipsis:!0,children:r?(0,T.jsx)(dd,{href:r,target:"_blank",children:n}):n})]})}),(0,T.jsx)("div",{className:(0,eC.cx)("flex items-center",s?"cursor-pointer":""),onClick:()=>{s&&s(a)},children:"siacoin"===t?(0,T.jsx)(SS,{value:a,variant:"value",size:"12",fixed:l,dynamicUnits:!1,showTooltip:!1}):(0,T.jsx)(SM,{value:a,variant:"value",size:"12",format:e=>"".concat(fQ(e,l)," ").concat(u)})})]})}function Os(e){let{name:t,form:n,fields:r}=e,i=r[t],{average:o,suggestion:a,placeholder:s,units:l,suggestionTip:u,averageTip:c,after:d,decimalsLimitSc:f=6,decimalsLimitFiat:h=6,tipsDecimalsLimitSc:p=0}=i,{setValue:m,value:v,error:g}=_1({name:t,field:i,form:n}),y=d||(()=>null),b=(0,A.useMemo)(()=>s?new(fX())(s):a&&"boolean"!=typeof a?new(fX())(a):void 0,[s,a]);return(0,T.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,T.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,T.jsx)(f3,{name:t,size:"small",sc:v,units:l,decimalsLimitSc:f,decimalsLimitFiat:h,error:g,changed:n.formState.dirtyFields[t],placeholder:b,onChange:e=>{m(e,!0)},onBlur:()=>{m(v,!0)}}),(0,T.jsx)(y,{name:t,form:n,fields:r}),o&&(0,T.jsx)(Oa,{type:"siacoin",label:"Network average",tip:c||"Averages provided by Sia Central.",decimalsLimit:p,value:(0,v4.qN)(o),onClick:()=>{m(o,!0)}}),a&&u&&(0,T.jsx)(Oa,{type:"siacoin",label:"Suggestion",tip:u,decimalsLimit:p,value:(0,v4.qN)(a),onClick:()=>{m(a,!0)}})]}),(0,T.jsx)("div",{className:"h-[20px]",children:(0,T.jsx)(S8,{form:n,name:t})})]})}function Ol(e){let{name:t,form:n,fields:r}=e,i=r[t],{average:o,averageTip:a,suggestion:s,suggestionTip:l,decimalsLimit:u=2,placeholder:c,units:d}=i,{setValue:f,value:h,error:p}=_1({form:n,field:i,name:t}),m=(0,A.useMemo)(()=>c?new(fX())(c):s&&"boolean"!=typeof s?new(fX())(s):void 0,[c,s]);return(0,T.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,T.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,T.jsx)(fJ,{name:t,value:h,units:d,decimalsLimit:u,placeholder:m,state:p?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:e=>{let t=void 0!==e?new(fX())(e):void 0;f(t,!0)},onBlur:()=>{f(h,!0)}}),(0,T.jsxs)("div",{className:"flex flex-col gap-2",children:[o&&(0,T.jsx)(Oa,{type:"number",label:"Network average",tip:a||"Averages provided by Sia Central.",decimalsLimit:u,value:o,units:d,onClick:()=>{f(o,!0)}}),s&&l&&(0,T.jsx)(Oa,{type:"number",label:"Suggestion",tip:l,decimalsLimit:u,value:s,units:d,onClick:()=>{f(s,!0)}})]})]}),(0,T.jsx)("div",{className:"h-[20px]",children:(0,T.jsx)(S8,{form:n,name:t})})]})}function Ou(e){let{label:t,link:n,tip:r,value:i,onClick:o}=e;return(0,T.jsxs)("div",{className:"flex justify-between items-center",children:[(0,T.jsx)(lp,{align:"start",side:"bottom",content:r,children:(0,T.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,T.jsx)(nr,{className:"flex relative",children:(0,T.jsx)(lg.RdX,{})}),(0,T.jsx)(nr,{size:"12",children:n?(0,T.jsx)(dd,{href:n,target:"_blank",children:t}):t})]})}),(0,T.jsx)("div",{className:"flex cursor-pointer items-center",onClick:o,children:(0,T.jsx)(nr,{size:"12",children:(0,T.jsx)(lI,{children:i})})})]})}function Oc(e){let{name:t,form:n,fields:r,type:i}=e,o=r[t],{placeholder:a,suggestion:s,suggestionTip:l}=o,{ref:u,onChange:c,setValue:d,onBlur:f,error:h}=_1({name:t,form:n,field:o});return(0,T.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,T.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,T.jsx)(fM,{ref:u,name:t,placeholder:a,type:i,state:h?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:c,onBlur:f}),(0,T.jsx)("div",{className:"flex flex-col gap-2",children:s&&l&&(0,T.jsx)(Ou,{label:"Suggestion",tip:l,value:s,onClick:()=>{d(s,!0)}})})]}),(0,T.jsx)("div",{className:"h-[20px]",children:(0,T.jsx)(S8,{form:n,name:t})})]})}function Od(e){let{name:t,form:n,fields:r}=e,i=r[t],{suggestion:o,suggestionTip:a}=i,{setValue:s,value:l,error:u}=_1({name:t,field:i,form:n});return(0,T.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,T.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,T.jsx)("div",{className:"flex justify-end w-full",children:(0,T.jsx)(hg,{name:t,size:"medium",checked:l,state:u?"invalid":n.formState.dirtyFields[t]?"valid":"default",onCheckedChange:e=>{s(e,!0)},onBlur:()=>{s(l,!0)}})}),(0,T.jsx)("div",{className:"flex flex-col gap-2",children:void 0!==o&&a&&(0,T.jsx)(Ou,{label:"Suggestion",tip:a,value:o?"on":"off",onClick:()=>{s(o,!0)}})})]}),(0,T.jsx)("div",{className:"h-[20px]",children:(0,T.jsx)(S8,{form:n,name:t})})]})}function Of(e){let{name:t,form:n,fields:r}=e,i=r[t],{options:o,suggestion:a,suggestionTip:s}=i,{ref:l,onChange:u,setValue:c,onBlur:d,value:f,error:h}=_1({name:t,form:n,field:i});return(0,T.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,T.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,T.jsx)("div",{className:"flex justify-end w-full",children:(0,T.jsx)(he,{ref:l,name:t,size:"small",value:f,state:h?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:u,onBlur:d,children:null==o?void 0:o.map(e=>(0,T.jsx)(ht,{value:e.value,children:e.label},e.value))})}),(0,T.jsx)("div",{className:"flex flex-col gap-2",children:void 0!==a&&s&&(0,T.jsx)(Ou,{label:"Suggestion",tip:s,value:a?"on":"off",onClick:()=>{c(a,!0)}})})]}),(0,T.jsx)("div",{className:"h-[20px]",children:(0,T.jsx)(S8,{form:n,name:t})})]})}function Oh(e){let{title:t,category:n,form:r,fields:i}=e,o=Object.entries(i).filter(e=>{let[t,i]=e;return i.category===n&&!i.hidden&&(!i.show||i.show(r.getValues()))});return 0===o.length?null:(0,T.jsx)(C9,{title:t,children:o.map((e,t)=>{let[n,a]=e;return(0,T.jsxs)(A.Fragment,{children:[(0,T.jsx)(Oe,{title:a.title,description:a.description,control:"number"===a.type?(0,T.jsx)(Ol,{form:r,name:n,fields:i}):"siacoin"===a.type?(0,T.jsx)(Os,{form:r,name:n,fields:i}):"text"===a.type?(0,T.jsx)(Oc,{form:r,name:n,fields:i}):"password"===a.type?(0,T.jsx)(Oc,{form:r,type:"password",fields:i,name:n}):"boolean"===a.type?(0,T.jsx)(Od,{form:r,name:n,fields:i}):"select"===a.type?(0,T.jsx)(Of,{form:r,name:n,fields:i}):null}),t{l(e,!0)},onBlur:()=>{l(u,!0)}}),a]});return o?(0,T.jsx)(S7,{title:s.title,name:t,form:n,children:d}):d}function Om(e){let{name:t,form:n,fields:r,size:i="small",group:o=!0}=e,a=r[t],{options:s}=a,{ref:l,onChange:u,onBlur:c,error:d}=_1({name:t,form:n,field:a}),f=(0,T.jsx)(he,{ref:l,name:t,size:i,state:d?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:u,onBlur:c,children:null==s?void 0:s.map(e=>(0,T.jsx)(ht,{value:e.value,children:e.label},e.value))});return o?(0,T.jsx)(S7,{title:a.title,name:t,form:n,children:f}):f}function Ov(e){let{form:t,remoteValues:n}=e,r=(0,A.useCallback)(()=>{if(t.formState.isSubmitting||!n)return;let e=t.getValues();for(let[r,i]of(t.reset(n),Object.entries(e)))t.setValue(r,i,{shouldDirty:!0})},[t,n]);(0,A.useEffect)(()=>{r()},[n])}function Og(e){let{form:t}=e,n=Object.entries(t.formState.dirtyFields).filter(e=>{let[t,n]=e;return!!n}).length;return{changeCount:n}}function Oy(e){let{form:t,remoteValues:n}=e,[r,i]=(0,A.useState)(!1),{isUnlockedAndAuthedRoute:o}=(0,f1.Hv)();(0,A.useEffect)(()=>{o||i(!1)},[o]),(0,A.useEffect)(()=>{!r&&n&&(i(!0),t.reset(n))},[n])}lg.lg1,lg.eHR,lg.I$H,lg.KiD,lg.P5r,lg.CCF,lg.w9S,lg.EL$,lg.aPl,lg.wEY,lg.EOT,lg.kSc,lg.W$S,lg.lJ7,lg.ORH,lg.ka0,lg.BdP,lg.d19,lg.Mes,lg.VUg,lg.U_S,lg.T85;let Ob=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,[a,s]=(0,A.useState)(!0),l=(0,A.useRef)(!1),u=(0,A.useRef)(0);return(0,A.useEffect)(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,A.createElement)(tK,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:(0,A.useCallback)(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:(0,A.useCallback)(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:(0,A.useCallback)(e=>{l.current=e},[]),disableHoverableContent:i},o)};function Ox(e){let{children:t}=e,[n,r]=(0,A.useState)(!1);return(0,A.useEffect)(()=>{r(!0)},[]),(0,T.jsx)("div",{children:n?t:null})}function Ow(e){let{className:t,passwordProtectRequestHooks:n,fallback:r,children:i,lockRoutes:o}=e;return(0,T.jsx)(Ox,{children:(0,T.jsx)(f1.kl,{fallback:r,children:(0,T.jsx)(pK.f,{attribute:"class",children:(0,T.jsx)(Ob,{children:(0,T.jsx)(f1.bW,{lockRoutes:o,passwordProtectRequestHooks:n,children:(0,T.jsxs)("div",{id:"root",className:t,children:[(0,T.jsx)(Sl,{}),i]})})})})})})}var Oj=Math.min,Ok=function(e,t,n){for(var r=n?CJ:CQ,i=e[0].length,o=e.length,a=o,s=Array(o),l=1/0,u=[];a--;){var c=e[a];a&&t&&(c=(0,kT.Z)(c,(0,C0.Z)(t))),l=Oj(c.length,l),s[a]=!n&&(t||i>=120&&c.length>=120)?new CK.Z(a&&c):void 0}c=e[0];var d=-1,f=s[0];t:for(;++d=200){var u=t?null:OO(e);if(u)return(0,OC.Z)(u);a=!1,i=C1.Z,l=new CK.Z}else l=t?[]:s;t:for(;++r{l(t=>t.includes(e)?t.filter(t=>t!==e):t.concat(e))},[l]),c=(0,A.useCallback)(e=>{l(t=>{var n;return(n=[...t,...e]).length?OM(n):[]})},[l]),d=(0,A.useCallback)(e=>{l(t=>C8(t,e))},[l]),f=(0,A.useCallback)(()=>{l(r)},[l,r]),h=(0,A.useMemo)(()=>n.filter(e=>{let t=null==a?void 0:a.includes(e.category||"");return!e.fixed&&!t}),[n,a]),p=(0,A.useMemo)(()=>n.filter(e=>{let t=e.fixed||s.includes(e.id),n=null==a?void 0:a.includes(e.category||"");return t&&!n}).map(e=>e.id),[n,s,a]),{sortField:m,sortDirection:v,setSortField:g,setSortDirection:y,toggleSort:b}=function(e,t){let{defaultSortField:n,sortOptions:r,enabledColumns:i}=t,[o,a]=(0,OT.Z)("".concat(e,"/sortField"),{defaultValue:n}),[s,l]=(0,OT.Z)("".concat(e,"/sortDirection"),{defaultValue:"desc"}),u=(0,A.useCallback)(e=>{if(o!==e){a(e),l("asc");return}l(e=>"desc"===e?"asc":"desc")},[o,a,l]),c=(0,A.useMemo)(()=>{if(!r)return[];let e=r.map(e=>e.id);return OS(e,i)},[r,i]);return{toggleSort:u,setSortDirection:l,setSortField:a,sortableColumns:c,sortField:o,sortDirection:s}}(e,{defaultSortField:i,sortOptions:o,enabledColumns:p}),x=(0,A.useMemo)(()=>{if(!o)return[];let e=o.map(e=>e.id);return OS(e,p)},[o,p]);return{configurableColumns:h,enabledColumns:p,toggleColumnVisibility:u,toggleSort:b,setSortDirection:y,setSortField:g,sortableColumns:x,sortField:m,setColumnsVisible:c,setColumnsHidden:d,sortDirection:v,resetDefaultColumnVisibility:f}}function ON(){let e=(0,c8.j0)(),[t,n]=(0,A.useState)([]),r=(0,A.useCallback)(t=>{n(e=>{let n=e.filter(e=>e.id!==t.id);return n.concat(t)}),e.replace({query:{}})},[e,n]),i=(0,A.useCallback)(()=>{n([]),e.replace({query:{}})},[e,n]),o=(0,A.useCallback)(t=>{n(e=>e.filter(e=>e.id!==t)),e.replace({query:{}})},[e,n]),a=(0,A.useCallback)(()=>{t.length&&(n(e=>e.slice(0,-1)),e.replace({query:{}}))},[e,n,t]);return{filters:t,setFilter:r,removeFilter:o,removeLastFilter:a,resetFilters:i}}function OR(e){let{dataset:t,filters:n,sortField:r,sortDirection:i}=e;return(0,A.useMemo)(()=>{if(!t)return null;let e=Object.entries(n).map(e=>{let[t,n]=e;return n}),o=e.length?t.filter(t=>{for(let n of e)if(!n.fn(t))return!1;return!0}):t;return[...o=o.sort((e,t)=>{let n=e[r],o=t[r];return"desc"===i?n instanceof fX()&&o instanceof fX()?n.lte(o)?1:-1:n<=o?1:-1:n instanceof fX()&&o instanceof fX()?n.gte(o)?1:-1:n>=o?1:-1})]},[t,n,r,i])}function OD(){let e=(0,c8.j0)(),[t,n]=(0,A.useState)([]),r=(0,A.useCallback)(()=>{let t={...e.query};delete t.limit,delete t.offset,e.replace({query:t})},[e]),i=(0,A.useCallback)(e=>{n(t=>{let n=t.filter(t=>t.id!==e.id);return n.concat(e)}),r()},[n,r]),o=(0,A.useCallback)(()=>{n([]),r()},[n,r]),a=(0,A.useCallback)(e=>{n(t=>t.filter(t=>t.id!==e)),r()},[n,r]),s=(0,A.useCallback)(()=>{t.length&&(n(e=>e.slice(0,-1)),r())},[t,n,r]);return{filters:t,setFilter:i,removeFilter:a,removeLastFilter:s,resetFilters:o}}let OL=new(fX())(0);function OZ(e){let{sc:t}=e,{settings:n}=(0,f1.Hv)(),r=(0,f2.BW)({config:{swr:{revalidateOnFocus:!1}}}),i=(0,A.useMemo)(()=>{var e;return n.siaCentral&&r.data?new(fX())((null===(e=r.data)||void 0===e?void 0:e.rates.sc[n.currency.id])||OL):OL},[r.data,n]),o=(0,A.useMemo)(()=>new(fX())(t).times(i),[t,i]);return i.isZero()?{}:{fiat:o,currency:n.currency}}function OF(e,t){let n=t.reduce((e,t)=>{let n=e.startHeight,r=e.endHeight;return t.contractHeightStartr&&(r=t.contractHeightEnd),{startHeight:n,endHeight:r}},{startHeight:e,endHeight:0});n.endHeight=Math.max(n.endHeight,e)+(0,v4.gU)(5),n.startHeight=n.startHeight-(0,v4.gU)(5);let r=[],i=n.startHeight;for(;i<=n.endHeight;)r.push(i),i+=k$(1);let o=r.reduce((e,t)=>({...e,[t]:{total:null,timestamp:t}}),{});return{allDatesMap:o,range:n}}let Oz=/^[a-z]{2}$/i;function OV(e){if(!Oz.test(e)){let t=typeof e;throw TypeError("cc argument must be an ISO 3166-1 alpha-2 string, but got '".concat("string"===t?e:t,"' instead."))}let t=[...e.toUpperCase()].map(e=>e.codePointAt()+127397);return String.fromCodePoint(...t)}},44114:function(e,t,n){"use strict";n.d(t,{Ee:function(){return l.a},Fb:function(){return a.a},j0:function(){return c.useRouter},jD:function(){return u.usePathname},rU:function(){return i.a},xj:function(){return u.useRouter}});var r=n(39097),i=n.n(r),o=n(97729),a=n.n(o),s=n(96577),l=n.n(s),u=n(82876),c=n(5632)},95753:function(e,t,n){"use strict";n.d(t,{bW:function(){return F},kl:function(){return Y},gw:function(){return o},Tc:function(){return q},du:function(){return $},Hv:function(){return Z},iv:function(){return H},rB:function(){return U},Nf:function(){return B},Tu:function(){return K},mw:function(){return V},q0:function(){return z},Tb:function(){return M},V1:function(){return I},Q5:function(){return W},D:function(){return P}});var r={};n.r(r),n.d(r,{getGPUTier:function(){return O}});var i=n(79381);function o(e){return new Promise(t=>setTimeout(t,e))}var a=n(89644),s=n.n(a),l=n(2784);function u(e){return{...e,config:{...null==e?void 0:e.config}}}function c(e){return{...e,config:{...null==e?void 0:e.config}}}function d(e){return{...e,config:{...null==e?void 0:e.config}}}function f(e,t,n){return(null==n?void 0:n.api)||(null==t?void 0:t.api)||e.api}function h(e,t,n){var r,i;let o=function(e,t,n){var r,i,o,a;let s={"Content-Type":"application/json",...null===(i=t.config)||void 0===i?void 0:null===(r=i.axios)||void 0===r?void 0:r.headers,...null==n?void 0:null===(a=n.config)||void 0===a?void 0:null===(o=a.axios)||void 0===o?void 0:o.headers},l=f(e,t,n);return e.api===l&&e.password&&(s.Authorization="Basic "+btoa(":".concat(e.password))),s}(e,t,n);return{responseType:"json",...null===(r=t.config)||void 0===r?void 0:r.axios,...null==n?void 0:null===(i=n.config)||void 0===i?void 0:i.axios,headers:o}}function p(e,t,n,r){if(!t)return null;let i=(null==n?void 0:n.params)||{};if(r&&r.params&&(i={...i,...r.params}),!(t=function(e,t){if(e&&t){let n=Object.keys(t);for(let r of n){let n=String(t[r]);e.includes(":".concat(r))?e=e.replace(":".concat(r),n):e.includes("?")?e+="&".concat(r,"=").concat(encodeURIComponent(n)):e+="?".concat(r,"=").concat(encodeURIComponent(n))}}return e}(t,i)))return null;let o=f(e,n,r);return o===e.api?"".concat(o,"/api").concat(t):"".concat(o).concat(t)}function m(e,t,n,r){let i=f(e,n,r);return i===e.api?t.replace("".concat(i,"/api"),""):t.replace(i,"")}var v=n(52322),g=n(44114),y=n(92762);function b(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}let x=["geforce 320m","geforce 8600","geforce 8600m gt","geforce 8800 gs","geforce 8800 gt","geforce 9400","geforce 9400m g","geforce 9400m","geforce 9600m gt","geforce 9600m","geforce fx go5200","geforce gt 120","geforce gt 130","geforce gt 330m","geforce gtx 285","google swiftshader","intel g41","intel g45","intel gma 4500mhd","intel gma x3100","intel hd 3000","intel q45","legacy","mali-2","mali-3","mali-4","quadro fx 1500","quadro fx 4","quadro fx 5","radeon hd 2400","radeon hd 2600","radeon hd 4670","radeon hd 4850","radeon hd 4870","radeon hd 5670","radeon hd 5750","radeon hd 6290","radeon hd 6300","radeon hd 6310","radeon hd 6320","radeon hd 6490m","radeon hd 6630m","radeon hd 6750m","radeon hd 6770m","radeon hd 6970m","sgx 543","sgx543"];function w(e){return e=e.toLowerCase().replace(/.*angle ?\((.+)\)(?: on vulkan [0-9.]+)?$/i,"$1").replace(/\s(\d{1,2}gb|direct3d.+$)|\(r\)| \([^)]+\)$/g,"").replace(/(?:vulkan|opengl) \d+\.\d+(?:\.\d+)?(?: \((.*)\))?/,"$1")}let j="undefined"==typeof window,k=(()=>{if(j)return;let{userAgent:e,platform:t,maxTouchPoints:n}=window.navigator,r=/(iphone|ipod|ipad)/i.test(e),i="iPad"===t||"MacIntel"===t&&n>0&&!window.MSStream;return{isIpad:i,isMobile:/android/i.test(e)||r||i,isSafari12:/Version\/12.+Safari/.test(e)}})();class E extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}let S=[],_=[];function C(e){return null!=e}let O=({mobileTiers:e=[0,15,30,60],desktopTiers:t=[0,15,30,60],override:n={},glContext:r,failIfMajorPerformanceCaveat:i=!1,benchmarksURL:o="https://unpkg.com/detect-gpu@5.0.34/dist/benchmarks"}={})=>b(void 0,void 0,void 0,function*(){let a={};if(j)return{tier:0,type:"SSR"};let{isIpad:s=!!(null==k?void 0:k.isIpad),isMobile:l=!!(null==k?void 0:k.isMobile),screenSize:u=window.screen,loadBenchmarks:c=e=>b(void 0,void 0,void 0,function*(){let t=yield fetch(`${o}/${e}`).then(e=>e.json());if(4>parseInt(t.shift().split(".")[0],10))throw new E("Detect GPU benchmark data is out of date. Please update to version 4x");return t})}=n,{renderer:d}=n,f=(e,t,n,r,i)=>({device:i,fps:r,gpu:n,isMobile:l,tier:e,type:t}),h,p="";if(d)h=[d=w(d)];else{var m;let e=r||function(e,t=!1){let n={alpha:!1,antialias:!1,depth:!1,failIfMajorPerformanceCaveat:t,powerPreference:"high-performance",stencil:!1};e&&delete n.powerPreference;let r=window.document.createElement("canvas"),i=r.getContext("webgl",n)||r.getContext("experimental-webgl",n);return null!=i?i:void 0}(null==k?void 0:k.isSafari12,i);if(!e)return f(0,"WEBGL_UNSUPPORTED");let t=e.getExtension("WEBGL_debug_renderer_info");if(t&&(d=e.getParameter(t.UNMASKED_RENDERER_WEBGL)),!d)return f(1,"FALLBACK");p=d,h="apple gpu"===(m=d=w(d))?function(e,t,n){let r;if(!n)return[t];let i=function(e){let t=e.createShader(35633),n=e.createShader(35632),r=e.createProgram();if(!(n&&t&&r))return;e.shaderSource(t,"\n precision highp float;\n attribute vec3 aPosition;\n varying float vvv;\n void main() {\n vvv = 0.31622776601683794;\n gl_Position = vec4(aPosition, 1.0);\n }\n "),e.shaderSource(n,"\n precision highp float;\n varying float vvv;\n void main() {\n vec4 enc = vec4(1.0, 255.0, 65025.0, 16581375.0) * vvv;\n enc = fract(enc);\n enc -= enc.yzww * vec4(1.0 / 255.0, 1.0 / 255.0, 1.0 / 255.0, 0.0);\n gl_FragColor = enc;\n }\n "),e.compileShader(t),e.compileShader(n),e.attachShader(r,t),e.attachShader(r,n),e.linkProgram(r),e.detachShader(r,t),e.detachShader(r,n),e.deleteShader(t),e.deleteShader(n),e.useProgram(r);let i=e.createBuffer();e.bindBuffer(34962,i),e.bufferData(34962,new Float32Array([-1,-1,0,3,-1,0,-1,3,0]),35044);let o=e.getAttribLocation(r,"aPosition");e.vertexAttribPointer(o,3,5126,!1,0,0),e.enableVertexAttribArray(o),e.clearColor(1,1,1,1),e.clear(16384),e.viewport(0,0,1,1),e.drawArrays(4,0,3);let a=new Uint8Array(4);return e.readPixels(0,0,1,1,6408,5121,a),e.deleteProgram(r),e.deleteBuffer(i),a.join("")}(e),o="801621810",a="8016218135",s="80162181161",l=(null==k?void 0:k.isIpad)?[["a7",s,12],["a8",a,15],["a8x",a,15],["a9",a,15],["a9x",a,15],["a10",a,15],["a10x",a,15],["a12",o,15],["a12x",o,15],["a12z",o,15],["a14",o,15],["m1",o,15]]:[["a7",s,12],["a8",a,12],["a9",a,15],["a10",a,15],["a11",o,15],["a12",o,15],["a13",o,15],["a14",o,15]];return"80162181255"===i?r=l.filter(([,,e])=>e>=14):(r=l.filter(([,e])=>e===i)).length||(r=l),r.map(([e])=>`apple ${e} gpu`)}(e,m,l):[m]}let v=(yield Promise.all(h.map(function(e){var t;return b(this,void 0,void 0,function*(){let n;let r=(e=>{let t=l?["adreno","apple","mali-t","mali","nvidia","powervr","samsung"]:["intel","apple","amd","radeon","nvidia","geforce"];for(let n of t)if(e.includes(n))return n})(e);if(!r)return;let i=`${l?"m":"d"}-${r}${s?"-ipad":""}.json`,o=a[i]=null!==(t=a[i])&&void 0!==t?t:c(i);try{n=yield o}catch(e){if(e instanceof E)throw e;return}let d=function(e){var t;let n=(e=e.replace(/\([^)]+\)/,"")).match(/\d+/)||e.match(/(\W|^)([A-Za-z]{1,3})(\W|$)/g);return null!==(t=null==n?void 0:n.join("").replace(/\W|amd/g,""))&&void 0!==t?t:""}(e),f=n.filter(([,e])=>e===d);f.length||(f=n.filter(([t])=>t.includes(e)));let h=f.length;if(0===h)return;let p=e.split(/[.,()\[\]/\s]/g).sort().filter((e,t,n)=>0===t||e!==n[t-1]).join(" "),m,[v,,,,g]=h>1?f.map(e=>[e,function(e,t){if(e===t)return 0;let n=e;e.length>t.length&&(e=t,t=n);let r=e.length,i=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i);)r--,i--;let o,a=0;for(;au?l>u?u+1:l:l>s?s+1:l;return u}(p,e[2])]).sort(([,e],[,t])=>e-t)[0][0]:f[0],y=Number.MAX_VALUE,{devicePixelRatio:b}=window,x=u.width*b*u.height*b;for(let e of g){let[t,n]=e,r=t*n,i=Math.abs(x-r);ie===n?t-r:e-n);if(!v.length){let e=x.find(e=>d.includes(e));return e?f(0,"BLOCKLISTED",e):f(1,"FALLBACK",`${d} (${p})`)}let[,g,y,O]=v[0];if(-1===g)return f(0,"BLOCKLISTED",y,g,O);let M=l?e:t,T=0;for(let e=0;e=M[e]&&(T=e);return f(T,"BENCHMARK",y,g,O)});function M(){var e,t;let n=null===(e=(t=window).matchMedia)||void 0===e?void 0:e.call(t,"(prefers-reduced-motion: reduce)");return!n||!!n.matches}let{getGPUTier:T}=r,A=(0,l.createContext)({}),P=()=>(0,l.useContext)(A);function N(e){let{children:t}=e,n=function(){let[e,t]=(0,l.useState)({}),n=(0,l.useCallback)((e,n)=>{t(t=>({...t,[e]:{key:e,...n}}))},[t]),r=(0,l.useCallback)(e=>{t(t=>(delete t[e],{...t}))},[t]),i=(0,l.useCallback)(()=>{t({})},[t]),o=(0,l.useMemo)(()=>Object.entries(e).map(e=>e[1]),[e]);return{setWorkflow:n,removeWorkflow:r,resetWorkflows:i,workflows:o}}();return(0,v.jsx)(A.Provider,{value:n,children:t})}let R=[{id:"usd",label:"USD",prefix:"$",fixed:2},{id:"cad",label:"CAD",prefix:"$",fixed:2},{id:"eur",label:"EUR",prefix:"€",fixed:2},{id:"gbp",label:"GBP",prefix:"\xa3",fixed:2},{id:"jpy",label:"JPY",prefix:"\xa5",fixed:2},{id:"aud",label:"AUD",prefix:"$",fixed:2},{id:"rub",label:"RUB",prefix:"₽",fixed:2},{id:"cny",label:"CNY",prefix:"\xa5",fixed:2},{id:"btc",label:"BTC",prefix:"₿",fixed:6},{id:"eth",label:"ETH",prefix:"Ξ",fixed:6}],D={api:"",allowCustomApi:!1,siaCentral:!0,password:void 0,currency:R[0],currencyDisplay:"bothPreferSc",recentApis:{},autoLock:!1,autoLockTimeout:6e5},L=(0,l.createContext)({}),Z=()=>(0,l.useContext)(L);function F(e){let{children:t,...n}=e,r=function(e){let{passwordProtectRequestHooks:t,lockRoutes:n,defaultSettings:r}=e,o=(0,l.useMemo)(()=>({...D,...r}),[r]),[a,s]=(0,y.Z)("v1/settings",{defaultValue:o});(0,l.useEffect)(()=>{s(e=>({...o,...e}))},[]);let u=(0,l.useMemo)(()=>({...o,...a}),[a,o]),{resetWorkflows:c}=P(),d=(0,l.useCallback)(e=>{s(t=>({...t,...e}))},[s]),f=(0,l.useCallback)(e=>{let t=R.find(t=>t.id===e);t&&d({currency:t})},[d]),h=(0,g.xj)(),p=(0,g.jD)(),[m,v]=(0,l.useState)({}),b=(0,l.useCallback)((e,t)=>{v(n=>({...n,[e]:t}))},[v]),x=(0,l.useCallback)(()=>{for(let[e,t]of(n&&h.push("".concat(n.login,"?prev=").concat([n.login].includes(p)?n.home:p)),d({password:""}),c(),(0,i.JG)(()=>!0,void 0,{revalidate:!1}),Object.entries(m)))t&&t()},[h,n,d,c,m,p]),w=function(e){let t=(0,g.jD)();return![e.login].includes(t)}({login:(null==n?void 0:n.login)||"/login"}),j=(0,l.useMemo)(()=>!!u.password,[u]),k=function(){let e=M(),[t,n]=(0,l.useState)(!1),[r,i]=(0,l.useState)(!1),[{isGpuEnabled:o,hasUserSet:a},s]=(0,y.Z)("v1/gpuFeatures",{defaultValue:{isGpuEnabled:!e,hasUserSet:!1}}),u=(0,l.useCallback)(function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];s(n=>({...n,isGpuEnabled:e,hasUserSet:t}))},[s]),c=(0,l.useCallback)(async()=>{let e=!1;{let t=await T();console.log("GPU",t),e=t.tier>0,!a&&t.tier<2&&u(!1,!1)}i(e),n(!0)},[i,u,a]);return(0,l.useEffect)(()=>{c()},[]),{hasCheckedGpu:t,canGpuRender:r,isGpuEnabled:o,shouldRender:r&&o,setCanGpuRender:i,setIsGpuEnabled:u}}();return{settings:u,setSettings:d,setCurrency:f,currencyOptions:R,gpu:k,lock:x,isUnlockedAndAuthedRoute:j&&w,passwordProtectRequestHooks:t,setOnLockCallback:b}}(n);return(0,v.jsx)(L.Provider,{value:r,children:t})}function z(e){var t;let n=(0,l.useMemo)(()=>c(e),[e]),{settings:r,passwordProtectRequestHooks:o}=Z(),a=p(r,n.route,n,void 0),u=(0,l.useMemo)(()=>{var t,i;return t=a?"".concat(a).concat(JSON.stringify(void 0!==e.payload?e.payload:"")):null,i=n.disabled||o&&!r.password,!t||i?null:t},[a,e,n,o,r]);return(0,i.ZP)(u,async()=>{if(!n.route)throw Error("No route");let t=h(r,n,void 0);if(!a)throw Error("No route");try{let n=await s().post(a,e.payload,t);return n.data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=n.config)||void 0===t?void 0:t.swr)}function V(e,t){let{setWorkflow:n,removeWorkflow:r}=P(),{mutate:o}=(0,i.kY)(),{settings:a}=Z(),l=u(e);return{post:async e=>{let i=d(e);try{let u;let c=h(a,l,i),d=p(a,l.route,l,i);if(!d)throw Error("No route");"payload"in i&&(u=i.payload);let f="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=m(a,d,e,i);n(f,{path:v,payload:u});let g=await s().post(d,u,c);return t&&await t(function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,r=arguments.length>2?arguments[2]:void 0;return o(n=>{if("string"!=typeof n)return!1;let r=m(a,n,e,i);return t(r)},n,r)},i,g),r(f),{status:g.status,data:g.data}}catch(e){var u,c;return{status:null===(u=e.response)||void 0===u?void 0:u.status,error:(null===(c=e.response)||void 0===c?void 0:c.data)||e.message}}}}}function I(e,t){let{mutate:n}=(0,i.kY)(),{settings:r}=Z(),{setWorkflow:o,removeWorkflow:a}=P(),l=u(e);return{put:async e=>{let i=d(e);try{let u;let c=h(r,l,i),d=p(r,l.route,l,i);if(!d)throw Error("No route");"payload"in i&&(u=i.payload);let f="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=m(r,d,e,i);o(f,{path:v,payload:u});let g=await s().put(d,u,c);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let o=m(r,n,e,i);return t(o)},o,a)},i,g),a(f),{status:g.status,data:g.data}}catch(e){var u,c;return{status:null===(u=e.response)||void 0===u?void 0:u.status,error:(null===(c=e.response)||void 0===c?void 0:c.data)||e.message}}}}}function B(e){var t,n,r;let o=(0,l.useMemo)(()=>c(e),[e]),{settings:a,passwordProtectRequestHooks:u}=Z(),d=p(a,o.route,o,void 0);return(0,i.ZP)((n=e.standalone?"".concat(e.standalone,"/").concat(d):d,r=o.disabled||u&&!a.password,!n||r?null:n),async()=>{if(!o.route)throw Error("No route");let e=h(a,o,void 0);if(!d)throw Error("No route");try{let t=await s().get(d,e);return t.data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=o.config)||void 0===t?void 0:t.swr)}function H(e,t){let{mutate:n}=(0,i.kY)(),{settings:r}=Z(),{setWorkflow:o,removeWorkflow:a}=P(),l=u(e);return{delete:async e=>{let i=d(e);try{let u=h(r,l,i),c=p(r,l.route,l,i);if(!c)throw Error("No route");let d=m(r,c,e,i);o(c,{path:d});let f=await s().delete(c,u);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let o=m(r,n,e,i);return t(o)},o,a)},i,f),a(c),{status:f.status,data:f.data}}catch(e){var u,c;return{status:null===(u=e.response)||void 0===u?void 0:u.status,error:(null===(c=e.response)||void 0===c?void 0:c.data)||e.message}}}}}function U(e){var t;let{get:n}=function(e){let{settings:t}=Z(),n=u(e);return{get:async e=>{let r=d(e);try{let e=h(t,n,r),i=p(t,n.route,n,r);if(!i)throw Error("No route");let o=await s().get(i,e);return{status:o.status,data:o.data}}catch(t){var i,o,a,l;let e=(null===(i=t.response)||void 0===i?void 0:i.data)instanceof Blob?await (null===(o=t.response)||void 0===o?void 0:o.data.text()):(null===(a=t.response)||void 0===a?void 0:a.data)||t.message;return{status:null===(l=t.response)||void 0===l?void 0:l.status,error:e}}}}}({...e,config:{...e.config,axios:{...null===(t=e.config)||void 0===t?void 0:t.axios,responseType:"blob"}}});return{get:async(e,t)=>{let r=await n(t);return r.data&&function(e,t){let n=URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download=e,document.body.appendChild(r),r.click(),setTimeout(()=>{document.body.removeChild(r),URL.revokeObjectURL(n)},100)}(e,r.data),r}}}function W(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,[n,r]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{if(n)return;let i=setInterval(()=>{e()&&(r(!0),clearInterval(i))},t);return()=>clearInterval(i)},[e,n,t]),n}function q(){return Math.round((new Date().getTime()-14336e8)/6e5)}function $(){return Math.round((new Date().getTime()-16736e8)/6e5)}function K(e){let{settings:t}=Z();return(0,l.useMemo)(()=>function(n,r,o){return(0,i.JG)(r=>{if("string"!=typeof r)return!1;let i=m(t,r,e,void 0);return n(i)},r,o)},[t,e])}function Y(e){let{fallback:t,cacheProvider:n,children:r}=e;return(0,v.jsx)(N,{children:(0,v.jsx)(i.J$,{value:{fallback:t||{},provider:n},children:r})})}},88242:function(e,t,n){"use strict";function r(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 i(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{aXP:function(){return t7},eHR:function(){return no},xHM:function(){return na},L6f:function(){return ns},rW0:function(){return nl},osk:function(){return nu},JaG:function(){return nc},wWN:function(){return or},Dkj:function(){return oh},fi8:function(){return on},EMN:function(){return nb},bdU:function(){return nx},VUy:function(){return nw},Cp0:function(){return nj},kqg:function(){return nk},Mes:function(){return nE},oce:function(){return n_},uTh:function(){return nS},DI$:function(){return nO},NlZ:function(){return nV},Y3p:function(){return nB},Z$8:function(){return nI},tEK:function(){return nH},cRw:function(){return nU},F3j:function(){return nW},PcV:function(){return n$},QN4:function(){return nq},Jsc:function(){return nK},bQp:function(){return nG},Y9T:function(){return nY},wEY:function(){return nJ},olJ:function(){return n0},KiD:function(){return n4},B4q:function(){return n7},_Eq:function(){return n3},VHe:function(){return oc},Jrl:function(){return n9},aPl:function(){return re},kBK:function(){return ol},c_L:function(){return ri},Bpb:function(){return ro},vzB:function(){return ra},iG7:function(){return rd},nDH:function(){return rf},d19:function(){return rh},w9S:function(){return rp},VBo:function(){return oi},q0D:function(){return rb},Hb6:function(){return ry},CCF:function(){return rx},L37:function(){return rk},ROc:function(){return od},UG6:function(){return ou},lq1:function(){return rE},zvn:function(){return oo},EL$:function(){return r_},BdP:function(){return rP},e1T:function(){return rN},P5r:function(){return rR},RdX:function(){return rD},U_S:function(){return rL},V8Q:function(){return rB},POp:function(){return rH},nCM:function(){return rq},kSc:function(){return rW},TtX:function(){return rU},mBM:function(){return os},Lur:function(){return rG},b47:function(){return rX},Sfn:function(){return rQ},W$S:function(){return r3},T85:function(){return r5},c6N:function(){return r6},Ckx:function(){return r8},EOT:function(){return r7},RK4:function(){return ie},XJM:function(){return io},RRj:function(){return ia},ka0:function(){return is},hzZ:function(){return ic},n6M:function(){return id},VUg:function(){return ig},owP:function(){return iy},Fs9:function(){return ib},wGX:function(){return ix},Wet:function(){return iE},Zbu:function(){return iS},ZEk:function(){return i_},$Iz:function(){return iA},UBs:function(){return iP},shL:function(){return iN},hiv:function(){return iR},mli:function(){return iL},lJ7:function(){return of},ORH:function(){return iV},I98:function(){return iI},R$6:function(){return iB},JCW:function(){return iX},xVB:function(){return iQ},pHg:function(){return iJ},I$H:function(){return i1},HCc:function(){return i0},oaN:function(){return oa},qdM:function(){return i4},gFQ:function(){return i2},Gu6:function(){return i3},SmH:function(){return i7},RFr:function(){return i9},lg1:function(){return oe}});var a,s,l,u,c,d,f,h,p,m,v,g,y,b,x,w,j,k,E,S,_,C,O,M,T,A,P,N,R,D,L,Z,F,z,V,I,B,H,U,W,q,$,K,Y,G,X,Q,J,ee,et,en,er,ei,eo,ea,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,eb,ex,ew,ej,ek,eE,eS,e_,eC,eO,eM,eT,eA,eP,eN,eR,eD,eL,eZ,eF,ez,eV,eI,eB,eH,eU,eW,eq,e$,eK,eY,eG,eX,eQ,eJ,e0,e1,e2,e4,e3,e5,e6,e8,e7,e9,te,tt,tn,tr,ti,to,ta,ts,tl,tu,tc,td,tf,th,tp,tm,tv,tg,ty,tb,tx,tw,tj,tk,tE,tS,t_,tC,tO,tM,tT,tA,tP,tN,tR,tD,tL,tZ,tF,tz,tV,tI,tB,tH,tU,tW,tq,t$,tK=["width","height","viewBox"],tY=["tabindex"],tG={focusable:"false",preserveAspectRatio:"xMidYMid meet"},tX=n(13980),tQ=n.n(tX),tJ=n(2784);function t0(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 t1(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var t3=["className","children","tabIndex"],t5=["tabindex"],t6=tJ.forwardRef(function(e,t){var n=e.className,r=e.children,a=e.tabIndex,s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,a=void 0===r?"0 0 ".concat(t," ").concat(n):r,s=o(e,tK),l=s.tabindex,u=o(s,tY),c=i(i(i({},tG),u),{},{width:t,height:n,viewBox:a});return c["aria-label"]||c["aria-labelledby"]||c.title?(c.role="img",null!=l&&(c.focusable="true",c.tabindex=l)):c["aria-hidden"]=!0,c}(t1(t1({},t4(e,t3)),{},{tabindex:a})),l=s.tabindex,u=t4(s,t5);return n&&(u.className=n),null!=l&&(u.tabIndex=l),t&&(u.ref=t),tJ.createElement("svg",u,r)});t6.displayName="Icon",t6.propTypes={"aria-hidden":tQ().string,"aria-label":tQ().string,"aria-labelledby":tQ().string,children:tQ().node,className:tQ().string,height:tQ().oneOfType([tQ().number,tQ().string]),preserveAspectRatio:tQ().string,tabIndex:tQ().string,viewBox:tQ().string,width:tQ().oneOfType([tQ().number,tQ().string]),xmlns:tQ().string},t6.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"};var t8=["children"],t7=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,t8);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),a||(a=tJ.createElement("path",{d:"M17 15L17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z"})),n)}),t9=["children"],ne=["children"],nt=["children"],nn=["children"],nr=["children"],ni=["children"],no=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,t9);return tJ.createElement(t6,t2({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),s||(s=tJ.createElement("path",{d:"M14 19H18V21H14z"})),l||(l=tJ.createElement("path",{d:"M6,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V2ZM24,28H8V16H24Zm0-14H8V10H24ZM8,8V4H24V8Z"})),n)}),na=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,ne);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),u||(u=tJ.createElement("path",{d:"M22 26L22 24 9.41 24 26 7.41 24.59 6 8 22.59 8 10 6 10 6 26 22 26z"})),n)}),ns=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,nt);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),c||(c=tJ.createElement("path",{d:"M22 6L22 8 9.41 8 26 24.59 24.59 26 8 9.41 8 22 6 22 6 6 22 6z"})),n)}),nl=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,nn);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),d||(d=tJ.createElement("path",{d:"M10 6L10 8 22.59 8 6 24.59 7.41 26 24 9.41 24 22 26 22 26 6 10 6z"})),n)}),nu=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,nr);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),f||(f=tJ.createElement("path",{d:"M7.2,2.3c-1,4.4,1.7,8.7,6.1,9.8c0.1,0,0.1,0,0.2,0c-1.1,1.2-2.7,1.8-4.3,1.8c-0.1,0-0.2,0-0.2,0C5.6,13.8,3,11,3.2,7.7 C3.2,5.3,4.8,3.1,7.2,2.3 M8,1L8,1C4.1,1.6,1.5,5.3,2.1,9.1c0.6,3.3,3.4,5.8,6.8,5.9c0.1,0,0.2,0,0.3,0c2.3,0,4.4-1.1,5.8-3 c0.2-0.2,0.1-0.6-0.1-0.7c-0.1-0.1-0.2-0.1-0.3-0.1c-3.9-0.3-6.7-3.8-6.4-7.6C8.3,3,8.4,2.4,8.6,1.8c0.1-0.3,0-0.6-0.3-0.7 C8.1,1,8.1,1,8,1z"})),n)}),nc=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,ni);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),h||(h=tJ.createElement("path",{d:"M7.5 1H8.5V3.5H7.5z"})),p||(p=tJ.createElement("path",{d:"M10.8 3.4H13.3V4.4H10.8z",transform:"rotate(-45.001 12.074 3.922)"})),m||(m=tJ.createElement("path",{d:"M12.5 7.5H15V8.5H12.5z"})),v||(v=tJ.createElement("path",{d:"M11.6 10.8H12.6V13.3H11.6z",transform:"rotate(-45.001 12.077 12.075)"})),g||(g=tJ.createElement("path",{d:"M7.5 12.5H8.5V15H7.5z"})),y||(y=tJ.createElement("path",{d:"M2.7 11.6H5.2V12.6H2.7z",transform:"rotate(-45.001 3.929 12.078)"})),b||(b=tJ.createElement("path",{d:"M1 7.5H3.5V8.5H1z"})),x||(x=tJ.createElement("path",{d:"M3.4 2.7H4.4V5.2H3.4z",transform:"rotate(-45.001 3.926 3.925)"})),w||(w=tJ.createElement("path",{d:"M8,6c1.1,0,2,0.9,2,2s-0.9,2-2,2S6,9.1,6,8S6.9,6,8,6 M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z"})),n)}),nd=["children"],nf=["children"],nh=["children"],np=["children"],nm=["children"],nv=["children"],ng=["children"],ny=["children"],nb=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,nd);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),j||(j=tJ.createElement("path",{d:"M24 12L16 22 8 12z"})),n)}),nx=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,nf);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),k||(k=tJ.createElement("path",{d:"M20 24L10 16 20 8z"})),n)}),nw=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,nh);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),E||(E=tJ.createElement("path",{d:"M12 8L22 16 12 24z"})),n)}),nj=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,np);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),S||(S=tJ.createElement("path",{d:"M24 24L16 32 8 24zM8 8L16 0 24 8z"})),n)}),nk=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,nm);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),_||(_=tJ.createElement("path",{d:"M8 20L16 10 24 20z"})),n)}),nE=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,nv);return tJ.createElement(t6,t2({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),C||(C=tJ.createElement("path",{d:"M30,15H27.9492A12.0071,12.0071,0,0,0,17,4.0508V2H15V4.0508A12.0071,12.0071,0,0,0,4.0508,15H2v2H4.0508A12.0071,12.0071,0,0,0,15,27.9492V30h2V27.9492A12.0071,12.0071,0,0,0,27.9492,17H30ZM17,25.9492V22H15v3.9492A10.0166,10.0166,0,0,1,6.0508,17H10V15H6.0508A10.0166,10.0166,0,0,1,15,6.0508V10h2V6.0508A10.0166,10.0166,0,0,1,25.9492,15H22v2h3.9492A10.0166,10.0166,0,0,1,17,25.9492Z"})),n)}),nS=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,ng);return tJ.createElement(t6,t2({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),O||(O=tJ.createElement("path",{d:"M20.4761,8.0151,13.4473,4.2109a2.0076,2.0076,0,0,0-2.1158.2051L4,10.001V2H2V28a2,2,0,0,0,2,2H30V5.7354ZM28,20.209l-7.62,1.8022-7.0288-2.8838a1.99,1.99,0,0,0-2.022.37L4,25.8359v-4.455l8.375-9.4,7.0186,5.62a2.0155,2.0155,0,0,0,2.0459.2119L28,14.6025ZM12.5239,5.9849l7.03,3.8042a2.012,2.012,0,0,0,1.3408.16L28,8.2646v4.1138L20.6187,16.02,13.6,10.4a1.99,1.99,0,0,0-2.6885.2642L4,18.3838v-5.87ZM4.5513,28,12.62,20.9888l7.0288,2.8838a1.9977,1.9977,0,0,0,1.147.0771L28,22.2612V28Z"})),n)}),n_=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,ny);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),M||(M=tJ.createElement("path",{d:"M20.4761,8.0151,13.4473,4.2109a2.0076,2.0076,0,0,0-2.1158.2051L4,10.001V2H2V28a2,2,0,0,0,2,2H30V5.7354ZM28,20.209l-7.62,1.8022-7.0288-2.8838a1.99,1.99,0,0,0-2.022.37L4,25.8359v-4.455l8.375-9.4,7.0186,5.62a2.0155,2.0155,0,0,0,2.0459.2119L28,14.6025ZM12.5239,5.9849l7.03,3.8042a2.012,2.012,0,0,0,1.3408.16L28,8.2646v4.1138L20.6187,16.02,13.6,10.4a1.99,1.99,0,0,0-2.6885.2642L4,18.3838v-5.87ZM4.5513,28,12.62,20.9888l7.0288,2.8838a1.9977,1.9977,0,0,0,1.147.0771L28,22.2612V28Z"})),n)}),nC=["children"],nO=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,nC);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),T||(T=tJ.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z"})),A||(A=tJ.createElement("path",{fill:"none",d:"M14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z","data-icon-path":"inner-path"})),n)}),nM=["children"],nT=["children"],nA=["children"],nP=["children"],nN=["children"],nR=["children"],nD=["children"],nL=["children"],nZ=["children"],nF=["children"],nz=["children"],nV=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,nM);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),P||(P=tJ.createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),n)}),nI=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,nT);return tJ.createElement(t6,t2({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),N||(N=tJ.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"})),R||(R=tJ.createElement("path",{fill:"none",d:"M14 21.591L9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z","data-icon-path":"inner-path"})),n)}),nB=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,nA);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),D||(D=tJ.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"})),L||(L=tJ.createElement("path",{d:"M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z","data-icon-path":"inner-path",opacity:"0"})),n)}),nH=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,nP);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Z||(Z=tJ.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),F||(F=tJ.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),n)}),nU=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,nN);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),z||(z=tJ.createElement("path",{d:"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),n)}),nW=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,nR);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),V||(V=tJ.createElement("path",{d:"M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z"})),n)}),nq=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,nD);return tJ.createElement(t6,t2({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),I||(I=tJ.createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),n)}),n$=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,nL);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),B||(B=tJ.createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),n)}),nK=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,nZ);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),H||(H=tJ.createElement("path",{d:"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12 S22.6,28,16,28z"})),U||(U=tJ.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),n)}),nY=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,nF);return tJ.createElement(t6,t2({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),W||(W=tJ.createElement("path",{d:"M11 18L12.41 19.41 15 16.83 15 29 17 29 17 16.83 19.59 19.41 21 18 16 13 11 18z"})),q||(q=tJ.createElement("path",{d:"M23.5,22H23V20h.5a4.5,4.5,0,0,0,.36-9L23,11l-.1-.82a7,7,0,0,0-13.88,0L9,11,8.14,11a4.5,4.5,0,0,0,.36,9H9v2H8.5A6.5,6.5,0,0,1,7.2,9.14a9,9,0,0,1,17.6,0A6.5,6.5,0,0,1,23.5,22Z"})),n)}),nG=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,nz);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),$||($=tJ.createElement("path",{d:"M11 18L12.41 19.41 15 16.83 15 29 17 29 17 16.83 19.59 19.41 21 18 16 13 11 18z"})),K||(K=tJ.createElement("path",{d:"M23.5,22H23V20h.5a4.5,4.5,0,0,0,.36-9L23,11l-.1-.82a7,7,0,0,0-13.88,0L9,11,8.14,11a4.5,4.5,0,0,0,.36,9H9v2H8.5A6.5,6.5,0,0,1,7.2,9.14a9,9,0,0,1,17.6,0A6.5,6.5,0,0,1,23.5,22Z"})),n)}),nX=["children"],nQ=["children"],nJ=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,nX);return tJ.createElement(t6,t2({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Y||(Y=tJ.createElement("path",{d:"M31 16L24 23 22.59 21.59 28.17 16 22.59 10.41 24 9 31 16zM1 16L8 9 9.41 10.41 3.83 16 9.41 21.59 8 23 1 16z"})),G||(G=tJ.createElement("path",{d:"M5.91 15H26.080000000000002V17H5.91z",transform:"rotate(-75 15.996 16)"})),n)}),n0=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,nQ);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),X||(X=tJ.createElement("path",{d:"M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z"})),Q||(Q=tJ.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),n)}),n1=["children"],n2=["children"],n4=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,n1);return tJ.createElement(t6,t2({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),J||(J=tJ.createElement("path",{d:"M21,12V10H17V7H15v3H13a2.002,2.002,0,0,0-2,2v3a2.002,2.002,0,0,0,2,2h6v3H11v2h4v3h2V22h2a2.0023,2.0023,0,0,0,2-2V17a2.002,2.002,0,0,0-2-2H13V12Z"})),ee||(ee=tJ.createElement("path",{d:"M16,4A12,12,0,1,1,4,16,12.0353,12.0353,0,0,1,16,4m0-2A14,14,0,1,0,30,16,14.0412,14.0412,0,0,0,16,2Z"})),n)}),n3=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,n2);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),et||(et=tJ.createElement("circle",{cx:"22",cy:"24",r:"2"})),en||(en=tJ.createElement("path",{d:"M29.7769,23.4785A8.64,8.64,0,0,0,22,18a8.64,8.64,0,0,0-7.7769,5.4785L14,24l.2231.5215A8.64,8.64,0,0,0,22,30a8.64,8.64,0,0,0,7.7769-5.4785L30,24ZM22,28a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,22,28Z"})),er||(er=tJ.createElement("circle",{cx:"8",cy:"8",r:"1"})),ei||(ei=tJ.createElement("circle",{cx:"8",cy:"16",r:"1"})),eo||(eo=tJ.createElement("circle",{cx:"8",cy:"24",r:"1"})),ea||(ea=tJ.createElement("path",{d:"M5,21h7V19H5V13H21v3h2V5a2,2,0,0,0-2-2H5A2,2,0,0,0,3,5V27a2,2,0,0,0,2,2h7V27H5ZM5,5H21v6H5Z"})),n)}),n5=["children"],n6=["children"],n8=["children"],n7=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,n5);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),es||(es=tJ.createElement("path",{d:"M8 18H12V20H8zM14 18H18V20H14zM8 14H12V16H8zM14 22H18V24H14zM20 14H24V16H20zM20 22H24V24H20z"})),el||(el=tJ.createElement("path",{d:"M27,3H5A2.0025,2.0025,0,0,0,3,5V27a2.0025,2.0025,0,0,0,2,2H27a2.0025,2.0025,0,0,0,2-2V5A2.0025,2.0025,0,0,0,27,3Zm0,2,0,4H5V5ZM5,27V11H27l0,16Z"})),n)}),n9=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,n6);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eu||(eu=tJ.createElement("path",{d:"M12 12H14V24H12zM18 12H20V24H18z"})),ec||(ec=tJ.createElement("path",{d:"M4 6V8H6V28a2 2 0 002 2H24a2 2 0 002-2V8h2V6zM8 28V8H24V28zM12 2H20V4H12z"})),n)}),re=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,n8);return tJ.createElement(t6,t2({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ed||(ed=tJ.createElement("path",{d:"M8 4V8H4V4H8M2 2v8h8V2zM18 7v4H14V7h4M12 5v8h8V5zM8 16v4H4V16H8M2 14v8h8V14z"})),ef||(ef=tJ.createElement("path",{d:"M22,10v6H16v6H10v8H30V10Zm-4,8h4v4H18ZM16,28H12V24h4Zm6,0H18V24h4Zm6,0H24V24h4Zm0-6H24V18h4Zm-4-6V12h4v4Z"})),n)}),rt=["children"],rn=["children"],rr=["children"],ri=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,rt);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eh||(eh=tJ.createElement("path",{d:"M25.7,9.3l-7-7C18.5,2.1,18.3,2,18,2H8C6.9,2,6,2.9,6,4v24c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V10C26,9.7,25.9,9.5,25.7,9.3 z M18,4.4l5.6,5.6H18V4.4z M24,28H8V4h8v6c0,1.1,0.9,2,2,2h6V28z"})),ep||(ep=tJ.createElement("path",{d:"M10 22H22V24H10zM10 16H22V18H10z"})),n)}),ro=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,rn);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),em||(em=tJ.createElement("circle",{cx:"16",cy:"16",r:"8"})),n)}),ra=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,rr);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ev||(ev=tJ.createElement("path",{d:"M13 7L12.3 6.3 8.5 10.1 8.5 1 7.5 1 7.5 10.1 3.7 6.3 3 7 8 12zM13 12v2H3v-2H2v2l0 0c0 .6.4 1 1 1h10c.6 0 1-.4 1-1l0 0v-2H13z"})),n)}),rs=["children"],rl=["children"],ru=["children"],rc=["children"],rd=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,rs);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eg||(eg=tJ.createElement("path",{d:"M10 6H14V10H10zM18 6H22V10H18zM10 14H14V18H10zM18 14H22V18H18zM10 22H14V26H10zM18 22H22V26H18z"})),n)}),rf=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,rl);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ey||(ey=tJ.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2Zm5,3.1055a12.0136,12.0136,0,0,1,2.9158,1.8994L23.5034,8H21ZM13.3784,27.7026A11.9761,11.9761,0,0,1,8.1157,6.9761L9.4648,9h3.3423l-1.5,4H7.2793L5.8967,17.1475,8.4648,21h5l1.4319,2.1475ZM16,28c-.2034,0-.4016-.02-.6025-.03l1.3967-4.19a1.9876,1.9876,0,0,0-.2334-1.7412l-1.4319-2.1475A1.9962,1.9962,0,0,0,13.4648,19h-3.93L8.1033,16.8525,8.7207,15H11v2h2V14.1812l2.9363-7.83-1.8726-.7022L13.5571,7H10.5352L9.728,5.7891A11.7941,11.7941,0,0,1,19,4.395V8a2.0025,2.0025,0,0,0,2,2h2.5857A1.9865,1.9865,0,0,0,25,9.4141l.1406-.1407.2818-.68A11.9813,11.9813,0,0,1,27.3,12H22.5986a1.9927,1.9927,0,0,0-1.9719,1.665L20.03,17.1064a1.99,1.99,0,0,0,.991,2.086l2.1647,1.4638,1.4585,3.646A11.9577,11.9577,0,0,1,16,28Zm8.8145-8.6563L22.1,17.5088l-.1-.06L22.5986,14h5.2207a11.743,11.743,0,0,1-1.7441,8.4951Z"})),n)}),rh=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,ru);return tJ.createElement(t6,t2({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eb||(eb=tJ.createElement("path",{d:"M21,30a8,8,0,1,1,8-8A8,8,0,0,1,21,30Zm0-14a6,6,0,1,0,6,6A6,6,0,0,0,21,16Z"})),ex||(ex=tJ.createElement("path",{d:"M22.59 25L20 22.41 20 18 22 18 22 21.59 24 23.59 22.59 25z"})),ew||(ew=tJ.createElement("path",{d:"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z"})),n)}),rp=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,rc);return tJ.createElement(t6,t2({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ej||(ej=tJ.createElement("path",{d:"M18 31h2V29a1.0006 1.0006 0 011-1h6a1.0006 1.0006 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 25a4 4 0 114-4A4.0039 4.0039 0 0124 25zm0-6a2 2 0 102 2A2.0027 2.0027 0 0024 19zM2 31H4V29a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 25a4 4 0 114-4A4.0042 4.0042 0 018 25zm0-6a2 2 0 102 2A2.0023 2.0023 0 008 19zM18 16h2V14a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 10a4 4 0 114-4A4.0042 4.0042 0 0124 10zm0-6a2 2 0 102 2A2.0023 2.0023 0 0024 4zM2 16H4V14a1.0013 1.0013 0 011-1h6a1.0013 1.0013 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 10a4 4 0 114-4A4.0045 4.0045 0 018 10zM8 4a2 2 0 102 2A2.002 2.002 0 008 4z"})),n)}),rm=["children"],rv=["children"],rg=["children"],ry=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,rm);return tJ.createElement(t6,t2({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ek||(ek=tJ.createElement("path",{d:"M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"})),n)}),rb=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,rv);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eE||(eE=tJ.createElement("path",{d:"M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"})),n)}),rx=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,rg);return tJ.createElement(t6,t2({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eS||(eS=tJ.createElement("path",{d:"M2 28H30V30H2zM27 11a1 1 0 001-1V7a1 1 0 00-.66-.94l-11-4a1 1 0 00-.68 0l-11 4A1 1 0 004 7v3a1 1 0 001 1H6V24H4v2H28V24H26V11zM6 7.7L16 4.06 26 7.7V9H6zM18 24H14V11h4zM8 11h4V24H8zM24 24H20V11h4z"})),n)}),rw=["children"],rj=["children"],rk=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,rw);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e_||(e_=tJ.createElement("path",{d:"M26 20L24 20 24 24 20 24 20 26 24 26 24 30 26 30 26 26 30 26 30 24 26 24z"})),eC||(eC=tJ.createElement("path",{d:"M28,8H16l-3.4-3.4C12.2,4.2,11.7,4,11.2,4H4C2.9,4,2,4.9,2,6v20c0,1.1,0.9,2,2,2h14v-2H4V6h7.2l3.4,3.4l0.6,0.6H28v8h2v-8 C30,8.9,29.1,8,28,8z"})),n)}),rE=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,rj);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eO||(eO=tJ.createElement("path",{d:"M14,4a7,7,0,1,1-7,7,7,7,0,0,1,7-7m0-2a9,9,0,1,0,9,9A9,9,0,0,0,14,2Z"})),eM||(eM=tJ.createElement("path",{d:"M28,11a13.9563,13.9563,0,0,0-4.1051-9.8949L22.4813,2.5187A11.9944,11.9944,0,0,1,5.5568,19.5194l-.0381-.0381L4.1051,20.8949A13.9563,13.9563,0,0,0,14,25v3H10v2H20V28H16V24.84A14.0094,14.0094,0,0,0,28,11Z"})),n)}),rS=["children"],r_=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,rS);return tJ.createElement(t6,t2({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eT||(eT=tJ.createElement("path",{d:"M16,.0005,4,5.9784V20.0443a12,12,0,0,0,24,0V5.9784Zm6.83,27.3138L16,23.9119V26.14l5.0361,2.5088A10.0025,10.0025,0,0,1,6,20.0443V7.21L16,2.2284,26,7.21v3.75L16,5.9783V8.2062l10,4.9816v3.75L16,11.9562v2.2279l10,4.9815v.8787a9.9045,9.9045,0,0,1-.37,2.6871L16,17.934v2.2279l8.8952,4.4313A10.0252,10.0252,0,0,1,22.83,27.3143Z"})),n)}),rC=["children"],rO=["children"],rM=["children"],rT=["children"],rA=["children"],rP=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,rC);return tJ.createElement(t6,t2({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eA||(eA=tJ.createElement("path",{d:"M11 24H21V26H11zM13 28H19V30H13zM16 2A10 10 0 006 12a9.19 9.19 0 003.46 7.62c1 .93 1.54 1.46 1.54 2.38h2c0-1.84-1.11-2.87-2.19-3.86A7.2 7.2 0 018 12a8 8 0 0116 0 7.2 7.2 0 01-2.82 6.14c-1.07 1-2.18 2-2.18 3.86h2c0-.92.53-1.45 1.54-2.39A9.18 9.18 0 0026 12 10 10 0 0016 2z"})),n)}),rN=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,rO);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eP||(eP=tJ.createElement("path",{d:"M19,14a3,3,0,1,0-3-3A3,3,0,0,0,19,14Zm0-4a1,1,0,1,1-1,1A1,1,0,0,1,19,10Z"})),eN||(eN=tJ.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4Zm0,22H6V20l5-5,5.59,5.59a2,2,0,0,0,2.82,0L21,19l5,5Zm0-4.83-3.59-3.59a2,2,0,0,0-2.82,0L18,19.17l-5.59-5.59a2,2,0,0,0-2.82,0L6,17.17V6H26Z"})),n)}),rR=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,rM);return tJ.createElement(t6,t2({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eR||(eR=tJ.createElement("path",{d:"M29.53,6.15a1,1,0,0,0-1,0L20,10.38V7a1,1,0,0,0-1.45-.89L10,10.38V3A1,1,0,0,0,9,2H3A1,1,0,0,0,2,3V28H30V7A1,1,0,0,0,29.53,6.15ZM22,26H18V19h4Zm6,0H24V18a1,1,0,0,0-1-1H17a1,1,0,0,0-1,1v8H4V4H8v9.62l10-5v5l10-5Z"})),n)}),rD=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,rT);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eD||(eD=tJ.createElement("path",{d:"M8.5 11L8.5 6.5 6.5 6.5 6.5 7.5 7.5 7.5 7.5 11 6 11 6 12 10 12 10 11zM8 3.5c-.4 0-.8.3-.8.8S7.6 5 8 5c.4 0 .8-.3.8-.8S8.4 3.5 8 3.5z"})),eL||(eL=tJ.createElement("path",{d:"M8,15c-3.9,0-7-3.1-7-7s3.1-7,7-7s7,3.1,7,7S11.9,15,8,15z M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z"})),n)}),rL=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,rA);return tJ.createElement(t6,t2({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eZ||(eZ=tJ.createElement("path",{d:"M29.88,15.52l-6-11A1,1,0,0,0,23,4H9a1,1,0,0,0-.88.52l-6,11a1,1,0,0,0,0,1l6,11A1,1,0,0,0,9,28H23a1,1,0,0,0,.88-.52l6-11A1,1,0,0,0,29.88,15.52ZM22.93,7l4.39,8h-9.5ZM16,14.14,10.82,6H21.18ZM9.07,7l5.11,8H4.68ZM4.68,17h9.5L9.07,25ZM16,17.86,21.18,26H10.82ZM22.93,25l-5.11-8h9.5Z"})),n)}),rZ=["children"],rF=["children"],rz=["children"],rV=["children"],rI=["children"],rB=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,rZ);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eF||(eF=tJ.createElement("path",{d:"M13,14H3c-0.6,0-1-0.4-1-1V3c0-0.6,0.4-1,1-1h5v1H3v10h10V8h1v5C14,13.6,13.6,14,13,14z"})),ez||(ez=tJ.createElement("path",{d:"M10 1L10 2 13.3 2 9 6.3 9.7 7 14 2.7 14 6 15 6 15 1z"})),n)}),rH=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,rF);return tJ.createElement(t6,t2({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eV||(eV=tJ.createElement("path",{d:"M29.25,6.76a6,6,0,0,0-8.5,0l1.42,1.42a4,4,0,1,1,5.67,5.67l-8,8a4,4,0,1,1-5.67-5.66l1.41-1.42-1.41-1.42-1.42,1.42a6,6,0,0,0,0,8.5A6,6,0,0,0,17,25a6,6,0,0,0,4.27-1.76l8-8A6,6,0,0,0,29.25,6.76Z"})),eI||(eI=tJ.createElement("path",{d:"M4.19,24.82a4,4,0,0,1,0-5.67l8-8a4,4,0,0,1,5.67,0A3.94,3.94,0,0,1,19,14a4,4,0,0,1-1.17,2.85L15.71,19l1.42,1.42,2.12-2.12a6,6,0,0,0-8.51-8.51l-8,8a6,6,0,0,0,0,8.51A6,6,0,0,0,7,28a6.07,6.07,0,0,0,4.28-1.76L9.86,24.82A4,4,0,0,1,4.19,24.82Z"})),n)}),rU=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,rz);return tJ.createElement(t6,t2({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eB||(eB=tJ.createElement("path",{d:"M16 8H30V10H16zM6 10.59L3.41 8 2 9.41 6 13.41 14 5.41 12.59 4 6 10.59zM16 22H30V24H16zM6 24.59L3.41 22 2 23.41 6 27.41 14 19.41 12.59 18 6 24.59z"})),n)}),rW=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,rV);return tJ.createElement(t6,t2({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eH||(eH=tJ.createElement("path",{d:"M16 8H30V10H16zM6 10.59L3.41 8 2 9.41 6 13.41 14 5.41 12.59 4 6 10.59zM16 22H30V24H16zM6 24.59L3.41 22 2 23.41 6 27.41 14 19.41 12.59 18 6 24.59z"})),n)}),rq=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,rI);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eU||(eU=tJ.createElement("path",{d:"M16 8H30V10H16zM6 10.59L3.41 8 2 9.41 6 13.41 14 5.41 12.59 4 6 10.59zM16 22H30V24H16zM6 24.59L3.41 22 2 23.41 6 27.41 14 19.41 12.59 18 6 24.59z"})),n)}),r$=["children"],rK=["children"],rY=["children"],rG=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,r$);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eW||(eW=tJ.createElement("path",{d:"M24,14H22V8A6,6,0,0,0,10,8v6H8a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V16A2,2,0,0,0,24,14ZM12,8a4,4,0,0,1,8,0v6H12ZM24,28H8V16H24Z"})),n)}),rX=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,rK);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eq||(eq=tJ.createElement("path",{d:"M13.647,14.907a1.4482,1.4482,0,1,0,1.326,1.443A1.385,1.385,0,0,0,13.647,14.907Zm4.745,0a1.4482,1.4482,0,1,0,1.326,1.443A1.385,1.385,0,0,0,18.392,14.907Z"})),e$||(e$=tJ.createElement("path",{d:"M24.71,4H7.29A2.6714,2.6714,0,0,0,4.625,6.678V24.254A2.6714,2.6714,0,0,0,7.29,26.932H22.032l-.689-2.405,1.664,1.547L24.58,27.53,27.375,30V6.678A2.6714,2.6714,0,0,0,24.71,4ZM19.692,20.978s-.468-.559-.858-1.053a4.1021,4.1021,0,0,0,2.353-1.547,7.4391,7.4391,0,0,1-1.495.767,8.5564,8.5564,0,0,1-1.885.559,9.1068,9.1068,0,0,1-3.367-.013,10.9127,10.9127,0,0,1-1.911-.559,7.6184,7.6184,0,0,1-.949-.442c-.039-.026-.078-.039-.117-.065a.18.18,0,0,1-.052-.039c-.234-.13-.364-.221-.364-.221a4.0432,4.0432,0,0,0,2.275,1.534c-.39.494-.871,1.079-.871,1.079a4.7134,4.7134,0,0,1-3.965-1.976,17.409,17.409,0,0,1,1.872-7.579,6.4285,6.4285,0,0,1,3.653-1.365l.13.156a8.77,8.77,0,0,0-3.419,1.703s.286-.156.767-.377a9.7625,9.7625,0,0,1,2.951-.819,1.2808,1.2808,0,0,1,.221-.026,11,11,0,0,1,2.626-.026A10.5971,10.5971,0,0,1,21.2,11.917a8.6518,8.6518,0,0,0-3.237-1.651l.182-.208a6.4285,6.4285,0,0,1,3.653,1.365,17.409,17.409,0,0,1,1.872,7.579A4.752,4.752,0,0,1,19.692,20.978Z"})),n)}),rQ=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,rY);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eK||(eK=tJ.createElement("path",{fillRule:"evenodd",d:"M16,2a14,14,0,0,0-4.43,27.28c.7.13,1-.3,1-.67s0-1.21,0-2.38c-3.89.84-4.71-1.88-4.71-1.88A3.71,3.71,0,0,0,6.24,22.3c-1.27-.86.1-.85.1-.85A2.94,2.94,0,0,1,8.48,22.9a3,3,0,0,0,4.08,1.16,2.93,2.93,0,0,1,.88-1.87c-3.1-.36-6.37-1.56-6.37-6.92a5.4,5.4,0,0,1,1.44-3.76,5,5,0,0,1,.14-3.7s1.17-.38,3.85,1.43a13.3,13.3,0,0,1,7,0c2.67-1.81,3.84-1.43,3.84-1.43a5,5,0,0,1,.14,3.7,5.4,5.4,0,0,1,1.44,3.76c0,5.38-3.27,6.56-6.39,6.91a3.33,3.33,0,0,1,.95,2.59c0,1.87,0,3.38,0,3.84s.25.81,1,.67A14,14,0,0,0,16,2Z"})),n)}),rJ=["children"],r0=["children"],r1=["children"],r2=["children"],r4=["children"],r3=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,rJ);return tJ.createElement(t6,t2({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eY||(eY=tJ.createElement("path",{d:"M16.59 20.41L20.17 24 20.17 24 16.58 27.59 18 29 23 24 18 19 16.59 20.41zM23.59 20.41L27.17 24 27.17 24 23.58 27.59 25 29 30 24 25 19 23.59 20.41z"})),eG||(eG=tJ.createElement("path",{d:"M14,23H4V7.91l11.43,7.91a1,1,0,0,0,1.14,0L28,7.91V17h2V7a2,2,0,0,0-2-2H4A2,2,0,0,0,2,7V23a2,2,0,0,0,2,2H14ZM25.8,7,16,13.78,6.2,7Z"})),n)}),r5=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,r0);return tJ.createElement(t6,t2({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eX||(eX=tJ.createElement("path",{d:"M25.3943,24a7.8772,7.8772,0,0,0-1.6707-8.5684,3.918,3.918,0,0,0-1.0844-4.414l2.7759-2.7759a2.0025,2.0025,0,0,0,0-2.8286L22.5869,2.5849a2.0021,2.0021,0,0,0-2.8286,0L6.5859,15.7573a2.0027,2.0027,0,0,0,0,2.8286l2.8282,2.8282a2.0024,2.0024,0,0,0,2.8286,0l4.7749-4.7754a3.9329,3.9329,0,0,0,5.5139.4326A5.9442,5.9442,0,0,1,23.1775,24H16v4H4v2H28V24ZM10.8281,20,8,17.1714,9.8787,15.293l2.8283,2.8281ZM16,14a3.9811,3.9811,0,0,0,.0762.7524L14.1211,16.707l-2.8284-2.8281,9.88-9.88L24.001,6.8271l-3.2488,3.2491A3.9771,3.9771,0,0,0,16,14Zm4,2a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,20,16Zm6,12H18V26h8Z"})),n)}),r6=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,r1);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eQ||(eQ=tJ.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M10.7,11.5L8,8.8l-2.7,2.7l-0.8-0.8L7.2,8L4.5,5.3l0.8-0.8L8,7.2 l2.7-2.7l0.8,0.8L8.8,8l2.7,2.7L10.7,11.5z"})),eJ||(eJ=tJ.createElement("path",{d:"M10.7,11.5L8,8.8l-2.7,2.7l-0.8-0.8L7.2,8L4.5,5.3l0.8-0.8L8,7.2l2.7-2.7l0.8,0.8L8.8,8 l2.7,2.7L10.7,11.5z","data-icon-path":"inner-path",opacity:"0"})),n)}),r8=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,r2);return tJ.createElement(t6,t2({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e0||(e0=tJ.createElement("path",{d:"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12 S22.6,28,16,28z"})),e1||(e1=tJ.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),n)}),r7=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,r4);return tJ.createElement(t6,t2({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e2||(e2=tJ.createElement("path",{d:"M2 22H30V24H2zM2 26H30V28H2zM24 10a2 2 0 102 2 2 2 0 00-2-2zM16 16a4 4 0 114-4A4.0045 4.0045 0 0116 16zm0-6a2 2 0 102 2A2.002 2.002 0 0016 10zM8 10a2 2 0 102 2 2 2 0 00-2-2z"})),e4||(e4=tJ.createElement("path",{d:"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z"})),n)}),r9=["children"],ie=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,r9);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e3||(e3=tJ.createElement("circle",{cx:"21",cy:"26",r:"2"})),e5||(e5=tJ.createElement("circle",{cx:"21",cy:"6",r:"2"})),e6||(e6=tJ.createElement("circle",{cx:"4",cy:"16",r:"2"})),e8||(e8=tJ.createElement("path",{d:"M28,12a3.9962,3.9962,0,0,0-3.8579,3H19.8579a3.9655,3.9655,0,0,0-5.4914-2.6426L11.19,8.3872A3.9626,3.9626,0,0,0,12,6a4,4,0,1,0-4,4,3.96,3.96,0,0,0,1.6338-.3574l3.176,3.97a3.9239,3.9239,0,0,0,0,4.7744l-3.1758,3.97A3.96,3.96,0,0,0,8,22a4,4,0,1,0,4,4,3.9624,3.9624,0,0,0-.81-2.3872l3.1758-3.97A3.9658,3.9658,0,0,0,19.8579,17h4.2842A3.9934,3.9934,0,1,0,28,12ZM6,6A2,2,0,1,1,8,8,2.0023,2.0023,0,0,1,6,6ZM8,28a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,8,28Zm8-10a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,16,18Zm12,0a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,28,18Z"})),n)}),it=["children"],ir=["children"],ii=["children"],io=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,it);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e7||(e7=tJ.createElement("path",{d:"M14 16L24 6 25.4 7.4 16.8 16 25.4 24.6 24 26zM8 4H10V28H8z"})),n)}),ia=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,ir);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e9||(e9=tJ.createElement("path",{d:"M18 16L8 26 6.6 24.6 15.2 16 6.6 7.4 8 6zM22 4H24V28H22z"})),n)}),is=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,ii);return tJ.createElement(t6,t2({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),te||(te=tJ.createElement("path",{d:"M21,2a8.9977,8.9977,0,0,0-8.6119,11.6118L2,24v6H8L18.3881,19.6118A9,9,0,1,0,21,2Zm0,16a7.0125,7.0125,0,0,1-2.0322-.3022L17.821,17.35l-.8472.8472-3.1811,3.1812L12.4141,20,11,21.4141l1.3787,1.3786-1.5859,1.586L9.4141,23,8,24.4141l1.3787,1.3786L7.1716,28H4V24.8284l9.8023-9.8023.8472-.8474-.3473-1.1467A7,7,0,1,1,21,18Z"})),tt||(tt=tJ.createElement("circle",{cx:"22",cy:"10",r:"2"})),n)}),il=["children"],iu=["children"],ic=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,il);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tn||(tn=tJ.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM8,18a2,2,0,1,1,2-2A2,2,0,0,1,8,18Zm8,0a2,2,0,1,1,2-2A2,2,0,0,1,16,18Zm8,0a2,2,0,1,1,2-2A2,2,0,0,1,24,18Z"})),tr||(tr=tJ.createElement("path",{fill:"none",d:"M10,16a2,2,0,1,1-2-2A2,2,0,0,1,10,16Zm6-2a2,2,0,1,0,2,2A2,2,0,0,0,16,14Zm8,0a2,2,0,1,0,2,2A2,2,0,0,0,24,14Z","data-icon-path":"inner-path"})),n)}),id=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,iu);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ti||(ti=tJ.createElement("path",{d:"M29.37,14.75,20,10V6a4,4,0,0,0-8,0v4L2.63,14.75a1,1,0,0,0-.63.93v5a1,1,0,0,0,1,1,1,1,0,0,0,.29-.05L12,18v5L8.55,24.72a1,1,0,0,0-.55.9V29a1,1,0,0,0,1,1,.9.9,0,0,0,.28,0L16,28l6.72,2A.9.9,0,0,0,23,30a1,1,0,0,0,1-1V25.62a1,1,0,0,0-.55-.9L20,23V18l8.71,3.61a1,1,0,0,0,.29.05,1,1,0,0,0,1-1v-5A1,1,0,0,0,29.37,14.75ZM28,19.15,18,15v9.24l4,2v1.43l-6-1.75-6,1.75V26.24l4-2V15L4,19.15V16.3l10-5.07V6a2,2,0,0,1,4,0v5.23L28,16.3Z"})),n)}),ih=["children"],ip=["children"],im=["children"],iv=["children"],ig=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,ih);return tJ.createElement(t6,t2({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),to||(to=tJ.createElement("path",{d:"M30 18A6 6 0 1020 22.46v7.54l4-1.8926 4 1.8926V22.46A5.98 5.98 0 0030 18zm-4 8.84l-2-.9467L22 26.84V23.65a5.8877 5.8877 0 004 0zM24 22a4 4 0 114-4A4.0045 4.0045 0 0124 22zM9 14H16V16H9zM9 8H19V10H9z"})),ta||(ta=tJ.createElement("path",{d:"M6,30a2.0021,2.0021,0,0,1-2-2V4A2.0021,2.0021,0,0,1,6,2H22a2.0021,2.0021,0,0,1,2,2V8H22V4H6V28H16v2Z"})),n)}),iy=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,ip);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ts||(ts=tJ.createElement("circle",{cx:"11",cy:"15.5",r:"1.5"})),tl||(tl=tJ.createElement("path",{d:"M12,12H10V8h2a2,2,0,0,0,0-4H10A2.0023,2.0023,0,0,0,8,6v.5H6V6a4.0045,4.0045,0,0,1,4-4h2a4,4,0,0,1,0,8Z"})),tu||(tu=tJ.createElement("path",{d:"M22.4479,21.0337A10.971,10.971,0,0,0,19.9211,4.7446l-.999,1.73A8.9967,8.9967,0,1,1,5,14H3a10.9916,10.9916,0,0,0,18.0338,8.4478L28.5859,30,30,28.5859Z"})),n)}),ib=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,im);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tc||(tc=tJ.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),n)}),ix=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,iv);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),td||(td=tJ.createElement("path",{d:"M20.59 22L15 16.41 15 7 17 7 17 15.58 22 20.59 20.59 22z"})),tf||(tf=tJ.createElement("path",{d:"M16,2A13.94,13.94,0,0,0,6,6.23V2H4v8h8V8H7.08A12,12,0,1,1,4,16H2A14,14,0,1,0,16,2Z"})),n)}),iw=["children"],ij=["children"],ik=["children"],iE=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,iw);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),th||(th=tJ.createElement("path",{d:"M18,28A12,12,0,1,0,6,16v6.2L2.4,18.6,1,20l6,6,6-6-1.4-1.4L8,22.2V16H8A10,10,0,1,1,18,26Z"})),n)}),iS=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,ij);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tp||(tp=tJ.createElement("path",{d:"M10 16H22V18H10zM10 10H22V12H10z"})),tm||(tm=tJ.createElement("path",{d:"M16,30,9.8242,26.7071A10.9815,10.9815,0,0,1,4,17V4A2.0022,2.0022,0,0,1,6,2H26a2.0022,2.0022,0,0,1,2,2V17a10.9815,10.9815,0,0,1-5.8242,9.7069ZM6,4V17a8.9852,8.9852,0,0,0,4.7656,7.9423L16,27.7333l5.2344-2.791A8.9852,8.9852,0,0,0,26,17V4Z"})),n)}),i_=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,ik);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tv||(tv=tJ.createElement("path",{d:"M13.9,4.6l-2.5-2.5C11.3,2.1,11.1,2,11,2H3C2.4,2,2,2.4,2,3v10c0,0.6,0.4,1,1,1h10c0.6,0,1-0.4,1-1V5 C14,4.9,13.9,4.7,13.9,4.6z M6,3h4v2H6V3z M10,13H6V9h4V13z M11,13V9c0-0.6-0.4-1-1-1H6C5.4,8,5,8.4,5,9v4H3V3h2v2c0,0.6,0.4,1,1,1 h4c0.6,0,1-0.4,1-1V3.2l2,2V13H11z"})),n)}),iC=["children"],iO=["children"],iM=["children"],iT=["children"],iA=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,iC);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tg||(tg=tJ.createElement("path",{d:"M28,4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM18,28H14V24h4Zm10-6H4V6H28Z"})),n)}),iP=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,iO);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ty||(ty=tJ.createElement("path",{d:"M15,14.3L10.7,10c1.9-2.3,1.6-5.8-0.7-7.7S4.2,0.7,2.3,3S0.7,8.8,3,10.7c2,1.7,5,1.7,7,0l4.3,4.3L15,14.3z M2,6.5 C2,4,4,2,6.5,2S11,4,11,6.5S9,11,6.5,11S2,9,2,6.5z"})),n)}),iN=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,iM);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tb||(tb=tJ.createElement("path",{d:"M13.5,8.4c0-0.1,0-0.3,0-0.4c0-0.1,0-0.3,0-0.4l1-0.8c0.4-0.3,0.4-0.9,0.2-1.3l-1.2-2C13.3,3.2,13,3,12.6,3 c-0.1,0-0.2,0-0.3,0.1l-1.2,0.4c-0.2-0.1-0.4-0.3-0.7-0.4l-0.3-1.3C10.1,1.3,9.7,1,9.2,1H6.8c-0.5,0-0.9,0.3-1,0.8L5.6,3.1 C5.3,3.2,5.1,3.3,4.9,3.4L3.7,3C3.6,3,3.5,3,3.4,3C3,3,2.7,3.2,2.5,3.5l-1.2,2C1.1,5.9,1.2,6.4,1.6,6.8l0.9,0.9c0,0.1,0,0.3,0,0.4 c0,0.1,0,0.3,0,0.4L1.6,9.2c-0.4,0.3-0.5,0.9-0.2,1.3l1.2,2C2.7,12.8,3,13,3.4,13c0.1,0,0.2,0,0.3-0.1l1.2-0.4 c0.2,0.1,0.4,0.3,0.7,0.4l0.3,1.3c0.1,0.5,0.5,0.8,1,0.8h2.4c0.5,0,0.9-0.3,1-0.8l0.3-1.3c0.2-0.1,0.4-0.2,0.7-0.4l1.2,0.4 c0.1,0,0.2,0.1,0.3,0.1c0.4,0,0.7-0.2,0.9-0.5l1.1-2c0.2-0.4,0.2-0.9-0.2-1.3L13.5,8.4z M12.6,12l-1.7-0.6c-0.4,0.3-0.9,0.6-1.4,0.8 L9.2,14H6.8l-0.4-1.8c-0.5-0.2-0.9-0.5-1.4-0.8L3.4,12l-1.2-2l1.4-1.2c-0.1-0.5-0.1-1.1,0-1.6L2.2,6l1.2-2l1.7,0.6 C5.5,4.2,6,4,6.5,3.8L6.8,2h2.4l0.4,1.8c0.5,0.2,0.9,0.5,1.4,0.8L12.6,4l1.2,2l-1.4,1.2c0.1,0.5,0.1,1.1,0,1.6l1.4,1.2L12.6,12z"})),tx||(tx=tJ.createElement("path",{d:"M8,11c-1.7,0-3-1.3-3-3s1.3-3,3-3s3,1.3,3,3C11,9.6,9.7,11,8,11C8,11,8,11,8,11z M8,6C6.9,6,6,6.8,6,7.9C6,7.9,6,8,6,8 c0,1.1,0.8,2,1.9,2c0,0,0.1,0,0.1,0c1.1,0,2-0.8,2-1.9c0,0,0-0.1,0-0.1C10,6.9,9.2,6,8,6C8.1,6,8,6,8,6z"})),n)}),iR=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,iT);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tw||(tw=tJ.createElement("path",{d:"M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30V8zM21 12c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3S22.7 12 21 12zM2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2V24zM11 20c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3S9.3 20 11 20z"})),n)}),iD=["children"],iL=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,iD);return tJ.createElement(t6,t2({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tj||(tj=tJ.createElement("path",{d:"M8 15H24V17H8z"})),n)}),iZ=["children"],iF=["children"],iz=["children"],iV=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,iZ);return tJ.createElement(t6,t2({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tk||(tk=tJ.createElement("path",{d:"M23,9h6a2,2,0,0,0,2-2V3a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2V4H11V3A2,2,0,0,0,9,1H3A2,2,0,0,0,1,3V7A2,2,0,0,0,3,9H9a2,2,0,0,0,2-2V6h4V26a2.0023,2.0023,0,0,0,2,2h4v1a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V25a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2v1H17V17h4v1a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V14a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2v1H17V6h4V7A2,2,0,0,0,23,9Zm0-6h6V7H23ZM9,7H3V3H9ZM23,25h6v4H23Zm0-11h6v4H23Z",transform:"translate(0 .005)"})),n)}),iI=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,iF);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tE||(tE=tJ.createElement("path",{d:"M29.391,14.527L17.473,2.609C17.067,2.203,16.533,2,16,2s-1.067,0.203-1.473,0.609L2.609,14.527C2.203,14.933,2,15.466,2,16 s0.203,1.067,0.609,1.473l11.917,11.917C14.933,29.797,15.467,30,16,30s1.067-0.203,1.473-0.609l11.917-11.917 C29.797,17.067,30,16.534,30,16S29.797,14.933,29.391,14.527z M21,18H11v-4h10V18z"})),tS||(tS=tJ.createElement("path",{fill:"none",d:"M11 14H21V18H11z","data-icon-path":"inner-path"})),n)}),iB=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,iz);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t_||(t_=tJ.createElement("path",{d:"M3 9L3.7 9.7 7.5 5.9 7.5 15 8.5 15 8.5 5.9 12.3 9.7 13 9 8 4zM3 4V2h10v2h1V2c0-.6-.4-1-1-1H3C2.4 1 2 1.4 2 2v2H3z"})),n)}),iH=["children"],iU=["children"],iW=["children"],iq=["children"],i$=["children"],iK=["children"],iY=["children"],iG=["children"],iX=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,iH);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tC||(tC=tJ.createElement("path",{d:"M21,26H4a2,2,0,0,1-2-2V8A2,2,0,0,1,4,6H21a2,2,0,0,1,2,2v4.06l5.42-3.87A1,1,0,0,1,30,9V23a1,1,0,0,1-1.58.81L23,19.94V24A2,2,0,0,1,21,26ZM4,8V24H21V18a1,1,0,0,1,1.58-.81L28,21.06V10.94l-5.42,3.87A1,1,0,0,1,21,14V8Z"})),n)}),iQ=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,iU);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tO||(tO=tJ.createElement("path",{d:"M15.5,7.8C14.3,4.7,11.3,2.6,8,2.5C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3c1.2,3.1,4.1,5.2,7.5,5.3 c3.3-0.1,6.3-2.2,7.5-5.3C15.5,8.1,15.5,7.9,15.5,7.8z M8,12.5c-2.7,0-5.4-2-6.5-4.5c1-2.5,3.8-4.5,6.5-4.5s5.4,2,6.5,4.5 C13.4,10.5,10.6,12.5,8,12.5z"})),tM||(tM=tJ.createElement("path",{d:"M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z M8,10c-1.1,0-2-0.9-2-2s0.9-2,2-2s2,0.9,2,2S9.1,10,8,10z"})),n)}),iJ=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,iW);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tT||(tT=tJ.createElement("path",{d:"M2.6,11.3l0.7-0.7C2.6,9.8,1.9,9,1.5,8c1-2.5,3.8-4.5,6.5-4.5c0.7,0,1.4,0.1,2,0.4l0.8-0.8C9.9,2.7,9,2.5,8,2.5 C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3C1,9.3,1.7,10.4,2.6,11.3z"})),tA||(tA=tJ.createElement("path",{d:"M6 7.9c.1-1 .9-1.8 1.8-1.8l.9-.9C7.2 4.7 5.5 5.6 5.1 7.2 5 7.7 5 8.3 5.1 8.8L6 7.9zM15.5 7.8c-.6-1.5-1.6-2.8-2.9-3.7L15 1.7 14.3 1 1 14.3 1.7 15l2.6-2.6c1.1.7 2.4 1 3.7 1.1 3.3-.1 6.3-2.2 7.5-5.3C15.5 8.1 15.5 7.9 15.5 7.8zM10 8c0 1.1-.9 2-2 2-.3 0-.7-.1-1-.3L9.7 7C9.9 7.3 10 7.6 10 8zM8 12.5c-1 0-2.1-.3-3-.8l1.3-1.3c1.4.9 3.2.6 4.2-.8.7-1 .7-2.4 0-3.4l1.4-1.4c1.1.8 2 1.9 2.6 3.2C13.4 10.5 10.6 12.5 8 12.5z"})),n)}),i0=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,iq);return tJ.createElement(t6,t2({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tP||(tP=tJ.createElement("path",{d:"M22 17H24V19H22z"})),tN||(tN=tJ.createElement("path",{d:"M28,8H4V5H26V3H4A2,2,0,0,0,2,5V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10A2,2,0,0,0,28,8ZM4,26V10H28v3H20a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h8v3ZM28,15v6H20V15Z"})),n)}),i1=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,i$);return tJ.createElement(t6,t2({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tR||(tR=tJ.createElement("path",{d:"M22 17H24V19H22z"})),tD||(tD=tJ.createElement("path",{d:"M28,8H4V5H26V3H4A2,2,0,0,0,2,5V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10A2,2,0,0,0,28,8ZM4,26V10H28v3H20a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h8v3ZM28,15v6H20V15Z"})),n)}),i2=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,iK);return tJ.createElement(t6,t2({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tL||(tL=tJ.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),tZ||(tZ=tJ.createElement("path",{d:"M15 8H17V19H15zM16 22a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0016 22z"})),n)}),i4=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,iY);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tF||(tF=tJ.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M8,14c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6S11.3,14,8,14z"})),tz||(tz=tJ.createElement("path",{d:"M7.5 4H8.5V9H7.5zM8 10.2c-.4 0-.8.3-.8.8s.3.8.8.8c.4 0 .8-.3.8-.8S8.4 10.2 8 10.2z"})),n)}),i3=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,iG);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tV||(tV=tJ.createElement("path",{d:"M8,1C4.2,1,1,4.2,1,8s3.2,7,7,7s7-3.1,7-7S11.9,1,8,1z M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2 c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z"})),tI||(tI=tJ.createElement("path",{d:"M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8 c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z","data-icon-path":"inner-path",opacity:"0"})),n)}),i5=["children"],i6=["children"],i8=["children"],i7=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,i5);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tB||(tB=tJ.createElement("path",{d:"M26.0022,4H5.998A1.998,1.998,0,0,0,4,5.998V26.002A1.998,1.998,0,0,0,5.998,28H26.0022A1.9979,1.9979,0,0,0,28,26.002V5.998A1.9979,1.9979,0,0,0,26.0022,4ZM14.8752,8h2.25V18h-2.25ZM16,24a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,24Z"})),tH||(tH=tJ.createElement("path",{fill:"none",d:"M14.8751,8h2.25V18h-2.25ZM16,24a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,24Z","data-icon-path":"inner-path"})),n)}),i9=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,i6);return tJ.createElement(t6,t2({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tU||(tU=tJ.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM28,15H22A24.26,24.26,0,0,0,19.21,4.45,12,12,0,0,1,28,15ZM16,28a5,5,0,0,1-.67,0A21.85,21.85,0,0,1,12,17H20a21.85,21.85,0,0,1-3.3,11A5,5,0,0,1,16,28ZM12,15a21.85,21.85,0,0,1,3.3-11,6,6,0,0,1,1.34,0A21.85,21.85,0,0,1,20,15Zm.76-10.55A24.26,24.26,0,0,0,10,15h-6A12,12,0,0,1,12.79,4.45ZM4.05,17h6a24.26,24.26,0,0,0,2.75,10.55A12,12,0,0,1,4.05,17ZM19.21,27.55A24.26,24.26,0,0,0,22,17h6A12,12,0,0,1,19.21,27.55Z"})),n)}),oe=tJ.forwardRef(function(e,t){var n=e.children,r=t4(e,i8);return tJ.createElement(t6,t2({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tW||(tW=tJ.createElement("path",{d:"M29.3164,8.0513l-18-6A1,1,0,0,0,10.4,2.2L4,7V2H2V30H4V11l6.4,4.8a1,1,0,0,0,.9165.1489l18-6a1,1,0,0,0,0-1.8974ZM10,13,4.6665,9,10,5Zm4-.0542-2,.667V4.3872l2,.667Zm4-1.333-2,.6665V5.7207l2,.6665Zm2-.667V7.0542L25.8379,9Z"})),tq||(tq=tJ.createElement("path",{d:"M20,22a4,4,0,0,0-8,0h2a2,2,0,1,1,2,2H8v2h8A4.0045,4.0045,0,0,0,20,22Z"})),t$||(t$=tJ.createElement("path",{d:"M26,22a4.0045,4.0045,0,0,0-4,4h2a2,2,0,1,1,2,2H12v2H26a4,4,0,0,0,0-8Z"})),n)}),ot=n(52322);function on(e){let{size:t=24}=e;return(0,ot.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ot.jsx)("path",{d:"M96 152v8H48v-8C48 68.1 116.1 0 200 0h48c83.9 0 152 68.1 152 152v8H352v-8c0-57.4-46.6-104-104-104H200C142.6 48 96 94.6 96 152zM0 224c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32h-5.1L388.5 469c-2.6 24.4-23.2 43-47.7 43H107.2c-24.6 0-45.2-18.5-47.7-43L37.1 256H32c-17.7 0-32-14.3-32-32z"})})}function or(e){let{size:t=24}=e;return(0,ot.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",children:(0,ot.jsx)("path",{d:"M464 64C490.5 64 512 85.49 512 112V176C512 202.5 490.5 224 464 224H48C21.49 224 0 202.5 0 176V112C0 85.49 21.49 64 48 64H464zM448 128H320V160H448V128zM464 288C490.5 288 512 309.5 512 336V400C512 426.5 490.5 448 464 448H48C21.49 448 0 426.5 0 400V336C0 309.5 21.49 288 48 288H464zM192 352V384H448V352H192z"})})}function oi(e){let{size:t=24,className:n}=e;return(0,ot.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:n,fill:"currentColor",viewBox:"0 0 384 512",children:(0,ot.jsx)("path",{d:"M256 0v128h128L256 0zM224 128L224 0H48C21.49 0 0 21.49 0 48v416C0 490.5 21.49 512 48 512h288c26.51 0 48-21.49 48-48V160h-127.1C238.3 160 224 145.7 224 128zM64 72C64 67.63 67.63 64 72 64h80C156.4 64 160 67.63 160 72v16C160 92.38 156.4 96 152 96h-80C67.63 96 64 92.38 64 88V72zM64 136C64 131.6 67.63 128 72 128h80C156.4 128 160 131.6 160 136v16C160 156.4 156.4 160 152 160h-80C67.63 160 64 156.4 64 152V136zM304 384c8.875 0 16 7.125 16 16S312.9 416 304 416h-47.25c-16.38 0-31.25-9.125-38.63-23.88c-2.875-5.875-8-6.5-10.12-6.5s-7.25 .625-10 6.125l-7.75 15.38C187.6 412.6 181.1 416 176 416H174.9c-6.5-.5-12-4.75-14-11L144 354.6L133.4 386.5C127.5 404.1 111 416 92.38 416H80C71.13 416 64 408.9 64 400S71.13 384 80 384h12.38c4.875 0 9.125-3.125 10.62-7.625l18.25-54.63C124.5 311.9 133.6 305.3 144 305.3s19.5 6.625 22.75 16.5l13.88 41.63c19.75-16.25 54.13-9.75 66 14.12c2 4 6 6.5 10.12 6.5H304z"})})}function oo(e){let{size:t=24,className:n}=e;return(0,ot.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",className:n,children:(0,ot.jsx)("path",{d:"M464 288h-416C21.5 288 0 309.5 0 336v96C0 458.5 21.5 480 48 480h416c26.5 0 48-21.5 48-48v-96C512 309.5 490.5 288 464 288zM320 416c-17.62 0-32-14.38-32-32s14.38-32 32-32s32 14.38 32 32S337.6 416 320 416zM416 416c-17.62 0-32-14.38-32-32s14.38-32 32-32s32 14.38 32 32S433.6 416 416 416zM464 32h-416C21.5 32 0 53.5 0 80v192.4C13.41 262.3 29.92 256 48 256h416c18.08 0 34.59 6.254 48 16.41V80C512 53.5 490.5 32 464 32z"})})}function oa(e){let{size:t=24,className:n}=e;return(0,ot.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,className:n,fill:"currentColor",viewBox:"0 0 512 512",children:(0,ot.jsx)("path",{d:"M448 32C465.7 32 480 46.33 480 64C480 81.67 465.7 96 448 96H80C71.16 96 64 103.2 64 112C64 120.8 71.16 128 80 128H448C483.3 128 512 156.7 512 192V416C512 451.3 483.3 480 448 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H448zM416 336C433.7 336 448 321.7 448 304C448 286.3 433.7 272 416 272C398.3 272 384 286.3 384 304C384 321.7 398.3 336 416 336z"})})}function os(e){let{size:t=24}=e;return(0,ot.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ot.jsx)("path",{d:"M80 192V144C80 64.47 144.5 0 224 0C303.5 0 368 64.47 368 144V192H384C419.3 192 448 220.7 448 256V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V256C0 220.7 28.65 192 64 192H80zM144 192H304V144C304 99.82 268.2 64 224 64C179.8 64 144 99.82 144 144V192z"})})}function ol(e){let{size:t=24}=e;return(0,ot.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ot.jsx)("path",{d:"M7.994 153.5c1.326 0 2.687 .3508 3.975 1.119L208 271.5v223.8c0 9.741-7.656 16.71-16.01 16.71c-2.688 0-5.449-.7212-8.05-2.303l-152.2-92.47C12.13 405.3 0 383.3 0 359.5v-197.7C0 156.1 3.817 153.5 7.994 153.5zM426.2 117.2c0 2.825-1.352 5.647-4.051 7.248L224 242.6L25.88 124.4C23.19 122.8 21.85 119.1 21.85 117.2c0-2.8 1.32-5.603 3.965-7.221l165.1-100.9C201.7 3.023 212.9 0 224 0s22.27 3.023 32.22 9.07l165.1 100.9C424.8 111.6 426.2 114.4 426.2 117.2zM440 153.5C444.2 153.5 448 156.1 448 161.8v197.7c0 23.75-12.12 45.75-31.78 57.69l-152.2 92.5C261.5 511.3 258.7 512 256 512C247.7 512 240 505 240 495.3V271.5l196-116.9C437.3 153.8 438.7 153.5 440 153.5z"})})}function ou(e){let{size:t=24}=e;return(0,ot.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:t,height:t,fill:"currentColor",children:(0,ot.jsx)("path",{d:"M495.9 166.6C499.2 175.2 496.4 184.9 489.6 191.2L446.3 230.6C447.4 238.9 448 247.4 448 256C448 264.6 447.4 273.1 446.3 281.4L489.6 320.8C496.4 327.1 499.2 336.8 495.9 345.4C491.5 357.3 486.2 368.8 480.2 379.7L475.5 387.8C468.9 398.8 461.5 409.2 453.4 419.1C447.4 426.2 437.7 428.7 428.9 425.9L373.2 408.1C359.8 418.4 344.1 427 329.2 433.6L316.7 490.7C314.7 499.7 307.7 506.1 298.5 508.5C284.7 510.8 270.5 512 255.1 512C241.5 512 227.3 510.8 213.5 508.5C204.3 506.1 197.3 499.7 195.3 490.7L182.8 433.6C167 427 152.2 418.4 138.8 408.1L83.14 425.9C74.3 428.7 64.55 426.2 58.63 419.1C50.52 409.2 43.12 398.8 36.52 387.8L31.84 379.7C25.77 368.8 20.49 357.3 16.06 345.4C12.82 336.8 15.55 327.1 22.41 320.8L65.67 281.4C64.57 273.1 64 264.6 64 256C64 247.4 64.57 238.9 65.67 230.6L22.41 191.2C15.55 184.9 12.82 175.3 16.06 166.6C20.49 154.7 25.78 143.2 31.84 132.3L36.51 124.2C43.12 113.2 50.52 102.8 58.63 92.95C64.55 85.8 74.3 83.32 83.14 86.14L138.8 103.9C152.2 93.56 167 84.96 182.8 78.43L195.3 21.33C197.3 12.25 204.3 5.04 213.5 3.51C227.3 1.201 241.5 0 256 0C270.5 0 284.7 1.201 298.5 3.51C307.7 5.04 314.7 12.25 316.7 21.33L329.2 78.43C344.1 84.96 359.8 93.56 373.2 103.9L428.9 86.14C437.7 83.32 447.4 85.8 453.4 92.95C461.5 102.8 468.9 113.2 475.5 124.2L480.2 132.3C486.2 143.2 491.5 154.7 495.9 166.6V166.6zM256 336C300.2 336 336 300.2 336 255.1C336 211.8 300.2 175.1 256 175.1C211.8 175.1 176 211.8 176 255.1C176 300.2 211.8 336 256 336z"})})}function oc(e){let{size:t=24}=e;return(0,ot.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:t,width:t,fill:"currentColor",children:(0,ot.jsx)("path",{d:"M448 80v48c0 44.2-100.3 80-224 80S0 172.2 0 128V80C0 35.8 100.3 0 224 0S448 35.8 448 80zM393.2 214.7c20.8-7.4 39.9-16.9 54.8-28.6V288c0 44.2-100.3 80-224 80S0 332.2 0 288V186.1c14.9 11.8 34 21.2 54.8 28.6C99.7 230.7 159.5 240 224 240s124.3-9.3 169.2-25.3zM0 346.1c14.9 11.8 34 21.2 54.8 28.6C99.7 390.7 159.5 400 224 400s124.3-9.3 169.2-25.3c20.8-7.4 39.9-16.9 54.8-28.6V432c0 44.2-100.3 80-224 80S0 476.2 0 432V346.1z"})})}function od(e){let{size:t=24}=e;return(0,ot.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,width:t,fill:"currentColor",children:(0,ot.jsx)("path",{d:"M64 480H448c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H298.5c-17 0-33.3-6.7-45.3-18.7L226.7 50.7c-12-12-28.3-18.7-45.3-18.7H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64z"})})}function of(e){let{size:t=24}=e;return(0,ot.jsxs)("svg",{version:"1.1",id:"icon",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:t,height:t,fill:"currentColor",viewBox:"0 0 32 32",children:[(0,ot.jsx)("polygon",{points:"23,9.2 20.4,6.6 19,8 23,12 30,5 28.6,3.6 "}),(0,ot.jsx)("polygon",{points:"12,5.4 10.6,4 8,6.6 5.4,4 4,5.4 6.6,8 4,10.6 5.4,12 8,9.4 10.6,12 12,10.6 9.4,8 "}),(0,ot.jsx)("polygon",{points:"12,21.4 10.6,20 8,22.6 5.4,20 4,21.4 6.6,24 4,26.6 5.4,28 8,25.4 10.6,28 12,26.6 9.4,24 "}),(0,ot.jsx)("polygon",{points:"17,15 17,2 15,2 15,15 2,15 2,17 15,17 15,30 17,30 17,17 30,17 30,15 "}),(0,ot.jsx)("rect",{fill:"none",width:"32",height:"32"})]})}function oh(e){let{size:t=24}=e;return(0,ot.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ot.jsx)("path",{d:"M224 0c-17.7 0-32 14.3-32 32V51.2C119 66 64 130.6 64 208v18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416H416c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8V208c0-77.4-55-142-128-156.8V32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3H224 160c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"})})}},9969:function(e,t,n){"use strict";n.d(t,{pz:function(){return eo},HI:function(){return o},Z7:function(){return K},Uy:function(){return Y},e$:function(){return er},oe:function(){return ei},S0:function(){return ea},YX:function(){return et},Bl:function(){return es},D5:function(){return L},oV:function(){return Z},sg:function(){return z},ol:function(){return F},B$:function(){return D},d_:function(){return a},DQ:function(){return s},cq:function(){return N},IK:function(){return R},GP:function(){return P},nH:function(){return l},$:function(){return E},s2:function(){return O},ni:function(){return M},uf:function(){return _},Os:function(){return T},FV:function(){return k},Yy:function(){return X},Bi:function(){return Q},X1:function(){return J},wy:function(){return I},xw:function(){return H},Jv:function(){return V},p$:function(){return eu},Iy:function(){return B},Q5:function(){return U},ZM:function(){return ec},f$:function(){return eh},yu:function(){return W},KJ:function(){return q},og:function(){return G},Wl:function(){return d},cQ:function(){return c},ys:function(){return p},QL:function(){return h},X2:function(){return m},aO:function(){return b},gU:function(){return g},a0:function(){return w},cg:function(){return y},Qq:function(){return v},RF:function(){return ef}});var r=n(79381),i=n(95753);let o="/bus/state";function a(e){return(0,i.Nf)({...e,route:o})}function s(e){return(0,i.Nf)({...e,route:"/bus/consensus/state"})}function l(){let e=a({config:{swr:{revalidateOnFocus:!1}}}),t=(0,r.ZP)(e,()=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.network)==="Zen Testnet"?(0,i.du)():(0,i.Tc)()},{refreshInterval:6e4,keepPreviousData:!0});return t.data||0}let u="/bus/syncer/peers";function c(e){return(0,i.Nf)({...e,route:u})}function d(e){return(0,i.mw)({...e,route:"/bus/syncer/connect"},async e=>{e(e=>e===u)})}let f="/bus/txpool/transactions";function h(e){return(0,i.Nf)({...e,route:f})}function p(e){return(0,i.mw)({...e,route:"/bus/txpool/broadcast"},async e=>{await (0,i.gw)(2e3),e(e=>e.startsWith(f)||e.startsWith(x))})}function m(e){return(0,i.Nf)({...e,route:"/bus/wallet"})}function v(e){return(0,i.Nf)({...e,route:"/bus/wallet/transactions"})}function g(e){return(0,i.mw)({...e,route:"/bus/wallet/fund"})}function y(e){return(0,i.mw)({...e,route:"/bus/wallet/sign"})}function b(e){return(0,i.mw)({...e,route:"/bus/wallet/discard"})}let x="/bus/wallet/pending";function w(e){return(0,i.Nf)({...e,route:x})}let j="/bus/search/hosts";function k(e){return(0,i.q0)({...e,route:j})}function E(e){return(0,i.Nf)({...e,route:"/bus/host/:hostKey"})}let S="/bus/hosts/blocklist";function _(e){return(0,i.Nf)({...e,route:S})}let C="/bus/hosts/allowlist";function O(e){return(0,i.Nf)({...e,route:C})}function M(e){return(0,i.V1)({...e,route:"/bus/hosts/allowlist"},async e=>{e(e=>!![j,C,A].find(t=>e.startsWith(t)))})}function T(e){return(0,i.V1)({...e,route:"/bus/hosts/blocklist"},async e=>{e(e=>!![j,S,A].find(t=>e.startsWith(t)))})}let A="/bus/contracts";function P(e){return(0,i.Nf)({...e,route:A})}function N(e){return(0,i.Nf)({...e,route:"/bus/contract/:id"})}function R(e){return(0,i.iv)({...e,route:"/bus/contract/:id"},async e=>{e(e=>e.startsWith("/bus/contract"))})}function D(e){return(0,i.Nf)({...e,route:"/bus/buckets"})}function L(e){return(0,i.Nf)({...e,route:"/bus/bucket/:name"})}function Z(e){return(0,i.mw)({...e,route:"/bus/buckets"},async e=>{e(e=>e.startsWith("/bus/buckets"))})}function F(e){return(0,i.V1)({...e,route:"/bus/bucket/:name/policy"},async e=>{e(e=>e.startsWith("/bus/bucket"))})}function z(e){return(0,i.iv)({...e,route:"/bus/bucket/:name"},async e=>{e(e=>e.startsWith("/bus/bucket"))})}function V(e){return(0,i.Nf)({...e,route:"/bus/objects/:key"})}function I(e){return(0,i.Nf)({...e,route:"/bus/objects/:key"})}function B(e){return(0,i.Nf)({...e,route:"/bus/search/objects"})}function H(e){return(0,i.iv)({...e,route:"/bus/objects/:key"},async e=>{e(e=>e.startsWith("/bus/objects/"))})}function U(e){return(0,i.Nf)({...e,route:"/bus/stats/objects"})}function W(e){return(0,i.Nf)({...e,route:"/bus/setting/:key"})}function q(e){return(0,i.V1)({...e,route:"/bus/setting/:key"},async(e,t)=>{e(e=>e.startsWith("/bus/setting/".concat(t.params.key)))})}let $="/bus/alerts";function K(e){return(0,i.Nf)({...e,route:$})}function Y(e){return(0,i.mw)({...e,route:"/bus/alerts/dismiss"},async e=>{e(e=>e.startsWith($))})}function G(e){return(0,i.Nf)({...e,route:"/bus/slab/:key/objects"})}function X(e){return(0,i.Nf)({...e,route:"/bus/metric/contract"})}function Q(e){return(0,i.Nf)({...e,route:"/bus/metric/contractset"})}function J(e){return(0,i.Nf)({...e,route:"/bus/metric/wallet"})}let ee="/autopilot/state";function et(e){return(0,i.Nf)({...e,route:ee})}let en="/autopilot/config";function er(e){return(0,i.Nf)({...e,route:en})}function ei(e){return(0,i.V1)({...e,route:en},async e=>{e(e=>e===en);let t=async()=>{await (0,i.gw)(1e3),e(e=>e===ee)};t()})}let eo="/autopilot/hosts";function ea(e){return(0,i.q0)({...e,route:eo})}function es(e){return(0,i.mw)({...e,route:"/autopilot/trigger"})}var el=n(1456);function eu(e){return(0,i.rB)({...e,route:"/worker/objects/:key"})}function ec(e){var t;return(0,i.V1)({...e,config:{...null==e?void 0:e.config,axios:{...null==e?void 0:null===(t=e.config)||void 0===t?void 0:t.axios,headers:{"Content-Type":"multipart/form-data"}}},route:"/worker/objects/:key"},async e=>{e(e=>e.startsWith("/bus/objects"))})}let ed=(0,el.Z)(e=>e(),5e3),ef="/worker/rhp/scan";function eh(e){return(0,i.mw)({...e,route:ef},async(e,t,n)=>{let{payload:{hostKey:r}}=t;e(e=>e.startsWith("/autopilot/hosts"),e=>null==e?void 0:e.map(e=>e.host.publicKey===r?{...e,host:{...e.host,interactions:{...e.host.interactions,LastScan:new Date().toISOString(),LastScanSuccess:!n.data.scanError},settings:n.data.settings}}:e),!1),e(e=>e.startsWith("/bus/search/hosts"),e=>null==e?void 0:e.map(e=>e.publicKey===r?{...e,interactions:{...e.interactions,LastScan:new Date().toISOString(),LastScanSuccess:!n.data.scanError},settings:n.data.settings}:e),!1),ed(()=>{e(e=>e.startsWith("/autopilot/hosts")||e.startsWith("/bus/search/hosts"),e=>e,!0)})})}},9455:function(e,t,n){"use strict";n.d(t,{BW:function(){return s},JL:function(){return o},BF:function(){return a}});var r=n(95753);let i="https://api.siacentral.com/v2";function o(e){let{settings:t}=(0,r.Hv)();return(0,r.Nf)({api:i,...e,route:"/hosts/list?showinactive=false&sort=download_speed&dir=desc&protocol=rhp3&page=0&limit=1000",disabled:(null==e?void 0:e.disabled)||!t.siaCentral})}function a(e){let{settings:t}=(0,r.Hv)();return(0,r.Nf)({api:i,...e,route:"/hosts/network/averages",disabled:(null==e?void 0:e.disabled)||!t.siaCentral})}function s(e){let{settings:t}=(0,r.Hv)();return(0,r.Nf)({api:i,...e,route:"/market/exchange-rate?currencies=sc",disabled:(null==e?void 0:e.disabled)||!t.siaCentral})}},25205:function(e,t,n){"use strict";n.d(t,{xf:function(){return a},jr:function(){return x},pp:function(){return y},x5:function(){return b},JW:function(){return o},gU:function(){return m},vW:function(){return f},rN:function(){return p},yF:function(){return h},Vz:function(){return d},S5:function(){return g},qN:function(){return u},ll:function(){return l},mv:function(){return v}});var r=n(6391),i=n.n(r);function o(e){return new(i())(e).div(1e3).div(1e3).div(1e3).div(1e3)}function a(e){return new(i())(e).times(1e3).times(1e3).times(1e3).times(1e3)}r.BigNumber.config({EXPONENTIAL_AT:1e9}),r.BigNumber.config({DECIMAL_PLACES:30});let s=new r.BigNumber("10").exponentiatedBy(24);function l(e,t){return void 0!==t?new r.BigNumber(new r.BigNumber(e).dividedBy(s).toFixed(t)):new r.BigNumber(e).dividedBy(s)}function u(e){return new r.BigNumber(new r.BigNumber(e).times(s).toFixed(0))}let c={fixed:3,dynamicUnits:!0,hastingUnits:!1};function d(e,t){let{fixed:n,dynamicUnits:i,hastingUnits:o}={...c,...t},a=new r.BigNumber(1e12),s=new r.BigNumber(1e3),u=new r.BigNumber(e),d=new r.BigNumber(e).abs(),f=u.isNegative()?"-":"";if(!i)return"".concat(f).concat(l(d).toFormat(n)," SC");if(d.dividedBy(a).isLessThan(1))return o?"".concat(f).concat(d," H"):"".concat(f,"0 SC");let h=["pS","nS","uS","mS","SC","KS","MS","GS","TS"];for(let e=0;ee.multipliedBy(s),new r.BigNumber(1)),i=d.dividedBy(a.multipliedBy(t));if(i.isLessThan(s)||e===h.length-1)return"".concat(f).concat(i.toFormat(n)," ").concat(h[e])}return""}function f(e,t){let n="number"==typeof e?e:e instanceof i()?e.toNumber():Number(e),{fixed:r=2}=t||{};if(!n)return"0 B";if(n<1e3)return"".concat(n," B");let o=Math.floor(Math.log10(n)/Math.log10(1e3)),a=n/Math.pow(1e3,o);return a.toFixed(r)+" "+["B","KB","MB","GB","TB","PB","EB"][o]}function h(e,t){let{fixed:n=0,units:r="",abbreviated:o=!1}=t||{},a=new(i())(e||0);if(o){let e=a.toNumber();if(e<1e3)return a.toString();let t=["","K","M","B","t","q","Q","s","S","o","n","d","U","D"],i=Math.floor(Math.log10(e)/Math.log10(1e3)),o=e/Math.pow(1e3,i);return"".concat(o.toFixed(n)).concat(t[i]?" ".concat(t[i]):"").concat(r?" ".concat(r):"")}return"".concat(a.toFormat(n)).concat(r?" ".concat(r):"")}function p(e,t){let n;return n=navigator.language,new Intl.DateTimeFormat(n,{dateStyle:"short",...t}).format(new Date(e))}function m(e){return 144*e}function v(e){return 1008*e}function g(e){return 4320*e}function y(e){return e/16666666666666669e-22}function b(e){return e/1008}function x(e,t){return new Date().getTime()+y(t-e)}n(81395)},2271:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return o}});let n=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class r{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}}let i=globalThis.AsyncLocalStorage;function o(){return i?new i:new r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},26252:function(e,t,n){"use strict";function r(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return r}}),n(43219),n(2784),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55046:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return h},useSearchParams:function(){return p},usePathname:function(){return m},ServerInsertedHTMLContext:function(){return l.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return l.useServerInsertedHTML},useRouter:function(){return v},useParams:function(){return g},useSelectedLayoutSegments:function(){return y},useSelectedLayoutSegment:function(){return b},redirect:function(){return u.redirect},permanentRedirect:function(){return u.permanentRedirect},RedirectType:function(){return u.RedirectType},notFound:function(){return c.notFound}});let r=n(2784),i=n(60587),o=n(58839),a=n(26252),s=n(4424),l=n(44673),u=n(75903),c=n(47067),d=Symbol("internal for urlsearchparams readonly");function f(){return Error("ReadonlyURLSearchParams cannot be modified")}class h{[Symbol.iterator](){return this[d][Symbol.iterator]()}append(){throw f()}delete(){throw f()}set(){throw f()}sort(){throw f()}constructor(e){this[d]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e),this.size=e.size}}function p(){(0,a.clientHookInServerComponentError)("useSearchParams");let e=(0,r.useContext)(o.SearchParamsContext),t=(0,r.useMemo)(()=>e?new h(e):null,[e]);return t}function m(){return(0,a.clientHookInServerComponentError)("usePathname"),(0,r.useContext)(o.PathnameContext)}function v(){(0,a.clientHookInServerComponentError)("useRouter");let e=(0,r.useContext)(i.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function g(){(0,a.clientHookInServerComponentError)("useParams");let e=(0,r.useContext)(i.GlobalLayoutRouterContext),t=(0,r.useContext)(o.PathParamsContext);return e?function e(t,n){void 0===n&&(n={});let r=t[1];for(let t of Object.values(r)){let r=t[0],i=Array.isArray(r),o=i?r[1]:r;if(!o||o.startsWith("__PAGE__"))continue;let a=i&&("c"===r[2]||"oc"===r[2]);a?n[r[0]]=r[1].split("/"):i&&(n[r[0]]=r[1]),n=e(t,n)}return n}(e.tree):t}function y(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,r.useContext)(i.LayoutRouterContext);return function e(t,n,r,i){let o;if(void 0===r&&(r=!0),void 0===i&&(i=[]),r)o=t[1][n];else{var a;let e=t[1];o=null!=(a=e.children)?a:Object.values(e)[0]}if(!o)return i;let l=o[0],u=(0,s.getSegmentValue)(l);return!u||u.startsWith("__PAGE__")?i:(i.push(u),e(o,n,!1,i))}(t,e)}function b(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=y(e);return 0===t.length?null:t[0]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},47067:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{notFound:function(){return r},isNotFoundError:function(){return i}});let n="NEXT_NOT_FOUND";function r(){let e=Error(n);throw e.digest=n,e}function i(e){return(null==e?void 0:e.digest)===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75903:function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return r},getRedirectError:function(){return s},redirect:function(){return l},permanentRedirect:function(){return u},isRedirectError:function(){return c},getURLFromRedirectError:function(){return d},getRedirectTypeFromError:function(){return f}});let o=n(7552),a="NEXT_REDIRECT";function s(e,t,n){void 0===n&&(n=!1);let r=Error(a);r.digest=a+";"+t+";"+e+";"+n;let i=o.requestAsyncStorage.getStore();return i&&(r.mutableCookies=i.mutableCookies),r}function l(e,t){throw void 0===t&&(t="replace"),s(e,t,!1)}function u(e,t){throw void 0===t&&(t="replace"),s(e,t,!0)}function c(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,n,r,i]=e.digest.split(";",4);return t===a&&("replace"===n||"push"===n)&&"string"==typeof r&&("true"===i||"false"===i)}function d(e){return c(e)?e.digest.split(";",3)[2]:null}function f(e){if(!c(e))throw Error("Not a redirect error");return e.digest.split(";",3)[1]}(i=r||(r={})).push="push",i.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7552:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return i}});let r=n(2271),i=(0,r.createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4424:function(e,t){"use strict";function n(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},23116:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PrefetchKind:function(){return n},ACTION_REFRESH:function(){return i},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return s},ACTION_PREFETCH:function(){return l},ACTION_FAST_REFRESH:function(){return u},ACTION_SERVER_ACTION:function(){return c}});let i="refresh",o="navigate",a="restore",s="server-patch",l="prefetch",u="fast-refresh",c="server-action";(r=n||(n={})).AUTO="auto",r.FULL="full",r.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25146:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(67858),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},80920:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return y}});let r=n(43219),i=n(16794),o=i._(n(2784)),a=r._(n(28316)),s=r._(n(37412)),l=n(31918),u=n(97686),c=n(45802);n(84759);let d=n(54365),f=r._(n(2088)),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function p(e,t,n,r,i,o){let a=null==e?void 0:e.src;if(!e||e["data-loaded-src"]===a)return;e["data-loaded-src"]=a;let s="decode"in e?e.decode():Promise.resolve();s.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,i=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}})}function m(e){let[t,n]=o.version.split("."),r=parseInt(t,10),i=parseInt(n,10);return r>18||18===r&&i>=3?{fetchPriority:e}:{fetchpriority:e}}let v=(0,o.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:i,height:a,width:s,decoding:l,className:u,style:c,fetchPriority:d,placeholder:f,loading:h,unoptimized:v,fill:g,onLoadRef:y,onLoadingCompleteRef:b,setBlurComplete:x,setShowAltText:w,onLoad:j,onError:k,...E}=e;return o.default.createElement("img",{...E,...m(d),loading:h,width:s,height:a,decoding:l,"data-nimg":g?"fill":"1",className:u,style:c,sizes:i,srcSet:r,src:n,ref:(0,o.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(k&&(e.src=e.src),e.complete&&p(e,f,y,b,x,v))},[n,f,y,b,x,k,v,t]),onLoad:e=>{let t=e.currentTarget;p(t,f,y,b,x,v)},onError:e=>{w(!0),"empty"!==f&&x(!0),k&&k(e)}})});function g(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...m(n.fetchPriority)};return t&&a.default.preload?(a.default.preload(n.src,r),null):o.default.createElement(s.default,null,o.default.createElement("link",{key:"__nimg-"+n.src+n.srcSet+n.sizes,rel:"preload",href:n.srcSet?void 0:n.src,...r}))}let y=(0,o.forwardRef)((e,t)=>{let n=(0,o.useContext)(d.RouterContext),r=(0,o.useContext)(c.ImageConfigContext),i=(0,o.useMemo)(()=>{let e=h||r||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[r]),{onLoad:a,onLoadingComplete:s}=e,p=(0,o.useRef)(a);(0,o.useEffect)(()=>{p.current=a},[a]);let m=(0,o.useRef)(s);(0,o.useEffect)(()=>{m.current=s},[s]);let[y,b]=(0,o.useState)(!1),[x,w]=(0,o.useState)(!1),{props:j,meta:k}=(0,l.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:y,showAltText:x});return o.default.createElement(o.default.Fragment,null,o.default.createElement(v,{...j,unoptimized:k.unoptimized,placeholder:k.placeholder,fill:k.fill,onLoadRef:p,onLoadingCompleteRef:m,setBlurComplete:b,setShowAltText:w,ref:t}),k.priority?o.default.createElement(g,{isAppRouter:!n,imgAttributes:j}):null)});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},13814:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});let r=n(43219),i=r._(n(2784)),o=n(31068),a=n(33134),s=n(39585),l=n(51570),u=n(19868),c=n(54365),d=n(60587),f=n(93629),h=n(25146),p=n(10694),m=n(23116),v=new Set;function g(e,t,n,r,i,o){if(!o&&!(0,a.isLocalURL)(t))return;if(!r.bypassPrefetchedCheck){let i=void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0,o=t+"%"+n+"%"+i;if(v.has(o))return;v.add(o)}let s=o?e.prefetch(t,i):e.prefetch(t,n,r);Promise.resolve(s).catch(e=>{})}function y(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let b=i.default.forwardRef(function(e,t){let n,r;let{href:s,as:v,children:b,prefetch:x=null,passHref:w,replace:j,shallow:k,scroll:E,locale:S,onClick:_,onMouseEnter:C,onTouchStart:O,legacyBehavior:M=!1,...T}=e;n=b,M&&("string"==typeof n||"number"==typeof n)&&(n=i.default.createElement("a",null,n));let A=i.default.useContext(c.RouterContext),P=i.default.useContext(d.AppRouterContext),N=null!=A?A:P,R=!A,D=!1!==x,L=null===x?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,{href:Z,as:F}=i.default.useMemo(()=>{if(!A){let e=y(s);return{href:e,as:v?y(v):e}}let[e,t]=(0,o.resolveHref)(A,s,!0);return{href:e,as:v?(0,o.resolveHref)(A,v):t||e}},[A,s,v]),z=i.default.useRef(Z),V=i.default.useRef(F);M&&(r=i.default.Children.only(n));let I=M?r&&"object"==typeof r&&r.ref:t,[B,H,U]=(0,f.useIntersection)({rootMargin:"200px"}),W=i.default.useCallback(e=>{(V.current!==F||z.current!==Z)&&(U(),V.current=F,z.current=Z),B(e),I&&("function"==typeof I?I(e):"object"==typeof I&&(I.current=e))},[F,I,Z,U,B]);i.default.useEffect(()=>{N&&H&&D&&g(N,Z,F,{locale:S},{kind:L},R)},[F,Z,H,S,D,null==A?void 0:A.locale,N,R,L]);let q={ref:W,onClick(e){M||"function"!=typeof _||_(e),M&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),N&&!e.defaultPrevented&&function(e,t,n,r,o,s,l,u,c,d){let{nodeName:f}=e.currentTarget,h="A"===f.toUpperCase();if(h&&(function(e){let t=e.currentTarget,n=t.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let p=()=>{let e=null==l||l;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:s,locale:u,scroll:e}):t[o?"replace":"push"](r||n,{forceOptimisticNavigation:!d,scroll:e})};c?i.default.startTransition(p):p()}(e,N,Z,F,j,k,E,S,R,D)},onMouseEnter(e){M||"function"!=typeof C||C(e),M&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),N&&(D||!R)&&g(N,Z,F,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:L},R)},onTouchStart(e){M||"function"!=typeof O||O(e),M&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),N&&(D||!R)&&g(N,Z,F,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:L},R)}};if((0,l.isAbsoluteUrl)(F))q.href=F;else if(!M||w||"a"===r.type&&!("href"in r.props)){let e=void 0!==S?S:null==A?void 0:A.locale,t=(null==A?void 0:A.isLocaleDomain)&&(0,h.getDomainLocale)(F,e,null==A?void 0:A.locales,null==A?void 0:A.domainLocales);q.href=t||(0,p.addBasePath)((0,u.addLocale)(F,e,null==A?void 0:A.defaultLocale))}return M?i.default.cloneElement(r,q):i.default.createElement("a",{...T,...q},n)}),x=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93629:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(2784),i=n(30857),o="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,u=l||!o,[c,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),h=(0,r.useCallback)(e=>{f.current=e},[]);(0,r.useEffect)(()=>{if(o){if(u||c)return;let e=f.current;if(e&&e.tagName){let r=function(e,t,n){let{id:r,observer:i,elements:o}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let i=new Map,o=new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:o,elements:i},s.push(n),a.set(n,t),t}(n);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n});return r}}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,n,t,c,f.current]);let p=(0,r.useCallback)(()=>{d(!1)},[]);return[h,c,p]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},22698:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{noSSR:function(){return a},default:function(){return s}});let r=n(43219),i=(n(2784),r._(n(94780)));function o(e){return{default:(null==e?void 0:e.default)||e}}function a(e,t){return delete t.webpack,delete t.modules,e(t)}function s(e,t){let n=i.default,r={loading:e=>{let{error:t,isLoading:n,pastDelay:r}=e;return null}};e instanceof Promise?r.loader=()=>e:"function"==typeof e?r.loader=e:"object"==typeof e&&(r={...r,...e}),r={...r,...t};let s=r.loader;return(r.loadableGenerated&&(r={...r,...r.loadableGenerated},delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr)?n({...r,loader:()=>null!=s?s().then(o):Promise.resolve(o(()=>null))}):(delete r.webpack,delete r.modules,a(n,r))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},31918:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),n(84759);let r=n(69933),i=n(97686);function o(e){return void 0!==e.default}function a(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function s(e,t){var n;let s,l,u,{src:c,sizes:d,unoptimized:f=!1,priority:h=!1,loading:p,className:m,quality:v,width:g,height:y,fill:b=!1,style:x,onLoad:w,onLoadingComplete:j,placeholder:k="empty",blurDataURL:E,fetchPriority:S,layout:_,objectFit:C,objectPosition:O,lazyBoundary:M,lazyRoot:T,...A}=e,{imgConf:P,showAltText:N,blurComplete:R,defaultLoader:D}=t,L=P||i.imageConfigDefault;if("allSizes"in L)s=L;else{let e=[...L.deviceSizes,...L.imageSizes].sort((e,t)=>e-t),t=L.deviceSizes.sort((e,t)=>e-t);s={...L,allSizes:e,deviceSizes:t}}let Z=A.loader||D;delete A.loader,delete A.srcSet;let F="__next_img_default"in Z;if(F){if("custom"===s.loader)throw Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=Z;Z=t=>{let{config:n,...r}=t;return e(r)}}if(_){"fill"===_&&(b=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[_];e&&(x={...x,...e});let t={responsive:"100vw",fill:"100vw"}[_];t&&!d&&(d=t)}let z="",V=a(g),I=a(y);if("object"==typeof(n=c)&&(o(n)||void 0!==n.src)){let e=o(c)?c.default:c;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(l=e.blurWidth,u=e.blurHeight,E=E||e.blurDataURL,z=e.src,!b){if(V||I){if(V&&!I){let t=V/e.width;I=Math.round(e.height*t)}else if(!V&&I){let t=I/e.height;V=Math.round(e.width*t)}}else V=e.width,I=e.height}}let B=!h&&("lazy"===p||void 0===p);(!(c="string"==typeof c?c:z)||c.startsWith("data:")||c.startsWith("blob:"))&&(f=!0,B=!1),s.unoptimized&&(f=!0),F&&c.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(f=!0),h&&(S="high");let H=a(v),U=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:C,objectPosition:O}:{},N?{}:{color:"transparent"},x),W=R||"empty"===k?null:"blur"===k?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:V,heightInt:I,blurWidth:l,blurHeight:u,blurDataURL:E||"",objectFit:U.objectFit})+'")':'url("'+k+'")',q=W?{backgroundSize:U.objectFit||"cover",backgroundPosition:U.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:W}:{},$=function(e){let{config:t,src:n,unoptimized:r,width:i,quality:o,sizes:a,loader:s}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,n){let{deviceSizes:r,allSizes:i}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:i,kind:"w"}}if("number"!=typeof t)return{widths:r,kind:"w"};let o=[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))];return{widths:o,kind:"x"}}(t,i,a),c=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((e,r)=>s({config:t,src:n,quality:o,width:e})+" "+("w"===u?e:r+1)+u).join(", "),src:s({config:t,src:n,quality:o,width:l[c]})}}({config:s,src:c,unoptimized:f,width:V,quality:H,sizes:d,loader:Z}),K={...A,loading:B?"lazy":p,fetchPriority:S,width:V,height:I,decoding:"async",className:m,style:{...U,...q},sizes:$.sizes,srcSet:$.srcSet,src:$.src},Y={unoptimized:f,priority:h,placeholder:k,fill:b};return{props:K,meta:Y}}},69933:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:o,objectFit:a}=e,s=r?40*r:t,l=i?40*i:n,u=s&&l?"viewBox='0 0 "+s+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},81963:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return u},unstable_getImgProps:function(){return l}});let r=n(43219),i=n(31918),o=n(84759),a=n(80920),s=r._(n(2088)),l=e=>{(0,o.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:t}=(0,i.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}},u=a.Image},2088:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:i}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},49306:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return o}});let r=n(43219),i=r._(n(2784)),o=i.default.createContext(null)},94780:function(e,t,n){"use strict";/** +@copyright (c) 2017-present James Kyle + MIT License + Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE +*/Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let r=n(43219),i=r._(n(2784)),o=n(49306),a=[],s=[],l=!1;function u(e){let t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}class c{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function d(e){return function(e,t){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),r=null;function a(){if(!r){let t=new c(e,n);r={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return r.promise()}if(!l){let e=n.webpack?n.webpack():n.modules;e&&s.push(t=>{for(let n of e)if(t.includes(n))return a()})}function u(e,t){!function(){a();let e=i.default.useContext(o.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach(t=>{e(t)})}();let s=i.default.useSyncExternalStore(r.subscribe,r.getCurrentValue,r.getCurrentValue);return i.default.useImperativeHandle(t,()=>({retry:r.retry}),[]),i.default.useMemo(()=>{var t;return s.loading||s.error?i.default.createElement(n.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:r.retry}):s.loaded?i.default.createElement((t=s.loaded)&&t.default?t.default:t,e):null},[e,s])}return u.preload=()=>a(),u.displayName="LoadableComponent",i.default.forwardRef(u)}(u,e)}function f(e,t){let n=[];for(;e.length;){let r=e.pop();n.push(r(t))}return Promise.all(n).then(()=>{if(e.length)return f(e,t)})}d.preloadAll=()=>new Promise((e,t)=>{f(a).then(e,t)}),d.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let n=()=>(l=!0,t());f(s,e).then(n,n)})),window.__NEXT_PRELOADREADY=d.preloadReady;let h=d},44673:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return a}});let r=n(16794),i=r._(n(2784)),o=i.default.createContext(null);function a(e){let t=(0,i.useContext)(o);t&&t(e)}},37832:function(){},49854:function(e){e.exports={style:{fontFamily:"'__IBM_Plex_Mono_355ef5', '__IBM_Plex_Mono_Fallback_355ef5'"},className:"__className_355ef5",variable:"__variable_355ef5"}},1240:function(e){e.exports={style:{fontFamily:"'__IBM_Plex_Sans_829fdc', '__IBM_Plex_Sans_Fallback_829fdc'"},className:"__className_829fdc",variable:"__variable_829fdc"}},25237:function(e,t,n){e.exports=n(22698)},97729:function(e,t,n){e.exports=n(37412)},96577:function(e,t,n){e.exports=n(81963)},39097:function(e,t,n){e.exports=n(13814)},82876:function(e,t,n){e.exports=n(55046)},5632:function(e,t,n){e.exports=n(60222)},24470:function(e){var t=String,n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}};e.exports=n(),e.exports.createColors=n},34406:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c1)for(var n=1;n=this._maxSize&&this.clear(),!(e in this._values)&&this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,i=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new t(512),l=new t(512),u=new t(512);function c(e){return s.get(e)||s.set(e,d(e).map(function(e){return e.replace(a,"$2")}))}function d(e){return e.match(n)||[""]}function f(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}e.exports={Cache:t,split:d,normalizePath:c,setter:function(e){var t=c(e);return l.get(e)||l.set(e,function(e,n){for(var r=0,i=t.length,o=e;r>>7-e%8&1)==1},put:function(e,t){for(var n=0;n>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},81432:function(e){e.exports={L:1,M:0,Q:3,H:2}},84695:function(e,t,n){var r=n(35856);function i(e,t){if(void 0==e.length)throw Error(e.length+"/"+t);for(var n=0;n=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=l.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},u.setupPositionProbePattern=function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1)&&!(this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4?this.modules[e+n][t+r]=!0:this.modules[e+n][t+r]=!1)},u.getBestMaskPattern=function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=a.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t},u.createMovieClip=function(e,t,n){var r=e.createEmptyMovieClip(t,n);this.make();for(var i=0;i>n&1)==1;this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(var n=0;n<18;n++){var r=!e&&(t>>n&1)==1;this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},u.setupTypeInfo=function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=a.getBCHTypeInfo(n),i=0;i<15;i++){var o=!e&&(r>>i&1)==1;i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(var i=0;i<15;i++){var o=!e&&(r>>i&1)==1;i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o}this.modules[this.moduleCount-8][8]=!e},u.mapData=function(e,t){for(var n=-1,r=this.moduleCount-1,i=7,o=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var l=0;l<2;l++)if(null==this.modules[r][s-l]){var u=!1;o>>i&1)==1),a.getMask(t,r,s-l)&&(u=!u),this.modules[r][s-l]=u,-1==--i&&(o++,i=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}},l.PAD0=236,l.PAD1=17,l.createData=function(e,t,n){for(var r=i.getRSBlocks(e,t),s=new o,u=0;u8*d)throw Error("code length overflow. ("+s.getLengthInBits()+">"+8*d+")");for(s.getLengthInBits()+4<=8*d&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*d)&&(s.put(l.PAD0,8),!(s.getLengthInBits()>=8*d));)s.put(l.PAD1,8);return l.createBytes(s,r)},l.createBytes=function(e,t){for(var n=0,r=0,i=0,o=Array(t.length),l=Array(t.length),u=0;u=0?p.get(m):0}}for(var v=0,f=0;f=256;)e-=255;return t.EXP_TABLE[e]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},n=0;n<8;n++)t.EXP_TABLE[n]=1<=0;)t^=s.G15<=0;)t^=s.G18<>>=1;return t},getPatternPosition:function(e){return s.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case a.PATTERN000:return(t+n)%2==0;case a.PATTERN001:return t%2==0;case a.PATTERN010:return n%3==0;case a.PATTERN011:return(t+n)%3==0;case a.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case a.PATTERN101:return t*n%2+t*n%3==0;case a.PATTERN110:return(t*n%2+t*n%3)%2==0;case a.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new i([1],0),n=0;n5&&(n+=3+o-5)}for(var r=0;r0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var u=[".DS_Store","Thumbs.db"];function c(e){return"object"==typeof e&&null!==e}function d(e){return e.filter(function(e){return -1===u.indexOf(e.name)})}function f(e){if(null===e)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);nn)return[!1,_(n)];if(e.sizen)return[!1,_(n)]}return[!0,null]}function A(e){return null!=e}function P(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function N(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(e){return"Files"===e||"application/x-moz-file"===e}):!!e.target&&!!e.target.files}function R(e){e.preventDefault()}function D(){for(var e=arguments.length,t=Array(e),n=0;n1?n-1:0),i=1;ie.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Y=(0,r.forwardRef)(function(e,t){var n=e.children,i=Q(K(e,F)),o=i.open,a=K(i,z);return(0,r.useImperativeHandle)(t,function(){return{open:o}},[o]),r.createElement(r.Fragment,null,n(q(q({},a),{},{open:o})))});Y.displayName="Dropzone";var G={disabled:!1,getFilesFromEvent:function(e){return(0,a.mG)(this,void 0,void 0,function(){return(0,a.Jh)(this,function(t){return c(e)&&c(e.dataTransfer)?[2,function(e,t){return(0,a.mG)(this,void 0,void 0,function(){var n;return(0,a.Jh)(this,function(r){switch(r.label){case 0:if(!e.items)return[3,2];if(n=f(e.items).filter(function(e){return"file"===e.kind}),"drop"!==t)return[2,n];return[4,Promise.all(n.map(h))];case 1:return[2,d(function e(t){return t.reduce(function(t,n){return(0,a.ev)((0,a.ev)([],(0,a.CR)(t),!1),(0,a.CR)(Array.isArray(n)?e(n):[n]),!1)},[])}(r.sent()))];case 2:return[2,d(f(e.files).map(function(e){return l(e)}))]}})})}(e.dataTransfer,e.type)]:c(e)&&c(e.target)?[2,f(e.target.files).map(function(e){return l(e)})]:Array.isArray(e)&&e.every(function(e){return"getFile"in e&&"function"==typeof e.getFile})?[2,function(e){return(0,a.mG)(this,void 0,void 0,function(){return(0,a.Jh)(this,function(t){switch(t.label){case 0:return[4,Promise.all(e.map(function(e){return e.getFile()}))];case 1:return[2,t.sent().map(function(e){return l(e)})]}})})}(e)]:[2,[]]})})},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Y.defaultProps=G,Y.propTypes={children:o().func,accept:o().objectOf(o().arrayOf(o().string)),multiple:o().bool,preventDropOnDocument:o().bool,noClick:o().bool,noKeyboard:o().bool,noDrag:o().bool,noDragEventsBubbling:o().bool,minSize:o().number,maxSize:o().number,maxFiles:o().number,disabled:o().bool,getFilesFromEvent:o().func,onFileDialogCancel:o().func,onFileDialogOpen:o().func,useFsAccessApi:o().bool,autoFocus:o().bool,onDragEnter:o().func,onDragLeave:o().func,onDragOver:o().func,onDrop:o().func,onDropAccepted:o().func,onDropRejected:o().func,onError:o().func,validator:o().func};var X={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=q(q({},G),e),n=t.accept,i=t.disabled,o=t.getFilesFromEvent,a=t.maxSize,s=t.minSize,l=t.multiple,u=t.maxFiles,c=t.onDragEnter,d=t.onDragLeave,f=t.onDragOver,h=t.onDrop,p=t.onDropAccepted,m=t.onDropRejected,v=t.onFileDialogCancel,g=t.onFileDialogOpen,b=t.useFsAccessApi,k=t.autoFocus,E=t.preventDropOnDocument,S=t.noClick,_=t.noKeyboard,C=t.noDrag,F=t.noDragEventsBubbling,z=t.onError,W=t.validator,Y=(0,r.useMemo)(function(){return function(e){if(A(e))return Object.entries(e).reduce(function(e,t){var n=j(t,2),r=n[0],i=n[1];return[].concat(y(e),[r],y(i))},[]).filter(function(e){return L(e)||Z(e)}).join(",")}(n)},[n]),Q=(0,r.useMemo)(function(){return A(n)?[{description:"Files",accept:Object.entries(n).filter(function(e){var t=j(e,2),n=t[0],r=t[1],i=!0;return L(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),i=!1),Array.isArray(r)&&r.every(Z)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),i=!1),i}).reduce(function(e,t){var n=j(t,2),r=n[0],i=n[1];return x(x({},e),{},w({},r,i))},{})}]:n},[n]),et=(0,r.useMemo)(function(){return"function"==typeof g?g:ee},[g]),en=(0,r.useMemo)(function(){return"function"==typeof v?v:ee},[v]),er=(0,r.useRef)(null),ei=(0,r.useRef)(null),eo=B((0,r.useReducer)(J,X),2),ea=eo[0],es=eo[1],el=ea.isFocused,eu=ea.isFileDialogActive,ec=(0,r.useRef)("undefined"!=typeof window&&window.isSecureContext&&b&&"showOpenFilePicker"in window),ed=function(){!ec.current&&eu&&setTimeout(function(){ei.current&&!ei.current.files.length&&(es({type:"closeDialog"}),en())},300)};(0,r.useEffect)(function(){return window.addEventListener("focus",ed,!1),function(){window.removeEventListener("focus",ed,!1)}},[ei,eu,en,ec]);var ef=(0,r.useRef)([]),eh=function(e){er.current&&er.current.contains(e.target)||(e.preventDefault(),ef.current=[])};(0,r.useEffect)(function(){return E&&(document.addEventListener("dragover",R,!1),document.addEventListener("drop",eh,!1)),function(){E&&(document.removeEventListener("dragover",R),document.removeEventListener("drop",eh))}},[er,E]),(0,r.useEffect)(function(){return!i&&k&&er.current&&er.current.focus(),function(){}},[er,k,i]);var ep=(0,r.useCallback)(function(e){z?z(e):console.error(e)},[z]),em=(0,r.useCallback)(function(e){var t;e.preventDefault(),e.persist(),eO(e),ef.current=[].concat(function(e){if(Array.isArray(e))return U(e)}(t=ef.current)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||H(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e.target]),N(e)&&Promise.resolve(o(e)).then(function(t){if(!P(e)||F){var n,r,i,o,d,f,h,p,m=t.length,v=m>0&&(r=(n={files:t,accept:Y,minSize:s,maxSize:a,multiple:l,maxFiles:u,validator:W}).files,i=n.accept,o=n.minSize,d=n.maxSize,f=n.multiple,h=n.maxFiles,p=n.validator,(!!f||!(r.length>1))&&(!f||!(h>=1)||!(r.length>h))&&r.every(function(e){var t=j(M(e,i),1)[0],n=j(T(e,o,d),1)[0],r=p?p(e):null;return t&&n&&!r}));es({isDragAccept:v,isDragReject:m>0&&!v,isDragActive:!0,type:"setDraggedFiles"}),c&&c(e)}}).catch(function(e){return ep(e)})},[o,c,ep,F,Y,s,a,l,u,W]),ev=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eO(e);var t=N(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&f&&f(e),!1},[f,F]),eg=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eO(e);var t=ef.current.filter(function(e){return er.current&&er.current.contains(e)}),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),ef.current=t,!(t.length>0)&&(es({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),N(e)&&d&&d(e))},[er,d,F]),ey=(0,r.useCallback)(function(e,t){var n=[],r=[];e.forEach(function(e){var t=B(M(e,Y),2),i=t[0],o=t[1],l=B(T(e,s,a),2),u=l[0],c=l[1],d=W?W(e):null;if(i&&u&&!d)n.push(e);else{var f=[o,c];d&&(f=f.concat(d)),r.push({file:e,errors:f.filter(function(e){return e})})}}),(!l&&n.length>1||l&&u>=1&&n.length>u)&&(n.forEach(function(e){r.push({file:e,errors:[O]})}),n.splice(0)),es({acceptedFiles:n,fileRejections:r,type:"setFiles"}),h&&h(n,r,t),r.length>0&&m&&m(r,t),n.length>0&&p&&p(n,t)},[es,l,Y,s,a,u,h,p,m,W]),eb=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eO(e),ef.current=[],N(e)&&Promise.resolve(o(e)).then(function(t){(!P(e)||F)&&ey(t,e)}).catch(function(e){return ep(e)}),es({type:"reset"})},[o,ey,ep,F]),ex=(0,r.useCallback)(function(){if(ec.current){es({type:"openDialog"}),et(),window.showOpenFilePicker({multiple:l,types:Q}).then(function(e){return o(e)}).then(function(e){ey(e,null),es({type:"closeDialog"})}).catch(function(e){e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)?(en(e),es({type:"closeDialog"})):e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)?(ec.current=!1,ei.current?(ei.current.value=null,ei.current.click()):ep(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):ep(e)});return}ei.current&&(es({type:"openDialog"}),et(),ei.current.value=null,ei.current.click())},[es,et,en,b,ey,ep,Q,l]),ew=(0,r.useCallback)(function(e){er.current&&er.current.isEqualNode(e.target)&&(" "===e.key||"Enter"===e.key||32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),ex())},[er,ex]),ej=(0,r.useCallback)(function(){es({type:"focus"})},[]),ek=(0,r.useCallback)(function(){es({type:"blur"})},[]),eE=(0,r.useCallback)(function(){S||(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return -1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/")}()?setTimeout(ex,0):ex())},[S,ex]),eS=function(e){return i?null:e},e_=function(e){return _?null:eS(e)},eC=function(e){return C?null:eS(e)},eO=function(e){F&&e.stopPropagation()},eM=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.role,o=e.onKeyDown,a=e.onFocus,s=e.onBlur,l=e.onClick,u=e.onDragEnter,c=e.onDragOver,d=e.onDragLeave,f=e.onDrop,h=K(e,V);return q(q($({onKeyDown:e_(D(o,ew)),onFocus:e_(D(a,ej)),onBlur:e_(D(s,ek)),onClick:eS(D(l,eE)),onDragEnter:eC(D(u,em)),onDragOver:eC(D(c,ev)),onDragLeave:eC(D(d,eg)),onDrop:eC(D(f,eb)),role:"string"==typeof r&&""!==r?r:"presentation"},n,er),i||_?{}:{tabIndex:0}),h)}},[er,ew,ej,ek,eE,em,ev,eg,eb,_,C,i]),eT=(0,r.useCallback)(function(e){e.stopPropagation()},[]),eA=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,i=e.onClick,o=K(e,I);return q(q({},$({accept:Y,multiple:l,type:"file",style:{display:"none"},onChange:eS(D(r,eb)),onClick:eS(D(i,eT)),tabIndex:-1},n,ei)),o)}},[ei,n,l,eb,i]);return q(q({},ea),{},{isFocused:el&&!i,getRootProps:eM,getInputProps:eA,rootRef:er,inputRef:ei,open:eS(ex)})}function J(e,t){switch(t.type){case"focus":return q(q({},e),{},{isFocused:!0});case"blur":return q(q({},e),{},{isFocused:!1});case"openDialog":return q(q({},X),{},{isFileDialogActive:!0});case"closeDialog":return q(q({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return q(q({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return q(q({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return q({},X);default:return e}}function ee(){}},78435:function(e){"use strict";var t=Array.isArray,n=Object.keys,r=Object.prototype.hasOwnProperty,i="undefined"!=typeof Element;e.exports=function(e,o){try{return function e(o,a){if(o===a)return!0;if(o&&a&&"object"==typeof o&&"object"==typeof a){var s,l,u,c=t(o),d=t(a);if(c&&d){if((l=o.length)!=a.length)return!1;for(s=l;0!=s--;)if(!e(o[s],a[s]))return!1;return!0}if(c!=d)return!1;var f=o instanceof Date,h=a instanceof Date;if(f!=h)return!1;if(f&&h)return o.getTime()==a.getTime();var p=o instanceof RegExp,m=a instanceof RegExp;if(p!=m)return!1;if(p&&m)return o.toString()==a.toString();var v=n(o);if((l=v.length)!==n(a).length)return!1;for(s=l;0!=s--;)if(!r.call(a,v[s]))return!1;if(i&&o instanceof Element&&a instanceof Element)return o===a;for(s=l;0!=s--;)if(("_owner"!==(u=v[s])||!o.$$typeof)&&!e(o[u],a[u]))return!1;return!0}return o!=o&&a!=a}(e,o)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},72660:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(13980)),i=o(n(2784));function o(e){return e&&e.__esModule?e:{default:e}}var a={d:r.default.string.isRequired,fill:r.default.string.isRequired,transformX:r.default.number.isRequired,transformY:r.default.number.isRequired},s=function(e){var t=e.d,n=e.fill,r=e.transformX,o=e.transformY;return i.default.createElement("path",{d:t,fill:n,transform:"matrix("+[1,0,0,1,r,o]+")"})};s.propTypes=a,s.defaultProps={},t.default=s},76672:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","size","title","xmlns"]);return o.default.createElement("svg",r({},s,{height:n,width:n,xmlns:a}),i?o.default.createElement("title",null,i):null,t)};l.propTypes=s,l.defaultProps={title:void 0,xmlns:"http://www.w3.org/2000/svg"},t.default=l},38001:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["bgColor","fgColor","level","size","value"]),h=new i.default(-1,o.default[a]);h.addData(d),h.make();var p=h.modules,m=s/p.length;return l.default.createElement(c.default,r({},f,{size:s}),p.map(function(e,r){return e.map(function(e,i){var o=Math.round(i*m),a=Math.round(r*m),s=Math.round((i+1)*m)-o,c=Math.round((r+1)*m)-a;return l.default.createElement(u.default,{key:"rectangle-"+r+"-"+i,d:"M 0 0 L "+s+" 0 L "+s+" "+c+" L 0 "+c+" Z",fill:e?n:t,transformX:o,transformY:a})})}))};h.propTypes=f,h.defaultProps={bgColor:"#FFFFFF",fgColor:"#000000",level:"L",size:256},t.Z=(0,s.memo)(h)},70506:function(e,t,n){"use strict";n.d(t,{Z:function(){return H}});var r,i,o,a,s,l,u=n(22970),c=n(2784),d="right-scroll-bar-position",f="width-before-scroll-bar",h=(void 0===r&&(r={}),(void 0===i&&(i=function(e){return e}),o=[],a=!1,s={read:function(){if(a)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:null},useMedium:function(e){var t=i(e,a);return o.push(t),function(){o=o.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(a=!0;o.length;){var t=o;o=[],t.forEach(e)}o={push:function(t){return e(t)},filter:function(){return o}}},assignMedium:function(e){a=!0;var t=[];if(o.length){var n=o;o=[],n.forEach(e),t=o}var r=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(r)};i(),o={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),o}}}}).options=(0,u.pi)({async:!0,ssr:!1},r),s),p=function(){},m=c.forwardRef(function(e,t){var n,r,i,o=c.useRef(null),a=c.useState({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:p}),s=a[0],l=a[1],d=e.forwardProps,f=e.children,m=e.className,v=e.removeScrollBar,g=e.enabled,y=e.shards,b=e.sideCar,x=e.noIsolation,w=e.inert,j=e.allowPinchZoom,k=e.as,E=void 0===k?"div":k,S=(0,u._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),_=(n=[o,t],r=function(e){return n.forEach(function(t){return"function"==typeof t?t(e):t&&(t.current=e),t})},(i=(0,c.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,i.facade),C=(0,u.pi)((0,u.pi)({},S),s);return c.createElement(c.Fragment,null,g&&c.createElement(b,{sideCar:h,removeScrollBar:v,shards:y,noIsolation:x,inert:w,setCallbacks:l,allowPinchZoom:!!j,lockRef:o}),d?c.cloneElement(c.Children.only(f),(0,u.pi)((0,u.pi)({},C),{ref:_})):c.createElement(E,(0,u.pi)({},C,{className:m,ref:_}),f))});m.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},m.classNames={fullWidth:f,zeroRight:d};var v=function(e){var t=e.sideCar,n=(0,u._T)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return c.createElement(r,(0,u.pi)({},n))};v.isSideCarExport=!0;var g=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=l||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},y=function(){var e=g();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},b=function(){var e=y();return function(t){return e(t.styles,t.dynamic),null}},x={left:0,top:0,right:0,gap:0},w=function(e){return parseInt(e||"",10)||0},j=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[w(n),w(r),w(i)]},k=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return x;var t=j(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},E=b(),S=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(d," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(f," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(d," .").concat(d," {\n right: 0 ").concat(r,";\n }\n \n .").concat(f," .").concat(f," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},_=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r,o=c.useMemo(function(){return k(i)},[i]);return c.createElement(E,{styles:S(o,!t,i,n?"":"!important")})},C=!1;if("undefined"!=typeof window)try{var O=Object.defineProperty({},"passive",{get:function(){return C=!0,!0}});window.addEventListener("test",O,O),window.removeEventListener("test",O,O)}catch(e){C=!1}var M=!!C&&{passive:!1},T=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)},A=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)},P=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),N(e,n)){var r=R(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},N=function(e,t){return"v"===e?T(t):A(t)},R=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},D=function(e,t,n,r,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*r,l=n.target,u=t.contains(l),c=!1,d=s>0,f=0,h=0;do{var p=R(e,l),m=p[0],v=p[1]-p[2]-a*m;(m||v)&&N(e,l)&&(f+=v,h+=m),l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&0===f||!i&&s>f)?c=!0:!d&&(i&&0===h||!i&&-s>h)&&(c=!0),c},L=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Z=function(e){return[e.deltaX,e.deltaY]},F=function(e){return e&&"current"in e?e.current:e},z=0,V=[],I=(h.useMedium(function(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),i=c.useState(z++)[0],o=c.useState(function(){return b()})[0],a=c.useRef(e);c.useEffect(function(){a.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,u.ev)([e.lockRef.current],(e.shards||[]).map(F),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=c.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var i,o=L(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-o[0],u="deltaY"in e?e.deltaY:s[1]-o[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=P(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=P(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var h=r.current||i;return D(h,t,e,"h"===h?l:u,!0)},[]),l=c.useCallback(function(e){if(V.length&&V[V.length-1]===o){var n="deltaY"in e?Z(e):L(e),r=t.current.filter(function(t){var r;return t.name===e.type&&t.target===e.target&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.preventDefault();return}if(!r){var i=(a.current.shards||[]).map(F).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!a.current.noIsolation)&&e.preventDefault()}}},[]),d=c.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),f=c.useCallback(function(e){n.current=L(e),r.current=void 0},[]),h=c.useCallback(function(t){d(t.type,Z(t),t.target,s(t,e.lockRef.current))},[]),p=c.useCallback(function(t){d(t.type,L(t),t.target,s(t,e.lockRef.current))},[]);c.useEffect(function(){return V.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",l,M),document.addEventListener("touchmove",l,M),document.addEventListener("touchstart",f,M),function(){V=V.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,M),document.removeEventListener("touchmove",l,M),document.removeEventListener("touchstart",f,M)}},[]);var m=e.removeScrollBar,v=e.inert;return c.createElement(c.Fragment,null,v?c.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,m?c.createElement(_,{gapMode:"margin"}):null)}),v),B=c.forwardRef(function(e,t){return c.createElement(m,(0,u.pi)({},e,{ref:t,sideCar:I}))});B.classNames=m.classNames;var H=B},32718:function(e,t,n){var r,i=n(58085),o=n(41964),a=n(53207),s=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;e.exports=function(e,t){return r=0,t=Math.pow(10,void 0===t?5:t),o(e=e.replace(/\n+/g," "),/((?:\-[a-z]+\-)?calc)\(/,function e(n,o,l){if(r++>100)throw r=0,Error("Call stack overflow for "+l);if(""===n)throw Error(o+"(): '"+l+"' must contain a non-whitespace string");var u,c=function(e){for(var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,i=r.exec(e);i;)i&&i[1]&&(-1===n.indexOf(i[1].toLowerCase())&&(t.push(i[1]),n.push(i[1].toLowerCase())),i=r.exec(e));return t}(n=function(t,n){t=t.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var r,o="",a=t;r=s.exec(a);){r[0].index>0&&(o+=a.substring(0,r[0].index));var l=i("(",")",a.substring([0].index));if(""===l.body)throw Error("'"+t+"' must contain a non-whitespace string");var u=e(l.body,"",n);o+=l.pre+u,a=l.post}return o+a}(n,l));if(c.length>1||n.indexOf("var(")>-1)return o+"("+n+")";var d=c[0]||"";"%"===d&&(n=n.replace(/\b[0-9\.]+%/g,function(e){return .01*parseFloat(e.slice(0,-1))}));var f=n.replace(RegExp(d,"gi"),"");try{u=a.eval(f)}catch(e){return o+"("+n+")"}return"%"===d&&(u*=100),(o.length||"%"===d)&&(u=Math.round(u*t)/t),u+=d})}},58085:function(e){function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var o=r(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,o,a,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){for(r=[],o=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(s=[o,a])}return s}e.exports=t,t.range=r},41964:function(e,t,n){var r=n(82294);e.exports=function e(t,n,i){return(function(e,t){var n=[],i="string"==typeof t?RegExp("\\b("+t+")\\("):t;do{var o=i.exec(e);if(!o)break;if(void 0===o[1])throw Error("Missing the first couple of parenthesis to get the function identifier in "+t);var a=o[1],s=o.index,l=r("(",")",e.substring(s));if(!l||l.start!==o[0].length-1)throw SyntaxError(a+"(): missing closing ')' in the value '"+e+"'");n.push({matches:l,functionIdentifier:a}),e=l.post}while(i.test(e));return n})(t,n).reduce(function(r,o){var a,s;return r.replace(o.functionIdentifier+"("+o.matches.body+")",(a=o.matches.body,s=o.functionIdentifier,i(e(a,n,i),s,t)))},t)}},6692:function(e,t,n){let r=n(83128);e.exports=(r.__esModule?r:{default:r}).default},83128:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:()=>a});let i=(r=n(37540))&&r.__esModule?r:{default:r};function o({version:e,from:t,to:n}){i.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${n}\`.`,"Update your configuration file to silence this warning."])}let a={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},get lightBlue(){return o({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return o({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return o({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return o({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return o({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}},37540:function(e,t,n){"use strict";var r,i=n(34406);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{dim:()=>l,default:()=>u});let o=(r=n(24470))&&r.__esModule?r:{default:r},a=new Set;function s(e,t,n){(void 0===i||!i.env.JEST_WORKER_ID)&&(n&&a.has(n)||(n&&a.add(n),console.warn(""),t.forEach(t=>console.warn(e,"-",t))))}function l(e){return o.default.dim(e)}let u={info(e,t){s(o.default.bold(o.default.cyan("info")),...Array.isArray(e)?[e]:[t,e])},warn(e,t){s(o.default.bold(o.default.yellow("warn")),...Array.isArray(e)?[e]:[t,e])},risk(e,t){s(o.default.bold(o.default.magenta("risk")),...Array.isArray(e)?[e]:[t,e])}}},95159:function(e){function t(e,t){var n=e.length,r=Array(n),i={},o=n,a=function(e){for(var t=new Map,n=0,r=e.length;n=t||n<0||v&&e-a.current>=g},y=function(t){return s.current=null,m&&l.current?e(t):(l.current=u.current=null,c.current)},b=function e(){var i=Date.now();if(r(i))return y(i);if(f.current){var s=t-(i-o.current);n(e,v?Math.min(s,g-(i-a.current)):s)}},x=function(){var d=Date.now(),h=r(d);if(l.current=[].slice.call(arguments),u.current=i,o.current=d,h){if(!s.current&&f.current)return a.current=o.current,n(b,t),p?e(o.current):c.current;if(v)return n(b,t),e(o.current)}return s.current||n(b,t),c.current};return x.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,l.current=o.current=u.current=s.current=null},x.isPending=function(){return!!s.current},x.flush=function(){return s.current?y(Date.now()):c.current},x},[p,v,t,g,m,h])}((0,r.useCallback)(function(e){return d(e)},[d]),t,n),h=(0,r.useRef)(e);return l(h.current,e)||(f(e),h.current=e),[c,f]}},92762:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784);let i=new Map,o=new Set;function a(e){for(let t of[...o])t(e)}function s(e){try{return e()}catch(e){return}}var l=function(e,t){if(void 0===r.useSyncExternalStore)throw TypeError('You are using React 17 or below. Install with "npm install use-local-storage-state@17".');let[n]=(0,r.useState)(null==t?void 0:t.defaultValue);if("undefined"==typeof window)return[n,()=>{},{isPersistent:!0,removeItem:()=>{}}];let l=null==t?void 0:t.serializer;return function(e,t,n=!0,l=function(e){return"undefined"===e?void 0:JSON.parse(e)},u=JSON.stringify){i.has(e)||void 0===t||null!==s(()=>localStorage.getItem(e))||s(()=>localStorage.setItem(e,u(t)));let c=(0,r.useRef)({item:null,parsed:t}),d=(0,r.useSyncExternalStore)((0,r.useCallback)(t=>{let n=n=>{e===n&&t()};return o.add(n),()=>{o.delete(n)}},[e]),()=>{var n;let r=null!==(n=s(()=>localStorage.getItem(e)))&&void 0!==n?n:null;if(i.has(e))c.current={item:r,parsed:i.get(e)};else if(r!==c.current.item){let e;try{e=null===r?t:l(r)}catch(n){e=t}c.current={item:r,parsed:e}}return c.current.parsed},()=>t),f=(0,r.useCallback)(t=>{let n=t instanceof Function?t(c.current.parsed):t;try{localStorage.setItem(e,u(n)),i.delete(e)}catch(t){i.set(e,n)}a(e)},[e,u]);return(0,r.useEffect)(()=>{if(!n)return;let t=t=>{t.storageArea===s(()=>localStorage)&&t.key===e&&a(e)};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)},[e,n]),(0,r.useMemo)(()=>[d,f,{isPersistent:d===t||!i.has(e),removeItem(){s(()=>localStorage.removeItem(e)),i.delete(e),a(e)}}],[e,f,d,t])}(e,n,null==t?void 0:t.storageSync,null==l?void 0:l.parse,null==l?void 0:l.stringify)}},20452:function(e,t,n){"use strict";/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var r=n(2784),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),a(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},43100:function(e,t,n){"use strict";e.exports=n(20452)},24511:function(e,t,n){"use strict";n.d(t,{Rx:function(){return K},Ry:function(){return em},Z_:function(){return W}});try{v=Map}catch(e){}try{g=Set}catch(e){}function r(e){return function e(t,n,i){if(!t||"object"!=typeof t||"function"==typeof t)return t;if(t.nodeType&&"cloneNode"in t)return t.cloneNode(!0);if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);if(Array.isArray(t))return t.map(r);if(v&&t instanceof v)return new Map(Array.from(t.entries()));if(g&&t instanceof g)return new Set(Array.from(t.values()));if(t instanceof Object){n.push(t);var o=Object.create(t);for(var a in i.push(o),t){var s=n.findIndex(function(e){return e===t[a]});o[a]=s>-1?i[s]:e(t[a],n,i)}return o}return t}(e,[],[])}let i=Object.prototype.toString,o=Error.prototype.toString,a=RegExp.prototype.toString,s="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",l=/^Symbol\((.*)\)(.*)$/;function u(e,t=!1){if(null==e||!0===e||!1===e)return""+e;let n=typeof e;if("number"===n)return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e;if("string"===n)return t?`"${e}"`:e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return s.call(e).replace(l,"Symbol($1)");let r=i.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+o.call(e)+"]":"RegExp"===r?a.call(e):null}function c(e,t){let n=u(e,t);return null!==n?n:JSON.stringify(e,function(e,n){let r=u(this[e],t);return null!==r?r:n},2)}let d={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{let i=null!=r&&r!==n,o=`${e} must be a \`${t}\` type, but the final value was: \`${c(n,!0)}\``+(i?` (cast from the value \`${c(r,!0)}\`).`:".");return null===n&&(o+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),o},defined:"${path} must be defined"},f={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},h={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},p={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},m={noUnknown:"${path} field has unspecified keys: ${unknown}"};Object.assign(Object.create(null),{mixed:d,string:f,number:h,date:p,object:m,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:{isValue:"${path} field must be ${value}"}});var v,g,y=n(93352),b=n.n(y),x=e=>e&&e.__isYupSchema__,w=class{constructor(e,t){if(this.fn=void 0,this.refs=e,this.refs=e,"function"==typeof t){this.fn=t;return}if(!b()(t,"is"))throw TypeError("`is:` is required for `when()` conditions");if(!t.then&&!t.otherwise)throw TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:r,otherwise:i}=t,o="function"==typeof n?n:(...e)=>e.every(e=>e===n);this.fn=function(...e){let t=e.pop(),n=e.pop(),a=o(...e)?r:i;if(a)return"function"==typeof a?a(n):n.concat(a.resolve(t))}}resolve(e,t){let n=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),r=this.fn.apply(e,n.concat(e,t));if(void 0===r||r===e)return e;if(!x(r))throw TypeError("conditions must return a schema object");return r.resolve(t)}};function j(e){return null==e?[]:[].concat(e)}function k(){return(k=Object.assign||function(e){for(var t=1;tc(t[n])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,n,r){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],j(e).forEach(e=>{S.isError(e)?(this.errors.push(...e.errors),this.inner=this.inner.concat(e.inner.length?e.inner:e)):this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,S)}}let _=e=>{let t=!1;return(...n)=>{t||(t=!0,e(...n))}};function C(e,t){let{endEarly:n,tests:r,args:i,value:o,errors:a,sort:s,path:l}=e,u=_(t),c=r.length,d=[];if(a=a||[],!c)return a.length?u(new S(a,o,l)):u(null,o);for(let e=0;e=0||(i[n]=e[n]);return i}(t,["value","path","label","options","originalValue","sync"]),{name:d,test:f,params:h,message:p}=e,{parent:m,context:v}=s;function g(e){return P.isRef(e)?e.getValue(i,m,v):e}function y(e={}){let t=M()(N({value:i,originalValue:l,label:a,path:e.path||o},h,e.params),g),n=new S(S.formatError(e.message||p,t),i,t.path,e.type||d);return n.params=t,n}let b=N({path:o,parent:m,type:d,createError:y,resolve:g,options:s,originalValue:l},c);if(!u){try{Promise.resolve(f.call(b,i,b)).then(e=>{S.isError(e)?n(e):e?n(null,e):n(y())}).catch(n)}catch(e){n(e)}return}try{var x;if(r=f.call(b,i,b),"function"==typeof(null==(x=r)?void 0:x.then))throw Error(`Validation test of type: "${b.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(e){n(e);return}S.isError(r)?n(r):r?n(null,r):n(y())}return t.OPTIONS=e,t}P.prototype.__isYupRef=!0;let D=e=>e.substr(0,e.length-1).substr(1);class L{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){let e=[];for(let t of this.list)e.push(t);for(let[,t]of this.refs)e.push(t.describe());return e}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(e){return this.toArray().reduce((t,n)=>t.concat(P.isRef(n)?e(n):n),[])}add(e){P.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){P.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){let e=new L;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,t){let n=this.clone();return e.list.forEach(e=>n.add(e)),e.refs.forEach(e=>n.add(e)),t.list.forEach(e=>n.delete(e)),t.refs.forEach(e=>n.delete(e)),n}}function Z(){return(Z=Object.assign||function(e){for(var t=1;t{this.typeError(d.notType)}),this.type=(null==e?void 0:e.type)||"mixed",this.spec=Z({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},null==e?void 0:e.spec)}get _type(){return this.type}_typeCheck(e){return!0}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;let t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeError=this._typeError,t._whitelistError=this._whitelistError,t._blacklistError=this._blacklistError,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.exclusiveTests=Z({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=r(Z({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=t,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=e.clone(),n=Z({},this.spec,t.spec);return t.spec=n,t._typeError||(t._typeError=this._typeError),t._whitelistError||(t._whitelistError=this._whitelistError),t._blacklistError||(t._blacklistError=this._blacklistError),t._whitelist=this._whitelist.merge(e._whitelist,e._blacklist),t._blacklist=this._blacklist.merge(e._blacklist,e._whitelist),t.tests=this.tests,t.exclusiveTests=this.exclusiveTests,t.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),t.transforms=[...this.transforms,...t.transforms],t}isType(e){return!!this.spec.nullable&&null===e||this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let n=t.conditions;(t=t.clone()).conditions=[],t=(t=n.reduce((t,n)=>n.resolve(t,e),t)).resolve(e)}return t}cast(e,t={}){let n=this.resolve(Z({value:e},t)),r=n._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==n.isType(r)){let i=c(e),o=c(r);throw TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${n._type}". + +attempted value: ${i} +`+(o!==i?`result of cast: ${o}`:""))}return r}_cast(e,t){let n=void 0===e?e:this.transforms.reduce((t,n)=>n.call(this,t,e,this),e);return void 0===n&&(n=this.getDefault()),n}_validate(e,t={},n){let{sync:r,path:i,from:o=[],originalValue:a=e,strict:s=this.spec.strict,abortEarly:l=this.spec.abortEarly}=t,u=e;s||(u=this._cast(u,Z({assert:!1},t)));let c={value:u,path:i,options:t,originalValue:a,schema:this,label:this.spec.label,sync:r,from:o},d=[];this._typeError&&d.push(this._typeError);let f=[];this._whitelistError&&f.push(this._whitelistError),this._blacklistError&&f.push(this._blacklistError),C({args:c,value:u,path:i,sync:r,tests:d,endEarly:l},e=>{if(e)return void n(e,u);C({tests:this.tests.concat(f),args:c,path:i,sync:r,value:u,endEarly:l},n)})}validate(e,t,n){let r=this.resolve(Z({},t,{value:e}));return"function"==typeof n?r._validate(e,t,n):new Promise((n,i)=>r._validate(e,t,(e,t)=>{e?i(e):n(t)}))}validateSync(e,t){let n;return this.resolve(Z({},t,{value:e}))._validate(e,Z({},t,{sync:!0}),(e,t)=>{if(e)throw e;n=t}),n}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(S.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(S.isError(e))return!1;throw e}}_getDefault(){let e=this.spec.default;return null==e?e:"function"==typeof e?e.call(this):r(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){return 0==arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){let t=this.clone();return t.spec.strict=e,t}_isPresent(e){return null!=e}defined(e=d.defined){return this.test({message:e,name:"defined",exclusive:!0,test:e=>void 0!==e})}required(e=d.required){return this.clone({presence:"required"}).withMutation(t=>t.test({message:e,name:"required",exclusive:!0,test(e){return this.schema._isPresent(e)}}))}notRequired(){let e=this.clone({presence:"optional"});return e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e}nullable(e=!0){return this.clone({nullable:!1!==e})}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(void 0===(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]}).message&&(t.message=d.default),"function"!=typeof t.test)throw TypeError("`test` is a required parameters");let n=this.clone(),r=R(t),i=t.exclusive||t.name&&!0===n.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(n.exclusiveTests[t.name]=!!t.exclusive),n.tests=n.tests.filter(e=>e.OPTIONS.name!==t.name||!i&&e.OPTIONS.test!==r.OPTIONS.test),n.tests.push(r),n}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let n=this.clone(),r=j(e).map(e=>new P(e));return r.forEach(e=>{e.isSibling&&n.deps.push(e.key)}),n.conditions.push(new w(r,t)),n}typeError(e){let t=this.clone();return t._typeError=R({message:e,name:"typeError",test(e){return!!(void 0===e||this.schema.isType(e))||this.createError({params:{type:this.schema._type}})}}),t}oneOf(e,t=d.oneOf){let n=this.clone();return e.forEach(e=>{n._whitelist.add(e),n._blacklist.delete(e)}),n._whitelistError=R({message:t,name:"oneOf",test(e){if(void 0===e)return!0;let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}notOneOf(e,t=d.notOneOf){let n=this.clone();return e.forEach(e=>{n._blacklist.add(e),n._whitelist.delete(e)}),n._blacklistError=R({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(){let e=this.clone(),{label:t,meta:n}=e.spec,r={meta:n,label:t,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map(e=>({name:e.OPTIONS.name,params:e.OPTIONS.params})).filter((e,t,n)=>n.findIndex(t=>t.name===e.name)===t)};return r}}for(let e of(F.prototype.__isYupSchema__=!0,["validate","validateSync"]))F.prototype[`${e}At`]=function(t,n,r={}){let{parent:i,parentPath:o,schema:a}=function(e,t,n,r=n){let i,o,a;return t?((0,T.forEach)(t,(s,l,u)=>{let c=l?D(s):s;if((e=e.resolve({context:r,parent:i,value:n})).innerType){let r=u?parseInt(c,10):0;if(n&&r>=n.length)throw Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[r],e=e.innerType}if(!u){if(!e.fields||!e.fields[c])throw Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e._type}")`);i=n,n=n&&n[c],e=e.fields[c]}o=c,a=l?"["+s+"]":"."+s}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}(this,t,n,r.context);return a[e](i&&i[o],Z({},r,{parent:i,path:t}))};for(let e of["equals","is"])F.prototype[e]=F.prototype.oneOf;for(let e of["not","nope"])F.prototype[e]=F.prototype.notOneOf;F.prototype.optional=F.prototype.notRequired,F.prototype;var z=e=>null==e;let V=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,I=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,B=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,H=e=>z(e)||e===e.trim(),U=({}).toString();function W(){return new q}class q extends F{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform(function(e){if(this.isType(e)||Array.isArray(e))return e;let t=null!=e&&e.toString?e.toString():e;return t===U?e:t})})}_typeCheck(e){return e instanceof String&&(e=e.valueOf()),"string"==typeof e}_isPresent(e){return super._isPresent(e)&&!!e.length}length(e,t=f.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return z(t)||t.length===this.resolve(e)}})}min(e,t=f.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return z(t)||t.length>=this.resolve(e)}})}max(e,t=f.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},test(t){return z(t)||t.length<=this.resolve(e)}})}matches(e,t){let n,r,i=!1;return t&&("object"==typeof t?{excludeEmptyString:i=!1,message:n,name:r}=t:n=t),this.test({name:r||"matches",message:n||f.matches,params:{regex:e},test:t=>z(t)||""===t&&i||-1!==t.search(e)})}email(e=f.email){return this.matches(V,{name:"email",message:e,excludeEmptyString:!0})}url(e=f.url){return this.matches(I,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=f.uuid){return this.matches(B,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=f.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:H})}lowercase(e=f.lowercase){return this.transform(e=>z(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>z(e)||e===e.toLowerCase()})}uppercase(e=f.uppercase){return this.transform(e=>z(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>z(e)||e===e.toUpperCase()})}}W.prototype=q.prototype;let $=e=>e!=+e;function K(){return new Y}class Y extends F{constructor(){super({type:"number"}),this.withMutation(()=>{this.transform(function(e){let t=e;if("string"==typeof t){if(""===(t=t.replace(/\s/g,"")))return NaN;t=+t}return this.isType(t)?t:parseFloat(t)})})}_typeCheck(e){return e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&!$(e)}min(e,t=h.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return z(t)||t>=this.resolve(e)}})}max(e,t=h.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return z(t)||t<=this.resolve(e)}})}lessThan(e,t=h.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},test(t){return z(t)||tthis.resolve(e)}})}positive(e=h.positive){return this.moreThan(0,e)}negative(e=h.negative){return this.lessThan(0,e)}integer(e=h.integer){return this.test({name:"integer",message:e,test:e=>z(e)||Number.isInteger(e)})}truncate(){return this.transform(e=>z(e)?e:0|e)}round(e){var t;let n=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===n.indexOf(e.toLowerCase()))throw TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(t=>z(t)?t:Math[e](t))}}K.prototype=Y.prototype;var G=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let X=new Date(""),Q=e=>"[object Date]"===Object.prototype.toString.call(e);function J(){return new ee}class ee extends F{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(e){return this.isType(e)?e:isNaN(e=function(e){var t,n,r=[1,4,5,6,7,10,11],i=0;if(n=G.exec(e)){for(var o,a=0;o=r[a];++a)n[o]=+n[o]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,n[7]=n[7]?String(n[7]).substr(0,3):0,(void 0===n[8]||""===n[8])&&(void 0===n[9]||""===n[9])?t=+new Date(n[1],n[2],n[3],n[4],n[5],n[6],n[7]):("Z"!==n[8]&&void 0!==n[9]&&(i=60*n[10]+n[11],"+"===n[9]&&(i=0-i)),t=Date.UTC(n[1],n[2],n[3],n[4],n[5]+i,n[6],n[7]))}else t=Date.parse?Date.parse(e):NaN;return t}(e))?X:new Date(e)})})}_typeCheck(e){return Q(e)&&!isNaN(e.getTime())}prepareParam(e,t){let n;if(P.isRef(e))n=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);n=r}return n}min(e,t=p.min){let n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(e){return z(e)||e>=this.resolve(n)}})}max(e,t=p.max){let n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(e){return z(e)||e<=this.resolve(n)}})}}ee.INVALID_DATE=X,J.prototype=ee.prototype,J.INVALID_DATE=X;var et=n(57370),en=n.n(et),er=n(96009),ei=n.n(er),eo=n(19950),ea=n.n(eo),es=n(95159),el=n.n(es);function eu(e,t){let n=1/0;return e.some((e,r)=>{var i;if((null==(i=t.path)?void 0:i.indexOf(e))!==-1)return n=r,!0}),n}function ec(e){return(t,n)=>eu(e,t)-eu(e,n)}function ed(){return(ed=Object.assign||function(e){for(var t=1;t"[object Object]"===Object.prototype.toString.call(e),eh=ec([]);class ep extends F{constructor(e){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=eh,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform(function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null}),e&&this.shape(e)})}_typeCheck(e){return ef(e)||"function"==typeof e}_cast(e,t={}){var n;let r=super._cast(e,t);if(void 0===r)return this.getDefault();if(!this._typeCheck(r))return r;let i=this.fields,o=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,a=this._nodes.concat(Object.keys(r).filter(e=>-1===this._nodes.indexOf(e))),s={},l=ed({},t,{parent:s,__validating:t.__validating||!1}),u=!1;for(let e of a){let n=i[e],a=b()(r,e);if(n){let i;let o=r[e];l.path=(t.path?`${t.path}.`:"")+e;let a="spec"in(n=n.resolve({value:o,context:t.context,parent:s}))?n.spec:void 0,c=null==a?void 0:a.strict;if(null==a?void 0:a.strip){u=u||e in r;continue}void 0!==(i=t.__validating&&c?r[e]:n.cast(r[e],l))&&(s[e]=i)}else a&&!o&&(s[e]=r[e]);s[e]!==r[e]&&(u=!0)}return u?s:r}_validate(e,t={},n){let r=[],{sync:i,from:o=[],originalValue:a=e,abortEarly:s=this.spec.abortEarly,recursive:l=this.spec.recursive}=t;o=[{schema:this,value:a},...o],t.__validating=!0,t.originalValue=a,t.from=o,super._validate(e,t,(e,u)=>{if(e){if(!S.isError(e)||s)return void n(e,u);r.push(e)}if(!l||!ef(u)){n(r[0]||null,u);return}a=a||u,C({sync:i,tests:this._nodes.map(e=>(n,r)=>{let i=-1===e.indexOf(".")?(t.path?`${t.path}.`:"")+e:`${t.path||""}["${e}"]`,s=this.fields[e];if(s&&"validate"in s){s.validate(u[e],ed({},t,{path:i,from:o,strict:!0,parent:u,originalValue:a[e]}),r);return}r(null)}),value:u,errors:r,endEarly:s,sort:this._sortErrors,path:t.path},n)})}clone(e){let t=super.clone(e);return t.fields=ed({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),n=t.fields;for(let[e,t]of Object.entries(this.fields)){let r=n[e];void 0===r?n[e]=t:r instanceof F&&t instanceof F&&(n[e]=t.concat(r))}return t.withMutation(()=>t.shape(n,this._excludedEdges))}getDefaultFromShape(){let e={};return this._nodes.forEach(t=>{let n=this.fields[t];e[t]="default"in n?n.getDefault():void 0}),e}_getDefault(){return"default"in this.spec?super._getDefault():this._nodes.length?this.getDefaultFromShape():void 0}shape(e,t=[]){let n=this.clone(),r=Object.assign(n.fields,e);return n.fields=r,n._sortErrors=ec(Object.keys(r)),t.length&&(Array.isArray(t[0])||(t=[t]),n._excludedEdges=[...n._excludedEdges,...t]),n._nodes=function(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([e,t])=>`${e}-${t}`));function o(e,t){let o=(0,T.split)(e)[0];r.add(o),i.has(`${t}-${o}`)||n.push([t,o])}for(let t in e)if(b()(e,t)){let n=e[t];r.add(t),P.isRef(n)&&n.isSibling?o(n.path,t):x(n)&&"deps"in n&&n.deps.forEach(e=>o(e,t))}return el().array(Array.from(r),n).reverse()}(r,n._excludedEdges),n}pick(e){let t={};for(let n of e)this.fields[n]&&(t[n]=this.fields[n]);return this.clone().withMutation(e=>(e.fields={},e.shape(t)))}omit(e){let t=this.clone(),n=t.fields;for(let r of(t.fields={},e))delete n[r];return t.withMutation(()=>t.shape(n))}from(e,t,n){let r=(0,T.getter)(e,!0);return this.transform(i=>{if(null==i)return i;let o=i;return b()(i,e)&&(o=ed({},i),n||delete o[e],o[t]=r(i)),o})}noUnknown(e=!0,t=m.noUnknown){"string"==typeof e&&(t=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){let n;if(null==t)return!0;let r=(n=Object.keys(this.schema.fields),Object.keys(t).filter(e=>-1===n.indexOf(e)));return!e||0===r.length||this.createError({params:{unknown:r.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(e=!0,t=m.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>t&&ea()(t,(t,n)=>e(n)))}camelCase(){return this.transformKeys(ei())}snakeCase(){return this.transformKeys(en())}constantCase(){return this.transformKeys(e=>en()(e).toUpperCase())}describe(){let e=super.describe();return e.fields=M()(this.fields,e=>e.describe()),e}}function em(e){return new ep(e)}em.prototype=ep.prototype},44868:function(e,t,n){"use strict";var r,i,o=Object.create,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},f={};((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(f,{Animated:()=>b,AnimatedArray:()=>O,AnimatedObject:()=>C,AnimatedString:()=>k,AnimatedValue:()=>w,createHost:()=>z,getAnimated:()=>v,getAnimatedType:()=>A,getPayload:()=>y,isAnimated:()=>m,setAnimated:()=>g}),e.exports=d(a({},"__esModule",{value:!0}),f);var h=n(6901),p=Symbol.for("Animated:node"),m=e=>!!e&&e[p]===e,v=e=>e&&e[p],g=(e,t)=>(0,h.defineHidden)(e,p,t),y=e=>e&&e[p]&&e[p].getPayload(),b=class{constructor(){g(this,this)}getPayload(){return this.payload||[]}},x=n(6901),w=class extends b{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,x.is.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new w(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return x.is.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,x.is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},j=n(6901),k=class extends w{constructor(e){super(0),this._string=null,this._toString=(0,j.createInterpolator)({output:[e,e]})}static create(e){return new k(e)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(e){if(j.is.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=(0,j.createInterpolator)({output:[this.getValue(),e]})),this._value=0,super.reset()}},E=n(6901),S=n(6901),_={dependencies:null},C=class extends b{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return(0,S.eachProp)(this.source,(n,r)=>{m(n)?t[r]=n.getValue(e):(0,S.hasFluidValue)(n)?t[r]=(0,S.getFluidValue)(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&(0,S.each)(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return(0,S.eachProp)(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){_.dependencies&&(0,S.hasFluidValue)(e)&&_.dependencies.add(e);let t=y(e);t&&(0,S.each)(t,e=>this.add(e))}},O=class extends C{constructor(e){super(e)}static create(e){return new O(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(M)),!0)}};function M(e){return((0,E.isAnimatedString)(e)?k:w).create(e)}var T=n(6901);function A(e){let t=v(e);return t?t.constructor:T.is.arr(e)?O:(0,T.isAnimatedString)(e)?k:w}var P=n(6901),N=(i=null!=(r=n(2784))?o(u(r)):{},d(r&&r.__esModule?i:a(i,"default",{value:r,enumerable:!0}),r)),R=n(2784),D=n(6901),L=(e,t)=>{let n=!D.is.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,R.forwardRef)((r,i)=>{var o;let a;let s=(0,R.useRef)(null),l=n&&(0,R.useCallback)(e=>{s.current=(i&&(D.is.fun(i)?i(e):i.current=e),e)},[i]),[u,c]=(o=r,a=new Set,_.dependencies=a,o.style&&(o={...o,style:t.createAnimatedStyle(o.style)}),o=new C(o),_.dependencies=null,[o,a]),d=(0,D.useForceUpdate)(),f=()=>{let e=s.current;(!n||e)&&(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))===!1&&d()},h=new Z(f,c),p=(0,R.useRef)();(0,D.useIsomorphicLayoutEffect)(()=>(p.current=h,(0,D.each)(c,e=>(0,D.addFluidObserver)(e,h)),()=>{p.current&&((0,D.each)(p.current.deps,e=>(0,D.removeFluidObserver)(e,p.current)),D.raf.cancel(p.current.update))})),(0,R.useEffect)(f,[]),(0,D.useOnce)(()=>()=>{let e=p.current;(0,D.each)(e.deps,t=>(0,D.removeFluidObserver)(t,e))});let m=t.getComponentProps(u.getValue());return N.createElement(e,{...m,ref:l})})},Z=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&D.raf.write(this.update)}},F=Symbol.for("AnimatedComponent"),z=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new C(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{let t=V(e)||"Anonymous";return(e=P.is.str(e)?o[e]||(o[e]=L(e,i)):e[F]||(e[F]=L(e,i))).displayName=`Animated(${t})`,e};return(0,P.eachProp)(e,(t,n)=>{P.is.arr(e)&&(n=V(t)),o[n]=o(t)}),{animated:o}},V=e=>P.is.str(e)?e:e&&P.is.str(e.displayName)?e.displayName:P.is.fun(e)&&e.name||null},22360:function(e,t,n){"use strict";var r,i,o=Object.create,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},f=(e,t,n)=>(n=null!=e?o(u(e)):{},d(!t&&e&&e.__esModule?n:a(n,"default",{value:e,enumerable:!0}),e)),h={};((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(h,{BailSignal:()=>Q,Controller:()=>ej,FrameValue:()=>ei,Globals:()=>tl.Globals,Interpolation:()=>tn,Spring:()=>e5,SpringContext:()=>eN,SpringRef:()=>eL,SpringValue:()=>ed,Trail:()=>e8,Transition:()=>e7,config:()=>Z,createInterpolator:()=>tc.createInterpolator,easings:()=>tc.easings,inferTo:()=>E,interpolate:()=>ts,to:()=>ta,update:()=>tu,useChain:()=>T,useInView:()=>e3,useIsomorphicLayoutEffect:()=>tc.useIsomorphicLayoutEffect,useReducedMotion:()=>tc.useReducedMotion,useResize:()=>e0,useScroll:()=>eQ,useSpring:()=>eF,useSpringRef:()=>eI,useSpringValue:()=>eH,useSprings:()=>eZ,useTrail:()=>eW,useTransition:()=>eY}),e.exports=d(a({},"__esModule",{value:!0}),h);var p=n(6901),m=n(6901);function v(e,...t){return m.is.fun(e)?e(...t):e}var g=(e,t)=>!0===e||!!(t&&e&&(m.is.fun(e)?e(t):(0,m.toArray)(e).includes(t))),y=(e,t)=>m.is.obj(e)?t&&e[t]:e,b=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,x=e=>e,w=(e,t=x)=>{let n=j;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);m.is.und(n)||(r[i]=n)}return r},j=["config","onProps","onStart","onChange","onPause","onResume","onRest"],k={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function E(e){let t=function(e){let t={},n=0;if((0,m.eachProp)(e,(e,r)=>{k[r]||(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return(0,m.eachProp)(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function S(e){return e=(0,m.getFluidValue)(e),m.is.arr(e)?e.map(S):(0,m.isAnimatedString)(e)?m.Globals.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function _(e){for(let t in e)return!0;return!1}function C(e){return m.is.fun(e)||m.is.arr(e)&&m.is.obj(e[0])}function O(e,t){e.ref?.delete(e),t?.delete(e)}function M(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}function T(e,t,n=1e3){(0,p.useIsomorphicLayoutEffect)(()=>{if(t){let r=0;(0,p.each)(e,(e,i)=>{let o=e.current;if(o.length){let a=n*t[i];isNaN(a)?a=r:r=a,(0,p.each)(o,e=>{(0,p.each)(e.queue,e=>{let t=e.delay;e.delay=e=>a+v(t||0,e)})}),e.start()}})}else{let t=Promise.resolve();(0,p.each)(e,e=>{let n=e.current;if(n.length){let r=n.map(e=>{let t=e.queue;return e.queue=[],t});t=t.then(()=>((0,p.each)(n,(e,t)=>(0,p.each)(r[t]||[],t=>e.queue.push(t))),Promise.all(e.start())))}})}})}var A=n(6901),P=n(2784),N=n(6901),R=n(6901),D=n(25447),L=n(6901),Z={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},F={...Z.default,mass:1,damping:1,easing:L.easings.linear,clamp:!1},z=class{constructor(){this.velocity=0,Object.assign(this,F)}};function V(e,t){if(L.is.und(t.decay)){let n=!L.is.und(t.tension)||!L.is.und(t.friction);!n&&L.is.und(t.frequency)&&L.is.und(t.damping)&&L.is.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var I=[],B=class{constructor(){this.changed=!1,this.values=I,this.toValues=null,this.fromValues=I,this.config=new z,this.immediate=!1}},H=n(6901);function U(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{let l,u,c=g(n.cancel??r?.cancel,t);if(c)h();else{H.is.und(n.pause)||(i.paused=g(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||g(e,t)),l=v(n.delay||0,t),e?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),l=u.time-H.raf.now()}function f(){l>0&&!H.Globals.skipAnimation?(i.delayed=!0,u=H.raf.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(u)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{o.start({...n,callId:e,cancel:c},a)}catch(e){s(e)}}})}var W=n(6901),q=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?Y(e.get()):t.every(e=>e.noop)?$(e.get()):K(e.get(),t.every(e=>e.finished)),$=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),K=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Y=e=>({value:e,cancelled:!0,finished:!1});function G(e,t,n,r){let{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;let u=w(t,(e,t)=>"onRest"===t?void 0:e),c,d,f=new Promise((e,t)=>(c=e,d=t)),h=e=>{let t=i<=(n.cancelId||0)&&Y(r)||i!==n.asyncId&&K(r,!1);if(t)throw e.result=t,d(e),e},p=(e,t)=>{let o=new Q,a=new J;return(async()=>{if(W.Globals.skipAnimation)throw X(n),a.result=K(r,!1),d(a),a;h(o);let s=W.is.obj(e)?{...e}:{...t,to:e};s.parentId=i,(0,W.eachProp)(u,(e,t)=>{W.is.und(s[t])&&(s[t]=e)});let l=await r.start(s);return h(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()},m;if(W.Globals.skipAnimation)return X(n),K(r,!1);try{let t;t=W.is.arr(e)?(async e=>{for(let t of e)await p(t)})(e):Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([t.then(c),f]),m=K(r.get(),!0,!1)}catch(e){if(e instanceof Q)m=e.result;else if(e instanceof J)m=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return W.is.fun(a)&&W.raf.batchedUpdates(()=>{a(m,r,r.item)}),m})():l}function X(e,t){(0,W.flush)(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Q=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},J=class extends Error{constructor(){super("SkipAnimationSignal")}},ee=n(6901),et=n(25447),en=e=>e instanceof ei,er=1,ei=class extends ee.FluidValue{constructor(){super(...arguments),this.id=er++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=(0,et.getAnimated)(this);return e&&e.getValue()}to(...e){return ee.Globals.to(this,e)}interpolate(...e){return(0,ee.deprecateInterpolate)(),ee.Globals.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){(0,ee.callFluidObservers)(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||ee.frameLoop.sort(this),(0,ee.callFluidObservers)(this,{type:"priority",parent:this,priority:e})}},eo=Symbol.for("SpringPhase"),ea=e=>(1&e[eo])>0,es=e=>(2&e[eo])>0,el=e=>(4&e[eo])>0,eu=(e,t)=>t?e[eo]|=3:e[eo]&=-3,ec=(e,t)=>t?e[eo]|=4:e[eo]&=-5,ed=class extends ei{constructor(e,t){if(super(),this.animation=new B,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!R.is.und(e)||!R.is.und(t)){let n=R.is.obj(e)?{...e}:{...t,from:e};R.is.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(es(this)||this._state.asyncTo)||el(this)}get goal(){return(0,R.getFluidValue)(this.animation.to)}get velocity(){let e=(0,D.getAnimated)(this);return e instanceof D.AnimatedValue?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return ea(this)}get isAnimating(){return es(this)}get isPaused(){return el(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:o}=r,a=(0,D.getPayload)(r.to);!a&&(0,R.hasFluidValue)(r.to)&&(i=(0,R.toArray)((0,R.getFluidValue)(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==D.AnimatedString?1:a?a[l].lastPosition:i[l],c=r.immediate,d=u;if(!c){if(d=s.lastPosition,o.tension<=0){s.done=!0;return}let t=s.elapsedTime+=e,n=r.fromValues[l],i=null!=s.v0?s.v0:s.v0=R.is.arr(o.velocity)?o.velocity[l]:o.velocity,a,f=o.precision||(n==u?.005:Math.min(1,.001*Math.abs(u-n)));if(R.is.und(o.duration)){if(o.decay){let e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*t);d=n+i/(1-e)*(1-r),c=Math.abs(s.lastPosition-d)<=f,a=i*r}else{a=null==s.lastVelocity?i:s.lastVelocity;let t=o.restVelocity||f/10,r=o.clamp?0:o.bounce,l=!R.is.und(r),h=n==u?s.v0>0:nt)&&(c=Math.abs(u-d)<=f));++e){l&&(d==u||d>u==h)&&(a=-a*r,d=u);let e=(-(1e-6*o.tension)*(d-u)+-(.001*o.friction)*a)/o.mass;a+=1*e,d+=1*a}}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,s.durationProgress>0&&(s.elapsedTime=o.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(r=(o.progress||0)+t/this._memoizedDuration)>1?1:r<0?0:r,s.durationProgress=r),a=((d=n+o.easing(r)*(u-n))-s.lastPosition)/e,c=1==r}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}a&&!a[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,o.round)&&(n=!0)});let s=(0,D.getAnimated)(this),l=s.getValue();if(t){let e=(0,R.getFluidValue)(r.to);(l!==e||n)&&!o.decay?(s.setValue(e),this._onChange(e)):n&&o.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return R.raf.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(es(this)){let{to:e,config:t}=this.animation;R.raf.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return R.is.und(e)?(n=this.queue||[],this.queue=[]):n=[R.is.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>q(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),X(this._state,e&&this._lastCallId),R.raf.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:n,from:r}=e;(null==(n=R.is.obj(n)?n[t]:n)||C(n))&&(n=void 0),null==(r=R.is.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return ea(this)||(e.reverse&&([n,r]=[r,n]),r=(0,R.getFluidValue)(r),R.is.und(r)?(0,D.getAnimated)(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,w(e,(e,t)=>/^on/.test(t)?y(e,n):e)),eg(this,e,"onProps"),ey(this,"onProps",e,this);let i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let o=this._state;return U(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{el(this)||(ec(this,!0),(0,R.flushCalls)(o.pauseQueue),ey(this,"onPause",K(this,ef(this,this.animation.to)),this))},resume:()=>{el(this)&&(ec(this,!1),es(this)&&this._resume(),(0,R.flushCalls)(o.resumeQueue),ey(this,"onResume",K(this,ef(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=eh(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Y(this));let r=!R.is.und(e.to),i=!R.is.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(Y(this));this._lastToId=t.callId}let{key:o,defaultProps:a,animation:s}=this,{to:l,from:u}=s,{to:c=l,from:d=u}=e;i&&!r&&(!t.default||R.is.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!(0,R.isEqual)(d,u);f&&(s.from=d),d=(0,R.getFluidValue)(d);let h=!(0,R.isEqual)(c,l);h&&this._focus(c);let p=C(t.to),{config:m}=s,{decay:y,velocity:b}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(V(n={...n},t),t={...n,...t}),V(e,t),Object.assign(e,t),F)null==e[r]&&(e[r]=F[r]);let{frequency:r,damping:i}=e,{mass:o}=e;L.is.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r)}(m,v(t.config,o),t.config!==a.config?v(a.config,o):void 0);let x=(0,D.getAnimated)(this);if(!x||R.is.und(c))return n(K(this,!0));let w=R.is.und(t.reset)?i&&!t.default:!R.is.und(d)&&g(t.reset,o),j=w?d:this.get(),k=S(c),E=R.is.num(k)||R.is.arr(k)||(0,R.isAnimatedString)(k),_=!p&&(!E||g(a.immediate||t.immediate,o));if(h){let e=(0,D.getAnimatedType)(c);if(e!==x.constructor){if(_)x=this._set(k);else throw Error(`Cannot animate between ${x.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let O=x.constructor,M=(0,R.hasFluidValue)(c),T=!1;if(!M){let e=w||!ea(this)&&f;(h||e)&&(M=!(T=(0,R.isEqual)(S(j),k))),((0,R.isEqual)(s.immediate,_)||_)&&(0,R.isEqual)(m.decay,y)&&(0,R.isEqual)(m.velocity,b)||(M=!0)}if(T&&es(this)&&(s.changed&&!w?M=!0:M||this._stop(l)),!p&&((M||(0,R.hasFluidValue)(l))&&(s.values=x.getPayload(),s.toValues=(0,R.hasFluidValue)(c)?null:O==D.AnimatedString?[1]:(0,R.toArray)(k)),s.immediate==_||(s.immediate=_,_||w||this._set(l)),M)){let{onRest:e}=s;(0,R.each)(ev,e=>eg(this,t,e));let r=K(this,ef(this,l));(0,R.flushCalls)(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&R.raf.batchedUpdates(()=>{s.changed=!w,e?.(r,this),w?v(a.onRest,r):s.onStart?.(r,this)})}w&&this._set(j),p?n(G(t.to,t,this._state,this)):M?this._start():es(this)&&!h?this._pendingCalls.add(n):n($(j))}_focus(e){let t=this.animation;e!==t.to&&((0,R.getFluidObservers)(this)&&this._detach(),t.to=e,(0,R.getFluidObservers)(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;(0,R.hasFluidValue)(t)&&((0,R.addFluidObserver)(t,this),en(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;(0,R.hasFluidValue)(e)&&(0,R.removeFluidObserver)(e,this)}_set(e,t=!0){let n=(0,R.getFluidValue)(e);if(!R.is.und(n)){let e=(0,D.getAnimated)(this);if(!e||!(0,R.isEqual)(n,e.getValue())){let r=(0,D.getAnimatedType)(n);e&&e.constructor==r?e.setValue(n):(0,D.setAnimated)(this,r.create(n)),e&&R.raf.batchedUpdates(()=>{this._onChange(n,t)})}}return(0,D.getAnimated)(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,ey(this,"onStart",K(this,ef(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),v(this.animation.onChange,e,this)),v(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;(0,D.getAnimated)(this).reset((0,R.getFluidValue)(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),es(this)||(eu(this,!0),el(this)||this._resume())}_resume(){R.Globals.skipAnimation?this.finish():R.frameLoop.start(this)}_stop(e,t){if(es(this)){eu(this,!1);let n=this.animation;(0,R.each)(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),(0,R.callFluidObservers)(this,{type:"idle",parent:this});let r=t?Y(this.get()):K(this.get(),ef(this,e??n.to));(0,R.flushCalls)(this._pendingCalls,r),n.changed&&(n.changed=!1,ey(this,"onRest",r,this))}}};function ef(e,t){let n=S(t),r=S(e.get());return(0,R.isEqual)(r,n)}function eh(e,t=e.loop,n=e.to){let r=v(t);if(r){let i=!0!==r&&E(r),o=(i||e).reverse,a=!i||i.reset;return ep({...e,loop:t,default:!1,pause:void 0,to:!o||C(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function ep(e){let{to:t,from:n}=e=E(e),r=new Set;return R.is.obj(t)&&em(t,r),R.is.obj(n)&&em(n,r),e.keys=r.size?Array.from(r):null,e}function em(e,t){(0,R.eachProp)(e,(e,n)=>null!=e&&t.add(n))}var ev=["onStart","onRest","onChange","onPause","onResume"];function eg(e,t,n){e.animation[n]=t[n]!==b(t,n)?y(t[n],e.key):void 0}function ey(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var eb=n(6901),ex=["onStart","onChange","onRest"],ew=1,ej=class{constructor(e,t){this.id=ew++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];eb.is.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(ep(e)),this}start(e){let{queue:t}=this;return e?t=(0,eb.toArray)(e).map(ep):this.queue=[],this._flush?this._flush(this,t):(eM(this,t),ek(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;(0,eb.each)((0,eb.toArray)(t),t=>n[t].stop(!!e))}else X(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(eb.is.und(e))this.start({pause:!0});else{let t=this.springs;(0,eb.each)((0,eb.toArray)(e),e=>t[e].pause())}return this}resume(e){if(eb.is.und(e))this.start({pause:!1});else{let t=this.springs;(0,eb.each)((0,eb.toArray)(e),e=>t[e].resume())}return this}each(e){(0,eb.eachProp)(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,(0,eb.flush)(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&(0,eb.flush)(t,([e,t])=>{t.value=a,e(t,this,this._item)}),o&&(this._started=!1,(0,eb.flush)(n,([e,t])=>{t.value=a,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}eb.raf.onFrame(this._onFrame)}};function ek(e,t){return Promise.all(t.map(t=>eE(e,t))).then(t=>q(e,t))}async function eE(e,t,n){let{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=eb.is.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);let c=eb.is.arr(i)||eb.is.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):(0,eb.each)(ex,n=>{let r=t[n];if(eb.is.fun(r)){let i=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}});let d=e._state;!d.paused===t.pause?(d.paused=t.pause,(0,eb.flushCalls)(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let f=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),h=!0===t.cancel||!0===b(t,"cancel");(c||h&&d.asyncId)&&f.push(U(++e._lastAsyncId,{props:t,state:d,actions:{pause:eb.noop,resume:eb.noop,start(t,n){h?(X(d,e._lastAsyncId),n(Y(e))):(t.onRest=s,n(G(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=q(e,await Promise.all(f));if(a&&p.finished&&!(n&&p.noop)){let n=eh(t,a,i);if(n)return eM(e,[n]),eE(e,n,!0)}return l&&eb.raf.batchedUpdates(()=>l(p,e,e.item)),p}function eS(e,t){let n={...e.springs};return t&&(0,eb.each)((0,eb.toArray)(t),e=>{eb.is.und(e.keys)&&(e=ep(e)),eb.is.obj(e.to)||(e={...e,to:void 0}),eO(n,e,e=>eC(e))}),e_(e,n),n}function e_(e,t){(0,eb.eachProp)(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,(0,eb.addFluidObserver)(t,e))})}function eC(e,t){let n=new ed;return n.key=e,t&&(0,eb.addFluidObserver)(n,t),n}function eO(e,t,n){t.keys&&(0,eb.each)(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function eM(e,t){(0,eb.each)(t,t=>{eO(e.springs,t,t=>eC(t,e))})}var eT=f(n(2784)),eA=n(2784),eP=n(6901),eN=({children:e,...t})=>{let n=(0,eA.useContext)(eR),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=(0,eP.useMemoOne)(()=>({pause:r,immediate:i}),[r,i]);let{Provider:o}=eR;return eT.createElement(o,{value:t},e)},eR=(Object.assign(eN,eT.createContext({})),eN.Provider._context=eN,eN.Consumer._context=eN,eN);eN.Provider=eR.Provider,eN.Consumer=eR.Consumer;var eD=n(6901),eL=()=>{let e=[],t=function(t){(0,eD.deprecateDirectCall)();let r=[];return(0,eD.each)(e,(e,i)=>{if(eD.is.und(t))r.push(e.start());else{let o=n(t,e,i);o&&r.push(e.start(o))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return(0,eD.each)(e,e=>e.pause(...arguments)),this},t.resume=function(){return(0,eD.each)(e,e=>e.resume(...arguments)),this},t.set=function(t){(0,eD.each)(e,(e,n)=>{let r=eD.is.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return(0,eD.each)(e,(e,r)=>{if(eD.is.und(t))n.push(e.start());else{let i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return(0,eD.each)(e,e=>e.stop(...arguments)),this},t.update=function(t){return(0,eD.each)(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return eD.is.fun(e)?e(n,t):e};return t._getProps=n,t};function eZ(e,t,n){let r=N.is.fun(t)&&t;r&&!n&&(n=[]);let i=(0,P.useMemo)(()=>r||3==arguments.length?eL():void 0,[]),o=(0,P.useRef)(0),a=(0,N.useForceUpdate)(),s=(0,P.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=eS(e,t);return!(o.current>0)||s.queue.length||Object.keys(n).some(t=>!e.springs[t])?new Promise(r=>{e_(e,n),s.queue.push(()=>{r(ek(e,t))}),a()}):ek(e,t)}}),[]),l=(0,P.useRef)([...s.ctrls]),u=[],c=(0,N.usePrev)(e)||0;function d(e,n){for(let i=e;i{(0,N.each)(l.current.slice(e,c),e=>{O(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,P.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=l.current.map((e,t)=>eS(e,u[t])),h=(0,P.useContext)(eN),p=(0,N.usePrev)(h),m=h!==p&&_(h);(0,N.useIsomorphicLayoutEffect)(()=>{o.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],(0,N.each)(e,e=>e())),(0,N.each)(l.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(M(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),(0,N.useOnce)(()=>()=>{(0,N.each)(s.ctrls,e=>e.stop(!0))});let v=f.map(e=>({...e}));return i?[v,i]:v}function eF(e,t){let n=A.is.fun(e),[[r],i]=eZ(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}var ez=n(2784),eV=()=>eL(),eI=()=>(0,ez.useState)(eV)[0],eB=n(6901),eH=(e,t)=>{let n=(0,eB.useConstant)(()=>new ed(e,t));return(0,eB.useOnce)(()=>()=>{n.stop()}),n},eU=n(6901);function eW(e,t,n){let r=eU.is.fun(t)&&t;r&&!n&&(n=[]);let i=!0,o,a=eZ(e,(e,n)=>{let a=r?r(e,n):t;return o=a.ref,i=i&&a.reverse,a},n||[{}]);if((0,eU.useIsomorphicLayoutEffect)(()=>{(0,eU.each)(a[1].current,(e,t)=>{let n=a[1].current[t+(i?1:-1)];if(M(e,o),e.ref){n&&e.update({to:n.springs});return}n?e.start({to:n.springs}):e.start()})},n),r||3==arguments.length){let e=o??a[1];return e._getProps=(t,n,r)=>{let i=eU.is.fun(t)?t(r,n):t;if(i){let t=e.current[r+(i.reverse?1:-1)];return t&&(i.to=t.springs),i}},a}return a[0]}var eq=f(n(2784)),e$=n(2784),eK=n(6901);function eY(e,t,n){let r=eK.is.fun(t)&&t,{reset:i,sort:o,trail:a=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=(0,e$.useMemo)(()=>r||3==arguments.length?eL():void 0,[]),h=(0,eK.toArray)(e),p=[],m=(0,e$.useRef)(null),g=i?null:m.current;(0,eK.useIsomorphicLayoutEffect)(()=>{m.current=p}),(0,eK.useOnce)(()=>((0,eK.each)(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{(0,eK.each)(m.current,e=>{e.expired&&clearTimeout(e.expirationId),O(e.ctrl,f),e.ctrl.stop(!0)})}));let y=function(e,{key:t,keys:n=t},r){if(null===n){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&"leave"!==n.phase&&!t.has(n));return n?(t.add(n),n.key):eG++})}return eK.is.und(n)?e:eK.is.fun(n)?e.map(n):(0,eK.toArray)(n)}(h,r?r():t,g),b=i&&m.current||[];(0,eK.useIsomorphicLayoutEffect)(()=>(0,eK.each)(b,({ctrl:e,item:t,key:n})=>{O(e,f),v(u,t,n)}));let x=[];if(g&&(0,eK.each)(g,(e,t)=>{e.expired?(clearTimeout(e.expirationId),b.push(e)):~(t=x[t]=y.indexOf(e.key))&&(p[t]=e)}),(0,eK.each)(h,(e,t)=>{p[t]||(p[t]={key:y[t],item:e,phase:"mount",ctrl:new ej},p[t].ctrl.item=e)}),x.length){let e=-1,{leave:n}=r?r():t;(0,eK.each)(x,(t,r)=>{let i=g[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}eK.is.fun(o)&&p.sort((e,t)=>o(e.item,t.item));let j=-a,k=(0,eK.useForceUpdate)(),S=w(t),C=new Map,T=(0,e$.useRef)(new Map),A=(0,e$.useRef)(!1);(0,eK.each)(p,(e,n)=>{let i=e.key,o=e.phase,u=r?r():t,f,h,p=v(u.delay||0,i);if("mount"==o)f=u.enter,h="enter";else{let e=0>y.indexOf(i);if("leave"!=o){if(e)f=u.leave,h="leave";else{if(!(f=u.update))return;h="update"}}else{if(e)return;f=u.enter,h="enter"}}if(f=v(f,e.item,n),!(f=eK.is.obj(f)?E(f):{to:f}).config){let t=d||S.config;f.config=v(t,e.item,n,h)}j+=a;let b={...S,delay:p+j,ref:c,immediate:u.immediate,reset:!1,...f};if("enter"==h&&eK.is.und(b.from)){let i=r?r():t,o=eK.is.und(i.initial)||g?i.from:i.initial;b.from=v(o,e.item,n)}let{onResolve:x}=b;b.onResolve=e=>{v(x,e);let t=m.current,n=t.find(e=>e.key===i);if(n&&!(e.cancelled&&"update"!=n.phase)&&n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){let t=v(s,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(k,r));return}}}e&&t.some(e=>e.expired)&&(T.current.delete(n),l&&(A.current=!0),k())}};let w=eS(e.ctrl,b);"leave"===h&&l?T.current.set(e,{phase:h,springs:w,payload:b}):C.set(e,{phase:h,springs:w,payload:b})});let P=(0,e$.useContext)(eN),N=(0,eK.usePrev)(P),R=P!==N&&_(P);(0,eK.useIsomorphicLayoutEffect)(()=>{R&&(0,eK.each)(p,e=>{e.ctrl.start({default:P})})},[P]),(0,eK.each)(C,(e,t)=>{if(T.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),(0,eK.useIsomorphicLayoutEffect)(()=>{(0,eK.each)(T.current.size?T.current:C,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),R&&"enter"==e&&r.start({default:P}),t&&(M(r,t.ref),(r.ref||f)&&!A.current?r.update(t):(r.start(t),A.current&&(A.current=!1)))})},i?void 0:n);let D=e=>eq.createElement(eq.Fragment,null,p.map((t,n)=>{let{springs:r}=C.get(t)||t.ctrl,i=e({...r},t.item,t,n);return i&&i.type?eq.createElement(i.type,{...i.props,key:eK.is.str(t.key)||eK.is.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[D,f]:D}var eG=1,eX=n(6901),eQ=({container:e,...t}={})=>{let[n,r]=eF(()=>({scrollX:0,scrollY:0,scrollXProgress:0,scrollYProgress:0,...t}),[]);return(0,eX.useIsomorphicLayoutEffect)(()=>{let t=(0,eX.onScroll)(({x:e,y:t})=>{r.start({scrollX:e.current,scrollXProgress:e.progress,scrollY:t.current,scrollYProgress:t.progress})},{container:e?.current||void 0});return()=>{(0,eX.each)(Object.values(n),e=>e.stop()),t()}},[]),n},eJ=n(6901),e0=({container:e,...t})=>{let[n,r]=eF(()=>({width:0,height:0,...t}),[]);return(0,eJ.useIsomorphicLayoutEffect)(()=>{let t=(0,eJ.onResize)(({width:e,height:t})=>{r.start({width:e,height:t,immediate:0===n.width.get()||0===n.height.get()})},{container:e?.current||void 0});return()=>{(0,eJ.each)(Object.values(n),e=>e.stop()),t()}},[]),n},e1=n(2784),e2=n(6901),e4={any:0,all:1};function e3(e,t){let[n,r]=(0,e1.useState)(!1),i=(0,e1.useRef)(),o=e2.is.fun(e)&&e,{to:a={},from:s={},...l}=o?o():{},u=o?t:e,[c,d]=eF(()=>({from:s,...l}),[]);return(0,e2.useIsomorphicLayoutEffect)(()=>{let e=i.current,{root:t,once:o,amount:l="any",...c}=u??{};if(!e||o&&n||typeof IntersectionObserver>"u")return;let f=new WeakMap,h=()=>(a&&d.start(a),r(!0),o?void 0:()=>{s&&d.start(s),r(!1)}),p=new IntersectionObserver(e=>{e.forEach(e=>{let t=f.get(e.target);if(!!t!==e.isIntersecting){if(e.isIntersecting){let t=h();e2.is.fun(t)?f.set(e.target,t):p.unobserve(e.target)}else t&&(t(),f.delete(e.target))}})},{root:t&&t.current||void 0,threshold:"number"==typeof l||Array.isArray(l)?l:e4[l],...c});return p.observe(e),()=>p.unobserve(e)},[u]),o?[i,c]:[i,n]}function e5({children:e,...t}){return e(eF(t))}var e6=n(6901);function e8({items:e,children:t,...n}){let r=eW(e.length,n);return e.map((e,n)=>{let i=t(e,n);return e6.is.fun(i)?i(r[n]):i})}function e7({items:e,children:t,...n}){return eY(e,n)(t)}var e9=n(6901),te=n(6901),tt=n(25447),tn=class extends ei{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=(0,te.createInterpolator)(...t);let n=this._get(),r=(0,tt.getAnimatedType)(n);(0,tt.setAnimated)(this,r.create(n))}advance(e){let t=this._get(),n=this.get();(0,te.isEqual)(t,n)||((0,tt.getAnimated)(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&ti(this._active)&&to(this)}_get(){let e=te.is.arr(this.source)?this.source.map(te.getFluidValue):(0,te.toArray)((0,te.getFluidValue)(this.source));return this.calc(...e)}_start(){this.idle&&!ti(this._active)&&(this.idle=!1,(0,te.each)((0,tt.getPayload)(this),e=>{e.done=!1}),te.Globals.skipAnimation?(te.raf.batchedUpdates(()=>this.advance()),to(this)):te.frameLoop.start(this))}_attach(){let e=1;(0,te.each)((0,te.toArray)(this.source),t=>{(0,te.hasFluidValue)(t)&&(0,te.addFluidObserver)(t,this),en(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){(0,te.each)((0,te.toArray)(this.source),e=>{(0,te.hasFluidValue)(e)&&(0,te.removeFluidObserver)(e,this)}),this._active.clear(),to(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=(0,te.toArray)(this.source).reduce((e,t)=>Math.max(e,(en(t)?t.priority:0)+1),0))}};function tr(e){return!1!==e.idle}function ti(e){return!e.size||Array.from(e).every(tr)}function to(e){e.idle||(e.idle=!0,(0,te.each)((0,tt.getPayload)(e),e=>{e.done=!0}),(0,te.callFluidObservers)(e,{type:"idle",parent:e}))}var ta=(e,...t)=>new tn(e,t),ts=(e,...t)=>((0,e9.deprecateInterpolate)(),new tn(e,t)),tl=n(6901);tl.Globals.assign({createStringInterpolator:tl.createStringInterpolator,to:(e,t)=>new tn(e,t)});var tu=tl.frameLoop.advance,tc=n(6901);r=n(8669),i=e.exports,d(h,r,"default"),i&&d(i,r,"default")},78476:function(e,t,n){"use strict";var r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,s=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},l={};s(l,{FluidValue:()=>eA,Globals:()=>u,addFluidObserver:()=>eN,callFluidObserver:()=>eM,callFluidObservers:()=>eT,clamp:()=>J,colorToRgba:()=>ey,colors:()=>ee,createInterpolator:()=>eb,createStringInterpolator:()=>eW,defineHidden:()=>M,deprecateDirectCall:()=>eX,deprecateInterpolate:()=>eY,each:()=>P,eachProp:()=>N,easings:()=>ek,flush:()=>D,flushCalls:()=>F,frameLoop:()=>K,getFluidObservers:()=>eO,getFluidValue:()=>eC,hasFluidValue:()=>e_,hex3:()=>el,hex4:()=>eu,hex6:()=>ec,hex8:()=>ed,hsl:()=>ea,hsla:()=>es,is:()=>T,isAnimatedString:()=>eQ,isEqual:()=>A,isSSR:()=>z,noop:()=>O,onResize:()=>e6,onScroll:()=>ti,once:()=>e$,prefix:()=>eq,raf:()=>d,removeFluidObserver:()=>eR,rgb:()=>ei,rgba:()=>eo,setFluidGetter:()=>eP,toArray:()=>R,useConstant:()=>ta,useForceUpdate:()=>tf,useIsomorphicLayoutEffect:()=>tc,useMemoOne:()=>tp,useOnce:()=>tv,usePrev:()=>tb,useReducedMotion:()=>tw}),e.exports=((e,t,n,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of o(t))a.call(e,n)||void 0===n||r(e,n,{get:()=>t[n],enumerable:!(s=i(t,n))||s.enumerable});return e})(r({},"__esModule",{value:!0}),l);var u={};s(u,{assign:()=>H,colors:()=>V,createStringInterpolator:()=>L,skipAnimation:()=>I,to:()=>Z,willAdvance:()=>B});var c=_(),d=e=>j(e,c),f=_();d.write=e=>j(e,f);var h=_();d.onStart=e=>j(e,h);var p=_();d.onFrame=e=>j(e,p);var m=_();d.onFinish=e=>j(e,m);var v=[];d.setTimeout=(e,t)=>{let n=d.now()+t,r=()=>{let e=v.findIndex(e=>e.cancel==r);~e&&v.splice(e,1),x-=~e?1:0},i={time:n,handler:e,cancel:r};return v.splice(g(n),0,i),x+=1,k(),i};var g=e=>~(~v.findIndex(t=>t.time>e)||~v.length);d.cancel=e=>{h.delete(e),p.delete(e),m.delete(e),c.delete(e),f.delete(e)},d.sync=e=>{w=!0,d.batchedUpdates(e),w=!1},d.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,d.onStart(n)}return r.handler=e,r.cancel=()=>{h.delete(n),t=null},r};var y="u">typeof window?window.requestAnimationFrame:()=>{};d.use=e=>y=e,d.now="u">typeof performance?()=>performance.now():Date.now,d.batchedUpdates=e=>e(),d.catch=console.error,d.frameLoop="always",d.advance=()=>{"demand"!==d.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):S()};var b=-1,x=0,w=!1;function j(e,t){w?(t.delete(e),e(0)):(t.add(e),k())}function k(){b<0&&(b=0,"demand"!==d.frameLoop&&y(E))}function E(){~b&&(y(E),d.batchedUpdates(S))}function S(){let e=b,t=g(b=d.now());if(t&&(C(v.splice(0,t),e=>e.handler()),x-=t),!x){b=-1;return}h.flush(),c.flush(e?Math.min(64,b-e):16.667),p.flush(),f.flush(),m.flush()}function _(){let e=new Set,t=e;return{add(n){x+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(x-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,x-=t.size,C(t,t=>t(n)&&e.add(t)),x+=e.size,t=e)}}}function C(e,t){e.forEach(e=>{try{t(e)}catch(e){d.catch(e)}})}function O(){}var M=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),T={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function A(e,t){if(T.arr(e)){if(!T.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function N(e,t,n){if(T.arr(e)){for(let r=0;rT.und(e)?[]:T.arr(e)?e:[e];function D(e,t){if(e.size){let n=Array.from(e);e.clear(),P(n,t)}}var L,Z,F=(e,...t)=>D(e,e=>e(...t)),z=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),V=null,I=!1,B=O,H=e=>{e.to&&(Z=e.to),e.now&&(d.now=e.now),void 0!==e.colors&&(V=e.colors),null!=e.skipAnimation&&(I=e.skipAnimation),e.createStringInterpolator&&(L=e.createStringInterpolator),e.requestAnimationFrame&&d.use(e.requestAnimationFrame),e.batchedUpdates&&(d.batchedUpdates=e.batchedUpdates),e.willAdvance&&(B=e.willAdvance),e.frameLoop&&(d.frameLoop=e.frameLoop)},U=new Set,W=[],q=[],$=0,K={get idle(){return!U.size&&!W.length},start(e){$>e.priority?(U.add(e),d.onStart(Y)):(G(e),d(Q))},advance:Q,sort(e){if($)d.onFrame(()=>K.sort(e));else{let t=W.indexOf(e);~t&&(W.splice(t,1),X(e))}},clear(){W=[],U.clear()}};function Y(){U.forEach(G),U.clear(),d(Q)}function G(e){W.includes(e)||X(e)}function X(e){var t;let n;W.splice((n=(t=W).findIndex(t=>t.priority>e.priority))<0?t.length:n,0,e)}function Q(e){let t=q;for(let n=0;n0}var J=(e,t,n)=>Math.min(Math.max(n,e),t),ee={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},et="[-+]?\\d*\\.?\\d+",en=et+"%";function er(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var ei=RegExp("rgb"+er(et,et,et)),eo=RegExp("rgba"+er(et,et,et,et)),ea=RegExp("hsl"+er(et,en,en)),es=RegExp("hsla"+er(et,en,en,et)),el=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,eu=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ec=/^#([0-9a-fA-F]{6})$/,ed=/^#([0-9a-fA-F]{8})$/;function ef(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function eh(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;return Math.round(255*ef(i,r,e+1/3))<<24|Math.round(255*ef(i,r,e))<<16|Math.round(255*ef(i,r,e-1/3))<<8}function ep(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function em(e){return(parseFloat(e)%360+360)%360/360}function ev(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function eg(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function ey(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ec.exec(e))?parseInt(t[1]+"ff",16)>>>0:V&&void 0!==V[e]?V[e]:(t=ei.exec(e))?(ep(t[1])<<24|ep(t[2])<<16|ep(t[3])<<8|255)>>>0:(t=eo.exec(e))?(ep(t[1])<<24|ep(t[2])<<16|ep(t[3])<<8|ev(t[4]))>>>0:(t=el.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ed.exec(e))?parseInt(t[1],16)>>>0:(t=eu.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ea.exec(e))?(255|eh(em(t[1]),eg(t[2]),eg(t[3])))>>>0:(t=es.exec(e))?(eh(em(t[1]),eg(t[2]),eg(t[3]))|ev(t[4]))>>>0:null;return null===n?e:`rgba(${(4278190080&(n=n||0))>>>24}, ${(16711680&n)>>>16}, ${(65280&n)>>>8}, ${(255&n)/255})`}var eb=(e,t,n)=>{if(T.fun(e))return e;if(T.arr(e))return eb({range:e,output:t,extrapolate:n});if(T.str(e.output[0]))return L(e);let r=e.output,i=e.range||[0,1],o=e.extrapolateLeft||e.extrapolate||"extend",a=e.extrapolateRight||e.extrapolate||"extend",s=e.easing||(e=>e);return t=>{let n=function(e,t){for(var n=1;n=e);++n);return n-1}(t,i);return function(e,t,n,r,i,o,a,s,l){let u=l?l(e):e;if(un){if("identity"===s)return u;"clamp"===s&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=o(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r,u)}(t,i[n],i[n+1],r[n],r[n+1],s,o,a,e.map)}},ex=2*Math.PI/3,ew=2*Math.PI/4.5,ej=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,ek={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>2.70158*e*e*e-1.70158*e*e,easeOutBack:e=>1+2.70158*Math.pow(e-1,3)+1.70158*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(3.5949095*2*e-2.5949095)/2:(Math.pow(2*e-2,2)*(3.5949095*(2*e-2)+2.5949095)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*ex),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*ex)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*ew))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*ew)/2+1,easeInBounce:e=>1-ej(1-e),easeOutBounce:ej,easeInOutBounce:e=>e<.5?(1-ej(1-2*e))/2:(1+ej(2*e-1))/2,steps:(e,t="end")=>n=>{let r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return J(0,1,("end"===t?Math.floor(r):Math.ceil(r))/e)}},eE=Symbol.for("FluidValue.get"),eS=Symbol.for("FluidValue.observers"),e_=e=>!!(e&&e[eE]),eC=e=>e&&e[eE]?e[eE]():e,eO=e=>e[eS]||null;function eM(e,t){e.eventObserved?e.eventObserved(t):e(t)}function eT(e,t){let n=e[eS];n&&n.forEach(e=>{eM(e,t)})}var eA=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");eP(this,e)}},eP=(e,t)=>eL(e,eE,t);function eN(e,t){if(e[eE]){let n=e[eS];n||eL(e,eS,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function eR(e,t){let n=e[eS];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[eS]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var eD,eL=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),eZ=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,eF=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ez=RegExp(`(${eZ.source})(%|[a-z]+)`,"i"),eV=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,eI=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,eB=e=>{let[t,n]=eH(e);if(!t||z())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);return r?r.trim():n&&n.startsWith("--")?window.getComputedStyle(document.documentElement).getPropertyValue(n)||e:n&&eI.test(n)?eB(n):n||e},eH=e=>{let t=eI.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},eU=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,eW=e=>{eD||(eD=V?RegExp(`(${Object.keys(V).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>eC(e).replace(eI,eB).replace(eF,ey).replace(eD,ey)),n=t.map(e=>e.match(eZ).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>eb({...e,output:t}));return e=>{let n=!ez.test(t[0])&&t.find(e=>ez.test(e))?.replace(eZ,""),i=0;return t[0].replace(eZ,()=>`${r[i++](e)}${n||""}`).replace(eV,eU)}},eq="react-spring: ",e$=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${eq}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},eK=e$(console.warn);function eY(){eK(`${eq}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var eG=e$(console.warn);function eX(){eG(`${eq}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function eQ(e){return T.str(e)&&("#"==e[0]||/\d/.test(e)||!z()&&eI.test(e)||e in(V||{}))}var eJ,e0,e1=new WeakMap,e2=e=>e.forEach(({target:e,contentRect:t})=>e1.get(e)?.forEach(e=>e(t))),e4=new Set,e3=()=>{let e=()=>{e4.forEach(e=>e({width:window.innerWidth,height:window.innerHeight}))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},e5=e=>(e4.add(e),e0||(e0=e3()),()=>{e4.delete(e),!e4.size&&e0&&(e0(),e0=void 0)}),e6=(e,{container:t=document.documentElement}={})=>{let n;return t===document.documentElement?e5(e):(eJ||"u">typeof ResizeObserver&&(eJ=new ResizeObserver(e2)),(n=e1.get(t))||(n=new Set,e1.set(t,n)),n.add(e),eJ&&eJ.observe(t),()=>{let n=e1.get(t);n&&(n.delete(e),!n.size&&eJ&&eJ.unobserve(t))})},e8=(e,t,n)=>t-e==0?1:(n-e)/(t-e),e7={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}},e9=class{constructor(e,t){this.createAxis=()=>({current:0,progress:0,scrollLength:0}),this.updateAxis=e=>{let t=this.info[e],{length:n,position:r}=e7[e];t.current=this.container[`scroll${r}`],t.scrollLength=this.container["scroll"+n]-this.container["client"+n],t.progress=e8(0,t.scrollLength,t.current)},this.update=()=>{this.updateAxis("x"),this.updateAxis("y")},this.sendEvent=()=>{this.callback(this.info)},this.advance=()=>{this.update(),this.sendEvent()},this.callback=e,this.container=t,this.info={time:0,x:this.createAxis(),y:this.createAxis()}}},te=new WeakMap,tt=new WeakMap,tn=new WeakMap,tr=e=>e===document.documentElement?window:e,ti=(e,{container:t=document.documentElement}={})=>{let n=tn.get(t);n||(n=new Set,tn.set(t,n));let r=new e9(e,t);if(n.add(r),!te.has(t)){let e=()=>(n?.forEach(e=>e.advance()),!0);te.set(t,e);let r=tr(t);window.addEventListener("resize",e,{passive:!0}),t!==document.documentElement&&tt.set(t,e6(e,{container:t})),r.addEventListener("scroll",e,{passive:!0})}let i=te.get(t);return d(i),()=>{d.cancel(i);let e=tn.get(t);if(!e||(e.delete(r),e.size))return;let n=te.get(t);te.delete(t),n&&(tr(t).removeEventListener("scroll",n),window.removeEventListener("resize",n),tt.get(t)?.())}},to=n(2784);function ta(e){let t=(0,to.useRef)(null);return null===t.current&&(t.current=e()),t.current}var ts=n(2784),tl=n(2784),tu=n(2784),tc=z()?tu.useEffect:tu.useLayoutEffect,td=()=>{let e=(0,tl.useRef)(!1);return tc(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function tf(){let e=(0,ts.useState)()[1],t=td();return()=>{t.current&&e(Math.random())}}var th=n(2784);function tp(e,t){let[n]=(0,th.useState)(()=>({inputs:t,result:e()})),r=(0,th.useRef)(),i=r.current,o=i;return o?t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}var tm=n(2784),tv=e=>(0,tm.useEffect)(e,tg),tg=[],ty=n(2784);function tb(e){let t=(0,ty.useRef)();return(0,ty.useEffect)(()=>{t.current=e}),t.current}var tx=n(2784),tw=()=>{let[e,t]=(0,tx.useState)(null);return tc(()=>{let e=window.matchMedia("(prefers-reduced-motion)"),n=e=>{t(e.matches),H({skipAnimation:e.matches})};return n(e),e.addEventListener("change",n),()=>{e.removeEventListener("change",n)}},[]),e}},19455:function(e){"use strict";var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,o={};((e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})})(o,{Any:()=>a}),e.exports=((e,o,a,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let a of r(o))i.call(e,a)||void 0===a||t(e,a,{get:()=>o[a],enumerable:!(s=n(o,a))||s.enumerable});return e})(t({},"__esModule",{value:!0}),o);var a=class{}},96721:function(e,t,n){"use strict";var r,i,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))l.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},c={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(c,{a:()=>M,animated:()=>M}),e.exports=u(o({},"__esModule",{value:!0}),c);var d=n(99550),f=n(28316),h=n(6901),p=n(25447),m=/^--/,v={},g={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},y=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),b=["Webkit","Ms","Moz","O"];g=Object.keys(g).reduce((e,t)=>(b.forEach(n=>e[y(n,t)]=e[t]),e),g);var x=n(25447),w=n(6901),j=/^(matrix|translate|scale|rotate|skew)/,k=/^(translate)/,E=/^(rotate|skew)/,S=(e,t)=>w.is.num(e)&&0!==e?e+t:e,_=(e,t)=>w.is.arr(e)?e.every(e=>_(e,t)):w.is.num(e)?e===t:parseFloat(e)===t,C=class extends x.AnimatedObject{constructor({x:e,y:t,z:n,...r}){let i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(e=>[`translate3d(${e.map(e=>S(e,"px")).join(",")})`,_(e,0)])),(0,w.eachProp)(r,(e,t)=>{if("transform"===t)i.push([e||""]),o.push(e=>[e,""===e]);else if(j.test(t)){if(delete r[t],w.is.und(e))return;let n=k.test(t)?"px":E.test(t)?"deg":"";i.push((0,w.toArray)(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${S(i,n)})`,_(i,0)]:e=>[`${t}(${e.map(e=>S(e,n)).join(",")})`,_(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new O(i,o)),super(r)}},O=class extends w.FluidValue{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return(0,w.each)(this.inputs,(n,r)=>{let i=(0,w.getFluidValue)(n[0]),[o,a]=this.transforms[r](w.is.arr(i)?i:n.map(w.getFluidValue));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){1==e&&(0,w.each)(this.inputs,e=>(0,w.each)(e,e=>(0,w.hasFluidValue)(e)&&(0,w.addFluidObserver)(e,this)))}observerRemoved(e){0==e&&(0,w.each)(this.inputs,e=>(0,w.each)(e,e=>(0,w.hasFluidValue)(e)&&(0,w.removeFluidObserver)(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),(0,w.callFluidObservers)(this,e)}};r=n(99550),i=e.exports,u(c,r,"default"),i&&u(i,r,"default"),d.Globals.assign({batchedUpdates:f.unstable_batchedUpdates,createStringInterpolator:h.createStringInterpolator,colors:h.colors});var M=(0,p.createHost)(["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"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:i,scrollTop:o,scrollLeft:a,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(t=>n||e.hasAttribute(t)?t:v[t]||(v[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==i&&(e.textContent=i),r)if(r.hasOwnProperty(t)){var d;let n=null==(d=r[t])||"boolean"==typeof d||""===d?"":"number"!=typeof d||0===d||m.test(t)||g.hasOwnProperty(t)&&g[t]?(""+d).trim():d+"px";m.test(t)?e.style.setProperty(t,n):e.style[t]=n}c.forEach((t,n)=>{e.setAttribute(t,u[n])}),void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new C(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated},7896:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t"boolean"==typeof e?"".concat(e):0===e?"0":e,i=function(){for(var e,t,n=0,r="";nn=>{var o;if((null==t?void 0:t.variants)==null)return i(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(e=>{let t=null==n?void 0:n[e],i=null==s?void 0:s[e];if(null===t)return null;let o=r(t)||r(i);return a[e][o]}),u=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),c=null==t?void 0:null===(o=t.compoundVariants)||void 0===o?void 0:o.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...s,...u}[t]):({...s,...u})[t]===n})?[...e,n,r]:e},[]);return i(e,l,c,null==n?void 0:n.class,null==n?void 0:n.className)}},99182:function(e,t,n){"use strict";n.d(t,{U8:function(){return T},mY:function(){return S}});var r=n(72331),i=n(2784),o=n(40844),a='[cmdk-group=""]',s='[cmdk-group-items=""]',l='[cmdk-item=""]',u=`${l}:not([aria-disabled="true"])`,c="cmdk-item-select",d="data-value",f=(e,t)=>o(e,t),h=i.createContext(void 0),p=()=>i.useContext(h),m=i.createContext(void 0),v=()=>i.useContext(m),g=i.createContext(void 0),y=i.forwardRef((e,t)=>{let n=i.useRef(null),r=O(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),o=O(()=>new Set),p=O(()=>new Map),v=O(()=>new Map),g=O(()=>new Set),y=_(e),{label:b,children:x,value:w,onValueChange:j,filter:k,shouldFilter:E,...S}=e,T=i.useId(),A=i.useId(),R=i.useId(),D=P();C(()=>{if(void 0!==w){let e=w.trim().toLowerCase();r.current.value=e,D(6,B),L.emit()}},[w]);let L=i.useMemo(()=>({subscribe:e=>(g.current.add(e),()=>g.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var i,o,a;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)I(),z(),D(1,V);else if("value"===e){if((null==(i=y.current)?void 0:i.value)!==void 0){null==(a=(o=y.current).onValueChange)||a.call(o,t);return}n||D(5,B)}L.emit()}},emit:()=>{g.current.forEach(e=>e())}}),[]),Z=i.useMemo(()=>({value:(e,t)=>{t!==v.current.get(e)&&(v.current.set(e,t),r.current.filtered.items.set(e,F(t)),D(2,()=>{z(),L.emit()}))},item:(e,t)=>(o.current.add(e),t&&(p.current.has(t)?p.current.get(t).add(e):p.current.set(t,new Set([e]))),D(3,()=>{I(),z(),r.current.value||V(),L.emit()}),()=>{v.current.delete(e),o.current.delete(e),r.current.filtered.items.delete(e),D(4,()=>{I(),V(),L.emit()})}),group:e=>(p.current.has(e)||p.current.set(e,new Set),()=>{v.current.delete(e),p.current.delete(e)}),filter:()=>y.current.shouldFilter,label:b||e["aria-label"],listId:T,inputId:R,labelId:A}),[]);function F(e){var t;let n=(null==(t=y.current)?void 0:t.filter)??f;return e?n(e,r.current.search):0}function z(){if(!n.current||!r.current.search||!1===y.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(n=>{let r=p.current.get(n),i=0;r.forEach(t=>{i=Math.max(e.get(t),i)}),t.push([n,i])});let i=n.current.querySelector('[cmdk-list-sizer=""]');U().sort((t,n)=>{let r=t.getAttribute(d),i=n.getAttribute(d);return(e.get(i)??0)-(e.get(r)??0)}).forEach(e=>{let t=e.closest(s);t?t.appendChild(e.parentElement===t?e:e.closest(`${s} > *`)):i.appendChild(e.parentElement===i?e:e.closest(`${s} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{let t=n.current.querySelector(`${a}[${d}="${e[0]}"]`);null==t||t.parentElement.appendChild(t)})}function V(){let e=U().find(e=>!e.ariaDisabled),t=null==e?void 0:e.getAttribute(d);L.setState("value",t||void 0)}function I(){if(!r.current.search||!1===y.current.shouldFilter){r.current.filtered.count=o.current.size;return}r.current.filtered.groups=new Set;let e=0;for(let t of o.current){let n=F(v.current.get(t));r.current.filtered.items.set(t,n),n>0&&e++}for(let[e,t]of p.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=e}function B(){var e,t,n;let r=H();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(a))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function H(){return n.current.querySelector(`${l}[aria-selected="true"]`)}function U(){return Array.from(n.current.querySelectorAll(u))}function W(e){let t=U()[e];t&&L.setState("value",t.getAttribute(d))}function q(e){var t;let n=H(),r=U(),i=r.findIndex(e=>e===n),o=r[i+e];null!=(t=y.current)&&t.loop&&(o=i+e<0?r[r.length-1]:i+e===r.length?r[0]:r[i+e]),o&&L.setState("value",o.getAttribute(d))}function $(e){let t=H(),n=null==t?void 0:t.closest(a),r;for(;n&&!r;)r=null==(n=e>0?function(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}(n,a):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,a))?void 0:n.querySelector(u);r?L.setState("value",r.getAttribute(d)):q(e)}let K=()=>W(U().length-1),Y=e=>{e.preventDefault(),e.metaKey?K():e.altKey?$(1):q(1)},G=e=>{e.preventDefault(),e.metaKey?W(0):e.altKey?$(-1):q(-1)};return i.createElement("div",{ref:M([n,t]),...S,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=S.onKeyDown)||t.call(S,e),!e.defaultPrevented)switch(e.key){case"n":case"j":e.ctrlKey&&Y(e);break;case"ArrowDown":Y(e);break;case"p":case"k":e.ctrlKey&&G(e);break;case"ArrowUp":G(e);break;case"Home":e.preventDefault(),W(0);break;case"End":e.preventDefault(),K();break;case"Enter":{e.preventDefault();let t=H();if(t){let e=new Event(c);t.dispatchEvent(e)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:Z.inputId,id:Z.labelId,style:N},b),i.createElement(m.Provider,{value:L},i.createElement(h.Provider,{value:Z},x)))}),b=i.forwardRef((e,t)=>{let n=i.useId(),r=i.useRef(null),o=i.useContext(g),a=p(),s=_(e);C(()=>a.item(n,o),[]);let l=A(n,r,[e.value,e.children,r]),u=v(),d=T(e=>e.value&&e.value===l.current),f=T(e=>!1===a.filter()||!e.search||e.filtered.items.get(n)>0);function h(){var e,t;null==(t=(e=s.current).onSelect)||t.call(e,l.current)}if(i.useEffect(()=>{let t=r.current;if(!(!t||e.disabled))return t.addEventListener(c,h),()=>t.removeEventListener(c,h)},[f,e.onSelect,e.disabled]),!f)return null;let{disabled:m,value:y,onSelect:b,...x}=e;return i.createElement("div",{ref:M([r,t]),...x,"cmdk-item":"",role:"option","aria-disabled":m||void 0,"aria-selected":d||void 0,"data-selected":d||void 0,onPointerMove:m?void 0:function(){u.setState("value",l.current,!0)},onClick:m?void 0:h},e.children)}),x=i.forwardRef((e,t)=>{let{heading:n,children:r,...o}=e,a=i.useId(),s=i.useRef(null),l=i.useRef(null),u=i.useId(),c=p(),d=T(e=>!1===c.filter()||!e.search||e.filtered.groups.has(a));C(()=>c.group(a),[]),A(a,s,[e.value,e.heading,l]);let f=i.createElement(g.Provider,{value:a},r);return i.createElement("div",{ref:M([s,t]),...o,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&i.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),i.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},f))}),w=i.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=i.useRef(null),a=T(e=>!e.search);return n||a?i.createElement("div",{ref:M([o,t]),...r,"cmdk-separator":"",role:"separator"}):null}),j=i.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,a=v(),s=T(e=>e.search),l=p();return i.useEffect(()=>{null!=e.value&&a.setState("search",e.value)},[e.value]),i.createElement("input",{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,id:l.inputId,type:"text",value:o?e.value:s,onChange:e=>{o||a.setState("search",e.target.value),null==n||n(e.target.value)}})}),k=i.forwardRef((e,t)=>{let{children:n,...r}=e,o=i.useRef(null),a=i.useRef(null),s=p();return i.useEffect(()=>{if(a.current&&o.current){let e=a.current,t=o.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.getBoundingClientRect().height;t.style.setProperty("--cmdk-list-height",n.toFixed(1)+"px")})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),i.createElement("div",{ref:M([o,t]),...r,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:s.listId,"aria-labelledby":s.inputId},i.createElement("div",{ref:a,"cmdk-list-sizer":""},n))}),E=i.forwardRef((e,t)=>{let{open:n,onOpenChange:o,container:a,...s}=e;return i.createElement(r.fC,{open:n,onOpenChange:o},i.createElement(r.h_,{container:a},i.createElement(r.aV,{"cmdk-overlay":""}),i.createElement(r.VY,{"aria-label":e.label,"cmdk-dialog":""},i.createElement(y,{ref:t,...s}))))}),S=Object.assign(y,{List:k,Item:b,Input:j,Group:x,Separator:w,Dialog:E,Empty:i.forwardRef((e,t)=>{let n=i.useRef(!0),r=T(e=>0===e.filtered.count);return i.useEffect(()=>{n.current=!1},[]),n.current||!r?null:i.createElement("div",{ref:t,...e,"cmdk-empty":"",role:"presentation"})}),Loading:i.forwardRef((e,t)=>{let{progress:n,children:r,...o}=e;return i.createElement("div",{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},i.createElement("div",{"aria-hidden":!0},r))})});function _(e){let t=i.useRef(e);return C(()=>{t.current=e}),t}var C=typeof window>"u"?i.useEffect:i.useLayoutEffect;function O(e){let t=i.useRef();return void 0===t.current&&(t.current=e()),t}function M(e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}function T(e){let t=v(),n=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,n,n)}function A(e,t,n){let r=i.useRef(),o=p();return C(()=>{var i;let a=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim().toLowerCase();if("object"==typeof t&&"current"in t&&t.current)return null==(e=t.current.textContent)?void 0:e.trim().toLowerCase()}})();o.value(e,a),null==(i=t.current)||i.setAttribute(d,a),r.current=a}),r}var P=()=>{let[e,t]=i.useState(),n=O(()=>new Map);return C(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}},N={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},86801:function(e,t,n){"use strict";function r(e,t){return null==e||null==t?NaN:et?1:e>=t?0:NaN}n.d(t,{Z:function(){return r}})},78307:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(86801);function i(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function o(e){let t,n,o;function s(e,r,i=0,o=e.length){if(i>>1;0>n(e[t],r)?i=t+1:o=t}while(i(0,r.Z)(e(t),n),o=(t,n)=>e(t)-n):(t=e===r.Z||e===i?e:a,n=e,o=e),{left:s,center:function(e,t,n=0,r=e.length){let i=s(e,t,n,r-1);return i>n&&o(e[i-1],t)>-o(e[i],t)?i-1:i},right:function(e,r,i=0,o=e.length){if(i>>1;0>=n(e[t],r)?i=t+1:o=t}while(i=t&&(n=r=t):(n>t&&(n=t),r=o&&(n=r=o):(n>o&&(n=o),r-1},a.prototype.set=function(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var s=a},38896:function(e,t,n){"use strict";var r=n(62411),i=n(93221),o=(0,r.Z)(i.Z,"Map");t.Z=o},23549:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=(0,n(62411).Z)(Object,"create"),i=Object.prototype.hasOwnProperty,o=Object.prototype.hasOwnProperty;function a(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t0&&i(c)?n>1?e(c,n-1,i,o,a):(0,r.Z)(a,c):o||(a[a.length]=c)}return a}},89523:function(e,t,n){"use strict";var r=n(42082),i=n(57969);t.Z=function(e,t){t=(0,r.Z)(t,e);for(var n=0,o=t.length;null!=e&&nc))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,v=2&n?new i.Z:void 0;for(l.set(e,t),l.set(t,e);++p-1&&e%1==0&&e0){if(++r>=800)return arguments[0]}else r=0;return s.apply(void 0,arguments)})},71354:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r,i,o=n(23549);function a(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(a.Cache||o.Z),n}a.Cache=o.Z;var s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,u=(i=(r=a(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(s,function(e,n,r,i){t.push(r?i.replace(l,"$1"):n||e)}),t},function(e){return 500===i.size&&i.clear(),e})).cache,r)},57969:function(e,t,n){"use strict";var r=n(22758),i=1/0;t.Z=function(e){if("string"==typeof e||(0,r.Z)(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},6682:function(e,t){"use strict";var n=Function.prototype.toString;t.Z=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},1456:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(93122),i=n(93221),o=function(){return i.Z.Date.now()},a=n(62875),s=Math.max,l=Math.min,u=function(e,t,n){var i,u,c,d,f,h,p=0,m=!1,v=!1,g=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=i,r=u;return i=u=void 0,p=t,d=e.apply(r,n)}function b(e){var n=e-h,r=e-p;return void 0===h||n>=t||n<0||v&&r>=c}function x(){var e,n,r,i=o();if(b(i))return w(i);f=setTimeout(x,(e=i-h,n=i-p,r=t-e,v?l(r,c-n):r))}function w(e){return(f=void 0,g&&i)?y(e):(i=u=void 0,d)}function j(){var e,n=o(),r=b(n);if(i=arguments,u=this,h=n,r){if(void 0===f)return p=e=h,f=setTimeout(x,t),m?y(e):d;if(v)return clearTimeout(f),f=setTimeout(x,t),y(h)}return void 0===f&&(f=setTimeout(x,t)),d}return t=(0,a.Z)(t)||0,(0,r.Z)(n)&&(m=!!n.leading,c=(v="maxWait"in n)?s((0,a.Z)(n.maxWait)||0,t):c,g="trailing"in n?!!n.trailing:g),j.cancel=function(){void 0!==f&&clearTimeout(f),p=0,i=h=u=f=void 0},j.flush=function(){return void 0===f?d:w(o())},j}},78804:function(e,t){"use strict";t.Z=function(e,t){return e===t||e!=e&&t!=t}},52058:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r,i,o=n(40905),a=function(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i-1&&e%1==0&&e<=9007199254740991}},93122:function(e,t){"use strict";t.Z=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},43391:function(e,t){"use strict";t.Z=function(e){return null!=e&&"object"==typeof e}},65255:function(e,t,n){"use strict";var r=n(98147),i=n(29552),o=n(43391),a=Object.prototype,s=Function.prototype.toString,l=a.hasOwnProperty,u=s.call(Object);t.Z=function(e){if(!(0,o.Z)(e)||"[object Object]"!=(0,r.Z)(e))return!1;var t=(0,i.Z)(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==u}},22758:function(e,t,n){"use strict";var r=n(98147),i=n(43391);t.Z=function(e){return"symbol"==typeof e||(0,i.Z)(e)&&"[object Symbol]"==(0,r.Z)(e)}},48532:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(98147),i=n(61164),o=n(43391),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var s=n(93225),l=n(37755),u=l.Z&&l.Z.isTypedArray,c=u?(0,s.Z)(u):function(e){return(0,o.Z)(e)&&(0,i.Z)(e.length)&&!!a[(0,r.Z)(e)]}},6623:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(45423),i=n(15441),o=(0,n(76048).Z)(Object.keys,Object),a=Object.prototype.hasOwnProperty,s=function(e){if(!(0,i.Z)(e))return o(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t},l=n(63282),u=function(e){return(0,l.Z)(e)?(0,r.Z)(e):s(e)}},17816:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(45423),i=n(93122),o=n(15441),a=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},s=Object.prototype.hasOwnProperty,l=function(e){if(!(0,i.Z)(e))return a(e);var t=(0,o.Z)(e),n=[];for(var r in e)"constructor"==r&&(t||!s.call(e,r))||n.push(r);return n},u=n(63282),c=function(e){return(0,u.Z)(e)?(0,r.Z)(e,!0):l(e)}},67693:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var r=n(1590),i=n(95598),o=n(89523),a=n(20248),s=n(50506),l=n(63282),u=function(e,t){var n=-1,r=(0,l.Z)(e)?Array(e.length):[];return(0,s.Z)(e,function(e,i,o){r[++n]=t(e,i,o)}),r},c=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e},d=n(93225),f=n(22758),h=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=(0,f.Z)(e),a=void 0!==t,s=null===t,l=t==t,u=(0,f.Z)(t);if(!s&&!u&&!o&&e>t||o&&a&&l&&!s&&!u||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!u&&e=s)return l;return l*("desc"==n[r]?-1:1)}}return e.index-t.index},m=n(89930),v=n(97885),g=function(e,t,n){t=t.length?(0,i.Z)(t,function(e){return(0,v.Z)(e)?function(t){return(0,o.Z)(t,1===e.length?e[0]:e)}:e}):[m.Z];var r=-1;return t=(0,i.Z)(t,(0,d.Z)(a.Z)),c(u(e,function(e,n,o){return{criteria:(0,i.Z)(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return p(e,t,n)})},y=n(56493),b=n(78804),x=n(66401),w=n(93122),j=function(e,t,n){if(!(0,w.Z)(n))return!1;var r=typeof t;return("number"==r?!!((0,l.Z)(n)&&(0,x.Z)(t,n.length)):"string"==r&&t in n)&&(0,b.Z)(n[t],e)},k=(0,y.Z)(function(e,t){if(null==e)return[];var n=t.length;return n>1&&j(e,t[0],t[1])?t=[]:n>2&&j(t[0],t[1],t[2])&&(t=[t[0]]),g(e,(0,r.Z)(t,1),[])})},70813:function(e,t){"use strict";t.Z=function(){return[]}},88744:function(e,t,n){"use strict";var r=n(1456),i=n(93122);t.Z=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return(0,i.Z)(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),(0,r.Z)(e,t,{leading:o,maxWait:t,trailing:a})}},62875:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=/\s/,i=function(e){for(var t=e.length;t--&&r.test(e.charAt(t)););return t},o=/^\s+/,a=n(93122),s=n(22758),l=0/0,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,d=/^0o[0-7]+$/i,f=parseInt,h=function(e){if("number"==typeof e)return e;if((0,s.Z)(e))return l;if((0,a.Z)(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=(0,a.Z)(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=(t=e)?t.slice(0,i(t)+1).replace(o,""):t;var r=c.test(e);return r||d.test(e)?f(e.slice(2),r?2:8):u.test(e)?l:+e}},69046:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r,i=n(95598),o=n(92263),a=n(45500),s=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n},l=(r=n(6623).Z,function(e){var t,n=(0,o.Z)(e);return"[object Map]"==n?(0,a.Z)(e):"[object Set]"==n?s(e):(t=r(e),(0,i.Z)(t,function(t){return[t,e[t]]}))})},50063:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(187),i=n(95598),o=n(97885),a=n(22758),s=1/0,l=r.Z?r.Z.prototype:void 0,u=l?l.toString:void 0,c=function e(t){if("string"==typeof t)return t;if((0,o.Z)(t))return(0,i.Z)(t,e)+"";if((0,a.Z)(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n},d=function(e){return null==e?"":c(e)}},63955:function(e,t,n){"use strict";n.d(t,{cI:function(){return em}});var r=n(2784),i=e=>"checkbox"===e.type,o=e=>e instanceof Date,a=e=>null==e;let s=e=>"object"==typeof e;var l=e=>!a(e)&&!Array.isArray(e)&&s(e)&&!o(e),u=e=>l(e)&&e.target?i(e.target)?e.target.checked:e.target.value:e,c=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,d=(e,t)=>e.has(c(t)),f=e=>{let t=e.constructor&&e.constructor.prototype;return l(t)&&t.hasOwnProperty("isPrototypeOf")},h="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function p(e){let t;let n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(h&&(e instanceof Blob||e instanceof FileList))&&(n||l(e))))return e;else if(t=n?[]:{},Array.isArray(e)||f(e))for(let n in e)t[n]=p(e[n]);else t=e;return t}var m=e=>Array.isArray(e)?e.filter(Boolean):[],v=e=>void 0===e,g=(e,t,n)=>{if(!t||!l(e))return n;let r=m(t.split(/[,[\].]+?/)).reduce((e,t)=>a(e)?e:e[t],e);return v(r)||r===e?v(e[t])?n:e[t]:r};let y={BLUR:"blur",FOCUS_OUT:"focusout"},b={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},x={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};r.createContext(null);var w=(e,t,n,r=!0)=>{let i={defaultValues:t._defaultValues};for(let o in e)Object.defineProperty(i,o,{get:()=>(t._proxyFormState[o]!==b.all&&(t._proxyFormState[o]=!r||b.all),n&&(n[o]=!0),e[o])});return i},j=e=>l(e)&&!Object.keys(e).length,k=(e,t,n,r)=>{n(e);let{name:i,...o}=e;return j(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(e=>t[e]===(!r||b.all))},E=e=>Array.isArray(e)?e:[e],S=e=>"string"==typeof e,_=(e,t,n,r,i)=>S(e)?(r&&t.watch.add(e),g(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),g(n,e))):(r&&(t.watchAll=!0),n),C=e=>/^\w*$/.test(e),O=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/));function M(e,t,n){let r=-1,i=C(t)?[t]:O(t),o=i.length,a=o-1;for(;++rt?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};let A=(e,t,n)=>{for(let r of n||Object.keys(e)){let n=g(e,r);if(n){let{_f:e,...r}=n;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else l(r)&&A(r,t)}}};var P=e=>({isOnSubmit:!e||e===b.onSubmit,isOnBlur:e===b.onBlur,isOnChange:e===b.onChange,isOnAll:e===b.all,isOnTouch:e===b.onTouched}),N=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),R=(e,t,n)=>{let r=m(g(e,n));return M(r,"root",t[n]),M(e,n,r),e},D=e=>"boolean"==typeof e,L=e=>"file"===e.type,Z=e=>"function"==typeof e,F=e=>{if(!h)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},z=e=>S(e),V=e=>"radio"===e.type,I=e=>e instanceof RegExp;let B={value:!1,isValid:!1},H={value:!0,isValid:!0};var U=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!v(e[0].attributes.value)?v(e[0].value)||""===e[0].value?H:{value:e[0].value,isValid:!0}:H:B}return B};let W={isValid:!1,value:null};var q=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,W):W;function $(e,t,n="validate"){if(z(e)||Array.isArray(e)&&e.every(z)||D(e)&&!e)return{type:n,message:z(e)?e:"",ref:t}}var K=e=>l(e)&&!I(e)?e:{value:e,message:""},Y=async(e,t,n,r,o)=>{let{ref:s,refs:u,required:c,maxLength:d,minLength:f,min:h,max:p,pattern:m,validate:y,name:b,valueAsNumber:w,mount:k,disabled:E}=e._f,_=g(t,b);if(!k||E)return{};let C=u?u[0]:s,O=e=>{r&&C.reportValidity&&(C.setCustomValidity(D(e)?"":e||""),C.reportValidity())},M={},A=V(s),P=i(s),N=(w||L(s))&&v(s.value)&&v(_)||F(s)&&""===s.value||""===_||Array.isArray(_)&&!_.length,R=T.bind(null,b,n,M),B=(e,t,n,r=x.maxLength,i=x.minLength)=>{let o=e?t:n;M[b]={type:e?r:i,message:o,ref:s,...R(e?r:i,o)}};if(o?!Array.isArray(_)||!_.length:c&&(!(A||P)&&(N||a(_))||D(_)&&!_||P&&!U(u).isValid||A&&!q(u).isValid)){let{value:e,message:t}=z(c)?{value:!!c,message:c}:K(c);if(e&&(M[b]={type:x.required,message:t,ref:C,...R(x.required,t)},!n))return O(t),M}if(!N&&(!a(h)||!a(p))){let e,t;let r=K(p),i=K(h);if(a(_)||isNaN(_)){let n=s.valueAsDate||new Date(_),o=e=>new Date(new Date().toDateString()+" "+e),a="time"==s.type,l="week"==s.type;S(r.value)&&_&&(e=a?o(_)>o(r.value):l?_>r.value:n>new Date(r.value)),S(i.value)&&_&&(t=a?o(_)r.value),a(i.value)||(t=n+e.value,i=!a(t.value)&&_.length<+t.value;if((r||i)&&(B(r,e.message,t.message),!n))return O(M[b].message),M}if(m&&!N&&S(_)){let{value:e,message:t}=K(m);if(I(e)&&!_.match(e)&&(M[b]={type:x.pattern,message:t,ref:s,...R(x.pattern,t)},!n))return O(t),M}if(y){if(Z(y)){let e=await y(_,t),r=$(e,C);if(r&&(M[b]={...r,...R(x.validate,r.message)},!n))return O(r.message),M}else if(l(y)){let e={};for(let r in y){if(!j(e)&&!n)break;let i=$(await y[r](_,t),C,r);i&&(e={...i,...R(r,i.message)},O(i.message),n&&(M[b]=e))}if(!j(e)&&(M[b]={ref:C,...e},!n))return M}}return O(!0),M};function G(e,t){let n=Array.isArray(t)?t:C(t)?[t]:O(t),r=1===n.length?e:function(e,t){let n=t.slice(0,-1).length,r=0;for(;r{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}}var Q=e=>a(e)||!s(e);function J(e,t){if(Q(e)||Q(t))return e===t;if(o(e)&&o(t))return e.getTime()===t.getTime();let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n){let n=e[i];if(!r.includes(i))return!1;if("ref"!==i){let e=t[i];if(o(n)&&o(e)||l(n)&&l(e)||Array.isArray(n)&&Array.isArray(e)?!J(n,e):n!==e)return!1}}return!0}var ee=e=>"select-multiple"===e.type,et=e=>V(e)||i(e),en=e=>F(e)&&e.isConnected,er=e=>{for(let t in e)if(Z(e[t]))return!0;return!1};function ei(e,t={}){let n=Array.isArray(e);if(l(e)||n)for(let n in e)Array.isArray(e[n])||l(e[n])&&!er(e[n])?(t[n]=Array.isArray(e[n])?[]:{},ei(e[n],t[n])):a(e[n])||(t[n]=!0);return t}var eo=(e,t)=>(function e(t,n,r){let i=Array.isArray(t);if(l(t)||i)for(let i in t)Array.isArray(t[i])||l(t[i])&&!er(t[i])?v(n)||Q(r[i])?r[i]=Array.isArray(t[i])?ei(t[i],[]):{...ei(t[i])}:e(t[i],a(n)?{}:n[i],r[i]):r[i]=!J(t[i],n[i]);return r})(e,t,ei(t)),ea=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>v(e)?e:t?""===e?NaN:e?+e:e:n&&S(e)?new Date(e):r?r(e):e;function es(e){let t=e.ref;return(e.refs?e.refs.every(e=>e.disabled):t.disabled)?void 0:L(t)?t.files:V(t)?q(e.refs).value:ee(t)?[...t.selectedOptions].map(({value:e})=>e):i(t)?U(e.refs).value:ea(v(t.value)?e.ref.value:t.value,e)}var el=(e,t,n,r)=>{let i={};for(let n of e){let e=g(t,n);e&&M(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},eu=e=>v(e)?e:I(e)?e.source:l(e)?I(e.value)?e.value.source:e.value:e,ec=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ed(e,t,n){let r=g(e,n);if(r||C(n))return{error:r,name:n};let i=n.split(".");for(;i.length;){let r=i.join("."),o=g(t,r),a=g(e,r);if(o&&!Array.isArray(o)&&n!==r)break;if(a&&a.type)return{name:r,error:a};i.pop()}return{name:n}}var ef=(e,t,n,r,i)=>!i.isOnAll&&(!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?!r.isOnChange:!i.isOnChange)||e),eh=(e,t)=>!m(g(e,t)).length&&G(e,t);let ep={mode:b.onSubmit,reValidateMode:b.onChange,shouldFocusError:!0};function em(e={}){let t=r.useRef(),[n,s]=r.useState({isDirty:!1,isValidating:!1,isLoading:Z(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Z(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...function(e={},t){let n,r={...ep,...e},s={submitCount:0,isDirty:!1,isLoading:Z(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},c={},f=(l(r.defaultValues)||l(r.values))&&p(r.defaultValues||r.values)||{},x=r.shouldUnregister?{}:p(f),w={action:!1,mount:!1,watch:!1},k={mount:new Set,unMount:new Set,array:new Set,watch:new Set},C=0,O={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},T={values:X(),array:X(),state:X()},z=e.resetOptions&&e.resetOptions.keepDirtyValues,V=P(r.mode),I=P(r.reValidateMode),B=r.criteriaMode===b.all,H=e=>t=>{clearTimeout(C),C=setTimeout(e,t)},U=async e=>{if(O.isValid||e){let e=r.resolver?j((await ei()).errors):await ev(c,!0);e!==s.isValid&&T.state.next({isValid:e})}},W=e=>O.isValidating&&T.state.next({isValidating:e}),q=(e,t)=>{M(s.errors,e,t),T.state.next({errors:s.errors})},$=(e,t,n,r)=>{let i=g(c,e);if(i){let o=g(x,e,v(n)?g(f,e):n);v(o)||r&&r.defaultChecked||t?M(x,e,t?o:es(i._f)):eb(e,o),w.mount&&U()}},K=(e,t,n,r,i)=>{let o=!1,a=!1,l={name:e};if(!n||r){O.isDirty&&(a=s.isDirty,s.isDirty=l.isDirty=eg(),o=a!==l.isDirty);let n=J(g(f,e),t);a=g(s.dirtyFields,e),n?G(s.dirtyFields,e):M(s.dirtyFields,e,!0),l.dirtyFields=s.dirtyFields,o=o||O.dirtyFields&&!n!==a}if(n){let t=g(s.touchedFields,e);t||(M(s.touchedFields,e,n),l.touchedFields=s.touchedFields,o=o||O.touchedFields&&t!==n)}return o&&i&&T.state.next(l),o?l:{}},er=(t,r,i,o)=>{let a=g(s.errors,t),l=O.isValid&&D(r)&&s.isValid!==r;if(e.delayError&&i?(n=H(()=>q(t,i)))(e.delayError):(clearTimeout(C),n=null,i?M(s.errors,t,i):G(s.errors,t)),(i?!J(a,i):a)||!j(o)||l){let e={...o,...l&&D(r)?{isValid:r}:{},errors:s.errors,name:t};s={...s,...e},T.state.next(e)}W(!1)},ei=async e=>r.resolver(x,r.context,el(e||k.mount,c,r.criteriaMode,r.shouldUseNativeValidation)),em=async e=>{let{errors:t}=await ei();if(e)for(let n of e){let e=g(t,n);e?M(s.errors,n,e):G(s.errors,n)}else s.errors=t;return t},ev=async(e,t,n={valid:!0})=>{for(let i in e){let o=e[i];if(o){let{_f:e,...i}=o;if(e){let i=k.array.has(e.name),a=await Y(o,x,B,r.shouldUseNativeValidation&&!t,i);if(a[e.name]&&(n.valid=!1,t))break;t||(g(a,e.name)?i?R(s.errors,a,e.name):M(s.errors,e.name,a[e.name]):G(s.errors,e.name))}i&&await ev(i,t,n)}}return n.valid},eg=(e,t)=>(e&&t&&M(x,e,t),!J(eE(),f)),ey=(e,t,n)=>_(e,k,{...w.mount?x:v(t)?f:S(e)?{[e]:t}:t},n,t),eb=(e,t,n={})=>{let r=g(c,e),o=t;if(r){let n=r._f;n&&(n.disabled||M(x,e,ea(t,n)),o=F(n.ref)&&a(t)?"":t,ee(n.ref)?[...n.ref.options].forEach(e=>e.selected=o.includes(e.value)):n.refs?i(n.ref)?n.refs.length>1?n.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find(t=>t===e.value):o===e.value)):n.refs[0]&&(n.refs[0].checked=!!o):n.refs.forEach(e=>e.checked=e.value===o):L(n.ref)?n.ref.value="":(n.ref.value=o,n.ref.type||T.values.next({name:e,values:{...x}})))}(n.shouldDirty||n.shouldTouch)&&K(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&ek(e)},ex=(e,t,n)=>{for(let r in t){let i=t[r],a=`${e}.${r}`,s=g(c,a);!k.array.has(e)&&Q(i)&&(!s||s._f)||o(i)?eb(a,i,n):ex(a,i,n)}},ew=(e,n,r={})=>{let i=g(c,e),o=k.array.has(e),l=p(n);M(x,e,l),o?(T.array.next({name:e,values:{...x}}),(O.isDirty||O.dirtyFields)&&r.shouldDirty&&T.state.next({name:e,dirtyFields:eo(f,x),isDirty:eg(e,l)})):!i||i._f||a(l)?eb(e,l,r):ex(e,l,r),N(e,k)&&T.state.next({...s}),T.values.next({name:e,values:{...x}}),w.mount||t()},ej=async e=>{let t=e.target,i=t.name,o=!0,a=g(c,i);if(a){let l,d;let f=t.type?es(a._f):u(e),h=e.type===y.BLUR||e.type===y.FOCUS_OUT,p=!ec(a._f)&&!r.resolver&&!g(s.errors,i)&&!a._f.deps||ef(h,g(s.touchedFields,i),s.isSubmitted,I,V),m=N(i,k,h);M(x,i,f),h?(a._f.onBlur&&a._f.onBlur(e),n&&n(0)):a._f.onChange&&a._f.onChange(e);let v=K(i,f,h,!1),b=!j(v)||m;if(h||T.values.next({name:i,type:e.type,values:{...x}}),p)return O.isValid&&U(),b&&T.state.next({name:i,...m?{}:v});if(!h&&m&&T.state.next({...s}),W(!0),r.resolver){let{errors:e}=await ei([i]),t=ed(s.errors,c,i),n=ed(e,c,t.name||i);l=n.error,i=n.name,d=j(e)}else l=(await Y(a,x,B,r.shouldUseNativeValidation))[i],(o=isNaN(f)||f===g(x,i,f))&&(l?d=!1:O.isValid&&(d=await ev(c,!0)));o&&(a._f.deps&&ek(a._f.deps),er(i,d,l,v))}},ek=async(e,t={})=>{let n,i;let o=E(e);if(W(!0),r.resolver){let t=await em(v(e)?e:o);n=j(t),i=e?!o.some(e=>g(t,e)):n}else e?((i=(await Promise.all(o.map(async e=>{let t=g(c,e);return await ev(t&&t._f?{[e]:t}:t)}))).every(Boolean))||s.isValid)&&U():i=n=await ev(c);return T.state.next({...!S(e)||O.isValid&&n!==s.isValid?{}:{name:e},...r.resolver||!e?{isValid:n}:{},errors:s.errors,isValidating:!1}),t.shouldFocus&&!i&&A(c,e=>e&&g(s.errors,e),e?o:k.mount),i},eE=e=>{let t={...f,...w.mount?x:{}};return v(e)?t:S(e)?g(t,e):e.map(e=>g(t,e))},eS=(e,t)=>({invalid:!!g((t||s).errors,e),isDirty:!!g((t||s).dirtyFields,e),isTouched:!!g((t||s).touchedFields,e),error:g((t||s).errors,e)}),e_=(e,t={})=>{for(let n of e?E(e):k.mount)k.mount.delete(n),k.array.delete(n),t.keepValue||(G(c,n),G(x,n)),t.keepError||G(s.errors,n),t.keepDirty||G(s.dirtyFields,n),t.keepTouched||G(s.touchedFields,n),r.shouldUnregister||t.keepDefaultValue||G(f,n);T.values.next({values:{...x}}),T.state.next({...s,...t.keepDirty?{isDirty:eg()}:{}}),t.keepIsValid||U()},eC=(e,t={})=>{let n=g(c,e),i=D(t.disabled);return M(c,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),k.mount.add(e),n?i&&M(x,e,t.disabled?void 0:g(x,e,es(n._f))):$(e,!0,t.value),{...i?{disabled:t.disabled}:{},...r.shouldUseNativeValidation?{required:!!t.required,min:eu(t.min),max:eu(t.max),minLength:eu(t.minLength),maxLength:eu(t.maxLength),pattern:eu(t.pattern)}:{},name:e,onChange:ej,onBlur:ej,ref:i=>{if(i){eC(e,t),n=g(c,e);let r=v(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,o=et(r),a=n._f.refs||[];(o?a.find(e=>e===r):r===n._f.ref)||(M(c,e,{_f:{...n._f,...o?{refs:[...a.filter(en),r,...Array.isArray(g(f,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),$(e,!1,void 0,r))}else(n=g(c,e,{}))._f&&(n._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&!(d(k.array,e)&&w.action)&&k.unMount.add(e)}}},eO=()=>r.shouldFocusError&&A(c,e=>e&&g(s.errors,e),k.mount),eM=(n,r={})=>{let i=n||f,o=p(i),a=n&&!j(n)?o:f;if(r.keepDefaultValues||(f=i),!r.keepValues){if(r.keepDirtyValues||z)for(let e of k.mount)g(s.dirtyFields,e)?M(a,e,g(x,e)):ew(e,g(a,e));else{if(h&&v(n))for(let e of k.mount){let t=g(c,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(F(e)){let t=e.closest("form");if(t){t.reset();break}}}}c={}}x=e.shouldUnregister?r.keepDefaultValues?p(f):{}:o,T.array.next({values:{...a}}),T.values.next({values:{...a}})}k={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},w.mount||t(),w.mount=!O.isValid||!!r.keepIsValid,w.watch=!!e.shouldUnregister,T.state.next({submitCount:r.keepSubmitCount?s.submitCount:0,isDirty:r.keepDirty?s.isDirty:!!(r.keepDefaultValues&&!J(n,f)),isSubmitted:!!r.keepIsSubmitted&&s.isSubmitted,dirtyFields:r.keepDirtyValues?s.dirtyFields:r.keepDefaultValues&&n?eo(f,n):{},touchedFields:r.keepTouched?s.touchedFields:{},errors:r.keepErrors?s.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},eT=(e,t)=>eM(Z(e)?e(x):e,t);return{control:{register:eC,unregister:e_,getFieldState:eS,_executeSchema:ei,_getWatch:ey,_getDirty:eg,_updateValid:U,_removeUnmounted:()=>{for(let e of k.unMount){let t=g(c,e);t&&(t._f.refs?t._f.refs.every(e=>!en(e)):!en(t._f.ref))&&e_(e)}k.unMount=new Set},_updateFieldArray:(e,t=[],n,r,i=!0,o=!0)=>{if(r&&n){if(w.action=!0,o&&Array.isArray(g(c,e))){let t=n(g(c,e),r.argA,r.argB);i&&M(c,e,t)}if(o&&Array.isArray(g(s.errors,e))){let t=n(g(s.errors,e),r.argA,r.argB);i&&M(s.errors,e,t),eh(s.errors,e)}if(O.touchedFields&&o&&Array.isArray(g(s.touchedFields,e))){let t=n(g(s.touchedFields,e),r.argA,r.argB);i&&M(s.touchedFields,e,t)}O.dirtyFields&&(s.dirtyFields=eo(f,x)),T.state.next({name:e,isDirty:eg(e,t),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else M(x,e,t)},_getFieldArray:t=>m(g(w.mount?x:f,t,e.shouldUnregister?g(f,t,[]):[])),_reset:eM,_resetDefaultValues:()=>Z(r.defaultValues)&&r.defaultValues().then(e=>{eT(e,r.resetOptions),T.state.next({isLoading:!1})}),_updateFormState:e=>{s={...s,...e}},_subjects:T,_proxyFormState:O,get _fields(){return c},get _formValues(){return x},get _state(){return w},set _state(value){w=value},get _defaultValues(){return f},get _names(){return k},set _names(value){k=value},get _formState(){return s},set _formState(value){s=value},get _options(){return r},set _options(value){r={...r,...value}}},trigger:ek,register:eC,handleSubmit:(e,t)=>async n=>{n&&(n.preventDefault&&n.preventDefault(),n.persist&&n.persist());let i=p(x);if(T.state.next({isSubmitting:!0}),r.resolver){let{errors:e,values:t}=await ei();s.errors=e,i=t}else await ev(c);G(s.errors,"root"),j(s.errors)?(T.state.next({errors:{}}),await e(i,n)):(t&&await t({...s.errors},n),eO(),setTimeout(eO)),T.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:j(s.errors),submitCount:s.submitCount+1,errors:s.errors})},watch:(e,t)=>Z(e)?T.values.subscribe({next:n=>e(ey(void 0,t),n)}):ey(e,t,!0),setValue:ew,getValues:eE,reset:eT,resetField:(e,t={})=>{g(c,e)&&(v(t.defaultValue)?ew(e,g(f,e)):(ew(e,t.defaultValue),M(f,e,t.defaultValue)),t.keepTouched||G(s.touchedFields,e),t.keepDirty||(G(s.dirtyFields,e),s.isDirty=t.defaultValue?eg(e,g(f,e)):eg()),!t.keepError&&(G(s.errors,e),O.isValid&&U()),T.state.next({...s}))},clearErrors:e=>{e&&E(e).forEach(e=>G(s.errors,e)),T.state.next({errors:e?s.errors:{}})},unregister:e_,setError:(e,t,n)=>{let r=(g(c,e,{_f:{}})._f||{}).ref;M(s.errors,e,{...t,ref:r}),T.state.next({name:e,errors:s.errors,isValid:!1}),n&&n.shouldFocus&&r&&r.focus&&r.focus()},setFocus:(e,t={})=>{let n=g(c,e),r=n&&n._f;if(r){let e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:eS}}(e,()=>s(e=>({...e}))),formState:n});let c=t.current.control;return c._options=e,!function(e){let t=r.useRef(e);t.current=e,r.useEffect(()=>{let n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}({subject:c._subjects.state,next:e=>{k(e,c._proxyFormState,c._updateFormState,!0)&&s({...c._formState})}}),r.useEffect(()=>{e.values&&!J(e.values,c._defaultValues)?c._reset(e.values,c._options.resetOptions):c._resetDefaultValues()},[e.values,c]),r.useEffect(()=>{c._state.mount||(c._updateValid(),c._state.mount=!0),c._state.watch&&(c._state.watch=!1,c._subjects.state.next({...c._formState})),c._removeUnmounted()}),t.current.formState=w(n,c),t.current}},79381:function(e,t,n){"use strict";n.d(t,{J$:function(){return Q},ZP:function(){return J},JG:function(){return I},kY:function(){return K}});var r,i=n(2784),o=n(43100);let a=new WeakMap,s={},l={},u=()=>{},c=u(),d=Object,f=e=>e===c,h=e=>"function"==typeof e,p=(e,t)=>({...e,...t}),m="undefined",v=typeof window!=m,g=typeof document!=m,y=()=>v&&typeof window.requestAnimationFrame!=m,b=(e,t)=>{let n=a.get(e);return[()=>e.get(t)||s,r=>{if(!f(t)){let i=e.get(t);t in l||(l[t]=i),n[5](t,p(i,r),i||s)}},n[6],()=>!f(t)&&t in l?l[t]:e.get(t)||s]},x=new WeakMap,w=0,j=e=>{let t,n;let r=typeof e,i=e&&e.constructor,o=i==Date;if(d(e)!==e||o||i==RegExp)t=o?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=x.get(e))return t;if(t=++w+"~",x.set(e,t),i==Array){for(n=0,t="@";n(g&&document.addEventListener("visibilitychange",e),E("focus",e),()=>{g&&document.removeEventListener("visibilitychange",e),S("focus",e)}),initReconnect:e=>{let t=()=>{k=!0,e()},n=()=>{k=!1};return E("online",t),E("offline",n),()=>{S("online",t),S("offline",n)}}},C=!i.useId,O=!v||"Deno"in window,M=e=>y()?window.requestAnimationFrame(e):setTimeout(e,1),T=O?i.useEffect:i.useLayoutEffect,A="undefined"!=typeof navigator&&navigator.connection,P=!O&&A&&(["slow-2g","2g"].includes(A.effectiveType)||A.saveData),N=e=>{if(h(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?j(e):"",t]},R=0,D=()=>++R;var L={FOCUS_EVENT:0,RECONNECT_EVENT:1,MUTATE_EVENT:2,ERROR_REVALIDATE_EVENT:3};async function Z(...e){let[t,n,r,i]=e,o=p({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),s=o.populateCache,l=o.rollbackOnError,u=o.optimisticData,d=!1!==o.revalidate,m=e=>"function"==typeof l?l(e):!1!==l,v=o.throwOnError;if(h(n)){let e=[],r=t.keys();for(let i=r.next();!i.done;i=r.next()){let r=i.value;!/^\$(inf|sub)\$/.test(r)&&n(t.get(r)._k)&&e.push(r)}return Promise.all(e.map(g))}return g(n);async function g(n){let i;let[o]=N(n);if(!o)return;let[l,p]=b(t,o),[g,y,x]=a.get(t),w=g[o],j=()=>d&&(delete x[o],w&&w[0])?w[0](2).then(()=>l().data):l().data;if(e.length<3)return j();let k=r,E=D();y[o]=[E,0];let S=!f(u),_=l(),C=_.data,O=_._c,M=f(O)?C:O;if(S&&p({data:u=h(u)?u(M):u,_c:M}),h(k))try{k=k(M)}catch(e){i=e}if(k&&h(k.then)){if(k=await k.catch(e=>{i=e}),E!==y[o][0]){if(i)throw i;return k}i&&S&&m(i)&&(s=!0,p({data:k=M,_c:c}))}s&&!i&&(h(s)&&(k=s(k,M)),p({data:k,_c:c})),y[o][1]=D();let T=await j();if(p({_c:c}),i){if(v)throw i;return}return s?T:k}}let F=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},z=(e,t)=>{if(!a.has(e)){let n=p(_,t),r={},i=Z.bind(c,e),o=u,s={},l=(e,t)=>{let n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},d=(t,n,r)=>{e.set(t,n);let i=s[t];if(i)for(let e of i)e(n,r)},f=()=>{if(!a.has(e)&&(a.set(e,[r,{},{},{},i,d,l]),!O)){let t=n.initFocus(setTimeout.bind(c,F.bind(c,r,0))),i=n.initReconnect(setTimeout.bind(c,F.bind(c,r,1)));o=()=>{t&&t(),i&&i(),a.delete(e)}}};return f(),[e,i,f,o]}return[e,a.get(e)[4]]},[V,I]=z(new Map),B=p({onLoadingSlow:u,onSuccess:u,onError:u,onErrorRetry:(e,t,n,r,i)=>{let o=n.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;(f(o)||!(a>o))&&setTimeout(r,s,i)},onDiscarded:u,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:P?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:P?5e3:3e3,compare:(e,t)=>j(e)==j(t),isPaused:()=>!1,cache:V,mutate:I,fallback:{}},{isOnline:()=>k,isVisible:()=>{let e=g&&document.visibilityState;return f(e)||"hidden"!==e}}),H=(e,t)=>{let n=p(e,t);if(t){let{use:r,fallback:i}=e,{use:o,fallback:a}=t;r&&o&&(n.use=r.concat(o)),i&&a&&(n.fallback=p(i,a))}return n},U=(0,i.createContext)({}),W=v&&window.__SWR_DEVTOOLS_USE__,q=W?window.__SWR_DEVTOOLS_USE__:[],$=e=>h(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],K=()=>p(B,(0,i.useContext)(U)),Y=q.concat(e=>(t,n,r)=>{let i=n&&((...e)=>{let r=N(t)[0],[,,,i]=a.get(V),o=i[r];return o?(delete i[r],o):n(...e)});return e(t,i,r)}),G=(e,t,n)=>{let r=t[e]||(t[e]=[]);return r.push(n),()=>{let e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}};W&&(window.__SWR_DEVTOOLS_REACT__=i);let X={dedupe:!0},Q=d.defineProperty(e=>{let{value:t}=e,n=(0,i.useContext)(U),r=h(t),o=(0,i.useMemo)(()=>r?t(n):t,[r,n,t]),a=(0,i.useMemo)(()=>r?o:H(n,o),[r,n,o]),s=o&&o.provider,l=(0,i.useRef)(c);s&&!l.current&&(l.current=z(s(a.cache||V),o));let u=l.current;return u&&(a.cache=u[0],a.mutate=u[1]),T(()=>{if(u)return u[2]&&u[2](),u[3]},[]),(0,i.createElement)(U.Provider,p(e,{value:a}))},"defaultValue",{value:B});var J=(r=(e,t,n)=>{let{cache:r,compare:s,suspense:l,fallbackData:u,revalidateOnMount:d,revalidateIfStale:m,refreshInterval:v,refreshWhenHidden:g,refreshWhenOffline:y,keepPreviousData:x}=n,[w,j,k]=a.get(r),[E,S]=N(e),_=(0,i.useRef)(!1),A=(0,i.useRef)(!1),P=(0,i.useRef)(E),R=(0,i.useRef)(t),F=(0,i.useRef)(n),z=()=>F.current,V=()=>z().isVisible()&&z().isOnline(),[I,B,H,U]=b(r,E),W=(0,i.useRef)({}).current,q=f(u)?n.fallback[E]:u,$=(e,t)=>{let n=!0;for(let r in W)"data"===r?s(t[r],e[r])||f(e[r])&&s(t[r],ei)||(n=!1):t[r]!==e[r]&&(n=!1);return n},K=(0,i.useMemo)(()=>{let e=!!E&&!!t&&(f(d)?!z().isPaused()&&!l&&(!!f(m)||m):d),n=t=>{let n=p(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=I(),i=U(),o=n(r),a=r===i?o:n(i),s=o;return[()=>{let e=n(I());return $(e,s)?s:s=e},()=>a]},[r,E]),Y=(0,o.useSyncExternalStore)((0,i.useCallback)(e=>H(E,(t,n)=>{$(n,t)||e()}),[r,E]),K[0],K[1]),Q=!_.current,J=w[E]&&w[E].length>0,ee=Y.data,et=f(ee)?q:ee,en=Y.error,er=(0,i.useRef)(et),ei=x?f(ee)?er.current:ee:et,eo=(!J||!!f(en))&&(Q&&!f(d)?d:!z().isPaused()&&(l?!f(et)&&m:f(et)||m)),ea=!!(E&&t&&Q&&eo),es=f(Y.isValidating)?ea:Y.isValidating,el=f(Y.isLoading)?ea:Y.isLoading,eu=(0,i.useCallback)(async e=>{let t,r;let i=R.current;if(!E||!i||A.current||z().isPaused())return!1;let o=!0,a=e||{},l=!k[E]||!a.dedupe,u=()=>C?!A.current&&E===P.current&&_.current:E===P.current,d={isValidating:!1,isLoading:!1},p=()=>{B(d)},m=()=>{let e=k[E];e&&e[1]===r&&delete k[E]},v={isValidating:!0};f(I().data)&&(v.isLoading=!0);try{if(l&&(B(v),n.loadingTimeout&&f(I().data)&&setTimeout(()=>{o&&u()&&z().onLoadingSlow(E,n)},n.loadingTimeout),k[E]=[i(S),D()]),[t,r]=k[E],t=await t,l&&setTimeout(m,n.dedupingInterval),!k[E]||k[E][1]!==r)return l&&u()&&z().onDiscarded(E),!1;d.error=c;let e=j[E];if(!f(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return p(),l&&u()&&z().onDiscarded(E),!1;let a=I().data;d.data=s(a,t)?a:t,l&&u()&&z().onSuccess(t,E,n)}catch(n){m();let e=z(),{shouldRetryOnError:t}=e;!e.isPaused()&&(d.error=n,l&&u()&&(e.onError(n,E,e),(!0===t||h(t)&&t(n))&&V()&&e.onErrorRetry(n,E,e,e=>{let t=w[E];t&&t[0]&&t[0](L.ERROR_REVALIDATE_EVENT,e)},{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return o=!1,p(),!0},[E,r]),ec=(0,i.useCallback)((...e)=>Z(r,P.current,...e),[]);if(T(()=>{R.current=t,F.current=n,f(ee)||(er.current=ee)}),T(()=>{if(!E)return;let e=eu.bind(c,X),t=0,n=G(E,w,(n,r={})=>{if(n==L.FOCUS_EVENT){let n=Date.now();z().revalidateOnFocus&&n>t&&V()&&(t=n+z().focusThrottleInterval,e())}else if(n==L.RECONNECT_EVENT)z().revalidateOnReconnect&&V()&&e();else if(n==L.MUTATE_EVENT)return eu();else if(n==L.ERROR_REVALIDATE_EVENT)return eu(r)});return A.current=!1,P.current=E,_.current=!0,B({_k:S}),eo&&(f(et)||O?e():M(e)),()=>{A.current=!0,n()}},[E]),T(()=>{let e;function t(){let t=h(v)?v(et):v;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!I().error&&(g||z().isVisible())&&(y||z().isOnline())?eu(X).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[v,g,y,E]),(0,i.useDebugValue)(ei),l&&f(et)&&E){if(!C&&O)throw Error("Fallback data is required when using suspense in SSR.");throw R.current=t,F.current=n,A.current=!1,f(en)?eu(X):en}return{mutate:ec,get data(){return W.data=!0,ei},get error(){return W.error=!0,en},get isValidating(){return W.isValidating=!0,es},get isLoading(){return W.isLoading=!0,el}}},function(...e){let t=K(),[n,i,o]=$(e),a=H(t,o),s=r,{use:l}=a,u=(l||[]).concat(Y);for(let e=u.length;e--;)s=u[e](s);return s(n,i||a.fetcher||null,a)})},22970:function(e,t,n){"use strict";n.d(t,{CR:function(){return s},Jh:function(){return a},_T:function(){return i},ev:function(){return l},mG:function(){return o},pi:function(){return r}});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function o(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function a(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]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 l(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;il("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.moreThan100BlocksToSync,children:[(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.XxW,{size:"14",maxLength:50,value:null===(n=u.data)||void 0===n?void 0:n.address,type:"address"})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.xvT,{size:"14",children:null===(r=x.data)||void 0===r?void 0:r.network})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,s.jsx)(i.rUS,{size:"14",href:v,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=x.data)||void 0===c?void 0:c.version})]})]})}function u(){let e=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,s.jsx)(i.t6k,{testnetName:e.data.network}):null}function h(e){let t=(0,a.X2)(),{isSynced:n}=(0,o.n)();return(0,s.jsx)(i.tU3,{appName:"renterd",profile:(0,s.jsx)(x,{}),banner:(0,s.jsx)(u,{}),connectivityRoute:l.h,isSynced:n,walletBalanceSc:t.data&&{spendable:new(c())(t.data.spendable),confirmed:new(c())(t.data.confirmed),unconfirmed:new(c())(t.data.unconfirmed)},...e})}},91930:function(e,t,n){"use strict";n.d(t,{e:function(){return d}});var s=n(52322),i=n(57362),a=n(88242),r=n(9969),c=n(82851),l=n(71930),o=n(86811);function d(){var e,t;let n=(0,r.Z7)(),{openDialog:d}=(0,o.Rh)(),x=!(null===(e=n.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(t=n.data)||void 0===t?void 0:t.length)||0;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.KJW,{title:"Files",route:l._.files.index,children:(0,s.jsx)(a.ROc,{})}),(0,s.jsx)(i.KJW,{title:"Configuration",route:l._.config.index,children:(0,s.jsx)(a.wWN,{})}),(0,s.jsx)(i.KJW,{title:"Contracts",route:l._.contracts.index,children:(0,s.jsx)(a.VBo,{})}),(0,s.jsx)(i.KJW,{title:"Hosts",route:l._.hosts.index,children:(0,s.jsx)(a.VHe,{})}),(0,s.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,s.jsx)("div",{className:(0,c.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!u&&!x&&(0,s.jsx)(i.xvT,{size:"10",className:(0,c.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:u.toLocaleString()}),(0,s.jsx)(i.KJW,{title:"Alerts",onClick:()=>d("alerts"),children:(0,s.jsx)(a.Dkj,{})})]})]})}},25474:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return g}});var s=n(52322),i=n(57362),a=n(91930),r=n(71930),c=n(86811),l=n(89630),o=n(19847),d=n(25205),x=n(91641);function u(){let{autopilot:e}=(0,x.q)(),{canEstimate:t,estimatedSpendingPerMonth:n,estimatedSpendingPerTB:a,redundancyMultiplier:r,storageTB:c,showAdvanced:l}=(0,o.ZR)(),u=(0,i.fb0)({sc:n}),h=(0,i.fb0)({sc:a});return"on"!==e.status?null:t?(0,s.jsx)(i.xrM,{children:(0,s.jsxs)("div",{className:"flex gap-4 items-center h-full",children:[(0,s.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:"Estimate:"}),(0,s.jsxs)("div",{className:"flex gap-1",children:[(0,s.jsx)(i.YKL,{size:"12",value:(0,d.qN)(a),dynamicUnits:!1,fixed:0,variant:"value"}),h.fiat&&(0,s.jsx)("div",{className:"flex",children:(0,s.jsx)(i.m2c,{size:"12",weight:"medium",value:h.fiat,color:"subtle",variant:"value",format:e=>"(".concat(h.currency.prefix).concat(e.toFixed(h.currency.fixed),")")})}),(0,s.jsxs)(i.xvT,{size:"12",font:"mono",weight:"medium",ellipsis:!0,children:["per TB/month with ",r.toFixed(1),"x redundancy"]})]}),(0,s.jsxs)("div",{className:"flex gap-1",children:[(0,s.jsx)(i.YKL,{size:"12",value:(0,d.qN)(n),dynamicUnits:!1,fixed:0,variant:"value"}),u.fiat&&(0,s.jsx)("div",{className:"flex",children:(0,s.jsx)(i.m2c,{size:"12",weight:"medium",value:u.fiat,color:"subtle",variant:"value",format:e=>"(".concat(u.currency.prefix).concat(e.toFixed(u.currency.fixed),")")})}),(0,s.jsxs)(i.xvT,{size:"12",font:"mono",weight:"medium",ellipsis:!0,children:["to store ",(0,d.vW)((0,d.xf)(c).toNumber()),"/month with"," ",r.toFixed(1),"x redundancy"]})]})]})}):(0,s.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:l?"Enter expected storage, period, and allowance values to estimate monthly spending.":"Enter expected storage and max price to estimate monthly spending."})}var h=n(88242);function f(){let{onSubmit:e,changeCount:t,shouldSyncDefaultContractSet:n,setShouldSyncDefaultContractSet:a,revalidateAndResetForm:r,form:c}=(0,o.ZR)();return(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[!!t&&(0,s.jsx)(i.xvT,{size:"12",color:"subtle",children:1===t?"1 change":"".concat(t," changes")}),(0,s.jsx)(i.zxk,{tip:"Reset all changes",icon:"contrast",disabled:!t,onClick:r,children:(0,s.jsx)(h.Wet,{})}),(0,s.jsxs)(i.eQh,{children:[(0,s.jsxs)(i.zxk,{tip:"Save all changes",variant:"accent",disabled:!c.formState.isDirty||c.formState.isSubmitting,onClick:e,children:[(0,s.jsx)(h.ZEk,{}),"Save changes"]}),(0,s.jsx)(i.J2e,{contentProps:{align:"end"},trigger:(0,s.jsx)(i.zxk,{variant:"accent",icon:"hover",children:(0,s.jsx)(h.shL,{})}),children:(0,s.jsxs)("div",{className:"px-1",children:[(0,s.jsx)(i.__J,{children:"Options"}),(0,s.jsxs)("div",{children:[(0,s.jsx)(i.rsf,{checked:n,onCheckedChange:e=>a(e),children:"sync default contract set"}),(0,s.jsx)(i.nvN,{size:"12",children:"Automatically update the default contract set to be the same as the autopilot contract set when changes are saved."})]})]})})]})]})}function m(){let{showAdvanced:e,setShowAdvanced:t}=(0,o.ZR)();return(0,s.jsx)("div",{className:"pl-1",children:(0,s.jsx)(i.ua7,{content:e?"Hide advanced":"Show advanced",children:(0,s.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,s.jsx)(i.rsf,{checked:e,onCheckedChange:e=>t(e)}),(0,s.jsx)(i.xvT,{size:"12",color:"subtle",children:"Advanced"})]})})})}function v(){let{revalidateAndResetForm:e}=(0,o.ZR)();return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,s.jsx)(i.xvT,{children:(0,s.jsx)(h.gFQ,{className:"scale-[200%]"})}),(0,s.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,s.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error retrieving settings from daemon. Please check your connection and try again."}),(0,s.jsx)(i.zxk,{onClick:()=>e(),children:"Reload"})]})]})}function j(){let{openDialog:e}=(0,c.Rh)(),{form:t,fields:n,remoteError:d}=(0,o.ZR)();return(0,s.jsx)(l.J,{title:"Configuration",routes:r._,nav:(0,s.jsx)(m,{}),sidenav:(0,s.jsx)(a.e,{}),stats:(0,s.jsx)(u,{}),actions:(0,s.jsx)(f,{}),openSettings:()=>e("settings"),children:d?(0,s.jsx)(v,{}):(0,s.jsxs)("div",{className:"px-5 py-6 flex flex-col gap-16 max-w-screen-xl",children:[(0,s.jsx)(i.vRO,{title:"Storage",category:"storage",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Pricing",category:"gouging",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Hosts",category:"hosts",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Wallet",category:"wallet",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Contracts",category:"contractset",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Uploads",category:"uploadpacking",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Redundancy",category:"redundancy",fields:n,form:t})]})})}function g(){return(0,s.jsx)(j,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=57344)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/config-e7a2ff5329267881.js b/renterd/assets/_next/static/chunks/pages/config-e7a2ff5329267881.js deleted file mode 100644 index 13014ce35..000000000 --- a/renterd/assets/_next/static/chunks/pages/config-e7a2ff5329267881.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[490],{57344:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/config",function(){return n(60807)}])},89630:function(e,t,n){"use strict";n.d(t,{J:function(){return h}});var s=n(52322),i=n(35701),a=n(9969),r=n(6391),c=n.n(r),l=n(71930),o=n(25573),d=n(86811);function x(){var e,t,n,r,c;let{openDialog:l}=(0,d.Rh)(),x=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}}),u=(0,a.X2)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,a.cQ)(),f=(0,o.n)(),v=null===(e=x.data)||void 0===e?void 0:e.version,m="?"===v?"https://github.com/SiaFoundation/renterd/commits/":(null==v?void 0:v.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(v):"https://github.com/SiaFoundation/renterd/tree/".concat(v);return(0,s.jsxs)(i.HfT,{name:"renterd",peerCount:null===(t=h.data)||void 0===t?void 0:t.length,connectPeer:()=>l("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.moreThan100BlocksToSync,children:[(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.XxW,{size:"14",maxLength:50,value:null===(n=u.data)||void 0===n?void 0:n.address,type:"address"})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.xvT,{size:"14",children:null===(r=x.data)||void 0===r?void 0:r.network})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,s.jsx)(i.rUS,{size:"14",href:m,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=x.data)||void 0===c?void 0:c.version})]})]})}function u(){let e=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,s.jsx)(i.t6k,{testnetName:e.data.network}):null}function h(e){let t=(0,a.X2)(),{isSynced:n}=(0,o.n)();return(0,s.jsx)(i.tU3,{appName:"renterd",profile:(0,s.jsx)(x,{}),banner:(0,s.jsx)(u,{}),connectivityRoute:l.h,isSynced:n,walletBalanceSc:t.data&&{spendable:new(c())(t.data.spendable),confirmed:new(c())(t.data.confirmed),unconfirmed:new(c())(t.data.unconfirmed)},...e})}},91930:function(e,t,n){"use strict";n.d(t,{e:function(){return d}});var s=n(52322),i=n(35701),a=n(88242),r=n(9969),c=n(82851),l=n(71930),o=n(86811);function d(){var e,t;let n=(0,r.Z7)(),{openDialog:d}=(0,o.Rh)(),x=!(null===(e=n.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(t=n.data)||void 0===t?void 0:t.length)||0;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.KJW,{title:"Files",route:l._.files.index,children:(0,s.jsx)(a.ROc,{})}),(0,s.jsx)(i.KJW,{title:"Configuration",route:l._.config.index,children:(0,s.jsx)(a.wWN,{})}),(0,s.jsx)(i.KJW,{title:"Contracts",route:l._.contracts.index,children:(0,s.jsx)(a.VBo,{})}),(0,s.jsx)(i.KJW,{title:"Hosts",route:l._.hosts.index,children:(0,s.jsx)(a.VHe,{})}),(0,s.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,s.jsx)("div",{className:(0,c.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!u&&!x&&(0,s.jsx)(i.xvT,{size:"10",className:(0,c.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:u.toLocaleString()}),(0,s.jsx)(i.KJW,{title:"Alerts",onClick:()=>d("alerts"),children:(0,s.jsx)(a.Dkj,{})})]})]})}},60807:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return j}});var s=n(52322),i=n(35701),a=n(91930),r=n(71930),c=n(86811),l=n(89630),o=n(1657),d=n(25205),x=n(91641);function u(){let{autopilot:e}=(0,x.q)(),{canEstimate:t,estimatedSpendingPerMonth:n,estimatedSpendingPerTB:a,redundancyMultiplier:r,storageTB:c,showAdvanced:l}=(0,o.ZR)(),u=(0,i.fb0)({sc:n}),h=(0,i.fb0)({sc:a});return"on"!==e.status?null:t?(0,s.jsx)(i.xrM,{children:(0,s.jsxs)("div",{className:"flex gap-4 items-center h-full",children:[(0,s.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:"Estimate:"}),(0,s.jsxs)("div",{className:"flex gap-1",children:[(0,s.jsx)(i.YKL,{size:"12",value:(0,d.qN)(a),dynamicUnits:!1,fixed:0,variant:"value"}),h.fiat&&(0,s.jsx)("div",{className:"flex",children:(0,s.jsx)(i.m2c,{size:"12",weight:"medium",value:h.fiat,color:"subtle",variant:"value",format:e=>"(".concat(h.currency.prefix).concat(e.toFixed(h.currency.fixed),")")})}),(0,s.jsxs)(i.xvT,{size:"12",font:"mono",weight:"medium",ellipsis:!0,children:["per TB/month with ",r.toFixed(1),"x redundancy"]})]}),(0,s.jsxs)("div",{className:"flex gap-1",children:[(0,s.jsx)(i.YKL,{size:"12",value:(0,d.qN)(n),dynamicUnits:!1,fixed:0,variant:"value"}),u.fiat&&(0,s.jsx)("div",{className:"flex",children:(0,s.jsx)(i.m2c,{size:"12",weight:"medium",value:u.fiat,color:"subtle",variant:"value",format:e=>"(".concat(u.currency.prefix).concat(e.toFixed(u.currency.fixed),")")})}),(0,s.jsxs)(i.xvT,{size:"12",font:"mono",weight:"medium",ellipsis:!0,children:["to store ",(0,d.vW)((0,d.xf)(c).toNumber()),"/month with"," ",r.toFixed(1),"x redundancy"]})]})]})}):(0,s.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:l?"Enter expected storage, period, and allowance values to estimate monthly spending.":"Enter expected storage and max price to estimate monthly spending."})}var h=n(88242);function f(){let{onSubmit:e,changeCount:t,shouldSyncDefaultContractSet:n,setShouldSyncDefaultContractSet:a,revalidateAndResetFormData:r,form:c}=(0,o.ZR)();return(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[!!t&&(0,s.jsx)(i.xvT,{size:"12",color:"subtle",children:1===t?"1 change":"".concat(t," changes")}),(0,s.jsx)(i.zxk,{tip:"Reset all changes",icon:"contrast",disabled:!t,onClick:r,children:(0,s.jsx)(h.Wet,{})}),(0,s.jsxs)(i.eQh,{children:[(0,s.jsxs)(i.zxk,{tip:"Save all changes",variant:"accent",disabled:!c.formState.isDirty||c.formState.isSubmitting,onClick:e,children:[(0,s.jsx)(h.ZEk,{}),"Save changes"]}),(0,s.jsx)(i.J2e,{contentProps:{align:"end"},trigger:(0,s.jsx)(i.zxk,{variant:"accent",icon:"hover",children:(0,s.jsx)(h.shL,{})}),children:(0,s.jsxs)("div",{className:"px-1",children:[(0,s.jsx)(i.__J,{children:"Options"}),(0,s.jsxs)("div",{children:[(0,s.jsx)(i.rsf,{checked:n,onCheckedChange:e=>a(e),children:"sync default contract set"}),(0,s.jsx)(i.nvN,{size:"12",children:"Automatically update the default contract set to be the same as the autopilot contract set when changes are saved."})]})]})})]})]})}function v(){let{showAdvanced:e,setShowAdvanced:t}=(0,o.ZR)();return(0,s.jsx)("div",{className:"pl-1",children:(0,s.jsx)(i.ua7,{content:e?"Hide advanced":"Show advanced",children:(0,s.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,s.jsx)(i.rsf,{checked:e,onCheckedChange:e=>t(e)}),(0,s.jsx)(i.xvT,{size:"12",color:"subtle",children:"Advanced"})]})})})}function m(){let{openDialog:e}=(0,c.Rh)(),{form:t,fields:n}=(0,o.ZR)();return(0,s.jsx)(l.J,{title:"Configuration",routes:r._,nav:(0,s.jsx)(v,{}),sidenav:(0,s.jsx)(a.e,{}),stats:(0,s.jsx)(u,{}),actions:(0,s.jsx)(f,{}),openSettings:()=>e("settings"),children:(0,s.jsxs)("div",{className:"px-5 py-6 flex flex-col gap-16 max-w-screen-xl",children:[(0,s.jsx)(i.vRO,{title:"Storage",category:"storage",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Pricing",category:"gouging",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Hosts",category:"hosts",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Wallet",category:"wallet",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Contracts",category:"contractset",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Uploads",category:"uploadpacking",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Redundancy",category:"redundancy",fields:n,form:t})]})})}function j(){return(0,s.jsx)(m,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=57344)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/contracts-68daaddfe5b44721.js b/renterd/assets/_next/static/chunks/pages/contracts-68daaddfe5b44721.js new file mode 100644 index 000000000..d86ebc05c --- /dev/null +++ b/renterd/assets/_next/static/chunks/pages/contracts-68daaddfe5b44721.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[348],{77441:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contracts",function(){return s(4197)}])},89630:function(e,n,s){"use strict";s.d(n,{J:function(){return h}});var t=s(52322),l=s(57362),i=s(9969),a=s(6391),c=s.n(a),r=s(71930),o=s(25573),d=s(86811);function x(){var e,n,s,a,c;let{openDialog:r}=(0,d.Rh)(),x=(0,i.d_)({config:{swr:{revalidateOnFocus:!1}}}),u=(0,i.X2)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,i.cQ)(),j=(0,o.n)(),f=null===(e=x.data)||void 0===e?void 0:e.version,g="?"===f?"https://github.com/SiaFoundation/renterd/commits/":(null==f?void 0:f.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(f):"https://github.com/SiaFoundation/renterd/tree/".concat(f);return(0,t.jsxs)(l.HfT,{name:"renterd",peerCount:null===(n=h.data)||void 0===n?void 0:n.length,connectPeer:()=>r("connectPeer"),isSynced:j.isSynced,syncPercent:j.syncPercent,nodeBlockHeight:j.nodeBlockHeight,estimatedBlockHeight:j.estimatedBlockHeight,firstTimeSyncing:j.firstTimeSyncing,moreThan100BlocksToSync:j.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(l.XxW,{size:"14",maxLength:50,value:null===(s=u.data)||void 0===s?void 0:s.address,type:"address"})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(l.xvT,{size:"14",children:null===(a=x.data)||void 0===a?void 0:a.network})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(l.rUS,{size:"14",href:g,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=x.data)||void 0===c?void 0:c.version})]})]})}function u(){let e=(0,i.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(l.t6k,{testnetName:e.data.network}):null}function h(e){let n=(0,i.X2)(),{isSynced:s}=(0,o.n)();return(0,t.jsx)(l.tU3,{appName:"renterd",profile:(0,t.jsx)(x,{}),banner:(0,t.jsx)(u,{}),connectivityRoute:r.h,isSynced:s,walletBalanceSc:n.data&&{spendable:new(c())(n.data.spendable),confirmed:new(c())(n.data.confirmed),unconfirmed:new(c())(n.data.unconfirmed)},...e})}},91930:function(e,n,s){"use strict";s.d(n,{e:function(){return d}});var t=s(52322),l=s(57362),i=s(88242),a=s(9969),c=s(82851),r=s(71930),o=s(86811);function d(){var e,n;let s=(0,a.Z7)(),{openDialog:d}=(0,o.Rh)(),x=!(null===(e=s.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(n=s.data)||void 0===n?void 0:n.length)||0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.KJW,{title:"Files",route:r._.files.index,children:(0,t.jsx)(i.ROc,{})}),(0,t.jsx)(l.KJW,{title:"Configuration",route:r._.config.index,children:(0,t.jsx)(i.wWN,{})}),(0,t.jsx)(l.KJW,{title:"Contracts",route:r._.contracts.index,children:(0,t.jsx)(i.VBo,{})}),(0,t.jsx)(l.KJW,{title:"Hosts",route:r._.hosts.index,children:(0,t.jsx)(i.VHe,{})}),(0,t.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,t.jsx)("div",{className:(0,c.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!u&&!x&&(0,t.jsx)(l.xvT,{size:"10",className:(0,c.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:u.toLocaleString()}),(0,t.jsx)(l.KJW,{title:"Alerts",onClick:()=>d("alerts"),children:(0,t.jsx)(i.Dkj,{})})]})]})}},4197:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return S}});var t=s(52322),l=s(91930),i=s(71930),a=s(57362),c=s(86811),r=s(26592),o=s(89630),d=s(88242);function x(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(a.xvT,{children:(0,t.jsx)(d.Hb6,{className:"scale-[200%]"})}),(0,t.jsx)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No active contracts matching filters."})]})}function u(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(a.xvT,{children:(0,t.jsx)(d.VBo,{className:"scale-[200%]"})}),(0,t.jsx)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"There are currently no active contracts. Configure autopilot or manually form contracts to get started."})]})}var h=s(56860),j=s(52058);function f(){let{configurableColumns:e,toggleColumnVisibility:n,resetDefaultColumnVisibility:s,setColumnsVisible:l,setColumnsHidden:i,sortField:c,setSortField:o,sortDirection:x,setSortDirection:u,enabledColumns:f}=(0,r.G)(),g=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),m=e.filter(e=>"time"===e.category).map(e=>({label:e.label,value:e.id})),p=e.filter(e=>"financial"===e.category).map(e=>({label:e.label,value:e.id}));return(0,t.jsxs)(a.J2e,{trigger:(0,t.jsxs)(a.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,t.jsx)(d.hiv,{}),"View",(0,t.jsx)(d.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,t.jsxs)(a.WVB,{children:[(0,t.jsx)(a.__J,{children:"Order by"}),(0,t.jsx)(a.kFS,{children:(0,t.jsx)(a.PhF,{value:c,onChange:e=>{o(e.currentTarget.value)},children:Object.entries((0,j.Z)(h.Fo,"category")).map(e=>{let[n,s]=e;return(0,t.jsx)("optgroup",{label:n,children:s.map(e=>(0,t.jsx)(a.Wxm,{value:e.id,children:e.label},e.id))},n)})})})]}),(0,t.jsxs)(a.WVB,{children:[(0,t.jsx)(a.__J,{children:"Direction"}),(0,t.jsx)(a.kFS,{children:(0,t.jsxs)(a.PhF,{value:x,onClick:e=>{e.stopPropagation()},onChange:e=>{u(e.currentTarget.value)},children:[(0,t.jsx)(a.Wxm,{value:"desc",children:"descending"},"desc"),(0,t.jsx)(a.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,t.jsx)(a.Clw,{}),(0,t.jsxs)(a.WVB,{children:[(0,t.jsx)(a.__J,{children:"Display properties"}),(0,t.jsx)(a.kFS,{children:(0,t.jsx)(a.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),s()},children:(0,t.jsx)(d.Wet,{})})})]}),(0,t.jsx)(a.FzK,{label:"General",columns:g.map(e=>e.value),enabled:f,setColumnsVisible:l,setColumnsHidden:i}),(0,t.jsx)(a.WVB,{children:(0,t.jsx)(a.j4H,{options:g,values:f,onChange:e=>n(e)})}),(0,t.jsx)(a.FzK,{label:"Time",columns:m.map(e=>e.value),enabled:f,setColumnsVisible:l,setColumnsHidden:i}),(0,t.jsx)(a.WVB,{children:(0,t.jsx)(a.j4H,{options:m,values:f,onChange:e=>n(e)})}),(0,t.jsx)(a.FzK,{label:"Financial",columns:p.map(e=>e.value),enabled:f,setColumnsVisible:l,setColumnsHidden:i}),(0,t.jsx)(a.WVB,{children:(0,t.jsx)(a.j4H,{options:p,values:f,onChange:e=>n(e)})})]})}function g(){let{setViewMode:e}=(0,r.G)();return(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(a.zxk,{tip:"Toggle graphs",onClick:()=>e(e=>"detail"===e?"list":"detail"),children:(0,t.jsx)(d.oce,{})}),(0,t.jsx)(f,{})]})}function m(e){let{error:n}=e;return(null==n?void 0:n.message.startsWith("404"))?(0,t.jsx)(u,{}):(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(a.xvT,{children:(0,t.jsx)(d.Ckx,{className:"scale-[200%]"})}),(0,t.jsx)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching contracts."})]})}var p=s(99182),v=s(2784),b=s(93216);function k(){let{filters:e,removeFilter:n,removeLastFilter:s}=(0,r.G)(),[l,i]=(0,v.useState)(!1),[c,o]=(0,v.useState)(""),[x,u]=(0,v.useState)([]),h=x[x.length-1],j=(x.length,(0,v.useRef)(null)),f=(0,v.useRef)(null),g=(0,v.useCallback)(e=>{u(n=>[...n,e])},[u]),m=(0,v.useCallback)(()=>{u([])},[u]);(0,v.useEffect)(()=>{let e=e=>{j.current&&!j.current.contains(e.target)&&i(!1)};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}},[]);let k=(0,v.useCallback)(()=>{var e;null===(e=f.current)||void 0===e||e.focus()},[f]),w=(0,v.useCallback)(()=>{o(""),m()},[m]);return(0,t.jsxs)("div",{className:"flex gap-1",children:[e.map(e=>(0,t.jsxs)(a.eQh,{children:[(0,t.jsx)(a.zxk,{variant:"active",state:"waiting",children:e.label}),(0,t.jsx)(a.zxk,{variant:"active",size:"small",onClick:()=>n(e.id),children:(0,t.jsx)(d.PcV,{})})]},e.id)),(0,t.jsxs)(p.mY,{ref:j,label:"Command Menu",onFocus:()=>i(!0),onKeyDown:e=>{if(x.length>0)"Escape"!==e.key&&("Backspace"!==e.key||c)||(e.preventDefault(),u(e=>e.slice(0,-1)));else if(0===x.length&&("Backspace"!==e.key||c||s(),"Escape"===e.key&&!c)){var n;i(!1),null===(n=f.current)||void 0===n||n.blur()}},children:[(0,t.jsx)(p.mY.Input,{ref:f,value:c,onValueChange:o,className:(0,a.cEb)({variant:"ghost",focus:"none"}),placeholder:"Filter contracts"}),l&&(0,t.jsx)(a.s_4,{className:"absolute z-20 min-w-[200px] max-h-[400px] overflow-auto p-1",children:(0,t.jsxs)(a.xrM,{children:[h&&(0,t.jsx)(a.__J,{className:"px-1.5 py-1",children:h.label}),(0,t.jsx)(p.mY.List,{children:(0,t.jsx)(b.F,{currentPage:h,beforeSelect:k,afterSelect:w,pushPage:g})})]})})]})]})}function w(){let{dataState:e,offset:n,limit:s,datasetFilteredCount:l,pageCount:i}=(0,r.G)();return(0,t.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,t.jsx)(k,{}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)(a.uDJ,{isLoading:"loading"===e,offset:n,limit:s,datasetTotal:l,pageTotal:i})]})}var N=s(82851);function y(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(a.xvT,{children:(0,t.jsx)(d.uTh,{className:"scale-[200%]"})}),(0,t.jsx)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No data available."})]})}function C(){let{selectedContract:e,allContractsSpendingMetrics:n,selectedContractSpendingMetrics:s,contractSetCountMetrics:l,graphMode:i,setGraphMode:c}=(0,r.G)(),o=(0,t.jsxs)("div",{className:"flex gap-2",children:[!e&&(0,t.jsx)(a.zxk,{variant:"spending"===i?"accent":"gray",onClick:()=>c("spending"),children:"Funding & spending: All contracts"}),e&&(0,t.jsxs)(a.zxk,{variant:"spending"===i?"accent":"gray",onClick:()=>c("spending"),children:["Funding & spending: Contract"," ",(0,a.I13)(e.id).slice(0,6)]}),!e&&(0,t.jsx)(a.zxk,{variant:"count"===i?"accent":"gray",onClick:()=>c("count"),children:"Count"})]});return(0,t.jsxs)("div",{className:"w-full h-full",children:["spending"===i&&!e&&(0,t.jsx)(a.b0u,{id:"fundingAndSpending",height:"100%",data:n.data,config:n.config,isLoading:n.isLoading,actionsLeft:o,emptyState:(0,t.jsx)(y,{})}),"spending"===i&&e&&(0,t.jsx)(a.b0u,{id:"fundingAndSpending",height:"100%",data:s.data,config:s.config,isLoading:s.isLoading,actionsLeft:o,emptyState:(0,t.jsx)(y,{})}),"count"===i&&!e&&(0,t.jsx)(a.b0u,{id:"count",height:"100%",data:l.data,config:l.config,isLoading:l.isLoading,actionsLeft:o,emptyState:(0,t.jsx)(y,{})})]})}function _(){let{openDialog:e}=(0,c.Rh)(),{columns:n,datasetPage:s,sortField:d,sortDirection:h,sortableColumns:j,toggleSort:f,limit:p,dataState:v,cellContext:b,error:k,viewMode:y,filters:_,selectedContract:S}=(0,r.G)(),T="detail"===y&&(!_.length||S),z=T?s&&s.length?"".concat(400-Math.max((2-s.length)*100,0),"px"):"400px":"100%";return(0,t.jsx)(o.J,{title:"Active contracts",routes:i._,sidenav:(0,t.jsx)(l.e,{}),openSettings:()=>e("settings"),stats:(0,t.jsx)(w,{}),actions:(0,t.jsx)(g,{}),size:"full",scroll:!1,children:(0,t.jsxs)("div",{className:"relative flex flex-col overflow-hidden h-full w-full",children:[(0,t.jsx)("div",{className:(0,N.cx)("absolute w-full",T?"block":"invisible","transition-all","p-6"),style:{height:T?"calc(100% - ".concat(z,")"):0},children:T?(0,t.jsx)(C,{}):null}),(0,t.jsx)("div",{className:(0,N.cx)("absolute overflow-hidden transition-all w-full","duration-300","overflow-hidden"),style:{bottom:0,height:z},children:(0,t.jsx)(a.xrM,{className:"z-0",id:"scroll-hosts",children:(0,t.jsx)("div",{className:(0,N.cx)(T?"pb-6 px-6":"p-6","min-w-fit"),children:(0,t.jsx)(a.iA_,{context:b,isLoading:"loading"===v,emptyState:"noneMatchingFilters"===v?(0,t.jsx)(x,{}):"noneYet"===v?(0,t.jsx)(u,{}):"error"===v?(0,t.jsx)(m,{error:k}):null,sortableColumns:j,pageSize:p,data:s,columns:n,sortDirection:h,sortField:d,toggleSort:f,focusId:null==S?void 0:S.id,rowSize:"default"})})})})]})})}function S(){return(0,t.jsx)(_,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=77441)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/contracts-e97ddb031b3d9e19.js b/renterd/assets/_next/static/chunks/pages/contracts-e97ddb031b3d9e19.js deleted file mode 100644 index f13bc3dc2..000000000 --- a/renterd/assets/_next/static/chunks/pages/contracts-e97ddb031b3d9e19.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[348],{77441:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contracts",function(){return s(4197)}])},89630:function(e,n,s){"use strict";s.d(n,{J:function(){return h}});var t=s(52322),l=s(35701),i=s(9969),a=s(6391),c=s.n(a),r=s(71930),o=s(25573),d=s(86811);function x(){var e,n,s,a,c;let{openDialog:r}=(0,d.Rh)(),x=(0,i.d_)({config:{swr:{revalidateOnFocus:!1}}}),u=(0,i.X2)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,i.cQ)(),j=(0,o.n)(),f=null===(e=x.data)||void 0===e?void 0:e.version,g="?"===f?"https://github.com/SiaFoundation/renterd/commits/":(null==f?void 0:f.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(f):"https://github.com/SiaFoundation/renterd/tree/".concat(f);return(0,t.jsxs)(l.HfT,{name:"renterd",peerCount:null===(n=h.data)||void 0===n?void 0:n.length,connectPeer:()=>r("connectPeer"),isSynced:j.isSynced,syncPercent:j.syncPercent,nodeBlockHeight:j.nodeBlockHeight,estimatedBlockHeight:j.estimatedBlockHeight,firstTimeSyncing:j.firstTimeSyncing,moreThan100BlocksToSync:j.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(l.XxW,{size:"14",maxLength:50,value:null===(s=u.data)||void 0===s?void 0:s.address,type:"address"})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(l.xvT,{size:"14",children:null===(a=x.data)||void 0===a?void 0:a.network})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(l.rUS,{size:"14",href:g,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=x.data)||void 0===c?void 0:c.version})]})]})}function u(){let e=(0,i.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(l.t6k,{testnetName:e.data.network}):null}function h(e){let n=(0,i.X2)(),{isSynced:s}=(0,o.n)();return(0,t.jsx)(l.tU3,{appName:"renterd",profile:(0,t.jsx)(x,{}),banner:(0,t.jsx)(u,{}),connectivityRoute:r.h,isSynced:s,walletBalanceSc:n.data&&{spendable:new(c())(n.data.spendable),confirmed:new(c())(n.data.confirmed),unconfirmed:new(c())(n.data.unconfirmed)},...e})}},91930:function(e,n,s){"use strict";s.d(n,{e:function(){return d}});var t=s(52322),l=s(35701),i=s(88242),a=s(9969),c=s(82851),r=s(71930),o=s(86811);function d(){var e,n;let s=(0,a.Z7)(),{openDialog:d}=(0,o.Rh)(),x=!(null===(e=s.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(n=s.data)||void 0===n?void 0:n.length)||0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.KJW,{title:"Files",route:r._.files.index,children:(0,t.jsx)(i.ROc,{})}),(0,t.jsx)(l.KJW,{title:"Configuration",route:r._.config.index,children:(0,t.jsx)(i.wWN,{})}),(0,t.jsx)(l.KJW,{title:"Contracts",route:r._.contracts.index,children:(0,t.jsx)(i.VBo,{})}),(0,t.jsx)(l.KJW,{title:"Hosts",route:r._.hosts.index,children:(0,t.jsx)(i.VHe,{})}),(0,t.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,t.jsx)("div",{className:(0,c.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!u&&!x&&(0,t.jsx)(l.xvT,{size:"10",className:(0,c.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:u.toLocaleString()}),(0,t.jsx)(l.KJW,{title:"Alerts",onClick:()=>d("alerts"),children:(0,t.jsx)(i.Dkj,{})})]})]})}},4197:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return T}});var t=s(52322),l=s(91930),i=s(71930),a=s(35701),c=s(86811),r=s(26592),o=s(89630),d=s(88242);function x(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(a.xvT,{children:(0,t.jsx)(d.Hb6,{className:"scale-[200%]"})}),(0,t.jsx)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No active contracts matching filters."})]})}function u(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(a.xvT,{children:(0,t.jsx)(d.VBo,{className:"scale-[200%]"})}),(0,t.jsx)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"There are currently no active contracts. Configure autopilot or manually form contracts to get started."})]})}var h=s(56860),j=s(3440),f=s.n(j);function g(){let{configurableColumns:e,toggleColumnVisibility:n,resetDefaultColumnVisibility:s,setColumnsVisible:l,setColumnsHidden:i,sortField:c,setSortField:o,sortDirection:x,setSortDirection:u,enabledColumns:j}=(0,r.G)(),g=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),m=e.filter(e=>"time"===e.category).map(e=>({label:e.label,value:e.id})),p=e.filter(e=>"financial"===e.category).map(e=>({label:e.label,value:e.id}));return(0,t.jsxs)(a.J2e,{trigger:(0,t.jsxs)(a.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,t.jsx)(d.hiv,{}),"View",(0,t.jsx)(d.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,t.jsxs)(a.WVB,{children:[(0,t.jsx)(a.__J,{children:"Order by"}),(0,t.jsx)(a.kFS,{children:(0,t.jsx)(a.PhF,{value:c,onChange:e=>{o(e.currentTarget.value)},children:Object.entries(f()(h.Fo,"category")).map(e=>{let[n,s]=e;return(0,t.jsx)("optgroup",{label:n,children:s.map(e=>(0,t.jsx)(a.Wxm,{value:e.id,children:e.label},e.id))},n)})})})]}),(0,t.jsxs)(a.WVB,{children:[(0,t.jsx)(a.__J,{children:"Direction"}),(0,t.jsx)(a.kFS,{children:(0,t.jsxs)(a.PhF,{value:x,onClick:e=>{e.stopPropagation()},onChange:e=>{u(e.currentTarget.value)},children:[(0,t.jsx)(a.Wxm,{value:"desc",children:"descending"},"desc"),(0,t.jsx)(a.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,t.jsx)(a.Clw,{}),(0,t.jsxs)(a.WVB,{children:[(0,t.jsx)(a.__J,{children:"Display properties"}),(0,t.jsx)(a.kFS,{children:(0,t.jsx)(a.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),s()},children:(0,t.jsx)(d.Wet,{})})})]}),(0,t.jsx)(a.FzK,{label:"General",columns:g.map(e=>e.value),enabled:j,setColumnsVisible:l,setColumnsHidden:i}),(0,t.jsx)(a.WVB,{children:(0,t.jsx)(a.j4H,{options:g,values:j,onChange:e=>n(e)})}),(0,t.jsx)(a.FzK,{label:"Time",columns:m.map(e=>e.value),enabled:j,setColumnsVisible:l,setColumnsHidden:i}),(0,t.jsx)(a.WVB,{children:(0,t.jsx)(a.j4H,{options:m,values:j,onChange:e=>n(e)})}),(0,t.jsx)(a.FzK,{label:"Financial",columns:p.map(e=>e.value),enabled:j,setColumnsVisible:l,setColumnsHidden:i}),(0,t.jsx)(a.WVB,{children:(0,t.jsx)(a.j4H,{options:p,values:j,onChange:e=>n(e)})})]})}function m(){let{setViewMode:e}=(0,r.G)();return(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(a.zxk,{tip:"Toggle graphs",onClick:()=>e(e=>"detail"===e?"list":"detail"),children:(0,t.jsx)(d.oce,{})}),(0,t.jsx)(g,{})]})}function p(e){let{error:n}=e;return(null==n?void 0:n.message.startsWith("404"))?(0,t.jsx)(u,{}):(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(a.xvT,{children:(0,t.jsx)(d.Ckx,{className:"scale-[200%]"})}),(0,t.jsx)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching contracts."})]})}var v=s(99182),b=s(2784),k=s(93216);function w(){let{filters:e,removeFilter:n,removeLastFilter:s}=(0,r.G)(),[l,i]=(0,b.useState)(!1),[c,o]=(0,b.useState)(""),[x,u]=(0,b.useState)([]),h=x[x.length-1],j=(x.length,(0,b.useRef)(null)),f=(0,b.useRef)(null),g=(0,b.useCallback)(e=>{u(n=>[...n,e])},[u]),m=(0,b.useCallback)(()=>{u([])},[u]);(0,b.useEffect)(()=>{let e=e=>{j.current&&!j.current.contains(e.target)&&i(!1)};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}},[]);let p=(0,b.useCallback)(()=>{var e;null===(e=f.current)||void 0===e||e.focus()},[f]),w=(0,b.useCallback)(()=>{o(""),m()},[m]);return(0,t.jsxs)("div",{className:"flex gap-1",children:[e.map(e=>(0,t.jsxs)(a.eQh,{children:[(0,t.jsx)(a.zxk,{variant:"active",state:"waiting",children:e.label}),(0,t.jsx)(a.zxk,{variant:"active",size:"small",onClick:()=>n(e.id),children:(0,t.jsx)(d.PcV,{})})]},e.id)),(0,t.jsxs)(v.mY,{ref:j,label:"Command Menu",onFocus:()=>i(!0),onKeyDown:e=>{if(x.length>0)"Escape"!==e.key&&("Backspace"!==e.key||c)||(e.preventDefault(),u(e=>e.slice(0,-1)));else if(0===x.length&&("Backspace"!==e.key||c||s(),"Escape"===e.key&&!c)){var n;i(!1),null===(n=f.current)||void 0===n||n.blur()}},children:[(0,t.jsx)(v.mY.Input,{ref:f,value:c,onValueChange:o,className:(0,a.cEb)({variant:"ghost",focus:"none"}),placeholder:"Filter contracts"}),l&&(0,t.jsx)(a.s_4,{className:"absolute z-20 min-w-[200px] max-h-[400px] overflow-auto p-1",children:(0,t.jsxs)(a.xrM,{children:[h&&(0,t.jsx)(a.__J,{className:"px-1.5 py-1",children:h.label}),(0,t.jsx)(v.mY.List,{children:(0,t.jsx)(k.F,{currentPage:h,beforeSelect:p,afterSelect:w,pushPage:g})})]})})]})]})}function N(){let{dataState:e,offset:n,limit:s,datasetFilteredCount:l,pageCount:i}=(0,r.G)();return(0,t.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,t.jsx)(w,{}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)(a.uDJ,{isLoading:"loading"===e,offset:n,limit:s,datasetTotal:l,pageTotal:i})]})}var y=s(82851);function C(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(a.xvT,{children:(0,t.jsx)(d.uTh,{className:"scale-[200%]"})}),(0,t.jsx)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No data available."})]})}function _(){let{selectedContract:e,allContractsSpendingMetrics:n,selectedContractSpendingMetrics:s,contractSetCountMetrics:l,graphMode:i,setGraphMode:c}=(0,r.G)(),o=(0,t.jsxs)("div",{className:"flex gap-2",children:[!e&&(0,t.jsx)(a.zxk,{variant:"spending"===i?"accent":"gray",onClick:()=>c("spending"),children:"Funding & spending: All contracts"}),e&&(0,t.jsxs)(a.zxk,{variant:"spending"===i?"accent":"gray",onClick:()=>c("spending"),children:["Funding & spending: Contract"," ",(0,a.I13)(e.id).slice(0,6)]}),!e&&(0,t.jsx)(a.zxk,{variant:"count"===i?"accent":"gray",onClick:()=>c("count"),children:"Count"})]});return(0,t.jsxs)("div",{className:"w-full h-full",children:["spending"===i&&!e&&(0,t.jsx)(a.b0u,{id:"fundingAndSpending",height:"100%",data:n.data,config:n.config,isLoading:n.isLoading,actionsLeft:o,emptyState:(0,t.jsx)(C,{})}),"spending"===i&&e&&(0,t.jsx)(a.b0u,{id:"fundingAndSpending",height:"100%",data:s.data,config:s.config,isLoading:s.isLoading,actionsLeft:o,emptyState:(0,t.jsx)(C,{})}),"count"===i&&!e&&(0,t.jsx)(a.b0u,{id:"count",height:"100%",data:l.data,config:l.config,isLoading:l.isLoading,actionsLeft:o,emptyState:(0,t.jsx)(C,{})})]})}function S(){let{openDialog:e}=(0,c.Rh)(),{columns:n,datasetPage:s,sortField:d,sortDirection:h,sortableColumns:j,toggleSort:f,limit:g,dataState:v,cellContext:b,error:k,viewMode:w,filters:C,selectedContract:S}=(0,r.G)(),T="detail"===w&&(!C.length||S),z=T?s&&s.length?"".concat(400-Math.max((2-s.length)*100,0),"px"):"400px":"100%";return(0,t.jsx)(o.J,{title:"Active contracts",routes:i._,sidenav:(0,t.jsx)(l.e,{}),openSettings:()=>e("settings"),stats:(0,t.jsx)(N,{}),actions:(0,t.jsx)(m,{}),size:"full",scroll:!1,children:(0,t.jsxs)("div",{className:"relative flex flex-col overflow-hidden h-full w-full",children:[(0,t.jsx)("div",{className:(0,y.cx)("absolute w-full",T?"block":"invisible","transition-all","p-6"),style:{height:T?"calc(100% - ".concat(z,")"):0},children:T?(0,t.jsx)(_,{}):null}),(0,t.jsx)("div",{className:(0,y.cx)("absolute overflow-hidden transition-all w-full","duration-300","overflow-hidden"),style:{bottom:0,height:z},children:(0,t.jsx)(a.xrM,{className:"z-0",id:"scroll-hosts",children:(0,t.jsx)("div",{className:(0,y.cx)(T?"pb-6 px-6":"p-6","min-w-fit"),children:(0,t.jsx)(a.iA_,{context:b,isLoading:"loading"===v,emptyState:"noneMatchingFilters"===v?(0,t.jsx)(x,{}):"noneYet"===v?(0,t.jsx)(u,{}):"error"===v?(0,t.jsx)(p,{error:k}):null,sortableColumns:j,pageSize:g,data:s,columns:n,sortDirection:h,sortField:d,toggleSort:f,focusId:null==S?void 0:S.id,rowSize:"default"})})})})]})})}function T(){return(0,t.jsx)(S,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=77441)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/files/[[...path]]-06b90ae12e391ecf.js b/renterd/assets/_next/static/chunks/pages/files/[[...path]]-06b90ae12e391ecf.js deleted file mode 100644 index 4b1790861..000000000 --- a/renterd/assets/_next/static/chunks/pages/files/[[...path]]-06b90ae12e391ecf.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[958],{38345:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/files/[[...path]]",function(){return t(8715)}])},89630:function(e,s,t){"use strict";t.d(s,{J:function(){return h}});var l=t(52322),n=t(35701),i=t(9969),a=t(6391),r=t.n(a),c=t(71930),o=t(25573),d=t(86811);function x(){var e,s,t,a,r;let{openDialog:c}=(0,d.Rh)(),x=(0,i.d_)({config:{swr:{revalidateOnFocus:!1}}}),u=(0,i.X2)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,i.cQ)(),f=(0,o.n)(),j=null===(e=x.data)||void 0===e?void 0:e.version,v="?"===j?"https://github.com/SiaFoundation/renterd/commits/":(null==j?void 0:j.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(j):"https://github.com/SiaFoundation/renterd/tree/".concat(j);return(0,l.jsxs)(n.HfT,{name:"renterd",peerCount:null===(s=h.data)||void 0===s?void 0:s.length,connectPeer:()=>c("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.moreThan100BlocksToSync,children:[(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(n.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,l.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,l.jsx)(n.XxW,{size:"14",maxLength:50,value:null===(t=u.data)||void 0===t?void 0:t.address,type:"address"})})]}),(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(n.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,l.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,l.jsx)(n.xvT,{size:"14",children:null===(a=x.data)||void 0===a?void 0:a.network})})]}),(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(n.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,l.jsx)(n.rUS,{size:"14",href:v,underline:"hover",target:"_blank",ellipsis:!0,children:null===(r=x.data)||void 0===r?void 0:r.version})]})]})}function u(){let e=(0,i.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,l.jsx)(n.t6k,{testnetName:e.data.network}):null}function h(e){let s=(0,i.X2)(),{isSynced:t}=(0,o.n)();return(0,l.jsx)(n.tU3,{appName:"renterd",profile:(0,l.jsx)(x,{}),banner:(0,l.jsx)(u,{}),connectivityRoute:c.h,isSynced:t,walletBalanceSc:s.data&&{spendable:new(r())(s.data.spendable),confirmed:new(r())(s.data.confirmed),unconfirmed:new(r())(s.data.unconfirmed)},...e})}},91930:function(e,s,t){"use strict";t.d(s,{e:function(){return d}});var l=t(52322),n=t(35701),i=t(88242),a=t(9969),r=t(82851),c=t(71930),o=t(86811);function d(){var e,s;let t=(0,a.Z7)(),{openDialog:d}=(0,o.Rh)(),x=!(null===(e=t.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(s=t.data)||void 0===s?void 0:s.length)||0;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n.KJW,{title:"Files",route:c._.files.index,children:(0,l.jsx)(i.ROc,{})}),(0,l.jsx)(n.KJW,{title:"Configuration",route:c._.config.index,children:(0,l.jsx)(i.wWN,{})}),(0,l.jsx)(n.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,l.jsx)(i.VBo,{})}),(0,l.jsx)(n.KJW,{title:"Hosts",route:c._.hosts.index,children:(0,l.jsx)(i.VHe,{})}),(0,l.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,l.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!u&&!x&&(0,l.jsx)(n.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:u.toLocaleString()}),(0,l.jsx)(n.KJW,{title:"Alerts",onClick:()=>d("alerts"),children:(0,l.jsx)(i.Dkj,{})})]})]})}},8715:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return q}});var l=t(52322),n=t(91930),i=t(71930),a=t(86811),r=t(35701),c=t(48528),o=t(88242),d=t(9969),x=t(91641);function u(){let{autopilot:e}=(0,x.q)(),s=(0,d.e$)({config:{swr:{errorRetryCount:0}}});return{active:"on"===e.status&&!!s.error}}var h=t(4370);function f(){return(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,l.jsx)(r.xvT,{children:(0,l.jsx)(o.Ckx,{className:"scale-[200%]"})}),(0,l.jsx)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching files."})]})}function j(){let{filters:e,resetFilters:s}=(0,c.Y)();return(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,l.jsx)(r.xvT,{children:(0,l.jsx)(o.Hb6,{className:"scale-[200%]"})}),(0,l.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,l.jsx)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No files matching filters."}),!!e.length&&(0,l.jsx)(r.zxk,{onClick:e=>{e.stopPropagation(),s()},children:"Clear filters"})]})]})}function v(){let{activeBucket:e}=(0,c.Y)();return(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,l.jsx)(r.xvT,{children:(0,l.jsx)(o.Y9T,{className:"scale-[200%]"})}),(0,l.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,l.jsxs)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["The ",(0,l.jsx)(r.EKh,{children:e})," bucket does not contain any files, drag and drop files or click here to start uploading."]}),(0,l.jsx)(r.Qjf,{href:i._.files.index,onClick:e=>{e.stopPropagation()},children:"View buckets list"})]})]})}function m(){let{dataState:e,isViewingRootOfABucket:s}=(0,c.Y)(),t=u(),n=(0,h.F)();return"noneMatchingFilters"===e?(0,l.jsx)(j,{}):"error"===e?(0,l.jsx)(f,{}):s&&"noneYet"===e&&t.active?(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,l.jsx)(r.xvT,{children:(0,l.jsx)(o.Y9T,{className:"scale-[200%]"})}),(0,l.jsxs)("div",{className:"flex flex-col gap-6 justify-center items-center",children:[(0,l.jsxs)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["Before you can upload files you must configure your settings. Once configured, ",(0,l.jsx)(r.EKh,{children:"renterd"})," will find contracts with hosts based on the settings you choose. ",(0,l.jsx)(r.EKh,{children:"renterd"})," will also repair your data as hosts come and go."]}),(0,l.jsx)(r.Qjf,{variant:"accent",href:i._.config.index,children:"Configure"})]})]}):s&&"noneYet"===e&&n.active?(0,l.jsxs)("div",{className:"flex flex-col gap-12 justify-center items-center h-[400px] cursor-pointer",children:[(0,l.jsx)(r.xvT,{children:(0,l.jsx)(o.Y9T,{className:"scale-[200%]"})}),(0,l.jsxs)("div",{className:"flex flex-col gap-4 justify-center items-center",children:[(0,l.jsxs)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["There are not enough contracts to upload data yet. Redundancy is configured to use ",n.required," shards which means at least that many contracts are required."]}),(0,l.jsxs)(r.xvT,{size:"30",className:"text-center max-w-[500px]",children:[n.count,"/",n.required]})]})]}):"noneYet"===e?(0,l.jsx)(v,{}):null}var g=t(25573);function p(){let{isViewingABucket:e}=(0,c.Y)(),s=(0,g.n)(),t=u(),l=(0,h.F)();return e&&!t.active&&!l.active&&s.isSynced}function b(){let{uploadFiles:e,datasetPage:s,pageCount:t,dataState:n,columns:i,sortField:a,sortDirection:o,sortableColumns:d,toggleSort:x}=(0,c.Y)(),u=p();return(0,l.jsx)("div",{className:"relative",children:(0,l.jsx)(r.fhJ,{onDrop:e,noClick:!u||t>0,noDrag:!u,children:(0,l.jsx)(r.iA_,{isLoading:"loading"===n,emptyState:(0,l.jsx)(m,{}),pageSize:10,data:s,columns:i,sortableColumns:d,sortField:a,sortDirection:o,toggleSort:x,rowSize:"dense"})})})}var N=t(2784);function w(){let{activeDirectory:e,setActiveDirectory:s}=(0,c.Y)(),t=(0,N.useRef)(null);return(0,N.useEffect)(()=>{let e=setTimeout(()=>{var e;null===(e=t.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})},100);return()=>{clearTimeout(e)}},[e]),(0,l.jsx)(r.xrM,{children:(0,l.jsxs)("div",{className:"flex gap-1 items-center h-full",children:[(0,l.jsx)(r.xvT,{onClick:()=>s(()=>[]),size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:"Files"}),e.length>0&&(0,l.jsx)(r.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,l.jsx)(o.F3j,{})}),e.map((e,t)=>(0,l.jsxs)(N.Fragment,{children:[t>0&&(0,l.jsx)(r.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,l.jsx)(o.F3j,{})}),(0,l.jsx)(r.xvT,{onClick:()=>s(e=>e.slice(0,t+1)),size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:e})]},e+t)),(0,l.jsx)("div",{ref:t})]})})}var y=t(89630),T=t(74424),z=t(81471),k=t(3440),S=t.n(k);function F(){let{configurableColumns:e,toggleColumnVisibility:s,resetDefaultColumnVisibility:t,sortField:n,setSortField:i,sortDirection:a,setSortDirection:d,enabledColumns:x}=(0,c.Y)();return(0,l.jsxs)(r.J2e,{trigger:(0,l.jsxs)(r.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,l.jsx)(o.hiv,{}),"View",(0,l.jsx)(o.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,l.jsxs)(r.WVB,{children:[(0,l.jsx)(r.__J,{children:"Order by"}),(0,l.jsx)(r.kFS,{children:(0,l.jsx)(r.PhF,{value:n,onChange:e=>{i(e.currentTarget.value)},children:Object.entries(S()(z.Fo,"category")).map(e=>{let[s,t]=e;return(0,l.jsx)("optgroup",{label:s,children:t.map(e=>(0,l.jsx)(r.Wxm,{value:e.id,children:e.label},e.id))},s)})})})]}),(0,l.jsxs)(r.WVB,{children:[(0,l.jsx)(r.__J,{children:"Direction"}),(0,l.jsx)(r.kFS,{children:(0,l.jsxs)(r.PhF,{value:a,onClick:e=>{e.stopPropagation()},onChange:e=>{d(e.currentTarget.value)},children:[(0,l.jsx)(r.Wxm,{value:"desc",children:"descending"},"desc"),(0,l.jsx)(r.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,l.jsx)(r.Clw,{}),(0,l.jsxs)(r.WVB,{children:[(0,l.jsx)(r.__J,{children:"Display properties"}),(0,l.jsx)(r.kFS,{children:(0,l.jsx)(r.zxk,{onClick:e=>{e.stopPropagation(),t()},children:"Reset default"})})]}),(0,l.jsx)(r.WVB,{children:(0,l.jsx)(r.j4H,{options:e.map(e=>({label:e.label,value:e.id})),values:x,onChange:e=>s(e)})})]})}function C(){let{openDialog:e}=(0,a.Rh)(),{uploadFiles:s,isViewingBuckets:t}=(0,c.Y)(),n=p(),{getRootProps:i,getInputProps:d}=(0,T.uI)({noDrag:!0,noClick:!n,onDrop:s});return(0,l.jsxs)("div",{className:"flex gap-2",children:[t?(0,l.jsxs)(r.zxk,{onClick:()=>e("filesCreateBucket"),tip:"Create bucket",children:[(0,l.jsx)(o.aXP,{}),"Create bucket"]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.zxk,{onClick:()=>e("filesSearch"),tip:"Search files",children:(0,l.jsx)(o.UBs,{})}),(0,l.jsxs)(r.zxk,{...i(),tip:"Upload files",disabled:!n,children:[(0,l.jsx)("input",{...d()}),(0,l.jsx)(o.bQp,{})]}),(0,l.jsx)(r.zxk,{disabled:!n,onClick:()=>e("filesCreateDirectory"),tip:"Create directory",children:(0,l.jsx)(o.L37,{})})]}),(0,l.jsx)(F,{})]})}var _=t(25205);function O(){let e=(0,d.Q5)({config:{swr:{refreshInterval:6e4,keepPreviousData:!0,revalidateOnFocus:!1}}});if(!e.data&&e.isValidating)return(0,l.jsx)(r.xgg,{className:"pr-1"});if(!e.data)return null;let s=e.data.totalObjectsSize?e.data.totalSectorsSize/e.data.totalObjectsSize:0;return(0,l.jsx)(r.ua7,{side:"bottom",content:(0,l.jsxs)(r.xvT,{className:"flex justify-between gap-6",children:[(0,l.jsxs)(r.xvT,{className:"flex flex-col gap-1",children:[(0,l.jsx)(r.xvT,{size:"12",color:"subtle",children:"size of all files"}),(0,l.jsx)(r.xvT,{size:"12",color:"subtle",children:"with redundancy"}),!!s&&(0,l.jsx)(r.xvT,{size:"12",color:"subtle",children:"average redundancy factor"}),(0,l.jsx)(r.Z0O,{className:"w-full my-1"}),(0,l.jsx)(r.xvT,{size:"12",color:"subtle",children:"reclaimable space"}),(0,l.jsx)(r.xvT,{size:"12",color:"subtle",children:"total storage utilization"})]}),(0,l.jsxs)(r.xvT,{className:"flex flex-col gap-1 items-end",children:[(0,l.jsx)(r.xvT,{size:"12",children:(0,_.vW)(e.data.totalObjectsSize)}),(0,l.jsx)(r.xvT,{size:"12",children:(0,_.vW)(e.data.totalSectorsSize)}),!!s&&(0,l.jsxs)(r.xvT,{size:"12",font:"mono",children:[s.toFixed(1),"x"]}),(0,l.jsx)(r.Z0O,{className:"w-full my-1"}),(0,l.jsx)(r.xvT,{size:"12",children:(0,_.vW)(e.data.totalUploadedSize-e.data.totalSectorsSize)}),(0,l.jsx)(r.xvT,{size:"12",children:(0,_.vW)(e.data.totalUploadedSize)})]})]}),children:(0,l.jsx)(r.xvT,{size:"12",font:"mono",children:"".concat((0,_.vW)(e.data.totalObjectsSize)).concat(s?" @ ".concat(s.toFixed(1),"x"):"")})})}var W=t(82439);function P(){var e;let s=(0,d.Q5)({config:{swr:{refreshInterval:6e4,keepPreviousData:!0,revalidateOnFocus:!1}}}),{displayHealth:t,label:n}=(0,W.B)({health:null===(e=s.data)||void 0===e?void 0:e.minHealth,size:1,isDirectory:!0});return s.data?(0,l.jsx)(r.ua7,{align:"end",content:(0,l.jsxs)("div",{className:"flex flex-col overflow-hidden mb-1",children:[(0,l.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,l.jsx)(r.xvT,{size:"12",children:n}),(0,l.jsxs)(r.xvT,{size:"12",children:[(100*t).toFixed(0),"%"]})]}),(0,l.jsx)(r.Z0O,{className:"w-full my-1.5"}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)(r.xvT,{size:"12",color:"subtle",children:"Health is calculated as the minimum health value from across all file slabs. For directories this is across all contained files."}),(0,l.jsx)(r.xvT,{size:"12",color:"subtle",children:"Slab health is calculated as the number of shards with active contracts in the autopilot contract set above the minimum required shards and expressed as a percentage."})]}),(0,l.jsx)(r.Z0O,{className:"w-full my-1.5"}),(0,l.jsxs)("div",{className:"flex gap-3 justify-between",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)(r.xvT,{size:"12",color:"subtle",children:"excellent health"}),(0,l.jsx)(r.xvT,{size:"12",color:"subtle",children:"good health"}),(0,l.jsx)(r.xvT,{size:"12",color:"subtle",children:"poor health"})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-1 items-end",children:[(0,l.jsxs)(r.xvT,{size:"12",color:"subtle",children:[100*W.V.excellent,"%"]}),(0,l.jsxs)(r.xvT,{size:"12",color:"subtle",children:[100*W.V.good,"% -"," ",100*W.V.excellent,"%"]}),(0,l.jsxs)(r.xvT,{size:"12",color:"subtle",children:[100*W.V.poor,"% - ",100*W.V.good,"%"]})]})]})]}),children:(0,l.jsx)(r.xvT,{size:"12",font:"mono",className:"flex",children:n})}):null}var V=t(80489);function B(){let e=(0,g.n)(),s=function(){let{autopilot:e}=(0,x.q)(),s=function(){var e,s;let{autopilot:t}=(0,x.q)(),l=(0,d.e$)({disabled:"on"!==t.status}),n=(0,V.a)();return{isValidating:l.isValidating||n.isValidating,data:(null===(e=l.data)||void 0===e?void 0:e.contracts.set)===(null===(s=n.data)||void 0===s?void 0:s.default)}}(),t="on"===e.status&&!s.isValidating&&!s.data;return{active:t}}(),t=u(),n=(0,h.F)(),i=(0,N.useMemo)(()=>e.isSynced?null:(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)(r.xvT,{size:"12",font:"mono",weight:"medium",color:"amber",children:"Uploads are disabled until renterd is synced."}),(0,l.jsx)(r.nvN,{size:"12",children:"The blockchain must be fully synced before uploading files. This can take a while depending on your hardware and network connection."})]}),[e.isSynced]),a=(0,N.useMemo)(()=>t.active?(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)(r.xvT,{size:"12",font:"mono",weight:"medium",color:"amber",children:"Uploads are disabled until settings are configured."}),(0,l.jsxs)(r.nvN,{size:"12",children:["Before you can upload files you must configure your settings. Once configured, ",(0,l.jsx)(r.EKh,{children:"renterd"})," will find contracts with hosts based on the settings you choose. ",(0,l.jsx)(r.EKh,{children:"renterd"})," will also repair your data as hosts come and go."]})]}):null,[t.active]),c=(0,N.useMemo)(()=>n.active?(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)(r.xvT,{size:"12",font:"mono",weight:"medium",color:"amber",children:"Uploads are disabled until settings are configured."}),(0,l.jsxs)(r.nvN,{size:"12",children:["There are not enough contracts to upload data yet. Redundancy is configured to use ",n.required," shards which means at least that many contracts are required."]})]}):null,[n]),f=(0,N.useMemo)(()=>s.active?(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)(r.xvT,{size:"12",font:"mono",weight:"medium",color:"amber",children:"Uploaded data will not be managed by autopilot."}),(0,l.jsx)(r.nvN,{size:"12",children:"The autopilot contract set does not match the default contract set. This means that by default workers will not upload data to contracts that autopilot manages. Unless these contract are being manually maintained, this will result in data loss. Continue with caution or update the autopilot contract set to match the default contract set."})]}):null,[s.active]),j=(0,N.useMemo)(()=>[i,a,c,f].filter(Boolean),[i,a,c,f]);if(j.length)return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.J2e,{trigger:(0,l.jsx)(r.zxk,{variant:"ghost",icon:"contrast",color:"amber",children:(0,l.jsx)(o.qdM,{})}),children:(0,l.jsx)("div",{className:"flex flex-col gap-3 px-1 py-2",children:j})}),(0,l.jsx)(r.Z0O,{variant:"vertical",className:"h-full"})]})}function Y(){var e,s;let{isViewingABucket:t,pageCount:n}=(0,c.Y)(),i=(0,d.Q5)({config:{swr:{refreshInterval:6e4,keepPreviousData:!0,revalidateOnFocus:!1}}});return t?(0,l.jsx)(r.ua7,{side:"bottom",content:"Number of files in current directory",children:(0,l.jsxs)(r.xvT,{size:"12",font:"mono",children:[n.toLocaleString(),i.data?" of ".concat(null===(s=i.data)||void 0===s?void 0:s.numObjects.toLocaleString()," files"):" files"]})}):(0,l.jsx)(r.ua7,{side:"bottom",content:"Number of files across all buckets",children:i.data?(0,l.jsxs)(r.xvT,{size:"12",font:"mono",children:[null===(e=i.data)||void 0===e?void 0:e.numObjects.toLocaleString()," files"]}):(0,l.jsx)(r.xgg,{})})}var J=t(94225);function E(){let{filters:e,setFilter:s,removeFilter:t}=(0,c.Y)(),[n,i]=(0,N.useState)(""),[a]=(0,J.Nr)(n,500);return(0,N.useEffect)(()=>{let s=e.find(e=>"fileNamePrefix"===e.id),t=(null==s?void 0:s.value)||"";t!==n&&i(t)},[i,e]),(0,N.useEffect)(()=>{a.length?s({id:"fileNamePrefix",label:"",value:a}):t("fileNamePrefix")},[a]),(0,l.jsxs)("div",{className:"flex gap-1 flex-1",children:[(0,l.jsx)(r.nvn,{variant:"ghost",focus:"none",placeholder:"Filter files in current directory",value:n,onChange:e=>i(e.currentTarget.value),className:"w-full !pl-0"}),!!n.length&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.zxk,{variant:"ghost",onClick:()=>i(""),children:(0,l.jsx)(o.PcV,{})}),(0,l.jsx)(r.Z0O,{variant:"vertical",className:"h-full"})]})]})}function D(){let{limit:e,offset:s,pageCount:t,dataState:n,isViewingABucket:i,isViewingBuckets:a}=(0,c.Y)();return(0,l.jsxs)("div",{className:"flex gap-3 w-full",children:[a?(0,l.jsx)("div",{className:"flex-1"}):(0,l.jsx)(E,{}),(0,l.jsxs)("div",{className:"flex gap-3 items-center",children:[(0,l.jsx)(B,{}),(0,l.jsxs)("div",{className:"flex gap-3",children:[(0,l.jsx)(r.ua7,{side:"bottom",content:"Filtered statistics",children:(0,l.jsx)(r.xvT,{size:"12",color:"verySubtle",children:(0,l.jsx)(o.q0D,{})})}),(0,l.jsx)(Y,{})]}),(0,l.jsx)(r.Z0O,{variant:"vertical",className:"h-full"}),(0,l.jsxs)("div",{className:"flex gap-3",children:[(0,l.jsx)(r.ua7,{side:"bottom",content:"Global statistics",children:(0,l.jsx)(r.xvT,{size:"12",color:"verySubtle",children:(0,l.jsx)(o.RFr,{})})}),(0,l.jsx)(O,{}),(0,l.jsx)(P,{})]})]}),i&&(0,l.jsx)(r.wFK,{offset:s,limit:e,pageTotal:t,isLoading:"loading"===n})]})}function R(){let{openDialog:e}=(0,a.Rh)();return(0,l.jsx)(y.J,{title:"Files",navTitle:null,routes:i._,sidenav:(0,l.jsx)(n.e,{}),nav:(0,l.jsx)(w,{}),stats:(0,l.jsx)(D,{}),actions:(0,l.jsx)(C,{}),openSettings:()=>e("settings"),children:(0,l.jsx)("div",{className:"p-6 min-w-fit",children:(0,l.jsx)(b,{})})})}function q(){return(0,l.jsx)(R,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=38345)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/files/[[...path]]-315a5fca3eeaf377.js b/renterd/assets/_next/static/chunks/pages/files/[[...path]]-315a5fca3eeaf377.js new file mode 100644 index 000000000..e934e33fc --- /dev/null +++ b/renterd/assets/_next/static/chunks/pages/files/[[...path]]-315a5fca3eeaf377.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[958],{38345:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/files/[[...path]]",function(){return t(8715)}])},89630:function(e,s,t){"use strict";t.d(s,{J:function(){return h}});var l=t(52322),n=t(57362),i=t(9969),a=t(6391),r=t.n(a),c=t(71930),o=t(25573),d=t(86811);function x(){var e,s,t,a,r;let{openDialog:c}=(0,d.Rh)(),x=(0,i.d_)({config:{swr:{revalidateOnFocus:!1}}}),u=(0,i.X2)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,i.cQ)(),f=(0,o.n)(),j=null===(e=x.data)||void 0===e?void 0:e.version,v="?"===j?"https://github.com/SiaFoundation/renterd/commits/":(null==j?void 0:j.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(j):"https://github.com/SiaFoundation/renterd/tree/".concat(j);return(0,l.jsxs)(n.HfT,{name:"renterd",peerCount:null===(s=h.data)||void 0===s?void 0:s.length,connectPeer:()=>c("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.moreThan100BlocksToSync,children:[(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(n.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,l.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,l.jsx)(n.XxW,{size:"14",maxLength:50,value:null===(t=u.data)||void 0===t?void 0:t.address,type:"address"})})]}),(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(n.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,l.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,l.jsx)(n.xvT,{size:"14",children:null===(a=x.data)||void 0===a?void 0:a.network})})]}),(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(n.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,l.jsx)(n.rUS,{size:"14",href:v,underline:"hover",target:"_blank",ellipsis:!0,children:null===(r=x.data)||void 0===r?void 0:r.version})]})]})}function u(){let e=(0,i.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,l.jsx)(n.t6k,{testnetName:e.data.network}):null}function h(e){let s=(0,i.X2)(),{isSynced:t}=(0,o.n)();return(0,l.jsx)(n.tU3,{appName:"renterd",profile:(0,l.jsx)(x,{}),banner:(0,l.jsx)(u,{}),connectivityRoute:c.h,isSynced:t,walletBalanceSc:s.data&&{spendable:new(r())(s.data.spendable),confirmed:new(r())(s.data.confirmed),unconfirmed:new(r())(s.data.unconfirmed)},...e})}},91930:function(e,s,t){"use strict";t.d(s,{e:function(){return d}});var l=t(52322),n=t(57362),i=t(88242),a=t(9969),r=t(82851),c=t(71930),o=t(86811);function d(){var e,s;let t=(0,a.Z7)(),{openDialog:d}=(0,o.Rh)(),x=!(null===(e=t.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(s=t.data)||void 0===s?void 0:s.length)||0;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n.KJW,{title:"Files",route:c._.files.index,children:(0,l.jsx)(i.ROc,{})}),(0,l.jsx)(n.KJW,{title:"Configuration",route:c._.config.index,children:(0,l.jsx)(i.wWN,{})}),(0,l.jsx)(n.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,l.jsx)(i.VBo,{})}),(0,l.jsx)(n.KJW,{title:"Hosts",route:c._.hosts.index,children:(0,l.jsx)(i.VHe,{})}),(0,l.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,l.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!u&&!x&&(0,l.jsx)(n.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:u.toLocaleString()}),(0,l.jsx)(n.KJW,{title:"Alerts",onClick:()=>d("alerts"),children:(0,l.jsx)(i.Dkj,{})})]})]})}},8715:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return U}});var l=t(52322),n=t(91930),i=t(71930),a=t(86811),r=t(57362),c=t(48528),o=t(88242),d=t(9969),x=t(91641);function u(){let{autopilot:e}=(0,x.q)(),s=(0,d.e$)({config:{swr:{errorRetryCount:0}}});return{active:"on"===e.status&&!!s.error}}var h=t(4370);function f(){return(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,l.jsx)(r.xvT,{children:(0,l.jsx)(o.Ckx,{className:"scale-[200%]"})}),(0,l.jsx)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching files."})]})}function j(){let{filters:e,resetFilters:s}=(0,c.Y)();return(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,l.jsx)(r.xvT,{children:(0,l.jsx)(o.Hb6,{className:"scale-[200%]"})}),(0,l.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,l.jsx)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No files matching filters."}),!!e.length&&(0,l.jsx)(r.zxk,{onClick:e=>{e.stopPropagation(),s()},children:"Clear filters"})]})]})}function v(){let{activeBucket:e}=(0,c.Y)();return(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,l.jsx)(r.xvT,{children:(0,l.jsx)(o.Y9T,{className:"scale-[200%]"})}),(0,l.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,l.jsxs)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["The ",(0,l.jsx)(r.EKh,{children:e})," bucket does not contain any files, drag and drop files or click here to start uploading."]}),(0,l.jsx)(r.Qjf,{href:i._.files.index,onClick:e=>{e.stopPropagation()},children:"View buckets list"})]})]})}function m(){let{dataState:e,isViewingRootOfABucket:s}=(0,c.Y)(),t=u(),n=(0,h.F)();return"noneMatchingFilters"===e?(0,l.jsx)(j,{}):"error"===e?(0,l.jsx)(f,{}):s&&"noneYet"===e&&t.active?(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,l.jsx)(r.xvT,{children:(0,l.jsx)(o.Y9T,{className:"scale-[200%]"})}),(0,l.jsxs)("div",{className:"flex flex-col gap-6 justify-center items-center",children:[(0,l.jsxs)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["Before you can upload files you must configure your settings. Once configured, ",(0,l.jsx)(r.EKh,{children:"renterd"})," will find contracts with hosts based on the settings you choose. ",(0,l.jsx)(r.EKh,{children:"renterd"})," will also repair your data as hosts come and go."]}),(0,l.jsx)(r.Qjf,{variant:"accent",href:i._.config.index,children:"Configure"})]})]}):s&&"noneYet"===e&&n.active?(0,l.jsxs)("div",{className:"flex flex-col gap-12 justify-center items-center h-[400px] cursor-pointer",children:[(0,l.jsx)(r.xvT,{children:(0,l.jsx)(o.Y9T,{className:"scale-[200%]"})}),(0,l.jsxs)("div",{className:"flex flex-col gap-4 justify-center items-center",children:[(0,l.jsxs)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["There are not enough contracts to upload data yet. Redundancy is configured to use ",n.required," shards which means at least that many contracts are required."]}),(0,l.jsxs)(r.xvT,{size:"30",className:"text-center max-w-[500px]",children:[n.count,"/",n.required]})]})]}):"noneYet"===e?(0,l.jsx)(v,{}):null}var g=t(25573);function p(){let{isViewingABucket:e}=(0,c.Y)(),s=(0,g.n)(),t=u(),l=(0,h.F)();return e&&!t.active&&!l.active&&s.isSynced}function b(){let{uploadFiles:e,datasetPage:s,pageCount:t,dataState:n,columns:i,sortField:a,sortDirection:o,sortableColumns:d,toggleSort:x}=(0,c.Y)(),u=p();return(0,l.jsx)("div",{className:"relative",children:(0,l.jsx)(r.fhJ,{onDrop:e,noClick:!u||t>0,noDrag:!u,children:(0,l.jsx)(r.iA_,{isLoading:"loading"===n,emptyState:(0,l.jsx)(m,{}),pageSize:10,data:s,columns:i,sortableColumns:d,sortField:a,sortDirection:o,toggleSort:x,rowSize:"dense"})})})}var N=t(2784);function w(){let{activeDirectory:e,setActiveDirectory:s}=(0,c.Y)(),t=(0,N.useRef)(null);return(0,N.useEffect)(()=>{let e=setTimeout(()=>{var e;null===(e=t.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})},100);return()=>{clearTimeout(e)}},[e]),(0,l.jsx)(r.xrM,{children:(0,l.jsxs)("div",{className:"flex gap-1 items-center h-full",children:[(0,l.jsx)(r.xvT,{onClick:()=>s(()=>[]),size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:"Files"}),e.length>0&&(0,l.jsx)(r.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,l.jsx)(o.F3j,{})}),e.map((e,t)=>(0,l.jsxs)(N.Fragment,{children:[t>0&&(0,l.jsx)(r.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,l.jsx)(o.F3j,{})}),(0,l.jsx)(r.xvT,{onClick:()=>s(e=>e.slice(0,t+1)),size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:e})]},e+t)),(0,l.jsx)("div",{ref:t})]})})}var y=t(89630),T=t(74424),z=t(81471),k=t(52058);function S(){let{configurableColumns:e,toggleColumnVisibility:s,resetDefaultColumnVisibility:t,sortField:n,setSortField:i,sortDirection:a,setSortDirection:d,enabledColumns:x}=(0,c.Y)();return(0,l.jsxs)(r.J2e,{trigger:(0,l.jsxs)(r.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,l.jsx)(o.hiv,{}),"View",(0,l.jsx)(o.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,l.jsxs)(r.WVB,{children:[(0,l.jsx)(r.__J,{children:"Order by"}),(0,l.jsx)(r.kFS,{children:(0,l.jsx)(r.PhF,{value:n,onChange:e=>{i(e.currentTarget.value)},children:Object.entries((0,k.Z)(z.Fo,"category")).map(e=>{let[s,t]=e;return(0,l.jsx)("optgroup",{label:s,children:t.map(e=>(0,l.jsx)(r.Wxm,{value:e.id,children:e.label},e.id))},s)})})})]}),(0,l.jsxs)(r.WVB,{children:[(0,l.jsx)(r.__J,{children:"Direction"}),(0,l.jsx)(r.kFS,{children:(0,l.jsxs)(r.PhF,{value:a,onClick:e=>{e.stopPropagation()},onChange:e=>{d(e.currentTarget.value)},children:[(0,l.jsx)(r.Wxm,{value:"desc",children:"descending"},"desc"),(0,l.jsx)(r.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,l.jsx)(r.Clw,{}),(0,l.jsxs)(r.WVB,{children:[(0,l.jsx)(r.__J,{children:"Display properties"}),(0,l.jsx)(r.kFS,{children:(0,l.jsx)(r.zxk,{onClick:e=>{e.stopPropagation(),t()},children:"Reset default"})})]}),(0,l.jsx)(r.WVB,{children:(0,l.jsx)(r.j4H,{options:e.map(e=>({label:e.label,value:e.id})),values:x,onChange:e=>s(e)})})]})}let{useDropzone:F}=T;function C(){let{openDialog:e}=(0,a.Rh)(),{uploadFiles:s,isViewingBuckets:t}=(0,c.Y)(),n=p(),{getRootProps:i,getInputProps:d}=F({noDrag:!0,noClick:!n,onDrop:s});return(0,l.jsxs)("div",{className:"flex gap-2",children:[t?(0,l.jsxs)(r.zxk,{onClick:()=>e("filesCreateBucket"),tip:"Create bucket",children:[(0,l.jsx)(o.aXP,{}),"Create bucket"]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.zxk,{onClick:()=>e("filesSearch"),tip:"Search files",children:(0,l.jsx)(o.UBs,{})}),(0,l.jsxs)(r.zxk,{...i(),tip:"Upload files",disabled:!n,children:[(0,l.jsx)("input",{...d()}),(0,l.jsx)(o.bQp,{})]}),(0,l.jsx)(r.zxk,{disabled:!n,onClick:()=>e("filesCreateDirectory"),tip:"Create directory",children:(0,l.jsx)(o.L37,{})})]}),(0,l.jsx)(S,{})]})}var _=t(25205);function O(){let e=(0,d.Q5)({config:{swr:{refreshInterval:6e4,keepPreviousData:!0,revalidateOnFocus:!1}}});if(!e.data&&e.isValidating)return(0,l.jsx)(r.xgg,{className:"pr-1"});if(!e.data)return null;let s=e.data.totalObjectsSize+e.data.totalUnfinishedObjectsSize,t=s?e.data.totalSectorsSize/s:0;return(0,l.jsx)(r.ua7,{side:"bottom",content:(0,l.jsxs)(r.xvT,{className:"flex justify-between gap-6",children:[(0,l.jsxs)(r.xvT,{className:"flex flex-col gap-1",children:[(0,l.jsx)(r.xvT,{size:"12",color:"subtle",children:"size of all files"}),(0,l.jsx)(r.xvT,{size:"12",color:"subtle",children:"with redundancy"}),!!t&&(0,l.jsx)(r.xvT,{size:"12",color:"subtle",children:"average redundancy factor"}),(0,l.jsx)(r.Z0O,{className:"w-full my-1"}),(0,l.jsx)(r.xvT,{size:"12",color:"subtle",children:"reclaimable space"}),(0,l.jsx)(r.xvT,{size:"12",color:"subtle",children:"total storage utilization"})]}),(0,l.jsxs)(r.xvT,{className:"flex flex-col gap-1 items-end",children:[(0,l.jsx)(r.xvT,{size:"12",children:(0,_.vW)(e.data.totalObjectsSize)}),(0,l.jsx)(r.xvT,{size:"12",children:(0,_.vW)(e.data.totalSectorsSize)}),!!t&&(0,l.jsxs)(r.xvT,{size:"12",font:"mono",children:[t.toFixed(1),"x"]}),(0,l.jsx)(r.Z0O,{className:"w-full my-1"}),(0,l.jsx)(r.xvT,{size:"12",children:(0,_.vW)(e.data.totalUploadedSize-e.data.totalSectorsSize)}),(0,l.jsx)(r.xvT,{size:"12",children:(0,_.vW)(e.data.totalUploadedSize)})]})]}),children:(0,l.jsx)(r.xvT,{size:"12",font:"mono",children:"".concat((0,_.vW)(e.data.totalObjectsSize)).concat(t?" @ ".concat(t.toFixed(1),"x"):"")})})}var W=t(82439);function P(){var e;let s=(0,d.Q5)({config:{swr:{refreshInterval:6e4,keepPreviousData:!0,revalidateOnFocus:!1}}}),{displayHealth:t,label:n}=(0,W.B)({health:null===(e=s.data)||void 0===e?void 0:e.minHealth,size:1,isDirectory:!0});return s.data?(0,l.jsx)(r.ua7,{align:"end",content:(0,l.jsxs)("div",{className:"flex flex-col overflow-hidden mb-1",children:[(0,l.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,l.jsx)(r.xvT,{size:"12",children:n}),(0,l.jsxs)(r.xvT,{size:"12",children:[(100*t).toFixed(0),"%"]})]}),(0,l.jsx)(r.Z0O,{className:"w-full my-1.5"}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)(r.xvT,{size:"12",color:"subtle",children:"Health is calculated as the minimum health value from across all file slabs. For directories this is across all contained files."}),(0,l.jsx)(r.xvT,{size:"12",color:"subtle",children:"Slab health is calculated as the number of shards with active contracts in the autopilot contract set above the minimum required shards and expressed as a percentage."})]}),(0,l.jsx)(r.Z0O,{className:"w-full my-1.5"}),(0,l.jsxs)("div",{className:"flex gap-3 justify-between",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)(r.xvT,{size:"12",color:"subtle",children:"excellent health"}),(0,l.jsx)(r.xvT,{size:"12",color:"subtle",children:"good health"}),(0,l.jsx)(r.xvT,{size:"12",color:"subtle",children:"poor health"})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-1 items-end",children:[(0,l.jsxs)(r.xvT,{size:"12",color:"subtle",children:[100*W.V.excellent,"%"]}),(0,l.jsxs)(r.xvT,{size:"12",color:"subtle",children:[100*W.V.good,"% -"," ",100*W.V.excellent,"%"]}),(0,l.jsxs)(r.xvT,{size:"12",color:"subtle",children:[100*W.V.poor,"% - ",100*W.V.good,"%"]})]})]})]}),children:(0,l.jsx)(r.xvT,{size:"12",font:"mono",className:"flex",children:n})}):null}var V=t(80489);function B(){let e=(0,g.n)(),s=function(){let{autopilot:e}=(0,x.q)(),s=function(){var e,s;let{autopilot:t}=(0,x.q)(),l=(0,d.e$)({disabled:"on"!==t.status}),n=(0,V.a)();return{isValidating:l.isValidating||n.isValidating,data:(null===(e=l.data)||void 0===e?void 0:e.contracts.set)===(null===(s=n.data)||void 0===s?void 0:s.default)}}(),t="on"===e.status&&!s.isValidating&&!s.data;return{active:t}}(),t=u(),n=(0,h.F)(),i=(0,N.useMemo)(()=>e.isSynced?null:(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)(r.xvT,{size:"12",font:"mono",weight:"medium",color:"amber",children:"Uploads are disabled until renterd is synced."}),(0,l.jsx)(r.nvN,{size:"12",children:"The blockchain must be fully synced before uploading files. This can take a while depending on your hardware and network connection."})]}),[e.isSynced]),a=(0,N.useMemo)(()=>t.active?(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)(r.xvT,{size:"12",font:"mono",weight:"medium",color:"amber",children:"Uploads are disabled until settings are configured."}),(0,l.jsxs)(r.nvN,{size:"12",children:["Before you can upload files you must configure your settings. Once configured, ",(0,l.jsx)(r.EKh,{children:"renterd"})," will find contracts with hosts based on the settings you choose. ",(0,l.jsx)(r.EKh,{children:"renterd"})," will also repair your data as hosts come and go."]})]}):null,[t.active]),c=(0,N.useMemo)(()=>n.active?(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)(r.xvT,{size:"12",font:"mono",weight:"medium",color:"amber",children:"Uploads are disabled until settings are configured."}),(0,l.jsxs)(r.nvN,{size:"12",children:["There are not enough contracts to upload data yet. Redundancy is configured to use ",n.required," shards which means at least that many contracts are required."]})]}):null,[n]),f=(0,N.useMemo)(()=>s.active?(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)(r.xvT,{size:"12",font:"mono",weight:"medium",color:"amber",children:"Uploaded data will not be managed by autopilot."}),(0,l.jsx)(r.nvN,{size:"12",children:"The autopilot contract set does not match the default contract set. This means that by default workers will not upload data to contracts that autopilot manages. Unless these contract are being manually maintained, this will result in data loss. Continue with caution or update the autopilot contract set to match the default contract set."})]}):null,[s.active]),j=(0,N.useMemo)(()=>[i,a,c,f].filter(Boolean),[i,a,c,f]);if(j.length)return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.J2e,{trigger:(0,l.jsx)(r.zxk,{variant:"ghost",icon:"contrast",color:"amber",children:(0,l.jsx)(o.qdM,{})}),children:(0,l.jsx)("div",{className:"flex flex-col gap-3 px-1 py-2",children:j})}),(0,l.jsx)(r.Z0O,{variant:"vertical",className:"h-full"})]})}function Y(){var e,s;let{isViewingABucket:t,pageCount:n}=(0,c.Y)(),i=(0,d.Q5)({config:{swr:{refreshInterval:6e4,keepPreviousData:!0,revalidateOnFocus:!1}}});return t?(0,l.jsx)(r.ua7,{side:"bottom",content:"Number of files in current directory",children:(0,l.jsxs)(r.xvT,{size:"12",font:"mono",children:[n.toLocaleString(),i.data?" of ".concat(null===(s=i.data)||void 0===s?void 0:s.numObjects.toLocaleString()," files"):" files"]})}):(0,l.jsx)(r.ua7,{side:"bottom",content:"Number of files across all buckets",children:i.data?(0,l.jsxs)(r.xvT,{size:"12",font:"mono",children:[null===(e=i.data)||void 0===e?void 0:e.numObjects.toLocaleString()," files"]}):(0,l.jsx)(r.xgg,{})})}var J=t(94225);function E(){let{filters:e,setFilter:s,removeFilter:t}=(0,c.Y)(),[n,i]=(0,N.useState)(""),[a]=(0,J.Nr)(n,500);return(0,N.useEffect)(()=>{let s=e.find(e=>"fileNamePrefix"===e.id),t=(null==s?void 0:s.value)||"";t!==n&&i(t)},[i,e]),(0,N.useEffect)(()=>{a.length?s({id:"fileNamePrefix",label:"",value:a}):t("fileNamePrefix")},[a]),(0,l.jsxs)("div",{className:"flex gap-1 flex-1",children:[(0,l.jsx)(r.nvn,{variant:"ghost",focus:"none",placeholder:"Filter files in current directory",value:n,onChange:e=>i(e.currentTarget.value),className:"w-full !pl-0"}),!!n.length&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.zxk,{variant:"ghost",onClick:()=>i(""),children:(0,l.jsx)(o.PcV,{})}),(0,l.jsx)(r.Z0O,{variant:"vertical",className:"h-full"})]})]})}function D(){let{limit:e,offset:s,pageCount:t,dataState:n,isViewingABucket:i,isViewingBuckets:a}=(0,c.Y)();return(0,l.jsxs)("div",{className:"flex gap-3 w-full",children:[a?(0,l.jsx)("div",{className:"flex-1"}):(0,l.jsx)(E,{}),(0,l.jsxs)("div",{className:"flex gap-3 items-center",children:[(0,l.jsx)(B,{}),(0,l.jsxs)("div",{className:"flex gap-3",children:[(0,l.jsx)(r.ua7,{side:"bottom",content:"Filtered statistics",children:(0,l.jsx)(r.xvT,{size:"12",color:"verySubtle",children:(0,l.jsx)(o.q0D,{})})}),(0,l.jsx)(Y,{})]}),(0,l.jsx)(r.Z0O,{variant:"vertical",className:"h-full"}),(0,l.jsxs)("div",{className:"flex gap-3",children:[(0,l.jsx)(r.ua7,{side:"bottom",content:"Global statistics",children:(0,l.jsx)(r.xvT,{size:"12",color:"verySubtle",children:(0,l.jsx)(o.RFr,{})})}),(0,l.jsx)(O,{}),(0,l.jsx)(P,{})]})]}),i&&(0,l.jsx)(r.wFK,{offset:s,limit:e,pageTotal:t,isLoading:"loading"===n})]})}function R(){let{openDialog:e}=(0,a.Rh)();return(0,l.jsx)(y.J,{title:"Files",navTitle:null,routes:i._,sidenav:(0,l.jsx)(n.e,{}),nav:(0,l.jsx)(w,{}),stats:(0,l.jsx)(D,{}),actions:(0,l.jsx)(C,{}),openSettings:()=>e("settings"),children:(0,l.jsx)("div",{className:"p-6 min-w-fit",children:(0,l.jsx)(b,{})})})}function U(){return(0,l.jsx)(R,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=38345)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/hosts-715b52fbc12875bc.js b/renterd/assets/_next/static/chunks/pages/hosts-5444b4c4a6b90837.js similarity index 97% rename from renterd/assets/_next/static/chunks/pages/hosts-715b52fbc12875bc.js rename to renterd/assets/_next/static/chunks/pages/hosts-5444b4c4a6b90837.js index 118cfdd7c..32d2bc4b4 100644 --- a/renterd/assets/_next/static/chunks/pages/hosts-715b52fbc12875bc.js +++ b/renterd/assets/_next/static/chunks/pages/hosts-5444b4c4a6b90837.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[473],{88924:function(e,s,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/hosts",function(){return l(69886)}])},89630:function(e,s,l){"use strict";l.d(s,{J:function(){return h}});var n=l(52322),t=l(35701),a=l(9969),i=l(6391),r=l.n(i),c=l(71930),o=l(25573),d=l(86811);function u(){var e,s,l,i,r;let{openDialog:c}=(0,d.Rh)(),u=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}}),x=(0,a.X2)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,a.cQ)(),j=(0,o.n)(),v=null===(e=u.data)||void 0===e?void 0:e.version,m="?"===v?"https://github.com/SiaFoundation/renterd/commits/":(null==v?void 0:v.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(v):"https://github.com/SiaFoundation/renterd/tree/".concat(v);return(0,n.jsxs)(t.HfT,{name:"renterd",peerCount:null===(s=h.data)||void 0===s?void 0:s.length,connectPeer:()=>c("connectPeer"),isSynced:j.isSynced,syncPercent:j.syncPercent,nodeBlockHeight:j.nodeBlockHeight,estimatedBlockHeight:j.estimatedBlockHeight,firstTimeSyncing:j.firstTimeSyncing,moreThan100BlocksToSync:j.moreThan100BlocksToSync,children:[(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,n.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,n.jsx)(t.XxW,{size:"14",maxLength:50,value:null===(l=x.data)||void 0===l?void 0:l.address,type:"address"})})]}),(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,n.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,n.jsx)(t.xvT,{size:"14",children:null===(i=u.data)||void 0===i?void 0:i.network})})]}),(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,n.jsx)(t.rUS,{size:"14",href:m,underline:"hover",target:"_blank",ellipsis:!0,children:null===(r=u.data)||void 0===r?void 0:r.version})]})]})}function x(){let e=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,n.jsx)(t.t6k,{testnetName:e.data.network}):null}function h(e){let s=(0,a.X2)(),{isSynced:l}=(0,o.n)();return(0,n.jsx)(t.tU3,{appName:"renterd",profile:(0,n.jsx)(u,{}),banner:(0,n.jsx)(x,{}),connectivityRoute:c.h,isSynced:l,walletBalanceSc:s.data&&{spendable:new(r())(s.data.spendable),confirmed:new(r())(s.data.confirmed),unconfirmed:new(r())(s.data.unconfirmed)},...e})}},91930:function(e,s,l){"use strict";l.d(s,{e:function(){return d}});var n=l(52322),t=l(35701),a=l(88242),i=l(9969),r=l(82851),c=l(71930),o=l(86811);function d(){var e,s;let l=(0,i.Z7)(),{openDialog:d}=(0,o.Rh)(),u=!(null===(e=l.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(s=l.data)||void 0===s?void 0:s.length)||0;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.KJW,{title:"Files",route:c._.files.index,children:(0,n.jsx)(a.ROc,{})}),(0,n.jsx)(t.KJW,{title:"Configuration",route:c._.config.index,children:(0,n.jsx)(a.wWN,{})}),(0,n.jsx)(t.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,n.jsx)(a.VBo,{})}),(0,n.jsx)(t.KJW,{title:"Hosts",route:c._.hosts.index,children:(0,n.jsx)(a.VHe,{})}),(0,n.jsxs)("div",{className:"relative",children:[!!x&&u&&(0,n.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!x&&!u&&(0,n.jsx)(t.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:x.toLocaleString()}),(0,n.jsx)(t.KJW,{title:"Alerts",onClick:()=>d("alerts"),children:(0,n.jsx)(a.Dkj,{})})]})]})}},69886:function(e,s,l){"use strict";l.r(s),l.d(s,{default:function(){return y}});var n=l(52322),t=l(91930),a=l(71930),i=l(35701),r=l(86811),c=l(19513),o=l(89630),d=l(88242);function u(){let{dataState:e}=(0,c.l)();return"error"===e?(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(i.xvT,{children:(0,n.jsx)(d.Ckx,{className:"scale-[200%]"})}),(0,n.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching hosts."})]}):"noneMatchingFilters"===e?(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(i.xvT,{children:(0,n.jsx)(d.Hb6,{className:"scale-[200%]"})}),(0,n.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No hosts matching filters."})]}):"noneYet"===e?(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(i.xvT,{children:(0,n.jsx)(d.zvn,{className:"scale-[200%]"})}),(0,n.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,n.jsxs)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["There are currently no hosts in the database. Make sure"," ",(0,n.jsx)(i.EKh,{children:"renterd"})," can access the network and make sure peers are being discovered."]}),(0,n.jsx)(i.Qjf,{href:a._.node.index,children:"View peers"})]})]}):null}function x(){let{configurableColumns:e,toggleColumnVisibility:s,setColumnsVisible:l,setColumnsHidden:t,resetDefaultColumnVisibility:a,enabledColumns:r}=(0,c.l)(),o=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),u=e.filter(e=>"autopilot"===e.category).map(e=>({label:e.label,value:e.id})),x=e.filter(e=>"priceTable"===e.category).map(e=>({label:e.label,value:e.id})),h=e.filter(e=>"hostSettings"===e.category).map(e=>({label:e.label,value:e.id}));return(0,n.jsxs)(i.J2e,{trigger:(0,n.jsxs)(i.zxk,{tip:"Configure view",tipAlign:"end",children:[(0,n.jsx)(d.hiv,{}),"View",(0,n.jsx)(d.EMN,{})]}),contentProps:{align:"end",className:"!max-w-md !h-[400px]"},children:[(0,n.jsxs)(i.WVB,{children:[(0,n.jsx)(i.__J,{children:"Display properties"}),(0,n.jsx)(i.kFS,{children:(0,n.jsx)(i.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),a()},children:(0,n.jsx)(d.Wet,{})})})]}),(0,n.jsx)(i.FzK,{label:"General",columns:o.map(e=>e.value),enabled:r,setColumnsVisible:l,setColumnsHidden:t}),(0,n.jsx)(i.WVB,{children:(0,n.jsx)(i.j4H,{options:o,values:r,onChange:e=>s(e)})}),u.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.FzK,{label:"Autopilot",columns:u.map(e=>e.value),enabled:r,setColumnsVisible:l,setColumnsHidden:t}),(0,n.jsx)(i.WVB,{children:(0,n.jsx)(i.j4H,{options:u,values:r,onChange:e=>s(e)})})]}):null,x.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.FzK,{label:"Price table (RHPv3)",columns:x.map(e=>e.value),enabled:r,setColumnsVisible:l,setColumnsHidden:t}),(0,n.jsx)(i.WVB,{children:(0,n.jsx)(i.j4H,{options:x,values:r,onChange:e=>s(e)})})]}):null,h.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.FzK,{label:"Host settings (RHPv2)",columns:h.map(e=>e.value),enabled:r,setColumnsVisible:l,setColumnsHidden:t}),(0,n.jsx)(i.WVB,{children:(0,n.jsx)(i.j4H,{options:h,values:r,onChange:e=>s(e)})})]}):null]})}var h=l(95753);function j(){let{openDialog:e}=(0,r.Rh)(),{viewMode:s,setViewMode:l}=(0,c.l)(),{settings:t,gpu:a}=(0,h.Hv)();return(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsxs)(i.zxk,{onClick:()=>e("hostsManageAllowBlock"),tip:"Manage host blocklist and allowlist",children:[(0,n.jsx)(d.nCM,{}),"Manage lists"]}),(0,n.jsx)(i.ua7,{content:t.siaCentral?a.canGpuRender&&a.isGpuEnabled?"Toggle interactive map":"Enable GPU to view interactive map":"Enable Sia Central to view interactive map",children:(0,n.jsx)(i.zxk,{disabled:!a.canGpuRender,onClick:()=>{if(!t.siaCentral){e("settings");return}a.isGpuEnabled?l("map"===s?"list":"map"):e("settings")},children:(0,n.jsx)(d.nDH,{})})}),(0,n.jsx)(x,{})]})}var v=l(99182),m=l(2784),f=l(18006);function p(){let{filters:e,removeFilter:s,removeLastFilter:l}=(0,c.l)(),[t,a]=(0,m.useState)(!1),[r,o]=(0,m.useState)(""),[u,x]=(0,m.useState)([]),h=u[u.length-1],j=(0,m.useRef)(null),p=(0,m.useRef)(null),g=(0,m.useCallback)(e=>{x(s=>[...s,e])},[x]),b=(0,m.useCallback)(()=>{x([])},[x]);(0,m.useEffect)(()=>{let e=e=>{j.current&&!j.current.contains(e.target)&&a(!1)};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}},[]);let w=(0,m.useCallback)(()=>{var e;null===(e=p.current)||void 0===e||e.focus()},[p]),k=(0,m.useCallback)(()=>{o(""),b()},[b]);return(0,n.jsxs)("div",{className:"flex gap-1",children:[e.map(e=>(0,n.jsxs)(i.eQh,{children:[(0,n.jsx)(i.zxk,{variant:"active",state:"waiting",children:e.label}),(0,n.jsx)(i.zxk,{variant:"active",size:"small",onClick:()=>s(e.id),children:(0,n.jsx)(d.PcV,{})})]},e.id)),(0,n.jsxs)(v.mY,{ref:j,label:"Command Menu",onFocus:()=>a(!0),onKeyDown:e=>{if(u.length>0)"Escape"!==e.key&&("Backspace"!==e.key||r)||(e.preventDefault(),x(e=>e.slice(0,-1)));else if(0===u.length&&("Backspace"!==e.key||r||l(),"Escape"===e.key&&!r)){var s;a(!1),null===(s=p.current)||void 0===s||s.blur()}},children:[(0,n.jsx)(v.mY.Input,{ref:p,value:r,onValueChange:o,className:(0,i.cEb)({variant:"ghost",focus:"none"}),placeholder:"Filter hosts"}),t&&(0,n.jsx)(i.s_4,{className:"absolute z-20 min-w-[200px] max-h-[400px] overflow-auto p-1",children:(0,n.jsxs)(i.xrM,{children:[h&&(0,n.jsx)(i.__J,{className:"px-1.5 py-1",children:h.label}),(0,n.jsx)(v.mY.List,{children:(0,n.jsx)(f.L,{currentPage:h,beforeSelect:w,afterSelect:k,pushPage:g})})]})})]})]})}function g(){let{offset:e,limit:s,pageCount:l,dataState:t}=(0,c.l)();return(0,n.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,n.jsx)(p,{}),(0,n.jsx)("div",{className:"flex-1"}),(0,n.jsx)(i.wFK,{offset:e,limit:s,pageTotal:l,isLoading:"loading"===t})]})}var b=l(34444),w=l(10917);function k(){let{gpu:e,settings:s}=(0,h.Hv)(),{setCmd:l,activeHost:t,onHostMapClick:a,onHostMapHover:r,hostsWithLocation:o}=(0,c.l)();return s.siaCentral&&!e.shouldRender?null:(0,n.jsxs)("div",{className:"w-full h-full",children:[(0,n.jsx)(b.T,{activeHost:(null==t?void 0:t.location)?t:void 0,hosts:o,onHostClick:a,onHostHover:r,onMount:e=>{l(e)}}),(0,n.jsxs)("div",{className:"absolute top-5 left-6 flex flex-col gap-1",children:[(0,n.jsx)(i.wEc,{color:w.jY.activeAndUsable.colorHex,label:"Active contract & usable",size:"12"}),(0,n.jsx)(i.wEc,{color:w.jY.activeAndUnusable.colorHex,label:"Active contract & unusable",size:"12"}),(0,n.jsx)(i.wEc,{color:w.jY.potentialHost.colorHex,label:"No active contract",size:"12"})]})]})}var N=l(82851);function C(){let{openDialog:e}=(0,r.Rh)(),{dataset:s,activeHost:l,columns:d,limit:x,dataState:h,tableContext:v,viewMode:m}=(0,c.l)();return(0,n.jsx)(o.J,{title:"Hosts",routes:a._,sidenav:(0,n.jsx)(t.e,{}),openSettings:()=>e("settings"),size:"full",actions:(0,n.jsx)(j,{}),stats:(0,n.jsx)(g,{}),scroll:!1,children:(0,n.jsxs)("div",{className:"relative flex flex-col overflow-hidden h-full w-full",children:[(0,n.jsx)("div",{className:(0,N.cx)("absolute h-[70%] w-full","map"===m?"block":"invisible","transition-all"),children:(0,n.jsx)(k,{})}),(0,n.jsx)("div",{className:(0,N.cx)("absolute overflow-hidden transition-all w-full","duration-300","overflow-hidden"),style:{bottom:0,height:"map"===m?s&&s.length?400-Math.max((2-s.length)*100,0):400:"100%"},children:(0,n.jsx)(i.xrM,{className:"z-0",id:"scroll-hosts",children:(0,n.jsx)("div",{className:(0,N.cx)("map"===m?"pb-6 px-6":"p-6","min-w-fit"),children:(0,n.jsx)(i.iA_,{focusId:null==l?void 0:l.publicKey,focusColor:l?(0,w.Kg)(l).colorName:void 0,isLoading:"loading"===h,emptyState:(0,n.jsx)(u,{}),context:v,pageSize:x,data:s,columns:d,rowSize:"default"})})})})]})})}function y(){return(0,n.jsx)(C,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=88924)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[473],{88924:function(e,s,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/hosts",function(){return l(69886)}])},89630:function(e,s,l){"use strict";l.d(s,{J:function(){return h}});var n=l(52322),t=l(57362),a=l(9969),i=l(6391),r=l.n(i),c=l(71930),o=l(25573),d=l(86811);function u(){var e,s,l,i,r;let{openDialog:c}=(0,d.Rh)(),u=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}}),x=(0,a.X2)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,a.cQ)(),j=(0,o.n)(),v=null===(e=u.data)||void 0===e?void 0:e.version,m="?"===v?"https://github.com/SiaFoundation/renterd/commits/":(null==v?void 0:v.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(v):"https://github.com/SiaFoundation/renterd/tree/".concat(v);return(0,n.jsxs)(t.HfT,{name:"renterd",peerCount:null===(s=h.data)||void 0===s?void 0:s.length,connectPeer:()=>c("connectPeer"),isSynced:j.isSynced,syncPercent:j.syncPercent,nodeBlockHeight:j.nodeBlockHeight,estimatedBlockHeight:j.estimatedBlockHeight,firstTimeSyncing:j.firstTimeSyncing,moreThan100BlocksToSync:j.moreThan100BlocksToSync,children:[(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,n.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,n.jsx)(t.XxW,{size:"14",maxLength:50,value:null===(l=x.data)||void 0===l?void 0:l.address,type:"address"})})]}),(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,n.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,n.jsx)(t.xvT,{size:"14",children:null===(i=u.data)||void 0===i?void 0:i.network})})]}),(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,n.jsx)(t.rUS,{size:"14",href:m,underline:"hover",target:"_blank",ellipsis:!0,children:null===(r=u.data)||void 0===r?void 0:r.version})]})]})}function x(){let e=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,n.jsx)(t.t6k,{testnetName:e.data.network}):null}function h(e){let s=(0,a.X2)(),{isSynced:l}=(0,o.n)();return(0,n.jsx)(t.tU3,{appName:"renterd",profile:(0,n.jsx)(u,{}),banner:(0,n.jsx)(x,{}),connectivityRoute:c.h,isSynced:l,walletBalanceSc:s.data&&{spendable:new(r())(s.data.spendable),confirmed:new(r())(s.data.confirmed),unconfirmed:new(r())(s.data.unconfirmed)},...e})}},91930:function(e,s,l){"use strict";l.d(s,{e:function(){return d}});var n=l(52322),t=l(57362),a=l(88242),i=l(9969),r=l(82851),c=l(71930),o=l(86811);function d(){var e,s;let l=(0,i.Z7)(),{openDialog:d}=(0,o.Rh)(),u=!(null===(e=l.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(s=l.data)||void 0===s?void 0:s.length)||0;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.KJW,{title:"Files",route:c._.files.index,children:(0,n.jsx)(a.ROc,{})}),(0,n.jsx)(t.KJW,{title:"Configuration",route:c._.config.index,children:(0,n.jsx)(a.wWN,{})}),(0,n.jsx)(t.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,n.jsx)(a.VBo,{})}),(0,n.jsx)(t.KJW,{title:"Hosts",route:c._.hosts.index,children:(0,n.jsx)(a.VHe,{})}),(0,n.jsxs)("div",{className:"relative",children:[!!x&&u&&(0,n.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!x&&!u&&(0,n.jsx)(t.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:x.toLocaleString()}),(0,n.jsx)(t.KJW,{title:"Alerts",onClick:()=>d("alerts"),children:(0,n.jsx)(a.Dkj,{})})]})]})}},69886:function(e,s,l){"use strict";l.r(s),l.d(s,{default:function(){return y}});var n=l(52322),t=l(91930),a=l(71930),i=l(57362),r=l(86811),c=l(19513),o=l(89630),d=l(88242);function u(){let{dataState:e}=(0,c.l)();return"error"===e?(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(i.xvT,{children:(0,n.jsx)(d.Ckx,{className:"scale-[200%]"})}),(0,n.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching hosts."})]}):"noneMatchingFilters"===e?(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(i.xvT,{children:(0,n.jsx)(d.Hb6,{className:"scale-[200%]"})}),(0,n.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No hosts matching filters."})]}):"noneYet"===e?(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(i.xvT,{children:(0,n.jsx)(d.zvn,{className:"scale-[200%]"})}),(0,n.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,n.jsxs)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["There are currently no hosts in the database. Make sure"," ",(0,n.jsx)(i.EKh,{children:"renterd"})," can access the network and make sure peers are being discovered."]}),(0,n.jsx)(i.Qjf,{href:a._.node.index,children:"View peers"})]})]}):null}function x(){let{configurableColumns:e,toggleColumnVisibility:s,setColumnsVisible:l,setColumnsHidden:t,resetDefaultColumnVisibility:a,enabledColumns:r}=(0,c.l)(),o=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),u=e.filter(e=>"autopilot"===e.category).map(e=>({label:e.label,value:e.id})),x=e.filter(e=>"priceTable"===e.category).map(e=>({label:e.label,value:e.id})),h=e.filter(e=>"hostSettings"===e.category).map(e=>({label:e.label,value:e.id}));return(0,n.jsxs)(i.J2e,{trigger:(0,n.jsxs)(i.zxk,{tip:"Configure view",tipAlign:"end",children:[(0,n.jsx)(d.hiv,{}),"View",(0,n.jsx)(d.EMN,{})]}),contentProps:{align:"end",className:"!max-w-md !h-[400px]"},children:[(0,n.jsxs)(i.WVB,{children:[(0,n.jsx)(i.__J,{children:"Display properties"}),(0,n.jsx)(i.kFS,{children:(0,n.jsx)(i.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),a()},children:(0,n.jsx)(d.Wet,{})})})]}),(0,n.jsx)(i.FzK,{label:"General",columns:o.map(e=>e.value),enabled:r,setColumnsVisible:l,setColumnsHidden:t}),(0,n.jsx)(i.WVB,{children:(0,n.jsx)(i.j4H,{options:o,values:r,onChange:e=>s(e)})}),u.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.FzK,{label:"Autopilot",columns:u.map(e=>e.value),enabled:r,setColumnsVisible:l,setColumnsHidden:t}),(0,n.jsx)(i.WVB,{children:(0,n.jsx)(i.j4H,{options:u,values:r,onChange:e=>s(e)})})]}):null,x.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.FzK,{label:"Price table (RHPv3)",columns:x.map(e=>e.value),enabled:r,setColumnsVisible:l,setColumnsHidden:t}),(0,n.jsx)(i.WVB,{children:(0,n.jsx)(i.j4H,{options:x,values:r,onChange:e=>s(e)})})]}):null,h.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.FzK,{label:"Host settings (RHPv2)",columns:h.map(e=>e.value),enabled:r,setColumnsVisible:l,setColumnsHidden:t}),(0,n.jsx)(i.WVB,{children:(0,n.jsx)(i.j4H,{options:h,values:r,onChange:e=>s(e)})})]}):null]})}var h=l(95753);function j(){let{openDialog:e}=(0,r.Rh)(),{viewMode:s,setViewMode:l}=(0,c.l)(),{settings:t,gpu:a}=(0,h.Hv)();return(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsxs)(i.zxk,{onClick:()=>e("hostsManageAllowBlock"),tip:"Manage host blocklist and allowlist",children:[(0,n.jsx)(d.nCM,{}),"Manage lists"]}),(0,n.jsx)(i.ua7,{content:t.siaCentral?a.canGpuRender&&a.isGpuEnabled?"Toggle interactive map":"Enable GPU to view interactive map":"Enable Sia Central to view interactive map",children:(0,n.jsx)(i.zxk,{disabled:!a.canGpuRender,onClick:()=>{if(!t.siaCentral){e("settings");return}a.isGpuEnabled?l("map"===s?"list":"map"):e("settings")},children:(0,n.jsx)(d.nDH,{})})}),(0,n.jsx)(x,{})]})}var v=l(99182),m=l(2784),f=l(18006);function p(){let{filters:e,removeFilter:s,removeLastFilter:l}=(0,c.l)(),[t,a]=(0,m.useState)(!1),[r,o]=(0,m.useState)(""),[u,x]=(0,m.useState)([]),h=u[u.length-1],j=(0,m.useRef)(null),p=(0,m.useRef)(null),g=(0,m.useCallback)(e=>{x(s=>[...s,e])},[x]),b=(0,m.useCallback)(()=>{x([])},[x]);(0,m.useEffect)(()=>{let e=e=>{j.current&&!j.current.contains(e.target)&&a(!1)};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}},[]);let w=(0,m.useCallback)(()=>{var e;null===(e=p.current)||void 0===e||e.focus()},[p]),k=(0,m.useCallback)(()=>{o(""),b()},[b]);return(0,n.jsxs)("div",{className:"flex gap-1",children:[e.map(e=>(0,n.jsxs)(i.eQh,{children:[(0,n.jsx)(i.zxk,{variant:"active",state:"waiting",children:e.label}),(0,n.jsx)(i.zxk,{variant:"active",size:"small",onClick:()=>s(e.id),children:(0,n.jsx)(d.PcV,{})})]},e.id)),(0,n.jsxs)(v.mY,{ref:j,label:"Command Menu",onFocus:()=>a(!0),onKeyDown:e=>{if(u.length>0)"Escape"!==e.key&&("Backspace"!==e.key||r)||(e.preventDefault(),x(e=>e.slice(0,-1)));else if(0===u.length&&("Backspace"!==e.key||r||l(),"Escape"===e.key&&!r)){var s;a(!1),null===(s=p.current)||void 0===s||s.blur()}},children:[(0,n.jsx)(v.mY.Input,{ref:p,value:r,onValueChange:o,className:(0,i.cEb)({variant:"ghost",focus:"none"}),placeholder:"Filter hosts"}),t&&(0,n.jsx)(i.s_4,{className:"absolute z-20 min-w-[200px] max-h-[400px] overflow-auto p-1",children:(0,n.jsxs)(i.xrM,{children:[h&&(0,n.jsx)(i.__J,{className:"px-1.5 py-1",children:h.label}),(0,n.jsx)(v.mY.List,{children:(0,n.jsx)(f.L,{currentPage:h,beforeSelect:w,afterSelect:k,pushPage:g})})]})})]})]})}function g(){let{offset:e,limit:s,pageCount:l,dataState:t}=(0,c.l)();return(0,n.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,n.jsx)(p,{}),(0,n.jsx)("div",{className:"flex-1"}),(0,n.jsx)(i.wFK,{offset:e,limit:s,pageTotal:l,isLoading:"loading"===t})]})}var b=l(34444),w=l(10917);function k(){let{gpu:e,settings:s}=(0,h.Hv)(),{setCmd:l,activeHost:t,onHostMapClick:a,onHostMapHover:r,hostsWithLocation:o}=(0,c.l)();return s.siaCentral&&!e.shouldRender?null:(0,n.jsxs)("div",{className:"w-full h-full",children:[(0,n.jsx)(b.T,{activeHost:(null==t?void 0:t.location)?t:void 0,hosts:o,onHostClick:a,onHostHover:r,onMount:e=>{l(e)}}),(0,n.jsxs)("div",{className:"absolute top-5 left-6 flex flex-col gap-1",children:[(0,n.jsx)(i.wEc,{color:w.jY.activeAndUsable.colorHex,label:"Active contract & usable",size:"12"}),(0,n.jsx)(i.wEc,{color:w.jY.activeAndUnusable.colorHex,label:"Active contract & unusable",size:"12"}),(0,n.jsx)(i.wEc,{color:w.jY.potentialHost.colorHex,label:"No active contract",size:"12"})]})]})}var N=l(82851);function C(){let{openDialog:e}=(0,r.Rh)(),{dataset:s,activeHost:l,columns:d,limit:x,dataState:h,tableContext:v,viewMode:m}=(0,c.l)();return(0,n.jsx)(o.J,{title:"Hosts",routes:a._,sidenav:(0,n.jsx)(t.e,{}),openSettings:()=>e("settings"),size:"full",actions:(0,n.jsx)(j,{}),stats:(0,n.jsx)(g,{}),scroll:!1,children:(0,n.jsxs)("div",{className:"relative flex flex-col overflow-hidden h-full w-full",children:[(0,n.jsx)("div",{className:(0,N.cx)("absolute h-[70%] w-full","map"===m?"block":"invisible","transition-all"),children:(0,n.jsx)(k,{})}),(0,n.jsx)("div",{className:(0,N.cx)("absolute overflow-hidden transition-all w-full","duration-300","overflow-hidden"),style:{bottom:0,height:"map"===m?s&&s.length?400-Math.max((2-s.length)*100,0):400:"100%"},children:(0,n.jsx)(i.xrM,{className:"z-0",id:"scroll-hosts",children:(0,n.jsx)("div",{className:(0,N.cx)("map"===m?"pb-6 px-6":"p-6","min-w-fit"),children:(0,n.jsx)(i.iA_,{focusId:null==l?void 0:l.publicKey,focusColor:l?(0,w.Kg)(l).colorName:void 0,isLoading:"loading"===h,emptyState:(0,n.jsx)(u,{}),context:v,pageSize:x,data:s,columns:d,rowSize:"default"})})})})]})})}function y(){return(0,n.jsx)(C,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=88924)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/index-249f4d5800907767.js b/renterd/assets/_next/static/chunks/pages/index-df84518950ea4199.js similarity index 97% rename from renterd/assets/_next/static/chunks/pages/index-249f4d5800907767.js rename to renterd/assets/_next/static/chunks/pages/index-df84518950ea4199.js index e3d0089d3..126768bfd 100644 --- a/renterd/assets/_next/static/chunks/pages/index-249f4d5800907767.js +++ b/renterd/assets/_next/static/chunks/pages/index-df84518950ea4199.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{87314:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(94417)}])},89630:function(e,n,t){"use strict";t.d(n,{J:function(){return f}});var i=t(52322),s=t(35701),r=t(9969),o=t(6391),a=t.n(o),d=t(71930),l=t(25573),c=t(86811);function u(){var e,n,t,o,a;let{openDialog:d}=(0,c.Rh)(),u=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}}),x=(0,r.X2)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,r.cQ)(),h=(0,l.n)(),v=null===(e=u.data)||void 0===e?void 0:e.version,j="?"===v?"https://github.com/SiaFoundation/renterd/commits/":(null==v?void 0:v.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(v):"https://github.com/SiaFoundation/renterd/tree/".concat(v);return(0,i.jsxs)(s.HfT,{name:"renterd",peerCount:null===(n=f.data)||void 0===n?void 0:n.length,connectPeer:()=>d("connectPeer"),isSynced:h.isSynced,syncPercent:h.syncPercent,nodeBlockHeight:h.nodeBlockHeight,estimatedBlockHeight:h.estimatedBlockHeight,firstTimeSyncing:h.firstTimeSyncing,moreThan100BlocksToSync:h.moreThan100BlocksToSync,children:[(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(s.XxW,{size:"14",maxLength:50,value:null===(t=x.data)||void 0===t?void 0:t.address,type:"address"})})]}),(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(s.xvT,{size:"14",children:null===(o=u.data)||void 0===o?void 0:o.network})})]}),(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,i.jsx)(s.rUS,{size:"14",href:j,underline:"hover",target:"_blank",ellipsis:!0,children:null===(a=u.data)||void 0===a?void 0:a.version})]})]})}function x(){let e=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,i.jsx)(s.t6k,{testnetName:e.data.network}):null}function f(e){let n=(0,r.X2)(),{isSynced:t}=(0,l.n)();return(0,i.jsx)(s.tU3,{appName:"renterd",profile:(0,i.jsx)(u,{}),banner:(0,i.jsx)(x,{}),connectivityRoute:d.h,isSynced:t,walletBalanceSc:n.data&&{spendable:new(a())(n.data.spendable),confirmed:new(a())(n.data.confirmed),unconfirmed:new(a())(n.data.unconfirmed)},...e})}},91930:function(e,n,t){"use strict";t.d(n,{e:function(){return c}});var i=t(52322),s=t(35701),r=t(88242),o=t(9969),a=t(82851),d=t(71930),l=t(86811);function c(){var e,n;let t=(0,o.Z7)(),{openDialog:c}=(0,l.Rh)(),u=!(null===(e=t.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(n=t.data)||void 0===n?void 0:n.length)||0;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.KJW,{title:"Files",route:d._.files.index,children:(0,i.jsx)(r.ROc,{})}),(0,i.jsx)(s.KJW,{title:"Configuration",route:d._.config.index,children:(0,i.jsx)(r.wWN,{})}),(0,i.jsx)(s.KJW,{title:"Contracts",route:d._.contracts.index,children:(0,i.jsx)(r.VBo,{})}),(0,i.jsx)(s.KJW,{title:"Hosts",route:d._.hosts.index,children:(0,i.jsx)(r.VHe,{})}),(0,i.jsxs)("div",{className:"relative",children:[!!x&&u&&(0,i.jsx)("div",{className:(0,a.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!x&&!u&&(0,i.jsx)(s.xvT,{size:"10",className:(0,a.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:x.toLocaleString()}),(0,i.jsx)(s.KJW,{title:"Alerts",onClick:()=>c("alerts"),children:(0,i.jsx)(r.Dkj,{})})]})]})}},94417:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=t(52322),s=t(89630),r=t(91930),o=t(71930),a=t(86811),d=t(2784),l=t(5632);function c(){let e=(0,l.useRouter)(),{openDialog:n}=(0,a.Rh)();return(0,d.useEffect)(()=>{e.replace(o._.files.index)},[e]),(0,i.jsx)(s.J,{title:"Dashboard",routes:o._,sidenav:(0,i.jsx)(r.e,{}),openSettings:()=>n("settings")})}function u(){return(0,i.jsx)(c,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=87314)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{87314:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(94417)}])},89630:function(e,n,t){"use strict";t.d(n,{J:function(){return f}});var i=t(52322),s=t(57362),r=t(9969),o=t(6391),a=t.n(o),d=t(71930),l=t(25573),c=t(86811);function u(){var e,n,t,o,a;let{openDialog:d}=(0,c.Rh)(),u=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}}),x=(0,r.X2)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,r.cQ)(),h=(0,l.n)(),v=null===(e=u.data)||void 0===e?void 0:e.version,j="?"===v?"https://github.com/SiaFoundation/renterd/commits/":(null==v?void 0:v.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(v):"https://github.com/SiaFoundation/renterd/tree/".concat(v);return(0,i.jsxs)(s.HfT,{name:"renterd",peerCount:null===(n=f.data)||void 0===n?void 0:n.length,connectPeer:()=>d("connectPeer"),isSynced:h.isSynced,syncPercent:h.syncPercent,nodeBlockHeight:h.nodeBlockHeight,estimatedBlockHeight:h.estimatedBlockHeight,firstTimeSyncing:h.firstTimeSyncing,moreThan100BlocksToSync:h.moreThan100BlocksToSync,children:[(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(s.XxW,{size:"14",maxLength:50,value:null===(t=x.data)||void 0===t?void 0:t.address,type:"address"})})]}),(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(s.xvT,{size:"14",children:null===(o=u.data)||void 0===o?void 0:o.network})})]}),(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,i.jsx)(s.rUS,{size:"14",href:j,underline:"hover",target:"_blank",ellipsis:!0,children:null===(a=u.data)||void 0===a?void 0:a.version})]})]})}function x(){let e=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,i.jsx)(s.t6k,{testnetName:e.data.network}):null}function f(e){let n=(0,r.X2)(),{isSynced:t}=(0,l.n)();return(0,i.jsx)(s.tU3,{appName:"renterd",profile:(0,i.jsx)(u,{}),banner:(0,i.jsx)(x,{}),connectivityRoute:d.h,isSynced:t,walletBalanceSc:n.data&&{spendable:new(a())(n.data.spendable),confirmed:new(a())(n.data.confirmed),unconfirmed:new(a())(n.data.unconfirmed)},...e})}},91930:function(e,n,t){"use strict";t.d(n,{e:function(){return c}});var i=t(52322),s=t(57362),r=t(88242),o=t(9969),a=t(82851),d=t(71930),l=t(86811);function c(){var e,n;let t=(0,o.Z7)(),{openDialog:c}=(0,l.Rh)(),u=!(null===(e=t.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(n=t.data)||void 0===n?void 0:n.length)||0;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.KJW,{title:"Files",route:d._.files.index,children:(0,i.jsx)(r.ROc,{})}),(0,i.jsx)(s.KJW,{title:"Configuration",route:d._.config.index,children:(0,i.jsx)(r.wWN,{})}),(0,i.jsx)(s.KJW,{title:"Contracts",route:d._.contracts.index,children:(0,i.jsx)(r.VBo,{})}),(0,i.jsx)(s.KJW,{title:"Hosts",route:d._.hosts.index,children:(0,i.jsx)(r.VHe,{})}),(0,i.jsxs)("div",{className:"relative",children:[!!x&&u&&(0,i.jsx)("div",{className:(0,a.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!x&&!u&&(0,i.jsx)(s.xvT,{size:"10",className:(0,a.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:x.toLocaleString()}),(0,i.jsx)(s.KJW,{title:"Alerts",onClick:()=>c("alerts"),children:(0,i.jsx)(r.Dkj,{})})]})]})}},94417:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=t(52322),s=t(89630),r=t(91930),o=t(71930),a=t(86811),d=t(2784),l=t(5632);function c(){let e=(0,l.useRouter)(),{openDialog:n}=(0,a.Rh)();return(0,d.useEffect)(()=>{e.replace(o._.files.index)},[e]),(0,i.jsx)(s.J,{title:"Dashboard",routes:o._,sidenav:(0,i.jsx)(r.e,{}),openSettings:()=>n("settings")})}function u(){return(0,i.jsx)(c,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=87314)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/login-84e15bbb2ad42ca9.js b/renterd/assets/_next/static/chunks/pages/login-234d684d4a7af2fd.js similarity index 88% rename from renterd/assets/_next/static/chunks/pages/login-84e15bbb2ad42ca9.js rename to renterd/assets/_next/static/chunks/pages/login-234d684d4a7af2fd.js index a11b34a95..315c6daad 100644 --- a/renterd/assets/_next/static/chunks/pages/login-84e15bbb2ad42ca9.js +++ b/renterd/assets/_next/static/chunks/pages/login-234d684d4a7af2fd.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[459],{97946:function(n,u,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return r(95271)}])},95271:function(n,u,r){"use strict";r.r(u),r.d(u,{default:function(){return _}});var t=r(52322),e=r(35701),i=r(71930);function o(n){return(0,t.jsx)(e.juT,{appName:"renterd",...n})}function c(){return(0,t.jsx)(o,{children:(0,t.jsx)(e.zXq,{appName:"renterd",route:i.h,routes:i._})})}function _(){return(0,t.jsx)(c,{})}}},function(n){n.O(0,[774,888,179],function(){return n(n.s=97946)}),_N_E=n.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[459],{97946:function(n,u,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return r(95271)}])},95271:function(n,u,r){"use strict";r.r(u),r.d(u,{default:function(){return _}});var t=r(52322),e=r(57362),i=r(71930);function o(n){return(0,t.jsx)(e.juT,{appName:"renterd",...n})}function c(){return(0,t.jsx)(o,{children:(0,t.jsx)(e.zXq,{appName:"renterd",route:i.h,routes:i._})})}function _(){return(0,t.jsx)(c,{})}}},function(n){n.O(0,[774,888,179],function(){return n(n.s=97946)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/node-7b5c687e26d6ca72.js b/renterd/assets/_next/static/chunks/pages/node-2ca2bc1ac2348f40.js similarity index 94% rename from renterd/assets/_next/static/chunks/pages/node-7b5c687e26d6ca72.js rename to renterd/assets/_next/static/chunks/pages/node-2ca2bc1ac2348f40.js index 2b2802019..7a14cc207 100644 --- a/renterd/assets/_next/static/chunks/pages/node-7b5c687e26d6ca72.js +++ b/renterd/assets/_next/static/chunks/pages/node-2ca2bc1ac2348f40.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[54],{27725:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/node",function(){return t(61936)}])},89630:function(e,n,t){"use strict";t.d(n,{J:function(){return h}});var i=t(52322),s=t(35701),r=t(9969),a=t(6391),o=t.n(a),l=t(71930),d=t(25573),c=t(86811);function u(){var e,n,t,a,o;let{openDialog:l}=(0,c.Rh)(),u=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}}),x=(0,r.X2)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,r.cQ)(),v=(0,d.n)(),f=null===(e=u.data)||void 0===e?void 0:e.version,j="?"===f?"https://github.com/SiaFoundation/renterd/commits/":(null==f?void 0:f.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(f):"https://github.com/SiaFoundation/renterd/tree/".concat(f);return(0,i.jsxs)(s.HfT,{name:"renterd",peerCount:null===(n=h.data)||void 0===n?void 0:n.length,connectPeer:()=>l("connectPeer"),isSynced:v.isSynced,syncPercent:v.syncPercent,nodeBlockHeight:v.nodeBlockHeight,estimatedBlockHeight:v.estimatedBlockHeight,firstTimeSyncing:v.firstTimeSyncing,moreThan100BlocksToSync:v.moreThan100BlocksToSync,children:[(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(s.XxW,{size:"14",maxLength:50,value:null===(t=x.data)||void 0===t?void 0:t.address,type:"address"})})]}),(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(s.xvT,{size:"14",children:null===(a=u.data)||void 0===a?void 0:a.network})})]}),(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,i.jsx)(s.rUS,{size:"14",href:j,underline:"hover",target:"_blank",ellipsis:!0,children:null===(o=u.data)||void 0===o?void 0:o.version})]})]})}function x(){let e=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,i.jsx)(s.t6k,{testnetName:e.data.network}):null}function h(e){let n=(0,r.X2)(),{isSynced:t}=(0,d.n)();return(0,i.jsx)(s.tU3,{appName:"renterd",profile:(0,i.jsx)(u,{}),banner:(0,i.jsx)(x,{}),connectivityRoute:l.h,isSynced:t,walletBalanceSc:n.data&&{spendable:new(o())(n.data.spendable),confirmed:new(o())(n.data.confirmed),unconfirmed:new(o())(n.data.unconfirmed)},...e})}},91930:function(e,n,t){"use strict";t.d(n,{e:function(){return c}});var i=t(52322),s=t(35701),r=t(88242),a=t(9969),o=t(82851),l=t(71930),d=t(86811);function c(){var e,n;let t=(0,a.Z7)(),{openDialog:c}=(0,d.Rh)(),u=!(null===(e=t.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(n=t.data)||void 0===n?void 0:n.length)||0;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.KJW,{title:"Files",route:l._.files.index,children:(0,i.jsx)(r.ROc,{})}),(0,i.jsx)(s.KJW,{title:"Configuration",route:l._.config.index,children:(0,i.jsx)(r.wWN,{})}),(0,i.jsx)(s.KJW,{title:"Contracts",route:l._.contracts.index,children:(0,i.jsx)(r.VBo,{})}),(0,i.jsx)(s.KJW,{title:"Hosts",route:l._.hosts.index,children:(0,i.jsx)(r.VHe,{})}),(0,i.jsxs)("div",{className:"relative",children:[!!x&&u&&(0,i.jsx)("div",{className:(0,o.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!x&&!u&&(0,i.jsx)(s.xvT,{size:"10",className:(0,o.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:x.toLocaleString()}),(0,i.jsx)(s.KJW,{title:"Alerts",onClick:()=>c("alerts"),children:(0,i.jsx)(r.Dkj,{})})]})]})}},61936:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=t(52322),s=t(35701),r=t(9969),a=t(71930),o=t(86811),l=t(91930),d=t(89630);function c(){var e,n,t;let c=(0,r.cQ)(),u=(0,r.QL)({config:{swr:{refreshInterval:3e4}}}),x=(0,r.DQ)({config:{swr:{refreshInterval:3e4}}}),{openDialog:h}=(0,o.Rh)();return(0,i.jsx)(d.J,{routes:a._,sidenav:(0,i.jsx)(l.e,{}),openSettings:()=>h("settings"),title:"Node",children:(0,i.jsxs)("div",{className:"flex flex-col gap-5 p-5",children:[(0,i.jsxs)("div",{className:"flex flex-wrap gap-7",children:[(0,i.jsx)(s.ncR,{label:"Height",value:x.data?Number(x.data.blockHeight).toLocaleString():void 0,comment:(null===(e=x.data)||void 0===e?void 0:e.synced)?void 0:"Syncing"}),(0,i.jsx)(s.ncR,{label:"Connected peers",value:null===(n=c.data)||void 0===n?void 0:n.length}),(0,i.jsx)(s.ncR,{label:"Transactions in pool",value:null===(t=u.data)||void 0===t?void 0:t.length})]}),(0,i.jsx)(s.u5Q,{peers:c.data,isLoading:c.isValidating,connectPeer:()=>h("connectPeer")})]})})}function u(){return(0,i.jsx)(c,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=27725)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[54],{27725:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/node",function(){return t(61936)}])},89630:function(e,n,t){"use strict";t.d(n,{J:function(){return h}});var i=t(52322),s=t(57362),r=t(9969),a=t(6391),o=t.n(a),l=t(71930),d=t(25573),c=t(86811);function u(){var e,n,t,a,o;let{openDialog:l}=(0,c.Rh)(),u=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}}),x=(0,r.X2)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,r.cQ)(),v=(0,d.n)(),f=null===(e=u.data)||void 0===e?void 0:e.version,j="?"===f?"https://github.com/SiaFoundation/renterd/commits/":(null==f?void 0:f.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(f):"https://github.com/SiaFoundation/renterd/tree/".concat(f);return(0,i.jsxs)(s.HfT,{name:"renterd",peerCount:null===(n=h.data)||void 0===n?void 0:n.length,connectPeer:()=>l("connectPeer"),isSynced:v.isSynced,syncPercent:v.syncPercent,nodeBlockHeight:v.nodeBlockHeight,estimatedBlockHeight:v.estimatedBlockHeight,firstTimeSyncing:v.firstTimeSyncing,moreThan100BlocksToSync:v.moreThan100BlocksToSync,children:[(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(s.XxW,{size:"14",maxLength:50,value:null===(t=x.data)||void 0===t?void 0:t.address,type:"address"})})]}),(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(s.xvT,{size:"14",children:null===(a=u.data)||void 0===a?void 0:a.network})})]}),(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,i.jsx)(s.rUS,{size:"14",href:j,underline:"hover",target:"_blank",ellipsis:!0,children:null===(o=u.data)||void 0===o?void 0:o.version})]})]})}function x(){let e=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,i.jsx)(s.t6k,{testnetName:e.data.network}):null}function h(e){let n=(0,r.X2)(),{isSynced:t}=(0,d.n)();return(0,i.jsx)(s.tU3,{appName:"renterd",profile:(0,i.jsx)(u,{}),banner:(0,i.jsx)(x,{}),connectivityRoute:l.h,isSynced:t,walletBalanceSc:n.data&&{spendable:new(o())(n.data.spendable),confirmed:new(o())(n.data.confirmed),unconfirmed:new(o())(n.data.unconfirmed)},...e})}},91930:function(e,n,t){"use strict";t.d(n,{e:function(){return c}});var i=t(52322),s=t(57362),r=t(88242),a=t(9969),o=t(82851),l=t(71930),d=t(86811);function c(){var e,n;let t=(0,a.Z7)(),{openDialog:c}=(0,d.Rh)(),u=!(null===(e=t.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(n=t.data)||void 0===n?void 0:n.length)||0;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.KJW,{title:"Files",route:l._.files.index,children:(0,i.jsx)(r.ROc,{})}),(0,i.jsx)(s.KJW,{title:"Configuration",route:l._.config.index,children:(0,i.jsx)(r.wWN,{})}),(0,i.jsx)(s.KJW,{title:"Contracts",route:l._.contracts.index,children:(0,i.jsx)(r.VBo,{})}),(0,i.jsx)(s.KJW,{title:"Hosts",route:l._.hosts.index,children:(0,i.jsx)(r.VHe,{})}),(0,i.jsxs)("div",{className:"relative",children:[!!x&&u&&(0,i.jsx)("div",{className:(0,o.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!x&&!u&&(0,i.jsx)(s.xvT,{size:"10",className:(0,o.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:x.toLocaleString()}),(0,i.jsx)(s.KJW,{title:"Alerts",onClick:()=>c("alerts"),children:(0,i.jsx)(r.Dkj,{})})]})]})}},61936:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=t(52322),s=t(57362),r=t(9969),a=t(71930),o=t(86811),l=t(91930),d=t(89630);function c(){var e,n,t;let c=(0,r.cQ)(),u=(0,r.QL)({config:{swr:{refreshInterval:3e4}}}),x=(0,r.DQ)({config:{swr:{refreshInterval:3e4}}}),{openDialog:h}=(0,o.Rh)();return(0,i.jsx)(d.J,{routes:a._,sidenav:(0,i.jsx)(l.e,{}),openSettings:()=>h("settings"),title:"Node",children:(0,i.jsxs)("div",{className:"flex flex-col gap-5 p-5",children:[(0,i.jsxs)("div",{className:"flex flex-wrap gap-7",children:[(0,i.jsx)(s.ncR,{label:"Height",value:x.data?Number(x.data.blockHeight).toLocaleString():void 0,comment:(null===(e=x.data)||void 0===e?void 0:e.synced)?void 0:"Syncing"}),(0,i.jsx)(s.ncR,{label:"Connected peers",value:null===(n=c.data)||void 0===n?void 0:n.length}),(0,i.jsx)(s.ncR,{label:"Transactions in pool",value:null===(t=u.data)||void 0===t?void 0:t.length})]}),(0,i.jsx)(s.u5Q,{peers:c.data,isLoading:c.isValidating,connectPeer:()=>h("connectPeer")})]})})}function u(){return(0,i.jsx)(c,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=27725)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/wallet-2e196f4ed9637ee1.js b/renterd/assets/_next/static/chunks/pages/wallet-1a1d8b8c90854cd1.js similarity index 96% rename from renterd/assets/_next/static/chunks/pages/wallet-2e196f4ed9637ee1.js rename to renterd/assets/_next/static/chunks/pages/wallet-1a1d8b8c90854cd1.js index f55a3caab..a2fe138b2 100644 --- a/renterd/assets/_next/static/chunks/pages/wallet-2e196f4ed9637ee1.js +++ b/renterd/assets/_next/static/chunks/pages/wallet-1a1d8b8c90854cd1.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[789],{69171:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/wallet",function(){return t(97677)}])},89630:function(e,n,t){"use strict";t.d(n,{J:function(){return f}});var s=t(52322),i=t(35701),a=t(9969),r=t(6391),l=t.n(r),c=t(71930),d=t(25573),o=t(86811);function u(){var e,n,t,r,l;let{openDialog:c}=(0,o.Rh)(),u=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}}),x=(0,a.X2)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,a.cQ)(),h=(0,d.n)(),j=null===(e=u.data)||void 0===e?void 0:e.version,v="?"===j?"https://github.com/SiaFoundation/renterd/commits/":(null==j?void 0:j.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(j):"https://github.com/SiaFoundation/renterd/tree/".concat(j);return(0,s.jsxs)(i.HfT,{name:"renterd",peerCount:null===(n=f.data)||void 0===n?void 0:n.length,connectPeer:()=>c("connectPeer"),isSynced:h.isSynced,syncPercent:h.syncPercent,nodeBlockHeight:h.nodeBlockHeight,estimatedBlockHeight:h.estimatedBlockHeight,firstTimeSyncing:h.firstTimeSyncing,moreThan100BlocksToSync:h.moreThan100BlocksToSync,children:[(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.XxW,{size:"14",maxLength:50,value:null===(t=x.data)||void 0===t?void 0:t.address,type:"address"})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.xvT,{size:"14",children:null===(r=u.data)||void 0===r?void 0:r.network})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,s.jsx)(i.rUS,{size:"14",href:v,underline:"hover",target:"_blank",ellipsis:!0,children:null===(l=u.data)||void 0===l?void 0:l.version})]})]})}function x(){let e=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,s.jsx)(i.t6k,{testnetName:e.data.network}):null}function f(e){let n=(0,a.X2)(),{isSynced:t}=(0,d.n)();return(0,s.jsx)(i.tU3,{appName:"renterd",profile:(0,s.jsx)(u,{}),banner:(0,s.jsx)(x,{}),connectivityRoute:c.h,isSynced:t,walletBalanceSc:n.data&&{spendable:new(l())(n.data.spendable),confirmed:new(l())(n.data.confirmed),unconfirmed:new(l())(n.data.unconfirmed)},...e})}},91930:function(e,n,t){"use strict";t.d(n,{e:function(){return o}});var s=t(52322),i=t(35701),a=t(88242),r=t(9969),l=t(82851),c=t(71930),d=t(86811);function o(){var e,n;let t=(0,r.Z7)(),{openDialog:o}=(0,d.Rh)(),u=!(null===(e=t.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(n=t.data)||void 0===n?void 0:n.length)||0;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.KJW,{title:"Files",route:c._.files.index,children:(0,s.jsx)(a.ROc,{})}),(0,s.jsx)(i.KJW,{title:"Configuration",route:c._.config.index,children:(0,s.jsx)(a.wWN,{})}),(0,s.jsx)(i.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,s.jsx)(a.VBo,{})}),(0,s.jsx)(i.KJW,{title:"Hosts",route:c._.hosts.index,children:(0,s.jsx)(a.VHe,{})}),(0,s.jsxs)("div",{className:"relative",children:[!!x&&u&&(0,s.jsx)("div",{className:(0,l.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!x&&!u&&(0,s.jsx)(i.xvT,{size:"10",className:(0,l.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:x.toLocaleString()}),(0,s.jsx)(i.KJW,{title:"Alerts",onClick:()=>o("alerts"),children:(0,s.jsx)(a.Dkj,{})})]})]})}},97677:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return p}});var s=t(52322),i=t(35701),a=t(9969),r=t(86811),l=t(71930),c=t(6391),d=t.n(c),o=t(91930),u=t(89630),x=t(25573),f=t(88242);function h(){let{openDialog:e}=(0,r.Rh)();return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,s.jsx)(i.xvT,{children:(0,s.jsx)(f.HCc,{className:"scale-[200%]"})}),(0,s.jsxs)("div",{className:"flex flex-col gap-6 justify-center items-center",children:[(0,s.jsxs)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["Send funds to your ",(0,s.jsx)(i.EKh,{children:"renterd"})," wallet address to get started."]}),(0,s.jsx)(i.zxk,{variant:"accent",onClick:()=>e("addressDetails"),children:"View address"})]})]})}var j=t(63171);function v(){let{isSynced:e,syncPercent:n,isWalletSynced:t,walletScanPercent:a}=(0,x.n)();return(0,s.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,s.jsx)(i.DmW,{isSynced:e,isWalletSynced:t,syncPercent:n,walletScanPercent:a}),(0,s.jsx)("div",{className:"flex-1"})]})}function m(){let{openDialog:e}=(0,r.Rh)(),n=(0,a.X2)(),{dataset:t,offset:c,limit:f,pageCount:m,dataState:p,balances:g,metrics:w}=(0,j.n)(),{isSynced:y,syncPercent:N,isWalletSynced:b,walletScanPercent:S}=(0,x.n)();return(0,s.jsx)(u.J,{routes:l._,sidenav:(0,s.jsx)(o.e,{}),openSettings:()=>e("settings"),title:"Wallet",actions:(0,s.jsx)(i.QUh,{isSynced:y,isWalletSynced:b,syncPercent:N,walletScanPercent:S,balanceSc:n.data?{spendable:new(d())(n.data.spendable),unconfirmed:new(d())(n.data.unconfirmed),confirmed:new(d())(n.data.confirmed)}:void 0,receiveSiacoin:()=>e("addressDetails"),sendSiacoin:()=>e("sendSiacoin")}),stats:(0,s.jsx)(v,{}),children:(0,s.jsxs)("div",{className:"p-6 flex flex-col gap-5",children:[(null==g?void 0:g.length)?(0,s.jsx)(i.Z58,{chartType:"line",balances:g,isLoading:w.isValidating}):null,(0,s.jsx)(i.XOF,{title:"Transactions",isLoading:"loading"===p,dataset:t,emptyState:(0,s.jsx)(h,{}),actions:(0,s.jsx)(i.wFK,{offset:c,limit:f,pageTotal:m,isLoading:"loading"===p})})]})})}function p(){return(0,s.jsx)(m,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=69171)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[789],{69171:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/wallet",function(){return t(97677)}])},89630:function(e,n,t){"use strict";t.d(n,{J:function(){return f}});var s=t(52322),i=t(57362),a=t(9969),r=t(6391),l=t.n(r),c=t(71930),d=t(25573),o=t(86811);function u(){var e,n,t,r,l;let{openDialog:c}=(0,o.Rh)(),u=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}}),x=(0,a.X2)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,a.cQ)(),h=(0,d.n)(),j=null===(e=u.data)||void 0===e?void 0:e.version,v="?"===j?"https://github.com/SiaFoundation/renterd/commits/":(null==j?void 0:j.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(j):"https://github.com/SiaFoundation/renterd/tree/".concat(j);return(0,s.jsxs)(i.HfT,{name:"renterd",peerCount:null===(n=f.data)||void 0===n?void 0:n.length,connectPeer:()=>c("connectPeer"),isSynced:h.isSynced,syncPercent:h.syncPercent,nodeBlockHeight:h.nodeBlockHeight,estimatedBlockHeight:h.estimatedBlockHeight,firstTimeSyncing:h.firstTimeSyncing,moreThan100BlocksToSync:h.moreThan100BlocksToSync,children:[(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.XxW,{size:"14",maxLength:50,value:null===(t=x.data)||void 0===t?void 0:t.address,type:"address"})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(i.xvT,{size:"14",children:null===(r=u.data)||void 0===r?void 0:r.network})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,s.jsx)(i.rUS,{size:"14",href:v,underline:"hover",target:"_blank",ellipsis:!0,children:null===(l=u.data)||void 0===l?void 0:l.version})]})]})}function x(){let e=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,s.jsx)(i.t6k,{testnetName:e.data.network}):null}function f(e){let n=(0,a.X2)(),{isSynced:t}=(0,d.n)();return(0,s.jsx)(i.tU3,{appName:"renterd",profile:(0,s.jsx)(u,{}),banner:(0,s.jsx)(x,{}),connectivityRoute:c.h,isSynced:t,walletBalanceSc:n.data&&{spendable:new(l())(n.data.spendable),confirmed:new(l())(n.data.confirmed),unconfirmed:new(l())(n.data.unconfirmed)},...e})}},91930:function(e,n,t){"use strict";t.d(n,{e:function(){return o}});var s=t(52322),i=t(57362),a=t(88242),r=t(9969),l=t(82851),c=t(71930),d=t(86811);function o(){var e,n;let t=(0,r.Z7)(),{openDialog:o}=(0,d.Rh)(),u=!(null===(e=t.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(n=t.data)||void 0===n?void 0:n.length)||0;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.KJW,{title:"Files",route:c._.files.index,children:(0,s.jsx)(a.ROc,{})}),(0,s.jsx)(i.KJW,{title:"Configuration",route:c._.config.index,children:(0,s.jsx)(a.wWN,{})}),(0,s.jsx)(i.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,s.jsx)(a.VBo,{})}),(0,s.jsx)(i.KJW,{title:"Hosts",route:c._.hosts.index,children:(0,s.jsx)(a.VHe,{})}),(0,s.jsxs)("div",{className:"relative",children:[!!x&&u&&(0,s.jsx)("div",{className:(0,l.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!x&&!u&&(0,s.jsx)(i.xvT,{size:"10",className:(0,l.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:x.toLocaleString()}),(0,s.jsx)(i.KJW,{title:"Alerts",onClick:()=>o("alerts"),children:(0,s.jsx)(a.Dkj,{})})]})]})}},97677:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return p}});var s=t(52322),i=t(57362),a=t(9969),r=t(86811),l=t(71930),c=t(6391),d=t.n(c),o=t(91930),u=t(89630),x=t(25573),f=t(88242);function h(){let{openDialog:e}=(0,r.Rh)();return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,s.jsx)(i.xvT,{children:(0,s.jsx)(f.HCc,{className:"scale-[200%]"})}),(0,s.jsxs)("div",{className:"flex flex-col gap-6 justify-center items-center",children:[(0,s.jsxs)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["Send funds to your ",(0,s.jsx)(i.EKh,{children:"renterd"})," wallet address to get started."]}),(0,s.jsx)(i.zxk,{variant:"accent",onClick:()=>e("addressDetails"),children:"View address"})]})]})}var j=t(63171);function v(){let{isSynced:e,syncPercent:n,isWalletSynced:t,walletScanPercent:a}=(0,x.n)();return(0,s.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,s.jsx)(i.DmW,{isSynced:e,isWalletSynced:t,syncPercent:n,walletScanPercent:a}),(0,s.jsx)("div",{className:"flex-1"})]})}function m(){let{openDialog:e}=(0,r.Rh)(),n=(0,a.X2)(),{dataset:t,offset:c,limit:f,pageCount:m,dataState:p,balances:g,metrics:w}=(0,j.n)(),{isSynced:y,syncPercent:N,isWalletSynced:b,walletScanPercent:S}=(0,x.n)();return(0,s.jsx)(u.J,{routes:l._,sidenav:(0,s.jsx)(o.e,{}),openSettings:()=>e("settings"),title:"Wallet",actions:(0,s.jsx)(i.QUh,{isSynced:y,isWalletSynced:b,syncPercent:N,walletScanPercent:S,balanceSc:n.data?{spendable:new(d())(n.data.spendable),unconfirmed:new(d())(n.data.unconfirmed),confirmed:new(d())(n.data.confirmed)}:void 0,receiveSiacoin:()=>e("addressDetails"),sendSiacoin:()=>e("sendSiacoin")}),stats:(0,s.jsx)(v,{}),children:(0,s.jsxs)("div",{className:"p-6 flex flex-col gap-5",children:[(null==g?void 0:g.length)?(0,s.jsx)(i.Z58,{chartType:"line",balances:g,isLoading:w.isValidating}):null,(0,s.jsx)(i.XOF,{title:"Transactions",isLoading:"loading"===p,dataset:t,emptyState:(0,s.jsx)(h,{}),actions:(0,s.jsx)(i.wFK,{offset:c,limit:f,pageTotal:m,isLoading:"loading"===p})})]})})}function p(){return(0,s.jsx)(m,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=69171)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/webpack-2d55568177a0cb4d.js b/renterd/assets/_next/static/chunks/webpack-2d55568177a0cb4d.js new file mode 100644 index 000000000..27af46ef4 --- /dev/null +++ b/renterd/assets/_next/static/chunks/webpack-2d55568177a0cb4d.js @@ -0,0 +1 @@ +!function(){"use strict";var e,t,n,r,o,u,i,c,f,a={},l={};function d(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={id:e,loaded:!1,exports:{}},r=!0;try{a[e].call(n.exports,n,n.exports,d),r=!1}finally{r&&delete l[e]}return n.loaded=!0,n.exports}d.m=a,d.amdO={},e=[],d.O=function(t,n,r,o){if(n){o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u=o&&Object.keys(d.O).every(function(e){return d.O[e](n[f])})?n.splice(f--,1):(c=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u=o&&Object.keys(l.O).every(function(e){return l.O[e](n[f])})?n.splice(f--,1):(c=!1,o\*\:first-child\]\:rounded-l>:first-child{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.\[\&\>\*\:first-child\]\:border-l>:first-child{border-left-width:1px}.\[\&\>\*\:last-child\]\:rounded-r>:last-child{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.\[\&\>\*\:last-child\]\:border-r>:last-child{border-right-width:1px}.\[\&\>\*\]\:rounded-none>*{border-radius:0}.\[\&\>\*\]\:border-l>*{border-left-width:1px}.\[\&\>\*\]\:border-r-0>*{border-right-width:0}.\[\&\>div\]\:\!block>div{display:block!important}.\[\&\>div\]\:\!h-full>div{height:100%!important}.\[\&\>div\]\:flex-1>div{flex:1 1 0%}.\[\&\>div\]\:overflow-hidden>div{overflow:hidden}.\[\&\>p\]\:\!py-0>p{padding-top:0!important;padding-bottom:0!important}.\[\&\>select\:disabled\]\:text-gray-600>select:disabled{--tw-text-opacity:1;color:hsl(207 11.1% 85.9%/var(--tw-text-opacity))}.dark .\[\&\>select\:disabled\]\:dark\:text-graydark-700>select:disabled{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.\[\&\>svg\]\:-mx-0\.5>svg{margin-left:-.125rem;margin-right:-.125rem}.\[\&\>svg\]\:opacity-50>svg{opacity:.5}.hover\:\[\&\>svg\]\:opacity-100>svg:hover{opacity:1}.\[\&\[href\]\]\:border-green-800\/30[href]{border-color:rgba(22,101,52,.3)}.\[\&\[href\]\]\:bg-green-700[href]{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.\[\&\[href\]\]\:hover\:border-green-800\/50:hover[href]{border-color:rgba(22,101,52,.5)}.\[\&\[href\]\]\:hover\:bg-green-800\/90:hover[href]{background-color:rgba(22,101,52,.9)}.dark .\[\&\[href\]\]\:dark\:border-green-600\/70[href]{border-color:rgba(22,163,74,.7)}.dark .\[\&\[href\]\]\:dark\:bg-green-700[href]{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.dark .dark\:\[\&\[href\]\]\:hover\:bg-green-700\/90:hover[href]{background-color:rgba(21,128,61,.9)}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/1eff7769948a8c71-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/7a86083759ce0787-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/1fece7a471d60ffe-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/94e828afa3939314-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/dcb90225ac4215b0-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/21379288e5de0162-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/20a0263cfae743ff-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/a06cddabfd904d07-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/c05280b20c19cff6-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/ab3a7057d2c303a3-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/e7a1d48695380088-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/7a514966b24fa042-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/f34054e2970d3793-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/ee809f9c8637ac35-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/416dffb3eaba61b5-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/b2613c7882fb9dad-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/00b652cd5acf4d1a-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/318cd1ba86719051-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/26570e7eecd756a7-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/6ad357e49f846140-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/c1dadd6c99c0900a-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/9fb8e434756a520e-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/b83e9714dba3a7b2-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/7729f7b3bc7fa987-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/69dc0d8a22bc572a-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/d752111844abddfa-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/7fe39de114f984a0-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/6c817bbad1cfd130-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/bc7cd6cbdb8771c6-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/1b708ab38c59f94d-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/ed08f0e693ce6a65-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/0be44b380099e057-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/f4ebea4f2ece3dbe-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/f7e3cefe6d9fda21-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/26d0ad28b444f0fb-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/d704a8fea67672dc-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/3ce4c920cddd7002-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/1027f57de01c0b24-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/23313877d5d6ff1b-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/00417edf5e44282b-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/228a95c965c5f90b-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/97c8a55b2cb1421c-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/86d6d32ab6c2e21d-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/07304b90e9b5ca40-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/54f3953b28e50f98-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/a40ccebe730e6b34-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/01ec6e01ff4830ae-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/34d8d58b783ee6bb-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/3763ada0a9bb1988-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/787b0654beea4191-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/2c3c1f0838a71cfb-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/47bcda1e7b1ac8be-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/bed76354f405346d-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/c70aa70a01eaecff-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/24cfcc12c15b03b9-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/29ffcd3df3f1cb91-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/3cef106cd115e360-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/a0c95037dd5c9387-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/e889cd181219a83f-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/6d6d0e4a023f9f33-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/0148c4ca3456ea72-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/4184cf5f191b83db-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/28cea0425961ab58-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/b4c759cba7a5f011-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/de555e6bc944c11a-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/791334aa8b2b679f-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/a2411df190893074-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/60d74363e715829c-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/eb37c9fe4776ea97-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/bc381c5935034aa5-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/f565fad065ab4cf3-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/f9946f06d70a1b5b-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/d1f5f89450ecd78c-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/ebcf93a611f94ec0-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/ec50b434b597bc61-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/6be22a85bef54f08-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/9491f41002d34397-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/afba6ba6bf9157e8-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/be843c5b0882ad66-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/67aea609c6135b3b-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/09b62d668edb05d1-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/10446295ae7f2657-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/b6ecfd81ed9f83c9-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/08404bcfb1dae67a-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_Fallback_829fdc;src:local("Arial");ascent-override:101.44%;descent-override:27.22%;line-gap-override:0.00%;size-adjust:101.04%}.__className_829fdc{font-family:__IBM_Plex_Sans_829fdc,__IBM_Plex_Sans_Fallback_829fdc}.__variable_829fdc{--font-sans:"__IBM_Plex_Sans_829fdc","__IBM_Plex_Sans_Fallback_829fdc"}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/43f58290d48b3e4f-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/f7b042c81aa9dac9-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/5f52e8aafa6d55e1-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/7c8d3f8a7910b37f-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/c91ca22957702d7a-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/e31631a967fe3515-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/e46a860e09e79916-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/2d1700372dfaaa94-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/27834a3ea5568a72-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/ba1ff977fd46651f-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/aa5329918e5352b7-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/3546445dbedfe8e0-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/a329a67c917d0d83-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/32ef35af86a1df18-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/42c2d543c4ca0ff8-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/4acd96e66b7a15d8-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/c00fdcaa534cf51c-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/a9b64de7575b01f6-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/e05a5a1d4048d7df-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/a9387c470a117487-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/5b5f10d1030076fd-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/66b34bbb56a523d8-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/62e8d71f5f62d0a9-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/4f5bd398699bdcf0-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/5873ad5359ff35c9-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/a08baca5e17c57be-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/b8347de82b1bd9a8-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/99163ae90df46b27-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/b9432a067aca8720-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/c3f479ae50d16e35-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/d4eddeab410cd094-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/1674d377433d7de6-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/f65f080f6ad9aa76-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/7a44530bd17b4a4c-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/37e85b36581a02ab-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/1e0eb4a7325b5d14-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/136ae42764b7e0db-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/b17f4305e2f0c22a-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/a7f64a09f7737545-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/98bcafdc59ee6d65-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/ce562f20499ad585-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/57699fff66d5761c-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/e490b1ecb6589d48-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/524be5e37a616f9b-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/c690761783507ad4-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/5a7dbca54c2fc4dd-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/d4e99c199dab3055-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/9ae1ac821a4debaf-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/ec1b1cbc512bc43e-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/463cef7d4672ba68-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/ebec2867f40f78ec-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/d607327a37a507c7-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/2e1b830192b7974a-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/3aa27b2eb5f698f7-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/3478b6abef19b3b3-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/b6f2eee8808a2bb4-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/bc2003170c651d45-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/d43ef4503e5571d0-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/3281a323710833ec-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/684e5662d94c69e1-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/97b12f7b815cdf76-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/19fc70611c7ee6d5-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/01721b474504e7d6-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/3ccf24bed29cbb82-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/be2416cbb012c256-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/7524e759b2d52ce2-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/83feb047e42e457a-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/40bfb1458eaec497-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/8ea51a27e153ec43-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/035951aefad7b653-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_Fallback_355ef5;src:local("Arial");ascent-override:75.41%;descent-override:20.23%;line-gap-override:0.00%;size-adjust:135.93%}.__className_355ef5{font-family:__IBM_Plex_Mono_355ef5,__IBM_Plex_Mono_Fallback_355ef5}.__variable_355ef5{--font-mono:"__IBM_Plex_Mono_355ef5","__IBM_Plex_Mono_Fallback_355ef5"} \ No newline at end of file diff --git a/renterd/assets/_next/static/css/6fb57ee46ee89f47.css b/renterd/assets/_next/static/css/6fb57ee46ee89f47.css new file mode 100644 index 000000000..ea1d60852 --- /dev/null +++ b/renterd/assets/_next/static/css/6fb57ee46ee89f47.css @@ -0,0 +1,3 @@ +/* +! tailwindcss v3.2.7 | MIT License | https://tailwindcss.com +*/*,:after,:before{box-sizing:border-box;border:0 solid #f1f3f5}:after,:before{--tw-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:var(--font-sans),ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--font-mono),ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#e6e8eb}input::placeholder,textarea::placeholder{opacity:1;color:#e6e8eb}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*{scrollbar-color:auto;scrollbar-width:auto}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.fixed{position:fixed}.\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-bottom-2{bottom:-.5rem}.-bottom-2\.5{bottom:-.625rem}.-left-7{left:-1.75rem}.-right-\[2px\]{right:-2px}.-right-\[9px\]{right:-9px}.-top-0{top:0}.-top-0\.5{top:-.125rem}.-top-1{top:-.25rem}.-top-\[100px\]{top:-100px}.-top-\[5px\]{top:-5px}.-top-px{top:-1px}.bottom-0{bottom:0}.bottom-5{bottom:1.25rem}.bottom-\[100\%\]{bottom:100%}.left-0{left:0}.left-1{left:.25rem}.left-1\.5{left:.375rem}.left-1\/2{left:50%}.left-2{left:.5rem}.left-4{left:1rem}.left-6{left:1.5rem}.right-0{right:0}.right-2{right:.5rem}.right-3{right:.75rem}.right-4{right:1rem}.right-5{right:1.25rem}.top-0{top:0}.top-0\.5{top:.125rem}.top-1{top:.25rem}.top-3{top:.75rem}.top-3\.5{top:.875rem}.top-5{top:1.25rem}.top-\[-0\.5px\]{top:-.5px}.top-\[-30px\]{top:-30px}.top-\[-50px\]{top:-50px}.top-\[100\%\]{top:100%}.top-\[200px\]{top:200px}.top-px{top:1px}.-z-10{z-index:-10}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.\!-m-2{margin:-.5rem!important}.-m-4{margin:-1rem}.m-0{margin:0}.m-px{margin:1px}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-mx-5{margin-left:-1.25rem;margin-right:-1.25rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-1\.5{margin-left:.375rem;margin-right:.375rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-1\.5{margin-top:.375rem;margin-bottom:.375rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-mr-0{margin-right:0}.-mr-0\.5{margin-right:-.125rem}.mb-0{margin-bottom:0}.mb-0\.5{margin-bottom:.125rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-5{margin-bottom:1.25rem}.ml-1{margin-left:.25rem}.ml-auto{margin-left:auto}.ml-px{margin-left:1px}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.mt-\[5px\]{margin-top:5px}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.\!h-\[400px\]{height:400px!important}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-28{height:7rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-\[100px\]{height:100px}.h-\[120px\]{height:120px}.h-\[14px\]{height:14px}.h-\[200px\]{height:200px}.h-\[200vh\]{height:200vh}.h-\[20px\]{height:20px}.h-\[210px\]{height:210px}.h-\[300px\]{height:300px}.h-\[30px\]{height:30px}.h-\[400px\]{height:400px}.h-\[50px\]{height:50px}.h-\[70\%\]{height:70%}.h-\[80vh\]{height:80vh}.h-\[84px\]{height:84px}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\[400px\]{max-height:400px}.max-h-\[600px\]{max-height:600px}.max-h-\[70vh\]{max-height:70vh}.min-h-\[80px\]{min-height:80px}.min-h-full{min-height:100%}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-28{width:7rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\[100px\]{width:100px}.w-\[120px\]{width:120px}.w-\[140px\]{width:140px}.w-\[150px\]{width:150px}.w-\[160px\]{width:160px}.w-\[200px\]{width:200px}.w-\[200vw\]{width:200vw}.w-\[210px\]{width:210px}.w-\[220px\]{width:220px}.w-\[250px\]{width:250px}.w-\[300px\]{width:300px}.w-\[350px\]{width:350px}.w-\[400px\]{width:400px}.w-\[450px\]{width:450px}.w-\[500px\]{width:500px}.w-\[50px\]{width:50px}.w-\[60px\]{width:60px}.w-\[75px\]{width:75px}.w-\[800px\]{width:800px}.w-\[90\%\]{width:90%}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-px{width:1px}.min-w-\[200px\]{min-width:200px}.min-w-\[250px\]{min-width:250px}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.\!max-w-\[1200px\]{max-width:1200px!important}.\!max-w-md{max-width:28rem!important}.\!max-w-none{max-width:none!important}.max-w-\[1145px\]{max-width:1145px}.max-w-\[300px\]{max-width:300px}.max-w-\[500px\]{max-width:500px}.max-w-\[600px\]{max-width:600px}.max-w-\[800px\]{max-width:800px}.max-w-none{max-width:none}.max-w-screen-2xl{max-width:1536px}.max-w-screen-md{max-width:768px}.max-w-screen-sm{max-width:640px}.max-w-screen-xl{max-width:1280px}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.\!flex-none{flex:none!important}.flex-1{flex:1 1 0%}.flex-\[2\]{flex:2}.flex-none{flex:none}.flex-shrink-0,.shrink-0{flex-shrink:0}.table-auto{table-layout:auto}.border-collapse{border-collapse:collapse}.-translate-x-1\/2{--tw-translate-x:-50%}.-translate-x-1\/2,.-translate-y-1\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y:-50%}.translate-x-0{--tw-translate-x:0px}.translate-x-0,.translate-x-0\.5{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0\.5{--tw-translate-x:0.125rem}.translate-x-px{--tw-translate-x:1px}.scale-150,.translate-x-px{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-150{--tw-scale-x:1.5;--tw-scale-y:1.5}.scale-50{--tw-scale-x:.5;--tw-scale-y:.5}.scale-50,.scale-75{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-75{--tw-scale-x:.75;--tw-scale-y:.75}.scale-90{--tw-scale-x:.9;--tw-scale-y:.9}.scale-90,.scale-\[0\.65\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-\[0\.65\]{--tw-scale-x:0.65;--tw-scale-y:0.65}.scale-\[200\%\]{--tw-scale-x:200%;--tw-scale-y:200%}.scale-\[200\%\],.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pingslow{0%{transform:scale(1);opacity:1}60%{transform:scale(1);opacity:1}90%{transform:scale(2);opacity:0}to{transform:scale(2);opacity:0}}.animate-pingslow{animation:pingslow 3s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes pulselight{30%{opacity:1}50%{opacity:.2}70%{opacity:1}}.animate-pulselight{animation:pulselight 3s cubic-bezier(.4,0,.6,1) infinite}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-y{resize:vertical}.resize{resize:both}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-10{gap:2.5rem}.gap-12{gap:3rem}.gap-16{gap:4rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-7{gap:1.75rem}.gap-8{gap:2rem}.gap-px{gap:1px}.gap-x-12{-moz-column-gap:3rem;column-gap:3rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-y-1{row-gap:.25rem}.gap-y-10{row-gap:2.5rem}.gap-y-12{row-gap:3rem}.gap-y-4{row-gap:1rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;white-space:nowrap}.text-ellipsis,.truncate{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.rounded-tl-lg{border-top-left-radius:.5rem}.rounded-tr-lg{border-top-right-radius:.5rem}.border{border-width:1px}.border-2{border-width:2px}.border-y{border-top-width:1px;border-bottom-width:1px}.border-y-0{border-top-width:0;border-bottom-width:0}.border-b{border-bottom-width:1px}.border-b-3{border-bottom-width:3px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-dotted{border-style:dotted}.border-none{border-style:none}.border-accent-900{--tw-border-opacity:1;border-color:rgb(5 107 36/var(--tw-border-opacity))}.border-amber-500\/50{border-color:rgba(245,158,11,.5)}.border-amber-800\/30{border-color:rgba(146,64,14,.3)}.border-blue-500\/50{border-color:rgba(59,130,246,.5)}.border-gray-100{--tw-border-opacity:1;border-color:hsl(210 16.7% 97.6%/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:hsl(209 13.3% 95.3%/var(--tw-border-opacity))}.border-gray-200\/50{border-color:rgba(241,243,245,.5)}.border-gray-300{--tw-border-opacity:1;border-color:hsl(209 12.2% 93.2%/var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity:1;border-color:hsl(208 11.7% 91.1%/var(--tw-border-opacity))}.border-gray-400\/70{border-color:rgba(230,232,235,.7)}.border-gray-500{--tw-border-opacity:1;border-color:hsl(208 11.3% 88.9%/var(--tw-border-opacity))}.border-gray-600{--tw-border-opacity:1;border-color:hsl(207 11.1% 85.9%/var(--tw-border-opacity))}.border-gray-900{--tw-border-opacity:1;border-color:hsl(206 5.8% 52.3%/var(--tw-border-opacity))}.border-green-500{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.border-green-500\/50{border-color:rgba(34,197,94,.5)}.border-green-600{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.border-green-800\/30{border-color:rgba(22,101,52,.3)}.border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity))}.border-red-800\/30{border-color:rgba(153,27,27,.3)}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.bg-accent-200{--tw-bg-opacity:1;background-color:rgb(213 242 222/var(--tw-bg-opacity))}.bg-accent-800{--tw-bg-opacity:1;background-color:rgb(5 135 45/var(--tw-bg-opacity))}.bg-amber-300{--tw-bg-opacity:1;background-color:rgb(252 211 77/var(--tw-bg-opacity))}.bg-amber-500{--tw-bg-opacity:1;background-color:rgb(245 158 11/var(--tw-bg-opacity))}.bg-amber-600{--tw-bg-opacity:1;background-color:rgb(217 119 6/var(--tw-bg-opacity))}.bg-amber-700{--tw-bg-opacity:1;background-color:rgb(180 83 9/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-black\/70{background-color:rgba(0,0,0,.7)}.bg-blue-300{--tw-bg-opacity:1;background-color:rgb(147 197 253/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:hsl(210 16.7% 97.6%/var(--tw-bg-opacity))}.bg-gray-1000{--tw-bg-opacity:1;background-color:hsl(206 6% 43.5%/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:hsl(209 13.3% 95.3%/var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:hsl(209 12.2% 93.2%/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:hsl(206 30% 98.8%/var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity:1;background-color:hsl(208 11.3% 88.9%/var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity:1;background-color:hsl(205 10.7% 78%/var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity:1;background-color:hsl(206 6% 56.1%/var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity:1;background-color:hsl(206 5.8% 52.3%/var(--tw-bg-opacity))}.bg-green-100\/20{background-color:rgba(220,252,231,.2)}.bg-green-300{--tw-bg-opacity:1;background-color:rgb(134 239 172/var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.bg-green-700{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-red-700{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.bg-slate-400{--tw-bg-opacity:1;background-color:rgb(148 163 184/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-white{--tw-gradient-from:#fff;--tw-gradient-to:hsla(0,0%,100%,0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.via-white\/95{--tw-gradient-to:hsla(0,0%,100%,0);--tw-gradient-stops:var(--tw-gradient-from),hsla(0,0%,100%,.95),var(--tw-gradient-to)}.to-white{--tw-gradient-to:#fff}.fill-gray-1100{fill:#11181c}.fill-gray-600{fill:#d7dbdf}.fill-white{fill:#fff}.object-cover{-o-object-fit:cover;object-fit:cover}.\!p-1{padding:.25rem!important}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-3\.5{padding:.875rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-\[5px\]{padding:5px}.p-px{padding:1px}.\!px-1{padding-left:.25rem!important;padding-right:.25rem!important}.\!px-3{padding-left:.75rem!important;padding-right:.75rem!important}.\!py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-\[5px\]{padding-left:5px;padding-right:5px}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-14{padding-top:3.5rem;padding-bottom:3.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-40{padding-top:10rem;padding-bottom:10rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-px{padding-top:1px;padding-bottom:1px}.\!pl-0{padding-left:0!important}.\!pl-2{padding-left:.5rem!important}.\!pr-2{padding-right:.5rem!important}.\!pr-4{padding-right:1rem!important}.pb-1{padding-bottom:.25rem}.pb-10{padding-bottom:2.5rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-6{padding-bottom:1.5rem}.pb-px{padding-bottom:1px}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.pl-5{padding-left:1.25rem}.pl-6{padding-left:1.5rem}.pl-px{padding-left:1px}.pr-0{padding-right:0}.pr-0\.5{padding-right:.125rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-5{padding-right:1.25rem}.pr-6{padding-right:1.5rem}.pr-9{padding-right:2.25rem}.pt-0{padding-top:0}.pt-0\.5{padding-top:.125rem}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-40{padding-top:10rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-end{text-align:end}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono),ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}.font-sans{font-family:var(--font-sans),ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-6xl{font-size:3.75rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.text-xxs{font-size:.625rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.proportional-nums{--tw-numeric-spacing:proportional-nums}.proportional-nums,.tabular-nums{font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.tabular-nums{--tw-numeric-spacing:tabular-nums}.leading-normal{line-height:1.5}.leading-relaxed{line-height:1.625}.\!text-accent-1100{--tw-text-opacity:1!important;color:rgb(1 31 10/var(--tw-text-opacity))!important}.\!text-amber-600{--tw-text-opacity:1!important;color:rgb(217 119 6/var(--tw-text-opacity))!important}.\!text-emerald-700{--tw-text-opacity:1!important;color:rgb(4 120 87/var(--tw-text-opacity))!important}.\!text-gray-1000{--tw-text-opacity:1!important;color:hsl(206 6% 43.5%/var(--tw-text-opacity))!important}.\!text-gray-1100{--tw-text-opacity:1!important;color:hsl(206 24% 9%/var(--tw-text-opacity))!important}.\!text-gray-700{--tw-text-opacity:1!important;color:hsl(205 10.7% 78%/var(--tw-text-opacity))!important}.\!text-red-700{--tw-text-opacity:1!important;color:rgb(185 28 28/var(--tw-text-opacity))!important}.\!text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity))!important}.text-accent-1100{--tw-text-opacity:1;color:rgb(1 31 10/var(--tw-text-opacity))}.text-amber-600{--tw-text-opacity:1;color:rgb(217 119 6/var(--tw-text-opacity))}.text-emerald-700{--tw-text-opacity:1;color:rgb(4 120 87/var(--tw-text-opacity))}.text-gray-1000{--tw-text-opacity:1;color:hsl(206 6% 43.5%/var(--tw-text-opacity))}.text-gray-1100{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.text-gray-1100\/30{color:rgba(17,24,28,.3)}.text-gray-700{--tw-text-opacity:1;color:hsl(205 10.7% 78%/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:hsl(206 5.8% 52.3%/var(--tw-text-opacity))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.decoration-accent-900{text-decoration-color:#056b24}.decoration-accentdark-900{text-decoration-color:#069f35}.decoration-gray-1100{text-decoration-color:#11181c}.decoration-2{text-decoration-thickness:2px}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-95{opacity:.95}.opacity-\[10\%\]{opacity:10%}.mix-blend-difference{mix-blend-mode:difference}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-border-b{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-border-b{--tw-shadow:inset 0 -1px rgba(0,0,0,.3);--tw-shadow-colored:inset 0 -1px var(--tw-shadow-color)}.shadow-border-y{--tw-shadow:inset 0 1px 0 0 rgba(0,0,0,.3),inset 0 -1px 0 0 rgba(0,0,0,.3);--tw-shadow-colored:inset 0 1px 0 0 var(--tw-shadow-color),inset 0 -1px 0 0 var(--tw-shadow-color)}.shadow-border-y,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.\!shadow-amber-500{--tw-shadow-color:#f59e0b!important;--tw-shadow:var(--tw-shadow-colored)!important}.\!shadow-blue-500{--tw-shadow-color:#3b82f6!important;--tw-shadow:var(--tw-shadow-colored)!important}.\!shadow-blue-900{--tw-shadow-color:#1e3a8a!important;--tw-shadow:var(--tw-shadow-colored)!important}.\!shadow-green-500{--tw-shadow-color:#22c55e!important;--tw-shadow:var(--tw-shadow-colored)!important}.\!shadow-red-500{--tw-shadow-color:#ef4444!important;--tw-shadow:var(--tw-shadow-colored)!important}.shadow-gray-400{--tw-shadow-color:#e6e8eb;--tw-shadow:var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-blue-500{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity))}.blur{--tw-blur:blur(8px)}.blur,.grayscale{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale:grayscale(100%)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.\!filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-1000{transition-duration:1s}.duration-300{transition-duration:.3s}.duration-75{transition-duration:75ms}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.scrollbar-thin.overflow-x-hidden,.scrollbar.overflow-x-hidden{overflow-x:hidden}#__next,#root,body,html{height:100vh;overflow:hidden}.placeholder\:text-gray-600::-moz-placeholder{--tw-text-opacity:1;color:hsl(207 11.1% 85.9%/var(--tw-text-opacity))}.placeholder\:text-gray-600::placeholder{--tw-text-opacity:1;color:hsl(207 11.1% 85.9%/var(--tw-text-opacity))}.placeholder\:text-gray-700::-moz-placeholder{--tw-text-opacity:1;color:hsl(205 10.7% 78%/var(--tw-text-opacity))}.placeholder\:text-gray-700::placeholder{--tw-text-opacity:1;color:hsl(205 10.7% 78%/var(--tw-text-opacity))}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:left-1\/2:before{content:var(--tw-content);left:50%}.before\:top-1\/2:before{content:var(--tw-content);top:50%}.after\:block:after{content:var(--tw-content);display:block}.after\:h-2:after{content:var(--tw-content);height:.5rem}.after\:h-4:after{content:var(--tw-content);height:1rem}.after\:w-2:after{content:var(--tw-content);width:.5rem}.after\:w-4:after{content:var(--tw-content);width:1rem}.after\:rounded-full:after{content:var(--tw-content);border-radius:9999px}.after\:bg-green-600:after{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.after\:content-\[\"\"\]:after{--tw-content:"";content:var(--tw-content)}.first\:border-t-0:first-child{border-top-width:0}.first\:border-none:first-child{border-style:none}.first\:shadow-border-tlb:first-child{--tw-shadow:inset 0 1px 0 0 rgba(0,0,0,.3),inset 1px 0 0 0 rgba(0,0,0,.3),inset 0 -1px 0 0 rgba(0,0,0,.3);--tw-shadow-colored:inset 0 1px 0 0 var(--tw-shadow-color),inset 1px 0 0 0 var(--tw-shadow-color),inset 0 -1px 0 0 var(--tw-shadow-color)}.first\:shadow-border-tlb:first-child,.last\:shadow-border-trb:last-child{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.last\:shadow-border-trb:last-child{--tw-shadow:inset 0 1px 0 0 rgba(0,0,0,.3),inset -1px 0 0 0 rgba(0,0,0,.3),inset 0 -1px 0 0 rgba(0,0,0,.3);--tw-shadow-colored:inset 0 1px 0 0 var(--tw-shadow-color),inset -1px 0 0 0 var(--tw-shadow-color),inset 0 -1px 0 0 var(--tw-shadow-color)}.only\:left-0:only-child{left:0}.last-of-type\:border-b:last-of-type{border-bottom-width:1px}.autofill\:bg-blue-100:-webkit-autofill{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity))}.autofill\:bg-blue-100:autofill{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity))}.autofill\:bg-white:-webkit-autofill{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.autofill\:bg-white:autofill{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.autofill\:text-fill-gray-1100:-webkit-autofill{-webkit-text-fill-color:#11181c}.autofill\:text-fill-gray-1100:autofill{-webkit-text-fill-color:#11181c}.autofill\:shadow-fill-white:-webkit-autofill{--tw-shadow:0 0 0 9999px #fff inset;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.autofill\:shadow-fill-white:autofill{--tw-shadow:0 0 0 9999px #fff inset;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.autofill\:placeholder\:text-fill-gray-700:autofill::-moz-placeholder{-webkit-text-fill-color:#c1c8cd}.autofill\:placeholder\:text-fill-gray-700:-webkit-autofill::placeholder{-webkit-text-fill-color:#c1c8cd}.autofill\:placeholder\:text-fill-gray-700:autofill::placeholder{-webkit-text-fill-color:#c1c8cd}.focus-within\:z-10:focus-within{z-index:10}.focus-within\:ring:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:z-10:focus{z-index:10}.focus\:bg-gray-300:focus{--tw-bg-opacity:1;background-color:hsl(209 12.2% 93.2%/var(--tw-bg-opacity))}.focus\:text-gray-900:focus{--tw-text-opacity:1;color:hsl(206 5.8% 52.3%/var(--tw-text-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.enabled\:border-green-800\/30:enabled{border-color:rgba(22,101,52,.3)}.enabled\:bg-green-700:enabled{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-auto:disabled{cursor:auto}.disabled\:cursor-default:disabled{cursor:default}.disabled\:border-amber-600\/50:disabled{border-color:rgba(217,119,6,.5)}.disabled\:border-green-600\/50:disabled{border-color:rgba(22,163,74,.5)}.disabled\:border-red-600\/50:disabled{border-color:rgba(220,38,38,.5)}.disabled\:bg-amber-700\/70:disabled{background-color:rgba(180,83,9,.7)}.disabled\:bg-gray-200:disabled{--tw-bg-opacity:1;background-color:hsl(209 13.3% 95.3%/var(--tw-bg-opacity))}.disabled\:bg-green-700\/70:disabled{background-color:rgba(21,128,61,.7)}.disabled\:bg-red-700\/70:disabled{background-color:rgba(185,28,28,.7)}.disabled\:text-gray-400:disabled{--tw-text-opacity:1;color:hsl(208 11.7% 91.1%/var(--tw-text-opacity))}.disabled\:text-gray-600:disabled{--tw-text-opacity:1;color:hsl(207 11.1% 85.9%/var(--tw-text-opacity))}.disabled\:text-white\/50:disabled{color:hsla(0,0%,100%,.5)}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:block{display:block}.group:hover .group-hover\:flex{display:flex}.group\/segments:hover .group-hover\/segments\:hidden{display:none}.group:hover .group-hover\:bg-amber-400{--tw-bg-opacity:1;background-color:rgb(251 191 36/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-amber-600{--tw-bg-opacity:1;background-color:rgb(217 119 6/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-blue-400{--tw-bg-opacity:1;background-color:rgb(96 165 250/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-blue-500\/10{background-color:rgba(59,130,246,.1)}.group:hover .group-hover\:bg-gray-800{--tw-bg-opacity:1;background-color:hsl(206 6% 56.1%/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-green-400{--tw-bg-opacity:1;background-color:rgb(74 222 128/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.group:hover .group-hover\:opacity-100{opacity:1}.aria-selected\:bg-gray-400[aria-selected=true]{--tw-bg-opacity:1;background-color:hsl(208 11.7% 91.1%/var(--tw-bg-opacity))}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:top-1[data-side=bottom]{top:.25rem}.data-\[side\=left\]\:right-1[data-side=left]{right:.25rem}.data-\[side\=right\]\:left-1[data-side=right]{left:.25rem}.data-\[side\=top\]\:bottom-1[data-side=top]{bottom:.25rem}.data-\[side\=bottom\]\:origin-top[data-side=bottom]{transform-origin:top}.data-\[side\=left\]\:origin-right[data-side=left]{transform-origin:right}.data-\[side\=right\]\:origin-left[data-side=right]{transform-origin:left}.data-\[side\=top\]\:origin-bottom[data-side=top]{transform-origin:bottom}.data-\[state\=checked\]\:translate-x-\[20px\][data-state=checked]{--tw-translate-x:20px}.data-\[state\=checked\]\:translate-x-\[20px\][data-state=checked],.data-\[state\=checked\]\:translate-x-\[9px\][data-state=checked]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=checked\]\:translate-x-\[9px\][data-state=checked]{--tw-translate-x:9px}@keyframes enterFromRight{0%{opacity:0;transform:translateX(200px)}to{opacity:1;transform:translateX(0)}}.data-\[motion\=from-end\]\:animate-enterFromRight[data-motion=from-end]{animation:enterFromRight .25s ease}@keyframes enterFromLeft{0%{opacity:0;transform:translateX(-200px)}to{opacity:1;transform:translateX(0)}}.data-\[motion\=from-start\]\:animate-enterFromLeft[data-motion=from-start]{animation:enterFromLeft .25s ease}@keyframes exitToRight{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(200px)}}.data-\[motion\=to-end\]\:animate-exitToRight[data-motion=to-end]{animation:exitToRight .25s ease}@keyframes exitToLeft{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-200px)}}.data-\[motion\=to-start\]\:animate-exitToLeft[data-motion=to-start]{animation:exitToLeft .25s ease}.data-\[state\=active\]\:border-green-600[data-state=active]{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.data-\[disabled\]\:text-gray-700[data-disabled]{--tw-text-opacity:1;color:hsl(205 10.7% 78%/var(--tw-text-opacity))}.data-\[state\=active\]\:text-accent-1100[data-state=active]{--tw-text-opacity:1;color:rgb(1 31 10/var(--tw-text-opacity))}.data-\[state\=checked\]\:text-gray-1100[data-state=checked]{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.enabled\:data-\[state\=checked\]\:bg-green-600[data-state=checked]:enabled{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.enabled\:data-\[state\=checked\]\:ring[data-state=checked]:enabled{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.enabled\:data-\[state\=checked\]\:ring-green-600[data-state=checked]:enabled{--tw-ring-opacity:1;--tw-ring-color:rgb(22 163 74/var(--tw-ring-opacity))}.disabled\:data-\[state\=checked\]\:bg-green-600\/50[data-state=checked]:disabled{background-color:rgba(22,163,74,.5)}.disabled\:data-\[state\=checked\]\:ring-green-600\/50[data-state=checked]:disabled{--tw-ring-color:rgba(22,163,74,.5)}.group[data-selected=true] .group-data-\[selected\=true\]\:text-gray-1000{--tw-text-opacity:1;color:hsl(206 6% 43.5%/var(--tw-text-opacity))}.open\:text-gray-1100[data-state=open]{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.open\:opacity-10[data-state=open]{opacity:.1}.hover\:z-10:hover{z-index:10}.hover\:scale-105:hover{--tw-scale-x:1.05;--tw-scale-y:1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-amber-800\/50:hover{border-color:rgba(146,64,14,.5)}.hover\:border-gray-500:hover{--tw-border-opacity:1;border-color:hsl(208 11.3% 88.9%/var(--tw-border-opacity))}.hover\:border-green-500:hover{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.hover\:border-green-700:hover{--tw-border-opacity:1;border-color:rgb(21 128 61/var(--tw-border-opacity))}.hover\:border-green-800\/50:hover{border-color:rgba(22,101,52,.5)}.hover\:border-red-800\/50:hover{border-color:rgba(153,27,27,.5)}.hover\:bg-amber-800\/90:hover{background-color:rgba(146,64,14,.9)}.hover\:bg-black\/20:hover{background-color:rgba(0,0,0,.2)}.hover\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:hsl(206 30% 98.8%/var(--tw-bg-opacity))}.hover\:bg-green-100\/20:hover{background-color:rgba(220,252,231,.2)}.hover\:bg-green-800\/90:hover{background-color:rgba(22,101,52,.9)}.hover\:bg-red-800\/90:hover{background-color:rgba(153,27,27,.9)}.hover\:text-gray-1000:hover{--tw-text-opacity:1;color:hsl(206 6% 43.5%/var(--tw-text-opacity))}.hover\:text-gray-1100:hover{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.hover\:text-gray-1100\/50:hover{color:rgba(17,24,28,.5)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:opacity-60:hover{opacity:.6}.hover\:opacity-90:hover{opacity:.9}.hover\:shadow:hover{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.enabled\:hover\:border-amber-800\/50:hover:enabled{border-color:rgba(146,64,14,.5)}.enabled\:hover\:border-gray-500:hover:enabled{--tw-border-opacity:1;border-color:hsl(208 11.3% 88.9%/var(--tw-border-opacity))}.enabled\:hover\:border-gray-700:hover:enabled{--tw-border-opacity:1;border-color:hsl(205 10.7% 78%/var(--tw-border-opacity))}.enabled\:hover\:border-green-800\/50:hover:enabled{border-color:rgba(22,101,52,.5)}.enabled\:hover\:border-red-800\/50:hover:enabled{border-color:rgba(153,27,27,.5)}.enabled\:hover\:bg-amber-800\/90:hover:enabled{background-color:rgba(146,64,14,.9)}.enabled\:hover\:bg-gray-50:hover:enabled{--tw-bg-opacity:1;background-color:hsl(206 30% 98.8%/var(--tw-bg-opacity))}.enabled\:hover\:bg-green-800\/90:hover:enabled{background-color:rgba(22,101,52,.9)}.enabled\:hover\:bg-red-800\/90:hover:enabled{background-color:rgba(153,27,27,.9)}.enabled\:hover\:text-gray-1100:hover:enabled{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}@media (prefers-reduced-motion:reduce){.motion-reduce\:hidden{display:none}}.dark .dark\:border-accentdark-900{--tw-border-opacity:1;border-color:rgb(6 159 53/var(--tw-border-opacity))}.dark .dark\:border-amber-500\/50{border-color:rgba(245,158,11,.5)}.dark .dark\:border-amber-600\/70{border-color:rgba(217,119,6,.7)}.dark .dark\:border-blue-500\/50{border-color:rgba(59,130,246,.5)}.dark .dark\:border-gray-800{--tw-border-opacity:1;border-color:hsl(206 6% 56.1%/var(--tw-border-opacity))}.dark .dark\:border-graydark-100{--tw-border-opacity:1;border-color:hsl(195 7.1% 11%/var(--tw-border-opacity))}.dark .dark\:border-graydark-200{--tw-border-opacity:1;border-color:hsl(197 6.8% 13.6%/var(--tw-border-opacity))}.dark .dark\:border-graydark-300{--tw-border-opacity:1;border-color:hsl(198 6.6% 15.8%/var(--tw-border-opacity))}.dark .dark\:border-graydark-400{--tw-border-opacity:1;border-color:hsl(199 6.4% 17.9%/var(--tw-border-opacity))}.dark .dark\:border-graydark-400\/50{border-color:rgba(43,47,49,.5)}.dark .dark\:border-graydark-400\/70{border-color:rgba(43,47,49,.7)}.dark .dark\:border-graydark-500{--tw-border-opacity:1;border-color:hsl(201 6.2% 20.5%/var(--tw-border-opacity))}.dark .dark\:border-graydark-600{--tw-border-opacity:1;border-color:hsl(203 6% 24.3%/var(--tw-border-opacity))}.dark .dark\:border-green-400{--tw-border-opacity:1;border-color:rgb(74 222 128/var(--tw-border-opacity))}.dark .dark\:border-green-500{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.dark .dark\:border-green-500\/50{border-color:rgba(34,197,94,.5)}.dark .dark\:border-green-600{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.dark .dark\:border-green-600\/70{border-color:rgba(22,163,74,.7)}.dark .dark\:border-red-400{--tw-border-opacity:1;border-color:rgb(248 113 113/var(--tw-border-opacity))}.dark .dark\:border-red-600\/70{border-color:rgba(220,38,38,.7)}.dark .dark\:border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.dark .dark\:border-white\/10{border-color:hsla(0,0%,100%,.1)}.dark .dark\:bg-accentdark-200{--tw-bg-opacity:1;background-color:rgb(6 40 17/var(--tw-bg-opacity))}.dark .dark\:bg-accentdark-800{--tw-bg-opacity:1;background-color:rgb(5 135 45/var(--tw-bg-opacity))}.dark .dark\:bg-amber-200{--tw-bg-opacity:1;background-color:rgb(253 230 138/var(--tw-bg-opacity))}.dark .dark\:bg-amber-300{--tw-bg-opacity:1;background-color:rgb(252 211 77/var(--tw-bg-opacity))}.dark .dark\:bg-amber-500{--tw-bg-opacity:1;background-color:rgb(245 158 11/var(--tw-bg-opacity))}.dark .dark\:bg-amber-700{--tw-bg-opacity:1;background-color:rgb(180 83 9/var(--tw-bg-opacity))}.dark .dark\:bg-blue-300{--tw-bg-opacity:1;background-color:rgb(147 197 253/var(--tw-bg-opacity))}.dark .dark\:bg-gray-800{--tw-bg-opacity:1;background-color:hsl(206 6% 56.1%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-100{--tw-bg-opacity:1;background-color:hsl(195 7.1% 11%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-200{--tw-bg-opacity:1;background-color:hsl(197 6.8% 13.6%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-300{--tw-bg-opacity:1;background-color:hsl(198 6.6% 15.8%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-400{--tw-bg-opacity:1;background-color:hsl(199 6.4% 17.9%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-50{--tw-bg-opacity:1;background-color:hsl(200 7% 8.8%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-500{--tw-bg-opacity:1;background-color:hsl(201 6.2% 20.5%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-700{--tw-bg-opacity:1;background-color:hsl(207 5.6% 31.6%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-800{--tw-bg-opacity:1;background-color:hsl(206 6% 43.9%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-900{--tw-bg-opacity:1;background-color:hsl(206 5.2% 49.5%/var(--tw-bg-opacity))}.dark .dark\:bg-green-100\/20{background-color:rgba(220,252,231,.2)}.dark .dark\:bg-green-300{--tw-bg-opacity:1;background-color:rgb(134 239 172/var(--tw-bg-opacity))}.dark .dark\:bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.dark .dark\:bg-green-700{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.dark .dark\:bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.dark .dark\:bg-red-700{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.dark .dark\:bg-slate-200{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity))}.dark .dark\:bg-slate-900{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity))}.dark .dark\:bg-transparent{background-color:transparent}.dark .dark\:bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.dark .dark\:from-graydark-50{--tw-gradient-from:#151718;--tw-gradient-to:rgba(21,23,24,0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.dark .dark\:via-graydark-100\/95{--tw-gradient-to:rgba(26,29,30,0);--tw-gradient-stops:var(--tw-gradient-from),rgba(26,29,30,.95),var(--tw-gradient-to)}.dark .dark\:to-graydark-50{--tw-gradient-to:#151718}.dark .dark\:fill-graydark-50{fill:#151718}.dark .dark\:fill-graydark-600{fill:#3a3f42}.dark .dark\:fill-white{fill:#fff}.dark .dark\:\!text-accentdark-1100{--tw-text-opacity:1!important;color:rgb(217 244 225/var(--tw-text-opacity))!important}.dark .dark\:\!text-amber-500{--tw-text-opacity:1!important;color:rgb(245 158 11/var(--tw-text-opacity))!important}.dark .dark\:\!text-emerald-500{--tw-text-opacity:1!important;color:rgb(16 185 129/var(--tw-text-opacity))!important}.dark .dark\:\!text-graydark-1000{--tw-text-opacity:1!important;color:hsl(206 6% 63%/var(--tw-text-opacity))!important}.dark .dark\:\!text-graydark-50{--tw-text-opacity:1!important;color:hsl(200 7% 8.8%/var(--tw-text-opacity))!important}.dark .dark\:\!text-graydark-700{--tw-text-opacity:1!important;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))!important}.dark .dark\:\!text-red-400{--tw-text-opacity:1!important;color:rgb(248 113 113/var(--tw-text-opacity))!important}.dark .dark\:\!text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity))!important}.dark .dark\:text-accentdark-1100{--tw-text-opacity:1;color:rgb(217 244 225/var(--tw-text-opacity))}.dark .dark\:text-amber-500{--tw-text-opacity:1;color:rgb(245 158 11/var(--tw-text-opacity))}.dark .dark\:text-emerald-500{--tw-text-opacity:1;color:rgb(16 185 129/var(--tw-text-opacity))}.dark .dark\:text-gray-1100{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.dark .dark\:text-gray-300{--tw-text-opacity:1;color:hsl(209 12.2% 93.2%/var(--tw-text-opacity))}.dark .dark\:text-graydark-1000{--tw-text-opacity:1;color:hsl(206 6% 63%/var(--tw-text-opacity))}.dark .dark\:text-graydark-1100{--tw-text-opacity:1;color:hsl(210 6% 93%/var(--tw-text-opacity))}.dark .dark\:text-graydark-50{--tw-text-opacity:1;color:hsl(200 7% 8.8%/var(--tw-text-opacity))}.dark .dark\:text-graydark-700{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .dark\:text-graydark-800{--tw-text-opacity:1;color:hsl(206 6% 43.9%/var(--tw-text-opacity))}.dark .dark\:text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.dark .dark\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .dark\:text-white\/30{color:hsla(0,0%,100%,.3)}.dark .dark\:decoration-accentdark-900{text-decoration-color:#069f35}.dark .dark\:decoration-gray-500{text-decoration-color:#dfe3e6}.dark .dark\:opacity-10{opacity:.1}.dark .dark\:opacity-50{opacity:.5}.dark .dark\:mix-blend-difference{mix-blend-mode:difference}.dark .dark\:\!shadow-amber-500{--tw-shadow-color:#f59e0b!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:\!shadow-blue-200{--tw-shadow-color:#bfdbfe!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:\!shadow-blue-400{--tw-shadow-color:#60a5fa!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:\!shadow-green-400{--tw-shadow-color:#4ade80!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:\!shadow-red-400{--tw-shadow-color:#f87171!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:shadow-graydark-300{--tw-shadow-color:#26292b;--tw-shadow:var(--tw-shadow-colored)}.dark .dark\:ring-blue-200{--tw-ring-opacity:1;--tw-ring-color:rgb(191 219 254/var(--tw-ring-opacity))}.dark .dark\:invert-\[0\.9\]{--tw-invert:invert(0.9);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.dark .placeholder\:dark\:text-graydark-500::-moz-placeholder{--tw-text-opacity:1;color:hsl(201 6.2% 20.5%/var(--tw-text-opacity))}.dark .placeholder\:dark\:text-graydark-500::placeholder{--tw-text-opacity:1;color:hsl(201 6.2% 20.5%/var(--tw-text-opacity))}.dark .placeholder\:dark\:text-graydark-700::-moz-placeholder{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .placeholder\:dark\:text-graydark-700::placeholder{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .after\:dark\:bg-green-500:after{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.dark .autofill\:dark\:bg-blue-800:-webkit-autofill{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.dark .autofill\:dark\:bg-blue-800:autofill{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.dark .autofill\:dark\:bg-graydark-50:-webkit-autofill{--tw-bg-opacity:1;background-color:hsl(200 7% 8.8%/var(--tw-bg-opacity))}.dark .autofill\:dark\:bg-graydark-50:autofill{--tw-bg-opacity:1;background-color:hsl(200 7% 8.8%/var(--tw-bg-opacity))}.dark .autofill\:dark\:text-fill-white:-webkit-autofill{-webkit-text-fill-color:#fff}.dark .autofill\:dark\:text-fill-white:autofill{-webkit-text-fill-color:#fff}.dark .autofill\:dark\:shadow-fill-graydark-50:-webkit-autofill{--tw-shadow:0 0 0 9999px #151718 inset;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.dark .autofill\:dark\:shadow-fill-graydark-50:autofill{--tw-shadow:0 0 0 9999px #151718 inset;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.dark .autofill\:placeholder\:dark\:text-fill-graydark-700:autofill::-moz-placeholder{-webkit-text-fill-color:#4c5155}.dark .autofill\:placeholder\:dark\:text-fill-graydark-700:-webkit-autofill::placeholder{-webkit-text-fill-color:#4c5155}.dark .autofill\:placeholder\:dark\:text-fill-graydark-700:autofill::placeholder{-webkit-text-fill-color:#4c5155}.dark .dark\:focus\:bg-graydark-300:focus{--tw-bg-opacity:1;background-color:hsl(198 6.6% 15.8%/var(--tw-bg-opacity))}.dark .dark\:focus\:text-white:focus{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .enabled\:dark\:border-green-600\/70:enabled{border-color:rgba(22,163,74,.7)}.dark .enabled\:dark\:bg-green-700:enabled{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.dark .disabled\:dark\:border-amber-500\/30:disabled{border-color:rgba(245,158,11,.3)}.dark .disabled\:dark\:border-green-500\/30:disabled{border-color:rgba(34,197,94,.3)}.dark .disabled\:dark\:border-red-500\/30:disabled{border-color:rgba(239,68,68,.3)}.dark .disabled\:dark\:bg-amber-600\/70:disabled{background-color:rgba(217,119,6,.7)}.dark .disabled\:dark\:bg-graydark-200:disabled{--tw-bg-opacity:1;background-color:hsl(197 6.8% 13.6%/var(--tw-bg-opacity))}.dark .disabled\:dark\:bg-green-600\/70:disabled{background-color:rgba(22,163,74,.7)}.dark .disabled\:dark\:bg-red-600\/70:disabled{background-color:rgba(220,38,38,.7)}.dark .disabled\:dark\:text-graydark-400:disabled{--tw-text-opacity:1;color:hsl(199 6.4% 17.9%/var(--tw-text-opacity))}.dark .disabled\:dark\:text-graydark-700:disabled{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .disabled\:dark\:text-white\/50:disabled{color:hsla(0,0%,100%,.5)}.dark .group:hover .dark\:group-hover\:bg-amber-400{--tw-bg-opacity:1;background-color:rgb(251 191 36/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-amber-600{--tw-bg-opacity:1;background-color:rgb(217 119 6/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-blue-200\/10{background-color:rgba(191,219,254,.1)}.dark .group:hover .dark\:group-hover\:bg-blue-400{--tw-bg-opacity:1;background-color:rgb(96 165 250/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-graydark-800{--tw-bg-opacity:1;background-color:hsl(206 6% 43.9%/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-green-400{--tw-bg-opacity:1;background-color:rgb(74 222 128/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.dark .aria-selected\:dark\:bg-graydark-500[aria-selected=true]{--tw-bg-opacity:1;background-color:hsl(201 6.2% 20.5%/var(--tw-bg-opacity))}.dark .data-\[state\=active\]\:dark\:border-green-500[data-state=active]{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.dark .dark\:data-\[disabled\]\:text-graydark-700[data-disabled]{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .data-\[state\=active\]\:dark\:text-accentdark-1100[data-state=active]{--tw-text-opacity:1;color:rgb(217 244 225/var(--tw-text-opacity))}.dark .data-\[state\=checked\]\:dark\:text-white[data-state=checked]{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .dark\:enabled\:data-\[state\=checked\]\:bg-green-500[data-state=checked]:enabled{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.dark .dark\:enabled\:data-\[state\=checked\]\:ring-green-500[data-state=checked]:enabled{--tw-ring-opacity:1;--tw-ring-color:rgb(34 197 94/var(--tw-ring-opacity))}.dark .dark\:disabled\:data-\[state\=checked\]\:bg-green-500\/50[data-state=checked]:disabled{background-color:rgba(34,197,94,.5)}.dark .dark\:disabled\:data-\[state\=checked\]\:ring-green-500\/50[data-state=checked]:disabled{--tw-ring-color:rgba(34,197,94,.5)}.dark .group[data-selected=true] .dark\:group-data-\[selected\=true\]\:text-graydark-1000{--tw-text-opacity:1;color:hsl(206 6% 63%/var(--tw-text-opacity))}.dark .open\:dark\:text-white[data-state=open]{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .dark\:open\:opacity-20[data-state=open]{opacity:.2}.dark .hover\:dark\:border-amber-600:hover{--tw-border-opacity:1;border-color:rgb(217 119 6/var(--tw-border-opacity))}.dark .hover\:dark\:border-graydark-500:hover{--tw-border-opacity:1;border-color:hsl(201 6.2% 20.5%/var(--tw-border-opacity))}.dark .hover\:dark\:border-green-500:hover{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.dark .hover\:dark\:border-green-600:hover{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.dark .hover\:dark\:border-red-600:hover{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.dark .dark\:hover\:bg-amber-700\/90:hover{background-color:rgba(180,83,9,.9)}.dark .dark\:hover\:bg-graydark-300:hover{--tw-bg-opacity:1;background-color:hsl(198 6.6% 15.8%/var(--tw-bg-opacity))}.dark .dark\:hover\:bg-green-700\/90:hover{background-color:rgba(21,128,61,.9)}.dark .dark\:hover\:bg-red-700\/90:hover{background-color:rgba(185,28,28,.9)}.dark .hover\:dark\:bg-green-100\/20:hover{background-color:rgba(220,252,231,.2)}.dark .hover\:dark\:text-graydark-1000:hover{--tw-text-opacity:1;color:hsl(206 6% 63%/var(--tw-text-opacity))}.dark .hover\:dark\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .hover\:dark\:text-white\/50:hover{color:hsla(0,0%,100%,.5)}.dark .enabled\:hover\:dark\:border-amber-600:hover:enabled{--tw-border-opacity:1;border-color:rgb(217 119 6/var(--tw-border-opacity))}.dark .enabled\:hover\:dark\:border-graydark-500:hover:enabled{--tw-border-opacity:1;border-color:hsl(201 6.2% 20.5%/var(--tw-border-opacity))}.dark .enabled\:hover\:dark\:border-graydark-600:hover:enabled{--tw-border-opacity:1;border-color:hsl(203 6% 24.3%/var(--tw-border-opacity))}.dark .enabled\:hover\:dark\:border-green-600:hover:enabled{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.dark .enabled\:hover\:dark\:border-red-600:hover:enabled{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.dark .dark\:enabled\:hover\:bg-amber-700\/90:hover:enabled{background-color:rgba(180,83,9,.9)}.dark .dark\:enabled\:hover\:bg-graydark-300:hover:enabled{--tw-bg-opacity:1;background-color:hsl(198 6.6% 15.8%/var(--tw-bg-opacity))}.dark .dark\:enabled\:hover\:bg-green-700\/90:hover:enabled{background-color:rgba(21,128,61,.9)}.dark .dark\:enabled\:hover\:bg-red-700\/90:hover:enabled{background-color:rgba(185,28,28,.9)}.dark .enabled\:hover\:dark\:text-white:hover:enabled{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}@media (min-width:640px){.sm\:flex{display:flex}.sm\:w-auto{width:auto}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:768px){.md\:block{display:block}.md\:h-\[50px\]{height:50px}.md\:items-start{align-items:flex-start}.md\:gap-3{gap:.75rem}.md\:gap-y-14{row-gap:3.5rem}.md\:px-10{padding-left:2.5rem;padding-right:2.5rem}.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\:text-4xl{font-size:2.25rem;line-height:2.5rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-6xl{font-size:3.75rem;line-height:1}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}.md\:text-xs{font-size:.75rem;line-height:1rem}.md\:leading-relaxed{line-height:1.625}}@media (min-width:1024px){.lg\:block{display:block}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:px-16{padding-left:4rem;padding-right:4rem}}@media (min-width:1280px){.xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}.\[\&\+\*\]\:\!pl-0+*{padding-left:0!important}.\[\&\:nth-child\(2\)\]\:animation-delay-500:nth-child(2){animation-delay:.5s}.\[\&\:nth-child\(3\)\]\:animation-delay-1000:nth-child(3){animation-delay:1s}.\[\&\>\*\:first-child\]\:rounded-l>:first-child{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.\[\&\>\*\:first-child\]\:border-l>:first-child{border-left-width:1px}.\[\&\>\*\:last-child\]\:rounded-r>:last-child{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.\[\&\>\*\:last-child\]\:border-r>:last-child{border-right-width:1px}.\[\&\>\*\]\:rounded-none>*{border-radius:0}.\[\&\>\*\]\:border-l>*{border-left-width:1px}.\[\&\>\*\]\:border-r-0>*{border-right-width:0}.\[\&\>div\]\:\!block>div{display:block!important}.\[\&\>div\]\:\!h-full>div{height:100%!important}.\[\&\>div\]\:flex-1>div{flex:1 1 0%}.\[\&\>div\]\:overflow-hidden>div{overflow:hidden}.\[\&\>p\]\:\!py-0>p{padding-top:0!important;padding-bottom:0!important}.\[\&\>select\:disabled\]\:text-gray-600>select:disabled{--tw-text-opacity:1;color:hsl(207 11.1% 85.9%/var(--tw-text-opacity))}.dark .\[\&\>select\:disabled\]\:dark\:text-graydark-700>select:disabled{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.\[\&\>svg\]\:-mx-0\.5>svg{margin-left:-.125rem;margin-right:-.125rem}.\[\&\>svg\]\:opacity-50>svg{opacity:.5}.hover\:\[\&\>svg\]\:opacity-100>svg:hover{opacity:1}.\[\&\[href\]\]\:border-green-800\/30[href]{border-color:rgba(22,101,52,.3)}.\[\&\[href\]\]\:bg-green-700[href]{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.\[\&\[href\]\]\:hover\:border-green-800\/50:hover[href]{border-color:rgba(22,101,52,.5)}.\[\&\[href\]\]\:hover\:bg-green-800\/90:hover[href]{background-color:rgba(22,101,52,.9)}.dark .\[\&\[href\]\]\:dark\:border-green-600\/70[href]{border-color:rgba(22,163,74,.7)}.dark .\[\&\[href\]\]\:dark\:bg-green-700[href]{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.dark .dark\:\[\&\[href\]\]\:hover\:bg-green-700\/90:hover[href]{background-color:rgba(21,128,61,.9)}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/1eff7769948a8c71-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/7a86083759ce0787-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/1fece7a471d60ffe-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/94e828afa3939314-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/dcb90225ac4215b0-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/21379288e5de0162-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/20a0263cfae743ff-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/a06cddabfd904d07-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/c05280b20c19cff6-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/ab3a7057d2c303a3-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/e7a1d48695380088-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/7a514966b24fa042-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/f34054e2970d3793-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/ee809f9c8637ac35-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/416dffb3eaba61b5-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/b2613c7882fb9dad-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/00b652cd5acf4d1a-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/318cd1ba86719051-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/26570e7eecd756a7-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/6ad357e49f846140-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/c1dadd6c99c0900a-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/9fb8e434756a520e-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/b83e9714dba3a7b2-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/7729f7b3bc7fa987-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/69dc0d8a22bc572a-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/d752111844abddfa-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/7fe39de114f984a0-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/6c817bbad1cfd130-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/bc7cd6cbdb8771c6-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/1b708ab38c59f94d-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/ed08f0e693ce6a65-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/0be44b380099e057-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/f4ebea4f2ece3dbe-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/f7e3cefe6d9fda21-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/26d0ad28b444f0fb-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/d704a8fea67672dc-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/3ce4c920cddd7002-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/1027f57de01c0b24-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/23313877d5d6ff1b-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/00417edf5e44282b-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/228a95c965c5f90b-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/97c8a55b2cb1421c-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/86d6d32ab6c2e21d-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/07304b90e9b5ca40-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/54f3953b28e50f98-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/a40ccebe730e6b34-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/01ec6e01ff4830ae-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/34d8d58b783ee6bb-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/3763ada0a9bb1988-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/787b0654beea4191-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/2c3c1f0838a71cfb-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/47bcda1e7b1ac8be-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/bed76354f405346d-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/c70aa70a01eaecff-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/24cfcc12c15b03b9-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/29ffcd3df3f1cb91-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/3cef106cd115e360-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/a0c95037dd5c9387-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/e889cd181219a83f-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/6d6d0e4a023f9f33-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/0148c4ca3456ea72-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/4184cf5f191b83db-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/28cea0425961ab58-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/b4c759cba7a5f011-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/de555e6bc944c11a-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/791334aa8b2b679f-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/a2411df190893074-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/60d74363e715829c-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/eb37c9fe4776ea97-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/bc381c5935034aa5-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/f565fad065ab4cf3-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/f9946f06d70a1b5b-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/d1f5f89450ecd78c-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/ebcf93a611f94ec0-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/ec50b434b597bc61-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/6be22a85bef54f08-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/9491f41002d34397-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/afba6ba6bf9157e8-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/be843c5b0882ad66-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/67aea609c6135b3b-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/09b62d668edb05d1-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/10446295ae7f2657-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/b6ecfd81ed9f83c9-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/08404bcfb1dae67a-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_Fallback_829fdc;src:local("Arial");ascent-override:101.44%;descent-override:27.22%;line-gap-override:0.00%;size-adjust:101.04%}.__className_829fdc{font-family:__IBM_Plex_Sans_829fdc,__IBM_Plex_Sans_Fallback_829fdc}.__variable_829fdc{--font-sans:"__IBM_Plex_Sans_829fdc","__IBM_Plex_Sans_Fallback_829fdc"}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/43f58290d48b3e4f-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/f7b042c81aa9dac9-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/5f52e8aafa6d55e1-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/7c8d3f8a7910b37f-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/c91ca22957702d7a-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/e31631a967fe3515-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/e46a860e09e79916-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/2d1700372dfaaa94-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/27834a3ea5568a72-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/ba1ff977fd46651f-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/aa5329918e5352b7-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/3546445dbedfe8e0-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/a329a67c917d0d83-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/32ef35af86a1df18-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/42c2d543c4ca0ff8-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/4acd96e66b7a15d8-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/c00fdcaa534cf51c-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/a9b64de7575b01f6-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/e05a5a1d4048d7df-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/a9387c470a117487-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/5b5f10d1030076fd-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/66b34bbb56a523d8-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/62e8d71f5f62d0a9-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/4f5bd398699bdcf0-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/5873ad5359ff35c9-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/a08baca5e17c57be-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/b8347de82b1bd9a8-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/99163ae90df46b27-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/b9432a067aca8720-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/c3f479ae50d16e35-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/d4eddeab410cd094-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/1674d377433d7de6-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/f65f080f6ad9aa76-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/7a44530bd17b4a4c-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/37e85b36581a02ab-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/1e0eb4a7325b5d14-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/136ae42764b7e0db-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/b17f4305e2f0c22a-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/a7f64a09f7737545-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/98bcafdc59ee6d65-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/ce562f20499ad585-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/57699fff66d5761c-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/e490b1ecb6589d48-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/524be5e37a616f9b-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/c690761783507ad4-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/5a7dbca54c2fc4dd-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/d4e99c199dab3055-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/9ae1ac821a4debaf-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/ec1b1cbc512bc43e-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/463cef7d4672ba68-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/ebec2867f40f78ec-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/d607327a37a507c7-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/2e1b830192b7974a-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/3aa27b2eb5f698f7-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/3478b6abef19b3b3-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/b6f2eee8808a2bb4-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/bc2003170c651d45-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/d43ef4503e5571d0-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/3281a323710833ec-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/684e5662d94c69e1-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/97b12f7b815cdf76-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/19fc70611c7ee6d5-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/01721b474504e7d6-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/3ccf24bed29cbb82-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/be2416cbb012c256-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/7524e759b2d52ce2-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/83feb047e42e457a-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/40bfb1458eaec497-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/8ea51a27e153ec43-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/035951aefad7b653-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_Fallback_355ef5;src:local("Arial");ascent-override:75.41%;descent-override:20.23%;line-gap-override:0.00%;size-adjust:135.93%}.__className_355ef5{font-family:__IBM_Plex_Mono_355ef5,__IBM_Plex_Mono_Fallback_355ef5}.__variable_355ef5{--font-mono:"__IBM_Plex_Mono_355ef5","__IBM_Plex_Mono_Fallback_355ef5"} \ No newline at end of file diff --git a/renterd/assets/config.html b/renterd/assets/config.html index eb876c318..d9147ef2f 100644 --- a/renterd/assets/config.html +++ b/renterd/assets/config.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/contracts.html b/renterd/assets/contracts.html index 0ce66c866..30c301cb3 100644 --- a/renterd/assets/contracts.html +++ b/renterd/assets/contracts.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/files/[[...path]].html b/renterd/assets/files/[[...path]].html index 6ee0250db..02d0f5fec 100644 --- a/renterd/assets/files/[[...path]].html +++ b/renterd/assets/files/[[...path]].html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/hosts.html b/renterd/assets/hosts.html index 1e5dd1b50..1771ff9bc 100644 --- a/renterd/assets/hosts.html +++ b/renterd/assets/hosts.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/index.html b/renterd/assets/index.html index e08e24dfa..b9bf27176 100644 --- a/renterd/assets/index.html +++ b/renterd/assets/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/login.html b/renterd/assets/login.html index 6b635dc5b..d5145e49e 100644 --- a/renterd/assets/login.html +++ b/renterd/assets/login.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/node.html b/renterd/assets/node.html index 1b68c84c3..3ac5bde93 100644 --- a/renterd/assets/node.html +++ b/renterd/assets/node.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/wallet.html b/renterd/assets/wallet.html index 5bdabe45f..9b1a96352 100644 --- a/renterd/assets/wallet.html +++ b/renterd/assets/wallet.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/walletd/assets/404.html b/walletd/assets/404.html index e695b4a47..f96dd7048 100644 --- a/walletd/assets/404.html +++ b/walletd/assets/404.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/walletd/assets/_next/static/929_cqmF0UxTMyVMkWKDm/_buildManifest.js b/walletd/assets/_next/static/929_cqmF0UxTMyVMkWKDm/_buildManifest.js new file mode 100644 index 000000000..abd0ffa7e --- /dev/null +++ b/walletd/assets/_next/static/929_cqmF0UxTMyVMkWKDm/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":["static/chunks/pages/index-0f66475df919c149.js"],"/_error":["static/chunks/pages/_error-bef7735c65ba8b47.js"],"/login":["static/chunks/pages/login-c674cd9d9a2616f9.js"],"/node":["static/chunks/pages/node-58e9c1ea5e739f3f.js"],"/wallets/[id]":["static/chunks/pages/wallets/[id]-2748eeb40fcf3cf7.js"],"/wallets/[id]/addresses":["static/chunks/pages/wallets/[id]/addresses-8fa4c07e4ffad6af.js"],sortedPages:["/","/_app","/_error","/login","/node","/wallets/[id]","/wallets/[id]/addresses"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/walletd/assets/_next/static/N0uYeQTu4w7VyIZI8Lgg0/_ssgManifest.js b/walletd/assets/_next/static/929_cqmF0UxTMyVMkWKDm/_ssgManifest.js similarity index 100% rename from walletd/assets/_next/static/N0uYeQTu4w7VyIZI8Lgg0/_ssgManifest.js rename to walletd/assets/_next/static/929_cqmF0UxTMyVMkWKDm/_ssgManifest.js diff --git a/walletd/assets/_next/static/N0uYeQTu4w7VyIZI8Lgg0/_buildManifest.js b/walletd/assets/_next/static/N0uYeQTu4w7VyIZI8Lgg0/_buildManifest.js deleted file mode 100644 index 3c3cab3d6..000000000 --- a/walletd/assets/_next/static/N0uYeQTu4w7VyIZI8Lgg0/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":["static/chunks/pages/index-5286205b178d071c.js"],"/_error":["static/chunks/pages/_error-bef7735c65ba8b47.js"],"/login":["static/chunks/pages/login-f8c04eab8121a056.js"],"/node":["static/chunks/pages/node-34b585c3f4eadfc9.js"],"/wallets/[id]":["static/chunks/pages/wallets/[id]-46f6a9dff6e908b0.js"],"/wallets/[id]/addresses":["static/chunks/pages/wallets/[id]/addresses-627bf89d5be4300b.js"],sortedPages:["/","/_app","/_error","/login","/node","/wallets/[id]","/wallets/[id]/addresses"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/walletd/assets/_next/static/chunks/pages/_app-2d1c3f07eb6c83f8.js b/walletd/assets/_next/static/chunks/pages/_app-2d1c3f07eb6c83f8.js deleted file mode 100644 index 589f37e4f..000000000 --- a/walletd/assets/_next/static/chunks/pages/_app-2d1c3f07eb6c83f8.js +++ /dev/null @@ -1,76 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{75102:function(e,t,r){"use strict";r.d(t,{An:function(){return u},Ht:function(){return c},R7:function(){return p},RH:function(){return h}});var n,i,o=r(97699),a=r.n(o);(n=i||(i={})).blue="blue",n.nanoS="nanoS",n.nanoSP="nanoSP",n.nanoX="nanoX",n.stax="stax";let s={[i.blue]:{id:i.blue,productName:"Ledger\xa0Blue",productIdMM:0,legacyUsbProductId:0,usbOnly:!0,memorySize:491520,masks:[822083584,822149120],getBlockSize:e=>4096},[i.nanoS]:{id:i.nanoS,productName:"Ledger\xa0Nano\xa0S",productIdMM:16,legacyUsbProductId:1,usbOnly:!0,memorySize:327680,masks:[823132160],getBlockSize:e=>{var t;return a().lt(null!==(t=a().coerce(e))&&void 0!==t?t:"","2.0.0")?4096:2048}},[i.nanoSP]:{id:i.nanoSP,productName:"Ledger Nano S Plus",productIdMM:80,legacyUsbProductId:5,usbOnly:!0,memorySize:1572864,masks:[856686592],getBlockSize:e=>32},[i.nanoX]:{id:i.nanoX,productName:"Ledger\xa0Nano\xa0X",productIdMM:64,legacyUsbProductId:4,usbOnly:!1,memorySize:2097152,masks:[855638016],getBlockSize:e=>4096,bluetoothSpec:[{serviceUuid:"13d63400-2c97-0004-0000-4c6564676572",notifyUuid:"13d63400-2c97-0004-0001-4c6564676572",writeUuid:"13d63400-2c97-0004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-0004-0003-4c6564676572"}]},[i.stax]:{id:i.stax,productName:"Ledger\xa0Stax",productIdMM:96,legacyUsbProductId:6,usbOnly:!1,memorySize:1572864,masks:[857735168],getBlockSize:e=>32,bluetoothSpec:[{serviceUuid:"13d63400-2c97-6004-0000-4c6564676572",notifyUuid:"13d63400-2c97-6004-0001-4c6564676572",writeUuid:"13d63400-2c97-6004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-6004-0003-4c6564676572"}]}};i.blue,i.nanoS,i.nanoSP,i.nanoX,i.stax;let l=Object.values(s),u=11415,c=e=>{let t=l.find(t=>t.legacyUsbProductId===e);if(t)return t;let r=e>>8,n=l.find(e=>e.productIdMM===r);return n},d=[],f={};for(let e in s){let t=s[e],{bluetoothSpec:r}=t;if(r)for(let e=0;ed,p=e=>f[e.toLowerCase()]},9341:function(e,t,r){"use strict";var n,i;r.d(t,{qX:function(){return c},vs:function(){return d},WC:function(){return m},PS:function(){return p},FB:function(){return f},wp:function(){return h},rZ:function(){return v}});let o={},a={},s=(e,t)=>{a[e]=t},l=e=>{class t extends Error{constructor(r,n,i){if(super(r||e,i),Object.setPrototypeOf(this,t.prototype),this.name=e,n)for(let e in n)this[e]=n[e];if(i&&"object"==typeof i&&"cause"in i&&!("cause"in this)){let e=i.cause;this.cause=e,"stack"in e&&(this.stack=this.stack+"\nCAUSE: "+e.stack)}}}return o[e]=t,t};l("AccountNameRequired"),l("AccountNotSupported"),l("AmountRequired"),l("BluetoothRequired"),l("BtcUnmatchedApp"),l("CantOpenDevice"),l("CashAddrNotSupported"),l("ClaimRewardsFeesWarning"),l("CurrencyNotSupported"),l("DeviceAppVerifyNotSupported"),l("DeviceGenuineSocketEarlyClose"),l("DeviceNotGenuine"),l("DeviceOnDashboardExpected"),l("DeviceOnDashboardUnexpected"),l("DeviceInOSUExpected"),l("DeviceHalted"),l("DeviceNameInvalid"),l("DeviceSocketFail"),l("DeviceSocketNoBulkStatus");let u=l("LockedDeviceError");l("UnresponsiveDeviceError");let c=l("DisconnectedDevice"),d=l("DisconnectedDeviceDuringOperation");l("DeviceExtractOnboardingStateError"),l("DeviceOnboardingStatePollingError"),l("EnpointConfig"),l("EthAppPleaseEnableContractData"),l("FeeEstimationFailed"),l("FirmwareNotRecognized"),l("HardResetFail"),l("InvalidXRPTag"),l("InvalidAddress"),l("InvalidNonce"),l("InvalidAddressBecauseDestinationIsAlsoSource"),l("LatestMCUInstalledError"),l("UnknownMCU"),l("LedgerAPIError"),l("LedgerAPIErrorWithMessage"),l("LedgerAPINotAvailable"),l("ManagerAppAlreadyInstalled"),l("ManagerAppRelyOnBTC"),l("ManagerAppDepInstallRequired"),l("ManagerAppDepUninstallRequired"),l("ManagerDeviceLocked"),l("ManagerFirmwareNotEnoughSpace"),l("ManagerNotEnoughSpace"),l("ManagerUninstallBTCDep"),l("NetworkDown"),l("NoAddressesFound"),l("NotEnoughBalance"),l("NotEnoughBalanceToDelegate"),l("NotEnoughBalanceInParentAccount"),l("NotEnoughSpendableBalance"),l("NotEnoughBalanceBecauseDestinationNotCreated"),l("NoAccessToCamera"),l("NotEnoughGas"),l("NotEnoughGasSwap"),l("NotSupportedLegacyAddress"),l("GasLessThanEstimate"),l("PriorityFeeTooLow"),l("PriorityFeeTooHigh"),l("PriorityFeeHigherThanMaxFee"),l("MaxFeeTooLow"),l("PasswordsDontMatch"),l("PasswordIncorrect"),l("RecommendSubAccountsToEmpty"),l("RecommendUndelegation"),l("TimeoutTagged"),l("UnexpectedBootloader"),l("MCUNotGenuineToDashboard"),l("RecipientRequired"),l("UnavailableTezosOriginatedAccountReceive"),l("UnavailableTezosOriginatedAccountSend"),l("UpdateFetchFileFail"),l("UpdateIncorrectHash"),l("UpdateIncorrectSig"),l("UpdateYourApp"),l("UserRefusedDeviceNameChange"),l("UserRefusedAddress"),l("UserRefusedFirmwareUpdate"),l("UserRefusedAllowManager"),l("UserRefusedOnDevice");let f=l("TransportOpenUserCancelled");l("TransportInterfaceNotAvailable");let h=l("TransportRaceCondition");l("TransportWebUSBGestureRequired"),l("TransactionHasBeenValidatedError"),l("DeviceShouldStayInApp"),l("WebsocketConnectionError"),l("WebsocketConnectionFailed"),l("WrongDeviceForAccount"),l("WrongAppForCurrency"),l("ETHAddressNonEIP"),l("CantScanQRCode"),l("FeeNotLoaded"),l("FeeRequired"),l("FeeTooHigh"),l("PendingOperation"),l("SyncError"),l("PairingFailed"),l("PeerRemovedPairing"),l("GenuineCheckFailed"),l("LedgerAPI4xx"),l("LedgerAPI5xx"),l("FirmwareOrAppUpdateRequired"),l("OpReturnSizeLimit"),l("DustLimit"),l("LanguageNotFound"),l("NoDBPathGiven"),l("DBWrongPassword"),l("DBNotReset"),(i=n||(n={})).Unknown="Unknown",i.LocationServicesDisabled="LocationServicesDisabled",i.LocationServicesUnauthorized="LocationServicesUnauthorized",i.BluetoothScanStartFailed="BluetoothScanStartFailed";class p extends Error{constructor(e,t){let r="TransportError";super(e||r),this.name=r,this.message=e,this.stack=Error(e).stack,this.id=t}}s("TransportError",e=>new p(e.message,e.id));let m={ACCESS_CONDITION_NOT_FULFILLED:38916,ALGORITHM_NOT_SUPPORTED:38020,CLA_NOT_SUPPORTED:28160,CODE_BLOCKED:38976,CODE_NOT_INITIALIZED:38914,COMMAND_INCOMPATIBLE_FILE_STRUCTURE:27009,CONDITIONS_OF_USE_NOT_SATISFIED:27013,CONTRADICTION_INVALIDATION:38928,CONTRADICTION_SECRET_CODE_STATUS:38920,CUSTOM_IMAGE_BOOTLOADER:26159,CUSTOM_IMAGE_EMPTY:26158,FILE_ALREADY_EXISTS:27273,FILE_NOT_FOUND:37892,GP_AUTH_FAILED:25344,HALTED:28586,INCONSISTENT_FILE:37896,INCORRECT_DATA:27264,INCORRECT_LENGTH:26368,INCORRECT_P1_P2:27392,INS_NOT_SUPPORTED:27904,DEVICE_NOT_ONBOARDED:27911,DEVICE_NOT_ONBOARDED_2:26129,INVALID_KCV:38021,INVALID_OFFSET:37890,LICENSING:28482,LOCKED_DEVICE:21781,MAX_VALUE_REACHED:38992,MEMORY_PROBLEM:37440,MISSING_CRITICAL_PARAMETER:26624,NO_EF_SELECTED:37888,NOT_ENOUGH_MEMORY_SPACE:27268,OK:36864,PIN_REMAINING_ATTEMPTS:25536,REFERENCED_DATA_NOT_FOUND:27272,SECURITY_STATUS_NOT_SATISFIED:27010,TECHNICAL_PROBLEM:28416,UNKNOWN_APDU:27906,USER_REFUSED_ON_DEVICE:21761,NOT_ENOUGH_SPACE:20738};function v(e){let t=Object.keys(m).find(t=>m[t]===e)||"UNKNOWN_ERROR",r=function(e){switch(e){case 26368:return"Incorrect length";case 26624:return"Missing critical parameter";case 27010:return"Security not satisfied (dongle locked or have invalid access rights)";case 27013:return"Condition of use not satisfied (denied by the user?)";case 27264:return"Invalid data received";case 27392:return"Invalid parameter received";case 21781:return"Locked device"}if(28416<=e&&e<=28671)return"Internal error, please report"}(e)||t,n=e.toString(16),i=`Ledger device: ${r} (0x${n})`;if(e===m.LOCKED_DEVICE)throw new u(i);this.name="TransportStatusError",this.message=i,this.stack=Error(i).stack,this.statusCode=e,this.statusText=t}v.prototype=Error(),s("TransportStatusError",e=>new v(e.statusCode))},73866:function(e,t,r){"use strict";r.d(t,{Z:function(){return e_}});var n,i=r(97790),o=r(9341),a=r(75102),s=function(e,t){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function l(e,t){function r(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function u(e){return"function"==typeof e}var c=!1,d={Promise:void 0,set useDeprecatedSynchronousErrorHandling(value){value&&Error().stack,c=value},get useDeprecatedSynchronousErrorHandling(){return c}};function f(e){setTimeout(function(){throw e},0)}var h={closed:!0,next:function(e){},error:function(e){if(d.useDeprecatedSynchronousErrorHandling)throw e;f(e)},complete:function(){}},p=Array.isArray||function(e){return e&&"number"==typeof e.length};function m(e){return null!==e&&"object"==typeof e}var v=function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),g=function(){var e;function t(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return t.prototype.unsubscribe=function(){if(!this.closed){var e,r=this._parentOrParents,n=this._ctorUnsubscribe,i=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof t)r.remove(this);else if(null!==r)for(var a=0;a{let n=(function(e,t){let r=[];for(let n=0,i=t(0);nr-(0===e?5:3)).map((e,r)=>{let n=A.alloc(0===r?5:3);return n.writeUInt8(5,0),n.writeUInt16BE(r,1),0===r&&n.writeUInt16BE(t.length,3),A.concat([n,e])});return new S(t=>{let r=!1;return(function(){var t,i,o,a;return t=this,i=void 0,o=void 0,a=function*(){for(let t of n){if(r)return;yield e(t)}},new(o||(o=Promise))(function(e,r){function n(e){try{l(a.next(e))}catch(e){r(e)}}function s(e){try{l(a.throw(e))}catch(e){r(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof o?r:new o(function(e){e(r)})).then(n,s)}l((a=a.apply(t,i||[])).next())})})().then(()=>{r=!0,t.complete()},e=>{r=!0,(0,k.c)("ble-error","sendAPDU failure "+String(e)),t.error(e)}),()=>{r||((0,k.c)("ble-verbose","sendAPDU interruption"),r=!0)}})};var T=r(48834).lW;let _=e=>S.create(t=>{let r=0,n=0,i=T.alloc(0),a=e.subscribe({complete:()=>{t.error(new o.qX),a.unsubscribe()},error:e=>{(0,k.c)("ble-error","in receiveAPDU "+String(e)),t.error(e),a.unsubscribe()},next:e=>{let s=e.readUInt8(0),l=e.readUInt16BE(1),u=e.slice(3);if(5!==s){t.error(new o.PS("Invalid tag "+s.toString(16),"InvalidTag"));return}if(r!==l){t.error(new o.PS("BLE: Invalid sequence number. discontinued chunk. Received "+l+" but expected "+r,"InvalidSequence"));return}if(0===l&&(n=u.readUInt16BE(0),u=u.slice(2)),r++,(i=T.concat([i,u])).length>n){t.error(new o.PS("BLE: received too much data. discontinued chunk. Received "+i.length+" but expected "+n,"BLETooMuchData"));return}i.length===n&&(t.next(i),t.complete(),a.unsubscribe())}});return()=>{a.unsubscribe()}});function M(e,t){return function(r){if("function"!=typeof e)throw TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new R(e,t))}}var R=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new N(e,this.project,this.thisArg))},e}(),N=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.project=r,i.count=0,i.thisArg=n||i,i}return l(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){this.destination.error(e);return}this.destination.next(t)},t}(x),P=function(e){return function(t){for(var r=0,n=e.length;r0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(z);function W(){for(var e,t,r=[],n=0;n1&&"number"==typeof r[r.length-1]&&(i=r.pop())):"number"==typeof a&&(i=r.pop()),null===o&&1===r.length&&r[0]instanceof S)?r[0]:(void 0===(e=i)&&(e=Number.POSITIVE_INFINITY),function e(t,r,n){return(void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof r)?function(i){return i.pipe(e(function(e,n){return B(t(e,n)).pipe(M(function(t,i){return r(e,t,n,i)}))},n))}:("number"==typeof r&&(n=r),function(e){return e.lift(new H(t,n))})}(j,e))((t=o)?V(r,t):new S(P(r)))}var q=new S(function(e){return e.complete()});function G(){}var Z=function(){function e(e,t,r){this.nextOrObserver=e,this.error=t,this.complete=r}return e.prototype.call=function(e,t){return t.subscribe(new Y(e,this.nextOrObserver,this.error,this.complete))},e}(),Y=function(e){function t(t,r,n,i){var o=e.call(this,t)||this;return o._tapNext=G,o._tapError=G,o._tapComplete=G,o._tapError=n||G,o._tapComplete=i||G,u(r)?(o._context=o,o._tapNext=r):r&&(o._context=r,o._tapNext=r.next||G,o._tapError=r.error||G,o._tapComplete=r.complete||G),o}return l(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){this.destination.error(e);return}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){this.destination.error(e);return}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){this.destination.error(e);return}return this.destination.complete()},t}(x),X=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),K=function(e){function t(t,r){var n=e.call(this)||this;return n.subject=t,n.subscriber=r,n.closed=!1,n}return l(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var r=t.indexOf(this.subscriber);-1!==r&&t.splice(r,1)}}},t}(g),J=function(e){function t(t){var r=e.call(this,t)||this;return r.destination=t,r}return l(t,e),t}(x),Q=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return l(t,e),t.prototype[b]=function(){return new J(this)},t.prototype.lift=function(e){var t=new ee(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new X;if(!this.isStopped)for(var t=this.observers,r=t.length,n=t.slice(),i=0;i1)){this.connection=null;return}var r=this.connection,n=e._connection;this.connection=null,n&&(!r||n===r)&&n.unsubscribe()},t}(x),ei={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(n=function(e){function t(t,r){var n=e.call(this)||this;return n.source=t,n.subjectFactory=r,n._refCount=0,n._isComplete=!1,n}return l(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return!e&&(this._isComplete=!1,(e=this._connection=new g).add(this.source.subscribe(new eo(this.getSubject(),this))),e.closed&&(this._connection=null,e=g.EMPTY)),e},t.prototype.refCount=function(){return et()(this)},t}(S).prototype)._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}},eo=function(e){function t(t,r){var n=e.call(this,t)||this;return n.connectable=r,n}return l(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(J),ea=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var r=this.selector,n=this.subjectFactory(),i=r(n).subscribe(e);return i.add(t.subscribe(n)),i},e}();function es(){return new Q}var el=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}(),eu=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new ec(e,this.predicate,this.thisArg))},e}(),ec=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.predicate=r,i.thisArg=n,i.count=0,i}return l(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){this.destination.error(e);return}t&&this.destination.next(e)},t}(x),ed=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}(),ef=function(){function e(e){if(this.total=e,this.total<0)throw new ed}return e.prototype.call=function(e,t){return t.subscribe(new eh(e,this.total))},e}(),eh=function(e){function t(t,r){var n=e.call(this,t)||this;return n.total=r,n.count=0,n}return l(t,e),t.prototype._next=function(e){var t=this.total,r=++this.count;r<=t&&(this.destination.next(e),r===t&&(this.destination.complete(),this.unsubscribe()))},t}(x),ep=function(){function e(e){this.defaultValue=e}return e.prototype.call=function(e,t){return t.subscribe(new em(e,this.defaultValue))},e}(),em=function(e){function t(t,r){var n=e.call(this,t)||this;return n.defaultValue=r,n.isEmpty=!0,n}return l(t,e),t.prototype._next=function(e){this.isEmpty=!1,this.destination.next(e)},t.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},t}(x),ev=function(){function e(e){this.errorFactory=e}return e.prototype.call=function(e,t){return t.subscribe(new eg(e,this.errorFactory))},e}(),eg=function(e){function t(t,r){var n=e.call(this,t)||this;return n.errorFactory=r,n.hasValue=!1,n}return l(t,e),t.prototype._next=function(e){this.hasValue=!0,this.destination.next(e)},t.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var e=void 0;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)},t}(x),ey=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new eb(e))},e}(),eb=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype._next=function(e){},t}(x),ex=r(48834).lW;let ew=e=>S.create(t=>{function r(e){let r=e.target;r.value&&t.next(ex.from(r.value.buffer))}return(0,k.c)("ble-verbose","start monitor "+e.uuid),e.startNotifications().then(()=>{e.addEventListener("characteristicvaluechanged",r)}),()=>{(0,k.c)("ble-verbose","end monitor "+e.uuid),e.stopNotifications()}});var eE=r(48834).lW,ej=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};let eS=()=>{let{bluetooth:e}=navigator;if(void 0===e)throw Error("web bluetooth not supported");return e},eC=()=>S.create(e=>{let t=eS(),r=t=>{e.next(t.value)};t.addEventListener("availabilitychanged",r);let n=!1;return t.getAvailability().then(t=>{n||e.next(t)}),()=>{n=!0,t.removeEventListener("availabilitychanged",r)}}),ek={},eA=()=>({filters:(0,a.RH)().map(e=>({services:[e]}))}),eO=e=>ej(void 0,void 0,void 0,function*(){if(!e.gatt)throw Error("bluetooth gatt not found");let[t]=yield e.gatt.getPrimaryServices();if(!t)throw Error("bluetooth service not found");let r=(0,a.R7)(t.uuid);if(!r)throw Error("bluetooth service infos not found");return[t,r]});class eT extends i.ZP{static listen(e){let t;(0,k.c)("ble-verbose","listen...");let r=eS();return r.requestDevice(eA()).then(r=>{t||(e.next({type:"add",descriptor:r}),e.complete())},t=>{e.error(new o.FB(t.message))}),{unsubscribe:function(){t=!0}}}static open(e){return ej(this,void 0,void 0,function*(){return function e(t,r){return ej(this,void 0,void 0,function*(){var n;let i;if("string"==typeof t){if(ek[t])return(0,k.c)("ble-verbose","Transport in cache, using that."),ek[t];let e=eS();i=yield e.requestDevice(eA())}else i=t;i.gatt.connected||((0,k.c)("ble-verbose","not connected. connecting..."),yield i.gatt.connect());let[a,s]=yield eO(i),{deviceModel:l,writeUuid:u,notifyUuid:c}=s,[d,f]=yield Promise.all([a.getCharacteristic(u),a.getCharacteristic(c)]),h=ew(f).pipe((n=e=>{(0,k.c)("ble-frame","<= "+e.toString("hex"))},function(e){return e.lift(new Z(n,void 0,void 0))}),function(e){var t;return et()(function(e){if("function"==typeof t)return e.lift(new ea(es,t));var r=Object.create(e,ei);return r.source=e,r.subjectFactory=es,r}(e))}),p=h.subscribe(),m=new eT(i,d,h,l);if(!i.gatt.connected)throw new o.qX;ek[m.id]=m;let v=e=>{console.log("onDisconnect!",e),delete ek[m.id],m.notYetDisconnected=!1,p.unsubscribe(),i.removeEventListener("gattserverdisconnected",v),(0,k.c)("ble-verbose",`BleTransport(${m.id}) disconnected`),m.emit("disconnect",e)};i.addEventListener("gattserverdisconnected",v);let g=Date.now();try{yield m.inferMTU()}finally{let e=Date.now();e-g<1e3&&(r=!1),r&&(yield i.gatt.disconnect(),yield new Promise(e=>setTimeout(e,4e3)))}return r?e(i,!1):m})}(e,!0)})}constructor(e,t,r,n){super(),this.mtuSize=20,this.notYetDisconnected=!0,this.write=e=>ej(this,void 0,void 0,function*(){(0,k.c)("ble-frame","=> "+e.toString("hex")),yield this.writeCharacteristic.writeValue(e)}),this.id=e.id,this.device=e,this.writeCharacteristic=t,this.notifyObservable=r,this.deviceModel=n,(0,k.c)("ble-verbose",`BleTransport(${String(this.id)}) new instance`)}inferMTU(){return ej(this,void 0,void 0,function*(){let e=23;if(yield this.exchangeAtomicImpl(()=>ej(this,void 0,void 0,function*(){try{var t;e=(yield W(this.notifyObservable.pipe(function(e,t){var r=arguments.length>=2;return function(t){var n,i,o;return t.pipe(e?(n=function(r,n){return e(r,n,t)},function(e){return e.lift(new eu(n,void 0))}):j,function(e){return e.lift(new ef(1))},r?(i=void 0,i=null,function(e){return e.lift(new ep(i))}):(o=function(){return new el},function(e){return e.lift(new ev(o))}))}}(e=>8===e.readUInt8(0)),M(e=>e.readUInt8(5))),(t=()=>B(this.write(eE.from([8,0,0,0,0]))),new S(function(e){var r,n,i;try{n=t()}catch(t){e.error(t);return}return(n?B(n):r?(i=r,new S(function(e){return i.schedule(function(){return e.complete()})})):q).subscribe(e)})).pipe(function(e){return e.lift(new ey)})).toPromise())+3}catch(e){throw(0,k.c)("ble-error","inferMTU got "+String(e)),this.device.gatt.disconnect(),e}})),e>23){let t=e-3;(0,k.c)("ble-verbose",`BleTransport(${String(this.id)}) mtu set to ${String(t)}`),this.mtuSize=t}return this.mtuSize})}exchange(e){return ej(this,void 0,void 0,function*(){let t=yield this.exchangeAtomicImpl(()=>ej(this,void 0,void 0,function*(){try{let t=e.toString("hex");(0,k.c)("apdu",`=> ${t}`);let r=yield W(this.notifyObservable.pipe(_),O(this.write,e,this.mtuSize)).toPromise(),n=r.toString("hex");return(0,k.c)("apdu",`<= ${n}`),r}catch(e){throw(0,k.c)("ble-error","exchange got "+String(e)),this.notYetDisconnected&&this.device.gatt.disconnect(),e}}));return t})}setScrambleKey(){}close(){return ej(this,void 0,void 0,function*(){this.exchangeBusyPromise&&(yield this.exchangeBusyPromise)})}}eT.isSupported=()=>Promise.resolve().then(eS).then(()=>!0,()=>!1),eT.observeAvailability=e=>eC().subscribe(e),eT.list=()=>Promise.resolve([]),eT.disconnect=e=>ej(void 0,void 0,void 0,function*(){(0,k.c)("ble-verbose",`user disconnect(${e})`);let t=ek[e];t&&t.device.gatt.disconnect()});var e_=eT},27748:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=r(97790),i=r(9341),o=r(48834).lW;let a={data:o.alloc(0),dataLength:0,sequence:0};var s=(e,t)=>({makeBlocks(r){let n=o.concat([function(e){let t=o.alloc(2);return t.writeUInt16BE(e,0),t}(r.length),r]),i=t-5,a=Math.ceil(n.length/i);n=o.concat([n,o.alloc(a*i-n.length+1).fill(0)]);let s=[];for(let t=0;ts&&(n=n.slice(0,s)),{data:n,dataLength:s,sequence:l}},getReducedResult(e){if(e&&e.dataLength===e.data.length)return e.data}}),l=r(75102),u=r(91288),c=r(48834).lW,d=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};let f=[{vendorId:l.An}],h=()=>{let{hid:e}=navigator;if(!e)throw new i.PS("navigator.hid is not supported","HIDNotSupported");return e};function p(){return d(this,void 0,void 0,function*(){let e=yield h().requestDevice({filters:f});return Array.isArray(e)?e:[e]})}function m(){return d(this,void 0,void 0,function*(){let e=yield h().getDevices();return e.filter(e=>e.vendorId===l.An)})}class v extends n.ZP{constructor(e){super(),this.channel=Math.floor(65535*Math.random()),this.packetSize=64,this.inputs=[],this.read=()=>this.inputs.length?Promise.resolve(this.inputs.shift()):new Promise(e=>{this.inputCallback=e}),this.onInputReport=e=>{let t=c.from(e.data.buffer);this.inputCallback?(this.inputCallback(t),this.inputCallback=null):this.inputs.push(t)},this._disconnectEmitted=!1,this._emitDisconnect=e=>{this._disconnectEmitted||(this._disconnectEmitted=!0,this.emit("disconnect",e))},this.exchange=e=>d(this,void 0,void 0,function*(){let t=yield this.exchangeAtomicImpl(()=>d(this,void 0,void 0,function*(){let t,r;let{channel:n,packetSize:i}=this;(0,u.c)("apdu","=> "+e.toString("hex"));let o=s(n,i),a=o.makeBlocks(e);for(let e=0;e{if(e&&e.message&&e.message.includes("write"))throw this._emitDisconnect(e),new i.vs(e.message);throw e});return t}),this.device=e,this.deviceModel="number"==typeof e.productId?(0,l.Ht)(e.productId):void 0,e.addEventListener("inputreport",this.onInputReport)}static request(){return d(this,void 0,void 0,function*(){let[e]=yield p();return v.open(e)})}static openConnected(){return d(this,void 0,void 0,function*(){let e=yield m();return 0===e.length?null:v.open(e[0])})}static open(e){return d(this,void 0,void 0,function*(){yield e.open();let t=new v(e),r=n=>{e===n.device&&(h().removeEventListener("disconnect",r),t._emitDisconnect(new i.qX))};return h().addEventListener("disconnect",r),t})}close(){return d(this,void 0,void 0,function*(){yield this.exchangeBusyPromise,this.device.removeEventListener("inputreport",this.onInputReport),yield this.device.close()})}setScrambleKey(){}}v.isSupported=()=>Promise.resolve(!!(window.navigator&&window.navigator.hid)),v.list=m,v.listen=e=>{let t=!1;return(function(){return d(this,void 0,void 0,function*(){let e=yield m();if(e.length>0)return e[0];let t=yield p();return t[0]})})().then(r=>{if(r){if(!t){let t="number"==typeof r.productId?(0,l.Ht)(r.productId):void 0;e.next({type:"add",descriptor:r,deviceModel:t}),e.complete()}}else e.error(new i.FB("Access denied to use Ledger device"))},t=>{e.error(new i.FB(t.message))}),{unsubscribe:function(){t=!0}}};var g=v},97790:function(e,t,r){"use strict";var n=r(22699),i=r.n(n),o=r(9341),a=r(48834).lW,s=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};class l{constructor(){this.exchangeTimeout=3e4,this.unresponsiveTimeout=15e3,this.deviceModel=null,this._events=new(i()),this.send=(e,t,r,n,i=a.alloc(0),l=[o.WC.OK])=>s(this,void 0,void 0,function*(){if(i.length>=256)throw new o.PS("data.length exceed 256 bytes limit. Got: "+i.length,"DataLengthTooBig");let s=yield this.exchange(a.concat([a.from([e,t,r,n]),a.from([i.length]),i])),u=s.readUInt16BE(s.length-2);if(!l.some(e=>e===u))throw new o.rZ(u);return s}),this.exchangeAtomicImpl=e=>s(this,void 0,void 0,function*(){let t;if(this.exchangeBusyPromise)throw new o.wp("An action was already pending on the Ledger device. Please deny or reconnect.");let r=new Promise(e=>{t=e});this.exchangeBusyPromise=r;let n=!1,i=setTimeout(()=>{n=!0,this.emit("unresponsive")},this.unresponsiveTimeout);try{let t=yield e();return n&&this.emit("responsive"),t}finally{clearTimeout(i),t&&t(),this.exchangeBusyPromise=null}}),this._appAPIlock=null}exchange(e){throw Error("exchange not implemented")}exchangeBulk(e,t){let r=!1;return s(this,void 0,void 0,function*(){if(!r)for(let n of e){let e=yield this.exchange(n);if(r)return;let i=e.readUInt16BE(e.length-2);if(i!==o.WC.OK)throw new o.rZ(i);t.next(e)}}).then(()=>!r&&t.complete(),e=>!r&&t.error(e)),{unsubscribe:()=>{r=!0}}}setScrambleKey(e){}close(){return Promise.resolve()}on(e,t){this._events.on(e,t)}off(e,t){this._events.removeListener(e,t)}emit(e,...t){this._events.emit(e,...t)}setDebugMode(){console.warn("setDebugMode is deprecated. use @ledgerhq/logs instead. No logs are emitted in this anymore.")}setExchangeTimeout(e){this.exchangeTimeout=e}setExchangeUnresponsiveTimeout(e){this.unresponsiveTimeout=e}static create(e=3e3,t){return new Promise((r,n)=>{let i=!1,a=this.listen({next:t=>{i=!0,a&&a.unsubscribe(),s&&clearTimeout(s),this.open(t.descriptor,e).then(r,n)},error:e=>{s&&clearTimeout(s),n(e)},complete:()=>{s&&clearTimeout(s),i||n(new o.PS(this.ErrorMessage_NoDeviceFound,"NoDeviceFound"))}}),s=t?setTimeout(()=>{a.unsubscribe(),n(new o.PS(this.ErrorMessage_ListenTimeout,"ListenTimeout"))},t):null})}decorateAppAPIMethods(e,t,r){for(let n of t)e[n]=this.decorateAppAPIMethod(n,e[n],e,r)}decorateAppAPIMethod(e,t,r,n){return(...i)=>s(this,void 0,void 0,function*(){let{_appAPIlock:a}=this;if(a)return Promise.reject(new o.PS("Ledger Device is busy (lock "+a+")","TransportLocked"));try{return this._appAPIlock=e,this.setScrambleKey(n),yield t.apply(r,i)}finally{this._appAPIlock=null}})}}l.ErrorMessage_ListenTimeout="No Ledger device found (timeout)",l.ErrorMessage_NoDeviceFound="No Ledger device found",t.ZP=l},91288:function(e,t,r){"use strict";r.d(t,{c:function(){return o}});var n=0,i=[],o=function(e,t,r){var o={type:e,id:String(++n),date:new Date};t&&(o.message=t),r&&(o.data=r),function(e){for(var t=0;t0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1] - * @license MIT - */let n=r(95766),i=r(62333),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);let r=0|p(e,t),n=a(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(I(e,Uint8Array)){let t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(I(e,ArrayBuffer)||e&&I(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(I(e,SharedArrayBuffer)||e&&I(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);let i=function(e){var t;if(s.isBuffer(e)){let t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|h(e))}function d(e){let t=e.length<0?0:0|h(e.length),r=a(t);for(let n=0;n=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||I(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return P(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return L(e).length;default:if(i)return n?-1:P(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,r){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=t;n2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(o=r=+r)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){let o,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let n=-1;for(o=r;os&&(r=s-l),o=r;o>=0;o--){let r=!0;for(let n=0;n239?4:t>223?3:t>191?2:1;if(i+a<=r){let r,n,s,l;switch(a){case 1:t<128&&(o=t);break;case 2:(192&(r=e[i+1]))==128&&(l=(31&t)<<6|63&r)>127&&(o=l);break;case 3:r=e[i+1],n=e[i+2],(192&r)==128&&(192&n)==128&&(l=(15&t)<<12|(63&r)<<6|63&n)>2047&&(l<55296||l>57343)&&(o=l);break;case 4:r=e[i+1],n=e[i+2],s=e[i+3],(192&r)==128&&(192&n)==128&&(192&s)==128&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s)>65535&&l<1114112&&(o=l)}}null===o?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=a}return function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nr)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function E(e,t,r,n,i){_(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function j(e,t,r,n,i){_(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function S(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function C(e,t,r,n,o){return t=+t,r>>>=0,o||S(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function k(e,t,r,n,o){return t=+t,r>>>=0,o||S(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,s.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),I(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);in.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else if(s.isBuffer(t))t.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tr&&(e+=" ... "),""},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let o=i-n,a=r-t,l=Math.min(o,a),u=this.slice(n,i),c=e.slice(t,r);for(let e=0;e>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let f=this.length-t;if((void 0===r||r>f)&&(r=f),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let h=!1;for(;;)switch(n){case"hex":return function(e,t,r,n){let i;r=Number(r)||0;let o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;let a=t.length;for(n>a/2&&(n=a/2),i=0;i>8,i.push(r%256),i.push(n);return i}(e,this.length-c),this,c,d);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||x(e,t,this.length);let n=this[e],i=1,o=0;for(;++o>>=0,t>>>=0,r||x(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=V(function(e){M(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&R(e,this.length-8);let n=t+256*this[++e]+65536*this[++e]+16777216*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+16777216*r;return BigInt(n)+(BigInt(i)<>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&R(e,this.length-8);let n=16777216*t+65536*this[++e]+256*this[++e]+this[++e],i=16777216*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||x(e,t,this.length);let n=this[e],i=1,o=0;for(;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||x(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||x(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||x(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=V(function(e){M(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&R(e,this.length-8);let n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&R(e,this.length-8);let n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<>>=0,t||x(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;w(this,e,t,r,n,0)}let i=1,o=0;for(this[t]=255&e;++o>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;w(this,e,t,r,n,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=V(function(e,t=0){return E(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=V(function(e,t=0){return j(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);w(this,e,t,r,n-1,-n)}let i=0,o=1,a=0;for(this[t]=255&e;++i>0)-a&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);w(this,e,t,r,n-1,-n)}let i=r-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=V(function(e,t=0){return E(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=V(function(e,t=0){return j(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(e,t,r){return C(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return C(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function _(e,t,r,n,i,o){if(e>r||e3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(o+1)*8}${i}`:`>= -(2${i} ** ${(o+1)*8-1}${i}) and < 2 ** ${(o+1)*8-1}${i}`:`>= ${t}${i} and <= ${r}${i}`,new A.ERR_OUT_OF_RANGE("value",n,e)}M(i,"offset"),(void 0===n[i]||void 0===n[i+o])&&R(i,n.length-(o+1))}function M(e,t){if("number"!=typeof e)throw new A.ERR_INVALID_ARG_TYPE(t,"number",e)}function R(e,t,r){if(Math.floor(e)!==e)throw M(e,r),new A.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new A.ERR_BUFFER_OUT_OF_BOUNDS;throw new A.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}O("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),O("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),O("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>4294967296?i=T(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=T(i)),i+="n"),n+=` It must be ${t}. Received ${i}`},RangeError);let N=/[^+/0-9A-Za-z-_]/g;function P(e,t){let r;t=t||1/0;let n=e.length,i=null,o=[];for(let a=0;a55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function L(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(N,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function D(e,t,r,n){let i;for(i=0;i=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function I(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let F=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function V(e){return"undefined"==typeof BigInt?B:e}function B(){throw Error("BigInt not supported")}},52180:function(e,t){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){void 0===e&&(e="="),this._paddingCharacter=e}return e.prototype.encodedLength=function(e){return this._paddingCharacter?(e+2)/3*4|0:(8*e+5)/6|0},e.prototype.encode=function(e){for(var t="",r=0;r>>18&63)+this._encodeByte(n>>>12&63)+this._encodeByte(n>>>6&63)+this._encodeByte(n>>>0&63)}var i=e.length-r;if(i>0){var n=e[r]<<16|(2===i?e[r+1]<<8:0);t+=this._encodeByte(n>>>18&63)+this._encodeByte(n>>>12&63),2===i?t+=this._encodeByte(n>>>6&63):t+=this._paddingCharacter||"",t+=this._paddingCharacter||""}return t},e.prototype.maxDecodedLength=function(e){return this._paddingCharacter?e/4*3|0:(6*e+7)/8|0},e.prototype.decodedLength=function(e){return this.maxDecodedLength(e.length-this._getPaddingLength(e))},e.prototype.decode=function(e){if(0===e.length)return new Uint8Array(0);for(var t=this._getPaddingLength(e),r=e.length-t,n=new Uint8Array(this.maxDecodedLength(r)),i=0,o=0,a=0,s=0,l=0,u=0,c=0;o>>4,n[i++]=l<<4|u>>>2,n[i++]=u<<6|c,a|=256&s,a|=256&l,a|=256&u,a|=256&c;if(o>>4,a|=256&s,a|=256&l),o>>2,a|=256&u),o>>8&6)+(51-e>>>8&-75)+(61-e>>>8&-15)+(62-e>>>8&3))},e.prototype._decodeChar=function(e){return 256+((42-e&e-44)>>>8&-256+e-43+62)+((46-e&e-48)>>>8&-256+e-47+63)+((47-e&e-58)>>>8&-256+e-48+52)+((64-e&e-91)>>>8&-256+e-65+0)+((96-e&e-123)>>>8&-256+e-97+26)},e.prototype._getPaddingLength=function(e){var t=0;if(this._paddingCharacter){for(var r=e.length-1;r>=0&&e[r]===this._paddingCharacter;r--)t++;if(e.length<4||t>2)throw Error("Base64Coder: incorrect padding")}return t},e}();t.Coder=i;var o=new i;t.encode=function(e){return o.encode(e)},t.decode=function(e){return o.decode(e)};var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype._encodeByte=function(e){var t=e;return String.fromCharCode(t+=65+(25-e>>>8&6)+(51-e>>>8&-75)+(61-e>>>8&-13)+(62-e>>>8&49))},t.prototype._decodeChar=function(e){return 256+((44-e&e-46)>>>8&-256+e-45+62)+((94-e&e-96)>>>8&-256+e-95+63)+((47-e&e-58)>>>8&-256+e-48+52)+((64-e&e-91)>>>8&-256+e-65+0)+((96-e&e-123)>>>8&-256+e-97+26)},t}(i);t.URLSafeCoder=a;var s=new a;t.encodeURLSafe=function(e){return s.encode(e)},t.decodeURLSafe=function(e){return s.decode(e)},t.encodedLength=function(e){return o.encodedLength(e)},t.maxDecodedLength=function(e){return o.maxDecodedLength(e)},t.decodedLength=function(e){return o.decodedLength(e)}},99985:function(e,t,r){"use strict";t.Z=s;var n=a(r(13980)),i=a(r(2784)),o=a(r(23442));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){var t=e.captureDragArea,r=void 0===t||t,n=e.snapToPointer,a=e.children,s=e.dx,l=e.dy,u=e.height,c=e.onDragEnd,d=e.onDragMove,f=e.onDragStart,h=e.resetOnStart,p=e.width,m=e.x,v=e.y,g=e.isDragging,y=e.restrict,b=e.restrictToPath,x=(0,o.default)({resetOnStart:h,snapToPointer:void 0===n||n,onDragEnd:c,onDragMove:d,onDragStart:f,x:m,y:v,dx:s,dy:l,isDragging:g,restrict:y,restrictToPath:b});return i.default.createElement(i.default.Fragment,null,x.isDragging&&r&&i.default.createElement("rect",{width:p,height:u,onPointerDown:x.dragStart,onPointerMove:x.dragMove,onPointerUp:x.dragEnd,fill:"transparent"}),a(x))}s.propTypes={children:n.default.func.isRequired,width:n.default.number.isRequired,height:n.default.number.isRequired,captureDragArea:n.default.bool,isDragging:n.default.bool}},23442:function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e){var t=void 0===e?{}:e,r=t.resetOnStart,u=void 0!==r&&r,d=t.snapToPointer,f=void 0===d||d,h=t.onDragEnd,p=t.onDragMove,m=t.onDragStart,v=t.x,g=t.y,y=t.dx,b=t.dy,x=t.isDragging,w=t.restrict,E=void 0===w?{}:w,j=t.restrictToPath,S=(0,n.useRef)({x:v,y:g,dx:y,dy:b}),C=(0,a.default)({x:v,y:g,dx:null!=y?y:0,dy:null!=b?b:0,isDragging:!1}),k=C[0],A=C[1],O=(0,n.useState)(new i.Point({x:0,y:0})),T=O[0],_=O[1];(0,n.useEffect)(function(){(S.current.x!==v||S.current.y!==g||S.current.dx!==y||S.current.dy!==b)&&(S.current={x:v,y:g,dx:y,dy:b},A(function(e){return c({},e,{x:v,y:g,dx:null!=y?y:0,dy:null!=b?b:0})}))}),(0,n.useEffect)(function(){void 0!==x&&k.isDragging!==x&&A(function(e){return c({},e,{isDragging:x})})},[k.isDragging,x,A]);var M=(0,l.default)(j),R=(0,n.useCallback)(function(e){e.persist(),A(function(t){var r=t.x,n=t.y,a=t.dx,l=t.dy,c=new i.Point({x:((void 0===r?0:r)||0)+a,y:((void 0===n?0:n)||0)+l}),d=(0,o.localPoint)(e)||new i.Point({x:0,y:0}),h=f?d:c,p=(0,s.default)(h,M,E);return _((0,i.subtractPoints)(c,d)),{isDragging:!0,dx:u?0:t.dx,dy:u?0:t.dy,x:u?p.x:p.x-t.dx,y:u?p.y:p.y-t.dy}},m&&function(t){m(c({},t,{event:e}))})},[m,u,E,M,A,f]),N=(0,n.useCallback)(function(e){e.persist(),A(function(t){if(!t.isDragging)return t;var r=t.x,n=t.y,a=(0,o.localPoint)(e)||new i.Point({x:0,y:0}),l=f?a:(0,i.sumPoints)(a,T),u=(0,s.default)(l,M,E);return c({},t,{dx:u.x-(void 0===r?0:r),dy:u.y-(void 0===n?0:n)})},p&&function(t){t.isDragging&&p(c({},t,{event:e}))})},[A,p,f,T,M,E]),P=(0,n.useCallback)(function(e){e.persist(),A(function(e){return c({},e,{isDragging:!1})},h&&function(t){h(c({},t,{event:e}))})},[h,A]);return c({},k,{dragEnd:P,dragMove:N,dragStart:R})};var n=r(2784),i=r(61305),o=r(65319),a=u(r(37016)),s=u(r(60890)),l=u(r(32722));function u(e){return e&&e.__esModule?e:{default:e}}function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(n=a()).done;){var s=n.value,l=Math.sqrt(Math.pow(s.x-e.x,2)+Math.pow(s.y-e.y,2));l0)?(0,i.default)(e,t):{x:(0,n.default)(e.x,null!=(o=r.xMin)?o:-1/0,null!=(a=r.xMax)?a:1/0),y:(0,n.default)(e.y,null!=(s=r.yMin)?s:-1/0,null!=(l=r.yMax)?l:1/0)}};var n=o(r(30968)),i=o(r(98929));function o(e){return e&&e.__esModule?e:{default:e}}},32722:function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e){return(0,n.useMemo)(function(){if(!e)return[];var t=e.getCTM()||new DOMMatrix;return function(e,t,r){if(void 0===r&&(r=1),!e)return[];for(var n=[],i=e.getTotalLength(),o=0;o<=i;o+=r){var a=e.getPointAtLength(o).matrixTransform(t);n.push(a)}return n}(e,t)},[null==e?void 0:e.getTotalLength()])};var n=r(2784)},37016:function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e){var t=(0,n.useState)(e),r=t[0],i=t[1],o=(0,n.useRef)(null),a=(0,n.useCallback)(function(e,t){o.current=t||null,i(e)},[i]);return(0,n.useLayoutEffect)(function(){o.current&&(o.current(r),o.current=null)},[r]),[r,a]};var n=r(2784)},65319:function(e,t,r){"use strict";r.r(t),r.d(t,{localPoint:function(){return n.Z},touchPoint:function(){return i.Z}});var n=r(91032),i=r(49833)},91032:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(49833),i=r(44321);function o(e,t){if((0,i.kK)(e)&&t)return(0,n.Z)(e,t);if((0,i.cO)(e)){var r=e.target;if(r)return(0,n.Z)(r,e)}return null}},49833:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(19067),i=r(44321);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:o({},a);if((0,i.N5)(e))return{x:e.clientX,y:e.clientY};var t=null==e?void 0:e.target,r=t&&"getBoundingClientRect"in t?t.getBoundingClientRect():null;return r?{x:r.x+r.width/2,y:r.y+r.height/2}:o({},a)}(t),s=(0,i.vZ)(e)?e.ownerSVGElement:e,l=(0,i.DY)(s)?s.getScreenCTM():null;if((0,i.r4)(s)&&l){var u=s.createSVGPoint();return u.x=r.x,u.y=r.y,u=u.matrixTransform(l.inverse()),new n.Z({x:u.x,y:u.y})}var c=e.getBoundingClientRect();return new n.Z({x:r.x-c.left-e.clientLeft,y:r.y-c.top-e.clientTop})}},44321:function(e,t,r){"use strict";function n(e){return!!e&&e instanceof Element}function i(e){return!!e&&(e instanceof SVGElement||"ownerSVGElement"in e)}function o(e){return!!e&&"createSVGPoint"in e}function a(e){return!!e&&"getScreenCTM"in e}function s(e){return!!e&&"changedTouches"in e}function l(e){return!!e&&"clientX"in e}function u(e){return!!e&&(e instanceof Event||"nativeEvent"in e&&e.nativeEvent instanceof Event)}r.d(t,{DY:function(){return a},N5:function(){return l},cO:function(){return u},kK:function(){return n},r4:function(){return o},vZ:function(){return i},z6:function(){return s}})},19067:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});var n=function(){function e(e){var t=e.x,r=e.y;this.x=0,this.y=0,this.x=void 0===t?0:t,this.y=void 0===r?0:r}var t=e.prototype;return t.value=function(){return{x:this.x,y:this.y}},t.toArray=function(){return[this.x,this.y]},e}()},61305:function(e,t,r){"use strict";r.r(t),r.d(t,{Point:function(){return n.Z},subtractPoints:function(){return o},sumPoints:function(){return i}});var n=r(19067);function i(e,t){return new n.Z({x:e.x+t.x,y:e.y+t.y})}function o(e,t){return new n.Z({x:e.x-t.x,y:e.y-t.y})}},47440:function(e,t,r){"use strict";t.Z=function(e){var t=e.from,r=void 0===t?{x:0,y:0}:t,a=e.to,l=void 0===a?{x:1,y:1}:a,u=e.fill,c=e.className,d=e.innerRef,f=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,o),h=r.x===l.x||r.y===l.y;return n.default.createElement("line",s({ref:d,className:(0,i.default)("visx-line",c),x1:r.x,y1:r.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))};var n=a(r(2784)),i=a(r(72779)),o=["from","to","fill","className","innerRef"];function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],function(e){f.headers[e]={}}),o.forEach(["post","put","patch"],function(e){f.headers[e]=o.merge(c)}),e.exports=f},98560:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},29241:function(e){e.exports={version:"0.27.2"}},73644:function(e){"use strict";e.exports=function(e,t){return function(){for(var r=Array(arguments.length),n=0;n=0)&&("set-cookie"===t?a[t]=(a[t]?a[t]:[]).concat([r]):a[t]=a[t]?a[t]+", "+r:r)}),a}},10738:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},70783:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},49027:function(e,t,r){"use strict";var n=r(48834).lW,i=r(93044);e.exports=function(e,t){t=t||new FormData;var r=[];function o(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):n.from(e):e}return!function e(n,a){if(i.isPlainObject(n)||i.isArray(n)){if(-1!==r.indexOf(n))throw Error("Circular reference detected in "+a);r.push(n),i.forEach(n,function(r,n){if(!i.isUndefined(r)){var s,l=a?a+"."+n:n;if(r&&!a&&"object"==typeof r){if(i.endsWith(n,"{}"))r=JSON.stringify(r);else if(i.endsWith(n,"[]")&&(s=i.toArray(r))){s.forEach(function(e){i.isUndefined(e)||t.append(l,o(e))});return}}e(r,l)}}),r.pop()}else t.append(a,o(n))}(e),t}},17525:function(e,t,r){"use strict";var n=r(29241).version,i=r(21218),o={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){o[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var a={};o.transitional=function(e,t,r){function o(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,s){if(!1===e)throw new i(o(n," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!a[n]&&(a[n]=!0,console.warn(o(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),o=n.length;o-- >0;){var a=n[o],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new i("option "+a+" must be "+u,i.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new i("Unknown option "+a,i.ERR_BAD_OPTION)}},validators:o}},93044:function(e,t,r){"use strict";var n,i,o=r(73644),a=Object.prototype.toString,s=(n=Object.create(null),function(e){var t=a.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())});function l(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function u(e){return Array.isArray(e)}function c(e){return void 0===e}var d=l("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function h(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=l("Date"),m=l("File"),v=l("Blob"),g=l("FileList");function y(e){return"[object Function]"===a.call(e)}var b=l("URLSearchParams");function x(e,t){if(null!=e){if("object"!=typeof e&&(e=[e]),u(e))for(var r=0,n=e.length;r0;)a[o=n[i]]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:l,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return -1!==n&&n===r},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var r=Array(t);t-- >0;)r[t]=e[t];return r},isTypedArray:w,isFileList:g}},82294:function(e){"use strict";function t(e,t,i){e instanceof RegExp&&(e=r(e,i)),t instanceof RegExp&&(t=r(t,i));var o=n(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function r(e,t){var r=t.match(e);return r?r[0]:null}function n(e,t,r){var n,i,o,a,s,l=r.indexOf(e),u=r.indexOf(t,l+1),c=l;if(l>=0&&u>0){if(e===t)return[l,u];for(n=[],o=r.length;c>=0&&!s;)c==l?(n.push(c),l=r.indexOf(e,c+1)):1==n.length?s=[n.pop(),u]:((i=n.pop())=0?l:u;n.length&&(s=[o,a])}return s}e.exports=t,t.range=n},95766:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=l(e),a=o[0],s=o[1],u=new i((a+s)*3/4-s),c=0,d=s>0?a-4:a;for(r=0;r>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},6391:function(e,t,r){var n;!function(i){"use strict";var o,a=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,l=Math.floor,u="[BigNumber Error] ",c=u+"Number primitive has more than 15 significant digits: ",d=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function f(e){var t=0|e;return e>0||e===t?t:t-1}function h(e){for(var t,r,n=1,i=e.length,o=e[0]+"";nu^r?1:-1;for(a=0,s=(l=i.length)<(u=o.length)?l:u;ao[a]^r?1:-1;return l==u?0:l>u^r?1:-1}function m(e,t,r,n){if(er||e!==l(e))throw Error(u+(n||"Argument")+("number"==typeof e?er?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function v(e){var t=e.c.length-1;return f(e.e/14)==t&&e.c[t]%2!=0}function g(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function y(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(n=e.length,++t>n){for(i=r,t-=n;--t;i+=r);e+=i}else tM?h.c=h.e=null:e.e<_?h.c=[h.e=0]:(h.e=e.e,h.c=e.c.slice());return}if((u="number"==typeof e)&&0*e==0){if(h.s=1/e<0?(e=-e,-1):1,e===~~e){for(o=0,s=e;s>=10;s/=10,o++);o>M?h.c=h.e=null:(h.e=o,h.c=[e]);return}f=String(e)}else{if(!a.test(f=String(e)))return j(h,f,u);h.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(o=f.indexOf("."))>-1&&(f=f.replace(".","")),(s=f.search(/e/i))>0?(o<0&&(o=s),o+=+f.slice(s+1),f=f.substring(0,s)):o<0&&(o=f.length)}else{if(m(t,2,D.length,"Base"),10==t&&I)return z(h=new F(e),k+h.e+1,A);if(f=String(e),u="number"==typeof e){if(0*e!=0)return j(h,f,u,t);if(h.s=1/e<0?(f=f.slice(1),-1):1,F.DEBUG&&f.replace(/^0\.0*|\./,"").length>15)throw Error(c+e)}else h.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(r=D.slice(0,t),o=s=0,d=f.length;sr.indexOf(n=f.charAt(s))){if("."==n){if(s>o){o=d;continue}}else if(!i&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){i=!0,s=-1,o=0;continue}return j(h,String(e),u,t)}u=!1,(o=(f=E(f,t,10,h.s)).indexOf("."))>-1?f=f.replace(".",""):o=f.length}for(s=0;48===f.charCodeAt(s);s++);for(d=f.length;48===f.charCodeAt(--d););if(f=f.slice(s,++d)){if(d-=s,u&&F.DEBUG&&d>15&&(e>9007199254740991||e!==l(e)))throw Error(c+h.s*e);if((o=o-s-1)>M)h.c=h.e=null;else if(o<_)h.c=[h.e=0];else{if(h.e=o,h.c=[],s=(o+1)%14,o<0&&(s+=14),s=T)?g(l,a):y(l,a,"0");else if(o=(e=z(new F(e),t,r)).e,s=(l=h(e.c)).length,1==n||2==n&&(t<=o||o<=O)){for(;ss){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=o-s)>0)for(o+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function B(e,t){for(var r,n=1,i=new F(e[0]);n=10;i/=10,n++);return(r=n+14*r-1)>M?e.c=e.e=null:r<_?e.c=[e.e=0]:(e.e=r,e.c=t),e}function z(e,t,r,n){var i,o,a,u,c,f,h,p=e.c;if(p){e:{for(i=1,u=p[0];u>=10;u/=10,i++);if((o=t-i)<0)o+=14,a=t,h=(c=p[f=0])/d[i-a-1]%10|0;else if((f=s((o+1)/14))>=p.length){if(n){for(;p.length<=f;p.push(0));c=h=0,i=1,o%=14,a=o-14+1}else break e}else{for(i=1,c=u=p[f];u>=10;u/=10,i++);o%=14,h=(a=o-14+i)<0?0:c/d[i-a-1]%10|0}if(n=n||t<0||null!=p[f+1]||(a<0?c:c%d[i-a-1]),n=r<4?(h||n)&&(0==r||r==(e.s<0?3:2)):h>5||5==h&&(4==r||n||6==r&&(o>0?a>0?c/d[i-a]:0:p[f-1])%10&1||r==(e.s<0?8:7)),t<1||!p[0])return p.length=0,n?(t-=e.e+1,p[0]=d[(14-t%14)%14],e.e=-t||0):p[0]=e.e=0,e;if(0==o?(p.length=f,u=1,f--):(p.length=f+1,u=d[14-o],p[f]=a>0?l(c/d[i-a]%d[a])*u:0),n)for(;;){if(0==f){for(o=1,a=p[0];a>=10;a/=10,o++);for(a=p[0]+=u,u=1;a>=10;a/=10,u++);o!=u&&(e.e++,1e14==p[0]&&(p[0]=1));break}if(p[f]+=u,1e14!=p[f])break;p[f--]=0,u=1}for(o=p.length;0===p[--o];p.pop());}e.e>M?e.c=e.e=null:e.e<_&&(e.c=[e.e=0])}return e}function H(e){var t,r=e.e;return null===r?e.toString():(t=h(e.c),t=r<=O||r>=T?g(t,r):y(t,r,"0"),e.s<0?"-"+t:t)}return F.clone=e,F.ROUND_UP=0,F.ROUND_DOWN=1,F.ROUND_CEIL=2,F.ROUND_FLOOR=3,F.ROUND_HALF_UP=4,F.ROUND_HALF_DOWN=5,F.ROUND_HALF_EVEN=6,F.ROUND_HALF_CEIL=7,F.ROUND_HALF_FLOOR=8,F.EUCLID=9,F.config=F.set=function(e){var t,r;if(null!=e){if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(m(r=e[t],0,1e9,t),k=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(m(r=e[t],0,8,t),A=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(m(r[0],-1e9,0,t),m(r[1],0,1e9,t),O=r[0],T=r[1]):(m(r,-1e9,1e9,t),O=-(T=r<0?-r:r))),e.hasOwnProperty(t="RANGE")){if((r=e[t])&&r.pop)m(r[0],-1e9,-1,t),m(r[1],1,1e9,t),_=r[0],M=r[1];else if(m(r,-1e9,1e9,t),r)_=-(M=r<0?-r:r);else throw Error(u+t+" cannot be zero: "+r)}if(e.hasOwnProperty(t="CRYPTO")){if(!!(r=e[t])===r){if(r){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))R=r;else throw R=!r,Error(u+"crypto unavailable")}else R=r}else throw Error(u+t+" not true or false: "+r)}if(e.hasOwnProperty(t="MODULO_MODE")&&(m(r=e[t],0,9,t),N=r),e.hasOwnProperty(t="POW_PRECISION")&&(m(r=e[t],0,1e9,t),P=r),e.hasOwnProperty(t="FORMAT")){if("object"==typeof(r=e[t]))L=r;else throw Error(u+t+" not an object: "+r)}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(u+t+" invalid: "+r);I="0123456789"==r.slice(0,10),D=r}}else throw Error(u+"Object expected: "+e)}return{DECIMAL_PLACES:k,ROUNDING_MODE:A,EXPONENTIAL_AT:[O,T],RANGE:[_,M],CRYPTO:R,MODULO_MODE:N,POW_PRECISION:P,FORMAT:L,ALPHABET:D}},F.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!F.DEBUG)return!0;var t,r,n=e.c,i=e.e,o=e.s;e:if("[object Array]"==({}).toString.call(n)){if((1===o||-1===o)&&i>=-1e9&&i<=1e9&&i===l(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break e}if((t=(i+1)%14)<1&&(t+=14),String(n[0]).length==t){for(t=0;t=1e14||r!==l(r))break e;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(u+"Invalid BigNumber: "+e)},F.maximum=F.max=function(){return B(arguments,S.lt)},F.minimum=F.min=function(){return B(arguments,S.gt)},F.random=(r=9007199254740992*Math.random()&2097151?function(){return l(9007199254740992*Math.random())}:function(){return(1073741824*Math.random()|0)*8388608+(8388608*Math.random()|0)},function(e){var t,n,i,o,a,c=0,f=[],h=new F(C);if(null==e?e=k:m(e,0,1e9),o=s(e/14),R){if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));c>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[c]=n[0],t[c+1]=n[1]):(f.push(a%1e14),c+=2);c=o/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(o*=7);c=9e15?crypto.randomBytes(7).copy(t,c):(f.push(a%1e14),c+=7);c=o/7}else throw R=!1,Error(u+"crypto unavailable")}if(!R)for(;c=10;a/=10,c++);c<14&&(i-=14-c)}return h.e=i,h.c=f,h}),F.sum=function(){for(var e=1,t=arguments,r=new F(t[0]);er-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/r|0,a[i]%=r)}return a.reverse()}return function(r,n,i,o,a){var s,l,u,c,d,f,p,m,v=r.indexOf("."),g=k,b=A;for(v>=0&&(c=P,P=0,r=r.replace(".",""),f=(m=new F(n)).pow(r.length-v),P=c,m.c=t(y(h(f.c),f.e,"0"),10,i,e),m.e=m.c.length),u=c=(p=t(r,n,i,a?(s=D,e):(s=e,D))).length;0==p[--c];p.pop());if(!p[0])return s.charAt(0);if(v<0?--u:(f.c=p,f.e=u,f.s=o,p=(f=w(f,m,g,b,i)).c,d=f.r,u=f.e),v=p[l=u+g+1],c=i/2,d=d||l<0||null!=p[l+1],d=b<4?(null!=v||d)&&(0==b||b==(f.s<0?3:2)):v>c||v==c&&(4==b||d||6==b&&1&p[l-1]||b==(f.s<0?8:7)),l<1||!p[0])r=d?y(s.charAt(1),-g,s.charAt(0)):s.charAt(0);else{if(p.length=l,d)for(--i;++p[--l]>i;)p[l]=0,l||(++u,p=[1].concat(p));for(c=p.length;!p[--c];);for(v=0,r="";v<=c;r+=s.charAt(p[v++]));r=y(r,u,s.charAt(0))}return r}}(),w=function(){function e(e,t,r){var n,i,o,a,s=0,l=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();l--;)n=c*(o=e[l]%1e7)+(a=e[l]/1e7|0)*u,s=((i=u*o+n%1e7*1e7+s)/r|0)+(n/1e7|0)+c*a,e[l]=i%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;it[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]1;e.splice(0,1));}return function(n,i,o,a,s){var u,c,d,h,p,m,v,g,y,b,x,w,E,j,S,C,k,A=n.s==i.s?1:-1,O=n.c,T=i.c;if(!O||!O[0]||!T||!T[0])return new F(n.s&&i.s&&(O?!T||O[0]!=T[0]:T)?O&&0==O[0]||!T?0*A:A/0:NaN);for(y=(g=new F(A)).c=[],A=o+(c=n.e-i.e)+1,s||(s=1e14,c=f(n.e/14)-f(i.e/14),A=A/14|0),d=0;T[d]==(O[d]||0);d++);if(T[d]>(O[d]||0)&&c--,A<0)y.push(1),h=!0;else{for(j=O.length,C=T.length,d=0,A+=2,(p=l(s/(T[0]+1)))>1&&(T=e(T,p,s),O=e(O,p,s),C=T.length,j=O.length),E=C,x=(b=O.slice(0,C)).length;x=s/2&&S++;do{if(p=0,(u=t(T,b,C,x))<0){if(w=b[0],C!=x&&(w=w*s+(b[1]||0)),(p=l(w/S))>1)for(p>=s&&(p=s-1),v=(m=e(T,p,s)).length,x=b.length;1==t(m,b,v,x);)p--,r(m,Ct(T,b,C,x);)p++,r(b,C=10;A/=10,d++);z(g,o+(g.e=d+14*c-1)+1,a,h)}else g.e=c,g.r=+h;return g}}(),n=/^(-?)0([xbo])(?=\w[\w.]*$)/i,i=/^([^.]+)\.$/,o=/^\.([^.]+)$/,b=/^-?(Infinity|NaN)$/,x=/^\s*\+(?=[\w.])|^\s+|\s+$/g,j=function(e,t,r,a){var s,l=r?t:t.replace(x,"");if(b.test(l))e.s=isNaN(l)?null:l<0?-1:1;else{if(!r&&(l=l.replace(n,function(e,t,r){return s="x"==(r=r.toLowerCase())?16:"b"==r?2:8,a&&a!=s?e:t}),a&&(s=a,l=l.replace(i,"$1").replace(o,"0.$1")),t!=l))return new F(l,s);if(F.DEBUG)throw Error(u+"Not a"+(a?" base "+a:"")+" number: "+t);e.s=null}e.c=e.e=null},S.absoluteValue=S.abs=function(){var e=new F(this);return e.s<0&&(e.s=1),e},S.comparedTo=function(e,t){return p(this,new F(e,t))},S.decimalPlaces=S.dp=function(e,t){var r,n,i;if(null!=e)return m(e,0,1e9),null==t?t=A:m(t,0,8),z(new F(this),e+this.e+1,t);if(!(r=this.c))return null;if(n=((i=r.length-1)-f(this.e/14))*14,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},S.dividedBy=S.div=function(e,t){return w(this,new F(e,t),k,A)},S.dividedToIntegerBy=S.idiv=function(e,t){return w(this,new F(e,t),0,1)},S.exponentiatedBy=S.pow=function(e,t){var r,n,i,o,a,c,d,f,h,p=this;if((e=new F(e)).c&&!e.isInteger())throw Error(u+"Exponent not an integer: "+H(e));if(null!=t&&(t=new F(t)),c=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return h=new F(Math.pow(+H(p),c?2-v(e):+H(e))),t?h.mod(t):h;if(d=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new F(NaN);(n=!d&&p.isInteger()&&t.isInteger())&&(p=p.mod(t))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||c&&p.c[1]>=24e7:p.c[0]<8e13||c&&p.c[0]<=9999975e7)))return o=p.s<0&&v(e)?-0:0,p.e>-1&&(o=1/o),new F(d?1/o:o);P&&(o=s(P/14+2))}for(c?(r=new F(.5),d&&(e.s=1),f=v(e)):f=(i=Math.abs(+H(e)))%2,h=new F(C);;){if(f){if(!(h=h.times(p)).c)break;o?h.c.length>o&&(h.c.length=o):n&&(h=h.mod(t))}if(i){if(0===(i=l(i/2)))break;f=i%2}else if(z(e=e.times(r),e.e+1,1),e.e>14)f=v(e);else{if(0==(i=+H(e)))break;f=i%2}p=p.times(p),o?p.c&&p.c.length>o&&(p.c.length=o):n&&(p=p.mod(t))}return n?h:(d&&(h=C.div(h)),t?h.mod(t):o?z(h,P,A,a):h)},S.integerValue=function(e){var t=new F(this);return null==e?e=A:m(e,0,8),z(t,t.e+1,e)},S.isEqualTo=S.eq=function(e,t){return 0===p(this,new F(e,t))},S.isFinite=function(){return!!this.c},S.isGreaterThan=S.gt=function(e,t){return p(this,new F(e,t))>0},S.isGreaterThanOrEqualTo=S.gte=function(e,t){return 1===(t=p(this,new F(e,t)))||0===t},S.isInteger=function(){return!!this.c&&f(this.e/14)>this.c.length-2},S.isLessThan=S.lt=function(e,t){return 0>p(this,new F(e,t))},S.isLessThanOrEqualTo=S.lte=function(e,t){return -1===(t=p(this,new F(e,t)))||0===t},S.isNaN=function(){return!this.s},S.isNegative=function(){return this.s<0},S.isPositive=function(){return this.s>0},S.isZero=function(){return!!this.c&&0==this.c[0]},S.minus=function(e,t){var r,n,i,o,a=this.s;if(t=(e=new F(e,t)).s,!a||!t)return new F(NaN);if(a!=t)return e.s=-t,this.plus(e);var s=this.e/14,l=e.e/14,u=this.c,c=e.c;if(!s||!l){if(!u||!c)return u?(e.s=-t,e):new F(c?this:NaN);if(!u[0]||!c[0])return c[0]?(e.s=-t,e):new F(u[0]?this:3==A?-0:0)}if(s=f(s),l=f(l),u=u.slice(),a=s-l){for((o=a<0)?(a=-a,i=u):(l=s,i=c),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(n=(o=(a=u.length)<(t=c.length))?a:t,a=t=0;t0)for(;t--;u[r++]=0);for(t=1e14-1;n>a;){if(u[--n]=0;){for(r=0,h=g[i]%1e7,p=g[i]/1e7|0,o=i+(a=l);o>i;)s=p*(u=v[--a]%1e7)+(c=v[a]/1e7|0)*h,r=((u=h*u+s%1e7*1e7+m[o]+r)/1e14|0)+(s/1e7|0)+p*c,m[o--]=u%1e14;m[o]=r}return r?++n:m.splice(0,1),U(e,m,n)},S.negated=function(){var e=new F(this);return e.s=-e.s||null,e},S.plus=function(e,t){var r,n=this.s;if(t=(e=new F(e,t)).s,!n||!t)return new F(NaN);if(n!=t)return e.s=-t,this.minus(e);var i=this.e/14,o=e.e/14,a=this.c,s=e.c;if(!i||!o){if(!a||!s)return new F(n/0);if(!a[0]||!s[0])return s[0]?e:new F(a[0]?this:0*n)}if(i=f(i),o=f(o),a=a.slice(),n=i-o){for(n>0?(o=i,r=s):(n=-n,r=a),r.reverse();n--;r.push(0));r.reverse()}for((n=a.length)-(t=s.length)<0&&(r=s,s=a,a=r,t=n),n=0;t;)n=(a[--t]=a[t]+s[t]+n)/1e14|0,a[t]=1e14===a[t]?0:a[t]%1e14;return n&&(a=[n].concat(a),++o),U(e,a,o)},S.precision=S.sd=function(e,t){var r,n,i;if(null!=e&&!!e!==e)return m(e,1,1e9),null==t?t=A:m(t,0,8),z(new F(this),e,t);if(!(r=this.c))return null;if(n=14*(i=r.length-1)+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&this.e+1>n&&(n=this.e+1),n},S.shiftedBy=function(e){return m(e,-9007199254740991,9007199254740991),this.times("1e"+e)},S.squareRoot=S.sqrt=function(){var e,t,r,n,i,o=this.c,a=this.s,s=this.e,l=k+4,u=new F("0.5");if(1!==a||!o||!o[0])return new F(!a||a<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(a=Math.sqrt(+H(this)))||a==1/0?(((t=h(o)).length+s)%2==0&&(t+="0"),a=Math.sqrt(+t),s=f((s+1)/2)-(s<0||s%2),t=a==1/0?"5e"+s:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+s,r=new F(t)):r=new F(a+""),r.c[0]){for((a=(s=r.e)+l)<3&&(a=0);;)if(i=r,r=u.times(i.plus(w(this,i,l,1))),h(i.c).slice(0,a)===(t=h(r.c)).slice(0,a)){if(r.e0&&p>0){for(i=p%a||a,c=h.substr(0,i);i0&&(c+=l+h.slice(i)),f&&(c="-"+c)}n=d?c+(r.decimalSeparator||"")+((s=+r.fractionGroupSize)?d.replace(RegExp("\\d{"+s+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):d):c}return(r.prefix||"")+n+(r.suffix||"")},S.toFraction=function(e){var t,r,n,i,o,a,s,l,c,f,p,m,v=this.c;if(null!=e&&(!(s=new F(e)).isInteger()&&(s.c||1!==s.s)||s.lt(C)))throw Error(u+"Argument "+(s.isInteger()?"out of range: ":"not an integer: ")+H(s));if(!v)return new F(this);for(t=new F(C),c=r=new F(C),n=l=new F(C),m=h(v),o=t.e=m.length-this.e-1,t.c[0]=d[(a=o%14)<0?14+a:a],e=!e||s.comparedTo(t)>0?o>0?t:c:s,a=M,M=1/0,s=new F(m),l.c[0]=0;f=w(s,t,0,1),1!=(i=r.plus(f.times(n))).comparedTo(e);)r=n,n=i,c=l.plus(f.times(i=c)),l=i,t=s.minus(f.times(i=t)),s=i;return i=w(e.minus(r),n,0,1),l=l.plus(i.times(c)),r=r.plus(i.times(n)),l.s=c.s=this.s,o*=2,p=1>w(c,n,o,A).minus(this).abs().comparedTo(w(l,r,o,A).minus(this).abs())?[c,n]:[l,r],M=a,p},S.toNumber=function(){return+H(this)},S.toPrecision=function(e,t){return null!=e&&m(e,1,1e9),V(this,e,t,2)},S.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(null==e?t=i<=O||i>=T?g(h(r.c),i):y(h(r.c),i,"0"):10===e&&I?t=y(h((r=z(new F(r),k+i+1,A)).c),r.e,"0"):(m(e,2,D.length,"Base"),t=E(y(h(r.c),i,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},S.valueOf=S.toJSON=function(){return H(this)},S._isBigNumber=!0,null!=t&&F.set(t),F}()).default=o.BigNumber=o,void 0!==(n=(function(){return o}).call(t,r,t,e))&&(e.exports=n)}(0)},70651:function(e,t,r){let n=r(7967);function i(e,t,r){let n=e[t]+e[r],i=e[t+1]+e[r+1];n>=4294967296&&i++,e[t]=n,e[t+1]=i}function o(e,t,r,n){let i=e[t]+r;r<0&&(i+=4294967296);let o=e[t+1]+n;i>=4294967296&&o++,e[t]=i,e[t+1]=o}function a(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function s(e,t,r,n,a,s){let l=d[a],u=d[a+1],f=d[s],h=d[s+1];i(c,e,t),o(c,e,l,u);let p=c[n]^c[e],m=c[n+1]^c[e+1];c[n]=m,c[n+1]=p,i(c,r,n),p=c[t]^c[r],m=c[t+1]^c[r+1],c[t]=p>>>24^m<<8,c[t+1]=m>>>24^p<<8,i(c,e,t),o(c,e,f,h),p=c[n]^c[e],m=c[n+1]^c[e+1],c[n]=p>>>16^m<<16,c[n+1]=m>>>16^p<<16,i(c,r,n),p=c[t]^c[r],m=c[t+1]^c[r+1],c[t]=m>>>31^p<<1,c[t+1]=p>>>31^m<<1}let l=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),u=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map(function(e){return 2*e})),c=new Uint32Array(32),d=new Uint32Array(32);function f(e,t){let r=0;for(r=0;r<16;r++)c[r]=e.h[r],c[r+16]=l[r];for(c[24]=c[24]^e.t,c[25]=c[25]^e.t/4294967296,t&&(c[28]=~c[28],c[29]=~c[29]),r=0;r<32;r++)d[r]=a(e.b,4*r);for(r=0;r<12;r++)s(0,8,16,24,u[16*r+0],u[16*r+1]),s(2,10,18,26,u[16*r+2],u[16*r+3]),s(4,12,20,28,u[16*r+4],u[16*r+5]),s(6,14,22,30,u[16*r+6],u[16*r+7]),s(0,10,20,30,u[16*r+8],u[16*r+9]),s(2,12,22,24,u[16*r+10],u[16*r+11]),s(4,14,16,26,u[16*r+12],u[16*r+13]),s(6,8,18,28,u[16*r+14],u[16*r+15]);for(r=0;r<16;r++)e.h[r]=e.h[r]^c[r]^c[r+16]}let h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function p(e,t,r,n){if(0===e||e>64)throw Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(r&&16!==r.length)throw Error("Illegal salt, expected Uint8Array with length is 16");if(n&&16!==n.length)throw Error("Illegal personal, expected Uint8Array with length is 16");let i={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e};h.fill(0),h[0]=e,t&&(h[1]=t.length),h[2]=1,h[3]=1,r&&h.set(r,32),n&&h.set(n,48);for(let e=0;e<16;e++)i.h[e]=l[e]^a(h,4*e);return t&&(m(i,t),i.c=128),i}function m(e,t){for(let r=0;r>2]>>8*(3&r);return t}function g(e,t,r,i,o){r=r||64,e=n.normalizeInput(e),i&&(i=n.normalizeInput(i)),o&&(o=n.normalizeInput(o));let a=p(r,t,i,o);return m(a,e),v(a)}e.exports={blake2b:g,blake2bHex:function(e,t,r,i,o){let a=g(e,t,r,i,o);return n.toHex(a)},blake2bInit:p,blake2bUpdate:m,blake2bFinal:v}},39962:function(e,t,r){let n=r(7967);function i(e,t,r,n,i,a){l[e]=l[e]+l[t]+i,l[n]=o(l[n]^l[e],16),l[r]=l[r]+l[n],l[t]=o(l[t]^l[r],12),l[e]=l[e]+l[t]+a,l[n]=o(l[n]^l[e],8),l[r]=l[r]+l[n],l[t]=o(l[t]^l[r],7)}function o(e,t){return e>>>t^e<<32-t}let a=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),s=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),l=new Uint32Array(16),u=new Uint32Array(16);function c(e,t){let r=0;for(r=0;r<8;r++)l[r]=e.h[r],l[r+8]=a[r];for(l[12]^=e.t,l[13]^=e.t/4294967296,t&&(l[14]=~l[14]),r=0;r<16;r++){var n,o;u[r]=(n=e.b)[o=4*r]^n[o+1]<<8^n[o+2]<<16^n[o+3]<<24}for(r=0;r<10;r++)i(0,4,8,12,u[s[16*r+0]],u[s[16*r+1]]),i(1,5,9,13,u[s[16*r+2]],u[s[16*r+3]]),i(2,6,10,14,u[s[16*r+4]],u[s[16*r+5]]),i(3,7,11,15,u[s[16*r+6]],u[s[16*r+7]]),i(0,5,10,15,u[s[16*r+8]],u[s[16*r+9]]),i(1,6,11,12,u[s[16*r+10]],u[s[16*r+11]]),i(2,7,8,13,u[s[16*r+12]],u[s[16*r+13]]),i(3,4,9,14,u[s[16*r+14]],u[s[16*r+15]]);for(r=0;r<8;r++)e.h[r]^=l[r]^l[r+8]}function d(e,t){if(!(e>0&&e<=32))throw Error("Incorrect output length, should be in [1, 32]");let r=t?t.length:0;if(t&&!(r>0&&r<=32))throw Error("Incorrect key length, should be in [1, 32]");let n={h:new Uint32Array(a),b:new Uint8Array(64),c:0,t:0,outlen:e};return n.h[0]^=16842752^r<<8^e,r>0&&(f(n,t),n.c=64),n}function f(e,t){for(let r=0;r>2]>>8*(3&r)&255;return t}function p(e,t,r){r=r||32,e=n.normalizeInput(e);let i=d(r,t);return f(i,e),h(i)}e.exports={blake2s:p,blake2sHex:function(e,t,r){let i=p(e,t,r);return n.toHex(i)},blake2sInit:d,blake2sUpdate:f,blake2sFinal:h}},81395:function(e,t,r){let n=r(70651),i=r(39962);e.exports={blake2b:n.blake2b,blake2bHex:n.blake2bHex,blake2bInit:n.blake2bInit,blake2bUpdate:n.blake2bUpdate,blake2bFinal:n.blake2bFinal,blake2s:i.blake2s,blake2sHex:i.blake2sHex,blake2sInit:i.blake2sInit,blake2sUpdate:i.blake2sUpdate,blake2sFinal:i.blake2sFinal}},7967:function(e){function t(e){return(4294967296+e).toString(16).substring(1)}e.exports={normalizeInput:function(e){let t;if(e instanceof Uint8Array)t=e;else if("string"==typeof e){let r=new TextEncoder;t=r.encode(e)}else throw Error("Input must be an string, Buffer or Uint8Array");return t},toHex:function(e){return Array.prototype.map.call(e,function(e){return(e<16?"0":"")+e.toString(16)}).join("")},debugPrint:function(e,r,n){let i="\n"+e+" = ";for(let o=0;o - * @license MIT - */var n=r(95766),i=r(62333),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|p(e,t),n=a(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(T(e,Uint8Array)){var t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(T(e,ArrayBuffer)||e&&T(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(T(e,SharedArrayBuffer)||e&&T(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);var i=function(e){if(s.isBuffer(e)){var t,r=0|h(e.length),n=a(r);return 0===n.length||e.copy(n,0,0,r),n}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|h(e))}function d(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),n=0;n=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||T(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return k(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return A(e).length;default:if(i)return n?-1:k(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,r){var i,o,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(o=r=+r)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){var o,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=r;os&&(r=s-l),o=r;o>=0;o--){for(var d=!0,f=0;f239?4:u>223?3:u>191?2:1;if(i+d<=r)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;nr)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function E(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function j(e,t,r,n,o){return t=+t,r>>>=0,o||E(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function S(e,t,r,n,o){return t=+t,r>>>=0,o||E(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.lW=s,t.h2=50,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(T(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),T(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);in.length?s.from(o).copy(n,i):Uint8Array.prototype.set.call(n,o,i);else if(s.isBuffer(o))o.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tr&&(e+=" ... "),""},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(T(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,l=Math.min(o,a),u=this.slice(n,i),c=e.slice(t,r),d=0;d>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,l,u,c,d,f=this.length-t;if((void 0===r||r>f)&&(r=f),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var h=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var a=0;a>8,i.push(r%256),i.push(n);return i}(e,this.length-c),this,c,d);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||x(e,t,this.length);for(var n=this[e],i=1,o=0;++o>>=0,t>>>=0,r||x(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);for(var n=this[e],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||x(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||x(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||x(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,e,t,r,i,0)}var o=1,a=0;for(this[t]=255&e;++a>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,e,t,r,i,0)}var o=r-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return j(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return j(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return S(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return S(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function A(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(C,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function O(e,t,r,n){for(var i=0;i=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function T(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var _=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},72779:function(e,t){var r;/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t0&&a.length>i&&!a.warned){a.warned=!0;var i,o,a,u=Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,console&&console.warn&&console.warn(u)}return e}function c(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=c.bind(n);return i.listener=r,n.wrapFn=i,i}function f(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=Array(e.length),r=0;r0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)n(l,this,t);else for(var u=l.length,c=p(l,u),r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},73463:function(e,t,r){"use strict";var n=r(73887),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(p){var i=h(r);i&&i!==p&&e(t,i,n)}var a=c(r);d&&(a=a.concat(d(r)));for(var s=l(t),m=l(r),v=0;v */t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,l=(1<>1,c=-7,d=r?i-1:0,f=r?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:(h?-1:1)*(1/0);a+=Math.pow(2,n),o-=u}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,f=23===i?5960464477539062e-23:0,h=n?0:o-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[r+h]=255&a,h+=p,a/=256,u-=8);e[r+h-p]|=128*m}},39515:function(e,t,r){var n=r(38761)(r(37772),"DataView");e.exports=n},89612:function(e,t,r){var n=r(52118),i=r(96909),o=r(98138),a=r(4174),s=r(7942);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1}},34893:function(e){e.exports=function(e,t,r){for(var n=-1,i=null==e?0:e.length;++n=200&&(d=l,f=!1,t=new n(t));t:for(;++c0&&o(c)?r>1?e(c,r-1,o,a,s):n(s,c):a||(s[s.length]=c)}return s}},15308:function(e,t,r){var n=r(55463)();e.exports=n},26548:function(e,t,r){var n=r(15308),i=r(90249);e.exports=function(e,t){return e&&n(e,t,i)}},13324:function(e,t,r){var n=r(17297),i=r(33812);e.exports=function(e,t){t=n(t,e);for(var r=0,o=t.length;null!=e&&r=120&&g.length>=120)?new n(h&&g):void 0}g=e[0];var y=-1,b=p[0];t:for(;++yi?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n=200){var m=t?null:s(e);if(m)return l(m);f=!1,c=a,p=new n}else p=t?[]:h;t:for(;++u=i?e:n(e,t,r)}},79882:function(e,t,r){var n=r(79162);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},92175:function(e,t,r){e=r.nmd(e);var n=r(37772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}},34727:function(e,t,r){var n=r(79882);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},96058:function(e){var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},70169:function(e,t,r){var n=r(50857),i=n?n.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},6190:function(e,t,r){var n=r(79882);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},27520:function(e,t,r){var n=r(4795);e.exports=function(e,t){if(e!==t){var r=void 0!==e,i=null===e,o=e==e,a=n(e),s=void 0!==t,l=null===t,u=t==t,c=n(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||i&&s&&u||!r&&u||!o)return 1;if(!i&&!a&&!c&&e=l)return u;return u*("desc"==r[i]?-1:1)}}return e.index-t.index}},51522:function(e){e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r1?r[o-1]:void 0,s=o>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(r[0],r[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++nc))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,v=2&r?new n:void 0;for(l.set(e,t),l.set(t,e);++p-1&&e%1==0&&e-1}},94769:function(e,t,r){var n=r(22218);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},92411:function(e,t,r){var n=r(89612),i=r(80235),o=r(10326);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},36417:function(e,t,r){var n=r(27937);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},86928:function(e,t,r){var n=r(27937);e.exports=function(e){return n(this,e).get(e)}},79493:function(e,t,r){var n=r(27937);e.exports=function(e){return n(this,e).has(e)}},24150:function(e,t,r){var n=r(27937);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}},75179:function(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}},73477:function(e){e.exports=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}},77777:function(e,t,r){var n=r(30733);e.exports=function(e){var t=n(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}},99191:function(e,t,r){var n=r(38761)(Object,"create");e.exports=n},54248:function(e,t,r){var n=r(60241)(Object.keys,Object);e.exports=n},62966:function(e){e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},4146:function(e,t,r){e=r.nmd(e);var n=r(51242),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&n.process,s=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},37157:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},60241:function(e){e.exports=function(e,t){return function(r){return e(t(r))}}},43114:function(e,t,r){var n=r(49432),i=Math.max;e.exports=function(e,t,r){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},15243:function(e,t,r){var n=r(80235);e.exports=function(){this.__data__=new n,this.size=0}},72858:function(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},4417:function(e){e.exports=function(e){return this.__data__.get(e)}},8605:function(e){e.exports=function(e){return this.__data__.has(e)}},71418:function(e,t,r){var n=r(80235),i=r(10326),o=r(96738);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(a)}return r.set(e,t),this.size=r.size,this}},66024:function(e){e.exports=function(e,t,r){for(var n=r-1,i=e.length;++n=t||r<0||v&&n>=c}function x(){var e,r,n,o=i();if(b(o))return w(o);f=setTimeout(x,(e=o-h,r=o-p,n=t-e,v?s(n,c-r):n))}function w(e){return(f=void 0,g&&l)?y(e):(l=u=void 0,d)}function E(){var e,r=i(),n=b(r);if(l=arguments,u=this,h=r,n){if(void 0===f)return p=e=h,f=setTimeout(x,t),m?y(e):d;if(v)return clearTimeout(f),f=setTimeout(x,t),y(h)}return void 0===f&&(f=setTimeout(x,t)),d}return t=o(t)||0,n(r)&&(m=!!r.leading,c=(v="maxWait"in r)?a(o(r.maxWait)||0,t):c,g="trailing"in r?!!r.trailing:g),E.cancel=function(){void 0!==f&&clearTimeout(f),p=0,l=h=u=f=void 0},E.flush=function(){return void 0===f?d:w(i())},E}},97329:function(e,t,r){var n=r(61655),i=r(66188),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,n).replace(a,"")}},17335:function(e,t,r){var n=r(85246),i=r(62034),o=r(36060),a=r(93746),s=o(function(e,t){return a(e)?n(e,i(t,1,a,!0)):[]});e.exports=s},45861:function(e,t,r){e.exports=r(28460)},41225:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},35676:function(e,t,r){var n=r(62034);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},72579:function(e,t,r){var n=r(13324);e.exports=function(e,t,r){var i=null==e?void 0:n(e,t);return void 0===i?r:i}},3440:function(e,t,r){var n=r(13940),i=r(36740),o=Object.prototype.hasOwnProperty,a=i(function(e,t,r){o.call(e,r)?e[r].push(t):n(e,r,[t])});e.exports=a},93352:function(e,t,r){var n=r(32726),i=r(1369);e.exports=function(e,t){return null!=e&&i(e,t,n)}},95041:function(e,t,r){var n=r(20187),i=r(1369);e.exports=function(e,t){return null!=e&&i(e,t,n)}},23059:function(e){e.exports=function(e){return e}},30898:function(e,t,r){var n=r(50343),i=r(88390),o=r(36060),a=r(5642),s=o(function(e){var t=n(e,a);return t.length&&t[0]===e[0]?i(t):[]});e.exports=s},79631:function(e,t,r){var n=r(15183),i=r(15125),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},86152:function(e){var t=Array.isArray;e.exports=t},67878:function(e,t,r){var n=r(61049),i=r(61158);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},93746:function(e,t,r){var n=r(67878),i=r(15125);e.exports=function(e){return i(e)&&n(e)}},73226:function(e,t,r){e=r.nmd(e);var n=r(37772),i=r(36330),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?n.Buffer:void 0,l=s?s.isBuffer:void 0;e.exports=l||i},18149:function(e,t,r){var n=r(88746);e.exports=function(e,t){return n(e,t)}},61049:function(e,t,r){var n=r(53366),i=r(29259);e.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},61158:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},4714:function(e,t,r){var n=r(74511),i=r(47826),o=r(4146),a=o&&o.isMap,s=a?i(a):n;e.exports=s},29259:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},15125:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},97030:function(e,t,r){var n=r(53366),i=r(47353),o=r(15125),a=Object.prototype,s=Function.prototype.toString,l=a.hasOwnProperty,u=s.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=n(e))return!1;var t=i(e);if(null===t)return!0;var r=l.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&s.call(r)==u}},43679:function(e,t,r){var n=r(8109),i=r(47826),o=r(4146),a=o&&o.isSet,s=a?i(a):n;e.exports=s},4795:function(e,t,r){var n=r(53366),i=r(15125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},77598:function(e,t,r){var n=r(35522),i=r(47826),o=r(4146),a=o&&o.isTypedArray,s=a?i(a):n;e.exports=s},90249:function(e,t,r){var n=r(1634),i=r(86411),o=r(67878);e.exports=function(e){return o(e)?n(e):i(e)}},18582:function(e,t,r){var n=r(1634),i=r(18390),o=r(67878);e.exports=function(e){return o(e)?n(e,!0):i(e)}},56974:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},19950:function(e,t,r){var n=r(13940),i=r(26548),o=r(68286);e.exports=function(e,t){var r={};return t=o(t,3),i(e,function(e,i,o){n(r,t(e,i,o),e)}),r}},34519:function(e,t,r){var n=r(13940),i=r(26548),o=r(68286);e.exports=function(e,t){var r={};return t=o(t,3),i(e,function(e,i,o){n(r,i,t(e,i,o))}),r}},30733:function(e,t,r){var n=r(96738);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(i.Cache||n),r}i.Cache=n,e.exports=i},98537:function(e,t,r){var n=r(84565),i=r(97263)(function(e,t,r){n(e,t,r)});e.exports=i},34291:function(e){e.exports=function(){}},61100:function(e,t,r){var n=r(37772);e.exports=function(){return n.Date.now()}},17620:function(e,t,r){var n=r(50343),i=r(18874),o=r(29078),a=r(17297),s=r(752),l=r(48642),u=r(29097),c=r(76939),d=u(function(e,t){var r={};if(null==e)return r;var u=!1;t=n(t,function(t){return t=a(t,e),u||(u=t.length>1),t}),s(e,c(e),r),u&&(r=i(r,7,l));for(var d=t.length;d--;)o(r,t[d]);return r});e.exports=d},65798:function(e,t,r){var n=r(20256),i=r(82952),o=r(21401),a=r(33812);e.exports=function(e){return o(e)?n(a(e)):i(e)}},57370:function(e,t,r){var n=r(34311)(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});e.exports=n},829:function(e,t,r){var n=r(62034),i=r(23813),o=r(36060),a=r(82406),s=o(function(e,t){if(null==e)return[];var r=t.length;return r>1&&a(e,t[0],t[1])?t=[]:r>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,n(t,1),[])});e.exports=s},30981:function(e){e.exports=function(){return[]}},36330:function(e){e.exports=function(){return!1}},12436:function(e,t,r){var n=r(54073),i=r(29259);e.exports=function(e,t,r){var o=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return i(r)&&(o="leading"in r?!!r.leading:o,a="trailing"in r?!!r.trailing:a),n(e,t,{leading:o,maxWait:t,trailing:a})}},61258:function(e,t,r){var n=r(36473),i=r(89419),o=r(38101),a=Math.min;e.exports=function(e,t){if((e=o(e))<1||e>9007199254740991)return[];var r=4294967295,s=a(e,4294967295);t=i(t),e-=4294967295;for(var l=n(s,t);++r1,m=(e,t,r)=>{let n=e[f].get(t);if(n){let t=n.value;if(v(e,t)){if(y(e,n),!e[s])return}else r&&(e[h]&&(n.value.now=Date.now()),e[d].unshiftNode(n));return t.value}},v=(e,t)=>{if(!t||!t.maxAge&&!e[l])return!1;let r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[l]&&r>e[l]},g=e=>{if(e[o]>e[i])for(let t=e[d].tail;e[o]>e[i]&&null!==t;){let r=t.prev;y(e,t),t=r}},y=(e,t)=>{if(t){let r=t.value;e[u]&&e[u](r.key,r.value),e[o]-=r.length,e[f].delete(r.key),e[d].removeNode(t)}};class b{constructor(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0}}let x=(e,t,r,n)=>{let i=r.value;v(e,i)&&(y(e,r),e[s]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw TypeError("max must be a non-negative number");this[i]=e.max||1/0;let t=e.length||p;if(this[a]="function"!=typeof t?p:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw TypeError("maxAge must be a number");this[l]=e.maxAge||0,this[u]=e.dispose,this[c]=e.noDisposeOnSet||!1,this[h]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw TypeError("max must be a non-negative number");this[i]=e||1/0,g(this)}get max(){return this[i]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if("number"!=typeof e)throw TypeError("maxAge must be a non-negative number");this[l]=e,g(this)}get maxAge(){return this[l]}set lengthCalculator(e){"function"!=typeof e&&(e=p),e!==this[a]&&(this[a]=e,this[o]=0,this[d].forEach(e=>{e.length=this[a](e.value,e.key),this[o]+=e.length})),g(this)}get lengthCalculator(){return this[a]}get length(){return this[o]}get itemCount(){return this[d].length}rforEach(e,t){t=t||this;for(let r=this[d].tail;null!==r;){let n=r.prev;x(this,e,r,t),r=n}}forEach(e,t){t=t||this;for(let r=this[d].head;null!==r;){let n=r.next;x(this,e,r,t),r=n}}keys(){return this[d].toArray().map(e=>e.key)}values(){return this[d].toArray().map(e=>e.value)}reset(){this[u]&&this[d]&&this[d].length&&this[d].forEach(e=>this[u](e.key,e.value)),this[f]=new Map,this[d]=new n,this[o]=0}dump(){return this[d].map(e=>!v(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[d]}set(e,t,r){if((r=r||this[l])&&"number"!=typeof r)throw TypeError("maxAge must be a number");let n=r?Date.now():0,s=this[a](t,e);if(this[f].has(e)){if(s>this[i])return y(this,this[f].get(e)),!1;let a=this[f].get(e),l=a.value;return this[u]&&!this[c]&&this[u](e,l.value),l.now=n,l.maxAge=r,l.value=t,this[o]+=s-l.length,l.length=s,this.get(e),g(this),!0}let h=new b(e,t,s,n,r);return h.length>this[i]?(this[u]&&this[u](e,t),!1):(this[o]+=h.length,this[d].unshift(h),this[f].set(e,this[d].head),g(this),!0)}has(e){if(!this[f].has(e))return!1;let t=this[f].get(e).value;return!v(this,t)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){let e=this[d].tail;return e?(y(this,e),e.value):null}del(e){y(this,this[f].get(e))}load(e){this.reset();let t=Date.now();for(let r=e.length-1;r>=0;r--){let n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{let e=i-t;e>0&&this.set(n.k,n.v,e)}}}prune(){this[f].forEach((e,t)=>m(this,t,!1))}}},53207:function(e,t,r){var n=r(96570);n.prototype.formulaEval=function(){"use strict";for(var e,t,r,n=[],i=this.value,o=0;o"+t.value+""+i[o].show+""+e.value+"",type:10}):n.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+""+e.value+"",type:1})):2===i[o].type||9===i[o].type?(e=n.pop(),t=n.pop(),n.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+i[o].show+(1!=e.type?"(":"")+e.value+(1!=e.type?")":""),type:i[o].type})):12===i[o].type&&(e=n.pop(),t=n.pop(),r=n.pop(),n.push({value:i[o].show+"("+r.value+","+t.value+","+e.value+")",type:12}));return n[0].value},e.exports=n},66655:function(e,t,r){"use strict";var n=r(72346);function i(e,t){for(var r=0;rp.length-2?p.length-1:e.length-l;r>0;r--)if(void 0!==p[r])for(i=0;i0&&Sr)s.push(e);else{for(;r>=i&&!c||c&&i1)throw new n.Exception("Uncaught Syntax error");return o[0].value>1e15?"Infinity":parseFloat(o[0].value.toFixed(15))},n.eval=function(e,t,r){return void 0===t?this.lex(e).toPostfix().postfixEval():void 0!==r?this.lex(e,t).toPostfix().postfixEval(r):void 0!==t.length?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t)},e.exports=n},86570:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(15610)}])},70697:function(e,t,r){"use strict";r.d(t,{u:function(){return s}});var n=r(52322),i=r(93687),o=r(22038),a=r(80023);function s(){let{openDialog:e}=(0,a.Rh)();return(0,n.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,n.jsx)(l,{title:o.z.walletAddNew.title,description:o.z.walletAddNew.description,onSelect:()=>e("walletAddNew")}),(0,n.jsx)(l,{title:o.z.walletAddRecover.title,description:o.z.walletAddRecover.description,onSelect:()=>e("walletAddRecover")}),(0,n.jsx)(l,{title:o.z.walletAddWatch.title,description:o.z.walletAddWatch.description,onSelect:()=>e("walletAddWatch")}),(0,n.jsx)(l,{title:o.z.walletAddLedger.title,description:o.z.walletAddLedger.description,onSelect:()=>e("walletAddLedger")})]})}function l(e){let{title:t,description:r,disabled:o,onSelect:a}=e;return(0,n.jsx)(i.Wh3,{onClick:a,disabled:o,children:(0,n.jsxs)("div",{className:"flex flex-col gap-2 text-start",children:[(0,n.jsx)(i.X6q,{size:"20",children:t}),(0,n.jsx)(i.nvN,{size:"14",color:"subtle",children:r})]})})}},18250:function(e,t,r){"use strict";r.d(t,{g:function(){return s}});var n=r(52322),i=r(93687),o=r(20876),a=r(80023);function s(e){let{wallet:{id:t,type:r,status:s,lock:l,unlock:u},...c}=e,{openDialog:d}=(0,a.Rh)();return(0,n.jsxs)(i.h_2,{...c,children:[(0,n.jsx)(i.Juw,{children:"Actions"}),"seed"===r?"unlocked"===s?(0,n.jsxs)(i.Xiv,{onClick:e=>e.stopPropagation(),onSelect:()=>l(),children:[(0,n.jsx)(i.KpP,{children:(0,n.jsx)(o.Lur,{})}),"Lock wallet"]}):(0,n.jsxs)(i.Xiv,{onClick:e=>e.stopPropagation(),onSelect:()=>u(),children:[(0,n.jsx)(i.KpP,{children:(0,n.jsx)(o.VmF,{})}),"Unlock wallet"]}):null,(0,n.jsxs)(i.Xiv,{onClick:e=>e.stopPropagation(),onSelect:()=>d("walletUpdate",{walletId:t}),children:[(0,n.jsx)(i.KpP,{children:(0,n.jsx)(o.dr6,{})}),"Edit wallet"]}),(0,n.jsxs)(i.Xiv,{onClick:e=>e.stopPropagation(),onSelect:()=>d("walletRemove",{walletId:t}),children:[(0,n.jsx)(i.KpP,{children:(0,n.jsx)(o.Jrl,{})}),"Delete wallet"]})]})}},71930:function(e,t,r){"use strict";r.d(t,{_:function(){return i},h:function(){return o}});var n=r(41345);let i={home:"/",wallet:{base:"/wallets/",view:"/wallets/[id]",addresses:"/wallets/[id]/addresses"},node:{index:"/node",txPool:"/node/txpool",peers:"/node/peers"},login:"/login"},o=n.HE},22038:function(e,t,r){"use strict";r.d(t,{_:function(){return s},z:function(){return a}});var n=r(52322),i=r(93687),o=r(20876);let a={walletAddNew:{title:"Create a wallet",description:(0,n.jsxs)(n.Fragment,{children:["Generate a new wallet seed. The seed will never be sent to"," ",(0,n.jsx)(i.EKh,{children:"walletd"}),", transactions are signed in the browser."]})},walletAddRecover:{title:"Recover a wallet",description:(0,n.jsxs)(n.Fragment,{children:["Restore a wallet from seed. The seed will never be sent to"," ",(0,n.jsx)(i.EKh,{children:"walletd"}),", transactions are signed in the browser."]})},walletAddWatch:{title:"Add a watch-only wallet",description:(0,n.jsx)(n.Fragment,{children:"Create a watch-only wallet that tracks a set of addresses."})},walletAddLedger:{title:"Add a Ledger hardware wallet",description:(0,n.jsx)(n.Fragment,{children:"Add a Ledger hardware wallet. Transactions are signed with your hardware device."})}},s={seed:{title:"Seed-based wallet",icon:(0,n.jsx)(o.sZp,{})},watch:{title:"Watch-only wallet",icon:(0,n.jsx)(o.xVB,{})},ledger:{title:"Ledger hardware wallet",icon:(0,n.jsx)(o._Gh,{})}}},45283:function(e,t,r){"use strict";r.d(t,{OZ:function(){return v},Jz:function(){return m}});var n=r(52322),i=r(93687),o=r(41345),a=r(2784),s=r(81612),l=r(20876),u=r(80023);function c(e){let{address:{walletId:t,id:r,index:a},...s}=e,{openDialog:c}=(0,u.Rh)(),d=(0,o.XF)();return(0,n.jsxs)(i.h_2,{...s,children:[(0,n.jsx)(i.Juw,{children:"Actions"}),(0,n.jsxs)(i.Xiv,{onClick:e=>e.stopPropagation(),onSelect:()=>c("confirm",{title:void 0!==a?"Remove address ".concat(a):"Remove address",action:"Remove",variant:"red",body:(0,n.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,n.jsx)(i.nvN,{size:"14",children:"Are you sure you would like to remove the following address?"}),(0,n.jsxs)(i.nvN,{size:"14",font:"mono",children:[(0,i.I13)(r).slice(0,40),"..."]})]}),onConfirm:async()=>{let e=await d.delete({params:{id:t,addr:r}});e.error?(0,i.OHV)("Failed to delete address: ".concat(e.error)):(0,i.OPV)(void 0!==a?"Address ".concat(a," removed."):"Address removed.")}}),children:[(0,n.jsx)(i.KpP,{children:(0,n.jsx)(l.Jrl,{})}),"Remove address"]})]})}let d=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:t}=e;return(0,n.jsx)(c,{trigger:(0,n.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,n.jsx)(l.iG7,{})}),contentProps:{align:"start"},address:t})}},{id:"address",label:"address",category:"general",fixed:!0,render:e=>{let{data:{address:t,description:r},context:o}=e;return(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)(i.XxW,{maxLength:40,value:t,type:"address",siascanUrl:o.siascanUrl}),r&&(0,n.jsx)(i.ua7,{content:(0,n.jsx)("pre",{children:(0,n.jsx)(i.nvN,{size:"12",className:"w-full whitespace-pre-wrap",children:r})}),children:(0,n.jsx)(i.nvN,{size:"12",children:r.split("\n")[0]})})]})}},{id:"index",label:"index",category:"general",render:e=>{let{data:{index:t}}=e;return void 0===t?null:(0,n.jsx)("div",{className:"flex flex-col gap-2",children:(0,n.jsx)(i.xvT,{children:t.toLocaleString()})})}}];var f=r(5632),h=r(90089);let p=(0,a.createContext)({}),m=()=>(0,a.useContext)(p);function v(e){let{children:t}=e,r=function(){let{openDialog:e}=(0,u.Rh)(),t=(0,f.useRouter)(),r=t.query.id,n=(0,o.bd)({disabled:!r,params:{id:r}}),l=(0,a.useMemo)(()=>{if(!n.data)return null;let t=Object.entries(n.data||{}).map(t=>{let[n,i]=t;return{id:n,address:n,description:i.description,index:i.index,publicKey:i.publicKey,walletId:r,onClick:()=>e("addressUpdate",{walletId:r,address:n})}});return t},[n.data,e,r]),{filters:c,setFilter:p,removeFilter:m,removeLastFilter:v,resetFilters:g}=(0,i.Wdu)(),{configurableColumns:y,enabledColumns:b,sortableColumns:x,toggleColumnVisibility:w,setColumnsVisible:E,setColumnsHidden:j,toggleSort:S,setSortDirection:C,setSortField:k,sortField:A,sortDirection:O,resetDefaultColumnVisibility:T}=(0,i.oy6)("walletd/v0/addresses",{columns:d,columnsDefaultVisible:s.gd,sortOptions:s.Fo,defaultSortField:s.nw}),_=(0,i._4u)({dataset:l,filters:c,sortField:A,sortDirection:O}),M=(0,a.useMemo)(()=>d.filter(e=>e.fixed||b.includes(e.id)),[b]),R=(0,i.c2j)(l,n.isValidating,n.error,c),N=(l||[]).reduce((e,t)=>{let{index:r}=t;return r>e?r:e},-1),P=(0,h.B)(),L=(0,a.useMemo)(()=>({siascanUrl:P}),[P]);return{dataState:R,error:n.error,datasetCount:(null==_?void 0:_.length)||0,columns:M,dataset:_,cellContext:L,lastIndex:N,configurableColumns:y,enabledColumns:b,sortableColumns:x,toggleColumnVisibility:w,setColumnsVisible:E,setColumnsHidden:j,toggleSort:S,setSortDirection:C,setSortField:k,sortField:A,filters:c,setFilter:p,removeFilter:m,removeLastFilter:v,resetFilters:g,sortDirection:O,resetDefaultColumnVisibility:T}}();return(0,n.jsx)(p.Provider,{value:r,children:t})}},81612:function(e,t,r){"use strict";r.d(t,{Fo:function(){return o},gd:function(){return n},nw:function(){return i}});let n=["actions","address","index"],i="index",o=[{id:"address",label:"address",category:"general"},{id:"index",label:"index",category:"general"}]},80023:function(e,t,r){"use strict";let n;r.d(t,{Tu:function(){return eU},xQ:function(){return ez},Rh:function(){return eB}});var i=r(52322),o=r(2784),a=r(93687),s=r(41345),l=r(70697);function u(e){let{open:t,trigger:r,onOpenChange:n}=e;return(0,i.jsx)(a.VqE,{title:"Add Wallet",trigger:r,open:t,onOpenChange:n,contentVariants:{className:"max-w-[600px]"},children:(0,i.jsx)(l.u,{})})}var c=r(20876),d=r(63955),f=r(6110);let h="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var p={randomUUID:h};let m=new Uint8Array(16),v=[];for(let e=0;e<256;++e)v.push((e+256).toString(16).slice(1));var g=function(e,t,r){if(p.randomUUID&&!t&&!e)return p.randomUUID();e=e||{};let i=e.random||(e.rng||function(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(m)})();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=i[e];return t}return function(e,t=0){return(v[e[t+0]]+v[e[t+1]]+v[e[t+2]]+v[e[t+3]]+"-"+v[e[t+4]]+v[e[t+5]]+"-"+v[e[t+6]]+v[e[t+7]]+"-"+v[e[t+8]]+v[e[t+9]]+"-"+v[e[t+10]]+v[e[t+11]]+v[e[t+12]]+v[e[t+13]]+v[e[t+14]]+v[e[t+15]]).toLowerCase()}(i)},y=r(22038),b=r(81395);function x(e){let{copySeed:t,children:r,icon:n,description:o}=e;return(0,i.jsxs)("div",{className:"",children:[r,(0,i.jsx)(a.s_4,{className:"mt-2",children:(0,i.jsxs)("div",{className:"flex gap-6 items-center py-4 px-4",children:[(0,i.jsx)("div",{className:"flex",children:n}),(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,i.jsx)(a.nvN,{size:"14",children:o}),t&&(0,i.jsx)(a.zxk,{onClick:t,children:"Copy Seed to Clipboard"})]})]})})]})}var w=r(74236);let E={name:"",description:"",mnemonic:"",hasCopied:!1};function j(e){let{trigger:t,open:r,onOpenChange:n}=e,{openDialog:l}=eB(),u=(0,s.lT)(),h=(0,d.cI)({mode:"all",defaultValues:E}),p=h.watch("mnemonic"),m=(0,o.useCallback)(()=>{(0,a.vQq)(p,"seed"),h.setValue("hasCopied",!0,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0}),h.clearErrors(["mnemonic"])},[p,h]),v=(0,o.useCallback)(async()=>{let{phrase:e}=(0,w.x)().newSeedPhrase();h.setValue("hasCopied",!1),h.setValue("mnemonic",e),h.clearErrors(["hasCopied","mnemonic"])},[h]);(0,o.useEffect)(()=>{r&&v()},[r]);let{dataset:j}=(0,f.r)(),S=(null==j?void 0:j.map(e=>e.name))||[],C=function(e){let{walletNames:t,copySeed:r}=e;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:e=>!t.includes(e)||"name is already in use"},required:"required",maxLength:30}},description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}},mnemonic:{type:"text",title:"Seed",onClick:e=>{e.currentTarget.select(),r()},readOnly:!0,placeholder:"",validation:{required:"required",validate:{valid:e=>{let{error:t}=(0,w.x)().seedFromPhrase(e);return!t||"seed should be 12 word BIP39 mnemonic"},copied:(e,t)=>t.hasCopied||"Copy seed to continue"}}},hasCopied:{type:"boolean",title:"",validation:{}}}}({walletNames:S,copySeed:m}),k=(0,o.useCallback)(async e=>{let t=g(),{seed:r}=(0,w.x)().seedFromPhrase(e.mnemonic),n=(0,b.blake2bHex)(r),i=await u.put({params:{id:t},payload:{type:"seed",seedHash:n,name:e.name,createdAt:new Date().getTime(),description:e.description}});i.error?(0,a.OHV)(i.error):(l("walletAddressesGenerate",{walletId:t}),h.reset(E))},[h,l,u]);return(0,i.jsx)(a.VqE,{title:y.z.walletAddNew.title,trigger:t,open:r,onOpenChange:n,contentVariants:{className:"w-[400px]"},onSubmit:h.handleSubmit(k),controls:(0,i.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,i.jsx)(a.zxk,{size:"medium",onClick:()=>{l("walletAddType")},children:"back"}),(0,i.jsx)("div",{className:"flex-1"}),(0,i.jsx)(a.ZqQ,{size:"medium",form:h,children:"Add wallet"})]}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:y.z.walletAddNew.description}),(0,i.jsx)(a.yEL,{name:"name",form:h,fields:C}),(0,i.jsx)(a.Bau,{name:"description",form:h,fields:C}),(0,i.jsx)(x,{icon:(0,i.jsx)(c.fwm,{}),description:(0,i.jsx)(i.Fragment,{children:"This is the wallet's seed mnemonic. Make sure to save it somewhere secure."}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,i.jsx)(a.Bau,{form:h,fields:C,name:"mnemonic"}),(0,i.jsxs)("div",{className:"flex gap-2",children:[(0,i.jsxs)(a.zxk,{className:"flex-1",onClick:v,children:[(0,i.jsx)(c.nt4,{}),"Regenerate"]}),(0,i.jsxs)(a.zxk,{className:"flex-1",onClick:m,children:[(0,i.jsx)(c.olJ,{}),"Copy to clipboard"]})]})]})})]})})}function S(e){let{form:t,onOpenChange:r,defaultValues:n}=e,i=(0,o.useCallback)(()=>{t.reset(n)},[t,n]),a=(0,o.useCallback)(()=>{r(!1),t.reset(n)},[t,r,n]),s=(0,o.useCallback)(e=>{e||a()},[a]);return{reset:i,closeAndReset:a,handleOpenChange:s}}var C=r(6391),k=r.n(C);function A(e){let{seedHash:t,mnemonicFieldType:r,setMnemonicFieldType:n}=e;return{type:r,title:"Seed",actions:(0,i.jsx)("div",{className:"flex gap-1",children:(0,i.jsx)(a.zxk,{tip:"password"===r?"Show seed":"Hide seed",tabIndex:-1,variant:"ghost",icon:"hover",onClick:()=>n("password"===r?"text":"password"),children:"password"===r?(0,i.jsx)(c.pHg,{}):(0,i.jsx)(c.xVB,{})})}),placeholder:"island submit vague scrub exhibit cherry front spoon crop debate filter virus",validation:{required:"required",validate:{valid:e=>{let{error:t}=(0,w.x)().seedFromPhrase(e);return!t||"seed should be 12 word BIP39 mnemonic"},match:e=>{let{seed:r}=(0,w.x)().seedFromPhrase(e);return(0,b.blake2bHex)(r)===t||"seed does not match"}}}}}var O=r(8822);function T(e){let{walletId:t,name:r,form:n,fields:o,actionText:s}=e,{dataset:l,walletAutoLockEnabled:u,walletAutoLockTimeout:d}=(0,f.r)(),h=null==l?void 0:l.find(e=>e.id===t),p=null==h?void 0:h.seed,m=(0,O.l)(d),v=s?" and ".concat(s):"";return p?(0,i.jsx)(x,{icon:(0,i.jsx)(c.R$y,{}),description:u?(0,i.jsxs)(i.Fragment,{children:["The wallet is currently unlocked. The wallet will stay unlocked until it is inactive for ",m.amount," ",m.units,", manually locked, or the app is closed."]}):(0,i.jsx)(i.Fragment,{children:"The wallet is currently unlocked. The wallet will stay unlocked until it is manually locked or the app is closed."})}):(0,i.jsx)(x,{icon:(0,i.jsx)(c.R$y,{}),description:u?(0,i.jsxs)(i.Fragment,{children:["Enter your seed mnemonic to unlock the wallet",v,". The wallet will stay unlocked until it is inactive for"," ",m.amount," ",m.units,", manually locked, or the app is closed."]}):(0,i.jsxs)(i.Fragment,{children:["Enter your seed mnemonic to unlock the wallet and",v,". The wallet will stay unlocked until it is manually locked or the app is closed."]}),children:(0,i.jsx)(a.yEL,{form:n,fields:o,name:r})})}function _(e){let{dataset:t}=(0,f.r)(),r=null==t?void 0:t.find(t=>t.id===e),n=null==r?void 0:r.seed,i=!!n;return{cachedSeed:n,isSeedCached:i,getSeedFromCacheOrForm:e=>{let{mnemonic:t}=e;return i?{seed:n}:(0,w.x)().seedFromPhrase(t)}}}let M=[];function R(e){let{id:t}=e,r=(0,s.bd)({disabled:!t,params:{id:t}}),n=(0,o.useMemo)(()=>{if(!r.data)return null;let e=Object.entries(r.data||{}).map(e=>{let[r,n]=e;return{id:r,address:r,description:n.description,publicKey:n.publicKey,index:n.index,walletId:t}});return e},[r.data,t]),i=(0,a.c2j)(n,r.isValidating,r.error,M),l=(n||[]).reduce((e,t)=>{let{index:r}=t;return r>e?r:e},-1);return{dataState:i,error:r.error,datasetCount:(null==n?void 0:n.length)||0,dataset:n,lastIndex:l}}function N(e){let{params:t,trigger:r,open:n,onOpenChange:l}=e,{walletId:u}=t||{},{lastIndex:c}=R({id:u}),{dataset:h,saveWalletSeed:p}=(0,f.r)(),m=null==h?void 0:h.find(e=>e.id===u),v=c+1,g={mnemonic:"",index:new(k())(v),count:new(k())(1)},[y,b]=(0,o.useState)("password"),x=(0,d.cI)({mode:"all",defaultValues:g});(0,o.useEffect)(()=>{x.formState.isSubmitting||x.setValue("index",new(k())(v))},[v]);let{handleOpenChange:E,closeAndReset:j}=S({form:x,onOpenChange:l,defaultValues:g}),C=x.watch("mnemonic"),O=x.watch("index"),M=x.watch("count"),N=function(e){let{seedHash:t,mnemonicFieldType:r,setMnemonicFieldType:n}=e;return{mnemonic:A({seedHash:t,setMnemonicFieldType:n,mnemonicFieldType:r}),index:{type:"number",title:"Start index",decimalsLimit:0,placeholder:"0",validation:{required:"required"}},count:{type:"number",title:"Number of addresses",decimalsLimit:0,placeholder:"10",validation:{required:"required",max:1e3}}}}({seedHash:null==m?void 0:m.seedHash,mnemonicFieldType:y,setMnemonicFieldType:b}),P=(0,s.yi)(),{getSeedFromCacheOrForm:L}=_(u),D=(0,o.useCallback)(async(e,t,r)=>{let n=L({mnemonic:e});if(n.error){(0,a.OHV)(n.error);return}let{seed:i}=n;for(let e=t;e0?"Not all addresses were saved.":""));return}}1===r?(0,a.OPV)("Successfully generated 1 address."):(0,a.OPV)("Successfully generated ".concat(r," addresses.")),p(u,i),j()},[L,j,P,u,p]),I=(0,o.useCallback)(()=>D(C,O.toNumber(),M.toNumber()),[D,C,O,M]);return(0,i.jsxs)(a.VqE,{title:"Wallet ".concat(null==m?void 0:m.name,": generate addresses"),trigger:r,open:n,onOpenChange:E,contentVariants:{className:"w-[500px]"},onSubmit:x.handleSubmit(I),controls:(0,i.jsx)("div",{className:"flex justify-end",children:(0,i.jsx)(a.ZqQ,{form:x,variant:"accent",size:"medium",children:"Continue"})}),children:[(0,i.jsx)(T,{walletId:u,name:"mnemonic",form:x,fields:N,actionText:"generate addresses"}),(0,i.jsxs)("div",{className:"flex gap-2 w-full pt-3",children:[(0,i.jsx)("div",{className:"flex-1",children:(0,i.jsx)(a.jIp,{form:x,fields:N,name:"index"})}),(0,i.jsx)("div",{className:"flex-1",children:(0,i.jsx)(a.jIp,{form:x,fields:N,name:"count"})})]})]})}var P=r(5632),L=r(71930);let D={name:""};function I(e){let{params:t,trigger:r,open:n,onOpenChange:l}=e,u=(0,P.useRouter)(),{walletId:c}=t||{},{closeDialog:h}=eB(),{dataset:p}=(0,f.r)(),m=null==p?void 0:p.find(e=>e.id===c),v=(0,s.OZ)(),g=(0,d.cI)({mode:"all",defaultValues:D}),y=(0,o.useCallback)(async()=>{let e=await v.delete({params:{id:c}});e.error?(0,a.OHV)(e.error):((0,a.OPV)("Wallet permanently removed."),g.reset(),h(),u.push(L._.home))},[g,c,v,h,u]),b=(0,o.useMemo)(()=>{var e;return{name:{type:"text",title:"Name",placeholder:e=null==m?void 0:m.name,validation:{required:"required",validate:{equals:t=>t===e||"name does not match"}}}}},[m]),x=(0,a.WsO)(b);return(0,i.jsx)(a.VqE,{title:"Remove wallet",trigger:r,open:n,onOpenChange:e=>{e||g.reset(D),l(e)},contentVariants:{className:"w-[400px]"},onSubmit:g.handleSubmit(y,x),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsxs)(a.nvN,{size:"14",children:["Are you sure you would like to permanently remove the wallet"," ",(0,i.jsx)(a.EKh,{children:null==m?void 0:m.name}),"?"]}),(0,i.jsx)(a.nvN,{size:"14",children:"Enter the wallet name to confirm the removal."}),(0,i.jsx)(a.yEL,{name:"name",form:g,fields:b}),(0,i.jsx)(a.ZqQ,{variant:"red",form:g,children:"Remove"})]})})}let F={description:""};function V(e){let{trigger:t,open:r,onOpenChange:n,params:l}=e,{walletId:u,address:c}=l||{},{openDialog:f,closeDialog:h}=eB(),{dataset:p}=R({id:u}),m=null==p?void 0:p.find(e=>e.id===c),v=(0,s.yi)(),g=(0,d.cI)({mode:"all",defaultValues:F});(0,o.useEffect)(()=>{g.reset(m?{description:m.description}:F)},[l]);let y=(0,o.useCallback)(async e=>{let t=await v.put({params:{id:u,addr:c},payload:{...m,description:e.description}});t.error?(0,a.OHV)(t.error):(h(),g.reset(F))},[u,c,g,v,m,h]);return(0,i.jsx)(a.VqE,{title:(0,a.$Gg)(c,20),trigger:t,open:r,onOpenChange:n,contentVariants:{className:"w-[400px]"},onSubmit:g.handleSubmit(y),controls:(0,i.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,i.jsx)(a.zxk,{onClick:()=>f("addressRemove",{walletId:u,address:c}),children:"Remove address"}),(0,i.jsx)("div",{className:"flex-1"}),(0,i.jsx)(a.ZqQ,{size:"small",form:g,children:"Save changes"})]}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsx)(a.hKn,{address:(null==m?void 0:m.address)||""}),(0,i.jsx)(a.Bau,{name:"description",form:g,fields:{description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}}}})]})})}let B={name:"",description:""};function U(e){let{params:t,trigger:r,open:n,onOpenChange:l}=e,{walletId:u}=t||{},{dataset:c}=(0,f.r)(),h=null==c?void 0:c.find(e=>e.id===u),p=(0,s.lT)(),m=(0,d.cI)({mode:"all",defaultValues:B}),{closeAndReset:v}=S({form:m,onOpenChange:l,defaultValues:B});(0,o.useEffect)(()=>{setTimeout(()=>{m.reset(h?{name:h.name,description:h.description}:B)},0)},[u]);let g=(0,o.useMemo)(()=>(null==c?void 0:c.reduce((e,t)=>t.name!==(null==h?void 0:h.name)?e.concat(t.name):e,[]))||[],[c,h]),y=function(e){let{walletNames:t}=e;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:e=>!t.includes(e)||"name is already in use"},required:"required",maxLength:30}},description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}}}}({walletNames:g}),b=(0,o.useCallback)(async e=>{let t=await p.put({params:{id:u},payload:{...h,name:e.name,description:e.description}});t.error?(0,a.OHV)(t.error):v()},[u,p,h,v]);return(0,i.jsx)(a.VqE,{title:"".concat(null==h?void 0:h.name),trigger:r,open:n,onOpenChange:l,contentVariants:{className:"w-[400px]"},onSubmit:m.handleSubmit(b),controls:(0,i.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,i.jsx)("div",{className:"flex-1"}),(0,i.jsx)(a.ZqQ,{size:"medium",form:m,children:"Save changes"})]}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.__J,{children:"Type"}),(0,i.jsx)("div",{children:(0,i.jsx)(a.Cts,{children:null==h?void 0:h.type})})]}),(0,i.jsx)(a.yEL,{name:"name",form:m,fields:y}),(0,i.jsx)(a.Bau,{name:"description",form:m,fields:y})]})})}var z=r(79381),H=r(39094),$=r(73866),W=r(27748);async function q(){let e=await Promise.all([$.Z.isSupported().then(async e=>{let t=await G();return e&&!t?"Bluetooth":null}),W.Z.isSupported().then(e=>e?"HID":null)]);return e.filter(e=>e)}async function G(){return navigator.brave&&await navigator.brave.isBrave()}function Z(e){let{title:t,details:r,actions:n,shouldVerify:o}=e,{device:s,disconnect:l}=(0,H.c)();return(0,i.jsx)(a.s_4,{className:"mt-1 pl-3 pr-2 py-2",children:(0,i.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,i.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[(0,i.jsxs)("div",{className:"flex items-center",children:[o?(0,i.jsxs)(i.Fragment,{children:[!(null==s?void 0:s.publicKey0)&&(0,i.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-400 animate-pingslow"}),(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-500 border border-amber-400"})]}),!!(null==s?void 0:s.publicKey0)&&(0,i.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-400 animate-pingslow"}),(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-500 border border-green-400"})]})]}):(0,i.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-400 animate-pingslow"}),(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-500 border border-green-400"})]}),(null==s?void 0:s.type)==="Bluetooth"&&(0,i.jsx)(a.ua7,{content:"Bluetooth",children:(0,i.jsx)(a.xvT,{weight:"semibold",size:"16",children:(0,i.jsx)(c.Ya6,{})})}),(null==s?void 0:s.type)==="USB"&&(0,i.jsx)(a.ua7,{content:"USB",children:(0,i.jsx)(a.xvT,{weight:"semibold",size:"16",children:(0,i.jsx)(c.Fhn,{size:16})})}),(null==s?void 0:s.type)==="HID"&&(0,i.jsx)(a.ua7,{content:"HID",children:(0,i.jsx)(a.xvT,{weight:"semibold",size:"16",children:(0,i.jsx)(c.Pj_,{size:16})})}),(0,i.jsx)(a.xvT,{weight:"semibold",size:"16",className:"ml-1",children:t})]}),(0,i.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[n,!!s&&(0,i.jsx)(a.zxk,{variant:"ghost",onClick:l,children:(0,i.jsx)(c.PcV,{})})]})]}),r]})})}let Y={transportType:""};function X(e){var t;let{shouldVerify:r}=e,{device:n,connect:s,verify:l,setError:u,waitingForUser:f}=(0,H.c)(),h=(0,d.cI)({mode:"all",defaultValues:Y}),p=h.watch("transportType"),m=!!(null==n?void 0:n.publicKey0),v=(0,z.ZP)("deviceConnect/supportedTransports",()=>q(),{revalidateOnFocus:!1});(0,o.useEffect)(()=>{v.data&&(h.setValue("transportType",v.data[0]),0===v.data.length&&u(Error("This browser does not support connecting to Ledger devices, please use a different browser.")))},[v.data]);let g=function(e){let{supportedTransports:t}=e;return{transportType:{type:"select",title:"Transport",placeholder:"Select a transport",options:t.map(e=>({value:e,label:e})),validation:{required:!0}}}}({supportedTransports:v.data||[]}),y=(0,o.useCallback)(async()=>{p&&s(p)},[s,p]),b=(0,o.useCallback)(async()=>{p&&await l()},[l,p]);return(0,i.jsx)("div",{className:"flex flex-col gap-1",children:n?r?m?(0,i.jsx)(Z,{shouldVerify:r,title:n.transport.deviceModel.productName,details:(0,i.jsx)("div",{className:"flex flex-col gap-1",children:(0,i.jsx)(a.XxW,{value:n.publicKey0,label:"public key 0",color:"subtle",maxLength:30})})}):(0,i.jsx)(Z,{shouldVerify:r,title:n.transport.deviceModel.productName,actions:(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(a.zxk,{variant:"accent",onClick:b,children:[(0,i.jsx)(c.j7C,{}),"Verify"]})}),details:f?(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.xvT,{children:"Please confirm on device..."}),(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:"To continue, approve public key verification on device."})]}):(0,i.jsx)("div",{className:"flex flex-col gap-1",children:(0,i.jsx)(a.nvN,{size:"14",children:"Unlock device, open the Sia app, and make sure Ledger Live is closed. Then start wallet verification to continue."})})}):(0,i.jsx)(Z,{shouldVerify:r,title:n.transport.deviceModel.productName}):(0,i.jsx)(Z,{shouldVerify:r,title:"Connect Ledger...",actions:(null===(t=v.data)||void 0===t?void 0:t.length)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.WyV,{name:"transportType",form:h,fields:g,group:!1}),(0,i.jsx)(a.zxk,{size:"small",onClick:y,children:"Connect"})]}):null,details:f?(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.xvT,{children:"Please confirm in browser and on device..."}),(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:"Connect your Ledger device. Make sure you unlock your Ledger and open the Sia App before trying to connect."})]}):(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:"Connect your Ledger device. Make sure you unlock your Ledger and open the Sia App before trying to connect."})})})}let K={name:"",description:"",ledgerConnectedAndVerified:!1};function J(e){let{trigger:t,open:r,onOpenChange:n}=e,{openDialog:l}=eB(),u=(0,s.lT)(),c=(0,d.cI)({mode:"all",defaultValues:K}),{device:h,disconnect:p,error:m}=(0,H.c)();(0,o.useEffect)(()=>{r&&p()},[r]),(0,o.useEffect)(()=>{h&&h.publicKey0?c.setValue("ledgerConnectedAndVerified",!0):c.setValue("ledgerConnectedAndVerified",!1)},[c,h]),(0,o.useEffect)(()=>{m?c.setError("ledgerConnectedAndVerified",{message:m.message}):c.clearErrors("ledgerConnectedAndVerified")},[c,m]);let{dataset:v}=(0,f.r)(),b=(null==v?void 0:v.map(e=>e.name))||[],x=function(e){let{walletNames:t}=e;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:e=>!t.includes(e)||"name is already in use"},required:"required",maxLength:30}},description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}},ledgerConnectedAndVerified:{type:"boolean",title:"",validation:{validate:{ledgerConnectedAndVerified:e=>e||"Ledger must be connected, unlocked, and verified"}}}}}({walletNames:b}),w=(0,s.yi)(),E=(0,o.useCallback)(async(e,t)=>{let{publicKey:r,address:n}=t,i=await w.put({params:{id:e,addr:n},payload:{index:0,publicKey:r}});if(i.error){(0,a.OHV)("Error saving address.");return}},[w]),j=(0,o.useCallback)(async e=>{if(!e.ledgerConnectedAndVerified||!h.publicKey0||!h.address0)return;let t=g(),r=await u.put({params:{id:t},payload:{type:"ledger",publicKey0:h.publicKey0,address0:h.address0,name:e.name,createdAt:new Date().getTime(),description:e.description}});r.error?(0,a.OHV)(r.error):(E(t,{publicKey:h.publicKey0,address:h.address0}),l("walletLedgerAddressGenerate",{walletId:t,walletJustCreated:!0}),c.reset(K))},[c,l,u,h,E]);return c.register("ledgerConnectedAndVerified",x.ledgerConnectedAndVerified.validation),(0,i.jsx)(a.VqE,{title:y.z.walletAddLedger.title,trigger:t,open:r,onOpenChange:n,contentVariants:{className:"w-[400px]"},onSubmit:c.handleSubmit(j),controls:(0,i.jsxs)("div",{className:"flex gap-2 pb-1",children:[(0,i.jsx)(a.zxk,{size:"medium",onClick:()=>{l("walletAddType")},children:"back"}),(0,i.jsx)("div",{className:"flex-1"}),(0,i.jsx)(a.ZqQ,{size:"medium",form:c,children:"Add wallet"})]}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:y.z.walletAddLedger.description}),(0,i.jsx)(a.yEL,{name:"name",form:c,fields:x}),(0,i.jsx)(a.Bau,{name:"description",form:c,fields:x}),(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.Qyk,{title:"Device",name:"ledgerConnectedAndVerified"}),(0,i.jsx)(a.cp7,{name:"ledgerConnectedAndVerified",form:c}),(0,i.jsx)(X,{shouldVerify:!0})]})]})})}let Q={name:"",description:"",mnemonic:""};function ee(e){let{trigger:t,open:r,onOpenChange:n}=e,{openDialog:l}=eB(),u=(0,d.cI)({mode:"all",defaultValues:Q}),{dataset:h}=(0,f.r)(),p=(null==h?void 0:h.map(e=>e.name))||[],m=function(e){let{walletNames:t}=e;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:e=>!t.includes(e)||"name is already in use"},required:"required",maxLength:30}},description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}},mnemonic:{type:"text",title:"Seed",placeholder:"island submit vague scrub exhibit cherry front spoon crop debate filter virus",validation:{required:"required",validate:{valid:e=>{let{error:t}=(0,w.x)().seedFromPhrase(e);return!t||"seed should be 12 word BIP39 mnemonic"}}}}}}({walletNames:p}),v=(0,s.lT)(),E=(0,o.useCallback)(async e=>{let t=g(),{seed:r}=(0,w.x)().seedFromPhrase(e.mnemonic),n=(0,b.blake2bHex)(r),i=await v.put({params:{id:t},payload:{type:"seed",seedHash:n,name:e.name,createdAt:new Date().getTime(),description:e.description}});i.error?(0,a.OHV)(i.error):(l("walletAddressesGenerate",{walletId:t}),u.reset(Q))},[u,l,v]);return(0,i.jsx)(a.VqE,{title:y.z.walletAddRecover.title,trigger:t,open:r,onOpenChange:n,contentVariants:{className:"w-[400px]"},onSubmit:u.handleSubmit(E),controls:(0,i.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,i.jsx)(a.zxk,{size:"medium",onClick:()=>{l("walletAddType")},children:"back"}),(0,i.jsx)("div",{className:"flex-1"}),(0,i.jsx)(a.ZqQ,{size:"medium",form:u,children:"Add wallet"})]}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:y.z.walletAddRecover.description}),(0,i.jsx)(a.yEL,{name:"name",form:u,fields:m}),(0,i.jsx)(a.Bau,{name:"description",form:u,fields:m}),(0,i.jsx)(x,{icon:(0,i.jsx)(c.fwm,{}),description:(0,i.jsx)(i.Fragment,{children:"Enter the seed mnemonic for the wallet you are recovering."}),children:(0,i.jsx)(a.Bau,{form:u,fields:m,name:"mnemonic"})})]})})}let et={name:"",description:""};function er(e){let{trigger:t,open:r,onOpenChange:n}=e,{openDialog:l}=eB(),u=(0,s.lT)(),c=(0,d.cI)({mode:"all",defaultValues:et}),{dataset:h}=(0,f.r)(),p=(null==h?void 0:h.map(e=>e.name))||[],m=function(e){let{walletNames:t}=e;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:e=>!t.includes(e)||"name is already in use"},required:"required",maxLength:30}},description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}}}}({walletNames:p}),v=(0,o.useCallback)(async e=>{let t=g(),r=await u.put({params:{id:t},payload:{type:"watch",name:e.name,description:e.description,createdAt:new Date().getTime()}});r.error?(0,a.OHV)(r.error):(l("walletAddressesAdd",{walletId:t}),c.reset(et))},[c,l,u]);return(0,i.jsx)(a.VqE,{title:y.z.walletAddWatch.title,trigger:t,open:r,onOpenChange:n,contentVariants:{className:"w-[400px]"},onSubmit:c.handleSubmit(v),controls:(0,i.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,i.jsx)(a.zxk,{size:"medium",onClick:()=>{l("walletAddType")},children:"back"}),(0,i.jsx)("div",{className:"flex-1"}),(0,i.jsx)(a.ZqQ,{size:"medium",form:c,children:"Add wallet"})]}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:y.z.walletAddWatch.description}),(0,i.jsx)(a.yEL,{name:"name",form:c,fields:m}),(0,i.jsx)(a.Bau,{name:"description",form:c,fields:m})]})})}var en=r(21551),ei=r(75652),eo=r.n(ei);let ea={addresses:""};function es(e){return eo()(e.trim().split(/[^0-9a-fA-F]+/).map(e=>e).filter(e=>!!e))}function el(e){let{params:t,trigger:r,open:n,onOpenChange:l}=e,{walletId:u}=t||{},{dataset:c}=(0,f.r)(),h=null==c?void 0:c.find(e=>e.id===u),p=(0,d.cI)({mode:"all",defaultValues:ea}),{handleOpenChange:m,closeAndReset:v}=S({form:p,onOpenChange:l,defaultValues:ea}),g=(0,s.yi)(),y=(0,o.useCallback)(async e=>{let t=es(e),r=t.length;for(let e=0;e0?"Not all addresses were saved.":""));return}}1===r?(0,a.OPV)("Successfully added 1 address."):(0,a.OPV)("Successfully added ".concat(r," addresses.")),v()},[u,g,v]),b=(0,o.useCallback)(e=>y(e.addresses),[y]),x=p.watch("addresses"),w=es(x).length;return(0,i.jsx)(a.VqE,{title:"Wallet ".concat(null==h?void 0:h.name,": add addresses"),trigger:r,open:n,onOpenChange:m,contentVariants:{className:"w-[500px]"},onSubmit:p.handleSubmit(b),controls:(0,i.jsx)("div",{className:"flex justify-end",children:(0,i.jsx)(a.ZqQ,{form:p,variant:"accent",size:"medium",children:0===w?"Add addresses":1===w?"Add 1 address":"Add ".concat(w.toLocaleString()," addresses")})}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-2 py-2",children:[(0,i.jsx)(a.nvN,{size:"14",children:"Enter multiple addresses separated by spaces or commas."}),(0,i.jsx)(a.Bau,{form:p,fields:{addresses:{type:"text",title:"Addresses",placeholder:"91acbc0feb9e20d538db1f8a509d508362d1b1f3d725d9b6639306531d770c1ef9eb637b4903\nb58849e347356878bb0098908191550ff3e46cc35ed166d0c571fe184d2f17b835747991c266\nb811a04859809fe081884c10d50ca069f1429112ba4a8dc9181c95de41f7eca01416923daa6d\n03442c5643c1deb15c60104ca6ad80fa9563c67c8334f0bbe968b01cb9b8f81c8103a7a202c0\n",validation:{required:"required",validate:{valid:e=>{let t=es(e||"");for(let e=0;e{let e=await h.delete({params:{id:u,addr:c}});e.error?(0,a.OHV)(e.error):((0,a.OPV)("Address permanently removed."),p.reset(),f())},[p,u,c,h,f]),v=(0,o.useMemo)(()=>({address:{type:"text",title:"Address",placeholder:c,validation:{required:"required",validate:{equals:e=>(0,a.I13)(e)===(0,a.I13)(c)||"address does not match"}}}}),[c]),g=(0,a.WsO)(v);return(0,i.jsx)(a.VqE,{title:"Remove address",trigger:r,open:n,onOpenChange:e=>{e||p.reset(eu),l(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit(m,g),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsxs)(a.nvN,{size:"14",children:["Are you sure you would like to permanently remove the address"," ",(0,i.jsxs)(a.EKh,{children:[(0,a.I13)(c).slice(0,12),"..."]}),"?"]}),(0,i.jsx)(a.nvN,{size:"14",children:"Enter the address name to confirm the removal."}),(0,i.jsx)(a.yEL,{name:"address",form:p,fields:v}),(0,i.jsx)(a.ZqQ,{variant:"red",form:p,children:"Remove"})]})})}let ed="e3b1050aef388438668b52983cf78f40925af8f0aa8b9de80c18eadcefce8388d168a313e3f2",ef=(0,en.qN)(.00393),eh={receiveAddress:"",changeAddress:"",claimAddress:"",customChangeAddress:!1,customClaimAddress:!1,mode:"siacoin",siacoin:void 0,siafund:void 0,includeFee:!1};function ep(e){let{balanceSc:t,balanceSf:r,onComplete:n,defaultChangeAddress:s,defaultClaimAddress:l}=e,u=(0,d.cI)({mode:"all",defaultValues:eh}),f=function(e){let{balanceSc:t,balanceSf:r,fee:n}=e;return{receiveAddress:{type:"text",title:"Recipient address",placeholder:ed,validation:{validate:{required:e=>!!e||"required",valid:e=>(0,en.At)(e)||"invalid address"}}},mode:{type:"select",title:"Action",options:[{value:"siacoin",label:"Send siacoins"},{value:"siafund",label:"Send siafunds"}],validation:{required:"required"}},siacoin:{type:"siacoin",title:"Siacoin",placeholder:"100",validation:{validate:{required:(e,t)=>"siacoin"!==t.mode||!!e||"required",gtz:(e,t)=>"siacoin"!==t.mode||!new(k())(e||0).isZero()||"must be greater than zero",balance:(e,r)=>"siacoin"!==r.mode||t.gte((0,en.qN)(e||0).plus(n))||"not enough funds in wallet"}}},siafund:{type:"number",title:"Siafunds",decimalsLimit:0,placeholder:"100",validation:{validate:{required:(e,t)=>"siafund"!==t.mode||!!e||"required",gtz:(e,t)=>"siafund"!==t.mode||(null==e?void 0:e.gt(0))||"must be greater than zero",balance:(e,i)=>"siafund"!==i.mode||(null==t?void 0:t.gte(n))&&(null==r?void 0:r.gte(e))||"not enough funds in wallet"}}},customChangeAddress:{type:"boolean",title:"Custom change adress",validation:{}},customClaimAddress:{type:"boolean",title:"Custom claim adress",validation:{}},changeAddress:{type:"text",title:"Change address",placeholder:ed,actions:(0,i.jsx)(a.ua7,{content:(0,i.jsx)(i.Fragment,{children:"The address where any change from the transaction will be sent. If a custom change address is not specified it is automatically set to the wallet's address 0."}),children:(0,i.jsx)(a.xvT,{color:"subtle",className:"cursor-pointer",children:(0,i.jsx)(c.RdX,{className:"scale-75"})})}),validation:{validate:{required:(e,t)=>{let r=!t.customChangeAddress;return r||!!e||"required"},valid:(e,t)=>{let r=!t.customChangeAddress;return r||(0,en.At)(e)||"invalid address"}}}},claimAddress:{type:"text",title:"Claim address",placeholder:ed,actions:(0,i.jsx)(a.ua7,{content:(0,i.jsx)(i.Fragment,{children:"The address that will receive any unclaimed siacoin earnings from the siafund. If a custom claim address is not specified it is automatically set to the wallet's address 0."}),children:(0,i.jsx)(a.xvT,{color:"subtle",className:"cursor-pointer",children:(0,i.jsx)(c.RdX,{className:"scale-75"})})}),validation:{validate:{required:(e,t)=>{let r="siafund"!==t.mode,n=!t.customChangeAddress;return r||n||!!e||"required"},valid:(e,t)=>{let r="siafund"!==t.mode,n=!t.customChangeAddress;return r||n||(0,en.At)(e)||"invalid address"}}}},includeFee:{type:"boolean",title:"",validation:{}}}}({balanceSc:t,balanceSf:r,fee:ef}),h=(0,o.useCallback)(async e=>{let t=new(k())(e.siacoin||0),r=new(k())(e.siafund||0),i=e.includeFee?(0,en.qN)(t).minus(ef):(0,en.qN)(t),o=r.toNumber();n({receiveAddress:e.receiveAddress,changeAddress:e.customChangeAddress?e.changeAddress:s,claimAddress:e.customClaimAddress?e.claimAddress:l,fee:ef,mode:e.mode,siacoin:i,siafund:o})},[n,s,l]),p=(0,o.useMemo)(()=>u.handleSubmit(h),[u,h]),m=u.watch("siacoin"),v=u.watch("mode"),g=u.watch("customChangeAddress"),y=u.watch("customClaimAddress"),b=u.watch("includeFee"),x=(0,en.qN)(m||0),w=(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[r.gt(0)&&(0,i.jsx)(a.WyV,{size:"medium",form:u,fields:f,name:"mode"}),(0,i.jsx)(a.yEL,{size:"medium",form:u,fields:f,name:"receiveAddress",autoComplete:"off"}),(0,i.jsxs)("div",{className:"flex gap-2",children:[(0,i.jsx)(a.QBj,{size:"small",form:u,fields:f,name:"customChangeAddress",group:!1,children:(0,i.jsxs)("div",{className:"flex items-center gap-px",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",weight:"medium",size:"14",ellipsis:!0,children:"custom change address"}),f.changeAddress.actions]})}),"siafund"===v&&(0,i.jsx)(a.QBj,{size:"small",form:u,fields:f,name:"customClaimAddress",group:!1,children:(0,i.jsxs)("div",{className:"flex items-center gap-px",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",weight:"medium",size:"14",ellipsis:!0,children:"custom claim address"}),f.claimAddress.actions]})})]}),g&&(0,i.jsx)(a.yEL,{size:"medium",form:u,fields:f,name:"changeAddress",autoComplete:"off"}),"siafund"===v&&y&&(0,i.jsx)(a.yEL,{size:"medium",form:u,fields:f,name:"claimAddress",autoComplete:"off"}),"siacoin"===v?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.qGu,{size:"medium",form:u,fields:f,name:"siacoin"}),(0,i.jsxs)("div",{className:"flex items-center",children:[(0,i.jsxs)(a.QBj,{size:"small",form:u,fields:f,name:"includeFee",children:[(0,i.jsx)(a.xvT,{children:"Include fee"}),(0,i.jsx)(a.Yqd,{children:"Include or exclude the network fee from the above transaction value."})]}),(0,i.jsx)("div",{className:"flex flex-1"})]})]}):(0,i.jsx)(a.jIp,{size:"medium",form:u,fields:f,name:"siafund"}),(0,i.jsxs)("div",{className:"flex flex-col gap-2 my-1",children:[(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",children:"Network fee"}),(0,i.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,i.jsx)(a.YKL,{size:"14",value:ef,variant:"value",dynamicUnits:!1})})]}),"siacoin"===v&&(0,i.jsxs)("div",{className:"flex justify-between gap-2 items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",children:"Total"}),(0,i.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,i.jsx)(a.YKL,{size:"14",value:b?x:x.plus(ef),variant:"value",dynamicUnits:!1})})]})]})]});return{form:u,el:w,handleSubmit:p,reset:()=>u.reset(eh)}}function em(e){let{params:{receiveAddress:t,changeAddress:r,claimAddress:n,mode:o,siacoin:s,siafund:l,fee:u},transactionId:c}=e,d=s.plus(u);return(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,i.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Recipient address"}),(0,i.jsx)(a.XxW,{value:t,type:"address"})]}),(0,i.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Change address"}),(0,i.jsx)(a.XxW,{value:r,type:"address"})]}),"siafund"===o&&(0,i.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Claim address"}),(0,i.jsx)(a.XxW,{value:n,type:"address"})]}),(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Amount"}),(0,i.jsx)("div",{className:"flex relative top-[-0.5px]",children:"siacoin"===o?(0,i.jsx)(a.YKL,{size:"14",value:s,variant:"value",dynamicUnits:!1}):(0,i.jsx)(a.Sby,{size:"14",value:l,variant:"value"})})]}),(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Network fee"}),(0,i.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,i.jsx)(a.YKL,{size:"14",value:u,variant:"value",dynamicUnits:!1})})]}),"siacoin"===o&&(0,i.jsxs)("div",{className:"flex items-center gap-2 justify-between",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Total"}),(0,i.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,i.jsx)(a.YKL,{size:"14",value:d,variant:"value",dynamicUnits:!1})})]}),c&&(0,i.jsxs)("div",{className:"flex gap-6 items-center justify-between",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Transaction ID"}),(0,i.jsx)(a.XxW,{value:c,type:"transaction"})]})]})}function ev(e){let{transaction:t,toSign:r,addresses:n,siacoinOutputs:i,siafundOutputs:o}=e;if(!n)return{error:"No addresses"};if(!i)return{error:"No outputs"};for(let e of r){let r=(0,a.I13)(e),{address:s,siacoinUtxo:l,siafundUtxo:u,siacoinInput:c,siafundInput:d,error:f}=eg({toSignId:r,addresses:n,siacoinOutputs:i,siafundOutputs:o,transaction:t});if(f)return{error:f};l&&(c.unlockConditions={timelock:0,publicKeys:[s.publicKey],signaturesRequired:1}),u&&(d.unlockConditions={timelock:0,publicKeys:[s.publicKey],signaturesRequired:1}),t.signatures||(t.signatures=[]),t.signatures.push({parentID:r,publicKeyIndex:0,timelock:0,coveredFields:{wholeTransaction:!0}})}return{}}function eg(e){var t,r;let{toSignId:n,transaction:i,addresses:o,siacoinOutputs:s,siafundOutputs:l}=e,u=(0,a.I13)(n),c=function(e){let{id:t,addresses:r,siacoinOutputs:n}=e,i=(0,a.I13)(t),o=null==n?void 0:n.find(e=>(0,a.I13)(e.id)===i);if(!o)return{error:"Missing utxo"};let s=null==r?void 0:r.find(e=>(0,a.I13)(e.address)===(0,a.I13)(o.siacoinOutput.address));return s?void 0===s.index?{error:"Missing address index"}:s.publicKey?{utxo:o,address:s}:{error:"Missing address public key"}:{error:"Missing address"}}({id:u,addresses:o,siacoinOutputs:s});if(!c.error){let e=null===(t=i.siacoinInputs)||void 0===t?void 0:t.find(e=>(0,a.I13)(e.parentID)===(0,a.I13)(c.utxo.id));return e?{address:c.address,siacoinUtxo:c.utxo,siacoinInput:e}:{error:"Missing input"}}let d=function(e){let{id:t,addresses:r,siafundOutputs:n}=e,i=(0,a.I13)(t),o=null==n?void 0:n.find(e=>(0,a.I13)(e.id)===i);if(!o)return{error:"Missing utxo"};let s=null==r?void 0:r.find(e=>(0,a.I13)(e.address)===(0,a.I13)(o.siafundOutput.address));return s?void 0===s.index?{error:"Missing address index"}:s.publicKey?{utxo:o,address:s}:{error:"Missing address public key"}:{error:"Missing address"}}({id:u,addresses:o,siafundOutputs:l});if(!d.error){let e=null===(r=i.siafundInputs)||void 0===r?void 0:r.find(e=>(0,a.I13)(e.parentID)===(0,a.I13)(d.utxo.id));return e?{address:d.address,siafundUtxo:d.utxo,siafundInput:e}:{error:"Missing input"}}return d.error&&"Missing utxo"!==d.error?{error:d.error}:{error:c.error}}function ey(e){let{cancel:t}=e,r=(0,s.ys)(),n=(0,o.useCallback)(async e=>{let{signedTransaction:n}=e;if(!n)return{error:"No signed transaction"};let i=await r.post({payload:{transactions:[n],v2Transactions:[]}});return i.error?(t(n),{error:i.error}):{}},[t,r]);return n}function eb(){let{wallet:e}=(0,f.r)(),t=null==e?void 0:e.id,r=(0,s.zQ)(),n=(0,o.useCallback)(async e=>{var n,i;let o=(null===(n=e.siacoinInputs)||void 0===n?void 0:n.map(e=>e.parentID))||[],s=(null===(i=e.siafundInputs)||void 0===i?void 0:i.map(e=>e.parentID))||[],l=await r.post({params:{id:t},payload:{siacoinOutputs:o,siafundOutputs:s}});l.error&&(0,a.OHV)(l.error)},[t,r]);return n}function ex(){let{wallet:e}=(0,f.r)(),t=null==e?void 0:e.id,r=(0,s.gU)(),n=(0,s.p4)(),i=(0,o.useCallback)(async e=>{let{receiveAddress:i,changeAddress:o,claimAddress:a,mode:s,siacoin:l,siafund:u,fee:c}=e;if(!i||!o||!a)return{error:"No addresses"};if("siacoin"===s){let e=await r.post({params:{id:t},payload:{amount:l.plus(c).toString(),changeAddress:o,transaction:{minerFees:[c.toString()],siacoinOutputs:[{value:l.toString(),address:i}]}}});return e.error?{error:e.error}:{fundedTransaction:e.data.transaction,toSign:e.data.toSign}}if("siafund"===s){let e=[],s=await n.post({params:{id:t},payload:{amount:u,changeAddress:o,claimAddress:a,transaction:{minerFees:[c.toString()],siafundOutputs:[{value:u,address:i}]}}});return s.error?{error:s.error}:(e.push(...s.data.toSign),(s=await r.post({params:{id:t},payload:{amount:c.toString(),changeAddress:o,transaction:s.data.transaction}})).error)?{error:s.error}:(e.push(...s.data.toSign),{fundedTransaction:s.data.transaction,toSign:e})}},[r,n,t]);return i}let ew={mnemonic:""};function eE(e){let{params:t,transactionId:r}=e;return(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsx)(em,{params:t,transactionId:r}),(0,i.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 my-4",children:[(0,i.jsx)(a.xvT,{children:(0,i.jsx)(c.Z$8,{})}),(0,i.jsx)(a.xvT,{children:"Transaction successfully broadcasted."})]})]})}function ej(e){let{trigger:t,open:r,onOpenChange:n,sendParams:o,signedTxnId:s,step:l,send:u,compose:c,setStep:d,controls:f}=e;return(0,i.jsx)(a.VqE,{trigger:t,open:r,onOpenChange:e=>{e||(c.reset(),u.reset(),d("compose")),n(e)},title:"Send",onSubmit:f?f.handleSubmit:void 0,controls:(null==f?void 0:f.form)&&(0,i.jsx)("div",{className:"flex flex-col gap-1",children:(0,i.jsx)(a.ZqQ,{form:f.form,children:f.submitLabel})}),contentVariants:{className:"w-[450px]"},children:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsx)(a.tIK,{onChange:e=>{d(e)},activeStep:l,steps:[{id:"compose",label:"Compose"},{id:"send",label:"Sign & Send"},{id:"done",label:"Complete"}]}),(0,i.jsx)(a.Z0O,{className:"w-full mt-4"}),"compose"===l&&c.el,"send"===l&&u.el,"done"===l&&(0,i.jsx)(eE,{params:o,transactionId:s})]})})}let eS={receiveAddress:"",changeAddress:"",claimAddress:"",mode:"siacoin",siacoin:new(k())(0),siafund:0,fee:new(k())(0)};function eC(e){var t,r;let{params:n,trigger:l,open:u,onOpenChange:c}=e,{walletId:h}=n||{},p=(0,s.tM)({disabled:!h,params:{id:h}}),{dataset:m}=R({id:h}),v=(0,o.useMemo)(()=>{var e;return new(k())((null===(e=p.data)||void 0===e?void 0:e.siacoins)||0)},[p.data]),g=(0,o.useMemo)(()=>{var e;return new(k())((null===(e=p.data)||void 0===e?void 0:e.siafunds)||0)},[p.data]),[y,b]=(0,o.useState)("compose"),[x,E]=(0,o.useState)(),[j,S]=(0,o.useState)(eS),C=ep({balanceSc:v,balanceSf:g,defaultChangeAddress:null==m?void 0:null===(t=m[0])||void 0===t?void 0:t.address,defaultClaimAddress:null==m?void 0:null===(r=m[0])||void 0===r?void 0:r.address,onComplete:e=>{S(t=>({...t,...e})),b("send")}}),O=function(e){let{walletId:t,params:r,onConfirm:n}=e,l=function(){let{wallet:e,saveWalletSeed:t}=(0,f.r)(),r=null==e?void 0:e.id,n=(0,s.Vg)({disabled:!r,params:{id:r}}),{dataset:i}=R({id:r}),a=(0,s.ek)(),l=(0,s.gM)(),u=ex(),c=eb(),d=ey({cancel:c});return(0,o.useCallback)(async e=>{var o,s;let{seed:f,params:h}=e;if(!i)return;let{fundedTransaction:p,toSign:m,error:v}=await u(h);if(v)return{fundedTransaction:p,error:v};let{signedTransaction:g,error:y}=await function(e){let{seed:t,transaction:r,toSign:n,cs:i,cn:o,addresses:a,siacoinOutputs:s,siafundOutputs:l}=e;if(!i)return{error:"No consensus state"};if(!a)return{error:"No addresses"};if(!s)return{error:"No outputs"};let{error:u}=ev({toSign:n,transaction:r,addresses:a,siacoinOutputs:s,siafundOutputs:l});if(u)return{error:u};for(let[e,u]of n.entries()){let{address:n,error:c}=eg({toSignId:u,transaction:r,addresses:a,siacoinOutputs:s,siafundOutputs:l});if(c)return{error:c};let d=(0,w.x)().privateKeyFromSeed(t,n.index);if(d.error)return{error:d.error};let{transaction:f,error:h}=(0,w.x)().signTransaction(JSON.stringify(i),JSON.stringify(o),JSON.stringify(r),e,d.privateKey);if(h)return{error:h};r=f}return{signedTransaction:r}}({seed:f,transaction:p,toSign:m,cs:a.data,cn:l.data,addresses:i,siacoinOutputs:null===(o=n.data)||void 0===o?void 0:o.siacoinOutputs,siafundOutputs:null===(s=n.data)||void 0===s?void 0:s.siafundOutputs});return y?(c(p),{error:y}):(t(r,f),d({signedTransaction:g}))},[c,i,u,r,a.data,l.data,n.data,t,d])}(),{isSeedCached:u,getSeedFromCacheOrForm:c}=_(t),{dataset:h}=(0,f.r)(),p=null==h?void 0:h.find(e=>e.id===t),m=null==p?void 0:p.seedHash,v=(0,d.cI)({mode:"all",defaultValues:ew}),[g,y]=(0,o.useState)("password"),b=(0,o.useMemo)(()=>(function(e){let{seedHash:t,mnemonicFieldType:r,setMnemonicFieldType:n,isSeedCached:i}=e;return{mnemonic:i?{title:"Seed",type:"text",validation:{}}:A({seedHash:t,setMnemonicFieldType:n,mnemonicFieldType:r})}})({mnemonicFieldType:g,setMnemonicFieldType:y,seedHash:m,isSeedCached:u}),[g,y,m,u]),x=(0,o.useCallback)(async e=>{let t=c(e);if(t.error){(0,a.OHV)(t.error);return}let{error:i}=await l({seed:t.seed,params:r});if(i){(0,a.OHV)(i);return}n({})},[c,l,r,n]),E=(0,a.WsO)(b),j=(0,o.useMemo)(()=>v.handleSubmit(x,E),[v,x,E]),S=(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsx)(T,{walletId:t,name:"mnemonic",form:v,fields:b,actionText:"complete the transaction"}),(0,i.jsx)(em,{params:r})]});return{form:v,el:S,handleSubmit:j,reset:()=>v.reset(ew)}}({walletId:h,params:j,onConfirm:e=>{let{transactionId:t}=e;E(t),b("done")}}),M=(0,o.useMemo)(()=>"compose"===y?{submitLabel:"Generate transaction",form:C.form,handleSubmit:C.handleSubmit,reset:C.reset}:"send"===y?{submitLabel:"Sign and broadcast transaction",form:O.form,handleSubmit:O.handleSubmit,reset:O.reset}:void 0,[y,C,O]);return(0,i.jsx)(ej,{trigger:l,open:u,onOpenChange:e=>{e||(C.reset(),O.reset(),b("compose")),c(e)},controls:M,compose:C,send:O,sendParams:j,signedTxnId:x,step:y,setStep:b})}function ek(e){let{title:t,isSigned:r,isConnected:n,details:o,actions:s}=e;return(0,i.jsx)(a.s_4,{className:"mt-1 pl-3 pr-2 py-2",children:(0,i.jsxs)("div",{className:"flex flex-col",children:[(0,i.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[(0,i.jsxs)("div",{className:"flex items-center",children:[r?(0,i.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-400 animate-pingslow"}),(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-500 border border-green-400"})]}):n?(0,i.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-400 animate-pingslow"}),(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-500 border border-amber-400"})]}):(0,i.jsx)("div",{className:"relative w-2 h-2 mr-2",children:(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-gray-1000 border border-gray-900"})}),(0,i.jsx)(a.xvT,{weight:"semibold",size:"16",className:"ml-1",children:t})]}),(0,i.jsx)("div",{className:"flex gap-1 justify-between items-center",children:s})]}),o]})})}function eA(e){let{waitingForUser:t,isConnected:r,isSigned:n,sign:o}=e;return(0,i.jsx)("div",{className:"flex flex-col gap-1",children:n?(0,i.jsx)(ek,{isConnected:r,isSigned:n,title:"Transaction"}):r&&t?(0,i.jsx)(ek,{isConnected:r,isSigned:n,title:"Transaction",details:(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.xvT,{children:"Please confirm on device..."}),(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:"To continue, approve signature on device."})]})}):r?(0,i.jsx)(ek,{isConnected:r,isSigned:n,title:"Transaction",actions:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(a.zxk,{size:"small",onClick:o,children:"Sign"})})}):(0,i.jsx)(ek,{isConnected:r,isSigned:n,title:"Transaction",details:(0,i.jsx)("div",{className:"flex flex-col gap-1",children:(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:"Connect device to start signing."})})})})}var eO=r(48834).lW;async function eT(e){let{device:t,transaction:r,toSign:n,addresses:i,siacoinOutputs:o,siafundOutputs:a}=e;if(!i)return{error:"No addresses"};if(!o)return{error:"No outputs"};let{error:s}=ev({transaction:r,toSign:n,addresses:i,siacoinOutputs:o,siafundOutputs:a});if(s)return{error:s};for(let[e,s]of n.entries()){let n=eg({toSignId:s,addresses:i,siacoinOutputs:o,siafundOutputs:a,transaction:r});if(n.error)return{error:n.error};let l=await e_({device:t,transaction:r,signatureIndex:e,keyIndex:n.address.index});if(l.error)return{error:l.error}}return{transaction:r}}async function e_(e){let t,{device:r,transaction:n,signatureIndex:i,keyIndex:o}=e,{encodedTransaction:a,error:s}=(0,w.x)().encodeTransaction(JSON.stringify(n));if(s)return{error:s};let l=eO.from(a,"utf-8"),u=await r.sia.getVersion(),c=0>function(e,t){let r=/[^0-9.]/gi,n=e.replace(r,"").split("."),i=t.replace(r,"").split("."),o=Math.max(n.length,i.length);for(let e=0;er)return 1}return 0}(u,"0.4.5");try{t=c?await r.sia.signTransactionV044(l,i,o):await r.sia.signTransaction(l,i,o,0)}catch(e){return{error:e.message}}return n.signatures[i].signature=t,{transaction:n}}let eM={isConnected:!1,isSigned:!1};function eR(e){var t,r;let{params:n,trigger:l,open:u,onOpenChange:c}=e,{walletId:h}=n||{},[p,m]=(0,o.useState)("compose"),[v,g]=(0,o.useState)(),[y,b]=(0,o.useState)(eS),x=(0,s.tM)({disabled:!h,params:{id:h}}),{dataset:w}=R({id:h}),E=(0,o.useMemo)(()=>{var e;return new(k())((null===(e=x.data)||void 0===e?void 0:e.siacoins)||0)},[x.data]),j=(0,o.useMemo)(()=>{var e;return new(k())((null===(e=x.data)||void 0===e?void 0:e.siafunds)||0)},[x.data]),S=ep({balanceSc:E,balanceSf:j,defaultChangeAddress:null==w?void 0:null===(t=w[0])||void 0===t?void 0:t.address,defaultClaimAddress:null==w?void 0:null===(r=w[0])||void 0===r?void 0:r.address,onComplete:e=>{b(t=>({...t,...e})),m("send")}}),C=function(e){let{params:t,step:r,onConfirm:n}=e,l=(0,d.cI)({mode:"all",defaultValues:eM}),u=l.watch("isConnected"),c=l.watch("isSigned"),{device:h,error:p}=(0,H.c)(),m=eb(),v=function(e){let{cancel:t}=e,{wallet:r}=(0,f.r)(),n=null==r?void 0:r.id,i=(0,s.Vg)({disabled:!n,params:{id:n}}),{dataset:a}=R({id:n}),{device:l}=(0,H.c)(),u=(0,o.useCallback)(async e=>{var r,n;let{fundedTransaction:o,toSign:s}=e;if(!l||!o)return;let u=await eT({device:l,transaction:o,toSign:s,addresses:a,siacoinOutputs:null===(r=i.data)||void 0===r?void 0:r.siacoinOutputs,siafundOutputs:null===(n=i.data)||void 0===n?void 0:n.siafundOutputs});return u.error?(t(o),{error:u.error}):{signedTransaction:u.transaction}},[l,a,i.data,t]);return u}({cancel:m}),g=ey({cancel:m}),y=ex(),b=function(e){let{fund:t,cancel:r,sign:n}=e,i=(0,o.useCallback)(async e=>{let{fundedTransaction:i,toSign:o,error:a}=await t(e);if(a)return{fundedTransaction:i,error:a};let{signedTransaction:s,error:l}=await n({fundedTransaction:i,toSign:o});return l?(r(i),{fundedTransaction:i,error:l}):{signedTransaction:s}},[t,n,r]);return i}({cancel:m,fund:y,sign:v}),[x,w]=(0,o.useState)(!1),[E,j]=(0,o.useState)();(0,o.useEffect)(()=>{"compose"===r&&j(void 0)},[r]),(0,o.useEffect)(()=>{h?l.setValue("isConnected",!0):(w(!1),l.setValue("isConnected",!1))},[l,h]),(0,o.useEffect)(()=>{p?l.setError("isConnected",{message:p.message}):l.clearErrors("isConnected")},[l,p]),(0,o.useEffect)(()=>{E||l.setValue("isSigned",!1)},[l,E]);let S=(0,o.useMemo)(()=>({isConnected:{type:"boolean",title:"",validation:{validate:{isConnected:e=>e||"Ledger must be connected"}}},isSigned:{type:"boolean",title:"",validation:{validate:{isSigned:e=>e||"Transaction must be signed"}}}}),[]),C=(0,o.useCallback)(async e=>{if(!e.isConnected)return;let{error:t}=await g({signedTransaction:E});if(t){(0,a.OHV)(t);return}n({})},[g,E,n]),k=(0,a.WsO)(S),A=(0,o.useMemo)(()=>l.handleSubmit(C,k),[l,C,k]),O=(0,o.useCallback)(async()=>{w(!0);let{signedTransaction:e,error:r}=await b(t);r?(0,a.OHV)(r):(j(e),l.setValue("isSigned",!0)),w(!1)},[l,b,t]),T=(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.Qyk,{title:"Device",name:"isConnected"}),(0,i.jsx)(a.cp7,{name:"isConnected",form:l}),(0,i.jsx)(X,{})]}),(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.Qyk,{title:"Signature",name:"isSigned"}),(0,i.jsx)(a.cp7,{name:"isSigned",form:l}),(0,i.jsx)(eA,{waitingForUser:x,isConnected:u,isSigned:c,sign:O})]})]}),(0,i.jsx)(em,{params:t})]});return{form:l,el:T,handleSubmit:A,cancel:()=>{E&&m(E)},reset:()=>l.reset(eM)}}({walletId:h,step:p,params:y,onConfirm:e=>{let{transactionId:t}=e;g(t),m("done")}}),A=(0,o.useMemo)(()=>"compose"===p?{submitLabel:"Generate transaction",form:S.form,handleSubmit:S.handleSubmit,reset:S.reset}:"send"===p?{submitLabel:"Sign and broadcast transaction",form:C.form,handleSubmit:C.handleSubmit,reset:C.reset}:void 0,[p,S,C]);return(0,i.jsx)(ej,{trigger:l,open:u,onOpenChange:e=>{e||(S.reset(),C.reset(),m("compose")),c(e)},controls:A,compose:S,send:C,sendParams:y,signedTxnId:v,step:p,setStep:m})}function eN(e){let{params:t,trigger:r,open:n,onOpenChange:s}=e,{walletId:l}=t||{},{dataset:u,saveWalletSeed:c}=(0,f.r)(),h=null==u?void 0:u.find(e=>e.id===l),p={mnemonic:""},[m,v]=(0,o.useState)("password"),g=(0,d.cI)({mode:"all",defaultValues:p}),{handleOpenChange:y,closeAndReset:b}=S({form:g,onOpenChange:s,defaultValues:p}),x=function(e){let{seedHash:t,mnemonicFieldType:r,setMnemonicFieldType:n}=e;return{mnemonic:A({seedHash:t,setMnemonicFieldType:n,mnemonicFieldType:r})}}({seedHash:null==h?void 0:h.seedHash,mnemonicFieldType:m,setMnemonicFieldType:v}),E=(0,o.useCallback)(e=>{let{seed:t}=(0,w.x)().seedFromPhrase(e.mnemonic);c(l,t),b()},[l,c,b]),j=(0,a.WsO)(x);return(0,i.jsx)(a.VqE,{title:"Unlock wallet: ".concat(null==h?void 0:h.name),trigger:r,open:n,onOpenChange:y,contentVariants:{className:"w-[500px]"},onSubmit:g.handleSubmit(E,j),controls:(0,i.jsx)("div",{className:"flex justify-end",children:(0,i.jsx)(a.ZqQ,{form:g,variant:"accent",size:"medium",children:"Continue"})}),children:(0,i.jsx)(T,{walletId:null==h?void 0:h.id,form:g,fields:x,name:"mnemonic"})})}function eP(e){let{open:t,onOpenChange:r}=e,{walletAutoLockTimeout:n,setWalletAutoLockTimeout:o,setWalletAutoLockEnabled:s,walletAutoLockEnabled:l}=(0,f.r)();return(0,i.jsx)(a.DLL,{open:t,onOpenChange:r,securityEl:(0,i.jsx)(a.bZj,{children:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,i.jsx)(a.xvT,{children:(0,i.jsx)(c.RdX,{})}),(0,i.jsx)(a.X6q,{size:"20",className:"flex-1",children:"Lock wallets"}),(0,i.jsx)(a.rsf,{size:"medium",checked:l,onCheckedChange:e=>s(e)}),(0,i.jsxs)(a.PhF,{disabled:!l,value:String(n),onChange:e=>{o(Number(e.currentTarget.value))},children:[(0,i.jsx)(a.Wxm,{value:(0,a.sWj)(5),children:"5 minutes"}),(0,i.jsx)(a.Wxm,{value:(0,a.sWj)(10),children:"10 minutes"}),(0,i.jsx)(a.Wxm,{value:(0,a.sWj)(20),children:"20 minutes"}),(0,i.jsx)(a.Wxm,{value:(0,a.sWj)(30),children:"30 minutes"}),(0,i.jsx)(a.Wxm,{value:(0,a.sWj)(60),children:"1 hour"})]})]}),(0,i.jsx)(a.nvN,{size:"14",children:"Automatically lock each wallet after a certain period of inactivity."})]})})})}function eL(e){let{title:t,isNew:r,address:n,details:o,actions:s,remove:l}=e;return(0,i.jsx)(a.s_4,{className:"mt-1 pl-3 pr-2 py-2",children:(0,i.jsxs)("div",{className:"flex flex-col",children:[(0,i.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[(0,i.jsxs)("div",{className:"flex items-center",children:[n?r?(0,i.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-400 animate-pingslow"}),(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-500 border border-green-400"})]}):(0,i.jsx)("div",{className:"relative w-2 h-2 mr-2",children:(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-gray-1000 border border-gray-900"})}):(0,i.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-400 animate-pingslow"}),(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-500 border border-amber-400"})]}),(0,i.jsx)(a.xvT,{weight:"semibold",size:"16",className:"ml-1",children:t})]}),(0,i.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[s,r&&(0,i.jsx)(a.zxk,{variant:"ghost",onClick:l,children:(0,i.jsx)(c.PcV,{})})]})]}),o]})})}function eD(e){let{index:t,address:r,isNew:n,setAddress:s,remove:l}=e,{device:u,error:c,setError:d}=(0,H.c)(),[f,h]=(0,o.useState)(!1),p=(0,o.useCallback)(async()=>{if(u){if(c){(0,a.OHV)(c.message);return}try{h(!0);let e=await u.sia.verifyStandardAddress(t);s({index:t,address:e.address,publicKey:e.publicKey})}catch(e){d(e),console.log(e)}h(!1)}},[t,u,c,d,s]);return(0,i.jsx)("div",{className:"flex flex-col gap-1",children:r?(0,i.jsx)(eL,{title:"Address ".concat(t),isNew:n,remove:l,address:r,details:(0,i.jsx)("div",{className:"flex flex-col gap-1",children:(0,i.jsx)(a.XxW,{value:r,label:"public key 0",color:"subtle",maxLength:30})})}):f?(0,i.jsx)(eL,{title:"Address ".concat(t),isNew:n,remove:l,details:(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.xvT,{children:"Please confirm on device..."}),(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:"To continue, approve address generation on device."})]})}):(0,i.jsx)(eL,{title:"Address ".concat(t),isNew:n,remove:l,actions:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(a.zxk,{size:"small",onClick:p,children:"Generate"})})})})}function eI(e){return{isNew:!0,address:"",publicKey:"",index:e}}function eF(e){let{params:t,trigger:r,open:n,onOpenChange:l}=e,{walletId:u,walletJustCreated:c}=t||{},{dataset:h,lastIndex:p,datasetCount:m}=R({id:u}),{dataset:v}=(0,f.r)(),g=null==v?void 0:v.find(e=>e.id===u),y=p+1,b={ledgerConnected:!1,index:new(k())(y),count:new(k())(1)},x=(0,d.cI)({mode:"all",defaultValues:b}),{disconnect:w,error:E}=(0,H.c)();(0,o.useEffect)(()=>{!c&&n&&w()},[n]),(0,o.useEffect)(()=>{x.formState.isSubmitting||x.setValue("index",new(k())(y))},[y]);let j=x.watch("index"),C=x.watch("count"),A={ledgerConnected:{type:"boolean",title:"",validation:{validate:{ledgerConnected:e=>e||"Ledger must be connected"}}},index:{type:"number",title:"Start index",decimalsLimit:0,placeholder:"0",validation:{required:"required"}},count:{type:"number",title:"Number of addresses",decimalsLimit:0,placeholder:"1",validation:{required:"required",max:1e3}}},O=(0,s.yi)();(0,o.useEffect)(()=>{E?x.setError("ledgerConnected",{message:E.message}):x.clearErrors("ledgerConnected")},[x,E]);let[T,_]=(0,o.useState)({});(0,o.useEffect)(()=>{n&&c&&_({0:eI(0)})},[n]);let M=(0,o.useCallback)(()=>{if(!j||!C)return;let e={...T};for(let t=j.toNumber();t{_(t=>{let r={...t};return delete r[e],r})},[]),P=(0,o.useCallback)(e=>{let{index:t,address:r,publicKey:n}=e;_(e=>{let i={...e};return i[t]={...i[t],address:r,publicKey:n},i})},[_]),L=(0,o.useMemo)(()=>{let e={};for(let[t,{address:r,publicKey:n}]of Object.entries(T)){let i=null==h?void 0:h.find(e=>e.index===Number(t));e[t]={isNew:!i,index:Number(t),address:(null==i?void 0:i.address)||r,publicKey:(null==i?void 0:i.publicKey)||n}}return e},[h,T]),D=(0,o.useMemo)(()=>Object.entries(L).filter(e=>{let[t,r]=e;return r.isNew&&r.address}).map(e=>{let[t,r]=e;return r}),[L]),I=(0,o.useCallback)(async()=>{let e=D.length;for(let[t,{address:r,publicKey:n,index:i}]of D.entries()){let o=await O.put({params:{id:u,addr:r},payload:{index:i,publicKey:n}});if(o.error){1===e?(0,a.OHV)("Error saving address."):(0,a.OHV)("Error saving addresses. ".concat(t>0?"Not all addresses were saved.":""));return}}1===e?(0,a.OPV)("Successfully added 1 address."):(0,a.OPV)("Successfully added ".concat(e," addresses."))},[O,u,D]),{handleOpenChange:F,closeAndReset:V}=S({form:x,onOpenChange:e=>{_({}),l(e)},defaultValues:b}),B=(0,o.useCallback)(async()=>{if(0===D.length){(0,a.OHV)("Add and generate addresses with your Ledger device to continue.");return}await I(),V()},[D,I,V]);return(0,i.jsx)(a.VqE,{title:"Wallet ".concat(null==g?void 0:g.name,": generate addresses"),trigger:r,open:n,onOpenChange:F,contentVariants:{className:"w-[500px]"},onSubmit:x.handleSubmit(B),controls:(0,i.jsxs)("div",{className:"flex gap-1 justify-end",children:[(0,i.jsx)(a.zxk,{size:"medium",variant:"gray",onClick:V,children:"Close"}),D.length>0&&(0,i.jsxs)(a.ZqQ,{form:x,variant:"accent",size:"medium",children:["Save ",D.length," ",1===D.length?"address":"addresses"]})]}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsxs)(a.xvT,{children:["Wallet currently has ",m," ",1===m?"address":"addresses"," with a highest index of"," ",p,". Select a start index and the number of sequential addresses you would like to generate."]}),(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.Qyk,{title:"Device",name:"ledgerConnected"}),(0,i.jsx)(a.cp7,{name:"ledgerConnected",form:x}),(0,i.jsx)(X,{})]}),(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsxs)("div",{className:"flex gap-2 w-full pt-3 items-end",children:[(0,i.jsx)("div",{className:"flex-1",children:(0,i.jsx)(a.jIp,{form:x,fields:A,name:"index"})}),(0,i.jsx)("div",{className:"flex-1",children:(0,i.jsx)(a.jIp,{form:x,fields:A,name:"count"})}),(0,i.jsx)(a.zxk,{onClick:M,children:"Add"})]}),(0,i.jsx)("div",{className:"flex flex-col gap-1",children:Object.entries(L).map(e=>{let[t,{address:r,isNew:n}]=e;return(0,i.jsx)(eD,{isNew:n,address:r,setAddress:P,index:Number(t),remove:()=>N(Number(t))},t)})})]})]})})}let eV=(0,o.createContext)({}),eB=()=>(0,o.useContext)(eV);function eU(e){let{children:t}=e,r=function(){let[e,t]=(0,o.useState)(),[r,n]=(0,o.useState)({}),i=(0,o.useCallback)((e,r)=>{n(t=>({...t,[e]:r})),t(e)},[n,t]),a=(0,o.useCallback)(()=>{n(t=>({...t,[e]:void 0})),t(void 0)},[t,n,e]),s=(0,o.useCallback)(e=>{e||a()},[a]);return{dialog:e,params:r,openDialog:i,confirm,closeDialog:a,onOpenChange:s}}();return(0,i.jsx)(eV.Provider,{value:r,children:t})}function ez(){let{openDialog:e,onOpenChange:t,closeDialog:r,dialog:n,params:o}=eB(),l=(0,s.Wl)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(eP,{open:"settings"===n,onOpenChange:t}),(0,i.jsx)(u,{open:"walletAddType"===n,params:o.walletAddType,onOpenChange:t=>t?e(n,o.walletAddType):r()}),(0,i.jsx)(j,{open:"walletAddNew"===n,params:o.walletAddNew,onOpenChange:t=>t?e(n,o.walletAddNew):r()}),(0,i.jsx)(ee,{open:"walletAddRecover"===n,params:o.walletAddRecover,onOpenChange:t=>t?e(n,o.walletAddRecover):r()}),(0,i.jsx)(J,{open:"walletAddLedger"===n,params:o.walletAddLedger,onOpenChange:t=>t?e(n,o.walletAddLedger):r()}),(0,i.jsx)(er,{open:"walletAddWatch"===n,params:o.walletAddWatch,onOpenChange:t=>t?e(n,o.walletAddWatch):r()}),(0,i.jsx)(N,{open:"walletAddressesGenerate"===n,params:o.walletAddressesGenerate,onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(eF,{open:"walletLedgerAddressGenerate"===n,params:o.walletLedgerAddressGenerate,onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(el,{open:"walletAddressesAdd"===n,params:o.walletAddressesAdd,onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(I,{open:"walletRemove"===n,params:o.walletRemove,onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(U,{open:"walletUpdate"===n,params:o.walletUpdate,onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(eN,{open:"walletUnlock"===n,params:o.walletUnlock,onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(V,{open:"addressUpdate"===n,params:o.addressUpdate,onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(ec,{open:"addressRemove"===n,params:o.addressRemove,onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(a.D_D,{open:"connectPeer"===n,params:o.connectPeer,connect:e=>l.post({payload:e}),onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(eC,{open:"walletSendSeed"===n,params:o.walletSendSeed,onOpenChange:t=>t?e(n,o.walletSendSeed):r()}),(0,i.jsx)(eR,{open:"walletSendLedger"===n,params:o.walletSendLedger,onOpenChange:t=>t?e(n,o.walletSendLedger):r()}),(0,i.jsx)(a.QHy,{open:"confirm"===n,params:o.confirm,onOpenChange:t=>t?e(n,o.confirm):r()})]})}},51660:function(e,t,r){"use strict";r.d(t,{Yl:function(){return g},hI:function(){return v}});var n=r(52322),i=r(93687),o=r(41345),a=r(2784);let s=["transactionId","type","height","timestamp","amount","fee"],l=[];var u=r(21551);let c=[{id:"transactionId",label:"transaction ID",category:"general",render:e=>{let{data:{transactionId:t},context:r}=e;return t?(0,n.jsx)(i.XxW,{size:"12",value:t,label:"transaction ID",type:"transaction",siascanUrl:r.siascanUrl}):null}},{id:"type",label:"type",category:"general",fixed:!0,render:e=>{let{data:{type:t}}=e;return(0,n.jsx)(i.xvT,{weight:"medium",ellipsis:!0,children:t})}},{id:"height",label:"height",category:"general",render:e=>{let{data:{height:t,pending:r}}=e;return r?(0,n.jsx)(i.xvT,{size:"12",ellipsis:!0,children:(0,n.jsx)(i.xgg,{})}):t?(0,n.jsx)(i.xvT,{size:"12",ellipsis:!0,children:t.toLocaleString()}):null}},{id:"timestamp",label:"timestamp",category:"general",render:e=>{let{data:{timestamp:t,pending:r}}=e;return r?(0,n.jsx)(i.xvT,{size:"12",ellipsis:!0,children:(0,n.jsx)(i.xgg,{})}):(0,n.jsx)(i.xvT,{size:"12",ellipsis:!0,children:(0,u.rN)(t,{timeStyle:"short"})})}},{id:"amount",label:"amount",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{amountSc:t,amountSf:r}}=e;return t?(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[!t.isZero()&&(0,n.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t}),!!r&&(0,n.jsx)(i.Sby,{size:"12",value:r})]}):null}},{id:"fee",label:"fee",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{fee:t}}=e;return t?(0,n.jsx)(i.ho9,{displayBoth:!0,size:"12",variant:"value",value:t}):null}},{id:"contractId",label:"contract ID",category:"general",render:e=>{let{data:{contractId:t},context:r}=e;return t?(0,n.jsx)(i.XxW,{size:"12",value:t,label:"contract ID",siascanUrl:r.siascanUrl}):null}}];var d=r(5632),f=r(6391),h=r.n(f),p=r(90089);let m=(0,a.createContext)({}),v=()=>(0,a.useContext)(m);function g(e){let{children:t}=e,r=function(){let e=(0,d.useRouter)(),t=e.query.id,r=Number(e.query.limit||100),n=Number(e.query.offset||0),{filters:u,setFilter:f,removeFilter:m,removeLastFilter:v,resetFilters:g}=(0,i.Uu5)(),y=(0,o.jy)({disabled:!t,params:{id:t}}),b=(0,o.sG)({disabled:!t,params:{limit:r,offset:n,id:t}}),x=(0,o.He)(),w=(0,a.useCallback)(async()=>{x.post({params:{id:t},payload:0})},[x,t]);(0,a.useEffect)(()=>{t&&w()},[t]);let E=(0,a.useMemo)(()=>{if(!b.data||!y.data)return null;let e=y.data.map(e=>({id:e.id,transactionId:e.id,timestamp:0,pending:!0,type:e.type,amount:new(h())(e.received).minus(e.sent)})),t=b.data.map((e,t)=>{let r=new(h())(0),n=0;if("transaction"===e.type){var i,o,a,s,l,u,c,d;let t=(null===(o=e.val)||void 0===o?void 0:null===(i=o.siacoinInputs)||void 0===i?void 0:i.reduce((t,r)=>e.relevant.includes(r.siacoinOutput.address)?t.plus(r.siacoinOutput.value):t,new(h())(0)))||new(h())(0),f=(null===(s=e.val)||void 0===s?void 0:null===(a=s.siacoinOutputs)||void 0===a?void 0:a.reduce((t,r)=>e.relevant.includes(r.siacoinOutput.address)?t.plus(r.siacoinOutput.value):t,new(h())(0)))||new(h())(0);r=f.minus(t);let p=(null===(u=e.val)||void 0===u?void 0:null===(l=u.siafundInputs)||void 0===l?void 0:l.reduce((t,r)=>e.relevant.includes(r.siafundElement.siafundOutput.address)?t+r.siafundElement.siafundOutput.value:t,0))||0,m=(null===(d=e.val)||void 0===d?void 0:null===(c=d.siafundOutputs)||void 0===c?void 0:c.reduce((t,r)=>e.relevant.includes(r.siafundOutput.address)?t+r.siafundOutput.value:t,0))||0;n=m-p}"miner payout"===e.type&&(r=new(h())(e.val.siacoinOutput.siacoinOutput.value));let f=String(t),p={id:f,type:e.type,timestamp:new Date(e.timestamp).getTime(),height:e.index.height,pending:!1,amountSc:r,amountSf:n};return"fee"in e.val&&(p.fee=new(h())(e.val.fee)),"fileContract"in e.val&&(p.contractId=e.val.fileContract.id),"id"in e.val&&(p.id+=e.val.id,p.transactionId=e.val.id),p});return[...e.reverse(),...t]},[b.data,y.data]),{configurableColumns:j,enabledColumns:S,sortableColumns:C,toggleColumnVisibility:k,setColumnsVisible:A,setColumnsHidden:O,toggleSort:T,setSortDirection:_,setSortField:M,sortField:R,sortDirection:N,resetDefaultColumnVisibility:P}=(0,i.oy6)("walletd/v0/events",{columns:c,columnsDefaultVisible:s,sortOptions:l,defaultSortField:"id"}),L=(0,a.useMemo)(()=>c.filter(e=>e.fixed||S.includes(e.id)),[S]),D=b.isValidating||y.isValidating,I=b.error||y.error,F=(0,i.c2j)(E,D,I,u),V=(0,p.B)(),B=(0,a.useMemo)(()=>({siascanUrl:V}),[V]);return{dataState:F,error:b.error,pageCount:(null==E?void 0:E.length)||0,columns:L,dataset:E,cellContext:B,configurableColumns:j,enabledColumns:S,sortableColumns:C,toggleColumnVisibility:k,setColumnsVisible:A,setColumnsHidden:O,toggleSort:T,setSortDirection:_,setSortField:M,sortField:R,sortDirection:N,resetDefaultColumnVisibility:P,filters:u,setFilter:f,removeFilter:m,removeLastFilter:v,resetFilters:g,offset:n,limit:r}}();return(0,n.jsx)(m.Provider,{value:r,children:t})}},39094:function(e,t,r){"use strict";r.d(t,{c:function(){return c},d:function(){return d}});var n=r(52322),i=r(73866),o=r(27748),a=r(35415),s=r.n(a),l=r(2784);let u=(0,l.createContext)({}),c=()=>(0,l.useContext)(u);function d(e){let{children:t}=e,r=function(){let[e,t]=(0,l.useState)(!1),[r,n]=(0,l.useState)(),[a,u]=(0,l.useState)(),c=(0,l.useCallback)(()=>{if(r){try{r.sia.close(),u(void 0)}catch(e){console.log(e)}n(void 0)}},[r]),d=(0,l.useCallback)(async e=>{let r=null;t(!0);try{switch(e){case"HID":(r=await o.Z.openConnected())||(r=await o.Z.create());break;case"Bluetooth":r=await i.Z.create();break;default:throw Error("Unsupported transport method: ".concat(e))}if(r){u(void 0);let i=new(s())(r);n({type:e,sia:i,transport:r}),t(!1)}}catch(e){u(e),t(!1)}},[]),f=(0,l.useCallback)(async()=>{if(!r){u(Error("No device connected"));return}t(!0);try{let e=await r.sia.verifyPublicKey(0);return u(void 0),n(t=>({...t,publicKey0:e.publicKey,address0:e.address})),t(!1),e}catch(e){t(!1),u(e)}},[r]);return(0,l.useEffect)(()=>{if(!(null==r?void 0:r.transport))return;let e=setInterval(async()=>{(null==r?void 0:r.transport._disconnectEmitted)&&n(void 0)},2e3);return()=>clearInterval(e)},[null==r?void 0:r.transport]),{connect:d,verify:f,disconnect:c,device:r,error:a,setError:u,waitingForUser:e}}();return(0,n.jsx)(u.Provider,{value:r,children:t})}},6110:function(e,t,r){"use strict";r.d(t,{k:function(){return S},r:function(){return j}});var n=r(52322),i=r(93687),o=r(41345),a=r(2784),s=r(81336),l=r(20876),u=r(21551),c=r(8822),d=r(22038),f=r(6391),h=r.n(f),p=r(18250);let m=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:t}=e;return(0,n.jsx)(p.g,{trigger:(0,n.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,n.jsx)(l.iG7,{})}),contentProps:{align:"start"},wallet:t})}},{id:"details",label:"name",category:"general",fixed:!0,render:e=>{let{data:{id:t,name:r,description:o}}=e;return(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)(i.xvT,{weight:"bold",ellipsis:!0,children:r||t}),o&&(0,n.jsx)(i.ua7,{content:(0,n.jsx)("pre",{children:(0,n.jsx)(i.nvN,{size:"12",className:"w-full whitespace-pre-wrap",children:o})}),children:(0,n.jsx)(i.nvN,{size:"12",children:o.split("\n")[0]})})]})}},{id:"balance",label:"balance",category:"general",contentClassName:"justify-end",render:function(e){let{data:{id:t}}=e,r=(0,o.tM)({params:{id:t}});return r.data?(0,n.jsxs)("div",{className:"flex flex-col gap-2 items-end",children:[(0,n.jsx)(i.ho9,{displayBoth:!0,size:"12",variant:"value",value:new(h())(r.data.siacoins)}),!!r.data.siafunds&&(0,n.jsx)(i.Sby,{size:"12",variant:"value",value:r.data.siafunds})]}):null}},{id:"type",label:"type",category:"general",render:e=>{var t,r;let{data:{type:o}}=e;return(0,n.jsx)(i.ua7,{content:null===(t=d._[o])||void 0===t?void 0:t.title,children:(0,n.jsxs)(i.Cts,{interactive:!1,className:"flex gap-0.5 items-center",children:[(0,n.jsx)(i.xvT,{color:"subtle",className:"scale-75 relative top-px",children:null===(r=d._[o])||void 0===r?void 0:r.icon}),o]})})}},{id:"status",label:"status",category:"general",render:e=>{let{data:{type:t,status:r,activityAt:o,unlock:a,lock:s},context:{walletAutoLockEnabled:u,walletAutoLockTimeout:d}}=e;if("seed"===t){let e=new Date().getTime()-o,t=Math.max(d-e,0),f=(0,c.l)(t),h=u?"The wallet is currently unlocked. The wallet will stay unlocked until it is inactive for ".concat(f.amount.toFixed(0)," more ").concat(f.units,", manually locked, or the app is closed."):"The wallet is currently unlocked. The wallet will stay unlocked until it is manually locked or the app is closed.";return(0,n.jsx)(i.zxk,{tip:"unlocked"===r?h:"The wallet is currently locked.",color:"unlocked"===r?"contrast":"verySubtle",variant:"ghost",onClick:e=>{e.stopPropagation(),"unlocked"===r?s():a()},children:"unlocked"===r?(0,n.jsx)(l.VmF,{}):(0,n.jsx)(l.Lur,{})})}return null}},{id:"createdAt",label:"created on",category:"general",render:e=>{let{data:{createdAt:t}}=e;return t?(0,n.jsx)(i.xvT,{size:"12",children:(0,u.rN)(t,{dateStyle:"medium"})}):null}}];var v=r(5632),g=r(71930),y=r(27429),b=r(92762),x=r(80023),w=r(95753);let E=(0,a.createContext)({}),j=()=>(0,a.useContext)(E);function S(e){let{children:t}=e,r=function(){let e=(0,o.rB)(),t=(0,v.useRouter)(),{openDialog:r}=(0,x.Rh)(),{setOnLockCallback:n}=(0,w.Hv)(),{seedCache:l,walletActivityAt:u,saveWalletSeed:c,lockAllWallets:d,walletAutoLockTimeout:f,setWalletAutoLockTimeout:h,setWalletAutoLockEnabled:p,walletAutoLockEnabled:E}=function(){let[e,t]=(0,b.Z)("v0/wallets/walletAutoLockEnabled",{defaultValue:!0}),[r,n]=(0,b.Z)("v0/wallets/walletAutoLockTimeout",{defaultValue:(0,i.sWj)(5)}),[o,s]=(0,a.useState)({}),[l,u]=(0,a.useState)({}),c=(0,a.useMemo)(()=>Object.keys(l).length,[l]),d=(0,a.useCallback)(e=>{s(t=>({...t,[e]:new Date().getTime()}))},[s]),f=(0,a.useCallback)((e,t)=>{u(r=>({...r,[e]:t})),t&&d(e)},[u,d]),h=(0,a.useCallback)(()=>{if(!e)return;let t=new Date().getTime(),n=t-r;for(let[e,t]of Object.entries(l))if(t){let t=o[e]||0;t{u({})},[u]),m=(0,v.useRouter)(),x=(0,a.useCallback)(()=>{if(m.pathname.startsWith(g._.wallet.base)){let e=m.query.id;d(e)}},[m,d]);return(0,y.Yp)({onAction:x,throttle:5e3,eventsThrottle:5e3}),(0,a.useEffect)(()=>{if(!e)return;let t=setInterval(()=>{h()},5e3);return()=>{clearInterval(t)}},[e]),{walletActivityAt:o,updateWalletActivityAt:d,seedCache:l,saveWalletSeed:f,lockAllWallets:p,seedCount:c,walletAutoLockTimeout:r,setWalletAutoLockTimeout:n,setWalletAutoLockEnabled:t,walletAutoLockEnabled:e}}();(0,a.useEffect)(()=>{n("wallets",()=>{d()})},[]);let j=(0,a.useMemo)(()=>{if(!e.data)return null;let n=Object.entries(e.data||{}).map(e=>{let[n,i]=e;return{id:n,name:i.name,seed:l[n],status:l[n]?"unlocked":"locked",activityAt:u[n],seedHash:i.seedHash,description:i.description,createdAt:i.createdAt||0,type:i.type,unlock:()=>r("walletUnlock",{walletId:n}),lock:()=>c(n,void 0),onClick:()=>t.push({pathname:g._.wallet.view,query:{id:n}})}});return n},[t,e.data,l,u,r,c]),S=null==j?void 0:j.find(e=>e.id===t.query.id),{filters:C,setFilter:k,removeFilter:A,removeLastFilter:O,resetFilters:T}=(0,i.Wdu)(),{configurableColumns:_,enabledColumns:M,sortableColumns:R,toggleColumnVisibility:N,setColumnsVisible:P,setColumnsHidden:L,toggleSort:D,setSortDirection:I,setSortField:F,sortField:V,sortDirection:B,resetDefaultColumnVisibility:U}=(0,i.oy6)("walletd/v0/wallets",{columns:m,columnsDefaultVisible:s.gd,sortOptions:s.Fo,defaultSortField:s.nw}),z=(0,i._4u)({dataset:j,filters:C,sortField:V,sortDirection:B}),H=(0,a.useMemo)(()=>m.filter(e=>e.fixed||M.includes(e.id)),[M]),$=(0,i.c2j)(j,e.isValidating,e.error,C),W=(0,a.useMemo)(()=>({walletAutoLockTimeout:f,walletAutoLockEnabled:E}),[E,f]);return{dataState:$,error:e.error,datasetCount:(null==z?void 0:z.length)||0,unlockedCount:(null==j?void 0:j.filter(e=>e.seed).length)||0,columns:H,dataset:z,context:W,wallet:S,configurableColumns:_,enabledColumns:M,sortableColumns:R,toggleColumnVisibility:N,setColumnsVisible:P,setColumnsHidden:L,toggleSort:D,setSortDirection:I,setSortField:F,sortField:V,filters:C,setFilter:k,removeFilter:A,removeLastFilter:O,resetFilters:T,sortDirection:B,resetDefaultColumnVisibility:U,saveWalletSeed:c,lockAllWallets:d,walletAutoLockTimeout:f,setWalletAutoLockTimeout:h,setWalletAutoLockEnabled:p,walletAutoLockEnabled:E}}();return(0,n.jsx)(E.Provider,{value:r,children:t})}},81336:function(e,t,r){"use strict";r.d(t,{Fo:function(){return o},gd:function(){return n},nw:function(){return i}});let n=["actions","details","balance","type","status","createdAt"],i="name",o=[{id:"name",label:"name",category:"general"},{id:"type",label:"type",category:"general"},{id:"status",label:"status",category:"general"},{id:"createdAt",label:"created on",category:"general"}]},90089:function(e,t,r){"use strict";r.d(t,{B:function(){return o}});var n=r(93687),i=r(41345);function o(){var e;let t=(0,i.gM)();return(null===(e=t.data)||void 0===e?void 0:e.name)==="zen"?n.nNd.explore.testnetZen:n.nNd.explore.mainnet}},8822:function(e,t,r){"use strict";function n(e){return!e||e<1e3?{amount:0,units:"seconds"}:(e/=1e3)<60?{amount:Math.floor(100*e)/100,units:"seconds"}:{amount:Math.floor(e/60*100)/100,units:"minutes"}}r.d(t,{l:function(){return n}})},74236:function(e,t,r){"use strict";function n(){return r.g.walletWasm}async function i(){WebAssembly.instantiateStreaming||(WebAssembly.instantiateStreaming=async(e,t)=>{let r=await (await e).arrayBuffer();return await WebAssembly.instantiate(r,t)});let e=function(){let e=()=>{let e=Error("not implemented");return e.code="ENOSYS",e};if(!globalThis.fs){let t="";globalThis.fs={constants:{O_WRONLY:-1,O_RDWR:-1,O_CREAT:-1,O_TRUNC:-1,O_APPEND:-1,O_EXCL:-1},writeSync(e,n){t+=r.decode(n);let i=t.lastIndexOf("\n");return -1!=i&&(t=t.substring(i+1)),n.length},write(t,r,n,i,o,a){if(0!==n||i!==r.length||null!==o){a(e());return}let s=this.writeSync(t,r);a(null,s)},chmod(t,r,n){n(e())},chown(t,r,n,i){i(e())},close(t,r){r(e())},fchmod(t,r,n){n(e())},fchown(t,r,n,i){i(e())},fstat(t,r){r(e())},fsync(e,t){t(null)},ftruncate(t,r,n){n(e())},lchown(t,r,n,i){i(e())},link(t,r,n){n(e())},lstat(t,r){r(e())},mkdir(t,r,n){n(e())},open(t,r,n,i){i(e())},read(t,r,n,i,o,a){a(e())},readdir(t,r){r(e())},readlink(t,r){r(e())},rename(t,r,n){n(e())},rmdir(t,r){r(e())},stat(t,r){r(e())},symlink(t,r,n){n(e())},truncate(t,r,n){n(e())},unlink(t,r){r(e())},utimes(t,r,n,i){i(e())}}}if(globalThis.process||(globalThis.process={getuid:()=>-1,getgid:()=>-1,geteuid:()=>-1,getegid:()=>-1,getgroups(){throw e()},pid:-1,ppid:-1,umask(){throw e()},cwd(){throw e()},chdir(){throw e()}}),!globalThis.crypto)throw Error("globalThis.crypto is not available, polyfill required (crypto.getRandomValues only)");if(!globalThis.performance)throw Error("globalThis.performance is not available, polyfill required (performance.now only)");if(!globalThis.TextEncoder)throw Error("globalThis.TextEncoder is not available, polyfill required");if(!globalThis.TextDecoder)throw Error("globalThis.TextDecoder is not available, polyfill required");let t=new TextEncoder("utf-8"),r=new TextDecoder("utf-8");return class{async run(e){if(!(e instanceof WebAssembly.Instance))throw Error("Go.run: WebAssembly.Instance expected");this._inst=e,this.mem=new DataView(this._inst.exports.mem.buffer),this._values=[NaN,0,null,!0,!1,globalThis,this],this._goRefCounts=Array(this._values.length).fill(1/0),this._ids=new Map([[0,1],[null,2],[!0,3],[!1,4],[globalThis,5],[this,6]]),this._idPool=[],this.exited=!1;let r=4096,n=e=>{let n=r,i=t.encode(e+"\x00");return new Uint8Array(this.mem.buffer,r,i.length).set(i),(r+=i.length)%8!=0&&(r+=8-r%8),n},i=this.argv.length,o=[];this.argv.forEach(e=>{o.push(n(e))}),o.push(0);let a=Object.keys(this.env).sort();a.forEach(e=>{o.push(n("".concat(e,"=").concat(this.env[e])))}),o.push(0);let s=r;if(o.forEach(e=>{this.mem.setUint32(r,e,!0),this.mem.setUint32(r+4,0,!0),r+=8}),r>=12288)throw Error("total length of command line and environment variables exceeds limit");this._inst.exports.run(i,s),this.exited&&this._resolveExitPromise(),await this._exitPromise}_resume(){if(this.exited)throw Error("Go program has already exited");this._inst.exports.resume(),this.exited&&this._resolveExitPromise()}_makeFuncWrapper(e){let t=this;return function(){let r={id:e,this:this,args:arguments};return t._pendingEvent=r,t._resume(),r.result}}constructor(){this.argv=["js"],this.env={},this.exit=e=>{0!==e&&console.warn("exit code:",e)},this._exitPromise=new Promise(e=>{this._resolveExitPromise=e}),this._pendingEvent=null,this._scheduledTimeouts=new Map,this._nextCallbackTimeoutID=1;let e=(e,t)=>{this.mem.setUint32(e+0,t,!0),this.mem.setUint32(e+4,Math.floor(t/4294967296),!0)},n=e=>{let t=this.mem.getUint32(e+0,!0),r=this.mem.getInt32(e+4,!0);return t+4294967296*r},i=e=>{let t=this.mem.getFloat64(e,!0);if(0===t)return;if(!isNaN(t))return t;let r=this.mem.getUint32(e,!0);return this._values[r]},o=(e,t)=>{if("number"==typeof t&&0!==t){if(isNaN(t)){this.mem.setUint32(e+4,2146959360,!0),this.mem.setUint32(e,0,!0);return}this.mem.setFloat64(e,t,!0);return}if(void 0===t){this.mem.setFloat64(e,0,!0);return}let r=this._ids.get(t);void 0===r&&(void 0===(r=this._idPool.pop())&&(r=this._values.length),this._values[r]=t,this._goRefCounts[r]=0,this._ids.set(t,r)),this._goRefCounts[r]++;let n=0;switch(typeof t){case"object":null!==t&&(n=1);break;case"string":n=2;break;case"symbol":n=3;break;case"function":n=4}this.mem.setUint32(e+4,2146959360|n,!0),this.mem.setUint32(e,r,!0)},a=e=>{let t=n(e+0),r=n(e+8);return new Uint8Array(this._inst.exports.mem.buffer,t,r)},s=e=>{let t=n(e+0),r=n(e+8),o=Array(r);for(let e=0;e{let t=n(e+0),i=n(e+8);return r.decode(new DataView(this._inst.exports.mem.buffer,t,i))},u=Date.now()-performance.now();this.importObject={go:{"runtime.wasmExit":e=>{e>>>=0;let t=this.mem.getInt32(e+8,!0);this.exited=!0,delete this._inst,delete this._values,delete this._goRefCounts,delete this._ids,delete this._idPool,this.exit(t)},"runtime.wasmWrite":e=>{e>>>=0;let t=n(e+8),r=n(e+16),i=this.mem.getInt32(e+24,!0);fs.writeSync(t,new Uint8Array(this._inst.exports.mem.buffer,r,i))},"runtime.resetMemoryDataView":e=>{this.mem=new DataView(this._inst.exports.mem.buffer)},"runtime.nanotime1":t=>{e((t>>>=0)+8,(u+performance.now())*1e6)},"runtime.walltime":t=>{t>>>=0;let r=new Date().getTime();e(t+8,r/1e3),this.mem.setInt32(t+16,r%1e3*1e6,!0)},"runtime.scheduleTimeoutEvent":e=>{e>>>=0;let t=this._nextCallbackTimeoutID;this._nextCallbackTimeoutID++,this._scheduledTimeouts.set(t,setTimeout(()=>{for(this._resume();this._scheduledTimeouts.has(t);)console.warn("scheduleTimeoutEvent: missed timeout event"),this._resume()},n(e+8)+1)),this.mem.setInt32(e+16,t,!0)},"runtime.clearTimeoutEvent":e=>{e>>>=0;let t=this.mem.getInt32(e+8,!0);clearTimeout(this._scheduledTimeouts.get(t)),this._scheduledTimeouts.delete(t)},"runtime.getRandomData":e=>{e>>>=0,crypto.getRandomValues(a(e+8))},"syscall/js.finalizeRef":e=>{e>>>=0;let t=this.mem.getUint32(e+8,!0);if(this._goRefCounts[t]--,0===this._goRefCounts[t]){let e=this._values[t];this._values[t]=null,this._ids.delete(e),this._idPool.push(t)}},"syscall/js.stringVal":e=>{o((e>>>=0)+24,l(e+8))},"syscall/js.valueGet":e=>{e>>>=0;let t=Reflect.get(i(e+8),l(e+16));o((e=this._inst.exports.getsp()>>>0)+32,t)},"syscall/js.valueSet":e=>{e>>>=0,Reflect.set(i(e+8),l(e+16),i(e+32))},"syscall/js.valueDelete":e=>{e>>>=0,Reflect.deleteProperty(i(e+8),l(e+16))},"syscall/js.valueIndex":e=>{o((e>>>=0)+24,Reflect.get(i(e+8),n(e+16)))},"syscall/js.valueSetIndex":e=>{e>>>=0,Reflect.set(i(e+8),n(e+16),i(e+24))},"syscall/js.valueCall":e=>{e>>>=0;try{let t=i(e+8),r=Reflect.get(t,l(e+16)),n=s(e+32),a=Reflect.apply(r,t,n);e=this._inst.exports.getsp()>>>0,o(e+56,a),this.mem.setUint8(e+64,1)}catch(t){o((e=this._inst.exports.getsp()>>>0)+56,t),this.mem.setUint8(e+64,0)}},"syscall/js.valueInvoke":e=>{e>>>=0;try{let t=i(e+8),r=s(e+16),n=Reflect.apply(t,void 0,r);e=this._inst.exports.getsp()>>>0,o(e+40,n),this.mem.setUint8(e+48,1)}catch(t){o((e=this._inst.exports.getsp()>>>0)+40,t),this.mem.setUint8(e+48,0)}},"syscall/js.valueNew":e=>{e>>>=0;try{let t=i(e+8),r=s(e+16),n=Reflect.construct(t,r);e=this._inst.exports.getsp()>>>0,o(e+40,n),this.mem.setUint8(e+48,1)}catch(t){o((e=this._inst.exports.getsp()>>>0)+40,t),this.mem.setUint8(e+48,0)}},"syscall/js.valueLength":t=>{e((t>>>=0)+16,parseInt(i(t+8).length))},"syscall/js.valuePrepareString":r=>{r>>>=0;let n=t.encode(String(i(r+8)));o(r+16,n),e(r+24,n.length)},"syscall/js.valueLoadString":e=>{e>>>=0;let t=i(e+8);a(e+16).set(t)},"syscall/js.valueInstanceOf":e=>{e>>>=0,this.mem.setUint8(e+24,i(e+8) instanceof i(e+16)?1:0)},"syscall/js.copyBytesToGo":t=>{t>>>=0;let r=a(t+8),n=i(t+32);if(!(n instanceof Uint8Array||n instanceof Uint8ClampedArray)){this.mem.setUint8(t+48,0);return}let o=n.subarray(0,r.length);r.set(o),e(t+40,o.length),this.mem.setUint8(t+48,1)},"syscall/js.copyBytesToJS":t=>{t>>>=0;let r=i(t+8),n=a(t+16);if(!(r instanceof Uint8Array||r instanceof Uint8ClampedArray)){this.mem.setUint8(t+48,0);return}let o=n.subarray(0,r.length);r.set(o),e(t+40,o.length),this.mem.setUint8(t+48,1)},debug:e=>{console.log(e)}}}}}}(),t=new e,r=fetch("/walletd.wasm");try{let e=await WebAssembly.instantiateStreaming(r,t.importObject);return t.run(e.instance),{}}catch(e){return console.log(e),{error:e.message}}}r.d(t,{x:function(){return n},J:function(){return i}})},15610:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return x}});var n=r(52322);r(37832);var i=r(93687),o=r(80023),a=r(2784),s=r(6110),l=r(45283),u=r(51660),c=r(39094);function d(e){let{children:t}=e;return(0,n.jsx)(o.Tu,{children:(0,n.jsx)(c.d,{children:(0,n.jsx)(s.k,{children:(0,n.jsx)(l.OZ,{children:(0,n.jsxs)(u.Yl,{children:[(0,n.jsx)(o.xQ,{}),t]})})})})})}var f=r(74236),h=r(71930),p=r(1240),m=r.n(p),v=r(49854),g=r.n(v),y=r(82851);let b=(0,y.cx)(m().variable,g().variable);function x(e){let{Component:t,pageProps:r}=e;return(0,a.useEffect)(()=>{let e=async()=>{let{error:e}=await (0,f.J)();e&&(0,i.OHV)("Error initializing WASM. This browser is not supported.",{duration:6e4})};e()},[]),(0,n.jsx)(i.PD$,{className:b,fallback:r.fallback,passwordProtectRequestHooks:!0,lockRoutes:h._,children:(0,n.jsx)(d,{children:(0,n.jsx)(t,{...r})})})}},93687:function(e,t,r){"use strict";let n,i,o,a,s;r.d(t,{bZj:function(){return lh},tU3:function(){return Sx},zXq:function(){return SN},juT:function(){return Sf},Cts:function(){return lk},WVB:function(){return dZ},zxk:function(){return lc},EKh:function(){return lO},QHy:function(){return O4},HfT:function(){return O6},ncR:function(){return jQ},VqE:function(){return cb},h_2:function(){return dQ},Xiv:function(){return d0},Juw:function(){return d1},KpP:function(){return d2},cp7:function(){return j1},Qyk:function(){return j0},jIp:function(){return O9},WyV:function(){return Tr},qGu:function(){return O7},QBj:function(){return Tt},yEL:function(){return ST},Bau:function(){return Te},ZqQ:function(){return j3},X6q:function(){return d8},Yqd:function(){return hx},__J:function(){return fa},rUS:function(){return fc},Qjf:function(){return fd},xgg:function(){return wR},kFS:function(){return dY},FzK:function(){return O2},Clw:function(){return dG},PD$:function(){return Ts},Wxm:function(){return hS},wFK:function(){return Si},s_4:function(){return re},nvN:function(){return t7},u5Q:function(){return OQ},j4H:function(){return hw},J2e:function(){return fL},tIK:function(){return O_},PhF:function(){return hj},Wh3:function(){return pA},Z0O:function(){return dz},DLL:function(){return OJ},KJW:function(){return Sv},rsf:function(){return hV},D_D:function(){return OH},iA_:function(){return Sr},t6k:function(){return O8},xvT:function(){return t8},ua7:function(){return ll},XxW:function(){return jC},YKL:function(){return jO},ho9:function(){return jM},Sby:function(){return jA},hKn:function(){return OW},vQq:function(){return jy},ytg:function(){return OZ},sWj:function(){return OG},I13:function(){return jx},OHV:function(){return jm},OPV:function(){return jp},$Gg:function(){return jb},_4u:function(){return Tp},Wdu:function(){return Th},c2j:function(){return Sw},WsO:function(){return SO},Uu5:function(){return Tm},oy6:function(){return Tf},nNd:function(){return Oq}});var l,u,c,d,f,h,p,m,v,g,y,b,x=r(52322),w=r(2784),E=r.t(w,2);function j(){return(j=Object.assign?Object.assign.bind():function(e){for(var t=1;tn,Object.values(n));return(0,w.createElement)(r.Provider,{value:i},t)}return n.displayName=e+"Provider",[n,function(n){let i=(0,w.useContext)(r);if(i)return i;if(void 0!==t)return t;throw Error(`\`${n}\` must be used within \`${e}\``)}]}function C(e,t=[]){let r=[],n=()=>{let t=r.map(e=>(0,w.createContext)(e));return function(r){let n=(null==r?void 0:r[e])||t;return(0,w.useMemo)(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){let i=(0,w.createContext)(n),o=r.length;function a(t){let{scope:r,children:n,...a}=t,s=(null==r?void 0:r[e][o])||i,l=(0,w.useMemo)(()=>a,Object.values(a));return(0,w.createElement)(s.Provider,{value:l},n)}return r=[...r,n],a.displayName=t+"Provider",[a,function(r,a){let s=(null==a?void 0:a[e][o])||i,l=(0,w.useContext)(s);if(l)return l;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e),o=i[`__scope${n}`];return{...t,...o}},{});return(0,w.useMemo)(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(n,...t)]}function k(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function A(...e){return(0,w.useCallback)(k(...e),e)}let O=(0,w.forwardRef)((e,t)=>{let{children:r,...n}=e,i=w.Children.toArray(r),o=i.find(M);if(o){let e=o.props.children,r=i.map(t=>t!==o?t:w.Children.count(e)>1?w.Children.only(null):(0,w.isValidElement)(e)?e.props.children:null);return(0,w.createElement)(T,j({},n,{ref:t}),(0,w.isValidElement)(e)?(0,w.cloneElement)(e,void 0,r):null)}return(0,w.createElement)(T,j({},n,{ref:t}),r)});O.displayName="Slot";let T=(0,w.forwardRef)((e,t)=>{let{children:r,...n}=e;return(0,w.isValidElement)(r)?(0,w.cloneElement)(r,{...function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n],a=/^on[A-Z]/.test(n);a?r[n]=(...e)=>{null==o||o(...e),null==i||i(...e)}:"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props),ref:k(t,r.ref)}):w.Children.count(r)>1?w.Children.only(null):null});T.displayName="SlotClone";let _=({children:e})=>(0,w.createElement)(w.Fragment,null,e);function M(e){return(0,w.isValidElement)(e)&&e.type===_}function R(e){let t=e+"CollectionProvider",[r,n]=C(t),[i,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=w.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=o(a,r),s=A(t,i.collectionRef);return w.createElement(O,{ref:s},n)}),l=e+"CollectionItemSlot",u="data-radix-collection-item",c=w.forwardRef((e,t)=>{let{scope:r,children:n,...i}=e,a=w.useRef(null),s=A(t,a),c=o(l,r);return w.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),w.createElement(O,{[u]:"",ref:s},n)});return[{Provider:e=>{let{scope:t,children:r}=e,n=w.useRef(null),o=w.useRef(new Map).current;return w.createElement(i,{scope:t,itemMap:o,collectionRef:n},r)},Slot:s,ItemSlot:c},function(t){let r=o(e+"CollectionConsumer",t),n=w.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`)),n=Array.from(r.itemMap.values()),i=n.sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current));return i},[r.collectionRef,r.itemMap]);return n},n]}function N(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(null==e||e(n),!1===r||!n.defaultPrevented)return null==t?void 0:t(n)}}function P(e){let t=(0,w.useRef)(e);return(0,w.useEffect)(()=>{t.current=e}),(0,w.useMemo)(()=>(...e)=>{var r;return null===(r=t.current)||void 0===r?void 0:r.call(t,...e)},[])}function L({prop:e,defaultProp:t,onChange:r=()=>{}}){let[n,i]=function({defaultProp:e,onChange:t}){let r=(0,w.useState)(e),[n]=r,i=(0,w.useRef)(n),o=P(t);return(0,w.useEffect)(()=>{i.current!==n&&(o(n),i.current=n)},[n,i,o]),r}({defaultProp:t,onChange:r}),o=void 0!==e,a=o?e:n,s=P(r),l=(0,w.useCallback)(t=>{if(o){let r="function"==typeof t?t(e):t;r!==e&&s(r)}else i(t)},[o,e,i,s]);return[a,l]}var D=r(28316);let I=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=(0,w.forwardRef)((e,r)=>{let{asChild:n,...i}=e,o=n?O:t;return(0,w.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,w.createElement)(o,j({},i,{ref:r}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function F(e,t){e&&(0,D.flushSync)(()=>e.dispatchEvent(t))}let V=(null==globalThis?void 0:globalThis.document)?w.useLayoutEffect:()=>{},B=e=>{let{present:t,children:r}=e,n=function(e){var t;let[r,n]=(0,w.useState)(),i=(0,w.useRef)({}),o=(0,w.useRef)(e),a=(0,w.useRef)("none"),s=e?"mounted":"unmounted",[l,u]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,w.useReducer)((e,r)=>{let n=t[e][r];return null!=n?n:e},s));return(0,w.useEffect)(()=>{let e=U(i.current);a.current="mounted"===l?e:"none"},[l]),V(()=>{let t=i.current,r=o.current,n=r!==e;if(n){let n=a.current,i=U(t);e?u("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?u("UNMOUNT"):r&&n!==i?u("ANIMATION_OUT"):u("UNMOUNT"),o.current=e}},[e,u]),V(()=>{if(r){let e=e=>{let t=U(i.current),n=t.includes(e.animationName);e.target===r&&n&&(0,D.flushSync)(()=>u("ANIMATION_END"))},t=e=>{e.target===r&&(a.current=U(i.current))};return r.addEventListener("animationstart",t),r.addEventListener("animationcancel",e),r.addEventListener("animationend",e),()=>{r.removeEventListener("animationstart",t),r.removeEventListener("animationcancel",e),r.removeEventListener("animationend",e)}}u("ANIMATION_END")},[r,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,w.useCallback)(e=>{e&&(i.current=getComputedStyle(e)),n(e)},[])}}(t),i="function"==typeof r?r({present:n.isPresent}):w.Children.only(r),o=A(n.ref,i.ref),a="function"==typeof r;return a||n.isPresent?(0,w.cloneElement)(i,{ref:o}):null};function U(e){return(null==e?void 0:e.animationName)||"none"}B.displayName="Presence";let z=E["useId".toString()]||(()=>void 0),H=0;function $(e){let[t,r]=w.useState(z());return V(()=>{e||r(e=>null!=e?e:String(H++))},[e]),e||(t?`radix-${t}`:"")}let W="Collapsible",[q,G]=C(W),[Z,Y]=q(W),X=((e,t)=>{let{__scopeCollapsible:r,open:n,defaultOpen:i,disabled:o,onOpenChange:a,...s}=e,[l=!1,u]=L({prop:n,defaultProp:i,onChange:a});return(0,w.createElement)(Z,{scope:r,disabled:o,contentId:$(),open:l,onOpenToggle:(0,w.useCallback)(()=>u(e=>!e),[u])},(0,w.createElement)(I.div,j({"data-state":J(l),"data-disabled":o?"":void 0},s,{ref:t})))},"CollapsibleContent"),K=((e,t)=>{let{forceMount:r,...n}=e,i=Y(X,e.__scopeCollapsible);return(0,w.createElement)(B,{present:r||i.open},({present:e})=>(0,w.createElement)(K,j({},n,{ref:t,present:e})))},(0,w.forwardRef)((e,t)=>{let{__scopeCollapsible:r,present:n,children:i,...o}=e,a=Y(X,r),[s,l]=(0,w.useState)(n),u=(0,w.useRef)(null),c=A(t,u),d=(0,w.useRef)(0),f=d.current,h=(0,w.useRef)(0),p=h.current,m=a.open||s,v=(0,w.useRef)(m),g=(0,w.useRef)();return(0,w.useEffect)(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),V(()=>{let e=u.current;if(e){g.current=g.current||{transitionDuration:e.style.transitionDuration,animationDuration:e.style.animationDuration,animationFillMode:e.style.animationFillMode},e.style.transitionDuration="0s",e.style.animationDuration="0s",e.style.animationFillMode="none";let t=e.getBoundingClientRect();d.current=t.height,h.current=t.width,v.current||(e.style.transitionDuration=g.current.transitionDuration,e.style.animationDuration=g.current.animationDuration,e.style.animationFillMode=g.current.animationFillMode),l(n)}},[a.open,n]),(0,w.createElement)(I.div,j({"data-state":J(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!m},o,{ref:c,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":p?`${p}px`:void 0,...e.style}}),m&&i)}));function J(e){return e?"open":"closed"}let Q="Accordion",ee=["Home","End","ArrowDown","ArrowUp"],[et,er,en]=R(Q),[ei,eo]=C(Q,[en,G]),ea=(G(),w.forwardRef((e,t)=>{let{type:r,...n}=e;return w.createElement(et.Provider,{scope:e.__scopeAccordion},"multiple"===r?w.createElement(ef,j({},n,{ref:t})):w.createElement(ed,j({},n,{ref:t})))}));ea.propTypes={type(e){let t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):"multiple"===e.type&&"string"==typeof t?Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):"single"===e.type&&Array.isArray(t)?Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};let[es,el]=ei(Q),[eu,ec]=ei(Q,{collapsible:!1}),ed=w.forwardRef((e,t)=>{let{value:r,defaultValue:n,onValueChange:i=()=>{},collapsible:o=!1,...a}=e,[s,l]=L({prop:r,defaultProp:n,onChange:i});return w.createElement(es,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:l,onItemClose:w.useCallback(()=>o&&l(""),[o,l])},w.createElement(eu,{scope:e.__scopeAccordion,collapsible:o},w.createElement(em,j({},a,{ref:t}))))}),ef=w.forwardRef((e,t)=>{let{value:r,defaultValue:n,onValueChange:i=()=>{},...o}=e,[a=[],s]=L({prop:r,defaultProp:n,onChange:i}),l=w.useCallback(e=>s((t=[])=>[...t,e]),[s]),u=w.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return w.createElement(es,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:u},w.createElement(eu,{scope:e.__scopeAccordion,collapsible:!0},w.createElement(em,j({},o,{ref:t}))))}),[eh,ep]=ei(Q),em=w.forwardRef((e,t)=>{let{__scopeAccordion:r,disabled:n,...i}=e,o=w.useRef(null),a=A(o,t),s=er(r),l=N(e.onKeyDown,e=>{var t;if(!ee.includes(e.key))return;let r=e.target,n=s().filter(e=>{var t;return!(null!==(t=e.ref.current)&&void 0!==t&&t.disabled)}),i=n.findIndex(e=>e.ref.current===r),o=n.length;if(-1===i)return;e.preventDefault();let a=i;switch(e.key){case"Home":a=0;break;case"End":a=o-1;break;case"ArrowDown":a=i+1;break;case"ArrowUp":(a=i-1)<0&&(a=o-1)}let l=a%o;null===(t=n[l].ref.current)||void 0===t||t.focus()});return w.createElement(eh,{scope:r,disabled:n},w.createElement(et.Slot,{scope:r},w.createElement(I.div,j({},i,{ref:a,onKeyDown:n?void 0:l}))))}),[ev,eg]=ei("AccordionItem");var ey=r(82851);let eb="dismissableLayer.update",ex=(0,w.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ew=(0,w.forwardRef)((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=e,c=(0,w.useContext)(ex),[d,f]=(0,w.useState)(null),[,h]=(0,w.useState)({}),p=A(t,e=>f(e)),m=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(v),y=d?m.indexOf(d):-1,b=c.layersWithOutsidePointerEventsDisabled.size>0,x=y>=g,E=function(e){let t=P(e),r=(0,w.useRef)(!1),n=(0,w.useRef)(()=>{});return(0,w.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function i(){ej("dismissableLayer.pointerDownOutside",t,r,{discrete:!0})}"touch"===e.pointerType?(document.removeEventListener("click",n.current),n.current=i,document.addEventListener("click",n.current,{once:!0})):i()}r.current=!1},i=window.setTimeout(()=>{document.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),document.removeEventListener("pointerdown",e),document.removeEventListener("click",n.current)}},[t]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,r=[...c.branches].some(e=>e.contains(t));!x||r||(null==o||o(e),null==s||s(e),e.defaultPrevented||null==l||l())}),S=function(e){let t=P(e),r=(0,w.useRef)(!1);return(0,w.useEffect)(()=>{let e=e=>{e.target&&!r.current&&ej("dismissableLayer.focusOutside",t,{originalEvent:e},{discrete:!1})};return document.addEventListener("focusin",e),()=>document.removeEventListener("focusin",e)},[t]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target,r=[...c.branches].some(e=>e.contains(t));r||(null==a||a(e),null==s||s(e),e.defaultPrevented||null==l||l())});return!function(e){let t=P(e);(0,w.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t])}(e=>{let t=y===c.layers.size-1;t&&(null==i||i(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),(0,w.useEffect)(()=>{if(d)return r&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(n=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),eE(),()=>{r&&1===c.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=n)}},[d,r,c]),(0,w.useEffect)(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),eE())},[d,c]),(0,w.useEffect)(()=>{let e=()=>h({});return document.addEventListener(eb,e),()=>document.removeEventListener(eb,e)},[]),(0,w.createElement)(I.div,j({},u,{ref:p,style:{pointerEvents:b?x?"auto":"none":void 0,...e.style},onFocusCapture:N(e.onFocusCapture,S.onFocusCapture),onBlurCapture:N(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:N(e.onPointerDownCapture,E.onPointerDownCapture)}))});function eE(){let e=new CustomEvent(eb);document.dispatchEvent(e)}function ej(e,t,r,{discrete:n}){let i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?F(i,o):i.dispatchEvent(o)}function eS(e){return e.split("-")[0]}function eC(e){return e.split("-")[1]}function ek(e){return["top","bottom"].includes(eS(e))?"x":"y"}function eA(e){return"y"===e?"height":"width"}function eO(e,t,r){let n,{reference:i,floating:o}=e,a=i.x+i.width/2-o.width/2,s=i.y+i.height/2-o.height/2,l=ek(t),u=eA(l),c=i[u]/2-o[u]/2,d="x"===l;switch(eS(t)){case"top":n={x:a,y:i.y-o.height};break;case"bottom":n={x:a,y:i.y+i.height};break;case"right":n={x:i.x+i.width,y:s};break;case"left":n={x:i.x-o.width,y:s};break;default:n={x:i.x,y:i.y}}switch(eC(t)){case"start":n[l]-=c*(r&&d?-1:1);break;case"end":n[l]+=c*(r&&d?-1:1)}return n}let eT=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}=r,s=await (null==a.isRTL?void 0:a.isRTL(t)),l=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=eO(l,n,s),d=n,f={},h=0;for(let r=0;r({name:"arrow",options:e,async fn(t){let{element:r,padding:n=0}=null!=e?e:{},{x:i,y:o,placement:a,rects:s,platform:l}=t;if(null==r)return{};let u=e_(n),c={x:i,y:o},d=ek(a),f=eC(a),h=eA(d),p=await l.getDimensions(r),m="y"===d?"top":"left",v="y"===d?"bottom":"right",g=s.reference[h]+s.reference[d]-c[d]-s.floating[h],y=c[d]-s.reference[d],b=await (null==l.getOffsetParent?void 0:l.getOffsetParent(r)),x=b?"y"===d?b.clientHeight||0:b.clientWidth||0:0;0===x&&(x=s.floating[h]);let w=u[m],E=x-p[h]-u[v],j=x/2-p[h]/2+(g/2-y/2),S=eP(w,eN(j,E)),C=("start"===f?u[m]:u[v])>0&&j!==S&&s.reference[h]<=s.floating[h];return{[d]:c[d]-(C?jeD[e])}let eF={start:"end",end:"start"};function eV(e){return e.replace(/start|end/g,e=>eF[e])}let eB=["top","right","bottom","left"];eB.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);let eU=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n,i,o;let{placement:a,middlewareData:s,rects:l,initialPlacement:u,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",flipAlignment:v=!0,...g}=e,y=eS(a),b=p||(y!==u&&v?function(e){let t=eI(e);return[eV(e),t,eV(t)]}(u):[eI(u)]),x=[u,...b],w=await eR(t,g),E=[],j=(null==(r=s.flip)?void 0:r.overflows)||[];if(f&&E.push(w[y]),h){let{main:e,cross:t}=function(e,t,r){void 0===r&&(r=!1);let n=eC(e),i=ek(e),o=eA(i),a="x"===i?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=eI(a)),{main:a,cross:eI(a)}}(a,l,await (null==c.isRTL?void 0:c.isRTL(d.floating)));E.push(w[e],w[t])}if(j=[...j,{placement:a,overflows:E}],!E.every(e=>e<=0)){let e=(null!=(n=null==(i=s.flip)?void 0:i.index)?n:0)+1,t=x[e];if(t)return{data:{index:e,overflows:j},reset:{placement:t}};let r="bottom";switch(m){case"bestFit":{let e=null==(o=j.map(e=>[e,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0].placement;e&&(r=e);break}case"initialPlacement":r=u}if(a!==r)return{reset:{placement:r}}}return{}}}};function ez(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function eH(e){return eB.some(t=>e[t]>=0)}let e$=function(e){let{strategy:t="referenceHidden",...r}=void 0===e?{}:e;return{name:"hide",async fn(e){let{rects:n}=e;switch(t){case"referenceHidden":{let t=ez(await eR(e,{...r,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:eH(t)}}}case"escaped":{let t=ez(await eR(e,{...r,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:eH(t)}}}default:return{}}}}},eW=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){let{x:r,y:n}=t,i=await async function(e,t){let{placement:r,platform:n,elements:i}=e,o=await (null==n.isRTL?void 0:n.isRTL(i.floating)),a=eS(r),s=eC(r),l="x"===ek(r),u=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,d="function"==typeof t?t(e):t,{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}(t,e);return{x:r+i.x,y:n+i.y,data:i}}}};function eq(e){return"x"===e?"y":"x"}let eG=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=e,u={x:r,y:n},c=await eR(t,l),d=ek(eS(i)),f=eq(d),h=u[d],p=u[f];if(o){let e="y"===d?"bottom":"right";h=eP(h+c["y"===d?"top":"left"],eN(h,h-c[e]))}a&&(p=eP(p+c["y"===f?"top":"left"],eN(p,p-c["y"===f?"bottom":"right"])));let m=s.fn({...t,[d]:h,[f]:p});return{...m,data:{x:m.x-r,y:m.y-n}}}}},eZ=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:r,y:n,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=e,c={x:r,y:n},d=ek(i),f=eq(d),h=c[d],p=c[f],m="function"==typeof s?s({...o,placement:i}):s,v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let e="y"===d?"height":"width",t=o.reference[d]-o.floating[e]+v.mainAxis,r=o.reference[d]+o.reference[e]-v.mainAxis;hr&&(h=r)}if(u){var g,y,b,x;let e="y"===d?"width":"height",t=["top","left"].includes(eS(i)),r=o.reference[f]-o.floating[e]+(t&&null!=(g=null==(y=a.offset)?void 0:y[f])?g:0)+(t?0:v.crossAxis),n=o.reference[f]+o.reference[e]+(t?0:null!=(b=null==(x=a.offset)?void 0:x[f])?b:0)-(t?v.crossAxis:0);pn&&(p=n)}return{[d]:h,[f]:p}}}};function eY(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function eX(e){if(null==e)return window;if(!eY(e)){let t=e.ownerDocument;return t&&t.defaultView||window}return e}function eK(e){return eX(e).getComputedStyle(e)}function eJ(e){return eY(e)?"":e?(e.nodeName||"").toLowerCase():""}function eQ(){let e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function e0(e){return e instanceof eX(e).HTMLElement}function e1(e){return e instanceof eX(e).Element}function e2(e){return"undefined"!=typeof ShadowRoot&&(e instanceof eX(e).ShadowRoot||e instanceof ShadowRoot)}function e4(e){let{overflow:t,overflowX:r,overflowY:n}=eK(e);return/auto|scroll|overlay|hidden/.test(t+n+r)}function e3(e){let t=/firefox/i.test(eQ()),r=eK(e);return"none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||["transform","perspective"].includes(r.willChange)||t&&"filter"===r.willChange||t&&!!r.filter&&"none"!==r.filter}function e5(){return!/^((?!chrome|android).)*safari/i.test(eQ())}let e6=Math.min,e8=Math.max,e7=Math.round;function e9(e,t,r){var n,i,o,a;void 0===t&&(t=!1),void 0===r&&(r=!1);let s=e.getBoundingClientRect(),l=1,u=1;t&&e0(e)&&(l=e.offsetWidth>0&&e7(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&e7(s.height)/e.offsetHeight||1);let c=e1(e)?eX(e):window,d=!e5()&&r,f=(s.left+(d&&null!=(n=null==(i=c.visualViewport)?void 0:i.offsetLeft)?n:0))/l,h=(s.top+(d&&null!=(o=null==(a=c.visualViewport)?void 0:a.offsetTop)?o:0))/u,p=s.width/l,m=s.height/u;return{width:p,height:m,top:h,right:f+p,bottom:h+m,left:f,x:f,y:h}}function te(e){return((e instanceof eX(e).Node?e.ownerDocument:e.document)||window.document).documentElement}function tt(e){return e1(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function tr(e){return e9(te(e)).left+tt(e).scrollLeft}function tn(e){return"html"===eJ(e)?e:e.assignedSlot||e.parentNode||(e2(e)?e.host:null)||te(e)}function ti(e){return e0(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function to(e){let t=eX(e),r=ti(e);for(;r&&["table","td","th"].includes(eJ(r))&&"static"===getComputedStyle(r).position;)r=ti(r);return r&&("html"===eJ(r)||"body"===eJ(r)&&"static"===getComputedStyle(r).position&&!e3(r))?t:r||function(e){let t=tn(e);for(e2(t)&&(t=t.host);e0(t)&&!["html","body"].includes(eJ(t));){if(e3(t))return t;t=t.parentNode}return null}(e)||t}function ta(e){if(e0(e))return{width:e.offsetWidth,height:e.offsetHeight};let t=e9(e);return{width:t.width,height:t.height}}function ts(e,t){var r;void 0===t&&(t=[]);let n=function e(t){let r=tn(t);return["html","body","#document"].includes(eJ(r))?t.ownerDocument.body:e0(r)&&e4(r)?r:e(r)}(e),i=n===(null==(r=e.ownerDocument)?void 0:r.body),o=eX(n),a=i?[o].concat(o.visualViewport||[],e4(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(ts(a))}function tl(e,t,r){return"viewport"===t?eM(function(e,t){let r=eX(e),n=te(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=e5();(e||!e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,r)):e1(t)?function(e,t){let r=e9(e,!1,"fixed"===t),n=r.top+e.clientTop,i=r.left+e.clientLeft;return{top:n,left:i,x:i,y:n,right:i+e.clientWidth,bottom:n+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,r):eM(function(e){var t;let r=te(e),n=tt(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=e8(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=e8(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+tr(e),l=-n.scrollTop;return"rtl"===eK(i||r).direction&&(s+=e8(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(te(e)))}let tu={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,o=[..."clippingAncestors"===r?function(e){let t=ts(e),r=["absolute","fixed"].includes(eK(e).position)&&e0(e)?to(e):e;return e1(r)?t.filter(e=>e1(e)&&function(e,t){let r=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&e2(r)){let r=t;do{if(r&&e===r)return!0;r=r.parentNode||r.host}while(r)}return!1}(e,r)&&"body"!==eJ(e)):[]}(t):[].concat(r),n],a=o[0],s=o.reduce((e,r)=>{let n=tl(t,r,i);return e.top=e8(n.top,e.top),e.right=e6(n.right,e.right),e.bottom=e6(n.bottom,e.bottom),e.left=e8(n.left,e.left),e},tl(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:n}=e,i=e0(r),o=te(r);if(r===o)return t;let a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if((i||!i&&"fixed"!==n)&&(("body"!==eJ(r)||e4(o))&&(a=tt(r)),e0(r))){let e=e9(r,!0);s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:e1,getDimensions:ta,getOffsetParent:to,getDocumentElement:te,getElementRects:e=>{let{reference:t,floating:r,strategy:n}=e;return{reference:function(e,t,r){let n=e0(t),i=te(t),o=e9(e,n&&function(e){let t=e9(e);return e7(t.width)!==e.offsetWidth||e7(t.height)!==e.offsetHeight}(t),"fixed"===r),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(n||!n&&"fixed"!==r){if(("body"!==eJ(t)||e4(i))&&(a=tt(t)),e0(t)){let e=e9(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=tr(i))}return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}(t,to(r),n),floating:{...ta(r),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===eK(e).direction};function tc(e,t,r,n){void 0===n&&(n={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=!0,animationFrame:s=!1}=n,l=i&&!s,u=o&&!s,c=l||u?[...e1(e)?ts(e):[],...ts(t)]:[];c.forEach(e=>{l&&e.addEventListener("scroll",r,{passive:!0}),u&&e.addEventListener("resize",r)});let d,f=null;if(a){let n=!0;f=new ResizeObserver(()=>{n||r(),n=!1}),e1(e)&&!s&&f.observe(e),f.observe(t)}let h=s?e9(e):null;return s&&function t(){let n=e9(e);h&&(n.x!==h.x||n.y!==h.y||n.width!==h.width||n.height!==h.height)&&r(),h=n,d=requestAnimationFrame(t)}(),r(),()=>{var e;c.forEach(e=>{l&&e.removeEventListener("scroll",r),u&&e.removeEventListener("resize",r)}),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}let td=(e,t,r)=>eT(e,t,{platform:tu,...r});var tf="undefined"!=typeof document?w.useLayoutEffect:w.useEffect;function th(e){let{middleware:t,placement:r="bottom",strategy:n="absolute",whileElementsMounted:i}=void 0===e?{}:e,o=w.useRef(null),a=w.useRef(null),s=function(e){let t=w.useRef(e);return tf(()=>{t.current=e}),t}(i),l=w.useRef(null),[u,c]=w.useState({x:null,y:null,strategy:n,placement:r,middlewareData:{}}),[d,f]=w.useState(t);!function e(t,r){let n,i,o;if(t===r)return!0;if(typeof t!=typeof r)return!1;if("function"==typeof t&&t.toString()===r.toString())return!0;if(t&&r&&"object"==typeof t){if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){let n=o[i];if(("_owner"!==n||!t.$$typeof)&&!e(t[n],r[n]))return!1}return!0}return t!=t&&r!=r}(null==d?void 0:d.map(e=>{let{options:t}=e;return t}),null==t?void 0:t.map(e=>{let{options:t}=e;return t}))&&f(t);let h=w.useCallback(()=>{o.current&&a.current&&td(o.current,a.current,{middleware:d,placement:r,strategy:n}).then(e=>{p.current&&D.flushSync(()=>{c(e)})})},[d,r,n]);tf(()=>{p.current&&h()},[h]);let p=w.useRef(!1);tf(()=>(p.current=!0,()=>{p.current=!1}),[]);let m=w.useCallback(()=>{if("function"==typeof l.current&&(l.current(),l.current=null),o.current&&a.current){if(s.current){let e=s.current(o.current,a.current,h);l.current=e}else h()}},[h,s]),v=w.useCallback(e=>{o.current=e,m()},[m]),g=w.useCallback(e=>{a.current=e,m()},[m]),y=w.useMemo(()=>({reference:o,floating:a}),[]);return w.useMemo(()=>({...u,update:h,refs:y,reference:v,floating:g}),[u,h,y,v,g])}let tp=e=>{let{element:t,padding:r}=e;return{name:"arrow",options:e,fn(e){if(Object.prototype.hasOwnProperty.call(t,"current")){if(null!=t.current)return eL({element:t.current,padding:r}).fn(e)}else if(t)return eL({element:t,padding:r}).fn(e);return{}}}},tm=(0,w.forwardRef)((e,t)=>{let{children:r,width:n=10,height:i=5,...o}=e;return(0,w.createElement)(I.svg,j({},o,{ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?r:(0,w.createElement)("polygon",{points:"0,0 30,0 15,10"}))});function tv(e){let[t,r]=(0,w.useState)(void 0);return V(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,i=t.blockSize}else n=e.offsetWidth,i=e.offsetHeight;r({width:n,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}let tg="Popper",[ty,tb]=C(tg),[tx,tw]=ty(tg),tE=(0,w.forwardRef)((e,t)=>{let{__scopePopper:r,virtualRef:n,...i}=e,o=tw("PopperAnchor",r),a=(0,w.useRef)(null),s=A(t,a);return(0,w.useEffect)(()=>{o.onAnchorChange((null==n?void 0:n.current)||a.current)}),n?null:(0,w.createElement)(I.div,j({},i,{ref:s}))}),tj="PopperContent",[tS,tC]=ty(tj),[tk,tA]=ty(tj,{hasParent:!1,positionUpdateFns:new Set}),tO=(0,w.forwardRef)((e,t)=>{var r,n,i,o,a,s,l,u;let{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:h="center",alignOffset:p=0,arrowPadding:m=0,collisionBoundary:v=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:b=!1,avoidCollisions:x=!0,...E}=e,j=tw(tj,c),[S,C]=(0,w.useState)(null),k=A(t,e=>C(e)),[O,T]=(0,w.useState)(null),_=tv(O),M=null!==(r=null==_?void 0:_.width)&&void 0!==r?r:0,R=null!==(n=null==_?void 0:_.height)&&void 0!==n?n:0,N="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},P=Array.isArray(v)?v:[v],L=P.length>0,D={padding:N,boundary:P.filter(tR),altBoundary:L},{reference:F,floating:B,strategy:U,x:z,y:H,placement:$,middlewareData:W,update:q}=th({strategy:"fixed",placement:d+("center"!==h?"-"+h:""),whileElementsMounted:tc,middleware:[eW({mainAxis:f+R,alignmentAxis:p}),x?eG({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?eZ():void 0,...D}):void 0,O?tp({element:O,padding:m}):void 0,x?eU({...D}):void 0,tN({arrowWidth:M,arrowHeight:R}),b?e$({strategy:"referenceHidden"}):void 0].filter(tM)});V(()=>{F(j.anchor)},[F,j.anchor]);let G=null!==z&&null!==H,[Z,Y]=tP($),X=null===(i=W.arrow)||void 0===i?void 0:i.x,K=null===(o=W.arrow)||void 0===o?void 0:o.y,J=(null===(a=W.arrow)||void 0===a?void 0:a.centerOffset)!==0,[Q,ee]=(0,w.useState)();V(()=>{S&&ee(window.getComputedStyle(S).zIndex)},[S]);let{hasParent:et,positionUpdateFns:er}=tA(tj,c),en=!et;(0,w.useLayoutEffect)(()=>{if(!en)return er.add(q),()=>{er.delete(q)}},[en,er,q]),(0,w.useLayoutEffect)(()=>{en&&G&&Array.from(er).reverse().forEach(e=>requestAnimationFrame(e))},[en,G,er]);let ei={"data-side":Z,"data-align":Y,...E,ref:k,style:{...E.style,animation:G?void 0:"none",opacity:null!==(s=W.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,w.createElement)("div",{ref:B,"data-radix-popper-content-wrapper":"",style:{position:U,left:0,top:0,transform:G?`translate3d(${Math.round(z)}px, ${Math.round(H)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null===(l=W.transformOrigin)||void 0===l?void 0:l.x,null===(u=W.transformOrigin)||void 0===u?void 0:u.y].join(" ")}},(0,w.createElement)(tS,{scope:c,placedSide:Z,onArrowChange:T,arrowX:X,arrowY:K,shouldHideArrow:J},en?(0,w.createElement)(tk,{scope:c,hasParent:!0,positionUpdateFns:er},(0,w.createElement)(I.div,ei)):(0,w.createElement)(I.div,ei)))}),tT={top:"bottom",right:"left",bottom:"top",left:"right"},t_=(0,w.forwardRef)(function(e,t){let{__scopePopper:r,...n}=e,i=tC("PopperArrow",r),o=tT[i.placedSide];return(0,w.createElement)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},(0,w.createElement)(tm,j({},n,{ref:t,style:{...n.style,display:"block"}})))});function tM(e){return void 0!==e}function tR(e){return null!==e}let tN=e=>({name:"transformOrigin",options:e,fn(t){var r,n,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(r=u.arrow)||void 0===r?void 0:r.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=tP(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(n=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==n?n:0)+d/2,g=(null!==(o=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==o?o:0)+f/2,y="",b="";return"bottom"===h?(y=c?m:`${v}px`,b=`${-f}px`):"top"===h?(y=c?m:`${v}px`,b=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,b=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,b=c?m:`${g}px`),{data:{x:y,y:b}}}});function tP(e){let[t,r="center"]=e.split("-");return[t,r]}let tL=e=>{let{__scopePopper:t,children:r}=e,[n,i]=(0,w.useState)(null);return(0,w.createElement)(tx,{scope:t,anchor:n,onAnchorChange:i},r)},tD=(0,w.forwardRef)((e,t)=>{var r;let{container:n=null==globalThis?void 0:null===(r=globalThis.document)||void 0===r?void 0:r.body,...i}=e;return n?D.createPortal((0,w.createElement)(I.div,j({},i,{ref:t})),n):null}),tI=(0,w.forwardRef)((e,t)=>(0,w.createElement)(I.span,j({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),[tF,tV]=C("Tooltip",[tb]),tB=tb(),tU="tooltip.open",[tz,tH]=tF("TooltipProvider"),t$="Tooltip",[tW,tq]=tF(t$),tG="TooltipTrigger",tZ=(0,w.forwardRef)((e,t)=>{let{__scopeTooltip:r,...n}=e,i=tq(tG,r),o=tH(tG,r),a=tB(r),s=(0,w.useRef)(null),l=A(t,s,i.onTriggerChange),u=(0,w.useRef)(!1),c=(0,w.useRef)(!1),d=(0,w.useCallback)(()=>u.current=!1,[]);return(0,w.useEffect)(()=>()=>document.removeEventListener("pointerup",d),[d]),(0,w.createElement)(tE,j({asChild:!0},a),(0,w.createElement)(I.button,j({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},n,{ref:l,onPointerMove:N(e.onPointerMove,e=>{"touch"===e.pointerType||c.current||o.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:N(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:N(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:N(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:N(e.onBlur,i.onClose),onClick:N(e.onClick,e=>{let t=0===e.detail;t&&i.onClose()})})))}),tY="TooltipPortal",[tX,tK]=tF(tY,{forceMount:void 0}),tJ="TooltipContent",tQ=(0,w.forwardRef)((e,t)=>{let r=tK(tJ,e.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...o}=e,a=tq(tJ,e.__scopeTooltip);return(0,w.createElement)(B,{present:n||a.open},a.disableHoverableContent?(0,w.createElement)(t4,j({side:i},o,{ref:t})):(0,w.createElement)(t0,j({side:i},o,{ref:t})))}),t0=(0,w.forwardRef)((e,t)=>{let r=tq(tJ,e.__scopeTooltip),n=tH(tJ,e.__scopeTooltip),i=(0,w.useRef)(null),o=A(t,i),[a,s]=(0,w.useState)(null),{trigger:l,onClose:u}=r,c=i.current,{onPointerInTransitChange:d}=n,f=(0,w.useCallback)(()=>{s(null),d(!1)},[d]),h=(0,w.useCallback)((e,t)=>{let r=e.currentTarget,n={x:e.clientX,y:e.clientY},i=function(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,i,o)){case o:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:return null}}(n,r.getBoundingClientRect()),o="right"===i||"bottom"===i?-5:5,a="right"===i||"left"===i?{x:e.clientX+o,y:e.clientY}:{x:e.clientX,y:e.clientY+o},l=function(e){let{top:t,right:r,bottom:n,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:n},{x:i,y:n}]}(t.getBoundingClientRect()),u=function(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y?1:0),function(e){if(e.length<=1)return e.slice();let t=[];for(let r=0;r=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x))t.pop();else break}t.push(n)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let n=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x))r.pop();else break}r.push(n)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}(t)}([a,...l]);s(u),d(!0)},[d]);return(0,w.useEffect)(()=>()=>f(),[f]),(0,w.useEffect)(()=>{if(l&&c){let e=e=>h(e,c),t=e=>h(e,l);return l.addEventListener("pointerleave",e),c.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),c.removeEventListener("pointerleave",t)}}},[l,c,h,f]),(0,w.useEffect)(()=>{if(a){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=(null==l?void 0:l.contains(t))||(null==c?void 0:c.contains(t)),i=!function(e,t){let{x:r,y:n}=e,i=!1;for(let e=0,o=t.length-1;en!=u>n&&r<(l-a)*(n-s)/(u-s)+a;c&&(i=!i)}return i}(r,a);n?f():i&&(f(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[l,c,a,u,f]),(0,w.createElement)(t4,j({},e,{ref:o}))}),[t1,t2]=tF(t$,{isInside:!1}),t4=(0,w.forwardRef)((e,t)=>{let{__scopeTooltip:r,children:n,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:a,...s}=e,l=tq(tJ,r),u=tB(r),{onClose:c}=l;return(0,w.useEffect)(()=>(document.addEventListener(tU,c),()=>document.removeEventListener(tU,c)),[c]),(0,w.useEffect)(()=>{if(l.trigger){let e=e=>{let t=e.target;null!=t&&t.contains(l.trigger)&&c()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[l.trigger,c]),(0,w.createElement)(ew,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:c},(0,w.createElement)(tO,j({"data-state":l.stateAttribute},u,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),(0,w.createElement)(_,null,n),(0,w.createElement)(t1,{scope:r,isInside:!0},(0,w.createElement)(tI,{id:l.contentId,role:"tooltip"},i||n))))}),t3=e=>{let{__scopeTooltip:t,children:r,open:n,defaultOpen:i=!1,onOpenChange:o,disableHoverableContent:a,delayDuration:s}=e,l=tH(t$,e.__scopeTooltip),u=tB(t),[c,d]=(0,w.useState)(null),f=$(),h=(0,w.useRef)(0),p=null!=a?a:l.disableHoverableContent,m=null!=s?s:l.delayDuration,v=(0,w.useRef)(!1),[g=!1,y]=L({prop:n,defaultProp:i,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(tU))):l.onClose(),null==o||o(e)}}),b=(0,w.useMemo)(()=>g?v.current?"delayed-open":"instant-open":"closed",[g]),x=(0,w.useCallback)(()=>{window.clearTimeout(h.current),v.current=!1,y(!0)},[y]),E=(0,w.useCallback)(()=>{window.clearTimeout(h.current),y(!1)},[y]),j=(0,w.useCallback)(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,y(!0)},m)},[m,y]);return(0,w.useEffect)(()=>()=>window.clearTimeout(h.current),[]),(0,w.createElement)(tL,u,(0,w.createElement)(tW,{scope:t,contentId:f,open:g,stateAttribute:b,trigger:c,onTriggerChange:d,onTriggerEnter:(0,w.useCallback)(()=>{l.isOpenDelayed?j():x()},[l.isOpenDelayed,j,x]),onTriggerLeave:(0,w.useCallback)(()=>{p?E():window.clearTimeout(h.current)},[E,p]),onOpen:x,onClose:E,disableHoverableContent:p},r))},t5=e=>{let{__scopeTooltip:t,forceMount:r,children:n,container:i}=e,o=tq(tY,t);return(0,w.createElement)(tX,{scope:t,forceMount:r},(0,w.createElement)(B,{present:r||o.open},(0,w.createElement)(tD,{asChild:!0,container:i},n)))},t6=(0,ey.j)([],{variants:{display:{default:"inline-block",none:""},font:{mono:"font-mono",sans:"font-sans"},color:{verySubtle:"text-gray-700 dark:text-graydark-700",subtle:"text-gray-1000 dark:text-graydark-1000",contrast:"text-gray-1100 dark:text-white",lo:"text-white dark:text-graydark-50",accent:"text-accent-1100 dark:text-accentdark-1100",red:"text-red-700 dark:text-red-400",green:"text-emerald-700 dark:text-emerald-500",amber:"text-amber-600 dark:text-amber-500",none:""},weight:{extrabold:"font-extrabold",bold:"font-bold",medium:"font-medium",semibold:"font-semibold",regular:"font-normal",normal:"font-normal",light:"font-light",none:""},size:{10:"text-xxs",12:"text-xs",14:"text-sm",16:"text-base",18:"text-lg",20:"text-xl",24:"text-2xl",30:"text-3xl",36:"text-4xl",40:"text-5xl",48:"text-5xl",60:"text-6xl",64:"text-6xl"},scaleSize:{12:"text-xxs md:text-xs",14:"text-xs md:text-sm",16:"text-sm md:text-base",18:"text-base md:text-lg",20:"text-base md:text-xl",24:"text-xl md:text-2xl",30:"text-2xl md:text-3xl",36:"text-3xl md:text-4xl",40:"text-4xl md:text-5xl",48:"text-4xl md:text-5xl",60:"text-5xl md:text-6xl",64:"text-5xl md:text-6xl"},noWrap:{true:"whitespace-nowrap"},underline:{accent:"underline underline-offset-2 decoration-2 decoration-accent-900 dark:decoration-accentdark-900",show:"underline underline-offset-2 decoration-gray-1100 dark:decoration-gray-500",hover:"hover:underline underline-offset-2 decoration-gray-1100 dark:decoration-gray-500",none:""},ellipsis:{true:"overflow-hidden text-ellipsis whitespace-nowrap"},wrapEllipsis:{true:"overflow-hidden text-ellipsis"}},defaultVariants:{display:"default",weight:"regular",font:"sans",color:"contrast",underline:"none"}}),t8=w.forwardRef((e,t)=>{let{tag:r="span",className:n,font:i,color:o,weight:a,size:s,scaleSize:l,noWrap:u,underline:c,ellipsis:d,wrapEllipsis:f,...h}=e;return(0,x.jsx)(r,{ref:t,className:(0,ey.cx)(n,t6({font:i,color:o,weight:a,size:s,scaleSize:l,underline:c,noWrap:u,ellipsis:d,wrapEllipsis:f})),...h})}),t7=w.forwardRef((e,t)=>{let{size:r="18",...n}=e;return(0,x.jsx)(t8,{tag:"p",...n,ref:t,weight:"regular",scaleSize:r,color:"subtle",className:(0,ey.cx)("leading-relaxed md:leading-relaxed",e.className)})}),t9=(0,ey.j)(["bg-white dark:bg-graydark-200","transition-shadow ease-in-out duration-300","shadow-sm hover:shadow","rounded","border","border-gray-400 dark:border-graydark-400"]),re=w.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,x.jsx)("div",{ref:t,className:t9({className:r}),...n})});var rt=r(34406);let rr=(void 0===rt||rt.env,"production"),rn=1/60*1e3,ri="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),ro="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(ri()),rn),ra=!0,rs=!1,rl=!1,ru={delta:0,timestamp:0},rc=["read","update","preRender","render","postRender"],rd=rc.reduce((e,t)=>(e[t]=function(e){let t=[],r=[],n=0,i=!1,o=!1,a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{let l=s&&i,u=l?t:r;return o&&a.add(e),-1===u.indexOf(e)&&(u.push(e),l&&i&&(n=t.length)),e},cancel:e=>{let t=r.indexOf(e);-1!==t&&r.splice(t,1),a.delete(e)},process:l=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length)for(let r=0;rrs=!0),e),{}),rf=rc.reduce((e,t)=>{let r=rd[t];return e[t]=(e,t=!1,n=!1)=>(rs||rg(),r.schedule(e,t,n)),e},{}),rh=rc.reduce((e,t)=>(e[t]=rd[t].cancel,e),{}),rp=rc.reduce((e,t)=>(e[t]=()=>rd[t].process(ru),e),{}),rm=e=>rd[e].process(ru),rv=e=>{rs=!1,ru.delta=ra?rn:Math.max(Math.min(e-ru.timestamp,40),1),ru.timestamp=e,rl=!0,rc.forEach(rm),rl=!1,rs&&(ra=!1,ro(rv))},rg=()=>{rs=!0,ra=!0,rl||ro(rv)},ry=()=>ru,rb="undefined"!=typeof document,rx=rb?w.useLayoutEffect:w.useEffect;function rw(){let e=(0,w.useRef)(!1);return rx(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let rE=(0,w.createContext)(null);function rj(e){let t=(0,w.useRef)(null);return null===t.current&&(t.current=e()),t.current}class rS extends w.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function rC({children:e,isPresent:t}){let r=(0,w.useId)(),n=(0,w.useRef)(null),i=(0,w.useRef)({width:0,height:0,top:0,left:0});return(0,w.useInsertionEffect)(()=>{let{width:e,height:o,top:a,left:s}=i.current;if(t||!n.current||!e||!o)return;n.current.dataset.motionPopId=r;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` - [data-motion-pop-id="${r}"] { - position: absolute !important; - width: ${e}px !important; - height: ${o}px !important; - top: ${a}px !important; - left: ${s}px !important; - } - `),()=>{document.head.removeChild(l)}},[t]),w.createElement(rS,{isPresent:t,childRef:n,sizeRef:i},w.cloneElement(e,{ref:n}))}let rk=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:o,mode:a})=>{let s=rj(rA),l=(0,w.useId)(),u=(0,w.useMemo)(()=>({id:l,initial:t,isPresent:r,custom:i,onExitComplete:e=>{for(let t of(s.set(e,!0),s.values()))if(!t)return;n&&n()},register:e=>(s.set(e,!1),()=>s.delete(e))}),o?void 0:[r]);return(0,w.useMemo)(()=>{s.forEach((e,t)=>s.set(t,!1))},[r]),w.useEffect(()=>{r||s.size||!n||n()},[r]),"popLayout"===a&&(e=w.createElement(rC,{isPresent:r},e)),w.createElement(rE.Provider,{value:u},e)};function rA(){return new Map}let rO=(0,w.createContext)({});function rT(e){return(0,w.useEffect)(()=>()=>e(),[])}let r_=new Set;function rM(e,t,r){e||r_.has(t)||(console.warn(t),r&&console.warn(r),r_.add(t))}let rR=e=>e.key||"",rN=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",rM(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=function(){let e=rw(),[t,r]=(0,w.useState)(0),n=(0,w.useCallback)(()=>{e.current&&r(t+1)},[t]),i=(0,w.useCallback)(()=>rf.postRender(n),[n]);return[i,t]}(),l=(0,w.useContext)(rO).forceRender;l&&(s=l);let u=rw(),c=function(e){let t=[];return w.Children.forEach(e,e=>{(0,w.isValidElement)(e)&&t.push(e)}),t}(e),d=c,f=new Set,h=(0,w.useRef)(d),p=(0,w.useRef)(new Map).current,m=(0,w.useRef)(!0);if(rx(()=>{m.current=!1,function(e,t){e.forEach(e=>{let r=rR(e);t.set(r,e)})}(c,p),h.current=d}),rT(()=>{m.current=!0,p.clear(),f.clear()}),m.current)return w.createElement(w.Fragment,null,d.map(e=>w.createElement(rk,{key:rR(e),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:o,mode:a},e)));d=[...d];let v=h.current.map(rR),g=c.map(rR),y=v.length;for(let e=0;e{if(-1!==g.indexOf(e))return;let r=p.get(e);if(!r)return;let i=v.indexOf(e);d.splice(i,0,w.createElement(rk,{key:rR(r),isPresent:!1,onExitComplete:()=>{p.delete(e),f.delete(e);let t=h.current.findIndex(t=>t.key===e);if(h.current.splice(t,1),!f.size){if(h.current=c,!1===u.current)return;s(),n&&n()}},custom:t,presenceAffectsLayout:o,mode:a},r))}),d=d.map(e=>{let t=e.key;return f.has(t)?e:w.createElement(rk,{key:rR(e),isPresent:!0,presenceAffectsLayout:o,mode:a},e)}),"production"!==rr&&"wait"===a&&d.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.'),w.createElement(w.Fragment,null,f.size?d:d.map(e=>(0,w.cloneElement)(e)))},rP=(0,w.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),rL=(0,w.createContext)({}),rD=(0,w.createContext)({strict:!1});function rI(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function rF(e){return"string"==typeof e||Array.isArray(e)}function rV(e){return"object"==typeof e&&"function"==typeof e.start}let rB=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function rU(e){return rV(e.animate)||rB.some(t=>rF(e[t]))}function rz(e){return!!(rU(e)||e.variants)}function rH(e){return Array.isArray(e)?e.join(" "):e}let r$=e=>({isEnabled:t=>e.some(e=>!!t[e])}),rW={measureLayout:r$(["layout","layoutId","drag"]),animation:r$(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:r$(["exit"]),drag:r$(["drag","dragControls"]),focus:r$(["whileFocus"]),hover:r$(["whileHover","onHoverStart","onHoverEnd"]),tap:r$(["whileTap","onTap","onTapStart","onTapCancel"]),pan:r$(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:r$(["whileInView","onViewportEnter","onViewportLeave"])},rq={hasAnimatedSinceResize:!0,hasEverUpdated:!1},rG=1;class rZ extends w.Component{getSnapshotBeforeUpdate(){let{visualElement:e,props:t}=this.props;return e&&e.setProps(t),null}componentDidUpdate(){}render(){return this.props.children}}let rY=(0,w.createContext)({}),rX=Symbol.for("motionComponentSymbol"),rK=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function rJ(e){if("string"!=typeof e||e.includes("-"));else if(rK.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let rQ={},r0=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],r1=new Set(r0);function r2(e,{layout:t,layoutId:r}){return r1.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!rQ[e]||"opacity"===e)}let r4=e=>!!(null==e?void 0:e.getVelocity),r3={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},r5=(e,t)=>r0.indexOf(e)-r0.indexOf(t);function r6(e){return e.startsWith("--")}let r8=(e,t)=>t&&"number"==typeof e?t.transform(e):e,r7=(e,t)=>r=>Math.max(Math.min(r,t),e),r9=e=>e%1?Number(e.toFixed(5)):e,ne=/(-)?([\d]*\.?[\d])+/g,nt=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,nr=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function nn(e){return"string"==typeof e}let ni=e=>({test:t=>nn(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),no=ni("deg"),na=ni("%"),ns=ni("px"),nl=ni("vh"),nu=ni("vw"),nc=Object.assign(Object.assign({},na),{parse:e=>na.parse(e)/100,transform:e=>na.transform(100*e)}),nd={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},nf=Object.assign(Object.assign({},nd),{transform:r7(0,1)}),nh=Object.assign(Object.assign({},nd),{default:1}),np={...nd,transform:Math.round},nm={borderWidth:ns,borderTopWidth:ns,borderRightWidth:ns,borderBottomWidth:ns,borderLeftWidth:ns,borderRadius:ns,radius:ns,borderTopLeftRadius:ns,borderTopRightRadius:ns,borderBottomRightRadius:ns,borderBottomLeftRadius:ns,width:ns,maxWidth:ns,height:ns,maxHeight:ns,size:ns,top:ns,right:ns,bottom:ns,left:ns,padding:ns,paddingTop:ns,paddingRight:ns,paddingBottom:ns,paddingLeft:ns,margin:ns,marginTop:ns,marginRight:ns,marginBottom:ns,marginLeft:ns,rotate:no,rotateX:no,rotateY:no,rotateZ:no,scale:nh,scaleX:nh,scaleY:nh,scaleZ:nh,skew:no,skewX:no,skewY:no,distance:ns,translateX:ns,translateY:ns,translateZ:ns,x:ns,y:ns,z:ns,perspective:ns,transformPerspective:ns,opacity:nf,originX:nc,originY:nc,originZ:ns,zIndex:np,fillOpacity:nf,strokeOpacity:nf,numOctaves:np};function nv(e,t,r,n){let{style:i,vars:o,transform:a,transformKeys:s,transformOrigin:l}=e;s.length=0;let u=!1,c=!1,d=!0;for(let e in t){let r=t[e];if(r6(e)){o[e]=r;continue}let n=nm[e],f=r8(r,n);if(r1.has(e)){if(u=!0,a[e]=f,s.push(e),!d)continue;r!==(n.default||0)&&(d=!1)}else e.startsWith("origin")?(c=!0,l[e]=f):i[e]=f}if(!t.transform&&(u||n?i.transform=function({transform:e,transformKeys:t},{enableHardwareAcceleration:r=!0,allowTransformNone:n=!0},i,o){let a="";for(let r of(t.sort(r5),t))a+=`${r3[r]||r}(${e[r]}) `;return r&&!e.z&&(a+="translateZ(0)"),a=a.trim(),o?a=o(e,i?"":a):n&&i&&(a="none"),a}(e,r,d,n):i.transform&&(i.transform="none")),c){let{originX:e="50%",originY:t="50%",originZ:r=0}=l;i.transformOrigin=`${e} ${t} ${r}`}}let ng=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function ny(e,t,r){for(let n in t)r4(t[n])||r2(n,r)||(e[n]=t[n])}function nb(e,t,r){let n={},i=function(e,t,r){let n=e.style||{},i={};return ny(i,n,e),Object.assign(i,function({transformTemplate:e},t,r){return(0,w.useMemo)(()=>{let n=ng();return nv(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}(e,t,r)),e.transformValues?e.transformValues(i):i}(e,t,r);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),n.style=i,n}let nx=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll","whileInView","onViewportEnter","onViewportLeave","viewport","whileTap","onTap","onTapStart","onTapCancel","animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView","onPan","onPanStart","onPanSessionStart","onPanEnd"]);function nw(e){return nx.has(e)}let nE=e=>!nw(e);try{(wI=require("@emotion/is-prop-valid").default)&&(nE=e=>e.startsWith("on")?!nw(e):wI(e))}catch(e){}function nj(e,t,r){return"string"==typeof e?e:ns.transform(t+r*e)}let nS={offset:"stroke-dashoffset",array:"stroke-dasharray"},nC={offset:"strokeDashoffset",array:"strokeDasharray"};function nk(e,{attrX:t,attrY:r,originX:n,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:s=0,...l},u,c){nv(e,l,u,c),e.attrs=e.style,e.style={};let{attrs:d,style:f,dimensions:h}=e;d.transform&&(h&&(f.transform=d.transform),delete d.transform),h&&(void 0!==n||void 0!==i||f.transform)&&(f.transformOrigin=function(e,t,r){let n=nj(t,e.x,e.width),i=nj(r,e.y,e.height);return`${n} ${i}`}(h,void 0!==n?n:.5,void 0!==i?i:.5)),void 0!==t&&(d.x=t),void 0!==r&&(d.y=r),void 0!==o&&function(e,t,r=1,n=0,i=!0){e.pathLength=1;let o=i?nS:nC;e[o.offset]=ns.transform(-n);let a=ns.transform(t),s=ns.transform(r);e[o.array]=`${a} ${s}`}(d,o,a,s,!1)}let nA=()=>({...ng(),attrs:{}});function nO(e,t){let r=(0,w.useMemo)(()=>{let r=nA();return nk(r,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};ny(t,e.style,e),r.style={...t,...r.style}}return r}let nT=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function n_(e,{style:t,vars:r},n,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(n)),r)e.style.setProperty(o,r[o])}let nM=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function nR(e,t,r,n){for(let r in n_(e,t,void 0,n),t.attrs)e.setAttribute(nM.has(r)?r:nT(r),t.attrs[r])}function nN(e){let{style:t}=e,r={};for(let n in t)(r4(t[n])||r2(n,e))&&(r[n]=t[n]);return r}function nP(e){let t=nN(e);for(let r in e)if(r4(e[r])){let n="x"===r||"y"===r?"attr"+r.toUpperCase():r;t[n]=e[r]}return t}function nL(e,t,r,n={},i={}){return"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),t}let nD=e=>Array.isArray(e),nI=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),nF=e=>nD(e)?e[e.length-1]||0:e;function nV(e){let t=r4(e)?e.get():e;return nI(t)?t.toValue():t}let nB=e=>(t,r)=>{let n=(0,w.useContext)(rL),i=(0,w.useContext)(rE),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){let a={latestValues:function(e,t,r,n){let i={},o=n(e);for(let e in o)i[e]=nV(o[e]);let{initial:a,animate:s}=e,l=rU(e),u=rz(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!r&&!1===r.initial;c=c||!1===a;let d=c?s:a;if(d&&"boolean"!=typeof d&&!rV(d)){let t=Array.isArray(d)?d:[d];t.forEach(t=>{let r=nL(e,t);if(!r)return;let{transitionEnd:n,transition:o,...a}=r;for(let e in a){let t=a[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let e in n)i[e]=n[e]})}return i}(n,i,o,e),renderState:t()};return r&&(a.mount=e=>r(n,e,a)),a})(e,t,n,i);return r?o():rj(o)},nU={useVisualState:nB({scrapeMotionValuesFromProps:nP,createRenderState:nA,onMount:(e,t,{renderState:r,latestValues:n})=>{try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}nk(r,n,{enableHardwareAcceleration:!1},e.transformTemplate),nR(t,r)}})},nz={useVisualState:nB({scrapeMotionValuesFromProps:nN,createRenderState:ng})};function nH(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function n$(e,t,r,n){(0,w.useEffect)(()=>{let i=e.current;if(r&&i)return nH(i,t,r,n)},[e,t,r,n])}function nW(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function nq(e){let t=!!e.touches;return t}(wF=wZ||(wZ={})).Animate="animate",wF.Hover="whileHover",wF.Tap="whileTap",wF.Drag="whileDrag",wF.Focus="whileFocus",wF.InView="whileInView",wF.Exit="exit";let nG={pageX:0,pageY:0};function nZ(e,t="page"){return{point:nq(e)?function(e,t="page"){let r=e.touches[0]||e.changedTouches[0],n=r||nG;return{x:n[t+"X"],y:n[t+"Y"]}}(e,t):function(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}(e,t)}}let nY=(e,t=!1)=>{let r=t=>e(t,nZ(t));return t?e=>{let t=e instanceof MouseEvent,n=!t||t&&0===e.button;n&&r(e)}:r},nX=()=>rb&&null===window.onpointerdown,nK=()=>rb&&null===window.ontouchstart,nJ=()=>rb&&null===window.onmousedown,nQ={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},n0={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function n1(e){if(nX());else if(nK())return n0[e];else if(nJ())return nQ[e];return e}function n2(e,t,r,n){return nH(e,n1(t),nY(r,"pointerdown"===t),n)}function n4(e,t,r,n){return n$(e,n1(t),r&&nY(r,"pointerdown"===t),n)}function n3(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let n5=n3("dragHorizontal"),n6=n3("dragVertical");function n8(e){let t=!1;if("y"===e)t=n6();else if("x"===e)t=n5();else{let e=n5(),r=n6();e&&r?t=()=>{e(),r()}:(e&&e(),r&&r())}return t}function n7(){let e=n8(!0);return!e||(e(),!1)}function n9(e,t,r){return(n,i)=>{!(!nW(n)||n7())&&(e.animationState&&e.animationState.setActive(wZ.Hover,t),r&&r(n,i))}}let ie=(e,t)=>!!t&&(e===t||ie(e,t.parentElement)),it=(e,t)=>r=>t(e(r)),ir=(...e)=>e.reduce(it),ii=new WeakMap,io=new WeakMap,ia=e=>{let t=ii.get(e.target);t&&t(e)},is=e=>{e.forEach(ia)},il={some:0,all:1};function iu(e,t,r,{root:n,margin:i,amount:o="some",once:a}){(0,w.useEffect)(()=>{if(!e||!r.current)return;let s={root:null==n?void 0:n.current,rootMargin:i,threshold:"number"==typeof o?o:il[o]};return function(e,t,r){let n=function({root:e,...t}){let r=e||document;io.has(r)||io.set(r,{});let n=io.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(is,{root:e,...t})),n[i]}(t);return ii.set(e,r),n.observe(e),()=>{ii.delete(e),n.unobserve(e)}}(r.current,s,e=>{let{isIntersecting:n}=e;if(t.isInView===n||(t.isInView=n,a&&!n&&t.hasEnteredView))return;n&&(t.hasEnteredView=!0),r.animationState&&r.animationState.setActive(wZ.InView,n);let i=r.getProps(),o=n?i.onViewportEnter:i.onViewportLeave;o&&o(e)})},[e,n,i,o])}function ic(e,t,r,{fallback:n=!0}){(0,w.useEffect)(()=>{e&&n&&("production"!==rr&&rM(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;let{onViewportEnter:e}=r.getProps();e&&e(null),r.animationState&&r.animationState.setActive(wZ.InView,!0)}))},[e])}let id=e=>t=>(e(t),null),ih={inView:id(function({visualElement:e,whileInView:t,onViewportEnter:r,onViewportLeave:n,viewport:i={}}){let o=(0,w.useRef)({hasEnteredView:!1,isInView:!1}),a=!!(t||r||n);i.once&&o.current.hasEnteredView&&(a=!1);let s="undefined"==typeof IntersectionObserver?ic:iu;s(a,o.current,e,i)}),tap:id(function({onTap:e,onTapStart:t,onTapCancel:r,whileTap:n,visualElement:i}){let o=e||t||r||n,a=(0,w.useRef)(!1),s=(0,w.useRef)(null),l={passive:!(t||e||r||h)};function u(){s.current&&s.current(),s.current=null}function c(){return u(),a.current=!1,i.animationState&&i.animationState.setActive(wZ.Tap,!1),!n7()}function d(t,n){c()&&(ie(i.current,t.target)?e&&e(t,n):r&&r(t,n))}function f(e,t){c()&&r&&r(e,t)}function h(e,r){u(),!a.current&&(a.current=!0,s.current=ir(n2(window,"pointerup",d,l),n2(window,"pointercancel",f,l)),i.animationState&&i.animationState.setActive(wZ.Tap,!0),t&&t(e,r))}n4(i,"pointerdown",o?h:void 0,l),rT(u)}),focus:id(function({whileFocus:e,visualElement:t}){let{animationState:r}=t;n$(t,"focus",e?()=>{r&&r.setActive(wZ.Focus,!0)}:void 0),n$(t,"blur",e?()=>{r&&r.setActive(wZ.Focus,!1)}:void 0)}),hover:id(function({onHoverStart:e,onHoverEnd:t,whileHover:r,visualElement:n}){n4(n,"pointerenter",e||r?n9(n,!0,e):void 0,{passive:!e}),n4(n,"pointerleave",t||r?n9(n,!1,t):void 0,{passive:!t})})};function ip(){let e=(0,w.useContext)(rE);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:r,register:n}=e,i=(0,w.useId)();return(0,w.useEffect)(()=>n(i),[]),!t&&r?[!1,()=>r&&r(i)]:[!0]}function im(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;nt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}var ig=function(){},iy=function(){};let ib=(e,t,r)=>Math.min(Math.max(r,e),t);function ix(e,t){return e*Math.sqrt(1-t*t)}let iw=["duration","bounce"],iE=["stiffness","damping","mass"];function ij(e,t){return t.some(t=>void 0!==e[t])}function iS(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:i}=e,o=iv(e,["from","to","restSpeed","restDelta"]);let a={done:!1,value:t},{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!ij(e,iE)&&ij(e,iw)){let r=function({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;ig(e<=1e4,"Spring duration must be 10 seconds or less");let a=1-t;a=ib(.05,1,a),e=ib(.01,10,e/1e3),a<1?(i=t=>{let n=t*a,i=n*e,o=ix(t,a),s=Math.exp(-i);return .001-(n-r)/o*s},o=t=>{let n=t*a,o=n*e,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-o),u=ix(Math.pow(t,2),a),c=-i(t)+.001>0?-1:1;return c*((o*r+r-s)*l)/u}):(i=t=>{let n=Math.exp(-t*e),i=(t-r)*e+1;return -.001+n*i},o=t=>{let n=Math.exp(-t*e),i=(r-t)*(e*e);return n*i});let s=5/e,l=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(i,o,s);if(e*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(l,2)*n;return{stiffness:t,damping:2*a*Math.sqrt(n*t),duration:e}}}(e);(t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(o),h=iC,p=iC;function m(){let e=c?-(c/1e3):0,n=r-t,o=l/(2*Math.sqrt(s*u)),a=Math.sqrt(s/u)/1e3;if(void 0===i&&(i=Math.min(Math.abs(r-t)/100,.4)),o<1){let t=ix(a,o);h=i=>{let s=Math.exp(-o*a*i);return r-s*((e+o*a*n)/t*Math.sin(t*i)+n*Math.cos(t*i))},p=r=>{let i=Math.exp(-o*a*r);return o*a*i*(Math.sin(t*r)*(e+o*a*n)/t+n*Math.cos(t*r))-i*(Math.cos(t*r)*(e+o*a*n)-t*n*Math.sin(t*r))}}else if(1===o)h=t=>r-Math.exp(-a*t)*(n+(e+a*n)*t);else{let t=a*Math.sqrt(o*o-1);h=i=>{let s=Math.exp(-o*a*i),l=Math.min(t*i,300);return r-s*((e+o*a*n)*Math.sinh(l)+t*n*Math.cosh(l))/t}}}return m(),{next:e=>{let t=h(e);if(f)a.done=e>=d;else{let o=1e3*p(e),s=Math.abs(o)<=n,l=Math.abs(r-t)<=i;a.done=s&&l}return a.value=a.done?r:t,a},flipTarget:()=>{c=-c,[t,r]=[r,t],m()}}}iS.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let iC=e=>0,ik=(e,t,r)=>{let n=t-e;return 0===n?1:(r-e)/n},iA=(e,t,r)=>-r*e+r*t+e,iO=(e,t)=>r=>!!(nn(r)&&nr.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),iT=(e,t,r)=>n=>{if(!nn(n))return n;let[i,o,a,s]=n.match(ne);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},i_=r7(0,255),iM=Object.assign(Object.assign({},nd),{transform:e=>Math.round(i_(e))}),iR={test:iO("rgb","red"),parse:iT("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+iM.transform(e)+", "+iM.transform(t)+", "+iM.transform(r)+", "+r9(nf.transform(n))+")"},iN={test:iO("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),i=e.substr(4,1),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}},transform:iR.transform},iP={test:iO("hsl","hue"),parse:iT("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+na.transform(r9(t))+", "+na.transform(r9(r))+", "+r9(nf.transform(n))+")"};function iL(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function iD({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,o=0,a=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;i=iL(s,n,e+1/3),o=iL(s,n,e),a=iL(s,n,e-1/3)}else i=o=a=r;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:n}}let iI=(e,t,r)=>{let n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},iF=[iN,iR,iP],iV=e=>iF.find(t=>t.test(e)),iB=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,iU=(e,t)=>{let r=iV(e),n=iV(t);iy(!!r,iB(e)),iy(!!n,iB(t));let i=r.parse(e),o=n.parse(t);r===iP&&(i=iD(i),r=iR),n===iP&&(o=iD(o),n=iR);let a=Object.assign({},i);return e=>{for(let t in a)"alpha"!==t&&(a[t]=iI(i[t],o[t],e));return a.alpha=iA(i.alpha,o.alpha,e),r.transform(a)}},iz={test:e=>iR.test(e)||iN.test(e)||iP.test(e),parse:e=>iR.test(e)?iR.parse(e):iP.test(e)?iP.parse(e):iN.parse(e),transform:e=>nn(e)?e:e.hasOwnProperty("red")?iR.transform(e):iP.transform(e)},iH="${c}",i$="${n}";function iW(e){"number"==typeof e&&(e=`${e}`);let t=[],r=0,n=e.match(nt);n&&(r=n.length,e=e.replace(nt,iH),t.push(...n.map(iz.parse)));let i=e.match(ne);return i&&(e=e.replace(ne,i$),t.push(...i.map(nd.parse))),{values:t,numColors:r,tokenised:e}}function iq(e){return iW(e).values}function iG(e){let{values:t,numColors:r,tokenised:n}=iW(e),i=t.length;return e=>{let t=n;for(let n=0;n"number"==typeof e?0:e,iY={test:function(e){var t,r,n,i;return isNaN(e)&&nn(e)&&(null!==(r=null===(t=e.match(ne))||void 0===t?void 0:t.length)&&void 0!==r?r:0)+(null!==(i=null===(n=e.match(nt))||void 0===n?void 0:n.length)&&void 0!==i?i:0)>0},parse:iq,createTransformer:iG,getAnimatableNone:function(e){let t=iq(e),r=iG(e);return r(t.map(iZ))}},iX=e=>"number"==typeof e;function iK(e,t){return iX(e)?r=>iA(e,t,r):iz.test(e)?iU(e,t):i1(e,t)}let iJ=(e,t)=>{let r=[...e],n=r.length,i=e.map((e,r)=>iK(e,t[r]));return e=>{for(let t=0;t{let r=Object.assign(Object.assign({},e),t),n={};for(let i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=iK(e[i],t[i]));return e=>{for(let t in n)r[t]=n[t](e);return r}};function i0(e){let t=iY.parse(e),r=t.length,n=0,i=0,o=0;for(let e=0;e{let r=iY.createTransformer(t),n=i0(e),i=i0(t),o=n.numHSL===i.numHSL&&n.numRGB===i.numRGB&&n.numNumbers>=i.numNumbers;return o?ir(iJ(n.parsed,i.parsed),r):(ig(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),r=>`${r>0?t:e}`)},i2=(e,t)=>r=>iA(e,t,r);function i4(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let o=e.length;iy(o===t.length,"Both input and output ranges must be the same length"),iy(!n||!Array.isArray(n)||n.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let a=function(e,t,r){var n;let i=[],o=r||("number"==typeof(n=e[0])?i2:"string"==typeof n?iz.test(n)?iU:i1:Array.isArray(n)?iJ:"object"==typeof n?iQ:void 0),a=e.length-1;for(let r=0;rr(ik(e,t,n))}(e,a):function(e,t){let r=e.length,n=r-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[n]&&(o=n-1,a=!0),!a){let t=1;for(;ti)&&t!==n;t++);o=t-1}let s=ik(e[o],e[o+1],i);return t[o](s)}}(e,a);return r?t=>s(ib(e[0],e[o-1],t)):s}let i3=e=>t=>1-e(1-t),i5=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,i6=e=>t=>t*t*((e+1)*t-e),i8=4/11,i7=8/11,i9=e=>e,oe=e=>Math.pow(e,2),ot=i3(oe),or=i5(oe),on=e=>1-Math.sin(Math.acos(e)),oi=i3(on),oo=i5(oi),oa=i6(1.525),os=i3(oa),ol=i5(oa),ou=(e=>{let t=i6(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(0),oc=4356/361,od=35442/1805,of=16061/1805,oh=e=>{if(1===e||0===e)return e;let t=e*e;return e0!==r?r/(t-1):0)}(a)).map(e=>e*i);function l(){return i4(s,a,{ease:Array.isArray(r)?r:a.map(()=>r||or).splice(0,a.length-1)})}let u=l();return{next:e=>(o.value=u(e),o.done=e>=i,o),flipTarget:()=>{a.reverse(),u=l()}}}let ov={keyframes:om,spring:iS,decay:function({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:o}){let a={done:!1,value:t},s=r*e,l=t+s,u=void 0===o?l:o(l);return u!==l&&(s=u-t),{next:e=>{let t=-s*Math.exp(-e/n);return a.done=!(t>i||t<-i),a.value=a.done?u:u+t,a},flipTarget:()=>{}}}};function og(e,t,r=0){return e-t-r}let oy=e=>{let t=({delta:t})=>e(t);return{start:()=>rf.update(t,!0),stop:()=>rh.update(t)}};function ob(e){let t,r,n;var i,{from:o,autoplay:a=!0,driver:s=oy,elapsed:l=0,repeat:u=0,repeatType:c="loop",repeatDelay:d=0,onPlay:f,onStop:h,onComplete:p,onRepeat:m,onUpdate:v}=e,g=iv(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:y}=g,b=0,x=g.duration,w=!1,E=!0,j=function(e){if(Array.isArray(e.to))return om;if(ov[e.type])return ov[e.type];let t=new Set(Object.keys(e));if(t.has("ease")||t.has("duration")&&!t.has("dampingRatio"));else if(t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta"))return iS;return om}(g);(null===(i=j.needsInterpolation)||void 0===i?void 0:i.call(j,o,y))&&(n=i4([0,100],[o,y],{clamp:!1}),o=0,y=100);let S=j(Object.assign(Object.assign({},g),{from:o,to:y}));return a&&(null==f||f(),(t=s(function(e){if(E||(e=-e),l+=e,!w){let e=S.next(Math.max(0,l));r=e.value,n&&(r=n(r)),w=E?e.done:l<=0}if(null==v||v(r),w){if(0===b&&(null!=x||(x=l)),b=o+d:i<=-d)&&(b++,"reverse"===c?l=function(e,t,r=0,n=!0){return n?og(t+-e,t,r):t-(e-t)+r}(l,x,d,E=b%2==0):(l=og(l,x,d),"mirror"===c&&S.flipTarget()),w=!1,m&&m())}else t.stop(),p&&p()}})).start()),{stop:()=>{null==h||h(),t.stop()}}}let ox=e=>1e3*e,ow=(e,t)=>1-3*t+3*e,oE=(e,t)=>3*t-6*e,oj=e=>3*e,oS=(e,t,r)=>((ow(t,r)*e+oE(t,r))*e+oj(t))*e,oC=(e,t,r)=>3*ow(t,r)*e*e+2*oE(t,r)*e+oj(t),ok={linear:i9,easeIn:oe,easeInOut:or,easeOut:ot,circIn:on,circInOut:oo,circOut:oi,backIn:oa,backInOut:ol,backOut:os,anticipate:ou,bounceIn:op,bounceInOut:e=>e<.5?.5*(1-oh(1-2*e)):.5*oh(2*e-1)+.5,bounceOut:oh},oA=e=>{if(Array.isArray(e)){iy(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,i]=e;return function(e,t,r,n){if(e===t&&r===n)return i9;let i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=oS(.1*t,e,r);return o=>0===o||1===o?o:oS(function(t){let n=0,o=1;for(;10!==o&&i[o]<=t;++o)n+=.1;--o;let a=(t-i[o])/(i[o+1]-i[o]),s=n+.1*a,l=oC(s,e,r);return l>=.001?function(e,t,r,n){for(let i=0;i<8;++i){let i=oC(t,r,n);if(0===i)break;let o=oS(t,r,n)-e;t-=o/i}return t}(t,s,e,r):0===l?s:function(e,t,r,n,i){let o,a;let s=0;do(o=oS(a=t+(r-t)/2,n,i)-e)>0?r=a:t=a;while(Math.abs(o)>1e-7&&++s<10);return a}(t,n,n+.1,e,r)}(o),t,n)}(t,r,n,i)}return"string"==typeof e?(iy(void 0!==ok[e],`Invalid easing type '${e}'`),ok[e]):e},oO=e=>Array.isArray(e)&&"number"!=typeof e[0],oT=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&iY.test(t)&&!t.startsWith("url(")),o_=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),oM=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),oR=()=>({type:"keyframes",ease:"linear",duration:.3}),oN=e=>({type:"keyframes",duration:.8,values:e}),oP={x:o_,y:o_,z:o_,rotate:o_,rotateX:o_,rotateY:o_,rotateZ:o_,scaleX:oM,scaleY:oM,scale:oM,opacity:oR,backgroundColor:oR,color:oR,default:oM},oL=(e,t)=>({to:t,...(nD(t)?oN:oP[e]||oP.default)(t)}),oD=new Set(["brightness","contrast","saturate","opacity"]);function oI(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(ne)||[];if(!n)return e;let i=r.replace(n,""),o=oD.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}let oF=/([a-z-]*)\(.*?\)/g,oV=Object.assign(Object.assign({},iY),{getAnimatableNone:e=>{let t=e.match(oF);return t?t.map(oI).join(" "):e}}),oB={...nm,color:iz,backgroundColor:iz,outlineColor:iz,fill:iz,stroke:iz,borderColor:iz,borderTopColor:iz,borderRightColor:iz,borderBottomColor:iz,borderLeftColor:iz,filter:oV,WebkitFilter:oV},oU=e=>oB[e];function oz(e,t){var r;let n=oU(e);return n!==oV&&(n=iY),null===(r=n.getAnimatableNone)||void 0===r?void 0:r.call(n,t)}let oH={current:!1};function o$(e,t){let r=performance.now(),n=({timestamp:i})=>{let o=i-r;o>=t&&(rh.read(n),e(o-t))};return rf.read(n,!0),()=>rh.read(n)}let oW=!1;function oq(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function oG(e){return"number"==typeof e?0:oz("",e)}function oZ(e,t){return e[t]||e.default||e}function oY(e,t,r,n={}){return oH.current&&(n={type:!1}),t.start(i=>{let o,a;let s=function(e,t,r,n,i){let o=oZ(n,e)||{},a=void 0!==o.from?o.from:t.get(),s=oT(e,r);"none"===a&&s&&"string"==typeof r?a=oz(e,r):oq(a)&&"string"==typeof r?a=oG(r):!Array.isArray(r)&&oq(r)&&"string"==typeof a&&(r=oG(a));let l=oT(e,a);return ig(l===s,`You are trying to animate ${e} from "${a}" to "${r}". ${a} is not an animatable value - to enable this animation set ${a} to a value animatable to ${r} via the \`style\` property.`),l&&s&&!1!==o.type?function(){var n;let s={from:a,to:r,velocity:t.getVelocity(),onComplete:i,onUpdate:e=>t.set(e)};return"inertia"===o.type||"decay"===o.type?function({from:e=0,velocity:t=0,min:r,max:n,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:f,onStop:h}){let p;function m(e){return void 0!==r&&en}function v(e){return void 0===r?n:void 0===n?r:Math.abs(r-e){var r;null==d||d(t),null===(r=e.onUpdate)||void 0===r||r.call(e,t)},onComplete:f,onStop:h}))}function y(e){g(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:l},e))}if(m(e))y({from:e,velocity:t,to:v(e)});else{let n,a,s=i*t+e;void 0!==u&&(s=u(s));let c=v(s),d=c===r?-1:1;g({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:l,modifyTarget:u,onUpdate:m(s)?e=>{var r;n=a,a=e,t=(r=ry().delta)?(e-n)*(1e3/r):0,(1===d&&e>c||-1===d&&enull==p?void 0:p.stop()}}({...s,...o}):ob({...(n=o,Array.isArray(s.to)&&void 0===n.duration&&(n.duration=.8),Array.isArray(s.to)&&null===s.to[0]&&(s.to=[...s.to],s.to[0]=s.from),!function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,...u}){return!!Object.keys(u).length}(n)&&(n={...n,...oL(e,s.to)}),{...s,...function({ease:e,times:t,yoyo:r,flip:n,loop:i,...o}){let a={...o};return t&&(a.offset=t),o.duration&&(a.duration=ox(o.duration)),o.repeatDelay&&(a.repeatDelay=ox(o.repeatDelay)),e&&(a.ease=oO(e)?e.map(oA):oA(e)),"tween"===o.type&&(a.type="keyframes"),(r||i||n)&&(ig(!oW,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),oW=!0,r?a.repeatType="reverse":i?a.repeatType="loop":n&&(a.repeatType="mirror"),a.repeat=i||r||n||o.repeat),"spring"!==o.type&&(a.type="keyframes"),a}(n)}),onUpdate:e=>{s.onUpdate(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{s.onComplete(),o.onComplete&&o.onComplete()}})}:function(){let e=nF(r);return t.set(e),i(),o.onUpdate&&o.onUpdate(e),o.onComplete&&o.onComplete(),{stop:()=>{}}}}(e,t,r,n,i),l=function(e,t){var r,n;let i=oZ(e,t)||{};return null!==(n=null!==(r=i.delay)&&void 0!==r?r:e.delay)&&void 0!==n?n:0}(n,e),u=()=>o=s();return l?a=o$(u,ox(l)):u(),()=>{a&&a(),o&&o.stop()}})}let oX=e=>/^\-?\d*\.?\d+$/.test(e),oK=e=>/^0[^.\s]+$/.test(e);function oJ(e,t){-1===e.indexOf(t)&&e.push(t)}function oQ(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}class o0{constructor(){this.subscriptions=[]}add(e){return oJ(this.subscriptions,e),()=>oQ(this.subscriptions,e)}notify(e,t,r){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](e,t,r);else for(let i=0;i!isNaN(parseFloat(e));class o2{constructor(e){this.version="7.6.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new o0,this.velocityUpdateSubscribers=new o0,this.renderSubscribers=new o0,this.canTrackVelocity=!1,this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:r,timestamp:n}=ry();this.lastUpdated!==n&&(this.timeDelta=r,this.lastUpdated=n,rf.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),t&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>rf.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=o1(this.current)}onChange(e){return this.updateSubscribers.add(e)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(e){return e(this.get()),this.renderSubscribers.add(e)}attach(e){this.passiveEffect=e}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){var e,t;return this.canTrackVelocity?(e=parseFloat(this.current)-parseFloat(this.prev),(t=this.timeDelta)?e*(1e3/t):0):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.stopAnimation=e(t)}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function o4(e){return new o2(e)}let o3=e=>t=>t.test(e),o5=[nd,ns,na,no,nu,nl,{test:e=>"auto"===e,parse:e=>e}],o6=e=>o5.find(o3(e)),o8=[...o5,iz,iY],o7=e=>o8.find(o3(e));function o9(e,t,r){let n=e.getProps();return nL(n,t,void 0!==r?r:n.custom,function(e){let t={};return e.values.forEach((e,r)=>t[r]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,r)=>t[r]=e.getVelocity()),t}(e))}function ae(e){return!!(r4(e)&&e.add)}function at(e,t,r={}){var n;let i=o9(e,t,r.custom),{transition:o=e.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(o=r.transitionOverride);let a=i?()=>ar(e,i,r):()=>Promise.resolve(),s=(null===(n=e.variantChildren)||void 0===n?void 0:n.size)?(n=0)=>{let{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,r=0,n=0,i=1,o){let a=[],s=(e.variantChildren.size-1)*n,l=1===i?(e=0)=>e*n:(e=0)=>s-e*n;return Array.from(e.variantChildren).sort(an).forEach((e,n)=>{a.push(at(e,t,{...o,delay:r+l(n)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,i+n,a,s,r)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([a(),s(r.delay)]);{let[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then(t)}}function ar(e,t,{delay:r=0,transitionOverride:n,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t),u=e.getValue("willChange");n&&(a=n);let c=[],d=i&&(null===(o=e.animationState)||void 0===o?void 0:o.getState()[i]);for(let t in l){let n=e.getValue(t),i=l[t];if(!n||void 0===i||d&&function({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}(d,t))continue;let o={delay:r,...a};e.shouldReduceMotion&&r1.has(t)&&(o={...o,type:!1,delay:0});let s=oY(t,n,i,o);ae(u)&&(u.add(t),s=s.then(()=>u.remove(t))),c.push(s)}return Promise.all(c).then(()=>{s&&function(e,t){let r=o9(e,t),{transitionEnd:n={},transition:i={},...o}=r?e.makeTargetAnimatable(r,!1):{};for(let t in o={...o,...n}){let r=nF(o[t]);e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,o4(r))}}(e,s)})}function an(e,t){return e.sortNodePosition(t)}let ai=[wZ.Animate,wZ.InView,wZ.Focus,wZ.Hover,wZ.Tap,wZ.Drag,wZ.Exit],ao=[...ai].reverse(),aa=ai.length;function as(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let al={animation:id(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:r})=>(function(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t)){let i=t.map(t=>at(e,t,r));n=Promise.all(i)}else if("string"==typeof t)n=at(e,t,r);else{let i="function"==typeof t?o9(e,t,r.custom):t;n=ar(e,i,r)}return n.then(()=>e.notify("AnimationComplete",t))})(e,t,r))),r={[wZ.Animate]:as(!0),[wZ.InView]:as(),[wZ.Hover]:as(),[wZ.Tap]:as(),[wZ.Drag]:as(),[wZ.Focus]:as(),[wZ.Exit]:as()},n=!0,i=(t,r)=>{let n=o9(e,r);if(n){let{transition:e,transitionEnd:r,...i}=n;t={...t,...i,...r}}return t};function o(o,a){var s,l;let u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set,h={},p=1/0;for(let t=0;tp&&y,j=Array.isArray(g)?g:[g],S=j.reduce(i,{});!1===b&&(S={});let{prevResolvedValues:C={}}=v,k={...C,...S},A=e=>{E=!0,f.delete(e),v.needsAnimating[e]=!0};for(let e in k){let t=S[e],r=C[e];h.hasOwnProperty(e)||(t!==r?nD(t)&&nD(r)?!im(t,r)||w?A(e):v.protectedKeys[e]=!0:void 0!==t?A(e):f.add(e):void 0!==t&&f.has(e)?A(e):v.protectedKeys[e]=!0)}v.prevProp=g,v.prevResolvedValues=S,v.isActive&&(h={...h,...S}),n&&e.blockInitialAnimation&&(E=!1),E&&!x&&d.push(...j.map(e=>({animation:e,options:{type:m,...o}})))}if(f.size){let t={};f.forEach(r=>{let n=e.getBaseTarget(r);void 0!==n&&(t[r]=n)}),d.push({animation:t})}let m=!!d.length;return n&&!1===u.initial&&!e.manuallyAnimateOnMount&&(m=!1),n=!1,m?t(d):Promise.resolve()}return{animateChanges:o,setActive:function(t,n,i){var a;if(r[t].isActive===n)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)}),r[t].isActive=n;let s=o(i,t);for(let e in r)r[e].protectedKeys={};return s},setAnimateFunction:function(r){t=r(e)},getState:()=>r}}(e)),rV(t)&&(0,w.useEffect)(()=>t.subscribe(e),[t])}),exit:id(e=>{let{custom:t,visualElement:r}=e,[n,i]=ip(),o=(0,w.useContext)(rE);(0,w.useEffect)(()=>{r.isPresent=n;let e=r.animationState&&r.animationState.setActive(wZ.Exit,!n,{custom:o&&o.custom||t});e&&!n&&e.then(i)},[n])})},au=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),ac=e=>au(e)&&e.hasOwnProperty("z"),ad=(e,t)=>Math.abs(e-t);function af(e,t){if(iX(e)&&iX(t))return ad(e,t);if(au(e)&&au(t)){let r=ad(e.x,t.x),n=ad(e.y,t.y),i=ac(e)&&ac(t)?ad(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(i,2))}}class ah{constructor(e,t,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=av(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=af(e.offset,{x:0,y:0})>=3;if(!t&&!r)return;let{point:n}=e,{timestamp:i}=ry();this.history.push({...n,timestamp:i});let{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{if(this.lastMoveEvent=e,this.lastMoveEventInfo=ap(t,this.transformPagePoint),nW(e)&&0===e.buttons){this.handlePointerUp(e,t);return}rf.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:r,onSessionEnd:n}=this.handlers,i=av(ap(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,i),n&&n(e,i)},nq(e)&&e.touches.length>1)return;this.handlers=t,this.transformPagePoint=r;let n=nZ(e),i=ap(n,this.transformPagePoint),{point:o}=i,{timestamp:a}=ry();this.history=[{...o,timestamp:a}];let{onSessionStart:s}=t;s&&s(e,av(i,this.history)),this.removeListeners=ir(n2(window,"pointermove",this.handlePointerMove),n2(window,"pointerup",this.handlePointerUp),n2(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),rh.update(this.updatePoint)}}function ap(e,t){return t?{point:t(e.point)}:e}function am(e,t){return{x:e.x-t.x,y:e.y-t.y}}function av({point:e},t){return{point:e,delta:am(e,ag(t)),offset:am(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,i=ag(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>ox(.1)));)r--;if(!n)return{x:0,y:0};let o=(i.timestamp-n.timestamp)/1e3;if(0===o)return{x:0,y:0};let a={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function ag(e){return e[e.length-1]}function ay(e){return e.max-e.min}function ab(e,t=0,r=.01){return af(e,t)({translate:0,scale:1,origin:0,originPoint:0}),a_=()=>({x:aT(),y:aT()}),aM=()=>({min:0,max:0}),aR=()=>({x:aM(),y:aM()});function aN(e){return[e("x"),e("y")]}function aP({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function aL(e){return void 0===e||1===e}function aD({scale:e,scaleX:t,scaleY:r}){return!aL(e)||!aL(t)||!aL(r)}function aI(e){return aD(e)||aF(e)||e.z||e.rotate||e.rotateX||e.rotateY}function aF(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}function aV(e,t,r,n,i){return void 0!==i&&(e=n+i*(e-n)),n+r*(e-n)+t}function aB(e,t=0,r=1,n,i){e.min=aV(e.min,t,r,n,i),e.max=aV(e.max,t,r,n,i)}function aU(e,{x:t,y:r}){aB(e.x,t.translate,t.scale,t.originPoint),aB(e.y,r.translate,r.scale,r.originPoint)}function az(e,t){e.min=e.min+t,e.max=e.max+t}function aH(e,t,[r,n,i]){let o=void 0!==t[i]?t[i]:.5,a=iA(e.min,e.max,o);aB(e,t[r],t[n],a,t.scale)}let a$=["x","scaleX","originX"],aW=["y","scaleY","originY"];function aq(e,t){aH(e.x,t,a$),aH(e.y,t,aW)}function aG(e,t){return aP(function(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}let aZ=new WeakMap;class aY{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=aR(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){!1!==this.visualElement.isPresent&&(this.panSession=new ah(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(nZ(e,"page").point)},onStart:(e,t)=>{var r;let{drag:n,dragPropagation:i,onDragStart:o}=this.getProps();(!n||i||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=n8(n),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),aN(e=>{var t,r;let n=this.getAxisMotionValue(e).get()||0;if(na.test(n)){let i=null===(r=null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];if(i){let e=ay(i);n=e*(parseFloat(n)/100)}}this.originPoint[e]=n}),null==o||o(e,t),null===(r=this.visualElement.animationState)||void 0===r||r.setActive(wZ.Drag,!0))},onMove:(e,t)=>{let{dragPropagation:r,dragDirectionLock:n,onDirectionLock:i,onDrag:o}=this.getProps();if(!r&&!this.openGlobalLock)return;let{offset:a}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(a),null!==this.currentDirection&&(null==i||i(this.currentDirection));return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),null==o||o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()}))}stop(e,t){let r=this.isDragging;if(this.cancel(),!r)return;let{velocity:n}=t;this.startAnimation(n);let{onDragEnd:i}=this.getProps();null==i||i(e,t)}cancel(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(wZ.Drag,!1)}updateAxis(e,t,r){let{drag:n}=this.getProps();if(!r||!aX(e,n,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:r},n){return void 0!==t&&er&&(e=n?iA(r,e,n.max):Math.min(e,r)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:r}=this.visualElement.projection||{},n=this.constraints;e&&rI(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(e,{top:t,left:r,bottom:n,right:i}){return{x:aC(e.x,r,i),y:aC(e.y,t,n)}}(r.actual,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:aA(e,"left","right"),y:aA(e,"top","bottom")}}(t),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&aN(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(r.actual[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!rI(t))return!1;let n=t.current;iy(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,r){let n=aG(e,r),{scroll:i}=t;return i&&(az(n.x,i.x),az(n.y,i.y)),n}(n,i.root,this.visualElement.getTransformPagePoint()),a={x:ak((e=i.layout.actual).x,o.x),y:ak(e.y,o.y)};if(r){let e=r(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=aP(e))}return a}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=aN(a=>{var l;if(!aX(a,t,this.currentDirection))return;let u=null!==(l=null==s?void 0:s[a])&&void 0!==l?l:{};o&&(u={min:0,max:0});let c={type:"inertia",velocity:r?e[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...u};return this.startAxisValueAnimation(a,c)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return oY(e,r,0,t)}stopAnimation(){aN(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){var t,r;let n="_drag"+e.toUpperCase(),i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(e,null!==(r=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==r?r:0)}snapToCursor(e){aN(t=>{let{drag:r}=this.getProps();if(!aX(t,r,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(t);if(n&&n.layout){let{min:r,max:o}=n.layout.actual[t];i.set(e[t]-iA(r,o,.5))}})}scalePositionWithinConstraints(){var e;if(!this.visualElement.current)return;let{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!rI(r)||!n||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};aN(e=>{let t=this.getAxisMotionValue(e);if(t){let r=t.get();i[e]=function(e,t){let r=.5,n=ay(e),i=ay(t);return i>n?r=ik(t.min,t.max-n,e.min):n>i&&(r=ik(e.min,e.max-i,t.min)),ib(0,1,r)}({min:r,max:r},this.constraints[e])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",null===(e=n.root)||void 0===e||e.updateScroll(),n.updateLayout(),this.resolveConstraints(),aN(e=>{if(!aX(e,t,null))return;let r=this.getAxisMotionValue(e),{min:n,max:o}=this.constraints[e];r.set(iA(n,o,i[e]))})}addListeners(){var e;if(!this.visualElement.current)return;aZ.set(this.visualElement,this);let t=this.visualElement.current,r=n2(t,"pointerdown",e=>{let{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();rI(e)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",n);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),n();let a=nH(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(aN(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),r(),o(),null==s||s()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function aX(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}let aK={pan:id(function({onPan:e,onPanStart:t,onPanEnd:r,onPanSessionStart:n,visualElement:i}){let o=e||t||r||n,a=(0,w.useRef)(null),{transformPagePoint:s}=(0,w.useContext)(rP),l={onSessionStart:n,onStart:t,onMove:e,onEnd:(e,t)=>{a.current=null,r&&r(e,t)}};(0,w.useEffect)(()=>{null!==a.current&&a.current.updateHandlers(l)}),n4(i,"pointerdown",o&&function(e){a.current=new ah(e,l,{transformPagePoint:s})}),rT(()=>a.current&&a.current.end())}),drag:id(function(e){let{dragControls:t,visualElement:r}=e,n=rj(()=>new aY(r));(0,w.useEffect)(()=>t&&t.subscribe(n),[n,t]),(0,w.useEffect)(()=>n.addListeners(),[n])})};function aJ(e){return"string"==typeof e&&e.startsWith("var(--")}let aQ=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function a0(e,t,r=1){iy(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,i]=function(e){let t=aQ.exec(e);if(!t)return[,];let[,r,n]=t;return[r,n]}(e);if(!n)return;let o=window.getComputedStyle(t).getPropertyValue(n);return o?o.trim():aJ(i)?a0(i,t,r+1):i}let a1=new Set(["width","height","top","left","right","bottom","x","y"]),a2=e=>a1.has(e),a4=e=>Object.keys(e).some(a2),a3=(e,t)=>{e.set(t,!1),e.set(t)},a5=e=>e===nd||e===ns;(wV=wY||(wY={})).width="width",wV.height="height",wV.left="left",wV.right="right",wV.top="top",wV.bottom="bottom";let a6=(e,t)=>parseFloat(e.split(", ")[t]),a8=(e,t)=>(r,{transform:n})=>{if("none"===n||!n)return 0;let i=n.match(/^matrix3d\((.+)\)$/);if(i)return a6(i[1],t);{let t=n.match(/^matrix\((.+)\)$/);return t?a6(t[1],e):0}},a7=new Set(["x","y","z"]),a9=r0.filter(e=>!a7.has(e)),se={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:a8(4,13),y:a8(5,14)},st=(e,t,r)=>{let n=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),r.forEach(e=>{s[e]=se[e](n,o)}),t.render();let l=t.measureViewportBox();return r.forEach(r=>{let n=t.getValue(r);a3(n,s[r]),e[r]=se[r](l,o)}),e},sr=(e,t,r={},n={})=>{t={...t},n={...n};let i=Object.keys(t).filter(a2),o=[],a=!1,s=[];if(i.forEach(i=>{let l;let u=e.getValue(i);if(!e.hasValue(i))return;let c=r[i],d=o6(c),f=t[i];if(nD(f)){let e=f.length,t=null===f[0]?1:0;d=o6(c=f[t]);for(let r=t;r{let n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),a=!0),s.push(i),n[i]=void 0!==n[i]?n[i]:t[i],a3(u,f))}}),!s.length)return{target:t,transitionEnd:n};{let r=s.indexOf("height")>=0?window.pageYOffset:null,i=st(t,e,s);return o.length&&o.forEach(([t,r])=>{e.getValue(t).set(r)}),e.render(),rb&&null!==r&&window.scrollTo({top:r}),{target:i,transitionEnd:n}}},sn=(e,t,r,n)=>{var i,o;let a=function(e,{...t},r){let n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};for(let i in r&&(r={...r}),e.values.forEach(e=>{let t=e.get();if(!aJ(t))return;let r=a0(t,n);r&&e.set(r)}),t){let e=t[i];if(!aJ(e))continue;let o=a0(e,n);o&&(t[i]=o,r&&void 0===r[i]&&(r[i]=e))}return{target:t,transitionEnd:r}}(e,t,n);return t=a.target,n=a.transitionEnd,i=t,o=n,a4(i)?sr(e,i,r,o):{target:i,transitionEnd:o}},si={current:null},so={current:!1},sa=Object.keys(rW),ss=sa.length,sl=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class su{constructor({parent:e,props:t,reducedMotionConfig:r,visualState:n},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>rf.render(this.render,!1,!0);let{latestValues:o,renderState:a}=n;this.latestValues=o,this.baseTarget={...o},this.initialValues=t.initial?{...o}:{},this.renderState=a,this.parent=e,this.props=t,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=rU(t),this.isVariantNode=rz(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:s,...l}=this.scrapeMotionValuesFromProps(t);for(let e in l){let t=l[e];void 0!==o[e]&&r4(t)&&(t.set(o[e],!1),ae(s)&&s.add(e))}if(t.values)for(let e in t.values){let r=t.values[e];void 0!==o[e]&&r4(r)&&r.set(o[e])}}scrapeMotionValuesFromProps(e){return{}}mount(e){var t;this.current=e,this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===(t=this.parent)||void 0===t?void 0:t.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),so.current||function(){if(so.current=!0,rb){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>si.current=e.matches;e.addListener(t),t()}else si.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||si.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var e,t,r;for(let n in null===(e=this.projection)||void 0===e||e.unmount(),rh.update(this.notifyUpdate),rh.render(this.render),this.valueSubscriptions.forEach(e=>e()),null===(t=this.removeFromVariantTree)||void 0===t||t.call(this),null===(r=this.parent)||void 0===r||r.children.delete(this),this.events)this.events[n].clear();this.current=null}bindToMotionValue(e,t){let r=t.onChange(t=>{this.latestValues[e]=t,this.props.onUpdate&&rf.update(this.notifyUpdate,!1,!0)}),n=t.onRenderRequest(this.scheduleRender);this.valueSubscriptions.set(e,()=>{r(),n()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures(e,t,r,n,i,o){let a=[];"production"!==rr&&r&&t&&iy(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let t=0;tthis.scheduleRender(),animationType:"string"==typeof r?r:"both",initialPromotionConfig:o,layoutScroll:l})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):aR()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}setProps(e){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=e;for(let t=0;tr.variantChildren.delete(e)}addValue(e,t){this.hasValue(e)&&this.removeValue(e),this.values.set(e,t),this.latestValues[e]=t.get(),this.bindToMotionValue(e,t)}removeValue(e){var t;this.values.delete(e),null===(t=this.valueSubscriptions.get(e))||void 0===t||t(),this.valueSubscriptions.delete(e),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=o4(t),this.addValue(e,r)),r}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:r}=this.props,n="string"==typeof r||"object"==typeof r?null===(t=nL(this.props,r))||void 0===t?void 0:t[e]:void 0;if(r&&void 0!==n)return n;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||r4(i)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new o0),this.events[e].add(t)}notify(e,...t){var r;null===(r=this.events[e])||void 0===r||r.notify(...t)}}let sc=["initial",...ai],sd=sc.length;class sf extends su{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){var r;return null===(r=e.style)||void 0===r?void 0:r[t]}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...r},{transformValues:n},i){let o=function(e,t,r){var n;let i={};for(let o in e){let e=function(e,t){if(!t)return;let r=t[e]||t.default||t;return r.from}(o,t);i[o]=void 0!==e?e:null===(n=r.getValue(o))||void 0===n?void 0:n.get()}return i}(r,e||{},this);if(n&&(t&&(t=n(t)),r&&(r=n(r)),o&&(o=n(o))),i){!function(e,t,r){var n,i;let o=Object.keys(t).filter(t=>!e.hasValue(t)),a=o.length;if(a)for(let s=0;srJ(e)?new sp(t,{enableHardwareAcceleration:!1}):new sh(t,{enableHardwareAcceleration:!0});function sv(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let sg={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!ns.test(e))return e;e=parseFloat(e)}let r=sv(e,t.target.x),n=sv(e,t.target.y);return`${r}% ${n}%`}},sy="_$css",sb={correct:(e,{treeScale:t,projectionDelta:r})=>{let n=e,i=e.includes("var("),o=[];i&&(e=e.replace(aQ,e=>(o.push(e),sy)));let a=iY.parse(e);if(a.length>5)return n;let s=iY.createTransformer(e),l="number"!=typeof a[0]?1:0,u=r.x.scale*t.x,c=r.y.scale*t.y;a[0+l]/=u,a[1+l]/=c;let d=iA(u,c,.5);"number"==typeof a[2+l]&&(a[2+l]/=d),"number"==typeof a[3+l]&&(a[3+l]/=d);let f=s(a);if(i){let e=0;f=f.replace(sy,()=>{let t=o[e];return e++,t})}return f}};class sx extends w.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=e;Object.assign(rQ,sw),i&&(t.group&&t.group.add(i),r&&r.register&&n&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),rq.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:n,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,n||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent===i||(i?o.promote():o.relegate()||rf.postRender(()=>{var e;(null===(e=o.getStack())||void 0===e?void 0:e.members.length)||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),(null==t?void 0:t.group)&&t.group.remove(n),(null==r?void 0:r.deregister)&&r.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;null==e||e()}render(){return null}}let sw={borderRadius:{...sg,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sg,borderTopRightRadius:sg,borderBottomLeftRadius:sg,borderBottomRightRadius:sg,boxShadow:sb},sE=["TopLeft","TopRight","BottomLeft","BottomRight"],sj=sE.length,sS=e=>"string"==typeof e?parseFloat(e):e,sC=e=>"number"==typeof e||ns.test(e);function sk(e,t){var r;return null!==(r=e[t])&&void 0!==r?r:e.borderRadius}let sA=sT(0,.5,oi),sO=sT(.5,.95,i9);function sT(e,t,r){return n=>nt?1:r(ik(e,t,n))}function s_(e,t){e.min=t.min,e.max=t.max}function sM(e,t){s_(e.x,t.x),s_(e.y,t.y)}function sR(e,t,r,n,i){return e-=t,e=n+1/r*(e-n),void 0!==i&&(e=n+1/i*(e-n)),e}function sN(e,t,[r,n,i],o,a){!function(e,t=0,r=1,n=.5,i,o=e,a=e){if(na.test(t)){t=parseFloat(t);let e=iA(a.min,a.max,t/100);t=e-a.min}if("number"!=typeof t)return;let s=iA(o.min,o.max,n);e===o&&(s-=t),e.min=sR(e.min,t,r,s,i),e.max=sR(e.max,t,r,s,i)}(e,t[r],t[n],t[i],t.scale,o,a)}let sP=["x","scaleX","originX"],sL=["y","scaleY","originY"];function sD(e,t,r,n){sN(e.x,t,sP,null==r?void 0:r.x,null==n?void 0:n.x),sN(e.y,t,sL,null==r?void 0:r.y,null==n?void 0:n.y)}function sI(e){return 0===e.translate&&1===e.scale}function sF(e){return sI(e.x)&&sI(e.y)}function sV(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function sB(e){return ay(e.x)/ay(e.y)}class sU{constructor(){this.members=[]}add(e){oJ(this.members,e),e.scheduleRender()}remove(e){if(oQ(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let r=this.members.findIndex(t=>e===t);if(0===r)return!1;for(let e=r;e>=0;e--){let r=this.members[e];if(!1!==r.isPresent){t=r;break}}return!!t&&(this.promote(t),!0)}promote(e,t){var r;let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues,e.snapshot.isShared=!0),(null===(r=e.root)||void 0===r?void 0:r.isUpdating)&&(e.isLayoutDirty=!0);let{crossfade:i}=e.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{var t,r,n,i,o;null===(r=(t=e.options).onExitComplete)||void 0===r||r.call(t),null===(o=null===(n=e.resumingFrom)||void 0===n?void 0:(i=n.options).onExitComplete)||void 0===o||o.call(i)})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function sz(e,t,r){let n=e.x.translate/t.x,i=e.y.translate/t.y,o=`translate3d(${n}px, ${i}px, 0) `;if(o+=`scale(${1/t.x}, ${1/t.y}) `,r){let{rotate:e,rotateX:t,rotateY:n}=r;e&&(o+=`rotate(${e}deg) `),t&&(o+=`rotateX(${t}deg) `),n&&(o+=`rotateY(${n}deg) `)}let a=e.x.scale*t.x,s=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"==(o+=`scale(${a}, ${s})`)?"none":o}let sH=(e,t)=>e.depth-t.depth;class s${constructor(){this.children=[],this.isDirty=!1}add(e){oJ(this.children,e),this.isDirty=!0}remove(e){oQ(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(sH),this.isDirty=!1,this.children.forEach(e)}}let sW=["","X","Y","Z"];function sq({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(e,r={},n=null==t?void 0:t()){this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(sQ),this.nodes.forEach(s0)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=r,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(let e=0;ethis.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,r&&r(),r=o$(n,250),rq.hasAnimatedSinceResize&&(rq.hasAnimatedSinceResize=!1,this.nodes.forEach(sJ))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&a&&(i||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:n})=>{var i,o,s,l,u;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let c=null!==(o=null!==(i=this.options.transition)&&void 0!==i?i:a.getDefaultTransition())&&void 0!==o?o:s6,{onLayoutAnimationStart:d,onLayoutAnimationComplete:f}=a.getProps(),h=!this.targetLayout||!sV(this.targetLayout,n)||r,p=!t&&r;if((null===(s=this.resumeFrom)||void 0===s?void 0:s.instance)||p||t&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,p);let t={...oZ(c,"layout"),onPlay:d,onComplete:f};a.shouldReduceMotion&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||sJ(this),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=n})}unmount(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,rh.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1}startUpdate(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(s1))}willUpdate(e=!0){var t,r,n;if(this.root.isUpdateBlocked()){null===(r=(t=this.options).onExitComplete)||void 0===r||r.call(t);return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;let e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));s9(t),this.snapshot={measured:e,layout:t,latestValues:{}}}updateLayout(){var e;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e=((null===(r=this.getStack())||void 0===r?void 0:r.members.length)||0),c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(s5));this.animationProgress=0,this.mixTargetDelta=t=>{var r,n,d;let f=t/1e3;s4(a.x,e.x,f),s4(a.y,e.y,f),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(r=this.relativeParent)||void 0===r?void 0:r.layout)&&(aS(s,this.layout.actual,this.relativeParent.layout.actual),n=this.relativeTarget,d=this.relativeTargetOrigin,s3(n.x,d.x,s.x,f),s3(n.y,d.y,s.y,f)),l&&(this.animationValues=o,function(e,t,r,n,i,o){var a,s,l,u;i?(e.opacity=iA(0,null!==(a=r.opacity)&&void 0!==a?a:1,sA(n)),e.opacityExit=iA(null!==(s=t.opacity)&&void 0!==s?s:1,0,sO(n))):o&&(e.opacity=iA(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=r.opacity)&&void 0!==u?u:1,n));for(let i=0;i{rq.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,r={}){let n=r4(e)?e:o4(e);return oY("",n,1e3,r),{stop:()=>n.stop(),isAnimating:()=>n.isAnimating()}}(0,0,{...e,onUpdate:t=>{var r;this.mixTargetDelta(t),null===(r=e.onUpdate)||void 0===r||r.call(e,t)},onComplete:()=>{var t;null===(t=e.onComplete)||void 0===t||t.call(e),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:r,layout:n,latestValues:i}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&le(this.options.animationType,this.layout.actual,n.actual)){r=this.target||aR();let t=ay(this.layout.actual.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let n=ay(this.layout.actual.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}sM(t,r),aq(t,i),aw(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){var r,n,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new sU);let o=this.sharedNodes.get(e);o.add(t),t.promote({transition:null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.transition,preserveFollowOpacity:null===(i=null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(n,t)})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){let n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,r={};for(let n=0;n{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(sX),this.root.sharedNodes.clear()}}}function sG(e){e.updateLayout()}function sZ(e){var t,r,n;let i=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){let{actual:t,measured:r}=e.layout,{animationType:n}=e.options;"size"===n?aN(e=>{let r=i.isShared?i.measured[e]:i.layout[e],n=ay(r);r.min=t[e].min,r.max=r.min+n}):le(n,i.layout,t)&&aN(e=>{let r=i.isShared?i.measured[e]:i.layout[e],n=ay(t[e]);r.max=r.min+n});let o=a_();aw(o,t,i.layout);let a=a_();i.isShared?aw(a,e.applyTransform(r,!0),i.measured):aw(a,t,i.layout);let s=!sF(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:e,layout:n}=r;if(e&&n){let r=aR();aS(r,i.layout,e.layout);let o=aR();aS(o,t,n.actual),sV(r,o)||(l=!0)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:s,hasRelativeTargetChanged:l})}else e.isLead()&&(null===(n=(r=e.options).onExitComplete)||void 0===n||n.call(r));e.options.transition=void 0}function sY(e){e.clearSnapshot()}function sX(e){e.clearMeasurements()}function sK(e){let{visualElement:t}=e.options;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sJ(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function sQ(e){e.resolveTargetDelta()}function s0(e){e.calcProjection()}function s1(e){e.resetRotation()}function s2(e){e.removeLeadSnapshot()}function s4(e,t,r){e.translate=iA(t.translate,0,r),e.scale=iA(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function s3(e,t,r,n){e.min=iA(t.min,r.min,n),e.max=iA(t.max,r.max,n)}function s5(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let s6={duration:.45,ease:[.4,0,.1,1]};function s8(e,t){let r=e.root;for(let t=e.path.length-1;t>=0;t--)if(e.path[t].instance){r=e.path[t];break}let n=r&&r!==e.root?r.instance:document,i=n.querySelector(`[data-projection-id="${t}"]`);i&&e.mount(i,!0)}function s7(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function s9(e){s7(e.x),s7(e.y)}function le(e,t,r){return"position"===e||"preserve-aspect"===e&&!function(e,t,r=.1){return af(e,t)<=r}(sB(t),sB(r),.2)}let lt=sq({attachResizeListener:(e,t)=>nH(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),lr={current:void 0},ln=sq({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!lr.current){let e=new lt(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),lr.current=e}return lr.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),li={...al,...ih,...aK,measureLayout:function(e){let[t,r]=ip(),n=(0,w.useContext)(rO);return w.createElement(sx,{...e,layoutGroup:n,switchLayoutGroup:(0,w.useContext)(rY),isPresent:t,safeToRemove:r})}},lo=function(e){function t(t,r={}){return function({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:r,useRender:n,useVisualState:i,Component:o}){e&&function(e){for(let t in e)"projectionNodeConstructor"===t?rW.projectionNodeConstructor=e[t]:rW[t].Component=e[t]}(e);let a=(0,w.forwardRef)(function(a,s){var l;let u={...(0,w.useContext)(rP),...a,layoutId:function({layoutId:e}){let t=(0,w.useContext)(rO).id;return t&&void 0!==e?t+"-"+e:e}(a)},{isStatic:c}=u,d=null,f=function(e){let{initial:t,animate:r}=function(e,t){if(rU(e)){let{initial:t,animate:r}=e;return{initial:!1===t||rF(t)?t:void 0,animate:rF(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,w.useContext)(rL));return(0,w.useMemo)(()=>({initial:t,animate:r}),[rH(t),rH(r)])}(a),h=c?void 0:rj(()=>{if(rq.hasEverUpdated)return rG++}),p=i(a,c);if(!c&&rb){f.visualElement=function(e,t,r,n){let i=(0,w.useContext)(rL).visualElement,o=(0,w.useContext)(rD),a=(0,w.useContext)(rE),s=(0,w.useContext)(rP).reducedMotion,l=(0,w.useRef)();n=n||o.renderer,!l.current&&n&&(l.current=n(e,{visualState:t,parent:i,props:r,presenceId:a?a.id:void 0,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));let u=l.current;return rx(()=>{u&&u.render()}),(0,w.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),rx(()=>()=>u&&u.notify("Unmount"),[]),u}(o,p,u,t);let n=(0,w.useContext)(rD).strict,i=(0,w.useContext)(rY);f.visualElement&&(d=f.visualElement.loadFeatures(u,n,e,h,r||rW.projectionNodeConstructor,i))}return w.createElement(rZ,{visualElement:f.visualElement,props:u},d,w.createElement(rL.Provider,{value:f},n(o,a,h,(l=f.visualElement,(0,w.useCallback)(e=>{e&&p.mount&&p.mount(e),l&&(e?l.mount(e):l.unmount()),s&&("function"==typeof s?s(e):rI(s)&&(s.current=e))},[l])),p,c,f.visualElement)))});return a[rX]=o,a}(e(t,r))}if("undefined"==typeof Proxy)return t;let r=new Map;return new Proxy(t,{get:(e,n)=>(r.has(n)||r.set(n,t(n)),r.get(n))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},r,n,i){let o=rJ(e)?nU:nz;return{...o,preloadedFeatures:r,useRender:function(e=!1){return(t,r,n,i,{latestValues:o},a)=>{let s=rJ(t)?nO:nb,l=s(r,o,a),u=function(e,t,r){let n={};for(let i in e)(nE(i)||!0===r&&nw(i)||!t&&!nw(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}(r,"string"==typeof t,e),c={...u,...l,ref:i};return n&&(c["data-projection-id"]=n),(0,w.createElement)(t,c)}}(t),createVisualElement:n,projectionNodeConstructor:i,Component:e}})(e,t,li,sm,ln));function la(e){let{open:t,onOpenChange:r}=e,[n,i]=(0,w.useState)(!1),o=(0,w.useMemo)(()=>r?t:n,[r,n,t]),a=(0,w.useCallback)(e=>{r?r(e):i(e)},[r]);return{open:o,onOpenChange:a}}let ls={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}};function ll(e){let{children:t,content:r,defaultOpen:n,open:i,onOpenChange:o,delayDuration:a=300,disableHoverableContent:s,...l}=e,{open:u,onOpenChange:c}=la({open:i,onOpenChange:o});return(0,x.jsxs)(t3,{open:u,delayDuration:a,disableHoverableContent:s,defaultOpen:n,onOpenChange:c,children:[(0,x.jsx)(tZ,{asChild:!0,children:t}),(0,x.jsx)(rN,{children:r&&u?(0,x.jsx)(t5,{forceMount:!0,children:(0,x.jsx)(tQ,{forceMount:!0,asChild:!0,side:"top",align:"center",sideOffset:l.sideOffset||5,...l,children:(0,x.jsx)(lo.div,{variants:ls,initial:"init",animate:"show",exit:"exit",className:(0,ey.cx)("relative","z-50","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"),children:(0,x.jsx)("div",{className:(0,ey.cx)("py-1 px-2","max-w-xs","overflow-hidden",t9()),children:(0,x.jsx)(t7,{size:"12",children:r})})})})}):null})]})}let lu=(0,ey.j)(["inline-flex","gap-1","appearance-none","shrink-0","items-center","justify-center","select-none","leading-normal","font-sans","cursor-pointer","overflow-hidden","focus:z-10","disabled:cursor-auto","disabled:pointer-events-none","outline-none","focus:ring ring-blue-500 dark:ring-blue-200","transition-colors duration-75"],{variants:{size:{small:["text-xs","px-2","h-7"],medium:["text-base","px-4","h-10"],large:["text-lg","px-4","h-12"],none:[]},state:{waiting:["pointer-events-none"]},disabled:{true:"cursor-auto pointer-events-none"},rounded:{true:"rounded",false:""},variant:{accent:["border","text-white dark:text-white","enabled:bg-green-700 enabled:dark:bg-green-700","enabled:border-green-800/30 enabled:dark:border-green-600/70","enabled:hover:bg-green-800/90 dark:enabled:hover:bg-green-700/90","enabled:hover:border-green-800/50 enabled:hover:dark:border-green-600","disabled:text-white/50 disabled:dark:text-white/50","disabled:bg-green-700/70 disabled:dark:bg-green-600/70","disabled:border-green-600/50 disabled:dark:border-green-500/30","[&[href]]:bg-green-700 [&[href]]:dark:bg-green-700","[&[href]]:border-green-800/30 [&[href]]:dark:border-green-600/70","[&[href]]:hover:bg-green-800/90 dark:[&[href]]:hover:bg-green-700/90","[&[href]]:hover:border-green-800/50 [href]]:hover:dark:border-green-600"],red:["border","bg-red-700 dark:bg-red-700","border-red-800/30 dark:border-red-600/70","enabled:hover:bg-red-800/90 dark:enabled:hover:bg-red-700/90","enabled:hover:border-red-800/50 enabled:hover:dark:border-red-600","disabled:bg-red-700/70 disabled:dark:bg-red-600/70","disabled:border-red-600/50 disabled:dark:border-red-500/30","text-white dark:text-white","disabled:text-white/50 disabled:dark:text-white/50"],amber:["border","bg-amber-700 dark:bg-amber-700","border-amber-800/30 dark:border-amber-600/70","enabled:hover:bg-amber-800/90 dark:enabled:hover:bg-amber-700/90","enabled:hover:border-amber-800/50 enabled:hover:dark:border-amber-600","disabled:bg-amber-700/70 disabled:dark:bg-amber-600/70","disabled:border-amber-600/50 disabled:dark:border-amber-500/30","text-white dark:text-white","disabled:text-white/50 disabled:dark:text-white/50"],gray:["border","bg-white dark:bg-graydark-200","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100 dark:text-gray-300","disabled:text-gray-600 disabled:dark:text-graydark-700"],active:["border","bg-gray-200 dark:bg-graydark-400","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-500 dark:border-graydark-500","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],inactive:["border","bg-white dark:bg-graydark-200","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-400/70 dark:border-graydark-400/70","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100/30 dark:text-white/30","enabled:hover:text-gray-1100 enabled:hover:dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],ghost:["appearance-none border-none bg-transparent","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],state:["open:text-gray-1100 open:dark:text-white","hover:text-gray-1000 hover:dark:text-graydark-1000","text-gray-700 dark:text-graydark-800"]},icon:{contrast:"",hover:"[&>svg]:opacity-50 hover:[&>svg]:opacity-100 transition-opacity",subtle:"[&>svg]:opacity-50"},color:{verySubtle:"!text-gray-700 dark:!text-graydark-700",subtle:"!text-gray-1000 dark:!text-graydark-1000",contrast:"!text-gray-1100 dark:!text-white",lo:"!text-white dark:!text-graydark-50",accent:"!text-accent-1100 dark:!text-accentdark-1100",red:"!text-red-700 dark:!text-red-400",green:"!text-emerald-700 dark:!text-emerald-500",amber:"!text-amber-600 dark:!text-amber-500",none:""}},defaultVariants:{variant:"gray",size:"small",rounded:!0,icon:"subtle",color:"none"}}),lc=w.forwardRef((e,t)=>{let{variant:r,size:n,state:i,rounded:o,disabled:a,icon:s,color:l,tip:u,tipAlign:c,tipSide:d,className:f,type:h="button",...p}=e;return u?(0,x.jsx)(ll,{content:u,align:c,side:d,children:(0,x.jsx)("button",{ref:t,type:h,disabled:a,className:lu({variant:r,size:n,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})}):(0,x.jsx)("button",{ref:t,disabled:a,type:h,className:lu({variant:r,size:n,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})});var ld=r(20876);(0,ey.j)([],{variants:{variant:{default:"border-t border-gray-500 dark:border-graydark-500 last-of-type:border-b",ghost:""}},defaultVariants:{variant:"default"}});let lf=(0,ey.j)("border border-gray-500 dark:border-graydark-500 bg-gray-100 dark:bg-graydark-100 rounded p-4"),lh=w.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,x.jsx)("div",{...n,className:lf({className:r}),ref:t})}),lp="Avatar",[lm,lv]=C(lp),[lg,ly]=lm(lp),lb=(0,w.forwardRef)((e,t)=>{let{__scopeAvatar:r,...n}=e,[i,o]=(0,w.useState)("idle");return(0,w.createElement)(lg,{scope:r,imageLoadingStatus:i,onImageLoadingStatusChange:o},(0,w.createElement)(I.span,j({},n,{ref:t})))}),lx=(0,w.forwardRef)((e,t)=>{let{__scopeAvatar:r,src:n,onLoadingStatusChange:i=()=>{},...o}=e,a=ly("AvatarImage",r),s=function(e){let[t,r]=(0,w.useState)("idle");return(0,w.useEffect)(()=>{if(!e){r("error");return}let t=!0,n=new window.Image,i=e=>()=>{t&&r(e)};return r("loading"),n.onload=i("loaded"),n.onerror=i("error"),n.src=e,()=>{t=!1}},[e]),t}(n),l=P(e=>{i(e),a.onImageLoadingStatusChange(e)});return V(()=>{"idle"!==s&&l(s)},[s,l]),"loaded"===s?(0,w.createElement)(I.img,j({},o,{ref:t,src:n})):null}),lw=(0,w.forwardRef)((e,t)=>{let{__scopeAvatar:r,delayMs:n,...i}=e,o=ly("AvatarFallback",r),[a,s]=(0,w.useState)(void 0===n);return(0,w.useEffect)(()=>{if(void 0!==n){let e=window.setTimeout(()=>s(!0),n);return()=>window.clearTimeout(e)}},[n]),a&&"loaded"!==o.imageLoadingStatus?(0,w.createElement)(I.span,j({},i,{ref:t})):null}),lE=(0,ey.j)(["items-center justify-center align-middle flex flex-shrink-0 relative","overflow-hidden select-none outline-none","font-sans font-medium text-sm","border"],{variants:{size:{1:"w-6 h-6",2:"w-12 h-12",3:"w-16 h-16",4:"w-28 h-28"},variant:{filter:"bg-transparent",hiContrast:["bg-gray-900 dark:bg-white text-white dark:text-gray-1100","border-gray-900 dark:border-white text-white dark:text-gray-1100"],gray:["bg-gray-500 dark:bg-gray-800 text-gray-1100 dark:text-white","border-gray-500 dark:border-gray-800 text-gray-1100 dark:text-white"]},shape:{square:"rounded",circle:"rounded-full"},inactive:{true:"opacity-30"},interactive:{true:"cursor-pointer"}},defaultVariants:{size:"2",variant:"gray",shape:"circle"}}),lj=(0,ey.j)("uppercase",{variants:{size:{1:"text-sm",2:"text-base",3:"text-lg",4:"text-lg"}},defaultVariants:{size:"2"}}),lS=w.forwardRef((e,t)=>{let{alt:r,src:n,fallback:i,size:o,variant:a,shape:s,interactive:l,inactive:u,className:c,...d}=e;return(0,x.jsx)("div",{className:(0,ey.cx)("relative h-fit w-fit",c),children:(0,x.jsxs)(lb,{...d,ref:t,className:lE({className:c,size:o,variant:a,interactive:l,inactive:u,shape:s}),children:["filter"===a&&(0,x.jsx)("div",{className:"absolute w-full h-full z-10",style:{backgroundColor:"rgba(30, 169, 76, 0.3)"}}),(0,x.jsx)(lx,{alt:r,src:n,className:"flex object-cover h-full align-middle w-full"}),(0,x.jsx)(lw,{className:lj({size:o}),children:i})]})})}),lC=(0,ey.j)(["items-center appearance-none inline-flex flex-shrink-0 whitespace-nowrap","font-sans font-regular text-sm","justify-center align-middle outline-none p-0 decoration-none select-none","disabled:pointer-events-none","py-0.5 px-2"],{variants:{variant:{active:["border","bg-gray-800 text-gray-900 border-gray-900","dark:bg-transparent dark:text-white dark:border-white/10"],simple:"bg-gray-300 dark:bg-graydark-800 text-gray-900 dark:text-white",green:["border","[&>svg]:opacity-50","bg-green-700 dark:bg-green-700","border-green-800/30 dark:border-green-600/70","hover:bg-green-800/90 dark:hover:bg-green-700/90","hover:border-green-800/50 hover:dark:border-green-600","text-white dark:text-white"],accent:["border","[&>svg]:opacity-50","bg-green-700 dark:bg-green-700","border-green-800/30 dark:border-green-600/70","hover:bg-green-800/90 dark:hover:bg-green-700/90","hover:border-green-800/50 hover:dark:border-green-600","text-white dark:text-white"],red:["border","[&>svg]:opacity-50","bg-red-700 dark:bg-red-700","border-red-800/30 dark:border-red-600/70","hover:bg-red-800/90 dark:hover:bg-red-700/90","hover:border-red-800/50 hover:dark:border-red-600","text-white dark:text-white"],amber:["border","[&>svg]:opacity-50","bg-amber-700 dark:bg-amber-700","border-amber-800/30 dark:border-amber-600/70","hover:bg-amber-800/90 dark:hover:bg-amber-700/90","hover:border-amber-800/50 hover:dark:border-amber-600","text-white dark:text-white"],gray:["border","[&>svg]:opacity-50","bg-white dark:bg-graydark-200","border-gray-400 dark:border-graydark-400","hover:bg-gray-50 dark:hover:bg-graydark-300","hover:border-gray-500 hover:dark:border-graydark-500","text-gray-1100 dark:text-white"],inactive:["border","[&>svg]:opacity-50","bg-white dark:bg-transparent","border-gray-400 dark:border-graydark-400","hover:border-gray-500 hover:dark:border-graydark-500","text-gray-1100/30 dark:text-white/30","hover:text-gray-1100/50 hover:dark:text-white/50"]},interactive:{true:"cursor-pointer"},rounded:{true:"rounded",false:""}},defaultVariants:{variant:"gray",rounded:!0}}),lk=w.forwardRef((e,t)=>{let{variant:r,interactive:n,rounded:i,className:o,...a}=e;return(0,x.jsx)("div",{...a,className:lC({variant:r,interactive:n,rounded:i,className:o}),ref:t})}),lA=(0,ey.j)(["font-mono","whitespace-nowrap","rounded"],{variants:{color:{gray:["bg-gray-200 dark:bg-graydark-200","text-gray-1100 dark:text-graydark-1100"],accent:["bg-accent-200 dark:bg-accentdark-200","text-accent-1100 dark:text-accentdark-1100"]}},defaultVariants:{color:"accent"}}),lO=w.forwardRef((e,t)=>{let{color:r,className:n,...i}=e;return(0,x.jsx)("code",{...i,className:lA({color:r,className:n}),ref:t})}),lT=(0,ey.j)(["flex","relative","[&>*]:rounded-none [&>*:last-child]:rounded-r [&>*:first-child]:rounded-l","[&>*]:border-r-0 [&>*]:border-l [&>*:first-child]:border-l [&>*:last-child]:border-r"]),l_=w.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,x.jsx)("div",{ref:t,className:lT({className:r}),...n})});(0,ey.j)(["select-none appearance-none outline-none overflow-hidden","inline-flex items-center justify-center","focus:ring ring-blue-500 dark:ring-blue-200","border","bg-gray-300 dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","disabled:cursor-default","enabled:data-[state=checked]:bg-green-600 dark:enabled:data-[state=checked]:bg-green-500","disabled:data-[state=checked]:bg-green-600/50 dark:disabled:data-[state=checked]:bg-green-500/50"],{variants:{size:{small:"w-4 h-4 rounded",medium:"w-6 h-6 rounded"}},defaultVariants:{size:"small"}});let lM=(0,ey.j)(["flex-shrink-0 w-full mx-auto"],{variants:{pad:{true:"px-5 md:px-10",false:""},size:{1:"max-w-screen-sm",2:"max-w-screen-md",3:"max-w-[1145px]",4:"max-w-screen-2xl",full:"max-w-none"}},defaultVariants:{pad:!0,size:"3"}}),lR=w.forwardRef((e,t)=>{let{className:r,pad:n,size:i,...o}=e;return(0,x.jsx)("div",{ref:t,...o,className:lM({size:i,pad:n,className:r})})}),lN="focusScope.autoFocusOnMount",lP="focusScope.autoFocusOnUnmount",lL={bubbles:!1,cancelable:!0},lD=(0,w.forwardRef)((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=e,[s,l]=(0,w.useState)(null),u=P(i),c=P(o),d=(0,w.useRef)(null),f=A(t,e=>l(e)),h=(0,w.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,w.useEffect)(()=>{if(n){function e(e){if(h.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:lV(d.current,{select:!0})}function t(e){h.paused||!s||s.contains(e.relatedTarget)||lV(d.current,{select:!0})}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}},[n,s,h.paused]),(0,w.useEffect)(()=>{if(s){lB.add(h);let e=document.activeElement,t=s.contains(e);if(!t){let t=new CustomEvent(lN,lL);s.addEventListener(lN,u),s.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(lV(n,{select:t}),document.activeElement!==r)return}(lI(s).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&lV(s))}return()=>{s.removeEventListener(lN,u),setTimeout(()=>{let t=new CustomEvent(lP,lL);s.addEventListener(lP,c),s.dispatchEvent(t),t.defaultPrevented||lV(null!=e?e:document.body,{select:!0}),s.removeEventListener(lP,c),lB.remove(h)},0)}}},[s,u,c,h]);let p=(0,w.useCallback)(e=>{if(!r&&!n||h.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[n,o]=function(e){let t=lI(e),r=lF(t,e),n=lF(t.reverse(),e);return[r,n]}(t),a=n&&o;a?e.shiftKey||i!==o?e.shiftKey&&i===n&&(e.preventDefault(),r&&lV(o,{select:!0})):(e.preventDefault(),r&&lV(n,{select:!0})):i===t&&e.preventDefault()}},[r,n,h.paused]);return(0,w.createElement)(I.div,j({tabIndex:-1},a,{ref:f,onKeyDown:p}))});function lI(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function lF(e,t){for(let r of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function lV(e,{select:t=!1}={}){if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}let lB=(s=[],{add(e){let t=s[0];e!==t&&(null==t||t.pause()),(s=lU(s,e)).unshift(e)},remove(e){var t;null===(t=(s=lU(s,e))[0])||void 0===t||t.resume()}});function lU(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}let lz=0;function lH(){(0,w.useEffect)(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=r[0])&&void 0!==e?e:l$()),document.body.insertAdjacentElement("beforeend",null!==(t=r[1])&&void 0!==t?t:l$()),lz++,()=>{1===lz&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),lz--}},[])}function l$(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var lW=function(){return(lW=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}"function"==typeof SuppressedError&&SuppressedError;var lG="right-scroll-bar-position",lZ="width-before-scroll-bar",lY=(void 0===wB&&(wB={}),(void 0===wU&&(wU=function(e){return e}),wz=[],wH=!1,w$={read:function(){if(wH)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return wz.length?wz[wz.length-1]:null},useMedium:function(e){var t=wU(e,wH);return wz.push(t),function(){wz=wz.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(wH=!0;wz.length;){var t=wz;wz=[],t.forEach(e)}wz={push:function(t){return e(t)},filter:function(){return wz}}},assignMedium:function(e){wH=!0;var t=[];if(wz.length){var r=wz;wz=[],r.forEach(e),t=wz}var n=function(){var r=t;t=[],r.forEach(e)},i=function(){return Promise.resolve().then(n)};i(),wz={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),wz}}}}).options=lW({async:!0,ssr:!1},wB),w$),lX=function(){},lK=w.forwardRef(function(e,t){var r,n,i,o=w.useRef(null),a=w.useState({onScrollCapture:lX,onWheelCapture:lX,onTouchMoveCapture:lX}),s=a[0],l=a[1],u=e.forwardProps,c=e.children,d=e.className,f=e.removeScrollBar,h=e.enabled,p=e.shards,m=e.sideCar,v=e.noIsolation,g=e.inert,y=e.allowPinchZoom,b=e.as,x=void 0===b?"div":b,E=lq(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),j=(r=[o,t],n=function(e){return r.forEach(function(t){return"function"==typeof t?t(e):t&&(t.current=e),t})},(i=(0,w.useState)(function(){return{value:null,callback:n,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=n,i.facade),S=lW(lW({},E),s);return w.createElement(w.Fragment,null,h&&w.createElement(m,{sideCar:lY,removeScrollBar:f,shards:p,noIsolation:v,inert:g,setCallbacks:l,allowPinchZoom:!!y,lockRef:o}),u?w.cloneElement(w.Children.only(c),lW(lW({},S),{ref:j})):w.createElement(x,lW({},S,{className:d,ref:j}),c))});lK.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},lK.classNames={fullWidth:lZ,zeroRight:lG};var lJ=function(e){var t=e.sideCar,r=lq(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return w.createElement(n,lW({},r))};lJ.isSideCarExport=!0;var lQ=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=wX||r.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},l0=function(){var e=lQ();return function(t,r){w.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},l1=function(){var e=l0();return function(t){return e(t.styles,t.dynamic),null}},l2={left:0,top:0,right:0,gap:0},l4=function(e){return parseInt(e||"",10)||0},l3=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[l4(r),l4(n),l4(i)]},l5=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return l2;var t=l3(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},l6=l1(),l8=function(e,t,r,n){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(s,"px ").concat(n,";\n }\n body {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(lG," {\n right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(lZ," {\n margin-right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(lG," .").concat(lG," {\n right: 0 ").concat(n,";\n }\n \n .").concat(lZ," .").concat(lZ," {\n margin-right: 0 ").concat(n,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},l7=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=void 0===n?"margin":n,o=w.useMemo(function(){return l5(i)},[i]);return w.createElement(l6,{styles:l8(o,!t,i,r?"":"!important")})},l9=!1;if("undefined"!=typeof window)try{var ue=Object.defineProperty({},"passive",{get:function(){return l9=!0,!0}});window.addEventListener("test",ue,ue),window.removeEventListener("test",ue,ue)}catch(e){l9=!1}var ut=!!l9&&{passive:!1},ur=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)},un=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)},ui=function(e,t){var r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),uo(e,r)){var n=ua(e,r);if(n[1]>n[2])return!0}r=r.parentNode}while(r&&r!==document.body);return!1},uo=function(e,t){return"v"===e?ur(t):un(t)},ua=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},us=function(e,t,r,n,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*n,l=r.target,u=t.contains(l),c=!1,d=s>0,f=0,h=0;do{var p=ua(e,l),m=p[0],v=p[1]-p[2]-a*m;(m||v)&&uo(e,l)&&(f+=v,h+=m),l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&0===f||!i&&s>f)?c=!0:!d&&(i&&0===h||!i&&-s>h)&&(c=!0),c},ul=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},uu=function(e){return[e.deltaX,e.deltaY]},uc=function(e){return e&&"current"in e?e.current:e},ud=0,uf=[],uh=(lY.useMedium(function(e){var t=w.useRef([]),r=w.useRef([0,0]),n=w.useRef(),i=w.useState(ud++)[0],o=w.useState(function(){return l1()})[0],a=w.useRef(e);w.useEffect(function(){a.current=e},[e]),w.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;iMath.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=ui(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=ui(d,c)),!f)return!1;if(!n.current&&"changedTouches"in e&&(l||u)&&(n.current=i),!i)return!0;var h=n.current||i;return us(h,t,e,"h"===h?l:u,!0)},[]),l=w.useCallback(function(e){if(uf.length&&uf[uf.length-1]===o){var r="deltaY"in e?uu(e):ul(e),n=t.current.filter(function(t){var n;return t.name===e.type&&t.target===e.target&&(n=t.delta)[0]===r[0]&&n[1]===r[1]})[0];if(n&&n.should){e.preventDefault();return}if(!n){var i=(a.current.shards||[]).map(uc).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!a.current.noIsolation)&&e.preventDefault()}}},[]),u=w.useCallback(function(e,r,n,i){var o={name:e,delta:r,target:n,should:i};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),c=w.useCallback(function(e){r.current=ul(e),n.current=void 0},[]),d=w.useCallback(function(t){u(t.type,uu(t),t.target,s(t,e.lockRef.current))},[]),f=w.useCallback(function(t){u(t.type,ul(t),t.target,s(t,e.lockRef.current))},[]);w.useEffect(function(){return uf.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,ut),document.addEventListener("touchmove",l,ut),document.addEventListener("touchstart",c,ut),function(){uf=uf.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,ut),document.removeEventListener("touchmove",l,ut),document.removeEventListener("touchstart",c,ut)}},[]);var h=e.removeScrollBar,p=e.inert;return w.createElement(w.Fragment,null,p?w.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,h?w.createElement(l7,{gapMode:"margin"}):null)}),lJ),up=w.forwardRef(function(e,t){return w.createElement(lK,lW({},e,{ref:t,sideCar:uh}))});up.classNames=lK.classNames;var um=new WeakMap,uv=new WeakMap,ug={},uy=0,ub=function(e,t,r){void 0===t&&(t="undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body),void 0===r&&(r="data-aria-hidden");var n=Array.isArray(e)?e:[e];ug[r]||(ug[r]=new WeakMap);var i=ug[r],o=[],a=new Set,s=function(e){!e||a.has(e)||(a.add(e),s(e.parentNode))};n.forEach(s);var l=function(e){!e||n.indexOf(e)>=0||Array.prototype.forEach.call(e.children,function(e){if(a.has(e))l(e);else{var t=e.getAttribute("aria-hidden"),n=null!==t&&"false"!==t,s=(um.get(e)||0)+1,u=(i.get(e)||0)+1;um.set(e,s),i.set(e,u),o.push(e),1===s&&n&&uv.set(e,!0),1===u&&e.setAttribute(r,"true"),n||e.setAttribute("aria-hidden","true")}})};return l(t),a.clear(),uy++,function(){o.forEach(function(e){var t=um.get(e)-1,n=i.get(e)-1;um.set(e,t),i.set(e,n),t||(uv.has(e)||e.removeAttribute("aria-hidden"),uv.delete(e)),n||e.removeAttribute(r)}),--uy||(um=new WeakMap,um=new WeakMap,uv=new WeakMap,ug={})}};let ux="Dialog",[uw,uE]=C(ux),[uj,uS]=uw(ux),uC=(0,w.forwardRef)((e,t)=>{let{__scopeDialog:r,...n}=e,i=uS("DialogTrigger",r),o=A(t,i.triggerRef);return(0,w.createElement)(I.button,j({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":uU(i.open)},n,{ref:o,onClick:N(e.onClick,i.onOpenToggle)}))}),uk="DialogPortal",[uA,uO]=uw(uk,{forceMount:void 0}),uT="DialogOverlay",u_=(0,w.forwardRef)((e,t)=>{let r=uO(uT,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=uS(uT,e.__scopeDialog);return o.modal?(0,w.createElement)(B,{present:n||o.open},(0,w.createElement)(uM,j({},i,{ref:t}))):null}),uM=(0,w.forwardRef)((e,t)=>{let{__scopeDialog:r,...n}=e,i=uS(uT,r);return(0,w.createElement)(up,{as:O,allowPinchZoom:!0,shards:[i.contentRef]},(0,w.createElement)(I.div,j({"data-state":uU(i.open)},n,{ref:t,style:{pointerEvents:"auto",...n.style}})))}),uR="DialogContent",uN=(0,w.forwardRef)((e,t)=>{let r=uO(uR,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=uS(uR,e.__scopeDialog);return(0,w.createElement)(B,{present:n||o.open},o.modal?(0,w.createElement)(uP,j({},i,{ref:t})):(0,w.createElement)(uL,j({},i,{ref:t})))}),uP=(0,w.forwardRef)((e,t)=>{let r=uS(uR,e.__scopeDialog),n=(0,w.useRef)(null),i=A(t,r.contentRef,n);return(0,w.useEffect)(()=>{let e=n.current;if(e)return ub(e)},[]),(0,w.createElement)(uD,j({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:N(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:N(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;n&&e.preventDefault()}),onFocusOutside:N(e.onFocusOutside,e=>e.preventDefault())}))}),uL=(0,w.forwardRef)((e,t)=>{let r=uS(uR,e.__scopeDialog),n=(0,w.useRef)(!1);return(0,w.createElement)(uD,j({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,o;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(n.current||null===(o=r.triggerRef.current)||void 0===o||o.focus(),t.preventDefault()),n.current=!1},onInteractOutside:t=>{var i,o;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(n.current=!0);let a=t.target,s=null===(o=r.triggerRef.current)||void 0===o?void 0:o.contains(a);s&&t.preventDefault()}}))}),uD=(0,w.forwardRef)((e,t)=>{let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:o,...a}=e,s=uS(uR,r),l=(0,w.useRef)(null),u=A(t,l);return lH(),(0,w.createElement)(w.Fragment,null,(0,w.createElement)(lD,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:o},(0,w.createElement)(ew,j({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":uU(s.open)},a,{ref:u,onDismiss:()=>s.onOpenChange(!1)}))),!1)}),uI="DialogTitle",uF=(0,w.forwardRef)((e,t)=>{let{__scopeDialog:r,...n}=e,i=uS(uI,r);return(0,w.createElement)(I.h2,j({id:i.titleId},n,{ref:t}))}),uV=(0,w.forwardRef)((e,t)=>{let{__scopeDialog:r,...n}=e,i=uS("DialogDescription",r);return(0,w.createElement)(I.p,j({id:i.descriptionId},n,{ref:t}))}),uB=(0,w.forwardRef)((e,t)=>{let{__scopeDialog:r,...n}=e,i=uS("DialogClose",r);return(0,w.createElement)(I.button,j({type:"button"},n,{ref:t,onClick:N(e.onClick,()=>i.onOpenChange(!1))}))});function uU(e){return e?"open":"closed"}let[uz,uH]=S("DialogTitleWarning",{contentName:uR,titleName:uI,docsSlug:"dialog"}),u$=e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:i,onOpenChange:o,modal:a=!0}=e,s=(0,w.useRef)(null),l=(0,w.useRef)(null),[u=!1,c]=L({prop:n,defaultProp:i,onChange:o});return(0,w.createElement)(uj,{scope:t,triggerRef:s,contentRef:l,contentId:$(),titleId:$(),descriptionId:$(),open:u,onOpenChange:c,onOpenToggle:(0,w.useCallback)(()=>c(e=>!e),[c]),modal:a},r)},uW=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:i}=e,o=uS(uk,t);return(0,w.createElement)(uA,{scope:t,forceMount:r},w.Children.map(n,e=>(0,w.createElement)(B,{present:r||o.open},(0,w.createElement)(tD,{asChild:!0,container:i},e))))},uq=(0,w.createContext)(void 0);function uG(e){let t=(0,w.useContext)(uq);return e||t||"ltr"}let uZ="ScrollArea",[uY,uX]=C(uZ),[uK,uJ]=uY(uZ),uQ=(0,w.forwardRef)((e,t)=>{let{__scopeScrollArea:r,type:n="hover",dir:i,scrollHideDelay:o=600,...a}=e,[s,l]=(0,w.useState)(null),[u,c]=(0,w.useState)(null),[d,f]=(0,w.useState)(null),[h,p]=(0,w.useState)(null),[m,v]=(0,w.useState)(null),[g,y]=(0,w.useState)(0),[b,x]=(0,w.useState)(0),[E,S]=(0,w.useState)(!1),[C,k]=(0,w.useState)(!1),O=A(t,e=>l(e)),T=uG(i);return(0,w.createElement)(uK,{scope:r,type:n,dir:T,scrollHideDelay:o,scrollArea:s,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:h,onScrollbarXChange:p,scrollbarXEnabled:E,onScrollbarXEnabledChange:S,scrollbarY:m,onScrollbarYChange:v,scrollbarYEnabled:C,onScrollbarYEnabledChange:k,onCornerWidthChange:y,onCornerHeightChange:x},(0,w.createElement)(I.div,j({dir:T},a,{ref:O,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":b+"px",...e.style}})))}),u0=(0,w.forwardRef)((e,t)=>{let{__scopeScrollArea:r,children:n,...i}=e,o=uJ("ScrollAreaViewport",r),a=(0,w.useRef)(null),s=A(t,a,o.onViewportChange);return(0,w.createElement)(w.Fragment,null,(0,w.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),(0,w.createElement)(I.div,j({"data-radix-scroll-area-viewport":""},i,{ref:s,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style}}),(0,w.createElement)("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"}},n)))}),u1="ScrollAreaScrollbar",u2=(0,w.forwardRef)((e,t)=>{let{forceMount:r,...n}=e,i=uJ(u1,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:a}=i,s="horizontal"===e.orientation;return(0,w.useEffect)(()=>(s?o(!0):a(!0),()=>{s?o(!1):a(!1)}),[s,o,a]),"hover"===i.type?(0,w.createElement)(u4,j({},n,{ref:t,forceMount:r})):"scroll"===i.type?(0,w.createElement)(u3,j({},n,{ref:t,forceMount:r})):"auto"===i.type?(0,w.createElement)(u5,j({},n,{ref:t,forceMount:r})):"always"===i.type?(0,w.createElement)(u6,j({},n,{ref:t})):null}),u4=(0,w.forwardRef)((e,t)=>{let{forceMount:r,...n}=e,i=uJ(u1,e.__scopeScrollArea),[o,a]=(0,w.useState)(!1);return(0,w.useEffect)(()=>{let e=i.scrollArea,t=0;if(e){let r=()=>{window.clearTimeout(t),a(!0)},n=()=>{t=window.setTimeout(()=>a(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",r),e.addEventListener("pointerleave",n),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",r),e.removeEventListener("pointerleave",n)}}},[i.scrollArea,i.scrollHideDelay]),(0,w.createElement)(B,{present:r||o},(0,w.createElement)(u5,j({"data-state":o?"visible":"hidden"},n,{ref:t})))}),u3=(0,w.forwardRef)((e,t)=>{var r;let{forceMount:n,...i}=e,o=uJ(u1,e.__scopeScrollArea),a="horizontal"===e.orientation,s=cp(()=>u("SCROLL_END"),100),[l,u]=(r={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},(0,w.useReducer)((e,t)=>{let n=r[e][t];return null!=n?n:e},"hidden"));return(0,w.useEffect)(()=>{if("idle"===l){let e=window.setTimeout(()=>u("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(e)}},[l,o.scrollHideDelay,u]),(0,w.useEffect)(()=>{let e=o.viewport,t=a?"scrollLeft":"scrollTop";if(e){let r=e[t],n=()=>{let n=e[t],i=r!==n;i&&(u("SCROLL"),s()),r=n};return e.addEventListener("scroll",n),()=>e.removeEventListener("scroll",n)}},[o.viewport,a,u,s]),(0,w.createElement)(B,{present:n||"hidden"!==l},(0,w.createElement)(u6,j({"data-state":"hidden"===l?"hidden":"visible"},i,{ref:t,onPointerEnter:N(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:N(e.onPointerLeave,()=>u("POINTER_LEAVE"))})))}),u5=(0,w.forwardRef)((e,t)=>{let r=uJ(u1,e.__scopeScrollArea),{forceMount:n,...i}=e,[o,a]=(0,w.useState)(!1),s="horizontal"===e.orientation,l=cp(()=>{if(r.viewport){let e=r.viewport.offsetWidth{let{orientation:r="vertical",...n}=e,i=uJ(u1,e.__scopeScrollArea),o=(0,w.useRef)(null),a=(0,w.useRef)(0),[s,l]=(0,w.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=cu(s.viewport,s.content),c={...n,sizes:s,onSizesChange:l,hasThumb:!!(u>0&&u<1),onThumbChange:e=>o.current=e,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:e=>a.current=e};function d(e,t){return function(e,t,r,n="ltr"){let i=cc(r),o=t||i/2,a=r.scrollbar.paddingStart+o,s=r.scrollbar.size-r.scrollbar.paddingEnd-(i-o),l=r.content-r.viewport,u=cf([a,s],"ltr"===n?[0,l]:[-1*l,0]);return u(e)}(e,a.current,s,t)}return"horizontal"===r?(0,w.createElement)(u8,j({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=i.viewport.scrollLeft,t=cd(e,s,i.dir);o.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,i.dir))}})):"vertical"===r?(0,w.createElement)(u7,j({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=i.viewport.scrollTop,t=cd(e,s);o.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}})):null}),u8=(0,w.forwardRef)((e,t)=>{let{sizes:r,onSizesChange:n,...i}=e,o=uJ(u1,e.__scopeScrollArea),[a,s]=(0,w.useState)(),l=(0,w.useRef)(null),u=A(t,l,o.onScrollbarXChange);return(0,w.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,w.createElement)(ct,j({"data-orientation":"horizontal"},i,{ref:u,sizes:r,style:{bottom:0,left:"rtl"===o.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===o.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":cc(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,r)=>{if(o.viewport){let n=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(n),n>0&&n{l.current&&o.viewport&&a&&n({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:cl(a.paddingLeft),paddingEnd:cl(a.paddingRight)}})}}))}),u7=(0,w.forwardRef)((e,t)=>{let{sizes:r,onSizesChange:n,...i}=e,o=uJ(u1,e.__scopeScrollArea),[a,s]=(0,w.useState)(),l=(0,w.useRef)(null),u=A(t,l,o.onScrollbarYChange);return(0,w.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,w.createElement)(ct,j({"data-orientation":"vertical"},i,{ref:u,sizes:r,style:{top:0,right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":cc(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,r)=>{if(o.viewport){let n=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(n),n>0&&n{l.current&&o.viewport&&a&&n({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:cl(a.paddingTop),paddingEnd:cl(a.paddingBottom)}})}}))}),[u9,ce]=uY(u1),ct=(0,w.forwardRef)((e,t)=>{let{__scopeScrollArea:r,sizes:n,hasThumb:i,onThumbChange:o,onThumbPointerUp:a,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,h=uJ(u1,r),[p,m]=(0,w.useState)(null),v=A(t,e=>m(e)),g=(0,w.useRef)(null),y=(0,w.useRef)(""),b=h.viewport,x=n.content-n.viewport,E=P(c),S=P(l),C=cp(d,10);function k(e){if(g.current){let t=e.clientX-g.current.left,r=e.clientY-g.current.top;u({x:t,y:r})}}return(0,w.useEffect)(()=>{let e=e=>{let t=e.target,r=null==p?void 0:p.contains(t);r&&E(e,x)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[b,p,x,E]),(0,w.useEffect)(S,[n,S]),cm(p,C),cm(h.content,C),(0,w.createElement)(u9,{scope:r,scrollbar:p,hasThumb:i,onThumbChange:P(o),onThumbPointerUp:P(a),onThumbPositionChange:S,onThumbPointerDown:P(s)},(0,w.createElement)(I.div,j({},f,{ref:v,style:{position:"absolute",...f.style},onPointerDown:N(e.onPointerDown,e=>{if(0===e.button){let t=e.target;t.setPointerCapture(e.pointerId),g.current=p.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",k(e)}}),onPointerMove:N(e.onPointerMove,k),onPointerUp:N(e.onPointerUp,e=>{let t=e.target;t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=y.current,g.current=null})})))}),cr="ScrollAreaThumb",cn=(0,w.forwardRef)((e,t)=>{let{forceMount:r,...n}=e,i=ce(cr,e.__scopeScrollArea);return(0,w.createElement)(B,{present:r||i.hasThumb},(0,w.createElement)(ci,j({ref:t},n)))}),ci=(0,w.forwardRef)((e,t)=>{let{__scopeScrollArea:r,style:n,...i}=e,o=uJ(cr,r),a=ce(cr,r),{onThumbPositionChange:s}=a,l=A(t,e=>a.onThumbChange(e)),u=(0,w.useRef)(),c=cp(()=>{u.current&&(u.current(),u.current=void 0)},100);return(0,w.useEffect)(()=>{let e=o.viewport;if(e){let t=()=>{if(c(),!u.current){let t=ch(e,s);u.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[o.viewport,c,s]),(0,w.createElement)(I.div,j({"data-state":a.hasThumb?"visible":"hidden"},i,{ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:N(e.onPointerDownCapture,e=>{let t=e.target,r=t.getBoundingClientRect(),n=e.clientX-r.left,i=e.clientY-r.top;a.onThumbPointerDown({x:n,y:i})}),onPointerUp:N(e.onPointerUp,a.onThumbPointerUp)}))}),co="ScrollAreaCorner",ca=(0,w.forwardRef)((e,t)=>{let r=uJ(co,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY),i="scroll"!==r.type&&n;return i?(0,w.createElement)(cs,j({},e,{ref:t})):null}),cs=(0,w.forwardRef)((e,t)=>{let{__scopeScrollArea:r,...n}=e,i=uJ(co,r),[o,a]=(0,w.useState)(0),[s,l]=(0,w.useState)(0);return cm(i.scrollbarX,()=>{var e;let t=(null===(e=i.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;i.onCornerHeightChange(t),l(t)}),cm(i.scrollbarY,()=>{var e;let t=(null===(e=i.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;i.onCornerWidthChange(t),a(t)}),o&&s?(0,w.createElement)(I.div,j({},n,{ref:t,style:{width:o,height:s,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...e.style}})):null});function cl(e){return e?parseInt(e,10):0}function cu(e,t){let r=e/t;return isNaN(r)?0:r}function cc(e){let t=cu(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function cd(e,t,r="ltr"){let n=cc(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,a=t.content-t.viewport,s="ltr"===r?[0,a]:[-1*a,0],l=function(e,[t,r]){return Math.min(r,Math.max(t,e))}(e,s),u=cf([0,a],[0,o-n]);return u(l)}function cf(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}let ch=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return!function i(){let o={left:e.scrollLeft,top:e.scrollTop},a=r.left!==o.left,s=r.top!==o.top;(a||s)&&t(),r=o,n=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(n)};function cp(e,t){let r=P(e),n=(0,w.useRef)(0);return(0,w.useEffect)(()=>()=>window.clearTimeout(n.current),[]),(0,w.useCallback)(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function cm(e,t){let r=P(t);V(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}let cv=w.forwardRef((e,t)=>{let{id:r,className:n,style:i,children:o,keyToResetScrollbars:a}=e;return(0,x.jsxs)(uQ,{className:(0,ey.cx)("w-full h-full overflow-hidden",n),style:i,children:[(0,x.jsx)(u0,{id:r,ref:t,className:"w-full h-full [&>div]:!block [&>div]:!h-full",children:o}),(0,x.jsx)(u2,{orientation:"vertical",className:"z-10 flex select-none touch-none transition-colors hover:bg-black/20 w-1.5 m-px",children:(0,x.jsx)(cn,{className:(0,ey.cx)("flex-1 relative bg-gray-300 rounded",'before:content[""] before:absolute before:top-1/2 before:left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full')})},a?"v-".concat(a):void 0),(0,x.jsx)(u2,{orientation:"horizontal",className:"z-10 flex flex-col select-none touch-none transition-colors duration-1000 hover:bg-black/20 h-1 m-px",children:(0,x.jsx)(cn,{className:(0,ey.cx)("flex-1 relative bg-gray-300 rounded",'before:content[""] before:absolute before:top-1/2 before:left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full')})},a?"h-".concat(a):void 0),(0,x.jsx)(ca,{className:"bg-black/70"})]})}),cg=(0,ey.j)(["z-20","overflow-hidden"],{variants:{variant:{default:"flex items-center justify-center w-full h-full",none:""}},defaultVariants:{variant:"default"}}),cy={show:{scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},cb=w.forwardRef((e,t)=>{let{trigger:r,rootProps:n,open:i,onOpenChange:o,onSubmit:a,title:s,description:l,containerVariants:u,contentVariants:c,controls:d,children:f,bodyClassName:h,closeClassName:p,dynamicHeight:m=!0}=e,{open:v,onOpenChange:g}=la({open:i,onOpenChange:o});return(0,x.jsxs)(u$,{open:v,onOpenChange:g,...n,children:[r&&(0,x.jsx)(uC,{asChild:!0,children:r}),(0,x.jsx)(rN,{children:v?(0,x.jsx)(uW,{forceMount:!0,children:(0,x.jsx)(uN,{asChild:!0,forceMount:!0,ref:t,children:(0,x.jsxs)("div",{className:"fixed w-full h-full top-0 left-0 z-20",children:[(0,x.jsx)(u_,{onClick:()=>g(!1),className:"fixed z-10 top-0 right-0 bottom-0 left-0 inset-0 transition-opacity opacity-0 open:opacity-10 dark:open:opacity-20 bg-black"}),(0,x.jsx)(lo.div,{variants:cy,initial:"init",animate:"show",exit:"exit",className:cg(u),children:(0,x.jsx)(cE,{title:s,description:l,contentVariants:c,onSubmit:a,controls:d,bodyClassName:h,closeClassName:p,dynamicHeight:m,children:f})})]})})}):null})]})});function cx(e){let{className:t}=e;return(0,x.jsx)(uB,{asChild:!0,type:"button",children:(0,x.jsx)("div",{className:(0,ey.cx)("appearance-none",t),children:(0,x.jsx)(lc,{size:"small",variant:"ghost",type:"button",children:(0,x.jsx)(ld.QN4,{})})})})}let cw=(0,ey.j)(["relative","z-40","overflow-hidden"],{variants:{variant:{default:[t9()],none:""}},defaultVariants:{variant:"default"}}),cE=w.forwardRef((e,t)=>{let{children:r,onSubmit:n,title:i,description:o,controls:a,contentVariants:s,closeClassName:l,bodyClassName:u,dynamicHeight:c=!0}=e,{ref:d,height:f}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t,r]=(0,w.useState)(0),n=(0,w.useRef)(null);return(0,w.useLayoutEffect)(()=>{if(!n.current)return;let e=n.current,t=()=>r(e.clientHeight);t(),n.current.addEventListener("resize",t);let i=new ResizeObserver(t);return i.observe(e),()=>{e.removeEventListener("resize",t),i.unobserve(e)}},e),{ref:n,height:t}}([r,o]),[h,p]=(0,w.useState)(!1);return(0,w.useEffect)(()=>{p(f>.7*window.innerHeight)},[f]),(0,x.jsxs)(n?"form":"div",{onSubmit:n,ref:t,className:cw(s),children:[i&&(0,x.jsx)(uF,{className:cj({showSeparator:h}),children:i}),(0,x.jsx)(cv,{style:{height:c?"".concat(f,"px"):void 0,maxHeight:c?"70vh":void 0},children:(0,x.jsxs)("div",{ref:d,className:(0,ey.cx)("p-4",u),children:[o&&(0,x.jsx)(uV,{className:cS(),children:o}),r]})}),a&&(0,x.jsx)(cC,{separator:h,children:a}),(0,x.jsx)(cx,{className:l||"absolute top-3.5 right-2"})]})}),cj=(0,ey.j)(["pt-4 pb-2 px-4 w-full",t6({size:"20",weight:"semibold",font:"sans",color:"contrast"})],{variants:{showSeparator:{true:"border-b border-gray-200 dark:border-graydark-200"}}}),cS=(0,ey.j)([t6({color:"subtle",size:"14"}),"py-2"]);function cC(e){let{children:t,separator:r=!0}=e;return(0,x.jsx)("div",{className:(0,ey.cx)("py-2 mx-3",r?"border-t border-gray-200 dark:border-graydark-200":""),children:t})}let ck="rovingFocusGroup.onEntryFocus",cA={bubbles:!1,cancelable:!0},cO="RovingFocusGroup",[cT,c_,cM]=R(cO),[cR,cN]=C(cO,[cM]),[cP,cL]=cR(cO),cD=(0,w.forwardRef)((e,t)=>(0,w.createElement)(cT.Provider,{scope:e.__scopeRovingFocusGroup},(0,w.createElement)(cT.Slot,{scope:e.__scopeRovingFocusGroup},(0,w.createElement)(cI,j({},e,{ref:t}))))),cI=(0,w.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:o,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,...c}=e,d=(0,w.useRef)(null),f=A(t,d),h=uG(o),[p=null,m]=L({prop:a,defaultProp:s,onChange:l}),[v,g]=(0,w.useState)(!1),y=P(u),b=c_(r),x=(0,w.useRef)(!1);return(0,w.useEffect)(()=>{let e=d.current;if(e)return e.addEventListener(ck,y),()=>e.removeEventListener(ck,y)},[y]),(0,w.createElement)(cP,{scope:r,orientation:n,dir:h,loop:i,currentTabStopId:p,onItemFocus:(0,w.useCallback)(e=>m(e),[m]),onItemShiftTab:(0,w.useCallback)(()=>g(!0),[])},(0,w.createElement)(I.div,j({tabIndex:v?-1:0,"data-orientation":n},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:N(e.onMouseDown,()=>{x.current=!0}),onFocus:N(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(ck,cA);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable),t=e.find(e=>e.active),r=e.find(e=>e.id===p),n=[t,r,...e].filter(Boolean),i=n.map(e=>e.ref.current);cB(i)}}x.current=!1}),onBlur:N(e.onBlur,()=>g(!1))})))}),cF=(0,w.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,...o}=e,a=$(),s=cL("RovingFocusGroupItem",r),l=s.currentTabStopId===a,u=c_(r);return(0,w.createElement)(cT.ItemSlot,{scope:r,id:a,focusable:n,active:i},(0,w.createElement)(I.span,j({tabIndex:l?0:-1,"data-orientation":s.orientation},o,{ref:t,onMouseDown:N(e.onMouseDown,e=>{n?s.onItemFocus(a):e.preventDefault()}),onFocus:N(e.onFocus,()=>s.onItemFocus(a)),onKeyDown:N(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){s.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let i=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return cV[i]}(e,s.orientation,s.dir);if(void 0!==t){e.preventDefault();let i=u().filter(e=>e.focusable),o=i.map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=s.loop?(r=o,n=i+1,r.map((e,t)=>r[(n+t)%r.length])):o.slice(i+1)}setTimeout(()=>cB(o))}})})))}),cV={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function cB(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}let cU=["Enter"," "],cz=["ArrowUp","PageDown","End"],cH=["ArrowDown","PageUp","Home",...cz],c$={ltr:[...cU,"ArrowRight"],rtl:[...cU,"ArrowLeft"]},cW={ltr:["ArrowLeft"],rtl:["ArrowRight"]},cq="Menu",[cG,cZ,cY]=R(cq),[cX,cK]=C(cq,[cY,tb,cN]),cJ=tb(),cQ=cN(),[c0,c1]=cX(cq),[c2,c4]=cX(cq),c3=(0,w.forwardRef)((e,t)=>{let{__scopeMenu:r,...n}=e,i=cJ(r);return(0,w.createElement)(tE,j({},i,n,{ref:t}))}),c5="MenuPortal",[c6,c8]=cX(c5,{forceMount:void 0}),c7="MenuContent",[c9,de]=cX(c7),dt=(0,w.forwardRef)((e,t)=>{let r=c8(c7,e.__scopeMenu),{forceMount:n=r.forceMount,...i}=e,o=c1(c7,e.__scopeMenu),a=c4(c7,e.__scopeMenu);return(0,w.createElement)(cG.Provider,{scope:e.__scopeMenu},(0,w.createElement)(B,{present:n||o.open},(0,w.createElement)(cG.Slot,{scope:e.__scopeMenu},a.modal?(0,w.createElement)(dr,j({},i,{ref:t})):(0,w.createElement)(dn,j({},i,{ref:t})))))}),dr=(0,w.forwardRef)((e,t)=>{let r=c1(c7,e.__scopeMenu),n=(0,w.useRef)(null),i=A(t,n);return(0,w.useEffect)(()=>{let e=n.current;if(e)return ub(e)},[]),(0,w.createElement)(di,j({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:N(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)}))}),dn=(0,w.forwardRef)((e,t)=>{let r=c1(c7,e.__scopeMenu);return(0,w.createElement)(di,j({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)}))}),di=(0,w.forwardRef)((e,t)=>{let{__scopeMenu:r,loop:n=!1,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f,disableOutsideScroll:h,...p}=e,m=c1(c7,r),v=c4(c7,r),g=cJ(r),y=cQ(r),b=cZ(r),[x,E]=(0,w.useState)(null),S=(0,w.useRef)(null),C=A(t,S,m.onContentChange),k=(0,w.useRef)(0),T=(0,w.useRef)(""),_=(0,w.useRef)(0),M=(0,w.useRef)(null),R=(0,w.useRef)("right"),P=(0,w.useRef)(0),L=h?up:w.Fragment,D=h?{as:O,allowPinchZoom:!0}:void 0,I=e=>{var t,r;let n=T.current+e,i=b().filter(e=>!e.disabled),o=document.activeElement,a=null===(t=i.find(e=>e.ref.current===o))||void 0===t?void 0:t.textValue,s=i.map(e=>e.textValue),l=function(e,t,r){var n;let i=t.length>1&&Array.from(t).every(e=>e===t[0]),o=i?t[0]:t,a=r?e.indexOf(r):-1,s=(n=Math.max(a,0),e.map((t,r)=>e[(n+r)%e.length])),l=1===o.length;l&&(s=s.filter(e=>e!==r));let u=s.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return u!==r?u:void 0}(s,n,a),u=null===(r=i.find(e=>e.textValue===l))||void 0===r?void 0:r.ref.current;!function e(t){T.current=t,window.clearTimeout(k.current),""!==t&&(k.current=window.setTimeout(()=>e(""),1e3))}(n),u&&setTimeout(()=>u.focus())};(0,w.useEffect)(()=>()=>window.clearTimeout(k.current),[]),lH();let F=(0,w.useCallback)(e=>{var t,r;let n=R.current===(null===(t=M.current)||void 0===t?void 0:t.side);return n&&function(e,t){if(!t)return!1;let r={x:e.clientX,y:e.clientY};return function(e,t){let{x:r,y:n}=e,i=!1;for(let e=0,o=t.length-1;en!=u>n&&r<(l-a)*(n-s)/(u-s)+a;c&&(i=!i)}return i}(r,t)}(e,null===(r=M.current)||void 0===r?void 0:r.area)},[]);return(0,w.createElement)(c9,{scope:r,searchRef:T,onItemEnter:(0,w.useCallback)(e=>{F(e)&&e.preventDefault()},[F]),onItemLeave:(0,w.useCallback)(e=>{var t;F(e)||(null===(t=S.current)||void 0===t||t.focus(),E(null))},[F]),onTriggerLeave:(0,w.useCallback)(e=>{F(e)&&e.preventDefault()},[F]),pointerGraceTimerRef:_,onPointerGraceIntentChange:(0,w.useCallback)(e=>{M.current=e},[])},(0,w.createElement)(L,D,(0,w.createElement)(lD,{asChild:!0,trapped:i,onMountAutoFocus:N(o,e=>{var t;e.preventDefault(),null===(t=S.current)||void 0===t||t.focus()}),onUnmountAutoFocus:a},(0,w.createElement)(ew,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f},(0,w.createElement)(cD,j({asChild:!0},y,{dir:v.dir,orientation:"vertical",loop:n,currentTabStopId:x,onCurrentTabStopIdChange:E,onEntryFocus:e=>{v.isUsingKeyboardRef.current||e.preventDefault()}}),(0,w.createElement)(tO,j({role:"menu","aria-orientation":"vertical","data-state":dx(m.open),dir:v.dir},g,p,{ref:C,style:{outline:"none",...p.style},onKeyDown:N(p.onKeyDown,e=>{let t=e.target,r=t.closest('[role="menu"]')===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,i=1===e.key.length;r&&("Tab"===e.key&&e.preventDefault(),!n&&i&&I(e.key));let o=S.current;if(e.target!==o||!cH.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled),s=a.map(e=>e.ref.current);cz.includes(e.key)&&s.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(s)}),onBlur:N(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(k.current),T.current="")}),onPointerMove:N(e.onPointerMove,dE(e=>{let t=e.target,r=P.current!==e.clientX;if(e.currentTarget.contains(t)&&r){let t=e.clientX>P.current?"right":"left";R.current=t,P.current=e.clientX}}))})))))))}),da=(0,w.forwardRef)((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,w.createElement)(I.div,j({role:"group"},n,{ref:t}))}),ds=(0,w.forwardRef)((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,w.createElement)(I.div,j({},n,{ref:t}))}),dl="MenuItem",du="menu.itemSelect",dc=(0,w.forwardRef)((e,t)=>{let{disabled:r=!1,onSelect:n,...i}=e,o=(0,w.useRef)(null),a=c4(dl,e.__scopeMenu),s=de(dl,e.__scopeMenu),l=A(t,o),u=(0,w.useRef)(!1);return(0,w.createElement)(dd,j({},i,{ref:l,disabled:r,onClick:N(e.onClick,()=>{let e=o.current;if(!r&&e){let t=new CustomEvent(du,{bubbles:!0,cancelable:!0});e.addEventListener(du,e=>null==n?void 0:n(e),{once:!0}),F(e,t),t.defaultPrevented?u.current=!1:a.onClose()}}),onPointerDown:t=>{var r;null===(r=e.onPointerDown)||void 0===r||r.call(e,t),u.current=!0},onPointerUp:N(e.onPointerUp,e=>{var t;u.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:N(e.onKeyDown,e=>{let t=""!==s.searchRef.current;!r&&(!t||" "!==e.key)&&cU.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))}),dd=(0,w.forwardRef)((e,t)=>{let{__scopeMenu:r,disabled:n=!1,textValue:i,...o}=e,a=de(dl,r),s=cQ(r),l=(0,w.useRef)(null),u=A(t,l),[c,d]=(0,w.useState)(!1),[f,h]=(0,w.useState)("");return(0,w.useEffect)(()=>{let e=l.current;if(e){var t;h((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[o.children]),(0,w.createElement)(cG.ItemSlot,{scope:r,disabled:n,textValue:null!=i?i:f},(0,w.createElement)(cF,j({asChild:!0},s,{focusable:!n}),(0,w.createElement)(I.div,j({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0},o,{ref:u,onPointerMove:N(e.onPointerMove,dE(e=>{if(n)a.onItemLeave(e);else if(a.onItemEnter(e),!e.defaultPrevented){let t=e.currentTarget;t.focus()}})),onPointerLeave:N(e.onPointerLeave,dE(e=>a.onItemLeave(e))),onFocus:N(e.onFocus,()=>d(!0)),onBlur:N(e.onBlur,()=>d(!1))}))))}),[df,dh]=((e,t)=>{let{checked:r=!1,onCheckedChange:n,...i}=e;return(0,w.createElement)(dm,{scope:e.__scopeMenu,checked:r},(0,w.createElement)(dc,j({role:"menuitemcheckbox","aria-checked":r},i,{ref:t,"data-state":dw(r),onSelect:N(i.onSelect,()=>null==n?void 0:n(!r),{checkForDefaultPrevented:!1})})))},cX("MenuRadioGroup",{value:void 0,onValueChange:()=>{}})),dp=((e,t)=>{let{value:r,onValueChange:n,...i}=e,o=P(n);return(0,w.createElement)(df,{scope:e.__scopeMenu,value:r,onValueChange:o},(0,w.createElement)(da,j({},i,{ref:t})))},"MenuItemIndicator"),[dm,dv]=cX(dp,{checked:!1}),[dg,dy]=((e,t)=>{let{__scopeMenu:r,forceMount:n,...i}=e,o=dv(dp,r);return(0,w.createElement)(B,{present:n||o.checked},(0,w.createElement)(I.span,j({},i,{ref:t,"data-state":dw(o.checked)})))},cX("MenuSub")),db="MenuSubTrigger";function dx(e){return e?"open":"closed"}function dw(e){return e?"checked":"unchecked"}function dE(e){return t=>"mouse"===t.pointerType?e(t):void 0}(e,t)=>{let r=c1(db,e.__scopeMenu),n=c4(db,e.__scopeMenu),i=dy(db,e.__scopeMenu),o=de(db,e.__scopeMenu),a=(0,w.useRef)(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=o,u={__scopeMenu:e.__scopeMenu},c=(0,w.useCallback)(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return(0,w.useEffect)(()=>c,[c]),(0,w.useEffect)(()=>{let e=s.current;return()=>{window.clearTimeout(e),l(null)}},[s,l]),(0,w.createElement)(c3,j({asChild:!0},u),(0,w.createElement)(dd,j({id:i.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":i.contentId,"data-state":dx(r.open)},e,{ref:k(t,i.onTriggerChange),onClick:t=>{var n;null===(n=e.onClick)||void 0===n||n.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:N(e.onPointerMove,dE(t=>{o.onItemEnter(t),t.defaultPrevented||e.disabled||r.open||a.current||(o.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{r.onOpenChange(!0),c()},100))})),onPointerLeave:N(e.onPointerLeave,dE(e=>{var t,n;c();let i=null===(t=r.content)||void 0===t?void 0:t.getBoundingClientRect();if(i){let t=null===(n=r.content)||void 0===n?void 0:n.dataset.side,a="right"===t,l=i[a?"left":"right"],u=i[a?"right":"left"];o.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:l,y:i.top},{x:u,y:i.top},{x:u,y:i.bottom},{x:l,y:i.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(e),e.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:N(e.onKeyDown,t=>{let i=""!==o.searchRef.current;if(!e.disabled&&(!i||" "!==t.key)&&c$[n.dir].includes(t.key)){var a;r.onOpenChange(!0),null===(a=r.content)||void 0===a||a.focus(),t.preventDefault()}})})))},(e,t)=>{let r=c8(c7,e.__scopeMenu),{forceMount:n=r.forceMount,...i}=e,o=c1(c7,e.__scopeMenu),a=c4(c7,e.__scopeMenu),s=dy("MenuSubContent",e.__scopeMenu),l=(0,w.useRef)(null),u=A(t,l);return(0,w.createElement)(cG.Provider,{scope:e.__scopeMenu},(0,w.createElement)(B,{present:n||o.open},(0,w.createElement)(cG.Slot,{scope:e.__scopeMenu},(0,w.createElement)(di,j({id:s.contentId,"aria-labelledby":s.triggerId},i,{ref:u,align:"start",side:"rtl"===a.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;a.isUsingKeyboardRef.current&&(null===(t=l.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:N(e.onFocusOutside,e=>{e.target!==s.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:N(e.onEscapeKeyDown,a.onClose),onKeyDown:N(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=cW[a.dir].includes(e.key);if(t&&r){var n;o.onOpenChange(!1),null===(n=s.trigger)||void 0===n||n.focus(),e.preventDefault()}})})))))};let dj=e=>{let{__scopeMenu:t,open:r=!1,children:n,dir:i,onOpenChange:o,modal:a=!0}=e,s=cJ(t),[l,u]=(0,w.useState)(null),c=(0,w.useRef)(!1),d=P(o),f=uG(i);return(0,w.useEffect)(()=>{let e=()=>{c.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>c.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,w.createElement)(tL,s,(0,w.createElement)(c0,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:u},(0,w.createElement)(c2,{scope:t,onClose:(0,w.useCallback)(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:a},n)))},dS=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:i}=e,o=c1(c5,t);return(0,w.createElement)(c6,{scope:t,forceMount:r},(0,w.createElement)(B,{present:r||o.open},(0,w.createElement)(tD,{asChild:!0,container:i},n)))},dC="DropdownMenu",[dk,dA]=C(dC,[cK]),dO=cK(),[dT,d_]=dk(dC),dM=(0,w.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...i}=e,o=d_("DropdownMenuTrigger",r),a=dO(r);return(0,w.createElement)(c3,j({asChild:!0},a),(0,w.createElement)(I.button,j({type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":!!o.open||void 0,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":n?"":void 0,disabled:n},i,{ref:k(t,o.triggerRef),onPointerDown:N(e.onPointerDown,e=>{n||0!==e.button||!1!==e.ctrlKey||(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:N(e.onKeyDown,e=>{!n&&(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),[" ","ArrowDown"].includes(e.key)&&e.preventDefault())})})))}),dR=(0,w.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=d_("DropdownMenuContent",r),o=dO(r),a=(0,w.useRef)(!1);return(0,w.createElement)(dt,j({id:i.contentId,"aria-labelledby":i.triggerId},o,n,{ref:t,onCloseAutoFocus:N(e.onCloseAutoFocus,e=>{var t;a.current||null===(t=i.triggerRef.current)||void 0===t||t.focus(),a.current=!1,e.preventDefault()}),onInteractOutside:N(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!i.modal||n)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)"}}))}),dN=(0,w.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=dO(r);return(0,w.createElement)(ds,j({},i,n,{ref:t}))}),dP=(0,w.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=dO(r);return(0,w.createElement)(dc,j({},i,n,{ref:t}))}),dL=e=>{let{__scopeDropdownMenu:t,children:r,dir:n,open:i,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,l=dO(t),u=(0,w.useRef)(null),[c=!1,d]=L({prop:i,defaultProp:o,onChange:a});return(0,w.createElement)(dT,{scope:t,triggerId:$(),triggerRef:u,contentId:$(),open:c,onOpenChange:d,onOpenToggle:(0,w.useCallback)(()=>d(e=>!e),[d]),modal:s},(0,w.createElement)(dj,j({},l,{open:c,onOpenChange:d,dir:n,modal:s}),r))},dD=e=>{let{__scopeDropdownMenu:t,...r}=e,n=dO(t);return(0,w.createElement)(dS,j({},n,r))},dI="horizontal",dF=["horizontal","vertical"],dV=(0,w.forwardRef)((e,t)=>{let{decorative:r,orientation:n=dI,...i}=e,o=dB(n)?n:dI;return(0,w.createElement)(I.div,j({"data-orientation":o},r?{role:"none"}:{"aria-orientation":"vertical"===o?o:void 0,role:"separator"},i,{ref:t}))});function dB(e){return dF.includes(e)}dV.propTypes={orientation(e,t,r){let n=e[t],i=String(n);return n&&!dB(n)?Error(`Invalid prop \`orientation\` of value \`${i}\` supplied to \`${r}\`, expected one of: - - horizontal - - vertical - -Defaulting to \`${dI}\`.`):null}};let dU=(0,ey.j)(["m-0 flex-shrink-0 cursor-default"],{variants:{variant:{vertical:"border-r",horizontal:"border-b"},color:{subtle:"border-gray-300 dark:border-graydark-300",verySubtle:"border-gray-100 dark:border-graydark-100",panel:"border-gray-100 dark:border-graydark-400/50"}},defaultVariants:{variant:"horizontal",color:"subtle"}}),dz=w.forwardRef((e,t)=>{let{variant:r,color:n,className:i,...o}=e;return(0,x.jsx)(dV,{ref:t,className:dU({variant:r,color:n,className:i}),...o})}),dH=function(){let{className:e,font:t,color:r="subtle",weight:n="medium",size:i="14",scaleSize:o,noWrap:a,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,ey.cx)(t6({font:t,color:r,weight:n,size:i,scaleSize:o,noWrap:a,ellipsis:s,className:e}),["relative","flex","items-center","tabular-nums","select-none","whitespace-nowrap","px-1.5","py-1.5"])},d$=function(){let{className:e,font:t,color:r="contrast",weight:n="medium",size:i="14",scaleSize:o,noWrap:a,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,ey.cx)(dH({font:t,color:r,weight:n,size:i,scaleSize:o,noWrap:a,ellipsis:s,className:e}),["group","cursor-pointer","rounded-sm","focus:outline-none","focus:text-gray-900","dark:focus:text-white","focus:bg-gray-300","dark:focus:bg-graydark-300","aria-selected:bg-gray-400","aria-selected:dark:bg-graydark-500","data-[disabled]:pointer-events-none","data-[disabled]:text-gray-700","dark:data-[disabled]:text-graydark-700"])},dW=e=>{let{className:t,font:r,color:n="verySubtle",weight:i="medium",size:o="14",scaleSize:a,noWrap:s,ellipsis:l}=e;return t6({font:r,color:n,weight:i,size:o,scaleSize:a,noWrap:s,ellipsis:l,className:t})},dq=e=>(0,ey.cx)(["h-px","my-2","mx-1.5",e]),dG=w.forwardRef((e,t)=>{let{className:r,color:n,...i}=e;return(0,x.jsx)(dz,{ref:t,className:dq(r),...i})}),dZ=w.forwardRef((e,t)=>{let{className:r,font:n,color:i,weight:o,size:a="14",scaleSize:s,noWrap:l,ellipsis:u,...c}=e;return(0,x.jsx)("div",{ref:t,className:(0,ey.cx)(dH({className:r,font:n,color:i,weight:o,size:a,scaleSize:s,noWrap:l,ellipsis:u})),...c})}),dY=w.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,x.jsx)("div",{ref:t,className:(0,ey.cx)(["ml-auto","pl-5",r]),...n})}),dX=(0,ey.j)(["relative","max-w-sm","z-30","py-1","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-tip","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),dK=e=>(0,ey.cx)(t9(),(0,ey.j)(["max-w-xs","shadow-sm","py-1","px-1"])({className:e})),dJ={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},dQ=w.forwardRef((e,t)=>{let{trigger:r,children:n,rootProps:i,contentProps:o,className:a,open:s,onOpenChange:l}=e,{open:u,onOpenChange:c}=la({open:s,onOpenChange:l});return(0,x.jsxs)(dL,{open:u,onOpenChange:c,...i,children:[(0,x.jsx)(dM,{asChild:!0,children:r}),(0,x.jsx)(rN,{children:u?(0,x.jsx)(dD,{forceMount:!0,children:(0,x.jsx)(dR,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,x.jsx)(lo.div,{variants:dJ,initial:"init",animate:"show",exit:"exit",className:dX(),children:(0,x.jsx)("div",{className:dK(a),children:n})})})}):null})]})}),d0=w.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,x.jsx)(dP,{ref:t,className:d$({className:r}),...n})}),d1=w.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,x.jsx)(dN,{ref:t,className:(0,ey.cx)("px-1.5",dW({className:r})),...n})}),d2=w.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,x.jsx)("div",{ref:t,className:(0,ey.cx)(["pr-2","opacity-70 group-hover:opacity-100",r]),...n})});var d4=r(39097),d3=r.n(d4);let d5={20:"h3",24:"h3",32:"h2",40:"h2",64:"h1"},d6={20:"font-semibold text-base md:text-xl",24:"font-bold text-xl md:text-2xl",32:"font-semibold text-2xl md:text-3xl",40:"font-semibold text-3xl md:text-4xl",64:"font-semibold text-4xl md:text-6xl"},d8=w.forwardRef((e,t)=>{let{size:r="24",className:n,id:i,children:o,anchorLink:a,showAnchor:s,...l}=e,u=d5[r];if(a){let e=i||("string"==typeof o?encodeURI(o.toLowerCase().replace(/ /g,"-")):"");return(0,x.jsxs)("div",{className:(0,ey.cx)("relative flex flex-col gap-6 items-start",n),children:[(0,x.jsx)("div",{id:e,className:"absolute -top-[100px]"}),(0,x.jsxs)(d3(),{href:"#".concat(e),className:"relative group",children:[(0,x.jsx)(t8,{className:"hidden group-hover:block",children:(0,x.jsx)(ld.POp,{className:"absolute top-1 -left-7 hidden md:block"})}),(0,x.jsx)(t8,{as:u,...l,ref:t,weight:"none",className:(0,ey.cx)("proportional-nums inline-block",d6[r]),children:o})]})]})}return(0,x.jsx)("div",{className:(0,ey.cx)("flex flex-col gap-6 items-start",n),children:(0,x.jsx)(t8,{as:u,...l,ref:t,weight:"none",className:(0,ey.cx)("proportional-nums inline-block",d6[r],n),children:o})})});var d7=r(96577),d9=r.n(d7);let fe=(0,ey.j)(["rounded"]);function ft(e){let{className:t,...r}=e;return(0,x.jsx)(d9(),{className:fe({className:t}),...r})}let[fr,fn]=S("Label",{id:void 0,controlRef:{current:null}}),fi=(0,w.forwardRef)((e,t)=>{let{htmlFor:r,id:n,...i}=e,o=(0,w.useRef)(null),a=(0,w.useRef)(null),s=A(t,a),l=$(n);return(0,w.useEffect)(()=>{if(r){let e=document.getElementById(r),t=a.current;if(t&&e){let t=()=>e.getAttribute("aria-labelledby"),r=[l,t()].filter(Boolean).join(" ");return e.setAttribute("aria-labelledby",r),o.current=e,()=>{var r;let n=null===(r=t())||void 0===r?void 0:r.replace(l,"");""===n?e.removeAttribute("aria-labelledby"):n&&e.setAttribute("aria-labelledby",n)}}}},[l,r]),(0,w.createElement)(fr,{id:l,controlRef:o},(0,w.createElement)(I.span,j({role:"label",id:l},i,{ref:s,onMouseDown:t=>{var r;null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()},onClick:t=>{var r;if(null===(r=e.onClick)||void 0===r||r.call(e,t),!o.current||t.defaultPrevented)return;let n=o.current.contains(t.target),i=!0===t.isTrusted;!n&&i&&(o.current.click(),o.current.focus())}})))}),fo=e=>{let t=fn("LabelConsumer"),{controlRef:r}=t;return(0,w.useEffect)(()=>{e&&(r.current=e)},[e,r]),t.id},fa=w.forwardRef((e,t)=>{let{font:r,size:n="14",scaleSize:i,weight:o,color:a="verySubtle",noWrap:s,ellipsis:l,className:u,...c}=e;return(0,x.jsx)(fi,{ref:t,...c,className:dW({font:r,size:n,scaleSize:i,color:a,weight:o,noWrap:s,ellipsis:l,className:u})})}),fl=(0,ey.j)(["cursor-pointer"],{variants:{disabled:{true:"opacity-50 pointer-events-none"},underline:{accent:"underline underline-offset-4 decoration-2 decoration-accentdark-900 dark:decoration-accentdark-900",default:"underline underline-offset-4",hover:"hover:underline underline-offset-4",none:""}},defaultVariants:{disabled:!1,underline:"default"}}),fu=e=>{let{font:t,size:r,scaleSize:n,color:i,weight:o,noWrap:a,ellipsis:s,underline:l,disabled:u,className:c}=e;return(0,ey.cx)(t6({scaleSize:n,size:r,font:t,color:i,weight:o,noWrap:a,ellipsis:s,underline:l}),fl({disabled:u,underline:l}),c)},fc=w.forwardRef((e,t)=>{let{href:r,font:n,size:i,scaleSize:o,color:a,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f,rel:h,target:p,onClick:m,...v}=e,g=(0,w.useCallback)(e=>{m&&(r||e.preventDefault(),m(e))},[m,r]);return(0,x.jsx)(d3(),{href:r||"#",ref:t,className:fu({font:n,scaleSize:o,size:i,color:a,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f}),...v,onClick:g,rel:h||("_blank"===p?"noopener":void 0),target:p})}),fd=w.forwardRef((e,t)=>{let{href:r,disabled:n,variant:i,size:o,state:a,rounded:s,icon:l,className:u,tip:c,rel:d,target:f,onClick:h,...p}=e,m=d||("_blank"===f?"noopener":void 0),v=(0,w.useCallback)(e=>{h&&(r||e.preventDefault(),h(e))},[h,r]);return c?(0,x.jsx)(ll,{content:c,children:(0,x.jsx)(d3(),{href:r||"#",ref:t,className:lu({variant:i,size:o,state:a,rounded:s,disabled:n,icon:l,className:u}),onClick:v,...p,rel:m,target:f})}):(0,x.jsx)(d3(),{href:r||"#",ref:t,className:lu({variant:i,size:o,state:a,rounded:s,disabled:n,icon:l,className:u}),onClick:v,...p,rel:m,target:f})}),ff={src:"/_next/static/media/logo.0e2362ab.png"};function fh(e){let{size:t=30,className:r}=e;return(0,x.jsx)(ft,{priority:!0,src:"/_next/static/media/logo.0e2362ab.png",alt:"Logo",width:t,height:t,className:r})}let fp="Popover",[fm,fv]=C(fp,[tb]),fg=tb(),[fy,fb]=fm(fp),fx=(0,w.forwardRef)((e,t)=>{let{__scopePopover:r,...n}=e,i=fb("PopoverTrigger",r),o=fg(r),a=A(t,i.triggerRef),s=(0,w.createElement)(I.button,j({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":fT(i.open)},n,{ref:a,onClick:N(e.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?s:(0,w.createElement)(tE,j({asChild:!0},o),s)}),fw="PopoverPortal",[fE,fj]=fm(fw,{forceMount:void 0}),fS="PopoverContent",fC=(0,w.forwardRef)((e,t)=>{let r=fj(fS,e.__scopePopover),{forceMount:n=r.forceMount,...i}=e,o=fb(fS,e.__scopePopover);return(0,w.createElement)(B,{present:n||o.open},o.modal?(0,w.createElement)(fk,j({},i,{ref:t})):(0,w.createElement)(fA,j({},i,{ref:t})))}),fk=(0,w.forwardRef)((e,t)=>{let r=fb(fS,e.__scopePopover),n=(0,w.useRef)(null),i=A(t,n),o=(0,w.useRef)(!1);return(0,w.useEffect)(()=>{let e=n.current;if(e)return ub(e)},[]),(0,w.createElement)(up,{as:O,allowPinchZoom:!0},(0,w.createElement)(fO,j({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:N(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),o.current||null===(t=r.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:N(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;o.current=n},{checkForDefaultPrevented:!1}),onFocusOutside:N(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})))}),fA=(0,w.forwardRef)((e,t)=>{let r=fb(fS,e.__scopePopover),n=(0,w.useRef)(!1);return(0,w.createElement)(fO,j({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,o;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(n.current||null===(o=r.triggerRef.current)||void 0===o||o.focus(),t.preventDefault()),n.current=!1},onInteractOutside:t=>{var i,o;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(n.current=!0);let a=t.target,s=null===(o=r.triggerRef.current)||void 0===o?void 0:o.contains(a);s&&t.preventDefault()}}))}),fO=(0,w.forwardRef)((e,t)=>{let{__scopePopover:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,f=fb(fS,r),h=fg(r);return lH(),(0,w.createElement)(lD,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:o},(0,w.createElement)(ew,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:c,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1)},(0,w.createElement)(tO,j({"data-state":fT(f.open),role:"dialog",id:f.contentId},h,d,{ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function fT(e){return e?"open":"closed"}let f_=e=>{let{__scopePopover:t,children:r,open:n,defaultOpen:i,onOpenChange:o,modal:a=!1}=e,s=fg(t),l=(0,w.useRef)(null),[u,c]=(0,w.useState)(!1),[d=!1,f]=L({prop:n,defaultProp:i,onChange:o});return(0,w.createElement)(tL,s,(0,w.createElement)(fy,{scope:t,contentId:$(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:(0,w.useCallback)(()=>f(e=>!e),[f]),hasCustomAnchor:u,onCustomAnchorAdd:(0,w.useCallback)(()=>c(!0),[]),onCustomAnchorRemove:(0,w.useCallback)(()=>c(!1),[]),modal:a},r))},fM=e=>{let{__scopePopover:t,forceMount:r,children:n,container:i}=e,o=fb(fw,t);return(0,w.createElement)(fE,{scope:t,forceMount:r},(0,w.createElement)(B,{present:r||o.open},(0,w.createElement)(tD,{asChild:!0,container:i},n)))},fR=(0,ey.j)(["relative","z-10","outline-none","max-w-sm","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),fN=(0,ey.cx)(t9(),(0,ey.j)(["py-1","px-1"])()),fP={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},fL=w.forwardRef((e,t)=>{let{trigger:r,children:n,rootProps:i,contentProps:o}=e,{open:a,onOpenChange:s}=la({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,x.jsxs)(f_,{open:a,onOpenChange:s,...i,children:[(0,x.jsx)(fx,{asChild:!0,children:r}),(0,x.jsx)(rN,{children:a?(0,x.jsx)(fM,{forceMount:!0,children:(0,x.jsx)(fC,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,x.jsx)(lo.div,{variants:fP,initial:"init",animate:"show",exit:"exit",className:fR(),children:(0,x.jsx)(cv,{className:fN,children:n})})})}):null})]})}),fD="Progress",[fI,fF]=C(fD),[fV,fB]=fI(fD),fU=(0,w.forwardRef)((e,t)=>{let{__scopeProgress:r,value:n,max:i,getValueLabel:o=fH,...a}=e,s=fq(i)?i:100,l=fG(n,s)?n:null,u=fW(l)?o(l,s):void 0;return(0,w.createElement)(fV,{scope:r,value:l,max:s},(0,w.createElement)(I.div,j({"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":fW(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":f$(l,s),"data-value":null!=l?l:void 0,"data-max":s},a,{ref:t})))});fU.propTypes={max(e,t,r){let n=e[t],i=String(n);return n&&!fq(n)?Error(`Invalid prop \`max\` of value \`${i}\` supplied to \`${r}\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`):null},value(e,t,r){let n=e[t],i=String(n),o=fq(e.max)?e.max:100;return null==n||fG(n,o)?null:Error(`Invalid prop \`value\` of value \`${i}\` supplied to \`${r}\`. The \`value\` prop must be: - - a positive number - - less than the value passed to \`max\` (or 100 if no \`max\` prop is set) - - \`null\` if the progress is indeterminate. - -Defaulting to \`null\`.`)}};let fz=(0,w.forwardRef)((e,t)=>{var r;let{__scopeProgress:n,...i}=e,o=fB("ProgressIndicator",n);return(0,w.createElement)(I.div,j({"data-state":f$(o.value,o.max),"data-value":null!==(r=o.value)&&void 0!==r?r:void 0,"data-max":o.max},i,{ref:t}))});function fH(e,t){return`${Math.round(e/t*100)}%`}function f$(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function fW(e){return"number"==typeof e}function fq(e){return fW(e)&&!isNaN(e)&&e>0}function fG(e,t){return fW(e)&&!isNaN(e)&&e<=t&&e>=0}let fZ=(0,ey.j)(["relative h-1 w-full overflow-hidden rounded-lg"],{variants:{variant:{gray:"bg-gray-700 dark:bg-graydark-700",accent:"bg-green-600 dark:bg-green-500"}},defaultVariants:{variant:"gray"}}),fY=w.forwardRef((e,t)=>{let{label:r,variant:n,className:i,value:o,max:a=100,...s}=e,l=null!=o?Math.round(o/a*100):null;return(0,x.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,x.jsx)(fU,{...s,ref:t,value:o,max:a,className:fZ({variant:n,className:i}),children:(0,x.jsx)(fz,{className:"absolute top-0 right-0 left-0 bottom-0 w-full bg-gray-300 dark:bg-graydark-300 transition-transform",style:{transform:"translateX(".concat(l,"%)")}})}),r&&(0,x.jsx)(t8,{color:"subtle",size:"12",ellipsis:!0,children:r})]})});(0,ey.j)(["relative flex items-center h-full justify-center w-full",'after:content-[""] after:block after:rounded-full after:bg-green-600 after:dark:bg-green-500'],{variants:{size:{small:"after:w-2 after:h-2 ",medium:"after:w-4 after:h-4"}},defaultVariants:{size:"small"}}),(0,ey.j)(["select-none","inline-flex items-center justify-center","m-0 p-0","outline-none","rounded-full","overflow-hidden","focus:ring ring-blue-500 dark:ring-blue-200","bg-white dark:bg-graydark-200","border border-gray-500 dark:border-graydark-400","enabled:hover:border-gray-700 enabled:hover:dark:border-graydark-600","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-400","disabled:bg-gray-200 disabled:dark:bg-graydark-200"],{variants:{size:{small:"w-4 h-4",medium:"w-6 h-6"}},defaultVariants:{size:"small"}});let fX=(0,ey.j)(["relative appearance-none outline-none","p-2 m-0 w-full","min-h-[80px]",t6(),"tabular-nums","resize-y","rounded","focus:ring ring-blue-500 dark:ring-blue-200","text-gray-1100 dark:text-white","placeholder:text-gray-600 placeholder:dark:text-graydark-500","disabled:text-gray-400 disabled:dark:text-graydark-400"],{variants:{size:{small:"h-7 text-sm px-2",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},variant:{default:["border","bg-white dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800"],ghost:"bg-transparent"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]},cursor:{default:"",text:"cursor-text"}},defaultVariants:{size:"small",variant:"default",cursor:"default",state:"default"}}),fK=w.forwardRef((e,t)=>{let{size:r,variant:n,state:i,cursor:o,className:a,...s}=e;return(0,x.jsx)("textarea",{ref:t,className:fX({size:r,variant:n,state:i,cursor:o,className:a}),...s})}),fJ=(0,ey.j)(["font-sans [type=number]:font-mono","outline-none m-0 p-0 w-full","disabled:pointer-events-none","tabular-nums","rounded","text-gray-1100 dark:text-white","autofill:text-fill-gray-1100 autofill:dark:text-fill-white","autofill:placeholder:text-fill-gray-700 autofill:placeholder:dark:text-fill-graydark-700","placeholder:text-gray-700 placeholder:dark:text-graydark-700","disabled:text-gray-400 disabled:dark:text-graydark-400"],{variants:{size:{small:"h-7 text-sm px-2",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},variant:{default:["border","bg-white dark:bg-graydark-50","autofill:bg-white autofill:dark:bg-graydark-50","autofill:shadow-fill-white autofill:dark:shadow-fill-graydark-50"],ghost:"bg-transparent"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]},focus:{default:["focus:ring ring-blue-500 dark:ring-blue-200","focus:z-10"],none:""},cursor:{default:"",text:"cursor-text"},noSpin:{true:"[&::-webkit-outer-spin-button, &::-webkit-inner-spin-button]:appearance-none"}},defaultVariants:{size:"small",focus:"default",variant:"default",cursor:"default",state:"default"}}),fQ=w.forwardRef((e,t)=>{let{variant:r,size:n,state:i,noSpin:o,cursor:a,focus:s,className:l,...u}=e;return(0,x.jsx)("input",{ref:t,className:fJ({variant:r,size:n,state:i,noSpin:o,cursor:a,focus:s,className:l}),...u})});/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var f0=function(){return(f0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1){if(e.includes(t)){var n=e.split(t),i=n[0],o=n[1];if(o.length>r)return""+i+t+o.slice(0,r)}var a=e.length>r?RegExp("(\\d+)(\\d{"+r+"})"):RegExp("(\\d)(\\d+)"),s=e.match(a);if(s){var i=s[1],o=s[2];return""+i+t+o}}return e},f9=function(e,t){var r=t.groupSeparator,n=t.decimalSeparator,i=RegExp("\\d([^"+f2(void 0===r?",":r)+f2(void 0===n?".":n)+"0-9]+)"),o=e.match(i);return o?o[1]:void 0},he=function(e){var t=e.value,r=e.decimalSeparator,n=e.intlConfig,i=e.decimalScale,o=e.prefix,a=void 0===o?"":o,s=e.suffix,l=void 0===s?"":s;if(""===t||void 0===t)return"";if("-"===t)return"-";var u=RegExp("^\\d?-"+(a?f2(a)+"?":"")+"\\d").test(t),c="."!==r?ht(t,r,u):t,d=hr((n?new Intl.NumberFormat(n.locale,n.currency?{style:"currency",currency:n.currency,minimumFractionDigits:i||0,maximumFractionDigits:20}:void 0):new Intl.NumberFormat(void 0,{minimumFractionDigits:i||0,maximumFractionDigits:20})).formatToParts(Number(c)),e),f=f9(d,f0({},e)),h=t.slice(-1)===r?r:"",p=(c.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return(void 0===i&&p&&r&&(d=d.includes(r)?d.replace(RegExp("(\\d+)("+f2(r)+")(\\d+)","g"),"$1$2"+p):f&&!l?d.replace(f,""+r+p+f):""+d+r+p),l&&h)?""+d+h+l:f&&h?d.replace(f,""+h+f):f&&l?d.replace(f,""+h+l):[d,h,l].join("")},ht=function(e,t,r){var n=e;return t&&"."!==t&&(n=n.replace(RegExp(f2(t),"g"),"."),r&&"-"===t&&(n="-"+n.slice(1))),n},hr=function(e,t){var r=t.prefix,n=t.groupSeparator,i=t.decimalSeparator,o=t.decimalScale,a=t.disableGroupSeparators,s=void 0!==a&&a;return e.reduce(function(e,t,a){var l=t.type,u=t.value;return 0===a&&r?"minusSign"===l?[u,r]:"currency"===l?f1(f1([],e),[r]):[r,u]:"currency"===l?r?e:f1(f1([],e),[u]):"group"===l?s?e:f1(f1([],e),[void 0!==n?n:u]):"decimal"===l?void 0!==o&&0===o?e:f1(f1([],e),[void 0!==i?i:u]):"fraction"===l?f1(f1([],e),[void 0!==o?u.slice(0,o):u]):f1(f1([],e),[u])},[""]).join("")},hn={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},hi=function(e){var t=e||{},r=t.locale,n=t.currency;return(r?new Intl.NumberFormat(r,n?{currency:n,style:"currency"}:void 0):new Intl.NumberFormat).formatToParts(1000.1).reduce(function(e,t,r){return"currency"===t.type?0===r?f0(f0({},e),{currencySymbol:t.value,prefix:t.value}):f0(f0({},e),{currencySymbol:t.value,suffix:t.value}):"group"===t.type?f0(f0({},e),{groupSeparator:t.value}):"decimal"===t.type?f0(f0({},e),{decimalSeparator:t.value}):e},hn)},ho=function(e){return RegExp(/\d/,"gi").test(e)},ha=function(e,t,r){if(void 0===t&&(t="."),void 0===r||""===e||void 0===e)return e;if(!e.match(/\d/g))return"";var n=e.split(t),i=n[0],o=n[1];if(0===r)return i;var a=o||"";if(a.lengtht.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}(e,["allowDecimals","allowNegativeValue","id","name","className","customInput","decimalsLimit","defaultValue","disabled","maxLength","value","onValueChange","fixedDecimalLength","placeholder","decimalScale","prefix","suffix","intlConfig","step","min","max","disableGroupSeparators","disableAbbreviations","decimalSeparator","groupSeparator","onChange","onFocus","onBlur","onKeyDown","onKeyUp","transformRawValue"]);if(A&&ho(A))throw Error("decimalSeparator cannot be a number");if(O&&ho(O))throw Error("groupSeparator cannot be a number");var D=(0,w.useMemo)(function(){return hi(b)},[b]),I=A||D.decimalSeparator||"",F=O||D.groupSeparator||"";if(I&&F&&I===F&&!1===C)throw Error("decimalSeparator cannot be the same as groupSeparator");var V={decimalSeparator:I,groupSeparator:F,disableGroupSeparators:C,intlConfig:b,prefix:g||D.prefix,suffix:y},B={decimalSeparator:I,groupSeparator:F,allowDecimals:void 0===r||r,decimalsLimit:l||p||2,allowNegativeValue:void 0===n||n,disableAbbreviations:void 0!==k&&k,prefix:g||D.prefix,transformRawValue:P},U=null!=u?he(f0(f0({},V),{decimalScale:v,value:String(u)})):null!=f?he(f0(f0({},V),{decimalScale:v,value:String(f)})):"",z=(0,w.useState)(U),H=z[0],$=z[1],W=(0,w.useState)(!1),q=W[0],G=W[1],Z=(0,w.useState)(0),Y=Z[0],X=Z[1],K=(0,w.useState)(0),J=K[0],Q=K[1],ee=(0,w.useState)(null),et=ee[0],er=ee[1],en=t||(0,w.useRef)(null),ei=function(e,t){G(!0);var r=hs({selectionStart:t,value:e,lastKeyStroke:et,stateValue:H,groupSeparator:F}),n=r.modifiedValue,i=r.cursorPosition,a=f8(f0({value:n},B));if(!d||!(a.replace(/-/g,"").length>d)){if(""===a||"-"===a||a===I){h&&h(void 0,o,{float:null,formatted:"",value:""}),$(a);return}var s=parseFloat(a.replace(I,".")),l=he(f0({value:a},V));if(null!=i){var u=i+(l.length-e.length);X(u=u<=0?g?g.length:0:u),Q(J+1)}$(l),h&&h(a,o,{float:s,formatted:l,value:a})}};(0,w.useEffect)(function(){q&&"-"!==H&&en&&"object"==typeof en&&en.current&&en.current.setSelectionRange(Y,Y)},[H,Y,en,q,J]);var eo=f0({type:"text",inputMode:"decimal",id:i,name:o,className:a,onChange:function(e){var t=e.target;ei(t.value,t.selectionStart),T&&T(e)},onBlur:function(e){var t=e.target.value,r=f8(f0({value:t},B));if("-"===r||!r){$(""),M&&M(e);return}var n=ha(f7(r,I,p),I,void 0!==v?v:p),i=parseFloat(n.replace(I,".")),a=he(f0(f0({},V),{value:n}));h&&h(n,o,{float:i,formatted:a,value:n}),$(a),M&&M(e)},onFocus:function(e){return _&&_(e),H?H.length:0},onKeyDown:function(e){var t=e.key;if(er(t),x&&("ArrowUp"===t||"ArrowDown"===t)){e.preventDefault(),X(H.length);var r=parseFloat(null!=f?String(f).replace(I,"."):f8(f0({value:H},B)))||0,n="ArrowUp"===t?r+x:r-x;if(void 0!==E&&nj)return;var i=String(x).includes(".")?Number(String(x).split(".")[1].length):void 0;ei(String(i?n.toFixed(i):n).replace(".",I))}R&&R(e)},onKeyUp:function(e){var t=e.key,r=e.currentTarget.selectionStart;if("ArrowUp"!==t&&"ArrowDown"!==t&&"-"!==H){var n=f9(H,{groupSeparator:F,decimalSeparator:I});if(n&&r&&r>H.length-n.length&&en&&"object"==typeof en&&en.current){var i=H.length-n.length;en.current.setSelectionRange(i,i)}}N&&N(e)},placeholder:m,disabled:void 0!==c&&c,value:null==f||"-"===H||I&&H===I?H:he(f0(f0({},V),{decimalScale:q?void 0:v,value:String(f)})),ref:en},L);return s?w.createElement(s,f0({},eo)):w.createElement("input",f0({},eo))});function hu(e){let{units:t,variant:r,size:n="small",state:i,noSpin:o,focus:a,cursor:s,className:l,decimalsLimit:u,onValueChange:c,...d}=e,[f,h]=(0,w.useState)();return(0,w.useEffect)(()=>{h(navigator.language)},[]),(0,x.jsxs)("div",{className:"relative",children:[(0,x.jsx)(hl,{...d,decimalsLimit:u,intlConfig:f?{locale:f}:void 0,allowDecimals:!!u,autoComplete:"off",spellCheck:!1,onValueChange:c,transformRawValue:e=>{if(e.length>0){if("."===e[0])return"0."+e.slice(1);if(","===e[0])return"0,"+e.slice(1)}return e},className:(0,ey.cx)(fJ({variant:r,size:n,state:i,focus:a,noSpin:o,cursor:s,className:l}),t?"pr-9":"")}),t&&(0,x.jsx)("div",{className:(0,ey.cx)("flex items-center absolute top-0 h-full","small"===n?"right-2":"","medium"===n?"right-3":"","large"===n?"right-3":""),children:(0,x.jsx)(t8,{size:"12",weight:"medium",color:"subtle",children:t})})]})}hl.displayName="CurrencyInput";var hc=r(6391),hd=r.n(hc);function hf(e,t){return e.decimalPlaces()>t?e.toFixed(t):e.toString()}let hh=(0,w.forwardRef)(function(e,t){let{value:r,placeholder:n=new(hd())(100),decimalsLimit:i=6,onChange:o,size:a="small",units:s,error:l,changed:u,onBlur:c,onFocus:d,...f}=e,h=(0,w.useMemo)(()=>new(hd())(r),[r]),[p,m]=(0,w.useState)(""),v=(0,w.useMemo)(()=>hp(p),[p]),g=(0,w.useCallback)(e=>{o&&o((e=hp(e))&&!isNaN(Number(e))?new(hd())(e):void 0)},[o]),y=(0,w.useCallback)(e=>{m(e),g(e)},[m,g]);return(0,w.useEffect)(()=>{if(!h.isEqualTo(v)){let e=hf(h,i);m(e)}},[h]),(0,x.jsx)(hu,{ref:t,...f,"data-testid":"numberfield",size:a,placeholder:n.isNaN()?"":hf(n,i),units:s,value:"NaN"!==p?p:"",decimalsLimit:i,onBlur:e=>{c&&c(e)},onFocus:e=>{d&&d(e)},onValueChange:e=>y(e||"")})});function hp(e){return(null==e?void 0:e.replace(/,/g,"."))||""}var hm=r(95753);function hv(e){let{settings:t}=(0,hm.Hv)();return(0,hm.Nf)({api:"https://api.siacentral.com/v2",...e,route:"/market/exchange-rate?currencies=sc",disabled:(null==e?void 0:e.disabled)||!t.siaCentral})}r(98537);let hg=new(hd())(0),hy=(0,w.forwardRef)(function(e,t){let{sc:r,placeholder:n=new(hd())(100),decimalsLimitFiat:i=6,decimalsLimitSc:o=6,onChange:a,size:s="medium",units:l="SC",showFiat:u=!0,error:c,changed:d,prefix:f,onBlur:h,onFocus:p,...m}=e,v=(0,w.useMemo)(()=>new(hd())(void 0===r?NaN:r),[r]),{settings:g}=(0,hm.Hv)(),y=hv({config:{swr:{revalidateOnFocus:!1}}}),b=(0,w.useMemo)(()=>{var e;return g.siaCentral&&y.data?new(hd())((null===(e=y.data)||void 0===e?void 0:e.rates.sc[g.currency.id])||hg):hg},[y.data,g]),[E,j]=(0,w.useState)(),[S,C]=(0,w.useState)(""),[k,A]=(0,w.useState)(""),O=(0,w.useMemo)(()=>hb(S),[S]),T=(0,w.useMemo)(()=>hb(k),[k]),_=(0,w.useCallback)(e=>{a&&a((e=hb(e))&&!isNaN(Number(e))?new(hd())(e):void 0)},[a]),M=(0,w.useCallback)(e=>{let t=hf(e,i);A(t)},[A,i]),R=(0,w.useCallback)(e=>{let t=hf(e,o);return C(t),_(t),t},[C,o,_]),N=(0,w.useCallback)(e=>{C(e),_(e)},[C,_]),P=(0,w.useCallback)(e=>{let t=new(hd())(e).times(b);M(t)},[M,b]),L=(0,w.useCallback)(e=>{let t=new(hd())(e).dividedBy(b);R(t)},[R,b]),[D,I]=(0,w.useState)(!1);return(0,w.useEffect)(()=>{if(!v.isEqualTo(O)){let e=hf(v,o);C(e),"fiat"!==E&&P(e)}D||I(!0)},[v]),(0,w.useEffect)(()=>{D&&P(O)},[b]),(0,w.useEffect)(()=>{"sc"===E&&P(O)},[O]),(0,w.useEffect)(()=>{"fiat"===E&&L(T)},[T]),(0,x.jsxs)("div",{ref:t,className:(0,ey.cx)("flex flex-col bg-white dark:bg-graydark-50","focus-within:ring ring-blue-500 dark:ring-blue-200","border",c?"border-red-500 dark:border-red-400":d?"border-green-500 dark:border-green-400":"border-gray-200 dark:border-graydark-200","rounded"),children:[(0,x.jsx)(hu,{...m,"data-testid":"scInput",size:s,variant:"ghost",focus:"none",placeholder:hf(n,o),units:l,value:"NaN"!==S?S:"",decimalsLimit:o,allowNegativeValue:!1,onBlur:e=>{j(void 0),h&&h(e)},onFocus:e=>{j("sc"),p&&p(e)},onValueChange:e=>{N(e||"")}}),u&&g.siaCentral&&(0,x.jsx)(hu,{...m,"data-testid":"fiatInput",size:s,variant:"ghost",focus:"none",value:"NaN"!==k?k:"",units:g.currency.label,decimalsLimit:i,allowNegativeValue:!1,placeholder:"".concat(g.currency.prefix).concat(b?b.times(n).toFixed(i):"0.42"),prefix:f||g.currency.prefix,onFocus:e=>{j("fiat"),p&&p(e)},onBlur:e=>{j(void 0),h&&h(e)},onValueChange:e=>{A(e||"")}})]})});function hb(e){return(null==e?void 0:e.replace(/,/g,"."))||""}function hx(e){let{children:t}=e;return(0,x.jsx)(ll,{content:t,children:(0,x.jsx)("div",{className:"relative items-center inline mx-1",children:(0,x.jsx)(t8,{color:"subtle",children:(0,x.jsx)(ld.RdX,{className:"scale-75"})})})})}function hw(e){let{values:t,options:r,onChange:n}=e;return(0,x.jsx)("div",{className:"flex flex-wrap gap-1",children:r.map(e=>(0,x.jsx)(lc,{variant:t.includes(e.value)?"active":"inactive",onClick:()=>{n(e.value)},children:e.label},e.value))})}let hE=(0,ey.j)(["font-sans","font-normal","tabular-nums","flex-shrink-0","rounded","flex items-center","bg-white dark:bg-graydark-200","hover:bg-gray-50 dark:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","autofill:bg-blue-100 autofill:dark:bg-blue-800","border","focus-within:z-10","focus-within:ring ring-blue-500 dark:ring-blue-200","text-gray-1100 dark:text-white","[&>select:disabled]:text-gray-600 [&>select:disabled]:dark:text-graydark-700"],{variants:{size:{small:"h-7 text-sm px-1",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]}},defaultVariants:{state:"default",size:"small"}}),hj=w.forwardRef((e,t)=>{let{size:r,state:n,icon:i,className:o,...a}=e;return(0,x.jsxs)("div",{className:hE({size:r,state:n,className:o}),children:[i,(0,x.jsx)("select",{ref:t,...a,className:"appearance-none flex-1 bg-transparent outline-none w-full h-full pl-1 pr-1"}),(0,x.jsx)(ld.Cp0,{className:"pointer-events-none scale-75"})]})}),hS=w.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,x.jsx)("option",{ref:t,...n,className:(0,ey.cx)("bg-white dark:bg-graydark-200","text-gray-1100 dark:text-white",r)})}),hC=(0,ey.j)(["bg-gray-300 dark:bg-graydark-300","relative","overflow-hidden","animate-pulse","rounded"]);function hk(e){let{className:t}=e;return(0,x.jsx)("div",{className:hC({className:t})})}function hA(e){let t=(0,w.useRef)({value:e,previous:e});return(0,w.useMemo)(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(0,ey.j)(["rounded-full flex-shrink-0"],{variants:{size:{default:"w-2 h-2"}},defaultVariants:{size:"default"}});let hO="Switch",[hT,h_]=C(hO),[hM,hR]=hT(hO),hN=(0,w.forwardRef)((e,t)=>{let{__scopeSwitch:r,"aria-labelledby":n,name:i,checked:o,defaultChecked:a,required:s,disabled:l,value:u="on",onCheckedChange:c,...d}=e,[f,h]=(0,w.useState)(null),p=A(t,e=>h(e)),m=fo(f),v=(0,w.useRef)(!1),g=!f||!!f.closest("form"),[y=!1,b]=L({prop:o,defaultProp:a,onChange:c});return(0,w.createElement)(hM,{scope:r,checked:y,disabled:l},(0,w.createElement)(I.button,j({type:"button",role:"switch","aria-checked":y,"aria-labelledby":n||m,"aria-required":s,"data-state":hD(y),"data-disabled":l?"":void 0,disabled:l,value:u},d,{ref:p,onClick:N(e.onClick,e=>{b(e=>!e),g&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})),g&&(0,w.createElement)(hL,{control:f,bubbles:!v.current,name:i,value:u,checked:y,required:s,disabled:l,style:{transform:"translateX(-100%)"}}))}),hP=(0,w.forwardRef)((e,t)=>{let{__scopeSwitch:r,...n}=e,i=hR("SwitchThumb",r);return(0,w.createElement)(I.span,j({"data-state":hD(i.checked),"data-disabled":i.disabled?"":void 0},n,{ref:t}))}),hL=e=>{let{control:t,checked:r,bubbles:n=!0,...i}=e,o=(0,w.useRef)(null),a=hA(r),s=tv(t);return(0,w.useEffect)(()=>{let e=o.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked"),s=i.set;if(a!==r&&s){let t=new Event("click",{bubbles:n});s.call(e,r),e.dispatchEvent(t)}},[a,r,n]),(0,w.createElement)("input",j({type:"checkbox","aria-hidden":!0,defaultChecked:r},i,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function hD(e){return e?"checked":"unchecked"}let hI=(0,ey.j)(["absolute left-0 rounded-full","transition-transform","bg-white dark:bg-graydark-500"],{variants:{size:{small:["w-3 h-3","translate-x-px","data-[state=checked]:translate-x-[9px]"],medium:["w-5 h-5","translate-x-0.5","data-[state=checked]:translate-x-[20px]"]}},defaultVariants:{size:"small"}}),hF=(0,ey.j)(["select-none outline-none","relative inline-flex items-center justify-center","m-0 rounded-full","focus:ring ring-blue-500 dark:ring-blue-200","border","bg-gray-300 dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","disabled:cursor-default","enabled:data-[state=checked]:bg-green-600 dark:enabled:data-[state=checked]:bg-green-500","disabled:data-[state=checked]:bg-green-600/50 dark:disabled:data-[state=checked]:bg-green-500/50"],{variants:{size:{small:"w-6 h-4",medium:"w-11 h-6"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]}},defaultVariants:{size:"small",state:"default"}}),hV=(0,w.forwardRef)((e,t)=>{let{size:r,state:n,className:i,children:o,...a}=e;return(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(hN,{className:hF({size:r,state:n,className:i}),...a,ref:t,children:(0,x.jsx)(hP,{className:hI({size:r})})}),o&&(0,x.jsx)(t8,{color:a.disabled?"subtle":"contrast",children:o})]})}),hB=(0,w.forwardRef)((e,t)=>{let{children:r,...n}=e,i=w.Children.toArray(r),o=i.find(hH);if(o){let e=o.props.children,r=i.map(t=>t!==o?t:w.Children.count(e)>1?w.Children.only(null):(0,w.isValidElement)(e)?e.props.children:null);return(0,w.createElement)(hU,j({},n,{ref:t}),(0,w.isValidElement)(e)?(0,w.cloneElement)(e,void 0,r):null)}return(0,w.createElement)(hU,j({},n,{ref:t}),r)});hB.displayName="Slot";let hU=(0,w.forwardRef)((e,t)=>{let{children:r,...n}=e;return(0,w.isValidElement)(r)?(0,w.cloneElement)(r,{...function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n],a=/^on[A-Z]/.test(n);a?i&&o?r[n]=(...e)=>{o(...e),i(...e)}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props),ref:k(t,r.ref)}):w.Children.count(r)>1?w.Children.only(null):null});hU.displayName="SlotClone";let hz=({children:e})=>(0,w.createElement)(w.Fragment,null,e);function hH(e){return(0,w.isValidElement)(e)&&e.type===hz}let h$=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=(0,w.forwardRef)((e,r)=>{let{asChild:n,...i}=e,o=n?hB:t;return(0,w.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,w.createElement)(o,j({},i,{ref:r}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),hW=(0,w.forwardRef)((e,t)=>{let{children:r,width:n=10,height:i=5,...o}=e;return(0,w.createElement)(h$.svg,j({},o,{ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?r:(0,w.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),hq="Popper",[hG,hZ]=C(hq),[hY,hX]=hG(hq),hK=(0,w.forwardRef)((e,t)=>{let{__scopePopper:r,virtualRef:n,...i}=e,o=hX("PopperAnchor",r),a=(0,w.useRef)(null),s=A(t,a);return(0,w.useEffect)(()=>{o.onAnchorChange((null==n?void 0:n.current)||a.current)}),n?null:(0,w.createElement)(h$.div,j({},i,{ref:s}))}),hJ="PopperContent",[hQ,h0]=hG(hJ),[h1,h2]=hG(hJ,{hasParent:!1,positionUpdateFns:new Set}),h4=(0,w.forwardRef)((e,t)=>{var r,n,i,o,a,s,l,u,c;let{__scopePopper:d,side:f="bottom",sideOffset:h=0,align:p="center",alignOffset:m=0,arrowPadding:v=0,collisionBoundary:g=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:x=!1,avoidCollisions:E=!0,onPlaced:j,...S}=e,C=hX(hJ,d),[k,O]=(0,w.useState)(null),T=A(t,e=>O(e)),[_,M]=(0,w.useState)(null),R=tv(_),N=null!==(r=null==R?void 0:R.width)&&void 0!==r?r:0,L=null!==(n=null==R?void 0:R.height)&&void 0!==n?n:0,D="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},I=Array.isArray(g)?g:[g],F=I.length>0,B={padding:D,boundary:I.filter(h6),altBoundary:F},{reference:U,floating:z,strategy:H,x:$,y:W,placement:q,middlewareData:G,update:Z}=th({strategy:"fixed",placement:f+("center"!==p?"-"+p:""),whileElementsMounted:tc,middleware:[h8(),eW({mainAxis:h+L,alignmentAxis:m}),E?eG({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?eZ():void 0,...B}):void 0,_?tp({element:_,padding:v}):void 0,E?eU({...B}):void 0,{name:"size",options:c={...B,apply:({elements:e,availableWidth:t,availableHeight:r})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${r}px`)}},async fn(e){let t,r;let{placement:n,rects:i,platform:o,elements:a}=e,{apply:s,...l}=c,u=await eR(e,l),d=eS(n),f=eC(n);"top"===d||"bottom"===d?(t=d,r=f===(await (null==o.isRTL?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(r=d,t="end"===f?"top":"bottom");let h=eP(u.left,0),p=eP(u.right,0),m=eP(u.top,0),v=eP(u.bottom,0),g={availableHeight:i.floating.height-(["left","right"].includes(n)?2*(0!==m||0!==v?m+v:eP(u.top,u.bottom)):u[t]),availableWidth:i.floating.width-(["top","bottom"].includes(n)?2*(0!==h||0!==p?h+p:eP(u.left,u.right)):u[r])},y=await o.getDimensions(a.floating);null==s||s({...e,...g});let b=await o.getDimensions(a.floating);return y.width!==b.width||y.height!==b.height?{reset:{rects:!0}}:{}}},h7({arrowWidth:N,arrowHeight:L}),x?e$({strategy:"referenceHidden"}):void 0].filter(h5)});V(()=>{U(C.anchor)},[U,C.anchor]);let Y=null!==$&&null!==W,[X,K]=h9(q),J=P(j);V(()=>{Y&&(null==J||J())},[Y,J]);let Q=null===(i=G.arrow)||void 0===i?void 0:i.x,ee=null===(o=G.arrow)||void 0===o?void 0:o.y,et=(null===(a=G.arrow)||void 0===a?void 0:a.centerOffset)!==0,[er,en]=(0,w.useState)();V(()=>{k&&en(window.getComputedStyle(k).zIndex)},[k]);let{hasParent:ei,positionUpdateFns:eo}=h2(hJ,d),ea=!ei;(0,w.useLayoutEffect)(()=>{if(!ea)return eo.add(Z),()=>{eo.delete(Z)}},[ea,eo,Z]),V(()=>{ea&&Y&&Array.from(eo).reverse().forEach(e=>requestAnimationFrame(e))},[ea,Y,eo]);let es={"data-side":X,"data-align":K,...S,ref:T,style:{...S.style,animation:Y?void 0:"none",opacity:null!==(s=G.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,w.createElement)("div",{ref:z,"data-radix-popper-content-wrapper":"",style:{position:H,left:0,top:0,transform:Y?`translate3d(${Math.round($)}px, ${Math.round(W)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:er,"--radix-popper-transform-origin":[null===(l=G.transformOrigin)||void 0===l?void 0:l.x,null===(u=G.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},(0,w.createElement)(hQ,{scope:d,placedSide:X,onArrowChange:M,arrowX:Q,arrowY:ee,shouldHideArrow:et},ea?(0,w.createElement)(h1,{scope:d,hasParent:!0,positionUpdateFns:eo},(0,w.createElement)(h$.div,es)):(0,w.createElement)(h$.div,es)))}),h3={top:"bottom",right:"left",bottom:"top",left:"right"};function h5(e){return void 0!==e}function h6(e){return null!==e}let h8=()=>({name:"anchorCssProperties",fn(e){let{rects:t,elements:r}=e,{width:n,height:i}=t.reference;return r.floating.style.setProperty("--radix-popper-anchor-width",`${n}px`),r.floating.style.setProperty("--radix-popper-anchor-height",`${i}px`),{}}}),h7=e=>({name:"transformOrigin",options:e,fn(t){var r,n,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(r=u.arrow)||void 0===r?void 0:r.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=h9(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(n=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==n?n:0)+d/2,g=(null!==(o=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==o?o:0)+f/2,y="",b="";return"bottom"===h?(y=c?m:`${v}px`,b=`${-f}px`):"top"===h?(y=c?m:`${v}px`,b=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,b=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,b=c?m:`${g}px`),{data:{x:y,y:b}}}});function h9(e){let[t,r="center"]=e.split("-");return[t,r]}let pe=e=>{let{__scopePopper:t,children:r}=e,[n,i]=(0,w.useState)(null);return(0,w.createElement)(hY,{scope:t,anchor:n,onAnchorChange:i},r)},pt=(0,w.forwardRef)((e,t)=>{var r;let{container:n=null==globalThis?void 0:null===(r=globalThis.document)||void 0===r?void 0:r.body,...i}=e;return n?D.createPortal((0,w.createElement)(h$.div,j({},i,{ref:t})),n):null}),pr="dismissableLayer.update",pn=(0,w.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pi=(0,w.forwardRef)((e,t)=>{var r;let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,w.useContext)(pn),[f,h]=(0,w.useState)(null),p=null!==(r=null==f?void 0:f.ownerDocument)&&void 0!==r?r:null==globalThis?void 0:globalThis.document,[,m]=(0,w.useState)({}),v=A(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),x=f?g.indexOf(f):-1,E=d.layersWithOutsidePointerEventsDisabled.size>0,S=x>=b,C=function(e,t=null==globalThis?void 0:globalThis.document){let r=P(e),n=(0,w.useRef)(!1),i=(0,w.useRef)(()=>{});return(0,w.useEffect)(()=>{let e=e=>{if(e.target&&!n.current){let n={originalEvent:e};function o(){pa("dismissableLayer.pointerDownOutside",r,n,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=o,t.addEventListener("click",i.current,{once:!0})):o()}n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,r=[...d.branches].some(e=>e.contains(t));!S||r||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),k=function(e,t=null==globalThis?void 0:globalThis.document){let r=P(e),n=(0,w.useRef)(!1);return(0,w.useEffect)(()=>{let e=e=>{e.target&&!n.current&&pa("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target,r=[...d.branches].some(e=>e.contains(t));r||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==u||u())},p);return!function(e,t=null==globalThis?void 0:globalThis.document){let r=P(e);(0,w.useEffect)(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[r,t])}(e=>{let t=x===d.layers.size-1;t&&(null==o||o(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,w.useEffect)(()=>{if(f)return n&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(i=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),po(),()=>{n&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=i)}},[f,p,n,d]),(0,w.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),po())},[f,d]),(0,w.useEffect)(()=>{let e=()=>m({});return document.addEventListener(pr,e),()=>document.removeEventListener(pr,e)},[]),(0,w.createElement)(h$.div,j({},c,{ref:v,style:{pointerEvents:E?S?"auto":"none":void 0,...e.style},onFocusCapture:N(e.onFocusCapture,k.onFocusCapture),onBlurCapture:N(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:N(e.onPointerDownCapture,C.onPointerDownCapture)}))});function po(){let e=new CustomEvent(pr);document.dispatchEvent(e)}function pa(e,t,r,{discrete:n}){let i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});(t&&i.addEventListener(e,t,{once:!0}),n)?i&&(0,D.flushSync)(()=>i.dispatchEvent(o)):i.dispatchEvent(o)}let ps="HoverCard",[pl,pu]=C(ps,[hZ]),pc=hZ(),[pd,pf]=pl(ps),ph=(0,w.forwardRef)((e,t)=>{let{__scopeHoverCard:r,...n}=e,i=pf("HoverCardTrigger",r),o=pc(r);return(0,w.createElement)(hK,j({asChild:!0},o),(0,w.createElement)(h$.a,j({"data-state":i.open?"open":"closed"},n,{ref:t,onPointerEnter:N(e.onPointerEnter,px(i.onOpen)),onPointerLeave:N(e.onPointerLeave,px(i.onClose)),onFocus:N(e.onFocus,i.onOpen),onBlur:N(e.onBlur,i.onClose),onTouchStart:N(e.onTouchStart,e=>e.preventDefault())})))}),pp="HoverCardPortal",[pm,pv]=pl(pp,{forceMount:void 0}),pg="HoverCardContent",py=(0,w.forwardRef)((e,t)=>{let r=pv(pg,e.__scopeHoverCard),{forceMount:n=r.forceMount,...i}=e,o=pf(pg,e.__scopeHoverCard);return(0,w.createElement)(B,{present:n||o.open},(0,w.createElement)(pb,j({"data-state":o.open?"open":"closed"},i,{onPointerEnter:N(e.onPointerEnter,px(o.onOpen)),onPointerLeave:N(e.onPointerLeave,px(o.onClose)),ref:t})))}),pb=(0,w.forwardRef)((e,t)=>{let{__scopeHoverCard:r,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,...l}=e,u=pf(pg,r),c=pc(r),d=(0,w.useRef)(null),f=A(t,d),[h,p]=(0,w.useState)(!1);return(0,w.useEffect)(()=>{if(h){let e=document.body;return o=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=o,e.style.webkitUserSelect=o}}},[h]),(0,w.useEffect)(()=>{if(d.current){let e=()=>{p(!1),u.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;let t=(null===(e=document.getSelection())||void 0===e?void 0:e.toString())!=="";t&&(u.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!1}}},[u.isPointerDownOnContentRef,u.hasSelectionRef]),(0,w.useEffect)(()=>{if(d.current){let e=function(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;r.nextNode();)t.push(r.currentNode);return t}(d.current);e.forEach(e=>e.setAttribute("tabindex","-1"))}}),(0,w.createElement)(pi,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:s,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:N(a,e=>{e.preventDefault()}),onDismiss:u.onDismiss},(0,w.createElement)(h4,j({},c,l,{onPointerDown:N(l.onPointerDown,e=>{e.currentTarget.contains(e.target)&&p(!0),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!0}),ref:f,style:{...l.style,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)",userSelect:h?"text":void 0,WebkitUserSelect:h?"text":void 0}})))});function px(e){return t=>"touch"===t.pointerType?void 0:e()}let pw=e=>{let{__scopeHoverCard:t,children:r,open:n,defaultOpen:i,onOpenChange:o,openDelay:a=700,closeDelay:s=300}=e,l=pc(t),u=(0,w.useRef)(0),c=(0,w.useRef)(0),d=(0,w.useRef)(!1),f=(0,w.useRef)(!1),[h=!1,p]=L({prop:n,defaultProp:i,onChange:o}),m=(0,w.useCallback)(()=>{clearTimeout(c.current),u.current=window.setTimeout(()=>p(!0),a)},[a,p]),v=(0,w.useCallback)(()=>{clearTimeout(u.current),d.current||f.current||(c.current=window.setTimeout(()=>p(!1),s))},[s,p]),g=(0,w.useCallback)(()=>p(!1),[p]);return(0,w.useEffect)(()=>()=>{clearTimeout(u.current),clearTimeout(c.current)},[]),(0,w.createElement)(pd,{scope:t,open:h,onOpenChange:p,onOpen:m,onClose:v,onDismiss:g,hasSelectionRef:d,isPointerDownOnContentRef:f},(0,w.createElement)(pe,l,r))},pE=e=>{let{__scopeHoverCard:t,forceMount:r,children:n,container:i}=e,o=pf(pp,t);return(0,w.createElement)(pm,{scope:t,forceMount:r},(0,w.createElement)(B,{present:r||o.open},(0,w.createElement)(pt,{asChild:!0,container:i},n)))},pj=(0,ey.j)(["relative","z-10","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),pS=(0,ey.cx)(t9(),"max-w-sm","py-0.5","px-1"),pC={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},pk=w.forwardRef((e,t)=>{let{trigger:r,children:n,rootProps:i,contentProps:o}=e,{className:a,...s}=o||{},{open:l,onOpenChange:u}=la({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,x.jsxs)(pw,{open:l,onOpenChange:u,...i,children:[r&&(0,x.jsx)(ph,{asChild:!0,children:r}),(0,x.jsx)(rN,{children:l?(0,x.jsx)(pE,{forceMount:!0,children:(0,x.jsx)(py,{asChild:!0,forceMount:!0,ref:t,...s,children:(0,x.jsx)(lo.div,{variants:pC,initial:"init",animate:"show",exit:"exit",className:pj(),children:(0,x.jsx)("div",{className:(0,ey.cx)(pS,a),children:n})})})}):null})]})}),pA=w.forwardRef((e,t)=>(0,x.jsx)("button",{...e,ref:t,className:(0,ey.cx)("select-none flex items-center gap-4 rounded py-4 px-4","focus:ring ring-blue-500 dark:ring-blue-200","border","bg-gray-200 dark:bg-graydark-50","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","disabled:cursor-default","disabled:opacity-50")}));function pO(e,t=[]){let r=[],n=()=>{let t=r.map(e=>(0,w.createContext)(e));return function(r){let n=(null==r?void 0:r[e])||t;return(0,w.useMemo)(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){let i=(0,w.createContext)(n),o=r.length;function a(t){let{scope:r,children:n,...a}=t,s=(null==r?void 0:r[e][o])||i,l=(0,w.useMemo)(()=>a,Object.values(a));return(0,w.createElement)(s.Provider,{value:l},n)}return r=[...r,n],a.displayName=t+"Provider",[a,function(r,a){let s=(null==a?void 0:a[e][o])||i,l=(0,w.useContext)(s);if(l)return l;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e),o=i[`__scope${n}`];return{...t,...o}},{});return(0,w.useMemo)(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(n,...t)]}function pT(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(null==e||e(n),!1===r||!n.defaultPrevented)return null==t?void 0:t(n)}}function p_(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function pM(...e){return(0,w.useCallback)(p_(...e),e)}let pR=(0,w.forwardRef)((e,t)=>{let{children:r,...n}=e,i=w.Children.toArray(r),o=i.find(pL);if(o){let e=o.props.children,r=i.map(t=>t!==o?t:w.Children.count(e)>1?w.Children.only(null):(0,w.isValidElement)(e)?e.props.children:null);return(0,w.createElement)(pN,j({},n,{ref:t}),(0,w.isValidElement)(e)?(0,w.cloneElement)(e,void 0,r):null)}return(0,w.createElement)(pN,j({},n,{ref:t}),r)});pR.displayName="Slot";let pN=(0,w.forwardRef)((e,t)=>{let{children:r,...n}=e;return(0,w.isValidElement)(r)?(0,w.cloneElement)(r,{...function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n],a=/^on[A-Z]/.test(n);a?i&&o?r[n]=(...e)=>{o(...e),i(...e)}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props),ref:t?p_(t,r.ref):r.ref}):w.Children.count(r)>1?w.Children.only(null):null});pN.displayName="SlotClone";let pP=({children:e})=>(0,w.createElement)(w.Fragment,null,e);function pL(e){return(0,w.isValidElement)(e)&&e.type===pP}let pD=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=(0,w.forwardRef)((e,r)=>{let{asChild:n,...i}=e,o=n?pR:t;return(0,w.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,w.createElement)(o,j({},i,{ref:r}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function pI(e){let t=(0,w.useRef)(e);return(0,w.useEffect)(()=>{t.current=e}),(0,w.useMemo)(()=>(...e)=>{var r;return null===(r=t.current)||void 0===r?void 0:r.call(t,...e)},[])}let pF=(null==globalThis?void 0:globalThis.document)?w.useLayoutEffect:()=>{},pV=e=>{let{present:t,children:r}=e,n=function(e){var t;let[r,n]=(0,w.useState)(),i=(0,w.useRef)({}),o=(0,w.useRef)(e),a=(0,w.useRef)("none"),s=e?"mounted":"unmounted",[l,u]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,w.useReducer)((e,r)=>{let n=t[e][r];return null!=n?n:e},s));return(0,w.useEffect)(()=>{let e=pB(i.current);a.current="mounted"===l?e:"none"},[l]),pF(()=>{let t=i.current,r=o.current,n=r!==e;if(n){let n=a.current,i=pB(t);e?u("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?u("UNMOUNT"):r&&n!==i?u("ANIMATION_OUT"):u("UNMOUNT"),o.current=e}},[e,u]),pF(()=>{if(r){let e=e=>{let t=pB(i.current),n=t.includes(e.animationName);e.target===r&&n&&(0,D.flushSync)(()=>u("ANIMATION_END"))},t=e=>{e.target===r&&(a.current=pB(i.current))};return r.addEventListener("animationstart",t),r.addEventListener("animationcancel",e),r.addEventListener("animationend",e),()=>{r.removeEventListener("animationstart",t),r.removeEventListener("animationcancel",e),r.removeEventListener("animationend",e)}}u("ANIMATION_END")},[r,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,w.useCallback)(e=>{e&&(i.current=getComputedStyle(e)),n(e)},[])}}(t),i="function"==typeof r?r({present:n.isPresent}):w.Children.only(r),o=pM(n.ref,i.ref),a="function"==typeof r;return a||n.isPresent?(0,w.cloneElement)(i,{ref:o}):null};function pB(e){return(null==e?void 0:e.animationName)||"none"}pV.displayName="Presence";let pU=E["useId".toString()]||(()=>void 0),pz=0;function pH(e){let t=e+"CollectionProvider",[r,n]=pO(t),[i,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=w.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=o(a,r),s=pM(t,i.collectionRef);return w.createElement(pR,{ref:s},n)}),l=e+"CollectionItemSlot",u="data-radix-collection-item",c=w.forwardRef((e,t)=>{let{scope:r,children:n,...i}=e,a=w.useRef(null),s=pM(t,a),c=o(l,r);return w.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),w.createElement(pR,{[u]:"",ref:s},n)});return[{Provider:e=>{let{scope:t,children:r}=e,n=w.useRef(null),o=w.useRef(new Map).current;return w.createElement(i,{scope:t,itemMap:o,collectionRef:n},r)},Slot:s,ItemSlot:c},function(t){let r=o(e+"CollectionConsumer",t),n=w.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`)),n=Array.from(r.itemMap.values()),i=n.sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current));return i},[r.collectionRef,r.itemMap]);return n},n]}let p$="dismissableLayer.update",pW=(0,w.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pq=(0,w.forwardRef)((e,t)=>{var r;let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,w.useContext)(pW),[f,h]=(0,w.useState)(null),p=null!==(r=null==f?void 0:f.ownerDocument)&&void 0!==r?r:null==globalThis?void 0:globalThis.document,[,m]=(0,w.useState)({}),v=pM(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),x=f?g.indexOf(f):-1,E=d.layersWithOutsidePointerEventsDisabled.size>0,S=x>=b,C=function(e,t=null==globalThis?void 0:globalThis.document){let r=pI(e),n=(0,w.useRef)(!1),i=(0,w.useRef)(()=>{});return(0,w.useEffect)(()=>{let e=e=>{if(e.target&&!n.current){let n={originalEvent:e};function o(){pZ("dismissableLayer.pointerDownOutside",r,n,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=o,t.addEventListener("click",i.current,{once:!0})):o()}n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,r=[...d.branches].some(e=>e.contains(t));!S||r||(null==o||o(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),k=function(e,t=null==globalThis?void 0:globalThis.document){let r=pI(e),n=(0,w.useRef)(!1);return(0,w.useEffect)(()=>{let e=e=>{e.target&&!n.current&&pZ("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target,r=[...d.branches].some(e=>e.contains(t));r||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==u||u())},p);return!function(e,t=null==globalThis?void 0:globalThis.document){let r=pI(e);(0,w.useEffect)(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[r,t])}(e=>{let t=x===d.layers.size-1;t&&(null==i||i(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,w.useEffect)(()=>{if(f)return n&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(a=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),pG(),()=>{n&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=a)}},[f,p,n,d]),(0,w.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),pG())},[f,d]),(0,w.useEffect)(()=>{let e=()=>m({});return document.addEventListener(p$,e),()=>document.removeEventListener(p$,e)},[]),(0,w.createElement)(pD.div,j({},c,{ref:v,style:{pointerEvents:E?S?"auto":"none":void 0,...e.style},onFocusCapture:pT(e.onFocusCapture,k.onFocusCapture),onBlurCapture:pT(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:pT(e.onPointerDownCapture,C.onPointerDownCapture)}))});function pG(){let e=new CustomEvent(p$);document.dispatchEvent(e)}function pZ(e,t,r,{discrete:n}){var i,o;let a=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?(i=a,o=s,i&&(0,D.flushSync)(()=>i.dispatchEvent(o))):a.dispatchEvent(s)}(e,t)=>(0,w.createElement)(pD.span,j({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));let pY="NavigationMenu",[pX,pK,pJ]=pH(pY),[pQ,p0,p1]=pH(pY),[p2,p4]=pO(pY,[pJ,p1]),[p3,p5]=p2(pY),[p6,p8]=p2(pY),[p7,p9]=p2("NavigationMenuItem"),me=((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,i=p5("NavigationMenuIndicator",r),o=pK(r),[a,s]=(0,w.useState)(null),[l,u]=(0,w.useState)(null),c="horizontal"===i.orientation,d=!!i.value;(0,w.useEffect)(()=>{var e;let t=o(),r=null===(e=t.find(e=>e.value===i.value))||void 0===e?void 0:e.ref.current;r&&s(r)},[o,i.value]);let f=()=>{a&&u({size:c?a.offsetWidth:a.offsetHeight,offset:c?a.offsetLeft:a.offsetTop})};return ma(a,f),ma(i.indicatorTrack,f),l?(0,w.createElement)(pD.div,j({"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":i.orientation},n,{ref:t,style:{position:"absolute",...c?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...n.style}})):null},"NavigationMenuContent"),mt=((e,t)=>{let r=p5(me,e.__scopeNavigationMenu),{onViewportContentChange:n,onViewportContentRemove:i}=r;return pF(()=>{n(e.value,{ref:t,...e})},[e,t,n]),pF(()=>()=>i(e.value),[e.value,i]),null},"navigationMenu.rootContentDismiss"),mr=(0,w.forwardRef)((e,t)=>{let{__scopeNavigationMenu:r,value:n,triggerRef:i,focusProxyRef:o,wasEscapeCloseRef:a,onRootContentClose:s,onContentFocusOutside:l,...u}=e,c=p5(me,r),d=(0,w.useRef)(null),f=pM(d,t),h=function(e,t){return`${e}-trigger-${t}`}(c.baseId,n),p=function(e,t){return`${e}-content-${t}`}(c.baseId,n),m=pK(r),v=(0,w.useRef)(null),{onItemDismiss:g}=c;(0,w.useEffect)(()=>{let e=d.current;if(c.isRootMenu&&e){let t=()=>{var t;g(),s(),e.contains(document.activeElement)&&(null===(t=i.current)||void 0===t||t.focus())};return e.addEventListener(mt,t),()=>e.removeEventListener(mt,t)}},[c.isRootMenu,e.value,i,g,s]);let y=(0,w.useMemo)(()=>{let e=m(),t=e.map(e=>e.value);"rtl"===c.dir&&t.reverse();let r=t.indexOf(c.value),i=t.indexOf(c.previousValue),o=n===c.value,a=i===t.indexOf(n);if(!o&&!a)return v.current;let s=(()=>{if(r!==i){if(o&&-1!==i)return r>i?"from-end":"from-start";if(a&&-1!==r)return r>i?"to-start":"to-end"}return null})();return v.current=s,s},[c.previousValue,c.value,c.dir,m,n]);return(0,w.createElement)(mn,{asChild:!0},(0,w.createElement)(pq,j({id:p,"aria-labelledby":h,"data-motion":y,"data-orientation":c.orientation},u,{ref:f,onDismiss:()=>{var e;let t=new Event(mt,{bubbles:!0,cancelable:!0});null===(e=d.current)||void 0===e||e.dispatchEvent(t)},onFocusOutside:pT(e.onFocusOutside,e=>{var t;l();let r=e.target;null!==(t=c.rootNavigationMenu)&&void 0!==t&&t.contains(r)&&e.preventDefault()}),onPointerDownOutside:pT(e.onPointerDownOutside,e=>{var t;let r=e.target,n=m().some(e=>{var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(r)}),i=c.isRootMenu&&(null===(t=c.viewport)||void 0===t?void 0:t.contains(r));(n||i||!c.isRootMenu)&&e.preventDefault()}),onKeyDown:pT(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey,r="Tab"===e.key&&!t;if(r){let t=function(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}(e.currentTarget),r=document.activeElement,i=t.findIndex(e=>e===r),a=e.shiftKey,s=a?t.slice(0,i).reverse():t.slice(i+1,t.length);if(mo(s))e.preventDefault();else{var n;null===(n=o.current)||void 0===n||n.focus()}}}),onEscapeKeyDown:pT(e.onEscapeKeyDown,e=>{a.current=!0})})))}),mn=((e,t)=>{let{__scopeNavigationMenu:r,children:n,...i}=e,o=p5("NavigationMenuViewport",r),a=pM(t,o.onViewportChange),s=p8(me,e.__scopeNavigationMenu),[l,u]=(0,w.useState)(null),[c,d]=(0,w.useState)(null),f=l?(null==l?void 0:l.width)+"px":void 0,h=l?(null==l?void 0:l.height)+"px":void 0,p=!!o.value,m=p?o.value:o.previousValue;return ma(c,()=>{c&&u({width:c.offsetWidth,height:c.offsetHeight})}),(0,w.createElement)(pD.div,j({"data-state":function(e){return e?"open":"closed"}(p),"data-orientation":o.orientation},i,{ref:a,style:{pointerEvents:!p&&o.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":f,"--radix-navigation-menu-viewport-height":h,...i.style},onPointerEnter:pT(e.onPointerEnter,o.onContentEnter),onPointerLeave:pT(e.onPointerLeave,function(e){return t=>"mouse"===t.pointerType?e(t):void 0}(o.onContentLeave))}),Array.from(s.items).map(([e,{ref:t,forceMount:r,...n}])=>{let i=m===e;return(0,w.createElement)(pV,{key:e,present:r||i},(0,w.createElement)(mr,j({},n,{ref:p_(t,e=>{i&&e&&d(e)})})))}))},(0,w.forwardRef)((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,i=p5("FocusGroup",r);return(0,w.createElement)(pQ.Provider,{scope:r},(0,w.createElement)(pQ.Slot,{scope:r},(0,w.createElement)(pD.div,j({dir:i.dir},n,{ref:t}))))})),mi=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"];(e,t)=>{let{__scopeNavigationMenu:r,...n}=e,i=p0(r),o=p5("FocusGroupItem",r);return(0,w.createElement)(pQ.ItemSlot,{scope:r},(0,w.createElement)(pD.button,j({},n,{ref:t,onKeyDown:pT(e.onKeyDown,e=>{let t=["Home","End",...mi].includes(e.key);if(t){let t=i().map(e=>e.ref.current),r="rtl"===o.dir?"ArrowRight":"ArrowLeft";if([r,"ArrowUp","End"].includes(e.key)&&t.reverse(),mi.includes(e.key)){let r=t.indexOf(e.currentTarget);t=t.slice(r+1)}setTimeout(()=>mo(t)),e.preventDefault()}})})))};function mo(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function ma(e,t){let r=pI(t);pF(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}let ms=["light","dark"],ml="(prefers-color-scheme: dark)",mu="undefined"==typeof window,mc=(0,w.createContext)(void 0),md={setTheme:e=>{},themes:[]},mf=()=>{var e;return null!==(e=(0,w.useContext)(mc))&&void 0!==e?e:md},mh=e=>(0,w.useContext)(mc)?w.createElement(w.Fragment,null,e.children):w.createElement(mm,e),mp=["light","dark"],mm=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:n=!0,storageKey:i="theme",themes:o=mp,defaultTheme:a=r?"system":"light",attribute:s="data-theme",value:l,children:u,nonce:c})=>{let[d,f]=(0,w.useState)(()=>mg(i,a)),[h,p]=(0,w.useState)(()=>mg(i)),m=l?Object.values(l):o,v=(0,w.useCallback)(e=>{let i=e;if(!i)return;"system"===e&&r&&(i=mb());let o=l?l[i]:i,u=t?my():null,c=document.documentElement;if("class"===s?(c.classList.remove(...m),o&&c.classList.add(o)):o?c.setAttribute(s,o):c.removeAttribute(s),n){let e=ms.includes(a)?a:null,t=ms.includes(i)?i:e;c.style.colorScheme=t}null==u||u()},[]),g=(0,w.useCallback)(e=>{f(e);try{localStorage.setItem(i,e)}catch(e){}},[e]),y=(0,w.useCallback)(t=>{let n=mb(t);p(n),"system"===d&&r&&!e&&v("system")},[d,e]);(0,w.useEffect)(()=>{let e=window.matchMedia(ml);return e.addListener(y),y(e),()=>e.removeListener(y)},[y]),(0,w.useEffect)(()=>{let e=e=>{e.key===i&&g(e.newValue||a)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[g]),(0,w.useEffect)(()=>{v(null!=e?e:d)},[e,d]);let b=(0,w.useMemo)(()=>({theme:d,setTheme:g,forcedTheme:e,resolvedTheme:"system"===d?h:d,themes:r?[...o,"system"]:o,systemTheme:r?h:void 0}),[d,g,e,h,r,o]);return w.createElement(mc.Provider,{value:b},w.createElement(mv,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:r,enableColorScheme:n,storageKey:i,themes:o,defaultTheme:a,attribute:s,value:l,children:u,attrs:m,nonce:c}),u)},mv=(0,w.memo)(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:i,defaultTheme:o,value:a,attrs:s,nonce:l})=>{let u="system"===o,c="class"===r?`var d=document.documentElement,c=d.classList;c.remove(${s.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${r}',s='setAttribute';`,d=i?ms.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(e,t=!1,n=!0)=>{let o=a?a[e]:e,s=t?e+"|| ''":`'${o}'`,l="";return i&&n&&!t&&ms.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===r?l+=t||o?`c.add(${s})`:"null":o&&(l+=`d[s](n,${s})`),l},h=e?`!function(){${c}${f(e)}}()`:n?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${ml}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${a?`var x=${JSON.stringify(a)};`:""}${f(a?"x[e]":"e",!0)}}${u?"":"else{"+f(o,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${a?`var x=${JSON.stringify(a)};`:""}${f(a?"x[e]":"e",!0)}}else{${f(o,!1,!1)};}${d}}catch(t){}}();`;return w.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:h}})},()=>!0),mg=(e,t)=>{let r;if(!mu){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},my=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},mb=e=>(e||(e=window.matchMedia(ml)),e.matches?"dark":"light"),mx="Radio",[mw,mE]=C(mx),[mj,mS]=mw(mx),mC=(0,w.forwardRef)((e,t)=>{let{__scopeRadio:r,"aria-labelledby":n,name:i,checked:o=!1,required:a,disabled:s,value:l="on",onCheck:u,...c}=e,[d,f]=(0,w.useState)(null),h=A(t,e=>f(e)),p=fo(d),m=(0,w.useRef)(!1),v=!d||!!d.closest("form");return(0,w.createElement)(mj,{scope:r,checked:o,disabled:s},(0,w.createElement)(I.button,j({type:"button",role:"radio","aria-checked":o,"aria-labelledby":n||p,"data-state":mA(o),"data-disabled":s?"":void 0,disabled:s,value:l},c,{ref:h,onClick:N(e.onClick,e=>{o||null==u||u(),v&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})),v&&(0,w.createElement)(mk,{control:d,bubbles:!m.current,name:i,value:l,checked:o,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))}),mk=((e,t)=>{let{__scopeRadio:r,forceMount:n,...i}=e,o=mS("RadioIndicator",r);return(0,w.createElement)(B,{present:n||o.checked},(0,w.createElement)(I.span,j({"data-state":mA(o.checked),"data-disabled":o.disabled?"":void 0},i,{ref:t})))},e=>{let{control:t,checked:r,bubbles:n=!0,...i}=e,o=(0,w.useRef)(null),a=hA(r),s=tv(t);return(0,w.useEffect)(()=>{let e=o.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked"),s=i.set;if(a!==r&&s){let t=new Event("click",{bubbles:n});s.call(e,r),e.dispatchEvent(t)}},[a,r,n]),(0,w.createElement)("input",j({type:"radio","aria-hidden":!0,defaultChecked:r},i,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))});function mA(e){return e?"checked":"unchecked"}let mO=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],mT="RadioGroup",[m_,mM]=C(mT,[cN,mE]),mR=cN(),mN=mE(),[mP,mL]=m_(mT),mD=(0,w.forwardRef)((e,t)=>{let{__scopeRadioGroup:r,name:n,"aria-labelledby":i,defaultValue:o,value:a,required:s=!1,orientation:l,dir:u,loop:c=!0,onValueChange:d,...f}=e,h=fo(),p=mR(r),m=uG(u),[v,g]=L({prop:a,defaultProp:o,onChange:d});return(0,w.createElement)(mP,{scope:r,name:n,required:s,value:v,onValueChange:g},(0,w.createElement)(cD,j({asChild:!0},p,{orientation:l,dir:m,loop:c}),(0,w.createElement)(I.div,j({role:"radiogroup","aria-required":s,"aria-orientation":l,"aria-labelledby":i||h,dir:m},f,{ref:t}))))}),mI=(0,w.forwardRef)((e,t)=>{let{__scopeRadioGroup:r,disabled:n,...i}=e,o=mL("RadioGroupItem",r),a=mR(r),s=mN(r),l=(0,w.useRef)(null),u=A(t,l),c=o.value===i.value,d=(0,w.useRef)(!1);return(0,w.useEffect)(()=>{let e=e=>{mO.includes(e.key)&&(d.current=!0)},t=()=>d.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,w.createElement)(cF,j({asChild:!0},a,{focusable:!n,active:c}),(0,w.createElement)(mC,j({disabled:n,required:o.required,checked:c},s,i,{name:o.name,ref:u,onCheck:()=>o.onValueChange(i.value),onKeyDown:N(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:N(i.onFocus,()=>{var e;d.current&&(null===(e=l.current)||void 0===e||e.click())})})))}),mF=w.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,x.jsx)(mI,{...n,ref:t,className:(0,ey.cx)("select-none flex items-center rounded cursor-pointer","focus:ring ring-blue-500 dark:ring-blue-200","text-gray-700 dark:text-graydark-700","data-[state=checked]:text-gray-1100 data-[state=checked]:dark:text-white",r)})});function mV(e){let{className:t,tooltipClassName:r,tabIndex:n}=e,{theme:i,setTheme:o}=mf();return(0,x.jsxs)(mD,{value:i,tabIndex:n,className:(0,ey.cx)("flex gap-4",t),onValueChange:e=>o(e),children:[(0,x.jsx)(mF,{value:"system",children:(0,x.jsx)(ll,{className:r,sideOffset:16,content:"System",children:(0,x.jsx)(ld.$Iz,{})})}),(0,x.jsx)(mF,{value:"light",children:(0,x.jsx)(ll,{className:r,sideOffset:16,content:"Light",children:(0,x.jsx)(ld.JaG,{})})}),(0,x.jsx)(mF,{value:"dark",children:(0,x.jsx)(ll,{className:r,sideOffset:16,content:"Dark",children:(0,x.jsx)(ld.osk,{})})})]})}var mB=r(72779),mU=r.n(mB),mz=["className","innerRef"];function mH(){return(mH=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,mz);return w.createElement("rect",mH({ref:r,className:mU()("visx-bar",t)},n))}var mW=["from","to","fill","className","innerRef"];function mq(){return(mq=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,mW),u=r.x===i.x||r.y===i.y;return w.createElement("line",mq({ref:s,className:mU()("visx-line",a),x1:r.x,y1:r.y,x2:i.x,y2:i.y,fill:void 0===o?"transparent":o,shapeRendering:u?"crispEdges":"auto"},l))}var mZ=r(13980),mY=r.n(mZ),mX=r(47440),mK=["top","left","transform","className","children","innerRef"];function mJ(){return(mJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,mK);return w.createElement("g",mJ({ref:a,className:mU()("visx-group",i),transform:n||"translate("+(void 0===r?0:r)+", "+(void 0===t?0:t)+")"},s),o)}mQ.propTypes={top:mY().number,left:mY().number,transform:mY().string,className:mY().string,children:mY().node,innerRef:mY().oneOfType([mY().string,mY().func,mY().object])};var m0=r(19067);function m1(e,t){return"ticks"in e?e.ticks(t):e.domain().filter(function(e,r,n){return null==t||n.length<=t||r%Math.round((n.length-1)/t)==0})}function m2(e){if(("function"==typeof e||"object"==typeof e&&e)&&"valueOf"in e){var t=e.valueOf();if("number"==typeof t)return t}return e}function m4(e){return"bandwidth"in e?e.bandwidth():0}var m3=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function m5(){return(m5=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,m3),g=null!=m?m:m1(n,void 0===f?10:f),y=(null!=p?p:0)+m4(n)/2,b=g.map(function(e,t){var r,o=(null!=(r=m2(n(e)))?r:0)+y;return{index:t,from:new m0.Z({x:0,y:o}),to:new m0.Z({x:i,y:o})}});return w.createElement(mQ,{className:mU()("visx-rows",c),top:void 0===t?0:t,left:void 0===r?0:r},d?d({lines:b}):b.map(function(e){var t=e.from,r=e.to,n=e.index;return w.createElement(mX.Z,m5({key:"row-line-"+n,from:t,to:r,stroke:a,strokeWidth:l,strokeDasharray:u,style:h},v))}))}m6.propTypes={tickValues:mY().array,width:mY().number.isRequired};var m8=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function m7(){return(m7=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,m8),g=null!=p?p:m1(n,void 0===d?10:d),y=(null!=h?h:0)+m4(n)/2,b=g.map(function(e,t){var r,o=(null!=(r=m2(n(e)))?r:0)+y;return{index:t,from:new m0.Z({x:o,y:0}),to:new m0.Z({x:o,y:i})}});return w.createElement(mQ,{className:mU()("visx-columns",c),top:void 0===t?0:t,left:void 0===r?0:r},m?m({lines:b}):b.map(function(e){var t=e.from,r=e.to,n=e.index;return w.createElement(mX.Z,m7({key:"column-line-"+n,from:t,to:r,stroke:a,strokeWidth:l,strokeDasharray:u,style:f},v))}))}m9.propTypes={tickValues:mY().array,height:mY().number.isRequired};var ve=Math.sqrt(50),vt=Math.sqrt(10),vr=Math.sqrt(2);function vn(e,t,r){var n=Math.abs(t-e)/Math.max(0,r),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),o=n/i;return o>=ve?i*=10:o>=vt?i*=5:o>=vr&&(i*=2),t0))return s;do s.push(a=new Date(+r)),t(r,o),e(r);while(a=t)for(;e(t),!r(t);)t.setTime(t-1)},function(e,n){if(e>=e){if(n<0)for(;++n<=0;)for(;t(e,-1),!r(e););else for(;--n>=0;)for(;t(e,1),!r(e););}})},r&&(i.count=function(t,n){return vl.setTime(+t),vu.setTime(+n),e(vl),e(vu),Math.floor(r(vl,vu))},i.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?i.filter(n?function(t){return n(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var vd=vc(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});vd.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?vc(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):vd:null},vd.range;var vf=vc(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+1e3*t)},function(e,t){return(t-e)/1e3},function(e){return e.getUTCSeconds()});vf.range;var vh=vc(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},function(e,t){e.setTime(+e+6e4*t)},function(e,t){return(t-e)/6e4},function(e){return e.getMinutes()});vh.range;var vp=vc(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()});vp.range;var vm=vc(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/vi,e=>e.getDate()-1);function vv(e){return vc(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/vo})}vm.range;var vg=vv(0),vy=vv(1),vb=vv(2),vx=vv(3),vw=vv(4),vE=vv(5),vj=vv(6);vg.range,vy.range,vb.range,vx.range,vw.range,vE.range,vj.range;var vS=vc(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});vS.range;var vC=vc(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});vC.every=function(e){return isFinite(e=Math.floor(e))&&e>0?vc(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)}):null},vC.range;var vk=vc(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+6e4*t)},function(e,t){return(t-e)/6e4},function(e){return e.getUTCMinutes()});vk.range;var vA=vc(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getUTCHours()});vA.range;var vO=vc(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/vi},function(e){return e.getUTCDate()-1});function vT(e){return vc(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/vo})}vO.range;var v_=vT(0),vM=vT(1),vR=vT(2),vN=vT(3),vP=vT(4),vL=vT(5),vD=vT(6);v_.range,vM.range,vR.range,vN.range,vP.range,vL.range,vD.range;var vI=vc(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});vI.range;var vF=vc(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});function vV(e,t,r,n,i,o){let a=[[vf,1,1e3],[vf,5,5e3],[vf,15,15e3],[vf,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[n,1,vi],[n,2,2*vi],[r,1,vo],[t,1,va],[t,3,3*va],[e,1,vs]];function s(t,r,n){let i=Math.abs(r-t)/n,o=(function(e){let t=e,r=e;function n(e,t,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n>>1;0>r(e[o],t)?n=o+1:i=o}return n}return 1===e.length&&(t=(t,r)=>e(t)-r,r=(t,r)=>{var n;return(n=e(t))r?1:n>=r?0:NaN}),{left:n,center:function(e,r,i,o){null==i&&(i=0),null==o&&(o=e.length);let a=n(e,r,i,o-1);return a>i&&t(e[a-1],r)>-t(e[a],r)?a-1:a},right:function(e,t,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n>>1;r(e[o],t)>0?i=o:n=o+1}return n}}})(([,,e])=>e).right(a,i);if(o===a.length)return e.every(vn(t/vs,r/vs,n));if(0===o)return vd.every(Math.max(vn(t,r,n),1));let[s,l]=a[i/a[o-1][2]0?vc(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)}):null},vF.range;let[vB,vU]=vV(vF,vI,v_,vO,vA,vk),[vz,vH]=vV(vC,vS,vg,vm,vp,vh);function v$(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function vW(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function vq(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}var vG={"-":"",_:" ",0:"0"},vZ=/^\s*\d+/,vY=/^%/,vX=/[\\^$*+?|[\]().{}]/g;function vK(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",o=i.length;return n+(o[e.toLowerCase(),t]))}function v1(e,t,r){var n=vZ.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function v2(e,t,r){var n=vZ.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function v4(e,t,r){var n=vZ.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function v3(e,t,r){var n=vZ.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function v5(e,t,r){var n=vZ.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function v6(e,t,r){var n=vZ.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function v8(e,t,r){var n=vZ.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function v7(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function v9(e,t,r){var n=vZ.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function ge(e,t,r){var n=vZ.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function gt(e,t,r){var n=vZ.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function gr(e,t,r){var n=vZ.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function gn(e,t,r){var n=vZ.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function gi(e,t,r){var n=vZ.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function go(e,t,r){var n=vZ.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function ga(e,t,r){var n=vZ.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function gs(e,t,r){var n=vZ.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function gl(e,t,r){var n=vY.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function gu(e,t,r){var n=vZ.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function gc(e,t,r){var n=vZ.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function gd(e,t){return vK(e.getDate(),t,2)}function gf(e,t){return vK(e.getHours(),t,2)}function gh(e,t){return vK(e.getHours()%12||12,t,2)}function gp(e,t){return vK(1+vm.count(vC(e),e),t,3)}function gm(e,t){return vK(e.getMilliseconds(),t,3)}function gv(e,t){return gm(e,t)+"000"}function gg(e,t){return vK(e.getMonth()+1,t,2)}function gy(e,t){return vK(e.getMinutes(),t,2)}function gb(e,t){return vK(e.getSeconds(),t,2)}function gx(e){var t=e.getDay();return 0===t?7:t}function gw(e,t){return vK(vg.count(vC(e)-1,e),t,2)}function gE(e){var t=e.getDay();return t>=4||0===t?vw(e):vw.ceil(e)}function gj(e,t){return e=gE(e),vK(vw.count(vC(e),e)+(4===vC(e).getDay()),t,2)}function gS(e){return e.getDay()}function gC(e,t){return vK(vy.count(vC(e)-1,e),t,2)}function gk(e,t){return vK(e.getFullYear()%100,t,2)}function gA(e,t){return vK((e=gE(e)).getFullYear()%100,t,2)}function gO(e,t){return vK(e.getFullYear()%1e4,t,4)}function gT(e,t){var r=e.getDay();return vK((e=r>=4||0===r?vw(e):vw.ceil(e)).getFullYear()%1e4,t,4)}function g_(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+vK(t/60|0,"0",2)+vK(t%60,"0",2)}function gM(e,t){return vK(e.getUTCDate(),t,2)}function gR(e,t){return vK(e.getUTCHours(),t,2)}function gN(e,t){return vK(e.getUTCHours()%12||12,t,2)}function gP(e,t){return vK(1+vO.count(vF(e),e),t,3)}function gL(e,t){return vK(e.getUTCMilliseconds(),t,3)}function gD(e,t){return gL(e,t)+"000"}function gI(e,t){return vK(e.getUTCMonth()+1,t,2)}function gF(e,t){return vK(e.getUTCMinutes(),t,2)}function gV(e,t){return vK(e.getUTCSeconds(),t,2)}function gB(e){var t=e.getUTCDay();return 0===t?7:t}function gU(e,t){return vK(v_.count(vF(e)-1,e),t,2)}function gz(e){var t=e.getUTCDay();return t>=4||0===t?vP(e):vP.ceil(e)}function gH(e,t){return e=gz(e),vK(vP.count(vF(e),e)+(4===vF(e).getUTCDay()),t,2)}function g$(e){return e.getUTCDay()}function gW(e,t){return vK(vM.count(vF(e)-1,e),t,2)}function gq(e,t){return vK(e.getUTCFullYear()%100,t,2)}function gG(e,t){return vK((e=gz(e)).getUTCFullYear()%100,t,2)}function gZ(e,t){return vK(e.getUTCFullYear()%1e4,t,4)}function gY(e,t){var r=e.getUTCDay();return vK((e=r>=4||0===r?vP(e):vP.ceil(e)).getUTCFullYear()%1e4,t,4)}function gX(){return"+0000"}function gK(){return"%"}function gJ(e){return+e}function gQ(e){return Math.floor(+e/1e3)}function g0(e,t){return et?1:e>=t?0:NaN}function g1(e){let t=e,r=e;function n(e,t,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n>>1;0>r(e[o],t)?n=o+1:i=o}return n}return 1===e.length&&(t=(t,r)=>e(t)-r,r=(t,r)=>g0(e(t),r)),{left:n,center:function(e,r,i,o){null==i&&(i=0),null==o&&(o=e.length);let a=n(e,r,i,o-1);return a>i&&t(e[a-1],r)>-t(e[a],r)?a-1:a},right:function(e,t,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n>>1;r(e[o],t)>0?i=o:n=o+1}return n}}}wJ=(wK=function(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=vQ(i),c=v0(i),d=vQ(o),f=v0(o),h=vQ(a),p=v0(a),m=vQ(s),v=v0(s),g=vQ(l),y=v0(l),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:gd,e:gd,f:gv,g:gA,G:gT,H:gf,I:gh,j:gp,L:gm,m:gg,M:gy,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:gJ,s:gQ,S:gb,u:gx,U:gw,V:gj,w:gS,W:gC,x:null,X:null,y:gk,Y:gO,Z:g_,"%":gK},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:gM,e:gM,f:gD,g:gG,G:gY,H:gR,I:gN,j:gP,L:gL,m:gI,M:gF,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:gJ,s:gQ,S:gV,u:gB,U:gU,V:gH,w:g$,W:gW,x:null,X:null,y:gq,Y:gZ,Z:gX,"%":gK},w={a:function(e,t,r){var n=h.exec(t.slice(r));return n?(e.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(e,t,r){var n=d.exec(t.slice(r));return n?(e.w=f.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(e,t,r){var n=g.exec(t.slice(r));return n?(e.m=y.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(e,t,r){var n=m.exec(t.slice(r));return n?(e.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(e,r,n){return S(e,t,r,n)},d:gt,e:gt,f:gs,g:v8,G:v6,H:gn,I:gn,j:gr,L:ga,m:ge,M:gi,p:function(e,t,r){var n=u.exec(t.slice(r));return n?(e.p=c.get(n[0].toLowerCase()),r+n[0].length):-1},q:v9,Q:gu,s:gc,S:go,u:v2,U:v4,V:v3,w:v1,W:v5,x:function(e,t,n){return S(e,r,t,n)},X:function(e,t,r){return S(e,n,t,r)},y:v8,Y:v6,Z:v7,"%":gl};function E(e,t){return function(r){var n,i,o,a=[],s=-1,l=0,u=e.length;for(r instanceof Date||(r=new Date(+r));++s53)return null;"w"in o||(o.w=1),"Z"in o?(n=(i=(n=vW(vq(o.y,0,1))).getUTCDay())>4||0===i?vM.ceil(n):vM(n),n=vO.offset(n,(o.V-1)*7),o.y=n.getUTCFullYear(),o.m=n.getUTCMonth(),o.d=n.getUTCDate()+(o.w+6)%7):(n=(i=(n=v$(vq(o.y,0,1))).getDay())>4||0===i?vy.ceil(n):vy(n),n=vm.offset(n,(o.V-1)*7),o.y=n.getFullYear(),o.m=n.getMonth(),o.d=n.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?vW(vq(o.y,0,1)).getUTCDay():v$(vq(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,vW(o)):v$(o)}}function S(e,t,r,n){for(var i,o,a=0,s=t.length,l=r.length;a=l)return -1;if(37===(i=t.charCodeAt(a++))){if(!(o=w[(i=t.charAt(a++))in vG?t.charAt(a++):i])||(n=o(e,r,n))<0)return -1}else if(i!=r.charCodeAt(n++))return -1}return n}return b.x=E(r,b),b.X=E(n,b),b.c=E(t,b),x.x=E(r,x),x.X=E(n,x),x.c=E(t,x),{format:function(e){var t=E(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=j(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=E(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=j(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,wK.parse,wK.utcFormat,wK.utcParse;let g2=g1(g0),g4=g2.right;function g3(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function g5(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function g6(){}g2.left,g1(function(e){return null===e?NaN:+e}).center;var g8="\\s*([+-]?\\d+)\\s*",g7="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",g9="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ye=/^#([0-9a-f]{3,8})$/,yt=RegExp("^rgb\\("+[g8,g8,g8]+"\\)$"),yr=RegExp("^rgb\\("+[g9,g9,g9]+"\\)$"),yn=RegExp("^rgba\\("+[g8,g8,g8,g7]+"\\)$"),yi=RegExp("^rgba\\("+[g9,g9,g9,g7]+"\\)$"),yo=RegExp("^hsl\\("+[g7,g9,g9]+"\\)$"),ya=RegExp("^hsla\\("+[g7,g9,g9,g7]+"\\)$"),ys={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function yl(){return this.rgb().formatHex()}function yu(){return this.rgb().formatRgb()}function yc(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=ye.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?yd(t):3===r?new ym(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?yf(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?yf(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=yt.exec(e))?new ym(t[1],t[2],t[3],1):(t=yr.exec(e))?new ym(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=yn.exec(e))?yf(t[1],t[2],t[3],t[4]):(t=yi.exec(e))?yf(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=yo.exec(e))?yb(t[1],t[2]/100,t[3]/100,1):(t=ya.exec(e))?yb(t[1],t[2]/100,t[3]/100,t[4]):ys.hasOwnProperty(e)?yd(ys[e]):"transparent"===e?new ym(NaN,NaN,NaN,0):null}function yd(e){return new ym(e>>16&255,e>>8&255,255&e,1)}function yf(e,t,r,n){return n<=0&&(e=t=r=NaN),new ym(e,t,r,n)}function yh(e){return(e instanceof g6||(e=yc(e)),e)?(e=e.rgb(),new ym(e.r,e.g,e.b,e.opacity)):new ym}function yp(e,t,r,n){return 1==arguments.length?yh(e):new ym(e,t,r,null==n?1:n)}function ym(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function yv(){return"#"+yy(this.r)+yy(this.g)+yy(this.b)}function yg(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function yy(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function yb(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new yE(e,t,r,n)}function yx(e){if(e instanceof yE)return new yE(e.h,e.s,e.l,e.opacity);if(e instanceof g6||(e=yc(e)),!e)return new yE;if(e instanceof yE)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(r-n)/s+(r0&&l<1?0:a,new yE(a,s,l,e.opacity)}function yw(e,t,r,n){return 1==arguments.length?yx(e):new yE(e,t,r,null==n?1:n)}function yE(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function yj(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function yS(e,t,r,n,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*r+(1+3*e+3*o-3*a)*n+a*i)/6}function yC(e){return function(){return e}}function yk(e,t){return function(r){return e+r*t}}function yA(e,t){var r=t-e;return r?yk(e,r>180||r<-180?r-360*Math.round(r/360):r):yC(isNaN(e)?t:e)}function yO(e,t){var r=t-e;return r?yk(e,r):yC(isNaN(e)?t:e)}g3(g6,yc,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:yl,formatHex:yl,formatHsl:function(){return yx(this).formatHsl()},formatRgb:yu,toString:yu}),g3(ym,yp,g5(g6,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new ym(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new ym(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:yv,formatHex:yv,formatRgb:yg,toString:yg})),g3(yE,yw,g5(g6,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new yE(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new yE(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new ym(yj(e>=240?e-240:e+120,i,n),yj(e,i,n),yj(e<120?e+240:e-120,i,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var yT=function e(t){var r,n=1==(r=+(r=t))?yO:function(e,t){var n,i,o;return t-e?(n=e,i=t,n=Math.pow(n,o=r),i=Math.pow(i,o)-n,o=1/o,function(e){return Math.pow(n+e*i,o)}):yC(isNaN(e)?t:e)};function i(e,t){var r=n((e=yp(e)).r,(t=yp(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=yO(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return i.gamma=e,i}(1);function y_(e){return function(t){var r,n,i=t.length,o=Array(i),a=Array(i),s=Array(i);for(r=0;r=1?(r=1,t-1):Math.floor(r*t),i=e[n],o=e[n+1],a=n>0?e[n-1]:2*i-o,s=ns&&(a=t.slice(s,a),u[l]?u[l]+=a:u[++l]=a),(i=i[0])===(o=o[0])?u[l]?u[l]+=o:u[++l]=o:(u[++l]=null,c.push({i:l,x:yM(i,o)})),s=yN.lastIndex;return st&&(r=e,e=t,t=r),u=function(r){return Math.max(e,Math.min(t,r))}),n=l>2?yB:yV,i=o=null,d}function d(t){return null==t||isNaN(t=+t)?r:(i||(i=n(a.map(e),s,l)))(e(u(t)))}return d.invert=function(r){return u(t((o||(o=n(s,a.map(e),yM)))(r)))},d.domain=function(e){return arguments.length?(a=Array.from(e,yL),c()):a.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),c()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=yP,c()},d.clamp=function(e){return arguments.length?(u=!!e||yI,c()):u!==yI},d.interpolate=function(e){return arguments.length?(l=e,c()):l},d.unknown=function(e){return arguments.length?(r=e,d):r},function(r,n){return e=r,t=n,c()}})()(yI,yI)}function yH(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function y$(e){return new Date(e)}function yW(e){return e instanceof Date?+e:+new Date(+e)}var yq=Math.PI/180,yG=180/Math.PI,yZ=4/29,yY=6/29,yX=3*(6/29)*(6/29),yK=6/29*(6/29)*(6/29);function yJ(e){if(e instanceof y0)return new y0(e.l,e.a,e.b,e.opacity);if(e instanceof y6)return y8(e);e instanceof ym||(e=yh(e));var t,r,n=y3(e.r),i=y3(e.g),o=y3(e.b),a=y1((.2225045*n+.7168786*i+.0606169*o)/1);return n===i&&i===o?t=r=a:(t=y1((.4360747*n+.3850649*i+.1430804*o)/.96422),r=y1((.0139322*n+.0971045*i+.7141733*o)/.82521)),new y0(116*a-16,500*(t-a),200*(a-r),e.opacity)}function yQ(e,t,r,n){return 1==arguments.length?yJ(e):new y0(e,t,r,null==n?1:n)}function y0(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function y1(e){return e>yK?Math.pow(e,1/3):e/yX+yZ}function y2(e){return e>yY?e*e*e:yX*(e-yZ)}function y4(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function y3(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function y5(e,t,r,n){return 1==arguments.length?function(e){if(e instanceof y6)return new y6(e.h,e.c,e.l,e.opacity);if(e instanceof y0||(e=yJ(e)),0===e.a&&0===e.b)return new y6(NaN,0=0?(o>=bg?10:o>=by?5:o>=bb?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=bg?10:o>=by?5:o>=bb?2:1)}var bw=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function bE(e){var t;if(!(t=bw.exec(e)))throw Error("invalid format: "+e);return new bj({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function bj(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function bS(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function bC(e){return(e=bS(Math.abs(e)))?e[1]:NaN}function bk(e,t){var r=bS(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+Array(i-n.length+2).join("0")}bE.prototype=bj.prototype,bj.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var bA={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>bk(100*e,t),r:bk,s:function(e,t){var r=bS(e,t);if(!r)return e+"";var n=r[0],i=r[1],o=i-(wQ=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=n.length;return o===a?n:o>a?n+Array(o-a+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+Array(1-o).join("0")+bS(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function bO(e){return e}var bT=Array.prototype.map,b_=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];w1=(w0=function(e){var t,r,n,i=void 0===e.grouping||void 0===e.thousands?bO:(t=bT.call(e.grouping,Number),r=e.thousands+"",function(e,n){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>n));)s=t[a=(a+1)%t.length];return o.reverse().join(r)}),o=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",s=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?bO:(n=bT.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return n[+e]})}),u=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",d=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=bE(e)).fill,r=e.align,n=e.sign,f=e.symbol,h=e.zero,p=e.width,m=e.comma,v=e.precision,g=e.trim,y=e.type;"n"===y?(m=!0,y="g"):bA[y]||(void 0===v&&(v=12),g=!0,y="g"),(h||"0"===t&&"="===r)&&(h=!0,t="0",r="=");var b="$"===f?o:"#"===f&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",x="$"===f?a:/[%p]/.test(y)?u:"",w=bA[y],E=/[defgprs%]/.test(y);function j(e){var o,a,u,f=b,j=x;if("c"===y)j=w(e)+j,e="";else{var S=(e=+e)<0||1/e<0;if(e=isNaN(e)?d:w(Math.abs(e),v),g&&(e=function(e){e:for(var t,r=e.length,n=1,i=-1;n0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==n&&(S=!1),f=(S?"("===n?n:c:"-"===n||"("===n?"":n)+f,j=("s"===y?b_[8+wQ/3]:"")+j+(S&&"("===n?")":""),E){for(o=-1,a=e.length;++o(u=e.charCodeAt(o))||u>57){j=(46===u?s+e.slice(o+1):e.slice(o))+j,e=e.slice(0,o);break}}}m&&!h&&(e=i(e,1/0));var C=f.length+e.length+j.length,k=C>1)+f+e+j+k.slice(C);break;default:e=k+f+e+j}return l(e)}return v=void 0===v?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),j.toString=function(){return e+""},j}return{format:f,formatPrefix:function(e,t){var r=f(((e=bE(e)).type="f",e)),n=3*Math.max(-8,Math.min(8,Math.floor(bC(t)/3))),i=Math.pow(10,-n),o=b_[8+n/3];return function(e){return r(i*e)+o}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,w2=w0.formatPrefix;var bM=bp("domain","range","reverse","clamp","interpolate","nice","round","zero");function bR(e){return bM(function e(){var t,r=yz();return r.copy=function(){return yU(r,e())},yH.apply(r,arguments),t=r.domain,r.ticks=function(e){var r=t();return function(e,t,r){var n,i,o,a,s=-1;if(r=+r,(e=+e)==(t=+t)&&r>0)return[e];if((n=t0){let r=Math.round(e/a),n=Math.round(t/a);for(r*at&&--n,o=Array(i=n-r+1);++st&&--n,o=Array(i=n-r+1);++s=bg?a*=10:s>=by?a*=5:s>=bb&&(a*=2),t0;){if((i=bx(l,u,e))===n)return o[a]=l,o[s]=u,t(o);if(i>0)l=Math.floor(l/i)*i,u=Math.ceil(u/i)*i;else if(i<0)l=Math.ceil(l*i)/i,u=Math.floor(u*i)/i;else break;n=i}return r},r}(),e)}function bN(e){var t=e.id,r=e.width,n=e.height,i=e.children;return w.createElement("defs",null,w.createElement("pattern",{id:t,width:r,height:n,patternUnits:"userSpaceOnUse"},i))}bN.propTypes={id:mY().string.isRequired,width:mY().number.isRequired,height:mY().number.isRequired,children:mY().node.isRequired};var bP={horizontal:"horizontal",vertical:"vertical",diagonal:"diagonal",diagonalRightToLeft:"diagonalRightToLeft"};function bL(e){var t=e.id,r=e.width,n=e.height,i=e.stroke,o=e.strokeWidth,a=e.strokeDasharray,s=e.strokeLinecap,l=void 0===s?"square":s,u=e.shapeRendering,c=void 0===u?"auto":u,d=e.orientation,f=void 0===d?["vertical"]:d,h=e.background,p=e.className,m=Array.isArray(f)?f:[f];return w.createElement(bN,{id:t,width:r,height:n},!!h&&w.createElement("rect",{className:mU()("visx-pattern-line-background"),width:r,height:n,fill:h}),m.map(function(e,r){return w.createElement("path",{key:"visx-"+t+"-line-"+e+"-"+r,className:mU()("visx-pattern-line",p),d:function(e){var t=e.height;switch(e.orientation){case bP.horizontal:return"M 0,"+t/2+" l "+t+",0";case bP.diagonal:return"M 0,"+t+" l "+t+","+-t+" M "+-t/4+","+t/4+" l "+t/2+","+-t/2+"\n M "+3/4*t+","+5/4*t+" l "+t/2+","+-t/2;case bP.diagonalRightToLeft:return"M 0,0 l "+t+","+t+"\n M "+-t/4+","+3/4*t+" l "+t/2+","+t/2+"\n M "+3/4*t+","+-t/4+" l "+t/2+","+t/2;case bP.vertical:default:return"M "+t/2+", 0 l 0, "+t}}({orientation:e,height:n}),stroke:i,strokeWidth:o,strokeDasharray:a,strokeLinecap:l,shapeRendering:c})}))}bL.propTypes={id:mY().string.isRequired,width:mY().number.isRequired,height:mY().number.isRequired,className:mY().string,background:mY().string,stroke:mY().string,strokeWidth:mY().oneOfType([mY().number,mY().string]),strokeDasharray:mY().oneOfType([mY().string,mY().number]),strokeLinecap:mY().oneOf(["square","butt","round","inherit"]),shapeRendering:mY().oneOfType([mY().string,mY().number]),orientation:mY().array};var bD=["className","top","left","offsetLeft","offsetTop","style","children","unstyled","applyPositionStyle"];function bI(){return(bI=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,bD);return w.createElement("div",bI({ref:t,className:mU()("visx-tooltip",r),style:bI({top:null==n||null==l?n:n+l,left:null==i||null==a?i:i+a},m&&{position:"absolute"},!h&&c)},v),d)});function bB(){return(bB=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,bW),g=!1,y=!1;if(u&&l){var b=void 0===n?0:n,x=void 0===f?0:f;if(l.width){var E=b+o+u.width-l.width,j=u.width-b-o;g=E>0&&E>j}else{var S=b+o+u.width-window.innerWidth,C=u.width-b-o;g=S>0&&S>C}if(l.height){var k=x+s+u.height-l.height,A=u.height-x-s;y=k>0&&k>A}else y=x+s+u.height>window.innerHeight;b=g?b-u.width-o:b+o,x=y?x-u.height-s:x+s,t="translate("+(b=Math.round(b))+"px, "+(x=Math.round(x))+"px)"}return w.createElement(bV,bq({ref:m,style:bq({left:0,top:0,transform:t},!p&&d)},v),w.createElement(b$,{value:{isFlippedVertically:!y,isFlippedHorizontally:!g}},r))}bG.propTypes={nodeRef:mY().oneOfType([mY().string,mY().func,mY().object])};var bZ=((wW=function(e){function t(t){var r;return(r=e.call(this,t)||this).state={rect:void 0,parentRect:void 0},r.nodeRef=w.createRef(),r.getRects=r.getRects.bind(function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r)),r}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,bU(t,e);var r=t.prototype;return r.componentDidMount=function(){var e,t=this;this.node=null!=(e=this.nodeRef)&&e.current?this.nodeRef.current:D.findDOMNode(this),this.setState(function(){return t.getRects()})},r.getRects=function(){if(!this.node)return this.state;var e=this.node,t=e.parentNode;return{rect:e.getBoundingClientRect?e.getBoundingClientRect():bz,parentRect:null!=t&&t.getBoundingClientRect?t.getBoundingClientRect():bz}},r.render=function(){return w.createElement(bG,bB({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},t}(w.PureComponent)).displayName="withBoundingRects("+(bG.displayName||"")+")",wW),bY=r(99985);function bX(e,t){if("invert"in e&&void 0!==e.invert)return e.invert(t).valueOf();var r=e.range(),n=r[0],i=r[1],o=0,a=("step"in e&&void 0!==e.step?e.step():1)*(i-n)/Math.abs(i-n);if(a>0)for(;t>n+a*(o+1);)o+=1;else for(;t0?Math.min(e.dx,t.bounds.x1-a):Math.max(e.dx,t.bounds.x0-n),u=e.dy>0?Math.min(e.dy,t.bounds.y1-s):Math.max(e.dy,t.bounds.y0-i);return b5({},t,{isBrushing:!0,extent:b5({},t.extent,{x0:n+l,x1:a+l,y0:i+u,y1:s+u})})})},t.selectionDragEnd=function(){var e=t.props,r=e.updateBrush,n=e.onBrushEnd,i=e.onMoveSelectionChange;e.isControlled||r(function(e){var t=b5({},e,{isBrushing:!1,start:b5({},e.start,{x:Math.min(e.extent.x0,e.extent.x1),y:Math.min(e.extent.y0,e.extent.y1)}),end:b5({},e.end,{x:Math.max(e.extent.x0,e.extent.x1),y:Math.max(e.extent.y0,e.extent.y1)})});return n&&n(t),t}),i&&i()},t}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,b6(t,e),t.prototype.render=function(){var e=this.props,t=e.width,r=e.height,n=e.stageWidth,i=e.stageHeight,o=e.brush,a=e.disableDraggingSelection,s=e.onMouseLeave,l=e.onMouseMove,u=e.onMouseUp,c=e.onClick,d=e.selectedBoxStyle,f=e.isControlled,h=e.isDragInProgress;return w.createElement(bY.Z,{width:t,height:r,resetOnStart:!0,onDragStart:this.selectionDragStart,onDragMove:this.selectionDragMove,onDragEnd:this.selectionDragEnd,isDragging:f?h:void 0},function(e){var h=e.isDragging,p=e.dragStart,m=e.dragEnd,v=e.dragMove;return w.createElement("g",null,h&&w.createElement("rect",{width:n,height:i,fill:"transparent",onPointerUp:f?void 0:m,onPointerMove:v,onPointerLeave:f?void 0:m,style:b8}),w.createElement("rect",b5({x:Math.min(o.extent.x0,o.extent.x1),y:Math.min(o.extent.y0,o.extent.y1),width:t,height:r,className:"visx-brush-selection",onPointerDown:a?void 0:p,onPointerLeave:function(e){s&&s(e)},onPointerMove:function(e){v(e),l&&l(e)},onPointerUp:function(e){f||m(e),u&&u(e)},onClick:function(e){c&&c(e)},style:{pointerEvents:o.isBrushing||o.activeHandle?"none":"all",cursor:a?void 0:"move"}},d)))})},t}(w.Component);function b9(){return(b9=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Math.min(l,e.bounds.x1-o):Math.max(l,e.bounds.x0-r),c=u>0?Math.min(u,e.bounds.y1-a):Math.max(u,e.bounds.y0-n);return b9({},e,{isBrushing:!0,extent:b9({},e.extent,{x0:r+s,y0:n+c,x1:o+s,y1:a+c})})}),"select"===i&&r.updateBrush(function(e){var t=e.start,n=t.x,i=t.y,o={x:Math.min(Math.max(n+l,e.bounds.x0),e.bounds.x1),y:Math.min(Math.max(i+u,e.bounds.y0),e.bounds.y1)},a=r.getExtent(s,o);return b9({},e,{end:o,extent:a})})}},r.getExtent=function(e,t){var n=r.props,i=n.brushDirection,o=n.width,a=n.height;return{x0:"vertical"===i?0:Math.min(e.x||0,t.x||0),x1:"vertical"===i?o:Math.max(e.x||0,t.x||0),y0:"horizontal"===i?0:Math.min(e.y||0,t.y||0),y1:"horizontal"===i?a:Math.max(e.y||0,t.y||0)}},r.handleDragStart=function(e){var t=r.props,n=t.onBrushStart,i=t.left,o=t.top,a=t.inheritedMargin,s=t.useWindowMoveEvents,l=null!=a&&a.left?a.left:0,u=null!=a&&a.top?a.top:0,c={x:(e.x||0)+e.dx-i-l,y:(e.y||0)+e.dy-o-u},d=b9({},c);n&&n(c),r.updateBrush(function(t){return b9({},t,{start:c,end:d,extent:{x0:-1,x1:-1,y0:-1,y1:-1},isBrushing:!0,brushingType:"select",brushPageOffset:s?bJ(e.event):void 0})})},r.handleBrushStart=function(e){var t=r.props,n=t.onBrushStart,i=t.left,o=t.top,a=t.inheritedMargin;if(n){var s=null!=a&&a.left?a.left:0,l=null!=a&&a.top?a.top:0;n({x:(e.x||0)+e.dx-i-s,y:(e.y||0)+e.dy-o-l})}},r.handleDragMove=function(e){var t=r.props,n=t.left,i=t.top,o=t.inheritedMargin,a=t.useWindowMoveEvents;if(e.isDragging&&!a){var s=(null==o?void 0:o.left)||0,l=(null==o?void 0:o.top)||0,u={x:(e.x||0)+e.dx-n-s,y:(e.y||0)+e.dy-i-l};r.updateBrush(function(e){var t=e.start,n=r.getExtent(t,u);return b9({},e,{end:u,extent:n})})}},r.handleDragEnd=function(){var e=r.props,t=e.onBrushEnd,n=e.resetOnEnd;e.useWindowMoveEvents||r.updateBrush(function(e){var i=e.extent,o=b9({},e,{start:{x:i.x0,y:i.y0},end:{x:i.x1,y:i.y1},isBrushing:!1,brushingType:void 0,activeHandle:null});return t&&t(o),n&&r.reset(),o})},r.getBrushWidth=function(){var e=r.state.extent,t=e.x0,n=e.x1;return Math.max(Math.max(t,n)-Math.min(t,n),0)},r.getBrushHeight=function(){var e=r.state.extent,t=e.y1,n=e.y0;return Math.max(Math.max(n,t)-Math.min(n,t),0)},r.handles=function(){var e=r.props.handleSize,t=r.state.extent,n=t.x0,i=t.x1,o=t.y0,a=t.y1,s=e/2,l=r.getBrushWidth(),u=r.getBrushHeight();return{top:{x:n-s,y:o-s,height:e,width:l+e},bottom:{x:n-s,y:a-s,height:e,width:l+e},right:{x:i-s,y:o-s,height:u+e,width:e},left:{x:n-s,y:o-s,height:u+e,width:e}}},r.corners=function(){var e=r.props.handleSize,t=r.state.extent,n=t.x0,i=t.x1,o=t.y0,a=t.y1,s=e/2;return{topLeft:{x:Math.min(n,i)-s,y:Math.min(o,a)-s,width:e,height:e},topRight:{x:Math.max(n,i)-s,y:Math.min(o,a)-s,width:e,height:e},bottomLeft:{x:Math.min(n,i)-s,y:Math.max(o,a)-s,width:e,height:e},bottomRight:{x:Math.max(n,i)-s,y:Math.max(o,a)-s,width:e,height:e}}},r.updateBrush=function(e){var t=r.props.onChange;r.setState(e,function(){t&&t(r.state)})},r.reset=function(){var e=r.props,t=e.width,n=e.height;r.updateBrush(function(){return{start:{x:0,y:0},end:{x:0,y:0},extent:{x0:-1,x1:-1,y0:-1,y1:-1},bounds:{x0:0,x1:t,y0:0,y1:n},isBrushing:!1,brushPageOffset:void 0,activeHandle:null,brushingType:void 0}})},r.handleBrushingTypeChange=function(e,t){r.updateBrush(function(r){var n=b9({},r,{brushingType:e,isBrushing:void 0!==e});return(t||void 0===e)&&(n.brushPageOffset=t),n})};var r,n=t.initialBrushPosition,i=n?r.getExtent(n.start,n.end):{x0:-1,x1:-1,y0:-1,y1:-1};return r.state={start:{x:Math.max(0,i.x0),y:Math.max(0,i.y0)},end:{x:Math.max(0,i.x1),y:Math.max(0,i.y1)},extent:i,bounds:{x0:0,x1:r.props.width,y0:0,y1:r.props.height},isBrushing:!1,brushingType:void 0,activeHandle:null},r}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,xe(t,e);var r=t.prototype;return r.componentDidUpdate=function(e){var t=this;(this.props.width!==e.width||this.props.height!==e.height)&&this.setState(function(r){var n=r.start,i=r.end,o=r.extent;if(!(-1===o.x0&&-1===o.x1&&-1===o.y0&&-1===o.y1)){var a=t.props.width/e.width,s=t.props.height/e.height;n={x:a*o.x0,y:s*o.y0},i={x:a*o.x1,y:s*o.y1},o=t.getExtent(n,i)}return{start:n,end:i,extent:o,bounds:{x0:0,x1:t.props.width,y0:0,y1:t.props.height}}})},r.componentDidMount=function(){this.props.useWindowMoveEvents&&(window.addEventListener("mouseup",this.handleWindowPointerUp),window.addEventListener("mousemove",this.handleWindowPointerMove))},r.componentWillUnmount=function(){this.props.useWindowMoveEvents&&(window.removeEventListener("mouseup",this.handleWindowPointerUp),window.removeEventListener("mousemove",this.handleWindowPointerMove))},r.render=function(){var e=this,t=this.state,r=t.start,n=t.end,i=this.props,o=i.top,a=i.left,s=i.width,l=i.height,u=i.onMouseLeave,c=i.onMouseUp,d=i.onMouseMove,f=i.onBrushEnd,h=i.onClick,p=i.resizeTriggerAreas,m=i.selectedBoxStyle,v=i.disableDraggingSelection,g=i.clickSensitivity,y=i.useWindowMoveEvents,b=i.renderBrushHandle,x=this.state.brushingType,E=this.handles(),j=this.corners(),S=this.getBrushWidth(),C=this.getBrushHeight(),k=new Set(p);return w.createElement(mQ,{className:"visx-brush",top:o,left:a},w.createElement(bY.Z,{width:s,height:l,resetOnStart:!0,onDragStart:this.handleDragStart,onDragMove:this.handleDragMove,onDragEnd:this.handleDragEnd,isDragging:y?"select"===x:void 0},function(t){var r=t.dragStart,n=t.isDragging,i=t.dragMove,o=t.dragEnd;return w.createElement(m$,{className:"visx-brush-overlay",fill:"transparent",x:0,y:0,width:s,height:l,onDoubleClick:function(){return e.reset()},onClick:function(t){var r=e.mouseUpTime-e.mouseDownTime;h&&r=0||(i[r]=e[r]);return i}(e,xs),g=o,y=s,b=a,x=l;return void 0!==m&&!m||g||y||b||x||(g="0",y="0",b="0",x="1"),w.createElement("defs",null,w.createElement("linearGradient",xl({id:r,x1:g,y1:b,x2:y,y2:x,gradientTransform:h?"rotate("+h+")":p},v),!!t&&t,!t&&w.createElement("stop",{offset:void 0===u?"0%":u,stopColor:n,stopOpacity:void 0===c?1:c}),!t&&w.createElement("stop",{offset:void 0===d?"100%":d,stopColor:i,stopOpacity:void 0===f?1:f})))}function xc(e,t){return null==e||null==t?NaN:et?1:e>=t?0:NaN}function xd(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function xf(){return 0}function xh(e,t){let r,n;if(void 0===t)for(let t of e)null!=t&&(void 0===r?t>=t&&(r=n=t):(r>t&&(r=t),n=o&&(r=n=o):(r>o&&(r=o),n=t)&&(r=t);else{let n=-1;for(let i of e)null!=(i=t(i,++n,e))&&(r=i)&&(r=i)}return r}xu.propTypes={id:mY().string.isRequired,from:mY().string,to:mY().string,x1:mY().oneOfType([mY().string,mY().number]),x2:mY().oneOfType([mY().string,mY().number]),y1:mY().oneOfType([mY().string,mY().number]),y2:mY().oneOfType([mY().string,mY().number]),fromOffset:mY().oneOfType([mY().string,mY().number]),fromOpacity:mY().oneOfType([mY().string,mY().number]),toOffset:mY().oneOfType([mY().string,mY().number]),toOpacity:mY().oneOfType([mY().string,mY().number]),rotate:mY().oneOfType([mY().string,mY().number]),transform:mY().string,children:mY().node,vertical:mY().bool};var xm=r(12436),xv=r.n(xm),xg=Math.PI,xy=2*xg,xb=xy-1e-6;function xx(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function xw(){return new xx}function xE(e){return function(){return e}}function xj(e){this._context=e}function xS(e){return new xj(e)}function xC(e){return e[0]}function xk(e){return e[1]}xx.prototype=xw.prototype={constructor:xx,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,r,n){this._+="Q"+ +e+","+ +t+","+(this._x1=+r)+","+(this._y1=+n)},bezierCurveTo:function(e,t,r,n,i,o){this._+="C"+ +e+","+ +t+","+ +r+","+ +n+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,r,n,i){e=+e,t=+t,r=+r,n=+n,i=+i;var o=this._x1,a=this._y1,s=r-e,l=n-t,u=o-e,c=a-t,d=u*u+c*c;if(i<0)throw Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>1e-6){if(Math.abs(c*s-l*u)>1e-6&&i){var f=r-o,h=n-a,p=s*s+l*l,m=Math.sqrt(p),v=Math.sqrt(d),g=i*Math.tan((xg-Math.acos((p+d-(f*f+h*h))/(2*m*v)))/2),y=g/v,b=g/m;Math.abs(y-1)>1e-6&&(this._+="L"+(e+y*u)+","+(t+y*c)),this._+="A"+i+","+i+",0,0,"+ +(c*f>u*h)+","+(this._x1=e+b*s)+","+(this._y1=t+b*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t)}},arc:function(e,t,r,n,i,o){e=+e,t=+t,r=+r,o=!!o;var a=r*Math.cos(n),s=r*Math.sin(n),l=e+a,u=t+s,c=1^o,d=o?n-i:i-n;if(r<0)throw Error("negative radius: "+r);null===this._x1?this._+="M"+l+","+u:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-u)>1e-6)&&(this._+="L"+l+","+u),r&&(d<0&&(d=d%xy+xy),d>xb?this._+="A"+r+","+r+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+r+","+r+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):d>1e-6&&(this._+="A"+r+","+r+",0,"+ +(d>=xg)+","+c+","+(this._x1=e+r*Math.cos(i))+","+(this._y1=t+r*Math.sin(i))))},rect:function(e,t,r,n){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +r+"v"+ +n+"h"+-r+"Z"},toString:function(){return this._}},xj.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var xA=["x","x0","x1","y","y1","y0","yScale","data","defined","className","curve","innerRef","children"];function xO(){return(xO=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,xA),A=(r=(t={x:d,x0:f,x1:h,defined:void 0===x?function(){return!0}:x,curve:j}).x,n=t.x0,i=t.x1,o=t.y,a=t.y0,s=t.y1,l=t.defined,u=t.curve,c=function(){var e=xC,t=null,r=xE(0),n=xk,i=xE(!0),o=null,a=xS,s=null;function l(l){var u,c,d,f,h,p=l.length,m=!1,v=Array(p),g=Array(p);for(null==o&&(s=a(h=xw())),u=0;u<=p;++u){if(!(u=c;--d)s.point(v[d],g[d]);s.lineEnd(),s.areaEnd()}}m&&(v[u]=+e(f,u,l),g[u]=+r(f,u,l),s.point(t?+t(f,u,l):v[u],n?+n(f,u,l):g[u]))}if(h)return s=null,h+""||null}function u(){return(function(){var e=xC,t=xk,r=xE(!0),n=null,i=xS,o=null;function a(a){var s,l,u,c=a.length,d=!1;for(null==n&&(o=i(u=xw())),s=0;s<=c;++s)!(s=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}}this._x=e,this._y=t}},xL.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:xP(this,this._t0,xN(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,xP(this,xN(this,r=xR(this,e,t)),r);break;default:xP(this,this._t0,r=xR(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}},((function(e){this._context=new xD(e)}).prototype=Object.create(xL.prototype)).point=function(e,t){xL.prototype.point.call(this,t,e)},xD.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,o){this._context.bezierCurveTo(t,e,n,r,o,i)}};var xF=["id","markerWidth","markerHeight","markerUnits","children"];function xV(){return(xV=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,xF);return w.createElement("defs",null,w.createElement("marker",xV({id:t,markerWidth:void 0===r?3:r,markerHeight:void 0===n?3:n,markerUnits:void 0===i?"userSpaceOnUse":i},a),o))}xB.propTypes={id:mY().string.isRequired,size:mY().number,markerWidth:mY().oneOfType([mY().string,mY().number]),markerHeight:mY().oneOfType([mY().string,mY().number]),markerUnits:mY().string,refX:mY().oneOfType([mY().string,mY().number]),refY:mY().oneOfType([mY().string,mY().number]),strokeWidth:mY().number,children:mY().node.isRequired};var xU=["id","size","strokeWidth"];function xz(){return(xz=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,xU),s=2*n+o,l=s/2;return w.createElement(xB,xz({id:t,markerWidth:s,markerHeight:s,refX:0,refY:l,orient:"auto-start-reverse",markerUnits:"strokeWidth",strokeWidth:o},a),w.createElement("circle",{r:n,cx:l,cy:l}))}var x$=r(32718),xW=r.n(x$),xq=r(30733),xG=r.n(xq),xZ="__react_svg_text_measurement_id",xY=xG()(function(e,t){try{var r=document.getElementById(xZ);if(!r){var n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("aria-hidden","true"),n.style.width="0",n.style.height="0",n.style.position="absolute",n.style.top="-100%",n.style.left="-100%",(r=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("id",xZ),n.appendChild(r),document.body.appendChild(n)}return Object.assign(r.style,t),r.textContent=e,r.getComputedTextLength()}catch(e){return null}},function(e,t){return e+"_"+JSON.stringify(t)}),xX=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function xK(e){return"number"==typeof e}function xJ(e){return"number"==typeof e&&Number.isFinite(e)||"string"==typeof e}var xQ=["dx","dy","textAnchor","innerRef","innerTextRef","verticalAnchor","angle","lineHeight","scaleToFit","capHeight","width"];function x0(){return(x0=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,xQ)),P=N.x,L=void 0===P?0:P,D=N.fontSize,I=(r=void 0===(t=e.verticalAnchor)?"end":t,i=void 0!==(n=e.scaleToFit)&&n,o=e.angle,a=e.width,l=void 0===(s=e.lineHeight)?"1em":s,c=void 0===(u=e.capHeight)?"0.71em":u,d=e.children,f=e.style,m=void 0===(p=(h=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,xX)).x)?0:p,g=void 0===(v=h.y)?0:v,y=!xJ(m)||!xJ(g),x=(b=(0,w.useMemo)(function(){return{wordsWithWidth:(null==d?[]:d.toString().split(/(?:(?!\u00A0+)\s+)/)).map(function(e){return{word:e,wordWidth:xY(e,f)||0}}),spaceWidth:xY("\xa0",f)||0}},[d,f])).wordsWithWidth,E=b.spaceWidth,j=(0,w.useMemo)(function(){return y?[]:a||i?x.reduce(function(e,t){var r=t.word,n=t.wordWidth,o=e[e.length-1];return o&&(null==a||i||(o.width||0)+n+E0){var t=j[0].width||1,r="shrink-only"===i?Math.min(a/t,1):a/t,n=m-r*m,s=g-r*g;e.push("matrix("+r+", 0, 0, "+r+", "+n+", "+s+")")}return o&&e.push("rotate("+o+", "+m+", "+g+")"),e.length>0?e.join(" "):""},[y,m,g,a,i,j,o]),{wordsByLines:j,startDy:S,transform:C}),F=I.wordsByLines,V=I.startDy,B=I.transform;return w.createElement("svg",{ref:T,x:void 0===k?0:k,y:void 0===A?0:A,fontSize:D,style:x1},F.length>0?w.createElement("text",x0({ref:_,transform:B},N,{textAnchor:void 0===O?"start":O}),F.map(function(e,t){return w.createElement("tspan",{key:t,x:L,dy:0===t?V:R},e.words.join(" "))})):null)}var x4={top:"top",left:"left",bottom:"bottom"};function x3(){return(x3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,wr),S=null!=g?g:"tickFormat"in v?v.tickFormat():x9,C=h===x4.left,k=h===x4.top,A=k||h===x4.bottom,O=function(e,t){if(void 0===t&&(t="center"),"start"!==t&&"bandwidth"in e){var r=e.bandwidth();return"center"===t&&(r/=2),e.round()&&(r=Math.round(r)),function(t){var n=e(t);return"number"==typeof n?n+r:n}}return e}(v),T=C||k?-1:1,_=v.range(),M=(void 0===(t=m)&&(t=0),"number"==typeof t?{start:t,end:t}:wt({start:0,end:0},t)),R=we({x:Number(_[0])+.5-M.start,y:0},A),N=we({x:Number(_[_.length-1])+.5+M.end,y:0},A),P=(null!=x?x:m1(v,d)).filter(function(e){return!l||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),L=P.map(function(e){var t=e.value,r=e.index,n=m2(O(t));return{value:t,index:r,from:we({x:n,y:0},A),to:we({x:n,y:b*T},A),formattedValue:S(t,r,P)}});return w.createElement(mQ,{className:mU()("visx-axis",i),top:void 0===E?0:E,left:void 0===u?0:u},n(wn({},j,{axisFromPoint:R,axisToPoint:N,hideAxisLine:void 0!==o&&o,hideTicks:void 0!==a&&a,hideZero:l,horizontal:A,numTicks:d,orientation:h,rangePadding:m,scale:v,tickFormat:S,tickLength:b,tickPosition:O,tickSign:T,ticks:L})))}var wo=["axisClassName","labelOffset","tickLabelProps","tickLength"];function wa(){return(wa=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,wo);return w.createElement(wi,wa({axisClassName:mU()("visx-axis-bottom",t),labelOffset:void 0===r?8:r,orientation:x4.bottom,tickLabelProps:void 0===n?ws:n,tickLength:void 0===i?8:i},o))}var wu=["axisClassName","labelOffset","tickLabelProps","tickLength"];function wc(){return(wc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,wu);return w.createElement(wi,wc({axisClassName:mU()("visx-axis-left",t),labelOffset:void 0===r?36:r,orientation:x4.left,tickLabelProps:void 0===n?wd:n,tickLength:void 0===i?8:i},o))}let wh=e=>new Date((null==e?void 0:e.timestamp)||0),wp=e=>(null==e?void 0:e.value)||0,wm="var(--colors-hiContrast)",wv={textAnchor:"middle",fontFamily:"var(--fonts-sans)",fontSize:10,fill:wm},wg={dx:"-0.25em",dy:"0.25em",fontFamily:"var(--fonts-sans)",fontSize:10,textAnchor:"end",fill:wm};function wy(e){let{data:t,gradientColor:r,width:n,yMax:i,margin:o,xScale:a,yScale:s,hideBottomAxis:l=!1,hideLeftAxis:u=!1,top:c,left:d,curve:f="step",children:h}=e;return n<10?null:(0,x.jsxs)(mQ,{left:d||o.left,top:c||o.top,children:[(0,x.jsx)(xH,{id:"marker-circle",fill:"var(--colors-accent11)",size:1.5,refX:1.5}),(0,x.jsx)(xu,{id:"gradient",from:r,fromOpacity:1,to:r,toOpacity:.2}),(0,x.jsx)(xT,{data:t,x:e=>a(wh(e))||0,y:e=>s(wp(e))||0,yScale:s,strokeWidth:1,stroke:"url(#gradient)",fill:"url(#gradient)",markerMid:"url(#marker-circle)",curve:"step"===f?xM:xI}),!l&&(0,x.jsx)(wl,{top:i,scale:a,numTicks:n>520?10:5,stroke:wm,tickStroke:wm,tickLabelProps:()=>wv}),!u&&(0,x.jsx)(wf,{scale:s,numTicks:5,stroke:wm,tickStroke:wm,tickLabelProps:()=>wg}),h]})}var wb=r(6692);let wx={inherit:wb.inherit,current:wb.current,transparent:wb.transparent,black:wb.black,white:wb.white,slate:wb.slate,zinc:wb.zinc,neutral:wb.neutral,stone:wb.stone,red:wb.red,orange:wb.orange,amber:wb.amber,yellow:wb.yellow,lime:wb.lime,green:wb.green,emerald:wb.emerald,teal:wb.teal,cyan:wb.cyan,sky:wb.sky,blue:wb.blue,indigo:wb.indigo,violet:wb.violet,purple:wb.purple,fuchsia:wb.fuchsia,pink:wb.pink,rose:wb.rose,mask:"rgba(30, 169, 76, .3)",accent:{50:"#F6FFF9",100:"#E9FBEF",200:"#D5F2DE",300:"#C9EED4",400:"#BBE8C9",500:"#9BDAAE",600:"#71C48A",700:"#3EAA5F",800:"#05872D",900:"#056B24",1e3:"#04511B",1100:"#011F0A"},accentdark:{50:"#05150A",100:"#051C0C",200:"#062811",300:"#073515",400:"#064018",500:"#075820",600:"#056824",700:"#077A2A",800:"#05872D",900:"#069F35",1e3:"#2FA052",1100:"#D9F4E1"},gray:{50:"hsl(206, 30.0%, 98.8%)",100:"hsl(210, 16.7%, 97.6%)",200:"hsl(209, 13.3%, 95.3%)",300:"hsl(209, 12.2%, 93.2%)",400:"hsl(208, 11.7%, 91.1%)",500:"hsl(208, 11.3%, 88.9%)",600:"hsl(207, 11.1%, 85.9%)",700:"hsl(205, 10.7%, 78.0%)",800:"hsl(206, 6.0%, 56.1%)",900:"hsl(206, 5.8%, 52.3%)",1e3:"hsl(206, 6.0%, 43.5%)",1100:"hsl(206, 24.0%, 9.0%)"},graydark:{50:"hsl(200, 7.0%, 8.8%)",100:"hsl(195, 7.1%, 11.0%)",200:"hsl(197, 6.8%, 13.6%)",300:"hsl(198, 6.6%, 15.8%)",400:"hsl(199, 6.4%, 17.9%)",500:"hsl(201, 6.2%, 20.5%)",600:"hsl(203, 6.0%, 24.3%)",700:"hsl(207, 5.6%, 31.6%)",800:"hsl(206, 6.0%, 43.9%)",900:"hsl(206, 5.2%, 49.5%)",1e3:"hsl(206, 6.0%, 63.0%)",1100:"hsl(210, 6.0%, 93.0%)"}};var ww=r(21551);let wE={top:10,bottom:15,left:10,right:10},wj="brush_pattern",wS="brush_gradient",wC=xv()(e=>e(),15),wk=function(e){let t,r,n;function i(e,n,i=0,o=e.length){if(i>>1;0>r(e[t],n)?i=t+1:o=t}while(ixc(e(t),r),n=(t,r)=>e(t)-r):(t=e===xc||e===xd?e:xf,r=e,n=e),{left:i,center:function(e,t,r=0,o=e.length){let a=i(e,t,r,o-1);return a>r&&n(e[a-1],t)>-n(e[a],t)?a-1:a},right:function(e,n,i=0,o=e.length){if(i>>1;0>=r(e[t],n)?i=t+1:o=t}while(inew Date((null==e?void 0:e.timestamp)||0)).left;void 0===wq&&(wq={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===wG&&(wG=function(e,t){return w.createElement("div",t,e)}),r(3440);var wA={red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"]},wO=wA.gray[7];function wT(){return(wT=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{className:r}=e;return(0,x.jsxs)("div",{ref:t,className:(0,ey.cx)("flex gap-1 items-center",r),children:[(0,x.jsx)(wN,{}),(0,x.jsx)(wN,{}),(0,x.jsx)(wN,{})]})});function wN(){return(0,x.jsx)("div",{className:"w-1 h-1 bg-slate-400 dark:bg-slate-200 rounded-full animate-pulselight [&:nth-child(2)]:animation-delay-500 [&:nth-child(3)]:animation-delay-1000"})}/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */function wP(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}function wL(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||El,Ec=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Ed=/\/\*[^]*?\*\/|\s\s+|\n/g,Ef=(e,t)=>{let r="",n="",i="";for(let o in e){let a=e[o];"@"==o[0]?"i"==o[1]?r=o+" "+a+";":n+="f"==o[1]?Ef(a,o):o+"{"+Ef(a,"k"==o[1]?"":t)+"}":"object"==typeof a?n+=Ef(a,t?t.replace(/([^,])+/g,e=>o.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):o):null!=a&&(o=o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Ef.p?Ef.p(o,a):o+":"+a+";")}return r+(t&&i?t+"{"+i+"}":i)+n},Eh={},Ep=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+Ep(e[r]);return t}return e},Em=(e,t,r,n,i)=>{var o;let a=Ep(e),s=Eh[a]||(Eh[a]=(e=>{let t=0,r=11;for(;t>>0;return"go"+r})(a));if(!Eh[s]){let t=a!==e?e:(e=>{let t,r=[{}];for(;t=Ec.exec(e.replace(Ed,""));)t[4]?r.shift():t[3]?r.unshift(r[0][t[3]]=r[0][t[3]]||{}):r[0][t[1]]=t[2];return r[0]})(e);Eh[s]=Ef(i?{["@keyframes "+s]:t}:t,r?"":"."+s)}return o=Eh[s],-1==t.data.indexOf(o)&&(t.data=n?o+t.data:t.data+o),s},Ev=(e,t,r)=>e.reduce((e,n,i)=>{let o=t[i];if(o&&o.call){let e=o(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":Ef(e,""):!1===e?"":e}return e+n+(null==o?"":o)},"");function Eg(e){let t=this||{},r=e.call?e(t.p):e;return Em(r.unshift?r.raw?Ev(r,[].slice.call(arguments,1),t.p):r.reduce((e,r)=>Object.assign(e,r&&r.call?r(t.p):r),{}):r,Eu(t.target),t.g,t.o,t.k)}Eg.bind({g:1});let Ey,Eb,Ex,Ew=Eg.bind({k:1});function EE(e,t){let r=this||{};return function(){let n=arguments;function i(o,a){let s=Object.assign({},o),l=s.className||i.className;r.p=Object.assign({theme:Eb&&Eb()},s),r.o=/ *go\d+/.test(l),s.className=Eg.apply(r,n)+(l?" "+l:""),t&&(s.ref=a);let u=e;return e[0]&&(u=s.as||e,delete s.as),Ex&&u[0]&&Ex(s),Ey(u,s)}return t?t(i):i}}function Ej(){return(Ej=Object.assign||function(e){for(var t=1;t-1&&ER.splice(e,1)}},[r]);var i=r.toasts.map(function(t){var r,n,i;return Ej({},e,e[t.type],t,{duration:t.duration||(null==(r=e[t.type])?void 0:r.duration)||(null==(n=e)?void 0:n.duration)||EL[t.type],style:Ej({},e.style,null==(i=e[t.type])?void 0:i.style,t.style)})});return Ej({},r,{toasts:i})},EI=function(e){return function(t,r){var n,i=(void 0===(n=e)&&(n="blank"),Ej({createdAt:Date.now(),visible:!0,type:n,ariaProps:{role:"status","aria-live":"polite"},message:t,pauseDuration:0},r,{id:(null==r?void 0:r.id)||Ek()}));return EP({type:g.UPSERT_TOAST,toast:i}),i.id}},EF=function(e,t){return EI("blank")(e,t)};EF.error=EI("error"),EF.success=EI("success"),EF.loading=EI("loading"),EF.custom=EI("custom"),EF.dismiss=function(e){EP({type:g.DISMISS_TOAST,toastId:e})},EF.remove=function(e){return EP({type:g.REMOVE_TOAST,toastId:e})},EF.promise=function(e,t,r){var n=EF.loading(t.loading,Ej({},r,null==r?void 0:r.loading));return e.then(function(e){return EF.success(EC(t.success,e),Ej({id:n},r,null==r?void 0:r.success)),e}).catch(function(e){EF.error(EC(t.error,e),Ej({id:n},r,null==r?void 0:r.error))}),e};var EV=function(e){var t=ED(e),r=t.toasts,n=t.pausedAt;(0,w.useEffect)(function(){if(!n){var e=Date.now(),t=r.map(function(t){if(t.duration!==1/0){var r=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(r<0){t.visible&&EF.dismiss(t.id);return}return setTimeout(function(){return EF.dismiss(t.id)},r)}});return function(){t.forEach(function(e){return e&&clearTimeout(e)})}}},[r,n]);var i=(0,w.useMemo)(function(){return{startPause:function(){EP({type:g.START_PAUSE,time:Date.now()})},endPause:function(){n&&EP({type:g.END_PAUSE,time:Date.now()})},updateHeight:function(e,t){return EP({type:g.UPDATE_TOAST,toast:{id:e,height:t}})},calculateOffset:function(e,t){var n,i=t||{},o=i.reverseOrder,a=void 0!==o&&o,s=i.gutter,l=void 0===s?8:s,u=i.defaultPosition,c=r.filter(function(t){return(t.position||u)===(e.position||u)&&t.height}),d=c.findIndex(function(t){return t.id===e.id}),f=c.filter(function(e,t){return t * {\n pointer-events: auto;\n }\n"]);return ju=function(){return e},e}d=w.createElement,Ef.p=void 0,Ey=d,Eb=void 0,Ex=void 0;var jc=function(e,t){var r=e.includes("top"),n=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return Ej({left:0,right:0,display:"flex",position:"absolute",transition:EA()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY("+t*(r?1:-1)+"px)"},r?{top:0}:{bottom:0},n)},jd=Eg(ju()),jf=function(e){var t=e.reverseOrder,r=e.position,n=void 0===r?"top-center":r,i=e.toastOptions,o=e.gutter,a=e.children,s=e.containerStyle,l=e.containerClassName,u=EV(i),c=u.toasts,d=u.handlers;return(0,w.createElement)("div",{style:Ej({position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none"},s),className:l,onMouseEnter:d.startPause,onMouseLeave:d.endPause},c.map(function(e){var r,i=e.position||n,s=jc(i,d.calculateOffset(e,{reverseOrder:t,gutter:o,defaultPosition:n})),l=e.height?void 0:(r=function(t){d.updateHeight(e.id,t.height)},function(e){e&&setTimeout(function(){r(e.getBoundingClientRect())})});return(0,w.createElement)("div",{ref:l,className:e.visible?jd:"",key:e.id,style:s},"custom"===e.type?EC(e.message,e):a?a(e):(0,w.createElement)(jl,{toast:e,position:i}))}))};let jh=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};EF((0,x.jsx)(t8,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200)):e}),jv(t))},jp=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};EF.success((0,x.jsx)(t8,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200),"..."):e}),jv(t))},jm=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};EF.error((0,x.jsx)(t8,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200),"..."):e}),jv(t))};function jv(){let{className:e,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{position:"top-center",duration:6e3,className:(0,ey.cx)(t9(),"font-sans font-normal","text-gray-1100 dark:text-white","max-w-[800px] overflow-hidden text-ellipsis","[&>div]:overflow-hidden","[&>div]:flex-1",e),success:{icon:(0,x.jsx)("div",{className:"!flex-none w-5",children:(0,x.jsx)(ld.tEK,{className:"w-5 text-green-600"})})},error:{icon:(0,x.jsx)("div",{className:"!flex-none w-5",children:(0,x.jsx)(ld.Jsc,{className:"w-5 text-red-600"})})},...t}}function jg(){return(0,x.jsx)(jf,{toastOptions:jv()})}let jy=(e,t)=>{let r=t?"Copied ".concat(t," to clipboard"):"Copied to clipboard";jh(r),function(e){wP(this,void 0,void 0,function(){return wL(this,function(t){var r;if(w9)return wD("Using `navigator.clipboard.writeText()`."),[2,w9(e)];if(!function(e){return wP(this,void 0,void 0,function(){var t;return wL(this,function(r){var n,i,o,a,s,l,u,c;if(t="text/plain"in e,"undefined"==typeof ClipboardEvent&&void 0!==Et.clipboardData&&void 0!==Et.clipboardData.setData){if(!t)throw Error("No `text/plain` value was specified.");if(n=e["text/plain"],Et.clipboardData.setData("Text",n))return[2,!0];throw Error("Copying failed, possibly because the user rejected it.")}return Ei(e)?(wD("regular execCopy worked"),[2,!0]):navigator.userAgent.indexOf("Edge")>-1?(wD('UA "Edge" => assuming success'),[2,!0]):Eo(document.body,e)?(wD("copyUsingTempSelection worked"),[2,!0]):((i=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),i.textContent="temporary element",document.body.appendChild(i),o=Eo(i,e),document.body.removeChild(i),o)?(wD("copyUsingTempElem worked"),[2,!0]):(a=e["text/plain"],wD("copyTextUsingDOM"),(s=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),l=s,s.attachShadow&&(wD("Using shadow DOM."),l=s.attachShadow({mode:"open"})),(u=document.createElement("span")).innerText=a,l.appendChild(u),document.body.appendChild(s),Ea(u),c=document.execCommand("copy"),Es(),document.body.removeChild(s),c)?(wD("copyTextUsingDOM worked"),[2,!0]):[2,!1]})})}(((r={})["text/plain"]=e,r)))throw Error("writeText() failed");return[2]})})}(e)};function jb(e,t){return e?t&&e.length>t?"".concat(e.slice(0,t),"..."):"".concat(e.slice(0,t)):""}function jx(e){return(e||"").replace(/^addr:/,"").replace(/^txid:/,"").replace(/^fcid:/,"").replace(/^h:/,"").replace(/^scoid:/,"").replace(/^sfoid:/,"").replace(/^key:/,"")}let jw={transaction:"transaction",contract:"contract",block:"block",output:"output",address:"address",hostIp:"host",hostPublicKey:"host",ip:"IP"},jE={transaction:"transaction ID",contract:"contract ID",block:"block",output:"output ID",address:"address",hostIp:"host address",hostPublicKey:"host public key",ip:"IP"},jj={siacoin:"siacoin transfer",siafund:"siafund transfer",contractFormation:"contract formation",contractRenewal:"contract renewal",contractRevision:"contract revision",contractPayout:"contract payout",storageProof:"storage proof",minerPayout:"miner payout",siafundClaim:"siafund claim",foundationSubsidy:"foundation subsidy",hostAnnouncement:"host announcement"};function jS(e){return e?jw[e]:void 0}function jC(e){let{value:t,displayValue:r,type:n,label:i,href:o,maxLength:a,size:s,scaleSize:l,weight:u,color:c="contrast",className:d,siascanUrl:f}=e,h=i||(n?jE[n]:void 0),p=a||(n&&["ip","hostIp"].includes(n)?20:12),m=jx(t),v=r||m,g="".concat(null==v?void 0:v.slice(0,p)).concat(((null==v?void 0:v.length)||0)>p?"...":"");return(0,x.jsxs)("div",{className:(0,ey.cx)("flex items-center",d),children:[o?(0,x.jsx)(fc,{href:o,underline:"hover",size:s,scaleSize:l,color:c,weight:u,ellipsis:!0,children:g}):(0,x.jsx)(t8,{size:s,scaleSize:l,color:c,weight:u,ellipsis:!0,children:g}),(0,x.jsx)("div",{className:"ml-1 flex items-center",children:(0,x.jsx)(jk,{cleanValue:m,label:h,size:s,siascanUrl:f,type:n})})]})}function jk(e){var t;let{size:r,cleanValue:n,label:i,siascanUrl:o,type:a}=e;return(0,x.jsxs)(dQ,{trigger:(0,x.jsx)(lc,{size:"none",variant:"ghost",children:(0,x.jsx)(ld.EMN,{className:"10"===r?"scale-75":"scale-90"})}),contentProps:{align:"end"},children:[(0,x.jsxs)(d0,{onSelect:e=>{jy(n,i)},onClick:e=>{e.stopPropagation()},children:[(0,x.jsx)(d2,{children:(0,x.jsx)(ld.olJ,{})}),"Copy to clipboard"]}),o&&a&&(t=a)&&["hostIp","hostPublicKey","contract","address","transaction","block"].includes(t)&&(0,x.jsx)(fc,{target:"_blank",href:function(e,t,r){switch(t){case"hostIp":case"hostPublicKey":return"".concat(e,"/host/").concat(r);case"contract":return"".concat(e,"/contract/").concat(r);case"transaction":return"".concat(e,"/tx/").concat(r);case"address":return"".concat(e,"/address/").concat(r);case"block":return"".concat(e,"/block/").concat(r);default:return""}}(o,a,n),className:"block w-full",underline:"none",children:(0,x.jsxs)(d0,{onClick:e=>{e.stopPropagation()},children:[(0,x.jsx)(d2,{children:(0,x.jsx)(ld.V8Q,{})}),"View on Siascan"]})})]})}function jA(e){let{value:t,size:r,scaleSize:n,tooltip:i="",variant:o="change"}=e,a=(0,ww.yF)(String(t),{units:"SF"});return(0,x.jsx)(ll,{content:(i?"".concat(i," "):"")+a,children:(0,x.jsxs)(t8,{size:r,scaleSize:n,weight:"medium",font:"mono",color:"change"===o?t>0?"green":t<0?"red":"subtle":"contrast",children:["change"===o&&t>0?"+":"",a]})})}function jO(e){let{value:t,size:r,scaleSize:n,tooltip:i="",variant:o="change",color:a,fixed:s=3,dynamicUnits:l=!0,hastingUnits:u=!0,extendedSuffix:c,showTooltip:d=!0}=e,f=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",h=a||("change"===o?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast"),p=(0,x.jsxs)(t8,{size:r,scaleSize:n,weight:"medium",font:"mono",ellipsis:!0,color:h,children:["change"===o?"".concat(f).concat((0,ww.Vz)(t.absoluteValue(),{fixed:s,dynamicUnits:l})):(0,ww.Vz)(t,{fixed:s,dynamicUnits:l,hastingUnits:u}),(0,x.jsx)(t8,{size:"20",weight:"medium",font:"mono",ellipsis:!0,color:"subtle",children:c?"".concat(c):""})]});return d?(0,x.jsx)(ll,{content:(i?"".concat(i," "):"")+(0,ww.Vz)(t,{fixed:16,dynamicUnits:!1}),children:p}):p}function jT(e){let{sc:t,size:r,scaleSize:n,color:i,tooltip:o="",variant:a="change",fixed:s,fixedTip:l=20,showTooltip:u=!0}=e,c=hv(),{settings:{currency:d}}=(0,hm.Hv)(),f=t.isZero()?"":t.isGreaterThan(0)&&"change"===a?"+":t.isLessThan(0)?"-":"",h=i||("change"===a?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast");if(!c.data)return null;let p=new(hd())(c.data.rates.sc[d.id]||1).times(t).div(1e24),m=void 0!==s?s:d.fixed,v=(0,x.jsx)(t8,{size:r,scaleSize:n,weight:"medium",font:"mono",ellipsis:!0,color:h,children:"".concat(f).concat(d.prefix).concat(j_(p.absoluteValue(),m))});return u?(0,x.jsx)(ll,{content:(o?"".concat(o," "):"")+"".concat(f).concat(d.prefix).concat(j_(p.absoluteValue(),l)),children:v}):v}function j_(e,t){let[r,n]=e.toFixed(t).split("."),i=new Intl.NumberFormat().format(parseInt(r));return n?"".concat(i).concat(Intl.NumberFormat().format(1.1).charAt(1)).concat(n):i}function jM(e){let{value:t,size:r,scaleSize:n,tooltip:i="",variant:o="change",fixed:a=3,fixedFiat:s,fixedTipFiat:l,dynamicUnits:u=!0,hastingUnits:c=!0,extendedSuffix:d,showTooltip:f=!0,displayBoth:h=!1,displayBothDirection:p="column"}=e,{settings:{currencyDisplay:m}}=(0,hm.Hv)(),v=hv(),g=(0,w.useMemo)(()=>(0,x.jsx)(jO,{value:t,size:r,color:h&&"row"===p&&"bothPreferFiat"===m?"subtle":void 0,scaleSize:n,tooltip:i,variant:o,fixed:a,dynamicUnits:u,hastingUnits:c,extendedSuffix:d,showTooltip:f}),[t,r,n,i,o,a,u,c,d,f,m,h,p]),y=(0,w.useMemo)(()=>(0,x.jsx)(jT,{sc:t,size:r,color:h&&"row"===p&&"bothPreferSc"===m?"subtle":void 0,scaleSize:n,tooltip:i,variant:o,fixed:s,fixedTip:l,dynamicUnits:u,hastingUnits:c,extendedSuffix:d,showTooltip:f}),[t,r,n,i,o,s,l,u,c,d,f,m,h,p]);return"sc"!==m&&v.data?"fiat"===m?y:"bothPreferSc"===m?h?(0,x.jsxs)("div",{className:"column"===p?"flex flex-col items-end":"flex gap-1",children:[g,y]}):g:"bothPreferFiat"===m?h?(0,x.jsxs)("div",{className:"column"===p?"flex flex-col items-end":"flex gap-1",children:[y,g]}):y:g:g}var jR=r(61258),jN=r.n(jR);function jP(e){let{skeletonCount:t=10}=e;return(0,x.jsx)(x.Fragment,{children:jN()(t,e=>(0,x.jsxs)("div",{className:(0,ey.cx)("relative flex gap-4 p-3.5",(0,ey.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:[(0,x.jsx)(hk,{className:"w-[60px] h-[50px]"}),(0,x.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,x.jsx)(hk,{className:"w-[90%] h-[20px]"}),(0,x.jsx)(hk,{className:"w-[140px] h-[14px]"})]})]},e))})}function jL(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function jD(e){jL(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(Error().stack)),new Date(NaN))}function jI(e,t){jL(2,arguments);var r=jD(e),n=jD(t),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}var jF={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},jV={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function jB(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var jU={date:jB({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:jB({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jB({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},jz={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function jH(e){return function(t,r){var n,i=r||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=i.width?String(i.width):o;n=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=i.width?String(i.width):e.defaultWidth;n=e.values[l]||e.values[s]}return n[e.argumentCallback?e.argumentCallback(t):t]}}function j$(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var s=a[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var r=0;r0?"in "+n:n+" ago":n},formatLong:jU,formatRelative:function(e,t,r,n){return jz[e]},localize:{ordinalNumber:function(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:jH({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:jH({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:jH({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:jH({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:jH({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(f={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.match(f.matchPattern);if(!r)return null;var n=r[0],i=e.match(f.parsePattern);if(!i)return null;var o=f.valueCallback?f.valueCallback(i[0]):i[0];return{value:o=t.valueCallback?t.valueCallback(o):o,rest:e.slice(n.length)}}),era:j$({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:j$({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:j$({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:j$({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:j$({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function jq(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var jG=r(23779),jZ=r.n(jG);function jY(e){let{type:t,label:r,initials:n,href:i,src:o,shape:a}=e,s=(0,x.jsx)(lS,{interactive:!!i,fallback:n||t&&(t||r||"").split(" ").map(e=>e.charAt(0).toUpperCase).join(""),src:o,shape:a||(t&&"address"!==t&&"block"!==t?"circle":"square")}),l=i&&(0,x.jsx)(fc,{href:i,underline:"none",children:s}),u=l||s;return t?(0,x.jsx)(ll,{content:r||jS(t),children:(0,x.jsx)("div",{className:"",children:u})}):u}function jX(e){let{label:t,type:r,avatar:n,avatarShape:i,initials:o,href:a,onClick:s,children:l}=e;return(0,x.jsxs)("div",{className:(0,ey.cx)("flex gap-4 p-4",(0,ey.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),onClick:s,children:[(0,x.jsx)(jY,{label:t,type:r,shape:i,src:n,initials:o||(r||t||"").split(" ").map(e=>e.charAt(0).toUpperCase()).join(""),href:a}),l]})}function jK(e){var t;let r=e.sc,n=e.sf,i=e.hash&&(0,x.jsx)(jC,{value:e.hash,type:e.type,label:e.label,siascanUrl:e.siascanUrl,href:e.href,color:"subtle"}),o=e.label||"transaction"===e.type&&e.txType&&((t=e.txType)?jj[t]:void 0)||jS(e.type),a=!function(e){if(!e)return!1;try{return new URL(e),!0}catch(e){return!1}}(o)?jZ()(o):o;return(0,x.jsx)(jX,{...e,children:(0,x.jsxs)("div",{className:"flex flex-col items-center gap-1 w-full",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[e.height&&e.blockHref&&(0,x.jsx)(t8,{color:"subtle",weight:"semibold",children:(0,x.jsx)(fc,{href:e.blockHref,underline:"none",children:(0,ww.yF)(e.height)})}),(0,x.jsx)(t8,{weight:"medium",children:a||i})]}),(0,x.jsx)("div",{className:"flex-1"}),!!r&&(0,x.jsx)(jM,{variant:e.scVariant,value:r}),!!n&&(0,x.jsx)(jA,{variant:e.sfVariant,value:n})]}),(0,x.jsxs)("div",{className:"flex justify-between w-full",children:[(0,x.jsx)("div",{className:"flex gap-1",children:!!a&&i}),(0,x.jsxs)("div",{className:"flex gap-1 items-center",children:[e.unconfirmed?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(t8,{color:"verySubtle",children:"unconfirmed"}),e.timestamp?(0,x.jsx)(t8,{color:"verySubtle",children:(0,x.jsx)(ld.Bpb,{className:"scale-50"})}):null]}):null,e.timestamp&&(0,x.jsx)(t8,{color:"subtle",children:function(e,t){var r,n,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};jL(2,arguments);var a=o.locale||jW;if(!a.formatDistance)throw RangeError("locale must contain formatDistance property");var s=jI(e,t);if(isNaN(s))throw RangeError("Invalid time value");var l=function(e,t){if(null==e)throw TypeError("assign requires that input parameter not be null or undefined");for(var r in t=t||{})Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}({},o);l.addSuffix=!!o.addSuffix,l.comparison=s,s>0?(r=jD(t),n=jD(e)):(r=jD(e),n=jD(t));var u=function(e,t,r){jL(2,arguments);var n,i=function(e,t){return jL(2,arguments),jD(e).getTime()-jD(t).getTime()}(e,t)/1e3;return((n=null==r?void 0:r.roundingMethod)?jF[n]:jF.trunc)(i)}(n,r),c=Math.round((u-(jq(n)-jq(r))/1e3)/60);if(c<2){if(o.includeSeconds){if(u<5)return a.formatDistance("lessThanXSeconds",5,l);if(u<10)return a.formatDistance("lessThanXSeconds",10,l);if(u<20)return a.formatDistance("lessThanXSeconds",20,l);if(u<40)return a.formatDistance("halfAMinute",null,l);else if(u<60)return a.formatDistance("lessThanXMinutes",1,l);else return a.formatDistance("xMinutes",1,l)}return 0===c?a.formatDistance("lessThanXMinutes",1,l):a.formatDistance("xMinutes",c,l)}if(c<45)return a.formatDistance("xMinutes",c,l);if(c<90)return a.formatDistance("aboutXHours",1,l);if(c<1440){var d=Math.round(c/60);return a.formatDistance("aboutXHours",d,l)}if(c<2520)return a.formatDistance("xDays",1,l);if(c<43200){var f=Math.round(c/1440);return a.formatDistance("xDays",f,l)}if(c<86400)return i=Math.round(c/43200),a.formatDistance("aboutXMonths",i,l);if((i=function(e,t){jL(2,arguments);var r,n=jD(e),i=jD(t),o=jI(n,i),a=Math.abs(function(e,t){jL(2,arguments);var r=jD(e),n=jD(t);return 12*(r.getFullYear()-n.getFullYear())+(r.getMonth()-n.getMonth())}(n,i));if(a<1)r=0;else{1===n.getMonth()&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-o*a);var s=jI(n,i)===-o;(function(e){jL(1,arguments);var t=jD(e);return(function(e){jL(1,arguments);var t=jD(e);return t.setHours(23,59,59,999),t})(t).getTime()===(function(e){jL(1,arguments);var t=jD(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t})(t).getTime()})(jD(e))&&1===a&&1===jI(e,i)&&(s=!1),r=o*(a-Number(s))}return 0===r?0:r}(n,r))<12){var h=Math.round(c/43200);return a.formatDistance("xMonths",h,l)}var p=i%12,m=Math.floor(i/12);return p<3?a.formatDistance("aboutXYears",m,l):p<9?a.formatDistance("overXYears",m,l):a.formatDistance("almostXYears",m+1,l)}(new Date(e.timestamp),new Date,{addSuffix:!0})})]})]})]})})}function jJ(e){let{title:t,actions:r,dataset:n,isLoading:i,emptyState:o,emptyMessage:a,skeletonCount:s=10,children:l}=e,u="emptyState";return!i||(null==n?void 0:n.length)||l||(u="skeleton"),((null==n?void 0:n.length)||l)&&(u="currentData"),(0,x.jsx)(re,{children:(0,x.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[(t||r)&&(0,x.jsxs)("div",{className:"flex items-center p-4 border-b border-gray-200 dark:border-graydark-300",children:[t&&(0,x.jsx)(d8,{size:"20",font:"mono",ellipsis:!0,children:t}),(0,x.jsx)("div",{className:"flex-1"}),r]}),(0,x.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:["emptyState"===u&&(o||(0,x.jsx)("div",{className:(0,ey.cx)("flex items-center justify-center h-[84px]",(0,ey.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:(0,x.jsx)(t8,{size:"18",color:"subtle",children:a||"No results"})})),"currentData"===u&&(l||(null==n?void 0:n.map((e,t)=>(0,x.jsx)(jK,{...e},e.hash||e.label||t)))),"skeleton"===u&&(0,x.jsx)(jP,{skeletonCount:s})]})]})})}function jQ(e){let{label:t,entityType:r,entityValue:n,actions:i,href:o,value:a,extendedSuffix:s,hash:l,sc:u,sf:c,comment:d,commentTip:f,scaleSize:h="40",isLoading:p,onClick:m}=e,v=(0,x.jsx)(t8,{color:"subtle",size:"12",className:"h-6",children:d});return(0,x.jsx)(re,{children:(0,x.jsx)("div",{className:(0,ey.cx)("flex items-center py-2 px-4 h-full min-w-[250px]",m?"cursor-pointer":""),onClick:m,children:(0,x.jsxs)("div",{className:"flex flex-col gap-4 flex-wrap items-start w-full",children:[(0,x.jsxs)("div",{className:"flex relative top-px flex-1 w-full gap-6 items-center justify-between",children:[(0,x.jsx)(t8,{color:"subtle",ellipsis:!0,scaleSize:"14",children:"string"==typeof t?jZ()(t):t}),i]}),(0,x.jsxs)("div",{className:"flex flex-col items-end md:items-start gap-2 md:flex-2",children:[p?(0,x.jsx)(hk,{className:"h-12 w-[150px]"}):(0,x.jsxs)(x.Fragment,{children:[void 0!==u&&(0,x.jsx)(jM,{extendedSuffix:s,scaleSize:h,variant:"value",value:u,fixed:0}),void 0!==c&&(0,x.jsx)(jA,{scaleSize:h,variant:"value",value:c}),r&&(n?(0,x.jsx)(jC,{scaleSize:h,label:jS(r),href:o,value:n,displayValue:"block"===r&&n?Number(n).toLocaleString():n,className:"relative top-0.5"}):(0,x.jsx)(t8,{font:"mono",weight:"medium",scaleSize:h,children:"-"})),l&&(0,x.jsx)(jC,{scaleSize:h,label:"hash",value:l}),void 0!==a&&(0,x.jsx)(t8,{font:"mono",weight:"medium",scaleSize:h,ellipsis:!0,children:a})]}),v?(0,x.jsx)("div",{className:"mt-1",children:p?(0,x.jsx)("div",{className:"mt-1 h-6 justify-center",children:(0,x.jsx)(hk,{className:"h-4 w-[100px]"})}):f?(0,x.jsx)(ll,{content:f,children:v}):v}):null]})]})})})}function j0(e){let{title:t,actions:r,name:n}=e;return(0,x.jsxs)("div",{className:"flex gap-0.5 items-center",children:[t?(0,x.jsx)(fa,{htmlFor:n,noWrap:!0,children:t}):null,r]})}function j1(e){var t;let{form:r,name:n}=e,i=r.formState.errors[n],o=null===(t=r.formState.errors[n])||void 0===t?void 0:t.message;return i?(0,x.jsx)(t8,{size:"14",color:"red",children:o}):null}function j2(e){let{form:t,title:r,actions:n,name:i,className:o,wrap:a}=e,s=t.formState.errors[i];return r||s?(0,x.jsxs)("div",{className:(0,ey.cx)("flex justify-between items-center gap-x-4 overflow-hidden",a?"flex-wrap":"",o),children:[(0,x.jsx)(j0,{name:i,title:r,actions:n}),(0,x.jsx)(j1,{form:t,name:i})]}):null}function j4(e){let{children:t,...r}=e;return(0,x.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,x.jsx)(j2,{...r}),t]})}function j3(e){let{form:t,size:r="medium",variant:n="accent",children:i}=e;return(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(lc,{size:r,variant:n,state:t.formState.isSubmitting?"waiting":void 0,type:"submit",children:t.formState.isSubmitting?(0,x.jsx)(wR,{}):i})})}function j5(e){let{formik:t,title:r,name:n,placeholder:i,disabled:o,readOnly:a,autoComplete:s="off",spellCheck:l=!1,tabIndex:u,allowDecimals:c=!1,decimalsLimitFiat:d=3,decimalsLimitSc:f=3,decimalsLimit:h=2,disableGroupSeparators:p=!1,showFiat:m=!0,units:v,type:g,variants:y}=e;return(0,x.jsx)(Se,{formik:t,title:r,name:n,children:"number"===g?(0,x.jsx)(j8,{formik:t,name:n,units:v,disabled:o,readOnly:a,tabIndex:u,decimalsLimit:h,allowDecimals:c,disableGroupSeparators:p,placeholder:i,variants:y}):"siacoin"===g?(0,x.jsx)(j7,{formik:t,name:n,disabled:o,readOnly:a,placeholder:i,tabIndex:u,showFiat:m,decimalsLimitFiat:d,decimalsLimitSc:f,variants:y}):(0,x.jsx)(j6,{formik:t,name:n,autoComplete:s,disabled:o,readOnly:a,placeholder:i,tabIndex:u,spellCheck:l,type:g,variants:y})})}function j6(e){let{formik:t,name:r,placeholder:n,autoComplete:i="off",disabled:o,readOnly:a,tabIndex:s,spellCheck:l=!1,type:u,variants:c}=e;return(0,x.jsx)(fQ,{id:r,name:r,autoComplete:i,disabled:o,spellCheck:l,placeholder:n,tabIndex:s,readOnly:a||t.isSubmitting,type:u,onBlur:t.handleBlur,onChange:t.handleChange,value:t.values[r]||"",...c})}function j8(e){let{formik:t,name:r,units:n,disabled:i,readOnly:o,tabIndex:a,placeholder:s,decimalsLimit:l,allowDecimals:u=!1,disableGroupSeparators:c=!1,variants:d}=e;return(0,x.jsx)(hh,{id:r,units:n,name:r,placeholder:new(hd())(s),disabled:i,allowDecimals:u,decimalsLimit:l,disableGroupSeparators:c,readOnly:o||t.isSubmitting,tabIndex:a,onBlur:t.handleBlur,onChange:e=>t.setFieldValue(r,e),value:t.values[r],...d})}function j7(e){let{formik:t,name:r,disabled:n,readOnly:i,tabIndex:o,placeholder:a,showFiat:s,decimalsLimitFiat:l=3,decimalsLimitSc:u=3,variants:c}=e;return(0,x.jsx)(hy,{id:r,name:r,disabled:n,showFiat:s,decimalsLimitFiat:l,decimalsLimitSc:u,readOnly:i||t.isSubmitting,tabIndex:o,onFocus:()=>t.setFieldTouched(r),sc:new(hd())(t.values[r]),placeholder:new(hd())(a),onChange:e=>t.setFieldValue(r,null==e?void 0:e.toString()),...c})}function j9(e){var t,r;let{formik:n,title:i,name:o,withStatusError:a=!1,className:s}=e,l=n.errors[o]&&n.touched[o]||a&&(null===(t=n.status)||void 0===t?void 0:t.error),u=n.errors[o]||a&&(null===(r=n.status)||void 0===r?void 0:r.error);return(i||l)&&(0,x.jsxs)("div",{className:(0,ey.cx)("flex justify-between items-center gap-4",s),children:[i?(0,x.jsx)(fa,{htmlFor:o,children:i}):(0,x.jsx)("div",{}),l&&(0,x.jsx)(t8,{size:"14",color:"red",children:u})]})}function Se(e){let{children:t,...r}=e;return(0,x.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,x.jsx)(j9,{...r}),t]})}function St(e){var t;let{formik:r,size:n="medium",variant:i="accent",withStatusError:o=!0,children:a}=e;return(0,x.jsxs)(x.Fragment,{children:[o&&(null===(t=r.status)||void 0===t?void 0:t.error)&&(0,x.jsx)(t8,{color:"red",children:r.status.error}),(0,x.jsx)(lc,{size:n,variant:i,state:r.isSubmitting?"waiting":void 0,type:"submit",children:r.isSubmitting?(0,x.jsx)(wR,{}):a})]})}function Sr(e){let{columns:t,data:r,context:n,sortField:i,sortDirection:o,sortableColumns:a,toggleSort:s,summary:l,rowSize:u="default",pageSize:c,isLoading:d,emptyState:f,focusId:h,focusColor:p="default"}=e,m="emptyState";!d||(null==r?void 0:r.length)||(m="skeleton"),(null==r?void 0:r.length)&&(m="currentData");let v=(0,w.useCallback)((e,r,n)=>(0,ey.cx)(0===e?"pl-6":"pl-4",e===t.length-1?"pr-6":"pr-4",n?[0===e?"rounded-tl-lg":"",e===t.length-1?"rounded-tr-lg":""]:"",r),[t]),g=(0,w.useCallback)((e,t)=>(0,ey.cx)("flex items-center",t),[]);return(0,x.jsxs)(re,{children:[(0,x.jsxs)("table",{className:"relative z-10 table-auto border-collapse w-full",children:[(0,x.jsx)("thead",{className:(0,ey.cx)("sticky top-0 z-20 bg-white dark:bg-graydark-100","shadow-border-b shadow-gray-400 dark:shadow-graydark-300"),children:(0,x.jsx)("tr",{children:t.map((e,t)=>{let{id:r,icon:n,label:l,tip:u,cellClassName:c,contentClassName:d}=e,f=(null==a?void 0:a.includes(r))&&!!s,h=i===r;return(0,x.jsx)("th",{className:(0,ey.cx)(v(t,c,!1),"border-b border-gray-400 dark:border-graydark-400"),children:(0,x.jsx)("div",{className:(0,ey.cx)("overflow-hidden","py-3"),children:(0,x.jsxs)("div",{onClick:()=>{f&&s(r)},className:(0,ey.cx)(g(t,d),f?"cursor-pointer":""),children:[(0,x.jsx)(ll,{content:u,children:(0,x.jsxs)(t8,{color:"subtle",className:"relative flex gap-1",ellipsis:!0,children:[n?(0,x.jsx)("div",{children:n}):null,(0,x.jsx)(t8,{ellipsis:!0,size:"12",weight:"medium",children:l})]})}),h&&(0,x.jsx)(t8,{color:"contrast",children:"asc"===o?(0,x.jsx)(ld.kqg,{className:"scale-75"}):(0,x.jsx)(ld.EMN,{className:"scale-75"})}),f&&!h&&(0,x.jsx)(t8,{color:"verySubtle",children:(0,x.jsx)(ld.kqg,{className:"scale-75"})})]})})},r)})})}),(0,x.jsxs)("tbody",{className:"bg-gray-50 dark:bg-graydark-50",children:[l&&(0,x.jsx)("tr",{className:"bg-gray-50 dark:bg-graydark-50 border-l border-r border-b border-gray-200 dark:border-graydark-200",children:t.map((e,t)=>{let{id:r,summary:n,contentClassName:i,cellClassName:o}=e;return(0,x.jsx)("td",{className:v(t,o,!1),children:(0,x.jsx)("div",{className:g(t,i),children:n&&n()})},r)})}),"currentData"===m&&(null==r?void 0:r.map(e=>(0,x.jsx)("tr",{id:e.id,onClick:e.onClick,className:(0,ey.cx)("border-b border-gray-200/50 dark:border-graydark-100",e.onClick?"cursor-pointer":""),children:t.map((t,r)=>{let{id:i,render:o,contentClassName:a,cellClassName:s}=t;return(0,x.jsx)("td",{className:(0,ey.cx)(v(r,s,!1),h&&h===e.id?["shadow-border-y","first:shadow-border-tlb","last:shadow-border-trb"]:"","default"===p?"!shadow-blue-900 dark:!shadow-blue-200":"","blue"===p?"!shadow-blue-500 dark:!shadow-blue-400":"","red"===p?"!shadow-red-500 dark:!shadow-red-400":"","amber"===p?"!shadow-amber-500 dark:!shadow-amber-500":"","green"===p?"!shadow-green-500 dark:!shadow-green-400":""),children:(0,x.jsx)("div",{className:(0,ey.cx)(g(r,a),"dense"===u?"h-[50px]":"h-[100px]"),children:(0,x.jsx)(o,{data:e,context:n})})},"".concat(i,"/").concat(e.id))})},e.id))),"skeleton"===m&&jN()(c).map(e=>(0,x.jsx)("tr",{className:"border-b border-gray-200/50 dark:border-graydark-100",children:t.map((e,t)=>{let{id:r,contentClassName:n,cellClassName:i}=e;return(0,x.jsx)("td",{className:v(t,i,!1),children:(0,x.jsx)("div",{className:(0,ey.cx)(g(t,n),"dense"===u?"h-[50px]":"h-[100px]")})},"".concat(t,"/").concat(r))})},e))]})]}),"emptyState"===m&&f]})}var Sn=r(5632);function Si(e){let{offset:t,limit:r,pageTotal:n,isLoading:i}=e,o=(0,Sn.useRouter)(),a=Math.min(t+r,t+n);return(0,x.jsxs)(l_,{children:[(0,x.jsx)(lc,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>o.push({query:{...o.query,offset:0}}),children:(0,x.jsx)("div",{className:"flex scale-[0.65]",children:(0,x.jsx)(ld.XJM,{})})}),(0,x.jsx)(lc,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.max(t-r,0)}}),children:(0,x.jsx)(ld.bdU,{})}),i?(0,x.jsx)(lc,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:(0,x.jsx)(wR,{className:"px-2"})}):n?(0,x.jsxs)(lc,{className:"rounded-none px-3",state:"waiting",children:[t+1," - ",a]}):(0,x.jsx)(lc,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:"none"}),(0,x.jsx)(lc,{icon:"contrast",disabled:!(n>=r),size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:t+r}}),children:(0,x.jsx)(ld.VUy,{})})]})}function So(e){let{title:t,nav:r,stats:n,actions:i}=e;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)("div",{className:"flex items-center gap-2 px-6 h-14 z-10 bg-white dark:bg-graydark-50 border-b border-gray-500 dark:border-graydark-500",children:[t?"string"==typeof t?(0,x.jsx)(t8,{font:"mono",size:"18",weight:"bold",className:"hidden lg:block relative -top-px",children:t}):t:null,(0,x.jsxs)("div",{className:"flex-1 flex gap-4 items-center justify-between h-full px-1 -mx-1 overflow-x-hidden",children:[(0,x.jsx)("div",{className:"flex gap-2 items-center h-full flex-1 overflow-x-hidden",children:r}),(0,x.jsx)("div",{className:"flex gap-2 items-center h-full",children:i})]})]}),n&&(0,x.jsx)("div",{className:"flex items-center gap-2 px-6 py-2 h-14 z-10 bg-gray-50 dark:bg-graydark-50 border-b border-gray-300 dark:border-graydark-300",children:n})]})}let Sa=("string"==typeof(h={src:"/_next/static/media/background-pattern.b997b25c.jpg",height:104,width:34,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCAAIAAMDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAX/xAAZEAADAAMAAAAAAAAAAAAAAAAAAQISIpH/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8ArRbxWi6AAP/Z",blurWidth:3,blurHeight:8})?{src:h}:h).src;function Ss(e){let{children:t}=e;return(0,x.jsxs)("div",{className:"relative -z-10 opacity-100 pointer-events-none",children:[(0,x.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 z-10 bg-white dark:bg-graydark-50"}),(0,x.jsx)("div",{className:"fixed top-0 left-0 right-0 w-[200vw] h-[200vh] opacity-30 z-30 translate-x[-50vw] translate-y[-100vh]",style:{backgroundImage:"url(".concat(Sa,")"),backgroundPositionY:"bottom",backgroundSize:"auto"}}),(0,x.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 opacity-95 z-40 bg-white dark:bg-graydark-50"}),t]})}var Sl=r(97729),Su=r.n(Sl);function Sc(e){let{appName:t,title:r,children:n}=e,i=r?"".concat(t," - ").concat(r):t;return(0,x.jsxs)(Su(),{children:[(0,x.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,x.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),(0,x.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),(0,x.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"}),(0,x.jsx)("link",{rel:"manifest",href:"/site.webmanifest"}),(0,x.jsx)("link",{rel:"mask-icon",href:"/safari-pinned-tab.svg",color:"#1ed660"}),(0,x.jsx)("meta",{name:"msapplication-TileColor",content:"#2b5797"}),(0,x.jsx)("meta",{name:"theme-color",content:"#ffffff"}),n,(0,x.jsx)("title",{children:i})]})}function Sd(e){let{appName:t,title:r,children:n}=e;return(0,x.jsxs)("div",{className:"h-screen",children:[(0,x.jsx)(Sc,{appName:t,title:r}),n]})}function Sf(e){let{appName:t,title:r,children:n,filters:i,actions:o}=e;return(0,x.jsxs)(Sd,{appName:t,title:r,children:[(0,x.jsx)(Ss,{}),(0,x.jsx)("div",{className:"flex h-full",children:(0,x.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,x.jsx)(So,{nav:i,actions:o}),(0,x.jsx)("div",{className:"flex-1",children:(0,x.jsx)(lR,{className:"h-full",children:n})})]})})]})}function Sh(e){let{side:t,balanceSc:r,children:n}=e;return r?(0,x.jsx)(ll,{side:t,content:(0,x.jsxs)("div",{className:"flex flex-col justify-center gap-2",children:[(0,x.jsxs)("div",{className:"flex gap-4",children:[(0,x.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,x.jsx)(t8,{children:"spendable"}),(0,x.jsx)(t8,{color:"subtle",children:"All confirmed outputs not in-use."})]}),(0,x.jsx)("div",{className:"flex justify-end",children:(0,x.jsx)(jM,{displayBoth:!0,variant:"value",value:r.spendable})})]}),(0,x.jsx)(dz,{className:"w-full"}),(0,x.jsxs)("div",{className:"flex gap-4",children:[(0,x.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,x.jsx)(t8,{children:"confirmed"}),(0,x.jsx)(t8,{color:"subtle",children:"All confirmed outputs."})]}),(0,x.jsx)("div",{className:"flex justify-end",children:(0,x.jsx)(jM,{displayBoth:!0,variant:"value",value:r.confirmed})})]}),(0,x.jsx)(dz,{className:"w-full"}),(0,x.jsxs)("div",{className:"flex gap-4",children:[(0,x.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,x.jsx)(t8,{children:"unconfirmed"}),(0,x.jsx)(t8,{color:"subtle",children:"All unconfirmed outputs not in-use."})]}),(0,x.jsx)("div",{className:"flex justify-end",children:(0,x.jsx)(jM,{displayBoth:!0,variant:"value",value:r.unconfirmed})})]})]}),children:(0,x.jsx)("div",{children:n})}):null}function Sp(e){let{balanceSc:t,isSynced:r,syncingMessage:n}=e;if(!t)return null;let i=(0,x.jsx)(jM,{showTooltip:!1,value:t.spendable.plus(t.unconfirmed),variant:"value",size:"12",fixed:0,fixedFiat:0});return r?(0,x.jsx)(Sh,{side:"right",balanceSc:t,children:i}):(0,x.jsx)(ll,{side:"right",content:n||"Blockchain is syncing, balance may be incorrect.",children:(0,x.jsx)("div",{children:i})})}var Sm=r(82876);function Sv(e){let{title:t,children:r,route:n,onClick:i}=e,o=(0,Sm.usePathname)(),a=n&&("/"===n?o===n:null==o?void 0:o.startsWith(n));return n?(0,x.jsx)(fc,{href:n,className:"no-underline",children:(0,x.jsx)(ll,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,x.jsx)(lc,{icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:r})})}):(0,x.jsx)(ll,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,x.jsx)(lc,{icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:r})})}function Sg(e){let{walletBalanceSc:t,isSynced:r,routes:n}=e;return(0,x.jsx)(Sv,{title:"Wallet",route:n.wallet.view,children:(0,x.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,x.jsx)(ld.oaN,{}),r&&t&&(0,x.jsx)(Sp,{isSynced:r,balanceSc:t})]})})}function Sy(e){let{routes:t,profile:r,isSynced:n,showWallet:i=!0,walletBalanceSc:o,lock:a,openSettings:s,children:l}=e;return(0,x.jsx)(re,{className:"relative overflow-hidden z-10 h-full w-[75px] rounded-none border-y-0",children:(0,x.jsxs)("div",{className:"flex flex-col items-center h-full",children:[(0,x.jsx)("div",{className:"flex items-center justify-center",style:{height:"".concat(60,"px")},children:r||(0,x.jsx)(fh,{size:30})}),(0,x.jsxs)("div",{className:"flex flex-col gap-6 items-center pt-4 pb-6 h-full",children:[(0,x.jsx)("div",{className:"flex flex-col gap-6 items-center",children:l}),(0,x.jsx)("div",{className:"flex-1"}),(0,x.jsx)(dz,{className:"w-full"}),i&&(0,x.jsx)(Sg,{routes:t,isSynced:n,walletBalanceSc:o}),(0,x.jsx)(Sv,{title:"Blockchain node",route:t.node.index,children:(0,x.jsx)(ld.kBK,{})}),(0,x.jsx)(Sv,{title:"App preferences",onClick:()=>s(),children:(0,x.jsx)(ld.UG6,{})}),(0,x.jsx)(Sv,{title:"Lock app",onClick:a,children:(0,x.jsx)(ld.mBM,{})})]})]})})}var Sb=r(27429);function Sx(e){let{appName:t,title:r,navTitle:n,profile:i,size:o="4",banner:a,nav:s,actions:l,stats:u,children:c,sidenav:d,connectivityRoute:f,isSynced:h,showWallet:p,walletBalanceSc:m,routes:v,scroll:g=!0,openSettings:y}=e,{lock:b,settings:E}=(0,hm.Hv)();return!function(e){let{lock:t,route:r,routes:n}=e,{isConnected:i,isValidating:o}=function(e){let{route:t}=e,r=(0,hm.Nf)({route:t,config:{swr:{refreshInterval:3e4}}});return{isConnected:!r.error,isValidating:r.isValidating}}({route:r}),{settings:a}=(0,hm.Hv)(),s=(0,Sn.useRouter)();(0,w.useEffect)(()=>{if(o)return;let e=!s.asPath.startsWith(n.login),r=!a.password||!i;if(e&&r){t();return}},[s,a.password,i,o])}({lock:b,route:f,routes:v}),!function(e){let{enabled:t,lock:r,lockTimeout:n}=e,i=(0,w.useCallback)(()=>{r()},[r]);(0,Sb.Yp)({disabled:!t,onIdle:i,timeout:n,throttle:5e3,eventsThrottle:5e3})}({enabled:!!E.autoLock,lockTimeout:E.autoLockTimeout,lock:b}),(0,x.jsxs)(Sd,{appName:t,title:r,children:[(0,x.jsx)(Ss,{}),(0,x.jsxs)("div",{className:"flex flex-col h-full w-full",children:[a,(0,x.jsxs)("div",{className:"flex flex-1 w-full overflow-hidden",children:[(0,x.jsx)(Sy,{routes:v,profile:i,openSettings:y,lock:b,showWallet:p,walletBalanceSc:m,isSynced:h,children:d}),(0,x.jsxs)("div",{className:"flex flex-col flex-1 overflow-hidden",children:[(0,x.jsx)(So,{title:void 0===n?r:n,nav:s,actions:l,stats:u}),g?(0,x.jsx)(cv,{className:"z-0",children:(0,x.jsx)(lR,{size:o,pad:!1,children:(0,x.jsx)("div",{className:"flex flex-col gap-5",children:c})})}):(0,x.jsx)(lR,{size:o,pad:!1,className:"flex-1 flex flex-col gap-5 overflow-hidden",children:c})]})]})]})]})}function Sw(e,t,r,n){let[i,o]=(0,w.useState)();return(0,w.useEffect)(()=>{!t&&e&&o(e.length)},[t,e,o]),(0,w.useMemo)(()=>r?"error":void 0===i||i>0&&!e?"loading":0===i?0===n.length?"noneYet":"noneMatchingFilters":void 0,[e,i,r,n])}var SE=r(89644),Sj=r.n(SE),SS=r(63955),SC=r(45861),Sk=r.n(SC);function SA(e){let{form:t,field:r,name:n}=e,i=t.watch(n),o=t.formState.touchedFields[n]&&!!t.formState.errors[n],{ref:a,onChange:s,onBlur:l}=t.register(n,r.validation),u=(0,w.useCallback)(e=>{var n;s(e),null===(n=r.trigger)||void 0===n||n.forEach(e=>t.trigger(e))},[s,t,r]),c=(0,w.useCallback)((e,i)=>{var o;t.setValue(n,e,"boolean"==typeof i?i?{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0}:void 0:i),null===(o=r.trigger)||void 0===o||o.forEach(e=>t.trigger(e))},[n,t,r]);return{ref:a,name:n,value:i,error:o,onBlur:l,onChange:u,setValue:c}}function SO(e){return(0,w.useCallback)(t=>{jm(Sk()(t).map(t=>{let[r,n]=t;return"".concat(e[r].title||r,": ").concat(null==n?void 0:n.message)}).join(", "))},[e])}function ST(e){let{name:t,form:r,fields:n,size:i="small",autoComplete:o,spellCheck:a,state:s=!0,group:l=!0}=e,u=n[t],{ref:c,onChange:d,onBlur:f,error:h}=SA({name:t,form:r,field:u}),p=(0,x.jsx)(fQ,{ref:c,name:t,placeholder:u.placeholder,size:i,autoComplete:o,type:u.type,readOnly:u.readOnly,spellCheck:a,onClick:u.onClick,state:s?h?"invalid":r.formState.dirtyFields[t]?"valid":"default":"default",onChange:d,onBlur:f});return l?(0,x.jsx)(j4,{title:u.title,actions:u.actions,name:t,form:r,children:p}):p}var S_=r(829),SM=r.n(S_);async function SR(e){let{api:t,route:r,password:n}=e;try{return await Sj().get("".concat(t,"/api").concat(r),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(":".concat(n))},timeout:1e4}),{}}catch(r){let e=r.code,t=r.response;if((null==t?void 0:t.status)===504)return{error:"Error, check that daemon is running"};if((null==t?void 0:t.status)===401)return{error:"Error, wrong password"};if("ECONNABORTED"===e)return{error:"Error, daemon did not respond"};return{error:"Error, something went wrong"}}}function SN(e){let{appName:t,route:r,routes:n}=e,i=(0,Sn.useRouter)(),{settings:o,setSettings:a}=(0,hm.Hv)(),{allowCustomApi:s}=o,l=(0,w.useMemo)(()=>({api:o.api,password:""}),[o.api]),u=(0,SS.cI)({mode:"onBlur",defaultValues:l});(0,w.useEffect)(()=>{u.clearErrors()},[s]);let c=(0,w.useCallback)(async e=>{let t="";if(s){let r=new URL(e.api);t="".concat(r.protocol,"//").concat(r.host)}let{error:c}=await SR({api:t,route:r,password:e.password});c?u.setError("password",{message:c}):(a({api:t,password:e.password,recentApis:{...o.recentApis,[t]:{lastUsed:new Date().getTime()}}}),i.push(i.query.prev?decodeURIComponent(i.query.prev):n.home),u.reset(l))},[s,u,i,n,o,a,l,r]),d=function(e){let{allowCustomApi:t}=e;return{api:{type:"text",title:"API",placeholder:"http://127.0.0.1:9980",validation:{validate:{required:e=>!t||!!e||"API is required",url:e=>{try{let t=new URL(e);return!!t.protocol&&!!t.host||"invalid API URL"}catch(e){return"invalid API URL"}},https:e=>{let t="https:"===window.location.protocol;return!t||t&&e.startsWith("https")||"API must use HTTPS"}}}},password:{type:"password",title:"Password",placeholder:"Enter password",validation:{required:"password is required"}}}}({allowCustomApi:s}),f=SO(d),h=u.formState.errors.api||u.formState.errors.password,p=SM()(Object.entries(o.recentApis),e=>{let[t,{lastUsed:r}]=e;return-r}).map(e=>{let[t]=e;return t});return(0,x.jsx)("div",{className:"flex flex-col items-center justify-center gap-6 h-full",children:(0,x.jsx)(re,{className:"relative top-[-50px] w-[300px] p-2.5",children:(0,x.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,x.jsxs)("div",{className:"flex justify-between items-center",children:[(0,x.jsx)(t8,{font:"mono",weight:"bold",size:"20",children:t}),(0,x.jsx)(dQ,{trigger:(0,x.jsx)(lc,{icon:"hover",variant:"ghost",children:(0,x.jsx)(ld.shL,{})}),children:(0,x.jsx)(d0,{onSelect:()=>a({allowCustomApi:!s}),children:s?"Hide custom API":"Show custom API"})})]}),(0,x.jsx)(dz,{className:"w-full mt-2 mb-3"}),(0,x.jsx)("form",{onSubmit:u.handleSubmit(c,f),children:(0,x.jsxs)("div",{className:"flex flex-col gap-1.5",children:[s?(0,x.jsxs)(l_,{children:[(0,x.jsx)(ST,{name:"api",form:u,fields:d,group:!1}),p.length>1&&(0,x.jsx)(dQ,{trigger:(0,x.jsx)(lc,{type:"button",children:(0,x.jsx)(ld.wGX,{})}),children:p.map(e=>(0,x.jsx)(d0,{onSelect:()=>u.setValue("api",e),children:e},e))})]}):null,(0,x.jsx)(ST,{name:"password",form:u,fields:d,group:!1}),h&&(0,x.jsx)(t8,{size:"14",color:"red",children:h.message}),(0,x.jsx)(j3,{size:"small",form:u,children:"Unlock"})]})})]})})})}var SP=r(78435),SL=r.n(SP),SD=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==SI},SI="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function SF(e,t){return!1!==t.clone&&t.isMergeableObject(e)?SB(Array.isArray(e)?[]:{},e,t):e}function SV(e,t,r){return e.concat(t).map(function(e){return SF(e,r)})}function SB(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||SV,r.isMergeableObject=r.isMergeableObject||SD;var n,i,o=Array.isArray(t);return o!==Array.isArray(e)?SF(t,r):o?r.arrayMerge(e,t,r):(i={},(n=r).isMergeableObject(e)&&Object.keys(e).forEach(function(t){i[t]=SF(e[t],n)}),Object.keys(t).forEach(function(r){n.isMergeableObject(t[r])&&e[r]?i[r]=SB(e[r],t[r],n):i[r]=SF(t[r],n)}),i)}SB.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return SB(e,r,t)},{})};var SU=SB,Sz="object"==typeof global&&global&&global.Object===Object&&global,SH="object"==typeof self&&self&&self.Object===Object&&self,S$=Sz||SH||Function("return this")(),SW=S$.Symbol,Sq=Object.prototype,SG=Sq.hasOwnProperty,SZ=Sq.toString,SY=SW?SW.toStringTag:void 0,SX=function(e){var t=SG.call(e,SY),r=e[SY];try{e[SY]=void 0;var n=!0}catch(e){}var i=SZ.call(e);return n&&(t?e[SY]=r:delete e[SY]),i},SK=Object.prototype.toString,SJ=SW?SW.toStringTag:void 0,SQ=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":SJ&&SJ in Object(e)?SX(e):SK.call(e)},S0=function(e,t){return function(r){return e(t(r))}},S1=S0(Object.getPrototypeOf,Object),S2=function(e){return null!=e&&"object"==typeof e},S4=Object.prototype,S3=Function.prototype.toString,S5=S4.hasOwnProperty,S6=S3.call(Object),S8=function(e){if(!S2(e)||"[object Object]"!=SQ(e))return!1;var t=S1(e);if(null===t)return!0;var r=S5.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&S3.call(r)==S6},S7=function(e,t){return e===t||e!=e&&t!=t},S9=function(e,t){for(var r=e.length;r--;)if(S7(e[r][0],t))return r;return -1},Ce=Array.prototype.splice;function Ct(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1},Ct.prototype.set=function(e,t){var r=this.__data__,n=S9(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var Cr=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Cn=function(e){if(!Cr(e))return!1;var t=SQ(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Ci=S$["__core-js_shared__"],Co=(p=/[^.]+$/.exec(Ci&&Ci.keys&&Ci.keys.IE_PROTO||""))?"Symbol(src)_1."+p:"",Ca=Function.prototype.toString,Cs=function(e){if(null!=e){try{return Ca.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Cl=/^\[object .+?Constructor\]$/,Cu=Object.prototype,Cc=Function.prototype.toString,Cd=Cu.hasOwnProperty,Cf=RegExp("^"+Cc.call(Cd).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ch=function(e,t){var r,n=null==e?void 0:e[t];return Cr(r=n)&&(!Co||!(Co in r))&&(Cn(r)?Cf:Cl).test(Cs(r))?n:void 0},Cp=Ch(S$,"Map"),Cm=Ch(Object,"create"),Cv=Object.prototype.hasOwnProperty,Cg=Object.prototype.hasOwnProperty;function Cy(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},CH={};CH["[object Float32Array]"]=CH["[object Float64Array]"]=CH["[object Int8Array]"]=CH["[object Int16Array]"]=CH["[object Int32Array]"]=CH["[object Uint8Array]"]=CH["[object Uint8ClampedArray]"]=CH["[object Uint16Array]"]=CH["[object Uint32Array]"]=!0,CH["[object Arguments]"]=CH["[object Array]"]=CH["[object ArrayBuffer]"]=CH["[object Boolean]"]=CH["[object DataView]"]=CH["[object Date]"]=CH["[object Error]"]=CH["[object Function]"]=CH["[object Map]"]=CH["[object Number]"]=CH["[object Object]"]=CH["[object RegExp]"]=CH["[object Set]"]=CH["[object String]"]=CH["[object WeakMap]"]=!1;var C$=function(e){return function(t){return e(t)}},CW="object"==typeof exports&&exports&&!exports.nodeType&&exports,Cq=CW&&"object"==typeof module&&module&&!module.nodeType&&module,CG=Cq&&Cq.exports===CW&&Sz.process,CZ=function(){try{var e=Cq&&Cq.require&&Cq.require("util").types;if(e)return e;return CG&&CG.binding&&CG.binding("util")}catch(e){}}(),CY=CZ&&CZ.isTypedArray,CX=CY?C$(CY):function(e){return S2(e)&&Cz(e.length)&&!!CH[SQ(e)]},CK=Object.prototype.hasOwnProperty,CJ=function(e,t){var r=CL(e),n=!r&&CP(e),i=!r&&!n&&CV(e),o=!r&&!n&&!i&&CX(e),a=r||n||i||o,s=a?CT(e.length,String):[],l=s.length;for(var u in e)(t||CK.call(e,u))&&!(a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||CU(u,l)))&&s.push(u);return s},CQ=Object.prototype,C0=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||CQ)},C1=S0(Object.keys,Object),C2=Object.prototype.hasOwnProperty,C4=function(e){if(!C0(e))return C1(e);var t=[];for(var r in Object(e))C2.call(e,r)&&"constructor"!=r&&t.push(r);return t},C3=function(e){return null!=e&&Cz(e.length)&&!Cn(e)},C5=function(e){return C3(e)?CJ(e):C4(e)},C6=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},C8=Object.prototype.hasOwnProperty,C7=function(e){if(!Cr(e))return C6(e);var t=C0(e),r=[];for(var n in e)"constructor"==n&&(t||!C8.call(e,n))||r.push(n);return r},C9=function(e){return C3(e)?CJ(e,!0):C7(e)},ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,kt=ke&&"object"==typeof module&&module&&!module.nodeType&&module,kr=kt&&kt.exports===ke?S$.Buffer:void 0,kn=kr?kr.allocUnsafe:void 0,ki=function(e,t){if(t)return e.slice();var r=e.length,n=kn?kn(r):new e.constructor(r);return e.copy(n),n},ko=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r=0||(i[r]=e[r]);return i}function As(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r(73463);var Al=function(e){return Array.isArray(e)&&0===e.length},Au=function(e){return"function"==typeof e},Ac=function(e){return null!==e&&"object"==typeof e},Ad=function(e){return"[object String]"===Object.prototype.toString.call(e)},Af=function(e){return Ac(e)&&Au(e.then)};function Ah(e,t,r,n){void 0===n&&(n=0);for(var i=An(t);e&&n=0?[]:{}}}return(0===o?e:i)[a[o]]===r?e:(void 0===r?delete i[a[o]]:i[a[o]]=r,0===o&&void 0===r&&delete n[a[o]],n)}var Am=(0,w.createContext)(void 0);function Av(e,t){switch(t.type){case"SET_VALUES":return Ao({},e,{values:t.payload});case"SET_TOUCHED":return Ao({},e,{touched:t.payload});case"SET_ERRORS":if(SL()(e.errors,t.payload))return e;return Ao({},e,{errors:t.payload});case"SET_STATUS":return Ao({},e,{status:t.payload});case"SET_ISSUBMITTING":return Ao({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Ao({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Ao({},e,{values:Ap(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Ao({},e,{touched:Ap(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Ao({},e,{errors:Ap(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Ao({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Ao({},e,{touched:function e(t,r,n,i){void 0===n&&(n=new WeakMap),void 0===i&&(i={});for(var o=0,a=Object.keys(t);oe?t:e},0);return Array.from(Ao({},e,{length:t+1}))};(function(e){function t(t){var r;return(r=e.call(this,t)||this).updateArrayField=function(e,t,n){var i=r.props,o=i.name;(0,i.formik.setFormikState)(function(r){var i="function"==typeof n?n:e,a="function"==typeof t?t:e,s=Ap(r.values,o,e(Ah(r.values,o))),l=n?i(Ah(r.errors,o)):void 0,u=t?a(Ah(r.touched,o)):void 0;return Al(l)&&(l=void 0),Al(u)&&(u=void 0),Ao({},r,{values:s,errors:n?Ap(r.errors,o,l):r.errors,touched:t?Ap(r.touched,o,u):r.touched})})},r.push=function(e){return r.updateArrayField(function(t){return[].concat(Ak(t),[kQ(e,5)])},!1,!1)},r.handlePush=function(e){return function(){return r.push(e)}},r.swap=function(e,t){return r.updateArrayField(function(r){return Aj(r,e,t)},!0,!0)},r.handleSwap=function(e,t){return function(){return r.swap(e,t)}},r.move=function(e,t){return r.updateArrayField(function(r){return AE(r,e,t)},!0,!0)},r.handleMove=function(e,t){return function(){return r.move(e,t)}},r.insert=function(e,t){return r.updateArrayField(function(r){return AS(r,e,t)},function(t){return AS(t,e,null)},function(t){return AS(t,e,null)})},r.handleInsert=function(e,t){return function(){return r.insert(e,t)}},r.replace=function(e,t){return r.updateArrayField(function(r){return AC(r,e,t)},!1,!1)},r.handleReplace=function(e,t){return function(){return r.replace(e,t)}},r.unshift=function(e){var t=-1;return r.updateArrayField(function(r){var n=r?[e].concat(r):[e];return t<0&&(t=n.length),n},function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r},function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r}),t},r.handleUnshift=function(e){return function(){return r.unshift(e)}},r.handleRemove=function(e){return function(){return r.remove(e)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(As(r)),r.pop=r.pop.bind(As(r)),r}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e;var r=t.prototype;return r.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!SL()(Ah(e.formik.values,e.name),Ah(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},r.remove=function(e){var t;return this.updateArrayField(function(r){var n=r?Ak(r):[];return t||(t=n[e]),Au(n.splice)&&n.splice(e,1),n},!0,!0),t},r.pop=function(){var e;return this.updateArrayField(function(t){return e||(e=t&&t.pop&&t.pop()),t},!0,!0),e},r.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,r=t.component,n=t.render,i=t.children,o=t.name,a=Aa(t.formik,["validate","validationSchema"]),s=Ao({},e,{form:a,name:o});return r?(0,w.createElement)(r,s):n?n(s):i?"function"==typeof i?i(s):0===w.Children.count(i)?null:w.Children.only(i):null},t})(w.Component).defaultProps={validateOnChange:!0};try{y=Map}catch(e){}try{b=Set}catch(e){}function AA(e){return function e(t,r,n){if(!t||"object"!=typeof t||"function"==typeof t)return t;if(t.nodeType&&"cloneNode"in t)return t.cloneNode(!0);if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);if(Array.isArray(t))return t.map(AA);if(y&&t instanceof y)return new Map(Array.from(t.entries()));if(b&&t instanceof b)return new Set(Array.from(t.values()));if(t instanceof Object){r.push(t);var i=Object.create(t);for(var o in n.push(i),t){var a=r.findIndex(function(e){return e===t[o]});i[o]=a>-1?n[a]:e(t[o],r,n)}return i}return t}(e,[],[])}let AO=Object.prototype.toString,AT=Error.prototype.toString,A_=RegExp.prototype.toString,AM="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",AR=/^Symbol\((.*)\)(.*)$/;function AN(e,t=!1){if(null==e||!0===e||!1===e)return""+e;let r=typeof e;if("number"===r)return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e;if("string"===r)return t?`"${e}"`:e;if("function"===r)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===r)return AM.call(e).replace(AR,"Symbol($1)");let n=AO.call(e).slice(8,-1);return"Date"===n?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===n||e instanceof Error?"["+AT.call(e)+"]":"RegExp"===n?A_.call(e):null}function AP(e,t){let r=AN(e,t);return null!==r?r:JSON.stringify(e,function(e,r){let n=AN(this[e],t);return null!==n?n:r},2)}let AL={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:n})=>{let i=null!=n&&n!==r,o=`${e} must be a \`${t}\` type, but the final value was: \`${AP(r,!0)}\``+(i?` (cast from the value \`${AP(n,!0)}\`).`:".");return null===r&&(o+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),o},defined:"${path} must be defined"},AD={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},AI={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},AF={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},AV={noUnknown:"${path} field has unspecified keys: ${unknown}"},AB={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};Object.assign(Object.create(null),{mixed:AL,string:AD,number:AI,date:AF,object:AV,array:AB,boolean:{isValue:"${path} field must be ${value}"}});var AU=r(93352),Az=r.n(AU),AH=e=>e&&e.__isYupSchema__,A$=class{constructor(e,t){if(this.fn=void 0,this.refs=e,this.refs=e,"function"==typeof t){this.fn=t;return}if(!Az()(t,"is"))throw TypeError("`is:` is required for `when()` conditions");if(!t.then&&!t.otherwise)throw TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:n,otherwise:i}=t,o="function"==typeof r?r:(...e)=>e.every(e=>e===r);this.fn=function(...e){let t=e.pop(),r=e.pop(),a=o(...e)?n:i;if(a)return"function"==typeof a?a(r):r.concat(a.resolve(t))}}resolve(e,t){let r=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),n=this.fn.apply(e,r.concat(e,t));if(void 0===n||n===e)return e;if(!AH(n))throw TypeError("conditions must return a schema object");return n.resolve(t)}};function AW(e){return null==e?[]:[].concat(e)}function Aq(){return(Aq=Object.assign||function(e){for(var t=1;tAP(t[r])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,r,n){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=t,this.path=r,this.type=n,this.errors=[],this.inner=[],AW(e).forEach(e=>{AZ.isError(e)?(this.errors.push(...e.errors),this.inner=this.inner.concat(e.inner.length?e.inner:e)):this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,AZ)}}let AY=e=>{let t=!1;return(...r)=>{t||(t=!0,e(...r))}};function AX(e,t){let{endEarly:r,tests:n,args:i,value:o,errors:a,sort:s,path:l}=e,u=AY(t),c=n.length,d=[];if(a=a||[],!c)return a.length?u(new AZ(a,o,l)):u(null,o);for(let e=0;e=0||(i[r]=e[r]);return i}(t,["value","path","label","options","originalValue","sync"]),{name:d,test:f,params:h,message:p}=e,{parent:m,context:v}=s;function g(e){return A1.isRef(e)?e.getValue(i,m,v):e}function y(e={}){let t=AJ()(A2({value:i,originalValue:l,label:a,path:e.path||o},h,e.params),g),r=new AZ(AZ.formatError(e.message||p,t),i,t.path,e.type||d);return r.params=t,r}let b=A2({path:o,parent:m,type:d,createError:y,resolve:g,options:s,originalValue:l},c);if(!u){try{Promise.resolve(f.call(b,i,b)).then(e=>{AZ.isError(e)?r(e):e?r(null,e):r(y())}).catch(r)}catch(e){r(e)}return}try{var x;if(n=f.call(b,i,b),"function"==typeof(null==(x=n)?void 0:x.then))throw Error(`Validation test of type: "${b.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(e){r(e);return}AZ.isError(n)?r(n):n?r(null,n):r(y())}return t.OPTIONS=e,t}A1.prototype.__isYupRef=!0;let A3=e=>e.substr(0,e.length-1).substr(1);class A5{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){let e=[];for(let t of this.list)e.push(t);for(let[,t]of this.refs)e.push(t.describe());return e}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(e){return this.toArray().reduce((t,r)=>t.concat(A1.isRef(r)?e(r):r),[])}add(e){A1.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){A1.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){let e=new A5;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,t){let r=this.clone();return e.list.forEach(e=>r.add(e)),e.refs.forEach(e=>r.add(e)),t.list.forEach(e=>r.delete(e)),t.refs.forEach(e=>r.delete(e)),r}}function A6(){return(A6=Object.assign||function(e){for(var t=1;t{this.typeError(AL.notType)}),this.type=(null==e?void 0:e.type)||"mixed",this.spec=A6({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},null==e?void 0:e.spec)}get _type(){return this.type}_typeCheck(e){return!0}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;let t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeError=this._typeError,t._whitelistError=this._whitelistError,t._blacklistError=this._blacklistError,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.exclusiveTests=A6({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=AA(A6({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=t,r}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=e.clone(),r=A6({},this.spec,t.spec);return t.spec=r,t._typeError||(t._typeError=this._typeError),t._whitelistError||(t._whitelistError=this._whitelistError),t._blacklistError||(t._blacklistError=this._blacklistError),t._whitelist=this._whitelist.merge(e._whitelist,e._blacklist),t._blacklist=this._blacklist.merge(e._blacklist,e._whitelist),t.tests=this.tests,t.exclusiveTests=this.exclusiveTests,t.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),t.transforms=[...this.transforms,...t.transforms],t}isType(e){return!!this.spec.nullable&&null===e||this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let r=t.conditions;(t=t.clone()).conditions=[],t=(t=r.reduce((t,r)=>r.resolve(t,e),t)).resolve(e)}return t}cast(e,t={}){let r=this.resolve(A6({value:e},t)),n=r._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==r.isType(n)){let i=AP(e),o=AP(n);throw TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${r._type}". - -attempted value: ${i} -`+(o!==i?`result of cast: ${o}`:""))}return n}_cast(e,t){let r=void 0===e?e:this.transforms.reduce((t,r)=>r.call(this,t,e,this),e);return void 0===r&&(r=this.getDefault()),r}_validate(e,t={},r){let{sync:n,path:i,from:o=[],originalValue:a=e,strict:s=this.spec.strict,abortEarly:l=this.spec.abortEarly}=t,u=e;s||(u=this._cast(u,A6({assert:!1},t)));let c={value:u,path:i,options:t,originalValue:a,schema:this,label:this.spec.label,sync:n,from:o},d=[];this._typeError&&d.push(this._typeError);let f=[];this._whitelistError&&f.push(this._whitelistError),this._blacklistError&&f.push(this._blacklistError),AX({args:c,value:u,path:i,sync:n,tests:d,endEarly:l},e=>{if(e)return void r(e,u);AX({tests:this.tests.concat(f),args:c,path:i,sync:n,value:u,endEarly:l},r)})}validate(e,t,r){let n=this.resolve(A6({},t,{value:e}));return"function"==typeof r?n._validate(e,t,r):new Promise((r,i)=>n._validate(e,t,(e,t)=>{e?i(e):r(t)}))}validateSync(e,t){let r;return this.resolve(A6({},t,{value:e}))._validate(e,A6({},t,{sync:!0}),(e,t)=>{if(e)throw e;r=t}),r}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(AZ.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(AZ.isError(e))return!1;throw e}}_getDefault(){let e=this.spec.default;return null==e?e:"function"==typeof e?e.call(this):AA(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){return 0==arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){let t=this.clone();return t.spec.strict=e,t}_isPresent(e){return null!=e}defined(e=AL.defined){return this.test({message:e,name:"defined",exclusive:!0,test:e=>void 0!==e})}required(e=AL.required){return this.clone({presence:"required"}).withMutation(t=>t.test({message:e,name:"required",exclusive:!0,test(e){return this.schema._isPresent(e)}}))}notRequired(){let e=this.clone({presence:"optional"});return e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e}nullable(e=!0){return this.clone({nullable:!1!==e})}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(void 0===(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]}).message&&(t.message=AL.default),"function"!=typeof t.test)throw TypeError("`test` is a required parameters");let r=this.clone(),n=A4(t),i=t.exclusive||t.name&&!0===r.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(r.exclusiveTests[t.name]=!!t.exclusive),r.tests=r.tests.filter(e=>e.OPTIONS.name!==t.name||!i&&e.OPTIONS.test!==n.OPTIONS.test),r.tests.push(n),r}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let r=this.clone(),n=AW(e).map(e=>new A1(e));return n.forEach(e=>{e.isSibling&&r.deps.push(e.key)}),r.conditions.push(new A$(n,t)),r}typeError(e){let t=this.clone();return t._typeError=A4({message:e,name:"typeError",test(e){return!!(void 0===e||this.schema.isType(e))||this.createError({params:{type:this.schema._type}})}}),t}oneOf(e,t=AL.oneOf){let r=this.clone();return e.forEach(e=>{r._whitelist.add(e),r._blacklist.delete(e)}),r._whitelistError=A4({message:t,name:"oneOf",test(e){if(void 0===e)return!0;let t=this.schema._whitelist,r=t.resolveAll(this.resolve);return!!r.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:r}})}}),r}notOneOf(e,t=AL.notOneOf){let r=this.clone();return e.forEach(e=>{r._blacklist.add(e),r._whitelist.delete(e)}),r._blacklistError=A4({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,r=t.resolveAll(this.resolve);return!r.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:r}})}}),r}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(){let e=this.clone(),{label:t,meta:r}=e.spec,n={meta:r,label:t,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map(e=>({name:e.OPTIONS.name,params:e.OPTIONS.params})).filter((e,t,r)=>r.findIndex(t=>t.name===e.name)===t)};return n}}for(let e of(A8.prototype.__isYupSchema__=!0,["validate","validateSync"]))A8.prototype[`${e}At`]=function(t,r,n={}){let{parent:i,parentPath:o,schema:a}=function(e,t,r,n=r){let i,o,a;return t?((0,AQ.forEach)(t,(s,l,u)=>{let c=l?A3(s):s;if((e=e.resolve({context:n,parent:i,value:r})).innerType){let n=u?parseInt(c,10):0;if(r&&n>=r.length)throw Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);i=r,r=r&&r[n],e=e.innerType}if(!u){if(!e.fields||!e.fields[c])throw Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e._type}")`);i=r,r=r&&r[c],e=e.fields[c]}o=c,a=l?"["+s+"]":"."+s}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}(this,t,r,n.context);return a[e](i&&i[o],A6({},n,{parent:i,path:t}))};for(let e of["equals","is"])A8.prototype[e]=A8.prototype.oneOf;for(let e of["not","nope"])A8.prototype[e]=A8.prototype.notOneOf;A8.prototype.optional=A8.prototype.notRequired,A8.prototype;var A7=e=>null==e;let A9=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,Oe=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Ot=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Or=e=>A7(e)||e===e.trim(),On=({}).toString();function Oi(){return new Oo}class Oo extends A8{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform(function(e){if(this.isType(e)||Array.isArray(e))return e;let t=null!=e&&e.toString?e.toString():e;return t===On?e:t})})}_typeCheck(e){return e instanceof String&&(e=e.valueOf()),"string"==typeof e}_isPresent(e){return super._isPresent(e)&&!!e.length}length(e,t=AD.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return A7(t)||t.length===this.resolve(e)}})}min(e,t=AD.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return A7(t)||t.length>=this.resolve(e)}})}max(e,t=AD.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},test(t){return A7(t)||t.length<=this.resolve(e)}})}matches(e,t){let r,n,i=!1;return t&&("object"==typeof t?{excludeEmptyString:i=!1,message:r,name:n}=t:r=t),this.test({name:n||"matches",message:r||AD.matches,params:{regex:e},test:t=>A7(t)||""===t&&i||-1!==t.search(e)})}email(e=AD.email){return this.matches(A9,{name:"email",message:e,excludeEmptyString:!0})}url(e=AD.url){return this.matches(Oe,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=AD.uuid){return this.matches(Ot,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=AD.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:Or})}lowercase(e=AD.lowercase){return this.transform(e=>A7(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>A7(e)||e===e.toLowerCase()})}uppercase(e=AD.uppercase){return this.transform(e=>A7(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>A7(e)||e===e.toUpperCase()})}}Oi.prototype=Oo.prototype;let Oa=e=>e!=+e;function Os(){return new Ol}class Ol extends A8{constructor(){super({type:"number"}),this.withMutation(()=>{this.transform(function(e){let t=e;if("string"==typeof t){if(""===(t=t.replace(/\s/g,"")))return NaN;t=+t}return this.isType(t)?t:parseFloat(t)})})}_typeCheck(e){return e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&!Oa(e)}min(e,t=AI.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return A7(t)||t>=this.resolve(e)}})}max(e,t=AI.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return A7(t)||t<=this.resolve(e)}})}lessThan(e,t=AI.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},test(t){return A7(t)||tthis.resolve(e)}})}positive(e=AI.positive){return this.moreThan(0,e)}negative(e=AI.negative){return this.lessThan(0,e)}integer(e=AI.integer){return this.test({name:"integer",message:e,test:e=>A7(e)||Number.isInteger(e)})}truncate(){return this.transform(e=>A7(e)?e:0|e)}round(e){var t;let r=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===r.indexOf(e.toLowerCase()))throw TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(t=>A7(t)?t:Math[e](t))}}Os.prototype=Ol.prototype;var Ou=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let Oc=new Date(""),Od=e=>"[object Date]"===Object.prototype.toString.call(e);function Of(){return new Oh}class Oh extends A8{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(e){return this.isType(e)?e:isNaN(e=function(e){var t,r,n=[1,4,5,6,7,10,11],i=0;if(r=Ou.exec(e)){for(var o,a=0;o=n[a];++a)r[o]=+r[o]||0;r[2]=(+r[2]||1)-1,r[3]=+r[3]||1,r[7]=r[7]?String(r[7]).substr(0,3):0,(void 0===r[8]||""===r[8])&&(void 0===r[9]||""===r[9])?t=+new Date(r[1],r[2],r[3],r[4],r[5],r[6],r[7]):("Z"!==r[8]&&void 0!==r[9]&&(i=60*r[10]+r[11],"+"===r[9]&&(i=0-i)),t=Date.UTC(r[1],r[2],r[3],r[4],r[5]+i,r[6],r[7]))}else t=Date.parse?Date.parse(e):NaN;return t}(e))?Oc:new Date(e)})})}_typeCheck(e){return Od(e)&&!isNaN(e.getTime())}prepareParam(e,t){let r;if(A1.isRef(e))r=e;else{let n=this.cast(e);if(!this._typeCheck(n))throw TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);r=n}return r}min(e,t=AF.min){let r=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(e){return A7(e)||e>=this.resolve(r)}})}max(e,t=AF.max){let r=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(e){return A7(e)||e<=this.resolve(r)}})}}Oh.INVALID_DATE=Oc,Of.prototype=Oh.prototype,Of.INVALID_DATE=Oc;var Op=r(57370),Om=r.n(Op),Ov=r(96009),Og=r.n(Ov),Oy=r(19950),Ob=r.n(Oy),Ox=r(95159),Ow=r.n(Ox);function OE(e,t){let r=1/0;return e.some((e,n)=>{var i;if((null==(i=t.path)?void 0:i.indexOf(e))!==-1)return r=n,!0}),r}function Oj(e){return(t,r)=>OE(e,t)-OE(e,r)}function OS(){return(OS=Object.assign||function(e){for(var t=1;t"[object Object]"===Object.prototype.toString.call(e),Ok=Oj([]);class OA extends A8{constructor(e){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=Ok,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform(function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null}),e&&this.shape(e)})}_typeCheck(e){return OC(e)||"function"==typeof e}_cast(e,t={}){var r;let n=super._cast(e,t);if(void 0===n)return this.getDefault();if(!this._typeCheck(n))return n;let i=this.fields,o=null!=(r=t.stripUnknown)?r:this.spec.noUnknown,a=this._nodes.concat(Object.keys(n).filter(e=>-1===this._nodes.indexOf(e))),s={},l=OS({},t,{parent:s,__validating:t.__validating||!1}),u=!1;for(let e of a){let r=i[e],a=Az()(n,e);if(r){let i;let o=n[e];l.path=(t.path?`${t.path}.`:"")+e;let a="spec"in(r=r.resolve({value:o,context:t.context,parent:s}))?r.spec:void 0,c=null==a?void 0:a.strict;if(null==a?void 0:a.strip){u=u||e in n;continue}void 0!==(i=t.__validating&&c?n[e]:r.cast(n[e],l))&&(s[e]=i)}else a&&!o&&(s[e]=n[e]);s[e]!==n[e]&&(u=!0)}return u?s:n}_validate(e,t={},r){let n=[],{sync:i,from:o=[],originalValue:a=e,abortEarly:s=this.spec.abortEarly,recursive:l=this.spec.recursive}=t;o=[{schema:this,value:a},...o],t.__validating=!0,t.originalValue=a,t.from=o,super._validate(e,t,(e,u)=>{if(e){if(!AZ.isError(e)||s)return void r(e,u);n.push(e)}if(!l||!OC(u)){r(n[0]||null,u);return}a=a||u,AX({sync:i,tests:this._nodes.map(e=>(r,n)=>{let i=-1===e.indexOf(".")?(t.path?`${t.path}.`:"")+e:`${t.path||""}["${e}"]`,s=this.fields[e];if(s&&"validate"in s){s.validate(u[e],OS({},t,{path:i,from:o,strict:!0,parent:u,originalValue:a[e]}),n);return}n(null)}),value:u,errors:n,endEarly:s,sort:this._sortErrors,path:t.path},r)})}clone(e){let t=super.clone(e);return t.fields=OS({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),r=t.fields;for(let[e,t]of Object.entries(this.fields)){let n=r[e];void 0===n?r[e]=t:n instanceof A8&&t instanceof A8&&(r[e]=t.concat(n))}return t.withMutation(()=>t.shape(r,this._excludedEdges))}getDefaultFromShape(){let e={};return this._nodes.forEach(t=>{let r=this.fields[t];e[t]="default"in r?r.getDefault():void 0}),e}_getDefault(){return"default"in this.spec?super._getDefault():this._nodes.length?this.getDefaultFromShape():void 0}shape(e,t=[]){let r=this.clone(),n=Object.assign(r.fields,e);return r.fields=n,r._sortErrors=Oj(Object.keys(n)),t.length&&(Array.isArray(t[0])||(t=[t]),r._excludedEdges=[...r._excludedEdges,...t]),r._nodes=function(e,t=[]){let r=[],n=new Set,i=new Set(t.map(([e,t])=>`${e}-${t}`));function o(e,t){let o=(0,AQ.split)(e)[0];n.add(o),i.has(`${t}-${o}`)||r.push([t,o])}for(let t in e)if(Az()(e,t)){let r=e[t];n.add(t),A1.isRef(r)&&r.isSibling?o(r.path,t):AH(r)&&"deps"in r&&r.deps.forEach(e=>o(e,t))}return Ow().array(Array.from(n),r).reverse()}(n,r._excludedEdges),r}pick(e){let t={};for(let r of e)this.fields[r]&&(t[r]=this.fields[r]);return this.clone().withMutation(e=>(e.fields={},e.shape(t)))}omit(e){let t=this.clone(),r=t.fields;for(let n of(t.fields={},e))delete r[n];return t.withMutation(()=>t.shape(r))}from(e,t,r){let n=(0,AQ.getter)(e,!0);return this.transform(i=>{if(null==i)return i;let o=i;return Az()(i,e)&&(o=OS({},i),r||delete o[e],o[t]=n(i)),o})}noUnknown(e=!0,t=AV.noUnknown){"string"==typeof e&&(t=e,e=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){let r;if(null==t)return!0;let n=(r=Object.keys(this.schema.fields),Object.keys(t).filter(e=>-1===r.indexOf(e)));return!e||0===n.length||this.createError({params:{unknown:n.join(", ")}})}});return r.spec.noUnknown=e,r}unknown(e=!0,t=AV.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>t&&Ob()(t,(t,r)=>e(r)))}camelCase(){return this.transformKeys(Og())}snakeCase(){return this.transformKeys(Om())}constantCase(){return this.transformKeys(e=>Om()(e).toUpperCase())}describe(){let e=super.describe();return e.fields=AJ()(this.fields,e=>e.describe()),e}}function OO(e){return new OA(e)}function OT(){return(OT=Object.assign||function(e){for(var t=1;te.id===t),o=r.length-1;return(0,x.jsxs)("div",{className:"relative w-full mt-8 mb-3",children:[(0,x.jsx)("div",{className:"absolute w-full h-1 bg-gray-500 dark:bg-graydark-500 rounded-lg"}),(0,x.jsx)("div",{className:"absolute h-1 bg-accent-800 dark:bg-accentdark-800 rounded-lg",style:{width:"".concat(i/o*100,"%")}}),r.map((e,r)=>{let{id:a,label:s}=e,l=t===a,u=i>=r,c=r===o,d=0===r,f=u&&i!==o;return(0,x.jsxs)("div",{className:(0,ey.cx)("absolute h-2 w-2 -top-0.5",f?"cursor-pointer":"cursor-default"),style:{left:"calc(".concat(r/o*100,"% - ").concat(c?8:d?0:4,"px)")},onClick:()=>{f&&n(a)},children:[(0,x.jsx)(t8,{color:l?"contrast":"verySubtle",className:(0,ey.cx)("absolute top-[-30px]",d?"left-0":"",c?"right-0":"",d||c?"":"-translate-x-1/2"),noWrap:!0,children:s}),(0,x.jsx)("div",{className:(0,ey.cx)("absolute left-0 top-0 h-full w-full rounded-lg border",u?"bg-accent-800 dark-accentdark-800":"bg-gray-500 dark:bg-graydark-500",u?"border-accent-900 dark:border-accentdark-900":"border-gray-600 dark:border-graydark-600")}),l&&(0,x.jsx)("div",{className:"absolute left-0 top-0 h-full w-full rounded-lg bg-accent-800 dark:bg-accentdark-800 animate-pingslow"})]},a)})]})}OO.prototype=OA.prototype,(class extends A8{constructor(e){super({type:"array"}),this.innerType=void 0,this.innerType=e,this.withMutation(()=>{this.transform(function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null})})}_typeCheck(e){return Array.isArray(e)}get _subType(){return this.innerType}_cast(e,t){let r=super._cast(e,t);if(!this._typeCheck(r)||!this.innerType)return r;let n=!1,i=r.map((e,r)=>{let i=this.innerType.cast(e,OT({},t,{path:`${t.path||""}[${r}]`}));return i!==e&&(n=!0),i});return n?i:r}_validate(e,t={},r){var n,i;let o=[],a=t.sync,s=t.path,l=this.innerType,u=null!=(n=t.abortEarly)?n:this.spec.abortEarly,c=null!=(i=t.recursive)?i:this.spec.recursive,d=null!=t.originalValue?t.originalValue:e;super._validate(e,t,(e,n)=>{if(e){if(!AZ.isError(e)||u)return void r(e,n);o.push(e)}if(!c||!l||!this._typeCheck(n)){r(o[0]||null,n);return}d=d||n;let i=Array(n.length);for(let e=0;el.validate(r,a,t)}AX({sync:a,path:s,value:n,errors:o,endEarly:u,tests:i},r)})}clone(e){let t=super.clone(e);return t.innerType=this.innerType,t}concat(e){let t=super.concat(e);return t.innerType=this.innerType,e.innerType&&(t.innerType=t.innerType?t.innerType.concat(e.innerType):e.innerType),t}of(e){let t=this.clone();if(!AH(e))throw TypeError("`array.of()` sub-schema must be a valid yup schema not: "+AP(e));return t.innerType=e,t}length(e,t=AB.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return A7(t)||t.length===this.resolve(e)}})}min(e,t){return t=t||AB.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return A7(t)||t.length>=this.resolve(e)}})}max(e,t){return t=t||AB.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return A7(t)||t.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,t)=>this._typeCheck(e)?e:null==t?[]:[].concat(t))}compact(e){let t=e?(t,r,n)=>!e(t,r,n):e=>!!e;return this.transform(e=>null!=e?e.filter(t):e)}describe(){let e=super.describe();return this.innerType&&(e.innerType=this.innerType.describe()),e}nullable(e=!0){return super.nullable(e)}defined(){return super.defined()}required(e){return super.required(e)}}).prototype,OO().shape({address:Oi().required("Required"),siacoin:Oi().required("Required").test("greater than zero","Must be greater than zero",e=>!new(hd())(e||0).isZero())}),(0,ww.qN)(.00393),new(hd())(0);let OM="[a-fA-F\\d:]",OR=e=>e&&e.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(OM,")|(?<=").concat(OM,")(?=\\s|$))"):"",ON="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",OP="[a-fA-F\\d]{1,4}",OL="\n(?:\n(?:".concat(OP,":){7}(?:").concat(OP,"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:").concat(OP,":){6}(?:").concat(ON,"|:").concat(OP,"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:").concat(OP,":){5}(?::").concat(ON,"|(?::").concat(OP,"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:").concat(OP,":){4}(?:(?::").concat(OP,"){0,1}:").concat(ON,"|(?::").concat(OP,"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:").concat(OP,":){3}(?:(?::").concat(OP,"){0,2}:").concat(ON,"|(?::").concat(OP,"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:").concat(OP,":){2}(?:(?::").concat(OP,"){0,3}:").concat(ON,"|(?::").concat(OP,"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:").concat(OP,":){1}(?:(?::").concat(OP,"){0,4}:").concat(ON,"|(?::").concat(OP,"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::").concat(OP,"){0,5}:").concat(ON,"|(?::").concat(OP,"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),OD=new RegExp("(?:^".concat(ON,"$)|(?:^").concat(OL,"$)")),OI=new RegExp("^".concat(ON,"$")),OF=new RegExp("^".concat(OL,"$")),OV=e=>e&&e.exact?OD:RegExp("(?:".concat(OR(e)).concat(ON).concat(OR(e),")|(?:").concat(OR(e)).concat(OL).concat(OR(e),")"),"g");OV.v4=e=>e&&e.exact?OI:RegExp("".concat(OR(e)).concat(ON).concat(OR(e)),"g"),OV.v6=e=>e&&e.exact?OF:RegExp("".concat(OR(e)).concat(OL).concat(OR(e)),"g");let OB=()=>RegExp("^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|((([a-zA-Z]|[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]).)+([A-Za-z|[A-Za-z][A-Za-z0-9‌​-]*[A-Za-z0-9])))$","g"),OU={port:9981,ip:""},Oz=OO().shape({port:Os().required("Required").min(0,"Out of valid range").max(65535,"Out of valid range"),ip:Oi().required("Required").test("ip","Invalid hostname or IP address",e=>OB().test(e||""))});function OH(e){var t,r,n,i,o,a,s,l,u,c,d,f,h,p,m,v,g,y,b,E,j,S,C,k,A,O,T,_,M,R,N,P,L,D,I,F,V,B,U,z,H,$,W,q,G,Z,Y,X,K,J,Q,ee,et,er,en;let{trigger:ei,open:eo,connect:ea,onOpenChange:es}=e,el=(n=void 0===(r=(t={initialValues:OU,validationSchema:Oz,onSubmit:async(e,t)=>{let r="".concat(e.ip,":").concat(e.port),n=await ea(r);if(n.error){let e=n.error.replace("invalid peer address: address ".concat(r,":"),"");t.setStatus({error:e})}else jh("Connected to peer"),t.resetForm(),es(!1)}}).validateOnChange)||r,o=void 0===(i=t.validateOnBlur)||i,s=void 0!==(a=t.validateOnMount)&&a,l=t.isInitialValid,c=void 0!==(u=t.enableReinitialize)&&u,d=t.onSubmit,f=Aa(t,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=Ao({validateOnChange:n,validateOnBlur:o,validateOnMount:s,onSubmit:d},f),p=(0,w.useRef)(h.initialValues),m=(0,w.useRef)(h.initialErrors||Ag),v=(0,w.useRef)(h.initialTouched||Ay),g=(0,w.useRef)(h.initialStatus),y=(0,w.useRef)(!1),b=(0,w.useRef)({}),(0,w.useEffect)(function(){return y.current=!0,function(){y.current=!1}},[]),j=(E=(0,w.useReducer)(Av,{values:h.initialValues,errors:h.initialErrors||Ag,touched:h.initialTouched||Ay,status:h.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}))[0],S=E[1],C=(0,w.useCallback)(function(e,t){return new Promise(function(r,n){var i=h.validate(e,t);null==i?r(Ag):Af(i)?i.then(function(e){r(e||Ag)},function(e){n(e)}):r(i)})},[h.validate]),k=(0,w.useCallback)(function(e,t){var r,n,i,o=h.validationSchema,a=Au(o)?o(t):o,s=t&&a.validateAt?a.validateAt(t,e):(void 0===r&&(r=!1),void 0===n&&(n={}),i=function e(t){var r=Array.isArray(t)?[]:{};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var i=String(n);!0===Array.isArray(t[i])?r[i]=t[i].map(function(t){return!0===Array.isArray(t)||S8(t)?e(t):""!==t?t:void 0}):S8(t[i])?r[i]=e(t[i]):r[i]=""!==t[i]?t[i]:void 0}return r}(e),a[r?"validateSync":"validate"](i,{abortEarly:!1,context:n}));return new Promise(function(e,t){s.then(function(){e(Ag)},function(r){"ValidationError"===r.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return Ap(t,e.path,e.message);for(var r=e.inner,n=Array.isArray(r),i=0,r=n?r:r[Symbol.iterator]();;){if(n){if(i>=r.length)break;o=r[i++]}else{if((i=r.next()).done)break;o=i.value}var o,a=o;Ah(t,a.path)||(t=Ap(t,a.path,a.message))}}return t}(r)):t(r)})})},[h.validationSchema]),A=(0,w.useCallback)(function(e,t){return new Promise(function(r){return r(b.current[e].validate(t))})},[]),O=(0,w.useCallback)(function(e){var t=Object.keys(b.current).filter(function(e){return Au(b.current[e].validate)});return Promise.all(t.length>0?t.map(function(t){return A(t,Ah(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")]).then(function(e){return e.reduce(function(e,r,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===r||r&&(e=Ap(e,t[n],r)),e},{})})},[A]),T=(0,w.useCallback)(function(e){return Promise.all([O(e),h.validationSchema?k(e):{},h.validate?C(e):{}]).then(function(e){var t=e[0],r=e[1],n=e[2];return SU.all([t,r,n],{arrayMerge:Ab})})},[h.validate,h.validationSchema,O,C,k]),_=Aw(function(e){return void 0===e&&(e=j.values),S({type:"SET_ISVALIDATING",payload:!0}),T(e).then(function(e){return y.current&&(S({type:"SET_ISVALIDATING",payload:!1}),S({type:"SET_ERRORS",payload:e})),e})}),(0,w.useEffect)(function(){s&&!0===y.current&&SL()(p.current,h.initialValues)&&_(p.current)},[s,_]),M=(0,w.useCallback)(function(e){var t=e&&e.values?e.values:p.current,r=e&&e.errors?e.errors:m.current?m.current:h.initialErrors||{},n=e&&e.touched?e.touched:v.current?v.current:h.initialTouched||{},i=e&&e.status?e.status:g.current?g.current:h.initialStatus;p.current=t,m.current=r,v.current=n,g.current=i;var o=function(){S({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:r,touched:n,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(h.onReset){var a=h.onReset(j.values,X);Af(a)?a.then(o):o()}else o()},[h.initialErrors,h.initialStatus,h.initialTouched]),(0,w.useEffect)(function(){!0===y.current&&!SL()(p.current,h.initialValues)&&(c&&(p.current=h.initialValues,M()),s&&_(p.current))},[c,h.initialValues,M,s,_]),(0,w.useEffect)(function(){c&&!0===y.current&&!SL()(m.current,h.initialErrors)&&(m.current=h.initialErrors||Ag,S({type:"SET_ERRORS",payload:h.initialErrors||Ag}))},[c,h.initialErrors]),(0,w.useEffect)(function(){c&&!0===y.current&&!SL()(v.current,h.initialTouched)&&(v.current=h.initialTouched||Ay,S({type:"SET_TOUCHED",payload:h.initialTouched||Ay}))},[c,h.initialTouched]),(0,w.useEffect)(function(){c&&!0===y.current&&!SL()(g.current,h.initialStatus)&&(g.current=h.initialStatus,S({type:"SET_STATUS",payload:h.initialStatus}))},[c,h.initialStatus,h.initialTouched]),R=Aw(function(e){if(b.current[e]&&Au(b.current[e].validate)){var t=Ah(j.values,e),r=b.current[e].validate(t);return Af(r)?(S({type:"SET_ISVALIDATING",payload:!0}),r.then(function(e){return e}).then(function(t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),S({type:"SET_ISVALIDATING",payload:!1})})):(S({type:"SET_FIELD_ERROR",payload:{field:e,value:r}}),Promise.resolve(r))}return h.validationSchema?(S({type:"SET_ISVALIDATING",payload:!0}),k(j.values,e).then(function(e){return e}).then(function(t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),S({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),N=(0,w.useCallback)(function(e,t){var r=t.validate;b.current[e]={validate:r}},[]),P=(0,w.useCallback)(function(e){delete b.current[e]},[]),L=Aw(function(e,t){return S({type:"SET_TOUCHED",payload:e}),(void 0===t?o:t)?_(j.values):Promise.resolve()}),D=(0,w.useCallback)(function(e){S({type:"SET_ERRORS",payload:e})},[]),I=Aw(function(e,t){var r=Au(e)?e(j.values):e;return S({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?_(r):Promise.resolve()}),F=(0,w.useCallback)(function(e,t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),V=Aw(function(e,t,r){return S({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?_(Ap(j.values,e,t)):Promise.resolve()}),B=(0,w.useCallback)(function(e,t){var r,n=t,i=e;if(!Ad(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,a=o.type,s=o.name,l=o.id,u=o.value,c=o.checked,d=(o.outerHTML,o.options),f=o.multiple;n=t||s||l,i=/number|range/.test(a)?isNaN(r=parseFloat(u))?"":r:/checkbox/.test(a)?function(e,t,r){if("boolean"==typeof e)return!!t;var n=[],i=!1,o=-1;if(Array.isArray(e))n=e,i=(o=e.indexOf(r))>=0;else if(!r||"true"==r||"false"==r)return!!t;return t&&r&&!i?n.concat(r):i?n.slice(0,o).concat(n.slice(o+1)):n}(Ah(j.values,n),c,u):d&&f?Array.from(d).filter(function(e){return e.selected}).map(function(e){return e.value}):u}n&&V(n,i)},[V,j.values]),U=Aw(function(e){if(Ad(e))return function(t){return B(t,e)};B(e)}),z=Aw(function(e,t,r){return void 0===t&&(t=!0),S({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===r?o:r)?_(j.values):Promise.resolve()}),H=(0,w.useCallback)(function(e,t){e.persist&&e.persist();var r=e.target,n=r.name,i=r.id;r.outerHTML,z(t||n||i,!0)},[z]),$=Aw(function(e){if(Ad(e))return function(t){return H(t,e)};H(e)}),W=(0,w.useCallback)(function(e){Au(e)?S({type:"SET_FORMIK_STATE",payload:e}):S({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),q=(0,w.useCallback)(function(e){S({type:"SET_STATUS",payload:e})},[]),G=(0,w.useCallback)(function(e){S({type:"SET_ISSUBMITTING",payload:e})},[]),Z=Aw(function(){return S({type:"SUBMIT_ATTEMPT"}),_().then(function(e){var t,r=e instanceof Error;if(!r&&0===Object.keys(e).length){try{if(t=K(),void 0===t)return}catch(e){throw e}return Promise.resolve(t).then(function(e){return y.current&&S({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(y.current)throw S({type:"SUBMIT_FAILURE"}),e})}if(y.current&&(S({type:"SUBMIT_FAILURE"}),r))throw e})}),Y=Aw(function(e){e&&e.preventDefault&&Au(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Au(e.stopPropagation)&&e.stopPropagation(),Z().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),X={resetForm:M,validateForm:_,validateField:R,setErrors:D,setFieldError:F,setFieldTouched:z,setFieldValue:V,setStatus:q,setSubmitting:G,setTouched:L,setValues:I,setFormikState:W,submitForm:Z},K=Aw(function(){return d(j.values,X)}),J=Aw(function(e){e&&e.preventDefault&&Au(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Au(e.stopPropagation)&&e.stopPropagation(),M()}),Q=(0,w.useCallback)(function(e){return{value:Ah(j.values,e),error:Ah(j.errors,e),touched:!!Ah(j.touched,e),initialValue:Ah(p.current,e),initialTouched:!!Ah(v.current,e),initialError:Ah(m.current,e)}},[j.errors,j.touched,j.values]),ee=(0,w.useCallback)(function(e){return{setValue:function(t,r){return V(e,t,r)},setTouched:function(t,r){return z(e,t,r)},setError:function(t){return F(e,t)}}},[V,z,F]),et=(0,w.useCallback)(function(e){var t=Ac(e),r=t?e.name:e,n=Ah(j.values,r),i={name:r,value:n,onChange:U,onBlur:$};if(t){var o=e.type,a=e.value,s=e.as,l=e.multiple;"checkbox"===o?void 0===a?i.checked=!!n:(i.checked=!!(Array.isArray(n)&&~n.indexOf(a)),i.value=a):"radio"===o?(i.checked=n===a,i.value=a):"select"===s&&l&&(i.value=i.value||[],i.multiple=!0)}return i},[$,U,j.values]),er=(0,w.useMemo)(function(){return!SL()(p.current,j.values)},[p.current,j.values]),en=(0,w.useMemo)(function(){return void 0!==l?er?j.errors&&0===Object.keys(j.errors).length:!1!==l&&Au(l)?l(h):l:j.errors&&0===Object.keys(j.errors).length},[l,er,j.errors,h]),Ao({},j,{initialValues:p.current,initialErrors:m.current,initialTouched:v.current,initialStatus:g.current,handleBlur:$,handleChange:U,handleReset:J,handleSubmit:Y,resetForm:M,setErrors:D,setFormikState:W,setFieldTouched:z,setFieldValue:V,setFieldError:F,setStatus:q,setSubmitting:G,setTouched:L,setValues:I,submitForm:Z,validateForm:_,validateField:R,isValid:en,dirty:er,unregisterField:P,registerField:N,getFieldProps:et,getFieldMeta:Q,getFieldHelpers:ee,validateOnBlur:o,validateOnChange:n,validateOnMount:s}));return(0,x.jsx)(cb,{trigger:ei,title:"Connect peer",open:eo,onOpenChange:e=>{e||el.resetForm(),es(e)},contentVariants:{className:"w-[400px]"},children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(t7,{size:"14",children:"Connect to a peer by IP address."}),(0,x.jsx)("form",{onSubmit:el.handleSubmit,children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(j5,{formik:el,title:"Address",name:"ip",placeholder:"host.acme.com or 127.0.0.1",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,x.jsx)(j5,{formik:el,title:"Port",name:"port",disableGroupSeparators:!0,placeholder:"9981",autoComplete:"off",type:"number",variants:{size:"medium"}}),(0,x.jsx)(St,{formik:el,size:"medium",children:"Connect"})]})})]})})}OO().shape({address:Oi().required("Required"),description:Oi().required("Required"),index:Os().integer().required("Required")});var O$=r(38001);function OW(e){let{title:t,description:r,address:n}=e;return(0,x.jsxs)("div",{className:"flex flex-col gap-4 items-center justify-center",children:[t&&(0,x.jsx)(d8,{size:"20",font:"mono",children:t}),r&&(0,x.jsx)(t8,{children:r}),(0,x.jsx)("div",{className:"relative p-[5px] bg-white h-[210px] w-[210px]",children:(0,x.jsx)("div",{className:"absolute",children:(0,x.jsx)(O$.Z,{size:200,value:n})})}),(0,x.jsx)(jC,{type:"address",value:n})]})}let Oq={blog:"https://blog.sia.tech",docs:{index:"https://docs.sia.tech",sia101:"https://docs.sia.tech/get-started-with-sia/sia101",renterd:"https://docs.sia.tech/renting/about-renting",hostd:"https://docs.sia.tech/hosting/about-hosting-on-sia",walletd:"https://docs.sia.tech/wallet/wallet-overview",renting:"https://docs.sia.tech/renting/about-renting",wallet:"https://docs.sia.tech/wallet/wallet-overview",hosting:"https://docs.sia.tech/hosting/about-hosting-on-sia",mining:"https://docs.sia.tech/mining/about-mining-on-sia",embarcadero:"https://github.com/SiaFoundation/embarcadero",siad:"https://api.sia.tech",siaui:"https://docs.sia.tech/your-sia-wallet/sia-ui-faqs",brand:"https://docs.sia.tech/sia-integrations/sia-brand-guidelines"},website:{index:"https://sia.tech",tos:"https://sia.tech/terms-of-service",privacy:"https://sia.tech/privacy-policy"},explore:{mainnet:"https://siascan.com",testnetZen:"https://zen.siascan.com",testnetZenFaucet:"https://zen.siascan.com/faucet"},design:"https://design.sia.tech",apiDocs:{renterd:"https://api.sia.tech/renterd",hostd:"https://api.sia.tech/hostd",walletd:"https://api.sia.tech/walletd"},github:{index:"https://github.com/SiaFoundation",embarcadero:"https://github.com/SiaFoundation/embarcadero",siad:"https://github.com/SiaFoundation/siad",renterd:"https://github.com/SiaFoundation/renterd",walletd:"https://github.com/SiaFoundation/walletd",hostd:"https://github.com/SiaFoundation/hostd",siaui:"https://gitlab.com/NebulousLabs/Sia-UI"},discord:"https://sia.tech/discord",twitter:"https://twitter.com/sia__foundation",bluesky:"https://bsky.app/profile/sia.tech",twitterHandle:"@sia__foundation",reddit:"https://reddit.com/r/siacoin",forum:"https://forum.sia.tech/",forumGrants:"https://forum.sia.tech/c/grants/",forumGrantsProposed:"https://forum.sia.tech/c/grants/proposed/",merch:"https://siagear.tech/",email:"hello@sia.tech",benchmarks:"https://benchmarks.sia.tech",storageStats:"https://hosts.siacentral.com/",hostTroubleshoot:"https://troubleshoot.siacentral.com/",coinmarketcap:"https://coinmarketcap.com/currencies/siacoin/",jobs:"https://siafoundation.homerun.co/"};function OG(e){return 6e4*e}function OZ(e){return 36e5*e}function OY(){let{settings:e,setCurrency:t,currencyOptions:r}=(0,hm.Hv)();return(0,x.jsx)(hj,{disabled:!e.siaCentral,value:e.currency.id,onChange:e=>t(e.currentTarget.value),children:r.map(e=>{let{id:t,label:r}=e;return(0,x.jsx)(hS,{value:t,children:r},t)})})}let OX=[{id:"sc",label:"Siacoin"},{id:"fiat",label:"Fiat"},{id:"bothPreferSc",label:"Both - prefer siacoin"},{id:"bothPreferFiat",label:"Both - prefer fiat"}];function OK(){let{settings:e,setSettings:t}=(0,hm.Hv)();return(0,x.jsx)(hj,{disabled:!e.siaCentral,value:e.currencyDisplay,onChange:e=>t({currencyDisplay:e.currentTarget.value}),children:OX.map(e=>{let{id:t,label:r}=e;return(0,x.jsx)(hS,{value:t,children:r},t)})})}function OJ(e){let{open:t,onOpenChange:r,securityEl:n,showGpuSetting:i}=e,{settings:o,setSettings:a,gpu:s}=(0,hm.Hv)();return(0,x.jsx)(cb,{open:t,title:"App preferences",onOpenChange:r,contentVariants:{className:"w-[450px]"},children:(0,x.jsxs)("div",{className:"flex flex-col gap-6 mb-2",children:[(0,x.jsx)("div",{className:"flex flex-col gap-4",children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(t8,{size:"16",weight:"bold",children:"Display"}),(0,x.jsx)(t7,{size:"14",children:"Configure visual and locale display preferences."}),(0,x.jsx)(lh,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(t8,{children:(0,x.jsx)(ld.RdX,{})}),(0,x.jsx)(d8,{size:"20",className:"flex-1",children:"Currency display"}),(0,x.jsx)(OK,{})]}),(0,x.jsx)(t7,{size:"14",children:"Select whether you would like to see currency values in siacoin, fiat, or both. Fiat requires Sia Central third-party data enabled under Privacy."})]})}),(0,x.jsx)(lh,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(t8,{children:(0,x.jsx)(ld.RdX,{})}),(0,x.jsx)(d8,{size:"20",className:"flex-1",children:"Fiat"}),(0,x.jsx)(OY,{})]}),(0,x.jsx)(t7,{size:"14",children:"Select a fiat currency for price conversions from Siacoin. Requires Sia Central third-party data enabled under Privacy."})]})}),(0,x.jsx)(lh,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(t8,{children:(0,x.jsx)(ld.RdX,{})}),(0,x.jsx)(d8,{size:"20",className:"flex-1",children:"Theme"}),(0,x.jsx)(mV,{})]}),(0,x.jsx)(t7,{size:"14",children:"Switch between a dark or light mode, or follow your system's settings."})]})}),i&&(0,x.jsx)(lh,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(t8,{children:(0,x.jsx)(ld.RdX,{})}),(0,x.jsx)(d8,{size:"20",className:"flex-1",children:"GPU"}),(0,x.jsx)(hV,{disabled:!s.canGpuRender,checked:s.canGpuRender&&s.isGpuEnabled,onCheckedChange:s.setIsGpuEnabled,size:"medium"})]}),(0,x.jsxs)(t7,{size:"14",children:["Enable features that require a GPU."," ",s.canGpuRender?"":"This device does not support GPU rendering."]})]})})]})}),(0,x.jsx)(dz,{className:"w-full"}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsx)(t8,{size:"16",weight:"bold",children:"Security"}),(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(t7,{size:"14",children:"Configure security preferences."}),(0,x.jsx)(lh,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(t8,{children:(0,x.jsx)(ld.RdX,{})}),(0,x.jsx)(d8,{size:"20",className:"flex-1",children:"Lock app"}),(0,x.jsx)(hV,{size:"medium",checked:o.autoLock,onCheckedChange:e=>a({autoLock:e})}),(0,x.jsxs)(hj,{disabled:!o.autoLock,value:String(o.autoLockTimeout),onChange:e=>{a({autoLockTimeout:Number(e.currentTarget.value)})},children:[(0,x.jsx)(hS,{value:OG(5),children:"5 minutes"}),(0,x.jsx)(hS,{value:OG(10),children:"10 minutes"}),(0,x.jsx)(hS,{value:OG(20),children:"20 minutes"}),(0,x.jsx)(hS,{value:OG(30),children:"30 minutes"}),(0,x.jsx)(hS,{value:OG(60),children:"1 hour"})]})]}),(0,x.jsx)(t7,{size:"14",children:"Automatically lock the app after a certain period of inactivity."})]})}),n]})]}),(0,x.jsx)(dz,{className:"w-full"}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsx)(t8,{size:"16",weight:"bold",children:"Privacy"}),(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(t7,{size:"14",children:"Configure privacy preferences. The app uses the third-party APIs listed below to improve the user experience. All third-party APIs are optional and can be toggled on or off."}),(0,x.jsx)(lh,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(t8,{children:(0,x.jsx)(ld.RdX,{})}),(0,x.jsx)(d8,{size:"20",className:"flex-1",children:"Sia Central"}),(0,x.jsx)(hV,{size:"medium",checked:o.siaCentral,onCheckedChange:e=>a({siaCentral:e})})]}),(0,x.jsx)(t7,{size:"14",children:"The app fetches Siacoin exchange rates from the Sia Central API."})]})})]})]}),(0,x.jsx)(dz,{className:"w-full"}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsx)(t8,{size:"16",weight:"bold",children:"Help"}),(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(t7,{size:"14",children:"Find information about the Sia software at our website, documentation site, and on Github. Join our active Discord community for discussion and help troubleshooting issues."}),(0,x.jsxs)("div",{className:"flex gap-4",children:[(0,x.jsxs)(fc,{href:Oq.website.index,target:"_blank",className:"flex items-center gap-1",children:[(0,x.jsx)(ld.lq1,{}),"Website"]}),(0,x.jsxs)(fc,{href:Oq.docs.index,target:"_blank",className:"flex items-center gap-1",children:[(0,x.jsx)(ld.RdX,{}),"Docs"]}),(0,x.jsxs)(fc,{href:Oq.github.index,target:"_blank",className:"flex items-center gap-1",children:[(0,x.jsx)(ld.Sfn,{}),"About"]}),(0,x.jsxs)(fc,{href:Oq.discord,target:"_blank",className:"flex items-center gap-1",children:[(0,x.jsx)(ld.b47,{}),"Discord"]})]})]})]})]})})}function OQ(e){let{peers:t,isLoading:r,connectPeer:n}=e;return(0,x.jsx)(jJ,{title:"Peers",actions:(0,x.jsx)(lc,{onClick:n,children:"Connect"}),isLoading:r,dataset:(null==t?void 0:t.map(e=>({type:"ip",hash:e})))||[]})}var O0=r(17335),O1=r.n(O0);function O2(e){let{label:t,columns:r,enabled:n,setColumnsVisible:i,setColumnsHidden:o}=e,a=0===O1()(r,n).length,s=O1()(r,n).length===r.length;return(0,x.jsxs)(dZ,{children:[(0,x.jsx)(fa,{children:t}),(0,x.jsxs)(dY,{children:[(0,x.jsx)(lc,{tip:"".concat(t,": show all"),icon:a?"contrast":"hover",variant:"ghost",onClick:e=>{e.stopPropagation(),i(r)},children:(0,x.jsx)(ld.xVB,{})}),(0,x.jsx)(lc,{icon:s?"contrast":"hover",tip:"".concat(t,": hide all"),variant:"ghost",onClick:e=>{e.stopPropagation(),o(r)},children:(0,x.jsx)(ld.pHg,{})})]})]})}function O4(e){let{open:t,params:r,trigger:n,onOpenChange:i}=e,{body:o,title:a,variant:s,action:l,onConfirm:u}=r||{},c=(0,SS.cI)(),d=(0,w.useCallback)(()=>{u&&u(),i(!1)},[u,i]);return(0,x.jsx)(cb,{title:a,trigger:n,open:t,onOpenChange:i,contentVariants:{className:"w-[400px]"},children:(0,x.jsx)("form",{onSubmit:c.handleSubmit(d),children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[o,(0,x.jsx)("div",{className:"flex gap-1 justify-end",children:(0,x.jsx)(j3,{variant:s,form:c,size:"small",children:l})})]})})})}function O3(e){let{name:t,peerCount:r,isSynced:n,nodeBlockHeight:i,connectPeer:o}=e;return(0,x.jsxs)("div",{className:"flex justify-between items-center",children:[(0,x.jsx)(t8,{font:"mono",weight:"bold",size:"20",children:t}),(0,x.jsxs)("div",{className:"flex items-center",children:[r?(0,x.jsxs)(lc,{className:"relative left-2 only:left-0",variant:"ghost",onClick:o,tip:"".concat(r," connected peers"),children:[(0,x.jsx)(t8,{color:"subtle",children:r.toLocaleString()}),(0,x.jsx)(ld.RK4,{})]}):null,i&&n?(0,x.jsx)(ll,{content:"Blockchain is synced",children:(0,x.jsx)("div",{className:"relative left-2",children:(0,x.jsxs)(lc,{variant:"ghost",state:"waiting",children:[(0,x.jsx)(t8,{color:"subtle",children:i.toLocaleString()}),(0,x.jsx)(t8,{color:"green",children:(0,x.jsx)(ld.Y3p,{})})]})})}):null]})]})}function O5(e){let{nodeBlockHeight:t,networkBlockHeight:r,moreThan100BlocksToSync:n,percent:i}=e;return(0,x.jsxs)("div",{className:"flex flex-col justify-between h-full mb-1",children:[(0,x.jsx)(fY,{variant:"accent",value:t&&r?t:0,max:r||1,className:""}),(0,x.jsxs)("div",{className:"flex justify-between mt-1.5",children:[(0,x.jsx)(t8,{color:"subtle",size:"10",children:"Syncing..."}),t&&r?n?(0,x.jsx)(t8,{color:"subtle",size:"10",children:"".concat(t.toLocaleString()," / ").concat(r.toLocaleString()," (").concat(i,"%)")}):(0,x.jsx)(t8,{color:"subtle",size:"10",children:"(".concat(i,"%)")}):null]})]})}function O6(e){let{name:t,peerCount:r,connectPeer:n,isSynced:i,syncPercent:o,nodeBlockHeight:a,estimatedBlockHeight:s,firstTimeSyncing:l,moreThan100BlocksToSync:u,children:c}=e;return(0,x.jsx)(pk,{rootProps:{openDelay:100,closeDelay:1e3},contentProps:{side:"right",align:"start",sideOffset:5,className:"!max-w-none"},trigger:(0,x.jsxs)("div",{className:"relative hover:scale-105 transition-transform",children:[i||100===o||0===o?null:(0,x.jsx)("div",{className:"absolute -bottom-2.5 w-full flex justify-center",children:(0,x.jsxs)(t8,{className:"bg-amber-500 py-px px-1 rounded-sm scale-75",size:"10",children:[o,"%"]})}),(0,x.jsx)(fh,{size:30})]}),children:(0,x.jsxs)("div",{className:"flex flex-col gap-2 px-1 pt-1 pb-2 w-[350px]",children:[(0,x.jsx)(O3,{nodeBlockHeight:a,isSynced:i,name:t,peerCount:r,connectPeer:n}),i?(0,x.jsx)(dz,{className:"w-full mb-0.5"}):(0,x.jsx)(O5,{percent:o,nodeBlockHeight:a,networkBlockHeight:s,moreThan100BlocksToSync:u}),l&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(t8,{color:"contrast",size:"14",children:"Welcome to Sia! The blockchain is syncing to the current network height. Depending on your system this process may take a while."}),(0,x.jsx)(dz,{className:"w-full mb-1"})]}),c]})})}function O8(e){let{testnetName:t}=e;return(0,x.jsxs)("div",{className:"flex gap-2 items-center justify-center py-2 px-3 bg-amber-600 dark:bg-amber-500",children:[(0,x.jsx)(t8,{color:"lo",children:(0,x.jsx)(ld.RdX,{})}),(0,x.jsxs)(t8,{size:"14",color:"lo",children:["You are on the ",t,"."]})]})}function O7(e){let{name:t,form:r,fields:n,size:i="small"}=e,o=n[t],{average:a,suggestion:s,units:l,decimalsLimitSc:u=6,decimalsLimitFiat:c=6}=o,{setValue:d,value:f,error:h}=SA({name:t,field:o,form:r});return(0,x.jsx)(j4,{title:o.title,name:t,form:r,children:(0,x.jsx)(hy,{name:t,size:i,sc:f,units:l,decimalsLimitSc:u,decimalsLimitFiat:c,error:h,changed:r.formState.dirtyFields[t],placeholder:s||a,onChange:e=>{d(e,!0)},onBlur:()=>{d(f,!0)}})})}function O9(e){let{name:t,form:r,fields:n,size:i="small"}=e,o=n[t],{placeholder:a,decimalsLimit:s=2,units:l}=o,{setValue:u,error:c,value:d}=SA({form:r,field:o,name:t});return(0,x.jsx)(j4,{title:o.title,name:t,form:r,wrap:!0,children:(0,x.jsx)(hh,{name:t,value:d,units:l,size:i,decimalsLimit:s,placeholder:a?new(hd())(a):void 0,state:c?"invalid":r.formState.dirtyFields[t]?"valid":"default",onChange:e=>{let t=void 0!==e?new(hd())(e):void 0;u(t,!0)},onBlur:()=>{u(d,!0)}})})}function Te(e){let{name:t,form:r,fields:n}=e,i=n[t],{placeholder:o}=i,{ref:a,onChange:s,onBlur:l,error:u}=SA({name:t,form:r,field:i});return(0,x.jsx)(j4,{title:i.title,actions:i.actions,name:t,form:r,children:(0,x.jsx)(fK,{ref:a,name:t,placeholder:o,readOnly:i.readOnly,onClick:i.onClick,state:u?"invalid":r.formState.dirtyFields[t]?"valid":"default",onChange:s,onBlur:l})})}function Tt(e){let{name:t,form:r,fields:n,size:i="medium",group:o=!0,children:a}=e,s=n[t],{setValue:l,value:u,error:c}=SA({name:t,field:s,form:r}),d=(0,x.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,x.jsx)(hV,{name:t,size:i,checked:u,state:c?"invalid":r.formState.dirtyFields[t]?"valid":"default",onCheckedChange:e=>{l(e,!0)},onBlur:()=>{l(u,!0)}}),a]});return o?(0,x.jsx)(j4,{title:s.title,name:t,form:r,children:d}):d}function Tr(e){let{name:t,form:r,fields:n,size:i="small",group:o=!0}=e,a=n[t],{options:s}=a,{ref:l,onChange:u,onBlur:c,error:d}=SA({name:t,form:r,field:a}),f=(0,x.jsx)(hj,{ref:l,name:t,size:i,state:d?"invalid":r.formState.dirtyFields[t]?"valid":"default",onChange:u,onBlur:c,children:null==s?void 0:s.map(e=>(0,x.jsx)(hS,{value:e.value,children:e.label},e.value))});return o?(0,x.jsx)(j4,{title:a.title,name:t,form:r,children:f}):f}var Tn=r(75652),Ti=r.n(Tn);ld.lg1,ld.eHR,ld.I$H,ld.KiD,ld.P5r,ld.CCF,ld.w9S,ld.EL$,ld.aPl,ld.wEY,ld.EOT,ld.kSc,ld.W$S,ld.lJ7,ld.ORH,ld.ka0,ld.BdP,ld.d19,ld.Mes,ld.VUg,ld.U_S,ld.T85;let To=e=>{let{__scopeTooltip:t,delayDuration:r=700,skipDelayDuration:n=300,disableHoverableContent:i=!1,children:o}=e,[a,s]=(0,w.useState)(!0),l=(0,w.useRef)(!1),u=(0,w.useRef)(0);return(0,w.useEffect)(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,w.createElement)(tz,{scope:t,isOpenDelayed:a,delayDuration:r,onOpen:(0,w.useCallback)(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:(0,w.useCallback)(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:(0,w.useCallback)(e=>{l.current=e},[]),disableHoverableContent:i},o)};function Ta(e){let{children:t}=e,[r,n]=(0,w.useState)(!1);return(0,w.useEffect)(()=>{n(!0)},[]),(0,x.jsx)("div",{children:r?t:null})}function Ts(e){let{className:t,passwordProtectRequestHooks:r,fallback:n,children:i,lockRoutes:o}=e;return(0,x.jsx)(Ta,{children:(0,x.jsx)(hm.kl,{fallback:n,children:(0,x.jsx)(mh,{attribute:"class",children:(0,x.jsx)(To,{children:(0,x.jsx)(hm.bW,{lockRoutes:o,passwordProtectRequestHooks:r,children:(0,x.jsxs)("div",{id:"root",className:t,children:[(0,x.jsx)(jg,{}),i]})})})})})})}var Tl=r(30898),Tu=r.n(Tl),Tc=r(92762);let Td=[];function Tf(e,t){let{columns:r,columnsDefaultVisible:n,defaultSortField:i,sortOptions:o,disabledCategories:a}={disabledCategories:Td,...t},[s,l]=(0,Tc.Z)("".concat(e,"/enabledColumns"),{defaultValue:n}),u=(0,w.useCallback)(e=>{l(t=>t.includes(e)?t.filter(t=>t!==e):t.concat(e))},[l]),c=(0,w.useCallback)(e=>{l(t=>Ti()([...t,...e]))},[l]),d=(0,w.useCallback)(e=>{l(t=>O1()(t,e))},[l]),f=(0,w.useCallback)(()=>{l(n)},[l,n]),h=(0,w.useMemo)(()=>r.filter(e=>{let t=null==a?void 0:a.includes(e.category||"");return!e.fixed&&!t}),[r,a]),p=(0,w.useMemo)(()=>r.filter(e=>{let t=e.fixed||s.includes(e.id),r=null==a?void 0:a.includes(e.category||"");return t&&!r}).map(e=>e.id),[r,s,a]),{sortField:m,sortDirection:v,setSortField:g,setSortDirection:y,toggleSort:b}=function(e,t){let{defaultSortField:r,sortOptions:n,enabledColumns:i}=t,[o,a]=(0,Tc.Z)("".concat(e,"/sortField"),{defaultValue:r}),[s,l]=(0,Tc.Z)("".concat(e,"/sortDirection"),{defaultValue:"desc"}),u=(0,w.useCallback)(e=>{if(o!==e){a(e),l("asc");return}l(e=>"desc"===e?"asc":"desc")},[o,a,l]),c=(0,w.useMemo)(()=>{if(!n)return[];let e=n.map(e=>e.id);return Tu()(e,i)},[n,i]);return{toggleSort:u,setSortDirection:l,setSortField:a,sortableColumns:c,sortField:o,sortDirection:s}}(e,{defaultSortField:i,sortOptions:o,enabledColumns:p}),x=(0,w.useMemo)(()=>{if(!o)return[];let e=o.map(e=>e.id);return Tu()(e,p)},[o,p]);return{configurableColumns:h,enabledColumns:p,toggleColumnVisibility:u,toggleSort:b,setSortDirection:y,setSortField:g,sortableColumns:x,sortField:m,setColumnsVisible:c,setColumnsHidden:d,sortDirection:v,resetDefaultColumnVisibility:f}}function Th(){let e=(0,Sn.useRouter)(),[t,r]=(0,w.useState)([]),n=(0,w.useCallback)(t=>{r(e=>{let r=e.filter(e=>e.id!==t.id);return r.concat(t)}),e.replace({query:{}})},[e,r]),i=(0,w.useCallback)(()=>{r([]),e.replace({query:{}})},[e,r]),o=(0,w.useCallback)(t=>{r(e=>e.filter(e=>e.id!==t)),e.replace({query:{}})},[e,r]),a=(0,w.useCallback)(()=>{t.length&&(r(e=>e.slice(0,-1)),e.replace({query:{}}))},[e,r,t]);return{filters:t,setFilter:n,removeFilter:o,removeLastFilter:a,resetFilters:i}}function Tp(e){let{dataset:t,filters:r,sortField:n,sortDirection:i}=e;return(0,w.useMemo)(()=>{if(!t)return null;let e=Object.entries(r).map(e=>{let[t,r]=e;return r}),o=e.length?t.filter(t=>{for(let r of e)if(!r.fn(t))return!1;return!0}):t;return[...o=o.sort((e,t)=>{let r=e[n],o=t[n];return"desc"===i?r instanceof hd()&&o instanceof hd()?r.lte(o)?1:-1:r<=o?1:-1:r instanceof hd()&&o instanceof hd()?r.gte(o)?1:-1:r>=o?1:-1})]},[t,r,n,i])}function Tm(){let e=(0,Sn.useRouter)(),[t,r]=(0,w.useState)([]),n=(0,w.useCallback)(()=>{let t={...e.query};delete t.limit,delete t.offset,e.replace({query:t})},[e]),i=(0,w.useCallback)(e=>{r(t=>{let r=t.filter(t=>t.id!==e.id);return r.concat(e)}),n()},[r,n]),o=(0,w.useCallback)(()=>{r([]),n()},[r,n]),a=(0,w.useCallback)(e=>{r(t=>t.filter(t=>t.id!==e)),n()},[r,n]),s=(0,w.useCallback)(()=>{t.length&&(r(e=>e.slice(0,-1)),n())},[t,r,n]);return{filters:t,setFilter:i,removeFilter:a,removeLastFilter:s,resetFilters:o}}new(hd())(0)},95753:function(e,t,r){"use strict";r.d(t,{bW:function(){return P},kl:function(){return U},gw:function(){return i},Tc:function(){return V},du:function(){return B},Hv:function(){return N},iv:function(){return F},Nf:function(){return I},mw:function(){return L},V1:function(){return D}});var n=r(79381);function i(e){return new Promise(t=>setTimeout(t,e))}var o=r(89644),a=r.n(o),s=r(2784);function l(e){return{...e,config:{...null==e?void 0:e.config}}}function u(e){return{...e,config:{...null==e?void 0:e.config}}}function c(e,t,r){return(null==r?void 0:r.api)||(null==t?void 0:t.api)||e.api}function d(e,t,r){var n,i;let o=function(e,t,r){var n,i,o,a;let s={"Content-Type":"application/json",...null===(i=t.config)||void 0===i?void 0:null===(n=i.axios)||void 0===n?void 0:n.headers,...null==r?void 0:null===(a=r.config)||void 0===a?void 0:null===(o=a.axios)||void 0===o?void 0:o.headers},l=c(e,t,r);return e.api===l&&e.password&&(s.Authorization="Basic "+btoa(":".concat(e.password))),s}(e,t,r);return{responseType:"json",...null===(n=t.config)||void 0===n?void 0:n.axios,...null==r?void 0:null===(i=r.config)||void 0===i?void 0:i.axios,headers:o}}function f(e,t,r,n){if(!t)return null;let i=(null==r?void 0:r.params)||{};if(n&&n.params&&(i={...i,...n.params}),!(t=function(e,t){if(e&&t){let r=Object.keys(t);for(let n of r){let r=String(t[n]);e.includes(":".concat(n))?e=e.replace(":".concat(n),r):e.includes("?")?e+="&".concat(n,"=").concat(encodeURIComponent(r)):e+="?".concat(n,"=").concat(encodeURIComponent(r))}}return e}(t,i)))return null;let o=c(e,r,n);return o===e.api?"".concat(o,"/api").concat(t):"".concat(o).concat(t)}function h(e,t,r,n){let i=c(e,r,n);return i===e.api?t.replace("".concat(i,"/api"),""):t.replace(i,"")}var p=r(52322),m=r(82876),v=r(92762);function g(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}let y=["geforce 320m","geforce 8600","geforce 8600m gt","geforce 8800 gs","geforce 8800 gt","geforce 9400","geforce 9400m g","geforce 9400m","geforce 9600m gt","geforce 9600m","geforce fx go5200","geforce gt 120","geforce gt 130","geforce gt 330m","geforce gtx 285","google swiftshader","intel g41","intel g45","intel gma 4500mhd","intel gma x3100","intel hd 3000","intel q45","legacy","mali-2","mali-3","mali-4","quadro fx 1500","quadro fx 4","quadro fx 5","radeon hd 2400","radeon hd 2600","radeon hd 4670","radeon hd 4850","radeon hd 4870","radeon hd 5670","radeon hd 5750","radeon hd 6290","radeon hd 6300","radeon hd 6310","radeon hd 6320","radeon hd 6490m","radeon hd 6630m","radeon hd 6750m","radeon hd 6770m","radeon hd 6970m","sgx 543","sgx543"];function b(e){return e=e.toLowerCase().replace(/.*angle ?\((.+)\)(?: on vulkan [0-9.]+)?$/i,"$1").replace(/\s(\d{1,2}gb|direct3d.+$)|\(r\)| \([^)]+\)$/g,"").replace(/(?:vulkan|opengl) \d+\.\d+(?:\.\d+)?(?: \((.*)\))?/,"$1")}let x="undefined"==typeof window,w=(()=>{if(x)return;let{userAgent:e,platform:t,maxTouchPoints:r}=window.navigator,n=/(iphone|ipod|ipad)/i.test(e),i="iPad"===t||"MacIntel"===t&&r>0&&!window.MSStream;return{isIpad:i,isMobile:/android/i.test(e)||n||i,isSafari12:/Version\/12.+Safari/.test(e)}})();class E extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}let j=[],S=[];function C(e){return null!=e}let k=({mobileTiers:e=[0,15,30,60],desktopTiers:t=[0,15,30,60],override:r={},glContext:n,failIfMajorPerformanceCaveat:i=!1,benchmarksURL:o="https://unpkg.com/detect-gpu@5.0.34/dist/benchmarks"}={})=>g(void 0,void 0,void 0,function*(){let a={};if(x)return{tier:0,type:"SSR"};let{isIpad:s=!!(null==w?void 0:w.isIpad),isMobile:l=!!(null==w?void 0:w.isMobile),screenSize:u=window.screen,loadBenchmarks:c=e=>g(void 0,void 0,void 0,function*(){let t=yield fetch(`${o}/${e}`).then(e=>e.json());if(4>parseInt(t.shift().split(".")[0],10))throw new E("Detect GPU benchmark data is out of date. Please update to version 4x");return t})}=r,{renderer:d}=r,f=(e,t,r,n,i)=>({device:i,fps:n,gpu:r,isMobile:l,tier:e,type:t}),h,p="";if(d)h=[d=b(d)];else{var m;let e=n||function(e,t=!1){let r={alpha:!1,antialias:!1,depth:!1,failIfMajorPerformanceCaveat:t,powerPreference:"high-performance",stencil:!1};e&&delete r.powerPreference;let n=window.document.createElement("canvas"),i=n.getContext("webgl",r)||n.getContext("experimental-webgl",r);return null!=i?i:void 0}(null==w?void 0:w.isSafari12,i);if(!e)return f(0,"WEBGL_UNSUPPORTED");let t=e.getExtension("WEBGL_debug_renderer_info");if(t&&(d=e.getParameter(t.UNMASKED_RENDERER_WEBGL)),!d)return f(1,"FALLBACK");p=d,h="apple gpu"===(m=d=b(d))?function(e,t,r){let n;if(!r)return[t];let i=function(e){let t=e.createShader(35633),r=e.createShader(35632),n=e.createProgram();if(!(r&&t&&n))return;e.shaderSource(t,"\n precision highp float;\n attribute vec3 aPosition;\n varying float vvv;\n void main() {\n vvv = 0.31622776601683794;\n gl_Position = vec4(aPosition, 1.0);\n }\n "),e.shaderSource(r,"\n precision highp float;\n varying float vvv;\n void main() {\n vec4 enc = vec4(1.0, 255.0, 65025.0, 16581375.0) * vvv;\n enc = fract(enc);\n enc -= enc.yzww * vec4(1.0 / 255.0, 1.0 / 255.0, 1.0 / 255.0, 0.0);\n gl_FragColor = enc;\n }\n "),e.compileShader(t),e.compileShader(r),e.attachShader(n,t),e.attachShader(n,r),e.linkProgram(n),e.detachShader(n,t),e.detachShader(n,r),e.deleteShader(t),e.deleteShader(r),e.useProgram(n);let i=e.createBuffer();e.bindBuffer(34962,i),e.bufferData(34962,new Float32Array([-1,-1,0,3,-1,0,-1,3,0]),35044);let o=e.getAttribLocation(n,"aPosition");e.vertexAttribPointer(o,3,5126,!1,0,0),e.enableVertexAttribArray(o),e.clearColor(1,1,1,1),e.clear(16384),e.viewport(0,0,1,1),e.drawArrays(4,0,3);let a=new Uint8Array(4);return e.readPixels(0,0,1,1,6408,5121,a),e.deleteProgram(n),e.deleteBuffer(i),a.join("")}(e),o="801621810",a="8016218135",s="80162181161",l=(null==w?void 0:w.isIpad)?[["a7",s,12],["a8",a,15],["a8x",a,15],["a9",a,15],["a9x",a,15],["a10",a,15],["a10x",a,15],["a12",o,15],["a12x",o,15],["a12z",o,15],["a14",o,15],["m1",o,15]]:[["a7",s,12],["a8",a,12],["a9",a,15],["a10",a,15],["a11",o,15],["a12",o,15],["a13",o,15],["a14",o,15]];return"80162181255"===i?n=l.filter(([,,e])=>e>=14):(n=l.filter(([,e])=>e===i)).length||(n=l),n.map(([e])=>`apple ${e} gpu`)}(e,m,l):[m]}let v=(yield Promise.all(h.map(function(e){var t;return g(this,void 0,void 0,function*(){let r;let n=(e=>{let t=l?["adreno","apple","mali-t","mali","nvidia","powervr","samsung"]:["intel","apple","amd","radeon","nvidia","geforce"];for(let r of t)if(e.includes(r))return r})(e);if(!n)return;let i=`${l?"m":"d"}-${n}${s?"-ipad":""}.json`,o=a[i]=null!==(t=a[i])&&void 0!==t?t:c(i);try{r=yield o}catch(e){if(e instanceof E)throw e;return}let d=function(e){var t;let r=(e=e.replace(/\([^)]+\)/,"")).match(/\d+/)||e.match(/(\W|^)([A-Za-z]{1,3})(\W|$)/g);return null!==(t=null==r?void 0:r.join("").replace(/\W|amd/g,""))&&void 0!==t?t:""}(e),f=r.filter(([,e])=>e===d);f.length||(f=r.filter(([t])=>t.includes(e)));let h=f.length;if(0===h)return;let p=e.split(/[.,()\[\]/\s]/g).sort().filter((e,t,r)=>0===t||e!==r[t-1]).join(" "),m,[v,,,,g]=h>1?f.map(e=>[e,function(e,t){if(e===t)return 0;let r=e;e.length>t.length&&(e=t,t=r);let n=e.length,i=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-i);)n--,i--;let o,a=0;for(;au?l>u?u+1:l:l>s?s+1:l;return u}(p,e[2])]).sort(([,e],[,t])=>e-t)[0][0]:f[0],y=Number.MAX_VALUE,{devicePixelRatio:b}=window,x=u.width*b*u.height*b;for(let e of g){let[t,r]=e,n=t*r,i=Math.abs(x-n);ie===r?t-n:e-r);if(!v.length){let e=y.find(e=>d.includes(e));return e?f(0,"BLOCKLISTED",e):f(1,"FALLBACK",`${d} (${p})`)}let[,k,A,O]=v[0];if(-1===k)return f(0,"BLOCKLISTED",A,k,O);let T=l?e:t,_=0;for(let e=0;e=T[e]&&(_=e);return f(_,"BENCHMARK",A,k,O)}),A=(0,s.createContext)({}),O=()=>(0,s.useContext)(A);function T(e){let{children:t}=e,r=function(){let[e,t]=(0,s.useState)({}),r=(0,s.useCallback)((e,r)=>{t(t=>({...t,[e]:{key:e,...r}}))},[t]),n=(0,s.useCallback)(e=>{t(t=>(delete t[e],{...t}))},[t]),i=(0,s.useCallback)(()=>{t({})},[t]),o=(0,s.useMemo)(()=>Object.entries(e).map(e=>e[1]),[e]);return{setWorkflow:r,removeWorkflow:n,resetWorkflows:i,workflows:o}}();return(0,p.jsx)(A.Provider,{value:r,children:t})}let _=[{id:"usd",label:"USD",prefix:"$",fixed:2},{id:"cad",label:"CAD",prefix:"$",fixed:2},{id:"eur",label:"EUR",prefix:"€",fixed:2},{id:"gbp",label:"GBP",prefix:"\xa3",fixed:2},{id:"jpy",label:"JPY",prefix:"\xa5",fixed:2},{id:"aud",label:"AUD",prefix:"$",fixed:2},{id:"rub",label:"RUB",prefix:"₽",fixed:2},{id:"cny",label:"CNY",prefix:"\xa5",fixed:2},{id:"btc",label:"BTC",prefix:"₿",fixed:6},{id:"eth",label:"ETH",prefix:"Ξ",fixed:6}],M={api:"",allowCustomApi:!1,siaCentral:!0,password:void 0,currency:_[0],currencyDisplay:"bothPreferSc",recentApis:{},autoLock:!1,autoLockTimeout:6e5},R=(0,s.createContext)({}),N=()=>(0,s.useContext)(R);function P(e){let{children:t,...r}=e,i=function(e){let{passwordProtectRequestHooks:t,lockRoutes:r,defaultSettings:i}=e,o=(0,s.useMemo)(()=>({...M,...i}),[i]),[a,l]=(0,v.Z)("v0/settings",{defaultValue:o});(0,s.useEffect)(()=>{l(e=>({...o,...e}))},[]);let u=(0,s.useMemo)(()=>({...o,...a}),[a,o]),{resetWorkflows:c}=O(),d=(0,s.useCallback)(e=>{l(t=>({...t,...e}))},[l]),f=(0,s.useCallback)(e=>{let t=_.find(t=>t.id===e);t&&d({currency:t})},[d]),h=(0,m.useRouter)(),p=(0,m.usePathname)(),[g,y]=(0,s.useState)({}),b=(0,s.useCallback)((e,t)=>{y(r=>({...r,[e]:t}))},[y]),x=(0,s.useCallback)(()=>{for(let[e,t]of(r&&h.push("".concat(r.login,"?prev=").concat([r.login].includes(p)?r.home:p)),d({password:""}),c(),(0,n.JG)(()=>!0,void 0,{revalidate:!1}),Object.entries(g)))t&&t()},[h,r,d,c,g,p]),w=function(e){let t=(0,m.usePathname)();return![e.login].includes(t)}({login:(null==r?void 0:r.login)||"/login"}),E=(0,s.useMemo)(()=>!!u.password,[u]),j=function(){let e=function(){var e,t;let r=null===(e=(t=window).matchMedia)||void 0===e?void 0:e.call(t,"(prefers-reduced-motion: reduce)");return!r||!!r.matches}(),[t,r]=(0,s.useState)(!1),[n,i]=(0,s.useState)(!1),[{isGpuEnabled:o,hasUserSet:a},l]=(0,v.Z)("v1/gpuFeatures",{defaultValue:{isGpuEnabled:!e,hasUserSet:!1}}),u=(0,s.useCallback)(function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];l(r=>({...r,isGpuEnabled:e,hasUserSet:t}))},[l]),c=(0,s.useCallback)(async()=>{let e=!1;{let t=await k();console.log("GPU",t),e=t.tier>0,!a&&t.tier<2&&u(!1,!1)}i(e),r(!0)},[i,u,a]);return(0,s.useEffect)(()=>{c()},[]),{hasCheckedGpu:t,canGpuRender:n,isGpuEnabled:o,shouldRender:n&&o,setCanGpuRender:i,setIsGpuEnabled:u}}();return{settings:u,setSettings:d,setCurrency:f,currencyOptions:_,gpu:j,lock:x,isUnlockedAndAuthedRoute:E&&w,passwordProtectRequestHooks:t,setOnLockCallback:b}}(r);return(0,p.jsx)(R.Provider,{value:i,children:t})}function L(e,t){let{setWorkflow:r,removeWorkflow:i}=O(),{mutate:o}=(0,n.kY)(),{settings:s}=N(),c=l(e);return{post:async e=>{let n=u(e);try{let l;let u=d(s,c,n),p=f(s,c.route,c,n);if(!p)throw Error("No route");"payload"in n&&(l=n.payload);let m="".concat(p).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=h(s,p,e,n);r(m,{path:v,payload:l});let g=await a().post(p,l,u);return t&&await t(function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,i=arguments.length>2?arguments[2]:void 0;return o(r=>{if("string"!=typeof r)return!1;let i=h(s,r,e,n);return t(i)},r,i)},n,g),i(m),{status:g.status,data:g.data}}catch(e){var l,p;return{status:null===(l=e.response)||void 0===l?void 0:l.status,error:(null===(p=e.response)||void 0===p?void 0:p.data)||e.message}}}}}function D(e,t){let{mutate:r}=(0,n.kY)(),{settings:i}=N(),{setWorkflow:o,removeWorkflow:s}=O(),c=l(e);return{put:async e=>{let n=u(e);try{let l;let u=d(i,c,n),p=f(i,c.route,c,n);if(!p)throw Error("No route");"payload"in n&&(l=n.payload);let m="".concat(p).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=h(i,p,e,n);o(m,{path:v,payload:l});let g=await a().put(p,l,u);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return r(r=>{if("string"!=typeof r)return!1;let o=h(i,r,e,n);return t(o)},o,a)},n,g),s(m),{status:g.status,data:g.data}}catch(e){var l,p;return{status:null===(l=e.response)||void 0===l?void 0:l.status,error:(null===(p=e.response)||void 0===p?void 0:p.data)||e.message}}}}}function I(e){var t,r,i;let o=(0,s.useMemo)(()=>({...e,config:{...null==e?void 0:e.config}}),[e]),{settings:l,passwordProtectRequestHooks:u}=N(),c=f(l,o.route,o,void 0);return(0,n.ZP)((r=e.standalone?"".concat(e.standalone,"/").concat(c):c,i=o.disabled||u&&!l.password,!r||i?null:r),async()=>{if(!o.route)throw Error("No route");let e=d(l,o,void 0);if(!c)throw Error("No route");try{let t=await a().get(c,e);return t.data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=o.config)||void 0===t?void 0:t.swr)}function F(e,t){let{mutate:r}=(0,n.kY)(),{settings:i}=N(),{setWorkflow:o,removeWorkflow:s}=O(),c=l(e);return{delete:async e=>{let n=u(e);try{let l=d(i,c,n),u=f(i,c.route,c,n);if(!u)throw Error("No route");let p=h(i,u,e,n);o(u,{path:p});let m=await a().delete(u,l);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return r(r=>{if("string"!=typeof r)return!1;let o=h(i,r,e,n);return t(o)},o,a)},n,m),s(u),{status:m.status,data:m.data}}catch(e){var l,p;return{status:null===(l=e.response)||void 0===l?void 0:l.status,error:(null===(p=e.response)||void 0===p?void 0:p.data)||e.message}}}}}function V(){return Math.round((new Date().getTime()-14336e8)/6e5)}function B(){return Math.round((new Date().getTime()-16736e8)/6e5)}function U(e){let{fallback:t,cacheProvider:r,children:i}=e;return(0,p.jsx)(T,{children:(0,p.jsx)(n.J$,{value:{fallback:t||{},provider:r},children:i})})}},20876:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r.d(t,{aXP:function(){return tp},eHR:function(){return tx},xHM:function(){return tw},rW0:function(){return tE},osk:function(){return tj},JaG:function(){return tS},Ya6:function(){return tk},EMN:function(){return tN},bdU:function(){return tP},VUy:function(){return tL},Cp0:function(){return tD},kqg:function(){return tI},Mes:function(){return tF},Y3p:function(){return tq},Z$8:function(){return tW},tEK:function(){return tG},PcV:function(){return tY},QN4:function(){return tZ},Jsc:function(){return tX},wEY:function(){return tQ},olJ:function(){return t0},KiD:function(){return t2},Jrl:function(){return t5},aPl:function(){return t6},kBK:function(){return nC},Bpb:function(){return t7},iG7:function(){return rn},dr6:function(){return ri},d19:function(){return ro},w9S:function(){return ra},Hb6:function(){return ru},CCF:function(){return rc},UG6:function(){return nk},lq1:function(){return rf},Pj_:function(){return nT},K2o:function(){return nS},EL$:function(){return rp},BdP:function(){return rb},P5r:function(){return rx},RdX:function(){return rw},U_S:function(){return rE},V8Q:function(){return rk},POp:function(){return rA},kSc:function(){return rO},mBM:function(){return nj},Lur:function(){return rR},b47:function(){return rN},Sfn:function(){return rP},W$S:function(){return rB},T85:function(){return rU},Ckx:function(){return rz},EOT:function(){return r$},fDA:function(){return rH},RK4:function(){return rq},XJM:function(){return rX},j7C:function(){return rJ},ka0:function(){return rK},VUg:function(){return r2},wGX:function(){return r4},nt4:function(){return r3},Wet:function(){return r6},$Iz:function(){return ne},fwm:function(){return nM},shL:function(){return nt},hiv:function(){return nr},sZp:function(){return ni},lJ7:function(){return nA},ORH:function(){return nl},VmF:function(){return nu},_Gh:function(){return nc},Fhn:function(){return nO},R$y:function(){return n_},xVB:function(){return nm},pHg:function(){return nv},I$H:function(){return ng},oaN:function(){return nE},qdM:function(){return ny},lg1:function(){return nx}});var a,s,l,u,c,d,f,h,p,m,v,g,y,b,x,w,E,j,S,C,k,A,O,T,_,M,R,N,P,L,D,I,F,V,B,U,z,H,$,W,q,G,Z,Y,X,K,J,Q,ee,et,er,en,ei,eo,ea,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,eb,ex,ew,eE,ej,eS,eC,ek,eA,eO,eT,e_,eM,eR,eN,eP,eL,eD,eI,eF,eV,eB,eU,ez,eH,e$,eW,eq,eG,eZ,eY,eX,eK,eJ,eQ,e0,e1,e2,e4,e3,e5,e6,e8,e7,e9,te=["width","height","viewBox"],tt=["tabindex"],tr={focusable:"false",preserveAspectRatio:"xMidYMid meet"},tn=r(13980),ti=r.n(tn),to=r(2784);function ta(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ts(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var tc=["className","children","tabIndex"],td=["tabindex"],tf=to.forwardRef(function(e,t){var r=e.className,n=e.children,a=e.tabIndex,s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,r=e.height,n=e.viewBox,a=void 0===n?"0 0 ".concat(t," ").concat(r):n,s=o(e,te),l=s.tabindex,u=o(s,tt),c=i(i(i({},tr),u),{},{width:t,height:r,viewBox:a});return c["aria-label"]||c["aria-labelledby"]||c.title?(c.role="img",null!=l&&(c.focusable="true",c.tabindex=l)):c["aria-hidden"]=!0,c}(ts(ts({},tu(e,tc)),{},{tabindex:a})),l=s.tabindex,u=tu(s,td);return r&&(u.className=r),null!=l&&(u.tabIndex=l),t&&(u.ref=t),to.createElement("svg",u,n)});tf.displayName="Icon",tf.propTypes={"aria-hidden":ti().string,"aria-label":ti().string,"aria-labelledby":ti().string,children:ti().node,className:ti().string,height:ti().oneOfType([ti().number,ti().string]),preserveAspectRatio:ti().string,tabIndex:ti().string,viewBox:ti().string,width:ti().oneOfType([ti().number,ti().string]),xmlns:ti().string},tf.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"};var th=["children"],tp=to.forwardRef(function(e,t){var r=e.children,n=tu(e,th);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),a||(a=to.createElement("path",{d:"M17 15L17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z"})),r)}),tm=["children"],tv=["children"],tg=["children"],ty=["children"],tb=["children"],tx=to.forwardRef(function(e,t){var r=e.children,n=tu(e,tm);return to.createElement(tf,tl({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),s||(s=to.createElement("path",{d:"M14 19H18V21H14z"})),l||(l=to.createElement("path",{d:"M6,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V2ZM24,28H8V16H24Zm0-14H8V10H24ZM8,8V4H24V8Z"})),r)}),tw=to.forwardRef(function(e,t){var r=e.children,n=tu(e,tv);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),u||(u=to.createElement("path",{d:"M22 26L22 24 9.41 24 26 7.41 24.59 6 8 22.59 8 10 6 10 6 26 22 26z"})),r)}),tE=to.forwardRef(function(e,t){var r=e.children,n=tu(e,tg);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),c||(c=to.createElement("path",{d:"M10 6L10 8 22.59 8 6 24.59 7.41 26 24 9.41 24 22 26 22 26 6 10 6z"})),r)}),tj=to.forwardRef(function(e,t){var r=e.children,n=tu(e,ty);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),d||(d=to.createElement("path",{d:"M7.2,2.3c-1,4.4,1.7,8.7,6.1,9.8c0.1,0,0.1,0,0.2,0c-1.1,1.2-2.7,1.8-4.3,1.8c-0.1,0-0.2,0-0.2,0C5.6,13.8,3,11,3.2,7.7 C3.2,5.3,4.8,3.1,7.2,2.3 M8,1L8,1C4.1,1.6,1.5,5.3,2.1,9.1c0.6,3.3,3.4,5.8,6.8,5.9c0.1,0,0.2,0,0.3,0c2.3,0,4.4-1.1,5.8-3 c0.2-0.2,0.1-0.6-0.1-0.7c-0.1-0.1-0.2-0.1-0.3-0.1c-3.9-0.3-6.7-3.8-6.4-7.6C8.3,3,8.4,2.4,8.6,1.8c0.1-0.3,0-0.6-0.3-0.7 C8.1,1,8.1,1,8,1z"})),r)}),tS=to.forwardRef(function(e,t){var r=e.children,n=tu(e,tb);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),f||(f=to.createElement("path",{d:"M7.5 1H8.5V3.5H7.5z"})),h||(h=to.createElement("path",{d:"M10.8 3.4H13.3V4.4H10.8z",transform:"rotate(-45.001 12.074 3.922)"})),p||(p=to.createElement("path",{d:"M12.5 7.5H15V8.5H12.5z"})),m||(m=to.createElement("path",{d:"M11.6 10.8H12.6V13.3H11.6z",transform:"rotate(-45.001 12.077 12.075)"})),v||(v=to.createElement("path",{d:"M7.5 12.5H8.5V15H7.5z"})),g||(g=to.createElement("path",{d:"M2.7 11.6H5.2V12.6H2.7z",transform:"rotate(-45.001 3.929 12.078)"})),y||(y=to.createElement("path",{d:"M1 7.5H3.5V8.5H1z"})),b||(b=to.createElement("path",{d:"M3.4 2.7H4.4V5.2H3.4z",transform:"rotate(-45.001 3.926 3.925)"})),x||(x=to.createElement("path",{d:"M8,6c1.1,0,2,0.9,2,2s-0.9,2-2,2S6,9.1,6,8S6.9,6,8,6 M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z"})),r)}),tC=["children"],tk=to.forwardRef(function(e,t){var r=e.children,n=tu(e,tC);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),w||(w=to.createElement("path",{d:"M16,30a1.06,1.06,0,0,1-.42-.09A1,1,0,0,1,15,29V18.41L8.41,25,7,23.59,14.59,16,7,8.41,8.41,7,15,13.59V3a1,1,0,0,1,.58-.91,1,1,0,0,1,1.07.15l7,6A1,1,0,0,1,24,9a1,1,0,0,1-.29.75L17.41,16l6.3,6.29A1,1,0,0,1,24,23a1,1,0,0,1-.35.72l-7,6A1,1,0,0,1,16,30Zm1-11.59v8.42l4.53-3.89ZM17,5.17v8.42l4.53-4.53Z"})),r)}),tA=["children"],tO=["children"],tT=["children"],t_=["children"],tM=["children"],tR=["children"],tN=to.forwardRef(function(e,t){var r=e.children,n=tu(e,tA);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),E||(E=to.createElement("path",{d:"M24 12L16 22 8 12z"})),r)}),tP=to.forwardRef(function(e,t){var r=e.children,n=tu(e,tO);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),j||(j=to.createElement("path",{d:"M20 24L10 16 20 8z"})),r)}),tL=to.forwardRef(function(e,t){var r=e.children,n=tu(e,tT);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),S||(S=to.createElement("path",{d:"M12 8L22 16 12 24z"})),r)}),tD=to.forwardRef(function(e,t){var r=e.children,n=tu(e,t_);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),C||(C=to.createElement("path",{d:"M24 24L16 32 8 24zM8 8L16 0 24 8z"})),r)}),tI=to.forwardRef(function(e,t){var r=e.children,n=tu(e,tM);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),k||(k=to.createElement("path",{d:"M8 20L16 10 24 20z"})),r)}),tF=to.forwardRef(function(e,t){var r=e.children,n=tu(e,tR);return to.createElement(tf,tl({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),A||(A=to.createElement("path",{d:"M30,15H27.9492A12.0071,12.0071,0,0,0,17,4.0508V2H15V4.0508A12.0071,12.0071,0,0,0,4.0508,15H2v2H4.0508A12.0071,12.0071,0,0,0,15,27.9492V30h2V27.9492A12.0071,12.0071,0,0,0,27.9492,17H30ZM17,25.9492V22H15v3.9492A10.0166,10.0166,0,0,1,6.0508,17H10V15H6.0508A10.0166,10.0166,0,0,1,15,6.0508V10h2V6.0508A10.0166,10.0166,0,0,1,25.9492,15H22v2h3.9492A10.0166,10.0166,0,0,1,17,25.9492Z"})),r)}),tV=["children"],tB=["children"],tU=["children"],tz=["children"],tH=["children"],t$=["children"],tW=to.forwardRef(function(e,t){var r=e.children,n=tu(e,tV);return to.createElement(tf,tl({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),O||(O=to.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"})),T||(T=to.createElement("path",{fill:"none",d:"M14 21.591L9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z","data-icon-path":"inner-path"})),r)}),tq=to.forwardRef(function(e,t){var r=e.children,n=tu(e,tB);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),_||(_=to.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"})),M||(M=to.createElement("path",{d:"M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z","data-icon-path":"inner-path",opacity:"0"})),r)}),tG=to.forwardRef(function(e,t){var r=e.children,n=tu(e,tU);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),R||(R=to.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),N||(N=to.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),r)}),tZ=to.forwardRef(function(e,t){var r=e.children,n=tu(e,tz);return to.createElement(tf,tl({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),P||(P=to.createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),r)}),tY=to.forwardRef(function(e,t){var r=e.children,n=tu(e,tH);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),L||(L=to.createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),r)}),tX=to.forwardRef(function(e,t){var r=e.children,n=tu(e,t$);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),D||(D=to.createElement("path",{d:"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12 S22.6,28,16,28z"})),I||(I=to.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),r)}),tK=["children"],tJ=["children"],tQ=to.forwardRef(function(e,t){var r=e.children,n=tu(e,tK);return to.createElement(tf,tl({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),F||(F=to.createElement("path",{d:"M31 16L24 23 22.59 21.59 28.17 16 22.59 10.41 24 9 31 16zM1 16L8 9 9.41 10.41 3.83 16 9.41 21.59 8 23 1 16z"})),V||(V=to.createElement("path",{d:"M5.91 15H26.080000000000002V17H5.91z",transform:"rotate(-75 15.996 16)"})),r)}),t0=to.forwardRef(function(e,t){var r=e.children,n=tu(e,tJ);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),B||(B=to.createElement("path",{d:"M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z"})),U||(U=to.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),r)}),t1=["children"],t2=to.forwardRef(function(e,t){var r=e.children,n=tu(e,t1);return to.createElement(tf,tl({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),z||(z=to.createElement("path",{d:"M21,12V10H17V7H15v3H13a2.002,2.002,0,0,0-2,2v3a2.002,2.002,0,0,0,2,2h6v3H11v2h4v3h2V22h2a2.0023,2.0023,0,0,0,2-2V17a2.002,2.002,0,0,0-2-2H13V12Z"})),H||(H=to.createElement("path",{d:"M16,4A12,12,0,1,1,4,16,12.0353,12.0353,0,0,1,16,4m0-2A14,14,0,1,0,30,16,14.0412,14.0412,0,0,0,16,2Z"})),r)}),t4=["children"],t3=["children"],t5=to.forwardRef(function(e,t){var r=e.children,n=tu(e,t4);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),$||($=to.createElement("path",{d:"M12 12H14V24H12zM18 12H20V24H18z"})),W||(W=to.createElement("path",{d:"M4 6V8H6V28a2 2 0 002 2H24a2 2 0 002-2V8h2V6zM8 28V8H24V28zM12 2H20V4H12z"})),r)}),t6=to.forwardRef(function(e,t){var r=e.children,n=tu(e,t3);return to.createElement(tf,tl({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),q||(q=to.createElement("path",{d:"M8 4V8H4V4H8M2 2v8h8V2zM18 7v4H14V7h4M12 5v8h8V5zM8 16v4H4V16H8M2 14v8h8V14z"})),G||(G=to.createElement("path",{d:"M22,10v6H16v6H10v8H30V10Zm-4,8h4v4H18ZM16,28H12V24h4Zm6,0H18V24h4Zm6,0H24V24h4Zm0-6H24V18h4Zm-4-6V12h4v4Z"})),r)}),t8=["children"],t7=to.forwardRef(function(e,t){var r=e.children,n=tu(e,t8);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),Z||(Z=to.createElement("circle",{cx:"16",cy:"16",r:"8"})),r)}),t9=["children"],re=["children"],rt=["children"],rr=["children"],rn=to.forwardRef(function(e,t){var r=e.children,n=tu(e,t9);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),Y||(Y=to.createElement("path",{d:"M10 6H14V10H10zM18 6H22V10H18zM10 14H14V18H10zM18 14H22V18H18zM10 22H14V26H10zM18 22H22V26H18z"})),r)}),ri=to.forwardRef(function(e,t){var r=e.children,n=tu(e,re);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),X||(X=to.createElement("path",{d:"M2 26H30V28H2zM25.4 9c.8-.8.8-2 0-2.8 0 0 0 0 0 0l-3.6-3.6c-.8-.8-2-.8-2.8 0 0 0 0 0 0 0l-15 15V24h6.4L25.4 9zM20.4 4L24 7.6l-3 3L17.4 7 20.4 4zM6 22v-3.6l10-10 3.6 3.6-10 10H6z"})),r)}),ro=to.forwardRef(function(e,t){var r=e.children,n=tu(e,rt);return to.createElement(tf,tl({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),K||(K=to.createElement("path",{d:"M21,30a8,8,0,1,1,8-8A8,8,0,0,1,21,30Zm0-14a6,6,0,1,0,6,6A6,6,0,0,0,21,16Z"})),J||(J=to.createElement("path",{d:"M22.59 25L20 22.41 20 18 22 18 22 21.59 24 23.59 22.59 25z"})),Q||(Q=to.createElement("path",{d:"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z"})),r)}),ra=to.forwardRef(function(e,t){var r=e.children,n=tu(e,rr);return to.createElement(tf,tl({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ee||(ee=to.createElement("path",{d:"M18 31h2V29a1.0006 1.0006 0 011-1h6a1.0006 1.0006 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 25a4 4 0 114-4A4.0039 4.0039 0 0124 25zm0-6a2 2 0 102 2A2.0027 2.0027 0 0024 19zM2 31H4V29a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 25a4 4 0 114-4A4.0042 4.0042 0 018 25zm0-6a2 2 0 102 2A2.0023 2.0023 0 008 19zM18 16h2V14a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 10a4 4 0 114-4A4.0042 4.0042 0 0124 10zm0-6a2 2 0 102 2A2.0023 2.0023 0 0024 4zM2 16H4V14a1.0013 1.0013 0 011-1h6a1.0013 1.0013 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 10a4 4 0 114-4A4.0045 4.0045 0 018 10zM8 4a2 2 0 102 2A2.002 2.002 0 008 4z"})),r)}),rs=["children"],rl=["children"],ru=to.forwardRef(function(e,t){var r=e.children,n=tu(e,rs);return to.createElement(tf,tl({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),et||(et=to.createElement("path",{d:"M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"})),r)}),rc=to.forwardRef(function(e,t){var r=e.children,n=tu(e,rl);return to.createElement(tf,tl({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),er||(er=to.createElement("path",{d:"M2 28H30V30H2zM27 11a1 1 0 001-1V7a1 1 0 00-.66-.94l-11-4a1 1 0 00-.68 0l-11 4A1 1 0 004 7v3a1 1 0 001 1H6V24H4v2H28V24H26V11zM6 7.7L16 4.06 26 7.7V9H6zM18 24H14V11h4zM8 11h4V24H8zM24 24H20V11h4z"})),r)}),rd=["children"],rf=to.forwardRef(function(e,t){var r=e.children,n=tu(e,rd);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),en||(en=to.createElement("path",{d:"M14,4a7,7,0,1,1-7,7,7,7,0,0,1,7-7m0-2a9,9,0,1,0,9,9A9,9,0,0,0,14,2Z"})),ei||(ei=to.createElement("path",{d:"M28,11a13.9563,13.9563,0,0,0-4.1051-9.8949L22.4813,2.5187A11.9944,11.9944,0,0,1,5.5568,19.5194l-.0381-.0381L4.1051,20.8949A13.9563,13.9563,0,0,0,14,25v3H10v2H20V28H16V24.84A14.0094,14.0094,0,0,0,28,11Z"})),r)}),rh=["children"],rp=to.forwardRef(function(e,t){var r=e.children,n=tu(e,rh);return to.createElement(tf,tl({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eo||(eo=to.createElement("path",{d:"M16,.0005,4,5.9784V20.0443a12,12,0,0,0,24,0V5.9784Zm6.83,27.3138L16,23.9119V26.14l5.0361,2.5088A10.0025,10.0025,0,0,1,6,20.0443V7.21L16,2.2284,26,7.21v3.75L16,5.9783V8.2062l10,4.9816v3.75L16,11.9562v2.2279l10,4.9815v.8787a9.9045,9.9045,0,0,1-.37,2.6871L16,17.934v2.2279l8.8952,4.4313A10.0252,10.0252,0,0,1,22.83,27.3143Z"})),r)}),rm=["children"],rv=["children"],rg=["children"],ry=["children"],rb=to.forwardRef(function(e,t){var r=e.children,n=tu(e,rm);return to.createElement(tf,tl({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ea||(ea=to.createElement("path",{d:"M11 24H21V26H11zM13 28H19V30H13zM16 2A10 10 0 006 12a9.19 9.19 0 003.46 7.62c1 .93 1.54 1.46 1.54 2.38h2c0-1.84-1.11-2.87-2.19-3.86A7.2 7.2 0 018 12a8 8 0 0116 0 7.2 7.2 0 01-2.82 6.14c-1.07 1-2.18 2-2.18 3.86h2c0-.92.53-1.45 1.54-2.39A9.18 9.18 0 0026 12 10 10 0 0016 2z"})),r)}),rx=to.forwardRef(function(e,t){var r=e.children,n=tu(e,rv);return to.createElement(tf,tl({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),es||(es=to.createElement("path",{d:"M29.53,6.15a1,1,0,0,0-1,0L20,10.38V7a1,1,0,0,0-1.45-.89L10,10.38V3A1,1,0,0,0,9,2H3A1,1,0,0,0,2,3V28H30V7A1,1,0,0,0,29.53,6.15ZM22,26H18V19h4Zm6,0H24V18a1,1,0,0,0-1-1H17a1,1,0,0,0-1,1v8H4V4H8v9.62l10-5v5l10-5Z"})),r)}),rw=to.forwardRef(function(e,t){var r=e.children,n=tu(e,rg);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),el||(el=to.createElement("path",{d:"M8.5 11L8.5 6.5 6.5 6.5 6.5 7.5 7.5 7.5 7.5 11 6 11 6 12 10 12 10 11zM8 3.5c-.4 0-.8.3-.8.8S7.6 5 8 5c.4 0 .8-.3.8-.8S8.4 3.5 8 3.5z"})),eu||(eu=to.createElement("path",{d:"M8,15c-3.9,0-7-3.1-7-7s3.1-7,7-7s7,3.1,7,7S11.9,15,8,15z M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z"})),r)}),rE=to.forwardRef(function(e,t){var r=e.children,n=tu(e,ry);return to.createElement(tf,tl({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ec||(ec=to.createElement("path",{d:"M29.88,15.52l-6-11A1,1,0,0,0,23,4H9a1,1,0,0,0-.88.52l-6,11a1,1,0,0,0,0,1l6,11A1,1,0,0,0,9,28H23a1,1,0,0,0,.88-.52l6-11A1,1,0,0,0,29.88,15.52ZM22.93,7l4.39,8h-9.5ZM16,14.14,10.82,6H21.18ZM9.07,7l5.11,8H4.68ZM4.68,17h9.5L9.07,25ZM16,17.86,21.18,26H10.82ZM22.93,25l-5.11-8h9.5Z"})),r)}),rj=["children"],rS=["children"],rC=["children"],rk=to.forwardRef(function(e,t){var r=e.children,n=tu(e,rj);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ed||(ed=to.createElement("path",{d:"M13,14H3c-0.6,0-1-0.4-1-1V3c0-0.6,0.4-1,1-1h5v1H3v10h10V8h1v5C14,13.6,13.6,14,13,14z"})),ef||(ef=to.createElement("path",{d:"M10 1L10 2 13.3 2 9 6.3 9.7 7 14 2.7 14 6 15 6 15 1z"})),r)}),rA=to.forwardRef(function(e,t){var r=e.children,n=tu(e,rS);return to.createElement(tf,tl({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eh||(eh=to.createElement("path",{d:"M29.25,6.76a6,6,0,0,0-8.5,0l1.42,1.42a4,4,0,1,1,5.67,5.67l-8,8a4,4,0,1,1-5.67-5.66l1.41-1.42-1.41-1.42-1.42,1.42a6,6,0,0,0,0,8.5A6,6,0,0,0,17,25a6,6,0,0,0,4.27-1.76l8-8A6,6,0,0,0,29.25,6.76Z"})),ep||(ep=to.createElement("path",{d:"M4.19,24.82a4,4,0,0,1,0-5.67l8-8a4,4,0,0,1,5.67,0A3.94,3.94,0,0,1,19,14a4,4,0,0,1-1.17,2.85L15.71,19l1.42,1.42,2.12-2.12a6,6,0,0,0-8.51-8.51l-8,8a6,6,0,0,0,0,8.51A6,6,0,0,0,7,28a6.07,6.07,0,0,0,4.28-1.76L9.86,24.82A4,4,0,0,1,4.19,24.82Z"})),r)}),rO=to.forwardRef(function(e,t){var r=e.children,n=tu(e,rC);return to.createElement(tf,tl({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),em||(em=to.createElement("path",{d:"M16 8H30V10H16zM6 10.59L3.41 8 2 9.41 6 13.41 14 5.41 12.59 4 6 10.59zM16 22H30V24H16zM6 24.59L3.41 22 2 23.41 6 27.41 14 19.41 12.59 18 6 24.59z"})),r)}),rT=["children"],r_=["children"],rM=["children"],rR=to.forwardRef(function(e,t){var r=e.children,n=tu(e,rT);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ev||(ev=to.createElement("path",{d:"M24,14H22V8A6,6,0,0,0,10,8v6H8a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V16A2,2,0,0,0,24,14ZM12,8a4,4,0,0,1,8,0v6H12ZM24,28H8V16H24Z"})),r)}),rN=to.forwardRef(function(e,t){var r=e.children,n=tu(e,r_);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eg||(eg=to.createElement("path",{d:"M13.647,14.907a1.4482,1.4482,0,1,0,1.326,1.443A1.385,1.385,0,0,0,13.647,14.907Zm4.745,0a1.4482,1.4482,0,1,0,1.326,1.443A1.385,1.385,0,0,0,18.392,14.907Z"})),ey||(ey=to.createElement("path",{d:"M24.71,4H7.29A2.6714,2.6714,0,0,0,4.625,6.678V24.254A2.6714,2.6714,0,0,0,7.29,26.932H22.032l-.689-2.405,1.664,1.547L24.58,27.53,27.375,30V6.678A2.6714,2.6714,0,0,0,24.71,4ZM19.692,20.978s-.468-.559-.858-1.053a4.1021,4.1021,0,0,0,2.353-1.547,7.4391,7.4391,0,0,1-1.495.767,8.5564,8.5564,0,0,1-1.885.559,9.1068,9.1068,0,0,1-3.367-.013,10.9127,10.9127,0,0,1-1.911-.559,7.6184,7.6184,0,0,1-.949-.442c-.039-.026-.078-.039-.117-.065a.18.18,0,0,1-.052-.039c-.234-.13-.364-.221-.364-.221a4.0432,4.0432,0,0,0,2.275,1.534c-.39.494-.871,1.079-.871,1.079a4.7134,4.7134,0,0,1-3.965-1.976,17.409,17.409,0,0,1,1.872-7.579,6.4285,6.4285,0,0,1,3.653-1.365l.13.156a8.77,8.77,0,0,0-3.419,1.703s.286-.156.767-.377a9.7625,9.7625,0,0,1,2.951-.819,1.2808,1.2808,0,0,1,.221-.026,11,11,0,0,1,2.626-.026A10.5971,10.5971,0,0,1,21.2,11.917a8.6518,8.6518,0,0,0-3.237-1.651l.182-.208a6.4285,6.4285,0,0,1,3.653,1.365,17.409,17.409,0,0,1,1.872,7.579A4.752,4.752,0,0,1,19.692,20.978Z"})),r)}),rP=to.forwardRef(function(e,t){var r=e.children,n=tu(e,rM);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eb||(eb=to.createElement("path",{fillRule:"evenodd",d:"M16,2a14,14,0,0,0-4.43,27.28c.7.13,1-.3,1-.67s0-1.21,0-2.38c-3.89.84-4.71-1.88-4.71-1.88A3.71,3.71,0,0,0,6.24,22.3c-1.27-.86.1-.85.1-.85A2.94,2.94,0,0,1,8.48,22.9a3,3,0,0,0,4.08,1.16,2.93,2.93,0,0,1,.88-1.87c-3.1-.36-6.37-1.56-6.37-6.92a5.4,5.4,0,0,1,1.44-3.76,5,5,0,0,1,.14-3.7s1.17-.38,3.85,1.43a13.3,13.3,0,0,1,7,0c2.67-1.81,3.84-1.43,3.84-1.43a5,5,0,0,1,.14,3.7,5.4,5.4,0,0,1,1.44,3.76c0,5.38-3.27,6.56-6.39,6.91a3.33,3.33,0,0,1,.95,2.59c0,1.87,0,3.38,0,3.84s.25.81,1,.67A14,14,0,0,0,16,2Z"})),r)}),rL=["children"],rD=["children"],rI=["children"],rF=["children"],rV=["children"],rB=to.forwardRef(function(e,t){var r=e.children,n=tu(e,rL);return to.createElement(tf,tl({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ex||(ex=to.createElement("path",{d:"M16.59 20.41L20.17 24 20.17 24 16.58 27.59 18 29 23 24 18 19 16.59 20.41zM23.59 20.41L27.17 24 27.17 24 23.58 27.59 25 29 30 24 25 19 23.59 20.41z"})),ew||(ew=to.createElement("path",{d:"M14,23H4V7.91l11.43,7.91a1,1,0,0,0,1.14,0L28,7.91V17h2V7a2,2,0,0,0-2-2H4A2,2,0,0,0,2,7V23a2,2,0,0,0,2,2H14ZM25.8,7,16,13.78,6.2,7Z"})),r)}),rU=to.forwardRef(function(e,t){var r=e.children,n=tu(e,rD);return to.createElement(tf,tl({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eE||(eE=to.createElement("path",{d:"M25.3943,24a7.8772,7.8772,0,0,0-1.6707-8.5684,3.918,3.918,0,0,0-1.0844-4.414l2.7759-2.7759a2.0025,2.0025,0,0,0,0-2.8286L22.5869,2.5849a2.0021,2.0021,0,0,0-2.8286,0L6.5859,15.7573a2.0027,2.0027,0,0,0,0,2.8286l2.8282,2.8282a2.0024,2.0024,0,0,0,2.8286,0l4.7749-4.7754a3.9329,3.9329,0,0,0,5.5139.4326A5.9442,5.9442,0,0,1,23.1775,24H16v4H4v2H28V24ZM10.8281,20,8,17.1714,9.8787,15.293l2.8283,2.8281ZM16,14a3.9811,3.9811,0,0,0,.0762.7524L14.1211,16.707l-2.8284-2.8281,9.88-9.88L24.001,6.8271l-3.2488,3.2491A3.9771,3.9771,0,0,0,16,14Zm4,2a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,20,16Zm6,12H18V26h8Z"})),r)}),rz=to.forwardRef(function(e,t){var r=e.children,n=tu(e,rI);return to.createElement(tf,tl({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ej||(ej=to.createElement("path",{d:"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12 S22.6,28,16,28z"})),eS||(eS=to.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),r)}),rH=to.forwardRef(function(e,t){var r=e.children,n=tu(e,rF);return to.createElement(tf,tl({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eC||(eC=to.createElement("path",{d:"M2 22H30V24H2zM2 26H30V28H2zM24 10a2 2 0 102 2 2 2 0 00-2-2zM16 16a4 4 0 114-4A4.0045 4.0045 0 0116 16zm0-6a2 2 0 102 2A2.002 2.002 0 0016 10zM8 10a2 2 0 102 2 2 2 0 00-2-2z"})),ek||(ek=to.createElement("path",{d:"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z"})),r)}),r$=to.forwardRef(function(e,t){var r=e.children,n=tu(e,rV);return to.createElement(tf,tl({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eA||(eA=to.createElement("path",{d:"M2 22H30V24H2zM2 26H30V28H2zM24 10a2 2 0 102 2 2 2 0 00-2-2zM16 16a4 4 0 114-4A4.0045 4.0045 0 0116 16zm0-6a2 2 0 102 2A2.002 2.002 0 0016 10zM8 10a2 2 0 102 2 2 2 0 00-2-2z"})),eO||(eO=to.createElement("path",{d:"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z"})),r)}),rW=["children"],rq=to.forwardRef(function(e,t){var r=e.children,n=tu(e,rW);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eT||(eT=to.createElement("circle",{cx:"21",cy:"26",r:"2"})),e_||(e_=to.createElement("circle",{cx:"21",cy:"6",r:"2"})),eM||(eM=to.createElement("circle",{cx:"4",cy:"16",r:"2"})),eR||(eR=to.createElement("path",{d:"M28,12a3.9962,3.9962,0,0,0-3.8579,3H19.8579a3.9655,3.9655,0,0,0-5.4914-2.6426L11.19,8.3872A3.9626,3.9626,0,0,0,12,6a4,4,0,1,0-4,4,3.96,3.96,0,0,0,1.6338-.3574l3.176,3.97a3.9239,3.9239,0,0,0,0,4.7744l-3.1758,3.97A3.96,3.96,0,0,0,8,22a4,4,0,1,0,4,4,3.9624,3.9624,0,0,0-.81-2.3872l3.1758-3.97A3.9658,3.9658,0,0,0,19.8579,17h4.2842A3.9934,3.9934,0,1,0,28,12ZM6,6A2,2,0,1,1,8,8,2.0023,2.0023,0,0,1,6,6ZM8,28a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,8,28Zm8-10a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,16,18Zm12,0a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,28,18Z"})),r)}),rG=["children"],rZ=["children"],rY=["children"],rX=to.forwardRef(function(e,t){var r=e.children,n=tu(e,rG);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eN||(eN=to.createElement("path",{d:"M14 16L24 6 25.4 7.4 16.8 16 25.4 24.6 24 26zM8 4H10V28H8z"})),r)}),rK=to.forwardRef(function(e,t){var r=e.children,n=tu(e,rZ);return to.createElement(tf,tl({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eP||(eP=to.createElement("path",{d:"M21,2a8.9977,8.9977,0,0,0-8.6119,11.6118L2,24v6H8L18.3881,19.6118A9,9,0,1,0,21,2Zm0,16a7.0125,7.0125,0,0,1-2.0322-.3022L17.821,17.35l-.8472.8472-3.1811,3.1812L12.4141,20,11,21.4141l1.3787,1.3786-1.5859,1.586L9.4141,23,8,24.4141l1.3787,1.3786L7.1716,28H4V24.8284l9.8023-9.8023.8472-.8474-.3473-1.1467A7,7,0,1,1,21,18Z"})),eL||(eL=to.createElement("circle",{cx:"22",cy:"10",r:"2"})),r)}),rJ=to.forwardRef(function(e,t){var r=e.children,n=tu(e,rY);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eD||(eD=to.createElement("path",{d:"M21,2a8.9977,8.9977,0,0,0-8.6119,11.6118L2,24v6H8L18.3881,19.6118A9,9,0,1,0,21,2Zm0,16a7.0125,7.0125,0,0,1-2.0322-.3022L17.821,17.35l-.8472.8472-3.1811,3.1812L12.4141,20,11,21.4141l1.3787,1.3786-1.5859,1.586L9.4141,23,8,24.4141l1.3787,1.3786L7.1716,28H4V24.8284l9.8023-9.8023.8472-.8474-.3473-1.1467A7,7,0,1,1,21,18Z"})),eI||(eI=to.createElement("circle",{cx:"22",cy:"10",r:"2"})),r)}),rQ=["children"],r0=["children"],r1=["children"],r2=to.forwardRef(function(e,t){var r=e.children,n=tu(e,rQ);return to.createElement(tf,tl({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eF||(eF=to.createElement("path",{d:"M30 18A6 6 0 1020 22.46v7.54l4-1.8926 4 1.8926V22.46A5.98 5.98 0 0030 18zm-4 8.84l-2-.9467L22 26.84V23.65a5.8877 5.8877 0 004 0zM24 22a4 4 0 114-4A4.0045 4.0045 0 0124 22zM9 14H16V16H9zM9 8H19V10H9z"})),eV||(eV=to.createElement("path",{d:"M6,30a2.0021,2.0021,0,0,1-2-2V4A2.0021,2.0021,0,0,1,6,2H22a2.0021,2.0021,0,0,1,2,2V8H22V4H6V28H16v2Z"})),r)}),r4=to.forwardRef(function(e,t){var r=e.children,n=tu(e,r0);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eB||(eB=to.createElement("path",{d:"M20.59 22L15 16.41 15 7 17 7 17 15.58 22 20.59 20.59 22z"})),eU||(eU=to.createElement("path",{d:"M16,2A13.94,13.94,0,0,0,6,6.23V2H4v8h8V8H7.08A12,12,0,1,1,4,16H2A14,14,0,1,0,16,2Z"})),r)}),r3=to.forwardRef(function(e,t){var r=e.children,n=tu(e,r1);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ez||(ez=to.createElement("path",{d:"M4,8c-1.2,0-2,0.8-2,2c0,1.2,0.8,2,2,2h3v1H4c-1.7,0-3-1.2-3-3c0-1.7,1.3-3,3-3l9.1,0l-2-2l0.7-0.7 L15,7.5l-3.2,3.2L11.1,10l2-2L4,8z"})),r)}),r5=["children"],r6=to.forwardRef(function(e,t){var r=e.children,n=tu(e,r5);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eH||(eH=to.createElement("path",{d:"M18,28A12,12,0,1,0,6,16v6.2L2.4,18.6,1,20l6,6,6-6-1.4-1.4L8,22.2V16H8A10,10,0,1,1,18,26Z"})),r)}),r8=["children"],r7=["children"],r9=["children"],ne=to.forwardRef(function(e,t){var r=e.children,n=tu(e,r8);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),e$||(e$=to.createElement("path",{d:"M28,4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM18,28H14V24h4Zm10-6H4V6H28Z"})),r)}),nt=to.forwardRef(function(e,t){var r=e.children,n=tu(e,r7);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eW||(eW=to.createElement("path",{d:"M13.5,8.4c0-0.1,0-0.3,0-0.4c0-0.1,0-0.3,0-0.4l1-0.8c0.4-0.3,0.4-0.9,0.2-1.3l-1.2-2C13.3,3.2,13,3,12.6,3 c-0.1,0-0.2,0-0.3,0.1l-1.2,0.4c-0.2-0.1-0.4-0.3-0.7-0.4l-0.3-1.3C10.1,1.3,9.7,1,9.2,1H6.8c-0.5,0-0.9,0.3-1,0.8L5.6,3.1 C5.3,3.2,5.1,3.3,4.9,3.4L3.7,3C3.6,3,3.5,3,3.4,3C3,3,2.7,3.2,2.5,3.5l-1.2,2C1.1,5.9,1.2,6.4,1.6,6.8l0.9,0.9c0,0.1,0,0.3,0,0.4 c0,0.1,0,0.3,0,0.4L1.6,9.2c-0.4,0.3-0.5,0.9-0.2,1.3l1.2,2C2.7,12.8,3,13,3.4,13c0.1,0,0.2,0,0.3-0.1l1.2-0.4 c0.2,0.1,0.4,0.3,0.7,0.4l0.3,1.3c0.1,0.5,0.5,0.8,1,0.8h2.4c0.5,0,0.9-0.3,1-0.8l0.3-1.3c0.2-0.1,0.4-0.2,0.7-0.4l1.2,0.4 c0.1,0,0.2,0.1,0.3,0.1c0.4,0,0.7-0.2,0.9-0.5l1.1-2c0.2-0.4,0.2-0.9-0.2-1.3L13.5,8.4z M12.6,12l-1.7-0.6c-0.4,0.3-0.9,0.6-1.4,0.8 L9.2,14H6.8l-0.4-1.8c-0.5-0.2-0.9-0.5-1.4-0.8L3.4,12l-1.2-2l1.4-1.2c-0.1-0.5-0.1-1.1,0-1.6L2.2,6l1.2-2l1.7,0.6 C5.5,4.2,6,4,6.5,3.8L6.8,2h2.4l0.4,1.8c0.5,0.2,0.9,0.5,1.4,0.8L12.6,4l1.2,2l-1.4,1.2c0.1,0.5,0.1,1.1,0,1.6l1.4,1.2L12.6,12z"})),eq||(eq=to.createElement("path",{d:"M8,11c-1.7,0-3-1.3-3-3s1.3-3,3-3s3,1.3,3,3C11,9.6,9.7,11,8,11C8,11,8,11,8,11z M8,6C6.9,6,6,6.8,6,7.9C6,7.9,6,8,6,8 c0,1.1,0.8,2,1.9,2c0,0,0.1,0,0.1,0c1.1,0,2-0.8,2-1.9c0,0,0-0.1,0-0.1C10,6.9,9.2,6,8,6C8.1,6,8,6,8,6z"})),r)}),nr=to.forwardRef(function(e,t){var r=e.children,n=tu(e,r9);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eG||(eG=to.createElement("path",{d:"M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30V8zM21 12c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3S22.7 12 21 12zM2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2V24zM11 20c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3S9.3 20 11 20z"})),r)}),nn=["children"],ni=to.forwardRef(function(e,t){var r=e.children,n=tu(e,nn);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eZ||(eZ=to.createElement("path",{d:"M25,2A11.01,11.01,0,0,0,14.7549,9.0244,6.9939,6.9939,0,0,0,9,6H6V9a7.0078,7.0078,0,0,0,7,7h1v9.0493a9.9229,9.9229,0,0,0-6.071,2.8794l1.414,1.4141a8,8,0,0,1,12.3086,1.2134l1.6616-1.1128A9.98,9.98,0,0,0,16,25.062V16h1A11.0125,11.0125,0,0,0,28,5V2ZM13,14A5.0057,5.0057,0,0,1,8,9V8H9a5.0054,5.0054,0,0,1,5,5v1ZM26,5a9.01,9.01,0,0,1-9,9H16V13a9.01,9.01,0,0,1,9-9h1Z"})),r)}),no=["children"],na=["children"],ns=["children"],nl=to.forwardRef(function(e,t){var r=e.children,n=tu(e,no);return to.createElement(tf,tl({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eY||(eY=to.createElement("path",{d:"M23,9h6a2,2,0,0,0,2-2V3a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2V4H11V3A2,2,0,0,0,9,1H3A2,2,0,0,0,1,3V7A2,2,0,0,0,3,9H9a2,2,0,0,0,2-2V6h4V26a2.0023,2.0023,0,0,0,2,2h4v1a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V25a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2v1H17V17h4v1a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V14a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2v1H17V6h4V7A2,2,0,0,0,23,9Zm0-6h6V7H23ZM9,7H3V3H9ZM23,25h6v4H23Zm0-11h6v4H23Z",transform:"translate(0 .005)"})),r)}),nu=to.forwardRef(function(e,t){var r=e.children,n=tu(e,na);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eX||(eX=to.createElement("path",{d:"M12,7H6V4c0-1.1,0.9-2,2-2s2,0.9,2,2h1c0-1.7-1.3-3-3-3S5,2.3,5,4v3H4C3.4,7,3,7.4,3,8v6c0,0.6,0.4,1,1,1h8c0.6,0,1-0.4,1-1 V8C13,7.4,12.6,7,12,7z M12,14H4V8h8V14z"})),r)}),nc=to.forwardRef(function(e,t){var r=e.children,n=tu(e,ns);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eK||(eK=to.createElement("path",{d:"M24,15V6a2,2,0,0,0-2-2H10A2,2,0,0,0,8,6v9a2,2,0,0,0-2,2V28H8V17H24V28h2V17A2,2,0,0,0,24,15ZM10,6H22v9H10Z"})),eJ||(eJ=to.createElement("path",{d:"M12 10H15V12H12zM17 10H20V12H17z"})),r)}),nd=["children"],nf=["children"],nh=["children"],np=["children"],nm=to.forwardRef(function(e,t){var r=e.children,n=tu(e,nd);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eQ||(eQ=to.createElement("path",{d:"M15.5,7.8C14.3,4.7,11.3,2.6,8,2.5C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3c1.2,3.1,4.1,5.2,7.5,5.3 c3.3-0.1,6.3-2.2,7.5-5.3C15.5,8.1,15.5,7.9,15.5,7.8z M8,12.5c-2.7,0-5.4-2-6.5-4.5c1-2.5,3.8-4.5,6.5-4.5s5.4,2,6.5,4.5 C13.4,10.5,10.6,12.5,8,12.5z"})),e0||(e0=to.createElement("path",{d:"M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z M8,10c-1.1,0-2-0.9-2-2s0.9-2,2-2s2,0.9,2,2S9.1,10,8,10z"})),r)}),nv=to.forwardRef(function(e,t){var r=e.children,n=tu(e,nf);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),e1||(e1=to.createElement("path",{d:"M2.6,11.3l0.7-0.7C2.6,9.8,1.9,9,1.5,8c1-2.5,3.8-4.5,6.5-4.5c0.7,0,1.4,0.1,2,0.4l0.8-0.8C9.9,2.7,9,2.5,8,2.5 C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3C1,9.3,1.7,10.4,2.6,11.3z"})),e2||(e2=to.createElement("path",{d:"M6 7.9c.1-1 .9-1.8 1.8-1.8l.9-.9C7.2 4.7 5.5 5.6 5.1 7.2 5 7.7 5 8.3 5.1 8.8L6 7.9zM15.5 7.8c-.6-1.5-1.6-2.8-2.9-3.7L15 1.7 14.3 1 1 14.3 1.7 15l2.6-2.6c1.1.7 2.4 1 3.7 1.1 3.3-.1 6.3-2.2 7.5-5.3C15.5 8.1 15.5 7.9 15.5 7.8zM10 8c0 1.1-.9 2-2 2-.3 0-.7-.1-1-.3L9.7 7C9.9 7.3 10 7.6 10 8zM8 12.5c-1 0-2.1-.3-3-.8l1.3-1.3c1.4.9 3.2.6 4.2-.8.7-1 .7-2.4 0-3.4l1.4-1.4c1.1.8 2 1.9 2.6 3.2C13.4 10.5 10.6 12.5 8 12.5z"})),r)}),ng=to.forwardRef(function(e,t){var r=e.children,n=tu(e,nh);return to.createElement(tf,tl({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),e4||(e4=to.createElement("path",{d:"M22 17H24V19H22z"})),e3||(e3=to.createElement("path",{d:"M28,8H4V5H26V3H4A2,2,0,0,0,2,5V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10A2,2,0,0,0,28,8ZM4,26V10H28v3H20a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h8v3ZM28,15v6H20V15Z"})),r)}),ny=to.forwardRef(function(e,t){var r=e.children,n=tu(e,np);return to.createElement(tf,tl({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),e5||(e5=to.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M8,14c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6S11.3,14,8,14z"})),e6||(e6=to.createElement("path",{d:"M7.5 4H8.5V9H7.5zM8 10.2c-.4 0-.8.3-.8.8s.3.8.8.8c.4 0 .8-.3.8-.8S8.4 10.2 8 10.2z"})),r)}),nb=["children"],nx=to.forwardRef(function(e,t){var r=e.children,n=tu(e,nb);return to.createElement(tf,tl({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),e8||(e8=to.createElement("path",{d:"M29.3164,8.0513l-18-6A1,1,0,0,0,10.4,2.2L4,7V2H2V30H4V11l6.4,4.8a1,1,0,0,0,.9165.1489l18-6a1,1,0,0,0,0-1.8974ZM10,13,4.6665,9,10,5Zm4-.0542-2,.667V4.3872l2,.667Zm4-1.333-2,.6665V5.7207l2,.6665Zm2-.667V7.0542L25.8379,9Z"})),e7||(e7=to.createElement("path",{d:"M20,22a4,4,0,0,0-8,0h2a2,2,0,1,1,2,2H8v2h8A4.0045,4.0045,0,0,0,20,22Z"})),e9||(e9=to.createElement("path",{d:"M26,22a4.0045,4.0045,0,0,0-4,4h2a2,2,0,1,1,2,2H12v2H26a4,4,0,0,0,0-8Z"})),r)}),nw=r(52322);function nE(e){let{size:t=24,className:r}=e;return(0,nw.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,className:r,fill:"currentColor",viewBox:"0 0 512 512",children:(0,nw.jsx)("path",{d:"M448 32C465.7 32 480 46.33 480 64C480 81.67 465.7 96 448 96H80C71.16 96 64 103.2 64 112C64 120.8 71.16 128 80 128H448C483.3 128 512 156.7 512 192V416C512 451.3 483.3 480 448 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H448zM416 336C433.7 336 448 321.7 448 304C448 286.3 433.7 272 416 272C398.3 272 384 286.3 384 304C384 321.7 398.3 336 416 336z"})})}function nj(e){let{size:t=24}=e;return(0,nw.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,nw.jsx)("path",{d:"M80 192V144C80 64.47 144.5 0 224 0C303.5 0 368 64.47 368 144V192H384C419.3 192 448 220.7 448 256V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V256C0 220.7 28.65 192 64 192H80zM144 192H304V144C304 99.82 268.2 64 224 64C179.8 64 144 99.82 144 144V192z"})})}function nS(e){let{size:t=24}=e;return(0,nw.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 576 512",children:(0,nw.jsx)("path",{d:"M575.8 255.5C575.8 273.5 560.8 287.6 543.8 287.6H511.8L512.5 447.7C512.5 450.5 512.3 453.1 512 455.8V472C512 494.1 494.1 512 472 512H456C454.9 512 453.8 511.1 452.7 511.9C451.3 511.1 449.9 512 448.5 512H392C369.9 512 352 494.1 352 472V384C352 366.3 337.7 352 320 352H256C238.3 352 224 366.3 224 384V472C224 494.1 206.1 512 184 512H128.1C126.6 512 125.1 511.9 123.6 511.8C122.4 511.9 121.2 512 120 512H104C81.91 512 64 494.1 64 472V360C64 359.1 64.03 358.1 64.09 357.2V287.6H32.05C14.02 287.6 0 273.5 0 255.5C0 246.5 3.004 238.5 10.01 231.5L266.4 8.016C273.4 1.002 281.4 0 288.4 0C295.4 0 303.4 2.004 309.5 7.014L564.8 231.5C572.8 238.5 576.9 246.5 575.8 255.5L575.8 255.5z"})})}function nC(e){let{size:t=24}=e;return(0,nw.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,nw.jsx)("path",{d:"M7.994 153.5c1.326 0 2.687 .3508 3.975 1.119L208 271.5v223.8c0 9.741-7.656 16.71-16.01 16.71c-2.688 0-5.449-.7212-8.05-2.303l-152.2-92.47C12.13 405.3 0 383.3 0 359.5v-197.7C0 156.1 3.817 153.5 7.994 153.5zM426.2 117.2c0 2.825-1.352 5.647-4.051 7.248L224 242.6L25.88 124.4C23.19 122.8 21.85 119.1 21.85 117.2c0-2.8 1.32-5.603 3.965-7.221l165.1-100.9C201.7 3.023 212.9 0 224 0s22.27 3.023 32.22 9.07l165.1 100.9C424.8 111.6 426.2 114.4 426.2 117.2zM440 153.5C444.2 153.5 448 156.1 448 161.8v197.7c0 23.75-12.12 45.75-31.78 57.69l-152.2 92.5C261.5 511.3 258.7 512 256 512C247.7 512 240 505 240 495.3V271.5l196-116.9C437.3 153.8 438.7 153.5 440 153.5z"})})}function nk(e){let{size:t=24}=e;return(0,nw.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:t,height:t,fill:"currentColor",children:(0,nw.jsx)("path",{d:"M495.9 166.6C499.2 175.2 496.4 184.9 489.6 191.2L446.3 230.6C447.4 238.9 448 247.4 448 256C448 264.6 447.4 273.1 446.3 281.4L489.6 320.8C496.4 327.1 499.2 336.8 495.9 345.4C491.5 357.3 486.2 368.8 480.2 379.7L475.5 387.8C468.9 398.8 461.5 409.2 453.4 419.1C447.4 426.2 437.7 428.7 428.9 425.9L373.2 408.1C359.8 418.4 344.1 427 329.2 433.6L316.7 490.7C314.7 499.7 307.7 506.1 298.5 508.5C284.7 510.8 270.5 512 255.1 512C241.5 512 227.3 510.8 213.5 508.5C204.3 506.1 197.3 499.7 195.3 490.7L182.8 433.6C167 427 152.2 418.4 138.8 408.1L83.14 425.9C74.3 428.7 64.55 426.2 58.63 419.1C50.52 409.2 43.12 398.8 36.52 387.8L31.84 379.7C25.77 368.8 20.49 357.3 16.06 345.4C12.82 336.8 15.55 327.1 22.41 320.8L65.67 281.4C64.57 273.1 64 264.6 64 256C64 247.4 64.57 238.9 65.67 230.6L22.41 191.2C15.55 184.9 12.82 175.3 16.06 166.6C20.49 154.7 25.78 143.2 31.84 132.3L36.51 124.2C43.12 113.2 50.52 102.8 58.63 92.95C64.55 85.8 74.3 83.32 83.14 86.14L138.8 103.9C152.2 93.56 167 84.96 182.8 78.43L195.3 21.33C197.3 12.25 204.3 5.04 213.5 3.51C227.3 1.201 241.5 0 256 0C270.5 0 284.7 1.201 298.5 3.51C307.7 5.04 314.7 12.25 316.7 21.33L329.2 78.43C344.1 84.96 359.8 93.56 373.2 103.9L428.9 86.14C437.7 83.32 447.4 85.8 453.4 92.95C461.5 102.8 468.9 113.2 475.5 124.2L480.2 132.3C486.2 143.2 491.5 154.7 495.9 166.6V166.6zM256 336C300.2 336 336 300.2 336 255.1C336 211.8 300.2 175.1 256 175.1C211.8 175.1 176 211.8 176 255.1C176 300.2 211.8 336 256 336z"})})}function nA(e){let{size:t=24}=e;return(0,nw.jsxs)("svg",{version:"1.1",id:"icon",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:t,height:t,fill:"currentColor",viewBox:"0 0 32 32",children:[(0,nw.jsx)("polygon",{points:"23,9.2 20.4,6.6 19,8 23,12 30,5 28.6,3.6 "}),(0,nw.jsx)("polygon",{points:"12,5.4 10.6,4 8,6.6 5.4,4 4,5.4 6.6,8 4,10.6 5.4,12 8,9.4 10.6,12 12,10.6 9.4,8 "}),(0,nw.jsx)("polygon",{points:"12,21.4 10.6,20 8,22.6 5.4,20 4,21.4 6.6,24 4,26.6 5.4,28 8,25.4 10.6,28 12,26.6 9.4,24 "}),(0,nw.jsx)("polygon",{points:"17,15 17,2 15,2 15,15 2,15 2,17 15,17 15,30 17,30 17,17 30,17 30,15 "}),(0,nw.jsx)("rect",{fill:"none",width:"32",height:"32"})]})}function nO(e){let{size:t=24}=e;return(0,nw.jsx)("svg",{width:t,height:t,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",children:(0,nw.jsx)("path",{d:"M641.5 256c0 3.1-1.7 6.1-4.5 7.5L547.9 317c-1.4.8-2.8 1.4-4.5 1.4-1.4 0-3.1-.3-4.5-1.1-2.8-1.7-4.5-4.5-4.5-7.8v-35.6H295.7c25.3 39.6 40.5 106.9 69.6 106.9H392V354c0-5 3.9-8.9 8.9-8.9H490c5 0 8.9 3.9 8.9 8.9v89.1c0 5-3.9 8.9-8.9 8.9h-89.1c-5 0-8.9-3.9-8.9-8.9v-26.7h-26.7c-75.4 0-81.1-142.5-124.7-142.5H140.3c-8.1 30.6-35.9 53.5-69 53.5C32 327.3 0 295.3 0 256s32-71.3 71.3-71.3c33.1 0 61 22.8 69 53.5 39.1 0 43.9 9.5 74.6-60.4C255 88.7 273 95.7 323.8 95.7c7.5-20.9 27-35.6 50.4-35.6 29.5 0 53.5 23.9 53.5 53.5s-23.9 53.5-53.5 53.5c-23.4 0-42.9-14.8-50.4-35.6H294c-29.1 0-44.3 67.4-69.6 106.9h310.1v-35.6c0-3.3 1.7-6.1 4.5-7.8 2.8-1.7 6.4-1.4 8.9.3l89.1 53.5c2.8 1.1 4.5 4.1 4.5 7.2z"})})}function nT(e){let{size:t=24}=e;return(0,nw.jsx)("svg",{width:t,height:t,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",children:(0,nw.jsx)("path",{d:"M192 64C86 64 0 150 0 256S86 448 192 448H448c106 0 192-86 192-192s-86-192-192-192H192zM496 168a40 40 0 1 1 0 80 40 40 0 1 1 0-80zM392 304a40 40 0 1 1 80 0 40 40 0 1 1 -80 0zM168 200c0-13.3 10.7-24 24-24s24 10.7 24 24v32h32c13.3 0 24 10.7 24 24s-10.7 24-24 24H216v32c0 13.3-10.7 24-24 24s-24-10.7-24-24V280H136c-13.3 0-24-10.7-24-24s10.7-24 24-24h32V200z"})})}function n_(){return(0,nw.jsx)("svg",{height:50,width:50,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",children:(0,nw.jsxs)("g",{fill:"#32d66a",stroke:"none",children:[(0,nw.jsx)("path",{d:"M14,19H2a1,1,0,0,0,0,2H14a1,1,0,0,0,0-2Z",fill:"#32d66a"}),(0,nw.jsx)("path",{d:"M14,27H2a1,1,0,0,0,0,2H14a1,1,0,0,0,0-2Z",fill:"#32d66a"}),(0,nw.jsx)("path",{d:"M30,11H2a1,1,0,0,0,0,2H30a1,1,0,0,0,0-2Z",fill:"#32d66a"}),(0,nw.jsx)("path",{d:"M2,5H30a1,1,0,0,0,0-2H2A1,1,0,0,0,2,5Z",fill:"#32d66a"}),(0,nw.jsx)("path",{d:"M25,17a7,7,0,1,0,7,7A7.008,7.008,0,0,0,25,17Zm-.293,9.707a1,1,0,0,1-1.414,0L20.586,24,22,22.586l2,2,4-4L29.414,22Z"})]})})}function nM(){return(0,nw.jsx)("svg",{height:50,width:50,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",children:(0,nw.jsxs)("g",{fill:"#32d66a",stroke:"#32d66a",strokeLinecap:"square",strokeWidth:"2",children:[(0,nw.jsx)("path",{d:"M25,1,12.784,13.154a8.572,8.572,0,1,0,6.061,6.061L21,17V13h4V9h3l3-3V1Z",fill:"none",stroke:"#32d66a"}),(0,nw.jsx)("circle",{cx:"10",cy:"22",fill:"none",r:"3"})]})})}},41345:function(e,t,r){"use strict";r.d(t,{HE:function(){return u},gM:function(){return s},XC:function(){return o},ek:function(){return a},nH:function(){return l},Wl:function(){return d},cQ:function(){return c},ys:function(){return p},QL:function(){return h},lT:function(){return b},yi:function(){return E},XF:function(){return j},bd:function(){return y},tM:function(){return S},OZ:function(){return x},sG:function(){return C},gU:function(){return O},p4:function(){return T},Vg:function(){return A},zQ:function(){return _},He:function(){return w},jy:function(){return k},rB:function(){return v}});var n=r(79381),i=r(95753);function o(e){return(0,i.Nf)({...e,route:"/consensus/tip"})}function a(e){return(0,i.Nf)({...e,route:"/consensus/tipstate"})}function s(e){return(0,i.Nf)({...e,route:"/consensus/network"})}function l(){let e=s({config:{swr:{revalidateOnFocus:!1}}}),t=(0,n.ZP)(e,()=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.name)==="zen"?(0,i.du)():(0,i.Tc)()},{refreshInterval:6e4,keepPreviousData:!0});return t.data||0}let u="/syncer/peers";function c(e){return(0,i.Nf)({...e,route:u})}function d(e){return(0,i.mw)({...e,route:"/syncer/connect"},async e=>{e(e=>e===u)})}let f="/txpool/transactions";function h(e){return(0,i.Nf)({...e,route:f})}function p(e){return(0,i.mw)({...e,route:"/txpool/broadcast"},async e=>{await (0,i.gw)(2e3),e(e=>e.startsWith(f)||e.startsWith("/wallets"))})}let m="/wallets";function v(e){return(0,i.Nf)({...e,route:m})}let g="/wallets/:id/addresses";function y(e){return(0,i.Nf)({...e,route:g})}function b(e){return(0,i.V1)({...e,route:"/wallets/:id"},async e=>{e(e=>e.startsWith(m))})}function x(e){return(0,i.iv)({...e,route:"/wallets/:id"},async(e,t)=>{e(e=>e.startsWith(m.replace(":id",t.params.id)))})}function w(e){return(0,i.mw)({...e,route:"/wallets/:id/subscribe"})}function E(e){return(0,i.V1)({...e,route:"/wallets/:id/addresses/:addr"},async(e,t)=>{e(e=>e.startsWith("/wallets/:id".replace(":id",t.params.id)))})}function j(e){return(0,i.iv)({...e,route:"/wallets/:id/addresses/:addr"},async(e,t)=>{e(e=>e.startsWith(g.replace(":id",t.params.id)))})}function S(e){return(0,i.Nf)({...e,route:"/wallets/:id/balance"})}function C(e){return(0,i.Nf)({...e,route:"/wallets/:id/events"})}function k(e){return(0,i.Nf)({...e,route:"/wallets/:id/txpool"})}function A(e){return(0,i.Nf)({...e,route:"/wallets/:id/outputs"})}function O(e){return(0,i.mw)({...e,route:"/wallets/:id/fund"})}function T(e){return(0,i.mw)({...e,route:"/wallets/:id/fundsf"})}function _(e){return(0,i.mw)({...e,route:"/wallets/:id/release"})}},21551:function(e,t,r){"use strict";r.d(t,{rN:function(){return d},yF:function(){return c},Vz:function(){return l},ES:function(){return u},At:function(){return m},qN:function(){return a}});var n=r(6391),i=r.n(n);n.BigNumber.config({EXPONENTIAL_AT:1e9}),n.BigNumber.config({DECIMAL_PLACES:30});let o=new n.BigNumber("10").exponentiatedBy(24);function a(e){return new n.BigNumber(new n.BigNumber(e).times(o).toFixed(0))}let s={fixed:3,dynamicUnits:!0,hastingUnits:!1};function l(e,t){let{fixed:r,dynamicUnits:i,hastingUnits:a}={...s,...t},l=new n.BigNumber(1e12),u=new n.BigNumber(1e3),c=new n.BigNumber(e),d=new n.BigNumber(e).abs(),f=c.isNegative()?"-":"";if(!i){var h;return"".concat(f).concat((void 0!==h?new n.BigNumber(new n.BigNumber(d).dividedBy(o).toFixed(h)):new n.BigNumber(d).dividedBy(o)).toFormat(r)," SC")}if(d.dividedBy(l).isLessThan(1))return a?"".concat(f).concat(d," H"):"".concat(f,"0 SC");let p=["pS","nS","uS","mS","SC","KS","MS","GS","TS"];for(let e=0;ee.multipliedBy(u),new n.BigNumber(1)),i=d.dividedBy(l.multipliedBy(t));if(i.isLessThan(u)||e===p.length-1)return"".concat(f).concat(i.toFormat(r)," ").concat(p[e])}return""}function u(e){return e.toLocaleString()+" SF"}function c(e,t){let{fixed:r=0,units:n="",abbreviated:o=!1}=t||{},a=new(i())(e||0);if(o){let e=a.toNumber();if(e<1e3)return a.toString();let t=["","K","M","B","t","q","Q","s","S","o","n","d","U","D"],i=Math.floor(Math.log10(e)/Math.log10(1e3)),o=e/Math.pow(1e3,i);return"".concat(o.toFixed(r)).concat(t[i]?" ".concat(t[i]):"").concat(n?" ".concat(n):"")}return"".concat(a.toFormat(r)).concat(n?" ".concat(n):"")}function d(e,t){let r;return r=navigator.language,new Intl.DateTimeFormat(r,{dateStyle:"short",...t}).format(new Date(e))}var f=r(81395),h=r(18149),p=r.n(h);function m(e){return 76===e.length&&function(e){let t=function(e){let t=[];for(let r=0;re?new h(e):null,[e]);return t}function m(){return(0,a.clientHookInServerComponentError)("usePathname"),(0,n.useContext)(o.PathnameContext)}function v(){(0,a.clientHookInServerComponentError)("useRouter");let e=(0,n.useContext)(i.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function g(){(0,a.clientHookInServerComponentError)("useParams");let e=(0,n.useContext)(i.GlobalLayoutRouterContext),t=(0,n.useContext)(o.PathParamsContext);return e?function e(t,r){void 0===r&&(r={});let n=t[1];for(let t of Object.values(n)){let n=t[0],i=Array.isArray(n),o=i?n[1]:n;if(!o||o.startsWith("__PAGE__"))continue;let a=i&&("c"===n[2]||"oc"===n[2]);a?r[n[0]]=n[1].split("/"):i&&(r[n[0]]=n[1]),r=e(t,r)}return r}(e.tree):t}function y(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,n.useContext)(i.LayoutRouterContext);return function e(t,r,n,i){let o;if(void 0===n&&(n=!0),void 0===i&&(i=[]),n)o=t[1][r];else{var a;let e=t[1];o=null!=(a=e.children)?a:Object.values(e)[0]}if(!o)return i;let l=o[0],u=(0,s.getSegmentValue)(l);return!u||u.startsWith("__PAGE__")?i:(i.push(u),e(o,r,!1,i))}(t,e)}function b(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=y(e);return 0===t.length?null:t[0]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},47067:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{notFound:function(){return n},isNotFoundError:function(){return i}});let r="NEXT_NOT_FOUND";function n(){let e=Error(r);throw e.digest=r,e}function i(e){return(null==e?void 0:e.digest)===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75903:function(e,t,r){"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectType:function(){return n},getRedirectError:function(){return s},redirect:function(){return l},permanentRedirect:function(){return u},isRedirectError:function(){return c},getURLFromRedirectError:function(){return d},getRedirectTypeFromError:function(){return f}});let o=r(7552),a="NEXT_REDIRECT";function s(e,t,r){void 0===r&&(r=!1);let n=Error(a);n.digest=a+";"+t+";"+e+";"+r;let i=o.requestAsyncStorage.getStore();return i&&(n.mutableCookies=i.mutableCookies),n}function l(e,t){throw void 0===t&&(t="replace"),s(e,t,!1)}function u(e,t){throw void 0===t&&(t="replace"),s(e,t,!0)}function c(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,r,n,i]=e.digest.split(";",4);return t===a&&("replace"===r||"push"===r)&&"string"==typeof n&&("true"===i||"false"===i)}function d(e){return c(e)?e.digest.split(";",3)[2]:null}function f(e){if(!c(e))throw Error("Not a redirect error");return e.digest.split(";",3)[1]}(i=n||(n={})).push="push",i.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7552:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return i}});let n=r(2271),i=(0,n.createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4424:function(e,t){"use strict";function r(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},23116:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PrefetchKind:function(){return r},ACTION_REFRESH:function(){return i},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return s},ACTION_PREFETCH:function(){return l},ACTION_FAST_REFRESH:function(){return u},ACTION_SERVER_ACTION:function(){return c}});let i="refresh",o="navigate",a="restore",s="server-patch",l="prefetch",u="fast-refresh",c="server-action";(n=r||(r={})).AUTO="auto",n.FULL="full",n.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25146:function(e,t,r){"use strict";function n(e,t,r,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),r(67858),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},80920:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return y}});let n=r(43219),i=r(16794),o=i._(r(2784)),a=n._(r(28316)),s=n._(r(37412)),l=r(31918),u=r(97686),c=r(45802);r(84759);let d=r(54365),f=n._(r(2088)),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function p(e,t,r,n,i,o){let a=null==e?void 0:e.src;if(!e||e["data-loaded-src"]===a)return;e["data-loaded-src"]=a;let s="decode"in e?e.decode():Promise.resolve();s.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}})}function m(e){let[t,r]=o.version.split("."),n=parseInt(t,10),i=parseInt(r,10);return n>18||18===n&&i>=3?{fetchPriority:e}:{fetchpriority:e}}let v=(0,o.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:i,height:a,width:s,decoding:l,className:u,style:c,fetchPriority:d,placeholder:f,loading:h,unoptimized:v,fill:g,onLoadRef:y,onLoadingCompleteRef:b,setBlurComplete:x,setShowAltText:w,onLoad:E,onError:j,...S}=e;return o.default.createElement("img",{...S,...m(d),loading:h,width:s,height:a,decoding:l,"data-nimg":g?"fill":"1",className:u,style:c,sizes:i,srcSet:n,src:r,ref:(0,o.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(j&&(e.src=e.src),e.complete&&p(e,f,y,b,x,v))},[r,f,y,b,x,j,v,t]),onLoad:e=>{let t=e.currentTarget;p(t,f,y,b,x,v)},onError:e=>{w(!0),"empty"!==f&&x(!0),j&&j(e)}})});function g(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...m(r.fetchPriority)};return t&&a.default.preload?(a.default.preload(r.src,n),null):o.default.createElement(s.default,null,o.default.createElement("link",{key:"__nimg-"+r.src+r.srcSet+r.sizes,rel:"preload",href:r.srcSet?void 0:r.src,...n}))}let y=(0,o.forwardRef)((e,t)=>{let r=(0,o.useContext)(d.RouterContext),n=(0,o.useContext)(c.ImageConfigContext),i=(0,o.useMemo)(()=>{let e=h||n||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r}},[n]),{onLoad:a,onLoadingComplete:s}=e,p=(0,o.useRef)(a);(0,o.useEffect)(()=>{p.current=a},[a]);let m=(0,o.useRef)(s);(0,o.useEffect)(()=>{m.current=s},[s]);let[y,b]=(0,o.useState)(!1),[x,w]=(0,o.useState)(!1),{props:E,meta:j}=(0,l.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:y,showAltText:x});return o.default.createElement(o.default.Fragment,null,o.default.createElement(v,{...E,unoptimized:j.unoptimized,placeholder:j.placeholder,fill:j.fill,onLoadRef:p,onLoadingCompleteRef:m,setBlurComplete:b,setShowAltText:w,ref:t}),j.priority?o.default.createElement(g,{isAppRouter:!r,imgAttributes:E}):null)});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},13814:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});let n=r(43219),i=n._(r(2784)),o=r(31068),a=r(33134),s=r(39585),l=r(51570),u=r(19868),c=r(54365),d=r(60587),f=r(93629),h=r(25146),p=r(10694),m=r(23116),v=new Set;function g(e,t,r,n,i,o){if(!o&&!(0,a.isLocalURL)(t))return;if(!n.bypassPrefetchedCheck){let i=void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0,o=t+"%"+r+"%"+i;if(v.has(o))return;v.add(o)}let s=o?e.prefetch(t,i):e.prefetch(t,r,n);Promise.resolve(s).catch(e=>{})}function y(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let b=i.default.forwardRef(function(e,t){let r,n;let{href:s,as:v,children:b,prefetch:x=null,passHref:w,replace:E,shallow:j,scroll:S,locale:C,onClick:k,onMouseEnter:A,onTouchStart:O,legacyBehavior:T=!1,..._}=e;r=b,T&&("string"==typeof r||"number"==typeof r)&&(r=i.default.createElement("a",null,r));let M=i.default.useContext(c.RouterContext),R=i.default.useContext(d.AppRouterContext),N=null!=M?M:R,P=!M,L=!1!==x,D=null===x?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,{href:I,as:F}=i.default.useMemo(()=>{if(!M){let e=y(s);return{href:e,as:v?y(v):e}}let[e,t]=(0,o.resolveHref)(M,s,!0);return{href:e,as:v?(0,o.resolveHref)(M,v):t||e}},[M,s,v]),V=i.default.useRef(I),B=i.default.useRef(F);T&&(n=i.default.Children.only(r));let U=T?n&&"object"==typeof n&&n.ref:t,[z,H,$]=(0,f.useIntersection)({rootMargin:"200px"}),W=i.default.useCallback(e=>{(B.current!==F||V.current!==I)&&($(),B.current=F,V.current=I),z(e),U&&("function"==typeof U?U(e):"object"==typeof U&&(U.current=e))},[F,U,I,$,z]);i.default.useEffect(()=>{N&&H&&L&&g(N,I,F,{locale:C},{kind:D},P)},[F,I,H,C,L,null==M?void 0:M.locale,N,P,D]);let q={ref:W,onClick(e){T||"function"!=typeof k||k(e),T&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),N&&!e.defaultPrevented&&function(e,t,r,n,o,s,l,u,c,d){let{nodeName:f}=e.currentTarget,h="A"===f.toUpperCase();if(h&&(function(e){let t=e.currentTarget,r=t.getAttribute("target");return r&&"_self"!==r||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,a.isLocalURL)(r)))return;e.preventDefault();let p=()=>{let e=null==l||l;"beforePopState"in t?t[o?"replace":"push"](r,n,{shallow:s,locale:u,scroll:e}):t[o?"replace":"push"](n||r,{forceOptimisticNavigation:!d,scroll:e})};c?i.default.startTransition(p):p()}(e,N,I,F,E,j,S,C,P,L)},onMouseEnter(e){T||"function"!=typeof A||A(e),T&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),N&&(L||!P)&&g(N,I,F,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:D},P)},onTouchStart(e){T||"function"!=typeof O||O(e),T&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),N&&(L||!P)&&g(N,I,F,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:D},P)}};if((0,l.isAbsoluteUrl)(F))q.href=F;else if(!T||w||"a"===n.type&&!("href"in n.props)){let e=void 0!==C?C:null==M?void 0:M.locale,t=(null==M?void 0:M.isLocaleDomain)&&(0,h.getDomainLocale)(F,e,null==M?void 0:M.locales,null==M?void 0:M.domainLocales);q.href=t||(0,p.addBasePath)((0,u.addLocale)(F,e,null==M?void 0:M.defaultLocale))}return T?i.default.cloneElement(n,q):i.default.createElement("a",{..._,...q},r)}),x=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93629:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let n=r(2784),i=r(30857),o="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let{rootRef:t,rootMargin:r,disabled:l}=e,u=l||!o,[c,d]=(0,n.useState)(!1),f=(0,n.useRef)(null),h=(0,n.useCallback)(e=>{f.current=e},[]);(0,n.useEffect)(()=>{if(o){if(u||c)return;let e=f.current;if(e&&e.tagName){let n=function(e,t,r){let{id:n,observer:i,elements:o}=function(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=s.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=a.get(n)))return t;let i=new Map,o=new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e);return t={id:r,observer:o,elements:i},s.push(r),a.set(r,t),t}(r);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(n);let e=s.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r});return n}}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,r,t,c,f.current]);let p=(0,n.useCallback)(()=>{d(!1)},[]);return[h,c,p]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},31918:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),r(84759);let n=r(69933),i=r(97686);function o(e){return void 0!==e.default}function a(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function s(e,t){var r;let s,l,u,{src:c,sizes:d,unoptimized:f=!1,priority:h=!1,loading:p,className:m,quality:v,width:g,height:y,fill:b=!1,style:x,onLoad:w,onLoadingComplete:E,placeholder:j="empty",blurDataURL:S,fetchPriority:C,layout:k,objectFit:A,objectPosition:O,lazyBoundary:T,lazyRoot:_,...M}=e,{imgConf:R,showAltText:N,blurComplete:P,defaultLoader:L}=t,D=R||i.imageConfigDefault;if("allSizes"in D)s=D;else{let e=[...D.deviceSizes,...D.imageSizes].sort((e,t)=>e-t),t=D.deviceSizes.sort((e,t)=>e-t);s={...D,allSizes:e,deviceSizes:t}}let I=M.loader||L;delete M.loader,delete M.srcSet;let F="__next_img_default"in I;if(F){if("custom"===s.loader)throw Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=I;I=t=>{let{config:r,...n}=t;return e(n)}}if(k){"fill"===k&&(b=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[k];e&&(x={...x,...e});let t={responsive:"100vw",fill:"100vw"}[k];t&&!d&&(d=t)}let V="",B=a(g),U=a(y);if("object"==typeof(r=c)&&(o(r)||void 0!==r.src)){let e=o(c)?c.default:c;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(l=e.blurWidth,u=e.blurHeight,S=S||e.blurDataURL,V=e.src,!b){if(B||U){if(B&&!U){let t=B/e.width;U=Math.round(e.height*t)}else if(!B&&U){let t=U/e.height;B=Math.round(e.width*t)}}else B=e.width,U=e.height}}let z=!h&&("lazy"===p||void 0===p);(!(c="string"==typeof c?c:V)||c.startsWith("data:")||c.startsWith("blob:"))&&(f=!0,z=!1),s.unoptimized&&(f=!0),F&&c.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(f=!0),h&&(C="high");let H=a(v),$=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:A,objectPosition:O}:{},N?{}:{color:"transparent"},x),W=P||"empty"===j?null:"blur"===j?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:B,heightInt:U,blurWidth:l,blurHeight:u,blurDataURL:S||"",objectFit:$.objectFit})+'")':'url("'+j+'")',q=W?{backgroundSize:$.objectFit||"cover",backgroundPosition:$.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:W}:{},G=function(e){let{config:t,src:r,unoptimized:n,width:i,quality:o,sizes:a,loader:s}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,r){let{deviceSizes:n,allSizes:i}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);n)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:i,kind:"w"}}if("number"!=typeof t)return{widths:n,kind:"w"};let o=[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))];return{widths:o,kind:"x"}}(t,i,a),c=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((e,n)=>s({config:t,src:r,quality:o,width:e})+" "+("w"===u?e:n+1)+u).join(", "),src:s({config:t,src:r,quality:o,width:l[c]})}}({config:s,src:c,unoptimized:f,width:B,quality:H,sizes:d,loader:I}),Z={...M,loading:z?"lazy":p,fetchPriority:C,width:B,height:U,decoding:"async",className:m,style:{...$,...q},sizes:G.sizes,srcSet:G.srcSet,src:G.src},Y={unoptimized:f,priority:h,placeholder:j,fill:b};return{props:Z,meta:Y}}},69933:function(e,t){"use strict";function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:o,objectFit:a}=e,s=n?40*n:t,l=i?40*i:r,u=s&&l?"viewBox='0 0 "+s+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},81963:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return u},unstable_getImgProps:function(){return l}});let n=r(43219),i=r(31918),o=r(84759),a=r(80920),s=n._(r(2088)),l=e=>{(0,o.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:t}=(0,i.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}},u=a.Image},2088:function(e,t){"use strict";function r(e){let{config:t,src:r,width:n,quality:i}=e;return t.path+"?url="+encodeURIComponent(r)+"&w="+n+"&q="+(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},44673:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return a}});let n=r(16794),i=n._(r(2784)),o=i.default.createContext(null);function a(e){let t=(0,i.useContext)(o);t&&t(e)}},37832:function(){},49854:function(e){e.exports={style:{fontFamily:"'__IBM_Plex_Mono_355ef5', '__IBM_Plex_Mono_Fallback_355ef5'"},className:"__className_355ef5",variable:"__variable_355ef5"}},1240:function(e){e.exports={style:{fontFamily:"'__IBM_Plex_Sans_829fdc', '__IBM_Plex_Sans_Fallback_829fdc'"},className:"__className_829fdc",variable:"__variable_829fdc"}},97729:function(e,t,r){e.exports=r(37412)},96577:function(e,t,r){e.exports=r(81963)},39097:function(e,t,r){e.exports=r(13814)},82876:function(e,t,r){e.exports=r(55046)},5632:function(e,t,r){e.exports=r(60222)},24470:function(e){var t=String,r=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}};e.exports=r(),e.exports.createColors=r},34406:function(e){var t,r,n,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l=[],u=!1,c=-1;function d(){u&&n&&(u=!1,n.length?l=n.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(n=l,l=[];++c1)for(var r=1;r=this._maxSize&&this.clear(),!(e in this._values)&&this._size++,this._values[e]=t};var r=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,i=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new t(512),l=new t(512),u=new t(512);function c(e){return s.get(e)||s.set(e,d(e).map(function(e){return e.replace(a,"$2")}))}function d(e){return e.match(r)||[""]}function f(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}e.exports={Cache:t,split:d,normalizePath:c,setter:function(e){var t=c(e);return l.get(e)||l.set(e,function(e,r){for(var n=0,i=t.length,o=e;n>>7-e%8&1)==1},put:function(e,t){for(var r=0;r>>t-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},81432:function(e){e.exports={L:1,M:0,Q:3,H:2}},84695:function(e,t,r){var n=r(35856);function i(e,t){if(void 0==e.length)throw Error(e.length+"/"+t);for(var r=0;r=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=l.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},u.setupPositionProbePattern=function(e,t){for(var r=-1;r<=7;r++)if(!(e+r<=-1)&&!(this.moduleCount<=e+r))for(var n=-1;n<=7;n++)t+n<=-1||this.moduleCount<=t+n||(0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4?this.modules[e+r][t+n]=!0:this.modules[e+r][t+n]=!1)},u.getBestMaskPattern=function(){for(var e=0,t=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=a.getLostPoint(this);(0==r||e>n)&&(e=n,t=r)}return t},u.createMovieClip=function(e,t,r){var n=e.createEmptyMovieClip(t,r);this.make();for(var i=0;i>r&1)==1;this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(var r=0;r<18;r++){var n=!e&&(t>>r&1)==1;this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},u.setupTypeInfo=function(e,t){for(var r=this.errorCorrectLevel<<3|t,n=a.getBCHTypeInfo(r),i=0;i<15;i++){var o=!e&&(n>>i&1)==1;i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(var i=0;i<15;i++){var o=!e&&(n>>i&1)==1;i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o}this.modules[this.moduleCount-8][8]=!e},u.mapData=function(e,t){for(var r=-1,n=this.moduleCount-1,i=7,o=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var l=0;l<2;l++)if(null==this.modules[n][s-l]){var u=!1;o>>i&1)==1),a.getMask(t,n,s-l)&&(u=!u),this.modules[n][s-l]=u,-1==--i&&(o++,i=7)}if((n+=r)<0||this.moduleCount<=n){n-=r,r=-r;break}}},l.PAD0=236,l.PAD1=17,l.createData=function(e,t,r){for(var n=i.getRSBlocks(e,t),s=new o,u=0;u8*d)throw Error("code length overflow. ("+s.getLengthInBits()+">"+8*d+")");for(s.getLengthInBits()+4<=8*d&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*d)&&(s.put(l.PAD0,8),!(s.getLengthInBits()>=8*d));)s.put(l.PAD1,8);return l.createBytes(s,n)},l.createBytes=function(e,t){for(var r=0,n=0,i=0,o=Array(t.length),l=Array(t.length),u=0;u=0?p.get(m):0}}for(var v=0,f=0;f=256;)e-=255;return t.EXP_TABLE[e]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},r=0;r<8;r++)t.EXP_TABLE[r]=1<=0;)t^=s.G15<=0;)t^=s.G18<>>=1;return t},getPatternPosition:function(e){return s.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,r){switch(e){case a.PATTERN000:return(t+r)%2==0;case a.PATTERN001:return t%2==0;case a.PATTERN010:return r%3==0;case a.PATTERN011:return(t+r)%3==0;case a.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2==0;case a.PATTERN101:return t*r%2+t*r%3==0;case a.PATTERN110:return(t*r%2+t*r%3)%2==0;case a.PATTERN111:return(t*r%3+(t+r)%2)%2==0;default:throw Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new i([1],0),r=0;r5&&(r+=3+o-5)}for(var n=0;n{var n,i;n=e,i=function(e){var t,r=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,n=2*536870912,i=new WeakMap,o=(t=function(e,t){return i.set(e,t),t},function(e){var o=i.get(e),a=void 0===o?e.size:or)throw Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;e.has(a);)a=Math.floor(Math.random()*r);return t(e,a)});e.addUniqueNumber=function(e){var t=o(e);return e.add(t),t},e.generateUniqueNumber=o},"object"==typeof e&&"u">typeof t?i(e):"function"==typeof define&&r.amdO?define(["exports"],i):i((n="u">typeof globalThis?globalThis:n||self).fastUniqueNumbers={})},()=>(o||i((o={exports:{}}).exports,o),o.exports))())?c(p(a)):{},((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of h(t))m.call(e,r)||void 0===r||d(e,r,{get:()=>t[r],enumerable:!(n=f(t,r))||n.enumerable});return e})(a&&a.__esModule?s:d(s,"default",{value:a,enumerable:!0}),a)),g=e=>void 0!==e.method&&"call"===e.method,y=e=>null===e.error&&"number"==typeof e.id;l=e=>{let t=new Map([[0,()=>{}]]),r=new Map([[0,()=>{}]]),n=new Map,i=new Worker(e);return i.addEventListener("message",({data:e})=>{if(g(e)){let{params:{timerId:i,timerType:o}}=e;if("interval"===o){let e=t.get(i);if("number"==typeof e){let t=n.get(e);if(void 0===t||t.timerId!==i||t.timerType!==o)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e();else throw Error("The timer is in an undefined state.")}else if("timeout"===o){let e=r.get(i);if("number"==typeof e){let t=n.get(e);if(void 0===t||t.timerId!==i||t.timerType!==o)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e(),r.delete(i);else throw Error("The timer is in an undefined state.")}}else if(y(e)){let{id:i}=e,o=n.get(i);if(void 0===o)throw Error("The timer is in an undefined state.");let{timerId:a,timerType:s}=o;n.delete(i),"interval"===s?t.delete(a):r.delete(a)}else{let{error:{message:t}}=e;throw Error(t)}}),{clearInterval:e=>{let r=(0,v.generateUniqueNumber)(n);n.set(r,{timerId:e,timerType:"interval"}),t.set(e,r),i.postMessage({id:r,method:"clear",params:{timerId:e,timerType:"interval"}})},clearTimeout:e=>{let t=(0,v.generateUniqueNumber)(n);n.set(t,{timerId:e,timerType:"timeout"}),r.set(e,t),i.postMessage({id:t,method:"clear",params:{timerId:e,timerType:"timeout"}})},setInterval:(e,r)=>{let n=(0,v.generateUniqueNumber)(t);return t.set(n,()=>{e(),"function"==typeof t.get(n)&&i.postMessage({id:null,method:"set",params:{delay:r,now:performance.now(),timerId:n,timerType:"interval"}})}),i.postMessage({id:null,method:"set",params:{delay:r,now:performance.now(),timerId:n,timerType:"interval"}}),n},setTimeout:(e,t)=>{let n=(0,v.generateUniqueNumber)(r);return r.set(n,e),i.postMessage({id:null,method:"set",params:{delay:t,now:performance.now(),timerId:n,timerType:"timeout"}}),n}}},n=null,()=>{if(null!==n)return n;let e=new Blob(['(()=>{"use strict";const e=new Map,t=new Map,r=(e,t)=>{let r,o;const i=performance.now();r=i,o=e-Math.max(0,i-t);return{expected:r+o,remainingDelay:o}},o=(e,t,r,i)=>{const s=performance.now();s>r?postMessage({id:null,method:"call",params:{timerId:t,timerType:i}}):e.set(t,setTimeout(o,r-s,e,t,r,i))};addEventListener("message",(i=>{let{data:s}=i;try{if("clear"===s.method){const{id:r,params:{timerId:o,timerType:i}}=s;if("interval"===i)(t=>{const r=e.get(t);if(void 0===r)throw new Error(\'There is no interval scheduled with the given id "\'.concat(t,\'".\'));clearTimeout(r),e.delete(t)})(o),postMessage({error:null,id:r});else{if("timeout"!==i)throw new Error(\'The given type "\'.concat(i,\'" is not supported\'));(e=>{const r=t.get(e);if(void 0===r)throw new Error(\'There is no timeout scheduled with the given id "\'.concat(e,\'".\'));clearTimeout(r),t.delete(e)})(o),postMessage({error:null,id:r})}}else{if("set"!==s.method)throw new Error(\'The given method "\'.concat(s.method,\'" is not supported\'));{const{params:{delay:i,now:n,timerId:a,timerType:d}}=s;if("interval"===d)((t,i,s)=>{const{expected:n,remainingDelay:a}=r(t,s);e.set(i,setTimeout(o,a,e,i,n,"interval"))})(i,a,n);else{if("timeout"!==d)throw new Error(\'The given type "\'.concat(d,\'" is not supported\'));((e,i,s)=>{const{expected:n,remainingDelay:a}=r(e,s);t.set(i,setTimeout(o,a,t,i,n,"timeout"))})(i,a,n)}}}}catch(e){postMessage({error:{message:e.message},id:s.id,result:null})}}))})();'],{type:"application/javascript; charset=utf-8"}),t=URL.createObjectURL(e);return n=l(t),setTimeout(()=>URL.revokeObjectURL(t)),n};var b=(typeof window>"u"?"undefined":typeof window)=="object",x={setTimeout:b?setTimeout.bind(window):setTimeout,clearTimeout:b?clearTimeout.bind(window):clearTimeout,setInterval:b?setInterval.bind(window):setInterval,clearInterval:b?clearInterval.bind(window):clearInterval},w={},E=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,w[e]=w[e]||[],w[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){if(e.storageArea!==window.localStorage||e.key.substring(0,this.name.length)!==this.name||null===e.newValue)return;let t=JSON.parse(e.newValue);this.mc.port2.postMessage(t)}postMessage(e){if(this.closed)throw Error("InvalidStateError");let t=JSON.stringify(e),r=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(r,t),x.setTimeout(()=>{window.localStorage.removeItem(r)},500),w[this.name].forEach(e=>{e!==this&&e.mc.port2.postMessage(JSON.parse(t))})}close(){if(this.closed)return;this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage);let e=w[this.name].indexOf(this);w[this.name].splice(e,1)}get onmessage(){return this.mc.port1.onmessage}set onmessage(e){this.mc.port1.onmessage=e}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(e){this.mc.port1.onmessageerror=e}addEventListener(e,t){return this.mc.port1.addEventListener(e,t)}removeEventListener(e,t){return this.mc.port1.removeEventListener(e,t)}dispatchEvent(e){return this.mc.port1.dispatchEvent(e)}},j=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:E;function S(){return Math.random().toString(36).substring(2)}var C=class{options;channel;token=S();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(e,t){this.channel=e,this.options=t,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return this.reApply=!0,!1;this.isApplying=!0;let e=!1,t=t=>{let{token:r,action:n}=t.data;r!==this.token&&(0===n&&r>this.token&&(e=!0),1===n&&(e=!0))};this.channel.addEventListener("message",t);try{return this.sendAction(0),await function(e=0){return new Promise(t=>x.setTimeout(t,e))}(this.options.responseTime),this.channel.removeEventListener("message",t),this.isApplying=!1,e?!!this.reApply&&this.apply():(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let e=!1,t=null;return new Promise(r=>{let n=()=>{if(e)return;e=!0;try{x.clearInterval(t)}catch{}let n=this.intervals.indexOf(t);n>=0&&this.intervals.splice(n,1),this.channel.removeEventListener("message",i),r()};t=x.setInterval(()=>{this.apply().then(()=>{this.isLeader&&n()})},this.options.fallbackInterval),this.intervals.push(t);let i=e=>{let{action:t}=e.data;2===t&&this.apply().then(()=>{this.isLeader&&n()})};this.channel.addEventListener("message",i)})}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;let e=e=>{let{action:t}=e.data;0===t&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred||(this.deferred=this.awaitLeadership()),this.deferred}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach(e=>this.channel.removeEventListener("message",e)),this.intervals.forEach(e=>x.clearInterval(e))}catch{}}}},k=class{channel;options;elector;token=S();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;this.options=e,this.channel=new j(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new C(this.channel,{fallbackInterval:2e3,responseTime:100}),this.elector.waitForLeadership()),this.channel.addEventListener("message",e=>{let{action:t,token:r,data:n}=e.data;switch(t){case 3:this.registry.set(r,2);break;case 4:this.registry.delete(r);break;case 5:this.idle(r);break;case 6:this.active(r);break;case 7:this.prompt(r);break;case 8:this.start(r);break;case 9:this.reset(r);break;case 10:this.activate(r);break;case 11:this.pause(r);break;case 12:this.resume(r);break;case 13:this.options.onMessage(n)}}),this.send(3)}get isLeader(){if(!this.elector)throw Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.');return this.elector.isLeader}prompt(e=this.token){this.registry.set(e,0);let t=[...this.registry.values()].every(e=>0===e);e===this.token&&this.send(7),t&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);let t=[...this.registry.values()].every(e=>2===e);e===this.token&&this.send(5),!this.allIdle&&t&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);let t=[...this.registry.values()].some(e=>1===e);e===this.token&&this.send(6),t&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},A=b?document:null,O=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function T(e,t){let r=0;return function(...n){let i=new Date().getTime();if(!(i-rDate.now();function M({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:r=0,element:n=A,events:i=O,timers:o,immediateEvents:a=[],onPresenceChange:s=()=>{},onPrompt:l=()=>{},onIdle:c=()=>{},onActive:d=()=>{},onAction:f=()=>{},onMessage:h=()=>{},debounce:p=0,throttle:m=0,eventsThrottle:v=200,startOnMount:g=!0,startManually:y=!1,stopOnIdle:w=!1,crossTab:E=!1,name:j="idle-timer",syncTimers:S=0,leaderElection:C=!1,disabled:M=!1}={}){let R=(0,u.useRef)(_()),N=(0,u.useRef)(_()),P=(0,u.useRef)(null),L=(0,u.useRef)(null),D=(0,u.useRef)(0),I=(0,u.useRef)(0),F=(0,u.useRef)(0),V=(0,u.useRef)(0),B=(0,u.useRef)(!1),U=(0,u.useRef)(!1),z=(0,u.useRef)(!1),H=(0,u.useRef)(!0),$=(0,u.useRef)(!1),W=(0,u.useRef)(null),q=(0,u.useRef)(null),G=(0,u.useRef)(e),Z=(0,u.useRef)(0);(0,u.useEffect)(()=>{if(t&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),r&&t)throw Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(e>=2147483647)throw Error(`\u274C The value for the timeout property must fit in a 32 bit signed integer, 2147483647.`);if(t>=2147483647)throw Error(`\u274C The value for the promptTimeout property must fit in a 32 bit signed integer, 2147483647.`);if(r>=2147483647)throw Error(`\u274C The value for the promptBeforeIdle property must fit in a 32 bit signed integer, 2147483647.`);if(r>=e)throw Error(`\u274C The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);if(r?(G.current=e-r,Z.current=r):(G.current=e,Z.current=t),!H.current){if(y||M)return;B.current&&(en.current(null,eF),q.current&&q.current.active()),ey()}},[e,t,r,y,M]);let Y=(0,u.useRef)(w);(0,u.useEffect)(()=>{Y.current=w},[w]);let X=(0,u.useRef)(a),K=(0,u.useRef)(n),J=(0,u.useRef)([...new Set([...i,...a]).values()]),Q=(0,u.useRef)(M);(0,u.useEffect)(()=>{Q.current=M,!H.current&&(M?ew():y||ey())},[M]);let ee=(0,u.useRef)(s);(0,u.useEffect)(()=>{ee.current=s},[s]);let et=(0,u.useRef)(l);(0,u.useEffect)(()=>{et.current=l},[l]);let er=(0,u.useRef)(c);(0,u.useEffect)(()=>{er.current=c},[c]);let en=(0,u.useRef)(d);(0,u.useEffect)(()=>{en.current=d},[d]);let ei=(0,u.useRef)(f);(0,u.useEffect)(()=>{ei.current=f},[f]);let eo=(0,u.useRef)(h);(0,u.useEffect)(()=>{eo.current=h},[h]);let ea=(0,u.useMemo)(()=>{let e=(e,t)=>ei.current(e,t);return p>0?function(e,t){let r;function n(...i){r&&clearTimeout(r),r=setTimeout(()=>{e(...i),r=null},t)}return n.cancel=function(){clearTimeout(r)},n}(e,p):m>0?T(e,m):e},[m,p]),es=(0,u.useRef)();(0,u.useEffect)(()=>{E&&S&&(es.current=T(()=>{q.current.active()},S))},[E,S]);let el=()=>{null!==W.current&&(x.clearTimeout(W.current),W.current=null)},eu=(e,t=!0)=>{el(),W.current=x.setTimeout(eh,e||G.current),t&&(L.current=_())},ec=e=>{U.current||B.current||(et.current(e,eF),ee.current({type:"active",prompted:!0},eF)),V.current=0,F.current=_(),U.current=!0,eu(Z.current,!1)},ed=()=>{el(),B.current||(er.current(null,eF),ee.current({type:"idle"},eF)),B.current=!0,P.current=_(),Y.current?eg():U.current&&(F.current=0,U.current=!1)},ef=e=>{el(),(B.current||U.current)&&(en.current(e,eF),ee.current({type:"active",prompted:!1},eF)),U.current=!1,F.current=0,B.current=!1,D.current+=_()-P.current,I.current+=_()-P.current,ev(),eu()},eh=e=>{if(!B.current){ea.cancel&&ea.cancel();let t=_()-L.current;if(!(G.current+Z.current0&&!U.current){q.current?q.current.prompt():ec(e);return}q.current?q.current.idle():ed();return}q.current?q.current.active():ef(e)},ep=e=>{if(g||L.current||(L.current=_(),en.current(null,eF)),ea(e,eF),U.current)return;if(el(),!B.current&&X.current.includes(e.type)){eh(e);return}let t=_()-L.current;if(B.current&&!w||!B.current&&t>=G.current){eh(e);return}z.current=!1,V.current=0,F.current=0,eu(),E&&S&&es.current()},em=(0,u.useRef)(ep);(0,u.useEffect)(()=>{let e=$.current;e&&eg(),v>0?em.current=T(ep,v):em.current=ep,e&&ev()},[v,m,p,ei,E,S]);let ev=()=>{b&&K.current&&($.current||(J.current.forEach(e=>{K.current.addEventListener(e,em.current,{capture:!0,passive:!0})}),$.current=!0))},eg=(e=!1)=>{b&&K.current&&($.current||e)&&(J.current.forEach(e=>{K.current.removeEventListener(e,em.current,{capture:!0})}),$.current=!1)},ey=(0,u.useCallback)(e=>!Q.current&&(el(),ev(),B.current=!1,U.current=!1,z.current=!1,V.current=0,F.current=0,q.current&&!e&&q.current.start(),eu(),!0),[W,B,Q,G,q]),eb=(0,u.useCallback)(e=>!Q.current&&(el(),ev(),N.current=_(),D.current+=_()-P.current,I.current+=_()-P.current,D.current=0,B.current=!1,U.current=!1,z.current=!1,V.current=0,F.current=0,q.current&&!e&&q.current.reset(),y||eu(),!0),[W,B,G,y,Q,q]),ex=(0,u.useCallback)(e=>!Q.current&&(el(),ev(),(B.current||U.current)&&ef(),B.current=!1,U.current=!1,z.current=!1,V.current=0,F.current=0,N.current=_(),q.current&&!e&&q.current.activate(),eu(),!0),[W,B,U,Q,G,q]),ew=(0,u.useCallback)((e=!1)=>!Q.current&&!z.current&&(V.current=eT(),z.current=!0,eg(),el(),q.current&&!e&&q.current.pause(),!0),[W,Q,q]),eE=(0,u.useCallback)((e=!1)=>!Q.current&&!!z.current&&(z.current=!1,U.current||ev(),B.current||eu(V.current),F.current&&(F.current=_()),q.current&&!e&&q.current.resume(),!0),[W,G,Q,V,q]),ej=(0,u.useCallback)((e,t)=>(q.current?(t&&eo.current(e,eF),q.current.message(e)):t&&eo.current(e,eF),!0),[h]),eS=(0,u.useCallback)(()=>B.current,[B]),eC=(0,u.useCallback)(()=>U.current,[U]),ek=(0,u.useCallback)(()=>q.current?q.current.isLeader:null,[q]),eA=(0,u.useCallback)(()=>q.current?q.current.isLastActive:null,[q]),eO=(0,u.useCallback)(()=>q.current?q.current.token:null,[q]),eT=(0,u.useCallback)(()=>{if(z.current)return V.current;let e=Math.floor((V.current?V.current:Z.current+G.current)-(L.current?_()-L.current:0));return e<0?0:Math.abs(e)},[G,Z,U,V,L]),e_=(0,u.useCallback)(()=>Math.round(_()-N.current),[N]),eM=(0,u.useCallback)(()=>Math.round(_()-R.current),[R]),eR=(0,u.useCallback)(()=>P.current?new Date(P.current):null,[P]),eN=(0,u.useCallback)(()=>L.current?new Date(L.current):null,[L]),eP=(0,u.useCallback)(()=>B.current?Math.round(_()-P.current+D.current):Math.round(D.current),[P,D]),eL=(0,u.useCallback)(()=>B.current?Math.round(_()-P.current+I.current):Math.round(I.current),[P,I]),eD=(0,u.useCallback)(()=>{let e=Math.round(e_()-eP());return e>=0?e:0},[P,D]),eI=(0,u.useCallback)(()=>{let e=Math.round(eM()-eL());return e>=0?e:0},[P,D]);(0,u.useEffect)(()=>{if(p>0&&m>0)throw Error("❌ onAction can either be throttled or debounced, not both.");o&&(x.setTimeout=o.setTimeout,x.clearTimeout=o.clearTimeout,x.setInterval=o.setInterval,x.clearInterval=o.clearInterval);let e=()=>{q.current&&q.current.close(),ea.cancel&&ea.cancel(),el(),eg(!0)};return b&&window.addEventListener("beforeunload",e),()=>{b&&window.removeEventListener("beforeunload",e),q.current&&q.current.close(),ea.cancel&&ea.cancel(),el(),eg(!0)}},[]),(0,u.useEffect)(()=>{q.current&&q.current.close(),E?q.current=new k({channelName:j,leaderElection:C,onPrompt:()=>{ec()},onIdle:()=>{ed()},onActive:()=>{ef()},onMessage:e=>{eo.current(e,eF)},start:ey,reset:eb,activate:ex,pause:ew,resume:eE}):q.current=null},[E,j,C,et,er,en,eo,ey,eb,ew,eE]),(0,u.useEffect)(()=>{H.current||(el(),eg(!0)),y||M||(g?ey():ev())},[y,g,M,H]),(0,u.useEffect)(()=>{if(!H.current){let e=[...new Set([...i,...a]).values()];eg(),J.current=e,K.current=n,X.current=a,y||M||(g?ey():ev())}},[n,JSON.stringify(i),JSON.stringify(a),H,M,y,g]),(0,u.useEffect)(()=>{H.current&&(H.current=!1)},[H]);let eF={message:ej,start:ey,reset:eb,activate:ex,pause:ew,resume:eE,isIdle:eS,isPrompted:eC,isLeader:ek,isLastActiveTab:eA,getTabId:eO,getRemainingTime:eT,getElapsedTime:e_,getTotalElapsedTime:eM,getLastIdleTime:eR,getLastActiveTime:eN,getIdleTime:eP,getTotalIdleTime:eL,getActiveTime:eD,getTotalActiveTime:eI,setOnPresenceChange:e=>{s=e,ee.current=e},setOnPrompt:e=>{l=e,et.current=e},setOnIdle:e=>{c=e,er.current=e},setOnActive:e=>{d=e,en.current=e},setOnAction:e=>{f=e,ei.current=e},setOnMessage:e=>{h=e,eo.current=e}};return eF}(0,u.createContext)(null).Consumer},72660:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(13980)),i=o(r(2784));function o(e){return e&&e.__esModule?e:{default:e}}var a={d:n.default.string.isRequired,fill:n.default.string.isRequired,transformX:n.default.number.isRequired,transformY:n.default.number.isRequired},s=function(e){var t=e.d,r=e.fill,n=e.transformX,o=e.transformY;return i.default.createElement("path",{d:t,fill:r,transform:"matrix("+[1,0,0,1,n,o]+")"})};s.propTypes=a,s.defaultProps={},t.default=s},76672:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["children","size","title","xmlns"]);return o.default.createElement("svg",n({},s,{height:r,width:r,xmlns:a}),i?o.default.createElement("title",null,i):null,t)};l.propTypes=s,l.defaultProps={title:void 0,xmlns:"http://www.w3.org/2000/svg"},t.default=l},38001:function(e,t,r){"use strict";var n=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["bgColor","fgColor","level","size","value"]),h=new i.default(-1,o.default[a]);h.addData(d),h.make();var p=h.modules,m=s/p.length;return l.default.createElement(c.default,n({},f,{size:s}),p.map(function(e,n){return e.map(function(e,i){var o=Math.round(i*m),a=Math.round(n*m),s=Math.round((i+1)*m)-o,c=Math.round((n+1)*m)-a;return l.default.createElement(u.default,{key:"rectangle-"+n+"-"+i,d:"M 0 0 L "+s+" 0 L "+s+" "+c+" L 0 "+c+" Z",fill:e?r:t,transformX:o,transformY:a})})}))};h.propTypes=f,h.defaultProps={bgColor:"#FFFFFF",fgColor:"#000000",level:"L",size:256},t.Z=(0,s.memo)(h)},32718:function(e,t,r){var n,i=r(58085),o=r(41964),a=r(53207),s=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;e.exports=function(e,t){return n=0,t=Math.pow(10,void 0===t?5:t),o(e=e.replace(/\n+/g," "),/((?:\-[a-z]+\-)?calc)\(/,function e(r,o,l){if(n++>100)throw n=0,Error("Call stack overflow for "+l);if(""===r)throw Error(o+"(): '"+l+"' must contain a non-whitespace string");var u,c=function(e){for(var t=[],r=[],n=/[\.0-9]([%a-z]+)/gi,i=n.exec(e);i;)i&&i[1]&&(-1===r.indexOf(i[1].toLowerCase())&&(t.push(i[1]),r.push(i[1].toLowerCase())),i=n.exec(e));return t}(r=function(t,r){t=t.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var n,o="",a=t;n=s.exec(a);){n[0].index>0&&(o+=a.substring(0,n[0].index));var l=i("(",")",a.substring([0].index));if(""===l.body)throw Error("'"+t+"' must contain a non-whitespace string");var u=e(l.body,"",r);o+=l.pre+u,a=l.post}return o+a}(r,l));if(c.length>1||r.indexOf("var(")>-1)return o+"("+r+")";var d=c[0]||"";"%"===d&&(r=r.replace(/\b[0-9\.]+%/g,function(e){return .01*parseFloat(e.slice(0,-1))}));var f=r.replace(RegExp(d,"gi"),"");try{u=a.eval(f)}catch(e){return o+"("+r+")"}return"%"===d&&(u*=100),(o.length||"%"===d)&&(u=Math.round(u*t)/t),u+=d})}},58085:function(e){function t(e,t,i){e instanceof RegExp&&(e=r(e,i)),t instanceof RegExp&&(t=r(t,i));var o=n(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function r(e,t){var r=t.match(e);return r?r[0]:null}function n(e,t,r){var n,i,o,a,s,l=r.indexOf(e),u=r.indexOf(t,l+1),c=l;if(l>=0&&u>0){for(n=[],o=r.length;c>=0&&!s;)c==l?(n.push(c),l=r.indexOf(e,c+1)):1==n.length?s=[n.pop(),u]:((i=n.pop())=0?l:u;n.length&&(s=[o,a])}return s}e.exports=t,t.range=n},41964:function(e,t,r){var n=r(82294);e.exports=function e(t,r,i){return(function(e,t){var r=[],i="string"==typeof t?RegExp("\\b("+t+")\\("):t;do{var o=i.exec(e);if(!o)break;if(void 0===o[1])throw Error("Missing the first couple of parenthesis to get the function identifier in "+t);var a=o[1],s=o.index,l=n("(",")",e.substring(s));if(!l||l.start!==o[0].length-1)throw SyntaxError(a+"(): missing closing ')' in the value '"+e+"'");r.push({matches:l,functionIdentifier:a}),e=l.post}while(i.test(e));return r})(t,r).reduce(function(n,o){var a,s;return n.replace(o.functionIdentifier+"("+o.matches.body+")",(a=o.matches.body,s=o.functionIdentifier,i(e(a,r,i),s,t)))},t)}},7847:function(e,t,r){let n=Symbol("SemVer ANY");class i{static get ANY(){return n}constructor(e,t){if(t=o(t),e instanceof i){if(!!t.loose===e.loose)return e;e=e.value}u("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(e){let t=this.options.loose?a[s.COMPARATORLOOSE]:a[s.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(u("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new d(e.value,t).test(this.value):""===e.operator?""===e.value||new d(this.value,t).test(e.semver):!((t=o(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"))}}e.exports=i;let o=r(71388),{safeRe:a,t:s}=r(94808),l=r(28117),u=r(10952),c=r(52435),d=r(66843)},66843:function(e,t,r){class n{constructor(e,t){if(t=a(t),e instanceof n){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;return new n(e.raw,t)}if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!g(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(1===e.length&&y(e[0])){this.set=[e];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let t=(this.options.includePrerelease&&m)|(this.options.loose&&v),r=t+":"+e,n=o.get(r);if(n)return n;let i=this.options.loose,a=i?c[d.HYPHENRANGELOOSE]:c[d.HYPHENRANGE];l("hyphen replace",e=e.replace(a,_(this.options.includePrerelease))),l("comparator trim",e=e.replace(c[d.COMPARATORTRIM],f)),l("tilde trim",e=e.replace(c[d.TILDETRIM],h)),l("caret trim",e=e.replace(c[d.CARETTRIM],p));let u=e.split(" ").map(e=>x(e,this.options)).join(" ").split(/\s+/).map(e=>T(e,this.options));i&&(u=u.filter(e=>(l("loose invalid filter",e,this.options),!!e.match(c[d.COMPARATORLOOSE])))),l("range list",u);let y=new Map,b=u.map(e=>new s(e,this.options));for(let e of b){if(g(e))return[e];y.set(e.value,e)}y.size>1&&y.has("")&&y.delete("");let w=[...y.values()];return o.set(r,w),w}intersects(e,t){if(!(e instanceof n))throw TypeError("a Range is required");return this.set.some(r=>b(r,t)&&e.set.some(e=>b(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}for(let t=0;t"<0.0.0-0"===e.value,y=e=>""===e.value,b=(e,t)=>{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(e=>i.intersects(e,t)),i=n.pop();return r},x=(e,t)=>(l("comp",e,t),l("caret",e=S(e,t)),l("tildes",e=E(e,t)),l("xrange",e=k(e,t)),l("stars",e=O(e,t)),e),w=e=>!e||"x"===e.toLowerCase()||"*"===e,E=(e,t)=>e.trim().split(/\s+/).map(e=>j(e,t)).join(" "),j=(e,t)=>{let r=t.loose?c[d.TILDELOOSE]:c[d.TILDE];return e.replace(r,(t,r,n,i,o)=>{let a;return l("tilde",e,t,r,n,i,o),w(r)?a="":w(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:w(i)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(l("replaceTilde pr",o),a=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,l("tilde return",a),a})},S=(e,t)=>e.trim().split(/\s+/).map(e=>C(e,t)).join(" "),C=(e,t)=>{l("caret",e,t);let r=t.loose?c[d.CARETLOOSE]:c[d.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,i,o,a)=>{let s;return l("caret",e,t,r,i,o,a),w(r)?s="":w(i)?s=`>=${r}.0.0${n} <${+r+1}.0.0-0`:w(o)?s="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:a?(l("replaceCaret pr",a),s="0"===r?"0"===i?`>=${r}.${i}.${o}-${a} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${a} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${a} <${+r+1}.0.0-0`):(l("no pr"),s="0"===r?"0"===i?`>=${r}.${i}.${o}${n} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o} <${+r+1}.0.0-0`),l("caret return",s),s})},k=(e,t)=>(l("replaceXRanges",e,t),e.split(/\s+/).map(e=>A(e,t)).join(" ")),A=(e,t)=>{e=e.trim();let r=t.loose?c[d.XRANGELOOSE]:c[d.XRANGE];return e.replace(r,(r,n,i,o,a,s)=>{l("xRange",e,r,n,i,o,a,s);let u=w(i),c=u||w(o),d=c||w(a);return"="===n&&d&&(n=""),s=t.includePrerelease?"-0":"",u?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(c&&(o=0),a=0,">"===n?(n=">=",c?(i=+i+1,o=0):o=+o+1,a=0):"<="===n&&(n="<",c?i=+i+1:o=+o+1),"<"===n&&(s="-0"),r=`${n+i}.${o}.${a}${s}`):c?r=`>=${i}.0.0${s} <${+i+1}.0.0-0`:d&&(r=`>=${i}.${o}.0${s} <${i}.${+o+1}.0-0`),l("xRange return",r),r})},O=(e,t)=>(l("replaceStars",e,t),e.trim().replace(c[d.STAR],"")),T=(e,t)=>(l("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?d.GTE0PRE:d.GTE0],"")),_=e=>(t,r,n,i,o,a,s,l,u,c,d,f,h)=>`${r=w(n)?"":w(i)?`>=${n}.0.0${e?"-0":""}`:w(o)?`>=${n}.${i}.0${e?"-0":""}`:a?`>=${r}`:`>=${r}${e?"-0":""}`} ${l=w(u)?"":w(c)?`<${+u+1}.0.0-0`:w(d)?`<${u}.${+c+1}.0-0`:f?`<=${u}.${c}.${d}-${f}`:e?`<${u}.${c}.${+d+1}-0`:`<=${l}`}`.trim(),M=(e,t,r)=>{for(let r=0;r0){let n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},52435:function(e,t,r){let n=r(10952),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=r(55558),{safeRe:a,t:s}=r(94808),l=r(71388),{compareIdentifiers:u}=r(14935);class c{constructor(e,t){if(t=l(t),e instanceof c){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw TypeError(`version is longer than ${i} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let r=e.trim().match(t.loose?a[s.LOOSE]:a[s.FULL]);if(!r)throw TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>o||this.major<0)throw TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=c},36694:function(e,t,r){let n=r(79943);e.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},28117:function(e,t,r){let n=r(33276),i=r(77893),o=r(16379),a=r(8463),s=r(21897),l=r(30506);e.exports=(e,t,r,u)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,u);case"!=":return i(e,r,u);case">":return o(e,r,u);case">=":return a(e,r,u);case"<":return s(e,r,u);case"<=":return l(e,r,u);default:throw TypeError(`Invalid operator: ${t}`)}}},98686:function(e,t,r){let n=r(52435),i=r(79943),{safeRe:o,t:a}=r(94808);e.exports=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=o[a.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),o[a.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;o[a.COERCERTL].lastIndex=-1}else r=e.match(o[a.COERCE]);return null===r?null:i(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)}},65914:function(e,t,r){let n=r(52435);e.exports=(e,t,r)=>{let i=new n(e,r),o=new n(t,r);return i.compare(o)||i.compareBuild(o)}},55404:function(e,t,r){let n=r(92271);e.exports=(e,t)=>n(e,t,!0)},92271:function(e,t,r){let n=r(52435);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},66007:function(e,t,r){let n=r(79943);e.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),o=r.compare(i);if(0===o)return null;let a=o>0,s=a?r:i,l=a?i:r,u=!!s.prerelease.length,c=!!l.prerelease.length;if(c&&!u)return l.patch||l.minor?s.patch?"patch":s.minor?"minor":"major":"major";let d=u?"pre":"";return r.major!==i.major?d+"major":r.minor!==i.minor?d+"minor":r.patch!==i.patch?d+"patch":"prerelease"}},33276:function(e,t,r){let n=r(92271);e.exports=(e,t,r)=>0===n(e,t,r)},16379:function(e,t,r){let n=r(92271);e.exports=(e,t,r)=>n(e,t,r)>0},8463:function(e,t,r){let n=r(92271);e.exports=(e,t,r)=>n(e,t,r)>=0},86360:function(e,t,r){let n=r(52435);e.exports=(e,t,r,i,o)=>{"string"==typeof r&&(o=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,o).version}catch(e){return null}}},21897:function(e,t,r){let n=r(92271);e.exports=(e,t,r)=>0>n(e,t,r)},30506:function(e,t,r){let n=r(92271);e.exports=(e,t,r)=>0>=n(e,t,r)},14551:function(e,t,r){let n=r(52435);e.exports=(e,t)=>new n(e,t).major},469:function(e,t,r){let n=r(52435);e.exports=(e,t)=>new n(e,t).minor},77893:function(e,t,r){let n=r(92271);e.exports=(e,t,r)=>0!==n(e,t,r)},79943:function(e,t,r){let n=r(52435);e.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}},54250:function(e,t,r){let n=r(52435);e.exports=(e,t)=>new n(e,t).patch},58204:function(e,t,r){let n=r(79943);e.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},70733:function(e,t,r){let n=r(92271);e.exports=(e,t,r)=>n(t,e,r)},72961:function(e,t,r){let n=r(65914);e.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))},59844:function(e,t,r){let n=r(66843);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}},51116:function(e,t,r){let n=r(65914);e.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))},97230:function(e,t,r){let n=r(79943);e.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}},97699:function(e,t,r){let n=r(94808),i=r(55558),o=r(52435),a=r(14935),s=r(79943),l=r(97230),u=r(36694),c=r(86360),d=r(66007),f=r(14551),h=r(469),p=r(54250),m=r(58204),v=r(92271),g=r(70733),y=r(55404),b=r(65914),x=r(51116),w=r(72961),E=r(16379),j=r(21897),S=r(33276),C=r(77893),k=r(8463),A=r(30506),O=r(28117),T=r(98686),_=r(7847),M=r(66843),R=r(59844),N=r(48865),P=r(53727),L=r(14338),D=r(21542),I=r(36240),F=r(89106),V=r(90995),B=r(47805),U=r(22013),z=r(81338),H=r(53122);e.exports={parse:s,valid:l,clean:u,inc:c,diff:d,major:f,minor:h,patch:p,prerelease:m,compare:v,rcompare:g,compareLoose:y,compareBuild:b,sort:x,rsort:w,gt:E,lt:j,eq:S,neq:C,gte:k,lte:A,cmp:O,coerce:T,Comparator:_,Range:M,satisfies:R,toComparators:N,maxSatisfying:P,minSatisfying:L,minVersion:D,validRange:I,outside:F,gtr:V,ltr:B,intersects:U,simplifyRange:z,subset:H,SemVer:o,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}},55558:function(e){let t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},10952:function(e,t,r){var n=r(34406);let i="object"==typeof n&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=i},14935:function(e){let t=/^[0-9]+$/,r=(e,r)=>{let n=t.test(e),i=t.test(r);return n&&i&&(e=+e,r=+r),e===r?0:n&&!i?-1:i&&!n?1:er(t,e)}},71388:function(e){let t=Object.freeze({loose:!0}),r=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:r},94808:function(e,t,r){let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:o}=r(55558),a=r(10952);t=e.exports={};let s=t.re=[],l=t.safeRe=[],u=t.src=[],c=t.t={},d=0,f="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",o],[f,i]],p=e=>{for(let[t,r]of h)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},m=(e,t,r)=>{let n=p(t),i=d++;a(e,i,t),c[e]=i,u[i]=t,s[i]=new RegExp(t,r?"g":void 0),l[i]=new RegExp(n,r?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),m("MAINVERSION",`(${u[c.NUMERICIDENTIFIER]})\\.(${u[c.NUMERICIDENTIFIER]})\\.(${u[c.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${u[c.NUMERICIDENTIFIERLOOSE]})\\.(${u[c.NUMERICIDENTIFIERLOOSE]})\\.(${u[c.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${u[c.NUMERICIDENTIFIER]}|${u[c.NONNUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${u[c.NUMERICIDENTIFIERLOOSE]}|${u[c.NONNUMERICIDENTIFIER]})`),m("PRERELEASE",`(?:-(${u[c.PRERELEASEIDENTIFIER]}(?:\\.${u[c.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${u[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[c.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${f}+`),m("BUILD",`(?:\\+(${u[c.BUILDIDENTIFIER]}(?:\\.${u[c.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${u[c.MAINVERSION]}${u[c.PRERELEASE]}?${u[c.BUILD]}?`),m("FULL",`^${u[c.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${u[c.MAINVERSIONLOOSE]}${u[c.PRERELEASELOOSE]}?${u[c.BUILD]}?`),m("LOOSE",`^${u[c.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${u[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${u[c.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${u[c.XRANGEIDENTIFIER]})(?:\\.(${u[c.XRANGEIDENTIFIER]})(?:\\.(${u[c.XRANGEIDENTIFIER]})(?:${u[c.PRERELEASE]})?${u[c.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${u[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[c.XRANGEIDENTIFIERLOOSE]})(?:${u[c.PRERELEASELOOSE]})?${u[c.BUILD]}?)?)?`),m("XRANGE",`^${u[c.GTLT]}\\s*${u[c.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${u[c.GTLT]}\\s*${u[c.XRANGEPLAINLOOSE]}$`),m("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),m("COERCERTL",u[c.COERCE],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${u[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",m("TILDE",`^${u[c.LONETILDE]}${u[c.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${u[c.LONETILDE]}${u[c.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${u[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",m("CARET",`^${u[c.LONECARET]}${u[c.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${u[c.LONECARET]}${u[c.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${u[c.GTLT]}\\s*(${u[c.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${u[c.GTLT]}\\s*(${u[c.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${u[c.GTLT]}\\s*(${u[c.LOOSEPLAIN]}|${u[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${u[c.XRANGEPLAIN]})\\s+-\\s+(${u[c.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${u[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[c.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},90995:function(e,t,r){let n=r(89106);e.exports=(e,t,r)=>n(e,t,">",r)},22013:function(e,t,r){let n=r(66843);e.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))},47805:function(e,t,r){let n=r(89106);e.exports=(e,t,r)=>n(e,t,"<",r)},53727:function(e,t,r){let n=r(52435),i=r(66843);e.exports=(e,t,r)=>{let o=null,a=null,s=null;try{s=new i(t,r)}catch(e){return null}return e.forEach(e=>{s.test(e)&&(!o||-1===a.compare(e))&&(o=e,a=new n(o,r))}),o}},14338:function(e,t,r){let n=r(52435),i=r(66843);e.exports=(e,t,r)=>{let o=null,a=null,s=null;try{s=new i(t,r)}catch(e){return null}return e.forEach(e=>{s.test(e)&&(!o||1===a.compare(e))&&(o=e,a=new n(o,r))}),o}},21542:function(e,t,r){let n=r(52435),i=r(66843),o=r(16379);e.exports=(e,t)=>{e=new i(e,t);let r=new n("0.0.0");if(e.test(r)||(r=new n("0.0.0-0"),e.test(r)))return r;r=null;for(let t=0;t{let t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!a||o(t,a))&&(a=t);break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),a&&(!r||o(r,a))&&(r=a)}return r&&e.test(r)?r:null}},89106:function(e,t,r){let n=r(52435),i=r(7847),{ANY:o}=i,a=r(66843),s=r(59844),l=r(16379),u=r(21897),c=r(30506),d=r(8463);e.exports=(e,t,r,f)=>{let h,p,m,v,g;switch(e=new n(e,f),t=new a(t,f),r){case">":h=l,p=c,m=u,v=">",g=">=";break;case"<":h=u,p=d,m=l,v="<",g="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,f))return!1;for(let r=0;r{e.semver===o&&(e=new i(">=0.0.0")),a=a||e,s=s||e,h(e.semver,a.semver,f)?a=e:m(e.semver,s.semver,f)&&(s=e)}),a.operator===v||a.operator===g||(!s.operator||s.operator===v)&&p(e,s.semver)||s.operator===g&&m(e,s.semver))return!1}return!0}},81338:function(e,t,r){let n=r(59844),i=r(92271);e.exports=(e,t,r)=>{let o=[],a=null,s=null,l=e.sort((e,t)=>i(e,t,r));for(let e of l){let i=n(e,t,r);i?(s=e,a||(a=e)):(s&&o.push([a,s]),s=null,a=null)}a&&o.push([a,null]);let u=[];for(let[e,t]of o)e===t?u.push(e):t||e!==l[0]?t?e===l[0]?u.push(`<=${t}`):u.push(`${e} - ${t}`):u.push(`>=${e}`):u.push("*");let c=u.join(" || "),d="string"==typeof t.raw?t.raw:String(t);return c.length=0.0.0-0")],u=[new i(">=0.0.0")],c=(e,t,r)=>{let n,i,c,h,p,m,v;if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=r.includePrerelease?l:u}if(1===t.length&&t[0].semver===o){if(r.includePrerelease)return!0;t=u}let g=new Set;for(let t of e)">"===t.operator||">="===t.operator?n=d(n,t,r):"<"===t.operator||"<="===t.operator?i=f(i,t,r):g.add(t.semver);if(g.size>1||n&&i&&((c=s(n.semver,i.semver,r))>0||0===c&&(">="!==n.operator||"<="!==i.operator)))return null;for(let e of g){if(n&&!a(e,String(n),r)||i&&!a(e,String(i),r))return null;for(let n of t)if(!a(e,String(n),r))return!1;return!0}let y=!!i&&!r.includePrerelease&&!!i.semver.prerelease.length&&i.semver,b=!!n&&!r.includePrerelease&&!!n.semver.prerelease.length&&n.semver;for(let e of(y&&1===y.prerelease.length&&"<"===i.operator&&0===y.prerelease[0]&&(y=!1),t)){if(v=v||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,n){if(b&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===b.major&&e.semver.minor===b.minor&&e.semver.patch===b.patch&&(b=!1),">"===e.operator||">="===e.operator){if((h=d(n,e,r))===e&&h!==n)return!1}else if(">="===n.operator&&!a(n.semver,String(e),r))return!1}if(i){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),"<"===e.operator||"<="===e.operator){if((p=f(i,e,r))===e&&p!==i)return!1}else if("<="===i.operator&&!a(i.semver,String(e),r))return!1}if(!e.operator&&(i||n)&&0!==c)return!1}return(!n||!m||!!i||0===c)&&(!i||!v||!!n||0===c)&&!b&&!y},d=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n>0?e:n<0?t:">"===t.operator&&">="===e.operator?t:e},f=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n<0?e:n>0?t:"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;r:for(let n of e.set){for(let e of t.set){let t=c(n,e,r);if(i=i||null!==t,t)continue r}if(i)return!1}return!0}},48865:function(e,t,r){let n=r(66843);e.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},36240:function(e,t,r){let n=r(66843);e.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}}},6692:function(e,t,r){let n=r(83128);e.exports=(n.__esModule?n:{default:n}).default},83128:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:()=>a});let i=(n=r(37540))&&n.__esModule?n:{default:n};function o({version:e,from:t,to:r}){i.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${r}\`.`,"Update your configuration file to silence this warning."])}let a={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},get lightBlue(){return o({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return o({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return o({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return o({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return o({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}},37540:function(e,t,r){"use strict";var n,i=r(34406);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{dim:()=>l,default:()=>u});let o=(n=r(24470))&&n.__esModule?n:{default:n},a=new Set;function s(e,t,r){(void 0===i||!i.env.JEST_WORKER_ID)&&(r&&a.has(r)||(r&&a.add(r),console.warn(""),t.forEach(t=>console.warn(e,"-",t))))}function l(e){return o.default.dim(e)}let u={info(e,t){s(o.default.bold(o.default.cyan("info")),...Array.isArray(e)?[e]:[t,e])},warn(e,t){s(o.default.bold(o.default.yellow("warn")),...Array.isArray(e)?[e]:[t,e])},risk(e,t){s(o.default.bold(o.default.magenta("risk")),...Array.isArray(e)?[e]:[t,e])}}},95159:function(e){function t(e,t){var r=e.length,n=Array(r),i={},o=r,a=function(e){for(var t=new Map,r=0,n=e.length;r{},{isPersistent:!0,removeItem:()=>{}}];let l=null==t?void 0:t.serializer;return function(e,t,r=!0,l=function(e){return"undefined"===e?void 0:JSON.parse(e)},u=JSON.stringify){i.has(e)||void 0===t||null!==s(()=>localStorage.getItem(e))||s(()=>localStorage.setItem(e,u(t)));let c=(0,n.useRef)({item:null,parsed:t}),d=(0,n.useSyncExternalStore)((0,n.useCallback)(t=>{let r=r=>{e===r&&t()};return o.add(r),()=>{o.delete(r)}},[e]),()=>{var r;let n=null!==(r=s(()=>localStorage.getItem(e)))&&void 0!==r?r:null;if(i.has(e))c.current={item:n,parsed:i.get(e)};else if(n!==c.current.item){let e;try{e=null===n?t:l(n)}catch(r){e=t}c.current={item:n,parsed:e}}return c.current.parsed},()=>t),f=(0,n.useCallback)(t=>{let r=t instanceof Function?t(c.current.parsed):t;try{localStorage.setItem(e,u(r)),i.delete(e)}catch(t){i.set(e,r)}a(e)},[e,u]);return(0,n.useEffect)(()=>{if(!r)return;let t=t=>{t.storageArea===s(()=>localStorage)&&t.key===e&&a(e)};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)},[e,r]),(0,n.useMemo)(()=>[d,f,{isPersistent:d===t||!i.has(e),removeItem(){s(()=>localStorage.removeItem(e)),i.delete(e),a(e)}}],[e,f,d,t])}(e,r,null==t?void 0:t.storageSync,null==l?void 0:l.parse,null==l?void 0:l.stringify)}},20452:function(e,t,r){"use strict";/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var n=r(2784),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,a=n.useEffect,s=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return s(function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})},[e,r,t]),a(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},43100:function(e,t,r){"use strict";e.exports=r(20452)},38268:function(e){"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},8006:function(e,t,r){"use strict";function n(e){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e)});else if(arguments.length>0)for(var r=0,i=arguments.length;r1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r},n.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r},n.prototype.toArray=function(){for(var e=Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},n.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},n.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(tthis.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&ithis.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)r.push(o.value);return r},n.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,o=this.head;null!==o&&n"boolean"==typeof e?"".concat(e):0===e?"0":e,i=function(){for(var e,t,r=0,n="";rr=>{var o;if((null==t?void 0:t.variants)==null)return i(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(e=>{let t=null==r?void 0:r[e],i=null==s?void 0:s[e];if(null===t)return null;let o=n(t)||n(i);return a[e][o]}),u=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{}),c=null==t?void 0:null===(o=t.compoundVariants)||void 0===o?void 0:o.reduce((e,t)=>{let{class:r,className:n,...i}=t;return Object.entries(i).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...s,...u}[t]):({...s,...u})[t]===r})?[...e,r,n]:e},[]);return i(e,l,c,null==r?void 0:r.class,null==r?void 0:r.className)}},63955:function(e,t,r){"use strict";r.d(t,{cI:function(){return em}});var n=r(2784),i=e=>"checkbox"===e.type,o=e=>e instanceof Date,a=e=>null==e;let s=e=>"object"==typeof e;var l=e=>!a(e)&&!Array.isArray(e)&&s(e)&&!o(e),u=e=>l(e)&&e.target?i(e.target)?e.target.checked:e.target.value:e,c=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,d=(e,t)=>e.has(c(t)),f=e=>{let t=e.constructor&&e.constructor.prototype;return l(t)&&t.hasOwnProperty("isPrototypeOf")},h="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function p(e){let t;let r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(h&&(e instanceof Blob||e instanceof FileList))&&(r||l(e))))return e;else if(t=r?[]:{},Array.isArray(e)||f(e))for(let r in e)t[r]=p(e[r]);else t=e;return t}var m=e=>Array.isArray(e)?e.filter(Boolean):[],v=e=>void 0===e,g=(e,t,r)=>{if(!t||!l(e))return r;let n=m(t.split(/[,[\].]+?/)).reduce((e,t)=>a(e)?e:e[t],e);return v(n)||n===e?v(e[t])?r:e[t]:n};let y={BLUR:"blur",FOCUS_OUT:"focusout"},b={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},x={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};n.createContext(null);var w=(e,t,r,n=!0)=>{let i={defaultValues:t._defaultValues};for(let o in e)Object.defineProperty(i,o,{get:()=>(t._proxyFormState[o]!==b.all&&(t._proxyFormState[o]=!n||b.all),r&&(r[o]=!0),e[o])});return i},E=e=>l(e)&&!Object.keys(e).length,j=(e,t,r,n)=>{r(e);let{name:i,...o}=e;return E(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(e=>t[e]===(!n||b.all))},S=e=>Array.isArray(e)?e:[e],C=e=>"string"==typeof e,k=(e,t,r,n,i)=>C(e)?(n&&t.watch.add(e),g(r,e,i)):Array.isArray(e)?e.map(e=>(n&&t.watch.add(e),g(r,e))):(n&&(t.watchAll=!0),r),A=e=>/^\w*$/.test(e),O=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/));function T(e,t,r){let n=-1,i=A(t)?[t]:O(t),o=i.length,a=o-1;for(;++nt?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{};let M=(e,t,r)=>{for(let n of r||Object.keys(e)){let r=g(e,n);if(r){let{_f:e,...n}=r;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else l(n)&&M(n,t)}}};var R=e=>({isOnSubmit:!e||e===b.onSubmit,isOnBlur:e===b.onBlur,isOnChange:e===b.onChange,isOnAll:e===b.all,isOnTouch:e===b.onTouched}),N=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),P=(e,t,r)=>{let n=m(g(e,r));return T(n,"root",t[r]),T(e,r,n),e},L=e=>"boolean"==typeof e,D=e=>"file"===e.type,I=e=>"function"==typeof e,F=e=>{if(!h)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},V=e=>C(e),B=e=>"radio"===e.type,U=e=>e instanceof RegExp;let z={value:!1,isValid:!1},H={value:!0,isValid:!0};var $=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!v(e[0].attributes.value)?v(e[0].value)||""===e[0].value?H:{value:e[0].value,isValid:!0}:H:z}return z};let W={isValid:!1,value:null};var q=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,W):W;function G(e,t,r="validate"){if(V(e)||Array.isArray(e)&&e.every(V)||L(e)&&!e)return{type:r,message:V(e)?e:"",ref:t}}var Z=e=>l(e)&&!U(e)?e:{value:e,message:""},Y=async(e,t,r,n,o)=>{let{ref:s,refs:u,required:c,maxLength:d,minLength:f,min:h,max:p,pattern:m,validate:y,name:b,valueAsNumber:w,mount:j,disabled:S}=e._f,k=g(t,b);if(!j||S)return{};let A=u?u[0]:s,O=e=>{n&&A.reportValidity&&(A.setCustomValidity(L(e)?"":e||""),A.reportValidity())},T={},M=B(s),R=i(s),N=(w||D(s))&&v(s.value)&&v(k)||F(s)&&""===s.value||""===k||Array.isArray(k)&&!k.length,P=_.bind(null,b,r,T),z=(e,t,r,n=x.maxLength,i=x.minLength)=>{let o=e?t:r;T[b]={type:e?n:i,message:o,ref:s,...P(e?n:i,o)}};if(o?!Array.isArray(k)||!k.length:c&&(!(M||R)&&(N||a(k))||L(k)&&!k||R&&!$(u).isValid||M&&!q(u).isValid)){let{value:e,message:t}=V(c)?{value:!!c,message:c}:Z(c);if(e&&(T[b]={type:x.required,message:t,ref:A,...P(x.required,t)},!r))return O(t),T}if(!N&&(!a(h)||!a(p))){let e,t;let n=Z(p),i=Z(h);if(a(k)||isNaN(k)){let r=s.valueAsDate||new Date(k),o=e=>new Date(new Date().toDateString()+" "+e),a="time"==s.type,l="week"==s.type;C(n.value)&&k&&(e=a?o(k)>o(n.value):l?k>n.value:r>new Date(n.value)),C(i.value)&&k&&(t=a?o(k)n.value),a(i.value)||(t=r+e.value,i=!a(t.value)&&k.length<+t.value;if((n||i)&&(z(n,e.message,t.message),!r))return O(T[b].message),T}if(m&&!N&&C(k)){let{value:e,message:t}=Z(m);if(U(e)&&!k.match(e)&&(T[b]={type:x.pattern,message:t,ref:s,...P(x.pattern,t)},!r))return O(t),T}if(y){if(I(y)){let e=await y(k,t),n=G(e,A);if(n&&(T[b]={...n,...P(x.validate,n.message)},!r))return O(n.message),T}else if(l(y)){let e={};for(let n in y){if(!E(e)&&!r)break;let i=G(await y[n](k,t),A,n);i&&(e={...i,...P(n,i.message)},O(i.message),r&&(T[b]=e))}if(!E(e)&&(T[b]={ref:A,...e},!r))return T}}return O(!0),T};function X(e,t){let r=Array.isArray(t)?t:A(t)?[t]:O(t),n=1===r.length?e:function(e,t){let r=t.slice(0,-1).length,n=0;for(;n{for(let r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}}var J=e=>a(e)||!s(e);function Q(e,t){if(J(e)||J(t))return e===t;if(o(e)&&o(t))return e.getTime()===t.getTime();let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i of r){let r=e[i];if(!n.includes(i))return!1;if("ref"!==i){let e=t[i];if(o(r)&&o(e)||l(r)&&l(e)||Array.isArray(r)&&Array.isArray(e)?!Q(r,e):r!==e)return!1}}return!0}var ee=e=>"select-multiple"===e.type,et=e=>B(e)||i(e),er=e=>F(e)&&e.isConnected,en=e=>{for(let t in e)if(I(e[t]))return!0;return!1};function ei(e,t={}){let r=Array.isArray(e);if(l(e)||r)for(let r in e)Array.isArray(e[r])||l(e[r])&&!en(e[r])?(t[r]=Array.isArray(e[r])?[]:{},ei(e[r],t[r])):a(e[r])||(t[r]=!0);return t}var eo=(e,t)=>(function e(t,r,n){let i=Array.isArray(t);if(l(t)||i)for(let i in t)Array.isArray(t[i])||l(t[i])&&!en(t[i])?v(r)||J(n[i])?n[i]=Array.isArray(t[i])?ei(t[i],[]):{...ei(t[i])}:e(t[i],a(r)?{}:r[i],n[i]):n[i]=!Q(t[i],r[i]);return n})(e,t,ei(t)),ea=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>v(e)?e:t?""===e?NaN:e?+e:e:r&&C(e)?new Date(e):n?n(e):e;function es(e){let t=e.ref;return(e.refs?e.refs.every(e=>e.disabled):t.disabled)?void 0:D(t)?t.files:B(t)?q(e.refs).value:ee(t)?[...t.selectedOptions].map(({value:e})=>e):i(t)?$(e.refs).value:ea(v(t.value)?e.ref.value:t.value,e)}var el=(e,t,r,n)=>{let i={};for(let r of e){let e=g(t,r);e&&T(i,r,e._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},eu=e=>v(e)?e:U(e)?e.source:l(e)?U(e.value)?e.value.source:e.value:e,ec=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ed(e,t,r){let n=g(e,r);if(n||A(r))return{error:n,name:r};let i=r.split(".");for(;i.length;){let n=i.join("."),o=g(t,n),a=g(e,n);if(o&&!Array.isArray(o)&&r!==n)break;if(a&&a.type)return{name:n,error:a};i.pop()}return{name:r}}var ef=(e,t,r,n,i)=>!i.isOnAll&&(!r&&i.isOnTouch?!(t||e):(r?n.isOnBlur:i.isOnBlur)?!e:(r?!n.isOnChange:!i.isOnChange)||e),eh=(e,t)=>!m(g(e,t)).length&&X(e,t);let ep={mode:b.onSubmit,reValidateMode:b.onChange,shouldFocusError:!0};function em(e={}){let t=n.useRef(),[r,s]=n.useState({isDirty:!1,isValidating:!1,isLoading:I(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:I(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...function(e={},t){let r,n={...ep,...e},s={submitCount:0,isDirty:!1,isLoading:I(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},c={},f=(l(n.defaultValues)||l(n.values))&&p(n.defaultValues||n.values)||{},x=n.shouldUnregister?{}:p(f),w={action:!1,mount:!1,watch:!1},j={mount:new Set,unMount:new Set,array:new Set,watch:new Set},A=0,O={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},_={values:K(),array:K(),state:K()},V=e.resetOptions&&e.resetOptions.keepDirtyValues,B=R(n.mode),U=R(n.reValidateMode),z=n.criteriaMode===b.all,H=e=>t=>{clearTimeout(A),A=setTimeout(e,t)},$=async e=>{if(O.isValid||e){let e=n.resolver?E((await ei()).errors):await ev(c,!0);e!==s.isValid&&_.state.next({isValid:e})}},W=e=>O.isValidating&&_.state.next({isValidating:e}),q=(e,t)=>{T(s.errors,e,t),_.state.next({errors:s.errors})},G=(e,t,r,n)=>{let i=g(c,e);if(i){let o=g(x,e,v(r)?g(f,e):r);v(o)||n&&n.defaultChecked||t?T(x,e,t?o:es(i._f)):eb(e,o),w.mount&&$()}},Z=(e,t,r,n,i)=>{let o=!1,a=!1,l={name:e};if(!r||n){O.isDirty&&(a=s.isDirty,s.isDirty=l.isDirty=eg(),o=a!==l.isDirty);let r=Q(g(f,e),t);a=g(s.dirtyFields,e),r?X(s.dirtyFields,e):T(s.dirtyFields,e,!0),l.dirtyFields=s.dirtyFields,o=o||O.dirtyFields&&!r!==a}if(r){let t=g(s.touchedFields,e);t||(T(s.touchedFields,e,r),l.touchedFields=s.touchedFields,o=o||O.touchedFields&&t!==r)}return o&&i&&_.state.next(l),o?l:{}},en=(t,n,i,o)=>{let a=g(s.errors,t),l=O.isValid&&L(n)&&s.isValid!==n;if(e.delayError&&i?(r=H(()=>q(t,i)))(e.delayError):(clearTimeout(A),r=null,i?T(s.errors,t,i):X(s.errors,t)),(i?!Q(a,i):a)||!E(o)||l){let e={...o,...l&&L(n)?{isValid:n}:{},errors:s.errors,name:t};s={...s,...e},_.state.next(e)}W(!1)},ei=async e=>n.resolver(x,n.context,el(e||j.mount,c,n.criteriaMode,n.shouldUseNativeValidation)),em=async e=>{let{errors:t}=await ei();if(e)for(let r of e){let e=g(t,r);e?T(s.errors,r,e):X(s.errors,r)}else s.errors=t;return t},ev=async(e,t,r={valid:!0})=>{for(let i in e){let o=e[i];if(o){let{_f:e,...i}=o;if(e){let i=j.array.has(e.name),a=await Y(o,x,z,n.shouldUseNativeValidation&&!t,i);if(a[e.name]&&(r.valid=!1,t))break;t||(g(a,e.name)?i?P(s.errors,a,e.name):T(s.errors,e.name,a[e.name]):X(s.errors,e.name))}i&&await ev(i,t,r)}}return r.valid},eg=(e,t)=>(e&&t&&T(x,e,t),!Q(eS(),f)),ey=(e,t,r)=>k(e,j,{...w.mount?x:v(t)?f:C(e)?{[e]:t}:t},r,t),eb=(e,t,r={})=>{let n=g(c,e),o=t;if(n){let r=n._f;r&&(r.disabled||T(x,e,ea(t,r)),o=F(r.ref)&&a(t)?"":t,ee(r.ref)?[...r.ref.options].forEach(e=>e.selected=o.includes(e.value)):r.refs?i(r.ref)?r.refs.length>1?r.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find(t=>t===e.value):o===e.value)):r.refs[0]&&(r.refs[0].checked=!!o):r.refs.forEach(e=>e.checked=e.value===o):D(r.ref)?r.ref.value="":(r.ref.value=o,r.ref.type||_.values.next({name:e,values:{...x}})))}(r.shouldDirty||r.shouldTouch)&&Z(e,o,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&ej(e)},ex=(e,t,r)=>{for(let n in t){let i=t[n],a=`${e}.${n}`,s=g(c,a);!j.array.has(e)&&J(i)&&(!s||s._f)||o(i)?eb(a,i,r):ex(a,i,r)}},ew=(e,r,n={})=>{let i=g(c,e),o=j.array.has(e),l=p(r);T(x,e,l),o?(_.array.next({name:e,values:{...x}}),(O.isDirty||O.dirtyFields)&&n.shouldDirty&&_.state.next({name:e,dirtyFields:eo(f,x),isDirty:eg(e,l)})):!i||i._f||a(l)?eb(e,l,n):ex(e,l,n),N(e,j)&&_.state.next({...s}),_.values.next({name:e,values:{...x}}),w.mount||t()},eE=async e=>{let t=e.target,i=t.name,o=!0,a=g(c,i);if(a){let l,d;let f=t.type?es(a._f):u(e),h=e.type===y.BLUR||e.type===y.FOCUS_OUT,p=!ec(a._f)&&!n.resolver&&!g(s.errors,i)&&!a._f.deps||ef(h,g(s.touchedFields,i),s.isSubmitted,U,B),m=N(i,j,h);T(x,i,f),h?(a._f.onBlur&&a._f.onBlur(e),r&&r(0)):a._f.onChange&&a._f.onChange(e);let v=Z(i,f,h,!1),b=!E(v)||m;if(h||_.values.next({name:i,type:e.type,values:{...x}}),p)return O.isValid&&$(),b&&_.state.next({name:i,...m?{}:v});if(!h&&m&&_.state.next({...s}),W(!0),n.resolver){let{errors:e}=await ei([i]),t=ed(s.errors,c,i),r=ed(e,c,t.name||i);l=r.error,i=r.name,d=E(e)}else l=(await Y(a,x,z,n.shouldUseNativeValidation))[i],(o=isNaN(f)||f===g(x,i,f))&&(l?d=!1:O.isValid&&(d=await ev(c,!0)));o&&(a._f.deps&&ej(a._f.deps),en(i,d,l,v))}},ej=async(e,t={})=>{let r,i;let o=S(e);if(W(!0),n.resolver){let t=await em(v(e)?e:o);r=E(t),i=e?!o.some(e=>g(t,e)):r}else e?((i=(await Promise.all(o.map(async e=>{let t=g(c,e);return await ev(t&&t._f?{[e]:t}:t)}))).every(Boolean))||s.isValid)&&$():i=r=await ev(c);return _.state.next({...!C(e)||O.isValid&&r!==s.isValid?{}:{name:e},...n.resolver||!e?{isValid:r}:{},errors:s.errors,isValidating:!1}),t.shouldFocus&&!i&&M(c,e=>e&&g(s.errors,e),e?o:j.mount),i},eS=e=>{let t={...f,...w.mount?x:{}};return v(e)?t:C(e)?g(t,e):e.map(e=>g(t,e))},eC=(e,t)=>({invalid:!!g((t||s).errors,e),isDirty:!!g((t||s).dirtyFields,e),isTouched:!!g((t||s).touchedFields,e),error:g((t||s).errors,e)}),ek=(e,t={})=>{for(let r of e?S(e):j.mount)j.mount.delete(r),j.array.delete(r),t.keepValue||(X(c,r),X(x,r)),t.keepError||X(s.errors,r),t.keepDirty||X(s.dirtyFields,r),t.keepTouched||X(s.touchedFields,r),n.shouldUnregister||t.keepDefaultValue||X(f,r);_.values.next({values:{...x}}),_.state.next({...s,...t.keepDirty?{isDirty:eg()}:{}}),t.keepIsValid||$()},eA=(e,t={})=>{let r=g(c,e),i=L(t.disabled);return T(c,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),j.mount.add(e),r?i&&T(x,e,t.disabled?void 0:g(x,e,es(r._f))):G(e,!0,t.value),{...i?{disabled:t.disabled}:{},...n.shouldUseNativeValidation?{required:!!t.required,min:eu(t.min),max:eu(t.max),minLength:eu(t.minLength),maxLength:eu(t.maxLength),pattern:eu(t.pattern)}:{},name:e,onChange:eE,onBlur:eE,ref:i=>{if(i){eA(e,t),r=g(c,e);let n=v(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,o=et(n),a=r._f.refs||[];(o?a.find(e=>e===n):n===r._f.ref)||(T(c,e,{_f:{...r._f,...o?{refs:[...a.filter(er),n,...Array.isArray(g(f,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),G(e,!1,void 0,n))}else(r=g(c,e,{}))._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&!(d(j.array,e)&&w.action)&&j.unMount.add(e)}}},eO=()=>n.shouldFocusError&&M(c,e=>e&&g(s.errors,e),j.mount),eT=(r,n={})=>{let i=r||f,o=p(i),a=r&&!E(r)?o:f;if(n.keepDefaultValues||(f=i),!n.keepValues){if(n.keepDirtyValues||V)for(let e of j.mount)g(s.dirtyFields,e)?T(a,e,g(x,e)):ew(e,g(a,e));else{if(h&&v(r))for(let e of j.mount){let t=g(c,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(F(e)){let t=e.closest("form");if(t){t.reset();break}}}}c={}}x=e.shouldUnregister?n.keepDefaultValues?p(f):{}:o,_.array.next({values:{...a}}),_.values.next({values:{...a}})}j={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},w.mount||t(),w.mount=!O.isValid||!!n.keepIsValid,w.watch=!!e.shouldUnregister,_.state.next({submitCount:n.keepSubmitCount?s.submitCount:0,isDirty:n.keepDirty?s.isDirty:!!(n.keepDefaultValues&&!Q(r,f)),isSubmitted:!!n.keepIsSubmitted&&s.isSubmitted,dirtyFields:n.keepDirtyValues?s.dirtyFields:n.keepDefaultValues&&r?eo(f,r):{},touchedFields:n.keepTouched?s.touchedFields:{},errors:n.keepErrors?s.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},e_=(e,t)=>eT(I(e)?e(x):e,t);return{control:{register:eA,unregister:ek,getFieldState:eC,_executeSchema:ei,_getWatch:ey,_getDirty:eg,_updateValid:$,_removeUnmounted:()=>{for(let e of j.unMount){let t=g(c,e);t&&(t._f.refs?t._f.refs.every(e=>!er(e)):!er(t._f.ref))&&ek(e)}j.unMount=new Set},_updateFieldArray:(e,t=[],r,n,i=!0,o=!0)=>{if(n&&r){if(w.action=!0,o&&Array.isArray(g(c,e))){let t=r(g(c,e),n.argA,n.argB);i&&T(c,e,t)}if(o&&Array.isArray(g(s.errors,e))){let t=r(g(s.errors,e),n.argA,n.argB);i&&T(s.errors,e,t),eh(s.errors,e)}if(O.touchedFields&&o&&Array.isArray(g(s.touchedFields,e))){let t=r(g(s.touchedFields,e),n.argA,n.argB);i&&T(s.touchedFields,e,t)}O.dirtyFields&&(s.dirtyFields=eo(f,x)),_.state.next({name:e,isDirty:eg(e,t),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else T(x,e,t)},_getFieldArray:t=>m(g(w.mount?x:f,t,e.shouldUnregister?g(f,t,[]):[])),_reset:eT,_resetDefaultValues:()=>I(n.defaultValues)&&n.defaultValues().then(e=>{e_(e,n.resetOptions),_.state.next({isLoading:!1})}),_updateFormState:e=>{s={...s,...e}},_subjects:_,_proxyFormState:O,get _fields(){return c},get _formValues(){return x},get _state(){return w},set _state(value){w=value},get _defaultValues(){return f},get _names(){return j},set _names(value){j=value},get _formState(){return s},set _formState(value){s=value},get _options(){return n},set _options(value){n={...n,...value}}},trigger:ej,register:eA,handleSubmit:(e,t)=>async r=>{r&&(r.preventDefault&&r.preventDefault(),r.persist&&r.persist());let i=p(x);if(_.state.next({isSubmitting:!0}),n.resolver){let{errors:e,values:t}=await ei();s.errors=e,i=t}else await ev(c);X(s.errors,"root"),E(s.errors)?(_.state.next({errors:{}}),await e(i,r)):(t&&await t({...s.errors},r),eO(),setTimeout(eO)),_.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:E(s.errors),submitCount:s.submitCount+1,errors:s.errors})},watch:(e,t)=>I(e)?_.values.subscribe({next:r=>e(ey(void 0,t),r)}):ey(e,t,!0),setValue:ew,getValues:eS,reset:e_,resetField:(e,t={})=>{g(c,e)&&(v(t.defaultValue)?ew(e,g(f,e)):(ew(e,t.defaultValue),T(f,e,t.defaultValue)),t.keepTouched||X(s.touchedFields,e),t.keepDirty||(X(s.dirtyFields,e),s.isDirty=t.defaultValue?eg(e,g(f,e)):eg()),!t.keepError&&(X(s.errors,e),O.isValid&&$()),_.state.next({...s}))},clearErrors:e=>{e&&S(e).forEach(e=>X(s.errors,e)),_.state.next({errors:e?s.errors:{}})},unregister:ek,setError:(e,t,r)=>{let n=(g(c,e,{_f:{}})._f||{}).ref;T(s.errors,e,{...t,ref:n}),_.state.next({name:e,errors:s.errors,isValid:!1}),r&&r.shouldFocus&&n&&n.focus&&n.focus()},setFocus:(e,t={})=>{let r=g(c,e),n=r&&r._f;if(n){let e=n.refs?n.refs[0]:n.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:eC}}(e,()=>s(e=>({...e}))),formState:r});let c=t.current.control;return c._options=e,!function(e){let t=n.useRef(e);t.current=e,n.useEffect(()=>{let r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}({subject:c._subjects.state,next:e=>{j(e,c._proxyFormState,c._updateFormState,!0)&&s({...c._formState})}}),n.useEffect(()=>{e.values&&!Q(e.values,c._defaultValues)?c._reset(e.values,c._options.resetOptions):c._resetDefaultValues()},[e.values,c]),n.useEffect(()=>{c._state.mount||(c._updateValid(),c._state.mount=!0),c._state.watch&&(c._state.watch=!1,c._subjects.state.next({...c._formState})),c._removeUnmounted()}),t.current.formState=w(r,c),t.current}},79381:function(e,t,r){"use strict";r.d(t,{J$:function(){return J},ZP:function(){return Q},JG:function(){return U},kY:function(){return Z}});var n,i=r(2784),o=r(43100);let a=new WeakMap,s={},l={},u=()=>{},c=u(),d=Object,f=e=>e===c,h=e=>"function"==typeof e,p=(e,t)=>({...e,...t}),m="undefined",v=typeof window!=m,g=typeof document!=m,y=()=>v&&typeof window.requestAnimationFrame!=m,b=(e,t)=>{let r=a.get(e);return[()=>e.get(t)||s,n=>{if(!f(t)){let i=e.get(t);t in l||(l[t]=i),r[5](t,p(i,n),i||s)}},r[6],()=>!f(t)&&t in l?l[t]:e.get(t)||s]},x=new WeakMap,w=0,E=e=>{let t,r;let n=typeof e,i=e&&e.constructor,o=i==Date;if(d(e)!==e||o||i==RegExp)t=o?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=x.get(e))return t;if(t=++w+"~",x.set(e,t),i==Array){for(r=0,t="@";r(g&&document.addEventListener("visibilitychange",e),S("focus",e),()=>{g&&document.removeEventListener("visibilitychange",e),C("focus",e)}),initReconnect:e=>{let t=()=>{j=!0,e()},r=()=>{j=!1};return S("online",t),S("offline",r),()=>{C("online",t),C("offline",r)}}},A=!i.useId,O=!v||"Deno"in window,T=e=>y()?window.requestAnimationFrame(e):setTimeout(e,1),_=O?i.useEffect:i.useLayoutEffect,M="undefined"!=typeof navigator&&navigator.connection,R=!O&&M&&(["slow-2g","2g"].includes(M.effectiveType)||M.saveData),N=e=>{if(h(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?E(e):"",t]},P=0,L=()=>++P;var D={FOCUS_EVENT:0,RECONNECT_EVENT:1,MUTATE_EVENT:2,ERROR_REVALIDATE_EVENT:3};async function I(...e){let[t,r,n,i]=e,o=p({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),s=o.populateCache,l=o.rollbackOnError,u=o.optimisticData,d=!1!==o.revalidate,m=e=>"function"==typeof l?l(e):!1!==l,v=o.throwOnError;if(h(r)){let e=[],n=t.keys();for(let i=n.next();!i.done;i=n.next()){let n=i.value;!/^\$(inf|sub)\$/.test(n)&&r(t.get(n)._k)&&e.push(n)}return Promise.all(e.map(g))}return g(r);async function g(r){let i;let[o]=N(r);if(!o)return;let[l,p]=b(t,o),[g,y,x]=a.get(t),w=g[o],E=()=>d&&(delete x[o],w&&w[0])?w[0](2).then(()=>l().data):l().data;if(e.length<3)return E();let j=n,S=L();y[o]=[S,0];let C=!f(u),k=l(),A=k.data,O=k._c,T=f(O)?A:O;if(C&&p({data:u=h(u)?u(T):u,_c:T}),h(j))try{j=j(T)}catch(e){i=e}if(j&&h(j.then)){if(j=await j.catch(e=>{i=e}),S!==y[o][0]){if(i)throw i;return j}i&&C&&m(i)&&(s=!0,p({data:j=T,_c:c}))}s&&!i&&(h(s)&&(j=s(j,T)),p({data:j,_c:c})),y[o][1]=L();let _=await E();if(p({_c:c}),i){if(v)throw i;return}return s?_:j}}let F=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},V=(e,t)=>{if(!a.has(e)){let r=p(k,t),n={},i=I.bind(c,e),o=u,s={},l=(e,t)=>{let r=s[e]||[];return s[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},d=(t,r,n)=>{e.set(t,r);let i=s[t];if(i)for(let e of i)e(r,n)},f=()=>{if(!a.has(e)&&(a.set(e,[n,{},{},{},i,d,l]),!O)){let t=r.initFocus(setTimeout.bind(c,F.bind(c,n,0))),i=r.initReconnect(setTimeout.bind(c,F.bind(c,n,1)));o=()=>{t&&t(),i&&i(),a.delete(e)}}};return f(),[e,i,f,o]}return[e,a.get(e)[4]]},[B,U]=V(new Map),z=p({onLoadingSlow:u,onSuccess:u,onError:u,onErrorRetry:(e,t,r,n,i)=>{let o=r.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*r.errorRetryInterval;(f(o)||!(a>o))&&setTimeout(n,s,i)},onDiscarded:u,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:R?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:R?5e3:3e3,compare:(e,t)=>E(e)==E(t),isPaused:()=>!1,cache:B,mutate:U,fallback:{}},{isOnline:()=>j,isVisible:()=>{let e=g&&document.visibilityState;return f(e)||"hidden"!==e}}),H=(e,t)=>{let r=p(e,t);if(t){let{use:n,fallback:i}=e,{use:o,fallback:a}=t;n&&o&&(r.use=n.concat(o)),i&&a&&(r.fallback=p(i,a))}return r},$=(0,i.createContext)({}),W=v&&window.__SWR_DEVTOOLS_USE__,q=W?window.__SWR_DEVTOOLS_USE__:[],G=e=>h(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],Z=()=>p(z,(0,i.useContext)($)),Y=q.concat(e=>(t,r,n)=>{let i=r&&((...e)=>{let n=N(t)[0],[,,,i]=a.get(B),o=i[n];return o?(delete i[n],o):r(...e)});return e(t,i,n)}),X=(e,t,r)=>{let n=t[e]||(t[e]=[]);return n.push(r),()=>{let e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}};W&&(window.__SWR_DEVTOOLS_REACT__=i);let K={dedupe:!0},J=d.defineProperty(e=>{let{value:t}=e,r=(0,i.useContext)($),n=h(t),o=(0,i.useMemo)(()=>n?t(r):t,[n,r,t]),a=(0,i.useMemo)(()=>n?o:H(r,o),[n,r,o]),s=o&&o.provider,l=(0,i.useRef)(c);s&&!l.current&&(l.current=V(s(a.cache||B),o));let u=l.current;return u&&(a.cache=u[0],a.mutate=u[1]),_(()=>{if(u)return u[2]&&u[2](),u[3]},[]),(0,i.createElement)($.Provider,p(e,{value:a}))},"defaultValue",{value:z});var Q=(n=(e,t,r)=>{let{cache:n,compare:s,suspense:l,fallbackData:u,revalidateOnMount:d,revalidateIfStale:m,refreshInterval:v,refreshWhenHidden:g,refreshWhenOffline:y,keepPreviousData:x}=r,[w,E,j]=a.get(n),[S,C]=N(e),k=(0,i.useRef)(!1),M=(0,i.useRef)(!1),R=(0,i.useRef)(S),P=(0,i.useRef)(t),F=(0,i.useRef)(r),V=()=>F.current,B=()=>V().isVisible()&&V().isOnline(),[U,z,H,$]=b(n,S),W=(0,i.useRef)({}).current,q=f(u)?r.fallback[S]:u,G=(e,t)=>{let r=!0;for(let n in W)"data"===n?s(t[n],e[n])||f(e[n])&&s(t[n],ei)||(r=!1):t[n]!==e[n]&&(r=!1);return r},Z=(0,i.useMemo)(()=>{let e=!!S&&!!t&&(f(d)?!V().isPaused()&&!l&&(!!f(m)||m):d),r=t=>{let r=p(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},n=U(),i=$(),o=r(n),a=n===i?o:r(i),s=o;return[()=>{let e=r(U());return G(e,s)?s:s=e},()=>a]},[n,S]),Y=(0,o.useSyncExternalStore)((0,i.useCallback)(e=>H(S,(t,r)=>{G(r,t)||e()}),[n,S]),Z[0],Z[1]),J=!k.current,Q=w[S]&&w[S].length>0,ee=Y.data,et=f(ee)?q:ee,er=Y.error,en=(0,i.useRef)(et),ei=x?f(ee)?en.current:ee:et,eo=(!Q||!!f(er))&&(J&&!f(d)?d:!V().isPaused()&&(l?!f(et)&&m:f(et)||m)),ea=!!(S&&t&&J&&eo),es=f(Y.isValidating)?ea:Y.isValidating,el=f(Y.isLoading)?ea:Y.isLoading,eu=(0,i.useCallback)(async e=>{let t,n;let i=P.current;if(!S||!i||M.current||V().isPaused())return!1;let o=!0,a=e||{},l=!j[S]||!a.dedupe,u=()=>A?!M.current&&S===R.current&&k.current:S===R.current,d={isValidating:!1,isLoading:!1},p=()=>{z(d)},m=()=>{let e=j[S];e&&e[1]===n&&delete j[S]},v={isValidating:!0};f(U().data)&&(v.isLoading=!0);try{if(l&&(z(v),r.loadingTimeout&&f(U().data)&&setTimeout(()=>{o&&u()&&V().onLoadingSlow(S,r)},r.loadingTimeout),j[S]=[i(C),L()]),[t,n]=j[S],t=await t,l&&setTimeout(m,r.dedupingInterval),!j[S]||j[S][1]!==n)return l&&u()&&V().onDiscarded(S),!1;d.error=c;let e=E[S];if(!f(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return p(),l&&u()&&V().onDiscarded(S),!1;let a=U().data;d.data=s(a,t)?a:t,l&&u()&&V().onSuccess(t,S,r)}catch(r){m();let e=V(),{shouldRetryOnError:t}=e;!e.isPaused()&&(d.error=r,l&&u()&&(e.onError(r,S,e),(!0===t||h(t)&&t(r))&&B()&&e.onErrorRetry(r,S,e,e=>{let t=w[S];t&&t[0]&&t[0](D.ERROR_REVALIDATE_EVENT,e)},{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return o=!1,p(),!0},[S,n]),ec=(0,i.useCallback)((...e)=>I(n,R.current,...e),[]);if(_(()=>{P.current=t,F.current=r,f(ee)||(en.current=ee)}),_(()=>{if(!S)return;let e=eu.bind(c,K),t=0,r=X(S,w,(r,n={})=>{if(r==D.FOCUS_EVENT){let r=Date.now();V().revalidateOnFocus&&r>t&&B()&&(t=r+V().focusThrottleInterval,e())}else if(r==D.RECONNECT_EVENT)V().revalidateOnReconnect&&B()&&e();else if(r==D.MUTATE_EVENT)return eu();else if(r==D.ERROR_REVALIDATE_EVENT)return eu(n)});return M.current=!1,R.current=S,k.current=!0,z({_k:C}),eo&&(f(et)||O?e():T(e)),()=>{M.current=!0,r()}},[S]),_(()=>{let e;function t(){let t=h(v)?v(et):v;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!U().error&&(g||V().isVisible())&&(y||V().isOnline())?eu(K).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[v,g,y,S]),(0,i.useDebugValue)(ei),l&&f(et)&&S){if(!A&&O)throw Error("Fallback data is required when using suspense in SSR.");throw P.current=t,F.current=r,M.current=!1,f(er)?eu(K):er}return{mutate:ec,get data(){return W.data=!0,ei},get error(){return W.error=!0,er},get isValidating(){return W.isValidating=!0,es},get isLoading(){return W.isLoading=!0,el}}},function(...e){let t=Z(),[r,i,o]=G(e),a=H(t,o),s=n,{use:l}=a,u=(l||[]).concat(Y);for(let e=u.length;e--;)s=u[e](s);return s(r,i||a.fetcher||null,a)})}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(86570),t(60222)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/walletd/assets/_next/static/chunks/pages/_app-80efc531d44ff3e7.js b/walletd/assets/_next/static/chunks/pages/_app-80efc531d44ff3e7.js new file mode 100644 index 000000000..12f3d2ca3 --- /dev/null +++ b/walletd/assets/_next/static/chunks/pages/_app-80efc531d44ff3e7.js @@ -0,0 +1,63 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{75102:function(e,t,r){"use strict";r.d(t,{An:function(){return u},Ht:function(){return c},R7:function(){return p},RH:function(){return h}});var n,i,o=r(97699),a=r.n(o);(n=i||(i={})).blue="blue",n.nanoS="nanoS",n.nanoSP="nanoSP",n.nanoX="nanoX",n.stax="stax";let s={[i.blue]:{id:i.blue,productName:"Ledger\xa0Blue",productIdMM:0,legacyUsbProductId:0,usbOnly:!0,memorySize:491520,masks:[822083584,822149120],getBlockSize:e=>4096},[i.nanoS]:{id:i.nanoS,productName:"Ledger\xa0Nano\xa0S",productIdMM:16,legacyUsbProductId:1,usbOnly:!0,memorySize:327680,masks:[823132160],getBlockSize:e=>{var t;return a().lt(null!==(t=a().coerce(e))&&void 0!==t?t:"","2.0.0")?4096:2048}},[i.nanoSP]:{id:i.nanoSP,productName:"Ledger Nano S Plus",productIdMM:80,legacyUsbProductId:5,usbOnly:!0,memorySize:1572864,masks:[856686592],getBlockSize:e=>32},[i.nanoX]:{id:i.nanoX,productName:"Ledger\xa0Nano\xa0X",productIdMM:64,legacyUsbProductId:4,usbOnly:!1,memorySize:2097152,masks:[855638016],getBlockSize:e=>4096,bluetoothSpec:[{serviceUuid:"13d63400-2c97-0004-0000-4c6564676572",notifyUuid:"13d63400-2c97-0004-0001-4c6564676572",writeUuid:"13d63400-2c97-0004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-0004-0003-4c6564676572"}]},[i.stax]:{id:i.stax,productName:"Ledger\xa0Stax",productIdMM:96,legacyUsbProductId:6,usbOnly:!1,memorySize:1572864,masks:[857735168],getBlockSize:e=>32,bluetoothSpec:[{serviceUuid:"13d63400-2c97-6004-0000-4c6564676572",notifyUuid:"13d63400-2c97-6004-0001-4c6564676572",writeUuid:"13d63400-2c97-6004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-6004-0003-4c6564676572"}]}};i.blue,i.nanoS,i.nanoSP,i.nanoX,i.stax;let l=Object.values(s),u=11415,c=e=>{let t=l.find(t=>t.legacyUsbProductId===e);if(t)return t;let r=e>>8,n=l.find(e=>e.productIdMM===r);return n},d=[],f={};for(let e in s){let t=s[e],{bluetoothSpec:r}=t;if(r)for(let e=0;ed,p=e=>f[e.toLowerCase()]},9341:function(e,t,r){"use strict";var n,i;r.d(t,{qX:function(){return c},vs:function(){return d},WC:function(){return m},PS:function(){return p},FB:function(){return f},wp:function(){return h},rZ:function(){return v}});let o={},a={},s=(e,t)=>{a[e]=t},l=e=>{class t extends Error{constructor(r,n,i){if(super(r||e,i),Object.setPrototypeOf(this,t.prototype),this.name=e,n)for(let e in n)this[e]=n[e];if(i&&"object"==typeof i&&"cause"in i&&!("cause"in this)){let e=i.cause;this.cause=e,"stack"in e&&(this.stack=this.stack+"\nCAUSE: "+e.stack)}}}return o[e]=t,t};l("AccountNameRequired"),l("AccountNotSupported"),l("AmountRequired"),l("BluetoothRequired"),l("BtcUnmatchedApp"),l("CantOpenDevice"),l("CashAddrNotSupported"),l("ClaimRewardsFeesWarning"),l("CurrencyNotSupported"),l("DeviceAppVerifyNotSupported"),l("DeviceGenuineSocketEarlyClose"),l("DeviceNotGenuine"),l("DeviceOnDashboardExpected"),l("DeviceOnDashboardUnexpected"),l("DeviceInOSUExpected"),l("DeviceHalted"),l("DeviceNameInvalid"),l("DeviceSocketFail"),l("DeviceSocketNoBulkStatus");let u=l("LockedDeviceError");l("UnresponsiveDeviceError");let c=l("DisconnectedDevice"),d=l("DisconnectedDeviceDuringOperation");l("DeviceExtractOnboardingStateError"),l("DeviceOnboardingStatePollingError"),l("EnpointConfig"),l("EthAppPleaseEnableContractData"),l("FeeEstimationFailed"),l("FirmwareNotRecognized"),l("HardResetFail"),l("InvalidXRPTag"),l("InvalidAddress"),l("InvalidNonce"),l("InvalidAddressBecauseDestinationIsAlsoSource"),l("LatestMCUInstalledError"),l("UnknownMCU"),l("LedgerAPIError"),l("LedgerAPIErrorWithMessage"),l("LedgerAPINotAvailable"),l("ManagerAppAlreadyInstalled"),l("ManagerAppRelyOnBTC"),l("ManagerAppDepInstallRequired"),l("ManagerAppDepUninstallRequired"),l("ManagerDeviceLocked"),l("ManagerFirmwareNotEnoughSpace"),l("ManagerNotEnoughSpace"),l("ManagerUninstallBTCDep"),l("NetworkDown"),l("NoAddressesFound"),l("NotEnoughBalance"),l("NotEnoughBalanceToDelegate"),l("NotEnoughBalanceInParentAccount"),l("NotEnoughSpendableBalance"),l("NotEnoughBalanceBecauseDestinationNotCreated"),l("NoAccessToCamera"),l("NotEnoughGas"),l("NotEnoughGasSwap"),l("NotSupportedLegacyAddress"),l("GasLessThanEstimate"),l("PriorityFeeTooLow"),l("PriorityFeeTooHigh"),l("PriorityFeeHigherThanMaxFee"),l("MaxFeeTooLow"),l("PasswordsDontMatch"),l("PasswordIncorrect"),l("RecommendSubAccountsToEmpty"),l("RecommendUndelegation"),l("TimeoutTagged"),l("UnexpectedBootloader"),l("MCUNotGenuineToDashboard"),l("RecipientRequired"),l("UnavailableTezosOriginatedAccountReceive"),l("UnavailableTezosOriginatedAccountSend"),l("UpdateFetchFileFail"),l("UpdateIncorrectHash"),l("UpdateIncorrectSig"),l("UpdateYourApp"),l("UserRefusedDeviceNameChange"),l("UserRefusedAddress"),l("UserRefusedFirmwareUpdate"),l("UserRefusedAllowManager"),l("UserRefusedOnDevice");let f=l("TransportOpenUserCancelled");l("TransportInterfaceNotAvailable");let h=l("TransportRaceCondition");l("TransportWebUSBGestureRequired"),l("TransactionHasBeenValidatedError"),l("DeviceShouldStayInApp"),l("WebsocketConnectionError"),l("WebsocketConnectionFailed"),l("WrongDeviceForAccount"),l("WrongAppForCurrency"),l("ETHAddressNonEIP"),l("CantScanQRCode"),l("FeeNotLoaded"),l("FeeRequired"),l("FeeTooHigh"),l("PendingOperation"),l("SyncError"),l("PairingFailed"),l("PeerRemovedPairing"),l("GenuineCheckFailed"),l("LedgerAPI4xx"),l("LedgerAPI5xx"),l("FirmwareOrAppUpdateRequired"),l("OpReturnSizeLimit"),l("DustLimit"),l("LanguageNotFound"),l("NoDBPathGiven"),l("DBWrongPassword"),l("DBNotReset"),(i=n||(n={})).Unknown="Unknown",i.LocationServicesDisabled="LocationServicesDisabled",i.LocationServicesUnauthorized="LocationServicesUnauthorized",i.BluetoothScanStartFailed="BluetoothScanStartFailed";class p extends Error{constructor(e,t){let r="TransportError";super(e||r),this.name=r,this.message=e,this.stack=Error(e).stack,this.id=t}}s("TransportError",e=>new p(e.message,e.id));let m={ACCESS_CONDITION_NOT_FULFILLED:38916,ALGORITHM_NOT_SUPPORTED:38020,CLA_NOT_SUPPORTED:28160,CODE_BLOCKED:38976,CODE_NOT_INITIALIZED:38914,COMMAND_INCOMPATIBLE_FILE_STRUCTURE:27009,CONDITIONS_OF_USE_NOT_SATISFIED:27013,CONTRADICTION_INVALIDATION:38928,CONTRADICTION_SECRET_CODE_STATUS:38920,CUSTOM_IMAGE_BOOTLOADER:26159,CUSTOM_IMAGE_EMPTY:26158,FILE_ALREADY_EXISTS:27273,FILE_NOT_FOUND:37892,GP_AUTH_FAILED:25344,HALTED:28586,INCONSISTENT_FILE:37896,INCORRECT_DATA:27264,INCORRECT_LENGTH:26368,INCORRECT_P1_P2:27392,INS_NOT_SUPPORTED:27904,DEVICE_NOT_ONBOARDED:27911,DEVICE_NOT_ONBOARDED_2:26129,INVALID_KCV:38021,INVALID_OFFSET:37890,LICENSING:28482,LOCKED_DEVICE:21781,MAX_VALUE_REACHED:38992,MEMORY_PROBLEM:37440,MISSING_CRITICAL_PARAMETER:26624,NO_EF_SELECTED:37888,NOT_ENOUGH_MEMORY_SPACE:27268,OK:36864,PIN_REMAINING_ATTEMPTS:25536,REFERENCED_DATA_NOT_FOUND:27272,SECURITY_STATUS_NOT_SATISFIED:27010,TECHNICAL_PROBLEM:28416,UNKNOWN_APDU:27906,USER_REFUSED_ON_DEVICE:21761,NOT_ENOUGH_SPACE:20738};function v(e){let t=Object.keys(m).find(t=>m[t]===e)||"UNKNOWN_ERROR",r=function(e){switch(e){case 26368:return"Incorrect length";case 26624:return"Missing critical parameter";case 27010:return"Security not satisfied (dongle locked or have invalid access rights)";case 27013:return"Condition of use not satisfied (denied by the user?)";case 27264:return"Invalid data received";case 27392:return"Invalid parameter received";case 21781:return"Locked device"}if(28416<=e&&e<=28671)return"Internal error, please report"}(e)||t,n=e.toString(16),i=`Ledger device: ${r} (0x${n})`;if(e===m.LOCKED_DEVICE)throw new u(i);this.name="TransportStatusError",this.message=i,this.stack=Error(i).stack,this.statusCode=e,this.statusText=t}v.prototype=Error(),s("TransportStatusError",e=>new v(e.statusCode))},73866:function(e,t,r){"use strict";r.d(t,{Z:function(){return e_}});var n,i=r(97790),o=r(9341),a=r(75102),s=function(e,t){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function l(e,t){function r(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function u(e){return"function"==typeof e}var c=!1,d={Promise:void 0,set useDeprecatedSynchronousErrorHandling(value){value&&Error().stack,c=value},get useDeprecatedSynchronousErrorHandling(){return c}};function f(e){setTimeout(function(){throw e},0)}var h={closed:!0,next:function(e){},error:function(e){if(d.useDeprecatedSynchronousErrorHandling)throw e;f(e)},complete:function(){}},p=Array.isArray||function(e){return e&&"number"==typeof e.length};function m(e){return null!==e&&"object"==typeof e}var v=function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),g=function(){var e;function t(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return t.prototype.unsubscribe=function(){if(!this.closed){var e,r=this._parentOrParents,n=this._ctorUnsubscribe,i=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof t)r.remove(this);else if(null!==r)for(var a=0;a{let n=(function(e,t){let r=[];for(let n=0,i=t(0);nr-(0===e?5:3)).map((e,r)=>{let n=A.alloc(0===r?5:3);return n.writeUInt8(5,0),n.writeUInt16BE(r,1),0===r&&n.writeUInt16BE(t.length,3),A.concat([n,e])});return new S(t=>{let r=!1;return(function(){var t,i,o,a;return t=this,i=void 0,o=void 0,a=function*(){for(let t of n){if(r)return;yield e(t)}},new(o||(o=Promise))(function(e,r){function n(e){try{l(a.next(e))}catch(e){r(e)}}function s(e){try{l(a.throw(e))}catch(e){r(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof o?r:new o(function(e){e(r)})).then(n,s)}l((a=a.apply(t,i||[])).next())})})().then(()=>{r=!0,t.complete()},e=>{r=!0,(0,k.c)("ble-error","sendAPDU failure "+String(e)),t.error(e)}),()=>{r||((0,k.c)("ble-verbose","sendAPDU interruption"),r=!0)}})};var T=r(48834).lW;let _=e=>S.create(t=>{let r=0,n=0,i=T.alloc(0),a=e.subscribe({complete:()=>{t.error(new o.qX),a.unsubscribe()},error:e=>{(0,k.c)("ble-error","in receiveAPDU "+String(e)),t.error(e),a.unsubscribe()},next:e=>{let s=e.readUInt8(0),l=e.readUInt16BE(1),u=e.slice(3);if(5!==s){t.error(new o.PS("Invalid tag "+s.toString(16),"InvalidTag"));return}if(r!==l){t.error(new o.PS("BLE: Invalid sequence number. discontinued chunk. Received "+l+" but expected "+r,"InvalidSequence"));return}if(0===l&&(n=u.readUInt16BE(0),u=u.slice(2)),r++,(i=T.concat([i,u])).length>n){t.error(new o.PS("BLE: received too much data. discontinued chunk. Received "+i.length+" but expected "+n,"BLETooMuchData"));return}i.length===n&&(t.next(i),t.complete(),a.unsubscribe())}});return()=>{a.unsubscribe()}});function M(e,t){return function(r){if("function"!=typeof e)throw TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new R(e,t))}}var R=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new N(e,this.project,this.thisArg))},e}(),N=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.project=r,i.count=0,i.thisArg=n||i,i}return l(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){this.destination.error(e);return}this.destination.next(t)},t}(x),P=function(e){return function(t){for(var r=0,n=e.length;r0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(z);function Z(){for(var e,t,r=[],n=0;n1&&"number"==typeof r[r.length-1]&&(i=r.pop())):"number"==typeof a&&(i=r.pop()),null===o&&1===r.length&&r[0]instanceof S)?r[0]:(void 0===(e=i)&&(e=Number.POSITIVE_INFINITY),function e(t,r,n){return(void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof r)?function(i){return i.pipe(e(function(e,n){return B(t(e,n)).pipe(M(function(t,i){return r(e,t,n,i)}))},n))}:("number"==typeof r&&(n=r),function(e){return e.lift(new H(t,n))})}(j,e))((t=o)?V(r,t):new S(P(r)))}var W=new S(function(e){return e.complete()});function q(){}var G=function(){function e(e,t,r){this.nextOrObserver=e,this.error=t,this.complete=r}return e.prototype.call=function(e,t){return t.subscribe(new Y(e,this.nextOrObserver,this.error,this.complete))},e}(),Y=function(e){function t(t,r,n,i){var o=e.call(this,t)||this;return o._tapNext=q,o._tapError=q,o._tapComplete=q,o._tapError=n||q,o._tapComplete=i||q,u(r)?(o._context=o,o._tapNext=r):r&&(o._context=r,o._tapNext=r.next||q,o._tapError=r.error||q,o._tapComplete=r.complete||q),o}return l(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){this.destination.error(e);return}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){this.destination.error(e);return}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){this.destination.error(e);return}return this.destination.complete()},t}(x),X=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),K=function(e){function t(t,r){var n=e.call(this)||this;return n.subject=t,n.subscriber=r,n.closed=!1,n}return l(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var r=t.indexOf(this.subscriber);-1!==r&&t.splice(r,1)}}},t}(g),J=function(e){function t(t){var r=e.call(this,t)||this;return r.destination=t,r}return l(t,e),t}(x),Q=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return l(t,e),t.prototype[b]=function(){return new J(this)},t.prototype.lift=function(e){var t=new ee(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new X;if(!this.isStopped)for(var t=this.observers,r=t.length,n=t.slice(),i=0;i1)){this.connection=null;return}var r=this.connection,n=e._connection;this.connection=null,n&&(!r||n===r)&&n.unsubscribe()},t}(x),ei={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(n=function(e){function t(t,r){var n=e.call(this)||this;return n.source=t,n.subjectFactory=r,n._refCount=0,n._isComplete=!1,n}return l(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return!e&&(this._isComplete=!1,(e=this._connection=new g).add(this.source.subscribe(new eo(this.getSubject(),this))),e.closed&&(this._connection=null,e=g.EMPTY)),e},t.prototype.refCount=function(){return et()(this)},t}(S).prototype)._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}},eo=function(e){function t(t,r){var n=e.call(this,t)||this;return n.connectable=r,n}return l(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(J),ea=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var r=this.selector,n=this.subjectFactory(),i=r(n).subscribe(e);return i.add(t.subscribe(n)),i},e}();function es(){return new Q}var el=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}(),eu=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new ec(e,this.predicate,this.thisArg))},e}(),ec=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.predicate=r,i.thisArg=n,i.count=0,i}return l(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){this.destination.error(e);return}t&&this.destination.next(e)},t}(x),ed=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}(),ef=function(){function e(e){if(this.total=e,this.total<0)throw new ed}return e.prototype.call=function(e,t){return t.subscribe(new eh(e,this.total))},e}(),eh=function(e){function t(t,r){var n=e.call(this,t)||this;return n.total=r,n.count=0,n}return l(t,e),t.prototype._next=function(e){var t=this.total,r=++this.count;r<=t&&(this.destination.next(e),r===t&&(this.destination.complete(),this.unsubscribe()))},t}(x),ep=function(){function e(e){this.defaultValue=e}return e.prototype.call=function(e,t){return t.subscribe(new em(e,this.defaultValue))},e}(),em=function(e){function t(t,r){var n=e.call(this,t)||this;return n.defaultValue=r,n.isEmpty=!0,n}return l(t,e),t.prototype._next=function(e){this.isEmpty=!1,this.destination.next(e)},t.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},t}(x),ev=function(){function e(e){this.errorFactory=e}return e.prototype.call=function(e,t){return t.subscribe(new eg(e,this.errorFactory))},e}(),eg=function(e){function t(t,r){var n=e.call(this,t)||this;return n.errorFactory=r,n.hasValue=!1,n}return l(t,e),t.prototype._next=function(e){this.hasValue=!0,this.destination.next(e)},t.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var e=void 0;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)},t}(x),ey=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new eb(e))},e}(),eb=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype._next=function(e){},t}(x),ex=r(48834).lW;let ew=e=>S.create(t=>{function r(e){let r=e.target;r.value&&t.next(ex.from(r.value.buffer))}return(0,k.c)("ble-verbose","start monitor "+e.uuid),e.startNotifications().then(()=>{e.addEventListener("characteristicvaluechanged",r)}),()=>{(0,k.c)("ble-verbose","end monitor "+e.uuid),e.stopNotifications()}});var eE=r(48834).lW,ej=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};let eS=()=>{let{bluetooth:e}=navigator;if(void 0===e)throw Error("web bluetooth not supported");return e},eC=()=>S.create(e=>{let t=eS(),r=t=>{e.next(t.value)};t.addEventListener("availabilitychanged",r);let n=!1;return t.getAvailability().then(t=>{n||e.next(t)}),()=>{n=!0,t.removeEventListener("availabilitychanged",r)}}),ek={},eA=()=>({filters:(0,a.RH)().map(e=>({services:[e]}))}),eO=e=>ej(void 0,void 0,void 0,function*(){if(!e.gatt)throw Error("bluetooth gatt not found");let[t]=yield e.gatt.getPrimaryServices();if(!t)throw Error("bluetooth service not found");let r=(0,a.R7)(t.uuid);if(!r)throw Error("bluetooth service infos not found");return[t,r]});class eT extends i.ZP{static listen(e){let t;(0,k.c)("ble-verbose","listen...");let r=eS();return r.requestDevice(eA()).then(r=>{t||(e.next({type:"add",descriptor:r}),e.complete())},t=>{e.error(new o.FB(t.message))}),{unsubscribe:function(){t=!0}}}static open(e){return ej(this,void 0,void 0,function*(){return function e(t,r){return ej(this,void 0,void 0,function*(){var n;let i;if("string"==typeof t){if(ek[t])return(0,k.c)("ble-verbose","Transport in cache, using that."),ek[t];let e=eS();i=yield e.requestDevice(eA())}else i=t;i.gatt.connected||((0,k.c)("ble-verbose","not connected. connecting..."),yield i.gatt.connect());let[a,s]=yield eO(i),{deviceModel:l,writeUuid:u,notifyUuid:c}=s,[d,f]=yield Promise.all([a.getCharacteristic(u),a.getCharacteristic(c)]),h=ew(f).pipe((n=e=>{(0,k.c)("ble-frame","<= "+e.toString("hex"))},function(e){return e.lift(new G(n,void 0,void 0))}),function(e){var t;return et()(function(e){if("function"==typeof t)return e.lift(new ea(es,t));var r=Object.create(e,ei);return r.source=e,r.subjectFactory=es,r}(e))}),p=h.subscribe(),m=new eT(i,d,h,l);if(!i.gatt.connected)throw new o.qX;ek[m.id]=m;let v=e=>{console.log("onDisconnect!",e),delete ek[m.id],m.notYetDisconnected=!1,p.unsubscribe(),i.removeEventListener("gattserverdisconnected",v),(0,k.c)("ble-verbose",`BleTransport(${m.id}) disconnected`),m.emit("disconnect",e)};i.addEventListener("gattserverdisconnected",v);let g=Date.now();try{yield m.inferMTU()}finally{let e=Date.now();e-g<1e3&&(r=!1),r&&(yield i.gatt.disconnect(),yield new Promise(e=>setTimeout(e,4e3)))}return r?e(i,!1):m})}(e,!0)})}constructor(e,t,r,n){super(),this.mtuSize=20,this.notYetDisconnected=!0,this.write=e=>ej(this,void 0,void 0,function*(){(0,k.c)("ble-frame","=> "+e.toString("hex")),yield this.writeCharacteristic.writeValue(e)}),this.id=e.id,this.device=e,this.writeCharacteristic=t,this.notifyObservable=r,this.deviceModel=n,(0,k.c)("ble-verbose",`BleTransport(${String(this.id)}) new instance`)}inferMTU(){return ej(this,void 0,void 0,function*(){let e=23;if(yield this.exchangeAtomicImpl(()=>ej(this,void 0,void 0,function*(){try{var t;e=(yield Z(this.notifyObservable.pipe(function(e,t){var r=arguments.length>=2;return function(t){var n,i,o;return t.pipe(e?(n=function(r,n){return e(r,n,t)},function(e){return e.lift(new eu(n,void 0))}):j,function(e){return e.lift(new ef(1))},r?(i=void 0,i=null,function(e){return e.lift(new ep(i))}):(o=function(){return new el},function(e){return e.lift(new ev(o))}))}}(e=>8===e.readUInt8(0)),M(e=>e.readUInt8(5))),(t=()=>B(this.write(eE.from([8,0,0,0,0]))),new S(function(e){var r,n,i;try{n=t()}catch(t){e.error(t);return}return(n?B(n):r?(i=r,new S(function(e){return i.schedule(function(){return e.complete()})})):W).subscribe(e)})).pipe(function(e){return e.lift(new ey)})).toPromise())+3}catch(e){throw(0,k.c)("ble-error","inferMTU got "+String(e)),this.device.gatt.disconnect(),e}})),e>23){let t=e-3;(0,k.c)("ble-verbose",`BleTransport(${String(this.id)}) mtu set to ${String(t)}`),this.mtuSize=t}return this.mtuSize})}exchange(e){return ej(this,void 0,void 0,function*(){let t=yield this.exchangeAtomicImpl(()=>ej(this,void 0,void 0,function*(){try{let t=e.toString("hex");(0,k.c)("apdu",`=> ${t}`);let r=yield Z(this.notifyObservable.pipe(_),O(this.write,e,this.mtuSize)).toPromise(),n=r.toString("hex");return(0,k.c)("apdu",`<= ${n}`),r}catch(e){throw(0,k.c)("ble-error","exchange got "+String(e)),this.notYetDisconnected&&this.device.gatt.disconnect(),e}}));return t})}setScrambleKey(){}close(){return ej(this,void 0,void 0,function*(){this.exchangeBusyPromise&&(yield this.exchangeBusyPromise)})}}eT.isSupported=()=>Promise.resolve().then(eS).then(()=>!0,()=>!1),eT.observeAvailability=e=>eC().subscribe(e),eT.list=()=>Promise.resolve([]),eT.disconnect=e=>ej(void 0,void 0,void 0,function*(){(0,k.c)("ble-verbose",`user disconnect(${e})`);let t=ek[e];t&&t.device.gatt.disconnect()});var e_=eT},27748:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=r(97790),i=r(9341),o=r(48834).lW;let a={data:o.alloc(0),dataLength:0,sequence:0};var s=(e,t)=>({makeBlocks(r){let n=o.concat([function(e){let t=o.alloc(2);return t.writeUInt16BE(e,0),t}(r.length),r]),i=t-5,a=Math.ceil(n.length/i);n=o.concat([n,o.alloc(a*i-n.length+1).fill(0)]);let s=[];for(let t=0;ts&&(n=n.slice(0,s)),{data:n,dataLength:s,sequence:l}},getReducedResult(e){if(e&&e.dataLength===e.data.length)return e.data}}),l=r(75102),u=r(91288),c=r(48834).lW,d=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};let f=[{vendorId:l.An}],h=()=>{let{hid:e}=navigator;if(!e)throw new i.PS("navigator.hid is not supported","HIDNotSupported");return e};function p(){return d(this,void 0,void 0,function*(){let e=yield h().requestDevice({filters:f});return Array.isArray(e)?e:[e]})}function m(){return d(this,void 0,void 0,function*(){let e=yield h().getDevices();return e.filter(e=>e.vendorId===l.An)})}class v extends n.ZP{constructor(e){super(),this.channel=Math.floor(65535*Math.random()),this.packetSize=64,this.inputs=[],this.read=()=>this.inputs.length?Promise.resolve(this.inputs.shift()):new Promise(e=>{this.inputCallback=e}),this.onInputReport=e=>{let t=c.from(e.data.buffer);this.inputCallback?(this.inputCallback(t),this.inputCallback=null):this.inputs.push(t)},this._disconnectEmitted=!1,this._emitDisconnect=e=>{this._disconnectEmitted||(this._disconnectEmitted=!0,this.emit("disconnect",e))},this.exchange=e=>d(this,void 0,void 0,function*(){let t=yield this.exchangeAtomicImpl(()=>d(this,void 0,void 0,function*(){let t,r;let{channel:n,packetSize:i}=this;(0,u.c)("apdu","=> "+e.toString("hex"));let o=s(n,i),a=o.makeBlocks(e);for(let e=0;e{if(e&&e.message&&e.message.includes("write"))throw this._emitDisconnect(e),new i.vs(e.message);throw e});return t}),this.device=e,this.deviceModel="number"==typeof e.productId?(0,l.Ht)(e.productId):void 0,e.addEventListener("inputreport",this.onInputReport)}static request(){return d(this,void 0,void 0,function*(){let[e]=yield p();return v.open(e)})}static openConnected(){return d(this,void 0,void 0,function*(){let e=yield m();return 0===e.length?null:v.open(e[0])})}static open(e){return d(this,void 0,void 0,function*(){yield e.open();let t=new v(e),r=n=>{e===n.device&&(h().removeEventListener("disconnect",r),t._emitDisconnect(new i.qX))};return h().addEventListener("disconnect",r),t})}close(){return d(this,void 0,void 0,function*(){yield this.exchangeBusyPromise,this.device.removeEventListener("inputreport",this.onInputReport),yield this.device.close()})}setScrambleKey(){}}v.isSupported=()=>Promise.resolve(!!(window.navigator&&window.navigator.hid)),v.list=m,v.listen=e=>{let t=!1;return(function(){return d(this,void 0,void 0,function*(){let e=yield m();if(e.length>0)return e[0];let t=yield p();return t[0]})})().then(r=>{if(r){if(!t){let t="number"==typeof r.productId?(0,l.Ht)(r.productId):void 0;e.next({type:"add",descriptor:r,deviceModel:t}),e.complete()}}else e.error(new i.FB("Access denied to use Ledger device"))},t=>{e.error(new i.FB(t.message))}),{unsubscribe:function(){t=!0}}};var g=v},97790:function(e,t,r){"use strict";var n=r(22699),i=r.n(n),o=r(9341),a=r(48834).lW,s=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};class l{constructor(){this.exchangeTimeout=3e4,this.unresponsiveTimeout=15e3,this.deviceModel=null,this._events=new(i()),this.send=(e,t,r,n,i=a.alloc(0),l=[o.WC.OK])=>s(this,void 0,void 0,function*(){if(i.length>=256)throw new o.PS("data.length exceed 256 bytes limit. Got: "+i.length,"DataLengthTooBig");let s=yield this.exchange(a.concat([a.from([e,t,r,n]),a.from([i.length]),i])),u=s.readUInt16BE(s.length-2);if(!l.some(e=>e===u))throw new o.rZ(u);return s}),this.exchangeAtomicImpl=e=>s(this,void 0,void 0,function*(){let t;if(this.exchangeBusyPromise)throw new o.wp("An action was already pending on the Ledger device. Please deny or reconnect.");let r=new Promise(e=>{t=e});this.exchangeBusyPromise=r;let n=!1,i=setTimeout(()=>{n=!0,this.emit("unresponsive")},this.unresponsiveTimeout);try{let t=yield e();return n&&this.emit("responsive"),t}finally{clearTimeout(i),t&&t(),this.exchangeBusyPromise=null}}),this._appAPIlock=null}exchange(e){throw Error("exchange not implemented")}exchangeBulk(e,t){let r=!1;return s(this,void 0,void 0,function*(){if(!r)for(let n of e){let e=yield this.exchange(n);if(r)return;let i=e.readUInt16BE(e.length-2);if(i!==o.WC.OK)throw new o.rZ(i);t.next(e)}}).then(()=>!r&&t.complete(),e=>!r&&t.error(e)),{unsubscribe:()=>{r=!0}}}setScrambleKey(e){}close(){return Promise.resolve()}on(e,t){this._events.on(e,t)}off(e,t){this._events.removeListener(e,t)}emit(e,...t){this._events.emit(e,...t)}setDebugMode(){console.warn("setDebugMode is deprecated. use @ledgerhq/logs instead. No logs are emitted in this anymore.")}setExchangeTimeout(e){this.exchangeTimeout=e}setExchangeUnresponsiveTimeout(e){this.unresponsiveTimeout=e}static create(e=3e3,t){return new Promise((r,n)=>{let i=!1,a=this.listen({next:t=>{i=!0,a&&a.unsubscribe(),s&&clearTimeout(s),this.open(t.descriptor,e).then(r,n)},error:e=>{s&&clearTimeout(s),n(e)},complete:()=>{s&&clearTimeout(s),i||n(new o.PS(this.ErrorMessage_NoDeviceFound,"NoDeviceFound"))}}),s=t?setTimeout(()=>{a.unsubscribe(),n(new o.PS(this.ErrorMessage_ListenTimeout,"ListenTimeout"))},t):null})}decorateAppAPIMethods(e,t,r){for(let n of t)e[n]=this.decorateAppAPIMethod(n,e[n],e,r)}decorateAppAPIMethod(e,t,r,n){return(...i)=>s(this,void 0,void 0,function*(){let{_appAPIlock:a}=this;if(a)return Promise.reject(new o.PS("Ledger Device is busy (lock "+a+")","TransportLocked"));try{return this._appAPIlock=e,this.setScrambleKey(n),yield t.apply(r,i)}finally{this._appAPIlock=null}})}}l.ErrorMessage_ListenTimeout="No Ledger device found (timeout)",l.ErrorMessage_NoDeviceFound="No Ledger device found",t.ZP=l},91288:function(e,t,r){"use strict";r.d(t,{c:function(){return o}});var n=0,i=[],o=function(e,t,r){var o={type:e,id:String(++n),date:new Date};t&&(o.message=t),r&&(o.data=r),function(e){for(var t=0;t0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1] + * @license MIT + */let n=r(95766),i=r(62333),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);let r=0|p(e,t),n=a(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(I(e,Uint8Array)){let t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(I(e,ArrayBuffer)||e&&I(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(I(e,SharedArrayBuffer)||e&&I(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);let i=function(e){var t;if(s.isBuffer(e)){let t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|h(e))}function d(e){let t=e.length<0?0:0|h(e.length),r=a(t);for(let n=0;n=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||I(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return P(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return D(e).length;default:if(i)return n?-1:P(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,r){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=t;n2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(o=r=+r)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){let o,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let n=-1;for(o=r;os&&(r=s-l),o=r;o>=0;o--){let r=!0;for(let n=0;n239?4:t>223?3:t>191?2:1;if(i+a<=r){let r,n,s,l;switch(a){case 1:t<128&&(o=t);break;case 2:(192&(r=e[i+1]))==128&&(l=(31&t)<<6|63&r)>127&&(o=l);break;case 3:r=e[i+1],n=e[i+2],(192&r)==128&&(192&n)==128&&(l=(15&t)<<12|(63&r)<<6|63&n)>2047&&(l<55296||l>57343)&&(o=l);break;case 4:r=e[i+1],n=e[i+2],s=e[i+3],(192&r)==128&&(192&n)==128&&(192&s)==128&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s)>65535&&l<1114112&&(o=l)}}null===o?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=a}return function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nr)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function E(e,t,r,n,i){_(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function j(e,t,r,n,i){_(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function S(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function C(e,t,r,n,o){return t=+t,r>>>=0,o||S(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function k(e,t,r,n,o){return t=+t,r>>>=0,o||S(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,s.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),I(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);in.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else if(s.isBuffer(t))t.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tr&&(e+=" ... "),""},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let o=i-n,a=r-t,l=Math.min(o,a),u=this.slice(n,i),c=e.slice(t,r);for(let e=0;e>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let f=this.length-t;if((void 0===r||r>f)&&(r=f),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let h=!1;for(;;)switch(n){case"hex":return function(e,t,r,n){let i;r=Number(r)||0;let o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;let a=t.length;for(n>a/2&&(n=a/2),i=0;i>8,i.push(r%256),i.push(n);return i}(e,this.length-c),this,c,d);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||x(e,t,this.length);let n=this[e],i=1,o=0;for(;++o>>=0,t>>>=0,r||x(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=V(function(e){M(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&R(e,this.length-8);let n=t+256*this[++e]+65536*this[++e]+16777216*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+16777216*r;return BigInt(n)+(BigInt(i)<>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&R(e,this.length-8);let n=16777216*t+65536*this[++e]+256*this[++e]+this[++e],i=16777216*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||x(e,t,this.length);let n=this[e],i=1,o=0;for(;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||x(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||x(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||x(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=V(function(e){M(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&R(e,this.length-8);let n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&R(e,this.length-8);let n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<>>=0,t||x(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;w(this,e,t,r,n,0)}let i=1,o=0;for(this[t]=255&e;++o>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;w(this,e,t,r,n,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=V(function(e,t=0){return E(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=V(function(e,t=0){return j(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);w(this,e,t,r,n-1,-n)}let i=0,o=1,a=0;for(this[t]=255&e;++i>0)-a&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);w(this,e,t,r,n-1,-n)}let i=r-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=V(function(e,t=0){return E(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=V(function(e,t=0){return j(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(e,t,r){return C(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return C(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function _(e,t,r,n,i,o){if(e>r||e3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(o+1)*8}${i}`:`>= -(2${i} ** ${(o+1)*8-1}${i}) and < 2 ** ${(o+1)*8-1}${i}`:`>= ${t}${i} and <= ${r}${i}`,new A.ERR_OUT_OF_RANGE("value",n,e)}M(i,"offset"),(void 0===n[i]||void 0===n[i+o])&&R(i,n.length-(o+1))}function M(e,t){if("number"!=typeof e)throw new A.ERR_INVALID_ARG_TYPE(t,"number",e)}function R(e,t,r){if(Math.floor(e)!==e)throw M(e,r),new A.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new A.ERR_BUFFER_OUT_OF_BOUNDS;throw new A.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}O("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),O("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),O("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>4294967296?i=T(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=T(i)),i+="n"),n+=` It must be ${t}. Received ${i}`},RangeError);let N=/[^+/0-9A-Za-z-_]/g;function P(e,t){let r;t=t||1/0;let n=e.length,i=null,o=[];for(let a=0;a55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function D(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(N,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function L(e,t,r,n){let i;for(i=0;i=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function I(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let F=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function V(e){return"undefined"==typeof BigInt?B:e}function B(){throw Error("BigInt not supported")}},52180:function(e,t){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){void 0===e&&(e="="),this._paddingCharacter=e}return e.prototype.encodedLength=function(e){return this._paddingCharacter?(e+2)/3*4|0:(8*e+5)/6|0},e.prototype.encode=function(e){for(var t="",r=0;r>>18&63)+this._encodeByte(n>>>12&63)+this._encodeByte(n>>>6&63)+this._encodeByte(n>>>0&63)}var i=e.length-r;if(i>0){var n=e[r]<<16|(2===i?e[r+1]<<8:0);t+=this._encodeByte(n>>>18&63)+this._encodeByte(n>>>12&63),2===i?t+=this._encodeByte(n>>>6&63):t+=this._paddingCharacter||"",t+=this._paddingCharacter||""}return t},e.prototype.maxDecodedLength=function(e){return this._paddingCharacter?e/4*3|0:(6*e+7)/8|0},e.prototype.decodedLength=function(e){return this.maxDecodedLength(e.length-this._getPaddingLength(e))},e.prototype.decode=function(e){if(0===e.length)return new Uint8Array(0);for(var t=this._getPaddingLength(e),r=e.length-t,n=new Uint8Array(this.maxDecodedLength(r)),i=0,o=0,a=0,s=0,l=0,u=0,c=0;o>>4,n[i++]=l<<4|u>>>2,n[i++]=u<<6|c,a|=256&s,a|=256&l,a|=256&u,a|=256&c;if(o>>4,a|=256&s,a|=256&l),o>>2,a|=256&u),o>>8&6)+(51-e>>>8&-75)+(61-e>>>8&-15)+(62-e>>>8&3))},e.prototype._decodeChar=function(e){return 256+((42-e&e-44)>>>8&-256+e-43+62)+((46-e&e-48)>>>8&-256+e-47+63)+((47-e&e-58)>>>8&-256+e-48+52)+((64-e&e-91)>>>8&-256+e-65+0)+((96-e&e-123)>>>8&-256+e-97+26)},e.prototype._getPaddingLength=function(e){var t=0;if(this._paddingCharacter){for(var r=e.length-1;r>=0&&e[r]===this._paddingCharacter;r--)t++;if(e.length<4||t>2)throw Error("Base64Coder: incorrect padding")}return t},e}();t.Coder=i;var o=new i;t.encode=function(e){return o.encode(e)},t.decode=function(e){return o.decode(e)};var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype._encodeByte=function(e){var t=e;return String.fromCharCode(t+=65+(25-e>>>8&6)+(51-e>>>8&-75)+(61-e>>>8&-13)+(62-e>>>8&49))},t.prototype._decodeChar=function(e){return 256+((44-e&e-46)>>>8&-256+e-45+62)+((94-e&e-96)>>>8&-256+e-95+63)+((47-e&e-58)>>>8&-256+e-48+52)+((64-e&e-91)>>>8&-256+e-65+0)+((96-e&e-123)>>>8&-256+e-97+26)},t}(i);t.URLSafeCoder=a;var s=new a;t.encodeURLSafe=function(e){return s.encode(e)},t.decodeURLSafe=function(e){return s.decode(e)},t.encodedLength=function(e){return o.encodedLength(e)},t.maxDecodedLength=function(e){return o.maxDecodedLength(e)},t.decodedLength=function(e){return o.decodedLength(e)}},99985:function(e,t,r){"use strict";t.Z=s;var n=a(r(13980)),i=a(r(2784)),o=a(r(23442));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){var t=e.captureDragArea,r=void 0===t||t,n=e.snapToPointer,a=e.children,s=e.dx,l=e.dy,u=e.height,c=e.onDragEnd,d=e.onDragMove,f=e.onDragStart,h=e.resetOnStart,p=e.width,m=e.x,v=e.y,g=e.isDragging,y=e.restrict,b=e.restrictToPath,x=(0,o.default)({resetOnStart:h,snapToPointer:void 0===n||n,onDragEnd:c,onDragMove:d,onDragStart:f,x:m,y:v,dx:s,dy:l,isDragging:g,restrict:y,restrictToPath:b});return i.default.createElement(i.default.Fragment,null,x.isDragging&&r&&i.default.createElement("rect",{width:p,height:u,onPointerDown:x.dragStart,onPointerMove:x.dragMove,onPointerUp:x.dragEnd,fill:"transparent"}),a(x))}s.propTypes={children:n.default.func.isRequired,width:n.default.number.isRequired,height:n.default.number.isRequired,captureDragArea:n.default.bool,isDragging:n.default.bool}},23442:function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e){var t=void 0===e?{}:e,r=t.resetOnStart,u=void 0!==r&&r,d=t.snapToPointer,f=void 0===d||d,h=t.onDragEnd,p=t.onDragMove,m=t.onDragStart,v=t.x,g=t.y,y=t.dx,b=t.dy,x=t.isDragging,w=t.restrict,E=void 0===w?{}:w,j=t.restrictToPath,S=(0,n.useRef)({x:v,y:g,dx:y,dy:b}),C=(0,a.default)({x:v,y:g,dx:null!=y?y:0,dy:null!=b?b:0,isDragging:!1}),k=C[0],A=C[1],O=(0,n.useState)(new i.Point({x:0,y:0})),T=O[0],_=O[1];(0,n.useEffect)(function(){(S.current.x!==v||S.current.y!==g||S.current.dx!==y||S.current.dy!==b)&&(S.current={x:v,y:g,dx:y,dy:b},A(function(e){return c({},e,{x:v,y:g,dx:null!=y?y:0,dy:null!=b?b:0})}))}),(0,n.useEffect)(function(){void 0!==x&&k.isDragging!==x&&A(function(e){return c({},e,{isDragging:x})})},[k.isDragging,x,A]);var M=(0,l.default)(j),R=(0,n.useCallback)(function(e){e.persist(),A(function(t){var r=t.x,n=t.y,a=t.dx,l=t.dy,c=new i.Point({x:((void 0===r?0:r)||0)+a,y:((void 0===n?0:n)||0)+l}),d=(0,o.localPoint)(e)||new i.Point({x:0,y:0}),h=f?d:c,p=(0,s.default)(h,M,E);return _((0,i.subtractPoints)(c,d)),{isDragging:!0,dx:u?0:t.dx,dy:u?0:t.dy,x:u?p.x:p.x-t.dx,y:u?p.y:p.y-t.dy}},m&&function(t){m(c({},t,{event:e}))})},[m,u,E,M,A,f]),N=(0,n.useCallback)(function(e){e.persist(),A(function(t){if(!t.isDragging)return t;var r=t.x,n=t.y,a=(0,o.localPoint)(e)||new i.Point({x:0,y:0}),l=f?a:(0,i.sumPoints)(a,T),u=(0,s.default)(l,M,E);return c({},t,{dx:u.x-(void 0===r?0:r),dy:u.y-(void 0===n?0:n)})},p&&function(t){t.isDragging&&p(c({},t,{event:e}))})},[A,p,f,T,M,E]),P=(0,n.useCallback)(function(e){e.persist(),A(function(e){return c({},e,{isDragging:!1})},h&&function(t){h(c({},t,{event:e}))})},[h,A]);return c({},k,{dragEnd:P,dragMove:N,dragStart:R})};var n=r(2784),i=r(61305),o=r(65319),a=u(r(37016)),s=u(r(60890)),l=u(r(32722));function u(e){return e&&e.__esModule?e:{default:e}}function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(n=a()).done;){var s=n.value,l=Math.sqrt(Math.pow(s.x-e.x,2)+Math.pow(s.y-e.y,2));l0)?(0,i.default)(e,t):{x:(0,n.default)(e.x,null!=(o=r.xMin)?o:-1/0,null!=(a=r.xMax)?a:1/0),y:(0,n.default)(e.y,null!=(s=r.yMin)?s:-1/0,null!=(l=r.yMax)?l:1/0)}};var n=o(r(30968)),i=o(r(98929));function o(e){return e&&e.__esModule?e:{default:e}}},32722:function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e){return(0,n.useMemo)(function(){if(!e)return[];var t=e.getCTM()||new DOMMatrix;return function(e,t,r){if(void 0===r&&(r=1),!e)return[];for(var n=[],i=e.getTotalLength(),o=0;o<=i;o+=r){var a=e.getPointAtLength(o).matrixTransform(t);n.push(a)}return n}(e,t)},[null==e?void 0:e.getTotalLength()])};var n=r(2784)},37016:function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e){var t=(0,n.useState)(e),r=t[0],i=t[1],o=(0,n.useRef)(null),a=(0,n.useCallback)(function(e,t){o.current=t||null,i(e)},[i]);return(0,n.useLayoutEffect)(function(){o.current&&(o.current(r),o.current=null)},[r]),[r,a]};var n=r(2784)},65319:function(e,t,r){"use strict";r.r(t),r.d(t,{localPoint:function(){return n.Z},touchPoint:function(){return i.Z}});var n=r(91032),i=r(49833)},91032:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(49833),i=r(44321);function o(e,t){if((0,i.kK)(e)&&t)return(0,n.Z)(e,t);if((0,i.cO)(e)){var r=e.target;if(r)return(0,n.Z)(r,e)}return null}},49833:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(19067),i=r(44321);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:o({},a);if((0,i.N5)(e))return{x:e.clientX,y:e.clientY};var t=null==e?void 0:e.target,r=t&&"getBoundingClientRect"in t?t.getBoundingClientRect():null;return r?{x:r.x+r.width/2,y:r.y+r.height/2}:o({},a)}(t),s=(0,i.vZ)(e)?e.ownerSVGElement:e,l=(0,i.DY)(s)?s.getScreenCTM():null;if((0,i.r4)(s)&&l){var u=s.createSVGPoint();return u.x=r.x,u.y=r.y,u=u.matrixTransform(l.inverse()),new n.Z({x:u.x,y:u.y})}var c=e.getBoundingClientRect();return new n.Z({x:r.x-c.left-e.clientLeft,y:r.y-c.top-e.clientTop})}},44321:function(e,t,r){"use strict";function n(e){return!!e&&e instanceof Element}function i(e){return!!e&&(e instanceof SVGElement||"ownerSVGElement"in e)}function o(e){return!!e&&"createSVGPoint"in e}function a(e){return!!e&&"getScreenCTM"in e}function s(e){return!!e&&"changedTouches"in e}function l(e){return!!e&&"clientX"in e}function u(e){return!!e&&(e instanceof Event||"nativeEvent"in e&&e.nativeEvent instanceof Event)}r.d(t,{DY:function(){return a},N5:function(){return l},cO:function(){return u},kK:function(){return n},r4:function(){return o},vZ:function(){return i},z6:function(){return s}})},19067:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});var n=function(){function e(e){var t=e.x,r=e.y;this.x=0,this.y=0,this.x=void 0===t?0:t,this.y=void 0===r?0:r}var t=e.prototype;return t.value=function(){return{x:this.x,y:this.y}},t.toArray=function(){return[this.x,this.y]},e}()},61305:function(e,t,r){"use strict";r.r(t),r.d(t,{Point:function(){return n.Z},subtractPoints:function(){return o},sumPoints:function(){return i}});var n=r(19067);function i(e,t){return new n.Z({x:e.x+t.x,y:e.y+t.y})}function o(e,t){return new n.Z({x:e.x-t.x,y:e.y-t.y})}},47440:function(e,t,r){"use strict";t.Z=function(e){var t=e.from,r=void 0===t?{x:0,y:0}:t,a=e.to,l=void 0===a?{x:1,y:1}:a,u=e.fill,c=e.className,d=e.innerRef,f=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,o),h=r.x===l.x||r.y===l.y;return n.default.createElement("line",s({ref:d,className:(0,i.default)("visx-line",c),x1:r.x,y1:r.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))};var n=a(r(2784)),i=a(r(72779)),o=["from","to","fill","className","innerRef"];function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],function(e){f.headers[e]={}}),o.forEach(["post","put","patch"],function(e){f.headers[e]=o.merge(c)}),e.exports=f},98560:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},29241:function(e){e.exports={version:"0.27.2"}},73644:function(e){"use strict";e.exports=function(e,t){return function(){for(var r=Array(arguments.length),n=0;n=0)&&("set-cookie"===t?a[t]=(a[t]?a[t]:[]).concat([r]):a[t]=a[t]?a[t]+", "+r:r)}),a}},10738:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},70783:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},49027:function(e,t,r){"use strict";var n=r(48834).lW,i=r(93044);e.exports=function(e,t){t=t||new FormData;var r=[];function o(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):n.from(e):e}return!function e(n,a){if(i.isPlainObject(n)||i.isArray(n)){if(-1!==r.indexOf(n))throw Error("Circular reference detected in "+a);r.push(n),i.forEach(n,function(r,n){if(!i.isUndefined(r)){var s,l=a?a+"."+n:n;if(r&&!a&&"object"==typeof r){if(i.endsWith(n,"{}"))r=JSON.stringify(r);else if(i.endsWith(n,"[]")&&(s=i.toArray(r))){s.forEach(function(e){i.isUndefined(e)||t.append(l,o(e))});return}}e(r,l)}}),r.pop()}else t.append(a,o(n))}(e),t}},17525:function(e,t,r){"use strict";var n=r(29241).version,i=r(21218),o={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){o[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var a={};o.transitional=function(e,t,r){function o(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,s){if(!1===e)throw new i(o(n," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!a[n]&&(a[n]=!0,console.warn(o(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),o=n.length;o-- >0;){var a=n[o],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new i("option "+a+" must be "+u,i.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new i("Unknown option "+a,i.ERR_BAD_OPTION)}},validators:o}},93044:function(e,t,r){"use strict";var n,i,o=r(73644),a=Object.prototype.toString,s=(n=Object.create(null),function(e){var t=a.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())});function l(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function u(e){return Array.isArray(e)}function c(e){return void 0===e}var d=l("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function h(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=l("Date"),m=l("File"),v=l("Blob"),g=l("FileList");function y(e){return"[object Function]"===a.call(e)}var b=l("URLSearchParams");function x(e,t){if(null!=e){if("object"!=typeof e&&(e=[e]),u(e))for(var r=0,n=e.length;r0;)a[o=n[i]]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:l,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return -1!==n&&n===r},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var r=Array(t);t-- >0;)r[t]=e[t];return r},isTypedArray:w,isFileList:g}},82294:function(e){"use strict";function t(e,t,i){e instanceof RegExp&&(e=r(e,i)),t instanceof RegExp&&(t=r(t,i));var o=n(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function r(e,t){var r=t.match(e);return r?r[0]:null}function n(e,t,r){var n,i,o,a,s,l=r.indexOf(e),u=r.indexOf(t,l+1),c=l;if(l>=0&&u>0){if(e===t)return[l,u];for(n=[],o=r.length;c>=0&&!s;)c==l?(n.push(c),l=r.indexOf(e,c+1)):1==n.length?s=[n.pop(),u]:((i=n.pop())=0?l:u;n.length&&(s=[o,a])}return s}e.exports=t,t.range=n},95766:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=l(e),a=o[0],s=o[1],u=new i((a+s)*3/4-s),c=0,d=s>0?a-4:a;for(r=0;r>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},6391:function(e,t,r){var n;!function(i){"use strict";var o,a=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,l=Math.floor,u="[BigNumber Error] ",c=u+"Number primitive has more than 15 significant digits: ",d=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function f(e){var t=0|e;return e>0||e===t?t:t-1}function h(e){for(var t,r,n=1,i=e.length,o=e[0]+"";nu^r?1:-1;for(a=0,s=(l=i.length)<(u=o.length)?l:u;ao[a]^r?1:-1;return l==u?0:l>u^r?1:-1}function m(e,t,r,n){if(er||e!==l(e))throw Error(u+(n||"Argument")+("number"==typeof e?er?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function v(e){var t=e.c.length-1;return f(e.e/14)==t&&e.c[t]%2!=0}function g(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function y(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(n=e.length,++t>n){for(i=r,t-=n;--t;i+=r);e+=i}else tM?h.c=h.e=null:e.e<_?h.c=[h.e=0]:(h.e=e.e,h.c=e.c.slice());return}if((u="number"==typeof e)&&0*e==0){if(h.s=1/e<0?(e=-e,-1):1,e===~~e){for(o=0,s=e;s>=10;s/=10,o++);o>M?h.c=h.e=null:(h.e=o,h.c=[e]);return}f=String(e)}else{if(!a.test(f=String(e)))return j(h,f,u);h.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(o=f.indexOf("."))>-1&&(f=f.replace(".","")),(s=f.search(/e/i))>0?(o<0&&(o=s),o+=+f.slice(s+1),f=f.substring(0,s)):o<0&&(o=f.length)}else{if(m(t,2,L.length,"Base"),10==t&&I)return z(h=new F(e),k+h.e+1,A);if(f=String(e),u="number"==typeof e){if(0*e!=0)return j(h,f,u,t);if(h.s=1/e<0?(f=f.slice(1),-1):1,F.DEBUG&&f.replace(/^0\.0*|\./,"").length>15)throw Error(c+e)}else h.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(r=L.slice(0,t),o=s=0,d=f.length;sr.indexOf(n=f.charAt(s))){if("."==n){if(s>o){o=d;continue}}else if(!i&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){i=!0,s=-1,o=0;continue}return j(h,String(e),u,t)}u=!1,(o=(f=E(f,t,10,h.s)).indexOf("."))>-1?f=f.replace(".",""):o=f.length}for(s=0;48===f.charCodeAt(s);s++);for(d=f.length;48===f.charCodeAt(--d););if(f=f.slice(s,++d)){if(d-=s,u&&F.DEBUG&&d>15&&(e>9007199254740991||e!==l(e)))throw Error(c+h.s*e);if((o=o-s-1)>M)h.c=h.e=null;else if(o<_)h.c=[h.e=0];else{if(h.e=o,h.c=[],s=(o+1)%14,o<0&&(s+=14),s=T)?g(l,a):y(l,a,"0");else if(o=(e=z(new F(e),t,r)).e,s=(l=h(e.c)).length,1==n||2==n&&(t<=o||o<=O)){for(;ss){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=o-s)>0)for(o+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function B(e,t){for(var r,n=1,i=new F(e[0]);n=10;i/=10,n++);return(r=n+14*r-1)>M?e.c=e.e=null:r<_?e.c=[e.e=0]:(e.e=r,e.c=t),e}function z(e,t,r,n){var i,o,a,u,c,f,h,p=e.c;if(p){e:{for(i=1,u=p[0];u>=10;u/=10,i++);if((o=t-i)<0)o+=14,a=t,h=(c=p[f=0])/d[i-a-1]%10|0;else if((f=s((o+1)/14))>=p.length){if(n){for(;p.length<=f;p.push(0));c=h=0,i=1,o%=14,a=o-14+1}else break e}else{for(i=1,c=u=p[f];u>=10;u/=10,i++);o%=14,h=(a=o-14+i)<0?0:c/d[i-a-1]%10|0}if(n=n||t<0||null!=p[f+1]||(a<0?c:c%d[i-a-1]),n=r<4?(h||n)&&(0==r||r==(e.s<0?3:2)):h>5||5==h&&(4==r||n||6==r&&(o>0?a>0?c/d[i-a]:0:p[f-1])%10&1||r==(e.s<0?8:7)),t<1||!p[0])return p.length=0,n?(t-=e.e+1,p[0]=d[(14-t%14)%14],e.e=-t||0):p[0]=e.e=0,e;if(0==o?(p.length=f,u=1,f--):(p.length=f+1,u=d[14-o],p[f]=a>0?l(c/d[i-a]%d[a])*u:0),n)for(;;){if(0==f){for(o=1,a=p[0];a>=10;a/=10,o++);for(a=p[0]+=u,u=1;a>=10;a/=10,u++);o!=u&&(e.e++,1e14==p[0]&&(p[0]=1));break}if(p[f]+=u,1e14!=p[f])break;p[f--]=0,u=1}for(o=p.length;0===p[--o];p.pop());}e.e>M?e.c=e.e=null:e.e<_&&(e.c=[e.e=0])}return e}function H(e){var t,r=e.e;return null===r?e.toString():(t=h(e.c),t=r<=O||r>=T?g(t,r):y(t,r,"0"),e.s<0?"-"+t:t)}return F.clone=e,F.ROUND_UP=0,F.ROUND_DOWN=1,F.ROUND_CEIL=2,F.ROUND_FLOOR=3,F.ROUND_HALF_UP=4,F.ROUND_HALF_DOWN=5,F.ROUND_HALF_EVEN=6,F.ROUND_HALF_CEIL=7,F.ROUND_HALF_FLOOR=8,F.EUCLID=9,F.config=F.set=function(e){var t,r;if(null!=e){if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(m(r=e[t],0,1e9,t),k=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(m(r=e[t],0,8,t),A=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(m(r[0],-1e9,0,t),m(r[1],0,1e9,t),O=r[0],T=r[1]):(m(r,-1e9,1e9,t),O=-(T=r<0?-r:r))),e.hasOwnProperty(t="RANGE")){if((r=e[t])&&r.pop)m(r[0],-1e9,-1,t),m(r[1],1,1e9,t),_=r[0],M=r[1];else if(m(r,-1e9,1e9,t),r)_=-(M=r<0?-r:r);else throw Error(u+t+" cannot be zero: "+r)}if(e.hasOwnProperty(t="CRYPTO")){if(!!(r=e[t])===r){if(r){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))R=r;else throw R=!r,Error(u+"crypto unavailable")}else R=r}else throw Error(u+t+" not true or false: "+r)}if(e.hasOwnProperty(t="MODULO_MODE")&&(m(r=e[t],0,9,t),N=r),e.hasOwnProperty(t="POW_PRECISION")&&(m(r=e[t],0,1e9,t),P=r),e.hasOwnProperty(t="FORMAT")){if("object"==typeof(r=e[t]))D=r;else throw Error(u+t+" not an object: "+r)}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(u+t+" invalid: "+r);I="0123456789"==r.slice(0,10),L=r}}else throw Error(u+"Object expected: "+e)}return{DECIMAL_PLACES:k,ROUNDING_MODE:A,EXPONENTIAL_AT:[O,T],RANGE:[_,M],CRYPTO:R,MODULO_MODE:N,POW_PRECISION:P,FORMAT:D,ALPHABET:L}},F.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!F.DEBUG)return!0;var t,r,n=e.c,i=e.e,o=e.s;e:if("[object Array]"==({}).toString.call(n)){if((1===o||-1===o)&&i>=-1e9&&i<=1e9&&i===l(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break e}if((t=(i+1)%14)<1&&(t+=14),String(n[0]).length==t){for(t=0;t=1e14||r!==l(r))break e;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(u+"Invalid BigNumber: "+e)},F.maximum=F.max=function(){return B(arguments,S.lt)},F.minimum=F.min=function(){return B(arguments,S.gt)},F.random=(r=9007199254740992*Math.random()&2097151?function(){return l(9007199254740992*Math.random())}:function(){return(1073741824*Math.random()|0)*8388608+(8388608*Math.random()|0)},function(e){var t,n,i,o,a,c=0,f=[],h=new F(C);if(null==e?e=k:m(e,0,1e9),o=s(e/14),R){if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));c>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[c]=n[0],t[c+1]=n[1]):(f.push(a%1e14),c+=2);c=o/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(o*=7);c=9e15?crypto.randomBytes(7).copy(t,c):(f.push(a%1e14),c+=7);c=o/7}else throw R=!1,Error(u+"crypto unavailable")}if(!R)for(;c=10;a/=10,c++);c<14&&(i-=14-c)}return h.e=i,h.c=f,h}),F.sum=function(){for(var e=1,t=arguments,r=new F(t[0]);er-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/r|0,a[i]%=r)}return a.reverse()}return function(r,n,i,o,a){var s,l,u,c,d,f,p,m,v=r.indexOf("."),g=k,b=A;for(v>=0&&(c=P,P=0,r=r.replace(".",""),f=(m=new F(n)).pow(r.length-v),P=c,m.c=t(y(h(f.c),f.e,"0"),10,i,e),m.e=m.c.length),u=c=(p=t(r,n,i,a?(s=L,e):(s=e,L))).length;0==p[--c];p.pop());if(!p[0])return s.charAt(0);if(v<0?--u:(f.c=p,f.e=u,f.s=o,p=(f=w(f,m,g,b,i)).c,d=f.r,u=f.e),v=p[l=u+g+1],c=i/2,d=d||l<0||null!=p[l+1],d=b<4?(null!=v||d)&&(0==b||b==(f.s<0?3:2)):v>c||v==c&&(4==b||d||6==b&&1&p[l-1]||b==(f.s<0?8:7)),l<1||!p[0])r=d?y(s.charAt(1),-g,s.charAt(0)):s.charAt(0);else{if(p.length=l,d)for(--i;++p[--l]>i;)p[l]=0,l||(++u,p=[1].concat(p));for(c=p.length;!p[--c];);for(v=0,r="";v<=c;r+=s.charAt(p[v++]));r=y(r,u,s.charAt(0))}return r}}(),w=function(){function e(e,t,r){var n,i,o,a,s=0,l=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();l--;)n=c*(o=e[l]%1e7)+(a=e[l]/1e7|0)*u,s=((i=u*o+n%1e7*1e7+s)/r|0)+(n/1e7|0)+c*a,e[l]=i%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;it[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]1;e.splice(0,1));}return function(n,i,o,a,s){var u,c,d,h,p,m,v,g,y,b,x,w,E,j,S,C,k,A=n.s==i.s?1:-1,O=n.c,T=i.c;if(!O||!O[0]||!T||!T[0])return new F(n.s&&i.s&&(O?!T||O[0]!=T[0]:T)?O&&0==O[0]||!T?0*A:A/0:NaN);for(y=(g=new F(A)).c=[],A=o+(c=n.e-i.e)+1,s||(s=1e14,c=f(n.e/14)-f(i.e/14),A=A/14|0),d=0;T[d]==(O[d]||0);d++);if(T[d]>(O[d]||0)&&c--,A<0)y.push(1),h=!0;else{for(j=O.length,C=T.length,d=0,A+=2,(p=l(s/(T[0]+1)))>1&&(T=e(T,p,s),O=e(O,p,s),C=T.length,j=O.length),E=C,x=(b=O.slice(0,C)).length;x=s/2&&S++;do{if(p=0,(u=t(T,b,C,x))<0){if(w=b[0],C!=x&&(w=w*s+(b[1]||0)),(p=l(w/S))>1)for(p>=s&&(p=s-1),v=(m=e(T,p,s)).length,x=b.length;1==t(m,b,v,x);)p--,r(m,Ct(T,b,C,x);)p++,r(b,C=10;A/=10,d++);z(g,o+(g.e=d+14*c-1)+1,a,h)}else g.e=c,g.r=+h;return g}}(),n=/^(-?)0([xbo])(?=\w[\w.]*$)/i,i=/^([^.]+)\.$/,o=/^\.([^.]+)$/,b=/^-?(Infinity|NaN)$/,x=/^\s*\+(?=[\w.])|^\s+|\s+$/g,j=function(e,t,r,a){var s,l=r?t:t.replace(x,"");if(b.test(l))e.s=isNaN(l)?null:l<0?-1:1;else{if(!r&&(l=l.replace(n,function(e,t,r){return s="x"==(r=r.toLowerCase())?16:"b"==r?2:8,a&&a!=s?e:t}),a&&(s=a,l=l.replace(i,"$1").replace(o,"0.$1")),t!=l))return new F(l,s);if(F.DEBUG)throw Error(u+"Not a"+(a?" base "+a:"")+" number: "+t);e.s=null}e.c=e.e=null},S.absoluteValue=S.abs=function(){var e=new F(this);return e.s<0&&(e.s=1),e},S.comparedTo=function(e,t){return p(this,new F(e,t))},S.decimalPlaces=S.dp=function(e,t){var r,n,i;if(null!=e)return m(e,0,1e9),null==t?t=A:m(t,0,8),z(new F(this),e+this.e+1,t);if(!(r=this.c))return null;if(n=((i=r.length-1)-f(this.e/14))*14,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},S.dividedBy=S.div=function(e,t){return w(this,new F(e,t),k,A)},S.dividedToIntegerBy=S.idiv=function(e,t){return w(this,new F(e,t),0,1)},S.exponentiatedBy=S.pow=function(e,t){var r,n,i,o,a,c,d,f,h,p=this;if((e=new F(e)).c&&!e.isInteger())throw Error(u+"Exponent not an integer: "+H(e));if(null!=t&&(t=new F(t)),c=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return h=new F(Math.pow(+H(p),c?2-v(e):+H(e))),t?h.mod(t):h;if(d=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new F(NaN);(n=!d&&p.isInteger()&&t.isInteger())&&(p=p.mod(t))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||c&&p.c[1]>=24e7:p.c[0]<8e13||c&&p.c[0]<=9999975e7)))return o=p.s<0&&v(e)?-0:0,p.e>-1&&(o=1/o),new F(d?1/o:o);P&&(o=s(P/14+2))}for(c?(r=new F(.5),d&&(e.s=1),f=v(e)):f=(i=Math.abs(+H(e)))%2,h=new F(C);;){if(f){if(!(h=h.times(p)).c)break;o?h.c.length>o&&(h.c.length=o):n&&(h=h.mod(t))}if(i){if(0===(i=l(i/2)))break;f=i%2}else if(z(e=e.times(r),e.e+1,1),e.e>14)f=v(e);else{if(0==(i=+H(e)))break;f=i%2}p=p.times(p),o?p.c&&p.c.length>o&&(p.c.length=o):n&&(p=p.mod(t))}return n?h:(d&&(h=C.div(h)),t?h.mod(t):o?z(h,P,A,a):h)},S.integerValue=function(e){var t=new F(this);return null==e?e=A:m(e,0,8),z(t,t.e+1,e)},S.isEqualTo=S.eq=function(e,t){return 0===p(this,new F(e,t))},S.isFinite=function(){return!!this.c},S.isGreaterThan=S.gt=function(e,t){return p(this,new F(e,t))>0},S.isGreaterThanOrEqualTo=S.gte=function(e,t){return 1===(t=p(this,new F(e,t)))||0===t},S.isInteger=function(){return!!this.c&&f(this.e/14)>this.c.length-2},S.isLessThan=S.lt=function(e,t){return 0>p(this,new F(e,t))},S.isLessThanOrEqualTo=S.lte=function(e,t){return -1===(t=p(this,new F(e,t)))||0===t},S.isNaN=function(){return!this.s},S.isNegative=function(){return this.s<0},S.isPositive=function(){return this.s>0},S.isZero=function(){return!!this.c&&0==this.c[0]},S.minus=function(e,t){var r,n,i,o,a=this.s;if(t=(e=new F(e,t)).s,!a||!t)return new F(NaN);if(a!=t)return e.s=-t,this.plus(e);var s=this.e/14,l=e.e/14,u=this.c,c=e.c;if(!s||!l){if(!u||!c)return u?(e.s=-t,e):new F(c?this:NaN);if(!u[0]||!c[0])return c[0]?(e.s=-t,e):new F(u[0]?this:3==A?-0:0)}if(s=f(s),l=f(l),u=u.slice(),a=s-l){for((o=a<0)?(a=-a,i=u):(l=s,i=c),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(n=(o=(a=u.length)<(t=c.length))?a:t,a=t=0;t0)for(;t--;u[r++]=0);for(t=1e14-1;n>a;){if(u[--n]=0;){for(r=0,h=g[i]%1e7,p=g[i]/1e7|0,o=i+(a=l);o>i;)s=p*(u=v[--a]%1e7)+(c=v[a]/1e7|0)*h,r=((u=h*u+s%1e7*1e7+m[o]+r)/1e14|0)+(s/1e7|0)+p*c,m[o--]=u%1e14;m[o]=r}return r?++n:m.splice(0,1),U(e,m,n)},S.negated=function(){var e=new F(this);return e.s=-e.s||null,e},S.plus=function(e,t){var r,n=this.s;if(t=(e=new F(e,t)).s,!n||!t)return new F(NaN);if(n!=t)return e.s=-t,this.minus(e);var i=this.e/14,o=e.e/14,a=this.c,s=e.c;if(!i||!o){if(!a||!s)return new F(n/0);if(!a[0]||!s[0])return s[0]?e:new F(a[0]?this:0*n)}if(i=f(i),o=f(o),a=a.slice(),n=i-o){for(n>0?(o=i,r=s):(n=-n,r=a),r.reverse();n--;r.push(0));r.reverse()}for((n=a.length)-(t=s.length)<0&&(r=s,s=a,a=r,t=n),n=0;t;)n=(a[--t]=a[t]+s[t]+n)/1e14|0,a[t]=1e14===a[t]?0:a[t]%1e14;return n&&(a=[n].concat(a),++o),U(e,a,o)},S.precision=S.sd=function(e,t){var r,n,i;if(null!=e&&!!e!==e)return m(e,1,1e9),null==t?t=A:m(t,0,8),z(new F(this),e,t);if(!(r=this.c))return null;if(n=14*(i=r.length-1)+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&this.e+1>n&&(n=this.e+1),n},S.shiftedBy=function(e){return m(e,-9007199254740991,9007199254740991),this.times("1e"+e)},S.squareRoot=S.sqrt=function(){var e,t,r,n,i,o=this.c,a=this.s,s=this.e,l=k+4,u=new F("0.5");if(1!==a||!o||!o[0])return new F(!a||a<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(a=Math.sqrt(+H(this)))||a==1/0?(((t=h(o)).length+s)%2==0&&(t+="0"),a=Math.sqrt(+t),s=f((s+1)/2)-(s<0||s%2),t=a==1/0?"5e"+s:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+s,r=new F(t)):r=new F(a+""),r.c[0]){for((a=(s=r.e)+l)<3&&(a=0);;)if(i=r,r=u.times(i.plus(w(this,i,l,1))),h(i.c).slice(0,a)===(t=h(r.c)).slice(0,a)){if(r.e0&&p>0){for(i=p%a||a,c=h.substr(0,i);i0&&(c+=l+h.slice(i)),f&&(c="-"+c)}n=d?c+(r.decimalSeparator||"")+((s=+r.fractionGroupSize)?d.replace(RegExp("\\d{"+s+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):d):c}return(r.prefix||"")+n+(r.suffix||"")},S.toFraction=function(e){var t,r,n,i,o,a,s,l,c,f,p,m,v=this.c;if(null!=e&&(!(s=new F(e)).isInteger()&&(s.c||1!==s.s)||s.lt(C)))throw Error(u+"Argument "+(s.isInteger()?"out of range: ":"not an integer: ")+H(s));if(!v)return new F(this);for(t=new F(C),c=r=new F(C),n=l=new F(C),m=h(v),o=t.e=m.length-this.e-1,t.c[0]=d[(a=o%14)<0?14+a:a],e=!e||s.comparedTo(t)>0?o>0?t:c:s,a=M,M=1/0,s=new F(m),l.c[0]=0;f=w(s,t,0,1),1!=(i=r.plus(f.times(n))).comparedTo(e);)r=n,n=i,c=l.plus(f.times(i=c)),l=i,t=s.minus(f.times(i=t)),s=i;return i=w(e.minus(r),n,0,1),l=l.plus(i.times(c)),r=r.plus(i.times(n)),l.s=c.s=this.s,o*=2,p=1>w(c,n,o,A).minus(this).abs().comparedTo(w(l,r,o,A).minus(this).abs())?[c,n]:[l,r],M=a,p},S.toNumber=function(){return+H(this)},S.toPrecision=function(e,t){return null!=e&&m(e,1,1e9),V(this,e,t,2)},S.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(null==e?t=i<=O||i>=T?g(h(r.c),i):y(h(r.c),i,"0"):10===e&&I?t=y(h((r=z(new F(r),k+i+1,A)).c),r.e,"0"):(m(e,2,L.length,"Base"),t=E(y(h(r.c),i,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},S.valueOf=S.toJSON=function(){return H(this)},S._isBigNumber=!0,null!=t&&F.set(t),F}()).default=o.BigNumber=o,void 0!==(n=(function(){return o}).call(t,r,t,e))&&(e.exports=n)}(0)},70651:function(e,t,r){let n=r(7967);function i(e,t,r){let n=e[t]+e[r],i=e[t+1]+e[r+1];n>=4294967296&&i++,e[t]=n,e[t+1]=i}function o(e,t,r,n){let i=e[t]+r;r<0&&(i+=4294967296);let o=e[t+1]+n;i>=4294967296&&o++,e[t]=i,e[t+1]=o}function a(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function s(e,t,r,n,a,s){let l=d[a],u=d[a+1],f=d[s],h=d[s+1];i(c,e,t),o(c,e,l,u);let p=c[n]^c[e],m=c[n+1]^c[e+1];c[n]=m,c[n+1]=p,i(c,r,n),p=c[t]^c[r],m=c[t+1]^c[r+1],c[t]=p>>>24^m<<8,c[t+1]=m>>>24^p<<8,i(c,e,t),o(c,e,f,h),p=c[n]^c[e],m=c[n+1]^c[e+1],c[n]=p>>>16^m<<16,c[n+1]=m>>>16^p<<16,i(c,r,n),p=c[t]^c[r],m=c[t+1]^c[r+1],c[t]=m>>>31^p<<1,c[t+1]=p>>>31^m<<1}let l=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),u=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map(function(e){return 2*e})),c=new Uint32Array(32),d=new Uint32Array(32);function f(e,t){let r=0;for(r=0;r<16;r++)c[r]=e.h[r],c[r+16]=l[r];for(c[24]=c[24]^e.t,c[25]=c[25]^e.t/4294967296,t&&(c[28]=~c[28],c[29]=~c[29]),r=0;r<32;r++)d[r]=a(e.b,4*r);for(r=0;r<12;r++)s(0,8,16,24,u[16*r+0],u[16*r+1]),s(2,10,18,26,u[16*r+2],u[16*r+3]),s(4,12,20,28,u[16*r+4],u[16*r+5]),s(6,14,22,30,u[16*r+6],u[16*r+7]),s(0,10,20,30,u[16*r+8],u[16*r+9]),s(2,12,22,24,u[16*r+10],u[16*r+11]),s(4,14,16,26,u[16*r+12],u[16*r+13]),s(6,8,18,28,u[16*r+14],u[16*r+15]);for(r=0;r<16;r++)e.h[r]=e.h[r]^c[r]^c[r+16]}let h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function p(e,t,r,n){if(0===e||e>64)throw Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(r&&16!==r.length)throw Error("Illegal salt, expected Uint8Array with length is 16");if(n&&16!==n.length)throw Error("Illegal personal, expected Uint8Array with length is 16");let i={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e};h.fill(0),h[0]=e,t&&(h[1]=t.length),h[2]=1,h[3]=1,r&&h.set(r,32),n&&h.set(n,48);for(let e=0;e<16;e++)i.h[e]=l[e]^a(h,4*e);return t&&(m(i,t),i.c=128),i}function m(e,t){for(let r=0;r>2]>>8*(3&r);return t}function g(e,t,r,i,o){r=r||64,e=n.normalizeInput(e),i&&(i=n.normalizeInput(i)),o&&(o=n.normalizeInput(o));let a=p(r,t,i,o);return m(a,e),v(a)}e.exports={blake2b:g,blake2bHex:function(e,t,r,i,o){let a=g(e,t,r,i,o);return n.toHex(a)},blake2bInit:p,blake2bUpdate:m,blake2bFinal:v}},39962:function(e,t,r){let n=r(7967);function i(e,t,r,n,i,a){l[e]=l[e]+l[t]+i,l[n]=o(l[n]^l[e],16),l[r]=l[r]+l[n],l[t]=o(l[t]^l[r],12),l[e]=l[e]+l[t]+a,l[n]=o(l[n]^l[e],8),l[r]=l[r]+l[n],l[t]=o(l[t]^l[r],7)}function o(e,t){return e>>>t^e<<32-t}let a=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),s=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),l=new Uint32Array(16),u=new Uint32Array(16);function c(e,t){let r=0;for(r=0;r<8;r++)l[r]=e.h[r],l[r+8]=a[r];for(l[12]^=e.t,l[13]^=e.t/4294967296,t&&(l[14]=~l[14]),r=0;r<16;r++){var n,o;u[r]=(n=e.b)[o=4*r]^n[o+1]<<8^n[o+2]<<16^n[o+3]<<24}for(r=0;r<10;r++)i(0,4,8,12,u[s[16*r+0]],u[s[16*r+1]]),i(1,5,9,13,u[s[16*r+2]],u[s[16*r+3]]),i(2,6,10,14,u[s[16*r+4]],u[s[16*r+5]]),i(3,7,11,15,u[s[16*r+6]],u[s[16*r+7]]),i(0,5,10,15,u[s[16*r+8]],u[s[16*r+9]]),i(1,6,11,12,u[s[16*r+10]],u[s[16*r+11]]),i(2,7,8,13,u[s[16*r+12]],u[s[16*r+13]]),i(3,4,9,14,u[s[16*r+14]],u[s[16*r+15]]);for(r=0;r<8;r++)e.h[r]^=l[r]^l[r+8]}function d(e,t){if(!(e>0&&e<=32))throw Error("Incorrect output length, should be in [1, 32]");let r=t?t.length:0;if(t&&!(r>0&&r<=32))throw Error("Incorrect key length, should be in [1, 32]");let n={h:new Uint32Array(a),b:new Uint8Array(64),c:0,t:0,outlen:e};return n.h[0]^=16842752^r<<8^e,r>0&&(f(n,t),n.c=64),n}function f(e,t){for(let r=0;r>2]>>8*(3&r)&255;return t}function p(e,t,r){r=r||32,e=n.normalizeInput(e);let i=d(r,t);return f(i,e),h(i)}e.exports={blake2s:p,blake2sHex:function(e,t,r){let i=p(e,t,r);return n.toHex(i)},blake2sInit:d,blake2sUpdate:f,blake2sFinal:h}},81395:function(e,t,r){let n=r(70651),i=r(39962);e.exports={blake2b:n.blake2b,blake2bHex:n.blake2bHex,blake2bInit:n.blake2bInit,blake2bUpdate:n.blake2bUpdate,blake2bFinal:n.blake2bFinal,blake2s:i.blake2s,blake2sHex:i.blake2sHex,blake2sInit:i.blake2sInit,blake2sUpdate:i.blake2sUpdate,blake2sFinal:i.blake2sFinal}},7967:function(e){function t(e){return(4294967296+e).toString(16).substring(1)}e.exports={normalizeInput:function(e){let t;if(e instanceof Uint8Array)t=e;else if("string"==typeof e){let r=new TextEncoder;t=r.encode(e)}else throw Error("Input must be an string, Buffer or Uint8Array");return t},toHex:function(e){return Array.prototype.map.call(e,function(e){return(e<16?"0":"")+e.toString(16)}).join("")},debugPrint:function(e,r,n){let i="\n"+e+" = ";for(let o=0;o + * @license MIT + */var n=r(95766),i=r(62333),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|p(e,t),n=a(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(T(e,Uint8Array)){var t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(T(e,ArrayBuffer)||e&&T(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(T(e,SharedArrayBuffer)||e&&T(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);var i=function(e){if(s.isBuffer(e)){var t,r=0|h(e.length),n=a(r);return 0===n.length||e.copy(n,0,0,r),n}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|h(e))}function d(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),n=0;n=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||T(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return k(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return A(e).length;default:if(i)return n?-1:k(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,r){var i,o,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(o=r=+r)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){var o,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=r;os&&(r=s-l),o=r;o>=0;o--){for(var d=!0,f=0;f239?4:u>223?3:u>191?2:1;if(i+d<=r)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;nr)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function E(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function j(e,t,r,n,o){return t=+t,r>>>=0,o||E(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function S(e,t,r,n,o){return t=+t,r>>>=0,o||E(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.lW=s,t.h2=50,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(T(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),T(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);in.length?s.from(o).copy(n,i):Uint8Array.prototype.set.call(n,o,i);else if(s.isBuffer(o))o.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tr&&(e+=" ... "),""},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(T(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,l=Math.min(o,a),u=this.slice(n,i),c=e.slice(t,r),d=0;d>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,l,u,c,d,f=this.length-t;if((void 0===r||r>f)&&(r=f),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var h=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var a=0;a>8,i.push(r%256),i.push(n);return i}(e,this.length-c),this,c,d);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||x(e,t,this.length);for(var n=this[e],i=1,o=0;++o>>=0,t>>>=0,r||x(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);for(var n=this[e],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||x(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||x(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||x(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,e,t,r,i,0)}var o=1,a=0;for(this[t]=255&e;++a>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,e,t,r,i,0)}var o=r-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return j(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return j(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return S(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return S(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function A(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(C,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function O(e,t,r,n){for(var i=0;i=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function T(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var _=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},72779:function(e,t){var r;/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t0&&a.length>i&&!a.warned){a.warned=!0;var i,o,a,u=Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,console&&console.warn&&console.warn(u)}return e}function c(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=c.bind(n);return i.listener=r,n.wrapFn=i,i}function f(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=Array(e.length),r=0;r0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)n(l,this,t);else for(var u=l.length,c=p(l,u),r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},73463:function(e,t,r){"use strict";var n=r(73887),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(p){var i=h(r);i&&i!==p&&e(t,i,n)}var a=c(r);d&&(a=a.concat(d(r)));for(var s=l(t),m=l(r),v=0;v */t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,l=(1<>1,c=-7,d=r?i-1:0,f=r?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:(h?-1:1)*(1/0);a+=Math.pow(2,n),o-=u}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,f=23===i?5960464477539062e-23:0,h=n?0:o-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[r+h]=255&a,h+=p,a/=256,u-=8);e[r+h-p]|=128*m}},39515:function(e,t,r){var n=r(38761)(r(37772),"DataView");e.exports=n},89612:function(e,t,r){var n=r(52118),i=r(96909),o=r(98138),a=r(4174),s=r(7942);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++ti?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n=i?e:n(e,t,r)}},24019:function(e,t,r){var n=r(37772)["__core-js_shared__"];e.exports=n},55463:function(e){e.exports=function(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===r(o[l],l,o))break}return t}}},83126:function(e,t,r){var n=r(23895),i=r(33880),o=r(8435),a=r(66188);e.exports=function(e){return function(t){var r=i(t=a(t))?o(t):void 0,s=r?r[0]:t.charAt(0),l=r?n(r,1).join(""):t.slice(1);return s[e]()+l}}},34311:function(e,t,r){var n=r(81207),i=r(97329),o=r(11618),a=RegExp("['’]","g");e.exports=function(e){return function(t){return n(o(i(t).replace(a,"")),e,"")}}},61655:function(e,t,r){var n=r(6435)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=n},83043:function(e,t,r){var n=r(38761),i=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},74871:function(e,t,r){var n=r(45386),i=r(87064),o=r(59950);e.exports=function(e,t,r,a,s,l){var u=1&r,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,v=2&r?new n:void 0;for(l.set(e,t),l.set(t,e);++p-1&&e%1==0&&e-1}},94769:function(e,t,r){var n=r(22218);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},92411:function(e,t,r){var n=r(89612),i=r(80235),o=r(10326);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},36417:function(e,t,r){var n=r(27937);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},86928:function(e,t,r){var n=r(27937);e.exports=function(e){return n(this,e).get(e)}},79493:function(e,t,r){var n=r(27937);e.exports=function(e){return n(this,e).has(e)}},24150:function(e,t,r){var n=r(27937);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}},75179:function(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}},73477:function(e){e.exports=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}},77777:function(e,t,r){var n=r(30733);e.exports=function(e){var t=n(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}},99191:function(e,t,r){var n=r(38761)(Object,"create");e.exports=n},54248:function(e,t,r){var n=r(60241)(Object.keys,Object);e.exports=n},4146:function(e,t,r){e=r.nmd(e);var n=r(51242),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&n.process,s=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},37157:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},60241:function(e){e.exports=function(e,t){return function(r){return e(t(r))}}},37772:function(e,t,r){var n=r(51242),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();e.exports=o},52842:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},52482:function(e){e.exports=function(e){return this.__data__.has(e)}},16909:function(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}},15243:function(e,t,r){var n=r(80235);e.exports=function(){this.__data__=new n,this.size=0}},72858:function(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},4417:function(e){e.exports=function(e){return this.__data__.get(e)}},8605:function(e){e.exports=function(e){return this.__data__.has(e)}},71418:function(e,t,r){var n=r(80235),i=r(10326),o=r(96738);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(a)}return r.set(e,t),this.size=r.size,this}},8435:function(e,t,r){var n=r(50217),i=r(33880),o=r(63344);e.exports=function(e){return i(e)?o(e):n(e)}},54452:function(e,t,r){var n=r(77777),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=n(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,r,n,i){t.push(n?i.replace(o,"$1"):r||e)}),t});e.exports=a},33812:function(e,t,r){var n=r(4795),i=1/0;e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},87035:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},63344:function(e){var t="\ud800-\udfff",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\ud83c[\udffb-\udfff]",i="[^"+t+"]",o="(?:\ud83c[\udde6-\uddff]){2}",a="[\ud800-\udbff][\udc00-\udfff]",s="(?:"+r+"|"+n+")?",l="[\\ufe0e\\ufe0f]?",u="(?:\\u200d(?:"+[i,o,a].join("|")+")"+l+s+")*",c=RegExp(n+"(?="+n+")|(?:"+[i+r+"?",r,o,a,"["+t+"]"].join("|")+")"+(l+s+u),"g");e.exports=function(e){return e.match(c)||[]}},75304:function(e){var t="\ud800-\udfff",r="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="['’]",s="["+o+"]",l="["+n+"]",u="[^"+t+o+"\\d+"+r+n+i+"]",c="(?:\ud83c[\udde6-\uddff]){2}",d="[\ud800-\udbff][\udc00-\udfff]",f="["+i+"]",h="(?:"+l+"|"+u+")",p="(?:"+a+"(?:d|ll|m|re|s|t|ve))?",m="(?:"+a+"(?:D|LL|M|RE|S|T|VE))?",v="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",g="[\\ufe0e\\ufe0f]?",y="(?:\\u200d(?:"+["[^"+t+"]",c,d].join("|")+")"+g+v+")*",b="(?:"+["["+r+"]",c,d].join("|")+")"+(g+v+y),x=RegExp([f+"?"+l+"+"+p+"(?="+[s,f,"$"].join("|")+")","(?:"+f+"|"+u+")+"+m+"(?="+[s,f+h,"$"].join("|")+")",f+"?"+h+"+"+p,f+"+"+m,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",b].join("|"),"g");e.exports=function(e){return e.match(x)||[]}},96009:function(e,t,r){var n=r(82108),i=r(34311)(function(e,t,r){return t=t.toLowerCase(),e+(r?n(t):t)});e.exports=i},82108:function(e,t,r){var n=r(66188),i=r(23779);e.exports=function(e){return i(n(e).toLowerCase())}},97329:function(e,t,r){var n=r(61655),i=r(66188),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,n).replace(a,"")}},41225:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},72579:function(e,t,r){var n=r(13324);e.exports=function(e,t,r){var i=null==e?void 0:n(e,t);return void 0===i?r:i}},93352:function(e,t,r){var n=r(32726),i=r(1369);e.exports=function(e,t){return null!=e&&i(e,t,n)}},95041:function(e,t,r){var n=r(20187),i=r(1369);e.exports=function(e,t){return null!=e&&i(e,t,n)}},23059:function(e){e.exports=function(e){return e}},79631:function(e,t,r){var n=r(15183),i=r(15125),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},86152:function(e){var t=Array.isArray;e.exports=t},67878:function(e,t,r){var n=r(61049),i=r(61158);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},73226:function(e,t,r){e=r.nmd(e);var n=r(37772),i=r(36330),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?n.Buffer:void 0,l=s?s.isBuffer:void 0;e.exports=l||i},61049:function(e,t,r){var n=r(53366),i=r(29259);e.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},61158:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},29259:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},15125:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},4795:function(e,t,r){var n=r(53366),i=r(15125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},77598:function(e,t,r){var n=r(35522),i=r(47826),o=r(4146),a=o&&o.isTypedArray,s=a?i(a):n;e.exports=s},90249:function(e,t,r){var n=r(1634),i=r(86411),o=r(67878);e.exports=function(e){return o(e)?n(e):i(e)}},19950:function(e,t,r){var n=r(13940),i=r(26548),o=r(68286);e.exports=function(e,t){var r={};return t=o(t,3),i(e,function(e,i,o){n(r,t(e,i,o),e)}),r}},34519:function(e,t,r){var n=r(13940),i=r(26548),o=r(68286);e.exports=function(e,t){var r={};return t=o(t,3),i(e,function(e,i,o){n(r,i,t(e,i,o))}),r}},30733:function(e,t,r){var n=r(96738);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(i.Cache||n),r}i.Cache=n,e.exports=i},65798:function(e,t,r){var n=r(20256),i=r(82952),o=r(21401),a=r(33812);e.exports=function(e){return o(e)?n(a(e)):i(e)}},57370:function(e,t,r){var n=r(34311)(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});e.exports=n},30981:function(e){e.exports=function(){return[]}},36330:function(e){e.exports=function(){return!1}},66188:function(e,t,r){var n=r(1054);e.exports=function(e){return null==e?"":n(e)}},23779:function(e,t,r){var n=r(83126)("toUpperCase");e.exports=n},11618:function(e,t,r){var n=r(45981),i=r(83559),o=r(66188),a=r(75304);e.exports=function(e,t,r){return(e=o(e),void 0===(t=r?void 0:t))?i(e)?a(e):n(e):e.match(t)||[]}},77105:function(e,t,r){"use strict";let n=r(8006),i=Symbol("max"),o=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),l=Symbol("maxAge"),u=Symbol("dispose"),c=Symbol("noDisposeOnSet"),d=Symbol("lruList"),f=Symbol("cache"),h=Symbol("updateAgeOnGet"),p=()=>1,m=(e,t,r)=>{let n=e[f].get(t);if(n){let t=n.value;if(v(e,t)){if(y(e,n),!e[s])return}else r&&(e[h]&&(n.value.now=Date.now()),e[d].unshiftNode(n));return t.value}},v=(e,t)=>{if(!t||!t.maxAge&&!e[l])return!1;let r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[l]&&r>e[l]},g=e=>{if(e[o]>e[i])for(let t=e[d].tail;e[o]>e[i]&&null!==t;){let r=t.prev;y(e,t),t=r}},y=(e,t)=>{if(t){let r=t.value;e[u]&&e[u](r.key,r.value),e[o]-=r.length,e[f].delete(r.key),e[d].removeNode(t)}};class b{constructor(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0}}let x=(e,t,r,n)=>{let i=r.value;v(e,i)&&(y(e,r),e[s]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw TypeError("max must be a non-negative number");this[i]=e.max||1/0;let t=e.length||p;if(this[a]="function"!=typeof t?p:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw TypeError("maxAge must be a number");this[l]=e.maxAge||0,this[u]=e.dispose,this[c]=e.noDisposeOnSet||!1,this[h]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw TypeError("max must be a non-negative number");this[i]=e||1/0,g(this)}get max(){return this[i]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if("number"!=typeof e)throw TypeError("maxAge must be a non-negative number");this[l]=e,g(this)}get maxAge(){return this[l]}set lengthCalculator(e){"function"!=typeof e&&(e=p),e!==this[a]&&(this[a]=e,this[o]=0,this[d].forEach(e=>{e.length=this[a](e.value,e.key),this[o]+=e.length})),g(this)}get lengthCalculator(){return this[a]}get length(){return this[o]}get itemCount(){return this[d].length}rforEach(e,t){t=t||this;for(let r=this[d].tail;null!==r;){let n=r.prev;x(this,e,r,t),r=n}}forEach(e,t){t=t||this;for(let r=this[d].head;null!==r;){let n=r.next;x(this,e,r,t),r=n}}keys(){return this[d].toArray().map(e=>e.key)}values(){return this[d].toArray().map(e=>e.value)}reset(){this[u]&&this[d]&&this[d].length&&this[d].forEach(e=>this[u](e.key,e.value)),this[f]=new Map,this[d]=new n,this[o]=0}dump(){return this[d].map(e=>!v(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[d]}set(e,t,r){if((r=r||this[l])&&"number"!=typeof r)throw TypeError("maxAge must be a number");let n=r?Date.now():0,s=this[a](t,e);if(this[f].has(e)){if(s>this[i])return y(this,this[f].get(e)),!1;let a=this[f].get(e),l=a.value;return this[u]&&!this[c]&&this[u](e,l.value),l.now=n,l.maxAge=r,l.value=t,this[o]+=s-l.length,l.length=s,this.get(e),g(this),!0}let h=new b(e,t,s,n,r);return h.length>this[i]?(this[u]&&this[u](e,t),!1):(this[o]+=h.length,this[d].unshift(h),this[f].set(e,this[d].head),g(this),!0)}has(e){if(!this[f].has(e))return!1;let t=this[f].get(e).value;return!v(this,t)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){let e=this[d].tail;return e?(y(this,e),e.value):null}del(e){y(this,this[f].get(e))}load(e){this.reset();let t=Date.now();for(let r=e.length-1;r>=0;r--){let n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{let e=i-t;e>0&&this.set(n.k,n.v,e)}}}prune(){this[f].forEach((e,t)=>m(this,t,!1))}}},53207:function(e,t,r){var n=r(96570);n.prototype.formulaEval=function(){"use strict";for(var e,t,r,n=[],i=this.value,o=0;o"+t.value+""+i[o].show+""+e.value+"",type:10}):n.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+""+e.value+"",type:1})):2===i[o].type||9===i[o].type?(e=n.pop(),t=n.pop(),n.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+i[o].show+(1!=e.type?"(":"")+e.value+(1!=e.type?")":""),type:i[o].type})):12===i[o].type&&(e=n.pop(),t=n.pop(),r=n.pop(),n.push({value:i[o].show+"("+r.value+","+t.value+","+e.value+")",type:12}));return n[0].value},e.exports=n},66655:function(e,t,r){"use strict";var n=r(72346);function i(e,t){for(var r=0;rp.length-2?p.length-1:e.length-l;r>0;r--)if(void 0!==p[r])for(i=0;i0&&Sr)s.push(e);else{for(;r>=i&&!c||c&&i1)throw new n.Exception("Uncaught Syntax error");return o[0].value>1e15?"Infinity":parseFloat(o[0].value.toFixed(15))},n.eval=function(e,t,r){return void 0===t?this.lex(e).toPostfix().postfixEval():void 0!==r?this.lex(e,t).toPostfix().postfixEval(r):void 0!==t.length?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t)},e.exports=n},86570:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(15610)}])},70697:function(e,t,r){"use strict";r.d(t,{u:function(){return s}});var n=r(52322),i=r(84057),o=r(22038),a=r(80023);function s(){let{openDialog:e}=(0,a.Rh)();return(0,n.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,n.jsx)(l,{title:o.z.walletAddNew.title,description:o.z.walletAddNew.description,onSelect:()=>e("walletAddNew")}),(0,n.jsx)(l,{title:o.z.walletAddRecover.title,description:o.z.walletAddRecover.description,onSelect:()=>e("walletAddRecover")}),(0,n.jsx)(l,{title:o.z.walletAddWatch.title,description:o.z.walletAddWatch.description,onSelect:()=>e("walletAddWatch")}),(0,n.jsx)(l,{title:o.z.walletAddLedger.title,description:o.z.walletAddLedger.description,onSelect:()=>e("walletAddLedger")})]})}function l(e){let{title:t,description:r,disabled:o,onSelect:a}=e;return(0,n.jsx)(i.Wh3,{onClick:a,disabled:o,children:(0,n.jsxs)("div",{className:"flex flex-col gap-2 text-start",children:[(0,n.jsx)(i.X6q,{size:"20",children:t}),(0,n.jsx)(i.nvN,{size:"14",color:"subtle",children:r})]})})}},18250:function(e,t,r){"use strict";r.d(t,{g:function(){return s}});var n=r(52322),i=r(84057),o=r(20876),a=r(80023);function s(e){let{wallet:{id:t,type:r,status:s,lock:l,unlock:u},...c}=e,{openDialog:d}=(0,a.Rh)();return(0,n.jsxs)(i.h_2,{...c,children:[(0,n.jsx)(i.Juw,{children:"Actions"}),"seed"===r?"unlocked"===s?(0,n.jsxs)(i.Xiv,{onClick:e=>e.stopPropagation(),onSelect:()=>l(),children:[(0,n.jsx)(i.KpP,{children:(0,n.jsx)(o.Lur,{})}),"Lock wallet"]}):(0,n.jsxs)(i.Xiv,{onClick:e=>e.stopPropagation(),onSelect:()=>u(),children:[(0,n.jsx)(i.KpP,{children:(0,n.jsx)(o.VmF,{})}),"Unlock wallet"]}):null,(0,n.jsxs)(i.Xiv,{onClick:e=>e.stopPropagation(),onSelect:()=>d("walletUpdate",{walletId:t}),children:[(0,n.jsx)(i.KpP,{children:(0,n.jsx)(o.dr6,{})}),"Edit wallet"]}),(0,n.jsxs)(i.Xiv,{onClick:e=>e.stopPropagation(),onSelect:()=>d("walletRemove",{walletId:t}),children:[(0,n.jsx)(i.KpP,{children:(0,n.jsx)(o.Jrl,{})}),"Delete wallet"]})]})}},71930:function(e,t,r){"use strict";r.d(t,{_:function(){return i},h:function(){return o}});var n=r(41345);let i={home:"/",wallet:{base:"/wallets/",view:"/wallets/[id]",addresses:"/wallets/[id]/addresses"},node:{index:"/node",txPool:"/node/txpool",peers:"/node/peers"},login:"/login"},o=n.HE},22038:function(e,t,r){"use strict";r.d(t,{_:function(){return s},z:function(){return a}});var n=r(52322),i=r(84057),o=r(20876);let a={walletAddNew:{title:"Create a wallet",description:(0,n.jsxs)(n.Fragment,{children:["Generate a new wallet seed. The seed will never be sent to"," ",(0,n.jsx)(i.EKh,{children:"walletd"}),", transactions are signed in the browser."]})},walletAddRecover:{title:"Recover a wallet",description:(0,n.jsxs)(n.Fragment,{children:["Restore a wallet from seed. The seed will never be sent to"," ",(0,n.jsx)(i.EKh,{children:"walletd"}),", transactions are signed in the browser."]})},walletAddWatch:{title:"Add a watch-only wallet",description:(0,n.jsx)(n.Fragment,{children:"Create a watch-only wallet that tracks a set of addresses."})},walletAddLedger:{title:"Add a Ledger hardware wallet",description:(0,n.jsx)(n.Fragment,{children:"Add a Ledger hardware wallet. Transactions are signed with your hardware device."})}},s={seed:{title:"Seed-based wallet",icon:(0,n.jsx)(o.sZp,{})},watch:{title:"Watch-only wallet",icon:(0,n.jsx)(o.xVB,{})},ledger:{title:"Ledger hardware wallet",icon:(0,n.jsx)(o._Gh,{})}}},45283:function(e,t,r){"use strict";r.d(t,{OZ:function(){return v},Jz:function(){return m}});var n=r(52322),i=r(84057),o=r(41345),a=r(2784),s=r(81612),l=r(20876),u=r(80023);function c(e){let{address:{walletId:t,id:r,index:a},...s}=e,{openDialog:c}=(0,u.Rh)(),d=(0,o.XF)();return(0,n.jsxs)(i.h_2,{...s,children:[(0,n.jsx)(i.Juw,{children:"Actions"}),(0,n.jsxs)(i.Xiv,{onClick:e=>e.stopPropagation(),onSelect:()=>c("confirm",{title:void 0!==a?"Remove address ".concat(a):"Remove address",action:"Remove",variant:"red",body:(0,n.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,n.jsx)(i.nvN,{size:"14",children:"Are you sure you would like to remove the following address?"}),(0,n.jsxs)(i.nvN,{size:"14",font:"mono",children:[(0,i.I13)(r).slice(0,40),"..."]})]}),onConfirm:async()=>{let e=await d.delete({params:{id:t,addr:r}});e.error?(0,i.OHV)("Failed to delete address: ".concat(e.error)):(0,i.OPV)(void 0!==a?"Address ".concat(a," removed."):"Address removed.")}}),children:[(0,n.jsx)(i.KpP,{children:(0,n.jsx)(l.Jrl,{})}),"Remove address"]})]})}let d=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:t}=e;return(0,n.jsx)(c,{trigger:(0,n.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,n.jsx)(l.iG7,{})}),contentProps:{align:"start"},address:t})}},{id:"address",label:"address",category:"general",fixed:!0,render:e=>{let{data:{address:t,description:r},context:o}=e;return(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)(i.XxW,{maxLength:40,value:t,type:"address",siascanUrl:o.siascanUrl}),r&&(0,n.jsx)(i.ua7,{content:(0,n.jsx)("pre",{children:(0,n.jsx)(i.nvN,{size:"12",className:"w-full whitespace-pre-wrap",children:r})}),children:(0,n.jsx)(i.nvN,{size:"12",children:r.split("\n")[0]})})]})}},{id:"index",label:"index",category:"general",render:e=>{let{data:{index:t}}=e;return void 0===t?null:(0,n.jsx)("div",{className:"flex flex-col gap-2",children:(0,n.jsx)(i.xvT,{children:t.toLocaleString()})})}}];var f=r(5632),h=r(90089);let p=(0,a.createContext)({}),m=()=>(0,a.useContext)(p);function v(e){let{children:t}=e,r=function(){let{openDialog:e}=(0,u.Rh)(),t=(0,f.useRouter)(),r=t.query.id,n=(0,o.bd)({disabled:!r,params:{id:r}}),l=(0,a.useMemo)(()=>{if(!n.data)return null;let t=Object.entries(n.data||{}).map(t=>{let[n,i]=t;return{id:n,address:n,description:i.description,index:i.index,publicKey:i.publicKey,walletId:r,onClick:()=>e("addressUpdate",{walletId:r,address:n})}});return t},[n.data,e,r]),{filters:c,setFilter:p,removeFilter:m,removeLastFilter:v,resetFilters:g}=(0,i.Wdu)(),{configurableColumns:y,enabledColumns:b,sortableColumns:x,toggleColumnVisibility:w,setColumnsVisible:E,setColumnsHidden:j,toggleSort:S,setSortDirection:C,setSortField:k,sortField:A,sortDirection:O,resetDefaultColumnVisibility:T}=(0,i.oy6)("walletd/v0/addresses",{columns:d,columnsDefaultVisible:s.gd,sortOptions:s.Fo,defaultSortField:s.nw}),_=(0,i._4u)({dataset:l,filters:c,sortField:A,sortDirection:O}),M=(0,a.useMemo)(()=>d.filter(e=>e.fixed||b.includes(e.id)),[b]),R=(0,i.c2j)(l,n.isValidating,n.error,c),N=(l||[]).reduce((e,t)=>{let{index:r}=t;return r>e?r:e},-1),P=(0,h.B)(),D=(0,a.useMemo)(()=>({siascanUrl:P}),[P]);return{dataState:R,error:n.error,datasetCount:(null==_?void 0:_.length)||0,columns:M,dataset:_,cellContext:D,lastIndex:N,configurableColumns:y,enabledColumns:b,sortableColumns:x,toggleColumnVisibility:w,setColumnsVisible:E,setColumnsHidden:j,toggleSort:S,setSortDirection:C,setSortField:k,sortField:A,filters:c,setFilter:p,removeFilter:m,removeLastFilter:v,resetFilters:g,sortDirection:O,resetDefaultColumnVisibility:T}}();return(0,n.jsx)(p.Provider,{value:r,children:t})}},81612:function(e,t,r){"use strict";r.d(t,{Fo:function(){return o},gd:function(){return n},nw:function(){return i}});let n=["actions","address","index"],i="index",o=[{id:"address",label:"address",category:"general"},{id:"index",label:"index",category:"general"}]},80023:function(e,t,r){"use strict";let n;r.d(t,{Tu:function(){return eB},xQ:function(){return eU},Rh:function(){return eV}});var i=r(52322),o=r(2784),a=r(84057),s=r(41345),l=r(70697);function u(e){let{open:t,trigger:r,onOpenChange:n}=e;return(0,i.jsx)(a.VqE,{title:"Add Wallet",trigger:r,open:t,onOpenChange:n,contentVariants:{className:"max-w-[600px]"},children:(0,i.jsx)(l.u,{})})}var c=r(20876),d=r(63955),f=r(6110);let h="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var p={randomUUID:h};let m=new Uint8Array(16),v=[];for(let e=0;e<256;++e)v.push((e+256).toString(16).slice(1));var g=function(e,t,r){if(p.randomUUID&&!t&&!e)return p.randomUUID();e=e||{};let i=e.random||(e.rng||function(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(m)})();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=i[e];return t}return function(e,t=0){return(v[e[t+0]]+v[e[t+1]]+v[e[t+2]]+v[e[t+3]]+"-"+v[e[t+4]]+v[e[t+5]]+"-"+v[e[t+6]]+v[e[t+7]]+"-"+v[e[t+8]]+v[e[t+9]]+"-"+v[e[t+10]]+v[e[t+11]]+v[e[t+12]]+v[e[t+13]]+v[e[t+14]]+v[e[t+15]]).toLowerCase()}(i)},y=r(22038),b=r(81395);function x(e){let{copySeed:t,children:r,icon:n,description:o}=e;return(0,i.jsxs)("div",{className:"",children:[r,(0,i.jsx)(a.s_4,{className:"mt-2",children:(0,i.jsxs)("div",{className:"flex gap-6 items-center py-4 px-4",children:[(0,i.jsx)("div",{className:"flex",children:n}),(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,i.jsx)(a.nvN,{size:"14",children:o}),t&&(0,i.jsx)(a.zxk,{onClick:t,children:"Copy Seed to Clipboard"})]})]})})]})}var w=r(74236);let E={name:"",description:"",mnemonic:"",hasCopied:!1};function j(e){let{trigger:t,open:r,onOpenChange:n}=e,{openDialog:l}=eV(),u=(0,s.lT)(),h=(0,d.cI)({mode:"all",defaultValues:E}),p=h.watch("mnemonic"),m=(0,o.useCallback)(()=>{(0,a.vQq)(p,"seed"),h.setValue("hasCopied",!0,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0}),h.clearErrors(["mnemonic"])},[p,h]),v=(0,o.useCallback)(async()=>{let{phrase:e}=(0,w.x)().newSeedPhrase();h.setValue("hasCopied",!1),h.setValue("mnemonic",e),h.clearErrors(["hasCopied","mnemonic"])},[h]);(0,o.useEffect)(()=>{r&&v()},[r]);let{dataset:j}=(0,f.r)(),S=(null==j?void 0:j.map(e=>e.name))||[],C=function(e){let{walletNames:t,copySeed:r}=e;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:e=>!t.includes(e)||"name is already in use"},required:"required",maxLength:30}},description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}},mnemonic:{type:"text",title:"Seed",onClick:e=>{e.currentTarget.select(),r()},readOnly:!0,placeholder:"",validation:{required:"required",validate:{valid:e=>{let{error:t}=(0,w.x)().seedFromPhrase(e);return!t||"seed should be 12 word BIP39 mnemonic"},copied:(e,t)=>t.hasCopied||"Copy seed to continue"}}},hasCopied:{type:"boolean",title:"",validation:{}}}}({walletNames:S,copySeed:m}),k=(0,o.useCallback)(async e=>{let t=g(),{seed:r}=(0,w.x)().seedFromPhrase(e.mnemonic),n=(0,b.blake2bHex)(r),i=await u.put({params:{id:t},payload:{type:"seed",seedHash:n,name:e.name,createdAt:new Date().getTime(),description:e.description}});i.error?(0,a.OHV)(i.error):(l("walletAddressesGenerate",{walletId:t}),h.reset(E))},[h,l,u]);return(0,i.jsx)(a.VqE,{title:y.z.walletAddNew.title,trigger:t,open:r,onOpenChange:n,contentVariants:{className:"w-[400px]"},onSubmit:h.handleSubmit(k),controls:(0,i.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,i.jsx)(a.zxk,{size:"medium",onClick:()=>{l("walletAddType")},children:"back"}),(0,i.jsx)("div",{className:"flex-1"}),(0,i.jsx)(a.ZqQ,{size:"medium",form:h,children:"Add wallet"})]}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:y.z.walletAddNew.description}),(0,i.jsx)(a.yEL,{name:"name",form:h,fields:C}),(0,i.jsx)(a.Bau,{name:"description",form:h,fields:C}),(0,i.jsx)(x,{icon:(0,i.jsx)(c.fwm,{}),description:(0,i.jsx)(i.Fragment,{children:"This is the wallet's seed mnemonic. Make sure to save it somewhere secure."}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,i.jsx)(a.Bau,{form:h,fields:C,name:"mnemonic"}),(0,i.jsxs)("div",{className:"flex gap-2",children:[(0,i.jsxs)(a.zxk,{className:"flex-1",onClick:v,children:[(0,i.jsx)(c.nt4,{}),"Regenerate"]}),(0,i.jsxs)(a.zxk,{className:"flex-1",onClick:m,children:[(0,i.jsx)(c.olJ,{}),"Copy to clipboard"]})]})]})})]})})}function S(e){let{form:t,onOpenChange:r,defaultValues:n}=e,i=(0,o.useCallback)(()=>{t.reset(n)},[t,n]),a=(0,o.useCallback)(()=>{r(!1),t.reset(n)},[t,r,n]),s=(0,o.useCallback)(e=>{e||a()},[a]);return{reset:i,closeAndReset:a,handleOpenChange:s}}var C=r(6391),k=r.n(C);function A(e){let{seedHash:t,mnemonicFieldType:r,setMnemonicFieldType:n}=e;return{type:r,title:"Seed",actions:(0,i.jsx)("div",{className:"flex gap-1",children:(0,i.jsx)(a.zxk,{tip:"password"===r?"Show seed":"Hide seed",tabIndex:-1,variant:"ghost",icon:"hover",onClick:()=>n("password"===r?"text":"password"),children:"password"===r?(0,i.jsx)(c.pHg,{}):(0,i.jsx)(c.xVB,{})})}),placeholder:"island submit vague scrub exhibit cherry front spoon crop debate filter virus",validation:{required:"required",validate:{valid:e=>{let{error:t}=(0,w.x)().seedFromPhrase(e);return!t||"seed should be 12 word BIP39 mnemonic"},match:e=>{let{seed:r}=(0,w.x)().seedFromPhrase(e);return(0,b.blake2bHex)(r)===t||"seed does not match"}}}}}var O=r(8822);function T(e){let{walletId:t,name:r,form:n,fields:o,actionText:s}=e,{dataset:l,walletAutoLockEnabled:u,walletAutoLockTimeout:d}=(0,f.r)(),h=null==l?void 0:l.find(e=>e.id===t),p=null==h?void 0:h.seed,m=(0,O.l)(d),v=s?" and ".concat(s):"";return p?(0,i.jsx)(x,{icon:(0,i.jsx)(c.R$y,{}),description:u?(0,i.jsxs)(i.Fragment,{children:["The wallet is currently unlocked. The wallet will stay unlocked until it is inactive for ",m.amount," ",m.units,", manually locked, or the app is closed."]}):(0,i.jsx)(i.Fragment,{children:"The wallet is currently unlocked. The wallet will stay unlocked until it is manually locked or the app is closed."})}):(0,i.jsx)(x,{icon:(0,i.jsx)(c.R$y,{}),description:u?(0,i.jsxs)(i.Fragment,{children:["Enter your seed mnemonic to unlock the wallet",v,". The wallet will stay unlocked until it is inactive for"," ",m.amount," ",m.units,", manually locked, or the app is closed."]}):(0,i.jsxs)(i.Fragment,{children:["Enter your seed mnemonic to unlock the wallet and",v,". The wallet will stay unlocked until it is manually locked or the app is closed."]}),children:(0,i.jsx)(a.yEL,{form:n,fields:o,name:r})})}function _(e){let{dataset:t}=(0,f.r)(),r=null==t?void 0:t.find(t=>t.id===e),n=null==r?void 0:r.seed,i=!!n;return{cachedSeed:n,isSeedCached:i,getSeedFromCacheOrForm:e=>{let{mnemonic:t}=e;return i?{seed:n}:(0,w.x)().seedFromPhrase(t)}}}let M=[];function R(e){let{id:t}=e,r=(0,s.bd)({disabled:!t,params:{id:t}}),n=(0,o.useMemo)(()=>{if(!r.data)return null;let e=Object.entries(r.data||{}).map(e=>{let[r,n]=e;return{id:r,address:r,description:n.description,publicKey:n.publicKey,index:n.index,walletId:t}});return e},[r.data,t]),i=(0,a.c2j)(n,r.isValidating,r.error,M),l=(n||[]).reduce((e,t)=>{let{index:r}=t;return r>e?r:e},-1);return{dataState:i,error:r.error,datasetCount:(null==n?void 0:n.length)||0,dataset:n,lastIndex:l}}function N(e){let{params:t,trigger:r,open:n,onOpenChange:l}=e,{walletId:u}=t||{},{lastIndex:c}=R({id:u}),{dataset:h,saveWalletSeed:p}=(0,f.r)(),m=null==h?void 0:h.find(e=>e.id===u),v=c+1,g={mnemonic:"",index:new(k())(v),count:new(k())(1)},[y,b]=(0,o.useState)("password"),x=(0,d.cI)({mode:"all",defaultValues:g});(0,o.useEffect)(()=>{x.formState.isSubmitting||x.setValue("index",new(k())(v))},[v]);let{handleOpenChange:E,closeAndReset:j}=S({form:x,onOpenChange:l,defaultValues:g}),C=x.watch("mnemonic"),O=x.watch("index"),M=x.watch("count"),N=function(e){let{seedHash:t,mnemonicFieldType:r,setMnemonicFieldType:n}=e;return{mnemonic:A({seedHash:t,setMnemonicFieldType:n,mnemonicFieldType:r}),index:{type:"number",title:"Start index",decimalsLimit:0,placeholder:"0",validation:{required:"required"}},count:{type:"number",title:"Number of addresses",decimalsLimit:0,placeholder:"10",validation:{required:"required",max:1e3}}}}({seedHash:null==m?void 0:m.seedHash,mnemonicFieldType:y,setMnemonicFieldType:b}),P=(0,s.yi)(),{getSeedFromCacheOrForm:D}=_(u),L=(0,o.useCallback)(async(e,t,r)=>{let n=D({mnemonic:e});if(n.error){(0,a.OHV)(n.error);return}let{seed:i}=n;for(let e=t;e0?"Not all addresses were saved.":""));return}}1===r?(0,a.OPV)("Successfully generated 1 address."):(0,a.OPV)("Successfully generated ".concat(r," addresses.")),p(u,i),j()},[D,j,P,u,p]),I=(0,o.useCallback)(()=>L(C,O.toNumber(),M.toNumber()),[L,C,O,M]);return(0,i.jsxs)(a.VqE,{title:"Wallet ".concat(null==m?void 0:m.name,": generate addresses"),trigger:r,open:n,onOpenChange:E,contentVariants:{className:"w-[500px]"},onSubmit:x.handleSubmit(I),controls:(0,i.jsx)("div",{className:"flex justify-end",children:(0,i.jsx)(a.ZqQ,{form:x,variant:"accent",size:"medium",children:"Continue"})}),children:[(0,i.jsx)(T,{walletId:u,name:"mnemonic",form:x,fields:N,actionText:"generate addresses"}),(0,i.jsxs)("div",{className:"flex gap-2 w-full pt-3",children:[(0,i.jsx)("div",{className:"flex-1",children:(0,i.jsx)(a.jIp,{form:x,fields:N,name:"index"})}),(0,i.jsx)("div",{className:"flex-1",children:(0,i.jsx)(a.jIp,{form:x,fields:N,name:"count"})})]})]})}var P=r(5632),D=r(71930);let L={name:""};function I(e){let{params:t,trigger:r,open:n,onOpenChange:l}=e,u=(0,P.useRouter)(),{walletId:c}=t||{},{closeDialog:h}=eV(),{dataset:p}=(0,f.r)(),m=null==p?void 0:p.find(e=>e.id===c),v=(0,s.OZ)(),g=(0,d.cI)({mode:"all",defaultValues:L}),y=(0,o.useCallback)(async()=>{let e=await v.delete({params:{id:c}});e.error?(0,a.OHV)(e.error):((0,a.OPV)("Wallet permanently removed."),g.reset(),h(),u.push(D._.home))},[g,c,v,h,u]),b=(0,o.useMemo)(()=>{var e;return{name:{type:"text",title:"Name",placeholder:e=null==m?void 0:m.name,validation:{required:"required",validate:{equals:t=>t===e||"name does not match"}}}}},[m]),x=(0,a.WsO)(b);return(0,i.jsx)(a.VqE,{title:"Remove wallet",trigger:r,open:n,onOpenChange:e=>{e||g.reset(L),l(e)},contentVariants:{className:"w-[400px]"},onSubmit:g.handleSubmit(y,x),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsxs)(a.nvN,{size:"14",children:["Are you sure you would like to permanently remove the wallet"," ",(0,i.jsx)(a.EKh,{children:null==m?void 0:m.name}),"?"]}),(0,i.jsx)(a.nvN,{size:"14",children:"Enter the wallet name to confirm the removal."}),(0,i.jsx)(a.yEL,{name:"name",form:g,fields:b}),(0,i.jsx)(a.ZqQ,{variant:"red",form:g,children:"Remove"})]})})}let F={description:""};function V(e){let{trigger:t,open:r,onOpenChange:n,params:l}=e,{walletId:u,address:c}=l||{},{openDialog:f,closeDialog:h}=eV(),{dataset:p}=R({id:u}),m=null==p?void 0:p.find(e=>e.id===c),v=(0,s.yi)(),g=(0,d.cI)({mode:"all",defaultValues:F});(0,o.useEffect)(()=>{g.reset(m?{description:m.description}:F)},[l]);let y=(0,o.useCallback)(async e=>{let t=await v.put({params:{id:u,addr:c},payload:{...m,description:e.description}});t.error?(0,a.OHV)(t.error):(h(),g.reset(F))},[u,c,g,v,m,h]);return(0,i.jsx)(a.VqE,{title:(0,a.$Gg)(c,20),trigger:t,open:r,onOpenChange:n,contentVariants:{className:"w-[400px]"},onSubmit:g.handleSubmit(y),controls:(0,i.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,i.jsx)(a.zxk,{onClick:()=>f("addressRemove",{walletId:u,address:c}),children:"Remove address"}),(0,i.jsx)("div",{className:"flex-1"}),(0,i.jsx)(a.ZqQ,{size:"small",form:g,children:"Save changes"})]}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsx)(a.hKn,{address:(null==m?void 0:m.address)||""}),(0,i.jsx)(a.Bau,{name:"description",form:g,fields:{description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}}}})]})})}let B={name:"",description:""};function U(e){let{params:t,trigger:r,open:n,onOpenChange:l}=e,{walletId:u}=t||{},{dataset:c}=(0,f.r)(),h=null==c?void 0:c.find(e=>e.id===u),p=(0,s.lT)(),m=(0,d.cI)({mode:"all",defaultValues:B}),{closeAndReset:v}=S({form:m,onOpenChange:l,defaultValues:B});(0,o.useEffect)(()=>{setTimeout(()=>{m.reset(h?{name:h.name,description:h.description}:B)},0)},[u]);let g=(0,o.useMemo)(()=>(null==c?void 0:c.reduce((e,t)=>t.name!==(null==h?void 0:h.name)?e.concat(t.name):e,[]))||[],[c,h]),y=function(e){let{walletNames:t}=e;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:e=>!t.includes(e)||"name is already in use"},required:"required",maxLength:30}},description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}}}}({walletNames:g}),b=(0,o.useCallback)(async e=>{let t=await p.put({params:{id:u},payload:{...h,name:e.name,description:e.description}});t.error?(0,a.OHV)(t.error):v()},[u,p,h,v]);return(0,i.jsx)(a.VqE,{title:"".concat(null==h?void 0:h.name),trigger:r,open:n,onOpenChange:l,contentVariants:{className:"w-[400px]"},onSubmit:m.handleSubmit(b),controls:(0,i.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,i.jsx)("div",{className:"flex-1"}),(0,i.jsx)(a.ZqQ,{size:"medium",form:m,children:"Save changes"})]}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.__J,{children:"Type"}),(0,i.jsx)("div",{children:(0,i.jsx)(a.Cts,{children:null==h?void 0:h.type})})]}),(0,i.jsx)(a.yEL,{name:"name",form:m,fields:y}),(0,i.jsx)(a.Bau,{name:"description",form:m,fields:y})]})})}var z=r(79381),H=r(39094),$=r(73866),Z=r(27748);async function W(){let e=await Promise.all([$.Z.isSupported().then(async e=>{let t=await q();return e&&!t?"Bluetooth":null}),Z.Z.isSupported().then(e=>e?"HID":null)]);return e.filter(e=>e)}async function q(){return navigator.brave&&await navigator.brave.isBrave()}function G(e){let{title:t,details:r,actions:n,shouldVerify:o}=e,{device:s,disconnect:l}=(0,H.c)();return(0,i.jsx)(a.s_4,{className:"mt-1 pl-3 pr-2 py-2",children:(0,i.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,i.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[(0,i.jsxs)("div",{className:"flex items-center",children:[o?(0,i.jsxs)(i.Fragment,{children:[!(null==s?void 0:s.publicKey0)&&(0,i.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-400 animate-pingslow"}),(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-500 border border-amber-400"})]}),!!(null==s?void 0:s.publicKey0)&&(0,i.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-400 animate-pingslow"}),(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-500 border border-green-400"})]})]}):(0,i.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-400 animate-pingslow"}),(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-500 border border-green-400"})]}),(null==s?void 0:s.type)==="Bluetooth"&&(0,i.jsx)(a.ua7,{content:"Bluetooth",children:(0,i.jsx)(a.xvT,{weight:"semibold",size:"16",children:(0,i.jsx)(c.Ya6,{})})}),(null==s?void 0:s.type)==="USB"&&(0,i.jsx)(a.ua7,{content:"USB",children:(0,i.jsx)(a.xvT,{weight:"semibold",size:"16",children:(0,i.jsx)(c.Fhn,{size:16})})}),(null==s?void 0:s.type)==="HID"&&(0,i.jsx)(a.ua7,{content:"HID",children:(0,i.jsx)(a.xvT,{weight:"semibold",size:"16",children:(0,i.jsx)(c.Pj_,{size:16})})}),(0,i.jsx)(a.xvT,{weight:"semibold",size:"16",className:"ml-1",children:t})]}),(0,i.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[n,!!s&&(0,i.jsx)(a.zxk,{variant:"ghost",onClick:l,children:(0,i.jsx)(c.PcV,{})})]})]}),r]})})}let Y={transportType:""};function X(e){var t;let{shouldVerify:r}=e,{device:n,connect:s,verify:l,setError:u,waitingForUser:f}=(0,H.c)(),h=(0,d.cI)({mode:"all",defaultValues:Y}),p=h.watch("transportType"),m=!!(null==n?void 0:n.publicKey0),v=(0,z.ZP)("deviceConnect/supportedTransports",()=>W(),{revalidateOnFocus:!1});(0,o.useEffect)(()=>{v.data&&(h.setValue("transportType",v.data[0]),0===v.data.length&&u(Error("This browser does not support connecting to Ledger devices, please use a different browser.")))},[v.data]);let g=function(e){let{supportedTransports:t}=e;return{transportType:{type:"select",title:"Transport",placeholder:"Select a transport",options:t.map(e=>({value:e,label:e})),validation:{required:!0}}}}({supportedTransports:v.data||[]}),y=(0,o.useCallback)(async()=>{p&&s(p)},[s,p]),b=(0,o.useCallback)(async()=>{p&&await l()},[l,p]);return(0,i.jsx)("div",{className:"flex flex-col gap-1",children:n?r?m?(0,i.jsx)(G,{shouldVerify:r,title:n.transport.deviceModel.productName,details:(0,i.jsx)("div",{className:"flex flex-col gap-1",children:(0,i.jsx)(a.XxW,{value:n.publicKey0,label:"public key 0",color:"subtle",maxLength:30})})}):(0,i.jsx)(G,{shouldVerify:r,title:n.transport.deviceModel.productName,actions:(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(a.zxk,{variant:"accent",onClick:b,children:[(0,i.jsx)(c.j7C,{}),"Verify"]})}),details:f?(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.xvT,{children:"Please confirm on device..."}),(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:"To continue, approve public key verification on device."})]}):(0,i.jsx)("div",{className:"flex flex-col gap-1",children:(0,i.jsx)(a.nvN,{size:"14",children:"Unlock device, open the Sia app, and make sure Ledger Live is closed. Then start wallet verification to continue."})})}):(0,i.jsx)(G,{shouldVerify:r,title:n.transport.deviceModel.productName}):(0,i.jsx)(G,{shouldVerify:r,title:"Connect Ledger...",actions:(null===(t=v.data)||void 0===t?void 0:t.length)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.WyV,{name:"transportType",form:h,fields:g,group:!1}),(0,i.jsx)(a.zxk,{size:"small",onClick:y,children:"Connect"})]}):null,details:f?(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.xvT,{children:"Please confirm in browser and on device..."}),(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:"Connect your Ledger device. Make sure you unlock your Ledger and open the Sia App before trying to connect."})]}):(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:"Connect your Ledger device. Make sure you unlock your Ledger and open the Sia App before trying to connect."})})})}let K={name:"",description:"",ledgerConnectedAndVerified:!1};function J(e){let{trigger:t,open:r,onOpenChange:n}=e,{openDialog:l}=eV(),u=(0,s.lT)(),c=(0,d.cI)({mode:"all",defaultValues:K}),{device:h,disconnect:p,error:m}=(0,H.c)();(0,o.useEffect)(()=>{r&&p()},[r]),(0,o.useEffect)(()=>{h&&h.publicKey0?c.setValue("ledgerConnectedAndVerified",!0):c.setValue("ledgerConnectedAndVerified",!1)},[c,h]),(0,o.useEffect)(()=>{m?c.setError("ledgerConnectedAndVerified",{message:m.message}):c.clearErrors("ledgerConnectedAndVerified")},[c,m]);let{dataset:v}=(0,f.r)(),b=(null==v?void 0:v.map(e=>e.name))||[],x=function(e){let{walletNames:t}=e;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:e=>!t.includes(e)||"name is already in use"},required:"required",maxLength:30}},description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}},ledgerConnectedAndVerified:{type:"boolean",title:"",validation:{validate:{ledgerConnectedAndVerified:e=>e||"Ledger must be connected, unlocked, and verified"}}}}}({walletNames:b}),w=(0,s.yi)(),E=(0,o.useCallback)(async(e,t)=>{let{publicKey:r,address:n}=t,i=await w.put({params:{id:e,addr:n},payload:{index:0,publicKey:r}});if(i.error){(0,a.OHV)("Error saving address.");return}},[w]),j=(0,o.useCallback)(async e=>{if(!e.ledgerConnectedAndVerified||!h.publicKey0||!h.address0)return;let t=g(),r=await u.put({params:{id:t},payload:{type:"ledger",publicKey0:h.publicKey0,address0:h.address0,name:e.name,createdAt:new Date().getTime(),description:e.description}});r.error?(0,a.OHV)(r.error):(E(t,{publicKey:h.publicKey0,address:h.address0}),l("walletLedgerAddressGenerate",{walletId:t,walletJustCreated:!0}),c.reset(K))},[c,l,u,h,E]);return c.register("ledgerConnectedAndVerified",x.ledgerConnectedAndVerified.validation),(0,i.jsx)(a.VqE,{title:y.z.walletAddLedger.title,trigger:t,open:r,onOpenChange:n,contentVariants:{className:"w-[400px]"},onSubmit:c.handleSubmit(j),controls:(0,i.jsxs)("div",{className:"flex gap-2 pb-1",children:[(0,i.jsx)(a.zxk,{size:"medium",onClick:()=>{l("walletAddType")},children:"back"}),(0,i.jsx)("div",{className:"flex-1"}),(0,i.jsx)(a.ZqQ,{size:"medium",form:c,children:"Add wallet"})]}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:y.z.walletAddLedger.description}),(0,i.jsx)(a.yEL,{name:"name",form:c,fields:x}),(0,i.jsx)(a.Bau,{name:"description",form:c,fields:x}),(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.Qyk,{title:"Device",name:"ledgerConnectedAndVerified"}),(0,i.jsx)(a.cp7,{name:"ledgerConnectedAndVerified",form:c}),(0,i.jsx)(X,{shouldVerify:!0})]})]})})}let Q={name:"",description:"",mnemonic:""};function ee(e){let{trigger:t,open:r,onOpenChange:n}=e,{openDialog:l}=eV(),u=(0,d.cI)({mode:"all",defaultValues:Q}),{dataset:h}=(0,f.r)(),p=(null==h?void 0:h.map(e=>e.name))||[],m=function(e){let{walletNames:t}=e;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:e=>!t.includes(e)||"name is already in use"},required:"required",maxLength:30}},description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}},mnemonic:{type:"text",title:"Seed",placeholder:"island submit vague scrub exhibit cherry front spoon crop debate filter virus",validation:{required:"required",validate:{valid:e=>{let{error:t}=(0,w.x)().seedFromPhrase(e);return!t||"seed should be 12 word BIP39 mnemonic"}}}}}}({walletNames:p}),v=(0,s.lT)(),E=(0,o.useCallback)(async e=>{let t=g(),{seed:r}=(0,w.x)().seedFromPhrase(e.mnemonic),n=(0,b.blake2bHex)(r),i=await v.put({params:{id:t},payload:{type:"seed",seedHash:n,name:e.name,createdAt:new Date().getTime(),description:e.description}});i.error?(0,a.OHV)(i.error):(l("walletAddressesGenerate",{walletId:t}),u.reset(Q))},[u,l,v]);return(0,i.jsx)(a.VqE,{title:y.z.walletAddRecover.title,trigger:t,open:r,onOpenChange:n,contentVariants:{className:"w-[400px]"},onSubmit:u.handleSubmit(E),controls:(0,i.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,i.jsx)(a.zxk,{size:"medium",onClick:()=>{l("walletAddType")},children:"back"}),(0,i.jsx)("div",{className:"flex-1"}),(0,i.jsx)(a.ZqQ,{size:"medium",form:u,children:"Add wallet"})]}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:y.z.walletAddRecover.description}),(0,i.jsx)(a.yEL,{name:"name",form:u,fields:m}),(0,i.jsx)(a.Bau,{name:"description",form:u,fields:m}),(0,i.jsx)(x,{icon:(0,i.jsx)(c.fwm,{}),description:(0,i.jsx)(i.Fragment,{children:"Enter the seed mnemonic for the wallet you are recovering."}),children:(0,i.jsx)(a.Bau,{form:u,fields:m,name:"mnemonic"})})]})})}let et={name:"",description:""};function er(e){let{trigger:t,open:r,onOpenChange:n}=e,{openDialog:l}=eV(),u=(0,s.lT)(),c=(0,d.cI)({mode:"all",defaultValues:et}),{dataset:h}=(0,f.r)(),p=(null==h?void 0:h.map(e=>e.name))||[],m=function(e){let{walletNames:t}=e;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:e=>!t.includes(e)||"name is already in use"},required:"required",maxLength:30}},description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}}}}({walletNames:p}),v=(0,o.useCallback)(async e=>{let t=g(),r=await u.put({params:{id:t},payload:{type:"watch",name:e.name,description:e.description,createdAt:new Date().getTime()}});r.error?(0,a.OHV)(r.error):(l("walletAddressesAdd",{walletId:t}),c.reset(et))},[c,l,u]);return(0,i.jsx)(a.VqE,{title:y.z.walletAddWatch.title,trigger:t,open:r,onOpenChange:n,contentVariants:{className:"w-[400px]"},onSubmit:c.handleSubmit(v),controls:(0,i.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,i.jsx)(a.zxk,{size:"medium",onClick:()=>{l("walletAddType")},children:"back"}),(0,i.jsx)("div",{className:"flex-1"}),(0,i.jsx)(a.ZqQ,{size:"medium",form:c,children:"Add wallet"})]}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:y.z.walletAddWatch.description}),(0,i.jsx)(a.yEL,{name:"name",form:c,fields:m}),(0,i.jsx)(a.Bau,{name:"description",form:c,fields:m})]})})}var en=r(98191),ei=r(28356);let eo={addresses:""};function ea(e){return(0,ei.Z)(e.trim().split(/[^0-9a-fA-F]+/).map(e=>e).filter(e=>!!e))}function es(e){let{params:t,trigger:r,open:n,onOpenChange:l}=e,{walletId:u}=t||{},{dataset:c}=(0,f.r)(),h=null==c?void 0:c.find(e=>e.id===u),p=(0,d.cI)({mode:"all",defaultValues:eo}),{handleOpenChange:m,closeAndReset:v}=S({form:p,onOpenChange:l,defaultValues:eo}),g=(0,s.yi)(),y=(0,o.useCallback)(async e=>{let t=ea(e),r=t.length;for(let e=0;e0?"Not all addresses were saved.":""));return}}1===r?(0,a.OPV)("Successfully added 1 address."):(0,a.OPV)("Successfully added ".concat(r," addresses.")),v()},[u,g,v]),b=(0,o.useCallback)(e=>y(e.addresses),[y]),x=p.watch("addresses"),w=ea(x).length;return(0,i.jsx)(a.VqE,{title:"Wallet ".concat(null==h?void 0:h.name,": add addresses"),trigger:r,open:n,onOpenChange:m,contentVariants:{className:"w-[500px]"},onSubmit:p.handleSubmit(b),controls:(0,i.jsx)("div",{className:"flex justify-end",children:(0,i.jsx)(a.ZqQ,{form:p,variant:"accent",size:"medium",children:0===w?"Add addresses":1===w?"Add 1 address":"Add ".concat(w.toLocaleString()," addresses")})}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-2 py-2",children:[(0,i.jsx)(a.nvN,{size:"14",children:"Enter multiple addresses separated by spaces or commas."}),(0,i.jsx)(a.Bau,{form:p,fields:{addresses:{type:"text",title:"Addresses",placeholder:"91acbc0feb9e20d538db1f8a509d508362d1b1f3d725d9b6639306531d770c1ef9eb637b4903\nb58849e347356878bb0098908191550ff3e46cc35ed166d0c571fe184d2f17b835747991c266\nb811a04859809fe081884c10d50ca069f1429112ba4a8dc9181c95de41f7eca01416923daa6d\n03442c5643c1deb15c60104ca6ad80fa9563c67c8334f0bbe968b01cb9b8f81c8103a7a202c0\n",validation:{required:"required",validate:{valid:e=>{let t=ea(e||"");for(let e=0;e{let e=await h.delete({params:{id:u,addr:c}});e.error?(0,a.OHV)(e.error):((0,a.OPV)("Address permanently removed."),p.reset(),f())},[p,u,c,h,f]),v=(0,o.useMemo)(()=>({address:{type:"text",title:"Address",placeholder:c,validation:{required:"required",validate:{equals:e=>(0,a.I13)(e)===(0,a.I13)(c)||"address does not match"}}}}),[c]),g=(0,a.WsO)(v);return(0,i.jsx)(a.VqE,{title:"Remove address",trigger:r,open:n,onOpenChange:e=>{e||p.reset(el),l(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit(m,g),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsxs)(a.nvN,{size:"14",children:["Are you sure you would like to permanently remove the address"," ",(0,i.jsxs)(a.EKh,{children:[(0,a.I13)(c).slice(0,12),"..."]}),"?"]}),(0,i.jsx)(a.nvN,{size:"14",children:"Enter the address name to confirm the removal."}),(0,i.jsx)(a.yEL,{name:"address",form:p,fields:v}),(0,i.jsx)(a.ZqQ,{variant:"red",form:p,children:"Remove"})]})})}let ec="e3b1050aef388438668b52983cf78f40925af8f0aa8b9de80c18eadcefce8388d168a313e3f2",ed=(0,en.qN)(.00393),ef={receiveAddress:"",changeAddress:"",claimAddress:"",customChangeAddress:!1,customClaimAddress:!1,mode:"siacoin",siacoin:void 0,siafund:void 0,includeFee:!1};function eh(e){let{balanceSc:t,balanceSf:r,onComplete:n,defaultChangeAddress:s,defaultClaimAddress:l}=e,u=(0,d.cI)({mode:"all",defaultValues:ef}),f=function(e){let{balanceSc:t,balanceSf:r,fee:n}=e;return{receiveAddress:{type:"text",title:"Recipient address",placeholder:ec,validation:{validate:{required:e=>!!e||"required",valid:e=>(0,en.At)(e)||"invalid address"}}},mode:{type:"select",title:"Action",options:[{value:"siacoin",label:"Send siacoins"},{value:"siafund",label:"Send siafunds"}],validation:{required:"required"}},siacoin:{type:"siacoin",title:"Siacoin",placeholder:"100",validation:{validate:{required:(e,t)=>"siacoin"!==t.mode||!!e||"required",gtz:(e,t)=>"siacoin"!==t.mode||!new(k())(e||0).isZero()||"must be greater than zero",balance:(e,r)=>"siacoin"!==r.mode||t.gte((0,en.qN)(e||0).plus(n))||"not enough funds in wallet"}}},siafund:{type:"number",title:"Siafunds",decimalsLimit:0,placeholder:"100",validation:{validate:{required:(e,t)=>"siafund"!==t.mode||!!e||"required",gtz:(e,t)=>"siafund"!==t.mode||(null==e?void 0:e.gt(0))||"must be greater than zero",balance:(e,i)=>"siafund"!==i.mode||(null==t?void 0:t.gte(n))&&(null==r?void 0:r.gte(e))||"not enough funds in wallet"}}},customChangeAddress:{type:"boolean",title:"Custom change adress",validation:{}},customClaimAddress:{type:"boolean",title:"Custom claim adress",validation:{}},changeAddress:{type:"text",title:"Change address",placeholder:ec,actions:(0,i.jsx)(a.ua7,{content:(0,i.jsx)(i.Fragment,{children:"The address where any change from the transaction will be sent. If a custom change address is not specified it is automatically set to the wallet's address 0."}),children:(0,i.jsx)(a.xvT,{color:"subtle",className:"cursor-pointer",children:(0,i.jsx)(c.RdX,{className:"scale-75"})})}),validation:{validate:{required:(e,t)=>{let r=!t.customChangeAddress;return r||!!e||"required"},valid:(e,t)=>{let r=!t.customChangeAddress;return r||(0,en.At)(e)||"invalid address"}}}},claimAddress:{type:"text",title:"Claim address",placeholder:ec,actions:(0,i.jsx)(a.ua7,{content:(0,i.jsx)(i.Fragment,{children:"The address that will receive any unclaimed siacoin earnings from the siafund. If a custom claim address is not specified it is automatically set to the wallet's address 0."}),children:(0,i.jsx)(a.xvT,{color:"subtle",className:"cursor-pointer",children:(0,i.jsx)(c.RdX,{className:"scale-75"})})}),validation:{validate:{required:(e,t)=>{let r="siafund"!==t.mode,n=!t.customChangeAddress;return r||n||!!e||"required"},valid:(e,t)=>{let r="siafund"!==t.mode,n=!t.customChangeAddress;return r||n||(0,en.At)(e)||"invalid address"}}}},includeFee:{type:"boolean",title:"",validation:{}}}}({balanceSc:t,balanceSf:r,fee:ed}),h=(0,o.useCallback)(async e=>{let t=new(k())(e.siacoin||0),r=new(k())(e.siafund||0),i=e.includeFee?(0,en.qN)(t).minus(ed):(0,en.qN)(t),o=r.toNumber();n({receiveAddress:e.receiveAddress,changeAddress:e.customChangeAddress?e.changeAddress:s,claimAddress:e.customClaimAddress?e.claimAddress:l,fee:ed,mode:e.mode,siacoin:i,siafund:o})},[n,s,l]),p=(0,o.useMemo)(()=>u.handleSubmit(h),[u,h]),m=u.watch("siacoin"),v=u.watch("mode"),g=u.watch("customChangeAddress"),y=u.watch("customClaimAddress"),b=u.watch("includeFee"),x=(0,en.qN)(m||0),w=(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[r.gt(0)&&(0,i.jsx)(a.WyV,{size:"medium",form:u,fields:f,name:"mode"}),(0,i.jsx)(a.yEL,{size:"medium",form:u,fields:f,name:"receiveAddress",autoComplete:"off"}),(0,i.jsxs)("div",{className:"flex gap-2",children:[(0,i.jsx)(a.QBj,{size:"small",form:u,fields:f,name:"customChangeAddress",group:!1,children:(0,i.jsxs)("div",{className:"flex items-center gap-px",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",weight:"medium",size:"14",ellipsis:!0,children:"custom change address"}),f.changeAddress.actions]})}),"siafund"===v&&(0,i.jsx)(a.QBj,{size:"small",form:u,fields:f,name:"customClaimAddress",group:!1,children:(0,i.jsxs)("div",{className:"flex items-center gap-px",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",weight:"medium",size:"14",ellipsis:!0,children:"custom claim address"}),f.claimAddress.actions]})})]}),g&&(0,i.jsx)(a.yEL,{size:"medium",form:u,fields:f,name:"changeAddress",autoComplete:"off"}),"siafund"===v&&y&&(0,i.jsx)(a.yEL,{size:"medium",form:u,fields:f,name:"claimAddress",autoComplete:"off"}),"siacoin"===v?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.qGu,{size:"medium",form:u,fields:f,name:"siacoin"}),(0,i.jsxs)("div",{className:"flex items-center",children:[(0,i.jsxs)(a.QBj,{size:"small",form:u,fields:f,name:"includeFee",children:[(0,i.jsx)(a.xvT,{children:"Include fee"}),(0,i.jsx)(a.Yqd,{children:"Include or exclude the network fee from the above transaction value."})]}),(0,i.jsx)("div",{className:"flex flex-1"})]})]}):(0,i.jsx)(a.jIp,{size:"medium",form:u,fields:f,name:"siafund"}),(0,i.jsxs)("div",{className:"flex flex-col gap-2 my-1",children:[(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",children:"Network fee"}),(0,i.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,i.jsx)(a.YKL,{size:"14",value:ed,variant:"value",dynamicUnits:!1})})]}),"siacoin"===v&&(0,i.jsxs)("div",{className:"flex justify-between gap-2 items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",children:"Total"}),(0,i.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,i.jsx)(a.YKL,{size:"14",value:b?x:x.plus(ed),variant:"value",dynamicUnits:!1})})]})]})]});return{form:u,el:w,handleSubmit:p,reset:()=>u.reset(ef)}}function ep(e){let{params:{receiveAddress:t,changeAddress:r,claimAddress:n,mode:o,siacoin:s,siafund:l,fee:u},transactionId:c}=e,d=s.plus(u);return(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,i.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Recipient address"}),(0,i.jsx)(a.XxW,{value:t,type:"address"})]}),(0,i.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Change address"}),(0,i.jsx)(a.XxW,{value:r,type:"address"})]}),"siafund"===o&&(0,i.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Claim address"}),(0,i.jsx)(a.XxW,{value:n,type:"address"})]}),(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Amount"}),(0,i.jsx)("div",{className:"flex relative top-[-0.5px]",children:"siacoin"===o?(0,i.jsx)(a.YKL,{size:"14",value:s,variant:"value",dynamicUnits:!1}):(0,i.jsx)(a.Sby,{size:"14",value:l,variant:"value"})})]}),(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Network fee"}),(0,i.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,i.jsx)(a.YKL,{size:"14",value:u,variant:"value",dynamicUnits:!1})})]}),"siacoin"===o&&(0,i.jsxs)("div",{className:"flex items-center gap-2 justify-between",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Total"}),(0,i.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,i.jsx)(a.YKL,{size:"14",value:d,variant:"value",dynamicUnits:!1})})]}),c&&(0,i.jsxs)("div",{className:"flex gap-6 items-center justify-between",children:[(0,i.jsx)(a.xvT,{color:"verySubtle",noWrap:!0,children:"Transaction ID"}),(0,i.jsx)(a.XxW,{value:c,type:"transaction"})]})]})}function em(e){let{transaction:t,toSign:r,addresses:n,siacoinOutputs:i,siafundOutputs:o}=e;if(!n)return{error:"No addresses"};if(!i)return{error:"No outputs"};for(let e of r){let r=(0,a.I13)(e),{address:s,siacoinUtxo:l,siafundUtxo:u,siacoinInput:c,siafundInput:d,error:f}=ev({toSignId:r,addresses:n,siacoinOutputs:i,siafundOutputs:o,transaction:t});if(f)return{error:f};l&&(c.unlockConditions={timelock:0,publicKeys:[s.publicKey],signaturesRequired:1}),u&&(d.unlockConditions={timelock:0,publicKeys:[s.publicKey],signaturesRequired:1}),t.signatures||(t.signatures=[]),t.signatures.push({parentID:r,publicKeyIndex:0,timelock:0,coveredFields:{wholeTransaction:!0}})}return{}}function ev(e){var t,r;let{toSignId:n,transaction:i,addresses:o,siacoinOutputs:s,siafundOutputs:l}=e,u=(0,a.I13)(n),c=function(e){let{id:t,addresses:r,siacoinOutputs:n}=e,i=(0,a.I13)(t),o=null==n?void 0:n.find(e=>(0,a.I13)(e.id)===i);if(!o)return{error:"Missing utxo"};let s=null==r?void 0:r.find(e=>(0,a.I13)(e.address)===(0,a.I13)(o.siacoinOutput.address));return s?void 0===s.index?{error:"Missing address index"}:s.publicKey?{utxo:o,address:s}:{error:"Missing address public key"}:{error:"Missing address"}}({id:u,addresses:o,siacoinOutputs:s});if(!c.error){let e=null===(t=i.siacoinInputs)||void 0===t?void 0:t.find(e=>(0,a.I13)(e.parentID)===(0,a.I13)(c.utxo.id));return e?{address:c.address,siacoinUtxo:c.utxo,siacoinInput:e}:{error:"Missing input"}}let d=function(e){let{id:t,addresses:r,siafundOutputs:n}=e,i=(0,a.I13)(t),o=null==n?void 0:n.find(e=>(0,a.I13)(e.id)===i);if(!o)return{error:"Missing utxo"};let s=null==r?void 0:r.find(e=>(0,a.I13)(e.address)===(0,a.I13)(o.siafundOutput.address));return s?void 0===s.index?{error:"Missing address index"}:s.publicKey?{utxo:o,address:s}:{error:"Missing address public key"}:{error:"Missing address"}}({id:u,addresses:o,siafundOutputs:l});if(!d.error){let e=null===(r=i.siafundInputs)||void 0===r?void 0:r.find(e=>(0,a.I13)(e.parentID)===(0,a.I13)(d.utxo.id));return e?{address:d.address,siafundUtxo:d.utxo,siafundInput:e}:{error:"Missing input"}}return d.error&&"Missing utxo"!==d.error?{error:d.error}:{error:c.error}}function eg(e){let{cancel:t}=e,r=(0,s.ys)(),n=(0,o.useCallback)(async e=>{let{signedTransaction:n}=e;if(!n)return{error:"No signed transaction"};let i=await r.post({payload:{transactions:[n],v2Transactions:[]}});return i.error?(t(n),{error:i.error}):{}},[t,r]);return n}function ey(){let{wallet:e}=(0,f.r)(),t=null==e?void 0:e.id,r=(0,s.zQ)(),n=(0,o.useCallback)(async e=>{var n,i;let o=(null===(n=e.siacoinInputs)||void 0===n?void 0:n.map(e=>e.parentID))||[],s=(null===(i=e.siafundInputs)||void 0===i?void 0:i.map(e=>e.parentID))||[],l=await r.post({params:{id:t},payload:{siacoinOutputs:o,siafundOutputs:s}});l.error&&(0,a.OHV)(l.error)},[t,r]);return n}function eb(){let{wallet:e}=(0,f.r)(),t=null==e?void 0:e.id,r=(0,s.gU)(),n=(0,s.p4)(),i=(0,o.useCallback)(async e=>{let{receiveAddress:i,changeAddress:o,claimAddress:a,mode:s,siacoin:l,siafund:u,fee:c}=e;if(!i||!o||!a)return{error:"No addresses"};if("siacoin"===s){let e=await r.post({params:{id:t},payload:{amount:l.plus(c).toString(),changeAddress:o,transaction:{minerFees:[c.toString()],siacoinOutputs:[{value:l.toString(),address:i}]}}});return e.error?{error:e.error}:{fundedTransaction:e.data.transaction,toSign:e.data.toSign}}if("siafund"===s){let e=[],s=await n.post({params:{id:t},payload:{amount:u,changeAddress:o,claimAddress:a,transaction:{minerFees:[c.toString()],siafundOutputs:[{value:u,address:i}]}}});return s.error?{error:s.error}:(e.push(...s.data.toSign),(s=await r.post({params:{id:t},payload:{amount:c.toString(),changeAddress:o,transaction:s.data.transaction}})).error)?{error:s.error}:(e.push(...s.data.toSign),{fundedTransaction:s.data.transaction,toSign:e})}},[r,n,t]);return i}let ex={mnemonic:""};function ew(e){let{params:t,transactionId:r}=e;return(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsx)(ep,{params:t,transactionId:r}),(0,i.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 my-4",children:[(0,i.jsx)(a.xvT,{children:(0,i.jsx)(c.Z$8,{})}),(0,i.jsx)(a.xvT,{children:"Transaction successfully broadcasted."})]})]})}function eE(e){let{trigger:t,open:r,onOpenChange:n,sendParams:o,signedTxnId:s,step:l,send:u,compose:c,setStep:d,controls:f}=e;return(0,i.jsx)(a.VqE,{trigger:t,open:r,onOpenChange:e=>{e||(c.reset(),u.reset(),d("compose")),n(e)},title:"Send",onSubmit:f?f.handleSubmit:void 0,controls:(null==f?void 0:f.form)&&(0,i.jsx)("div",{className:"flex flex-col gap-1",children:(0,i.jsx)(a.ZqQ,{form:f.form,children:f.submitLabel})}),contentVariants:{className:"w-[450px]"},children:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsx)(a.tIK,{onChange:e=>{d(e)},activeStep:l,steps:[{id:"compose",label:"Compose"},{id:"send",label:"Sign & Send"},{id:"done",label:"Complete"}]}),(0,i.jsx)(a.Z0O,{className:"w-full mt-4"}),"compose"===l&&c.el,"send"===l&&u.el,"done"===l&&(0,i.jsx)(ew,{params:o,transactionId:s})]})})}let ej={receiveAddress:"",changeAddress:"",claimAddress:"",mode:"siacoin",siacoin:new(k())(0),siafund:0,fee:new(k())(0)};function eS(e){var t,r;let{params:n,trigger:l,open:u,onOpenChange:c}=e,{walletId:h}=n||{},p=(0,s.tM)({disabled:!h,params:{id:h}}),{dataset:m}=R({id:h}),v=(0,o.useMemo)(()=>{var e;return new(k())((null===(e=p.data)||void 0===e?void 0:e.siacoins)||0)},[p.data]),g=(0,o.useMemo)(()=>{var e;return new(k())((null===(e=p.data)||void 0===e?void 0:e.siafunds)||0)},[p.data]),[y,b]=(0,o.useState)("compose"),[x,E]=(0,o.useState)(),[j,S]=(0,o.useState)(ej),C=eh({balanceSc:v,balanceSf:g,defaultChangeAddress:null==m?void 0:null===(t=m[0])||void 0===t?void 0:t.address,defaultClaimAddress:null==m?void 0:null===(r=m[0])||void 0===r?void 0:r.address,onComplete:e=>{S(t=>({...t,...e})),b("send")}}),O=function(e){let{walletId:t,params:r,onConfirm:n}=e,l=function(){let{wallet:e,saveWalletSeed:t}=(0,f.r)(),r=null==e?void 0:e.id,n=(0,s.Vg)({disabled:!r,params:{id:r}}),{dataset:i}=R({id:r}),a=(0,s.ek)(),l=(0,s.gM)(),u=eb(),c=ey(),d=eg({cancel:c});return(0,o.useCallback)(async e=>{var o,s;let{seed:f,params:h}=e;if(!i)return;let{fundedTransaction:p,toSign:m,error:v}=await u(h);if(v)return{fundedTransaction:p,error:v};let{signedTransaction:g,error:y}=await function(e){let{seed:t,transaction:r,toSign:n,cs:i,cn:o,addresses:a,siacoinOutputs:s,siafundOutputs:l}=e;if(!i)return{error:"No consensus state"};if(!a)return{error:"No addresses"};if(!s)return{error:"No outputs"};let{error:u}=em({toSign:n,transaction:r,addresses:a,siacoinOutputs:s,siafundOutputs:l});if(u)return{error:u};for(let[e,u]of n.entries()){let{address:n,error:c}=ev({toSignId:u,transaction:r,addresses:a,siacoinOutputs:s,siafundOutputs:l});if(c)return{error:c};let d=(0,w.x)().privateKeyFromSeed(t,n.index);if(d.error)return{error:d.error};let{transaction:f,error:h}=(0,w.x)().signTransaction(JSON.stringify(i),JSON.stringify(o),JSON.stringify(r),e,d.privateKey);if(h)return{error:h};r=f}return{signedTransaction:r}}({seed:f,transaction:p,toSign:m,cs:a.data,cn:l.data,addresses:i,siacoinOutputs:null===(o=n.data)||void 0===o?void 0:o.siacoinOutputs,siafundOutputs:null===(s=n.data)||void 0===s?void 0:s.siafundOutputs});return y?(c(p),{error:y}):(t(r,f),d({signedTransaction:g}))},[c,i,u,r,a.data,l.data,n.data,t,d])}(),{isSeedCached:u,getSeedFromCacheOrForm:c}=_(t),{dataset:h}=(0,f.r)(),p=null==h?void 0:h.find(e=>e.id===t),m=null==p?void 0:p.seedHash,v=(0,d.cI)({mode:"all",defaultValues:ex}),[g,y]=(0,o.useState)("password"),b=(0,o.useMemo)(()=>(function(e){let{seedHash:t,mnemonicFieldType:r,setMnemonicFieldType:n,isSeedCached:i}=e;return{mnemonic:i?{title:"Seed",type:"text",validation:{}}:A({seedHash:t,setMnemonicFieldType:n,mnemonicFieldType:r})}})({mnemonicFieldType:g,setMnemonicFieldType:y,seedHash:m,isSeedCached:u}),[g,y,m,u]),x=(0,o.useCallback)(async e=>{let t=c(e);if(t.error){(0,a.OHV)(t.error);return}let{error:i}=await l({seed:t.seed,params:r});if(i){(0,a.OHV)(i);return}n({})},[c,l,r,n]),E=(0,a.WsO)(b),j=(0,o.useMemo)(()=>v.handleSubmit(x,E),[v,x,E]),S=(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsx)(T,{walletId:t,name:"mnemonic",form:v,fields:b,actionText:"complete the transaction"}),(0,i.jsx)(ep,{params:r})]});return{form:v,el:S,handleSubmit:j,reset:()=>v.reset(ex)}}({walletId:h,params:j,onConfirm:e=>{let{transactionId:t}=e;E(t),b("done")}}),M=(0,o.useMemo)(()=>"compose"===y?{submitLabel:"Generate transaction",form:C.form,handleSubmit:C.handleSubmit,reset:C.reset}:"send"===y?{submitLabel:"Sign and broadcast transaction",form:O.form,handleSubmit:O.handleSubmit,reset:O.reset}:void 0,[y,C,O]);return(0,i.jsx)(eE,{trigger:l,open:u,onOpenChange:e=>{e||(C.reset(),O.reset(),b("compose")),c(e)},controls:M,compose:C,send:O,sendParams:j,signedTxnId:x,step:y,setStep:b})}function eC(e){let{title:t,isSigned:r,isConnected:n,details:o,actions:s}=e;return(0,i.jsx)(a.s_4,{className:"mt-1 pl-3 pr-2 py-2",children:(0,i.jsxs)("div",{className:"flex flex-col",children:[(0,i.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[(0,i.jsxs)("div",{className:"flex items-center",children:[r?(0,i.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-400 animate-pingslow"}),(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-500 border border-green-400"})]}):n?(0,i.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-400 animate-pingslow"}),(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-500 border border-amber-400"})]}):(0,i.jsx)("div",{className:"relative w-2 h-2 mr-2",children:(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-gray-1000 border border-gray-900"})}),(0,i.jsx)(a.xvT,{weight:"semibold",size:"16",className:"ml-1",children:t})]}),(0,i.jsx)("div",{className:"flex gap-1 justify-between items-center",children:s})]}),o]})})}function ek(e){let{waitingForUser:t,isConnected:r,isSigned:n,sign:o}=e;return(0,i.jsx)("div",{className:"flex flex-col gap-1",children:n?(0,i.jsx)(eC,{isConnected:r,isSigned:n,title:"Transaction"}):r&&t?(0,i.jsx)(eC,{isConnected:r,isSigned:n,title:"Transaction",details:(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.xvT,{children:"Please confirm on device..."}),(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:"To continue, approve signature on device."})]})}):r?(0,i.jsx)(eC,{isConnected:r,isSigned:n,title:"Transaction",actions:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(a.zxk,{size:"small",onClick:o,children:"Sign"})})}):(0,i.jsx)(eC,{isConnected:r,isSigned:n,title:"Transaction",details:(0,i.jsx)("div",{className:"flex flex-col gap-1",children:(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:"Connect device to start signing."})})})})}var eA=r(48834).lW;async function eO(e){let{device:t,transaction:r,toSign:n,addresses:i,siacoinOutputs:o,siafundOutputs:a}=e;if(!i)return{error:"No addresses"};if(!o)return{error:"No outputs"};let{error:s}=em({transaction:r,toSign:n,addresses:i,siacoinOutputs:o,siafundOutputs:a});if(s)return{error:s};for(let[e,s]of n.entries()){let n=ev({toSignId:s,addresses:i,siacoinOutputs:o,siafundOutputs:a,transaction:r});if(n.error)return{error:n.error};let l=await eT({device:t,transaction:r,signatureIndex:e,keyIndex:n.address.index});if(l.error)return{error:l.error}}return{transaction:r}}async function eT(e){let t,{device:r,transaction:n,signatureIndex:i,keyIndex:o}=e,{encodedTransaction:a,error:s}=(0,w.x)().encodeTransaction(JSON.stringify(n));if(s)return{error:s};let l=eA.from(a,"utf-8"),u=await r.sia.getVersion(),c=0>function(e,t){let r=/[^0-9.]/gi,n=e.replace(r,"").split("."),i=t.replace(r,"").split("."),o=Math.max(n.length,i.length);for(let e=0;er)return 1}return 0}(u,"0.4.5");try{t=c?await r.sia.signTransactionV044(l,i,o):await r.sia.signTransaction(l,i,o,0)}catch(e){return{error:e.message}}return n.signatures[i].signature=t,{transaction:n}}let e_={isConnected:!1,isSigned:!1};function eM(e){var t,r;let{params:n,trigger:l,open:u,onOpenChange:c}=e,{walletId:h}=n||{},[p,m]=(0,o.useState)("compose"),[v,g]=(0,o.useState)(),[y,b]=(0,o.useState)(ej),x=(0,s.tM)({disabled:!h,params:{id:h}}),{dataset:w}=R({id:h}),E=(0,o.useMemo)(()=>{var e;return new(k())((null===(e=x.data)||void 0===e?void 0:e.siacoins)||0)},[x.data]),j=(0,o.useMemo)(()=>{var e;return new(k())((null===(e=x.data)||void 0===e?void 0:e.siafunds)||0)},[x.data]),S=eh({balanceSc:E,balanceSf:j,defaultChangeAddress:null==w?void 0:null===(t=w[0])||void 0===t?void 0:t.address,defaultClaimAddress:null==w?void 0:null===(r=w[0])||void 0===r?void 0:r.address,onComplete:e=>{b(t=>({...t,...e})),m("send")}}),C=function(e){let{params:t,step:r,onConfirm:n}=e,l=(0,d.cI)({mode:"all",defaultValues:e_}),u=l.watch("isConnected"),c=l.watch("isSigned"),{device:h,error:p}=(0,H.c)(),m=ey(),v=function(e){let{cancel:t}=e,{wallet:r}=(0,f.r)(),n=null==r?void 0:r.id,i=(0,s.Vg)({disabled:!n,params:{id:n}}),{dataset:a}=R({id:n}),{device:l}=(0,H.c)(),u=(0,o.useCallback)(async e=>{var r,n;let{fundedTransaction:o,toSign:s}=e;if(!l||!o)return;let u=await eO({device:l,transaction:o,toSign:s,addresses:a,siacoinOutputs:null===(r=i.data)||void 0===r?void 0:r.siacoinOutputs,siafundOutputs:null===(n=i.data)||void 0===n?void 0:n.siafundOutputs});return u.error?(t(o),{error:u.error}):{signedTransaction:u.transaction}},[l,a,i.data,t]);return u}({cancel:m}),g=eg({cancel:m}),y=eb(),b=function(e){let{fund:t,cancel:r,sign:n}=e,i=(0,o.useCallback)(async e=>{let{fundedTransaction:i,toSign:o,error:a}=await t(e);if(a)return{fundedTransaction:i,error:a};let{signedTransaction:s,error:l}=await n({fundedTransaction:i,toSign:o});return l?(r(i),{fundedTransaction:i,error:l}):{signedTransaction:s}},[t,n,r]);return i}({cancel:m,fund:y,sign:v}),[x,w]=(0,o.useState)(!1),[E,j]=(0,o.useState)();(0,o.useEffect)(()=>{"compose"===r&&j(void 0)},[r]),(0,o.useEffect)(()=>{h?l.setValue("isConnected",!0):(w(!1),l.setValue("isConnected",!1))},[l,h]),(0,o.useEffect)(()=>{p?l.setError("isConnected",{message:p.message}):l.clearErrors("isConnected")},[l,p]),(0,o.useEffect)(()=>{E||l.setValue("isSigned",!1)},[l,E]);let S=(0,o.useMemo)(()=>({isConnected:{type:"boolean",title:"",validation:{validate:{isConnected:e=>e||"Ledger must be connected"}}},isSigned:{type:"boolean",title:"",validation:{validate:{isSigned:e=>e||"Transaction must be signed"}}}}),[]),C=(0,o.useCallback)(async e=>{if(!e.isConnected)return;let{error:t}=await g({signedTransaction:E});if(t){(0,a.OHV)(t);return}n({})},[g,E,n]),k=(0,a.WsO)(S),A=(0,o.useMemo)(()=>l.handleSubmit(C,k),[l,C,k]),O=(0,o.useCallback)(async()=>{w(!0);let{signedTransaction:e,error:r}=await b(t);r?(0,a.OHV)(r):(j(e),l.setValue("isSigned",!0)),w(!1)},[l,b,t]),T=(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.Qyk,{title:"Device",name:"isConnected"}),(0,i.jsx)(a.cp7,{name:"isConnected",form:l}),(0,i.jsx)(X,{})]}),(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.Qyk,{title:"Signature",name:"isSigned"}),(0,i.jsx)(a.cp7,{name:"isSigned",form:l}),(0,i.jsx)(ek,{waitingForUser:x,isConnected:u,isSigned:c,sign:O})]})]}),(0,i.jsx)(ep,{params:t})]});return{form:l,el:T,handleSubmit:A,cancel:()=>{E&&m(E)},reset:()=>l.reset(e_)}}({walletId:h,step:p,params:y,onConfirm:e=>{let{transactionId:t}=e;g(t),m("done")}}),A=(0,o.useMemo)(()=>"compose"===p?{submitLabel:"Generate transaction",form:S.form,handleSubmit:S.handleSubmit,reset:S.reset}:"send"===p?{submitLabel:"Sign and broadcast transaction",form:C.form,handleSubmit:C.handleSubmit,reset:C.reset}:void 0,[p,S,C]);return(0,i.jsx)(eE,{trigger:l,open:u,onOpenChange:e=>{e||(S.reset(),C.reset(),m("compose")),c(e)},controls:A,compose:S,send:C,sendParams:y,signedTxnId:v,step:p,setStep:m})}function eR(e){let{params:t,trigger:r,open:n,onOpenChange:s}=e,{walletId:l}=t||{},{dataset:u,saveWalletSeed:c}=(0,f.r)(),h=null==u?void 0:u.find(e=>e.id===l),p={mnemonic:""},[m,v]=(0,o.useState)("password"),g=(0,d.cI)({mode:"all",defaultValues:p}),{handleOpenChange:y,closeAndReset:b}=S({form:g,onOpenChange:s,defaultValues:p}),x=function(e){let{seedHash:t,mnemonicFieldType:r,setMnemonicFieldType:n}=e;return{mnemonic:A({seedHash:t,setMnemonicFieldType:n,mnemonicFieldType:r})}}({seedHash:null==h?void 0:h.seedHash,mnemonicFieldType:m,setMnemonicFieldType:v}),E=(0,o.useCallback)(e=>{let{seed:t}=(0,w.x)().seedFromPhrase(e.mnemonic);c(l,t),b()},[l,c,b]),j=(0,a.WsO)(x);return(0,i.jsx)(a.VqE,{title:"Unlock wallet: ".concat(null==h?void 0:h.name),trigger:r,open:n,onOpenChange:y,contentVariants:{className:"w-[500px]"},onSubmit:g.handleSubmit(E,j),controls:(0,i.jsx)("div",{className:"flex justify-end",children:(0,i.jsx)(a.ZqQ,{form:g,variant:"accent",size:"medium",children:"Continue"})}),children:(0,i.jsx)(T,{walletId:null==h?void 0:h.id,form:g,fields:x,name:"mnemonic"})})}function eN(e){let{open:t,onOpenChange:r}=e,{walletAutoLockTimeout:n,setWalletAutoLockTimeout:o,setWalletAutoLockEnabled:s,walletAutoLockEnabled:l}=(0,f.r)();return(0,i.jsx)(a.DLL,{open:t,onOpenChange:r,securityEl:(0,i.jsx)(a.bZj,{children:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,i.jsx)(a.xvT,{children:(0,i.jsx)(c.RdX,{})}),(0,i.jsx)(a.X6q,{size:"20",className:"flex-1",children:"Lock wallets"}),(0,i.jsx)(a.rsf,{size:"medium",checked:l,onCheckedChange:e=>s(e)}),(0,i.jsxs)(a.PhF,{disabled:!l,value:String(n),onChange:e=>{o(Number(e.currentTarget.value))},children:[(0,i.jsx)(a.Wxm,{value:(0,a.sWj)(5),children:"5 minutes"}),(0,i.jsx)(a.Wxm,{value:(0,a.sWj)(10),children:"10 minutes"}),(0,i.jsx)(a.Wxm,{value:(0,a.sWj)(20),children:"20 minutes"}),(0,i.jsx)(a.Wxm,{value:(0,a.sWj)(30),children:"30 minutes"}),(0,i.jsx)(a.Wxm,{value:(0,a.sWj)(60),children:"1 hour"})]})]}),(0,i.jsx)(a.nvN,{size:"14",children:"Automatically lock each wallet after a certain period of inactivity."})]})})})}function eP(e){let{title:t,isNew:r,address:n,details:o,actions:s,remove:l}=e;return(0,i.jsx)(a.s_4,{className:"mt-1 pl-3 pr-2 py-2",children:(0,i.jsxs)("div",{className:"flex flex-col",children:[(0,i.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[(0,i.jsxs)("div",{className:"flex items-center",children:[n?r?(0,i.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-400 animate-pingslow"}),(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-500 border border-green-400"})]}):(0,i.jsx)("div",{className:"relative w-2 h-2 mr-2",children:(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-gray-1000 border border-gray-900"})}):(0,i.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-400 animate-pingslow"}),(0,i.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-500 border border-amber-400"})]}),(0,i.jsx)(a.xvT,{weight:"semibold",size:"16",className:"ml-1",children:t})]}),(0,i.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[s,r&&(0,i.jsx)(a.zxk,{variant:"ghost",onClick:l,children:(0,i.jsx)(c.PcV,{})})]})]}),o]})})}function eD(e){let{index:t,address:r,isNew:n,setAddress:s,remove:l}=e,{device:u,error:c,setError:d}=(0,H.c)(),[f,h]=(0,o.useState)(!1),p=(0,o.useCallback)(async()=>{if(u){if(c){(0,a.OHV)(c.message);return}try{h(!0);let e=await u.sia.verifyStandardAddress(t);s({index:t,address:e.address,publicKey:e.publicKey})}catch(e){d(e),console.log(e)}h(!1)}},[t,u,c,d,s]);return(0,i.jsx)("div",{className:"flex flex-col gap-1",children:r?(0,i.jsx)(eP,{title:"Address ".concat(t),isNew:n,remove:l,address:r,details:(0,i.jsx)("div",{className:"flex flex-col gap-1",children:(0,i.jsx)(a.XxW,{value:r,label:"public key 0",color:"subtle",maxLength:30})})}):f?(0,i.jsx)(eP,{title:"Address ".concat(t),isNew:n,remove:l,details:(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.xvT,{children:"Please confirm on device..."}),(0,i.jsx)(a.nvN,{size:"14",color:"subtle",children:"To continue, approve address generation on device."})]})}):(0,i.jsx)(eP,{title:"Address ".concat(t),isNew:n,remove:l,actions:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(a.zxk,{size:"small",onClick:p,children:"Generate"})})})})}function eL(e){return{isNew:!0,address:"",publicKey:"",index:e}}function eI(e){let{params:t,trigger:r,open:n,onOpenChange:l}=e,{walletId:u,walletJustCreated:c}=t||{},{dataset:h,lastIndex:p,datasetCount:m}=R({id:u}),{dataset:v}=(0,f.r)(),g=null==v?void 0:v.find(e=>e.id===u),y=p+1,b={ledgerConnected:!1,index:new(k())(y),count:new(k())(1)},x=(0,d.cI)({mode:"all",defaultValues:b}),{disconnect:w,error:E}=(0,H.c)();(0,o.useEffect)(()=>{!c&&n&&w()},[n]),(0,o.useEffect)(()=>{x.formState.isSubmitting||x.setValue("index",new(k())(y))},[y]);let j=x.watch("index"),C=x.watch("count"),A={ledgerConnected:{type:"boolean",title:"",validation:{validate:{ledgerConnected:e=>e||"Ledger must be connected"}}},index:{type:"number",title:"Start index",decimalsLimit:0,placeholder:"0",validation:{required:"required"}},count:{type:"number",title:"Number of addresses",decimalsLimit:0,placeholder:"1",validation:{required:"required",max:1e3}}},O=(0,s.yi)();(0,o.useEffect)(()=>{E?x.setError("ledgerConnected",{message:E.message}):x.clearErrors("ledgerConnected")},[x,E]);let[T,_]=(0,o.useState)({});(0,o.useEffect)(()=>{n&&c&&_({0:eL(0)})},[n]);let M=(0,o.useCallback)(()=>{if(!j||!C)return;let e={...T};for(let t=j.toNumber();t{_(t=>{let r={...t};return delete r[e],r})},[]),P=(0,o.useCallback)(e=>{let{index:t,address:r,publicKey:n}=e;_(e=>{let i={...e};return i[t]={...i[t],address:r,publicKey:n},i})},[_]),D=(0,o.useMemo)(()=>{let e={};for(let[t,{address:r,publicKey:n}]of Object.entries(T)){let i=null==h?void 0:h.find(e=>e.index===Number(t));e[t]={isNew:!i,index:Number(t),address:(null==i?void 0:i.address)||r,publicKey:(null==i?void 0:i.publicKey)||n}}return e},[h,T]),L=(0,o.useMemo)(()=>Object.entries(D).filter(e=>{let[t,r]=e;return r.isNew&&r.address}).map(e=>{let[t,r]=e;return r}),[D]),I=(0,o.useCallback)(async()=>{let e=L.length;for(let[t,{address:r,publicKey:n,index:i}]of L.entries()){let o=await O.put({params:{id:u,addr:r},payload:{index:i,publicKey:n}});if(o.error){1===e?(0,a.OHV)("Error saving address."):(0,a.OHV)("Error saving addresses. ".concat(t>0?"Not all addresses were saved.":""));return}}1===e?(0,a.OPV)("Successfully added 1 address."):(0,a.OPV)("Successfully added ".concat(e," addresses."))},[O,u,L]),{handleOpenChange:F,closeAndReset:V}=S({form:x,onOpenChange:e=>{_({}),l(e)},defaultValues:b}),B=(0,o.useCallback)(async()=>{if(0===L.length){(0,a.OHV)("Add and generate addresses with your Ledger device to continue.");return}await I(),V()},[L,I,V]);return(0,i.jsx)(a.VqE,{title:"Wallet ".concat(null==g?void 0:g.name,": generate addresses"),trigger:r,open:n,onOpenChange:F,contentVariants:{className:"w-[500px]"},onSubmit:x.handleSubmit(B),controls:(0,i.jsxs)("div",{className:"flex gap-1 justify-end",children:[(0,i.jsx)(a.zxk,{size:"medium",variant:"gray",onClick:V,children:"Close"}),L.length>0&&(0,i.jsxs)(a.ZqQ,{form:x,variant:"accent",size:"medium",children:["Save ",L.length," ",1===L.length?"address":"addresses"]})]}),children:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsxs)(a.xvT,{children:["Wallet currently has ",m," ",1===m?"address":"addresses"," with a highest index of"," ",p,". Select a start index and the number of sequential addresses you would like to generate."]}),(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsx)(a.Qyk,{title:"Device",name:"ledgerConnected"}),(0,i.jsx)(a.cp7,{name:"ledgerConnected",form:x}),(0,i.jsx)(X,{})]}),(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsxs)("div",{className:"flex gap-2 w-full pt-3 items-end",children:[(0,i.jsx)("div",{className:"flex-1",children:(0,i.jsx)(a.jIp,{form:x,fields:A,name:"index"})}),(0,i.jsx)("div",{className:"flex-1",children:(0,i.jsx)(a.jIp,{form:x,fields:A,name:"count"})}),(0,i.jsx)(a.zxk,{onClick:M,children:"Add"})]}),(0,i.jsx)("div",{className:"flex flex-col gap-1",children:Object.entries(D).map(e=>{let[t,{address:r,isNew:n}]=e;return(0,i.jsx)(eD,{isNew:n,address:r,setAddress:P,index:Number(t),remove:()=>N(Number(t))},t)})})]})]})})}let eF=(0,o.createContext)({}),eV=()=>(0,o.useContext)(eF);function eB(e){let{children:t}=e,r=function(){let[e,t]=(0,o.useState)(),[r,n]=(0,o.useState)({}),i=(0,o.useCallback)((e,r)=>{n(t=>({...t,[e]:r})),t(e)},[n,t]),a=(0,o.useCallback)(()=>{n(t=>({...t,[e]:void 0})),t(void 0)},[t,n,e]),s=(0,o.useCallback)(e=>{e||a()},[a]);return{dialog:e,params:r,openDialog:i,confirm,closeDialog:a,onOpenChange:s}}();return(0,i.jsx)(eF.Provider,{value:r,children:t})}function eU(){let{openDialog:e,onOpenChange:t,closeDialog:r,dialog:n,params:o}=eV(),l=(0,s.Wl)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(eN,{open:"settings"===n,onOpenChange:t}),(0,i.jsx)(u,{open:"walletAddType"===n,params:o.walletAddType,onOpenChange:t=>t?e(n,o.walletAddType):r()}),(0,i.jsx)(j,{open:"walletAddNew"===n,params:o.walletAddNew,onOpenChange:t=>t?e(n,o.walletAddNew):r()}),(0,i.jsx)(ee,{open:"walletAddRecover"===n,params:o.walletAddRecover,onOpenChange:t=>t?e(n,o.walletAddRecover):r()}),(0,i.jsx)(J,{open:"walletAddLedger"===n,params:o.walletAddLedger,onOpenChange:t=>t?e(n,o.walletAddLedger):r()}),(0,i.jsx)(er,{open:"walletAddWatch"===n,params:o.walletAddWatch,onOpenChange:t=>t?e(n,o.walletAddWatch):r()}),(0,i.jsx)(N,{open:"walletAddressesGenerate"===n,params:o.walletAddressesGenerate,onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(eI,{open:"walletLedgerAddressGenerate"===n,params:o.walletLedgerAddressGenerate,onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(es,{open:"walletAddressesAdd"===n,params:o.walletAddressesAdd,onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(I,{open:"walletRemove"===n,params:o.walletRemove,onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(U,{open:"walletUpdate"===n,params:o.walletUpdate,onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(eR,{open:"walletUnlock"===n,params:o.walletUnlock,onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(V,{open:"addressUpdate"===n,params:o.addressUpdate,onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(eu,{open:"addressRemove"===n,params:o.addressRemove,onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(a.D_D,{open:"connectPeer"===n,params:o.connectPeer,connect:e=>l.post({payload:e}),onOpenChange:t=>t?e(n):r()}),(0,i.jsx)(eS,{open:"walletSendSeed"===n,params:o.walletSendSeed,onOpenChange:t=>t?e(n,o.walletSendSeed):r()}),(0,i.jsx)(eM,{open:"walletSendLedger"===n,params:o.walletSendLedger,onOpenChange:t=>t?e(n,o.walletSendLedger):r()}),(0,i.jsx)(a.QHy,{open:"confirm"===n,params:o.confirm,onOpenChange:t=>t?e(n,o.confirm):r()})]})}},51660:function(e,t,r){"use strict";r.d(t,{Yl:function(){return g},hI:function(){return v}});var n=r(52322),i=r(84057),o=r(41345),a=r(2784);let s=["transactionId","type","height","timestamp","amount","fee"],l=[];var u=r(98191);let c=[{id:"transactionId",label:"transaction ID",category:"general",render:e=>{let{data:{transactionId:t},context:r}=e;return t?(0,n.jsx)(i.XxW,{size:"12",value:t,label:"transaction ID",type:"transaction",siascanUrl:r.siascanUrl}):null}},{id:"type",label:"type",category:"general",fixed:!0,render:e=>{let{data:{type:t}}=e;return(0,n.jsx)(i.xvT,{weight:"medium",ellipsis:!0,children:t})}},{id:"height",label:"height",category:"general",render:e=>{let{data:{height:t,pending:r}}=e;return r?(0,n.jsx)(i.xvT,{size:"12",ellipsis:!0,children:(0,n.jsx)(i.xgg,{})}):t?(0,n.jsx)(i.xvT,{size:"12",ellipsis:!0,children:t.toLocaleString()}):null}},{id:"timestamp",label:"timestamp",category:"general",render:e=>{let{data:{timestamp:t,pending:r}}=e;return r?(0,n.jsx)(i.xvT,{size:"12",ellipsis:!0,children:(0,n.jsx)(i.xgg,{})}):(0,n.jsx)(i.xvT,{size:"12",ellipsis:!0,children:(0,u.rN)(t,{timeStyle:"short"})})}},{id:"amount",label:"amount",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{amountSc:t,amountSf:r}}=e;return t?(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[!t.isZero()&&(0,n.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t}),!!r&&(0,n.jsx)(i.Sby,{size:"12",value:r})]}):null}},{id:"fee",label:"fee",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{fee:t}}=e;return t?(0,n.jsx)(i.ho9,{displayBoth:!0,size:"12",variant:"value",value:t}):null}},{id:"contractId",label:"contract ID",category:"general",render:e=>{let{data:{contractId:t},context:r}=e;return t?(0,n.jsx)(i.XxW,{size:"12",value:t,label:"contract ID",siascanUrl:r.siascanUrl}):null}}];var d=r(5632),f=r(6391),h=r.n(f),p=r(90089);let m=(0,a.createContext)({}),v=()=>(0,a.useContext)(m);function g(e){let{children:t}=e,r=function(){let e=(0,d.useRouter)(),t=e.query.id,r=Number(e.query.limit||100),n=Number(e.query.offset||0),{filters:u,setFilter:f,removeFilter:m,removeLastFilter:v,resetFilters:g}=(0,i.Uu5)(),y=(0,o.jy)({disabled:!t,params:{id:t}}),b=(0,o.sG)({disabled:!t,params:{limit:r,offset:n,id:t}}),x=(0,o.He)(),w=(0,a.useCallback)(async()=>{x.post({params:{id:t},payload:0})},[x,t]);(0,a.useEffect)(()=>{t&&w()},[t]);let E=(0,a.useMemo)(()=>{if(!b.data||!y.data)return null;let e=y.data.map(e=>({id:e.id,transactionId:e.id,timestamp:0,pending:!0,type:e.type,amount:new(h())(e.received).minus(e.sent)})),t=b.data.map((e,t)=>{let r=new(h())(0),n=0;if("transaction"===e.type){var i,o,a,s,l,u,c,d;let t=(null===(o=e.val)||void 0===o?void 0:null===(i=o.siacoinInputs)||void 0===i?void 0:i.reduce((t,r)=>e.relevant.includes(r.siacoinOutput.address)?t.plus(r.siacoinOutput.value):t,new(h())(0)))||new(h())(0),f=(null===(s=e.val)||void 0===s?void 0:null===(a=s.siacoinOutputs)||void 0===a?void 0:a.reduce((t,r)=>e.relevant.includes(r.siacoinOutput.address)?t.plus(r.siacoinOutput.value):t,new(h())(0)))||new(h())(0);r=f.minus(t);let p=(null===(u=e.val)||void 0===u?void 0:null===(l=u.siafundInputs)||void 0===l?void 0:l.reduce((t,r)=>e.relevant.includes(r.siafundElement.siafundOutput.address)?t+r.siafundElement.siafundOutput.value:t,0))||0,m=(null===(d=e.val)||void 0===d?void 0:null===(c=d.siafundOutputs)||void 0===c?void 0:c.reduce((t,r)=>e.relevant.includes(r.siafundOutput.address)?t+r.siafundOutput.value:t,0))||0;n=m-p}"miner payout"===e.type&&(r=new(h())(e.val.siacoinOutput.siacoinOutput.value));let f=String(t),p={id:f,type:e.type,timestamp:new Date(e.timestamp).getTime(),height:e.index.height,pending:!1,amountSc:r,amountSf:n};return"fee"in e.val&&(p.fee=new(h())(e.val.fee)),"fileContract"in e.val&&(p.contractId=e.val.fileContract.id),"id"in e.val&&(p.id+=e.val.id,p.transactionId=e.val.id),p});return[...e.reverse(),...t]},[b.data,y.data]),{configurableColumns:j,enabledColumns:S,sortableColumns:C,toggleColumnVisibility:k,setColumnsVisible:A,setColumnsHidden:O,toggleSort:T,setSortDirection:_,setSortField:M,sortField:R,sortDirection:N,resetDefaultColumnVisibility:P}=(0,i.oy6)("walletd/v0/events",{columns:c,columnsDefaultVisible:s,sortOptions:l,defaultSortField:"id"}),D=(0,a.useMemo)(()=>c.filter(e=>e.fixed||S.includes(e.id)),[S]),L=b.isValidating||y.isValidating,I=b.error||y.error,F=(0,i.c2j)(E,L,I,u),V=(0,p.B)(),B=(0,a.useMemo)(()=>({siascanUrl:V}),[V]);return{dataState:F,error:b.error,pageCount:(null==E?void 0:E.length)||0,columns:D,dataset:E,cellContext:B,configurableColumns:j,enabledColumns:S,sortableColumns:C,toggleColumnVisibility:k,setColumnsVisible:A,setColumnsHidden:O,toggleSort:T,setSortDirection:_,setSortField:M,sortField:R,sortDirection:N,resetDefaultColumnVisibility:P,filters:u,setFilter:f,removeFilter:m,removeLastFilter:v,resetFilters:g,offset:n,limit:r}}();return(0,n.jsx)(m.Provider,{value:r,children:t})}},39094:function(e,t,r){"use strict";r.d(t,{c:function(){return c},d:function(){return d}});var n=r(52322),i=r(73866),o=r(27748),a=r(35415),s=r.n(a),l=r(2784);let u=(0,l.createContext)({}),c=()=>(0,l.useContext)(u);function d(e){let{children:t}=e,r=function(){let[e,t]=(0,l.useState)(!1),[r,n]=(0,l.useState)(),[a,u]=(0,l.useState)(),c=(0,l.useCallback)(()=>{if(r){try{r.sia.close(),u(void 0)}catch(e){console.log(e)}n(void 0)}},[r]),d=(0,l.useCallback)(async e=>{let r=null;t(!0);try{switch(e){case"HID":(r=await o.Z.openConnected())||(r=await o.Z.create());break;case"Bluetooth":r=await i.Z.create();break;default:throw Error("Unsupported transport method: ".concat(e))}if(r){u(void 0);let i=new(s())(r);n({type:e,sia:i,transport:r}),t(!1)}}catch(e){u(e),t(!1)}},[]),f=(0,l.useCallback)(async()=>{if(!r){u(Error("No device connected"));return}t(!0);try{let e=await r.sia.verifyPublicKey(0);return u(void 0),n(t=>({...t,publicKey0:e.publicKey,address0:e.address})),t(!1),e}catch(e){t(!1),u(e)}},[r]);return(0,l.useEffect)(()=>{if(!(null==r?void 0:r.transport))return;let e=setInterval(async()=>{(null==r?void 0:r.transport._disconnectEmitted)&&n(void 0)},2e3);return()=>clearInterval(e)},[null==r?void 0:r.transport]),{connect:d,verify:f,disconnect:c,device:r,error:a,setError:u,waitingForUser:e}}();return(0,n.jsx)(u.Provider,{value:r,children:t})}},6110:function(e,t,r){"use strict";r.d(t,{k:function(){return S},r:function(){return j}});var n=r(52322),i=r(84057),o=r(41345),a=r(2784),s=r(81336),l=r(20876),u=r(98191),c=r(8822),d=r(22038),f=r(6391),h=r.n(f),p=r(18250);let m=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:t}=e;return(0,n.jsx)(p.g,{trigger:(0,n.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,n.jsx)(l.iG7,{})}),contentProps:{align:"start"},wallet:t})}},{id:"details",label:"name",category:"general",fixed:!0,render:e=>{let{data:{id:t,name:r,description:o}}=e;return(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)(i.xvT,{weight:"bold",ellipsis:!0,children:r||t}),o&&(0,n.jsx)(i.ua7,{content:(0,n.jsx)("pre",{children:(0,n.jsx)(i.nvN,{size:"12",className:"w-full whitespace-pre-wrap",children:o})}),children:(0,n.jsx)(i.nvN,{size:"12",children:o.split("\n")[0]})})]})}},{id:"balance",label:"balance",category:"general",contentClassName:"justify-end",render:function(e){let{data:{id:t}}=e,r=(0,o.tM)({params:{id:t}});return r.data?(0,n.jsxs)("div",{className:"flex flex-col gap-2 items-end",children:[(0,n.jsx)(i.ho9,{displayBoth:!0,size:"12",variant:"value",value:new(h())(r.data.siacoins)}),!!r.data.siafunds&&(0,n.jsx)(i.Sby,{size:"12",variant:"value",value:r.data.siafunds})]}):null}},{id:"type",label:"type",category:"general",render:e=>{var t,r;let{data:{type:o}}=e;return(0,n.jsx)(i.ua7,{content:null===(t=d._[o])||void 0===t?void 0:t.title,children:(0,n.jsxs)(i.Cts,{interactive:!1,className:"flex gap-0.5 items-center",children:[(0,n.jsx)(i.xvT,{color:"subtle",className:"scale-75 relative top-px",children:null===(r=d._[o])||void 0===r?void 0:r.icon}),o]})})}},{id:"status",label:"status",category:"general",render:e=>{let{data:{type:t,status:r,activityAt:o,unlock:a,lock:s},context:{walletAutoLockEnabled:u,walletAutoLockTimeout:d}}=e;if("seed"===t){let e=new Date().getTime()-o,t=Math.max(d-e,0),f=(0,c.l)(t),h=u?"The wallet is currently unlocked. The wallet will stay unlocked until it is inactive for ".concat(f.amount.toFixed(0)," more ").concat(f.units,", manually locked, or the app is closed."):"The wallet is currently unlocked. The wallet will stay unlocked until it is manually locked or the app is closed.";return(0,n.jsx)(i.zxk,{tip:"unlocked"===r?h:"The wallet is currently locked.",color:"unlocked"===r?"contrast":"verySubtle",variant:"ghost",onClick:e=>{e.stopPropagation(),"unlocked"===r?s():a()},children:"unlocked"===r?(0,n.jsx)(l.VmF,{}):(0,n.jsx)(l.Lur,{})})}return null}},{id:"createdAt",label:"created on",category:"general",render:e=>{let{data:{createdAt:t}}=e;return t?(0,n.jsx)(i.xvT,{size:"12",children:(0,u.rN)(t,{dateStyle:"medium"})}):null}}];var v=r(5632),g=r(71930),y=r(27429),b=r(92762),x=r(80023),w=r(95753);let E=(0,a.createContext)({}),j=()=>(0,a.useContext)(E);function S(e){let{children:t}=e,r=function(){let e=(0,o.rB)(),t=(0,v.useRouter)(),{openDialog:r}=(0,x.Rh)(),{setOnLockCallback:n}=(0,w.Hv)(),{seedCache:l,walletActivityAt:u,saveWalletSeed:c,lockAllWallets:d,walletAutoLockTimeout:f,setWalletAutoLockTimeout:h,setWalletAutoLockEnabled:p,walletAutoLockEnabled:E}=function(){let[e,t]=(0,b.Z)("v0/wallets/walletAutoLockEnabled",{defaultValue:!0}),[r,n]=(0,b.Z)("v0/wallets/walletAutoLockTimeout",{defaultValue:(0,i.sWj)(5)}),[o,s]=(0,a.useState)({}),[l,u]=(0,a.useState)({}),c=(0,a.useMemo)(()=>Object.keys(l).length,[l]),d=(0,a.useCallback)(e=>{s(t=>({...t,[e]:new Date().getTime()}))},[s]),f=(0,a.useCallback)((e,t)=>{u(r=>({...r,[e]:t})),t&&d(e)},[u,d]),h=(0,a.useCallback)(()=>{if(!e)return;let t=new Date().getTime(),n=t-r;for(let[e,t]of Object.entries(l))if(t){let t=o[e]||0;t{u({})},[u]),m=(0,v.useRouter)(),x=(0,a.useCallback)(()=>{if(m.pathname.startsWith(g._.wallet.base)){let e=m.query.id;d(e)}},[m,d]);return(0,y.Yp)({onAction:x,throttle:5e3,eventsThrottle:5e3}),(0,a.useEffect)(()=>{if(!e)return;let t=setInterval(()=>{h()},5e3);return()=>{clearInterval(t)}},[e]),{walletActivityAt:o,updateWalletActivityAt:d,seedCache:l,saveWalletSeed:f,lockAllWallets:p,seedCount:c,walletAutoLockTimeout:r,setWalletAutoLockTimeout:n,setWalletAutoLockEnabled:t,walletAutoLockEnabled:e}}();(0,a.useEffect)(()=>{n("wallets",()=>{d()})},[]);let j=(0,a.useMemo)(()=>{if(!e.data)return null;let n=Object.entries(e.data||{}).map(e=>{let[n,i]=e;return{id:n,name:i.name,seed:l[n],status:l[n]?"unlocked":"locked",activityAt:u[n],seedHash:i.seedHash,description:i.description,createdAt:i.createdAt||0,type:i.type,unlock:()=>r("walletUnlock",{walletId:n}),lock:()=>c(n,void 0),onClick:()=>t.push({pathname:g._.wallet.view,query:{id:n}})}});return n},[t,e.data,l,u,r,c]),S=null==j?void 0:j.find(e=>e.id===t.query.id),{filters:C,setFilter:k,removeFilter:A,removeLastFilter:O,resetFilters:T}=(0,i.Wdu)(),{configurableColumns:_,enabledColumns:M,sortableColumns:R,toggleColumnVisibility:N,setColumnsVisible:P,setColumnsHidden:D,toggleSort:L,setSortDirection:I,setSortField:F,sortField:V,sortDirection:B,resetDefaultColumnVisibility:U}=(0,i.oy6)("walletd/v0/wallets",{columns:m,columnsDefaultVisible:s.gd,sortOptions:s.Fo,defaultSortField:s.nw}),z=(0,i._4u)({dataset:j,filters:C,sortField:V,sortDirection:B}),H=(0,a.useMemo)(()=>m.filter(e=>e.fixed||M.includes(e.id)),[M]),$=(0,i.c2j)(j,e.isValidating,e.error,C),Z=(0,a.useMemo)(()=>({walletAutoLockTimeout:f,walletAutoLockEnabled:E}),[E,f]);return{dataState:$,error:e.error,datasetCount:(null==z?void 0:z.length)||0,unlockedCount:(null==j?void 0:j.filter(e=>e.seed).length)||0,columns:H,dataset:z,context:Z,wallet:S,configurableColumns:_,enabledColumns:M,sortableColumns:R,toggleColumnVisibility:N,setColumnsVisible:P,setColumnsHidden:D,toggleSort:L,setSortDirection:I,setSortField:F,sortField:V,filters:C,setFilter:k,removeFilter:A,removeLastFilter:O,resetFilters:T,sortDirection:B,resetDefaultColumnVisibility:U,saveWalletSeed:c,lockAllWallets:d,walletAutoLockTimeout:f,setWalletAutoLockTimeout:h,setWalletAutoLockEnabled:p,walletAutoLockEnabled:E}}();return(0,n.jsx)(E.Provider,{value:r,children:t})}},81336:function(e,t,r){"use strict";r.d(t,{Fo:function(){return o},gd:function(){return n},nw:function(){return i}});let n=["actions","details","balance","type","status","createdAt"],i="name",o=[{id:"name",label:"name",category:"general"},{id:"type",label:"type",category:"general"},{id:"status",label:"status",category:"general"},{id:"createdAt",label:"created on",category:"general"}]},90089:function(e,t,r){"use strict";r.d(t,{B:function(){return o}});var n=r(84057),i=r(41345);function o(){var e;let t=(0,i.gM)();return(null===(e=t.data)||void 0===e?void 0:e.name)==="zen"?n.nNd.explore.testnetZen:n.nNd.explore.mainnet}},8822:function(e,t,r){"use strict";function n(e){return!e||e<1e3?{amount:0,units:"seconds"}:(e/=1e3)<60?{amount:Math.floor(100*e)/100,units:"seconds"}:{amount:Math.floor(e/60*100)/100,units:"minutes"}}r.d(t,{l:function(){return n}})},74236:function(e,t,r){"use strict";function n(){return r.g.walletWasm}async function i(){WebAssembly.instantiateStreaming||(WebAssembly.instantiateStreaming=async(e,t)=>{let r=await (await e).arrayBuffer();return await WebAssembly.instantiate(r,t)});let e=function(){let e=()=>{let e=Error("not implemented");return e.code="ENOSYS",e};if(!globalThis.fs){let t="";globalThis.fs={constants:{O_WRONLY:-1,O_RDWR:-1,O_CREAT:-1,O_TRUNC:-1,O_APPEND:-1,O_EXCL:-1},writeSync(e,n){t+=r.decode(n);let i=t.lastIndexOf("\n");return -1!=i&&(t=t.substring(i+1)),n.length},write(t,r,n,i,o,a){if(0!==n||i!==r.length||null!==o){a(e());return}let s=this.writeSync(t,r);a(null,s)},chmod(t,r,n){n(e())},chown(t,r,n,i){i(e())},close(t,r){r(e())},fchmod(t,r,n){n(e())},fchown(t,r,n,i){i(e())},fstat(t,r){r(e())},fsync(e,t){t(null)},ftruncate(t,r,n){n(e())},lchown(t,r,n,i){i(e())},link(t,r,n){n(e())},lstat(t,r){r(e())},mkdir(t,r,n){n(e())},open(t,r,n,i){i(e())},read(t,r,n,i,o,a){a(e())},readdir(t,r){r(e())},readlink(t,r){r(e())},rename(t,r,n){n(e())},rmdir(t,r){r(e())},stat(t,r){r(e())},symlink(t,r,n){n(e())},truncate(t,r,n){n(e())},unlink(t,r){r(e())},utimes(t,r,n,i){i(e())}}}if(globalThis.process||(globalThis.process={getuid:()=>-1,getgid:()=>-1,geteuid:()=>-1,getegid:()=>-1,getgroups(){throw e()},pid:-1,ppid:-1,umask(){throw e()},cwd(){throw e()},chdir(){throw e()}}),!globalThis.crypto)throw Error("globalThis.crypto is not available, polyfill required (crypto.getRandomValues only)");if(!globalThis.performance)throw Error("globalThis.performance is not available, polyfill required (performance.now only)");if(!globalThis.TextEncoder)throw Error("globalThis.TextEncoder is not available, polyfill required");if(!globalThis.TextDecoder)throw Error("globalThis.TextDecoder is not available, polyfill required");let t=new TextEncoder("utf-8"),r=new TextDecoder("utf-8");return class{async run(e){if(!(e instanceof WebAssembly.Instance))throw Error("Go.run: WebAssembly.Instance expected");this._inst=e,this.mem=new DataView(this._inst.exports.mem.buffer),this._values=[NaN,0,null,!0,!1,globalThis,this],this._goRefCounts=Array(this._values.length).fill(1/0),this._ids=new Map([[0,1],[null,2],[!0,3],[!1,4],[globalThis,5],[this,6]]),this._idPool=[],this.exited=!1;let r=4096,n=e=>{let n=r,i=t.encode(e+"\x00");return new Uint8Array(this.mem.buffer,r,i.length).set(i),(r+=i.length)%8!=0&&(r+=8-r%8),n},i=this.argv.length,o=[];this.argv.forEach(e=>{o.push(n(e))}),o.push(0);let a=Object.keys(this.env).sort();a.forEach(e=>{o.push(n("".concat(e,"=").concat(this.env[e])))}),o.push(0);let s=r;if(o.forEach(e=>{this.mem.setUint32(r,e,!0),this.mem.setUint32(r+4,0,!0),r+=8}),r>=12288)throw Error("total length of command line and environment variables exceeds limit");this._inst.exports.run(i,s),this.exited&&this._resolveExitPromise(),await this._exitPromise}_resume(){if(this.exited)throw Error("Go program has already exited");this._inst.exports.resume(),this.exited&&this._resolveExitPromise()}_makeFuncWrapper(e){let t=this;return function(){let r={id:e,this:this,args:arguments};return t._pendingEvent=r,t._resume(),r.result}}constructor(){this.argv=["js"],this.env={},this.exit=e=>{0!==e&&console.warn("exit code:",e)},this._exitPromise=new Promise(e=>{this._resolveExitPromise=e}),this._pendingEvent=null,this._scheduledTimeouts=new Map,this._nextCallbackTimeoutID=1;let e=(e,t)=>{this.mem.setUint32(e+0,t,!0),this.mem.setUint32(e+4,Math.floor(t/4294967296),!0)},n=e=>{let t=this.mem.getUint32(e+0,!0),r=this.mem.getInt32(e+4,!0);return t+4294967296*r},i=e=>{let t=this.mem.getFloat64(e,!0);if(0===t)return;if(!isNaN(t))return t;let r=this.mem.getUint32(e,!0);return this._values[r]},o=(e,t)=>{if("number"==typeof t&&0!==t){if(isNaN(t)){this.mem.setUint32(e+4,2146959360,!0),this.mem.setUint32(e,0,!0);return}this.mem.setFloat64(e,t,!0);return}if(void 0===t){this.mem.setFloat64(e,0,!0);return}let r=this._ids.get(t);void 0===r&&(void 0===(r=this._idPool.pop())&&(r=this._values.length),this._values[r]=t,this._goRefCounts[r]=0,this._ids.set(t,r)),this._goRefCounts[r]++;let n=0;switch(typeof t){case"object":null!==t&&(n=1);break;case"string":n=2;break;case"symbol":n=3;break;case"function":n=4}this.mem.setUint32(e+4,2146959360|n,!0),this.mem.setUint32(e,r,!0)},a=e=>{let t=n(e+0),r=n(e+8);return new Uint8Array(this._inst.exports.mem.buffer,t,r)},s=e=>{let t=n(e+0),r=n(e+8),o=Array(r);for(let e=0;e{let t=n(e+0),i=n(e+8);return r.decode(new DataView(this._inst.exports.mem.buffer,t,i))},u=Date.now()-performance.now();this.importObject={go:{"runtime.wasmExit":e=>{e>>>=0;let t=this.mem.getInt32(e+8,!0);this.exited=!0,delete this._inst,delete this._values,delete this._goRefCounts,delete this._ids,delete this._idPool,this.exit(t)},"runtime.wasmWrite":e=>{e>>>=0;let t=n(e+8),r=n(e+16),i=this.mem.getInt32(e+24,!0);fs.writeSync(t,new Uint8Array(this._inst.exports.mem.buffer,r,i))},"runtime.resetMemoryDataView":e=>{this.mem=new DataView(this._inst.exports.mem.buffer)},"runtime.nanotime1":t=>{e((t>>>=0)+8,(u+performance.now())*1e6)},"runtime.walltime":t=>{t>>>=0;let r=new Date().getTime();e(t+8,r/1e3),this.mem.setInt32(t+16,r%1e3*1e6,!0)},"runtime.scheduleTimeoutEvent":e=>{e>>>=0;let t=this._nextCallbackTimeoutID;this._nextCallbackTimeoutID++,this._scheduledTimeouts.set(t,setTimeout(()=>{for(this._resume();this._scheduledTimeouts.has(t);)console.warn("scheduleTimeoutEvent: missed timeout event"),this._resume()},n(e+8)+1)),this.mem.setInt32(e+16,t,!0)},"runtime.clearTimeoutEvent":e=>{e>>>=0;let t=this.mem.getInt32(e+8,!0);clearTimeout(this._scheduledTimeouts.get(t)),this._scheduledTimeouts.delete(t)},"runtime.getRandomData":e=>{e>>>=0,crypto.getRandomValues(a(e+8))},"syscall/js.finalizeRef":e=>{e>>>=0;let t=this.mem.getUint32(e+8,!0);if(this._goRefCounts[t]--,0===this._goRefCounts[t]){let e=this._values[t];this._values[t]=null,this._ids.delete(e),this._idPool.push(t)}},"syscall/js.stringVal":e=>{o((e>>>=0)+24,l(e+8))},"syscall/js.valueGet":e=>{e>>>=0;let t=Reflect.get(i(e+8),l(e+16));o((e=this._inst.exports.getsp()>>>0)+32,t)},"syscall/js.valueSet":e=>{e>>>=0,Reflect.set(i(e+8),l(e+16),i(e+32))},"syscall/js.valueDelete":e=>{e>>>=0,Reflect.deleteProperty(i(e+8),l(e+16))},"syscall/js.valueIndex":e=>{o((e>>>=0)+24,Reflect.get(i(e+8),n(e+16)))},"syscall/js.valueSetIndex":e=>{e>>>=0,Reflect.set(i(e+8),n(e+16),i(e+24))},"syscall/js.valueCall":e=>{e>>>=0;try{let t=i(e+8),r=Reflect.get(t,l(e+16)),n=s(e+32),a=Reflect.apply(r,t,n);e=this._inst.exports.getsp()>>>0,o(e+56,a),this.mem.setUint8(e+64,1)}catch(t){o((e=this._inst.exports.getsp()>>>0)+56,t),this.mem.setUint8(e+64,0)}},"syscall/js.valueInvoke":e=>{e>>>=0;try{let t=i(e+8),r=s(e+16),n=Reflect.apply(t,void 0,r);e=this._inst.exports.getsp()>>>0,o(e+40,n),this.mem.setUint8(e+48,1)}catch(t){o((e=this._inst.exports.getsp()>>>0)+40,t),this.mem.setUint8(e+48,0)}},"syscall/js.valueNew":e=>{e>>>=0;try{let t=i(e+8),r=s(e+16),n=Reflect.construct(t,r);e=this._inst.exports.getsp()>>>0,o(e+40,n),this.mem.setUint8(e+48,1)}catch(t){o((e=this._inst.exports.getsp()>>>0)+40,t),this.mem.setUint8(e+48,0)}},"syscall/js.valueLength":t=>{e((t>>>=0)+16,parseInt(i(t+8).length))},"syscall/js.valuePrepareString":r=>{r>>>=0;let n=t.encode(String(i(r+8)));o(r+16,n),e(r+24,n.length)},"syscall/js.valueLoadString":e=>{e>>>=0;let t=i(e+8);a(e+16).set(t)},"syscall/js.valueInstanceOf":e=>{e>>>=0,this.mem.setUint8(e+24,i(e+8) instanceof i(e+16)?1:0)},"syscall/js.copyBytesToGo":t=>{t>>>=0;let r=a(t+8),n=i(t+32);if(!(n instanceof Uint8Array||n instanceof Uint8ClampedArray)){this.mem.setUint8(t+48,0);return}let o=n.subarray(0,r.length);r.set(o),e(t+40,o.length),this.mem.setUint8(t+48,1)},"syscall/js.copyBytesToJS":t=>{t>>>=0;let r=i(t+8),n=a(t+16);if(!(r instanceof Uint8Array||r instanceof Uint8ClampedArray)){this.mem.setUint8(t+48,0);return}let o=n.subarray(0,r.length);r.set(o),e(t+40,o.length),this.mem.setUint8(t+48,1)},debug:e=>{console.log(e)}}}}}}(),t=new e,r=fetch("/walletd.wasm");try{let e=await WebAssembly.instantiateStreaming(r,t.importObject);return t.run(e.instance),{}}catch(e){return console.log(e),{error:e.message}}}r.d(t,{x:function(){return n},J:function(){return i}})},15610:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return x}});var n=r(52322);r(37832);var i=r(84057),o=r(80023),a=r(2784),s=r(6110),l=r(45283),u=r(51660),c=r(39094);function d(e){let{children:t}=e;return(0,n.jsx)(o.Tu,{children:(0,n.jsx)(c.d,{children:(0,n.jsx)(s.k,{children:(0,n.jsx)(l.OZ,{children:(0,n.jsxs)(u.Yl,{children:[(0,n.jsx)(o.xQ,{}),t]})})})})})}var f=r(74236),h=r(71930),p=r(1240),m=r.n(p),v=r(49854),g=r.n(v),y=r(82851);let b=(0,y.cx)(m().variable,g().variable);function x(e){let{Component:t,pageProps:r}=e;return(0,a.useEffect)(()=>{let e=async()=>{let{error:e}=await (0,f.J)();e&&(0,i.OHV)("Error initializing WASM. This browser is not supported.",{duration:6e4})};e()},[]),(0,n.jsx)(i.PD$,{className:b,fallback:r.fallback,passwordProtectRequestHooks:!0,lockRoutes:h._,children:(0,n.jsx)(d,{children:(0,n.jsx)(t,{...r})})})}},84057:function(e,t,r){"use strict";let n,i,o,a,s;r.d(t,{bZj:function(){return lP},tU3:function(){return CH},zXq:function(){return kE},juT:function(){return CL},Cts:function(){return lq},WVB:function(){return fc},zxk:function(){return lM},EKh:function(){return lY},QHy:function(){return Tw},HfT:function(){return TS},ncR:function(){return Cv},VqE:function(){return c$},h_2:function(){return fm},Xiv:function(){return fv},Juw:function(){return fg},KpP:function(){return fy},cp7:function(){return Cy},Qyk:function(){return Cg},jIp:function(){return TA},WyV:function(){return T_},qGu:function(){return Tk},QBj:function(){return TT},yEL:function(){return C2},Bau:function(){return TO},ZqQ:function(){return Cw},X6q:function(){return fE},Yqd:function(){return hz},__J:function(){return fT},rUS:function(){return fR},Qjf:function(){return fN},xgg:function(){return jm},kFS:function(){return fd},FzK:function(){return Tx},Clw:function(){return fu},PD$:function(){return TN},Wxm:function(){return hW},wFK:function(){return C_},s_4:function(){return rw},nvN:function(){return rb},u5Q:function(){return Tf},j4H:function(){return hH},J2e:function(){return f4},tIK:function(){return OQ},PhF:function(){return hZ},Wh3:function(){return pY},Z0O:function(){return fn},DLL:function(){return Td},KJW:function(){return CV},rsf:function(){return h8},D_D:function(){return Tr},iA_:function(){return CT},t6k:function(){return TC},xvT:function(){return ry},ua7:function(){return lT},XxW:function(){return SP},YKL:function(){return SI},ho9:function(){return SB},Sby:function(){return SL},hKn:function(){return Ti},vQq:function(){return SA},ytg:function(){return Ts},sWj:function(){return Ta},I13:function(){return ST},OHV:function(){return SS},OPV:function(){return Sj},$Gg:function(){return SO},_4u:function(){return TH},Wdu:function(){return Tz},c2j:function(){return C$},WsO:function(){return C1},Uu5:function(){return T$},oy6:function(){return TU},nNd:function(){return To}});var l,u,c,d,f,h,p,m,v,g,y,b,x,w,E,j,S,C,k,A,O,T,_,M,R,N,P,D,L,I,F,V,B={};r.r(B),r.d(B,{useDropzone:function(){return vZ}});var U=r(52322),z=r(2784),H=r.t(z,2);function $(){return($=Object.assign?Object.assign.bind():function(e){for(var t=1;tn,Object.values(n));return(0,z.createElement)(r.Provider,{value:i},t)}return n.displayName=e+"Provider",[n,function(n){let i=(0,z.useContext)(r);if(i)return i;if(void 0!==t)return t;throw Error(`\`${n}\` must be used within \`${e}\``)}]}function W(e,t=[]){let r=[],n=()=>{let t=r.map(e=>(0,z.createContext)(e));return function(r){let n=(null==r?void 0:r[e])||t;return(0,z.useMemo)(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){let i=(0,z.createContext)(n),o=r.length;function a(t){let{scope:r,children:n,...a}=t,s=(null==r?void 0:r[e][o])||i,l=(0,z.useMemo)(()=>a,Object.values(a));return(0,z.createElement)(s.Provider,{value:l},n)}return r=[...r,n],a.displayName=t+"Provider",[a,function(r,a){let s=(null==a?void 0:a[e][o])||i,l=(0,z.useContext)(s);if(l)return l;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e),o=i[`__scope${n}`];return{...t,...o}},{});return(0,z.useMemo)(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(n,...t)]}function q(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function G(...e){return(0,z.useCallback)(q(...e),e)}let Y=(0,z.forwardRef)((e,t)=>{let{children:r,...n}=e,i=z.Children.toArray(r),o=i.find(J);if(o){let e=o.props.children,r=i.map(t=>t!==o?t:z.Children.count(e)>1?z.Children.only(null):(0,z.isValidElement)(e)?e.props.children:null);return(0,z.createElement)(X,$({},n,{ref:t}),(0,z.isValidElement)(e)?(0,z.cloneElement)(e,void 0,r):null)}return(0,z.createElement)(X,$({},n,{ref:t}),r)});Y.displayName="Slot";let X=(0,z.forwardRef)((e,t)=>{let{children:r,...n}=e;return(0,z.isValidElement)(r)?(0,z.cloneElement)(r,{...function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n],a=/^on[A-Z]/.test(n);a?r[n]=(...e)=>{null==o||o(...e),null==i||i(...e)}:"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props),ref:q(t,r.ref)}):z.Children.count(r)>1?z.Children.only(null):null});X.displayName="SlotClone";let K=({children:e})=>(0,z.createElement)(z.Fragment,null,e);function J(e){return(0,z.isValidElement)(e)&&e.type===K}function Q(e){let t=e+"CollectionProvider",[r,n]=W(t),[i,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=z.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=o(a,r),s=G(t,i.collectionRef);return z.createElement(Y,{ref:s},n)}),l=e+"CollectionItemSlot",u="data-radix-collection-item",c=z.forwardRef((e,t)=>{let{scope:r,children:n,...i}=e,a=z.useRef(null),s=G(t,a),c=o(l,r);return z.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),z.createElement(Y,{[u]:"",ref:s},n)});return[{Provider:e=>{let{scope:t,children:r}=e,n=z.useRef(null),o=z.useRef(new Map).current;return z.createElement(i,{scope:t,itemMap:o,collectionRef:n},r)},Slot:s,ItemSlot:c},function(t){let r=o(e+"CollectionConsumer",t),n=z.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`)),n=Array.from(r.itemMap.values()),i=n.sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current));return i},[r.collectionRef,r.itemMap]);return n},n]}function ee(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(null==e||e(n),!1===r||!n.defaultPrevented)return null==t?void 0:t(n)}}function et(e){let t=(0,z.useRef)(e);return(0,z.useEffect)(()=>{t.current=e}),(0,z.useMemo)(()=>(...e)=>{var r;return null===(r=t.current)||void 0===r?void 0:r.call(t,...e)},[])}function er({prop:e,defaultProp:t,onChange:r=()=>{}}){let[n,i]=function({defaultProp:e,onChange:t}){let r=(0,z.useState)(e),[n]=r,i=(0,z.useRef)(n),o=et(t);return(0,z.useEffect)(()=>{i.current!==n&&(o(n),i.current=n)},[n,i,o]),r}({defaultProp:t,onChange:r}),o=void 0!==e,a=o?e:n,s=et(r),l=(0,z.useCallback)(t=>{if(o){let r="function"==typeof t?t(e):t;r!==e&&s(r)}else i(t)},[o,e,i,s]);return[a,l]}var en=r(28316);let ei=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=(0,z.forwardRef)((e,r)=>{let{asChild:n,...i}=e,o=n?Y:t;return(0,z.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,z.createElement)(o,$({},i,{ref:r}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function eo(e,t){e&&(0,en.flushSync)(()=>e.dispatchEvent(t))}let ea=(null==globalThis?void 0:globalThis.document)?z.useLayoutEffect:()=>{},es=e=>{let{present:t,children:r}=e,n=function(e){var t;let[r,n]=(0,z.useState)(),i=(0,z.useRef)({}),o=(0,z.useRef)(e),a=(0,z.useRef)("none"),s=e?"mounted":"unmounted",[l,u]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,z.useReducer)((e,r)=>{let n=t[e][r];return null!=n?n:e},s));return(0,z.useEffect)(()=>{let e=el(i.current);a.current="mounted"===l?e:"none"},[l]),ea(()=>{let t=i.current,r=o.current,n=r!==e;if(n){let n=a.current,i=el(t);e?u("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?u("UNMOUNT"):r&&n!==i?u("ANIMATION_OUT"):u("UNMOUNT"),o.current=e}},[e,u]),ea(()=>{if(r){let e=e=>{let t=el(i.current),n=t.includes(e.animationName);e.target===r&&n&&(0,en.flushSync)(()=>u("ANIMATION_END"))},t=e=>{e.target===r&&(a.current=el(i.current))};return r.addEventListener("animationstart",t),r.addEventListener("animationcancel",e),r.addEventListener("animationend",e),()=>{r.removeEventListener("animationstart",t),r.removeEventListener("animationcancel",e),r.removeEventListener("animationend",e)}}u("ANIMATION_END")},[r,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,z.useCallback)(e=>{e&&(i.current=getComputedStyle(e)),n(e)},[])}}(t),i="function"==typeof r?r({present:n.isPresent}):z.Children.only(r),o=G(n.ref,i.ref),a="function"==typeof r;return a||n.isPresent?(0,z.cloneElement)(i,{ref:o}):null};function el(e){return(null==e?void 0:e.animationName)||"none"}es.displayName="Presence";let eu=H["useId".toString()]||(()=>void 0),ec=0;function ed(e){let[t,r]=z.useState(eu());return ea(()=>{e||r(e=>null!=e?e:String(ec++))},[e]),e||(t?`radix-${t}`:"")}let ef="Collapsible",[eh,ep]=W(ef),[em,ev]=eh(ef),eg=((e,t)=>{let{__scopeCollapsible:r,open:n,defaultOpen:i,disabled:o,onOpenChange:a,...s}=e,[l=!1,u]=er({prop:n,defaultProp:i,onChange:a});return(0,z.createElement)(em,{scope:r,disabled:o,contentId:ed(),open:l,onOpenToggle:(0,z.useCallback)(()=>u(e=>!e),[u])},(0,z.createElement)(ei.div,$({"data-state":eb(l),"data-disabled":o?"":void 0},s,{ref:t})))},"CollapsibleContent"),ey=((e,t)=>{let{forceMount:r,...n}=e,i=ev(eg,e.__scopeCollapsible);return(0,z.createElement)(es,{present:r||i.open},({present:e})=>(0,z.createElement)(ey,$({},n,{ref:t,present:e})))},(0,z.forwardRef)((e,t)=>{let{__scopeCollapsible:r,present:n,children:i,...o}=e,a=ev(eg,r),[s,l]=(0,z.useState)(n),u=(0,z.useRef)(null),c=G(t,u),d=(0,z.useRef)(0),f=d.current,h=(0,z.useRef)(0),p=h.current,m=a.open||s,v=(0,z.useRef)(m),g=(0,z.useRef)();return(0,z.useEffect)(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),ea(()=>{let e=u.current;if(e){g.current=g.current||{transitionDuration:e.style.transitionDuration,animationDuration:e.style.animationDuration,animationFillMode:e.style.animationFillMode},e.style.transitionDuration="0s",e.style.animationDuration="0s",e.style.animationFillMode="none";let t=e.getBoundingClientRect();d.current=t.height,h.current=t.width,v.current||(e.style.transitionDuration=g.current.transitionDuration,e.style.animationDuration=g.current.animationDuration,e.style.animationFillMode=g.current.animationFillMode),l(n)}},[a.open,n]),(0,z.createElement)(ei.div,$({"data-state":eb(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!m},o,{ref:c,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":p?`${p}px`:void 0,...e.style}}),m&&i)}));function eb(e){return e?"open":"closed"}let ex="Accordion",ew=["Home","End","ArrowDown","ArrowUp"],[eE,ej,eS]=Q(ex),[eC,ek]=W(ex,[eS,ep]),eA=(ep(),z.forwardRef((e,t)=>{let{type:r,...n}=e;return z.createElement(eE.Provider,{scope:e.__scopeAccordion},"multiple"===r?z.createElement(eN,$({},n,{ref:t})):z.createElement(eR,$({},n,{ref:t})))}));eA.propTypes={type(e){let t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):"multiple"===e.type&&"string"==typeof t?Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):"single"===e.type&&Array.isArray(t)?Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};let[eO,eT]=eC(ex),[e_,eM]=eC(ex,{collapsible:!1}),eR=z.forwardRef((e,t)=>{let{value:r,defaultValue:n,onValueChange:i=()=>{},collapsible:o=!1,...a}=e,[s,l]=er({prop:r,defaultProp:n,onChange:i});return z.createElement(eO,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:l,onItemClose:z.useCallback(()=>o&&l(""),[o,l])},z.createElement(e_,{scope:e.__scopeAccordion,collapsible:o},z.createElement(eL,$({},a,{ref:t}))))}),eN=z.forwardRef((e,t)=>{let{value:r,defaultValue:n,onValueChange:i=()=>{},...o}=e,[a=[],s]=er({prop:r,defaultProp:n,onChange:i}),l=z.useCallback(e=>s((t=[])=>[...t,e]),[s]),u=z.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return z.createElement(eO,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:u},z.createElement(e_,{scope:e.__scopeAccordion,collapsible:!0},z.createElement(eL,$({},o,{ref:t}))))}),[eP,eD]=eC(ex),eL=z.forwardRef((e,t)=>{let{__scopeAccordion:r,disabled:n,...i}=e,o=z.useRef(null),a=G(o,t),s=ej(r),l=ee(e.onKeyDown,e=>{var t;if(!ew.includes(e.key))return;let r=e.target,n=s().filter(e=>{var t;return!(null!==(t=e.ref.current)&&void 0!==t&&t.disabled)}),i=n.findIndex(e=>e.ref.current===r),o=n.length;if(-1===i)return;e.preventDefault();let a=i;switch(e.key){case"Home":a=0;break;case"End":a=o-1;break;case"ArrowDown":a=i+1;break;case"ArrowUp":(a=i-1)<0&&(a=o-1)}let l=a%o;null===(t=n[l].ref.current)||void 0===t||t.focus()});return z.createElement(eP,{scope:r,disabled:n},z.createElement(eE.Slot,{scope:r},z.createElement(ei.div,$({},i,{ref:a,onKeyDown:n?void 0:l}))))}),[eI,eF]=eC("AccordionItem");var eV=r(82851);let eB="dismissableLayer.update",eU=(0,z.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ez=(0,z.forwardRef)((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=e,c=(0,z.useContext)(eU),[d,f]=(0,z.useState)(null),[,h]=(0,z.useState)({}),p=G(t,e=>f(e)),m=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(v),y=d?m.indexOf(d):-1,b=c.layersWithOutsidePointerEventsDisabled.size>0,x=y>=g,w=function(e){let t=et(e),r=(0,z.useRef)(!1),n=(0,z.useRef)(()=>{});return(0,z.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function i(){e$("dismissableLayer.pointerDownOutside",t,r,{discrete:!0})}"touch"===e.pointerType?(document.removeEventListener("click",n.current),n.current=i,document.addEventListener("click",n.current,{once:!0})):i()}r.current=!1},i=window.setTimeout(()=>{document.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),document.removeEventListener("pointerdown",e),document.removeEventListener("click",n.current)}},[t]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,r=[...c.branches].some(e=>e.contains(t));!x||r||(null==o||o(e),null==s||s(e),e.defaultPrevented||null==l||l())}),E=function(e){let t=et(e),r=(0,z.useRef)(!1);return(0,z.useEffect)(()=>{let e=e=>{e.target&&!r.current&&e$("dismissableLayer.focusOutside",t,{originalEvent:e},{discrete:!1})};return document.addEventListener("focusin",e),()=>document.removeEventListener("focusin",e)},[t]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target,r=[...c.branches].some(e=>e.contains(t));r||(null==a||a(e),null==s||s(e),e.defaultPrevented||null==l||l())});return!function(e){let t=et(e);(0,z.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t])}(e=>{let t=y===c.layers.size-1;t&&(null==i||i(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),(0,z.useEffect)(()=>{if(d)return r&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(n=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),eH(),()=>{r&&1===c.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=n)}},[d,r,c]),(0,z.useEffect)(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),eH())},[d,c]),(0,z.useEffect)(()=>{let e=()=>h({});return document.addEventListener(eB,e),()=>document.removeEventListener(eB,e)},[]),(0,z.createElement)(ei.div,$({},u,{ref:p,style:{pointerEvents:b?x?"auto":"none":void 0,...e.style},onFocusCapture:ee(e.onFocusCapture,E.onFocusCapture),onBlurCapture:ee(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:ee(e.onPointerDownCapture,w.onPointerDownCapture)}))});function eH(){let e=new CustomEvent(eB);document.dispatchEvent(e)}function e$(e,t,r,{discrete:n}){let i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?eo(i,o):i.dispatchEvent(o)}function eZ(e){return e.split("-")[0]}function eW(e){return e.split("-")[1]}function eq(e){return["top","bottom"].includes(eZ(e))?"x":"y"}function eG(e){return"y"===e?"height":"width"}function eY(e,t,r){let n,{reference:i,floating:o}=e,a=i.x+i.width/2-o.width/2,s=i.y+i.height/2-o.height/2,l=eq(t),u=eG(l),c=i[u]/2-o[u]/2,d="x"===l;switch(eZ(t)){case"top":n={x:a,y:i.y-o.height};break;case"bottom":n={x:a,y:i.y+i.height};break;case"right":n={x:i.x+i.width,y:s};break;case"left":n={x:i.x-o.width,y:s};break;default:n={x:i.x,y:i.y}}switch(eW(t)){case"start":n[l]-=c*(r&&d?-1:1);break;case"end":n[l]+=c*(r&&d?-1:1)}return n}let eX=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}=r,s=await (null==a.isRTL?void 0:a.isRTL(t)),l=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=eY(l,n,s),d=n,f={},h=0;for(let r=0;r({name:"arrow",options:e,async fn(t){let{element:r,padding:n=0}=null!=e?e:{},{x:i,y:o,placement:a,rects:s,platform:l}=t;if(null==r)return{};let u=eK(n),c={x:i,y:o},d=eq(a),f=eW(a),h=eG(d),p=await l.getDimensions(r),m="y"===d?"top":"left",v="y"===d?"bottom":"right",g=s.reference[h]+s.reference[d]-c[d]-s.floating[h],y=c[d]-s.reference[d],b=await (null==l.getOffsetParent?void 0:l.getOffsetParent(r)),x=b?"y"===d?b.clientHeight||0:b.clientWidth||0:0;0===x&&(x=s.floating[h]);let w=u[m],E=x-p[h]-u[v],j=x/2-p[h]/2+(g/2-y/2),S=e1(w,e0(j,E)),C=("start"===f?u[m]:u[v])>0&&j!==S&&s.reference[h]<=s.floating[h];return{[d]:c[d]-(C?je4[e])}let e5={start:"end",end:"start"};function e6(e){return e.replace(/start|end/g,e=>e5[e])}let e8=["top","right","bottom","left"];e8.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);let e7=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n,i,o;let{placement:a,middlewareData:s,rects:l,initialPlacement:u,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",flipAlignment:v=!0,...g}=e,y=eZ(a),b=p||(y!==u&&v?function(e){let t=e3(e);return[e6(e),t,e6(t)]}(u):[e3(u)]),x=[u,...b],w=await eQ(t,g),E=[],j=(null==(r=s.flip)?void 0:r.overflows)||[];if(f&&E.push(w[y]),h){let{main:e,cross:t}=function(e,t,r){void 0===r&&(r=!1);let n=eW(e),i=eq(e),o=eG(i),a="x"===i?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=e3(a)),{main:a,cross:e3(a)}}(a,l,await (null==c.isRTL?void 0:c.isRTL(d.floating)));E.push(w[e],w[t])}if(j=[...j,{placement:a,overflows:E}],!E.every(e=>e<=0)){let e=(null!=(n=null==(i=s.flip)?void 0:i.index)?n:0)+1,t=x[e];if(t)return{data:{index:e,overflows:j},reset:{placement:t}};let r="bottom";switch(m){case"bestFit":{let e=null==(o=j.map(e=>[e,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0].placement;e&&(r=e);break}case"initialPlacement":r=u}if(a!==r)return{reset:{placement:r}}}return{}}}};function e9(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function te(e){return e8.some(t=>e[t]>=0)}let tt=function(e){let{strategy:t="referenceHidden",...r}=void 0===e?{}:e;return{name:"hide",async fn(e){let{rects:n}=e;switch(t){case"referenceHidden":{let t=e9(await eQ(e,{...r,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:te(t)}}}case"escaped":{let t=e9(await eQ(e,{...r,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:te(t)}}}default:return{}}}}},tr=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){let{x:r,y:n}=t,i=await async function(e,t){let{placement:r,platform:n,elements:i}=e,o=await (null==n.isRTL?void 0:n.isRTL(i.floating)),a=eZ(r),s=eW(r),l="x"===eq(r),u=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,d="function"==typeof t?t(e):t,{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}(t,e);return{x:r+i.x,y:n+i.y,data:i}}}};function tn(e){return"x"===e?"y":"x"}let ti=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=e,u={x:r,y:n},c=await eQ(t,l),d=eq(eZ(i)),f=tn(d),h=u[d],p=u[f];if(o){let e="y"===d?"bottom":"right";h=e1(h+c["y"===d?"top":"left"],e0(h,h-c[e]))}a&&(p=e1(p+c["y"===f?"top":"left"],e0(p,p-c["y"===f?"bottom":"right"])));let m=s.fn({...t,[d]:h,[f]:p});return{...m,data:{x:m.x-r,y:m.y-n}}}}},to=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:r,y:n,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=e,c={x:r,y:n},d=eq(i),f=tn(d),h=c[d],p=c[f],m="function"==typeof s?s({...o,placement:i}):s,v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let e="y"===d?"height":"width",t=o.reference[d]-o.floating[e]+v.mainAxis,r=o.reference[d]+o.reference[e]-v.mainAxis;hr&&(h=r)}if(u){var g,y,b,x;let e="y"===d?"width":"height",t=["top","left"].includes(eZ(i)),r=o.reference[f]-o.floating[e]+(t&&null!=(g=null==(y=a.offset)?void 0:y[f])?g:0)+(t?0:v.crossAxis),n=o.reference[f]+o.reference[e]+(t?0:null!=(b=null==(x=a.offset)?void 0:x[f])?b:0)-(t?v.crossAxis:0);pn&&(p=n)}return{[d]:h,[f]:p}}}};function ta(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function ts(e){if(null==e)return window;if(!ta(e)){let t=e.ownerDocument;return t&&t.defaultView||window}return e}function tl(e){return ts(e).getComputedStyle(e)}function tu(e){return ta(e)?"":e?(e.nodeName||"").toLowerCase():""}function tc(){let e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function td(e){return e instanceof ts(e).HTMLElement}function tf(e){return e instanceof ts(e).Element}function th(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ts(e).ShadowRoot||e instanceof ShadowRoot)}function tp(e){let{overflow:t,overflowX:r,overflowY:n}=tl(e);return/auto|scroll|overlay|hidden/.test(t+n+r)}function tm(e){let t=/firefox/i.test(tc()),r=tl(e);return"none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||["transform","perspective"].includes(r.willChange)||t&&"filter"===r.willChange||t&&!!r.filter&&"none"!==r.filter}function tv(){return!/^((?!chrome|android).)*safari/i.test(tc())}let tg=Math.min,ty=Math.max,tb=Math.round;function tx(e,t,r){var n,i,o,a;void 0===t&&(t=!1),void 0===r&&(r=!1);let s=e.getBoundingClientRect(),l=1,u=1;t&&td(e)&&(l=e.offsetWidth>0&&tb(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&tb(s.height)/e.offsetHeight||1);let c=tf(e)?ts(e):window,d=!tv()&&r,f=(s.left+(d&&null!=(n=null==(i=c.visualViewport)?void 0:i.offsetLeft)?n:0))/l,h=(s.top+(d&&null!=(o=null==(a=c.visualViewport)?void 0:a.offsetTop)?o:0))/u,p=s.width/l,m=s.height/u;return{width:p,height:m,top:h,right:f+p,bottom:h+m,left:f,x:f,y:h}}function tw(e){return((e instanceof ts(e).Node?e.ownerDocument:e.document)||window.document).documentElement}function tE(e){return tf(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function tj(e){return tx(tw(e)).left+tE(e).scrollLeft}function tS(e){return"html"===tu(e)?e:e.assignedSlot||e.parentNode||(th(e)?e.host:null)||tw(e)}function tC(e){return td(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function tk(e){let t=ts(e),r=tC(e);for(;r&&["table","td","th"].includes(tu(r))&&"static"===getComputedStyle(r).position;)r=tC(r);return r&&("html"===tu(r)||"body"===tu(r)&&"static"===getComputedStyle(r).position&&!tm(r))?t:r||function(e){let t=tS(e);for(th(t)&&(t=t.host);td(t)&&!["html","body"].includes(tu(t));){if(tm(t))return t;t=t.parentNode}return null}(e)||t}function tA(e){if(td(e))return{width:e.offsetWidth,height:e.offsetHeight};let t=tx(e);return{width:t.width,height:t.height}}function tO(e,t){var r;void 0===t&&(t=[]);let n=function e(t){let r=tS(t);return["html","body","#document"].includes(tu(r))?t.ownerDocument.body:td(r)&&tp(r)?r:e(r)}(e),i=n===(null==(r=e.ownerDocument)?void 0:r.body),o=ts(n),a=i?[o].concat(o.visualViewport||[],tp(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(tO(a))}function tT(e,t,r){return"viewport"===t?eJ(function(e,t){let r=ts(e),n=tw(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=tv();(e||!e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,r)):tf(t)?function(e,t){let r=tx(e,!1,"fixed"===t),n=r.top+e.clientTop,i=r.left+e.clientLeft;return{top:n,left:i,x:i,y:n,right:i+e.clientWidth,bottom:n+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,r):eJ(function(e){var t;let r=tw(e),n=tE(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=ty(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=ty(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+tj(e),l=-n.scrollTop;return"rtl"===tl(i||r).direction&&(s+=ty(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(tw(e)))}let t_={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,o=[..."clippingAncestors"===r?function(e){let t=tO(e),r=["absolute","fixed"].includes(tl(e).position)&&td(e)?tk(e):e;return tf(r)?t.filter(e=>tf(e)&&function(e,t){let r=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&th(r)){let r=t;do{if(r&&e===r)return!0;r=r.parentNode||r.host}while(r)}return!1}(e,r)&&"body"!==tu(e)):[]}(t):[].concat(r),n],a=o[0],s=o.reduce((e,r)=>{let n=tT(t,r,i);return e.top=ty(n.top,e.top),e.right=tg(n.right,e.right),e.bottom=tg(n.bottom,e.bottom),e.left=ty(n.left,e.left),e},tT(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:n}=e,i=td(r),o=tw(r);if(r===o)return t;let a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if((i||!i&&"fixed"!==n)&&(("body"!==tu(r)||tp(o))&&(a=tE(r)),td(r))){let e=tx(r,!0);s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:tf,getDimensions:tA,getOffsetParent:tk,getDocumentElement:tw,getElementRects:e=>{let{reference:t,floating:r,strategy:n}=e;return{reference:function(e,t,r){let n=td(t),i=tw(t),o=tx(e,n&&function(e){let t=tx(e);return tb(t.width)!==e.offsetWidth||tb(t.height)!==e.offsetHeight}(t),"fixed"===r),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(n||!n&&"fixed"!==r){if(("body"!==tu(t)||tp(i))&&(a=tE(t)),td(t)){let e=tx(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=tj(i))}return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}(t,tk(r),n),floating:{...tA(r),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===tl(e).direction};function tM(e,t,r,n){void 0===n&&(n={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=!0,animationFrame:s=!1}=n,l=i&&!s,u=o&&!s,c=l||u?[...tf(e)?tO(e):[],...tO(t)]:[];c.forEach(e=>{l&&e.addEventListener("scroll",r,{passive:!0}),u&&e.addEventListener("resize",r)});let d,f=null;if(a){let n=!0;f=new ResizeObserver(()=>{n||r(),n=!1}),tf(e)&&!s&&f.observe(e),f.observe(t)}let h=s?tx(e):null;return s&&function t(){let n=tx(e);h&&(n.x!==h.x||n.y!==h.y||n.width!==h.width||n.height!==h.height)&&r(),h=n,d=requestAnimationFrame(t)}(),r(),()=>{var e;c.forEach(e=>{l&&e.removeEventListener("scroll",r),u&&e.removeEventListener("resize",r)}),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}let tR=(e,t,r)=>eX(e,t,{platform:t_,...r});var tN="undefined"!=typeof document?z.useLayoutEffect:z.useEffect;function tP(e){let{middleware:t,placement:r="bottom",strategy:n="absolute",whileElementsMounted:i}=void 0===e?{}:e,o=z.useRef(null),a=z.useRef(null),s=function(e){let t=z.useRef(e);return tN(()=>{t.current=e}),t}(i),l=z.useRef(null),[u,c]=z.useState({x:null,y:null,strategy:n,placement:r,middlewareData:{}}),[d,f]=z.useState(t);!function e(t,r){let n,i,o;if(t===r)return!0;if(typeof t!=typeof r)return!1;if("function"==typeof t&&t.toString()===r.toString())return!0;if(t&&r&&"object"==typeof t){if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){let n=o[i];if(("_owner"!==n||!t.$$typeof)&&!e(t[n],r[n]))return!1}return!0}return t!=t&&r!=r}(null==d?void 0:d.map(e=>{let{options:t}=e;return t}),null==t?void 0:t.map(e=>{let{options:t}=e;return t}))&&f(t);let h=z.useCallback(()=>{o.current&&a.current&&tR(o.current,a.current,{middleware:d,placement:r,strategy:n}).then(e=>{p.current&&en.flushSync(()=>{c(e)})})},[d,r,n]);tN(()=>{p.current&&h()},[h]);let p=z.useRef(!1);tN(()=>(p.current=!0,()=>{p.current=!1}),[]);let m=z.useCallback(()=>{if("function"==typeof l.current&&(l.current(),l.current=null),o.current&&a.current){if(s.current){let e=s.current(o.current,a.current,h);l.current=e}else h()}},[h,s]),v=z.useCallback(e=>{o.current=e,m()},[m]),g=z.useCallback(e=>{a.current=e,m()},[m]),y=z.useMemo(()=>({reference:o,floating:a}),[]);return z.useMemo(()=>({...u,update:h,refs:y,reference:v,floating:g}),[u,h,y,v,g])}let tD=e=>{let{element:t,padding:r}=e;return{name:"arrow",options:e,fn(e){if(Object.prototype.hasOwnProperty.call(t,"current")){if(null!=t.current)return e2({element:t.current,padding:r}).fn(e)}else if(t)return e2({element:t,padding:r}).fn(e);return{}}}},tL=(0,z.forwardRef)((e,t)=>{let{children:r,width:n=10,height:i=5,...o}=e;return(0,z.createElement)(ei.svg,$({},o,{ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?r:(0,z.createElement)("polygon",{points:"0,0 30,0 15,10"}))});function tI(e){let[t,r]=(0,z.useState)(void 0);return ea(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,i=t.blockSize}else n=e.offsetWidth,i=e.offsetHeight;r({width:n,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}let tF="Popper",[tV,tB]=W(tF),[tU,tz]=tV(tF),tH=(0,z.forwardRef)((e,t)=>{let{__scopePopper:r,virtualRef:n,...i}=e,o=tz("PopperAnchor",r),a=(0,z.useRef)(null),s=G(t,a);return(0,z.useEffect)(()=>{o.onAnchorChange((null==n?void 0:n.current)||a.current)}),n?null:(0,z.createElement)(ei.div,$({},i,{ref:s}))}),t$="PopperContent",[tZ,tW]=tV(t$),[tq,tG]=tV(t$,{hasParent:!1,positionUpdateFns:new Set}),tY=(0,z.forwardRef)((e,t)=>{var r,n,i,o,a,s,l,u;let{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:h="center",alignOffset:p=0,arrowPadding:m=0,collisionBoundary:v=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:b=!1,avoidCollisions:x=!0,...w}=e,E=tz(t$,c),[j,S]=(0,z.useState)(null),C=G(t,e=>S(e)),[k,A]=(0,z.useState)(null),O=tI(k),T=null!==(r=null==O?void 0:O.width)&&void 0!==r?r:0,_=null!==(n=null==O?void 0:O.height)&&void 0!==n?n:0,M="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},R=Array.isArray(v)?v:[v],N=R.length>0,P={padding:M,boundary:R.filter(tQ),altBoundary:N},{reference:D,floating:L,strategy:I,x:F,y:V,placement:B,middlewareData:U,update:H}=tP({strategy:"fixed",placement:d+("center"!==h?"-"+h:""),whileElementsMounted:tM,middleware:[tr({mainAxis:f+_,alignmentAxis:p}),x?ti({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?to():void 0,...P}):void 0,k?tD({element:k,padding:m}):void 0,x?e7({...P}):void 0,t0({arrowWidth:T,arrowHeight:_}),b?tt({strategy:"referenceHidden"}):void 0].filter(tJ)});ea(()=>{D(E.anchor)},[D,E.anchor]);let $=null!==F&&null!==V,[Z,W]=t1(B),q=null===(i=U.arrow)||void 0===i?void 0:i.x,Y=null===(o=U.arrow)||void 0===o?void 0:o.y,X=(null===(a=U.arrow)||void 0===a?void 0:a.centerOffset)!==0,[K,J]=(0,z.useState)();ea(()=>{j&&J(window.getComputedStyle(j).zIndex)},[j]);let{hasParent:Q,positionUpdateFns:ee}=tG(t$,c),et=!Q;(0,z.useLayoutEffect)(()=>{if(!et)return ee.add(H),()=>{ee.delete(H)}},[et,ee,H]),(0,z.useLayoutEffect)(()=>{et&&$&&Array.from(ee).reverse().forEach(e=>requestAnimationFrame(e))},[et,$,ee]);let er={"data-side":Z,"data-align":W,...w,ref:C,style:{...w.style,animation:$?void 0:"none",opacity:null!==(s=U.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,z.createElement)("div",{ref:L,"data-radix-popper-content-wrapper":"",style:{position:I,left:0,top:0,transform:$?`translate3d(${Math.round(F)}px, ${Math.round(V)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:K,"--radix-popper-transform-origin":[null===(l=U.transformOrigin)||void 0===l?void 0:l.x,null===(u=U.transformOrigin)||void 0===u?void 0:u.y].join(" ")}},(0,z.createElement)(tZ,{scope:c,placedSide:Z,onArrowChange:A,arrowX:q,arrowY:Y,shouldHideArrow:X},et?(0,z.createElement)(tq,{scope:c,hasParent:!0,positionUpdateFns:ee},(0,z.createElement)(ei.div,er)):(0,z.createElement)(ei.div,er)))}),tX={top:"bottom",right:"left",bottom:"top",left:"right"},tK=(0,z.forwardRef)(function(e,t){let{__scopePopper:r,...n}=e,i=tW("PopperArrow",r),o=tX[i.placedSide];return(0,z.createElement)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},(0,z.createElement)(tL,$({},n,{ref:t,style:{...n.style,display:"block"}})))});function tJ(e){return void 0!==e}function tQ(e){return null!==e}let t0=e=>({name:"transformOrigin",options:e,fn(t){var r,n,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(r=u.arrow)||void 0===r?void 0:r.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=t1(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(n=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==n?n:0)+d/2,g=(null!==(o=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==o?o:0)+f/2,y="",b="";return"bottom"===h?(y=c?m:`${v}px`,b=`${-f}px`):"top"===h?(y=c?m:`${v}px`,b=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,b=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,b=c?m:`${g}px`),{data:{x:y,y:b}}}});function t1(e){let[t,r="center"]=e.split("-");return[t,r]}let t2=e=>{let{__scopePopper:t,children:r}=e,[n,i]=(0,z.useState)(null);return(0,z.createElement)(tU,{scope:t,anchor:n,onAnchorChange:i},r)},t4=(0,z.forwardRef)((e,t)=>{var r;let{container:n=null==globalThis?void 0:null===(r=globalThis.document)||void 0===r?void 0:r.body,...i}=e;return n?en.createPortal((0,z.createElement)(ei.div,$({},i,{ref:t})),n):null}),t3=(0,z.forwardRef)((e,t)=>(0,z.createElement)(ei.span,$({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),[t5,t6]=W("Tooltip",[tB]),t8=tB(),t7="tooltip.open",[t9,re]=t5("TooltipProvider"),rt="Tooltip",[rr,rn]=t5(rt),ri="TooltipTrigger",ro=(0,z.forwardRef)((e,t)=>{let{__scopeTooltip:r,...n}=e,i=rn(ri,r),o=re(ri,r),a=t8(r),s=(0,z.useRef)(null),l=G(t,s,i.onTriggerChange),u=(0,z.useRef)(!1),c=(0,z.useRef)(!1),d=(0,z.useCallback)(()=>u.current=!1,[]);return(0,z.useEffect)(()=>()=>document.removeEventListener("pointerup",d),[d]),(0,z.createElement)(tH,$({asChild:!0},a),(0,z.createElement)(ei.button,$({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},n,{ref:l,onPointerMove:ee(e.onPointerMove,e=>{"touch"===e.pointerType||c.current||o.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:ee(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:ee(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:ee(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:ee(e.onBlur,i.onClose),onClick:ee(e.onClick,e=>{let t=0===e.detail;t&&i.onClose()})})))}),ra="TooltipPortal",[rs,rl]=t5(ra,{forceMount:void 0}),ru="TooltipContent",rc=(0,z.forwardRef)((e,t)=>{let r=rl(ru,e.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...o}=e,a=rn(ru,e.__scopeTooltip);return(0,z.createElement)(es,{present:n||a.open},a.disableHoverableContent?(0,z.createElement)(rp,$({side:i},o,{ref:t})):(0,z.createElement)(rd,$({side:i},o,{ref:t})))}),rd=(0,z.forwardRef)((e,t)=>{let r=rn(ru,e.__scopeTooltip),n=re(ru,e.__scopeTooltip),i=(0,z.useRef)(null),o=G(t,i),[a,s]=(0,z.useState)(null),{trigger:l,onClose:u}=r,c=i.current,{onPointerInTransitChange:d}=n,f=(0,z.useCallback)(()=>{s(null),d(!1)},[d]),h=(0,z.useCallback)((e,t)=>{let r=e.currentTarget,n={x:e.clientX,y:e.clientY},i=function(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,i,o)){case o:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:return null}}(n,r.getBoundingClientRect()),o="right"===i||"bottom"===i?-5:5,a="right"===i||"left"===i?{x:e.clientX+o,y:e.clientY}:{x:e.clientX,y:e.clientY+o},l=function(e){let{top:t,right:r,bottom:n,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:n},{x:i,y:n}]}(t.getBoundingClientRect()),u=function(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y?1:0),function(e){if(e.length<=1)return e.slice();let t=[];for(let r=0;r=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x))t.pop();else break}t.push(n)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let n=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x))r.pop();else break}r.push(n)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}(t)}([a,...l]);s(u),d(!0)},[d]);return(0,z.useEffect)(()=>()=>f(),[f]),(0,z.useEffect)(()=>{if(l&&c){let e=e=>h(e,c),t=e=>h(e,l);return l.addEventListener("pointerleave",e),c.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),c.removeEventListener("pointerleave",t)}}},[l,c,h,f]),(0,z.useEffect)(()=>{if(a){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=(null==l?void 0:l.contains(t))||(null==c?void 0:c.contains(t)),i=!function(e,t){let{x:r,y:n}=e,i=!1;for(let e=0,o=t.length-1;en!=u>n&&r<(l-a)*(n-s)/(u-s)+a;c&&(i=!i)}return i}(r,a);n?f():i&&(f(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[l,c,a,u,f]),(0,z.createElement)(rp,$({},e,{ref:o}))}),[rf,rh]=t5(rt,{isInside:!1}),rp=(0,z.forwardRef)((e,t)=>{let{__scopeTooltip:r,children:n,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:a,...s}=e,l=rn(ru,r),u=t8(r),{onClose:c}=l;return(0,z.useEffect)(()=>(document.addEventListener(t7,c),()=>document.removeEventListener(t7,c)),[c]),(0,z.useEffect)(()=>{if(l.trigger){let e=e=>{let t=e.target;null!=t&&t.contains(l.trigger)&&c()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[l.trigger,c]),(0,z.createElement)(ez,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:c},(0,z.createElement)(tY,$({"data-state":l.stateAttribute},u,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),(0,z.createElement)(K,null,n),(0,z.createElement)(rf,{scope:r,isInside:!0},(0,z.createElement)(t3,{id:l.contentId,role:"tooltip"},i||n))))}),rm=e=>{let{__scopeTooltip:t,children:r,open:n,defaultOpen:i=!1,onOpenChange:o,disableHoverableContent:a,delayDuration:s}=e,l=re(rt,e.__scopeTooltip),u=t8(t),[c,d]=(0,z.useState)(null),f=ed(),h=(0,z.useRef)(0),p=null!=a?a:l.disableHoverableContent,m=null!=s?s:l.delayDuration,v=(0,z.useRef)(!1),[g=!1,y]=er({prop:n,defaultProp:i,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(t7))):l.onClose(),null==o||o(e)}}),b=(0,z.useMemo)(()=>g?v.current?"delayed-open":"instant-open":"closed",[g]),x=(0,z.useCallback)(()=>{window.clearTimeout(h.current),v.current=!1,y(!0)},[y]),w=(0,z.useCallback)(()=>{window.clearTimeout(h.current),y(!1)},[y]),E=(0,z.useCallback)(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,y(!0)},m)},[m,y]);return(0,z.useEffect)(()=>()=>window.clearTimeout(h.current),[]),(0,z.createElement)(t2,u,(0,z.createElement)(rr,{scope:t,contentId:f,open:g,stateAttribute:b,trigger:c,onTriggerChange:d,onTriggerEnter:(0,z.useCallback)(()=>{l.isOpenDelayed?E():x()},[l.isOpenDelayed,E,x]),onTriggerLeave:(0,z.useCallback)(()=>{p?w():window.clearTimeout(h.current)},[w,p]),onOpen:x,onClose:w,disableHoverableContent:p},r))},rv=e=>{let{__scopeTooltip:t,forceMount:r,children:n,container:i}=e,o=rn(ra,t);return(0,z.createElement)(rs,{scope:t,forceMount:r},(0,z.createElement)(es,{present:r||o.open},(0,z.createElement)(t4,{asChild:!0,container:i},n)))},rg=(0,eV.j)([],{variants:{display:{default:"inline-block",none:""},font:{mono:"font-mono",sans:"font-sans"},color:{verySubtle:"text-gray-700 dark:text-graydark-700",subtle:"text-gray-1000 dark:text-graydark-1000",contrast:"text-gray-1100 dark:text-white",lo:"text-white dark:text-graydark-50",accent:"text-accent-1100 dark:text-accentdark-1100",red:"text-red-700 dark:text-red-400",green:"text-emerald-700 dark:text-emerald-500",amber:"text-amber-600 dark:text-amber-500",none:""},weight:{extrabold:"font-extrabold",bold:"font-bold",medium:"font-medium",semibold:"font-semibold",regular:"font-normal",normal:"font-normal",light:"font-light",none:""},size:{10:"text-xxs",12:"text-xs",14:"text-sm",16:"text-base",18:"text-lg",20:"text-xl",24:"text-2xl",30:"text-3xl",36:"text-4xl",40:"text-5xl",48:"text-5xl",60:"text-6xl",64:"text-6xl"},scaleSize:{12:"text-xxs md:text-xs",14:"text-xs md:text-sm",16:"text-sm md:text-base",18:"text-base md:text-lg",20:"text-base md:text-xl",24:"text-xl md:text-2xl",30:"text-2xl md:text-3xl",36:"text-3xl md:text-4xl",40:"text-4xl md:text-5xl",48:"text-4xl md:text-5xl",60:"text-5xl md:text-6xl",64:"text-5xl md:text-6xl"},noWrap:{true:"whitespace-nowrap"},underline:{accent:"underline underline-offset-2 decoration-2 decoration-accent-900 dark:decoration-accentdark-900",show:"underline underline-offset-2 decoration-gray-1100 dark:decoration-gray-500",hover:"hover:underline underline-offset-2 decoration-gray-1100 dark:decoration-gray-500",none:""},ellipsis:{true:"overflow-hidden text-ellipsis whitespace-nowrap"},wrapEllipsis:{true:"overflow-hidden text-ellipsis"}},defaultVariants:{display:"default",weight:"regular",font:"sans",color:"contrast",underline:"none"}}),ry=z.forwardRef((e,t)=>{let{tag:r="span",className:n,font:i,color:o,weight:a,size:s,scaleSize:l,noWrap:u,underline:c,ellipsis:d,wrapEllipsis:f,...h}=e;return(0,U.jsx)(r,{ref:t,className:(0,eV.cx)(n,rg({font:i,color:o,weight:a,size:s,scaleSize:l,underline:c,noWrap:u,ellipsis:d,wrapEllipsis:f})),...h})}),rb=z.forwardRef((e,t)=>{let{size:r="18",...n}=e;return(0,U.jsx)(ry,{tag:"p",...n,ref:t,weight:"regular",scaleSize:r,color:"subtle",className:(0,eV.cx)("leading-relaxed md:leading-relaxed",e.className)})}),rx=(0,eV.j)(["bg-white dark:bg-graydark-200","transition-shadow ease-in-out duration-300","shadow-sm hover:shadow","rounded","border","border-gray-400 dark:border-graydark-400"]),rw=z.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,U.jsx)("div",{ref:t,className:rx({className:r}),...n})});var rE=r(34406);let rj=(void 0===rE||rE.env,"production"),rS=1/60*1e3,rC="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),rk="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(rC()),rS),rA=!0,rO=!1,rT=!1,r_={delta:0,timestamp:0},rM=["read","update","preRender","render","postRender"],rR=rM.reduce((e,t)=>(e[t]=function(e){let t=[],r=[],n=0,i=!1,o=!1,a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{let l=s&&i,u=l?t:r;return o&&a.add(e),-1===u.indexOf(e)&&(u.push(e),l&&i&&(n=t.length)),e},cancel:e=>{let t=r.indexOf(e);-1!==t&&r.splice(t,1),a.delete(e)},process:l=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length)for(let r=0;rrO=!0),e),{}),rN=rM.reduce((e,t)=>{let r=rR[t];return e[t]=(e,t=!1,n=!1)=>(rO||rF(),r.schedule(e,t,n)),e},{}),rP=rM.reduce((e,t)=>(e[t]=rR[t].cancel,e),{}),rD=rM.reduce((e,t)=>(e[t]=()=>rR[t].process(r_),e),{}),rL=e=>rR[e].process(r_),rI=e=>{rO=!1,r_.delta=rA?rS:Math.max(Math.min(e-r_.timestamp,40),1),r_.timestamp=e,rT=!0,rM.forEach(rL),rT=!1,rO&&(rA=!1,rk(rI))},rF=()=>{rO=!0,rA=!0,rT||rk(rI)},rV=()=>r_,rB="undefined"!=typeof document,rU=rB?z.useLayoutEffect:z.useEffect;function rz(){let e=(0,z.useRef)(!1);return rU(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let rH=(0,z.createContext)(null);function r$(e){let t=(0,z.useRef)(null);return null===t.current&&(t.current=e()),t.current}class rZ extends z.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function rW({children:e,isPresent:t}){let r=(0,z.useId)(),n=(0,z.useRef)(null),i=(0,z.useRef)({width:0,height:0,top:0,left:0});return(0,z.useInsertionEffect)(()=>{let{width:e,height:o,top:a,left:s}=i.current;if(t||!n.current||!e||!o)return;n.current.dataset.motionPopId=r;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` + [data-motion-pop-id="${r}"] { + position: absolute !important; + width: ${e}px !important; + height: ${o}px !important; + top: ${a}px !important; + left: ${s}px !important; + } + `),()=>{document.head.removeChild(l)}},[t]),z.createElement(rZ,{isPresent:t,childRef:n,sizeRef:i},z.cloneElement(e,{ref:n}))}let rq=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:o,mode:a})=>{let s=r$(rG),l=(0,z.useId)(),u=(0,z.useMemo)(()=>({id:l,initial:t,isPresent:r,custom:i,onExitComplete:e=>{for(let t of(s.set(e,!0),s.values()))if(!t)return;n&&n()},register:e=>(s.set(e,!1),()=>s.delete(e))}),o?void 0:[r]);return(0,z.useMemo)(()=>{s.forEach((e,t)=>s.set(t,!1))},[r]),z.useEffect(()=>{r||s.size||!n||n()},[r]),"popLayout"===a&&(e=z.createElement(rW,{isPresent:r},e)),z.createElement(rH.Provider,{value:u},e)};function rG(){return new Map}let rY=(0,z.createContext)({});function rX(e){return(0,z.useEffect)(()=>()=>e(),[])}let rK=new Set;function rJ(e,t,r){e||rK.has(t)||(console.warn(t),r&&console.warn(r),rK.add(t))}let rQ=e=>e.key||"",r0=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",rJ(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=function(){let e=rz(),[t,r]=(0,z.useState)(0),n=(0,z.useCallback)(()=>{e.current&&r(t+1)},[t]),i=(0,z.useCallback)(()=>rN.postRender(n),[n]);return[i,t]}(),l=(0,z.useContext)(rY).forceRender;l&&(s=l);let u=rz(),c=function(e){let t=[];return z.Children.forEach(e,e=>{(0,z.isValidElement)(e)&&t.push(e)}),t}(e),d=c,f=new Set,h=(0,z.useRef)(d),p=(0,z.useRef)(new Map).current,m=(0,z.useRef)(!0);if(rU(()=>{m.current=!1,function(e,t){e.forEach(e=>{let r=rQ(e);t.set(r,e)})}(c,p),h.current=d}),rX(()=>{m.current=!0,p.clear(),f.clear()}),m.current)return z.createElement(z.Fragment,null,d.map(e=>z.createElement(rq,{key:rQ(e),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:o,mode:a},e)));d=[...d];let v=h.current.map(rQ),g=c.map(rQ),y=v.length;for(let e=0;e{if(-1!==g.indexOf(e))return;let r=p.get(e);if(!r)return;let i=v.indexOf(e);d.splice(i,0,z.createElement(rq,{key:rQ(r),isPresent:!1,onExitComplete:()=>{p.delete(e),f.delete(e);let t=h.current.findIndex(t=>t.key===e);if(h.current.splice(t,1),!f.size){if(h.current=c,!1===u.current)return;s(),n&&n()}},custom:t,presenceAffectsLayout:o,mode:a},r))}),d=d.map(e=>{let t=e.key;return f.has(t)?e:z.createElement(rq,{key:rQ(e),isPresent:!0,presenceAffectsLayout:o,mode:a},e)}),"production"!==rj&&"wait"===a&&d.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.'),z.createElement(z.Fragment,null,f.size?d:d.map(e=>(0,z.cloneElement)(e)))},r1=(0,z.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),r2=(0,z.createContext)({}),r4=(0,z.createContext)({strict:!1});function r3(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function r5(e){return"string"==typeof e||Array.isArray(e)}function r6(e){return"object"==typeof e&&"function"==typeof e.start}let r8=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function r7(e){return r6(e.animate)||r8.some(t=>r5(e[t]))}function r9(e){return!!(r7(e)||e.variants)}function ne(e){return Array.isArray(e)?e.join(" "):e}let nt=e=>({isEnabled:t=>e.some(e=>!!t[e])}),nr={measureLayout:nt(["layout","layoutId","drag"]),animation:nt(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:nt(["exit"]),drag:nt(["drag","dragControls"]),focus:nt(["whileFocus"]),hover:nt(["whileHover","onHoverStart","onHoverEnd"]),tap:nt(["whileTap","onTap","onTapStart","onTapCancel"]),pan:nt(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:nt(["whileInView","onViewportEnter","onViewportLeave"])},nn={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ni=1;class no extends z.Component{getSnapshotBeforeUpdate(){let{visualElement:e,props:t}=this.props;return e&&e.setProps(t),null}componentDidUpdate(){}render(){return this.props.children}}let na=(0,z.createContext)({}),ns=Symbol.for("motionComponentSymbol"),nl=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function nu(e){if("string"!=typeof e||e.includes("-"));else if(nl.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let nc={},nd=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],nf=new Set(nd);function nh(e,{layout:t,layoutId:r}){return nf.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!nc[e]||"opacity"===e)}let np=e=>!!(null==e?void 0:e.getVelocity),nm={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nv=(e,t)=>nd.indexOf(e)-nd.indexOf(t);function ng(e){return e.startsWith("--")}let ny=(e,t)=>t&&"number"==typeof e?t.transform(e):e,nb=(e,t)=>r=>Math.max(Math.min(r,t),e),nx=e=>e%1?Number(e.toFixed(5)):e,nw=/(-)?([\d]*\.?[\d])+/g,nE=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,nj=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function nS(e){return"string"==typeof e}let nC=e=>({test:t=>nS(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),nk=nC("deg"),nA=nC("%"),nO=nC("px"),nT=nC("vh"),n_=nC("vw"),nM=Object.assign(Object.assign({},nA),{parse:e=>nA.parse(e)/100,transform:e=>nA.transform(100*e)}),nR={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},nN=Object.assign(Object.assign({},nR),{transform:nb(0,1)}),nP=Object.assign(Object.assign({},nR),{default:1}),nD={...nR,transform:Math.round},nL={borderWidth:nO,borderTopWidth:nO,borderRightWidth:nO,borderBottomWidth:nO,borderLeftWidth:nO,borderRadius:nO,radius:nO,borderTopLeftRadius:nO,borderTopRightRadius:nO,borderBottomRightRadius:nO,borderBottomLeftRadius:nO,width:nO,maxWidth:nO,height:nO,maxHeight:nO,size:nO,top:nO,right:nO,bottom:nO,left:nO,padding:nO,paddingTop:nO,paddingRight:nO,paddingBottom:nO,paddingLeft:nO,margin:nO,marginTop:nO,marginRight:nO,marginBottom:nO,marginLeft:nO,rotate:nk,rotateX:nk,rotateY:nk,rotateZ:nk,scale:nP,scaleX:nP,scaleY:nP,scaleZ:nP,skew:nk,skewX:nk,skewY:nk,distance:nO,translateX:nO,translateY:nO,translateZ:nO,x:nO,y:nO,z:nO,perspective:nO,transformPerspective:nO,opacity:nN,originX:nM,originY:nM,originZ:nO,zIndex:nD,fillOpacity:nN,strokeOpacity:nN,numOctaves:nD};function nI(e,t,r,n){let{style:i,vars:o,transform:a,transformKeys:s,transformOrigin:l}=e;s.length=0;let u=!1,c=!1,d=!0;for(let e in t){let r=t[e];if(ng(e)){o[e]=r;continue}let n=nL[e],f=ny(r,n);if(nf.has(e)){if(u=!0,a[e]=f,s.push(e),!d)continue;r!==(n.default||0)&&(d=!1)}else e.startsWith("origin")?(c=!0,l[e]=f):i[e]=f}if(!t.transform&&(u||n?i.transform=function({transform:e,transformKeys:t},{enableHardwareAcceleration:r=!0,allowTransformNone:n=!0},i,o){let a="";for(let r of(t.sort(nv),t))a+=`${nm[r]||r}(${e[r]}) `;return r&&!e.z&&(a+="translateZ(0)"),a=a.trim(),o?a=o(e,i?"":a):n&&i&&(a="none"),a}(e,r,d,n):i.transform&&(i.transform="none")),c){let{originX:e="50%",originY:t="50%",originZ:r=0}=l;i.transformOrigin=`${e} ${t} ${r}`}}let nF=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function nV(e,t,r){for(let n in t)np(t[n])||nh(n,r)||(e[n]=t[n])}function nB(e,t,r){let n={},i=function(e,t,r){let n=e.style||{},i={};return nV(i,n,e),Object.assign(i,function({transformTemplate:e},t,r){return(0,z.useMemo)(()=>{let n=nF();return nI(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}(e,t,r)),e.transformValues?e.transformValues(i):i}(e,t,r);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),n.style=i,n}let nU=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll","whileInView","onViewportEnter","onViewportLeave","viewport","whileTap","onTap","onTapStart","onTapCancel","animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView","onPan","onPanStart","onPanSessionStart","onPanEnd"]);function nz(e){return nU.has(e)}let nH=e=>!nz(e);try{(l=require("@emotion/is-prop-valid").default)&&(nH=e=>e.startsWith("on")?!nz(e):l(e))}catch(e){}function n$(e,t,r){return"string"==typeof e?e:nO.transform(t+r*e)}let nZ={offset:"stroke-dashoffset",array:"stroke-dasharray"},nW={offset:"strokeDashoffset",array:"strokeDasharray"};function nq(e,{attrX:t,attrY:r,originX:n,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:s=0,...l},u,c){nI(e,l,u,c),e.attrs=e.style,e.style={};let{attrs:d,style:f,dimensions:h}=e;d.transform&&(h&&(f.transform=d.transform),delete d.transform),h&&(void 0!==n||void 0!==i||f.transform)&&(f.transformOrigin=function(e,t,r){let n=n$(t,e.x,e.width),i=n$(r,e.y,e.height);return`${n} ${i}`}(h,void 0!==n?n:.5,void 0!==i?i:.5)),void 0!==t&&(d.x=t),void 0!==r&&(d.y=r),void 0!==o&&function(e,t,r=1,n=0,i=!0){e.pathLength=1;let o=i?nZ:nW;e[o.offset]=nO.transform(-n);let a=nO.transform(t),s=nO.transform(r);e[o.array]=`${a} ${s}`}(d,o,a,s,!1)}let nG=()=>({...nF(),attrs:{}});function nY(e,t){let r=(0,z.useMemo)(()=>{let r=nG();return nq(r,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};nV(t,e.style,e),r.style={...t,...r.style}}return r}let nX=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function nK(e,{style:t,vars:r},n,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(n)),r)e.style.setProperty(o,r[o])}let nJ=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function nQ(e,t,r,n){for(let r in nK(e,t,void 0,n),t.attrs)e.setAttribute(nJ.has(r)?r:nX(r),t.attrs[r])}function n0(e){let{style:t}=e,r={};for(let n in t)(np(t[n])||nh(n,e))&&(r[n]=t[n]);return r}function n1(e){let t=n0(e);for(let r in e)if(np(e[r])){let n="x"===r||"y"===r?"attr"+r.toUpperCase():r;t[n]=e[r]}return t}function n2(e,t,r,n={},i={}){return"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),t}let n4=e=>Array.isArray(e),n3=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),n5=e=>n4(e)?e[e.length-1]||0:e;function n6(e){let t=np(e)?e.get():e;return n3(t)?t.toValue():t}let n8=e=>(t,r)=>{let n=(0,z.useContext)(r2),i=(0,z.useContext)(rH),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){let a={latestValues:function(e,t,r,n){let i={},o=n(e);for(let e in o)i[e]=n6(o[e]);let{initial:a,animate:s}=e,l=r7(e),u=r9(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!r&&!1===r.initial;c=c||!1===a;let d=c?s:a;if(d&&"boolean"!=typeof d&&!r6(d)){let t=Array.isArray(d)?d:[d];t.forEach(t=>{let r=n2(e,t);if(!r)return;let{transitionEnd:n,transition:o,...a}=r;for(let e in a){let t=a[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let e in n)i[e]=n[e]})}return i}(n,i,o,e),renderState:t()};return r&&(a.mount=e=>r(n,e,a)),a})(e,t,n,i);return r?o():r$(o)},n7={useVisualState:n8({scrapeMotionValuesFromProps:n1,createRenderState:nG,onMount:(e,t,{renderState:r,latestValues:n})=>{try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}nq(r,n,{enableHardwareAcceleration:!1},e.transformTemplate),nQ(t,r)}})},n9={useVisualState:n8({scrapeMotionValuesFromProps:n0,createRenderState:nF})};function ie(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function it(e,t,r,n){(0,z.useEffect)(()=>{let i=e.current;if(r&&i)return ie(i,t,r,n)},[e,t,r,n])}function ir(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function ii(e){let t=!!e.touches;return t}(u=O||(O={})).Animate="animate",u.Hover="whileHover",u.Tap="whileTap",u.Drag="whileDrag",u.Focus="whileFocus",u.InView="whileInView",u.Exit="exit";let io={pageX:0,pageY:0};function ia(e,t="page"){return{point:ii(e)?function(e,t="page"){let r=e.touches[0]||e.changedTouches[0],n=r||io;return{x:n[t+"X"],y:n[t+"Y"]}}(e,t):function(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}(e,t)}}let is=(e,t=!1)=>{let r=t=>e(t,ia(t));return t?e=>{let t=e instanceof MouseEvent,n=!t||t&&0===e.button;n&&r(e)}:r},il=()=>rB&&null===window.onpointerdown,iu=()=>rB&&null===window.ontouchstart,ic=()=>rB&&null===window.onmousedown,id={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},ih={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function ip(e){if(il());else if(iu())return ih[e];else if(ic())return id[e];return e}function im(e,t,r,n){return ie(e,ip(t),is(r,"pointerdown"===t),n)}function iv(e,t,r,n){return it(e,ip(t),r&&is(r,"pointerdown"===t),n)}function ig(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let iy=ig("dragHorizontal"),ib=ig("dragVertical");function ix(e){let t=!1;if("y"===e)t=ib();else if("x"===e)t=iy();else{let e=iy(),r=ib();e&&r?t=()=>{e(),r()}:(e&&e(),r&&r())}return t}function iw(){let e=ix(!0);return!e||(e(),!1)}function iE(e,t,r){return(n,i)=>{!(!ir(n)||iw())&&(e.animationState&&e.animationState.setActive(O.Hover,t),r&&r(n,i))}}let ij=(e,t)=>!!t&&(e===t||ij(e,t.parentElement)),iS=(e,t)=>r=>t(e(r)),iC=(...e)=>e.reduce(iS),ik=new WeakMap,iA=new WeakMap,iO=e=>{let t=ik.get(e.target);t&&t(e)},iT=e=>{e.forEach(iO)},i_={some:0,all:1};function iM(e,t,r,{root:n,margin:i,amount:o="some",once:a}){(0,z.useEffect)(()=>{if(!e||!r.current)return;let s={root:null==n?void 0:n.current,rootMargin:i,threshold:"number"==typeof o?o:i_[o]};return function(e,t,r){let n=function({root:e,...t}){let r=e||document;iA.has(r)||iA.set(r,{});let n=iA.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(iT,{root:e,...t})),n[i]}(t);return ik.set(e,r),n.observe(e),()=>{ik.delete(e),n.unobserve(e)}}(r.current,s,e=>{let{isIntersecting:n}=e;if(t.isInView===n||(t.isInView=n,a&&!n&&t.hasEnteredView))return;n&&(t.hasEnteredView=!0),r.animationState&&r.animationState.setActive(O.InView,n);let i=r.getProps(),o=n?i.onViewportEnter:i.onViewportLeave;o&&o(e)})},[e,n,i,o])}function iR(e,t,r,{fallback:n=!0}){(0,z.useEffect)(()=>{e&&n&&("production"!==rj&&rJ(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;let{onViewportEnter:e}=r.getProps();e&&e(null),r.animationState&&r.animationState.setActive(O.InView,!0)}))},[e])}let iN=e=>t=>(e(t),null),iP={inView:iN(function({visualElement:e,whileInView:t,onViewportEnter:r,onViewportLeave:n,viewport:i={}}){let o=(0,z.useRef)({hasEnteredView:!1,isInView:!1}),a=!!(t||r||n);i.once&&o.current.hasEnteredView&&(a=!1);let s="undefined"==typeof IntersectionObserver?iR:iM;s(a,o.current,e,i)}),tap:iN(function({onTap:e,onTapStart:t,onTapCancel:r,whileTap:n,visualElement:i}){let o=e||t||r||n,a=(0,z.useRef)(!1),s=(0,z.useRef)(null),l={passive:!(t||e||r||h)};function u(){s.current&&s.current(),s.current=null}function c(){return u(),a.current=!1,i.animationState&&i.animationState.setActive(O.Tap,!1),!iw()}function d(t,n){c()&&(ij(i.current,t.target)?e&&e(t,n):r&&r(t,n))}function f(e,t){c()&&r&&r(e,t)}function h(e,r){u(),!a.current&&(a.current=!0,s.current=iC(im(window,"pointerup",d,l),im(window,"pointercancel",f,l)),i.animationState&&i.animationState.setActive(O.Tap,!0),t&&t(e,r))}iv(i,"pointerdown",o?h:void 0,l),rX(u)}),focus:iN(function({whileFocus:e,visualElement:t}){let{animationState:r}=t;it(t,"focus",e?()=>{r&&r.setActive(O.Focus,!0)}:void 0),it(t,"blur",e?()=>{r&&r.setActive(O.Focus,!1)}:void 0)}),hover:iN(function({onHoverStart:e,onHoverEnd:t,whileHover:r,visualElement:n}){iv(n,"pointerenter",e||r?iE(n,!0,e):void 0,{passive:!e}),iv(n,"pointerleave",t||r?iE(n,!1,t):void 0,{passive:!t})})};function iD(){let e=(0,z.useContext)(rH);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:r,register:n}=e,i=(0,z.useId)();return(0,z.useEffect)(()=>n(i),[]),!t&&r?[!1,()=>r&&r(i)]:[!0]}function iL(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;nt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}var iF=function(){},iV=function(){};let iB=(e,t,r)=>Math.min(Math.max(r,e),t);function iU(e,t){return e*Math.sqrt(1-t*t)}let iz=["duration","bounce"],iH=["stiffness","damping","mass"];function i$(e,t){return t.some(t=>void 0!==e[t])}function iZ(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:i}=e,o=iI(e,["from","to","restSpeed","restDelta"]);let a={done:!1,value:t},{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!i$(e,iH)&&i$(e,iz)){let r=function({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;iF(e<=1e4,"Spring duration must be 10 seconds or less");let a=1-t;a=iB(.05,1,a),e=iB(.01,10,e/1e3),a<1?(i=t=>{let n=t*a,i=n*e,o=iU(t,a),s=Math.exp(-i);return .001-(n-r)/o*s},o=t=>{let n=t*a,o=n*e,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-o),u=iU(Math.pow(t,2),a),c=-i(t)+.001>0?-1:1;return c*((o*r+r-s)*l)/u}):(i=t=>{let n=Math.exp(-t*e),i=(t-r)*e+1;return -.001+n*i},o=t=>{let n=Math.exp(-t*e),i=(r-t)*(e*e);return n*i});let s=5/e,l=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(i,o,s);if(e*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(l,2)*n;return{stiffness:t,damping:2*a*Math.sqrt(n*t),duration:e}}}(e);(t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(o),h=iW,p=iW;function m(){let e=c?-(c/1e3):0,n=r-t,o=l/(2*Math.sqrt(s*u)),a=Math.sqrt(s/u)/1e3;if(void 0===i&&(i=Math.min(Math.abs(r-t)/100,.4)),o<1){let t=iU(a,o);h=i=>{let s=Math.exp(-o*a*i);return r-s*((e+o*a*n)/t*Math.sin(t*i)+n*Math.cos(t*i))},p=r=>{let i=Math.exp(-o*a*r);return o*a*i*(Math.sin(t*r)*(e+o*a*n)/t+n*Math.cos(t*r))-i*(Math.cos(t*r)*(e+o*a*n)-t*n*Math.sin(t*r))}}else if(1===o)h=t=>r-Math.exp(-a*t)*(n+(e+a*n)*t);else{let t=a*Math.sqrt(o*o-1);h=i=>{let s=Math.exp(-o*a*i),l=Math.min(t*i,300);return r-s*((e+o*a*n)*Math.sinh(l)+t*n*Math.cosh(l))/t}}}return m(),{next:e=>{let t=h(e);if(f)a.done=e>=d;else{let o=1e3*p(e),s=Math.abs(o)<=n,l=Math.abs(r-t)<=i;a.done=s&&l}return a.value=a.done?r:t,a},flipTarget:()=>{c=-c,[t,r]=[r,t],m()}}}iZ.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let iW=e=>0,iq=(e,t,r)=>{let n=t-e;return 0===n?1:(r-e)/n},iG=(e,t,r)=>-r*e+r*t+e,iY=(e,t)=>r=>!!(nS(r)&&nj.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),iX=(e,t,r)=>n=>{if(!nS(n))return n;let[i,o,a,s]=n.match(nw);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},iK=nb(0,255),iJ=Object.assign(Object.assign({},nR),{transform:e=>Math.round(iK(e))}),iQ={test:iY("rgb","red"),parse:iX("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+iJ.transform(e)+", "+iJ.transform(t)+", "+iJ.transform(r)+", "+nx(nN.transform(n))+")"},i0={test:iY("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),i=e.substr(4,1),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}},transform:iQ.transform},i1={test:iY("hsl","hue"),parse:iX("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+nA.transform(nx(t))+", "+nA.transform(nx(r))+", "+nx(nN.transform(n))+")"};function i2(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function i4({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,o=0,a=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;i=i2(s,n,e+1/3),o=i2(s,n,e),a=i2(s,n,e-1/3)}else i=o=a=r;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:n}}let i3=(e,t,r)=>{let n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},i5=[i0,iQ,i1],i6=e=>i5.find(t=>t.test(e)),i8=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,i7=(e,t)=>{let r=i6(e),n=i6(t);iV(!!r,i8(e)),iV(!!n,i8(t));let i=r.parse(e),o=n.parse(t);r===i1&&(i=i4(i),r=iQ),n===i1&&(o=i4(o),n=iQ);let a=Object.assign({},i);return e=>{for(let t in a)"alpha"!==t&&(a[t]=i3(i[t],o[t],e));return a.alpha=iG(i.alpha,o.alpha,e),r.transform(a)}},i9={test:e=>iQ.test(e)||i0.test(e)||i1.test(e),parse:e=>iQ.test(e)?iQ.parse(e):i1.test(e)?i1.parse(e):i0.parse(e),transform:e=>nS(e)?e:e.hasOwnProperty("red")?iQ.transform(e):i1.transform(e)},oe="${c}",ot="${n}";function or(e){"number"==typeof e&&(e=`${e}`);let t=[],r=0,n=e.match(nE);n&&(r=n.length,e=e.replace(nE,oe),t.push(...n.map(i9.parse)));let i=e.match(nw);return i&&(e=e.replace(nw,ot),t.push(...i.map(nR.parse))),{values:t,numColors:r,tokenised:e}}function on(e){return or(e).values}function oi(e){let{values:t,numColors:r,tokenised:n}=or(e),i=t.length;return e=>{let t=n;for(let n=0;n"number"==typeof e?0:e,oa={test:function(e){var t,r,n,i;return isNaN(e)&&nS(e)&&(null!==(r=null===(t=e.match(nw))||void 0===t?void 0:t.length)&&void 0!==r?r:0)+(null!==(i=null===(n=e.match(nE))||void 0===n?void 0:n.length)&&void 0!==i?i:0)>0},parse:on,createTransformer:oi,getAnimatableNone:function(e){let t=on(e),r=oi(e);return r(t.map(oo))}},os=e=>"number"==typeof e;function ol(e,t){return os(e)?r=>iG(e,t,r):i9.test(e)?i7(e,t):of(e,t)}let ou=(e,t)=>{let r=[...e],n=r.length,i=e.map((e,r)=>ol(e,t[r]));return e=>{for(let t=0;t{let r=Object.assign(Object.assign({},e),t),n={};for(let i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=ol(e[i],t[i]));return e=>{for(let t in n)r[t]=n[t](e);return r}};function od(e){let t=oa.parse(e),r=t.length,n=0,i=0,o=0;for(let e=0;e{let r=oa.createTransformer(t),n=od(e),i=od(t),o=n.numHSL===i.numHSL&&n.numRGB===i.numRGB&&n.numNumbers>=i.numNumbers;return o?iC(ou(n.parsed,i.parsed),r):(iF(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),r=>`${r>0?t:e}`)},oh=(e,t)=>r=>iG(e,t,r);function op(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let o=e.length;iV(o===t.length,"Both input and output ranges must be the same length"),iV(!n||!Array.isArray(n)||n.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let a=function(e,t,r){var n;let i=[],o=r||("number"==typeof(n=e[0])?oh:"string"==typeof n?i9.test(n)?i7:of:Array.isArray(n)?ou:"object"==typeof n?oc:void 0),a=e.length-1;for(let r=0;rr(iq(e,t,n))}(e,a):function(e,t){let r=e.length,n=r-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[n]&&(o=n-1,a=!0),!a){let t=1;for(;ti)&&t!==n;t++);o=t-1}let s=iq(e[o],e[o+1],i);return t[o](s)}}(e,a);return r?t=>s(iB(e[0],e[o-1],t)):s}let om=e=>t=>1-e(1-t),ov=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,og=e=>t=>t*t*((e+1)*t-e),oy=4/11,ob=8/11,ox=e=>e,ow=e=>Math.pow(e,2),oE=om(ow),oj=ov(ow),oS=e=>1-Math.sin(Math.acos(e)),oC=om(oS),ok=ov(oC),oA=og(1.525),oO=om(oA),oT=ov(oA),o_=(e=>{let t=og(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(0),oM=4356/361,oR=35442/1805,oN=16061/1805,oP=e=>{if(1===e||0===e)return e;let t=e*e;return e0!==r?r/(t-1):0)}(a)).map(e=>e*i);function l(){return op(s,a,{ease:Array.isArray(r)?r:a.map(()=>r||oj).splice(0,a.length-1)})}let u=l();return{next:e=>(o.value=u(e),o.done=e>=i,o),flipTarget:()=>{a.reverse(),u=l()}}}let oI={keyframes:oL,spring:iZ,decay:function({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:o}){let a={done:!1,value:t},s=r*e,l=t+s,u=void 0===o?l:o(l);return u!==l&&(s=u-t),{next:e=>{let t=-s*Math.exp(-e/n);return a.done=!(t>i||t<-i),a.value=a.done?u:u+t,a},flipTarget:()=>{}}}};function oF(e,t,r=0){return e-t-r}let oV=e=>{let t=({delta:t})=>e(t);return{start:()=>rN.update(t,!0),stop:()=>rP.update(t)}};function oB(e){let t,r,n;var i,{from:o,autoplay:a=!0,driver:s=oV,elapsed:l=0,repeat:u=0,repeatType:c="loop",repeatDelay:d=0,onPlay:f,onStop:h,onComplete:p,onRepeat:m,onUpdate:v}=e,g=iI(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:y}=g,b=0,x=g.duration,w=!1,E=!0,j=function(e){if(Array.isArray(e.to))return oL;if(oI[e.type])return oI[e.type];let t=new Set(Object.keys(e));if(t.has("ease")||t.has("duration")&&!t.has("dampingRatio"));else if(t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta"))return iZ;return oL}(g);(null===(i=j.needsInterpolation)||void 0===i?void 0:i.call(j,o,y))&&(n=op([0,100],[o,y],{clamp:!1}),o=0,y=100);let S=j(Object.assign(Object.assign({},g),{from:o,to:y}));return a&&(null==f||f(),(t=s(function(e){if(E||(e=-e),l+=e,!w){let e=S.next(Math.max(0,l));r=e.value,n&&(r=n(r)),w=E?e.done:l<=0}if(null==v||v(r),w){if(0===b&&(null!=x||(x=l)),b=o+d:i<=-d)&&(b++,"reverse"===c?l=function(e,t,r=0,n=!0){return n?oF(t+-e,t,r):t-(e-t)+r}(l,x,d,E=b%2==0):(l=oF(l,x,d),"mirror"===c&&S.flipTarget()),w=!1,m&&m())}else t.stop(),p&&p()}})).start()),{stop:()=>{null==h||h(),t.stop()}}}let oU=e=>1e3*e,oz=(e,t)=>1-3*t+3*e,oH=(e,t)=>3*t-6*e,o$=e=>3*e,oZ=(e,t,r)=>((oz(t,r)*e+oH(t,r))*e+o$(t))*e,oW=(e,t,r)=>3*oz(t,r)*e*e+2*oH(t,r)*e+o$(t),oq={linear:ox,easeIn:ow,easeInOut:oj,easeOut:oE,circIn:oS,circInOut:ok,circOut:oC,backIn:oA,backInOut:oT,backOut:oO,anticipate:o_,bounceIn:oD,bounceInOut:e=>e<.5?.5*(1-oP(1-2*e)):.5*oP(2*e-1)+.5,bounceOut:oP},oG=e=>{if(Array.isArray(e)){iV(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,i]=e;return function(e,t,r,n){if(e===t&&r===n)return ox;let i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=oZ(.1*t,e,r);return o=>0===o||1===o?o:oZ(function(t){let n=0,o=1;for(;10!==o&&i[o]<=t;++o)n+=.1;--o;let a=(t-i[o])/(i[o+1]-i[o]),s=n+.1*a,l=oW(s,e,r);return l>=.001?function(e,t,r,n){for(let i=0;i<8;++i){let i=oW(t,r,n);if(0===i)break;let o=oZ(t,r,n)-e;t-=o/i}return t}(t,s,e,r):0===l?s:function(e,t,r,n,i){let o,a;let s=0;do(o=oZ(a=t+(r-t)/2,n,i)-e)>0?r=a:t=a;while(Math.abs(o)>1e-7&&++s<10);return a}(t,n,n+.1,e,r)}(o),t,n)}(t,r,n,i)}return"string"==typeof e?(iV(void 0!==oq[e],`Invalid easing type '${e}'`),oq[e]):e},oY=e=>Array.isArray(e)&&"number"!=typeof e[0],oX=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&oa.test(t)&&!t.startsWith("url(")),oK=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),oJ=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),oQ=()=>({type:"keyframes",ease:"linear",duration:.3}),o0=e=>({type:"keyframes",duration:.8,values:e}),o1={x:oK,y:oK,z:oK,rotate:oK,rotateX:oK,rotateY:oK,rotateZ:oK,scaleX:oJ,scaleY:oJ,scale:oJ,opacity:oQ,backgroundColor:oQ,color:oQ,default:oJ},o2=(e,t)=>({to:t,...(n4(t)?o0:o1[e]||o1.default)(t)}),o4=new Set(["brightness","contrast","saturate","opacity"]);function o3(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(nw)||[];if(!n)return e;let i=r.replace(n,""),o=o4.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}let o5=/([a-z-]*)\(.*?\)/g,o6=Object.assign(Object.assign({},oa),{getAnimatableNone:e=>{let t=e.match(o5);return t?t.map(o3).join(" "):e}}),o8={...nL,color:i9,backgroundColor:i9,outlineColor:i9,fill:i9,stroke:i9,borderColor:i9,borderTopColor:i9,borderRightColor:i9,borderBottomColor:i9,borderLeftColor:i9,filter:o6,WebkitFilter:o6},o7=e=>o8[e];function o9(e,t){var r;let n=o7(e);return n!==o6&&(n=oa),null===(r=n.getAnimatableNone)||void 0===r?void 0:r.call(n,t)}let ae={current:!1};function at(e,t){let r=performance.now(),n=({timestamp:i})=>{let o=i-r;o>=t&&(rP.read(n),e(o-t))};return rN.read(n,!0),()=>rP.read(n)}let ar=!1;function an(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function ai(e){return"number"==typeof e?0:o9("",e)}function ao(e,t){return e[t]||e.default||e}function aa(e,t,r,n={}){return ae.current&&(n={type:!1}),t.start(i=>{let o,a;let s=function(e,t,r,n,i){let o=ao(n,e)||{},a=void 0!==o.from?o.from:t.get(),s=oX(e,r);"none"===a&&s&&"string"==typeof r?a=o9(e,r):an(a)&&"string"==typeof r?a=ai(r):!Array.isArray(r)&&an(r)&&"string"==typeof a&&(r=ai(a));let l=oX(e,a);return iF(l===s,`You are trying to animate ${e} from "${a}" to "${r}". ${a} is not an animatable value - to enable this animation set ${a} to a value animatable to ${r} via the \`style\` property.`),l&&s&&!1!==o.type?function(){var n;let s={from:a,to:r,velocity:t.getVelocity(),onComplete:i,onUpdate:e=>t.set(e)};return"inertia"===o.type||"decay"===o.type?function({from:e=0,velocity:t=0,min:r,max:n,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:f,onStop:h}){let p;function m(e){return void 0!==r&&en}function v(e){return void 0===r?n:void 0===n?r:Math.abs(r-e){var r;null==d||d(t),null===(r=e.onUpdate)||void 0===r||r.call(e,t)},onComplete:f,onStop:h}))}function y(e){g(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:l},e))}if(m(e))y({from:e,velocity:t,to:v(e)});else{let n,a,s=i*t+e;void 0!==u&&(s=u(s));let c=v(s),d=c===r?-1:1;g({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:l,modifyTarget:u,onUpdate:m(s)?e=>{var r;n=a,a=e,t=(r=rV().delta)?(e-n)*(1e3/r):0,(1===d&&e>c||-1===d&&enull==p?void 0:p.stop()}}({...s,...o}):oB({...(n=o,Array.isArray(s.to)&&void 0===n.duration&&(n.duration=.8),Array.isArray(s.to)&&null===s.to[0]&&(s.to=[...s.to],s.to[0]=s.from),!function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,...u}){return!!Object.keys(u).length}(n)&&(n={...n,...o2(e,s.to)}),{...s,...function({ease:e,times:t,yoyo:r,flip:n,loop:i,...o}){let a={...o};return t&&(a.offset=t),o.duration&&(a.duration=oU(o.duration)),o.repeatDelay&&(a.repeatDelay=oU(o.repeatDelay)),e&&(a.ease=oY(e)?e.map(oG):oG(e)),"tween"===o.type&&(a.type="keyframes"),(r||i||n)&&(iF(!ar,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),ar=!0,r?a.repeatType="reverse":i?a.repeatType="loop":n&&(a.repeatType="mirror"),a.repeat=i||r||n||o.repeat),"spring"!==o.type&&(a.type="keyframes"),a}(n)}),onUpdate:e=>{s.onUpdate(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{s.onComplete(),o.onComplete&&o.onComplete()}})}:function(){let e=n5(r);return t.set(e),i(),o.onUpdate&&o.onUpdate(e),o.onComplete&&o.onComplete(),{stop:()=>{}}}}(e,t,r,n,i),l=function(e,t){var r,n;let i=ao(e,t)||{};return null!==(n=null!==(r=i.delay)&&void 0!==r?r:e.delay)&&void 0!==n?n:0}(n,e),u=()=>o=s();return l?a=at(u,oU(l)):u(),()=>{a&&a(),o&&o.stop()}})}let as=e=>/^\-?\d*\.?\d+$/.test(e),al=e=>/^0[^.\s]+$/.test(e);function au(e,t){-1===e.indexOf(t)&&e.push(t)}function ac(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}class ad{constructor(){this.subscriptions=[]}add(e){return au(this.subscriptions,e),()=>ac(this.subscriptions,e)}notify(e,t,r){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](e,t,r);else for(let i=0;i!isNaN(parseFloat(e));class ah{constructor(e){this.version="7.6.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new ad,this.velocityUpdateSubscribers=new ad,this.renderSubscribers=new ad,this.canTrackVelocity=!1,this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:r,timestamp:n}=rV();this.lastUpdated!==n&&(this.timeDelta=r,this.lastUpdated=n,rN.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),t&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>rN.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=af(this.current)}onChange(e){return this.updateSubscribers.add(e)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(e){return e(this.get()),this.renderSubscribers.add(e)}attach(e){this.passiveEffect=e}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){var e,t;return this.canTrackVelocity?(e=parseFloat(this.current)-parseFloat(this.prev),(t=this.timeDelta)?e*(1e3/t):0):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.stopAnimation=e(t)}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function ap(e){return new ah(e)}let am=e=>t=>t.test(e),av=[nR,nO,nA,nk,n_,nT,{test:e=>"auto"===e,parse:e=>e}],ag=e=>av.find(am(e)),ay=[...av,i9,oa],ab=e=>ay.find(am(e));function ax(e,t,r){let n=e.getProps();return n2(n,t,void 0!==r?r:n.custom,function(e){let t={};return e.values.forEach((e,r)=>t[r]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,r)=>t[r]=e.getVelocity()),t}(e))}function aw(e){return!!(np(e)&&e.add)}function aE(e,t,r={}){var n;let i=ax(e,t,r.custom),{transition:o=e.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(o=r.transitionOverride);let a=i?()=>aj(e,i,r):()=>Promise.resolve(),s=(null===(n=e.variantChildren)||void 0===n?void 0:n.size)?(n=0)=>{let{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,r=0,n=0,i=1,o){let a=[],s=(e.variantChildren.size-1)*n,l=1===i?(e=0)=>e*n:(e=0)=>s-e*n;return Array.from(e.variantChildren).sort(aS).forEach((e,n)=>{a.push(aE(e,t,{...o,delay:r+l(n)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,i+n,a,s,r)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([a(),s(r.delay)]);{let[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then(t)}}function aj(e,t,{delay:r=0,transitionOverride:n,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t),u=e.getValue("willChange");n&&(a=n);let c=[],d=i&&(null===(o=e.animationState)||void 0===o?void 0:o.getState()[i]);for(let t in l){let n=e.getValue(t),i=l[t];if(!n||void 0===i||d&&function({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}(d,t))continue;let o={delay:r,...a};e.shouldReduceMotion&&nf.has(t)&&(o={...o,type:!1,delay:0});let s=aa(t,n,i,o);aw(u)&&(u.add(t),s=s.then(()=>u.remove(t))),c.push(s)}return Promise.all(c).then(()=>{s&&function(e,t){let r=ax(e,t),{transitionEnd:n={},transition:i={},...o}=r?e.makeTargetAnimatable(r,!1):{};for(let t in o={...o,...n}){let r=n5(o[t]);e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,ap(r))}}(e,s)})}function aS(e,t){return e.sortNodePosition(t)}let aC=[O.Animate,O.InView,O.Focus,O.Hover,O.Tap,O.Drag,O.Exit],ak=[...aC].reverse(),aA=aC.length;function aO(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let aT={animation:iN(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:r})=>(function(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t)){let i=t.map(t=>aE(e,t,r));n=Promise.all(i)}else if("string"==typeof t)n=aE(e,t,r);else{let i="function"==typeof t?ax(e,t,r.custom):t;n=aj(e,i,r)}return n.then(()=>e.notify("AnimationComplete",t))})(e,t,r))),r={[O.Animate]:aO(!0),[O.InView]:aO(),[O.Hover]:aO(),[O.Tap]:aO(),[O.Drag]:aO(),[O.Focus]:aO(),[O.Exit]:aO()},n=!0,i=(t,r)=>{let n=ax(e,r);if(n){let{transition:e,transitionEnd:r,...i}=n;t={...t,...i,...r}}return t};function o(o,a){var s,l;let u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set,h={},p=1/0;for(let t=0;tp&&y,j=Array.isArray(g)?g:[g],S=j.reduce(i,{});!1===b&&(S={});let{prevResolvedValues:C={}}=v,k={...C,...S},A=e=>{E=!0,f.delete(e),v.needsAnimating[e]=!0};for(let e in k){let t=S[e],r=C[e];h.hasOwnProperty(e)||(t!==r?n4(t)&&n4(r)?!iL(t,r)||w?A(e):v.protectedKeys[e]=!0:void 0!==t?A(e):f.add(e):void 0!==t&&f.has(e)?A(e):v.protectedKeys[e]=!0)}v.prevProp=g,v.prevResolvedValues=S,v.isActive&&(h={...h,...S}),n&&e.blockInitialAnimation&&(E=!1),E&&!x&&d.push(...j.map(e=>({animation:e,options:{type:m,...o}})))}if(f.size){let t={};f.forEach(r=>{let n=e.getBaseTarget(r);void 0!==n&&(t[r]=n)}),d.push({animation:t})}let m=!!d.length;return n&&!1===u.initial&&!e.manuallyAnimateOnMount&&(m=!1),n=!1,m?t(d):Promise.resolve()}return{animateChanges:o,setActive:function(t,n,i){var a;if(r[t].isActive===n)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)}),r[t].isActive=n;let s=o(i,t);for(let e in r)r[e].protectedKeys={};return s},setAnimateFunction:function(r){t=r(e)},getState:()=>r}}(e)),r6(t)&&(0,z.useEffect)(()=>t.subscribe(e),[t])}),exit:iN(e=>{let{custom:t,visualElement:r}=e,[n,i]=iD(),o=(0,z.useContext)(rH);(0,z.useEffect)(()=>{r.isPresent=n;let e=r.animationState&&r.animationState.setActive(O.Exit,!n,{custom:o&&o.custom||t});e&&!n&&e.then(i)},[n])})},a_=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),aM=e=>a_(e)&&e.hasOwnProperty("z"),aR=(e,t)=>Math.abs(e-t);function aN(e,t){if(os(e)&&os(t))return aR(e,t);if(a_(e)&&a_(t)){let r=aR(e.x,t.x),n=aR(e.y,t.y),i=aM(e)&&aM(t)?aR(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(i,2))}}class aP{constructor(e,t,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=aI(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=aN(e.offset,{x:0,y:0})>=3;if(!t&&!r)return;let{point:n}=e,{timestamp:i}=rV();this.history.push({...n,timestamp:i});let{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{if(this.lastMoveEvent=e,this.lastMoveEventInfo=aD(t,this.transformPagePoint),ir(e)&&0===e.buttons){this.handlePointerUp(e,t);return}rN.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:r,onSessionEnd:n}=this.handlers,i=aI(aD(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,i),n&&n(e,i)},ii(e)&&e.touches.length>1)return;this.handlers=t,this.transformPagePoint=r;let n=ia(e),i=aD(n,this.transformPagePoint),{point:o}=i,{timestamp:a}=rV();this.history=[{...o,timestamp:a}];let{onSessionStart:s}=t;s&&s(e,aI(i,this.history)),this.removeListeners=iC(im(window,"pointermove",this.handlePointerMove),im(window,"pointerup",this.handlePointerUp),im(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),rP.update(this.updatePoint)}}function aD(e,t){return t?{point:t(e.point)}:e}function aL(e,t){return{x:e.x-t.x,y:e.y-t.y}}function aI({point:e},t){return{point:e,delta:aL(e,aF(t)),offset:aL(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,i=aF(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>oU(.1)));)r--;if(!n)return{x:0,y:0};let o=(i.timestamp-n.timestamp)/1e3;if(0===o)return{x:0,y:0};let a={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function aF(e){return e[e.length-1]}function aV(e){return e.max-e.min}function aB(e,t=0,r=.01){return aN(e,t)({translate:0,scale:1,origin:0,originPoint:0}),aK=()=>({x:aX(),y:aX()}),aJ=()=>({min:0,max:0}),aQ=()=>({x:aJ(),y:aJ()});function a0(e){return[e("x"),e("y")]}function a1({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function a2(e){return void 0===e||1===e}function a4({scale:e,scaleX:t,scaleY:r}){return!a2(e)||!a2(t)||!a2(r)}function a3(e){return a4(e)||a5(e)||e.z||e.rotate||e.rotateX||e.rotateY}function a5(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}function a6(e,t,r,n,i){return void 0!==i&&(e=n+i*(e-n)),n+r*(e-n)+t}function a8(e,t=0,r=1,n,i){e.min=a6(e.min,t,r,n,i),e.max=a6(e.max,t,r,n,i)}function a7(e,{x:t,y:r}){a8(e.x,t.translate,t.scale,t.originPoint),a8(e.y,r.translate,r.scale,r.originPoint)}function a9(e,t){e.min=e.min+t,e.max=e.max+t}function se(e,t,[r,n,i]){let o=void 0!==t[i]?t[i]:.5,a=iG(e.min,e.max,o);a8(e,t[r],t[n],a,t.scale)}let st=["x","scaleX","originX"],sr=["y","scaleY","originY"];function sn(e,t){se(e.x,t,st),se(e.y,t,sr)}function si(e,t){return a1(function(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}let so=new WeakMap;class sa{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=aQ(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){!1!==this.visualElement.isPresent&&(this.panSession=new aP(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(ia(e,"page").point)},onStart:(e,t)=>{var r;let{drag:n,dragPropagation:i,onDragStart:o}=this.getProps();(!n||i||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ix(n),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),a0(e=>{var t,r;let n=this.getAxisMotionValue(e).get()||0;if(nA.test(n)){let i=null===(r=null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];if(i){let e=aV(i);n=e*(parseFloat(n)/100)}}this.originPoint[e]=n}),null==o||o(e,t),null===(r=this.visualElement.animationState)||void 0===r||r.setActive(O.Drag,!0))},onMove:(e,t)=>{let{dragPropagation:r,dragDirectionLock:n,onDirectionLock:i,onDrag:o}=this.getProps();if(!r&&!this.openGlobalLock)return;let{offset:a}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(a),null!==this.currentDirection&&(null==i||i(this.currentDirection));return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),null==o||o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()}))}stop(e,t){let r=this.isDragging;if(this.cancel(),!r)return;let{velocity:n}=t;this.startAnimation(n);let{onDragEnd:i}=this.getProps();null==i||i(e,t)}cancel(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(O.Drag,!1)}updateAxis(e,t,r){let{drag:n}=this.getProps();if(!r||!ss(e,n,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:r},n){return void 0!==t&&er&&(e=n?iG(r,e,n.max):Math.min(e,r)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:r}=this.visualElement.projection||{},n=this.constraints;e&&r3(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(e,{top:t,left:r,bottom:n,right:i}){return{x:aW(e.x,r,i),y:aW(e.y,t,n)}}(r.actual,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:aG(e,"left","right"),y:aG(e,"top","bottom")}}(t),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&a0(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(r.actual[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!r3(t))return!1;let n=t.current;iV(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,r){let n=si(e,r),{scroll:i}=t;return i&&(a9(n.x,i.x),a9(n.y,i.y)),n}(n,i.root,this.visualElement.getTransformPagePoint()),a={x:aq((e=i.layout.actual).x,o.x),y:aq(e.y,o.y)};if(r){let e=r(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=a1(e))}return a}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=a0(a=>{var l;if(!ss(a,t,this.currentDirection))return;let u=null!==(l=null==s?void 0:s[a])&&void 0!==l?l:{};o&&(u={min:0,max:0});let c={type:"inertia",velocity:r?e[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...u};return this.startAxisValueAnimation(a,c)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return aa(e,r,0,t)}stopAnimation(){a0(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){var t,r;let n="_drag"+e.toUpperCase(),i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(e,null!==(r=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==r?r:0)}snapToCursor(e){a0(t=>{let{drag:r}=this.getProps();if(!ss(t,r,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(t);if(n&&n.layout){let{min:r,max:o}=n.layout.actual[t];i.set(e[t]-iG(r,o,.5))}})}scalePositionWithinConstraints(){var e;if(!this.visualElement.current)return;let{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!r3(r)||!n||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};a0(e=>{let t=this.getAxisMotionValue(e);if(t){let r=t.get();i[e]=function(e,t){let r=.5,n=aV(e),i=aV(t);return i>n?r=iq(t.min,t.max-n,e.min):n>i&&(r=iq(e.min,e.max-i,t.min)),iB(0,1,r)}({min:r,max:r},this.constraints[e])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",null===(e=n.root)||void 0===e||e.updateScroll(),n.updateLayout(),this.resolveConstraints(),a0(e=>{if(!ss(e,t,null))return;let r=this.getAxisMotionValue(e),{min:n,max:o}=this.constraints[e];r.set(iG(n,o,i[e]))})}addListeners(){var e;if(!this.visualElement.current)return;so.set(this.visualElement,this);let t=this.visualElement.current,r=im(t,"pointerdown",e=>{let{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();r3(e)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",n);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),n();let a=ie(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(a0(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),r(),o(),null==s||s()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function ss(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}let sl={pan:iN(function({onPan:e,onPanStart:t,onPanEnd:r,onPanSessionStart:n,visualElement:i}){let o=e||t||r||n,a=(0,z.useRef)(null),{transformPagePoint:s}=(0,z.useContext)(r1),l={onSessionStart:n,onStart:t,onMove:e,onEnd:(e,t)=>{a.current=null,r&&r(e,t)}};(0,z.useEffect)(()=>{null!==a.current&&a.current.updateHandlers(l)}),iv(i,"pointerdown",o&&function(e){a.current=new aP(e,l,{transformPagePoint:s})}),rX(()=>a.current&&a.current.end())}),drag:iN(function(e){let{dragControls:t,visualElement:r}=e,n=r$(()=>new sa(r));(0,z.useEffect)(()=>t&&t.subscribe(n),[n,t]),(0,z.useEffect)(()=>n.addListeners(),[n])})};function su(e){return"string"==typeof e&&e.startsWith("var(--")}let sc=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function sd(e,t,r=1){iV(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,i]=function(e){let t=sc.exec(e);if(!t)return[,];let[,r,n]=t;return[r,n]}(e);if(!n)return;let o=window.getComputedStyle(t).getPropertyValue(n);return o?o.trim():su(i)?sd(i,t,r+1):i}let sf=new Set(["width","height","top","left","right","bottom","x","y"]),sh=e=>sf.has(e),sp=e=>Object.keys(e).some(sh),sm=(e,t)=>{e.set(t,!1),e.set(t)},sv=e=>e===nR||e===nO;(c=T||(T={})).width="width",c.height="height",c.left="left",c.right="right",c.top="top",c.bottom="bottom";let sg=(e,t)=>parseFloat(e.split(", ")[t]),sy=(e,t)=>(r,{transform:n})=>{if("none"===n||!n)return 0;let i=n.match(/^matrix3d\((.+)\)$/);if(i)return sg(i[1],t);{let t=n.match(/^matrix\((.+)\)$/);return t?sg(t[1],e):0}},sb=new Set(["x","y","z"]),sx=nd.filter(e=>!sb.has(e)),sw={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:sy(4,13),y:sy(5,14)},sE=(e,t,r)=>{let n=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),r.forEach(e=>{s[e]=sw[e](n,o)}),t.render();let l=t.measureViewportBox();return r.forEach(r=>{let n=t.getValue(r);sm(n,s[r]),e[r]=sw[r](l,o)}),e},sj=(e,t,r={},n={})=>{t={...t},n={...n};let i=Object.keys(t).filter(sh),o=[],a=!1,s=[];if(i.forEach(i=>{let l;let u=e.getValue(i);if(!e.hasValue(i))return;let c=r[i],d=ag(c),f=t[i];if(n4(f)){let e=f.length,t=null===f[0]?1:0;d=ag(c=f[t]);for(let r=t;r{let n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),a=!0),s.push(i),n[i]=void 0!==n[i]?n[i]:t[i],sm(u,f))}}),!s.length)return{target:t,transitionEnd:n};{let r=s.indexOf("height")>=0?window.pageYOffset:null,i=sE(t,e,s);return o.length&&o.forEach(([t,r])=>{e.getValue(t).set(r)}),e.render(),rB&&null!==r&&window.scrollTo({top:r}),{target:i,transitionEnd:n}}},sS=(e,t,r,n)=>{var i,o;let a=function(e,{...t},r){let n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};for(let i in r&&(r={...r}),e.values.forEach(e=>{let t=e.get();if(!su(t))return;let r=sd(t,n);r&&e.set(r)}),t){let e=t[i];if(!su(e))continue;let o=sd(e,n);o&&(t[i]=o,r&&void 0===r[i]&&(r[i]=e))}return{target:t,transitionEnd:r}}(e,t,n);return t=a.target,n=a.transitionEnd,i=t,o=n,sp(i)?sj(e,i,r,o):{target:i,transitionEnd:o}},sC={current:null},sk={current:!1},sA=Object.keys(nr),sO=sA.length,sT=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class s_{constructor({parent:e,props:t,reducedMotionConfig:r,visualState:n},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>rN.render(this.render,!1,!0);let{latestValues:o,renderState:a}=n;this.latestValues=o,this.baseTarget={...o},this.initialValues=t.initial?{...o}:{},this.renderState=a,this.parent=e,this.props=t,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=r7(t),this.isVariantNode=r9(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:s,...l}=this.scrapeMotionValuesFromProps(t);for(let e in l){let t=l[e];void 0!==o[e]&&np(t)&&(t.set(o[e],!1),aw(s)&&s.add(e))}if(t.values)for(let e in t.values){let r=t.values[e];void 0!==o[e]&&np(r)&&r.set(o[e])}}scrapeMotionValuesFromProps(e){return{}}mount(e){var t;this.current=e,this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===(t=this.parent)||void 0===t?void 0:t.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),sk.current||function(){if(sk.current=!0,rB){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>sC.current=e.matches;e.addListener(t),t()}else sC.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||sC.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var e,t,r;for(let n in null===(e=this.projection)||void 0===e||e.unmount(),rP.update(this.notifyUpdate),rP.render(this.render),this.valueSubscriptions.forEach(e=>e()),null===(t=this.removeFromVariantTree)||void 0===t||t.call(this),null===(r=this.parent)||void 0===r||r.children.delete(this),this.events)this.events[n].clear();this.current=null}bindToMotionValue(e,t){let r=t.onChange(t=>{this.latestValues[e]=t,this.props.onUpdate&&rN.update(this.notifyUpdate,!1,!0)}),n=t.onRenderRequest(this.scheduleRender);this.valueSubscriptions.set(e,()=>{r(),n()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures(e,t,r,n,i,o){let a=[];"production"!==rj&&r&&t&&iV(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let t=0;tthis.scheduleRender(),animationType:"string"==typeof r?r:"both",initialPromotionConfig:o,layoutScroll:l})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):aQ()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}setProps(e){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=e;for(let t=0;tr.variantChildren.delete(e)}addValue(e,t){this.hasValue(e)&&this.removeValue(e),this.values.set(e,t),this.latestValues[e]=t.get(),this.bindToMotionValue(e,t)}removeValue(e){var t;this.values.delete(e),null===(t=this.valueSubscriptions.get(e))||void 0===t||t(),this.valueSubscriptions.delete(e),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=ap(t),this.addValue(e,r)),r}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:r}=this.props,n="string"==typeof r||"object"==typeof r?null===(t=n2(this.props,r))||void 0===t?void 0:t[e]:void 0;if(r&&void 0!==n)return n;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||np(i)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new ad),this.events[e].add(t)}notify(e,...t){var r;null===(r=this.events[e])||void 0===r||r.notify(...t)}}let sM=["initial",...aC],sR=sM.length;class sN extends s_{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){var r;return null===(r=e.style)||void 0===r?void 0:r[t]}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...r},{transformValues:n},i){let o=function(e,t,r){var n;let i={};for(let o in e){let e=function(e,t){if(!t)return;let r=t[e]||t.default||t;return r.from}(o,t);i[o]=void 0!==e?e:null===(n=r.getValue(o))||void 0===n?void 0:n.get()}return i}(r,e||{},this);if(n&&(t&&(t=n(t)),r&&(r=n(r)),o&&(o=n(o))),i){!function(e,t,r){var n,i;let o=Object.keys(t).filter(t=>!e.hasValue(t)),a=o.length;if(a)for(let s=0;snu(e)?new sD(t,{enableHardwareAcceleration:!1}):new sP(t,{enableHardwareAcceleration:!0});function sI(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let sF={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!nO.test(e))return e;e=parseFloat(e)}let r=sI(e,t.target.x),n=sI(e,t.target.y);return`${r}% ${n}%`}},sV="_$css",sB={correct:(e,{treeScale:t,projectionDelta:r})=>{let n=e,i=e.includes("var("),o=[];i&&(e=e.replace(sc,e=>(o.push(e),sV)));let a=oa.parse(e);if(a.length>5)return n;let s=oa.createTransformer(e),l="number"!=typeof a[0]?1:0,u=r.x.scale*t.x,c=r.y.scale*t.y;a[0+l]/=u,a[1+l]/=c;let d=iG(u,c,.5);"number"==typeof a[2+l]&&(a[2+l]/=d),"number"==typeof a[3+l]&&(a[3+l]/=d);let f=s(a);if(i){let e=0;f=f.replace(sV,()=>{let t=o[e];return e++,t})}return f}};class sU extends z.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=e;Object.assign(nc,sz),i&&(t.group&&t.group.add(i),r&&r.register&&n&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),nn.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:n,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,n||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent===i||(i?o.promote():o.relegate()||rN.postRender(()=>{var e;(null===(e=o.getStack())||void 0===e?void 0:e.members.length)||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),(null==t?void 0:t.group)&&t.group.remove(n),(null==r?void 0:r.deregister)&&r.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;null==e||e()}render(){return null}}let sz={borderRadius:{...sF,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sF,borderTopRightRadius:sF,borderBottomLeftRadius:sF,borderBottomRightRadius:sF,boxShadow:sB},sH=["TopLeft","TopRight","BottomLeft","BottomRight"],s$=sH.length,sZ=e=>"string"==typeof e?parseFloat(e):e,sW=e=>"number"==typeof e||nO.test(e);function sq(e,t){var r;return null!==(r=e[t])&&void 0!==r?r:e.borderRadius}let sG=sX(0,.5,oC),sY=sX(.5,.95,ox);function sX(e,t,r){return n=>nt?1:r(iq(e,t,n))}function sK(e,t){e.min=t.min,e.max=t.max}function sJ(e,t){sK(e.x,t.x),sK(e.y,t.y)}function sQ(e,t,r,n,i){return e-=t,e=n+1/r*(e-n),void 0!==i&&(e=n+1/i*(e-n)),e}function s0(e,t,[r,n,i],o,a){!function(e,t=0,r=1,n=.5,i,o=e,a=e){if(nA.test(t)){t=parseFloat(t);let e=iG(a.min,a.max,t/100);t=e-a.min}if("number"!=typeof t)return;let s=iG(o.min,o.max,n);e===o&&(s-=t),e.min=sQ(e.min,t,r,s,i),e.max=sQ(e.max,t,r,s,i)}(e,t[r],t[n],t[i],t.scale,o,a)}let s1=["x","scaleX","originX"],s2=["y","scaleY","originY"];function s4(e,t,r,n){s0(e.x,t,s1,null==r?void 0:r.x,null==n?void 0:n.x),s0(e.y,t,s2,null==r?void 0:r.y,null==n?void 0:n.y)}function s3(e){return 0===e.translate&&1===e.scale}function s5(e){return s3(e.x)&&s3(e.y)}function s6(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function s8(e){return aV(e.x)/aV(e.y)}class s7{constructor(){this.members=[]}add(e){au(this.members,e),e.scheduleRender()}remove(e){if(ac(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let r=this.members.findIndex(t=>e===t);if(0===r)return!1;for(let e=r;e>=0;e--){let r=this.members[e];if(!1!==r.isPresent){t=r;break}}return!!t&&(this.promote(t),!0)}promote(e,t){var r;let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues,e.snapshot.isShared=!0),(null===(r=e.root)||void 0===r?void 0:r.isUpdating)&&(e.isLayoutDirty=!0);let{crossfade:i}=e.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{var t,r,n,i,o;null===(r=(t=e.options).onExitComplete)||void 0===r||r.call(t),null===(o=null===(n=e.resumingFrom)||void 0===n?void 0:(i=n.options).onExitComplete)||void 0===o||o.call(i)})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function s9(e,t,r){let n=e.x.translate/t.x,i=e.y.translate/t.y,o=`translate3d(${n}px, ${i}px, 0) `;if(o+=`scale(${1/t.x}, ${1/t.y}) `,r){let{rotate:e,rotateX:t,rotateY:n}=r;e&&(o+=`rotate(${e}deg) `),t&&(o+=`rotateX(${t}deg) `),n&&(o+=`rotateY(${n}deg) `)}let a=e.x.scale*t.x,s=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"==(o+=`scale(${a}, ${s})`)?"none":o}let le=(e,t)=>e.depth-t.depth;class lt{constructor(){this.children=[],this.isDirty=!1}add(e){au(this.children,e),this.isDirty=!0}remove(e){ac(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(le),this.isDirty=!1,this.children.forEach(e)}}let lr=["","X","Y","Z"];function ln({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(e,r={},n=null==t?void 0:t()){this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(lc),this.nodes.forEach(ld)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=r,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(let e=0;ethis.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,r&&r(),r=at(n,250),nn.hasAnimatedSinceResize&&(nn.hasAnimatedSinceResize=!1,this.nodes.forEach(lu))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&a&&(i||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:n})=>{var i,o,s,l,u;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let c=null!==(o=null!==(i=this.options.transition)&&void 0!==i?i:a.getDefaultTransition())&&void 0!==o?o:lg,{onLayoutAnimationStart:d,onLayoutAnimationComplete:f}=a.getProps(),h=!this.targetLayout||!s6(this.targetLayout,n)||r,p=!t&&r;if((null===(s=this.resumeFrom)||void 0===s?void 0:s.instance)||p||t&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,p);let t={...ao(c,"layout"),onPlay:d,onComplete:f};a.shouldReduceMotion&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||lu(this),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=n})}unmount(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,rP.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1}startUpdate(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(lf))}willUpdate(e=!0){var t,r,n;if(this.root.isUpdateBlocked()){null===(r=(t=this.options).onExitComplete)||void 0===r||r.call(t);return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;let e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));lx(t),this.snapshot={measured:e,layout:t,latestValues:{}}}updateLayout(){var e;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e=((null===(r=this.getStack())||void 0===r?void 0:r.members.length)||0),c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(lv));this.animationProgress=0,this.mixTargetDelta=t=>{var r,n,d;let f=t/1e3;lp(a.x,e.x,f),lp(a.y,e.y,f),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(r=this.relativeParent)||void 0===r?void 0:r.layout)&&(aZ(s,this.layout.actual,this.relativeParent.layout.actual),n=this.relativeTarget,d=this.relativeTargetOrigin,lm(n.x,d.x,s.x,f),lm(n.y,d.y,s.y,f)),l&&(this.animationValues=o,function(e,t,r,n,i,o){var a,s,l,u;i?(e.opacity=iG(0,null!==(a=r.opacity)&&void 0!==a?a:1,sG(n)),e.opacityExit=iG(null!==(s=t.opacity)&&void 0!==s?s:1,0,sY(n))):o&&(e.opacity=iG(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=r.opacity)&&void 0!==u?u:1,n));for(let i=0;i{nn.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,r={}){let n=np(e)?e:ap(e);return aa("",n,1e3,r),{stop:()=>n.stop(),isAnimating:()=>n.isAnimating()}}(0,0,{...e,onUpdate:t=>{var r;this.mixTargetDelta(t),null===(r=e.onUpdate)||void 0===r||r.call(e,t)},onComplete:()=>{var t;null===(t=e.onComplete)||void 0===t||t.call(e),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:r,layout:n,latestValues:i}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&lw(this.options.animationType,this.layout.actual,n.actual)){r=this.target||aQ();let t=aV(this.layout.actual.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let n=aV(this.layout.actual.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}sJ(t,r),sn(t,i),az(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){var r,n,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new s7);let o=this.sharedNodes.get(e);o.add(t),t.promote({transition:null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.transition,preserveFollowOpacity:null===(i=null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(n,t)})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){let n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,r={};for(let n=0;n{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(ls),this.root.sharedNodes.clear()}}}function li(e){e.updateLayout()}function lo(e){var t,r,n;let i=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){let{actual:t,measured:r}=e.layout,{animationType:n}=e.options;"size"===n?a0(e=>{let r=i.isShared?i.measured[e]:i.layout[e],n=aV(r);r.min=t[e].min,r.max=r.min+n}):lw(n,i.layout,t)&&a0(e=>{let r=i.isShared?i.measured[e]:i.layout[e],n=aV(t[e]);r.max=r.min+n});let o=aK();az(o,t,i.layout);let a=aK();i.isShared?az(a,e.applyTransform(r,!0),i.measured):az(a,t,i.layout);let s=!s5(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:e,layout:n}=r;if(e&&n){let r=aQ();aZ(r,i.layout,e.layout);let o=aQ();aZ(o,t,n.actual),s6(r,o)||(l=!0)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:s,hasRelativeTargetChanged:l})}else e.isLead()&&(null===(n=(r=e.options).onExitComplete)||void 0===n||n.call(r));e.options.transition=void 0}function la(e){e.clearSnapshot()}function ls(e){e.clearMeasurements()}function ll(e){let{visualElement:t}=e.options;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function lu(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function lc(e){e.resolveTargetDelta()}function ld(e){e.calcProjection()}function lf(e){e.resetRotation()}function lh(e){e.removeLeadSnapshot()}function lp(e,t,r){e.translate=iG(t.translate,0,r),e.scale=iG(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function lm(e,t,r,n){e.min=iG(t.min,r.min,n),e.max=iG(t.max,r.max,n)}function lv(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let lg={duration:.45,ease:[.4,0,.1,1]};function ly(e,t){let r=e.root;for(let t=e.path.length-1;t>=0;t--)if(e.path[t].instance){r=e.path[t];break}let n=r&&r!==e.root?r.instance:document,i=n.querySelector(`[data-projection-id="${t}"]`);i&&e.mount(i,!0)}function lb(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function lx(e){lb(e.x),lb(e.y)}function lw(e,t,r){return"position"===e||"preserve-aspect"===e&&!function(e,t,r=.1){return aN(e,t)<=r}(s8(t),s8(r),.2)}let lE=ln({attachResizeListener:(e,t)=>ie(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),lj={current:void 0},lS=ln({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!lj.current){let e=new lE(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),lj.current=e}return lj.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),lC={...aT,...iP,...sl,measureLayout:function(e){let[t,r]=iD(),n=(0,z.useContext)(rY);return z.createElement(sU,{...e,layoutGroup:n,switchLayoutGroup:(0,z.useContext)(na),isPresent:t,safeToRemove:r})}},lk=function(e){function t(t,r={}){return function({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:r,useRender:n,useVisualState:i,Component:o}){e&&function(e){for(let t in e)"projectionNodeConstructor"===t?nr.projectionNodeConstructor=e[t]:nr[t].Component=e[t]}(e);let a=(0,z.forwardRef)(function(a,s){var l;let u={...(0,z.useContext)(r1),...a,layoutId:function({layoutId:e}){let t=(0,z.useContext)(rY).id;return t&&void 0!==e?t+"-"+e:e}(a)},{isStatic:c}=u,d=null,f=function(e){let{initial:t,animate:r}=function(e,t){if(r7(e)){let{initial:t,animate:r}=e;return{initial:!1===t||r5(t)?t:void 0,animate:r5(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,z.useContext)(r2));return(0,z.useMemo)(()=>({initial:t,animate:r}),[ne(t),ne(r)])}(a),h=c?void 0:r$(()=>{if(nn.hasEverUpdated)return ni++}),p=i(a,c);if(!c&&rB){f.visualElement=function(e,t,r,n){let i=(0,z.useContext)(r2).visualElement,o=(0,z.useContext)(r4),a=(0,z.useContext)(rH),s=(0,z.useContext)(r1).reducedMotion,l=(0,z.useRef)();n=n||o.renderer,!l.current&&n&&(l.current=n(e,{visualState:t,parent:i,props:r,presenceId:a?a.id:void 0,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));let u=l.current;return rU(()=>{u&&u.render()}),(0,z.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),rU(()=>()=>u&&u.notify("Unmount"),[]),u}(o,p,u,t);let n=(0,z.useContext)(r4).strict,i=(0,z.useContext)(na);f.visualElement&&(d=f.visualElement.loadFeatures(u,n,e,h,r||nr.projectionNodeConstructor,i))}return z.createElement(no,{visualElement:f.visualElement,props:u},d,z.createElement(r2.Provider,{value:f},n(o,a,h,(l=f.visualElement,(0,z.useCallback)(e=>{e&&p.mount&&p.mount(e),l&&(e?l.mount(e):l.unmount()),s&&("function"==typeof s?s(e):r3(s)&&(s.current=e))},[l])),p,c,f.visualElement)))});return a[ns]=o,a}(e(t,r))}if("undefined"==typeof Proxy)return t;let r=new Map;return new Proxy(t,{get:(e,n)=>(r.has(n)||r.set(n,t(n)),r.get(n))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},r,n,i){let o=nu(e)?n7:n9;return{...o,preloadedFeatures:r,useRender:function(e=!1){return(t,r,n,i,{latestValues:o},a)=>{let s=nu(t)?nY:nB,l=s(r,o,a),u=function(e,t,r){let n={};for(let i in e)(nH(i)||!0===r&&nz(i)||!t&&!nz(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}(r,"string"==typeof t,e),c={...u,...l,ref:i};return n&&(c["data-projection-id"]=n),(0,z.createElement)(t,c)}}(t),createVisualElement:n,projectionNodeConstructor:i,Component:e}})(e,t,lC,sL,lS));function lA(e){let{open:t,onOpenChange:r}=e,[n,i]=(0,z.useState)(!1),o=(0,z.useMemo)(()=>r?t:n,[r,n,t]),a=(0,z.useCallback)(e=>{r?r(e):i(e)},[r]);return{open:o,onOpenChange:a}}let lO={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}};function lT(e){let{children:t,content:r,defaultOpen:n,open:i,onOpenChange:o,delayDuration:a=300,disableHoverableContent:s,...l}=e,{open:u,onOpenChange:c}=lA({open:i,onOpenChange:o});return(0,U.jsxs)(rm,{open:u,delayDuration:a,disableHoverableContent:s,defaultOpen:n,onOpenChange:c,children:[(0,U.jsx)(ro,{asChild:!0,children:t}),(0,U.jsx)(r0,{children:r&&u?(0,U.jsx)(rv,{forceMount:!0,children:(0,U.jsx)(rc,{forceMount:!0,asChild:!0,side:"top",align:"center",sideOffset:l.sideOffset||5,...l,children:(0,U.jsx)(lk.div,{variants:lO,initial:"init",animate:"show",exit:"exit",className:(0,eV.cx)("relative","z-50","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"),children:(0,U.jsx)("div",{className:(0,eV.cx)("py-1 px-2","max-w-xs","overflow-hidden",rx()),children:(0,U.jsx)(rb,{size:"12",children:r})})})})}):null})]})}let l_=(0,eV.j)(["inline-flex","gap-1","appearance-none","shrink-0","items-center","justify-center","select-none","leading-normal","font-sans","cursor-pointer","overflow-hidden","focus:z-10","disabled:cursor-auto","disabled:pointer-events-none","outline-none","focus:ring ring-blue-500 dark:ring-blue-200","transition-colors duration-75"],{variants:{size:{small:["text-xs","px-2","h-7"],medium:["text-base","px-4","h-10"],large:["text-lg","px-4","h-12"],none:[]},state:{waiting:["pointer-events-none"]},disabled:{true:"cursor-auto pointer-events-none"},rounded:{true:"rounded",false:""},variant:{accent:["border","text-white dark:text-white","enabled:bg-green-700 enabled:dark:bg-green-700","enabled:border-green-800/30 enabled:dark:border-green-600/70","enabled:hover:bg-green-800/90 dark:enabled:hover:bg-green-700/90","enabled:hover:border-green-800/50 enabled:hover:dark:border-green-600","disabled:text-white/50 disabled:dark:text-white/50","disabled:bg-green-700/70 disabled:dark:bg-green-600/70","disabled:border-green-600/50 disabled:dark:border-green-500/30","[&[href]]:bg-green-700 [&[href]]:dark:bg-green-700","[&[href]]:border-green-800/30 [&[href]]:dark:border-green-600/70","[&[href]]:hover:bg-green-800/90 dark:[&[href]]:hover:bg-green-700/90","[&[href]]:hover:border-green-800/50 [href]]:hover:dark:border-green-600"],red:["border","bg-red-700 dark:bg-red-700","border-red-800/30 dark:border-red-600/70","enabled:hover:bg-red-800/90 dark:enabled:hover:bg-red-700/90","enabled:hover:border-red-800/50 enabled:hover:dark:border-red-600","disabled:bg-red-700/70 disabled:dark:bg-red-600/70","disabled:border-red-600/50 disabled:dark:border-red-500/30","text-white dark:text-white","disabled:text-white/50 disabled:dark:text-white/50"],amber:["border","bg-amber-700 dark:bg-amber-700","border-amber-800/30 dark:border-amber-600/70","enabled:hover:bg-amber-800/90 dark:enabled:hover:bg-amber-700/90","enabled:hover:border-amber-800/50 enabled:hover:dark:border-amber-600","disabled:bg-amber-700/70 disabled:dark:bg-amber-600/70","disabled:border-amber-600/50 disabled:dark:border-amber-500/30","text-white dark:text-white","disabled:text-white/50 disabled:dark:text-white/50"],gray:["border","bg-white dark:bg-graydark-200","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100 dark:text-gray-300","disabled:text-gray-600 disabled:dark:text-graydark-700"],active:["border","bg-gray-200 dark:bg-graydark-400","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-500 dark:border-graydark-500","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],inactive:["border","bg-white dark:bg-graydark-200","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-400/70 dark:border-graydark-400/70","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100/30 dark:text-white/30","enabled:hover:text-gray-1100 enabled:hover:dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],ghost:["appearance-none border-none bg-transparent","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],state:["open:text-gray-1100 open:dark:text-white","hover:text-gray-1000 hover:dark:text-graydark-1000","text-gray-700 dark:text-graydark-800"]},icon:{contrast:"",hover:"[&>svg]:opacity-50 hover:[&>svg]:opacity-100 transition-opacity",subtle:"[&>svg]:opacity-50"},color:{verySubtle:"!text-gray-700 dark:!text-graydark-700",subtle:"!text-gray-1000 dark:!text-graydark-1000",contrast:"!text-gray-1100 dark:!text-white",lo:"!text-white dark:!text-graydark-50",accent:"!text-accent-1100 dark:!text-accentdark-1100",red:"!text-red-700 dark:!text-red-400",green:"!text-emerald-700 dark:!text-emerald-500",amber:"!text-amber-600 dark:!text-amber-500",none:""}},defaultVariants:{variant:"gray",size:"small",rounded:!0,icon:"subtle",color:"none"}}),lM=z.forwardRef((e,t)=>{let{variant:r,size:n,state:i,rounded:o,disabled:a,icon:s,color:l,tip:u,tipAlign:c,tipSide:d,className:f,type:h="button",...p}=e;return u?(0,U.jsx)(lT,{content:u,align:c,side:d,children:(0,U.jsx)("button",{ref:t,type:h,disabled:a,className:l_({variant:r,size:n,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})}):(0,U.jsx)("button",{ref:t,disabled:a,type:h,className:l_({variant:r,size:n,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})});var lR=r(20876);(0,eV.j)([],{variants:{variant:{default:"border-t border-gray-500 dark:border-graydark-500 last-of-type:border-b",ghost:""}},defaultVariants:{variant:"default"}});let lN=(0,eV.j)("border border-gray-500 dark:border-graydark-500 bg-gray-100 dark:bg-graydark-100 rounded p-4"),lP=z.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,U.jsx)("div",{...n,className:lN({className:r}),ref:t})}),lD="Avatar",[lL,lI]=W(lD),[lF,lV]=lL(lD),lB=(0,z.forwardRef)((e,t)=>{let{__scopeAvatar:r,...n}=e,[i,o]=(0,z.useState)("idle");return(0,z.createElement)(lF,{scope:r,imageLoadingStatus:i,onImageLoadingStatusChange:o},(0,z.createElement)(ei.span,$({},n,{ref:t})))}),lU=(0,z.forwardRef)((e,t)=>{let{__scopeAvatar:r,src:n,onLoadingStatusChange:i=()=>{},...o}=e,a=lV("AvatarImage",r),s=function(e){let[t,r]=(0,z.useState)("idle");return(0,z.useEffect)(()=>{if(!e){r("error");return}let t=!0,n=new window.Image,i=e=>()=>{t&&r(e)};return r("loading"),n.onload=i("loaded"),n.onerror=i("error"),n.src=e,()=>{t=!1}},[e]),t}(n),l=et(e=>{i(e),a.onImageLoadingStatusChange(e)});return ea(()=>{"idle"!==s&&l(s)},[s,l]),"loaded"===s?(0,z.createElement)(ei.img,$({},o,{ref:t,src:n})):null}),lz=(0,z.forwardRef)((e,t)=>{let{__scopeAvatar:r,delayMs:n,...i}=e,o=lV("AvatarFallback",r),[a,s]=(0,z.useState)(void 0===n);return(0,z.useEffect)(()=>{if(void 0!==n){let e=window.setTimeout(()=>s(!0),n);return()=>window.clearTimeout(e)}},[n]),a&&"loaded"!==o.imageLoadingStatus?(0,z.createElement)(ei.span,$({},i,{ref:t})):null}),lH=(0,eV.j)(["items-center justify-center align-middle flex flex-shrink-0 relative","overflow-hidden select-none outline-none","font-sans font-medium text-sm","border"],{variants:{size:{1:"w-6 h-6",2:"w-12 h-12",3:"w-16 h-16",4:"w-28 h-28"},variant:{filter:"bg-transparent",hiContrast:["bg-gray-900 dark:bg-white text-white dark:text-gray-1100","border-gray-900 dark:border-white text-white dark:text-gray-1100"],gray:["bg-gray-500 dark:bg-gray-800 text-gray-1100 dark:text-white","border-gray-500 dark:border-gray-800 text-gray-1100 dark:text-white"]},shape:{square:"rounded",circle:"rounded-full"},inactive:{true:"opacity-30"},interactive:{true:"cursor-pointer"}},defaultVariants:{size:"2",variant:"gray",shape:"circle"}}),l$=(0,eV.j)("uppercase",{variants:{size:{1:"text-sm",2:"text-base",3:"text-lg",4:"text-lg"}},defaultVariants:{size:"2"}}),lZ=z.forwardRef((e,t)=>{let{alt:r,src:n,fallback:i,size:o,variant:a,shape:s,interactive:l,inactive:u,className:c,...d}=e;return(0,U.jsx)("div",{className:(0,eV.cx)("relative h-fit w-fit",c),children:(0,U.jsxs)(lB,{...d,ref:t,className:lH({className:c,size:o,variant:a,interactive:l,inactive:u,shape:s}),children:["filter"===a&&(0,U.jsx)("div",{className:"absolute w-full h-full z-10",style:{backgroundColor:"rgba(30, 169, 76, 0.3)"}}),(0,U.jsx)(lU,{alt:r,src:n,className:"flex object-cover h-full align-middle w-full"}),(0,U.jsx)(lz,{className:l$({size:o}),children:i})]})})}),lW=(0,eV.j)(["items-center appearance-none inline-flex flex-shrink-0 whitespace-nowrap","font-sans font-regular","justify-center align-middle outline-none decoration-none select-none","disabled:pointer-events-none"],{variants:{size:{default:"text-sm py-0.5 px-2",small:"text-xs py-px px-1"},variant:{active:["border","bg-gray-800 text-gray-900 border-gray-900","dark:bg-transparent dark:text-white dark:border-white/10"],simple:"bg-gray-300 dark:bg-graydark-800 text-gray-900 dark:text-white",green:["border","[&>svg]:opacity-50","bg-green-700 dark:bg-green-700","border-green-800/30 dark:border-green-600/70","hover:bg-green-800/90 dark:hover:bg-green-700/90","hover:border-green-800/50 hover:dark:border-green-600","text-white dark:text-white"],accent:["border","[&>svg]:opacity-50","bg-green-700 dark:bg-green-700","border-green-800/30 dark:border-green-600/70","hover:bg-green-800/90 dark:hover:bg-green-700/90","hover:border-green-800/50 hover:dark:border-green-600","text-white dark:text-white"],red:["border","[&>svg]:opacity-50","bg-red-700 dark:bg-red-700","border-red-800/30 dark:border-red-600/70","hover:bg-red-800/90 dark:hover:bg-red-700/90","hover:border-red-800/50 hover:dark:border-red-600","text-white dark:text-white"],amber:["border","[&>svg]:opacity-50","bg-amber-700 dark:bg-amber-700","border-amber-800/30 dark:border-amber-600/70","hover:bg-amber-800/90 dark:hover:bg-amber-700/90","hover:border-amber-800/50 hover:dark:border-amber-600","text-white dark:text-white"],gray:["border","[&>svg]:opacity-50","bg-white dark:bg-graydark-200","border-gray-400 dark:border-graydark-400","hover:bg-gray-50 dark:hover:bg-graydark-300","hover:border-gray-500 hover:dark:border-graydark-500","text-gray-1100 dark:text-white"],inactive:["border","[&>svg]:opacity-50","bg-white dark:bg-transparent","border-gray-400 dark:border-graydark-400","hover:border-gray-500 hover:dark:border-graydark-500","text-gray-1100/30 dark:text-white/30","hover:text-gray-1100/50 hover:dark:text-white/50"]},interactive:{true:"cursor-pointer",false:"cursor-auto"},rounded:{true:"rounded",false:""}},defaultVariants:{variant:"gray",size:"default",rounded:!0,interactive:!1}}),lq=z.forwardRef((e,t)=>{let{variant:r,size:n,interactive:i,rounded:o,className:a,...s}=e;return(0,U.jsx)("div",{...s,className:lW({variant:r,size:n,interactive:i,rounded:o,className:a}),ref:t})}),lG=(0,eV.j)(["font-mono","whitespace-nowrap","rounded"],{variants:{color:{gray:["bg-gray-200 dark:bg-graydark-200","text-gray-1100 dark:text-graydark-1100"],accent:["bg-accent-200 dark:bg-accentdark-200","text-accent-1100 dark:text-accentdark-1100"]}},defaultVariants:{color:"accent"}}),lY=z.forwardRef((e,t)=>{let{color:r,className:n,...i}=e;return(0,U.jsx)("code",{...i,className:lG({color:r,className:n}),ref:t})}),lX=(0,eV.j)(["flex","relative","[&>*]:rounded-none [&>*:last-child]:rounded-r [&>*:first-child]:rounded-l","[&>*]:border-r-0 [&>*]:border-l [&>*:first-child]:border-l [&>*:last-child]:border-r"]),lK=z.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,U.jsx)("div",{ref:t,className:lX({className:r}),...n})});(0,eV.j)(["select-none appearance-none outline-none overflow-hidden","inline-flex items-center justify-center","focus:ring ring-blue-500 dark:ring-blue-200","border","bg-gray-300 dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","disabled:cursor-default","enabled:data-[state=checked]:bg-green-600 dark:enabled:data-[state=checked]:bg-green-500","disabled:data-[state=checked]:bg-green-600/50 dark:disabled:data-[state=checked]:bg-green-500/50"],{variants:{size:{small:"w-4 h-4 rounded",medium:"w-6 h-6 rounded"}},defaultVariants:{size:"small"}});let lJ=(0,eV.j)(["flex-shrink-0 w-full mx-auto"],{variants:{pad:{true:"px-5 md:px-10",false:""},size:{1:"max-w-screen-sm",2:"max-w-screen-md",3:"max-w-[1145px]",4:"max-w-screen-2xl",full:"max-w-none"}},defaultVariants:{pad:!0,size:"3"}}),lQ=z.forwardRef((e,t)=>{let{className:r,pad:n,size:i,...o}=e;return(0,U.jsx)("div",{ref:t,...o,className:lJ({size:i,pad:n,className:r})})}),l0="focusScope.autoFocusOnMount",l1="focusScope.autoFocusOnUnmount",l2={bubbles:!1,cancelable:!0},l4=(0,z.forwardRef)((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=e,[s,l]=(0,z.useState)(null),u=et(i),c=et(o),d=(0,z.useRef)(null),f=G(t,e=>l(e)),h=(0,z.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,z.useEffect)(()=>{if(n){function e(e){if(h.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:l6(d.current,{select:!0})}function t(e){h.paused||!s||s.contains(e.relatedTarget)||l6(d.current,{select:!0})}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}},[n,s,h.paused]),(0,z.useEffect)(()=>{if(s){l8.add(h);let e=document.activeElement,t=s.contains(e);if(!t){let t=new CustomEvent(l0,l2);s.addEventListener(l0,u),s.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(l6(n,{select:t}),document.activeElement!==r)return}(l3(s).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&l6(s))}return()=>{s.removeEventListener(l0,u),setTimeout(()=>{let t=new CustomEvent(l1,l2);s.addEventListener(l1,c),s.dispatchEvent(t),t.defaultPrevented||l6(null!=e?e:document.body,{select:!0}),s.removeEventListener(l1,c),l8.remove(h)},0)}}},[s,u,c,h]);let p=(0,z.useCallback)(e=>{if(!r&&!n||h.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[n,o]=function(e){let t=l3(e),r=l5(t,e),n=l5(t.reverse(),e);return[r,n]}(t),a=n&&o;a?e.shiftKey||i!==o?e.shiftKey&&i===n&&(e.preventDefault(),r&&l6(o,{select:!0})):(e.preventDefault(),r&&l6(n,{select:!0})):i===t&&e.preventDefault()}},[r,n,h.paused]);return(0,z.createElement)(ei.div,$({tabIndex:-1},a,{ref:f,onKeyDown:p}))});function l3(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function l5(e,t){for(let r of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function l6(e,{select:t=!1}={}){if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}let l8=(s=[],{add(e){let t=s[0];e!==t&&(null==t||t.pause()),(s=l7(s,e)).unshift(e)},remove(e){var t;null===(t=(s=l7(s,e))[0])||void 0===t||t.resume()}});function l7(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}let l9=0;function ue(){(0,z.useEffect)(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=r[0])&&void 0!==e?e:ut()),document.body.insertAdjacentElement("beforeend",null!==(t=r[1])&&void 0!==t?t:ut()),l9++,()=>{1===l9&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),l9--}},[])}function ut(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var ur=function(){return(ur=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function ui(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}function uo(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function us(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i