From e0c47346a01eac482d81bf2622f24a6f0a6848d0 Mon Sep 17 00:00:00 2001 From: ChrisSchinnerl Date: Mon, 19 Aug 2024 15:55:11 +0000 Subject: [PATCH] chore: export renterd/v0.60.0 --- renterd/assets/404.html | 2 +- .../_buildManifest.js | 2 +- .../_ssgManifest.js | 0 ...4b205d6020.js => _app-9c5c292b36977131.js} | 20 +++++++++---------- ...5f5cd5d8.js => config-a2d34e756347480f.js} | 2 +- renterd/assets/alerts.html | 2 +- renterd/assets/buckets.html | 2 +- .../buckets/[bucket]/files/[[...path]].html | 2 +- renterd/assets/buckets/[bucket]/uploads.html | 2 +- renterd/assets/config.html | 2 +- renterd/assets/contracts.html | 2 +- renterd/assets/hosts.html | 2 +- renterd/assets/index.html | 2 +- renterd/assets/keys.html | 2 +- renterd/assets/login.html | 2 +- renterd/assets/node.html | 2 +- renterd/assets/wallet.html | 2 +- 17 files changed, 25 insertions(+), 25 deletions(-) rename renterd/assets/_next/static/{n0a469U6Ks8RD_NY9XqUA => BMUWS3HEN3QDcriahUZai}/_buildManifest.js (94%) rename renterd/assets/_next/static/{n0a469U6Ks8RD_NY9XqUA => BMUWS3HEN3QDcriahUZai}/_ssgManifest.js (100%) rename renterd/assets/_next/static/chunks/pages/{_app-893e484b205d6020.js => _app-9c5c292b36977131.js} (78%) rename renterd/assets/_next/static/chunks/pages/{config-06a97a335f5cd5d8.js => config-a2d34e756347480f.js} (77%) diff --git a/renterd/assets/404.html b/renterd/assets/404.html index 8125a7057..e302a967d 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/n0a469U6Ks8RD_NY9XqUA/_buildManifest.js b/renterd/assets/_next/static/BMUWS3HEN3QDcriahUZai/_buildManifest.js similarity index 94% rename from renterd/assets/_next/static/n0a469U6Ks8RD_NY9XqUA/_buildManifest.js rename to renterd/assets/_next/static/BMUWS3HEN3QDcriahUZai/_buildManifest.js index f67aad074..dec98d3d7 100644 --- a/renterd/assets/_next/static/n0a469U6Ks8RD_NY9XqUA/_buildManifest.js +++ b/renterd/assets/_next/static/BMUWS3HEN3QDcriahUZai/_buildManifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST=function(s){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":["static/chunks/pages/index-36fc3735fea586bd.js"],"/_error":["static/chunks/pages/_error-4dfdedf844297a3b.js"],"/alerts":["static/chunks/pages/alerts-fc32cb763a055566.js"],"/buckets":[s,"static/chunks/pages/buckets-8030b904192e6bd3.js"],"/buckets/[bucket]/files/[[...path]]":[s,"static/chunks/pages/buckets/[bucket]/files/[[...path]]-0b6c7fddc068f7a4.js"],"/buckets/[bucket]/uploads":["static/chunks/pages/buckets/[bucket]/uploads-26763a538d173f3b.js"],"/config":["static/chunks/pages/config-06a97a335f5cd5d8.js"],"/contracts":["static/chunks/pages/contracts-0b61478f592bcea5.js"],"/hosts":["static/chunks/pages/hosts-e8dae08e31864383.js"],"/keys":["static/chunks/pages/keys-0f39fd22cd78daf2.js"],"/login":["static/chunks/pages/login-9844bcb85effff9d.js"],"/node":["static/chunks/pages/node-0289414985d237b8.js"],"/wallet":["static/chunks/pages/wallet-21e4bc1c4b10dae9.js"],sortedPages:["/","/_app","/_error","/alerts","/buckets","/buckets/[bucket]/files/[[...path]]","/buckets/[bucket]/uploads","/config","/contracts","/hosts","/keys","/login","/node","/wallet"]}}("static/chunks/448-a0b73aed29240ac4.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file +self.__BUILD_MANIFEST=function(s){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":["static/chunks/pages/index-36fc3735fea586bd.js"],"/_error":["static/chunks/pages/_error-4dfdedf844297a3b.js"],"/alerts":["static/chunks/pages/alerts-fc32cb763a055566.js"],"/buckets":[s,"static/chunks/pages/buckets-8030b904192e6bd3.js"],"/buckets/[bucket]/files/[[...path]]":[s,"static/chunks/pages/buckets/[bucket]/files/[[...path]]-0b6c7fddc068f7a4.js"],"/buckets/[bucket]/uploads":["static/chunks/pages/buckets/[bucket]/uploads-26763a538d173f3b.js"],"/config":["static/chunks/pages/config-a2d34e756347480f.js"],"/contracts":["static/chunks/pages/contracts-0b61478f592bcea5.js"],"/hosts":["static/chunks/pages/hosts-e8dae08e31864383.js"],"/keys":["static/chunks/pages/keys-0f39fd22cd78daf2.js"],"/login":["static/chunks/pages/login-9844bcb85effff9d.js"],"/node":["static/chunks/pages/node-0289414985d237b8.js"],"/wallet":["static/chunks/pages/wallet-21e4bc1c4b10dae9.js"],sortedPages:["/","/_app","/_error","/alerts","/buckets","/buckets/[bucket]/files/[[...path]]","/buckets/[bucket]/uploads","/config","/contracts","/hosts","/keys","/login","/node","/wallet"]}}("static/chunks/448-a0b73aed29240ac4.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/renterd/assets/_next/static/n0a469U6Ks8RD_NY9XqUA/_ssgManifest.js b/renterd/assets/_next/static/BMUWS3HEN3QDcriahUZai/_ssgManifest.js similarity index 100% rename from renterd/assets/_next/static/n0a469U6Ks8RD_NY9XqUA/_ssgManifest.js rename to renterd/assets/_next/static/BMUWS3HEN3QDcriahUZai/_ssgManifest.js diff --git a/renterd/assets/_next/static/chunks/pages/_app-893e484b205d6020.js b/renterd/assets/_next/static/chunks/pages/_app-9c5c292b36977131.js similarity index 78% rename from renterd/assets/_next/static/chunks/pages/_app-893e484b205d6020.js rename to renterd/assets/_next/static/chunks/pages/_app-9c5c292b36977131.js index 843a5540e..60a3eba05 100644 --- a/renterd/assets/_next/static/chunks/pages/_app-893e484b205d6020.js +++ b/renterd/assets/_next/static/chunks/pages/_app-9c5c292b36977131.js @@ -1,20 +1,20 @@ -(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 C},ResizeObserverSize:function(){return c}});var r,i,a,o=[],l="ResizeObserver loop completed with undelivered notifications.",s=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:l}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=l),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,a=e.offsetHeight;return!(i||a||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},g="undefined"!=typeof window?window:{},v=new WeakMap,y=/auto|scroll/,x=/^tb|vertical/,b=/msie|trident/i.test(g.navigator&&g.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),v.has(e)&&!t)return v.get(e);if(h(e))return v.set(e,k),k;var n=getComputedStyle(e),r=f(e)&&e.ownerSVGElement&&e.getBBox(),i=!b&&"border-box"===n.boxSizing,a=x.test(n.writingMode||""),o=!r&&y.test(n.overflowY||""),l=!r&&y.test(n.overflowX||""),s=r?0:w(n.paddingTop),c=r?0:w(n.paddingRight),p=r?0:w(n.paddingBottom),m=r?0:w(n.paddingLeft),g=r?0:w(n.borderTopWidth),E=r?0:w(n.borderRightWidth),S=r?0:w(n.borderBottomWidth),C=r?0:w(n.borderLeftWidth),M=m+c,P=s+p,_=C+E,O=g+S,T=l?e.offsetHeight-O-e.clientHeight:0,A=o?e.offsetWidth-_-e.clientWidth:0,N=r?r.width:w(n.width)-(i?M+_:0)-A,R=r?r.height:w(n.height)-(i?P+O:0)-T,D=N+M+A+_,L=R+P+T+O,Z=u({devicePixelContentBoxSize:j(Math.round(N*devicePixelRatio),Math.round(R*devicePixelRatio),a),borderBoxSize:j(D,L,a),contentBoxSize:j(N,R,a),contentRect:new d(m,s,N,R)});return v.set(e,Z),Z},S=function(e,t,n){var r=E(e,n),a=r.borderBoxSize,o=r.contentBoxSize,l=r.devicePixelContentBoxSize;switch(t){case i.DEVICE_PIXEL_CONTENT_BOX:return l;case i.BORDER_BOX:return a;default:return o}},C=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])},M=function(e){if(h(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},P=function(){var e=1/0,t=[];o.forEach(function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach(function(t){var n=new C(t.target),i=M(t.target);r.push(n),t.lastReportedSize=S(t.target,t.observedBox),ie?t.activeTargets.push(n):t.skippedTargets.push(n))})})},O=function(){var e=0;for(_(0);o.some(function(e){return e.activeTargets.length>0});)_(e=P());return o.some(function(e){return e.skippedTargets.length>0})&&s(),e>0},T=[],A=function(e){if(!a){var t=0,n=document.createTextNode("");new MutationObserver(function(){return T.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),a=function(){n.textContent=""+(t?t--:t++)}}T.push(e),a()},N=function(e){A(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=O()}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():g.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 g.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),L.forEach(function(t){return g.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),V=function(e){!R&&e>0&&z.start(),(R+=e)||z.stop()},B=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}(),I=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&&o.push(r),r.observationTargets.push(new B(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&&o.splice(o.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 a}});var r=n(2784);function i(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function a(...e){return(0,r.useCallback)(i(...e),e)}},34540:function(e,t,n){"use strict";n.d(t,{b:function(){return a},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,a=(0,r.useMemo)(()=>i,Object.values(i));return(0,r.createElement)(n.Provider,{value:a},t)}return i.displayName=e+"Provider",[i,function(i){let a=(0,r.useContext)(n);if(a)return a;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function a(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 a=(0,r.createContext)(i),o=n.length;function l(t){let{scope:n,children:i,...l}=t,s=(null==n?void 0:n[e][o])||a,u=(0,r.useMemo)(()=>l,Object.values(l));return(0,r.createElement)(s.Provider,{value:u},i)}return n=[...n,i],l.displayName=t+"Provider",[l,function(n,l){let s=(null==l?void 0:l[e][o])||a,u=(0,r.useContext)(s);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)[`__scope${r}`];return{...t,...i}},{});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 X},xz:function(){return U}});var r=n(7896),i=n(2784),a=n(41816),o=n(26215),l=n(34540),s=n(26074),u=n(73597),c=n(83317),d=n(77334),f=n(6500),h=n(28245),p=n(72130),m=n(55070),g=n(70506),v=n(49732),y=n(99575);let x="Dialog",[b,w]=(0,l.b)(x),[j,k]=b(x),E=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...l}=e,s=k("DialogTrigger",n),u=(0,o.e)(t,s.triggerRef);return(0,i.createElement)(p.WV.button,(0,r.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":V(s.open)},l,{ref:u,onClick:(0,a.M)(e.onClick,s.onOpenToggle)}))}),S="DialogPortal",[C,M]=b(S,{forceMount:void 0}),P="DialogOverlay",_=(0,i.forwardRef)((e,t)=>{let n=M(P,e.__scopeDialog),{forceMount:a=n.forceMount,...o}=e,l=k(P,e.__scopeDialog);return l.modal?(0,i.createElement)(h.z,{present:a||l.open},(0,i.createElement)(O,(0,r.Z)({},o,{ref:t}))):null}),O=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...a}=e,o=k(P,n);return(0,i.createElement)(g.Z,{as:y.g7,allowPinchZoom:!0,shards:[o.contentRef]},(0,i.createElement)(p.WV.div,(0,r.Z)({"data-state":V(o.open)},a,{ref:t,style:{pointerEvents:"auto",...a.style}})))}),T="DialogContent",A=(0,i.forwardRef)((e,t)=>{let n=M(T,e.__scopeDialog),{forceMount:a=n.forceMount,...o}=e,l=k(T,e.__scopeDialog);return(0,i.createElement)(h.z,{present:a||l.open},l.modal?(0,i.createElement)(N,(0,r.Z)({},o,{ref:t})):(0,i.createElement)(R,(0,r.Z)({},o,{ref:t})))}),N=(0,i.forwardRef)((e,t)=>{let n=k(T,e.__scopeDialog),l=(0,i.useRef)(null),s=(0,o.e)(t,n.contentRef,l);return(0,i.useEffect)(()=>{let e=l.current;if(e)return(0,v.R)(e)},[]),(0,i.createElement)(D,(0,r.Z)({},e,{ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,a.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,a.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,a.M)(e.onFocusOutside,e=>e.preventDefault())}))}),R=(0,i.forwardRef)((e,t)=>{let n=k(T,e.__scopeDialog),a=(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||(a.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),a.current=!1},onInteractOutside:t=>{var r,i;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(a.current=!0);let o=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(o))&&t.preventDefault()}}))}),D=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,trapFocus:a,onOpenAutoFocus:l,onCloseAutoFocus:s,...u}=e,f=k(T,n),h=(0,i.useRef)(null),p=(0,o.e)(t,h);return(0,m.EW)(),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(d.M,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:l,onUnmountAutoFocus:s},(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,...a}=e,o=k(L,n);return(0,i.createElement)(p.WV.h2,(0,r.Z)({id:o.titleId},a,{ref:t}))}),F=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...a}=e,o=k("DialogDescription",n);return(0,i.createElement)(p.WV.p,(0,r.Z)({id:o.descriptionId},a,{ref:t}))}),z=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,l=k("DialogClose",n);return(0,i.createElement)(p.WV.button,(0,r.Z)({type:"button"},o,{ref:t,onClick:(0,a.M)(e.onClick,()=>l.onOpenChange(!1))}))});function V(e){return e?"open":"closed"}let[B,I]=(0,l.k)("DialogTitleWarning",{contentName:T,titleName:L,docsSlug:"dialog"}),H=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:l=!0}=e,c=(0,i.useRef)(null),d=(0,i.useRef)(null),[f=!1,h]=(0,u.T)({prop:r,defaultProp:a,onChange:o});return(0,i.createElement)(j,{scope:t,triggerRef:c,contentRef:d,contentId:(0,s.M)(),titleId:(0,s.M)(),descriptionId:(0,s.M)(),open:f,onOpenChange:h,onOpenToggle:(0,i.useCallback)(()=>h(e=>!e),[h]),modal:l},n)},U=E,W=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:a}=e,o=k(S,t);return(0,i.createElement)(C,{scope:t,forceMount:n},i.Children.map(r,e=>(0,i.createElement)(h.z,{present:n||o.open},(0,i.createElement)(f.h,{asChild:!0,container:a},e))))},q=_,$=A,K=Z,Y=F,X=z},83317:function(e,t,n){"use strict";let r;n.d(t,{XB:function(){return f}});var i=n(7896),a=n(2784),o=n(41816),l=n(72130),s=n(26215),u=n(86029);let c="dismissableLayer.update",d=(0,a.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=(0,a.forwardRef)((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:v,onDismiss:y,...x}=e,b=(0,a.useContext)(d),[w,j]=(0,a.useState)(null),[,k]=(0,a.useState)({}),E=(0,s.e)(t,e=>j(e)),S=Array.from(b.layers),[C]=[...b.layersWithOutsidePointerEventsDisabled].slice(-1),M=S.indexOf(C),P=w?S.indexOf(w):-1,_=b.layersWithOutsidePointerEventsDisabled.size>0,O=P>=M,T=function(e){let t=(0,u.W)(e),n=(0,a.useRef)(!1),r=(0,a.useRef)(()=>{});return(0,a.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));!O||n||(null==m||m(e),null==v||v(e),e.defaultPrevented||null==y||y())}),A=function(e){let t=(0,u.W)(e),n=(0,a.useRef)(!1);return(0,a.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;[...b.branches].some(e=>e.contains(t))||(null==g||g(e),null==v||v(e),e.defaultPrevented||null==y||y())});return!function(e){let t=(0,u.W)(e);(0,a.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t])}(e=>{P!==b.layers.size-1||(null==f||f(e),!e.defaultPrevented&&y&&(e.preventDefault(),y()))}),(0,a.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,a.useEffect)(()=>()=>{w&&(b.layers.delete(w),b.layersWithOutsidePointerEventsDisabled.delete(w),h())},[w,b]),(0,a.useEffect)(()=>{let e=()=>k({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,a.createElement)(l.WV.div,(0,i.Z)({},x,{ref:E,style:{pointerEvents:_?O?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.M)(e.onFocusCapture,A.onFocusCapture),onBlurCapture:(0,o.M)(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:(0,o.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,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,l.jH)(i,a):i.dispatchEvent(a)}},55070:function(e,t,n){"use strict";n.d(t,{EW:function(){return a}});var r=n(2784);let i=0;function a(){(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:o()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:o()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function o(){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),a=n(2784),o=n(26215),l=n(72130),s=n(86029);let u="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},f=(0,a.forwardRef)((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:f,onUnmountAutoFocus:v,...y}=e,[x,b]=(0,a.useState)(null),w=(0,s.W)(f),j=(0,s.W)(v),k=(0,a.useRef)(null),E=(0,o.e)(t,e=>b(e)),S=(0,a.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,a.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,a.useEffect)(()=>{if(x){g.add(S);let e=document.activeElement;if(!x.contains(e)){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),g.remove(S)},0)}}},[x,w,j,S]);let C=(0,a.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,a]=function(e){let t=h(e);return[p(t,e),p(t.reverse(),e)]}(t);r&&a?e.shiftKey||i!==a?e.shiftKey&&i===r&&(e.preventDefault(),n&&m(a,{select:!0})):(e.preventDefault(),n&&m(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,S.paused]);return(0,a.createElement)(l.WV.div,(0,i.Z)({tabIndex:-1},y,{ref:E,onKeyDown:C}))});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 g=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=v(r,e)).unshift(e)},remove(e){var t;null===(t=(r=v(r,e))[0])||void 0===t||t.resume()}});function v(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 s}});var r,i=n(2784),a=n(64680);let o=(r||(r=n.t(i,2)))["useId".toString()]||(()=>void 0),l=0;function s(e){let[t,n]=i.useState(o());return(0,a.b)(()=>{e||n(e=>null!=e?e:String(l++))},[e]),e||(t?`radix-${t}`:"")}},6500:function(e,t,n){"use strict";n.d(t,{h:function(){return l}});var r=n(7896),i=n(2784),a=n(28316),o=n(72130);let l=(0,i.forwardRef)((e,t)=>{var n;let{container:l=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...s}=e;return l?a.createPortal((0,i.createElement)(o.WV.div,(0,r.Z)({},s,{ref:t})),l):null})},28245:function(e,t,n){"use strict";n.d(t,{z:function(){return l}});var r=n(2784),i=n(28316),a=n(26215),o=n(64680);let l=e=>{let{present:t,children:n}=e,l=function(e){var t,n;let[a,l]=(0,r.useState)(),u=(0,r.useRef)({}),c=(0,r.useRef)(e),d=(0,r.useRef)("none"),[f,h]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,r.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return(0,r.useEffect)(()=>{let e=s(u.current);d.current="mounted"===f?e:"none"},[f]),(0,o.b)(()=>{let t=u.current,n=c.current;if(n!==e){let r=d.current,i=s(t);e?h("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?h("UNMOUNT"):n&&r!==i?h("ANIMATION_OUT"):h("UNMOUNT"),c.current=e}},[e,h]),(0,o.b)(()=>{if(a){let e=e=>{let t=s(u.current).includes(e.animationName);e.target===a&&t&&(0,i.flushSync)(()=>h("ANIMATION_END"))},t=e=>{e.target===a&&(d.current=s(u.current))};return a.addEventListener("animationstart",t),a.addEventListener("animationcancel",e),a.addEventListener("animationend",e),()=>{a.removeEventListener("animationstart",t),a.removeEventListener("animationcancel",e),a.removeEventListener("animationend",e)}}h("ANIMATION_END")},[a,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:(0,r.useCallback)(e=>{e&&(u.current=getComputedStyle(e)),l(e)},[])}}(t),u="function"==typeof n?n({present:l.isPresent}):r.Children.only(n),c=(0,a.e)(l.ref,u.ref);return"function"==typeof n||l.isPresent?(0,r.cloneElement)(u,{ref:c}):null};function s(e){return(null==e?void 0:e.animationName)||"none"}l.displayName="Presence"},72130:function(e,t,n){"use strict";n.d(t,{WV:function(){return l},jH:function(){return s}});var r=n(7896),i=n(2784),a=n(28316),o=n(99575);let l=["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:a,...l}=e,s=a?o.g7:t;return(0,i.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,i.createElement)(s,(0,r.Z)({},l,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function s(e,t){e&&(0,a.flushSync)(()=>e.dispatchEvent(t))}},99575:function(e,t,n){"use strict";n.d(t,{A4:function(){return s},g7:function(){return o}});var r=n(7896),i=n(2784),a=n(26215);let o=(0,i.forwardRef)((e,t)=>{let{children:n,...a}=e,o=i.Children.toArray(n),s=o.find(u);if(s){let e=s.props.children,n=o.map(t=>t!==s?t:i.Children.count(e)>1?i.Children.only(null):(0,i.isValidElement)(e)?e.props.children:null);return(0,i.createElement)(l,(0,r.Z)({},a,{ref:t}),(0,i.isValidElement)(e)?(0,i.cloneElement)(e,void 0,n):null)}return(0,i.createElement)(l,(0,r.Z)({},a,{ref:t}),n)});o.displayName="Slot";let l=(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],a=t[r];/^on[A-Z]/.test(r)?n[r]=(...e)=>{null==a||a(...e),null==i||i(...e)}:"style"===r?n[r]={...i,...a}:"className"===r&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:(0,a.F)(t,n.ref)}):i.Children.count(n)>1?i.Children.only(null):null});l.displayName="SlotClone";let s=({children:e})=>(0,i.createElement)(i.Fragment,null,e);function u(e){return(0,i.isValidElement)(e)&&e.type===s}},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 a}});var r=n(2784),i=n(86029);function a({prop:e,defaultProp:t,onChange:n=()=>{}}){let[a,o]=function({defaultProp:e,onChange:t}){let n=(0,r.useState)(e),[a]=n,o=(0,r.useRef)(a),l=(0,i.W)(t);return(0,r.useEffect)(()=>{o.current!==a&&(l(a),o.current=a)},[a,o,l]),n}({defaultProp:t,onChange:n}),l=void 0!==e,s=l?e:a,u=(0,i.W)(n);return[s,(0,r.useCallback)(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else o(t)},[l,e,o,u])]}},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?l.default:t,p=e.axisClassName,g=e.hideAxisLine,v=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,C=void 0===S?0:S,M=e.scale,P=e.tickFormat,_=e.tickLength,O=void 0===_?8:_,T=e.tickValues,A=e.top,N=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,h),R=null!=P?P:(0,u.default)(M),D=E===d.default.left,L=E===d.default.top,Z=L||E===d.default.bottom,F=(0,s.default)(M),z=D||L?-1:1,V=M.range(),B=(0,f.default)(C),I=(0,c.default)({x:Number(V[0])+.5-B.start,y:0},Z),H=(0,c.default)({x:Number(V[V.length-1])+.5+B.end,y:0},Z),U=(null!=T?T:(0,o.getTicks)(M,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,o.coerceNumber)(F(t));return{value:t,index:n,from:(0,c.default)({x:r,y:0},Z),to:(0,c.default)({x:r,y:O*z},Z),formattedValue:R(t,n,U)}});return r.default.createElement(a.Group,{className:(0,i.default)("visx-axis",p),top:void 0===A?0:A,left:void 0===b?0:b},n(m({},N,{axisFromPoint:I,axisToPoint:H,hideAxisLine:void 0!==g&&g,hideTicks:void 0!==v&&v,hideZero:x,horizontal:Z,numTicks:j,orientation:E,rangePadding:C,scale:M,tickFormat:R,tickLength:O,tickPosition:F,tickSign:z,ticks:W})))},p(n(13980));var r=p(n(2784)),i=p(n(72779)),a=n(71602),o=n(63243),l=p(n(58052)),s=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,l);return r.default.createElement(a.default,u({axisClassName:(0,i.default)("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:o.default.bottom,tickLabelProps:void 0===s?c:s,tickLength:void 0===d?8:d},f))};var r=s(n(2784)),i=s(n(72779)),a=s(n(81401)),o=s(n(87209)),l=["axisClassName","labelOffset","tickLabelProps","tickLength"];function s(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,l);return r.default.createElement(a.default,u({axisClassName:(0,i.default)("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:o.default.left,tickLabelProps:void 0===s?c:s,tickLength:void 0===d?8:d},f))},t.leftTickLabelProps=void 0;var r=s(n(2784)),i=s(n(72779)),a=s(n(81401)),o=s(n(87209)),l=["axisClassName","labelOffset","tickLabelProps","tickLength"];function s(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,l);return r.default.createElement(a.default,u({axisClassName:(0,i.default)("visx-axis-right",t),labelOffset:void 0===n?36:n,orientation:o.default.right,tickLabelProps:void 0===s?c:s,tickLength:void 0===d?8:d},f))},t.rightTickLabelProps=void 0;var r=s(n(2784)),i=s(n(72779)),a=s(n(81401)),o=s(n(87209)),l=["axisClassName","labelOffset","tickLabelProps","tickLength"];function s(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,l);return r.default.createElement(a.default,u({axisClassName:(0,i.default)("visx-axis-top",t),labelOffset:void 0===n?8:n,orientation:o.default.top,tickLabelProps:void 0===s?c:s,tickLength:void 0===d?8:d},f))},t.topTickLabelProps=void 0;var r=s(n(2784)),i=s(n(72779)),a=s(n(81401)),o=s(n(87209)),l=["axisClassName","labelOffset","tickLabelProps","tickLength"];function s(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=o()).done;){var l=r.value,s=Math.sqrt(Math.pow(l.x-e.x,2)+Math.pow(l.y-e.y,2));s0)?(0,i.default)(e,t):{x:(0,r.default)(e.x,null!=(a=n.xMin)?a:-1/0,null!=(o=n.xMax)?o:1/0),y:(0,r.default)(e.y,null!=(l=n.yMin)?l:-1/0,null!=(s=n.yMax)?s:1/0)}};var r=a(n(30968)),i=a(n(98929));function a(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(),a=0;a<=i;a+=n){var o=e.getPointAtLength(a).matrixTransform(t);r.push(o)}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],a=(0,r.useRef)(null),o=(0,r.useCallback)(function(e,t){a.current=t||null,i(e)},[i]);return(0,r.useLayoutEffect)(function(){a.current&&(a.current(n),a.current=null)},[n]),[n,o]};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 a}});var r=n(49833),i=n(44321);function a(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 l}});var r=n(19067),i=n(44321);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:a({},o);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}:a({},o)}(t),l=(0,i.vZ)(e)?e.ownerSVGElement:e,s=(0,i.DY)(l)?l.getScreenCTM():null;if((0,i.r4)(l)&&s){var u=l.createSVGPoint();return u.x=n.x,u.y=n.y,u=u.matrixTransform(s.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 a(e){return!!e&&"createSVGPoint"in e}function o(e){return!!e&&"getScreenCTM"in e}function l(e){return!!e&&"changedTouches"in e}function s(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 o},N5:function(){return s},cO:function(){return u},kK:function(){return r},r4:function(){return a},vZ:function(){return i},z6:function(){return l}})},21516:function(e,t,n){"use strict";t.__esModule=!0,t.default=p;var r=f(n(13980)),i=f(n(2784)),a=f(n(72779)),o=f(n(47440)),l=n(71602),s=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),C=null!=k?k:(0,u.getTicks)(r,void 0===b?10:b),M=(null!=j?j:0)+(0,c.default)(r)/2,P=C.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+M;return{index:t,from:new s.Point({x:i,y:0}),to:new s.Point({x:i,y:f})}});return i.default.createElement(l.Group,{className:(0,a.default)("visx-columns",x),top:void 0===t?0:t,left:void 0===n?0:n},E?E({lines:P}):P.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(o.default,h({key:"column-line-"+r,from:t,to:n,stroke:m,strokeWidth:v,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)),a=f(n(72779)),o=f(n(47440)),l=n(71602),s=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),C=null!=E?E:(0,u.getTicks)(r,void 0===w?10:w),M=(null!=k?k:0)+(0,c.default)(r)/2,P=C.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+M;return{index:t,from:new s.Point({x:0,y:i}),to:new s.Point({x:f,y:i})}});return i.default.createElement(l.Group,{className:(0,a.default)("visx-rows",x),top:void 0===t?0:t,left:void 0===n?0:n},b?b({lines:P}):P.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(o.default,h({key:"row-line-"+r,from:t,to:n,stroke:m,strokeWidth:v,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),a=n(2784),o=n(72779),l=n.n(o),s=["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,s);return a.createElement("g",u({ref:c,className:l()("visx-group",i),transform:r||"translate("+(void 0===n?0:n)+", "+(void 0===t?0:t)+")"},d),o)}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 a},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 a(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,l=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,o),s=(0,r.useMemo)(function(){return function(e){return r.default.createElement(a.default,u({},e,{tickComponent:n,animationTrajectory:t}))}},[t,n]);return r.default.createElement(i.default,u({},l,{ticksComponent:s}))},s(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=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(2784)),i=s(n(81401)),a=s(n(65154)),o=["animationTrajectory","tickComponent"];function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function s(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,o);return r.default.createElement(i.default,{scale:t,height:n,numTicks:l,tickValues:u,className:c,top:f,left:h},function(e){var n=e.lines;return r.default.createElement(a.default,s({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=l(n(2784)),i=l(n(21516)),a=l(n(55727)),o=["scale","height","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function l(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,l),h=(0,a.useTransition)(n,u({},(0,o.default)({scale:t,animateXOrY:s,animationTrajectory:r}),{key:c}));return i.default.createElement(i.default.Fragment,null,h(function(e,t,n){var r=e.fromX,o=e.toX,l=e.fromY,s=e.toY,c=e.opacity,h=n.key;return i.default.createElement(a.animated.line,u({key:h,x1:r,x2:o,y1:l,y2:s,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,l=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={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,o);return r.default.createElement(i.default,{scale:t,width:n,numTicks:l,tickValues:u,className:c,top:f,left:h},function(e){var n=e.lines;return r.default.createElement(a.default,s({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=l(n(2784)),i=l(n(34264)),a=l(n(55727)),o=["scale","width","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function l(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,l),v=(0,a.useRef)(null),y=(0,a.useRef)(0),x=(0,a.useState)({width:0,height:0,top:0,left:0}),b=x[0],w=x[1],j=(0,a.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})},s,{leading:m})},[s,m,f]);return(0,a.useEffect)(function(){var e=new o.ResizeObserver(function(e){void 0===e&&(e=[]),e.forEach(function(e){var t=e.contentRect,n=t.left,r=t.top,i=t.width,a=t.height;y.current=window.requestAnimationFrame(function(){j({width:i,height:a,top:r,left:n})})})});return v.current&&e.observe(v.current),function(){window.cancelAnimationFrame(y.current),e.disconnect(),null!=j&&j.cancel&&j.cancel()}},[j]),a.default.createElement("div",c({style:void 0===h?{width:"100%",height:"100%"}:h,ref:v,className:t},g),n(c({},b,{ref:v.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),a=n(70590),o=n(50630),l=n(34278),s=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,a.Z)(e);case"sqrt":return(0,o.Z)(e);case"symlog":return(0,l.Z)(e);case"time":return(0,s.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 C.Z},inferScaleType:function(){return E},scaleBand:function(){return r.Z},scaleCanBeZeroed:function(){return P.Z},scaleLinear:function(){return a.Z},scaleLog:function(){return f.Z},scaleOrdinal:function(){return p.Z},scalePoint:function(){return i.Z},scalePower:function(){return h.Z},scaleQuantile:function(){return g.Z},scaleQuantize:function(){return m.Z},scaleRadial:function(){return u},scaleSqrt:function(){return x.Z},scaleSymlog:function(){return v.Z},scaleThreshold:function(){return y.Z},scaleTime:function(){return c.Z},scaleUtc:function(){return d.Z},toString:function(){return M.Z},updateScale:function(){return j}});var r=n(26587),i=n(71646),a=n(8597),o=n(19637),l=n(25176),s=(0,l.Z)("domain","range","clamp","nice","round","unknown");function u(e){return s((0,o.Z)(),e)}var c=n(64183),d=n(61662),f=n(12430),h=n(70590),p=n(30558),m=n(73335),g=n(43634),v=n(34278),y=n(54229),x=n(50630),b=n(2663),w=l.Z.apply(void 0,l.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),C=n(71220),M=n(51519),P=n(34636)},25176:function(e,t,n){"use strict";n.d(t,{a:function(){return C},Z:function(){return P}});var r=n(88751),i=n(87286),a=n(43780),o=n(77636),l=n(78978),s={lab:r.Z,hcl:i.Z,"hcl-long":i.b,hsl:a.Z,"hsl-long":a.q,cubehelix:o.Z,"cubehelix-long":o.B,rgb:l.ZP},u=n(68603),c=n(54076),d=n(18450),f=n(50690),h=n(52546),p=n(76231),m=n(97344),g=n(12370),v=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:g.Z,hour:v.Z,minute:y.Z,month:x.Z,second:h.Z,week:b.Ox,year:w.Z},S=n(74672),C=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],M={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,a=n.step,o=(r?E[i]:k[i]).every(a);null!=o&&e.nice(o)}}}},zero:function(e,t){if("zero"in t&&!0===t.zero){var n=e.domain(),r=n[0],i=n[1],a=i=0||(i[n]=e[n]);return i}(e,l),y=(0,o.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",s({ref:g,className:a()("visx-arc",t),d:y(n)||""},v)):(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),C=(0,o.Nb)({innerRadius:void 0===u?0:u,outerRadius:h,cornerRadius:p,padRadius:y}),M=(0,o.ve)({startAngle:m,endAngle:g,padAngle:v,value:w,sort:x,sortValues:b}),P=M(void 0===l?[]:l);return j?r.createElement(r.Fragment,null,j({arcs:P,path:C,pie:M})):r.createElement(c.Z,{className:"visx-pie-arcs-group",top:n,left:i},P.map(function(e,n){return r.createElement("g",{key:"pie-arc-"+n},r.createElement("path",f({className:a()("visx-pie-arc",t),d:C(e)||"",fill:null==E||"string"==typeof E?E:E(e)},S)),null==s?void 0:s(C.centroid(e),e))}))}var p=n(63739),m=n(27079),g=["className","angle","radius","defined","curve","data","innerRef","children","fill"];function v(){return(v=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,g),p=(0,o.aJ)({angle:n,radius:i,defined:l,curve:s});return d?r.createElement(r.Fragment,null,d({path:p})):r.createElement("path",v({ref:c,className:a()("visx-line-radial",t),d:p(void 0===u?[]:u)||"",fill:void 0===f?"transparent":f},h))}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),v=(0,o.SO)({x:n,x0:i,x1:l,y:s,y0:u,y1:c,defined:void 0===f?function(){return!0}:f,curve:p});return t?r.createElement(r.Fragment,null,t({path:v})):r.createElement("path",b({ref:m,className:a()("visx-area",h),d:v(void 0===d?[]:d)||""},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,o.kn)({keys:l,value:v,order:y,offset:x}),C=(0,o.SO)({x:f,x0:h,x1:p,y0:m,y1:g,curve:u,defined:d}),M=S(s);return w?r.createElement(r.Fragment,null,w({stacks:M,path:C,stack:S})):r.createElement(c.Z,{top:n,left:i},M.map(function(e,n){return r.createElement("path",E({className:a()("visx-stack",t),key:"stack-"+n+"-"+(e.key||""),d:C(e)||"",fill:null==b?void 0:b(e.key,n)},j))}))}var C=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function M(){return(M=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,C);return r.createElement(S,M({className:t,top:n,left:i,keys:o,data:l,curve:s,defined:u,x:c,x0:d,x1:f,y0:h,y1:p,value:m,order:g,offset:v,color:y},b),x||function(e){var n=e.stacks,i=e.path;return n.map(function(e,n){return r.createElement("path",M({className:a()("visx-area-stack",t),key:"area-stack-"+n+"-"+(e.key||""),d:i(e)||"",fill:null==y?void 0:y(e.key,n)},b))})})}var _=n(14582),O=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 A=["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,A),v=T(u),y=t.map(function(e,t){return{index:t,x0:s(l(e)),bars:h.map(function(t,n){var r=e[t];return{index:n,key:t,value:r,width:v,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:a()("visx-bar-group",n),top:i,left:o},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(_.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},g))}))}))}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:s(r)||0,y:f(t)||0,color:p(t,n),width:h(r)||0}})}});return g?r.createElement(r.Fragment,null,g(x)):r.createElement(c.Z,{className:a()("visx-bar-group-horizontal",n),top:i,left:o},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(_.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},v))}))}))}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 B(e){return null==e?void 0:e.source}function I(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)();g&&j.keys(g),v&&(0,W.Z)(j.value,v),y&&j.order((0,q.ZP)(y)),x&&j.offset((0,$.ZP)(x));var k=j(t),E=T(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),a=p(f(t)),o="bandwidth"in h?h(l(t.data)):Math.max((h(l(t.data))||0)-E/2);return{bar:t,key:n,index:r,height:i,width:E,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:a()("visx-bar-stack",n),top:i,left:o},S.map(function(e){return e.bars.map(function(t){return r.createElement(_.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 G=["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,G),j=(0,F.Z)();g&&j.keys(g),v&&(0,W.Z)(j.value,v),y&&j.order((0,q.ZP)(y)),x&&j.offset((0,$.ZP)(x));var k=j(t),E=T(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),a=h(u(t)),o="bandwidth"in p?p(l(t.data)):Math.max((p(l(t.data))||0)-i/2);return{bar:t,key:n,index:r,height:E,width:i,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:a()("visx-bar-stack-horizontal",n),top:i,left:o},S.map(function(e){return e.bars.map(function(t){return r.createElement(_.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=l||ei({source:void 0===c?B:c,target:void 0===d?I:d,x:void 0===s?V:s,y:void 0===u?z:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",er({ref:o,className:a()("visx-link visx-link-horizontal-diagonal",t),d:h(i)||""},f))}var eo=["className","children","data","innerRef","path","x","y","source","target"];function el(){return(el=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eo),h=l||es({source:void 0===c?B:c,target:void 0===d?I:d,x:void 0===s?z:s,y:void 0===u?V:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",el({ref:o,className:a()("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=l||ef({source:void 0===c?B:c,target:void 0===d?I:d,angle:void 0===s?z:s,radius:void 0===u?V:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",ed({ref:o,className:a()("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 eg(){return(eg=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,em),p=l||ev({source:void 0===d?B:d,target:void 0===f?I:f,x:void 0===u?V:u,y:void 0===c?z:c,percent:void 0===s?.2:s});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",eg({ref:o,className:a()("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=l||ew({source:void 0===d?B:d,target:void 0===f?I:f,x:void 0===u?z:u,y:void 0===c?V:c,percent:void 0===s?.2:s});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",eb({ref:o,className:a()("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=l||eS({source:void 0===d?B:d,target:void 0===f?I:f,x:void 0===u?z:u,y:void 0===c?V:c,percent:void 0===s?.2:s});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",eE({ref:o,className:a()("visx-link visx-link-radial-curve",t),d:p(i)||""},h))}var eM=["className","children","innerRef","data","path","x","y","source","target"];function eP(){return(eP=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eM),h=l||e_({source:void 0===c?B:c,target:void 0===d?I:d,x:void 0===s?V:s,y:void 0===u?z:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",eP({ref:i,className:a()("visx-link visx-link-horizontal-line",t),d:h(o)||""},f))}var eT=["className","innerRef","data","path","x","y","source","target","children"];function eA(){return(eA=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eT),h=o||eN({source:void 0===u?B:u,target:void 0===c?I:c,x:void 0===l?z:l,y:void 0===s?V:s});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eA({ref:n,className:a()("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=o||eZ({source:void 0===u?B:u,target:void 0===c?I:c,x:void 0===l?z:l,y:void 0===s?V:s});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eL({ref:n,className:a()("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=o||eB({source:void 0===c?B:c,target:void 0===d?I:d,x:void 0===s?V:s,y:void 0===u?z:u,percent:void 0===l?.5:l});return f?r.createElement(r.Fragment,null,f({path:p})):r.createElement("path",eV({ref:n,className:a()("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=o||eW({source:void 0===c?B:c,target:void 0===d?I:d,x:void 0===s?z:s,y:void 0===u?V:u,percent:void 0===l?.5:l});return f?r.createElement(r.Fragment,null,f({path:p})):r.createElement("path",eU({ref:n,className:a()("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)+","+s*h+","+s*p+"\n L"+c*h+","+c*p+"\n "}}function eX(e){var t=e.className,n=e.innerRef,i=e.data,o=e.path,l=e.x,s=e.y,u=e.source,c=e.target,d=e.children,f=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,e$),h=o||eY({source:void 0===u?B:u,target:void 0===c?I:c,x:void 0===l?z:l,y:void 0===s?V:s});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eK({ref:n,className:a()("visx-link visx-link-radial-step",t),d:h(i)||""},f))}var eG=["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,eG),f=c||e1({sides:void 0===t?4:t,size:void 0===n?25:n,center:void 0===i?eQ:i,rotate:void 0===o?0:o}).map(function(e){return[e.x,e.y]});return s?r.createElement(r.Fragment,null,s({points:f})):r.createElement("polygon",eJ({ref:u,className:a()("visx-polygon",l),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:a()("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<=s;m+=o){for(var g=l.getPointAtLength(m),v=g[i];p=w[E+1];)E+=1;c[E].push(C)}}return c}catch(e){return[]}}({path:p,segmentation:l,pointsInSegments:h,sampleRate:s})},[p,l,h,s]);return r.createElement("g",null,g.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),a=n.n(i),o=n(26078),l=n(52511),s=["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,s),w=(0,l.SO)({x:t,x0:n,x1:i,defined:void 0===m?function(){return!0}:m,curve:v});return(null==f?w.y0(h.range()[0]):(0,o.Z)(w.y0,f),c&&!d&&(0,o.Z)(w.y1,c),d&&!c&&(0,o.Z)(w.y1,d),x)?r.createElement(r.Fragment,null,x({path:w})):r.createElement("path",u({ref:y,className:a()("visx-area-closed",g),d:w(void 0===p?[]:p)||""},b))}},14582:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2784),i=n(72779),a=n.n(i),o=["className","innerRef"];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);return r.createElement("rect",l({ref:n,className:a()("visx-bar",t)},i))}},10897:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2784),i=n(72779),a=n.n(i),o=["children","className","innerRef","x","y","width","height","radius","all","top","bottom","left","right","topLeft","topRight","bottomLeft","bottomRight"];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),z=(n=(t={x:E,y:S,width:C,height:M,radius:P,all:void 0!==_&&_,top:void 0!==O&&O,bottom:void 0!==T&&T,left:void 0!==A&&A,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,s=t.bottomLeft,u=t.bottomRight,c=t.height,d=t.left,f=t.radius,h=t.right,p=t.top,m=t.topLeft,g=t.topRight,v=t.width,y=t.x,x=t.y,g=n||p||h||g,u=n||i||h||u,s=n||i||d||s,m=n||p||d||m,b=2*(f=Math.max(1,Math.min(f,Math.min(v,c)/2))),("M"+(y+f)+","+x+" h"+(v-b)+"\n "+(g?"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-v)+"\n "+(s?"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",l({ref:k,className:a()("visx-bar-rounded",j),d:z},F))}},63739:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2784),i=n(72779),a=n.n(i),o=["from","to","fill","className","innerRef"];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===s.x||n.y===s.y;return r.createElement("line",l({ref:d,className:a()("visx-line",c),x1:n.x,y1:n.y,x2:s.x,y2:s.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),a=n.n(i),o=n(52511),l=["children","data","x","y","fill","className","curve","innerRef","defined"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,l),g=(0,o.jv)({x:i,y:u,defined:void 0===p?function(){return!0}:p,curve:f});return t?r.createElement(r.Fragment,null,t({path:g})):r.createElement("path",s({ref:h,className:a()("visx-linepath",d),d:g(void 0===n?[]:n)||"",fill:void 0===c?"transparent":c,strokeLinecap:"round"},m))}},52511:function(e,t,n){"use strict";n.d(t,{Nb:function(){return f},SO:function(){return h},aJ:function(){return g},jv:function(){return p},kn:function(){return v},ve:function(){return m}});var r=n(38764),i=n(79493),a=n(79767),o=n(69619),l=n(8329),s=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,a=t.cornerRadius,o=t.startAngle,l=t.endAngle,s=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!=a&&(0,u.Z)(d.cornerRadius,a),null!=o&&(0,u.Z)(d.startAngle,o),null!=l&&(0,u.Z)(d.endAngle,l),null!=s&&(0,u.Z)(d.padAngle,s),null!=c&&(0,u.Z)(d.padRadius,c),d}function h(e){var t=void 0===e?{}:e,n=t.x,r=t.x0,a=t.x1,o=t.y,l=t.y0,s=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),a&&(0,u.Z)(f.x1,a),o&&(0,u.Z)(f.y,o),l&&(0,u.Z)(f.y0,l),s&&(0,u.Z)(f.y1,s),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,o=t.curve,l=(0,a.Z)();return n&&(0,u.Z)(l.x,n),r&&(0,u.Z)(l.y,r),i&&l.defined(i),o&&l.curve(o),l}function m(e){var t=void 0===e?{}:e,n=t.startAngle,r=t.endAngle,i=t.padAngle,a=t.value,l=t.sort,s=t.sortValues,c=(0,o.Z)();return null===l?c.sort(l):null!=l&&c.sort(l),null===s?c.sortValues(s):null!=s&&c.sortValues(s),null!=a&&c.value(a),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 g(e){var t=void 0===e?{}:e,n=t.angle,r=t.radius,i=t.defined,a=t.curve,o=(0,l.Z)();return n&&(0,u.Z)(o.angle,n),r&&(0,u.Z)(o.radius,r),i&&o.defined(i),a&&o.curve(a),o}function v(e){var t=e.keys,n=e.value,r=e.order,i=e.offset,a=(0,s.Z)();return t&&a.keys(t),n&&(0,u.Z)(a.value,n),r&&a.order((0,c.ZP)(r)),i&&a.offset((0,d.ZP)(i)),a}},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 s}});var r=n(22254),i=n(76751),a=n(90541),o=n(36538),l=n(34928),s={expand:r.Z,diverging:i.Z,none:a.Z,silhouette:o.Z,wiggle:l.Z},u=Object.keys(s);function c(e){return e&&s[e]||s.none}},44081:function(e,t,n){"use strict";n.d(t,{ZP:function(){return c},s2:function(){return u},un:function(){return s}});var r=n(19721),i=n(82564),a=n(12197),o=n(81182),l=n(40277),s={ascending:r.Z,descending:i.Z,insideout:a.Z,none:o.Z,reverse:l.Z},u=Object.keys(s);function c(e){return e&&s[e]||s.none}},12935:function(e,t,n){"use strict";t.Z=function(e){var t=e.children,n=e.x,l=e.x0,u=e.x1,c=e.y,d=e.y0,f=e.y1,h=e.data,p=e.defined,m=e.className,g=e.curve,v=e.innerRef,y=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,o),x=(0,a.area)({x:n,x0:l,x1:u,y:c,y0:d,y1:f,defined:void 0===p?function(){return!0}:p,curve:g});return t?r.default.createElement(r.default.Fragment,null,t({path:x})):r.default.createElement("path",s({ref:v,className:(0,i.default)("visx-area",m),d:x(void 0===h?[]:h)||""},y))};var r=l(n(2784)),i=l(n(72779)),a=n(15601),o=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function l(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),h=n.x===s.x||n.y===s.y;return r.default.createElement("line",l({ref:d,className:(0,i.default)("visx-line",c),x1:n.x,y1:n.y,x2:s.x,y2:s.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))};var r=o(n(2784)),i=o(n(72779)),a=["from","to","fill","className","innerRef"];function o(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),g=(0,a.line)({x:l,y:u,defined:void 0===p?function(){return!0}:p,curve:f});return t?r.default.createElement(r.default.Fragment,null,t({path:g})):r.default.createElement("path",s({ref:h,className:(0,i.default)("visx-linepath",d),d:g(void 0===n?[]:n)||"",fill:void 0===c?"transparent":c,strokeLinecap:"round"},m))};var r=l(n(2784)),i=l(n(72779)),a=n(15601),o=["children","data","x","y","fill","className","curve","innerRef","defined"];function l(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)),p=h.x,m=void 0===p?0:p,g=h.fontSize,v=(0,i.Z)(e),y=v.wordsByLines,x=v.startDy,b=v.transform;return r.createElement("svg",{ref:u,x:void 0===t?0:t,y:void 0===n?0:n,fontSize:g,style:l},y.length>0?r.createElement("text",o({ref:c,transform:b},h,{textAnchor:void 0===s?"start":s}),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),a=n.n(i),o=n(75715),l=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function s(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,g=void 0===m?"0.71em":m,v=e.children,y=e.style,x=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,l),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==v?[]:v.toString().split(/(?:(?!\u00A0+)\s+)/)).map(function(e){return{word:e,wordWidth:(0,o.Z)(e,y)||0}}),spaceWidth:(0,o.Z)("\xa0",y)||0}},[v,y]),C=S.wordsWithWidth,M=S.spaceWidth,P=(0,r.useMemo)(function(){return E?[]:f||c?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+M0){var t=P[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,P,d]);return{wordsByLines:P,startDy:_,transform:O}}},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 a.Z}});var r=n(64170),i=n(75715),a=n(89907)},75715:function(e,t,n){"use strict";var r=n(30733),i=n.n(r),a="__react_svg_text_measurement_id";t.Z=i()(function(e,t){try{var n=document.getElementById(a);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",a),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 l}});var r=new WeakMap,i=new WeakMap,a={},o=0,l=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 l=Array.isArray(e)?e:[e];a[n]||(a[n]=new WeakMap);var s=a[n],u=[],c=new Set,d=function(e){!e||c.has(e)||(c.add(e),d(e.parentNode))};l.forEach(d);var f=function(e){!e||l.indexOf(e)>=0||Array.prototype.forEach.call(e.children,function(e){if(c.has(e))f(e);else{var t=e.getAttribute("aria-hidden"),a=null!==t&&"false"!==t,o=(r.get(e)||0)+1,l=(s.get(e)||0)+1;r.set(e,o),s.set(e,l),u.push(e),1===o&&a&&i.set(e,!0),1===l&&e.setAttribute(n,"true"),a||e.setAttribute("aria-hidden","true")}})};return f(t),c.clear(),o++,function(){u.forEach(function(e){var t=r.get(e)-1,a=s.get(e)-1;r.set(e,t),s.set(e,a),t||(i.has(e)||e.removeAttribute("aria-hidden"),i.delete(e)),a||e.removeAttribute(n)}),--o||(r=new WeakMap,r=new WeakMap,i=new WeakMap,a={})}}},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(),a=i.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?a===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),a=n(92233),o=n(68030),l=n(97948),s=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,g=e.headers,v=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(m)&&r.isStandardBrowserEnv()&&delete g["Content-Type"];var x=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(b+":"+w)}var j=l(e.baseURL,e.url);function k(){if(x){var r="getAllResponseHeaders"in x?s(x.getAllResponseHeaders()):null;i(function(e){t(e),y()},function(e){n(e),y()},{data:v&&"text"!==v&&"json"!==v?x.response:x.responseText,status:x.status,statusText:x.statusText,headers:r,config:e,request:x}),x=null}}if(x.open(e.method.toUpperCase(),o(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?a.read(e.xsrfCookieName):void 0;E&&(g[e.xsrfHeaderName]=E)}"setRequestHeader"in x&&r.forEach(g,function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete g[t]:x.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(x.withCredentials=!!e.withCredentials),v&&"json"!==v&&(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),a=n(62215),o=n(92937),l=function e(t){var n=new a(t),l=i(a.prototype.request,n);return r.extend(l,a.prototype,n),r.extend(l,n),l.create=function(n){return e(o(t,n))},l}(n(10663));l.Axios=a,l.CanceledError=n(68047),l.CancelToken=n(34089),l.isCancel=n(98041),l.VERSION=n(29241).version,l.toFormData=n(49027),l.AxiosError=n(21218),l.Cancel=l.CanceledError,l.all=function(e){return Promise.all(e)},l.spread=n(70783),l.isAxiosError=n(65587),e.exports=l,e.exports.default=l},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, */*"}}};a.forEach(["delete","get","head"],function(e){f.headers[e]={}}),a.forEach(["post","put","patch"],function(e){f.headers[e]=a.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?o[t]=(o[t]?o[t]:[]).concat([n]):o[t]=o[t]?o[t]+", "+n:n)}),o}},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 a(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,o){if(i.isPlainObject(r)||i.isArray(r)){if(-1!==n.indexOf(r))throw Error("Circular reference detected in "+o);n.push(r),i.forEach(r,function(n,r){if(!i.isUndefined(n)){var l,s=o?o+"."+r:r;if(n&&!o&&"object"==typeof n){if(i.endsWith(r,"{}"))n=JSON.stringify(n);else if(i.endsWith(r,"[]")&&(l=i.toArray(n))){l.forEach(function(e){i.isUndefined(e)||t.append(s,a(e))});return}}e(n,s)}}),n.pop()}else t.append(o,a(r))}(e),t}},17525:function(e,t,n){"use strict";var r=n(29241).version,i=n(21218),a={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){a[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var o={};a.transitional=function(e,t,n){function a(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,l){if(!1===e)throw new i(a(r," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!o[r]&&(o[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,l)}},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),a=r.length;a-- >0;){var o=r[a],l=t[o];if(l){var s=e[o],u=void 0===s||l(s,o,e);if(!0!==u)throw new i("option "+o+" must be "+u,i.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new i("Unknown option "+o,i.ERR_BAD_OPTION)}},validators:a}},93044:function(e,t,n){"use strict";var r,i,a=n(73644),o=Object.prototype.toString,l=(r=Object.create(null),function(e){var t=o.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return l(t)===e}}function u(e){return Array.isArray(e)}function c(e){return void 0===e}var d=s("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function h(e){if("object"!==l(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=s("Date"),m=s("File"),g=s("Blob"),v=s("FileList");function y(e){return"[object Function]"===o.call(e)}var x=s("URLSearchParams");function b(e,t){if(null!=e){if("object"!=typeof e&&(e=[e]),u(e))for(var n=0,r=e.length;n0;)o[a=r[i]]||(t[a]=e[a],o[a]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:l,kindOfTest:s,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:v}},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 a=r(e,t,i);return a&&{start:a[0],end:a[1],pre:i.slice(0,a[0]),body:i.slice(a[0]+e.length,a[1]),post:i.slice(a[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,a,o,l,s=n.indexOf(e),u=n.indexOf(t,s+1),c=s;if(s>=0&&u>0){if(e===t)return[s,u];for(r=[],a=n.length;c>=0&&!l;)c==s?(r.push(c),s=n.indexOf(e,c+1)):1==r.length?l=[r.pop(),u]:((i=r.pop())=0?s:u;r.length&&(l=[a,o])}return l}e.exports=t,t.range=r},95766:function(e,t){"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,a=s(e),o=a[0],l=a[1],u=new i((o+l)*3/4-l),c=0,d=l>0?o-4:o;for(n=0;n>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===l&&(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,a=[],o=0,l=r-i;o>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}(e,o,o+16383>l?l:o+16383));return 1===i?a.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&a.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),a.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,l=a.length;o0)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 a,o=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,l=Math.ceil,s=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,a=e[0]+"";ru^n?1:-1;for(o=0,l=(s=i.length)<(u=a.length)?s:u;oa[o]^n?1:-1;return s==u?0:s>u^n?1:-1}function m(e,t,n,r){if(en||e!==s(e))throw Error(u+(r||"Argument")+("number"==typeof e?en?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function g(e){var t=e.c.length-1;return f(e.e/14)==t&&e.c[t]%2!=0}function v(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;l/=10,a++);a>T?h.c=h.e=null:(h.e=a,h.c=[e]);return}f=String(e)}else{if(!o.test(f=String(e)))return k(h,f,u);h.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(a=f.indexOf("."))>-1&&(f=f.replace(".","")),(l=f.search(/e/i))>0?(a<0&&(a=l),a+=+f.slice(l+1),f=f.substring(0,l)):a<0&&(a=f.length)}else{if(m(t,2,L.length,"Base"),10==t&&Z)return I(h=new F(e),C+h.e+1,M);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),a=l=0,d=f.length;ln.indexOf(r=f.charAt(l))){if("."==r){if(l>a){a=d;continue}}else if(!i&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){i=!0,l=-1,a=0;continue}return k(h,String(e),u,t)}u=!1,(a=(f=j(f,t,10,h.s)).indexOf("."))>-1?f=f.replace(".",""):a=f.length}for(l=0;48===f.charCodeAt(l);l++);for(d=f.length;48===f.charCodeAt(--d););if(f=f.slice(l,++d)){if(d-=l,u&&F.DEBUG&&d>15&&(e>9007199254740991||e!==s(e)))throw Error(c+h.s*e);if((a=a-l-1)>T)h.c=h.e=null;else if(a=_)?v(s,o):y(s,o,"0");else if(a=(e=I(new F(e),t,n)).e,l=(s=h(e.c)).length,1==r||2==r&&(t<=a||a<=P)){for(;ll){if(--t>0)for(s+=".";t--;s+="0");}else if((t+=a-l)>0)for(a+1==l&&(s+=".");t--;s+="0");return e.s<0&&i?"-"+s:s}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((a=t-i)<0)a+=14,o=t,h=(c=p[f=0])/d[i-o-1]%10|0;else if((f=l((a+1)/14))>=p.length){if(r){for(;p.length<=f;p.push(0));c=h=0,i=1,a%=14,o=a-14+1}else break e}else{for(i=1,c=u=p[f];u>=10;u/=10,i++);a%=14,h=(o=a-14+i)<0?0:c/d[i-o-1]%10|0}if(r=r||t<0||null!=p[f+1]||(o<0?c:c%d[i-o-1]),r=n<4?(h||r)&&(0==n||n==(e.s<0?3:2)):h>5||5==h&&(4==n||r||6==n&&(a>0?o>0?c/d[i-o]: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==a?(p.length=f,u=1,f--):(p.length=f+1,u=d[14-a],p[f]=o>0?s(c/d[i-o]%d[o])*u:0),r)for(;;){if(0==f){for(a=1,o=p[0];o>=10;o/=10,a++);for(o=p[0]+=u,u=1;o>=10;o/=10,u++);a!=u&&(e.e++,1e14==p[0]&&(p[0]=1));break}if(p[f]+=u,1e14!=p[f])break;p[f--]=0,u=1}for(a=p.length;0===p[--a];p.pop());}e.e>T?e.c=e.e=null:e.e=_?v(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),C=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(m(n=e[t],0,8,t),M=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(m(n[0],-1e9,0,t),m(n[1],0,1e9,t),P=n[0],_=n[1]):(m(n,-1e9,1e9,t),P=-(_=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),O=n[0],T=n[1];else if(m(n,-1e9,1e9,t),n)O=-(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))A=n;else throw A=!n,Error(u+"crypto unavailable")}else A=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:C,ROUNDING_MODE:M,EXPONENTIAL_AT:[P,_],RANGE:[O,T],CRYPTO:A,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,a=e.s;e:if("[object Array]"==({}).toString.call(r)){if((1===a||-1===a)&&i>=-1e9&&i<=1e9&&i===s(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!==s(n))break e;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===a||1===a||-1===a))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 s(9007199254740992*Math.random())}:function(){return(1073741824*Math.random()|0)*8388608+(8388608*Math.random()|0)},function(e){var t,r,i,a,o,c=0,f=[],h=new F(S);if(null==e?e=C:m(e,0,1e9),a=l(e/14),A){if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(a*=2));c>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[c]=r[0],t[c+1]=r[1]):(f.push(o%1e14),c+=2);c=a/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(a*=7);c=9e15?crypto.randomBytes(7).copy(t,c):(f.push(o%1e14),c+=7);c=a/7}else throw A=!1,Error(u+"crypto unavailable")}if(!A)for(;c=10;o/=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==o[i+1]&&(o[i+1]=0),o[i+1]+=o[i]/n|0,o[i]%=n)}return o.reverse()}return function(n,r,i,a,o){var l,s,u,c,d,f,p,m,g=n.indexOf("."),v=C,x=M;for(g>=0&&(c=R,R=0,n=n.replace(".",""),f=(m=new F(r)).pow(n.length-g),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,o?(l=L,e):(l=e,L))).length;0==p[--c];p.pop());if(!p[0])return l.charAt(0);if(g<0?--u:(f.c=p,f.e=u,f.s=a,p=(f=w(f,m,v,x,i)).c,d=f.r,u=f.e),g=p[s=u+v+1],c=i/2,d=d||s<0||null!=p[s+1],d=x<4?(null!=g||d)&&(0==x||x==(f.s<0?3:2)):g>c||g==c&&(4==x||d||6==x&&1&p[s-1]||x==(f.s<0?8:7)),s<1||!p[0])n=d?y(l.charAt(1),-v,l.charAt(0)):l.charAt(0);else{if(p.length=s,d)for(--i;++p[--s]>i;)p[s]=0,s||(++u,p=[1].concat(p));for(c=p.length;!p[--c];);for(g=0,n="";g<=c;n+=l.charAt(p[g++]));n=y(n,u,l.charAt(0))}return n}}(),w=function(){function e(e,t,n){var r,i,a,o,l=0,s=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();s--;)r=c*(a=e[s]%1e7)+(o=e[s]/1e7|0)*u,l=((i=u*a+r%1e7*1e7+l)/n|0)+(r/1e7|0)+c*o,e[s]=i%n;return l&&(e=[l].concat(e)),e}function t(e,t,n,r){var i,a;if(n!=r)a=n>r?1:-1;else for(i=a=0;it[i]?1:-1;break}return a}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,a,o,l){var u,c,d,h,p,m,g,v,y,x,b,w,j,k,E,S,C,M=r.s==i.s?1:-1,P=r.c,_=i.c;if(!P||!P[0]||!_||!_[0])return new F(r.s&&i.s&&(P?!_||P[0]!=_[0]:_)?P&&0==P[0]||!_?0*M:M/0:NaN);for(y=(v=new F(M)).c=[],M=a+(c=r.e-i.e)+1,l||(l=1e14,c=f(r.e/14)-f(i.e/14),M=M/14|0),d=0;_[d]==(P[d]||0);d++);if(_[d]>(P[d]||0)&&c--,M<0)y.push(1),h=!0;else{for(k=P.length,S=_.length,d=0,M+=2,(p=s(l/(_[0]+1)))>1&&(_=e(_,p,l),P=e(P,p,l),S=_.length,k=P.length),j=S,b=(x=P.slice(0,S)).length;b=l/2&&E++;do{if(p=0,(u=t(_,x,S,b))<0){if(w=x[0],S!=b&&(w=w*l+(x[1]||0)),(p=s(w/E))>1)for(p>=l&&(p=l-1),g=(m=e(_,p,l)).length,b=x.length;1==t(m,x,g,b);)p--,n(m,St(_,x,S,b);)p++,n(x,S=10;M/=10,d++);I(v,a+(v.e=d+14*c-1)+1,o,h)}else v.e=c,v.r=+h;return v}}(),r=/^(-?)0([xbo])(?=\w[\w.]*$)/i,i=/^([^.]+)\.$/,a=/^\.([^.]+)$/,x=/^-?(Infinity|NaN)$/,b=/^\s*\+(?=[\w.])|^\s+|\s+$/g,k=function(e,t,n,o){var l,s=n?t:t.replace(b,"");if(x.test(s))e.s=isNaN(s)?null:s<0?-1:1;else{if(!n&&(s=s.replace(r,function(e,t,n){return l="x"==(n=n.toLowerCase())?16:"b"==n?2:8,o&&o!=l?e:t}),o&&(l=o,s=s.replace(i,"$1").replace(a,"0.$1")),t!=s))return new F(s,l);if(F.DEBUG)throw Error(u+"Not a"+(o?" base "+o:"")+" 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=M:m(t,0,8),I(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,M)},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,a,o,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-g(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 a=p.s<0&&g(e)?-0:0,p.e>-1&&(a=1/a),new F(d?1/a:a);R&&(a=l(R/14+2))}for(c?(n=new F(.5),d&&(e.s=1),f=g(e)):f=(i=Math.abs(+H(e)))%2,h=new F(S);;){if(f){if(!(h=h.times(p)).c)break;a?h.c.length>a&&(h.c.length=a):r&&(h=h.mod(t))}if(i){if(0===(i=s(i/2)))break;f=i%2}else if(I(e=e.times(n),e.e+1,1),e.e>14)f=g(e);else{if(0==(i=+H(e)))break;f=i%2}p=p.times(p),a?p.c&&p.c.length>a&&(p.c.length=a):r&&(p=p.mod(t))}return r?h:(d&&(h=S.div(h)),t?h.mod(t):a?I(h,R,M,o):h)},E.integerValue=function(e){var t=new F(this);return null==e?e=M:m(e,0,8),I(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,a,o=this.s;if(t=(e=new F(e,t)).s,!o||!t)return new F(NaN);if(o!=t)return e.s=-t,this.plus(e);var l=this.e/14,s=e.e/14,u=this.c,c=e.c;if(!l||!s){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==M?-0:0)}if(l=f(l),s=f(s),u=u.slice(),o=l-s){for((a=o<0)?(o=-o,i=u):(s=l,i=c),i.reverse(),t=o;t--;i.push(0));i.reverse()}else for(r=(a=(o=u.length)<(t=c.length))?o:t,o=t=0;t0)for(;t--;u[n++]=0);for(t=1e14-1;r>o;){if(u[--r]=0;){for(n=0,h=v[i]%1e7,p=v[i]/1e7|0,a=i+(o=s);a>i;)l=p*(u=g[--o]%1e7)+(c=g[o]/1e7|0)*h,n=((u=h*u+l%1e7*1e7+m[a]+n)/1e14|0)+(l/1e7|0)+p*c,m[a--]=u%1e14;m[a]=n}return n?++r:m.splice(0,1),B(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,a=e.e/14,o=this.c,l=e.c;if(!i||!a){if(!o||!l)return new F(r/0);if(!o[0]||!l[0])return l[0]?e:new F(o[0]?this:0*r)}if(i=f(i),a=f(a),o=o.slice(),r=i-a){for(r>0?(a=i,n=l):(r=-r,n=o),n.reverse();r--;n.push(0));n.reverse()}for((r=o.length)-(t=l.length)<0&&(n=l,l=o,o=n,t=r),r=0;t;)r=(o[--t]=o[t]+l[t]+r)/1e14|0,o[t]=1e14===o[t]?0:o[t]%1e14;return r&&(o=[r].concat(o),++a),B(e,o,a)},E.precision=E.sd=function(e,t){var n,r,i;if(null!=e&&!!e!==e)return m(e,1,1e9),null==t?t=M:m(t,0,8),I(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,a=this.c,o=this.s,l=this.e,s=C+4,u=new F("0.5");if(1!==o||!a||!a[0])return new F(!o||o<0&&(!a||a[0])?NaN:a?this:1/0);if(0==(o=Math.sqrt(+H(this)))||o==1/0?(((t=h(a)).length+l)%2==0&&(t+="0"),o=Math.sqrt(+t),l=f((l+1)/2)-(l<0||l%2),n=new F(t=o==1/0?"5e"+l:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+l)):n=new F(o+""),n.c[0]){for((o=(l=n.e)+s)<3&&(o=0);;)if(i=n,n=u.times(i.plus(w(this,i,s,1))),h(i.c).slice(0,o)===(t=h(n.c)).slice(0,o)){if(n.e0&&p>0){for(i=p%o||o,c=h.substr(0,i);i0&&(c+=s+h.slice(i)),f&&(c="-"+c)}r=d?c+(n.decimalSeparator||"")+((l=+n.fractionGroupSize)?d.replace(RegExp("\\d{"+l+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):d):c}return(n.prefix||"")+r+(n.suffix||"")},E.toFraction=function(e){var t,n,r,i,a,o,l,s,c,f,p,m,g=this.c;if(null!=e&&(!(l=new F(e)).isInteger()&&(l.c||1!==l.s)||l.lt(S)))throw Error(u+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+H(l));if(!g)return new F(this);for(t=new F(S),c=n=new F(S),r=s=new F(S),m=h(g),a=t.e=m.length-this.e-1,t.c[0]=d[(o=a%14)<0?14+o:o],e=!e||l.comparedTo(t)>0?a>0?t:c:l,o=T,T=1/0,l=new F(m),s.c[0]=0;f=w(l,t,0,1),1!=(i=n.plus(f.times(r))).comparedTo(e);)n=r,r=i,c=s.plus(f.times(i=c)),s=i,t=l.minus(f.times(i=t)),l=i;return i=w(e.minus(n),r,0,1),s=s.plus(i.times(c)),n=n.plus(i.times(r)),s.s=c.s=this.s,a*=2,p=1>w(c,r,a,M).minus(this).abs().comparedTo(w(s,n,a,M).minus(this).abs())?[c,r]:[s,n],T=o,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<=P||i>=_?v(h(n.c),i):y(h(n.c),i,"0"):10===e&&Z?t=y(h((n=I(new F(n),C+i+1,M)).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=a.BigNumber=a,void 0!==(r=(function(){return a}).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 a(e,t,n,r){let i=e[t]+n;n<0&&(i+=4294967296);let a=e[t+1]+r;i>=4294967296&&a++,e[t]=i,e[t+1]=a}function o(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function l(e,t,n,r,o,l){let s=d[o],u=d[o+1],f=d[l],h=d[l+1];i(c,e,t),a(c,e,s,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),a(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 s=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]=s[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]=o(e.b,4*n);for(n=0;n<12;n++)l(0,8,16,24,u[16*n+0],u[16*n+1]),l(2,10,18,26,u[16*n+2],u[16*n+3]),l(4,12,20,28,u[16*n+4],u[16*n+5]),l(6,14,22,30,u[16*n+6],u[16*n+7]),l(0,10,20,30,u[16*n+8],u[16*n+9]),l(2,12,22,24,u[16*n+10],u[16*n+11]),l(4,14,16,26,u[16*n+12],u[16*n+13]),l(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]=s[e]^o(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 v(e,t,n,i,a){n=n||64,e=r.normalizeInput(e),i&&(i=r.normalizeInput(i)),a&&(a=r.normalizeInput(a));let o=p(n,t,i,a);return m(o,e),g(o)}e.exports={blake2b:v,blake2bHex:function(e,t,n,i,a){let o=v(e,t,n,i,a);return r.toHex(o)},blake2bInit:p,blake2bUpdate:m,blake2bFinal:g}},39962:function(e,t,n){let r=n(7967);function i(e,t,n,r,i,o){s[e]=s[e]+s[t]+i,s[r]=a(s[r]^s[e],16),s[n]=s[n]+s[r],s[t]=a(s[t]^s[n],12),s[e]=s[e]+s[t]+o,s[r]=a(s[r]^s[e],8),s[n]=s[n]+s[r],s[t]=a(s[t]^s[n],7)}function a(e,t){return e>>>t^e<<32-t}let o=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),l=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]),s=new Uint32Array(16),u=new Uint32Array(16);function c(e,t){let n=0;for(n=0;n<8;n++)s[n]=e.h[n],s[n+8]=o[n];for(s[12]^=e.t,s[13]^=e.t/4294967296,t&&(s[14]=~s[14]),n=0;n<16;n++){var r,a;u[n]=(r=e.b)[a=4*n]^r[a+1]<<8^r[a+2]<<16^r[a+3]<<24}for(n=0;n<10;n++)i(0,4,8,12,u[l[16*n+0]],u[l[16*n+1]]),i(1,5,9,13,u[l[16*n+2]],u[l[16*n+3]]),i(2,6,10,14,u[l[16*n+4]],u[l[16*n+5]]),i(3,7,11,15,u[l[16*n+6]],u[l[16*n+7]]),i(0,5,10,15,u[l[16*n+8]],u[l[16*n+9]]),i(1,6,11,12,u[l[16*n+10]],u[l[16*n+11]]),i(2,7,8,13,u[l[16*n+12]],u[l[16*n+13]]),i(3,4,9,14,u[l[16*n+14]],u[l[16*n+15]]);for(n=0;n<8;n++)e.h[n]^=s[n]^s[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(o),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)t=new TextEncoder().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 a=0;ae?t.activeTargets.push(n):t.skippedTargets.push(n))})})},T=function(){var e=0;for(O(0);o.some(function(e){return e.activeTargets.length>0});)O(e=_());return o.some(function(e){return e.skippedTargets.length>0})&&s(),e>0},P=[],A=function(e){if(!a){var t=0,n=document.createTextNode("");new MutationObserver(function(){return P.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),a=function(){n.textContent=""+(t?t--:t++)}}P.push(e),a()},N=function(e){A(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():g.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 g.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),L.forEach(function(t){return g.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),V=function(e){!R&&e>0&&z.start(),(R+=e)||z.stop()},B=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}(),I=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&&o.push(r),r.observationTargets.push(new B(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&&o.splice(o.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 a}});var r=n(2784);function i(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function a(...e){return(0,r.useCallback)(i(...e),e)}},34540:function(e,t,n){"use strict";n.d(t,{b:function(){return a},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,a=(0,r.useMemo)(()=>i,Object.values(i));return(0,r.createElement)(n.Provider,{value:a},t)}return i.displayName=e+"Provider",[i,function(i){let a=(0,r.useContext)(n);if(a)return a;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function a(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 a=(0,r.createContext)(i),o=n.length;function l(t){let{scope:n,children:i,...l}=t,s=(null==n?void 0:n[e][o])||a,u=(0,r.useMemo)(()=>l,Object.values(l));return(0,r.createElement)(s.Provider,{value:u},i)}return n=[...n,i],l.displayName=t+"Provider",[l,function(n,l){let s=(null==l?void 0:l[e][o])||a,u=(0,r.useContext)(s);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)[`__scope${r}`];return{...t,...i}},{});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 X},xz:function(){return U}});var r=n(7896),i=n(2784),a=n(41816),o=n(26215),l=n(34540),s=n(26074),u=n(73597),c=n(83317),d=n(77334),f=n(6500),h=n(28245),p=n(72130),m=n(55070),g=n(70506),v=n(49732),y=n(99575);let x="Dialog",[b,w]=(0,l.b)(x),[j,k]=b(x),E=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...l}=e,s=k("DialogTrigger",n),u=(0,o.e)(t,s.triggerRef);return(0,i.createElement)(p.WV.button,(0,r.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":V(s.open)},l,{ref:u,onClick:(0,a.M)(e.onClick,s.onOpenToggle)}))}),S="DialogPortal",[C,M]=b(S,{forceMount:void 0}),_="DialogOverlay",O=(0,i.forwardRef)((e,t)=>{let n=M(_,e.__scopeDialog),{forceMount:a=n.forceMount,...o}=e,l=k(_,e.__scopeDialog);return l.modal?(0,i.createElement)(h.z,{present:a||l.open},(0,i.createElement)(T,(0,r.Z)({},o,{ref:t}))):null}),T=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...a}=e,o=k(_,n);return(0,i.createElement)(g.Z,{as:y.g7,allowPinchZoom:!0,shards:[o.contentRef]},(0,i.createElement)(p.WV.div,(0,r.Z)({"data-state":V(o.open)},a,{ref:t,style:{pointerEvents:"auto",...a.style}})))}),P="DialogContent",A=(0,i.forwardRef)((e,t)=>{let n=M(P,e.__scopeDialog),{forceMount:a=n.forceMount,...o}=e,l=k(P,e.__scopeDialog);return(0,i.createElement)(h.z,{present:a||l.open},l.modal?(0,i.createElement)(N,(0,r.Z)({},o,{ref:t})):(0,i.createElement)(R,(0,r.Z)({},o,{ref:t})))}),N=(0,i.forwardRef)((e,t)=>{let n=k(P,e.__scopeDialog),l=(0,i.useRef)(null),s=(0,o.e)(t,n.contentRef,l);return(0,i.useEffect)(()=>{let e=l.current;if(e)return(0,v.R)(e)},[]),(0,i.createElement)(D,(0,r.Z)({},e,{ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,a.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,a.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,a.M)(e.onFocusOutside,e=>e.preventDefault())}))}),R=(0,i.forwardRef)((e,t)=>{let n=k(P,e.__scopeDialog),a=(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||(a.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),a.current=!1},onInteractOutside:t=>{var r,i;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(a.current=!0);let o=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(o))&&t.preventDefault()}}))}),D=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,trapFocus:a,onOpenAutoFocus:l,onCloseAutoFocus:s,...u}=e,f=k(P,n),h=(0,i.useRef)(null),p=(0,o.e)(t,h);return(0,m.EW)(),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(d.M,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:l,onUnmountAutoFocus:s},(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,...a}=e,o=k(L,n);return(0,i.createElement)(p.WV.h2,(0,r.Z)({id:o.titleId},a,{ref:t}))}),F=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...a}=e,o=k("DialogDescription",n);return(0,i.createElement)(p.WV.p,(0,r.Z)({id:o.descriptionId},a,{ref:t}))}),z=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,l=k("DialogClose",n);return(0,i.createElement)(p.WV.button,(0,r.Z)({type:"button"},o,{ref:t,onClick:(0,a.M)(e.onClick,()=>l.onOpenChange(!1))}))});function V(e){return e?"open":"closed"}let[B,I]=(0,l.k)("DialogTitleWarning",{contentName:P,titleName:L,docsSlug:"dialog"}),H=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:l=!0}=e,c=(0,i.useRef)(null),d=(0,i.useRef)(null),[f=!1,h]=(0,u.T)({prop:r,defaultProp:a,onChange:o});return(0,i.createElement)(j,{scope:t,triggerRef:c,contentRef:d,contentId:(0,s.M)(),titleId:(0,s.M)(),descriptionId:(0,s.M)(),open:f,onOpenChange:h,onOpenToggle:(0,i.useCallback)(()=>h(e=>!e),[h]),modal:l},n)},U=E,W=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:a}=e,o=k(S,t);return(0,i.createElement)(C,{scope:t,forceMount:n},i.Children.map(r,e=>(0,i.createElement)(h.z,{present:n||o.open},(0,i.createElement)(f.h,{asChild:!0,container:a},e))))},q=O,$=A,K=Z,Y=F,X=z},83317:function(e,t,n){"use strict";let r;n.d(t,{XB:function(){return f}});var i=n(7896),a=n(2784),o=n(41816),l=n(72130),s=n(26215),u=n(86029);let c="dismissableLayer.update",d=(0,a.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=(0,a.forwardRef)((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:v,onDismiss:y,...x}=e,b=(0,a.useContext)(d),[w,j]=(0,a.useState)(null),[,k]=(0,a.useState)({}),E=(0,s.e)(t,e=>j(e)),S=Array.from(b.layers),[C]=[...b.layersWithOutsidePointerEventsDisabled].slice(-1),M=S.indexOf(C),_=w?S.indexOf(w):-1,O=b.layersWithOutsidePointerEventsDisabled.size>0,T=_>=M,P=function(e){let t=(0,u.W)(e),n=(0,a.useRef)(!1),r=(0,a.useRef)(()=>{});return(0,a.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==v||v(e),e.defaultPrevented||null==y||y())}),A=function(e){let t=(0,u.W)(e),n=(0,a.useRef)(!1);return(0,a.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;[...b.branches].some(e=>e.contains(t))||(null==g||g(e),null==v||v(e),e.defaultPrevented||null==y||y())});return!function(e){let t=(0,u.W)(e);(0,a.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t])}(e=>{_!==b.layers.size-1||(null==f||f(e),!e.defaultPrevented&&y&&(e.preventDefault(),y()))}),(0,a.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,a.useEffect)(()=>()=>{w&&(b.layers.delete(w),b.layersWithOutsidePointerEventsDisabled.delete(w),h())},[w,b]),(0,a.useEffect)(()=>{let e=()=>k({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,a.createElement)(l.WV.div,(0,i.Z)({},x,{ref:E,style:{pointerEvents:O?T?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.M)(e.onFocusCapture,A.onFocusCapture),onBlurCapture:(0,o.M)(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:(0,o.M)(e.onPointerDownCapture,P.onPointerDownCapture)}))});function h(){let e=new CustomEvent(c);document.dispatchEvent(e)}function p(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,l.jH)(i,a):i.dispatchEvent(a)}},55070:function(e,t,n){"use strict";n.d(t,{EW:function(){return a}});var r=n(2784);let i=0;function a(){(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:o()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:o()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function o(){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),a=n(2784),o=n(26215),l=n(72130),s=n(86029);let u="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},f=(0,a.forwardRef)((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:f,onUnmountAutoFocus:v,...y}=e,[x,b]=(0,a.useState)(null),w=(0,s.W)(f),j=(0,s.W)(v),k=(0,a.useRef)(null),E=(0,o.e)(t,e=>b(e)),S=(0,a.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,a.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,a.useEffect)(()=>{if(x){g.add(S);let e=document.activeElement;if(!x.contains(e)){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),g.remove(S)},0)}}},[x,w,j,S]);let C=(0,a.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,a]=function(e){let t=h(e);return[p(t,e),p(t.reverse(),e)]}(t);r&&a?e.shiftKey||i!==a?e.shiftKey&&i===r&&(e.preventDefault(),n&&m(a,{select:!0})):(e.preventDefault(),n&&m(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,S.paused]);return(0,a.createElement)(l.WV.div,(0,i.Z)({tabIndex:-1},y,{ref:E,onKeyDown:C}))});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 g=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=v(r,e)).unshift(e)},remove(e){var t;null===(t=(r=v(r,e))[0])||void 0===t||t.resume()}});function v(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 s}});var r,i=n(2784),a=n(64680);let o=(r||(r=n.t(i,2)))["useId".toString()]||(()=>void 0),l=0;function s(e){let[t,n]=i.useState(o());return(0,a.b)(()=>{e||n(e=>null!=e?e:String(l++))},[e]),e||(t?`radix-${t}`:"")}},6500:function(e,t,n){"use strict";n.d(t,{h:function(){return l}});var r=n(7896),i=n(2784),a=n(28316),o=n(72130);let l=(0,i.forwardRef)((e,t)=>{var n;let{container:l=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...s}=e;return l?a.createPortal((0,i.createElement)(o.WV.div,(0,r.Z)({},s,{ref:t})),l):null})},28245:function(e,t,n){"use strict";n.d(t,{z:function(){return l}});var r=n(2784),i=n(28316),a=n(26215),o=n(64680);let l=e=>{let{present:t,children:n}=e,l=function(e){var t,n;let[a,l]=(0,r.useState)(),u=(0,r.useRef)({}),c=(0,r.useRef)(e),d=(0,r.useRef)("none"),[f,h]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,r.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return(0,r.useEffect)(()=>{let e=s(u.current);d.current="mounted"===f?e:"none"},[f]),(0,o.b)(()=>{let t=u.current,n=c.current;if(n!==e){let r=d.current,i=s(t);e?h("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?h("UNMOUNT"):n&&r!==i?h("ANIMATION_OUT"):h("UNMOUNT"),c.current=e}},[e,h]),(0,o.b)(()=>{if(a){let e=e=>{let t=s(u.current).includes(e.animationName);e.target===a&&t&&(0,i.flushSync)(()=>h("ANIMATION_END"))},t=e=>{e.target===a&&(d.current=s(u.current))};return a.addEventListener("animationstart",t),a.addEventListener("animationcancel",e),a.addEventListener("animationend",e),()=>{a.removeEventListener("animationstart",t),a.removeEventListener("animationcancel",e),a.removeEventListener("animationend",e)}}h("ANIMATION_END")},[a,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:(0,r.useCallback)(e=>{e&&(u.current=getComputedStyle(e)),l(e)},[])}}(t),u="function"==typeof n?n({present:l.isPresent}):r.Children.only(n),c=(0,a.e)(l.ref,u.ref);return"function"==typeof n||l.isPresent?(0,r.cloneElement)(u,{ref:c}):null};function s(e){return(null==e?void 0:e.animationName)||"none"}l.displayName="Presence"},72130:function(e,t,n){"use strict";n.d(t,{WV:function(){return l},jH:function(){return s}});var r=n(7896),i=n(2784),a=n(28316),o=n(99575);let l=["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:a,...l}=e,s=a?o.g7:t;return(0,i.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,i.createElement)(s,(0,r.Z)({},l,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function s(e,t){e&&(0,a.flushSync)(()=>e.dispatchEvent(t))}},99575:function(e,t,n){"use strict";n.d(t,{A4:function(){return s},g7:function(){return o}});var r=n(7896),i=n(2784),a=n(26215);let o=(0,i.forwardRef)((e,t)=>{let{children:n,...a}=e,o=i.Children.toArray(n),s=o.find(u);if(s){let e=s.props.children,n=o.map(t=>t!==s?t:i.Children.count(e)>1?i.Children.only(null):(0,i.isValidElement)(e)?e.props.children:null);return(0,i.createElement)(l,(0,r.Z)({},a,{ref:t}),(0,i.isValidElement)(e)?(0,i.cloneElement)(e,void 0,n):null)}return(0,i.createElement)(l,(0,r.Z)({},a,{ref:t}),n)});o.displayName="Slot";let l=(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],a=t[r];/^on[A-Z]/.test(r)?n[r]=(...e)=>{null==a||a(...e),null==i||i(...e)}:"style"===r?n[r]={...i,...a}:"className"===r&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:(0,a.F)(t,n.ref)}):i.Children.count(n)>1?i.Children.only(null):null});l.displayName="SlotClone";let s=({children:e})=>(0,i.createElement)(i.Fragment,null,e);function u(e){return(0,i.isValidElement)(e)&&e.type===s}},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 a}});var r=n(2784),i=n(86029);function a({prop:e,defaultProp:t,onChange:n=()=>{}}){let[a,o]=function({defaultProp:e,onChange:t}){let n=(0,r.useState)(e),[a]=n,o=(0,r.useRef)(a),l=(0,i.W)(t);return(0,r.useEffect)(()=>{o.current!==a&&(l(a),o.current=a)},[a,o,l]),n}({defaultProp:t,onChange:n}),l=void 0!==e,s=l?e:a,u=(0,i.W)(n);return[s,(0,r.useCallback)(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else o(t)},[l,e,o,u])]}},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?l.default:t,p=e.axisClassName,g=e.hideAxisLine,v=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,C=void 0===S?0:S,M=e.scale,_=e.tickFormat,O=e.tickLength,T=void 0===O?8:O,P=e.tickValues,A=e.top,N=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,h),R=null!=_?_:(0,u.default)(M),D=E===d.default.left,L=E===d.default.top,Z=L||E===d.default.bottom,F=(0,s.default)(M),z=D||L?-1:1,V=M.range(),B=(0,f.default)(C),I=(0,c.default)({x:Number(V[0])+.5-B.start,y:0},Z),H=(0,c.default)({x:Number(V[V.length-1])+.5+B.end,y:0},Z),U=(null!=P?P:(0,o.getTicks)(M,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,o.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(a.Group,{className:(0,i.default)("visx-axis",p),top:void 0===A?0:A,left:void 0===b?0:b},n(m({},N,{axisFromPoint:I,axisToPoint:H,hideAxisLine:void 0!==g&&g,hideTicks:void 0!==v&&v,hideZero:x,horizontal:Z,numTicks:j,orientation:E,rangePadding:C,scale:M,tickFormat:R,tickLength:T,tickPosition:F,tickSign:z,ticks:W})))},p(n(13980));var r=p(n(2784)),i=p(n(72779)),a=n(71602),o=n(63243),l=p(n(58052)),s=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,l);return r.default.createElement(a.default,u({axisClassName:(0,i.default)("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:o.default.bottom,tickLabelProps:void 0===s?c:s,tickLength:void 0===d?8:d},f))};var r=s(n(2784)),i=s(n(72779)),a=s(n(81401)),o=s(n(87209)),l=["axisClassName","labelOffset","tickLabelProps","tickLength"];function s(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,l);return r.default.createElement(a.default,u({axisClassName:(0,i.default)("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:o.default.left,tickLabelProps:void 0===s?c:s,tickLength:void 0===d?8:d},f))},t.leftTickLabelProps=void 0;var r=s(n(2784)),i=s(n(72779)),a=s(n(81401)),o=s(n(87209)),l=["axisClassName","labelOffset","tickLabelProps","tickLength"];function s(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,l);return r.default.createElement(a.default,u({axisClassName:(0,i.default)("visx-axis-right",t),labelOffset:void 0===n?36:n,orientation:o.default.right,tickLabelProps:void 0===s?c:s,tickLength:void 0===d?8:d},f))},t.rightTickLabelProps=void 0;var r=s(n(2784)),i=s(n(72779)),a=s(n(81401)),o=s(n(87209)),l=["axisClassName","labelOffset","tickLabelProps","tickLength"];function s(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,l);return r.default.createElement(a.default,u({axisClassName:(0,i.default)("visx-axis-top",t),labelOffset:void 0===n?8:n,orientation:o.default.top,tickLabelProps:void 0===s?c:s,tickLength:void 0===d?8:d},f))},t.topTickLabelProps=void 0;var r=s(n(2784)),i=s(n(72779)),a=s(n(81401)),o=s(n(87209)),l=["axisClassName","labelOffset","tickLabelProps","tickLength"];function s(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=o()).done;){var l=r.value,s=Math.sqrt(Math.pow(l.x-e.x,2)+Math.pow(l.y-e.y,2));s0)?(0,i.default)(e,t):{x:(0,r.default)(e.x,null!=(a=n.xMin)?a:-1/0,null!=(o=n.xMax)?o:1/0),y:(0,r.default)(e.y,null!=(l=n.yMin)?l:-1/0,null!=(s=n.yMax)?s:1/0)}};var r=a(n(30968)),i=a(n(98929));function a(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(),a=0;a<=i;a+=n){var o=e.getPointAtLength(a).matrixTransform(t);r.push(o)}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],a=(0,r.useRef)(null),o=(0,r.useCallback)(function(e,t){a.current=t||null,i(e)},[i]);return(0,r.useLayoutEffect)(function(){a.current&&(a.current(n),a.current=null)},[n]),[n,o]};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 a}});var r=n(49833),i=n(44321);function a(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 l}});var r=n(19067),i=n(44321);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:a({},o);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}:a({},o)}(t),l=(0,i.vZ)(e)?e.ownerSVGElement:e,s=(0,i.DY)(l)?l.getScreenCTM():null;if((0,i.r4)(l)&&s){var u=l.createSVGPoint();return u.x=n.x,u.y=n.y,u=u.matrixTransform(s.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 a(e){return!!e&&"createSVGPoint"in e}function o(e){return!!e&&"getScreenCTM"in e}function l(e){return!!e&&"changedTouches"in e}function s(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 o},N5:function(){return s},cO:function(){return u},kK:function(){return r},r4:function(){return a},vZ:function(){return i},z6:function(){return l}})},21516:function(e,t,n){"use strict";t.__esModule=!0,t.default=p;var r=f(n(13980)),i=f(n(2784)),a=f(n(72779)),o=f(n(47440)),l=n(71602),s=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),C=null!=k?k:(0,u.getTicks)(r,void 0===b?10:b),M=(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)+M;return{index:t,from:new s.Point({x:i,y:0}),to:new s.Point({x:i,y:f})}});return i.default.createElement(l.Group,{className:(0,a.default)("visx-columns",x),top:void 0===t?0:t,left:void 0===n?0:n},E?E({lines:_}):_.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(o.default,h({key:"column-line-"+r,from:t,to:n,stroke:m,strokeWidth:v,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)),a=f(n(72779)),o=f(n(47440)),l=n(71602),s=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),C=null!=E?E:(0,u.getTicks)(r,void 0===w?10:w),M=(null!=k?k:0)+(0,c.default)(r)/2,_=C.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+M;return{index:t,from:new s.Point({x:0,y:i}),to:new s.Point({x:f,y:i})}});return i.default.createElement(l.Group,{className:(0,a.default)("visx-rows",x),top:void 0===t?0:t,left:void 0===n?0:n},b?b({lines:_}):_.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(o.default,h({key:"row-line-"+r,from:t,to:n,stroke:m,strokeWidth:v,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),a=n(2784),o=n(72779),l=n.n(o),s=["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,s);return a.createElement("g",u({ref:c,className:l()("visx-group",i),transform:r||"translate("+(void 0===n?0:n)+", "+(void 0===t?0:t)+")"},d),o)}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 a},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 a(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,l=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,o),s=(0,r.useMemo)(function(){return function(e){return r.default.createElement(a.default,u({},e,{tickComponent:n,animationTrajectory:t}))}},[t,n]);return r.default.createElement(i.default,u({},l,{ticksComponent:s}))},s(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=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(2784)),i=s(n(81401)),a=s(n(65154)),o=["animationTrajectory","tickComponent"];function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function s(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,o);return r.default.createElement(i.default,{scale:t,height:n,numTicks:l,tickValues:u,className:c,top:f,left:h},function(e){var n=e.lines;return r.default.createElement(a.default,s({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=l(n(2784)),i=l(n(21516)),a=l(n(55727)),o=["scale","height","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function l(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,l),h=(0,a.useTransition)(n,u({},(0,o.default)({scale:t,animateXOrY:s,animationTrajectory:r}),{key:c}));return i.default.createElement(i.default.Fragment,null,h(function(e,t,n){var r=e.fromX,o=e.toX,l=e.fromY,s=e.toY,c=e.opacity,h=n.key;return i.default.createElement(a.animated.line,u({key:h,x1:r,x2:o,y1:l,y2:s,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,l=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={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,o);return r.default.createElement(i.default,{scale:t,width:n,numTicks:l,tickValues:u,className:c,top:f,left:h},function(e){var n=e.lines;return r.default.createElement(a.default,s({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=l(n(2784)),i=l(n(34264)),a=l(n(55727)),o=["scale","width","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function l(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,l),v=(0,a.useRef)(null),y=(0,a.useRef)(0),x=(0,a.useState)({width:0,height:0,top:0,left:0}),b=x[0],w=x[1],j=(0,a.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})},s,{leading:m})},[s,m,f]);return(0,a.useEffect)(function(){var e=new o.ResizeObserver(function(e){void 0===e&&(e=[]),e.forEach(function(e){var t=e.contentRect,n=t.left,r=t.top,i=t.width,a=t.height;y.current=window.requestAnimationFrame(function(){j({width:i,height:a,top:r,left:n})})})});return v.current&&e.observe(v.current),function(){window.cancelAnimationFrame(y.current),e.disconnect(),null!=j&&j.cancel&&j.cancel()}},[j]),a.default.createElement("div",c({style:void 0===h?{width:"100%",height:"100%"}:h,ref:v,className:t},g),n(c({},b,{ref:v.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),a=n(70590),o=n(50630),l=n(34278),s=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,a.Z)(e);case"sqrt":return(0,o.Z)(e);case"symlog":return(0,l.Z)(e);case"time":return(0,s.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 C.Z},inferScaleType:function(){return E},scaleBand:function(){return r.Z},scaleCanBeZeroed:function(){return _.Z},scaleLinear:function(){return a.Z},scaleLog:function(){return f.Z},scaleOrdinal:function(){return p.Z},scalePoint:function(){return i.Z},scalePower:function(){return h.Z},scaleQuantile:function(){return g.Z},scaleQuantize:function(){return m.Z},scaleRadial:function(){return u},scaleSqrt:function(){return x.Z},scaleSymlog:function(){return v.Z},scaleThreshold:function(){return y.Z},scaleTime:function(){return c.Z},scaleUtc:function(){return d.Z},toString:function(){return M.Z},updateScale:function(){return j}});var r=n(26587),i=n(71646),a=n(8597),o=n(19637),l=n(25176),s=(0,l.Z)("domain","range","clamp","nice","round","unknown");function u(e){return s((0,o.Z)(),e)}var c=n(64183),d=n(61662),f=n(12430),h=n(70590),p=n(30558),m=n(73335),g=n(43634),v=n(34278),y=n(54229),x=n(50630),b=n(2663),w=l.Z.apply(void 0,l.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),C=n(71220),M=n(51519),_=n(34636)},25176:function(e,t,n){"use strict";n.d(t,{a:function(){return C},Z:function(){return _}});var r=n(88751),i=n(87286),a=n(43780),o=n(77636),l=n(78978),s={lab:r.Z,hcl:i.Z,"hcl-long":i.b,hsl:a.Z,"hsl-long":a.q,cubehelix:o.Z,"cubehelix-long":o.B,rgb:l.ZP},u=n(68603),c=n(54076),d=n(18450),f=n(50690),h=n(52546),p=n(76231),m=n(97344),g=n(12370),v=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:g.Z,hour:v.Z,minute:y.Z,month:x.Z,second:h.Z,week:b.Ox,year:w.Z},S=n(74672),C=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],M={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,a=n.step,o=(r?E[i]:k[i]).every(a);null!=o&&e.nice(o)}}}},zero:function(e,t){if("zero"in t&&!0===t.zero){var n=e.domain(),r=n[0],i=n[1],a=i=0||(i[n]=e[n]);return i}(e,l),y=(0,o.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",s({ref:g,className:a()("visx-arc",t),d:y(n)||""},v)):(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),C=(0,o.Nb)({innerRadius:void 0===u?0:u,outerRadius:h,cornerRadius:p,padRadius:y}),M=(0,o.ve)({startAngle:m,endAngle:g,padAngle:v,value:w,sort:x,sortValues:b}),_=M(void 0===l?[]:l);return j?r.createElement(r.Fragment,null,j({arcs:_,path:C,pie:M})):r.createElement(c.Z,{className:"visx-pie-arcs-group",top:n,left:i},_.map(function(e,n){return r.createElement("g",{key:"pie-arc-"+n},r.createElement("path",f({className:a()("visx-pie-arc",t),d:C(e)||"",fill:null==E||"string"==typeof E?E:E(e)},S)),null==s?void 0:s(C.centroid(e),e))}))}var p=n(63739),m=n(27079),g=["className","angle","radius","defined","curve","data","innerRef","children","fill"];function v(){return(v=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,g),p=(0,o.aJ)({angle:n,radius:i,defined:l,curve:s});return d?r.createElement(r.Fragment,null,d({path:p})):r.createElement("path",v({ref:c,className:a()("visx-line-radial",t),d:p(void 0===u?[]:u)||"",fill:void 0===f?"transparent":f},h))}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),v=(0,o.SO)({x:n,x0:i,x1:l,y:s,y0:u,y1:c,defined:void 0===f?function(){return!0}:f,curve:p});return t?r.createElement(r.Fragment,null,t({path:v})):r.createElement("path",b({ref:m,className:a()("visx-area",h),d:v(void 0===d?[]:d)||""},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,o.kn)({keys:l,value:v,order:y,offset:x}),C=(0,o.SO)({x:f,x0:h,x1:p,y0:m,y1:g,curve:u,defined:d}),M=S(s);return w?r.createElement(r.Fragment,null,w({stacks:M,path:C,stack:S})):r.createElement(c.Z,{top:n,left:i},M.map(function(e,n){return r.createElement("path",E({className:a()("visx-stack",t),key:"stack-"+n+"-"+(e.key||""),d:C(e)||"",fill:null==b?void 0:b(e.key,n)},j))}))}var C=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function M(){return(M=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,C);return r.createElement(S,M({className:t,top:n,left:i,keys:o,data:l,curve:s,defined:u,x:c,x0:d,x1:f,y0:h,y1:p,value:m,order:g,offset:v,color:y},b),x||function(e){var n=e.stacks,i=e.path;return n.map(function(e,n){return r.createElement("path",M({className:a()("visx-area-stack",t),key:"area-stack-"+n+"-"+(e.key||""),d:i(e)||"",fill:null==y?void 0:y(e.key,n)},b))})})}var O=n(14582),T=n(10897);function P(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 A=["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,A),v=P(u),y=t.map(function(e,t){return{index:t,x0:s(l(e)),bars:h.map(function(t,n){var r=e[t];return{index:n,key:t,value:r,width:v,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:a()("visx-bar-group",n),top:i,left:o},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(O.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},g))}))}))}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=P(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:s(r)||0,y:f(t)||0,color:p(t,n),width:h(r)||0}})}});return g?r.createElement(r.Fragment,null,g(x)):r.createElement(c.Z,{className:a()("visx-bar-group-horizontal",n),top:i,left:o},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(O.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},v))}))}))}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 B(e){return null==e?void 0:e.source}function I(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)();g&&j.keys(g),v&&(0,W.Z)(j.value,v),y&&j.order((0,q.ZP)(y)),x&&j.offset((0,$.ZP)(x));var k=j(t),E=P(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),a=p(f(t)),o="bandwidth"in h?h(l(t.data)):Math.max((h(l(t.data))||0)-E/2);return{bar:t,key:n,index:r,height:i,width:E,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:a()("visx-bar-stack",n),top:i,left:o},S.map(function(e){return e.bars.map(function(t){return r.createElement(O.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 G=["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,G),j=(0,F.Z)();g&&j.keys(g),v&&(0,W.Z)(j.value,v),y&&j.order((0,q.ZP)(y)),x&&j.offset((0,$.ZP)(x));var k=j(t),E=P(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),a=h(u(t)),o="bandwidth"in p?p(l(t.data)):Math.max((p(l(t.data))||0)-i/2);return{bar:t,key:n,index:r,height:E,width:i,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:a()("visx-bar-stack-horizontal",n),top:i,left:o},S.map(function(e){return e.bars.map(function(t){return r.createElement(O.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=l||ei({source:void 0===c?B:c,target:void 0===d?I:d,x:void 0===s?V:s,y:void 0===u?z:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",er({ref:o,className:a()("visx-link visx-link-horizontal-diagonal",t),d:h(i)||""},f))}var eo=["className","children","data","innerRef","path","x","y","source","target"];function el(){return(el=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eo),h=l||es({source:void 0===c?B:c,target:void 0===d?I:d,x:void 0===s?z:s,y:void 0===u?V:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",el({ref:o,className:a()("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=l||ef({source:void 0===c?B:c,target:void 0===d?I:d,angle:void 0===s?z:s,radius:void 0===u?V:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",ed({ref:o,className:a()("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 eg(){return(eg=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,em),p=l||ev({source:void 0===d?B:d,target:void 0===f?I:f,x:void 0===u?V:u,y:void 0===c?z:c,percent:void 0===s?.2:s});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",eg({ref:o,className:a()("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=l||ew({source:void 0===d?B:d,target:void 0===f?I:f,x:void 0===u?z:u,y:void 0===c?V:c,percent:void 0===s?.2:s});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",eb({ref:o,className:a()("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=l||eS({source:void 0===d?B:d,target:void 0===f?I:f,x:void 0===u?z:u,y:void 0===c?V:c,percent:void 0===s?.2:s});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",eE({ref:o,className:a()("visx-link visx-link-radial-curve",t),d:p(i)||""},h))}var eM=["className","children","innerRef","data","path","x","y","source","target"];function e_(){return(e_=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eM),h=l||eO({source:void 0===c?B:c,target:void 0===d?I:d,x:void 0===s?V:s,y:void 0===u?z:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",e_({ref:i,className:a()("visx-link visx-link-horizontal-line",t),d:h(o)||""},f))}var eP=["className","innerRef","data","path","x","y","source","target","children"];function eA(){return(eA=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eP),h=o||eN({source:void 0===u?B:u,target:void 0===c?I:c,x:void 0===l?z:l,y:void 0===s?V:s});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eA({ref:n,className:a()("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=o||eZ({source:void 0===u?B:u,target:void 0===c?I:c,x:void 0===l?z:l,y:void 0===s?V:s});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eL({ref:n,className:a()("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=o||eB({source:void 0===c?B:c,target:void 0===d?I:d,x:void 0===s?V:s,y:void 0===u?z:u,percent:void 0===l?.5:l});return f?r.createElement(r.Fragment,null,f({path:p})):r.createElement("path",eV({ref:n,className:a()("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=o||eW({source:void 0===c?B:c,target:void 0===d?I:d,x:void 0===s?z:s,y:void 0===u?V:u,percent:void 0===l?.5:l});return f?r.createElement(r.Fragment,null,f({path:p})):r.createElement("path",eU({ref:n,className:a()("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)+","+s*h+","+s*p+"\n L"+c*h+","+c*p+"\n "}}function eX(e){var t=e.className,n=e.innerRef,i=e.data,o=e.path,l=e.x,s=e.y,u=e.source,c=e.target,d=e.children,f=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,e$),h=o||eY({source:void 0===u?B:u,target:void 0===c?I:c,x:void 0===l?z:l,y:void 0===s?V:s});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eK({ref:n,className:a()("visx-link visx-link-radial-step",t),d:h(i)||""},f))}var eG=["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,eG),f=c||e1({sides:void 0===t?4:t,size:void 0===n?25:n,center:void 0===i?eQ:i,rotate:void 0===o?0:o}).map(function(e){return[e.x,e.y]});return s?r.createElement(r.Fragment,null,s({points:f})):r.createElement("polygon",eJ({ref:u,className:a()("visx-polygon",l),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:a()("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<=s;m+=o){for(var g=l.getPointAtLength(m),v=g[i];p=w[E+1];)E+=1;c[E].push(C)}}return c}catch(e){return[]}}({path:p,segmentation:l,pointsInSegments:h,sampleRate:s})},[p,l,h,s]);return r.createElement("g",null,g.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),a=n.n(i),o=n(26078),l=n(52511),s=["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,s),w=(0,l.SO)({x:t,x0:n,x1:i,defined:void 0===m?function(){return!0}:m,curve:v});return(null==f?w.y0(h.range()[0]):(0,o.Z)(w.y0,f),c&&!d&&(0,o.Z)(w.y1,c),d&&!c&&(0,o.Z)(w.y1,d),x)?r.createElement(r.Fragment,null,x({path:w})):r.createElement("path",u({ref:y,className:a()("visx-area-closed",g),d:w(void 0===p?[]:p)||""},b))}},14582:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2784),i=n(72779),a=n.n(i),o=["className","innerRef"];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);return r.createElement("rect",l({ref:n,className:a()("visx-bar",t)},i))}},10897:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2784),i=n(72779),a=n.n(i),o=["children","className","innerRef","x","y","width","height","radius","all","top","bottom","left","right","topLeft","topRight","bottomLeft","bottomRight"];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),z=(n=(t={x:E,y:S,width:C,height:M,radius:_,all:void 0!==O&&O,top:void 0!==T&&T,bottom:void 0!==P&&P,left:void 0!==A&&A,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,s=t.bottomLeft,u=t.bottomRight,c=t.height,d=t.left,f=t.radius,h=t.right,p=t.top,m=t.topLeft,g=t.topRight,v=t.width,y=t.x,x=t.y,g=n||p||h||g,u=n||i||h||u,s=n||i||d||s,m=n||p||d||m,b=2*(f=Math.max(1,Math.min(f,Math.min(v,c)/2))),("M"+(y+f)+","+x+" h"+(v-b)+"\n "+(g?"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-v)+"\n "+(s?"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",l({ref:k,className:a()("visx-bar-rounded",j),d:z},F))}},63739:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2784),i=n(72779),a=n.n(i),o=["from","to","fill","className","innerRef"];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===s.x||n.y===s.y;return r.createElement("line",l({ref:d,className:a()("visx-line",c),x1:n.x,y1:n.y,x2:s.x,y2:s.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),a=n.n(i),o=n(52511),l=["children","data","x","y","fill","className","curve","innerRef","defined"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,l),g=(0,o.jv)({x:i,y:u,defined:void 0===p?function(){return!0}:p,curve:f});return t?r.createElement(r.Fragment,null,t({path:g})):r.createElement("path",s({ref:h,className:a()("visx-linepath",d),d:g(void 0===n?[]:n)||"",fill:void 0===c?"transparent":c,strokeLinecap:"round"},m))}},52511:function(e,t,n){"use strict";n.d(t,{Nb:function(){return f},SO:function(){return h},aJ:function(){return g},jv:function(){return p},kn:function(){return v},ve:function(){return m}});var r=n(38764),i=n(79493),a=n(79767),o=n(69619),l=n(8329),s=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,a=t.cornerRadius,o=t.startAngle,l=t.endAngle,s=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!=a&&(0,u.Z)(d.cornerRadius,a),null!=o&&(0,u.Z)(d.startAngle,o),null!=l&&(0,u.Z)(d.endAngle,l),null!=s&&(0,u.Z)(d.padAngle,s),null!=c&&(0,u.Z)(d.padRadius,c),d}function h(e){var t=void 0===e?{}:e,n=t.x,r=t.x0,a=t.x1,o=t.y,l=t.y0,s=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),a&&(0,u.Z)(f.x1,a),o&&(0,u.Z)(f.y,o),l&&(0,u.Z)(f.y0,l),s&&(0,u.Z)(f.y1,s),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,o=t.curve,l=(0,a.Z)();return n&&(0,u.Z)(l.x,n),r&&(0,u.Z)(l.y,r),i&&l.defined(i),o&&l.curve(o),l}function m(e){var t=void 0===e?{}:e,n=t.startAngle,r=t.endAngle,i=t.padAngle,a=t.value,l=t.sort,s=t.sortValues,c=(0,o.Z)();return null===l?c.sort(l):null!=l&&c.sort(l),null===s?c.sortValues(s):null!=s&&c.sortValues(s),null!=a&&c.value(a),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 g(e){var t=void 0===e?{}:e,n=t.angle,r=t.radius,i=t.defined,a=t.curve,o=(0,l.Z)();return n&&(0,u.Z)(o.angle,n),r&&(0,u.Z)(o.radius,r),i&&o.defined(i),a&&o.curve(a),o}function v(e){var t=e.keys,n=e.value,r=e.order,i=e.offset,a=(0,s.Z)();return t&&a.keys(t),n&&(0,u.Z)(a.value,n),r&&a.order((0,c.ZP)(r)),i&&a.offset((0,d.ZP)(i)),a}},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 s}});var r=n(22254),i=n(76751),a=n(90541),o=n(36538),l=n(34928),s={expand:r.Z,diverging:i.Z,none:a.Z,silhouette:o.Z,wiggle:l.Z},u=Object.keys(s);function c(e){return e&&s[e]||s.none}},44081:function(e,t,n){"use strict";n.d(t,{ZP:function(){return c},s2:function(){return u},un:function(){return s}});var r=n(19721),i=n(82564),a=n(12197),o=n(81182),l=n(40277),s={ascending:r.Z,descending:i.Z,insideout:a.Z,none:o.Z,reverse:l.Z},u=Object.keys(s);function c(e){return e&&s[e]||s.none}},12935:function(e,t,n){"use strict";t.Z=function(e){var t=e.children,n=e.x,l=e.x0,u=e.x1,c=e.y,d=e.y0,f=e.y1,h=e.data,p=e.defined,m=e.className,g=e.curve,v=e.innerRef,y=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,o),x=(0,a.area)({x:n,x0:l,x1:u,y:c,y0:d,y1:f,defined:void 0===p?function(){return!0}:p,curve:g});return t?r.default.createElement(r.default.Fragment,null,t({path:x})):r.default.createElement("path",s({ref:v,className:(0,i.default)("visx-area",m),d:x(void 0===h?[]:h)||""},y))};var r=l(n(2784)),i=l(n(72779)),a=n(15601),o=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function l(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),h=n.x===s.x||n.y===s.y;return r.default.createElement("line",l({ref:d,className:(0,i.default)("visx-line",c),x1:n.x,y1:n.y,x2:s.x,y2:s.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))};var r=o(n(2784)),i=o(n(72779)),a=["from","to","fill","className","innerRef"];function o(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),g=(0,a.line)({x:l,y:u,defined:void 0===p?function(){return!0}:p,curve:f});return t?r.default.createElement(r.default.Fragment,null,t({path:g})):r.default.createElement("path",s({ref:h,className:(0,i.default)("visx-linepath",d),d:g(void 0===n?[]:n)||"",fill:void 0===c?"transparent":c,strokeLinecap:"round"},m))};var r=l(n(2784)),i=l(n(72779)),a=n(15601),o=["children","data","x","y","fill","className","curve","innerRef","defined"];function l(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)),p=h.x,m=void 0===p?0:p,g=h.fontSize,v=(0,i.Z)(e),y=v.wordsByLines,x=v.startDy,b=v.transform;return r.createElement("svg",{ref:u,x:void 0===t?0:t,y:void 0===n?0:n,fontSize:g,style:l},y.length>0?r.createElement("text",o({ref:c,transform:b},h,{textAnchor:void 0===s?"start":s}),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),a=n.n(i),o=n(75715),l=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function s(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,g=void 0===m?"0.71em":m,v=e.children,y=e.style,x=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,l),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==v?[]:v.toString().split(/(?:(?!\u00A0+)\s+)/)).map(function(e){return{word:e,wordWidth:(0,o.Z)(e,y)||0}}),spaceWidth:(0,o.Z)("\xa0",y)||0}},[v,y]),C=S.wordsWithWidth,M=S.spaceWidth,_=(0,r.useMemo)(function(){return E?[]:f||c?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+M0){var t=_[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,_,d]);return{wordsByLines:_,startDy:O,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 a.Z}});var r=n(64170),i=n(75715),a=n(89907)},75715:function(e,t,n){"use strict";var r=n(30733),i=n.n(r),a="__react_svg_text_measurement_id";t.Z=i()(function(e,t){try{var n=document.getElementById(a);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",a),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 l}});var r=new WeakMap,i=new WeakMap,a={},o=0,l=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 l=Array.isArray(e)?e:[e];a[n]||(a[n]=new WeakMap);var s=a[n],u=[],c=new Set,d=function(e){!e||c.has(e)||(c.add(e),d(e.parentNode))};l.forEach(d);var f=function(e){!e||l.indexOf(e)>=0||Array.prototype.forEach.call(e.children,function(e){if(c.has(e))f(e);else{var t=e.getAttribute("aria-hidden"),a=null!==t&&"false"!==t,o=(r.get(e)||0)+1,l=(s.get(e)||0)+1;r.set(e,o),s.set(e,l),u.push(e),1===o&&a&&i.set(e,!0),1===l&&e.setAttribute(n,"true"),a||e.setAttribute("aria-hidden","true")}})};return f(t),c.clear(),o++,function(){u.forEach(function(e){var t=r.get(e)-1,a=s.get(e)-1;r.set(e,t),s.set(e,a),t||(i.has(e)||e.removeAttribute("aria-hidden"),i.delete(e)),a||e.removeAttribute(n)}),--o||(r=new WeakMap,r=new WeakMap,i=new WeakMap,a={})}}},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(),a=i.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?a===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),a=n(92233),o=n(68030),l=n(97948),s=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,g=e.headers,v=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(m)&&r.isStandardBrowserEnv()&&delete g["Content-Type"];var x=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(b+":"+w)}var j=l(e.baseURL,e.url);function k(){if(x){var r="getAllResponseHeaders"in x?s(x.getAllResponseHeaders()):null;i(function(e){t(e),y()},function(e){n(e),y()},{data:v&&"text"!==v&&"json"!==v?x.response:x.responseText,status:x.status,statusText:x.statusText,headers:r,config:e,request:x}),x=null}}if(x.open(e.method.toUpperCase(),o(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?a.read(e.xsrfCookieName):void 0;E&&(g[e.xsrfHeaderName]=E)}"setRequestHeader"in x&&r.forEach(g,function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete g[t]:x.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(x.withCredentials=!!e.withCredentials),v&&"json"!==v&&(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),a=n(62215),o=n(92937),l=function e(t){var n=new a(t),l=i(a.prototype.request,n);return r.extend(l,a.prototype,n),r.extend(l,n),l.create=function(n){return e(o(t,n))},l}(n(10663));l.Axios=a,l.CanceledError=n(68047),l.CancelToken=n(34089),l.isCancel=n(98041),l.VERSION=n(29241).version,l.toFormData=n(49027),l.AxiosError=n(21218),l.Cancel=l.CanceledError,l.all=function(e){return Promise.all(e)},l.spread=n(70783),l.isAxiosError=n(65587),e.exports=l,e.exports.default=l},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, */*"}}};a.forEach(["delete","get","head"],function(e){f.headers[e]={}}),a.forEach(["post","put","patch"],function(e){f.headers[e]=a.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?o[t]=(o[t]?o[t]:[]).concat([n]):o[t]=o[t]?o[t]+", "+n:n)}),o}},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 a(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,o){if(i.isPlainObject(r)||i.isArray(r)){if(-1!==n.indexOf(r))throw Error("Circular reference detected in "+o);n.push(r),i.forEach(r,function(n,r){if(!i.isUndefined(n)){var l,s=o?o+"."+r:r;if(n&&!o&&"object"==typeof n){if(i.endsWith(r,"{}"))n=JSON.stringify(n);else if(i.endsWith(r,"[]")&&(l=i.toArray(n))){l.forEach(function(e){i.isUndefined(e)||t.append(s,a(e))});return}}e(n,s)}}),n.pop()}else t.append(o,a(r))}(e),t}},17525:function(e,t,n){"use strict";var r=n(29241).version,i=n(21218),a={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){a[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var o={};a.transitional=function(e,t,n){function a(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,l){if(!1===e)throw new i(a(r," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!o[r]&&(o[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,l)}},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),a=r.length;a-- >0;){var o=r[a],l=t[o];if(l){var s=e[o],u=void 0===s||l(s,o,e);if(!0!==u)throw new i("option "+o+" must be "+u,i.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new i("Unknown option "+o,i.ERR_BAD_OPTION)}},validators:a}},93044:function(e,t,n){"use strict";var r,i,a=n(73644),o=Object.prototype.toString,l=(r=Object.create(null),function(e){var t=o.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return l(t)===e}}function u(e){return Array.isArray(e)}function c(e){return void 0===e}var d=s("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function h(e){if("object"!==l(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=s("Date"),m=s("File"),g=s("Blob"),v=s("FileList");function y(e){return"[object Function]"===o.call(e)}var x=s("URLSearchParams");function b(e,t){if(null!=e){if("object"!=typeof e&&(e=[e]),u(e))for(var n=0,r=e.length;n0;)o[a=r[i]]||(t[a]=e[a],o[a]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:l,kindOfTest:s,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:v}},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 a=r(e,t,i);return a&&{start:a[0],end:a[1],pre:i.slice(0,a[0]),body:i.slice(a[0]+e.length,a[1]),post:i.slice(a[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,a,o,l,s=n.indexOf(e),u=n.indexOf(t,s+1),c=s;if(s>=0&&u>0){if(e===t)return[s,u];for(r=[],a=n.length;c>=0&&!l;)c==s?(r.push(c),s=n.indexOf(e,c+1)):1==r.length?l=[r.pop(),u]:((i=r.pop())=0?s:u;r.length&&(l=[a,o])}return l}e.exports=t,t.range=r},95766:function(e,t){"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,a=s(e),o=a[0],l=a[1],u=new i((o+l)*3/4-l),c=0,d=l>0?o-4:o;for(n=0;n>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===l&&(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,a=[],o=0,l=r-i;o>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}(e,o,o+16383>l?l:o+16383));return 1===i?a.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&a.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),a.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,l=a.length;o0)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 a,o=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,l=Math.ceil,s=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,a=e[0]+"";ru^n?1:-1;for(o=0,l=(s=i.length)<(u=a.length)?s:u;oa[o]^n?1:-1;return s==u?0:s>u^n?1:-1}function m(e,t,n,r){if(en||e!==s(e))throw Error(u+(r||"Argument")+("number"==typeof e?en?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function g(e){var t=e.c.length-1;return f(e.e/14)==t&&e.c[t]%2!=0}function v(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 tP?h.c=h.e=null:e.e=10;l/=10,a++);a>P?h.c=h.e=null:(h.e=a,h.c=[e]);return}f=String(e)}else{if(!o.test(f=String(e)))return k(h,f,u);h.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(a=f.indexOf("."))>-1&&(f=f.replace(".","")),(l=f.search(/e/i))>0?(a<0&&(a=l),a+=+f.slice(l+1),f=f.substring(0,l)):a<0&&(a=f.length)}else{if(m(t,2,L.length,"Base"),10==t&&Z)return I(h=new F(e),C+h.e+1,M);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),a=l=0,d=f.length;ln.indexOf(r=f.charAt(l))){if("."==r){if(l>a){a=d;continue}}else if(!i&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){i=!0,l=-1,a=0;continue}return k(h,String(e),u,t)}u=!1,(a=(f=j(f,t,10,h.s)).indexOf("."))>-1?f=f.replace(".",""):a=f.length}for(l=0;48===f.charCodeAt(l);l++);for(d=f.length;48===f.charCodeAt(--d););if(f=f.slice(l,++d)){if(d-=l,u&&F.DEBUG&&d>15&&(e>9007199254740991||e!==s(e)))throw Error(c+h.s*e);if((a=a-l-1)>P)h.c=h.e=null;else if(a=O)?v(s,o):y(s,o,"0");else if(a=(e=I(new F(e),t,n)).e,l=(s=h(e.c)).length,1==r||2==r&&(t<=a||a<=_)){for(;ll){if(--t>0)for(s+=".";t--;s+="0");}else if((t+=a-l)>0)for(a+1==l&&(s+=".");t--;s+="0");return e.s<0&&i?"-"+s:s}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)>P?e.c=e.e=null:n=10;u/=10,i++);if((a=t-i)<0)a+=14,o=t,h=(c=p[f=0])/d[i-o-1]%10|0;else if((f=l((a+1)/14))>=p.length){if(r){for(;p.length<=f;p.push(0));c=h=0,i=1,a%=14,o=a-14+1}else break e}else{for(i=1,c=u=p[f];u>=10;u/=10,i++);a%=14,h=(o=a-14+i)<0?0:c/d[i-o-1]%10|0}if(r=r||t<0||null!=p[f+1]||(o<0?c:c%d[i-o-1]),r=n<4?(h||r)&&(0==n||n==(e.s<0?3:2)):h>5||5==h&&(4==n||r||6==n&&(a>0?o>0?c/d[i-o]: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==a?(p.length=f,u=1,f--):(p.length=f+1,u=d[14-a],p[f]=o>0?s(c/d[i-o]%d[o])*u:0),r)for(;;){if(0==f){for(a=1,o=p[0];o>=10;o/=10,a++);for(o=p[0]+=u,u=1;o>=10;o/=10,u++);a!=u&&(e.e++,1e14==p[0]&&(p[0]=1));break}if(p[f]+=u,1e14!=p[f])break;p[f--]=0,u=1}for(a=p.length;0===p[--a];p.pop());}e.e>P?e.c=e.e=null:e.e=O?v(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),C=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(m(n=e[t],0,8,t),M=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(m(n[0],-1e9,0,t),m(n[1],0,1e9,t),_=n[0],O=n[1]):(m(n,-1e9,1e9,t),_=-(O=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],P=n[1];else if(m(n,-1e9,1e9,t),n)T=-(P=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))A=n;else throw A=!n,Error(u+"crypto unavailable")}else A=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:C,ROUNDING_MODE:M,EXPONENTIAL_AT:[_,O],RANGE:[T,P],CRYPTO:A,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,a=e.s;e:if("[object Array]"==({}).toString.call(r)){if((1===a||-1===a)&&i>=-1e9&&i<=1e9&&i===s(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!==s(n))break e;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===a||1===a||-1===a))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 s(9007199254740992*Math.random())}:function(){return(1073741824*Math.random()|0)*8388608+(8388608*Math.random()|0)},function(e){var t,r,i,a,o,c=0,f=[],h=new F(S);if(null==e?e=C:m(e,0,1e9),a=l(e/14),A){if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(a*=2));c>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[c]=r[0],t[c+1]=r[1]):(f.push(o%1e14),c+=2);c=a/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(a*=7);c=9e15?crypto.randomBytes(7).copy(t,c):(f.push(o%1e14),c+=7);c=a/7}else throw A=!1,Error(u+"crypto unavailable")}if(!A)for(;c=10;o/=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==o[i+1]&&(o[i+1]=0),o[i+1]+=o[i]/n|0,o[i]%=n)}return o.reverse()}return function(n,r,i,a,o){var l,s,u,c,d,f,p,m,g=n.indexOf("."),v=C,x=M;for(g>=0&&(c=R,R=0,n=n.replace(".",""),f=(m=new F(r)).pow(n.length-g),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,o?(l=L,e):(l=e,L))).length;0==p[--c];p.pop());if(!p[0])return l.charAt(0);if(g<0?--u:(f.c=p,f.e=u,f.s=a,p=(f=w(f,m,v,x,i)).c,d=f.r,u=f.e),g=p[s=u+v+1],c=i/2,d=d||s<0||null!=p[s+1],d=x<4?(null!=g||d)&&(0==x||x==(f.s<0?3:2)):g>c||g==c&&(4==x||d||6==x&&1&p[s-1]||x==(f.s<0?8:7)),s<1||!p[0])n=d?y(l.charAt(1),-v,l.charAt(0)):l.charAt(0);else{if(p.length=s,d)for(--i;++p[--s]>i;)p[s]=0,s||(++u,p=[1].concat(p));for(c=p.length;!p[--c];);for(g=0,n="";g<=c;n+=l.charAt(p[g++]));n=y(n,u,l.charAt(0))}return n}}(),w=function(){function e(e,t,n){var r,i,a,o,l=0,s=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();s--;)r=c*(a=e[s]%1e7)+(o=e[s]/1e7|0)*u,l=((i=u*a+r%1e7*1e7+l)/n|0)+(r/1e7|0)+c*o,e[s]=i%n;return l&&(e=[l].concat(e)),e}function t(e,t,n,r){var i,a;if(n!=r)a=n>r?1:-1;else for(i=a=0;it[i]?1:-1;break}return a}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,a,o,l){var u,c,d,h,p,m,g,v,y,x,b,w,j,k,E,S,C,M=r.s==i.s?1:-1,_=r.c,O=i.c;if(!_||!_[0]||!O||!O[0])return new F(r.s&&i.s&&(_?!O||_[0]!=O[0]:O)?_&&0==_[0]||!O?0*M:M/0:NaN);for(y=(v=new F(M)).c=[],M=a+(c=r.e-i.e)+1,l||(l=1e14,c=f(r.e/14)-f(i.e/14),M=M/14|0),d=0;O[d]==(_[d]||0);d++);if(O[d]>(_[d]||0)&&c--,M<0)y.push(1),h=!0;else{for(k=_.length,S=O.length,d=0,M+=2,(p=s(l/(O[0]+1)))>1&&(O=e(O,p,l),_=e(_,p,l),S=O.length,k=_.length),j=S,b=(x=_.slice(0,S)).length;b=l/2&&E++;do{if(p=0,(u=t(O,x,S,b))<0){if(w=x[0],S!=b&&(w=w*l+(x[1]||0)),(p=s(w/E))>1)for(p>=l&&(p=l-1),g=(m=e(O,p,l)).length,b=x.length;1==t(m,x,g,b);)p--,n(m,St(O,x,S,b);)p++,n(x,S=10;M/=10,d++);I(v,a+(v.e=d+14*c-1)+1,o,h)}else v.e=c,v.r=+h;return v}}(),r=/^(-?)0([xbo])(?=\w[\w.]*$)/i,i=/^([^.]+)\.$/,a=/^\.([^.]+)$/,x=/^-?(Infinity|NaN)$/,b=/^\s*\+(?=[\w.])|^\s+|\s+$/g,k=function(e,t,n,o){var l,s=n?t:t.replace(b,"");if(x.test(s))e.s=isNaN(s)?null:s<0?-1:1;else{if(!n&&(s=s.replace(r,function(e,t,n){return l="x"==(n=n.toLowerCase())?16:"b"==n?2:8,o&&o!=l?e:t}),o&&(l=o,s=s.replace(i,"$1").replace(a,"0.$1")),t!=s))return new F(s,l);if(F.DEBUG)throw Error(u+"Not a"+(o?" base "+o:"")+" 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=M:m(t,0,8),I(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,M)},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,a,o,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-g(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 a=p.s<0&&g(e)?-0:0,p.e>-1&&(a=1/a),new F(d?1/a:a);R&&(a=l(R/14+2))}for(c?(n=new F(.5),d&&(e.s=1),f=g(e)):f=(i=Math.abs(+H(e)))%2,h=new F(S);;){if(f){if(!(h=h.times(p)).c)break;a?h.c.length>a&&(h.c.length=a):r&&(h=h.mod(t))}if(i){if(0===(i=s(i/2)))break;f=i%2}else if(I(e=e.times(n),e.e+1,1),e.e>14)f=g(e);else{if(0==(i=+H(e)))break;f=i%2}p=p.times(p),a?p.c&&p.c.length>a&&(p.c.length=a):r&&(p=p.mod(t))}return r?h:(d&&(h=S.div(h)),t?h.mod(t):a?I(h,R,M,o):h)},E.integerValue=function(e){var t=new F(this);return null==e?e=M:m(e,0,8),I(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,a,o=this.s;if(t=(e=new F(e,t)).s,!o||!t)return new F(NaN);if(o!=t)return e.s=-t,this.plus(e);var l=this.e/14,s=e.e/14,u=this.c,c=e.c;if(!l||!s){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==M?-0:0)}if(l=f(l),s=f(s),u=u.slice(),o=l-s){for((a=o<0)?(o=-o,i=u):(s=l,i=c),i.reverse(),t=o;t--;i.push(0));i.reverse()}else for(r=(a=(o=u.length)<(t=c.length))?o:t,o=t=0;t0)for(;t--;u[n++]=0);for(t=1e14-1;r>o;){if(u[--r]=0;){for(n=0,h=v[i]%1e7,p=v[i]/1e7|0,a=i+(o=s);a>i;)l=p*(u=g[--o]%1e7)+(c=g[o]/1e7|0)*h,n=((u=h*u+l%1e7*1e7+m[a]+n)/1e14|0)+(l/1e7|0)+p*c,m[a--]=u%1e14;m[a]=n}return n?++r:m.splice(0,1),B(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,a=e.e/14,o=this.c,l=e.c;if(!i||!a){if(!o||!l)return new F(r/0);if(!o[0]||!l[0])return l[0]?e:new F(o[0]?this:0*r)}if(i=f(i),a=f(a),o=o.slice(),r=i-a){for(r>0?(a=i,n=l):(r=-r,n=o),n.reverse();r--;n.push(0));n.reverse()}for((r=o.length)-(t=l.length)<0&&(n=l,l=o,o=n,t=r),r=0;t;)r=(o[--t]=o[t]+l[t]+r)/1e14|0,o[t]=1e14===o[t]?0:o[t]%1e14;return r&&(o=[r].concat(o),++a),B(e,o,a)},E.precision=E.sd=function(e,t){var n,r,i;if(null!=e&&!!e!==e)return m(e,1,1e9),null==t?t=M:m(t,0,8),I(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,a=this.c,o=this.s,l=this.e,s=C+4,u=new F("0.5");if(1!==o||!a||!a[0])return new F(!o||o<0&&(!a||a[0])?NaN:a?this:1/0);if(0==(o=Math.sqrt(+H(this)))||o==1/0?(((t=h(a)).length+l)%2==0&&(t+="0"),o=Math.sqrt(+t),l=f((l+1)/2)-(l<0||l%2),n=new F(t=o==1/0?"5e"+l:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+l)):n=new F(o+""),n.c[0]){for((o=(l=n.e)+s)<3&&(o=0);;)if(i=n,n=u.times(i.plus(w(this,i,s,1))),h(i.c).slice(0,o)===(t=h(n.c)).slice(0,o)){if(n.e0&&p>0){for(i=p%o||o,c=h.substr(0,i);i0&&(c+=s+h.slice(i)),f&&(c="-"+c)}r=d?c+(n.decimalSeparator||"")+((l=+n.fractionGroupSize)?d.replace(RegExp("\\d{"+l+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):d):c}return(n.prefix||"")+r+(n.suffix||"")},E.toFraction=function(e){var t,n,r,i,a,o,l,s,c,f,p,m,g=this.c;if(null!=e&&(!(l=new F(e)).isInteger()&&(l.c||1!==l.s)||l.lt(S)))throw Error(u+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+H(l));if(!g)return new F(this);for(t=new F(S),c=n=new F(S),r=s=new F(S),m=h(g),a=t.e=m.length-this.e-1,t.c[0]=d[(o=a%14)<0?14+o:o],e=!e||l.comparedTo(t)>0?a>0?t:c:l,o=P,P=1/0,l=new F(m),s.c[0]=0;f=w(l,t,0,1),1!=(i=n.plus(f.times(r))).comparedTo(e);)n=r,r=i,c=s.plus(f.times(i=c)),s=i,t=l.minus(f.times(i=t)),l=i;return i=w(e.minus(n),r,0,1),s=s.plus(i.times(c)),n=n.plus(i.times(r)),s.s=c.s=this.s,a*=2,p=1>w(c,r,a,M).minus(this).abs().comparedTo(w(s,n,a,M).minus(this).abs())?[c,r]:[s,n],P=o,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<=_||i>=O?v(h(n.c),i):y(h(n.c),i,"0"):10===e&&Z?t=y(h((n=I(new F(n),C+i+1,M)).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=a.BigNumber=a,void 0!==(r=(function(){return a}).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 a(e,t,n,r){let i=e[t]+n;n<0&&(i+=4294967296);let a=e[t+1]+r;i>=4294967296&&a++,e[t]=i,e[t+1]=a}function o(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function l(e,t,n,r,o,l){let s=d[o],u=d[o+1],f=d[l],h=d[l+1];i(c,e,t),a(c,e,s,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),a(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 s=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]=s[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]=o(e.b,4*n);for(n=0;n<12;n++)l(0,8,16,24,u[16*n+0],u[16*n+1]),l(2,10,18,26,u[16*n+2],u[16*n+3]),l(4,12,20,28,u[16*n+4],u[16*n+5]),l(6,14,22,30,u[16*n+6],u[16*n+7]),l(0,10,20,30,u[16*n+8],u[16*n+9]),l(2,12,22,24,u[16*n+10],u[16*n+11]),l(4,14,16,26,u[16*n+12],u[16*n+13]),l(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]=s[e]^o(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 v(e,t,n,i,a){n=n||64,e=r.normalizeInput(e),i&&(i=r.normalizeInput(i)),a&&(a=r.normalizeInput(a));let o=p(n,t,i,a);return m(o,e),g(o)}e.exports={blake2b:v,blake2bHex:function(e,t,n,i,a){let o=v(e,t,n,i,a);return r.toHex(o)},blake2bInit:p,blake2bUpdate:m,blake2bFinal:g}},39962:function(e,t,n){let r=n(7967);function i(e,t,n,r,i,o){s[e]=s[e]+s[t]+i,s[r]=a(s[r]^s[e],16),s[n]=s[n]+s[r],s[t]=a(s[t]^s[n],12),s[e]=s[e]+s[t]+o,s[r]=a(s[r]^s[e],8),s[n]=s[n]+s[r],s[t]=a(s[t]^s[n],7)}function a(e,t){return e>>>t^e<<32-t}let o=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),l=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]),s=new Uint32Array(16),u=new Uint32Array(16);function c(e,t){let n=0;for(n=0;n<8;n++)s[n]=e.h[n],s[n+8]=o[n];for(s[12]^=e.t,s[13]^=e.t/4294967296,t&&(s[14]=~s[14]),n=0;n<16;n++){var r,a;u[n]=(r=e.b)[a=4*n]^r[a+1]<<8^r[a+2]<<16^r[a+3]<<24}for(n=0;n<10;n++)i(0,4,8,12,u[l[16*n+0]],u[l[16*n+1]]),i(1,5,9,13,u[l[16*n+2]],u[l[16*n+3]]),i(2,6,10,14,u[l[16*n+4]],u[l[16*n+5]]),i(3,7,11,15,u[l[16*n+6]],u[l[16*n+7]]),i(0,5,10,15,u[l[16*n+8]],u[l[16*n+9]]),i(1,6,11,12,u[l[16*n+10]],u[l[16*n+11]]),i(2,7,8,13,u[l[16*n+12]],u[l[16*n+13]]),i(3,4,9,14,u[l[16*n+14]],u[l[16*n+15]]);for(n=0;n<8;n++)e.h[n]^=s[n]^s[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(o),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)t=new TextEncoder().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 a=0;a * @license MIT - */var r=n(95766),i=n(62333),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(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 s(e,t,n)}function s(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!l.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|p(e,t),r=o(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(_(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(_(e,ArrayBuffer)||e&&_(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(_(e,SharedArrayBuffer)||e&&_(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 l.from(r,t,n);var i=function(e){if(l.isBuffer(e)){var t,n=0|h(e.length),r=o(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?o(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 l.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),o(e<0?0:0|h(e))}function d(e){for(var t=e.length<0?0:0|h(e.length),n=o(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(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||_(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 C(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return M(e).length;default:if(i)return r?-1:C(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){var i,a,o=!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="",a=t;a2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(a=n=+n)!=a&&(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=l.from(t,r)),l.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 a,o=1,l=e.length,s=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;o=2,l/=2,s/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=n;al&&(n=l-s),a=n;a>=0;a--){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&(a=e[i+1]))==128&&(s=(31&u)<<6|63&a)>127&&(c=s);break;case 3:a=e[i+1],o=e[i+2],(192&a)==128&&(192&o)==128&&(s=(15&u)<<12|(63&a)<<6|63&o)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:a=e[i+1],o=e[i+2],l=e[i+3],(192&a)==128&&(192&o)==128&&(192&l)==128&&(s=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&l)>65535&&s<1114112&&(c=s)}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,a){if(!l.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,a){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function k(e,t,n,r,a){return t=+t,n>>>=0,a||j(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function E(e,t,n,r,a){return t=+t,n>>>=0,a||j(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.lW=l,t.h2=50,l.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}}(),l.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(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return s(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return(u(e),e<=0)?o(e):void 0!==t?"string"==typeof n?o(e).fill(t,n):o(e).fill(t):o(e)},l.allocUnsafe=function(e){return c(e)},l.allocUnsafeSlow=function(e){return c(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(_(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),_(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.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,a=Math.min(n,r);ir.length?l.from(a).copy(r,i):Uint8Array.prototype.set.call(r,a,i);else if(l.isBuffer(a))a.copy(r,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=a.length}return r},l.byteLength=p,l.prototype._isBuffer=!0,l.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+=" ... "),""},a&&(l.prototype[a]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,i){if(_(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.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 a=i-r,o=n-t,s=Math.min(a,o),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,a,o,l,s,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 a=t.length;r>a/2&&(r=a/2);for(var o=0;o>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}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.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,a=0;++a>>=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},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.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]},l.prototype.readUint32BE=l.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])},l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],i=1,a=0;++a=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},l.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},l.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},l.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},l.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},l.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]},l.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.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 a=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var a=n-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},l.prototype.writeUint8=l.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},l.prototype.writeUint16LE=l.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},l.prototype.writeUint16BE=l.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},l.prototype.writeUint32LE=l.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},l.prototype.writeUint32BE=l.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},l.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 a=0,o=1,l=0;for(this[t]=255&e;++a>0)-l&255;return t+n},l.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 a=n-1,o=1,l=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===l&&0!==this[t+a+1]&&(l=1),this[t+a]=(e/o>>0)-l&255;return t+n},l.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},l.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},l.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},l.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},l.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},l.prototype.writeFloatLE=function(e,t,n){return k(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return k(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return E(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return E(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.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||o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return a}function M(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 P(e,t,n,r){for(var i=0;i=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function _(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var O=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;/*! + */var r=n(95766),i=n(62333),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(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 s(e,t,n)}function s(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!l.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|p(e,t),r=o(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(O(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(O(e,ArrayBuffer)||e&&O(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(O(e,SharedArrayBuffer)||e&&O(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 l.from(r,t,n);var i=function(e){if(l.isBuffer(e)){var t,n=0|h(e.length),r=o(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?o(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 l.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),o(e<0?0:0|h(e))}function d(e){for(var t=e.length<0?0:0|h(e.length),n=o(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(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||O(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 C(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return M(e).length;default:if(i)return r?-1:C(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){var i,a,o=!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="",a=t;a2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(a=n=+n)!=a&&(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=l.from(t,r)),l.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 a,o=1,l=e.length,s=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;o=2,l/=2,s/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=n;al&&(n=l-s),a=n;a>=0;a--){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&(a=e[i+1]))==128&&(s=(31&u)<<6|63&a)>127&&(c=s);break;case 3:a=e[i+1],o=e[i+2],(192&a)==128&&(192&o)==128&&(s=(15&u)<<12|(63&a)<<6|63&o)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:a=e[i+1],o=e[i+2],l=e[i+3],(192&a)==128&&(192&o)==128&&(192&l)==128&&(s=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&l)>65535&&s<1114112&&(c=s)}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,a){if(!l.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,a){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function k(e,t,n,r,a){return t=+t,n>>>=0,a||j(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function E(e,t,n,r,a){return t=+t,n>>>=0,a||j(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.lW=l,t.h2=50,l.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}}(),l.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(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return s(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return(u(e),e<=0)?o(e):void 0!==t?"string"==typeof n?o(e).fill(t,n):o(e).fill(t):o(e)},l.allocUnsafe=function(e){return c(e)},l.allocUnsafeSlow=function(e){return c(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(O(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),O(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.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,a=Math.min(n,r);ir.length?l.from(a).copy(r,i):Uint8Array.prototype.set.call(r,a,i);else if(l.isBuffer(a))a.copy(r,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=a.length}return r},l.byteLength=p,l.prototype._isBuffer=!0,l.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+=" ... "),""},a&&(l.prototype[a]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,i){if(O(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.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 a=i-r,o=n-t,s=Math.min(a,o),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,a,o,l,s,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 a=t.length;r>a/2&&(r=a/2);for(var o=0;o>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}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.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,a=0;++a>>=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},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.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]},l.prototype.readUint32BE=l.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])},l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],i=1,a=0;++a=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},l.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},l.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},l.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},l.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},l.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]},l.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.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 a=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var a=n-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},l.prototype.writeUint8=l.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},l.prototype.writeUint16LE=l.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},l.prototype.writeUint16BE=l.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},l.prototype.writeUint32LE=l.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},l.prototype.writeUint32BE=l.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},l.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 a=0,o=1,l=0;for(this[t]=255&e;++a>0)-l&255;return t+n},l.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 a=n-1,o=1,l=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===l&&0!==this[t+a+1]&&(l=1),this[t+a]=(e/o>>0)-l&255;return t+n},l.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},l.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},l.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},l.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},l.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},l.prototype.writeFloatLE=function(e,t,n){return k(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return k(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return E(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return E(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.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||o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return a}function M(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 _(e,t,n,r){for(var i=0;i=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function O(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,a,o,h+1,s+1))>p&&(h===l?u*=1:t.test(r.charAt(h-1))?(u*=.9,(d=r.slice(l,h-1).match(n))&&l>0&&(u*=Math.pow(.999,d.length))):(t.test(r.slice(l,h-1))?u*=0:u*=.3,l>0&&(u*=Math.pow(.999,h-l))),r.charAt(h)!==i.charAt(s)&&(u*=.9999)),u<.1&&a.charAt(h-1)===o.charAt(s+1)&&a.charAt(h-1)!==o.charAt(s)&&.1*(c=e(r,i,a,o,h+1,s+2))>u&&(u=.1*c),u>p&&(p=u),h=a.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 o},SU:function(){return k},Ss:function(){return S},Ym:function(){return T},ZP:function(){return b},xV:function(){return a}});var r=n(40948);function i(){}var a=.7,o=1.4285714285714286,l="\\s*([+-]?\\d+)\\s*",s="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,d=RegExp("^rgb\\("+[l,l,l]+"\\)$"),f=RegExp("^rgb\\("+[u,u,u]+"\\)$"),h=RegExp("^rgba\\("+[l,l,l,s]+"\\)$"),p=RegExp("^rgba\\("+[u,u,u,s]+"\\)$"),m=RegExp("^hsl\\("+[s,u,u]+"\\)$"),g=RegExp("^hsla\\("+[s,u,u,s]+"\\)$"),v={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))?_(t[1],t[2]/100,t[3]/100,1):(t=g.exec(e))?_(t[1],t[2]/100,t[3]/100,t[4]):v.hasOwnProperty(e)?w(v[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)?new S((e=e.rgb()).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 C(){return"#"+P(this.r)+P(this.g)+P(this.b)}function M(){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 P(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function _(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new A(e,t,n,r)}function O(e){if(e instanceof A)return new A(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=b(e)),!e)return new A;if(e instanceof A)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),o=Math.max(t,n,r),l=NaN,s=o-a,u=(o+a)/2;return s?(l=t===o?(n-r)/s+(n0&&u<1?0:l,new A(l,s,u,e.opacity)}function T(e,t,n,r){return 1==arguments.length?O(e):new A(e,t,n,null==r?1:r)}function A(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 O(this).formatHsl()},formatRgb:x,toString:x}),(0,r.Z)(S,E,(0,r.l)(i,{brighter:function(e){return e=null==e?o:Math.pow(o,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?a:Math.pow(a,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:C,formatHex:C,formatRgb:M,toString:M})),(0,r.Z)(A,T,(0,r.l)(i,{brighter:function(e){return e=null==e?o:Math.pow(o,e),new A(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?a:Math.pow(a,e),new A(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 v},ZP:function(){return d}});var r=n(40948),i=n(68847),a=n(10810),o=4/29,l=6/29,s=6/29*3*(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=g(e.r),a=g(e.g),o=g(e.b),l=h((.2225045*r+.7168786*a+.0606169*o)/1);return r===a&&a===o?t=n=l:(t=h((.4360747*r+.3850649*a+.1430804*o)/.96422),n=h((.0139322*r+.0971045*a+.7141733*o)/.82521)),new f(116*l-16,500*(t-l),200*(l-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/s+o}function p(e){return e>l?e*e*e:s*(e-o)}function m(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function g(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function v(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],a=n[1],o=a-(r=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,l=i.length;return o===l?i:o>l?i+Array(o-l+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+Array(1-o).join("0")+(0,u.V)(e,Math.max(0,t+o-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"];a=(i=function(e){var t,n,i,a=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,a=[],o=0,l=t[0],s=0;i>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),a.push(e.substring(i-=l,i+l)),!((s+=l+1)>r));)l=t[o=(o+1)%t.length];return a.reverse().join(n)}),o=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]})}),g=void 0===e.percent?"%":e.percent+"",v=void 0===e.minus?"−":e.minus+"",y=void 0===e.nan?"NaN":e.nan+"";function x(e){var t=(e=(0,s.Z)(e)).fill,n=e.align,i=e.sign,l=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="$"===l?o:"#"===l&&/[boxX]/.test(j)?"0"+j.toLowerCase():"",E="$"===l?u:/[%p]/.test(j)?g:"",S=d[j],C=/[defgprs%]/.test(j);function M(e){var o,l,s,u=k,d=E;if("c"===j)d=S(e)+d,e="";else{var g=(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)),g&&0==+e&&"+"!==i&&(g=!1),u=(g?"("===i?i:v:"-"===i||"("===i?"":i)+u,d=("s"===j?p[8+r/3]:"")+d+(g&&"("===i?")":""),C){for(o=-1,l=e.length;++o(s=e.charCodeAt(o))||s>57){d=(46===s?c+e.slice(o+1):e.slice(o))+d,e=e.slice(0,o);break}}}x&&!f&&(e=a(e,1/0));var M=u.length+e.length+d.length,P=M>1)+u+e+d+P.slice(M);break;default:e=P+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)),M.toString=function(){return e+""},M}return{format:x,formatPrefix:function(e,t){var n=x(((e=(0,s.Z)(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor((0,l.Z)(t)/3))),i=Math.pow(10,-r),a=p[8+r/3];return function(e){return n(i*e)+a}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,o=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 a({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 a(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=a.prototype,a.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 a,o,l=!0,s=!1;return{s:function(){a=e[Symbol.iterator]()},n:function(){var e=a.next();return l=e.done,e},e:function(e){s=!0,o=e},f:function(){try{l||null==a.return||a.return()}finally{if(s)throw o}}}}function a(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 o=/[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g,l={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 s(e,t){for(var n=Array(e),r=0;r0?a-=1:a0&&(a-=1)),t[a]=(t[a]||0)+1,t},[]).reduce(function(n,r,i){if(i===e.length-1){var o=s(r,t({},e[e.length-1]));return"M"===o[0].type&&o.forEach(function(e){e.type="L"}),n.concat(o)}return n.concat(function(e,n,r){var i,o=[];if("L"===n.type||"Q"===n.type||"C"===n.type)o=o.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),a=0;a0&&"Z"===a[a.length-1].type&&a.pop(),o.length>0&&"Z"===o[o.length-1].type&&o.pop(),a.length?o.length||o.push(a[0]):a.push(o[0]),0!==Math.abs(o.length-a.length)&&(o.length>a.length?a=u(a,o,r):o.length0)for(var n=0;n=1?(n=1,t-1):Math.floor(n*t),a=e[i],o=e[i+1],l=i>0?e[i-1]:2*a-o,s=i180||n<-180?n-360*Math.round(n/360):n):(0,r.Z)(isNaN(e)?t:e)}function o(e){return 1==(e=+e)?l:function(t,n){var i,a,o;return n-t?(i=t,a=n,i=Math.pow(i,o=e),a=Math.pow(a,o)-i,o=1/o,function(e){return Math.pow(i+e*a,o)}):(0,r.Z)(isNaN(t)?n:t)}}function l(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),a=n(10810),o=-1.78277*.29227-.1347134789;function l(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof s)return new s(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,l=(o*r+-1.7884503806*t-3.5172982438*n)/(o+-1.7884503806-3.5172982438),u=r-l,c=-((1.97294*(n-l)- -.29227*u)/.90649),d=Math.sqrt(c*c+u*u)/(1.97294*l*(1-l)),f=d?Math.atan2(c,u)*a.B-120:NaN;return new s(f<0?f+360:f,d,l,e.opacity)}(e):new s(e,t,n,null==r?1:r)}function s(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}(0,r.Z)(s,l,(0,r.l)(i.Il,{brighter:function(e){return e=null==e?i.J5:Math.pow(i.J5,e),new s(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?i.xV:Math.pow(i.xV,e),new s(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*a.V,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new i.Ss(255*(t+n*(-.14861*r+1.78277*o)),255*(t+n*(-.29227*r+-.90649*o)),255*(t+1.97294*r*n),this.opacity)}}));var u=n(1234);function c(e){return function t(n){function r(t,r){var i=e((t=l(t)).h,(r=l(r)).h),a=(0,u.ZP)(t.s,r.s),o=(0,u.ZP)(t.l,r.l),s=(0,u.ZP)(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=a(e),t.l=o(Math.pow(e,n)),t.opacity=s(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 o}});var r=n(20966),i=n(1234);function a(e){return function(t,n){var a=e((t=(0,r.Uc)(t)).h,(n=(0,r.Uc)(n)).h),o=(0,i.ZP)(t.c,n.c),l=(0,i.ZP)(t.l,n.l),s=(0,i.ZP)(t.opacity,n.opacity);return function(e){return t.h=a(e),t.c=o(e),t.l=l(e),t.opacity=s(e),t+""}}}t.Z=a(i.wx);var o=a(i.ZP)},43780:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(68847),i=n(1234);function a(e){return function(t,n){var a=e((t=(0,r.Ym)(t)).h,(n=(0,r.Ym)(n)).h),o=(0,i.ZP)(t.s,n.s),l=(0,i.ZP)(t.l,n.l),s=(0,i.ZP)(t.opacity,n.opacity);return function(e){return t.h=a(e),t.s=o(e),t.l=l(e),t.opacity=s(e),t+""}}}t.Z=a(i.wx);var o=a(i.ZP)},31380:function(e,t,n){"use strict";n.r(t),n.d(t,{interpolate:function(){return l.Z},interpolateArray:function(){return s.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 A.Z},interpolateHclLong:function(){return A.b},interpolateHsl:function(){return O.Z},interpolateHslLong:function(){return O.q},interpolateHue:function(){return p},interpolateLab:function(){return T.Z},interpolateNumber:function(){return m.Z},interpolateNumberArray:function(){return g.Z},interpolateObject:function(){return v.Z},interpolateRgb:function(){return _.ZP},interpolateRgbBasis:function(){return _.hD},interpolateRgbBasisClosed:function(){return _.YD},interpolateRound:function(){return y.Z},interpolateString:function(){return x.Z},interpolateTransformCss:function(){return E},interpolateTransformSvg:function(){return S},interpolateZoom:function(){return P},piecewise:function(){return R.Z},quantize:function(){return D}});var r,i,a,o,l=n(69777),s=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),g=n(43289),v=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,a){var o,l,s;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(s=e*n+t*r)&&(n-=e*s,r-=t*s),(l=Math.sqrt(n*n+r*r))&&(n/=l,r/=l,s/=l),e*r180?s+=360:s-l>180&&(l+=360),f.push({i:d.push(i(d)+"rotate(",null,r)-2,x:(0,m.Z)(l,s)})):s&&d.push(i(d)+"rotate("+s+r),(u=a.skewX)!==(c=o.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,a,o){if(e!==n||t!==r){var l=a.push(i(a)+"scale(",null,",",null,")");o.push({i:l-4,x:(0,m.Z)(e,n)},{i:l-2,x:(0,m.Z)(t,r)})}else(1!==n||1!==r)&&a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,d,f),a=o=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),(l=l[0])===(s=s[0])?f[d]?f[d]+=s:f[++d]=s:(f[++d]=null,h.push({i:d,x:(0,r.Z)(l,s)})),c=a.lastIndex;return c1e-6){if(Math.abs(d*s-u*c)>1e-6&&a){var h=r-o,p=i-l,m=s*s+u*u,g=Math.sqrt(m),v=Math.sqrt(f),y=a*Math.tan((n-Math.acos((m+f-(h*h+p*p))/(2*g*v)))/2),x=y/v,b=y/g;Math.abs(x-1)>1e-6&&(this._+="L"+(e+x*c)+","+(t+x*d)),this._+="A"+a+","+a+",0,0,"+ +(d*h>c*p)+","+(this._x1=e+b*s)+","+(this._y1=t+b*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t)}},arc:function(e,t,a,o,l,s){e=+e,t=+t,a=+a,s=!!s;var u=a*Math.cos(o),c=a*Math.sin(o),d=e+u,f=t+c,h=1^s,p=s?o-l:l-o;if(a<0)throw Error("negative radius: "+a);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),a&&(p<0&&(p=p%r+r),p>i?this._+="A"+a+","+a+",0,1,"+h+","+(e-u)+","+(t-c)+"A"+a+","+a+",0,1,"+h+","+(this._x1=d)+","+(this._y1=f):p>1e-6&&(this._+="A"+a+","+a+",0,"+ +(p>=n)+","+h+","+(this._x1=e+a*Math.cos(l))+","+(this._y1=t+a*Math.sin(l))))},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=o},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 s}});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[a],t)?r=a+1:i=a}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,a){null==r&&(r=0),null==a&&(a=e.length);let o=i(e,n,r,a-1);return o>r&&t(e[o-1],n)>-t(e[o],n)?o-1:o},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[a],t)>0?i=a:r=a+1}return r}}}var a=n(81048);let o=i(r.Z),l=o.right;o.left,i(a.Z).center;var s=l},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 s},s:function(){return u}});var a=n(1169);function o(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}var l=n(81048);function s(e,t,n){if(s=(e=Float64Array.from((0,l.K)(e,n))).length){if((t=+t)<=0||s<2)return i(e);if(t>=1)return r(e);var s,u=(s-1)*t,c=Math.floor(u),d=r((function e(t,n,r=0,i=t.length-1,l=a.Z){for(;i>r;){if(i-r>600){let a=i-r+1,o=n-r+1,s=Math.log(a),u=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*u*(a-u)/a)*(o-a/2<0?-1:1),d=Math.max(r,Math.floor(n-o*u/a+c)),f=Math.min(i,Math.floor(n+(a-o)*u/a+c));e(t,n,d,f,l)}let a=t[n],s=r,u=i;for(o(t,r,n),l(t[i],a)>0&&o(t,r,i);sl(t[s],a);)++s;for(;l(t[u],a)>0;)--u}0===l(t[r],a)?o(t,r,u):o(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=l.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,a=Math.floor(i),o=+n(e[a],a,e);return o+(+n(e[a+1],a+1,e)-o)*(i-a)}}},32071:function(e,t,n){"use strict";n.d(t,{G9:function(){return l},ZP:function(){return o},ly:function(){return s}});var r=Math.sqrt(50),i=Math.sqrt(10),a=Math.sqrt(2);function o(e,t,n){var r,i,a,o,s=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t0){let n=Math.round(e/o),r=Math.round(t/o);for(n*ot&&--r,a=Array(i=r-n+1);++st&&--r,a=Array(i=r-n+1);++s=0?(s>=r?10:s>=i?5:s>=a?2:1)*Math.pow(10,l):-Math.pow(10,-l)/(s>=r?10:s>=i?5:s>=a?2:1)}function s(e,t,n){var o=Math.abs(t-e)/Math.max(0,n),l=Math.pow(10,Math.floor(Math.log(o)/Math.LN10)),s=o/l;return s>=r?l*=10:s>=i?l*=5:s>=a&&(l*=2),t[e.toLowerCase(),t]))}function k(e,t,n){var r=g.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function E(e,t,n){var r=g.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function S(e,t,n){var r=g.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function C(e,t,n){var r=g.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function M(e,t,n){var r=g.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function P(e,t,n){var r=g.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function _(e,t,n){var r=g.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function O(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=g.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function A(e,t,n){var r=g.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=g.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function R(e,t,n){var r=g.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=g.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function L(e,t,n){var r=g.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Z(e,t,n){var r=g.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function F(e,t,n){var r=g.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function z(e,t,n){var r=g.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=v.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function B(e,t,n){var r=g.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function I(e,t,n){var r=g.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 X(e,t){return x(e.getMinutes(),t,2)}function G(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(s.OM.count((0,c.Z)(e)-1,e),t,2)}function ee(e){var t=e.getDay();return t>=4||0===t?(0,s.bL)(e):s.bL.ceil(e)}function et(e,t){return e=ee(e),x(s.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(s.wA.count((0,c.Z)(e)-1,e),t,2)}function ei(e,t){return x(e.getFullYear()%100,t,2)}function ea(e,t){return x((e=ee(e)).getFullYear()%100,t,2)}function eo(e,t){return x(e.getFullYear()%1e4,t,4)}function el(e,t){var n=e.getDay();return x((e=n>=4||0===n?(0,s.bL)(e):s.bL.ceil(e)).getFullYear()%1e4,t,4)}function es(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+l.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 eg(e,t){return x(e.getUTCMinutes(),t,2)}function ev(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(o.Ox.count((0,d.Z)(e)-1,e),t,2)}function eb(e){var t=e.getUTCDay();return t>=4||0===t?(0,o.hB)(e):o.hB.ceil(e)}function ew(e,t){return e=eb(e),x(o.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(o.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 eC(e,t){return x(e.getUTCFullYear()%1e4,t,4)}function eM(e,t){var n=e.getUTCDay();return x((e=n>=4||0===n?(0,o.hB)(e):o.hB.ceil(e)).getUTCFullYear()%1e4,t,4)}function eP(){return"+0000"}function e_(){return"%"}function eO(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,a=e.days,c=e.shortDays,d=e.months,g=e.shortMonths,v=w(i),y=j(i),x=w(a),b=j(a),ee=w(c),eb=j(c),eA=w(d),eN=j(d),eR=w(g),eD=j(g),eL={a:function(e){return c[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return g[e.getMonth()]},B:function(e){return d[e.getMonth()]},c:null,d:H,e:H,f:K,g:ea,G:el,H:U,I:W,j:q,L:$,m:Y,M:X,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:eO,s:eT,S:G,u:J,U:Q,V:et,w:en,W:er,x:null,X:null,y:ei,Y:eo,Z:es,"%":e_},eZ={a:function(e){return c[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return g[e.getUTCMonth()]},B:function(e){return d[e.getUTCMonth()]},c:null,d:eu,e:eu,f:ep,g:eS,G:eM,H:ec,I:ed,j:ef,L:eh,m:em,M:eg,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:eO,s:eT,S:ev,u:ey,U:ex,V:ew,w:ej,W:ek,x:null,X:null,y:eE,Y:eC,Z:eP,"%":e_},eF={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=eA.exec(t.slice(n));return r?(e.m=eN.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return eB(e,t,n,r)},d:N,e:N,f:z,g:_,G:P,H:D,I:D,j:R,L:F,m:A,M:L,p:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.p=y.get(r[0].toLowerCase()),n+r[0].length):-1},q:T,Q:B,s:I,S:Z,u:E,U:S,V:C,w:k,W:M,x:function(e,t,r){return eB(e,n,t,r)},X:function(e,t,n){return eB(e,r,t,n)},y:_,Y:P,Z:O,"%":V};function ez(e,t){return function(n){var r,i,a,o=[],l=-1,s=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++l53)return null;"w"in a||(a.w=1),"Z"in a?(r=(i=(r=h(p(a.y,0,1))).getUTCDay())>4||0===i?o.l6.ceil(r):(0,o.l6)(r),r=l.Z.offset(r,(a.V-1)*7),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(r=(i=(r=f(p(a.y,0,1))).getDay())>4||0===i?s.wA.ceil(r):(0,s.wA)(r),r=u.Z.offset(r,(a.V-1)*7),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?h(p(a.y,0,1)).getUTCDay():f(p(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,h(a)):f(a)}}function eB(e,t,n,r){for(var i,a,o=0,l=t.length,s=n.length;o=s)return -1;if(37===(i=t.charCodeAt(o++))){if(!(a=eF[(i=t.charAt(o++))in m?t.charAt(o++):i])||(r=a(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,a=r.utcFormat,r.utcParse},48623:function(e,t,n){"use strict";n.d(t,{Z:function(){return a},x:function(){return o}});var r=n(22274),i=n(34130);function a(){var e,t,n=(0,i.Z)().unknown(void 0),o=n.domain,l=n.range,s=0,u=1,c=!1,d=0,f=0,h=.5;function p(){var n=o().length,r=ut&&(n=e,e=t,t=n),v=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,g)))(e(v(t)))}return x.invert=function(n){return v(t((h||(h=r(m,p.map(e),a.Z)))(n)))},x.domain=function(e){return arguments.length?(p=Array.from(e,l.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),g=o.Z,y()},x.clamp=function(e){return arguments.length?(v=!!e||u,y()):v!==u},x.interpolate=function(e){return arguments.length?(g=e,y()):g},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)(P()(y.yR));return t.copy=function(){return w(t,e())},x.O.apply(t,arguments)}},scaleDivergingLog:function(){return function e(){var t=(0,o.Q)(P()).domain([.1,1,10]);return t.copy=function(){return w(t,e()).base(t.base())},x.O.apply(t,arguments)}},scaleDivergingPow:function(){return _},scaleDivergingSqrt:function(){return O},scaleDivergingSymlog:function(){return function e(){var t=(0,l.P)(P());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,a.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,a.Z):[0,1],(0,i.Q)(r)}},scaleImplicit:function(){return s.O},scaleLinear:function(){return i.Z},scaleLog:function(){return o.Z},scaleOrdinal:function(){return s.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,o.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,C.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,l.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 l.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),a=n(5497),o=n(13641),l=n(46494),s=n(34130),u=n(72851),c=n(19637),d=n(96417),f=n(73408),h=n(74995),p=n(37932),m=n(83803),g=n(69777),v=n(74672),y=n(70552),x=n(22274);function b(){var e,t,n,r,i,a=0,o=1,l=y.yR,s=!1;function u(t){return null==t||isNaN(t=+t)?i:l(0===n?.5:(t=(r(t)-e)*n,s?Math.max(0,Math.min(1,t)):t))}function c(e){return function(t){var n,r;return arguments.length?([n,r]=t,l=e(n,r),u):[l(0),l(1)]}}return u.domain=function(i){return arguments.length?([a,o]=i,e=r(a=+a),t=r(o=+o),n=e===t?0:1/(t-e),u):[a,o]},u.clamp=function(e){return arguments.length?(s=!!e,u):s},u.interpolator=function(e){return arguments.length?(l=e,u):l},u.range=c(g.Z),u.rangeRound=c(v.Z),u.unknown=function(e){return arguments.length?(i=e,u):i},function(i){return r=i,e=i(a),t=i(o),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),C=n(33907),M=n(87475);function P(){var e,t,n,r,i,a,o,l=0,s=.5,u=1,c=1,d=y.yR,f=!1;function h(e){return isNaN(e=+e)?o:(e=.5+((e=+a(e))-t)*(c*e0;){if((a=(0,r.G9)(u,c,n))===i)return o[l]=u,o[s]=c,t(o);if(a>0)u=Math.floor(u/a)*a,c=Math.ceil(c/a)*a;else if(a<0)u=Math.ceil(u*a)/a,c=Math.floor(c*a)/a;else break;i=a}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,o.l4)()).domain([1,10]);return t.copy=function(){return(0,o.JG)(t,e()).base(t.base())},l.o.apply(t,arguments),t}}});var r=n(32071),i=n(11192),a=n(10070),o=n(70552),l=n(22274);function s(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,o=e(s,u),l=o.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)},l()[0]<0?(t=h(t),n=h(n),e(c,d)):e(s,u),o}return o.base=function(e){return arguments.length?(p=+e,m()):p},o.domain=function(e){return arguments.length?(l(e),m()):l()},o.ticks=function(e){var i,a=l(),o=a[0],s=a[a.length-1];(i=s0){for(;f<=h;++f)for(c=1,u=n(f);cs)break;g.push(d)}}else for(;f<=h;++f)for(c=p-1,u=n(f);c>=1;--c)if(!((d=u*c)s)break;g.push(d)}2*g.length0?s[t-1]:n[0],t=l?[s[l-1],o]:[s[t-1],s[t]]},c.unknown=function(e){return arguments.length&&(t=e),c},c.thresholds=function(){return s.slice()},c.copy=function(){return e().domain([n,o]).range(u).unknown(t)},a.o.apply((0,i.Q)(c),arguments)}}});var r=n(98038),i=n(93963),a=n(22274)},19637:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(){var t,n=(0,r.ZP)(),s=[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(l(e))},c.domain=function(e){return arguments.length?(n.domain(e),c):n.domain()},c.range=function(e){return arguments.length?(n.range((s=Array.from(e,o.Z)).map(l)),c):s.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(),s).round(u).clamp(n.clamp()).unknown(t)},i.o.apply(c,arguments),(0,a.Q)(c)}}});var r=n(70552),i=n(22274),a=n(93963),o=n(5497);function l(e){return Math.sign(e)*e*e}},46494:function(e,t,n){"use strict";n.d(t,{P:function(){return s},Z:function(){return function e(){var t=s((0,i.l4)());return t.copy=function(){return(0,i.JG)(t,e()).constant(t.constant())},a.o.apply(t,arguments)}}});var r=n(93963),i=n(70552),a=n(22274);function o(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function l(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function s(e){var t=1,n=e(o(1),l(t));return n.constant=function(n){return arguments.length?e(o(t=+n),l(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],a=[0,1],o=1;function l(e){return null!=e&&e<=e?a[(0,r.ZP)(n,e,0,o)]:t}return l.domain=function(e){return arguments.length?(o=Math.min((n=Array.from(e)).length,a.length-1),l):n.slice()},l.range=function(e){return arguments.length?(a=Array.from(e),o=Math.min(n.length,a.length-1),l):a.slice()},l.invertExtent=function(e){var t=a.indexOf(e);return[n[t-1],n[t]]},l.unknown=function(e){return arguments.length?(t=e,l):t},l.copy=function(){return e().domain(n).range(a).unknown(t)},i.o.apply(l,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),a=n(21032),o=n(11192),l=n(61652),s=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,a.Z)(d,f))||(u.precision=c),(0,o.jH)(u,f);case"":case"e":case"g":case"p":case"r":null!=u.precision||isNaN(c=(0,l.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,s.Z)(d))||(u.precision=c-("%"===u.type)*2)}return(0,o.WU)(u)}},37932:function(e,t,n){"use strict";n.d(t,{Y:function(){return v},Z:function(){return y}});var r=n(1381),i=n(97344),a=n(50690),o=n(76231),l=n(68603),s=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 g(e){return e instanceof Date?+e:+new Date(+e)}function v(e,t,n,r,i,a,o,l,s,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 C(e){return(s(e)T*T+A*A&&(S=M,C=P),{cx:S,cy:C,x01:-d,y01:-f,x11:S*(i/j-1),y11:C*(i/j-1)}}function f(){var e=o,t=l,n=(0,i.Z)(0),f=null,h=s,p=u,m=c,g=null;function v(){var i,o,l=+e.apply(this,arguments),s=+t.apply(this,arguments),u=h.apply(this,arguments)-a.ou,c=p.apply(this,arguments)-a.ou,v=(0,a.Wn)(c-u),y=c>u;if(g||(g=i=(0,r.Z)()),sa.Ho){if(v>a.BZ-a.Ho)g.moveTo(s*(0,a.mC)(u),s*(0,a.O$)(u)),g.arc(0,0,s,u,c,!y),l>a.Ho&&(g.moveTo(l*(0,a.mC)(c),l*(0,a.O$)(c)),g.arc(0,0,l,c,u,y));else{var x,b,w=u,j=c,k=u,E=c,S=v,C=v,M=m.apply(this,arguments)/2,P=M>a.Ho&&(f?+f.apply(this,arguments):(0,a._b)(l*l+s*s)),_=(0,a.VV)((0,a.Wn)(s-l)/2,+n.apply(this,arguments)),O=_,T=_;if(P>a.Ho){var A=(0,a.ZR)(P/l*(0,a.O$)(M)),N=(0,a.ZR)(P/s*(0,a.O$)(M));(S-=2*A)>a.Ho?(A*=y?1:-1,k+=A,E-=A):(S=0,k=E=(u+c)/2),(C-=2*N)>a.Ho?(N*=y?1:-1,w+=N,j-=N):(C=0,w=j=(u+c)/2)}var R=s*(0,a.mC)(w),D=s*(0,a.O$)(w),L=l*(0,a.mC)(E),Z=l*(0,a.O$)(E);if(_>a.Ho){var F,z=s*(0,a.mC)(j),V=s*(0,a.O$)(j),B=l*(0,a.mC)(k),I=l*(0,a.O$)(k);if(va.Ho?T>a.Ho?(x=d(B,I,R,D,s,T,y),b=d(z,V,L,Z,s,T,y),g.moveTo(x.cx+x.x01,x.cy+x.y01),T<_?g.arc(x.cx,x.cy,T,(0,a.fv)(x.y01,x.x01),(0,a.fv)(b.y01,b.x01),!y):(g.arc(x.cx,x.cy,T,(0,a.fv)(x.y01,x.x01),(0,a.fv)(x.y11,x.x11),!y),g.arc(0,0,s,(0,a.fv)(x.cy+x.y11,x.cx+x.x11),(0,a.fv)(b.cy+b.y11,b.cx+b.x11),!y),g.arc(b.cx,b.cy,T,(0,a.fv)(b.y11,b.x11),(0,a.fv)(b.y01,b.x01),!y))):(g.moveTo(R,D),g.arc(0,0,s,w,j,!y)):g.moveTo(R,D),l>a.Ho&&S>a.Ho?O>a.Ho?(x=d(L,Z,z,V,l,-O,y),b=d(R,D,B,I,l,-O,y),g.lineTo(x.cx+x.x01,x.cy+x.y01),O<_?g.arc(x.cx,x.cy,O,(0,a.fv)(x.y01,x.x01),(0,a.fv)(b.y01,b.x01),!y):(g.arc(x.cx,x.cy,O,(0,a.fv)(x.y01,x.x01),(0,a.fv)(x.y11,x.x11),!y),g.arc(0,0,l,(0,a.fv)(x.cy+x.y11,x.cx+x.x11),(0,a.fv)(b.cy+b.y11,b.cx+b.x11),y),g.arc(b.cx,b.cy,O,(0,a.fv)(b.y11,b.x11),(0,a.fv)(b.y01,b.x01),!y))):g.arc(0,0,l,E,k,y):g.lineTo(L,Z)}}else g.moveTo(0,0);if(g.closePath(),i)return g=null,i+""||null}return v.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+h.apply(this,arguments)+ +p.apply(this,arguments))/2-a.pi/2;return[(0,a.mC)(r)*n,(0,a.O$)(r)*n]},v.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.Z)(+t),v):e},v.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:(0,i.Z)(+e),v):t},v.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:(0,i.Z)(+e),v):n},v.padRadius=function(e){return arguments.length?(f=null==e?null:"function"==typeof e?e:(0,i.Z)(+e),v):f},v.startAngle=function(e){return arguments.length?(h="function"==typeof e?e:(0,i.Z)(+e),v):h},v.endAngle=function(e){return arguments.length?(p="function"==typeof e?e:(0,i.Z)(+e),v):p},v.padAngle=function(e){return arguments.length?(m="function"==typeof e?e:(0,i.Z)(+e),v):m},v.context=function(e){return arguments.length?(g=null==e?null:e,v):g},v}},79493:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(91672),i=n(33554),a=n(20651),o=n(79767),l=n(11053);function s(){var e=l.x,t=null,n=(0,i.Z)(0),s=l.y,u=(0,i.Z)(!0),c=null,d=a.Z,f=null;function h(i){var a,o,l,h,p,m=i.length,g=!1,v=Array(m),y=Array(m);for(null==c&&(f=d(p=(0,r.Z)())),a=0;a<=m;++a){if(!(a=o;--l)f.point(v[l],y[l]);f.lineEnd(),f.areaEnd()}}g&&(v[a]=+e(h,a,i),y[a]=+n(h,a,i),f.point(t?+t(h,a,i):v[a],s?+s(h,a,i):y[a]))}if(p)return f=null,p+""||null}function p(){return(0,o.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),s=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?(s=null==e?null:"function"==typeof e?e:(0,i.Z)(+e),h):s},h.lineX0=h.lineY0=function(){return p().x(e).y(n)},h.lineY1=function(){return p().x(e).y(s)},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,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0);return((a<0?-1:1)+(o<0?-1:1))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs((a*i+o*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 a(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,l=(a-r)/3;e._context.bezierCurveTo(r+l,i+l*t,a-l,o-l*n,a,o)}function o(e){this._context=e}function l(e){this._context=new s(e)}function s(e){this._context=e}function u(e){return new o(e)}function c(e){return new l(e)}n.d(t,{Z:function(){return u},s:function(){return c}}),o.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:a(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,a(this,i(this,n=r(this,e,t)),n);break;default:a(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}}},(l.prototype=Object.create(o.prototype)).point=function(e,t){o.prototype.point.call(this,t,e)},s.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,a){this._context.bezierCurveTo(t,e,r,n,a,i)}}},23165:function(e,t,n){"use strict";n.d(t,{Z:function(){return a},j:function(){return r}});var r=a(n(20651).Z);function i(e){this._curve=e}function a(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 a(e){return new r(e,0)}function o(e){return new r(e,1)}n.d(t,{RN:function(){return a},ZP:function(){return i},cD:function(){return o}}),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 M},curveBundle:function(){return _},curveCardinal:function(){return O.ZP},curveCardinalClosed:function(){return A},curveCardinalOpen:function(){return R},curveCatmullRom:function(){return F},curveCatmullRomClosed:function(){return V},curveCatmullRomOpen:function(){return I},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 X.ZP},curveStepAfter:function(){return X.cD},curveStepBefore:function(){return X.RN},line:function(){return a.Z},lineRadial:function(){return s.Z},linkHorizontal:function(){return d.h5},linkRadial:function(){return d.M4},linkVertical:function(){return d.rR},pie:function(){return o.Z},pointRadial:function(){return c.Z},radialArea:function(){return u},radialLine:function(){return s.Z},stack:function(){return G.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 ea.Z},stackOrderInsideOut:function(){return eo.Z},stackOrderNone:function(){return el.Z},stackOrderReverse:function(){return es.Z},symbol:function(){return f.Z},symbolCircle:function(){return h.Z},symbolCross:function(){return p.Z},symbolDiamond:function(){return m.Z},symbolSquare:function(){return g.Z},symbolStar:function(){return v.Z},symbolTriangle:function(){return y.Z},symbolWye:function(){return x.Z},symbols:function(){return f.u}});var r=n(38764),i=n(79493),a=n(79767),o=n(69619),l=n(23165),s=n(8329);function u(){var e=(0,i.Z)().curve(l.j),t=e.curve,n=e.lineX0,r=e.lineX1,a=e.lineY0,o=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,s.X)(n())},delete e.lineX0,e.lineEndAngle=function(){return(0,s.X)(r())},delete e.lineX1,e.lineInnerRadius=function(){return(0,s.X)(a())},delete e.lineY0,e.lineOuterRadius=function(){return(0,s.X)(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t((0,l.Z)(e)):t()._curve},e}var c=n(3326),d=n(72215),f=n(24037),h=n(62628),p=n(9135),m=n(82893),g=n(44523),v=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 C(e){this._context=e}function M(e){return new C(e)}function P(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}},C.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}},P.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],a=t[0],o=e[n]-i,l=t[n]-a,s=-1;++s<=n;)r=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(i+r*o),this._beta*t[s]+(1-this._beta)*(a+r*l));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var _=function e(t){function n(e){return 1===t?new j(e):new P(e,t)}return n.beta=function(t){return e(+t)},n}(.85),O=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,O.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 A=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,O.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,a=e._x2,o=e._y2;if(e._l01_a>D.Ho){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,s=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/s,i=(i*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}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);a=(a*u+e._x1*e._l23_2a-t*e._l12_2a)/c,o=(o*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,a,o,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 O.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 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 B(e,t){this._context=e,this._alpha=t}B.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 I=function e(t){function n(e){return t?new B(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),a=Array(r),o=Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(t=0,a[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((l=e.length)>0)for(var n,r,i,a,o,l,s=0,u=e[t[0]].length;s0?(r[0]=a,r[1]=a+=i):i<0?(r[1]=o,r[0]=o+=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,a,o=0,l=e[0].length;o1)for(var n,r,i,a=1,o=e[t[0]],l=o.length;a0){for(var n,i=0,a=e[t[0]],o=a.length;i0&&(i=(n=e[t[0]]).length)>0){for(var n,i,a,o=0,l=1;la&&(a=t,r=n);return r}},19721:function(e,t,n){"use strict";n.d(t,{S:function(){return a},Z:function(){return i}});var r=n(81182);function i(e){var t=e.map(a);return(0,r.Z)(e).sort(function(e,n){return t[e]-t[n]})}function a(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 l}});var r=n(33554);function i(e,t){return te?1:t>=e?0:NaN}function a(e){return e}var o=n(15);function l(){var e=a,t=i,n=null,l=(0,r.Z)(0),s=(0,r.Z)(o.BZ),u=(0,r.Z)(0);function c(r){var i,a,c,d,f,h=r.length,p=0,m=Array(h),g=Array(h),v=+l.apply(this,arguments),y=Math.min(o.BZ,Math.max(-o.BZ,s.apply(this,arguments)-v)),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(g[e],g[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,g[a]={data:r[a],index:i,value:f,startAngle:v,endAngle:d,padAngle:x};return g}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?(l="function"==typeof e?e:(0,r.Z)(+e),c):l},c.endAngle=function(e){return arguments.length?(s="function"==typeof e?e:(0,r.Z)(+e),c):s},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 s}});var r=n(72299),i=n(33554),a=n(90541),o=n(81182);function l(e,t){return e[t]}function s(){var e=(0,i.Z)([]),t=o.Z,n=a.Z,s=l;function u(r){var i,a,o=e.apply(this,arguments),l=r.length,u=o.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=a;var o=a.range},1514:function(e,t,n){"use strict";n.d(t,{UD:function(){return o},Y2:function(){return a},Ym:function(){return r},iM:function(){return l},jz:function(){return s},qz:function(){return u},yB:function(){return i}});let r=1e3,i=6e4,a=36e5,o=864e5,l=6048e5,s=2592e6,u=31536e6},54076:function(e,t,n){"use strict";n.d(t,{i:function(){return o}});var r=n(22179),i=n(1514),a=(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=a;var o=a.range},11365:function(e,t,n){"use strict";n.r(t),n.d(t,{timeDay:function(){return s.Z},timeDays:function(){return s.a},timeFriday:function(){return u.mC},timeFridays:function(){return u.b$},timeHour:function(){return l.Z},timeHours:function(){return l.i},timeInterval:function(){return r.Z},timeMillisecond:function(){return i.Z},timeMilliseconds:function(){return i.m},timeMinute:function(){return o.Z},timeMinutes:function(){return o.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 a.Z},timeSeconds:function(){return a.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 g.Z},utcMonths:function(){return g.K},utcSaturday:function(){return m.g4},utcSaturdays:function(){return m.Q_},utcSecond:function(){return a.Z},utcSeconds:function(){return a.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 v.Z},utcYears:function(){return v.D}});var r=n(22179),i=n(30356),a=n(52546),o=n(18450),l=n(54076),s=n(68603),u=n(76231),c=n(50690),d=n(97344),f=n(52004),h=n(28239),p=n(12370),m=n(97631),g=n(94758),v=n(2908),y=n(1381)},22179:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(t,n,a,o){function l(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return l.floor=function(e){return t(e=new Date(+e)),e},l.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},l.round=function(e){var t=l(e),n=l.ceil(e);return e-t0))return o;do o.push(a=new Date(+e)),n(e,i),t(e);while(a=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););}})},a&&(l.count=function(e,n){return r.setTime(+e),i.setTime(+n),t(r),t(i),Math.floor(a(r,i))},l.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?l.filter(o?function(t){return o(t)%e==0}:function(t){return l.count(0,t)%e==0}):l:null}),l}}});var r=new Date,i=new Date},30356:function(e,t,n){"use strict";n.d(t,{m:function(){return a}});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 a=i.range},18450:function(e,t,n){"use strict";n.d(t,{L:function(){return o}});var r=n(22179),i=n(1514),a=(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=a;var o=a.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 o}});var r=n(22179),i=n(1514),a=(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=a;var o=a.range},1381:function(e,t,n){"use strict";n.d(t,{_g:function(){return S},jK:function(){return E},jo:function(){return k},WG:function(){return j}});var r=Math.sqrt(50),i=Math.sqrt(10),a=Math.sqrt(2);function o(e,t,n){var o=Math.abs(t-e)/Math.max(0,n),l=Math.pow(10,Math.floor(Math.log(o)/Math.LN10)),s=o/l;return s>=r?l*=10:s>=i?l*=5:s>=a&&(l*=2),t>>1;0>n(e[a],t)?r=a+1:i=a}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,a){null==i&&(i=0),null==a&&(a=e.length);let o=r(e,n,i,a-1);return o>i&&t(e[o-1],n)>-t(e[o],n)?o-1:o},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[a],t)>0?i=a:r=a+1}return r}}})(([,,e])=>e).right(c,i);if(a===c.length)return e.every(o(t/l.qz,n/l.qz,r));if(0===a)return s.Z.every(Math.max(o(t,n,r),1));let[u,d]=c[i/c[a-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 a=i.range},76231:function(e,t,n){"use strict";n.d(t,{$t:function(){return v},EY:function(){return f},Ff:function(){return x},Ld:function(){return g},OM:function(){return o},aU:function(){return m},b$:function(){return y},bJ:function(){return p},bL:function(){return c},mC:function(){return d},sy:function(){return s},vm:function(){return h},wA:function(){return l},zg:function(){return u}});var r=n(22179),i=n(1514);function a(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 o=a(0),l=a(1),s=a(2),u=a(3),c=a(4),d=a(5),f=a(6),h=o.range,p=l.range,m=s.range,g=u.range,v=c.range,y=d.range,x=f.range},97344:function(e,t,n){"use strict";n.d(t,{g:function(){return a}});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 a=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}})},42765:function(e,t,n){"use strict";function r(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)}n.d(t,{Z:function(){return r}})},62650:function(e,t,n){"use strict";n.d(t,{Z:function(){return T}});var r=n(19785),i=n(66700),a=n(88811),o=n(89248);function l(e){(0,r.Z)(1,arguments);var t=(0,i.Z)(e),n=t.getUTCDay();return t.setUTCDate(t.getUTCDate()-((n<1?7:0)+n-1)),t.setUTCHours(0,0,0,0),t}function s(e){(0,r.Z)(1,arguments);var t=(0,i.Z)(e),n=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(n+1,0,4),a.setUTCHours(0,0,0,0);var o=l(a),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var u=l(s);return t.getTime()>=o.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}var u=n(42765);function c(e,t){(0,r.Z)(1,arguments);var n=t||{},a=n.locale,o=a&&a.options&&a.options.weekStartsOn,l=null==o?0:(0,u.Z)(o),s=null==n.weekStartsOn?l:(0,u.Z)(n.weekStartsOn);if(!(s>=0&&s<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=(0,i.Z)(e),d=c.getUTCDay();return c.setUTCDate(c.getUTCDate()-((d=1&&f<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(a+1,0,f),h.setUTCHours(0,0,0,0);var p=c(h,t),m=new Date(0);m.setUTCFullYear(a,0,f),m.setUTCHours(0,0,0,0);var g=c(m,t);return n.getTime()>=p.getTime()?a+1:n.getTime()>=g.getTime()?a:a-1}function f(e,t){for(var n=Math.abs(e).toString();n.length0?n:1-n;return f("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):f(n+1,2)},d:function(e,t){return f(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 f(e.getUTCHours()%12||12,t.length)},H:function(e,t){return f(e.getUTCHours(),t.length)},m:function(e,t){return f(e.getUTCMinutes(),t.length)},s:function(e,t){return f(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length;return f(Math.floor(e.getUTCMilliseconds()*Math.pow(10,n-3)),t.length)}},p={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function m(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),a=r%60;return 0===a?n+String(i):n+String(i)+(t||"")+f(a,2)}function g(e,t){return e%60==0?(e>0?"-":"+")+f(Math.abs(e)/60,2):v(e,t)}function v(e,t){var n=Math.abs(e);return(e>0?"-":"+")+f(Math.floor(n/60),2)+(t||"")+f(n%60,2)}var y={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();return n.ordinalNumber(r>0?r:1-r,{unit:"year"})}return h.y(e,t)},Y:function(e,t,n,r){var i=d(e,r),a=i>0?i:1-i;return"YY"===t?f(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):f(a,t.length)},R:function(e,t){return f(s(e),t.length)},u:function(e,t){return f(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 f(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 f(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 h.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 f(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,a){var o=function(e,t){(0,r.Z)(1,arguments);var n=(0,i.Z)(e);return Math.round((c(n,t).getTime()-(function(e,t){(0,r.Z)(1,arguments);var n=t||{},i=n.locale,a=i&&i.options&&i.options.firstWeekContainsDate,o=null==a?1:(0,u.Z)(a),l=null==n.firstWeekContainsDate?o:(0,u.Z)(n.firstWeekContainsDate),s=d(e,t),f=new Date(0);return f.setUTCFullYear(s,0,l),f.setUTCHours(0,0,0,0),c(f,t)})(n,t).getTime())/6048e5)+1}(e,a);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):f(o,t.length)},I:function(e,t,n){var a=function(e){(0,r.Z)(1,arguments);var t=(0,i.Z)(e);return Math.round((l(t).getTime()-(function(e){(0,r.Z)(1,arguments);var t=s(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),l(n)})(t).getTime())/6048e5)+1}(e);return"Io"===t?n.ordinalNumber(a,{unit:"week"}):f(a,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):h.d(e,t)},D:function(e,t,n){var a=function(e){(0,r.Z)(1,arguments);var t=(0,i.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(a,{unit:"dayOfYear"}):f(a,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(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return f(a,2);case"eo":return n.ordinalNumber(a,{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(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return f(a,t.length);case"co":return n.ordinalNumber(a,{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 f(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?p.noon:0===i?p.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?p.evening:i>=12?p.afternoon:i>=4?p.morning:p.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 h.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):h.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):f(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):f(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):h.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):h.s(e,t)},S:function(e,t){return h.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 g(i);case"XXXX":case"XX":return v(i);default:return v(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return g(i);case"xxxx":case"xx":return v(i);default:return v(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+m(i,":");default:return"GMT"+v(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+m(i,":");default:return"GMT"+v(i,":")}},t:function(e,t,n,r){return f(Math.floor((r._originalDate||e).getTime()/1e3),t.length)},T:function(e,t,n,r){return f((r._originalDate||e).getTime(),t.length)}};function x(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 b(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 w={p:b,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],a=r[2];if(!a)return x(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}}",x(i,t)).replace("{{time}}",b(a,t))}},j=n(1645),k=["D","DD"],E=["YY","YYYY"];function S(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 C=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,M=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,P=/^'([^]*?)'?$/,_=/''/g,O=/[a-zA-Z]/;function T(e,t,n){(0,r.Z)(2,arguments);var l=String(t),s=n||{},c=s.locale||a.Z,d=c.options&&c.options.firstWeekContainsDate,f=null==d?1:(0,u.Z)(d),h=null==s.firstWeekContainsDate?f:(0,u.Z)(s.firstWeekContainsDate);if(!(h>=1&&h<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=c.options&&c.options.weekStartsOn,m=null==p?0:(0,u.Z)(p),g=null==s.weekStartsOn?m:(0,u.Z)(s.weekStartsOn);if(!(g>=0&&g<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!c.localize)throw RangeError("locale must contain localize property");if(!c.formatLong)throw RangeError("locale must contain formatLong property");var v=(0,i.Z)(e);if(!function(e){return(0,r.Z)(1,arguments),(!!function(e){return(0,r.Z)(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}(e)||"number"==typeof e)&&!isNaN(Number((0,i.Z)(e)))}(v))throw RangeError("Invalid time value");var x=(0,j.Z)(v),b=(0,o.Z)(v,x),T={firstWeekContainsDate:h,weekStartsOn:g,locale:c,_originalDate:v};return l.match(M).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,w[t])(e,c.formatLong,T):e}).join("").match(C).map(function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return n.match(P)[1].replace(_,"'");var i=y[r];if(i)return s.useAdditionalWeekYearTokens||-1===E.indexOf(n)||S(n,t,e),s.useAdditionalDayOfYearTokens||-1===k.indexOf(n)||S(n,t,e),i(b,n,c.localize,T);if(r.match(O))throw RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n}).join("")}},29193:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(66700),i=n(19785);function a(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),a=(0,r.Z)(t),o=n.getTime()-a.getTime();return o<0?-1:o>0?1:o}var o={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},l=n(88811),s=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||l.Z;if(!f.formatDistance)throw RangeError("locale must contain formatDistance property");var h=a(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 a,l=function(e,t){return(0,i.Z)(2,arguments),(0,r.Z)(e).getTime()-(0,r.Z)(t).getTime()}(e,t)/1e3;return((a=null==n?void 0:n.roundingMethod)?o[a]:o.trunc)(l)}(u,n),g=Math.round((m-((0,s.Z)(u)-(0,s.Z)(n))/1e3)/60);if(g<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===g?f.formatDistance("lessThanXMinutes",1,p):f.formatDistance("xMinutes",g,p)}if(g<45)return f.formatDistance("xMinutes",g,p);if(g<90)return f.formatDistance("aboutXHours",1,p);if(g<1440)return f.formatDistance("aboutXHours",Math.round(g/60),p);if(g<2520)return f.formatDistance("xDays",1,p);if(g<43200)return f.formatDistance("xDays",Math.round(g/1440),p);if(g<86400)return c=Math.round(g/43200),f.formatDistance("aboutXMonths",c,p);if((c=function(e,t){(0,i.Z)(2,arguments);var n,o=(0,r.Z)(e),l=(0,r.Z)(t),s=a(o,l),u=Math.abs(function(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),a=(0,r.Z)(t);return 12*(n.getFullYear()-a.getFullYear())+(n.getMonth()-a.getMonth())}(o,l));if(u<1)n=0;else{1===o.getMonth()&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-s*u);var c=a(o,l)===-s;(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===a(e,l)&&(c=!1),n=s*(u-Number(c))}return 0===n?0:n}(u,n))<12)return f.formatDistance("xMonths",Math.round(g/43200),p);var v=c%12,y=Math.floor(c/12);return v<3?f.formatDistance("aboutXYears",y,p):v<9?f.formatDistance("overXYears",y,p):f.formatDistance("almostXYears",y+1,p)}},32998:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(1645),i=n(66700),a=n(19785);function o(e){(0,a.Z)(1,arguments);var t=(0,i.Z)(e);return t.setHours(0,0,0,0),t}var l=n(62650),s=n(88811),u=n(89248);function c(e,t,n){(0,a.Z)(2,arguments);var c=(0,i.Z)(e),d=(0,i.Z)(t),f=n||{},h=f.locale,p=void 0===h?s.Z:h,m=f.weekStartsOn,g=void 0===m?0:m;if(!p.localize)throw RangeError("locale must contain localize property");if(!p.formatLong)throw RangeError("locale must contain formatLong property");if(!p.formatRelative)throw RangeError("locale must contain formatRelative property");var v=function(e,t){(0,a.Z)(2,arguments);var n=o(e),i=o(t);return Math.round((n.getTime()-(0,r.Z)(n)-(i.getTime()-(0,r.Z)(i)))/864e5)}(c,d);if(isNaN(v))throw RangeError("Invalid time value");var y=(0,u.Z)(c,(0,r.Z)(c)),x=(0,u.Z)(d,(0,r.Z)(d)),b=p.formatRelative(v<-6?"other":v<-1?"lastWeek":v<0?"yesterday":v<1?"today":v<2?"tomorrow":v<7?"nextWeek":"other",y,x,{locale:p,weekStartsOn:g});return(0,l.Z)(c,b,{locale:p,weekStartsOn:g})}},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 a(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 o={date:a({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:a({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:a({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},l={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function s(e){return function(t,n){var r,i=n||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=i.width?String(i.width):a;r=e.formattingValues[o]||e.formattingValues[a]}else{var l=e.defaultWidth,s=i.width?String(i.width):e.defaultWidth;r=e.values[s]||e.values[l]}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,a=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;var l=o[0],s=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?function(e,t){for(var n=0;n0?"in "+r:r+" ago":r},formatLong:o,formatRelative:function(e,t,n,r){return l[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:s({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:s({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:s({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:s({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:s({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],a=e.match(r.parsePattern);if(!a)return null;var o=r.valueCallback?r.valueCallback(a[0]):a[0];return{value:o=t.valueCallback?t.valueCallback(o):o,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}}},89248:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(42765),i=n(66700),a=n(19785);function o(e,t){return(0,a.Z)(2,arguments),function(e,t){return(0,a.Z)(2,arguments),new Date((0,i.Z)(e).getTime()+(0,r.Z)(t))}(e,-(0,r.Z)(t))}},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()-l;u=0?i=setTimeout(r,t-u):(i=null,n||(s=e.apply(o,a),o=a=null))}null==t&&(t=100);var i,a,o,l,s,u=function(){o=this,a=arguments,l=Date.now();var u=n&&!i;return i||(i=setTimeout(r,t)),u&&(s=e.apply(o,a),o=a=null),s};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(s=e.apply(o,a),o=a=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),a=n.n(i),o=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==l},l="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function s(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 s(e,n)})}function c(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||u,n.isMergeableObject=n.isMergeableObject||o;var r,i,a=Array.isArray(t);return a!==Array.isArray(e)?s(t,n):a?n.arrayMerge(e,t,n):(i={},(r=n).isMergeableObject(e)&&Object.keys(e).forEach(function(t){i[t]=s(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]=s(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(66638),p=function(e){return(0,h.Z)(e,4)},m=n(95598),g=n(31162),v=n(97885),y=n(22758),x=n(71354),b=n(57969),w=n(25186),j=function(e){return(0,v.Z)(e)?(0,m.Z)(e,b.Z):(0,y.Z)(e)?[e]:(0,g.Z)((0,x.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 C(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(73463);var M=function(e){return Array.isArray(e)&&0===e.length},P=function(e){return"function"==typeof e},_=function(e){return null!==e&&"object"==typeof e},O=function(e){return"[object String]"===Object.prototype.toString.call(e)},T=function(e){return _(e)&&P(e.then)};function A(e,t,n,r){void 0===r&&(r=0);for(var i=j(t);e&&r=0?[]:{}}}return(0===a?e:i)[o[a]]===n?e:(void 0===n?delete i[o[a]]:i[o[a]]=n,0===a&&void 0===n&&delete r[o[a]],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(a()(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 a=0,o=Object.keys(t);a=n.length)break;a=n[i++]}else{if((i=n.next()).done)break;a=i.value}var a,o=a;A(t,o.path)||(t=N(t,o.path,o.message))}}return t}(n)):t(n)})})},[g.validationSchema]),V=(0,r.useCallback)(function(e,t){return new Promise(function(n){return n(j.current[e].validate(t))})},[]),I=(0,r.useCallback)(function(e){var t=Object.keys(j.current).filter(function(e){return P(j.current[e].validate)});return Promise.all(t.length>0?t.map(function(t){return V(t,A(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([I(e),g.validationSchema?F(e):{},g.validate?R(e):{}]).then(function(e){var t=e[0],n=e[1],r=e[2];return d.all([t,n,r],{arrayMerge:z})})},[g.validate,g.validationSchema,I,R,F]),U=B(function(e){return void 0===e&&(e=C.values),M({type:"SET_ISVALIDATING",payload:!0}),H(e).then(function(e){return w.current&&(M({type:"SET_ISVALIDATING",payload:!1}),M({type:"SET_ERRORS",payload:e})),e})});(0,r.useEffect)(function(){s&&!0===w.current&&a()(v.current,g.initialValues)&&U(v.current)},[s,U]);var W=(0,r.useCallback)(function(e){var t=e&&e.values?e.values:v.current,n=e&&e.errors?e.errors:y.current?y.current:g.initialErrors||{},r=e&&e.touched?e.touched:x.current?x.current:g.initialTouched||{},i=e&&e.status?e.status:b.current?b.current:g.initialStatus;v.current=t,y.current=n,x.current=r,b.current=i;var a=function(){M({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(g.onReset){var o=g.onReset(C.values,ec);T(o)?o.then(a):a()}else a()},[g.initialErrors,g.initialStatus,g.initialTouched]);(0,r.useEffect)(function(){!0===w.current&&!a()(v.current,g.initialValues)&&(h&&(v.current=g.initialValues,W()),s&&U(v.current))},[h,g.initialValues,W,s,U]),(0,r.useEffect)(function(){h&&!0===w.current&&!a()(y.current,g.initialErrors)&&(y.current=g.initialErrors||L,M({type:"SET_ERRORS",payload:g.initialErrors||L}))},[h,g.initialErrors]),(0,r.useEffect)(function(){h&&!0===w.current&&!a()(x.current,g.initialTouched)&&(x.current=g.initialTouched||Z,M({type:"SET_TOUCHED",payload:g.initialTouched||Z}))},[h,g.initialTouched]),(0,r.useEffect)(function(){h&&!0===w.current&&!a()(b.current,g.initialStatus)&&(b.current=g.initialStatus,M({type:"SET_STATUS",payload:g.initialStatus}))},[h,g.initialStatus,g.initialTouched]);var q=B(function(e){if(j.current[e]&&P(j.current[e].validate)){var t=A(C.values,e),n=j.current[e].validate(t);return T(n)?(M({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){M({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),M({type:"SET_ISVALIDATING",payload:!1})})):(M({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return g.validationSchema?(M({type:"SET_ISVALIDATING",payload:!0}),F(C.values,e).then(function(e){return e}).then(function(t){M({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),M({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=B(function(e,t){return M({type:"SET_TOUCHED",payload:e}),(void 0===t?o:t)?U(C.values):Promise.resolve()}),X=(0,r.useCallback)(function(e){M({type:"SET_ERRORS",payload:e})},[]),G=B(function(e,t){var r=P(e)?e(C.values):e;return M({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?U(r):Promise.resolve()}),J=(0,r.useCallback)(function(e,t){M({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),Q=B(function(e,t,r){return M({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?U(N(C.values,e,t)):Promise.resolve()}),ee=(0,r.useCallback)(function(e,t){var n,r=t,i=e;if(!O(e)){e.persist&&e.persist();var a=e.target?e.target:e.currentTarget,o=a.type,l=a.name,s=a.id,u=a.value,c=a.checked,d=(a.outerHTML,a.options),f=a.multiple;r=t||l||s,i=/number|range/.test(o)?isNaN(n=parseFloat(u))?"":n:/checkbox/.test(o)?function(e,t,n){if("boolean"==typeof e)return!!t;var r=[],i=!1,a=-1;if(Array.isArray(e))r=e,i=(a=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return!!t;return t&&n&&!i?r.concat(n):i?r.slice(0,a).concat(r.slice(a+1)):r}(A(C.values,r),c,u):d&&f?Array.from(d).filter(function(e){return e.selected}).map(function(e){return e.value}):u}r&&Q(r,i)},[Q,C.values]),et=B(function(e){if(O(e))return function(t){return ee(t,e)};ee(e)}),en=B(function(e,t,n){return void 0===t&&(t=!0),M({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?o:n)?U(C.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=B(function(e){if(O(e))return function(t){return er(t,e)};er(e)}),ea=(0,r.useCallback)(function(e){P(e)?M({type:"SET_FORMIK_STATE",payload:e}):M({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),eo=(0,r.useCallback)(function(e){M({type:"SET_STATUS",payload:e})},[]),el=(0,r.useCallback)(function(e){M({type:"SET_ISSUBMITTING",payload:e})},[]),es=B(function(){return M({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&&M({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(w.current)throw M({type:"SUBMIT_FAILURE"}),e})}if(w.current&&(M({type:"SUBMIT_FAILURE"}),n))throw e})}),eu=B(function(e){e&&e.preventDefault&&P(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&P(e.stopPropagation)&&e.stopPropagation(),es().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),ec={resetForm:W,validateForm:U,validateField:q,setErrors:X,setFieldError:J,setFieldTouched:en,setFieldValue:Q,setStatus:eo,setSubmitting:el,setTouched:Y,setValues:G,setFormikState:ea,submitForm:es},ed=B(function(){return p(C.values,ec)}),ef=B(function(e){e&&e.preventDefault&&P(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&P(e.stopPropagation)&&e.stopPropagation(),W()}),eh=(0,r.useCallback)(function(e){return{value:A(C.values,e),error:A(C.errors,e),touched:!!A(C.touched,e),initialValue:A(v.current,e),initialTouched:!!A(x.current,e),initialError:A(y.current,e)}},[C.errors,C.touched,C.values]),ep=(0,r.useCallback)(function(e){return{setValue:function(t,n){return Q(e,t,n)},setTouched:function(t,n){return en(e,t,n)},setError:function(t){return J(e,t)}}},[Q,en,J]),em=(0,r.useCallback)(function(e){var t=_(e),n=t?e.name:e,r=A(C.values,n),i={name:n,value:r,onChange:et,onBlur:ei};if(t){var a=e.type,o=e.value,l=e.as,s=e.multiple;"checkbox"===a?void 0===o?i.checked=!!r:(i.checked=!!(Array.isArray(r)&&~r.indexOf(o)),i.value=o):"radio"===a?(i.checked=r===o,i.value=o):"select"===l&&s&&(i.value=i.value||[],i.multiple=!0)}return i},[ei,et,C.values]),eg=(0,r.useMemo)(function(){return!a()(v.current,C.values)},[v.current,C.values]),ev=(0,r.useMemo)(function(){return void 0!==u?eg?C.errors&&0===Object.keys(C.errors).length:!1!==u&&P(u)?u(g):u:C.errors&&0===Object.keys(C.errors).length},[u,eg,C.errors,g]);return E({},C,{initialValues:v.current,initialErrors:y.current,initialTouched:x.current,initialStatus:b.current,handleBlur:ei,handleChange:et,handleReset:ef,handleSubmit:eu,resetForm:W,setErrors:X,setFormikState:ea,setFieldTouched:en,setFieldValue:Q,setFieldError:J,setStatus:eo,setSubmitting:el,setTouched:Y,setValues:G,submitForm:es,validateForm:U,validateField:q,isValid:ev,dirty:eg,unregisterField:K,registerField:$,getFieldProps:em,getFieldMeta:eh,getFieldHelpers:ep,validateOnBlur:o,validateOnChange:n,validateOnMount:s})}function z(e,t,n){var r=e.slice();return t.forEach(function(t,i){if(void 0===r[i]){var a=!1!==n.clone&&n.isMergeableObject(t);r[i]=a?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 B(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,a=i.name;(0,i.formik.setFormikState)(function(n){var i=N(n.values,a,e(A(n.values,a))),o=r?("function"==typeof r?r:e)(A(n.errors,a)):void 0,l=t?("function"==typeof t?t:e)(A(n.touched,a)):void 0;return M(o)&&(o=void 0),M(l)&&(l=void 0),E({},n,{values:i,errors:r?N(n.errors,a,o):n.errors,touched:t?N(n.touched,a,l):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 I(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(C(n)),n.pop=n.pop.bind(C(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&&!a()(A(e.formik.values,e.name),A(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]),P(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,a=t.children,o=t.name,l=S(t.formik,["validate","validationSchema"]),s=E({},e,{form:l,name:o});return n?(0,r.createElement)(n,s):i?i(s):a?"function"==typeof a?a(s):0===r.Children.count(a)?null:r.Children.only(a):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},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?o:l[e.$$typeof]||i}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=o;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 o=c(n);d&&(o=o.concat(d(n)));for(var l=s(t),m=s(n),g=0;g=0;)(u=e(r,i,a,o,h+1,s+1))>p&&(h===l?u*=1:t.test(r.charAt(h-1))?(u*=.9,(d=r.slice(l,h-1).match(n))&&l>0&&(u*=Math.pow(.999,d.length))):(t.test(r.slice(l,h-1))?u*=0:u*=.3,l>0&&(u*=Math.pow(.999,h-l))),r.charAt(h)!==i.charAt(s)&&(u*=.9999)),u<.1&&a.charAt(h-1)===o.charAt(s+1)&&a.charAt(h-1)!==o.charAt(s)&&.1*(c=e(r,i,a,o,h+1,s+2))>u&&(u=.1*c),u>p&&(p=u),h=a.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 o},SU:function(){return k},Ss:function(){return S},Ym:function(){return P},ZP:function(){return b},xV:function(){return a}});var r=n(40948);function i(){}var a=.7,o=1.4285714285714286,l="\\s*([+-]?\\d+)\\s*",s="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,d=RegExp("^rgb\\("+[l,l,l]+"\\)$"),f=RegExp("^rgb\\("+[u,u,u]+"\\)$"),h=RegExp("^rgba\\("+[l,l,l,s]+"\\)$"),p=RegExp("^rgba\\("+[u,u,u,s]+"\\)$"),m=RegExp("^hsl\\("+[s,u,u]+"\\)$"),g=RegExp("^hsla\\("+[s,u,u,s]+"\\)$"),v={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))?O(t[1],t[2]/100,t[3]/100,1):(t=g.exec(e))?O(t[1],t[2]/100,t[3]/100,t[4]):v.hasOwnProperty(e)?w(v[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)?new S((e=e.rgb()).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 C(){return"#"+_(this.r)+_(this.g)+_(this.b)}function M(){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 _(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function O(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new A(e,t,n,r)}function T(e){if(e instanceof A)return new A(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=b(e)),!e)return new A;if(e instanceof A)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),o=Math.max(t,n,r),l=NaN,s=o-a,u=(o+a)/2;return s?(l=t===o?(n-r)/s+(n0&&u<1?0:l,new A(l,s,u,e.opacity)}function P(e,t,n,r){return 1==arguments.length?T(e):new A(e,t,n,null==r?1:r)}function A(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?o:Math.pow(o,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?a:Math.pow(a,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:C,formatHex:C,formatRgb:M,toString:M})),(0,r.Z)(A,P,(0,r.l)(i,{brighter:function(e){return e=null==e?o:Math.pow(o,e),new A(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?a:Math.pow(a,e),new A(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 v},ZP:function(){return d}});var r=n(40948),i=n(68847),a=n(10810),o=4/29,l=6/29,s=6/29*3*(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=g(e.r),a=g(e.g),o=g(e.b),l=h((.2225045*r+.7168786*a+.0606169*o)/1);return r===a&&a===o?t=n=l:(t=h((.4360747*r+.3850649*a+.1430804*o)/.96422),n=h((.0139322*r+.0971045*a+.7141733*o)/.82521)),new f(116*l-16,500*(t-l),200*(l-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/s+o}function p(e){return e>l?e*e*e:s*(e-o)}function m(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function g(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function v(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],a=n[1],o=a-(r=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,l=i.length;return o===l?i:o>l?i+Array(o-l+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+Array(1-o).join("0")+(0,u.V)(e,Math.max(0,t+o-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"];a=(i=function(e){var t,n,i,a=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,a=[],o=0,l=t[0],s=0;i>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),a.push(e.substring(i-=l,i+l)),!((s+=l+1)>r));)l=t[o=(o+1)%t.length];return a.reverse().join(n)}),o=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]})}),g=void 0===e.percent?"%":e.percent+"",v=void 0===e.minus?"−":e.minus+"",y=void 0===e.nan?"NaN":e.nan+"";function x(e){var t=(e=(0,s.Z)(e)).fill,n=e.align,i=e.sign,l=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="$"===l?o:"#"===l&&/[boxX]/.test(j)?"0"+j.toLowerCase():"",E="$"===l?u:/[%p]/.test(j)?g:"",S=d[j],C=/[defgprs%]/.test(j);function M(e){var o,l,s,u=k,d=E;if("c"===j)d=S(e)+d,e="";else{var g=(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)),g&&0==+e&&"+"!==i&&(g=!1),u=(g?"("===i?i:v:"-"===i||"("===i?"":i)+u,d=("s"===j?p[8+r/3]:"")+d+(g&&"("===i?")":""),C){for(o=-1,l=e.length;++o(s=e.charCodeAt(o))||s>57){d=(46===s?c+e.slice(o+1):e.slice(o))+d,e=e.slice(0,o);break}}}x&&!f&&(e=a(e,1/0));var M=u.length+e.length+d.length,_=M>1)+u+e+d+_.slice(M);break;default:e=_+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)),M.toString=function(){return e+""},M}return{format:x,formatPrefix:function(e,t){var n=x(((e=(0,s.Z)(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor((0,l.Z)(t)/3))),i=Math.pow(10,-r),a=p[8+r/3];return function(e){return n(i*e)+a}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,o=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 a({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 a(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=a.prototype,a.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 a,o,l=!0,s=!1;return{s:function(){a=e[Symbol.iterator]()},n:function(){var e=a.next();return l=e.done,e},e:function(e){s=!0,o=e},f:function(){try{l||null==a.return||a.return()}finally{if(s)throw o}}}}function a(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 o=/[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g,l={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 s(e,t){for(var n=Array(e),r=0;r0?a-=1:a0&&(a-=1)),t[a]=(t[a]||0)+1,t},[]).reduce(function(n,r,i){if(i===e.length-1){var o=s(r,t({},e[e.length-1]));return"M"===o[0].type&&o.forEach(function(e){e.type="L"}),n.concat(o)}return n.concat(function(e,n,r){var i,o=[];if("L"===n.type||"Q"===n.type||"C"===n.type)o=o.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),a=0;a0&&"Z"===a[a.length-1].type&&a.pop(),o.length>0&&"Z"===o[o.length-1].type&&o.pop(),a.length?o.length||o.push(a[0]):a.push(o[0]),0!==Math.abs(o.length-a.length)&&(o.length>a.length?a=u(a,o,r):o.length0)for(var n=0;n=1?(n=1,t-1):Math.floor(n*t),a=e[i],o=e[i+1],l=i>0?e[i-1]:2*a-o,s=i180||n<-180?n-360*Math.round(n/360):n):(0,r.Z)(isNaN(e)?t:e)}function o(e){return 1==(e=+e)?l:function(t,n){var i,a,o;return n-t?(i=t,a=n,i=Math.pow(i,o=e),a=Math.pow(a,o)-i,o=1/o,function(e){return Math.pow(i+e*a,o)}):(0,r.Z)(isNaN(t)?n:t)}}function l(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),a=n(10810),o=-1.78277*.29227-.1347134789;function l(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof s)return new s(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,l=(o*r+-1.7884503806*t-3.5172982438*n)/(o+-1.7884503806-3.5172982438),u=r-l,c=-((1.97294*(n-l)- -.29227*u)/.90649),d=Math.sqrt(c*c+u*u)/(1.97294*l*(1-l)),f=d?Math.atan2(c,u)*a.B-120:NaN;return new s(f<0?f+360:f,d,l,e.opacity)}(e):new s(e,t,n,null==r?1:r)}function s(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}(0,r.Z)(s,l,(0,r.l)(i.Il,{brighter:function(e){return e=null==e?i.J5:Math.pow(i.J5,e),new s(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?i.xV:Math.pow(i.xV,e),new s(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*a.V,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new i.Ss(255*(t+n*(-.14861*r+1.78277*o)),255*(t+n*(-.29227*r+-.90649*o)),255*(t+1.97294*r*n),this.opacity)}}));var u=n(1234);function c(e){return function t(n){function r(t,r){var i=e((t=l(t)).h,(r=l(r)).h),a=(0,u.ZP)(t.s,r.s),o=(0,u.ZP)(t.l,r.l),s=(0,u.ZP)(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=a(e),t.l=o(Math.pow(e,n)),t.opacity=s(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 o}});var r=n(20966),i=n(1234);function a(e){return function(t,n){var a=e((t=(0,r.Uc)(t)).h,(n=(0,r.Uc)(n)).h),o=(0,i.ZP)(t.c,n.c),l=(0,i.ZP)(t.l,n.l),s=(0,i.ZP)(t.opacity,n.opacity);return function(e){return t.h=a(e),t.c=o(e),t.l=l(e),t.opacity=s(e),t+""}}}t.Z=a(i.wx);var o=a(i.ZP)},43780:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(68847),i=n(1234);function a(e){return function(t,n){var a=e((t=(0,r.Ym)(t)).h,(n=(0,r.Ym)(n)).h),o=(0,i.ZP)(t.s,n.s),l=(0,i.ZP)(t.l,n.l),s=(0,i.ZP)(t.opacity,n.opacity);return function(e){return t.h=a(e),t.s=o(e),t.l=l(e),t.opacity=s(e),t+""}}}t.Z=a(i.wx);var o=a(i.ZP)},31380:function(e,t,n){"use strict";n.r(t),n.d(t,{interpolate:function(){return l.Z},interpolateArray:function(){return s.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 A.Z},interpolateHclLong:function(){return A.b},interpolateHsl:function(){return T.Z},interpolateHslLong:function(){return T.q},interpolateHue:function(){return p},interpolateLab:function(){return P.Z},interpolateNumber:function(){return m.Z},interpolateNumberArray:function(){return g.Z},interpolateObject:function(){return v.Z},interpolateRgb:function(){return O.ZP},interpolateRgbBasis:function(){return O.hD},interpolateRgbBasisClosed:function(){return O.YD},interpolateRound:function(){return y.Z},interpolateString:function(){return x.Z},interpolateTransformCss:function(){return E},interpolateTransformSvg:function(){return S},interpolateZoom:function(){return _},piecewise:function(){return R.Z},quantize:function(){return D}});var r,i,a,o,l=n(69777),s=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),g=n(43289),v=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,a){var o,l,s;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(s=e*n+t*r)&&(n-=e*s,r-=t*s),(l=Math.sqrt(n*n+r*r))&&(n/=l,r/=l,s/=l),e*r180?s+=360:s-l>180&&(l+=360),f.push({i:d.push(i(d)+"rotate(",null,r)-2,x:(0,m.Z)(l,s)})):s&&d.push(i(d)+"rotate("+s+r),(u=a.skewX)!==(c=o.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,a,o){if(e!==n||t!==r){var l=a.push(i(a)+"scale(",null,",",null,")");o.push({i:l-4,x:(0,m.Z)(e,n)},{i:l-2,x:(0,m.Z)(t,r)})}else(1!==n||1!==r)&&a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,d,f),a=o=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),(l=l[0])===(s=s[0])?f[d]?f[d]+=s:f[++d]=s:(f[++d]=null,h.push({i:d,x:(0,r.Z)(l,s)})),c=a.lastIndex;return c1e-6){if(Math.abs(d*s-u*c)>1e-6&&a){var h=r-o,p=i-l,m=s*s+u*u,g=Math.sqrt(m),v=Math.sqrt(f),y=a*Math.tan((n-Math.acos((m+f-(h*h+p*p))/(2*g*v)))/2),x=y/v,b=y/g;Math.abs(x-1)>1e-6&&(this._+="L"+(e+x*c)+","+(t+x*d)),this._+="A"+a+","+a+",0,0,"+ +(d*h>c*p)+","+(this._x1=e+b*s)+","+(this._y1=t+b*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t)}},arc:function(e,t,a,o,l,s){e=+e,t=+t,a=+a,s=!!s;var u=a*Math.cos(o),c=a*Math.sin(o),d=e+u,f=t+c,h=1^s,p=s?o-l:l-o;if(a<0)throw Error("negative radius: "+a);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),a&&(p<0&&(p=p%r+r),p>i?this._+="A"+a+","+a+",0,1,"+h+","+(e-u)+","+(t-c)+"A"+a+","+a+",0,1,"+h+","+(this._x1=d)+","+(this._y1=f):p>1e-6&&(this._+="A"+a+","+a+",0,"+ +(p>=n)+","+h+","+(this._x1=e+a*Math.cos(l))+","+(this._y1=t+a*Math.sin(l))))},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=o},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 s}});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[a],t)?r=a+1:i=a}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,a){null==r&&(r=0),null==a&&(a=e.length);let o=i(e,n,r,a-1);return o>r&&t(e[o-1],n)>-t(e[o],n)?o-1:o},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[a],t)>0?i=a:r=a+1}return r}}}var a=n(81048);let o=i(r.Z),l=o.right;o.left,i(a.Z).center;var s=l},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 s},s:function(){return u}});var a=n(1169);function o(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}var l=n(81048);function s(e,t,n){if(s=(e=Float64Array.from((0,l.K)(e,n))).length){if((t=+t)<=0||s<2)return i(e);if(t>=1)return r(e);var s,u=(s-1)*t,c=Math.floor(u),d=r((function e(t,n,r=0,i=t.length-1,l=a.Z){for(;i>r;){if(i-r>600){let a=i-r+1,o=n-r+1,s=Math.log(a),u=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*u*(a-u)/a)*(o-a/2<0?-1:1),d=Math.max(r,Math.floor(n-o*u/a+c)),f=Math.min(i,Math.floor(n+(a-o)*u/a+c));e(t,n,d,f,l)}let a=t[n],s=r,u=i;for(o(t,r,n),l(t[i],a)>0&&o(t,r,i);sl(t[s],a);)++s;for(;l(t[u],a)>0;)--u}0===l(t[r],a)?o(t,r,u):o(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=l.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,a=Math.floor(i),o=+n(e[a],a,e);return o+(+n(e[a+1],a+1,e)-o)*(i-a)}}},32071:function(e,t,n){"use strict";n.d(t,{G9:function(){return l},ZP:function(){return o},ly:function(){return s}});var r=Math.sqrt(50),i=Math.sqrt(10),a=Math.sqrt(2);function o(e,t,n){var r,i,a,o,s=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t0){let n=Math.round(e/o),r=Math.round(t/o);for(n*ot&&--r,a=Array(i=r-n+1);++st&&--r,a=Array(i=r-n+1);++s=0?(s>=r?10:s>=i?5:s>=a?2:1)*Math.pow(10,l):-Math.pow(10,-l)/(s>=r?10:s>=i?5:s>=a?2:1)}function s(e,t,n){var o=Math.abs(t-e)/Math.max(0,n),l=Math.pow(10,Math.floor(Math.log(o)/Math.LN10)),s=o/l;return s>=r?l*=10:s>=i?l*=5:s>=a&&(l*=2),t[e.toLowerCase(),t]))}function k(e,t,n){var r=g.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function E(e,t,n){var r=g.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function S(e,t,n){var r=g.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function C(e,t,n){var r=g.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function M(e,t,n){var r=g.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function _(e,t,n){var r=g.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function O(e,t,n){var r=g.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 P(e,t,n){var r=g.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function A(e,t,n){var r=g.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=g.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function R(e,t,n){var r=g.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=g.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function L(e,t,n){var r=g.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Z(e,t,n){var r=g.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function F(e,t,n){var r=g.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function z(e,t,n){var r=g.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=v.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function B(e,t,n){var r=g.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function I(e,t,n){var r=g.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 X(e,t){return x(e.getMinutes(),t,2)}function G(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(s.OM.count((0,c.Z)(e)-1,e),t,2)}function ee(e){var t=e.getDay();return t>=4||0===t?(0,s.bL)(e):s.bL.ceil(e)}function et(e,t){return e=ee(e),x(s.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(s.wA.count((0,c.Z)(e)-1,e),t,2)}function ei(e,t){return x(e.getFullYear()%100,t,2)}function ea(e,t){return x((e=ee(e)).getFullYear()%100,t,2)}function eo(e,t){return x(e.getFullYear()%1e4,t,4)}function el(e,t){var n=e.getDay();return x((e=n>=4||0===n?(0,s.bL)(e):s.bL.ceil(e)).getFullYear()%1e4,t,4)}function es(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+l.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 eg(e,t){return x(e.getUTCMinutes(),t,2)}function ev(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(o.Ox.count((0,d.Z)(e)-1,e),t,2)}function eb(e){var t=e.getUTCDay();return t>=4||0===t?(0,o.hB)(e):o.hB.ceil(e)}function ew(e,t){return e=eb(e),x(o.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(o.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 eC(e,t){return x(e.getUTCFullYear()%1e4,t,4)}function eM(e,t){var n=e.getUTCDay();return x((e=n>=4||0===n?(0,o.hB)(e):o.hB.ceil(e)).getUTCFullYear()%1e4,t,4)}function e_(){return"+0000"}function eO(){return"%"}function eT(e){return+e}function eP(e){return Math.floor(+e/1e3)}i=(r=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,c=e.shortDays,d=e.months,g=e.shortMonths,v=w(i),y=j(i),x=w(a),b=j(a),ee=w(c),eb=j(c),eA=w(d),eN=j(d),eR=w(g),eD=j(g),eL={a:function(e){return c[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return g[e.getMonth()]},B:function(e){return d[e.getMonth()]},c:null,d:H,e:H,f:K,g:ea,G:el,H:U,I:W,j:q,L:$,m:Y,M:X,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:eT,s:eP,S:G,u:J,U:Q,V:et,w:en,W:er,x:null,X:null,y:ei,Y:eo,Z:es,"%":eO},eZ={a:function(e){return c[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return g[e.getUTCMonth()]},B:function(e){return d[e.getUTCMonth()]},c:null,d:eu,e:eu,f:ep,g:eS,G:eM,H:ec,I:ed,j:ef,L:eh,m:em,M:eg,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:eT,s:eP,S:ev,u:ey,U:ex,V:ew,w:ej,W:ek,x:null,X:null,y:eE,Y:eC,Z:e_,"%":eO},eF={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=eA.exec(t.slice(n));return r?(e.m=eN.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return eB(e,t,n,r)},d:N,e:N,f:z,g:O,G:_,H:D,I:D,j:R,L:F,m:A,M:L,p:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.p=y.get(r[0].toLowerCase()),n+r[0].length):-1},q:P,Q:B,s:I,S:Z,u:E,U:S,V:C,w:k,W:M,x:function(e,t,r){return eB(e,n,t,r)},X:function(e,t,n){return eB(e,r,t,n)},y:O,Y:_,Z:T,"%":V};function ez(e,t){return function(n){var r,i,a,o=[],l=-1,s=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++l53)return null;"w"in a||(a.w=1),"Z"in a?(r=(i=(r=h(p(a.y,0,1))).getUTCDay())>4||0===i?o.l6.ceil(r):(0,o.l6)(r),r=l.Z.offset(r,(a.V-1)*7),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(r=(i=(r=f(p(a.y,0,1))).getDay())>4||0===i?s.wA.ceil(r):(0,s.wA)(r),r=u.Z.offset(r,(a.V-1)*7),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?h(p(a.y,0,1)).getUTCDay():f(p(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,h(a)):f(a)}}function eB(e,t,n,r){for(var i,a,o=0,l=t.length,s=n.length;o=s)return -1;if(37===(i=t.charCodeAt(o++))){if(!(a=eF[(i=t.charAt(o++))in m?t.charAt(o++):i])||(r=a(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,a=r.utcFormat,r.utcParse},48623:function(e,t,n){"use strict";n.d(t,{Z:function(){return a},x:function(){return o}});var r=n(22274),i=n(34130);function a(){var e,t,n=(0,i.Z)().unknown(void 0),o=n.domain,l=n.range,s=0,u=1,c=!1,d=0,f=0,h=.5;function p(){var n=o().length,r=ut&&(n=e,e=t,t=n),v=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,g)))(e(v(t)))}return x.invert=function(n){return v(t((h||(h=r(m,p.map(e),a.Z)))(n)))},x.domain=function(e){return arguments.length?(p=Array.from(e,l.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),g=o.Z,y()},x.clamp=function(e){return arguments.length?(v=!!e||u,y()):v!==u},x.interpolate=function(e){return arguments.length?(g=e,y()):g},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)(_()(y.yR));return t.copy=function(){return w(t,e())},x.O.apply(t,arguments)}},scaleDivergingLog:function(){return function e(){var t=(0,o.Q)(_()).domain([.1,1,10]);return t.copy=function(){return w(t,e()).base(t.base())},x.O.apply(t,arguments)}},scaleDivergingPow:function(){return O},scaleDivergingSqrt:function(){return T},scaleDivergingSymlog:function(){return function e(){var t=(0,l.P)(_());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,a.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,a.Z):[0,1],(0,i.Q)(r)}},scaleImplicit:function(){return s.O},scaleLinear:function(){return i.Z},scaleLog:function(){return o.Z},scaleOrdinal:function(){return s.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,o.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,C.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,l.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 l.Z},scaleThreshold:function(){return h.Z},scaleTime:function(){return p.Z},scaleUtc:function(){return m.Z},tickFormat:function(){return P.Z}});var r=n(48623),i=n(93963),a=n(5497),o=n(13641),l=n(46494),s=n(34130),u=n(72851),c=n(19637),d=n(96417),f=n(73408),h=n(74995),p=n(37932),m=n(83803),g=n(69777),v=n(74672),y=n(70552),x=n(22274);function b(){var e,t,n,r,i,a=0,o=1,l=y.yR,s=!1;function u(t){return null==t||isNaN(t=+t)?i:l(0===n?.5:(t=(r(t)-e)*n,s?Math.max(0,Math.min(1,t)):t))}function c(e){return function(t){var n,r;return arguments.length?([n,r]=t,l=e(n,r),u):[l(0),l(1)]}}return u.domain=function(i){return arguments.length?([a,o]=i,e=r(a=+a),t=r(o=+o),n=e===t?0:1/(t-e),u):[a,o]},u.clamp=function(e){return arguments.length?(s=!!e,u):s},u.interpolator=function(e){return arguments.length?(l=e,u):l},u.range=c(g.Z),u.rangeRound=c(v.Z),u.unknown=function(e){return arguments.length?(i=e,u):i},function(i){return r=i,e=i(a),t=i(o),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),C=n(33907),M=n(87475);function _(){var e,t,n,r,i,a,o,l=0,s=.5,u=1,c=1,d=y.yR,f=!1;function h(e){return isNaN(e=+e)?o:(e=.5+((e=+a(e))-t)*(c*e0;){if((a=(0,r.G9)(u,c,n))===i)return o[l]=u,o[s]=c,t(o);if(a>0)u=Math.floor(u/a)*a,c=Math.ceil(c/a)*a;else if(a<0)u=Math.ceil(u*a)/a,c=Math.floor(c*a)/a;else break;i=a}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,o.l4)()).domain([1,10]);return t.copy=function(){return(0,o.JG)(t,e()).base(t.base())},l.o.apply(t,arguments),t}}});var r=n(32071),i=n(11192),a=n(10070),o=n(70552),l=n(22274);function s(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,o=e(s,u),l=o.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)},l()[0]<0?(t=h(t),n=h(n),e(c,d)):e(s,u),o}return o.base=function(e){return arguments.length?(p=+e,m()):p},o.domain=function(e){return arguments.length?(l(e),m()):l()},o.ticks=function(e){var i,a=l(),o=a[0],s=a[a.length-1];(i=s0){for(;f<=h;++f)for(c=1,u=n(f);cs)break;g.push(d)}}else for(;f<=h;++f)for(c=p-1,u=n(f);c>=1;--c)if(!((d=u*c)s)break;g.push(d)}2*g.length0?s[t-1]:n[0],t=l?[s[l-1],o]:[s[t-1],s[t]]},c.unknown=function(e){return arguments.length&&(t=e),c},c.thresholds=function(){return s.slice()},c.copy=function(){return e().domain([n,o]).range(u).unknown(t)},a.o.apply((0,i.Q)(c),arguments)}}});var r=n(98038),i=n(93963),a=n(22274)},19637:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(){var t,n=(0,r.ZP)(),s=[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(l(e))},c.domain=function(e){return arguments.length?(n.domain(e),c):n.domain()},c.range=function(e){return arguments.length?(n.range((s=Array.from(e,o.Z)).map(l)),c):s.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(),s).round(u).clamp(n.clamp()).unknown(t)},i.o.apply(c,arguments),(0,a.Q)(c)}}});var r=n(70552),i=n(22274),a=n(93963),o=n(5497);function l(e){return Math.sign(e)*e*e}},46494:function(e,t,n){"use strict";n.d(t,{P:function(){return s},Z:function(){return function e(){var t=s((0,i.l4)());return t.copy=function(){return(0,i.JG)(t,e()).constant(t.constant())},a.o.apply(t,arguments)}}});var r=n(93963),i=n(70552),a=n(22274);function o(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function l(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function s(e){var t=1,n=e(o(1),l(t));return n.constant=function(n){return arguments.length?e(o(t=+n),l(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],a=[0,1],o=1;function l(e){return null!=e&&e<=e?a[(0,r.ZP)(n,e,0,o)]:t}return l.domain=function(e){return arguments.length?(o=Math.min((n=Array.from(e)).length,a.length-1),l):n.slice()},l.range=function(e){return arguments.length?(a=Array.from(e),o=Math.min(n.length,a.length-1),l):a.slice()},l.invertExtent=function(e){var t=a.indexOf(e);return[n[t-1],n[t]]},l.unknown=function(e){return arguments.length?(t=e,l):t},l.copy=function(){return e().domain(n).range(a).unknown(t)},i.o.apply(l,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),a=n(21032),o=n(11192),l=n(61652),s=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,a.Z)(d,f))||(u.precision=c),(0,o.jH)(u,f);case"":case"e":case"g":case"p":case"r":null!=u.precision||isNaN(c=(0,l.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,s.Z)(d))||(u.precision=c-("%"===u.type)*2)}return(0,o.WU)(u)}},37932:function(e,t,n){"use strict";n.d(t,{Y:function(){return v},Z:function(){return y}});var r=n(1381),i=n(97344),a=n(50690),o=n(76231),l=n(68603),s=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 g(e){return e instanceof Date?+e:+new Date(+e)}function v(e,t,n,r,i,a,o,l,s,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 C(e){return(s(e)P*P+A*A&&(S=M,C=_),{cx:S,cy:C,x01:-d,y01:-f,x11:S*(i/j-1),y11:C*(i/j-1)}}function f(){var e=o,t=l,n=(0,i.Z)(0),f=null,h=s,p=u,m=c,g=null;function v(){var i,o,l=+e.apply(this,arguments),s=+t.apply(this,arguments),u=h.apply(this,arguments)-a.ou,c=p.apply(this,arguments)-a.ou,v=(0,a.Wn)(c-u),y=c>u;if(g||(g=i=(0,r.Z)()),sa.Ho){if(v>a.BZ-a.Ho)g.moveTo(s*(0,a.mC)(u),s*(0,a.O$)(u)),g.arc(0,0,s,u,c,!y),l>a.Ho&&(g.moveTo(l*(0,a.mC)(c),l*(0,a.O$)(c)),g.arc(0,0,l,c,u,y));else{var x,b,w=u,j=c,k=u,E=c,S=v,C=v,M=m.apply(this,arguments)/2,_=M>a.Ho&&(f?+f.apply(this,arguments):(0,a._b)(l*l+s*s)),O=(0,a.VV)((0,a.Wn)(s-l)/2,+n.apply(this,arguments)),T=O,P=O;if(_>a.Ho){var A=(0,a.ZR)(_/l*(0,a.O$)(M)),N=(0,a.ZR)(_/s*(0,a.O$)(M));(S-=2*A)>a.Ho?(A*=y?1:-1,k+=A,E-=A):(S=0,k=E=(u+c)/2),(C-=2*N)>a.Ho?(N*=y?1:-1,w+=N,j-=N):(C=0,w=j=(u+c)/2)}var R=s*(0,a.mC)(w),D=s*(0,a.O$)(w),L=l*(0,a.mC)(E),Z=l*(0,a.O$)(E);if(O>a.Ho){var F,z=s*(0,a.mC)(j),V=s*(0,a.O$)(j),B=l*(0,a.mC)(k),I=l*(0,a.O$)(k);if(va.Ho?P>a.Ho?(x=d(B,I,R,D,s,P,y),b=d(z,V,L,Z,s,P,y),g.moveTo(x.cx+x.x01,x.cy+x.y01),Pa.Ho&&S>a.Ho?T>a.Ho?(x=d(L,Z,z,V,l,-T,y),b=d(R,D,B,I,l,-T,y),g.lineTo(x.cx+x.x01,x.cy+x.y01),T=o;--l)f.point(v[l],y[l]);f.lineEnd(),f.areaEnd()}}g&&(v[a]=+e(h,a,i),y[a]=+n(h,a,i),f.point(t?+t(h,a,i):v[a],s?+s(h,a,i):y[a]))}if(p)return f=null,p+""||null}function p(){return(0,o.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),s=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?(s=null==e?null:"function"==typeof e?e:(0,i.Z)(+e),h):s},h.lineX0=h.lineY0=function(){return p().x(e).y(n)},h.lineY1=function(){return p().x(e).y(s)},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,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0);return((a<0?-1:1)+(o<0?-1:1))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs((a*i+o*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 a(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,l=(a-r)/3;e._context.bezierCurveTo(r+l,i+l*t,a-l,o-l*n,a,o)}function o(e){this._context=e}function l(e){this._context=new s(e)}function s(e){this._context=e}function u(e){return new o(e)}function c(e){return new l(e)}n.d(t,{Z:function(){return u},s:function(){return c}}),o.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:a(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,a(this,i(this,n=r(this,e,t)),n);break;default:a(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}}},(l.prototype=Object.create(o.prototype)).point=function(e,t){o.prototype.point.call(this,t,e)},s.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,a){this._context.bezierCurveTo(t,e,r,n,a,i)}}},23165:function(e,t,n){"use strict";n.d(t,{Z:function(){return a},j:function(){return r}});var r=a(n(20651).Z);function i(e){this._curve=e}function a(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 a(e){return new r(e,0)}function o(e){return new r(e,1)}n.d(t,{RN:function(){return a},ZP:function(){return i},cD:function(){return o}}),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 M},curveBundle:function(){return O},curveCardinal:function(){return T.ZP},curveCardinalClosed:function(){return A},curveCardinalOpen:function(){return R},curveCatmullRom:function(){return F},curveCatmullRomClosed:function(){return V},curveCatmullRomOpen:function(){return I},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 X.ZP},curveStepAfter:function(){return X.cD},curveStepBefore:function(){return X.RN},line:function(){return a.Z},lineRadial:function(){return s.Z},linkHorizontal:function(){return d.h5},linkRadial:function(){return d.M4},linkVertical:function(){return d.rR},pie:function(){return o.Z},pointRadial:function(){return c.Z},radialArea:function(){return u},radialLine:function(){return s.Z},stack:function(){return G.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 ea.Z},stackOrderInsideOut:function(){return eo.Z},stackOrderNone:function(){return el.Z},stackOrderReverse:function(){return es.Z},symbol:function(){return f.Z},symbolCircle:function(){return h.Z},symbolCross:function(){return p.Z},symbolDiamond:function(){return m.Z},symbolSquare:function(){return g.Z},symbolStar:function(){return v.Z},symbolTriangle:function(){return y.Z},symbolWye:function(){return x.Z},symbols:function(){return f.u}});var r=n(38764),i=n(79493),a=n(79767),o=n(69619),l=n(23165),s=n(8329);function u(){var e=(0,i.Z)().curve(l.j),t=e.curve,n=e.lineX0,r=e.lineX1,a=e.lineY0,o=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,s.X)(n())},delete e.lineX0,e.lineEndAngle=function(){return(0,s.X)(r())},delete e.lineX1,e.lineInnerRadius=function(){return(0,s.X)(a())},delete e.lineY0,e.lineOuterRadius=function(){return(0,s.X)(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t((0,l.Z)(e)):t()._curve},e}var c=n(3326),d=n(72215),f=n(24037),h=n(62628),p=n(9135),m=n(82893),g=n(44523),v=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 C(e){this._context=e}function M(e){return new C(e)}function _(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}},C.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}},_.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],a=t[0],o=e[n]-i,l=t[n]-a,s=-1;++s<=n;)r=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(i+r*o),this._beta*t[s]+(1-this._beta)*(a+r*l));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var O=function e(t){function n(e){return 1===t?new j(e):new _(e,t)}return n.beta=function(t){return e(+t)},n}(.85),T=n(46385);function P(e,t){this._context=e,this._k=(1-t)/6}P.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 A=function e(t){function n(e){return new P(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,a=e._x2,o=e._y2;if(e._l01_a>D.Ho){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,s=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/s,i=(i*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}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);a=(a*u+e._x1*e._l23_2a-t*e._l12_2a)/c,o=(o*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,a,o,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: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 V=function e(t){function n(e){return t?new z(e,t):new P(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function B(e,t){this._context=e,this._alpha=t}B.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 I=function e(t){function n(e){return t?new B(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),a=Array(r),o=Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(t=0,a[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((l=e.length)>0)for(var n,r,i,a,o,l,s=0,u=e[t[0]].length;s0?(r[0]=a,r[1]=a+=i):i<0?(r[1]=o,r[0]=o+=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,a,o=0,l=e[0].length;o1)for(var n,r,i,a=1,o=e[t[0]],l=o.length;a0){for(var n,i=0,a=e[t[0]],o=a.length;i0&&(i=(n=e[t[0]]).length)>0){for(var n,i,a,o=0,l=1;la&&(a=t,r=n);return r}},19721:function(e,t,n){"use strict";n.d(t,{S:function(){return a},Z:function(){return i}});var r=n(81182);function i(e){var t=e.map(a);return(0,r.Z)(e).sort(function(e,n){return t[e]-t[n]})}function a(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 l}});var r=n(33554);function i(e,t){return te?1:t>=e?0:NaN}function a(e){return e}var o=n(15);function l(){var e=a,t=i,n=null,l=(0,r.Z)(0),s=(0,r.Z)(o.BZ),u=(0,r.Z)(0);function c(r){var i,a,c,d,f,h=r.length,p=0,m=Array(h),g=Array(h),v=+l.apply(this,arguments),y=Math.min(o.BZ,Math.max(-o.BZ,s.apply(this,arguments)-v)),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(g[e],g[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,g[a]={data:r[a],index:i,value:f,startAngle:v,endAngle:d,padAngle:x};return g}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?(l="function"==typeof e?e:(0,r.Z)(+e),c):l},c.endAngle=function(e){return arguments.length?(s="function"==typeof e?e:(0,r.Z)(+e),c):s},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 s}});var r=n(72299),i=n(33554),a=n(90541),o=n(81182);function l(e,t){return e[t]}function s(){var e=(0,i.Z)([]),t=o.Z,n=a.Z,s=l;function u(r){var i,a,o=e.apply(this,arguments),l=r.length,u=o.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=a;var o=a.range},1514:function(e,t,n){"use strict";n.d(t,{UD:function(){return o},Y2:function(){return a},Ym:function(){return r},iM:function(){return l},jz:function(){return s},qz:function(){return u},yB:function(){return i}});let r=1e3,i=6e4,a=36e5,o=864e5,l=6048e5,s=2592e6,u=31536e6},54076:function(e,t,n){"use strict";n.d(t,{i:function(){return o}});var r=n(22179),i=n(1514),a=(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=a;var o=a.range},11365:function(e,t,n){"use strict";n.r(t),n.d(t,{timeDay:function(){return s.Z},timeDays:function(){return s.a},timeFriday:function(){return u.mC},timeFridays:function(){return u.b$},timeHour:function(){return l.Z},timeHours:function(){return l.i},timeInterval:function(){return r.Z},timeMillisecond:function(){return i.Z},timeMilliseconds:function(){return i.m},timeMinute:function(){return o.Z},timeMinutes:function(){return o.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 a.Z},timeSeconds:function(){return a.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 g.Z},utcMonths:function(){return g.K},utcSaturday:function(){return m.g4},utcSaturdays:function(){return m.Q_},utcSecond:function(){return a.Z},utcSeconds:function(){return a.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 v.Z},utcYears:function(){return v.D}});var r=n(22179),i=n(30356),a=n(52546),o=n(18450),l=n(54076),s=n(68603),u=n(76231),c=n(50690),d=n(97344),f=n(52004),h=n(28239),p=n(12370),m=n(97631),g=n(94758),v=n(2908),y=n(1381)},22179:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(t,n,a,o){function l(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return l.floor=function(e){return t(e=new Date(+e)),e},l.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},l.round=function(e){var t=l(e),n=l.ceil(e);return e-t0))return o;do o.push(a=new Date(+e)),n(e,i),t(e);while(a=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););}})},a&&(l.count=function(e,n){return r.setTime(+e),i.setTime(+n),t(r),t(i),Math.floor(a(r,i))},l.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?l.filter(o?function(t){return o(t)%e==0}:function(t){return l.count(0,t)%e==0}):l:null}),l}}});var r=new Date,i=new Date},30356:function(e,t,n){"use strict";n.d(t,{m:function(){return a}});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 a=i.range},18450:function(e,t,n){"use strict";n.d(t,{L:function(){return o}});var r=n(22179),i=n(1514),a=(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=a;var o=a.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 o}});var r=n(22179),i=n(1514),a=(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=a;var o=a.range},1381:function(e,t,n){"use strict";n.d(t,{_g:function(){return S},jK:function(){return E},jo:function(){return k},WG:function(){return j}});var r=Math.sqrt(50),i=Math.sqrt(10),a=Math.sqrt(2);function o(e,t,n){var o=Math.abs(t-e)/Math.max(0,n),l=Math.pow(10,Math.floor(Math.log(o)/Math.LN10)),s=o/l;return s>=r?l*=10:s>=i?l*=5:s>=a&&(l*=2),t>>1;0>n(e[a],t)?r=a+1:i=a}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,a){null==i&&(i=0),null==a&&(a=e.length);let o=r(e,n,i,a-1);return o>i&&t(e[o-1],n)>-t(e[o],n)?o-1:o},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[a],t)>0?i=a:r=a+1}return r}}})(([,,e])=>e).right(c,i);if(a===c.length)return e.every(o(t/l.qz,n/l.qz,r));if(0===a)return s.Z.every(Math.max(o(t,n,r),1));let[u,d]=c[i/c[a-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 a=i.range},76231:function(e,t,n){"use strict";n.d(t,{$t:function(){return v},EY:function(){return f},Ff:function(){return x},Ld:function(){return g},OM:function(){return o},aU:function(){return m},b$:function(){return y},bJ:function(){return p},bL:function(){return c},mC:function(){return d},sy:function(){return s},vm:function(){return h},wA:function(){return l},zg:function(){return u}});var r=n(22179),i=n(1514);function a(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 o=a(0),l=a(1),s=a(2),u=a(3),c=a(4),d=a(5),f=a(6),h=o.range,p=l.range,m=s.range,g=u.range,v=c.range,y=d.range,x=f.range},97344:function(e,t,n){"use strict";n.d(t,{g:function(){return a}});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 a=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}})},42765:function(e,t,n){"use strict";function r(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)}n.d(t,{Z:function(){return r}})},62650:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var r=n(19785),i=n(66700),a=n(88811),o=n(89248);function l(e){(0,r.Z)(1,arguments);var t=(0,i.Z)(e),n=t.getUTCDay();return t.setUTCDate(t.getUTCDate()-((n<1?7:0)+n-1)),t.setUTCHours(0,0,0,0),t}function s(e){(0,r.Z)(1,arguments);var t=(0,i.Z)(e),n=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(n+1,0,4),a.setUTCHours(0,0,0,0);var o=l(a),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var u=l(s);return t.getTime()>=o.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}var u=n(42765);function c(e,t){(0,r.Z)(1,arguments);var n=t||{},a=n.locale,o=a&&a.options&&a.options.weekStartsOn,l=null==o?0:(0,u.Z)(o),s=null==n.weekStartsOn?l:(0,u.Z)(n.weekStartsOn);if(!(s>=0&&s<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=(0,i.Z)(e),d=c.getUTCDay();return c.setUTCDate(c.getUTCDate()-((d=1&&f<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(a+1,0,f),h.setUTCHours(0,0,0,0);var p=c(h,t),m=new Date(0);m.setUTCFullYear(a,0,f),m.setUTCHours(0,0,0,0);var g=c(m,t);return n.getTime()>=p.getTime()?a+1:n.getTime()>=g.getTime()?a:a-1}function f(e,t){for(var n=Math.abs(e).toString();n.length0?n:1-n;return f("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):f(n+1,2)},d:function(e,t){return f(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 f(e.getUTCHours()%12||12,t.length)},H:function(e,t){return f(e.getUTCHours(),t.length)},m:function(e,t){return f(e.getUTCMinutes(),t.length)},s:function(e,t){return f(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length;return f(Math.floor(e.getUTCMilliseconds()*Math.pow(10,n-3)),t.length)}},p={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function m(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),a=r%60;return 0===a?n+String(i):n+String(i)+(t||"")+f(a,2)}function g(e,t){return e%60==0?(e>0?"-":"+")+f(Math.abs(e)/60,2):v(e,t)}function v(e,t){var n=Math.abs(e);return(e>0?"-":"+")+f(Math.floor(n/60),2)+(t||"")+f(n%60,2)}var y={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();return n.ordinalNumber(r>0?r:1-r,{unit:"year"})}return h.y(e,t)},Y:function(e,t,n,r){var i=d(e,r),a=i>0?i:1-i;return"YY"===t?f(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):f(a,t.length)},R:function(e,t){return f(s(e),t.length)},u:function(e,t){return f(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 f(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 f(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 h.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 f(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,a){var o=function(e,t){(0,r.Z)(1,arguments);var n=(0,i.Z)(e);return Math.round((c(n,t).getTime()-(function(e,t){(0,r.Z)(1,arguments);var n=t||{},i=n.locale,a=i&&i.options&&i.options.firstWeekContainsDate,o=null==a?1:(0,u.Z)(a),l=null==n.firstWeekContainsDate?o:(0,u.Z)(n.firstWeekContainsDate),s=d(e,t),f=new Date(0);return f.setUTCFullYear(s,0,l),f.setUTCHours(0,0,0,0),c(f,t)})(n,t).getTime())/6048e5)+1}(e,a);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):f(o,t.length)},I:function(e,t,n){var a=function(e){(0,r.Z)(1,arguments);var t=(0,i.Z)(e);return Math.round((l(t).getTime()-(function(e){(0,r.Z)(1,arguments);var t=s(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),l(n)})(t).getTime())/6048e5)+1}(e);return"Io"===t?n.ordinalNumber(a,{unit:"week"}):f(a,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):h.d(e,t)},D:function(e,t,n){var a=function(e){(0,r.Z)(1,arguments);var t=(0,i.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(a,{unit:"dayOfYear"}):f(a,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(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return f(a,2);case"eo":return n.ordinalNumber(a,{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(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return f(a,t.length);case"co":return n.ordinalNumber(a,{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 f(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?p.noon:0===i?p.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?p.evening:i>=12?p.afternoon:i>=4?p.morning:p.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 h.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):h.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):f(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):f(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):h.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):h.s(e,t)},S:function(e,t){return h.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 g(i);case"XXXX":case"XX":return v(i);default:return v(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return g(i);case"xxxx":case"xx":return v(i);default:return v(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+m(i,":");default:return"GMT"+v(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+m(i,":");default:return"GMT"+v(i,":")}},t:function(e,t,n,r){return f(Math.floor((r._originalDate||e).getTime()/1e3),t.length)},T:function(e,t,n,r){return f((r._originalDate||e).getTime(),t.length)}};function x(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 b(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 w={p:b,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],a=r[2];if(!a)return x(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}}",x(i,t)).replace("{{time}}",b(a,t))}},j=n(1645),k=["D","DD"],E=["YY","YYYY"];function S(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 C=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,M=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_=/^'([^]*?)'?$/,O=/''/g,T=/[a-zA-Z]/;function P(e,t,n){(0,r.Z)(2,arguments);var l=String(t),s=n||{},c=s.locale||a.Z,d=c.options&&c.options.firstWeekContainsDate,f=null==d?1:(0,u.Z)(d),h=null==s.firstWeekContainsDate?f:(0,u.Z)(s.firstWeekContainsDate);if(!(h>=1&&h<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=c.options&&c.options.weekStartsOn,m=null==p?0:(0,u.Z)(p),g=null==s.weekStartsOn?m:(0,u.Z)(s.weekStartsOn);if(!(g>=0&&g<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!c.localize)throw RangeError("locale must contain localize property");if(!c.formatLong)throw RangeError("locale must contain formatLong property");var v=(0,i.Z)(e);if(!function(e){return(0,r.Z)(1,arguments),(!!function(e){return(0,r.Z)(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}(e)||"number"==typeof e)&&!isNaN(Number((0,i.Z)(e)))}(v))throw RangeError("Invalid time value");var x=(0,j.Z)(v),b=(0,o.Z)(v,x),P={firstWeekContainsDate:h,weekStartsOn:g,locale:c,_originalDate:v};return l.match(M).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,w[t])(e,c.formatLong,P):e}).join("").match(C).map(function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return n.match(_)[1].replace(O,"'");var i=y[r];if(i)return s.useAdditionalWeekYearTokens||-1===E.indexOf(n)||S(n,t,e),s.useAdditionalDayOfYearTokens||-1===k.indexOf(n)||S(n,t,e),i(b,n,c.localize,P);if(r.match(T))throw RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n}).join("")}},29193:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(66700),i=n(19785);function a(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),a=(0,r.Z)(t),o=n.getTime()-a.getTime();return o<0?-1:o>0?1:o}var o={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},l=n(88811),s=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||l.Z;if(!f.formatDistance)throw RangeError("locale must contain formatDistance property");var h=a(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 a,l=function(e,t){return(0,i.Z)(2,arguments),(0,r.Z)(e).getTime()-(0,r.Z)(t).getTime()}(e,t)/1e3;return((a=null==n?void 0:n.roundingMethod)?o[a]:o.trunc)(l)}(u,n),g=Math.round((m-((0,s.Z)(u)-(0,s.Z)(n))/1e3)/60);if(g<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===g?f.formatDistance("lessThanXMinutes",1,p):f.formatDistance("xMinutes",g,p)}if(g<45)return f.formatDistance("xMinutes",g,p);if(g<90)return f.formatDistance("aboutXHours",1,p);if(g<1440)return f.formatDistance("aboutXHours",Math.round(g/60),p);if(g<2520)return f.formatDistance("xDays",1,p);if(g<43200)return f.formatDistance("xDays",Math.round(g/1440),p);if(g<86400)return c=Math.round(g/43200),f.formatDistance("aboutXMonths",c,p);if((c=function(e,t){(0,i.Z)(2,arguments);var n,o=(0,r.Z)(e),l=(0,r.Z)(t),s=a(o,l),u=Math.abs(function(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),a=(0,r.Z)(t);return 12*(n.getFullYear()-a.getFullYear())+(n.getMonth()-a.getMonth())}(o,l));if(u<1)n=0;else{1===o.getMonth()&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-s*u);var c=a(o,l)===-s;(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===a(e,l)&&(c=!1),n=s*(u-Number(c))}return 0===n?0:n}(u,n))<12)return f.formatDistance("xMonths",Math.round(g/43200),p);var v=c%12,y=Math.floor(c/12);return v<3?f.formatDistance("aboutXYears",y,p):v<9?f.formatDistance("overXYears",y,p):f.formatDistance("almostXYears",y+1,p)}},32998:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(1645),i=n(66700),a=n(19785);function o(e){(0,a.Z)(1,arguments);var t=(0,i.Z)(e);return t.setHours(0,0,0,0),t}var l=n(62650),s=n(88811),u=n(89248);function c(e,t,n){(0,a.Z)(2,arguments);var c=(0,i.Z)(e),d=(0,i.Z)(t),f=n||{},h=f.locale,p=void 0===h?s.Z:h,m=f.weekStartsOn,g=void 0===m?0:m;if(!p.localize)throw RangeError("locale must contain localize property");if(!p.formatLong)throw RangeError("locale must contain formatLong property");if(!p.formatRelative)throw RangeError("locale must contain formatRelative property");var v=function(e,t){(0,a.Z)(2,arguments);var n=o(e),i=o(t);return Math.round((n.getTime()-(0,r.Z)(n)-(i.getTime()-(0,r.Z)(i)))/864e5)}(c,d);if(isNaN(v))throw RangeError("Invalid time value");var y=(0,u.Z)(c,(0,r.Z)(c)),x=(0,u.Z)(d,(0,r.Z)(d)),b=p.formatRelative(v<-6?"other":v<-1?"lastWeek":v<0?"yesterday":v<1?"today":v<2?"tomorrow":v<7?"nextWeek":"other",y,x,{locale:p,weekStartsOn:g});return(0,l.Z)(c,b,{locale:p,weekStartsOn:g})}},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 a(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 o={date:a({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:a({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:a({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},l={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function s(e){return function(t,n){var r,i=n||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=i.width?String(i.width):a;r=e.formattingValues[o]||e.formattingValues[a]}else{var l=e.defaultWidth,s=i.width?String(i.width):e.defaultWidth;r=e.values[s]||e.values[l]}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,a=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;var l=o[0],s=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?function(e,t){for(var n=0;n0?"in "+r:r+" ago":r},formatLong:o,formatRelative:function(e,t,n,r){return l[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:s({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:s({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:s({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:s({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:s({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],a=e.match(r.parsePattern);if(!a)return null;var o=r.valueCallback?r.valueCallback(a[0]):a[0];return{value:o=t.valueCallback?t.valueCallback(o):o,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}}},89248:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(42765),i=n(66700),a=n(19785);function o(e,t){return(0,a.Z)(2,arguments),function(e,t){return(0,a.Z)(2,arguments),new Date((0,i.Z)(e).getTime()+(0,r.Z)(t))}(e,-(0,r.Z)(t))}},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()-l;u=0?i=setTimeout(r,t-u):(i=null,n||(s=e.apply(o,a),o=a=null))}null==t&&(t=100);var i,a,o,l,s,u=function(){o=this,a=arguments,l=Date.now();var u=n&&!i;return i||(i=setTimeout(r,t)),u&&(s=e.apply(o,a),o=a=null),s};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(s=e.apply(o,a),o=a=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),a=n.n(i),o=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==l},l="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function s(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 s(e,n)})}function c(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||u,n.isMergeableObject=n.isMergeableObject||o;var r,i,a=Array.isArray(t);return a!==Array.isArray(e)?s(t,n):a?n.arrayMerge(e,t,n):(i={},(r=n).isMergeableObject(e)&&Object.keys(e).forEach(function(t){i[t]=s(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]=s(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(66638),p=function(e){return(0,h.Z)(e,4)},m=n(95598),g=n(31162),v=n(97885),y=n(22758),x=n(71354),b=n(57969),w=n(25186),j=function(e){return(0,v.Z)(e)?(0,m.Z)(e,b.Z):(0,y.Z)(e)?[e]:(0,g.Z)((0,x.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 C(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(73463);var M=function(e){return Array.isArray(e)&&0===e.length},_=function(e){return"function"==typeof e},O=function(e){return null!==e&&"object"==typeof e},T=function(e){return"[object String]"===Object.prototype.toString.call(e)},P=function(e){return O(e)&&_(e.then)};function A(e,t,n,r){void 0===r&&(r=0);for(var i=j(t);e&&r=0?[]:{}}}return(0===a?e:i)[o[a]]===n?e:(void 0===n?delete i[o[a]]:i[o[a]]=n,0===a&&void 0===n&&delete r[o[a]],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(a()(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 a=0,o=Object.keys(t);a=n.length)break;a=n[i++]}else{if((i=n.next()).done)break;a=i.value}var a,o=a;A(t,o.path)||(t=N(t,o.path,o.message))}}return t}(n)):t(n)})})},[g.validationSchema]),V=(0,r.useCallback)(function(e,t){return new Promise(function(n){return n(j.current[e].validate(t))})},[]),I=(0,r.useCallback)(function(e){var t=Object.keys(j.current).filter(function(e){return _(j.current[e].validate)});return Promise.all(t.length>0?t.map(function(t){return V(t,A(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([I(e),g.validationSchema?F(e):{},g.validate?R(e):{}]).then(function(e){var t=e[0],n=e[1],r=e[2];return d.all([t,n,r],{arrayMerge:z})})},[g.validate,g.validationSchema,I,R,F]),U=B(function(e){return void 0===e&&(e=C.values),M({type:"SET_ISVALIDATING",payload:!0}),H(e).then(function(e){return w.current&&(M({type:"SET_ISVALIDATING",payload:!1}),M({type:"SET_ERRORS",payload:e})),e})});(0,r.useEffect)(function(){s&&!0===w.current&&a()(v.current,g.initialValues)&&U(v.current)},[s,U]);var W=(0,r.useCallback)(function(e){var t=e&&e.values?e.values:v.current,n=e&&e.errors?e.errors:y.current?y.current:g.initialErrors||{},r=e&&e.touched?e.touched:x.current?x.current:g.initialTouched||{},i=e&&e.status?e.status:b.current?b.current:g.initialStatus;v.current=t,y.current=n,x.current=r,b.current=i;var a=function(){M({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(g.onReset){var o=g.onReset(C.values,ec);P(o)?o.then(a):a()}else a()},[g.initialErrors,g.initialStatus,g.initialTouched]);(0,r.useEffect)(function(){!0===w.current&&!a()(v.current,g.initialValues)&&(h&&(v.current=g.initialValues,W()),s&&U(v.current))},[h,g.initialValues,W,s,U]),(0,r.useEffect)(function(){h&&!0===w.current&&!a()(y.current,g.initialErrors)&&(y.current=g.initialErrors||L,M({type:"SET_ERRORS",payload:g.initialErrors||L}))},[h,g.initialErrors]),(0,r.useEffect)(function(){h&&!0===w.current&&!a()(x.current,g.initialTouched)&&(x.current=g.initialTouched||Z,M({type:"SET_TOUCHED",payload:g.initialTouched||Z}))},[h,g.initialTouched]),(0,r.useEffect)(function(){h&&!0===w.current&&!a()(b.current,g.initialStatus)&&(b.current=g.initialStatus,M({type:"SET_STATUS",payload:g.initialStatus}))},[h,g.initialStatus,g.initialTouched]);var q=B(function(e){if(j.current[e]&&_(j.current[e].validate)){var t=A(C.values,e),n=j.current[e].validate(t);return P(n)?(M({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){M({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),M({type:"SET_ISVALIDATING",payload:!1})})):(M({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return g.validationSchema?(M({type:"SET_ISVALIDATING",payload:!0}),F(C.values,e).then(function(e){return e}).then(function(t){M({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),M({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=B(function(e,t){return M({type:"SET_TOUCHED",payload:e}),(void 0===t?o:t)?U(C.values):Promise.resolve()}),X=(0,r.useCallback)(function(e){M({type:"SET_ERRORS",payload:e})},[]),G=B(function(e,t){var r=_(e)?e(C.values):e;return M({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?U(r):Promise.resolve()}),J=(0,r.useCallback)(function(e,t){M({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),Q=B(function(e,t,r){return M({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?U(N(C.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 a=e.target?e.target:e.currentTarget,o=a.type,l=a.name,s=a.id,u=a.value,c=a.checked,d=(a.outerHTML,a.options),f=a.multiple;r=t||l||s,i=/number|range/.test(o)?isNaN(n=parseFloat(u))?"":n:/checkbox/.test(o)?function(e,t,n){if("boolean"==typeof e)return!!t;var r=[],i=!1,a=-1;if(Array.isArray(e))r=e,i=(a=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return!!t;return t&&n&&!i?r.concat(n):i?r.slice(0,a).concat(r.slice(a+1)):r}(A(C.values,r),c,u):d&&f?Array.from(d).filter(function(e){return e.selected}).map(function(e){return e.value}):u}r&&Q(r,i)},[Q,C.values]),et=B(function(e){if(T(e))return function(t){return ee(t,e)};ee(e)}),en=B(function(e,t,n){return void 0===t&&(t=!0),M({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?o:n)?U(C.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=B(function(e){if(T(e))return function(t){return er(t,e)};er(e)}),ea=(0,r.useCallback)(function(e){_(e)?M({type:"SET_FORMIK_STATE",payload:e}):M({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),eo=(0,r.useCallback)(function(e){M({type:"SET_STATUS",payload:e})},[]),el=(0,r.useCallback)(function(e){M({type:"SET_ISSUBMITTING",payload:e})},[]),es=B(function(){return M({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&&M({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(w.current)throw M({type:"SUBMIT_FAILURE"}),e})}if(w.current&&(M({type:"SUBMIT_FAILURE"}),n))throw e})}),eu=B(function(e){e&&e.preventDefault&&_(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&_(e.stopPropagation)&&e.stopPropagation(),es().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),ec={resetForm:W,validateForm:U,validateField:q,setErrors:X,setFieldError:J,setFieldTouched:en,setFieldValue:Q,setStatus:eo,setSubmitting:el,setTouched:Y,setValues:G,setFormikState:ea,submitForm:es},ed=B(function(){return p(C.values,ec)}),ef=B(function(e){e&&e.preventDefault&&_(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&_(e.stopPropagation)&&e.stopPropagation(),W()}),eh=(0,r.useCallback)(function(e){return{value:A(C.values,e),error:A(C.errors,e),touched:!!A(C.touched,e),initialValue:A(v.current,e),initialTouched:!!A(x.current,e),initialError:A(y.current,e)}},[C.errors,C.touched,C.values]),ep=(0,r.useCallback)(function(e){return{setValue:function(t,n){return Q(e,t,n)},setTouched:function(t,n){return en(e,t,n)},setError:function(t){return J(e,t)}}},[Q,en,J]),em=(0,r.useCallback)(function(e){var t=O(e),n=t?e.name:e,r=A(C.values,n),i={name:n,value:r,onChange:et,onBlur:ei};if(t){var a=e.type,o=e.value,l=e.as,s=e.multiple;"checkbox"===a?void 0===o?i.checked=!!r:(i.checked=!!(Array.isArray(r)&&~r.indexOf(o)),i.value=o):"radio"===a?(i.checked=r===o,i.value=o):"select"===l&&s&&(i.value=i.value||[],i.multiple=!0)}return i},[ei,et,C.values]),eg=(0,r.useMemo)(function(){return!a()(v.current,C.values)},[v.current,C.values]),ev=(0,r.useMemo)(function(){return void 0!==u?eg?C.errors&&0===Object.keys(C.errors).length:!1!==u&&_(u)?u(g):u:C.errors&&0===Object.keys(C.errors).length},[u,eg,C.errors,g]);return E({},C,{initialValues:v.current,initialErrors:y.current,initialTouched:x.current,initialStatus:b.current,handleBlur:ei,handleChange:et,handleReset:ef,handleSubmit:eu,resetForm:W,setErrors:X,setFormikState:ea,setFieldTouched:en,setFieldValue:Q,setFieldError:J,setStatus:eo,setSubmitting:el,setTouched:Y,setValues:G,submitForm:es,validateForm:U,validateField:q,isValid:ev,dirty:eg,unregisterField:K,registerField:$,getFieldProps:em,getFieldMeta:eh,getFieldHelpers:ep,validateOnBlur:o,validateOnChange:n,validateOnMount:s})}function z(e,t,n){var r=e.slice();return t.forEach(function(t,i){if(void 0===r[i]){var a=!1!==n.clone&&n.isMergeableObject(t);r[i]=a?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 B(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,a=i.name;(0,i.formik.setFormikState)(function(n){var i=N(n.values,a,e(A(n.values,a))),o=r?("function"==typeof r?r:e)(A(n.errors,a)):void 0,l=t?("function"==typeof t?t:e)(A(n.touched,a)):void 0;return M(o)&&(o=void 0),M(l)&&(l=void 0),E({},n,{values:i,errors:r?N(n.errors,a,o):n.errors,touched:t?N(n.touched,a,l):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 I(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(C(n)),n.pop=n.pop.bind(C(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&&!a()(A(e.formik.values,e.name),A(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]),_(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,a=t.children,o=t.name,l=S(t.formik,["validate","validationSchema"]),s=E({},e,{form:l,name:o});return n?(0,r.createElement)(n,s):i?i(s):a?"function"==typeof a?a(s):0===r.Children.count(a)?null:r.Children.only(a):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},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?o:l[e.$$typeof]||i}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=o;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 o=c(n);d&&(o=o.concat(d(n)));for(var l=s(t),m=s(n),g=0;g */t.read=function(e,t,n,r,i){var a,o,l=8*i-r-1,s=(1<>1,c=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,a=h&(1<<-c)-1,h>>=-c,c+=l;c>0;a=256*a+e[t+d],d+=f,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=r;c>0;o=256*o+e[t+d],d+=f,c-=8);if(0===a)a=1-u;else{if(a===s)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,r),a-=u}return(h?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,l,s,u=8*a-i-1,c=(1<>1,f=23===i?5960464477539062e-23:0,h=r?0:a-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(l=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+d>=1?t+=f/s:t+=f*Math.pow(2,1-d),t*s>=2&&(o++,s/=2),o+d>=c?(l=0,o=c):o+d>=1?(l=(t*s-1)*Math.pow(2,i),o+=d):(l=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[n+h]=255&l,h+=p,l/=256,i-=8);for(o=o<0;e[n+h]=255&o,h+=p,o/=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),a=n(98138),o=n(4174),l=n(7942);function s(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 a=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,a=Object(t),o=r(t),l=o.length;l--;){var s=o[e?l:++i];if(!1===n(a[s],s,a))break}return t}}},83126:function(e,t,n){var r=n(23895),i=n(33880),a=n(8435),o=n(66188);e.exports=function(e){return function(t){var n=i(t=o(t))?a(t):void 0,l=n?n[0]:t.charAt(0),s=n?r(n,1).join(""):t.slice(1);return l[e]()+s}}},34311:function(e,t,n){var r=n(81207),i=n(97329),a=n(11618),o=RegExp("['’]","g");e.exports=function(e){return function(t){return r(a(i(t).replace(o,"")),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),a=n(59950);e.exports=function(e,t,n,o,l,s){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var f=s.get(e),h=s.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,g=2&n?new r:void 0;for(s.set(e,t),s.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),a=n(10326);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||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,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i&&r.process,l=function(){try{var e=a&&a.require&&a.require("util").types;if(e)return e;return o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=l},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,a=r||i||Function("return this")();e.exports=a},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),a=n(96738);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(o)}return n.set(e,t),this.size=n.size,this}},8435:function(e,t,n){var r=n(50217),i=n(33880),a=n(63344);e.exports=function(e){return i(e)?a(e):r(e)}},54452:function(e,t,n){var r=n(77777),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,o=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(a,"$1"):n||e)}),t});e.exports=o},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+"]",a="(?:\ud83c[\udde6-\uddff]){2}",o="[\ud800-\udbff][\udc00-\udfff]",l="(?:"+n+"|"+r+")?",s="[\\ufe0e\\ufe0f]?",u="(?:\\u200d(?:"+[i,a,o].join("|")+")"+s+l+")*",c=RegExp(r+"(?="+r+")|(?:"+[i+n+"?",n,a,o,"["+t+"]"].join("|")+")"+(s+l+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",a="\\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",o="['’]",l="["+a+"]",s="["+r+"]",u="[^"+t+a+"\\d+"+n+r+i+"]",c="(?:\ud83c[\udde6-\uddff]){2}",d="[\ud800-\udbff][\udc00-\udfff]",f="["+i+"]",h="(?:"+s+"|"+u+")",p="(?:"+o+"(?:d|ll|m|re|s|t|ve))?",m="(?:"+o+"(?:D|LL|M|RE|S|T|VE))?",g="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",v="[\\ufe0e\\ufe0f]?",y="(?:\\u200d(?:"+["[^"+t+"]",c,d].join("|")+")"+v+g+")*",x="(?:"+["["+n+"]",c,d].join("|")+")"+(v+g+y),b=RegExp([f+"?"+s+"+"+p+"(?="+[l,f,"$"].join("|")+")","(?:"+f+"|"+u+")+"+m+"(?="+[l,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+",x].join("|"),"g");e.exports=function(e){return e.match(b)||[]}},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),a=n(7642),o=Math.max,l=Math.min;e.exports=function(e,t,n){var s,u,c,d,f,h,p=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=s,r=u;return s=u=void 0,p=t,d=e.apply(r,n)}function x(e){var n=e-h,r=e-p;return void 0===h||n>=t||n<0||g&&r>=c}function b(){var e,n,r,a=i();if(x(a))return w(a);f=setTimeout(b,(e=a-h,n=a-p,r=t-e,g?l(r,c-n):r))}function w(e){return(f=void 0,v&&s)?y(e):(s=u=void 0,d)}function j(){var e,n=i(),r=x(n);if(s=arguments,u=this,h=n,r){if(void 0===f)return p=e=h,f=setTimeout(b,t),m?y(e):d;if(g)return clearTimeout(f),f=setTimeout(b,t),y(h)}return void 0===f&&(f=setTimeout(b,t)),d}return t=a(t)||0,r(n)&&(m=!!n.leading,c=(g="maxWait"in n)?o(a(n.maxWait)||0,t):c,v="trailing"in n?!!n.trailing:v),j.cancel=function(){void 0!==f&&clearTimeout(f),p=0,s=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),a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(a,r).replace(o,"")}},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),a=Object.prototype,o=a.hasOwnProperty,l=a.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return i(e)&&o.call(e,"callee")&&!l.call(e,"callee")};e.exports=s},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),a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,l=o&&o.exports===a?r.Buffer:void 0,s=l?l.isBuffer:void 0;e.exports=s||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),a=n(4146),o=a&&a.isTypedArray,l=o?i(o):r;e.exports=l},90249:function(e,t,n){var r=n(1634),i=n(86411),a=n(67878);e.exports=function(e){return a(e)?r(e):i(e)}},19950:function(e,t,n){var r=n(13940),i=n(26548),a=n(68286);e.exports=function(e,t){var n={};return t=a(t,3),i(e,function(e,i,a){r(n,t(e,i,a),e)}),n}},34519:function(e,t,n){var r=n(13940),i=n(26548),a=n(68286);e.exports=function(e,t){var n={};return t=a(t,3),i(e,function(e,i,a){r(n,i,t(e,i,a))}),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],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};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),a=n(21401),o=n(33812);e.exports=function(e){return a(e)?r(o(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),a=n(4795),o=0/0,l=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return o;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=s.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):l.test(e)?o:+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),a=n(66188),o=n(75304);e.exports=function(e,t,n){return(e=a(e),void 0===(t=n?void 0:t))?i(e)?o(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,a=0;a"+t.value+""+i[a].show+""+e.value+"",type:10}):r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+""+e.value+"",type:1})):2===i[a].type||9===i[a].type?(e=r.pop(),t=r.pop(),r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+i[a].show+(1!=e.type?"(":"")+e.value+(1!=e.type?")":""),type:i[a].type})):12===i[a].type&&(e=r.pop(),t=r.pop(),n=r.pop(),r.push({value:i[a].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-s;n>0;n--)if(void 0!==p[n])for(i=0;i0&&En)l.push(e);else{for(;n>=i&&!c||c&&i1)throw new r.Exception("Uncaught Syntax error");return a[0].value>1e15?"Infinity":parseFloat(a[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"],a="(prefers-color-scheme: dark)",o="undefined"==typeof window,l=(0,r.createContext)(void 0),s={setTheme:e=>{},themes:[]},u=()=>{var e;return null!==(e=(0,r.useContext)(l))&&void 0!==e?e:s},c=e=>(0,r.useContext)(l)?r.createElement(r.Fragment,null,e.children):r.createElement(f,e),d=["light","dark"],f=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:o=!0,storageKey:s="theme",themes:u=d,defaultTheme:c=n?"system":"light",attribute:f="data-theme",value:v,children:y,nonce:x})=>{let[b,w]=(0,r.useState)(()=>p(s,c)),[j,k]=(0,r.useState)(()=>p(s)),E=v?Object.values(v):u,S=(0,r.useCallback)(e=>{let r=e;if(!r)return;"system"===e&&n&&(r=g());let a=v?v[r]:r,l=t?m():null,s=document.documentElement;if("class"===f?(s.classList.remove(...E),a&&s.classList.add(a)):a?s.setAttribute(f,a):s.removeAttribute(f),o){let e=i.includes(c)?c:null,t=i.includes(r)?r:e;s.style.colorScheme=t}null==l||l()},[]),C=(0,r.useCallback)(e=>{w(e);try{localStorage.setItem(s,e)}catch(e){}},[e]),M=(0,r.useCallback)(t=>{k(g(t)),"system"===b&&n&&!e&&S("system")},[b,e]);(0,r.useEffect)(()=>{let e=window.matchMedia(a);return e.addListener(M),M(e),()=>e.removeListener(M)},[M]),(0,r.useEffect)(()=>{let e=e=>{e.key===s&&C(e.newValue||c)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[C]),(0,r.useEffect)(()=>{S(null!=e?e:b)},[e,b]);let P=(0,r.useMemo)(()=>({theme:b,setTheme:C,forcedTheme:e,resolvedTheme:"system"===b?j:b,themes:n?[...u,"system"]:u,systemTheme:n?j:void 0}),[b,C,e,j,n,u]);return r.createElement(l.Provider,{value:P},r.createElement(h,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:o,storageKey:s,themes:u,defaultTheme:c,attribute:f,value:v,children:y,attrs:E,nonce:x}),y)},h=(0,r.memo)(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:o,enableColorScheme:l,defaultTheme:s,value:u,attrs:c,nonce:d})=>{let f="system"===s,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=l?i.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(e,t=!1,r=!0)=>{let a=u?u[e]:e,o=t?e+"|| ''":`'${a}'`,s="";return l&&r&&!t&&i.includes(e)&&(s+=`d.style.colorScheme = '${e}';`),"class"===n?s+=t||a?`c.add(${o})`:"null":a&&(s+=`d[s](n,${o})`),s},g=e?`!function(){${h}${m(e)}}()`:o?`!function(){try{${h}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${f})){var t='${a}',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(s,!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(s,!1,!1)};}${p}}catch(t){}}();`;return r.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:g}})},()=>!0),p=(e,t)=>{let n;if(!o){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)}},g=e=>(e||(e=window.matchMedia(a)),e.matches?"dark":"light")},93542:function(e,t,n){"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(42351)},86570:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(83391)}])},35599:function(e,t,n){"use strict";n.d(t,{Ul:function(){return l},WD:function(){return s},fu:function(){return c},o4:function(){return u}});var r=n(52322),i=n(44677),a=n(82851),o=n(99182);function l(e){let{currentPage:t,parentPage:n,commandPage:l,className:s,...u}=e,c=(0,o.U8)(e=>e.search);if((null==n?void 0:n.namespace)===(null==t?void 0:t.namespace)&&!c)return(0,r.jsx)(o.mY.Item,{className:(0,a.cx)((0,i.Vkc)(),"group",s),value:"".concat(null==l?void 0:l.label," ").concat(u.children.toString()),...u})}function s(e){let{currentPage:t,commandPage:n,className:l,...s}=e,u=(0,o.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)(o.mY.Item,{className:(0,a.cx)((0,i.Vkc)(),"group",l),value:"".concat(n.label," ").concat(s.children.toString()),...s})}function u(e){let{currentPage:t,commandPage:n,className:l,...s}=e,u=(0,o.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)(o.mY.Item,{className:(0,a.cx)((0,i.Vkc)(),"group",l),value:"".concat(n.label," ").concat(s.children.toString()),...s})}function c(e){let{heading:t,currentPage:n,commandPage:a,...l}=e,s=(0,o.U8)(e=>e.search);return(0,r.jsx)(o.mY.Group,{heading:s&&(null==n?void 0:n.namespace)!==a.namespace&&(0,r.jsx)(i.__J,{className:"px-1",size:"12",children:a.label}),...l})}n(2784)},91492:function(e,t,n){"use strict";n.d(t,{F:function(){return v},A:function(){return y}});var r=n(52322),i=n(44677),a=n(47211),o=n(55329),l=n(98334),s=n(5632),u=n(69960),c=n(56328),d=n(82229),f=n(94613),h=n(98131),p=n(30291),m=n(97112),g=n(2784);function v(e){let{id:t,trigger:n,hostAddress:o,hostKey:l,contentProps:s,buttonProps:u}=e;return(0,r.jsx)(i.h_2,{trigger:n||(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...u,children:(0,r.jsx)(a.EMN,{})}),contentProps:{align:"start",...s,onClick:e=>{e.stopPropagation()}},children:(0,r.jsx)(y,{id:t,hostAddress:o,hostKey:l})})}function y(e){var t,n;let{id:v,hostAddress:y,hostKey:x}=e,b=(0,s.useRouter)(),{setFilter:w,resetFilters:j}=(0,c.l)(),{setFilter:k,resetFilters:E}=(0,u.G)(),S=(0,o.uf)(),C=(0,o.s2)(),M=(0,f.l)(),P=(0,d.I)(),_=function(){let{openConfirmDialog:e}=(0,m.Rh)(),t=(0,o.IK)();return(0,g.useCallback)(n=>e({title:"Delete contract",action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.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)({title:"Error deleting contract",body:e.error}),(0,i.OPV)({title:"Deleted contract"})}}),[e,t])}();return(0,r.jsxs)(r.Fragment,{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 ",v.slice(0,24),"..."]})}),(0,r.jsx)(i.Juw,{children:"Filters"}),(0,r.jsxs)(i.Xiv,{disabled:!y,onSelect:()=>{j(),w({id:"addressContains",value:y,label:"Address contains ".concat(y)}),b.push(l._.hosts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter hosts by host address"]}),(0,r.jsxs)(i.Xiv,{disabled:!y,onSelect:()=>{E(),k((0,h.e)(y)),b.push(l._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter contracts by host address"]}),(0,r.jsxs)(i.Xiv,{disabled:!x,onSelect:()=>{E(),k((0,p.V)(x)),b.push(l._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter contracts by host public key"]}),(0,r.jsx)(i.Juw,{children:"Actions"}),(null===(t=S.data)||void 0===t?void 0:t.find(e=>e===y))?(0,r.jsxs)(i.Xiv,{disabled:!y,onSelect:()=>M([],[y]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Remove host address from blocklist"]}):(0,r.jsxs)(i.Xiv,{disabled:!y,onSelect:()=>M([y],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Add host address to blocklist"]}),(null===(n=C.data)||void 0===n?void 0:n.find(e=>e===x))?(0,r.jsxs)(i.Xiv,{disabled:!x,onSelect:()=>P([],[x]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Remove host public key from allowlist"]}):(0,r.jsxs)(i.Xiv,{disabled:!x,onSelect:()=>P([x],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Add host public key to allowlist"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>_(v),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.Jrl,{})}),"Delete contract"]}),(0,r.jsx)(i.Juw,{children:"Copy"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>(0,i.vQq)(v,"contract ID"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Contract ID"]}),(0,r.jsxs)(i.Xiv,{disabled:!x,onSelect:()=>(0,i.vQq)(x,"host public key"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Host public key"]}),(0,r.jsxs)(i.Xiv,{disabled:!y,onSelect:()=>(0,i.vQq)(y,"host address"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Host address"]})]})}},14613:function(e,t,n){"use strict";n.d(t,{F:function(){return N}});var r=n(52322),i=n(44677),a=n(35599);let o={namespace:"contracts/filterExpiryDate",label:"Contracts filter by expiry date"},l=[{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)(a.WD,{currentPage:t,commandPage:o,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()-(0,i.NrH)(1);return e.startTime>=t}},{id:"formationDate",value:"week",label:"formed in the last week",fn:e=>{let t=new Date().getTime()-(0,i.BL0)(1);return e.startTime>=t}},{id:"formationDate",value:"twoWeeks",label:"formed in the last two weeks",fn:e=>{let t=new Date().getTime()-(0,i.BL0)(2);return e.startTime>=t}},{id:"formationDate",value:"month",label:"formed in the last month",fn:e=>{let t=new Date().getTime()-(0,i.xLV)(1);return e.startTime>=t}},{id:"formationDate",value:"twoMonths",label:"formed in the last two months",fn:e=>{let t=new Date().getTime()-(0,i.xLV)(2);return e.startTime>=t}},{id:"formationDate",value:"year",label:"formed in the last year",fn:e=>{let t=new Date().getTime()-(0,i.ivg)(1);return e.startTime>=t}}];function d(e){let{currentPage:t,select:n}=e;return(0,r.jsx)(a.fu,{currentPage:t,commandPage:u,children:c.map(e=>(0,r.jsx)(a.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()-(0,i.NrH)(1);return e.isRenewed&&e.startTime>=t}},{id:"renewDate",value:"week",label:"renewed in the last week",fn:e=>{let t=new Date().getTime()-(0,i.BL0)(1);return e.isRenewed&&e.startTime>=t}},{id:"renewDate",value:"twoWeeks",label:"renewed in the last two weeks",fn:e=>{let t=new Date().getTime()-(0,i.BL0)(2);return e.isRenewed&&e.startTime>=t}},{id:"renewDate",value:"month",label:"renewed in the last month",fn:e=>{let t=new Date().getTime()-(0,i.xLV)(1);return e.isRenewed&&e.startTime>=t}},{id:"renewDate",value:"twoMonths",label:"renewed in the last two months",fn:e=>{let t=new Date().getTime()-(0,i.xLV)(2);return e.isRenewed&&e.startTime>=t}},{id:"renewDate",value:"year",label:"renewed in the last year",fn:e=>{let t=new Date().getTime()-(0,i.ivg)(1);return e.isRenewed&&e.startTime>=t}}];function p(e){let{currentPage:t,select:n}=e;return(0,r.jsx)(a.fu,{currentPage:t,commandPage:f,children:h.map(e=>(0,r.jsx)(a.WD,{currentPage:t,commandPage:f,onSelect:()=>{n(e)},children:e.label},e.id+e.value))})}var m=n(97112),g=n(98131);let v={namespace:"contracts/filterAddress",label:"Contracts filter by address"};function y(e){let{select:t,currentPage:n}=e,{openDialog:i}=(0,m.Rh)(),o=(0,g.e)("");return(0,r.jsx)(a.fu,{currentPage:n,commandPage:v,children:(0,r.jsx)(a.WD,{currentPage:n,commandPage:v,onSelect:()=>{t(),i("contractsFilterAddress")},children:o.label})})}function x(e){let{select:t,currentPage:n,parentPage:i,commandPage:o}=e,{openDialog:l}=(0,m.Rh)();return(0,r.jsx)(a.Ul,{currentPage:n,parentPage:i,commandPage:o,onSelect:()=>{t(),l("contractsFilterAddress")},children:v.label})}var b=n(30291);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:o}=(0,m.Rh)();return(0,r.jsx)(a.fu,{currentPage:n,commandPage:w,children:(0,r.jsx)(a.WD,{currentPage:n,commandPage:w,onSelect:()=>{t(),o("contractsFilterPublicKey")},children:i.label})})}function k(e){let{select:t,currentPage:n,parentPage:i,commandPage:o}=e,{openDialog:l}=(0,m.Rh)();return(0,r.jsx)(a.Ul,{currentPage:n,parentPage:i,commandPage:o,onSelect:()=>{t(),l("contractsFilterPublicKey")},children:w.label})}var E=n(11948);let S={namespace:"contracts/filterContractSet",label:"Contracts filter by contract set"};function C(e){let{select:t,currentPage:n}=e,i=(0,E.l)(""),{openDialog:o}=(0,m.Rh)();return(0,r.jsx)(a.fu,{currentPage:n,commandPage:S,children:(0,r.jsx)(a.WD,{currentPage:n,commandPage:S,onSelect:()=>{t(),o("contractsFilterContractSet")},children:i.label})})}function M(e){let{select:t,currentPage:n,parentPage:i,commandPage:o}=e,{openDialog:l}=(0,m.Rh)();return(0,r.jsx)(a.Ul,{currentPage:n,parentPage:i,commandPage:o,onSelect:()=>{t(),l("contractsFilterContractSet")},children:S.label})}function P(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)(C,{currentPage:t,select:n}),(0,r.jsx)(s,{currentPage:t,select:n}),(0,r.jsx)(d,{currentPage:t,select:n}),(0,r.jsx)(p,{currentPage:t,select:n})]})}let _={namespace:"contracts",label:"Contracts"};function O(e){let{currentPage:t,parentPage:n,pushPage:i,select:l}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x,{currentPage:t,parentPage:n,commandPage:_,select:l}),(0,r.jsx)(k,{currentPage:t,parentPage:n,commandPage:_,select:l}),(0,r.jsx)(M,{currentPage:t,parentPage:n,commandPage:_,select:l}),(0,r.jsx)(a.Ul,{currentPage:t,parentPage:n,commandPage:_,onSelect:()=>{i(u)},children:u.label}),(0,r.jsx)(a.Ul,{currentPage:t,parentPage:n,commandPage:_,onSelect:()=>{i(o)},children:o.label}),(0,r.jsx)(a.Ul,{currentPage:t,parentPage:n,commandPage:_,onSelect:()=>{i(f)},children:f.label})]})}var T=n(69960),A=n(2784);function N(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:a,afterSelect:o}=e,{setFilter:l}=(0,T.G)(),s=(0,A.useCallback)(e=>{a&&a(),e&&l(e),o&&o()},[l,a,o]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(O,{parentPage:n,currentPage:t,pushPage:i,select:s}),(0,r.jsx)(P,{currentPage:t,select:s})]})}},98131:function(e,t,n){"use strict";n.d(t,{e:function(){return u},p:function(){return f}});var r=n(52322),i=n(44677),a=n(69960),o=n(7114),l=n(24511),s=n(97112);function u(e){return{id:"addressContains",value:e,label:"address contains ".concat(e),fn:t=>t.hostIp.includes(e)}}let c={address:""},d=l.Ry().shape({address:l.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:l}=e,{closeDialog:f}=(0,s.Rh)(),{setFilter:h}=(0,a.G)(),p=(0,o.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(),l(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"})]})})})}},11948:function(e,t,n){"use strict";n.d(t,{X:function(){return u},l:function(){return s}});var r=n(52322),i=n(44677),a=n(69960),o=n(63955),l=n(2784);function s(e){return{id:"contractSetsInclude",value:e,label:"contract in set ".concat(e),fn:t=>{var n;return null===(n=t.contractSets)||void 0===n?void 0:n.includes(e)}}}function u(e){var t;let{trigger:n,open:u,onOpenChange:c}=e,{setFilter:d,contractSets:f}=(0,a.G)(),h={contractSet:null===(t=f.data)||void 0===t?void 0:t[0]},p=(0,o.cI)({mode:"all",defaultValues:h}),{handleOpenChange:m,closeAndReset:g}=(0,i.t0Y)({form:p,onOpenChange:c,defaultValues:h}),v=function(e){let{contractSets:t}=e;return{contractSet:{type:"select",title:"Contract set",options:t.map(e=>({label:e,value:e})),placeholder:"autopilot",validation:{required:"required"}}}}({contractSets:f.data||[]}),y=(0,l.useCallback)(e=>{d(s(e.contractSet)),g()},[d,g]),x=(0,i.WsO)(v);return(0,r.jsx)(i.VqE,{trigger:n,title:"Filter by contract set",open:u,onOpenChange:m,contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit(y,x),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.WyV,{form:p,fields:v,name:"contractSet"}),(0,r.jsx)(i.ZqQ,{form:p,size:"medium",children:"Filter"})]})})})}},30291:function(e,t,n){"use strict";n.d(t,{C:function(){return f},V:function(){return u}});var r=n(52322),i=n(44677),a=n(69960),o=n(7114),l=n(24511),s=n(97112);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=l.Ry().shape({publicKey:l.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:l}=e,{closeDialog:f}=(0,s.Rh)(),{setFilter:h}=(0,a.G)(),p=(0,o.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(),l(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"})]})})})}},90721:function(e,t,n){"use strict";n.d(t,{s:function(){return l}});var r=n(52322),i=n(44677),a=n(47211),o=n(97112);function l(e){let{name:t}=e,{openDialog:n}=(0,o.Rh)();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,r.jsx)(a.fi8,{size:16})}),contentProps:{align:"start",onClick:e=>{e.stopPropagation()}},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)(a.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)(a.Jrl,{})}),"Delete bucket"]})]})}},23094:function(e,t,n){"use strict";n.d(t,{z:function(){return f}});var r=n(52322),i=n(44677),a=n(18121),o=n(55329),l=n(82851),s=n(84779),u=n(70899);function c(e){var t,n,l,c;let{path:f,isUploading:h,type:p,health:m,size:g}=e,v="directory"===p,y=(0,o.wy)({disabled:h||v,params:(0,u.W0)(f),config:{swr:{dedupingInterval:5e3}}}),{displayHealth:x,label:b}=(0,a.B)({health:m,size:g,isDirectory:v});if(y.isValidating)return(0,r.jsx)(d,{displayHealth:x,label:b,children:(0,r.jsx)("div",{className:"flex justify-center my-2",children:(0,r.jsx)(i.xgg,{})})});if(!(null===(t=y.data)||void 0===t?void 0:t.object))return(0,r.jsx)(d,{displayHealth:x,label:b,children:(0,r.jsx)(i.xvT,{size:"12",children:"Error fetching slab metadata."})});let w=(0,s.Z)((null===(n=y.data.object.slabs)||void 0===n?void 0:n.map(e=>{var t;return{...e.slab,id:"".concat(e.offset).concat(e.length).concat(e.slab.key),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))+n;return i<=0?0:i>t?t:i}({totalShards:e.slab.shards.length,minShards:e.slab.minShards,health:e.slab.health}):0}}))||[],"contractSetShards");return(0,r.jsx)(d,{className:w.length>15?"h-[300px]":"",displayHealth:x,label:b,minShards:null===(l=w.find(e=>e.minShards))||void 0===l?void 0:l.minShards,totalShards:null===(c=w.find(e=>e.shards))||void 0===c?void 0:c.shards.length,children:w.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.id))})}function d(e){let{className:t,displayHealth:n,label:a,children:o,minShards:s,totalShards:u}=e;return(0,r.jsxs)("div",{className:(0,l.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:a}),(0,r.jsxs)(i.xvT,{size:"12",children:[(100*n).toFixed(0),"%"]})]}),s&&u?(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 ",u]})]}):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:o})})})]})}function f(e){let{name:t,isUploading:n,type:o,health:l,size:s}=e,u="directory"===o,{displayHealth:d,label:f,color:h,icon:p}=(0,a.B)({health:l,size:s,isDirectory:u}),m="".concat((100*d).toFixed(0),"%");return u?".."===t?null:(0,r.jsx)(i.zsw,{rootProps:{openDelay:100},trigger:(0,r.jsxs)("div",{className:"flex items-center gap-1 cursor-pointer",children:[(0,r.jsx)(i.xvT,{color:h,children:p}),(0,r.jsx)(i.xvT,{color:"verySubtle",size:"12",children:m})]}),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:f}),(0,r.jsx)(i.xvT,{size:"12",children:m})]})})}):n?(0,r.jsx)(i.xgg,{}):(0,r.jsx)(i.zsw,{rootProps:{openDelay:100},trigger:(0,r.jsxs)("div",{className:"flex items-center gap-1 cursor-pointer",children:[(0,r.jsx)(i.xvT,{color:h,children:p}),(0,r.jsx)(i.xvT,{color:"verySubtle",size:"12",children:m})]}),children:(0,r.jsx)(c,{...e})})}},84301:function(e,t,n){"use strict";n.d(t,{I:function(){return d}});var r=n(52322),i=n(44677),a=n(47211),o=n(97112),l=n(2784),s=n(55329),u=n(80373),c=n(70899);function d(e){let{path:t,size:n}=e,d=function(){let{openConfirmDialog:e}=(0,o.Rh)(),t=(0,s.xw)();return(0,l.useCallback)((n,o)=>e({title:"Delete directory",action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.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,u.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,c.W0)(n),batch:!0}});e.error&&(0,i.OHV)({title:"Error deleting directory",body:e.error}),(0,i.OPV)({title:"Deleted directory"})}}),[e,t])}(),{openDialog:f}=(0,o.Rh)();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{"aria-label":"Directory context menu",variant:"ghost",icon:"hover",children:(0,r.jsx)(a.ROc,{size:16})}),contentProps:{align:"start",onClick:e=>{e.stopPropagation()}},children:[(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{f("fileRename",t)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.dr6,{})}),"Rename directory"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{d(t,n)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.Jrl,{})}),"Delete directory"]})]})}},87023:function(e,t,n){"use strict";n.d(t,{e:function(){return f}});var r=n(52322),i=n(44677),a=n(47211),o=n(97112),l=n(2784),s=n(55329),u=n(70899);function c(e){let{path:t}=e,n=(0,s.wy)({params:(0,u.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)(a.olJ,{})}),"Copy metadata"]})}var d=n(41736);function f(e){let{trigger:t,path:n,contentProps:f}=e,{downloadFiles:h,getFileUrl:p,navigateToModeSpecificFiltering:m}=(0,d.b)(),g=function(){let{openConfirmDialog:e}=(0,o.Rh)(),t=(0,s.xw)();return(0,l.useCallback)(n=>e({title:"Delete file",action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.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,u.W0)(n)});e.error&&(0,i.OHV)({title:"Error deleting file",body:e.error}),(0,i.OPV)({title:"Deleted file"})}}),[e,t])}(),{openDialog:v}=(0,o.Rh)();return(0,r.jsxs)(i.h_2,{trigger:t||(0,r.jsx)(i.zxk,{"aria-label":"File context menu",variant:"ghost",icon:"hover",children:(0,r.jsx)(a.c_L,{})}),contentProps:{align:"start",...f},children:[(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:async()=>{h([n])},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.vzB,{})}),"Download file"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>v("fileRename",n),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.dr6,{})}),"Rename file"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>g(n),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.Jrl,{})}),"Delete file"]}),(0,r.jsx)(i.Juw,{children:"Filter"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{m(n)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter by file name"]}),(0,r.jsx)(i.Juw,{children:"Copy"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{(0,i.vQq)(n,"file path")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Copy file path"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{(0,i.vQq)((0,u.vt)(n),"file path")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Copy file name"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{(0,i.vQq)(p(n,!1),"file URL")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Copy URL"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{(0,i.E5z)({text:p(n,!0),title:"Copied authenticated file URL to clipboard",body:(0,r.jsxs)(r.Fragment,{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)(a.KTM,{className:"text-amber-600"}),options:{duration:1e5}})},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Copy authenticated URL"]}),(0,r.jsx)(c,{path:n})]})}},42770:function(e,t,n){"use strict";n.d(t,{F:function(){return a}});var r=n(55329),i=n(69960);function a(){var e;let t=(0,r.fz)(),{datasetCount:n,isLoading:a}=(0,i.G)();return{active:t.data&&!a&&n{e.stopPropagation()}},children:(0,r.jsx)(v,{address:t,publicKey:n})})}function v(e){var t,n;let{address:g,publicKey:v}=e,y=(0,s.useRouter)(),{setFilter:x,resetFilters:b}=(0,c.l)(),{setFilter:w,resetFilters:j}=(0,u.G)(),k=(0,o.uf)(),E=(0,o.s2)(),S=(0,f.l)(),C=(0,d.I)(),M=(0,o.f$)(),P=(0,o.wW)();return(0,r.jsxs)(r.Fragment,{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 ",v.slice(0,24),"..."]})}),(0,r.jsx)(i.Juw,{children:"Filters"}),(0,r.jsxs)(i.Xiv,{disabled:!g,onSelect:()=>{b(),x({id:"addressContains",value:g,label:"Address contains ".concat((0,i.$Gg)(g,20))}),y.push(l._.hosts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter hosts by address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{b(),x((0,m.K)(v)),y.push(l._.hosts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter hosts by public key"]}),(0,r.jsxs)(i.Xiv,{disabled:!g,onSelect:()=>{j(),w((0,h.e)(g)),y.push(l._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter contracts by host address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{j(),w((0,p.V)(v)),y.push(l._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter contracts by host public key"]}),(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{disabled:!g,onSelect:()=>{M.post({payload:{hostKey:v,hostIP:g,timeout:(0,i.XBW)(30)}})},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a._Eq,{})}),"Rescan host"]}),g&&(null===(t=k.data)||void 0===t?void 0:t.find(e=>e===g))?(0,r.jsxs)(i.Xiv,{disabled:!g,onSelect:()=>S([],[g]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Remove address from blocklist"]}):(0,r.jsxs)(i.Xiv,{disabled:!g,onSelect:()=>S([g],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Add address to blocklist"]}),(null===(n=E.data)||void 0===n?void 0:n.find(e=>e===v))?(0,r.jsxs)(i.Xiv,{onSelect:()=>C([],[v]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Remove public key from allowlist"]}):(0,r.jsxs)(i.Xiv,{onSelect:()=>C([v],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Add public key to allowlist"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>P.post({params:{publicKey:v}}),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.xkX,{})}),"Reset lost sector count"]}),(0,r.jsx)(i.Juw,{children:"Copy"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>(0,i.vQq)(v,"host public key"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Host public key"]}),(0,r.jsxs)(i.Xiv,{disabled:!g,onSelect:()=>{(0,i.vQq)(g,"host address")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Host address"]})]})}},37769:function(e,t,n){"use strict";n.d(t,{T:function(){return b},N:function(){return x}});var r=n(52322),i=n(2784),a=n(44677),o=n(80373),l=n(6391),s=n.n(l);function u(e){let{host:t,rates:n}=e,r=n?"$".concat(new(s())(t.settings.storageprice).times((0,o.xf)(1)).times((0,o.S5)(1)).div(1e24).times((null==n?void 0:n.usd)||1).toFixed(2),"/TB"):"".concat((0,o.Vz)(new(s())(t.settings.storageprice).times((0,o.xf)(1)).times((0,o.S5)(1)),{fixed:0}),"/TB"),i="".concat((0,o.vW)(t.activeContracts.reduce((e,t)=>e.plus(t.size),new(s())(0)).toNumber())," utilized"),l="".concat((0,o.vW)(t.settings.remainingstorage)," / ").concat((0,o.vW)(t.settings.totalstorage)," available");return"".concat((0,a.HLH)(t.countryCode)," \xb7 ").concat(r," \xb7 ").concat(i," \xb7 ").concat(l)}var c=function(){let[e,t]=(0,i.useState)(null),[n,r]=(0,i.useState)({width:0,height:0}),a=(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",a),f(()=>{a()},[null==e?void 0:e.offsetHeight,null==e?void 0:e.offsetWidth]),[t,n]},d=function(e,t,n,r){let a=(0,i.useRef)(t);f(()=>{a.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 o=e=>a.current(e);return i.addEventListener(e,o,r),()=>{i.removeEventListener(e,o,r)}},[e,n,r])},f="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,h=n(82842),p=n(25237);let m=n.n(p)()(()=>Promise.all([n.e(546),n.e(508),n.e(167),n.e(764),n.e(936)]).then(n.bind(n,6936)),{loadableGenerated:{webpack:()=>[6936]},ssr:!1}),g=(0,i.forwardRef)(function(e,t){return(0,r.jsx)(m,{...e,forwardRef:t})});var v=n(10569),y=n(85375);let x={moveToLocation:(e,t)=>null};function b(e){let{activeHost:t,hosts:n,onMount:a,onHostClick:o,onHostHover:l}=e,d=(0,y.BW)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,i.useRef)(null),p=(0,i.useRef)(x),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)(()=>{p.current.moveToLocation=m},[m]),(0,h.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)(()=>{a&&a(p.current)},[]);let[b,{height:w,width:j}]=c(),k=(0,i.useMemo)(()=>n||[],[n]);return(0,r.jsx)("div",{ref:b,className:"w-full h-full",children:(0,r.jsx)(g,{ref:f,width:j,height:w,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,v.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(s())(0)).div(1e12).toNumber(),Math.max(e.settings.remainingstorage/1e13/3,.1)),onPointHover:e=>{e&&(null==l||l(e.publicKey,e.location))},onPointClick:e=>{e&&(null==o||o(e.publicKey,e.location))},pointsMerge:!1})})}},42213:function(e,t,n){"use strict";n.d(t,{L:function(){return _}});var r=n(52322),i=n(35599),a=n(97112),o=n(10532);let l={namespace:"hosts/filterAddress",label:"Hosts filter by address"};function s(e){let{select:t,currentPage:n}=e,{openDialog:s}=(0,a.Rh)(),u=(0,o.q)("");return(0,r.jsx)(i.fu,{currentPage:n,commandPage:l,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:l,onSelect:()=>{t(),s("hostsFilterAddress")},children:u.label})})}function u(e){let{select:t,currentPage:n,parentPage:o,commandPage:s}=e,{openDialog:u}=(0,a.Rh)();return(0,r.jsx)(i.Ul,{currentPage:n,parentPage:o,commandPage:s,onSelect:()=>{t(),u("hostsFilterAddress")},children:l.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 g={namespace:"hosts/filterUsable",label:"Hosts filter by usable"},v=[{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:g,children:v.map(e=>(0,r.jsx)(i.WD,{currentPage:n,commandPage:g,onSelect:()=>{t(e)},children:e.label},e.id+e.value))})}var x=n(37606),b=n(23771);let w={namespace:"hosts/filterPublicKey",label:"Hosts filter by public key"};function j(e){let{select:t,currentPage:n}=e,{openDialog:o}=(0,a.Rh)(),l=(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(),o("hostsFilterPublicKey")},children:l.label})})}function k(e){let{select:t,currentPage:n,parentPage:o,commandPage:l}=e,{openDialog:s}=(0,a.Rh)();return(0,r.jsx)(i.Ul,{currentPage:n,parentPage:o,commandPage:l,onSelect:()=>{t(),s("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)(s,{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 C(e){let{currentPage:t,parentPage:n,pushPage:a,select:o}=e,{autopilot:l}=(0,x.q)();return(0,r.jsxs)(r.Fragment,{children:["on"===l.status&&(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{a(g)},children:g.label}),(0,r.jsx)(k,{currentPage:t,parentPage:n,commandPage:S,select:o}),(0,r.jsx)(u,{currentPage:t,parentPage:n,commandPage:S,select:o}),(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{a(h)},children:h.label}),(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{a(c)},children:c.label})]})}var M=n(56328),P=n(2784);function _(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:a,afterSelect:o}=e,{setFilter:l}=(0,M.l)(),s=(0,P.useCallback)(e=>{a&&a(),e&&l(e),o&&o()},[l,a,o]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(C,{parentPage:n,currentPage:t,pushPage:i,select:s}),(0,r.jsx)(E,{currentPage:t,pushPage:i,select:s})]})}},10532:function(e,t,n){"use strict";n.d(t,{g:function(){return f},q:function(){return u}});var r=n(52322),i=n(44677),a=n(56328),o=n(7114),l=n(24511),s=n(97112);function u(e){return{id:"addressContains",value:e,label:"address contains ".concat(e)}}let c={address:""},d=l.Ry().shape({address:l.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:l}=e,{closeDialog:f}=(0,s.Rh)(),{setFilter:h}=(0,a.l)(),p=(0,o.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(),l(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"})]})})})}},23771:function(e,t,n){"use strict";n.d(t,{K:function(){return u},a:function(){return f}});var r=n(52322),i=n(44677),a=n(56328),o=n(7114),l=n(24511),s=n(97112);function u(e){return{id:"publicKeyEquals",value:e,label:"public key is ".concat((0,i.$Gg)(e,20))}}let c={publicKey:""},d=l.Ry().shape({publicKey:l.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:l}=e,{closeDialog:f}=(0,s.Rh)(),{setFilter:h}=(0,a.l)(),p=(0,o.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(),l(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"})]})})})}},26731:function(e,t,n){"use strict";n.d(t,{s:function(){return l}});var r=n(52322),i=n(44677),a=n(2784),o=n(34864);function l(e){let{loaded:t,size:n,status:l}=e,s=(0,a.useMemo)(()=>{var e;return void 0!==(e={loaded:t,size:n}).loaded?e.loaded/e.size:1},[t,n]);return(0,r.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,r.jsx)(i.kod,{variant:"accent",value:t,max:n,className:1===s?"animate-pulse":""}),(0,r.jsxs)("div",{className:"flex gap-2 justify-between",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:(0,o.Z)(l)}),(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",children:[(100*s).toFixed(0),"%"]})]})]})}},98334:function(e,t,n){"use strict";n.d(t,{_:function(){return i},h:function(){return a}});var r=n(79895);let i={home:"/",buckets:{index:"/buckets",files:"/buckets/[bucket]/files/[path]",uploads:"/buckets/[bucket]/uploads"},config:{index:"/config",storage:"/config#storage",pricing:"/config#pricing",hosts:"/config#hosts",wallet:"/config#wallet",contracts:"/config#contracts",uploads:"/config#uploads",redundancy:"/config#redundancy",pinning:"/config#pinning"},contracts:{index:"/contracts"},hosts:{index:"/hosts"},wallet:{view:"/wallet"},keys:{index:"/keys"},alerts:{index:"/alerts"},node:{index:"/node"},login:"/login"},a=r.PS},9338:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});let r=(0,n(44677).XBW)(15)},88385:function(e,t,n){"use strict";n.d(t,{b:function(){return D},Z:function(){return R}});var r=n(52322),i=n(44677),a=n(5632),o=n(2784);let l=["actions","overview","data","time"],s=[];var u=n(55329),c=n(17448),d=n(41736),f=n(97112),h=n(70899),p=n(6391),m=n.n(p),g=n(47211),v=n(91492);function y(e){let{id:t,trigger:n,contentProps:a,buttonProps:o}=e;return(0,r.jsx)(i.h_2,{trigger:n||(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...o,children:(0,r.jsx)(g.EMN,{})}),contentProps:{align:"start",...a,onClick:e=>{e.stopPropagation()}},children:(0,r.jsx)(x,{id:t})})}function x(e){var t,n;let{id:i}=e,a=(0,u.cq)({params:{id:i}});return(0,r.jsx)(v.A,{id:i,hostAddress:null===(t=a.data)||void 0===t?void 0:t.hostIP,hostKey:null===(n=a.data)||void 0===n?void 0:n.hostKey})}function b(e){let{id:t,contentProps:n,buttonProps:a,trigger:o}=e,l=(0,u.cJ)();return(0,r.jsxs)(i.h_2,{trigger:o||(0,r.jsx)(i.zxk,{icon:"hover",variant:"ghost",...a,children:(0,r.jsx)(g.EMN,{})}),contentProps:{align:"start",...n,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:["Account ",t.slice(0,20),"..."]})}),(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>l.post({params:{id:t}}),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(g.xkX,{})}),"Reset account drift"]}),(0,r.jsx)(i.Juw,{children:"Copy"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>(0,i.vQq)(t,"account ID"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(g.olJ,{})}),"Account ID"]})]})}var w=n(87023);let j={origin:{render:function(e){let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"origin"}),(0,r.jsx)(i.xvT,{size:"12",color:"contrast",ellipsis:!0,children:t})]})}},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)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"contract ID"}),(0,r.jsx)(i.PF9,{size:"12",value:t,menu:(0,r.jsx)(y,{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)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"account ID"}),(0,r.jsx)(i.XxW,{size:"12",value:t,label:"account ID",contextMenu:(0,r.jsx)(b,{id:t,contentProps:{align:"end"},buttonProps:{size:"none"}})})]})}},hostKey:{render:function(e){let{value:t}=e,n=(0,u.$)({params:{hostKey:t}});return n.data?(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"host key"}),(0,r.jsx)(i.PF9,{size:"12",value:t,menu:(0,r.jsx)(c.G,{publicKey:n.data.publicKey,address:n.data.netAddress,contentProps:{align:"end"},buttonProps:{size:"none"}})})]}):null}},slabKey:{render:function(e){let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"slab key"}),(0,r.jsx)(i.XxW,{size:"12",value:t,label:"slab key"})]})}},health:{render:function(e){let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"health"}),(0,r.jsx)(i.xvT,{size:"12",color:"contrast",ellipsis:!0,children:t})]})}},objectIDs:{render:function(e){let{value:t}=e,{setActiveDirectory:n}=(0,d.b)(),{closeDialog:a}=(0,f.Rh)();return(0,r.jsxs)("div",{className:"flex flex-col gap-2 max-h-[100px]",children:[(0,r.jsx)("div",{className:"flex justify-between w-full gap-2",children:(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"object IDs"})}),(0,r.jsx)("div",{className:"-mx-2",children:(0,r.jsx)(i.xrM,{children:(0,r.jsx)("div",{className:"flex flex-col gap-2 mt-2 mb-2 px-2",children:Object.entries(t).map(e=>{let[t,o]=e;return o.map(e=>{let o="".concat(t).concat(e);return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.rUS,{color:"accent",underline:"hover",size:"12",noWrap:!0,ellipsis:!0,onClick:()=>{n(()=>(0,h.gD)(o)),a()},children:o}),(0,r.jsx)(w.e,{path:o,contentProps:{align:"end"},trigger:(0,r.jsx)(i.zxk,{"aria-label":"File context menu",variant:"ghost",icon:"hover",size:"none",children:(0,r.jsx)(g.EMN,{})})})]},o)})})})})})]})}},added:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"added"}),(0,r.jsx)(i.xvT,{size:"12",color:"contrast",ellipsis:!0,children:t})]})}},removed:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"removed"}),(0,r.jsx)(i.xvT,{size:"12",color:"contrast",ellipsis:!0,children:t})]})}},migrationsInterrupted:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"migrations interrupted"}),(0,r.jsx)(i.xvT,{size:"12",weight:"medium",ellipsis:!0,children:t?"yes":"no"})]})}},allowance:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"allowance"}),(0,r.jsx)(i.YKL,{size:"12",variant:"value",value:new(m())(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)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"balance"}),(0,r.jsx)(i.YKL,{size:"12",variant:"value",value:new(m())(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)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"address"}),(0,r.jsx)(i.XxW,{size:"12",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)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"account"}),(0,r.jsx)(i.XxW,{size:"12",value:t,label:"account",contextMenu:(0,r.jsx)(b,{id:t,contentProps:{align:"end"},buttonProps:{size:"none"}})})]})}},lostSectors:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"lost sectors"}),(0,r.jsx)(i.m2c,{size:"12",variant:"value",value:new(m())(t),format:e=>e.toString()})]})}}};function k(e){let{hostKey:t,contentProps:n,buttonProps:a,trigger:o}=e;return(0,r.jsx)(i.h_2,{trigger:o||(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...a,children:(0,r.jsx)(g.EMN,{})}),contentProps:{align:"start",...n,onClick:e=>{e.stopPropagation()}},children:(0,r.jsx)(E,{hostKey:t})})}function E(e){var t;let{hostKey:n}=e,i=(0,u.$)({params:{hostKey:n}});return(0,r.jsx)(c.i,{address:null===(t=i.data)||void 0===t?void 0:t.netAddress,publicKey:n})}var S=n(80373),C=n(32998),M=n(82851),P=n(28356);function _(e){let{setAdditions:t,setRemovals:n}=e,a=(0,o.useMemo)(()=>(0,P.Z)([...Object.keys(t),...Object.keys(n)]).map(e=>{var r,i,a,o;let l=(null===(r=t[e])||void 0===r?void 0:r.additions)||[],s=(null===(i=n[e])||void 0===i?void 0:i.removals)||[];return{contractId:e,hostKey:(null===(a=t[e])||void 0===a?void 0:a.hostKey)||(null===(o=n[e])||void 0===o?void 0:o.hostKey),events:[...l.map(e=>({type:"addition",size:e.size,time:e.time})),...s.map(e=>({type:"removal",size:e.size,time:e.time,reasons:e.reasons}))].sort((e,t)=>new Date(e.time).getTime()e.events[0].sizea.reduce((e,t)=>{let{events:n}=t;return e+n[0].size},0),[a]),s=(0,o.useMemo)(()=>a.filter(e=>{let{events:t}=e;return"removal"===t[0].type}),[a]),u=(0,o.useMemo)(()=>a.filter(e=>{let{events:t}=e;return"addition"===t[0].type}),[a]),c=(0,o.useMemo)(()=>s.reduce((e,t)=>{let{events:n}=t;return e+n[0].size},0),[s]),d=(0,o.useMemo)(()=>l>0?c/l*100:0,[c,l]);return(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center pr-1",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"contract set changes"}),(0,r.jsx)("div",{className:"flex-1"}),(0,r.jsx)(i.ua7,{content:"".concat((0,S.vW)(c)," of ").concat((0,S.vW)(l)," contract size removed"),children:(0,r.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,r.jsxs)(i.xvT,{size:"12",color:"contrast",ellipsis:!0,children:["churn: ",d.toFixed(2),"%"]}),(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:["(",(0,S.vW)(c)," / ",(0,S.vW)(l),")"]})]})}),(0,r.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,r.jsx)(i.ua7,{content:"".concat(u.length," contracts added"),children:(0,r.jsxs)(i.xvT,{size:"12",color:"green",ellipsis:!0,className:"flex items-center",children:[(0,r.jsx)(g.aXP,{}),u.length]})}),(0,r.jsx)(i.ua7,{content:"".concat(s.length," contracts removed"),children:(0,r.jsxs)(i.xvT,{size:"12",color:"red",ellipsis:!0,className:"flex items-center",children:[(0,r.jsx)(g.eOF,{}),s.length]})})]})]}),(0,r.jsx)("div",{className:"flex flex-col gap-3 mb-2",children:a.map((e,t)=>{let{contractId:n,hostKey:i,events:a}=e;return(0,r.jsx)(O,{contractId:n,hostKey:i,events:a,i:t},n+i)})})]})}function O(e){let{contractId:t,hostKey:n,events:a,i:o}=e;return(0,r.jsxs)("div",{className:"flex flex-col gap-[3px]",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center px-[3px]",children:[(0,r.jsxs)(i.xvT,{size:"12",weight:"medium",ellipsis:!0,children:[o+1,"."]}),(0,r.jsx)("div",{className:"flex-1"}),(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"contract"}),(0,r.jsx)(i.XxW,{size:"12",value:t,contextMenu:(0,r.jsx)(y,{id:t,buttonProps:{size:"none"},contentProps:{align:"end"}})})]}),(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"host"}),(0,r.jsx)(i.XxW,{size:"12",value:n,label:"host key",contextMenu:(0,r.jsx)(k,{hostKey:n,buttonProps:{size:"none"},contentProps:{align:"end"}})})]})]}),a.map((e,t)=>{let{type:n,reasons:a,size:o,time:l}=e;return(0,r.jsx)(i.ua7,{content:"addition"===n?"added":"removed: ".concat(a),align:"start",side:"bottom",children:(0,r.jsxs)("div",{className:(0,M.cx)("flex gap-2 justify-between mr-2 pr-1",0===t?"addition"===n?"bg-green-400/20":"bg-red-400/20":"opacity-50"),children:[(0,r.jsxs)("div",{className:"flex gap-1 items-center overflow-hidden",children:[(0,r.jsx)(i.xvT,{size:"12",color:"addition"===n?"green":"red",children:"addition"===n?(0,r.jsx)(g.aXP,{}):(0,r.jsx)(g.eOF,{})}),(0,r.jsx)(i.xvT,{size:"12",ellipsis:!0,children:a})]}),(0,r.jsx)("div",{className:"flex-1"}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(i.xvT,{color:"subtle",size:"12",ellipsis:!0,children:"time"}),(0,r.jsx)(i.xvT,{size:"12",ellipsis:!0,children:(0,C.Z)(new Date(l),new Date)})]}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(i.xvT,{color:"subtle",size:"12",ellipsis:!0,children:"size"}),(0,r.jsx)(i.xvT,{size:"12",ellipsis:!0,children:(0,S.vW)(o)})]})]})},n+a+l)})]})}let T=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pr-4 [&+*]:!pl-0",rowCellClassName:"align-top pt-[19px]",render:e=>{let{data:{dismiss:t}}=e;return(0,r.jsx)(i.eQh,{children:(0,r.jsx)(i.zxk,{tip:"Dismiss alert",onClick:t,children:(0,r.jsx)(g.NlZ,{})})})}},{id:"overview",label:"overview",category:"general",contentClassName:"min-w-[200px] max-w-[500px]",rowCellClassName:"align-top pt-[5px]",render:e=>{let{data:{message:t,severity:n,data:a}}=e;return(0,r.jsxs)("div",{className:"flex flex-col gap-1 py-4",children:[(0,r.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,r.jsx)(i.Cts,{variant:"error"===n||"critical"===n?"red":"warning"===n?"amber":"gray",size:"small",children:n}),(0,r.jsx)(i.xvT,{weight:"medium",noWrap:!0,children:t})]}),a.hint&&(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:a.hint}),a.error&&(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:a.error})]})}},{id:"data",label:"data",contentClassName:"w-[500px]",rowCellClassName:"align-top",category:"general",render:function(e){let{data:{data:t}}=e,n=(0,o.useMemo)(()=>Object.keys(j).map(e=>{let n=t[e];return null!=n&&("object"!=typeof n||Object.keys(n).length)?{key:e,value:n}:null}).filter(Boolean),[t]),a=(0,o.useMemo)(()=>t.setAdditions,[t]),l=(0,o.useMemo)(()=>t.setRemovals,[t]);return(0,r.jsx)("div",{className:"py-4 w-full",children:(0,r.jsxs)(i.s_4,{color:"subtle",className:"flex flex-col gap-1 w-full py-1",children:[(a||l)&&(0,r.jsxs)(o.Fragment,{children:[(0,r.jsx)("div",{className:"py-1 px-2",children:(0,r.jsx)(_,{setAdditions:a,setRemovals:l})}),n.length>=1&&(0,r.jsx)(i.Z0O,{color:"verySubtle",className:"w-full"})]},"setChanges"),n.map((e,t)=>{var a;let{key:l,value:s}=e,u=null==j?void 0:null===(a=j[l])||void 0===a?void 0:a.render;return u?(0,r.jsxs)(o.Fragment,{children:[(0,r.jsx)("div",{className:"py-1 px-2",children:(0,r.jsx)(u,{value:s},l)}),n.length>1&&t{let{data:{timestamp:t}}=e;return(0,r.jsx)(i.xvT,{color:"subtle",size:"12",ellipsis:!0,children:(0,C.Z)(new Date(t),new Date)})}}];var A=n(9338);let N=(0,o.createContext)({}),R=()=>(0,o.useContext)(N);function D(e){let{children:t}=e,n=function(){var e;let t=(0,a.useRouter)(),n=Number(t.query.limit||50),r=Number(t.query.offset||0),{filters:c,setFilter:d,removeFilter:f,removeLastFilter:h,resetFilters:p}=(0,i.Uu5)(),m=(0,o.useCallback)(e=>{e?d({id:"severity",value:e,label:e}):f("severity")},[d,f]),g=null===(e=c.find(e=>"severity"===e.id))||void 0===e?void 0:e.value,v=(0,o.useMemo)(()=>{let e={limit:n,offset:r};return g&&(e.severity=g),e},[n,r,g]),y=(0,u.Z7)({params:v,config:{swr:{refreshInterval:A.h}}}),x=(0,u.Uy)(),b=(0,o.useCallback)(async e=>{let t=await x.post({payload:[e]});t.error?(0,i.OHV)({title:"Error dismissing alert",body:t.error}):(0,i.OPV)({title:"Alert has been dismissed."})},[x]),w=(0,o.useCallback)(async e=>{let t=await x.post({payload:e});t.error?(0,i.OHV)({title:"Error dismissing alerts",body:t.error}):(0,i.OPV)({title:"Selected alerts have been dismissed"})},[x]),j=(0,o.useMemo)(()=>{var e,t;return y.data?(null===(t=y.data)||void 0===t?void 0:null===(e=t.alerts)||void 0===e?void 0:e.map(e=>({id:e.id,severity:e.severity,message:e.message,timestamp:e.timestamp,data:e.data,dismiss:()=>b(e.id)})))||[]:null},[y.data,b]),{configurableColumns:k,enabledColumns:E,sortableColumns:S,toggleColumnVisibility:C,setColumnsVisible:M,setColumnsHidden:P,toggleSort:_,setSortDirection:O,setSortField:N,sortField:R,sortDirection:D,resetDefaultColumnVisibility:L}=(0,i.oy6)("renterd/v0/alerts",{columns:T,columnsDefaultVisible:l,sortOptions:s,defaultSortField:""}),Z=(0,o.useMemo)(()=>T.filter(e=>e.fixed||E.includes(e.id)),[E]),F=(0,i.c2j)(j,y.isValidating,y.error,c),z=(0,o.useMemo)(()=>({}),[]),V=(0,o.useMemo)(()=>{var e,t;return{...null===(e=y.data)||void 0===e?void 0:e.totals,all:Object.entries((null===(t=y.data)||void 0===t?void 0:t.totals)||{}).reduce((e,t)=>{let[n,r]=t;return e+r},0)}},[y.data]);return{dataState:F,limit:n,offset:r,isLoading:y.isLoading,error:y.error,pageCount:(null==j?void 0:j.length)||0,totals:V,columns:Z,datasetPage:j,cellContext:z,configurableColumns:k,enabledColumns:E,sortableColumns:S,toggleColumnVisibility:C,setColumnsVisible:M,setColumnsHidden:P,toggleSort:_,setSortDirection:O,setSortField:N,sortField:R,filters:c,setFilter:d,removeFilter:f,removeLastFilter:h,resetFilters:p,sortDirection:D,resetDefaultColumnVisibility:L,dismissOne:b,dismissMany:w,severityFilter:g,setSeverityFilter:m}}();return(0,r.jsx)(N.Provider,{value:n,children:t})}},37606:function(e,t,n){"use strict";n.d(t,{w:function(){return d},q:function(){return c}});var r=n(52322),i=n(2784),a=n(87741),o=n(82842),l=n(79895),s=n(56978);let u=(0,i.createContext)({}),c=()=>(0,i.useContext)(u);function d(e){let{children:t}=e,n=function(){let e=(0,a.V)();return{bus:function(){let[e,t]=(0,i.useState)(null),{settings:{api:n,password:r}}=(0,o.Hv)();return(0,i.useEffect)(()=>{t(function(e){let{api:t,password:n}=e,r=(0,s.YY)(t,n);return{axios:r,busState:(0,s.Li)(r,"get",l.PS),consensusState:(0,s.Li)(r,"get",l.J6),consensusAcceptBlock:(0,s.Li)(r,"post",l.gc),syncerPeers:(0,s.Li)(r,"get",l.gl),syncerConnect:(0,s.Li)(r,"post",l.aU),syncerAddress:(0,s.Li)(r,"get",l.AF),txPoolFee:(0,s.Li)(r,"get",l.Z),txPoolTransactions:(0,s.Li)(r,"get",l.Oj),txPoolBroadcast:(0,s.Li)(r,"post",l.MR),wallet:(0,s.Li)(r,"get",l.xg),walletAddresses:(0,s.Li)(r,"get",l.sj),walletTransactions:(0,s.Li)(r,"get",l.Y6),walletUtxos:(0,s.Li)(r,"get",l.rW),walletFund:(0,s.Li)(r,"post",l.hg),walletSign:(0,s.Li)(r,"post",l.ZQ),walletRedistribute:(0,s.Li)(r,"post",l.f0),walletDiscard:(0,s.Li)(r,"post",l.Oy),walletPrepareForm:(0,s.Li)(r,"post",l.Kr),walletPrepareRenew:(0,s.Li)(r,"post","/bus/wallet/prepare/form"),walletPending:(0,s.Li)(r,"get",l.zk),hosts:(0,s.Li)(r,"get",l.N8),hostsSearch:(0,s.Li)(r,"post",l.Rp),host:(0,s.Li)(r,"get",l.rg),hostsInteractionAdd:(0,s.Li)(r,"post",l.nY),hostsBlocklist:(0,s.Li)(r,"get",l.yu),hostsAllowlist:(0,s.Li)(r,"get",l.MF),hostsAllowlistUpdate:(0,s.Li)(r,"put",l.MF),hostsBlocklistUpdate:(0,s.Li)(r,"put",l.yu),hostResetLostSectorCount:(0,s.Li)(r,"post",l.KP),accountResetDrift:(0,s.Li)(r,"post",l.UM),contracts:(0,s.Li)(r,"get",l.FP),contractsAcquire:(0,s.Li)(r,"post",l.fo),contractsRelease:(0,s.Li)(r,"post",l.sw),contract:(0,s.Li)(r,"get",l.J9),contractAdd:(0,s.Li)(r,"post",l.AD),contractRenew:(0,s.Li)(r,"post",l.Z2),contractDelete:(0,s.Li)(r,"delete",l.J9),contractSize:(0,s.Li)(r,"get",l.cN),contractSets:(0,s.Li)(r,"get",l.E_),contractSetUpdate:(0,s.Li)(r,"put",l.I7),contractsPrunable:(0,s.Li)(r,"get",l.z$),buckets:(0,s.Li)(r,"get",l.AJ),bucket:(0,s.Li)(r,"get",l.aq),bucketCreate:(0,s.Li)(r,"post",l.AJ),bucketPolicyUpdate:(0,s.Li)(r,"put",l.mD),bucketDelete:(0,s.Li)(r,"delete",l.aq),objectDirectory:(0,s.Li)(r,"get",l.uT),objectList:(0,s.Li)(r,"post",l.p_),object:(0,s.Li)(r,"get",l.uT),objectSearch:(0,s.Li)(r,"get",l.O7),objectAdd:(0,s.Li)(r,"put",l.uT),objectRename:(0,s.Li)(r,"post",l.oZ),objectDelete:(0,s.Li)(r,"delete",l.uT),objectStats:(0,s.Li)(r,"get",l.VJ),settings:(0,s.Li)(r,"get",l.fD),setting:function(e){let{params:t,config:n}=e;return(0,s.Li)(r,"get",l.ww)({params:t,config:n})},settingGouging:function(){let{config:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,s.Li)(r,"get",l.ww)({params:{key:"gouging"},config:e})},settingRedundancy:function(){let{config:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,s.Li)(r,"get",l.ww)({params:{key:"redundancy"},config:e})},settingContractSet:function(){let{config:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,s.Li)(r,"get",l.ww)({params:{key:"contractset"},config:e})},settingUploadPacking:function(){let{config:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,s.Li)(r,"get",l.ww)({params:{key:"uploadpacking"},config:e})},settingS3Authentication:function(){let{config:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,s.Li)(r,"get",l.ww)({params:{key:"s3authentication"},config:e})},settingPricePinning:function(){let{config:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,s.Li)(r,"get",l.ww)({params:{key:"pricepinning"},config:e})},settingUpdate:(0,s.Li)(r,"put",l.ww),alerts:(0,s.Li)(r,"get",l.jL),alertsDismiss:(0,s.Li)(r,"post",l.ks),slabObjects:(0,s.Li)(r,"get",l.go),contractMetrics:(0,s.Li)(r,"get",l.hp),contractSetMetrics:(0,s.Li)(r,"get",l.Mj),contractSetChurnMetrics:(0,s.Li)(r,"get",l.l5),walletMetrics:(0,s.Li)(r,"get",l.nI),multipartUploadCreate:(0,s.Li)(r,"post",l.sW),multipartUploadComplete:(0,s.Li)(r,"post",l.Pw),multipartUploadAbort:(0,s.Li)(r,"post",l.w_),multipartUploadListParts:(0,s.Li)(r,"post",l.GV),multipartUploadListUploads:(0,s.Li)(r,"post",l.CM),multipartUploadAddPart:(0,s.Li)(r,"post",l.o5)}}({api:"".concat(n,"/api"),password:r}))},[n,r]),e}(),autopilot:e,isAutopilotEnabled:"on"===e.status}}();return(0,r.jsx)(u.Provider,{value:n,children:t})}},87741:function(e,t,n){"use strict";n.d(t,{V:function(){return o}});var r=n(44677),i=n(55329),a=n(2784);function o(){let e=(0,i.YX)({config:{swr:{dedupingInterval:(0,r.XBW)(5),revalidateOnFocus:!1,refreshInterval:e=>e?(0,r.XBW)(60):(0,r.XBW)(1)}}}),[t,n]=(0,a.useState)("init");return(0,a.useEffect)(()=>{if(e.isLoading)n("init");else{if(e.isValidating)return;e.error?n("off"):e.data&&n("object"==typeof e.data?"on":"off")}},[e]),{status:t,state:e}}},70771:function(e,t,n){"use strict";n.d(t,{iV:function(){return eM},ZR:function(){return eC}});var r=n(52322),i=n(2784),a=n(44677),o=n(80373),l=n(6391),s=n.n(l);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,minProtocolVersion:""},c={defaultContractSet:""},d={uploadPackingEnabled:!0},f={maxRPCPriceMillion:void 0,maxStoragePriceTBMonth:void 0,maxContractPrice:void 0,maxDownloadPriceTB:void 0,maxUploadPriceTB:void 0,hostBlockHeightLeeway:void 0,minPriceTableValidityMinutes:void 0,minAccountExpiryDays:void 0,minMaxEphemeralAccountBalance:void 0,migrationSurchargeMultiplier:void 0},h={pinningEnabled:!1,pinnedCurrency:"",forexEndpointURL:"",pinnedThreshold:void 0,shouldPinMaxStoragePrice:!1,maxStoragePriceTBMonthPinned:void 0,shouldPinMaxDownloadPrice:!1,maxDownloadPriceTBPinned:void 0,shouldPinMaxRPCPrice:!1,maxRPCPriceMillionPinned:void 0,shouldPinMaxUploadPrice:!1,maxUploadPriceTBPinned:void 0,shouldPinAllowance:!1,allowanceMonthPinned:void 0},p={...u,...c,...d,...f,minShards:void 0,totalShards:void 0,...h};function m(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),minProtocolVersion:"1.6.0",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),minProtocolVersion:"1.6.0",prune:!0}}}let g={...c,defaultContractSet:"autopilot"},v={...d},y={...f},x={...h};function b(e){return{...m(e),...g,...v,...y,..."mainnet"===e?{minShards:new(s())(10),totalShards:new(s())(30)}:{minShards:new(s())(2),totalShards:new(s())(6)},...x}}function w(e){let{autopilotState:t,autopilot:n,contractSet:r,uploadPacking:i,gouging:a,redundancy:o,pricePinning:l,averages:s,appSettings:u}=e;return!!(t.data&&o.data&&i.data&&a.data&&l.data&&(n.data||n.error)&&(r.data||r.error)&&(!u.settings.siaCentral||s.data))}var j=n(82842);function k(e){let{gouging:t,averages:n,hasBeenConfigured:r}=e,i=function(e){let{gouging:t,averages:n,hasBeenConfigured:r}=e;return r||!n?t:{...t,maxStoragePrice:n.settings.storage_price,maxDownloadPrice:new(s())(n.settings.download_price).times((0,o.xf)(1)).toString(),maxUploadPrice:new(s())(n.settings.upload_price).times((0,o.xf)(1)).toString()}}({gouging:t,averages:n,hasBeenConfigured:r});return{maxStoragePriceTBMonth:(0,o.ll)((0,o.dq)(new(s())(i.maxStoragePrice)),6),maxUploadPriceTB:(0,o.ll)(new(s())(i.maxUploadPrice),6),maxDownloadPriceTB:(0,o.ll)(i.maxDownloadPrice,6),maxContractPrice:(0,o.ll)(i.maxContractPrice,6),maxRPCPriceMillion:(0,o.ll)((0,o.x9)(new(s())(i.maxRPCPrice)),6),hostBlockHeightLeeway:new(s())(i.hostBlockHeightLeeway),minPriceTableValidityMinutes:new(s())((0,a.AEA)(i.minPriceTableValidity)),minAccountExpiryDays:new(s())((0,a.okB)(i.minAccountExpiry)),minMaxEphemeralAccountBalance:(0,o.ll)(i.minMaxEphemeralAccountBalance,6),migrationSurchargeMultiplier:new(s())(i.migrationSurchargeMultiplier)}}function E(e){let{hasBeenConfigured:t,autopilot:n,contractSet:r,uploadPacking:i,gouging:l,redundancy:d,pricePinning:f,averages:h}=e;return{...function(e){if(!e)return u;let t=e.contracts.set,n=(0,o.ll)((0,o.qX)(new(s())(e.contracts.allowance),e.contracts.period),6),r=new(s())(e.contracts.amount),i=new(s())((0,o.x5)(e.contracts.period)),l=new(s())((0,o.x5)(e.contracts.renewWindow)),c=new(s())((0,a.$Gr)((0,o.qX)((0,o.JW)(e.contracts.download),e.contracts.period),2));return{autopilotContractSet:t,allowanceMonth:n,amountHosts:r,periodWeeks:i,renewWindowWeeks:l,downloadTBMonth:c,uploadTBMonth:new(s())((0,a.$Gr)((0,o.qX)((0,o.JW)(e.contracts.upload),e.contracts.period),2)),storageTB:(0,o.JW)(new(s())(e.contracts.storage)),prune:e.contracts.prune,allowRedundantIPs:e.hosts.allowRedundantIPs,maxDowntimeHours:new(s())(e.hosts.maxDowntimeHours),minRecentScanFailures:new(s())(e.hosts.minRecentScanFailures),minProtocolVersion:e.hosts.minProtocolVersion||""}}(n),...r?{defaultContractSet:r.default}:c,uploadPackingEnabled:i.enabled,...k({gouging:l,averages:h,hasBeenConfigured:t}),...function(e,t){var n,r,i,l,u,c,d;let f=(null===(n=j.mV.find(t=>t.id===e.currency))||void 0===n?void 0:n.fixed)||6;return{pinningEnabled:e.enabled,pinnedCurrency:e.currency,forexEndpointURL:e.forexEndpointURL,pinnedThreshold:new(s())(e.threshold).times(100),shouldPinAllowance:(null===(r=e.autopilots.autopilot)||void 0===r?void 0:r.allowance.pinned)||!1,allowanceMonthPinned:(0,a.MzJ)((0,o.qX)(new(s())((null===(i=e.autopilots.autopilot)||void 0===i?void 0:i.allowance.value)||0),t||(0,o.mv)(6)),f),shouldPinMaxRPCPrice:null===(l=e.gougingSettingsPins)||void 0===l?void 0:l.maxRPCPrice.pinned,maxRPCPriceMillionPinned:(0,a.MzJ)((0,o.x9)(new(s())(e.gougingSettingsPins.maxRPCPrice.value)),f),shouldPinMaxStoragePrice:null===(u=e.gougingSettingsPins)||void 0===u?void 0:u.maxStorage.pinned,maxStoragePriceTBMonthPinned:(0,a.MzJ)((0,o.dq)(new(s())(e.gougingSettingsPins.maxStorage.value)),f),shouldPinMaxUploadPrice:null===(c=e.gougingSettingsPins)||void 0===c?void 0:c.maxUpload.pinned,maxUploadPriceTBPinned:(0,a.MzJ)((0,o.LK)(new(s())(e.gougingSettingsPins.maxUpload.value)),f),shouldPinMaxDownloadPrice:null===(d=e.gougingSettingsPins)||void 0===d?void 0:d.maxDownload.pinned,maxDownloadPriceTBPinned:(0,a.MzJ)((0,o.LK)(new(s())(e.gougingSettingsPins.maxDownload.value)),f)}}(f,null==n?void 0:n.contracts.period),minShards:new(s())(d.minShards),totalShards:new(s())(d.totalShards)}}var S=n(55329),C=n(92762),M=n(95598),P=n(20248),_=n(89523),O=n(16299),T=n(42082),A=n(66401),N=n(93122),R=n(57969),D=function(e,t,n,r){if(!(0,N.Z)(e))return e;t=(0,T.Z)(t,e);for(var i=-1,a=t.length,o=a-1,l=e;null!=l&&++inull!=e&&""!==e)};return{...n,contracts:{...null==n?void 0:n.contracts,set:r.autopilotContractSet,amount:Math.round(r.amountHosts.toNumber()),allowance:(0,o.qN)((0,o.oc)(r.allowanceMonth,r.periodWeeks)).toString(),period:Math.round((0,o.mv)(r.periodWeeks.toNumber())),renewWindow:Math.round((0,o.mv)(r.renewWindowWeeks.toNumber())),download:Number((0,o.oc)((0,o.xf)(r.downloadTBMonth),r.periodWeeks).toFixed(0)),upload:Number((0,o.oc)((0,o.xf)(r.uploadTBMonth),r.periodWeeks).toFixed(0)),storage:(0,o.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,minProtocolVersion:r.minProtocolVersion}}}(i.network,u,r.autopilot.data):void 0,d=z(u,r.contractSet.data),f={...r.uploadPacking.data,enabled:u.uploadPackingEnabled};return{payloads:{autopilot:c,contractSet:d,uploadPacking:f,gouging:{...r.gouging.data,maxRPCPrice:(0,o.qN)((0,o.ZA)(u.maxRPCPriceMillion)).toString(),maxStoragePrice:(0,o.qN)((0,o.iX)(u.maxStoragePriceTBMonth)).toString(),maxUploadPrice:(0,o.qN)(u.maxUploadPriceTB).toString(),maxDownloadPrice:(0,o.qN)(u.maxDownloadPriceTB).toString(),maxContractPrice:(0,o.qN)(u.maxContractPrice).toString(),hostBlockHeightLeeway:Math.round((null===(t=u.hostBlockHeightLeeway)||void 0===t?void 0:t.toNumber())||0),minPriceTableValidity:Math.round((0,a.ort)((null===(n=u.minPriceTableValidityMinutes)||void 0===n?void 0:n.toNumber())||0)),minAccountExpiry:Math.round((0,a.k9c)(u.minAccountExpiryDays.toNumber())),minMaxEphemeralAccountBalance:(0,o.qN)(u.minMaxEphemeralAccountBalance).toString(),migrationSurchargeMultiplier:u.migrationSurchargeMultiplier.toNumber()},redundancy:{...r.redundancy.data,minShards:u.minShards.toNumber(),totalShards:u.totalShards.toNumber()},pricePinning:{...r.pricePinning.data,enabled:u.pinningEnabled,currency:u.pinnedCurrency,forexEndpointURL:u.forexEndpointURL,threshold:u.pinnedThreshold.div(100).toNumber(),autopilots:{autopilot:{allowance:{pinned:u.shouldPinAllowance,value:(0,o.oc)(u.allowanceMonthPinned,u.periodWeeks||new(s())(6)).toNumber()}}},gougingSettingsPins:{maxStorage:{pinned:u.shouldPinMaxStoragePrice,value:(0,o.iX)(u.maxStoragePriceTBMonthPinned).toNumber()},maxDownload:{pinned:u.shouldPinMaxDownloadPrice,value:(0,o.wf)(u.maxDownloadPriceTBPinned).toNumber()},maxUpload:{pinned:u.shouldPinMaxUploadPrice,value:(0,o.wf)(u.maxUploadPriceTBPinned).toNumber()},maxRPCPrice:{pinned:u.shouldPinMaxRPCPrice,value:(0,o.ZA)(u.maxRPCPriceMillionPinned).toNumber()}}}}}}function B(){let[e,t]=(0,C.Z)("v0/autopilot/syncDefaultContractSet",{defaultValue:!0}),n=(0,S.M6)({config:{swr:{errorRetryCount:0}}}),o=(0,S.KJ)(),l=(0,i.useCallback)(async t=>{let i=n.data||{default:""};try{e&&t!==i.default&&(await o.put({params:{key:"contractset"},payload:z({defaultContractSet:t},n.data)}),n.mutate(),(0,a.OPV)({title:"Default contract set updated",body:(0,r.jsxs)(r.Fragment,{children:["Default contract set has been updated to:"," ",(0,r.jsx)(a.EKh,{children:t}),"."]})}))}catch(e){(0,a.OHV)({title:"Error updating default contract set",body:e.message}),console.log(e)}},[n.data,o,e]);return{shouldSyncDefaultContractSet:e,setShouldSyncDefaultContractSet:t,maybeSyncDefaultContractSet:l}}var I=n(85375),H=n(37606),U=n(56922),W=n(63955),q=n(79381),$=n(89644),K=n.n($);function Y(e){let{minShards:t,totalShards:n}=e;return(0,i.useMemo)(()=>(0,o.aU)(t,n),[t,n])}function X(e){let{form:t}=e,n=t.watch("pinnedCurrency"),r=t.watch("forexEndpointURL"),o=(0,q.ZP)(r&&n?["pricePinningExchangeRate",r,n]:null,async()=>(await K().get("".concat(r,"/").concat(n))).data,{refreshInterval:(0,a.sWj)(5),dedupingInterval:1e4}).data;return(0,i.useMemo)(()=>o&&"number"==typeof o?new(s())(o):void 0,[o])}function G(e){let{form:t}=e,{isAutopilotEnabled:n}=(0,H.q)(),r=Q({form:t}),a=t.watch("storageTB"),o=t.watch("downloadTBMonth"),l=t.watch("uploadTBMonth"),s=Y({minShards:t.watch("minShards"),totalShards:t.watch("totalShards")}),u=X({form:t}),c=(0,i.useMemo)(()=>{if(n){let e=function(e){let{allowanceMonth:t,allowanceFactor:n=1.5,storageTB:r,downloadTBMonth:i,uploadTBMonth:a,redundancyMultiplier:o,storageWeight:l=4,downloadWeight:s=5,uploadWeight:u=1}=e;if(!(null==t?void 0:t.gt(0))||n<=0||!(null==o?void 0:o.gt(0))||!(null==r?void 0:r.gt(0))||!(null==i?void 0:i.gt(0))||!(null==a?void 0:a.gt(0)))return null;let c=t.times(n),d=r.times(o),f=a.times(o),h=c.div(d.times(l).plus(i.times(s)).plus(f.times(u)));return{maxUploadPriceTB:h.times(u),maxDownloadPriceTB:h.times(s),maxStoragePriceTBMonth:h.times(l)}}({allowanceMonth:r,allowanceFactor:1.5,storageTB:a,downloadTBMonth:o,uploadTBMonth:l,redundancyMultiplier:s,storageWeight:4,downloadWeight:5,uploadWeight:1}),t=u?{maxStoragePriceTBMonthPinned:null==e?void 0:e.maxStoragePriceTBMonth.times(u),maxDownloadPriceTBPinned:null==e?void 0:e.maxDownloadPriceTB.times(u),maxUploadPriceTBPinned:null==e?void 0:e.maxUploadPriceTB.times(u)}:{};return{...e,...t}}return null},[n,r,a,o,l,s,u]),d=t.watch("shouldPinMaxStoragePrice"),f=t.watch("shouldPinMaxUploadPrice"),h=t.watch("shouldPinMaxDownloadPrice"),p={};return c?(d?p.maxStoragePriceTBMonthPinned=c.maxStoragePriceTBMonthPinned:p.maxStoragePriceTBMonth=c.maxStoragePriceTBMonth,f?p.maxUploadPriceTBPinned=c.maxUploadPriceTBPinned:p.maxUploadPriceTB=c.maxUploadPriceTB,h?p.maxDownloadPriceTBPinned=c.maxDownloadPriceTBPinned:p.maxDownloadPriceTB=c.maxDownloadPriceTB,p):null}function J(e){let{form:t}=e,n=t.watch("shouldPinMaxStoragePrice"),r=t.watch("shouldPinMaxUploadPrice"),i=t.watch("shouldPinMaxDownloadPrice"),a=t.watch("maxStoragePriceTBMonth"),l=t.watch("maxStoragePriceTBMonthPinned"),s=t.watch("maxDownloadPriceTB"),u=t.watch("maxDownloadPriceTBPinned"),c=t.watch("maxUploadPriceTB"),d=t.watch("maxUploadPriceTBPinned"),f=X({form:t});return(n||i||r)&&!f||n&&!l||i&&!u||r&&!d?null:{maxStoragePriceTBMonth:n?(0,o.gP)(l,f):a,maxDownloadPriceTB:i?(0,o.gP)(u,f):s,maxUploadPriceTB:r?(0,o.gP)(d,f):c}}function Q(e){let{form:t}=e,n=t.watch("shouldPinAllowance"),r=t.watch("allowanceMonth"),i=t.watch("allowanceMonthPinned"),a=X({form:t});return n&&!a?null:n?null==i?void 0:i.div(a):r}var ee=n(47211);function et(e){let{children:t,tip:n,icon:i,iconColor:o,onClick:l,disabled:s}=e;return(0,r.jsx)(a.ua7,{align:"end",content:n,children:(0,r.jsxs)("div",{className:"flex gap-1 items-center relative p-1 -m-1 overflow-hidden",children:[(0,r.jsx)(a.xvT,{color:o,className:"flex relative",children:i}),(0,r.jsx)(a.zxk,{size:"small",onClick:l,disabled:s,className:"flex-1",children:t})]})})}function en(e){let{children:t,tip:n,icon:i,iconColor:o}=e;return(0,r.jsx)(a.ua7,{align:"end",content:n,children:(0,r.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,r.jsx)(a.xvT,{color:o,className:"flex relative",children:i}),t]})})}function er(e){let{form:t,priceInSiacoin:n,units:i}=e,l=t.watch("minShards"),s=t.watch("totalShards"),u=Y({minShards:l,totalShards:s});return n&&l&&s?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.Z0O,{}),(0,r.jsx)(en,{tip:(0,r.jsxs)(r.Fragment,{children:["Price per ",i," when factoring in the configured"," ",null==l?void 0:l.toString()," of ",null==s?void 0:s.toString()," redundancy."]}),icon:(0,r.jsx)(ee.DlU,{}),children:(0,r.jsx)(a.ho9,{font:"sans",variant:"value",size:"12",fixed:0,showTooltip:!1,extendedSuffix:"/".concat(i," with redundancy"),value:(0,o.qN)(n).times(u)})})]}):null}let ei=(0,r.jsxs)(r.Fragment,{children:["Set suggested max price that fits the current allowance spending target. This suggested value takes into account the current estimated usage and keeps storage, upload, and download upload prices proportional to each other according to the following weights: ",4,"x storage, ",1,"x upload, ",5,"x download."]}),ea=(0,r.jsxs)(r.Fragment,{children:["Set suggested max prices for storage, upload, and download that fit the current allowance spending target. The suggested values take into account the current estimated usage and keeps storage, upload, and download upload prices proportional to each other according to the following weights:"," ",4,"x storage, ",1,"x upload, ",5,"x download."]}),eo=(0,r.jsx)(r.Fragment,{children:"The system found a recommendation that would increase the number of usable hosts."});function el(e){let{form:t,fields:n}=e,l=G({form:t}),u=function(e){let{form:t}=e,n=t.watch("minShards"),r=t.watch("totalShards"),i=t.watch("storageTB"),a=t.watch("downloadTBMonth"),l=t.watch("uploadTBMonth"),s=t.watch("shouldPinAllowance"),u=Y({minShards:n,totalShards:r}),c=J({form:t}),d=X({form:t});if(!c)return null;let{maxStoragePriceTBMonth:f,maxUploadPriceTB:h,maxDownloadPriceTB:p}=c,m=function(e){let{maxStoragePriceTBMonth:t,maxDownloadPriceTB:n,maxUploadPriceTB:r,allowanceFactor:i=1.5,storageTB:a,downloadTBMonth:l,uploadTBMonth:s,redundancyMultiplier:u}=e;return(null==t?void 0:t.gt(0))&&(null==n?void 0:n.gt(0))&&(null==r?void 0:r.gt(0))&&!(i<=0)&&(null==u?void 0:u.gt(0))&&(null==a?void 0:a.gt(0))&&(null==l?void 0:l.gt(0))&&(null==s?void 0:s.gt(0))?(0,o.k4)({maxStoragePriceTBMonth:t,maxDownloadPriceTB:n,maxUploadPriceTB:r,storageTB:a,downloadTBMonth:l,uploadTBMonth:s,redundancyMultiplier:u}).div(i).integerValue():null}({maxStoragePriceTBMonth:f,maxDownloadPriceTB:p,maxUploadPriceTB:h,storageTB:i,downloadTBMonth:a,uploadTBMonth:l,redundancyMultiplier:u}),g={};if(!m)return null;if(s){if(!d)return null;g.allowanceMonthPinned=m.times(d)}else g.allowanceMonth=m;return g}({form:t}),c=J({form:t}),d=Q({form:t}),f=t.watch("storageTB"),h=t.watch("downloadTBMonth"),p=t.watch("uploadTBMonth"),m=Y({minShards:t.watch("minShards"),totalShards:t.watch("totalShards")}),g=(0,i.useMemo)(()=>{if(!c)return!1;let{maxStoragePriceTBMonth:e,maxUploadPriceTB:t,maxDownloadPriceTB:n}=c;return(null==e?void 0:e.gt(0))&&(null==t?void 0:t.gt(0))&&(null==n?void 0:n.gt(0))&&(null==f?void 0:f.gt(0))&&(null==h?void 0:h.gt(0))&&(null==p?void 0:p.gt(0))},[c,f,h,p]),v=(0,i.useMemo)(()=>null==d?void 0:d.gt(0),[d]),y=(0,i.useMemo)(()=>g&&v,[g,v]),x=(0,i.useMemo)(()=>{if(!y)return new(s())(0);let{maxStoragePriceTBMonth:e,maxUploadPriceTB:t,maxDownloadPriceTB:n}=c,r=(0,o.k4)({maxStoragePriceTBMonth:e,maxDownloadPriceTB:n,maxUploadPriceTB:t,storageTB:f,downloadTBMonth:h,uploadTBMonth:p,redundancyMultiplier:m}),i=d.times(1.5);return i.minus(r).abs().div(i).times(100)},[d,c,f,h,p,m,y]);return(0,r.jsxs)(r.Fragment,{children:[y?x.gt(1)?(0,r.jsx)(en,{icon:(0,r.jsx)(ee.Gu6,{}),iconColor:"amber",children:(0,r.jsx)(a.xvT,{size:"12",ellipsis:!0,children:"Current pricing may not fit allowance"})}):(0,r.jsx)(en,{icon:(0,r.jsx)(ee.Y3p,{}),iconColor:"green",children:(0,r.jsx)(a.xvT,{size:"12",ellipsis:!0,children:"Current pricing fits allowance"})}):(0,r.jsx)(en,{icon:(0,r.jsx)(ee.O5t,{}),iconColor:"subtle",children:(0,r.jsx)(a.xvT,{size:"12",ellipsis:!0,color:"subtle",children:"Set allowance and pricing for feedback"})}),(0,r.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,r.jsx)(et,{icon:(0,r.jsx)(ee.JPh,{}),iconColor:"contrast",disabled:!(null==d?void 0:d.gt(0)),tip:ea,onClick:()=>{(0,a.JMs)({form:t,fields:n,values:l,options:!0})},children:"Set max prices to fit current allowance"}),(0,r.jsx)(et,{icon:(0,r.jsx)(ee.YZj,{}),iconColor:"contrast",disabled:!c,tip:"Set the allowance to fit the current max prices for storage, upload, and download.",onClick:()=>{u&&(0,a.JMs)({form:t,fields:n,values:u,options:!0})},children:"Set allowance to fit current max prices"})]})]})}function es(e){var t;let{form:n,fields:i,recommendations:l}=e,s=G({form:n}),u=n.watch("maxStoragePriceTBMonth"),c=null==l?void 0:null===(t=l.maxStoragePriceTBMonth)||void 0===t?void 0:t.targetValue;return(0,r.jsxs)(r.Fragment,{children:[s&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Fit current allowance",tip:ei,decimalsLimit:0,value:(0,o.qN)(s.maxStoragePriceTBMonth),onClick:()=>{(0,a.fsB)({form:n,fields:i,name:"maxStoragePriceTBMonth",value:s.maxStoragePriceTBMonth,options:!0})}}),c&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Match with more hosts",tip:eo,decimalsLimit:0,value:(0,o.qN)(c),onClick:()=>(0,a.fsB)({form:n,fields:i,name:"maxStoragePriceTBMonth",value:c,options:!0})}),(0,r.jsx)(er,{form:n,priceInSiacoin:u,units:"TB/month"})]})}function eu(e){var t;let{form:n,fields:i,recommendations:l}=e,s=G({form:n}),u=X({form:n}),c=n.watch("maxStoragePriceTBMonthPinned"),d=c&&u?(0,o.gP)(c,u):null,f=(null==s?void 0:s.maxStoragePriceTBMonthPinned)&&u?(0,o.gP)(s.maxStoragePriceTBMonthPinned,u):null,h=null==l?void 0:null===(t=l.maxStoragePriceTBMonthPinned)||void 0===t?void 0:t.targetValue,p=h&&u?(0,o.gP)(h,u):null;return(0,r.jsxs)(r.Fragment,{children:[s&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Fit current allowance",tip:ei,decimalsLimit:0,value:(0,o.qN)(f),onClick:()=>{(0,a.fsB)({form:n,fields:i,name:"maxStoragePriceTBMonthPinned",value:s.maxStoragePriceTBMonthPinned,options:!0})}}),p&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Match with more hosts",tip:eo,decimalsLimit:0,value:(0,o.qN)(p),onClick:()=>(0,a.fsB)({form:n,fields:i,name:"maxStoragePriceTBMonthPinned",value:h,options:!0})}),(0,r.jsx)(er,{form:n,priceInSiacoin:d,units:"TB/month"})]})}function ec(e){var t;let{form:n,fields:i,recommendations:l}=e,s=G({form:n}),u=n.watch("maxUploadPriceTB"),c=null==l?void 0:null===(t=l.maxUploadPriceTB)||void 0===t?void 0:t.targetValue;return(0,r.jsxs)(r.Fragment,{children:[s&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Fit current allowance",tip:eo,decimalsLimit:0,value:(0,o.qN)(s.maxUploadPriceTB),onClick:()=>{(0,a.fsB)({form:n,fields:i,name:"maxUploadPriceTB",value:s.maxUploadPriceTB,options:!0})}}),c&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Match with more hosts",tip:ei,decimalsLimit:0,value:(0,o.qN)(c),onClick:()=>(0,a.fsB)({form:n,fields:i,name:"maxUploadPriceTB",value:c,options:!0})}),(0,r.jsx)(er,{form:n,priceInSiacoin:u,units:"TB"})]})}function ed(e){var t;let{form:n,fields:i,recommendations:l}=e,s=G({form:n}),u=X({form:n}),c=n.watch("maxUploadPriceTBPinned"),d=c&&u?(0,o.gP)(c,u):null,f=(null==s?void 0:s.maxUploadPriceTBPinned)&&u?(0,o.gP)(s.maxUploadPriceTBPinned,u):null,h=null==l?void 0:null===(t=l.maxUploadPriceTBPinned)||void 0===t?void 0:t.targetValue,p=h&&u?(0,o.gP)(h,u):null;return(0,r.jsxs)(r.Fragment,{children:[s&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Fit current allowance",tip:ei,decimalsLimit:0,value:(0,o.qN)(f),onClick:()=>{(0,a.fsB)({form:n,fields:i,name:"maxUploadPriceTBPinned",value:s.maxUploadPriceTBPinned,options:!0})}}),p&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Match with more hosts",tip:eo,decimalsLimit:0,value:(0,o.qN)(p),onClick:()=>(0,a.fsB)({form:n,fields:i,name:"maxUploadPriceTBPinned",value:h,options:!0})}),(0,r.jsx)(er,{form:n,priceInSiacoin:d,units:"TB"})]})}function ef(e){var t;let{form:n,fields:i,recommendations:l}=e,s=G({form:n}),u=null==l?void 0:null===(t=l.maxDownloadPriceTB)||void 0===t?void 0:t.targetValue;return(0,r.jsxs)(r.Fragment,{children:[s&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Fit current allowance",tip:ei,decimalsLimit:0,value:(0,o.qN)(s.maxDownloadPriceTB),onClick:()=>{(0,a.fsB)({form:n,fields:i,name:"maxDownloadPriceTB",value:s.maxDownloadPriceTB,options:!0})}}),u&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Match with more hosts",tip:eo,decimalsLimit:0,value:(0,o.qN)(u),onClick:()=>(0,a.fsB)({form:n,fields:i,name:"maxDownloadPriceTB",value:u,options:!0})})]})}function eh(e){var t;let{form:n,fields:i,recommendations:l}=e,s=G({form:n}),u=X({form:n}),c=(null==s?void 0:s.maxDownloadPriceTBPinned)&&u?(0,o.gP)(s.maxDownloadPriceTBPinned,u):null,d=null==l?void 0:null===(t=l.maxDownloadPriceTBPinned)||void 0===t?void 0:t.targetValue,f=d&&u?(0,o.gP)(d,u):null;return(0,r.jsxs)(r.Fragment,{children:[s&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Fit current allowance",tip:ei,decimalsLimit:0,value:(0,o.qN)(c),onClick:()=>{(0,a.fsB)({form:n,fields:i,name:"maxDownloadPriceTBPinned",value:s.maxDownloadPriceTBPinned,options:!0})}}),f&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Match with more hosts",tip:eo,decimalsLimit:0,value:(0,o.qN)(f),onClick:()=>(0,a.fsB)({form:n,fields:i,name:"maxDownloadPriceTBPinned",value:d,options:!0})})]})}function ep(e){var t;let{form:n,fields:i,recommendations:l}=e,s=null==l?void 0:null===(t=l.maxRPCPriceMillion)||void 0===t?void 0:t.targetValue;return s&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Match with more hosts",tip:eo,decimalsLimit:0,value:(0,o.qN)(s),onClick:()=>(0,a.fsB)({form:n,fields:i,name:"maxRPCPriceMillion",value:s,options:!0})})}function em(e){var t;let{form:n,fields:i,recommendations:l}=e,s=X({form:n}),u=null==l?void 0:null===(t=l.maxRPCPriceMillionPinned)||void 0===t?void 0:t.targetValue,c=u&&s?(0,o.gP)(u,s):null;return c&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Match with more hosts",tip:eo,decimalsLimit:0,value:(0,o.qN)(c),onClick:()=>(0,a.fsB)({form:n,fields:i,name:"maxRPCPriceMillionPinned",value:u,options:!0})})}function eg(e){var t,n,i,o,l,u;let{advancedDefaults:c,averagesSc:d,averagesFiat:f,recommendations:h,isAutopilotEnabled:p,configViewMode:m,validationContext:g}=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:!p,validation:{validate:{required:ey(g)}}},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:!p,validation:{validate:{required:ey(g)}}},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:!p,validation:{validate:{required:ey(g)}}},shouldPinAllowance:{title:"",description:"",type:"boolean",category:"storage",validation:{}},allowanceMonth:{type:"siacoin",category:"storage",title:"Allowance",description:(0,r.jsx)(r.Fragment,{children:"The amount you would like to spend per month. Choose whether to set your allowance in siacoin per month or to pin the siacoin price to a fixed fiat value per month."}),units:"SC/month",decimalsLimitSc:6,hidden:!p,validation:{validate:{required:ey(g)}},after:el},allowanceMonthPinned:{title:"",description:"",units:"/month",type:"fiat",category:"storage",validation:{validate:{required:eb(g,(e,t)=>!t.shouldPinAllowance||!!e||"required"),currency:eb(g,(e,t)=>!!t.pinnedCurrency||"must select a pinned currency"),range:eb(g,(e,t)=>!t.shouldPinAllowance||(null==e?void 0:e.gt(0))||"must be greater than 0")}},after:el},periodWeeks:{type:"number",category:"storage",title:"Period",description:(0,r.jsx)(r.Fragment,{children:"The length of the storage contracts."}),units:"weeks",suggestion:null==c?void 0:c.periodWeeks,suggestionTip:"Typically ".concat(null==c?void 0:c.periodWeeks," weeks."),hidden:!p||"basic"===m,validation:{validate:{required:ex(g)}}},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==c?void 0:c.renewWindowWeeks,suggestionTip:"Typically ".concat(null==c?void 0:c.renewWindowWeeks," weeks."),hidden:!p||"basic"===m,validation:{validate:{required:ex(g)}}},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==c?void 0:c.amountHosts,suggestionTip:"Typically ".concat(null==c?void 0:c.amountHosts," hosts."),hidden:!p||"basic"===m,validation:{validate:{required:ex(g)}}},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==c?void 0:c.autopilotContractSet,suggestion:null==c?void 0:c.autopilotContractSet,suggestionTip:(0,r.jsxs)(r.Fragment,{children:["The default contract set is"," ",(0,r.jsx)(a.EKh,{children:null==c?void 0:c.autopilotContractSet}),"."]}),hidden:!p||"basic"===m,validation:{validate:{required:ex(g)}}},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==c?void 0:c.prune,suggestionTip:(0,r.jsxs)(r.Fragment,{children:["The default value is ",(0,r.jsx)(a.EKh,{children:null==c?void 0:c.prune}),"."]}),hidden:!p||"basic"===m,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==c?void 0:c.allowRedundantIPs,suggestionTip:"Defaults to ".concat((null==c?void 0:c.allowRedundantIPs)?"on":"off","."),hidden:!p||"basic"===m,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==c?void 0:c.maxDowntimeHours,suggestionTip:"Defaults to ".concat(null==c?void 0:c.maxDowntimeHours.toNumber().toLocaleString()," which is ").concat((0,a.$Gr)(new(s())((0,a.XAn)(null==c?void 0:c.maxDowntimeHours.toNumber())),1)," days."),hidden:!p||"basic"===m,validation:{validate:{required:ex(g)}}},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==c?void 0:c.minRecentScanFailures,suggestionTip:"Defaults to ".concat(null==c?void 0:c.minRecentScanFailures.toNumber(),"."),hidden:!p||"basic"===m,validation:{validate:{required:ex(g)}}},minProtocolVersion:{type:"text",category:"hosts",title:"Min protocol version",description:(0,r.jsx)(r.Fragment,{children:"The minimum protocol version that autopilot will consider when forming contracts with hosts."}),suggestion:null==c?void 0:c.minProtocolVersion,suggestionTip:"Defaults to ".concat(null==c?void 0:c.minProtocolVersion,"."),hidden:!p||"basic"===m,validation:{validate:{required:ex(g),version:ex(g,e=>/^\d+\.\d+\.\d+$/.test(e)||"must be a valid version number")}}},defaultContractSet:{category:"contractset",type:"text",title:"Default contract set",placeholder:null==c?void 0:c.defaultContractSet,suggestion:null==c?void 0:c.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:"basic"===m,validation:{validate:{required:ev(g)}}},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:"basic"===m,validation:{}},shouldPinMaxStoragePrice:{title:"",description:"",type:"boolean",category:"gouging",validation:{}},maxStoragePriceTBMonth:{category:"gouging",type:"siacoin",title:"Max storage price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed price a host is allowed to charge to store 1 TB worth of data per month. Choose whether to set the price in siacoin per TB per month or to pin the siacoin price to a fixed fiat value per TB per month."}),units:"SC/TB/month",average:null==d?void 0:d.storageAverage,averageTip:"Averages provided by Sia Central.",decimalsLimitSc:6,validation:{required:"required"},after:e=>{let{form:t,fields:n}=e;return(0,r.jsx)(es,{form:t,fields:n,recommendations:h})}},maxStoragePriceTBMonthPinned:{title:"",description:"",units:"/TB/month",type:"fiat",category:"gouging",average:null==f?void 0:f.storageAverage,averageTip:"Averages provided by Sia Central.",validation:{validate:{required:eb(g,(e,t)=>!t.shouldPinMaxStoragePrice||!!e||"required"),disabled:(e,t)=>{if(!t.pinningEnabled&&t.shouldPinMaxStoragePrice)return"please enable pinning and select a currency"},currency:eb(g,(e,t)=>!!t.pinnedCurrency||"must select a pinned currency"),range:eb(g,(e,t)=>!t.shouldPinMaxStoragePrice||(null==e?void 0:e.gt(0))||"must be greater than 0")}},after:e=>{let{form:t,fields:n}=e;return(0,r.jsx)(eu,{form:t,fields:n,recommendations:h})}},shouldPinMaxUploadPrice:{title:"",description:"",type:"boolean",category:"gouging",validation:{}},maxUploadPriceTB:{category:"gouging",type:"siacoin",title:"Max upload price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed price a host is allowed to charge for uploading 1 TB worth of data. Choose whether to set the price in siacoin per TB or to pin the siacoin price to a fixed fiat value per TB."}),units:"SC/TB",average:null==d?void 0:d.uploadAverage,averageTip:"Averages provided by Sia Central.",decimalsLimitSc:6,validation:{required:"required"},after:e=>{let{form:t,fields:n}=e;return(0,r.jsx)(ec,{form:t,fields:n,recommendations:h})}},maxUploadPriceTBPinned:{title:"",description:"",units:"/TB",type:"fiat",average:null==f?void 0:f.uploadAverage,averageTip:"Averages provided by Sia Central.",category:"gouging",validation:{validate:{required:eb(g,(e,t)=>!t.shouldPinMaxUploadPrice||!!e||"required"),currency:eb(g,(e,t)=>!!t.pinnedCurrency||"must select a pinned currency"),range:eb(g,(e,t)=>!t.shouldPinMaxUploadPrice||(null==e?void 0:e.gt(0))||"must be greater than 0")}},after:e=>{let{form:t,fields:n}=e;return(0,r.jsx)(ed,{form:t,fields:n,recommendations:h})}},shouldPinMaxDownloadPrice:{title:"",description:"",type:"boolean",category:"gouging",validation:{}},maxDownloadPriceTB:{category:"gouging",type:"siacoin",title:"Max download price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed price to download 1 TB. Choose whether to set the price in siacoin per TB or to pin the siacoin price to a fixed fiat value per TB."}),units:"SC/TB",average:null==d?void 0:d.downloadAverage,averageTip:"Averages provided by Sia Central.",decimalsLimitSc:6,validation:{required:"required"},after:e=>{let{form:t,fields:n}=e;return(0,r.jsx)(ef,{form:t,fields:n,recommendations:h})}},maxDownloadPriceTBPinned:{title:"",description:"",units:"/TB",type:"fiat",average:null==f?void 0:f.downloadAverage,averageTip:"Averages provided by Sia Central.",category:"gouging",validation:{validate:{required:eb(g,(e,t)=>!t.shouldPinMaxDownloadPrice||!!e||"required"),currency:eb(g,(e,t)=>!!t.pinnedCurrency||"must select a pinned currency"),range:eb(g,(e,t)=>!t.shouldPinMaxDownloadPrice||(null==e?void 0:e.gt(0))||"must be greater than 0")}},after:e=>{let{form:t,fields:n}=e;return(0,r.jsx)(eh,{form:t,fields:n,recommendations:h})}},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:null==d?void 0:d.contractAverage,averageTip:"Averages provided by Sia Central.",decimalsLimitSc:6,tipsDecimalsLimitSc:3,hidden:"basic"===m,suggestionLabel:"Match with more hosts",suggestion:null===(t=h.maxContractPrice)||void 0===t?void 0:t.targetValue,suggestionTip:"This value will help you match with more hosts.",validation:{validate:{required:ev(g)}}},shouldPinMaxRPCPrice:{title:"",description:"",type:"boolean",category:"gouging",validation:{}},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. Choose whether to set the price in siacoin per million calls or to pin the siacoin price to a fixed fiat value per million calls."}),units:"SC/million",decimalsLimitSc:6,hidden:"basic"===m,average:null==d?void 0:d.rpcAverage,averageTip:"Averages provided by Sia Central.",suggestionTip:"This value will help you match with more hosts.",validation:{validate:{required:ev(g)}},after:e=>{let{form:t,fields:n}=e;return(0,r.jsx)(ep,{form:t,fields:n,recommendations:h})}},maxRPCPriceMillionPinned:{title:"",description:"",units:"/million",type:"fiat",category:"gouging",average:null==f?void 0:f.rpcAverage,averageTip:"Averages provided by Sia Central.",validation:{validate:{required:eb(g,(e,t)=>!t.shouldPinMaxRPCPrice||!!e||"required"),currency:eb(g,(e,t)=>!!t.pinnedCurrency||"must select a pinned currency"),range:eb(g,(e,t)=>!t.shouldPinMaxRPCPrice||(null==e?void 0:e.gt(0))||"must be greater than 0")}},after:e=>{let{form:t,fields:n}=e;return(0,r.jsx)(em,{form:t,fields:n,recommendations:h})}},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,...h.hostBlockHeightLeeway?{suggestionLabel:"Match with more hosts",suggestion:null===(n=h.hostBlockHeightLeeway)||void 0===n?void 0:n.targetValue,suggestionTip:"This value will help you match with more hosts."}:{suggestion:null==c?void 0:c.hostBlockHeightLeeway,suggestionTip:"The recommended value is 6 blocks."},hidden:"basic"===m,validation:{validate:{required:ev(g),min:ev(g,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:"basic"===m,suggestionLabel:"Match with more hosts",suggestion:null===(i=h.minPriceTableValidityMinutes)||void 0===i?void 0:i.targetValue,suggestionTip:"This value will help you match with more hosts.",validation:{validate:{required:ev(g),min:ev(g,e=>new(s())(e).gte((0,a.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:"basic"===m,suggestionLabel:"Match with more hosts",suggestion:null===(o=h.minAccountExpiryDays)||void 0===o?void 0:o.targetValue,suggestionTip:"This value will help you match with more hosts.",validation:{validate:{required:ev(g),min:ev(g,e=>new(s())(e).gte((0,a.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:"basic"===m,suggestionLabel:"Match with more hosts",suggestion:null===(l=h.minMaxEphemeralAccountBalance)||void 0===l?void 0:l.targetValue,suggestionTip:"This value will help you match with more hosts.",validation:{validate:{required:ev(g),min:ev(g,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."}),...h.migrationSurchargeMultiplier?{suggestionLabel:"Match with more hosts",suggestion:null===(u=h.migrationSurchargeMultiplier)||void 0===u?void 0:u.targetValue,suggestionTip:"This value will help you match with more hosts."}:{suggestion:new(s())(10),suggestionTip:"The default multiplier is 10x the download price."},hidden:"basic"===m,validation:{validate:{required:ev(g)}}},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==c?void 0:c.minShards,suggestionTip:"Typically ".concat(null==c?void 0:c.minShards," shards."),units:"shards",hidden:"basic"===m,validation:{validate:{required:ev(g),min:ev(g,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==c?void 0:c.totalShards,suggestionTip:"Typically ".concat(null==c?void 0:c.totalShards," shards."),units:"shards",hidden:"basic"===m,validation:{validate:{required:ev(g),gteMinShards:ev(g,(e,t)=>new(s())(e).gte(t.minShards)||"must be at least equal to min shards"),max:ev(g,e=>new(s())(e).lt(256)||"must be less than 256")}}},pinningEnabled:{category:"pinning",type:"boolean",title:"Pinning",description:"Pinning allows you to set a fixed fiat price for each supported field. Pinning is available for allowance and maximum price fields.",validation:{}},pinnedCurrency:{category:"pinning",title:"Pinned currency",description:"Currency to use for fields where price pinning is enabled.",type:"select",options:[...j.mV.map(e=>{let{id:t,label:n}=e;return{label:n,value:t}}),{label:"none",value:""}],validation:{validate:{required:eb(g)}}},pinnedThreshold:{category:"pinning",title:"Pinned currency change threshold",type:"number",suggestionTip:"A threshold of 2% is recommended.",suggestion:new(s())(2),units:"%",decimalsLimit:0,description:(0,r.jsx)(r.Fragment,{children:"Percentage that controls the minimum change in exchange rate that will trigger an update to pinned prices. This prevents the host from changing prices too often."}),validation:{validate:{required:eb(g),max:eb(g,e=>new(s())(e).lte(100)||"must be at most 100%"),min:eb(g,e=>new(s())(e).gte(0)||"must be at least 0%")}}},forexEndpointURL:{category:"pinning",type:"text",title:"Forex endpoint URL",placeholder:"https://api.siascan.com/exchange-rate/siacoin",suggestion:"https://api.siascan.com/exchange-rate/siacoin",suggestionTip:"SiaScan provides an exchange rate endpoint.",description:(0,r.jsxs)(a.xvT,{className:"flex flex-col gap-2",children:[(0,r.jsx)(a.xvT,{color:"subtle",size:"14",children:"Endpoint for fetching exchange rates. The endpoint URL should allow appending a currency code to the URL and the endpoint response should be a single number representing the exchange rate. For example, the SiaScan exchange rate endpoint:"}),(0,r.jsx)(a.xvT,{color:"contrast",children:"https://api.siascan.com/exchange-rate/siacoin"}),(0,r.jsx)(a.rUS,{color:"subtle",target:"_blank",href:"https://api.siascan.com/exchange-rate/siacoin/usd",children:"https://api.siascan.com/exchange-rate/siacoin/usd"}),(0,r.jsx)(a.rUS,{color:"subtle",target:"_blank",href:"https://api.siascan.com/exchange-rate/siacoin/jpy",children:"https://api.siascan.com/exchange-rate/siacoin/jpy"})]}),validation:{validate:{required:eb(g)}}}}}function ev(e,t){return(n,r)=>"advanced"!==e.configViewMode||(t?t(n,r):!!n||"required")}function ey(e,t){return(n,r)=>!e.isAutopilotEnabled||(t?t(n,r):!!n||"required")}function ex(e,t){return(n,r)=>!e.isAutopilotEnabled||"advanced"!==e.configViewMode||(t?t(n,r):!!n||"required")}function eb(e,t){return(n,r)=>!e.pinningEnabled||(t?t(n,r):!!n||"required")}let ew=eg({validationContext:{isAutopilotEnabled:!0,configViewMode:"basic",pinningEnabled:!1},isAutopilotEnabled:!0,configViewMode:"basic",maxStoragePriceTBMonth:new(s())(0),maxUploadPriceTB:new(s())(0),minShards:new(s())(0),totalShards:new(s())(0),redundancyMultiplier:new(s())(0),recommendations:{}}),ej={maxStoragePriceTBMonth:"maxStoragePriceTBMonthGroup",maxDownloadPriceTB:"maxDownloadPriceTBGroup",maxUploadPriceTB:"maxUploadPriceTBGroup",maxRPCPriceMillion:"maxRPCPriceMillionGroup",maxStoragePriceTBMonthPinned:"maxStoragePriceTBMonthGroup",maxUploadPriceTBPinned:"maxUploadPriceTBGroup",maxDownloadPriceTBPinned:"maxDownloadPriceTBGroup",maxRPCPriceMillionPinned:"maxRPCPriceMillionGroup",maxContractPrice:"maxContractPrice",hostBlockHeightLeeway:"hostBlockHeightLeeway",minPriceTableValidityMinutes:"minPriceTableValidityMinutes",minAccountExpiryDays:"minAccountExpiryDays",minMaxEphemeralAccountBalance:"minMaxEphemeralAccountBalance",migrationSurchargeMultiplier:"migrationSurchargeMultiplier"},ek={maxStoragePriceTBMonth:"max storage price",maxDownloadPriceTB:"max download price",maxUploadPriceTB:"max upload price",maxRPCPriceMillion:"max RPC price",maxStoragePriceTBMonthPinned:"max storage price",maxUploadPriceTBPinned:"max upload price",maxDownloadPriceTBPinned:"max download price",maxRPCPriceMillionPinned:"max RPC price",maxContractPrice:"max contract price",hostBlockHeightLeeway:"host block height leeway",minPriceTableValidityMinutes:"min price table validity",minAccountExpiryDays:"min account expiry",minMaxEphemeralAccountBalance:"min max ephemeral account balance",migrationSurchargeMultiplier:"migration surcharge multiplier"},eE={autopilotContractSet:"",amountHosts:new(s())(0),shouldPinAllowance:!1,allowanceMonth:new(s())(0),allowanceMonthPinned:new(s())(0),periodWeeks:new(s())(0),renewWindowWeeks:new(s())(0),downloadTBMonth:new(s())(0),uploadTBMonth:new(s())(0),storageTB:new(s())(0),prune:!1,allowRedundantIPs:!1,maxDowntimeHours:new(s())(0),minRecentScanFailures:new(s())(0),minProtocolVersion:"",defaultContractSet:"",uploadPackingEnabled:!0,shouldPinMaxRPCPrice:!1,maxRPCPriceMillion:new(s())(0),maxRPCPriceMillionPinned:new(s())(0),shouldPinMaxStoragePrice:!1,maxStoragePriceTBMonth:new(s())(0),maxStoragePriceTBMonthPinned:new(s())(0),maxContractPrice:new(s())(0),shouldPinMaxDownloadPrice:!1,maxDownloadPriceTB:new(s())(0),maxDownloadPriceTBPinned:new(s())(0),shouldPinMaxUploadPrice:!1,maxUploadPriceTB:new(s())(0),maxUploadPriceTBPinned:new(s())(0),hostBlockHeightLeeway:new(s())(0),minPriceTableValidityMinutes:new(s())(0),minAccountExpiryDays:new(s())(0),minMaxEphemeralAccountBalance:new(s())(0),migrationSurchargeMultiplier:new(s())(0),minShards:new(s())(0),totalShards:new(s())(0),pinningEnabled:!1,forexEndpointURL:"",pinnedCurrency:"usd",pinnedThreshold:new(s())(0)},eS=(0,i.createContext)({}),eC=()=>(0,i.useContext)(eS);function eM(e){let{children:t}=e,n=function(){let{autopilotState:e,autopilot:t,contractSet:n,gouging:r,redundancy:l,uploadPacking:u,pricePinning:c,averages:d,shouldSyncDefaultContractSet:f,setShouldSyncDefaultContractSet:h,appSettings:m}=function(){let e=(0,H.q)(),t=(0,S.e$)({config:{swr:{errorRetryCount:0,refreshInterval:(0,a.sWj)(1)}}}),n=(0,S.M6)({config:{swr:{errorRetryCount:0,refreshInterval:(0,a.sWj)(1)}}}),r=(0,S.Kh)({config:{swr:{refreshInterval:(0,a.sWj)(1)}}}),i=(0,S.fz)({config:{swr:{refreshInterval:(0,a.sWj)(1)}}}),o=(0,S.au)({config:{swr:{refreshInterval:(0,a.sWj)(1)}}}),l=(0,S.HA)({config:{swr:{refreshInterval:(0,a.sWj)(1)}}}),s=(0,I.BF)({config:{swr:{revalidateOnFocus:!1}}}),{shouldSyncDefaultContractSet:u,setShouldSyncDefaultContractSet:c,maybeSyncDefaultContractSet:d}=B(),f=(0,j.Hv)();return{autopilotState:e.autopilot.state,autopilot:t,contractSet:n,gouging:r,redundancy:i,uploadPacking:o,pricePinning:l,averages:s,shouldSyncDefaultContractSet:u,setShouldSyncDefaultContractSet:c,maybeSyncDefaultContractSet:d,appSettings:f}}(),g=(0,i.useMemo)(()=>({autopilotState:{data:e.data,error:e.error},autopilot:{data:t.data,error:t.error},contractSet:{data:n.data,error:n.error},uploadPacking:{data:u.data,error:u.error},gouging:{data:r.data,error:r.error},redundancy:{data:l.data,error:l.error},pricePinning:{data:c.data,error:c.error},averages:{data:d.data,error:d.error},appSettings:{settings:{siaCentral:m.settings.siaCentral}}}),[e.data,e.error,t.data,t.error,n.data,n.error,u.data,u.error,r.data,r.error,l.data,l.error,c.data,c.error,d.data,d.error,m.settings.siaCentral]),{form:v,storageTB:y,evaluation:x,redundancyMultiplier:M,fields:P,configViewMode:_,setConfigViewMode:O}=function(e){let{resources:t}=e,n=(0,W.cI)({mode:"all",defaultValues:p}),r=n.watch("maxStoragePriceTBMonth"),l=n.watch("maxDownloadPriceTB"),u=n.watch("maxUploadPriceTB"),c=n.watch("storageTB"),d=n.watch("downloadTBMonth"),f=n.watch("uploadTBMonth"),h=n.watch("minShards"),m=n.watch("totalShards"),g=n.watch("pinningEnabled"),v=(0,i.useMemo)(()=>(0,o.aU)(h,m),[h,m]),{averagesSc:y,averagesFiat:x}=function(e){let{form:t}=e,n=(0,I.BF)({config:{swr:{revalidateOnFocus:!1}}}),r=(0,i.useMemo)(()=>n.data?new(s())((0,o.dq)((0,o.ll)(n.data.settings.storage_price)).toFixed(0)):void 0,[n.data]),a=(0,i.useMemo)(()=>n.data?new(s())((0,o.LK)((0,o.ll)(n.data.settings.upload_price)).toFixed(0)):void 0,[n.data]),l=(0,i.useMemo)(()=>n.data?new(s())((0,o.LK)((0,o.ll)(n.data.settings.download_price)).toFixed(0)):void 0,[n.data]),u=(0,i.useMemo)(()=>n.data?new(s())((0,o.ll)(n.data.settings.contract_price).toFixed(0)):void 0,[n.data]),c=(0,i.useMemo)(()=>n.data?(0,o.x9)((0,o.ll)(n.data.settings.base_rpc_price)):void 0,[n.data]),d=X({form:t});return{averagesSc:(0,i.useMemo)(()=>n.data?{storageAverage:r,uploadAverage:a,downloadAverage:l,contractAverage:u,rpcAverage:c}:null,[n.data,r,a,l,u,c]),averagesFiat:(0,i.useMemo)(()=>n.data&&d?{storageAverage:r.times(d),uploadAverage:a.times(d),downloadAverage:l.times(d),contractAverage:u.times(d),rpcAverage:c.times(d)}:null,[n.data,d,r,a,l,u,c])}}({form:n}),{isAutopilotEnabled:E}=(0,H.q)(),[M,P]=(0,C.Z)("v0/config/mode",{defaultValue:"basic"});(0,i.useEffect)(()=>{n.trigger()},[M]);let _=function(e){var t,n,r,l,s,u,c,d,f;let{form:h,resources:p,isAutopilotEnabled:m}=e,g=h.watch(),v=(0,S.d_)(),y=(0,i.useMemo)(()=>!!(m&&w(p))&&!!h.formState.isValid&&!!v.data,[m,h.formState.isValid,p,v.data]),x=Q({form:h}),E=J({form:h}),C=(0,i.useMemo)(()=>x?{allowanceMonth:x,...E}:E,[x,E]),M=(0,i.useMemo)(()=>{var e;return function(e,t){let n=b(t);return Object.entries(eE).forEach(e=>{let[t,r]=e;void 0===n[t]&&(n[t]=r)}),Object.entries(e).forEach(e=>{let[t,r]=e;void 0!==r&&(n[t]=r)}),n}({...g,...C},null===(e=p.autopilotState.data)||void 0===e?void 0:e.network)},[g,C,null===(t=p.autopilotState.data)||void 0===t?void 0:t.network]),P=(0,i.useMemo)(()=>{if(!y)return;let{payloads:e}=V({resources:p,renterdState:v.data,isAutopilotEnabled:m,values:M});return e},[M,p,v,m,y]),_=(null==P?void 0:P.autopilot.contracts.amount)||0,O=Math.round(1.5*_),T=Math.round(1.1*_),A=!!P,N=(0,S.Mz)({disabled:!A,payload:{gougingSettings:null==P?void 0:P.gouging,redundancySettings:null==P?void 0:P.redundancy,autopilotConfig:null==P?void 0:P.autopilot},config:{swr:{keepPreviousData:A}}}),R=null===(r=N.data)||void 0===r?void 0:null===(n=r.recommendation)||void 0===n?void 0:n.gougingSettings,D=(null===(l=N.data)||void 0===l?void 0:l.usable)||0,L=N.data&&D{let t={maxStoragePriceTBMonth:!W,maxUploadPriceTB:!q,maxDownloadPriceTB:!$,maxStoragePriceTBMonthPinned:W,maxUploadPriceTBPinned:q,maxDownloadPriceTBPinned:$};return void 0===t[e]||t[e]},[W,q,$]),Y=h.watch("pinnedCurrency"),G=X({form:h}),ee=(0,i.useMemo)(()=>{if(!P||!I||U-D<=0)return[];let e=k({gouging:I,averages:p.averages.data,hasBeenConfigured:!0}),t=function(e){let{exchangeRate:t,maxStoragePriceTBMonth:n,maxDownloadPriceTB:r,maxUploadPriceTB:i,maxRPCPriceMillion:a}=e;return t?{maxStoragePriceTBMonthPinned:(0,o.C4)(n,t),maxDownloadPriceTBPinned:(0,o.C4)(r,t),maxUploadPriceTBPinned:(0,o.C4)(i,t),maxRPCPriceMillionPinned:(0,o.C4)(a,t)}:null}({exchangeRate:G,maxStoragePriceTBMonth:e.maxStoragePriceTBMonth,maxDownloadPriceTB:e.maxDownloadPriceTB,maxUploadPriceTB:e.maxUploadPriceTB,maxRPCPriceMillion:e.maxRPCPriceMillion}),n={...e,...t},r=[];return(0,a.qPQ)(n).forEach(e=>{let[t,n]=e;if(!K(t))return;let i=M[t];if(n.minus(i).div(i).times(100).lte(1))return;let a=function(e){let{key:t,currentValue:n,targetValue:r,currencyId:i}=e,a=n.lt(r)?"up":"down",l={key:t,hrefId:ej[t],title:ek[t],currentValue:n,targetValue:r,direction:a,currentLabel:"",targetLabel:""};if("siacoin"===ew[t].type){let e=e=>{var n;return"".concat((0,o.Vz)((0,o.qN)(e),{fixed:1})).concat(null===(n=ew[t].units)||void 0===n?void 0:n.replace("SC/","/"))};l.currentLabel=e(n),l.targetLabel=e(r)}if("number"===ew[t].type){let e=e=>"".concat((0,o.yF)(e)," ").concat(ew[t].units);l.currentLabel=e(n),l.targetLabel=e(r)}if("fiat"===ew[t].type){let e=j.mV.find(e=>e.id===i),a=n=>"".concat(null==e?void 0:e.prefix).concat((0,o.yF)(n,{fixed:e.fixed})," ").concat(null==e?void 0:e.label).concat(ew[t].units);l.currentLabel=a(n),l.targetLabel=a(r)}return l}({key:t,currentValue:i,targetValue:n,currencyId:Y});a&&r.push(a)}),r},[I,p,P,M,K,Y,D,U,G]);return{hostMargin50:.5,hostMargin10:.1,hostTarget50:O,hostTarget10:T,usableHostsCurrent:D,userContractCountTarget:_,usableHostsAfterRecommendation:U,hasDataToEvaluate:y,needsRecommendations:L,foundRecommendation:!!ee.length,recommendations:ee,recommendationMargin:F?"50%":B?"10%":R?"0%":"N/A"}}({form:n,resources:t,isAutopilotEnabled:E}),O=(0,S.d_)(),T=(0,i.useRef)({isAutopilotEnabled:E,configViewMode:M,pinningEnabled:g});return(0,i.useEffect)(()=>{T.current.isAutopilotEnabled=E,T.current.configViewMode=M,T.current.pinningEnabled=g},[E,M,g]),{form:n,fields:(0,i.useMemo)(()=>{let e=O.data?b(O.data.network):void 0,t=_.recommendations.reduce((e,t)=>({...e,[t.key]:t}),{});return y?eg({validationContext:T.current,isAutopilotEnabled:E,configViewMode:M,advancedDefaults:e,maxStoragePriceTBMonth:r,maxUploadPriceTB:u,redundancyMultiplier:v,averagesSc:y,averagesFiat:x,minShards:h,totalShards:m,recommendations:t}):eg({validationContext:T.current,isAutopilotEnabled:E,configViewMode:M,advancedDefaults:e,maxStoragePriceTBMonth:r,maxUploadPriceTB:u,redundancyMultiplier:v,minShards:h,totalShards:m,recommendations:t})},[E,M,O.data,y,x,v,r,u,h,m,_.recommendations]),evaluation:_,maxStoragePriceTBMonth:r,maxDownloadPriceTB:l,maxUploadPriceTB:u,storageTB:c,downloadTBMonth:d,uploadTBMonth:f,minShards:h,totalShards:m,redundancyMultiplier:v,configViewMode:M,setConfigViewMode:P}}({resources:g}),T=(0,i.useMemo)(()=>{var e;return w(g)?E({hasBeenConfigured:null===(e=g.autopilotState.data)||void 0===e?void 0:e.configured,autopilot:g.autopilot.data,contractSet:g.contractSet.data,uploadPacking:g.uploadPacking.data,gouging:g.gouging.data,averages:g.averages.data,redundancy:g.redundancy.data,pricePinning:g.pricePinning.data}):null},[g]),A=(0,i.useMemo)(()=>(function(e){let{uploadPacking:t,gouging:n,redundancy:r}=e;return!!(r.error||t.error||n.error)})(g),[g]),{isAutopilotEnabled:N}=(0,H.q)(),R=(0,i.useCallback)(async()=>{let i=await e.mutate(),o=N?await t.mutate():void 0,s=await n.mutate(),f=await r.mutate(),h=await l.mutate(),p=await u.mutate(),m=await c.mutate();if(!r||!l)return(0,a.OHV)({title:"Error fetching settings"}),null;v.reset(E({hasBeenConfigured:i.configured,autopilot:o,contractSet:s,uploadPacking:p,gouging:f,averages:d.data,redundancy:h,pricePinning:m}))},[v,e,N,t,n,r,u,l,c,d.data]);(0,a.u$d)({form:v,remoteValues:T}),(0,a.Z4p)({form:v,remoteValues:T});let{changeCount:D}=(0,a.mYE)({form:v}),L=function(e){let{resources:t,isAutopilotEnabled:n,revalidateAndResetForm:r}=e,o=(0,S.Bl)(),l=(0,S.oe)(),s=(0,S.KJ)(),u=(0,S.d_)(),{maybeSyncDefaultContractSet:c}=B(),d=(0,j.Tu)();return(0,i.useCallback)(async e=>{if(!t.gouging.data||!t.redundancy.data||!u.data)return;let i=n&&!t.autopilot.data;try{let{payloads:f}=V({resources:t,renterdState:u.data,isAutopilotEnabled:n,values:e}),h=f.autopilot?await l.put({payload:f.autopilot}):void 0,[p,m,g,v,y]=await Promise.all([s.put({params:{key:"contractset"},payload:f.contractSet}),s.put({params:{key:"uploadpacking"},payload:f.uploadPacking}),s.put({params:{key:"gouging"},payload:f.gouging}),s.put({params:{key:"redundancy"},payload:f.redundancy}),s.put({params:{key:"pricepinning"},payload:f.pricePinning})]);if(null==h?void 0:h.error)throw Error(h.error);if(p.error)throw Error(p.error);if(m.error)throw Error(m.error);if(g.error)throw Error(g.error);if(v.error)throw Error(v.error);if(y.error)throw Error(y.error);n&&(c(e.autopilotContractSet),o.post({payload:{forceScan:!0}})),(0,a.OPV)({title:"Configuration has been saved"}),i&&(async()=>{await (0,j.gw)(5e3),d(e=>e.startsWith(U.fu)),await (0,j.gw)(5e3),d(e=>e.startsWith(U.fu))})(),await r()}catch(e){(0,a.OHV)({title:"Error updating configuration",body:e.message}),console.log(e)}},[u.data,n,l,r,c,d,s,t,o])}({resources:g,isAutopilotEnabled:N,revalidateAndResetForm:R}),Z=(0,a.WsO)(P),F=(0,i.useMemo)(()=>v.handleSubmit(L,Z),[v,L,Z]),z=(0,i.useRef)(),q=(0,i.useCallback)(async e=>{(0,a.S5N)(z.current,e)},[]);return{onSubmit:F,revalidateAndResetForm:R,form:v,fields:P,changeCount:D,redundancyMultiplier:M,storageTB:y,shouldSyncDefaultContractSet:f,setShouldSyncDefaultContractSet:h,configViewMode:_,setConfigViewMode:O,remoteError:A,configRef:z,takeScreenshot:q,evaluation:x}}();return(0,r.jsx)(eS.Provider,{value:n,children:t})}},69960:function(e,t,n){"use strict";n.d(t,{x:function(){return M},G:function(){return C}});var r=n(52322),i=n(44677),a=n(5632),o=n(55329),l=n(2784),s=n(75262),u=n(47211),c=n(80373),d=n(91492),f=n(82851),h=n(6391),p=n.n(h);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)(d.F,{id:t,hostAddress:n,hostKey:i})}},{id:"contractId",label:"contract ID",category:"general",render:e=>{let{data:{id:t,isRenewed:n,renewedFrom:a},context:{siascanUrl:o}}=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:o}),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)(u.L6f,{className:"scale-75"})}),(0,r.jsx)(i.XxW,{color:"subtle",size:"10",type:"contract",value:(0,i.I13)(a),siascanUrl:o,label:"contract ID"})]})})]})}},{id:"contractSets",label:"contract sets",contentClassName:"w-[120px]",category:"general",render:e=>{let{data:{contractSets:t},context:{defaultContractSet:n,autopilotContractSet:a}}=e;return t.length?(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,o=a===e,l="",s=null;return o&&t?(l="This set is the default contract set and the autopilot contract set.",s=(0,r.jsx)(u.Y3p,{className:"scale-75"})):o?(l="This set is the autopilot contract set but not the default contract set.",s=(0,r.jsx)(u.MKy,{className:"scale-75"})):t&&(l="This set is the default contract set but not the autopilot contract set.",s=(0,r.jsx)(u.ZsV,{className:"scale-75"})),(0,r.jsx)(i.ua7,{content:(0,r.jsxs)(r.Fragment,{children:["Contract is part of set"," ",(0,r.jsx)(i.Cts,{size:"small",children:e}),". ",l]}),children:(0,r.jsxs)(i.Cts,{interactive:!1,size:"small",className:(0,f.cx)("flex gap-px items-center",t?"pl-px":""),children:[s,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:a,proofWindowHeightEnd:o,revisionHeight:l,proofHeight:s},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:a,proofWindowHeightEnd:o,proofHeight:s,revisionHeight:l,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,c.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,c.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,c.vW)(e)})},summary:e=>{let{context:t}=e;return t.filteredStats.sizeTotal?(0,r.jsx)(i.m2c,{size:"12",value:t.filteredStats.sizeTotal,format:e=>(0,c.vW)(e),variant:"value"}):null}},{id:"prunableSize",label:"prunable size",category:"general",contentClassName:"px-1 justify-end",render:function(e){let{data:{fetchPrunableSize:t,isFetchingPrunableSize:n,prunableSize:a,inAutopilotSet:o},context:{isFetchingPrunableSizeAll:l}}=e,s=n||l;return void 0===a?(0,r.jsx)(i.zxk,{tip:"Calculate prunable size for contract",onClick:e=>{e.stopPropagation(),t()},children:s?(0,r.jsx)(i.xgg,{}):(0,r.jsx)(u.ljb,{})}):(0,r.jsxs)("div",{className:"flex items-center gap-2","aria-label":"prunable sizes",children:[o?(0,r.jsx)(g,{value:new(p())(a),tip:"The amount of data that can be pruned from this autopilot contract",variant:"prunable"}):(0,r.jsx)(g,{value:new(p())(a),tip:"The amount of data that will eventually expire from this non-autopilot contract",variant:"expiring"}),(0,r.jsx)(i.zxk,{tip:"Realculate prunable size for contract",onClick:e=>{e.stopPropagation(),t()},children:s?(0,r.jsx)(i.xgg,{}):(0,r.jsx)(u.Wet,{})})]})},summary:e=>{let{context:t}=e;return t.hasFetchedAllPrunableSize?(0,r.jsxs)("div",{className:"flex items-center gap-2","aria-label":"prunable sizes",children:[t.filteredStats.prunableSizeTotal&&(0,r.jsx)(g,{value:t.filteredStats.prunableSizeTotal,tip:"The amount of data that can be pruned from autopilot contracts in the filtered set of active contracts",variant:"prunable"}),t.filteredStats.expiringSizeTotal&&(0,r.jsx)(g,{value:t.filteredStats.expiringSizeTotal,tip:"The amount of data that will eventually expire from non-autopilot contracts in the filtered set of active contracts",variant:"expiring"}),(0,r.jsx)(i.zxk,{tip:"Recalculate prunable size for all contracts",state:t.isFetchingPrunableSizeAll?"waiting":void 0,onClick:t.fetchPrunableSizeAll,children:t.isFetchingPrunableSizeAll?(0,r.jsx)(i.xgg,{}):(0,r.jsx)(u.Wet,{})})]}):(0,r.jsx)(i.zxk,{tip:"Calculate prunable size for all contracts",state:t.isFetchingPrunableSizeAll?"waiting":void 0,onClick:t.fetchPrunableSizeAll,children:t.isFetchingPrunableSizeAll?(0,r.jsx)(i.xgg,{}):(0,r.jsx)(u.ljb,{})})}},{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()})},summary:e=>{let{context:{filteredStats:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.totalCostTotal.negated(),tooltip:"Total cost across the filtered set of active contracts"})}},{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()})},summary:e=>{let{context:{filteredStats:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.spendingUploadsTotal.negated(),tooltip:"Uploads spending across the filtered set of active contracts"})}},{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()})},summary:e=>{let{context:{filteredStats:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.spendingDownloadsTotal.negated(),tooltip:"Downloads spending across the filtered set of active contracts"})}},{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()})},summary:e=>{let{context:{filteredStats:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.spendingFundAccountTotal.negated(),tooltip:"Fund account spending across the filtered set of active contracts"})}}];function g(e){let{value:t,tip:n,variant:a}=e;return(0,r.jsx)(i.ua7,{content:n,children:(0,r.jsxs)("div",{className:"flex items-center gap-0.5","aria-label":a,children:[(0,r.jsx)(i.m2c,{size:"12",value:t,format:e=>(0,c.vW)(e),variant:"value"}),"prunable"===a?(0,r.jsx)(u.jBN,{className:"scale-75"}):(0,r.jsx)(u.oDK,{className:"scale-75"})]})})}var v=n(38855),y=n(45178);function x(e){let t=(0,i.sWj)(5);return Math.round(e/t)*t}function b(e){let{start:t,disabled:n,contractId:a}=e,s=x(t),u=(0,i.NrH)(1),d=(0,l.useMemo)(()=>Math.max(Math.round((x(new Date().getTime())-s)/u),1),[s,u]),f=(0,l.useMemo)(()=>{let e={start:new Date(s||0).toISOString(),interval:u,n:d};return a&&(e.contractID=a),e},[s,u,d,a]),h=(0,o.Yy)({disabled:n,params:f});return{contractMetrics:(0,l.useMemo)(()=>{var e;let t=(0,i.Y_Z)(null===(e=h.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(p())(t)})},formatTimestamp:u===(0,i.NrH)(1)?(0,i.kOJ)("daily"):void 0,formatTickY:e=>(0,c.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:"barstack",curveType:"linear",stackOffset:"none"},isLoading:h.isValidating&&!h.data}},[h.data,h.isValidating,u])}}var w=n(9338),j=n(85375),k=n(37606),E=n(87741);let S=(0,l.createContext)({}),C=()=>(0,l.useContext)(S);function M(e){let{children:t}=e,n=function(){var e,t;let[n,r]=(0,l.useState)("list"),[u,d]=(0,l.useState)("spending"),f=(0,a.useRouter)(),h=Number(f.query.limit||50),g=Number(f.query.offset||0),S=(0,o.GP)({config:{swr:{refreshInterval:w.h}}}),C=(0,v.n)(),M=C.isSynced?C.nodeBlockHeight:C.estimatedBlockHeight,[P,_]=(0,l.useState)(),O=(0,l.useCallback)(e=>{if(P===e){_(void 0);return}_(e),r("detail"),d("spending")},[P,_,r]),T="on"===(0,E.V)().status,A=null===(e=(0,o.e$)({disabled:!T}).data)||void 0===e?void 0:e.contracts.set,N=null===(t=(0,o.M6)().data)||void 0===t?void 0:t.default,{dataset:R,isFetchingPrunableSizeAll:D,isFetchingPrunableSizeById:L,fetchPrunableSize:Z,fetchPrunableSizeAll:F,hasFetchedAllPrunableSize:z}=function(e){let{selectContract:t,autopilotContractSet:n,defaultContractSet:r}=e,a=(0,o.GP)({config:{swr:{refreshInterval:w.h}}}),s=(0,j.JL)(),u=(0,l.useMemo)(()=>{var e;return(null===(e=s.data)||void 0===e?void 0:e.hosts)||[]},[s.data]),d=(0,v.n)(),f=d.isSynced?d.nodeBlockHeight:d.estimatedBlockHeight,h=(0,l.useMemo)(()=>{var e;return a.data?(null===(e=a.data)||void 0===e?void 0:e.map(e=>{var i,a,o;let l="fcid:0000000000000000000000000000000000000000000000000000000000000000"!==e.renewedFrom,s=(0,c.jr)(f,e.startHeight),d=e.windowStart,h=(0,c.jr)(f,d);return{id:e.id,onClick:()=>t(e.id),state:e.state,hostIp:e.hostIP,hostKey:e.hostKey,contractSets:e.contractSets||[],inAutopilotSet:null===(i=e.contractSets)||void 0===i?void 0:i.includes(n),inDefaultSet:null===(a=e.contractSets)||void 0===a?void 0:a.includes(r),location:null===(o=u.find(t=>t.public_key===e.hostKey))||void 0===o?void 0:o.location,timeline:s,startTime:s,endTime:h,contractHeightStart:e.startHeight,contractHeightEnd:d,proofWindowHeightStart:e.windowStart,proofWindowHeightEnd:e.windowEnd,proofHeight:e.proofHeight,revisionHeight:e.revisionHeight,isRenewed:l,renewedFrom:e.renewedFrom,totalCost:new(p())(e.totalCost),spendingUploads:new(p())(e.spending.uploads),spendingDownloads:new(p())(e.spending.downloads),spendingFundAccount:new(p())(e.spending.fundAccount),size:new(p())(e.size)}}))||[]:null},[a.data,u,f,t,n,r]),{prunableSizes:m,isFetchingPrunableSizeAll:g,isFetchingPrunableSizeById:y,fetchPrunableSize:x,fetchPrunableSizeAll:b}=function(){let{bus:e}=(0,k.q)(),[t,n]=(0,l.useState)({}),[r,a]=(0,l.useState)({}),[o,s]=(0,l.useState)(!1),u=(0,l.useCallback)(async()=>{try{s(!0);let t=await (null==e?void 0:e.contractsPrunable());n(e=>{var n;return{...e,...null===(n=t.data)||void 0===n?void 0:n.contracts.reduce((e,t)=>({...e,[t.id]:{id:t.id,size:t.size,prunable:t.prunable}}),{})}})}catch(e){(0,i.OHV)({title:"Error",body:e.message})}finally{s(!1)}},[e]);return{prunableSizes:t,isFetchingPrunableSizeAll:o,isFetchingPrunableSizeById:r,fetchPrunableSize:(0,l.useCallback)(async t=>{try{a(e=>({...e,[t]:!0}));let r=await (null==e?void 0:e.contractSize({params:{id:t}}));n(e=>({...e,[t]:{id:t,...r.data}}))}catch(e){(0,i.OHV)({title:"Error",body:e.message})}finally{a(e=>({...e,[t]:!1}))}},[e]),fetchPrunableSizeAll:u}}(),E=(0,l.useMemo)(()=>(null==h?void 0:h.map(e=>{var t,n;return{...e,hasFetchedPrunableSize:(null===(t=m[e.id])||void 0===t?void 0:t.prunable)!==void 0,prunableSize:(null===(n=m[e.id])||void 0===n?void 0:n.prunable)!==void 0?new(p())(m[e.id].prunable):void 0,isFetchingPrunableSize:y[e.id],fetchPrunableSize:()=>x(e.id)}}))||[],[h,m,x,y]),S=(0,l.useMemo)(()=>null==E?void 0:E.every(e=>e.hasFetchedPrunableSize),[E]);return{dataset:E,isFetchingPrunableSizeAll:g,isFetchingPrunableSizeById:y,fetchPrunableSize:x,fetchPrunableSizeAll:b,hasFetchedAllPrunableSize:S}}({selectContract:O,autopilotContractSet:A,defaultContractSet:N}),V=(0,l.useMemo)(()=>null==R?void 0:R.find(e=>e.id===P),[R,P]),{filters:B,setFilter:I,removeFilter:H,removeLastFilter:U,resetFilters:W}=(0,i.Wdu)(),{configurableColumns:q,enabledColumns:$,sortableColumns:K,toggleColumnVisibility:Y,setColumnsVisible:X,setColumnsHidden:G,toggleSort:J,setSortDirection:Q,setSortField:ee,sortField:et,sortDirection:en,resetDefaultColumnVisibility:er}=(0,i.oy6)("renterd/v0/contracts",{columns:m,columnsDefaultVisible:s.gd,sortOptions:s.Fo,defaultSortField:s.nw}),ei=(0,i._4u)({dataset:R,filters:B,sortField:et,sortDirection:en}),ea=(0,l.useMemo)(()=>ei?ei.slice(g,g+h):null,[ei,g,h]),{range:eo}=(0,l.useMemo)(()=>(0,i.EJC)(M,ea||[]),[M,ea]),el=(0,l.useMemo)(()=>m.filter(e=>e.fixed||$.includes(e.id)),[$]),es=(0,i.c2j)(ei,S.isValidating,S.error,B),eu=(0,y.B)(),ec=function(e){let{datasetFiltered:t}=e,n=(0,l.useMemo)(()=>{if(t)return t.reduce((e,t)=>e.plus(t.size),new(p())(0))},[t]),r=(0,l.useMemo)(()=>{if(t)return t.reduce((e,t)=>t.inAutopilotSet?e.plus(t.prunableSize):e,new(p())(0))},[t]),i=(0,l.useMemo)(()=>{if(t)return t.reduce((e,t)=>t.inAutopilotSet?e:e.plus(t.size).minus(t.prunableSize),new(p())(0))},[t]),a=(0,l.useMemo)(()=>{if(t)return t.reduce((e,t)=>e.plus(t.totalCost),new(p())(0))},[t]),o=(0,l.useMemo)(()=>{if(t)return t.reduce((e,t)=>e.plus(t.spendingUploads),new(p())(0))},[t]),s=(0,l.useMemo)(()=>{if(t)return t.reduce((e,t)=>e.plus(t.spendingDownloads),new(p())(0))},[t]),u=(0,l.useMemo)(()=>{if(t)return t.reduce((e,t)=>e.plus(t.spendingFundAccount),new(p())(0))},[t]);return(0,l.useMemo)(()=>({sizeTotal:n,prunableSizeTotal:r,expiringSizeTotal:i,totalCostTotal:a,spendingUploadsTotal:o,spendingDownloadsTotal:s,spendingFundAccountTotal:u}),[n,r,i,a,o,s,u])}({datasetFiltered:ei}),ed=(0,l.useMemo)(()=>({currentHeight:C.estimatedBlockHeight,defaultContractSet:N,autopilotContractSet:A,contractsTimeRange:eo,siascanUrl:eu,hasFetchedAllPrunableSize:z,isFetchingPrunableSizeAll:D,fetchPrunableSizeAll:F,filteredStats:ec}),[C.estimatedBlockHeight,eo,eu,z,D,F,ec,N,A]),{contractMetrics:ef}=b({start:new Date().getTime()-(0,i.NrH)(30)}),{contractMetrics:eh}=b({contractId:P,start:(null==V?void 0:V.startTime)||0,disabled:!V}),{contractSetMetrics:ep}=function(){var e;let t=x(new Date().getTime()-(0,i.NrH)(30)),n=(0,i.NrH)(1),r=(0,l.useMemo)(()=>Math.round((x(new Date().getTime())-t)/n),[t,n]),a=(0,o.e$)(),s=(0,o.Bi)({disabled:!a.data,params:{name:null===(e=a.data)||void 0===e?void 0:e.contracts.set,start:new Date(t).toISOString(),interval:n,n:r}});return{contractSetMetrics:(0,l.useMemo)(()=>{var e;let t=(0,i.Y_Z)(null===(e=s.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:s.isValidating&&!s.data}},[s.data,s.isValidating,n])}}(),em=(0,o.Wu)();return{dataState:es,limit:h,offset:g,isLoading:S.isLoading,error:S.error,pageCount:(null==ea?void 0:ea.length)||0,datasetCount:(null==R?void 0:R.length)||0,datasetFilteredCount:(null==ei?void 0:ei.length)||0,columns:el,dataset:R,cellContext:ed,datasetPage:ea,configurableColumns:q,enabledColumns:$,sortableColumns:K,toggleColumnVisibility:Y,setColumnsVisible:X,setColumnsHidden:G,toggleSort:J,setSortDirection:Q,setSortField:ee,sortField:et,filters:B,setFilter:I,removeFilter:H,removeLastFilter:U,resetFilters:W,sortDirection:en,resetDefaultColumnVisibility:er,viewMode:n,setViewMode:r,graphMode:u,setGraphMode:d,selectedContract:V,selectContract:O,allContractsSpendingMetrics:ef,selectedContractSpendingMetrics:eh,contractSetCountMetrics:ep,contractSets:em,isFetchingPrunableSizeAll:D,isFetchingPrunableSizeById:L,fetchPrunableSize:Z,fetchPrunableSizeAll:F}}();return(0,r.jsx)(S.Provider,{value:n,children:t})}},75262:function(e,t,n){"use strict";n.d(t,{Fo:function(){return a},gd:function(){return r},nw:function(){return i}});let r=["contractId","contractSets","hostIp","hostKey","state","timeline","size","prunableSize","totalCost","spendingUploads","spendingDownloads","spendingFundAccount"],i="startTime",a=[{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:"prunableSize",label:"prunable 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"}]},97112:function(e,t,n){"use strict";n.d(t,{Tu:function(){return eV},xQ:function(){return eB},Rh:function(){return ez}});var r=n(52322),i=n(2784),a=n(44677),o=n(82842),l=n(98334),s=n(82851),u=n(99182),c=n(5632),d=n(35599),f=n(55329);let h={namespace:"wallet",label:"Wallet"};function p(e){var t;let{currentPage:n,parentPage:i,pushPage:o}=e,{openDialog:s,closeDialog:u}=ez(),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:()=>{o(h)},children:h.label}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{p.push(l._.wallet.view),u()},children:"View wallet transactions"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{s("sendSiacoin")},children:"Send siacoin"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{s("addressDetails")},children:"Receive siacoin"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{s("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,a.vQq)(m.data.address,"wallet address"),u())},children:"Copy wallet address to clipboard"})]})}var m=n(38617);let g={namespace:"settings",label:"Settings"};function v(e){let{currentPage:t,parentPage:n}=e,{openDialog:i,closeDialog:a}=ez(),{setTheme:l}=(0,m.F)(),{settings:s,setSettings:u,lock:c,currencyOptions:f,setCurrency:h}=(0,o.Hv)();return(0,r.jsxs)(d.fu,{currentPage:t,commandPage:g,children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:g,onSelect:()=>{i("settings")},children:"Open settings"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:g,onSelect:()=>{u({siaCentral:!s.siaCentral}),a()},children:(s.siaCentral?"Disable":"Enable")+" external API - Sia Central exchange rates"}),(0,r.jsx)(d.o4,{currentPage:t,commandPage:g,onSelect:()=>{c(),a()},children:"Lock renterd"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:g,onSelect:()=>{i("settings")},children:"Open interface theme menu"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:g,onSelect:()=>{l("system"),a()},children:"Set theme to system preference"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:g,onSelect:()=>{l("dark"),a()},children:"Set theme to dark"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:g,onSelect:()=>{l("light"),a()},children:"Set theme to light"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:g,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:g,onSelect:()=>{h(n),a()},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:a,closeDialog:o}=ez(),s=(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:()=>{a("connectPeer")},children:"Connect to a peer"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:y,onSelect:()=>{s.push(l._.node.index),o()},children:"View peers"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:y,onSelect:()=>{s.push(l._.node.index),o()},children:"View transaction pool"})]})}var b=n(70771),w=n(37606);let j={namespace:"configuration",label:"Configuration"};function k(e){let{currentPage:t,parentPage:n,pushPage:i}=e,a=(0,c.useRouter)(),{configViewMode:o}=(0,b.ZR)(),{closeDialog:s}=ez(),{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:()=>{a.push(l._.config.index),s()},children:"Open configuration"}),"on"===u.status&&(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{a.push(l._.config.storage),s()},children:"Configure storage"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{a.push(l._.config.pricing),s()},children:"Configure pricing"}),"advanced"===o&&(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:()=>{a.push(l._.config.hosts),s()},children:"Configure hosts"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{a.push(l._.config.wallet),s()},children:"Configure wallet"})]}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{a.push(l._.config.contracts),s()},children:"Configure contracts"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{a.push(l._.config.uploads),s()},children:"Configure uploads"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{a.push(l._.config.redundancy),s()},children:"Configure redundancy"})]})]})}var E=n(14613);let S={namespace:"contracts",label:"Contracts"};function C(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:a,afterSelect:o}=e,s=(0,c.useRouter)(),{closeDialog:u}=ez();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:()=>{s.push(l._.contracts.index),u()},children:"View contracts"})}),(0,r.jsx)(E.F,{parentPage:S,currentPage:t,beforeSelect:a,afterSelect:o,pushPage:i})]})}let M={namespace:"alerts",label:"Alerts"};function P(e){let{currentPage:t,parentPage:n,pushPage:i}=e,a=(0,c.useRouter)(),{closeDialog:o}=ez();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:()=>{a.push(l._.alerts.index),o()},children:"View alerts"})})]})}var _=n(69960),O=n(42213);let T={namespace:"hosts",label:"Hosts"};function A(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:a,afterSelect:o}=e,s=(0,c.useRouter)(),{closeDialog:u,openDialog:f}=ez();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(T)},children:T.label}),(0,r.jsx)(d.fu,{currentPage:t,commandPage:T,children:(0,r.jsx)(d.WD,{currentPage:t,commandPage:T,onSelect:()=>{s.push(l._.hosts.index),u()},children:"View hosts"})}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:T,onSelect:()=>{f("hostsManageAllowBlock")},children:"Manage filter lists: allowlist + blocklist"}),(0,r.jsx)(O.L,{parentPage:T,currentPage:t,beforeSelect:a,afterSelect:o,pushPage:i})]})}var N=n(70899),R=n(47211);function D(e){let{debouncedSearch:t}=e;return(0,r.jsxs)(a.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsxs)(a.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:[(0,r.jsx)(R.e1T,{}),(0,r.jsx)(R.JCW,{}),(0,r.jsx)(R.c_L,{})]}),(0,r.jsx)(a.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No files match the query.":"Type a query to get started."})]})}var L=n(41736);let Z={namespace:"files/search",label:"File search",prompt:"Search for files, eg: backups, photo_archive.zip, etc...",empty:D};function F(e){let{debouncedSearch:t,search:n,currentPage:i,beforeSelect:o,afterSelect:l}=e,{activeBucketName:s,navigateToModeSpecificFiltering:u}=(0,L.b)(),c=(null==i?void 0:i.namespace)===Z.namespace,h=s||"default",p=(0,f.Iy)({disabled:!c,params:{bucket:h,key:t,offset:0,limit:10},config:{swr:{keepPreviousData:!0}}});return c&&p.data?(0,r.jsx)(d.fu,{currentPage:i,commandPage:Z,children:p.data.map(e=>{let{name:t}=e,s=function(e,t,n){let r=Math.max(e.length-55,0);if(0===r)return e;let i=z(e),a=z(t),o=i.toLowerCase().indexOf(a.toLowerCase()),l=o+a.length-1,s=0,u=0;return i.split("/").map(e=>{if(s>=r)return u+=e.length,z(e);let t=u,n=u+e.length+1;return to?(u+=e.length,z(e)):!e.includes(a)&&e.length>3?(u+=e.length,s+=e.length+1,"..."):(u+=e.length,z(e))}).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()),a=i+r.length;return{endIndex:e.length-i,startIndex:e.length-a}}(s,n);return(0,r.jsx)(d.WD,{commandPage:Z,currentPage:i,onSelect:()=>{o(),u(h+t),l()},value:t,children:(0,r.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[(0,r.jsx)(a.xvT,{color:"verySubtle",className:"group-data-[selected=true]:text-gray-1000 dark:group-data-[selected=true]:text-graydark-1000",children:(0,N.IQ)(t)?(0,r.jsx)(R.ROc,{size:16}):(0,r.jsx)(R.c_L,{})}),(0,r.jsxs)(a.xvT,{className:"flex items-center",children:[(0,r.jsx)(a.xvT,{color:"verySubtle",ellipsis:!0,children:s.slice(0,c)}),(0,r.jsx)(a.xvT,{color:"accent",ellipsis:!0,children:s.slice(c,f)}),(0,r.jsx)(a.xvT,{color:"verySubtle",ellipsis:!0,children:s.slice(f)})]})]})},t)})}):null}function z(e){return e.split("").reverse().join("")}let V={namespace:"files",label:"Files"};function B(e){let{search:t,debouncedSearch:n,currentPage:i,parentPage:a,pushPage:o,beforeSelect:s,afterSelect:u}=e,f=(0,c.useRouter)(),{closeDialog:h}=ez();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:i,parentPage:a,commandPage:a,onSelect:()=>{o(V)},children:V.label}),(0,r.jsxs)(d.fu,{currentPage:i,commandPage:V,children:[(0,r.jsx)(d.WD,{currentPage:i,commandPage:V,onSelect:()=>{f.pathname.startsWith(l._.buckets.index)||f.push(l._.buckets.index),h(),u()},children:"View files"}),(0,r.jsx)(d.WD,{currentPage:i,commandPage:V,onSelect:()=>{o(Z),u()},children:"Search files"})]}),(0,r.jsx)(F,{debouncedSearch:n,search:t,currentPage:i,beforeSelect:s,afterSelect:u})]})}var I=n(56328),H=n(94225);function U(e){let{search:t}=e;return(0,r.jsxs)(a.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsx)(a.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:(0,r.jsx)(R.owP,{})}),(0,r.jsx)(a.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No results matching query.":"Type a query to get started."})]})}let W={namespace:"keys",label:"S3 authentication keys"};function q(e){let{currentPage:t,parentPage:n,pushPage:i}=e,a=(0,c.useRouter)(),{closeDialog:o,openDialog:s}=ez();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(W)},children:W.label}),(0,r.jsxs)(d.fu,{currentPage:t,commandPage:W,children:[(0,r.jsx)(d.WD,{currentPage:t,commandPage:W,onSelect:()=>{a.push(l._.keys.index),o()},children:"View keys"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:W,onSelect:()=>{a.push(l._.keys.index),s("keysCreate")},children:"Create new S3 authentication keypair"})]})]})}function $(e){let{panel:t}=e,{resetFilters:n}=(0,_.G)(),{resetFilters:o}=(0,I.l)(),{closeDialog:d}=ez(),f=(0,c.useRouter)(),[h,m]=(0,i.useState)(""),[g]=(0,H.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]),M=(0,i.useCallback)(()=>{m("")},[m]),O=(null==w?void 0:w.empty)||U;return(0,r.jsxs)(u.mY,{label:"Command Menu",loop:!0,className:(0,s.cx)(t&&(0,a.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)(a.__J,{className:"px-2",children:w.label}),(0,r.jsx)(u.mY.Input,{value:h,onValueChange:m,className:(0,a.cEb)({variant:"ghost",focus:"none"}),placeholder:(null==w?void 0:w.prompt)||(j?"Search for commands, eg: theme, redundancy":"Search commands")}),(0,r.jsx)(a.Z0O,{className:"my-2"}),(0,r.jsxs)(u.mY.List,{children:[(0,r.jsx)(u.mY.Empty,{children:(0,r.jsx)(O,{search:h,debouncedSearch:g})}),(0,r.jsx)(v,{currentPage:w,pushPage:E}),(0,r.jsx)(B,{debouncedSearch:g,search:h,currentPage:w,pushPage:E,beforeSelect:()=>{S()},afterSelect:()=>{M()}}),(0,r.jsx)(p,{currentPage:w,pushPage:E}),(0,r.jsx)(C,{currentPage:w,pushPage:E,beforeSelect:()=>{S(),n()},afterSelect:()=>{f.pathname.startsWith(l._.contracts.index)||f.push(l._.contracts.index),M()}}),(0,r.jsx)(A,{currentPage:w,pushPage:E,beforeSelect:()=>{S(),o()},afterSelect:()=>{f.pathname.startsWith(l._.hosts.index)||f.push(l._.hosts.index),M()}}),(0,r.jsx)(q,{currentPage:w,pushPage:E,beforeSelect:()=>{S()},afterSelect:()=>{f.pathname.startsWith(l._.keys.index)||f.push(l._.keys.index),M()}}),(0,r.jsx)(P,{currentPage:w,pushPage:E,beforeSelect:()=>{S(),n()},afterSelect:()=>{f.pathname.startsWith(l._.alerts.index)||f.push(l._.alerts.index),M()}}),(0,r.jsx)(k,{currentPage:w,pushPage:E}),(0,r.jsx)(x,{currentPage:w,pushPage:E})]})]})}function K(e){let{open:t,onOpenChange:n,setOpen:s}=e,{isUnlockedAndAuthedRoute:u}=(0,o.Hv)(),{isConnected:c}=(0,a.Y97)({route:l.h});return(0,i.useEffect)(()=>{if(!u||!c)return;let e=e=>{"k"===e.key&&e.metaKey&&s()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[u,c,s]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(a.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)($,{})})})}var Y=n(7114),X=n(24511);let G={name:""},J=X.Ry().shape({name:X.Z_().required("Required")});function Q(e){let{trigger:t,open:n,onOpenChange:i}=e,{activeDirectoryPath:o}=(0,L.b)(),l=(0,f.ZM)(),s=(0,Y.TA)({initialValues:G,validationSchema:J,onSubmit:async(e,t)=>{let n=await l.put({params:(0,N.W0)(o+e.name+"/"),payload:null});n.error?(0,a.OHV)({title:"Error creating directory",body:n.error}):((0,a.OPV)({title:"Directory created"}),t.resetForm(),i(!1))}});return(0,r.jsx)(a.VqE,{trigger:t,title:"New directory",open:n,onOpenChange:e=>{e||s.resetForm(),i(e)},contentVariants:{className:"w-[400px]"},children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsx)("form",{onSubmit:s.handleSubmit,children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(a.cB7,{formik:s,title:"Name",name:"name",placeholder:"photos, backups, etc",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(a.IKw,{formik:s,size:"medium",children:"Create"})]})})})})}var ee=n(82229);let et={publicKey:""},en=X.Ry().shape({publicKey:X.Z_().required("Required")});function er(){var e;let t=(0,f.s2)({config:{swr:{refreshInterval:6e4}}}),n=(0,ee.I)(),o=(0,Y.TA)({initialValues:et,validationSchema:en,onSubmit:async(e,t)=>{await n([e.publicKey],[])?t.resetForm():t.setStatus({error:"Error updating allowlist"})}});(0,i.useEffect)(()=>{o.setStatus(void 0)},[o.values]);let l=o.values.publicKey,s=(null===(e=t.data)||void 0===e?void 0:e.filter(e=>!o.values.publicKey||e.includes(o.values.publicKey)))||[];return(0,r.jsxs)("form",{onSubmit:o.handleSubmit,className:"flex flex-col gap-2 h-[400px]",children:[(0,r.jsx)(a.S$c,{title:"Public key",name:"publicKey",formik:o,withStatusError:!0,children:(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(a.KZS,{name:"publicKey",formik:o,placeholder:"ed25519:02aabd26e627fd...",autoComplete:"off",variants:{size:"small"}}),(0,r.jsx)(a.IKw,{formik:o,size:"small",variant:"amber",withStatusError:!1,children:"Allow public key"})]})}),(0,r.jsxs)(a.s_4,{className:"p-2 flex gap-2 items-center",children:[(0,r.jsx)(a.xvT,{children:(0,r.jsx)(R.qdM,{})}),(0,r.jsxs)(a.nvN,{size:"12",children:[(0,r.jsx)(a.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:s.length?(0,r.jsx)(a.xrM,{children:(0,r.jsx)("div",{className:"p-2",children:(0,r.jsx)(a.hmz,{options:s.map(e=>({value:e,label:"".concat(e.slice(0,20),"...")}))||[],onClick:e=>(0,a.vQq)(e,"allowed public key"),onRemove:e=>n([],[e])})})}):l?(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(a.xvT,{color:"subtle",children:(0,r.jsx)(R.Hb6,{})}),(0,r.jsxs)(a.xvT,{color:"subtle",children:["No existing entries match ",o.values.publicKey,"."]})]}):(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(a.xvT,{color:"subtle",children:(0,r.jsx)(R.TtX,{})}),(0,r.jsx)(a.xvT,{color:"subtle",children:"The allowlist is empty."})]})})]})}var ei=n(94613);let ea={address:""},eo=["45.148.30.56","51.158.108.244","siacentral.ddnsfree.com","siacentral.mooo.com"],el=X.Ry().shape({address:X.Z_().required("Required")});function es(){let e=(0,f.uf)({config:{swr:{refreshInterval:6e4}}}),t=(0,ei.l)(),n=(0,Y.TA)({initialValues:ea,validationSchema:el,onSubmit:async(e,n)=>{await t([e.address],[])?n.resetForm():n.setStatus({error:"Error updating blocklist"})}});(0,i.useEffect)(()=>{n.setStatus(void 0)},[n.values]);let o=n.values.address,l=(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:s}=(0,_.G)(),u=(0,i.useMemo)(()=>eo.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==s?void 0:s.filter(t=>t.hostIp===e).length})),[e.data,s]);return(0,r.jsxs)("form",{onSubmit:n.handleSubmit,className:"flex flex-col gap-2 h-[400px]",children:[(0,r.jsx)(a.S$c,{title:"Address",name:"address",formik:n,withStatusError:!0,children:(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(a.KZS,{name:"address",formik:n,placeholder:"eg: 51.258.128.144 or spam.ddnsfree.com",autoComplete:"off",variants:{size:"small"}}),(0,r.jsx)(a.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)(a.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)(a.xvT,{size:"12",color:"subtle",children:"Suggestions:"}),u.map((e,t)=>{let{address:i,contractCount:o}=e;return(0,r.jsxs)(a.xvT,{size:"12",underline:"hover",className:"cursor-pointer",onClick:()=>n.setFieldValue("address",i),children:[i,!!o&&(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)(a.ua7,{content:"".concat(o," active contracts"),children:(0,r.jsxs)(a.xvT,{color:"red",children:["(",o,")"]})})]}),t!==u.length-1&&(0,r.jsx)(a.xvT,{children:","})]},i)})]}),(0,r.jsx)(a.Z0O,{className:"my-2"})]}),l.length?(0,r.jsx)(a.hmz,{options:l.map(e=>({value:e,label:"".concat(e.slice(0,20),"...")}))||[],onClick:e=>(0,a.vQq)(e,"blocked address"),onRemove:e=>t([],[e])}):o?(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(a.xvT,{color:"subtle",children:(0,r.jsx)(R.Hb6,{})}),(0,r.jsxs)(a.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)(a.xvT,{color:"subtle",children:(0,r.jsx)(R.TtX,{})}),(0,r.jsx)(a.xvT,{color:"subtle",children:"The blocklist is empty."})]})]})})})]})}function eu(e){let{trigger:t,open:n,onOpenChange:i}=e;return(0,r.jsx)(a.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)(a.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)(a.mQc,{defaultValue:"blocklist",children:[(0,r.jsxs)(a.drW,{"aria-label":"blocklist and allowlist tabs",children:[(0,r.jsx)(a.SPt,{value:"blocklist",children:"Block"}),(0,r.jsx)(a.SPt,{value:"allowlist",children:"Allow"})]}),(0,r.jsx)(a.nUL,{value:"blocklist",children:(0,r.jsx)(es,{})}),(0,r.jsx)(a.nUL,{value:"allowlist",children:(0,r.jsx)(er,{})})]})]})})}var ec=n(10532),ed=n(98131),ef=n(30291),eh=n(11948),ep=n(99605);function em(e){let{panel:t}=e,{closeDialog:n}=ez(),o=(0,ep.xj)(),c=(0,ep.jD)(),[d,f]=(0,i.useState)(""),[h]=(0,H.Nr)(d,500),p=(0,i.useCallback)(()=>{n()},[n]);return(0,r.jsxs)(u.mY,{label:"Files search",shouldFilter:!1,className:(0,s.cx)(t&&(0,a.z$)()),children:[(0,r.jsx)(a.__J,{className:"px-2",children:"File search"}),(0,r.jsx)(u.mY.Input,{value:d,onValueChange:f,className:(0,a.cEb)({variant:"ghost",focus:"none"}),placeholder:Z.prompt}),(0,r.jsx)(a.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)(D,{search:d,debouncedSearch:h})}),(0,r.jsx)(F,{debouncedSearch:h,search:d,currentPage:Z,beforeSelect:()=>{p()},afterSelect:()=>{c.startsWith(l._.buckets.index)||o.push(l._.buckets.index)}})]})})]})}function eg(e){let{open:t,onOpenChange:n,trigger:i}=e;return(0,r.jsx)(a.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)(em,{})})}var ev=n(6391),ey=n.n(ev);function ex(){let{dialog:e,openDialog:t,closeDialog:n}=ez(),o=(0,f.X2)(),l=(0,f.gU)(),s=(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 l.post({payload:{amount:t.toString(),transaction:{siacoinOutputs:[{address:n,value:t.toString()}]}}});if(r.error)return{error:r.error};let i=await s.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 a=await u.post({payload:[i.data]});return a.error?(c.post({payload:i.data}),{error:a.error}):{}},[l,s,u,c]);return(0,r.jsx)(a.weF,{balance:o.data?new(ey())(o.data.spendable):void 0,send:d,open:"sendSiacoin"===e,onOpenChange:r=>r?t(e):n()})}var eb=n(40730);function ew(){let{id:e,dialog:t,onOpenChange:n}=ez(),{dataset:o}=(0,eb.n)(),l=(0,i.useMemo)(()=>null==o?void 0:o.find(t=>t.hash===e),[o,e]);return(0,r.jsx)(a.mPE,{id:e,transaction:l,open:"transactionDetails"===t,onOpenChange:n})}var ej=n(23771),ek=n(63955);let eE={name:""};function eS(e){let{trigger:t,open:n,onOpenChange:o}=e,{id:l}=ez(),s=(0,f.sg)(),u=(0,ek.cI)({mode:"all",defaultValues:eE}),{handleOpenChange:c,closeAndReset:d}=(0,a.t0Y)({form:u,onOpenChange:o,defaultValues:eE}),h=(0,i.useCallback)(async e=>{let t=await s.delete({params:{name:e.name}});t.error?(0,a.OHV)({title:"Error deleting bucket",body:t.error}):((0,a.OPV)({title:"Bucket permanently deleted"}),d())},[s,d]),p=(0,i.useMemo)(()=>({name:{type:"text",title:"Name",placeholder:l,validation:{required:"required",validate:{notDefault:()=>"default"!==l||"cannot delete default bucket",equals:e=>e===l||"bucket name does not match"}}}}),[l]),m=(0,a.WsO)(p);return(0,r.jsx)(a.VqE,{title:"Delete Bucket",trigger:t,open:n,onOpenChange:c,contentVariants:{className:"w-[400px]"},onSubmit:u.handleSubmit(h,m),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(a.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)(a.EKh,{color:"gray",children:l})}),(0,r.jsx)(a.yEL,{name:"name",form:u,fields:p,autoComplete:"off"}),(0,r.jsx)(a.ZqQ,{variant:"red",form:u,children:"Delete"})]})})}let eC={visibility:"public"};function eM(e){let{trigger:t,open:n,onOpenChange:o}=e,{id:l,closeDialog:s}=ez(),u=(0,f.D5)({disabled:!n,params:{name:l},config:{swr:{revalidateOnFocus:!1}}}),c=(0,f.ol)(),d=(0,ek.cI)({mode:"all",defaultValues:eC});(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:l},payload:{policy:{publicReadAccess:"public"===e.visibility}}});t.error?(0,a.OHV)({title:"Error updating bucket policy",body:t.error}):((0,a.OPV)({title:"Bucket policy has been updated"}),d.reset(),s())},[d,l,c,s]),p=(0,i.useMemo)(()=>({visibility:{type:"text",title:"Read Access",placeholder:l,validation:{required:"required"},options:[{label:"Public",value:"public"},{label:"Private",value:"private"}]}}),[l]),m=(0,a.WsO)(p);return(0,r.jsx)(a.VqE,{title:"Change Policy: ".concat(l),trigger:t,open:n,onOpenChange:e=>{e||d.reset(eC),o(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)(a.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)(a.WyV,{name:"visibility",form:d,fields:p}),(0,r.jsx)(a.ZqQ,{variant:"accent",form:d,children:"Update policy"})]})})}let eP={name:""};function e_(e){let{trigger:t,open:n,onOpenChange:o}=e,{closeDialog:l}=ez(),s=(0,f.oV)(),u=(0,ek.cI)({mode:"all",defaultValues:eP}),c=(0,i.useCallback)(async e=>{let t=await s.post({payload:{name:e.name}});t.error?(0,a.OHV)({title:"Error creating bucket",body:t.error}):((0,a.OPV)({title:"Bucket created"}),u.reset(),l())},[u,s,l]),d=(0,i.useMemo)(()=>({name:{type:"text",title:"Name",placeholder:"photos, backups, etc",validation:{required:"required"}}}),[]),h=(0,a.WsO)(d);return(0,r.jsx)(a.VqE,{title:"Create Bucket",trigger:t,open:n,onOpenChange:e=>{e||u.reset(eP),o(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)(a.nvN,{size:"14",children:"A bucket is an isolated collection of files."}),(0,r.jsx)(a.yEL,{name:"name",form:u,fields:d,autoComplete:"off"}),(0,r.jsx)(a.ZqQ,{form:u,children:"Create bucket"})]})})}var eO=n(5184),eT=n(75618),eA=n(43385);function eN(e){let{trigger:t,open:n,onOpenChange:o}=e,{id:l}=ez(),{refresh:s}=(0,eT.J)(),{refresh:u}=(0,eA.o)(),c=(0,i.useMemo)(()=>{let e=(0,N.vt)(l||"");return e.endsWith("/")?e.slice(0,-1):e},[l]),d=(0,i.useMemo)(()=>({name:c}),[c]),h=(0,f.GD)(),p=(0,ek.cI)({mode:"all",defaultValues:d}),{handleOpenChange:m,closeAndReset:g}=(0,a.t0Y)({form:p,onOpenChange:o,defaultValues:d,initKey:[c]}),v=(0,i.useCallback)(async e=>{let{bucket:t,to:n,from:r,mode:i}=(0,eO.E)(l,e.name),o=await h.post({payload:{bucket:t,to:n,from:r,mode:i,force:!1}});o.error?(0,a.OHV)({title:(0,N.IQ)(l)?"Error renaming directory":"Error renaming file",body:o.error}):(s(),u(),g(),(0,a.OPV)({title:(0,N.IQ)(l)?"Directory renamed":"File renamed"}))},[l,s,u,h,g]),y=(0,i.useMemo)(()=>(function(e){let{currentName:t}=e;return{name:{type:"text",title:"Name",placeholder:t,validation:{required:"required",validate:{noSlash:e=>!e.includes("/")||"Name cannot contain slashes"}}}}})({currentName:c}),[c]),x=(0,a.WsO)(y);return(0,r.jsx)(a.VqE,{title:"Rename file",trigger:t,open:n,onOpenChange:m,contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit(v,x),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(a.yEL,{name:"name",form:p,fields:y,autoComplete:"off"}),(0,r.jsx)(a.ZqQ,{form:p,children:"Save"})]})})}function eR(){return{name:eL(),secret:eZ()}}function eD(e){let{trigger:t,open:n,onOpenChange:o}=e,{closeDialog:l}=ez(),s=(0,f.FD)(),u=(0,f.KJ)(),c=(0,ek.cI)({mode:"all",defaultValues:eR()}),d=(0,i.useCallback)(async e=>{var t;let n={...null===(t=s.data)||void 0===t?void 0:t.v4Keypairs,[e.name]:e.secret},r=await u.put({params:{key:"s3authentication"},payload:{v4Keypairs:n}});r.error?(0,a.OHV)({title:"Error creating key",body:r.error}):((0,a.OPV)({title:"New key created"}),c.reset(eR()),l())},[c,l,u,s.data]),h=(0,i.useMemo)(()=>{var e;return function(e){let{existingKeys:t,regenerateAccessKey:n,regenerateSecretKey:i}=e;return{name:{type:"text",title:"Access key ID",placeholder:"my secure key",actions:(0,r.jsx)(a.zxk,{onClick:n,tip:"Regenerate access key ID",icon:"contrast",variant:"ghost",size:"none",className:"m-1",children:(0,r.jsx)(R.Wet,{})}),validation:{required:"required",validate:{minLength:e=>(null==e?void 0:e.length)>=16||"must be at least 16 characters",maxLength:e=>(null==e?void 0:e.length)<=128||"must be at most 128 characters",unique:e=>!t.includes(e)||"Name must be unique"}}},secret:{type:"text",title:"Secret access key",placeholder:"",actions:(0,r.jsx)(a.zxk,{onClick:i,tip:"Regenerate secret access key",icon:"contrast",variant:"ghost",size:"none",className:"m-1",children:(0,r.jsx)(R.Wet,{})}),validation:{required:"required",validate:{exactLength:e=>(null==e?void 0:e.length)===40||"must be exactly 40 characters"}}}}}({regenerateAccessKey:()=>{c.setValue("name",eL())},regenerateSecretKey:()=>{c.setValue("secret",eZ())},existingKeys:Object.keys((null===(e=s.data)||void 0===e?void 0:e.v4Keypairs)||{})})},[s.data,c]),p=(0,a.WsO)(h);return(0,r.jsx)(a.VqE,{title:"Create S3 key",trigger:t,open:n,onOpenChange:e=>{e||c.reset(eR()),o(e)},contentVariants:{className:"w-[400px]"},onSubmit:c.handleSubmit(d,p),controls:(0,r.jsx)("div",{className:"flex flex-col gap-1",children:(0,r.jsx)(a.ZqQ,{form:c,children:"Create"})}),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(a.nvN,{children:"Create a new S3 authentication key."}),(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)(a.yEL,{name:"name",form:c,fields:h}),(0,r.jsx)(a.yEL,{name:"secret",form:c,fields:h})]})]})})}function eL(){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",t="";for(let n=0;n<20;n++)t+=e.charAt(Math.floor(Math.random()*e.length));return t}function eZ(){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="";for(let n=0;n<40;n++)t+=e.charAt(Math.floor(Math.random()*e.length));return t}let eF=(0,i.createContext)({}),ez=()=>(0,i.useContext)(eF);function eV(e){let{children:t}=e,n=function(){let[e,t]=(0,i.useState)(),[n,r]=(0,i.useState)(),a=(0,i.useCallback)((e,n)=>{t(e),r(n)},[t,r]),[o,l]=(0,i.useState)(),s=(0,i.useCallback)(e=>{t("confirm"),l(e)},[t,l]),u=(0,i.useCallback)(()=>{t(void 0),r(void 0),l(void 0)},[t,r,l]),c=(0,i.useCallback)(e=>{e||u()},[u]);return{dialog:e,id:n,openDialog:a,confirm:o,openConfirmDialog:s,closeDialog:u,onOpenChange:c}}();return(0,r.jsx)(eF.Provider,{value:n,children:t})}function eB(){var e;let{dialog:t,openDialog:n,onOpenChange:i,closeDialog:o,confirm:l,openConfirmDialog:s}=ez(),u=(0,f.Wl)(),c=(0,f.X2)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(K,{open:"cmdk"===t,onOpenChange:i,setOpen:()=>n("cmdk")}),(0,r.jsx)(a.DLL,{open:"settings"===t,onOpenChange:i,showGpuSetting:!0}),(0,r.jsx)(ex,{}),(0,r.jsx)(a.YNn,{address:null===(e=c.data)||void 0===e?void 0:e.address,isValidating:c.isValidating,open:"addressDetails"===t,onOpenChange:i}),(0,r.jsx)(ew,{}),(0,r.jsx)(a.D_D,{open:"connectPeer"===t,connect:e=>u.post({payload:e}),onOpenChange:i}),(0,r.jsx)(e_,{open:"filesCreateBucket"===t,onOpenChange:i}),(0,r.jsx)(eS,{open:"filesDeleteBucket"===t,onOpenChange:i}),(0,r.jsx)(eM,{open:"filesBucketPolicy"===t,onOpenChange:i}),(0,r.jsx)(Q,{open:"filesCreateDirectory"===t,onOpenChange:i}),(0,r.jsx)(eg,{open:"filesSearch"===t,onOpenChange:i}),(0,r.jsx)(eN,{open:"fileRename"===t,onOpenChange:i}),(0,r.jsx)(eu,{open:"hostsManageAllowBlock"===t,onOpenChange:i}),(0,r.jsx)(ec.g,{open:"hostsFilterAddress"===t,onOpenChange:i}),(0,r.jsx)(ej.a,{open:"hostsFilterPublicKey"===t,onOpenChange:i}),(0,r.jsx)(ed.p,{open:"contractsFilterAddress"===t,onOpenChange:i}),(0,r.jsx)(eh.X,{open:"contractsFilterContractSet"===t,onOpenChange:i}),(0,r.jsx)(ef.C,{open:"contractsFilterPublicKey"===t,onOpenChange:i}),(0,r.jsx)(eD,{open:"keysCreate"===t,onOpenChange:i}),(0,r.jsx)(a.QHy,{open:"confirm"===t,params:l,onOpenChange:e=>e?s(l):o()})]})}},72199:function(e,t,n){"use strict";n.d(t,{z:function(){return p}});var r=n(52322),i=n(44677),a=n(47211),o=n(80373),l=n(87023),s=n(84301),u=n(6391),c=n.n(u),d=n(23094),f=n(90721),h=n(41736);let p=[{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:u,size:c}}=e,{setActiveDirectory:d}=(0,h.b)();return t?(0,r.jsx)(i.zxk,{variant:"ghost",state:"waiting",children:(0,r.jsx)(a.c_L,{})}):".."===o?(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",onClick:e=>{e.stopPropagation(),d(e=>e.slice(0,-1))},children:(0,r.jsx)(a.ROc,{size:16})}):"bucket"===n?(0,r.jsx)(f.s,{name:o}):"directory"===n?(0,r.jsx)(s.I,{path:u,size:c}):(0,r.jsx)(l.e,{path:u})}},{id:"name",label:"name",category:"general",contentClassName:"max-w-[600px]",render:function(e){let{data:{name:t,type:n}}=e,{setActiveDirectoryAndFileNamePrefix:a,setActiveDirectory:o}=(0,h.b)();return"bucket"===n?(0,r.jsx)(i.xvT,{ellipsis:!0,color:"accent",weight:"semibold",className:"cursor-pointer",onClick:e=>{e.stopPropagation(),a([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 l=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:l?"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:l?"contrast":"verySubtle",className:"flex gap-0.5 items-center",children:l?(0,r.jsx)(a.nDH,{}):(0,r.jsx)(a.Lur,{})})})})})}},{id:"size",label:"size",contentClassName:"justify-end",render:function(e){let{data:{type:t,name:n,size:a}}=e;return"bucket"===t||".."===n?null:(0,r.jsx)(i.m2c,{size:"12",value:new(c())(a),variant:"value",color:"subtle",weight:"regular",format:e=>(0,o.vW)(e.toNumber())})}},{id:"health",label:"health",contentClassName:"justify-center",render:function(e){let{data:t}=e,{type:n,isUploading:l,loaded:s,size:u}=t;if("bucket"===n)return null;if(l){let e=(s/u*100).toFixed(0)+"%";return(0,r.jsx)(i.ua7,{content:"Uploaded ".concat((0,o.vW)(s),"/").concat((0,o.vW)(u)),children:(0,r.jsxs)("div",{className:"flex items-center gap-1 cursor-pointer",children:[(0,r.jsx)(i.xvT,{color:"subtle",children:(0,r.jsx)(a.R$6,{className:"scale-75"})}),(0,r.jsx)(i.xvT,{color:"subtle",size:"12",children:e})]})})}return(0,r.jsx)(d.z,{...t})}}]},75618:function(e,t,n){"use strict";n.d(t,{V:function(){return g},J:function(){return m}});var r=n(52322),i=n(44677),a=n(2784),o=n(55329),l=n(37371),s=n(70899),u=n(5632),c=n(41736),d=n(9338),f=n(5184),h=n(72199);let p=(0,a.createContext)({}),m=()=>(0,a.useContext)(p);function g(e){let{children:t}=e,n=function(){let{activeDirectory:e,activeBucketName:t,activeDirectoryPath:n,setActiveDirectory:r,filters:p,enabledColumns:m}=(0,c.b)(),{limit:g,offset:v,response:y,refresh:x,dataset:b}=function(){var e;let{activeBucketName:t,activeDirectoryPath:n,fileNamePrefixFilter:r,sortDirection:i,sortField:f}=(0,c.b)(),h=(0,u.useRouter)(),p=Number(h.query.limit||50),m=Number(h.query.offset||0),g=(0,a.useMemo)(()=>{let e={...(0,s.W0)(n),sortBy:f,sortDir:i,offset:m,limit:p};return r&&(e.prefix=r.startsWith("/")?r.slice(1):r),e},[n,r,f,i,m,p]),v=(0,o.Jv)({disabled:!t,params:g,config:{swr:{refreshInterval:d.h}}}),y=(0,a.useMemo)(()=>{var e;return{isValidating:v.isValidating,data:null===(e=v.data)||void 0===e?void 0:e.entries}},[v.isValidating,null===(e=v.data)||void 0===e?void 0:e.entries]);return{limit:p,offset:m,response:v,dataset:(0,l.p)({id:"filesDirectory",objects:y}).data,refresh:v.mutate}}(),{onDragEnd:w,onDragOver:j,onDragCancel:k,onDragMove:E,onDragStart:S,draggingObject:C}=function(e){let{dataset:t,activeDirectory:n,setActiveDirectory:r,refresh:l}=e,[u,c]=(0,a.useState)(null),[,d]=(0,a.useState)(),h=(0,o.GD)(),p=(0,a.useCallback)(async e=>{let{bucket:t,from:r,to:a,mode:o}=(0,f.e)(e,n);if(r===a)return;let s=await h.post({payload:{force:!1,bucket:t,from:r,to:a,mode:o}});l(),s.error&&(0,i.OHV)({title:"Error moving files",body:s.error})},[l,h,n]),m=(0,a.useCallback)(e=>{if(!e){d(e=>(e&&clearTimeout(e),null));return}let t=setTimeout(()=>{r(()=>e)},500);d(e=>(e&&clearTimeout(e),t))},[d,r]),g=(0,a.useCallback)(e=>{if(e.collisions.length){var t;let r=null===(t=e.collisions)||void 0===t?void 0:t[0].id;".."===r?m(n.slice(0,-1)):m((0,s.gD)(r))}else m(void 0)},[m,n]),v=(0,a.useCallback)(e=>{c(t.find(t=>t.id===e.active.id)||null)},[t,c]),y=(0,a.useCallback)(e=>{g(e)},[g]),x=(0,a.useCallback)(e=>{g(e)},[g]);return{onDragEnd:(0,a.useCallback)(async e=>{m(void 0),c(void 0),p(e)},[c,m,p]),onDragOver:y,onDragCancel:(0,a.useCallback)(async e=>{m(void 0),c(void 0)},[c,m]),onDragMove:x,onDragStart:v,draggingObject:u}}({dataset:b,activeDirectory:e,setActiveDirectory:r,refresh:x}),M=(0,a.useMemo)(()=>b?e.length>0&&b.length>0?[{id:"..",name:"..",path:"..",type:"directory",onClick:()=>{r(e=>e.slice(0,-1))}},...b]:b:null,[b]),P=(0,a.useMemo)(()=>M?M.map(e=>C&&C.id!==e.id&&"directory"===e.type?{...e,isDroppable:!0}:{...e,isDraggable:"bucket"!==e.type&&!e.isUploading}):null,[M,C]);return{activeBucket:t,activeDirectory:e,setActiveDirectory:r,activeDirectoryPath:n,dataState:(0,i.c2j)(b,y.isValidating,y.error,p),columns:(0,a.useMemo)(()=>h.z.filter(e=>e.fixed||m.includes(e.id)),[m]),refresh:x,limit:g,offset:v,datasetPage:P,pageCount:(null==b?void 0:b.length)||0,onDragStart:S,onDragEnd:w,onDragMove:E,onDragCancel:k,onDragOver:j,draggingObject:C}}();return(0,r.jsx)(p.Provider,{value:n,children:t})}},33351:function(e,t,n){"use strict";n.d(t,{z:function(){return m}});var r=n(52322),i=n(44677),a=n(47211),o=n(80373),l=n(87023),s=n(84301),u=n(6391),c=n.n(u),d=n(23094),f=n(90721),h=n(41736),p=n(70899);let m=[{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:u,size:c}}=e;return t?(0,r.jsx)(i.zxk,{variant:"ghost",state:"waiting",children:(0,r.jsx)(a.c_L,{})}):"bucket"===n?(0,r.jsx)(f.s,{name:o}):"directory"===n?(0,r.jsx)(s.I,{path:u,size:c}):(0,r.jsx)(l.e,{path:u})}},{id:"name",label:"name",category:"general",render:function(e){let{data:{path:t,name:n,type:a}}=e,{setFileNamePrefixFilter:o}=(0,h.b)(),l=(0,p.kj)(t).slice(1);return"bucket"===a?(0,r.jsx)(i.xvT,{ellipsis:!0,color:"accent",weight:"semibold",className:"cursor-pointer",children:n}):"directory"===a?(0,r.jsx)(i.xvT,{ellipsis:!0,color:"accent",weight:"semibold",className:"cursor-pointer",onClick:e=>{e.stopPropagation(),o((0,p.rj)(l))},children:l}):(0,r.jsx)(i.xvT,{ellipsis:!0,weight:"semibold",className:"cursor-pointer",onClick:e=>{e.stopPropagation(),o((0,p.rj)(l))},children:l})}},{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 l=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:l?"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:l?"contrast":"verySubtle",className:"flex gap-0.5 items-center",children:l?(0,r.jsx)(a.nDH,{}):(0,r.jsx)(a.Lur,{})})})})})}},{id:"size",label:"size",contentClassName:"justify-end",render:function(e){let{data:{type:t,name:n,size:a}}=e;return"bucket"===t||".."===n?null:(0,r.jsx)(i.m2c,{size:"12",value:new(c())(a),variant:"value",color:"subtle",weight:"regular",format:e=>(0,o.vW)(e.toNumber())})}},{id:"health",label:"health",contentClassName:"justify-center",render:function(e){let{data:t}=e,{type:n,isUploading:l,loaded:s,size:u}=t;if("bucket"===n)return null;if(l){let e=(s/u*100).toFixed(0)+"%";return(0,r.jsx)(i.ua7,{content:"Uploaded ".concat((0,o.vW)(s),"/").concat((0,o.vW)(u)),children:(0,r.jsxs)("div",{className:"flex items-center gap-1 cursor-pointer",children:[(0,r.jsx)(i.xvT,{color:"subtle",children:(0,r.jsx)(a.R$6,{className:"scale-75"})}),(0,r.jsx)(i.xvT,{color:"subtle",size:"12",children:e})]})})}return(0,r.jsx)(d.z,{...t})}}]},43385:function(e,t,n){"use strict";n.d(t,{p:function(){return p},o:function(){return h}});var r=n(52322),i=n(44677),a=n(2784),o=n(55329),l=n(37371),s=n(5632),u=n(41736),c=n(9338),d=n(33351);let f=(0,a.createContext)({}),h=()=>(0,a.useContext)(f);function p(e){let{children:t}=e,n=function(){var e,t;let{sortDirection:n,sortField:r,filters:f,enabledColumns:h}=(0,u.b)(),{limit:p,response:m,refresh:g,dataset:v}=function(e){let{sortDirection:t,sortField:n}=e,{activeBucketName:r,fileNamePrefixFilter:i}=(0,u.b)(),d=(0,s.useRouter)(),f=Number(d.query.limit||50),h=d.query.marker,p=(0,a.useMemo)(()=>{let e={bucket:r,sortBy:n,sortDir:t,marker:h,limit:f};return i&&(e.prefix=i.startsWith("/")?i:"/"+i),e},[r,i,n,t,h,f]),m=(0,o.SD)({disabled:!r,payload:p,config:{swr:{refreshInterval:c.h}}}),g=(0,a.useMemo)(()=>{var e;return{isValidating:m.isValidating,data:null===(e=m.data)||void 0===e?void 0:e.objects}},[m.isValidating,m.data]);return{limit:f,marker:h,response:m,dataset:(0,l.p)({id:"filesFlat",objects:g}).data,refresh:m.mutate}}({sortField:r,sortDirection:n}),y=null===(e=m.data)||void 0===e?void 0:e.nextMarker,x=null===(t=m.data)||void 0===t?void 0:t.hasMore,b=(0,a.useMemo)(()=>v,[v]);return{dataState:(0,i.c2j)(v,m.isValidating,m.error,f),refresh:g,limit:p,datasetPage:b,columns:(0,a.useMemo)(()=>d.z.filter(e=>e.fixed||h.includes(e.id)),[h]),nextMarker:y,isMore:x,pageCount:(null==v?void 0:v.length)||0,sortField:r,filters:f,sortDirection:n}}();return(0,r.jsx)(f.Provider,{value:n,children:t})}},37371:function(e,t,n){"use strict";n.d(t,{p:function(){return c}});var r=n(84779),i=n(69046),a=n(79381),o=n(69960),l=n(70899),s=n(41736),u=n(2784);function c(e){let{id:t,objects:n}=e,{activeBucket:c,activeBucketName:d,fileNamePrefixFilter:f,uploadsList:h,sortDirection:p,sortField:m,activeDirectoryPath:g,buckets:v,setActiveDirectory:y}=(0,s.b)(),{dataset:x}=(0,o.G)(),b=(0,a.ZP)(n.isValidating||v.isValidating?null:[t,d,g],()=>{var e,t;let a={};if(c){if(n.data||h.length){for(let e of(null===(t=n.data)||void 0===t||t.forEach(e=>{let{name:t,size:n,health:r}=e,i=(0,l.v_)(d,t),o=(0,l.vt)(t);a[i]={id:i,path:i,bucket:c,size:n,health:r,name:o,onClick:(0,l.IQ)(t)?()=>{y(e=>e.concat(o.slice(0,-1)))}:void 0,type:(0,l.IQ)(t)?"directory":"file"}}),h))if(e.path.startsWith(g)){if(!e.path.startsWith(g))continue;let t=e.path.slice(g.length).split("/");if(t.length<=1)continue;let n=t[0],r=(0,l.v_)(g,n)+"/";if(a[r])continue;a[r]={id:r,path:r,bucket:c,size:0,health:0,name:n+"/",onClick:()=>{y(e=>e.concat(n))},type:"directory"}}h.filter(e=>{let{path:t}=e;if(!t.startsWith(g))return!1;let n=1===t.slice(g.length).split("/").length,r=f?(0,l.v_)(g,f):g;return n&&t.startsWith(r)}).forEach(e=>{a[e.path]=e})}}else null===(e=v.data)||void 0===e||e.forEach(e=>{let t=e.name,n=(0,l.YF)(t,"");a[t]={id:n,path:n,bucket:e,size:0,health:0,name:t,onClick:()=>{y(e=>e.concat(t))},type:"bucket"}});let o=(0,r.Z)((0,i.Z)(a).map(e=>e[1]),m);return"desc"===p&&o.reverse(),o},{keepPreviousData:!0});return(0,u.useEffect)(()=>{b.mutate()},[n.data,h,x,v.data,f]),b}},41736:function(e,t,n){"use strict";n.d(t,{e:function(){return eo},b:function(){return ea}});var r=n(52322),i=n(44677),a=n(99605),o=n(2784),l=n(72199),s=n(3077),u=n(70899),c=n(55329),d=n(88744);function f(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function h(e,t){var n=f(e,t,"get");return n.get?n.get.call(e):n.value}function p(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function m(e,t,n){p(e,t),t.set(e,n)}function g(e,t,n){var r=f(e,t,"set");return!function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=n}}(e,r,n),n}function v(e,t,n){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return n}function y(e,t){p(e,t),t.add(e)}var x=n(82842),b=new WeakMap,w=new WeakMap,j=new WeakMap,k=new WeakMap,E=new WeakMap,S=new WeakMap,C=new WeakMap,M=new WeakMap,P=new WeakMap,_=new WeakMap,O=new WeakMap,T=new WeakMap,A=new WeakMap,N=new WeakMap,R=new WeakMap,D=new WeakMap,L=new WeakMap,Z=new WeakMap,F=new WeakMap,z=new WeakSet,V=new WeakSet,B=new WeakSet,I=new WeakSet,H=new WeakSet,U=new WeakSet;class W{async create(){var e;let t={bucket:h(this,b),generateKey:!0,path:h(this,w)};return g(this,R,null===(e=(await h(this,S).busUploadCreate.post({payload:t})).data)||void 0===e?void 0:e.uploadID),g(this,A,Array.from({length:Math.ceil(h(this,j).size/h(this,k))},(e,t)=>t+1)),h(this,R)}async start(){let e=new Promise(e=>{g(this,_,e)});v(this,z,q).call(this),await e}async abort(){var e;g(this,D,!0),Object.keys(h(this,T)).map(Number).forEach(e=>{h(this,T)[e].abort()});try{await h(this,S).busUploadAbort.post({payload:{bucket:h(this,b),path:h(this,w),uploadID:h(this,R)}})}catch(e){(0,i.OHV)({title:"Error aborting upload",body:e.message})}null===(e=h(this,_))||void 0===e||e.call(this)}setOnProgress(e){g(this,C,e)}setOnError(e){g(this,M,e)}setOnComplete(e){g(this,P,e)}constructor(e){y(this,z),y(this,V),y(this,B),y(this,I),y(this,H),y(this,U),m(this,b,{writable:!0,value:void 0}),m(this,w,{writable:!0,value:void 0}),m(this,j,{writable:!0,value:void 0}),m(this,k,{writable:!0,value:void 0}),m(this,E,{writable:!0,value:void 0}),m(this,S,{writable:!0,value:void 0}),m(this,C,{writable:!0,value:void 0}),m(this,M,{writable:!0,value:void 0}),m(this,P,{writable:!0,value:void 0}),m(this,_,{writable:!0,value:void 0}),m(this,O,{writable:!0,value:void 0}),m(this,T,{writable:!0,value:void 0}),m(this,A,{writable:!0,value:void 0}),m(this,N,{writable:!0,value:void 0}),m(this,R,{writable:!0,value:void 0}),m(this,D,{writable:!0,value:void 0}),m(this,L,{writable:!0,value:void 0}),m(this,Z,{writable:!0,value:void 0}),m(this,F,{writable:!0,value:void 0}),g(this,L,500),g(this,Z,6e4),g(this,F,h(this,L)),g(this,b,e.bucket),g(this,w,e.path),g(this,k,e.partSize||5242880),g(this,E,Math.min(e.maxConcurrentParts||5,15)),g(this,j,e.file),g(this,S,e.api),g(this,C,e.onProgress||(()=>null)),g(this,M,e.onError||(()=>null)),g(this,P,e.onComplete||(()=>null)),g(this,O,{}),g(this,T,{}),g(this,A,[]),g(this,N,[]),g(this,R,null),g(this,D,!1)}}async function q(){if(h(this,D))return;let e=Object.keys(h(this,T)).length;if(e>=h(this,E))return;if(!h(this,A).length){e||v(this,I,Y).call(this);return}let t=h(this,A).pop(),n=(t-1)*h(this,k),r=h(this,j).slice(n,n+h(this,k));try{await v(this,U,G).call(this,t,r,n,()=>{v(this,z,q).call(this)}),v(this,V,$).call(this)}catch(e){if(e instanceof J)return;if(e instanceof Q){await this.abort(),h(this,M).call(this,e);return}h(this,A).push(t),await v(this,B,K).call(this)}v(this,z,q).call(this)}function $(){g(this,F,h(this,L))}async function K(){let e=(0,x.gw)(h(this,F));g(this,F,Math.min(2*h(this,F),h(this,Z))),await e}async function Y(){try{let e={bucket:h(this,b),path:h(this,w),uploadID:h(this,R),parts:h(this,N).sort((e,t)=>e.partNumber-t.partNumber)};await h(this,S).busUploadComplete.post({payload:e}),h(this,P).call(this)}catch(e){h(this,M).call(this,e)}h(this,_).call(this)}function X(e,t){h(this,O)[e]=t.loaded;let n=Math.min(Object.keys(h(this,O)).map(Number).reduce((e,t)=>e+=h(this,O)[t],0),h(this,j).size),r=h(this,j).size;h(this,C).call(this,{sent:n,total:r,percentage:Math.round(n/r*100)})}async function G(e,t,n,r){let i=new AbortController;h(this,T)[e]=i,r();try{let r=await h(this,S).workerUploadPart.put({params:{key:h(this,w).slice(1),bucket:h(this,b),uploadid:h(this,R),offset:n,partnumber:e},payload:t,config:{axios:{onUploadProgress:t=>v(this,H,X).call(this,e,t),signal:i.signal}}});if(r.error){if("canceled"===r.error)throw new J;throw Error(r.error)}let a=r.headers.etag;if(!a)throw new Q;let o={partNumber:e,eTag:a.replace(/"/g,"")};h(this,N).push(o)}finally{h(this,T)[e]=null,delete h(this,T)[e]}}class J extends Error{constructor(){super("canceled"),this.name="CanceledError"}}class Q extends Error{constructor(){super("No ETag in response, add ETag to Access-Control-Expose-Headers list"),this.name="NoETagError"}}var ee=n(80373);let et=e=>(0,ee.B$)(4).times(e);var en=n(98334),er=n(92762);let ei=(0,o.createContext)({}),ea=()=>(0,o.useContext)(ei);function eo(e){let{children:t}=e,n=function(){var e;let{configurableColumns:t,enabledColumns:n,sortableColumns:r,toggleColumnVisibility:f,setColumnsVisible:h,setColumnsHidden:p,toggleSort:m,setSortDirection:g,setSortField:v,sortField:y,sortDirection:b,resetDefaultColumnVisibility:w}=(0,i.oy6)("renterd/v0/objects",{columns:l.z,columnsDefaultVisible:s.gd,sortOptions:s.Fo,defaultSortField:s.nw}),j=(0,a.xj)(),k=(0,a.UO)(),E=null==k?void 0:k.bucket,{filters:S,setFilter:C,removeFilter:M,removeLastFilter:P,resetFilters:_}=(0,i.Uu5)(),O=(0,o.useMemo)(()=>{var e;return(null===(e=S.find(e=>"fileNamePrefix"===e.id))||void 0===e?void 0:e.value)||""},[S]),T=(0,o.useMemo)(()=>E?[E,...((null==k?void 0:k.path)||[]).map(decodeURIComponent)]:[],[E,null==k?void 0:k.path]),A=(0,c.B$)(),N=null===(e=A.data)||void 0===e?void 0:e.find(e=>e.name===E),R=(0,o.useMemo)(()=>(0,u.rd)(T)+"/",[T]),[D,L]=(0,er.Z)("renterd/v0/explorerMode",{defaultValue:"directory"}),Z=(0,o.useCallback)(e=>{let t=e(T);if(0===t.length){j.push(en._.buckets.index);return}let n=en._.buckets.files.replace("[bucket]",t[0]).replace("[path]",t.slice(1).map(encodeURIComponent).join("/"));j.push(n)},[j,T]),{uploadFiles:F,uploadsMap:z,uploadsList:V}=function(e){let{activeDirectoryPath:t}=e,n=(0,c.B$)(),r=(0,x.Tu)(),a=(0,c.Pt)(),l=(0,c._3)(),s=(0,c.eM)(),f=(0,c.LS)(),[h,p]=(0,o.useState)({}),m=(0,c.fz)({config:{swr:{refreshInterval:(0,i.sWj)(1)}}}),g=(0,o.useCallback)(e=>{let{id:t}=e;p(e=>({...e,[t]:{...e[t],uploadStatus:"uploading",loaded:0}}))},[p]),v=(0,o.useCallback)(e=>{p(t=>t[e.id]?{...t,[e.id]:{...t[e.id],loaded:e.loaded,uploadStatus:e.loaded===e.size?"processing":"uploading",size:e.size}}:t)},[p]),y=(0,o.useCallback)(e=>{p(t=>(delete t[e],{...t}))},[p]),b=(0,o.useCallback)(async e=>{var t;let{path:n,bucket:r,uploadFile:a}=e,o=new W({file:a,path:(0,u.kj)(n),bucket:r.name,api:S.current,partSize:et((null===(t=m.data)||void 0===t?void 0:t.minShards)||1).toNumber(),maxConcurrentParts:5}),l=await o.create();return o.setOnError(e=>{(0,i.OHV)({title:"Error uploading file",body:e.message}),S.current.removeUpload(l)}),o.setOnProgress((0,d.Z)(e=>{S.current.updateUploadProgress({id:l,loaded:e.sent,size:e.total})},1e3)),o.setOnComplete(async()=>{await S.current.mutate(e=>e.startsWith("/bus/objects")),S.current.removeUpload(l),setTimeout(()=>{S.current.checkAndStartUploads()},100)}),{uploadId:l,multipartUpload:o}},[m.data]),w=(0,o.useCallback)(async e=>{let{path:t,bucket:n,name:r,uploadFile:i}=e,{uploadId:a,multipartUpload:o}=await b({path:t,bucket:n,uploadFile:i});p(e=>({...e,[a]:{id:a,path:t,bucket:n,name:r,size:i.size,loaded:0,isUploading:!0,upload:o,uploadStatus:"queued",uploadFile:i,createdAt:new Date().toISOString(),uploadAbort:async()=>{await o.abort(),S.current.removeUpload(a)},type:"file"}}))},[p,b]),j=(0,o.useCallback)(async e=>{let{id:t,upload:n}=e;g({id:t}),n.start()},[g]),k=(0,o.useCallback)(()=>{let e=Object.values(h),t=e.filter(e=>"uploading"===e.uploadStatus).length;return e.filter(e=>"queued"===e.uploadStatus).slice(0,5-t).forEach(e=>{j({id:e.id,upload:e.upload})}),h},[h,j]),E=(0,o.useCallback)(e=>{e.forEach(e=>{var r,a,o;let l=e.path||e.name,s=(0,u.v_)(t,l),c=e.name,d=(0,u.ru)(s),f=null===(r=n.data)||void 0===r?void 0:r.find(e=>e.name===d);h[s]&&((0,i.OHV)({title:"Already uploading file, aborting previous upload.",body:s}),null===(a=(o=h[s]).uploadAbort)||void 0===a||a.call(o)),w({path:s,name:c,bucket:f,uploadFile:e})}),setTimeout(()=>{S.current.checkAndStartUploads()},1e3)},[t,w,n.data,h]),S=(0,o.useRef)({checkAndStartUploads:k,workerUploadPart:a,busUploadComplete:l,busUploadCreate:s,busUploadAbort:f,removeUpload:y,updateUploadProgress:v,updateStatusToUploading:g,mutate:r});(0,o.useEffect)(()=>{S.current={checkAndStartUploads:k,busUploadAbort:f,busUploadComplete:l,busUploadCreate:s,workerUploadPart:a,mutate:r,removeUpload:y,updateUploadProgress:v,updateStatusToUploading:g}},[k,f,l,s,a,r,y,v,g]),(0,o.useEffect)(()=>{let e=setInterval(()=>{S.current.checkAndStartUploads()},3e3);return()=>{clearInterval(e)}},[]);let C=(0,o.useMemo)(()=>Object.entries(h).map(e=>e[1]),[h]);return!function(e){let{uploadsMap:t}=e;(0,o.useEffect)(()=>{let e=Object.values(t).filter(e=>"uploading"===e.uploadStatus),n=t=>{if(e.length>0){let n="Warning, closing the tab will abort all ".concat(e.length," active uploads.");return t.returnValue=n,n}};return e.length>0&&window.addEventListener("beforeunload",n),()=>{window.removeEventListener("beforeunload",n)}},[t])}({uploadsMap:h}),{uploadFiles:E,uploadsMap:h,uploadsList:C}}({activeDirectoryPath:R}),{downloadFiles:B,downloadsList:I,getFileUrl:H,downloadCancel:U}=function(){let e=(0,c.B$)(),t=(0,c.p$)(),[n,r]=(0,o.useState)({}),a=(0,o.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]),l=(0,o.useCallback)(e=>{r(t=>t[e.path]?{...t,[e.path]:{...t[e.path],path:e.path,loaded:e.loaded,size:e.size}}:t)},[r]),s=(0,o.useCallback)(e=>{r(t=>(delete t[e],{...t}))},[r]),f=(0,o.useCallback)(e=>{e.controller.abort()},[]),h=async r=>{r.forEach(async r=>{var o;let c=!1,f=(0,u.ru)(r),h=null===(o=e.data)||void 0===o?void 0:o.find(e=>e.name===f),p=(0,u.vt)(r);if(n[r]){(0,i.OHV)({title:"Already downloading file",body:r});return}let m=new AbortController,g=(0,d.Z)(e=>{c||l({path:r,loaded:e.loaded,size:e.total})},2e3);a({path:r,name:p,bucket:h,loaded:0,size:1,controller:m});let v=await t.get(p,{params:(0,u.W0)(r),config:{axios:{onDownloadProgress:g,signal:m.signal}}});c=!0,v.error&&("canceled"===v.error?(0,i.RFt)({title:"File download canceled"}):(0,i.OHV)({title:"Error downloading file",body:v.error})),s(r)})},p=(0,o.useMemo)(()=>Object.entries(n).map(e=>e[1]),[n]),{settings:m}=(0,x.Hv)();return{downloadFiles:h,downloadsList:p,getFileUrl:(0,o.useCallback)((e,t)=>{let{bucket:n,key:r}=(0,u.W0)(e),i="/worker/objects/".concat(r,"?bucket=").concat(n),a=m.api||location.origin,o=a.startsWith("https")?"https":"http",l=a.replace("https://","").replace("http://","");return t?"".concat(o,"://:").concat(m.password,"@").concat(l,"/api").concat(i):"".concat(o,"://").concat(l,"/api").concat(i)},[m]),downloadCancel:f}}(),q=0===T.length,$=1===T.length,K=T.length>0,Y=(0,o.useCallback)(e=>{C({id:"fileNamePrefix",label:"",value:e})},[C]),X=(0,o.useCallback)(()=>{M("fileNamePrefix")},[M]),G=(0,o.useCallback)((e,t)=>{t?Y(t):X(),Z(()=>e)},[Z,Y,X]),J=(0,o.useCallback)(e=>{G((0,u.gD)(e),(0,u.vt)(e))},[G]),Q=(0,o.useCallback)(e=>{"directory"===D?J(e):Y((0,u.kj)(e).slice(1))},[D,J,Y]),ee=en._.buckets.uploads.replace("[bucket]",E),ei=(0,o.useCallback)(()=>{N&&j.push(ee)},[N,ee,j]),ea=(0,a.jD)(),eo=E&&ea.startsWith(ee),el=(0,o.useCallback)(async()=>{(eo||"directory"!==D)&&(G([E],void 0),L("directory"))},[eo,D,E,L,G]),es=(0,o.useCallback)(async()=>{(eo||"flat"!==D)&&(G([E],(0,u.kj)(R).slice(1)),L("flat"))},[eo,D,E,R,L,G]);return{isViewingBuckets:q,isViewingABucket:K,isViewingRootOfABucket:$,isViewingUploads:eo,buckets:A,activeBucket:N,activeBucketName:E,activeDirectory:T,navigateToUploads:ei,setActiveDirectory:Z,setActiveDirectoryAndFileNamePrefix:G,activeDirectoryPath:R,navigateToModeSpecificFiltering:Q,uploadFiles:F,uploadsMap:z,uploadsList:V,downloadFiles:B,downloadsList:I,downloadCancel:U,configurableColumns:t,enabledColumns:n,sortableColumns:r,toggleColumnVisibility:f,setColumnsVisible:h,setColumnsHidden:p,toggleSort:m,setSortDirection:g,setSortField:v,sortField:y,filters:S,fileNamePrefixFilter:O,setFileNamePrefixFilter:Y,setFilter:C,removeFilter:M,removeLastFilter:P,resetFilters:_,sortDirection:b,resetDefaultColumnVisibility:w,getFileUrl:H,activeExplorerMode:D,setExplorerModeDirectory:el,setExplorerModeFlat:es}}();return(0,r.jsx)(ei.Provider,{value:n,children:t})}},3077:function(e,t,n){"use strict";n.d(t,{Fo:function(){return a},gd:function(){return r},nw:function(){return i}});let r=["type","name","readAccess","size","health"],i="name",a=[{id:"name",label:"name",category:"general"},{id:"health",label:"health",category:"general"},{id:"size",label:"size",category:"general"}]},56328:function(e,t,n){"use strict";n.d(t,{x:function(){return Z},l:function(){return L}});var r,i,a=n(52322),o=n(44677),l=n(55329),s=n(2784);let u=["allow","netAddress","publicKey","lastScan","lastAnnouncement","totalScans","uptime","hasContract","ap_usable","ap_scoreOverall"];var c=n(5632),d=n(47211),f=n(80373),h=n(29193),p=n(62650),m=n(32998),g=n(17448),v=n(82842),y=n(8117),x=n(6391),b=n.n(x);let w=[{id:"actions",label:"",fixed:!0,category:"general",cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:t}=e;return(0,a.jsx)(g.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=!!(null===(t=(0,l.s2)({config:{swr:{dedupingInterval:5e3}}}).data)||void 0===t?void 0:t.length);return(0,a.jsx)(o.ua7,{side:"right",content:(r?"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,a.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,a.jsx)("div",{className:"mt-[5px]",children:(0,a.jsx)(o.xvT,{color:n.isBlocked?"red":"green",children:n.isBlocked?(0,a.jsx)(d.SmH,{}):(0,a.jsx)(d.DI$,{})})}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)(o.xvT,{size:"10",color:n.isOnBlocklist?"red":"verySubtle",noWrap:!0,children:"Blocklist"}),(0,a.jsx)(o.xvT,{size:"10",color:r?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,a.jsx)(o.ua7,{side:"right",content:t.usable?"Host is usable":"Host is not usable",children:(0,a.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,a.jsx)("div",{className:"mt-[5px]",children:(0,a.jsx)(o.xvT,{color:t.usable?"green":"red",children:t.usable?(0,a.jsx)(d.DI$,{}):(0,a.jsx)(d.SmH,{})})}),(0,a.jsx)("div",{className:"flex flex-col",children:t.unusableReasons.map(e=>(0,a.jsx)(o.xvT,{size:"10",noWrap:!0,children:e},e))})]})}):(0,a.jsx)(o.ua7,{side:"right",content:"Autopilot is not configured",children:(0,a.jsx)("div",{className:"mt-[5px]",children:(0,a.jsx)(o.xvT,{color:"subtle",children:(0,a.jsx)(d.I98,{})})})})}},{id:"ap_gouging",label:"gouging",category:"autopilot",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,a.jsx)(o.ua7,{side:"right",content:t.gouging?"Host is price gouging":"Host is not price gouging",children:(0,a.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,a.jsx)("div",{className:"mt-[5px]",children:(0,a.jsx)(o.xvT,{color:t.gouging?"red":"subtle",children:t.gouging?(0,a.jsx)(d.SmH,{}):(0,a.jsx)(d.I98,{})})}),(0,a.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,a.jsx)(o.xvT,{size:"10",noWrap:!0,children:n},t)})})]})}):(0,a.jsx)(o.ua7,{side:"right",content:"Autopilot is not configured",children:(0,a.jsx)("div",{className:"mt-[5px]",children:(0,a.jsx)(o.xvT,{color:"subtle",children:(0,a.jsx)(d.I98,{})})})})}},{id:"lastScan",label:"last scan",category:"general",render:function(e){let{data:t}=e,{workflows:n}=(0,v.D)();if(n.find(e=>{var n;return e.path.startsWith(y.RF)&&(null===(n=e.payload)||void 0===n?void 0:n.hostKey)===t.publicKey}))return(0,a.jsx)(o.xgg,{});let r=(0,h.Z)(new Date(t.lastScan||0),new Date,{addSuffix:!0}),i="",l=null,s="subtle";return t.lastScan||(i="host has not been scanned",l=(0,a.jsx)(d.I98,{}),s="subtle"),t.lastScan&&!t.lastScanSuccess&&(i="host scan failed ".concat(r),l=(0,a.jsx)(d.SmH,{}),s="red"),t.lastScan&&t.lastScanSuccess&&(i="host scan succeeded ".concat(r),l=(0,a.jsx)(d.DI$,{}),s="green"),(0,a.jsx)(o.ua7,{side:"right",content:i,children:(0,a.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,a.jsx)("div",{className:"mt-[5px]",children:(0,a.jsx)(o.xvT,{color:s,children:l})}),t.lastScan&&(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)(o.xvT,{size:"12",noWrap:!0,children:r}),(0,a.jsx)(o.xvT,{color:"subtle",size:"10",noWrap:!0,children:(0,p.Z)(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,a.jsx)(o.ua7,{side:"right",content:n?"Host has active contract":"Host does not have an active contract",children:(0,a.jsx)("div",{className:"mt-[5px]",children:(0,a.jsx)(o.xvT,{color:n?"green":"subtle",children:n?(0,a.jsx)(d.DI$,{}):(0,a.jsx)(d.I98,{})})})})}},{id:"netAddress",label:"address",category:"general",render:e=>{let{data:t,context:n}=e;return(0,a.jsx)(o.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,a.jsx)(o.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 t.lastAnnouncement?(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)(o.xvT,{size:"12",noWrap:!0,children:[(0,h.Z)(new Date,new Date(t.lastAnnouncement))," ago"]}),(0,a.jsx)(o.xvT,{color:"subtle",size:"10",noWrap:!0,children:(0,m.Z)(new Date(t.lastAnnouncement),new Date)})]}):null}},{id:"totalScans",label:"total scans",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,a.jsx)(o.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,a.jsx)(o.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,a.jsx)(o.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,a.jsx)(o.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,a.jsx)(o.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,a.jsx)(o.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,a.jsx)(o.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,a.jsx)(o.m2c,{size:"12",value:t.score,variant:"value",format:e=>e.toPrecision(2)}):(0,a.jsx)(o.ua7,{content:"Autopilot is not configured",children:(0,a.jsx)(o.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,a.jsx)(o.m2c,{size:"12",value:t.scoreBreakdown.age,variant:"value",format:e=>e.toPrecision(2)}):(0,a.jsx)(o.ua7,{content:"Autopilot is not configured",children:(0,a.jsx)(o.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,a.jsx)(o.m2c,{size:"12",value:t.scoreBreakdown.collateral,variant:"value",format:e=>e.toPrecision(2)}):(0,a.jsx)(o.ua7,{content:"Autopilot is not configured",children:(0,a.jsx)(o.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,a.jsx)(o.m2c,{size:"12",value:t.scoreBreakdown.interactions,variant:"value",format:e=>e.toPrecision(2)}):(0,a.jsx)(o.ua7,{content:"Autopilot is not configured",children:(0,a.jsx)(o.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,a.jsx)(o.m2c,{size:"12",value:t.scoreBreakdown.prices,variant:"value",format:e=>e.toPrecision(2)}):(0,a.jsx)(o.ua7,{content:"Autopilot is not configured",children:(0,a.jsx)(o.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,a.jsx)(o.m2c,{size:"12",value:t.scoreBreakdown.storageRemaining,variant:"value",format:e=>e.toPrecision(2)}):(0,a.jsx)(o.ua7,{content:"Autopilot is not configured",children:(0,a.jsx)(o.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,a.jsx)(o.m2c,{size:"12",value:t.scoreBreakdown.uptime,variant:"value",format:e=>e.toPrecision(2)}):(0,a.jsx)(o.ua7,{content:"Autopilot is not configured",children:(0,a.jsx)(o.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,a.jsx)(o.m2c,{size:"12",value:t.scoreBreakdown.version,variant:"value",format:e=>n.isAutopilotConfigured?"-":e.toPrecision(2)}):(0,a.jsx)(o.ua7,{content:"Autopilot is not configured",children:(0,a.jsx)(o.xvT,{color:"verySubtle",children:"-"})})}},{id:"hpt_accountbalancecost",label:"account balance cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","accountbalancecost")},{id:"hpt_collateralcost",label:"collateral cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","collateralcost")},{id:"hpt_contractprice",label:"contract price",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","contractprice")},{id:"hpt_downloadbandwidthcost",label:"download bandwidth cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","downloadbandwidthcost")},{id:"hpt_dropsectorsbasecost",label:"drop sectors base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","dropsectorsbasecost")},{id:"hpt_dropsectorsunitcost",label:"drop sectors unit cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","dropsectorsunitcost")},{id:"hpt_expiry",label:"expiry",category:"priceTable",contentClassName:"w-[120px] justify-end",render:k("priceTable","dropsectorsunitcost")},{id:"hpt_fundaccountcost",label:"fund account cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","fundaccountcost")},{id:"hpt_hassectorbasecost",label:"has sector cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","hassectorbasecost")},{id:"hpt_hostblockheight",label:"host block height",category:"priceTable",contentClassName:"w-[120px] justify-end",render:k("priceTable","hostblockheight")},{id:"hpt_initbasecost",label:"init base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","initbasecost")},{id:"hpt_latestrevisioncost",label:"latest revision cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","latestrevisioncost")},{id:"hpt_maxcollateral",label:"max collateral",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","maxcollateral")},{id:"hpt_maxduration",label:"max duration",category:"priceTable",contentClassName:"w-[120px] justify-end",render:k("priceTable","maxduration")},{id:"hpt_memorytimecost",label:"memory time cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","memorytimecost")},{id:"hpt_readbasecost",label:"read base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","readbasecost")},{id:"hpt_readlengthcost",label:"read length cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","readlengthcost")},{id:"hpt_registryentriesleft",label:"registry entries left",category:"priceTable",contentClassName:"w-[120px] justify-end",render:k("priceTable","registryentriesleft")},{id:"hpt_registryentriestotal",label:"registry entries total",category:"priceTable",contentClassName:"w-[120px] justify-end",render:k("priceTable","registryentriestotal")},{id:"hpt_renewcontractcost",label:"renew contract cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","renewcontractcost")},{id:"hpt_revisionbasecost",label:"revision base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","renewcontractcost")},{id:"hpt_subscriptionmemorycost",label:"subscription memory cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","subscriptionmemorycost")},{id:"hpt_subscriptionnotificationcost",label:"subscription notification cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","subscriptionnotificationcost")},{id:"hpt_swapsectorcost",label:"swap sector cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","swapsectorcost")},{id:"hpt_txnfeemaxrecommended",label:"txn fee max recommended",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","txnfeemaxrecommended")},{id:"hpt_txnfeeminrecommended",label:"txn fee min recommended",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","txnfeeminrecommended")},{id:"hpt_uid",label:"UID",category:"priceTable",contentClassName:"w-[120px] justify-end",render:E("priceTable","uid")},{id:"hpt_updatepricetablecost",label:"update price table cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","updatepricetablecost")},{id:"hpt_uploadbandwidthcost",label:"upload bandwidth cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","uploadbandwidthcost")},{id:"hpt_validity",label:"validity",category:"priceTable",contentClassName:"w-[120px] justify-end",render:k("priceTable","validity")},{id:"hpt_windowsize",label:"window size",category:"priceTable",contentClassName:"w-[120px] justify-end",render:k("priceTable","windowsize")},{id:"hpt_writebasecost",label:"write base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","writebasecost")},{id:"hpt_writelengthcost",label:"write length cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","writelengthcost")},{id:"hpt_writestorecost",label:"write store cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("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,a.jsx)("div",{className:"mt-[5px]",children:(0,a.jsx)(o.xvT,{color:t[r][i]?"green":"red",children:t[r][i]?(0,a.jsx)(d.DI$,{}):(0,a.jsx)(d.SmH,{})})}):null})},{id:"hs_baserpcprice",label:"base RPC price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:j("settings","baserpcprice")},{id:"hs_collateral",label:"collateral",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:j("settings","collateral")},{id:"hs_contractprice",label:"contract price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:j("settings","contractprice")},{id:"hs_downloadbandwidthprice",label:"download bandwidth price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:j("settings","downloadbandwidthprice")},{id:"hs_ephemeralaccountexpiry",label:"ephemeral account expiry",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:k("settings","ephemeralaccountexpiry")},{id:"hs_maxcollateral",label:"max collateral",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:j("settings","maxcollateral")},{id:"hs_maxdownloadbatchsize",label:"max download batch size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:S("settings","maxdownloadbatchsize")},{id:"hs_maxduration",label:"max duration",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:k("settings","maxduration")},{id:"hs_maxephemeralaccountbalance",label:"max ephemeral account balance",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:j("settings","maxephemeralaccountbalance")},{id:"hs_maxrevisebatchsize",label:"max revise batch size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:S("settings","maxrevisebatchsize")},{id:"hs_netaddress",label:"net address",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:E("settings","netaddress")},{id:"hs_remainingstorage",label:"remaining storage",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:S("settings","remainingstorage")},{id:"hs_revisionnumber",label:"revision number",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:k("settings","revisionnumber")},{id:"hs_sectoraccessprice",label:"sector access price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:j("settings","sectoraccessprice")},{id:"hs_sectorsize",label:"sector size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:S("settings","sectorsize")},{id:"hs_siamuxport",label:"siamux port",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:k("settings","siamuxport")},{id:"hs_storageprice",label:"storage price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:j("settings","storageprice")},{id:"hs_totalstorage",label:"total storage",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:S("settings","totalstorage")},{id:"hs_unlockhash",label:"unlock hash",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:E("settings","unlockhash")},{id:"hs_uploadbandwidthprice",label:"upload bandwidth price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:j("settings","uploadbandwidthprice")},{id:"hs_version",label:"verison",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:E("settings","version")},{id:"hs_windowsize",label:"window size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:k("settings","windowsize")}].map(e=>({...e,..."autopilot"===e.category?{icon:(0,a.jsx)(d.n6M,{className:"relative opacity-50 scale-75"}),label:e.label,tip:"autopilot: ".concat(e.label)}:"hostSettings"===e.category?{icon:(0,a.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,a.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 j(e,t){return(0,s.memo)(function(n){let{data:r}=n;return r[e]?(0,a.jsx)(o.ho9,{displayBoth:!0,size:"12",value:new(b())(r[e][t]||0),fixedFiat:4,variant:"value"}):null})}function k(e,t,n){return function(r){let{data:i}=r;return i[e]?(0,a.jsx)(o.m2c,{size:"12",value:new(b())(i[e][t]||0),variant:"value",format:e=>(0,f.yF)(e,{abbreviated:n})}):null}}function E(e,t){return function(n){let{data:r}=n;return r[e]?(0,a.jsx)(o.XxW,{value:r[e][t],size:"12"}):null}}function S(e,t){return function(n){let{data:r}=n;return r[e]?(0,a.jsx)(o.xvT,{size:"12",weight:"semibold",ellipsis:!0,children:(0,f.vW)(r[e][t])}):null}}var C=n(69960);function M(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(b())(e.interactions.uptime||0),downtime:new(b())(e.interactions.downtime||0),successfulInteractions:new(b())(e.interactions.successfulInteractions||0),totalInteractions:new(b())(e.interactions.successfulInteractions+e.interactions.failedInteractions||0),failedInteractions:new(b())(e.interactions.failedInteractions||0),totalScans:new(b())(e.interactions.totalScans||0),activeContractsCount:new(b())((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 P(e){let{host:t,allowlist:n,blocklist:r,isAllowlistActive:i}=e,a=!!(null==n?void 0:n.find(e=>e===t.publicKey)),o=!!(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:a,isOnBlocklist:o,isBlocked:o||!(!i||a)}}function _(e){return{score:new(b())((null==e?void 0:e.score)||0),scoreBreakdown:{age:new(b())((null==e?void 0:e.scoreBreakdown.age)||0),collateral:new(b())((null==e?void 0:e.scoreBreakdown.collateral)||0),interactions:new(b())((null==e?void 0:e.scoreBreakdown.interactions)||0),prices:new(b())((null==e?void 0:e.scoreBreakdown.prices)||0),storageRemaining:new(b())((null==e?void 0:e.scoreBreakdown.storageRemaining)||0),uptime:new(b())((null==e?void 0:e.scoreBreakdown.uptime)||0),version:new(b())((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 O=n(37606),T=n(37769),A=n(85375),N=n(45178),R=n(9338);let D=(0,s.createContext)({}),L=()=>(0,s.useContext)(D);function Z(e){let{children:t}=e,n=function(){var e,t,n,r,i,a,d;let f=(0,c.useRouter)(),[h,p]=(0,s.useState)("list"),m=Number(f.query.limit||50),g=Number(f.query.offset||0),{filters:y,setFilter:x,removeFilter:b,removeLastFilter:j,resetFilters:k}=(0,o.Uu5)(),{dataset:E}=(0,C.G)(),{autopilot:S}=(0,O.q)(),D=(0,s.useMemo)(()=>{let e=[];y.find(e=>"hasActiveContracts"===e.id)&&E&&(e=E.map(e=>e.hostKey));let t=y.find(e=>"publicKeyEquals"===e.id);return t&&e.push(null==t?void 0:t.value),e.length?e:void 0},[y,E]),L=(0,l.S0)({disabled:y.find(e=>"hasActiveContracts"===e.id)&&!E||"on"!==S.status,payload:{limit:m,offset:g,usabilityMode:(null===(e=y.find(e=>"usabilityMode"===e.id))||void 0===e?void 0:e.value)||"all",filterMode:(null===(t=y.find(e=>"filterMode"===e.id))||void 0===t?void 0:t.value)||"all",addressContains:null===(n=y.find(e=>"addressContains"===e.id))||void 0===n?void 0:n.value,keyIn:D},config:{swr:{errorRetryInterval:2e4,refreshInterval:R.h}}}),Z=(0,l.FV)({disabled:"off"!==S.status,payload:{limit:m,offset:g,filterMode:(null===(r=y.find(e=>"filterMode"===e.id))||void 0===r?void 0:r.value)||"all",addressContains:null===(i=y.find(e=>"addressContains"===e.id))||void 0===i?void 0:i.value,keyIn:y.find(e=>"hasActiveContracts"===e.id)&&E?E.map(e=>e.hostKey):void 0},config:{swr:{refreshInterval:R.h}}}),F=(0,l.s2)(),z=(0,l.uf)(),V=!!(null===(a=F.data)||void 0===a?void 0:a.length),{settings:B}=(0,v.Hv)(),I=(0,A.JL)({disabled:!B.siaCentral,config:{swr:{revalidateOnFocus:!1}}});(0,s.useEffect)(()=>{B.siaCentral||p("list")},[B.siaCentral]);let H=(0,s.useMemo)(()=>{var e;return(null===(e=I.data)||void 0===e?void 0:e.hosts)||[]},[I.data]),U=(0,s.useRef)(T.N),W=(0,s.useCallback)(e=>{U.current=e},[U]),[q,$]=(0,s.useState)(),K=(0,s.useCallback)(e=>{let t=document.getElementById(e),n=document.getElementById("scroll-hosts");t&&n&&n.scroll({top:t.offsetTop-50,behavior:"smooth"})},[]),Y=(0,s.useCallback)((e,t)=>{if(q===e){$(void 0);return}$(e),t&&U.current.moveToLocation(t),K(e)},[$,U,q,K]),X=(0,s.useCallback)((e,t)=>{if(q===e){$(void 0);return}$(e),t?U.current.moveToLocation(t):(0,o.OHV)({title:"Geographic location is unknown for host",body:(0,o.$Gg)(e,20)}),K(e)},[$,U,q,K]),G=(0,s.useCallback)((e,t)=>null,[]),J=function(e){let{autopilotStatus:t,regularResponse:n,autopilotResponse:r,allContracts:i,allowlist:a,blocklist:o,isAllowlistActive:l,geoHosts:u,onHostSelect:c}=e;return(0,s.useMemo)(()=>{var e,s;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),...M(e,i),...P({host:e,allowlist:a.data,blocklist:o.data,isAllowlistActive:l}),..._(),location:null==t?void 0:t.location,countryCode:null==t?void 0:t.country_code}}))||null:"on"===t&&(null===(s=r.data)||void 0===s?void 0:s.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),...M(e.host,i),...P({host:e.host,allowlist:a.data,blocklist:o.data,isAllowlistActive:l}),..._(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,a.data,o.data,l,u])}({autopilotStatus:S.status,autopilotResponse:L,regularResponse:Z,allContracts:E,allowlist:F,blocklist:z,isAllowlistActive:V,geoHosts:H,onHostSelect:X}),Q=(0,s.useMemo)(()=>"off"===S.status?["autopilot"]:[],[S.status]),{configurableColumns:ee,enabledColumns:et,toggleColumnVisibility:en,setColumnsVisible:er,setColumnsHidden:ei,toggleSort:ea,setSortDirection:eo,setSortField:el,sortField:es,sortDirection:eu,resetDefaultColumnVisibility:ec}=(0,o.oy6)("renterd/v0/hosts",{columns:w,columnsDefaultVisible:u,disabledCategories:Q}),ed=(0,s.useMemo)(()=>w.filter(e=>et.includes(e.id)),[et]),ef="on"===S.status?L.isValidating:Z.isValidating,eh="on"===S.status?L.error:Z.error,ep=(0,o.c2j)(J,ef,eh,y),em=(0,N.B)(),eg=null===(d=S.state.data)||void 0===d?void 0:d.configured,ev=(0,s.useMemo)(()=>({isAutopilotConfigured:eg,siascanUrl:em}),[eg,em]),ey=(0,s.useMemo)(()=>null==J?void 0:J.filter(e=>e.location),[J]);return{setCmd:W,viewMode:h,activeHost:(0,s.useMemo)(()=>null==J?void 0:J.find(e=>e.publicKey===q),[J,q]),onHostMapHover:G,onHostMapClick:Y,setViewMode:p,hostsWithLocation:ey,error:eh,dataState:ep,offset:g,limit:m,pageCount:(null==J?void 0:J.length)||0,columns:ed,dataset:J,tableContext:ev,configurableColumns:ee,enabledColumns:et,toggleColumnVisibility:en,setColumnsVisible:er,setColumnsHidden:ei,toggleSort:ea,setSortDirection:eo,setSortField:el,sortField:es,sortDirection:eu,resetDefaultColumnVisibility:ec,filters:y,setFilter:x,removeFilter:b,removeLastFilter:j,resetFilters:k}}();return(0,a.jsx)(D.Provider,{value:n,children:t})}},10569:function(e,t,n){"use strict";n.d(t,{Kg:function(){return a},jY:function(){return i}});var r=n(44677);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 a(e){return e.activeContractsCount.gt(0)&&!e.usable?{status:"activeAndUnusable",...i.activeAndUnusable}:e.activeContractsCount.gt(0)?{status:"activeAndUsable",...i.activeAndUsable}:{status:"potentialHost",...i.potentialHost}}},71367:function(e,t,n){"use strict";n.d(t,{f:function(){return v},E:function(){return g}});var r=n(52322),i=n(44677),a=n(5632),o=n(2784),l=n(33962),s=n(47211),u=n(55329),c=n(13762),d=n(97112);function f(e){let{s3Key:t,contentProps:n,buttonProps:a}=e,{openConfirmDialog:l}=(0,d.Rh)(),f=(0,u.FD)(),h=(0,u.KJ)(),p=(0,o.useCallback)(async()=>{var e;let n=(0,c.Z)(null===(e=f.data)||void 0===e?void 0:e.v4Keypairs,t),r=await h.put({params:{key:"s3authentication"},payload:{v4Keypairs:n}});r.error?(0,i.OHV)({title:"Error deleting key",body:r.error}):(0,i.OPV)({title:"Key ".concat(t," removed")})},[f.data,t,h]);return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...a,children:(0,r.jsx)(s.EMN,{})}),contentProps:{align:"start",...n,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:["Key ",t.slice(0,24),"..."]})}),(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{l({title:"Delete key ".concat((0,i.$Gg)(t,15)),action:"Remove",variant:"red",body:(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)(i.nvN,{size:"14",children:"Are you sure you would like to remove the following key?"}),(0,r.jsx)(i.nvN,{size:"14",font:"mono",children:(0,i.$Gg)(t,80)})]}),onConfirm:async()=>{p()}})},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.Jrl,{})}),"Delete key"]})]})}let h=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:{key:t}}=e;return(0,r.jsx)(f,{s3Key:t})}},{id:"key",label:"key",category:"general",render:e=>{let{data:{key:t}}=e;return(0,r.jsx)(i.XxW,{size:"12",value:t,label:"key",maxLength:80})}},{id:"secret",label:"secret",contentClassName:"w-[120px]",category:"general",render:e=>{let{data:{secret:t}}=e;return(0,r.jsx)(i.XxW,{size:"12",value:t,label:"key",maxLength:10,font:"mono"})}}];var p=n(9338);let m=(0,o.createContext)({}),g=()=>(0,o.useContext)(m);function v(e){let{children:t}=e,n=function(){let e=(0,a.useRouter)(),t=Number(e.query.limit||50),n=Number(e.query.offset||0),r=(0,u.FD)({config:{swr:{refreshInterval:p.h}}}),s=(0,o.useMemo)(()=>{var e;return r.data?Object.entries((null===(e=r.data)||void 0===e?void 0:e.v4Keypairs)||{}).map(e=>{let[t,n]=e;return{id:t,key:t,secret:n}})||[]:null},[r.data]),{filters:c,setFilter:d,removeFilter:f,removeLastFilter:m,resetFilters:g}=(0,i.Wdu)(),{configurableColumns:v,enabledColumns:y,sortableColumns:x,toggleColumnVisibility:b,setColumnsVisible:w,setColumnsHidden:j,toggleSort:k,setSortDirection:E,setSortField:S,sortField:C,sortDirection:M,resetDefaultColumnVisibility:P}=(0,i.oy6)("renterd/v0/keys",{columns:h,columnsDefaultVisible:l.gd,sortOptions:l.Fo,defaultSortField:l.nw}),_=(0,i._4u)({dataset:s,filters:c,sortField:C,sortDirection:M}),O=(0,o.useMemo)(()=>_?_.slice(n,n+t):null,[_,n,t]),T=(0,o.useMemo)(()=>h.filter(e=>e.fixed||y.includes(e.id)),[y]),A=(0,i.c2j)(_,r.isValidating,r.error,c),N=(0,o.useMemo)(()=>({}),[]);return{dataState:A,limit:t,offset:n,isLoading:r.isLoading,error:r.error,pageCount:(null==O?void 0:O.length)||0,datasetCount:(null==s?void 0:s.length)||0,datasetFilteredCount:(null==_?void 0:_.length)||0,columns:T,dataset:s,cellContext:N,datasetPage:O,configurableColumns:v,enabledColumns:y,sortableColumns:x,toggleColumnVisibility:b,setColumnsVisible:w,setColumnsHidden:j,toggleSort:k,setSortDirection:E,setSortField:S,sortField:C,filters:c,setFilter:d,removeFilter:f,removeLastFilter:m,resetFilters:g,sortDirection:M,resetDefaultColumnVisibility:P}}();return(0,r.jsx)(m.Provider,{value:n,children:t})}},33962:function(e,t,n){"use strict";n.d(t,{Fo:function(){return a},gd:function(){return r},nw:function(){return i}});let r=["key","secret"],i="key",a=[{id:"key",label:"key",category:"general"},{id:"secret",label:"secret",category:"general"}]},40730:function(e,t,n){"use strict";n.d(t,{n:function(){return g},v:function(){return v}});var r=n(52322),i=n(44677),a=n(55329),o=n(2784),l=n(97112),s=n(6391),u=n.n(s),c=n(5632),d=n(45178),f=n(9338),h=n(80373);let p=[],m=(0,o.createContext)({}),g=()=>(0,o.useContext)(m);function v(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,a.Qq)({params:{limit:t,offset:n},config:{swr:{refreshInterval:f.h}}}),s=(0,a.a0)({config:{swr:{refreshInterval:f.h}}}),{openDialog:m}=(0,l.Rh)(),g=(0,d.B)(),v=(0,o.useMemo)(()=>s.data&&r.data?[...(s.data||[]).map(e=>({type:"transaction",txType:(0,h.le)(e),unconfirmed:!0,siascanUrl:g})),...(r.data||[]).map(e=>({type:"transaction",txType:(0,h.le)(e.raw),hash:(0,i.I13)(e.id),timestamp:new Date(e.timestamp).getTime(),onClick:()=>m("transactionDetails",(0,i.I13)(e.id)),raw:e.raw,inflow:e.inflow,outflow:e.outflow,sc:new(u())(e.inflow).minus(e.outflow),siascanUrl:g})).sort((e,t)=>e.timestampnew Date(new Date().getTime()-30*b).toISOString(),[30,b]),j=(0,a.X1)({params:{start:w,interval:b,n:30}}),k=(0,o.useMemo)(()=>(j.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),[j.data]);return{dataset:v,error:y,dataState:x,offset:n,limit:t,pageCount:(null==v?void 0:v.length)||0,balances:k,metrics:j}}();return(0,r.jsx)(m.Provider,{value:n,children:t})}},88778:function(e,t,n){"use strict";n.d(t,{z:function(){return d}});var r=n(52322),i=n(44677),a=n(70899),o=n(26731),l=n(80373),s=n(32998),u=n(47211);function c(e){let{abort:t}=e;return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,r.jsx)(u.bQp,{})}),contentProps:{align:"start"},children:[(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:t,children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(u._fo,{})}),"Cancel upload"]})]})}let d=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-2 [&+*]:!pl-0",render:function(e){let{data:{uploadAbort:t}}=e;return(0,r.jsx)(c,{abort:t})}},{id:"path",label:"path",contentClassName:"max-w-[600px]",category:"general",render:function(e){let{data:{path:t,id:n}}=e,o=(0,a.kj)(t).slice(1);return(0,r.jsxs)("div",{className:"flex flex-col min-w-0",children:[(0,r.jsx)(i.xvT,{ellipsis:!0,weight:"semibold",size:"14",children:o}),(0,r.jsx)(i.XxW,{value:n,label:"upload ID",size:"10"})]})}},{id:"status",label:"status",category:"general",contentClassName:"w-[200px]",render:function(e){let{data:{loaded:t,size:n,uploadStatus:a,remote:l}}=e;return l?(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:"Uploading from a different session"}):(0,r.jsx)(o.s,{loaded:t,size:n,status:a})}},{id:"size",label:"size",category:"general",render:function(e){let{data:{remote:t,size:n}}=e;return t?null:(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:(0,l.vW)(n)})}},{id:"createdAt",label:"started at",category:"general",render:function(e){let{data:{createdAt:t}}=e;return(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:(0,s.Z)(new Date(t).getTime(),new Date)})}}]},73076:function(e,t,n){"use strict";n.d(t,{V:function(){return m},x:function(){return p}});var r=n(52322),i=n(44677),a=n(99605),o=n(55329),l=n(2784);let s=["path","status","size","createdAt"],u=[];var c=n(88778),d=n(70899),f=n(41736);let h=(0,l.createContext)({}),p=()=>(0,l.useContext)(h);function m(e){let{children:t}=e,n=function(){var e,t;let{uploadsMap:n,activeBucket:r}=(0,f.b)(),h=(0,a.lr)(),p=Number(h.get("limit")||50),m=h.get("marker"),{filters:g,setFilter:v,removeFilter:y,removeLastFilter:x,resetFilters:b}=(0,i.Uu5)(),w=(0,o.LS)(),j=(0,o.bg)({disabled:!r,payload:{bucket:null==r?void 0:r.name,uploadIDMarker:m,limit:p}}),k=(0,l.useCallback)(async()=>{var e,t;return Promise.all(null===(t=j.data)||void 0===t?void 0:null===(e=t.uploads)||void 0===e?void 0:e.map(async e=>{let t=n[e.uploadID];if(t){var i;null===(i=t.uploadAbort)||void 0===i||i.call(t)}else await w.post({payload:{bucket:null==r?void 0:r.name,path:e.path,uploadID:e.uploadID}})}))},[j.data,w,r,n]),E=(0,l.useMemo)(()=>{var e,t;return(null===(t=j.data)||void 0===t?void 0:null===(e=t.uploads)||void 0===e?void 0:e.map(e=>{let t=e.uploadID,i=(0,d.vt)(e.path),a=(0,d.v_)(null==r?void 0:r.name,e.path);return n[t]||{id:t,path:a,bucket:r,name:i,size:1,loaded:1,isUploading:!0,uploadStatus:"uploading",createdAt:e.createdAt,remote:!0,type:"file",uploadAbort:async()=>{await w.post({payload:{bucket:null==r?void 0:r.name,path:e.path,uploadID:e.uploadID}})}}}))||[]},[n,r,j.data,w]),{configurableColumns:S,enabledColumns:C,sortableColumns:M,toggleColumnVisibility:P,setColumnsVisible:_,setColumnsHidden:O,toggleSort:T,setSortDirection:A,setSortField:N,sortField:R,sortDirection:D,resetDefaultColumnVisibility:L}=(0,i.oy6)("renterd/v0/uploads",{columns:c.z,columnsDefaultVisible:s,sortOptions:u,defaultSortField:"path"}),Z=(0,l.useMemo)(()=>c.z.filter(e=>e.fixed||C.includes(e.id)),[C]);return{abortAll:k,dataState:(0,i.c2j)(E,j.isValidating,j.error,g),limit:p,nextMarker:null===(e=j.data)||void 0===e?void 0:e.nextUploadIDMarker,hasMore:null===(t=j.data)||void 0===t?void 0:t.hasMore,isLoading:j.isLoading,error:j.error,pageCount:(null==E?void 0:E.length)||0,columns:Z,datasetPage:E,configurableColumns:S,enabledColumns:C,sortableColumns:M,toggleColumnVisibility:P,setColumnsVisible:_,setColumnsHidden:O,toggleSort:T,setSortDirection:A,setSortField:N,sortField:R,filters:g,setFilter:v,removeFilter:y,removeLastFilter:x,resetFilters:b,sortDirection:D,resetDefaultColumnVisibility:L}}();return(0,r.jsx)(h.Provider,{value:n,children:t})}},82229:function(e,t,n){"use strict";n.d(t,{I:function(){return o}});var r=n(44677),i=n(55329),a=n(2784);function o(){let e=(0,i.ni)();return(0,a.useCallback)((t,n)=>(async()=>{let i=await e.put({payload:{add:t,remove:n}});return i.error?((0,r.OHV)({title:"Error updating allowlist",body:i.error}),!1):(t.length&&(0,r.OPV)({title:"Allowlist updated",body:"".concat(t.map(e=>(0,r.$Gg)(e,20)).join(", ")," added to allowlist.")}),n.length&&(0,r.OPV)({title:"Allowlist updated",body:"".concat(n.map(e=>(0,r.$Gg)(e,20)).join(", ")," removed from allowlist.")}),!0)})(),[e])}},94613:function(e,t,n){"use strict";n.d(t,{l:function(){return o}});var r=n(44677),i=n(55329),a=n(2784);function o(){let e=(0,i.Os)();return(0,a.useCallback)((t,n)=>(async()=>{let i=await e.put({payload:{add:t,remove:n}});return i.error?((0,r.OHV)({title:"Error updating blocklist",body:i.error}),!1):(t.length&&(0,r.RFt)({title:"Blocklist updated",body:"".concat(t.map(e=>(0,r.$Gg)(e,20)).join(", ")," added to blocklist.")}),n.length&&(0,r.RFt)({title:"Blocklist updated",body:"".concat(n.map(e=>(0,r.$Gg)(e,20)).join(", ")," removed from blocklist.")}),!0)})(),[e])}},18121:function(e,t,n){"use strict";n.d(t,{B:function(){return o},V:function(){return a}});var r=n(52322),i=n(47211);let a={excellent:1,good:.5,poor:0};function o(e){let{health:t,size:n,isDirectory:o}=e,l="excellent",s="green",u=t,c=(0,r.jsx)(i.Y3p,{});return t1&&(u=1),t<0&&(u=0),{label:l+" health",color:s,icon:c,displayHealth:u}}},45178:function(e,t,n){"use strict";n.d(t,{B:function(){return a}});var r=n(44677),i=n(55329);function a(){var e;return(null===(e=(0,i.d_)().data)||void 0===e?void 0:e.network)==="zen"?r.nNd.explore.testnetZen:r.nNd.explore.mainnet}},38855:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var r=n(44677),i=n(82842),a=n(55329);function o(){var e,t,n,o;let{isUnlockedAndAuthedRoute:l}=(0,i.Hv)(),s=(0,a.DQ)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.synced)?(0,r.XBW)(60):(0,r.XBW)(10)}}}),u=(0,a.nH)(),c=s.data?null===(e=s.data)||void 0===e?void 0:e.blockHeight:0,d=(0,a.X2)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.scanHeight)>=c?(0,r.XBW)(60):(0,r.XBW)(10)}}}),f=l&&c&&u?Number((100*Math.min(c/u,1)).toFixed(1)):0,h=l&&c&&d.data?Number((100*Math.min(d.data.scanHeight/u,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=d.data)||void 0===o?void 0:o.scanHeight)>=c-1,nodeBlockHeight:c,estimatedBlockHeight:u,syncPercent:f,walletScanPercent:h,moreThan100BlocksToSync:!!c&&!!u&&u-c>100,firstTimeSyncing:!!c&&!!u&&u-c>5e4}}},70899:function(e,t,n){"use strict";n.d(t,{W0:function(){return m},YF:function(){return f},ez:function(){return w},ru:function(){return h},gD:function(){return x},vt:function(){return g},kj:function(){return p},rj:function(){return y},IQ:function(){return v},v_:function(){return d},rd:function(){return b}});var r=n(79200),i=n(81441),a=n(81721),o=function(e,t){for(var n=-1,r=e.length;++n-1;);return n},l=n(36202),s=n(25186),u=/^\s+/,c=function(e,t,n){if((e=(0,s.Z)(e))&&(n||void 0===t))return e.replace(u,"");if(!e||!(t=(0,r.Z)(t)))return e;var a=(0,l.Z)(e),c=o(a,(0,l.Z)(t));return(0,i.Z)(a,c).join("")};function d(e,t){let n=e.endsWith("/")?e.slice(0,-1):e,r=t.startsWith("/")?t.slice(1):t;return"".concat(n,"/").concat(r)}function f(e,t){let n=d(e=c(e,"/"),t);return n.endsWith("/")?n:n+"/"}function h(e){return e.split("/")[0]}function p(e){let t=(e=c(e,"/")).split("/").slice(1).join("/");return"/".concat(t)}function m(e){return{bucket:h(e),key:p(e).slice(1).split("/").map(encodeURIComponent).join("/")}}function g(e){let t=(e=c(e,"/")).split("/");return e.endsWith("/")?"".concat(t[t.length-2],"/"):t[t.length-1]}function v(e){return e.endsWith("/")}function y(e){return(v(e=c(e,"/"))?e.slice(0,-1):e).split("/").slice(0,-1).join("/").concat("/")}function x(e){return v(e=c(e,"/"))?e.slice(0,-1).split("/"):e.split("/").slice(0,-1)}function b(e){return e.join("/")}function w(e){return v(e=c(e,"/"))?e:e.concat("/")}},5184:function(e,t,n){"use strict";n.d(t,{E:function(){return a},e:function(){return i}});var r=n(70899);function i(e,t){let n=String(e.active.id),i=(0,r.rd)(t);e.collisions.length&&(i=".."===e.collisions[0].id?(0,r.rd)(t.slice(0,-1)):String(e.collisions[0].id));let a=(0,r.vt)(n);return{bucket:(0,r.ru)(n),from:(0,r.kj)(n),to:(0,r.kj)((0,r.v_)(i,a)),mode:a.endsWith("/")?"multi":"single"}}function a(e,t){let n=(0,r.v_)((0,r.rj)(e),t),i=(0,r.IQ)(e);return i&&(n=(0,r.ez)(n)),{bucket:(0,r.ru)(e),from:(0,r.kj)(e),to:(0,r.kj)(n),mode:i?"multi":"single"}}},83391:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return z}});var r=n(52322);n(50521);var i=n(44677),a=n(2784),o=n(97112),l=n(69960),s=n(56328),u=n(37606),c=n(70771),d=n(47211),f=n(38855),h=n(98334),p=n(42770),m=n(55329),g=n(6391),v=n.n(g),y=n(80373),x=n(82842),b=n(92762);function w(){var e,t;let{isUnlockedAndAuthedRoute:n}=(0,x.Hv)(),a=(0,u.q)(),{openDialog:l}=(0,o.Rh)(),s=(0,m.X2)(),c=(0,m.e$)({config:{swr:{errorRetryInterval:1e4}}}),[g,w]=(0,b.Z)("v0/renterd/onboarding/maximized",{defaultValue:!0}),k=(0,f.n)(),E=(0,p.F)();if(!n||"on"!==a.autopilot.status)return null;let S=new(v())(s.data?s.data.confirmed+s.data.unconfirmed:0),C=new(v())((null===(e=c.data)||void 0===e?void 0:e.contracts.allowance)||0),M=null===(t=a.autopilot.state.data)||void 0===t?void 0:t.configured,P=k.isSynced,_=S.gt(0),O=!E.active,T=[M,P,_,O],A=T.length,N=T.filter(e=>e).length;return A===N?null:g?(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:()=>w(!1),children:(0,r.jsx)(d.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)(j,{title:(0,r.jsx)(i.rUS,{href:h._.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:M?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(d.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.rUS,{href:h._.config.index,children:(0,r.jsx)(d.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(d.Fs9,{})})]})}),(0,r.jsx)(j,{title:(0,r.jsx)(i.rUS,{href:h._.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:P?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(d.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.xvT,{ellipsis:!0,size:"14",children:[k.syncPercent,"%"]}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(d.hzZ,{})})]})}),(0,r.jsx)(j,{title:(0,r.jsx)(i.rUS,{href:h._.wallet.view,onClick:()=>l("addressDetails"),ellipsis:!0,size:"14",underline:"hover",children:"Step 3: Fund your wallet"}),description:"Fund your wallet with at least ".concat((0,y.Vz)(C)," siacoin to cover the required allowance.").concat(k.isWalletSynced?"":" Balance will not be accurate until wallet is finished scanning."),action:_?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(d.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[!k.isWalletSynced&&(0,r.jsx)(i.ua7,{content:"Wallet scanning progress ".concat(k.walletScanPercent,"%"),children:(0,r.jsxs)(i.xvT,{size:"14",children:[k.walletScanPercent,"%"]})}),(0,r.jsx)(i.rUS,{href:h._.wallet.view,onClick:()=>l("addressDetails"),children:(0,r.jsx)(d.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(d.Fs9,{})})]})}),(0,r.jsx)(j,{title:(0,r.jsx)(i.rUS,{href:h._.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:O?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(d.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)(d.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:()=>w(!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,"/",A," steps complete"]})})})}function j(e){let{title:t,action:n,description:a}=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:a})})]})})}var k=n(41736),E=n(26731);function S(e){let{loaded:t,size:n,path:a,abortTip:o,abort:l,status:s}=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:a}),(0,r.jsx)(i.zxk,{tip:o,variant:"ghost",size:"none",onClick:()=>null==l?void 0:l(),children:(0,r.jsx)(d.PcV,{})})]}),(0,r.jsx)(E.s,{loaded:t,size:n,status:s})]})}var C=n(73076);function M(){let{isUnlockedAndAuthedRoute:e}=(0,x.Hv)(),{downloadsList:t,downloadCancel:n,isViewingUploads:o,navigateToUploads:l}=(0,k.b)(),{pageCount:s}=(0,C.x)(),[u,c]=(0,a.useState)(!0),f=!!s,h=t.length,p=!!h;if(!e||!f&&!p)return null;let m=(0,r.jsxs)("div",{className:"flex gap-2",children:[f&&!o?(0,r.jsxs)(i.zxk,{tip:"Uploads list",onClick:l,className:"flex gap-3",children:[(0,r.jsx)(d.R$6,{className:"opacity-50 scale-75 relative top-px"}),"Active uploads"]}):null,p?(0,r.jsxs)(i.zxk,{tip:"Downloads list",onClick:()=>c(e=>!e),className:"flex gap-3",children:[(0,r.jsx)(d.vzB,{className:"opacity-50 scale-75"}),"Active downloads"]}):null]});return p&&u?(0,r.jsxs)("div",{className:"z-30 fixed bottom-5 left-1/2 -translate-x-1/2 flex flex-col items-center justify-center gap-2",children:[(0,r.jsx)(i.s_4,{className:"w-[400px] flex flex-col max-h-[600px]",children:(0,r.jsx)(i.xrM,{children:p?(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,r.jsx)(i.zxk,{variant:"ghost",onClick:()=>c(!1),children:(0,r.jsx)(d.mli,{})})]}),t.map(e=>(0,r.jsx)(S,{path:e.path,loaded:e.loaded,size:e.size,status:e.loaded===e.size?"processing":"downloading",abort:()=>n(e),abortTip:"Cancel download"},e.id))]}):null})}),m]}):(0,r.jsx)("div",{className:"z-30 fixed bottom-5 left-1/2 -translate-x-1/2",children:m})}var P=n(40730),_=n(71367),O=n(43385),T=n(75618),A=n(88385);function N(e){let{children:t}=e;return(0,r.jsx)(u.w,{children:(0,r.jsx)(c.iV,{children:(0,r.jsx)(o.Tu,{children:(0,r.jsx)(P.v,{children:(0,r.jsx)(l.x,{children:(0,r.jsx)(s.x,{children:(0,r.jsx)(k.e,{children:(0,r.jsx)(C.V,{children:(0,r.jsx)(T.V,{children:(0,r.jsx)(O.p,{children:(0,r.jsx)(_.f,{children:(0,r.jsxs)(A.b,{children:[(0,r.jsx)(w,{}),(0,r.jsx)(M,{}),(0,r.jsx)(o.xQ,{}),t]})})})})})})})})})})})})}var R=n(46058),D=n.n(R),L=n(28863),Z=n.n(L);let F=(0,n(82851).cx)(D().variable,Z().variable);function z(e){let{Component:t,pageProps:n}=e;return(0,r.jsx)(i.PD$,{className:F,fallback:n.fallback,passwordProtectRequestHooks:!0,lockRoutes:h._,children:(0,r.jsx)(N,{children:(0,r.jsx)(t,{...n})})})}},44677:function(e,t,n){"use strict";let r,i,a,o;n.d(t,{tU3:function(){return PM},zXq:function(){return Pz},juT:function(){return M9},Cts:function(){return sq},Z58:function(){return _s},WVB:function(){return c6},zxk:function(){return s_},b0u:function(){return k1},EKh:function(){return sY},npL:function(){return _2},vRO:function(){return _Q},CN9:function(){return _J},ckm:function(){return _I},QHy:function(){return _A},TaT:function(){return _v},eQh:function(){return sG},HfT:function(){return _D},wEc:function(){return _c},ncR:function(){return S3},VqE:function(){return uP},h_2:function(){return dt},Xiv:function(){return dn},Juw:function(){return dr},KpP:function(){return di},fhJ:function(){return me},XOF:function(){return S4},S$c:function(){return Ca},WyV:function(){return _Y},QBj:function(){return _$},yEL:function(){return PL},cB7:function(){return Ce},ZqQ:function(){return S9},IKw:function(){return Co},KZS:function(){return Ct},zsw:function(){return pg},__J:function(){return dg},rUS:function(){return dx},Qjf:function(){return db},xgg:function(){return kQ},TRl:function(){return dj},kFS:function(){return c8},FzK:function(){return __},Clw:function(){return c5},PD$:function(){return _7},Wxm:function(){return hh},uDJ:function(){return M0},_5:function(){return M2},wFK:function(){return M1},s_4:function(){return nE},M9k:function(){return _O},VXA:function(){return _T},nvN:function(){return nj},u5Q:function(){return _u},j4H:function(){return hu},hmz:function(){return hc},J2e:function(){return dU},kod:function(){return d3},xrM:function(){return uS},PhF:function(){return hf},Z0O:function(){return c0},DLL:function(){return P9},KJW:function(){return Pn},rsf:function(){return h_},D_D:function(){return PQ},iA_:function(){return MQ},mQc:function(){return fA},nUL:function(){return fD},drW:function(){return fN},SPt:function(){return fR},t6k:function(){return _L},xvT:function(){return nw},nvn:function(){return fZ},ru1:function(){return _Z},ua7:function(){return sM},mPE:function(){return P0},XxW:function(){return SD},PF9:function(){return SZ},m2c:function(){return SH},YKL:function(){return Sz},ho9:function(){return SI},QUh:function(){return _t},weF:function(){return PY},YNn:function(){return P4},DmW:function(){return P3},O9T:function(){return ve},fVJ:function(){return _a},vQq:function(){return S_},E5z:function(){return ST},HLH:function(){return Op},NrH:function(){return kV},k9c:function(){return kq},fsB:function(){return _V},JMs:function(){return _B},Y_Z:function(){return _n},EJC:function(){return Of},kOJ:function(){return _i},XAn:function(){return k$},Vkc:function(){return c2},sWj:function(){return kz},ort:function(){return kK},xLV:function(){return kI},okB:function(){return kW},AEA:function(){return kU},S5N:function(){return O9},qPQ:function(){return Te},z$:function(){return nk},XBW:function(){return kX},GXN:function(){return kY},I13:function(){return SN},cEb:function(){return fL},MzJ:function(){return hn},$Gr:function(){return ht},OHV:function(){return SC},OPV:function(){return SS},RFt:function(){return SE},$Gg:function(){return SA},_4u:function(){return Os},Wdu:function(){return Ol},Y97:function(){return PC},c2j:function(){return PP},t0Y:function(){return PX},mYE:function(){return _3},u$d:function(){return _5},Z4p:function(){return _4},WsO:function(){return PR},Uu5:function(){return Ou},fb0:function(){return Od},oy6:function(){return Oa},nNd:function(){return P5},BL0:function(){return kB},ivg:function(){return kH}});var l,s,u,c,d,f,h,p,m,g,v,y,x,b,w,j,k,E,S,C,M,P,_,O,T,A,N,R,D,L,Z,F,z,V,B,I,H,U,W,q,$,K,Y,X,G,J,Q,ee,et,en,er,ei,ea=n(52322),eo=n(2784),el=n.t(eo,2),es=n(7896),eu=n(34540),ec=n(26215),ed=n(99575);function ef(e){let t=e+"CollectionProvider",[n,r]=(0,eu.b)(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e+"CollectionSlot",l=eo.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=a(o,n),l=(0,ec.e)(t,i.collectionRef);return eo.createElement(ed.g7,{ref:l},r)}),s=e+"CollectionItemSlot",u="data-radix-collection-item";return[{Provider:e=>{let{scope:t,children:n}=e,r=eo.useRef(null),a=eo.useRef(new Map).current;return eo.createElement(i,{scope:t,itemMap:a,collectionRef:r},n)},Slot:l,ItemSlot:eo.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=eo.useRef(null),l=(0,ec.e)(t,o),c=a(s,n);return eo.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),eo.createElement(ed.g7,{[u]:"",ref:l},r)})},function(t){let n=a(e+"CollectionConsumer",t);return eo.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}var eh=n(41816),ep=n(73597),em=n(72130),eg=n(64680),ev=n(28245),ey=n(26074);let ex="Collapsible",[eb,ew]=(0,eu.b)(ex),[ej,ek]=eb(ex),eE=((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...l}=e,[s=!1,u]=(0,ep.T)({prop:r,defaultProp:i,onChange:o});return(0,eo.createElement)(ej,{scope:n,disabled:a,contentId:(0,ey.M)(),open:s,onOpenToggle:(0,eo.useCallback)(()=>u(e=>!e),[u])},(0,eo.createElement)(em.WV.div,(0,es.Z)({"data-state":eC(s),"data-disabled":a?"":void 0},l,{ref:t})))},"CollapsibleContent"),eS=((e,t)=>{let{forceMount:n,...r}=e,i=ek(eE,e.__scopeCollapsible);return(0,eo.createElement)(ev.z,{present:n||i.open},({present:e})=>(0,eo.createElement)(eS,(0,es.Z)({},r,{ref:t,present:e})))},(0,eo.forwardRef)((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...a}=e,o=ek(eE,n),[l,s]=(0,eo.useState)(r),u=(0,eo.useRef)(null),c=(0,ec.e)(t,u),d=(0,eo.useRef)(0),f=d.current,h=(0,eo.useRef)(0),p=h.current,m=o.open||l,g=(0,eo.useRef)(m),v=(0,eo.useRef)();return(0,eo.useEffect)(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,eg.b)(()=>{let e=u.current;if(e){v.current=v.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,g.current||(e.style.transitionDuration=v.current.transitionDuration,e.style.animationDuration=v.current.animationDuration,e.style.animationFillMode=v.current.animationFillMode),s(r)}},[o.open,r]),(0,eo.createElement)(em.WV.div,(0,es.Z)({"data-state":eC(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!m},a,{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 eC(e){return e?"open":"closed"}let eM="Accordion",eP=["Home","End","ArrowDown","ArrowUp"],[e_,eO,eT]=ef(eM),[eA,eN]=(0,eu.b)(eM,[eT,ew]);ew(),eo.forwardRef((e,t)=>{let{type:n,...r}=e;return eo.createElement(e_.Provider,{scope:e.__scopeAccordion},"multiple"===n?eo.createElement(ez,(0,es.Z)({},r,{ref:t})):eo.createElement(eF,(0,es.Z)({},r,{ref:t})))}).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[eR,eD]=eA(eM),[eL,eZ]=eA(eM,{collapsible:!1}),eF=eo.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:a=!1,...o}=e,[l,s]=(0,ep.T)({prop:n,defaultProp:r,onChange:i});return eo.createElement(eR,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:s,onItemClose:eo.useCallback(()=>a&&s(""),[a,s])},eo.createElement(eL,{scope:e.__scopeAccordion,collapsible:a},eo.createElement(eI,(0,es.Z)({},o,{ref:t}))))}),ez=eo.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o=[],l]=(0,ep.T)({prop:n,defaultProp:r,onChange:i}),s=eo.useCallback(e=>l((t=[])=>[...t,e]),[l]),u=eo.useCallback(e=>l((t=[])=>t.filter(t=>t!==e)),[l]);return eo.createElement(eR,{scope:e.__scopeAccordion,value:o,onItemOpen:s,onItemClose:u},eo.createElement(eL,{scope:e.__scopeAccordion,collapsible:!0},eo.createElement(eI,(0,es.Z)({},a,{ref:t}))))}),[eV,eB]=eA(eM),eI=eo.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:r,...i}=e,a=eo.useRef(null),o=(0,ec.e)(a,t),l=eO(n),s=(0,eh.M)(e.onKeyDown,e=>{var t;if(!eP.includes(e.key))return;let n=e.target,r=l().filter(e=>{var t;return!(null!==(t=e.ref.current)&&void 0!==t&&t.disabled)}),i=r.findIndex(e=>e.ref.current===n),a=r.length;if(-1===i)return;e.preventDefault();let o=i;switch(e.key){case"Home":o=0;break;case"End":o=a-1;break;case"ArrowDown":o=i+1;break;case"ArrowUp":(o=i-1)<0&&(o=a-1)}null===(t=r[o%a].ref.current)||void 0===t||t.focus()});return eo.createElement(eV,{scope:n,disabled:r},eo.createElement(e_.Slot,{scope:n},eo.createElement(em.WV.div,(0,es.Z)({},i,{ref:o,onKeyDown:r?void 0:s}))))}),[eH,eU]=eA("AccordionItem");var eW=n(82851),eq=n(83317);function e$(e){return e.split("-")[0]}function eK(e){return e.split("-")[1]}function eY(e){return["top","bottom"].includes(e$(e))?"x":"y"}function eX(e){return"y"===e?"height":"width"}function eG(e,t,n){let r,{reference:i,floating:a}=e,o=i.x+i.width/2-a.width/2,l=i.y+i.height/2-a.height/2,s=eY(t),u=eX(s),c=i[u]/2-a[u]/2,d="x"===s;switch(e$(t)){case"top":r={x:o,y:i.y-a.height};break;case"bottom":r={x:o,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:l};break;case"left":r={x:i.x-a.width,y:l};break;default:r={x:i.x,y:i.y}}switch(eK(t)){case"start":r[s]-=c*(n&&d?-1:1);break;case"end":r[s]+=c*(n&&d?-1:1)}return r}let eJ=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,l=await (null==o.isRTL?void 0:o.isRTL(t)),s=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=eG(s,r,l),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:a,placement:o,rects:l,platform:s}=t;if(null==n)return{};let u=eQ(r),c={x:i,y:a},d=eY(o),f=eK(o),h=eX(d),p=await s.getDimensions(n),m="y"===d?"top":"left",g="y"===d?"bottom":"right",v=l.reference[h]+l.reference[d]-c[d]-l.floating[h],y=c[d]-l.reference[d],x=await (null==s.getOffsetParent?void 0:s.getOffsetParent(n)),b=x?"y"===d?x.clientHeight||0:x.clientWidth||0:0;0===b&&(b=l.floating[h]);let w=u[m],j=b-p[h]-u[g],k=b/2-p[h]/2+(v/2-y/2),E=e4(w,e2(k,j)),S=("start"===f?u[m]:u[g])>0&&k!==E&&l.reference[h]<=l.floating[h];return{[d]:c[d]-(S?ke5[e])}let e8={start:"end",end:"start"};function e7(e){return e.replace(/start|end/g,e=>e8[e])}let e9=["top","right","bottom","left"];e9.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);let te=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,a;let{placement:o,middlewareData:l,rects:s,initialPlacement:u,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",flipAlignment:g=!0,...v}=e,y=e$(o),x=p||(y!==u&&g?function(e){let t=e6(e);return[e7(e),t,e7(t)]}(u):[e6(u)]),b=[u,...x],w=await e1(t,v),j=[],k=(null==(n=l.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=eK(e),i=eY(e),a=eX(i),o="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=e6(o)),{main:o,cross:e6(o)}}(o,s,await (null==c.isRTL?void 0:c.isRTL(d.floating)));j.push(w[e],w[t])}if(k=[...k,{placement:o,overflows:j}],!j.every(e=>e<=0)){let e=(null!=(r=null==(i=l.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==(a=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:a[0].placement;e&&(n=e);break}case"initialPlacement":n=u}if(o!==n)return{reset:{placement:n}}}return{}}}};function tt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function tn(e){return e9.some(t=>e[t]>=0)}let tr=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=tt(await e1(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:tn(t)}}}case"escaped":{let t=tt(await e1(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:tn(t)}}}default:return{}}}}},ti=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,a=await (null==r.isRTL?void 0:r.isRTL(i.floating)),o=e$(n),l=eK(n),s="x"===eY(n),u=["left","top"].includes(o)?-1:1,c=a&&s?-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 l&&"number"==typeof p&&(h="end"===l?-1*p:p),s?{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 ta(e){return"x"===e?"y":"x"}let to=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=e,u={x:n,y:r},c=await e1(t,s),d=eY(e$(i)),f=ta(d),h=u[d],p=u[f];if(a){let e="y"===d?"bottom":"right";h=e4(h+c["y"===d?"top":"left"],e2(h,h-c[e]))}if(o){let e="y"===f?"bottom":"right";p=e4(p+c["y"===f?"top":"left"],e2(p,p-c[e]))}let m=l.fn({...t,[d]:h,[f]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}},tl=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:l=0,mainAxis:s=!0,crossAxis:u=!0}=e,c={x:n,y:r},d=eY(i),f=ta(d),h=c[d],p=c[f],m="function"==typeof l?l({...a,placement:i}):l,g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){let e="y"===d?"height":"width",t=a.reference[d]-a.floating[e]+g.mainAxis,n=a.reference[d]+a.reference[e]-g.mainAxis;hn&&(h=n)}if(u){var v,y,x,b;let e="y"===d?"width":"height",t=["top","left"].includes(e$(i)),n=a.reference[f]-a.floating[e]+(t&&null!=(v=null==(y=o.offset)?void 0:y[f])?v:0)+(t?0:g.crossAxis),r=a.reference[f]+a.reference[e]+(t?0:null!=(x=null==(b=o.offset)?void 0:b[f])?x:0)-(t?g.crossAxis:0);pr&&(p=r)}return{[d]:h,[f]:p}}}};function ts(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function tu(e){if(null==e)return window;if(!ts(e)){let t=e.ownerDocument;return t&&t.defaultView||window}return e}function tc(e){return tu(e).getComputedStyle(e)}function td(e){return ts(e)?"":e?(e.nodeName||"").toLowerCase():""}function tf(){let e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function th(e){return e instanceof tu(e).HTMLElement}function tp(e){return e instanceof tu(e).Element}function tm(e){return"undefined"!=typeof ShadowRoot&&(e instanceof tu(e).ShadowRoot||e instanceof ShadowRoot)}function tg(e){let{overflow:t,overflowX:n,overflowY:r}=tc(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function tv(e){let t=/firefox/i.test(tf()),n=tc(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 ty(){return!/^((?!chrome|android).)*safari/i.test(tf())}let tx=Math.min,tb=Math.max,tw=Math.round;function tj(e,t,n){var r,i,a,o;void 0===t&&(t=!1),void 0===n&&(n=!1);let l=e.getBoundingClientRect(),s=1,u=1;t&&th(e)&&(s=e.offsetWidth>0&&tw(l.width)/e.offsetWidth||1,u=e.offsetHeight>0&&tw(l.height)/e.offsetHeight||1);let c=tp(e)?tu(e):window,d=!ty()&&n,f=(l.left+(d&&null!=(r=null==(i=c.visualViewport)?void 0:i.offsetLeft)?r:0))/s,h=(l.top+(d&&null!=(a=null==(o=c.visualViewport)?void 0:o.offsetTop)?a:0))/u,p=l.width/s,m=l.height/u;return{width:p,height:m,top:h,right:f+p,bottom:h+m,left:f,x:f,y:h}}function tk(e){return((e instanceof tu(e).Node?e.ownerDocument:e.document)||window.document).documentElement}function tE(e){return tp(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function tS(e){return tj(tk(e)).left+tE(e).scrollLeft}function tC(e){return"html"===td(e)?e:e.assignedSlot||e.parentNode||(tm(e)?e.host:null)||tk(e)}function tM(e){return th(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function tP(e){let t=tu(e),n=tM(e);for(;n&&["table","td","th"].includes(td(n))&&"static"===getComputedStyle(n).position;)n=tM(n);return n&&("html"===td(n)||"body"===td(n)&&"static"===getComputedStyle(n).position&&!tv(n))?t:n||function(e){let t=tC(e);for(tm(t)&&(t=t.host);th(t)&&!["html","body"].includes(td(t));){if(tv(t))return t;t=t.parentNode}return null}(e)||t}function t_(e){if(th(e))return{width:e.offsetWidth,height:e.offsetHeight};let t=tj(e);return{width:t.width,height:t.height}}function tO(e,t){var n;void 0===t&&(t=[]);let r=function e(t){let n=tC(t);return["html","body","#document"].includes(td(n))?t.ownerDocument.body:th(n)&&tg(n)?n:e(n)}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),a=tu(r),o=i?[a].concat(a.visualViewport||[],tg(r)?r:[]):r,l=t.concat(o);return i?l:l.concat(tO(o))}function tT(e,t,n){return"viewport"===t?e0(function(e,t){let n=tu(e),r=tk(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,l=0,s=0;if(i){a=i.width,o=i.height;let e=ty();(e||!e&&"fixed"===t)&&(l=i.offsetLeft,s=i.offsetTop)}return{width:a,height:o,x:l,y:s}}(e,n)):tp(t)?function(e,t){let n=tj(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):e0(function(e){var t;let n=tk(e),r=tE(e),i=null==(t=e.ownerDocument)?void 0:t.body,a=tb(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=tb(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+tS(e),s=-r.scrollTop;return"rtl"===tc(i||n).direction&&(l+=tb(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:l,y:s}}(tk(e)))}let tA={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[..."clippingAncestors"===n?function(e){let t=tO(e),n=["absolute","fixed"].includes(tc(e).position)&&th(e)?tP(e):e;return tp(n)?t.filter(e=>tp(e)&&function(e,t){let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&tm(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==td(e)):[]}(t):[].concat(n),r],o=a[0],l=a.reduce((e,n)=>{let r=tT(t,n,i);return e.top=tb(r.top,e.top),e.right=tx(r.right,e.right),e.bottom=tx(r.bottom,e.bottom),e.left=tb(r.left,e.left),e},tT(t,o,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=th(n),a=tk(n);if(n===a)return t;let o={scrollLeft:0,scrollTop:0},l={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==td(n)||tg(a))&&(o=tE(n)),th(n))){let e=tj(n,!0);l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{...t,x:t.x-o.scrollLeft+l.x,y:t.y-o.scrollTop+l.y}},isElement:tp,getDimensions:t_,getOffsetParent:tP,getDocumentElement:tk,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:function(e,t,n){let r=th(t),i=tk(t),a=tj(e,r&&function(e){let t=tj(e);return tw(t.width)!==e.offsetWidth||tw(t.height)!==e.offsetHeight}(t),"fixed"===n),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};if(r||!r&&"fixed"!==n){if(("body"!==td(t)||tg(i))&&(o=tE(t)),th(t)){let e=tj(t,!0);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=tS(i))}return{x:a.left+o.scrollLeft-l.x,y:a.top+o.scrollTop-l.y,width:a.width,height:a.height}}(t,tP(n),r),floating:{...t_(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===tc(e).direction};function tN(e,t,n,r){void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=!0,animationFrame:l=!1}=r,s=i&&!l,u=a&&!l,c=s||u?[...tp(e)?tO(e):[],...tO(t)]:[];c.forEach(e=>{s&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let d,f=null;if(o){let r=!0;f=new ResizeObserver(()=>{r||n(),r=!1}),tp(e)&&!l&&f.observe(e),f.observe(t)}let h=l?tj(e):null;return l&&function t(){let r=tj(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=>{s&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(d)}}let tR=(e,t,n)=>eJ(e,t,{platform:tA,...n});var tD=n(28316),tL="undefined"!=typeof document?eo.useLayoutEffect:eo.useEffect;function tZ(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:i}=void 0===e?{}:e,a=eo.useRef(null),o=eo.useRef(null),l=function(e){let t=eo.useRef(e);return tL(()=>{t.current=e}),t}(i),s=eo.useRef(null),[u,c]=eo.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=eo.useState(t);!function e(t,n){let r,i,a;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=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;0!=i--;){let r=a[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=eo.useCallback(()=>{a.current&&o.current&&tR(a.current,o.current,{middleware:d,placement:n,strategy:r}).then(e=>{p.current&&tD.flushSync(()=>{c(e)})})},[d,n,r]);tL(()=>{p.current&&h()},[h]);let p=eo.useRef(!1);tL(()=>(p.current=!0,()=>{p.current=!1}),[]);let m=eo.useCallback(()=>{if("function"==typeof s.current&&(s.current(),s.current=null),a.current&&o.current){if(l.current){let e=l.current(a.current,o.current,h);s.current=e}else h()}},[h,l]),g=eo.useCallback(e=>{a.current=e,m()},[m]),v=eo.useCallback(e=>{o.current=e,m()},[m]),y=eo.useMemo(()=>({reference:a,floating:o}),[]);return eo.useMemo(()=>({...u,update:h,refs:y,reference:g,floating:v}),[u,h,y,g,v])}let tF=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 e3({element:t.current,padding:n}).fn(e)}else if(t)return e3({element:t,padding:n}).fn(e);return{}}}},tz=(0,eo.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,eo.createElement)(em.WV.svg,(0,es.Z)({},a,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,eo.createElement)("polygon",{points:"0,0 30,0 15,10"}))});function tV(e){let[t,n]=(0,eo.useState)(void 0);return(0,eg.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 a=t[0];if("borderBoxSize"in a){let e=a.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 tB="Popper",[tI,tH]=(0,eu.b)(tB),[tU,tW]=tI(tB),tq=(0,eo.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=tW("PopperAnchor",n),o=(0,eo.useRef)(null),l=(0,ec.e)(t,o);return(0,eo.useEffect)(()=>{a.onAnchorChange((null==r?void 0:r.current)||o.current)}),r?null:(0,eo.createElement)(em.WV.div,(0,es.Z)({},i,{ref:l}))}),t$="PopperContent",[tK,tY]=tI(t$),[tX,tG]=tI(t$,{hasParent:!1,positionUpdateFns:new Set}),tJ=(0,eo.forwardRef)((e,t)=>{var n,r,i,a,o,l,s,u;let{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:h="center",alignOffset:p=0,arrowPadding:m=0,collisionBoundary:g=[],collisionPadding:v=0,sticky:y="partial",hideWhenDetached:x=!1,avoidCollisions:b=!0,...w}=e,j=tW(t$,c),[k,E]=(0,eo.useState)(null),S=(0,ec.e)(t,e=>E(e)),[C,M]=(0,eo.useState)(null),P=tV(C),_=null!==(n=null==P?void 0:P.width)&&void 0!==n?n:0,O=null!==(r=null==P?void 0:P.height)&&void 0!==r?r:0,T="number"==typeof v?v:{top:0,right:0,bottom:0,left:0,...v},A=Array.isArray(g)?g:[g],N=A.length>0,R={padding:T,boundary:A.filter(t2),altBoundary:N},{reference:D,floating:L,strategy:Z,x:F,y:z,placement:V,middlewareData:B,update:I}=tZ({strategy:"fixed",placement:d+("center"!==h?"-"+h:""),whileElementsMounted:tN,middleware:[ti({mainAxis:f+O,alignmentAxis:p}),b?to({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?tl():void 0,...R}):void 0,C?tF({element:C,padding:m}):void 0,b?te({...R}):void 0,t4({arrowWidth:_,arrowHeight:O}),x?tr({strategy:"referenceHidden"}):void 0].filter(t1)});(0,eg.b)(()=>{D(j.anchor)},[D,j.anchor]);let H=null!==F&&null!==z,[U,W]=t3(V),q=null===(i=B.arrow)||void 0===i?void 0:i.x,$=null===(a=B.arrow)||void 0===a?void 0:a.y,K=(null===(o=B.arrow)||void 0===o?void 0:o.centerOffset)!==0,[Y,X]=(0,eo.useState)();(0,eg.b)(()=>{k&&X(window.getComputedStyle(k).zIndex)},[k]);let{hasParent:G,positionUpdateFns:J}=tG(t$,c),Q=!G;(0,eo.useLayoutEffect)(()=>{if(!Q)return J.add(I),()=>{J.delete(I)}},[Q,J,I]),(0,eo.useLayoutEffect)(()=>{Q&&H&&Array.from(J).reverse().forEach(e=>requestAnimationFrame(e))},[Q,H,J]);let ee={"data-side":U,"data-align":W,...w,ref:S,style:{...w.style,animation:H?void 0:"none",opacity:null!==(l=B.hide)&&void 0!==l&&l.referenceHidden?0:void 0}};return(0,eo.createElement)("div",{ref:L,"data-radix-popper-content-wrapper":"",style:{position:Z,left:0,top:0,transform:H?`translate3d(${Math.round(F)}px, ${Math.round(z)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[null===(s=B.transformOrigin)||void 0===s?void 0:s.x,null===(u=B.transformOrigin)||void 0===u?void 0:u.y].join(" ")}},(0,eo.createElement)(tK,{scope:c,placedSide:U,onArrowChange:M,arrowX:q,arrowY:$,shouldHideArrow:K},Q?(0,eo.createElement)(tX,{scope:c,hasParent:!0,positionUpdateFns:J},(0,eo.createElement)(em.WV.div,ee)):(0,eo.createElement)(em.WV.div,ee)))}),tQ={top:"bottom",right:"left",bottom:"top",left:"right"},t0=(0,eo.forwardRef)(function(e,t){let{__scopePopper:n,...r}=e,i=tY("PopperArrow",n),a=tQ[i.placedSide];return(0,eo.createElement)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]: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,eo.createElement)(tz,(0,es.Z)({},r,{ref:t,style:{...r.style,display:"block"}})))});function t1(e){return void 0!==e}function t2(e){return null!==e}let t4=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,a,o;let{placement:l,rects:s,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]=t3(l),m={start:"0%",center:"50%",end:"100%"}[p],g=(null!==(r=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+d/2,v=(null!==(a=null===(o=u.arrow)||void 0===o?void 0:o.y)&&void 0!==a?a:0)+f/2,y="",x="";return"bottom"===h?(y=c?m:`${g}px`,x=`${-f}px`):"top"===h?(y=c?m:`${g}px`,x=`${s.floating.height+f}px`):"right"===h?(y=`${-f}px`,x=c?m:`${v}px`):"left"===h&&(y=`${s.floating.width+f}px`,x=c?m:`${v}px`),{data:{x:y,y:x}}}});function t3(e){let[t,n="center"]=e.split("-");return[t,n]}let t5=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,eo.useState)(null);return(0,eo.createElement)(tU,{scope:t,anchor:r,onAnchorChange:i},n)};var t6=n(6500);let t8=(0,eo.forwardRef)((e,t)=>(0,eo.createElement)(em.WV.span,(0,es.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}}))),[t7,t9]=(0,eu.b)("Tooltip",[tH]),ne=tH(),nt="tooltip.open",[nn,nr]=t7("TooltipProvider"),ni="Tooltip",[na,no]=t7(ni),nl="TooltipTrigger",ns=(0,eo.forwardRef)((e,t)=>{let{__scopeTooltip:n,...r}=e,i=no(nl,n),a=nr(nl,n),o=ne(n),l=(0,eo.useRef)(null),s=(0,ec.e)(t,l,i.onTriggerChange),u=(0,eo.useRef)(!1),c=(0,eo.useRef)(!1),d=(0,eo.useCallback)(()=>u.current=!1,[]);return(0,eo.useEffect)(()=>()=>document.removeEventListener("pointerup",d),[d]),(0,eo.createElement)(tq,(0,es.Z)({asChild:!0},o),(0,eo.createElement)(em.WV.button,(0,es.Z)({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},r,{ref:s,onPointerMove:(0,eh.M)(e.onPointerMove,e=>{"touch"===e.pointerType||c.current||a.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:(0,eh.M)(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:(0,eh.M)(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:(0,eh.M)(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:(0,eh.M)(e.onBlur,i.onClose),onClick:(0,eh.M)(e.onClick,e=>{0===e.detail&&i.onClose()})})))}),nu="TooltipPortal",[nc,nd]=t7(nu,{forceMount:void 0}),nf="TooltipContent",nh=(0,eo.forwardRef)((e,t)=>{let n=nd(nf,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...a}=e,o=no(nf,e.__scopeTooltip);return(0,eo.createElement)(ev.z,{present:r||o.open},o.disableHoverableContent?(0,eo.createElement)(nv,(0,es.Z)({side:i},a,{ref:t})):(0,eo.createElement)(np,(0,es.Z)({side:i},a,{ref:t})))}),np=(0,eo.forwardRef)((e,t)=>{let n=no(nf,e.__scopeTooltip),r=nr(nf,e.__scopeTooltip),i=(0,eo.useRef)(null),a=(0,ec.e)(t,i),[o,l]=(0,eo.useState)(null),{trigger:s,onClose:u}=n,c=i.current,{onPointerInTransitChange:d}=r,f=(0,eo.useCallback)(()=>{l(null),d(!1)},[d]),h=(0,eo.useCallback)((e,t)=>{let n=e.currentTarget,r=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),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:return null}}({x:e.clientX,y:e.clientY},n.getBoundingClientRect()),i="right"===r||"bottom"===r?-5:5;l(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)}(["right"===r||"left"===r?{x:e.clientX+i,y:e.clientY}:{x:e.clientX,y:e.clientY+i},...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())])),d(!0)},[d]);return(0,eo.useEffect)(()=>()=>f(),[f]),(0,eo.useEffect)(()=>{if(s&&c){let e=e=>h(e,c),t=e=>h(e,s);return s.addEventListener("pointerleave",e),c.addEventListener("pointerleave",t),()=>{s.removeEventListener("pointerleave",e),c.removeEventListener("pointerleave",t)}}},[s,c,h,f]),(0,eo.useEffect)(()=>{if(o){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==s?void 0:s.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,a=t.length-1;er!=u>r&&n<(s-o)*(r-l)/(u-l)+o&&(i=!i)}return i}(n,o);r?f():i&&(f(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[s,c,o,u,f]),(0,eo.createElement)(nv,(0,es.Z)({},e,{ref:a}))}),[nm,ng]=t7(ni,{isInside:!1}),nv=(0,eo.forwardRef)((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...l}=e,s=no(nf,n),u=ne(n),{onClose:c}=s;return(0,eo.useEffect)(()=>(document.addEventListener(nt,c),()=>document.removeEventListener(nt,c)),[c]),(0,eo.useEffect)(()=>{if(s.trigger){let e=e=>{let t=e.target;null!=t&&t.contains(s.trigger)&&c()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[s.trigger,c]),(0,eo.createElement)(eq.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:c},(0,eo.createElement)(tJ,(0,es.Z)({"data-state":s.stateAttribute},u,l,{ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),(0,eo.createElement)(ed.A4,null,r),(0,eo.createElement)(nm,{scope:n,isInside:!0},(0,eo.createElement)(t8,{id:s.contentId,role:"tooltip"},i||r))))}),ny=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:o,delayDuration:l}=e,s=nr(ni,e.__scopeTooltip),u=ne(t),[c,d]=(0,eo.useState)(null),f=(0,ey.M)(),h=(0,eo.useRef)(0),p=null!=o?o:s.disableHoverableContent,m=null!=l?l:s.delayDuration,g=(0,eo.useRef)(!1),[v=!1,y]=(0,ep.T)({prop:r,defaultProp:i,onChange:e=>{e?(s.onOpen(),document.dispatchEvent(new CustomEvent(nt))):s.onClose(),null==a||a(e)}}),x=(0,eo.useMemo)(()=>v?g.current?"delayed-open":"instant-open":"closed",[v]),b=(0,eo.useCallback)(()=>{window.clearTimeout(h.current),g.current=!1,y(!0)},[y]),w=(0,eo.useCallback)(()=>{window.clearTimeout(h.current),y(!1)},[y]),j=(0,eo.useCallback)(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{g.current=!0,y(!0)},m)},[m,y]);return(0,eo.useEffect)(()=>()=>window.clearTimeout(h.current),[]),(0,eo.createElement)(t5,u,(0,eo.createElement)(na,{scope:t,contentId:f,open:v,stateAttribute:x,trigger:c,onTriggerChange:d,onTriggerEnter:(0,eo.useCallback)(()=>{s.isOpenDelayed?j():b()},[s.isOpenDelayed,j,b]),onTriggerLeave:(0,eo.useCallback)(()=>{p?w():window.clearTimeout(h.current)},[w,p]),onOpen:b,onClose:w,disableHoverableContent:p},n))},nx=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=no(nu,t);return(0,eo.createElement)(nc,{scope:t,forceMount:n},(0,eo.createElement)(ev.z,{present:n||a.open},(0,eo.createElement)(t6.h,{asChild:!0,container:i},r)))},nb=(0,eW.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"}}),nw=eo.forwardRef((e,t)=>{let{tag:n="span",className:r,font:i,color:a,weight:o,size:l,scaleSize:s,noWrap:u,underline:c,ellipsis:d,wrapEllipsis:f,...h}=e;return(0,ea.jsx)(n,{ref:t,className:(0,eW.cx)(r,nb({font:i,color:a,weight:o,size:l,scaleSize:s,underline:c,noWrap:u,ellipsis:d,wrapEllipsis:f})),...h})}),nj=eo.forwardRef((e,t)=>{let{size:n="18",...r}=e;return(0,ea.jsx)(nw,{tag:"p",...r,ref:t,weight:"regular",scaleSize:n,color:"subtle",className:(0,eW.cx)("leading-relaxed md:leading-relaxed",e.className)})}),nk=(0,eW.j)(["transition-shadow ease-in-out duration-300","shadow-sm hover:shadow","rounded","border"],{variants:{color:{default:["bg-white dark:bg-graydark-200","border-gray-400 dark:border-graydark-400"],subtle:["border-gray-200 dark:border-graydark-200"]}},defaultVariants:{color:"default"}}),nE=eo.forwardRef((e,t)=>{let{className:n,color:r,...i}=e;return(0,ea.jsx)("div",{ref:t,className:nk({className:n,color:r}),...i})});var nS=n(93542);let nC=(void 0===nS||nS.env,"production"),nM=1/60*1e3,nP="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),n_="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(nP()),nM),nO=!0,nT=!1,nA=!1,nN={delta:0,timestamp:0},nR=["read","update","preRender","render","postRender"],nD=nR.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,a=!1,o=new WeakSet,l={schedule:(e,a=!1,l=!1)=>{let s=l&&i,u=s?t:n;return a&&o.add(e),-1===u.indexOf(e)&&(u.push(e),s&&i&&(r=t.length)),e},cancel:e=>{let t=n.indexOf(e);-1!==t&&n.splice(t,1),o.delete(e)},process:s=>{if(i){a=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length)for(let n=0;nnT=!0),e),{}),nL=nR.reduce((e,t)=>{let n=nD[t];return e[t]=(e,t=!1,r=!1)=>(nT||nB(),n.schedule(e,t,r)),e},{}),nZ=nR.reduce((e,t)=>(e[t]=nD[t].cancel,e),{}),nF=nR.reduce((e,t)=>(e[t]=()=>nD[t].process(nN),e),{}),nz=e=>nD[e].process(nN),nV=e=>{nT=!1,nN.delta=nO?nM:Math.max(Math.min(e-nN.timestamp,40),1),nN.timestamp=e,nA=!0,nR.forEach(nz),nA=!1,nT&&(nO=!1,n_(nV))},nB=()=>{nT=!0,nO=!0,nA||n_(nV)},nI=()=>nN,nH="undefined"!=typeof document,nU=nH?eo.useLayoutEffect:eo.useEffect;function nW(){let e=(0,eo.useRef)(!1);return nU(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let nq=(0,eo.createContext)(null);function n$(e){let t=(0,eo.useRef)(null);return null===t.current&&(t.current=e()),t.current}class nK extends eo.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 nY({children:e,isPresent:t}){let n=(0,eo.useId)(),r=(0,eo.useRef)(null),i=(0,eo.useRef)({width:0,height:0,top:0,left:0});return(0,eo.useInsertionEffect)(()=>{let{width:e,height:a,top:o,left:l}=i.current;if(t||!r.current||!e||!a)return;r.current.dataset.motionPopId=n;let s=document.createElement("style");return document.head.appendChild(s),s.sheet&&s.sheet.insertRule(` + */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,x=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case a:case l:case o:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case g:case m:case s:return e;default:return t}}case i:return t}}}function j(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=s,t.Element=r,t.ForwardRef=f,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=l,t.StrictMode=o,t.Suspense=h,t.isAsyncMode=function(e){return j(e)||w(e)===c},t.isConcurrentMode=j,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===o},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===l||e===o||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===s||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===x||e.$$typeof===b||e.$$typeof===v)},t.typeOf=w},73887:function(e,t,n){"use strict";e.exports=n(43459)},62333:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */t.read=function(e,t,n,r,i){var a,o,l=8*i-r-1,s=(1<>1,c=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,a=h&(1<<-c)-1,h>>=-c,c+=l;c>0;a=256*a+e[t+d],d+=f,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=r;c>0;o=256*o+e[t+d],d+=f,c-=8);if(0===a)a=1-u;else{if(a===s)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,r),a-=u}return(h?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,l,s,u=8*a-i-1,c=(1<>1,f=23===i?5960464477539062e-23:0,h=r?0:a-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(l=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+d>=1?t+=f/s:t+=f*Math.pow(2,1-d),t*s>=2&&(o++,s/=2),o+d>=c?(l=0,o=c):o+d>=1?(l=(t*s-1)*Math.pow(2,i),o+=d):(l=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[n+h]=255&l,h+=p,l/=256,i-=8);for(o=o<0;e[n+h]=255&o,h+=p,o/=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),a=n(98138),o=n(4174),l=n(7942);function s(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 a=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,a=Object(t),o=r(t),l=o.length;l--;){var s=o[e?l:++i];if(!1===n(a[s],s,a))break}return t}}},83126:function(e,t,n){var r=n(23895),i=n(33880),a=n(8435),o=n(66188);e.exports=function(e){return function(t){var n=i(t=o(t))?a(t):void 0,l=n?n[0]:t.charAt(0),s=n?r(n,1).join(""):t.slice(1);return l[e]()+s}}},34311:function(e,t,n){var r=n(81207),i=n(97329),a=n(11618),o=RegExp("['’]","g");e.exports=function(e){return function(t){return r(a(i(t).replace(o,"")),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),a=n(59950);e.exports=function(e,t,n,o,l,s){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var f=s.get(e),h=s.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,g=2&n?new r:void 0;for(s.set(e,t),s.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),a=n(10326);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||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,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i&&r.process,l=function(){try{var e=a&&a.require&&a.require("util").types;if(e)return e;return o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=l},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,a=r||i||Function("return this")();e.exports=a},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),a=n(96738);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(o)}return n.set(e,t),this.size=n.size,this}},8435:function(e,t,n){var r=n(50217),i=n(33880),a=n(63344);e.exports=function(e){return i(e)?a(e):r(e)}},54452:function(e,t,n){var r=n(77777),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,o=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(a,"$1"):n||e)}),t});e.exports=o},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+"]",a="(?:\ud83c[\udde6-\uddff]){2}",o="[\ud800-\udbff][\udc00-\udfff]",l="(?:"+n+"|"+r+")?",s="[\\ufe0e\\ufe0f]?",u="(?:\\u200d(?:"+[i,a,o].join("|")+")"+s+l+")*",c=RegExp(r+"(?="+r+")|(?:"+[i+n+"?",n,a,o,"["+t+"]"].join("|")+")"+(s+l+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",a="\\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",o="['’]",l="["+a+"]",s="["+r+"]",u="[^"+t+a+"\\d+"+n+r+i+"]",c="(?:\ud83c[\udde6-\uddff]){2}",d="[\ud800-\udbff][\udc00-\udfff]",f="["+i+"]",h="(?:"+s+"|"+u+")",p="(?:"+o+"(?:d|ll|m|re|s|t|ve))?",m="(?:"+o+"(?:D|LL|M|RE|S|T|VE))?",g="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",v="[\\ufe0e\\ufe0f]?",y="(?:\\u200d(?:"+["[^"+t+"]",c,d].join("|")+")"+v+g+")*",x="(?:"+["["+n+"]",c,d].join("|")+")"+(v+g+y),b=RegExp([f+"?"+s+"+"+p+"(?="+[l,f,"$"].join("|")+")","(?:"+f+"|"+u+")+"+m+"(?="+[l,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+",x].join("|"),"g");e.exports=function(e){return e.match(b)||[]}},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),a=n(7642),o=Math.max,l=Math.min;e.exports=function(e,t,n){var s,u,c,d,f,h,p=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=s,r=u;return s=u=void 0,p=t,d=e.apply(r,n)}function x(e){var n=e-h,r=e-p;return void 0===h||n>=t||n<0||g&&r>=c}function b(){var e,n,r,a=i();if(x(a))return w(a);f=setTimeout(b,(e=a-h,n=a-p,r=t-e,g?l(r,c-n):r))}function w(e){return(f=void 0,v&&s)?y(e):(s=u=void 0,d)}function j(){var e,n=i(),r=x(n);if(s=arguments,u=this,h=n,r){if(void 0===f)return p=e=h,f=setTimeout(b,t),m?y(e):d;if(g)return clearTimeout(f),f=setTimeout(b,t),y(h)}return void 0===f&&(f=setTimeout(b,t)),d}return t=a(t)||0,r(n)&&(m=!!n.leading,c=(g="maxWait"in n)?o(a(n.maxWait)||0,t):c,v="trailing"in n?!!n.trailing:v),j.cancel=function(){void 0!==f&&clearTimeout(f),p=0,s=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),a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(a,r).replace(o,"")}},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),a=Object.prototype,o=a.hasOwnProperty,l=a.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return i(e)&&o.call(e,"callee")&&!l.call(e,"callee")};e.exports=s},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),a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,l=o&&o.exports===a?r.Buffer:void 0,s=l?l.isBuffer:void 0;e.exports=s||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),a=n(4146),o=a&&a.isTypedArray,l=o?i(o):r;e.exports=l},90249:function(e,t,n){var r=n(1634),i=n(86411),a=n(67878);e.exports=function(e){return a(e)?r(e):i(e)}},19950:function(e,t,n){var r=n(13940),i=n(26548),a=n(68286);e.exports=function(e,t){var n={};return t=a(t,3),i(e,function(e,i,a){r(n,t(e,i,a),e)}),n}},34519:function(e,t,n){var r=n(13940),i=n(26548),a=n(68286);e.exports=function(e,t){var n={};return t=a(t,3),i(e,function(e,i,a){r(n,i,t(e,i,a))}),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],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};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),a=n(21401),o=n(33812);e.exports=function(e){return a(e)?r(o(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),a=n(4795),o=0/0,l=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return o;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=s.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):l.test(e)?o:+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),a=n(66188),o=n(75304);e.exports=function(e,t,n){return(e=a(e),void 0===(t=n?void 0:t))?i(e)?o(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,a=0;a"+t.value+""+i[a].show+""+e.value+"",type:10}):r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+""+e.value+"",type:1})):2===i[a].type||9===i[a].type?(e=r.pop(),t=r.pop(),r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+i[a].show+(1!=e.type?"(":"")+e.value+(1!=e.type?")":""),type:i[a].type})):12===i[a].type&&(e=r.pop(),t=r.pop(),n=r.pop(),r.push({value:i[a].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-s;n>0;n--)if(void 0!==p[n])for(i=0;i0&&En)l.push(e);else{for(;n>=i&&!c||c&&i1)throw new r.Exception("Uncaught Syntax error");return a[0].value>1e15?"Infinity":parseFloat(a[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"],a="(prefers-color-scheme: dark)",o="undefined"==typeof window,l=(0,r.createContext)(void 0),s={setTheme:e=>{},themes:[]},u=()=>{var e;return null!==(e=(0,r.useContext)(l))&&void 0!==e?e:s},c=e=>(0,r.useContext)(l)?r.createElement(r.Fragment,null,e.children):r.createElement(f,e),d=["light","dark"],f=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:o=!0,storageKey:s="theme",themes:u=d,defaultTheme:c=n?"system":"light",attribute:f="data-theme",value:v,children:y,nonce:x})=>{let[b,w]=(0,r.useState)(()=>p(s,c)),[j,k]=(0,r.useState)(()=>p(s)),E=v?Object.values(v):u,S=(0,r.useCallback)(e=>{let r=e;if(!r)return;"system"===e&&n&&(r=g());let a=v?v[r]:r,l=t?m():null,s=document.documentElement;if("class"===f?(s.classList.remove(...E),a&&s.classList.add(a)):a?s.setAttribute(f,a):s.removeAttribute(f),o){let e=i.includes(c)?c:null,t=i.includes(r)?r:e;s.style.colorScheme=t}null==l||l()},[]),C=(0,r.useCallback)(e=>{w(e);try{localStorage.setItem(s,e)}catch(e){}},[e]),M=(0,r.useCallback)(t=>{k(g(t)),"system"===b&&n&&!e&&S("system")},[b,e]);(0,r.useEffect)(()=>{let e=window.matchMedia(a);return e.addListener(M),M(e),()=>e.removeListener(M)},[M]),(0,r.useEffect)(()=>{let e=e=>{e.key===s&&C(e.newValue||c)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[C]),(0,r.useEffect)(()=>{S(null!=e?e:b)},[e,b]);let _=(0,r.useMemo)(()=>({theme:b,setTheme:C,forcedTheme:e,resolvedTheme:"system"===b?j:b,themes:n?[...u,"system"]:u,systemTheme:n?j:void 0}),[b,C,e,j,n,u]);return r.createElement(l.Provider,{value:_},r.createElement(h,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:o,storageKey:s,themes:u,defaultTheme:c,attribute:f,value:v,children:y,attrs:E,nonce:x}),y)},h=(0,r.memo)(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:o,enableColorScheme:l,defaultTheme:s,value:u,attrs:c,nonce:d})=>{let f="system"===s,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=l?i.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(e,t=!1,r=!0)=>{let a=u?u[e]:e,o=t?e+"|| ''":`'${a}'`,s="";return l&&r&&!t&&i.includes(e)&&(s+=`d.style.colorScheme = '${e}';`),"class"===n?s+=t||a?`c.add(${o})`:"null":a&&(s+=`d[s](n,${o})`),s},g=e?`!function(){${h}${m(e)}}()`:o?`!function(){try{${h}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${f})){var t='${a}',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(s,!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(s,!1,!1)};}${p}}catch(t){}}();`;return r.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:g}})},()=>!0),p=(e,t)=>{let n;if(!o){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)}},g=e=>(e||(e=window.matchMedia(a)),e.matches?"dark":"light")},93542:function(e,t,n){"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(42351)},86570:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(83391)}])},35599:function(e,t,n){"use strict";n.d(t,{Ul:function(){return l},WD:function(){return s},fu:function(){return c},o4:function(){return u}});var r=n(52322),i=n(44677),a=n(82851),o=n(99182);function l(e){let{currentPage:t,parentPage:n,commandPage:l,className:s,...u}=e,c=(0,o.U8)(e=>e.search);if((null==n?void 0:n.namespace)===(null==t?void 0:t.namespace)&&!c)return(0,r.jsx)(o.mY.Item,{className:(0,a.cx)((0,i.Vkc)(),"group",s),value:"".concat(null==l?void 0:l.label," ").concat(u.children.toString()),...u})}function s(e){let{currentPage:t,commandPage:n,className:l,...s}=e,u=(0,o.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)(o.mY.Item,{className:(0,a.cx)((0,i.Vkc)(),"group",l),value:"".concat(n.label," ").concat(s.children.toString()),...s})}function u(e){let{currentPage:t,commandPage:n,className:l,...s}=e,u=(0,o.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)(o.mY.Item,{className:(0,a.cx)((0,i.Vkc)(),"group",l),value:"".concat(n.label," ").concat(s.children.toString()),...s})}function c(e){let{heading:t,currentPage:n,commandPage:a,...l}=e,s=(0,o.U8)(e=>e.search);return(0,r.jsx)(o.mY.Group,{heading:s&&(null==n?void 0:n.namespace)!==a.namespace&&(0,r.jsx)(i.__J,{className:"px-1",size:"12",children:a.label}),...l})}n(2784)},91492:function(e,t,n){"use strict";n.d(t,{F:function(){return v},A:function(){return y}});var r=n(52322),i=n(44677),a=n(47211),o=n(55329),l=n(98334),s=n(5632),u=n(69960),c=n(56328),d=n(82229),f=n(94613),h=n(98131),p=n(30291),m=n(97112),g=n(2784);function v(e){let{id:t,trigger:n,hostAddress:o,hostKey:l,contentProps:s,buttonProps:u}=e;return(0,r.jsx)(i.h_2,{trigger:n||(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...u,children:(0,r.jsx)(a.EMN,{})}),contentProps:{align:"start",...s,onClick:e=>{e.stopPropagation()}},children:(0,r.jsx)(y,{id:t,hostAddress:o,hostKey:l})})}function y(e){var t,n;let{id:v,hostAddress:y,hostKey:x}=e,b=(0,s.useRouter)(),{setFilter:w,resetFilters:j}=(0,c.l)(),{setFilter:k,resetFilters:E}=(0,u.G)(),S=(0,o.uf)(),C=(0,o.s2)(),M=(0,f.l)(),_=(0,d.I)(),O=function(){let{openConfirmDialog:e}=(0,m.Rh)(),t=(0,o.IK)();return(0,g.useCallback)(n=>e({title:"Delete contract",action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.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)({title:"Error deleting contract",body:e.error}),(0,i.OPV)({title:"Deleted contract"})}}),[e,t])}();return(0,r.jsxs)(r.Fragment,{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 ",v.slice(0,24),"..."]})}),(0,r.jsx)(i.Juw,{children:"Filters"}),(0,r.jsxs)(i.Xiv,{disabled:!y,onSelect:()=>{j(),w({id:"addressContains",value:y,label:"Address contains ".concat(y)}),b.push(l._.hosts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter hosts by host address"]}),(0,r.jsxs)(i.Xiv,{disabled:!y,onSelect:()=>{E(),k((0,h.e)(y)),b.push(l._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter contracts by host address"]}),(0,r.jsxs)(i.Xiv,{disabled:!x,onSelect:()=>{E(),k((0,p.V)(x)),b.push(l._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter contracts by host public key"]}),(0,r.jsx)(i.Juw,{children:"Actions"}),(null===(t=S.data)||void 0===t?void 0:t.find(e=>e===y))?(0,r.jsxs)(i.Xiv,{disabled:!y,onSelect:()=>M([],[y]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Remove host address from blocklist"]}):(0,r.jsxs)(i.Xiv,{disabled:!y,onSelect:()=>M([y],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Add host address to blocklist"]}),(null===(n=C.data)||void 0===n?void 0:n.find(e=>e===x))?(0,r.jsxs)(i.Xiv,{disabled:!x,onSelect:()=>_([],[x]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Remove host public key from allowlist"]}):(0,r.jsxs)(i.Xiv,{disabled:!x,onSelect:()=>_([x],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Add host public key to allowlist"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>O(v),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.Jrl,{})}),"Delete contract"]}),(0,r.jsx)(i.Juw,{children:"Copy"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>(0,i.vQq)(v,"contract ID"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Contract ID"]}),(0,r.jsxs)(i.Xiv,{disabled:!x,onSelect:()=>(0,i.vQq)(x,"host public key"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Host public key"]}),(0,r.jsxs)(i.Xiv,{disabled:!y,onSelect:()=>(0,i.vQq)(y,"host address"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Host address"]})]})}},14613:function(e,t,n){"use strict";n.d(t,{F:function(){return N}});var r=n(52322),i=n(44677),a=n(35599);let o={namespace:"contracts/filterExpiryDate",label:"Contracts filter by expiry date"},l=[{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)(a.WD,{currentPage:t,commandPage:o,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()-(0,i.NrH)(1);return e.startTime>=t}},{id:"formationDate",value:"week",label:"formed in the last week",fn:e=>{let t=new Date().getTime()-(0,i.BL0)(1);return e.startTime>=t}},{id:"formationDate",value:"twoWeeks",label:"formed in the last two weeks",fn:e=>{let t=new Date().getTime()-(0,i.BL0)(2);return e.startTime>=t}},{id:"formationDate",value:"month",label:"formed in the last month",fn:e=>{let t=new Date().getTime()-(0,i.xLV)(1);return e.startTime>=t}},{id:"formationDate",value:"twoMonths",label:"formed in the last two months",fn:e=>{let t=new Date().getTime()-(0,i.xLV)(2);return e.startTime>=t}},{id:"formationDate",value:"year",label:"formed in the last year",fn:e=>{let t=new Date().getTime()-(0,i.ivg)(1);return e.startTime>=t}}];function d(e){let{currentPage:t,select:n}=e;return(0,r.jsx)(a.fu,{currentPage:t,commandPage:u,children:c.map(e=>(0,r.jsx)(a.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()-(0,i.NrH)(1);return e.isRenewed&&e.startTime>=t}},{id:"renewDate",value:"week",label:"renewed in the last week",fn:e=>{let t=new Date().getTime()-(0,i.BL0)(1);return e.isRenewed&&e.startTime>=t}},{id:"renewDate",value:"twoWeeks",label:"renewed in the last two weeks",fn:e=>{let t=new Date().getTime()-(0,i.BL0)(2);return e.isRenewed&&e.startTime>=t}},{id:"renewDate",value:"month",label:"renewed in the last month",fn:e=>{let t=new Date().getTime()-(0,i.xLV)(1);return e.isRenewed&&e.startTime>=t}},{id:"renewDate",value:"twoMonths",label:"renewed in the last two months",fn:e=>{let t=new Date().getTime()-(0,i.xLV)(2);return e.isRenewed&&e.startTime>=t}},{id:"renewDate",value:"year",label:"renewed in the last year",fn:e=>{let t=new Date().getTime()-(0,i.ivg)(1);return e.isRenewed&&e.startTime>=t}}];function p(e){let{currentPage:t,select:n}=e;return(0,r.jsx)(a.fu,{currentPage:t,commandPage:f,children:h.map(e=>(0,r.jsx)(a.WD,{currentPage:t,commandPage:f,onSelect:()=>{n(e)},children:e.label},e.id+e.value))})}var m=n(97112),g=n(98131);let v={namespace:"contracts/filterAddress",label:"Contracts filter by address"};function y(e){let{select:t,currentPage:n}=e,{openDialog:i}=(0,m.Rh)(),o=(0,g.e)("");return(0,r.jsx)(a.fu,{currentPage:n,commandPage:v,children:(0,r.jsx)(a.WD,{currentPage:n,commandPage:v,onSelect:()=>{t(),i("contractsFilterAddress")},children:o.label})})}function x(e){let{select:t,currentPage:n,parentPage:i,commandPage:o}=e,{openDialog:l}=(0,m.Rh)();return(0,r.jsx)(a.Ul,{currentPage:n,parentPage:i,commandPage:o,onSelect:()=>{t(),l("contractsFilterAddress")},children:v.label})}var b=n(30291);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:o}=(0,m.Rh)();return(0,r.jsx)(a.fu,{currentPage:n,commandPage:w,children:(0,r.jsx)(a.WD,{currentPage:n,commandPage:w,onSelect:()=>{t(),o("contractsFilterPublicKey")},children:i.label})})}function k(e){let{select:t,currentPage:n,parentPage:i,commandPage:o}=e,{openDialog:l}=(0,m.Rh)();return(0,r.jsx)(a.Ul,{currentPage:n,parentPage:i,commandPage:o,onSelect:()=>{t(),l("contractsFilterPublicKey")},children:w.label})}var E=n(11948);let S={namespace:"contracts/filterContractSet",label:"Contracts filter by contract set"};function C(e){let{select:t,currentPage:n}=e,i=(0,E.l)(""),{openDialog:o}=(0,m.Rh)();return(0,r.jsx)(a.fu,{currentPage:n,commandPage:S,children:(0,r.jsx)(a.WD,{currentPage:n,commandPage:S,onSelect:()=>{t(),o("contractsFilterContractSet")},children:i.label})})}function M(e){let{select:t,currentPage:n,parentPage:i,commandPage:o}=e,{openDialog:l}=(0,m.Rh)();return(0,r.jsx)(a.Ul,{currentPage:n,parentPage:i,commandPage:o,onSelect:()=>{t(),l("contractsFilterContractSet")},children:S.label})}function _(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)(C,{currentPage:t,select:n}),(0,r.jsx)(s,{currentPage:t,select:n}),(0,r.jsx)(d,{currentPage:t,select:n}),(0,r.jsx)(p,{currentPage:t,select:n})]})}let O={namespace:"contracts",label:"Contracts"};function T(e){let{currentPage:t,parentPage:n,pushPage:i,select:l}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x,{currentPage:t,parentPage:n,commandPage:O,select:l}),(0,r.jsx)(k,{currentPage:t,parentPage:n,commandPage:O,select:l}),(0,r.jsx)(M,{currentPage:t,parentPage:n,commandPage:O,select:l}),(0,r.jsx)(a.Ul,{currentPage:t,parentPage:n,commandPage:O,onSelect:()=>{i(u)},children:u.label}),(0,r.jsx)(a.Ul,{currentPage:t,parentPage:n,commandPage:O,onSelect:()=>{i(o)},children:o.label}),(0,r.jsx)(a.Ul,{currentPage:t,parentPage:n,commandPage:O,onSelect:()=>{i(f)},children:f.label})]})}var P=n(69960),A=n(2784);function N(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:a,afterSelect:o}=e,{setFilter:l}=(0,P.G)(),s=(0,A.useCallback)(e=>{a&&a(),e&&l(e),o&&o()},[l,a,o]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(T,{parentPage:n,currentPage:t,pushPage:i,select:s}),(0,r.jsx)(_,{currentPage:t,select:s})]})}},98131:function(e,t,n){"use strict";n.d(t,{e:function(){return u},p:function(){return f}});var r=n(52322),i=n(44677),a=n(69960),o=n(7114),l=n(24511),s=n(97112);function u(e){return{id:"addressContains",value:e,label:"address contains ".concat(e),fn:t=>t.hostIp.includes(e)}}let c={address:""},d=l.Ry().shape({address:l.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:l}=e,{closeDialog:f}=(0,s.Rh)(),{setFilter:h}=(0,a.G)(),p=(0,o.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(),l(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"})]})})})}},11948:function(e,t,n){"use strict";n.d(t,{X:function(){return u},l:function(){return s}});var r=n(52322),i=n(44677),a=n(69960),o=n(63955),l=n(2784);function s(e){return{id:"contractSetsInclude",value:e,label:"contract in set ".concat(e),fn:t=>{var n;return null===(n=t.contractSets)||void 0===n?void 0:n.includes(e)}}}function u(e){var t;let{trigger:n,open:u,onOpenChange:c}=e,{setFilter:d,contractSets:f}=(0,a.G)(),h={contractSet:null===(t=f.data)||void 0===t?void 0:t[0]},p=(0,o.cI)({mode:"all",defaultValues:h}),{handleOpenChange:m,closeAndReset:g}=(0,i.t0Y)({form:p,onOpenChange:c,defaultValues:h}),v=function(e){let{contractSets:t}=e;return{contractSet:{type:"select",title:"Contract set",options:t.map(e=>({label:e,value:e})),placeholder:"autopilot",validation:{required:"required"}}}}({contractSets:f.data||[]}),y=(0,l.useCallback)(e=>{d(s(e.contractSet)),g()},[d,g]),x=(0,i.WsO)(v);return(0,r.jsx)(i.VqE,{trigger:n,title:"Filter by contract set",open:u,onOpenChange:m,contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit(y,x),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.WyV,{form:p,fields:v,name:"contractSet"}),(0,r.jsx)(i.ZqQ,{form:p,size:"medium",children:"Filter"})]})})})}},30291:function(e,t,n){"use strict";n.d(t,{C:function(){return f},V:function(){return u}});var r=n(52322),i=n(44677),a=n(69960),o=n(7114),l=n(24511),s=n(97112);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=l.Ry().shape({publicKey:l.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:l}=e,{closeDialog:f}=(0,s.Rh)(),{setFilter:h}=(0,a.G)(),p=(0,o.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(),l(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"})]})})})}},90721:function(e,t,n){"use strict";n.d(t,{s:function(){return l}});var r=n(52322),i=n(44677),a=n(47211),o=n(97112);function l(e){let{name:t}=e,{openDialog:n}=(0,o.Rh)();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,r.jsx)(a.fi8,{size:16})}),contentProps:{align:"start",onClick:e=>{e.stopPropagation()}},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)(a.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)(a.Jrl,{})}),"Delete bucket"]})]})}},23094:function(e,t,n){"use strict";n.d(t,{z:function(){return f}});var r=n(52322),i=n(44677),a=n(18121),o=n(55329),l=n(82851),s=n(84779),u=n(70899);function c(e){var t,n,l,c;let{path:f,isUploading:h,type:p,health:m,size:g}=e,v="directory"===p,y=(0,o.wy)({disabled:h||v,params:(0,u.W0)(f),config:{swr:{dedupingInterval:5e3}}}),{displayHealth:x,label:b}=(0,a.B)({health:m,size:g,isDirectory:v});if(y.isValidating)return(0,r.jsx)(d,{displayHealth:x,label:b,children:(0,r.jsx)("div",{className:"flex justify-center my-2",children:(0,r.jsx)(i.xgg,{})})});if(!(null===(t=y.data)||void 0===t?void 0:t.object))return(0,r.jsx)(d,{displayHealth:x,label:b,children:(0,r.jsx)(i.xvT,{size:"12",children:"Error fetching slab metadata."})});let w=(0,s.Z)((null===(n=y.data.object.slabs)||void 0===n?void 0:n.map(e=>{var t;return{...e.slab,id:"".concat(e.offset).concat(e.length).concat(e.slab.key),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))+n;return i<=0?0:i>t?t:i}({totalShards:e.slab.shards.length,minShards:e.slab.minShards,health:e.slab.health}):0}}))||[],"contractSetShards");return(0,r.jsx)(d,{className:w.length>15?"h-[300px]":"",displayHealth:x,label:b,minShards:null===(l=w.find(e=>e.minShards))||void 0===l?void 0:l.minShards,totalShards:null===(c=w.find(e=>e.shards))||void 0===c?void 0:c.shards.length,children:w.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.id))})}function d(e){let{className:t,displayHealth:n,label:a,children:o,minShards:s,totalShards:u}=e;return(0,r.jsxs)("div",{className:(0,l.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:a}),(0,r.jsxs)(i.xvT,{size:"12",children:[(100*n).toFixed(0),"%"]})]}),s&&u?(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 ",u]})]}):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:o})})})]})}function f(e){let{name:t,isUploading:n,type:o,health:l,size:s}=e,u="directory"===o,{displayHealth:d,label:f,color:h,icon:p}=(0,a.B)({health:l,size:s,isDirectory:u}),m="".concat((100*d).toFixed(0),"%");return u?".."===t?null:(0,r.jsx)(i.zsw,{rootProps:{openDelay:100},trigger:(0,r.jsxs)("div",{className:"flex items-center gap-1 cursor-pointer",children:[(0,r.jsx)(i.xvT,{color:h,children:p}),(0,r.jsx)(i.xvT,{color:"verySubtle",size:"12",children:m})]}),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:f}),(0,r.jsx)(i.xvT,{size:"12",children:m})]})})}):n?(0,r.jsx)(i.xgg,{}):(0,r.jsx)(i.zsw,{rootProps:{openDelay:100},trigger:(0,r.jsxs)("div",{className:"flex items-center gap-1 cursor-pointer",children:[(0,r.jsx)(i.xvT,{color:h,children:p}),(0,r.jsx)(i.xvT,{color:"verySubtle",size:"12",children:m})]}),children:(0,r.jsx)(c,{...e})})}},84301:function(e,t,n){"use strict";n.d(t,{I:function(){return d}});var r=n(52322),i=n(44677),a=n(47211),o=n(97112),l=n(2784),s=n(55329),u=n(80373),c=n(70899);function d(e){let{path:t,size:n}=e,d=function(){let{openConfirmDialog:e}=(0,o.Rh)(),t=(0,s.xw)();return(0,l.useCallback)((n,o)=>e({title:"Delete directory",action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.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,u.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,c.W0)(n),batch:!0}});e.error&&(0,i.OHV)({title:"Error deleting directory",body:e.error}),(0,i.OPV)({title:"Deleted directory"})}}),[e,t])}(),{openDialog:f}=(0,o.Rh)();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{"aria-label":"Directory context menu",variant:"ghost",icon:"hover",children:(0,r.jsx)(a.ROc,{size:16})}),contentProps:{align:"start",onClick:e=>{e.stopPropagation()}},children:[(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{f("fileRename",t)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.dr6,{})}),"Rename directory"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{d(t,n)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.Jrl,{})}),"Delete directory"]})]})}},87023:function(e,t,n){"use strict";n.d(t,{e:function(){return f}});var r=n(52322),i=n(44677),a=n(47211),o=n(97112),l=n(2784),s=n(55329),u=n(70899);function c(e){let{path:t}=e,n=(0,s.wy)({params:(0,u.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)(a.olJ,{})}),"Copy metadata"]})}var d=n(41736);function f(e){let{trigger:t,path:n,contentProps:f}=e,{downloadFiles:h,getFileUrl:p,navigateToModeSpecificFiltering:m}=(0,d.b)(),g=function(){let{openConfirmDialog:e}=(0,o.Rh)(),t=(0,s.xw)();return(0,l.useCallback)(n=>e({title:"Delete file",action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.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,u.W0)(n)});e.error&&(0,i.OHV)({title:"Error deleting file",body:e.error}),(0,i.OPV)({title:"Deleted file"})}}),[e,t])}(),{openDialog:v}=(0,o.Rh)();return(0,r.jsxs)(i.h_2,{trigger:t||(0,r.jsx)(i.zxk,{"aria-label":"File context menu",variant:"ghost",icon:"hover",children:(0,r.jsx)(a.c_L,{})}),contentProps:{align:"start",...f},children:[(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:async()=>{h([n])},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.vzB,{})}),"Download file"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>v("fileRename",n),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.dr6,{})}),"Rename file"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>g(n),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.Jrl,{})}),"Delete file"]}),(0,r.jsx)(i.Juw,{children:"Filter"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{m(n)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter by file name"]}),(0,r.jsx)(i.Juw,{children:"Copy"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{(0,i.vQq)(n,"file path")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Copy file path"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{(0,i.vQq)((0,u.vt)(n),"file path")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Copy file name"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{(0,i.vQq)(p(n,!1),"file URL")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Copy URL"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{(0,i.E5z)({text:p(n,!0),title:"Copied authenticated file URL to clipboard",body:(0,r.jsxs)(r.Fragment,{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)(a.KTM,{className:"text-amber-600"}),options:{duration:1e5}})},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Copy authenticated URL"]}),(0,r.jsx)(c,{path:n})]})}},42770:function(e,t,n){"use strict";n.d(t,{F:function(){return a}});var r=n(55329),i=n(69960);function a(){var e;let t=(0,r.fz)(),{datasetCount:n,isLoading:a}=(0,i.G)();return{active:t.data&&!a&&n{e.stopPropagation()}},children:(0,r.jsx)(v,{address:t,publicKey:n})})}function v(e){var t,n;let{address:g,publicKey:v}=e,y=(0,s.useRouter)(),{setFilter:x,resetFilters:b}=(0,c.l)(),{setFilter:w,resetFilters:j}=(0,u.G)(),k=(0,o.uf)(),E=(0,o.s2)(),S=(0,f.l)(),C=(0,d.I)(),M=(0,o.f$)(),_=(0,o.wW)();return(0,r.jsxs)(r.Fragment,{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 ",v.slice(0,24),"..."]})}),(0,r.jsx)(i.Juw,{children:"Filters"}),(0,r.jsxs)(i.Xiv,{disabled:!g,onSelect:()=>{b(),x({id:"addressContains",value:g,label:"Address contains ".concat((0,i.$Gg)(g,20))}),y.push(l._.hosts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter hosts by address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{b(),x((0,m.K)(v)),y.push(l._.hosts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter hosts by public key"]}),(0,r.jsxs)(i.Xiv,{disabled:!g,onSelect:()=>{j(),w((0,h.e)(g)),y.push(l._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter contracts by host address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{j(),w((0,p.V)(v)),y.push(l._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter contracts by host public key"]}),(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{disabled:!g,onSelect:()=>{M.post({payload:{hostKey:v,hostIP:g,timeout:(0,i.XBW)(30)}})},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a._Eq,{})}),"Rescan host"]}),g&&(null===(t=k.data)||void 0===t?void 0:t.find(e=>e===g))?(0,r.jsxs)(i.Xiv,{disabled:!g,onSelect:()=>S([],[g]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Remove address from blocklist"]}):(0,r.jsxs)(i.Xiv,{disabled:!g,onSelect:()=>S([g],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Add address to blocklist"]}),(null===(n=E.data)||void 0===n?void 0:n.find(e=>e===v))?(0,r.jsxs)(i.Xiv,{onSelect:()=>C([],[v]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Remove public key from allowlist"]}):(0,r.jsxs)(i.Xiv,{onSelect:()=>C([v],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Add public key to allowlist"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>_.post({params:{publicKey:v}}),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.xkX,{})}),"Reset lost sector count"]}),(0,r.jsx)(i.Juw,{children:"Copy"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>(0,i.vQq)(v,"host public key"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Host public key"]}),(0,r.jsxs)(i.Xiv,{disabled:!g,onSelect:()=>{(0,i.vQq)(g,"host address")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Host address"]})]})}},37769:function(e,t,n){"use strict";n.d(t,{T:function(){return b},N:function(){return x}});var r=n(52322),i=n(2784),a=n(44677),o=n(80373),l=n(6391),s=n.n(l);function u(e){let{host:t,rates:n}=e,r=n?"$".concat(new(s())(t.settings.storageprice).times((0,o.xf)(1)).times((0,o.S5)(1)).div(1e24).times((null==n?void 0:n.usd)||1).toFixed(2),"/TB"):"".concat((0,o.Vz)(new(s())(t.settings.storageprice).times((0,o.xf)(1)).times((0,o.S5)(1)),{fixed:0}),"/TB"),i="".concat((0,o.vW)(t.activeContracts.reduce((e,t)=>e.plus(t.size),new(s())(0)).toNumber())," utilized"),l="".concat((0,o.vW)(t.settings.remainingstorage)," / ").concat((0,o.vW)(t.settings.totalstorage)," available");return"".concat((0,a.HLH)(t.countryCode)," \xb7 ").concat(r," \xb7 ").concat(i," \xb7 ").concat(l)}var c=function(){let[e,t]=(0,i.useState)(null),[n,r]=(0,i.useState)({width:0,height:0}),a=(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",a),f(()=>{a()},[null==e?void 0:e.offsetHeight,null==e?void 0:e.offsetWidth]),[t,n]},d=function(e,t,n,r){let a=(0,i.useRef)(t);f(()=>{a.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 o=e=>a.current(e);return i.addEventListener(e,o,r),()=>{i.removeEventListener(e,o,r)}},[e,n,r])},f="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,h=n(82842),p=n(25237);let m=n.n(p)()(()=>Promise.all([n.e(546),n.e(508),n.e(167),n.e(764),n.e(936)]).then(n.bind(n,6936)),{loadableGenerated:{webpack:()=>[6936]},ssr:!1}),g=(0,i.forwardRef)(function(e,t){return(0,r.jsx)(m,{...e,forwardRef:t})});var v=n(10569),y=n(85375);let x={moveToLocation:(e,t)=>null};function b(e){let{activeHost:t,hosts:n,onMount:a,onHostClick:o,onHostHover:l}=e,d=(0,y.BW)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,i.useRef)(null),p=(0,i.useRef)(x),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)(()=>{p.current.moveToLocation=m},[m]),(0,h.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)(()=>{a&&a(p.current)},[]);let[b,{height:w,width:j}]=c(),k=(0,i.useMemo)(()=>n||[],[n]);return(0,r.jsx)("div",{ref:b,className:"w-full h-full",children:(0,r.jsx)(g,{ref:f,width:j,height:w,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,v.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(s())(0)).div(1e12).toNumber(),Math.max(e.settings.remainingstorage/1e13/3,.1)),onPointHover:e=>{e&&(null==l||l(e.publicKey,e.location))},onPointClick:e=>{e&&(null==o||o(e.publicKey,e.location))},pointsMerge:!1})})}},42213:function(e,t,n){"use strict";n.d(t,{L:function(){return O}});var r=n(52322),i=n(35599),a=n(97112),o=n(10532);let l={namespace:"hosts/filterAddress",label:"Hosts filter by address"};function s(e){let{select:t,currentPage:n}=e,{openDialog:s}=(0,a.Rh)(),u=(0,o.q)("");return(0,r.jsx)(i.fu,{currentPage:n,commandPage:l,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:l,onSelect:()=>{t(),s("hostsFilterAddress")},children:u.label})})}function u(e){let{select:t,currentPage:n,parentPage:o,commandPage:s}=e,{openDialog:u}=(0,a.Rh)();return(0,r.jsx)(i.Ul,{currentPage:n,parentPage:o,commandPage:s,onSelect:()=>{t(),u("hostsFilterAddress")},children:l.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 g={namespace:"hosts/filterUsable",label:"Hosts filter by usable"},v=[{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:g,children:v.map(e=>(0,r.jsx)(i.WD,{currentPage:n,commandPage:g,onSelect:()=>{t(e)},children:e.label},e.id+e.value))})}var x=n(37606),b=n(23771);let w={namespace:"hosts/filterPublicKey",label:"Hosts filter by public key"};function j(e){let{select:t,currentPage:n}=e,{openDialog:o}=(0,a.Rh)(),l=(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(),o("hostsFilterPublicKey")},children:l.label})})}function k(e){let{select:t,currentPage:n,parentPage:o,commandPage:l}=e,{openDialog:s}=(0,a.Rh)();return(0,r.jsx)(i.Ul,{currentPage:n,parentPage:o,commandPage:l,onSelect:()=>{t(),s("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)(s,{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 C(e){let{currentPage:t,parentPage:n,pushPage:a,select:o}=e,{autopilot:l}=(0,x.q)();return(0,r.jsxs)(r.Fragment,{children:["on"===l.status&&(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{a(g)},children:g.label}),(0,r.jsx)(k,{currentPage:t,parentPage:n,commandPage:S,select:o}),(0,r.jsx)(u,{currentPage:t,parentPage:n,commandPage:S,select:o}),(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{a(h)},children:h.label}),(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{a(c)},children:c.label})]})}var M=n(56328),_=n(2784);function O(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:a,afterSelect:o}=e,{setFilter:l}=(0,M.l)(),s=(0,_.useCallback)(e=>{a&&a(),e&&l(e),o&&o()},[l,a,o]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(C,{parentPage:n,currentPage:t,pushPage:i,select:s}),(0,r.jsx)(E,{currentPage:t,pushPage:i,select:s})]})}},10532:function(e,t,n){"use strict";n.d(t,{g:function(){return f},q:function(){return u}});var r=n(52322),i=n(44677),a=n(56328),o=n(7114),l=n(24511),s=n(97112);function u(e){return{id:"addressContains",value:e,label:"address contains ".concat(e)}}let c={address:""},d=l.Ry().shape({address:l.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:l}=e,{closeDialog:f}=(0,s.Rh)(),{setFilter:h}=(0,a.l)(),p=(0,o.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(),l(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"})]})})})}},23771:function(e,t,n){"use strict";n.d(t,{K:function(){return u},a:function(){return f}});var r=n(52322),i=n(44677),a=n(56328),o=n(7114),l=n(24511),s=n(97112);function u(e){return{id:"publicKeyEquals",value:e,label:"public key is ".concat((0,i.$Gg)(e,20))}}let c={publicKey:""},d=l.Ry().shape({publicKey:l.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:l}=e,{closeDialog:f}=(0,s.Rh)(),{setFilter:h}=(0,a.l)(),p=(0,o.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(),l(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"})]})})})}},26731:function(e,t,n){"use strict";n.d(t,{s:function(){return l}});var r=n(52322),i=n(44677),a=n(2784),o=n(34864);function l(e){let{loaded:t,size:n,status:l}=e,s=(0,a.useMemo)(()=>{var e;return void 0!==(e={loaded:t,size:n}).loaded?e.loaded/e.size:1},[t,n]);return(0,r.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,r.jsx)(i.kod,{variant:"accent",value:t,max:n,className:1===s?"animate-pulse":""}),(0,r.jsxs)("div",{className:"flex gap-2 justify-between",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:(0,o.Z)(l)}),(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",children:[(100*s).toFixed(0),"%"]})]})]})}},98334:function(e,t,n){"use strict";n.d(t,{_:function(){return i},h:function(){return a}});var r=n(79895);let i={home:"/",buckets:{index:"/buckets",files:"/buckets/[bucket]/files/[path]",uploads:"/buckets/[bucket]/uploads"},config:{index:"/config",storage:"/config#storage",pricing:"/config#pricing",hosts:"/config#hosts",wallet:"/config#wallet",contracts:"/config#contracts",uploads:"/config#uploads",redundancy:"/config#redundancy",pinning:"/config#pinning"},contracts:{index:"/contracts"},hosts:{index:"/hosts"},wallet:{view:"/wallet"},keys:{index:"/keys"},alerts:{index:"/alerts"},node:{index:"/node"},login:"/login"},a=r.PS},9338:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});let r=(0,n(44677).XBW)(15)},88385:function(e,t,n){"use strict";n.d(t,{b:function(){return D},Z:function(){return R}});var r=n(52322),i=n(44677),a=n(5632),o=n(2784);let l=["actions","overview","data","time"],s=[];var u=n(55329),c=n(17448),d=n(41736),f=n(97112),h=n(70899),p=n(6391),m=n.n(p),g=n(47211),v=n(91492);function y(e){let{id:t,trigger:n,contentProps:a,buttonProps:o}=e;return(0,r.jsx)(i.h_2,{trigger:n||(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...o,children:(0,r.jsx)(g.EMN,{})}),contentProps:{align:"start",...a,onClick:e=>{e.stopPropagation()}},children:(0,r.jsx)(x,{id:t})})}function x(e){var t,n;let{id:i}=e,a=(0,u.cq)({params:{id:i}});return(0,r.jsx)(v.A,{id:i,hostAddress:null===(t=a.data)||void 0===t?void 0:t.hostIP,hostKey:null===(n=a.data)||void 0===n?void 0:n.hostKey})}function b(e){let{id:t,contentProps:n,buttonProps:a,trigger:o}=e,l=(0,u.cJ)();return(0,r.jsxs)(i.h_2,{trigger:o||(0,r.jsx)(i.zxk,{icon:"hover",variant:"ghost",...a,children:(0,r.jsx)(g.EMN,{})}),contentProps:{align:"start",...n,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:["Account ",t.slice(0,20),"..."]})}),(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>l.post({params:{id:t}}),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(g.xkX,{})}),"Reset account drift"]}),(0,r.jsx)(i.Juw,{children:"Copy"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>(0,i.vQq)(t,"account ID"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(g.olJ,{})}),"Account ID"]})]})}var w=n(87023);let j={origin:{render:function(e){let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"origin"}),(0,r.jsx)(i.xvT,{size:"12",color:"contrast",ellipsis:!0,children:t})]})}},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)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"contract ID"}),(0,r.jsx)(i.PF9,{size:"12",value:t,menu:(0,r.jsx)(y,{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)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"account ID"}),(0,r.jsx)(i.XxW,{size:"12",value:t,label:"account ID",contextMenu:(0,r.jsx)(b,{id:t,contentProps:{align:"end"},buttonProps:{size:"none"}})})]})}},hostKey:{render:function(e){let{value:t}=e,n=(0,u.$)({params:{hostKey:t}});return n.data?(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"host key"}),(0,r.jsx)(i.PF9,{size:"12",value:t,menu:(0,r.jsx)(c.G,{publicKey:n.data.publicKey,address:n.data.netAddress,contentProps:{align:"end"},buttonProps:{size:"none"}})})]}):null}},slabKey:{render:function(e){let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"slab key"}),(0,r.jsx)(i.XxW,{size:"12",value:t,label:"slab key"})]})}},health:{render:function(e){let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"health"}),(0,r.jsx)(i.xvT,{size:"12",color:"contrast",ellipsis:!0,children:t})]})}},objectIDs:{render:function(e){let{value:t}=e,{setActiveDirectory:n}=(0,d.b)(),{closeDialog:a}=(0,f.Rh)();return(0,r.jsxs)("div",{className:"flex flex-col gap-2 max-h-[100px]",children:[(0,r.jsx)("div",{className:"flex justify-between w-full gap-2",children:(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"object IDs"})}),(0,r.jsx)("div",{className:"-mx-2",children:(0,r.jsx)(i.xrM,{children:(0,r.jsx)("div",{className:"flex flex-col gap-2 mt-2 mb-2 px-2",children:Object.entries(t).map(e=>{let[t,o]=e;return o.map(e=>{let o="".concat(t).concat(e);return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.rUS,{color:"accent",underline:"hover",size:"12",noWrap:!0,ellipsis:!0,onClick:()=>{n(()=>(0,h.gD)(o)),a()},children:o}),(0,r.jsx)(w.e,{path:o,contentProps:{align:"end"},trigger:(0,r.jsx)(i.zxk,{"aria-label":"File context menu",variant:"ghost",icon:"hover",size:"none",children:(0,r.jsx)(g.EMN,{})})})]},o)})})})})})]})}},added:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"added"}),(0,r.jsx)(i.xvT,{size:"12",color:"contrast",ellipsis:!0,children:t})]})}},removed:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"removed"}),(0,r.jsx)(i.xvT,{size:"12",color:"contrast",ellipsis:!0,children:t})]})}},migrationsInterrupted:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"migrations interrupted"}),(0,r.jsx)(i.xvT,{size:"12",weight:"medium",ellipsis:!0,children:t?"yes":"no"})]})}},allowance:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"allowance"}),(0,r.jsx)(i.YKL,{size:"12",variant:"value",value:new(m())(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)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"balance"}),(0,r.jsx)(i.YKL,{size:"12",variant:"value",value:new(m())(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)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"address"}),(0,r.jsx)(i.XxW,{size:"12",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)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"account"}),(0,r.jsx)(i.XxW,{size:"12",value:t,label:"account",contextMenu:(0,r.jsx)(b,{id:t,contentProps:{align:"end"},buttonProps:{size:"none"}})})]})}},lostSectors:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"lost sectors"}),(0,r.jsx)(i.m2c,{size:"12",variant:"value",value:new(m())(t),format:e=>e.toString()})]})}}};function k(e){let{hostKey:t,contentProps:n,buttonProps:a,trigger:o}=e;return(0,r.jsx)(i.h_2,{trigger:o||(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...a,children:(0,r.jsx)(g.EMN,{})}),contentProps:{align:"start",...n,onClick:e=>{e.stopPropagation()}},children:(0,r.jsx)(E,{hostKey:t})})}function E(e){var t;let{hostKey:n}=e,i=(0,u.$)({params:{hostKey:n}});return(0,r.jsx)(c.i,{address:null===(t=i.data)||void 0===t?void 0:t.netAddress,publicKey:n})}var S=n(80373),C=n(32998),M=n(82851),_=n(28356);function O(e){let{setAdditions:t,setRemovals:n}=e,a=(0,o.useMemo)(()=>(0,_.Z)([...Object.keys(t),...Object.keys(n)]).map(e=>{var r,i,a,o;let l=(null===(r=t[e])||void 0===r?void 0:r.additions)||[],s=(null===(i=n[e])||void 0===i?void 0:i.removals)||[];return{contractId:e,hostKey:(null===(a=t[e])||void 0===a?void 0:a.hostKey)||(null===(o=n[e])||void 0===o?void 0:o.hostKey),events:[...l.map(e=>({type:"addition",size:e.size,time:e.time})),...s.map(e=>({type:"removal",size:e.size,time:e.time,reasons:e.reasons}))].sort((e,t)=>new Date(e.time).getTime()e.events[0].sizea.reduce((e,t)=>{let{events:n}=t;return e+n[0].size},0),[a]),s=(0,o.useMemo)(()=>a.filter(e=>{let{events:t}=e;return"removal"===t[0].type}),[a]),u=(0,o.useMemo)(()=>a.filter(e=>{let{events:t}=e;return"addition"===t[0].type}),[a]),c=(0,o.useMemo)(()=>s.reduce((e,t)=>{let{events:n}=t;return e+n[0].size},0),[s]),d=(0,o.useMemo)(()=>l>0?c/l*100:0,[c,l]);return(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center pr-1",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"contract set changes"}),(0,r.jsx)("div",{className:"flex-1"}),(0,r.jsx)(i.ua7,{content:"".concat((0,S.vW)(c)," of ").concat((0,S.vW)(l)," contract size removed"),children:(0,r.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,r.jsxs)(i.xvT,{size:"12",color:"contrast",ellipsis:!0,children:["churn: ",d.toFixed(2),"%"]}),(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:["(",(0,S.vW)(c)," / ",(0,S.vW)(l),")"]})]})}),(0,r.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,r.jsx)(i.ua7,{content:"".concat(u.length," contracts added"),children:(0,r.jsxs)(i.xvT,{size:"12",color:"green",ellipsis:!0,className:"flex items-center",children:[(0,r.jsx)(g.aXP,{}),u.length]})}),(0,r.jsx)(i.ua7,{content:"".concat(s.length," contracts removed"),children:(0,r.jsxs)(i.xvT,{size:"12",color:"red",ellipsis:!0,className:"flex items-center",children:[(0,r.jsx)(g.eOF,{}),s.length]})})]})]}),(0,r.jsx)("div",{className:"flex flex-col gap-3 mb-2",children:a.map((e,t)=>{let{contractId:n,hostKey:i,events:a}=e;return(0,r.jsx)(T,{contractId:n,hostKey:i,events:a,i:t},n+i)})})]})}function T(e){let{contractId:t,hostKey:n,events:a,i:o}=e;return(0,r.jsxs)("div",{className:"flex flex-col gap-[3px]",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center px-[3px]",children:[(0,r.jsxs)(i.xvT,{size:"12",weight:"medium",ellipsis:!0,children:[o+1,"."]}),(0,r.jsx)("div",{className:"flex-1"}),(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"contract"}),(0,r.jsx)(i.XxW,{size:"12",value:t,contextMenu:(0,r.jsx)(y,{id:t,buttonProps:{size:"none"},contentProps:{align:"end"}})})]}),(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"host"}),(0,r.jsx)(i.XxW,{size:"12",value:n,label:"host key",contextMenu:(0,r.jsx)(k,{hostKey:n,buttonProps:{size:"none"},contentProps:{align:"end"}})})]})]}),a.map((e,t)=>{let{type:n,reasons:a,size:o,time:l}=e;return(0,r.jsx)(i.ua7,{content:"addition"===n?"added":"removed: ".concat(a),align:"start",side:"bottom",children:(0,r.jsxs)("div",{className:(0,M.cx)("flex gap-2 justify-between mr-2 pr-1",0===t?"addition"===n?"bg-green-400/20":"bg-red-400/20":"opacity-50"),children:[(0,r.jsxs)("div",{className:"flex gap-1 items-center overflow-hidden",children:[(0,r.jsx)(i.xvT,{size:"12",color:"addition"===n?"green":"red",children:"addition"===n?(0,r.jsx)(g.aXP,{}):(0,r.jsx)(g.eOF,{})}),(0,r.jsx)(i.xvT,{size:"12",ellipsis:!0,children:a})]}),(0,r.jsx)("div",{className:"flex-1"}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(i.xvT,{color:"subtle",size:"12",ellipsis:!0,children:"time"}),(0,r.jsx)(i.xvT,{size:"12",ellipsis:!0,children:(0,C.Z)(new Date(l),new Date)})]}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(i.xvT,{color:"subtle",size:"12",ellipsis:!0,children:"size"}),(0,r.jsx)(i.xvT,{size:"12",ellipsis:!0,children:(0,S.vW)(o)})]})]})},n+a+l)})]})}let P=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pr-4 [&+*]:!pl-0",rowCellClassName:"align-top pt-[19px]",render:e=>{let{data:{dismiss:t}}=e;return(0,r.jsx)(i.eQh,{children:(0,r.jsx)(i.zxk,{tip:"Dismiss alert",onClick:t,children:(0,r.jsx)(g.NlZ,{})})})}},{id:"overview",label:"overview",category:"general",contentClassName:"min-w-[200px] max-w-[500px]",rowCellClassName:"align-top pt-[5px]",render:e=>{let{data:{message:t,severity:n,data:a}}=e;return(0,r.jsxs)("div",{className:"flex flex-col gap-1 py-4",children:[(0,r.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,r.jsx)(i.Cts,{variant:"error"===n||"critical"===n?"red":"warning"===n?"amber":"gray",size:"small",children:n}),(0,r.jsx)(i.xvT,{weight:"medium",noWrap:!0,children:t})]}),a.hint&&(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:a.hint}),a.error&&(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:a.error})]})}},{id:"data",label:"data",contentClassName:"w-[500px]",rowCellClassName:"align-top",category:"general",render:function(e){let{data:{data:t}}=e,n=(0,o.useMemo)(()=>Object.keys(j).map(e=>{let n=t[e];return null!=n&&("object"!=typeof n||Object.keys(n).length)?{key:e,value:n}:null}).filter(Boolean),[t]),a=(0,o.useMemo)(()=>t.setAdditions,[t]),l=(0,o.useMemo)(()=>t.setRemovals,[t]);return(0,r.jsx)("div",{className:"py-4 w-full",children:(0,r.jsxs)(i.s_4,{color:"subtle",className:"flex flex-col gap-1 w-full py-1",children:[(a||l)&&(0,r.jsxs)(o.Fragment,{children:[(0,r.jsx)("div",{className:"py-1 px-2",children:(0,r.jsx)(O,{setAdditions:a,setRemovals:l})}),n.length>=1&&(0,r.jsx)(i.Z0O,{color:"verySubtle",className:"w-full"})]},"setChanges"),n.map((e,t)=>{var a;let{key:l,value:s}=e,u=null==j?void 0:null===(a=j[l])||void 0===a?void 0:a.render;return u?(0,r.jsxs)(o.Fragment,{children:[(0,r.jsx)("div",{className:"py-1 px-2",children:(0,r.jsx)(u,{value:s},l)}),n.length>1&&t{let{data:{timestamp:t}}=e;return(0,r.jsx)(i.xvT,{color:"subtle",size:"12",ellipsis:!0,children:(0,C.Z)(new Date(t),new Date)})}}];var A=n(9338);let N=(0,o.createContext)({}),R=()=>(0,o.useContext)(N);function D(e){let{children:t}=e,n=function(){var e;let t=(0,a.useRouter)(),n=Number(t.query.limit||50),r=Number(t.query.offset||0),{filters:c,setFilter:d,removeFilter:f,removeLastFilter:h,resetFilters:p}=(0,i.Uu5)(),m=(0,o.useCallback)(e=>{e?d({id:"severity",value:e,label:e}):f("severity")},[d,f]),g=null===(e=c.find(e=>"severity"===e.id))||void 0===e?void 0:e.value,v=(0,o.useMemo)(()=>{let e={limit:n,offset:r};return g&&(e.severity=g),e},[n,r,g]),y=(0,u.Z7)({params:v,config:{swr:{refreshInterval:A.h}}}),x=(0,u.Uy)(),b=(0,o.useCallback)(async e=>{let t=await x.post({payload:[e]});t.error?(0,i.OHV)({title:"Error dismissing alert",body:t.error}):(0,i.OPV)({title:"Alert has been dismissed."})},[x]),w=(0,o.useCallback)(async e=>{let t=await x.post({payload:e});t.error?(0,i.OHV)({title:"Error dismissing alerts",body:t.error}):(0,i.OPV)({title:"Selected alerts have been dismissed"})},[x]),j=(0,o.useMemo)(()=>{var e,t;return y.data?(null===(t=y.data)||void 0===t?void 0:null===(e=t.alerts)||void 0===e?void 0:e.map(e=>({id:e.id,severity:e.severity,message:e.message,timestamp:e.timestamp,data:e.data,dismiss:()=>b(e.id)})))||[]:null},[y.data,b]),{configurableColumns:k,enabledColumns:E,sortableColumns:S,toggleColumnVisibility:C,setColumnsVisible:M,setColumnsHidden:_,toggleSort:O,setSortDirection:T,setSortField:N,sortField:R,sortDirection:D,resetDefaultColumnVisibility:L}=(0,i.oy6)("renterd/v0/alerts",{columns:P,columnsDefaultVisible:l,sortOptions:s,defaultSortField:""}),Z=(0,o.useMemo)(()=>P.filter(e=>e.fixed||E.includes(e.id)),[E]),F=(0,i.c2j)(j,y.isValidating,y.error,c),z=(0,o.useMemo)(()=>({}),[]),V=(0,o.useMemo)(()=>{var e,t;return{...null===(e=y.data)||void 0===e?void 0:e.totals,all:Object.entries((null===(t=y.data)||void 0===t?void 0:t.totals)||{}).reduce((e,t)=>{let[n,r]=t;return e+r},0)}},[y.data]);return{dataState:F,limit:n,offset:r,isLoading:y.isLoading,error:y.error,pageCount:(null==j?void 0:j.length)||0,totals:V,columns:Z,datasetPage:j,cellContext:z,configurableColumns:k,enabledColumns:E,sortableColumns:S,toggleColumnVisibility:C,setColumnsVisible:M,setColumnsHidden:_,toggleSort:O,setSortDirection:T,setSortField:N,sortField:R,filters:c,setFilter:d,removeFilter:f,removeLastFilter:h,resetFilters:p,sortDirection:D,resetDefaultColumnVisibility:L,dismissOne:b,dismissMany:w,severityFilter:g,setSeverityFilter:m}}();return(0,r.jsx)(N.Provider,{value:n,children:t})}},37606:function(e,t,n){"use strict";n.d(t,{w:function(){return d},q:function(){return c}});var r=n(52322),i=n(2784),a=n(87741),o=n(82842),l=n(79895),s=n(56978);let u=(0,i.createContext)({}),c=()=>(0,i.useContext)(u);function d(e){let{children:t}=e,n=function(){let e=(0,a.V)();return{bus:function(){let[e,t]=(0,i.useState)(null),{settings:{api:n,password:r}}=(0,o.Hv)();return(0,i.useEffect)(()=>{t(function(e){let{api:t,password:n}=e,r=(0,s.YY)(t,n);return{axios:r,busState:(0,s.Li)(r,"get",l.PS),consensusState:(0,s.Li)(r,"get",l.J6),consensusAcceptBlock:(0,s.Li)(r,"post",l.gc),syncerPeers:(0,s.Li)(r,"get",l.gl),syncerConnect:(0,s.Li)(r,"post",l.aU),syncerAddress:(0,s.Li)(r,"get",l.AF),txPoolFee:(0,s.Li)(r,"get",l.Z),txPoolTransactions:(0,s.Li)(r,"get",l.Oj),txPoolBroadcast:(0,s.Li)(r,"post",l.MR),wallet:(0,s.Li)(r,"get",l.xg),walletAddresses:(0,s.Li)(r,"get",l.sj),walletTransactions:(0,s.Li)(r,"get",l.Y6),walletUtxos:(0,s.Li)(r,"get",l.rW),walletFund:(0,s.Li)(r,"post",l.hg),walletSign:(0,s.Li)(r,"post",l.ZQ),walletRedistribute:(0,s.Li)(r,"post",l.f0),walletDiscard:(0,s.Li)(r,"post",l.Oy),walletPrepareForm:(0,s.Li)(r,"post",l.Kr),walletPrepareRenew:(0,s.Li)(r,"post","/bus/wallet/prepare/form"),walletPending:(0,s.Li)(r,"get",l.zk),hosts:(0,s.Li)(r,"get",l.N8),hostsSearch:(0,s.Li)(r,"post",l.Rp),host:(0,s.Li)(r,"get",l.rg),hostsInteractionAdd:(0,s.Li)(r,"post",l.nY),hostsBlocklist:(0,s.Li)(r,"get",l.yu),hostsAllowlist:(0,s.Li)(r,"get",l.MF),hostsAllowlistUpdate:(0,s.Li)(r,"put",l.MF),hostsBlocklistUpdate:(0,s.Li)(r,"put",l.yu),hostResetLostSectorCount:(0,s.Li)(r,"post",l.KP),accountResetDrift:(0,s.Li)(r,"post",l.UM),contracts:(0,s.Li)(r,"get",l.FP),contractsAcquire:(0,s.Li)(r,"post",l.fo),contractsRelease:(0,s.Li)(r,"post",l.sw),contract:(0,s.Li)(r,"get",l.J9),contractAdd:(0,s.Li)(r,"post",l.AD),contractRenew:(0,s.Li)(r,"post",l.Z2),contractDelete:(0,s.Li)(r,"delete",l.J9),contractSize:(0,s.Li)(r,"get",l.cN),contractSets:(0,s.Li)(r,"get",l.E_),contractSetUpdate:(0,s.Li)(r,"put",l.I7),contractsPrunable:(0,s.Li)(r,"get",l.z$),buckets:(0,s.Li)(r,"get",l.AJ),bucket:(0,s.Li)(r,"get",l.aq),bucketCreate:(0,s.Li)(r,"post",l.AJ),bucketPolicyUpdate:(0,s.Li)(r,"put",l.mD),bucketDelete:(0,s.Li)(r,"delete",l.aq),objectDirectory:(0,s.Li)(r,"get",l.uT),objectList:(0,s.Li)(r,"post",l.p_),object:(0,s.Li)(r,"get",l.uT),objectSearch:(0,s.Li)(r,"get",l.O7),objectAdd:(0,s.Li)(r,"put",l.uT),objectRename:(0,s.Li)(r,"post",l.oZ),objectDelete:(0,s.Li)(r,"delete",l.uT),objectStats:(0,s.Li)(r,"get",l.VJ),settings:(0,s.Li)(r,"get",l.fD),setting:function(e){let{params:t,config:n}=e;return(0,s.Li)(r,"get",l.ww)({params:t,config:n})},settingGouging:function(){let{config:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,s.Li)(r,"get",l.ww)({params:{key:"gouging"},config:e})},settingRedundancy:function(){let{config:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,s.Li)(r,"get",l.ww)({params:{key:"redundancy"},config:e})},settingContractSet:function(){let{config:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,s.Li)(r,"get",l.ww)({params:{key:"contractset"},config:e})},settingUploadPacking:function(){let{config:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,s.Li)(r,"get",l.ww)({params:{key:"uploadpacking"},config:e})},settingS3Authentication:function(){let{config:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,s.Li)(r,"get",l.ww)({params:{key:"s3authentication"},config:e})},settingPricePinning:function(){let{config:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,s.Li)(r,"get",l.ww)({params:{key:"pricepinning"},config:e})},settingUpdate:(0,s.Li)(r,"put",l.ww),alerts:(0,s.Li)(r,"get",l.jL),alertsDismiss:(0,s.Li)(r,"post",l.ks),slabObjects:(0,s.Li)(r,"get",l.go),contractMetrics:(0,s.Li)(r,"get",l.hp),contractSetMetrics:(0,s.Li)(r,"get",l.Mj),contractSetChurnMetrics:(0,s.Li)(r,"get",l.l5),walletMetrics:(0,s.Li)(r,"get",l.nI),multipartUploadCreate:(0,s.Li)(r,"post",l.sW),multipartUploadComplete:(0,s.Li)(r,"post",l.Pw),multipartUploadAbort:(0,s.Li)(r,"post",l.w_),multipartUploadListParts:(0,s.Li)(r,"post",l.GV),multipartUploadListUploads:(0,s.Li)(r,"post",l.CM),multipartUploadAddPart:(0,s.Li)(r,"post",l.o5)}}({api:"".concat(n,"/api"),password:r}))},[n,r]),e}(),autopilot:e,isAutopilotEnabled:"on"===e.status}}();return(0,r.jsx)(u.Provider,{value:n,children:t})}},87741:function(e,t,n){"use strict";n.d(t,{V:function(){return o}});var r=n(44677),i=n(55329),a=n(2784);function o(){let e=(0,i.YX)({config:{swr:{dedupingInterval:(0,r.XBW)(5),revalidateOnFocus:!1,refreshInterval:e=>e?(0,r.XBW)(60):(0,r.XBW)(1)}}}),[t,n]=(0,a.useState)("init");return(0,a.useEffect)(()=>{if(e.isLoading)n("init");else{if(e.isValidating)return;e.error?n("off"):e.data&&n("object"==typeof e.data?"on":"off")}},[e]),{status:t,state:e}}},70771:function(e,t,n){"use strict";n.d(t,{iV:function(){return eC},ZR:function(){return eS}});var r=n(52322),i=n(2784),a=n(44677),o=n(80373),l=n(6391),s=n.n(l);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,minProtocolVersion:""},c={defaultContractSet:""},d={uploadPackingEnabled:!0},f={maxRPCPriceMillion:void 0,maxStoragePriceTBMonth:void 0,maxContractPrice:void 0,maxDownloadPriceTB:void 0,maxUploadPriceTB:void 0,hostBlockHeightLeeway:void 0,minPriceTableValidityMinutes:void 0,minAccountExpiryDays:void 0,minMaxEphemeralAccountBalance:void 0,migrationSurchargeMultiplier:void 0},h={pinningEnabled:!1,pinnedCurrency:"",forexEndpointURL:"",pinnedThreshold:void 0,shouldPinMaxStoragePrice:!1,maxStoragePriceTBMonthPinned:void 0,shouldPinMaxDownloadPrice:!1,maxDownloadPriceTBPinned:void 0,shouldPinMaxUploadPrice:!1,maxUploadPriceTBPinned:void 0,shouldPinAllowance:!1,allowanceMonthPinned:void 0},p={...u,...c,...d,...f,minShards:void 0,totalShards:void 0,...h};function m(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),minProtocolVersion:"1.6.0",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),minProtocolVersion:"1.6.0",prune:!0}}}let g={...c,defaultContractSet:"autopilot"},v={...d},y={...f},x={...h};function b(e){return{...m(e),...g,...v,...y,..."mainnet"===e?{minShards:new(s())(10),totalShards:new(s())(30)}:{minShards:new(s())(2),totalShards:new(s())(6)},...x}}function w(e){let{autopilotState:t,autopilot:n,contractSet:r,uploadPacking:i,gouging:a,redundancy:o,pricePinning:l,averages:s,appSettings:u}=e;return!!(t.data&&o.data&&i.data&&a.data&&l.data&&(n.data||n.error)&&(r.data||r.error)&&(!u.settings.siaCentral||s.data))}var j=n(82842);function k(e){let{gouging:t,averages:n,hasBeenConfigured:r}=e,i=function(e){let{gouging:t,averages:n,hasBeenConfigured:r}=e;return r||!n?t:{...t,maxStoragePrice:n.settings.storage_price,maxDownloadPrice:new(s())(n.settings.download_price).times((0,o.xf)(1)).toString(),maxUploadPrice:new(s())(n.settings.upload_price).times((0,o.xf)(1)).toString()}}({gouging:t,averages:n,hasBeenConfigured:r});return{maxStoragePriceTBMonth:(0,o.ll)((0,o.dq)(new(s())(i.maxStoragePrice)),6),maxUploadPriceTB:(0,o.ll)(new(s())(i.maxUploadPrice),6),maxDownloadPriceTB:(0,o.ll)(i.maxDownloadPrice,6),maxContractPrice:(0,o.ll)(i.maxContractPrice,6),maxRPCPriceMillion:(0,o.ll)((0,o.x9)(new(s())(i.maxRPCPrice)),6),hostBlockHeightLeeway:new(s())(i.hostBlockHeightLeeway),minPriceTableValidityMinutes:new(s())((0,a.AEA)(i.minPriceTableValidity)),minAccountExpiryDays:new(s())((0,a.okB)(i.minAccountExpiry)),minMaxEphemeralAccountBalance:(0,o.ll)(i.minMaxEphemeralAccountBalance,6),migrationSurchargeMultiplier:new(s())(i.migrationSurchargeMultiplier)}}function E(e){let{hasBeenConfigured:t,autopilot:n,contractSet:r,uploadPacking:i,gouging:l,redundancy:d,pricePinning:f,averages:h}=e;return{...function(e){if(!e)return u;let t=e.contracts.set,n=(0,o.ll)((0,o.qX)(new(s())(e.contracts.allowance),e.contracts.period),6),r=new(s())(e.contracts.amount),i=new(s())((0,o.x5)(e.contracts.period)),l=new(s())((0,o.x5)(e.contracts.renewWindow)),c=new(s())((0,a.$Gr)((0,o.qX)((0,o.JW)(e.contracts.download),e.contracts.period),2));return{autopilotContractSet:t,allowanceMonth:n,amountHosts:r,periodWeeks:i,renewWindowWeeks:l,downloadTBMonth:c,uploadTBMonth:new(s())((0,a.$Gr)((0,o.qX)((0,o.JW)(e.contracts.upload),e.contracts.period),2)),storageTB:(0,o.JW)(new(s())(e.contracts.storage)),prune:e.contracts.prune,allowRedundantIPs:e.hosts.allowRedundantIPs,maxDowntimeHours:new(s())(e.hosts.maxDowntimeHours),minRecentScanFailures:new(s())(e.hosts.minRecentScanFailures),minProtocolVersion:e.hosts.minProtocolVersion||""}}(n),...r?{defaultContractSet:r.default}:c,uploadPackingEnabled:i.enabled,...k({gouging:l,averages:h,hasBeenConfigured:t}),...function(e,t){var n,r,i,l,u,c;let d=(null===(n=j.mV.find(t=>t.id===e.currency))||void 0===n?void 0:n.fixed)||6;return{pinningEnabled:e.enabled,pinnedCurrency:e.currency,forexEndpointURL:e.forexEndpointURL,pinnedThreshold:new(s())(e.threshold).times(100),shouldPinAllowance:(null===(r=e.autopilots.autopilot)||void 0===r?void 0:r.allowance.pinned)||!1,allowanceMonthPinned:(0,a.MzJ)((0,o.qX)(new(s())((null===(i=e.autopilots.autopilot)||void 0===i?void 0:i.allowance.value)||0),t||(0,o.mv)(6)),d),shouldPinMaxStoragePrice:null===(l=e.gougingSettingsPins)||void 0===l?void 0:l.maxStorage.pinned,maxStoragePriceTBMonthPinned:new(s())(e.gougingSettingsPins.maxStorage.value),shouldPinMaxUploadPrice:null===(u=e.gougingSettingsPins)||void 0===u?void 0:u.maxUpload.pinned,maxUploadPriceTBPinned:new(s())(e.gougingSettingsPins.maxUpload.value),shouldPinMaxDownloadPrice:null===(c=e.gougingSettingsPins)||void 0===c?void 0:c.maxDownload.pinned,maxDownloadPriceTBPinned:new(s())(e.gougingSettingsPins.maxDownload.value)}}(f,null==n?void 0:n.contracts.period),minShards:new(s())(d.minShards),totalShards:new(s())(d.totalShards)}}var S=n(55329),C=n(92762),M=n(95598),_=n(20248),O=n(89523),T=n(16299),P=n(42082),A=n(66401),N=n(93122),R=n(57969),D=function(e,t,n,r){if(!(0,N.Z)(e))return e;t=(0,P.Z)(t,e);for(var i=-1,a=t.length,o=a-1,l=e;null!=l&&++inull!=e&&""!==e)};return{...n,contracts:{...null==n?void 0:n.contracts,set:r.autopilotContractSet,amount:Math.round(r.amountHosts.toNumber()),allowance:(0,o.qN)((0,o.oc)(r.allowanceMonth,r.periodWeeks)).toString(),period:Math.round((0,o.mv)(r.periodWeeks.toNumber())),renewWindow:Math.round((0,o.mv)(r.renewWindowWeeks.toNumber())),download:Number((0,o.oc)((0,o.xf)(r.downloadTBMonth),r.periodWeeks).toFixed(0)),upload:Number((0,o.oc)((0,o.xf)(r.uploadTBMonth),r.periodWeeks).toFixed(0)),storage:(0,o.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,minProtocolVersion:r.minProtocolVersion}}}(i.network,u,r.autopilot.data):void 0,d=z(u,r.contractSet.data),f={...r.uploadPacking.data,enabled:u.uploadPackingEnabled};return{payloads:{autopilot:c,contractSet:d,uploadPacking:f,gouging:{...r.gouging.data,maxRPCPrice:(0,o.qN)((0,o.ZA)(u.maxRPCPriceMillion)).toString(),maxStoragePrice:(0,o.qN)((0,o.iX)(u.maxStoragePriceTBMonth)).toString(),maxUploadPrice:(0,o.qN)(u.maxUploadPriceTB).toString(),maxDownloadPrice:(0,o.qN)(u.maxDownloadPriceTB).toString(),maxContractPrice:(0,o.qN)(u.maxContractPrice).toString(),hostBlockHeightLeeway:Math.round((null===(t=u.hostBlockHeightLeeway)||void 0===t?void 0:t.toNumber())||0),minPriceTableValidity:Math.round((0,a.ort)((null===(n=u.minPriceTableValidityMinutes)||void 0===n?void 0:n.toNumber())||0)),minAccountExpiry:Math.round((0,a.k9c)(u.minAccountExpiryDays.toNumber())),minMaxEphemeralAccountBalance:(0,o.qN)(u.minMaxEphemeralAccountBalance).toString(),migrationSurchargeMultiplier:u.migrationSurchargeMultiplier.toNumber()},redundancy:{...r.redundancy.data,minShards:u.minShards.toNumber(),totalShards:u.totalShards.toNumber()},pricePinning:{...r.pricePinning.data,enabled:u.pinningEnabled,currency:u.pinnedCurrency,forexEndpointURL:u.forexEndpointURL,threshold:u.pinnedThreshold.div(100).toNumber(),autopilots:{autopilot:{allowance:{pinned:u.shouldPinAllowance,value:(0,o.oc)(u.allowanceMonthPinned,u.periodWeeks||new(s())(6)).toNumber()}}},gougingSettingsPins:{maxStorage:{pinned:u.shouldPinMaxStoragePrice,value:u.maxStoragePriceTBMonthPinned.toNumber()},maxDownload:{pinned:u.shouldPinMaxDownloadPrice,value:u.maxDownloadPriceTBPinned.toNumber()},maxUpload:{pinned:u.shouldPinMaxUploadPrice,value:u.maxUploadPriceTBPinned.toNumber()}}}}}}function B(){let[e,t]=(0,C.Z)("v0/autopilot/syncDefaultContractSet",{defaultValue:!0}),n=(0,S.M6)({config:{swr:{errorRetryCount:0}}}),o=(0,S.KJ)(),l=(0,i.useCallback)(async t=>{let i=n.data||{default:""};try{e&&t!==i.default&&(await o.put({params:{key:"contractset"},payload:z({defaultContractSet:t},n.data)}),n.mutate(),(0,a.OPV)({title:"Default contract set updated",body:(0,r.jsxs)(r.Fragment,{children:["Default contract set has been updated to:"," ",(0,r.jsx)(a.EKh,{children:t}),"."]})}))}catch(e){(0,a.OHV)({title:"Error updating default contract set",body:e.message}),console.log(e)}},[n.data,o,e]);return{shouldSyncDefaultContractSet:e,setShouldSyncDefaultContractSet:t,maybeSyncDefaultContractSet:l}}var I=n(85375),H=n(37606),U=n(56922),W=n(63955),q=n(79381),$=n(89644),K=n.n($);function Y(e){let{minShards:t,totalShards:n}=e;return(0,i.useMemo)(()=>(0,o.aU)(t,n),[t,n])}function X(e){let{form:t}=e,n=t.watch("pinnedCurrency"),r=t.watch("forexEndpointURL"),o=(0,q.ZP)(r&&n?["pricePinningExchangeRate",r,n]:null,async()=>(await K().get("".concat(r,"/").concat(n))).data,{refreshInterval:(0,a.sWj)(5),dedupingInterval:1e4}).data;return(0,i.useMemo)(()=>o&&"number"==typeof o?new(s())(o):void 0,[o])}function G(e){let{form:t}=e,{isAutopilotEnabled:n}=(0,H.q)(),r=Q({form:t}),a=t.watch("storageTB"),o=t.watch("downloadTBMonth"),l=t.watch("uploadTBMonth"),s=Y({minShards:t.watch("minShards"),totalShards:t.watch("totalShards")}),u=X({form:t}),c=(0,i.useMemo)(()=>{if(n){let e=function(e){let{allowanceMonth:t,allowanceFactor:n=1.5,storageTB:r,downloadTBMonth:i,uploadTBMonth:a,redundancyMultiplier:o,storageWeight:l=4,downloadWeight:s=5,uploadWeight:u=1}=e;if(!(null==t?void 0:t.gt(0))||n<=0||!(null==o?void 0:o.gt(0))||!(null==r?void 0:r.gt(0))||!(null==i?void 0:i.gt(0))||!(null==a?void 0:a.gt(0)))return null;let c=t.times(n),d=r.times(o),f=a.times(o),h=c.div(d.times(l).plus(i.times(s)).plus(f.times(u)));return{maxUploadPriceTB:h.times(u),maxDownloadPriceTB:h.times(s),maxStoragePriceTBMonth:h.times(l)}}({allowanceMonth:r,allowanceFactor:1.5,storageTB:a,downloadTBMonth:o,uploadTBMonth:l,redundancyMultiplier:s,storageWeight:4,downloadWeight:5,uploadWeight:1}),t=u?{maxStoragePriceTBMonthPinned:null==e?void 0:e.maxStoragePriceTBMonth.times(u),maxDownloadPriceTBPinned:null==e?void 0:e.maxDownloadPriceTB.times(u),maxUploadPriceTBPinned:null==e?void 0:e.maxUploadPriceTB.times(u)}:{};return{...e,...t}}return null},[n,r,a,o,l,s,u]),d=t.watch("shouldPinMaxStoragePrice"),f=t.watch("shouldPinMaxUploadPrice"),h=t.watch("shouldPinMaxDownloadPrice"),p={};return c?(d?p.maxStoragePriceTBMonthPinned=c.maxStoragePriceTBMonthPinned:p.maxStoragePriceTBMonth=c.maxStoragePriceTBMonth,f?p.maxUploadPriceTBPinned=c.maxUploadPriceTBPinned:p.maxUploadPriceTB=c.maxUploadPriceTB,h?p.maxDownloadPriceTBPinned=c.maxDownloadPriceTBPinned:p.maxDownloadPriceTB=c.maxDownloadPriceTB,p):null}function J(e){let{form:t}=e,n=t.watch("shouldPinMaxStoragePrice"),r=t.watch("shouldPinMaxUploadPrice"),i=t.watch("shouldPinMaxDownloadPrice"),a=t.watch("maxStoragePriceTBMonth"),l=t.watch("maxStoragePriceTBMonthPinned"),s=t.watch("maxDownloadPriceTB"),u=t.watch("maxDownloadPriceTBPinned"),c=t.watch("maxUploadPriceTB"),d=t.watch("maxUploadPriceTBPinned"),f=X({form:t});return(n||i||r)&&!f||n&&!l||i&&!u||r&&!d?null:{maxStoragePriceTBMonth:n?(0,o.gP)(l,f):a,maxDownloadPriceTB:i?(0,o.gP)(u,f):s,maxUploadPriceTB:r?(0,o.gP)(d,f):c}}function Q(e){let{form:t}=e,n=t.watch("shouldPinAllowance"),r=t.watch("allowanceMonth"),i=t.watch("allowanceMonthPinned"),a=X({form:t});return n&&!a?null:n?null==i?void 0:i.div(a):r}var ee=n(47211);function et(e){let{children:t,tip:n,icon:i,iconColor:o,onClick:l,disabled:s}=e;return(0,r.jsx)(a.ua7,{align:"end",content:n,children:(0,r.jsxs)("div",{className:"flex gap-1 items-center relative p-1 -m-1 overflow-hidden",children:[(0,r.jsx)(a.xvT,{color:o,className:"flex relative",children:i}),(0,r.jsx)(a.zxk,{size:"small",onClick:l,disabled:s,className:"flex-1",children:t})]})})}function en(e){let{children:t,tip:n,icon:i,iconColor:o}=e;return(0,r.jsx)(a.ua7,{align:"end",content:n,children:(0,r.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,r.jsx)(a.xvT,{color:o,className:"flex relative",children:i}),t]})})}function er(e){let{form:t,priceInSiacoin:n,units:i}=e,l=t.watch("minShards"),s=t.watch("totalShards"),u=Y({minShards:l,totalShards:s});return n&&l&&s?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.Z0O,{}),(0,r.jsx)(en,{tip:(0,r.jsxs)(r.Fragment,{children:["Price per ",i," when factoring in the configured"," ",null==l?void 0:l.toString()," of ",null==s?void 0:s.toString()," redundancy."]}),icon:(0,r.jsx)(ee.DlU,{}),children:(0,r.jsx)(a.ho9,{font:"sans",variant:"value",size:"12",fixed:0,showTooltip:!1,extendedSuffix:"/".concat(i," with redundancy"),value:(0,o.qN)(n).times(u)})})]}):null}let ei=(0,r.jsxs)(r.Fragment,{children:["Set suggested max price that fits the current allowance spending target. This suggested value takes into account the current estimated usage and keeps storage, upload, and download upload prices proportional to each other according to the following weights: ",4,"x storage, ",1,"x upload, ",5,"x download."]}),ea=(0,r.jsxs)(r.Fragment,{children:["Set suggested max prices for storage, upload, and download that fit the current allowance spending target. The suggested values take into account the current estimated usage and keeps storage, upload, and download upload prices proportional to each other according to the following weights:"," ",4,"x storage, ",1,"x upload, ",5,"x download."]}),eo=(0,r.jsx)(r.Fragment,{children:"The system found a recommendation that would increase the number of usable hosts."});function el(e){let{form:t,fields:n}=e,l=G({form:t}),u=function(e){let{form:t}=e,n=t.watch("minShards"),r=t.watch("totalShards"),i=t.watch("storageTB"),a=t.watch("downloadTBMonth"),l=t.watch("uploadTBMonth"),s=t.watch("shouldPinAllowance"),u=Y({minShards:n,totalShards:r}),c=J({form:t}),d=X({form:t});if(!c)return null;let{maxStoragePriceTBMonth:f,maxUploadPriceTB:h,maxDownloadPriceTB:p}=c,m=function(e){let{maxStoragePriceTBMonth:t,maxDownloadPriceTB:n,maxUploadPriceTB:r,allowanceFactor:i=1.5,storageTB:a,downloadTBMonth:l,uploadTBMonth:s,redundancyMultiplier:u}=e;return(null==t?void 0:t.gt(0))&&(null==n?void 0:n.gt(0))&&(null==r?void 0:r.gt(0))&&!(i<=0)&&(null==u?void 0:u.gt(0))&&(null==a?void 0:a.gt(0))&&(null==l?void 0:l.gt(0))&&(null==s?void 0:s.gt(0))?(0,o.k4)({maxStoragePriceTBMonth:t,maxDownloadPriceTB:n,maxUploadPriceTB:r,storageTB:a,downloadTBMonth:l,uploadTBMonth:s,redundancyMultiplier:u}).div(i).integerValue():null}({maxStoragePriceTBMonth:f,maxDownloadPriceTB:p,maxUploadPriceTB:h,storageTB:i,downloadTBMonth:a,uploadTBMonth:l,redundancyMultiplier:u}),g={};if(!m)return null;if(s){if(!d)return null;g.allowanceMonthPinned=m.times(d)}else g.allowanceMonth=m;return g}({form:t}),c=J({form:t}),d=Q({form:t}),f=t.watch("storageTB"),h=t.watch("downloadTBMonth"),p=t.watch("uploadTBMonth"),m=Y({minShards:t.watch("minShards"),totalShards:t.watch("totalShards")}),g=(0,i.useMemo)(()=>{if(!c)return!1;let{maxStoragePriceTBMonth:e,maxUploadPriceTB:t,maxDownloadPriceTB:n}=c;return(null==e?void 0:e.gt(0))&&(null==t?void 0:t.gt(0))&&(null==n?void 0:n.gt(0))&&(null==f?void 0:f.gt(0))&&(null==h?void 0:h.gt(0))&&(null==p?void 0:p.gt(0))},[c,f,h,p]),v=(0,i.useMemo)(()=>null==d?void 0:d.gt(0),[d]),y=(0,i.useMemo)(()=>g&&v,[g,v]),x=(0,i.useMemo)(()=>{if(!y)return new(s())(0);let{maxStoragePriceTBMonth:e,maxUploadPriceTB:t,maxDownloadPriceTB:n}=c,r=(0,o.k4)({maxStoragePriceTBMonth:e,maxDownloadPriceTB:n,maxUploadPriceTB:t,storageTB:f,downloadTBMonth:h,uploadTBMonth:p,redundancyMultiplier:m}),i=d.times(1.5);return i.minus(r).abs().div(i).times(100)},[d,c,f,h,p,m,y]);return(0,r.jsxs)(r.Fragment,{children:[y?x.gt(1)?(0,r.jsx)(en,{icon:(0,r.jsx)(ee.Gu6,{}),iconColor:"amber",children:(0,r.jsx)(a.xvT,{size:"12",ellipsis:!0,children:"Current pricing may not fit allowance"})}):(0,r.jsx)(en,{icon:(0,r.jsx)(ee.Y3p,{}),iconColor:"green",children:(0,r.jsx)(a.xvT,{size:"12",ellipsis:!0,children:"Current pricing fits allowance"})}):(0,r.jsx)(en,{icon:(0,r.jsx)(ee.O5t,{}),iconColor:"subtle",children:(0,r.jsx)(a.xvT,{size:"12",ellipsis:!0,color:"subtle",children:"Set allowance and pricing for feedback"})}),(0,r.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,r.jsx)(et,{icon:(0,r.jsx)(ee.JPh,{}),iconColor:"contrast",disabled:!(null==d?void 0:d.gt(0)),tip:ea,onClick:()=>{(0,a.JMs)({form:t,fields:n,values:l,options:!0})},children:"Set max prices to fit current allowance"}),(0,r.jsx)(et,{icon:(0,r.jsx)(ee.YZj,{}),iconColor:"contrast",disabled:!c,tip:"Set the allowance to fit the current max prices for storage, upload, and download.",onClick:()=>{u&&(0,a.JMs)({form:t,fields:n,values:u,options:!0})},children:"Set allowance to fit current max prices"})]})]})}function es(e){var t;let{form:n,fields:i,recommendations:l}=e,s=G({form:n}),u=n.watch("maxStoragePriceTBMonth"),c=null==l?void 0:null===(t=l.maxStoragePriceTBMonth)||void 0===t?void 0:t.targetValue;return(0,r.jsxs)(r.Fragment,{children:[s&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Fit current allowance",tip:ei,decimalsLimit:0,value:(0,o.qN)(s.maxStoragePriceTBMonth),onClick:()=>{(0,a.fsB)({form:n,fields:i,name:"maxStoragePriceTBMonth",value:s.maxStoragePriceTBMonth,options:!0})}}),c&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Match with more hosts",tip:eo,decimalsLimit:0,value:(0,o.qN)(c),onClick:()=>(0,a.fsB)({form:n,fields:i,name:"maxStoragePriceTBMonth",value:c,options:!0})}),(0,r.jsx)(er,{form:n,priceInSiacoin:u,units:"TB/month"})]})}function eu(e){var t;let{form:n,fields:i,recommendations:l}=e,s=G({form:n}),u=X({form:n}),c=n.watch("maxStoragePriceTBMonthPinned"),d=c&&u?(0,o.gP)(c,u):null,f=(null==s?void 0:s.maxStoragePriceTBMonthPinned)&&u?(0,o.gP)(s.maxStoragePriceTBMonthPinned,u):null,h=null==l?void 0:null===(t=l.maxStoragePriceTBMonthPinned)||void 0===t?void 0:t.targetValue,p=h&&u?(0,o.gP)(h,u):null;return(0,r.jsxs)(r.Fragment,{children:[s&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Fit current allowance",tip:ei,decimalsLimit:0,value:(0,o.qN)(f),onClick:()=>{(0,a.fsB)({form:n,fields:i,name:"maxStoragePriceTBMonthPinned",value:s.maxStoragePriceTBMonthPinned,options:!0})}}),p&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Match with more hosts",tip:eo,decimalsLimit:0,value:(0,o.qN)(p),onClick:()=>(0,a.fsB)({form:n,fields:i,name:"maxStoragePriceTBMonthPinned",value:h,options:!0})}),(0,r.jsx)(er,{form:n,priceInSiacoin:d,units:"TB/month"})]})}function ec(e){var t;let{form:n,fields:i,recommendations:l}=e,s=G({form:n}),u=n.watch("maxUploadPriceTB"),c=null==l?void 0:null===(t=l.maxUploadPriceTB)||void 0===t?void 0:t.targetValue;return(0,r.jsxs)(r.Fragment,{children:[s&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Fit current allowance",tip:eo,decimalsLimit:0,value:(0,o.qN)(s.maxUploadPriceTB),onClick:()=>{(0,a.fsB)({form:n,fields:i,name:"maxUploadPriceTB",value:s.maxUploadPriceTB,options:!0})}}),c&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Match with more hosts",tip:ei,decimalsLimit:0,value:(0,o.qN)(c),onClick:()=>(0,a.fsB)({form:n,fields:i,name:"maxUploadPriceTB",value:c,options:!0})}),(0,r.jsx)(er,{form:n,priceInSiacoin:u,units:"TB"})]})}function ed(e){var t;let{form:n,fields:i,recommendations:l}=e,s=G({form:n}),u=X({form:n}),c=n.watch("maxUploadPriceTBPinned"),d=c&&u?(0,o.gP)(c,u):null,f=(null==s?void 0:s.maxUploadPriceTBPinned)&&u?(0,o.gP)(s.maxUploadPriceTBPinned,u):null,h=null==l?void 0:null===(t=l.maxUploadPriceTBPinned)||void 0===t?void 0:t.targetValue,p=h&&u?(0,o.gP)(h,u):null;return(0,r.jsxs)(r.Fragment,{children:[s&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Fit current allowance",tip:ei,decimalsLimit:0,value:(0,o.qN)(f),onClick:()=>{(0,a.fsB)({form:n,fields:i,name:"maxUploadPriceTBPinned",value:s.maxUploadPriceTBPinned,options:!0})}}),p&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Match with more hosts",tip:eo,decimalsLimit:0,value:(0,o.qN)(p),onClick:()=>(0,a.fsB)({form:n,fields:i,name:"maxUploadPriceTBPinned",value:h,options:!0})}),(0,r.jsx)(er,{form:n,priceInSiacoin:d,units:"TB"})]})}function ef(e){var t;let{form:n,fields:i,recommendations:l}=e,s=G({form:n}),u=null==l?void 0:null===(t=l.maxDownloadPriceTB)||void 0===t?void 0:t.targetValue;return(0,r.jsxs)(r.Fragment,{children:[s&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Fit current allowance",tip:ei,decimalsLimit:0,value:(0,o.qN)(s.maxDownloadPriceTB),onClick:()=>{(0,a.fsB)({form:n,fields:i,name:"maxDownloadPriceTB",value:s.maxDownloadPriceTB,options:!0})}}),u&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Match with more hosts",tip:eo,decimalsLimit:0,value:(0,o.qN)(u),onClick:()=>(0,a.fsB)({form:n,fields:i,name:"maxDownloadPriceTB",value:u,options:!0})})]})}function eh(e){var t;let{form:n,fields:i,recommendations:l}=e,s=G({form:n}),u=X({form:n}),c=(null==s?void 0:s.maxDownloadPriceTBPinned)&&u?(0,o.gP)(s.maxDownloadPriceTBPinned,u):null,d=null==l?void 0:null===(t=l.maxDownloadPriceTBPinned)||void 0===t?void 0:t.targetValue,f=d&&u?(0,o.gP)(d,u):null;return(0,r.jsxs)(r.Fragment,{children:[s&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Fit current allowance",tip:ei,decimalsLimit:0,value:(0,o.qN)(c),onClick:()=>{(0,a.fsB)({form:n,fields:i,name:"maxDownloadPriceTBPinned",value:s.maxDownloadPriceTBPinned,options:!0})}}),f&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Match with more hosts",tip:eo,decimalsLimit:0,value:(0,o.qN)(f),onClick:()=>(0,a.fsB)({form:n,fields:i,name:"maxDownloadPriceTBPinned",value:d,options:!0})})]})}function ep(e){var t;let{form:n,fields:i,recommendations:l}=e,s=null==l?void 0:null===(t=l.maxRPCPriceMillion)||void 0===t?void 0:t.targetValue;return s&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Match with more hosts",tip:eo,decimalsLimit:0,value:(0,o.qN)(s),onClick:()=>(0,a.fsB)({form:n,fields:i,name:"maxRPCPriceMillion",value:s,options:!0})})}function em(e){var t,n,i,o,l,u;let{advancedDefaults:c,averagesSc:d,averagesFiat:f,recommendations:h,isAutopilotEnabled:p,configViewMode:m,validationContext:g}=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:!p,validation:{validate:{required:ev(g)}}},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:!p,validation:{validate:{required:ev(g)}}},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:!p,validation:{validate:{required:ev(g)}}},shouldPinAllowance:{title:"",description:"",type:"boolean",category:"storage",validation:{}},allowanceMonth:{type:"siacoin",category:"storage",title:"Allowance",description:(0,r.jsx)(r.Fragment,{children:"The amount you would like to spend per month. Choose whether to set your allowance in siacoin per month or to pin the siacoin price to a fixed fiat value per month."}),units:"SC/month",decimalsLimitSc:6,hidden:!p,validation:{validate:{required:ev(g)}},after:el},allowanceMonthPinned:{title:"",description:"",units:"/month",type:"fiat",category:"storage",validation:{validate:{required:ex(g,(e,t)=>!t.shouldPinAllowance||!!e||"required"),currency:ex(g,(e,t)=>!!t.pinnedCurrency||"must select a pinned currency"),range:ex(g,(e,t)=>!t.shouldPinAllowance||(null==e?void 0:e.gt(0))||"must be greater than 0")}},after:el},periodWeeks:{type:"number",category:"storage",title:"Period",description:(0,r.jsx)(r.Fragment,{children:"The length of the storage contracts."}),units:"weeks",suggestion:null==c?void 0:c.periodWeeks,suggestionTip:"Typically ".concat(null==c?void 0:c.periodWeeks," weeks."),hidden:!p||"basic"===m,validation:{validate:{required:ey(g)}}},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==c?void 0:c.renewWindowWeeks,suggestionTip:"Typically ".concat(null==c?void 0:c.renewWindowWeeks," weeks."),hidden:!p||"basic"===m,validation:{validate:{required:ey(g)}}},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==c?void 0:c.amountHosts,suggestionTip:"Typically ".concat(null==c?void 0:c.amountHosts," hosts."),hidden:!p||"basic"===m,validation:{validate:{required:ey(g)}}},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==c?void 0:c.autopilotContractSet,suggestion:null==c?void 0:c.autopilotContractSet,suggestionTip:(0,r.jsxs)(r.Fragment,{children:["The default contract set is"," ",(0,r.jsx)(a.EKh,{children:null==c?void 0:c.autopilotContractSet}),"."]}),hidden:!p||"basic"===m,validation:{validate:{required:ey(g)}}},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==c?void 0:c.prune,suggestionTip:(0,r.jsxs)(r.Fragment,{children:["The default value is ",(0,r.jsx)(a.EKh,{children:null==c?void 0:c.prune}),"."]}),hidden:!p||"basic"===m,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==c?void 0:c.allowRedundantIPs,suggestionTip:"Defaults to ".concat((null==c?void 0:c.allowRedundantIPs)?"on":"off","."),hidden:!p||"basic"===m,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==c?void 0:c.maxDowntimeHours,suggestionTip:"Defaults to ".concat(null==c?void 0:c.maxDowntimeHours.toNumber().toLocaleString()," which is ").concat((0,a.$Gr)(new(s())((0,a.XAn)(null==c?void 0:c.maxDowntimeHours.toNumber())),1)," days."),hidden:!p||"basic"===m,validation:{validate:{required:ey(g)}}},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==c?void 0:c.minRecentScanFailures,suggestionTip:"Defaults to ".concat(null==c?void 0:c.minRecentScanFailures.toNumber(),"."),hidden:!p||"basic"===m,validation:{validate:{required:ey(g)}}},minProtocolVersion:{type:"text",category:"hosts",title:"Min protocol version",description:(0,r.jsx)(r.Fragment,{children:"The minimum protocol version that autopilot will consider when forming contracts with hosts."}),suggestion:null==c?void 0:c.minProtocolVersion,suggestionTip:"Defaults to ".concat(null==c?void 0:c.minProtocolVersion,"."),hidden:!p||"basic"===m,validation:{validate:{required:ey(g),version:ey(g,e=>/^\d+\.\d+\.\d+$/.test(e)||"must be a valid version number")}}},defaultContractSet:{category:"contractset",type:"text",title:"Default contract set",placeholder:null==c?void 0:c.defaultContractSet,suggestion:null==c?void 0:c.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:"basic"===m,validation:{validate:{required:eg(g)}}},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:"basic"===m,validation:{}},shouldPinMaxStoragePrice:{title:"",description:"",type:"boolean",category:"gouging",validation:{}},maxStoragePriceTBMonth:{category:"gouging",type:"siacoin",title:"Max storage price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed price a host is allowed to charge to store 1 TB worth of data per month. Choose whether to set the price in siacoin per TB per month or to pin the siacoin price to a fixed fiat value per TB per month."}),units:"SC/TB/month",average:null==d?void 0:d.storageAverage,averageTip:"Averages provided by Sia Central.",decimalsLimitSc:6,validation:{required:"required"},after:e=>{let{form:t,fields:n}=e;return(0,r.jsx)(es,{form:t,fields:n,recommendations:h})}},maxStoragePriceTBMonthPinned:{title:"",description:"",units:"/TB/month",type:"fiat",category:"gouging",average:null==f?void 0:f.storageAverage,averageTip:"Averages provided by Sia Central.",validation:{validate:{required:ex(g,(e,t)=>!t.shouldPinMaxStoragePrice||!!e||"required"),disabled:(e,t)=>{if(!t.pinningEnabled&&t.shouldPinMaxStoragePrice)return"please enable pinning and select a currency"},currency:ex(g,(e,t)=>!!t.pinnedCurrency||"must select a pinned currency"),range:ex(g,(e,t)=>!t.shouldPinMaxStoragePrice||(null==e?void 0:e.gt(0))||"must be greater than 0")}},after:e=>{let{form:t,fields:n}=e;return(0,r.jsx)(eu,{form:t,fields:n,recommendations:h})}},shouldPinMaxUploadPrice:{title:"",description:"",type:"boolean",category:"gouging",validation:{}},maxUploadPriceTB:{category:"gouging",type:"siacoin",title:"Max upload price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed price a host is allowed to charge for uploading 1 TB worth of data. Choose whether to set the price in siacoin per TB or to pin the siacoin price to a fixed fiat value per TB."}),units:"SC/TB",average:null==d?void 0:d.uploadAverage,averageTip:"Averages provided by Sia Central.",decimalsLimitSc:6,validation:{required:"required"},after:e=>{let{form:t,fields:n}=e;return(0,r.jsx)(ec,{form:t,fields:n,recommendations:h})}},maxUploadPriceTBPinned:{title:"",description:"",units:"/TB",type:"fiat",average:null==f?void 0:f.uploadAverage,averageTip:"Averages provided by Sia Central.",category:"gouging",validation:{validate:{required:ex(g,(e,t)=>!t.shouldPinMaxUploadPrice||!!e||"required"),currency:ex(g,(e,t)=>!!t.pinnedCurrency||"must select a pinned currency"),range:ex(g,(e,t)=>!t.shouldPinMaxUploadPrice||(null==e?void 0:e.gt(0))||"must be greater than 0")}},after:e=>{let{form:t,fields:n}=e;return(0,r.jsx)(ed,{form:t,fields:n,recommendations:h})}},shouldPinMaxDownloadPrice:{title:"",description:"",type:"boolean",category:"gouging",validation:{}},maxDownloadPriceTB:{category:"gouging",type:"siacoin",title:"Max download price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed price to download 1 TB. Choose whether to set the price in siacoin per TB or to pin the siacoin price to a fixed fiat value per TB."}),units:"SC/TB",average:null==d?void 0:d.downloadAverage,averageTip:"Averages provided by Sia Central.",decimalsLimitSc:6,validation:{required:"required"},after:e=>{let{form:t,fields:n}=e;return(0,r.jsx)(ef,{form:t,fields:n,recommendations:h})}},maxDownloadPriceTBPinned:{title:"",description:"",units:"/TB",type:"fiat",average:null==f?void 0:f.downloadAverage,averageTip:"Averages provided by Sia Central.",category:"gouging",validation:{validate:{required:ex(g,(e,t)=>!t.shouldPinMaxDownloadPrice||!!e||"required"),currency:ex(g,(e,t)=>!!t.pinnedCurrency||"must select a pinned currency"),range:ex(g,(e,t)=>!t.shouldPinMaxDownloadPrice||(null==e?void 0:e.gt(0))||"must be greater than 0")}},after:e=>{let{form:t,fields:n}=e;return(0,r.jsx)(eh,{form:t,fields:n,recommendations:h})}},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:null==d?void 0:d.contractAverage,averageTip:"Averages provided by Sia Central.",decimalsLimitSc:6,tipsDecimalsLimitSc:3,hidden:"basic"===m,suggestionLabel:"Match with more hosts",suggestion:null===(t=h.maxContractPrice)||void 0===t?void 0:t.targetValue,suggestionTip:"This value will help you match with more hosts.",validation:{validate:{required:eg(g)}}},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. Choose whether to set the price in siacoin per million calls or to pin the siacoin price to a fixed fiat value per million calls."}),units:"SC/million",decimalsLimitSc:6,hidden:"basic"===m,average:null==d?void 0:d.rpcAverage,averageTip:"Averages provided by Sia Central.",suggestionTip:"This value will help you match with more hosts.",validation:{validate:{required:eg(g)}},after:e=>{let{form:t,fields:n}=e;return(0,r.jsx)(ep,{form:t,fields:n,recommendations:h})}},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,...h.hostBlockHeightLeeway?{suggestionLabel:"Match with more hosts",suggestion:null===(n=h.hostBlockHeightLeeway)||void 0===n?void 0:n.targetValue,suggestionTip:"This value will help you match with more hosts."}:{suggestion:null==c?void 0:c.hostBlockHeightLeeway,suggestionTip:"The recommended value is 6 blocks."},hidden:"basic"===m,validation:{validate:{required:eg(g),min:eg(g,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:"basic"===m,suggestionLabel:"Match with more hosts",suggestion:null===(i=h.minPriceTableValidityMinutes)||void 0===i?void 0:i.targetValue,suggestionTip:"This value will help you match with more hosts.",validation:{validate:{required:eg(g),min:eg(g,e=>new(s())(e).gte((0,a.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:"basic"===m,suggestionLabel:"Match with more hosts",suggestion:null===(o=h.minAccountExpiryDays)||void 0===o?void 0:o.targetValue,suggestionTip:"This value will help you match with more hosts.",validation:{validate:{required:eg(g),min:eg(g,e=>new(s())(e).gte((0,a.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:"basic"===m,suggestionLabel:"Match with more hosts",suggestion:null===(l=h.minMaxEphemeralAccountBalance)||void 0===l?void 0:l.targetValue,suggestionTip:"This value will help you match with more hosts.",validation:{validate:{required:eg(g),min:eg(g,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."}),...h.migrationSurchargeMultiplier?{suggestionLabel:"Match with more hosts",suggestion:null===(u=h.migrationSurchargeMultiplier)||void 0===u?void 0:u.targetValue,suggestionTip:"This value will help you match with more hosts."}:{suggestion:new(s())(10),suggestionTip:"The default multiplier is 10x the download price."},hidden:"basic"===m,validation:{validate:{required:eg(g)}}},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==c?void 0:c.minShards,suggestionTip:"Typically ".concat(null==c?void 0:c.minShards," shards."),units:"shards",hidden:"basic"===m,validation:{validate:{required:eg(g),min:eg(g,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==c?void 0:c.totalShards,suggestionTip:"Typically ".concat(null==c?void 0:c.totalShards," shards."),units:"shards",hidden:"basic"===m,validation:{validate:{required:eg(g),gteMinShards:eg(g,(e,t)=>new(s())(e).gte(t.minShards)||"must be at least equal to min shards"),max:eg(g,e=>new(s())(e).lt(256)||"must be less than 256")}}},pinningEnabled:{category:"pinning",type:"boolean",title:"Pinning",description:"Pinning allows you to set a fixed fiat price for each supported field. Pinning is available for allowance and maximum price fields.",validation:{}},pinnedCurrency:{category:"pinning",title:"Pinned currency",description:"Currency to use for fields where price pinning is enabled.",type:"select",options:[...j.mV.map(e=>{let{id:t,label:n}=e;return{label:n,value:t}}),{label:"none",value:""}],validation:{validate:{required:ex(g)}}},pinnedThreshold:{category:"pinning",title:"Pinned currency change threshold",type:"number",suggestionTip:"A threshold of 2% is recommended.",suggestion:new(s())(2),units:"%",decimalsLimit:0,description:(0,r.jsx)(r.Fragment,{children:"Percentage that controls the minimum change in exchange rate that will trigger an update to pinned prices. This prevents the host from changing prices too often."}),validation:{validate:{required:ex(g),max:ex(g,e=>new(s())(e).lte(100)||"must be at most 100%"),min:ex(g,e=>new(s())(e).gte(0)||"must be at least 0%")}}},forexEndpointURL:{category:"pinning",type:"text",title:"Forex endpoint URL",placeholder:"https://api.siascan.com/exchange-rate/siacoin",suggestion:"https://api.siascan.com/exchange-rate/siacoin",suggestionTip:"SiaScan provides an exchange rate endpoint.",description:(0,r.jsxs)(a.xvT,{className:"flex flex-col gap-2",children:[(0,r.jsx)(a.xvT,{color:"subtle",size:"14",children:"Endpoint for fetching exchange rates. The endpoint URL should allow appending a currency code to the URL and the endpoint response should be a single number representing the exchange rate. For example, the SiaScan exchange rate endpoint:"}),(0,r.jsx)(a.xvT,{color:"contrast",children:"https://api.siascan.com/exchange-rate/siacoin"}),(0,r.jsx)(a.rUS,{color:"subtle",target:"_blank",href:"https://api.siascan.com/exchange-rate/siacoin/usd",children:"https://api.siascan.com/exchange-rate/siacoin/usd"}),(0,r.jsx)(a.rUS,{color:"subtle",target:"_blank",href:"https://api.siascan.com/exchange-rate/siacoin/jpy",children:"https://api.siascan.com/exchange-rate/siacoin/jpy"})]}),validation:{validate:{required:ex(g)}}}}}function eg(e,t){return(n,r)=>"advanced"!==e.configViewMode||(t?t(n,r):!!n||"required")}function ev(e,t){return(n,r)=>!e.isAutopilotEnabled||(t?t(n,r):!!n||"required")}function ey(e,t){return(n,r)=>!e.isAutopilotEnabled||"advanced"!==e.configViewMode||(t?t(n,r):!!n||"required")}function ex(e,t){return(n,r)=>!e.pinningEnabled||(t?t(n,r):!!n||"required")}let eb=em({validationContext:{isAutopilotEnabled:!0,configViewMode:"basic",pinningEnabled:!1},isAutopilotEnabled:!0,configViewMode:"basic",maxStoragePriceTBMonth:new(s())(0),maxUploadPriceTB:new(s())(0),minShards:new(s())(0),totalShards:new(s())(0),redundancyMultiplier:new(s())(0),recommendations:{}}),ew={maxStoragePriceTBMonth:"maxStoragePriceTBMonthGroup",maxDownloadPriceTB:"maxDownloadPriceTBGroup",maxUploadPriceTB:"maxUploadPriceTBGroup",maxRPCPriceMillion:"maxRPCPriceMillionGroup",maxStoragePriceTBMonthPinned:"maxStoragePriceTBMonthGroup",maxUploadPriceTBPinned:"maxUploadPriceTBGroup",maxDownloadPriceTBPinned:"maxDownloadPriceTBGroup",maxContractPrice:"maxContractPrice",hostBlockHeightLeeway:"hostBlockHeightLeeway",minPriceTableValidityMinutes:"minPriceTableValidityMinutes",minAccountExpiryDays:"minAccountExpiryDays",minMaxEphemeralAccountBalance:"minMaxEphemeralAccountBalance",migrationSurchargeMultiplier:"migrationSurchargeMultiplier"},ej={maxStoragePriceTBMonth:"max storage price",maxDownloadPriceTB:"max download price",maxUploadPriceTB:"max upload price",maxRPCPriceMillion:"max RPC price",maxStoragePriceTBMonthPinned:"max storage price",maxUploadPriceTBPinned:"max upload price",maxDownloadPriceTBPinned:"max download price",maxContractPrice:"max contract price",hostBlockHeightLeeway:"host block height leeway",minPriceTableValidityMinutes:"min price table validity",minAccountExpiryDays:"min account expiry",minMaxEphemeralAccountBalance:"min max ephemeral account balance",migrationSurchargeMultiplier:"migration surcharge multiplier"},ek={autopilotContractSet:"",amountHosts:new(s())(0),shouldPinAllowance:!1,allowanceMonth:new(s())(0),allowanceMonthPinned:new(s())(0),periodWeeks:new(s())(0),renewWindowWeeks:new(s())(0),downloadTBMonth:new(s())(0),uploadTBMonth:new(s())(0),storageTB:new(s())(0),prune:!1,allowRedundantIPs:!1,maxDowntimeHours:new(s())(0),minRecentScanFailures:new(s())(0),minProtocolVersion:"",defaultContractSet:"",uploadPackingEnabled:!0,maxRPCPriceMillion:new(s())(0),shouldPinMaxStoragePrice:!1,maxStoragePriceTBMonth:new(s())(0),maxStoragePriceTBMonthPinned:new(s())(0),maxContractPrice:new(s())(0),shouldPinMaxDownloadPrice:!1,maxDownloadPriceTB:new(s())(0),maxDownloadPriceTBPinned:new(s())(0),shouldPinMaxUploadPrice:!1,maxUploadPriceTB:new(s())(0),maxUploadPriceTBPinned:new(s())(0),hostBlockHeightLeeway:new(s())(0),minPriceTableValidityMinutes:new(s())(0),minAccountExpiryDays:new(s())(0),minMaxEphemeralAccountBalance:new(s())(0),migrationSurchargeMultiplier:new(s())(0),minShards:new(s())(0),totalShards:new(s())(0),pinningEnabled:!1,forexEndpointURL:"",pinnedCurrency:"usd",pinnedThreshold:new(s())(0)},eE=(0,i.createContext)({}),eS=()=>(0,i.useContext)(eE);function eC(e){let{children:t}=e,n=function(){let{autopilotState:e,autopilot:t,contractSet:n,gouging:r,redundancy:l,uploadPacking:u,pricePinning:c,averages:d,shouldSyncDefaultContractSet:f,setShouldSyncDefaultContractSet:h,appSettings:m}=function(){let e=(0,H.q)(),t=(0,S.e$)({config:{swr:{errorRetryCount:0,refreshInterval:(0,a.sWj)(1)}}}),n=(0,S.M6)({config:{swr:{errorRetryCount:0,refreshInterval:(0,a.sWj)(1)}}}),r=(0,S.Kh)({config:{swr:{refreshInterval:(0,a.sWj)(1)}}}),i=(0,S.fz)({config:{swr:{refreshInterval:(0,a.sWj)(1)}}}),o=(0,S.au)({config:{swr:{refreshInterval:(0,a.sWj)(1)}}}),l=(0,S.HA)({config:{swr:{refreshInterval:(0,a.sWj)(1)}}}),s=(0,I.BF)({config:{swr:{revalidateOnFocus:!1}}}),{shouldSyncDefaultContractSet:u,setShouldSyncDefaultContractSet:c,maybeSyncDefaultContractSet:d}=B(),f=(0,j.Hv)();return{autopilotState:e.autopilot.state,autopilot:t,contractSet:n,gouging:r,redundancy:i,uploadPacking:o,pricePinning:l,averages:s,shouldSyncDefaultContractSet:u,setShouldSyncDefaultContractSet:c,maybeSyncDefaultContractSet:d,appSettings:f}}(),g=(0,i.useMemo)(()=>({autopilotState:{data:e.data,error:e.error},autopilot:{data:t.data,error:t.error},contractSet:{data:n.data,error:n.error},uploadPacking:{data:u.data,error:u.error},gouging:{data:r.data,error:r.error},redundancy:{data:l.data,error:l.error},pricePinning:{data:c.data,error:c.error},averages:{data:d.data,error:d.error},appSettings:{settings:{siaCentral:m.settings.siaCentral}}}),[e.data,e.error,t.data,t.error,n.data,n.error,u.data,u.error,r.data,r.error,l.data,l.error,c.data,c.error,d.data,d.error,m.settings.siaCentral]),{form:v,storageTB:y,evaluation:x,redundancyMultiplier:M,fields:_,configViewMode:O,setConfigViewMode:T}=function(e){let{resources:t}=e,n=(0,W.cI)({mode:"all",defaultValues:p}),r=n.watch("maxStoragePriceTBMonth"),l=n.watch("maxDownloadPriceTB"),u=n.watch("maxUploadPriceTB"),c=n.watch("storageTB"),d=n.watch("downloadTBMonth"),f=n.watch("uploadTBMonth"),h=n.watch("minShards"),m=n.watch("totalShards"),g=n.watch("pinningEnabled"),v=(0,i.useMemo)(()=>(0,o.aU)(h,m),[h,m]),{averagesSc:y,averagesFiat:x}=function(e){let{form:t}=e,n=(0,I.BF)({config:{swr:{revalidateOnFocus:!1}}}),r=(0,i.useMemo)(()=>n.data?new(s())((0,o.dq)((0,o.ll)(n.data.settings.storage_price)).toFixed(0)):void 0,[n.data]),a=(0,i.useMemo)(()=>n.data?new(s())((0,o.LK)((0,o.ll)(n.data.settings.upload_price)).toFixed(0)):void 0,[n.data]),l=(0,i.useMemo)(()=>n.data?new(s())((0,o.LK)((0,o.ll)(n.data.settings.download_price)).toFixed(0)):void 0,[n.data]),u=(0,i.useMemo)(()=>n.data?new(s())((0,o.ll)(n.data.settings.contract_price).toFixed(0)):void 0,[n.data]),c=(0,i.useMemo)(()=>n.data?(0,o.x9)((0,o.ll)(n.data.settings.base_rpc_price)):void 0,[n.data]),d=X({form:t});return{averagesSc:(0,i.useMemo)(()=>n.data?{storageAverage:r,uploadAverage:a,downloadAverage:l,contractAverage:u,rpcAverage:c}:null,[n.data,r,a,l,u,c]),averagesFiat:(0,i.useMemo)(()=>n.data&&d?{storageAverage:r.times(d),uploadAverage:a.times(d),downloadAverage:l.times(d),contractAverage:u.times(d),rpcAverage:c.times(d)}:null,[n.data,d,r,a,l,u,c])}}({form:n}),{isAutopilotEnabled:E}=(0,H.q)(),[M,_]=(0,C.Z)("v0/config/mode",{defaultValue:"basic"});(0,i.useEffect)(()=>{n.trigger()},[M]);let O=function(e){var t,n,r,l,s,u,c,d,f;let{form:h,resources:p,isAutopilotEnabled:m}=e,g=h.watch(),v=(0,S.d_)(),y=(0,i.useMemo)(()=>!!(m&&w(p))&&!!h.formState.isValid&&!!v.data,[m,h.formState.isValid,p,v.data]),x=Q({form:h}),E=J({form:h}),C=(0,i.useMemo)(()=>x?{allowanceMonth:x,...E}:E,[x,E]),M=(0,i.useMemo)(()=>{var e;return function(e,t){let n=b(t);return Object.entries(ek).forEach(e=>{let[t,r]=e;void 0===n[t]&&(n[t]=r)}),Object.entries(e).forEach(e=>{let[t,r]=e;void 0!==r&&(n[t]=r)}),n}({...g,...C},null===(e=p.autopilotState.data)||void 0===e?void 0:e.network)},[g,C,null===(t=p.autopilotState.data)||void 0===t?void 0:t.network]),_=(0,i.useMemo)(()=>{if(!y)return;let{payloads:e}=V({resources:p,renterdState:v.data,isAutopilotEnabled:m,values:M});return e},[M,p,v,m,y]),O=(null==_?void 0:_.autopilot.contracts.amount)||0,T=Math.round(1.5*O),P=Math.round(1.1*O),A=!!_,N=(0,S.Mz)({disabled:!A,payload:{gougingSettings:null==_?void 0:_.gouging,redundancySettings:null==_?void 0:_.redundancy,autopilotConfig:null==_?void 0:_.autopilot},config:{swr:{keepPreviousData:A}}}),R=null===(r=N.data)||void 0===r?void 0:null===(n=r.recommendation)||void 0===n?void 0:n.gougingSettings,D=(null===(l=N.data)||void 0===l?void 0:l.usable)||0,L=N.data&&D{let t={maxStoragePriceTBMonth:!W,maxUploadPriceTB:!q,maxDownloadPriceTB:!$,maxStoragePriceTBMonthPinned:W,maxUploadPriceTBPinned:q,maxDownloadPriceTBPinned:$};return void 0===t[e]||t[e]},[W,q,$]),Y=h.watch("pinnedCurrency"),G=X({form:h}),ee=(0,i.useMemo)(()=>{if(!_||!I||U-D<=0)return[];let e=k({gouging:I,averages:p.averages.data,hasBeenConfigured:!0}),t=function(e){let{exchangeRate:t,maxStoragePriceTBMonth:n,maxDownloadPriceTB:r,maxUploadPriceTB:i}=e;return t?{maxStoragePriceTBMonthPinned:(0,o.C4)(n,t),maxDownloadPriceTBPinned:(0,o.C4)(r,t),maxUploadPriceTBPinned:(0,o.C4)(i,t)}:null}({exchangeRate:G,maxStoragePriceTBMonth:e.maxStoragePriceTBMonth,maxDownloadPriceTB:e.maxDownloadPriceTB,maxUploadPriceTB:e.maxUploadPriceTB}),n={...e,...t},r=[];return(0,a.qPQ)(n).forEach(e=>{let[t,n]=e;if(!K(t))return;let i=M[t];if(n.minus(i).div(i).times(100).lte(1))return;let a=function(e){let{key:t,currentValue:n,targetValue:r,currencyId:i}=e,a=n.lt(r)?"up":"down",l={key:t,hrefId:ew[t],title:ej[t],currentValue:n,targetValue:r,direction:a,currentLabel:"",targetLabel:""};if("siacoin"===eb[t].type){let e=e=>{var n;return"".concat((0,o.Vz)((0,o.qN)(e),{fixed:1})).concat(null===(n=eb[t].units)||void 0===n?void 0:n.replace("SC/","/"))};l.currentLabel=e(n),l.targetLabel=e(r)}if("number"===eb[t].type){let e=e=>"".concat((0,o.yF)(e)," ").concat(eb[t].units);l.currentLabel=e(n),l.targetLabel=e(r)}if("fiat"===eb[t].type){let e=j.mV.find(e=>e.id===i),a=n=>"".concat(null==e?void 0:e.prefix).concat((0,o.yF)(n,{fixed:e.fixed})," ").concat(null==e?void 0:e.label).concat(eb[t].units);l.currentLabel=a(n),l.targetLabel=a(r)}return l}({key:t,currentValue:i,targetValue:n,currencyId:Y});a&&r.push(a)}),r},[I,p,_,M,K,Y,D,U,G]);return{hostMargin50:.5,hostMargin10:.1,hostTarget50:T,hostTarget10:P,usableHostsCurrent:D,userContractCountTarget:O,usableHostsAfterRecommendation:U,hasDataToEvaluate:y,needsRecommendations:L,foundRecommendation:!!ee.length,recommendations:ee,recommendationMargin:F?"50%":B?"10%":R?"0%":"N/A"}}({form:n,resources:t,isAutopilotEnabled:E}),T=(0,S.d_)(),P=(0,i.useRef)({isAutopilotEnabled:E,configViewMode:M,pinningEnabled:g});return(0,i.useEffect)(()=>{P.current.isAutopilotEnabled=E,P.current.configViewMode=M,P.current.pinningEnabled=g},[E,M,g]),{form:n,fields:(0,i.useMemo)(()=>{let e=T.data?b(T.data.network):void 0,t=O.recommendations.reduce((e,t)=>({...e,[t.key]:t}),{});return y?em({validationContext:P.current,isAutopilotEnabled:E,configViewMode:M,advancedDefaults:e,maxStoragePriceTBMonth:r,maxUploadPriceTB:u,redundancyMultiplier:v,averagesSc:y,averagesFiat:x,minShards:h,totalShards:m,recommendations:t}):em({validationContext:P.current,isAutopilotEnabled:E,configViewMode:M,advancedDefaults:e,maxStoragePriceTBMonth:r,maxUploadPriceTB:u,redundancyMultiplier:v,minShards:h,totalShards:m,recommendations:t})},[E,M,T.data,y,x,v,r,u,h,m,O.recommendations]),evaluation:O,maxStoragePriceTBMonth:r,maxDownloadPriceTB:l,maxUploadPriceTB:u,storageTB:c,downloadTBMonth:d,uploadTBMonth:f,minShards:h,totalShards:m,redundancyMultiplier:v,configViewMode:M,setConfigViewMode:_}}({resources:g}),P=(0,i.useMemo)(()=>{var e;return w(g)?E({hasBeenConfigured:null===(e=g.autopilotState.data)||void 0===e?void 0:e.configured,autopilot:g.autopilot.data,contractSet:g.contractSet.data,uploadPacking:g.uploadPacking.data,gouging:g.gouging.data,averages:g.averages.data,redundancy:g.redundancy.data,pricePinning:g.pricePinning.data}):null},[g]),A=(0,i.useMemo)(()=>(function(e){let{uploadPacking:t,gouging:n,redundancy:r}=e;return!!(r.error||t.error||n.error)})(g),[g]),{isAutopilotEnabled:N}=(0,H.q)(),R=(0,i.useCallback)(async()=>{let i=await e.mutate(),o=N?await t.mutate():void 0,s=await n.mutate(),f=await r.mutate(),h=await l.mutate(),p=await u.mutate(),m=await c.mutate();if(!r||!l)return(0,a.OHV)({title:"Error fetching settings"}),null;v.reset(E({hasBeenConfigured:i.configured,autopilot:o,contractSet:s,uploadPacking:p,gouging:f,averages:d.data,redundancy:h,pricePinning:m}))},[v,e,N,t,n,r,u,l,c,d.data]);(0,a.u$d)({form:v,remoteValues:P}),(0,a.Z4p)({form:v,remoteValues:P});let{changeCount:D}=(0,a.mYE)({form:v}),L=function(e){let{resources:t,isAutopilotEnabled:n,revalidateAndResetForm:r}=e,o=(0,S.Bl)(),l=(0,S.oe)(),s=(0,S.KJ)(),u=(0,S.d_)(),{maybeSyncDefaultContractSet:c}=B(),d=(0,j.Tu)();return(0,i.useCallback)(async e=>{if(!t.gouging.data||!t.redundancy.data||!u.data)return;let i=n&&!t.autopilot.data;try{let{payloads:f}=V({resources:t,renterdState:u.data,isAutopilotEnabled:n,values:e}),h=f.autopilot?await l.put({payload:f.autopilot}):void 0,[p,m,g,v,y]=await Promise.all([s.put({params:{key:"contractset"},payload:f.contractSet}),s.put({params:{key:"uploadpacking"},payload:f.uploadPacking}),s.put({params:{key:"gouging"},payload:f.gouging}),s.put({params:{key:"redundancy"},payload:f.redundancy}),s.put({params:{key:"pricepinning"},payload:f.pricePinning})]);if(null==h?void 0:h.error)throw Error(h.error);if(p.error)throw Error(p.error);if(m.error)throw Error(m.error);if(g.error)throw Error(g.error);if(v.error)throw Error(v.error);if(y.error)throw Error(y.error);n&&(c(e.autopilotContractSet),o.post({payload:{forceScan:!0}})),(0,a.OPV)({title:"Configuration has been saved"}),i&&(async()=>{await (0,j.gw)(5e3),d(e=>e.startsWith(U.fu)),await (0,j.gw)(5e3),d(e=>e.startsWith(U.fu))})(),await r()}catch(e){(0,a.OHV)({title:"Error updating configuration",body:e.message}),console.log(e)}},[u.data,n,l,r,c,d,s,t,o])}({resources:g,isAutopilotEnabled:N,revalidateAndResetForm:R}),Z=(0,a.WsO)(_),F=(0,i.useMemo)(()=>v.handleSubmit(L,Z),[v,L,Z]),z=(0,i.useRef)(),q=(0,i.useCallback)(async e=>{(0,a.S5N)(z.current,e)},[]);return{onSubmit:F,revalidateAndResetForm:R,form:v,fields:_,changeCount:D,redundancyMultiplier:M,storageTB:y,shouldSyncDefaultContractSet:f,setShouldSyncDefaultContractSet:h,configViewMode:O,setConfigViewMode:T,remoteError:A,configRef:z,takeScreenshot:q,evaluation:x}}();return(0,r.jsx)(eE.Provider,{value:n,children:t})}},69960:function(e,t,n){"use strict";n.d(t,{x:function(){return M},G:function(){return C}});var r=n(52322),i=n(44677),a=n(5632),o=n(55329),l=n(2784),s=n(75262),u=n(47211),c=n(80373),d=n(91492),f=n(82851),h=n(6391),p=n.n(h);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)(d.F,{id:t,hostAddress:n,hostKey:i})}},{id:"contractId",label:"contract ID",category:"general",render:e=>{let{data:{id:t,isRenewed:n,renewedFrom:a},context:{siascanUrl:o}}=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:o}),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)(u.L6f,{className:"scale-75"})}),(0,r.jsx)(i.XxW,{color:"subtle",size:"10",type:"contract",value:(0,i.I13)(a),siascanUrl:o,label:"contract ID"})]})})]})}},{id:"contractSets",label:"contract sets",contentClassName:"w-[120px]",category:"general",render:e=>{let{data:{contractSets:t},context:{defaultContractSet:n,autopilotContractSet:a}}=e;return t.length?(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,o=a===e,l="",s=null;return o&&t?(l="This set is the default contract set and the autopilot contract set.",s=(0,r.jsx)(u.Y3p,{className:"scale-75"})):o?(l="This set is the autopilot contract set but not the default contract set.",s=(0,r.jsx)(u.MKy,{className:"scale-75"})):t&&(l="This set is the default contract set but not the autopilot contract set.",s=(0,r.jsx)(u.ZsV,{className:"scale-75"})),(0,r.jsx)(i.ua7,{content:(0,r.jsxs)(r.Fragment,{children:["Contract is part of set"," ",(0,r.jsx)(i.Cts,{size:"small",children:e}),". ",l]}),children:(0,r.jsxs)(i.Cts,{interactive:!1,size:"small",className:(0,f.cx)("flex gap-px items-center",t?"pl-px":""),children:[s,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:a,proofWindowHeightEnd:o,revisionHeight:l,proofHeight:s},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:a,proofWindowHeightEnd:o,proofHeight:s,revisionHeight:l,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,c.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,c.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,c.vW)(e)})},summary:e=>{let{context:t}=e;return t.filteredStats.sizeTotal?(0,r.jsx)(i.m2c,{size:"12",value:t.filteredStats.sizeTotal,format:e=>(0,c.vW)(e),variant:"value"}):null}},{id:"prunableSize",label:"prunable size",category:"general",contentClassName:"px-1 justify-end",render:function(e){let{data:{fetchPrunableSize:t,isFetchingPrunableSize:n,prunableSize:a,inAutopilotSet:o},context:{isFetchingPrunableSizeAll:l}}=e,s=n||l;return void 0===a?(0,r.jsx)(i.zxk,{tip:"Calculate prunable size for contract",onClick:e=>{e.stopPropagation(),t()},children:s?(0,r.jsx)(i.xgg,{}):(0,r.jsx)(u.ljb,{})}):(0,r.jsxs)("div",{className:"flex items-center gap-2","aria-label":"prunable sizes",children:[o?(0,r.jsx)(g,{value:new(p())(a),tip:"The amount of data that can be pruned from this autopilot contract",variant:"prunable"}):(0,r.jsx)(g,{value:new(p())(a),tip:"The amount of data that will eventually expire from this non-autopilot contract",variant:"expiring"}),(0,r.jsx)(i.zxk,{tip:"Realculate prunable size for contract",onClick:e=>{e.stopPropagation(),t()},children:s?(0,r.jsx)(i.xgg,{}):(0,r.jsx)(u.Wet,{})})]})},summary:e=>{let{context:t}=e;return t.hasFetchedAllPrunableSize?(0,r.jsxs)("div",{className:"flex items-center gap-2","aria-label":"prunable sizes",children:[t.filteredStats.prunableSizeTotal&&(0,r.jsx)(g,{value:t.filteredStats.prunableSizeTotal,tip:"The amount of data that can be pruned from autopilot contracts in the filtered set of active contracts",variant:"prunable"}),t.filteredStats.expiringSizeTotal&&(0,r.jsx)(g,{value:t.filteredStats.expiringSizeTotal,tip:"The amount of data that will eventually expire from non-autopilot contracts in the filtered set of active contracts",variant:"expiring"}),(0,r.jsx)(i.zxk,{tip:"Recalculate prunable size for all contracts",state:t.isFetchingPrunableSizeAll?"waiting":void 0,onClick:t.fetchPrunableSizeAll,children:t.isFetchingPrunableSizeAll?(0,r.jsx)(i.xgg,{}):(0,r.jsx)(u.Wet,{})})]}):(0,r.jsx)(i.zxk,{tip:"Calculate prunable size for all contracts",state:t.isFetchingPrunableSizeAll?"waiting":void 0,onClick:t.fetchPrunableSizeAll,children:t.isFetchingPrunableSizeAll?(0,r.jsx)(i.xgg,{}):(0,r.jsx)(u.ljb,{})})}},{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()})},summary:e=>{let{context:{filteredStats:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.totalCostTotal.negated(),tooltip:"Total cost across the filtered set of active contracts"})}},{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()})},summary:e=>{let{context:{filteredStats:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.spendingUploadsTotal.negated(),tooltip:"Uploads spending across the filtered set of active contracts"})}},{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()})},summary:e=>{let{context:{filteredStats:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.spendingDownloadsTotal.negated(),tooltip:"Downloads spending across the filtered set of active contracts"})}},{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()})},summary:e=>{let{context:{filteredStats:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.spendingFundAccountTotal.negated(),tooltip:"Fund account spending across the filtered set of active contracts"})}}];function g(e){let{value:t,tip:n,variant:a}=e;return(0,r.jsx)(i.ua7,{content:n,children:(0,r.jsxs)("div",{className:"flex items-center gap-0.5","aria-label":a,children:[(0,r.jsx)(i.m2c,{size:"12",value:t,format:e=>(0,c.vW)(e),variant:"value"}),"prunable"===a?(0,r.jsx)(u.jBN,{className:"scale-75"}):(0,r.jsx)(u.oDK,{className:"scale-75"})]})})}var v=n(38855),y=n(45178);function x(e){let t=(0,i.sWj)(5);return Math.round(e/t)*t}function b(e){let{start:t,disabled:n,contractId:a}=e,s=x(t),u=(0,i.NrH)(1),d=(0,l.useMemo)(()=>Math.max(Math.round((x(new Date().getTime())-s)/u),1),[s,u]),f=(0,l.useMemo)(()=>{let e={start:new Date(s||0).toISOString(),interval:u,n:d};return a&&(e.contractID=a),e},[s,u,d,a]),h=(0,o.Yy)({disabled:n,params:f});return{contractMetrics:(0,l.useMemo)(()=>{var e;let t=(0,i.Y_Z)(null===(e=h.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(p())(t)})},formatTimestamp:u===(0,i.NrH)(1)?(0,i.kOJ)("daily"):void 0,formatTickY:e=>(0,c.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:"barstack",curveType:"linear",stackOffset:"none"},isLoading:h.isValidating&&!h.data}},[h.data,h.isValidating,u])}}var w=n(9338),j=n(85375),k=n(37606),E=n(87741);let S=(0,l.createContext)({}),C=()=>(0,l.useContext)(S);function M(e){let{children:t}=e,n=function(){var e,t;let[n,r]=(0,l.useState)("list"),[u,d]=(0,l.useState)("spending"),f=(0,a.useRouter)(),h=Number(f.query.limit||50),g=Number(f.query.offset||0),S=(0,o.GP)({config:{swr:{refreshInterval:w.h}}}),C=(0,v.n)(),M=C.isSynced?C.nodeBlockHeight:C.estimatedBlockHeight,[_,O]=(0,l.useState)(),T=(0,l.useCallback)(e=>{if(_===e){O(void 0);return}O(e),r("detail"),d("spending")},[_,O,r]),P="on"===(0,E.V)().status,A=null===(e=(0,o.e$)({disabled:!P}).data)||void 0===e?void 0:e.contracts.set,N=null===(t=(0,o.M6)().data)||void 0===t?void 0:t.default,{dataset:R,isFetchingPrunableSizeAll:D,isFetchingPrunableSizeById:L,fetchPrunableSize:Z,fetchPrunableSizeAll:F,hasFetchedAllPrunableSize:z}=function(e){let{selectContract:t,autopilotContractSet:n,defaultContractSet:r}=e,a=(0,o.GP)({config:{swr:{refreshInterval:w.h}}}),s=(0,j.JL)(),u=(0,l.useMemo)(()=>{var e;return(null===(e=s.data)||void 0===e?void 0:e.hosts)||[]},[s.data]),d=(0,v.n)(),f=d.isSynced?d.nodeBlockHeight:d.estimatedBlockHeight,h=(0,l.useMemo)(()=>{var e;return a.data?(null===(e=a.data)||void 0===e?void 0:e.map(e=>{var i,a,o;let l="fcid:0000000000000000000000000000000000000000000000000000000000000000"!==e.renewedFrom,s=(0,c.jr)(f,e.startHeight),d=e.windowStart,h=(0,c.jr)(f,d);return{id:e.id,onClick:()=>t(e.id),state:e.state,hostIp:e.hostIP,hostKey:e.hostKey,contractSets:e.contractSets||[],inAutopilotSet:null===(i=e.contractSets)||void 0===i?void 0:i.includes(n),inDefaultSet:null===(a=e.contractSets)||void 0===a?void 0:a.includes(r),location:null===(o=u.find(t=>t.public_key===e.hostKey))||void 0===o?void 0:o.location,timeline:s,startTime:s,endTime:h,contractHeightStart:e.startHeight,contractHeightEnd:d,proofWindowHeightStart:e.windowStart,proofWindowHeightEnd:e.windowEnd,proofHeight:e.proofHeight,revisionHeight:e.revisionHeight,isRenewed:l,renewedFrom:e.renewedFrom,totalCost:new(p())(e.totalCost),spendingUploads:new(p())(e.spending.uploads),spendingDownloads:new(p())(e.spending.downloads),spendingFundAccount:new(p())(e.spending.fundAccount),size:new(p())(e.size)}}))||[]:null},[a.data,u,f,t,n,r]),{prunableSizes:m,isFetchingPrunableSizeAll:g,isFetchingPrunableSizeById:y,fetchPrunableSize:x,fetchPrunableSizeAll:b}=function(){let{bus:e}=(0,k.q)(),[t,n]=(0,l.useState)({}),[r,a]=(0,l.useState)({}),[o,s]=(0,l.useState)(!1),u=(0,l.useCallback)(async()=>{try{s(!0);let t=await (null==e?void 0:e.contractsPrunable());n(e=>{var n;return{...e,...null===(n=t.data)||void 0===n?void 0:n.contracts.reduce((e,t)=>({...e,[t.id]:{id:t.id,size:t.size,prunable:t.prunable}}),{})}})}catch(e){(0,i.OHV)({title:"Error",body:e.message})}finally{s(!1)}},[e]);return{prunableSizes:t,isFetchingPrunableSizeAll:o,isFetchingPrunableSizeById:r,fetchPrunableSize:(0,l.useCallback)(async t=>{try{a(e=>({...e,[t]:!0}));let r=await (null==e?void 0:e.contractSize({params:{id:t}}));n(e=>({...e,[t]:{id:t,...r.data}}))}catch(e){(0,i.OHV)({title:"Error",body:e.message})}finally{a(e=>({...e,[t]:!1}))}},[e]),fetchPrunableSizeAll:u}}(),E=(0,l.useMemo)(()=>(null==h?void 0:h.map(e=>{var t,n;return{...e,hasFetchedPrunableSize:(null===(t=m[e.id])||void 0===t?void 0:t.prunable)!==void 0,prunableSize:(null===(n=m[e.id])||void 0===n?void 0:n.prunable)!==void 0?new(p())(m[e.id].prunable):void 0,isFetchingPrunableSize:y[e.id],fetchPrunableSize:()=>x(e.id)}}))||[],[h,m,x,y]),S=(0,l.useMemo)(()=>null==E?void 0:E.every(e=>e.hasFetchedPrunableSize),[E]);return{dataset:E,isFetchingPrunableSizeAll:g,isFetchingPrunableSizeById:y,fetchPrunableSize:x,fetchPrunableSizeAll:b,hasFetchedAllPrunableSize:S}}({selectContract:T,autopilotContractSet:A,defaultContractSet:N}),V=(0,l.useMemo)(()=>null==R?void 0:R.find(e=>e.id===_),[R,_]),{filters:B,setFilter:I,removeFilter:H,removeLastFilter:U,resetFilters:W}=(0,i.Wdu)(),{configurableColumns:q,enabledColumns:$,sortableColumns:K,toggleColumnVisibility:Y,setColumnsVisible:X,setColumnsHidden:G,toggleSort:J,setSortDirection:Q,setSortField:ee,sortField:et,sortDirection:en,resetDefaultColumnVisibility:er}=(0,i.oy6)("renterd/v0/contracts",{columns:m,columnsDefaultVisible:s.gd,sortOptions:s.Fo,defaultSortField:s.nw}),ei=(0,i._4u)({dataset:R,filters:B,sortField:et,sortDirection:en}),ea=(0,l.useMemo)(()=>ei?ei.slice(g,g+h):null,[ei,g,h]),{range:eo}=(0,l.useMemo)(()=>(0,i.EJC)(M,ea||[]),[M,ea]),el=(0,l.useMemo)(()=>m.filter(e=>e.fixed||$.includes(e.id)),[$]),es=(0,i.c2j)(ei,S.isValidating,S.error,B),eu=(0,y.B)(),ec=function(e){let{datasetFiltered:t}=e,n=(0,l.useMemo)(()=>{if(t)return t.reduce((e,t)=>e.plus(t.size),new(p())(0))},[t]),r=(0,l.useMemo)(()=>{if(t)return t.reduce((e,t)=>t.inAutopilotSet?e.plus(t.prunableSize):e,new(p())(0))},[t]),i=(0,l.useMemo)(()=>{if(t)return t.reduce((e,t)=>t.inAutopilotSet?e:e.plus(t.size).minus(t.prunableSize),new(p())(0))},[t]),a=(0,l.useMemo)(()=>{if(t)return t.reduce((e,t)=>e.plus(t.totalCost),new(p())(0))},[t]),o=(0,l.useMemo)(()=>{if(t)return t.reduce((e,t)=>e.plus(t.spendingUploads),new(p())(0))},[t]),s=(0,l.useMemo)(()=>{if(t)return t.reduce((e,t)=>e.plus(t.spendingDownloads),new(p())(0))},[t]),u=(0,l.useMemo)(()=>{if(t)return t.reduce((e,t)=>e.plus(t.spendingFundAccount),new(p())(0))},[t]);return(0,l.useMemo)(()=>({sizeTotal:n,prunableSizeTotal:r,expiringSizeTotal:i,totalCostTotal:a,spendingUploadsTotal:o,spendingDownloadsTotal:s,spendingFundAccountTotal:u}),[n,r,i,a,o,s,u])}({datasetFiltered:ei}),ed=(0,l.useMemo)(()=>({currentHeight:C.estimatedBlockHeight,defaultContractSet:N,autopilotContractSet:A,contractsTimeRange:eo,siascanUrl:eu,hasFetchedAllPrunableSize:z,isFetchingPrunableSizeAll:D,fetchPrunableSizeAll:F,filteredStats:ec}),[C.estimatedBlockHeight,eo,eu,z,D,F,ec,N,A]),{contractMetrics:ef}=b({start:new Date().getTime()-(0,i.NrH)(30)}),{contractMetrics:eh}=b({contractId:_,start:(null==V?void 0:V.startTime)||0,disabled:!V}),{contractSetMetrics:ep}=function(){var e;let t=x(new Date().getTime()-(0,i.NrH)(30)),n=(0,i.NrH)(1),r=(0,l.useMemo)(()=>Math.round((x(new Date().getTime())-t)/n),[t,n]),a=(0,o.e$)(),s=(0,o.Bi)({disabled:!a.data,params:{name:null===(e=a.data)||void 0===e?void 0:e.contracts.set,start:new Date(t).toISOString(),interval:n,n:r}});return{contractSetMetrics:(0,l.useMemo)(()=>{var e;let t=(0,i.Y_Z)(null===(e=s.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:s.isValidating&&!s.data}},[s.data,s.isValidating,n])}}(),em=(0,o.Wu)();return{dataState:es,limit:h,offset:g,isLoading:S.isLoading,error:S.error,pageCount:(null==ea?void 0:ea.length)||0,datasetCount:(null==R?void 0:R.length)||0,datasetFilteredCount:(null==ei?void 0:ei.length)||0,columns:el,dataset:R,cellContext:ed,datasetPage:ea,configurableColumns:q,enabledColumns:$,sortableColumns:K,toggleColumnVisibility:Y,setColumnsVisible:X,setColumnsHidden:G,toggleSort:J,setSortDirection:Q,setSortField:ee,sortField:et,filters:B,setFilter:I,removeFilter:H,removeLastFilter:U,resetFilters:W,sortDirection:en,resetDefaultColumnVisibility:er,viewMode:n,setViewMode:r,graphMode:u,setGraphMode:d,selectedContract:V,selectContract:T,allContractsSpendingMetrics:ef,selectedContractSpendingMetrics:eh,contractSetCountMetrics:ep,contractSets:em,isFetchingPrunableSizeAll:D,isFetchingPrunableSizeById:L,fetchPrunableSize:Z,fetchPrunableSizeAll:F}}();return(0,r.jsx)(S.Provider,{value:n,children:t})}},75262:function(e,t,n){"use strict";n.d(t,{Fo:function(){return a},gd:function(){return r},nw:function(){return i}});let r=["contractId","contractSets","hostIp","hostKey","state","timeline","size","prunableSize","totalCost","spendingUploads","spendingDownloads","spendingFundAccount"],i="startTime",a=[{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:"prunableSize",label:"prunable 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"}]},97112:function(e,t,n){"use strict";n.d(t,{Tu:function(){return eV},xQ:function(){return eB},Rh:function(){return ez}});var r=n(52322),i=n(2784),a=n(44677),o=n(82842),l=n(98334),s=n(82851),u=n(99182),c=n(5632),d=n(35599),f=n(55329);let h={namespace:"wallet",label:"Wallet"};function p(e){var t;let{currentPage:n,parentPage:i,pushPage:o}=e,{openDialog:s,closeDialog:u}=ez(),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:()=>{o(h)},children:h.label}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{p.push(l._.wallet.view),u()},children:"View wallet transactions"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{s("sendSiacoin")},children:"Send siacoin"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{s("addressDetails")},children:"Receive siacoin"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{s("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,a.vQq)(m.data.address,"wallet address"),u())},children:"Copy wallet address to clipboard"})]})}var m=n(38617);let g={namespace:"settings",label:"Settings"};function v(e){let{currentPage:t,parentPage:n}=e,{openDialog:i,closeDialog:a}=ez(),{setTheme:l}=(0,m.F)(),{settings:s,setSettings:u,lock:c,currencyOptions:f,setCurrency:h}=(0,o.Hv)();return(0,r.jsxs)(d.fu,{currentPage:t,commandPage:g,children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:g,onSelect:()=>{i("settings")},children:"Open settings"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:g,onSelect:()=>{u({siaCentral:!s.siaCentral}),a()},children:(s.siaCentral?"Disable":"Enable")+" external API - Sia Central exchange rates"}),(0,r.jsx)(d.o4,{currentPage:t,commandPage:g,onSelect:()=>{c(),a()},children:"Lock renterd"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:g,onSelect:()=>{i("settings")},children:"Open interface theme menu"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:g,onSelect:()=>{l("system"),a()},children:"Set theme to system preference"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:g,onSelect:()=>{l("dark"),a()},children:"Set theme to dark"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:g,onSelect:()=>{l("light"),a()},children:"Set theme to light"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:g,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:g,onSelect:()=>{h(n),a()},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:a,closeDialog:o}=ez(),s=(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:()=>{a("connectPeer")},children:"Connect to a peer"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:y,onSelect:()=>{s.push(l._.node.index),o()},children:"View peers"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:y,onSelect:()=>{s.push(l._.node.index),o()},children:"View transaction pool"})]})}var b=n(70771),w=n(37606);let j={namespace:"configuration",label:"Configuration"};function k(e){let{currentPage:t,parentPage:n,pushPage:i}=e,a=(0,c.useRouter)(),{configViewMode:o}=(0,b.ZR)(),{closeDialog:s}=ez(),{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:()=>{a.push(l._.config.index),s()},children:"Open configuration"}),"on"===u.status&&(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{a.push(l._.config.storage),s()},children:"Configure storage"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{a.push(l._.config.pricing),s()},children:"Configure pricing"}),"advanced"===o&&(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:()=>{a.push(l._.config.hosts),s()},children:"Configure hosts"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{a.push(l._.config.wallet),s()},children:"Configure wallet"})]}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{a.push(l._.config.contracts),s()},children:"Configure contracts"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{a.push(l._.config.uploads),s()},children:"Configure uploads"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{a.push(l._.config.redundancy),s()},children:"Configure redundancy"})]})]})}var E=n(14613);let S={namespace:"contracts",label:"Contracts"};function C(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:a,afterSelect:o}=e,s=(0,c.useRouter)(),{closeDialog:u}=ez();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:()=>{s.push(l._.contracts.index),u()},children:"View contracts"})}),(0,r.jsx)(E.F,{parentPage:S,currentPage:t,beforeSelect:a,afterSelect:o,pushPage:i})]})}let M={namespace:"alerts",label:"Alerts"};function _(e){let{currentPage:t,parentPage:n,pushPage:i}=e,a=(0,c.useRouter)(),{closeDialog:o}=ez();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:()=>{a.push(l._.alerts.index),o()},children:"View alerts"})})]})}var O=n(69960),T=n(42213);let P={namespace:"hosts",label:"Hosts"};function A(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:a,afterSelect:o}=e,s=(0,c.useRouter)(),{closeDialog:u,openDialog:f}=ez();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(P)},children:P.label}),(0,r.jsx)(d.fu,{currentPage:t,commandPage:P,children:(0,r.jsx)(d.WD,{currentPage:t,commandPage:P,onSelect:()=>{s.push(l._.hosts.index),u()},children:"View hosts"})}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:P,onSelect:()=>{f("hostsManageAllowBlock")},children:"Manage filter lists: allowlist + blocklist"}),(0,r.jsx)(T.L,{parentPage:P,currentPage:t,beforeSelect:a,afterSelect:o,pushPage:i})]})}var N=n(70899),R=n(47211);function D(e){let{debouncedSearch:t}=e;return(0,r.jsxs)(a.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsxs)(a.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:[(0,r.jsx)(R.e1T,{}),(0,r.jsx)(R.JCW,{}),(0,r.jsx)(R.c_L,{})]}),(0,r.jsx)(a.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No files match the query.":"Type a query to get started."})]})}var L=n(41736);let Z={namespace:"files/search",label:"File search",prompt:"Search for files, eg: backups, photo_archive.zip, etc...",empty:D};function F(e){let{debouncedSearch:t,search:n,currentPage:i,beforeSelect:o,afterSelect:l}=e,{activeBucketName:s,navigateToModeSpecificFiltering:u}=(0,L.b)(),c=(null==i?void 0:i.namespace)===Z.namespace,h=s||"default",p=(0,f.Iy)({disabled:!c,params:{bucket:h,key:t,offset:0,limit:10},config:{swr:{keepPreviousData:!0}}});return c&&p.data?(0,r.jsx)(d.fu,{currentPage:i,commandPage:Z,children:p.data.map(e=>{let{name:t}=e,s=function(e,t,n){let r=Math.max(e.length-55,0);if(0===r)return e;let i=z(e),a=z(t),o=i.toLowerCase().indexOf(a.toLowerCase()),l=o+a.length-1,s=0,u=0;return i.split("/").map(e=>{if(s>=r)return u+=e.length,z(e);let t=u,n=u+e.length+1;return to?(u+=e.length,z(e)):!e.includes(a)&&e.length>3?(u+=e.length,s+=e.length+1,"..."):(u+=e.length,z(e))}).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()),a=i+r.length;return{endIndex:e.length-i,startIndex:e.length-a}}(s,n);return(0,r.jsx)(d.WD,{commandPage:Z,currentPage:i,onSelect:()=>{o(),u(h+t),l()},value:t,children:(0,r.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[(0,r.jsx)(a.xvT,{color:"verySubtle",className:"group-data-[selected=true]:text-gray-1000 dark:group-data-[selected=true]:text-graydark-1000",children:(0,N.IQ)(t)?(0,r.jsx)(R.ROc,{size:16}):(0,r.jsx)(R.c_L,{})}),(0,r.jsxs)(a.xvT,{className:"flex items-center",children:[(0,r.jsx)(a.xvT,{color:"verySubtle",ellipsis:!0,children:s.slice(0,c)}),(0,r.jsx)(a.xvT,{color:"accent",ellipsis:!0,children:s.slice(c,f)}),(0,r.jsx)(a.xvT,{color:"verySubtle",ellipsis:!0,children:s.slice(f)})]})]})},t)})}):null}function z(e){return e.split("").reverse().join("")}let V={namespace:"files",label:"Files"};function B(e){let{search:t,debouncedSearch:n,currentPage:i,parentPage:a,pushPage:o,beforeSelect:s,afterSelect:u}=e,f=(0,c.useRouter)(),{closeDialog:h}=ez();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:i,parentPage:a,commandPage:a,onSelect:()=>{o(V)},children:V.label}),(0,r.jsxs)(d.fu,{currentPage:i,commandPage:V,children:[(0,r.jsx)(d.WD,{currentPage:i,commandPage:V,onSelect:()=>{f.pathname.startsWith(l._.buckets.index)||f.push(l._.buckets.index),h(),u()},children:"View files"}),(0,r.jsx)(d.WD,{currentPage:i,commandPage:V,onSelect:()=>{o(Z),u()},children:"Search files"})]}),(0,r.jsx)(F,{debouncedSearch:n,search:t,currentPage:i,beforeSelect:s,afterSelect:u})]})}var I=n(56328),H=n(94225);function U(e){let{search:t}=e;return(0,r.jsxs)(a.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsx)(a.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:(0,r.jsx)(R.owP,{})}),(0,r.jsx)(a.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No results matching query.":"Type a query to get started."})]})}let W={namespace:"keys",label:"S3 authentication keys"};function q(e){let{currentPage:t,parentPage:n,pushPage:i}=e,a=(0,c.useRouter)(),{closeDialog:o,openDialog:s}=ez();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(W)},children:W.label}),(0,r.jsxs)(d.fu,{currentPage:t,commandPage:W,children:[(0,r.jsx)(d.WD,{currentPage:t,commandPage:W,onSelect:()=>{a.push(l._.keys.index),o()},children:"View keys"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:W,onSelect:()=>{a.push(l._.keys.index),s("keysCreate")},children:"Create new S3 authentication keypair"})]})]})}function $(e){let{panel:t}=e,{resetFilters:n}=(0,O.G)(),{resetFilters:o}=(0,I.l)(),{closeDialog:d}=ez(),f=(0,c.useRouter)(),[h,m]=(0,i.useState)(""),[g]=(0,H.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]),M=(0,i.useCallback)(()=>{m("")},[m]),T=(null==w?void 0:w.empty)||U;return(0,r.jsxs)(u.mY,{label:"Command Menu",loop:!0,className:(0,s.cx)(t&&(0,a.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)(a.__J,{className:"px-2",children:w.label}),(0,r.jsx)(u.mY.Input,{value:h,onValueChange:m,className:(0,a.cEb)({variant:"ghost",focus:"none"}),placeholder:(null==w?void 0:w.prompt)||(j?"Search for commands, eg: theme, redundancy":"Search commands")}),(0,r.jsx)(a.Z0O,{className:"my-2"}),(0,r.jsxs)(u.mY.List,{children:[(0,r.jsx)(u.mY.Empty,{children:(0,r.jsx)(T,{search:h,debouncedSearch:g})}),(0,r.jsx)(v,{currentPage:w,pushPage:E}),(0,r.jsx)(B,{debouncedSearch:g,search:h,currentPage:w,pushPage:E,beforeSelect:()=>{S()},afterSelect:()=>{M()}}),(0,r.jsx)(p,{currentPage:w,pushPage:E}),(0,r.jsx)(C,{currentPage:w,pushPage:E,beforeSelect:()=>{S(),n()},afterSelect:()=>{f.pathname.startsWith(l._.contracts.index)||f.push(l._.contracts.index),M()}}),(0,r.jsx)(A,{currentPage:w,pushPage:E,beforeSelect:()=>{S(),o()},afterSelect:()=>{f.pathname.startsWith(l._.hosts.index)||f.push(l._.hosts.index),M()}}),(0,r.jsx)(q,{currentPage:w,pushPage:E,beforeSelect:()=>{S()},afterSelect:()=>{f.pathname.startsWith(l._.keys.index)||f.push(l._.keys.index),M()}}),(0,r.jsx)(_,{currentPage:w,pushPage:E,beforeSelect:()=>{S(),n()},afterSelect:()=>{f.pathname.startsWith(l._.alerts.index)||f.push(l._.alerts.index),M()}}),(0,r.jsx)(k,{currentPage:w,pushPage:E}),(0,r.jsx)(x,{currentPage:w,pushPage:E})]})]})}function K(e){let{open:t,onOpenChange:n,setOpen:s}=e,{isUnlockedAndAuthedRoute:u}=(0,o.Hv)(),{isConnected:c}=(0,a.Y97)({route:l.h});return(0,i.useEffect)(()=>{if(!u||!c)return;let e=e=>{"k"===e.key&&e.metaKey&&s()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[u,c,s]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(a.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)($,{})})})}var Y=n(7114),X=n(24511);let G={name:""},J=X.Ry().shape({name:X.Z_().required("Required")});function Q(e){let{trigger:t,open:n,onOpenChange:i}=e,{activeDirectoryPath:o}=(0,L.b)(),l=(0,f.ZM)(),s=(0,Y.TA)({initialValues:G,validationSchema:J,onSubmit:async(e,t)=>{let n=await l.put({params:(0,N.W0)(o+e.name+"/"),payload:null});n.error?(0,a.OHV)({title:"Error creating directory",body:n.error}):((0,a.OPV)({title:"Directory created"}),t.resetForm(),i(!1))}});return(0,r.jsx)(a.VqE,{trigger:t,title:"New directory",open:n,onOpenChange:e=>{e||s.resetForm(),i(e)},contentVariants:{className:"w-[400px]"},children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsx)("form",{onSubmit:s.handleSubmit,children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(a.cB7,{formik:s,title:"Name",name:"name",placeholder:"photos, backups, etc",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(a.IKw,{formik:s,size:"medium",children:"Create"})]})})})})}var ee=n(82229);let et={publicKey:""},en=X.Ry().shape({publicKey:X.Z_().required("Required")});function er(){var e;let t=(0,f.s2)({config:{swr:{refreshInterval:6e4}}}),n=(0,ee.I)(),o=(0,Y.TA)({initialValues:et,validationSchema:en,onSubmit:async(e,t)=>{await n([e.publicKey],[])?t.resetForm():t.setStatus({error:"Error updating allowlist"})}});(0,i.useEffect)(()=>{o.setStatus(void 0)},[o.values]);let l=o.values.publicKey,s=(null===(e=t.data)||void 0===e?void 0:e.filter(e=>!o.values.publicKey||e.includes(o.values.publicKey)))||[];return(0,r.jsxs)("form",{onSubmit:o.handleSubmit,className:"flex flex-col gap-2 h-[400px]",children:[(0,r.jsx)(a.S$c,{title:"Public key",name:"publicKey",formik:o,withStatusError:!0,children:(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(a.KZS,{name:"publicKey",formik:o,placeholder:"ed25519:02aabd26e627fd...",autoComplete:"off",variants:{size:"small"}}),(0,r.jsx)(a.IKw,{formik:o,size:"small",variant:"amber",withStatusError:!1,children:"Allow public key"})]})}),(0,r.jsxs)(a.s_4,{className:"p-2 flex gap-2 items-center",children:[(0,r.jsx)(a.xvT,{children:(0,r.jsx)(R.qdM,{})}),(0,r.jsxs)(a.nvN,{size:"12",children:[(0,r.jsx)(a.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:s.length?(0,r.jsx)(a.xrM,{children:(0,r.jsx)("div",{className:"p-2",children:(0,r.jsx)(a.hmz,{options:s.map(e=>({value:e,label:"".concat(e.slice(0,20),"...")}))||[],onClick:e=>(0,a.vQq)(e,"allowed public key"),onRemove:e=>n([],[e])})})}):l?(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(a.xvT,{color:"subtle",children:(0,r.jsx)(R.Hb6,{})}),(0,r.jsxs)(a.xvT,{color:"subtle",children:["No existing entries match ",o.values.publicKey,"."]})]}):(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(a.xvT,{color:"subtle",children:(0,r.jsx)(R.TtX,{})}),(0,r.jsx)(a.xvT,{color:"subtle",children:"The allowlist is empty."})]})})]})}var ei=n(94613);let ea={address:""},eo=["45.148.30.56","51.158.108.244","siacentral.ddnsfree.com","siacentral.mooo.com"],el=X.Ry().shape({address:X.Z_().required("Required")});function es(){let e=(0,f.uf)({config:{swr:{refreshInterval:6e4}}}),t=(0,ei.l)(),n=(0,Y.TA)({initialValues:ea,validationSchema:el,onSubmit:async(e,n)=>{await t([e.address],[])?n.resetForm():n.setStatus({error:"Error updating blocklist"})}});(0,i.useEffect)(()=>{n.setStatus(void 0)},[n.values]);let o=n.values.address,l=(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:s}=(0,O.G)(),u=(0,i.useMemo)(()=>eo.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==s?void 0:s.filter(t=>t.hostIp===e).length})),[e.data,s]);return(0,r.jsxs)("form",{onSubmit:n.handleSubmit,className:"flex flex-col gap-2 h-[400px]",children:[(0,r.jsx)(a.S$c,{title:"Address",name:"address",formik:n,withStatusError:!0,children:(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(a.KZS,{name:"address",formik:n,placeholder:"eg: 51.258.128.144 or spam.ddnsfree.com",autoComplete:"off",variants:{size:"small"}}),(0,r.jsx)(a.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)(a.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)(a.xvT,{size:"12",color:"subtle",children:"Suggestions:"}),u.map((e,t)=>{let{address:i,contractCount:o}=e;return(0,r.jsxs)(a.xvT,{size:"12",underline:"hover",className:"cursor-pointer",onClick:()=>n.setFieldValue("address",i),children:[i,!!o&&(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)(a.ua7,{content:"".concat(o," active contracts"),children:(0,r.jsxs)(a.xvT,{color:"red",children:["(",o,")"]})})]}),t!==u.length-1&&(0,r.jsx)(a.xvT,{children:","})]},i)})]}),(0,r.jsx)(a.Z0O,{className:"my-2"})]}),l.length?(0,r.jsx)(a.hmz,{options:l.map(e=>({value:e,label:"".concat(e.slice(0,20),"...")}))||[],onClick:e=>(0,a.vQq)(e,"blocked address"),onRemove:e=>t([],[e])}):o?(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(a.xvT,{color:"subtle",children:(0,r.jsx)(R.Hb6,{})}),(0,r.jsxs)(a.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)(a.xvT,{color:"subtle",children:(0,r.jsx)(R.TtX,{})}),(0,r.jsx)(a.xvT,{color:"subtle",children:"The blocklist is empty."})]})]})})})]})}function eu(e){let{trigger:t,open:n,onOpenChange:i}=e;return(0,r.jsx)(a.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)(a.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)(a.mQc,{defaultValue:"blocklist",children:[(0,r.jsxs)(a.drW,{"aria-label":"blocklist and allowlist tabs",children:[(0,r.jsx)(a.SPt,{value:"blocklist",children:"Block"}),(0,r.jsx)(a.SPt,{value:"allowlist",children:"Allow"})]}),(0,r.jsx)(a.nUL,{value:"blocklist",children:(0,r.jsx)(es,{})}),(0,r.jsx)(a.nUL,{value:"allowlist",children:(0,r.jsx)(er,{})})]})]})})}var ec=n(10532),ed=n(98131),ef=n(30291),eh=n(11948),ep=n(99605);function em(e){let{panel:t}=e,{closeDialog:n}=ez(),o=(0,ep.xj)(),c=(0,ep.jD)(),[d,f]=(0,i.useState)(""),[h]=(0,H.Nr)(d,500),p=(0,i.useCallback)(()=>{n()},[n]);return(0,r.jsxs)(u.mY,{label:"Files search",shouldFilter:!1,className:(0,s.cx)(t&&(0,a.z$)()),children:[(0,r.jsx)(a.__J,{className:"px-2",children:"File search"}),(0,r.jsx)(u.mY.Input,{value:d,onValueChange:f,className:(0,a.cEb)({variant:"ghost",focus:"none"}),placeholder:Z.prompt}),(0,r.jsx)(a.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)(D,{search:d,debouncedSearch:h})}),(0,r.jsx)(F,{debouncedSearch:h,search:d,currentPage:Z,beforeSelect:()=>{p()},afterSelect:()=>{c.startsWith(l._.buckets.index)||o.push(l._.buckets.index)}})]})})]})}function eg(e){let{open:t,onOpenChange:n,trigger:i}=e;return(0,r.jsx)(a.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)(em,{})})}var ev=n(6391),ey=n.n(ev);function ex(){let{dialog:e,openDialog:t,closeDialog:n}=ez(),o=(0,f.X2)(),l=(0,f.gU)(),s=(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 l.post({payload:{amount:t.toString(),transaction:{siacoinOutputs:[{address:n,value:t.toString()}]}}});if(r.error)return{error:r.error};let i=await s.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 a=await u.post({payload:[i.data]});return a.error?(c.post({payload:i.data}),{error:a.error}):{}},[l,s,u,c]);return(0,r.jsx)(a.weF,{balance:o.data?new(ey())(o.data.spendable):void 0,send:d,open:"sendSiacoin"===e,onOpenChange:r=>r?t(e):n()})}var eb=n(40730);function ew(){let{id:e,dialog:t,onOpenChange:n}=ez(),{dataset:o}=(0,eb.n)(),l=(0,i.useMemo)(()=>null==o?void 0:o.find(t=>t.hash===e),[o,e]);return(0,r.jsx)(a.mPE,{id:e,transaction:l,open:"transactionDetails"===t,onOpenChange:n})}var ej=n(23771),ek=n(63955);let eE={name:""};function eS(e){let{trigger:t,open:n,onOpenChange:o}=e,{id:l}=ez(),s=(0,f.sg)(),u=(0,ek.cI)({mode:"all",defaultValues:eE}),{handleOpenChange:c,closeAndReset:d}=(0,a.t0Y)({form:u,onOpenChange:o,defaultValues:eE}),h=(0,i.useCallback)(async e=>{let t=await s.delete({params:{name:e.name}});t.error?(0,a.OHV)({title:"Error deleting bucket",body:t.error}):((0,a.OPV)({title:"Bucket permanently deleted"}),d())},[s,d]),p=(0,i.useMemo)(()=>({name:{type:"text",title:"Name",placeholder:l,validation:{required:"required",validate:{notDefault:()=>"default"!==l||"cannot delete default bucket",equals:e=>e===l||"bucket name does not match"}}}}),[l]),m=(0,a.WsO)(p);return(0,r.jsx)(a.VqE,{title:"Delete Bucket",trigger:t,open:n,onOpenChange:c,contentVariants:{className:"w-[400px]"},onSubmit:u.handleSubmit(h,m),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(a.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)(a.EKh,{color:"gray",children:l})}),(0,r.jsx)(a.yEL,{name:"name",form:u,fields:p,autoComplete:"off"}),(0,r.jsx)(a.ZqQ,{variant:"red",form:u,children:"Delete"})]})})}let eC={visibility:"public"};function eM(e){let{trigger:t,open:n,onOpenChange:o}=e,{id:l,closeDialog:s}=ez(),u=(0,f.D5)({disabled:!n,params:{name:l},config:{swr:{revalidateOnFocus:!1}}}),c=(0,f.ol)(),d=(0,ek.cI)({mode:"all",defaultValues:eC});(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:l},payload:{policy:{publicReadAccess:"public"===e.visibility}}});t.error?(0,a.OHV)({title:"Error updating bucket policy",body:t.error}):((0,a.OPV)({title:"Bucket policy has been updated"}),d.reset(),s())},[d,l,c,s]),p=(0,i.useMemo)(()=>({visibility:{type:"text",title:"Read Access",placeholder:l,validation:{required:"required"},options:[{label:"Public",value:"public"},{label:"Private",value:"private"}]}}),[l]),m=(0,a.WsO)(p);return(0,r.jsx)(a.VqE,{title:"Change Policy: ".concat(l),trigger:t,open:n,onOpenChange:e=>{e||d.reset(eC),o(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)(a.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)(a.WyV,{name:"visibility",form:d,fields:p}),(0,r.jsx)(a.ZqQ,{variant:"accent",form:d,children:"Update policy"})]})})}let e_={name:""};function eO(e){let{trigger:t,open:n,onOpenChange:o}=e,{closeDialog:l}=ez(),s=(0,f.oV)(),u=(0,ek.cI)({mode:"all",defaultValues:e_}),c=(0,i.useCallback)(async e=>{let t=await s.post({payload:{name:e.name}});t.error?(0,a.OHV)({title:"Error creating bucket",body:t.error}):((0,a.OPV)({title:"Bucket created"}),u.reset(),l())},[u,s,l]),d=(0,i.useMemo)(()=>({name:{type:"text",title:"Name",placeholder:"photos, backups, etc",validation:{required:"required"}}}),[]),h=(0,a.WsO)(d);return(0,r.jsx)(a.VqE,{title:"Create Bucket",trigger:t,open:n,onOpenChange:e=>{e||u.reset(e_),o(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)(a.nvN,{size:"14",children:"A bucket is an isolated collection of files."}),(0,r.jsx)(a.yEL,{name:"name",form:u,fields:d,autoComplete:"off"}),(0,r.jsx)(a.ZqQ,{form:u,children:"Create bucket"})]})})}var eT=n(5184),eP=n(75618),eA=n(43385);function eN(e){let{trigger:t,open:n,onOpenChange:o}=e,{id:l}=ez(),{refresh:s}=(0,eP.J)(),{refresh:u}=(0,eA.o)(),c=(0,i.useMemo)(()=>{let e=(0,N.vt)(l||"");return e.endsWith("/")?e.slice(0,-1):e},[l]),d=(0,i.useMemo)(()=>({name:c}),[c]),h=(0,f.GD)(),p=(0,ek.cI)({mode:"all",defaultValues:d}),{handleOpenChange:m,closeAndReset:g}=(0,a.t0Y)({form:p,onOpenChange:o,defaultValues:d,initKey:[c]}),v=(0,i.useCallback)(async e=>{let{bucket:t,to:n,from:r,mode:i}=(0,eT.E)(l,e.name),o=await h.post({payload:{bucket:t,to:n,from:r,mode:i,force:!1}});o.error?(0,a.OHV)({title:(0,N.IQ)(l)?"Error renaming directory":"Error renaming file",body:o.error}):(s(),u(),g(),(0,a.OPV)({title:(0,N.IQ)(l)?"Directory renamed":"File renamed"}))},[l,s,u,h,g]),y=(0,i.useMemo)(()=>(function(e){let{currentName:t}=e;return{name:{type:"text",title:"Name",placeholder:t,validation:{required:"required",validate:{noSlash:e=>!e.includes("/")||"Name cannot contain slashes"}}}}})({currentName:c}),[c]),x=(0,a.WsO)(y);return(0,r.jsx)(a.VqE,{title:"Rename file",trigger:t,open:n,onOpenChange:m,contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit(v,x),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(a.yEL,{name:"name",form:p,fields:y,autoComplete:"off"}),(0,r.jsx)(a.ZqQ,{form:p,children:"Save"})]})})}function eR(){return{name:eL(),secret:eZ()}}function eD(e){let{trigger:t,open:n,onOpenChange:o}=e,{closeDialog:l}=ez(),s=(0,f.FD)(),u=(0,f.KJ)(),c=(0,ek.cI)({mode:"all",defaultValues:eR()}),d=(0,i.useCallback)(async e=>{var t;let n={...null===(t=s.data)||void 0===t?void 0:t.v4Keypairs,[e.name]:e.secret},r=await u.put({params:{key:"s3authentication"},payload:{v4Keypairs:n}});r.error?(0,a.OHV)({title:"Error creating key",body:r.error}):((0,a.OPV)({title:"New key created"}),c.reset(eR()),l())},[c,l,u,s.data]),h=(0,i.useMemo)(()=>{var e;return function(e){let{existingKeys:t,regenerateAccessKey:n,regenerateSecretKey:i}=e;return{name:{type:"text",title:"Access key ID",placeholder:"my secure key",actions:(0,r.jsx)(a.zxk,{onClick:n,tip:"Regenerate access key ID",icon:"contrast",variant:"ghost",size:"none",className:"m-1",children:(0,r.jsx)(R.Wet,{})}),validation:{required:"required",validate:{minLength:e=>(null==e?void 0:e.length)>=16||"must be at least 16 characters",maxLength:e=>(null==e?void 0:e.length)<=128||"must be at most 128 characters",unique:e=>!t.includes(e)||"Name must be unique"}}},secret:{type:"text",title:"Secret access key",placeholder:"",actions:(0,r.jsx)(a.zxk,{onClick:i,tip:"Regenerate secret access key",icon:"contrast",variant:"ghost",size:"none",className:"m-1",children:(0,r.jsx)(R.Wet,{})}),validation:{required:"required",validate:{exactLength:e=>(null==e?void 0:e.length)===40||"must be exactly 40 characters"}}}}}({regenerateAccessKey:()=>{c.setValue("name",eL())},regenerateSecretKey:()=>{c.setValue("secret",eZ())},existingKeys:Object.keys((null===(e=s.data)||void 0===e?void 0:e.v4Keypairs)||{})})},[s.data,c]),p=(0,a.WsO)(h);return(0,r.jsx)(a.VqE,{title:"Create S3 key",trigger:t,open:n,onOpenChange:e=>{e||c.reset(eR()),o(e)},contentVariants:{className:"w-[400px]"},onSubmit:c.handleSubmit(d,p),controls:(0,r.jsx)("div",{className:"flex flex-col gap-1",children:(0,r.jsx)(a.ZqQ,{form:c,children:"Create"})}),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(a.nvN,{children:"Create a new S3 authentication key."}),(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)(a.yEL,{name:"name",form:c,fields:h}),(0,r.jsx)(a.yEL,{name:"secret",form:c,fields:h})]})]})})}function eL(){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",t="";for(let n=0;n<20;n++)t+=e.charAt(Math.floor(Math.random()*e.length));return t}function eZ(){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="";for(let n=0;n<40;n++)t+=e.charAt(Math.floor(Math.random()*e.length));return t}let eF=(0,i.createContext)({}),ez=()=>(0,i.useContext)(eF);function eV(e){let{children:t}=e,n=function(){let[e,t]=(0,i.useState)(),[n,r]=(0,i.useState)(),a=(0,i.useCallback)((e,n)=>{t(e),r(n)},[t,r]),[o,l]=(0,i.useState)(),s=(0,i.useCallback)(e=>{t("confirm"),l(e)},[t,l]),u=(0,i.useCallback)(()=>{t(void 0),r(void 0),l(void 0)},[t,r,l]),c=(0,i.useCallback)(e=>{e||u()},[u]);return{dialog:e,id:n,openDialog:a,confirm:o,openConfirmDialog:s,closeDialog:u,onOpenChange:c}}();return(0,r.jsx)(eF.Provider,{value:n,children:t})}function eB(){var e;let{dialog:t,openDialog:n,onOpenChange:i,closeDialog:o,confirm:l,openConfirmDialog:s}=ez(),u=(0,f.Wl)(),c=(0,f.X2)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(K,{open:"cmdk"===t,onOpenChange:i,setOpen:()=>n("cmdk")}),(0,r.jsx)(a.DLL,{open:"settings"===t,onOpenChange:i,showGpuSetting:!0}),(0,r.jsx)(ex,{}),(0,r.jsx)(a.YNn,{address:null===(e=c.data)||void 0===e?void 0:e.address,isValidating:c.isValidating,open:"addressDetails"===t,onOpenChange:i}),(0,r.jsx)(ew,{}),(0,r.jsx)(a.D_D,{open:"connectPeer"===t,connect:e=>u.post({payload:e}),onOpenChange:i}),(0,r.jsx)(eO,{open:"filesCreateBucket"===t,onOpenChange:i}),(0,r.jsx)(eS,{open:"filesDeleteBucket"===t,onOpenChange:i}),(0,r.jsx)(eM,{open:"filesBucketPolicy"===t,onOpenChange:i}),(0,r.jsx)(Q,{open:"filesCreateDirectory"===t,onOpenChange:i}),(0,r.jsx)(eg,{open:"filesSearch"===t,onOpenChange:i}),(0,r.jsx)(eN,{open:"fileRename"===t,onOpenChange:i}),(0,r.jsx)(eu,{open:"hostsManageAllowBlock"===t,onOpenChange:i}),(0,r.jsx)(ec.g,{open:"hostsFilterAddress"===t,onOpenChange:i}),(0,r.jsx)(ej.a,{open:"hostsFilterPublicKey"===t,onOpenChange:i}),(0,r.jsx)(ed.p,{open:"contractsFilterAddress"===t,onOpenChange:i}),(0,r.jsx)(eh.X,{open:"contractsFilterContractSet"===t,onOpenChange:i}),(0,r.jsx)(ef.C,{open:"contractsFilterPublicKey"===t,onOpenChange:i}),(0,r.jsx)(eD,{open:"keysCreate"===t,onOpenChange:i}),(0,r.jsx)(a.QHy,{open:"confirm"===t,params:l,onOpenChange:e=>e?s(l):o()})]})}},72199:function(e,t,n){"use strict";n.d(t,{z:function(){return p}});var r=n(52322),i=n(44677),a=n(47211),o=n(80373),l=n(87023),s=n(84301),u=n(6391),c=n.n(u),d=n(23094),f=n(90721),h=n(41736);let p=[{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:u,size:c}}=e,{setActiveDirectory:d}=(0,h.b)();return t?(0,r.jsx)(i.zxk,{variant:"ghost",state:"waiting",children:(0,r.jsx)(a.c_L,{})}):".."===o?(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",onClick:e=>{e.stopPropagation(),d(e=>e.slice(0,-1))},children:(0,r.jsx)(a.ROc,{size:16})}):"bucket"===n?(0,r.jsx)(f.s,{name:o}):"directory"===n?(0,r.jsx)(s.I,{path:u,size:c}):(0,r.jsx)(l.e,{path:u})}},{id:"name",label:"name",category:"general",contentClassName:"max-w-[600px]",render:function(e){let{data:{name:t,type:n}}=e,{setActiveDirectoryAndFileNamePrefix:a,setActiveDirectory:o}=(0,h.b)();return"bucket"===n?(0,r.jsx)(i.xvT,{ellipsis:!0,color:"accent",weight:"semibold",className:"cursor-pointer",onClick:e=>{e.stopPropagation(),a([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 l=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:l?"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:l?"contrast":"verySubtle",className:"flex gap-0.5 items-center",children:l?(0,r.jsx)(a.nDH,{}):(0,r.jsx)(a.Lur,{})})})})})}},{id:"size",label:"size",contentClassName:"justify-end",render:function(e){let{data:{type:t,name:n,size:a}}=e;return"bucket"===t||".."===n?null:(0,r.jsx)(i.m2c,{size:"12",value:new(c())(a),variant:"value",color:"subtle",weight:"regular",format:e=>(0,o.vW)(e.toNumber())})}},{id:"health",label:"health",contentClassName:"justify-center",render:function(e){let{data:t}=e,{type:n,isUploading:l,loaded:s,size:u}=t;if("bucket"===n)return null;if(l){let e=(s/u*100).toFixed(0)+"%";return(0,r.jsx)(i.ua7,{content:"Uploaded ".concat((0,o.vW)(s),"/").concat((0,o.vW)(u)),children:(0,r.jsxs)("div",{className:"flex items-center gap-1 cursor-pointer",children:[(0,r.jsx)(i.xvT,{color:"subtle",children:(0,r.jsx)(a.R$6,{className:"scale-75"})}),(0,r.jsx)(i.xvT,{color:"subtle",size:"12",children:e})]})})}return(0,r.jsx)(d.z,{...t})}}]},75618:function(e,t,n){"use strict";n.d(t,{V:function(){return g},J:function(){return m}});var r=n(52322),i=n(44677),a=n(2784),o=n(55329),l=n(37371),s=n(70899),u=n(5632),c=n(41736),d=n(9338),f=n(5184),h=n(72199);let p=(0,a.createContext)({}),m=()=>(0,a.useContext)(p);function g(e){let{children:t}=e,n=function(){let{activeDirectory:e,activeBucketName:t,activeDirectoryPath:n,setActiveDirectory:r,filters:p,enabledColumns:m}=(0,c.b)(),{limit:g,offset:v,response:y,refresh:x,dataset:b}=function(){var e;let{activeBucketName:t,activeDirectoryPath:n,fileNamePrefixFilter:r,sortDirection:i,sortField:f}=(0,c.b)(),h=(0,u.useRouter)(),p=Number(h.query.limit||50),m=Number(h.query.offset||0),g=(0,a.useMemo)(()=>{let e={...(0,s.W0)(n),sortBy:f,sortDir:i,offset:m,limit:p};return r&&(e.prefix=r.startsWith("/")?r.slice(1):r),e},[n,r,f,i,m,p]),v=(0,o.Jv)({disabled:!t,params:g,config:{swr:{refreshInterval:d.h}}}),y=(0,a.useMemo)(()=>{var e;return{isValidating:v.isValidating,data:null===(e=v.data)||void 0===e?void 0:e.entries}},[v.isValidating,null===(e=v.data)||void 0===e?void 0:e.entries]);return{limit:p,offset:m,response:v,dataset:(0,l.p)({id:"filesDirectory",objects:y}).data,refresh:v.mutate}}(),{onDragEnd:w,onDragOver:j,onDragCancel:k,onDragMove:E,onDragStart:S,draggingObject:C}=function(e){let{dataset:t,activeDirectory:n,setActiveDirectory:r,refresh:l}=e,[u,c]=(0,a.useState)(null),[,d]=(0,a.useState)(),h=(0,o.GD)(),p=(0,a.useCallback)(async e=>{let{bucket:t,from:r,to:a,mode:o}=(0,f.e)(e,n);if(r===a)return;let s=await h.post({payload:{force:!1,bucket:t,from:r,to:a,mode:o}});l(),s.error&&(0,i.OHV)({title:"Error moving files",body:s.error})},[l,h,n]),m=(0,a.useCallback)(e=>{if(!e){d(e=>(e&&clearTimeout(e),null));return}let t=setTimeout(()=>{r(()=>e)},500);d(e=>(e&&clearTimeout(e),t))},[d,r]),g=(0,a.useCallback)(e=>{if(e.collisions.length){var t;let r=null===(t=e.collisions)||void 0===t?void 0:t[0].id;".."===r?m(n.slice(0,-1)):m((0,s.gD)(r))}else m(void 0)},[m,n]),v=(0,a.useCallback)(e=>{c(t.find(t=>t.id===e.active.id)||null)},[t,c]),y=(0,a.useCallback)(e=>{g(e)},[g]),x=(0,a.useCallback)(e=>{g(e)},[g]);return{onDragEnd:(0,a.useCallback)(async e=>{m(void 0),c(void 0),p(e)},[c,m,p]),onDragOver:y,onDragCancel:(0,a.useCallback)(async e=>{m(void 0),c(void 0)},[c,m]),onDragMove:x,onDragStart:v,draggingObject:u}}({dataset:b,activeDirectory:e,setActiveDirectory:r,refresh:x}),M=(0,a.useMemo)(()=>b?e.length>0&&b.length>0?[{id:"..",name:"..",path:"..",type:"directory",onClick:()=>{r(e=>e.slice(0,-1))}},...b]:b:null,[b]),_=(0,a.useMemo)(()=>M?M.map(e=>C&&C.id!==e.id&&"directory"===e.type?{...e,isDroppable:!0}:{...e,isDraggable:"bucket"!==e.type&&!e.isUploading}):null,[M,C]);return{activeBucket:t,activeDirectory:e,setActiveDirectory:r,activeDirectoryPath:n,dataState:(0,i.c2j)(b,y.isValidating,y.error,p),columns:(0,a.useMemo)(()=>h.z.filter(e=>e.fixed||m.includes(e.id)),[m]),refresh:x,limit:g,offset:v,datasetPage:_,pageCount:(null==b?void 0:b.length)||0,onDragStart:S,onDragEnd:w,onDragMove:E,onDragCancel:k,onDragOver:j,draggingObject:C}}();return(0,r.jsx)(p.Provider,{value:n,children:t})}},33351:function(e,t,n){"use strict";n.d(t,{z:function(){return m}});var r=n(52322),i=n(44677),a=n(47211),o=n(80373),l=n(87023),s=n(84301),u=n(6391),c=n.n(u),d=n(23094),f=n(90721),h=n(41736),p=n(70899);let m=[{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:u,size:c}}=e;return t?(0,r.jsx)(i.zxk,{variant:"ghost",state:"waiting",children:(0,r.jsx)(a.c_L,{})}):"bucket"===n?(0,r.jsx)(f.s,{name:o}):"directory"===n?(0,r.jsx)(s.I,{path:u,size:c}):(0,r.jsx)(l.e,{path:u})}},{id:"name",label:"name",category:"general",render:function(e){let{data:{path:t,name:n,type:a}}=e,{setFileNamePrefixFilter:o}=(0,h.b)(),l=(0,p.kj)(t).slice(1);return"bucket"===a?(0,r.jsx)(i.xvT,{ellipsis:!0,color:"accent",weight:"semibold",className:"cursor-pointer",children:n}):"directory"===a?(0,r.jsx)(i.xvT,{ellipsis:!0,color:"accent",weight:"semibold",className:"cursor-pointer",onClick:e=>{e.stopPropagation(),o((0,p.rj)(l))},children:l}):(0,r.jsx)(i.xvT,{ellipsis:!0,weight:"semibold",className:"cursor-pointer",onClick:e=>{e.stopPropagation(),o((0,p.rj)(l))},children:l})}},{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 l=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:l?"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:l?"contrast":"verySubtle",className:"flex gap-0.5 items-center",children:l?(0,r.jsx)(a.nDH,{}):(0,r.jsx)(a.Lur,{})})})})})}},{id:"size",label:"size",contentClassName:"justify-end",render:function(e){let{data:{type:t,name:n,size:a}}=e;return"bucket"===t||".."===n?null:(0,r.jsx)(i.m2c,{size:"12",value:new(c())(a),variant:"value",color:"subtle",weight:"regular",format:e=>(0,o.vW)(e.toNumber())})}},{id:"health",label:"health",contentClassName:"justify-center",render:function(e){let{data:t}=e,{type:n,isUploading:l,loaded:s,size:u}=t;if("bucket"===n)return null;if(l){let e=(s/u*100).toFixed(0)+"%";return(0,r.jsx)(i.ua7,{content:"Uploaded ".concat((0,o.vW)(s),"/").concat((0,o.vW)(u)),children:(0,r.jsxs)("div",{className:"flex items-center gap-1 cursor-pointer",children:[(0,r.jsx)(i.xvT,{color:"subtle",children:(0,r.jsx)(a.R$6,{className:"scale-75"})}),(0,r.jsx)(i.xvT,{color:"subtle",size:"12",children:e})]})})}return(0,r.jsx)(d.z,{...t})}}]},43385:function(e,t,n){"use strict";n.d(t,{p:function(){return p},o:function(){return h}});var r=n(52322),i=n(44677),a=n(2784),o=n(55329),l=n(37371),s=n(5632),u=n(41736),c=n(9338),d=n(33351);let f=(0,a.createContext)({}),h=()=>(0,a.useContext)(f);function p(e){let{children:t}=e,n=function(){var e,t;let{sortDirection:n,sortField:r,filters:f,enabledColumns:h}=(0,u.b)(),{limit:p,response:m,refresh:g,dataset:v}=function(e){let{sortDirection:t,sortField:n}=e,{activeBucketName:r,fileNamePrefixFilter:i}=(0,u.b)(),d=(0,s.useRouter)(),f=Number(d.query.limit||50),h=d.query.marker,p=(0,a.useMemo)(()=>{let e={bucket:r,sortBy:n,sortDir:t,marker:h,limit:f};return i&&(e.prefix=i.startsWith("/")?i:"/"+i),e},[r,i,n,t,h,f]),m=(0,o.SD)({disabled:!r,payload:p,config:{swr:{refreshInterval:c.h}}}),g=(0,a.useMemo)(()=>{var e;return{isValidating:m.isValidating,data:null===(e=m.data)||void 0===e?void 0:e.objects}},[m.isValidating,m.data]);return{limit:f,marker:h,response:m,dataset:(0,l.p)({id:"filesFlat",objects:g}).data,refresh:m.mutate}}({sortField:r,sortDirection:n}),y=null===(e=m.data)||void 0===e?void 0:e.nextMarker,x=null===(t=m.data)||void 0===t?void 0:t.hasMore,b=(0,a.useMemo)(()=>v,[v]);return{dataState:(0,i.c2j)(v,m.isValidating,m.error,f),refresh:g,limit:p,datasetPage:b,columns:(0,a.useMemo)(()=>d.z.filter(e=>e.fixed||h.includes(e.id)),[h]),nextMarker:y,isMore:x,pageCount:(null==v?void 0:v.length)||0,sortField:r,filters:f,sortDirection:n}}();return(0,r.jsx)(f.Provider,{value:n,children:t})}},37371:function(e,t,n){"use strict";n.d(t,{p:function(){return c}});var r=n(84779),i=n(69046),a=n(79381),o=n(69960),l=n(70899),s=n(41736),u=n(2784);function c(e){let{id:t,objects:n}=e,{activeBucket:c,activeBucketName:d,fileNamePrefixFilter:f,uploadsList:h,sortDirection:p,sortField:m,activeDirectoryPath:g,buckets:v,setActiveDirectory:y}=(0,s.b)(),{dataset:x}=(0,o.G)(),b=(0,a.ZP)(n.isValidating||v.isValidating?null:[t,d,g],()=>{var e,t;let a={};if(c){if(n.data||h.length){for(let e of(null===(t=n.data)||void 0===t||t.forEach(e=>{let{name:t,size:n,health:r}=e,i=(0,l.v_)(d,t),o=(0,l.vt)(t);a[i]={id:i,path:i,bucket:c,size:n,health:r,name:o,onClick:(0,l.IQ)(t)?()=>{y(e=>e.concat(o.slice(0,-1)))}:void 0,type:(0,l.IQ)(t)?"directory":"file"}}),h))if(e.path.startsWith(g)){if(!e.path.startsWith(g))continue;let t=e.path.slice(g.length).split("/");if(t.length<=1)continue;let n=t[0],r=(0,l.v_)(g,n)+"/";if(a[r])continue;a[r]={id:r,path:r,bucket:c,size:0,health:0,name:n+"/",onClick:()=>{y(e=>e.concat(n))},type:"directory"}}h.filter(e=>{let{path:t}=e;if(!t.startsWith(g))return!1;let n=1===t.slice(g.length).split("/").length,r=f?(0,l.v_)(g,f):g;return n&&t.startsWith(r)}).forEach(e=>{a[e.path]=e})}}else null===(e=v.data)||void 0===e||e.forEach(e=>{let t=e.name,n=(0,l.YF)(t,"");a[t]={id:n,path:n,bucket:e,size:0,health:0,name:t,onClick:()=>{y(e=>e.concat(t))},type:"bucket"}});let o=(0,r.Z)((0,i.Z)(a).map(e=>e[1]),m);return"desc"===p&&o.reverse(),o},{keepPreviousData:!0});return(0,u.useEffect)(()=>{b.mutate()},[n.data,h,x,v.data,f]),b}},41736:function(e,t,n){"use strict";n.d(t,{e:function(){return eo},b:function(){return ea}});var r=n(52322),i=n(44677),a=n(99605),o=n(2784),l=n(72199),s=n(3077),u=n(70899),c=n(55329),d=n(88744);function f(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function h(e,t){var n=f(e,t,"get");return n.get?n.get.call(e):n.value}function p(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function m(e,t,n){p(e,t),t.set(e,n)}function g(e,t,n){var r=f(e,t,"set");return!function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=n}}(e,r,n),n}function v(e,t,n){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return n}function y(e,t){p(e,t),t.add(e)}var x=n(82842),b=new WeakMap,w=new WeakMap,j=new WeakMap,k=new WeakMap,E=new WeakMap,S=new WeakMap,C=new WeakMap,M=new WeakMap,_=new WeakMap,O=new WeakMap,T=new WeakMap,P=new WeakMap,A=new WeakMap,N=new WeakMap,R=new WeakMap,D=new WeakMap,L=new WeakMap,Z=new WeakMap,F=new WeakMap,z=new WeakSet,V=new WeakSet,B=new WeakSet,I=new WeakSet,H=new WeakSet,U=new WeakSet;class W{async create(){var e;let t={bucket:h(this,b),generateKey:!0,path:h(this,w)};return g(this,R,null===(e=(await h(this,S).busUploadCreate.post({payload:t})).data)||void 0===e?void 0:e.uploadID),g(this,A,Array.from({length:Math.ceil(h(this,j).size/h(this,k))},(e,t)=>t+1)),h(this,R)}async start(){let e=new Promise(e=>{g(this,O,e)});v(this,z,q).call(this),await e}async abort(){var e;g(this,D,!0),Object.keys(h(this,P)).map(Number).forEach(e=>{h(this,P)[e].abort()});try{await h(this,S).busUploadAbort.post({payload:{bucket:h(this,b),path:h(this,w),uploadID:h(this,R)}})}catch(e){(0,i.OHV)({title:"Error aborting upload",body:e.message})}null===(e=h(this,O))||void 0===e||e.call(this)}setOnProgress(e){g(this,C,e)}setOnError(e){g(this,M,e)}setOnComplete(e){g(this,_,e)}constructor(e){y(this,z),y(this,V),y(this,B),y(this,I),y(this,H),y(this,U),m(this,b,{writable:!0,value:void 0}),m(this,w,{writable:!0,value:void 0}),m(this,j,{writable:!0,value:void 0}),m(this,k,{writable:!0,value:void 0}),m(this,E,{writable:!0,value:void 0}),m(this,S,{writable:!0,value:void 0}),m(this,C,{writable:!0,value:void 0}),m(this,M,{writable:!0,value:void 0}),m(this,_,{writable:!0,value:void 0}),m(this,O,{writable:!0,value:void 0}),m(this,T,{writable:!0,value:void 0}),m(this,P,{writable:!0,value:void 0}),m(this,A,{writable:!0,value:void 0}),m(this,N,{writable:!0,value:void 0}),m(this,R,{writable:!0,value:void 0}),m(this,D,{writable:!0,value:void 0}),m(this,L,{writable:!0,value:void 0}),m(this,Z,{writable:!0,value:void 0}),m(this,F,{writable:!0,value:void 0}),g(this,L,500),g(this,Z,6e4),g(this,F,h(this,L)),g(this,b,e.bucket),g(this,w,e.path),g(this,k,e.partSize||5242880),g(this,E,Math.min(e.maxConcurrentParts||5,15)),g(this,j,e.file),g(this,S,e.api),g(this,C,e.onProgress||(()=>null)),g(this,M,e.onError||(()=>null)),g(this,_,e.onComplete||(()=>null)),g(this,T,{}),g(this,P,{}),g(this,A,[]),g(this,N,[]),g(this,R,null),g(this,D,!1)}}async function q(){if(h(this,D))return;let e=Object.keys(h(this,P)).length;if(e>=h(this,E))return;if(!h(this,A).length){e||v(this,I,Y).call(this);return}let t=h(this,A).pop(),n=(t-1)*h(this,k),r=h(this,j).slice(n,n+h(this,k));try{await v(this,U,G).call(this,t,r,n,()=>{v(this,z,q).call(this)}),v(this,V,$).call(this)}catch(e){if(e instanceof J)return;if(e instanceof Q){await this.abort(),h(this,M).call(this,e);return}h(this,A).push(t),await v(this,B,K).call(this)}v(this,z,q).call(this)}function $(){g(this,F,h(this,L))}async function K(){let e=(0,x.gw)(h(this,F));g(this,F,Math.min(2*h(this,F),h(this,Z))),await e}async function Y(){try{let e={bucket:h(this,b),path:h(this,w),uploadID:h(this,R),parts:h(this,N).sort((e,t)=>e.partNumber-t.partNumber)};await h(this,S).busUploadComplete.post({payload:e}),h(this,_).call(this)}catch(e){h(this,M).call(this,e)}h(this,O).call(this)}function X(e,t){h(this,T)[e]=t.loaded;let n=Math.min(Object.keys(h(this,T)).map(Number).reduce((e,t)=>e+=h(this,T)[t],0),h(this,j).size),r=h(this,j).size;h(this,C).call(this,{sent:n,total:r,percentage:Math.round(n/r*100)})}async function G(e,t,n,r){let i=new AbortController;h(this,P)[e]=i,r();try{let r=await h(this,S).workerUploadPart.put({params:{key:h(this,w).slice(1),bucket:h(this,b),uploadid:h(this,R),offset:n,partnumber:e},payload:t,config:{axios:{onUploadProgress:t=>v(this,H,X).call(this,e,t),signal:i.signal}}});if(r.error){if("canceled"===r.error)throw new J;throw Error(r.error)}let a=r.headers.etag;if(!a)throw new Q;let o={partNumber:e,eTag:a.replace(/"/g,"")};h(this,N).push(o)}finally{h(this,P)[e]=null,delete h(this,P)[e]}}class J extends Error{constructor(){super("canceled"),this.name="CanceledError"}}class Q extends Error{constructor(){super("No ETag in response, add ETag to Access-Control-Expose-Headers list"),this.name="NoETagError"}}var ee=n(80373);let et=e=>(0,ee.B$)(4).times(e);var en=n(98334),er=n(92762);let ei=(0,o.createContext)({}),ea=()=>(0,o.useContext)(ei);function eo(e){let{children:t}=e,n=function(){var e;let{configurableColumns:t,enabledColumns:n,sortableColumns:r,toggleColumnVisibility:f,setColumnsVisible:h,setColumnsHidden:p,toggleSort:m,setSortDirection:g,setSortField:v,sortField:y,sortDirection:b,resetDefaultColumnVisibility:w}=(0,i.oy6)("renterd/v0/objects",{columns:l.z,columnsDefaultVisible:s.gd,sortOptions:s.Fo,defaultSortField:s.nw}),j=(0,a.xj)(),k=(0,a.UO)(),E=null==k?void 0:k.bucket,{filters:S,setFilter:C,removeFilter:M,removeLastFilter:_,resetFilters:O}=(0,i.Uu5)(),T=(0,o.useMemo)(()=>{var e;return(null===(e=S.find(e=>"fileNamePrefix"===e.id))||void 0===e?void 0:e.value)||""},[S]),P=(0,o.useMemo)(()=>E?[E,...((null==k?void 0:k.path)||[]).map(decodeURIComponent)]:[],[E,null==k?void 0:k.path]),A=(0,c.B$)(),N=null===(e=A.data)||void 0===e?void 0:e.find(e=>e.name===E),R=(0,o.useMemo)(()=>(0,u.rd)(P)+"/",[P]),[D,L]=(0,er.Z)("renterd/v0/explorerMode",{defaultValue:"directory"}),Z=(0,o.useCallback)(e=>{let t=e(P);if(0===t.length){j.push(en._.buckets.index);return}let n=en._.buckets.files.replace("[bucket]",t[0]).replace("[path]",t.slice(1).map(encodeURIComponent).join("/"));j.push(n)},[j,P]),{uploadFiles:F,uploadsMap:z,uploadsList:V}=function(e){let{activeDirectoryPath:t}=e,n=(0,c.B$)(),r=(0,x.Tu)(),a=(0,c.Pt)(),l=(0,c._3)(),s=(0,c.eM)(),f=(0,c.LS)(),[h,p]=(0,o.useState)({}),m=(0,c.fz)({config:{swr:{refreshInterval:(0,i.sWj)(1)}}}),g=(0,o.useCallback)(e=>{let{id:t}=e;p(e=>({...e,[t]:{...e[t],uploadStatus:"uploading",loaded:0}}))},[p]),v=(0,o.useCallback)(e=>{p(t=>t[e.id]?{...t,[e.id]:{...t[e.id],loaded:e.loaded,uploadStatus:e.loaded===e.size?"processing":"uploading",size:e.size}}:t)},[p]),y=(0,o.useCallback)(e=>{p(t=>(delete t[e],{...t}))},[p]),b=(0,o.useCallback)(async e=>{var t;let{path:n,bucket:r,uploadFile:a}=e,o=new W({file:a,path:(0,u.kj)(n),bucket:r.name,api:S.current,partSize:et((null===(t=m.data)||void 0===t?void 0:t.minShards)||1).toNumber(),maxConcurrentParts:5}),l=await o.create();return o.setOnError(e=>{(0,i.OHV)({title:"Error uploading file",body:e.message}),S.current.removeUpload(l)}),o.setOnProgress((0,d.Z)(e=>{S.current.updateUploadProgress({id:l,loaded:e.sent,size:e.total})},1e3)),o.setOnComplete(async()=>{await S.current.mutate(e=>e.startsWith("/bus/objects")),S.current.removeUpload(l),setTimeout(()=>{S.current.checkAndStartUploads()},100)}),{uploadId:l,multipartUpload:o}},[m.data]),w=(0,o.useCallback)(async e=>{let{path:t,bucket:n,name:r,uploadFile:i}=e,{uploadId:a,multipartUpload:o}=await b({path:t,bucket:n,uploadFile:i});p(e=>({...e,[a]:{id:a,path:t,bucket:n,name:r,size:i.size,loaded:0,isUploading:!0,upload:o,uploadStatus:"queued",uploadFile:i,createdAt:new Date().toISOString(),uploadAbort:async()=>{await o.abort(),S.current.removeUpload(a)},type:"file"}}))},[p,b]),j=(0,o.useCallback)(async e=>{let{id:t,upload:n}=e;g({id:t}),n.start()},[g]),k=(0,o.useCallback)(()=>{let e=Object.values(h),t=e.filter(e=>"uploading"===e.uploadStatus).length;return e.filter(e=>"queued"===e.uploadStatus).slice(0,5-t).forEach(e=>{j({id:e.id,upload:e.upload})}),h},[h,j]),E=(0,o.useCallback)(e=>{e.forEach(e=>{var r,a,o;let l=e.path||e.name,s=(0,u.v_)(t,l),c=e.name,d=(0,u.ru)(s),f=null===(r=n.data)||void 0===r?void 0:r.find(e=>e.name===d);h[s]&&((0,i.OHV)({title:"Already uploading file, aborting previous upload.",body:s}),null===(a=(o=h[s]).uploadAbort)||void 0===a||a.call(o)),w({path:s,name:c,bucket:f,uploadFile:e})}),setTimeout(()=>{S.current.checkAndStartUploads()},1e3)},[t,w,n.data,h]),S=(0,o.useRef)({checkAndStartUploads:k,workerUploadPart:a,busUploadComplete:l,busUploadCreate:s,busUploadAbort:f,removeUpload:y,updateUploadProgress:v,updateStatusToUploading:g,mutate:r});(0,o.useEffect)(()=>{S.current={checkAndStartUploads:k,busUploadAbort:f,busUploadComplete:l,busUploadCreate:s,workerUploadPart:a,mutate:r,removeUpload:y,updateUploadProgress:v,updateStatusToUploading:g}},[k,f,l,s,a,r,y,v,g]),(0,o.useEffect)(()=>{let e=setInterval(()=>{S.current.checkAndStartUploads()},3e3);return()=>{clearInterval(e)}},[]);let C=(0,o.useMemo)(()=>Object.entries(h).map(e=>e[1]),[h]);return!function(e){let{uploadsMap:t}=e;(0,o.useEffect)(()=>{let e=Object.values(t).filter(e=>"uploading"===e.uploadStatus),n=t=>{if(e.length>0){let n="Warning, closing the tab will abort all ".concat(e.length," active uploads.");return t.returnValue=n,n}};return e.length>0&&window.addEventListener("beforeunload",n),()=>{window.removeEventListener("beforeunload",n)}},[t])}({uploadsMap:h}),{uploadFiles:E,uploadsMap:h,uploadsList:C}}({activeDirectoryPath:R}),{downloadFiles:B,downloadsList:I,getFileUrl:H,downloadCancel:U}=function(){let e=(0,c.B$)(),t=(0,c.p$)(),[n,r]=(0,o.useState)({}),a=(0,o.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]),l=(0,o.useCallback)(e=>{r(t=>t[e.path]?{...t,[e.path]:{...t[e.path],path:e.path,loaded:e.loaded,size:e.size}}:t)},[r]),s=(0,o.useCallback)(e=>{r(t=>(delete t[e],{...t}))},[r]),f=(0,o.useCallback)(e=>{e.controller.abort()},[]),h=async r=>{r.forEach(async r=>{var o;let c=!1,f=(0,u.ru)(r),h=null===(o=e.data)||void 0===o?void 0:o.find(e=>e.name===f),p=(0,u.vt)(r);if(n[r]){(0,i.OHV)({title:"Already downloading file",body:r});return}let m=new AbortController,g=(0,d.Z)(e=>{c||l({path:r,loaded:e.loaded,size:e.total})},2e3);a({path:r,name:p,bucket:h,loaded:0,size:1,controller:m});let v=await t.get(p,{params:(0,u.W0)(r),config:{axios:{onDownloadProgress:g,signal:m.signal}}});c=!0,v.error&&("canceled"===v.error?(0,i.RFt)({title:"File download canceled"}):(0,i.OHV)({title:"Error downloading file",body:v.error})),s(r)})},p=(0,o.useMemo)(()=>Object.entries(n).map(e=>e[1]),[n]),{settings:m}=(0,x.Hv)();return{downloadFiles:h,downloadsList:p,getFileUrl:(0,o.useCallback)((e,t)=>{let{bucket:n,key:r}=(0,u.W0)(e),i="/worker/objects/".concat(r,"?bucket=").concat(n),a=m.api||location.origin,o=a.startsWith("https")?"https":"http",l=a.replace("https://","").replace("http://","");return t?"".concat(o,"://:").concat(m.password,"@").concat(l,"/api").concat(i):"".concat(o,"://").concat(l,"/api").concat(i)},[m]),downloadCancel:f}}(),q=0===P.length,$=1===P.length,K=P.length>0,Y=(0,o.useCallback)(e=>{C({id:"fileNamePrefix",label:"",value:e})},[C]),X=(0,o.useCallback)(()=>{M("fileNamePrefix")},[M]),G=(0,o.useCallback)((e,t)=>{t?Y(t):X(),Z(()=>e)},[Z,Y,X]),J=(0,o.useCallback)(e=>{G((0,u.gD)(e),(0,u.vt)(e))},[G]),Q=(0,o.useCallback)(e=>{"directory"===D?J(e):Y((0,u.kj)(e).slice(1))},[D,J,Y]),ee=en._.buckets.uploads.replace("[bucket]",E),ei=(0,o.useCallback)(()=>{N&&j.push(ee)},[N,ee,j]),ea=(0,a.jD)(),eo=E&&ea.startsWith(ee),el=(0,o.useCallback)(async()=>{(eo||"directory"!==D)&&(G([E],void 0),L("directory"))},[eo,D,E,L,G]),es=(0,o.useCallback)(async()=>{(eo||"flat"!==D)&&(G([E],(0,u.kj)(R).slice(1)),L("flat"))},[eo,D,E,R,L,G]);return{isViewingBuckets:q,isViewingABucket:K,isViewingRootOfABucket:$,isViewingUploads:eo,buckets:A,activeBucket:N,activeBucketName:E,activeDirectory:P,navigateToUploads:ei,setActiveDirectory:Z,setActiveDirectoryAndFileNamePrefix:G,activeDirectoryPath:R,navigateToModeSpecificFiltering:Q,uploadFiles:F,uploadsMap:z,uploadsList:V,downloadFiles:B,downloadsList:I,downloadCancel:U,configurableColumns:t,enabledColumns:n,sortableColumns:r,toggleColumnVisibility:f,setColumnsVisible:h,setColumnsHidden:p,toggleSort:m,setSortDirection:g,setSortField:v,sortField:y,filters:S,fileNamePrefixFilter:T,setFileNamePrefixFilter:Y,setFilter:C,removeFilter:M,removeLastFilter:_,resetFilters:O,sortDirection:b,resetDefaultColumnVisibility:w,getFileUrl:H,activeExplorerMode:D,setExplorerModeDirectory:el,setExplorerModeFlat:es}}();return(0,r.jsx)(ei.Provider,{value:n,children:t})}},3077:function(e,t,n){"use strict";n.d(t,{Fo:function(){return a},gd:function(){return r},nw:function(){return i}});let r=["type","name","readAccess","size","health"],i="name",a=[{id:"name",label:"name",category:"general"},{id:"health",label:"health",category:"general"},{id:"size",label:"size",category:"general"}]},56328:function(e,t,n){"use strict";n.d(t,{x:function(){return Z},l:function(){return L}});var r,i,a=n(52322),o=n(44677),l=n(55329),s=n(2784);let u=["allow","netAddress","publicKey","lastScan","lastAnnouncement","totalScans","uptime","hasContract","ap_usable","ap_scoreOverall"];var c=n(5632),d=n(47211),f=n(80373),h=n(29193),p=n(62650),m=n(32998),g=n(17448),v=n(82842),y=n(8117),x=n(6391),b=n.n(x);let w=[{id:"actions",label:"",fixed:!0,category:"general",cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:t}=e;return(0,a.jsx)(g.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=!!(null===(t=(0,l.s2)({config:{swr:{dedupingInterval:5e3}}}).data)||void 0===t?void 0:t.length);return(0,a.jsx)(o.ua7,{side:"right",content:(r?"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,a.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,a.jsx)("div",{className:"mt-[5px]",children:(0,a.jsx)(o.xvT,{color:n.isBlocked?"red":"green",children:n.isBlocked?(0,a.jsx)(d.SmH,{}):(0,a.jsx)(d.DI$,{})})}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)(o.xvT,{size:"10",color:n.isOnBlocklist?"red":"verySubtle",noWrap:!0,children:"Blocklist"}),(0,a.jsx)(o.xvT,{size:"10",color:r?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,a.jsx)(o.ua7,{side:"right",content:t.usable?"Host is usable":"Host is not usable",children:(0,a.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,a.jsx)("div",{className:"mt-[5px]",children:(0,a.jsx)(o.xvT,{color:t.usable?"green":"red",children:t.usable?(0,a.jsx)(d.DI$,{}):(0,a.jsx)(d.SmH,{})})}),(0,a.jsx)("div",{className:"flex flex-col",children:t.unusableReasons.map(e=>(0,a.jsx)(o.xvT,{size:"10",noWrap:!0,children:e},e))})]})}):(0,a.jsx)(o.ua7,{side:"right",content:"Autopilot is not configured",children:(0,a.jsx)("div",{className:"mt-[5px]",children:(0,a.jsx)(o.xvT,{color:"subtle",children:(0,a.jsx)(d.I98,{})})})})}},{id:"ap_gouging",label:"gouging",category:"autopilot",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,a.jsx)(o.ua7,{side:"right",content:t.gouging?"Host is price gouging":"Host is not price gouging",children:(0,a.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,a.jsx)("div",{className:"mt-[5px]",children:(0,a.jsx)(o.xvT,{color:t.gouging?"red":"subtle",children:t.gouging?(0,a.jsx)(d.SmH,{}):(0,a.jsx)(d.I98,{})})}),(0,a.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,a.jsx)(o.xvT,{size:"10",noWrap:!0,children:n},t)})})]})}):(0,a.jsx)(o.ua7,{side:"right",content:"Autopilot is not configured",children:(0,a.jsx)("div",{className:"mt-[5px]",children:(0,a.jsx)(o.xvT,{color:"subtle",children:(0,a.jsx)(d.I98,{})})})})}},{id:"lastScan",label:"last scan",category:"general",render:function(e){let{data:t}=e,{workflows:n}=(0,v.D)();if(n.find(e=>{var n;return e.path.startsWith(y.RF)&&(null===(n=e.payload)||void 0===n?void 0:n.hostKey)===t.publicKey}))return(0,a.jsx)(o.xgg,{});let r=(0,h.Z)(new Date(t.lastScan||0),new Date,{addSuffix:!0}),i="",l=null,s="subtle";return t.lastScan||(i="host has not been scanned",l=(0,a.jsx)(d.I98,{}),s="subtle"),t.lastScan&&!t.lastScanSuccess&&(i="host scan failed ".concat(r),l=(0,a.jsx)(d.SmH,{}),s="red"),t.lastScan&&t.lastScanSuccess&&(i="host scan succeeded ".concat(r),l=(0,a.jsx)(d.DI$,{}),s="green"),(0,a.jsx)(o.ua7,{side:"right",content:i,children:(0,a.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,a.jsx)("div",{className:"mt-[5px]",children:(0,a.jsx)(o.xvT,{color:s,children:l})}),t.lastScan&&(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)(o.xvT,{size:"12",noWrap:!0,children:r}),(0,a.jsx)(o.xvT,{color:"subtle",size:"10",noWrap:!0,children:(0,p.Z)(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,a.jsx)(o.ua7,{side:"right",content:n?"Host has active contract":"Host does not have an active contract",children:(0,a.jsx)("div",{className:"mt-[5px]",children:(0,a.jsx)(o.xvT,{color:n?"green":"subtle",children:n?(0,a.jsx)(d.DI$,{}):(0,a.jsx)(d.I98,{})})})})}},{id:"netAddress",label:"address",category:"general",render:e=>{let{data:t,context:n}=e;return(0,a.jsx)(o.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,a.jsx)(o.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 t.lastAnnouncement?(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)(o.xvT,{size:"12",noWrap:!0,children:[(0,h.Z)(new Date,new Date(t.lastAnnouncement))," ago"]}),(0,a.jsx)(o.xvT,{color:"subtle",size:"10",noWrap:!0,children:(0,m.Z)(new Date(t.lastAnnouncement),new Date)})]}):null}},{id:"totalScans",label:"total scans",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,a.jsx)(o.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,a.jsx)(o.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,a.jsx)(o.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,a.jsx)(o.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,a.jsx)(o.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,a.jsx)(o.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,a.jsx)(o.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,a.jsx)(o.m2c,{size:"12",value:t.score,variant:"value",format:e=>e.toPrecision(2)}):(0,a.jsx)(o.ua7,{content:"Autopilot is not configured",children:(0,a.jsx)(o.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,a.jsx)(o.m2c,{size:"12",value:t.scoreBreakdown.age,variant:"value",format:e=>e.toPrecision(2)}):(0,a.jsx)(o.ua7,{content:"Autopilot is not configured",children:(0,a.jsx)(o.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,a.jsx)(o.m2c,{size:"12",value:t.scoreBreakdown.collateral,variant:"value",format:e=>e.toPrecision(2)}):(0,a.jsx)(o.ua7,{content:"Autopilot is not configured",children:(0,a.jsx)(o.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,a.jsx)(o.m2c,{size:"12",value:t.scoreBreakdown.interactions,variant:"value",format:e=>e.toPrecision(2)}):(0,a.jsx)(o.ua7,{content:"Autopilot is not configured",children:(0,a.jsx)(o.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,a.jsx)(o.m2c,{size:"12",value:t.scoreBreakdown.prices,variant:"value",format:e=>e.toPrecision(2)}):(0,a.jsx)(o.ua7,{content:"Autopilot is not configured",children:(0,a.jsx)(o.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,a.jsx)(o.m2c,{size:"12",value:t.scoreBreakdown.storageRemaining,variant:"value",format:e=>e.toPrecision(2)}):(0,a.jsx)(o.ua7,{content:"Autopilot is not configured",children:(0,a.jsx)(o.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,a.jsx)(o.m2c,{size:"12",value:t.scoreBreakdown.uptime,variant:"value",format:e=>e.toPrecision(2)}):(0,a.jsx)(o.ua7,{content:"Autopilot is not configured",children:(0,a.jsx)(o.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,a.jsx)(o.m2c,{size:"12",value:t.scoreBreakdown.version,variant:"value",format:e=>n.isAutopilotConfigured?"-":e.toPrecision(2)}):(0,a.jsx)(o.ua7,{content:"Autopilot is not configured",children:(0,a.jsx)(o.xvT,{color:"verySubtle",children:"-"})})}},{id:"hpt_accountbalancecost",label:"account balance cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","accountbalancecost")},{id:"hpt_collateralcost",label:"collateral cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","collateralcost")},{id:"hpt_contractprice",label:"contract price",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","contractprice")},{id:"hpt_downloadbandwidthcost",label:"download bandwidth cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","downloadbandwidthcost")},{id:"hpt_dropsectorsbasecost",label:"drop sectors base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","dropsectorsbasecost")},{id:"hpt_dropsectorsunitcost",label:"drop sectors unit cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","dropsectorsunitcost")},{id:"hpt_expiry",label:"expiry",category:"priceTable",contentClassName:"w-[120px] justify-end",render:k("priceTable","dropsectorsunitcost")},{id:"hpt_fundaccountcost",label:"fund account cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","fundaccountcost")},{id:"hpt_hassectorbasecost",label:"has sector cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","hassectorbasecost")},{id:"hpt_hostblockheight",label:"host block height",category:"priceTable",contentClassName:"w-[120px] justify-end",render:k("priceTable","hostblockheight")},{id:"hpt_initbasecost",label:"init base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","initbasecost")},{id:"hpt_latestrevisioncost",label:"latest revision cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","latestrevisioncost")},{id:"hpt_maxcollateral",label:"max collateral",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","maxcollateral")},{id:"hpt_maxduration",label:"max duration",category:"priceTable",contentClassName:"w-[120px] justify-end",render:k("priceTable","maxduration")},{id:"hpt_memorytimecost",label:"memory time cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","memorytimecost")},{id:"hpt_readbasecost",label:"read base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","readbasecost")},{id:"hpt_readlengthcost",label:"read length cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","readlengthcost")},{id:"hpt_registryentriesleft",label:"registry entries left",category:"priceTable",contentClassName:"w-[120px] justify-end",render:k("priceTable","registryentriesleft")},{id:"hpt_registryentriestotal",label:"registry entries total",category:"priceTable",contentClassName:"w-[120px] justify-end",render:k("priceTable","registryentriestotal")},{id:"hpt_renewcontractcost",label:"renew contract cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","renewcontractcost")},{id:"hpt_revisionbasecost",label:"revision base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","renewcontractcost")},{id:"hpt_subscriptionmemorycost",label:"subscription memory cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","subscriptionmemorycost")},{id:"hpt_subscriptionnotificationcost",label:"subscription notification cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","subscriptionnotificationcost")},{id:"hpt_swapsectorcost",label:"swap sector cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","swapsectorcost")},{id:"hpt_txnfeemaxrecommended",label:"txn fee max recommended",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","txnfeemaxrecommended")},{id:"hpt_txnfeeminrecommended",label:"txn fee min recommended",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","txnfeeminrecommended")},{id:"hpt_uid",label:"UID",category:"priceTable",contentClassName:"w-[120px] justify-end",render:E("priceTable","uid")},{id:"hpt_updatepricetablecost",label:"update price table cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","updatepricetablecost")},{id:"hpt_uploadbandwidthcost",label:"upload bandwidth cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","uploadbandwidthcost")},{id:"hpt_validity",label:"validity",category:"priceTable",contentClassName:"w-[120px] justify-end",render:k("priceTable","validity")},{id:"hpt_windowsize",label:"window size",category:"priceTable",contentClassName:"w-[120px] justify-end",render:k("priceTable","windowsize")},{id:"hpt_writebasecost",label:"write base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","writebasecost")},{id:"hpt_writelengthcost",label:"write length cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("priceTable","writelengthcost")},{id:"hpt_writestorecost",label:"write store cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:j("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,a.jsx)("div",{className:"mt-[5px]",children:(0,a.jsx)(o.xvT,{color:t[r][i]?"green":"red",children:t[r][i]?(0,a.jsx)(d.DI$,{}):(0,a.jsx)(d.SmH,{})})}):null})},{id:"hs_baserpcprice",label:"base RPC price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:j("settings","baserpcprice")},{id:"hs_collateral",label:"collateral",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:j("settings","collateral")},{id:"hs_contractprice",label:"contract price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:j("settings","contractprice")},{id:"hs_downloadbandwidthprice",label:"download bandwidth price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:j("settings","downloadbandwidthprice")},{id:"hs_ephemeralaccountexpiry",label:"ephemeral account expiry",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:k("settings","ephemeralaccountexpiry")},{id:"hs_maxcollateral",label:"max collateral",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:j("settings","maxcollateral")},{id:"hs_maxdownloadbatchsize",label:"max download batch size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:S("settings","maxdownloadbatchsize")},{id:"hs_maxduration",label:"max duration",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:k("settings","maxduration")},{id:"hs_maxephemeralaccountbalance",label:"max ephemeral account balance",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:j("settings","maxephemeralaccountbalance")},{id:"hs_maxrevisebatchsize",label:"max revise batch size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:S("settings","maxrevisebatchsize")},{id:"hs_netaddress",label:"net address",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:E("settings","netaddress")},{id:"hs_remainingstorage",label:"remaining storage",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:S("settings","remainingstorage")},{id:"hs_revisionnumber",label:"revision number",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:k("settings","revisionnumber")},{id:"hs_sectoraccessprice",label:"sector access price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:j("settings","sectoraccessprice")},{id:"hs_sectorsize",label:"sector size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:S("settings","sectorsize")},{id:"hs_siamuxport",label:"siamux port",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:k("settings","siamuxport")},{id:"hs_storageprice",label:"storage price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:j("settings","storageprice")},{id:"hs_totalstorage",label:"total storage",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:S("settings","totalstorage")},{id:"hs_unlockhash",label:"unlock hash",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:E("settings","unlockhash")},{id:"hs_uploadbandwidthprice",label:"upload bandwidth price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:j("settings","uploadbandwidthprice")},{id:"hs_version",label:"verison",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:E("settings","version")},{id:"hs_windowsize",label:"window size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:k("settings","windowsize")}].map(e=>({...e,..."autopilot"===e.category?{icon:(0,a.jsx)(d.n6M,{className:"relative opacity-50 scale-75"}),label:e.label,tip:"autopilot: ".concat(e.label)}:"hostSettings"===e.category?{icon:(0,a.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,a.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 j(e,t){return(0,s.memo)(function(n){let{data:r}=n;return r[e]?(0,a.jsx)(o.ho9,{displayBoth:!0,size:"12",value:new(b())(r[e][t]||0),fixedFiat:4,variant:"value"}):null})}function k(e,t,n){return function(r){let{data:i}=r;return i[e]?(0,a.jsx)(o.m2c,{size:"12",value:new(b())(i[e][t]||0),variant:"value",format:e=>(0,f.yF)(e,{abbreviated:n})}):null}}function E(e,t){return function(n){let{data:r}=n;return r[e]?(0,a.jsx)(o.XxW,{value:r[e][t],size:"12"}):null}}function S(e,t){return function(n){let{data:r}=n;return r[e]?(0,a.jsx)(o.xvT,{size:"12",weight:"semibold",ellipsis:!0,children:(0,f.vW)(r[e][t])}):null}}var C=n(69960);function M(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(b())(e.interactions.uptime||0),downtime:new(b())(e.interactions.downtime||0),successfulInteractions:new(b())(e.interactions.successfulInteractions||0),totalInteractions:new(b())(e.interactions.successfulInteractions+e.interactions.failedInteractions||0),failedInteractions:new(b())(e.interactions.failedInteractions||0),totalScans:new(b())(e.interactions.totalScans||0),activeContractsCount:new(b())((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 _(e){let{host:t,allowlist:n,blocklist:r,isAllowlistActive:i}=e,a=!!(null==n?void 0:n.find(e=>e===t.publicKey)),o=!!(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:a,isOnBlocklist:o,isBlocked:o||!(!i||a)}}function O(e){return{score:new(b())((null==e?void 0:e.score)||0),scoreBreakdown:{age:new(b())((null==e?void 0:e.scoreBreakdown.age)||0),collateral:new(b())((null==e?void 0:e.scoreBreakdown.collateral)||0),interactions:new(b())((null==e?void 0:e.scoreBreakdown.interactions)||0),prices:new(b())((null==e?void 0:e.scoreBreakdown.prices)||0),storageRemaining:new(b())((null==e?void 0:e.scoreBreakdown.storageRemaining)||0),uptime:new(b())((null==e?void 0:e.scoreBreakdown.uptime)||0),version:new(b())((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 T=n(37606),P=n(37769),A=n(85375),N=n(45178),R=n(9338);let D=(0,s.createContext)({}),L=()=>(0,s.useContext)(D);function Z(e){let{children:t}=e,n=function(){var e,t,n,r,i,a,d;let f=(0,c.useRouter)(),[h,p]=(0,s.useState)("list"),m=Number(f.query.limit||50),g=Number(f.query.offset||0),{filters:y,setFilter:x,removeFilter:b,removeLastFilter:j,resetFilters:k}=(0,o.Uu5)(),{dataset:E}=(0,C.G)(),{autopilot:S}=(0,T.q)(),D=(0,s.useMemo)(()=>{let e=[];y.find(e=>"hasActiveContracts"===e.id)&&E&&(e=E.map(e=>e.hostKey));let t=y.find(e=>"publicKeyEquals"===e.id);return t&&e.push(null==t?void 0:t.value),e.length?e:void 0},[y,E]),L=(0,l.S0)({disabled:y.find(e=>"hasActiveContracts"===e.id)&&!E||"on"!==S.status,payload:{limit:m,offset:g,usabilityMode:(null===(e=y.find(e=>"usabilityMode"===e.id))||void 0===e?void 0:e.value)||"all",filterMode:(null===(t=y.find(e=>"filterMode"===e.id))||void 0===t?void 0:t.value)||"all",addressContains:null===(n=y.find(e=>"addressContains"===e.id))||void 0===n?void 0:n.value,keyIn:D},config:{swr:{errorRetryInterval:2e4,refreshInterval:R.h}}}),Z=(0,l.FV)({disabled:"off"!==S.status,payload:{limit:m,offset:g,filterMode:(null===(r=y.find(e=>"filterMode"===e.id))||void 0===r?void 0:r.value)||"all",addressContains:null===(i=y.find(e=>"addressContains"===e.id))||void 0===i?void 0:i.value,keyIn:y.find(e=>"hasActiveContracts"===e.id)&&E?E.map(e=>e.hostKey):void 0},config:{swr:{refreshInterval:R.h}}}),F=(0,l.s2)(),z=(0,l.uf)(),V=!!(null===(a=F.data)||void 0===a?void 0:a.length),{settings:B}=(0,v.Hv)(),I=(0,A.JL)({disabled:!B.siaCentral,config:{swr:{revalidateOnFocus:!1}}});(0,s.useEffect)(()=>{B.siaCentral||p("list")},[B.siaCentral]);let H=(0,s.useMemo)(()=>{var e;return(null===(e=I.data)||void 0===e?void 0:e.hosts)||[]},[I.data]),U=(0,s.useRef)(P.N),W=(0,s.useCallback)(e=>{U.current=e},[U]),[q,$]=(0,s.useState)(),K=(0,s.useCallback)(e=>{let t=document.getElementById(e),n=document.getElementById("scroll-hosts");t&&n&&n.scroll({top:t.offsetTop-50,behavior:"smooth"})},[]),Y=(0,s.useCallback)((e,t)=>{if(q===e){$(void 0);return}$(e),t&&U.current.moveToLocation(t),K(e)},[$,U,q,K]),X=(0,s.useCallback)((e,t)=>{if(q===e){$(void 0);return}$(e),t?U.current.moveToLocation(t):(0,o.OHV)({title:"Geographic location is unknown for host",body:(0,o.$Gg)(e,20)}),K(e)},[$,U,q,K]),G=(0,s.useCallback)((e,t)=>null,[]),J=function(e){let{autopilotStatus:t,regularResponse:n,autopilotResponse:r,allContracts:i,allowlist:a,blocklist:o,isAllowlistActive:l,geoHosts:u,onHostSelect:c}=e;return(0,s.useMemo)(()=>{var e,s;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),...M(e,i),..._({host:e,allowlist:a.data,blocklist:o.data,isAllowlistActive:l}),...O(),location:null==t?void 0:t.location,countryCode:null==t?void 0:t.country_code}}))||null:"on"===t&&(null===(s=r.data)||void 0===s?void 0:s.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),...M(e.host,i),..._({host:e.host,allowlist:a.data,blocklist:o.data,isAllowlistActive:l}),...O(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,a.data,o.data,l,u])}({autopilotStatus:S.status,autopilotResponse:L,regularResponse:Z,allContracts:E,allowlist:F,blocklist:z,isAllowlistActive:V,geoHosts:H,onHostSelect:X}),Q=(0,s.useMemo)(()=>"off"===S.status?["autopilot"]:[],[S.status]),{configurableColumns:ee,enabledColumns:et,toggleColumnVisibility:en,setColumnsVisible:er,setColumnsHidden:ei,toggleSort:ea,setSortDirection:eo,setSortField:el,sortField:es,sortDirection:eu,resetDefaultColumnVisibility:ec}=(0,o.oy6)("renterd/v0/hosts",{columns:w,columnsDefaultVisible:u,disabledCategories:Q}),ed=(0,s.useMemo)(()=>w.filter(e=>et.includes(e.id)),[et]),ef="on"===S.status?L.isValidating:Z.isValidating,eh="on"===S.status?L.error:Z.error,ep=(0,o.c2j)(J,ef,eh,y),em=(0,N.B)(),eg=null===(d=S.state.data)||void 0===d?void 0:d.configured,ev=(0,s.useMemo)(()=>({isAutopilotConfigured:eg,siascanUrl:em}),[eg,em]),ey=(0,s.useMemo)(()=>null==J?void 0:J.filter(e=>e.location),[J]);return{setCmd:W,viewMode:h,activeHost:(0,s.useMemo)(()=>null==J?void 0:J.find(e=>e.publicKey===q),[J,q]),onHostMapHover:G,onHostMapClick:Y,setViewMode:p,hostsWithLocation:ey,error:eh,dataState:ep,offset:g,limit:m,pageCount:(null==J?void 0:J.length)||0,columns:ed,dataset:J,tableContext:ev,configurableColumns:ee,enabledColumns:et,toggleColumnVisibility:en,setColumnsVisible:er,setColumnsHidden:ei,toggleSort:ea,setSortDirection:eo,setSortField:el,sortField:es,sortDirection:eu,resetDefaultColumnVisibility:ec,filters:y,setFilter:x,removeFilter:b,removeLastFilter:j,resetFilters:k}}();return(0,a.jsx)(D.Provider,{value:n,children:t})}},10569:function(e,t,n){"use strict";n.d(t,{Kg:function(){return a},jY:function(){return i}});var r=n(44677);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 a(e){return e.activeContractsCount.gt(0)&&!e.usable?{status:"activeAndUnusable",...i.activeAndUnusable}:e.activeContractsCount.gt(0)?{status:"activeAndUsable",...i.activeAndUsable}:{status:"potentialHost",...i.potentialHost}}},71367:function(e,t,n){"use strict";n.d(t,{f:function(){return v},E:function(){return g}});var r=n(52322),i=n(44677),a=n(5632),o=n(2784),l=n(33962),s=n(47211),u=n(55329),c=n(13762),d=n(97112);function f(e){let{s3Key:t,contentProps:n,buttonProps:a}=e,{openConfirmDialog:l}=(0,d.Rh)(),f=(0,u.FD)(),h=(0,u.KJ)(),p=(0,o.useCallback)(async()=>{var e;let n=(0,c.Z)(null===(e=f.data)||void 0===e?void 0:e.v4Keypairs,t),r=await h.put({params:{key:"s3authentication"},payload:{v4Keypairs:n}});r.error?(0,i.OHV)({title:"Error deleting key",body:r.error}):(0,i.OPV)({title:"Key ".concat(t," removed")})},[f.data,t,h]);return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...a,children:(0,r.jsx)(s.EMN,{})}),contentProps:{align:"start",...n,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:["Key ",t.slice(0,24),"..."]})}),(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{l({title:"Delete key ".concat((0,i.$Gg)(t,15)),action:"Remove",variant:"red",body:(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)(i.nvN,{size:"14",children:"Are you sure you would like to remove the following key?"}),(0,r.jsx)(i.nvN,{size:"14",font:"mono",children:(0,i.$Gg)(t,80)})]}),onConfirm:async()=>{p()}})},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.Jrl,{})}),"Delete key"]})]})}let h=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:{key:t}}=e;return(0,r.jsx)(f,{s3Key:t})}},{id:"key",label:"key",category:"general",render:e=>{let{data:{key:t}}=e;return(0,r.jsx)(i.XxW,{size:"12",value:t,label:"key",maxLength:80})}},{id:"secret",label:"secret",contentClassName:"w-[120px]",category:"general",render:e=>{let{data:{secret:t}}=e;return(0,r.jsx)(i.XxW,{size:"12",value:t,label:"key",maxLength:10,font:"mono"})}}];var p=n(9338);let m=(0,o.createContext)({}),g=()=>(0,o.useContext)(m);function v(e){let{children:t}=e,n=function(){let e=(0,a.useRouter)(),t=Number(e.query.limit||50),n=Number(e.query.offset||0),r=(0,u.FD)({config:{swr:{refreshInterval:p.h}}}),s=(0,o.useMemo)(()=>{var e;return r.data?Object.entries((null===(e=r.data)||void 0===e?void 0:e.v4Keypairs)||{}).map(e=>{let[t,n]=e;return{id:t,key:t,secret:n}})||[]:null},[r.data]),{filters:c,setFilter:d,removeFilter:f,removeLastFilter:m,resetFilters:g}=(0,i.Wdu)(),{configurableColumns:v,enabledColumns:y,sortableColumns:x,toggleColumnVisibility:b,setColumnsVisible:w,setColumnsHidden:j,toggleSort:k,setSortDirection:E,setSortField:S,sortField:C,sortDirection:M,resetDefaultColumnVisibility:_}=(0,i.oy6)("renterd/v0/keys",{columns:h,columnsDefaultVisible:l.gd,sortOptions:l.Fo,defaultSortField:l.nw}),O=(0,i._4u)({dataset:s,filters:c,sortField:C,sortDirection:M}),T=(0,o.useMemo)(()=>O?O.slice(n,n+t):null,[O,n,t]),P=(0,o.useMemo)(()=>h.filter(e=>e.fixed||y.includes(e.id)),[y]),A=(0,i.c2j)(O,r.isValidating,r.error,c),N=(0,o.useMemo)(()=>({}),[]);return{dataState:A,limit:t,offset:n,isLoading:r.isLoading,error:r.error,pageCount:(null==T?void 0:T.length)||0,datasetCount:(null==s?void 0:s.length)||0,datasetFilteredCount:(null==O?void 0:O.length)||0,columns:P,dataset:s,cellContext:N,datasetPage:T,configurableColumns:v,enabledColumns:y,sortableColumns:x,toggleColumnVisibility:b,setColumnsVisible:w,setColumnsHidden:j,toggleSort:k,setSortDirection:E,setSortField:S,sortField:C,filters:c,setFilter:d,removeFilter:f,removeLastFilter:m,resetFilters:g,sortDirection:M,resetDefaultColumnVisibility:_}}();return(0,r.jsx)(m.Provider,{value:n,children:t})}},33962:function(e,t,n){"use strict";n.d(t,{Fo:function(){return a},gd:function(){return r},nw:function(){return i}});let r=["key","secret"],i="key",a=[{id:"key",label:"key",category:"general"},{id:"secret",label:"secret",category:"general"}]},40730:function(e,t,n){"use strict";n.d(t,{n:function(){return g},v:function(){return v}});var r=n(52322),i=n(44677),a=n(55329),o=n(2784),l=n(97112),s=n(6391),u=n.n(s),c=n(5632),d=n(45178),f=n(9338),h=n(80373);let p=[],m=(0,o.createContext)({}),g=()=>(0,o.useContext)(m);function v(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,a.Qq)({params:{limit:t,offset:n},config:{swr:{refreshInterval:f.h}}}),s=(0,a.a0)({config:{swr:{refreshInterval:f.h}}}),{openDialog:m}=(0,l.Rh)(),g=(0,d.B)(),v=(0,o.useMemo)(()=>s.data&&r.data?[...(s.data||[]).map(e=>({type:"transaction",txType:(0,h.le)(e),unconfirmed:!0,siascanUrl:g})),...(r.data||[]).map(e=>({type:"transaction",txType:(0,h.le)(e.raw),hash:(0,i.I13)(e.id),timestamp:new Date(e.timestamp).getTime(),onClick:()=>m("transactionDetails",(0,i.I13)(e.id)),raw:e.raw,inflow:e.inflow,outflow:e.outflow,sc:new(u())(e.inflow).minus(e.outflow),siascanUrl:g})).sort((e,t)=>e.timestampnew Date(new Date().getTime()-30*b).toISOString(),[30,b]),j=(0,a.X1)({params:{start:w,interval:b,n:30}}),k=(0,o.useMemo)(()=>(j.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),[j.data]);return{dataset:v,error:y,dataState:x,offset:n,limit:t,pageCount:(null==v?void 0:v.length)||0,balances:k,metrics:j}}();return(0,r.jsx)(m.Provider,{value:n,children:t})}},88778:function(e,t,n){"use strict";n.d(t,{z:function(){return d}});var r=n(52322),i=n(44677),a=n(70899),o=n(26731),l=n(80373),s=n(32998),u=n(47211);function c(e){let{abort:t}=e;return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,r.jsx)(u.bQp,{})}),contentProps:{align:"start"},children:[(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:t,children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(u._fo,{})}),"Cancel upload"]})]})}let d=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-2 [&+*]:!pl-0",render:function(e){let{data:{uploadAbort:t}}=e;return(0,r.jsx)(c,{abort:t})}},{id:"path",label:"path",contentClassName:"max-w-[600px]",category:"general",render:function(e){let{data:{path:t,id:n}}=e,o=(0,a.kj)(t).slice(1);return(0,r.jsxs)("div",{className:"flex flex-col min-w-0",children:[(0,r.jsx)(i.xvT,{ellipsis:!0,weight:"semibold",size:"14",children:o}),(0,r.jsx)(i.XxW,{value:n,label:"upload ID",size:"10"})]})}},{id:"status",label:"status",category:"general",contentClassName:"w-[200px]",render:function(e){let{data:{loaded:t,size:n,uploadStatus:a,remote:l}}=e;return l?(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:"Uploading from a different session"}):(0,r.jsx)(o.s,{loaded:t,size:n,status:a})}},{id:"size",label:"size",category:"general",render:function(e){let{data:{remote:t,size:n}}=e;return t?null:(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:(0,l.vW)(n)})}},{id:"createdAt",label:"started at",category:"general",render:function(e){let{data:{createdAt:t}}=e;return(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:(0,s.Z)(new Date(t).getTime(),new Date)})}}]},73076:function(e,t,n){"use strict";n.d(t,{V:function(){return m},x:function(){return p}});var r=n(52322),i=n(44677),a=n(99605),o=n(55329),l=n(2784);let s=["path","status","size","createdAt"],u=[];var c=n(88778),d=n(70899),f=n(41736);let h=(0,l.createContext)({}),p=()=>(0,l.useContext)(h);function m(e){let{children:t}=e,n=function(){var e,t;let{uploadsMap:n,activeBucket:r}=(0,f.b)(),h=(0,a.lr)(),p=Number(h.get("limit")||50),m=h.get("marker"),{filters:g,setFilter:v,removeFilter:y,removeLastFilter:x,resetFilters:b}=(0,i.Uu5)(),w=(0,o.LS)(),j=(0,o.bg)({disabled:!r,payload:{bucket:null==r?void 0:r.name,uploadIDMarker:m,limit:p}}),k=(0,l.useCallback)(async()=>{var e,t;return Promise.all(null===(t=j.data)||void 0===t?void 0:null===(e=t.uploads)||void 0===e?void 0:e.map(async e=>{let t=n[e.uploadID];if(t){var i;null===(i=t.uploadAbort)||void 0===i||i.call(t)}else await w.post({payload:{bucket:null==r?void 0:r.name,path:e.path,uploadID:e.uploadID}})}))},[j.data,w,r,n]),E=(0,l.useMemo)(()=>{var e,t;return(null===(t=j.data)||void 0===t?void 0:null===(e=t.uploads)||void 0===e?void 0:e.map(e=>{let t=e.uploadID,i=(0,d.vt)(e.path),a=(0,d.v_)(null==r?void 0:r.name,e.path);return n[t]||{id:t,path:a,bucket:r,name:i,size:1,loaded:1,isUploading:!0,uploadStatus:"uploading",createdAt:e.createdAt,remote:!0,type:"file",uploadAbort:async()=>{await w.post({payload:{bucket:null==r?void 0:r.name,path:e.path,uploadID:e.uploadID}})}}}))||[]},[n,r,j.data,w]),{configurableColumns:S,enabledColumns:C,sortableColumns:M,toggleColumnVisibility:_,setColumnsVisible:O,setColumnsHidden:T,toggleSort:P,setSortDirection:A,setSortField:N,sortField:R,sortDirection:D,resetDefaultColumnVisibility:L}=(0,i.oy6)("renterd/v0/uploads",{columns:c.z,columnsDefaultVisible:s,sortOptions:u,defaultSortField:"path"}),Z=(0,l.useMemo)(()=>c.z.filter(e=>e.fixed||C.includes(e.id)),[C]);return{abortAll:k,dataState:(0,i.c2j)(E,j.isValidating,j.error,g),limit:p,nextMarker:null===(e=j.data)||void 0===e?void 0:e.nextUploadIDMarker,hasMore:null===(t=j.data)||void 0===t?void 0:t.hasMore,isLoading:j.isLoading,error:j.error,pageCount:(null==E?void 0:E.length)||0,columns:Z,datasetPage:E,configurableColumns:S,enabledColumns:C,sortableColumns:M,toggleColumnVisibility:_,setColumnsVisible:O,setColumnsHidden:T,toggleSort:P,setSortDirection:A,setSortField:N,sortField:R,filters:g,setFilter:v,removeFilter:y,removeLastFilter:x,resetFilters:b,sortDirection:D,resetDefaultColumnVisibility:L}}();return(0,r.jsx)(h.Provider,{value:n,children:t})}},82229:function(e,t,n){"use strict";n.d(t,{I:function(){return o}});var r=n(44677),i=n(55329),a=n(2784);function o(){let e=(0,i.ni)();return(0,a.useCallback)((t,n)=>(async()=>{let i=await e.put({payload:{add:t,remove:n}});return i.error?((0,r.OHV)({title:"Error updating allowlist",body:i.error}),!1):(t.length&&(0,r.OPV)({title:"Allowlist updated",body:"".concat(t.map(e=>(0,r.$Gg)(e,20)).join(", ")," added to allowlist.")}),n.length&&(0,r.OPV)({title:"Allowlist updated",body:"".concat(n.map(e=>(0,r.$Gg)(e,20)).join(", ")," removed from allowlist.")}),!0)})(),[e])}},94613:function(e,t,n){"use strict";n.d(t,{l:function(){return o}});var r=n(44677),i=n(55329),a=n(2784);function o(){let e=(0,i.Os)();return(0,a.useCallback)((t,n)=>(async()=>{let i=await e.put({payload:{add:t,remove:n}});return i.error?((0,r.OHV)({title:"Error updating blocklist",body:i.error}),!1):(t.length&&(0,r.RFt)({title:"Blocklist updated",body:"".concat(t.map(e=>(0,r.$Gg)(e,20)).join(", ")," added to blocklist.")}),n.length&&(0,r.RFt)({title:"Blocklist updated",body:"".concat(n.map(e=>(0,r.$Gg)(e,20)).join(", ")," removed from blocklist.")}),!0)})(),[e])}},18121:function(e,t,n){"use strict";n.d(t,{B:function(){return o},V:function(){return a}});var r=n(52322),i=n(47211);let a={excellent:1,good:.5,poor:0};function o(e){let{health:t,size:n,isDirectory:o}=e,l="excellent",s="green",u=t,c=(0,r.jsx)(i.Y3p,{});return t1&&(u=1),t<0&&(u=0),{label:l+" health",color:s,icon:c,displayHealth:u}}},45178:function(e,t,n){"use strict";n.d(t,{B:function(){return a}});var r=n(44677),i=n(55329);function a(){var e;return(null===(e=(0,i.d_)().data)||void 0===e?void 0:e.network)==="zen"?r.nNd.explore.testnetZen:r.nNd.explore.mainnet}},38855:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var r=n(44677),i=n(82842),a=n(55329);function o(){var e,t,n,o;let{isUnlockedAndAuthedRoute:l}=(0,i.Hv)(),s=(0,a.DQ)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.synced)?(0,r.XBW)(60):(0,r.XBW)(10)}}}),u=(0,a.nH)(),c=s.data?null===(e=s.data)||void 0===e?void 0:e.blockHeight:0,d=(0,a.X2)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.scanHeight)>=c?(0,r.XBW)(60):(0,r.XBW)(10)}}}),f=l&&c&&u?Number((100*Math.min(c/u,1)).toFixed(1)):0,h=l&&c&&d.data?Number((100*Math.min(d.data.scanHeight/u,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=d.data)||void 0===o?void 0:o.scanHeight)>=c-1,nodeBlockHeight:c,estimatedBlockHeight:u,syncPercent:f,walletScanPercent:h,moreThan100BlocksToSync:!!c&&!!u&&u-c>100,firstTimeSyncing:!!c&&!!u&&u-c>5e4}}},70899:function(e,t,n){"use strict";n.d(t,{W0:function(){return m},YF:function(){return f},ez:function(){return w},ru:function(){return h},gD:function(){return x},vt:function(){return g},kj:function(){return p},rj:function(){return y},IQ:function(){return v},v_:function(){return d},rd:function(){return b}});var r=n(79200),i=n(81441),a=n(81721),o=function(e,t){for(var n=-1,r=e.length;++n-1;);return n},l=n(36202),s=n(25186),u=/^\s+/,c=function(e,t,n){if((e=(0,s.Z)(e))&&(n||void 0===t))return e.replace(u,"");if(!e||!(t=(0,r.Z)(t)))return e;var a=(0,l.Z)(e),c=o(a,(0,l.Z)(t));return(0,i.Z)(a,c).join("")};function d(e,t){let n=e.endsWith("/")?e.slice(0,-1):e,r=t.startsWith("/")?t.slice(1):t;return"".concat(n,"/").concat(r)}function f(e,t){let n=d(e=c(e,"/"),t);return n.endsWith("/")?n:n+"/"}function h(e){return e.split("/")[0]}function p(e){let t=(e=c(e,"/")).split("/").slice(1).join("/");return"/".concat(t)}function m(e){return{bucket:h(e),key:p(e).slice(1).split("/").map(encodeURIComponent).join("/")}}function g(e){let t=(e=c(e,"/")).split("/");return e.endsWith("/")?"".concat(t[t.length-2],"/"):t[t.length-1]}function v(e){return e.endsWith("/")}function y(e){return(v(e=c(e,"/"))?e.slice(0,-1):e).split("/").slice(0,-1).join("/").concat("/")}function x(e){return v(e=c(e,"/"))?e.slice(0,-1).split("/"):e.split("/").slice(0,-1)}function b(e){return e.join("/")}function w(e){return v(e=c(e,"/"))?e:e.concat("/")}},5184:function(e,t,n){"use strict";n.d(t,{E:function(){return a},e:function(){return i}});var r=n(70899);function i(e,t){let n=String(e.active.id),i=(0,r.rd)(t);e.collisions.length&&(i=".."===e.collisions[0].id?(0,r.rd)(t.slice(0,-1)):String(e.collisions[0].id));let a=(0,r.vt)(n);return{bucket:(0,r.ru)(n),from:(0,r.kj)(n),to:(0,r.kj)((0,r.v_)(i,a)),mode:a.endsWith("/")?"multi":"single"}}function a(e,t){let n=(0,r.v_)((0,r.rj)(e),t),i=(0,r.IQ)(e);return i&&(n=(0,r.ez)(n)),{bucket:(0,r.ru)(e),from:(0,r.kj)(e),to:(0,r.kj)(n),mode:i?"multi":"single"}}},83391:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return z}});var r=n(52322);n(50521);var i=n(44677),a=n(2784),o=n(97112),l=n(69960),s=n(56328),u=n(37606),c=n(70771),d=n(47211),f=n(38855),h=n(98334),p=n(42770),m=n(55329),g=n(6391),v=n.n(g),y=n(80373),x=n(82842),b=n(92762);function w(){var e,t;let{isUnlockedAndAuthedRoute:n}=(0,x.Hv)(),a=(0,u.q)(),{openDialog:l}=(0,o.Rh)(),s=(0,m.X2)(),c=(0,m.e$)({config:{swr:{errorRetryInterval:1e4}}}),[g,w]=(0,b.Z)("v0/renterd/onboarding/maximized",{defaultValue:!0}),k=(0,f.n)(),E=(0,p.F)();if(!n||"on"!==a.autopilot.status)return null;let S=new(v())(s.data?s.data.confirmed+s.data.unconfirmed:0),C=new(v())((null===(e=c.data)||void 0===e?void 0:e.contracts.allowance)||0),M=null===(t=a.autopilot.state.data)||void 0===t?void 0:t.configured,_=k.isSynced,O=S.gt(0),T=!E.active,P=[M,_,O,T],A=P.length,N=P.filter(e=>e).length;return A===N?null:g?(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:()=>w(!1),children:(0,r.jsx)(d.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)(j,{title:(0,r.jsx)(i.rUS,{href:h._.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:M?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(d.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.rUS,{href:h._.config.index,children:(0,r.jsx)(d.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(d.Fs9,{})})]})}),(0,r.jsx)(j,{title:(0,r.jsx)(i.rUS,{href:h._.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:_?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(d.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.xvT,{ellipsis:!0,size:"14",children:[k.syncPercent,"%"]}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(d.hzZ,{})})]})}),(0,r.jsx)(j,{title:(0,r.jsx)(i.rUS,{href:h._.wallet.view,onClick:()=>l("addressDetails"),ellipsis:!0,size:"14",underline:"hover",children:"Step 3: Fund your wallet"}),description:"Fund your wallet with at least ".concat((0,y.Vz)(C)," siacoin to cover the required allowance.").concat(k.isWalletSynced?"":" Balance will not be accurate until wallet is finished scanning."),action:O?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(d.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[!k.isWalletSynced&&(0,r.jsx)(i.ua7,{content:"Wallet scanning progress ".concat(k.walletScanPercent,"%"),children:(0,r.jsxs)(i.xvT,{size:"14",children:[k.walletScanPercent,"%"]})}),(0,r.jsx)(i.rUS,{href:h._.wallet.view,onClick:()=>l("addressDetails"),children:(0,r.jsx)(d.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(d.Fs9,{})})]})}),(0,r.jsx)(j,{title:(0,r.jsx)(i.rUS,{href:h._.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)(d.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)(d.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:()=>w(!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,"/",A," steps complete"]})})})}function j(e){let{title:t,action:n,description:a}=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:a})})]})})}var k=n(41736),E=n(26731);function S(e){let{loaded:t,size:n,path:a,abortTip:o,abort:l,status:s}=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:a}),(0,r.jsx)(i.zxk,{tip:o,variant:"ghost",size:"none",onClick:()=>null==l?void 0:l(),children:(0,r.jsx)(d.PcV,{})})]}),(0,r.jsx)(E.s,{loaded:t,size:n,status:s})]})}var C=n(73076);function M(){let{isUnlockedAndAuthedRoute:e}=(0,x.Hv)(),{downloadsList:t,downloadCancel:n,isViewingUploads:o,navigateToUploads:l}=(0,k.b)(),{pageCount:s}=(0,C.x)(),[u,c]=(0,a.useState)(!0),f=!!s,h=t.length,p=!!h;if(!e||!f&&!p)return null;let m=(0,r.jsxs)("div",{className:"flex gap-2",children:[f&&!o?(0,r.jsxs)(i.zxk,{tip:"Uploads list",onClick:l,className:"flex gap-3",children:[(0,r.jsx)(d.R$6,{className:"opacity-50 scale-75 relative top-px"}),"Active uploads"]}):null,p?(0,r.jsxs)(i.zxk,{tip:"Downloads list",onClick:()=>c(e=>!e),className:"flex gap-3",children:[(0,r.jsx)(d.vzB,{className:"opacity-50 scale-75"}),"Active downloads"]}):null]});return p&&u?(0,r.jsxs)("div",{className:"z-30 fixed bottom-5 left-1/2 -translate-x-1/2 flex flex-col items-center justify-center gap-2",children:[(0,r.jsx)(i.s_4,{className:"w-[400px] flex flex-col max-h-[600px]",children:(0,r.jsx)(i.xrM,{children:p?(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,r.jsx)(i.zxk,{variant:"ghost",onClick:()=>c(!1),children:(0,r.jsx)(d.mli,{})})]}),t.map(e=>(0,r.jsx)(S,{path:e.path,loaded:e.loaded,size:e.size,status:e.loaded===e.size?"processing":"downloading",abort:()=>n(e),abortTip:"Cancel download"},e.id))]}):null})}),m]}):(0,r.jsx)("div",{className:"z-30 fixed bottom-5 left-1/2 -translate-x-1/2",children:m})}var _=n(40730),O=n(71367),T=n(43385),P=n(75618),A=n(88385);function N(e){let{children:t}=e;return(0,r.jsx)(u.w,{children:(0,r.jsx)(c.iV,{children:(0,r.jsx)(o.Tu,{children:(0,r.jsx)(_.v,{children:(0,r.jsx)(l.x,{children:(0,r.jsx)(s.x,{children:(0,r.jsx)(k.e,{children:(0,r.jsx)(C.V,{children:(0,r.jsx)(P.V,{children:(0,r.jsx)(T.p,{children:(0,r.jsx)(O.f,{children:(0,r.jsxs)(A.b,{children:[(0,r.jsx)(w,{}),(0,r.jsx)(M,{}),(0,r.jsx)(o.xQ,{}),t]})})})})})})})})})})})})}var R=n(46058),D=n.n(R),L=n(28863),Z=n.n(L);let F=(0,n(82851).cx)(D().variable,Z().variable);function z(e){let{Component:t,pageProps:n}=e;return(0,r.jsx)(i.PD$,{className:F,fallback:n.fallback,passwordProtectRequestHooks:!0,lockRoutes:h._,children:(0,r.jsx)(N,{children:(0,r.jsx)(t,{...n})})})}},44677:function(e,t,n){"use strict";let r,i,a,o;n.d(t,{tU3:function(){return _M},zXq:function(){return _z},juT:function(){return M9},Cts:function(){return sq},Z58:function(){return Os},WVB:function(){return c6},zxk:function(){return sO},b0u:function(){return k1},EKh:function(){return sY},npL:function(){return O2},vRO:function(){return OQ},CN9:function(){return OJ},ckm:function(){return OI},QHy:function(){return OA},TaT:function(){return Ov},eQh:function(){return sG},HfT:function(){return OD},wEc:function(){return Oc},ncR:function(){return S3},VqE:function(){return u_},h_2:function(){return dt},Xiv:function(){return dn},Juw:function(){return dr},KpP:function(){return di},fhJ:function(){return me},XOF:function(){return S4},S$c:function(){return Ca},WyV:function(){return OY},QBj:function(){return O$},yEL:function(){return _L},cB7:function(){return Ce},ZqQ:function(){return S9},IKw:function(){return Co},KZS:function(){return Ct},zsw:function(){return pg},__J:function(){return dg},rUS:function(){return dx},Qjf:function(){return db},xgg:function(){return kQ},TRl:function(){return dj},kFS:function(){return c8},FzK:function(){return OO},Clw:function(){return c5},PD$:function(){return O7},Wxm:function(){return hh},uDJ:function(){return M0},_5:function(){return M2},wFK:function(){return M1},s_4:function(){return nE},M9k:function(){return OT},VXA:function(){return OP},nvN:function(){return nj},u5Q:function(){return Ou},j4H:function(){return hu},hmz:function(){return hc},J2e:function(){return dU},kod:function(){return d3},xrM:function(){return uS},PhF:function(){return hf},Z0O:function(){return c0},DLL:function(){return _9},KJW:function(){return _n},rsf:function(){return hO},D_D:function(){return _Q},iA_:function(){return MQ},mQc:function(){return fA},nUL:function(){return fD},drW:function(){return fN},SPt:function(){return fR},t6k:function(){return OL},xvT:function(){return nw},nvn:function(){return fZ},ru1:function(){return OZ},ua7:function(){return sM},mPE:function(){return _0},XxW:function(){return SD},PF9:function(){return SZ},m2c:function(){return SH},YKL:function(){return Sz},ho9:function(){return SI},QUh:function(){return Ot},weF:function(){return _Y},YNn:function(){return _4},DmW:function(){return _3},O9T:function(){return ve},fVJ:function(){return Oa},vQq:function(){return SO},E5z:function(){return SP},HLH:function(){return Tp},NrH:function(){return kV},k9c:function(){return kq},fsB:function(){return OV},JMs:function(){return OB},Y_Z:function(){return On},EJC:function(){return Tf},kOJ:function(){return Oi},XAn:function(){return k$},Vkc:function(){return c2},sWj:function(){return kz},ort:function(){return kK},xLV:function(){return kI},okB:function(){return kW},AEA:function(){return kU},S5N:function(){return T9},qPQ:function(){return Pe},z$:function(){return nk},XBW:function(){return kX},GXN:function(){return kY},I13:function(){return SN},cEb:function(){return fL},MzJ:function(){return hn},$Gr:function(){return ht},OHV:function(){return SC},OPV:function(){return SS},RFt:function(){return SE},$Gg:function(){return SA},_4u:function(){return Ts},Wdu:function(){return Tl},Y97:function(){return _C},c2j:function(){return __},t0Y:function(){return _X},mYE:function(){return O3},u$d:function(){return O5},Z4p:function(){return O4},WsO:function(){return _R},Uu5:function(){return Tu},fb0:function(){return Td},oy6:function(){return Ta},nNd:function(){return _5},BL0:function(){return kB},ivg:function(){return kH}});var l,s,u,c,d,f,h,p,m,g,v,y,x,b,w,j,k,E,S,C,M,_,O,T,P,A,N,R,D,L,Z,F,z,V,B,I,H,U,W,q,$,K,Y,X,G,J,Q,ee,et,en,er,ei,ea=n(52322),eo=n(2784),el=n.t(eo,2),es=n(7896),eu=n(34540),ec=n(26215),ed=n(99575);function ef(e){let t=e+"CollectionProvider",[n,r]=(0,eu.b)(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e+"CollectionSlot",l=eo.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=a(o,n),l=(0,ec.e)(t,i.collectionRef);return eo.createElement(ed.g7,{ref:l},r)}),s=e+"CollectionItemSlot",u="data-radix-collection-item";return[{Provider:e=>{let{scope:t,children:n}=e,r=eo.useRef(null),a=eo.useRef(new Map).current;return eo.createElement(i,{scope:t,itemMap:a,collectionRef:r},n)},Slot:l,ItemSlot:eo.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=eo.useRef(null),l=(0,ec.e)(t,o),c=a(s,n);return eo.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),eo.createElement(ed.g7,{[u]:"",ref:l},r)})},function(t){let n=a(e+"CollectionConsumer",t);return eo.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}var eh=n(41816),ep=n(73597),em=n(72130),eg=n(64680),ev=n(28245),ey=n(26074);let ex="Collapsible",[eb,ew]=(0,eu.b)(ex),[ej,ek]=eb(ex),eE=((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...l}=e,[s=!1,u]=(0,ep.T)({prop:r,defaultProp:i,onChange:o});return(0,eo.createElement)(ej,{scope:n,disabled:a,contentId:(0,ey.M)(),open:s,onOpenToggle:(0,eo.useCallback)(()=>u(e=>!e),[u])},(0,eo.createElement)(em.WV.div,(0,es.Z)({"data-state":eC(s),"data-disabled":a?"":void 0},l,{ref:t})))},"CollapsibleContent"),eS=((e,t)=>{let{forceMount:n,...r}=e,i=ek(eE,e.__scopeCollapsible);return(0,eo.createElement)(ev.z,{present:n||i.open},({present:e})=>(0,eo.createElement)(eS,(0,es.Z)({},r,{ref:t,present:e})))},(0,eo.forwardRef)((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...a}=e,o=ek(eE,n),[l,s]=(0,eo.useState)(r),u=(0,eo.useRef)(null),c=(0,ec.e)(t,u),d=(0,eo.useRef)(0),f=d.current,h=(0,eo.useRef)(0),p=h.current,m=o.open||l,g=(0,eo.useRef)(m),v=(0,eo.useRef)();return(0,eo.useEffect)(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,eg.b)(()=>{let e=u.current;if(e){v.current=v.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,g.current||(e.style.transitionDuration=v.current.transitionDuration,e.style.animationDuration=v.current.animationDuration,e.style.animationFillMode=v.current.animationFillMode),s(r)}},[o.open,r]),(0,eo.createElement)(em.WV.div,(0,es.Z)({"data-state":eC(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!m},a,{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 eC(e){return e?"open":"closed"}let eM="Accordion",e_=["Home","End","ArrowDown","ArrowUp"],[eO,eT,eP]=ef(eM),[eA,eN]=(0,eu.b)(eM,[eP,ew]);ew(),eo.forwardRef((e,t)=>{let{type:n,...r}=e;return eo.createElement(eO.Provider,{scope:e.__scopeAccordion},"multiple"===n?eo.createElement(ez,(0,es.Z)({},r,{ref:t})):eo.createElement(eF,(0,es.Z)({},r,{ref:t})))}).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[eR,eD]=eA(eM),[eL,eZ]=eA(eM,{collapsible:!1}),eF=eo.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:a=!1,...o}=e,[l,s]=(0,ep.T)({prop:n,defaultProp:r,onChange:i});return eo.createElement(eR,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:s,onItemClose:eo.useCallback(()=>a&&s(""),[a,s])},eo.createElement(eL,{scope:e.__scopeAccordion,collapsible:a},eo.createElement(eI,(0,es.Z)({},o,{ref:t}))))}),ez=eo.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o=[],l]=(0,ep.T)({prop:n,defaultProp:r,onChange:i}),s=eo.useCallback(e=>l((t=[])=>[...t,e]),[l]),u=eo.useCallback(e=>l((t=[])=>t.filter(t=>t!==e)),[l]);return eo.createElement(eR,{scope:e.__scopeAccordion,value:o,onItemOpen:s,onItemClose:u},eo.createElement(eL,{scope:e.__scopeAccordion,collapsible:!0},eo.createElement(eI,(0,es.Z)({},a,{ref:t}))))}),[eV,eB]=eA(eM),eI=eo.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:r,...i}=e,a=eo.useRef(null),o=(0,ec.e)(a,t),l=eT(n),s=(0,eh.M)(e.onKeyDown,e=>{var t;if(!e_.includes(e.key))return;let n=e.target,r=l().filter(e=>{var t;return!(null!==(t=e.ref.current)&&void 0!==t&&t.disabled)}),i=r.findIndex(e=>e.ref.current===n),a=r.length;if(-1===i)return;e.preventDefault();let o=i;switch(e.key){case"Home":o=0;break;case"End":o=a-1;break;case"ArrowDown":o=i+1;break;case"ArrowUp":(o=i-1)<0&&(o=a-1)}null===(t=r[o%a].ref.current)||void 0===t||t.focus()});return eo.createElement(eV,{scope:n,disabled:r},eo.createElement(eO.Slot,{scope:n},eo.createElement(em.WV.div,(0,es.Z)({},i,{ref:o,onKeyDown:r?void 0:s}))))}),[eH,eU]=eA("AccordionItem");var eW=n(82851),eq=n(83317);function e$(e){return e.split("-")[0]}function eK(e){return e.split("-")[1]}function eY(e){return["top","bottom"].includes(e$(e))?"x":"y"}function eX(e){return"y"===e?"height":"width"}function eG(e,t,n){let r,{reference:i,floating:a}=e,o=i.x+i.width/2-a.width/2,l=i.y+i.height/2-a.height/2,s=eY(t),u=eX(s),c=i[u]/2-a[u]/2,d="x"===s;switch(e$(t)){case"top":r={x:o,y:i.y-a.height};break;case"bottom":r={x:o,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:l};break;case"left":r={x:i.x-a.width,y:l};break;default:r={x:i.x,y:i.y}}switch(eK(t)){case"start":r[s]-=c*(n&&d?-1:1);break;case"end":r[s]+=c*(n&&d?-1:1)}return r}let eJ=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,l=await (null==o.isRTL?void 0:o.isRTL(t)),s=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=eG(s,r,l),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:a,placement:o,rects:l,platform:s}=t;if(null==n)return{};let u=eQ(r),c={x:i,y:a},d=eY(o),f=eK(o),h=eX(d),p=await s.getDimensions(n),m="y"===d?"top":"left",g="y"===d?"bottom":"right",v=l.reference[h]+l.reference[d]-c[d]-l.floating[h],y=c[d]-l.reference[d],x=await (null==s.getOffsetParent?void 0:s.getOffsetParent(n)),b=x?"y"===d?x.clientHeight||0:x.clientWidth||0:0;0===b&&(b=l.floating[h]);let w=u[m],j=b-p[h]-u[g],k=b/2-p[h]/2+(v/2-y/2),E=e4(w,e2(k,j)),S=("start"===f?u[m]:u[g])>0&&k!==E&&l.reference[h]<=l.floating[h];return{[d]:c[d]-(S?ke5[e])}let e8={start:"end",end:"start"};function e7(e){return e.replace(/start|end/g,e=>e8[e])}let e9=["top","right","bottom","left"];e9.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);let te=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,a;let{placement:o,middlewareData:l,rects:s,initialPlacement:u,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",flipAlignment:g=!0,...v}=e,y=e$(o),x=p||(y!==u&&g?function(e){let t=e6(e);return[e7(e),t,e7(t)]}(u):[e6(u)]),b=[u,...x],w=await e1(t,v),j=[],k=(null==(n=l.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=eK(e),i=eY(e),a=eX(i),o="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=e6(o)),{main:o,cross:e6(o)}}(o,s,await (null==c.isRTL?void 0:c.isRTL(d.floating)));j.push(w[e],w[t])}if(k=[...k,{placement:o,overflows:j}],!j.every(e=>e<=0)){let e=(null!=(r=null==(i=l.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==(a=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:a[0].placement;e&&(n=e);break}case"initialPlacement":n=u}if(o!==n)return{reset:{placement:n}}}return{}}}};function tt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function tn(e){return e9.some(t=>e[t]>=0)}let tr=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=tt(await e1(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:tn(t)}}}case"escaped":{let t=tt(await e1(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:tn(t)}}}default:return{}}}}},ti=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,a=await (null==r.isRTL?void 0:r.isRTL(i.floating)),o=e$(n),l=eK(n),s="x"===eY(n),u=["left","top"].includes(o)?-1:1,c=a&&s?-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 l&&"number"==typeof p&&(h="end"===l?-1*p:p),s?{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 ta(e){return"x"===e?"y":"x"}let to=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=e,u={x:n,y:r},c=await e1(t,s),d=eY(e$(i)),f=ta(d),h=u[d],p=u[f];if(a){let e="y"===d?"bottom":"right";h=e4(h+c["y"===d?"top":"left"],e2(h,h-c[e]))}if(o){let e="y"===f?"bottom":"right";p=e4(p+c["y"===f?"top":"left"],e2(p,p-c[e]))}let m=l.fn({...t,[d]:h,[f]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}},tl=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:l=0,mainAxis:s=!0,crossAxis:u=!0}=e,c={x:n,y:r},d=eY(i),f=ta(d),h=c[d],p=c[f],m="function"==typeof l?l({...a,placement:i}):l,g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){let e="y"===d?"height":"width",t=a.reference[d]-a.floating[e]+g.mainAxis,n=a.reference[d]+a.reference[e]-g.mainAxis;hn&&(h=n)}if(u){var v,y,x,b;let e="y"===d?"width":"height",t=["top","left"].includes(e$(i)),n=a.reference[f]-a.floating[e]+(t&&null!=(v=null==(y=o.offset)?void 0:y[f])?v:0)+(t?0:g.crossAxis),r=a.reference[f]+a.reference[e]+(t?0:null!=(x=null==(b=o.offset)?void 0:b[f])?x:0)-(t?g.crossAxis:0);pr&&(p=r)}return{[d]:h,[f]:p}}}};function ts(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function tu(e){if(null==e)return window;if(!ts(e)){let t=e.ownerDocument;return t&&t.defaultView||window}return e}function tc(e){return tu(e).getComputedStyle(e)}function td(e){return ts(e)?"":e?(e.nodeName||"").toLowerCase():""}function tf(){let e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function th(e){return e instanceof tu(e).HTMLElement}function tp(e){return e instanceof tu(e).Element}function tm(e){return"undefined"!=typeof ShadowRoot&&(e instanceof tu(e).ShadowRoot||e instanceof ShadowRoot)}function tg(e){let{overflow:t,overflowX:n,overflowY:r}=tc(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function tv(e){let t=/firefox/i.test(tf()),n=tc(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 ty(){return!/^((?!chrome|android).)*safari/i.test(tf())}let tx=Math.min,tb=Math.max,tw=Math.round;function tj(e,t,n){var r,i,a,o;void 0===t&&(t=!1),void 0===n&&(n=!1);let l=e.getBoundingClientRect(),s=1,u=1;t&&th(e)&&(s=e.offsetWidth>0&&tw(l.width)/e.offsetWidth||1,u=e.offsetHeight>0&&tw(l.height)/e.offsetHeight||1);let c=tp(e)?tu(e):window,d=!ty()&&n,f=(l.left+(d&&null!=(r=null==(i=c.visualViewport)?void 0:i.offsetLeft)?r:0))/s,h=(l.top+(d&&null!=(a=null==(o=c.visualViewport)?void 0:o.offsetTop)?a:0))/u,p=l.width/s,m=l.height/u;return{width:p,height:m,top:h,right:f+p,bottom:h+m,left:f,x:f,y:h}}function tk(e){return((e instanceof tu(e).Node?e.ownerDocument:e.document)||window.document).documentElement}function tE(e){return tp(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function tS(e){return tj(tk(e)).left+tE(e).scrollLeft}function tC(e){return"html"===td(e)?e:e.assignedSlot||e.parentNode||(tm(e)?e.host:null)||tk(e)}function tM(e){return th(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function t_(e){let t=tu(e),n=tM(e);for(;n&&["table","td","th"].includes(td(n))&&"static"===getComputedStyle(n).position;)n=tM(n);return n&&("html"===td(n)||"body"===td(n)&&"static"===getComputedStyle(n).position&&!tv(n))?t:n||function(e){let t=tC(e);for(tm(t)&&(t=t.host);th(t)&&!["html","body"].includes(td(t));){if(tv(t))return t;t=t.parentNode}return null}(e)||t}function tO(e){if(th(e))return{width:e.offsetWidth,height:e.offsetHeight};let t=tj(e);return{width:t.width,height:t.height}}function tT(e,t){var n;void 0===t&&(t=[]);let r=function e(t){let n=tC(t);return["html","body","#document"].includes(td(n))?t.ownerDocument.body:th(n)&&tg(n)?n:e(n)}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),a=tu(r),o=i?[a].concat(a.visualViewport||[],tg(r)?r:[]):r,l=t.concat(o);return i?l:l.concat(tT(o))}function tP(e,t,n){return"viewport"===t?e0(function(e,t){let n=tu(e),r=tk(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,l=0,s=0;if(i){a=i.width,o=i.height;let e=ty();(e||!e&&"fixed"===t)&&(l=i.offsetLeft,s=i.offsetTop)}return{width:a,height:o,x:l,y:s}}(e,n)):tp(t)?function(e,t){let n=tj(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):e0(function(e){var t;let n=tk(e),r=tE(e),i=null==(t=e.ownerDocument)?void 0:t.body,a=tb(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=tb(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+tS(e),s=-r.scrollTop;return"rtl"===tc(i||n).direction&&(l+=tb(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:l,y:s}}(tk(e)))}let tA={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[..."clippingAncestors"===n?function(e){let t=tT(e),n=["absolute","fixed"].includes(tc(e).position)&&th(e)?t_(e):e;return tp(n)?t.filter(e=>tp(e)&&function(e,t){let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&tm(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==td(e)):[]}(t):[].concat(n),r],o=a[0],l=a.reduce((e,n)=>{let r=tP(t,n,i);return e.top=tb(r.top,e.top),e.right=tx(r.right,e.right),e.bottom=tx(r.bottom,e.bottom),e.left=tb(r.left,e.left),e},tP(t,o,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=th(n),a=tk(n);if(n===a)return t;let o={scrollLeft:0,scrollTop:0},l={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==td(n)||tg(a))&&(o=tE(n)),th(n))){let e=tj(n,!0);l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{...t,x:t.x-o.scrollLeft+l.x,y:t.y-o.scrollTop+l.y}},isElement:tp,getDimensions:tO,getOffsetParent:t_,getDocumentElement:tk,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:function(e,t,n){let r=th(t),i=tk(t),a=tj(e,r&&function(e){let t=tj(e);return tw(t.width)!==e.offsetWidth||tw(t.height)!==e.offsetHeight}(t),"fixed"===n),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};if(r||!r&&"fixed"!==n){if(("body"!==td(t)||tg(i))&&(o=tE(t)),th(t)){let e=tj(t,!0);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=tS(i))}return{x:a.left+o.scrollLeft-l.x,y:a.top+o.scrollTop-l.y,width:a.width,height:a.height}}(t,t_(n),r),floating:{...tO(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===tc(e).direction};function tN(e,t,n,r){void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=!0,animationFrame:l=!1}=r,s=i&&!l,u=a&&!l,c=s||u?[...tp(e)?tT(e):[],...tT(t)]:[];c.forEach(e=>{s&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let d,f=null;if(o){let r=!0;f=new ResizeObserver(()=>{r||n(),r=!1}),tp(e)&&!l&&f.observe(e),f.observe(t)}let h=l?tj(e):null;return l&&function t(){let r=tj(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=>{s&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(d)}}let tR=(e,t,n)=>eJ(e,t,{platform:tA,...n});var tD=n(28316),tL="undefined"!=typeof document?eo.useLayoutEffect:eo.useEffect;function tZ(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:i}=void 0===e?{}:e,a=eo.useRef(null),o=eo.useRef(null),l=function(e){let t=eo.useRef(e);return tL(()=>{t.current=e}),t}(i),s=eo.useRef(null),[u,c]=eo.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=eo.useState(t);!function e(t,n){let r,i,a;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=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;0!=i--;){let r=a[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=eo.useCallback(()=>{a.current&&o.current&&tR(a.current,o.current,{middleware:d,placement:n,strategy:r}).then(e=>{p.current&&tD.flushSync(()=>{c(e)})})},[d,n,r]);tL(()=>{p.current&&h()},[h]);let p=eo.useRef(!1);tL(()=>(p.current=!0,()=>{p.current=!1}),[]);let m=eo.useCallback(()=>{if("function"==typeof s.current&&(s.current(),s.current=null),a.current&&o.current){if(l.current){let e=l.current(a.current,o.current,h);s.current=e}else h()}},[h,l]),g=eo.useCallback(e=>{a.current=e,m()},[m]),v=eo.useCallback(e=>{o.current=e,m()},[m]),y=eo.useMemo(()=>({reference:a,floating:o}),[]);return eo.useMemo(()=>({...u,update:h,refs:y,reference:g,floating:v}),[u,h,y,g,v])}let tF=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 e3({element:t.current,padding:n}).fn(e)}else if(t)return e3({element:t,padding:n}).fn(e);return{}}}},tz=(0,eo.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,eo.createElement)(em.WV.svg,(0,es.Z)({},a,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,eo.createElement)("polygon",{points:"0,0 30,0 15,10"}))});function tV(e){let[t,n]=(0,eo.useState)(void 0);return(0,eg.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 a=t[0];if("borderBoxSize"in a){let e=a.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 tB="Popper",[tI,tH]=(0,eu.b)(tB),[tU,tW]=tI(tB),tq=(0,eo.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=tW("PopperAnchor",n),o=(0,eo.useRef)(null),l=(0,ec.e)(t,o);return(0,eo.useEffect)(()=>{a.onAnchorChange((null==r?void 0:r.current)||o.current)}),r?null:(0,eo.createElement)(em.WV.div,(0,es.Z)({},i,{ref:l}))}),t$="PopperContent",[tK,tY]=tI(t$),[tX,tG]=tI(t$,{hasParent:!1,positionUpdateFns:new Set}),tJ=(0,eo.forwardRef)((e,t)=>{var n,r,i,a,o,l,s,u;let{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:h="center",alignOffset:p=0,arrowPadding:m=0,collisionBoundary:g=[],collisionPadding:v=0,sticky:y="partial",hideWhenDetached:x=!1,avoidCollisions:b=!0,...w}=e,j=tW(t$,c),[k,E]=(0,eo.useState)(null),S=(0,ec.e)(t,e=>E(e)),[C,M]=(0,eo.useState)(null),_=tV(C),O=null!==(n=null==_?void 0:_.width)&&void 0!==n?n:0,T=null!==(r=null==_?void 0:_.height)&&void 0!==r?r:0,P="number"==typeof v?v:{top:0,right:0,bottom:0,left:0,...v},A=Array.isArray(g)?g:[g],N=A.length>0,R={padding:P,boundary:A.filter(t2),altBoundary:N},{reference:D,floating:L,strategy:Z,x:F,y:z,placement:V,middlewareData:B,update:I}=tZ({strategy:"fixed",placement:d+("center"!==h?"-"+h:""),whileElementsMounted:tN,middleware:[ti({mainAxis:f+T,alignmentAxis:p}),b?to({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?tl():void 0,...R}):void 0,C?tF({element:C,padding:m}):void 0,b?te({...R}):void 0,t4({arrowWidth:O,arrowHeight:T}),x?tr({strategy:"referenceHidden"}):void 0].filter(t1)});(0,eg.b)(()=>{D(j.anchor)},[D,j.anchor]);let H=null!==F&&null!==z,[U,W]=t3(V),q=null===(i=B.arrow)||void 0===i?void 0:i.x,$=null===(a=B.arrow)||void 0===a?void 0:a.y,K=(null===(o=B.arrow)||void 0===o?void 0:o.centerOffset)!==0,[Y,X]=(0,eo.useState)();(0,eg.b)(()=>{k&&X(window.getComputedStyle(k).zIndex)},[k]);let{hasParent:G,positionUpdateFns:J}=tG(t$,c),Q=!G;(0,eo.useLayoutEffect)(()=>{if(!Q)return J.add(I),()=>{J.delete(I)}},[Q,J,I]),(0,eo.useLayoutEffect)(()=>{Q&&H&&Array.from(J).reverse().forEach(e=>requestAnimationFrame(e))},[Q,H,J]);let ee={"data-side":U,"data-align":W,...w,ref:S,style:{...w.style,animation:H?void 0:"none",opacity:null!==(l=B.hide)&&void 0!==l&&l.referenceHidden?0:void 0}};return(0,eo.createElement)("div",{ref:L,"data-radix-popper-content-wrapper":"",style:{position:Z,left:0,top:0,transform:H?`translate3d(${Math.round(F)}px, ${Math.round(z)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[null===(s=B.transformOrigin)||void 0===s?void 0:s.x,null===(u=B.transformOrigin)||void 0===u?void 0:u.y].join(" ")}},(0,eo.createElement)(tK,{scope:c,placedSide:U,onArrowChange:M,arrowX:q,arrowY:$,shouldHideArrow:K},Q?(0,eo.createElement)(tX,{scope:c,hasParent:!0,positionUpdateFns:J},(0,eo.createElement)(em.WV.div,ee)):(0,eo.createElement)(em.WV.div,ee)))}),tQ={top:"bottom",right:"left",bottom:"top",left:"right"},t0=(0,eo.forwardRef)(function(e,t){let{__scopePopper:n,...r}=e,i=tY("PopperArrow",n),a=tQ[i.placedSide];return(0,eo.createElement)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]: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,eo.createElement)(tz,(0,es.Z)({},r,{ref:t,style:{...r.style,display:"block"}})))});function t1(e){return void 0!==e}function t2(e){return null!==e}let t4=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,a,o;let{placement:l,rects:s,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]=t3(l),m={start:"0%",center:"50%",end:"100%"}[p],g=(null!==(r=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+d/2,v=(null!==(a=null===(o=u.arrow)||void 0===o?void 0:o.y)&&void 0!==a?a:0)+f/2,y="",x="";return"bottom"===h?(y=c?m:`${g}px`,x=`${-f}px`):"top"===h?(y=c?m:`${g}px`,x=`${s.floating.height+f}px`):"right"===h?(y=`${-f}px`,x=c?m:`${v}px`):"left"===h&&(y=`${s.floating.width+f}px`,x=c?m:`${v}px`),{data:{x:y,y:x}}}});function t3(e){let[t,n="center"]=e.split("-");return[t,n]}let t5=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,eo.useState)(null);return(0,eo.createElement)(tU,{scope:t,anchor:r,onAnchorChange:i},n)};var t6=n(6500);let t8=(0,eo.forwardRef)((e,t)=>(0,eo.createElement)(em.WV.span,(0,es.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}}))),[t7,t9]=(0,eu.b)("Tooltip",[tH]),ne=tH(),nt="tooltip.open",[nn,nr]=t7("TooltipProvider"),ni="Tooltip",[na,no]=t7(ni),nl="TooltipTrigger",ns=(0,eo.forwardRef)((e,t)=>{let{__scopeTooltip:n,...r}=e,i=no(nl,n),a=nr(nl,n),o=ne(n),l=(0,eo.useRef)(null),s=(0,ec.e)(t,l,i.onTriggerChange),u=(0,eo.useRef)(!1),c=(0,eo.useRef)(!1),d=(0,eo.useCallback)(()=>u.current=!1,[]);return(0,eo.useEffect)(()=>()=>document.removeEventListener("pointerup",d),[d]),(0,eo.createElement)(tq,(0,es.Z)({asChild:!0},o),(0,eo.createElement)(em.WV.button,(0,es.Z)({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},r,{ref:s,onPointerMove:(0,eh.M)(e.onPointerMove,e=>{"touch"===e.pointerType||c.current||a.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:(0,eh.M)(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:(0,eh.M)(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:(0,eh.M)(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:(0,eh.M)(e.onBlur,i.onClose),onClick:(0,eh.M)(e.onClick,e=>{0===e.detail&&i.onClose()})})))}),nu="TooltipPortal",[nc,nd]=t7(nu,{forceMount:void 0}),nf="TooltipContent",nh=(0,eo.forwardRef)((e,t)=>{let n=nd(nf,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...a}=e,o=no(nf,e.__scopeTooltip);return(0,eo.createElement)(ev.z,{present:r||o.open},o.disableHoverableContent?(0,eo.createElement)(nv,(0,es.Z)({side:i},a,{ref:t})):(0,eo.createElement)(np,(0,es.Z)({side:i},a,{ref:t})))}),np=(0,eo.forwardRef)((e,t)=>{let n=no(nf,e.__scopeTooltip),r=nr(nf,e.__scopeTooltip),i=(0,eo.useRef)(null),a=(0,ec.e)(t,i),[o,l]=(0,eo.useState)(null),{trigger:s,onClose:u}=n,c=i.current,{onPointerInTransitChange:d}=r,f=(0,eo.useCallback)(()=>{l(null),d(!1)},[d]),h=(0,eo.useCallback)((e,t)=>{let n=e.currentTarget,r=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),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:return null}}({x:e.clientX,y:e.clientY},n.getBoundingClientRect()),i="right"===r||"bottom"===r?-5:5;l(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)}(["right"===r||"left"===r?{x:e.clientX+i,y:e.clientY}:{x:e.clientX,y:e.clientY+i},...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())])),d(!0)},[d]);return(0,eo.useEffect)(()=>()=>f(),[f]),(0,eo.useEffect)(()=>{if(s&&c){let e=e=>h(e,c),t=e=>h(e,s);return s.addEventListener("pointerleave",e),c.addEventListener("pointerleave",t),()=>{s.removeEventListener("pointerleave",e),c.removeEventListener("pointerleave",t)}}},[s,c,h,f]),(0,eo.useEffect)(()=>{if(o){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==s?void 0:s.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,a=t.length-1;er!=u>r&&n<(s-o)*(r-l)/(u-l)+o&&(i=!i)}return i}(n,o);r?f():i&&(f(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[s,c,o,u,f]),(0,eo.createElement)(nv,(0,es.Z)({},e,{ref:a}))}),[nm,ng]=t7(ni,{isInside:!1}),nv=(0,eo.forwardRef)((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...l}=e,s=no(nf,n),u=ne(n),{onClose:c}=s;return(0,eo.useEffect)(()=>(document.addEventListener(nt,c),()=>document.removeEventListener(nt,c)),[c]),(0,eo.useEffect)(()=>{if(s.trigger){let e=e=>{let t=e.target;null!=t&&t.contains(s.trigger)&&c()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[s.trigger,c]),(0,eo.createElement)(eq.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:c},(0,eo.createElement)(tJ,(0,es.Z)({"data-state":s.stateAttribute},u,l,{ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),(0,eo.createElement)(ed.A4,null,r),(0,eo.createElement)(nm,{scope:n,isInside:!0},(0,eo.createElement)(t8,{id:s.contentId,role:"tooltip"},i||r))))}),ny=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:o,delayDuration:l}=e,s=nr(ni,e.__scopeTooltip),u=ne(t),[c,d]=(0,eo.useState)(null),f=(0,ey.M)(),h=(0,eo.useRef)(0),p=null!=o?o:s.disableHoverableContent,m=null!=l?l:s.delayDuration,g=(0,eo.useRef)(!1),[v=!1,y]=(0,ep.T)({prop:r,defaultProp:i,onChange:e=>{e?(s.onOpen(),document.dispatchEvent(new CustomEvent(nt))):s.onClose(),null==a||a(e)}}),x=(0,eo.useMemo)(()=>v?g.current?"delayed-open":"instant-open":"closed",[v]),b=(0,eo.useCallback)(()=>{window.clearTimeout(h.current),g.current=!1,y(!0)},[y]),w=(0,eo.useCallback)(()=>{window.clearTimeout(h.current),y(!1)},[y]),j=(0,eo.useCallback)(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{g.current=!0,y(!0)},m)},[m,y]);return(0,eo.useEffect)(()=>()=>window.clearTimeout(h.current),[]),(0,eo.createElement)(t5,u,(0,eo.createElement)(na,{scope:t,contentId:f,open:v,stateAttribute:x,trigger:c,onTriggerChange:d,onTriggerEnter:(0,eo.useCallback)(()=>{s.isOpenDelayed?j():b()},[s.isOpenDelayed,j,b]),onTriggerLeave:(0,eo.useCallback)(()=>{p?w():window.clearTimeout(h.current)},[w,p]),onOpen:b,onClose:w,disableHoverableContent:p},n))},nx=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=no(nu,t);return(0,eo.createElement)(nc,{scope:t,forceMount:n},(0,eo.createElement)(ev.z,{present:n||a.open},(0,eo.createElement)(t6.h,{asChild:!0,container:i},r)))},nb=(0,eW.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"}}),nw=eo.forwardRef((e,t)=>{let{tag:n="span",className:r,font:i,color:a,weight:o,size:l,scaleSize:s,noWrap:u,underline:c,ellipsis:d,wrapEllipsis:f,...h}=e;return(0,ea.jsx)(n,{ref:t,className:(0,eW.cx)(r,nb({font:i,color:a,weight:o,size:l,scaleSize:s,underline:c,noWrap:u,ellipsis:d,wrapEllipsis:f})),...h})}),nj=eo.forwardRef((e,t)=>{let{size:n="18",...r}=e;return(0,ea.jsx)(nw,{tag:"p",...r,ref:t,weight:"regular",scaleSize:n,color:"subtle",className:(0,eW.cx)("leading-relaxed md:leading-relaxed",e.className)})}),nk=(0,eW.j)(["transition-shadow ease-in-out duration-300","shadow-sm hover:shadow","rounded","border"],{variants:{color:{default:["bg-white dark:bg-graydark-200","border-gray-400 dark:border-graydark-400"],subtle:["border-gray-200 dark:border-graydark-200"]}},defaultVariants:{color:"default"}}),nE=eo.forwardRef((e,t)=>{let{className:n,color:r,...i}=e;return(0,ea.jsx)("div",{ref:t,className:nk({className:n,color:r}),...i})});var nS=n(93542);let nC=(void 0===nS||nS.env,"production"),nM=1/60*1e3,n_="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),nO="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(n_()),nM),nT=!0,nP=!1,nA=!1,nN={delta:0,timestamp:0},nR=["read","update","preRender","render","postRender"],nD=nR.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,a=!1,o=new WeakSet,l={schedule:(e,a=!1,l=!1)=>{let s=l&&i,u=s?t:n;return a&&o.add(e),-1===u.indexOf(e)&&(u.push(e),s&&i&&(r=t.length)),e},cancel:e=>{let t=n.indexOf(e);-1!==t&&n.splice(t,1),o.delete(e)},process:s=>{if(i){a=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length)for(let n=0;nnP=!0),e),{}),nL=nR.reduce((e,t)=>{let n=nD[t];return e[t]=(e,t=!1,r=!1)=>(nP||nB(),n.schedule(e,t,r)),e},{}),nZ=nR.reduce((e,t)=>(e[t]=nD[t].cancel,e),{}),nF=nR.reduce((e,t)=>(e[t]=()=>nD[t].process(nN),e),{}),nz=e=>nD[e].process(nN),nV=e=>{nP=!1,nN.delta=nT?nM:Math.max(Math.min(e-nN.timestamp,40),1),nN.timestamp=e,nA=!0,nR.forEach(nz),nA=!1,nP&&(nT=!1,nO(nV))},nB=()=>{nP=!0,nT=!0,nA||nO(nV)},nI=()=>nN,nH="undefined"!=typeof document,nU=nH?eo.useLayoutEffect:eo.useEffect;function nW(){let e=(0,eo.useRef)(!1);return nU(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let nq=(0,eo.createContext)(null);function n$(e){let t=(0,eo.useRef)(null);return null===t.current&&(t.current=e()),t.current}class nK extends eo.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 nY({children:e,isPresent:t}){let n=(0,eo.useId)(),r=(0,eo.useRef)(null),i=(0,eo.useRef)({width:0,height:0,top:0,left:0});return(0,eo.useInsertionEffect)(()=>{let{width:e,height:a,top:o,left:l}=i.current;if(t||!r.current||!e||!a)return;r.current.dataset.motionPopId=n;let s=document.createElement("style");return document.head.appendChild(s),s.sheet&&s.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${e}px !important; @@ -22,16 +22,16 @@ top: ${o}px !important; left: ${l}px !important; } - `),()=>{document.head.removeChild(s)}},[t]),eo.createElement(nK,{isPresent:t,childRef:r,sizeRef:i},eo.cloneElement(e,{ref:r}))}let nX=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o})=>{let l=n$(nG),s=(0,eo.useId)(),u=(0,eo.useMemo)(()=>({id:s,initial:t,isPresent:n,custom:i,onExitComplete:e=>{for(let t of(l.set(e,!0),l.values()))if(!t)return;r&&r()},register:e=>(l.set(e,!1),()=>l.delete(e))}),a?void 0:[n]);return(0,eo.useMemo)(()=>{l.forEach((e,t)=>l.set(t,!1))},[n]),eo.useEffect(()=>{n||l.size||!r||r()},[n]),"popLayout"===o&&(e=eo.createElement(nY,{isPresent:n},e)),eo.createElement(nq.Provider,{value:u},e)};function nG(){return new Map}let nJ=(0,eo.createContext)({});function nQ(e){return(0,eo.useEffect)(()=>()=>e(),[])}let n0=new Set;function n1(e,t,n){e||n0.has(t)||(console.warn(t),n&&console.warn(n),n0.add(t))}let n2=e=>e.key||"",n4=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:o="sync"})=>{i&&(o="wait",n1(!1,"Replace exitBeforeEnter with mode='wait'"));let[l]=function(){let e=nW(),[t,n]=(0,eo.useState)(0),r=(0,eo.useCallback)(()=>{e.current&&n(t+1)},[t]);return[(0,eo.useCallback)(()=>nL.postRender(r),[r]),t]}(),s=(0,eo.useContext)(nJ).forceRender;s&&(l=s);let u=nW(),c=function(e){let t=[];return eo.Children.forEach(e,e=>{(0,eo.isValidElement)(e)&&t.push(e)}),t}(e),d=c,f=new Set,h=(0,eo.useRef)(d),p=(0,eo.useRef)(new Map).current,m=(0,eo.useRef)(!0);if(nU(()=>{m.current=!1,function(e,t){e.forEach(e=>{let n=n2(e);t.set(n,e)})}(c,p),h.current=d}),nQ(()=>{m.current=!0,p.clear(),f.clear()}),m.current)return eo.createElement(eo.Fragment,null,d.map(e=>eo.createElement(nX,{key:n2(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:a,mode:o},e)));d=[...d];let g=h.current.map(n2),v=c.map(n2),y=g.length;for(let e=0;e{if(-1!==v.indexOf(e))return;let n=p.get(e);if(!n)return;let i=g.indexOf(e);d.splice(i,0,eo.createElement(nX,{key:n2(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;l(),r&&r()}},custom:t,presenceAffectsLayout:a,mode:o},n))}),d=d.map(e=>{let t=e.key;return f.has(t)?e:eo.createElement(nX,{key:n2(e),isPresent:!0,presenceAffectsLayout:a,mode:o},e)}),"production"!==nC&&"wait"===o&&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.'),eo.createElement(eo.Fragment,null,f.size?d:d.map(e=>(0,eo.cloneElement)(e)))},n3=(0,eo.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),n5=(0,eo.createContext)({}),n6=(0,eo.createContext)({strict:!1});function n8(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function n7(e){return"string"==typeof e||Array.isArray(e)}function n9(e){return"object"==typeof e&&"function"==typeof e.start}let re=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function rt(e){return n9(e.animate)||re.some(t=>n7(e[t]))}function rn(e){return!!(rt(e)||e.variants)}function rr(e){return Array.isArray(e)?e.join(" "):e}let ri=e=>({isEnabled:t=>e.some(e=>!!t[e])}),ra={measureLayout:ri(["layout","layoutId","drag"]),animation:ri(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:ri(["exit"]),drag:ri(["drag","dragControls"]),focus:ri(["whileFocus"]),hover:ri(["whileHover","onHoverStart","onHoverEnd"]),tap:ri(["whileTap","onTap","onTapStart","onTapCancel"]),pan:ri(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:ri(["whileInView","onViewportEnter","onViewportLeave"])},ro={hasAnimatedSinceResize:!0,hasEverUpdated:!1},rl=1;class rs extends eo.Component{getSnapshotBeforeUpdate(){let{visualElement:e,props:t}=this.props;return e&&e.setProps(t),null}componentDidUpdate(){}render(){return this.props.children}}let ru=(0,eo.createContext)({}),rc=Symbol.for("motionComponentSymbol"),rd=["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 rf(e){if("string"!=typeof e||e.includes("-"));else if(rd.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let rh={},rp=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],rm=new Set(rp);function rg(e,{layout:t,layoutId:n}){return rm.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!rh[e]||"opacity"===e)}let rv=e=>!!(null==e?void 0:e.getVelocity),ry={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rx=(e,t)=>rp.indexOf(e)-rp.indexOf(t);function rb(e){return e.startsWith("--")}let rw=(e,t)=>t&&"number"==typeof e?t.transform(e):e,rj=(e,t)=>n=>Math.max(Math.min(n,t),e),rk=e=>e%1?Number(e.toFixed(5)):e,rE=/(-)?([\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,rC=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function rM(e){return"string"==typeof e}let rP=e=>({test:t=>rM(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),r_=rP("deg"),rO=rP("%"),rT=rP("px"),rA=rP("vh"),rN=rP("vw"),rR=Object.assign(Object.assign({},rO),{parse:e=>rO.parse(e)/100,transform:e=>rO.transform(100*e)}),rD={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},rL=Object.assign(Object.assign({},rD),{transform:rj(0,1)}),rZ=Object.assign(Object.assign({},rD),{default:1}),rF={...rD,transform:Math.round},rz={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:r_,rotateX:r_,rotateY:r_,rotateZ:r_,scale:rZ,scaleX:rZ,scaleY:rZ,scaleZ:rZ,skew:r_,skewX:r_,skewY:r_,distance:rT,translateX:rT,translateY:rT,translateZ:rT,x:rT,y:rT,z:rT,perspective:rT,transformPerspective:rT,opacity:rL,originX:rR,originY:rR,originZ:rT,zIndex:rF,fillOpacity:rL,strokeOpacity:rL,numOctaves:rF};function rV(e,t,n,r){let{style:i,vars:a,transform:o,transformKeys:l,transformOrigin:s}=e;l.length=0;let u=!1,c=!1,d=!0;for(let e in t){let n=t[e];if(rb(e)){a[e]=n;continue}let r=rz[e],f=rw(n,r);if(rm.has(e)){if(u=!0,o[e]=f,l.push(e),!d)continue;n!==(r.default||0)&&(d=!1)}else e.startsWith("origin")?(c=!0,s[e]=f):i[e]=f}if(!t.transform&&(u||r?i.transform=function({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},i,a){let o="";for(let n of(t.sort(rx),t))o+=`${ry[n]||n}(${e[n]}) `;return n&&!e.z&&(o+="translateZ(0)"),o=o.trim(),a?o=a(e,i?"":o):r&&i&&(o="none"),o}(e,n,d,r):i.transform&&(i.transform="none")),c){let{originX:e="50%",originY:t="50%",originZ:n=0}=s;i.transformOrigin=`${e} ${t} ${n}`}}let rB=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function rI(e,t,n){for(let r in t)rv(t[r])||rg(r,n)||(e[r]=t[r])}let rH=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 rU(e){return rH.has(e)}let rW=e=>!rU(e);try{(l=require("@emotion/is-prop-valid").default)&&(rW=e=>e.startsWith("on")?!rU(e):l(e))}catch(e){}function rq(e,t,n){return"string"==typeof e?e:rT.transform(t+n*e)}let r$={offset:"stroke-dashoffset",array:"stroke-dasharray"},rK={offset:"strokeDashoffset",array:"strokeDasharray"};function rY(e,{attrX:t,attrY:n,originX:r,originY:i,pathLength:a,pathSpacing:o=1,pathOffset:l=0,...s},u,c){rV(e,s,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=rq(t,e.x,e.width),i=rq(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!==a&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?r$:rK;e[a.offset]=rT.transform(-r);let o=rT.transform(t),l=rT.transform(n);e[a.array]=`${o} ${l}`}(d,a,o,l,!1)}let rX=()=>({...rB(),attrs:{}}),rG=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function rJ(e,{style:t,vars:n},r,i){for(let a in Object.assign(e.style,t,i&&i.getProjectionStyles(r)),n)e.style.setProperty(a,n[a])}let rQ=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function r0(e,t,n,r){for(let n in rJ(e,t,void 0,r),t.attrs)e.setAttribute(rQ.has(n)?n:rG(n),t.attrs[n])}function r1(e){let{style:t}=e,n={};for(let r in t)(rv(t[r])||rg(r,e))&&(n[r]=t[r]);return n}function r2(e){let t=r1(e);for(let n in e)rv(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function r4(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 r3=e=>Array.isArray(e),r5=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),r6=e=>r3(e)?e[e.length-1]||0:e;function r8(e){let t=rv(e)?e.get():e;return r5(t)?t.toValue():t}let r7=e=>(t,n)=>{let r=(0,eo.useContext)(n5),i=(0,eo.useContext)(nq),a=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,a){let o={latestValues:function(e,t,n,r){let i={},a=r(e);for(let e in a)i[e]=r8(a[e]);let{initial:o,animate:l}=e,s=rt(e),u=rn(e);t&&u&&!s&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===l&&(l=t.animate));let c=!!n&&!1===n.initial,d=(c=c||!1===o)?l:o;return d&&"boolean"!=typeof d&&!n9(d)&&(Array.isArray(d)?d:[d]).forEach(t=>{let n=r4(e,t);if(!n)return;let{transitionEnd:r,transition:a,...o}=n;for(let e in o){let t=o[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]}),i}(r,i,a,e),renderState:t()};return n&&(o.mount=e=>n(r,e,o)),o})(e,t,r,i);return n?a():n$(a)},r9={useVisualState:r7({scrapeMotionValuesFromProps:r2,createRenderState:rX,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}}rY(n,r,{enableHardwareAcceleration:!1},e.transformTemplate),r0(t,n)}})},ie={useVisualState:r7({scrapeMotionValuesFromProps:r1,createRenderState:rB})};function it(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ir(e,t,n,r){(0,eo.useEffect)(()=>{let i=e.current;if(n&&i)return it(i,t,n,r)},[e,t,n,r])}function ii(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}(s=Z||(Z={})).Animate="animate",s.Hover="whileHover",s.Tap="whileTap",s.Drag="whileDrag",s.Focus="whileFocus",s.InView="whileInView",s.Exit="exit";let ia={pageX:0,pageY:0};function io(e,t="page"){return{point:e.touches?function(e,t="page"){let n=e.touches[0]||e.changedTouches[0]||ia;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 il=(e,t=!1)=>{let n=t=>e(t,io(t));return t?e=>{let t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}:n},is=()=>nH&&null===window.onpointerdown,iu=()=>nH&&null===window.ontouchstart,ic=()=>nH&&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(is());else if(iu())return ih[e];else if(ic())return id[e];return e}function im(e,t,n,r){return it(e,ip(t),il(n,"pointerdown"===t),r)}function ig(e,t,n,r){return ir(e,ip(t),n&&il(n,"pointerdown"===t),r)}function iv(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let iy=iv("dragHorizontal"),ix=iv("dragVertical");function ib(e){let t=!1;if("y"===e)t=ix();else if("x"===e)t=iy();else{let e=iy(),n=ix();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function iw(){let e=ib(!0);return!e||(e(),!1)}function ij(e,t,n){return(r,i)=>{!(!ii(r)||iw())&&(e.animationState&&e.animationState.setActive(Z.Hover,t),n&&n(r,i))}}let ik=(e,t)=>!!t&&(e===t||ik(e,t.parentElement)),iE=(e,t)=>n=>t(e(n)),iS=(...e)=>e.reduce(iE),iC=new WeakMap,iM=new WeakMap,iP=e=>{let t=iC.get(e.target);t&&t(e)},i_=e=>{e.forEach(iP)},iO={some:0,all:1},iT=e=>t=>(e(t),null),iA={inView:iT(function({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:i={}}){let a=(0,eo.useRef)({hasEnteredView:!1,isInView:!1}),o=!!(t||n||r);i.once&&a.current.hasEnteredView&&(o=!1),("undefined"==typeof IntersectionObserver?function(e,t,n,{fallback:r=!0}){(0,eo.useEffect)(()=>{e&&r&&("production"!==nC&&n1(!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(Z.InView,!0)}))},[e])}:function(e,t,n,{root:r,margin:i,amount:a="some",once:o}){(0,eo.useEffect)(()=>{if(!e||!n.current)return;let l={root:null==r?void 0:r.current,rootMargin:i,threshold:"number"==typeof a?a:iO[a]};return function(e,t,n){let r=function({root:e,...t}){let n=e||document;iM.has(n)||iM.set(n,{});let r=iM.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(i_,{root:e,...t})),r[i]}(t);return iC.set(e,n),r.observe(e),()=>{iC.delete(e),r.unobserve(e)}}(n.current,l,e=>{let{isIntersecting:r}=e;if(t.isInView===r||(t.isInView=r,o&&!r&&t.hasEnteredView))return;r&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(Z.InView,r);let i=n.getProps(),a=r?i.onViewportEnter:i.onViewportLeave;a&&a(e)})},[e,r,i,a])})(o,a.current,e,i)}),tap:iT(function({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:i}){let a=e||t||n||r,o=(0,eo.useRef)(!1),l=(0,eo.useRef)(null),s={passive:!(t||e||n||h)};function u(){l.current&&l.current(),l.current=null}function c(){return u(),o.current=!1,i.animationState&&i.animationState.setActive(Z.Tap,!1),!iw()}function d(t,r){c()&&(ik(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(),!o.current&&(o.current=!0,l.current=iS(im(window,"pointerup",d,s),im(window,"pointercancel",f,s)),i.animationState&&i.animationState.setActive(Z.Tap,!0),t&&t(e,n))}ig(i,"pointerdown",a?h:void 0,s),nQ(u)}),focus:iT(function({whileFocus:e,visualElement:t}){let{animationState:n}=t;ir(t,"focus",e?()=>{n&&n.setActive(Z.Focus,!0)}:void 0),ir(t,"blur",e?()=>{n&&n.setActive(Z.Focus,!1)}:void 0)}),hover:iT(function({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){ig(r,"pointerenter",e||n?ij(r,!0,e):void 0,{passive:!e}),ig(r,"pointerleave",t||n?ij(r,!1,t):void 0,{passive:!t})})};function iN(){let e=(0,eo.useContext)(nq);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:r}=e,i=(0,eo.useId)();return(0,eo.useEffect)(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function iR(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 iL=function(){},iZ=function(){};let iF=(e,t,n)=>Math.min(Math.max(n,e),t);function iz(e,t){return e*Math.sqrt(1-t*t)}let iV=["duration","bounce"],iB=["stiffness","damping","mass"];function iI(e,t){return t.some(t=>void 0!==e[t])}function iH(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,a=iD(e,["from","to","restSpeed","restDelta"]);let o={done:!1,value:t},{stiffness:l,damping:s,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(!iI(e,iB)&&iI(e,iV)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,a;iL(e<=1e4,"Spring duration must be 10 seconds or less");let o=1-t;o=iF(.05,1,o),e=iF(.01,10,e/1e3),o<1?(i=t=>{let r=t*o,i=r*e;return .001-(r-n)/iz(t,o)*Math.exp(-i)},a=t=>{let r=t*o*e,a=Math.pow(o,2)*Math.pow(t,2)*e,l=Math.exp(-r),s=iz(Math.pow(t,2),o);return(r*n+n-a)*l*(-i(t)+.001>0?-1:1)/s}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>e*e*(n-t)*Math.exp(-t*e));let l=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,a,5/e);if(e*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(l,2)*r;return{stiffness:t,damping:2*o*Math.sqrt(r*t),duration:e}}}(e);(t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(a),h=iU,p=iU;function m(){let e=c?-(c/1e3):0,r=n-t,a=s/(2*Math.sqrt(l*u)),o=Math.sqrt(l/u)/1e3;if(void 0===i&&(i=Math.min(Math.abs(n-t)/100,.4)),a<1){let t=iz(o,a);h=i=>n-Math.exp(-a*o*i)*((e+a*o*r)/t*Math.sin(t*i)+r*Math.cos(t*i)),p=n=>{let i=Math.exp(-a*o*n);return a*o*i*(Math.sin(t*n)*(e+a*o*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+a*o*r)-t*r*Math.sin(t*n))}}else if(1===a)h=t=>n-Math.exp(-o*t)*(r+(e+o*r)*t);else{let t=o*Math.sqrt(a*a-1);h=i=>{let l=Math.exp(-a*o*i),s=Math.min(t*i,300);return n-l*((e+a*o*r)*Math.sinh(s)+t*r*Math.cosh(s))/t}}}return m(),{next:e=>{let t=h(e);if(f)o.done=e>=d;else{let a=1e3*p(e),l=Math.abs(n-t)<=i;o.done=Math.abs(a)<=r&&l}return o.value=o.done?n:t,o},flipTarget:()=>{c=-c,[t,n]=[n,t],m()}}}iH.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let iU=e=>0,iW=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r},iq=(e,t,n)=>-n*e+n*t+e,i$=(e,t)=>n=>!!(rM(n)&&rC.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),iK=(e,t,n)=>r=>{if(!rM(r))return r;let[i,a,o,l]=r.match(rE);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:void 0!==l?parseFloat(l):1}},iY=rj(0,255),iX=Object.assign(Object.assign({},rD),{transform:e=>Math.round(iY(e))}),iG={test:i$("rgb","red"),parse:iK("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+iX.transform(e)+", "+iX.transform(t)+", "+iX.transform(n)+", "+rk(rL.transform(r))+")"},iJ={test:i$("#"),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},iQ={test:i$("hsl","hue"),parse:iK("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+rO.transform(rk(t))+", "+rO.transform(rk(n))+", "+rk(rL.transform(r))+")"};function i0(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 i1({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,a=0,o=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,l=2*n-r;i=i0(l,r,e+1/3),a=i0(l,r,e),o=i0(l,r,e-1/3)}else i=a=o=n;return{red:Math.round(255*i),green:Math.round(255*a),blue:Math.round(255*o),alpha:r}}let i2=(e,t,n)=>{let r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},i4=[iJ,iG,iQ],i3=e=>i4.find(t=>t.test(e)),i5=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,i6=(e,t)=>{let n=i3(e),r=i3(t);iZ(!!n,i5(e)),iZ(!!r,i5(t));let i=n.parse(e),a=r.parse(t);n===iQ&&(i=i1(i),n=iG),r===iQ&&(a=i1(a),r=iG);let o=Object.assign({},i);return e=>{for(let t in o)"alpha"!==t&&(o[t]=i2(i[t],a[t],e));return o.alpha=iq(i.alpha,a.alpha,e),n.transform(o)}},i8={test:e=>iG.test(e)||iJ.test(e)||iQ.test(e),parse:e=>iG.test(e)?iG.parse(e):iQ.test(e)?iQ.parse(e):iJ.parse(e),transform:e=>rM(e)?e:e.hasOwnProperty("red")?iG.transform(e):iQ.transform(e)},i7="${c}",i9="${n}";function ae(e){"number"==typeof e&&(e=`${e}`);let t=[],n=0,r=e.match(rS);r&&(n=r.length,e=e.replace(rS,i7),t.push(...r.map(i8.parse)));let i=e.match(rE);return i&&(e=e.replace(rE,i9),t.push(...i.map(rD.parse))),{values:t,numColors:n,tokenised:e}}function at(e){return ae(e).values}function an(e){let{values:t,numColors:n,tokenised:r}=ae(e),i=t.length;return e=>{let t=r;for(let r=0;r"number"==typeof e?0:e,ai={test:function(e){var t,n,r,i;return isNaN(e)&&rM(e)&&(null!==(n=null===(t=e.match(rE))||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:at,createTransformer:an,getAnimatableNone:function(e){let t=at(e);return an(e)(t.map(ar))}},aa=e=>"number"==typeof e;function ao(e,t){return aa(e)?n=>iq(e,t,n):i8.test(e)?i6(e,t):ac(e,t)}let al=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>ao(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]=ao(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}};function au(e){let t=ai.parse(e),n=t.length,r=0,i=0,a=0;for(let e=0;e{let n=ai.createTransformer(t),r=au(e),i=au(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?iS(al(r.parsed,i.parsed),n):(iL(!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}`)},ad=(e,t)=>n=>iq(e,t,n);function af(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;iZ(a===t.length,"Both input and output ranges must be the same length"),iZ(!r||!Array.isArray(r)||r.length===a-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[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let o=function(e,t,n){var r;let i=[],a=n||("number"==typeof(r=e[0])?ad:"string"==typeof r?i8.test(r)?i6:ac:Array.isArray(r)?al:"object"==typeof r?as:void 0),o=e.length-1;for(let n=0;nn(iW(e,t,r))}(e,o):function(e,t){let n=e.length,r=n-1;return i=>{let a=0,o=!1;if(i<=e[0]?o=!0:i>=e[r]&&(a=r-1,o=!0),!o){let t=1;for(;ti)&&t!==r;t++);a=t-1}let l=iW(e[a],e[a+1],i);return t[a](l)}}(e,o);return n?t=>l(iF(e[0],e[a-1],t)):l}let ah=e=>t=>1-e(1-t),ap=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,am=e=>t=>t*t*((e+1)*t-e),ag=4/11,av=8/11,ay=e=>e,ax=e=>Math.pow(e,2),ab=ah(ax),aw=ap(ax),aj=e=>1-Math.sin(Math.acos(e)),ak=ah(aj),aE=ap(ak),aS=am(1.525),aC=ah(aS),aM=ap(aS),aP=(e=>{let t=am(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(0),a_=4356/361,aO=35442/1805,aT=16061/1805,aA=e=>{if(1===e||0===e)return e;let t=e*e;return e0!==n?n/(t-1):0)}(o)).map(e=>e*i);function s(){return af(l,o,{ease:Array.isArray(n)?n:o.map(()=>n||aw).splice(0,o.length-1)})}let u=s();return{next:e=>(a.value=u(e),a.done=e>=i,a),flipTarget:()=>{o.reverse(),u=s()}}}let aD={keyframes:aR,spring:iH,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:a}){let o={done:!1,value:t},l=n*e,s=t+l,u=void 0===a?s:a(s);return u!==s&&(l=u-t),{next:e=>{let t=-l*Math.exp(-e/r);return o.done=!(t>i||t<-i),o.value=o.done?u:u+t,o},flipTarget:()=>{}}}};function aL(e,t,n=0){return e-t-n}let aZ=e=>{let t=({delta:t})=>e(t);return{start:()=>nL.update(t,!0),stop:()=>nZ.update(t)}};function aF(e){let t,n,r;var i,{from:a,autoplay:o=!0,driver:l=aZ,elapsed:s=0,repeat:u=0,repeatType:c="loop",repeatDelay:d=0,onPlay:f,onStop:h,onComplete:p,onRepeat:m,onUpdate:g}=e,v=iD(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:y}=v,x=0,b=v.duration,w=!1,j=!0,k=function(e){if(Array.isArray(e.to))return aR;if(aD[e.type])return aD[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 iH;return aR}(v);(null===(i=k.needsInterpolation)||void 0===i?void 0:i.call(k,a,y))&&(r=af([0,100],[a,y],{clamp:!1}),a=0,y=100);let E=k(Object.assign(Object.assign({},v),{from:a,to:y}));return o&&(null==f||f(),(t=l(function(e){if(j||(e=-e),s+=e,!w){let e=E.next(Math.max(0,s));n=e.value,r&&(n=r(n)),w=j?e.done:s<=0}if(null==g||g(n),w){if(0===x&&(null!=b||(b=s)),x=a+d:i<=-d)&&(x++,"reverse"===c?s=function(e,t,n=0,r=!0){return r?aL(t+-e,t,n):t-(e-t)+n}(s,b,d,j=x%2==0):(s=aL(s,b,d),"mirror"===c&&E.flipTarget()),w=!1,m&&m())}else t.stop(),p&&p()}})).start()),{stop:()=>{null==h||h(),t.stop()}}}let az=e=>1e3*e,aV=(e,t)=>1-3*t+3*e,aB=(e,t)=>3*t-6*e,aI=e=>3*e,aH=(e,t,n)=>((aV(t,n)*e+aB(t,n))*e+aI(t))*e,aU=(e,t,n)=>3*aV(t,n)*e*e+2*aB(t,n)*e+aI(t),aW={linear:ay,easeIn:ax,easeInOut:aw,easeOut:ab,circIn:aj,circInOut:aE,circOut:ak,backIn:aS,backInOut:aM,backOut:aC,anticipate:aP,bounceIn:aN,bounceInOut:e=>e<.5?.5*(1-aA(1-2*e)):.5*aA(2*e-1)+.5,bounceOut:aA},aq=e=>{if(Array.isArray(e)){iZ(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 ay;let i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=aH(.1*t,e,n);return a=>0===a||1===a?a:aH(function(t){let r=0,a=1;for(;10!==a&&i[a]<=t;++a)r+=.1;let o=r+(t-i[--a])/(i[a+1]-i[a])*.1,l=aU(o,e,n);return l>=.001?function(e,t,n,r){for(let i=0;i<8;++i){let i=aU(t,n,r);if(0===i)break;let a=aH(t,n,r)-e;t-=a/i}return t}(t,o,e,n):0===l?o:function(e,t,n,r,i){let a,o;let l=0;do(a=aH(o=t+(n-t)/2,r,i)-e)>0?n=o:t=o;while(Math.abs(a)>1e-7&&++l<10);return o}(t,r,r+.1,e,n)}(a),t,r)}(t,n,r,i)}return"string"==typeof e?(iZ(void 0!==aW[e],`Invalid easing type '${e}'`),aW[e]):e},a$=e=>Array.isArray(e)&&"number"!=typeof e[0],aK=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&ai.test(t)&&!t.startsWith("url(")),aY=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),aX=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),aG=()=>({type:"keyframes",ease:"linear",duration:.3}),aJ=e=>({type:"keyframes",duration:.8,values:e}),aQ={x:aY,y:aY,z:aY,rotate:aY,rotateX:aY,rotateY:aY,rotateZ:aY,scaleX:aX,scaleY:aX,scale:aX,opacity:aG,backgroundColor:aG,color:aG,default:aX},a0=(e,t)=>{let n;return n=r3(t)?aJ:aQ[e]||aQ.default,{to:t,...n(t)}},a1=new Set(["brightness","contrast","saturate","opacity"]);function a2(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(rE)||[];if(!r)return e;let i=n.replace(r,""),a=a1.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}let a4=/([a-z-]*)\(.*?\)/g,a3=Object.assign(Object.assign({},ai),{getAnimatableNone:e=>{let t=e.match(a4);return t?t.map(a2).join(" "):e}}),a5={...rz,color:i8,backgroundColor:i8,outlineColor:i8,fill:i8,stroke:i8,borderColor:i8,borderTopColor:i8,borderRightColor:i8,borderBottomColor:i8,borderLeftColor:i8,filter:a3,WebkitFilter:a3},a6=e=>a5[e];function a8(e,t){var n;let r=a6(e);return r!==a3&&(r=ai),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}let a7={current:!1};function a9(e,t){let n=performance.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(nZ.read(r),e(a-t))};return nL.read(r,!0),()=>nZ.read(r)}let oe=!1;function ot(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function on(e){return"number"==typeof e?0:a8("",e)}function or(e,t){return e[t]||e.default||e}function oi(e,t,n,r={}){return a7.current&&(r={type:!1}),t.start(i=>{var a,o,l;let s,u;let c=function(e,t,n,r,i){let a=or(r,e)||{},o=void 0!==a.from?a.from:t.get(),l=aK(e,n);"none"===o&&l&&"string"==typeof n?o=a8(e,n):ot(o)&&"string"==typeof n?o=on(n):!Array.isArray(n)&&ot(n)&&"string"==typeof o&&(n=on(o));let s=aK(e,o);return iL(s===l,`You are trying to animate ${e} from "${o}" to "${n}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${n} via the \`style\` property.`),s&&l&&!1!==a.type?function(){var r;let l={from:o,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:e=>t.set(e)};return"inertia"===a.type||"decay"===a.type?function({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:a=750,bounceStiffness:o=500,bounceDamping:l=10,restDelta:s=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:f,onStop:h}){let p;function m(e){return void 0!==n&&er}function g(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){v(Object.assign({type:"spring",stiffness:o,damping:l,restDelta:s},e))}if(m(e))y({from:e,velocity:t,to:g(e)});else{let r,o,l=i*t+e;void 0!==u&&(l=u(l));let c=g(l),d=c===n?-1:1;v({type:"decay",from:e,velocity:t,timeConstant:a,power:i,restDelta:s,modifyTarget:u,onUpdate:m(l)?e=>{var n,i;r=o,o=e,n=e-r,t=(i=nI().delta)?1e3/i*n:0,(1===d&&e>c||-1===d&&enull==p?void 0:p.stop()}}({...l,...a}):aF({...(r=a,Array.isArray(l.to)&&void 0===r.duration&&(r.duration=.8),Array.isArray(l.to)&&null===l.to[0]&&(l.to=[...l.to],l.to[0]=l.from),!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:l,from:s,...u}){return!!Object.keys(u).length}(r)&&(r={...r,...a0(e,l.to)}),{...l,...function({ease:e,times:t,yoyo:n,flip:r,loop:i,...a}){let o={...a};return t&&(o.offset=t),a.duration&&(o.duration=az(a.duration)),a.repeatDelay&&(o.repeatDelay=az(a.repeatDelay)),e&&(o.ease=a$(e)?e.map(aq):aq(e)),"tween"===a.type&&(o.type="keyframes"),(n||i||r)&&(iL(!oe,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),oe=!0,n?o.repeatType="reverse":i?o.repeatType="loop":r&&(o.repeatType="mirror"),o.repeat=i||n||r||a.repeat),"spring"!==a.type&&(o.type="keyframes"),o}(r)}),onUpdate:e=>{l.onUpdate(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{l.onComplete(),a.onComplete&&a.onComplete()}})}:function(){let e=r6(n);return t.set(e),i(),a.onUpdate&&a.onUpdate(e),a.onComplete&&a.onComplete(),{stop:()=>{}}}}(e,t,n,r,i),d=null!==(l=null!==(o=(or(a=r,e)||{}).delay)&&void 0!==o?o:a.delay)&&void 0!==l?l:0,f=()=>s=c();return d?u=a9(f,az(d)):f(),()=>{u&&u(),s&&s.stop()}})}let oa=e=>/^\-?\d*\.?\d+$/.test(e),oo=e=>/^0[^.\s]+$/.test(e);function ol(e,t){-1===e.indexOf(t)&&e.push(t)}function os(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class ou{constructor(){this.subscriptions=[]}add(e){return ol(this.subscriptions,e),()=>os(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 od{constructor(e){this.version="7.6.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new ou,this.velocityUpdateSubscribers=new ou,this.renderSubscribers=new ou,this.canTrackVelocity=!1,this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:n,timestamp:r}=nI();this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,nL.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=()=>nL.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=oc(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)?1e3/t*e: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 of(e){return new od(e)}let oh=e=>t=>t.test(e),op=[rD,rT,rO,r_,rN,rA,{test:e=>"auto"===e,parse:e=>e}],om=e=>op.find(oh(e)),og=[...op,i8,ai],ov=e=>og.find(oh(e));function oy(e,t,n){let r=e.getProps();return r4(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 ox(e){return!!(rv(e)&&e.add)}function ob(e,t,n={}){var r;let i=oy(e,t,n.custom),{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);let o=i?()=>ow(e,i,n):()=>Promise.resolve(),l=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?(r=0)=>{let{delayChildren:i=0,staggerChildren:o,staggerDirection:l}=a;return function(e,t,n=0,r=0,i=1,a){let o=[],l=(e.variantChildren.size-1)*r,s=1===i?(e=0)=>e*r:(e=0)=>l-e*r;return Array.from(e.variantChildren).sort(oj).forEach((e,r)=>{o.push(ob(e,t,{...a,delay:n+s(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(o)}(e,t,i+r,o,l,n)}:()=>Promise.resolve(),{when:s}=a;if(!s)return Promise.all([o(),l(n.delay)]);{let[e,t]="beforeChildren"===s?[o,l]:[l,o];return e().then(t)}}function ow(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var a;let{transition:o=e.getDefaultTransition(),transitionEnd:l,...s}=e.makeTargetAnimatable(t),u=e.getValue("willChange");r&&(o=r);let c=[],d=i&&(null===(a=e.animationState)||void 0===a?void 0:a.getState()[i]);for(let t in s){let r=e.getValue(t),i=s[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 a={delay:n,...o};e.shouldReduceMotion&&rm.has(t)&&(a={...a,type:!1,delay:0});let l=oi(t,r,i,a);ox(u)&&(u.add(t),l=l.then(()=>u.remove(t))),c.push(l)}return Promise.all(c).then(()=>{l&&function(e,t){let n=oy(e,t),{transitionEnd:r={},transition:i={},...a}=n?e.makeTargetAnimatable(n,!1):{};for(let t in a={...a,...r}){let n=r6(a[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,of(n))}}(e,l)})}function oj(e,t){return e.sortNodePosition(t)}let ok=[Z.Animate,Z.InView,Z.Focus,Z.Hover,Z.Tap,Z.Drag,Z.Exit],oE=[...ok].reverse(),oS=ok.length;function oC(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let oM={animation:iT(({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))r=Promise.all(t.map(t=>ob(e,t,n)));else if("string"==typeof t)r=ob(e,t,n);else{let i="function"==typeof t?oy(e,t,n.custom):t;r=ow(e,i,n)}return r.then(()=>e.notify("AnimationComplete",t))})(e,t,n))),n={[Z.Animate]:oC(!0),[Z.InView]:oC(),[Z.Hover]:oC(),[Z.Tap]:oC(),[Z.Drag]:oC(),[Z.Focus]:oC(),[Z.Exit]:oC()},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 a(a,o){var l,s;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(v)?v:[v],E=k.reduce(i,{});!1===x&&(E={});let{prevResolvedValues:S={}}=g,C={...S,...E},M=e=>{j=!0,f.delete(e),g.needsAnimating[e]=!0};for(let e in C){let t=E[e],n=S[e];h.hasOwnProperty(e)||(t!==n?r3(t)&&r3(n)?!iR(t,n)||w?M(e):g.protectedKeys[e]=!0:void 0!==t?M(e):f.add(e):void 0!==t&&f.has(e)?M(e):g.protectedKeys[e]=!0)}g.prevProp=v,g.prevResolvedValues=E,g.isActive&&(h={...h,...E}),r&&e.blockInitialAnimation&&(j=!1),j&&!b&&d.push(...k.map(e=>({animation:e,options:{type:m,...a}})))}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:a,setActive:function(t,r,i){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;let l=a(i,t);for(let e in n)n[e].protectedKeys={};return l},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}(e)),n9(t)&&(0,eo.useEffect)(()=>t.subscribe(e),[t])}),exit:iT(e=>{let{custom:t,visualElement:n}=e,[r,i]=iN(),a=(0,eo.useContext)(nq);(0,eo.useEffect)(()=>{n.isPresent=r;let e=n.animationState&&n.animationState.setActive(Z.Exit,!r,{custom:a&&a.custom||t});e&&!r&&e.then(i)},[r])})},oP=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),o_=e=>oP(e)&&e.hasOwnProperty("z"),oO=(e,t)=>Math.abs(e-t);function oT(e,t){return aa(e)&&aa(t)?oO(e,t):oP(e)&&oP(t)?Math.sqrt(Math.pow(oO(e.x,t.x),2)+Math.pow(oO(e.y,t.y),2)+Math.pow(o_(e)&&o_(t)?oO(e.z,t.z):0,2)):void 0}class oA{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=oD(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=oT(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=nI();this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{if(this.lastMoveEvent=e,this.lastMoveEventInfo=oN(t,this.transformPagePoint),ii(e)&&0===e.buttons){this.handlePointerUp(e,t);return}nL.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r}=this.handlers,i=oD(oN(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},e.touches&&e.touches.length>1)return;this.handlers=t,this.transformPagePoint=n;let r=oN(io(e),this.transformPagePoint),{point:i}=r,{timestamp:a}=nI();this.history=[{...i,timestamp:a}];let{onSessionStart:o}=t;o&&o(e,oD(r,this.history)),this.removeListeners=iS(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(),nZ.update(this.updatePoint)}}function oN(e,t){return t?{point:t(e.point)}:e}function oR(e,t){return{x:e.x-t.x,y:e.y-t.y}}function oD({point:e},t){return{point:e,delta:oR(e,oL(t)),offset:oR(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=oL(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>az(.1)));)n--;if(!r)return{x:0,y:0};let a=(i.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(t,0)}}function oL(e){return e[e.length-1]}function oZ(e){return e.max-e.min}function oF(e,t=0,n=.01){return oT(e,t)({translate:0,scale:1,origin:0,originPoint:0}),oY=()=>({x:oK(),y:oK()}),oX=()=>({min:0,max:0}),oG=()=>({x:oX(),y:oX()});function oJ(e){return[e("x"),e("y")]}function oQ({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function o0(e){return void 0===e||1===e}function o1({scale:e,scaleX:t,scaleY:n}){return!o0(e)||!o0(t)||!o0(n)}function o2(e){return o1(e)||o4(e)||e.z||e.rotate||e.rotateX||e.rotateY}function o4(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function o3(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function o5(e,t=0,n=1,r,i){e.min=o3(e.min,t,n,r,i),e.max=o3(e.max,t,n,r,i)}function o6(e,{x:t,y:n}){o5(e.x,t.translate,t.scale,t.originPoint),o5(e.y,n.translate,n.scale,n.originPoint)}function o8(e,t){e.min=e.min+t,e.max=e.max+t}function o7(e,t,[n,r,i]){let a=void 0!==t[i]?t[i]:.5,o=iq(e.min,e.max,a);o5(e,t[n],t[r],o,t.scale)}let o9=["x","scaleX","originX"],le=["y","scaleY","originY"];function lt(e,t){o7(e.x,t,o9),o7(e.y,t,le)}function ln(e,t){return oQ(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 lr=new WeakMap;class li{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=oG(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){!1!==this.visualElement.isPresent&&(this.panSession=new oA(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(io(e,"page").point)},onStart:(e,t)=>{var n;let{drag:r,dragPropagation:i,onDragStart:a}=this.getProps();(!r||i||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ib(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),oJ(e=>{var t,n;let r=this.getAxisMotionValue(e).get()||0;if(rO.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=oZ(i);r=parseFloat(r)/100*e}}this.originPoint[e]=r}),null==a||a(e,t),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(Z.Drag,!0))},onMove:(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:o}=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}(o),null!==this.currentDirection&&(null==i||i(this.currentDirection));return}this.updateAxis("x",t.point,o),this.updateAxis("y",t.point,o),this.visualElement.render(),null==a||a(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(Z.Drag,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!la(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,{min:t,max:n},r){return void 0!==t&&en&&(e=r?iq(n,e,r.max):Math.min(e,n)),e}(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&n8(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:oU(e.x,n,i),y:oU(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:oq(e,"left","right"),y:oq(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&oJ(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||!n8(t))return!1;let r=t.current;iZ(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 a=function(e,t,n){let r=ln(e,n),{scroll:i}=t;return i&&(o8(r.x,i.x),o8(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),o={x:oW((e=i.layout.actual).x,a.x),y:oW(e.y,a.y)};if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=oQ(e))}return o}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{};return Promise.all(oJ(o=>{var s;if(!la(o,t,this.currentDirection))return;let u=null!==(s=null==l?void 0:l[o])&&void 0!==s?s:{};a&&(u={min:0,max:0});let c={type:"inertia",velocity:n?e[o]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...u};return this.startAxisValueAnimation(o,c)})).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return oi(e,n,0,t)}stopAnimation(){oJ(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){var t,n;let r="_drag"+e.toUpperCase();return this.visualElement.getProps()[r]||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){oJ(t=>{let{drag:n}=this.getProps();if(!la(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.actual[t];i.set(e[t]-iq(n,a,.5))}})}scalePositionWithinConstraints(){var e;if(!this.visualElement.current)return;let{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!n8(n)||!r||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};oJ(e=>{let t=this.getAxisMotionValue(e);if(t){let n=t.get();i[e]=function(e,t){let n=.5,r=oZ(e),i=oZ(t);return i>r?n=iW(t.min,t.max-r,e.min):r>i&&(n=iW(e.min,e.max-i,t.min)),iF(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",null===(e=r.root)||void 0===e||e.updateScroll(),r.updateLayout(),this.resolveConstraints(),oJ(e=>{if(!la(e,t,null))return;let n=this.getAxisMotionValue(e),{min:r,max:a}=this.constraints[e];n.set(iq(r,a,i[e]))})}addListeners(){var e;if(!this.visualElement.current)return;lr.set(this.visualElement,this);let t=im(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();n8(e)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",n);r&&!r.layout&&(null===(e=r.root)||void 0===e||e.updateScroll(),r.updateLayout()),n();let a=it(window,"resize",()=>this.scalePositionWithinConstraints()),o=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(oJ(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(),t(),i(),null==o||o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=.35,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}}function la(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let lo={pan:iT(function({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:i}){let a=(0,eo.useRef)(null),{transformPagePoint:o}=(0,eo.useContext)(n3),l={onSessionStart:r,onStart:t,onMove:e,onEnd:(e,t)=>{a.current=null,n&&n(e,t)}};(0,eo.useEffect)(()=>{null!==a.current&&a.current.updateHandlers(l)}),ig(i,"pointerdown",(e||t||n||r)&&function(e){a.current=new oA(e,l,{transformPagePoint:o})}),nQ(()=>a.current&&a.current.end())}),drag:iT(function(e){let{dragControls:t,visualElement:n}=e,r=n$(()=>new li(n));(0,eo.useEffect)(()=>t&&t.subscribe(r),[r,t]),(0,eo.useEffect)(()=>r.addListeners(),[r])})};function ll(e){return"string"==typeof e&&e.startsWith("var(--")}let ls=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function lu(e,t,n=1){iZ(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=ls.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]}(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);return a?a.trim():ll(i)?lu(i,t,n+1):i}let lc=new Set(["width","height","top","left","right","bottom","x","y"]),ld=e=>lc.has(e),lf=e=>Object.keys(e).some(ld),lh=(e,t)=>{e.set(t,!1),e.set(t)},lp=e=>e===rD||e===rT;(u=F||(F={})).width="width",u.height="height",u.left="left",u.right="right",u.top="top",u.bottom="bottom";let lm=(e,t)=>parseFloat(e.split(", ")[t]),lg=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/);if(i)return lm(i[1],t);{let t=r.match(/^matrix\((.+)\)$/);return t?lm(t[1],e):0}},lv=new Set(["x","y","z"]),ly=rp.filter(e=>!lv.has(e)),lx={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:lg(4,13),y:lg(5,14)},lb=(e,t,n)=>{let r=t.measureViewportBox(),i=t.current,a=getComputedStyle(i),{display:o}=a,l={};"none"===o&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{l[e]=lx[e](r,a)}),t.render();let s=t.measureViewportBox();return n.forEach(n=>{lh(t.getValue(n),l[n]),e[n]=lx[n](s,a)}),e},lw=(e,t,n={},r={})=>{t={...t},r={...r};let i=Object.keys(t).filter(ld),a=[],o=!1,l=[];if(i.forEach(i=>{let s;let u=e.getValue(i);if(!e.hasValue(i))return;let c=n[i],d=om(c),f=t[i];if(r3(f)){let e=f.length,t=null===f[0]?1:0;d=om(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),o=!0),l.push(i),r[i]=void 0!==r[i]?r[i]:t[i],lh(u,f))}}),!l.length)return{target:t,transitionEnd:r};{let n=l.indexOf("height")>=0?window.pageYOffset:null,i=lb(t,e,l);return a.length&&a.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),nH&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}},lj=(e,t,n,r)=>{var i,a;let o=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(!ll(t))return;let n=lu(t,r);n&&e.set(n)}),t){let e=t[i];if(!ll(e))continue;let a=lu(e,r);a&&(t[i]=a,n&&void 0===n[i]&&(n[i]=e))}return{target:t,transitionEnd:n}}(e,t,r);return t=o.target,r=o.transitionEnd,i=t,a=r,lf(i)?lw(e,i,n,a):{target:i,transitionEnd:a}},lk={current:null},lE={current:!1},lS=Object.keys(ra),lC=lS.length,lM=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class lP{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=()=>nL.render(this.render,!1,!0);let{latestValues:a,renderState:o}=r;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=o,this.parent=e,this.props=t,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=i,this.isControllingVariants=rt(t),this.isVariantNode=rn(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:l,...s}=this.scrapeMotionValuesFromProps(t);for(let e in s){let t=s[e];void 0!==a[e]&&rv(t)&&(t.set(a[e],!1),ox(l)&&l.add(e))}if(t.values)for(let e in t.values){let n=t.values[e];void 0!==a[e]&&rv(n)&&n.set(a[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)),lE.current||function(){if(lE.current=!0,nH){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>lk.current=e.matches;e.addListener(t),t()}else lk.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||lk.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(),nZ.update(this.notifyUpdate),nZ.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&&nL.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,a){let o=[];"production"!==nC&&n&&t&&iZ(!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:a,layoutScroll:s})}return o}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):oG()}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=of(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=r4(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||rv(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 ou),this.events[e].add(t)}notify(e,...t){var n;null===(n=this.events[e])||void 0===n||n.notify(...t)}}let l_=["initial",...ok],lO=l_.length;class lT extends lP{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 a=function(e,t,n){var r;let i={};for(let a in e){let e=function(e,t){if(t)return(t[e]||t.default||t).from}(a,t);i[a]=void 0!==e?e:null===(r=n.getValue(a))||void 0===r?void 0:r.get()}return i}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),a&&(a=r(a))),i){!function(e,t,n){var r,i;let a=Object.keys(t).filter(t=>!e.hasValue(t)),o=a.length;if(o)for(let l=0;lrf(e)?new lN(t,{enableHardwareAcceleration:!1}):new lA(t,{enableHardwareAcceleration:!0});function lD(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let lL={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!rT.test(e))return e;e=parseFloat(e)}let n=lD(e,t.target.x),r=lD(e,t.target.y);return`${n}% ${r}%`}},lZ="_$css",lF={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=e.includes("var("),a=[];i&&(e=e.replace(ls,e=>(a.push(e),lZ)));let o=ai.parse(e);if(o.length>5)return r;let l=ai.createTransformer(e),s="number"!=typeof o[0]?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;o[0+s]/=u,o[1+s]/=c;let d=iq(u,c,.5);"number"==typeof o[2+s]&&(o[2+s]/=d),"number"==typeof o[3+s]&&(o[3+s]/=d);let f=l(o);if(i){let e=0;f=f.replace(lZ,()=>{let t=a[e];return e++,t})}return f}};class lz extends eo.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;Object.assign(rh,lV),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()})),ro.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,a=n.projection;return a&&(a.isPresent=i,r||e.layoutDependency!==t||void 0===t?a.willUpdate():this.safeToRemove(),e.isPresent===i||(i?a.promote():a.relegate()||nL.postRender(()=>{var e;(null===(e=a.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 lV={borderRadius:{...lL,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:lL,borderTopRightRadius:lL,borderBottomLeftRadius:lL,borderBottomRightRadius:lL,boxShadow:lF},lB=["TopLeft","TopRight","BottomLeft","BottomRight"],lI=lB.length,lH=e=>"string"==typeof e?parseFloat(e):e,lU=e=>"number"==typeof e||rT.test(e);function lW(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}let lq=lK(0,.5,ak),l$=lK(.5,.95,ay);function lK(e,t,n){return r=>rt?1:n(iW(e,t,r))}function lY(e,t){e.min=t.min,e.max=t.max}function lX(e,t){lY(e.x,t.x),lY(e.y,t.y)}function lG(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 lJ(e,t,[n,r,i],a,o){!function(e,t=0,n=1,r=.5,i,a=e,o=e){if(rO.test(t)&&(t=parseFloat(t),t=iq(o.min,o.max,t/100)-o.min),"number"!=typeof t)return;let l=iq(a.min,a.max,r);e===a&&(l-=t),e.min=lG(e.min,t,n,l,i),e.max=lG(e.max,t,n,l,i)}(e,t[n],t[r],t[i],t.scale,a,o)}let lQ=["x","scaleX","originX"],l0=["y","scaleY","originY"];function l1(e,t,n,r){lJ(e.x,t,lQ,null==n?void 0:n.x,null==r?void 0:r.x),lJ(e.y,t,l0,null==n?void 0:n.y,null==r?void 0:r.y)}function l2(e){return 0===e.translate&&1===e.scale}function l4(e){return l2(e.x)&&l2(e.y)}function l3(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 l5(e){return oZ(e.x)/oZ(e.y)}class l6{constructor(){this.members=[]}add(e){ol(this.members,e),e.scheduleRender()}remove(e){if(os(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,a;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(a=null===(r=e.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===a||a.call(i)})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function l8(e,t,n){let r=e.x.translate/t.x,i=e.y.translate/t.y,a=`translate3d(${r}px, ${i}px, 0) `;if(a+=`scale(${1/t.x}, ${1/t.y}) `,n){let{rotate:e,rotateX:t,rotateY:r}=n;e&&(a+=`rotate(${e}deg) `),t&&(a+=`rotateX(${t}deg) `),r&&(a+=`rotateY(${r}deg) `)}let o=e.x.scale*t.x,l=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"==(a+=`scale(${o}, ${l})`)?"none":a}let l7=(e,t)=>e.depth-t.depth;class l9{constructor(){this.children=[],this.isDirty=!1}add(e){ol(this.children,e),this.isDirty=!0}remove(e){os(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(l7),this.isDirty=!1,this.children.forEach(e)}}let se=["","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(ss),this.nodes.forEach(su)},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=a9(r,250),ro.hasAnimatedSinceResize&&(ro.hasAnimatedSinceResize=!1,this.nodes.forEach(sl))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&o&&(i||a)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{var i,a,l,s,u;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let c=null!==(a=null!==(i=this.options.transition)&&void 0!==i?i:o.getDefaultTransition())&&void 0!==a?a:sm,{onLayoutAnimationStart:d,onLayoutAnimationComplete:f}=o.getProps(),h=!this.targetLayout||!l3(this.targetLayout,r)||n,p=!t&&n;if((null===(l=this.resumeFrom)||void 0===l?void 0:l.instance)||p||t&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,p);let t={...or(c,"layout"),onPlay:d,onComplete:f};o.shouldReduceMotion&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||sl(this),this.isLead()&&(null===(u=(s=this.options).onExitComplete)||void 0===u||u.call(s));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,nZ.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(sc))}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=!!(s&&!u&&!0===this.options.crossfade&&!this.path.some(sp));this.animationProgress=0,this.mixTargetDelta=t=>{var n,r,d;let f=t/1e3;sf(o.x,e.x,f),sf(o.y,e.y,f),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(oH(l,this.layout.actual,this.relativeParent.layout.actual),r=this.relativeTarget,d=this.relativeTargetOrigin,sh(r.x,d.x,l.x,f),sh(r.y,d.y,l.y,f)),s&&(this.animationValues=a,function(e,t,n,r,i,a){var o,l,s,u;i?(e.opacity=iq(0,null!==(o=n.opacity)&&void 0!==o?o:1,lq(r)),e.opacityExit=iq(null!==(l=t.opacity)&&void 0!==l?l:1,0,l$(r))):a&&(e.opacity=iq(null!==(s=t.opacity)&&void 0!==s?s:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(let i=0;i{ro.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n={}){let r=rv(e)?e:of(e);return oi("",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&&sx(this.options.animationType,this.layout.actual,r.actual)){n=this.target||oG();let t=oZ(this.layout.actual.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=oZ(this.layout.actual.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}lX(t,n),lt(t,i),oV(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new l6),this.sharedNodes.get(e).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(sa),this.root.sharedNodes.clear()}}}function sn(e){e.updateLayout()}function sr(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?oJ(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=oZ(n);n.min=t[e].min,n.max=n.min+r}):sx(r,i.layout,t)&&oJ(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=oZ(t[e]);n.max=n.min+r});let a=oY();oV(a,t,i.layout);let o=oY();i.isShared?oV(o,e.applyTransform(n,!0),i.measured):oV(o,t,i.layout);let l=!l4(a),s=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:e,layout:r}=n;if(e&&r){let n=oG();oH(n,i.layout,e.layout);let a=oG();oH(a,t,r.actual),l3(n,a)||(s=!0)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:i,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:s})}else e.isLead()&&(null===(r=(n=e.options).onExitComplete)||void 0===r||r.call(n));e.options.transition=void 0}function si(e){e.clearSnapshot()}function sa(e){e.clearMeasurements()}function so(e){let{visualElement:t}=e.options;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sl(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function ss(e){e.resolveTargetDelta()}function su(e){e.calcProjection()}function sc(e){e.resetRotation()}function sd(e){e.removeLeadSnapshot()}function sf(e,t,n){e.translate=iq(t.translate,0,n),e.scale=iq(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function sh(e,t,n,r){e.min=iq(t.min,n.min,r),e.max=iq(t.max,n.max,r)}function sp(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let sm={duration:.45,ease:[.4,0,.1,1]};function sg(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).querySelector(`[data-projection-id="${t}"]`);r&&e.mount(r,!0)}function sv(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function sy(e){sv(e.x),sv(e.y)}function sx(e,t,n){return"position"===e||"preserve-aspect"===e&&!function(e,t,n=.1){return oT(e,t)<=n}(l5(t),l5(n),.2)}let sb=st({attachResizeListener:(e,t)=>it(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sw={current:void 0},sj=st({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sw.current){let e=new sb(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),sw.current=e}return sw.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),sk={...oM,...iA,...lo,measureLayout:function(e){let[t,n]=iN(),r=(0,eo.useContext)(nJ);return eo.createElement(lz,{...e,layoutGroup:r,switchLayoutGroup:(0,eo.useContext)(ru),isPresent:t,safeToRemove:n})}},sE=function(e){function t(t,n={}){return function({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:r,useVisualState:i,Component:a}){e&&function(e){for(let t in e)"projectionNodeConstructor"===t?ra.projectionNodeConstructor=e[t]:ra[t].Component=e[t]}(e);let o=(0,eo.forwardRef)(function(o,l){var s;let u={...(0,eo.useContext)(n3),...o,layoutId:function({layoutId:e}){let t=(0,eo.useContext)(nJ).id;return t&&void 0!==e?t+"-"+e:e}(o)},{isStatic:c}=u,d=null,f=function(e){let{initial:t,animate:n}=function(e,t){if(rt(e)){let{initial:t,animate:n}=e;return{initial:!1===t||n7(t)?t:void 0,animate:n7(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,eo.useContext)(n5));return(0,eo.useMemo)(()=>({initial:t,animate:n}),[rr(t),rr(n)])}(o),h=c?void 0:n$(()=>{if(ro.hasEverUpdated)return rl++}),p=i(o,c);if(!c&&nH){f.visualElement=function(e,t,n,r){let i=(0,eo.useContext)(n5).visualElement,a=(0,eo.useContext)(n6),o=(0,eo.useContext)(nq),l=(0,eo.useContext)(n3).reducedMotion,s=(0,eo.useRef)();r=r||a.renderer,!s.current&&r&&(s.current=r(e,{visualState:t,parent:i,props:n,presenceId:o?o.id:void 0,blockInitialAnimation:!!o&&!1===o.initial,reducedMotionConfig:l}));let u=s.current;return nU(()=>{u&&u.render()}),(0,eo.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),nU(()=>()=>u&&u.notify("Unmount"),[]),u}(a,p,u,t);let r=(0,eo.useContext)(n6).strict,i=(0,eo.useContext)(ru);f.visualElement&&(d=f.visualElement.loadFeatures(u,r,e,h,n||ra.projectionNodeConstructor,i))}return eo.createElement(rs,{visualElement:f.visualElement,props:u},d,eo.createElement(n5.Provider,{value:f},r(a,o,h,(s=f.visualElement,(0,eo.useCallback)(e=>{e&&p.mount&&p.mount(e),s&&(e?s.mount(e):s.unmount()),l&&("function"==typeof l?l(e):n8(l)&&(l.current=e))},[s])),p,c,f.visualElement)))});return o[rc]=a,o}(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){return{...rf(e)?r9:ie,preloadedFeatures:n,useRender:function(e=!1){return(t,n,r,i,{latestValues:a},o)=>{let l=(rf(t)?function(e,t){let n=(0,eo.useMemo)(()=>{let n=rX();return rY(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};rI(t,e.style,e),n.style={...t,...n.style}}return n}:function(e,t,n){let r={},i=function(e,t,n){let r=e.style||{},i={};return rI(i,r,e),Object.assign(i,function({transformTemplate:e},t,n){return(0,eo.useMemo)(()=>{let r=rB();return rV(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})(n,a,o),s={...function(e,t,n){let r={};for(let i in e)(rW(i)||!0===n&&rU(i)||!t&&!rU(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),...l,ref:i};return r&&(s["data-projection-id"]=r),(0,eo.createElement)(t,s)}}(t),createVisualElement:r,projectionNodeConstructor:i,Component:e}})(e,t,sk,lR,sj));function sS(e){let{open:t,onOpenChange:n}=e,[r,i]=(0,eo.useState)(!1);return{open:(0,eo.useMemo)(()=>n?t:r,[n,r,t]),onOpenChange:(0,eo.useCallback)(e=>{n?n(e):i(e)},[n])}}let sC={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 sM(e){let{children:t,content:n,defaultOpen:r,open:i,onOpenChange:a,delayDuration:o=300,disableHoverableContent:l,...s}=e,{open:u,onOpenChange:c}=sS({open:i,onOpenChange:a});return(0,ea.jsxs)(ny,{open:u,delayDuration:o,disableHoverableContent:l,defaultOpen:r,onOpenChange:c,children:[(0,ea.jsx)(ns,{asChild:!0,children:t}),(0,ea.jsx)(n4,{children:n&&u?(0,ea.jsx)(nx,{forceMount:!0,children:(0,ea.jsx)(nh,{forceMount:!0,asChild:!0,side:"top",align:"center",sideOffset:s.sideOffset||5,...s,children:(0,ea.jsx)(sE.div,{variants:sC,initial:"init",animate:"show",exit:"exit",className:(0,eW.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,ea.jsx)("div",{className:(0,eW.cx)("py-1 px-2","max-w-xs","overflow-hidden",nk()),children:(0,ea.jsx)(nj,{size:"12",children:n})})})})}):null})]})}let sP=(0,eW.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"}}),s_=eo.forwardRef((e,t)=>{let{variant:n,size:r,state:i,rounded:a,disabled:o,icon:l,color:s,tip:u,tipAlign:c,tipSide:d,className:f,type:h="button",...p}=e;return u?(0,ea.jsx)(sM,{content:u,align:c,side:d,children:(0,ea.jsx)("button",{ref:t,type:h,disabled:o,className:sP({variant:n,size:r,state:i,rounded:a,disabled:o,icon:l,color:s,className:f}),...p})}):(0,ea.jsx)("button",{ref:t,disabled:o,type:h,className:sP({variant:n,size:r,state:i,rounded:a,disabled:o,icon:l,color:s,className:f}),...p})});var sO=n(47211);(0,eW.j)([],{variants:{variant:{default:"border-t border-gray-500 dark:border-graydark-500 last-of-type:border-b",ghost:""}},defaultVariants:{variant:"default"}});let sT=(0,eW.j)("border border-gray-500 dark:border-graydark-500 bg-gray-100 dark:bg-graydark-100 rounded p-4"),sA=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)("div",{...r,className:sT({className:n}),ref:t})});var sN=n(86029);let sR="Avatar",[sD,sL]=(0,eu.b)(sR),[sZ,sF]=sD(sR),sz=(0,eo.forwardRef)((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,a]=(0,eo.useState)("idle");return(0,eo.createElement)(sZ,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:a},(0,eo.createElement)(em.WV.span,(0,es.Z)({},r,{ref:t})))}),sV=(0,eo.forwardRef)((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...a}=e,o=sF("AvatarImage",n),l=function(e){let[t,n]=(0,eo.useState)("idle");return(0,eo.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),s=(0,sN.W)(e=>{i(e),o.onImageLoadingStatusChange(e)});return(0,eg.b)(()=>{"idle"!==l&&s(l)},[l,s]),"loaded"===l?(0,eo.createElement)(em.WV.img,(0,es.Z)({},a,{ref:t,src:r})):null}),sB=(0,eo.forwardRef)((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,a=sF("AvatarFallback",n),[o,l]=(0,eo.useState)(void 0===r);return(0,eo.useEffect)(()=>{if(void 0!==r){let e=window.setTimeout(()=>l(!0),r);return()=>window.clearTimeout(e)}},[r]),o&&"loaded"!==a.imageLoadingStatus?(0,eo.createElement)(em.WV.span,(0,es.Z)({},i,{ref:t})):null}),sI=(0,eW.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"}}),sH=(0,eW.j)("uppercase",{variants:{size:{1:"text-sm",2:"text-base",3:"text-lg",4:"text-lg"}},defaultVariants:{size:"2"}}),sU=eo.forwardRef((e,t)=>{let{alt:n,src:r,fallback:i,size:a,variant:o,shape:l,interactive:s,inactive:u,className:c,...d}=e;return(0,ea.jsx)("div",{className:(0,eW.cx)("relative h-fit w-fit",c),children:(0,ea.jsxs)(sz,{...d,ref:t,className:sI({className:c,size:a,variant:o,interactive:s,inactive:u,shape:l}),children:["filter"===o&&(0,ea.jsx)("div",{className:"absolute w-full h-full z-10",style:{backgroundColor:"rgba(30, 169, 76, 0.3)"}}),(0,ea.jsx)(sV,{alt:n,src:r,className:"flex object-cover h-full align-middle w-full"}),(0,ea.jsx)(sB,{className:sH({size:a}),children:i})]})})}),sW=(0,eW.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}}),sq=eo.forwardRef((e,t)=>{let{variant:n,size:r,interactive:i,rounded:a,className:o,...l}=e;return(0,ea.jsx)("div",{...l,className:sW({variant:n,size:r,interactive:i,rounded:a,className:o}),ref:t})}),s$=eo.forwardRef((e,t)=>{let{className:n,size:r,color:i,...a}=e;return(0,ea.jsx)("pre",{children:(0,ea.jsx)("code",{className:(0,eW.cx)(nb({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),...a,ref:t})})}),sK=(0,eW.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"]},ellipsis:{true:"overflow-hidden text-ellipsis whitespace-nowrap"}},defaultVariants:{color:"accent",ellipsis:!1}}),sY=eo.forwardRef((e,t)=>{let{color:n,className:r,ellipsis:i,...a}=e;return(0,ea.jsx)("code",{...a,className:sK({color:n,ellipsis:i,className:r}),ref:t})}),sX=(0,eW.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"]),sG=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)("div",{ref:t,className:sX({className:n}),...r})});(0,eW.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 sJ=(0,eW.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"}}),sQ=eo.forwardRef((e,t)=>{let{className:n,pad:r,size:i,...a}=e;return(0,ea.jsx)("div",{ref:t,...a,className:sJ({size:i,pad:r,className:n})})});var s0=n(72331);let s1=(0,eo.createContext)(void 0);function s2(e){let t=(0,eo.useContext)(s1);return e||t||"ltr"}let s4="ScrollArea",[s3,s5]=(0,eu.b)(s4),[s6,s8]=s3(s4),s7=(0,eo.forwardRef)((e,t)=>{let{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:a=600,...o}=e,[l,s]=(0,eo.useState)(null),[u,c]=(0,eo.useState)(null),[d,f]=(0,eo.useState)(null),[h,p]=(0,eo.useState)(null),[m,g]=(0,eo.useState)(null),[v,y]=(0,eo.useState)(0),[x,b]=(0,eo.useState)(0),[w,j]=(0,eo.useState)(!1),[k,E]=(0,eo.useState)(!1),S=(0,ec.e)(t,e=>s(e)),C=s2(i);return(0,eo.createElement)(s6,{scope:n,type:r,dir:C,scrollHideDelay:a,scrollArea:l,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:h,onScrollbarXChange:p,scrollbarXEnabled:w,onScrollbarXEnabledChange:j,scrollbarY:m,onScrollbarYChange:g,scrollbarYEnabled:k,onScrollbarYEnabledChange:E,onCornerWidthChange:y,onCornerHeightChange:b},(0,eo.createElement)(em.WV.div,(0,es.Z)({dir:C},o,{ref:S,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})))}),s9=(0,eo.forwardRef)((e,t)=>{let{__scopeScrollArea:n,children:r,...i}=e,a=s8("ScrollAreaViewport",n),o=(0,eo.useRef)(null),l=(0,ec.e)(t,o,a.onViewportChange);return(0,eo.createElement)(eo.Fragment,null,(0,eo.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,eo.createElement)(em.WV.div,(0,es.Z)({"data-radix-scroll-area-viewport":""},i,{ref:l,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...e.style}}),(0,eo.createElement)("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"}},r)))}),ue="ScrollAreaScrollbar",ut=(0,eo.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=s8(ue,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:o}=i,l="horizontal"===e.orientation;return(0,eo.useEffect)(()=>(l?a(!0):o(!0),()=>{l?a(!1):o(!1)}),[l,a,o]),"hover"===i.type?(0,eo.createElement)(un,(0,es.Z)({},r,{ref:t,forceMount:n})):"scroll"===i.type?(0,eo.createElement)(ur,(0,es.Z)({},r,{ref:t,forceMount:n})):"auto"===i.type?(0,eo.createElement)(ui,(0,es.Z)({},r,{ref:t,forceMount:n})):"always"===i.type?(0,eo.createElement)(ua,(0,es.Z)({},r,{ref:t})):null}),un=(0,eo.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=s8(ue,e.__scopeScrollArea),[a,o]=(0,eo.useState)(!1);return(0,eo.useEffect)(()=>{let e=i.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),o(!0)},r=()=>{t=window.setTimeout(()=>o(!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,eo.createElement)(ev.z,{present:n||a},(0,eo.createElement)(ui,(0,es.Z)({"data-state":a?"visible":"hidden"},r,{ref:t})))}),ur=(0,eo.forwardRef)((e,t)=>{var n;let{forceMount:r,...i}=e,a=s8(ue,e.__scopeScrollArea),o="horizontal"===e.orientation,l=uk(()=>u("SCROLL_END"),100),[s,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,eo.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},"hidden"));return(0,eo.useEffect)(()=>{if("idle"===s){let e=window.setTimeout(()=>u("HIDE"),a.scrollHideDelay);return()=>window.clearTimeout(e)}},[s,a.scrollHideDelay,u]),(0,eo.useEffect)(()=>{let e=a.viewport,t=o?"scrollLeft":"scrollTop";if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(u("SCROLL"),l()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[a.viewport,o,u,l]),(0,eo.createElement)(ev.z,{present:r||"hidden"!==s},(0,eo.createElement)(ua,(0,es.Z)({"data-state":"hidden"===s?"hidden":"visible"},i,{ref:t,onPointerEnter:(0,eh.M)(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:(0,eh.M)(e.onPointerLeave,()=>u("POINTER_LEAVE"))})))}),ui=(0,eo.forwardRef)((e,t)=>{let n=s8(ue,e.__scopeScrollArea),{forceMount:r,...i}=e,[a,o]=(0,eo.useState)(!1),l="horizontal"===e.orientation,s=uk(()=>{if(n.viewport){let e=n.viewport.offsetWidth{let{orientation:n="vertical",...r}=e,i=s8(ue,e.__scopeScrollArea),a=(0,eo.useRef)(null),o=(0,eo.useRef)(0),[l,s]=(0,eo.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=uy(l.viewport,l.content),c={...r,sizes:l,onSizesChange:s,hasThumb:!!(u>0&&u<1),onThumbChange:e=>a.current=e,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:e=>o.current=e};function d(e,t){return function(e,t,n,r="ltr"){let i=ux(n),a=t||i/2,o=n.scrollbar.paddingStart+a,l=n.scrollbar.size-n.scrollbar.paddingEnd-(i-a),s=n.content-n.viewport;return uw([o,l],"ltr"===r?[0,s]:[-1*s,0])(e)}(e,o.current,l,t)}return"horizontal"===n?(0,eo.createElement)(uo,(0,es.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=ub(i.viewport.scrollLeft,l,i.dir);a.current.style.transform=`translate3d(${e}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,eo.createElement)(ul,(0,es.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=ub(i.viewport.scrollTop,l);a.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}})):null}),uo=(0,eo.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=s8(ue,e.__scopeScrollArea),[o,l]=(0,eo.useState)(),s=(0,eo.useRef)(null),u=(0,ec.e)(t,s,a.onScrollbarXChange);return(0,eo.useEffect)(()=>{s.current&&l(getComputedStyle(s.current))},[s]),(0,eo.createElement)(uc,(0,es.Z)({"data-orientation":"horizontal"},i,{ref:u,sizes:n,style:{bottom:0,left:"rtl"===a.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===a.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":ux(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),r>0&&r{s.current&&a.viewport&&o&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:uv(o.paddingLeft),paddingEnd:uv(o.paddingRight)}})}}))}),ul=(0,eo.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=s8(ue,e.__scopeScrollArea),[o,l]=(0,eo.useState)(),s=(0,eo.useRef)(null),u=(0,ec.e)(t,s,a.onScrollbarYChange);return(0,eo.useEffect)(()=>{s.current&&l(getComputedStyle(s.current))},[s]),(0,eo.createElement)(uc,(0,es.Z)({"data-orientation":"vertical"},i,{ref:u,sizes:n,style:{top:0,right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":ux(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),r>0&&r{s.current&&a.viewport&&o&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:uv(o.paddingTop),paddingEnd:uv(o.paddingBottom)}})}}))}),[us,uu]=s3(ue),uc=(0,eo.forwardRef)((e,t)=>{let{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:a,onThumbPointerUp:o,onThumbPointerDown:l,onThumbPositionChange:s,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,h=s8(ue,n),[p,m]=(0,eo.useState)(null),g=(0,ec.e)(t,e=>m(e)),v=(0,eo.useRef)(null),y=(0,eo.useRef)(""),x=h.viewport,b=r.content-r.viewport,w=(0,sN.W)(c),j=(0,sN.W)(s),k=uk(d,10);function E(e){v.current&&u({x:e.clientX-v.current.left,y:e.clientY-v.current.top})}return(0,eo.useEffect)(()=>{let e=e=>{let t=e.target;(null==p?void 0:p.contains(t))&&w(e,b)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[x,p,b,w]),(0,eo.useEffect)(j,[r,j]),uE(p,k),uE(h.content,k),(0,eo.createElement)(us,{scope:n,scrollbar:p,hasThumb:i,onThumbChange:(0,sN.W)(a),onThumbPointerUp:(0,sN.W)(o),onThumbPositionChange:j,onThumbPointerDown:(0,sN.W)(l)},(0,eo.createElement)(em.WV.div,(0,es.Z)({},f,{ref:g,style:{position:"absolute",...f.style},onPointerDown:(0,eh.M)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),v.current=p.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",E(e))}),onPointerMove:(0,eh.M)(e.onPointerMove,E),onPointerUp:(0,eh.M)(e.onPointerUp,e=>{e.target.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=y.current,v.current=null})})))}),ud="ScrollAreaThumb",uf=(0,eo.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=uu(ud,e.__scopeScrollArea);return(0,eo.createElement)(ev.z,{present:n||i.hasThumb},(0,eo.createElement)(uh,(0,es.Z)({ref:t},r)))}),uh=(0,eo.forwardRef)((e,t)=>{let{__scopeScrollArea:n,style:r,...i}=e,a=s8(ud,n),o=uu(ud,n),{onThumbPositionChange:l}=o,s=(0,ec.e)(t,e=>o.onThumbChange(e)),u=(0,eo.useRef)(),c=uk(()=>{u.current&&(u.current(),u.current=void 0)},100);return(0,eo.useEffect)(()=>{let e=a.viewport;if(e){let t=()=>{if(c(),!u.current){let t=uj(e,l);u.current=t,l()}};return l(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[a.viewport,c,l]),(0,eo.createElement)(em.WV.div,(0,es.Z)({"data-state":o.hasThumb?"visible":"hidden"},i,{ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:(0,eh.M)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;o.onThumbPointerDown({x:n,y:r})}),onPointerUp:(0,eh.M)(e.onPointerUp,o.onThumbPointerUp)}))}),up="ScrollAreaCorner",um=(0,eo.forwardRef)((e,t)=>{let n=s8(up,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?(0,eo.createElement)(ug,(0,es.Z)({},e,{ref:t})):null}),ug=(0,eo.forwardRef)((e,t)=>{let{__scopeScrollArea:n,...r}=e,i=s8(up,n),[a,o]=(0,eo.useState)(0),[l,s]=(0,eo.useState)(0),u=!!(a&&l);return uE(i.scrollbarX,()=>{var e;let t=(null===(e=i.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;i.onCornerHeightChange(t),s(t)}),uE(i.scrollbarY,()=>{var e;let t=(null===(e=i.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;i.onCornerWidthChange(t),o(t)}),u?(0,eo.createElement)(em.WV.div,(0,es.Z)({},r,{ref:t,style:{width:a,height:l,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...e.style}})):null});function uv(e){return e?parseInt(e,10):0}function uy(e,t){let n=e/t;return isNaN(n)?0:n}function ux(e){let t=uy(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-n)*t,18)}function ub(e,t,n="ltr"){let r=ux(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,l=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,"ltr"===n?[0,o]:[-1*o,0]);return uw([0,o],[0,a-r])(l)}function uw(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 uj=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return!function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,l=n.top!==a.top;(o||l)&&t(),n=a,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function uk(e,t){let n=(0,sN.W)(e),r=(0,eo.useRef)(0);return(0,eo.useEffect)(()=>()=>window.clearTimeout(r.current),[]),(0,eo.useCallback)(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function uE(e,t){let n=(0,sN.W)(t);(0,eg.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=eo.forwardRef((e,t)=>{let{id:n,className:r,style:i,children:a,keyToResetScrollbars:o}=e;return(0,ea.jsxs)(s7,{className:(0,eW.cx)("w-full h-full overflow-hidden",r),style:i,children:[(0,ea.jsx)(s9,{id:n,ref:t,className:"w-full h-full [&>div]:!block [&>div]:!h-full",children:a}),(0,ea.jsx)(ut,{orientation:"vertical",className:"z-10 flex select-none touch-none transition-colors hover:bg-black/20 w-1.5",children:(0,ea.jsx)(uf,{className:(0,eW.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')})},o?"v-".concat(o):void 0),(0,ea.jsx)(ut,{orientation:"horizontal",className:"z-10 flex flex-col select-none touch-none transition-colors duration-1000 hover:bg-black/20 h-1",children:(0,ea.jsx)(uf,{className:(0,eW.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')})},o?"h-".concat(o):void 0),(0,ea.jsx)(um,{className:"bg-black/70"})]})}),uC=(0,eW.j)(["z-20","overflow-hidden"],{variants:{variant:{default:"flex items-center justify-center w-full h-full",none:""}},defaultVariants:{variant:"default"}}),uM={show:{scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},uP=eo.forwardRef((e,t)=>{let{trigger:n,rootProps:r,open:i,onOpenChange:a,onSubmit:o,title:l,description:s,containerVariants:u,contentVariants:c,controls:d,children:f,bodyClassName:h,closeClassName:p,dynamicHeight:m=!0}=e,{open:g,onOpenChange:v}=sS({open:i,onOpenChange:a});return(0,eo.useEffect)(()=>{g&&v(g)},[g]),(0,ea.jsxs)(s0.fC,{open:g,onOpenChange:v,...r,children:[n&&(0,ea.jsx)(s0.xz,{asChild:!0,children:n}),(0,ea.jsx)(n4,{children:g?(0,ea.jsx)(s0.h_,{forceMount:!0,children:(0,ea.jsx)(s0.VY,{asChild:!0,forceMount:!0,ref:t,children:(0,ea.jsxs)("div",{className:"fixed w-full h-full top-0 left-0 z-20",children:[(0,ea.jsx)(s0.aV,{onClick:()=>v(!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,ea.jsx)(sE.div,{variants:uM,initial:"init",animate:"show",exit:"exit",className:uC(u),children:(0,ea.jsx)(uT,{title:l,description:s,contentVariants:c,onSubmit:o,controls:d,bodyClassName:h,closeClassName:p,dynamicHeight:m,children:f})})]})})}):null})]})});function u_(e){let{className:t}=e;return(0,ea.jsx)(s0.x8,{asChild:!0,type:"button",children:(0,ea.jsx)("div",{className:(0,eW.cx)("appearance-none",t),children:(0,ea.jsx)(s_,{size:"small",variant:"ghost",type:"button","aria-label":"close",children:(0,ea.jsx)(sO.QN4,{})})})})}let uO=(0,eW.j)(["relative","z-40","overflow-hidden"],{variants:{variant:{default:[nk()],none:""}},defaultVariants:{variant:"default"}}),uT=eo.forwardRef((e,t)=>{let{children:n,onSubmit:r,title:i,description:a,controls:o,contentVariants:l,closeClassName:s,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,eo.useState)(0),r=(0,eo.useRef)(null);return(0,eo.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,a]),[h,p]=(0,eo.useState)(!1);return(0,eo.useEffect)(()=>{p(f>.7*window.innerHeight)},[f]),(0,ea.jsxs)(r?"form":"div",{onSubmit:r,ref:t,className:uO(l),children:[i&&(0,ea.jsx)(s0.Dx,{className:uA({showSeparator:h}),children:i}),(0,ea.jsx)(uS,{style:{height:c?"".concat(f,"px"):void 0,maxHeight:c?"70vh":void 0},children:(0,ea.jsxs)("div",{ref:d,className:(0,eW.cx)("p-4",u),children:[a&&(0,ea.jsx)(s0.dk,{className:uN(),children:a}),n]})}),o&&(0,ea.jsx)(uR,{separator:h,children:o}),(0,ea.jsx)(u_,{className:s||"absolute top-3.5 right-2"})]})}),uA=(0,eW.j)(["pt-4 pb-2 px-4 w-full",nb({size:"20",weight:"semibold",font:"sans",color:"contrast"})],{variants:{showSeparator:{true:"border-b border-gray-200 dark:border-graydark-200"}}}),uN=(0,eW.j)([nb({color:"subtle",size:"14"}),"py-2"]);function uR(e){let{children:t,separator:n=!0}=e;return(0,ea.jsx)("div",{className:(0,eW.cx)("py-2 mx-3",n?"border-t border-gray-200 dark:border-graydark-200":""),children:t})}var uD=n(55070),uL=n(77334);let uZ="rovingFocusGroup.onEntryFocus",uF={bubbles:!1,cancelable:!0},uz="RovingFocusGroup",[uV,uB,uI]=ef(uz),[uH,uU]=(0,eu.b)(uz,[uI]),[uW,uq]=uH(uz),u$=(0,eo.forwardRef)((e,t)=>(0,eo.createElement)(uV.Provider,{scope:e.__scopeRovingFocusGroup},(0,eo.createElement)(uV.Slot,{scope:e.__scopeRovingFocusGroup},(0,eo.createElement)(uK,(0,es.Z)({},e,{ref:t}))))),uK=(0,eo.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:s,onEntryFocus:u,...c}=e,d=(0,eo.useRef)(null),f=(0,ec.e)(t,d),h=s2(a),[p=null,m]=(0,ep.T)({prop:o,defaultProp:l,onChange:s}),[g,v]=(0,eo.useState)(!1),y=(0,sN.W)(u),x=uB(n),b=(0,eo.useRef)(!1);return(0,eo.useEffect)(()=>{let e=d.current;if(e)return e.addEventListener(uZ,y),()=>e.removeEventListener(uZ,y)},[y]),(0,eo.createElement)(uW,{scope:n,orientation:r,dir:h,loop:i,currentTabStopId:p,onItemFocus:(0,eo.useCallback)(e=>m(e),[m]),onItemShiftTab:(0,eo.useCallback)(()=>v(!0),[])},(0,eo.createElement)(em.WV.div,(0,es.Z)({tabIndex:g?-1:0,"data-orientation":r},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:(0,eh.M)(e.onMouseDown,()=>{b.current=!0}),onFocus:(0,eh.M)(e.onFocus,e=>{let t=!b.current;if(e.target===e.currentTarget&&t&&!g){let t=new CustomEvent(uZ,uF);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=x().filter(e=>e.focusable);uG([e.find(e=>e.active),e.find(e=>e.id===p),...e].filter(Boolean).map(e=>e.ref.current))}}b.current=!1}),onBlur:(0,eh.M)(e.onBlur,()=>v(!1))})))}),uY=(0,eo.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,...a}=e,o=(0,ey.M)(),l=uq("RovingFocusGroupItem",n),s=l.currentTabStopId===o,u=uB(n);return(0,eo.createElement)(uV.ItemSlot,{scope:n,id:o,focusable:r,active:i},(0,eo.createElement)(em.WV.span,(0,es.Z)({tabIndex:s?0:-1,"data-orientation":l.orientation},a,{ref:t,onMouseDown:(0,eh.M)(e.onMouseDown,e=>{r?l.onItemFocus(o):e.preventDefault()}),onFocus:(0,eh.M)(e.onFocus,()=>l.onItemFocus(o)),onKeyDown:(0,eh.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){l.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 uX[i]}(e,l.orientation,l.dir);if(void 0!==t){e.preventDefault();let i=u().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&i.reverse();let a=i.indexOf(e.currentTarget);i=l.loop?(n=i,r=a+1,n.map((e,t)=>n[(r+t)%n.length])):i.slice(a+1)}setTimeout(()=>uG(i))}})})))}),uX={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 uJ=n(49732),uQ=n(70506);let u0=["Enter"," "],u1=["ArrowUp","PageDown","End"],u2=["ArrowDown","PageUp","Home",...u1],u4={ltr:[...u0,"ArrowRight"],rtl:[...u0,"ArrowLeft"]},u3={ltr:["ArrowLeft"],rtl:["ArrowRight"]},u5="Menu",[u6,u8,u7]=ef(u5),[u9,ce]=(0,eu.b)(u5,[u7,tH,uU]),ct=tH(),cn=uU(),[cr,ci]=u9(u5),[ca,co]=u9(u5),cl=(0,eo.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e,i=ct(n);return(0,eo.createElement)(tq,(0,es.Z)({},i,r,{ref:t}))}),cs="MenuPortal",[cu,cc]=u9(cs,{forceMount:void 0}),cd="MenuContent",[cf,ch]=u9(cd),cp=(0,eo.forwardRef)((e,t)=>{let n=cc(cd,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=ci(cd,e.__scopeMenu),o=co(cd,e.__scopeMenu);return(0,eo.createElement)(u6.Provider,{scope:e.__scopeMenu},(0,eo.createElement)(ev.z,{present:r||a.open},(0,eo.createElement)(u6.Slot,{scope:e.__scopeMenu},o.modal?(0,eo.createElement)(cm,(0,es.Z)({},i,{ref:t})):(0,eo.createElement)(cg,(0,es.Z)({},i,{ref:t})))))}),cm=(0,eo.forwardRef)((e,t)=>{let n=ci(cd,e.__scopeMenu),r=(0,eo.useRef)(null),i=(0,ec.e)(t,r);return(0,eo.useEffect)(()=>{let e=r.current;if(e)return(0,uJ.R)(e)},[]),(0,eo.createElement)(cv,(0,es.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,eh.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),cg=(0,eo.forwardRef)((e,t)=>{let n=ci(cd,e.__scopeMenu);return(0,eo.createElement)(cv,(0,es.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),cv=(0,eo.forwardRef)((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:l,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f,disableOutsideScroll:h,...p}=e,m=ci(cd,n),g=co(cd,n),v=ct(n),y=cn(n),x=u8(n),[b,w]=(0,eo.useState)(null),j=(0,eo.useRef)(null),k=(0,ec.e)(t,j,m.onContentChange),E=(0,eo.useRef)(0),S=(0,eo.useRef)(""),C=(0,eo.useRef)(0),M=(0,eo.useRef)(null),P=(0,eo.useRef)("right"),_=(0,eo.useRef)(0),O=h?uQ.Z:eo.Fragment,T=h?{as:ed.g7,allowPinchZoom:!0}:void 0,A=e=>{var t,n;let r=S.current+e,i=x().filter(e=>!e.disabled),a=document.activeElement,o=null===(t=i.find(e=>e.ref.current===a))||void 0===t?void 0:t.textValue,l=function(e,t,n){var r;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===i.length&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return o!==n?o:void 0}(i.map(e=>e.textValue),r,o),s=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),s&&setTimeout(()=>s.focus())};(0,eo.useEffect)(()=>()=>window.clearTimeout(E.current),[]),(0,uD.EW)();let N=(0,eo.useCallback)(e=>{var t,n,r;return P.current===(null===(t=M.current)||void 0===t?void 0:t.side)&&!!(r=null===(n=M.current)||void 0===n?void 0:n.area)&&function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=u>r&&n<(s-o)*(r-l)/(u-l)+o&&(i=!i)}return i}({x:e.clientX,y:e.clientY},r)},[]);return(0,eo.createElement)(cf,{scope:n,searchRef:S,onItemEnter:(0,eo.useCallback)(e=>{N(e)&&e.preventDefault()},[N]),onItemLeave:(0,eo.useCallback)(e=>{var t;N(e)||(null===(t=j.current)||void 0===t||t.focus(),w(null))},[N]),onTriggerLeave:(0,eo.useCallback)(e=>{N(e)&&e.preventDefault()},[N]),pointerGraceTimerRef:C,onPointerGraceIntentChange:(0,eo.useCallback)(e=>{M.current=e},[])},(0,eo.createElement)(O,T,(0,eo.createElement)(uL.M,{asChild:!0,trapped:i,onMountAutoFocus:(0,eh.M)(a,e=>{var t;e.preventDefault(),null===(t=j.current)||void 0===t||t.focus()}),onUnmountAutoFocus:o},(0,eo.createElement)(eq.XB,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f},(0,eo.createElement)(u$,(0,es.Z)({asChild:!0},y,{dir:g.dir,orientation:"vertical",loop:r,currentTabStopId:b,onCurrentTabStopIdChange:w,onEntryFocus:e=>{g.isUsingKeyboardRef.current||e.preventDefault()}}),(0,eo.createElement)(tJ,(0,es.Z)({role:"menu","aria-orientation":"vertical","data-state":cA(m.open),dir:g.dir},v,p,{ref:k,style:{outline:"none",...p.style},onKeyDown:(0,eh.M)(p.onKeyDown,e=>{let t=e.target.closest('[role="menu"]')===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&A(e.key));let i=j.current;if(e.target!==i||!u2.includes(e.key))return;e.preventDefault();let a=x().filter(e=>!e.disabled).map(e=>e.ref.current);u1.includes(e.key)&&a.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(a)}),onBlur:(0,eh.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(E.current),S.current="")}),onPointerMove:(0,eh.M)(e.onPointerMove,cR(e=>{let t=e.target,n=_.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>_.current?"right":"left";P.current=t,_.current=e.clientX}}))})))))))}),cy=(0,eo.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eo.createElement)(em.WV.div,(0,es.Z)({role:"group"},r,{ref:t}))}),cx=(0,eo.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eo.createElement)(em.WV.div,(0,es.Z)({},r,{ref:t}))}),cb="MenuItem",cw="menu.itemSelect",cj=(0,eo.forwardRef)((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,a=(0,eo.useRef)(null),o=co(cb,e.__scopeMenu),l=ch(cb,e.__scopeMenu),s=(0,ec.e)(t,a),u=(0,eo.useRef)(!1);return(0,eo.createElement)(ck,(0,es.Z)({},i,{ref:s,disabled:n,onClick:(0,eh.M)(e.onClick,()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(cw,{bubbles:!0,cancelable:!0});e.addEventListener(cw,e=>null==r?void 0:r(e),{once:!0}),(0,em.jH)(e,t),t.defaultPrevented?u.current=!1:o.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),u.current=!0},onPointerUp:(0,eh.M)(e.onPointerUp,e=>{var t;u.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,eh.M)(e.onKeyDown,e=>{let t=""!==l.searchRef.current;!n&&(!t||" "!==e.key)&&u0.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))}),ck=(0,eo.forwardRef)((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=ch(cb,n),l=cn(n),s=(0,eo.useRef)(null),u=(0,ec.e)(t,s),[c,d]=(0,eo.useState)(!1),[f,h]=(0,eo.useState)("");return(0,eo.useEffect)(()=>{let e=s.current;if(e){var t;h((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[a.children]),(0,eo.createElement)(u6.ItemSlot,{scope:n,disabled:r,textValue:null!=i?i:f},(0,eo.createElement)(uY,(0,es.Z)({asChild:!0},l,{focusable:!r}),(0,eo.createElement)(em.WV.div,(0,es.Z)({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:u,onPointerMove:(0,eh.M)(e.onPointerMove,cR(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus())})),onPointerLeave:(0,eh.M)(e.onPointerLeave,cR(e=>o.onItemLeave(e))),onFocus:(0,eh.M)(e.onFocus,()=>d(!0)),onBlur:(0,eh.M)(e.onBlur,()=>d(!1))}))))}),[cE,cS]=((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,eo.createElement)(cM,{scope:e.__scopeMenu,checked:n},(0,eo.createElement)(cj,(0,es.Z)({role:"menuitemcheckbox","aria-checked":n},i,{ref:t,"data-state":cN(n),onSelect:(0,eh.M)(i.onSelect,()=>null==r?void 0:r(!n),{checkForDefaultPrevented:!1})})))},u9("MenuRadioGroup",{value:void 0,onValueChange:()=>{}})),cC=((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=(0,sN.W)(r);return(0,eo.createElement)(cE,{scope:e.__scopeMenu,value:n,onValueChange:a},(0,eo.createElement)(cy,(0,es.Z)({},i,{ref:t})))},"MenuItemIndicator"),[cM,cP]=u9(cC,{checked:!1}),[c_,cO]=((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=cP(cC,n);return(0,eo.createElement)(ev.z,{present:r||a.checked},(0,eo.createElement)(em.WV.span,(0,es.Z)({},i,{ref:t,"data-state":cN(a.checked)})))},u9("MenuSub")),cT="MenuSubTrigger";function cA(e){return e?"open":"closed"}function cN(e){return e?"checked":"unchecked"}function cR(e){return t=>"mouse"===t.pointerType?e(t):void 0}(e,t)=>{let n=ci(cT,e.__scopeMenu),r=co(cT,e.__scopeMenu),i=cO(cT,e.__scopeMenu),a=ch(cT,e.__scopeMenu),o=(0,eo.useRef)(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:s}=a,u={__scopeMenu:e.__scopeMenu},c=(0,eo.useCallback)(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return(0,eo.useEffect)(()=>c,[c]),(0,eo.useEffect)(()=>{let e=l.current;return()=>{window.clearTimeout(e),s(null)}},[l,s]),(0,eo.createElement)(cl,(0,es.Z)({asChild:!0},u),(0,eo.createElement)(ck,(0,es.Z)({id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":cA(n.open)},e,{ref:(0,ec.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,eh.M)(e.onPointerMove,cR(t=>{a.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||o.current||(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),c()},100))})),onPointerLeave:(0,eh.M)(e.onPointerLeave,cR(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,o="right"===t,s=i[o?"left":"right"],u=i[o?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+(o?-5:5),y:e.clientY},{x:s,y:i.top},{x:u,y:i.top},{x:u,y:i.bottom},{x:s,y:i.bottom}],side:t}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:(0,eh.M)(e.onKeyDown,t=>{let i=""!==a.searchRef.current;if(!e.disabled&&(!i||" "!==t.key)&&u4[r.dir].includes(t.key)){var o;n.onOpenChange(!0),null===(o=n.content)||void 0===o||o.focus(),t.preventDefault()}})})))},(e,t)=>{let n=cc(cd,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=ci(cd,e.__scopeMenu),o=co(cd,e.__scopeMenu),l=cO("MenuSubContent",e.__scopeMenu),s=(0,eo.useRef)(null),u=(0,ec.e)(t,s);return(0,eo.createElement)(u6.Provider,{scope:e.__scopeMenu},(0,eo.createElement)(ev.z,{present:r||a.open},(0,eo.createElement)(u6.Slot,{scope:e.__scopeMenu},(0,eo.createElement)(cv,(0,es.Z)({id:l.contentId,"aria-labelledby":l.triggerId},i,{ref:u,align:"start",side:"rtl"===o.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;o.isUsingKeyboardRef.current&&(null===(t=s.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,eh.M)(e.onFocusOutside,e=>{e.target!==l.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:(0,eh.M)(e.onEscapeKeyDown,o.onClose),onKeyDown:(0,eh.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=u3[o.dir].includes(e.key);if(t&&n){var r;a.onOpenChange(!1),null===(r=l.trigger)||void 0===r||r.focus(),e.preventDefault()}})})))))};let cD=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,l=ct(t),[s,u]=(0,eo.useState)(null),c=(0,eo.useRef)(!1),d=(0,sN.W)(a),f=s2(i);return(0,eo.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,eo.createElement)(t5,l,(0,eo.createElement)(cr,{scope:t,open:n,onOpenChange:d,content:s,onContentChange:u},(0,eo.createElement)(ca,{scope:t,onClose:(0,eo.useCallback)(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:o},r)))},cL=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=ci(cs,t);return(0,eo.createElement)(cu,{scope:t,forceMount:n},(0,eo.createElement)(ev.z,{present:n||a.open},(0,eo.createElement)(t6.h,{asChild:!0,container:i},r)))},cZ="DropdownMenu",[cF,cz]=(0,eu.b)(cZ,[ce]),cV=ce(),[cB,cI]=cF(cZ),cH=(0,eo.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=cI("DropdownMenuTrigger",n),o=cV(n);return(0,eo.createElement)(cl,(0,es.Z)({asChild:!0},o),(0,eo.createElement)(em.WV.button,(0,es.Z)({type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":!!a.open||void 0,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},i,{ref:(0,ec.F)(t,a.triggerRef),onPointerDown:(0,eh.M)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:(0,eh.M)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),[" ","ArrowDown"].includes(e.key)&&e.preventDefault())})})))}),cU=(0,eo.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cI("DropdownMenuContent",n),a=cV(n),o=(0,eo.useRef)(!1);return(0,eo.createElement)(cp,(0,es.Z)({id:i.contentId,"aria-labelledby":i.triggerId},a,r,{ref:t,onCloseAutoFocus:(0,eh.M)(e.onCloseAutoFocus,e=>{var t;o.current||null===(t=i.triggerRef.current)||void 0===t||t.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:(0,eh.M)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)"}}))}),cW=(0,eo.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cV(n);return(0,eo.createElement)(cx,(0,es.Z)({},i,r,{ref:t}))}),cq=(0,eo.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cV(n);return(0,eo.createElement)(cj,(0,es.Z)({},i,r,{ref:t}))}),c$=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:l=!0}=e,s=cV(t),u=(0,eo.useRef)(null),[c=!1,d]=(0,ep.T)({prop:i,defaultProp:a,onChange:o});return(0,eo.createElement)(cB,{scope:t,triggerId:(0,ey.M)(),triggerRef:u,contentId:(0,ey.M)(),open:c,onOpenChange:d,onOpenToggle:(0,eo.useCallback)(()=>d(e=>!e),[d]),modal:l},(0,eo.createElement)(cD,(0,es.Z)({},s,{open:c,onOpenChange:d,dir:r,modal:l}),n))},cK=e=>{let{__scopeDropdownMenu:t,...n}=e,r=cV(t);return(0,eo.createElement)(cL,(0,es.Z)({},r,n))},cY="horizontal",cX=["horizontal","vertical"],cG=(0,eo.forwardRef)((e,t)=>{let{decorative:n,orientation:r=cY,...i}=e,a=cJ(r)?r:cY;return(0,eo.createElement)(em.WV.div,(0,es.Z)({"data-orientation":a},n?{role:"none"}:{"aria-orientation":"vertical"===a?a:void 0,role:"separator"},i,{ref:t}))});function cJ(e){return cX.includes(e)}cG.propTypes={orientation(e,t,n){let r=e[t],i=String(r);return r&&!cJ(r)?Error(`Invalid prop \`orientation\` of value \`${i}\` supplied to \`${n}\`, expected one of: + `),()=>{document.head.removeChild(s)}},[t]),eo.createElement(nK,{isPresent:t,childRef:r,sizeRef:i},eo.cloneElement(e,{ref:r}))}let nX=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o})=>{let l=n$(nG),s=(0,eo.useId)(),u=(0,eo.useMemo)(()=>({id:s,initial:t,isPresent:n,custom:i,onExitComplete:e=>{for(let t of(l.set(e,!0),l.values()))if(!t)return;r&&r()},register:e=>(l.set(e,!1),()=>l.delete(e))}),a?void 0:[n]);return(0,eo.useMemo)(()=>{l.forEach((e,t)=>l.set(t,!1))},[n]),eo.useEffect(()=>{n||l.size||!r||r()},[n]),"popLayout"===o&&(e=eo.createElement(nY,{isPresent:n},e)),eo.createElement(nq.Provider,{value:u},e)};function nG(){return new Map}let nJ=(0,eo.createContext)({});function nQ(e){return(0,eo.useEffect)(()=>()=>e(),[])}let n0=new Set;function n1(e,t,n){e||n0.has(t)||(console.warn(t),n&&console.warn(n),n0.add(t))}let n2=e=>e.key||"",n4=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:o="sync"})=>{i&&(o="wait",n1(!1,"Replace exitBeforeEnter with mode='wait'"));let[l]=function(){let e=nW(),[t,n]=(0,eo.useState)(0),r=(0,eo.useCallback)(()=>{e.current&&n(t+1)},[t]);return[(0,eo.useCallback)(()=>nL.postRender(r),[r]),t]}(),s=(0,eo.useContext)(nJ).forceRender;s&&(l=s);let u=nW(),c=function(e){let t=[];return eo.Children.forEach(e,e=>{(0,eo.isValidElement)(e)&&t.push(e)}),t}(e),d=c,f=new Set,h=(0,eo.useRef)(d),p=(0,eo.useRef)(new Map).current,m=(0,eo.useRef)(!0);if(nU(()=>{m.current=!1,function(e,t){e.forEach(e=>{let n=n2(e);t.set(n,e)})}(c,p),h.current=d}),nQ(()=>{m.current=!0,p.clear(),f.clear()}),m.current)return eo.createElement(eo.Fragment,null,d.map(e=>eo.createElement(nX,{key:n2(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:a,mode:o},e)));d=[...d];let g=h.current.map(n2),v=c.map(n2),y=g.length;for(let e=0;e{if(-1!==v.indexOf(e))return;let n=p.get(e);if(!n)return;let i=g.indexOf(e);d.splice(i,0,eo.createElement(nX,{key:n2(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;l(),r&&r()}},custom:t,presenceAffectsLayout:a,mode:o},n))}),d=d.map(e=>{let t=e.key;return f.has(t)?e:eo.createElement(nX,{key:n2(e),isPresent:!0,presenceAffectsLayout:a,mode:o},e)}),"production"!==nC&&"wait"===o&&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.'),eo.createElement(eo.Fragment,null,f.size?d:d.map(e=>(0,eo.cloneElement)(e)))},n3=(0,eo.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),n5=(0,eo.createContext)({}),n6=(0,eo.createContext)({strict:!1});function n8(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function n7(e){return"string"==typeof e||Array.isArray(e)}function n9(e){return"object"==typeof e&&"function"==typeof e.start}let re=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function rt(e){return n9(e.animate)||re.some(t=>n7(e[t]))}function rn(e){return!!(rt(e)||e.variants)}function rr(e){return Array.isArray(e)?e.join(" "):e}let ri=e=>({isEnabled:t=>e.some(e=>!!t[e])}),ra={measureLayout:ri(["layout","layoutId","drag"]),animation:ri(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:ri(["exit"]),drag:ri(["drag","dragControls"]),focus:ri(["whileFocus"]),hover:ri(["whileHover","onHoverStart","onHoverEnd"]),tap:ri(["whileTap","onTap","onTapStart","onTapCancel"]),pan:ri(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:ri(["whileInView","onViewportEnter","onViewportLeave"])},ro={hasAnimatedSinceResize:!0,hasEverUpdated:!1},rl=1;class rs extends eo.Component{getSnapshotBeforeUpdate(){let{visualElement:e,props:t}=this.props;return e&&e.setProps(t),null}componentDidUpdate(){}render(){return this.props.children}}let ru=(0,eo.createContext)({}),rc=Symbol.for("motionComponentSymbol"),rd=["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 rf(e){if("string"!=typeof e||e.includes("-"));else if(rd.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let rh={},rp=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],rm=new Set(rp);function rg(e,{layout:t,layoutId:n}){return rm.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!rh[e]||"opacity"===e)}let rv=e=>!!(null==e?void 0:e.getVelocity),ry={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rx=(e,t)=>rp.indexOf(e)-rp.indexOf(t);function rb(e){return e.startsWith("--")}let rw=(e,t)=>t&&"number"==typeof e?t.transform(e):e,rj=(e,t)=>n=>Math.max(Math.min(n,t),e),rk=e=>e%1?Number(e.toFixed(5)):e,rE=/(-)?([\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,rC=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function rM(e){return"string"==typeof e}let r_=e=>({test:t=>rM(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),rO=r_("deg"),rT=r_("%"),rP=r_("px"),rA=r_("vh"),rN=r_("vw"),rR=Object.assign(Object.assign({},rT),{parse:e=>rT.parse(e)/100,transform:e=>rT.transform(100*e)}),rD={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},rL=Object.assign(Object.assign({},rD),{transform:rj(0,1)}),rZ=Object.assign(Object.assign({},rD),{default:1}),rF={...rD,transform:Math.round},rz={borderWidth:rP,borderTopWidth:rP,borderRightWidth:rP,borderBottomWidth:rP,borderLeftWidth:rP,borderRadius:rP,radius:rP,borderTopLeftRadius:rP,borderTopRightRadius:rP,borderBottomRightRadius:rP,borderBottomLeftRadius:rP,width:rP,maxWidth:rP,height:rP,maxHeight:rP,size:rP,top:rP,right:rP,bottom:rP,left:rP,padding:rP,paddingTop:rP,paddingRight:rP,paddingBottom:rP,paddingLeft:rP,margin:rP,marginTop:rP,marginRight:rP,marginBottom:rP,marginLeft:rP,rotate:rO,rotateX:rO,rotateY:rO,rotateZ:rO,scale:rZ,scaleX:rZ,scaleY:rZ,scaleZ:rZ,skew:rO,skewX:rO,skewY:rO,distance:rP,translateX:rP,translateY:rP,translateZ:rP,x:rP,y:rP,z:rP,perspective:rP,transformPerspective:rP,opacity:rL,originX:rR,originY:rR,originZ:rP,zIndex:rF,fillOpacity:rL,strokeOpacity:rL,numOctaves:rF};function rV(e,t,n,r){let{style:i,vars:a,transform:o,transformKeys:l,transformOrigin:s}=e;l.length=0;let u=!1,c=!1,d=!0;for(let e in t){let n=t[e];if(rb(e)){a[e]=n;continue}let r=rz[e],f=rw(n,r);if(rm.has(e)){if(u=!0,o[e]=f,l.push(e),!d)continue;n!==(r.default||0)&&(d=!1)}else e.startsWith("origin")?(c=!0,s[e]=f):i[e]=f}if(!t.transform&&(u||r?i.transform=function({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},i,a){let o="";for(let n of(t.sort(rx),t))o+=`${ry[n]||n}(${e[n]}) `;return n&&!e.z&&(o+="translateZ(0)"),o=o.trim(),a?o=a(e,i?"":o):r&&i&&(o="none"),o}(e,n,d,r):i.transform&&(i.transform="none")),c){let{originX:e="50%",originY:t="50%",originZ:n=0}=s;i.transformOrigin=`${e} ${t} ${n}`}}let rB=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function rI(e,t,n){for(let r in t)rv(t[r])||rg(r,n)||(e[r]=t[r])}let rH=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 rU(e){return rH.has(e)}let rW=e=>!rU(e);try{(l=require("@emotion/is-prop-valid").default)&&(rW=e=>e.startsWith("on")?!rU(e):l(e))}catch(e){}function rq(e,t,n){return"string"==typeof e?e:rP.transform(t+n*e)}let r$={offset:"stroke-dashoffset",array:"stroke-dasharray"},rK={offset:"strokeDashoffset",array:"strokeDasharray"};function rY(e,{attrX:t,attrY:n,originX:r,originY:i,pathLength:a,pathSpacing:o=1,pathOffset:l=0,...s},u,c){rV(e,s,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=rq(t,e.x,e.width),i=rq(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!==a&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?r$:rK;e[a.offset]=rP.transform(-r);let o=rP.transform(t),l=rP.transform(n);e[a.array]=`${o} ${l}`}(d,a,o,l,!1)}let rX=()=>({...rB(),attrs:{}}),rG=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function rJ(e,{style:t,vars:n},r,i){for(let a in Object.assign(e.style,t,i&&i.getProjectionStyles(r)),n)e.style.setProperty(a,n[a])}let rQ=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function r0(e,t,n,r){for(let n in rJ(e,t,void 0,r),t.attrs)e.setAttribute(rQ.has(n)?n:rG(n),t.attrs[n])}function r1(e){let{style:t}=e,n={};for(let r in t)(rv(t[r])||rg(r,e))&&(n[r]=t[r]);return n}function r2(e){let t=r1(e);for(let n in e)rv(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function r4(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 r3=e=>Array.isArray(e),r5=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),r6=e=>r3(e)?e[e.length-1]||0:e;function r8(e){let t=rv(e)?e.get():e;return r5(t)?t.toValue():t}let r7=e=>(t,n)=>{let r=(0,eo.useContext)(n5),i=(0,eo.useContext)(nq),a=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,a){let o={latestValues:function(e,t,n,r){let i={},a=r(e);for(let e in a)i[e]=r8(a[e]);let{initial:o,animate:l}=e,s=rt(e),u=rn(e);t&&u&&!s&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===l&&(l=t.animate));let c=!!n&&!1===n.initial,d=(c=c||!1===o)?l:o;return d&&"boolean"!=typeof d&&!n9(d)&&(Array.isArray(d)?d:[d]).forEach(t=>{let n=r4(e,t);if(!n)return;let{transitionEnd:r,transition:a,...o}=n;for(let e in o){let t=o[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]}),i}(r,i,a,e),renderState:t()};return n&&(o.mount=e=>n(r,e,o)),o})(e,t,r,i);return n?a():n$(a)},r9={useVisualState:r7({scrapeMotionValuesFromProps:r2,createRenderState:rX,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}}rY(n,r,{enableHardwareAcceleration:!1},e.transformTemplate),r0(t,n)}})},ie={useVisualState:r7({scrapeMotionValuesFromProps:r1,createRenderState:rB})};function it(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ir(e,t,n,r){(0,eo.useEffect)(()=>{let i=e.current;if(n&&i)return it(i,t,n,r)},[e,t,n,r])}function ii(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}(s=Z||(Z={})).Animate="animate",s.Hover="whileHover",s.Tap="whileTap",s.Drag="whileDrag",s.Focus="whileFocus",s.InView="whileInView",s.Exit="exit";let ia={pageX:0,pageY:0};function io(e,t="page"){return{point:e.touches?function(e,t="page"){let n=e.touches[0]||e.changedTouches[0]||ia;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 il=(e,t=!1)=>{let n=t=>e(t,io(t));return t?e=>{let t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}:n},is=()=>nH&&null===window.onpointerdown,iu=()=>nH&&null===window.ontouchstart,ic=()=>nH&&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(is());else if(iu())return ih[e];else if(ic())return id[e];return e}function im(e,t,n,r){return it(e,ip(t),il(n,"pointerdown"===t),r)}function ig(e,t,n,r){return ir(e,ip(t),n&&il(n,"pointerdown"===t),r)}function iv(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let iy=iv("dragHorizontal"),ix=iv("dragVertical");function ib(e){let t=!1;if("y"===e)t=ix();else if("x"===e)t=iy();else{let e=iy(),n=ix();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function iw(){let e=ib(!0);return!e||(e(),!1)}function ij(e,t,n){return(r,i)=>{!(!ii(r)||iw())&&(e.animationState&&e.animationState.setActive(Z.Hover,t),n&&n(r,i))}}let ik=(e,t)=>!!t&&(e===t||ik(e,t.parentElement)),iE=(e,t)=>n=>t(e(n)),iS=(...e)=>e.reduce(iE),iC=new WeakMap,iM=new WeakMap,i_=e=>{let t=iC.get(e.target);t&&t(e)},iO=e=>{e.forEach(i_)},iT={some:0,all:1},iP=e=>t=>(e(t),null),iA={inView:iP(function({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:i={}}){let a=(0,eo.useRef)({hasEnteredView:!1,isInView:!1}),o=!!(t||n||r);i.once&&a.current.hasEnteredView&&(o=!1),("undefined"==typeof IntersectionObserver?function(e,t,n,{fallback:r=!0}){(0,eo.useEffect)(()=>{e&&r&&("production"!==nC&&n1(!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(Z.InView,!0)}))},[e])}:function(e,t,n,{root:r,margin:i,amount:a="some",once:o}){(0,eo.useEffect)(()=>{if(!e||!n.current)return;let l={root:null==r?void 0:r.current,rootMargin:i,threshold:"number"==typeof a?a:iT[a]};return function(e,t,n){let r=function({root:e,...t}){let n=e||document;iM.has(n)||iM.set(n,{});let r=iM.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(iO,{root:e,...t})),r[i]}(t);return iC.set(e,n),r.observe(e),()=>{iC.delete(e),r.unobserve(e)}}(n.current,l,e=>{let{isIntersecting:r}=e;if(t.isInView===r||(t.isInView=r,o&&!r&&t.hasEnteredView))return;r&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(Z.InView,r);let i=n.getProps(),a=r?i.onViewportEnter:i.onViewportLeave;a&&a(e)})},[e,r,i,a])})(o,a.current,e,i)}),tap:iP(function({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:i}){let a=e||t||n||r,o=(0,eo.useRef)(!1),l=(0,eo.useRef)(null),s={passive:!(t||e||n||h)};function u(){l.current&&l.current(),l.current=null}function c(){return u(),o.current=!1,i.animationState&&i.animationState.setActive(Z.Tap,!1),!iw()}function d(t,r){c()&&(ik(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(),!o.current&&(o.current=!0,l.current=iS(im(window,"pointerup",d,s),im(window,"pointercancel",f,s)),i.animationState&&i.animationState.setActive(Z.Tap,!0),t&&t(e,n))}ig(i,"pointerdown",a?h:void 0,s),nQ(u)}),focus:iP(function({whileFocus:e,visualElement:t}){let{animationState:n}=t;ir(t,"focus",e?()=>{n&&n.setActive(Z.Focus,!0)}:void 0),ir(t,"blur",e?()=>{n&&n.setActive(Z.Focus,!1)}:void 0)}),hover:iP(function({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){ig(r,"pointerenter",e||n?ij(r,!0,e):void 0,{passive:!e}),ig(r,"pointerleave",t||n?ij(r,!1,t):void 0,{passive:!t})})};function iN(){let e=(0,eo.useContext)(nq);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:r}=e,i=(0,eo.useId)();return(0,eo.useEffect)(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function iR(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 iL=function(){},iZ=function(){};let iF=(e,t,n)=>Math.min(Math.max(n,e),t);function iz(e,t){return e*Math.sqrt(1-t*t)}let iV=["duration","bounce"],iB=["stiffness","damping","mass"];function iI(e,t){return t.some(t=>void 0!==e[t])}function iH(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,a=iD(e,["from","to","restSpeed","restDelta"]);let o={done:!1,value:t},{stiffness:l,damping:s,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(!iI(e,iB)&&iI(e,iV)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,a;iL(e<=1e4,"Spring duration must be 10 seconds or less");let o=1-t;o=iF(.05,1,o),e=iF(.01,10,e/1e3),o<1?(i=t=>{let r=t*o,i=r*e;return .001-(r-n)/iz(t,o)*Math.exp(-i)},a=t=>{let r=t*o*e,a=Math.pow(o,2)*Math.pow(t,2)*e,l=Math.exp(-r),s=iz(Math.pow(t,2),o);return(r*n+n-a)*l*(-i(t)+.001>0?-1:1)/s}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>e*e*(n-t)*Math.exp(-t*e));let l=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,a,5/e);if(e*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(l,2)*r;return{stiffness:t,damping:2*o*Math.sqrt(r*t),duration:e}}}(e);(t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(a),h=iU,p=iU;function m(){let e=c?-(c/1e3):0,r=n-t,a=s/(2*Math.sqrt(l*u)),o=Math.sqrt(l/u)/1e3;if(void 0===i&&(i=Math.min(Math.abs(n-t)/100,.4)),a<1){let t=iz(o,a);h=i=>n-Math.exp(-a*o*i)*((e+a*o*r)/t*Math.sin(t*i)+r*Math.cos(t*i)),p=n=>{let i=Math.exp(-a*o*n);return a*o*i*(Math.sin(t*n)*(e+a*o*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+a*o*r)-t*r*Math.sin(t*n))}}else if(1===a)h=t=>n-Math.exp(-o*t)*(r+(e+o*r)*t);else{let t=o*Math.sqrt(a*a-1);h=i=>{let l=Math.exp(-a*o*i),s=Math.min(t*i,300);return n-l*((e+a*o*r)*Math.sinh(s)+t*r*Math.cosh(s))/t}}}return m(),{next:e=>{let t=h(e);if(f)o.done=e>=d;else{let a=1e3*p(e),l=Math.abs(n-t)<=i;o.done=Math.abs(a)<=r&&l}return o.value=o.done?n:t,o},flipTarget:()=>{c=-c,[t,n]=[n,t],m()}}}iH.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let iU=e=>0,iW=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r},iq=(e,t,n)=>-n*e+n*t+e,i$=(e,t)=>n=>!!(rM(n)&&rC.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),iK=(e,t,n)=>r=>{if(!rM(r))return r;let[i,a,o,l]=r.match(rE);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:void 0!==l?parseFloat(l):1}},iY=rj(0,255),iX=Object.assign(Object.assign({},rD),{transform:e=>Math.round(iY(e))}),iG={test:i$("rgb","red"),parse:iK("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+iX.transform(e)+", "+iX.transform(t)+", "+iX.transform(n)+", "+rk(rL.transform(r))+")"},iJ={test:i$("#"),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},iQ={test:i$("hsl","hue"),parse:iK("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+rT.transform(rk(t))+", "+rT.transform(rk(n))+", "+rk(rL.transform(r))+")"};function i0(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 i1({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,a=0,o=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,l=2*n-r;i=i0(l,r,e+1/3),a=i0(l,r,e),o=i0(l,r,e-1/3)}else i=a=o=n;return{red:Math.round(255*i),green:Math.round(255*a),blue:Math.round(255*o),alpha:r}}let i2=(e,t,n)=>{let r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},i4=[iJ,iG,iQ],i3=e=>i4.find(t=>t.test(e)),i5=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,i6=(e,t)=>{let n=i3(e),r=i3(t);iZ(!!n,i5(e)),iZ(!!r,i5(t));let i=n.parse(e),a=r.parse(t);n===iQ&&(i=i1(i),n=iG),r===iQ&&(a=i1(a),r=iG);let o=Object.assign({},i);return e=>{for(let t in o)"alpha"!==t&&(o[t]=i2(i[t],a[t],e));return o.alpha=iq(i.alpha,a.alpha,e),n.transform(o)}},i8={test:e=>iG.test(e)||iJ.test(e)||iQ.test(e),parse:e=>iG.test(e)?iG.parse(e):iQ.test(e)?iQ.parse(e):iJ.parse(e),transform:e=>rM(e)?e:e.hasOwnProperty("red")?iG.transform(e):iQ.transform(e)},i7="${c}",i9="${n}";function ae(e){"number"==typeof e&&(e=`${e}`);let t=[],n=0,r=e.match(rS);r&&(n=r.length,e=e.replace(rS,i7),t.push(...r.map(i8.parse)));let i=e.match(rE);return i&&(e=e.replace(rE,i9),t.push(...i.map(rD.parse))),{values:t,numColors:n,tokenised:e}}function at(e){return ae(e).values}function an(e){let{values:t,numColors:n,tokenised:r}=ae(e),i=t.length;return e=>{let t=r;for(let r=0;r"number"==typeof e?0:e,ai={test:function(e){var t,n,r,i;return isNaN(e)&&rM(e)&&(null!==(n=null===(t=e.match(rE))||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:at,createTransformer:an,getAnimatableNone:function(e){let t=at(e);return an(e)(t.map(ar))}},aa=e=>"number"==typeof e;function ao(e,t){return aa(e)?n=>iq(e,t,n):i8.test(e)?i6(e,t):ac(e,t)}let al=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>ao(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]=ao(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}};function au(e){let t=ai.parse(e),n=t.length,r=0,i=0,a=0;for(let e=0;e{let n=ai.createTransformer(t),r=au(e),i=au(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?iS(al(r.parsed,i.parsed),n):(iL(!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}`)},ad=(e,t)=>n=>iq(e,t,n);function af(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;iZ(a===t.length,"Both input and output ranges must be the same length"),iZ(!r||!Array.isArray(r)||r.length===a-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[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let o=function(e,t,n){var r;let i=[],a=n||("number"==typeof(r=e[0])?ad:"string"==typeof r?i8.test(r)?i6:ac:Array.isArray(r)?al:"object"==typeof r?as:void 0),o=e.length-1;for(let n=0;nn(iW(e,t,r))}(e,o):function(e,t){let n=e.length,r=n-1;return i=>{let a=0,o=!1;if(i<=e[0]?o=!0:i>=e[r]&&(a=r-1,o=!0),!o){let t=1;for(;ti)&&t!==r;t++);a=t-1}let l=iW(e[a],e[a+1],i);return t[a](l)}}(e,o);return n?t=>l(iF(e[0],e[a-1],t)):l}let ah=e=>t=>1-e(1-t),ap=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,am=e=>t=>t*t*((e+1)*t-e),ag=4/11,av=8/11,ay=e=>e,ax=e=>Math.pow(e,2),ab=ah(ax),aw=ap(ax),aj=e=>1-Math.sin(Math.acos(e)),ak=ah(aj),aE=ap(ak),aS=am(1.525),aC=ah(aS),aM=ap(aS),a_=(e=>{let t=am(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(0),aO=4356/361,aT=35442/1805,aP=16061/1805,aA=e=>{if(1===e||0===e)return e;let t=e*e;return e0!==n?n/(t-1):0)}(o)).map(e=>e*i);function s(){return af(l,o,{ease:Array.isArray(n)?n:o.map(()=>n||aw).splice(0,o.length-1)})}let u=s();return{next:e=>(a.value=u(e),a.done=e>=i,a),flipTarget:()=>{o.reverse(),u=s()}}}let aD={keyframes:aR,spring:iH,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:a}){let o={done:!1,value:t},l=n*e,s=t+l,u=void 0===a?s:a(s);return u!==s&&(l=u-t),{next:e=>{let t=-l*Math.exp(-e/r);return o.done=!(t>i||t<-i),o.value=o.done?u:u+t,o},flipTarget:()=>{}}}};function aL(e,t,n=0){return e-t-n}let aZ=e=>{let t=({delta:t})=>e(t);return{start:()=>nL.update(t,!0),stop:()=>nZ.update(t)}};function aF(e){let t,n,r;var i,{from:a,autoplay:o=!0,driver:l=aZ,elapsed:s=0,repeat:u=0,repeatType:c="loop",repeatDelay:d=0,onPlay:f,onStop:h,onComplete:p,onRepeat:m,onUpdate:g}=e,v=iD(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:y}=v,x=0,b=v.duration,w=!1,j=!0,k=function(e){if(Array.isArray(e.to))return aR;if(aD[e.type])return aD[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 iH;return aR}(v);(null===(i=k.needsInterpolation)||void 0===i?void 0:i.call(k,a,y))&&(r=af([0,100],[a,y],{clamp:!1}),a=0,y=100);let E=k(Object.assign(Object.assign({},v),{from:a,to:y}));return o&&(null==f||f(),(t=l(function(e){if(j||(e=-e),s+=e,!w){let e=E.next(Math.max(0,s));n=e.value,r&&(n=r(n)),w=j?e.done:s<=0}if(null==g||g(n),w){if(0===x&&(null!=b||(b=s)),x=a+d:i<=-d)&&(x++,"reverse"===c?s=function(e,t,n=0,r=!0){return r?aL(t+-e,t,n):t-(e-t)+n}(s,b,d,j=x%2==0):(s=aL(s,b,d),"mirror"===c&&E.flipTarget()),w=!1,m&&m())}else t.stop(),p&&p()}})).start()),{stop:()=>{null==h||h(),t.stop()}}}let az=e=>1e3*e,aV=(e,t)=>1-3*t+3*e,aB=(e,t)=>3*t-6*e,aI=e=>3*e,aH=(e,t,n)=>((aV(t,n)*e+aB(t,n))*e+aI(t))*e,aU=(e,t,n)=>3*aV(t,n)*e*e+2*aB(t,n)*e+aI(t),aW={linear:ay,easeIn:ax,easeInOut:aw,easeOut:ab,circIn:aj,circInOut:aE,circOut:ak,backIn:aS,backInOut:aM,backOut:aC,anticipate:a_,bounceIn:aN,bounceInOut:e=>e<.5?.5*(1-aA(1-2*e)):.5*aA(2*e-1)+.5,bounceOut:aA},aq=e=>{if(Array.isArray(e)){iZ(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 ay;let i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=aH(.1*t,e,n);return a=>0===a||1===a?a:aH(function(t){let r=0,a=1;for(;10!==a&&i[a]<=t;++a)r+=.1;let o=r+(t-i[--a])/(i[a+1]-i[a])*.1,l=aU(o,e,n);return l>=.001?function(e,t,n,r){for(let i=0;i<8;++i){let i=aU(t,n,r);if(0===i)break;let a=aH(t,n,r)-e;t-=a/i}return t}(t,o,e,n):0===l?o:function(e,t,n,r,i){let a,o;let l=0;do(a=aH(o=t+(n-t)/2,r,i)-e)>0?n=o:t=o;while(Math.abs(a)>1e-7&&++l<10);return o}(t,r,r+.1,e,n)}(a),t,r)}(t,n,r,i)}return"string"==typeof e?(iZ(void 0!==aW[e],`Invalid easing type '${e}'`),aW[e]):e},a$=e=>Array.isArray(e)&&"number"!=typeof e[0],aK=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&ai.test(t)&&!t.startsWith("url(")),aY=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),aX=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),aG=()=>({type:"keyframes",ease:"linear",duration:.3}),aJ=e=>({type:"keyframes",duration:.8,values:e}),aQ={x:aY,y:aY,z:aY,rotate:aY,rotateX:aY,rotateY:aY,rotateZ:aY,scaleX:aX,scaleY:aX,scale:aX,opacity:aG,backgroundColor:aG,color:aG,default:aX},a0=(e,t)=>{let n;return n=r3(t)?aJ:aQ[e]||aQ.default,{to:t,...n(t)}},a1=new Set(["brightness","contrast","saturate","opacity"]);function a2(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(rE)||[];if(!r)return e;let i=n.replace(r,""),a=a1.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}let a4=/([a-z-]*)\(.*?\)/g,a3=Object.assign(Object.assign({},ai),{getAnimatableNone:e=>{let t=e.match(a4);return t?t.map(a2).join(" "):e}}),a5={...rz,color:i8,backgroundColor:i8,outlineColor:i8,fill:i8,stroke:i8,borderColor:i8,borderTopColor:i8,borderRightColor:i8,borderBottomColor:i8,borderLeftColor:i8,filter:a3,WebkitFilter:a3},a6=e=>a5[e];function a8(e,t){var n;let r=a6(e);return r!==a3&&(r=ai),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}let a7={current:!1};function a9(e,t){let n=performance.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(nZ.read(r),e(a-t))};return nL.read(r,!0),()=>nZ.read(r)}let oe=!1;function ot(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function on(e){return"number"==typeof e?0:a8("",e)}function or(e,t){return e[t]||e.default||e}function oi(e,t,n,r={}){return a7.current&&(r={type:!1}),t.start(i=>{var a,o,l;let s,u;let c=function(e,t,n,r,i){let a=or(r,e)||{},o=void 0!==a.from?a.from:t.get(),l=aK(e,n);"none"===o&&l&&"string"==typeof n?o=a8(e,n):ot(o)&&"string"==typeof n?o=on(n):!Array.isArray(n)&&ot(n)&&"string"==typeof o&&(n=on(o));let s=aK(e,o);return iL(s===l,`You are trying to animate ${e} from "${o}" to "${n}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${n} via the \`style\` property.`),s&&l&&!1!==a.type?function(){var r;let l={from:o,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:e=>t.set(e)};return"inertia"===a.type||"decay"===a.type?function({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:a=750,bounceStiffness:o=500,bounceDamping:l=10,restDelta:s=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:f,onStop:h}){let p;function m(e){return void 0!==n&&er}function g(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){v(Object.assign({type:"spring",stiffness:o,damping:l,restDelta:s},e))}if(m(e))y({from:e,velocity:t,to:g(e)});else{let r,o,l=i*t+e;void 0!==u&&(l=u(l));let c=g(l),d=c===n?-1:1;v({type:"decay",from:e,velocity:t,timeConstant:a,power:i,restDelta:s,modifyTarget:u,onUpdate:m(l)?e=>{var n,i;r=o,o=e,n=e-r,t=(i=nI().delta)?1e3/i*n:0,(1===d&&e>c||-1===d&&enull==p?void 0:p.stop()}}({...l,...a}):aF({...(r=a,Array.isArray(l.to)&&void 0===r.duration&&(r.duration=.8),Array.isArray(l.to)&&null===l.to[0]&&(l.to=[...l.to],l.to[0]=l.from),!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:l,from:s,...u}){return!!Object.keys(u).length}(r)&&(r={...r,...a0(e,l.to)}),{...l,...function({ease:e,times:t,yoyo:n,flip:r,loop:i,...a}){let o={...a};return t&&(o.offset=t),a.duration&&(o.duration=az(a.duration)),a.repeatDelay&&(o.repeatDelay=az(a.repeatDelay)),e&&(o.ease=a$(e)?e.map(aq):aq(e)),"tween"===a.type&&(o.type="keyframes"),(n||i||r)&&(iL(!oe,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),oe=!0,n?o.repeatType="reverse":i?o.repeatType="loop":r&&(o.repeatType="mirror"),o.repeat=i||n||r||a.repeat),"spring"!==a.type&&(o.type="keyframes"),o}(r)}),onUpdate:e=>{l.onUpdate(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{l.onComplete(),a.onComplete&&a.onComplete()}})}:function(){let e=r6(n);return t.set(e),i(),a.onUpdate&&a.onUpdate(e),a.onComplete&&a.onComplete(),{stop:()=>{}}}}(e,t,n,r,i),d=null!==(l=null!==(o=(or(a=r,e)||{}).delay)&&void 0!==o?o:a.delay)&&void 0!==l?l:0,f=()=>s=c();return d?u=a9(f,az(d)):f(),()=>{u&&u(),s&&s.stop()}})}let oa=e=>/^\-?\d*\.?\d+$/.test(e),oo=e=>/^0[^.\s]+$/.test(e);function ol(e,t){-1===e.indexOf(t)&&e.push(t)}function os(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class ou{constructor(){this.subscriptions=[]}add(e){return ol(this.subscriptions,e),()=>os(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 od{constructor(e){this.version="7.6.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new ou,this.velocityUpdateSubscribers=new ou,this.renderSubscribers=new ou,this.canTrackVelocity=!1,this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:n,timestamp:r}=nI();this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,nL.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=()=>nL.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=oc(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)?1e3/t*e: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 of(e){return new od(e)}let oh=e=>t=>t.test(e),op=[rD,rP,rT,rO,rN,rA,{test:e=>"auto"===e,parse:e=>e}],om=e=>op.find(oh(e)),og=[...op,i8,ai],ov=e=>og.find(oh(e));function oy(e,t,n){let r=e.getProps();return r4(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 ox(e){return!!(rv(e)&&e.add)}function ob(e,t,n={}){var r;let i=oy(e,t,n.custom),{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);let o=i?()=>ow(e,i,n):()=>Promise.resolve(),l=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?(r=0)=>{let{delayChildren:i=0,staggerChildren:o,staggerDirection:l}=a;return function(e,t,n=0,r=0,i=1,a){let o=[],l=(e.variantChildren.size-1)*r,s=1===i?(e=0)=>e*r:(e=0)=>l-e*r;return Array.from(e.variantChildren).sort(oj).forEach((e,r)=>{o.push(ob(e,t,{...a,delay:n+s(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(o)}(e,t,i+r,o,l,n)}:()=>Promise.resolve(),{when:s}=a;if(!s)return Promise.all([o(),l(n.delay)]);{let[e,t]="beforeChildren"===s?[o,l]:[l,o];return e().then(t)}}function ow(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var a;let{transition:o=e.getDefaultTransition(),transitionEnd:l,...s}=e.makeTargetAnimatable(t),u=e.getValue("willChange");r&&(o=r);let c=[],d=i&&(null===(a=e.animationState)||void 0===a?void 0:a.getState()[i]);for(let t in s){let r=e.getValue(t),i=s[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 a={delay:n,...o};e.shouldReduceMotion&&rm.has(t)&&(a={...a,type:!1,delay:0});let l=oi(t,r,i,a);ox(u)&&(u.add(t),l=l.then(()=>u.remove(t))),c.push(l)}return Promise.all(c).then(()=>{l&&function(e,t){let n=oy(e,t),{transitionEnd:r={},transition:i={},...a}=n?e.makeTargetAnimatable(n,!1):{};for(let t in a={...a,...r}){let n=r6(a[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,of(n))}}(e,l)})}function oj(e,t){return e.sortNodePosition(t)}let ok=[Z.Animate,Z.InView,Z.Focus,Z.Hover,Z.Tap,Z.Drag,Z.Exit],oE=[...ok].reverse(),oS=ok.length;function oC(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let oM={animation:iP(({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))r=Promise.all(t.map(t=>ob(e,t,n)));else if("string"==typeof t)r=ob(e,t,n);else{let i="function"==typeof t?oy(e,t,n.custom):t;r=ow(e,i,n)}return r.then(()=>e.notify("AnimationComplete",t))})(e,t,n))),n={[Z.Animate]:oC(!0),[Z.InView]:oC(),[Z.Hover]:oC(),[Z.Tap]:oC(),[Z.Drag]:oC(),[Z.Focus]:oC(),[Z.Exit]:oC()},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 a(a,o){var l,s;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(v)?v:[v],E=k.reduce(i,{});!1===x&&(E={});let{prevResolvedValues:S={}}=g,C={...S,...E},M=e=>{j=!0,f.delete(e),g.needsAnimating[e]=!0};for(let e in C){let t=E[e],n=S[e];h.hasOwnProperty(e)||(t!==n?r3(t)&&r3(n)?!iR(t,n)||w?M(e):g.protectedKeys[e]=!0:void 0!==t?M(e):f.add(e):void 0!==t&&f.has(e)?M(e):g.protectedKeys[e]=!0)}g.prevProp=v,g.prevResolvedValues=E,g.isActive&&(h={...h,...E}),r&&e.blockInitialAnimation&&(j=!1),j&&!b&&d.push(...k.map(e=>({animation:e,options:{type:m,...a}})))}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:a,setActive:function(t,r,i){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;let l=a(i,t);for(let e in n)n[e].protectedKeys={};return l},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}(e)),n9(t)&&(0,eo.useEffect)(()=>t.subscribe(e),[t])}),exit:iP(e=>{let{custom:t,visualElement:n}=e,[r,i]=iN(),a=(0,eo.useContext)(nq);(0,eo.useEffect)(()=>{n.isPresent=r;let e=n.animationState&&n.animationState.setActive(Z.Exit,!r,{custom:a&&a.custom||t});e&&!r&&e.then(i)},[r])})},o_=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),oO=e=>o_(e)&&e.hasOwnProperty("z"),oT=(e,t)=>Math.abs(e-t);function oP(e,t){return aa(e)&&aa(t)?oT(e,t):o_(e)&&o_(t)?Math.sqrt(Math.pow(oT(e.x,t.x),2)+Math.pow(oT(e.y,t.y),2)+Math.pow(oO(e)&&oO(t)?oT(e.z,t.z):0,2)):void 0}class oA{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=oD(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=oP(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=nI();this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{if(this.lastMoveEvent=e,this.lastMoveEventInfo=oN(t,this.transformPagePoint),ii(e)&&0===e.buttons){this.handlePointerUp(e,t);return}nL.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r}=this.handlers,i=oD(oN(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},e.touches&&e.touches.length>1)return;this.handlers=t,this.transformPagePoint=n;let r=oN(io(e),this.transformPagePoint),{point:i}=r,{timestamp:a}=nI();this.history=[{...i,timestamp:a}];let{onSessionStart:o}=t;o&&o(e,oD(r,this.history)),this.removeListeners=iS(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(),nZ.update(this.updatePoint)}}function oN(e,t){return t?{point:t(e.point)}:e}function oR(e,t){return{x:e.x-t.x,y:e.y-t.y}}function oD({point:e},t){return{point:e,delta:oR(e,oL(t)),offset:oR(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=oL(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>az(.1)));)n--;if(!r)return{x:0,y:0};let a=(i.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(t,0)}}function oL(e){return e[e.length-1]}function oZ(e){return e.max-e.min}function oF(e,t=0,n=.01){return oP(e,t)({translate:0,scale:1,origin:0,originPoint:0}),oY=()=>({x:oK(),y:oK()}),oX=()=>({min:0,max:0}),oG=()=>({x:oX(),y:oX()});function oJ(e){return[e("x"),e("y")]}function oQ({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function o0(e){return void 0===e||1===e}function o1({scale:e,scaleX:t,scaleY:n}){return!o0(e)||!o0(t)||!o0(n)}function o2(e){return o1(e)||o4(e)||e.z||e.rotate||e.rotateX||e.rotateY}function o4(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function o3(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function o5(e,t=0,n=1,r,i){e.min=o3(e.min,t,n,r,i),e.max=o3(e.max,t,n,r,i)}function o6(e,{x:t,y:n}){o5(e.x,t.translate,t.scale,t.originPoint),o5(e.y,n.translate,n.scale,n.originPoint)}function o8(e,t){e.min=e.min+t,e.max=e.max+t}function o7(e,t,[n,r,i]){let a=void 0!==t[i]?t[i]:.5,o=iq(e.min,e.max,a);o5(e,t[n],t[r],o,t.scale)}let o9=["x","scaleX","originX"],le=["y","scaleY","originY"];function lt(e,t){o7(e.x,t,o9),o7(e.y,t,le)}function ln(e,t){return oQ(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 lr=new WeakMap;class li{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=oG(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){!1!==this.visualElement.isPresent&&(this.panSession=new oA(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(io(e,"page").point)},onStart:(e,t)=>{var n;let{drag:r,dragPropagation:i,onDragStart:a}=this.getProps();(!r||i||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ib(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),oJ(e=>{var t,n;let r=this.getAxisMotionValue(e).get()||0;if(rT.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=oZ(i);r=parseFloat(r)/100*e}}this.originPoint[e]=r}),null==a||a(e,t),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(Z.Drag,!0))},onMove:(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:o}=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}(o),null!==this.currentDirection&&(null==i||i(this.currentDirection));return}this.updateAxis("x",t.point,o),this.updateAxis("y",t.point,o),this.visualElement.render(),null==a||a(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(Z.Drag,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!la(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,{min:t,max:n},r){return void 0!==t&&en&&(e=r?iq(n,e,r.max):Math.min(e,n)),e}(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&n8(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:oU(e.x,n,i),y:oU(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:oq(e,"left","right"),y:oq(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&oJ(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||!n8(t))return!1;let r=t.current;iZ(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 a=function(e,t,n){let r=ln(e,n),{scroll:i}=t;return i&&(o8(r.x,i.x),o8(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),o={x:oW((e=i.layout.actual).x,a.x),y:oW(e.y,a.y)};if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=oQ(e))}return o}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{};return Promise.all(oJ(o=>{var s;if(!la(o,t,this.currentDirection))return;let u=null!==(s=null==l?void 0:l[o])&&void 0!==s?s:{};a&&(u={min:0,max:0});let c={type:"inertia",velocity:n?e[o]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...u};return this.startAxisValueAnimation(o,c)})).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return oi(e,n,0,t)}stopAnimation(){oJ(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){var t,n;let r="_drag"+e.toUpperCase();return this.visualElement.getProps()[r]||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){oJ(t=>{let{drag:n}=this.getProps();if(!la(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.actual[t];i.set(e[t]-iq(n,a,.5))}})}scalePositionWithinConstraints(){var e;if(!this.visualElement.current)return;let{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!n8(n)||!r||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};oJ(e=>{let t=this.getAxisMotionValue(e);if(t){let n=t.get();i[e]=function(e,t){let n=.5,r=oZ(e),i=oZ(t);return i>r?n=iW(t.min,t.max-r,e.min):r>i&&(n=iW(e.min,e.max-i,t.min)),iF(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",null===(e=r.root)||void 0===e||e.updateScroll(),r.updateLayout(),this.resolveConstraints(),oJ(e=>{if(!la(e,t,null))return;let n=this.getAxisMotionValue(e),{min:r,max:a}=this.constraints[e];n.set(iq(r,a,i[e]))})}addListeners(){var e;if(!this.visualElement.current)return;lr.set(this.visualElement,this);let t=im(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();n8(e)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",n);r&&!r.layout&&(null===(e=r.root)||void 0===e||e.updateScroll(),r.updateLayout()),n();let a=it(window,"resize",()=>this.scalePositionWithinConstraints()),o=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(oJ(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(),t(),i(),null==o||o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=.35,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}}function la(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let lo={pan:iP(function({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:i}){let a=(0,eo.useRef)(null),{transformPagePoint:o}=(0,eo.useContext)(n3),l={onSessionStart:r,onStart:t,onMove:e,onEnd:(e,t)=>{a.current=null,n&&n(e,t)}};(0,eo.useEffect)(()=>{null!==a.current&&a.current.updateHandlers(l)}),ig(i,"pointerdown",(e||t||n||r)&&function(e){a.current=new oA(e,l,{transformPagePoint:o})}),nQ(()=>a.current&&a.current.end())}),drag:iP(function(e){let{dragControls:t,visualElement:n}=e,r=n$(()=>new li(n));(0,eo.useEffect)(()=>t&&t.subscribe(r),[r,t]),(0,eo.useEffect)(()=>r.addListeners(),[r])})};function ll(e){return"string"==typeof e&&e.startsWith("var(--")}let ls=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function lu(e,t,n=1){iZ(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=ls.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]}(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);return a?a.trim():ll(i)?lu(i,t,n+1):i}let lc=new Set(["width","height","top","left","right","bottom","x","y"]),ld=e=>lc.has(e),lf=e=>Object.keys(e).some(ld),lh=(e,t)=>{e.set(t,!1),e.set(t)},lp=e=>e===rD||e===rP;(u=F||(F={})).width="width",u.height="height",u.left="left",u.right="right",u.top="top",u.bottom="bottom";let lm=(e,t)=>parseFloat(e.split(", ")[t]),lg=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/);if(i)return lm(i[1],t);{let t=r.match(/^matrix\((.+)\)$/);return t?lm(t[1],e):0}},lv=new Set(["x","y","z"]),ly=rp.filter(e=>!lv.has(e)),lx={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:lg(4,13),y:lg(5,14)},lb=(e,t,n)=>{let r=t.measureViewportBox(),i=t.current,a=getComputedStyle(i),{display:o}=a,l={};"none"===o&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{l[e]=lx[e](r,a)}),t.render();let s=t.measureViewportBox();return n.forEach(n=>{lh(t.getValue(n),l[n]),e[n]=lx[n](s,a)}),e},lw=(e,t,n={},r={})=>{t={...t},r={...r};let i=Object.keys(t).filter(ld),a=[],o=!1,l=[];if(i.forEach(i=>{let s;let u=e.getValue(i);if(!e.hasValue(i))return;let c=n[i],d=om(c),f=t[i];if(r3(f)){let e=f.length,t=null===f[0]?1:0;d=om(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),o=!0),l.push(i),r[i]=void 0!==r[i]?r[i]:t[i],lh(u,f))}}),!l.length)return{target:t,transitionEnd:r};{let n=l.indexOf("height")>=0?window.pageYOffset:null,i=lb(t,e,l);return a.length&&a.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),nH&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}},lj=(e,t,n,r)=>{var i,a;let o=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(!ll(t))return;let n=lu(t,r);n&&e.set(n)}),t){let e=t[i];if(!ll(e))continue;let a=lu(e,r);a&&(t[i]=a,n&&void 0===n[i]&&(n[i]=e))}return{target:t,transitionEnd:n}}(e,t,r);return t=o.target,r=o.transitionEnd,i=t,a=r,lf(i)?lw(e,i,n,a):{target:i,transitionEnd:a}},lk={current:null},lE={current:!1},lS=Object.keys(ra),lC=lS.length,lM=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class l_{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=()=>nL.render(this.render,!1,!0);let{latestValues:a,renderState:o}=r;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=o,this.parent=e,this.props=t,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=i,this.isControllingVariants=rt(t),this.isVariantNode=rn(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:l,...s}=this.scrapeMotionValuesFromProps(t);for(let e in s){let t=s[e];void 0!==a[e]&&rv(t)&&(t.set(a[e],!1),ox(l)&&l.add(e))}if(t.values)for(let e in t.values){let n=t.values[e];void 0!==a[e]&&rv(n)&&n.set(a[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)),lE.current||function(){if(lE.current=!0,nH){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>lk.current=e.matches;e.addListener(t),t()}else lk.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||lk.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(),nZ.update(this.notifyUpdate),nZ.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&&nL.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,a){let o=[];"production"!==nC&&n&&t&&iZ(!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:a,layoutScroll:s})}return o}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):oG()}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=of(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=r4(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||rv(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 ou),this.events[e].add(t)}notify(e,...t){var n;null===(n=this.events[e])||void 0===n||n.notify(...t)}}let lO=["initial",...ok],lT=lO.length;class lP extends l_{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 a=function(e,t,n){var r;let i={};for(let a in e){let e=function(e,t){if(t)return(t[e]||t.default||t).from}(a,t);i[a]=void 0!==e?e:null===(r=n.getValue(a))||void 0===r?void 0:r.get()}return i}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),a&&(a=r(a))),i){!function(e,t,n){var r,i;let a=Object.keys(t).filter(t=>!e.hasValue(t)),o=a.length;if(o)for(let l=0;lrf(e)?new lN(t,{enableHardwareAcceleration:!1}):new lA(t,{enableHardwareAcceleration:!0});function lD(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let lL={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!rP.test(e))return e;e=parseFloat(e)}let n=lD(e,t.target.x),r=lD(e,t.target.y);return`${n}% ${r}%`}},lZ="_$css",lF={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=e.includes("var("),a=[];i&&(e=e.replace(ls,e=>(a.push(e),lZ)));let o=ai.parse(e);if(o.length>5)return r;let l=ai.createTransformer(e),s="number"!=typeof o[0]?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;o[0+s]/=u,o[1+s]/=c;let d=iq(u,c,.5);"number"==typeof o[2+s]&&(o[2+s]/=d),"number"==typeof o[3+s]&&(o[3+s]/=d);let f=l(o);if(i){let e=0;f=f.replace(lZ,()=>{let t=a[e];return e++,t})}return f}};class lz extends eo.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;Object.assign(rh,lV),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()})),ro.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,a=n.projection;return a&&(a.isPresent=i,r||e.layoutDependency!==t||void 0===t?a.willUpdate():this.safeToRemove(),e.isPresent===i||(i?a.promote():a.relegate()||nL.postRender(()=>{var e;(null===(e=a.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 lV={borderRadius:{...lL,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:lL,borderTopRightRadius:lL,borderBottomLeftRadius:lL,borderBottomRightRadius:lL,boxShadow:lF},lB=["TopLeft","TopRight","BottomLeft","BottomRight"],lI=lB.length,lH=e=>"string"==typeof e?parseFloat(e):e,lU=e=>"number"==typeof e||rP.test(e);function lW(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}let lq=lK(0,.5,ak),l$=lK(.5,.95,ay);function lK(e,t,n){return r=>rt?1:n(iW(e,t,r))}function lY(e,t){e.min=t.min,e.max=t.max}function lX(e,t){lY(e.x,t.x),lY(e.y,t.y)}function lG(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 lJ(e,t,[n,r,i],a,o){!function(e,t=0,n=1,r=.5,i,a=e,o=e){if(rT.test(t)&&(t=parseFloat(t),t=iq(o.min,o.max,t/100)-o.min),"number"!=typeof t)return;let l=iq(a.min,a.max,r);e===a&&(l-=t),e.min=lG(e.min,t,n,l,i),e.max=lG(e.max,t,n,l,i)}(e,t[n],t[r],t[i],t.scale,a,o)}let lQ=["x","scaleX","originX"],l0=["y","scaleY","originY"];function l1(e,t,n,r){lJ(e.x,t,lQ,null==n?void 0:n.x,null==r?void 0:r.x),lJ(e.y,t,l0,null==n?void 0:n.y,null==r?void 0:r.y)}function l2(e){return 0===e.translate&&1===e.scale}function l4(e){return l2(e.x)&&l2(e.y)}function l3(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 l5(e){return oZ(e.x)/oZ(e.y)}class l6{constructor(){this.members=[]}add(e){ol(this.members,e),e.scheduleRender()}remove(e){if(os(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,a;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(a=null===(r=e.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===a||a.call(i)})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function l8(e,t,n){let r=e.x.translate/t.x,i=e.y.translate/t.y,a=`translate3d(${r}px, ${i}px, 0) `;if(a+=`scale(${1/t.x}, ${1/t.y}) `,n){let{rotate:e,rotateX:t,rotateY:r}=n;e&&(a+=`rotate(${e}deg) `),t&&(a+=`rotateX(${t}deg) `),r&&(a+=`rotateY(${r}deg) `)}let o=e.x.scale*t.x,l=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"==(a+=`scale(${o}, ${l})`)?"none":a}let l7=(e,t)=>e.depth-t.depth;class l9{constructor(){this.children=[],this.isDirty=!1}add(e){ol(this.children,e),this.isDirty=!0}remove(e){os(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(l7),this.isDirty=!1,this.children.forEach(e)}}let se=["","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(ss),this.nodes.forEach(su)},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=a9(r,250),ro.hasAnimatedSinceResize&&(ro.hasAnimatedSinceResize=!1,this.nodes.forEach(sl))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&o&&(i||a)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{var i,a,l,s,u;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let c=null!==(a=null!==(i=this.options.transition)&&void 0!==i?i:o.getDefaultTransition())&&void 0!==a?a:sm,{onLayoutAnimationStart:d,onLayoutAnimationComplete:f}=o.getProps(),h=!this.targetLayout||!l3(this.targetLayout,r)||n,p=!t&&n;if((null===(l=this.resumeFrom)||void 0===l?void 0:l.instance)||p||t&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,p);let t={...or(c,"layout"),onPlay:d,onComplete:f};o.shouldReduceMotion&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||sl(this),this.isLead()&&(null===(u=(s=this.options).onExitComplete)||void 0===u||u.call(s));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,nZ.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(sc))}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=!!(s&&!u&&!0===this.options.crossfade&&!this.path.some(sp));this.animationProgress=0,this.mixTargetDelta=t=>{var n,r,d;let f=t/1e3;sf(o.x,e.x,f),sf(o.y,e.y,f),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(oH(l,this.layout.actual,this.relativeParent.layout.actual),r=this.relativeTarget,d=this.relativeTargetOrigin,sh(r.x,d.x,l.x,f),sh(r.y,d.y,l.y,f)),s&&(this.animationValues=a,function(e,t,n,r,i,a){var o,l,s,u;i?(e.opacity=iq(0,null!==(o=n.opacity)&&void 0!==o?o:1,lq(r)),e.opacityExit=iq(null!==(l=t.opacity)&&void 0!==l?l:1,0,l$(r))):a&&(e.opacity=iq(null!==(s=t.opacity)&&void 0!==s?s:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(let i=0;i{ro.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n={}){let r=rv(e)?e:of(e);return oi("",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&&sx(this.options.animationType,this.layout.actual,r.actual)){n=this.target||oG();let t=oZ(this.layout.actual.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=oZ(this.layout.actual.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}lX(t,n),lt(t,i),oV(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new l6),this.sharedNodes.get(e).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(sa),this.root.sharedNodes.clear()}}}function sn(e){e.updateLayout()}function sr(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?oJ(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=oZ(n);n.min=t[e].min,n.max=n.min+r}):sx(r,i.layout,t)&&oJ(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=oZ(t[e]);n.max=n.min+r});let a=oY();oV(a,t,i.layout);let o=oY();i.isShared?oV(o,e.applyTransform(n,!0),i.measured):oV(o,t,i.layout);let l=!l4(a),s=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:e,layout:r}=n;if(e&&r){let n=oG();oH(n,i.layout,e.layout);let a=oG();oH(a,t,r.actual),l3(n,a)||(s=!0)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:i,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:s})}else e.isLead()&&(null===(r=(n=e.options).onExitComplete)||void 0===r||r.call(n));e.options.transition=void 0}function si(e){e.clearSnapshot()}function sa(e){e.clearMeasurements()}function so(e){let{visualElement:t}=e.options;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sl(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function ss(e){e.resolveTargetDelta()}function su(e){e.calcProjection()}function sc(e){e.resetRotation()}function sd(e){e.removeLeadSnapshot()}function sf(e,t,n){e.translate=iq(t.translate,0,n),e.scale=iq(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function sh(e,t,n,r){e.min=iq(t.min,n.min,r),e.max=iq(t.max,n.max,r)}function sp(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let sm={duration:.45,ease:[.4,0,.1,1]};function sg(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).querySelector(`[data-projection-id="${t}"]`);r&&e.mount(r,!0)}function sv(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function sy(e){sv(e.x),sv(e.y)}function sx(e,t,n){return"position"===e||"preserve-aspect"===e&&!function(e,t,n=.1){return oP(e,t)<=n}(l5(t),l5(n),.2)}let sb=st({attachResizeListener:(e,t)=>it(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sw={current:void 0},sj=st({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sw.current){let e=new sb(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),sw.current=e}return sw.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),sk={...oM,...iA,...lo,measureLayout:function(e){let[t,n]=iN(),r=(0,eo.useContext)(nJ);return eo.createElement(lz,{...e,layoutGroup:r,switchLayoutGroup:(0,eo.useContext)(ru),isPresent:t,safeToRemove:n})}},sE=function(e){function t(t,n={}){return function({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:r,useVisualState:i,Component:a}){e&&function(e){for(let t in e)"projectionNodeConstructor"===t?ra.projectionNodeConstructor=e[t]:ra[t].Component=e[t]}(e);let o=(0,eo.forwardRef)(function(o,l){var s;let u={...(0,eo.useContext)(n3),...o,layoutId:function({layoutId:e}){let t=(0,eo.useContext)(nJ).id;return t&&void 0!==e?t+"-"+e:e}(o)},{isStatic:c}=u,d=null,f=function(e){let{initial:t,animate:n}=function(e,t){if(rt(e)){let{initial:t,animate:n}=e;return{initial:!1===t||n7(t)?t:void 0,animate:n7(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,eo.useContext)(n5));return(0,eo.useMemo)(()=>({initial:t,animate:n}),[rr(t),rr(n)])}(o),h=c?void 0:n$(()=>{if(ro.hasEverUpdated)return rl++}),p=i(o,c);if(!c&&nH){f.visualElement=function(e,t,n,r){let i=(0,eo.useContext)(n5).visualElement,a=(0,eo.useContext)(n6),o=(0,eo.useContext)(nq),l=(0,eo.useContext)(n3).reducedMotion,s=(0,eo.useRef)();r=r||a.renderer,!s.current&&r&&(s.current=r(e,{visualState:t,parent:i,props:n,presenceId:o?o.id:void 0,blockInitialAnimation:!!o&&!1===o.initial,reducedMotionConfig:l}));let u=s.current;return nU(()=>{u&&u.render()}),(0,eo.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),nU(()=>()=>u&&u.notify("Unmount"),[]),u}(a,p,u,t);let r=(0,eo.useContext)(n6).strict,i=(0,eo.useContext)(ru);f.visualElement&&(d=f.visualElement.loadFeatures(u,r,e,h,n||ra.projectionNodeConstructor,i))}return eo.createElement(rs,{visualElement:f.visualElement,props:u},d,eo.createElement(n5.Provider,{value:f},r(a,o,h,(s=f.visualElement,(0,eo.useCallback)(e=>{e&&p.mount&&p.mount(e),s&&(e?s.mount(e):s.unmount()),l&&("function"==typeof l?l(e):n8(l)&&(l.current=e))},[s])),p,c,f.visualElement)))});return o[rc]=a,o}(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){return{...rf(e)?r9:ie,preloadedFeatures:n,useRender:function(e=!1){return(t,n,r,i,{latestValues:a},o)=>{let l=(rf(t)?function(e,t){let n=(0,eo.useMemo)(()=>{let n=rX();return rY(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};rI(t,e.style,e),n.style={...t,...n.style}}return n}:function(e,t,n){let r={},i=function(e,t,n){let r=e.style||{},i={};return rI(i,r,e),Object.assign(i,function({transformTemplate:e},t,n){return(0,eo.useMemo)(()=>{let r=rB();return rV(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})(n,a,o),s={...function(e,t,n){let r={};for(let i in e)(rW(i)||!0===n&&rU(i)||!t&&!rU(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),...l,ref:i};return r&&(s["data-projection-id"]=r),(0,eo.createElement)(t,s)}}(t),createVisualElement:r,projectionNodeConstructor:i,Component:e}})(e,t,sk,lR,sj));function sS(e){let{open:t,onOpenChange:n}=e,[r,i]=(0,eo.useState)(!1);return{open:(0,eo.useMemo)(()=>n?t:r,[n,r,t]),onOpenChange:(0,eo.useCallback)(e=>{n?n(e):i(e)},[n])}}let sC={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 sM(e){let{children:t,content:n,defaultOpen:r,open:i,onOpenChange:a,delayDuration:o=300,disableHoverableContent:l,...s}=e,{open:u,onOpenChange:c}=sS({open:i,onOpenChange:a});return(0,ea.jsxs)(ny,{open:u,delayDuration:o,disableHoverableContent:l,defaultOpen:r,onOpenChange:c,children:[(0,ea.jsx)(ns,{asChild:!0,children:t}),(0,ea.jsx)(n4,{children:n&&u?(0,ea.jsx)(nx,{forceMount:!0,children:(0,ea.jsx)(nh,{forceMount:!0,asChild:!0,side:"top",align:"center",sideOffset:s.sideOffset||5,...s,children:(0,ea.jsx)(sE.div,{variants:sC,initial:"init",animate:"show",exit:"exit",className:(0,eW.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,ea.jsx)("div",{className:(0,eW.cx)("py-1 px-2","max-w-xs","overflow-hidden",nk()),children:(0,ea.jsx)(nj,{size:"12",children:n})})})})}):null})]})}let s_=(0,eW.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"}}),sO=eo.forwardRef((e,t)=>{let{variant:n,size:r,state:i,rounded:a,disabled:o,icon:l,color:s,tip:u,tipAlign:c,tipSide:d,className:f,type:h="button",...p}=e;return u?(0,ea.jsx)(sM,{content:u,align:c,side:d,children:(0,ea.jsx)("button",{ref:t,type:h,disabled:o,className:s_({variant:n,size:r,state:i,rounded:a,disabled:o,icon:l,color:s,className:f}),...p})}):(0,ea.jsx)("button",{ref:t,disabled:o,type:h,className:s_({variant:n,size:r,state:i,rounded:a,disabled:o,icon:l,color:s,className:f}),...p})});var sT=n(47211);(0,eW.j)([],{variants:{variant:{default:"border-t border-gray-500 dark:border-graydark-500 last-of-type:border-b",ghost:""}},defaultVariants:{variant:"default"}});let sP=(0,eW.j)("border border-gray-500 dark:border-graydark-500 bg-gray-100 dark:bg-graydark-100 rounded p-4"),sA=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)("div",{...r,className:sP({className:n}),ref:t})});var sN=n(86029);let sR="Avatar",[sD,sL]=(0,eu.b)(sR),[sZ,sF]=sD(sR),sz=(0,eo.forwardRef)((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,a]=(0,eo.useState)("idle");return(0,eo.createElement)(sZ,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:a},(0,eo.createElement)(em.WV.span,(0,es.Z)({},r,{ref:t})))}),sV=(0,eo.forwardRef)((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...a}=e,o=sF("AvatarImage",n),l=function(e){let[t,n]=(0,eo.useState)("idle");return(0,eo.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),s=(0,sN.W)(e=>{i(e),o.onImageLoadingStatusChange(e)});return(0,eg.b)(()=>{"idle"!==l&&s(l)},[l,s]),"loaded"===l?(0,eo.createElement)(em.WV.img,(0,es.Z)({},a,{ref:t,src:r})):null}),sB=(0,eo.forwardRef)((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,a=sF("AvatarFallback",n),[o,l]=(0,eo.useState)(void 0===r);return(0,eo.useEffect)(()=>{if(void 0!==r){let e=window.setTimeout(()=>l(!0),r);return()=>window.clearTimeout(e)}},[r]),o&&"loaded"!==a.imageLoadingStatus?(0,eo.createElement)(em.WV.span,(0,es.Z)({},i,{ref:t})):null}),sI=(0,eW.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"}}),sH=(0,eW.j)("uppercase",{variants:{size:{1:"text-sm",2:"text-base",3:"text-lg",4:"text-lg"}},defaultVariants:{size:"2"}}),sU=eo.forwardRef((e,t)=>{let{alt:n,src:r,fallback:i,size:a,variant:o,shape:l,interactive:s,inactive:u,className:c,...d}=e;return(0,ea.jsx)("div",{className:(0,eW.cx)("relative h-fit w-fit",c),children:(0,ea.jsxs)(sz,{...d,ref:t,className:sI({className:c,size:a,variant:o,interactive:s,inactive:u,shape:l}),children:["filter"===o&&(0,ea.jsx)("div",{className:"absolute w-full h-full z-10",style:{backgroundColor:"rgba(30, 169, 76, 0.3)"}}),(0,ea.jsx)(sV,{alt:n,src:r,className:"flex object-cover h-full align-middle w-full"}),(0,ea.jsx)(sB,{className:sH({size:a}),children:i})]})})}),sW=(0,eW.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}}),sq=eo.forwardRef((e,t)=>{let{variant:n,size:r,interactive:i,rounded:a,className:o,...l}=e;return(0,ea.jsx)("div",{...l,className:sW({variant:n,size:r,interactive:i,rounded:a,className:o}),ref:t})}),s$=eo.forwardRef((e,t)=>{let{className:n,size:r,color:i,...a}=e;return(0,ea.jsx)("pre",{children:(0,ea.jsx)("code",{className:(0,eW.cx)(nb({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),...a,ref:t})})}),sK=(0,eW.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"]},ellipsis:{true:"overflow-hidden text-ellipsis whitespace-nowrap"}},defaultVariants:{color:"accent",ellipsis:!1}}),sY=eo.forwardRef((e,t)=>{let{color:n,className:r,ellipsis:i,...a}=e;return(0,ea.jsx)("code",{...a,className:sK({color:n,ellipsis:i,className:r}),ref:t})}),sX=(0,eW.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"]),sG=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)("div",{ref:t,className:sX({className:n}),...r})});(0,eW.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 sJ=(0,eW.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"}}),sQ=eo.forwardRef((e,t)=>{let{className:n,pad:r,size:i,...a}=e;return(0,ea.jsx)("div",{ref:t,...a,className:sJ({size:i,pad:r,className:n})})});var s0=n(72331);let s1=(0,eo.createContext)(void 0);function s2(e){let t=(0,eo.useContext)(s1);return e||t||"ltr"}let s4="ScrollArea",[s3,s5]=(0,eu.b)(s4),[s6,s8]=s3(s4),s7=(0,eo.forwardRef)((e,t)=>{let{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:a=600,...o}=e,[l,s]=(0,eo.useState)(null),[u,c]=(0,eo.useState)(null),[d,f]=(0,eo.useState)(null),[h,p]=(0,eo.useState)(null),[m,g]=(0,eo.useState)(null),[v,y]=(0,eo.useState)(0),[x,b]=(0,eo.useState)(0),[w,j]=(0,eo.useState)(!1),[k,E]=(0,eo.useState)(!1),S=(0,ec.e)(t,e=>s(e)),C=s2(i);return(0,eo.createElement)(s6,{scope:n,type:r,dir:C,scrollHideDelay:a,scrollArea:l,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:h,onScrollbarXChange:p,scrollbarXEnabled:w,onScrollbarXEnabledChange:j,scrollbarY:m,onScrollbarYChange:g,scrollbarYEnabled:k,onScrollbarYEnabledChange:E,onCornerWidthChange:y,onCornerHeightChange:b},(0,eo.createElement)(em.WV.div,(0,es.Z)({dir:C},o,{ref:S,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})))}),s9=(0,eo.forwardRef)((e,t)=>{let{__scopeScrollArea:n,children:r,...i}=e,a=s8("ScrollAreaViewport",n),o=(0,eo.useRef)(null),l=(0,ec.e)(t,o,a.onViewportChange);return(0,eo.createElement)(eo.Fragment,null,(0,eo.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,eo.createElement)(em.WV.div,(0,es.Z)({"data-radix-scroll-area-viewport":""},i,{ref:l,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...e.style}}),(0,eo.createElement)("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"}},r)))}),ue="ScrollAreaScrollbar",ut=(0,eo.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=s8(ue,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:o}=i,l="horizontal"===e.orientation;return(0,eo.useEffect)(()=>(l?a(!0):o(!0),()=>{l?a(!1):o(!1)}),[l,a,o]),"hover"===i.type?(0,eo.createElement)(un,(0,es.Z)({},r,{ref:t,forceMount:n})):"scroll"===i.type?(0,eo.createElement)(ur,(0,es.Z)({},r,{ref:t,forceMount:n})):"auto"===i.type?(0,eo.createElement)(ui,(0,es.Z)({},r,{ref:t,forceMount:n})):"always"===i.type?(0,eo.createElement)(ua,(0,es.Z)({},r,{ref:t})):null}),un=(0,eo.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=s8(ue,e.__scopeScrollArea),[a,o]=(0,eo.useState)(!1);return(0,eo.useEffect)(()=>{let e=i.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),o(!0)},r=()=>{t=window.setTimeout(()=>o(!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,eo.createElement)(ev.z,{present:n||a},(0,eo.createElement)(ui,(0,es.Z)({"data-state":a?"visible":"hidden"},r,{ref:t})))}),ur=(0,eo.forwardRef)((e,t)=>{var n;let{forceMount:r,...i}=e,a=s8(ue,e.__scopeScrollArea),o="horizontal"===e.orientation,l=uk(()=>u("SCROLL_END"),100),[s,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,eo.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},"hidden"));return(0,eo.useEffect)(()=>{if("idle"===s){let e=window.setTimeout(()=>u("HIDE"),a.scrollHideDelay);return()=>window.clearTimeout(e)}},[s,a.scrollHideDelay,u]),(0,eo.useEffect)(()=>{let e=a.viewport,t=o?"scrollLeft":"scrollTop";if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(u("SCROLL"),l()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[a.viewport,o,u,l]),(0,eo.createElement)(ev.z,{present:r||"hidden"!==s},(0,eo.createElement)(ua,(0,es.Z)({"data-state":"hidden"===s?"hidden":"visible"},i,{ref:t,onPointerEnter:(0,eh.M)(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:(0,eh.M)(e.onPointerLeave,()=>u("POINTER_LEAVE"))})))}),ui=(0,eo.forwardRef)((e,t)=>{let n=s8(ue,e.__scopeScrollArea),{forceMount:r,...i}=e,[a,o]=(0,eo.useState)(!1),l="horizontal"===e.orientation,s=uk(()=>{if(n.viewport){let e=n.viewport.offsetWidth{let{orientation:n="vertical",...r}=e,i=s8(ue,e.__scopeScrollArea),a=(0,eo.useRef)(null),o=(0,eo.useRef)(0),[l,s]=(0,eo.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=uy(l.viewport,l.content),c={...r,sizes:l,onSizesChange:s,hasThumb:!!(u>0&&u<1),onThumbChange:e=>a.current=e,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:e=>o.current=e};function d(e,t){return function(e,t,n,r="ltr"){let i=ux(n),a=t||i/2,o=n.scrollbar.paddingStart+a,l=n.scrollbar.size-n.scrollbar.paddingEnd-(i-a),s=n.content-n.viewport;return uw([o,l],"ltr"===r?[0,s]:[-1*s,0])(e)}(e,o.current,l,t)}return"horizontal"===n?(0,eo.createElement)(uo,(0,es.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=ub(i.viewport.scrollLeft,l,i.dir);a.current.style.transform=`translate3d(${e}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,eo.createElement)(ul,(0,es.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=ub(i.viewport.scrollTop,l);a.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}})):null}),uo=(0,eo.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=s8(ue,e.__scopeScrollArea),[o,l]=(0,eo.useState)(),s=(0,eo.useRef)(null),u=(0,ec.e)(t,s,a.onScrollbarXChange);return(0,eo.useEffect)(()=>{s.current&&l(getComputedStyle(s.current))},[s]),(0,eo.createElement)(uc,(0,es.Z)({"data-orientation":"horizontal"},i,{ref:u,sizes:n,style:{bottom:0,left:"rtl"===a.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===a.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":ux(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),r>0&&r{s.current&&a.viewport&&o&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:uv(o.paddingLeft),paddingEnd:uv(o.paddingRight)}})}}))}),ul=(0,eo.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=s8(ue,e.__scopeScrollArea),[o,l]=(0,eo.useState)(),s=(0,eo.useRef)(null),u=(0,ec.e)(t,s,a.onScrollbarYChange);return(0,eo.useEffect)(()=>{s.current&&l(getComputedStyle(s.current))},[s]),(0,eo.createElement)(uc,(0,es.Z)({"data-orientation":"vertical"},i,{ref:u,sizes:n,style:{top:0,right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":ux(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),r>0&&r{s.current&&a.viewport&&o&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:uv(o.paddingTop),paddingEnd:uv(o.paddingBottom)}})}}))}),[us,uu]=s3(ue),uc=(0,eo.forwardRef)((e,t)=>{let{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:a,onThumbPointerUp:o,onThumbPointerDown:l,onThumbPositionChange:s,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,h=s8(ue,n),[p,m]=(0,eo.useState)(null),g=(0,ec.e)(t,e=>m(e)),v=(0,eo.useRef)(null),y=(0,eo.useRef)(""),x=h.viewport,b=r.content-r.viewport,w=(0,sN.W)(c),j=(0,sN.W)(s),k=uk(d,10);function E(e){v.current&&u({x:e.clientX-v.current.left,y:e.clientY-v.current.top})}return(0,eo.useEffect)(()=>{let e=e=>{let t=e.target;(null==p?void 0:p.contains(t))&&w(e,b)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[x,p,b,w]),(0,eo.useEffect)(j,[r,j]),uE(p,k),uE(h.content,k),(0,eo.createElement)(us,{scope:n,scrollbar:p,hasThumb:i,onThumbChange:(0,sN.W)(a),onThumbPointerUp:(0,sN.W)(o),onThumbPositionChange:j,onThumbPointerDown:(0,sN.W)(l)},(0,eo.createElement)(em.WV.div,(0,es.Z)({},f,{ref:g,style:{position:"absolute",...f.style},onPointerDown:(0,eh.M)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),v.current=p.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",E(e))}),onPointerMove:(0,eh.M)(e.onPointerMove,E),onPointerUp:(0,eh.M)(e.onPointerUp,e=>{e.target.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=y.current,v.current=null})})))}),ud="ScrollAreaThumb",uf=(0,eo.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=uu(ud,e.__scopeScrollArea);return(0,eo.createElement)(ev.z,{present:n||i.hasThumb},(0,eo.createElement)(uh,(0,es.Z)({ref:t},r)))}),uh=(0,eo.forwardRef)((e,t)=>{let{__scopeScrollArea:n,style:r,...i}=e,a=s8(ud,n),o=uu(ud,n),{onThumbPositionChange:l}=o,s=(0,ec.e)(t,e=>o.onThumbChange(e)),u=(0,eo.useRef)(),c=uk(()=>{u.current&&(u.current(),u.current=void 0)},100);return(0,eo.useEffect)(()=>{let e=a.viewport;if(e){let t=()=>{if(c(),!u.current){let t=uj(e,l);u.current=t,l()}};return l(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[a.viewport,c,l]),(0,eo.createElement)(em.WV.div,(0,es.Z)({"data-state":o.hasThumb?"visible":"hidden"},i,{ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:(0,eh.M)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;o.onThumbPointerDown({x:n,y:r})}),onPointerUp:(0,eh.M)(e.onPointerUp,o.onThumbPointerUp)}))}),up="ScrollAreaCorner",um=(0,eo.forwardRef)((e,t)=>{let n=s8(up,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?(0,eo.createElement)(ug,(0,es.Z)({},e,{ref:t})):null}),ug=(0,eo.forwardRef)((e,t)=>{let{__scopeScrollArea:n,...r}=e,i=s8(up,n),[a,o]=(0,eo.useState)(0),[l,s]=(0,eo.useState)(0),u=!!(a&&l);return uE(i.scrollbarX,()=>{var e;let t=(null===(e=i.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;i.onCornerHeightChange(t),s(t)}),uE(i.scrollbarY,()=>{var e;let t=(null===(e=i.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;i.onCornerWidthChange(t),o(t)}),u?(0,eo.createElement)(em.WV.div,(0,es.Z)({},r,{ref:t,style:{width:a,height:l,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...e.style}})):null});function uv(e){return e?parseInt(e,10):0}function uy(e,t){let n=e/t;return isNaN(n)?0:n}function ux(e){let t=uy(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-n)*t,18)}function ub(e,t,n="ltr"){let r=ux(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,l=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,"ltr"===n?[0,o]:[-1*o,0]);return uw([0,o],[0,a-r])(l)}function uw(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 uj=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return!function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,l=n.top!==a.top;(o||l)&&t(),n=a,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function uk(e,t){let n=(0,sN.W)(e),r=(0,eo.useRef)(0);return(0,eo.useEffect)(()=>()=>window.clearTimeout(r.current),[]),(0,eo.useCallback)(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function uE(e,t){let n=(0,sN.W)(t);(0,eg.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=eo.forwardRef((e,t)=>{let{id:n,className:r,style:i,children:a,keyToResetScrollbars:o}=e;return(0,ea.jsxs)(s7,{className:(0,eW.cx)("w-full h-full overflow-hidden",r),style:i,children:[(0,ea.jsx)(s9,{id:n,ref:t,className:"w-full h-full [&>div]:!block [&>div]:!h-full",children:a}),(0,ea.jsx)(ut,{orientation:"vertical",className:"z-10 flex select-none touch-none transition-colors hover:bg-black/20 w-1.5",children:(0,ea.jsx)(uf,{className:(0,eW.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')})},o?"v-".concat(o):void 0),(0,ea.jsx)(ut,{orientation:"horizontal",className:"z-10 flex flex-col select-none touch-none transition-colors duration-1000 hover:bg-black/20 h-1",children:(0,ea.jsx)(uf,{className:(0,eW.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')})},o?"h-".concat(o):void 0),(0,ea.jsx)(um,{className:"bg-black/70"})]})}),uC=(0,eW.j)(["z-20","overflow-hidden"],{variants:{variant:{default:"flex items-center justify-center w-full h-full",none:""}},defaultVariants:{variant:"default"}}),uM={show:{scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},u_=eo.forwardRef((e,t)=>{let{trigger:n,rootProps:r,open:i,onOpenChange:a,onSubmit:o,title:l,description:s,containerVariants:u,contentVariants:c,controls:d,children:f,bodyClassName:h,closeClassName:p,dynamicHeight:m=!0}=e,{open:g,onOpenChange:v}=sS({open:i,onOpenChange:a});return(0,eo.useEffect)(()=>{g&&v(g)},[g]),(0,ea.jsxs)(s0.fC,{open:g,onOpenChange:v,...r,children:[n&&(0,ea.jsx)(s0.xz,{asChild:!0,children:n}),(0,ea.jsx)(n4,{children:g?(0,ea.jsx)(s0.h_,{forceMount:!0,children:(0,ea.jsx)(s0.VY,{asChild:!0,forceMount:!0,ref:t,children:(0,ea.jsxs)("div",{className:"fixed w-full h-full top-0 left-0 z-20",children:[(0,ea.jsx)(s0.aV,{onClick:()=>v(!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,ea.jsx)(sE.div,{variants:uM,initial:"init",animate:"show",exit:"exit",className:uC(u),children:(0,ea.jsx)(uP,{title:l,description:s,contentVariants:c,onSubmit:o,controls:d,bodyClassName:h,closeClassName:p,dynamicHeight:m,children:f})})]})})}):null})]})});function uO(e){let{className:t}=e;return(0,ea.jsx)(s0.x8,{asChild:!0,type:"button",children:(0,ea.jsx)("div",{className:(0,eW.cx)("appearance-none",t),children:(0,ea.jsx)(sO,{size:"small",variant:"ghost",type:"button","aria-label":"close",children:(0,ea.jsx)(sT.QN4,{})})})})}let uT=(0,eW.j)(["relative","z-40","overflow-hidden"],{variants:{variant:{default:[nk()],none:""}},defaultVariants:{variant:"default"}}),uP=eo.forwardRef((e,t)=>{let{children:n,onSubmit:r,title:i,description:a,controls:o,contentVariants:l,closeClassName:s,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,eo.useState)(0),r=(0,eo.useRef)(null);return(0,eo.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,a]),[h,p]=(0,eo.useState)(!1);return(0,eo.useEffect)(()=>{p(f>.7*window.innerHeight)},[f]),(0,ea.jsxs)(r?"form":"div",{onSubmit:r,ref:t,className:uT(l),children:[i&&(0,ea.jsx)(s0.Dx,{className:uA({showSeparator:h}),children:i}),(0,ea.jsx)(uS,{style:{height:c?"".concat(f,"px"):void 0,maxHeight:c?"70vh":void 0},children:(0,ea.jsxs)("div",{ref:d,className:(0,eW.cx)("p-4",u),children:[a&&(0,ea.jsx)(s0.dk,{className:uN(),children:a}),n]})}),o&&(0,ea.jsx)(uR,{separator:h,children:o}),(0,ea.jsx)(uO,{className:s||"absolute top-3.5 right-2"})]})}),uA=(0,eW.j)(["pt-4 pb-2 px-4 w-full",nb({size:"20",weight:"semibold",font:"sans",color:"contrast"})],{variants:{showSeparator:{true:"border-b border-gray-200 dark:border-graydark-200"}}}),uN=(0,eW.j)([nb({color:"subtle",size:"14"}),"py-2"]);function uR(e){let{children:t,separator:n=!0}=e;return(0,ea.jsx)("div",{className:(0,eW.cx)("py-2 mx-3",n?"border-t border-gray-200 dark:border-graydark-200":""),children:t})}var uD=n(55070),uL=n(77334);let uZ="rovingFocusGroup.onEntryFocus",uF={bubbles:!1,cancelable:!0},uz="RovingFocusGroup",[uV,uB,uI]=ef(uz),[uH,uU]=(0,eu.b)(uz,[uI]),[uW,uq]=uH(uz),u$=(0,eo.forwardRef)((e,t)=>(0,eo.createElement)(uV.Provider,{scope:e.__scopeRovingFocusGroup},(0,eo.createElement)(uV.Slot,{scope:e.__scopeRovingFocusGroup},(0,eo.createElement)(uK,(0,es.Z)({},e,{ref:t}))))),uK=(0,eo.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:s,onEntryFocus:u,...c}=e,d=(0,eo.useRef)(null),f=(0,ec.e)(t,d),h=s2(a),[p=null,m]=(0,ep.T)({prop:o,defaultProp:l,onChange:s}),[g,v]=(0,eo.useState)(!1),y=(0,sN.W)(u),x=uB(n),b=(0,eo.useRef)(!1);return(0,eo.useEffect)(()=>{let e=d.current;if(e)return e.addEventListener(uZ,y),()=>e.removeEventListener(uZ,y)},[y]),(0,eo.createElement)(uW,{scope:n,orientation:r,dir:h,loop:i,currentTabStopId:p,onItemFocus:(0,eo.useCallback)(e=>m(e),[m]),onItemShiftTab:(0,eo.useCallback)(()=>v(!0),[])},(0,eo.createElement)(em.WV.div,(0,es.Z)({tabIndex:g?-1:0,"data-orientation":r},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:(0,eh.M)(e.onMouseDown,()=>{b.current=!0}),onFocus:(0,eh.M)(e.onFocus,e=>{let t=!b.current;if(e.target===e.currentTarget&&t&&!g){let t=new CustomEvent(uZ,uF);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=x().filter(e=>e.focusable);uG([e.find(e=>e.active),e.find(e=>e.id===p),...e].filter(Boolean).map(e=>e.ref.current))}}b.current=!1}),onBlur:(0,eh.M)(e.onBlur,()=>v(!1))})))}),uY=(0,eo.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,...a}=e,o=(0,ey.M)(),l=uq("RovingFocusGroupItem",n),s=l.currentTabStopId===o,u=uB(n);return(0,eo.createElement)(uV.ItemSlot,{scope:n,id:o,focusable:r,active:i},(0,eo.createElement)(em.WV.span,(0,es.Z)({tabIndex:s?0:-1,"data-orientation":l.orientation},a,{ref:t,onMouseDown:(0,eh.M)(e.onMouseDown,e=>{r?l.onItemFocus(o):e.preventDefault()}),onFocus:(0,eh.M)(e.onFocus,()=>l.onItemFocus(o)),onKeyDown:(0,eh.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){l.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 uX[i]}(e,l.orientation,l.dir);if(void 0!==t){e.preventDefault();let i=u().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&i.reverse();let a=i.indexOf(e.currentTarget);i=l.loop?(n=i,r=a+1,n.map((e,t)=>n[(r+t)%n.length])):i.slice(a+1)}setTimeout(()=>uG(i))}})})))}),uX={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 uJ=n(49732),uQ=n(70506);let u0=["Enter"," "],u1=["ArrowUp","PageDown","End"],u2=["ArrowDown","PageUp","Home",...u1],u4={ltr:[...u0,"ArrowRight"],rtl:[...u0,"ArrowLeft"]},u3={ltr:["ArrowLeft"],rtl:["ArrowRight"]},u5="Menu",[u6,u8,u7]=ef(u5),[u9,ce]=(0,eu.b)(u5,[u7,tH,uU]),ct=tH(),cn=uU(),[cr,ci]=u9(u5),[ca,co]=u9(u5),cl=(0,eo.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e,i=ct(n);return(0,eo.createElement)(tq,(0,es.Z)({},i,r,{ref:t}))}),cs="MenuPortal",[cu,cc]=u9(cs,{forceMount:void 0}),cd="MenuContent",[cf,ch]=u9(cd),cp=(0,eo.forwardRef)((e,t)=>{let n=cc(cd,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=ci(cd,e.__scopeMenu),o=co(cd,e.__scopeMenu);return(0,eo.createElement)(u6.Provider,{scope:e.__scopeMenu},(0,eo.createElement)(ev.z,{present:r||a.open},(0,eo.createElement)(u6.Slot,{scope:e.__scopeMenu},o.modal?(0,eo.createElement)(cm,(0,es.Z)({},i,{ref:t})):(0,eo.createElement)(cg,(0,es.Z)({},i,{ref:t})))))}),cm=(0,eo.forwardRef)((e,t)=>{let n=ci(cd,e.__scopeMenu),r=(0,eo.useRef)(null),i=(0,ec.e)(t,r);return(0,eo.useEffect)(()=>{let e=r.current;if(e)return(0,uJ.R)(e)},[]),(0,eo.createElement)(cv,(0,es.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,eh.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),cg=(0,eo.forwardRef)((e,t)=>{let n=ci(cd,e.__scopeMenu);return(0,eo.createElement)(cv,(0,es.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),cv=(0,eo.forwardRef)((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:l,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f,disableOutsideScroll:h,...p}=e,m=ci(cd,n),g=co(cd,n),v=ct(n),y=cn(n),x=u8(n),[b,w]=(0,eo.useState)(null),j=(0,eo.useRef)(null),k=(0,ec.e)(t,j,m.onContentChange),E=(0,eo.useRef)(0),S=(0,eo.useRef)(""),C=(0,eo.useRef)(0),M=(0,eo.useRef)(null),_=(0,eo.useRef)("right"),O=(0,eo.useRef)(0),T=h?uQ.Z:eo.Fragment,P=h?{as:ed.g7,allowPinchZoom:!0}:void 0,A=e=>{var t,n;let r=S.current+e,i=x().filter(e=>!e.disabled),a=document.activeElement,o=null===(t=i.find(e=>e.ref.current===a))||void 0===t?void 0:t.textValue,l=function(e,t,n){var r;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===i.length&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return o!==n?o:void 0}(i.map(e=>e.textValue),r,o),s=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),s&&setTimeout(()=>s.focus())};(0,eo.useEffect)(()=>()=>window.clearTimeout(E.current),[]),(0,uD.EW)();let N=(0,eo.useCallback)(e=>{var t,n,r;return _.current===(null===(t=M.current)||void 0===t?void 0:t.side)&&!!(r=null===(n=M.current)||void 0===n?void 0:n.area)&&function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=u>r&&n<(s-o)*(r-l)/(u-l)+o&&(i=!i)}return i}({x:e.clientX,y:e.clientY},r)},[]);return(0,eo.createElement)(cf,{scope:n,searchRef:S,onItemEnter:(0,eo.useCallback)(e=>{N(e)&&e.preventDefault()},[N]),onItemLeave:(0,eo.useCallback)(e=>{var t;N(e)||(null===(t=j.current)||void 0===t||t.focus(),w(null))},[N]),onTriggerLeave:(0,eo.useCallback)(e=>{N(e)&&e.preventDefault()},[N]),pointerGraceTimerRef:C,onPointerGraceIntentChange:(0,eo.useCallback)(e=>{M.current=e},[])},(0,eo.createElement)(T,P,(0,eo.createElement)(uL.M,{asChild:!0,trapped:i,onMountAutoFocus:(0,eh.M)(a,e=>{var t;e.preventDefault(),null===(t=j.current)||void 0===t||t.focus()}),onUnmountAutoFocus:o},(0,eo.createElement)(eq.XB,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f},(0,eo.createElement)(u$,(0,es.Z)({asChild:!0},y,{dir:g.dir,orientation:"vertical",loop:r,currentTabStopId:b,onCurrentTabStopIdChange:w,onEntryFocus:e=>{g.isUsingKeyboardRef.current||e.preventDefault()}}),(0,eo.createElement)(tJ,(0,es.Z)({role:"menu","aria-orientation":"vertical","data-state":cA(m.open),dir:g.dir},v,p,{ref:k,style:{outline:"none",...p.style},onKeyDown:(0,eh.M)(p.onKeyDown,e=>{let t=e.target.closest('[role="menu"]')===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&A(e.key));let i=j.current;if(e.target!==i||!u2.includes(e.key))return;e.preventDefault();let a=x().filter(e=>!e.disabled).map(e=>e.ref.current);u1.includes(e.key)&&a.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(a)}),onBlur:(0,eh.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(E.current),S.current="")}),onPointerMove:(0,eh.M)(e.onPointerMove,cR(e=>{let t=e.target,n=O.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>O.current?"right":"left";_.current=t,O.current=e.clientX}}))})))))))}),cy=(0,eo.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eo.createElement)(em.WV.div,(0,es.Z)({role:"group"},r,{ref:t}))}),cx=(0,eo.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eo.createElement)(em.WV.div,(0,es.Z)({},r,{ref:t}))}),cb="MenuItem",cw="menu.itemSelect",cj=(0,eo.forwardRef)((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,a=(0,eo.useRef)(null),o=co(cb,e.__scopeMenu),l=ch(cb,e.__scopeMenu),s=(0,ec.e)(t,a),u=(0,eo.useRef)(!1);return(0,eo.createElement)(ck,(0,es.Z)({},i,{ref:s,disabled:n,onClick:(0,eh.M)(e.onClick,()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(cw,{bubbles:!0,cancelable:!0});e.addEventListener(cw,e=>null==r?void 0:r(e),{once:!0}),(0,em.jH)(e,t),t.defaultPrevented?u.current=!1:o.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),u.current=!0},onPointerUp:(0,eh.M)(e.onPointerUp,e=>{var t;u.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,eh.M)(e.onKeyDown,e=>{let t=""!==l.searchRef.current;!n&&(!t||" "!==e.key)&&u0.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))}),ck=(0,eo.forwardRef)((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=ch(cb,n),l=cn(n),s=(0,eo.useRef)(null),u=(0,ec.e)(t,s),[c,d]=(0,eo.useState)(!1),[f,h]=(0,eo.useState)("");return(0,eo.useEffect)(()=>{let e=s.current;if(e){var t;h((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[a.children]),(0,eo.createElement)(u6.ItemSlot,{scope:n,disabled:r,textValue:null!=i?i:f},(0,eo.createElement)(uY,(0,es.Z)({asChild:!0},l,{focusable:!r}),(0,eo.createElement)(em.WV.div,(0,es.Z)({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:u,onPointerMove:(0,eh.M)(e.onPointerMove,cR(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus())})),onPointerLeave:(0,eh.M)(e.onPointerLeave,cR(e=>o.onItemLeave(e))),onFocus:(0,eh.M)(e.onFocus,()=>d(!0)),onBlur:(0,eh.M)(e.onBlur,()=>d(!1))}))))}),[cE,cS]=((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,eo.createElement)(cM,{scope:e.__scopeMenu,checked:n},(0,eo.createElement)(cj,(0,es.Z)({role:"menuitemcheckbox","aria-checked":n},i,{ref:t,"data-state":cN(n),onSelect:(0,eh.M)(i.onSelect,()=>null==r?void 0:r(!n),{checkForDefaultPrevented:!1})})))},u9("MenuRadioGroup",{value:void 0,onValueChange:()=>{}})),cC=((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=(0,sN.W)(r);return(0,eo.createElement)(cE,{scope:e.__scopeMenu,value:n,onValueChange:a},(0,eo.createElement)(cy,(0,es.Z)({},i,{ref:t})))},"MenuItemIndicator"),[cM,c_]=u9(cC,{checked:!1}),[cO,cT]=((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=c_(cC,n);return(0,eo.createElement)(ev.z,{present:r||a.checked},(0,eo.createElement)(em.WV.span,(0,es.Z)({},i,{ref:t,"data-state":cN(a.checked)})))},u9("MenuSub")),cP="MenuSubTrigger";function cA(e){return e?"open":"closed"}function cN(e){return e?"checked":"unchecked"}function cR(e){return t=>"mouse"===t.pointerType?e(t):void 0}(e,t)=>{let n=ci(cP,e.__scopeMenu),r=co(cP,e.__scopeMenu),i=cT(cP,e.__scopeMenu),a=ch(cP,e.__scopeMenu),o=(0,eo.useRef)(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:s}=a,u={__scopeMenu:e.__scopeMenu},c=(0,eo.useCallback)(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return(0,eo.useEffect)(()=>c,[c]),(0,eo.useEffect)(()=>{let e=l.current;return()=>{window.clearTimeout(e),s(null)}},[l,s]),(0,eo.createElement)(cl,(0,es.Z)({asChild:!0},u),(0,eo.createElement)(ck,(0,es.Z)({id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":cA(n.open)},e,{ref:(0,ec.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,eh.M)(e.onPointerMove,cR(t=>{a.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||o.current||(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),c()},100))})),onPointerLeave:(0,eh.M)(e.onPointerLeave,cR(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,o="right"===t,s=i[o?"left":"right"],u=i[o?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+(o?-5:5),y:e.clientY},{x:s,y:i.top},{x:u,y:i.top},{x:u,y:i.bottom},{x:s,y:i.bottom}],side:t}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:(0,eh.M)(e.onKeyDown,t=>{let i=""!==a.searchRef.current;if(!e.disabled&&(!i||" "!==t.key)&&u4[r.dir].includes(t.key)){var o;n.onOpenChange(!0),null===(o=n.content)||void 0===o||o.focus(),t.preventDefault()}})})))},(e,t)=>{let n=cc(cd,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=ci(cd,e.__scopeMenu),o=co(cd,e.__scopeMenu),l=cT("MenuSubContent",e.__scopeMenu),s=(0,eo.useRef)(null),u=(0,ec.e)(t,s);return(0,eo.createElement)(u6.Provider,{scope:e.__scopeMenu},(0,eo.createElement)(ev.z,{present:r||a.open},(0,eo.createElement)(u6.Slot,{scope:e.__scopeMenu},(0,eo.createElement)(cv,(0,es.Z)({id:l.contentId,"aria-labelledby":l.triggerId},i,{ref:u,align:"start",side:"rtl"===o.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;o.isUsingKeyboardRef.current&&(null===(t=s.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,eh.M)(e.onFocusOutside,e=>{e.target!==l.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:(0,eh.M)(e.onEscapeKeyDown,o.onClose),onKeyDown:(0,eh.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=u3[o.dir].includes(e.key);if(t&&n){var r;a.onOpenChange(!1),null===(r=l.trigger)||void 0===r||r.focus(),e.preventDefault()}})})))))};let cD=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,l=ct(t),[s,u]=(0,eo.useState)(null),c=(0,eo.useRef)(!1),d=(0,sN.W)(a),f=s2(i);return(0,eo.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,eo.createElement)(t5,l,(0,eo.createElement)(cr,{scope:t,open:n,onOpenChange:d,content:s,onContentChange:u},(0,eo.createElement)(ca,{scope:t,onClose:(0,eo.useCallback)(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:o},r)))},cL=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=ci(cs,t);return(0,eo.createElement)(cu,{scope:t,forceMount:n},(0,eo.createElement)(ev.z,{present:n||a.open},(0,eo.createElement)(t6.h,{asChild:!0,container:i},r)))},cZ="DropdownMenu",[cF,cz]=(0,eu.b)(cZ,[ce]),cV=ce(),[cB,cI]=cF(cZ),cH=(0,eo.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=cI("DropdownMenuTrigger",n),o=cV(n);return(0,eo.createElement)(cl,(0,es.Z)({asChild:!0},o),(0,eo.createElement)(em.WV.button,(0,es.Z)({type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":!!a.open||void 0,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},i,{ref:(0,ec.F)(t,a.triggerRef),onPointerDown:(0,eh.M)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:(0,eh.M)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),[" ","ArrowDown"].includes(e.key)&&e.preventDefault())})})))}),cU=(0,eo.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cI("DropdownMenuContent",n),a=cV(n),o=(0,eo.useRef)(!1);return(0,eo.createElement)(cp,(0,es.Z)({id:i.contentId,"aria-labelledby":i.triggerId},a,r,{ref:t,onCloseAutoFocus:(0,eh.M)(e.onCloseAutoFocus,e=>{var t;o.current||null===(t=i.triggerRef.current)||void 0===t||t.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:(0,eh.M)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)"}}))}),cW=(0,eo.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cV(n);return(0,eo.createElement)(cx,(0,es.Z)({},i,r,{ref:t}))}),cq=(0,eo.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cV(n);return(0,eo.createElement)(cj,(0,es.Z)({},i,r,{ref:t}))}),c$=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:l=!0}=e,s=cV(t),u=(0,eo.useRef)(null),[c=!1,d]=(0,ep.T)({prop:i,defaultProp:a,onChange:o});return(0,eo.createElement)(cB,{scope:t,triggerId:(0,ey.M)(),triggerRef:u,contentId:(0,ey.M)(),open:c,onOpenChange:d,onOpenToggle:(0,eo.useCallback)(()=>d(e=>!e),[d]),modal:l},(0,eo.createElement)(cD,(0,es.Z)({},s,{open:c,onOpenChange:d,dir:r,modal:l}),n))},cK=e=>{let{__scopeDropdownMenu:t,...n}=e,r=cV(t);return(0,eo.createElement)(cL,(0,es.Z)({},r,n))},cY="horizontal",cX=["horizontal","vertical"],cG=(0,eo.forwardRef)((e,t)=>{let{decorative:n,orientation:r=cY,...i}=e,a=cJ(r)?r:cY;return(0,eo.createElement)(em.WV.div,(0,es.Z)({"data-orientation":a},n?{role:"none"}:{"aria-orientation":"vertical"===a?a:void 0,role:"separator"},i,{ref:t}))});function cJ(e){return cX.includes(e)}cG.propTypes={orientation(e,t,n){let r=e[t],i=String(r);return r&&!cJ(r)?Error(`Invalid prop \`orientation\` of value \`${i}\` supplied to \`${n}\`, expected one of: - horizontal - vertical -Defaulting to \`${cY}\`.`):null}};let cQ=(0,eW.j)(["m-0 flex-shrink-0 cursor-default"],{variants:{variant:{vertical:"border-r",horizontal:"border-b"},color:{contrast:"border-gray-700 dark:border-graydark-700",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"}}),c0=eo.forwardRef((e,t)=>{let{variant:n,color:r,className:i,...a}=e;return(0,ea.jsx)(cG,{ref:t,className:cQ({variant:n,color:r,className:i}),...a})}),c1=function(){let{className:e,font:t,color:n="subtle",weight:r="medium",size:i="14",scaleSize:a,noWrap:o,ellipsis:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,eW.cx)(nb({font:t,color:n,weight:r,size:i,scaleSize:a,noWrap:o,ellipsis:l,className:e}),["relative","flex","items-center","tabular-nums","select-none","whitespace-nowrap","px-1.5","py-1.5"])},c2=function(){let{className:e,font:t,color:n="contrast",weight:r="medium",size:i="14",scaleSize:a,noWrap:o,ellipsis:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,eW.cx)(c1({font:t,color:n,weight:r,size:i,scaleSize:a,noWrap:o,ellipsis:l,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"])},c4=e=>{let{className:t,font:n,color:r="verySubtle",weight:i="medium",size:a="14",scaleSize:o,noWrap:l,ellipsis:s}=e;return nb({font:n,color:r,weight:i,size:a,scaleSize:o,noWrap:l,ellipsis:s,className:t})},c3=e=>(0,eW.cx)(["h-px","my-2","mx-1.5",e]),c5=eo.forwardRef((e,t)=>{let{className:n,color:r,...i}=e;return(0,ea.jsx)(c0,{ref:t,className:c3(n),...i})}),c6=eo.forwardRef((e,t)=>{let{className:n,font:r,color:i,weight:a,size:o="14",scaleSize:l,noWrap:s,ellipsis:u,...c}=e;return(0,ea.jsx)("div",{ref:t,className:(0,eW.cx)(c1({className:n,font:r,color:i,weight:a,size:o,scaleSize:l,noWrap:s,ellipsis:u})),...c})}),c8=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)("div",{ref:t,className:(0,eW.cx)(["ml-auto","pl-5",n]),...r})}),c7=(0,eW.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"]),c9=e=>(0,eW.cx)(nk(),(0,eW.j)(["max-w-xs","shadow-sm","py-1","px-1"])({className:e})),de={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},dt=eo.forwardRef((e,t)=>{let{trigger:n,label:r,children:i,rootProps:a,contentProps:o,className:l,open:s,onOpenChange:u}=e,{open:c,onOpenChange:d}=sS({open:s,onOpenChange:u});return(0,ea.jsxs)(c$,{open:c,onOpenChange:d,...a,children:[(0,ea.jsx)(cH,{asChild:!0,"aria-label":r,children:n}),(0,ea.jsx)(n4,{children:c?(0,ea.jsx)(cK,{forceMount:!0,children:(0,ea.jsx)(cU,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,ea.jsx)(sE.div,{variants:de,initial:"init",animate:"show",exit:"exit",className:c7(),children:(0,ea.jsx)("div",{className:c9(l),children:i})})})}):null})]})}),dn=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)(cq,{ref:t,className:c2({className:n}),...r})}),dr=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)(cW,{ref:t,className:(0,eW.cx)("px-1.5",c4({className:n})),...r})}),di=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)("div",{ref:t,className:(0,eW.cx)(["pr-2","opacity-70 group-hover:opacity-100",n]),...r})});var da=n(99605);let dl={20:"h3",24:"h3",32:"h2",40:"h2",64:"h1"},ds={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"},du=eo.forwardRef((e,t)=>{let{size:n="24",className:r,id:i,children:a,anchorLink:o,showAnchor:l,...s}=e,u=dl[n];if(o){let e=i||("string"==typeof a?encodeURI(a.toLowerCase().replace(/ /g,"-")):"");return(0,ea.jsxs)("div",{className:(0,eW.cx)("relative flex flex-col gap-6 items-start",r),children:[(0,ea.jsx)("div",{id:e,className:"absolute -top-[100px]"}),(0,ea.jsxs)(da.rU,{href:"#".concat(e),className:"relative group",children:[(0,ea.jsx)(nw,{className:"hidden group-hover:block",children:(0,ea.jsx)(sO.POp,{className:"absolute top-1 -left-7 hidden md:block"})}),(0,ea.jsx)(nw,{as:u,...s,ref:t,weight:"none",className:(0,eW.cx)("proportional-nums inline-block",ds[n]),children:a})]})]})}return(0,ea.jsx)("div",{className:(0,eW.cx)("flex flex-col gap-6 items-start",r),children:(0,ea.jsx)(nw,{as:u,...s,ref:t,weight:"none",className:(0,eW.cx)("proportional-nums inline-block",ds[n],r),children:a})})}),dc=(0,eW.j)(["rounded"]);function dd(e){let{className:t,...n}=e;return(0,ea.jsx)(da.Ee,{className:dc({className:t}),...n})}let[df,dh]=(0,eu.k)("Label",{id:void 0,controlRef:{current:null}}),dp=(0,eo.forwardRef)((e,t)=>{let{htmlFor:n,id:r,...i}=e,a=(0,eo.useRef)(null),o=(0,eo.useRef)(null),l=(0,ec.e)(t,o),s=(0,ey.M)(r);return(0,eo.useEffect)(()=>{if(n){let e=document.getElementById(n);if(o.current&&e){let t=()=>e.getAttribute("aria-labelledby"),n=[s,t()].filter(Boolean).join(" ");return e.setAttribute("aria-labelledby",n),a.current=e,()=>{var n;let r=null===(n=t())||void 0===n?void 0:n.replace(s,"");""===r?e.removeAttribute("aria-labelledby"):r&&e.setAttribute("aria-labelledby",r)}}}},[s,n]),(0,eo.createElement)(df,{id:s,controlRef:a},(0,eo.createElement)(em.WV.span,(0,es.Z)({role:"label",id:s},i,{ref:l,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),!a.current||t.defaultPrevented)return;let r=a.current.contains(t.target),i=!0===t.isTrusted;!r&&i&&(a.current.click(),a.current.focus())}})))}),dm=e=>{let t=dh("LabelConsumer"),{controlRef:n}=t;return(0,eo.useEffect)(()=>{e&&(n.current=e)},[e,n]),t.id},dg=eo.forwardRef((e,t)=>{let{font:n,size:r="14",scaleSize:i,weight:a,color:o="verySubtle",noWrap:l,ellipsis:s,className:u,...c}=e;return(0,ea.jsx)(dp,{ref:t,...c,className:c4({font:n,size:r,scaleSize:i,color:o,weight:a,noWrap:l,ellipsis:s,className:u})})}),dv=(0,eW.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"}}),dy=e=>{let{font:t,size:n,scaleSize:r,color:i,weight:a,noWrap:o,ellipsis:l,underline:s,disabled:u,className:c}=e;return(0,eW.cx)(nb({scaleSize:r,size:n,font:t,color:i,weight:a,noWrap:o,ellipsis:l,underline:s}),dv({disabled:u,underline:s}),c)},dx=eo.forwardRef((e,t)=>{let{href:n,font:r,size:i,scaleSize:a,color:o,weight:l,noWrap:s,ellipsis:u,underline:c,disabled:d,className:f,rel:h,target:p,onClick:m,...g}=e,v=(0,eo.useCallback)(e=>{m&&(n||e.preventDefault(),m(e))},[m,n]);return(0,ea.jsx)(da.rU,{href:n||"#",ref:t,className:dy({font:r,scaleSize:a,size:i,color:o,weight:l,noWrap:s,ellipsis:u,underline:c,disabled:d,className:f}),...g,onClick:v,rel:h||("_blank"===p?"noopener":void 0),target:p})}),db=eo.forwardRef((e,t)=>{let{href:n,disabled:r,variant:i,size:a,state:o,rounded:l,icon:s,className:u,tip:c,rel:d,target:f,onClick:h,...p}=e,m=d||("_blank"===f?"noopener":void 0),g=(0,eo.useCallback)(e=>{h&&(n||e.preventDefault(),h(e))},[h,n]);return c?(0,ea.jsx)(sM,{content:c,children:(0,ea.jsx)(da.rU,{href:n||"#",ref:t,className:sP({variant:i,size:a,state:o,rounded:l,disabled:r,icon:s,className:u}),onClick:g,...p,rel:m,target:f})}):(0,ea.jsx)(da.rU,{href:n||"#",ref:t,className:sP({variant:i,size:a,state:o,rounded:l,disabled:r,icon:s,className:u}),onClick:g,...p,rel:m,target:f})}),dw={src:"/_next/static/media/logo.0e2362ab.png"};function dj(e){let{size:t=30,className:n}=e;return(0,ea.jsx)(dd,{priority:!0,src:"/_next/static/media/logo.0e2362ab.png",alt:"Logo",width:t,height:t,className:n})}let dk="Popover",[dE,dS]=(0,eu.b)(dk,[tH]),dC=tH(),[dM,dP]=dE(dk),d_=(0,eo.forwardRef)((e,t)=>{let{__scopePopover:n,...r}=e,i=dP("PopoverTrigger",n),a=dC(n),o=(0,ec.e)(t,i.triggerRef),l=(0,eo.createElement)(em.WV.button,(0,es.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":dF(i.open)},r,{ref:o,onClick:(0,eh.M)(e.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?l:(0,eo.createElement)(tq,(0,es.Z)({asChild:!0},a),l)}),dO="PopoverPortal",[dT,dA]=dE(dO,{forceMount:void 0}),dN="PopoverContent",dR=(0,eo.forwardRef)((e,t)=>{let n=dA(dN,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=dP(dN,e.__scopePopover);return(0,eo.createElement)(ev.z,{present:r||a.open},a.modal?(0,eo.createElement)(dD,(0,es.Z)({},i,{ref:t})):(0,eo.createElement)(dL,(0,es.Z)({},i,{ref:t})))}),dD=(0,eo.forwardRef)((e,t)=>{let n=dP(dN,e.__scopePopover),r=(0,eo.useRef)(null),i=(0,ec.e)(t,r),a=(0,eo.useRef)(!1);return(0,eo.useEffect)(()=>{let e=r.current;if(e)return(0,uJ.R)(e)},[]),(0,eo.createElement)(uQ.Z,{as:ed.g7,allowPinchZoom:!0},(0,eo.createElement)(dZ,(0,es.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,eh.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),a.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,eh.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,eh.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})))}),dL=(0,eo.forwardRef)((e,t)=>{let n=dP(dN,e.__scopePopover),r=(0,eo.useRef)(!1);return(0,eo.createElement)(dZ,(0,es.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,a;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault()),r.current=!1},onInteractOutside:t=>{var i,a;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0);let o=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(o))&&t.preventDefault()}}))}),dZ=(0,eo.forwardRef)((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:u,onInteractOutside:c,...d}=e,f=dP(dN,n),h=dC(n);return(0,uD.EW)(),(0,eo.createElement)(uL.M,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a},(0,eo.createElement)(eq.XB,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:c,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1)},(0,eo.createElement)(tJ,(0,es.Z)({"data-state":dF(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 dF(e){return e?"open":"closed"}let dz=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,l=dC(t),s=(0,eo.useRef)(null),[u,c]=(0,eo.useState)(!1),[d=!1,f]=(0,ep.T)({prop:r,defaultProp:i,onChange:a});return(0,eo.createElement)(t5,l,(0,eo.createElement)(dM,{scope:t,contentId:(0,ey.M)(),triggerRef:s,open:d,onOpenChange:f,onOpenToggle:(0,eo.useCallback)(()=>f(e=>!e),[f]),hasCustomAnchor:u,onCustomAnchorAdd:(0,eo.useCallback)(()=>c(!0),[]),onCustomAnchorRemove:(0,eo.useCallback)(()=>c(!1),[]),modal:o},n))},dV=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=dP(dO,t);return(0,eo.createElement)(dT,{scope:t,forceMount:n},(0,eo.createElement)(ev.z,{present:n||a.open},(0,eo.createElement)(t6.h,{asChild:!0,container:i},r)))},dB=(0,eW.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"]),dI=(0,eW.cx)(nk(),(0,eW.j)(["py-1","px-1"])()),dH={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},dU=eo.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:a}=e,{open:o,onOpenChange:l}=sS({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,ea.jsxs)(dz,{open:o,onOpenChange:l,...i,children:[(0,ea.jsx)(d_,{asChild:!0,children:n}),(0,ea.jsx)(n4,{children:o?(0,ea.jsx)(dV,{forceMount:!0,children:(0,ea.jsx)(dR,{asChild:!0,forceMount:!0,ref:t,...a,children:(0,ea.jsx)(sE.div,{variants:dH,initial:"init",animate:"show",exit:"exit",className:dB(),children:(0,ea.jsx)(uS,{className:dI,children:r})})})}):null})]})}),dW="Progress",[dq,d$]=(0,eu.b)(dW),[dK,dY]=dq(dW),dX=(0,eo.forwardRef)((e,t)=>{let{__scopeProgress:n,value:r,max:i,getValueLabel:a=dJ,...o}=e,l=d1(i)?i:100,s=d2(r,l)?r:null,u=d0(s)?a(s,l):void 0;return(0,eo.createElement)(dK,{scope:n,value:s,max:l},(0,eo.createElement)(em.WV.div,(0,es.Z)({"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":d0(s)?s:void 0,"aria-valuetext":u,role:"progressbar","data-state":dQ(s,l),"data-value":null!=s?s:void 0,"data-max":l},o,{ref:t})))});dX.propTypes={max(e,t,n){let r=e[t],i=String(r);return r&&!d1(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),a=d1(e.max)?e.max:100;return null==r||d2(r,a)?null:Error(`Invalid prop \`value\` of value \`${i}\` supplied to \`${n}\`. The \`value\` prop must be: +Defaulting to \`${cY}\`.`):null}};let cQ=(0,eW.j)(["m-0 flex-shrink-0 cursor-default"],{variants:{variant:{vertical:"border-r",horizontal:"border-b"},color:{contrast:"border-gray-700 dark:border-graydark-700",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"}}),c0=eo.forwardRef((e,t)=>{let{variant:n,color:r,className:i,...a}=e;return(0,ea.jsx)(cG,{ref:t,className:cQ({variant:n,color:r,className:i}),...a})}),c1=function(){let{className:e,font:t,color:n="subtle",weight:r="medium",size:i="14",scaleSize:a,noWrap:o,ellipsis:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,eW.cx)(nb({font:t,color:n,weight:r,size:i,scaleSize:a,noWrap:o,ellipsis:l,className:e}),["relative","flex","items-center","tabular-nums","select-none","whitespace-nowrap","px-1.5","py-1.5"])},c2=function(){let{className:e,font:t,color:n="contrast",weight:r="medium",size:i="14",scaleSize:a,noWrap:o,ellipsis:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,eW.cx)(c1({font:t,color:n,weight:r,size:i,scaleSize:a,noWrap:o,ellipsis:l,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"])},c4=e=>{let{className:t,font:n,color:r="verySubtle",weight:i="medium",size:a="14",scaleSize:o,noWrap:l,ellipsis:s}=e;return nb({font:n,color:r,weight:i,size:a,scaleSize:o,noWrap:l,ellipsis:s,className:t})},c3=e=>(0,eW.cx)(["h-px","my-2","mx-1.5",e]),c5=eo.forwardRef((e,t)=>{let{className:n,color:r,...i}=e;return(0,ea.jsx)(c0,{ref:t,className:c3(n),...i})}),c6=eo.forwardRef((e,t)=>{let{className:n,font:r,color:i,weight:a,size:o="14",scaleSize:l,noWrap:s,ellipsis:u,...c}=e;return(0,ea.jsx)("div",{ref:t,className:(0,eW.cx)(c1({className:n,font:r,color:i,weight:a,size:o,scaleSize:l,noWrap:s,ellipsis:u})),...c})}),c8=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)("div",{ref:t,className:(0,eW.cx)(["ml-auto","pl-5",n]),...r})}),c7=(0,eW.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"]),c9=e=>(0,eW.cx)(nk(),(0,eW.j)(["max-w-xs","shadow-sm","py-1","px-1"])({className:e})),de={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},dt=eo.forwardRef((e,t)=>{let{trigger:n,label:r,children:i,rootProps:a,contentProps:o,className:l,open:s,onOpenChange:u}=e,{open:c,onOpenChange:d}=sS({open:s,onOpenChange:u});return(0,ea.jsxs)(c$,{open:c,onOpenChange:d,...a,children:[(0,ea.jsx)(cH,{asChild:!0,"aria-label":r,children:n}),(0,ea.jsx)(n4,{children:c?(0,ea.jsx)(cK,{forceMount:!0,children:(0,ea.jsx)(cU,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,ea.jsx)(sE.div,{variants:de,initial:"init",animate:"show",exit:"exit",className:c7(),children:(0,ea.jsx)("div",{className:c9(l),children:i})})})}):null})]})}),dn=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)(cq,{ref:t,className:c2({className:n}),...r})}),dr=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)(cW,{ref:t,className:(0,eW.cx)("px-1.5",c4({className:n})),...r})}),di=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)("div",{ref:t,className:(0,eW.cx)(["pr-2","opacity-70 group-hover:opacity-100",n]),...r})});var da=n(99605);let dl={20:"h3",24:"h3",32:"h2",40:"h2",64:"h1"},ds={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"},du=eo.forwardRef((e,t)=>{let{size:n="24",className:r,id:i,children:a,anchorLink:o,showAnchor:l,...s}=e,u=dl[n];if(o){let e=i||("string"==typeof a?encodeURI(a.toLowerCase().replace(/ /g,"-")):"");return(0,ea.jsxs)("div",{className:(0,eW.cx)("relative flex flex-col gap-6 items-start",r),children:[(0,ea.jsx)("div",{id:e,className:"absolute -top-[100px]"}),(0,ea.jsxs)(da.rU,{href:"#".concat(e),className:"relative group",children:[(0,ea.jsx)(nw,{className:"hidden group-hover:block",children:(0,ea.jsx)(sT.POp,{className:"absolute top-1 -left-7 hidden md:block"})}),(0,ea.jsx)(nw,{as:u,...s,ref:t,weight:"none",className:(0,eW.cx)("proportional-nums inline-block",ds[n]),children:a})]})]})}return(0,ea.jsx)("div",{className:(0,eW.cx)("flex flex-col gap-6 items-start",r),children:(0,ea.jsx)(nw,{as:u,...s,ref:t,weight:"none",className:(0,eW.cx)("proportional-nums inline-block",ds[n],r),children:a})})}),dc=(0,eW.j)(["rounded"]);function dd(e){let{className:t,...n}=e;return(0,ea.jsx)(da.Ee,{className:dc({className:t}),...n})}let[df,dh]=(0,eu.k)("Label",{id:void 0,controlRef:{current:null}}),dp=(0,eo.forwardRef)((e,t)=>{let{htmlFor:n,id:r,...i}=e,a=(0,eo.useRef)(null),o=(0,eo.useRef)(null),l=(0,ec.e)(t,o),s=(0,ey.M)(r);return(0,eo.useEffect)(()=>{if(n){let e=document.getElementById(n);if(o.current&&e){let t=()=>e.getAttribute("aria-labelledby"),n=[s,t()].filter(Boolean).join(" ");return e.setAttribute("aria-labelledby",n),a.current=e,()=>{var n;let r=null===(n=t())||void 0===n?void 0:n.replace(s,"");""===r?e.removeAttribute("aria-labelledby"):r&&e.setAttribute("aria-labelledby",r)}}}},[s,n]),(0,eo.createElement)(df,{id:s,controlRef:a},(0,eo.createElement)(em.WV.span,(0,es.Z)({role:"label",id:s},i,{ref:l,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),!a.current||t.defaultPrevented)return;let r=a.current.contains(t.target),i=!0===t.isTrusted;!r&&i&&(a.current.click(),a.current.focus())}})))}),dm=e=>{let t=dh("LabelConsumer"),{controlRef:n}=t;return(0,eo.useEffect)(()=>{e&&(n.current=e)},[e,n]),t.id},dg=eo.forwardRef((e,t)=>{let{font:n,size:r="14",scaleSize:i,weight:a,color:o="verySubtle",noWrap:l,ellipsis:s,className:u,...c}=e;return(0,ea.jsx)(dp,{ref:t,...c,className:c4({font:n,size:r,scaleSize:i,color:o,weight:a,noWrap:l,ellipsis:s,className:u})})}),dv=(0,eW.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"}}),dy=e=>{let{font:t,size:n,scaleSize:r,color:i,weight:a,noWrap:o,ellipsis:l,underline:s,disabled:u,className:c}=e;return(0,eW.cx)(nb({scaleSize:r,size:n,font:t,color:i,weight:a,noWrap:o,ellipsis:l,underline:s}),dv({disabled:u,underline:s}),c)},dx=eo.forwardRef((e,t)=>{let{href:n,font:r,size:i,scaleSize:a,color:o,weight:l,noWrap:s,ellipsis:u,underline:c,disabled:d,className:f,rel:h,target:p,onClick:m,...g}=e,v=(0,eo.useCallback)(e=>{m&&(n||e.preventDefault(),m(e))},[m,n]);return(0,ea.jsx)(da.rU,{href:n||"#",ref:t,className:dy({font:r,scaleSize:a,size:i,color:o,weight:l,noWrap:s,ellipsis:u,underline:c,disabled:d,className:f}),...g,onClick:v,rel:h||("_blank"===p?"noopener":void 0),target:p})}),db=eo.forwardRef((e,t)=>{let{href:n,disabled:r,variant:i,size:a,state:o,rounded:l,icon:s,className:u,tip:c,rel:d,target:f,onClick:h,...p}=e,m=d||("_blank"===f?"noopener":void 0),g=(0,eo.useCallback)(e=>{h&&(n||e.preventDefault(),h(e))},[h,n]);return c?(0,ea.jsx)(sM,{content:c,children:(0,ea.jsx)(da.rU,{href:n||"#",ref:t,className:s_({variant:i,size:a,state:o,rounded:l,disabled:r,icon:s,className:u}),onClick:g,...p,rel:m,target:f})}):(0,ea.jsx)(da.rU,{href:n||"#",ref:t,className:s_({variant:i,size:a,state:o,rounded:l,disabled:r,icon:s,className:u}),onClick:g,...p,rel:m,target:f})}),dw={src:"/_next/static/media/logo.0e2362ab.png"};function dj(e){let{size:t=30,className:n}=e;return(0,ea.jsx)(dd,{priority:!0,src:"/_next/static/media/logo.0e2362ab.png",alt:"Logo",width:t,height:t,className:n})}let dk="Popover",[dE,dS]=(0,eu.b)(dk,[tH]),dC=tH(),[dM,d_]=dE(dk),dO=(0,eo.forwardRef)((e,t)=>{let{__scopePopover:n,...r}=e,i=d_("PopoverTrigger",n),a=dC(n),o=(0,ec.e)(t,i.triggerRef),l=(0,eo.createElement)(em.WV.button,(0,es.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":dF(i.open)},r,{ref:o,onClick:(0,eh.M)(e.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?l:(0,eo.createElement)(tq,(0,es.Z)({asChild:!0},a),l)}),dT="PopoverPortal",[dP,dA]=dE(dT,{forceMount:void 0}),dN="PopoverContent",dR=(0,eo.forwardRef)((e,t)=>{let n=dA(dN,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=d_(dN,e.__scopePopover);return(0,eo.createElement)(ev.z,{present:r||a.open},a.modal?(0,eo.createElement)(dD,(0,es.Z)({},i,{ref:t})):(0,eo.createElement)(dL,(0,es.Z)({},i,{ref:t})))}),dD=(0,eo.forwardRef)((e,t)=>{let n=d_(dN,e.__scopePopover),r=(0,eo.useRef)(null),i=(0,ec.e)(t,r),a=(0,eo.useRef)(!1);return(0,eo.useEffect)(()=>{let e=r.current;if(e)return(0,uJ.R)(e)},[]),(0,eo.createElement)(uQ.Z,{as:ed.g7,allowPinchZoom:!0},(0,eo.createElement)(dZ,(0,es.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,eh.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),a.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,eh.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,eh.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})))}),dL=(0,eo.forwardRef)((e,t)=>{let n=d_(dN,e.__scopePopover),r=(0,eo.useRef)(!1);return(0,eo.createElement)(dZ,(0,es.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,a;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault()),r.current=!1},onInteractOutside:t=>{var i,a;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0);let o=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(o))&&t.preventDefault()}}))}),dZ=(0,eo.forwardRef)((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:u,onInteractOutside:c,...d}=e,f=d_(dN,n),h=dC(n);return(0,uD.EW)(),(0,eo.createElement)(uL.M,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a},(0,eo.createElement)(eq.XB,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:c,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1)},(0,eo.createElement)(tJ,(0,es.Z)({"data-state":dF(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 dF(e){return e?"open":"closed"}let dz=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,l=dC(t),s=(0,eo.useRef)(null),[u,c]=(0,eo.useState)(!1),[d=!1,f]=(0,ep.T)({prop:r,defaultProp:i,onChange:a});return(0,eo.createElement)(t5,l,(0,eo.createElement)(dM,{scope:t,contentId:(0,ey.M)(),triggerRef:s,open:d,onOpenChange:f,onOpenToggle:(0,eo.useCallback)(()=>f(e=>!e),[f]),hasCustomAnchor:u,onCustomAnchorAdd:(0,eo.useCallback)(()=>c(!0),[]),onCustomAnchorRemove:(0,eo.useCallback)(()=>c(!1),[]),modal:o},n))},dV=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=d_(dT,t);return(0,eo.createElement)(dP,{scope:t,forceMount:n},(0,eo.createElement)(ev.z,{present:n||a.open},(0,eo.createElement)(t6.h,{asChild:!0,container:i},r)))},dB=(0,eW.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"]),dI=(0,eW.cx)(nk(),(0,eW.j)(["py-1","px-1"])()),dH={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},dU=eo.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:a}=e,{open:o,onOpenChange:l}=sS({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,ea.jsxs)(dz,{open:o,onOpenChange:l,...i,children:[(0,ea.jsx)(dO,{asChild:!0,children:n}),(0,ea.jsx)(n4,{children:o?(0,ea.jsx)(dV,{forceMount:!0,children:(0,ea.jsx)(dR,{asChild:!0,forceMount:!0,ref:t,...a,children:(0,ea.jsx)(sE.div,{variants:dH,initial:"init",animate:"show",exit:"exit",className:dB(),children:(0,ea.jsx)(uS,{className:dI,children:r})})})}):null})]})}),dW="Progress",[dq,d$]=(0,eu.b)(dW),[dK,dY]=dq(dW),dX=(0,eo.forwardRef)((e,t)=>{let{__scopeProgress:n,value:r,max:i,getValueLabel:a=dJ,...o}=e,l=d1(i)?i:100,s=d2(r,l)?r:null,u=d0(s)?a(s,l):void 0;return(0,eo.createElement)(dK,{scope:n,value:s,max:l},(0,eo.createElement)(em.WV.div,(0,es.Z)({"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":d0(s)?s:void 0,"aria-valuetext":u,role:"progressbar","data-state":dQ(s,l),"data-value":null!=s?s:void 0,"data-max":l},o,{ref:t})))});dX.propTypes={max(e,t,n){let r=e[t],i=String(r);return r&&!d1(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),a=d1(e.max)?e.max:100;return null==r||d2(r,a)?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 dG=(0,eo.forwardRef)((e,t)=>{var n;let{__scopeProgress:r,...i}=e,a=dY("ProgressIndicator",r);return(0,eo.createElement)(em.WV.div,(0,es.Z)({"data-state":dQ(a.value,a.max),"data-value":null!==(n=a.value)&&void 0!==n?n:void 0,"data-max":a.max},i,{ref:t}))});function dJ(e,t){return`${Math.round(e/t*100)}%`}function dQ(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function d0(e){return"number"==typeof e}function d1(e){return d0(e)&&!isNaN(e)&&e>0}function d2(e,t){return d0(e)&&!isNaN(e)&&e<=t&&e>=0}let d4=(0,eW.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"}}),d3=eo.forwardRef((e,t)=>{let{label:n,variant:r,className:i,value:a,max:o=100,...l}=e,s=null!=a?Math.round(a/o*100):null;return(0,ea.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,ea.jsx)(dX,{...l,ref:t,value:a,max:o,className:d4({variant:r,className:i}),children:(0,ea.jsx)(dG,{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(s,"%)")}})}),n&&(0,ea.jsx)(nw,{color:"subtle",size:"12",ellipsis:!0,children:n})]})});function d5(e){let t=(0,eo.useRef)({value:e,previous:e});return(0,eo.useMemo)(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}let d6="Radio",[d8,d7]=(0,eu.b)(d6),[d9,fe]=d8(d6),ft=(0,eo.forwardRef)((e,t)=>{let{__scopeRadio:n,"aria-labelledby":r,name:i,checked:a=!1,required:o,disabled:l,value:s="on",onCheck:u,...c}=e,[d,f]=(0,eo.useState)(null),h=(0,ec.e)(t,e=>f(e)),p=dm(d),m=(0,eo.useRef)(!1),g=!d||!!d.closest("form");return(0,eo.createElement)(d9,{scope:n,checked:a,disabled:l},(0,eo.createElement)(em.WV.button,(0,es.Z)({type:"button",role:"radio","aria-checked":a,"aria-labelledby":r||p,"data-state":fi(a),"data-disabled":l?"":void 0,disabled:l,value:s},c,{ref:h,onClick:(0,eh.M)(e.onClick,e=>{a||null==u||u(),g&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})),g&&(0,eo.createElement)(fr,{control:d,bubbles:!m.current,name:i,value:s,checked:a,required:o,disabled:l,style:{transform:"translateX(-100%)"}}))}),fn=(0,eo.forwardRef)((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,a=fe("RadioIndicator",n);return(0,eo.createElement)(ev.z,{present:r||a.checked},(0,eo.createElement)(em.WV.span,(0,es.Z)({"data-state":fi(a.checked),"data-disabled":a.disabled?"":void 0},i,{ref:t})))}),fr=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,a=(0,eo.useRef)(null),o=d5(n),l=tV(t);return(0,eo.useEffect)(()=>{let e=a.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(o!==n&&t){let i=new Event("click",{bubbles:r});t.call(e,n),e.dispatchEvent(i)}},[o,n,r]),(0,eo.createElement)("input",(0,es.Z)({type:"radio","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function fi(e){return e?"checked":"unchecked"}let fa=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],fo="RadioGroup",[fl,fs]=(0,eu.b)(fo,[uU,d7]),fu=uU(),fc=d7(),[fd,ff]=fl(fo),fh=(0,eo.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,name:r,"aria-labelledby":i,defaultValue:a,value:o,required:l=!1,orientation:s,dir:u,loop:c=!0,onValueChange:d,...f}=e,h=dm(),p=fu(n),m=s2(u),[g,v]=(0,ep.T)({prop:o,defaultProp:a,onChange:d});return(0,eo.createElement)(fd,{scope:n,name:r,required:l,value:g,onValueChange:v},(0,eo.createElement)(u$,(0,es.Z)({asChild:!0},p,{orientation:s,dir:m,loop:c}),(0,eo.createElement)(em.WV.div,(0,es.Z)({role:"radiogroup","aria-required":l,"aria-orientation":s,"aria-labelledby":i||h,dir:m},f,{ref:t}))))}),fp=(0,eo.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,disabled:r,...i}=e,a=ff("RadioGroupItem",n),o=fu(n),l=fc(n),s=(0,eo.useRef)(null),u=(0,ec.e)(t,s),c=a.value===i.value,d=(0,eo.useRef)(!1);return(0,eo.useEffect)(()=>{let e=e=>{fa.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,eo.createElement)(uY,(0,es.Z)({asChild:!0},o,{focusable:!r,active:c}),(0,eo.createElement)(ft,(0,es.Z)({disabled:r,required:a.required,checked:c},l,i,{name:a.name,ref:u,onCheck:()=>a.onValueChange(i.value),onKeyDown:(0,eh.M)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,eh.M)(i.onFocus,()=>{var e;d.current&&(null===(e=s.current)||void 0===e||e.click())})})))}),fm=(0,eo.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,...r}=e,i=fc(n);return(0,eo.createElement)(fn,(0,es.Z)({},i,r,{ref:t}))}),fg=(0,eW.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"}}),fv=(0,eW.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"}}),fy=eo.forwardRef((e,t)=>{let{size:n,className:r,children:i,...a}=e;return(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(fp,{...a,className:fv({size:n,className:r}),ref:t,children:(0,ea.jsx)(fm,{className:fg({size:n})})}),(0,ea.jsx)(nw,{size:"14",className:"relative top-px flex items-center",color:a.disabled?"verySubtle":"subtle",children:i})]})}),fx=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)(fh,{...r,className:(0,eW.cx)("flex gap-2",n),ref:t})}),fb="Tabs",[fw,fj]=(0,eu.b)(fb,[uU]),fk=uU(),[fE,fS]=fw(fb),fC=(0,eo.forwardRef)((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o="horizontal",dir:l,activationMode:s="automatic",...u}=e,c=s2(l),[d,f]=(0,ep.T)({prop:r,onChange:i,defaultProp:a});return(0,eo.createElement)(fE,{scope:n,baseId:(0,ey.M)(),value:d,onValueChange:f,orientation:o,dir:c,activationMode:s},(0,eo.createElement)(em.WV.div,(0,es.Z)({dir:c,"data-orientation":o},u,{ref:t})))}),fM=(0,eo.forwardRef)((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,a=fS("TabsList",n),o=fk(n);return(0,eo.createElement)(u$,(0,es.Z)({asChild:!0},o,{orientation:a.orientation,dir:a.dir,loop:r}),(0,eo.createElement)(em.WV.div,(0,es.Z)({role:"tablist","aria-orientation":a.orientation},i,{ref:t})))}),fP=(0,eo.forwardRef)((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=fS("TabsTrigger",n),l=fk(n),s=fO(o.baseId,r),u=fT(o.baseId,r),c=r===o.value;return(0,eo.createElement)(uY,(0,es.Z)({asChild:!0},l,{focusable:!i,active:c}),(0,eo.createElement)(em.WV.button,(0,es.Z)({type:"button",role:"tab","aria-selected":c,"aria-controls":u,"data-state":c?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:s},a,{ref:t,onMouseDown:(0,eh.M)(e.onMouseDown,e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():o.onValueChange(r)}),onKeyDown:(0,eh.M)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&o.onValueChange(r)}),onFocus:(0,eh.M)(e.onFocus,()=>{let e="manual"!==o.activationMode;c||i||!e||o.onValueChange(r)})})))}),f_=(0,eo.forwardRef)((e,t)=>{let{__scopeTabs:n,value:r,forceMount:i,children:a,...o}=e,l=fS("TabsContent",n),s=fO(l.baseId,r),u=fT(l.baseId,r),c=r===l.value,d=(0,eo.useRef)(c);return(0,eo.useEffect)(()=>{let e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,eo.createElement)(ev.z,{present:i||c},({present:n})=>(0,eo.createElement)(em.WV.div,(0,es.Z)({"data-state":c?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":s,hidden:!n,id:u,tabIndex:0},o,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),n&&a))});function fO(e,t){return`${e}-trigger-${t}`}function fT(e,t){return`${e}-content-${t}`}let fA=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)(fC,{ref:t,className:(0,eW.cx)("flex flex-col",n),...r})}),fN=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)(fM,{ref:t,className:(0,eW.cx)("flex flex-shrink-0 border-b border-gray-500 dark:border-graydark-500",n),...r})}),fR=eo.forwardRef((e,t)=>{let{font:n,size:r="16",weight:i="medium",className:a,...o}=e;return(0,ea.jsx)(fP,{ref:t,type:"button",className:(0,eW.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",nb({font:n,size:r,weight:i,ellipsis:!0}),a),...o})}),fD=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)(f_,{ref:t,className:(0,eW.cx)("flex-grow-1 pt-6 outline-none",n),...r})});(0,eW.j)(["relative appearance-none outline-none","p-2 m-0 w-full","min-h-[80px]",nb(),"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 fL=(0,eW.j)(["font-sans [type=number]:font-mono","outline-none m-0 p-0 w-full","disabled:pointer-events-none","read-only: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","read-only:bg-gray-200 dark:read-only:bg-graydark-300"],ghost:"bg-transparent"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","read-only:border-gray-200 dark:read-only:border-graydark-200"],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"}}),fZ=eo.forwardRef((e,t)=>{let{variant:n,size:r,state:i,noSpin:a,cursor:o,focus:l,className:s,...u}=e;return(0,ea.jsx)("input",{ref:t,className:fL({variant:n,size:r,state:i,noSpin:a,cursor:o,focus:l,className:s}),...u})});function fF(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.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 fz(){}function fV(e){return!!(e||"").match(/\d/)}function fB(e){return null==e}function fI(e){return fB(e)||"number"==typeof e&&isNaN(e)||"number"==typeof e&&!isFinite(e)}function fH(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function fU(e,t){void 0===t&&(t=!0);var n="-"===e[0],r=n&&t,i=(e=e.replace("-","")).split(".");return{beforeDecimal:i[0],afterDecimal:i[1]||"",hasNegation:n,addNegation:r}}function fW(e,t,n){for(var r="",i=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||i;return r}function fq(e,t){return Array(t+1).join(e)}function f$(e){var t=e+"",n="-"===t[0]?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],a=r[1];if(!(a=Number(a)))return n+i;i=i.replace(".","");var o=1+a,l=i.length;return o<0?i="0."+fq("0",Math.abs(o))+i:o>=l?i+=fq("0",o-l):i=(i.substring(0,o)||"0")+"."+i.substring(o),n+i}function fK(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,i=fU(e),a=i.beforeDecimal,o=i.afterDecimal,l=i.hasNegation,s=parseFloat("0."+(o||"0")),u=(o.length<=t?"0."+o:s.toFixed(t)).split(".");return(l?"-":"")+a.split("").reverse().reduce(function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e},u[0])+(r?".":"")+fW(u[1]||"",t,n)}function fY(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}(c=z||(z={})).event="event",c.props="prop";var fX=(d=function(e,t){for(var n=0,r=0,i=e.length,a=t.length;e[n]===t[n]&&nn&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:a-r}}},h=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return f&&e.length===f.length&&e.every(function(e,t){return e===f[t]})?h:(f=e,h=d.apply(void 0,e))});function fG(e){return Math.max(e.selectionStart,e.selectionEnd)}function fJ(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function fQ(e,t,n,r){var i=e.length;if(t=Math.min(Math.max(t,0),i),"left"===r){for(;t>=0&&!n[t];)t--;-1===t&&(t=n.indexOf(!0))}else{for(;t<=i&&!n[t];)t++;t>i&&(t=n.lastIndexOf(!0))}return -1===t&&(t=i),t}function f0(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n0&&-1===f[m];)m--;var v=-1===m||-1===f[m]?0:f[m]+1;return v>g?g:r-vC.length-u.length||SO?_=p:p>e.length-u.length&&(_=p),e=e.substring(0,_),void 0===(r=j?"-"+e:e)&&(r=""),i=RegExp("(-)(.)*(-)"),a=/(-)/.test(r),o=i.test(r),r=r.replace(/-/g,""),a&&!o&&l&&(r="-"+r);var T=(e=((e=r).match(RegExp("(^-)|[0-9]|"+fH(v),"g"))||[]).join("")).indexOf(v),A=fU(e=e.replace(RegExp(fH(v),"g"),function(e,t){return t===T?".":""}),l),N=A.beforeDecimal,R=A.afterDecimal,D=A.addNegation;return f.end-f.start=s.start&&i{h(navigator.language);let e=()=>{h(navigator.language)};return h(navigator.language),window.addEventListener("languagechange",e),()=>{window.removeEventListener("languagechange",e)}},[]);let p=(0,eo.useMemo)(()=>new Intl.NumberFormat(f).format(1.1)[1],[f]),{groupingSeparator:m,groupingStyle:g}=(0,eo.useMemo)(()=>(function(e,t){if("none"===t)return{groupingSeparator:"",groupingStyle:"none"};let n=new Intl.NumberFormat(e).format(123456789),r=n.replace(/[0-9]/g,"")[0],i=n.split(r).map(e=>e.length);return t?{groupingSeparator:r,groupingStyle:t}:{groupingSeparator:r,groupingStyle:i.every(e=>3===e)?"thousand":i.length>=2&&i.slice(1).every(e=>2===e)&&3===i[0]?"lakh":i.every(e=>4===e)?"wan":"thousand"}})(f,o),[f,o]);return(0,ea.jsxs)("div",{className:"relative",children:[(0,ea.jsx)(f8,{...d,autoComplete:"off",spellCheck:!1,onValueChange:c,lang:f,decimalSeparator:p,thousandsGroupStyle:g,thousandSeparator:m,className:(0,eW.cx)(fL({variant:n,size:r,state:i,focus:l,noSpin:a,cursor:s,className:u}),t?"pr-9":"")}),t&&(0,ea.jsx)("div",{className:(0,eW.cx)("flex items-center absolute top-0 h-full","small"===r?"right-2":"","medium"===r?"right-3":"","large"===r?"right-3":""),children:(0,ea.jsx)(nw,{size:"12",weight:"medium",color:"subtle",children:t})})]})}var f9=n(6391),he=n.n(f9);function ht(e,t){return e.decimalPlaces()>t?e.toFixed(t):e.toString()}function hn(e,t){return new(he())(ht(e,t))}function hr(e){let{value:t,placeholder:n=new(he())(100),decimalsLimit:r=6,allowDecimals:i=!0,disableGroupSeparators:a,onChange:o,size:l="small",units:s,error:u,changed:c,onBlur:d,onFocus:f,...h}=e,p=(0,eo.useMemo)(()=>new(he())(t),[t]),[m,g]=(0,eo.useState)(""),v=(0,eo.useCallback)(e=>{o&&o(e&&!isNaN(Number(e))?new(he())(e):void 0)},[o]),y=(0,eo.useCallback)(e=>{g(e),v(e)},[g,v]);return(0,eo.useEffect)(()=>{p.isEqualTo(m)||g(ht(p,r))},[p]),(0,ea.jsx)(f7,{...h,thousandsGroupStyle:a?"none":void 0,"data-testid":"numberfield",size:l,placeholder:n.isNaN()?"":ht(n,r),units:s,value:"NaN"!==m?m:"",decimalScale:i?r:0,onBlur:e=>{d&&d(e)},onFocus:e=>{f&&f(e)},onValueChange:e=>y(e.value||"")})}var hi=n(82842),ha=n(85375);let ho=new(he())(0);function hl(e){let{sc:t,placeholder:n=new(he())(100),decimalsLimitFiat:r=6,decimalsLimitSc:i=6,onChange:a,size:o="medium",units:l="SC",showFiat:s=!0,error:u,changed:c,prefix:d,onBlur:f,onFocus:h,name:p,...m}=e,g=(0,eo.useMemo)(()=>new(he())(void 0===t?NaN:t),[t]),{settings:v}=(0,hi.Hv)(),y=(0,ha.BW)({config:{swr:{revalidateOnFocus:!1}}}),x=(0,eo.useMemo)(()=>{var e;return v.siaCentral&&y.data?new(he())((null===(e=y.data)||void 0===e?void 0:e.rates.sc[v.currency.id])||ho):ho},[y.data,v]),[b,w]=(0,eo.useState)(),[j,k]=(0,eo.useState)(""),[E,S]=(0,eo.useState)(""),C=(0,eo.useCallback)(e=>{a&&a(e&&!isNaN(Number(e))?new(he())(e):void 0)},[a]),M=(0,eo.useCallback)(e=>{S(ht(e,r))},[S,r]),P=(0,eo.useCallback)(e=>{let t=ht(e,i);return k(t),C(t),t},[k,i,C]),_=(0,eo.useCallback)(e=>{k(e),b&&C(e)},[b,k,C]),O=(0,eo.useCallback)(e=>{M(new(he())(e).times(x))},[M,x]),T=(0,eo.useCallback)(e=>{P(new(he())(e).dividedBy(x))},[P,x]),[A,N]=(0,eo.useState)(!1);return(0,eo.useEffect)(()=>{if(!g.isEqualTo(j)){let e=ht(g,i);k(e),"fiat"!==b&&O(e)}A||N(!0)},[g]),(0,eo.useEffect)(()=>{A&&O(j)},[x]),(0,eo.useEffect)(()=>{"sc"===b&&O(j)},[j]),(0,eo.useEffect)(()=>{"fiat"===b&&T(E)},[E]),(0,ea.jsxs)("div",{className:(0,eW.cx)("flex flex-col","focus-within:ring ring-blue-500 dark:ring-blue-200","border",m.readOnly?"bg-gray-200 dark:bg-graydark-300":"bg-white dark:bg-graydark-50",m.readOnly?"pointer-events-none":"",m.readOnly?"border-blue-400 dark:border-blue-400":u?"border-red-500 dark:border-red-400":c?"border-green-500 dark:border-green-400":"border-gray-200 dark:border-graydark-200","rounded"),children:[(0,ea.jsx)(f7,{...m,name:p,"data-testid":"scInput",size:o,variant:"ghost",focus:"none",placeholder:ht(n,i),units:l,value:"NaN"!==j?j:"",decimalScale:i,allowNegative:!1,onValueChange:e=>{_(e.value||"")},onBlur:e=>{w(void 0),f&&f(e)},onFocus:e=>{w("sc"),h&&h(e)}}),s&&v.siaCentral&&(0,ea.jsx)(f7,{...m,"data-testid":"fiatInput",name:"".concat(p,"-fiat"),size:o,variant:"ghost",focus:"none",value:"NaN"!==E?E:"",units:v.currency.label,decimalScale:i,allowNegative:!1,onValueChange:e=>{S(e.value||"")},placeholder:"".concat(v.currency.prefix).concat(x?x.times(n).toFixed(r):"0.42"),prefix:d||v.currency.prefix,onFocus:e=>{w("fiat"),h&&h(e)},onBlur:e=>{w(void 0),f&&f(e)}})]})}function hs(e){let{children:t}=e;return(0,ea.jsx)(sM,{content:t,children:(0,ea.jsx)("div",{className:"relative items-center inline mx-1",children:(0,ea.jsx)(nw,{color:"subtle",children:(0,ea.jsx)(sO.RdX,{className:"scale-75"})})})})}function hu(e){let{values:t,options:n,onChange:r}=e;return(0,ea.jsx)("div",{className:"flex flex-wrap gap-1",children:n.map(e=>(0,ea.jsx)(s_,{role:"checkbox","aria-checked":t.includes(e.value),variant:t.includes(e.value)?"active":"inactive",onClick:()=>{r(e.value)},children:e.label},e.value))})}function hc(e){let{options:t,onClick:n,onRemove:r}=e;return(0,ea.jsx)("div",{className:"flex flex-wrap gap-1",children:t.map(e=>(0,ea.jsxs)(sG,{children:[(0,ea.jsx)(s_,{variant:"active",onClick:()=>{n&&n(e.value)},children:e.label}),(0,ea.jsx)(s_,{variant:"active",size:"small",onClick:()=>r(e.value),children:(0,ea.jsx)(sO.PcV,{})})]},e.value))})}let hd=(0,eW.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"}}),hf=eo.forwardRef((e,t)=>{let{size:n,state:r,icon:i,className:a,...o}=e;return(0,ea.jsxs)("div",{className:hd({size:n,state:r,className:a}),children:[i,(0,ea.jsx)("select",{ref:t,...o,className:"appearance-none flex-1 bg-transparent outline-none w-full h-full pl-1 pr-1"}),(0,ea.jsx)(sO.Cp0,{className:"pointer-events-none scale-75"})]})}),hh=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)("option",{ref:t,...r,className:(0,eW.cx)("bg-white dark:bg-graydark-200","text-gray-1100 dark:text-white",n)})}),hp=(0,eW.j)(["bg-gray-300 dark:bg-graydark-300","relative","overflow-hidden","animate-pulse","rounded"]);function hm(e){let{className:t}=e;return(0,ea.jsx)("div",{className:hp({className:t})})}let hg=(0,eW.j)(["rounded-full flex-shrink-0"],{variants:{size:{default:"w-2 h-2"}},defaultVariants:{size:"default"}}),hv=eo.forwardRef((e,t)=>{let{size:n,className:r,...i}=e;return(0,ea.jsx)("div",{ref:t,className:hg({size:n,className:r}),...i})}),hy="Switch",[hx,hb]=(0,eu.b)(hy),[hw,hj]=hx(hy),hk=(0,eo.forwardRef)((e,t)=>{let{__scopeSwitch:n,"aria-labelledby":r,name:i,checked:a,defaultChecked:o,required:l,disabled:s,value:u="on",onCheckedChange:c,...d}=e,[f,h]=(0,eo.useState)(null),p=(0,ec.e)(t,e=>h(e)),m=dm(f),g=(0,eo.useRef)(!1),v=!f||!!f.closest("form"),[y=!1,x]=(0,ep.T)({prop:a,defaultProp:o,onChange:c});return(0,eo.createElement)(hw,{scope:n,checked:y,disabled:s},(0,eo.createElement)(em.WV.button,(0,es.Z)({type:"button",role:"switch","aria-checked":y,"aria-labelledby":r||m,"aria-required":l,"data-state":hC(y),"data-disabled":s?"":void 0,disabled:s,value:u},d,{ref:p,onClick:(0,eh.M)(e.onClick,e=>{x(e=>!e),v&&(g.current=e.isPropagationStopped(),g.current||e.stopPropagation())})})),v&&(0,eo.createElement)(hS,{control:f,bubbles:!g.current,name:i,value:u,checked:y,required:l,disabled:s,style:{transform:"translateX(-100%)"}}))}),hE=(0,eo.forwardRef)((e,t)=>{let{__scopeSwitch:n,...r}=e,i=hj("SwitchThumb",n);return(0,eo.createElement)(em.WV.span,(0,es.Z)({"data-state":hC(i.checked),"data-disabled":i.disabled?"":void 0},r,{ref:t}))}),hS=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,a=(0,eo.useRef)(null),o=d5(n),l=tV(t);return(0,eo.useEffect)(()=>{let e=a.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(o!==n&&t){let i=new Event("click",{bubbles:r});t.call(e,n),e.dispatchEvent(i)}},[o,n,r]),(0,eo.createElement)("input",(0,es.Z)({type:"checkbox","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function hC(e){return e?"checked":"unchecked"}let hM=(0,eW.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"}}),hP=(0,eW.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"}}),h_=(0,eo.forwardRef)((e,t)=>{let{size:n,state:r,className:i,children:a,...o}=e;return(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(hk,{className:hP({size:n,state:r,className:i}),...o,ref:t,children:(0,ea.jsx)(hE,{className:hM({size:n})})}),a&&(0,ea.jsx)(nw,{color:o.disabled?"subtle":"contrast",children:a})]})}),hO=(0,eo.forwardRef)((e,t)=>{let{children:n,...r}=e,i=eo.Children.toArray(n),a=i.find(hN);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:eo.Children.count(e)>1?eo.Children.only(null):(0,eo.isValidElement)(e)?e.props.children:null);return(0,eo.createElement)(hT,(0,es.Z)({},r,{ref:t}),(0,eo.isValidElement)(e)?(0,eo.cloneElement)(e,void 0,n):null)}return(0,eo.createElement)(hT,(0,es.Z)({},r,{ref:t}),n)});hO.displayName="Slot";let hT=(0,eo.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,eo.isValidElement)(n)?(0,eo.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{a(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...a}:"className"===r&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:(0,ec.F)(t,n.ref)}):eo.Children.count(n)>1?eo.Children.only(null):null});hT.displayName="SlotClone";let hA=({children:e})=>(0,eo.createElement)(eo.Fragment,null,e);function hN(e){return(0,eo.isValidElement)(e)&&e.type===hA}let hR=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,eo.forwardRef)((e,n)=>{let{asChild:r,...i}=e,a=r?hO:t;return(0,eo.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,eo.createElement)(a,(0,es.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),hD=(0,eo.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,eo.createElement)(hR.svg,(0,es.Z)({},a,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,eo.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),hL="Popper",[hZ,hF]=(0,eu.b)(hL),[hz,hV]=hZ(hL),hB=(0,eo.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=hV("PopperAnchor",n),o=(0,eo.useRef)(null),l=(0,ec.e)(t,o);return(0,eo.useEffect)(()=>{a.onAnchorChange((null==r?void 0:r.current)||o.current)}),r?null:(0,eo.createElement)(hR.div,(0,es.Z)({},i,{ref:l}))}),hI="PopperContent",[hH,hU]=hZ(hI),[hW,hq]=hZ(hI,{hasParent:!1,positionUpdateFns:new Set}),h$=(0,eo.forwardRef)((e,t)=>{var n,r,i,a,o,l,s,u,c;let{__scopePopper:d,side:f="bottom",sideOffset:h=0,align:p="center",alignOffset:m=0,arrowPadding:g=0,collisionBoundary:v=[],collisionPadding:y=0,sticky:x="partial",hideWhenDetached:b=!1,avoidCollisions:w=!0,onPlaced:j,...k}=e,E=hV(hI,d),[S,C]=(0,eo.useState)(null),M=(0,ec.e)(t,e=>C(e)),[P,_]=(0,eo.useState)(null),O=tV(P),T=null!==(n=null==O?void 0:O.width)&&void 0!==n?n:0,A=null!==(r=null==O?void 0:O.height)&&void 0!==r?r:0,N="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},R=Array.isArray(v)?v:[v],D=R.length>0,L={padding:N,boundary:R.filter(hX),altBoundary:D},{reference:Z,floating:F,strategy:z,x:V,y:B,placement:I,middlewareData:H,update:U}=tZ({strategy:"fixed",placement:f+("center"!==p?"-"+p:""),whileElementsMounted:tN,middleware:[hG(),ti({mainAxis:h+A,alignmentAxis:m}),w?to({mainAxis:!0,crossAxis:!1,limiter:"partial"===x?tl():void 0,...L}):void 0,P?tF({element:P,padding:g}):void 0,w?te({...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:a,elements:o}=e,{apply:l,...s}=c,u=await e1(e,s),d=e$(r),f=eK(r);"top"===d||"bottom"===d?(t=d,n=f===(await (null==a.isRTL?void 0:a.isRTL(o.floating))?"start":"end")?"left":"right"):(n=d,t="end"===f?"top":"bottom");let h=e4(u.left,0),p=e4(u.right,0),m=e4(u.top,0),g=e4(u.bottom,0),v={availableHeight:i.floating.height-(["left","right"].includes(r)?2*(0!==m||0!==g?m+g:e4(u.top,u.bottom)):u[t]),availableWidth:i.floating.width-(["top","bottom"].includes(r)?2*(0!==h||0!==p?h+p:e4(u.left,u.right)):u[n])},y=await a.getDimensions(o.floating);null==l||l({...e,...v});let x=await a.getDimensions(o.floating);return y.width!==x.width||y.height!==x.height?{reset:{rects:!0}}:{}}},hJ({arrowWidth:T,arrowHeight:A}),b?tr({strategy:"referenceHidden"}):void 0].filter(hY)});(0,eg.b)(()=>{Z(E.anchor)},[Z,E.anchor]);let W=null!==V&&null!==B,[q,$]=hQ(I),K=(0,sN.W)(j);(0,eg.b)(()=>{W&&(null==K||K())},[W,K]);let Y=null===(i=H.arrow)||void 0===i?void 0:i.x,X=null===(a=H.arrow)||void 0===a?void 0:a.y,G=(null===(o=H.arrow)||void 0===o?void 0:o.centerOffset)!==0,[J,Q]=(0,eo.useState)();(0,eg.b)(()=>{S&&Q(window.getComputedStyle(S).zIndex)},[S]);let{hasParent:ee,positionUpdateFns:et}=hq(hI,d),en=!ee;(0,eo.useLayoutEffect)(()=>{if(!en)return et.add(U),()=>{et.delete(U)}},[en,et,U]),(0,eg.b)(()=>{en&&W&&Array.from(et).reverse().forEach(e=>requestAnimationFrame(e))},[en,W,et]);let er={"data-side":q,"data-align":$,...k,ref:M,style:{...k.style,animation:W?void 0:"none",opacity:null!==(l=H.hide)&&void 0!==l&&l.referenceHidden?0:void 0}};return(0,eo.createElement)("div",{ref:F,"data-radix-popper-content-wrapper":"",style:{position:z,left:0,top:0,transform:W?`translate3d(${Math.round(V)}px, ${Math.round(B)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[null===(s=H.transformOrigin)||void 0===s?void 0:s.x,null===(u=H.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},(0,eo.createElement)(hH,{scope:d,placedSide:q,onArrowChange:_,arrowX:Y,arrowY:X,shouldHideArrow:G},en?(0,eo.createElement)(hW,{scope:d,hasParent:!0,positionUpdateFns:et},(0,eo.createElement)(hR.div,er)):(0,eo.createElement)(hR.div,er)))}),hK={top:"bottom",right:"left",bottom:"top",left:"right"};function hY(e){return void 0!==e}function hX(e){return null!==e}let hG=()=>({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`),{}}}),hJ=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,a,o;let{placement:l,rects:s,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]=hQ(l),m={start:"0%",center:"50%",end:"100%"}[p],g=(null!==(r=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+d/2,v=(null!==(a=null===(o=u.arrow)||void 0===o?void 0:o.y)&&void 0!==a?a:0)+f/2,y="",x="";return"bottom"===h?(y=c?m:`${g}px`,x=`${-f}px`):"top"===h?(y=c?m:`${g}px`,x=`${s.floating.height+f}px`):"right"===h?(y=`${-f}px`,x=c?m:`${v}px`):"left"===h&&(y=`${s.floating.width+f}px`,x=c?m:`${v}px`),{data:{x:y,y:x}}}});function hQ(e){let[t,n="center"]=e.split("-");return[t,n]}let h0=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,eo.useState)(null);return(0,eo.createElement)(hz,{scope:t,anchor:r,onAnchorChange:i},n)},h1=(0,eo.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?tD.createPortal((0,eo.createElement)(hR.div,(0,es.Z)({},i,{ref:t})),r):null}),h2="dismissableLayer.update",h4=(0,eo.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),h3=(0,eo.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:s,onDismiss:u,...c}=e,d=(0,eo.useContext)(h4),[f,h]=(0,eo.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,eo.useState)({}),g=(0,ec.e)(t,e=>h(e)),v=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=v.indexOf(y),b=f?v.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,j=b>=x,k=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,sN.W)(e),r=(0,eo.useRef)(!1),i=(0,eo.useRef)(()=>{});return(0,eo.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function a(){h6("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=a,t.addEventListener("click",i.current,{once:!0})):a()}r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),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==o||o(e),null==s||s(e),e.defaultPrevented||null==u||u())},p),E=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,sN.W)(e),r=(0,eo.useRef)(!1);return(0,eo.useEffect)(()=>{let e=e=>{e.target&&!r.current&&h6("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;[...d.branches].some(e=>e.contains(t))||(null==l||l(e),null==s||s(e),e.defaultPrevented||null==u||u())},p);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,sN.W)(e);(0,eo.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{b!==d.layers.size-1||(null==a||a(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,eo.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),h5(),()=>{i&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=r)}},[f,p,i,d]),(0,eo.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),h5())},[f,d]),(0,eo.useEffect)(()=>{let e=()=>m({});return document.addEventListener(h2,e),()=>document.removeEventListener(h2,e)},[]),(0,eo.createElement)(hR.div,(0,es.Z)({},c,{ref:g,style:{pointerEvents:w?j?"auto":"none":void 0,...e.style},onFocusCapture:(0,eh.M)(e.onFocusCapture,E.onFocusCapture),onBlurCapture:(0,eh.M)(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:(0,eh.M)(e.onPointerDownCapture,k.onPointerDownCapture)}))});function h5(){let e=new CustomEvent(h2);document.dispatchEvent(e)}function h6(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&i.addEventListener(e,t,{once:!0}),r)?i&&(0,tD.flushSync)(()=>i.dispatchEvent(a)):i.dispatchEvent(a)}let h8="HoverCard",[h7,h9]=(0,eu.b)(h8,[hF]),pe=hF(),[pt,pn]=h7(h8),pr=(0,eo.forwardRef)((e,t)=>{let{__scopeHoverCard:n,...r}=e,i=pn("HoverCardTrigger",n),a=pe(n);return(0,eo.createElement)(hB,(0,es.Z)({asChild:!0},a),(0,eo.createElement)(hR.a,(0,es.Z)({"data-state":i.open?"open":"closed"},r,{ref:t,onPointerEnter:(0,eh.M)(e.onPointerEnter,pc(i.onOpen)),onPointerLeave:(0,eh.M)(e.onPointerLeave,pc(i.onClose)),onFocus:(0,eh.M)(e.onFocus,i.onOpen),onBlur:(0,eh.M)(e.onBlur,i.onClose),onTouchStart:(0,eh.M)(e.onTouchStart,e=>e.preventDefault())})))}),pi="HoverCardPortal",[pa,po]=h7(pi,{forceMount:void 0}),pl="HoverCardContent",ps=(0,eo.forwardRef)((e,t)=>{let n=po(pl,e.__scopeHoverCard),{forceMount:r=n.forceMount,...i}=e,a=pn(pl,e.__scopeHoverCard);return(0,eo.createElement)(ev.z,{present:r||a.open},(0,eo.createElement)(pu,(0,es.Z)({"data-state":a.open?"open":"closed"},i,{onPointerEnter:(0,eh.M)(e.onPointerEnter,pc(a.onOpen)),onPointerLeave:(0,eh.M)(e.onPointerLeave,pc(a.onClose)),ref:t})))}),pu=(0,eo.forwardRef)((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:l,...s}=e,u=pn(pl,n),c=pe(n),d=(0,eo.useRef)(null),f=(0,ec.e)(t,d),[h,p]=(0,eo.useState)(!1);return(0,eo.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,eo.useEffect)(()=>{if(d.current){let e=()=>{p(!1),u.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;(null===(e=document.getSelection())||void 0===e?void 0:e.toString())!==""&&(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,eo.useEffect)(()=>{d.current&&(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).forEach(e=>e.setAttribute("tabindex","-1"))}),(0,eo.createElement)(h3,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:l,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:(0,eh.M)(o,e=>{e.preventDefault()}),onDismiss:u.onDismiss},(0,eo.createElement)(h$,(0,es.Z)({},c,s,{onPointerDown:(0,eh.M)(s.onPointerDown,e=>{e.currentTarget.contains(e.target)&&p(!0),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!0}),ref:f,style:{...s.style,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)",userSelect:h?"text":void 0,WebkitUserSelect:h?"text":void 0}})))});function pc(e){return t=>"touch"===t.pointerType?void 0:e()}let pd=e=>{let{__scopeHoverCard:t,children:n,open:r,defaultOpen:i,onOpenChange:a,openDelay:o=700,closeDelay:l=300}=e,s=pe(t),u=(0,eo.useRef)(0),c=(0,eo.useRef)(0),d=(0,eo.useRef)(!1),f=(0,eo.useRef)(!1),[h=!1,p]=(0,ep.T)({prop:r,defaultProp:i,onChange:a}),m=(0,eo.useCallback)(()=>{clearTimeout(c.current),u.current=window.setTimeout(()=>p(!0),o)},[o,p]),g=(0,eo.useCallback)(()=>{clearTimeout(u.current),d.current||f.current||(c.current=window.setTimeout(()=>p(!1),l))},[l,p]),v=(0,eo.useCallback)(()=>p(!1),[p]);return(0,eo.useEffect)(()=>()=>{clearTimeout(u.current),clearTimeout(c.current)},[]),(0,eo.createElement)(pt,{scope:t,open:h,onOpenChange:p,onOpen:m,onClose:g,onDismiss:v,hasSelectionRef:d,isPointerDownOnContentRef:f},(0,eo.createElement)(h0,s,n))},pf=e=>{let{__scopeHoverCard:t,forceMount:n,children:r,container:i}=e,a=pn(pi,t);return(0,eo.createElement)(pa,{scope:t,forceMount:n},(0,eo.createElement)(ev.z,{present:n||a.open},(0,eo.createElement)(h1,{asChild:!0,container:i},r)))},ph=(0,eW.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"]),pp=(0,eW.cx)(nk(),"max-w-sm","py-0.5","px-1"),pm={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},pg=eo.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:a}=e,{className:o,...l}=a||{},{open:s,onOpenChange:u}=sS({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,ea.jsxs)(pd,{open:s,onOpenChange:u,...i,children:[n&&(0,ea.jsx)(pr,{asChild:!0,children:n}),(0,ea.jsx)(n4,{children:s?(0,ea.jsx)(pf,{forceMount:!0,children:(0,ea.jsx)(ps,{asChild:!0,forceMount:!0,ref:t,...l,children:(0,ea.jsx)(sE.div,{variants:pm,initial:"init",animate:"show",exit:"exit",className:ph(),children:(0,ea.jsx)("div",{className:(0,eW.cx)(pp,o),children:r})})})}):null})]})});function pv(e,t=[]){let n=[],r=()=>{let t=n.map(e=>(0,eo.createContext)(e));return function(n){let r=(null==n?void 0:n[e])||t;return(0,eo.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=(0,eo.createContext)(r),a=n.length;function o(t){let{scope:n,children:r,...o}=t,l=(null==n?void 0:n[e][a])||i,s=(0,eo.useMemo)(()=>o,Object.values(o));return(0,eo.createElement)(l.Provider,{value:s},r)}return n=[...n,r],o.displayName=t+"Provider",[o,function(n,o){let l=(null==o?void 0:o[e][a])||i,s=(0,eo.useContext)(l);if(s)return s;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)[`__scope${r}`];return{...t,...i}},{});return(0,eo.useMemo)(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}function py(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 px(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function pb(...e){return(0,eo.useCallback)(px(...e),e)}let pw=(0,eo.forwardRef)((e,t)=>{let{children:n,...r}=e,i=eo.Children.toArray(n),a=i.find(pE);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:eo.Children.count(e)>1?eo.Children.only(null):(0,eo.isValidElement)(e)?e.props.children:null);return(0,eo.createElement)(pj,(0,es.Z)({},r,{ref:t}),(0,eo.isValidElement)(e)?(0,eo.cloneElement)(e,void 0,n):null)}return(0,eo.createElement)(pj,(0,es.Z)({},r,{ref:t}),n)});pw.displayName="Slot";let pj=(0,eo.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,eo.isValidElement)(n)?(0,eo.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{a(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...a}:"className"===r&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:t?px(t,n.ref):n.ref}):eo.Children.count(n)>1?eo.Children.only(null):null});pj.displayName="SlotClone";let pk=({children:e})=>(0,eo.createElement)(eo.Fragment,null,e);function pE(e){return(0,eo.isValidElement)(e)&&e.type===pk}let pS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,eo.forwardRef)((e,n)=>{let{asChild:r,...i}=e,a=r?pw:t;return(0,eo.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,eo.createElement)(a,(0,es.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function pC(e){let t=(0,eo.useRef)(e);return(0,eo.useEffect)(()=>{t.current=e}),(0,eo.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)?eo.useLayoutEffect:()=>{},pP=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,i]=(0,eo.useState)(),a=(0,eo.useRef)({}),o=(0,eo.useRef)(e),l=(0,eo.useRef)("none"),[s,u]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,eo.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return(0,eo.useEffect)(()=>{let e=p_(a.current);l.current="mounted"===s?e:"none"},[s]),pM(()=>{let t=a.current,n=o.current;if(n!==e){let r=l.current,i=p_(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(r){let e=e=>{let t=p_(a.current).includes(e.animationName);e.target===r&&t&&(0,tD.flushSync)(()=>u("ANIMATION_END"))},t=e=>{e.target===r&&(l.current=p_(a.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(s),ref:(0,eo.useCallback)(e=>{e&&(a.current=getComputedStyle(e)),i(e)},[])}}(t),i="function"==typeof n?n({present:r.isPresent}):eo.Children.only(n),a=pb(r.ref,i.ref);return"function"==typeof n||r.isPresent?(0,eo.cloneElement)(i,{ref:a}):null};function p_(e){return(null==e?void 0:e.animationName)||"none"}pP.displayName="Presence";let pO=el["useId".toString()]||(()=>void 0),pT=0;function pA(e){let t=e+"CollectionProvider",[n,r]=pv(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e+"CollectionSlot",l=eo.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=pb(t,a(o,n).collectionRef);return eo.createElement(pw,{ref:i},r)}),s=e+"CollectionItemSlot",u="data-radix-collection-item";return[{Provider:e=>{let{scope:t,children:n}=e,r=eo.useRef(null),a=eo.useRef(new Map).current;return eo.createElement(i,{scope:t,itemMap:a,collectionRef:r},n)},Slot:l,ItemSlot:eo.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=eo.useRef(null),l=pb(t,o),c=a(s,n);return eo.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),eo.createElement(pw,{[u]:"",ref:l},r)})},function(t){let n=a(e+"CollectionConsumer",t);return eo.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}let pN="dismissableLayer.update",pR=(0,eo.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pD=(0,eo.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:s,onDismiss:u,...c}=e,d=(0,eo.useContext)(pR),[f,h]=(0,eo.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,eo.useState)({}),g=pb(t,e=>h(e)),v=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=v.indexOf(y),b=f?v.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,j=b>=x,k=function(e,t=null==globalThis?void 0:globalThis.document){let n=pC(e),r=(0,eo.useRef)(!1),i=(0,eo.useRef)(()=>{});return(0,eo.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function a(){pZ("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=a,t.addEventListener("click",i.current,{once:!0})):a()}r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),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==o||o(e),null==s||s(e),e.defaultPrevented||null==u||u())},p),E=function(e,t=null==globalThis?void 0:globalThis.document){let n=pC(e),r=(0,eo.useRef)(!1);return(0,eo.useEffect)(()=>{let e=e=>{e.target&&!r.current&&pZ("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;[...d.branches].some(e=>e.contains(t))||(null==l||l(e),null==s||s(e),e.defaultPrevented||null==u||u())},p);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=pC(e);(0,eo.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{b!==d.layers.size-1||(null==i||i(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,eo.useEffect)(()=>{if(f)return r&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(a=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),pL(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=a)}},[f,p,r,d]),(0,eo.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),pL())},[f,d]),(0,eo.useEffect)(()=>{let e=()=>m({});return document.addEventListener(pN,e),()=>document.removeEventListener(pN,e)},[]),(0,eo.createElement)(pS.div,(0,es.Z)({},c,{ref:g,style:{pointerEvents:w?j?"auto":"none":void 0,...e.style},onFocusCapture:py(e.onFocusCapture,E.onFocusCapture),onBlurCapture:py(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:py(e.onPointerDownCapture,k.onPointerDownCapture)}))});function pL(){let e=new CustomEvent(pN);document.dispatchEvent(e)}function pZ(e,t,n,{discrete:r}){var i,a;let o=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?(i=o,a=l,i&&(0,tD.flushSync)(()=>i.dispatchEvent(a))):o.dispatchEvent(l)}(e,t)=>(0,eo.createElement)(pS.span,(0,es.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 pF="NavigationMenu",[pz,pV,pB]=pA(pF),[pI,pH,pU]=pA(pF),[pW,pq]=pv(pF,[pB,pU]),[p$,pK]=pW(pF),[pY,pX]=pW(pF),[pG,pJ]=pW("NavigationMenuItem"),pQ=((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pK("NavigationMenuIndicator",n),a=pV(n),[o,l]=(0,eo.useState)(null),[s,u]=(0,eo.useState)(null),c="horizontal"===i.orientation,d=!!i.value;(0,eo.useEffect)(()=>{var e;let t=null===(e=a().find(e=>e.value===i.value))||void 0===e?void 0:e.ref.current;t&&l(t)},[a,i.value]);let f=()=>{o&&u({size:c?o.offsetWidth:o.offsetHeight,offset:c?o.offsetLeft:o.offsetTop})};return p5(o,f),p5(i.indicatorTrack,f),s?(0,eo.createElement)(pS.div,(0,es.Z)({"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":i.orientation},r,{ref:t,style:{position:"absolute",...c?{left:0,width:s.size+"px",transform:`translateX(${s.offset}px)`}:{top:0,height:s.size+"px",transform:`translateY(${s.offset}px)`},...r.style}})):null},"NavigationMenuContent"),p0=((e,t)=>{let{onViewportContentChange:n,onViewportContentRemove:r}=pK(pQ,e.__scopeNavigationMenu);return pM(()=>{n(e.value,{ref:t,...e})},[e,t,n]),pM(()=>()=>r(e.value),[e.value,r]),null},"navigationMenu.rootContentDismiss"),p1=(0,eo.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,value:r,triggerRef:i,focusProxyRef:a,wasEscapeCloseRef:o,onRootContentClose:l,onContentFocusOutside:s,...u}=e,c=pK(pQ,n),d=(0,eo.useRef)(null),f=pb(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=pV(n),g=(0,eo.useRef)(null),{onItemDismiss:v}=c;(0,eo.useEffect)(()=>{let e=d.current;if(c.isRootMenu&&e){let t=()=>{var t;v(),l(),e.contains(document.activeElement)&&(null===(t=i.current)||void 0===t||t.focus())};return e.addEventListener(p0,t),()=>e.removeEventListener(p0,t)}},[c.isRootMenu,e.value,i,v,l]);let y=(0,eo.useMemo)(()=>{let e=m().map(e=>e.value);"rtl"===c.dir&&e.reverse();let t=e.indexOf(c.value),n=e.indexOf(c.previousValue),i=r===c.value,a=n===e.indexOf(r);if(!i&&!a)return g.current;let o=(()=>{if(t!==n){if(i&&-1!==n)return t>n?"from-end":"from-start";if(a&&-1!==t)return t>n?"to-start":"to-end"}return null})();return g.current=o,o},[c.previousValue,c.value,c.dir,m,r]);return(0,eo.createElement)(p2,{asChild:!0},(0,eo.createElement)(pD,(0,es.Z)({id:p,"aria-labelledby":h,"data-motion":y,"data-orientation":c.orientation},u,{ref:f,onDismiss:()=>{var e;let t=new Event(p0,{bubbles:!0,cancelable:!0});null===(e=d.current)||void 0===e||e.dispatchEvent(t)},onFocusOutside:py(e.onFocusOutside,e=>{var t;s();let n=e.target;null!==(t=c.rootNavigationMenu)&&void 0!==t&&t.contains(n)&&e.preventDefault()}),onPointerDownOutside:py(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:py(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){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),r=document.activeElement,i=t.findIndex(e=>e===r);if(p3(e.shiftKey?t.slice(0,i).reverse():t.slice(i+1,t.length)))e.preventDefault();else{var n;null===(n=a.current)||void 0===n||n.focus()}}}),onEscapeKeyDown:py(e.onEscapeKeyDown,e=>{o.current=!0})})))}),p2=((e,t)=>{let{__scopeNavigationMenu:n,children:r,...i}=e,a=pK("NavigationMenuViewport",n),o=pb(t,a.onViewportChange),l=pX(pQ,e.__scopeNavigationMenu),[s,u]=(0,eo.useState)(null),[c,d]=(0,eo.useState)(null),f=s?(null==s?void 0:s.width)+"px":void 0,h=s?(null==s?void 0:s.height)+"px":void 0,p=!!a.value,m=p?a.value:a.previousValue;return p5(c,()=>{c&&u({width:c.offsetWidth,height:c.offsetHeight})}),(0,eo.createElement)(pS.div,(0,es.Z)({"data-state":function(e){return e?"open":"closed"}(p),"data-orientation":a.orientation},i,{ref:o,style:{pointerEvents:!p&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":f,"--radix-navigation-menu-viewport-height":h,...i.style},onPointerEnter:py(e.onPointerEnter,a.onContentEnter),onPointerLeave:py(e.onPointerLeave,function(e){return t=>"mouse"===t.pointerType?e(t):void 0}(a.onContentLeave))}),Array.from(l.items).map(([e,{ref:t,forceMount:n,...r}])=>{let i=m===e;return(0,eo.createElement)(pP,{key:e,present:n||i},(0,eo.createElement)(p1,(0,es.Z)({},r,{ref:px(t,e=>{i&&e&&d(e)})})))}))},(0,eo.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pK("FocusGroup",n);return(0,eo.createElement)(pI.Provider,{scope:n},(0,eo.createElement)(pI.Slot,{scope:n},(0,eo.createElement)(pS.div,(0,es.Z)({dir:i.dir},r,{ref:t}))))})),p4=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"];(e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pH(n),a=pK("FocusGroupItem",n);return(0,eo.createElement)(pI.ItemSlot,{scope:n},(0,eo.createElement)(pS.button,(0,es.Z)({},r,{ref:t,onKeyDown:py(e.onKeyDown,e=>{if(["Home","End",...p4].includes(e.key)){let t=i().map(e=>e.ref.current);if(["rtl"===a.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),p4.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>p3(t)),e.preventDefault()}})})))};function p3(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function p5(e,t){let n=pC(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 p6=n(38617);let p8=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)(fp,{...r,ref:t,className:(0,eW.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 p7(e){let{className:t,tooltipClassName:n,tabIndex:r}=e,{theme:i,setTheme:a}=(0,p6.F)();return(0,ea.jsxs)(fh,{value:i,tabIndex:r,className:(0,eW.cx)("flex gap-4",t),onValueChange:e=>a(e),children:[(0,ea.jsx)(p8,{value:"system",children:(0,ea.jsx)(sM,{className:n,sideOffset:16,content:"System",children:(0,ea.jsx)(sO.$Iz,{})})}),(0,ea.jsx)(p8,{value:"light",children:(0,ea.jsx)(sM,{className:n,sideOffset:16,content:"Light",children:(0,ea.jsx)(sO.JaG,{})})}),(0,ea.jsx)(p8,{value:"dark",children:(0,ea.jsx)(sM,{className:n,sideOffset:16,content:"Dark",children:(0,ea.jsx)(sO.osk,{})})})]})}let{useDropzone:p9}=n(74424);function me(e){let{title:t,children:n,rootClassName:r,className:i,message:a,showBorderInactive:o,testId:l,...s}=e,{getRootProps:u,getInputProps:c,isDragActive:d}=p9(s);return(0,ea.jsxs)("div",{"data-testid":l,...u(),className:(0,eW.cx)("outline-none",r),children:[(0,ea.jsxs)("div",{className:(0,eW.cx)(d?"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",o?["border-green-600 dark:border-green-500","hover:border-green-700 hover:dark:border-green-500"]:"border-transparent",d?["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,ea.jsx)("input",{...c()}),a&&(0,ea.jsx)(nj,{size:"14",children:t||"Drop your files here or click to to open the file picker."})]}),n]})}var mt=n(14582),mn=n(63739),mr=n(13980),mi=n.n(mr),ma=n(72779),mo=n.n(ma),ml=n(47440),ms=n(59309),mu=n(19067),mc=n(71220),md=n(28142);function mf(e){return"bandwidth"in e?e.bandwidth():0}var mh=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function mp(){return(mp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mh),v=null!=m?m:(0,mc.Z)(r,void 0===f?10:f),y=(null!=p?p:0)+mf(r)/2,x=v.map(function(e,t){var n,a=(null!=(n=(0,md.Z)(r(e)))?n:0)+y;return{index:t,from:new mu.Z({x:0,y:a}),to:new mu.Z({x:i,y:a})}});return eo.createElement(ms.Z,{className:mo()("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 eo.createElement(ml.default,mp({key:"row-line-"+r,from:t,to:n,stroke:o,strokeWidth:s,strokeDasharray:u,style:h},g))}))}mm.propTypes={tickValues:mi().array,width:mi().number.isRequired};var mg=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function mv(){return(mv=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mg),v=null!=p?p:(0,mc.Z)(r,void 0===d?10:d),y=(null!=h?h:0)+mf(r)/2,x=v.map(function(e,t){var n,a=(null!=(n=(0,md.Z)(r(e)))?n:0)+y;return{index:t,from:new mu.Z({x:a,y:0}),to:new mu.Z({x:a,y:i})}});return eo.createElement(ms.Z,{className:mo()("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 eo.createElement(ml.default,mv({key:"column-line-"+r,from:t,to:n,stroke:o,strokeWidth:s,strokeDasharray:u,style:f},g))}))}my.propTypes={tickValues:mi().array,height:mi().number.isRequired};var mx=n(64183),mb=n(8597);function mw(e){var t=e.id,n=e.width,r=e.height,i=e.children;return eo.createElement("defs",null,eo.createElement("pattern",{id:t,width:n,height:r,patternUnits:"userSpaceOnUse"},i))}mw.propTypes={id:mi().string.isRequired,width:mi().number.isRequired,height:mi().number.isRequired,children:mi().node.isRequired};var mj={horizontal:"horizontal",vertical:"vertical",diagonal:"diagonal",diagonalRightToLeft:"diagonalRightToLeft"};function mk(e){var t=e.id,n=e.width,r=e.height,i=e.stroke,a=e.strokeWidth,o=e.strokeDasharray,l=e.strokeLinecap,s=void 0===l?"square":l,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 eo.createElement(mw,{id:t,width:n,height:r},!!h&&eo.createElement("rect",{className:mo()("visx-pattern-line-background"),width:n,height:r,fill:h}),m.map(function(e,n){return eo.createElement("path",{key:"visx-"+t+"-line-"+e+"-"+n,className:mo()("visx-pattern-line",p),d:function(e){var t=e.height;switch(e.orientation){case mj.horizontal:return"M 0,"+t/2+" l "+t+",0";case mj.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 mj.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 mj.vertical:default:return"M "+t/2+", 0 l 0, "+t}}({orientation:e,height:r}),stroke:i,strokeWidth:a,strokeDasharray:o,strokeLinecap:s,shapeRendering:c})}))}mk.propTypes={id:mi().string.isRequired,width:mi().number.isRequired,height:mi().number.isRequired,className:mi().string,background:mi().string,stroke:mi().string,strokeWidth:mi().oneOfType([mi().number,mi().string]),strokeDasharray:mi().oneOfType([mi().string,mi().number]),strokeLinecap:mi().oneOf(["square","butt","round","inherit"]),shapeRendering:mi().oneOfType([mi().string,mi().number]),orientation:mi().array};var mE=["tooltipOpen"];function mS(){return(mS=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mC);return eo.createElement("div",mM({ref:t,className:mo()("visx-tooltip",n),style:mM({top:null==r||null==s?r:r+s,left:null==i||null==o?i:i+o},void 0!==h&&h&&{position:"absolute"},!(void 0!==f&&f)&&c)},p),d)});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),g=!1,v=!1;if(u&&s){var y=void 0===r?0:r,x=void 0===f?0:f;if(s.width){var b=y+a+u.width-s.width,w=u.width-y-a;g=b>0&&b>w}else{var j=y+a+u.width-window.innerWidth,k=u.width-y-a;g=j>0&&j>k}if(s.height){var E=x+l+u.height-s.height,S=u.height-x-l;v=E>0&&E>S}else v=x+l+u.height>window.innerHeight;y=g?y-u.width-a:y+a,x=v?x-u.height-l:x+l,t="translate("+(y=Math.round(y))+"px, "+(x=Math.round(x))+"px)"}return eo.createElement(m_,mL({ref:p,style:mL({left:0,top:0,transform:t},!(void 0!==h&&h)&&d)},m),eo.createElement(mR,{value:{isFlippedVertically:!v,isFlippedHorizontally:!g}},n))}mZ.propTypes={nodeRef:mi().oneOfType([mi().string,mi().func,mi().object])};var mF=((p=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={rect:void 0,parentRect:void 0},n.nodeRef=eo.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,mT(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:tD.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():mA,parentRect:null!=t&&t.getBoundingClientRect?t.getBoundingClientRect():mA}},n.render=function(){return eo.createElement(mZ,mO({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},t}(eo.PureComponent)).displayName="withBoundingRects("+(mZ.displayName||"")+")",p),mz=n(99985);function mV(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],a=0,o=("step"in e&&void 0!==e.step?e.step():1)*(i-r)/Math.abs(i-r);if(o>0)for(;t>r+o*(a+1);)a+=1;else for(;t0?Math.min(e.dx,t.bounds.x1-o):Math.max(e.dx,t.bounds.x0-r),u=e.dy>0?Math.min(e.dy,t.bounds.y1-l):Math.max(e.dy,t.bounds.y0-i);return mY({},t,{isBrushing:!0,extent:mY({},t.extent,{x0:r+s,x1:o+s,y0:i+u,y1:l+u})})})},t.selectionDragEnd=function(){var e=t.props,n=e.updateBrush,r=e.onBrushEnd,i=e.onMoveSelectionChange;e.isControlled||n(function(e){var t=mY({},e,{isBrushing:!1,start:mY({},e.start,{x:Math.min(e.extent.x0,e.extent.x1),y:Math.min(e.extent.y0,e.extent.y1)}),end:mY({},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,mX(t,e),t.prototype.render=function(){var e=this.props,t=e.width,n=e.height,r=e.stageWidth,i=e.stageHeight,a=e.brush,o=e.disableDraggingSelection,l=e.onMouseLeave,s=e.onMouseMove,u=e.onMouseUp,c=e.onClick,d=e.selectedBoxStyle,f=e.isControlled,h=e.isDragInProgress;return eo.createElement(mz.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,g=e.dragMove;return eo.createElement("g",null,h&&eo.createElement("rect",{width:r,height:i,fill:"transparent",onPointerUp:f?void 0:m,onPointerMove:g,onPointerLeave:f?void 0:m,style:mG}),eo.createElement("rect",mY({x:Math.min(a.extent.x0,a.extent.x1),y:Math.min(a.extent.y0,a.extent.y1),width:t,height:n,className:"visx-brush-selection",onPointerDown:o?void 0:p,onPointerLeave:function(e){l&&l(e)},onPointerMove:function(e){g(e),s&&s(e)},onPointerUp:function(e){f||m(e),u&&u(e)},onClick:function(e){c&&c(e)},style:{pointerEvents:a.isBrushing||a.activeHandle?"none":"all",cursor:o?void 0:"move"}},d)))})},t}(eo.Component);function mQ(){return(mQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Math.min(s,e.bounds.x1-a):Math.max(s,e.bounds.x0-n),c=u>0?Math.min(u,e.bounds.y1-o):Math.max(u,e.bounds.y0-r);return mQ({},e,{isBrushing:!0,extent:mQ({},e.extent,{x0:n+l,y0:r+c,x1:a+l,y1:o+c})})}),"select"===i&&n.updateBrush(function(e){var t=e.start,r=t.x,i=t.y,a={x:Math.min(Math.max(r+s,e.bounds.x0),e.bounds.x1),y:Math.min(Math.max(i+u,e.bounds.y0),e.bounds.y1)},o=n.getExtent(l,a);return mQ({},e,{end:a,extent:o})})}},n.getExtent=function(e,t){var r=n.props,i=r.brushDirection,a=r.width,o=r.height;return{x0:"vertical"===i?0:Math.min(e.x||0,t.x||0),x1:"vertical"===i?a:Math.max(e.x||0,t.x||0),y0:"horizontal"===i?0:Math.min(e.y||0,t.y||0),y1:"horizontal"===i?o:Math.max(e.y||0,t.y||0)}},n.handleDragStart=function(e){var t=n.props,r=t.onBrushStart,i=t.left,a=t.top,o=t.inheritedMargin,l=t.useWindowMoveEvents,s=null!=o&&o.left?o.left:0,u=null!=o&&o.top?o.top:0,c={x:(e.x||0)+e.dx-i-s,y:(e.y||0)+e.dy-a-u},d=mQ({},c);r&&r(c),n.updateBrush(function(t){return mQ({},t,{start:c,end:d,extent:{x0:-1,x1:-1,y0:-1,y1:-1},isBrushing:!0,brushingType:"select",brushPageOffset:l?mI(e.event):void 0})})},n.handleBrushStart=function(e){var t=n.props,r=t.onBrushStart,i=t.left,a=t.top,o=t.inheritedMargin;if(r){var l=null!=o&&o.left?o.left:0,s=null!=o&&o.top?o.top:0;r({x:(e.x||0)+e.dx-i-l,y:(e.y||0)+e.dy-a-s})}},n.handleDragMove=function(e){var t=n.props,r=t.left,i=t.top,a=t.inheritedMargin,o=t.useWindowMoveEvents;if(e.isDragging&&!o){var l=(null==a?void 0:a.left)||0,s=(null==a?void 0:a.top)||0,u={x:(e.x||0)+e.dx-r-l,y:(e.y||0)+e.dy-i-s};n.updateBrush(function(e){var t=e.start,r=n.getExtent(t,u);return mQ({},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,a=mQ({},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(a),r&&n.reset(),a})},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,a=t.y0,o=t.y1,l=e/2,s=n.getBrushWidth(),u=n.getBrushHeight();return{top:{x:r-l,y:a-l,height:e,width:s+e},bottom:{x:r-l,y:o-l,height:e,width:s+e},right:{x:i-l,y:a-l,height:u+e,width:e},left:{x:r-l,y:a-l,height:u+e,width:e}}},n.corners=function(){var e=n.props.handleSize,t=n.state.extent,r=t.x0,i=t.x1,a=t.y0,o=t.y1,l=e/2;return{topLeft:{x:Math.min(r,i)-l,y:Math.min(a,o)-l,width:e,height:e},topRight:{x:Math.max(r,i)-l,y:Math.min(a,o)-l,width:e,height:e},bottomLeft:{x:Math.min(r,i)-l,y:Math.max(a,o)-l,width:e,height:e},bottomRight:{x:Math.max(r,i)-l,y:Math.max(a,o)-l,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=mQ({},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,m0(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,a=n.extent;if(!(-1===a.x0&&-1===a.x1&&-1===a.y0&&-1===a.y1)){var o=t.props.width/e.width,l=t.props.height/e.height;r={x:o*a.x0,y:l*a.y0},i={x:o*a.x1,y:l*a.y1},a=t.getExtent(r,i)}return{start:r,end:i,extent:a,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,a=i.top,o=i.left,l=i.width,s=i.height,u=i.onMouseLeave,c=i.onMouseUp,d=i.onMouseMove,f=i.onBrushEnd,h=i.onClick,p=i.resizeTriggerAreas,m=i.selectedBoxStyle,g=i.disableDraggingSelection,v=i.clickSensitivity,y=i.useWindowMoveEvents,x=i.renderBrushHandle,b=this.state.brushingType,w=this.handles(),j=this.corners(),k=this.getBrushWidth(),E=this.getBrushHeight(),S=new Set(p);return eo.createElement(ms.Z,{className:"visx-brush",top:a,left:o},eo.createElement(mz.Z,{width:l,height:s,resetOnStart:!0,onDragStart:this.handleDragStart,onDragMove:this.handleDragMove,onDragEnd:this.handleDragEnd,isDragging:y?"select"===b:void 0},function(t){var n=t.dragStart,r=t.isDragging,i=t.dragMove,a=t.dragEnd;return eo.createElement(mt.Z,{className:"visx-brush-overlay",fill:"transparent",x:0,y:0,width:l,height:s,onDoubleClick:function(){return e.reset()},onClick:function(t){var n=e.mouseUpTime-e.mouseDownTime;h&&n=0||(i[n]=e[n]);return i}(e,m8),v=a,y=l,x=o,b=s;return void 0!==m&&!m||v||y||x||b||(v="0",y="0",x="0",b="1"),eo.createElement("defs",null,eo.createElement("linearGradient",m7({id:n,x1:v,y1:x,x2:y,y2:b,gradientTransform:h?"rotate("+h+")":p},g),!!t&&t,!t&&eo.createElement("stop",{offset:void 0===u?"0%":u,stopColor:r,stopOpacity:void 0===c?1:c}),!t&&eo.createElement("stop",{offset:void 0===d?"100%":d,stopColor:i,stopOpacity:void 0===f?1:f})))}m9.propTypes={id:mi().string.isRequired,from:mi().string,to:mi().string,x1:mi().oneOfType([mi().string,mi().number]),x2:mi().oneOfType([mi().string,mi().number]),y1:mi().oneOfType([mi().string,mi().number]),y2:mi().oneOfType([mi().string,mi().number]),fromOffset:mi().oneOfType([mi().string,mi().number]),fromOpacity:mi().oneOfType([mi().string,mi().number]),toOffset:mi().oneOfType([mi().string,mi().number]),toOpacity:mi().oneOfType([mi().string,mi().number]),rotate:mi().oneOfType([mi().string,mi().number]),transform:mi().string,children:mi().node,vertical:mi().bool};var ge=n(78307),gt=n(74747);function gn(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 gr=n(88744),gi=n(55746),ga=n(45742),go=n(27266),gl=["id","markerWidth","markerHeight","markerUnits","children"];function gs(){return(gs=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,gl);return eo.createElement("defs",null,eo.createElement("marker",gs({id:t,markerWidth:void 0===n?3:n,markerHeight:void 0===r?3:r,markerUnits:void 0===i?"userSpaceOnUse":i},o),a))}gu.propTypes={id:mi().string.isRequired,size:mi().number,markerWidth:mi().oneOfType([mi().string,mi().number]),markerHeight:mi().oneOfType([mi().string,mi().number]),markerUnits:mi().string,refX:mi().oneOfType([mi().string,mi().number]),refY:mi().oneOfType([mi().string,mi().number]),strokeWidth:mi().number,children:mi().node.isRequired};var gc=["id","size","strokeWidth"];function gd(){return(gd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,gc),l=2*r+a,s=l/2;return eo.createElement(gu,gd({id:t,markerWidth:l,markerHeight:l,refX:0,refY:s,orient:"auto-start-reverse",markerUnits:"strokeWidth",strokeWidth:a},o),eo.createElement("circle",{r:r,cx:s,cy:s}))}var gh=n(64170),gp={top:"top",left:"left",bottom:"bottom"};function gm(){return(gm=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,gw),j=null!=g?g:"tickFormat"in m?m.tickFormat():gy.Z,k=f===gp.left,E=f===gp.top,S=E||f===gp.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}(m),M=k||E?-1:1,P=m.range(),_=(void 0===(t=p)&&(t=0),"number"==typeof t?{start:t,end:t}:gb({start:0,end:0},t)),O=gx({x:Number(P[0])+.5-_.start,y:0},S),T=gx({x:Number(P[P.length-1])+.5+_.end,y:0},S),A=(null!=x?x:(0,mc.Z)(m,c)).filter(function(e){return!l||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),N=A.map(function(e){var t=e.value,n=e.index,r=(0,md.Z)(C(t));return{value:t,index:n,from:gx({x:r,y:0},S),to:gx({x:r,y:y*M},S),formattedValue:j(t,n,A)}});return eo.createElement(ms.Z,{className:mo()("visx-axis",r),top:void 0===b?0:b,left:void 0===s?0:s},(void 0===n?function(e){var t=e.axisFromPoint,n=e.axisLineClassName,r=e.axisToPoint,i=e.hideAxisLine,a=e.hideTicks,o=e.horizontal,l=e.label,s=void 0===l?"":l,u=e.labelClassName,c=e.labelOffset,d=e.labelProps,f=void 0===d?gv:d,h=e.orientation,p=void 0===h?gp.bottom:h,m=e.scale,g=e.stroke,v=e.strokeDasharray,y=e.strokeWidth,x=void 0===y?1:y,b=e.tickClassName,w=e.tickComponent,j=e.tickLineProps,k=e.tickLabelProps,E=void 0===k?function(){return gv}:k,S=e.tickLength,C=e.tickStroke,M=e.tickTransform,P=e.ticks,_=e.ticksComponent,O=P.map(function(e){return E(e.value,e.index,P)}),T=Math.max.apply(Math,[10].concat(O.map(function(e){return"number"==typeof e.fontSize?e.fontSize:0})));return eo.createElement(eo.Fragment,null,(void 0===_?function(e){var t=e.hideTicks,n=e.horizontal,r=e.orientation,i=e.tickClassName,a=e.tickComponent,o=e.tickLabelProps,l=e.tickStroke,s=void 0===l?"#222":l,u=e.tickTransform,c=e.ticks,d=e.strokeWidth,f=e.tickLineProps;return c.map(function(e){var l,c=e.value,h=e.index,p=e.from,m=e.to,g=e.formattedValue,v=null!=(l=o[h])?l:{},y=Math.max(10,"number"==typeof v.fontSize&&v.fontSize||0),x=m.y+(n&&r!==gp.top?y:0);return eo.createElement(ms.Z,{key:"visx-tick-"+c+"-"+h,className:mo()("visx-axis-tick",i),transform:u},!t&&eo.createElement(mn.Z,gm({from:p,to:m,stroke:s,strokeWidth:d,strokeLinecap:"square"},f)),a?a(gm({},v,{x:m.x,y:x,formattedValue:g})):eo.createElement(gh.Z,gm({x:m.x,y:x},v),g))})}:_)({hideTicks:a,horizontal:o,orientation:p,scale:m,tickClassName:b,tickComponent:w,tickLabelProps:O,tickStroke:void 0===C?"#222":C,tickTransform:M,ticks:P,strokeWidth:x,tickLineProps:j}),!i&&eo.createElement(mn.Z,{className:mo()("visx-axis-line",n),from:t,to:r,stroke:void 0===g?"#222":g,strokeWidth:x,strokeDasharray:v}),s&&eo.createElement(gh.Z,gg({className:mo()("visx-axis-label",u)},function(e){var t,n,r,i=e.labelOffset,a=e.labelProps,o=e.orientation,l=e.range,s=e.tickLabelFontSize,u=e.tickLength,c=o===gp.left||o===gp.top?-1:1;if(o===gp.top||o===gp.bottom){var d=o===gp.bottom&&"number"==typeof a.fontSize?a.fontSize:0;t=(Number(l[0])+Number(l[l.length-1]))/2,n=c*(u+i+s+d)}else t=(Number(l[0])+Number(l[l.length-1]))/2*c,n=-(u+i),r="rotate("+90*c+")";return{x:t,y:n,transform:r}}({labelOffset:void 0===c?14:c,labelProps:f,orientation:p,range:m.range(),tickLabelFontSize:T,tickLength:void 0===S?8:S}),f),s))}:n)(gj({},w,{axisFromPoint:O,axisToPoint:T,hideAxisLine:void 0!==i&&i,hideTicks:void 0!==a&&a,hideZero:l,horizontal:S,numTicks:c,orientation:f,rangePadding:p,scale:m,tickFormat:j,tickLength:y,tickPosition:C,tickSign:M,ticks:N})))}var gE=["axisClassName","labelOffset","tickLabelProps","tickLength"];function gS(){return(gS=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,gE);return eo.createElement(gk,gS({axisClassName:mo()("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:gp.bottom,tickLabelProps:void 0===r?gC:r,tickLength:void 0===i?8:i},a))}var gP=["axisClassName","labelOffset","tickLabelProps","tickLength"];function g_(){return(g_=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,gP);return eo.createElement(gk,g_({axisClassName:mo()("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:gp.left,tickLabelProps:void 0===r?gO:r,tickLength:void 0===i?8:i},a))}let gA=e=>new Date((null==e?void 0:e.timestamp)||0),gN=e=>(null==e?void 0:e.value)||0,gR="var(--colors-hiContrast)",gD={textAnchor:"middle",fontFamily:"var(--fonts-sans)",fontSize:10,fill:gR},gL={dx:"-0.25em",dy:"0.25em",fontFamily:"var(--fonts-sans)",fontSize:10,textAnchor:"end",fill:gR};function gZ(e){let{data:t,gradientColor:n,width:r,yMax:i,margin:a,xScale:o,yScale:l,hideBottomAxis:s=!1,hideLeftAxis:u=!1,top:c,left:d,curve:f="step",children:h}=e;return r<10?null:(0,ea.jsxs)(ms.Z,{left:d||a.left,top:c||a.top,children:[(0,ea.jsx)(gf,{id:"marker-circle",fill:"var(--colors-accent11)",size:1.5,refX:1.5}),(0,ea.jsx)(m9,{id:"gradient",from:n,fromOpacity:1,to:n,toOpacity:.2}),(0,ea.jsx)(gi.Z,{data:t,x:e=>o(gA(e))||0,y:e=>l(gN(e))||0,yScale:l,strokeWidth:1,stroke:"url(#gradient)",fill:"url(#gradient)",markerMid:"url(#marker-circle)",curve:"step"===f?ga.ZP:go.Z}),!s&&(0,ea.jsx)(gM,{top:i,scale:o,numTicks:r>520?10:5,stroke:gR,tickStroke:gR,tickLabelProps:()=>gD}),!u&&(0,ea.jsx)(gT,{scale:l,numTicks:5,stroke:gR,tickStroke:gR,tickLabelProps:()=>gL}),h]})}let{inherit:gF,current:gz,transparent:gV,black:gB,white:gI,slate:gH,zinc:gU,neutral:gW,stone:gq,red:g$,orange:gK,amber:gY,yellow:gX,lime:gG,green:gJ,emerald:gQ,teal:g0,cyan:g1,sky:g2,blue:g4,indigo:g3,violet:g5,purple:g6,fuchsia:g8,pink:g7,rose:g9}=n(6692),ve={inherit:gF,current:gz,transparent:gV,black:gB,white:gI,slate:gH,zinc:gU,neutral:gW,stone:gq,red:g$,orange:gK,amber:gY,yellow:gX,lime:gG,green:gJ,emerald:gQ,teal:g0,cyan:g1,sky:g2,blue:g4,indigo:g3,violet:g5,purple:g6,fuchsia:g8,pink:g7,rose:g9,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 vt=n(80373);let vn={top:10,bottom:15,left:10,right:10},vr="brush_pattern",vi="brush_gradient",va=(0,gr.Z)(e=>e(),15),vo=(0,ge.Z)(e=>new Date((null==e?void 0:e.timestamp)||0)).left;void 0===m&&(m={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===g&&(g=function(e,t){return eo.createElement("div",t,e)});var vl=n(54073),vs=n.n(vl),vu=n(44711),vc=["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall"];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),d=(0,eo.useRef)(null),f=(0,eo.useRef)(0),h=(0,eo.useState)({width:0,height:0,top:0,left:0}),p=h[0],m=h[1],g=(0,eo.useMemo)(function(){var e=Array.isArray(o)?o:[o];return vs()(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,o]);return(0,eo.useEffect)(function(){var e=new vu.ResizeObserver(function(e){void 0===e&&(e=[]),e.forEach(function(e){var t=e.contentRect,n=t.left,r=t.top,i=t.width,a=t.height;f.current=window.requestAnimationFrame(function(){g({width:i,height:a,top:r,left:n})})})});return d.current&&e.observe(d.current),function(){window.cancelAnimationFrame(f.current),e.disconnect(),null!=g&&g.cancel&&g.cancel()}},[g]),eo.createElement("div",vd({style:void 0===l?{width:"100%",height:"100%"}:l,ref:d,className:t},c),n(vd({},p,{ref:d.current,resize:g})))}vh.propTypes={className:mi().string,debounceTime:mi().number,enableDebounceLeadingCall:mi().bool,ignoreDimensions:mi().oneOfType([mi().any,mi().arrayOf(mi().any)]),children:mi().func.isRequired};var vp=n(52058);function vm(e){let{id:t,width:n,height:r,accessors:i,animationTrajectory:a,curve:o,data:l,config:s,scales:u,enabledGraph:c,enabledTip:d,isStack:f,todayOffset:h,numTicks:p,renderAreaSeries:m,renderAreaStack:g,renderBarGroup:v,renderBarStack:y,enableTooltipGlyph:x,renderTooltipGlyph:b,renderLineSeries:w,sharedTooltip:j,showHorizontalCrosshair:k,showTooltip:E,showVerticalCrosshair:S,snapTooltipToDatum:C,stackOffset:M,margin:P,theme:_,xAxisOrientation:O,yAxisOrientation:T,AreaSeries:A,AreaStack:N,Axis:R,BarGroup:D,BarSeries:L,BarStack:Z,Grid:F,LineSeries:z,Tooltip:V,XYChart:B}=e;return(0,ea.jsxs)(B,{theme:_.xyChartTheme,xScale:u.x,yScale:u.y,height:Math.min(400,r),margin:P,captureEvents:!0,children:[(0,ea.jsx)("g",{children:(0,ea.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,ea.jsx)(m9,{id:"gradient-default",from:"gray",fromOpacity:1,to:"gray",toOpacity:.4}),Object.entries(s.data).map(e=>{let[n,r]=e,i=r.color;return(0,ea.jsxs)(eo.Fragment,{children:[(0,ea.jsx)(mk,{id:"pattern-".concat(vg(t,n)),height:6,width:6,stroke:i,strokeWidth:.5,orientation:["diagonal"]}),(0,ea.jsx)(m9,{id:"gradient-".concat(vg(t,n)),from:i,fromOpacity:1,to:i,toOpacity:f?.4:1})]},n)}),(0,ea.jsx)(F,{rows:!1,columns:!0,strokeDasharray:"1,3",animationTrajectory:a,numTicks:p},"grid-".concat(a)),y&&(0,ea.jsx)(Z,{offset:s.stackOffset,children:c.map(e=>(0,ea.jsx)(L,{dataKey:e,data:l,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>vv(t,e,s)},e))}),v&&(0,ea.jsx)(D,{children:c.map(e=>(0,ea.jsx)(L,{dataKey:e,data:l,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>vv(t,e,s)},e))}),m&&(0,ea.jsx)(ea.Fragment,{children:c.map(e=>(0,ea.jsx)(A,{dataKey:e,data:l,xAccessor:i.x[e],yAccessor:i.y[e],stroke:vv(t,e,s),fill:vv(t,e,s),curve:o},e))}),g&&(0,ea.jsx)(N,{curve:o,offset:s.stackOffset,renderLine:"wiggle"!==M,children:c.map(e=>(0,ea.jsx)(A,{dataKey:e,data:l,xAccessor:i.x[e],yAccessor:i.y[e],stroke:vv(t,e,s),fill:vv(t,e,s)},e))}),w&&(0,ea.jsx)(ea.Fragment,{children:c.map(e=>{var t,n;return(0,ea.jsx)(z,{dataKey:e,data:l,xAccessor:i.x[e],yAccessor:i.y[e],stroke:(null===(n=s.data)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.color)||"gray",curve:o},e)})}),(0,ea.jsx)(R,{orientation:O,numTicks:p,animationTrajectory:a,tickFormat:e=>(0,vt.rN)(e),tickLength:12,tickLabelProps:e=>({...e,fill:_.labels.color,fontFamily:_.labels.fontFamily,y:"14px",fontWeight:"500",fontSize:"8"})},"time-axis-".concat(a)),(0,ea.jsx)(R,{label:null==M?"SC":"expand"===M?"Fraction of total":"",orientation:T,numTicks:p,tickLength:12,animationTrajectory:a,tickFormat:s.formatTickY,tickLabelProps:e=>({...e,fill:_.labels.color,fontFamily:_.labels.fontFamily,fontWeight:"500",fontSize:"8"})},"temp-axis-".concat(a)),E&&(0,ea.jsx)(V,{showHorizontalCrosshair:k,showVerticalCrosshair:S,snapTooltipToDatumX:C,snapTooltipToDatumY:C,showDatumGlyph:C&&!v,showSeriesGlyphs:j&&!v,renderGlyph:x?b:void 0,renderTooltip:e=>{var t,n;let{tooltipData:r}=e,a=null==r?void 0:null===(t=r.nearestDatum)||void 0===t?void 0:t.datum,o=null==r?void 0:null===(n=r.nearestDatum)||void 0===n?void 0:n.key,l=j?d:o?[o]:[],u=s.formatTimestamp||(e=>(0,vt.rN)(e,{timeStyle:"short",hour12:!1})),c=l.map(e=>{var t,n;return{key:e,category:(null===(n=s.data)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.category)||""}}),h=(0,vp.Z)(c,"category"),p=s.categories?s.categories.map(e=>[e,h[e]]):Object.entries(h);return(0,ea.jsxs)("div",{className:(0,eW.cx)("flex flex-col gap-2 py-1"),children:[(0,ea.jsx)(nw,{font:"mono",size:"12",color:"contrast",className:"text-end",children:a?u(i.date(a)):"No date"}),(0,ea.jsx)(c0,{color:"panel",className:"w-full"}),(0,ea.jsx)("div",{className:(0,eW.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=a?n.reduce((e,t)=>{let{key:n}=t,r=i.y[n](a);return null==r||Number.isNaN(r)?e:e+r},0):0,l=null==s?void 0:s.formatComponent;return(0,ea.jsxs)("div",{className:"flex flex-col gap-2 w-[250px]",children:[t&&(0,ea.jsx)(nw,{weight:"semibold",children:t}),(0,ea.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=a&&i.y[c](a);return(0,ea.jsxs)(eo.Fragment,{children:[(0,ea.jsx)(nw,{color:"accent",style:{color:null===(n=s.data)||void 0===n?void 0:null===(t=n[c])||void 0===t?void 0:t.color},className:(0,eW.cx)(o===c?"underline":""),children:(null===(u=s.data)||void 0===u?void 0:null===(r=u[c])||void 0===r?void 0:r.label)||c}),(0,ea.jsx)(nw,{size:"12",style:{textAlign:"end"},className:(0,eW.cx)(o===c?"underline":""),children:null==d||Number.isNaN(d)?"–":l?(0,ea.jsx)(l,{value:d}):s.format?s.format(d):d})]},c)}),n.length>1&&f&&(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsx)(nw,{className:"pt-2",children:"total"}),(0,ea.jsx)(nw,{size:"12",weight:"bold",className:"pt-2 text-end",children:l?(0,ea.jsx)(l,{value:r}):s.format?s.format(r):r})]})]})]},t)})})]})}})]})}function vg(e,t){return"".concat(e,"-").concat(t)}function vv(e,t,n){var r;let i=vg(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 vy=n(24037),vx=n(86707);function vb(e){var t=e.top,n=e.left,r=e.className,i=e.children;return eo.createElement(ms.Z,{className:mo()("visx-glyph",r),top:void 0===t?0:t,left:void 0===n?0:n},i)}vb.propTypes={top:mi().number,left:mi().number,className:mi().string,children:mi().node};var vw=["children","className","top","left","size"];function vj(){return(vj=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vw),l=(0,vy.Z)();return(l.type(vx.Z),"number"==typeof a?l.size(a):a&&l.size(a),t)?eo.createElement(eo.Fragment,null,t({path:l})):eo.createElement(vb,{top:r,left:i},eo.createElement("path",vj({className:mo()("visx-glyph-star",n),d:l()||""},o)))}vk.propTypes={children:mi().func,className:mi().string,top:mi().number,left:mi().number,size:mi().oneOfType([mi().number,mi().func])};var vE=["top","left","className"];function vS(){return(vS=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vE);return eo.createElement(vb,{top:void 0===t?0:t,left:void 0===n?0:n},eo.createElement("circle",vS({className:mo()("visx-glyph-dot",r)},i)))}vC.propTypes={className:mi().string,top:mi().number,left:mi().number,r:mi().number,cx:mi().number,cy:mi().number};var vM=n(9135),vP=["children","className","top","left","size"];function v_(){return(v_=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vP),l=(0,vy.Z)();return(l.type(vM.Z),"number"==typeof a?l.size(a):a&&l.size(a),t)?eo.createElement(eo.Fragment,null,t({path:l})):eo.createElement(vb,{top:r,left:i},eo.createElement("path",v_({className:mo()("visx-glyph-cross",n),d:l()||""},o)))}vO.propTypes={children:mi().func,className:mi().string,top:mi().number,left:mi().number,size:mi().oneOfType([mi().number,mi().func])};var vT=n(46385),vA=n(20651),vN={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"]},vR=vN.gray,vD=vR[7],vL=[vN.cyan[9],vN.cyan[3],vN.yellow[5],vN.red[4],vN.grape[8],vN.grape[5],vN.pink[9]];function vZ(){return(vZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t{for(var n in t)vI(e,n,{get:t[n],enumerable:!0})})(vH,{assign:()=>yd,colors:()=>ys,createStringInterpolator:()=>V,skipAnimation:()=>yu,to:()=>B,willAdvance:()=>yc});var vU=v6(),vW=e=>v2(e,vU),vq=v6();vW.write=e=>v2(e,vq);var v$=v6();vW.onStart=e=>v2(e,v$);var vK=v6();vW.onFrame=e=>v2(e,vK);var vY=v6();vW.onFinish=e=>v2(e,vY);var vX=[];vW.setTimeout=(e,t)=>{let n=vW.now()+t,r=()=>{let e=vX.findIndex(e=>e.cancel==r);~e&&vX.splice(e,1),v0-=~e?1:0},i={time:n,handler:e,cancel:r};return vX.splice(vG(n),0,i),v0+=1,v4(),i};var vG=e=>~(~vX.findIndex(t=>t.time>e)||~vX.length);vW.cancel=e=>{v$.delete(e),vK.delete(e),vY.delete(e),vU.delete(e),vq.delete(e)},vW.sync=e=>{v1=!0,vW.batchedUpdates(e),v1=!1},vW.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,vW.onStart(n)}return r.handler=e,r.cancel=()=>{v$.delete(n),t=null},r};var vJ="undefined"!=typeof window?window.requestAnimationFrame:()=>{};vW.use=e=>vJ=e,vW.now="undefined"!=typeof performance?()=>performance.now():Date.now,vW.batchedUpdates=e=>e(),vW.catch=console.error,vW.frameLoop="always",vW.advance=()=>{"demand"!==vW.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):v5()};var vQ=-1,v0=0,v1=!1;function v2(e,t){v1?(t.delete(e),e(0)):(t.add(e),v4())}function v4(){vQ<0&&(vQ=0,"demand"!==vW.frameLoop&&vJ(v3))}function v3(){~vQ&&(vJ(v3),vW.batchedUpdates(v5))}function v5(){let e=vQ,t=vG(vQ=vW.now());if(t&&(v8(vX.splice(0,t),e=>e.handler()),v0-=t),!v0){vQ=-1;return}v$.flush(),vU.flush(e?Math.min(64,vQ-e):16.667),vK.flush(),vq.flush(),vY.flush()}function v6(){let e=new Set,t=e;return{add(n){v0+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(v0-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,v0-=t.size,v8(t,t=>t(n)&&e.add(t)),v0+=e.size,t=e)}}}function v8(e,t){e.forEach(e=>{try{t(e)}catch(e){vW.catch(e)}})}function v7(){}var v9=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ye={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 yt(e,t){if(ye.arr(e)){if(!ye.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function yr(e,t,n){if(ye.arr(e)){for(let r=0;rye.und(e)?[]:ye.arr(e)?e:[e];function ya(e,t){if(e.size){let n=Array.from(e);e.clear(),yn(n,t)}}var yo=(e,...t)=>ya(e,e=>e(...t)),yl=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),ys=null,yu=!1,yc=v7,yd=e=>{e.to&&(B=e.to),e.now&&(vW.now=e.now),void 0!==e.colors&&(ys=e.colors),null!=e.skipAnimation&&(yu=e.skipAnimation),e.createStringInterpolator&&(V=e.createStringInterpolator),e.requestAnimationFrame&&vW.use(e.requestAnimationFrame),e.batchedUpdates&&(vW.batchedUpdates=e.batchedUpdates),e.willAdvance&&(yc=e.willAdvance),e.frameLoop&&(vW.frameLoop=e.frameLoop)},yf=new Set,yh=[],yp=[],ym=0,yg={get idle(){return!yf.size&&!yh.length},start(e){ym>e.priority?(yf.add(e),vW.onStart(yv)):(yy(e),vW(yb))},advance:yb,sort(e){if(ym)vW.onFrame(()=>yg.sort(e));else{let t=yh.indexOf(e);~t&&(yh.splice(t,1),yx(e))}},clear(){yh=[],yf.clear()}};function yv(){yf.forEach(yy),yf.clear(),vW(yb)}function yy(e){yh.includes(e)||yx(e)}function yx(e){yh.splice(function(e,t){let n=e.findIndex(t);return n<0?e.length:n}(yh,t=>t.priority>e.priority),0,e)}function yb(e){let t=yp;for(let n=0;n0}var yw="[-+]?\\d*\\.?\\d+",yj=yw+"%";function yk(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var yE=RegExp("rgb"+yk(yw,yw,yw)),yS=RegExp("rgba"+yk(yw,yw,yw,yw)),yC=RegExp("hsl"+yk(yw,yj,yj)),yM=RegExp("hsla"+yk(yw,yj,yj,yw)),yP=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,y_=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,yO=/^#([0-9a-fA-F]{6})$/,yT=/^#([0-9a-fA-F]{8})$/;function yA(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 yN(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;return Math.round(255*yA(i,r,e+1/3))<<24|Math.round(255*yA(i,r,e))<<16|Math.round(255*yA(i,r,e-1/3))<<8}function yR(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function yD(e){return(parseFloat(e)%360+360)%360/360}function yL(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function yZ(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function yF(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=yO.exec(e))?parseInt(t[1]+"ff",16)>>>0:ys&&void 0!==ys[e]?ys[e]:(t=yE.exec(e))?(yR(t[1])<<24|yR(t[2])<<16|yR(t[3])<<8|255)>>>0:(t=yS.exec(e))?(yR(t[1])<<24|yR(t[2])<<16|yR(t[3])<<8|yL(t[4]))>>>0:(t=yP.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=yT.exec(e))?parseInt(t[1],16)>>>0:(t=y_.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=yC.exec(e))?(255|yN(yD(t[1]),yZ(t[2]),yZ(t[3])))>>>0:(t=yM.exec(e))?(yN(yD(t[1]),yZ(t[2]),yZ(t[3]))|yL(t[4]))>>>0:null;if(null===n)return e;let r=(4278190080&(n=n||0))>>>24,i=(16711680&n)>>>16,a=(65280&n)>>>8,o=(255&n)/255;return`rgba(${r}, ${i}, ${a}, ${o})`}var yz=(e,t,n)=>{if(ye.fun(e))return e;if(ye.arr(e))return yz({range:e,output:t,extrapolate:n});if(ye.str(e.output[0]))return V(e);let r=e.output,i=e.range||[0,1],a=e.extrapolateLeft||e.extrapolate||"extend",o=e.extrapolateRight||e.extrapolate||"extend",l=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,a,o,l,s){let u=s?s(e):e;if(un){if("identity"===l)return u;"clamp"===l&&(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=a(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],l,a,o,e.map)}},yV=Symbol.for("FluidValue.get"),yB=Symbol.for("FluidValue.observers"),yI=e=>!!(e&&e[yV]),yH=e=>e&&e[yV]?e[yV]():e,yU=e=>e[yB]||null;function yW(e,t){let n=e[yB];n&&n.forEach(e=>{e.eventObserved?e.eventObserved(t):e(t)})}var yq=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");y$(this,e)}},y$=(e,t)=>yX(e,yV,t);function yK(e,t){if(e[yV]){let n=e[yB];n||yX(e,yB,n=new Set),!n.has(t)&&(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function yY(e,t){let n=e[yB];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[yB]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var yX=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),yG=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,yJ=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,yQ=RegExp(`(${yG.source})(%|[a-z]+)`,"i"),y0=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,y1=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,y2=e=>{let[t,n]=y4(e);if(!t||yl())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&&y1.test(n))return y2(n);else if(n)return n;return e},y4=e=>{let t=y1.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},y3=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,y5=e=>{I||(I=ys?RegExp(`(${Object.keys(ys).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>yH(e).replace(y1,y2).replace(yJ,yF).replace(I,yF)),n=t.map(e=>e.match(yG).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=>yz({...e,output:t}));return e=>{let n=!yQ.test(t[0])&&t.find(e=>yQ.test(e))?.replace(yG,""),i=0;return t[0].replace(yG,()=>`${r[i++](e)}${n||""}`).replace(y0,y3)}},y6="react-spring: ",y8=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${y6}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},y7=y8(console.warn),y9=y8(console.warn);function xe(e){return ye.str(e)&&("#"==e[0]||/\d/.test(e)||!yl()&&y1.test(e)||e in(ys||{}))}var xt=yl()?eo.useEffect:eo.useLayoutEffect,xn=()=>{let e=(0,eo.useRef)(!1);return xt(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function xr(){let e=(0,eo.useState)()[1],t=xn();return()=>{t.current&&e(Math.random())}}var xi=e=>(0,eo.useEffect)(e,xa),xa=[];function xo(e){let t=(0,eo.useRef)();return(0,eo.useEffect)(()=>{t.current=e}),t.current}var xl=Symbol.for("Animated:node"),xs=e=>!!e&&e[xl]===e,xu=e=>e&&e[xl],xc=(e,t)=>v9(e,xl,t),xd=e=>e&&e[xl]&&e[xl].getPayload(),xf=class{constructor(){xc(this,this)}getPayload(){return this.payload||[]}},xh=class extends xf{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,ye.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new xh(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return ye.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,ye.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},xp=class extends xh{constructor(e){super(0),this._string=null,this._toString=yz({output:[e,e]})}static create(e){return new xp(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(ye.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=yz({output:[this.getValue(),e]})),this._value=0,super.reset()}},xm={dependencies:null},xg=class extends xf{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return yr(this.source,(n,r)=>{xs(n)?t[r]=n.getValue(e):yI(n)?t[r]=yH(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&yn(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return yr(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){xm.dependencies&&yI(e)&&xm.dependencies.add(e);let t=xd(e);t&&yn(t,e=>this.add(e))}},xv=class extends xg{constructor(e){super(e)}static create(e){return new xv(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(xy)),!0)}};function xy(e){return(xe(e)?xp:xh).create(e)}function xx(e){let t=xu(e);return t?t.constructor:ye.arr(e)?xv:xe(e)?xp:xh}var xb=(e,t)=>{let n=!ye.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,eo.forwardRef)((r,i)=>{let a=(0,eo.useRef)(null),o=n&&(0,eo.useCallback)(e=>{a.current=(i&&(ye.fun(i)?i(e):i.current=e),e)},[i]),[l,s]=function(e,t){let n=new Set;return xm.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new xg(e),xm.dependencies=null,[e,n]}(r,t),u=xr(),c=()=>{let e=a.current;(!n||e)&&!1===(!!e&&t.applyAnimatedValues(e,l.getValue(!0)))&&u()},d=new xw(c,s),f=(0,eo.useRef)();xt(()=>(f.current=d,yn(s,e=>yK(e,d)),()=>{f.current&&(yn(f.current.deps,e=>yY(e,f.current)),vW.cancel(f.current.update))})),(0,eo.useEffect)(c,[]),xi(()=>()=>{let e=f.current;yn(e.deps,t=>yY(t,e))});let h=t.getComponentProps(l.getValue());return eo.createElement(e,{...h,ref:o})})},xw=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&vW.write(this.update)}},xj=Symbol.for("AnimatedComponent"),xk=e=>ye.str(e)?e:e&&ye.str(e.displayName)?e.displayName:ye.fun(e)&&e.name||null;function xE(e,...t){return ye.fun(e)?e(...t):e}var xS=(e,t)=>!0===e||!!(t&&e&&(ye.fun(e)?e(t):yi(e).includes(t))),xC=(e,t)=>ye.obj(e)?t&&e[t]:e,xM=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,xP=e=>e,x_=(e,t=xP)=>{let n=xO;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);ye.und(n)||(r[i]=n)}return r},xO=["config","onProps","onStart","onChange","onPause","onResume","onRest"],xT={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 xA(e){let t=function(e){let t={},n=0;if(yr(e,(e,r)=>{!xT[r]&&(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return yr(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function xN(e){return e=yH(e),ye.arr(e)?e.map(xN):xe(e)?vH.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function xR(e){for(let t in e)return!0;return!1}function xD(e){return ye.fun(e)||ye.arr(e)&&ye.obj(e[0])}function xL(e,t){e.ref?.delete(e),t?.delete(e)}function xZ(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var xF={tension:170,friction:26,mass:1,damping:1,easing:e=>e,clamp:!1},xz=class{constructor(){this.velocity=0,Object.assign(this,xF)}};function xV(e,t){if(ye.und(t.decay)){let n=!ye.und(t.tension)||!ye.und(t.friction);!n&&ye.und(t.frequency)&&ye.und(t.damping)&&ye.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var xB=[],xI=class{constructor(){this.changed=!1,this.values=xB,this.toValues=null,this.fromValues=xB,this.config=new xz,this.immediate=!1}};function xH(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((o,l)=>{let s,u;let c=xS(n.cancel??r?.cancel,t);if(c)h();else{ye.und(n.pause)||(i.paused=xS(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||xS(e,t)),s=xE(n.delay||0,t),e?(i.resumeQueue.add(f),a.pause()):(a.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),s=u.time-vW.now()}function f(){s>0&&!vH.skipAnimation?(i.delayed=!0,u=vW.setTimeout(h,s),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{a.start({...n,callId:e,cancel:c},o)}catch(e){l(e)}}})}var xU=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?x$(e.get()):t.every(e=>e.noop)?xW(e.get()):xq(e.get(),t.every(e=>e.finished)),xW=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),xq=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),x$=e=>({value:e,cancelled:!0,finished:!1});function xK(e,t,n,r){let{callId:i,parentId:a,onRest:o}=t,{asyncTo:l,promise:s}=n;return a||e!==l||t.reset?n.promise=(async()=>{let u,c,d;n.asyncId=i,n.asyncTo=e;let f=x_(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)&&x$(r)||i!==n.asyncId&&xq(r,!1);if(t)throw e.result=t,c(e),e},m=(e,t)=>{let a=new xX,o=new xG;return(async()=>{if(vH.skipAnimation)throw xY(n),o.result=xq(r,!1),c(o),o;p(a);let l=ye.obj(e)?{...e}:{...t,to:e};l.parentId=i,yr(f,(e,t)=>{ye.und(l[t])&&(l[t]=e)});let s=await r.start(l);return p(a),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),s})()};if(vH.skipAnimation)return xY(n),xq(r,!1);try{let t;t=ye.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=xq(r.get(),!0,!1)}catch(e){if(e instanceof xX)d=e.result;else if(e instanceof xG)d=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=a,n.asyncTo=a?l:void 0,n.promise=a?s:void 0)}return ye.fun(o)&&vW.batchedUpdates(()=>{o(d,r,r.item)}),d})():s}function xY(e,t){ya(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var xX=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.")}},xG=class extends Error{constructor(){super("SkipAnimationSignal")}},xJ=e=>e instanceof x0,xQ=1,x0=class extends yq{constructor(){super(...arguments),this.id=xQ++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=xu(this);return e&&e.getValue()}to(...e){return vH.to(this,e)}interpolate(...e){return y7(`${y6}The "interpolate" function is deprecated in v9 (use "to" instead)`),vH.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){yW(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||yg.sort(this),yW(this,{type:"priority",parent:this,priority:e})}},x1=Symbol.for("SpringPhase"),x2=e=>(1&e[x1])>0,x4=e=>(2&e[x1])>0,x3=e=>(4&e[x1])>0,x5=(e,t)=>t?e[x1]|=3:e[x1]&=-3,x6=(e,t)=>t?e[x1]|=4:e[x1]&=-5,x8=class extends x0{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,!ye.und(e)||!ye.und(t)){let n=ye.obj(e)?{...e}:{...t,from:e};ye.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(x4(this)||this._state.asyncTo)||x3(this)}get goal(){return yH(this.animation.to)}get velocity(){let e=xu(this);return e instanceof xh?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return x2(this)}get isAnimating(){return x4(this)}get isPaused(){return x3(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:a}=r,o=xd(r.to);!o&&yI(r.to)&&(i=yi(yH(r.to))),r.values.forEach((l,s)=>{if(l.done)return;let u=l.constructor==xp?1:o?o[s].lastPosition:i[s],c=r.immediate,d=u;if(!c){let t;if(d=l.lastPosition,a.tension<=0){l.done=!0;return}let n=l.elapsedTime+=e,i=r.fromValues[s],o=null!=l.v0?l.v0:l.v0=ye.arr(a.velocity)?a.velocity[s]:a.velocity,f=a.precision||(i==u?.005:Math.min(1,.001*Math.abs(u-i)));if(ye.und(a.duration)){if(a.decay){let e=!0===a.decay?.998:a.decay,r=Math.exp(-(1-e)*n);d=i+o/(1-e)*(1-r),c=Math.abs(l.lastPosition-d)<=f,t=o*r}else{t=null==l.lastVelocity?o:l.lastVelocity;let n=a.restVelocity||f/10,r=a.clamp?0:a.bounce,s=!ye.und(r),h=i==u?l.v0>0:in)&&(c=Math.abs(u-d)<=f));++e){s&&(d==u||d>u==h)&&(t=-t*r,d=u);let e=(-(1e-6*a.tension)*(d-u)+-(.001*a.friction)*t)/a.mass;t+=1*e,d+=1*t}}}else{let r=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,l.durationProgress>0&&(l.elapsedTime=a.duration*l.durationProgress,n=l.elapsedTime+=e)),r=(r=(a.progress||0)+n/this._memoizedDuration)>1?1:r<0?0:r,l.durationProgress=r),t=((d=i+a.easing(r)*(u-i))-l.lastPosition)/e,c=1==r}l.lastVelocity=t,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}o&&!o[s].done&&(c=!1),c?l.done=!0:t=!1,l.setValue(d,a.round)&&(n=!0)});let l=xu(this),s=l.getValue();if(t){let e=yH(r.to);(s!==e||n)&&!a.decay?(l.setValue(e),this._onChange(e)):n&&a.decay&&this._onChange(s),this._stop()}else n&&this._onChange(s)}set(e){return vW.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(x4(this)){let{to:e,config:t}=this.animation;vW.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 ye.und(e)?(n=this.queue||[],this.queue=[]):n=[ye.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>xU(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),xY(this._state,e&&this._lastCallId),vW.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=ye.obj(n)?n[t]:n)||xD(n))&&(n=void 0),null==(r=ye.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return x2(this)||(e.reverse&&([n,r]=[r,n]),r=yH(r),ye.und(r)?xu(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,x_(e,(e,t)=>/^on/.test(t)?xC(e,n):e)),br(this,e,"onProps"),bi(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 a=this._state;return xH(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{x3(this)||(x6(this,!0),yo(a.pauseQueue),bi(this,"onPause",xq(this,x7(this,this.animation.to)),this))},resume:()=>{x3(this)&&(x6(this,!1),x4(this)&&this._resume(),yo(a.resumeQueue),bi(this,"onResume",xq(this,x7(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=x9(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(x$(this));let r=!ye.und(e.to),i=!ye.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(x$(this));this._lastToId=t.callId}let{key:a,defaultProps:o,animation:l}=this,{to:s,from:u}=l,{to:c=s,from:d=u}=e;i&&!r&&(!t.default||ye.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!yt(d,u);f&&(l.from=d),d=yH(d);let h=!yt(c,s);h&&this._focus(c);let p=xD(t.to),{config:m}=l,{decay:g,velocity:v}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(xV(n={...n},t),t={...n,...t}),xV(e,t),Object.assign(e,t),xF)null==e[r]&&(e[r]=xF[r]);let{frequency:r,damping:i}=e,{mass:a}=e;ye.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*a,e.friction=4*Math.PI*i*a/r)}(m,xE(t.config,a),t.config!==o.config?xE(o.config,a):void 0);let y=xu(this);if(!y||ye.und(c))return n(xq(this,!0));let x=ye.und(t.reset)?i&&!t.default:!ye.und(d)&&xS(t.reset,a),b=x?d:this.get(),w=xN(c),j=ye.num(w)||ye.arr(w)||xe(w),k=!p&&(!j||xS(o.immediate||t.immediate,a));if(h){let e=xx(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=yI(c),C=!1;if(!S){let e=x||!x2(this)&&f;(h||e)&&(S=!(C=yt(xN(b),w))),(yt(l.immediate,k)||k)&&yt(m.decay,g)&&yt(m.velocity,v)||(S=!0)}if(C&&x4(this)&&(l.changed&&!x?S=!0:S||this._stop(s)),!p&&((S||yI(s))&&(l.values=y.getPayload(),l.toValues=yI(c)?null:E==xp?[1]:yi(w)),l.immediate==k||(l.immediate=k,k||x||this._set(s)),S)){let{onRest:e}=l;yn(bn,e=>br(this,t,e));let r=xq(this,x7(this,s));yo(this._pendingCalls,r),this._pendingCalls.add(n),l.changed&&vW.batchedUpdates(()=>{l.changed=!x,e?.(r,this),x?xE(o.onRest,r):l.onStart?.(r,this)})}x&&this._set(b),p?n(xK(t.to,t,this._state,this)):S?this._start():x4(this)&&!h?this._pendingCalls.add(n):n(xW(b))}_focus(e){let t=this.animation;e!==t.to&&(yU(this)&&this._detach(),t.to=e,yU(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;yI(t)&&(yK(t,this),xJ(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;yI(e)&&yY(e,this)}_set(e,t=!0){let n=yH(e);if(!ye.und(n)){let e=xu(this);if(!e||!yt(n,e.getValue())){let r=xx(n);e&&e.constructor==r?e.setValue(n):xc(this,r.create(n)),e&&vW.batchedUpdates(()=>{this._onChange(n,t)})}}return xu(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,bi(this,"onStart",xq(this,x7(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),xE(this.animation.onChange,e,this)),xE(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;xu(this).reset(yH(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),x4(this)||(x5(this,!0),x3(this)||this._resume())}_resume(){vH.skipAnimation?this.finish():yg.start(this)}_stop(e,t){if(x4(this)){x5(this,!1);let n=this.animation;yn(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),yW(this,{type:"idle",parent:this});let r=t?x$(this.get()):xq(this.get(),x7(this,e??n.to));yo(this._pendingCalls,r),n.changed&&(n.changed=!1,bi(this,"onRest",r,this))}}};function x7(e,t){let n=xN(t);return yt(xN(e.get()),n)}function x9(e,t=e.loop,n=e.to){let r=xE(t);if(r){let i=!0!==r&&xA(r),a=(i||e).reverse,o=!i||i.reset;return be({...e,loop:t,default:!1,pause:void 0,to:!a||xD(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function be(e){let{to:t,from:n}=e=xA(e),r=new Set;return ye.obj(t)&&bt(t,r),ye.obj(n)&&bt(n,r),e.keys=r.size?Array.from(r):null,e}function bt(e,t){yr(e,(e,n)=>null!=e&&t.add(n))}var bn=["onStart","onRest","onChange","onPause","onResume"];function br(e,t,n){e.animation[n]=t[n]!==xM(t,n)?xC(t[n],e.key):void 0}function bi(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var ba=["onStart","onChange","onRest"],bo=1,bl=class{constructor(e,t){this.id=bo++,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];ye.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(be(e)),this}start(e){let{queue:t}=this;return(e?t=yi(e).map(be):this.queue=[],this._flush)?this._flush(this,t):(bp(this,t),bs(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;yn(yi(t),t=>n[t].stop(!!e))}else xY(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(ye.und(e))this.start({pause:!0});else{let t=this.springs;yn(yi(e),e=>t[e].pause())}return this}resume(e){if(ye.und(e))this.start({pause:!1});else{let t=this.springs;yn(yi(e),e=>t[e].resume())}return this}each(e){yr(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,ya(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let a=!r&&this._started,o=i||a&&n.size?this.get():null;i&&t.size&&ya(t,([e,t])=>{t.value=o,e(t,this,this._item)}),a&&(this._started=!1,ya(n,([e,t])=>{t.value=o,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)}vW.onFrame(this._onFrame)}};function bs(e,t){return Promise.all(t.map(t=>bu(e,t))).then(t=>xU(e,t))}async function bu(e,t,n){let{keys:r,to:i,from:a,loop:o,onRest:l,onResolve:s}=t,u=ye.obj(t.default)&&t.default;o&&(t.loop=!1),!1===i&&(t.to=null),!1===a&&(t.from=null);let c=ye.arr(i)||ye.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):yn(ba,n=>{let r=t[n];if(ye.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,yo(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===xM(t,"cancel");(c||h&&d.asyncId)&&f.push(xH(++e._lastAsyncId,{props:t,state:d,actions:{pause:v7,resume:v7,start(t,n){h?(xY(d,e._lastAsyncId),n(x$(e))):(t.onRest=l,n(xK(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=xU(e,await Promise.all(f));if(o&&p.finished&&!(n&&p.noop)){let n=x9(t,o,i);if(n)return bp(e,[n]),bu(e,n,!0)}return s&&vW.batchedUpdates(()=>s(p,e,e.item)),p}function bc(e,t){let n={...e.springs};return t&&yn(yi(t),e=>{ye.und(e.keys)&&(e=be(e)),ye.obj(e.to)||(e={...e,to:void 0}),bh(n,e,e=>bf(e))}),bd(e,n),n}function bd(e,t){yr(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,yK(t,e))})}function bf(e,t){let n=new x8;return n.key=e,t&&yK(n,t),n}function bh(e,t,n){t.keys&&yn(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function bp(e,t){yn(t,t=>{bh(e.springs,t,t=>bf(t,e))})}var bm=({children:e,...t})=>{let n=(0,eo.useContext)(bg),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=function(e,t){let[n]=(0,eo.useState)(()=>({inputs:t,result:e()})),r=(0,eo.useRef)(),i=r.current,a=i;return a?t&&a.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n{r.current=a,i==n&&(n.inputs=n.result=void 0)},[a]),a.result}(()=>({pause:r,immediate:i}),[r,i]);let{Provider:a}=bg;return eo.createElement(a,{value:t},e)},bg=(Object.assign(bm,eo.createContext({})),bm.Provider._context=bm,bm.Consumer._context=bm,bm);bm.Provider=bg.Provider,bm.Consumer=bg.Consumer;var bv=()=>{let e=[],t=function(t){y9(`${y6}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 yn(e,(e,i)=>{if(ye.und(t))r.push(e.start());else{let a=n(t,e,i);a&&r.push(e.start(a))}}),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 yn(e,e=>e.pause(...arguments)),this},t.resume=function(){return yn(e,e=>e.resume(...arguments)),this},t.set=function(t){yn(e,(e,n)=>{let r=ye.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return yn(e,(e,r)=>{if(ye.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 yn(e,e=>e.stop(...arguments)),this},t.update=function(t){return yn(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return ye.fun(e)?e(n,t):e};return t._getProps=n,t};function by(e,t){let n=ye.fun(e),[[r],i]=function(e,t,n){let r=ye.fun(t)&&t;r&&!n&&(n=[]);let i=(0,eo.useMemo)(()=>r||3==arguments.length?bv():void 0,[]),a=(0,eo.useRef)(0),o=xr(),l=(0,eo.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=bc(e,t);return!(a.current>0)||l.queue.length||Object.keys(n).some(t=>!e.springs[t])?new Promise(r=>{bd(e,n),l.queue.push(()=>{r(bs(e,t))}),o()}):bs(e,t)}}),[]),s=(0,eo.useRef)([...l.ctrls]),u=[],c=xo(e)||0;function d(e,n){for(let i=e;i{yn(s.current.slice(e,c),e=>{xL(e,i),e.stop(!0)}),s.current.length=e,d(c,e)},[e]),(0,eo.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=s.current.map((e,t)=>bc(e,u[t])),h=(0,eo.useContext)(bm),p=xo(h),m=h!==p&&xR(h);xt(()=>{a.current++,l.ctrls=s.current;let{queue:e}=l;e.length&&(l.queue=[],yn(e,e=>e())),yn(s.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(xZ(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),xi(()=>()=>{yn(l.ctrls,e=>e.stop(!0))});let g=f.map(e=>({...e}));return i?[g,i]:g}(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}function bx(e,t,n){let r=ye.fun(t)&&t,{reset:i,sort:a,trail:o=0,expires:l=!0,exitBeforeEnter:s=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=(0,eo.useMemo)(()=>r||3==arguments.length?bv():void 0,[]),h=yi(e),p=[],m=(0,eo.useRef)(null),g=i?null:m.current;xt(()=>{m.current=p}),xi(()=>(yn(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{yn(m.current,e=>{e.expired&&clearTimeout(e.expirationId),xL(e.ctrl,f),e.ctrl.stop(!0)})}));let v=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):bb++})}return ye.und(n)?e:ye.fun(n)?e.map(n):yi(n)}(h,r?r():t,g),y=i&&m.current||[];xt(()=>yn(y,({ctrl:e,item:t,key:n})=>{xL(e,f),xE(u,t,n)}));let x=[];if(g&&yn(g,(e,t)=>{e.expired?(clearTimeout(e.expirationId),y.push(e)):~(t=x[t]=v.indexOf(e.key))&&(p[t]=e)}),yn(h,(e,t)=>{p[t]||(p[t]={key:v[t],item:e,phase:"mount",ctrl:new bl},p[t].ctrl.item=e)}),x.length){let e=-1,{leave:n}=r?r():t;yn(x,(t,r)=>{let i=g[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}ye.fun(a)&&p.sort((e,t)=>a(e.item,t.item));let b=-o,w=xr(),j=x_(t),k=new Map,E=(0,eo.useRef)(new Map),S=(0,eo.useRef)(!1);yn(p,(e,n)=>{let i,a;let u=e.key,f=e.phase,h=r?r():t,p=xE(h.delay||0,u);if("mount"==f)i=h.enter,a="enter";else{let e=0>v.indexOf(u);if("leave"!=f){if(e)i=h.leave,a="leave";else{if(!(i=h.update))return;a="update"}}else{if(e)return;i=h.enter,a="enter"}}if(i=xE(i,e.item,n),!(i=ye.obj(i)?xA(i):{to:i}).config){let t=d||j.config;i.config=xE(t,e.item,n,a)}b+=o;let y={...j,delay:p+b,ref:c,immediate:h.immediate,reset:!1,...i};if("enter"==a&&ye.und(y.from)){let i=r?r():t,a=ye.und(i.initial)||g?i.from:i.initial;y.from=xE(a,e.item,n)}let{onResolve:x}=y;y.onResolve=e=>{xE(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=xE(l,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),s&&(S.current=!0),w())}}};let C=bc(e.ctrl,y);"leave"===a&&s?E.current.set(e,{phase:a,springs:C,payload:y}):k.set(e,{phase:a,springs:C,payload:y})});let C=(0,eo.useContext)(bm),M=xo(C),P=C!==M&&xR(C);xt(()=>{P&&yn(p,e=>{e.ctrl.start({default:C})})},[C]),yn(k,(e,t)=>{if(E.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),xt(()=>{yn(E.current.size?E.current:k,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),P&&"enter"==e&&r.start({default:C}),t&&(xZ(r,t.ref),(r.ref||f)&&!S.current?r.update(t):(r.start(t),S.current&&(S.current=!1)))})},i?void 0:n);let _=e=>eo.createElement(eo.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?eo.createElement(i.type,{...i.props,key:ye.str(t.key)||ye.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[_,f]:_}var bb=1,bw=class extends x0{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=yz(...t);let n=this._get();xc(this,xx(n).create(n))}advance(e){let t=this._get();yt(t,this.get())||(xu(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&bk(this._active)&&bE(this)}_get(){let e=ye.arr(this.source)?this.source.map(yH):yi(yH(this.source));return this.calc(...e)}_start(){this.idle&&!bk(this._active)&&(this.idle=!1,yn(xd(this),e=>{e.done=!1}),vH.skipAnimation?(vW.batchedUpdates(()=>this.advance()),bE(this)):yg.start(this))}_attach(){let e=1;yn(yi(this.source),t=>{yI(t)&&yK(t,this),xJ(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){yn(yi(this.source),e=>{yI(e)&&yY(e,this)}),this._active.clear(),bE(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=yi(this.source).reduce((e,t)=>Math.max(e,(xJ(t)?t.priority:0)+1),0))}};function bj(e){return!1!==e.idle}function bk(e){return!e.size||Array.from(e).every(bj)}function bE(e){e.idle||(e.idle=!0,yn(xd(e),e=>{e.done=!0}),yW(e,{type:"idle",parent:e}))}var bS=(e,...t)=>new bw(e,t);vH.assign({createStringInterpolator:y5,to:(e,t)=>new bw(e,t)}),yg.advance;var bC=/^--/,bM={},bP={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},b_=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),bO=["Webkit","Ms","Moz","O"];bP=Object.keys(bP).reduce((e,t)=>(bO.forEach(n=>e[b_(n,t)]=e[t]),e),bP);var bT=/^(matrix|translate|scale|rotate|skew)/,bA=/^(translate)/,bN=/^(rotate|skew)/,bR=(e,t)=>ye.num(e)&&0!==e?e+t:e,bD=(e,t)=>ye.arr(e)?e.every(e=>bD(e,t)):ye.num(e)?e===t:parseFloat(e)===t,bL=class extends xg{constructor({x:e,y:t,z:n,...r}){let i=[],a=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),a.push(e=>[`translate3d(${e.map(e=>bR(e,"px")).join(",")})`,bD(e,0)])),yr(r,(e,t)=>{if("transform"===t)i.push([e||""]),a.push(e=>[e,""===e]);else if(bT.test(t)){if(delete r[t],ye.und(e))return;let n=bA.test(t)?"px":bN.test(t)?"deg":"";i.push(yi(e)),a.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${bR(i,n)})`,bD(i,0)]:e=>[`${t}(${e.map(e=>bR(e,n)).join(",")})`,bD(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new bZ(i,a)),super(r)}},bZ=class extends yq{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 yn(this.inputs,(n,r)=>{let i=yH(n[0]),[a,o]=this.transforms[r](ye.arr(i)?i:n.map(yH));e+=" "+a,t=t&&o}),t?"none":e}observerAdded(e){1==e&&yn(this.inputs,e=>yn(e,e=>yI(e)&&yK(e,this)))}observerRemoved(e){0==e&&yn(this.inputs,e=>yn(e,e=>yI(e)&&yY(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),yW(this,e)}};vH.assign({batchedUpdates:tD.unstable_batchedUpdates,createStringInterpolator:y5,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 bF=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new xg(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=e=>{let t=xk(e)||"Anonymous";return(e=ye.str(e)?a[e]||(a[e]=xb(e,i)):e[xj]||(e[xj]=xb(e,i))).displayName=`Animated(${t})`,e};return yr(e,(t,n)=>{ye.arr(e)&&(n=xk(t)),a[n]=a(t)}),{animated:a}})(["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:a,scrollLeft:o,viewBox:l,...s}=t,u=Object.values(s),c=Object.keys(s).map(t=>n||e.hasAttribute(t)?t:bM[t]||(bM[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||bC.test(t)||bP.hasOwnProperty(t)&&bP[t]?(""+d).trim():d+"px";bC.test(t)?e.style.setProperty(t,n):e.style[t]=n}c.forEach((t,n)=>{e.setAttribute(t,u[n])}),void 0!==a&&(e.scrollTop=a),void 0!==o&&(e.scrollLeft=o),void 0!==l&&e.setAttribute("viewBox",l)},createAnimatedStyle:e=>new bL(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated,bz=n(23442),bV=(0,eo.createContext)({});function bB(e){var t=e.x,n=e.y,r=e.dx,i=e.dy,a=e.children,o=(0,eo.useMemo)(function(){return{x:t,y:n,dx:r,dy:i}},[t,n,r,i]);return eo.createElement(bV.Provider,{value:o},a)}function bI(){return(bI=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,bK),p=(0,eo.useContext)(bW)||{},m=p.innerHeight,g=p.innerWidth,v=p.margin,y=p.xScale,x=p.yScale,b=p.dataRegistry,w=(0,eo.useMemo)(function(){return y?bq(y):0},[y]),j=(0,eo.useMemo)(function(){return x?bq(x):0},[x]);if((!l||!s)&&!o)return console.warn("[@visx/xychart/BaseAnnotation]: dataKey or x/yAccessors must be specified."),null;var k=l&&s||null==o?null:null==b?void 0:b.get(o),E=l||(null==k?void 0:k.xAccessor),S=s||(null==k?void 0:k.yAccessor);if(!y||!x||!g||!m||!E||!S||!v)return null;var C=(null!=(t=(0,md.Z)(y(E(a))))?t:NaN)+w/2,M=(null!=(n=(0,md.Z)(x(S(a))))?n:NaN)+j/2,P=C+c+16>v.left+g?-c:c,_=M+f+16>v.top+m?-f:f;return b$(C)&&b$(M)?eo.createElement(r,bY({width:g,height:m},h,{x:C,y:M,dx:P,dy:_}),i):null}bX.propTypes={dataKey:mi().string,xAccessor:mi().func,yAccessor:mi().func};var bG=["x","y","AnnotationComponent"],bJ=["editable"];function bQ(){return(bQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function b1(e){var t=e.x,n=void 0===t?0:t,r=e.y,i=void 0===r?0:r,a=e.AnnotationComponent,o=b0(e,bG),l=(0,eo.useRef)({x:n,y:i}),s=by({from:{x:l.current.x-n,y:l.current.y-i},to:{x:0,y:0},reset:!0});return(0,eo.useEffect)(function(){l.current={x:n,y:i}},[n,i]),eo.createElement(bF.g,{transform:bS([s.x,s.y],function(e,t){return"translate("+e+", "+t+")"})},eo.createElement(a,bQ({x:n,y:i},o)))}function b2(e){var t=e.editable,n=b0(e,bJ),r=(0,eo.useCallback)(function(e){return eo.createElement(b1,bQ({AnnotationComponent:t?bU:bB},e))},[t]);return eo.createElement(bX,bQ({AnnotationComponent:r},n))}b2.propTypes={editable:mi().bool};var b4=n(12766),b3=["d","stroke","fill"];function b5(){return(b5=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,b3),a=(0,eo.useRef)(t),o=(0,eo.useCallback)(vs()(function(e){a.current=e},50),[]),l=(0,b4.interpolatePath)(a.current,t);o(t);var s=by({from:{t:0},to:{t:1},reset:!0,delay:0}).t,u=by({stroke:void 0===n?"transparent":n,fill:void 0===r?"transparent":r});return eo.createElement(bF.path,b5({className:"visx-path",d:s.to(l),stroke:u.stroke,fill:u.fill},i))}var b8=n(12935),b7=n(12151);function b9(){return(b9=Object.assign?Object.assign.bind():function(e){for(var t=1;tt?1:e>=t?0:NaN}function wc(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[a],t)?r=a+1:i=a}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>wu(e(t),n)),{left:r,center:function(e,n,i,a){null==i&&(i=0),null==a&&(a=e.length);let o=r(e,n,i,a-1);return o>i&&t(e[o-1],n)>-t(e[o],n)?o-1:o},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[a],t)>0?i=a:r=a+1}return r}}}let wd=wc(wu);wd.right;let wf=wd.left;function wh(e){var t,n,r=e.scale,i=e.accessor,a=e.scaledValue,o=e.data;if("invert"in r&&"function"==typeof r.invert){var l=wc(i).left,s=Number(r.invert(a)),u=l(o,s),c=o[u-1],d=o[u];n=(t=!c||Math.abs(s-i(c))>Math.abs(s-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)),a=Array(i);++r=0||(i[n]=e[n]);return i}(e,wS),S=(0,eo.useContext)(bW),C=S.colorScale,M=S.theme,P=S.horizontal,_=(0,eo.useMemo)(function(){return x?wt(b,x):void 0},[b,x]),O=(0,eo.useMemo)(function(){return wt(b,y)},[b,y]),T=(0,eo.useMemo)(function(){return j?wt(k,j):void 0},[k,j]),A=(0,eo.useMemo)(function(){return wt(k,w)},[k,w]),N=(0,eo.useCallback)(function(e){return b$(b(y(e)))&&b$(k(w(e)))},[b,y,k,w]),R=null!=(t=null!=(n=null==C?void 0:C(s))?n:null==M?void 0:null==(r=M.colors)?void 0:r[0])?t:"#222",D="AREASERIES_EVENT_SOURCE-"+s,L=wb({dataKey:s,enableEvents:void 0===g||g,onBlur:c,onFocus:d,onPointerMove:f,onPointerOut:h,onPointerUp:p,onPointerDown:m,source:D,allowedSources:[wr,D]}),Z=(0,eo.useMemo)(function(){var e=wn(P?b:k);return P?{x0:null!=_?_:e,x1:O,y:A}:{x:O,y0:null!=T?T:e,y1:A}},[b,k,P,O,A,_,T]),F=!!(d||c),z=(0,eo.useCallback)(function(e){var t=e.glyphs;return F?t.map(function(e){return eo.createElement(eo.Fragment,{key:e.key},wE(wC({},e,{color:"transparent",onFocus:L.onFocus,onBlur:L.onBlur})))}):null},[F,L.onFocus,L.onBlur]);return eo.createElement(eo.Fragment,null,eo.createElement(b8.Z,wC({},Z,E,{curve:o,defined:N}),function(e){var t=e.path;return eo.createElement(a,wC({className:"visx-area",stroke:"transparent",fill:R,strokeLinecap:"round"},E,{d:t(l)||""},L))}),(void 0===v||v)&&eo.createElement(b7.Z,wC({x:O,y:A,defined:N,curve:o},u),function(e){var t=e.path;return eo.createElement(a,wC({className:"visx-line",fill:"transparent",stroke:R,strokeWidth:2,pointerEvents:"none",strokeLinecap:"round"},u,{d:t(l)||""}))}),F&&eo.createElement(wj,{dataKey:s,data:l,xAccessor:y,yAccessor:w,xScale:b,yScale:k,renderGlyphs:z}))}wM.propTypes={renderLine:mi().bool};var wP=we(wM);function w_(){return(w_=Object.assign?Object.assign.bind():function(e){for(var t=1;t1)for(var n,r,i,a=1,o=e[t[0]],l=o.length;a=0;)n[t]=t;return n}function wL(e,t){return e[t]}function wZ(e){let t=[];return t.key=e,t}Array.prototype.slice;var wF=n(74322),wz=n(58543);function wV(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=a&&(n=r=a):(n>a&&(n=a),r=0?"positiveSum":"negativeSum"]+=i})}}),Object.values(e)},[a,s]),d=(0,eo.useMemo)(function(){var e=r?null:c.some(function(e){return e.negativeSum<0}),t=function(){var e=wN([]),t=wD,n=wR,r=wL;function i(i){var a,o,l,s=Array.from(e.apply(this,arguments),wZ),u=s.length,c=-1;for(let e of i)for(o=0,++c;o0&&0===r&&(a?i.xScale=function(e){return e.domain(wV(e.domain().concat(f)))}:i.yScale=function(e){return e.domain(wV(e.domain().concat(f)))}),i}).filter(function(e){return e}))),function(){return l(u)}},[u,f,a,d,o,l,s]),{seriesChildren:s,dataKeys:u,stackedData:d}}function wq(e,t,n){var r,i,a,o,l=e.xScale,s=e.yScale,u=e.point,c=(n?wm:wp)(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=l((0,wA.l8)(c.datum)))?r:1/0)&&u.x<=(null!=(i=l((0,wA.xf)(c.datum)))?i:-1/0)?0:c.distanceX,distanceY:n?c.distanceY:u.y<=(null!=(a=s((0,wA.l8)(c.datum)))?a:-1/0)&&u.y>=(null!=(o=s((0,wA.xf)(c.datum)))?o:1/0)?0:c.distanceY}:null}var w$=["data","dataKey","xAccessor","yAccessor","curve","PathComponent","lineProps","renderLine"];function wK(){return(wK=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(o,w$)),u=wK({fill:null!=(n=null!=(r=null==g?void 0:g(e.key))?r:null==w?void 0:null==(i=w.colors)?void 0:i[0])?n:"#222"},s);return{key:t+"-"+e.key,accessors:C,data:e,areaProps:u,lineProps:l}})},[S,C,g,E,w]),P=(0,eo.useCallback)(function(e){var t,n,r=null==(t=E.find(function(t){return t.props.dataKey===e.dataKey}))?void 0:null==(n=t.props)?void 0:n.data;return r?wq(e,r,y):null},[E,y]),_="AREASTACK_EVENT_SOURCE-"+k.join("-"),O=wb({dataKey:k,enableEvents:void 0===a||a,findNearestDatum:P,onBlur:l,onFocus:s,onPointerMove:u,onPointerOut:c,onPointerUp:d,onPointerDown:f,source:_,allowedSources:[wr,_]}),T=!!(s||l),A=(0,eo.useCallback)(function(e){var t=e.glyphs;return T?t.map(function(e){return eo.createElement(eo.Fragment,{key:e.key},wE(wK({},e,{color:"transparent",onFocus:O.onFocus,onBlur:O.onBlur})))}):null},[T,O.onFocus,O.onBlur]);return!k.some(function(e){return null==v.get(e)})&&x&&b&&g?eo.createElement("g",{className:"visx-area-stack"},M.map(function(e){return eo.createElement(b8.Z,wK({key:e.key,curve:i},e.accessors),function(t){var r=t.path;return eo.createElement(n,wK({className:"visx-area",stroke:"transparent",d:r(e.data)||""},e.areaProps,O))})}),(void 0===p||p)&&M.map(function(e){return eo.createElement(wT.Z,wK({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 eo.createElement(n,wK({className:"visx-line",fill:"transparent",stroke:e.areaProps.fill,strokeWidth:2,pointerEvents:"none"},e.lineProps,{d:r(e.data)||""}))})}),T&&M.map(function(e,t){var n=M[M.length-t-1];return eo.createElement(wj,{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:wY,yScale:wY,renderGlyphs:A})})):null}function wG(){return(wG=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,w0),c=(0,eo.useContext)(bW),d=c.theme,f=c.xScale,h=c.yScale,p=c.margin,m=c.width,g=c.height,v=u.orientation,y=(0,eo.useMemo)(function(){var e,t,n,r;return"left"===v||"right"===v?null==d?void 0:null==(e=d.axisStyles)?void 0:null==(t=e.y)?void 0:t[v]:null==d?void 0:null==(n=d.axisStyles)?void 0:null==(r=n.x)?void 0:r[v]},[d,v]),x=u.tickLabelProps,b=(0,eo.useMemo)(function(){return x||y?function(e,t,n){return w1({},null==y?void 0:y.tickLabel,{width:"left"===v||"right"===v?null==p?void 0:p[v]:void 0},null==x?void 0:x(e,t,n))}:void 0},[x,y,v,p]),w="bottom"===v?(null!=g?g:0)-(null!=(t=null==p?void 0:p.bottom)?t:0):"top"===v&&null!=(n=null==p?void 0:p.top)?n:0,j="left"===v?null!=(r=null==p?void 0:p.left)?r:0:"right"===v?(null!=m?m:0)-(null!=(i=null==p?void 0:p.right)?i:0):0,k="left"===v||"right"===v?h:f;return k?eo.createElement(s,w1({top:w,left:j,labelProps:null==y?void 0:y.axisLabel,stroke:null==y?void 0:null==(a=y.axisLine)?void 0:a.stroke,strokeWidth:null==y?void 0:null==(o=y.axisLine)?void 0:o.strokeWidth,tickLength:null==y?void 0:y.tickLength,tickStroke:null==y?void 0:null==(l=y.tickLine)?void 0:l.stroke},u,{tickLabelProps:b,scale:k})):null}function w4(){return(w4=Object.assign?Object.assign.bind():function(e){for(var t=1;t=h&&s.y<=p;return w6({},u,{distanceX:0,distanceY:m?0:Math.abs(s.y-(h+p)/2)})}var g=o(i(u.datum)),v=(null!=g?g:1/0)+(null!=c?c:1/0),y=v+d,x=s.x>=v&&s.x<=y;return w6({},u,{distanceY:0,distanceX:x?0:Math.abs(s.x-(v+y)/2)})}(e,k,g)},[k,g]),S="BARGROUP_EVENT_SOURCE-"+j.join("-")+"}",C=wb({dataKey:j,enableEvents:void 0===f||f,findNearestDatum:E,onBlur:o,onFocus:l,onPointerMove:s,onPointerOut:u,onPointerUp:c,onPointerDown:d,source:S,allowedSources:[wr,S]}),M=(0,eo.useMemo)(function(){return x?wn(x):0},[x]),P=(0,eo.useMemo)(function(){return b?wn(b):0},[b]),_=j.map(function(e){return m.get(e)});if(_.some(function(e){return null==e})||!x||!b||!p)return null;var O=bq(k),T=_.map(function(e){var t,n=e.xAccessor,r=e.yAccessor,i=e.data,a=e.key,o=function(e){var t,i;return g?(null!=(t=x(n(e)))?t:NaN)-M:(null!=(i=b(r(e)))?i:NaN)-P},l=g?function(e){var t;return null!=(t=b(r(e)))?t:NaN}:function(e){var t;return null!=(t=x(n(e)))?t:NaN},s=null!=(t=k(a))?t:0,u=g?function(e){return M+Math.min(0,o(e))}:function(e){return l(e)+s},c=g?function(e){return l(e)+s}:function(e){return P+Math.min(0,o(e))},d=g?function(e){return Math.abs(o(e))}:function(){return O},f=g?function(){return O}:function(e){return Math.abs(o(e))},h=w.find(function(e){return e.props.dataKey===a}),m=(null==h?void 0:h.props)||{},v=m.colorAccessor;return{key:a,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(!b$(r))return null;var i=c(e);if(!b$(i))return null;var o=d(e);if(!b$(o))return null;var l=f(e);return b$(l)?{key:a+"-"+t,x:r,y:i,width:o,height:l,fill:null!=(n=null==v?void 0:v(e,t))?n:p(a)}:null}).filter(function(e){return e})}});return eo.createElement("g",{className:"visx-bar-group"},T.map(function(e){return e&&eo.createElement(a,w8({horizontal:g,xScale:x,yScale:b},e,C,{key:e.key}))}))}w7.propTypes={children:mi().node.isRequired,padding:mi().number,sortBars:mi().func};var w9=n(10897),je=function(e){return!!(null==e?void 0:e.includes("url("))},jt=function(e){return je(e)?"rgba(0,0,0,0.1)":e},jn=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"],jr=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"];function ji(){return(ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function jo(e){return{x:e.x,y:e.y,width:e.width,height:e.height,fill:jt(e.fill),opacity:1}}function jl(e){var t=e.bars,n=(e.xScale,e.yScale,e.horizontal,e.radius),r=e.radiusAll,i=e.radiusTop,a=e.radiusRight,o=e.radiusBottom,l=e.radiusLeft,s=ja(e,jn);return eo.createElement(eo.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 eo.createElement(w9.Z,{key:t,x:c,y:d,width:f,height:h,radius:n,all:r,top:i,right:a,bottom:o,left:l},function(e){var t=e.path;return eo.createElement(b6,ji({className:"visx-bar visx-bar-rounded",d:t,fill:u},s))})}))}function js(e){var t,n,r,i=e.bars,a=e.xScale,o=e.yScale,l=e.horizontal,s=(e.radius,e.radiusAll,e.radiusTop,e.radiusRight,e.radiusBottom,e.radiusLeft,ja(e,jr)),u=bx(i,ji({},(n=(t={horizontal:l,scale:l?a:o}).scale,r=!!t.horizontal,(0,eo.useMemo)(function(){var e=wn(n);function t(t){var n=t.x,i=t.y,a=t.width,o=t.height;return{x:r?null!=e?e:0:n,y:r?i:null!=e?e:0,width:r?0:a,height:r?o:0,fill:jt(t.fill),opacity:0}}return{unique:!0,from:t,leave:t,enter:jo,update:jo,keys:function(e){return e.key}}},[n,r])))),c=!!(s.onFocus||s.onBlur);return eo.createElement(eo.Fragment,null,u(function(e,t,n){var r=e.x,i=e.y,a=e.width,o=e.height,l=e.fill,u=e.opacity,d=n.key;return null==t||null==d?null:eo.createElement(bF.rect,ji({key:d,tabIndex:c?0:void 0,className:"visx-bar",x:r,y:i,width:a,height:o,fill:je(t.fill)?t.fill:l,opacity:u},s))}))}function ju(e){return null==e.radius?eo.createElement(js,e):eo.createElement(jl,ji({},e,{radius:e.radius}))}function jc(){return(jc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jf),w=(0,eo.useContext)(bW),j=w.colorScale,k=w.horizontal,E=w.theme,S=w.innerWidth,C=w.innerHeight,M=(0,eo.useMemo)(function(){return wt(v,g)},[v,g]),P=(0,eo.useMemo)(function(){return wt(x,y)},[x,y]),_=bq(k?x:v)||(k?void 0===C?0:C:void 0===S?0:S)/l.length*(1-Math.min(1,Math.max(0,void 0===a?.1:a))),O=(0,eo.useMemo)(function(){return v?wn(v):0},[v]),T=(0,eo.useMemo)(function(){return x?wn(x):0},[x]),A=null!=(t=null!=(n=null==j?void 0:j(s))?n:null==E?void 0:null==(r=E.colors)?void 0:r[0])?t:"#222",N=(0,eo.useMemo)(function(){var e=k?0:-_/2,t=k?-_/2:0;return l.map(function(n,r){var i,a=M(n)+e;if(!b$(a))return null;var l=P(n)+t;if(!b$(l))return null;var s=k?a-O:l-T;return b$(s)?{key:""+r,x:k?O+Math.min(0,s):a,y:k?l:T+Math.min(0,s),width:k?Math.abs(s):_,height:k?_:Math.abs(s),fill:null!=(i=null==o?void 0:o(n,r))?i:A}:null}).filter(function(e){return e})},[_,A,o,l,M,P,k,O,T]),R="BARSERIES_EVENT_SOURCE-"+s,D=wb({dataKey:s,enableEvents:void 0===m||m,onBlur:u,onFocus:c,onPointerMove:d,onPointerOut:f,onPointerUp:h,onPointerDown:p,source:R,allowedSources:[wr,R]});return eo.createElement("g",{className:"vx-bar-series"},eo.createElement(i,jh({bars:N,horizontal:k,xScale:v,yScale:x},D,b)))}jp.propTypes={barPadding:mi().number,colorAccessor:mi().func};var jm=we(jp),jg=["colorAccessor"];function jv(){return(jv=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jg);return eo.createElement(jm,jv({},n,{colorAccessor:t,BarsComponent:ju}))}var jx=n(15590);function jb(){return(jb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jC),i=(0,eo.useCallback)(function(e){return eo.createElement(jS,jM({},e,{renderGlyph:n}))},[n]);return eo.createElement(wk,jM({},r,{renderGlyphs:i}))}var j_=n(93353),jO=n(63962),jT=["rows","columns","GridRowsComponent","GridColumnsComponent"];function jA(){return(jA=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jT),o=(0,eo.useContext)(bW),l=o.theme,s=o.xScale,u=o.yScale,c=o.margin,d=o.innerWidth,f=o.innerHeight,h=null==l?void 0:l.gridStyles;return eo.createElement(eo.Fragment,null,(void 0===t||t)&&u&&null!=d&&eo.createElement(r,jA({left:null==c?void 0:c.left,lineStyle:h,width:d,scale:u},a)),(void 0===n||n)&&s&&null!=f&&eo.createElement(i,jA({top:null==c?void 0:c.top,lineStyle:h,height:f,scale:s},a)))}jN.propTypes={rows:mi().bool,columns:mi().bool};var jR=["animationTrajectory"];function jD(){return(jD=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jR),r=(0,eo.useMemo)(function(){return function(e){return eo.createElement(j_.Z,jD({},e,{animationTrajectory:t}))}},[t]),i=(0,eo.useMemo)(function(){return function(e){return eo.createElement(jO.Z,jD({},e,{animationTrajectory:t}))}},[t]);return eo.createElement(jN,jD({GridRowsComponent:r,GridColumnsComponent:i},n))}var jZ=["colorAccessor","curve","data","dataKey","onBlur","onFocus","onPointerMove","onPointerOut","onPointerUp","onPointerDown","enableEvents","xAccessor","xScale","yAccessor","yScale","PathComponent"];function jF(){return(jF=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jZ),j=(0,eo.useContext)(bW),k=j.colorScale,E=j.theme,S=(0,eo.useMemo)(function(){return wt(g,m)},[g,m]),C=(0,eo.useMemo)(function(){return wt(y,v)},[y,v]),M=(0,eo.useCallback)(function(e){return b$(g(m(e)))&&b$(y(v(e)))},[g,m,y,v]),P=null!=(t=null!=(n=null==k?void 0:k(l))?n:null==E?void 0:null==(r=E.colors)?void 0:r[0])?t:"#222",_="LINESERIES_EVENT_SOURCE-"+l,O=wb({dataKey:l,enableEvents:void 0===p||p,onBlur:s,onFocus:u,onPointerMove:c,onPointerOut:d,onPointerUp:f,onPointerDown:h,source:_,allowedSources:[wr,_]}),T=!!(u||s),A=(0,eo.useCallback)(function(e){var t=e.glyphs;return T?t.map(function(e){return eo.createElement(eo.Fragment,{key:e.key},wE(jF({},e,{color:"transparent",onFocus:O.onFocus,onBlur:O.onBlur})))}):null},[T,O.onFocus,O.onBlur]);return eo.createElement(eo.Fragment,null,eo.createElement(b7.Z,jF({x:S,y:C,defined:M,curve:a},w),function(e){var t,n=e.path;return eo.createElement(b,jF({stroke:null!=(t=null==i?void 0:i(l))?t:P,strokeWidth:2,fill:"transparent",strokeLinecap:"round"},w,{d:n(o)||""},O))}),T&&eo.createElement(wj,{dataKey:l,data:o,xAccessor:m,yAccessor:v,xScale:g,yScale:y,renderGlyphs:A}))}jz.propTypes={colorAccessor:mi().func};var jV=we(jz);function jB(){return(jB=Object.assign?Object.assign.bind():function(e){for(var t=1;tjW.every(n=>e[n]===t[n]);function j$(e,t){return(j$=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var jK=function(e){function t(){return e.apply(this,arguments)||this}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,j$(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)?tD.createPortal(this.props.children,this.node):null},t}(eo.PureComponent);jK.propTypes={zIndex:mi().oneOfType([mi().number,mi().string])};var jY=["detectBounds","zIndex"],jX=["left","top","detectBounds","zIndex"];function jG(){return(jG=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var jQ=["debounce","detectBounds","horizontalCrosshairStyle","glyphStyle","renderTooltip","renderGlyph","resizeObserverPolyfill","scroll","showDatumGlyph","showHorizontalCrosshair","showSeriesGlyphs","showVerticalCrosshair","snapTooltipToDatumX","snapTooltipToDatumY","verticalCrosshairStyle","zIndex"],j0=["x","y"];function j1(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function j2(){return(j2=Object.assign?Object.assign.bind():function(e){for(var t=1;t(f.current=!0,()=>void(f.current=!1)));let[h,p,m]=(0,eo.useMemo)(()=>{let e=()=>{if(!u.current.element)return;let{left:e,top:t,width:n,height:r,bottom:i,right:o,x:l,y:c}=u.current.element.getBoundingClientRect(),d={left:e,top:t,width:n,height:r,bottom:i,right:o,x:l,y:c};u.current.element instanceof HTMLElement&&a&&(d.height=u.current.element.offsetHeight,d.width=u.current.element.offsetWidth),Object.freeze(d),f.current&&!jq(u.current.lastBounds,d)&&s(u.current.lastBounds=d)};return[e,d?jU()(e,d):e,c?jU()(e,c):e]},[s,a,c,d]);function g(){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 v(){u.current.element&&(u.current.resizeObserver=new o(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,eo.useEffect)(()=>{if(t)return window.addEventListener("scroll",m,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",m,!0)},[m,t]),(0,eo.useEffect)(()=>(window.addEventListener("resize",p),()=>void window.removeEventListener("resize",p)),[p]),(0,eo.useEffect)(()=>{g(),v()},[r,m,p]),(0,eo.useEffect)(()=>g,[]),[e=>{e&&e!==u.current.element&&(g(),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:a}=window.getComputedStyle(t);return[r,i,a].some(e=>"auto"===e||"scroll"===e)&&n.push(t),[...n,...e(t.parentElement)]}(e),v())},l,h]}(jJ(et,jY)))[0],es=ea[1],eu=ea[2],ec=(0,eo.useMemo)(function(){return function(e){var t=e.left,n=e.top,r=e.detectBounds,i=e.zIndex,a=jJ(e,jX),o=null==i?ei:i,l=(null==r?er:r)?mF:m_,s=(void 0===t?0:t)+(es.left||0)+window.scrollX,u=(void 0===n?0:n)+(es.top||0)+window.scrollY;return eo.createElement(jK,{zIndex:o},eo.createElement(l,jG({left:s,top:u},a)))}},[er,ei,es.left,es.top]),{containerRef:el,containerBounds:es,forceRefreshBounds:eu,TooltipInPortal:ec}),N=A.containerRef,R=A.TooltipInPortal,D=A.forceRefreshBounds,L=(0,eo.useCallback)(function(e){var t;N(null!=(t=null==e?void 0:e.parentElement)?t:null)},[N]),Z=null!=T&&T.tooltipOpen?a(j2({},T,{colorScale:k})):null,F=(null==T?void 0:T.tooltipOpen)&&null!=Z,z=(0,eo.useRef)(!1);(0,eo.useEffect)(function(){F&&!z.current&&D(),z.current=F},[F,D]);var V=null==T?void 0:T.tooltipLeft,B=null==T?void 0:T.tooltipTop,I=P?bq(P):0,H=_?bq(_):0,U=(0,eo.useCallback)(function(e,t){var n,r,i=null==O?void 0:O.get(e),a=null==i?void 0:i.xAccessor,o=null==i?void 0:i.yAccessor;return{left:P&&a?null!=(n=Number(P(a(t)))+I/2)?n:0:void 0,top:_&&o?null!=(r=Number(_(o(t)))+H/2)?r:0:void 0}},[O,I,H,P,_]),W=null==T?void 0:null==(ed=T.tooltipData)?void 0:ed.nearestDatum,q=null!=(ef=null==W?void 0:W.key)?ef:"";if(F&&W&&(g||y)){var $=U(q,W.datum),K=$.left,Y=$.top;V=g&&b$(K)?K:V,B=y&&b$(Y)?Y:B}var X=[];if(F&&(void 0!==c&&c||h)){var G=Number(null!=(eE=null==i?void 0:i.radius)?eE:4);if(h)Object.values(null!=(eS=null==T?void 0:null==(eC=T.tooltipData)?void 0:eC.datumByKey)?eS:{}).forEach(function(e){var t,n,r,a=e.key,o=e.datum,l=e.index,s=null!=(t=null!=(n=null==k?void 0:k(a))?n:null==E?void 0:null==(r=E.htmlLabel)?void 0:r.color)?t:"#222",u=U(a,o),c=u.left,d=u.top;b$(c)&&b$(d)&&X.push({key:a,color:s,datum:o,index:l,size:G,x:c,y:d,glyphStyle:i,isNearestDatum:!!W&&W.key===a})});else if(W){var J=U(q,W.datum),Q=J.left,ee=J.top;if(b$(Q)&&b$(ee)){var et,en,er,ei,ea,el,es,eu,ec,ed,ef,eh,ep,em,eg,ev,ey,ex,eb,ew,ej,ek,eE,eS,eC,eM,eP,e_,eO,eT,eA,eN=null!=(eM=null!=(eP=null!=(e_=null!=(eO=q&&(null==k?void 0:k(q)))?eO:null)?e_:null==E?void 0:null==(eT=E.gridStyles)?void 0:eT.stroke)?eP:null==E?void 0:null==(eA=E.htmlLabel)?void 0:eA.color)?eM:"#222";X.push({key:q,color:eN,datum:W.datum,index:W.index,size:G,x:Q,y:ee,glyphStyle:i,isNearestDatum:!0})}}}return eo.createElement(eo.Fragment,null,eo.createElement("svg",{ref:L,style:j3}),F&&eo.createElement(eo.Fragment,null,void 0!==p&&p&&eo.createElement(R,{className:"visx-crosshair visx-crosshair-vertical",left:V,top:null==M?void 0:M.top,offsetLeft:0,offsetTop:0,detectBounds:!1,style:j4},eo.createElement("svg",{width:"1",height:S,overflow:"visible"},eo.createElement("line",j2({x1:0,x2:0,y1:0,y2:S,strokeWidth:1.5,stroke:null!=(eh=null!=(ep=null==E?void 0:null==(em=E.gridStyles)?void 0:em.stroke)?ep:null==E?void 0:null==(eg=E.htmlLabel)?void 0:eg.color)?eh:"#222"},x)))),void 0!==d&&d&&eo.createElement(R,{className:"visx-crosshair visx-crosshair-horizontal",left:null==M?void 0:M.left,top:B,offsetLeft:0,offsetTop:0,detectBounds:!1,style:j4},eo.createElement("svg",{width:C,height:"1",overflow:"visible"},eo.createElement("line",j2({x1:0,x2:C,y1:0,y2:0,strokeWidth:1.5,stroke:null!=(ev=null!=(ey=null==E?void 0:null==(ex=E.gridStyles)?void 0:ex.stroke)?ey:null==E?void 0:null==(eb=E.htmlLabel)?void 0:eb.color)?ev:"#222"},r)))),X.map(function(e,t){var n=e.x,r=e.y,i=j1(e,j0);return eo.createElement(R,{key:t,className:"visx-tooltip-glyph",left:n,top:r,offsetLeft:0,offsetTop:0,detectBounds:!1,style:j4},eo.createElement("svg",{overflow:"visible"},l(j2({x:0,y:0},i))))}),eo.createElement(R,j2({left:V,top:B,style:j2({},mP,{background:null!=(ew=null==E?void 0:E.backgroundColor)?ew:"white",boxShadow:"0 1px 2px "+(null!=E&&null!=(ej=E.htmlLabel)&&ej.color?(null==E?void 0:null==(ek=E.htmlLabel)?void 0:ek.color)+"55":"#22222255")},null==E?void 0:E.htmlLabel)},w),Z)))}function j7(e){var t=(0,eo.useContext)(wi);return null!=t&&t.tooltipOpen?eo.createElement(j8,e):null}j5.propTypes={isNearestDatum:mi().bool.isRequired},j8.propTypes={renderTooltip:mi().func.isRequired,renderGlyph:mi().func,snapTooltipToDatumX:mi().bool,snapTooltipToDatumY:mi().bool,showVerticalCrosshair:mi().bool,showHorizontalCrosshair:mi().bool,showDatumGlyph:mi().bool,showSeriesGlyphs:mi().bool},j7.propTypes={renderTooltip:mi().func.isRequired,renderGlyph:mi().func,snapTooltipToDatumX:mi().bool,snapTooltipToDatumY:mi().bool,showVerticalCrosshair:mi().bool,showHorizontalCrosshair:mi().bool,showDatumGlyph:mi().bool,showSeriesGlyphs:mi().bool};var j9=n(70390);function ke(e){var t=e.children,n=(0,eo.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 eo.createElement(wa.Provider,{value:n},t)}function kt(){return(kt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(t,mE);return mS({},e(n),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:e.tooltipLeft,tooltipTop:e.tooltipTop,tooltipData:e.tooltipData})},[r]),a=(0,eo.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:a}),c=u.tooltipOpen,d=u.tooltipLeft,f=u.tooltipTop,h=u.tooltipData,p=u.updateTooltip,m=u.hideTooltip,g=(0,eo.useRef)(null),v=(0,eo.useRef)(function(e){var t=e.svgPoint,n=e.index,r=e.key,i=e.datum,a=e.distanceX,o=e.distanceY;g.current&&(g.current.cancel(),g.current=null);var l=Math.sqrt(Math.pow(b$(a)?a:1/0,2)+Math.pow(b$(o)?o:1/0,2));p(function(e){var a,o,s,u=e.tooltipData,c=null!=u&&u.nearestDatum&&b$(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!=(a=null==u?void 0:null==(o=u.nearestDatum)?void 0:o.key)?a:"")!==r&&c0&&i>0&&v({width:p,height:i,margin:l})},[v,p,i,l]);var b=wl({source:wr});return(wx({dataKey:"nearest"===(void 0===f?"nearest":f)?wy:wv,onPointerMove:s,onPointerOut:u,onPointerUp:c,onPointerDown:d,allowedSources:km}),v)?null==p||null==i?eo.createElement(j9.Z,null,function(t){return eo.createElement(kg,kh({},e,{width:null==e.width?t.width:e.width,height:null==e.height?t.height:e.height}))}):null==y?eo.createElement(kn,null,eo.createElement(kg,e)):null==x?eo.createElement(ke,null,eo.createElement(kg,e)):p>0&&i>0?eo.createElement("svg",{width:p,height:i,"aria-label":void 0===t?"XYChart":t},r,(void 0===n||n)&&eo.createElement("rect",kh({x:l.left,y:l.top,width:p-l.left-l.right,height:i-l.top-l.bottom,fill:"transparent"},b))):null:m&&g?eo.createElement(kf,{xScale:m,yScale:g,theme:h,initialDimensions:{width:p,height:i,margin:l},horizontal:a},eo.createElement(kg,e)):(console.warn("[@visx/xychart] XYChart: When no DataProvider is available in context, you must pass xScale & yScale config to XYChart."),null)}function kv(e){return eo.createElement(wP,e)}function ky(e){return eo.createElement(wX,e)}function kx(){return(kx=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function kS(e){var t=e.bars,n=(e.horizontal,e.xScale,e.yScale,e.radius),r=e.radiusAll,i=e.radiusTop,a=e.radiusRight,o=e.radiusBottom,l=e.radiusLeft,s=kE(e,kw),u=!!(s.onFocus||s.onBlur);return eo.createElement(eo.Fragment,null,t.map(function(e){var t=e.key,c=kE(e,kj);return null==n?eo.createElement("rect",kk({key:t,className:"visx-bar",tabIndex:u?0:void 0},c,s)):eo.createElement(w9.Z,kk({key:t,className:"visx-bar",tabIndex:u?0:void 0,radius:n,all:r,top:i,right:a,bottom:o,left:l},c,s))}))}function kC(){return(kC=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,kP);return eo.createElement(jm,k_({},n,{colorAccessor:t,BarsComponent:kS}))};function kT(){return(kT=Object.assign?Object.assign.bind():function(e){for(var t=1;tr(e),className:"flex flex-col gap-1",children:[(0,ea.jsx)(fy,{value:"line",children:"Line"}),(0,ea.jsx)(fy,{disabled:p||m,value:"areastack",children:"Area Stack"}),(0,ea.jsx)(fy,{disabled:p||m,value:"barstack",children:"Bar Stack"}),(0,ea.jsx)(fy,{disabled:p,value:"area",children:"Area"}),(0,ea.jsx)(fy,{disabled:p,value:"bargroup",children:"Bar Group"})]})]}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ea.jsx)(nw,{weight:"semibold",children:"Stack series offset"}),(0,ea.jsxs)(fx,{value:s,onValueChange:e=>u(e),className:"flex flex-col gap-1",children:[(0,ea.jsxs)(fy,{disabled:!l,value:"none",children:["None",(0,ea.jsx)(hs,{children:"zero-baseline"})]}),(0,ea.jsxs)(fy,{disabled:!l,value:"diverging",children:["Diverging",(0,ea.jsx)(hs,{children:"non zero-baseline"})]}),(0,ea.jsxs)(fy,{disabled:!l,value:"expand",children:["Expand",(0,ea.jsx)(hs,{children:"values sum to 1"})]}),(0,ea.jsxs)(fy,{disabled:!l,value:"wiggle",children:["Wiggle",(0,ea.jsx)(hs,{children:"stream graph"})]})]})]}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ea.jsx)(nw,{weight:"semibold",children:"Curve shape"}),(0,ea.jsxs)(fx,{value:i,onValueChange:e=>a(e),className:"flex flex-col gap-1",children:[(0,ea.jsx)(fy,{disabled:!o,value:"linear",children:"Linear"}),(0,ea.jsx)(fy,{disabled:!o,value:"cardinal",children:"Cardinal"}),(0,ea.jsx)(fy,{disabled:!o,value:"step",children:"Step"})]})]}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ea.jsx)(nw,{weight:"semibold",children:"Axes"}),(0,ea.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,ea.jsxs)(fx,{value:c,onValueChange:e=>d(e),className:"flex flex-col gap-1",children:[(0,ea.jsx)(fy,{value:"bottom",children:"Bottom"}),(0,ea.jsx)(fy,{value:"top",children:"Top"})]}),(0,ea.jsxs)(fx,{value:f,onValueChange:e=>h(e),className:"flex flex-col gap-2",children:[(0,ea.jsx)(fy,{value:"left",children:"Left"}),(0,ea.jsx)(fy,{value:"right",children:"Right"})]})]})]})]})})}let kQ=(0,eo.forwardRef)((e,t)=>{let{className:n}=e;return(0,ea.jsxs)("div",{ref:t,className:(0,eW.cx)("flex gap-1 items-center",n),children:[(0,ea.jsx)(k0,{}),(0,ea.jsx)(k0,{}),(0,ea.jsx)(k0,{})]})});function k0(){return(0,ea.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 k1(e){let{id:t,height:n,data:r,config:i,actionsLeft:a,isLoading:o,actionsRight:l,emptyState:s,variant:u="panel",allowConfiguration:c=!0}=e,d=function(e,t,n){let[r,i]=(0,eo.useState)(!(0,hi.Tb)()&&!n.disableAnimations),{resolvedTheme:a}=(0,p6.F)(),o=(0,eo.useMemo)(()=>"dark"===a?vB:vV,[a]),[l,s]=(0,eo.useState)("center"),[u,c]=(0,eo.useState)([!1,!1]),[d,f]=u,[h,p]=(0,kG.Z)("".concat(e,"/xAxisOrientation"),{defaultValue:"bottom"}),[m,g]=(0,kG.Z)("".concat(e,"/yAxisOrientation"),{defaultValue:"right"}),[v,y]=(0,eo.useState)(!0),[x,b]=(0,eo.useState)(!0),[w,j]=(0,eo.useState)(!1),[k,E]=(0,eo.useState)(!0),[S,C]=(0,eo.useState)(!0),[M,P]=(0,kG.Z)("".concat(e,"/chartType"),{defaultValue:n.chartType||"areastack"}),[_,O]=(0,kG.Z)("".concat(e,"/curveType"),{defaultValue:n.curveType||"linear"}),[T,A]=(0,kG.Z)("".concat(e,"/stackOffset"),{defaultValue:n.stackOffset||"none"}),N=(0,eo.useMemo)(()=>n.chartType,[]),R=(0,eo.useMemo)(()=>n.curveType,[]),D=(0,eo.useMemo)(()=>n.stackOffset,[]),L=["line","area","areastack"].includes(M),Z=["barstack","areastack"].includes(M),F=o.xyChartTheme.gridStyles.stroke,[z,V]=(0,eo.useState)(!1),[B,I]=(0,eo.useState)("star"),H=(0,eo.useCallback)(e=>{let{x:t,y:n,size:r,color:i,onPointerMove:a,onPointerOut:o,onPointerUp:l,isNearestDatum:s}=e,u={onPointerMove:a,onPointerOut:o,onPointerUp:l};return"star"===B?(0,ea.jsx)(vk,{left:t,top:n,stroke:F,fill:i,size:10*r,...u}):"circle"===B?(0,ea.jsx)(vC,{left:t,top:n,stroke:F,fill:i,r:r,...u}):"cross"===B?(0,ea.jsx)(vO,{left:t,top:n,stroke:F,fill:i,size:10*r,...u}):(0,ea.jsx)("text",{x:t,y:n,dx:"-0.75em",dy:"0.25em",fontSize:14,...u,children:s?"\uD83C\uDF4D":"\uD83C\uDF4C"})},[B,F]),U=(0,eo.useMemo)(()=>{if(t.sort((e,t)=>e.timestamp>t.timestamp?1:-1),0===t.length)return[];let e=t[t.length-1];return"barstack"!==M&&"bargroup"!==M?[...t,{...e,timestamp:e.timestamp+kV(1)}]:t},[M,t]),W=(0,eo.useMemo)(()=>{if(U.length<2)return 0;let e=[U[0].timestamp,U[U.length-1].timestamp],t=new Date().getTime();return t>e[0]&&tObject.keys((0,kF.Z)(t[0],"timestamp")),[t]),$=(0,eo.useMemo)(()=>n.enabledGraph||q,[q,n]),K=(0,eo.useMemo)(()=>n.enabledTip||q,[q,n]),Y=(0,eo.useMemo)(()=>({x:q.reduce((e,t)=>({...e,[t]:e=>e.timestamp}),{}),y:q.reduce((e,t)=>({...e,[t]:e=>e[t]}),{}),date:e=>e.timestamp}),[q]);return{id:e,accessors:Y,animationTrajectory:l,config:n,scales:(0,eo.useMemo)(()=>({x:{type:"band",paddingInner:L?1:.3},y:{type:"linear"}}),[L]),data:U,curve:(0,eo.useMemo)(()=>"cardinal"===_&&vT.ZP||"step"===_&&ga.ZP||vA.Z,[_]),chartData:t,numTicks:4,isLine:L,isStack:Z,todayOffset:W,initialChartType:N,initialCurveType:R,initialStackOffset:D,chartType:M,curveType:_,keys:q,enabledGraph:$,enabledTip:K,renderBarGroup:"bargroup"===M,renderBarStack:"barstack"===M,enableTooltipGlyph:z,renderTooltipGlyph:H,renderAreaSeries:"area"===M,renderAreaStack:"areastack"===M,renderLineSeries:"line"===M,sharedTooltip:S,showGridColumns:f,showGridRows:d,showHorizontalCrosshair:w,showTooltip:v,showVerticalCrosshair:x,snapTooltipToDatum:!Z&&k,stackOffset:T,theme:o,margin:(0,eo.useMemo)(()=>({top:30,bottom:"top"===h?0:20,right:"right"===m?60:0,left:"left"===m?60:0}),[h,m]),xAxisOrientation:h,yAxisOrientation:m,setUseAnimatedComponents:i,setAnimationTrajectory:s,setGridProps:c,setXAxisOrientation:p,setYAxisOrientation:g,setShowTooltip:y,setShowVerticalCrosshair:b,setShowHorizontalCrosshair:j,setSnapTooltipToDatum:E,setSharedTooltip:C,setChartType:P,setCurveType:O,setStackOffset:A,setEnableTooltipGlyph:V,setTooltipGlyphComponent:I,...r?{Annotation:b2,AreaSeries:wO,AreaStack:wJ,Axis:w3,BarGroup:jd,BarSeries:jy,BarStack:jk,GlyphSeries:jP,Grid:jL,LineSeries:jI,Tooltip:j7,XYChart:kg}:{AreaSeries:kv,AreaStack:ky,Axis:kb,BarGroup:kM,BarSeries:kO,BarStack:kA,Grid:kL,LineSeries:kZ,Tooltip:j7,XYChart:kg}}}(t,r,i),f=(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsxs)("div",{className:"flex gap-2 absolute top-3 right-4",children:[l,"panel"===u&&c&&(0,ea.jsx)(kJ,{...d})]}),(0,ea.jsx)("div",{className:"flex gap-2 absolute top-3 left-4",children:a}),(0,ea.jsx)(vh,{children:e=>{let{width:t,height:n}=e;return o?(0,ea.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,ea.jsx)(kQ,{className:"scale-150"})}):0===r.length&&s?s:(0,ea.jsx)(vm,{...d,width:t,height:n})}})]});return"panel"===u?(0,ea.jsx)(nE,{className:"relative p-px",style:{height:n},children:f}):(0,ea.jsx)("div",{className:"relative p-px",style:{height:n},children:f})}var k2="text/plain",k4=e=>{};(function(){(console.warn||console.log).apply(console,arguments)}).bind("[clipboard-polyfill]");var k3="undefined"==typeof window?void 0:window,k5="undefined"==typeof globalThis?void 0:globalThis,k6=null!=(H=null==k3?void 0:k3.Promise)?H:null==k5?void 0:k5.Promise,k8="undefined"==typeof navigator?void 0:navigator,k7=null==k8?void 0:k8.clipboard;null==(U=null==k7?void 0:k7.read)||U.bind(k7),null==(W=null==k7?void 0:k7.readText)||W.bind(k7);var k9=null==(q=null==k7?void 0:k7.write)?void 0:q.bind(k7),Ee=null==($=null==k7?void 0:k7.writeText)?void 0:$.bind(k7),Et=null==k3?void 0:k3.ClipboardItem,En=function(){if(!k6)throw Error("No `Promise` implementation available for `clipboard-polyfill`. Consider using: https://github.com/lgarron/clipboard-polyfill#flat-file-version-with-promise-included");return k6}();function Er(e,t,n){for(var r in k4("listener called"),e.success=!0,t){var i=t[r],a=n.clipboardData;a.setData(r,i),r===k2&&a.getData(r)!==i&&(k4("setting text/plain failed"),e.success=!1)}n.preventDefault()}function Ei(e){var t={success:!1},n=Er.bind(this,t,e);document.addEventListener("copy",n);try{document.execCommand("copy")}finally{document.removeEventListener("copy",n)}return t.success}function Ea(e,t){Eo(e);var n=Ei(t);return El(),n}function Eo(e){var t=document.getSelection();if(t){var n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}}function El(){var e=document.getSelection();e&&e.removeAllRanges()}function Es(e){var t,n,r,i,a,o,l,s=k2 in e;if("undefined"==typeof ClipboardEvent&&void 0!==(null==k3?void 0:k3.clipboardData)&&void 0!==(null==k3?void 0:k3.clipboardData.setData)){if(!s)throw Error("No `text/plain` value was specified.");if(function(e){if(!k3.clipboardData)return!1;var t=k3.clipboardData.setData("Text",e);return t&&k4("writeTextIE worked"),t}(e[k2]))return!0;throw Error("Copying failed, possibly because the user rejected it.")}return Ei(e)?(k4("regular execCopy worked"),!0):navigator.userAgent.indexOf("Edge")>-1?(k4('UA "Edge" => assuming success'),!0):Ea(document.body,e)?(k4("copyUsingTempSelection worked"),!0):((o=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),o.textContent="temporary element",document.body.appendChild(o),l=Ea(o,e),document.body.removeChild(o),l)?(k4("copyUsingTempElem worked"),!0):(t=e[k2],k4("copyTextUsingDOM"),(n=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),r=n,n.attachShadow&&(k4("Using shadow DOM."),r=n.attachShadow({mode:"open"})),(i=document.createElement("span")).innerText=t,r.appendChild(i),document.body.appendChild(n),Eo(i),a=document.execCommand("copy"),El(),document.body.removeChild(n),!!a&&(k4("copyTextUsingDOM worked"),!0))}function Eu(e,t){var n=[];for(var r in e){var i=e[r];n.push(t(i))}return En.all(n).then(t=>{for(var n={},r=0;rEn.resolve(!0),Ef=En.resolve(!1);function Eh(e){return new En((t,n)=>{try{t(e())}catch(e){n(e)}})}function Ep(e){return Eh(()=>Ee?(k4("Using `navigator.clipboard.writeText()`."),Ee(e).catch(Em)):En.resolve(Em(e)))}function Em(e){var t;if(!Es(((t={})[k2]=e,t)))throw Error("writeText() failed")}function Eg(e,t){for(var n in e)if(-1!==e[n].types.indexOf(t))return!0;return!1}function Ev(e){return Eu(e.types,function(t){return e.getType(t)}).then(t=>new Promise((n,r)=>{var i={};e.presentationStyle&&(i.presentationStyle=e.presentationStyle),Et?n(new Et(t,i)):r("window.ClipboardItem is not defined")}))}let Ey={data:""},Ex=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Ey,Eb=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Ew=/\/\*[^]*?\*\/|\s\s+|\n/g,Ej=(e,t)=>{let n="",r="",i="";for(let a in e){let o=e[a];"@"==a[0]?"i"==a[1]?n=a+" "+o+";":r+="f"==a[1]?Ej(o,a):a+"{"+Ej(o,"k"==a[1]?"":t)+"}":"object"==typeof o?r+=Ej(o,t?t.replace(/([^,])+/g,e=>a.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):a):null!=o&&(a=a.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Ej.p?Ej.p(a,o):a+":"+o+";")}return n+(t&&i?t+"{"+i+"}":i)+r},Ek={},EE=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+EE(e[n]);return t}return e},ES=(e,t,n,r,i)=>{var a;let o=EE(e),l=Ek[o]||(Ek[o]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(o));if(!Ek[l]){let t=o!==e?e:(e=>{let t,n=[{}];for(;t=Eb.exec(e.replace(Ew,""));)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);Ek[l]=Ej(i?{["@keyframes "+l]:t}:t,n?"":"."+l)}return a=Ek[l],-1==t.data.indexOf(a)&&(t.data=r?a+t.data:t.data+a),l},EC=(e,t,n)=>e.reduce((e,r,i)=>{let a=t[i];if(a&&a.call){let e=a(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;a=t?"."+t:e&&"object"==typeof e?e.props?"":Ej(e,""):!1===e?"":e}return e+r+(null==a?"":a)},"");function EM(e){let t=this||{},n=e.call?e(t.p):e;return ES(n.unshift?n.raw?EC(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,Ex(t.target),t.g,t.o,t.k)}EM.bind({g:1});let EP,E_,EO,ET=EM.bind({k:1});function EA(e,t){let n=this||{};return function(){let r=arguments;function i(a,o){let l=Object.assign({},a),s=l.className||i.className;n.p=Object.assign({theme:E_&&E_()},l),n.o=/ *go\d+/.test(s),l.className=EM.apply(n,r)+(s?" "+s:""),t&&(l.ref=o);let u=e;return e[0]&&(u=l.as||e,delete l.as),EO&&u[0]&&EO(l),EP(u,l)}return t?t(i):i}}function EN(){return(EN=Object.assign||function(e){for(var t=1;t-1&&EI.splice(e,1)}},[n]);var i=n.toasts.map(function(t){var n,r,i;return EN({},e,e[t.type],t,{duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==(r=e)?void 0:r.duration)||EW[t.type],style:EN({},e.style,null==(i=e[t.type])?void 0:i.style,t.style)})});return EN({},n,{toasts:i})},E$=function(e){return function(t,n){var r,i=(void 0===(r=e)&&(r="blank"),EN({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)||EL()}));return EU({type:K.UPSERT_TOAST,toast:i}),i.id}},EK=function(e,t){return E$("blank")(e,t)};EK.error=E$("error"),EK.success=E$("success"),EK.loading=E$("loading"),EK.custom=E$("custom"),EK.dismiss=function(e){EU({type:K.DISMISS_TOAST,toastId:e})},EK.remove=function(e){return EU({type:K.REMOVE_TOAST,toastId:e})},EK.promise=function(e,t,n){var r=EK.loading(t.loading,EN({},n,null==n?void 0:n.loading));return e.then(function(e){return EK.success(ED(t.success,e),EN({id:r},n,null==n?void 0:n.success)),e}).catch(function(e){EK.error(ED(t.error,e),EN({id:r},n,null==n?void 0:n.error))}),e};var EY=function(e){var t=Eq(e),n=t.toasts,r=t.pausedAt;(0,eo.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&&EK.dismiss(t.id);return}return setTimeout(function(){return EK.dismiss(t.id)},n)}});return function(){t.forEach(function(e){return e&&clearTimeout(e)})}}},[n,r]);var i=(0,eo.useMemo)(function(){return{startPause:function(){EU({type:K.START_PAUSE,time:Date.now()})},endPause:function(){r&&EU({type:K.END_PAUSE,time:Date.now()})},updateHeight:function(e,t){return EU({type:K.UPDATE_TOAST,toast:{id:e,height:t}})},calculateOffset:function(e,t){var r,i=t||{},a=i.reverseOrder,o=i.gutter,l=void 0===o?8:o,s=i.defaultPosition,u=n.filter(function(t){return(t.position||s)===(e.position||s)&&t.height}),c=u.findIndex(function(t){return t.id===e.id}),d=u.filter(function(e,t){return t * {\n pointer-events: auto;\n }\n"]);return Sx=function(){return e},e}b=eo.createElement,Ej.p=void 0,EP=b,E_=void 0,EO=void 0;var Sb=function(e,t){var n=e.includes("top"),r=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return EN({left:0,right:0,display:"flex",position:"absolute",transition:EZ()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY("+t*(n?1:-1)+"px)"},n?{top:0}:{bottom:0},r)},Sw=EM(Sx()),Sj=function(e){var t=e.reverseOrder,n=e.position,r=void 0===n?"top-center":n,i=e.toastOptions,a=e.gutter,o=e.children,l=e.containerStyle,s=e.containerClassName,u=EY(i),c=u.toasts,d=u.handlers;return(0,eo.createElement)("div",{style:EN({position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none"},l),className:s,onMouseEnter:d.startPause,onMouseLeave:d.endPause},c.map(function(e){var n,i=e.position||r,l=Sb(i,d.calculateOffset(e,{reverseOrder:t,gutter:a,defaultPosition:r})),s=e.height?void 0:(n=function(t){d.updateHeight(e.id,t.height)},function(e){e&&setTimeout(function(){n(e.getBoundingClientRect())})});return(0,eo.createElement)("div",{ref:s,className:e.visible?Sw:"",key:e.id,style:l},"custom"===e.type?ED(e.message,e):o?o(e):(0,eo.createElement)(Sy,{toast:e,position:i}))}))};function Sk(e){let{icon:t,title:n,body:r,toastId:i}=e;return(0,ea.jsxs)("div",{"data-testid":"toasts",className:"flex flex-col overflow-hidden",children:[(0,ea.jsxs)("div",{className:"flex items-center gap-2 pt-1.5 pb-1 px-1 overflow-hidden",children:[t&&(0,ea.jsx)(nw,{className:"flex items-center",color:"subtle",children:t}),(0,ea.jsx)(sM,{content:n,children:(0,ea.jsx)(nw,{ellipsis:!0,className:"flex-1",children:n})}),(0,ea.jsx)("div",{className:"flex items-center pl-1",children:(0,ea.jsx)(s_,{icon:"hover",size:"none",onClick:e=>{EK.dismiss(i)},children:(0,ea.jsx)(sO.PcV,{})})})]}),r&&(0,ea.jsx)("div",{className:"pb-1",children:(0,ea.jsx)(uS,{children:(0,ea.jsx)("div",{className:"max-w-sm px-1 max-h-20",children:(0,ea.jsx)(nw,{color:"subtle",size:"14",children:r})})})})]})}let SE=e=>{let{title:t,body:n,icon:r,options:i={}}=e;EK(e=>(0,ea.jsx)(Sk,{toastId:e.id,title:t,body:n,icon:r}),SM(i))};function SS(e){let{title:t,body:n,options:r}=e;SE({title:t,body:n,icon:(0,ea.jsx)(sO.yar,{className:"text-green-600"}),options:r})}function SC(e){let{title:t,body:n,options:r}=e;SE({title:t,body:n,icon:(0,ea.jsx)(sO.T80,{className:"text-red-600"}),options:r})}function SM(){let{className:e,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{position:"top-center",duration:6e3,className:(0,eW.cx)(nk(),"overflow-hidden","!max-w-[800px]","[&>div]:overflow-hidden","!p-0","z-50",e),success:{icon:(0,ea.jsx)("div",{className:"!flex-none w-5",children:(0,ea.jsx)(sO.tEK,{className:"w-5 text-green-600"})})},error:{icon:(0,ea.jsx)("div",{className:"!flex-none w-5",children:(0,ea.jsx)(sO.Jsc,{className:"w-5 text-red-600"})})},...t}}function SP(){return(0,ea.jsx)(Sj,{toastOptions:SM(),containerStyle:{zIndex:20}})}let S_=(e,t)=>{SE({title:t?"Copied ".concat(t," to clipboard"):"Copied to clipboard",icon:(0,ea.jsx)(sO.vtB,{})}),Ep(e)},SO=(e,t,n)=>{var r;SE({title:n?"Copied ".concat(n," to clipboard"):"Copied to clipboard",icon:(0,ea.jsx)(sO.vtB,{})}),r=[new ClipboardItem({[t]:e})],Eh(()=>k9&&Et?(k4("Using `navigator.clipboard.write()`."),En.all(r.map(Ev)).then(e=>k9(e).then(Ed).catch(e=>{if(!Eg(r,k2)&&!Eg(r,"text/html"))throw e;return Ef}))):Ef).then(e=>{var t;return e?Ec:(Eg(r,k2)||k4("clipboard.write() was called without a `text/plain` data type. On some platforms, this may result in an empty clipboard. Call suppressWarnings() to suppress this warning."),Eu((t=r[0]).types,function(e){return t.getType(e).then(e=>new En((t,n)=>{var r=new FileReader;r.addEventListener("load",()=>{var e=r.result;"string"==typeof e?t(e):n("could not convert blob to string")}),r.readAsText(e)}))}).then(e=>{if(!Es(e))throw Error("write() failed")}))})},ST=e=>{let{text:t,title:n,body:r,icon:i,options:a}=e;SE({title:n,body:r,icon:i||(0,ea.jsx)(sO.vtB,{}),options:a}),Ep(t)};function SA(e,t){return e?t&&e.length>t?"".concat(e.slice(0,t),"..."):"".concat(e.slice(0,t)):""}function SN(e){return(e||"").replace(/^addr:/,"").replace(/^txid:/,"").replace(/^fcid:/,"").replace(/^h:/,"").replace(/^scoid:/,"").replace(/^sfoid:/,"").replace(/^key:/,"")}function SR(e,t,n){return t?"".concat(e," ").concat(SA(t,n)):"".concat(e)}function SD(e){let{value:t,displayValue:n,type:r,label:i,href:a,maxLength:o,size:l,scaleSize:s,weight:u,font:c,color:d="contrast",className:f,siascanUrl:h,contextMenu:p}=e,m=i||(0,vt.uV)(r),g=o||(0,vt.uF)(r),v=SN(t),y=n||r&&(0,vt.Lu)(r,v,g)||(0,vt.mj)(v,g);return(0,ea.jsxs)("div",{className:(0,eW.cx)("flex items-center",f),children:[a?(0,ea.jsx)(dx,{href:a,underline:"hover",size:l,scaleSize:s,color:d,weight:u,font:c,ellipsis:!0,children:y}):(0,ea.jsx)(nw,{size:l,scaleSize:s,color:d,weight:u,font:c,ellipsis:!0,children:y}),(0,ea.jsx)("div",{className:"ml-1 flex items-center",children:p||(0,ea.jsx)(SL,{cleanValue:v,label:m,size:l,siascanUrl:h,type:r})})]})}function SL(e){let{size:t,cleanValue:n,label:r,siascanUrl:i,type:a}=e;return(0,ea.jsxs)(dt,{trigger:(0,ea.jsx)(s_,{size:"none",variant:"ghost",children:(0,ea.jsx)(sO.EMN,{className:"10"===t?"scale-75":"scale-90"})}),contentProps:{align:"end"},children:[(0,ea.jsxs)(dn,{onSelect:e=>{S_(n,r)},onClick:e=>{e.stopPropagation()},children:[(0,ea.jsx)(di,{children:(0,ea.jsx)(sO.olJ,{})}),"Copy to clipboard"]}),i&&a&&(0,vt.Lg)(a)&&(0,ea.jsx)(dx,{target:"_blank",href:(0,vt.jH)(i,a,n),className:"block w-full",underline:"none",children:(0,ea.jsxs)(dn,{onClick:e=>{e.stopPropagation()},children:[(0,ea.jsx)(di,{children:(0,ea.jsx)(sO.V8Q,{})}),"View on Siascan"]})})]})}function SZ(e){let{value:t,displayValue:n,type:r,href:i,maxLength:a,size:o,scaleSize:l,color:s="contrast",menu:u,className:c}=e,d=a||(0,vt.uF)(r),f=SN(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,ea.jsxs)("div",{className:(0,eW.cx)("flex items-center",c),children:[i?(0,ea.jsx)(dx,{href:i,underline:"hover",size:o,scaleSize:l,color:s,ellipsis:!0,children:p}):(0,ea.jsx)(nw,{size:o,scaleSize:l,color:s,ellipsis:!0,children:p}),(0,ea.jsx)("div",{className:"ml-1 flex items-center",children:u})]})}function SF(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:a="change"}=e,o=(0,vt.yF)(String(t),{units:"SF"});return(0,ea.jsx)(sM,{content:(i?"".concat(i," "):"")+o,children:(0,ea.jsxs)(nw,{size:n,scaleSize:r,weight:"medium",font:"mono",color:"change"===a?t>0?"green":t<0?"red":"subtle":"contrast",children:["change"===a&&t>0?"+":"",o]})})}function Sz(e){let{value:t,size:n,scaleSize:r,tooltip:i="",tipSide:a,font:o="mono",variant:l="change",color:s,fixed:u=3,dynamicUnits:c=!0,hastingUnits:d=!0,extendedSuffix:f,showTooltip:h=!0}=e,p=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",m=s||("change"===l?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast"),g=(0,ea.jsxs)(nw,{size:n,scaleSize:r,weight:"medium",font:o,ellipsis:!0,color:m,children:["change"===l?"".concat(p).concat((0,vt.Vz)(t.absoluteValue(),{fixed:u,dynamicUnits:c})):(0,vt.Vz)(t,{fixed:u,dynamicUnits:c,hastingUnits:d}),f||""]});return h?(0,ea.jsx)(sM,{content:(i?"".concat(i," "):"")+(0,vt.Vz)(t,{fixed:16,dynamicUnits:!1}),side:a,children:g}):g}function SV(e){let{sc:t,size:n,scaleSize:r,color:i,tooltip:a="",variant:o="change",fixed:l,font:s="mono",fixedTip:u=20,showTooltip:c=!0,tipSide:d,extendedSuffix:f}=e,h=(0,ha.BW)(),{settings:{currency:p}}=(0,hi.Hv)(),m=t.isZero()?"":t.isGreaterThan(0)&&"change"===o?"+":t.isLessThan(0)?"-":"",g=i||("change"===o?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast");if(!h.data)return null;let v=new(he())(h.data.rates.sc[p.id]||1).times(t).div(1e24),y=void 0!==l?l:p.fixed,x=(0,ea.jsx)(nw,{size:n,scaleSize:r,weight:"medium",font:s,ellipsis:!0,color:g,children:"".concat(m).concat(p.prefix).concat(SB(v.absoluteValue(),y)).concat(f||"")});return c?(0,ea.jsx)(sM,{side:d,content:(a?"".concat(a," "):"")+"".concat(m).concat(p.prefix).concat(SB(v.absoluteValue(),u)).concat(f||""),children:x}):x}function SB(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 SI(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:a="change",fixed:o=3,fixedFiat:l,fixedTipFiat:s,font:u="mono",tipSide:c,dynamicUnits:d=!0,hastingUnits:f=!0,extendedSuffix:h,showTooltip:p=!0,displayBoth:m=!1,displayBothDirection:g="column"}=e,{settings:{currencyDisplay:v}}=(0,hi.Hv)(),y=(0,ha.BW)(),x=(0,eo.useMemo)(()=>(0,ea.jsx)(Sz,{value:t,size:n,color:m&&"row"===g&&"bothPreferFiat"===v?"subtle":void 0,scaleSize:r,tooltip:i,variant:a,fixed:o,font:u,dynamicUnits:d,hastingUnits:f,extendedSuffix:h,showTooltip:p,tipSide:c}),[t,n,r,i,a,o,u,d,f,h,p,c,v,m,g]),b=(0,eo.useMemo)(()=>(0,ea.jsx)(SV,{sc:t,size:n,color:m&&"row"===g&&"bothPreferSc"===v?"subtle":void 0,scaleSize:r,tooltip:i,variant:a,fixed:l,fixedTip:s,font:u,dynamicUnits:d,hastingUnits:f,extendedSuffix:h,showTooltip:p,tipSide:c}),[t,n,r,i,a,u,l,s,d,f,h,p,c,v,m,g]);return"sc"!==v&&y.data?"fiat"===v?b:"bothPreferSc"===v?m?(0,ea.jsxs)("div",{className:"column"===g?"flex flex-col items-end":"flex gap-1",children:[x,b]}):x:"bothPreferFiat"===v?m?(0,ea.jsxs)("div",{className:"column"===g?"flex flex-col items-end":"flex gap-1",children:[b,x]}):b:x:x}function SH(e){let{value:t,size:n="14",weight:r="semibold",tooltip:i="",tipSide:a,variant:o="change",color:l,format:s}=e,u=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",c="change"===o?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast";return(0,ea.jsx)(sM,{side:a,content:(i?"".concat(i," "):"")+s(t),children:(0,ea.jsx)(nw,{size:n,weight:r,font:"mono",ellipsis:!0,color:l||c,children:"change"===o?"".concat(u).concat(s(t.absoluteValue())):s(t)})})}var SU=n(19510),SW=n(89930),Sq=n(62875),S$=1/0,SK=function(e){var t,n=(t=e)?(t=(0,Sq.Z)(t))===S$||t===-S$?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0,r=n%1;return n==n?r?n-r:n:0},SY=Math.min,SX=function(e,t){if((e=SK(e))<1||e>9007199254740991)return[];var n,r=4294967295,i=SY(e,4294967295);t="function"==typeof(n=t)?n:SW.Z,e-=4294967295;for(var a=(0,SU.Z)(i,t);++r(0,ea.jsxs)("div",{className:(0,eW.cx)("relative flex gap-4 p-3.5",(0,eW.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:[(0,ea.jsx)(hm,{className:"w-[60px] h-[50px]"}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,ea.jsx)(hm,{className:"w-[90%] h-[20px]"}),(0,ea.jsx)(hm,{className:"w-[140px] h-[14px]"})]})]},e))})}var SJ=n(29193),SQ=n(34864);function S0(e){let{type:t,label:n,initials:r,href:i,src:a,shape:o}=e,l=(0,ea.jsx)(sU,{interactive:!!i,fallback:r||t&&(t||n||"").split(" ").map(e=>e.charAt(0).toUpperCase).join(""),src:a,shape:o||(t&&"address"!==t&&"block"!==t?"circle":"square")}),s=i&&(0,ea.jsx)(dx,{href:i,underline:"none",children:l})||l;return t?(0,ea.jsx)(sM,{content:n||(0,vt.jF)(t),children:(0,ea.jsx)("div",{className:"",children:s})}):s}function S1(e){let{label:t,type:n,avatar:r,avatarShape:i,initials:a,href:o,onClick:l,children:s}=e;return(0,ea.jsxs)("div",{className:(0,eW.cx)("flex gap-4 p-4",(0,eW.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),onClick:l,children:[(0,ea.jsx)(S0,{label:t,type:n,shape:i,src:r,initials:a||(n||t||"").split(" ").map(e=>e.charAt(0).toUpperCase()).join(""),href:o}),s]})}function S2(e){let t=e.sc,n=e.sf,r=e.hash&&(0,ea.jsx)(SD,{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&&(0,vt.pX)(e.txType)||(0,vt.jF)(e.type),a=!function(e){if(!e)return!1;try{return new URL(e),!0}catch(e){return!1}}(i)?(0,SQ.Z)(i):i;return(0,ea.jsx)(S1,{...e,children:(0,ea.jsxs)("div",{className:"flex flex-col items-center gap-1 w-full min-w-0",children:[(0,ea.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,ea.jsxs)("div",{className:"flex gap-2 items-center min-w-0",children:[e.height&&e.blockHref&&(0,ea.jsx)(nw,{color:"subtle",weight:"semibold",children:(0,ea.jsx)(dx,{href:e.blockHref,underline:"none",children:(0,vt.yF)(e.height)})}),a?(0,ea.jsx)(sM,{content:a,children:(0,ea.jsx)(nw,{ellipsis:!0,weight:"medium",children:a})}):(0,ea.jsx)(nw,{ellipsis:!0,weight:"medium",children:r})]}),(0,ea.jsx)("div",{className:"flex-1"}),(0,ea.jsxs)("div",{className:"flex items-center",children:[!!t&&(0,ea.jsx)(SI,{variant:e.scVariant,value:t}),!!n&&(0,ea.jsx)(SF,{variant:e.sfVariant,value:n})]})]}),(0,ea.jsxs)("div",{className:"flex justify-between w-full",children:[(0,ea.jsx)("div",{className:"flex gap-1",children:!!a&&r}),(0,ea.jsxs)("div",{className:"flex gap-1 items-center",children:[e.unconfirmed?(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsx)(nw,{color:"verySubtle",children:"unconfirmed"}),e.timestamp?(0,ea.jsx)(nw,{color:"verySubtle",children:(0,ea.jsx)(sO.Bpb,{className:"scale-50"})}):null]}):null,e.timestamp&&(0,ea.jsx)(nw,{color:"subtle",children:(0,SJ.Z)(new Date(e.timestamp),new Date,{addSuffix:!0})})]})]})]})})}function S4(e){let{title:t,actions:n,dataset:r,isLoading:i,emptyState:a,emptyMessage:o,skeletonCount:l=10,children:s}=e,u=t||n,c="emptyState";return!i||(null==r?void 0:r.length)||s||(c="skeleton"),((null==r?void 0:r.length)||s)&&(c="currentData"),(0,ea.jsx)(nE,{children:(0,ea.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[u&&(0,ea.jsxs)("div",{className:"flex items-center p-4 border-b border-gray-200 dark:border-graydark-300",children:[t&&(0,ea.jsx)(du,{size:"20",font:"mono",ellipsis:!0,children:t}),(0,ea.jsx)("div",{className:"flex-1"}),n]}),(0,ea.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:["emptyState"===c&&(a||(0,ea.jsx)("div",{className:(0,eW.cx)("flex items-center justify-center h-[84px]",(0,eW.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:(0,ea.jsx)(nw,{size:"18",color:"subtle",children:o||"No results"})})),"currentData"===c&&(s||(null==r?void 0:r.map((e,t)=>(0,ea.jsx)(S2,{...e},e.hash||e.label||t)))),"skeleton"===c&&(0,ea.jsx)(SG,{skeletonCount:l})]})]})})}function S3(e){let{label:t,entityType:n,entityValue:r,actions:i,href:a,value:o,extendedSuffix:l,hash:s,sc:u,scFixed:c=2,sf:d,comment:f,commentTip:h,scaleSize:p="40",isLoading:m,onClick:g}=e,v=(0,ea.jsx)(nw,{color:"subtle",size:"12",className:"h-6",children:f});return(0,ea.jsx)(nE,{children:(0,ea.jsx)("div",{className:(0,eW.cx)("flex items-center py-2 px-4 h-full min-w-[250px]",g?"cursor-pointer":""),onClick:g,children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4 flex-wrap items-start w-full",children:[(0,ea.jsxs)("div",{className:"flex relative top-px flex-1 w-full gap-6 items-center justify-between",children:[(0,ea.jsx)(nw,{color:"subtle",ellipsis:!0,scaleSize:"14",children:"string"==typeof t?(0,SQ.Z)(t):t}),i]}),(0,ea.jsxs)("div",{className:"flex flex-col items-end md:items-start gap-2 md:flex-2",children:[m?(0,ea.jsx)(hm,{className:"h-12 w-[150px]"}):(0,ea.jsxs)(ea.Fragment,{children:[void 0!==u&&(0,ea.jsx)(SI,{extendedSuffix:l,scaleSize:p,variant:"value",value:u,fixed:c}),void 0!==d&&(0,ea.jsx)(SF,{scaleSize:p,variant:"value",value:d}),n&&(r?(0,ea.jsx)(SD,{scaleSize:p,label:(0,vt.jF)(n),href:a,value:r,displayValue:"block"===n&&r?Number(r).toLocaleString():r,className:"relative top-0.5"}):(0,ea.jsx)(nw,{font:"mono",weight:"medium",scaleSize:p,children:"-"})),s&&(0,ea.jsx)(SD,{scaleSize:p,label:"hash",value:s}),void 0!==o&&(0,ea.jsx)(nw,{font:"mono",weight:"medium",scaleSize:p,ellipsis:!0,children:o})]}),v?(0,ea.jsx)("div",{className:"mt-1",children:m?(0,ea.jsx)("div",{className:"mt-1 h-6 justify-center",children:(0,ea.jsx)(hm,{className:"h-4 w-[100px]"})}):h?(0,ea.jsx)(sM,{content:h,children:v}):v}):null]})]})})})}function S5(e){let{title:t,actions:n,name:r}=e;return(0,ea.jsxs)("div",{className:"flex gap-0.5 items-center",children:[t?(0,ea.jsx)(dg,{htmlFor:r,noWrap:!0,children:t}):null,n]})}function S6(e){var t;let{form:n,name:r}=e,i=n.formState.errors[r],a=null===(t=n.formState.errors[r])||void 0===t?void 0:t.message;return i?(0,ea.jsx)(nw,{size:"14",color:"red",children:a}):null}function S8(e){let{form:t,title:n,actions:r,name:i,className:a,wrap:o}=e,l=t.formState.errors[i];return n||l?(0,ea.jsxs)("div",{className:(0,eW.cx)("flex justify-between items-center gap-x-4 overflow-hidden",o?"flex-wrap":"",a),children:[(0,ea.jsx)(S5,{name:i,title:n,actions:r}),(0,ea.jsx)(S6,{form:t,name:i})]}):null}function S7(e){let{children:t,...n}=e;return(0,ea.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,ea.jsx)(S8,{...n}),t]})}function S9(e){let{form:t,size:n="medium",variant:r="accent",className:i,children:a}=e;return(0,ea.jsx)(ea.Fragment,{children:(0,ea.jsx)(s_,{className:i,size:n,variant:r,state:t.formState.isSubmitting?"waiting":void 0,type:"submit",children:t.formState.isSubmitting?(0,ea.jsx)(kQ,{}):a})})}function Ce(e){let{formik:t,title:n,name:r,placeholder:i,disabled:a,readOnly:o,autoComplete:l="off",spellCheck:s=!1,tabIndex:u,allowDecimals:c=!1,decimalsLimitFiat:d=3,decimalsLimitSc:f=3,decimalsLimit:h=2,disableGroupSeparators:p=!1,showFiat:m=!0,units:g,type:v,variants:y}=e;return(0,ea.jsx)(Ca,{formik:t,title:n,name:r,children:"number"===v?(0,ea.jsx)(Cn,{formik:t,name:r,units:g,disabled:a,readOnly:o,tabIndex:u,decimalsLimit:h,allowDecimals:c,disableGroupSeparators:p,placeholder:i,variants:y}):"siacoin"===v?(0,ea.jsx)(Cr,{formik:t,name:r,disabled:a,readOnly:o,placeholder:i,tabIndex:u,showFiat:m,decimalsLimitFiat:d,decimalsLimitSc:f,variants:y}):(0,ea.jsx)(Ct,{formik:t,name:r,autoComplete:l,disabled:a,readOnly:o,placeholder:i,tabIndex:u,spellCheck:s,type:v,variants:y})})}function Ct(e){let{formik:t,name:n,placeholder:r,autoComplete:i="off",disabled:a,readOnly:o,tabIndex:l,spellCheck:s=!1,type:u,variants:c}=e;return(0,ea.jsx)(fZ,{id:n,name:n,autoComplete:i,disabled:a,spellCheck:s,placeholder:r,tabIndex:l,readOnly:o||t.isSubmitting,type:u,onBlur:t.handleBlur,onChange:t.handleChange,value:t.values[n]||"",...c})}function Cn(e){let{formik:t,name:n,units:r,disabled:i,readOnly:a,tabIndex:o,placeholder:l,decimalsLimit:s,allowDecimals:u=!1,disableGroupSeparators:c=!1,variants:d}=e;return(0,ea.jsx)(hr,{id:n,units:r,name:n,placeholder:new(he())(l),disabled:i,allowDecimals:u,decimalsLimit:s,disableGroupSeparators:c,readOnly:a||t.isSubmitting,tabIndex:o,onBlur:t.handleBlur,onChange:e=>t.setFieldValue(n,e),value:t.values[n],...d})}function Cr(e){let{formik:t,name:n,disabled:r,readOnly:i,tabIndex:a,placeholder:o,showFiat:l,decimalsLimitFiat:s=3,decimalsLimitSc:u=3,variants:c}=e;return(0,ea.jsx)(hl,{id:n,name:n,disabled:r,showFiat:l,decimalsLimitFiat:s,decimalsLimitSc:u,readOnly:i||t.isSubmitting,tabIndex:a,onFocus:()=>t.setFieldTouched(n),sc:new(he())(t.values[n]),placeholder:new(he())(o),onChange:e=>t.setFieldValue(n,null==e?void 0:e.toString()),...c})}function Ci(e){var t,n;let{formik:r,title:i,name:a,withStatusError:o=!1,className:l}=e,s=r.errors[a]&&r.touched[a]||o&&(null===(t=r.status)||void 0===t?void 0:t.error),u=r.errors[a]||o&&(null===(n=r.status)||void 0===n?void 0:n.error);return(i||s)&&(0,ea.jsxs)("div",{className:(0,eW.cx)("flex justify-between items-center gap-4",l),children:[i?(0,ea.jsx)(dg,{htmlFor:a,children:i}):(0,ea.jsx)("div",{}),s&&(0,ea.jsx)(nw,{size:"14",color:"red",children:u})]})}function Ca(e){let{children:t,...n}=e;return(0,ea.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,ea.jsx)(Ci,{...n}),t]})}function Co(e){var t;let{formik:n,size:r="medium",variant:i="accent",withStatusError:a=!0,children:o}=e;return(0,ea.jsxs)(ea.Fragment,{children:[a&&(null===(t=n.status)||void 0===t?void 0:t.error)&&(0,ea.jsx)(nw,{color:"red",children:n.status.error}),(0,ea.jsx)(s_,{size:r,variant:i,state:n.isSubmitting?"waiting":void 0,type:"submit",children:n.isSubmitting?(0,ea.jsx)(kQ,{}):o})]})}let Cl="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function Cs(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function Cu(e){return"nodeType"in e}function Cc(e){var t,n;return e?Cs(e)?e:Cu(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function Cd(e){let{Document:t}=Cc(e);return e instanceof t}function Cf(e){return!Cs(e)&&e instanceof Cc(e).HTMLElement}function Ch(e){return e instanceof Cc(e).SVGElement}function Cp(e){return e?Cs(e)?e.document:Cu(e)?Cd(e)?e:Cf(e)||Ch(e)?e.ownerDocument:document:document:document}let Cm=Cl?eo.useLayoutEffect:eo.useEffect;function Cg(e){let t=(0,eo.useRef)(e);return Cm(()=>{t.current=e}),(0,eo.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;r{n.current!==e&&(n.current=e)},t),n}function Cy(e,t){let n=(0,eo.useRef)();return(0,eo.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function Cx(e){let t=Cg(e),n=(0,eo.useRef)(null),r=(0,eo.useCallback)(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,r]}function Cb(e){let t=(0,eo.useRef)();return(0,eo.useEffect)(()=>{t.current=e},[e]),t.current}let Cw={};function Cj(e,t){return(0,eo.useMemo)(()=>{if(t)return t;let n=null==Cw[e]?0:Cw[e]+1;return Cw[e]=n,e+"-"+n},[e,t])}function Ck(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i{for(let[r,i]of Object.entries(n)){let n=t[r];null!=n&&(t[r]=n+e*i)}return t},{...t})}}let CE=Ck(1),CS=Ck(-1);function CC(e){if(!e)return!1;let{KeyboardEvent:t}=Cc(e.target);return t&&e instanceof t}function CM(e){if(function(e){if(!e)return!1;let{TouchEvent:t}=Cc(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return"clientX"in e&&"clientY"in e?{x:e.clientX,y:e.clientY}:null}let CP=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[CP.Translate.toString(e),CP.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),C_="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]",CO={display:"none"};function CT(e){let{id:t,value:n}=e;return eo.createElement("div",{id:t,style:CO},n)}function CA(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return eo.createElement("div",{id:t,style:{position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}let CN=(0,eo.createContext)(null),CR={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},CD={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function CL(e){let{announcements:t=CD,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=CR}=e,{announce:a,announcement:o}=function(){let[e,t]=(0,eo.useState)("");return{announce:(0,eo.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),l=Cj("DndLiveRegion"),[s,u]=(0,eo.useState)(!1);if((0,eo.useEffect)(()=>{u(!0)},[]),!function(e){let t=(0,eo.useContext)(CN);(0,eo.useEffect)(()=>{if(!t)throw Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}((0,eo.useMemo)(()=>({onDragStart(e){let{active:n}=e;a(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&a(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;a(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;a(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;a(t.onDragCancel({active:n,over:r}))}}),[a,t])),!s)return null;let c=eo.createElement(eo.Fragment,null,eo.createElement(CT,{id:r,value:i.draggable}),eo.createElement(CA,{id:l,announcement:o}));return n?(0,tD.createPortal)(c,n):c}function CZ(){}function CF(e,t){return(0,eo.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}(w=Y||(Y={})).DragStart="dragStart",w.DragMove="dragMove",w.DragEnd="dragEnd",w.DragCancel="dragCancel",w.DragOver="dragOver",w.RegisterDroppable="registerDroppable",w.SetDroppableDisabled="setDroppableDisabled",w.UnregisterDroppable="unregisterDroppable";let Cz=Object.freeze({x:0,y:0});function CV(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}let CB=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=[];for(let e of r){let{id:r}=e,a=n.get(r);if(a){let n=function(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height);if(r0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(CV)};function CI(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Cz}let CH=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r({...e,top:e.top+1*t.y,bottom:e.bottom+1*t.y,left:e.left+1*t.x,right:e.right+1*t.x}),{...e})};function CU(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}let CW={ignoreTransform:!1};function Cq(e,t){void 0===t&&(t=CW);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=Cc(e).getComputedStyle(e);t&&(n=function(e,t,n){let r=CU(t);if(!r)return e;let{scaleX:i,scaleY:a,x:o,y:l}=r,s=e.left-o-(1-i)*parseFloat(n),u=e.top-l-(1-a)*parseFloat(n.slice(n.indexOf(" ")+1)),c=i?e.width/i:e.width,d=a?e.height/a:e.height;return{width:c,height:d,top:u,right:s+c,bottom:u+d,left:s}}(n,t,r))}let{top:r,left:i,width:a,height:o,bottom:l,right:s}=n;return{top:r,left:i,width:a,height:o,bottom:l,right:s}}function C$(e){return Cq(e,{ignoreTransform:!0})}function CK(e,t){let n=[];return e?function r(i){var a;if(null!=t&&n.length>=t||!i)return n;if(Cd(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!Cf(i)||Ch(i)||n.includes(i))return n;let o=Cc(e).getComputedStyle(i);return(i!==e&&function(e,t){void 0===t&&(t=Cc(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{let r=t[e];return"string"==typeof r&&n.test(r)})}(i,o)&&n.push(i),void 0===(a=o)&&(a=Cc(i).getComputedStyle(i)),"fixed"===a.position)?n:r(i.parentNode)}(e):n}function CY(e){let[t]=CK(e,1);return null!=t?t:null}function CX(e){return Cl&&e?Cs(e)?e:Cu(e)?Cd(e)||e===Cp(e).scrollingElement?window:Cf(e)?e:null:null:null}function CG(e){return Cs(e)?e.scrollX:e.scrollLeft}function CJ(e){return Cs(e)?e.scrollY:e.scrollTop}function CQ(e){return{x:CG(e),y:CJ(e)}}function C0(e){return!!Cl&&!!e&&e===document.scrollingElement}function C1(e){let t={x:0,y:0},n=C0(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y;return{isTop:i,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}(j=X||(X={}))[j.Forward=1]="Forward",j[j.Backward=-1]="Backward";let C2={x:.2,y:.2};function C4(e){return e.reduce((e,t)=>CE(e,CQ(t)),Cz)}function C3(e,t){if(void 0===t&&(t=Cq),!e)return;let{top:n,left:r,bottom:i,right:a}=t(e);CY(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}let C5=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+CG(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+CJ(t),0)}]];class C6{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let n=CK(t),r=C4(n);for(let[t,i,a]of(this.rect={...e},this.width=e.width,this.height=e.height,C5))for(let e of i)Object.defineProperty(this,e,{get:()=>{let i=a(n),o=r[t]-i;return this.rect[e]+o},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class C8{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function C7(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}function C9(e){e.preventDefault()}function Me(e){e.stopPropagation()}(k=G||(G={})).Click="click",k.DragStart="dragstart",k.Keydown="keydown",k.ContextMenu="contextmenu",k.Resize="resize",k.SelectionChange="selectionchange",k.VisibilityChange="visibilitychange",(E=J||(J={})).Space="Space",E.Down="ArrowDown",E.Right="ArrowRight",E.Left="ArrowLeft",E.Up="ArrowUp",E.Esc="Escape",E.Enter="Enter";let Mt={start:[J.Space,J.Enter],cancel:[J.Esc],end:[J.Space,J.Enter]},Mn=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case J.Right:return{...n,x:n.x+25};case J.Left:return{...n,x:n.x-25};case J.Down:return{...n,y:n.y+25};case J.Up:return{...n,y:n.y-25}}};class Mr{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new C8(Cp(t)),this.windowListeners=new C8(Cc(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(G.Resize,this.handleCancel),this.windowListeners.add(G.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(G.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&C3(n),t(Cz)}handleKeyDown(e){if(CC(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:i=Mt,coordinateGetter:a=Mn,scrollBehavior:o="smooth"}=r,{code:l}=e;if(i.end.includes(l)){this.handleEnd(e);return}if(i.cancel.includes(l)){this.handleCancel(e);return}let{collisionRect:s}=n.current,u=s?{x:s.left,y:s.top}:Cz;this.referenceCoordinates||(this.referenceCoordinates=u);let c=a(e,{active:t,context:n.current,currentCoordinates:u});if(c){let t=CS(c,u),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(let n of i){let i=e.code,{isTop:a,isRight:l,isLeft:s,isBottom:u,maxScroll:d,minScroll:f}=C1(n),h=function(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}(n),p={x:Math.min(i===J.Right?h.right-h.width/2:h.right,Math.max(i===J.Right?h.left:h.left+h.width/2,c.x)),y:Math.min(i===J.Down?h.bottom-h.height/2:h.bottom,Math.max(i===J.Down?h.top:h.top+h.height/2,c.y))},m=i===J.Right&&!l||i===J.Left&&!s,g=i===J.Down&&!u||i===J.Up&&!a;if(m&&p.x!==c.x){let e=n.scrollLeft+t.x,a=i===J.Right&&e<=d.x||i===J.Left&&e>=f.x;if(a&&!t.y){n.scrollTo({left:e,behavior:o});return}a?r.x=n.scrollLeft-e:r.x=i===J.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:o});break}if(g&&p.y!==c.y){let e=n.scrollTop+t.y,a=i===J.Down&&e<=d.y||i===J.Up&&e>=f.y;if(a&&!t.x){n.scrollTo({top:e,behavior:o});return}a?r.y=n.scrollTop-e:r.y=i===J.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:o});break}}this.handleMove(e,CE(CS(c,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function Mi(e){return!!(e&&"distance"in e)}function Ma(e){return!!(e&&"delay"in e)}Mr.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=Mt,onActivation:i}=t,{active:a}=n,{code:o}=e.nativeEvent;if(r.start.includes(o)){let t=a.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==i||i({event:e.nativeEvent}),!0)}return!1}}];class Mo{constructor(e,t,n){var r;void 0===n&&(n=function(e){let{EventTarget:t}=Cc(e);return e instanceof t?e:Cp(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:i}=e,{target:a}=i;this.props=e,this.events=t,this.document=Cp(a),this.documentListeners=new C8(this.document),this.listeners=new C8(n),this.windowListeners=new C8(Cc(a)),this.initialCoordinates=null!=(r=CM(i))?r:Cz,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(G.Resize,this.handleCancel),this.windowListeners.add(G.DragStart,C9),this.windowListeners.add(G.VisibilityChange,this.handleCancel),this.windowListeners.add(G.ContextMenu,C9),this.documentListeners.add(G.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Ma(t)){this.timeoutId=setTimeout(this.handleStart,t.delay);return}if(Mi(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(G.Click,Me,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(G.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:n,initialCoordinates:r,props:i}=this,{onMove:a,options:{activationConstraint:o}}=i;if(!r)return;let l=null!=(t=CM(e))?t:Cz,s=CS(r,l);if(!n&&o){if(Mi(o)){if(null!=o.tolerance&&C7(s,o.tolerance))return this.handleCancel();if(C7(s,o.distance))return this.handleStart()}return Ma(o)&&C7(s,o.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),a(l)}handleEnd(){let{onEnd:e}=this.props;this.detach(),e()}handleCancel(){let{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===J.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let Ml={move:{name:"pointermove"},end:{name:"pointerup"}};class Ms extends Mo{constructor(e){let{event:t}=e;super(e,Ml,Cp(t.target))}}Ms.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!!n.isPrimary&&0===n.button&&(null==r||r({event:n}),!0)}}];let Mu={move:{name:"mousemove"},end:{name:"mouseup"}};(S=Q||(Q={}))[S.RightClick=2]="RightClick";class Mc extends Mo{constructor(e){super(e,Mu,Cp(e.event.target))}}Mc.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==Q.RightClick&&(null==r||r({event:n}),!0)}}];let Md={move:{name:"touchmove"},end:{name:"touchend"}};class Mf extends Mo{constructor(e){super(e,Md)}static setup(){return window.addEventListener(Md.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(Md.move.name,e)};function e(){}}}Mf.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:i}=n;return!(i.length>1)&&(null==r||r({event:n}),!0)}}],(C=ee||(ee={}))[C.Pointer=0]="Pointer",C[C.DraggableRect=1]="DraggableRect",(M=et||(et={}))[M.TreeOrder=0]="TreeOrder",M[M.ReversedTreeOrder=1]="ReversedTreeOrder";let Mh={x:{[X.Backward]:!1,[X.Forward]:!1},y:{[X.Backward]:!1,[X.Forward]:!1}};(P=en||(en={}))[P.Always=0]="Always",P[P.BeforeDragging=1]="BeforeDragging",P[P.WhileDragging=2]="WhileDragging",(er||(er={})).Optimized="optimized";let Mp=new Map;function Mm(e,t){return Cy(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function Mg(e){let{callback:t,disabled:n}=e,r=Cg(t),i=(0,eo.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,eo.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function Mv(e){return new C6(Cq(e),e)}function My(e,t,n){void 0===t&&(t=Mv);let[r,i]=(0,eo.useReducer)(function(r){if(!e)return null;if(!1===e.isConnected){var i;return null!=(i=null!=r?r:n)?i:null}let a=t(e);return JSON.stringify(r)===JSON.stringify(a)?r:a},null),a=function(e){let{callback:t,disabled:n}=e,r=Cg(t),i=(0,eo.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,eo.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){i();break}}}}),o=Mg({callback:i});return Cm(()=>{i(),e?(null==o||o.observe(e),null==a||a.observe(document.body,{childList:!0,subtree:!0})):(null==o||o.disconnect(),null==a||a.disconnect())},[e]),r}let Mx=[];function Mb(e,t){void 0===t&&(t=[]);let n=(0,eo.useRef)(null);return(0,eo.useEffect)(()=>{n.current=null},t),(0,eo.useEffect)(()=>{let t=e!==Cz;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?CS(e,n.current):Cz}function Mw(e){return(0,eo.useMemo)(()=>e?function(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null,[e])}let Mj=[];function Mk(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return Cf(t)?t:e}let ME=[{sensor:Ms,options:{}},{sensor:Mr,options:{}}],MS={current:{}},MC={draggable:{measure:C$},droppable:{measure:C$,strategy:en.WhileDragging,frequency:er.Optimized},dragOverlay:{measure:Cq}};class MM extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}let MP={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new MM,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:CZ},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:MC,measureDroppableContainers:CZ,windowRect:null,measuringScheduled:!1},M_={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:CZ,draggableNodes:new Map,over:null,measureDroppableContainers:CZ},MO=(0,eo.createContext)(M_),MT=(0,eo.createContext)(MP);function MA(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new MM}}}function MN(e,t){switch(t.type){case Y.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Y.DragMove:if(!e.draggable.active)return e;return{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Y.DragEnd:case Y.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Y.RegisterDroppable:{let{element:n}=t,{id:r}=n,i=new MM(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case Y.SetDroppableDisabled:{let{id:n,key:r,disabled:i}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;let o=new MM(e.droppable.containers);return o.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case Y.UnregisterDroppable:{let{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let a=new MM(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function MR(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:i}=(0,eo.useContext)(MO),a=Cb(r),o=Cb(null==n?void 0:n.id);return(0,eo.useEffect)(()=>{if(!t&&!r&&a&&null!=o){if(!CC(a)||document.activeElement===a.target)return;let e=i.get(o);if(!e)return;let{activatorNode:t,node:n}=e;(t.current||n.current)&&requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=e.matches(C_)?e:e.querySelector(C_);if(t){t.focus();break}}})}},[r,t,i,o,a]),null}function MD(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}let ML=(0,eo.createContext)({...Cz,scaleX:1,scaleY:1});(_=ei||(ei={}))[_.Uninitialized=0]="Uninitialized",_[_.Initializing=1]="Initializing",_[_.Initialized=2]="Initialized";let MZ=(0,eo.memo)(function(e){var t,n,r,i,a,o;let{id:l,accessibility:s,autoScroll:u=!0,children:c,sensors:d=ME,collisionDetection:f=CB,measuring:h,modifiers:p,...m}=e,[g,v]=(0,eo.useReducer)(MN,void 0,MA),[y,x]=function(){let[e]=(0,eo.useState)(()=>new Set),t=(0,eo.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,eo.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)})},[e]),t]}(),[b,w]=(0,eo.useState)(ei.Uninitialized),j=b===ei.Initialized,{draggable:{active:k,nodes:E,translate:S},droppable:{containers:C}}=g,M=k?E.get(k):null,P=(0,eo.useRef)({initial:null,translated:null}),_=(0,eo.useMemo)(()=>{var e;return null!=k?{id:k,data:null!=(e=null==M?void 0:M.data)?e:MS,rect:P}:null},[k,M]),O=(0,eo.useRef)(null),[T,A]=(0,eo.useState)(null),[N,R]=(0,eo.useState)(null),D=Cv(m,Object.values(m)),L=Cj("DndDescribedBy",l),Z=(0,eo.useMemo)(()=>C.getEnabled(),[C]),F=(0,eo.useMemo)(()=>({draggable:{...MC.draggable,...null==h?void 0:h.draggable},droppable:{...MC.droppable,...null==h?void 0:h.droppable},dragOverlay:{...MC.dragOverlay,...null==h?void 0:h.dragOverlay}}),[null==h?void 0:h.draggable,null==h?void 0:h.droppable,null==h?void 0:h.dragOverlay]),{droppableRects:z,measureDroppableContainers:V,measuringScheduled:B}=function(e,t){let{dragging:n,dependencies:r,config:i}=t,[a,o]=(0,eo.useState)(null),{frequency:l,measure:s,strategy:u}=i,c=(0,eo.useRef)(e),d=function(){switch(u){case en.Always:return!1;case en.BeforeDragging:return n;default:return!n}}(),f=Cv(d),h=(0,eo.useCallback)(function(e){void 0===e&&(e=[]),f.current||o(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[f]),p=(0,eo.useRef)(null),m=Cy(t=>{if(d&&!n)return Mp;if(!t||t===Mp||c.current!==e||null!=a){let t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new C6(s(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,a,n,d,s]);return(0,eo.useEffect)(()=>{c.current=e},[e]),(0,eo.useEffect)(()=>{d||h()},[n,d]),(0,eo.useEffect)(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),(0,eo.useEffect)(()=>{d||"number"!=typeof l||null!==p.current||(p.current=setTimeout(()=>{h(),p.current=null},l))},[l,d,h,...r]),{droppableRects:m,measureDroppableContainers:h,measuringScheduled:null!=a}}(Z,{dragging:j,dependencies:[S.x,S.y],config:F.droppable}),I=function(e,t){let n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return Cy(e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null},[r,t])}(E,k),H=(0,eo.useMemo)(()=>N?CM(N):null,[N]),U=function(){let e=(null==T?void 0:T.autoScrollEnabled)===!1,t="object"==typeof u?!1===u.enabled:!1===u,n=j&&!e&&!t;return"object"==typeof u?{...u,enabled:n}:{enabled:n}}(),W=Mm(I,F.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e,a=(0,eo.useRef)(!1),{x:o,y:l}="boolean"==typeof i?{x:i,y:i}:i;Cm(()=>{if(!o&&!l||!t){a.current=!1;return}if(a.current||!r)return;let e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;let i=CI(n(e),r);if(o||(i.x=0),l||(i.y=0),a.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=CY(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,o,l,r,n])}({activeNode:k?E.get(k):null,config:U.layoutShiftCompensation,initialRect:W,measure:F.draggable.measure});let q=My(I,F.draggable.measure,W),$=My(I?I.parentElement:null),K=(0,eo.useRef)({activatorEvent:null,active:null,activeNode:I,collisionRect:null,collisions:null,droppableRects:z,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:C,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),G=C.getNodeFor(null==(t=K.current.over)?void 0:t.id),J=function(e){let{measure:t}=e,[n,r]=(0,eo.useState)(null),i=Mg({callback:(0,eo.useCallback)(e=>{for(let{target:n}of e)if(Cf(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),[a,o]=Cx((0,eo.useCallback)(e=>{let n=Mk(e);null==i||i.disconnect(),n&&(null==i||i.observe(n)),r(n?t(n):null)},[t,i]));return(0,eo.useMemo)(()=>({nodeRef:a,rect:n,setRef:o}),[n,a,o])}({measure:F.dragOverlay.measure}),Q=null!=(n=J.nodeRef.current)?n:I,er=j?null!=(r=J.rect)?r:q:null,ea=!!(J.nodeRef.current&&J.rect),el=function(e){let t=Mm(e);return CI(e,t)}(ea?null:q),es=Mw(Q?Cc(Q):null),eu=function(e){let t=(0,eo.useRef)(e),n=Cy(n=>e?n&&n!==Mx&&e&&t.current&&e.parentNode===t.current.parentNode?n:CK(e):Mx,[e]);return(0,eo.useEffect)(()=>{t.current=e},[e]),n}(j?null!=G?G:I:null),ec=function(e,t){void 0===t&&(t=Cq);let[n]=e,r=Mw(n?Cc(n):null),[i,a]=(0,eo.useReducer)(function(){return e.length?e.map(e=>C0(e)?r:new C6(t(e),e)):Mj},Mj),o=Mg({callback:a});return e.length>0&&i===Mj&&a(),Cm(()=>{e.length?e.forEach(e=>null==o?void 0:o.observe(e)):(null==o||o.disconnect(),a())},[e]),i}(eu),ed=MD(p,{transform:{x:S.x-el.x,y:S.y-el.y,scaleX:1,scaleY:1},activatorEvent:N,active:_,activeNodeRect:q,containerNodeRect:$,draggingNodeRect:er,over:K.current.over,overlayNodeRect:J.rect,scrollableAncestors:eu,scrollableAncestorRects:ec,windowRect:es}),ef=H?CE(H,S):null,eh=function(e){let[t,n]=(0,eo.useState)(null),r=(0,eo.useRef)(e),i=(0,eo.useCallback)(e=>{let t=CX(e.target);t&&n(e=>e?(e.set(t,CQ(t)),new Map(e)):null)},[]);return(0,eo.useEffect)(()=>{let t=r.current;if(e!==t){a(t);let o=e.map(e=>{let t=CX(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,CQ(t)]):null}).filter(e=>null!=e);n(o.length?new Map(o):null),r.current=e}return()=>{a(e),a(t)};function a(e){e.forEach(e=>{let t=CX(e);null==t||t.removeEventListener("scroll",i)})}},[i,e]),(0,eo.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>CE(e,t),Cz):C4(e):Cz,[e,t])}(eu),ep=Mb(eh),em=Mb(eh,[q]),eg=CE(ed,ep),ev=er?CH(er,ed):null,ey=_&&ev?f({active:_,collisionRect:ev,droppableRects:z,droppableContainers:Z,pointerCoordinates:ef}):null,ex=function(e,t){if(!e||0===e.length)return null;let[n]=e;return t?n[t]:n}(ey,"id"),[eb,ew]=(0,eo.useState)(null),ej=(a=ea?ed:CE(ed,em),o=null!=(i=null==eb?void 0:eb.rect)?i:null,{...a,scaleX:o&&q?o.width/q.width:1,scaleY:o&&q?o.height/q.height:1}),ek=(0,eo.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(null==O.current)return;let i=E.get(O.current);if(!i)return;let a=e.nativeEvent,o=new n({active:O.current,activeNode:i,event:a,options:r,context:K,onStart(e){let t=O.current;if(null==t)return;let n=E.get(t);if(!n)return;let{onDragStart:r}=D.current,i={active:{id:t,data:n.data,rect:P}};(0,tD.unstable_batchedUpdates)(()=>{null==r||r(i),w(ei.Initializing),v({type:Y.DragStart,initialCoordinates:e,active:t}),y({type:"onDragStart",event:i})})},onMove(e){v({type:Y.DragMove,coordinates:e})},onEnd:l(Y.DragEnd),onCancel:l(Y.DragCancel)});function l(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=K.current,o=null;if(t&&i){let{cancelDrop:l}=D.current;o={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===Y.DragEnd&&"function"==typeof l&&await Promise.resolve(l(o))&&(e=Y.DragCancel)}O.current=null,(0,tD.unstable_batchedUpdates)(()=>{v({type:e}),w(ei.Uninitialized),ew(null),A(null),R(null);let t=e===Y.DragEnd?"onDragEnd":"onDragCancel";if(o){let e=D.current[t];null==e||e(o),y({type:t,event:o})}})}}(0,tD.unstable_batchedUpdates)(()=>{A(o),R(e.nativeEvent)})},[E]),eE=(0,eo.useCallback)((e,t)=>(n,r)=>{let i=n.nativeEvent,a=E.get(r);null!==O.current||!a||i.dndKit||i.defaultPrevented||!0!==e(n,t.options,{active:a})||(i.dndKit={capturedBy:t.sensor},O.current=r,ek(n,t))},[E,ek]),eS=(0,eo.useMemo)(()=>d.reduce((e,t)=>{let{sensor:n}=t;return[...e,...n.activators.map(e=>({eventName:e.eventName,handler:eE(e.handler,t)}))]},[]),[d,eE]);(0,eo.useEffect)(()=>{if(!Cl)return;let e=d.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(let t of e)null==t||t()}},d.map(e=>{let{sensor:t}=e;return t})),Cm(()=>{q&&b===ei.Initializing&&w(ei.Initialized)},[q,b]),(0,eo.useEffect)(()=>{let{onDragMove:e}=D.current,{active:t,activatorEvent:n,collisions:r,over:i}=K.current;if(!t||!n)return;let a={active:t,activatorEvent:n,collisions:r,delta:{x:eg.x,y:eg.y},over:i};(0,tD.unstable_batchedUpdates)(()=>{null==e||e(a),y({type:"onDragMove",event:a})})},[eg.x,eg.y]),(0,eo.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=K.current;if(!e||null==O.current||!t||!i)return;let{onDragOver:a}=D.current,o=r.get(ex),l=o&&o.rect.current?{id:o.id,rect:o.rect.current,data:o.data,disabled:o.disabled}:null,s={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:l};(0,tD.unstable_batchedUpdates)(()=>{ew(l),null==a||a(s),y({type:"onDragOver",event:s})})},[ex]),Cm(()=>{K.current={activatorEvent:N,active:_,activeNode:I,collisionRect:ev,collisions:ey,droppableRects:z,draggableNodes:E,draggingNode:Q,draggingNodeRect:er,droppableContainers:C,over:eb,scrollableAncestors:eu,scrollAdjustedTranslate:eg},P.current={initial:er,translated:ev}},[_,I,ey,ev,E,Q,er,z,C,eb,eu,eg]),function(e){let{acceleration:t,activator:n=ee.Pointer,canScroll:r,draggingRect:i,enabled:a,interval:o=5,order:l=et.TreeOrder,pointerCoordinates:s,scrollableAncestors:u,scrollableAncestorRects:c,delta:d,threshold:f}=e,h=function(e){let{delta:t,disabled:n}=e,r=Cb(t);return Cy(e=>{if(n||!r||!e)return Mh;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[X.Backward]:e.x[X.Backward]||-1===i.x,[X.Forward]:e.x[X.Forward]||1===i.x},y:{[X.Backward]:e.y[X.Backward]||-1===i.y,[X.Forward]:e.y[X.Forward]||1===i.y}}},[n,t,r])}({delta:d,disabled:!a}),[p,m]=function(){let e=(0,eo.useRef)(null);return[(0,eo.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,eo.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}(),g=(0,eo.useRef)({x:0,y:0}),v=(0,eo.useRef)({x:0,y:0}),y=(0,eo.useMemo)(()=>{switch(n){case ee.Pointer:return s?{top:s.y,bottom:s.y,left:s.x,right:s.x}:null;case ee.DraggableRect:return i}},[n,i,s]),x=(0,eo.useRef)(null),b=(0,eo.useCallback)(()=>{let e=x.current;if(!e)return;let t=g.current.x*v.current.x,n=g.current.y*v.current.y;e.scrollBy(t,n)},[]),w=(0,eo.useMemo)(()=>l===et.TreeOrder?[...u].reverse():u,[l,u]);(0,eo.useEffect)(()=>{if(!a||!u.length||!y){m();return}for(let e of w){if((null==r?void 0:r(e))===!1)continue;let n=c[u.indexOf(e)];if(!n)continue;let{direction:i,speed:a}=function(e,t,n,r,i){let{top:a,left:o,right:l,bottom:s}=n;void 0===r&&(r=10),void 0===i&&(i=C2);let{isTop:u,isBottom:c,isLeft:d,isRight:f}=C1(e),h={x:0,y:0},p={x:0,y:0},m={height:t.height*i.y,width:t.width*i.x};return!u&&a<=t.top+m.height?(h.y=X.Backward,p.y=r*Math.abs((t.top+m.height-a)/m.height)):!c&&s>=t.bottom-m.height&&(h.y=X.Forward,p.y=r*Math.abs((t.bottom-m.height-s)/m.height)),!f&&l>=t.right-m.width?(h.x=X.Forward,p.x=r*Math.abs((t.right-m.width-l)/m.width)):!d&&o<=t.left+m.width&&(h.x=X.Backward,p.x=r*Math.abs((t.left+m.width-o)/m.width)),{direction:h,speed:p}}(e,n,y,t,f);for(let e of["x","y"])h[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0){m(),x.current=e,p(b,o),g.current=a,v.current=i;return}}g.current={x:0,y:0},v.current={x:0,y:0},m()},[t,b,r,m,a,o,JSON.stringify(y),JSON.stringify(h),p,u,w,c,JSON.stringify(f)])}({...U,delta:S,draggingRect:ev,pointerCoordinates:ef,scrollableAncestors:eu,scrollableAncestorRects:ec});let eC=(0,eo.useMemo)(()=>({active:_,activeNode:I,activeNodeRect:q,activatorEvent:N,collisions:ey,containerNodeRect:$,dragOverlay:J,draggableNodes:E,droppableContainers:C,droppableRects:z,over:eb,measureDroppableContainers:V,scrollableAncestors:eu,scrollableAncestorRects:ec,measuringConfiguration:F,measuringScheduled:B,windowRect:es}),[_,I,q,N,ey,$,J,E,C,z,eb,V,eu,ec,F,B,es]),eM=(0,eo.useMemo)(()=>({activatorEvent:N,activators:eS,active:_,activeNodeRect:q,ariaDescribedById:{draggable:L},dispatch:v,draggableNodes:E,over:eb,measureDroppableContainers:V}),[N,eS,_,q,v,L,E,eb,V]);return eo.createElement(CN.Provider,{value:x},eo.createElement(MO.Provider,{value:eM},eo.createElement(MT.Provider,{value:eC},eo.createElement(ML.Provider,{value:ej},c)),eo.createElement(MR,{disabled:(null==s?void 0:s.restoreFocus)===!1})),eo.createElement(CL,{...s,hiddenTextDescribedById:L}))}),MF=(0,eo.createContext)(null),Mz="button",MV={timeout:25};function MB(e){let{animation:t,children:n}=e,[r,i]=(0,eo.useState)(null),[a,o]=(0,eo.useState)(null),l=Cb(n);return n||r||!l||i(l),Cm(()=>{if(!a)return;let e=null==r?void 0:r.key,n=null==r?void 0:r.props.id;if(null==e||null==n){i(null);return}Promise.resolve(t(n,a)).then(()=>{i(null)})},[t,r,a]),eo.createElement(eo.Fragment,null,n,r?(0,eo.cloneElement)(r,{ref:o}):null)}let MI={x:0,y:0,scaleX:1,scaleY:1};function MH(e){let{children:t}=e;return eo.createElement(MO.Provider,{value:M_},eo.createElement(ML.Provider,{value:MI},t))}let MU={position:"fixed",touchAction:"none"},MW=e=>CC(e)?"transform 250ms ease":void 0,Mq=(0,eo.forwardRef)((e,t)=>{let{as:n,activatorEvent:r,adjustScale:i,children:a,className:o,rect:l,style:s,transform:u,transition:c=MW}=e;if(!l)return null;let d=i?u:{...u,scaleX:1,scaleY:1},f={...MU,width:l.width,height:l.height,top:l.top,left:l.left,transform:CP.Transform.toString(d),transformOrigin:i&&r?function(e,t){let n=CM(e);if(!n)return"0 0";let r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}(r,l):void 0,transition:"function"==typeof c?c(r):c,...s};return eo.createElement(n,{className:o,style:f,ref:t},a)}),M$={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:CP.Transform.toString(t)},{transform:CP.Transform.toString(n)}]},sideEffects:(O={styles:{active:{opacity:"0"}}},e=>{let{active:t,dragOverlay:n}=e,r={},{styles:i,className:a}=O;if(null!=i&&i.active)for(let[e,n]of Object.entries(i.active))void 0!==n&&(r[e]=t.node.style.getPropertyValue(e),t.node.style.setProperty(e,n));if(null!=i&&i.dragOverlay)for(let[e,t]of Object.entries(i.dragOverlay))void 0!==t&&n.node.style.setProperty(e,t);return null!=a&&a.active&&t.node.classList.add(a.active),null!=a&&a.dragOverlay&&n.node.classList.add(a.dragOverlay),function(){for(let[e,n]of Object.entries(r))t.node.style.setProperty(e,n);null!=a&&a.active&&t.node.classList.remove(a.active)}})},MK=0,MY=eo.memo(e=>{var t;let{adjustScale:n=!1,children:r,dropAnimation:i,style:a,transition:o,modifiers:l,wrapperElement:s="div",className:u,zIndex:c=999}=e,{activatorEvent:d,active:f,activeNodeRect:h,containerNodeRect:p,draggableNodes:m,droppableContainers:g,dragOverlay:v,over:y,measuringConfiguration:x,scrollableAncestors:b,scrollableAncestorRects:w,windowRect:j}=(0,eo.useContext)(MT),k=(0,eo.useContext)(ML),E=(t=null==f?void 0:f.id,(0,eo.useMemo)(()=>{if(null!=t)return++MK},[t])),S=MD(l,{activatorEvent:d,active:f,activeNodeRect:h,containerNodeRect:p,draggingNodeRect:v.rect,over:y,overlayNodeRect:v.rect,scrollableAncestors:b,scrollableAncestorRects:w,transform:k,windowRect:j}),C=Mm(h),M=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return Cg((e,a)=>{if(null===t)return;let o=n.get(e);if(!o)return;let l=o.node.current;if(!l)return;let s=Mk(a);if(!s)return;let{transform:u}=Cc(a).getComputedStyle(a),c=CU(u);if(!c)return;let d="function"==typeof t?t:function(e){let{duration:t,easing:n,sideEffects:r,keyframes:i}={...M$,...e};return e=>{let{active:a,dragOverlay:o,transform:l,...s}=e;if(!t)return;let u={x:o.rect.left-a.rect.left,y:o.rect.top-a.rect.top},c={scaleX:1!==l.scaleX?a.rect.width*l.scaleX/o.rect.width:1,scaleY:1!==l.scaleY?a.rect.height*l.scaleY/o.rect.height:1},d={x:l.x-u.x,y:l.y-u.y,...c},f=i({...s,active:a,dragOverlay:o,transform:{initial:l,final:d}}),[h]=f,p=f[f.length-1];if(JSON.stringify(h)===JSON.stringify(p))return;let m=null==r?void 0:r({active:a,dragOverlay:o,...s}),g=o.node.animate(f,{duration:t,easing:n,fill:"forwards"});return new Promise(e=>{g.onfinish=()=>{null==m||m(),e()}})}}(t);return C3(l,i.draggable.measure),d({active:{id:e,data:o.data,node:l,rect:i.draggable.measure(l)},draggableNodes:n,dragOverlay:{node:a,rect:i.dragOverlay.measure(s)},droppableContainers:r,measuringConfiguration:i,transform:c})})}({config:i,draggableNodes:m,droppableContainers:g,measuringConfiguration:x}),P=C?v.setRef:void 0;return eo.createElement(MH,null,eo.createElement(MB,{animation:M},f&&E?eo.createElement(Mq,{key:E,id:f.id,ref:P,as:s,activatorEvent:d,adjustScale:n,className:u,transition:o,rect:C,style:{zIndex:c,...a},transform:S},r):null))});function MX(){return(0,eo.forwardRef)((e,t)=>{let{data:n,style:r,attributes:i,listeners:a,context:o,columns:l,rowSize:s="default",focusId:u,focusColor:c="default",getCellClassNames:d,getContentClassNames:f,className:h}=e;return(0,ea.jsx)("tr",{ref:t,...i,...a,style:r,id:n.id,"data-testid":n.id,onClick:n.onClick,className:(0,eW.cx)("border-b border-gray-200/50 dark:border-graydark-100",n.onClick?"cursor-pointer":"",n.className,h),children:l.map((e,t)=>{let{id:r,render:i,contentClassName:a,cellClassName:l,rowCellClassName:h,rowContentClassName:p}=e;return(0,ea.jsx)("td",{"data-testid":r,className:(0,eW.cx)(d(t,(0,eW.cx)(l,h),!1),u&&u===n.id?["shadow-border-y","first:shadow-border-tlb","last:shadow-border-trb"]:"","default"===c?"!shadow-blue-900 dark:!shadow-blue-200":"","blue"===c?"!shadow-blue-500 dark:!shadow-blue-400":"","red"===c?"!shadow-red-500 dark:!shadow-red-400":"","amber"===c?"!shadow-amber-500 dark:!shadow-amber-500":"","green"===c?"!shadow-green-500 dark:!shadow-green-400":""),children:(0,ea.jsx)("div",{className:(0,eW.cx)(f(t,(0,eW.cx)(a,p)),"dense"===s?"h-[50px]":"default"===s?"h-[100px]":""),children:(0,ea.jsx)(i,{data:n,context:o})})},"".concat(r,"/").concat(n.id))})},n.id)})}function MG(e){let{data:t,context:n,columns:r,rowSize:i="default",focusId:a,focusColor:o="default",getCellClassNames:l,getContentClassNames:s}=e,{attributes:u,listeners:c,setNodeRef:d,transform:f}=function(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e,a=Cj("Droppable"),{activators:o,activatorEvent:l,active:s,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:f}=(0,eo.useContext)(MO),{role:h=Mz,roleDescription:p="draggable",tabIndex:m=0}=null!=i?i:{},g=(null==s?void 0:s.id)===t,v=(0,eo.useContext)(g?ML:MF),[y,x]=Cx(),[b,w]=Cx(),j=(0,eo.useMemo)(()=>o.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[o,t]),k=Cv(n);return Cm(()=>(d.set(t,{id:t,key:a,node:y,activatorNode:b,data:k}),()=>{let e=d.get(t);e&&e.key===a&&d.delete(t)}),[d,t]),{active:s,activatorEvent:l,activeNodeRect:u,attributes:(0,eo.useMemo)(()=>({role:h,tabIndex:m,"aria-disabled":r,"aria-pressed":!!g&&h===Mz||void 0,"aria-roledescription":p,"aria-describedby":c.draggable}),[r,h,m,g,p,c.draggable]),isDragging:g,listeners:r?void 0:j,node:y,over:f,setNodeRef:x,setActivatorNodeRef:w,transform:v}}({id:t.id}),h=f?{transform:"translate3d(".concat(f.x,"px, ").concat(f.y,"px, 0)")}:void 0,p=(0,eo.useMemo)(()=>MX(),[]);return(0,ea.jsx)(p,{ref:d,style:h,attributes:u,listeners:c,data:t,context:n,columns:r,rowSize:i,focusId:a,focusColor:o,getCellClassNames:l,getContentClassNames:s})}function MJ(e){let{data:t,context:n,columns:r,rowSize:i="default",focusId:a,focusColor:o="default",getCellClassNames:l,getContentClassNames:s}=e,{isOver:u,setNodeRef:c}=function(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e,a=Cj("Droppable"),{active:o,dispatch:l,over:s,measureDroppableContainers:u}=(0,eo.useContext)(MO),c=(0,eo.useRef)({disabled:n}),d=(0,eo.useRef)(!1),f=(0,eo.useRef)(null),h=(0,eo.useRef)(null),{disabled:p,updateMeasurementsFor:m,timeout:g}={...MV,...i},v=Cv(null!=m?m:r),y=Mg({callback:(0,eo.useCallback)(()=>{if(!d.current){d.current=!0;return}null!=h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{u(Array.isArray(v.current)?v.current:[v.current]),h.current=null},g)},[g]),disabled:p||!o}),[x,b]=Cx((0,eo.useCallback)((e,t)=>{y&&(t&&(y.unobserve(t),d.current=!1),e&&y.observe(e))},[y])),w=Cv(t);return(0,eo.useEffect)(()=>{y&&x.current&&(y.disconnect(),d.current=!1,y.observe(x.current))},[x,y]),Cm(()=>(l({type:Y.RegisterDroppable,element:{id:r,key:a,disabled:n,node:x,rect:f,data:w}}),()=>l({type:Y.UnregisterDroppable,key:a,id:r})),[r]),(0,eo.useEffect)(()=>{n!==c.current.disabled&&(l({type:Y.SetDroppableDisabled,id:r,key:a,disabled:n}),c.current.disabled=n)},[r,a,n,l]),{active:o,rect:f,isOver:(null==s?void 0:s.id)===r,node:x,over:s,setNodeRef:b}}({id:t.id}),d=(0,eo.useMemo)(()=>MX(),[]);return(0,ea.jsx)(d,{ref:c,className:u?"bg-blue-200/20 dark:bg-blue-300/20":"",data:t,context:n,columns:r,rowSize:i,focusId:a,focusColor:o,getCellClassNames:l,getContentClassNames:s})}function MQ(e){let{columns:t,data:n,context:r,sortField:i,sortDirection:a,sortableColumns:o,toggleSort:l,rowSize:s="default",pageSize:u,isLoading:c,emptyState:d,focusId:f,focusColor:h="default",onDragStart:p,onDragOver:m,onDragMove:g,onDragEnd:v,onDragCancel:y,draggingDatum:x,testId:b}=e,w="emptyState";!c||(null==n?void 0:n.length)||(w="skeleton"),(null==n?void 0:n.length)&&(w="currentData");let j=(0,eo.useCallback)((e,n,r)=>(0,eW.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]),k=(0,eo.useCallback)((e,t)=>(0,eW.cx)("flex items-center",t),[]),E=(0,eo.useMemo)(()=>MX(),[]),S=function(){for(var e=arguments.length,t=Array(e),n=0;n[...t].filter(e=>null!=e),[...t])}(CF(Mc,{activationConstraint:{distance:10}}),CF(Mf,{activationConstraint:{delay:250,tolerance:5}})),C=(0,eo.useMemo)(()=>t.some(e=>{let{summary:t}=e;return t&&t({context:r})}),[t,r]);return(0,ea.jsxs)(MZ,{sensors:S,onDragStart:p,onDragOver:m,onDragMove:g,onDragEnd:v,onDragCancel:y,children:[(0,ea.jsx)(MY,{children:x&&(0,ea.jsx)(nE,{className:"inline-block",children:(0,ea.jsx)("table",{children:(0,ea.jsx)(E,{className:"pointer-events-none",data:x,context:r,columns:t,rowSize:s,focusId:f,focusColor:h,getCellClassNames:j,getContentClassNames:k},x.id)})})}),(0,ea.jsxs)(nE,{children:[(0,ea.jsxs)("table",{"data-testid":b,"data-loading":"skeleton"===w,className:"relative z-10 table-auto border-collapse w-full",children:[(0,ea.jsxs)("thead",{className:(0,eW.cx)("sticky top-0 z-20 bg-white dark:bg-graydark-100","shadow-border-b shadow-gray-400 dark:shadow-graydark-300"),children:[(0,ea.jsx)("tr",{children:t.map((e,t)=>{let{id:n,icon:r,label:s,tip:u,cellClassName:c,contentClassName:d}=e,f=(null==o?void 0:o.includes(n))&&!!l,h=i===n;return(0,ea.jsx)("th",{"data-testid":n,className:(0,eW.cx)(j(t,c,!1),"border-b border-gray-400 dark:border-graydark-400"),children:(0,ea.jsx)("div",{className:"overflow-hidden py-3",children:(0,ea.jsxs)("div",{onClick:()=>{f&&l(n)},className:(0,eW.cx)(k(t,d),f?"cursor-pointer":""),children:[(0,ea.jsx)(sM,{content:u,children:(0,ea.jsxs)(nw,{color:"subtle",className:"relative flex gap-1",ellipsis:!0,children:[r?(0,ea.jsx)("div",{children:r}):null,(0,ea.jsx)(nw,{ellipsis:!0,size:"12",weight:"medium",children:s})]})}),h&&(0,ea.jsx)(nw,{color:"contrast",children:"asc"===a?(0,ea.jsx)(sO.kqg,{className:"scale-75"}):(0,ea.jsx)(sO.EMN,{className:"scale-75"})}),f&&!h&&(0,ea.jsx)(nw,{color:"verySubtle",children:(0,ea.jsx)(sO.kqg,{className:"scale-75"})})]})})},n)})}),C&&(0,ea.jsx)("tr",{children:t.map((e,t)=>{let{id:n,cellClassName:i,contentClassName:a,summary:o}=e;return(0,ea.jsx)("th",{"data-testid":n,className:(0,eW.cx)(j(t,i,!1),"border-b border-gray-400 dark:border-graydark-400","relative -top-px"),children:(0,ea.jsx)("div",{className:"overflow-hidden py-3",children:(0,ea.jsx)("div",{className:(0,eW.cx)(k(t,a)),children:o&&(0,ea.jsx)(o,{context:r})})})},n)})})]}),(0,ea.jsxs)("tbody",{className:"bg-gray-50 dark:bg-graydark-50",children:["currentData"===w&&(null==n?void 0:n.map(e=>(null==x?void 0:x.id)===e.id?null:e.isDraggable?(0,ea.jsx)(MG,{data:e,context:r,columns:t,rowSize:s,focusId:f,focusColor:h,getCellClassNames:j,getContentClassNames:k},e.id):e.isDroppable?(0,ea.jsx)(MJ,{data:e,context:r,columns:t,rowSize:s,focusId:f,focusColor:h,getCellClassNames:j,getContentClassNames:k},e.id):(0,ea.jsx)(E,{data:e,context:r,columns:t,rowSize:s,focusId:f,focusColor:h,getCellClassNames:j,getContentClassNames:k},e.id))),"skeleton"===w&&SX(u).map(e=>(0,ea.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,ea.jsx)("td",{className:j(t,i,!1),children:(0,ea.jsx)("div",{className:(0,eW.cx)(k(t,r),"dense"===s?"h-[50px]":"h-[100px]")})},"".concat(t,"/").concat(n))})},e))]})]}),"emptyState"===w&&d]})]})}function M0(e){let{offset:t,limit:n,datasetTotal:r,isLoading:i}=e,a=(0,da.j0)();return(0,ea.jsxs)(sG,{children:[(0,ea.jsx)(s_,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>a.push({query:{...a.query,offset:0}}),children:(0,ea.jsx)("div",{className:"flex scale-[0.65]",children:(0,ea.jsx)(sO.XJM,{})})}),(0,ea.jsx)(s_,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>a.push({query:{...a.query,offset:Math.max(t-n,0)}}),children:(0,ea.jsx)(sO.bdU,{})}),(0,ea.jsx)(s_,{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,ea.jsx)(kQ,{className:"px-2"}):"No results"}),(0,ea.jsx)(s_,{icon:"contrast",disabled:t+n>=r,size:"small",variant:"gray",className:"rounded-none",onClick:()=>a.push({query:{...a.query,offset:Math.min(t+n,r)}}),children:(0,ea.jsx)(sO.VUy,{})}),(0,ea.jsx)(s_,{icon:"contrast",disabled:t+n>=r,size:"small",variant:"gray",className:"rounded-l-none",onClick:()=>a.push({query:{...a.query,offset:Math.floor(r/n)*n}}),children:(0,ea.jsx)("div",{className:"flex",style:{transform:"scale(0.65)"},children:(0,ea.jsx)(sO.RRj,{})})})]})}function M1(e){let{offset:t,limit:n,pageTotal:r,isLoading:i}=e,a=(0,da.j0)();return(0,ea.jsxs)(sG,{children:[(0,ea.jsx)(s_,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>a.push({query:{...a.query,offset:0}}),children:(0,ea.jsx)("div",{className:"flex scale-[0.65]",children:(0,ea.jsx)(sO.XJM,{})})}),(0,ea.jsx)(s_,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>a.push({query:{...a.query,offset:Math.max(t-n,0)}}),children:(0,ea.jsx)(sO.bdU,{})}),i?(0,ea.jsx)(s_,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:(0,ea.jsx)(kQ,{className:"px-2"})}):r?(0,ea.jsxs)(s_,{className:"rounded-none px-3",state:"waiting",children:[t+1," - ",Math.min(t+n,t+r)]}):(0,ea.jsx)(s_,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:"none"}),(0,ea.jsx)(s_,{icon:"contrast",disabled:!(r>=n),size:"small",variant:"gray",className:"rounded-none",onClick:()=>a.push({query:{...a.query,offset:t+n}}),children:(0,ea.jsx)(sO.VUy,{})})]})}function M2(e){let{marker:t,isMore:n,pageTotal:r,isLoading:i}=e,a=(0,da.j0)();return(0,ea.jsxs)(sG,{children:[(0,ea.jsx)(s_,{icon:"contrast",size:"small",variant:"gray",className:"rounded-r-none",disabled:!t,onClick:()=>a.push({query:{...a.query,marker:""}}),children:(0,ea.jsx)("div",{className:"flex scale-[0.65]",children:(0,ea.jsx)(sO.XJM,{})})}),i?(0,ea.jsx)(s_,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:(0,ea.jsx)(kQ,{className:"px-2"})}):r?(0,ea.jsx)(s_,{className:"rounded-none px-3",state:"waiting",children:r}):(0,ea.jsx)(s_,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:"none"}),(0,ea.jsx)(s_,{icon:"contrast",disabled:!n,size:"small",variant:"gray",className:"rounded-none",onClick:()=>a.push({query:{...a.query,marker:t}}),children:(0,ea.jsx)(sO.VUy,{})})]})}function M4(e){let{separator:t,children:n}=e,r=eo.Children.toArray(n).filter(e=>eo.isValidElement(e)&&("function"!=typeof e.type||null!==e.type(e.props)));return(0,ea.jsx)(ea.Fragment,{children:r.map((e,n)=>{var i,a;return(0,ea.jsxs)(eo.Fragment,{children:[e,nl(),children:(0,ea.jsx)(sO.UG6,{})}),(0,ea.jsx)(Pn,{title:"Lock app",onClick:o,children:(0,ea.jsx)(sO.mBM,{})})]})]})})}var Pa=Object.create,Po=Object.defineProperty,Pl=Object.getOwnPropertyDescriptor,Ps=Object.getOwnPropertyNames,Pu=Object.getPrototypeOf,Pc=Object.prototype.hasOwnProperty,Pd=(D=null!=(R=(A=(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,a=(t=function(e,t){return i.set(e,t),t},function(e){var a=i.get(e),o=void 0===a?e.size:an)throw Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;e.has(o);)o=Math.floor(Math.random()*n);return t(e,o)});e.addUniqueNumber=function(e){var t=a(e);return e.add(t),t},e.generateUniqueNumber=a},"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={})},()=>(N||A((N={exports:{}}).exports,N),N.exports))())?Pa(Pu(R)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of Ps(t))Pc.call(e,n)||void 0===n||Po(e,n,{get:()=>t[n],enumerable:!(r=Pl(t,n))||r.enumerable});return e})(R&&R.__esModule?D:Po(D,"default",{value:R,enumerable:!0}),R)),Pf=e=>void 0!==e.method&&"call"===e.method,Ph=e=>null===e.error&&"number"==typeof e.id;L=e=>{let t=new Map([[0,()=>{}]]),n=new Map([[0,()=>{}]]),r=new Map,i=new Worker(e);return i.addEventListener("message",({data:e})=>{if(Pf(e)){let{params:{timerId:i,timerType:a}}=e;if("interval"===a){let e=t.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==a)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"===a){let e=n.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==a)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(Ph(e)){let{id:i}=e,a=r.get(i);if(void 0===a)throw Error("The timer is in an undefined state.");let{timerId:o,timerType:l}=a;r.delete(i),"interval"===l?t.delete(o):n.delete(o)}else{let{error:{message:t}}=e;throw Error(t)}}),{clearInterval:e=>{let n=(0,Pd.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,Pd.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,Pd.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,Pd.generateUniqueNumber)(n);return n.set(r,e),i.postMessage({id:null,method:"set",params:{delay:t,now:performance.now(),timerId:r,timerType:"timeout"}}),r}}},o=null,()=>{if(null!==o)return o;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 o=L(t),setTimeout(()=>URL.revokeObjectURL(t)),o};var Pp=(typeof window>"u"?"undefined":typeof window)=="object",Pm={setTimeout:Pp?setTimeout.bind(window):setTimeout,clearTimeout:Pp?clearTimeout.bind(window):clearTimeout,setInterval:Pp?setInterval.bind(window):setInterval,clearInterval:Pp?clearInterval.bind(window):clearInterval},Pg={},Pv=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,Pg[e]=Pg[e]||[],Pg[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),Pm.setTimeout(()=>{window.localStorage.removeItem(n)},500),Pg[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=Pg[this.name].indexOf(this);Pg[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)}},Py=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:Pv;function Px(){return Math.random().toString(36).substring(2)}var Pb=class{options;channel;token=Px();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=>Pm.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{Pm.clearInterval(t)}catch{}let r=this.intervals.indexOf(t);r>=0&&this.intervals.splice(r,1),this.channel.removeEventListener("message",i),n()};t=Pm.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=>Pm.clearInterval(e))}catch{}}}},Pw=class{channel;options;elector;token=Px();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;this.options=e,this.channel=new Py(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new Pb(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()}},Pj=Pp?document:null,Pk=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function PE(e,t){let n=0;return function(...r){let i=new Date().getTime();if(!(i-nDate.now();function PC(e){let{route:t}=e,n=(0,hi.Nf)({route:t,config:{swr:{refreshInterval:3e4}}});return{isConnected:!n.error,isValidating:n.isValidating}}function PM(e){let{appName:t,title:n,navTitle:r,profile:i,size:a="4",banner:o,nav:l,actions:s,stats:u,after:c,children:d,sidenav:f,connectivityRoute:h,isSynced:p,showWallet:m,walletBalanceSc:g,routes:v,scroll:y=!0,openSettings:x}=e,{lock:b,settings:w}=(0,hi.Hv)();return!function(e){let{lock:t,route:n,routes:r}=e,{isConnected:i,isValidating:a}=PC({route:n}),{settings:o}=(0,hi.Hv)(),l=(0,da.j0)();(0,eo.useEffect)(()=>{if(a)return;let e=!l.asPath.startsWith(r.login),n=!o.password||!i;if(e&&n){t();return}},[l,o.password,i,a])}({lock:b,route:h,routes:v}),!function(e){let{enabled:t,lock:n,lockTimeout:r}=e;!function({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:n=0,element:r=Pj,events:i=Pk,timers:a,immediateEvents:o=[],onPresenceChange:l=()=>{},onPrompt:s=()=>{},onIdle:u=()=>{},onActive:c=()=>{},onAction:d=()=>{},onMessage:f=()=>{},debounce:h=0,throttle:p=0,eventsThrottle:m=200,startOnMount:g=!0,startManually:v=!1,stopOnIdle:y=!1,crossTab:x=!1,name:b="idle-timer",syncTimers:w=0,leaderElection:j=!1,disabled:k=!1}={}){let E=(0,eo.useRef)(PS()),S=(0,eo.useRef)(PS()),C=(0,eo.useRef)(null),M=(0,eo.useRef)(null),P=(0,eo.useRef)(0),_=(0,eo.useRef)(0),O=(0,eo.useRef)(0),T=(0,eo.useRef)(0),A=(0,eo.useRef)(!1),N=(0,eo.useRef)(!1),R=(0,eo.useRef)(!1),D=(0,eo.useRef)(!0),L=(0,eo.useRef)(!1),Z=(0,eo.useRef)(null),F=(0,eo.useRef)(null),z=(0,eo.useRef)(e),V=(0,eo.useRef)(0);(0,eo.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,V.current=n):(z.current=e,V.current=t),!D.current){if(v||k)return;A.current&&(Y.current(null,eT),F.current&&F.current.active()),ed()}},[e,t,n,v,k]);let B=(0,eo.useRef)(y);(0,eo.useEffect)(()=>{B.current=y},[y]);let I=(0,eo.useRef)(o),H=(0,eo.useRef)(r),U=(0,eo.useRef)([...new Set([...i,...o]).values()]),W=(0,eo.useRef)(k);(0,eo.useEffect)(()=>{W.current=k,!D.current&&(k?ep():v||ed())},[k]);let q=(0,eo.useRef)(l);(0,eo.useEffect)(()=>{q.current=l},[l]);let $=(0,eo.useRef)(s);(0,eo.useEffect)(()=>{$.current=s},[s]);let K=(0,eo.useRef)(u);(0,eo.useEffect)(()=>{K.current=u},[u]);let Y=(0,eo.useRef)(c);(0,eo.useEffect)(()=>{Y.current=c},[c]);let X=(0,eo.useRef)(d);(0,eo.useEffect)(()=>{X.current=d},[d]);let G=(0,eo.useRef)(f);(0,eo.useEffect)(()=>{G.current=f},[f]);let J=(0,eo.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?PE(e,p):e},[p,h]),Q=(0,eo.useRef)();(0,eo.useEffect)(()=>{x&&w&&(Q.current=PE(()=>{F.current.active()},w))},[x,w]);let ee=()=>{null!==Z.current&&(Pm.clearTimeout(Z.current),Z.current=null)},et=(e,t=!0)=>{ee(),Z.current=Pm.setTimeout(ea,e||z.current),t&&(M.current=PS())},en=e=>{N.current||A.current||($.current(e,eT),q.current({type:"active",prompted:!0},eT)),T.current=0,O.current=PS(),N.current=!0,et(V.current,!1)},er=()=>{ee(),A.current||(K.current(null,eT),q.current({type:"idle"},eT)),A.current=!0,C.current=PS(),B.current?ec():N.current&&(O.current=0,N.current=!1)},ei=e=>{ee(),(A.current||N.current)&&(Y.current(e,eT),q.current({type:"active",prompted:!1},eT)),N.current=!1,O.current=0,A.current=!1,P.current+=PS()-C.current,_.current+=PS()-C.current,eu(),et()},ea=e=>{if(!A.current){J.cancel&&J.cancel();let t=PS()-M.current;if(!(z.current+V.current0&&!N.current){F.current?F.current.prompt():en(e);return}F.current?F.current.idle():er();return}F.current?F.current.active():ei(e)},el=e=>{if(g||M.current||(M.current=PS(),Y.current(null,eT)),J(e,eT),N.current)return;if(ee(),!A.current&&I.current.includes(e.type)){ea(e);return}let t=PS()-M.current;if(A.current&&!y||!A.current&&t>=z.current){ea(e);return}R.current=!1,T.current=0,O.current=0,et(),x&&w&&Q.current()},es=(0,eo.useRef)(el);(0,eo.useEffect)(()=>{let e=L.current;e&&ec(),m>0?es.current=PE(el,m):es.current=el,e&&eu()},[m,p,h,X,x,w]);let eu=()=>{Pp&&H.current&&(L.current||(U.current.forEach(e=>{H.current.addEventListener(e,es.current,{capture:!0,passive:!0})}),L.current=!0))},ec=(e=!1)=>{Pp&&H.current&&(L.current||e)&&(U.current.forEach(e=>{H.current.removeEventListener(e,es.current,{capture:!0})}),L.current=!1)},ed=(0,eo.useCallback)(e=>!W.current&&(ee(),eu(),A.current=!1,N.current=!1,R.current=!1,T.current=0,O.current=0,F.current&&!e&&F.current.start(),et(),!0),[Z,A,W,z,F]),ef=(0,eo.useCallback)(e=>!W.current&&(ee(),eu(),S.current=PS(),P.current+=PS()-C.current,_.current+=PS()-C.current,P.current=0,A.current=!1,N.current=!1,R.current=!1,T.current=0,O.current=0,F.current&&!e&&F.current.reset(),v||et(),!0),[Z,A,z,v,W,F]),eh=(0,eo.useCallback)(e=>!W.current&&(ee(),eu(),(A.current||N.current)&&ei(),A.current=!1,N.current=!1,R.current=!1,T.current=0,O.current=0,S.current=PS(),F.current&&!e&&F.current.activate(),et(),!0),[Z,A,N,W,z,F]),ep=(0,eo.useCallback)((e=!1)=>!W.current&&!R.current&&(T.current=ej(),R.current=!0,ec(),ee(),F.current&&!e&&F.current.pause(),!0),[Z,W,F]),em=(0,eo.useCallback)((e=!1)=>!W.current&&!!R.current&&(R.current=!1,N.current||eu(),A.current||et(T.current),O.current&&(O.current=PS()),F.current&&!e&&F.current.resume(),!0),[Z,z,W,T,F]),eg=(0,eo.useCallback)((e,t)=>(F.current?(t&&G.current(e,eT),F.current.message(e)):t&&G.current(e,eT),!0),[f]),ev=(0,eo.useCallback)(()=>A.current,[A]),ey=(0,eo.useCallback)(()=>N.current,[N]),ex=(0,eo.useCallback)(()=>F.current?F.current.isLeader:null,[F]),eb=(0,eo.useCallback)(()=>F.current?F.current.isLastActive:null,[F]),ew=(0,eo.useCallback)(()=>F.current?F.current.token:null,[F]),ej=(0,eo.useCallback)(()=>{if(R.current)return T.current;let e=Math.floor((T.current?T.current:V.current+z.current)-(M.current?PS()-M.current:0));return e<0?0:Math.abs(e)},[z,V,N,T,M]),ek=(0,eo.useCallback)(()=>Math.round(PS()-S.current),[S]),eE=(0,eo.useCallback)(()=>Math.round(PS()-E.current),[E]),eS=(0,eo.useCallback)(()=>C.current?new Date(C.current):null,[C]),eC=(0,eo.useCallback)(()=>M.current?new Date(M.current):null,[M]),eM=(0,eo.useCallback)(()=>A.current?Math.round(PS()-C.current+P.current):Math.round(P.current),[C,P]),eP=(0,eo.useCallback)(()=>A.current?Math.round(PS()-C.current+_.current):Math.round(_.current),[C,_]),e_=(0,eo.useCallback)(()=>{let e=Math.round(ek()-eM());return e>=0?e:0},[C,P]),eO=(0,eo.useCallback)(()=>{let e=Math.round(eE()-eP());return e>=0?e:0},[C,P]);(0,eo.useEffect)(()=>{if(h>0&&p>0)throw Error("❌ onAction can either be throttled or debounced, not both.");a&&(Pm.setTimeout=a.setTimeout,Pm.clearTimeout=a.clearTimeout,Pm.setInterval=a.setInterval,Pm.clearInterval=a.clearInterval);let e=()=>{F.current&&F.current.close(),J.cancel&&J.cancel(),ee(),ec(!0)};return Pp&&window.addEventListener("beforeunload",e),()=>{Pp&&window.removeEventListener("beforeunload",e),F.current&&F.current.close(),J.cancel&&J.cancel(),ee(),ec(!0)}},[]),(0,eo.useEffect)(()=>{F.current&&F.current.close(),x?F.current=new Pw({channelName:b,leaderElection:j,onPrompt:()=>{en()},onIdle:()=>{er()},onActive:()=>{ei()},onMessage:e=>{G.current(e,eT)},start:ed,reset:ef,activate:eh,pause:ep,resume:em}):F.current=null},[x,b,j,$,K,Y,G,ed,ef,ep,em]),(0,eo.useEffect)(()=>{D.current||(ee(),ec(!0)),v||k||(g?ed():eu())},[v,g,k,D]),(0,eo.useEffect)(()=>{if(!D.current){let e=[...new Set([...i,...o]).values()];ec(),U.current=e,H.current=r,I.current=o,v||k||(g?ed():eu())}},[r,JSON.stringify(i),JSON.stringify(o),D,k,v,g]),(0,eo.useEffect)(()=>{D.current&&(D.current=!1)},[D]);let eT={message:eg,start:ed,reset:ef,activate:eh,pause:ep,resume:em,isIdle:ev,isPrompted:ey,isLeader:ex,isLastActiveTab:eb,getTabId:ew,getRemainingTime:ej,getElapsedTime:ek,getTotalElapsedTime:eE,getLastIdleTime:eS,getLastActiveTime:eC,getIdleTime:eM,getTotalIdleTime:eP,getActiveTime:e_,getTotalActiveTime:eO,setOnPresenceChange:e=>{l=e,q.current=e},setOnPrompt:e=>{s=e,$.current=e},setOnIdle:e=>{u=e,K.current=e},setOnActive:e=>{c=e,Y.current=e},setOnAction:e=>{d=e,X.current=e},setOnMessage:e=>{f=e,G.current=e}}}({disabled:!t,onIdle:(0,eo.useCallback)(()=>{n()},[n]),timeout:r,throttle:5e3,eventsThrottle:5e3})}({enabled:!!w.autoLock,lockTimeout:w.autoLockTimeout,lock:b}),(0,ea.jsxs)(M7,{appName:t,title:n,children:[(0,ea.jsx)(M6,{}),(0,ea.jsxs)("div",{className:"flex flex-col h-full w-full",children:[o,(0,ea.jsxs)("div",{className:"flex flex-1 w-full overflow-hidden",children:[(0,ea.jsx)(Pi,{routes:v,profile:i,openSettings:x,lock:b,showWallet:m,walletBalanceSc:g,isSynced:p,children:f}),(0,ea.jsxs)("div",{className:"flex flex-col flex-1 overflow-hidden",children:[(0,ea.jsx)(M3,{title:void 0===r?n:r,nav:l,actions:s,stats:u,after:c}),y?(0,ea.jsx)(uS,{className:"z-0",children:(0,ea.jsx)(sQ,{size:a,pad:!1,children:(0,ea.jsx)("div",{className:"flex flex-col gap-5",children:d})})}):(0,ea.jsx)(sQ,{size:a,pad:!1,className:"flex-1 flex flex-col gap-5 overflow-hidden",children:d})]})]})]})]})}function PP(e,t,n,r){let[i,a]=(0,eo.useState)();return(0,eo.useEffect)(()=>{!t&&e&&a(e.length)},[t,e,a]),(0,eo.useMemo)(()=>n?"error":void 0===i||i>0&&!e?"loading":0===i?0===r.length?"noneYet":"noneMatchingFilters":void 0,[e,i,n,r])}(0,eo.createContext)(null).Consumer;var P_=n(89644),PO=n.n(P_),PT=n(63955),PA=n(69046);function PN(e){let{form:t,field:n,name:r}=e,i=t.watch(r),a=t.formState.touchedFields[r]&&!!t.formState.errors[r],{ref:o,onChange:l}=t.register(r,n.validation),s=(0,eo.useCallback)(e=>{var r;l(e),null===(r=n.trigger)||void 0===r||r.forEach(e=>t.trigger(e))},[l,t,n]),u=(0,eo.useCallback)(()=>{var e;t.trigger(r),null===(e=n.trigger)||void 0===e||e.forEach(e=>t.trigger(e))},[t,n,r]),c=(0,eo.useCallback)((e,i)=>{var a;t.setValue(r,e,"boolean"==typeof i?i?{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0}:void 0:i),null===(a=n.trigger)||void 0===a||a.forEach(e=>t.trigger(e))},[r,t,n]);return{ref:o,name:r,value:i,error:a,onBlur:u,onChange:s,setValue:c}}function PR(e){return(0,eo.useCallback)(t=>{SC({title:"Error",body:(0,PA.Z)(t).map(t=>{let[n,r]=t;return"".concat(e[n].title||n,": ").concat(null==r?void 0:r.message)}).join(", ")})},[e])}function PD(e){let{name:t,form:n,fields:r}=e,i=r[t];return!i.hidden&&(!i.show||i.show(n.getValues()))}function PL(e){let{name:t,form:n,fields:r,size:i="small",autoComplete:a,spellCheck:o,state:l=!0,group:s=!0,type:u}=e,c=r[t],{ref:d,onChange:f,onBlur:h,error:p}=PN({name:t,form:n,field:c}),m=(0,ea.jsx)(fZ,{ref:d,name:t,placeholder:c.placeholder,size:i,autoComplete:void 0!==a?a:c.autoComplete,type:u||c.type,readOnly:c.readOnly,spellCheck:o,onClick:c.onClick,state:l?p?"invalid":n.formState.dirtyFields[t]?"valid":"default":"default",onChange:f,onBlur:h});return s?(0,ea.jsx)(S7,{title:c.title,actions:c.actions,name:t,form:n,children:m}):m}var PZ=n(84779);async function PF(e){let{api:t,route:n,password:r}=e;try{return await PO().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 Pz(e){let{appName:t,route:n,routes:r}=e,i=(0,da.j0)(),{settings:a,setSettings:o}=(0,hi.Hv)(),{loginWithCustomApi:l}=a,s=(0,eo.useMemo)(()=>({api:a.api,password:""}),[a.api]),u=(0,PT.cI)({mode:"onBlur",defaultValues:s});(0,eo.useEffect)(()=>{u.clearErrors()},[l]);let c=(0,eo.useCallback)(async e=>{let t="";if(l){let n=new URL(e.api);t="".concat(n.protocol,"//").concat(n.host)}let{error:c}=await PF({api:t,route:n,password:e.password});c?u.setError("password",{message:c}):(o({api:t,password:e.password,recentApis:{...a.recentApis,[t]:{lastUsed:new Date().getTime()}}}),i.push(i.query.prev?decodeURIComponent(i.query.prev):r.home),u.reset(s))},[l,u,i,r,a,o,s,n]),d=function(e){let{loginWithCustomApi: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"}}}}({loginWithCustomApi:l}),f=PR(d),h=u.formState.errors.api||u.formState.errors.password,p=(0,PZ.Z)(Object.entries(a.recentApis),e=>{let[t,{lastUsed:n}]=e;return-n}).map(e=>{let[t]=e;return t});return(0,ea.jsx)("div",{className:"flex flex-col items-center justify-center gap-6 h-full",children:(0,ea.jsx)(nE,{className:"relative top-[-50px] w-[300px] p-2.5",children:(0,ea.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,ea.jsxs)("div",{className:"flex justify-between items-center",children:[(0,ea.jsx)(nw,{font:"mono",weight:"bold",size:"20",children:t}),(0,ea.jsx)(dt,{label:"login settings",trigger:(0,ea.jsx)(s_,{icon:"hover",variant:"ghost",children:(0,ea.jsx)(sO.shL,{})}),children:(0,ea.jsx)(dn,{onSelect:()=>o({loginWithCustomApi:!l}),children:l?"Hide custom API":"Show custom API"})})]}),(0,ea.jsx)(c0,{className:"w-full mt-2 mb-3"}),(0,ea.jsx)("form",{onSubmit:u.handleSubmit(c,f),children:(0,ea.jsxs)("div",{className:"flex flex-col gap-1.5",children:[l?(0,ea.jsxs)(sG,{children:[(0,ea.jsx)(PL,{name:"api",form:u,fields:d,group:!1}),p.length>1&&(0,ea.jsx)(dt,{trigger:(0,ea.jsx)(s_,{type:"button",children:(0,ea.jsx)(sO.wGX,{})}),children:p.map(e=>(0,ea.jsx)(dn,{onSelect:()=>u.setValue("api",e),children:e},e))})]}):null,(0,ea.jsx)(PL,{name:"password",form:u,fields:d,group:!1}),h&&(0,ea.jsx)(nw,{size:"14",color:"red",children:h.message}),(0,ea.jsx)(S9,{size:"small",form:u,children:"Unlock"})]})})]})})})}var PV=n(7114),PB=n(24511);let PI={address:"",siacoin:void 0,includeFee:!1},PH=PB.Ry().shape({address:PB.Z_().required("Required"),siacoin:PB.Z_().required("Required").test("greater than zero","Must be greater than zero",e=>!new(he())(e||0).isZero())});function PU(e){let{address:t,siacoin:n,fee:r,transactionId:i}=e,a=n.plus(r);return(0,ea.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ea.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,ea.jsx)(nw,{color:"verySubtle",noWrap:!0,children:"Address"}),(0,ea.jsx)(SD,{value:t,type:"address"})]}),(0,ea.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,ea.jsx)(nw,{color:"verySubtle",noWrap:!0,children:"Amount"}),(0,ea.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,ea.jsx)(Sz,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,ea.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,ea.jsx)(nw,{color:"verySubtle",noWrap:!0,children:"Network fee"}),(0,ea.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,ea.jsx)(Sz,{size:"14",value:r,variant:"value",dynamicUnits:!1})})]}),(0,ea.jsxs)("div",{className:"flex items-center gap-2 justify-between",children:[(0,ea.jsx)(nw,{color:"verySubtle",noWrap:!0,children:"Total"}),(0,ea.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,ea.jsx)(Sz,{size:"14",value:a,variant:"value",dynamicUnits:!1})})]}),i&&(0,ea.jsxs)("div",{className:"flex gap-6 items-center justify-between",children:[(0,ea.jsx)(nw,{color:"verySubtle",noWrap:!0,children:"Transaction ID"}),(0,ea.jsx)(SD,{value:i,type:"transaction"})]})]})}function PW(e){let{activeStep:t,steps:n,onChange:r}=e,i=n.findIndex(e=>e.id===t),a=n.length-1;return(0,ea.jsxs)("div",{className:"relative w-full mt-8 mb-3",children:[(0,ea.jsx)("div",{className:"absolute w-full h-1 bg-gray-500 dark:bg-graydark-500 rounded-lg"}),(0,ea.jsx)("div",{className:"absolute h-1 bg-accent-800 dark:bg-accentdark-800 rounded-lg",style:{width:"".concat(i/a*100,"%")}}),n.map((e,n)=>{let{id:o,label:l}=e,s=t===o,u=i>=n,c=n===a,d=0===n,f=u&&i!==a;return(0,ea.jsxs)("div",{className:(0,eW.cx)("absolute h-2 w-2 -top-0.5",f?"cursor-pointer":"cursor-default"),style:{left:"calc(".concat(n/a*100,"% - ").concat(c?8:d?0:4,"px)")},onClick:()=>{f&&r(o)},children:[(0,ea.jsx)(nw,{color:s?"contrast":"verySubtle",className:(0,eW.cx)("absolute top-[-30px]",d?"left-0":"",c?"right-0":"",d||c?"":"-translate-x-1/2"),noWrap:!0,children:l}),(0,ea.jsx)("div",{className:(0,eW.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")}),s&&(0,ea.jsx)("div",{className:"absolute left-0 top-0 h-full w-full rounded-lg bg-accent-800 dark:bg-accentdark-800 animate-pingslow"})]},o)})]})}function Pq(e){let{data:{address:t,siacoin:n},fee:r,transactionId:i}=e;return(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(PU,{address:t,siacoin:n,fee:r,transactionId:i}),(0,ea.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 my-4",children:[(0,ea.jsx)(nw,{children:(0,ea.jsx)(sO.Z$8,{})}),(0,ea.jsx)(nw,{children:"Transaction successfully broadcasted."})]})]})}let P$=(0,vt.qN)(.00393),PK={address:"",siacoin:new(he())(0),includeFee:!1};function PY(e){let{trigger:t,open:n,onOpenChange:r,balance:i,send:a}=e,[o,l]=(0,eo.useState)("setup"),[s,u]=(0,eo.useState)(),[c,d]=(0,eo.useState)(PK),f=function(e){let{balance:t,fee:n,onComplete:r}=e,i=(0,PV.TA)({initialValues:PI,validationSchema:PH,onSubmit:async e=>{if(!e.siacoin)return;let a=e.includeFee?(0,vt.qN)(e.siacoin).minus(n):(0,vt.qN)(e.siacoin);if(t){if(t.isLessThan((0,vt.qN)(e.siacoin).plus(n))){i.setStatus({error:"Not enough funds in wallet."});return}i.setStatus({}),r({includeFee:e.includeFee,address:e.address,siacoin:a})}}}),a=(0,vt.qN)(i.values.siacoin||0),o=(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(Ce,{formik:i,variants:{size:"medium"},title:"Address",name:"address",placeholder:"e3b1050aef388438668b52983cf78f40925af8f0aa8b9de80c18eadcefce8388d168a313e3f2",autoComplete:"off",type:"text"}),(0,ea.jsx)(Ce,{formik:i,title:"Siacoin",name:"siacoin",placeholder:"100",type:"siacoin"}),(0,ea.jsxs)("div",{className:"flex items-center",children:[(0,ea.jsx)(h_,{name:"includeFee",onCheckedChange:e=>i.setFieldValue("includeFee",e),children:"Include fee"}),(0,ea.jsx)(hs,{children:"Include or exclude the network fee from the above transaction value."}),(0,ea.jsx)("div",{className:"flex flex-1"})]}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2 my-1",children:[(0,ea.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,ea.jsx)(nw,{color:"verySubtle",children:"Network fee"}),(0,ea.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,ea.jsx)(Sz,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,ea.jsxs)("div",{className:"flex justify-between gap-2 items-center",children:[(0,ea.jsx)(nw,{color:"verySubtle",children:"Total"}),(0,ea.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,ea.jsx)(Sz,{size:"14",value:i.values.includeFee?a:a.plus(n),variant:"value",dynamicUnits:!1})})]})]})]});return{formik:i,form:o}}({balance:i,fee:P$,onComplete:e=>{d(e),l("confirm")}}),h=function(e){let{send:t,formData:n,fee:r,onConfirm:i}=e,{address:a,siacoin:o}=n||{},l=(0,PV.TA)({initialValues:{},onSubmit:async()=>{let{transactionId:e,error:n}=await t({address:a,sc:o});if(n){l.setStatus({error:n});return}i({transactionId:e})}});return{form:(0,ea.jsx)("div",{className:"flex flex-col gap-4",children:(0,ea.jsx)(PU,{address:a,siacoin:o,fee:r})}),formik:l}}({fee:P$,formData:c,send:a,onConfirm:e=>{let{transactionId:t}=e;u(t),l("done")}}),p=(0,eo.useMemo)(()=>"setup"===o?{submitLabel:"Generate transaction",formik:f.formik}:"confirm"===o?{submitLabel:"Broadcast transaction",formik:h.formik}:void 0,[o,f,h]);return(0,ea.jsx)(uP,{trigger:t,open:n,onOpenChange:e=>{e||(f.formik.resetForm(),h.formik.resetForm(),l("setup")),r(e)},title:"Send siacoin",onSubmit:p?p.formik.handleSubmit:void 0,controls:p&&(0,ea.jsx)("div",{className:"flex flex-col gap-1",children:(0,ea.jsx)(Co,{formik:p.formik,children:p.submitLabel})}),contentVariants:{className:"w-[400px]"},children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(PW,{onChange:e=>l(e),activeStep:o,steps:[{id:"setup",label:"Setup"},{id:"confirm",label:"Confirm"},{id:"done",label:"Complete"}]}),(0,ea.jsx)(c0,{className:"w-full mt-4"}),"setup"===o&&f.form,"confirm"===o&&h.form,"done"===o&&(0,ea.jsx)(Pq,{data:c,fee:P$,transactionId:s})]})})}function PX(e){let{form:t,onOpenChange:n,defaultValues:r,initKey:i}=e,a=(0,eo.useCallback)(()=>{t.reset(r)},[t,r]),o=(0,eo.useCallback)(()=>{n(!1),t.reset(r)},[t,n,r]),l=(0,eo.useCallback)(e=>{e?(n(!0),setTimeout(()=>{a()},0)):o()},[o,a,n]),s=function(e){let[t,n]=(0,eo.useState)(e);return(0,eo.useEffect)(()=>{if(!e||!e.length)return;let r=!1;for(let n=0;n{s&&s.length&&s.every(e=>!!e)&&a()},[s]),{reset:a,closeAndReset:o,handleOpenChange:l}}let PG={address:""},PJ={address:{type:"text",title:"Address",placeholder:"host.acme.com:9981 or 127.0.0.1:9981",autoComplete:"off",validation:{required:"required"}}};function PQ(e){let{trigger:t,open:n,connect:r,onOpenChange:i}=e,a=(0,PT.cI)({mode:"all",defaultValues:PG}),{handleOpenChange:o,closeAndReset:l}=PX({form:a,onOpenChange:i,defaultValues:PG}),s=(0,eo.useCallback)(async e=>{let t=await r(e.address);t.error?SC({title:t.error}):(SS({title:"Connected to peer"}),l())},[l,r]);return(0,ea.jsx)(uP,{trigger:t,title:"Connect peer",open:n,onOpenChange:o,contentVariants:{className:"w-[400px]"},onSubmit:a.handleSubmit(s),controls:(0,ea.jsx)("div",{className:"px-1",children:(0,ea.jsx)(S9,{form:a,size:"medium",className:"w-full",children:"Connect"})}),children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(nj,{size:"14",children:"Connect to a peer by IP address."}),(0,ea.jsx)(PL,{form:a,fields:PJ,name:"address",size:"medium"})]})})}function P0(e){var t,n;let{id:r,transaction:i,trigger:a,open:o,onOpenChange:l}=e;return(0,ea.jsx)(uP,{title:SR((null==i?void 0:i.txType)?(0,SQ.Z)((0,vt.pX)(i.txType)):"Transaction",r,16),trigger:a,open:o,onOpenChange:l,contentVariants:{className:"w-[800px]"},children:i?(0,ea.jsxs)("div",{className:"flex flex-col gap-4 pb-10 w-full overflow-hidden",children:[(0,ea.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(null==i?void 0:i.inflow)!==void 0&&(0,ea.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,ea.jsx)(nw,{children:"Inflow"}),(0,ea.jsx)(Sz,{value:new(he())((null==i?void 0:i.inflow)||0)})]}),(null==i?void 0:i.outflow)!==void 0&&(0,ea.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,ea.jsx)(nw,{children:"Outflow"}),(0,ea.jsx)(Sz,{value:new(he())((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,ea.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,ea.jsx)(nw,{children:"Miner fee"}),(0,ea.jsx)(Sz,{value:new(he())((null==i?void 0:null===(n=i.raw.minerFees)||void 0===n?void 0:n.reduce((e,t)=>e.plus(t),new(he())(0)))||0)})]}),(0,ea.jsx)("div",{className:"flex-1"}),(0,ea.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,ea.jsx)(nw,{children:"Timestamp"}),(0,ea.jsx)(nw,{children:(null==i?void 0:i.timestamp)?(0,vt.rN)((null==i?void 0:i.timestamp)||0,{timeStyle:"short"}):"Unconfirmed"})]})]}),(0,ea.jsx)(s$,{children:JSON.stringify(null==i?void 0:i.raw,null,2)})]}):(0,ea.jsx)(nw,{children:"Could not find transaction in wallet"})})}PB.Ry().shape({address:PB.Z_().required("Required"),description:PB.Z_().required("Required"),index:PB.Rx().integer().required("Required")});var P1=n(38001);function P2(e){let{title:t,description:n,address:r}=e;return(0,ea.jsxs)("div",{className:"flex flex-col gap-4 items-center justify-center",children:[t&&(0,ea.jsx)(du,{size:"20",font:"mono",children:t}),n&&(0,ea.jsx)(nw,{children:n}),(0,ea.jsx)("div",{className:"relative p-[5px] bg-white h-[210px] w-[210px]",children:(0,ea.jsx)("div",{className:"absolute",children:(0,ea.jsx)(P1.Z,{size:200,value:r})})}),(0,ea.jsx)(SD,{type:"address",value:r})]})}function P4(e){let{address:t,isValidating:n,trigger:r,open:i,onOpenChange:a}=e;return(0,ea.jsx)(uP,{title:SR("Address",SN(t)||"",16),trigger:r,open:i,onOpenChange:a,contentVariants:{className:"w-[400px]"},children:(0,ea.jsx)("div",{className:"flex flex-col gap-4",children:t||n?(0,ea.jsx)(P2,{address:t||""}):(0,ea.jsx)(nw,{children:"Could not retreive wallet address"})})})}function P3(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i}=e;return t?n?null:(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(nw,{color:"amber",children:(0,ea.jsx)(sO.qdM,{})}),(0,ea.jsxs)(nw,{size:"14",children:["Wallet is scanning (",i,"%), transaction data may be incomplete."]})]}):(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(nw,{color:"amber",children:(0,ea.jsx)(sO.qdM,{})}),(0,ea.jsxs)(nw,{size:"14",children:["Blockchain is syncing (",r,"%), transaction data may be incomplete."]})]})}let P5={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://jobs.lever.co/the-sia-foundation"};function P6(){let{settings:e,setCurrency:t,currencyOptions:n}=(0,hi.Hv)();return(0,ea.jsx)(hf,{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,ea.jsx)(hh,{value:t,children:n},t)})})}let P8=[{id:"sc",label:"Siacoin"},{id:"fiat",label:"Fiat"},{id:"bothPreferSc",label:"Both - prefer siacoin"},{id:"bothPreferFiat",label:"Both - prefer fiat"}];function P7(){let{settings:e,setSettings:t}=(0,hi.Hv)();return(0,ea.jsx)(hf,{disabled:!e.siaCentral,value:e.currencyDisplay,onChange:e=>t({currencyDisplay:e.currentTarget.value}),children:P8.map(e=>{let{id:t,label:n}=e;return(0,ea.jsx)(hh,{value:t,children:n},t)})})}function P9(e){let{open:t,onOpenChange:n,securityEl:r,showGpuSetting:i}=e,{settings:a,setSettings:o,gpu:l}=(0,hi.Hv)();return(0,ea.jsx)(uP,{open:t,title:"App preferences",onOpenChange:n,contentVariants:{className:"w-[450px]"},children:(0,ea.jsxs)("div",{className:"flex flex-col gap-6 mb-2",children:[(0,ea.jsx)("div",{className:"flex flex-col gap-4",children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(nw,{size:"16",weight:"bold",children:"Display"}),(0,ea.jsx)(nj,{size:"14",children:"Configure visual and locale display preferences."}),(0,ea.jsx)(sA,{children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(nw,{children:(0,ea.jsx)(sO.RdX,{})}),(0,ea.jsx)(du,{size:"20",className:"flex-1",children:"Currency display"}),(0,ea.jsx)(P7,{})]}),(0,ea.jsx)(nj,{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,ea.jsx)(sA,{children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(nw,{children:(0,ea.jsx)(sO.RdX,{})}),(0,ea.jsx)(du,{size:"20",className:"flex-1",children:"Fiat"}),(0,ea.jsx)(P6,{})]}),(0,ea.jsx)(nj,{size:"14",children:"Select a fiat currency for price conversions from Siacoin. Requires Sia Central third-party data enabled under Privacy."})]})}),(0,ea.jsx)(sA,{children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(nw,{children:(0,ea.jsx)(sO.RdX,{})}),(0,ea.jsx)(du,{size:"20",className:"flex-1",children:"Theme"}),(0,ea.jsx)(p7,{})]}),(0,ea.jsx)(nj,{size:"14",children:"Switch between a dark or light mode, or follow your system's settings."})]})}),i&&(0,ea.jsx)(sA,{children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(nw,{children:(0,ea.jsx)(sO.RdX,{})}),(0,ea.jsx)(du,{size:"20",className:"flex-1",children:"GPU"}),(0,ea.jsx)(h_,{disabled:!l.canGpuRender,checked:l.canGpuRender&&l.isGpuEnabled,onCheckedChange:l.setIsGpuEnabled,size:"medium"})]}),(0,ea.jsxs)(nj,{size:"14",children:["Enable features that require a GPU."," ",l.canGpuRender?"":"This device does not support GPU rendering."]})]})})]})}),(0,ea.jsx)(c0,{className:"w-full"}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ea.jsx)(nw,{size:"16",weight:"bold",children:"Security"}),(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(nj,{size:"14",children:"Configure security preferences."}),(0,ea.jsx)(sA,{children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(nw,{children:(0,ea.jsx)(sO.RdX,{})}),(0,ea.jsx)(du,{size:"20",className:"flex-1",children:"Lock app"}),(0,ea.jsx)(h_,{size:"medium",checked:a.autoLock,onCheckedChange:e=>o({autoLock:e})}),(0,ea.jsxs)(hf,{disabled:!a.autoLock,value:String(a.autoLockTimeout),onChange:e=>{o({autoLockTimeout:Number(e.currentTarget.value)})},children:[(0,ea.jsx)(hh,{value:kz(5),children:"5 minutes"}),(0,ea.jsx)(hh,{value:kz(10),children:"10 minutes"}),(0,ea.jsx)(hh,{value:kz(20),children:"20 minutes"}),(0,ea.jsx)(hh,{value:kz(30),children:"30 minutes"}),(0,ea.jsx)(hh,{value:kz(60),children:"1 hour"})]})]}),(0,ea.jsx)(nj,{size:"14",children:"Automatically lock the app after a certain period of inactivity."})]})}),r]})]}),(0,ea.jsx)(c0,{className:"w-full"}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ea.jsx)(nw,{size:"16",weight:"bold",children:"Privacy"}),(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(nj,{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,ea.jsx)(sA,{children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(nw,{children:(0,ea.jsx)(sO.RdX,{})}),(0,ea.jsx)(du,{size:"20",className:"flex-1",children:"Sia Central"}),(0,ea.jsx)(h_,{size:"medium",checked:a.siaCentral,onCheckedChange:e=>o({siaCentral:e})})]}),(0,ea.jsx)(nj,{size:"14",children:"The app fetches Siacoin exchange rates from the Sia Central API."})]})})]})]}),(0,ea.jsx)(c0,{className:"w-full"}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ea.jsx)(nw,{size:"16",weight:"bold",children:"Help"}),(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(nj,{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,ea.jsxs)("div",{className:"flex gap-4",children:[(0,ea.jsxs)(dx,{href:P5.website.index,target:"_blank",className:"flex items-center gap-1",children:[(0,ea.jsx)(sO.lq1,{}),"Website"]}),(0,ea.jsxs)(dx,{href:P5.docs.index,target:"_blank",className:"flex items-center gap-1",children:[(0,ea.jsx)(sO.RdX,{}),"Docs"]}),(0,ea.jsxs)(dx,{href:P5.github.index,target:"_blank",className:"flex items-center gap-1",children:[(0,ea.jsx)(sO.Sfn,{}),"About"]}),(0,ea.jsxs)(dx,{href:P5.discord,target:"_blank",className:"flex items-center gap-1",children:[(0,ea.jsx)(sO.b47,{}),"Discord"]})]})]})]})]})})}function _e(e){let{balanceSc:t,isSynced:n,syncingMessage:r}=e;return t?n?(0,ea.jsx)(Pe,{side:"bottom",balanceSc:t,children:(0,ea.jsx)(nE,{className:"hidden sm:flex h-7 px-3 items-center",children:(0,ea.jsx)(SI,{variant:"value",value:t.spendable.plus(t.unconfirmed),size:"12",showTooltip:!1})})}):(0,ea.jsx)(sM,{content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,ea.jsxs)(nE,{className:"hidden sm:flex h-7 pl-2 pr-3 gap-1.5 items-center",children:[(0,ea.jsx)(nw,{color:"amber",children:(0,ea.jsx)(sO.qdM,{})}),(0,ea.jsx)(SI,{variant:"value",value:t.spendable.plus(t.unconfirmed),size:"12",showTooltip:!1})]})}):null}function _t(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i,balanceSc:a,sendSiacoin:o,receiveSiacoin:l}=e;return(0,ea.jsxs)(ea.Fragment,{children:[a&&(0,ea.jsx)(_e,{isSynced:t&&n,syncingMessage:t?"Wallet is scanning (".concat(i,"%), balance may be incorrect."):"Blockchain is syncing (".concat(r,"%), balance may be incorrect."),balanceSc:a}),l&&(0,ea.jsxs)(s_,{size:"small",onClick:l,children:[(0,ea.jsx)(sO.xHM,{}),"Receive"]}),(0,ea.jsxs)(s_,{size:"small",variant:"accent",onClick:o,children:[(0,ea.jsx)(sO.rW0,{}),"Send"]})]})}function _n(e,t){if(!e||!e.length)return[];let n=Object.keys((0,kF.Z)(e[0],"timestamp"));e.sort((e,t)=>e.timestamp>t.timestamp?1:-1);let r=[];return"delta"===t?e.forEach((t,i)=>{let a={...t};0!==i&&(n.forEach(n=>{let r=t[n],o=e[i-1][n];a[n]=r-o}),r.push(a))}):r=e,r}let _r={"5m":e=>{let t=e+kz(5);return"5m interval from ".concat((0,vt.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,vt.rN)(t,{timeStyle:"short",hour12:!1}))},"15m":e=>{let t=e+kz(15);return"15m interval from ".concat((0,vt.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,vt.rN)(t,{timeStyle:"short",hour12:!1}))},hourly:e=>"Hour interval from ".concat((0,vt.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,vt.rN)(e+36e5,{timeStyle:"short",hour12:!1})),daily:e=>"Day interval from ".concat((0,vt.rN)(e)," to ").concat((0,vt.rN)(e+864e5)),weekly:e=>{let t=e+kV(7);return"Week interval from ".concat((0,vt.rN)(e)," to ").concat((0,vt.rN)(t))},monthly:e=>{let t=e+kV(30);return"Month interval from ".concat((0,vt.rN)(e)," to ").concat((0,vt.rN)(t))},yearly:e=>{let t=e+kV(365);return"Year interval from ".concat((0,vt.rN)(e)," to ").concat((0,vt.rN)(t))},default:e=>"".concat((0,vt.rN)(e))};function _i(e){return _r[e]||_r.default}function _a(e){if(!e||!e.length)return{};let t=Object.keys((0,kF.Z)(e[0],"timestamp"));return e.sort((e,t)=>e.timestamp>t.timestamp?1:-1),{...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,a=(null===(r=t[t.length-1])||void 0===r?void 0:r[e])||0;return _o({total:t.reduce((t,n)=>t+(n[e]||0),0),start:i,end:a,count:t.length})}(n,e)}),{}),total:function(e,t){let n=_l(e,t[0]),r=_l(e,t[t.length-1]);return _o({total:t.reduce((t,n)=>t+_l(e,n),0),start:n,end:r,count:t.length})}(t,e)}}function _o(e){let{total:t,start:n,end:r,count:i}=e,a=r-n;return{total:t,diff:a,change:0===n?void 0:a/n*100,latest:r,average:t/i}}function _l(e,t){return e.reduce((e,n)=>e+((null==t?void 0:t[n])||0),0)}function _s(e){let{balances:t,isLoading:n,chartType:r="area"}=e,{resolvedTheme:i}=(0,p6.F)(),a=(0,eo.useMemo)(()=>"light"===i?{sc:{label:"siacoin",color:ve.accent[800]}}:{sc:{label:"siacoin",color:ve.accentdark[800]}},[i]),o=(0,eo.useMemo)(()=>({data:_n(t,"none"),stats:_a(t),config:{enabledGraph:["sc"],enabledTip:["sc"],data:{sc:a.sc},format:e=>(0,vt.Vz)(e),formatTimestamp:_i("default"),formatTickY:e=>(0,vt.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:r},isLoading:n}),[t,n,a,r]);return(0,ea.jsx)("div",{className:"relative",children:(0,ea.jsx)(k1,{id:"all/v0/wallet/balance",height:200,allowConfiguration:!1,data:o.data,config:o.config})})}function _u(e){let{peers:t,isLoading:n,connectPeer:r}=e;return(0,ea.jsx)(S4,{title:"Peers",actions:(0,ea.jsx)(s_,{onClick:r,children:"Connect"}),isLoading:n,dataset:(null==t?void 0:t.map(e=>({type:"ip",hash:e})))||[]})}function _c(e){let{size:t,label:n,enabled:r=!0,onChange:i,color:a}=e;return(0,ea.jsxs)("div",{className:(0,eW.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:[a&&(0,ea.jsx)("div",{className:"relative top-px",children:(0,ea.jsx)(hv,{style:{backgroundColor:a}})}),(0,ea.jsx)(nw,{size:t,children:n})]})}function _d(e){let{children:t,variant:n,align:r}=e;return(0,ea.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,ea.jsx)(nw,{size:"10",color:"contrast",dir:"start"===r?"rtl":"ltr",weight:"primary"===n?"semibold":"regular",ellipsis:!0,children:t})})}function _f(e){let{date:t,align:n,variant:r}=e;return t?(0,ea.jsx)(_d,{variant:r,align:n,children:(0,vt.rN)(t)}):null}function _h(e){let{blockHeight:t,align:n,variant:r}=e;return t?(0,ea.jsx)(_d,{variant:r,align:n,children:t.toLocaleString()}):null}function _p(e){let{label:t,currentHeight:n,range:r,startHeight:i,endHeight:a,color:o,align:l,rounded:s,className:u,showDates:c}=e;if(!i||!a)return null;let d=r.endHeight-r.startHeight,f=(0,vt.pp)(d),h=(0,vt.jr)(n,r.startHeight),p=(0,vt.jr)(n,i),m=(0,vt.jr)(n,a),g=(p-h)/f,v=(m-h)/f;return(0,ea.jsxs)("div",{className:(0,eW.cx)("group flex items-center justify-center","absolute -top-[5px] h-4","cursor-pointer","transition-colors"),style:{left:_m(g),width:_m(v-g)},children:[(0,ea.jsx)("div",{className:(0,eW.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,ea.jsx)("div",{className:(0,eW.cx)("z-10 absolute w-full h-1.5",u,"start"===s?"rounded-l-lg":"end"===s?"rounded-r-lg":"rounded-lg","border-y","start"===s?"border-l":"end"===s?"border-r":"border","blue"===o?["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"===o?["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"===o?["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,ea.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 bottom-[100%]",style:"center"===l?{width:"100%"}:"end"===l?{right:_m(1-v)}:{left:_m(g)},children:[(0,ea.jsx)(_h,{blockHeight:i,align:"start",variant:"primary"}),(0,ea.jsx)(_d,{variant:"primary",children:t}),(0,ea.jsx)(_h,{blockHeight:a,align:"end",variant:"primary"})]}),c&&(0,ea.jsxs)("div",{className:"flex group-hover/segments:hidden absolute justify-between gap-2 top-[100%]",style:"center"===l?{width:"100%"}:"end"===l?{right:_m(1-v)}:{left:_m(g)},children:[(0,ea.jsx)(_f,{date:p,align:"start",variant:"secondary"}),(0,ea.jsx)(_f,{date:m,align:"start",variant:"secondary"})]}),(0,ea.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 top-[100%]",style:"center"===l?{width:"100%"}:"end"===l?{right:_m(1-v)}:{left:_m(g)},children:[(0,ea.jsx)(_f,{date:p,align:"start",variant:"secondary"}),(0,ea.jsx)(_f,{date:m,align:"start",variant:"secondary"})]})]})}function _m(e){return"".concat(100*e,"%")}function _g(e){var t;let{currentHeight:n,eventHeight:r,range:i,label:a,bottomLabel:o,color:l,className:s,unconfirmedPing:u=!0}=e,c=!!r&&r>n,d=r&&!c&&n-r<6,f=i.endHeight-i.startHeight,h=(0,vt.pp)(f),p=(0,vt.jr)(n,i.startHeight),m=r?(0,vt.jr)(n,r):0;return r?(0,ea.jsx)("div",{className:(0,eW.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:(t=m?(m-p)/h:0,"".concat(100*t,"%"))},children:(0,ea.jsxs)("div",{className:(0,eW.cx)("relative w-full h-full","flex items-center justify-center","rounded-full cursor-pointer"),children:[u&&d&&(0,ea.jsx)("div",{className:(0,eW.cx)("z-0 absolute w-1.5 h-1.5","rounded-full","bg-amber-500 dark:bg-amber-200","animate-pingslow")}),(0,ea.jsx)("div",{className:(0,eW.cx)("z-0 absolute w-4 h-4","rounded-full","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10")}),(0,ea.jsx)("div",{className:(0,eW.cx)("absolute w-1.5 h-1.5","rounded-full","border","green"===l?["bg-green-500 dark:bg-green-500","group-hover:bg-green-600 dark:group-hover:bg-green-600","border-white dark:border-white"]:[],"amber"===l?["bg-amber-500 dark:bg-amber-500","group-hover:bg-amber-600 dark:group-hover:bg-amber-600","border-white dark:border-white"]:[],"gray"===l?["bg-gray-700 dark:bg-graydark-900","group-hover:bg-gray-800 dark:group-hover:bg-graydark-800","border-white dark:border-white"]:[],"blue"===l?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-white dark:border-white"]:[])}),(0,ea.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 bottom-[100%] left-1.5",children:[(0,ea.jsx)(_h,{blockHeight:r,align:"start",variant:"primary"}),(0,ea.jsx)(_d,{variant:"primary",children:a})]}),(0,ea.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 top-[100%] left-1.5",children:[(0,ea.jsx)(_f,{date:m,align:"start",variant:"secondary"}),o&&(0,ea.jsx)(_d,{variant:"secondary",children:o})]})]})}):null}function _v(e){let{currentHeight:t,contractHeightStart:n,contractHeightEnd:r,proofWindowHeightStart:i,proofWindowHeightEnd:a,revisionHeight:o,proofHeight:l,range:s}=e,u=t-n<6;return(0,ea.jsx)("div",{className:"group/main relative w-full",children:(0,ea.jsx)("div",{className:"relative py-6",children:(0,ea.jsxs)("div",{className:"relative z-10 h-1.5",children:[(0,ea.jsx)("div",{className:"absolute h-full w-full bg-gray-300 dark:bg-graydark-400 rounded-lg"}),(0,ea.jsxs)("div",{className:"group/segments",children:[(0,ea.jsx)(_p,{label:"contract duration",currentHeight:t,startHeight:n,endHeight:r,range:s,color:"blue",align:"center",rounded:"start",className:u?"border-dotted opacity-50":"",showDates:!0}),(0,ea.jsx)(_p,{label:"proof window",currentHeight:t,startHeight:i,endHeight:a,range:s,color:"green",align:"end",rounded:"end",className:u?"border-dotted opacity-50":""}),(0,ea.jsx)(_g,{label:"contract formation",bottomLabel:u?"unconfirmed":"",currentHeight:t,eventHeight:n,range:s,color:u?"amber":"blue",className:"z-20"}),(0,ea.jsx)(_g,{label:"last revision",currentHeight:t,eventHeight:o,range:s,color:"green",className:"z-20"}),(0,ea.jsx)(_g,{label:"storage proof",currentHeight:t,eventHeight:l,range:s,color:"green",className:"z-20"}),(0,ea.jsx)(_g,{label:"current block",currentHeight:t,eventHeight:t,range:s,color:"gray",className:"z-10",unconfirmedPing:!1})]})]})})})}var _y=n(90463),_x=n(58527),_b=n(40704),_w=n(95598),_j=n(93225),_k=n(11749),_E=function(e,t,n,r){var i=-1,a=_x.Z,o=!0,l=e.length,s=[],u=t.length;if(!l)return s;n&&(t=(0,_w.Z)(t,(0,_j.Z)(n))),r?(a=_b.Z,o=!1):t.length>=200&&(a=_k.Z,o=!1,t=new _y.Z(t));t:for(;++i{e.stopPropagation(),i(n)},children:(0,ea.jsx)(sO.xVB,{})}),(0,ea.jsx)(s_,{icon:l?"contrast":"hover",tip:"".concat(t,": hide all"),variant:"ghost",onClick:e=>{e.stopPropagation(),a(n)},children:(0,ea.jsx)(sO.pHg,{})})]})]})}function _O(e){let{title:t,children:n}=e;return(0,ea.jsxs)("div",{className:"flex flex-col gap-6",children:[t&&(0,ea.jsx)(du,{anchorLink:!0,size:"24",children:t}),(0,ea.jsx)(nE,{className:"p-6",children:(0,ea.jsx)("div",{className:"flex flex-col gap-6",children:(0,ea.jsx)(M4,{separator:(0,ea.jsx)(c0,{className:"w-full my-3"}),children:n})})})]})}function _T(e){let{id:t,title:n,description:r,control:i}=e;return(0,ea.jsxs)("div",{className:"flex gap-10 justify-between","data-testid":t,children:[(0,ea.jsxs)("div",{className:"flex flex-col gap-2 max-w-[600px]",children:[(0,ea.jsx)(du,{id:t||n,anchorLink:!0,size:"20",children:n}),(0,ea.jsx)(nj,{size:"14",children:r})]}),(0,ea.jsx)("div",{className:"",children:i})]})}function _A(e){let{open:t,params:n,trigger:r,onOpenChange:i}=e,{body:a,title:o,variant:l,action:s,onConfirm:u}=n||{},c=(0,PT.cI)(),d=(0,eo.useCallback)(()=>{u&&u(),i(!1)},[u,i]);return(0,ea.jsx)(uP,{title:o,trigger:r,open:t,onOpenChange:i,contentVariants:{className:"w-[400px]"},children:(0,ea.jsx)("form",{onSubmit:c.handleSubmit(d),children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[a,(0,ea.jsx)("div",{className:"flex gap-1 justify-end",children:(0,ea.jsx)(S9,{variant:l,form:c,size:"small",children:s})})]})})})}function _N(e){let{name:t,peerCount:n,isSynced:r,nodeBlockHeight:i,connectPeer:a}=e;return(0,ea.jsxs)("div",{className:"flex justify-between items-center",children:[(0,ea.jsx)(nw,{font:"mono",weight:"bold",size:"20",children:t}),(0,ea.jsxs)("div",{className:"flex items-center",children:[n?(0,ea.jsxs)(s_,{className:"relative left-2 only:left-0",variant:"ghost",onClick:a,tip:"".concat(n," connected peers"),children:[(0,ea.jsx)(nw,{color:"subtle",children:n.toLocaleString()}),(0,ea.jsx)(sO.RK4,{})]}):null,i&&r?(0,ea.jsx)(sM,{content:"Blockchain is synced",children:(0,ea.jsx)("div",{className:"relative left-2",children:(0,ea.jsxs)(s_,{variant:"ghost",state:"waiting",children:[(0,ea.jsx)(nw,{color:"subtle",children:i.toLocaleString()}),(0,ea.jsx)(nw,{color:"green",children:(0,ea.jsx)(sO.Y3p,{})})]})})}):null]})]})}function _R(e){let{nodeBlockHeight:t,networkBlockHeight:n,moreThan100BlocksToSync:r,percent:i}=e;return(0,ea.jsxs)("div",{className:"flex flex-col justify-between h-full mb-1",children:[(0,ea.jsx)(d3,{variant:"accent",value:t&&n?t:0,max:n||1,className:""}),(0,ea.jsxs)("div",{className:"flex justify-between mt-1.5",children:[(0,ea.jsx)(nw,{color:"subtle",size:"10",children:"Syncing..."}),t&&n?r?(0,ea.jsx)(nw,{color:"subtle",size:"10",children:"".concat(t.toLocaleString()," / ").concat(n.toLocaleString()," (").concat(i,"%)")}):(0,ea.jsx)(nw,{color:"subtle",size:"10",children:"(".concat(i,"%)")}):null]})]})}function _D(e){let{name:t,peerCount:n,connectPeer:r,isSynced:i,syncPercent:a,nodeBlockHeight:o,estimatedBlockHeight:l,firstTimeSyncing:s,moreThan100BlocksToSync:u,children:c}=e;return(0,ea.jsx)(pg,{rootProps:{openDelay:100,closeDelay:1e3},contentProps:{side:"right",align:"start",sideOffset:5,className:"!max-w-none"},trigger:(0,ea.jsxs)("div",{className:"relative hover:scale-105 transition-transform",children:[i||100===a||0===a?null:(0,ea.jsx)("div",{className:"absolute -bottom-2.5 w-full flex justify-center",children:(0,ea.jsxs)(nw,{className:"bg-amber-500 py-px px-1 rounded-sm scale-75",size:"10",children:[a,"%"]})}),(0,ea.jsx)(dj,{size:30})]}),children:(0,ea.jsxs)("div",{className:"flex flex-col gap-2 px-1 pt-1 pb-2 w-[350px]",children:[(0,ea.jsx)(_N,{nodeBlockHeight:o,isSynced:i,name:t,peerCount:n,connectPeer:r}),i?(0,ea.jsx)(c0,{className:"w-full mb-0.5"}):(0,ea.jsx)(_R,{percent:a,nodeBlockHeight:o,networkBlockHeight:l,moreThan100BlocksToSync:u}),s&&(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsx)(nw,{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,ea.jsx)(c0,{className:"w-full mb-1"})]}),c]})})}function _L(e){let{testnetName:t}=e;return(0,ea.jsxs)("div",{className:"flex gap-2 items-center justify-center py-2 px-3 bg-amber-600 dark:bg-amber-500",children:[(0,ea.jsx)(nw,{color:"lo",children:(0,ea.jsx)(sO.RdX,{})}),(0,ea.jsxs)(nw,{size:"14",color:"lo",children:["You are on the ",t," testnet."]})]})}function _Z(e){let{type:t,label:n,link:r,tip:i,icon:a,value:o,onClick:l,format:s,decimalsLimit:u,units:c}=e;return(0,ea.jsxs)("div",{className:"flex justify-between items-center",children:[(0,ea.jsx)(sM,{align:"start",side:"bottom",content:i,children:(0,ea.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,ea.jsx)(nw,{className:"flex relative",children:a||(0,ea.jsx)(sO.RdX,{})}),(0,ea.jsx)(nw,{size:"12",ellipsis:!0,children:r?(0,ea.jsx)(dx,{href:r,target:"_blank",children:n}):n})]})}),(0,ea.jsx)("div",{role:"button",tabIndex:0,"aria-label":n,className:(0,eW.cx)("flex items-center",l?"cursor-pointer":""),onClick:()=>{l&&l(o)},children:"siacoin"===t?(0,ea.jsx)(SI,{value:o,variant:"value",size:"12",fixed:u,dynamicUnits:!1,showTooltip:!1,tipSide:"bottom"}):(0,ea.jsx)(SH,{value:o,variant:"value",size:"12",format:s||(e=>"".concat(ht(e,u)).concat(c?" ".concat(c):"")),tipSide:"bottom"})})]})}function _F(e){let{name:t,form:n,fields:r,size:i="small",group:a=!0}=e,o=r[t],{placeholder:l,average:s,suggestion:u,units:c,decimalsLimitSc:d=6,decimalsLimitFiat:f=6}=o,{setValue:h,onBlur:p,value:m,error:g}=PN({name:t,field:o,form:n}),v=(0,eo.useMemo)(()=>l?new(he())(l):u&&"boolean"!=typeof u?new(he())(u):s&&"boolean"!=typeof s?new(he())(s):void 0,[l,u,s]),y=(0,ea.jsx)(hl,{name:t,size:i,sc:m,units:c,decimalsLimitSc:d,decimalsLimitFiat:f,readOnly:o.readOnly,error:g,changed:n.formState.dirtyFields[t],placeholder:v,onChange:e=>{h(e,!0)},onBlur:p});return a?(0,ea.jsx)(S7,{title:o.title,name:t,form:n,children:y}):y}function _z(e){let{form:t,fields:n,name:r}=e;return(0,eo.useCallback)((e,i)=>{_V({form:t,fields:n,name:r,value:e,options:i})},[r,t,n])}function _V(e){var t;let{form:n,fields:r,name:i,value:a,options:o}=e;n.setValue(i,a,"boolean"==typeof o?o?{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0}:void 0:o),null===(t=r[i].trigger)||void 0===t||t.forEach(e=>n.trigger(e))}function _B(e){let{form:t,fields:n,values:r,options:i}=e;for(let[e,a]of Object.entries(r))_V({form:t,fields:n,name:e,value:a,options:i})}function _I(e){let{name:t,form:n,fields:r}=e,{average:i,averageTip:a,suggestionLabel:o,suggestion:l,suggestionTip:s,before:u,after:c,tipsDecimalsLimitSc:d=0}=r[t],f=_z({name:t,fields:r,form:n});return(0,ea.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,ea.jsxs)("div",{className:"flex flex-col w-[260px]",children:[(0,ea.jsx)(u||(()=>null),{name:t,form:n,fields:r}),(0,ea.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,ea.jsx)(_F,{name:t,fields:r,form:n,group:!1,size:"small"}),i&&(0,ea.jsx)(_Z,{type:"siacoin",label:"Network average",tip:a||"Averages provided by Sia Central.",decimalsLimit:d,value:(0,vt.qN)(i),onClick:()=>{f(i,!0)}}),l&&s&&(0,ea.jsx)(_Z,{type:"siacoin",label:o||"Suggestion",tip:s,decimalsLimit:d,value:(0,vt.qN)(l),onClick:()=>{f(l,!0)}}),(0,ea.jsx)(c||(()=>null),{name:t,form:n,fields:r})]})]}),(0,ea.jsx)("div",{className:"h-[20px]",children:(0,ea.jsx)(S6,{form:n,name:t})})]})}function _H(e){let{name:t,form:n,fields:r,size:i="small",group:a=!0}=e,o=r[t],{placeholder:l,average:s,suggestion:u,units:c,decimalsLimit:d=2,disableGroupSeparators:f,autoComplete:h,prefix:p}=o,{setValue:m,onBlur:g,error:v,value:y}=PN({form:n,field:o,name:t}),x=(0,eo.useMemo)(()=>l?new(he())(l):u&&"boolean"!=typeof u?new(he())(u):s&&"boolean"!=typeof s?new(he())(s):void 0,[l,u,s]),b=(0,ea.jsx)(hr,{prefix:p,name:t,value:y,units:c,size:i,decimalsLimit:d,disableGroupSeparators:f,autoComplete:h,placeholder:x?new(he())(x):void 0,state:v?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:e=>{m(void 0!==e?new(he())(e):void 0,!0)},onBlur:g});return a?(0,ea.jsx)(S7,{title:o.title,name:t,form:n,wrap:!0,children:b}):b}function _U(e){let{name:t,form:n,fields:r}=e,{average:i,averageTip:a,suggestionLabel:o,suggestion:l,suggestionTip:s,decimalsLimit:u=2,after:c,units:d}=r[t],f=_z({form:n,fields:r,name:t});return(0,ea.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,ea.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,ea.jsx)(_H,{name:t,fields:r,form:n,group:!1}),i&&(0,ea.jsx)(_Z,{type:"number",label:"Network average",tip:a||"Averages provided by Sia Central.",decimalsLimit:u,value:i,onClick:()=>{f(i,!0)}}),l&&s&&(0,ea.jsx)(_Z,{type:"number",label:o||"Suggestion",tip:s,decimalsLimit:u,value:l,units:d,onClick:()=>{f(l,!0)}}),(0,ea.jsx)(c||(()=>null),{name:t,form:n,fields:r})]}),(0,ea.jsx)("div",{className:"h-[20px]",children:(0,ea.jsx)(S6,{form:n,name:t})})]})}function _W(e){let{label:t,link:n,tip:r,value:i,onClick:a}=e;return(0,ea.jsxs)("div",{className:"flex justify-between gap-1 items-center overflow-hidden",children:[(0,ea.jsx)("div",{children:(0,ea.jsx)(sM,{align:"start",side:"bottom",content:r,children:(0,ea.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,ea.jsx)(nw,{className:"flex relative",children:(0,ea.jsx)(sO.RdX,{})}),(0,ea.jsx)(nw,{size:"12",children:n?(0,ea.jsx)(dx,{href:n,target:"_blank",children:t}):t})]})})}),(0,ea.jsx)("div",{className:"overflow-hidden",children:(0,ea.jsx)(nw,{role:"button",tabIndex:0,"aria-label":t,className:"flex cursor-pointer items-center",onClick:a,size:"12",children:(0,ea.jsx)(sY,{ellipsis:!0,className:"block",children:i})})})]})}function _q(e){let{name:t,form:n,fields:r,type:i}=e,{suggestionLabel:a,suggestion:o,suggestionTip:l}=r[t],s=_z({form:n,name:t,fields:r});return(0,ea.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,ea.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,ea.jsx)(PL,{name:t,form:n,fields:r,type:i,group:!1}),o&&l&&(0,ea.jsx)(_W,{label:a||"Suggestion",tip:l,value:o,onClick:()=>{s(o,!0)}})]}),(0,ea.jsx)("div",{className:"h-[20px]",children:(0,ea.jsx)(S6,{form:n,name:t})})]})}function _$(e){let{name:t,form:n,fields:r,size:i="medium",group:a=!0,before:o,children:l}=e,s=r[t],{setValue:u,onBlur:c,value:d,error:f}=PN({name:t,field:s,form:n}),h=(0,ea.jsxs)("div",{className:"flex gap-1 items-center",children:[o,(0,ea.jsx)(h_,{"aria-label":t,name:t,size:i,checked:d,state:f?"invalid":n.formState.dirtyFields[t]?"valid":"default",onCheckedChange:e=>{u(e,!0)},onBlur:c}),l]});return a?(0,ea.jsx)(S7,{title:s.title,name:t,form:n,className:"pb-[1.5px]",children:h}):h}function _K(e){let{name:t,form:n,fields:r}=e,{suggestionLabel:i,suggestion:a,suggestionTip:o}=r[t],l=_z({form:n,name:t,fields:r});return(0,ea.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,ea.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,ea.jsx)("div",{className:"flex justify-end w-full",children:(0,ea.jsx)(_$,{name:t,form:n,fields:r,group:!1})}),void 0!==a&&o&&(0,ea.jsx)(_W,{label:i||"Suggestion",tip:o,value:a?"on":"off",onClick:()=>{l(a,!0)}})]}),(0,ea.jsx)("div",{className:"h-[20px]",children:(0,ea.jsx)(S6,{form:n,name:t})})]})}function _Y(e){let{name:t,form:n,fields:r,size:i="small",group:a=!0}=e,o=r[t],{options:l}=o,{ref:s,onChange:u,onBlur:c,error:d}=PN({name:t,form:n,field:o}),f=(0,ea.jsx)(hf,{ref:s,name:t,size:i,state:d?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:u,onBlur:c,children:null==l?void 0:l.map(e=>(0,ea.jsx)(hh,{value:e.value,children:e.label},e.value))});return a?(0,ea.jsx)(S7,{title:o.title,name:t,form:n,children:f}):f}function _X(e){let{name:t,form:n,fields:r}=e,{suggestionLabel:i,suggestion:a,suggestionTip:o}=r[t],l=_z({form:n,name:t,fields:r});return(0,ea.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,ea.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,ea.jsx)("div",{className:"flex justify-end w-full",children:(0,ea.jsx)(_Y,{name:t,fields:r,form:n,group:!1,size:"small"})}),a&&o&&(0,ea.jsx)(_W,{label:i||"Suggestion",tip:o,value:a,onClick:()=>{l(a,!0)}})]}),(0,ea.jsx)("div",{className:"h-[20px]",children:(0,ea.jsx)(S6,{form:n,name:t})})]})}function _G(e){let{name:t,form:n,fields:r}=e,i=r[t],a=i.custom||(()=>null);return"custom"===i.type?(0,ea.jsx)(a,{form:n,name:t,fields:r}):"number"===i.type?(0,ea.jsx)(_U,{form:n,name:t,fields:r}):"siacoin"===i.type?(0,ea.jsx)(_I,{form:n,name:t,fields:r}):"text"===i.type?(0,ea.jsx)(_q,{form:n,name:t,fields:r}):"password"===i.type?(0,ea.jsx)(_q,{form:n,type:"password",fields:r,name:t}):"boolean"===i.type?(0,ea.jsx)(_K,{form:n,name:t,fields:r}):"select"===i.type?(0,ea.jsx)(_X,{form:n,name:t,fields:r}):null}function _J(e){let{name:t,form:n,fields:r,autoVisibility:i}=e,a=r[t],o=PD({form:n,fields:r,name:t});return!i||o?(0,ea.jsx)(_T,{id:t,title:a.title,description:a.description,control:(0,ea.jsx)(_G,{form:n,name:t,fields:r})}):null}function _Q(e){let{title:t,category:n,form:r,fields:i}=e,a=Object.entries(i).filter(e=>{let[t,a]=e;return a.category===n&&PD({form:r,fields:i,name:t})}).map(e=>{let[t]=e;return t});return 0===a.length?null:(0,ea.jsx)(_O,{title:t,children:a.map(e=>(0,ea.jsx)(_J,{name:e,form:r,fields:i},e))})}function _0(e){let{name:t,form:n,fields:r,size:i="small",currency:a,group:o=!0}=e,{settings:l}=(0,hi.Hv)(),s=(0,ha.BW)({disabled:!l.siaCentral,config:{swr:{revalidateOnFocus:!1}}}),u=(0,eo.useMemo)(()=>{var e;return new(he())(l.siaCentral&&s.data&&a&&(null===(e=s.data)||void 0===e?void 0:e.rates.sc[a])||0)},[s.data,l,a]),c=r[t],{placeholder:d,decimalsLimit:f=2,units:h}=c,{setValue:p,onBlur:m,error:g,value:v}=PN({form:n,field:c,name:t}),y=(0,eo.useMemo)(()=>hi.mV.find(e=>e.id===a),[a]),x=n.formState.dirtyFields[t],b=(0,ea.jsxs)("div",{className:(0,eW.cx)("flex flex-col","focus-within:ring ring-blue-500 dark:ring-blue-200","border",c.readOnly?"bg-gray-200 dark:bg-graydark-300":"bg-white dark:bg-graydark-50",c.readOnly?"pointer-events-none":"",c.readOnly?"border-blue-400 dark:border-blue-400":g?"border-red-500 dark:border-red-400":x?"border-green-500 dark:border-green-400":"border-gray-200 dark:border-graydark-200","rounded"),children:[(0,ea.jsx)(hr,{name:t,value:v,units:"".concat((null==y?void 0:y.label)||"?").concat(h||""),prefix:null==y?void 0:y.prefix,size:i,variant:"ghost",focus:"none",readOnly:c.readOnly,decimalsLimit:(null==y?void 0:y.fixed)||f,placeholder:d?new(he())(d):void 0,state:g?"invalid":x?"valid":"default",onChange:e=>{p(void 0!==e?new(he())(e):void 0,!0)},onBlur:m}),u&&(0,ea.jsx)(_1,{value:v,currency:a,rate:u})]});return o?(0,ea.jsx)(S7,{title:c.title,name:t,form:n,wrap:!0,children:b}):b}function _1(e){let{value:t,rate:n}=e,r=t&&!t.isZero()&&n&&!n.isZero(),i=r?(0,vt.qN)(t).div(n):new(he())(0);return(0,ea.jsxs)(nE,{className:"flex gap-1 items-center justify-between relative overflow-hidden px-2 py-1.5 rounded-t-none",children:[(0,ea.jsx)(sM,{side:"bottom",content:"The pinned value's current siacoin value",children:(0,ea.jsxs)(nw,{className:"flex gap-1 relative",size:"12",children:[(0,ea.jsx)(sO.oce,{}),"Current value"]})}),r?(0,ea.jsx)(Sz,{value:i,size:"12",variant:"value",fixed:0,dynamicUnits:!0,hastingUnits:!1,tipSide:"bottom"}):(0,ea.jsx)(nw,{size:"12",ellipsis:!0,color:r?"contrast":"verySubtle",children:"-"})]})}function _2(e){let{name:t,form:n,fields:r,currency:i}=e,{average:a,averageTip:o,suggestionLabel:l,suggestion:s,suggestionTip:u,before:c,after:d}=r[t],f=_z({form:n,fields:r,name:t}),h=hi.mV.find(e=>e.id===i);if(!i||!h)return null;let{prefix:p,fixed:m}=h;return(0,ea.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,ea.jsxs)("div",{className:"flex flex-col w-[260px]",children:[(0,ea.jsx)(c||(()=>null),{name:t,form:n,fields:r}),(0,ea.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,ea.jsx)(_0,{name:t,fields:r,form:n,group:!1,currency:i}),a&&(0,ea.jsx)(_Z,{type:"number",format:e=>"".concat(p).concat(e.toFixed(m)),label:"Network average",tip:o||"Averages provided by Sia Central.",value:a,decimalsLimit:m,onClick:()=>{f(a,!0)}}),s&&u&&(0,ea.jsx)(_Z,{type:"number",format:e=>"".concat(p).concat(e.toFixed(m)),label:l||"Suggestion",tip:u,decimalsLimit:m,value:s,onClick:()=>{f(s,!0)}}),(0,ea.jsx)(d||(()=>null),{name:t,form:n,fields:r})]})]}),(0,ea.jsx)("div",{className:"h-[20px]",children:(0,ea.jsx)(S6,{form:n,name:t})})]})}function _4(e){let{form:t,remoteValues:n}=e,r=(0,eo.useCallback)(()=>{if(t.formState.isSubmitting||!n)return;let e=t.getValues();for(let[e,r]of Object.entries(n))t.resetField(e,{defaultValue:r,keepDirty:!0,keepError:!0,keepTouched:!0});for(let[n,r]of Object.entries(e))t.getFieldState(n).isDirty&&t.setValue(n,r)},[t,n]);(0,eo.useEffect)(()=>{r()},[n])}function _3(e){let{form:t}=e;return{changeCount:Object.entries(t.formState.dirtyFields).filter(e=>{let[t,n]=e;return!!n}).length}}function _5(e){let{form:t,remoteValues:n}=e,[r,i]=(0,eo.useState)(!1),{isUnlockedAndAuthedRoute:a}=(0,hi.Hv)();(0,eo.useEffect)(()=>{a||i(!1)},[a]),(0,eo.useEffect)(()=>{!r&&n&&(i(!0),t.reset(n))},[n])}sO.lg1,sO.eHR,sO.I$H,sO.KiD,sO.P5r,sO.CCF,sO.w9S,sO.EL$,sO.aPl,sO.wEY,sO.EOT,sO.kSc,sO.W$S,sO.lJ7,sO.ORH,sO.ka0,sO.BdP,sO.d19,sO.Mes,sO.VUg,sO.U_S,sO.T85;let _6=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,[o,l]=(0,eo.useState)(!0),s=(0,eo.useRef)(!1),u=(0,eo.useRef)(0);return(0,eo.useEffect)(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,eo.createElement)(nn,{scope:t,isOpenDelayed:o,delayDuration:n,onOpen:(0,eo.useCallback)(()=>{window.clearTimeout(u.current),l(!1)},[]),onClose:(0,eo.useCallback)(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>l(!0),r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:(0,eo.useCallback)(e=>{s.current=e},[]),disableHoverableContent:i},a)};function _8(e){let{children:t}=e,[n,r]=(0,eo.useState)(!1);return(0,eo.useEffect)(()=>{r(!0)},[]),(0,ea.jsx)("div",{children:n?t:null})}function _7(e){let{className:t,passwordProtectRequestHooks:n,fallback:r,children:i,lockRoutes:a}=e;return(0,ea.jsx)(_8,{children:(0,ea.jsx)(hi.kl,{fallback:r,children:(0,ea.jsx)(p6.f,{attribute:"class",children:(0,ea.jsx)(_6,{children:(0,ea.jsx)(hi.bW,{lockRoutes:a,passwordProtectRequestHooks:n,children:(0,ea.jsxs)("div",{id:"root",className:t,children:[(0,ea.jsx)(SP,{}),i]})})})})})})}var _9=n(28356),Oe=Math.min,Ot=function(e,t,n){for(var r=n?_b.Z:_x.Z,i=e[0].length,a=e.length,o=a,l=Array(a),s=1/0,u=[];o--;){var c=e[o];o&&t&&(c=(0,_w.Z)(c,(0,_j.Z)(t))),s=Oe(c.length,s),l[o]=!n&&(t||i>=120&&c.length>=120)?new _y.Z(o&&c):void 0}c=e[0];var d=-1,f=l[0];t:for(;++d{s(t=>t.includes(e)?t.filter(t=>t!==e):t.concat(e))},[s]),c=(0,eo.useCallback)(e=>{s(t=>(0,_9.Z)([...t,...e]))},[s]),d=(0,eo.useCallback)(e=>{s(t=>_P(t,e))},[s]),f=(0,eo.useCallback)(()=>{s(r)},[s,r]),h=(0,eo.useMemo)(()=>n.filter(e=>{let t=null==o?void 0:o.includes(e.category||"");return!e.fixed&&!t}),[n,o]),p=(0,eo.useMemo)(()=>n.filter(e=>{let t=e.fixed||l.includes(e.id),n=null==o?void 0:o.includes(e.category||"");return t&&!n}).map(e=>e.id),[n,l,o]),{sortField:m,sortDirection:g,setSortField:v,setSortDirection:y,toggleSort:x}=function(e,t){let{defaultSortField:n,sortOptions:r,enabledColumns:i}=t,[a,o]=(0,kG.Z)("".concat(e,"/sortField"),{defaultValue:n}),[l,s]=(0,kG.Z)("".concat(e,"/sortDirection"),{defaultValue:"desc"});return{toggleSort:(0,eo.useCallback)(e=>{if(a!==e){o(e),s("asc");return}s(e=>"desc"===e?"asc":"desc")},[a,o,s]),setSortDirection:s,setSortField:o,sortableColumns:(0,eo.useMemo)(()=>r?Or(r.map(e=>e.id),i):[],[r,i]),sortField:a,sortDirection:l}}(e,{defaultSortField:i,sortOptions:a,enabledColumns:p}),b=(0,eo.useMemo)(()=>a?Or(a.map(e=>e.id),p):[],[a,p]);return{configurableColumns:h,enabledColumns:p,toggleColumnVisibility:u,toggleSort:x,setSortDirection:y,setSortField:v,sortableColumns:b,sortField:m,setColumnsVisible:c,setColumnsHidden:d,sortDirection:g,resetDefaultColumnVisibility:f}}function Oo(){let e=(0,da.xj)(),t=(0,da.jD)(),n=(0,da.lr)();return(0,eo.useCallback)(()=>{if(!e||!t)return;let r=new URLSearchParams(n),i=r.toString();r.delete("limit"),r.delete("offset"),r.delete("marker");let a=r.toString(),o=i?"".concat(t,"?").concat(i):t,l=a?"".concat(t,"?").concat(a):t;l!==o&&e.replace(l)},[e,n,t])}function Ol(){let[e,t]=(0,eo.useState)([]),n=Oo(),r=(0,eo.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e.id).concat(e)),n()},[t,n]),i=(0,eo.useCallback)(()=>{t([]),n()},[t,n]),a=(0,eo.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e)),n()},[t,n]),o=(0,eo.useCallback)(()=>{e.length&&(t(e=>e.slice(0,-1)),n())},[t,e,n]);return{filters:e,setFilter:r,removeFilter:a,removeLastFilter:o,resetFilters:i}}function Os(e){let{dataset:t,filters:n,sortField:r,sortDirection:i}=e;return(0,eo.useMemo)(()=>{if(!t)return null;let e=Object.entries(n).map(e=>{let[t,n]=e;return n}),a=e.length?t.filter(t=>{for(let n of e)if(!n.fn(t))return!1;return!0}):t;return[...a=a.sort((e,t)=>{let n=e[r],a=t[r];return"desc"===i?void 0===n?1:void 0===a?-1:n instanceof he()&&a instanceof he()?n.lte(a)?1:-1:n<=a?1:-1:void 0===n?-1:void 0===a?1:n instanceof he()&&a instanceof he()?n.gte(a)?1:-1:n>=a?1:-1})]},[t,n,r,i])}function Ou(){let[e,t]=(0,eo.useState)([]),n=Oo(),r=(0,eo.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e.id).concat(e)),n()},[t,n]),i=(0,eo.useCallback)(()=>{t([]),n()},[t,n]),a=(0,eo.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e)),n()},[t,n]),o=(0,eo.useCallback)(()=>{e.length&&(t(e=>e.slice(0,-1)),n())},[e,t,n]);return{filters:e,setFilter:r,removeFilter:a,removeLastFilter:o,resetFilters:i}}let Oc=new(he())(0);function Od(e){let{sc:t}=e,{settings:n}=(0,hi.Hv)(),r=(0,ha.BW)({config:{swr:{revalidateOnFocus:!1}}}),i=(0,eo.useMemo)(()=>{var e;return n.siaCentral&&r.data?new(he())((null===(e=r.data)||void 0===e?void 0:e.rates.sc[n.currency.id])||Oc):Oc},[r.data,n]),a=(0,eo.useMemo)(()=>new(he())(t).times(i),[t,i]);return i.isZero()?{}:{fiat:a,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,vt.gU)(5),n.startHeight=n.startHeight-(0,vt.gU)(5);let r=[],i=n.startHeight;for(;i<=n.endHeight;)r.push(i),i+=kV(1);return{allDatesMap:r.reduce((e,t)=>({...e,[t]:{total:null,timestamp:t}}),{}),range:n}}let Oh=/^[a-z]{2}$/i;function Op(e){if(!Oh.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."))}return String.fromCodePoint(...[...e.toUpperCase()].map(e=>e.codePointAt()+127397))}let Om=(()=>{let e=0,t=()=>`0000${(1679616*Math.random()<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function Og(e){let t=[];for(let n=0,r=e.length;n{let r=new Image;r.decode=()=>t(r),r.onload=()=>t(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function Ob(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function Ow(e,t,n){let r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),a=document.createElementNS(r,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${t} ${n}`),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("externalResourcesRequired","true"),i.appendChild(a),a.appendChild(e),Ob(i)}let Oj=(e,t)=>{if(e instanceof t)return!0;let n=Object.getPrototypeOf(e);return null!==n&&(n.constructor.name===t.name||Oj(n,t))};function Ok(e,t,n){let r=window.getComputedStyle(e,n),i=r.getPropertyValue("content");if(""===i||"none"===i)return;let a=Om();try{t.className=`${t.className} ${a}`}catch(e){return}let o=document.createElement("style");o.appendChild(function(e,t,n){let r=`.${e}:${t}`,i=n.cssText?function(e){let t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}(n):Og(n).map(e=>{let t=n.getPropertyValue(e),r=n.getPropertyPriority(e);return`${e}: ${t}${r?" !important":""};`}).join(" ");return document.createTextNode(`${r}{${i}}`)}(a,n,r)),t.appendChild(o)}let OE="application/font-woff",OS="image/jpeg",OC={woff:OE,woff2:OE,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:OS,jpeg:OS,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function OM(e){return OC[(function(e){let t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""})(e).toLowerCase()]||""}function OP(e){return -1!==e.search(/^(data:)/)}function O_(e,t){return`data:${t};base64,${e}`}async function OO(e,t,n){let r=await fetch(e,t);if(404===r.status)throw Error(`Resource "${r.url}" not found`);let i=await r.blob();return new Promise((e,t)=>{let a=new FileReader;a.onerror=t,a.onloadend=()=>{try{e(n({res:r,result:a.result}))}catch(e){t(e)}},a.readAsDataURL(i)})}let OT={};async function OA(e,t,n){var r,i,a;let o,l;let s=(r=e,i=t,a=n.includeQueryParams,l=r.replace(/\?.*/,""),a&&(l=r),/ttf|otf|eot|woff2?/i.test(l)&&(l=l.replace(/.*\//,"")),i?`[${i}]${l}`:l);if(null!=OT[s])return OT[s];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());try{let r=await OO(e,n.fetchRequestInit,({res:e,result:n})=>(t||(t=e.headers.get("Content-Type")||""),n.split(/,/)[1]));o=O_(r,t)}catch(r){o=n.imagePlaceholder||"";let t=`Failed to fetch resource: ${e}`;r&&(t="string"==typeof r?r:r.message),t&&console.warn(t)}return OT[s]=o,o}async function ON(e){let t=e.toDataURL();return"data:,"===t?e.cloneNode(!1):Ox(t)}async function OR(e,t){if(e.currentSrc){let t=document.createElement("canvas"),n=t.getContext("2d");return t.width=e.clientWidth,t.height=e.clientHeight,null==n||n.drawImage(e,0,0,t.width,t.height),Ox(t.toDataURL())}let n=e.poster,r=OM(n);return Ox(await OA(n,r,t))}async function OD(e){var t;try{if(null===(t=null==e?void 0:e.contentDocument)||void 0===t?void 0:t.body)return await OV(e.contentDocument.body,{},!0)}catch(e){}return e.cloneNode(!1)}async function OL(e,t){return Oj(e,HTMLCanvasElement)?ON(e):Oj(e,HTMLVideoElement)?OR(e,t):Oj(e,HTMLIFrameElement)?OD(e):e.cloneNode(!1)}let OZ=e=>null!=e.tagName&&"SLOT"===e.tagName.toUpperCase();async function OF(e,t,n){var r,i;let a=[];return 0===(a=OZ(e)&&e.assignedNodes?Og(e.assignedNodes()):Oj(e,HTMLIFrameElement)&&(null===(r=e.contentDocument)||void 0===r?void 0:r.body)?Og(e.contentDocument.body.childNodes):Og((null!==(i=e.shadowRoot)&&void 0!==i?i:e).childNodes)).length||Oj(e,HTMLVideoElement)||await a.reduce((e,r)=>e.then(()=>OV(r,n)).then(e=>{e&&t.appendChild(e)}),Promise.resolve()),t}async function Oz(e,t){let n=e.querySelectorAll?e.querySelectorAll("use"):[];if(0===n.length)return e;let r={};for(let i=0;iOL(e,t)).then(n=>OF(e,n,t)).then(t=>{var n,r;return n=e,Oj(r=t,Element)&&(!function(e,t){let n=t.style;if(!n)return;let r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):Og(r).forEach(i=>{let a=r.getPropertyValue(i);if("font-size"===i&&a.endsWith("px")){let e=Math.floor(parseFloat(a.substring(0,a.length-2)))-.1;a=`${e}px`}Oj(e,HTMLIFrameElement)&&"display"===i&&"inline"===a&&(a="block"),"d"===i&&t.getAttribute("d")&&(a=`path(${t.getAttribute("d")})`),n.setProperty(i,a,r.getPropertyPriority(i))})}(n,r),Ok(n,r,":before"),Ok(n,r,":after"),Oj(n,HTMLTextAreaElement)&&(r.innerHTML=n.value),Oj(n,HTMLInputElement)&&r.setAttribute("value",n.value),function(e,t){if(Oj(e,HTMLSelectElement)){let n=Array.from(t.children).find(t=>e.value===t.getAttribute("value"));n&&n.setAttribute("selected","")}}(n,r)),r}).then(e=>Oz(e,t)):null}let OB=/url\((['"]?)([^'"]+?)\1\)/g,OI=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,OH=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;async function OU(e,t,n,r,i){try{let a;let o=n?function(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;let n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),t&&(r.href=t),i.href=e,i.href}(t,n):t,l=OM(t);if(i){let e=await i(o);a=O_(e,l)}else a=await OA(o,l,r);return e.replace(function(e){let t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}(t),`$1${a}$3`)}catch(e){}return e}function OW(e){return -1!==e.search(OB)}async function Oq(e,t,n){if(!OW(e))return e;let r=function(e,{preferredFontFormat:t}){return t?e.replace(OH,e=>{for(;;){let[n,,r]=OI.exec(e)||[];if(!r)return"";if(r===t)return`src: ${n};`}}):e}(e,n);return(function(e){let t=[];return e.replace(OB,(e,n,r)=>(t.push(r),e)),t.filter(e=>!OP(e))})(r).reduce((e,r)=>e.then(e=>OU(e,r,t,n)),Promise.resolve(r))}async function O$(e,t,n){var r;let i=null===(r=t.style)||void 0===r?void 0:r.getPropertyValue(e);if(i){let r=await Oq(i,null,n);return t.style.setProperty(e,r,t.style.getPropertyPriority(e)),!0}return!1}async function OK(e,t){await O$("background",e,t)||await O$("background-image",e,t),await O$("mask",e,t)||await O$("mask-image",e,t)}async function OY(e,t){let n=Oj(e,HTMLImageElement);if(!(n&&!OP(e.src))&&!(Oj(e,SVGImageElement)&&!OP(e.href.baseVal)))return;let r=n?e.src:e.href.baseVal,i=await OA(r,OM(r),t);await new Promise((t,r)=>{e.onload=t,e.onerror=r,e.decode&&(e.decode=t),"lazy"===e.loading&&(e.loading="eager"),n?(e.srcset="",e.src=i):e.href.baseVal=i})}async function OX(e,t){let n=Og(e.childNodes).map(e=>OG(e,t));await Promise.all(n).then(()=>e)}async function OG(e,t){Oj(e,Element)&&(await OK(e,t),await OY(e,t),await OX(e,t))}let OJ={};async function OQ(e){let t=OJ[e];if(null!=t)return t;let n=await fetch(e);return t={url:e,cssText:await n.text()},OJ[e]=t,t}async function O0(e,t){let n=e.cssText,r=/url\(["']?([^"')]+)["']?\)/g;return Promise.all((n.match(/url\([^)]+\)/g)||[]).map(async i=>{let a=i.replace(r,"$1");return a.startsWith("https://")||(a=new URL(a,e.url).href),OO(a,t.fetchRequestInit,({result:e})=>(n=n.replace(i,`url(${e})`),[i,e]))})).then(()=>n)}function O1(e){if(null==e)return[];let t=[],n=e.replace(/(\/\*[\s\S]*?\*\/)/gi,""),r=RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){let e=r.exec(n);if(null===e)break;t.push(e[0])}n=n.replace(r,"");let i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a=RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let e=i.exec(n);if(null===e){if(null===(e=a.exec(n)))break;i.lastIndex=a.lastIndex}else a.lastIndex=i.lastIndex;t.push(e[0])}return t}async function O2(e,t){let n=[],r=[];return e.forEach(n=>{if("cssRules"in n)try{Og(n.cssRules||[]).forEach((e,i)=>{if(e.type===CSSRule.IMPORT_RULE){let a=i+1,o=e.href,l=OQ(o).then(e=>O0(e,t)).then(e=>O1(e).forEach(e=>{try{n.insertRule(e,e.startsWith("@import")?a+=1:n.cssRules.length)}catch(t){console.error("Error inserting rule from remote css",{rule:e,error:t})}})).catch(e=>{console.error("Error loading remote css",e.toString())});r.push(l)}})}catch(a){let i=e.find(e=>null==e.href)||document.styleSheets[0];null!=n.href&&r.push(OQ(n.href).then(e=>O0(e,t)).then(e=>O1(e).forEach(e=>{i.insertRule(e,n.cssRules.length)})).catch(e=>{console.error("Error loading remote stylesheet",e)})),console.error("Error inlining remote css file",a)}}),Promise.all(r).then(()=>(e.forEach(e=>{if("cssRules"in e)try{Og(e.cssRules||[]).forEach(e=>{n.push(e)})}catch(t){console.error(`Error while reading CSS rules from ${e.href}`,t)}}),n))}async function O4(e,t){if(null==e.ownerDocument)throw Error("Provided element is not within a Document");let n=Og(e.ownerDocument.styleSheets);return(await O2(n,t)).filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>OW(e.style.getPropertyValue("src")))}async function O3(e,t){let n=await O4(e,t);return(await Promise.all(n.map(e=>{let n=e.parentStyleSheet?e.parentStyleSheet.href:null;return Oq(e.cssText,n,t)}))).join("\n")}async function O5(e,t){let n=null!=t.fontEmbedCSS?t.fontEmbedCSS:t.skipFonts?null:await O3(e,t);if(n){let t=document.createElement("style"),r=document.createTextNode(n);t.appendChild(r),e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}}async function O6(e,t={}){let{width:n,height:r}=Oy(e,t),i=await OV(e,t,!0);return await O5(i,t),await OG(i,t),!function(e,t){let{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);let r=t.style;null!=r&&Object.keys(r).forEach(e=>{n[e]=r[e]})}(i,t),await Ow(i,n,r)}async function O8(e,t={}){let{width:n,height:r}=Oy(e,t),i=await O6(e,t),a=await Ox(i),o=document.createElement("canvas"),l=o.getContext("2d"),s=t.pixelRatio||function(){let e,t;try{t=process}catch(e){}let n=t&&t.env?t.env.devicePixelRatio:null;return n&&Number.isNaN(e=parseInt(n,10))&&(e=1),e||window.devicePixelRatio||1}(),u=t.canvasWidth||n,c=t.canvasHeight||r;return o.width=u*s,o.height=c*s,!t.skipAutoScale&&(o.width>16384||o.height>16384)&&(o.width>16384&&o.height>16384?o.width>o.height?(o.height*=16384/o.width,o.width=16384):(o.width*=16384/o.height,o.height=16384):o.width>16384?(o.height*=16384/o.width,o.width=16384):(o.width*=16384/o.height,o.height=16384)),o.style.width=`${u}`,o.style.height=`${c}`,t.backgroundColor&&(l.fillStyle=t.backgroundColor,l.fillRect(0,0,o.width,o.height)),l.drawImage(a,0,0,o.width,o.height),o}async function O7(e,t={}){return(await O8(e,t)).toDataURL()}async function O9(e,t){let{name:n,quality:r,copy:i,download:a}=t;if(!e)throw Error("HTML node required");let o=await O7(e,{quality:r||.5});if(a){let e=document.createElement("a");e.download="".concat(n,".png"),e.href=o,e.click()}if(i){let e=await fetch(o);SO(await e.blob(),"image/png",n)}}function Te(e){return Object.entries(e)}},99605:function(e,t,n){"use strict";n.d(t,{Ee:function(){return s.a},Fb:function(){return o.a},UO:function(){return u.useParams},j0:function(){return c.useRouter},jD:function(){return u.usePathname},lr:function(){return u.useSearchParams},rU:function(){return i.a},xj:function(){return u.useRouter}});var r=n(39097),i=n.n(r),a=n(97729),o=n.n(a),l=n(96577),s=n.n(l),u=n(82876),c=n(5632)},82842:function(e,t,n){"use strict";n.d(t,{bW:function(){return z},kl:function(){return K},mV:function(){return D},gw:function(){return a},Hv:function(){return F},iv:function(){return U},rB:function(){return W},Nf:function(){return H},Tu:function(){return $},mw:function(){return B},q0:function(){return V},Tb:function(){return O},V1:function(){return I},Q5:function(){return q},D:function(){return N}});var r={};n.r(r),n.d(r,{getGPUTier:function(){return _}});var i=n(79381);function a(e){return new Promise(t=>setTimeout(t,e))}var o=n(89644),l=n.n(o),s=n(2784),u=n(56978);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 a=function(e,t,n){var r,i,a,o;let l={"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===(o=n.config)||void 0===o?void 0:null===(a=o.axios)||void 0===a?void 0:a.headers},s=h(e,t,n);return e.api===s&&e.password&&(l.Authorization="Basic "+btoa(":".concat(e.password))),l}(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:a}}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=(0,u.AR)(t,i)))return null;let a=h(e,n,r);return a===e.api?"".concat(a,"/api").concat(t):"".concat(a).concat(t)}function g(e,t,n,r){let i=h(e,n,r);return i===e.api?t.replace("".concat(i,"/api"),""):t.replace(i,"")}var v=n(52322),y=n(99605),x=n(92762);function b(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(e){try{s(r.next(e))}catch(e){a(e)}}function l(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,l)}s((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 j(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 k="undefined"==typeof window,E=(()=>{if(k)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 C=[],M=[];function P(e){return null!=e}let _=({mobileTiers:e=[0,15,30,60],desktopTiers:t=[0,15,30,60],override:n={},glContext:r,failIfMajorPerformanceCaveat:i=!1,benchmarksURL:a="https://unpkg.com/detect-gpu@5.0.34/dist/benchmarks"}={})=>b(void 0,void 0,void 0,function*(){let o={};if(k)return{tier:0,type:"SSR"};let{isIpad:l=!!(null==E?void 0:E.isIpad),isMobile:s=!!(null==E?void 0:E.isMobile),screenSize:u=window.screen,loadBenchmarks:c=e=>b(void 0,void 0,void 0,function*(){let t=yield fetch(`${a}/${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:s,tier:e,type:t}),h,p="";if(d)h=[d=j(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==E?void 0:E.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=j(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 a=e.getAttribLocation(r,"aPosition");e.vertexAttribPointer(a,3,5126,!1,0,0),e.enableVertexAttribArray(a),e.clearColor(1,1,1,1),e.clear(16384),e.viewport(0,0,1,1),e.drawArrays(4,0,3);let o=new Uint8Array(4);return e.readPixels(0,0,1,1,6408,5121,o),e.deleteProgram(r),e.deleteBuffer(i),o.join("")}(e),a="801621810",o="8016218135",l="80162181161",s=(null==E?void 0:E.isIpad)?[["a7",l,12],["a8",o,15],["a8x",o,15],["a9",o,15],["a9x",o,15],["a10",o,15],["a10x",o,15],["a12",a,15],["a12x",a,15],["a12z",a,15],["a14",a,15],["m1",a,15]]:[["a7",l,12],["a8",o,12],["a9",o,15],["a10",o,15],["a11",a,15],["a12",a,15],["a13",a,15],["a14",a,15]];return"80162181255"===i?r=s.filter(([,,e])=>e>=14):(r=s.filter(([,e])=>e===i)).length||(r=s),r.map(([e])=>`apple ${e} gpu`)}(e,m,s):[m]}let g=(yield Promise.all(h.map(function(e){var t;return b(this,void 0,void 0,function*(){let n;let r=(e=>{for(let t of s?["adreno","apple","mali-t","mali","nvidia","powervr","samsung"]:["intel","apple","amd","radeon","nvidia","geforce"])if(e.includes(t))return t})(e);if(!r)return;let i=`${s?"m":"d"}-${r}${l?"-ipad":""}.json`,a=o[i]=null!==(t=o[i])&&void 0!==t?t:c(i);try{n=yield a}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,[g,,,,v]=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 a,o=0;for(;ou?s>u?u+1:s:s>l?l+1:s;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 v){let[t,n]=e,r=Math.abs(b-t*n);re===n?t-r:e-n);if(!g.length){let e=w.find(e=>d.includes(e));return e?f(0,"BLOCKLISTED",e):f(1,"FALLBACK",`${d} (${p})`)}let[,v,y,x]=g[0];if(-1===v)return f(0,"BLOCKLISTED",y,v,x);let _=s?e:t,O=0;for(let e=0;e<_.length;e++)v>=_[e]&&(O=e);return f(O,"BENCHMARK",y,v,x)});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{getGPUTier:T}=r,A=(0,s.createContext)({}),N=()=>(0,s.useContext)(A);function R(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]);return{setWorkflow:n,removeWorkflow:(0,s.useCallback)(e=>{t(t=>(delete t[e],{...t}))},[t]),resetWorkflows:(0,s.useCallback)(()=>{t({})},[t]),workflows:(0,s.useMemo)(()=>Object.entries(e).map(e=>e[1]),[e])}}();return(0,v.jsx)(A.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}],L={api:"",loginWithCustomApi:!1,siaCentral:!0,password:void 0,currency:D[0],currencyDisplay:"bothPreferSc",recentApis:{},autoLock:!1,autoLockTimeout:6e5},Z=(0,s.createContext)({}),F=()=>(0,s.useContext)(Z);function z(e){let{children:t,...n}=e,r=function(e){let{passwordProtectRequestHooks:t,lockRoutes:n,defaultSettings:r}=e,a=(0,s.useMemo)(()=>({...L,...r}),[r]),[o,l]=(0,x.Z)("v1/settings",{defaultValue:a});(0,s.useEffect)(()=>{l(e=>({...a,...e}))},[]);let u=(0,s.useMemo)(()=>({...a,...o}),[o,a]),{resetWorkflows:c}=N(),d=(0,s.useCallback)(e=>{l(t=>({...t,...e}))},[l]),f=(0,s.useCallback)(e=>{let t=D.find(t=>t.id===e);t&&d({currency:t})},[d]),h=(0,y.xj)(),p=(0,y.jD)(),[m,g]=(0,s.useState)({}),v=(0,s.useCallback)((e,t)=>{g(n=>({...n,[e]:t}))},[g]),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,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"}),j=(0,s.useMemo)(()=>!!u.password,[u]);return{settings:u,setSettings:d,setCurrency:f,currencyOptions:D,gpu:function(){let e=O(),[t,n]=(0,s.useState)(!1),[r,i]=(0,s.useState)(!1),[{isGpuEnabled:a,hasUserSet:o},l]=(0,x.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 T();console.log("GPU",t),e=t.tier>0,!o&&t.tier<2&&u(!1,!1)}i(e),n(!0)},[i,u,o]);return(0,s.useEffect)(()=>{c()},[]),{hasCheckedGpu:t,canGpuRender:r,isGpuEnabled:a,shouldRender:r&&a,setCanGpuRender:i,setIsGpuEnabled:u}}(),lock:b,isUnlockedAndAuthedRoute:j&&w,passwordProtectRequestHooks:t,setOnLockCallback:v}}(n);return(0,v.jsx)(Z.Provider,{value:r,children:t})}function V(e){var t;let n=(0,s.useMemo)(()=>d(e),[e]),{settings:r,passwordProtectRequestHooks:a}=F(),o=m(r,n.route,n,void 0),u=(0,s.useMemo)(()=>{var t,i;return t=o?"".concat(o).concat(JSON.stringify(void 0!==e.payload?e.payload:"")):null,i=n.disabled||a&&!r.password,!t||i?null:t},[o,e,n,a,r]);return(0,i.ZP)(u,async()=>{if(!n.route)throw Error("No route");let t=p(r,n,void 0);if(!o)throw Error("No route");try{return(await l().post(o,e.payload,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 B(e,t){let{setWorkflow:n,removeWorkflow:r}=N(),{mutate:a}=(0,i.kY)(),{settings:o}=F(),s=c(e);return{post:async e=>{let i=f(e);try{let u;let c=p(o,s,i),d=m(o,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=g(o,d,e,i);n(f,{path:h,payload:u});let v=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 a(n=>{if("string"!=typeof n)return!1;let r=g(o,n,e,i);return t(r)},n,r)},i,v),r(f),{status:v.status,data:v.data,headers:v.headers}}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}=F(),{setWorkflow:a,removeWorkflow:o}=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=g(r,d,e,i);a(f,{path:h,payload:u});let v=await l().put(d,u,c);return t&&await t(function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,o=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let a=g(r,n,e,i);return t(a)},a,o)},i,v),o(f),{status:v.status,data:v.data,headers:v.headers}}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,n,r;let a=(0,s.useMemo)(()=>d(e),[e]),{settings:o,passwordProtectRequestHooks:u}=F(),c=m(o,a.route,a,void 0);return(0,i.ZP)((n=e.standalone?"".concat(e.standalone,"/").concat(c):c,r=a.disabled||u&&!o.password,!n||r?null:n),async()=>{if(!a.route)throw Error("No route");let e=p(o,a,void 0);if(!c)throw Error("No route");try{return(await l().get(c,e)).data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=a.config)||void 0===t?void 0:t.swr)}function U(e,t){let{mutate:n}=(0,i.kY)(),{settings:r}=F(),{setWorkflow:a,removeWorkflow:o}=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=g(r,c,e,i);a(c,{path:d});let f=await l().delete(c,u);return t&&await t(function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,o=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let a=g(r,n,e,i);return t(a)},a,o)},i,f),o(c),{status:f.status,data:f.data,headers:f.headers}}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{get:n}=function(e){let{settings:t}=F(),n=c(e);return{get:async e=>{let r=f(e);try{let e=p(t,n,r),i=m(t,n.route,n,r);if(!i)throw Error("No route");let a=await l().get(i,e);return{status:a.status,data:a.data,headers:a.headers}}catch(t){var i,a,o,s;let e=(null===(i=t.response)||void 0===i?void 0:i.data)instanceof Blob?await (null===(a=t.response)||void 0===a?void 0:a.data.text()):(null===(o=t.response)||void 0===o?void 0:o.data)||t.message;return{status:null===(s=t.response)||void 0===s?void 0:s.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 q(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 $(e){let{settings:t}=F();return(0,s.useMemo)(()=>function(n,r,a){return(0,i.JG)(r=>"string"==typeof r&&n(g(t,r,e,void 0)),r,a)},[t,e])}function K(e){let{fallback:t,cacheProvider:n,children:r}=e;return(0,v.jsx)(R,{children:(0,v.jsx)(i.J$,{value:{fallback:t||{},provider:n},children:r})})}},47211: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 a=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 nV},fb4:function(){return nz},eHR:function(){return n$},xHM:function(){return nK},L6f:function(){return nY},rW0:function(){return nX},osk:function(){return nG},JaG:function(){return nJ},wWN:function(){return ok},Dkj:function(){return oN},fi8:function(){return oj},DlU:function(){return n9},ljb:function(){return re},EMN:function(){return rt},bdU:function(){return rn},VUy:function(){return rr},Cp0:function(){return ri},kqg:function(){return ra},Mes:function(){return ro},oce:function(){return rs},uTh:function(){return rl},DI$:function(){return rc},NlZ:function(){return rC},Y3p:function(){return r_},dmA:function(){return rP},Z$8:function(){return rM},MKy:function(){return rO},tEK:function(){return rA},yar:function(){return rT},ZsV:function(){return rN},F3j:function(){return rR},PcV:function(){return rL},QN4:function(){return rD},Jsc:function(){return rF},T80:function(){return rZ},bQp:function(){return rV},Y9T:function(){return rz},wEY:function(){return rU},olJ:function(){return rq},vtB:function(){return rW},KiD:function(){return rX},jBN:function(){return rG},B4q:function(){return r2},_Eq:function(){return rJ},VHe:function(){return oO},Jrl:function(){return r4},aPl:function(){return r3},kBK:function(){return oP},c_L:function(){return r7},Bpb:function(){return r9},vzB:function(){return ie},nDH:function(){return il},dr6:function(){return is},_fo:function(){return iu},d19:function(){return ic},w9S:function(){return id},VBo:function(){return oE},q0D:function(){return iv},Hb6:function(){return ig},CCF:function(){return iy},Qbr:function(){return ij},L37:function(){return ik},ROc:function(){return oT},UG6:function(){return o_},lq1:function(){return iE},zvn:function(){return oS},oDK:function(){return iM},EL$:function(){return iP},BdP:function(){return iD},e1T:function(){return iL},P5r:function(){return iZ},RdX:function(){return iz},$iY:function(){return iF},U_S:function(){return iV},_m8:function(){return oR},V8Q:function(){return iq},POp:function(){return i$},nCM:function(){return iX},kSc:function(){return iY},TtX:function(){return iK},mBM:function(){return oM},Lur:function(){return i0},b47:function(){return i1},Sfn:function(){return i2},W$S:function(){return i7},T85:function(){return i9},c6N:function(){return ae},Ckx:function(){return at},EOT:function(){return an},RK4:function(){return aa},JPh:function(){return ao},jH8:function(){return ad},XJM:function(){return af},RRj:function(){return ah},ka0:function(){return ap},hzZ:function(){return ax},oHy:function(){return ay},n6M:function(){return ab},VUg:function(){return aC},YZj:function(){return aM},owP:function(){return aP},Fs9:function(){return a_},wGX:function(){return aO},Wet:function(){return aD},xkX:function(){return aL},Zbu:function(){return aZ},ZEk:function(){return aF},$Iz:function(){return aH},UBs:function(){return aU},shL:function(){return aW},hiv:function(){return aq},eOF:function(){return aG},mli:function(){return aX},O5t:function(){return aJ},_kF:function(){return a0},lJ7:function(){return oA},ORH:function(){return a3},I98:function(){return a5},R$6:function(){return a6},JCW:function(){return oo},xVB:function(){return ol},pHg:function(){return os},I$H:function(){return oc},HCc:function(){return ou},oaN:function(){return oC},qdM:function(){return oh},KTM:function(){return of},gFQ:function(){return od},Gu6:function(){return op},SmH:function(){return oy},RFr:function(){return ox},lg1:function(){return ob}});var o,l,s,u,c,d,f,h,p,m,g,v,y,x,b,w,j,k,E,S,C,M,P,_,O,T,A,N,R,D,L,Z,F,z,V,B,I,H,U,W,q,$,K,Y,X,G,J,Q,ee,et,en,er,ei,ea,eo,el,es,eu,ec,ed,ef,eh,ep,em,eg,ev,ey,ex,eb,ew,ej,ek,eE,eS,eC,eM,eP,e_,eO,eT,eA,eN,eR,eD,eL,eZ,eF,ez,eV,eB,eI,eH,eU,eW,eq,e$,eK,eY,eX,eG,eJ,eQ,e0,e1,e2,e4,e3,e5,e6,e8,e7,e9,te,tt,tn,tr,ti,ta,to,tl,ts,tu,tc,td,tf,th,tp,tm,tg,tv,ty,tx,tb,tw,tj,tk,tE,tS,tC,tM,tP,t_,tO,tT,tA,tN,tR,tD,tL,tZ,tF,tz,tV,tB,tI,tH,tU,tW,tq,t$,tK,tY,tX,tG,tJ,tQ,t0,t1,t2,t4,t3,t5,t6,t8,t7,t9,ne,nt,nn,nr,ni,na,no,nl,ns,nu,nc,nd,nf,nh,np,nm,ng,nv,ny,nx,nb,nw,nj,nk,nE=["width","height","viewBox"],nS=["tabindex"],nC={focusable:"false",preserveAspectRatio:"xMidYMid meet"},nM=n(13980),nP=n.n(nM),n_=n(2784);function nO(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 nT(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var nR=["className","children","tabIndex"],nD=["tabindex"],nL=n_.forwardRef(function(e,t){var n=e.className,r=e.children,o=e.tabIndex,l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,o=void 0===r?"0 0 ".concat(t," ").concat(n):r,l=a(e,nE),s=l.tabindex,u=a(l,nS),c=i(i(i({},nC),u),{},{width:t,height:n,viewBox:o});return c["aria-label"]||c["aria-labelledby"]||c.title?(c.role="img",null!=s&&(c.focusable="true",c.tabindex=s)):c["aria-hidden"]=!0,c}(nT(nT({},nN(e,nR)),{},{tabindex:o})),s=l.tabindex,u=nN(l,nD);return n&&(u.className=n),null!=s&&(u.tabIndex=s),t&&(u.ref=t),n_.createElement("svg",u,r)});nL.displayName="Icon",nL.propTypes={"aria-hidden":nP().string,"aria-label":nP().string,"aria-labelledby":nP().string,children:nP().node,className:nP().string,height:nP().oneOfType([nP().number,nP().string]),preserveAspectRatio:nP().string,tabIndex:nP().string,viewBox:nP().string,width:nP().oneOfType([nP().number,nP().string]),xmlns:nP().string},nL.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"};var nZ=["children"],nF=["children"],nz=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,nZ);return n_.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),o||(o=n_.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)}),nV=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,nF);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),l||(l=n_.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)}),nB=["children"],nI=["children"],nH=["children"],nU=["children"],nW=["children"],nq=["children"],n$=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,nB);return n_.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),s||(s=n_.createElement("path",{d:"M14 19H18V21H14z"})),u||(u=n_.createElement("path",{d:"M6,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V2ZM24,28H8V16H24Zm0-14H8V10H24ZM8,8V4H24V8Z"})),n)}),nK=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,nI);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),c||(c=n_.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)}),nY=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,nH);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),d||(d=n_.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)}),nX=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,nU);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),f||(f=n_.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)}),nG=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,nW);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),h||(h=n_.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)}),nJ=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,nq);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),p||(p=n_.createElement("path",{d:"M7.5 1H8.5V3.5H7.5z"})),m||(m=n_.createElement("path",{d:"M10.8 3.4H13.3V4.4H10.8z",transform:"rotate(-45.001 12.074 3.922)"})),g||(g=n_.createElement("path",{d:"M12.5 7.5H15V8.5H12.5z"})),v||(v=n_.createElement("path",{d:"M11.6 10.8H12.6V13.3H11.6z",transform:"rotate(-45.001 12.077 12.075)"})),y||(y=n_.createElement("path",{d:"M7.5 12.5H8.5V15H7.5z"})),x||(x=n_.createElement("path",{d:"M2.7 11.6H5.2V12.6H2.7z",transform:"rotate(-45.001 3.929 12.078)"})),b||(b=n_.createElement("path",{d:"M1 7.5H3.5V8.5H1z"})),w||(w=n_.createElement("path",{d:"M3.4 2.7H4.4V5.2H3.4z",transform:"rotate(-45.001 3.926 3.925)"})),j||(j=n_.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)}),nQ=["children"],n0=["children"],n1=["children"],n2=["children"],n4=["children"],n3=["children"],n5=["children"],n6=["children"],n8=["children"],n7=["children"],n9=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,nQ);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),k||(k=n_.createElement("path",{d:"M14 8L10 8 10 4 8 4 8 8 4 8 4 10 8 10 8 14 10 14 10 10 14 10 14 8zM4 19H14V21H4zM4 24H14V26H4zM18 8H28V10H18zM24.41 22L28 18.41 26.59 17 23 20.59 19.41 17 18 18.41 21.59 22 18 25.59 19.41 27 23 23.41 26.59 27 28 25.59 24.41 22z"})),n)}),re=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,n0);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),E||(E=n_.createElement("path",{d:"M26,4V28H6V4H26m0-2H6A2,2,0,0,0,4,4V28a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V4A2,2,0,0,0,26,2Z"})),S||(S=n_.createElement("path",{d:"M9 23H11V25H9zM21 23H23V25H21zM9 18H11V20H9zM21 18H23V20H21zM9 13H11V15H9zM15 23H17V25H15zM15 18H17V20H15zM15 13H17V15H15zM21 13H23V15H21zM9 7H23V10H9z"})),n)}),rt=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,n1);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),C||(C=n_.createElement("path",{d:"M24 12L16 22 8 12z"})),n)}),rn=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,n2);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),M||(M=n_.createElement("path",{d:"M20 24L10 16 20 8z"})),n)}),rr=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,n4);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),P||(P=n_.createElement("path",{d:"M12 8L22 16 12 24z"})),n)}),ri=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,n3);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),_||(_=n_.createElement("path",{d:"M24 24L16 32 8 24zM8 8L16 0 24 8z"})),n)}),ra=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,n5);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),O||(O=n_.createElement("path",{d:"M8 20L16 10 24 20z"})),n)}),ro=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,n6);return n_.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),T||(T=n_.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)}),rl=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,n8);return n_.createElement(nL,nA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),A||(A=n_.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)}),rs=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,n7);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),N||(N=n_.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)}),ru=["children"],rc=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,ru);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),R||(R=n_.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"})),D||(D=n_.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)}),rd=["children"],rf=["children"],rh=["children"],rp=["children"],rm=["children"],rg=["children"],rv=["children"],ry=["children"],rx=["children"],rb=["children"],rw=["children"],rj=["children"],rk=["children"],rE=["children"],rS=["children"],rC=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,rd);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),L||(L=n_.createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),n)}),rM=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,rf);return n_.createElement(nL,nA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Z||(Z=n_.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"})),F||(F=n_.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)}),rP=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,rh);return n_.createElement(nL,nA({width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),z||(z=n_.createElement("path",{d:"M10,1c-4.9,0-9,4.1-9,9s4.1,9,9,9s9-4,9-9S15,1,10,1z M8.7,13.5l-3.2-3.2l1-1l2.2,2.2l4.8-4.8l1,1L8.7,13.5z"})),V||(V=n_.createElement("path",{fill:"none",d:"M8.7,13.5l-3.2-3.2l1-1l2.2,2.2l4.8-4.8l1,1L8.7,13.5z","data-icon-path":"inner-path",opacity:"0"})),n)}),r_=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,rp);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),B||(B=n_.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"})),I||(I=n_.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)}),rO=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,rm);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),H||(H=n_.createElement("path",{d:"M30,24a6,6,0,1,0-6,6A6.0066,6.0066,0,0,0,30,24Zm-2,0a3.9521,3.9521,0,0,1-.5669,2.019L21.981,20.5669A3.9529,3.9529,0,0,1,24,20,4.0045,4.0045,0,0,1,28,24Zm-8,0a3.9521,3.9521,0,0,1,.5669-2.019l5.4521,5.4521A3.9529,3.9529,0,0,1,24,28,4.0045,4.0045,0,0,1,20,24Z"})),U||(U=n_.createElement("path",{d:"M14,2a12,12,0,1,0,2,23.82V24a8,8,0,0,1,8-8h1.82A11.9348,11.9348,0,0,0,14,2ZM12,18.5908l-4-4L9.5908,13,12,15.4092,17.4092,10,19,11.5908Z"})),W||(W=n_.createElement("path",{fill:"none",d:"M12 18.591L8 14.591 9.591 13 12 15.409 17.409 10 19 11.591 12 18.591z","data-icon-path":"inner-path"})),n)}),rT=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,rg);return n_.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),q||(q=n_.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),$||($=n_.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)}),rA=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,rv);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),K||(K=n_.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),Y||(Y=n_.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)}),rN=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,ry);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),X||(X=n_.createElement("path",{d:"M14,24A10,10,0,1,1,24,14h2A12,12,0,1,0,14,26Z"})),G||(G=n_.createElement("path",{d:"M12 15.59L9.41 13 8 14.41 12 18.41 19 11.41 17.59 10 12 15.59zM30 24a6 6 0 10-6 6A6.0066 6.0066 0 0030 24zm-2 0a3.9521 3.9521 0 01-.5669 2.019L21.981 20.5669A3.9529 3.9529 0 0124 20 4.0045 4.0045 0 0128 24zm-8 0a3.9521 3.9521 0 01.5669-2.019l5.4521 5.4521A3.9529 3.9529 0 0124 28 4.0045 4.0045 0 0120 24z"})),n)}),rR=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,rx);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),J||(J=n_.createElement("path",{d:"M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z"})),n)}),rD=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,rb);return n_.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Q||(Q=n_.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)}),rL=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,rw);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ee||(ee=n_.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)}),rZ=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,rj);return n_.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),et||(et=n_.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"})),en||(en=n_.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)}),rF=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,rk);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),er||(er=n_.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"})),ei||(ei=n_.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)}),rz=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,rE);return n_.createElement(nL,nA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ea||(ea=n_.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"})),eo||(eo=n_.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)}),rV=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,rS);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),el||(el=n_.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"})),es||(es=n_.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)}),rB=["children"],rI=["children"],rH=["children"],rU=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,rB);return n_.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eu||(eu=n_.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"})),ec||(ec=n_.createElement("path",{d:"M5.91 15H26.080000000000002V17H5.91z",transform:"rotate(-75 15.996 16)"})),n)}),rW=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,rI);return n_.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ed||(ed=n_.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"})),ef||(ef=n_.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),n)}),rq=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,rH);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eh||(eh=n_.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"})),ep||(ep=n_.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),n)}),r$=["children"],rK=["children"],rY=["children"],rX=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,r$);return n_.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),em||(em=n_.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"})),eg||(eg=n_.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)}),rG=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,rK);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ev||(ev=n_.createElement("path",{d:"M26.5,19.63,20.24,16l6.26-3.63a5,5,0,0,0-1.21-9.2A5.19,5.19,0,0,0,24,3a5,5,0,0,0-4.33,7.53,5,5,0,0,0,2.39,2.1l-3.82,2.21L4,6.6,3,8.34,16.24,16,3,23.68l1,1.74,14.24-8.26,3.82,2.21a5,5,0,0,0-2.39,2.1A5,5,0,0,0,24,29a5.19,5.19,0,0,0,1.29-.17,5,5,0,0,0,1.21-9.2ZM21.4,9.53a3,3,0,0,1,1.1-4.12,3,3,0,0,1,4.1,1.11,3,3,0,0,1-1.1,4.11h0A3,3,0,0,1,21.4,9.53Zm5.2,16a3,3,0,0,1-4.1,1.11,3,3,0,0,1-1.1-4.12,3,3,0,0,1,4.1-1.1h0A3,3,0,0,1,26.6,25.48Z"})),n)}),rJ=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,rY);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ey||(ey=n_.createElement("circle",{cx:"22",cy:"24",r:"2"})),ex||(ex=n_.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"})),eb||(eb=n_.createElement("circle",{cx:"8",cy:"8",r:"1"})),ew||(ew=n_.createElement("circle",{cx:"8",cy:"16",r:"1"})),ej||(ej=n_.createElement("circle",{cx:"8",cy:"24",r:"1"})),ek||(ek=n_.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)}),rQ=["children"],r0=["children"],r1=["children"],r2=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,rQ);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eE||(eE=n_.createElement("path",{d:"M8 18H12V20H8zM14 18H18V20H14zM8 14H12V16H8zM14 22H18V24H14zM20 14H24V16H20zM20 22H24V24H20z"})),eS||(eS=n_.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)}),r4=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,r0);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eC||(eC=n_.createElement("path",{d:"M12 12H14V24H12zM18 12H20V24H18z"})),eM||(eM=n_.createElement("path",{d:"M4 6V8H6V28a2 2 0 002 2H24a2 2 0 002-2V8h2V6zM8 28V8H24V28zM12 2H20V4H12z"})),n)}),r3=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,r1);return n_.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eP||(eP=n_.createElement("path",{d:"M8 4V8H4V4H8M2 2v8h8V2zM18 7v4H14V7h4M12 5v8h8V5zM8 16v4H4V16H8M2 14v8h8V14z"})),e_||(e_=n_.createElement("path",{d:"M22,10v6H16v6H10v8H30V10Zm-4,8h4v4H18ZM16,28H12V24h4Zm6,0H18V24h4Zm6,0H24V24h4Zm0-6H24V18h4Zm-4-6V12h4v4Z"})),n)}),r5=["children"],r6=["children"],r8=["children"],r7=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,r5);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eO||(eO=n_.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"})),eT||(eT=n_.createElement("path",{d:"M10 22H22V24H10zM10 16H22V18H10z"})),n)}),r9=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,r6);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eA||(eA=n_.createElement("circle",{cx:"16",cy:"16",r:"8"})),n)}),ie=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,r8);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eN||(eN=n_.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)}),it=["children"],ir=["children"],ii=["children"],ia=["children"],io=["children"],il=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,it);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eR||(eR=n_.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)}),is=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,ir);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eD||(eD=n_.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)}),iu=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,ii);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eL||(eL=n_.createElement("path",{d:"M2,16H2A14,14,0,1,0,16,2,14,14,0,0,0,2,16Zm23.15,7.75L8.25,6.85a12,12,0,0,1,16.9,16.9ZM8.24,25.16A12,12,0,0,1,6.84,8.27L23.73,25.16a12,12,0,0,1-15.49,0Z"})),n)}),ic=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,ia);return n_.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eZ||(eZ=n_.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"})),eF||(eF=n_.createElement("path",{d:"M22.59 25L20 22.41 20 18 22 18 22 21.59 24 23.59 22.59 25z"})),ez||(ez=n_.createElement("path",{d:"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z"})),n)}),id=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,io);return n_.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eV||(eV=n_.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)}),ih=["children"],ip=["children"],im=["children"],ig=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,ih);return n_.createElement(nL,nA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eB||(eB=n_.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)}),iv=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,ip);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eI||(eI=n_.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)}),iy=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,im);return n_.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eH||(eH=n_.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)}),ix=["children"],ib=["children"],iw=["children"],ij=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,ix);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eU||(eU=n_.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)}),ik=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,ib);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eW||(eW=n_.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"})),eq||(eq=n_.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)}),iE=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,iw);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e$||(e$=n_.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"})),eK||(eK=n_.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)}),iS=["children"],iC=["children"],iM=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,iS);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eY||(eY=n_.createElement("path",{d:"M15 19H17V21H15zM15 23H17V25H15z"})),eX||(eX=n_.createElement("path",{d:"M23,11.67V4h3V2H6V4H9v7.67a2,2,0,0,0,.4,1.2L11.75,16,9.4,19.13a2,2,0,0,0-.4,1.2V28H6v2H26V28H23V20.33a2,2,0,0,0-.4-1.2L20.25,16l2.35-3.13A2,2,0,0,0,23,11.67ZM21,4v7H11V4Zm0,16.33V28H11V20.33L14.25,16,12,13h8l-2.25,3Z"})),n)}),iP=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,iC);return n_.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eG||(eG=n_.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)}),i_=["children"],iO=["children"],iT=["children"],iA=["children"],iN=["children"],iR=["children"],iD=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,i_);return n_.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eJ||(eJ=n_.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)}),iL=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,iO);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eQ||(eQ=n_.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"})),e0||(e0=n_.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)}),iZ=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,iT);return n_.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e1||(e1=n_.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)}),iF=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,iA);return n_.createElement(nL,nA({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e2||(e2=n_.createElement("path",{d:"M17 22L17 14 13 14 13 16 15 16 15 22 12 22 12 24 20 24 20 22 17 22zM16 8a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0016 8z"})),e4||(e4=n_.createElement("path",{d:"M16,30A14,14,0,1,1,30,16,14,14,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12,12,0,0,0,16,4Z"})),n)}),iz=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,iN);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e3||(e3=n_.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"})),e5||(e5=n_.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)}),iV=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,iR);return n_.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e6||(e6=n_.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)}),iB=["children"],iI=["children"],iH=["children"],iU=["children"],iW=["children"],iq=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,iB);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e8||(e8=n_.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"})),e7||(e7=n_.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)}),i$=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,iI);return n_.createElement(nL,nA({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e9||(e9=n_.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"})),te||(te=n_.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)}),iK=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,iH);return n_.createElement(nL,nA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tt||(tt=n_.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)}),iY=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,iU);return n_.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tn||(tn=n_.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)}),iX=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,iW);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tr||(tr=n_.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)}),iG=["children"],iJ=["children"],iQ=["children"],i0=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,iG);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ti||(ti=n_.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)}),i1=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,iJ);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ta||(ta=n_.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"})),to||(to=n_.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)}),i2=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,iQ);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tl||(tl=n_.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)}),i4=["children"],i3=["children"],i5=["children"],i6=["children"],i8=["children"],i7=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,i4);return n_.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ts||(ts=n_.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"})),tu||(tu=n_.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)}),i9=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,i3);return n_.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tc||(tc=n_.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)}),ae=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,i5);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),td||(td=n_.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"})),tf||(tf=n_.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)}),at=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,i6);return n_.createElement(nL,nA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),th||(th=n_.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"})),tp||(tp=n_.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)}),an=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,i8);return n_.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tm||(tm=n_.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"})),tg||(tg=n_.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)}),ar=["children"],ai=["children"],aa=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,ar);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tv||(tv=n_.createElement("circle",{cx:"21",cy:"26",r:"2"})),ty||(ty=n_.createElement("circle",{cx:"21",cy:"6",r:"2"})),tx||(tx=n_.createElement("circle",{cx:"4",cy:"16",r:"2"})),tb||(tb=n_.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)}),ao=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,ai);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tw||(tw=n_.createElement("path",{d:"M2,16A14,14,0,1,0,16,2,14,14,0,0,0,2,16Zm6-1H20.15L14.57,9.3926,16,8l8,8-8,8-1.43-1.4272L20.15,17H8Z"})),tj||(tj=n_.createElement("path",{fill:"none",d:"M16 8L14.57 9.393 20.15 15 8 15 8 17 20.15 17 14.57 22.573 16 24 24 16 16 8z","data-icon-path":"inner-path"})),n)}),al=["children"],as=["children"],au=["children"],ac=["children"],ad=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,al);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tk||(tk=n_.createElement("circle",{cx:"8",cy:"16",r:"2"})),tE||(tE=n_.createElement("circle",{cx:"16",cy:"16",r:"2"})),tS||(tS=n_.createElement("circle",{cx:"24",cy:"16",r:"2"})),n)}),af=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,as);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tC||(tC=n_.createElement("path",{d:"M14 16L24 6 25.4 7.4 16.8 16 25.4 24.6 24 26zM8 4H10V28H8z"})),n)}),ah=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,au);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tM||(tM=n_.createElement("path",{d:"M18 16L8 26 6.6 24.6 15.2 16 6.6 7.4 8 6zM22 4H24V28H22z"})),n)}),ap=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,ac);return n_.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tP||(tP=n_.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"})),t_||(t_=n_.createElement("circle",{cx:"22",cy:"10",r:"2"})),n)}),am=["children"],ag=["children"],av=["children"],ay=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,am);return n_.createElement(nL,nA({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tO||(tO=n_.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"})),tT||(tT=n_.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)}),ax=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,ag);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tA||(tA=n_.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"})),tN||(tN=n_.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)}),ab=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,av);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tR||(tR=n_.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)}),aw=["children"],aj=["children"],ak=["children"],aE=["children"],aS=["children"],aC=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,aw);return n_.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tD||(tD=n_.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"})),tL||(tL=n_.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)}),aM=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,aj);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tZ||(tZ=n_.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm8,15H11.85l5.58,5.5728L16,24,8,16l8-8,1.43,1.3926L11.85,15H24Z"})),tF||(tF=n_.createElement("path",{fill:"none",d:"M16 8L17.43 9.393 11.85 15 24 15 24 17 11.85 17 17.43 22.573 16 24 8 16 16 8z","data-icon-path":"inner-path"})),n)}),aP=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,ak);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tz||(tz=n_.createElement("circle",{cx:"11",cy:"15.5",r:"1.5"})),tV||(tV=n_.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"})),tB||(tB=n_.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)}),a_=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,aE);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tI||(tI=n_.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)}),aO=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,aS);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tH||(tH=n_.createElement("path",{d:"M20.59 22L15 16.41 15 7 17 7 17 15.58 22 20.59 20.59 22z"})),tU||(tU=n_.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)}),aT=["children"],aA=["children"],aN=["children"],aR=["children"],aD=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,aT);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tW||(tW=n_.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)}),aL=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,aA);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tq||(tq=n_.createElement("path",{d:"M27,8H6.83l3.58-3.59L9,3,3,9l6,6,1.41-1.41L6.83,10H27V26H7V19H5v7a2,2,0,0,0,2,2H27a2,2,0,0,0,2-2V10A2,2,0,0,0,27,8Z"})),n)}),aZ=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,aN);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t$||(t$=n_.createElement("path",{d:"M10 16H22V18H10zM10 10H22V12H10z"})),tK||(tK=n_.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)}),aF=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,aR);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tY||(tY=n_.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)}),az=["children"],aV=["children"],aB=["children"],aI=["children"],aH=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,az);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tX||(tX=n_.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)}),aU=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,aV);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tG||(tG=n_.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)}),aW=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,aB);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tJ||(tJ=n_.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"})),tQ||(tQ=n_.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)}),aq=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,aI);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t0||(t0=n_.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)}),a$=["children"],aK=["children"],aY=["children"],aX=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,a$);return n_.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t1||(t1=n_.createElement("path",{d:"M8 15H24V17H8z"})),n)}),aG=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,aK);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t2||(t2=n_.createElement("path",{d:"M8 15H24V17H8z"})),n)}),aJ=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,aY);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t4||(t4=n_.createElement("path",{d:"M16,4c6.6,0,12,5.4,12,12s-5.4,12-12,12S4,22.6,4,16S9.4,4,16,4 M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14 S23.7,2,16,2z"})),t3||(t3=n_.createElement("path",{d:"M8 15H24V17H8z"})),n)}),aQ=["children"],a0=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,aQ);return n_.createElement(nL,nA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t5||(t5=n_.createElement("path",{d:"M14 20.18L10.41 16.59 9 18 14 23 23 14 21.59 12.58 14 20.18z"})),t6||(t6=n_.createElement("path",{d:"M25,5H22V4a2,2,0,0,0-2-2H12a2,2,0,0,0-2,2V5H7A2,2,0,0,0,5,7V28a2,2,0,0,0,2,2H25a2,2,0,0,0,2-2V7A2,2,0,0,0,25,5ZM12,4h8V8H12ZM25,28H7V7h3v3H22V7h3Z"})),n)}),a1=["children"],a2=["children"],a4=["children"],a3=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,a1);return n_.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t8||(t8=n_.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)}),a5=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,a2);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t7||(t7=n_.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"})),t9||(t9=n_.createElement("path",{fill:"none",d:"M11 14H21V18H11z","data-icon-path":"inner-path"})),n)}),a6=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,a4);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ne||(ne=n_.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)}),a8=["children"],a7=["children"],a9=["children"],oe=["children"],ot=["children"],on=["children"],or=["children"],oi=["children"],oa=["children"],oo=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,a8);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),nt||(nt=n_.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)}),ol=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,a7);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),nn||(nn=n_.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"})),nr||(nr=n_.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)}),os=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,a9);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ni||(ni=n_.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"})),na||(na=n_.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)}),ou=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,oe);return n_.createElement(nL,nA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),no||(no=n_.createElement("path",{d:"M22 17H24V19H22z"})),nl||(nl=n_.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)}),oc=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,ot);return n_.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ns||(ns=n_.createElement("path",{d:"M22 17H24V19H22z"})),nu||(nu=n_.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)}),od=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,on);return n_.createElement(nL,nA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),nc||(nc=n_.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"})),nd||(nd=n_.createElement("path",{d:"M15 8H17V19H15zM16 22a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0016 22z"})),n)}),of=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,or);return n_.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),nf||(nf=n_.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"})),nh||(nh=n_.createElement("path",{d:"M15 8H17V19H15zM16 22a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0016 22z"})),n)}),oh=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,oi);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),np||(np=n_.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"})),nm||(nm=n_.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)}),op=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,oa);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ng||(ng=n_.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"})),nv||(nv=n_.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)}),om=["children"],og=["children"],ov=["children"],oy=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,om);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ny||(ny=n_.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"})),nx||(nx=n_.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)}),ox=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,og);return n_.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),nb||(nb=n_.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)}),ob=n_.forwardRef(function(e,t){var n=e.children,r=nN(e,ov);return n_.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),nw||(nw=n_.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"})),nj||(nj=n_.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"})),nk||(nk=n_.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)}),ow=n(52322);function oj(e){let{size:t=24}=e;return(0,ow.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ow.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 ok(e){let{size:t=24}=e;return(0,ow.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",children:(0,ow.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,ow.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:n,fill:"currentColor",viewBox:"0 0 384 512",children:(0,ow.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 oS(e){let{size:t=24,className:n}=e;return(0,ow.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",className:n,children:(0,ow.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 oC(e){let{size:t=24,className:n}=e;return(0,ow.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,className:n,fill:"currentColor",viewBox:"0 0 512 512",children:(0,ow.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 oM(e){let{size:t=24}=e;return(0,ow.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ow.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 oP(e){let{size:t=24}=e;return(0,ow.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ow.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 o_(e){let{size:t=24}=e;return(0,ow.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:t,height:t,fill:"currentColor",children:(0,ow.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 oO(e){let{size:t=24}=e;return(0,ow.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:t,width:t,fill:"currentColor",children:(0,ow.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 oT(e){let{size:t=24}=e;return(0,ow.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,width:t,fill:"currentColor",children:(0,ow.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 oA(e){let{size:t=24}=e;return(0,ow.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,ow.jsx)("polygon",{points:"23,9.2 20.4,6.6 19,8 23,12 30,5 28.6,3.6 "}),(0,ow.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,ow.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,ow.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,ow.jsx)("rect",{fill:"none",width:"32",height:"32"})]})}function oN(e){let{size:t=24}=e;return(0,ow.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ow.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"})})}function oR(e){let{size:t=24,className:n}=e;return(0,ow.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,className:n,fill:"currentColor",viewBox:"0 0 512 512",children:(0,ow.jsx)("path",{d:"M336 352c97.2 0 176-78.8 176-176S433.2 0 336 0S160 78.8 160 176c0 18.7 2.9 36.8 8.3 53.7L7 391c-4.5 4.5-7 10.6-7 17v80c0 13.3 10.7 24 24 24h80c13.3 0 24-10.7 24-24V448h40c13.3 0 24-10.7 24-24V384h40c6.4 0 12.5-2.5 17-7l33.3-33.3c16.9 5.4 35 8.3 53.7 8.3zM376 96a40 40 0 1 1 0 80 40 40 0 1 1 0-80z"})})}},55329:function(e,t,n){"use strict";n.d(t,{cJ:function(){return M},Z7:function(){return J},Uy:function(){return Q},e$:function(){return eu},Mz:function(){return ed},oe:function(){return ec},S0:function(){return ef},YX:function(){return es},Bl:function(){return eh},D5:function(){return N},oV:function(){return R},sg:function(){return L},ol:function(){return D},B$:function(){return A},d_:function(){return l},DQ:function(){return s},cq:function(){return _},IK:function(){return O},Wu:function(){return T},GP:function(){return P},nH:function(){return u},$:function(){return w},wW:function(){return C},s2:function(){return k},ni:function(){return E},uf:function(){return j},Os:function(){return S},FV:function(){return b},Yy:function(){return ee},Bi:function(){return et},X1:function(){return en},LS:function(){return ea},_3:function(){return ei},eM:function(){return er},bg:function(){return eo},Pt:function(){return ey},wy:function(){return z},xw:function(){return I},Jv:function(){return Z},p$:function(){return eg},SD:function(){return F},GD:function(){return B},Iy:function(){return V},Q5:function(){return H},ZM:function(){return ev},f$:function(){return eb},M6:function(){return q},Kh:function(){return W},HA:function(){return X},fz:function(){return $},FD:function(){return K},KJ:function(){return G},au:function(){return Y},Wl:function(){return d},cQ:function(){return c},ys:function(){return h},QL:function(){return f},X2:function(){return p},aO:function(){return y},gU:function(){return g},a0:function(){return x},cg:function(){return v},Qq:function(){return m}});var r=n(79381),i=n(82842),a=n(80373),o=n(79895);function l(e){return(0,i.Nf)({...e,route:o.PS})}function s(e){return(0,i.Nf)({...e,route:o.J6})}function u(){let e=l({config:{swr:{revalidateOnFocus:!1}}});return(0,r.ZP)(e,()=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.network)==="zen"?(0,a.du)():(0,a.Tc)()},{refreshInterval:6e4,keepPreviousData:!0}).data||0}function c(e){return(0,i.Nf)({...e,route:o.gl})}function d(e){return(0,i.mw)({...e,route:o.aU},async e=>{e(e=>e===o.gl)})}function f(e){return(0,i.Nf)({...e,route:o.Oj})}function h(e){return(0,i.mw)({...e,route:o.MR},async e=>{await (0,i.gw)(2e3),e(e=>e.startsWith(o.Oj)||e.startsWith(o.zk))})}function p(e){return(0,i.Nf)({...e,route:o.xg})}function m(e){return(0,i.Nf)({...e,route:o.Y6})}function g(e){return(0,i.mw)({...e,route:o.hg})}function v(e){return(0,i.mw)({...e,route:o.ZQ})}function y(e){return(0,i.mw)({...e,route:o.Oy})}function x(e){return(0,i.Nf)({...e,route:o.zk})}function b(e){return(0,i.q0)({...e,route:o.Rp})}function w(e){return(0,i.Nf)({...e,route:o.rg})}function j(e){return(0,i.Nf)({...e,route:o.yu})}function k(e){return(0,i.Nf)({...e,route:o.MF})}function E(e){return(0,i.V1)({...e,route:o.MF},async e=>{e(e=>!![o.Rp,o.MF,o.FP].find(t=>e.startsWith(t)))})}function S(e){return(0,i.V1)({...e,route:o.yu},async e=>{e(e=>!![o.Rp,o.yu,o.FP].find(t=>e.startsWith(t)))})}function C(e){return(0,i.mw)({...e,route:o.KP})}function M(e){return(0,i.mw)({...e,route:o.UM})}function P(e){return(0,i.Nf)({...e,route:o.FP})}function _(e){return(0,i.Nf)({...e,route:o.J9})}function O(e){return(0,i.iv)({...e,route:o.J9},async e=>{e(e=>e.startsWith(o.ft))})}function T(e){return(0,i.Nf)({...e,route:o.E_})}function A(e){return(0,i.Nf)({...e,route:o.AJ})}function N(e){return(0,i.Nf)({...e,route:o.aq})}function R(e){return(0,i.mw)({...e,route:o.AJ},async e=>{e(e=>e.startsWith(o.AJ))})}function D(e){return(0,i.V1)({...e,route:o.mD},async e=>{e(e=>e.startsWith(o.rS))})}function L(e){return(0,i.iv)({...e,route:o.aq},async e=>{e(e=>e.startsWith(o.rS))})}function Z(e){return(0,i.Nf)({...e,route:o.uT})}function F(e){return(0,i.q0)({...e,route:o.p_})}function z(e){return(0,i.Nf)({...e,route:o.uT})}function V(e){return(0,i.Nf)({...e,route:o.O7})}function B(e){return(0,i.mw)({...e,route:o.oZ})}function I(e){return(0,i.iv)({...e,route:o.uT},async e=>{e(e=>e.startsWith(o.DL))})}function H(e){return(0,i.Nf)({...e,route:o.VJ})}function U(e){return(0,i.Nf)({...e,route:o.ww})}function W(e){return U({...e,params:{key:"gouging"}})}function q(e){return U({...e,params:{key:"contractset"}})}function $(e){return U({...e,params:{key:"redundancy"}})}function K(e){return U({...e,params:{key:"s3authentication"}})}function Y(e){return U({...e,params:{key:"uploadpacking"}})}function X(e){return U({...e,params:{key:"pricepinning"}})}function G(e){return(0,i.V1)({...e,route:o.ww},async(e,t)=>{e(e=>e.startsWith(o.ww.replace(":key",t.params.key)))})}function J(e){return(0,i.Nf)({...e,route:o.jL})}function Q(e){return(0,i.mw)({...e,route:o.ks},async e=>{e(e=>e.startsWith(o.jL))})}function ee(e){return(0,i.Nf)({...e,route:o.hp})}function et(e){return(0,i.Nf)({...e,route:o.Mj})}function en(e){return(0,i.Nf)({...e,route:o.nI})}function er(e){return(0,i.mw)({...e,route:o.sW},async e=>{e(e=>e.startsWith(o.Wy))})}function ei(e){return(0,i.mw)({...e,route:o.Pw},async e=>{e(e=>e.startsWith(o.Wy))})}function ea(e){return(0,i.mw)({...e,route:o.w_},async e=>{e(e=>e.startsWith(o.Wy))})}function eo(e){return(0,i.q0)({...e,route:o.CM})}var el=n(56922);function es(e){return(0,i.Nf)({...e,route:el.E})}function eu(e){return(0,i.Nf)({...e,route:el.yq})}function ec(e){return(0,i.V1)({...e,route:el.yq},async e=>{e(e=>e===el.yq),(async()=>{await (0,i.gw)(1e3),e(e=>e===el.E)})()})}function ed(e){return(0,i.q0)({...e,route:el.yq})}function ef(e){return(0,i.q0)({...e,route:el.fu})}function eh(e){return(0,i.mw)({...e,route:el.sM})}var ep=n(1456),em=n(8117);function eg(e){return(0,i.rB)({...e,route:em.Hc})}function ev(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:em.Hc},async e=>{e(e=>e.startsWith(o.DL))})}function ey(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:em.bW})}let ex=(0,ep.Z)(e=>e(),5e3);function eb(e){return(0,i.mw)({...e,route:em.RF},async(e,t,n)=>{let{payload:{hostKey:r}}=t;e(e=>e.startsWith(el.fu),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(o.Rp),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),ex(()=>{e(e=>e.startsWith(el.fu)||e.startsWith(o.Rp),e=>e,!0)})})}},56922:function(e,t,n){"use strict";n.d(t,{E:function(){return r},fu:function(){return a},sM:function(){return o},yq:function(){return i}});let r="/autopilot/state",i="/autopilot/config",a="/autopilot/hosts",o="/autopilot/trigger"},79895:function(e,t,n){"use strict";n.d(t,{AD:function(){return D},AF:function(){return s},AJ:function(){return I},CM:function(){return ed},DL:function(){return W},E_:function(){return F},FP:function(){return O},GV:function(){return ec},I7:function(){return z},J6:function(){return i},J9:function(){return R},KP:function(){return P},Kr:function(){return b},MF:function(){return M},MR:function(){return c},Mj:function(){return er},N8:function(){return j},O7:function(){return K},Oj:function(){return u},Oy:function(){return x},PS:function(){return r},Pw:function(){return es},Rp:function(){return k},UM:function(){return _},VJ:function(){return X},Wy:function(){return eo},Y6:function(){return p},Z:function(){return d},Z2:function(){return L},ZQ:function(){return v},aU:function(){return l},aq:function(){return H},cN:function(){return Z},f0:function(){return y},fD:function(){return G},fo:function(){return T},ft:function(){return N},gc:function(){return a},gl:function(){return o},go:function(){return et},hg:function(){return g},hp:function(){return en},jL:function(){return Q},ks:function(){return ee},l5:function(){return ei},mD:function(){return U},nI:function(){return ea},nY:function(){return S},o5:function(){return ef},oZ:function(){return Y},p_:function(){return $},rS:function(){return B},rW:function(){return m},rg:function(){return E},sW:function(){return el},sj:function(){return h},sw:function(){return A},uT:function(){return q},w_:function(){return eu},ww:function(){return J},xg:function(){return f},yu:function(){return C},z$:function(){return V},zk:function(){return w}});let r="/bus/state",i="/bus/consensus/state",a="/bus/consensus/acceptblock",o="/bus/syncer/peers",l="/bus/syncer/connect",s="/bus/syncer/addr",u="/bus/txpool/transactions",c="/bus/txpool/broadcast",d="/bus/txpool/fee",f="/bus/wallet",h="/bus/wallet/addresses",p="/bus/wallet/transactions",m="/bus/wallet/outputs",g="/bus/wallet/fund",v="/bus/wallet/sign",y="/bus/wallet/redistribute",x="/bus/wallet/discard",b="/bus/wallet/prepare/form",w="/bus/wallet/pending",j="/bus/hosts",k="/bus/search/hosts",E="/bus/host/:hostKey",S="/bus/hosts/:hostKey",C="/bus/hosts/blocklist",M="/bus/hosts/allowlist",P="/bus/host/:publicKey/resetlostsectors",_="/bus/account/:id/resetdrift",O="/bus/contracts",T="/bus/contract/:id/acquire",A="/bus/contract/:id/release",N="/bus/contract",R="/bus/contract/:id",D="/bus/contract/:id/new",L="/bus/contract/:id/renewed",Z="/bus/contract/:id/size",F="/bus/contracts/sets",z="/bus/contracts/sets/:set",V="/bus/contracts/prunable",B="/bus/bucket",I="/bus/buckets",H="/bus/bucket/:name",U="/bus/bucket/:name/policy",W="/bus/objects",q="/bus/objects/:key",$="/bus/objects/list",K="/bus/search/objects",Y="/bus/objects/rename",X="/bus/stats/objects",G="/bus/settings",J="/bus/setting/:key",Q="/bus/alerts",ee="/bus/alerts/dismiss",et="/bus/slab/:key/objects",en="/bus/metric/contract",er="/bus/metric/contractset",ei="/bus/metric/churn",ea="/bus/metric/wallet",eo="/bus/multipart",el="/bus/multipart/create",es="/bus/multipart/complete",eu="/bus/multipart/abort",ec="/bus/multipart/listparts",ed="/bus/multipart/listuploads",ef="/bus/multipart/part"},8117:function(e,t,n){"use strict";n.d(t,{Hc:function(){return r},RF:function(){return a},bW:function(){return i}});let r="/worker/objects/:key",i="/worker/multipart/:key",a="/worker/rhp/scan"},56978:function(e,t,n){"use strict";n.d(t,{Li:function(){return A},YY:function(){return N},AR:function(){return T}});var r,i=n(23761),a=n(40905),o=n(78804),l=function(e,t,n){(void 0===n||(0,o.Z)(e[t],n))&&(void 0!==n||t in e)||(0,a.Z)(e,t,n)},s=n(86862),u=n(25056),c=n(76735),d=n(31162),f=n(81383),h=n(84405),p=n(97885),m=n(37539),g=n(42143),v=n(8936),y=n(93122),x=n(65255),b=n(48532),w=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},j=n(82436),k=n(17816),E=function(e,t,n,r,i,a,o){var s=w(e,n),E=w(t,n),S=o.get(E);if(S){l(e,n,S);return}var C=a?a(s,E,n+"",e,t,o):void 0,M=void 0===C;if(M){var P=(0,p.Z)(E),_=!P&&(0,g.Z)(E),O=!P&&!_&&(0,b.Z)(E);(C=E,P||_||O)?(0,p.Z)(s)?C=s:(0,m.Z)(s)?C=(0,d.Z)(s):_?(M=!1,C=(0,u.Z)(E,!0)):O?(M=!1,C=(0,c.Z)(E,!0)):C=[]:(0,x.Z)(E)||(0,h.Z)(E)?(C=s,(0,h.Z)(s))?C=(0,j.Z)(s,(0,k.Z)(s)):(!(0,y.Z)(s)||(0,v.Z)(s))&&(C=(0,f.Z)(E)):M=!1}M&&(o.set(E,C),i(C,E,r,a,o),o.delete(E)),l(e,n,C)},S=function e(t,n,r,a,o){t!==n&&(0,s.Z)(n,function(s,u){if(o||(o=new i.Z),(0,y.Z)(s))E(t,n,u,r,e,a,o);else{var c=a?a(w(t,u),s,u+"",t,n,o):void 0;void 0===c&&(c=s),l(t,u,c)}},k.Z)},C=n(56493),M=n(95965),P=(r=function(e,t,n){S(e,t,n)},(0,C.Z)(function(e,t){var n=-1,i=t.length,a=i>1?t[i-1]:void 0,o=i>2?t[2]:void 0;for(a=r.length>3&&"function"==typeof a?(i--,a):void 0,o&&(0,M.Z)(t[0],t[1],o)&&(a=i<3?void 0:a,i=1),e=Object(e);++n3&&void 0!==arguments[3]?arguments[3]:{};return i=>{let a={...i},o={...a,config:P(r.config,a.config)},l=T(n,{...r.defaultParams,...o.params}),s="data"in o?o.data:void 0;return e[t](l,s,null==o?void 0:o.config)}}function N(e,t){let n={"Content-Type":"application/json"};return t&&(n.Authorization="Basic ".concat(btoa(":".concat(t)))),O().create({baseURL:e,headers:n})}},85375:function(e,t,n){"use strict";n.d(t,{BW:function(){return l},JL:function(){return a},BF:function(){return o}});var r=n(82842);let i="https://api.siacentral.com/v2";function a(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 o(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 l(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})}},80373:function(e,t,n){"use strict";n.d(t,{B$:function(){return a},xf:function(){return l},jr:function(){return E},pp:function(){return j},x5:function(){return k},JW:function(){return o},k4:function(){return R},gU:function(){return x},mj:function(){return $},Lg:function(){return W},gP:function(){return d},Lu:function(){return K},uF:function(){return U},jH:function(){return q},uV:function(){return H},jF:function(){return B},Tc:function(){return D},aU:function(){return N},du:function(){return L},le:function(){return Z},pX:function(){return z},vW:function(){return m},rN:function(){return y},yF:function(){return v},Vz:function(){return p},bc:function(){return g},S5:function(){return w},C4:function(){return f},qN:function(){return c},ll:function(){return u},dq:function(){return P},LK:function(){return S},ZA:function(){return T},oc:function(){return O},x9:function(){return A},qX:function(){return _},iX:function(){return M},wf:function(){return C},mv:function(){return b}});var r=n(6391),i=n.n(r);function a(e){return new(i())(e).times(1048576)}function o(e){return new(i())(e).div(1e12)}function l(e){return new(i())(e).times(1e12)}r.BigNumber.config({EXPONENTIAL_AT:1e9}),r.BigNumber.config({DECIMAL_PLACES:30});let s=new r.BigNumber("10").exponentiatedBy(24);function u(e,t){return void 0!==t?new r.BigNumber(new r.BigNumber(e).dividedBy(s).toFixed(t)):new r.BigNumber(e).dividedBy(s)}function c(e){return new r.BigNumber(new r.BigNumber(e).times(s).toFixed(0))}function d(e,t){return e.div(t)}function f(e,t){return e.times(t)}let h={fixed:3,dynamicUnits:!0,hastingUnits:!1};function p(e,t){let{fixed:n,dynamicUnits:i,hastingUnits:a}={...h,...t},o=new r.BigNumber(1e12),l=new r.BigNumber(1e3),s=new r.BigNumber(e),c=new r.BigNumber(e).abs(),d=s.isNegative()?"-":"";if(!i)return"".concat(d).concat(u(c).toFormat(n)," SC");if(c.dividedBy(o).isLessThan(1))return a?"".concat(d).concat(c," H"):"".concat(d,"0 SC");let f=["pS","nS","uS","mS","SC","KS","MS","GS","TS"];for(let e=0;ee.multipliedBy(l),new r.BigNumber(1)),i=c.dividedBy(o.multipliedBy(t));if(i.isLessThan(l)||e===f.length-1)return"".concat(d).concat(i.toFormat(n)," ").concat(f[e])}return""}function m(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 a=Math.floor(Math.log10(n)/Math.log10(1e3));return(n/Math.pow(1e3,a)).toFixed(r)+" "+["B","KB","MB","GB","TB","PB","EB"][a]}function g(e,t){let{format:n="abbreviated"}=t||{},r="abbreviated"===n;if(e<1e3)return"".concat(e.toFixed(0)).concat(r?"ms":" milliseconds");let i=e/1e3;if(i<60)return"".concat(i.toFixed(0)).concat(r?"s":" seconds");let a=i/60;if(a<60)return"".concat(a.toFixed(0)).concat(r?"m":" minutes");let o=a/60;return o<24?"".concat(o.toFixed(0)).concat(r?"h":" hours"):"".concat((o/24).toFixed(0)).concat(r?"d":" days")}function v(e,t){let{fixed:n=0,units:r="",abbreviated:a=!1}=t||{},o=new(i())(e||0);if(a){let e=o.toNumber();if(e<1e3)return o.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)),a=e/Math.pow(1e3,i);return"".concat(a.toFixed(n)).concat(t[i]?" ".concat(t[i]):"").concat(r?" ".concat(r):"")}return"".concat(o.toFormat(n)).concat(r?" ".concat(r):"")}function y(e,t){let n;return n=navigator.language,new Intl.DateTimeFormat(n,{dateStyle:"short",...t}).format(new Date(e))}function x(e){return 144*e}function b(e){return 1008*e}function w(e){return 4320*e}function j(e){return e/16666666666666669e-22}function k(e){return e/1008}function E(e,t){return new Date().getTime()+j(t-e)}function S(e){return e.times(l(1))}function C(e){return e.div(l(1))}function M(e){return C(e).div(w(1))}function P(e){return S(e).times(w(1))}function _(e,t){return e.div(t).times(w(1))}function O(e,t){let n=b(t.toNumber());return e.times(n).div(w(1))}function T(e){return e.div(1e6)}function A(e){return e.times(1e6)}function N(e,t){let n=new(i())(1);return e&&t&&!e.isZero()&&!t.isZero()&&t.gte(e)&&(n=t.div(e)),n}function R(e){let{maxStoragePriceTBMonth:t,maxDownloadPriceTB:n,maxUploadPriceTB:r,storageTB:i,downloadTBMonth:a,uploadTBMonth:o,redundancyMultiplier:l}=e;if(!(null==t?void 0:t.gt(0))||!(null==n?void 0:n.gt(0))||!(null==r?void 0:r.gt(0))||!(null==l?void 0:l.gt(0))||!(null==i?void 0:i.gt(0))||!(null==a?void 0:a.gt(0))||!(null==o?void 0:o.gt(0)))return null;let s=i.times(l),u=o.times(l);return s.times(t).plus(a.times(n)).plus(u.times(r))}function D(){return Math.round((new Date().getTime()-14336e8)/6e5)}function L(){return Math.round((new Date().getTime()-16736e8)/6e5)}function Z(e){return 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}n(81395);let F={siacoin:"siacoin transfer",siafund:"siafund transfer",contractFormation:"contract formation",contractRenewal:"contract renewal",contractRevision:"contract revision",contractExpiration:"contract expiration",contractFinalization:"contract finalization",contractPayout:"contract payout",storageProof:"storage proof",minerPayout:"miner payout",siafundClaim:"siafund claim",foundationSubsidy:"foundation subsidy",hostAnnouncement:"host announcement"};function z(e){return e?F[e]:void 0}let V={transaction:"transaction",contract:"contract",block:"block",output:"output",address:"address",hostIp:"host",hostPublicKey:"host",ip:"IP",blockHash:"block hash"};function B(e){return e?V[e]:void 0}let I={transaction:"transaction ID",contract:"contract ID",block:"block",output:"output ID",address:"address",hostIp:"host address",hostPublicKey:"host public key",ip:"IP",blockHash:"block hash"};function H(e){return e?I[e]:void 0}function U(e){return e&&["ip","hostIp"].includes(e)?20:12}function W(e){return e&&["hostIp","hostPublicKey","contract","address","transaction","block"].includes(e)}function q(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""}}function $(e,t){return"".concat(null==e?void 0:e.slice(0,t)).concat(((null==e?void 0:e.length)||0)>t?"...":"")}function K(e,t,n){if("blockHash"===e){let e=n/2;return t.slice(0,Math.floor(e))+"..."+t.slice(t.length-Math.ceil(e))}return $(t,n)}},45932:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(67531).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)},67531:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return a}});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 a(){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)},76923: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)},58710: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 s.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return s.useServerInsertedHTML},useRouter:function(){return g},useParams:function(){return v},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(56428),a=n(26297),o=n(76923),l=n(33607),s=n(9424),u=n(84830),c=n(70929),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,o.clientHookInServerComponentError)("useSearchParams");let e=(0,r.useContext)(a.SearchParamsContext);return(0,r.useMemo)(()=>e?new h(e):null,[e])}function m(){return(0,o.clientHookInServerComponentError)("usePathname"),(0,r.useContext)(a.PathnameContext)}function g(){(0,o.clientHookInServerComponentError)("useRouter");let e=(0,r.useContext)(i.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function v(){(0,o.clientHookInServerComponentError)("useParams");let e=(0,r.useContext)(i.GlobalLayoutRouterContext),t=(0,r.useContext)(a.PathParamsContext);return(0,r.useMemo)(()=>(null==e?void 0:e.tree)?function e(t,n){for(let r of(void 0===n&&(n={}),Object.values(t[1]))){let t=r[0],i=Array.isArray(t),a=i?t[1]:t;!a||a.startsWith("__PAGE__")||(i&&("c"===t[2]||"oc"===t[2])?n[t[0]]=t[1].split("/"):i&&(n[t[0]]=t[1]),n=e(r,n))}return n}(e.tree):t,[null==e?void 0:e.tree,t])}function y(e){void 0===e&&(e="children"),(0,o.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,r.useContext)(i.LayoutRouterContext);return function e(t,n,r,i){let a;if(void 0===r&&(r=!0),void 0===i&&(i=[]),r)a=t[1][n];else{var o;let e=t[1];a=null!=(o=e.children)?o:Object.values(e)[0]}if(!a)return i;let s=a[0],u=(0,l.getSegmentValue)(s);return!u||u.startsWith("__PAGE__")?i:(i.push(u),e(a,n,!1,i))}(t,e)}function x(e){void 0===e&&(e="children"),(0,o.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)},70929: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)},32254:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return n}}),(r=n||(n={}))[r.SeeOther=303]="SeeOther",r[r.TemporaryRedirect=307]="TemporaryRedirect",r[r.PermanentRedirect=308]="PermanentRedirect",("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)},84830: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 u},redirect:function(){return c},permanentRedirect:function(){return d},isRedirectError:function(){return f},getURLFromRedirectError:function(){return h},getRedirectTypeFromError:function(){return p},getRedirectStatusCodeFromError:function(){return m}});let a=n(37449),o=n(45932),l=n(32254),s="NEXT_REDIRECT";function u(e,t,n){void 0===n&&(n=l.RedirectStatusCode.TemporaryRedirect);let r=Error(s);r.digest=s+";"+t+";"+e+";"+n+";";let i=a.requestAsyncStorage.getStore();return i&&(r.mutableCookies=i.mutableCookies),r}function c(e,t){void 0===t&&(t="replace");let n=o.actionAsyncStorage.getStore();throw u(e,t,(null==n?void 0:n.isAction)?l.RedirectStatusCode.SeeOther:l.RedirectStatusCode.TemporaryRedirect)}function d(e,t){void 0===t&&(t="replace");let n=o.actionAsyncStorage.getStore();throw u(e,t,(null==n?void 0:n.isAction)?l.RedirectStatusCode.SeeOther:l.RedirectStatusCode.PermanentRedirect)}function f(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,n,r,i]=e.digest.split(";",4),a=Number(i);return t===s&&("replace"===n||"push"===n)&&"string"==typeof r&&!isNaN(a)&&a in l.RedirectStatusCode}function h(e){return f(e)?e.digest.split(";",3)[2]:null}function p(e){if(!f(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function m(e){if(!f(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(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)},37449:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(67531).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)},33607: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)},40413: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 a},ACTION_RESTORE:function(){return o},ACTION_SERVER_PATCH:function(){return l},ACTION_PREFETCH:function(){return s},ACTION_FAST_REFRESH:function(){return u},ACTION_SERVER_ACTION:function(){return c},isThenable:function(){return d}});let i="refresh",a="navigate",o="restore",l="server-patch",s="prefetch",u="fast-refresh",c="server-action";function d(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(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)},41275: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(60261),("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)},84589:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return v}});let r=n(43219),i=n(16794)._(n(2784)),a=r._(n(28316)),o=r._(n(70666)),l=n(35022),s=n(59595),u=n(22530);n(85667);let c=n(14442),d=r._(n(1071)),f={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 h(e,t,n,r,i,a){let o=null==e?void 0:e.src;e&&e["data-loaded-src"]!==o&&(e["data-loaded-src"]=o,("decode"in e?e.decode():Promise.resolve()).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 p(e){let[t,n]=i.version.split(".",2),r=parseInt(t,10),a=parseInt(n,10);return r>18||18===r&&a>=3?{fetchPriority:e}:{fetchpriority:e}}let m=(0,i.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:a,height:o,width:l,decoding:s,className:u,style:c,fetchPriority:d,placeholder:f,loading:m,unoptimized:g,fill:v,onLoadRef:y,onLoadingCompleteRef:x,setBlurComplete:b,setShowAltText:w,onLoad:j,onError:k,...E}=e;return i.default.createElement("img",{...E,...p(d),loading:m,width:l,height:o,decoding:s,"data-nimg":v?"fill":"1",className:u,style:c,sizes:a,srcSet:r,src:n,ref:(0,i.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(k&&(e.src=e.src),e.complete&&h(e,f,y,x,b,g))},[n,f,y,x,b,k,g,t]),onLoad:e=>{h(e.currentTarget,f,y,x,b,g)},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,...p(n.fetchPriority)};return t&&a.default.preload?(a.default.preload(n.src,r),null):i.default.createElement(o.default,null,i.default.createElement("link",{key:"__nimg-"+n.src+n.srcSet+n.sizes,rel:"preload",href:n.srcSet?void 0:n.src,...r}))}let v=(0,i.forwardRef)((e,t)=>{let n=(0,i.useContext)(c.RouterContext),r=(0,i.useContext)(u.ImageConfigContext),a=(0,i.useMemo)(()=>{let e=f||r||s.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:o,onLoadingComplete:h}=e,p=(0,i.useRef)(o);(0,i.useEffect)(()=>{p.current=o},[o]);let v=(0,i.useRef)(h);(0,i.useEffect)(()=>{v.current=h},[h]);let[y,x]=(0,i.useState)(!1),[b,w]=(0,i.useState)(!1),{props:j,meta:k}=(0,l.getImgProps)(e,{defaultLoader:d.default,imgConf:a,blurComplete:y,showAltText:b});return i.default.createElement(i.default.Fragment,null,i.default.createElement(m,{...j,unoptimized:k.unoptimized,placeholder:k.placeholder,fill:k.fill,onLoadRef:p,onLoadingCompleteRef:v,setBlurComplete:x,setShowAltText:w,ref:t}),k.priority?i.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)},7117:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let r=n(43219)._(n(2784)),i=n(86338),a=n(25863),o=n(6408),l=n(20654),s=n(41127),u=n(14442),c=n(56428),d=n(54746),f=n(41275),h=n(35722),p=n(40413),m=new Set;function g(e,t,n,r,i,o){if(o||(0,a.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){let i=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(m.has(i))return;m.add(i)}Promise.resolve(o?e.prefetch(t,i):e.prefetch(t,n,r)).catch(e=>{})}}function v(e){return"string"==typeof e?e:(0,o.formatUrl)(e)}let y=r.default.forwardRef(function(e,t){let n,o;let{href:m,as:y,children:x,prefetch:b=null,passHref:w,replace:j,shallow:k,scroll:E,locale:S,onClick:C,onMouseEnter:M,onTouchStart:P,legacyBehavior:_=!1,...O}=e;n=x,_&&("string"==typeof n||"number"==typeof n)&&(n=r.default.createElement("a",null,n));let T=r.default.useContext(u.RouterContext),A=r.default.useContext(c.AppRouterContext),N=null!=T?T:A,R=!T,D=!1!==b,L=null===b?p.PrefetchKind.AUTO:p.PrefetchKind.FULL,{href:Z,as:F}=r.default.useMemo(()=>{if(!T){let e=v(m);return{href:e,as:y?v(y):e}}let[e,t]=(0,i.resolveHref)(T,m,!0);return{href:e,as:y?(0,i.resolveHref)(T,y):t||e}},[T,m,y]),z=r.default.useRef(Z),V=r.default.useRef(F);_&&(o=r.default.Children.only(n));let B=_?o&&"object"==typeof o&&o.ref:t,[I,H,U]=(0,d.useIntersection)({rootMargin:"200px"}),W=r.default.useCallback(e=>{(V.current!==F||z.current!==Z)&&(U(),V.current=F,z.current=Z),I(e),B&&("function"==typeof B?B(e):"object"==typeof B&&(B.current=e))},[F,B,Z,U,I]);r.default.useEffect(()=>{N&&H&&D&&g(N,Z,F,{locale:S},{kind:L},R)},[F,Z,H,S,D,null==T?void 0:T.locale,N,R,L]);let q={ref:W,onClick(e){_||"function"!=typeof C||C(e),_&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(e),N&&!e.defaultPrevented&&function(e,t,n,i,o,l,s,u,c){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let f=()=>{let e=null==s||s;"beforePopState"in t?t[o?"replace":"push"](n,i,{shallow:l,locale:u,scroll:e}):t[o?"replace":"push"](i||n,{scroll:e})};c?r.default.startTransition(f):f()}(e,N,Z,F,j,k,E,S,R)},onMouseEnter(e){_||"function"!=typeof M||M(e),_&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),N&&(D||!R)&&g(N,Z,F,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:L},R)},onTouchStart(e){_||"function"!=typeof P||P(e),_&&o.props&&"function"==typeof o.props.onTouchStart&&o.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(!_||w||"a"===o.type&&!("href"in o.props)){let e=void 0!==S?S:null==T?void 0:T.locale,t=(null==T?void 0:T.isLocaleDomain)&&(0,f.getDomainLocale)(F,e,null==T?void 0:T.locales,null==T?void 0:T.domainLocales);q.href=t||(0,h.addBasePath)((0,s.addLocale)(F,e,null==T?void 0:T.defaultLocale))}return _?r.default.cloneElement(o,q):r.default.createElement("a",{...O,...q},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)},54746:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return s}});let r=n(2784),i=n(27155),a="function"==typeof IntersectionObserver,o=new Map,l=[];function s(e){let{rootRef:t,rootMargin:n,disabled:s}=e,u=s||!a,[c,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),h=(0,r.useCallback)(e=>{f.current=e},[]);return(0,r.useEffect)(()=>{if(a){if(u||c)return;let e=f.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:i,elements:a}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=l.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=o.get(r)))return t;let i=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:i},l.push(n),o.set(n,t),t}(n);return a.set(e,t),i.observe(e),function(){if(a.delete(e),i.unobserve(e),0===a.size){i.disconnect(),o.delete(r);let e=l.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,n,t,c,f.current]),[h,c,(0,r.useCallback)(()=>{d(!1)},[])]}("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)},24167: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 o},default:function(){return l}});let r=n(43219),i=(n(2784),r._(n(9034)));function a(e){return{default:(null==e?void 0:e.default)||e}}function o(e,t){return delete t.webpack,delete t.modules,e(t)}function l(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});let l=(r={...r,...t}).loader;return(r.loadableGenerated&&(r={...r,...r.loadableGenerated},delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr)?n({...r,loader:()=>null!=l?l().then(a):Promise.resolve(a(()=>null))}):(delete r.webpack,delete r.modules,o(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)},35022:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return l}}),n(85667);let r=n(48026),i=n(59595);function a(e){return void 0!==e.default}function o(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 l(e,t){var n;let l,s,u,{src:c,sizes:d,unoptimized:f=!1,priority:h=!1,loading:p,className:m,quality:g,width:v,height:y,fill:x=!1,style:b,onLoad:w,onLoadingComplete:j,placeholder:k="empty",blurDataURL:E,fetchPriority:S,layout:C,objectFit:M,objectPosition:P,lazyBoundary:_,lazyRoot:O,...T}=e,{imgConf:A,showAltText:N,blurComplete:R,defaultLoader:D}=t,L=A||i.imageConfigDefault;if("allSizes"in L)l=L;else{let e=[...L.deviceSizes,...L.imageSizes].sort((e,t)=>e-t),t=L.deviceSizes.sort((e,t)=>e-t);l={...L,allSizes:e,deviceSizes:t}}let Z=T.loader||D;delete T.loader,delete T.srcSet;let F="__next_img_default"in Z;if(F){if("custom"===l.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(C){"fill"===C&&(x=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[C];e&&(b={...b,...e});let t={responsive:"100vw",fill:"100vw"}[C];t&&!d&&(d=t)}let z="",V=o(v),B=o(y);if("object"==typeof(n=c)&&(a(n)||void 0!==n.src)){let e=a(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(s=e.blurWidth,u=e.blurHeight,E=E||e.blurDataURL,z=e.src,!x){if(V||B){if(V&&!B){let t=V/e.width;B=Math.round(e.height*t)}else if(!V&&B){let t=B/e.height;V=Math.round(e.width*t)}}else V=e.width,B=e.height}}let I=!h&&("lazy"===p||void 0===p);(!(c="string"==typeof c?c:z)||c.startsWith("data:")||c.startsWith("blob:"))&&(f=!0,I=!1),l.unoptimized&&(f=!0),F&&c.endsWith(".svg")&&!l.dangerouslyAllowSVG&&(f=!0),h&&(S="high");let H=o(g),U=Object.assign(x?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:M,objectPosition:P}:{},N?{}:{color:"transparent"},b),W=R||"empty"===k?null:"blur"===k?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:V,heightInt:B,blurWidth:s,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:a,sizes:o,loader:l}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:s,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"}}return"number"!=typeof t?{widths:r,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,o),c=s.length-1;return{sizes:o||"w"!==u?o:"100vw",srcSet:s.map((e,r)=>l({config:t,src:n,quality:a,width:e})+" "+("w"===u?e:r+1)+u).join(", "),src:l({config:t,src:n,quality:a,width:s[c]})}}({config:l,src:c,unoptimized:f,width:V,quality:H,sizes:d,loader:Z});return{props:{...T,loading:I?"lazy":p,fetchPriority:S,width:V,height:B,decoding:"async",className:m,style:{...U,...q},sizes:$.sizes,srcSet:$.srcSet,src:$.src},meta:{unoptimized:f,priority:h,placeholder:k,fill:x}}}},48026:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:a,objectFit:o}=e,l=r?40*r:t,s=i?40*i:n,u=l&&s?"viewBox='0 0 "+l+" "+s+"'":"";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"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+a+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},84420: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,{unstable_getImgProps:function(){return s},default:function(){return u}});let r=n(43219),i=n(35022),a=n(85667),o=n(84589),l=r._(n(1071)),s=e=>{(0,a.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:l.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=o.Image},1071: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},6730:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return r}});let r=n(43219)._(n(2784)).default.createContext(null)},9034:function(e,t,n){"use strict";/** +Defaulting to \`null\`.`)}};let dG=(0,eo.forwardRef)((e,t)=>{var n;let{__scopeProgress:r,...i}=e,a=dY("ProgressIndicator",r);return(0,eo.createElement)(em.WV.div,(0,es.Z)({"data-state":dQ(a.value,a.max),"data-value":null!==(n=a.value)&&void 0!==n?n:void 0,"data-max":a.max},i,{ref:t}))});function dJ(e,t){return`${Math.round(e/t*100)}%`}function dQ(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function d0(e){return"number"==typeof e}function d1(e){return d0(e)&&!isNaN(e)&&e>0}function d2(e,t){return d0(e)&&!isNaN(e)&&e<=t&&e>=0}let d4=(0,eW.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"}}),d3=eo.forwardRef((e,t)=>{let{label:n,variant:r,className:i,value:a,max:o=100,...l}=e,s=null!=a?Math.round(a/o*100):null;return(0,ea.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,ea.jsx)(dX,{...l,ref:t,value:a,max:o,className:d4({variant:r,className:i}),children:(0,ea.jsx)(dG,{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(s,"%)")}})}),n&&(0,ea.jsx)(nw,{color:"subtle",size:"12",ellipsis:!0,children:n})]})});function d5(e){let t=(0,eo.useRef)({value:e,previous:e});return(0,eo.useMemo)(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}let d6="Radio",[d8,d7]=(0,eu.b)(d6),[d9,fe]=d8(d6),ft=(0,eo.forwardRef)((e,t)=>{let{__scopeRadio:n,"aria-labelledby":r,name:i,checked:a=!1,required:o,disabled:l,value:s="on",onCheck:u,...c}=e,[d,f]=(0,eo.useState)(null),h=(0,ec.e)(t,e=>f(e)),p=dm(d),m=(0,eo.useRef)(!1),g=!d||!!d.closest("form");return(0,eo.createElement)(d9,{scope:n,checked:a,disabled:l},(0,eo.createElement)(em.WV.button,(0,es.Z)({type:"button",role:"radio","aria-checked":a,"aria-labelledby":r||p,"data-state":fi(a),"data-disabled":l?"":void 0,disabled:l,value:s},c,{ref:h,onClick:(0,eh.M)(e.onClick,e=>{a||null==u||u(),g&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})),g&&(0,eo.createElement)(fr,{control:d,bubbles:!m.current,name:i,value:s,checked:a,required:o,disabled:l,style:{transform:"translateX(-100%)"}}))}),fn=(0,eo.forwardRef)((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,a=fe("RadioIndicator",n);return(0,eo.createElement)(ev.z,{present:r||a.checked},(0,eo.createElement)(em.WV.span,(0,es.Z)({"data-state":fi(a.checked),"data-disabled":a.disabled?"":void 0},i,{ref:t})))}),fr=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,a=(0,eo.useRef)(null),o=d5(n),l=tV(t);return(0,eo.useEffect)(()=>{let e=a.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(o!==n&&t){let i=new Event("click",{bubbles:r});t.call(e,n),e.dispatchEvent(i)}},[o,n,r]),(0,eo.createElement)("input",(0,es.Z)({type:"radio","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function fi(e){return e?"checked":"unchecked"}let fa=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],fo="RadioGroup",[fl,fs]=(0,eu.b)(fo,[uU,d7]),fu=uU(),fc=d7(),[fd,ff]=fl(fo),fh=(0,eo.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,name:r,"aria-labelledby":i,defaultValue:a,value:o,required:l=!1,orientation:s,dir:u,loop:c=!0,onValueChange:d,...f}=e,h=dm(),p=fu(n),m=s2(u),[g,v]=(0,ep.T)({prop:o,defaultProp:a,onChange:d});return(0,eo.createElement)(fd,{scope:n,name:r,required:l,value:g,onValueChange:v},(0,eo.createElement)(u$,(0,es.Z)({asChild:!0},p,{orientation:s,dir:m,loop:c}),(0,eo.createElement)(em.WV.div,(0,es.Z)({role:"radiogroup","aria-required":l,"aria-orientation":s,"aria-labelledby":i||h,dir:m},f,{ref:t}))))}),fp=(0,eo.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,disabled:r,...i}=e,a=ff("RadioGroupItem",n),o=fu(n),l=fc(n),s=(0,eo.useRef)(null),u=(0,ec.e)(t,s),c=a.value===i.value,d=(0,eo.useRef)(!1);return(0,eo.useEffect)(()=>{let e=e=>{fa.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,eo.createElement)(uY,(0,es.Z)({asChild:!0},o,{focusable:!r,active:c}),(0,eo.createElement)(ft,(0,es.Z)({disabled:r,required:a.required,checked:c},l,i,{name:a.name,ref:u,onCheck:()=>a.onValueChange(i.value),onKeyDown:(0,eh.M)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,eh.M)(i.onFocus,()=>{var e;d.current&&(null===(e=s.current)||void 0===e||e.click())})})))}),fm=(0,eo.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,...r}=e,i=fc(n);return(0,eo.createElement)(fn,(0,es.Z)({},i,r,{ref:t}))}),fg=(0,eW.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"}}),fv=(0,eW.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"}}),fy=eo.forwardRef((e,t)=>{let{size:n,className:r,children:i,...a}=e;return(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(fp,{...a,className:fv({size:n,className:r}),ref:t,children:(0,ea.jsx)(fm,{className:fg({size:n})})}),(0,ea.jsx)(nw,{size:"14",className:"relative top-px flex items-center",color:a.disabled?"verySubtle":"subtle",children:i})]})}),fx=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)(fh,{...r,className:(0,eW.cx)("flex gap-2",n),ref:t})}),fb="Tabs",[fw,fj]=(0,eu.b)(fb,[uU]),fk=uU(),[fE,fS]=fw(fb),fC=(0,eo.forwardRef)((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o="horizontal",dir:l,activationMode:s="automatic",...u}=e,c=s2(l),[d,f]=(0,ep.T)({prop:r,onChange:i,defaultProp:a});return(0,eo.createElement)(fE,{scope:n,baseId:(0,ey.M)(),value:d,onValueChange:f,orientation:o,dir:c,activationMode:s},(0,eo.createElement)(em.WV.div,(0,es.Z)({dir:c,"data-orientation":o},u,{ref:t})))}),fM=(0,eo.forwardRef)((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,a=fS("TabsList",n),o=fk(n);return(0,eo.createElement)(u$,(0,es.Z)({asChild:!0},o,{orientation:a.orientation,dir:a.dir,loop:r}),(0,eo.createElement)(em.WV.div,(0,es.Z)({role:"tablist","aria-orientation":a.orientation},i,{ref:t})))}),f_=(0,eo.forwardRef)((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=fS("TabsTrigger",n),l=fk(n),s=fT(o.baseId,r),u=fP(o.baseId,r),c=r===o.value;return(0,eo.createElement)(uY,(0,es.Z)({asChild:!0},l,{focusable:!i,active:c}),(0,eo.createElement)(em.WV.button,(0,es.Z)({type:"button",role:"tab","aria-selected":c,"aria-controls":u,"data-state":c?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:s},a,{ref:t,onMouseDown:(0,eh.M)(e.onMouseDown,e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():o.onValueChange(r)}),onKeyDown:(0,eh.M)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&o.onValueChange(r)}),onFocus:(0,eh.M)(e.onFocus,()=>{let e="manual"!==o.activationMode;c||i||!e||o.onValueChange(r)})})))}),fO=(0,eo.forwardRef)((e,t)=>{let{__scopeTabs:n,value:r,forceMount:i,children:a,...o}=e,l=fS("TabsContent",n),s=fT(l.baseId,r),u=fP(l.baseId,r),c=r===l.value,d=(0,eo.useRef)(c);return(0,eo.useEffect)(()=>{let e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,eo.createElement)(ev.z,{present:i||c},({present:n})=>(0,eo.createElement)(em.WV.div,(0,es.Z)({"data-state":c?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":s,hidden:!n,id:u,tabIndex:0},o,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),n&&a))});function fT(e,t){return`${e}-trigger-${t}`}function fP(e,t){return`${e}-content-${t}`}let fA=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)(fC,{ref:t,className:(0,eW.cx)("flex flex-col",n),...r})}),fN=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)(fM,{ref:t,className:(0,eW.cx)("flex flex-shrink-0 border-b border-gray-500 dark:border-graydark-500",n),...r})}),fR=eo.forwardRef((e,t)=>{let{font:n,size:r="16",weight:i="medium",className:a,...o}=e;return(0,ea.jsx)(f_,{ref:t,type:"button",className:(0,eW.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",nb({font:n,size:r,weight:i,ellipsis:!0}),a),...o})}),fD=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)(fO,{ref:t,className:(0,eW.cx)("flex-grow-1 pt-6 outline-none",n),...r})});(0,eW.j)(["relative appearance-none outline-none","p-2 m-0 w-full","min-h-[80px]",nb(),"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 fL=(0,eW.j)(["font-sans [type=number]:font-mono","outline-none m-0 p-0 w-full","disabled:pointer-events-none","read-only: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","read-only:bg-gray-200 dark:read-only:bg-graydark-300"],ghost:"bg-transparent"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","read-only:border-gray-200 dark:read-only:border-graydark-200"],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"}}),fZ=eo.forwardRef((e,t)=>{let{variant:n,size:r,state:i,noSpin:a,cursor:o,focus:l,className:s,...u}=e;return(0,ea.jsx)("input",{ref:t,className:fL({variant:n,size:r,state:i,noSpin:a,cursor:o,focus:l,className:s}),...u})});function fF(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.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 fz(){}function fV(e){return!!(e||"").match(/\d/)}function fB(e){return null==e}function fI(e){return fB(e)||"number"==typeof e&&isNaN(e)||"number"==typeof e&&!isFinite(e)}function fH(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function fU(e,t){void 0===t&&(t=!0);var n="-"===e[0],r=n&&t,i=(e=e.replace("-","")).split(".");return{beforeDecimal:i[0],afterDecimal:i[1]||"",hasNegation:n,addNegation:r}}function fW(e,t,n){for(var r="",i=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||i;return r}function fq(e,t){return Array(t+1).join(e)}function f$(e){var t=e+"",n="-"===t[0]?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],a=r[1];if(!(a=Number(a)))return n+i;i=i.replace(".","");var o=1+a,l=i.length;return o<0?i="0."+fq("0",Math.abs(o))+i:o>=l?i+=fq("0",o-l):i=(i.substring(0,o)||"0")+"."+i.substring(o),n+i}function fK(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,i=fU(e),a=i.beforeDecimal,o=i.afterDecimal,l=i.hasNegation,s=parseFloat("0."+(o||"0")),u=(o.length<=t?"0."+o:s.toFixed(t)).split(".");return(l?"-":"")+a.split("").reverse().reduce(function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e},u[0])+(r?".":"")+fW(u[1]||"",t,n)}function fY(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}(c=z||(z={})).event="event",c.props="prop";var fX=(d=function(e,t){for(var n=0,r=0,i=e.length,a=t.length;e[n]===t[n]&&nn&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:a-r}}},h=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return f&&e.length===f.length&&e.every(function(e,t){return e===f[t]})?h:(f=e,h=d.apply(void 0,e))});function fG(e){return Math.max(e.selectionStart,e.selectionEnd)}function fJ(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function fQ(e,t,n,r){var i=e.length;if(t=Math.min(Math.max(t,0),i),"left"===r){for(;t>=0&&!n[t];)t--;-1===t&&(t=n.indexOf(!0))}else{for(;t<=i&&!n[t];)t++;t>i&&(t=n.lastIndexOf(!0))}return -1===t&&(t=i),t}function f0(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n0&&-1===f[m];)m--;var v=-1===m||-1===f[m]?0:f[m]+1;return v>g?g:r-vC.length-u.length||ST?O=p:p>e.length-u.length&&(O=p),e=e.substring(0,O),void 0===(r=j?"-"+e:e)&&(r=""),i=RegExp("(-)(.)*(-)"),a=/(-)/.test(r),o=i.test(r),r=r.replace(/-/g,""),a&&!o&&l&&(r="-"+r);var P=(e=((e=r).match(RegExp("(^-)|[0-9]|"+fH(v),"g"))||[]).join("")).indexOf(v),A=fU(e=e.replace(RegExp(fH(v),"g"),function(e,t){return t===P?".":""}),l),N=A.beforeDecimal,R=A.afterDecimal,D=A.addNegation;return f.end-f.start=s.start&&i{h(navigator.language);let e=()=>{h(navigator.language)};return h(navigator.language),window.addEventListener("languagechange",e),()=>{window.removeEventListener("languagechange",e)}},[]);let p=(0,eo.useMemo)(()=>new Intl.NumberFormat(f).format(1.1)[1],[f]),{groupingSeparator:m,groupingStyle:g}=(0,eo.useMemo)(()=>(function(e,t){if("none"===t)return{groupingSeparator:"",groupingStyle:"none"};let n=new Intl.NumberFormat(e).format(123456789),r=n.replace(/[0-9]/g,"")[0],i=n.split(r).map(e=>e.length);return t?{groupingSeparator:r,groupingStyle:t}:{groupingSeparator:r,groupingStyle:i.every(e=>3===e)?"thousand":i.length>=2&&i.slice(1).every(e=>2===e)&&3===i[0]?"lakh":i.every(e=>4===e)?"wan":"thousand"}})(f,o),[f,o]);return(0,ea.jsxs)("div",{className:"relative",children:[(0,ea.jsx)(f8,{...d,autoComplete:"off",spellCheck:!1,onValueChange:c,lang:f,decimalSeparator:p,thousandsGroupStyle:g,thousandSeparator:m,className:(0,eW.cx)(fL({variant:n,size:r,state:i,focus:l,noSpin:a,cursor:s,className:u}),t?"pr-9":"")}),t&&(0,ea.jsx)("div",{className:(0,eW.cx)("flex items-center absolute top-0 h-full","small"===r?"right-2":"","medium"===r?"right-3":"","large"===r?"right-3":""),children:(0,ea.jsx)(nw,{size:"12",weight:"medium",color:"subtle",children:t})})]})}var f9=n(6391),he=n.n(f9);function ht(e,t){return e.decimalPlaces()>t?e.toFixed(t):e.toString()}function hn(e,t){return new(he())(ht(e,t))}function hr(e){let{value:t,placeholder:n=new(he())(100),decimalsLimit:r=6,allowDecimals:i=!0,disableGroupSeparators:a,onChange:o,size:l="small",units:s,error:u,changed:c,onBlur:d,onFocus:f,...h}=e,p=(0,eo.useMemo)(()=>new(he())(t),[t]),[m,g]=(0,eo.useState)(""),v=(0,eo.useCallback)(e=>{o&&o(e&&!isNaN(Number(e))?new(he())(e):void 0)},[o]),y=(0,eo.useCallback)(e=>{g(e),v(e)},[g,v]);return(0,eo.useEffect)(()=>{p.isEqualTo(m)||g(ht(p,r))},[p]),(0,ea.jsx)(f7,{...h,thousandsGroupStyle:a?"none":void 0,"data-testid":"numberfield",size:l,placeholder:n.isNaN()?"":ht(n,r),units:s,value:"NaN"!==m?m:"",decimalScale:i?r:0,onBlur:e=>{d&&d(e)},onFocus:e=>{f&&f(e)},onValueChange:e=>y(e.value||"")})}var hi=n(82842),ha=n(85375);let ho=new(he())(0);function hl(e){let{sc:t,placeholder:n=new(he())(100),decimalsLimitFiat:r=6,decimalsLimitSc:i=6,onChange:a,size:o="medium",units:l="SC",showFiat:s=!0,error:u,changed:c,prefix:d,onBlur:f,onFocus:h,name:p,...m}=e,g=(0,eo.useMemo)(()=>new(he())(void 0===t?NaN:t),[t]),{settings:v}=(0,hi.Hv)(),y=(0,ha.BW)({config:{swr:{revalidateOnFocus:!1}}}),x=(0,eo.useMemo)(()=>{var e;return v.siaCentral&&y.data?new(he())((null===(e=y.data)||void 0===e?void 0:e.rates.sc[v.currency.id])||ho):ho},[y.data,v]),[b,w]=(0,eo.useState)(),[j,k]=(0,eo.useState)(""),[E,S]=(0,eo.useState)(""),C=(0,eo.useCallback)(e=>{a&&a(e&&!isNaN(Number(e))?new(he())(e):void 0)},[a]),M=(0,eo.useCallback)(e=>{S(ht(e,r))},[S,r]),_=(0,eo.useCallback)(e=>{let t=ht(e,i);return k(t),C(t),t},[k,i,C]),O=(0,eo.useCallback)(e=>{k(e),b&&C(e)},[b,k,C]),T=(0,eo.useCallback)(e=>{M(new(he())(e).times(x))},[M,x]),P=(0,eo.useCallback)(e=>{_(new(he())(e).dividedBy(x))},[_,x]),[A,N]=(0,eo.useState)(!1);return(0,eo.useEffect)(()=>{if(!g.isEqualTo(j)){let e=ht(g,i);k(e),"fiat"!==b&&T(e)}A||N(!0)},[g]),(0,eo.useEffect)(()=>{A&&T(j)},[x]),(0,eo.useEffect)(()=>{"sc"===b&&T(j)},[j]),(0,eo.useEffect)(()=>{"fiat"===b&&P(E)},[E]),(0,ea.jsxs)("div",{className:(0,eW.cx)("flex flex-col","focus-within:ring ring-blue-500 dark:ring-blue-200","border",m.readOnly?"bg-gray-200 dark:bg-graydark-300":"bg-white dark:bg-graydark-50",m.readOnly?"pointer-events-none":"",m.readOnly?"border-blue-400 dark:border-blue-400":u?"border-red-500 dark:border-red-400":c?"border-green-500 dark:border-green-400":"border-gray-200 dark:border-graydark-200","rounded"),children:[(0,ea.jsx)(f7,{...m,name:p,"data-testid":"scInput",size:o,variant:"ghost",focus:"none",placeholder:ht(n,i),units:l,value:"NaN"!==j?j:"",decimalScale:i,allowNegative:!1,onValueChange:e=>{O(e.value||"")},onBlur:e=>{w(void 0),f&&f(e)},onFocus:e=>{w("sc"),h&&h(e)}}),s&&v.siaCentral&&(0,ea.jsx)(f7,{...m,"data-testid":"fiatInput",name:"".concat(p,"-fiat"),size:o,variant:"ghost",focus:"none",value:"NaN"!==E?E:"",units:v.currency.label,decimalScale:i,allowNegative:!1,onValueChange:e=>{S(e.value||"")},placeholder:"".concat(v.currency.prefix).concat(x?x.times(n).toFixed(r):"0.42"),prefix:d||v.currency.prefix,onFocus:e=>{w("fiat"),h&&h(e)},onBlur:e=>{w(void 0),f&&f(e)}})]})}function hs(e){let{children:t}=e;return(0,ea.jsx)(sM,{content:t,children:(0,ea.jsx)("div",{className:"relative items-center inline mx-1",children:(0,ea.jsx)(nw,{color:"subtle",children:(0,ea.jsx)(sT.RdX,{className:"scale-75"})})})})}function hu(e){let{values:t,options:n,onChange:r}=e;return(0,ea.jsx)("div",{className:"flex flex-wrap gap-1",children:n.map(e=>(0,ea.jsx)(sO,{role:"checkbox","aria-checked":t.includes(e.value),variant:t.includes(e.value)?"active":"inactive",onClick:()=>{r(e.value)},children:e.label},e.value))})}function hc(e){let{options:t,onClick:n,onRemove:r}=e;return(0,ea.jsx)("div",{className:"flex flex-wrap gap-1",children:t.map(e=>(0,ea.jsxs)(sG,{children:[(0,ea.jsx)(sO,{variant:"active",onClick:()=>{n&&n(e.value)},children:e.label}),(0,ea.jsx)(sO,{variant:"active",size:"small",onClick:()=>r(e.value),children:(0,ea.jsx)(sT.PcV,{})})]},e.value))})}let hd=(0,eW.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"}}),hf=eo.forwardRef((e,t)=>{let{size:n,state:r,icon:i,className:a,...o}=e;return(0,ea.jsxs)("div",{className:hd({size:n,state:r,className:a}),children:[i,(0,ea.jsx)("select",{ref:t,...o,className:"appearance-none flex-1 bg-transparent outline-none w-full h-full pl-1 pr-1"}),(0,ea.jsx)(sT.Cp0,{className:"pointer-events-none scale-75"})]})}),hh=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)("option",{ref:t,...r,className:(0,eW.cx)("bg-white dark:bg-graydark-200","text-gray-1100 dark:text-white",n)})}),hp=(0,eW.j)(["bg-gray-300 dark:bg-graydark-300","relative","overflow-hidden","animate-pulse","rounded"]);function hm(e){let{className:t}=e;return(0,ea.jsx)("div",{className:hp({className:t})})}let hg=(0,eW.j)(["rounded-full flex-shrink-0"],{variants:{size:{default:"w-2 h-2"}},defaultVariants:{size:"default"}}),hv=eo.forwardRef((e,t)=>{let{size:n,className:r,...i}=e;return(0,ea.jsx)("div",{ref:t,className:hg({size:n,className:r}),...i})}),hy="Switch",[hx,hb]=(0,eu.b)(hy),[hw,hj]=hx(hy),hk=(0,eo.forwardRef)((e,t)=>{let{__scopeSwitch:n,"aria-labelledby":r,name:i,checked:a,defaultChecked:o,required:l,disabled:s,value:u="on",onCheckedChange:c,...d}=e,[f,h]=(0,eo.useState)(null),p=(0,ec.e)(t,e=>h(e)),m=dm(f),g=(0,eo.useRef)(!1),v=!f||!!f.closest("form"),[y=!1,x]=(0,ep.T)({prop:a,defaultProp:o,onChange:c});return(0,eo.createElement)(hw,{scope:n,checked:y,disabled:s},(0,eo.createElement)(em.WV.button,(0,es.Z)({type:"button",role:"switch","aria-checked":y,"aria-labelledby":r||m,"aria-required":l,"data-state":hC(y),"data-disabled":s?"":void 0,disabled:s,value:u},d,{ref:p,onClick:(0,eh.M)(e.onClick,e=>{x(e=>!e),v&&(g.current=e.isPropagationStopped(),g.current||e.stopPropagation())})})),v&&(0,eo.createElement)(hS,{control:f,bubbles:!g.current,name:i,value:u,checked:y,required:l,disabled:s,style:{transform:"translateX(-100%)"}}))}),hE=(0,eo.forwardRef)((e,t)=>{let{__scopeSwitch:n,...r}=e,i=hj("SwitchThumb",n);return(0,eo.createElement)(em.WV.span,(0,es.Z)({"data-state":hC(i.checked),"data-disabled":i.disabled?"":void 0},r,{ref:t}))}),hS=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,a=(0,eo.useRef)(null),o=d5(n),l=tV(t);return(0,eo.useEffect)(()=>{let e=a.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(o!==n&&t){let i=new Event("click",{bubbles:r});t.call(e,n),e.dispatchEvent(i)}},[o,n,r]),(0,eo.createElement)("input",(0,es.Z)({type:"checkbox","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function hC(e){return e?"checked":"unchecked"}let hM=(0,eW.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"}}),h_=(0,eW.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"}}),hO=(0,eo.forwardRef)((e,t)=>{let{size:n,state:r,className:i,children:a,...o}=e;return(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(hk,{className:h_({size:n,state:r,className:i}),...o,ref:t,children:(0,ea.jsx)(hE,{className:hM({size:n})})}),a&&(0,ea.jsx)(nw,{color:o.disabled?"subtle":"contrast",children:a})]})}),hT=(0,eo.forwardRef)((e,t)=>{let{children:n,...r}=e,i=eo.Children.toArray(n),a=i.find(hN);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:eo.Children.count(e)>1?eo.Children.only(null):(0,eo.isValidElement)(e)?e.props.children:null);return(0,eo.createElement)(hP,(0,es.Z)({},r,{ref:t}),(0,eo.isValidElement)(e)?(0,eo.cloneElement)(e,void 0,n):null)}return(0,eo.createElement)(hP,(0,es.Z)({},r,{ref:t}),n)});hT.displayName="Slot";let hP=(0,eo.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,eo.isValidElement)(n)?(0,eo.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{a(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...a}:"className"===r&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:(0,ec.F)(t,n.ref)}):eo.Children.count(n)>1?eo.Children.only(null):null});hP.displayName="SlotClone";let hA=({children:e})=>(0,eo.createElement)(eo.Fragment,null,e);function hN(e){return(0,eo.isValidElement)(e)&&e.type===hA}let hR=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,eo.forwardRef)((e,n)=>{let{asChild:r,...i}=e,a=r?hT:t;return(0,eo.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,eo.createElement)(a,(0,es.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),hD=(0,eo.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,eo.createElement)(hR.svg,(0,es.Z)({},a,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,eo.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),hL="Popper",[hZ,hF]=(0,eu.b)(hL),[hz,hV]=hZ(hL),hB=(0,eo.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=hV("PopperAnchor",n),o=(0,eo.useRef)(null),l=(0,ec.e)(t,o);return(0,eo.useEffect)(()=>{a.onAnchorChange((null==r?void 0:r.current)||o.current)}),r?null:(0,eo.createElement)(hR.div,(0,es.Z)({},i,{ref:l}))}),hI="PopperContent",[hH,hU]=hZ(hI),[hW,hq]=hZ(hI,{hasParent:!1,positionUpdateFns:new Set}),h$=(0,eo.forwardRef)((e,t)=>{var n,r,i,a,o,l,s,u,c;let{__scopePopper:d,side:f="bottom",sideOffset:h=0,align:p="center",alignOffset:m=0,arrowPadding:g=0,collisionBoundary:v=[],collisionPadding:y=0,sticky:x="partial",hideWhenDetached:b=!1,avoidCollisions:w=!0,onPlaced:j,...k}=e,E=hV(hI,d),[S,C]=(0,eo.useState)(null),M=(0,ec.e)(t,e=>C(e)),[_,O]=(0,eo.useState)(null),T=tV(_),P=null!==(n=null==T?void 0:T.width)&&void 0!==n?n:0,A=null!==(r=null==T?void 0:T.height)&&void 0!==r?r:0,N="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},R=Array.isArray(v)?v:[v],D=R.length>0,L={padding:N,boundary:R.filter(hX),altBoundary:D},{reference:Z,floating:F,strategy:z,x:V,y:B,placement:I,middlewareData:H,update:U}=tZ({strategy:"fixed",placement:f+("center"!==p?"-"+p:""),whileElementsMounted:tN,middleware:[hG(),ti({mainAxis:h+A,alignmentAxis:m}),w?to({mainAxis:!0,crossAxis:!1,limiter:"partial"===x?tl():void 0,...L}):void 0,_?tF({element:_,padding:g}):void 0,w?te({...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:a,elements:o}=e,{apply:l,...s}=c,u=await e1(e,s),d=e$(r),f=eK(r);"top"===d||"bottom"===d?(t=d,n=f===(await (null==a.isRTL?void 0:a.isRTL(o.floating))?"start":"end")?"left":"right"):(n=d,t="end"===f?"top":"bottom");let h=e4(u.left,0),p=e4(u.right,0),m=e4(u.top,0),g=e4(u.bottom,0),v={availableHeight:i.floating.height-(["left","right"].includes(r)?2*(0!==m||0!==g?m+g:e4(u.top,u.bottom)):u[t]),availableWidth:i.floating.width-(["top","bottom"].includes(r)?2*(0!==h||0!==p?h+p:e4(u.left,u.right)):u[n])},y=await a.getDimensions(o.floating);null==l||l({...e,...v});let x=await a.getDimensions(o.floating);return y.width!==x.width||y.height!==x.height?{reset:{rects:!0}}:{}}},hJ({arrowWidth:P,arrowHeight:A}),b?tr({strategy:"referenceHidden"}):void 0].filter(hY)});(0,eg.b)(()=>{Z(E.anchor)},[Z,E.anchor]);let W=null!==V&&null!==B,[q,$]=hQ(I),K=(0,sN.W)(j);(0,eg.b)(()=>{W&&(null==K||K())},[W,K]);let Y=null===(i=H.arrow)||void 0===i?void 0:i.x,X=null===(a=H.arrow)||void 0===a?void 0:a.y,G=(null===(o=H.arrow)||void 0===o?void 0:o.centerOffset)!==0,[J,Q]=(0,eo.useState)();(0,eg.b)(()=>{S&&Q(window.getComputedStyle(S).zIndex)},[S]);let{hasParent:ee,positionUpdateFns:et}=hq(hI,d),en=!ee;(0,eo.useLayoutEffect)(()=>{if(!en)return et.add(U),()=>{et.delete(U)}},[en,et,U]),(0,eg.b)(()=>{en&&W&&Array.from(et).reverse().forEach(e=>requestAnimationFrame(e))},[en,W,et]);let er={"data-side":q,"data-align":$,...k,ref:M,style:{...k.style,animation:W?void 0:"none",opacity:null!==(l=H.hide)&&void 0!==l&&l.referenceHidden?0:void 0}};return(0,eo.createElement)("div",{ref:F,"data-radix-popper-content-wrapper":"",style:{position:z,left:0,top:0,transform:W?`translate3d(${Math.round(V)}px, ${Math.round(B)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[null===(s=H.transformOrigin)||void 0===s?void 0:s.x,null===(u=H.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},(0,eo.createElement)(hH,{scope:d,placedSide:q,onArrowChange:O,arrowX:Y,arrowY:X,shouldHideArrow:G},en?(0,eo.createElement)(hW,{scope:d,hasParent:!0,positionUpdateFns:et},(0,eo.createElement)(hR.div,er)):(0,eo.createElement)(hR.div,er)))}),hK={top:"bottom",right:"left",bottom:"top",left:"right"};function hY(e){return void 0!==e}function hX(e){return null!==e}let hG=()=>({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`),{}}}),hJ=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,a,o;let{placement:l,rects:s,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]=hQ(l),m={start:"0%",center:"50%",end:"100%"}[p],g=(null!==(r=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+d/2,v=(null!==(a=null===(o=u.arrow)||void 0===o?void 0:o.y)&&void 0!==a?a:0)+f/2,y="",x="";return"bottom"===h?(y=c?m:`${g}px`,x=`${-f}px`):"top"===h?(y=c?m:`${g}px`,x=`${s.floating.height+f}px`):"right"===h?(y=`${-f}px`,x=c?m:`${v}px`):"left"===h&&(y=`${s.floating.width+f}px`,x=c?m:`${v}px`),{data:{x:y,y:x}}}});function hQ(e){let[t,n="center"]=e.split("-");return[t,n]}let h0=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,eo.useState)(null);return(0,eo.createElement)(hz,{scope:t,anchor:r,onAnchorChange:i},n)},h1=(0,eo.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?tD.createPortal((0,eo.createElement)(hR.div,(0,es.Z)({},i,{ref:t})),r):null}),h2="dismissableLayer.update",h4=(0,eo.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),h3=(0,eo.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:s,onDismiss:u,...c}=e,d=(0,eo.useContext)(h4),[f,h]=(0,eo.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,eo.useState)({}),g=(0,ec.e)(t,e=>h(e)),v=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=v.indexOf(y),b=f?v.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,j=b>=x,k=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,sN.W)(e),r=(0,eo.useRef)(!1),i=(0,eo.useRef)(()=>{});return(0,eo.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function a(){h6("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=a,t.addEventListener("click",i.current,{once:!0})):a()}r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),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==o||o(e),null==s||s(e),e.defaultPrevented||null==u||u())},p),E=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,sN.W)(e),r=(0,eo.useRef)(!1);return(0,eo.useEffect)(()=>{let e=e=>{e.target&&!r.current&&h6("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;[...d.branches].some(e=>e.contains(t))||(null==l||l(e),null==s||s(e),e.defaultPrevented||null==u||u())},p);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,sN.W)(e);(0,eo.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{b!==d.layers.size-1||(null==a||a(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,eo.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),h5(),()=>{i&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=r)}},[f,p,i,d]),(0,eo.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),h5())},[f,d]),(0,eo.useEffect)(()=>{let e=()=>m({});return document.addEventListener(h2,e),()=>document.removeEventListener(h2,e)},[]),(0,eo.createElement)(hR.div,(0,es.Z)({},c,{ref:g,style:{pointerEvents:w?j?"auto":"none":void 0,...e.style},onFocusCapture:(0,eh.M)(e.onFocusCapture,E.onFocusCapture),onBlurCapture:(0,eh.M)(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:(0,eh.M)(e.onPointerDownCapture,k.onPointerDownCapture)}))});function h5(){let e=new CustomEvent(h2);document.dispatchEvent(e)}function h6(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&i.addEventListener(e,t,{once:!0}),r)?i&&(0,tD.flushSync)(()=>i.dispatchEvent(a)):i.dispatchEvent(a)}let h8="HoverCard",[h7,h9]=(0,eu.b)(h8,[hF]),pe=hF(),[pt,pn]=h7(h8),pr=(0,eo.forwardRef)((e,t)=>{let{__scopeHoverCard:n,...r}=e,i=pn("HoverCardTrigger",n),a=pe(n);return(0,eo.createElement)(hB,(0,es.Z)({asChild:!0},a),(0,eo.createElement)(hR.a,(0,es.Z)({"data-state":i.open?"open":"closed"},r,{ref:t,onPointerEnter:(0,eh.M)(e.onPointerEnter,pc(i.onOpen)),onPointerLeave:(0,eh.M)(e.onPointerLeave,pc(i.onClose)),onFocus:(0,eh.M)(e.onFocus,i.onOpen),onBlur:(0,eh.M)(e.onBlur,i.onClose),onTouchStart:(0,eh.M)(e.onTouchStart,e=>e.preventDefault())})))}),pi="HoverCardPortal",[pa,po]=h7(pi,{forceMount:void 0}),pl="HoverCardContent",ps=(0,eo.forwardRef)((e,t)=>{let n=po(pl,e.__scopeHoverCard),{forceMount:r=n.forceMount,...i}=e,a=pn(pl,e.__scopeHoverCard);return(0,eo.createElement)(ev.z,{present:r||a.open},(0,eo.createElement)(pu,(0,es.Z)({"data-state":a.open?"open":"closed"},i,{onPointerEnter:(0,eh.M)(e.onPointerEnter,pc(a.onOpen)),onPointerLeave:(0,eh.M)(e.onPointerLeave,pc(a.onClose)),ref:t})))}),pu=(0,eo.forwardRef)((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:l,...s}=e,u=pn(pl,n),c=pe(n),d=(0,eo.useRef)(null),f=(0,ec.e)(t,d),[h,p]=(0,eo.useState)(!1);return(0,eo.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,eo.useEffect)(()=>{if(d.current){let e=()=>{p(!1),u.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;(null===(e=document.getSelection())||void 0===e?void 0:e.toString())!==""&&(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,eo.useEffect)(()=>{d.current&&(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).forEach(e=>e.setAttribute("tabindex","-1"))}),(0,eo.createElement)(h3,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:l,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:(0,eh.M)(o,e=>{e.preventDefault()}),onDismiss:u.onDismiss},(0,eo.createElement)(h$,(0,es.Z)({},c,s,{onPointerDown:(0,eh.M)(s.onPointerDown,e=>{e.currentTarget.contains(e.target)&&p(!0),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!0}),ref:f,style:{...s.style,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)",userSelect:h?"text":void 0,WebkitUserSelect:h?"text":void 0}})))});function pc(e){return t=>"touch"===t.pointerType?void 0:e()}let pd=e=>{let{__scopeHoverCard:t,children:n,open:r,defaultOpen:i,onOpenChange:a,openDelay:o=700,closeDelay:l=300}=e,s=pe(t),u=(0,eo.useRef)(0),c=(0,eo.useRef)(0),d=(0,eo.useRef)(!1),f=(0,eo.useRef)(!1),[h=!1,p]=(0,ep.T)({prop:r,defaultProp:i,onChange:a}),m=(0,eo.useCallback)(()=>{clearTimeout(c.current),u.current=window.setTimeout(()=>p(!0),o)},[o,p]),g=(0,eo.useCallback)(()=>{clearTimeout(u.current),d.current||f.current||(c.current=window.setTimeout(()=>p(!1),l))},[l,p]),v=(0,eo.useCallback)(()=>p(!1),[p]);return(0,eo.useEffect)(()=>()=>{clearTimeout(u.current),clearTimeout(c.current)},[]),(0,eo.createElement)(pt,{scope:t,open:h,onOpenChange:p,onOpen:m,onClose:g,onDismiss:v,hasSelectionRef:d,isPointerDownOnContentRef:f},(0,eo.createElement)(h0,s,n))},pf=e=>{let{__scopeHoverCard:t,forceMount:n,children:r,container:i}=e,a=pn(pi,t);return(0,eo.createElement)(pa,{scope:t,forceMount:n},(0,eo.createElement)(ev.z,{present:n||a.open},(0,eo.createElement)(h1,{asChild:!0,container:i},r)))},ph=(0,eW.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"]),pp=(0,eW.cx)(nk(),"max-w-sm","py-0.5","px-1"),pm={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},pg=eo.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:a}=e,{className:o,...l}=a||{},{open:s,onOpenChange:u}=sS({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,ea.jsxs)(pd,{open:s,onOpenChange:u,...i,children:[n&&(0,ea.jsx)(pr,{asChild:!0,children:n}),(0,ea.jsx)(n4,{children:s?(0,ea.jsx)(pf,{forceMount:!0,children:(0,ea.jsx)(ps,{asChild:!0,forceMount:!0,ref:t,...l,children:(0,ea.jsx)(sE.div,{variants:pm,initial:"init",animate:"show",exit:"exit",className:ph(),children:(0,ea.jsx)("div",{className:(0,eW.cx)(pp,o),children:r})})})}):null})]})});function pv(e,t=[]){let n=[],r=()=>{let t=n.map(e=>(0,eo.createContext)(e));return function(n){let r=(null==n?void 0:n[e])||t;return(0,eo.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=(0,eo.createContext)(r),a=n.length;function o(t){let{scope:n,children:r,...o}=t,l=(null==n?void 0:n[e][a])||i,s=(0,eo.useMemo)(()=>o,Object.values(o));return(0,eo.createElement)(l.Provider,{value:s},r)}return n=[...n,r],o.displayName=t+"Provider",[o,function(n,o){let l=(null==o?void 0:o[e][a])||i,s=(0,eo.useContext)(l);if(s)return s;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)[`__scope${r}`];return{...t,...i}},{});return(0,eo.useMemo)(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}function py(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 px(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function pb(...e){return(0,eo.useCallback)(px(...e),e)}let pw=(0,eo.forwardRef)((e,t)=>{let{children:n,...r}=e,i=eo.Children.toArray(n),a=i.find(pE);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:eo.Children.count(e)>1?eo.Children.only(null):(0,eo.isValidElement)(e)?e.props.children:null);return(0,eo.createElement)(pj,(0,es.Z)({},r,{ref:t}),(0,eo.isValidElement)(e)?(0,eo.cloneElement)(e,void 0,n):null)}return(0,eo.createElement)(pj,(0,es.Z)({},r,{ref:t}),n)});pw.displayName="Slot";let pj=(0,eo.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,eo.isValidElement)(n)?(0,eo.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{a(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...a}:"className"===r&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:t?px(t,n.ref):n.ref}):eo.Children.count(n)>1?eo.Children.only(null):null});pj.displayName="SlotClone";let pk=({children:e})=>(0,eo.createElement)(eo.Fragment,null,e);function pE(e){return(0,eo.isValidElement)(e)&&e.type===pk}let pS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,eo.forwardRef)((e,n)=>{let{asChild:r,...i}=e,a=r?pw:t;return(0,eo.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,eo.createElement)(a,(0,es.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function pC(e){let t=(0,eo.useRef)(e);return(0,eo.useEffect)(()=>{t.current=e}),(0,eo.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)?eo.useLayoutEffect:()=>{},p_=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,i]=(0,eo.useState)(),a=(0,eo.useRef)({}),o=(0,eo.useRef)(e),l=(0,eo.useRef)("none"),[s,u]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,eo.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return(0,eo.useEffect)(()=>{let e=pO(a.current);l.current="mounted"===s?e:"none"},[s]),pM(()=>{let t=a.current,n=o.current;if(n!==e){let r=l.current,i=pO(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(r){let e=e=>{let t=pO(a.current).includes(e.animationName);e.target===r&&t&&(0,tD.flushSync)(()=>u("ANIMATION_END"))},t=e=>{e.target===r&&(l.current=pO(a.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(s),ref:(0,eo.useCallback)(e=>{e&&(a.current=getComputedStyle(e)),i(e)},[])}}(t),i="function"==typeof n?n({present:r.isPresent}):eo.Children.only(n),a=pb(r.ref,i.ref);return"function"==typeof n||r.isPresent?(0,eo.cloneElement)(i,{ref:a}):null};function pO(e){return(null==e?void 0:e.animationName)||"none"}p_.displayName="Presence";let pT=el["useId".toString()]||(()=>void 0),pP=0;function pA(e){let t=e+"CollectionProvider",[n,r]=pv(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e+"CollectionSlot",l=eo.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=pb(t,a(o,n).collectionRef);return eo.createElement(pw,{ref:i},r)}),s=e+"CollectionItemSlot",u="data-radix-collection-item";return[{Provider:e=>{let{scope:t,children:n}=e,r=eo.useRef(null),a=eo.useRef(new Map).current;return eo.createElement(i,{scope:t,itemMap:a,collectionRef:r},n)},Slot:l,ItemSlot:eo.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=eo.useRef(null),l=pb(t,o),c=a(s,n);return eo.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),eo.createElement(pw,{[u]:"",ref:l},r)})},function(t){let n=a(e+"CollectionConsumer",t);return eo.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}let pN="dismissableLayer.update",pR=(0,eo.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pD=(0,eo.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:s,onDismiss:u,...c}=e,d=(0,eo.useContext)(pR),[f,h]=(0,eo.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,eo.useState)({}),g=pb(t,e=>h(e)),v=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=v.indexOf(y),b=f?v.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,j=b>=x,k=function(e,t=null==globalThis?void 0:globalThis.document){let n=pC(e),r=(0,eo.useRef)(!1),i=(0,eo.useRef)(()=>{});return(0,eo.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function a(){pZ("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=a,t.addEventListener("click",i.current,{once:!0})):a()}r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),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==o||o(e),null==s||s(e),e.defaultPrevented||null==u||u())},p),E=function(e,t=null==globalThis?void 0:globalThis.document){let n=pC(e),r=(0,eo.useRef)(!1);return(0,eo.useEffect)(()=>{let e=e=>{e.target&&!r.current&&pZ("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;[...d.branches].some(e=>e.contains(t))||(null==l||l(e),null==s||s(e),e.defaultPrevented||null==u||u())},p);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=pC(e);(0,eo.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{b!==d.layers.size-1||(null==i||i(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,eo.useEffect)(()=>{if(f)return r&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(a=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),pL(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=a)}},[f,p,r,d]),(0,eo.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),pL())},[f,d]),(0,eo.useEffect)(()=>{let e=()=>m({});return document.addEventListener(pN,e),()=>document.removeEventListener(pN,e)},[]),(0,eo.createElement)(pS.div,(0,es.Z)({},c,{ref:g,style:{pointerEvents:w?j?"auto":"none":void 0,...e.style},onFocusCapture:py(e.onFocusCapture,E.onFocusCapture),onBlurCapture:py(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:py(e.onPointerDownCapture,k.onPointerDownCapture)}))});function pL(){let e=new CustomEvent(pN);document.dispatchEvent(e)}function pZ(e,t,n,{discrete:r}){var i,a;let o=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?(i=o,a=l,i&&(0,tD.flushSync)(()=>i.dispatchEvent(a))):o.dispatchEvent(l)}(e,t)=>(0,eo.createElement)(pS.span,(0,es.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 pF="NavigationMenu",[pz,pV,pB]=pA(pF),[pI,pH,pU]=pA(pF),[pW,pq]=pv(pF,[pB,pU]),[p$,pK]=pW(pF),[pY,pX]=pW(pF),[pG,pJ]=pW("NavigationMenuItem"),pQ=((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pK("NavigationMenuIndicator",n),a=pV(n),[o,l]=(0,eo.useState)(null),[s,u]=(0,eo.useState)(null),c="horizontal"===i.orientation,d=!!i.value;(0,eo.useEffect)(()=>{var e;let t=null===(e=a().find(e=>e.value===i.value))||void 0===e?void 0:e.ref.current;t&&l(t)},[a,i.value]);let f=()=>{o&&u({size:c?o.offsetWidth:o.offsetHeight,offset:c?o.offsetLeft:o.offsetTop})};return p5(o,f),p5(i.indicatorTrack,f),s?(0,eo.createElement)(pS.div,(0,es.Z)({"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":i.orientation},r,{ref:t,style:{position:"absolute",...c?{left:0,width:s.size+"px",transform:`translateX(${s.offset}px)`}:{top:0,height:s.size+"px",transform:`translateY(${s.offset}px)`},...r.style}})):null},"NavigationMenuContent"),p0=((e,t)=>{let{onViewportContentChange:n,onViewportContentRemove:r}=pK(pQ,e.__scopeNavigationMenu);return pM(()=>{n(e.value,{ref:t,...e})},[e,t,n]),pM(()=>()=>r(e.value),[e.value,r]),null},"navigationMenu.rootContentDismiss"),p1=(0,eo.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,value:r,triggerRef:i,focusProxyRef:a,wasEscapeCloseRef:o,onRootContentClose:l,onContentFocusOutside:s,...u}=e,c=pK(pQ,n),d=(0,eo.useRef)(null),f=pb(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=pV(n),g=(0,eo.useRef)(null),{onItemDismiss:v}=c;(0,eo.useEffect)(()=>{let e=d.current;if(c.isRootMenu&&e){let t=()=>{var t;v(),l(),e.contains(document.activeElement)&&(null===(t=i.current)||void 0===t||t.focus())};return e.addEventListener(p0,t),()=>e.removeEventListener(p0,t)}},[c.isRootMenu,e.value,i,v,l]);let y=(0,eo.useMemo)(()=>{let e=m().map(e=>e.value);"rtl"===c.dir&&e.reverse();let t=e.indexOf(c.value),n=e.indexOf(c.previousValue),i=r===c.value,a=n===e.indexOf(r);if(!i&&!a)return g.current;let o=(()=>{if(t!==n){if(i&&-1!==n)return t>n?"from-end":"from-start";if(a&&-1!==t)return t>n?"to-start":"to-end"}return null})();return g.current=o,o},[c.previousValue,c.value,c.dir,m,r]);return(0,eo.createElement)(p2,{asChild:!0},(0,eo.createElement)(pD,(0,es.Z)({id:p,"aria-labelledby":h,"data-motion":y,"data-orientation":c.orientation},u,{ref:f,onDismiss:()=>{var e;let t=new Event(p0,{bubbles:!0,cancelable:!0});null===(e=d.current)||void 0===e||e.dispatchEvent(t)},onFocusOutside:py(e.onFocusOutside,e=>{var t;s();let n=e.target;null!==(t=c.rootNavigationMenu)&&void 0!==t&&t.contains(n)&&e.preventDefault()}),onPointerDownOutside:py(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:py(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){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),r=document.activeElement,i=t.findIndex(e=>e===r);if(p3(e.shiftKey?t.slice(0,i).reverse():t.slice(i+1,t.length)))e.preventDefault();else{var n;null===(n=a.current)||void 0===n||n.focus()}}}),onEscapeKeyDown:py(e.onEscapeKeyDown,e=>{o.current=!0})})))}),p2=((e,t)=>{let{__scopeNavigationMenu:n,children:r,...i}=e,a=pK("NavigationMenuViewport",n),o=pb(t,a.onViewportChange),l=pX(pQ,e.__scopeNavigationMenu),[s,u]=(0,eo.useState)(null),[c,d]=(0,eo.useState)(null),f=s?(null==s?void 0:s.width)+"px":void 0,h=s?(null==s?void 0:s.height)+"px":void 0,p=!!a.value,m=p?a.value:a.previousValue;return p5(c,()=>{c&&u({width:c.offsetWidth,height:c.offsetHeight})}),(0,eo.createElement)(pS.div,(0,es.Z)({"data-state":function(e){return e?"open":"closed"}(p),"data-orientation":a.orientation},i,{ref:o,style:{pointerEvents:!p&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":f,"--radix-navigation-menu-viewport-height":h,...i.style},onPointerEnter:py(e.onPointerEnter,a.onContentEnter),onPointerLeave:py(e.onPointerLeave,function(e){return t=>"mouse"===t.pointerType?e(t):void 0}(a.onContentLeave))}),Array.from(l.items).map(([e,{ref:t,forceMount:n,...r}])=>{let i=m===e;return(0,eo.createElement)(p_,{key:e,present:n||i},(0,eo.createElement)(p1,(0,es.Z)({},r,{ref:px(t,e=>{i&&e&&d(e)})})))}))},(0,eo.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pK("FocusGroup",n);return(0,eo.createElement)(pI.Provider,{scope:n},(0,eo.createElement)(pI.Slot,{scope:n},(0,eo.createElement)(pS.div,(0,es.Z)({dir:i.dir},r,{ref:t}))))})),p4=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"];(e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pH(n),a=pK("FocusGroupItem",n);return(0,eo.createElement)(pI.ItemSlot,{scope:n},(0,eo.createElement)(pS.button,(0,es.Z)({},r,{ref:t,onKeyDown:py(e.onKeyDown,e=>{if(["Home","End",...p4].includes(e.key)){let t=i().map(e=>e.ref.current);if(["rtl"===a.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),p4.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>p3(t)),e.preventDefault()}})})))};function p3(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function p5(e,t){let n=pC(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 p6=n(38617);let p8=eo.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,ea.jsx)(fp,{...r,ref:t,className:(0,eW.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 p7(e){let{className:t,tooltipClassName:n,tabIndex:r}=e,{theme:i,setTheme:a}=(0,p6.F)();return(0,ea.jsxs)(fh,{value:i,tabIndex:r,className:(0,eW.cx)("flex gap-4",t),onValueChange:e=>a(e),children:[(0,ea.jsx)(p8,{value:"system",children:(0,ea.jsx)(sM,{className:n,sideOffset:16,content:"System",children:(0,ea.jsx)(sT.$Iz,{})})}),(0,ea.jsx)(p8,{value:"light",children:(0,ea.jsx)(sM,{className:n,sideOffset:16,content:"Light",children:(0,ea.jsx)(sT.JaG,{})})}),(0,ea.jsx)(p8,{value:"dark",children:(0,ea.jsx)(sM,{className:n,sideOffset:16,content:"Dark",children:(0,ea.jsx)(sT.osk,{})})})]})}let{useDropzone:p9}=n(74424);function me(e){let{title:t,children:n,rootClassName:r,className:i,message:a,showBorderInactive:o,testId:l,...s}=e,{getRootProps:u,getInputProps:c,isDragActive:d}=p9(s);return(0,ea.jsxs)("div",{"data-testid":l,...u(),className:(0,eW.cx)("outline-none",r),children:[(0,ea.jsxs)("div",{className:(0,eW.cx)(d?"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",o?["border-green-600 dark:border-green-500","hover:border-green-700 hover:dark:border-green-500"]:"border-transparent",d?["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,ea.jsx)("input",{...c()}),a&&(0,ea.jsx)(nj,{size:"14",children:t||"Drop your files here or click to to open the file picker."})]}),n]})}var mt=n(14582),mn=n(63739),mr=n(13980),mi=n.n(mr),ma=n(72779),mo=n.n(ma),ml=n(47440),ms=n(59309),mu=n(19067),mc=n(71220),md=n(28142);function mf(e){return"bandwidth"in e?e.bandwidth():0}var mh=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function mp(){return(mp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mh),v=null!=m?m:(0,mc.Z)(r,void 0===f?10:f),y=(null!=p?p:0)+mf(r)/2,x=v.map(function(e,t){var n,a=(null!=(n=(0,md.Z)(r(e)))?n:0)+y;return{index:t,from:new mu.Z({x:0,y:a}),to:new mu.Z({x:i,y:a})}});return eo.createElement(ms.Z,{className:mo()("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 eo.createElement(ml.default,mp({key:"row-line-"+r,from:t,to:n,stroke:o,strokeWidth:s,strokeDasharray:u,style:h},g))}))}mm.propTypes={tickValues:mi().array,width:mi().number.isRequired};var mg=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function mv(){return(mv=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mg),v=null!=p?p:(0,mc.Z)(r,void 0===d?10:d),y=(null!=h?h:0)+mf(r)/2,x=v.map(function(e,t){var n,a=(null!=(n=(0,md.Z)(r(e)))?n:0)+y;return{index:t,from:new mu.Z({x:a,y:0}),to:new mu.Z({x:a,y:i})}});return eo.createElement(ms.Z,{className:mo()("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 eo.createElement(ml.default,mv({key:"column-line-"+r,from:t,to:n,stroke:o,strokeWidth:s,strokeDasharray:u,style:f},g))}))}my.propTypes={tickValues:mi().array,height:mi().number.isRequired};var mx=n(64183),mb=n(8597);function mw(e){var t=e.id,n=e.width,r=e.height,i=e.children;return eo.createElement("defs",null,eo.createElement("pattern",{id:t,width:n,height:r,patternUnits:"userSpaceOnUse"},i))}mw.propTypes={id:mi().string.isRequired,width:mi().number.isRequired,height:mi().number.isRequired,children:mi().node.isRequired};var mj={horizontal:"horizontal",vertical:"vertical",diagonal:"diagonal",diagonalRightToLeft:"diagonalRightToLeft"};function mk(e){var t=e.id,n=e.width,r=e.height,i=e.stroke,a=e.strokeWidth,o=e.strokeDasharray,l=e.strokeLinecap,s=void 0===l?"square":l,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 eo.createElement(mw,{id:t,width:n,height:r},!!h&&eo.createElement("rect",{className:mo()("visx-pattern-line-background"),width:n,height:r,fill:h}),m.map(function(e,n){return eo.createElement("path",{key:"visx-"+t+"-line-"+e+"-"+n,className:mo()("visx-pattern-line",p),d:function(e){var t=e.height;switch(e.orientation){case mj.horizontal:return"M 0,"+t/2+" l "+t+",0";case mj.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 mj.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 mj.vertical:default:return"M "+t/2+", 0 l 0, "+t}}({orientation:e,height:r}),stroke:i,strokeWidth:a,strokeDasharray:o,strokeLinecap:s,shapeRendering:c})}))}mk.propTypes={id:mi().string.isRequired,width:mi().number.isRequired,height:mi().number.isRequired,className:mi().string,background:mi().string,stroke:mi().string,strokeWidth:mi().oneOfType([mi().number,mi().string]),strokeDasharray:mi().oneOfType([mi().string,mi().number]),strokeLinecap:mi().oneOf(["square","butt","round","inherit"]),shapeRendering:mi().oneOfType([mi().string,mi().number]),orientation:mi().array};var mE=["tooltipOpen"];function mS(){return(mS=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mC);return eo.createElement("div",mM({ref:t,className:mo()("visx-tooltip",n),style:mM({top:null==r||null==s?r:r+s,left:null==i||null==o?i:i+o},void 0!==h&&h&&{position:"absolute"},!(void 0!==f&&f)&&c)},p),d)});function mT(){return(mT=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mD),g=!1,v=!1;if(u&&s){var y=void 0===r?0:r,x=void 0===f?0:f;if(s.width){var b=y+a+u.width-s.width,w=u.width-y-a;g=b>0&&b>w}else{var j=y+a+u.width-window.innerWidth,k=u.width-y-a;g=j>0&&j>k}if(s.height){var E=x+l+u.height-s.height,S=u.height-x-l;v=E>0&&E>S}else v=x+l+u.height>window.innerHeight;y=g?y-u.width-a:y+a,x=v?x-u.height-l:x+l,t="translate("+(y=Math.round(y))+"px, "+(x=Math.round(x))+"px)"}return eo.createElement(mO,mL({ref:p,style:mL({left:0,top:0,transform:t},!(void 0!==h&&h)&&d)},m),eo.createElement(mR,{value:{isFlippedVertically:!v,isFlippedHorizontally:!g}},n))}mZ.propTypes={nodeRef:mi().oneOfType([mi().string,mi().func,mi().object])};var mF=((p=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={rect:void 0,parentRect:void 0},n.nodeRef=eo.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,mP(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:tD.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():mA,parentRect:null!=t&&t.getBoundingClientRect?t.getBoundingClientRect():mA}},n.render=function(){return eo.createElement(mZ,mT({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},t}(eo.PureComponent)).displayName="withBoundingRects("+(mZ.displayName||"")+")",p),mz=n(99985);function mV(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],a=0,o=("step"in e&&void 0!==e.step?e.step():1)*(i-r)/Math.abs(i-r);if(o>0)for(;t>r+o*(a+1);)a+=1;else for(;t0?Math.min(e.dx,t.bounds.x1-o):Math.max(e.dx,t.bounds.x0-r),u=e.dy>0?Math.min(e.dy,t.bounds.y1-l):Math.max(e.dy,t.bounds.y0-i);return mY({},t,{isBrushing:!0,extent:mY({},t.extent,{x0:r+s,x1:o+s,y0:i+u,y1:l+u})})})},t.selectionDragEnd=function(){var e=t.props,n=e.updateBrush,r=e.onBrushEnd,i=e.onMoveSelectionChange;e.isControlled||n(function(e){var t=mY({},e,{isBrushing:!1,start:mY({},e.start,{x:Math.min(e.extent.x0,e.extent.x1),y:Math.min(e.extent.y0,e.extent.y1)}),end:mY({},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,mX(t,e),t.prototype.render=function(){var e=this.props,t=e.width,n=e.height,r=e.stageWidth,i=e.stageHeight,a=e.brush,o=e.disableDraggingSelection,l=e.onMouseLeave,s=e.onMouseMove,u=e.onMouseUp,c=e.onClick,d=e.selectedBoxStyle,f=e.isControlled,h=e.isDragInProgress;return eo.createElement(mz.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,g=e.dragMove;return eo.createElement("g",null,h&&eo.createElement("rect",{width:r,height:i,fill:"transparent",onPointerUp:f?void 0:m,onPointerMove:g,onPointerLeave:f?void 0:m,style:mG}),eo.createElement("rect",mY({x:Math.min(a.extent.x0,a.extent.x1),y:Math.min(a.extent.y0,a.extent.y1),width:t,height:n,className:"visx-brush-selection",onPointerDown:o?void 0:p,onPointerLeave:function(e){l&&l(e)},onPointerMove:function(e){g(e),s&&s(e)},onPointerUp:function(e){f||m(e),u&&u(e)},onClick:function(e){c&&c(e)},style:{pointerEvents:a.isBrushing||a.activeHandle?"none":"all",cursor:o?void 0:"move"}},d)))})},t}(eo.Component);function mQ(){return(mQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Math.min(s,e.bounds.x1-a):Math.max(s,e.bounds.x0-n),c=u>0?Math.min(u,e.bounds.y1-o):Math.max(u,e.bounds.y0-r);return mQ({},e,{isBrushing:!0,extent:mQ({},e.extent,{x0:n+l,y0:r+c,x1:a+l,y1:o+c})})}),"select"===i&&n.updateBrush(function(e){var t=e.start,r=t.x,i=t.y,a={x:Math.min(Math.max(r+s,e.bounds.x0),e.bounds.x1),y:Math.min(Math.max(i+u,e.bounds.y0),e.bounds.y1)},o=n.getExtent(l,a);return mQ({},e,{end:a,extent:o})})}},n.getExtent=function(e,t){var r=n.props,i=r.brushDirection,a=r.width,o=r.height;return{x0:"vertical"===i?0:Math.min(e.x||0,t.x||0),x1:"vertical"===i?a:Math.max(e.x||0,t.x||0),y0:"horizontal"===i?0:Math.min(e.y||0,t.y||0),y1:"horizontal"===i?o:Math.max(e.y||0,t.y||0)}},n.handleDragStart=function(e){var t=n.props,r=t.onBrushStart,i=t.left,a=t.top,o=t.inheritedMargin,l=t.useWindowMoveEvents,s=null!=o&&o.left?o.left:0,u=null!=o&&o.top?o.top:0,c={x:(e.x||0)+e.dx-i-s,y:(e.y||0)+e.dy-a-u},d=mQ({},c);r&&r(c),n.updateBrush(function(t){return mQ({},t,{start:c,end:d,extent:{x0:-1,x1:-1,y0:-1,y1:-1},isBrushing:!0,brushingType:"select",brushPageOffset:l?mI(e.event):void 0})})},n.handleBrushStart=function(e){var t=n.props,r=t.onBrushStart,i=t.left,a=t.top,o=t.inheritedMargin;if(r){var l=null!=o&&o.left?o.left:0,s=null!=o&&o.top?o.top:0;r({x:(e.x||0)+e.dx-i-l,y:(e.y||0)+e.dy-a-s})}},n.handleDragMove=function(e){var t=n.props,r=t.left,i=t.top,a=t.inheritedMargin,o=t.useWindowMoveEvents;if(e.isDragging&&!o){var l=(null==a?void 0:a.left)||0,s=(null==a?void 0:a.top)||0,u={x:(e.x||0)+e.dx-r-l,y:(e.y||0)+e.dy-i-s};n.updateBrush(function(e){var t=e.start,r=n.getExtent(t,u);return mQ({},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,a=mQ({},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(a),r&&n.reset(),a})},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,a=t.y0,o=t.y1,l=e/2,s=n.getBrushWidth(),u=n.getBrushHeight();return{top:{x:r-l,y:a-l,height:e,width:s+e},bottom:{x:r-l,y:o-l,height:e,width:s+e},right:{x:i-l,y:a-l,height:u+e,width:e},left:{x:r-l,y:a-l,height:u+e,width:e}}},n.corners=function(){var e=n.props.handleSize,t=n.state.extent,r=t.x0,i=t.x1,a=t.y0,o=t.y1,l=e/2;return{topLeft:{x:Math.min(r,i)-l,y:Math.min(a,o)-l,width:e,height:e},topRight:{x:Math.max(r,i)-l,y:Math.min(a,o)-l,width:e,height:e},bottomLeft:{x:Math.min(r,i)-l,y:Math.max(a,o)-l,width:e,height:e},bottomRight:{x:Math.max(r,i)-l,y:Math.max(a,o)-l,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=mQ({},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,m0(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,a=n.extent;if(!(-1===a.x0&&-1===a.x1&&-1===a.y0&&-1===a.y1)){var o=t.props.width/e.width,l=t.props.height/e.height;r={x:o*a.x0,y:l*a.y0},i={x:o*a.x1,y:l*a.y1},a=t.getExtent(r,i)}return{start:r,end:i,extent:a,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,a=i.top,o=i.left,l=i.width,s=i.height,u=i.onMouseLeave,c=i.onMouseUp,d=i.onMouseMove,f=i.onBrushEnd,h=i.onClick,p=i.resizeTriggerAreas,m=i.selectedBoxStyle,g=i.disableDraggingSelection,v=i.clickSensitivity,y=i.useWindowMoveEvents,x=i.renderBrushHandle,b=this.state.brushingType,w=this.handles(),j=this.corners(),k=this.getBrushWidth(),E=this.getBrushHeight(),S=new Set(p);return eo.createElement(ms.Z,{className:"visx-brush",top:a,left:o},eo.createElement(mz.Z,{width:l,height:s,resetOnStart:!0,onDragStart:this.handleDragStart,onDragMove:this.handleDragMove,onDragEnd:this.handleDragEnd,isDragging:y?"select"===b:void 0},function(t){var n=t.dragStart,r=t.isDragging,i=t.dragMove,a=t.dragEnd;return eo.createElement(mt.Z,{className:"visx-brush-overlay",fill:"transparent",x:0,y:0,width:l,height:s,onDoubleClick:function(){return e.reset()},onClick:function(t){var n=e.mouseUpTime-e.mouseDownTime;h&&n=0||(i[n]=e[n]);return i}(e,m8),v=a,y=l,x=o,b=s;return void 0!==m&&!m||v||y||x||b||(v="0",y="0",x="0",b="1"),eo.createElement("defs",null,eo.createElement("linearGradient",m7({id:n,x1:v,y1:x,x2:y,y2:b,gradientTransform:h?"rotate("+h+")":p},g),!!t&&t,!t&&eo.createElement("stop",{offset:void 0===u?"0%":u,stopColor:r,stopOpacity:void 0===c?1:c}),!t&&eo.createElement("stop",{offset:void 0===d?"100%":d,stopColor:i,stopOpacity:void 0===f?1:f})))}m9.propTypes={id:mi().string.isRequired,from:mi().string,to:mi().string,x1:mi().oneOfType([mi().string,mi().number]),x2:mi().oneOfType([mi().string,mi().number]),y1:mi().oneOfType([mi().string,mi().number]),y2:mi().oneOfType([mi().string,mi().number]),fromOffset:mi().oneOfType([mi().string,mi().number]),fromOpacity:mi().oneOfType([mi().string,mi().number]),toOffset:mi().oneOfType([mi().string,mi().number]),toOpacity:mi().oneOfType([mi().string,mi().number]),rotate:mi().oneOfType([mi().string,mi().number]),transform:mi().string,children:mi().node,vertical:mi().bool};var ge=n(78307),gt=n(74747);function gn(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 gr=n(88744),gi=n(55746),ga=n(45742),go=n(27266),gl=["id","markerWidth","markerHeight","markerUnits","children"];function gs(){return(gs=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,gl);return eo.createElement("defs",null,eo.createElement("marker",gs({id:t,markerWidth:void 0===n?3:n,markerHeight:void 0===r?3:r,markerUnits:void 0===i?"userSpaceOnUse":i},o),a))}gu.propTypes={id:mi().string.isRequired,size:mi().number,markerWidth:mi().oneOfType([mi().string,mi().number]),markerHeight:mi().oneOfType([mi().string,mi().number]),markerUnits:mi().string,refX:mi().oneOfType([mi().string,mi().number]),refY:mi().oneOfType([mi().string,mi().number]),strokeWidth:mi().number,children:mi().node.isRequired};var gc=["id","size","strokeWidth"];function gd(){return(gd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,gc),l=2*r+a,s=l/2;return eo.createElement(gu,gd({id:t,markerWidth:l,markerHeight:l,refX:0,refY:s,orient:"auto-start-reverse",markerUnits:"strokeWidth",strokeWidth:a},o),eo.createElement("circle",{r:r,cx:s,cy:s}))}var gh=n(64170),gp={top:"top",left:"left",bottom:"bottom"};function gm(){return(gm=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,gw),j=null!=g?g:"tickFormat"in m?m.tickFormat():gy.Z,k=f===gp.left,E=f===gp.top,S=E||f===gp.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}(m),M=k||E?-1:1,_=m.range(),O=(void 0===(t=p)&&(t=0),"number"==typeof t?{start:t,end:t}:gb({start:0,end:0},t)),T=gx({x:Number(_[0])+.5-O.start,y:0},S),P=gx({x:Number(_[_.length-1])+.5+O.end,y:0},S),A=(null!=x?x:(0,mc.Z)(m,c)).filter(function(e){return!l||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),N=A.map(function(e){var t=e.value,n=e.index,r=(0,md.Z)(C(t));return{value:t,index:n,from:gx({x:r,y:0},S),to:gx({x:r,y:y*M},S),formattedValue:j(t,n,A)}});return eo.createElement(ms.Z,{className:mo()("visx-axis",r),top:void 0===b?0:b,left:void 0===s?0:s},(void 0===n?function(e){var t=e.axisFromPoint,n=e.axisLineClassName,r=e.axisToPoint,i=e.hideAxisLine,a=e.hideTicks,o=e.horizontal,l=e.label,s=void 0===l?"":l,u=e.labelClassName,c=e.labelOffset,d=e.labelProps,f=void 0===d?gv:d,h=e.orientation,p=void 0===h?gp.bottom:h,m=e.scale,g=e.stroke,v=e.strokeDasharray,y=e.strokeWidth,x=void 0===y?1:y,b=e.tickClassName,w=e.tickComponent,j=e.tickLineProps,k=e.tickLabelProps,E=void 0===k?function(){return gv}:k,S=e.tickLength,C=e.tickStroke,M=e.tickTransform,_=e.ticks,O=e.ticksComponent,T=_.map(function(e){return E(e.value,e.index,_)}),P=Math.max.apply(Math,[10].concat(T.map(function(e){return"number"==typeof e.fontSize?e.fontSize:0})));return eo.createElement(eo.Fragment,null,(void 0===O?function(e){var t=e.hideTicks,n=e.horizontal,r=e.orientation,i=e.tickClassName,a=e.tickComponent,o=e.tickLabelProps,l=e.tickStroke,s=void 0===l?"#222":l,u=e.tickTransform,c=e.ticks,d=e.strokeWidth,f=e.tickLineProps;return c.map(function(e){var l,c=e.value,h=e.index,p=e.from,m=e.to,g=e.formattedValue,v=null!=(l=o[h])?l:{},y=Math.max(10,"number"==typeof v.fontSize&&v.fontSize||0),x=m.y+(n&&r!==gp.top?y:0);return eo.createElement(ms.Z,{key:"visx-tick-"+c+"-"+h,className:mo()("visx-axis-tick",i),transform:u},!t&&eo.createElement(mn.Z,gm({from:p,to:m,stroke:s,strokeWidth:d,strokeLinecap:"square"},f)),a?a(gm({},v,{x:m.x,y:x,formattedValue:g})):eo.createElement(gh.Z,gm({x:m.x,y:x},v),g))})}:O)({hideTicks:a,horizontal:o,orientation:p,scale:m,tickClassName:b,tickComponent:w,tickLabelProps:T,tickStroke:void 0===C?"#222":C,tickTransform:M,ticks:_,strokeWidth:x,tickLineProps:j}),!i&&eo.createElement(mn.Z,{className:mo()("visx-axis-line",n),from:t,to:r,stroke:void 0===g?"#222":g,strokeWidth:x,strokeDasharray:v}),s&&eo.createElement(gh.Z,gg({className:mo()("visx-axis-label",u)},function(e){var t,n,r,i=e.labelOffset,a=e.labelProps,o=e.orientation,l=e.range,s=e.tickLabelFontSize,u=e.tickLength,c=o===gp.left||o===gp.top?-1:1;if(o===gp.top||o===gp.bottom){var d=o===gp.bottom&&"number"==typeof a.fontSize?a.fontSize:0;t=(Number(l[0])+Number(l[l.length-1]))/2,n=c*(u+i+s+d)}else t=(Number(l[0])+Number(l[l.length-1]))/2*c,n=-(u+i),r="rotate("+90*c+")";return{x:t,y:n,transform:r}}({labelOffset:void 0===c?14:c,labelProps:f,orientation:p,range:m.range(),tickLabelFontSize:P,tickLength:void 0===S?8:S}),f),s))}:n)(gj({},w,{axisFromPoint:T,axisToPoint:P,hideAxisLine:void 0!==i&&i,hideTicks:void 0!==a&&a,hideZero:l,horizontal:S,numTicks:c,orientation:f,rangePadding:p,scale:m,tickFormat:j,tickLength:y,tickPosition:C,tickSign:M,ticks:N})))}var gE=["axisClassName","labelOffset","tickLabelProps","tickLength"];function gS(){return(gS=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,gE);return eo.createElement(gk,gS({axisClassName:mo()("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:gp.bottom,tickLabelProps:void 0===r?gC:r,tickLength:void 0===i?8:i},a))}var g_=["axisClassName","labelOffset","tickLabelProps","tickLength"];function gO(){return(gO=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,g_);return eo.createElement(gk,gO({axisClassName:mo()("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:gp.left,tickLabelProps:void 0===r?gT:r,tickLength:void 0===i?8:i},a))}let gA=e=>new Date((null==e?void 0:e.timestamp)||0),gN=e=>(null==e?void 0:e.value)||0,gR="var(--colors-hiContrast)",gD={textAnchor:"middle",fontFamily:"var(--fonts-sans)",fontSize:10,fill:gR},gL={dx:"-0.25em",dy:"0.25em",fontFamily:"var(--fonts-sans)",fontSize:10,textAnchor:"end",fill:gR};function gZ(e){let{data:t,gradientColor:n,width:r,yMax:i,margin:a,xScale:o,yScale:l,hideBottomAxis:s=!1,hideLeftAxis:u=!1,top:c,left:d,curve:f="step",children:h}=e;return r<10?null:(0,ea.jsxs)(ms.Z,{left:d||a.left,top:c||a.top,children:[(0,ea.jsx)(gf,{id:"marker-circle",fill:"var(--colors-accent11)",size:1.5,refX:1.5}),(0,ea.jsx)(m9,{id:"gradient",from:n,fromOpacity:1,to:n,toOpacity:.2}),(0,ea.jsx)(gi.Z,{data:t,x:e=>o(gA(e))||0,y:e=>l(gN(e))||0,yScale:l,strokeWidth:1,stroke:"url(#gradient)",fill:"url(#gradient)",markerMid:"url(#marker-circle)",curve:"step"===f?ga.ZP:go.Z}),!s&&(0,ea.jsx)(gM,{top:i,scale:o,numTicks:r>520?10:5,stroke:gR,tickStroke:gR,tickLabelProps:()=>gD}),!u&&(0,ea.jsx)(gP,{scale:l,numTicks:5,stroke:gR,tickStroke:gR,tickLabelProps:()=>gL}),h]})}let{inherit:gF,current:gz,transparent:gV,black:gB,white:gI,slate:gH,zinc:gU,neutral:gW,stone:gq,red:g$,orange:gK,amber:gY,yellow:gX,lime:gG,green:gJ,emerald:gQ,teal:g0,cyan:g1,sky:g2,blue:g4,indigo:g3,violet:g5,purple:g6,fuchsia:g8,pink:g7,rose:g9}=n(6692),ve={inherit:gF,current:gz,transparent:gV,black:gB,white:gI,slate:gH,zinc:gU,neutral:gW,stone:gq,red:g$,orange:gK,amber:gY,yellow:gX,lime:gG,green:gJ,emerald:gQ,teal:g0,cyan:g1,sky:g2,blue:g4,indigo:g3,violet:g5,purple:g6,fuchsia:g8,pink:g7,rose:g9,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 vt=n(80373);let vn={top:10,bottom:15,left:10,right:10},vr="brush_pattern",vi="brush_gradient",va=(0,gr.Z)(e=>e(),15),vo=(0,ge.Z)(e=>new Date((null==e?void 0:e.timestamp)||0)).left;void 0===m&&(m={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===g&&(g=function(e,t){return eo.createElement("div",t,e)});var vl=n(54073),vs=n.n(vl),vu=n(44711),vc=["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall"];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),d=(0,eo.useRef)(null),f=(0,eo.useRef)(0),h=(0,eo.useState)({width:0,height:0,top:0,left:0}),p=h[0],m=h[1],g=(0,eo.useMemo)(function(){var e=Array.isArray(o)?o:[o];return vs()(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,o]);return(0,eo.useEffect)(function(){var e=new vu.ResizeObserver(function(e){void 0===e&&(e=[]),e.forEach(function(e){var t=e.contentRect,n=t.left,r=t.top,i=t.width,a=t.height;f.current=window.requestAnimationFrame(function(){g({width:i,height:a,top:r,left:n})})})});return d.current&&e.observe(d.current),function(){window.cancelAnimationFrame(f.current),e.disconnect(),null!=g&&g.cancel&&g.cancel()}},[g]),eo.createElement("div",vd({style:void 0===l?{width:"100%",height:"100%"}:l,ref:d,className:t},c),n(vd({},p,{ref:d.current,resize:g})))}vh.propTypes={className:mi().string,debounceTime:mi().number,enableDebounceLeadingCall:mi().bool,ignoreDimensions:mi().oneOfType([mi().any,mi().arrayOf(mi().any)]),children:mi().func.isRequired};var vp=n(52058);function vm(e){let{id:t,width:n,height:r,accessors:i,animationTrajectory:a,curve:o,data:l,config:s,scales:u,enabledGraph:c,enabledTip:d,isStack:f,todayOffset:h,numTicks:p,renderAreaSeries:m,renderAreaStack:g,renderBarGroup:v,renderBarStack:y,enableTooltipGlyph:x,renderTooltipGlyph:b,renderLineSeries:w,sharedTooltip:j,showHorizontalCrosshair:k,showTooltip:E,showVerticalCrosshair:S,snapTooltipToDatum:C,stackOffset:M,margin:_,theme:O,xAxisOrientation:T,yAxisOrientation:P,AreaSeries:A,AreaStack:N,Axis:R,BarGroup:D,BarSeries:L,BarStack:Z,Grid:F,LineSeries:z,Tooltip:V,XYChart:B}=e;return(0,ea.jsxs)(B,{theme:O.xyChartTheme,xScale:u.x,yScale:u.y,height:Math.min(400,r),margin:_,captureEvents:!0,children:[(0,ea.jsx)("g",{children:(0,ea.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,ea.jsx)(m9,{id:"gradient-default",from:"gray",fromOpacity:1,to:"gray",toOpacity:.4}),Object.entries(s.data).map(e=>{let[n,r]=e,i=r.color;return(0,ea.jsxs)(eo.Fragment,{children:[(0,ea.jsx)(mk,{id:"pattern-".concat(vg(t,n)),height:6,width:6,stroke:i,strokeWidth:.5,orientation:["diagonal"]}),(0,ea.jsx)(m9,{id:"gradient-".concat(vg(t,n)),from:i,fromOpacity:1,to:i,toOpacity:f?.4:1})]},n)}),(0,ea.jsx)(F,{rows:!1,columns:!0,strokeDasharray:"1,3",animationTrajectory:a,numTicks:p},"grid-".concat(a)),y&&(0,ea.jsx)(Z,{offset:s.stackOffset,children:c.map(e=>(0,ea.jsx)(L,{dataKey:e,data:l,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>vv(t,e,s)},e))}),v&&(0,ea.jsx)(D,{children:c.map(e=>(0,ea.jsx)(L,{dataKey:e,data:l,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>vv(t,e,s)},e))}),m&&(0,ea.jsx)(ea.Fragment,{children:c.map(e=>(0,ea.jsx)(A,{dataKey:e,data:l,xAccessor:i.x[e],yAccessor:i.y[e],stroke:vv(t,e,s),fill:vv(t,e,s),curve:o},e))}),g&&(0,ea.jsx)(N,{curve:o,offset:s.stackOffset,renderLine:"wiggle"!==M,children:c.map(e=>(0,ea.jsx)(A,{dataKey:e,data:l,xAccessor:i.x[e],yAccessor:i.y[e],stroke:vv(t,e,s),fill:vv(t,e,s)},e))}),w&&(0,ea.jsx)(ea.Fragment,{children:c.map(e=>{var t,n;return(0,ea.jsx)(z,{dataKey:e,data:l,xAccessor:i.x[e],yAccessor:i.y[e],stroke:(null===(n=s.data)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.color)||"gray",curve:o},e)})}),(0,ea.jsx)(R,{orientation:T,numTicks:p,animationTrajectory:a,tickFormat:e=>(0,vt.rN)(e),tickLength:12,tickLabelProps:e=>({...e,fill:O.labels.color,fontFamily:O.labels.fontFamily,y:"14px",fontWeight:"500",fontSize:"8"})},"time-axis-".concat(a)),(0,ea.jsx)(R,{label:null==M?"SC":"expand"===M?"Fraction of total":"",orientation:P,numTicks:p,tickLength:12,animationTrajectory:a,tickFormat:s.formatTickY,tickLabelProps:e=>({...e,fill:O.labels.color,fontFamily:O.labels.fontFamily,fontWeight:"500",fontSize:"8"})},"temp-axis-".concat(a)),E&&(0,ea.jsx)(V,{showHorizontalCrosshair:k,showVerticalCrosshair:S,snapTooltipToDatumX:C,snapTooltipToDatumY:C,showDatumGlyph:C&&!v,showSeriesGlyphs:j&&!v,renderGlyph:x?b:void 0,renderTooltip:e=>{var t,n;let{tooltipData:r}=e,a=null==r?void 0:null===(t=r.nearestDatum)||void 0===t?void 0:t.datum,o=null==r?void 0:null===(n=r.nearestDatum)||void 0===n?void 0:n.key,l=j?d:o?[o]:[],u=s.formatTimestamp||(e=>(0,vt.rN)(e,{timeStyle:"short",hour12:!1})),c=l.map(e=>{var t,n;return{key:e,category:(null===(n=s.data)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.category)||""}}),h=(0,vp.Z)(c,"category"),p=s.categories?s.categories.map(e=>[e,h[e]]):Object.entries(h);return(0,ea.jsxs)("div",{className:(0,eW.cx)("flex flex-col gap-2 py-1"),children:[(0,ea.jsx)(nw,{font:"mono",size:"12",color:"contrast",className:"text-end",children:a?u(i.date(a)):"No date"}),(0,ea.jsx)(c0,{color:"panel",className:"w-full"}),(0,ea.jsx)("div",{className:(0,eW.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=a?n.reduce((e,t)=>{let{key:n}=t,r=i.y[n](a);return null==r||Number.isNaN(r)?e:e+r},0):0,l=null==s?void 0:s.formatComponent;return(0,ea.jsxs)("div",{className:"flex flex-col gap-2 w-[250px]",children:[t&&(0,ea.jsx)(nw,{weight:"semibold",children:t}),(0,ea.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=a&&i.y[c](a);return(0,ea.jsxs)(eo.Fragment,{children:[(0,ea.jsx)(nw,{color:"accent",style:{color:null===(n=s.data)||void 0===n?void 0:null===(t=n[c])||void 0===t?void 0:t.color},className:(0,eW.cx)(o===c?"underline":""),children:(null===(u=s.data)||void 0===u?void 0:null===(r=u[c])||void 0===r?void 0:r.label)||c}),(0,ea.jsx)(nw,{size:"12",style:{textAlign:"end"},className:(0,eW.cx)(o===c?"underline":""),children:null==d||Number.isNaN(d)?"–":l?(0,ea.jsx)(l,{value:d}):s.format?s.format(d):d})]},c)}),n.length>1&&f&&(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsx)(nw,{className:"pt-2",children:"total"}),(0,ea.jsx)(nw,{size:"12",weight:"bold",className:"pt-2 text-end",children:l?(0,ea.jsx)(l,{value:r}):s.format?s.format(r):r})]})]})]},t)})})]})}})]})}function vg(e,t){return"".concat(e,"-").concat(t)}function vv(e,t,n){var r;let i=vg(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 vy=n(24037),vx=n(86707);function vb(e){var t=e.top,n=e.left,r=e.className,i=e.children;return eo.createElement(ms.Z,{className:mo()("visx-glyph",r),top:void 0===t?0:t,left:void 0===n?0:n},i)}vb.propTypes={top:mi().number,left:mi().number,className:mi().string,children:mi().node};var vw=["children","className","top","left","size"];function vj(){return(vj=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vw),l=(0,vy.Z)();return(l.type(vx.Z),"number"==typeof a?l.size(a):a&&l.size(a),t)?eo.createElement(eo.Fragment,null,t({path:l})):eo.createElement(vb,{top:r,left:i},eo.createElement("path",vj({className:mo()("visx-glyph-star",n),d:l()||""},o)))}vk.propTypes={children:mi().func,className:mi().string,top:mi().number,left:mi().number,size:mi().oneOfType([mi().number,mi().func])};var vE=["top","left","className"];function vS(){return(vS=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vE);return eo.createElement(vb,{top:void 0===t?0:t,left:void 0===n?0:n},eo.createElement("circle",vS({className:mo()("visx-glyph-dot",r)},i)))}vC.propTypes={className:mi().string,top:mi().number,left:mi().number,r:mi().number,cx:mi().number,cy:mi().number};var vM=n(9135),v_=["children","className","top","left","size"];function vO(){return(vO=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,v_),l=(0,vy.Z)();return(l.type(vM.Z),"number"==typeof a?l.size(a):a&&l.size(a),t)?eo.createElement(eo.Fragment,null,t({path:l})):eo.createElement(vb,{top:r,left:i},eo.createElement("path",vO({className:mo()("visx-glyph-cross",n),d:l()||""},o)))}vT.propTypes={children:mi().func,className:mi().string,top:mi().number,left:mi().number,size:mi().oneOfType([mi().number,mi().func])};var vP=n(46385),vA=n(20651),vN={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"]},vR=vN.gray,vD=vR[7],vL=[vN.cyan[9],vN.cyan[3],vN.yellow[5],vN.red[4],vN.grape[8],vN.grape[5],vN.pink[9]];function vZ(){return(vZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t{for(var n in t)vI(e,n,{get:t[n],enumerable:!0})})(vH,{assign:()=>yd,colors:()=>ys,createStringInterpolator:()=>V,skipAnimation:()=>yu,to:()=>B,willAdvance:()=>yc});var vU=v6(),vW=e=>v2(e,vU),vq=v6();vW.write=e=>v2(e,vq);var v$=v6();vW.onStart=e=>v2(e,v$);var vK=v6();vW.onFrame=e=>v2(e,vK);var vY=v6();vW.onFinish=e=>v2(e,vY);var vX=[];vW.setTimeout=(e,t)=>{let n=vW.now()+t,r=()=>{let e=vX.findIndex(e=>e.cancel==r);~e&&vX.splice(e,1),v0-=~e?1:0},i={time:n,handler:e,cancel:r};return vX.splice(vG(n),0,i),v0+=1,v4(),i};var vG=e=>~(~vX.findIndex(t=>t.time>e)||~vX.length);vW.cancel=e=>{v$.delete(e),vK.delete(e),vY.delete(e),vU.delete(e),vq.delete(e)},vW.sync=e=>{v1=!0,vW.batchedUpdates(e),v1=!1},vW.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,vW.onStart(n)}return r.handler=e,r.cancel=()=>{v$.delete(n),t=null},r};var vJ="undefined"!=typeof window?window.requestAnimationFrame:()=>{};vW.use=e=>vJ=e,vW.now="undefined"!=typeof performance?()=>performance.now():Date.now,vW.batchedUpdates=e=>e(),vW.catch=console.error,vW.frameLoop="always",vW.advance=()=>{"demand"!==vW.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):v5()};var vQ=-1,v0=0,v1=!1;function v2(e,t){v1?(t.delete(e),e(0)):(t.add(e),v4())}function v4(){vQ<0&&(vQ=0,"demand"!==vW.frameLoop&&vJ(v3))}function v3(){~vQ&&(vJ(v3),vW.batchedUpdates(v5))}function v5(){let e=vQ,t=vG(vQ=vW.now());if(t&&(v8(vX.splice(0,t),e=>e.handler()),v0-=t),!v0){vQ=-1;return}v$.flush(),vU.flush(e?Math.min(64,vQ-e):16.667),vK.flush(),vq.flush(),vY.flush()}function v6(){let e=new Set,t=e;return{add(n){v0+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(v0-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,v0-=t.size,v8(t,t=>t(n)&&e.add(t)),v0+=e.size,t=e)}}}function v8(e,t){e.forEach(e=>{try{t(e)}catch(e){vW.catch(e)}})}function v7(){}var v9=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ye={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 yt(e,t){if(ye.arr(e)){if(!ye.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function yr(e,t,n){if(ye.arr(e)){for(let r=0;rye.und(e)?[]:ye.arr(e)?e:[e];function ya(e,t){if(e.size){let n=Array.from(e);e.clear(),yn(n,t)}}var yo=(e,...t)=>ya(e,e=>e(...t)),yl=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),ys=null,yu=!1,yc=v7,yd=e=>{e.to&&(B=e.to),e.now&&(vW.now=e.now),void 0!==e.colors&&(ys=e.colors),null!=e.skipAnimation&&(yu=e.skipAnimation),e.createStringInterpolator&&(V=e.createStringInterpolator),e.requestAnimationFrame&&vW.use(e.requestAnimationFrame),e.batchedUpdates&&(vW.batchedUpdates=e.batchedUpdates),e.willAdvance&&(yc=e.willAdvance),e.frameLoop&&(vW.frameLoop=e.frameLoop)},yf=new Set,yh=[],yp=[],ym=0,yg={get idle(){return!yf.size&&!yh.length},start(e){ym>e.priority?(yf.add(e),vW.onStart(yv)):(yy(e),vW(yb))},advance:yb,sort(e){if(ym)vW.onFrame(()=>yg.sort(e));else{let t=yh.indexOf(e);~t&&(yh.splice(t,1),yx(e))}},clear(){yh=[],yf.clear()}};function yv(){yf.forEach(yy),yf.clear(),vW(yb)}function yy(e){yh.includes(e)||yx(e)}function yx(e){yh.splice(function(e,t){let n=e.findIndex(t);return n<0?e.length:n}(yh,t=>t.priority>e.priority),0,e)}function yb(e){let t=yp;for(let n=0;n0}var yw="[-+]?\\d*\\.?\\d+",yj=yw+"%";function yk(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var yE=RegExp("rgb"+yk(yw,yw,yw)),yS=RegExp("rgba"+yk(yw,yw,yw,yw)),yC=RegExp("hsl"+yk(yw,yj,yj)),yM=RegExp("hsla"+yk(yw,yj,yj,yw)),y_=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,yO=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,yT=/^#([0-9a-fA-F]{6})$/,yP=/^#([0-9a-fA-F]{8})$/;function yA(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 yN(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;return Math.round(255*yA(i,r,e+1/3))<<24|Math.round(255*yA(i,r,e))<<16|Math.round(255*yA(i,r,e-1/3))<<8}function yR(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function yD(e){return(parseFloat(e)%360+360)%360/360}function yL(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function yZ(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function yF(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=yT.exec(e))?parseInt(t[1]+"ff",16)>>>0:ys&&void 0!==ys[e]?ys[e]:(t=yE.exec(e))?(yR(t[1])<<24|yR(t[2])<<16|yR(t[3])<<8|255)>>>0:(t=yS.exec(e))?(yR(t[1])<<24|yR(t[2])<<16|yR(t[3])<<8|yL(t[4]))>>>0:(t=y_.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=yP.exec(e))?parseInt(t[1],16)>>>0:(t=yO.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=yC.exec(e))?(255|yN(yD(t[1]),yZ(t[2]),yZ(t[3])))>>>0:(t=yM.exec(e))?(yN(yD(t[1]),yZ(t[2]),yZ(t[3]))|yL(t[4]))>>>0:null;if(null===n)return e;let r=(4278190080&(n=n||0))>>>24,i=(16711680&n)>>>16,a=(65280&n)>>>8,o=(255&n)/255;return`rgba(${r}, ${i}, ${a}, ${o})`}var yz=(e,t,n)=>{if(ye.fun(e))return e;if(ye.arr(e))return yz({range:e,output:t,extrapolate:n});if(ye.str(e.output[0]))return V(e);let r=e.output,i=e.range||[0,1],a=e.extrapolateLeft||e.extrapolate||"extend",o=e.extrapolateRight||e.extrapolate||"extend",l=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,a,o,l,s){let u=s?s(e):e;if(un){if("identity"===l)return u;"clamp"===l&&(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=a(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],l,a,o,e.map)}},yV=Symbol.for("FluidValue.get"),yB=Symbol.for("FluidValue.observers"),yI=e=>!!(e&&e[yV]),yH=e=>e&&e[yV]?e[yV]():e,yU=e=>e[yB]||null;function yW(e,t){let n=e[yB];n&&n.forEach(e=>{e.eventObserved?e.eventObserved(t):e(t)})}var yq=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");y$(this,e)}},y$=(e,t)=>yX(e,yV,t);function yK(e,t){if(e[yV]){let n=e[yB];n||yX(e,yB,n=new Set),!n.has(t)&&(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function yY(e,t){let n=e[yB];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[yB]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var yX=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),yG=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,yJ=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,yQ=RegExp(`(${yG.source})(%|[a-z]+)`,"i"),y0=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,y1=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,y2=e=>{let[t,n]=y4(e);if(!t||yl())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&&y1.test(n))return y2(n);else if(n)return n;return e},y4=e=>{let t=y1.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},y3=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,y5=e=>{I||(I=ys?RegExp(`(${Object.keys(ys).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>yH(e).replace(y1,y2).replace(yJ,yF).replace(I,yF)),n=t.map(e=>e.match(yG).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=>yz({...e,output:t}));return e=>{let n=!yQ.test(t[0])&&t.find(e=>yQ.test(e))?.replace(yG,""),i=0;return t[0].replace(yG,()=>`${r[i++](e)}${n||""}`).replace(y0,y3)}},y6="react-spring: ",y8=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${y6}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},y7=y8(console.warn),y9=y8(console.warn);function xe(e){return ye.str(e)&&("#"==e[0]||/\d/.test(e)||!yl()&&y1.test(e)||e in(ys||{}))}var xt=yl()?eo.useEffect:eo.useLayoutEffect,xn=()=>{let e=(0,eo.useRef)(!1);return xt(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function xr(){let e=(0,eo.useState)()[1],t=xn();return()=>{t.current&&e(Math.random())}}var xi=e=>(0,eo.useEffect)(e,xa),xa=[];function xo(e){let t=(0,eo.useRef)();return(0,eo.useEffect)(()=>{t.current=e}),t.current}var xl=Symbol.for("Animated:node"),xs=e=>!!e&&e[xl]===e,xu=e=>e&&e[xl],xc=(e,t)=>v9(e,xl,t),xd=e=>e&&e[xl]&&e[xl].getPayload(),xf=class{constructor(){xc(this,this)}getPayload(){return this.payload||[]}},xh=class extends xf{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,ye.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new xh(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return ye.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,ye.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},xp=class extends xh{constructor(e){super(0),this._string=null,this._toString=yz({output:[e,e]})}static create(e){return new xp(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(ye.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=yz({output:[this.getValue(),e]})),this._value=0,super.reset()}},xm={dependencies:null},xg=class extends xf{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return yr(this.source,(n,r)=>{xs(n)?t[r]=n.getValue(e):yI(n)?t[r]=yH(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&yn(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return yr(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){xm.dependencies&&yI(e)&&xm.dependencies.add(e);let t=xd(e);t&&yn(t,e=>this.add(e))}},xv=class extends xg{constructor(e){super(e)}static create(e){return new xv(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(xy)),!0)}};function xy(e){return(xe(e)?xp:xh).create(e)}function xx(e){let t=xu(e);return t?t.constructor:ye.arr(e)?xv:xe(e)?xp:xh}var xb=(e,t)=>{let n=!ye.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,eo.forwardRef)((r,i)=>{let a=(0,eo.useRef)(null),o=n&&(0,eo.useCallback)(e=>{a.current=(i&&(ye.fun(i)?i(e):i.current=e),e)},[i]),[l,s]=function(e,t){let n=new Set;return xm.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new xg(e),xm.dependencies=null,[e,n]}(r,t),u=xr(),c=()=>{let e=a.current;(!n||e)&&!1===(!!e&&t.applyAnimatedValues(e,l.getValue(!0)))&&u()},d=new xw(c,s),f=(0,eo.useRef)();xt(()=>(f.current=d,yn(s,e=>yK(e,d)),()=>{f.current&&(yn(f.current.deps,e=>yY(e,f.current)),vW.cancel(f.current.update))})),(0,eo.useEffect)(c,[]),xi(()=>()=>{let e=f.current;yn(e.deps,t=>yY(t,e))});let h=t.getComponentProps(l.getValue());return eo.createElement(e,{...h,ref:o})})},xw=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&vW.write(this.update)}},xj=Symbol.for("AnimatedComponent"),xk=e=>ye.str(e)?e:e&&ye.str(e.displayName)?e.displayName:ye.fun(e)&&e.name||null;function xE(e,...t){return ye.fun(e)?e(...t):e}var xS=(e,t)=>!0===e||!!(t&&e&&(ye.fun(e)?e(t):yi(e).includes(t))),xC=(e,t)=>ye.obj(e)?t&&e[t]:e,xM=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,x_=e=>e,xO=(e,t=x_)=>{let n=xT;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);ye.und(n)||(r[i]=n)}return r},xT=["config","onProps","onStart","onChange","onPause","onResume","onRest"],xP={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 xA(e){let t=function(e){let t={},n=0;if(yr(e,(e,r)=>{!xP[r]&&(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return yr(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function xN(e){return e=yH(e),ye.arr(e)?e.map(xN):xe(e)?vH.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function xR(e){for(let t in e)return!0;return!1}function xD(e){return ye.fun(e)||ye.arr(e)&&ye.obj(e[0])}function xL(e,t){e.ref?.delete(e),t?.delete(e)}function xZ(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var xF={tension:170,friction:26,mass:1,damping:1,easing:e=>e,clamp:!1},xz=class{constructor(){this.velocity=0,Object.assign(this,xF)}};function xV(e,t){if(ye.und(t.decay)){let n=!ye.und(t.tension)||!ye.und(t.friction);!n&&ye.und(t.frequency)&&ye.und(t.damping)&&ye.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var xB=[],xI=class{constructor(){this.changed=!1,this.values=xB,this.toValues=null,this.fromValues=xB,this.config=new xz,this.immediate=!1}};function xH(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((o,l)=>{let s,u;let c=xS(n.cancel??r?.cancel,t);if(c)h();else{ye.und(n.pause)||(i.paused=xS(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||xS(e,t)),s=xE(n.delay||0,t),e?(i.resumeQueue.add(f),a.pause()):(a.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),s=u.time-vW.now()}function f(){s>0&&!vH.skipAnimation?(i.delayed=!0,u=vW.setTimeout(h,s),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{a.start({...n,callId:e,cancel:c},o)}catch(e){l(e)}}})}var xU=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?x$(e.get()):t.every(e=>e.noop)?xW(e.get()):xq(e.get(),t.every(e=>e.finished)),xW=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),xq=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),x$=e=>({value:e,cancelled:!0,finished:!1});function xK(e,t,n,r){let{callId:i,parentId:a,onRest:o}=t,{asyncTo:l,promise:s}=n;return a||e!==l||t.reset?n.promise=(async()=>{let u,c,d;n.asyncId=i,n.asyncTo=e;let f=xO(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)&&x$(r)||i!==n.asyncId&&xq(r,!1);if(t)throw e.result=t,c(e),e},m=(e,t)=>{let a=new xX,o=new xG;return(async()=>{if(vH.skipAnimation)throw xY(n),o.result=xq(r,!1),c(o),o;p(a);let l=ye.obj(e)?{...e}:{...t,to:e};l.parentId=i,yr(f,(e,t)=>{ye.und(l[t])&&(l[t]=e)});let s=await r.start(l);return p(a),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),s})()};if(vH.skipAnimation)return xY(n),xq(r,!1);try{let t;t=ye.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=xq(r.get(),!0,!1)}catch(e){if(e instanceof xX)d=e.result;else if(e instanceof xG)d=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=a,n.asyncTo=a?l:void 0,n.promise=a?s:void 0)}return ye.fun(o)&&vW.batchedUpdates(()=>{o(d,r,r.item)}),d})():s}function xY(e,t){ya(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var xX=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.")}},xG=class extends Error{constructor(){super("SkipAnimationSignal")}},xJ=e=>e instanceof x0,xQ=1,x0=class extends yq{constructor(){super(...arguments),this.id=xQ++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=xu(this);return e&&e.getValue()}to(...e){return vH.to(this,e)}interpolate(...e){return y7(`${y6}The "interpolate" function is deprecated in v9 (use "to" instead)`),vH.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){yW(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||yg.sort(this),yW(this,{type:"priority",parent:this,priority:e})}},x1=Symbol.for("SpringPhase"),x2=e=>(1&e[x1])>0,x4=e=>(2&e[x1])>0,x3=e=>(4&e[x1])>0,x5=(e,t)=>t?e[x1]|=3:e[x1]&=-3,x6=(e,t)=>t?e[x1]|=4:e[x1]&=-5,x8=class extends x0{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,!ye.und(e)||!ye.und(t)){let n=ye.obj(e)?{...e}:{...t,from:e};ye.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(x4(this)||this._state.asyncTo)||x3(this)}get goal(){return yH(this.animation.to)}get velocity(){let e=xu(this);return e instanceof xh?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return x2(this)}get isAnimating(){return x4(this)}get isPaused(){return x3(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:a}=r,o=xd(r.to);!o&&yI(r.to)&&(i=yi(yH(r.to))),r.values.forEach((l,s)=>{if(l.done)return;let u=l.constructor==xp?1:o?o[s].lastPosition:i[s],c=r.immediate,d=u;if(!c){let t;if(d=l.lastPosition,a.tension<=0){l.done=!0;return}let n=l.elapsedTime+=e,i=r.fromValues[s],o=null!=l.v0?l.v0:l.v0=ye.arr(a.velocity)?a.velocity[s]:a.velocity,f=a.precision||(i==u?.005:Math.min(1,.001*Math.abs(u-i)));if(ye.und(a.duration)){if(a.decay){let e=!0===a.decay?.998:a.decay,r=Math.exp(-(1-e)*n);d=i+o/(1-e)*(1-r),c=Math.abs(l.lastPosition-d)<=f,t=o*r}else{t=null==l.lastVelocity?o:l.lastVelocity;let n=a.restVelocity||f/10,r=a.clamp?0:a.bounce,s=!ye.und(r),h=i==u?l.v0>0:in)&&(c=Math.abs(u-d)<=f));++e){s&&(d==u||d>u==h)&&(t=-t*r,d=u);let e=(-(1e-6*a.tension)*(d-u)+-(.001*a.friction)*t)/a.mass;t+=1*e,d+=1*t}}}else{let r=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,l.durationProgress>0&&(l.elapsedTime=a.duration*l.durationProgress,n=l.elapsedTime+=e)),r=(r=(a.progress||0)+n/this._memoizedDuration)>1?1:r<0?0:r,l.durationProgress=r),t=((d=i+a.easing(r)*(u-i))-l.lastPosition)/e,c=1==r}l.lastVelocity=t,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}o&&!o[s].done&&(c=!1),c?l.done=!0:t=!1,l.setValue(d,a.round)&&(n=!0)});let l=xu(this),s=l.getValue();if(t){let e=yH(r.to);(s!==e||n)&&!a.decay?(l.setValue(e),this._onChange(e)):n&&a.decay&&this._onChange(s),this._stop()}else n&&this._onChange(s)}set(e){return vW.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(x4(this)){let{to:e,config:t}=this.animation;vW.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 ye.und(e)?(n=this.queue||[],this.queue=[]):n=[ye.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>xU(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),xY(this._state,e&&this._lastCallId),vW.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=ye.obj(n)?n[t]:n)||xD(n))&&(n=void 0),null==(r=ye.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return x2(this)||(e.reverse&&([n,r]=[r,n]),r=yH(r),ye.und(r)?xu(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,xO(e,(e,t)=>/^on/.test(t)?xC(e,n):e)),br(this,e,"onProps"),bi(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 a=this._state;return xH(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{x3(this)||(x6(this,!0),yo(a.pauseQueue),bi(this,"onPause",xq(this,x7(this,this.animation.to)),this))},resume:()=>{x3(this)&&(x6(this,!1),x4(this)&&this._resume(),yo(a.resumeQueue),bi(this,"onResume",xq(this,x7(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=x9(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(x$(this));let r=!ye.und(e.to),i=!ye.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(x$(this));this._lastToId=t.callId}let{key:a,defaultProps:o,animation:l}=this,{to:s,from:u}=l,{to:c=s,from:d=u}=e;i&&!r&&(!t.default||ye.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!yt(d,u);f&&(l.from=d),d=yH(d);let h=!yt(c,s);h&&this._focus(c);let p=xD(t.to),{config:m}=l,{decay:g,velocity:v}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(xV(n={...n},t),t={...n,...t}),xV(e,t),Object.assign(e,t),xF)null==e[r]&&(e[r]=xF[r]);let{frequency:r,damping:i}=e,{mass:a}=e;ye.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*a,e.friction=4*Math.PI*i*a/r)}(m,xE(t.config,a),t.config!==o.config?xE(o.config,a):void 0);let y=xu(this);if(!y||ye.und(c))return n(xq(this,!0));let x=ye.und(t.reset)?i&&!t.default:!ye.und(d)&&xS(t.reset,a),b=x?d:this.get(),w=xN(c),j=ye.num(w)||ye.arr(w)||xe(w),k=!p&&(!j||xS(o.immediate||t.immediate,a));if(h){let e=xx(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=yI(c),C=!1;if(!S){let e=x||!x2(this)&&f;(h||e)&&(S=!(C=yt(xN(b),w))),(yt(l.immediate,k)||k)&&yt(m.decay,g)&&yt(m.velocity,v)||(S=!0)}if(C&&x4(this)&&(l.changed&&!x?S=!0:S||this._stop(s)),!p&&((S||yI(s))&&(l.values=y.getPayload(),l.toValues=yI(c)?null:E==xp?[1]:yi(w)),l.immediate==k||(l.immediate=k,k||x||this._set(s)),S)){let{onRest:e}=l;yn(bn,e=>br(this,t,e));let r=xq(this,x7(this,s));yo(this._pendingCalls,r),this._pendingCalls.add(n),l.changed&&vW.batchedUpdates(()=>{l.changed=!x,e?.(r,this),x?xE(o.onRest,r):l.onStart?.(r,this)})}x&&this._set(b),p?n(xK(t.to,t,this._state,this)):S?this._start():x4(this)&&!h?this._pendingCalls.add(n):n(xW(b))}_focus(e){let t=this.animation;e!==t.to&&(yU(this)&&this._detach(),t.to=e,yU(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;yI(t)&&(yK(t,this),xJ(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;yI(e)&&yY(e,this)}_set(e,t=!0){let n=yH(e);if(!ye.und(n)){let e=xu(this);if(!e||!yt(n,e.getValue())){let r=xx(n);e&&e.constructor==r?e.setValue(n):xc(this,r.create(n)),e&&vW.batchedUpdates(()=>{this._onChange(n,t)})}}return xu(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,bi(this,"onStart",xq(this,x7(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),xE(this.animation.onChange,e,this)),xE(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;xu(this).reset(yH(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),x4(this)||(x5(this,!0),x3(this)||this._resume())}_resume(){vH.skipAnimation?this.finish():yg.start(this)}_stop(e,t){if(x4(this)){x5(this,!1);let n=this.animation;yn(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),yW(this,{type:"idle",parent:this});let r=t?x$(this.get()):xq(this.get(),x7(this,e??n.to));yo(this._pendingCalls,r),n.changed&&(n.changed=!1,bi(this,"onRest",r,this))}}};function x7(e,t){let n=xN(t);return yt(xN(e.get()),n)}function x9(e,t=e.loop,n=e.to){let r=xE(t);if(r){let i=!0!==r&&xA(r),a=(i||e).reverse,o=!i||i.reset;return be({...e,loop:t,default:!1,pause:void 0,to:!a||xD(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function be(e){let{to:t,from:n}=e=xA(e),r=new Set;return ye.obj(t)&&bt(t,r),ye.obj(n)&&bt(n,r),e.keys=r.size?Array.from(r):null,e}function bt(e,t){yr(e,(e,n)=>null!=e&&t.add(n))}var bn=["onStart","onRest","onChange","onPause","onResume"];function br(e,t,n){e.animation[n]=t[n]!==xM(t,n)?xC(t[n],e.key):void 0}function bi(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var ba=["onStart","onChange","onRest"],bo=1,bl=class{constructor(e,t){this.id=bo++,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];ye.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(be(e)),this}start(e){let{queue:t}=this;return(e?t=yi(e).map(be):this.queue=[],this._flush)?this._flush(this,t):(bp(this,t),bs(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;yn(yi(t),t=>n[t].stop(!!e))}else xY(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(ye.und(e))this.start({pause:!0});else{let t=this.springs;yn(yi(e),e=>t[e].pause())}return this}resume(e){if(ye.und(e))this.start({pause:!1});else{let t=this.springs;yn(yi(e),e=>t[e].resume())}return this}each(e){yr(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,ya(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let a=!r&&this._started,o=i||a&&n.size?this.get():null;i&&t.size&&ya(t,([e,t])=>{t.value=o,e(t,this,this._item)}),a&&(this._started=!1,ya(n,([e,t])=>{t.value=o,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)}vW.onFrame(this._onFrame)}};function bs(e,t){return Promise.all(t.map(t=>bu(e,t))).then(t=>xU(e,t))}async function bu(e,t,n){let{keys:r,to:i,from:a,loop:o,onRest:l,onResolve:s}=t,u=ye.obj(t.default)&&t.default;o&&(t.loop=!1),!1===i&&(t.to=null),!1===a&&(t.from=null);let c=ye.arr(i)||ye.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):yn(ba,n=>{let r=t[n];if(ye.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,yo(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===xM(t,"cancel");(c||h&&d.asyncId)&&f.push(xH(++e._lastAsyncId,{props:t,state:d,actions:{pause:v7,resume:v7,start(t,n){h?(xY(d,e._lastAsyncId),n(x$(e))):(t.onRest=l,n(xK(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=xU(e,await Promise.all(f));if(o&&p.finished&&!(n&&p.noop)){let n=x9(t,o,i);if(n)return bp(e,[n]),bu(e,n,!0)}return s&&vW.batchedUpdates(()=>s(p,e,e.item)),p}function bc(e,t){let n={...e.springs};return t&&yn(yi(t),e=>{ye.und(e.keys)&&(e=be(e)),ye.obj(e.to)||(e={...e,to:void 0}),bh(n,e,e=>bf(e))}),bd(e,n),n}function bd(e,t){yr(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,yK(t,e))})}function bf(e,t){let n=new x8;return n.key=e,t&&yK(n,t),n}function bh(e,t,n){t.keys&&yn(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function bp(e,t){yn(t,t=>{bh(e.springs,t,t=>bf(t,e))})}var bm=({children:e,...t})=>{let n=(0,eo.useContext)(bg),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=function(e,t){let[n]=(0,eo.useState)(()=>({inputs:t,result:e()})),r=(0,eo.useRef)(),i=r.current,a=i;return a?t&&a.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n{r.current=a,i==n&&(n.inputs=n.result=void 0)},[a]),a.result}(()=>({pause:r,immediate:i}),[r,i]);let{Provider:a}=bg;return eo.createElement(a,{value:t},e)},bg=(Object.assign(bm,eo.createContext({})),bm.Provider._context=bm,bm.Consumer._context=bm,bm);bm.Provider=bg.Provider,bm.Consumer=bg.Consumer;var bv=()=>{let e=[],t=function(t){y9(`${y6}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 yn(e,(e,i)=>{if(ye.und(t))r.push(e.start());else{let a=n(t,e,i);a&&r.push(e.start(a))}}),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 yn(e,e=>e.pause(...arguments)),this},t.resume=function(){return yn(e,e=>e.resume(...arguments)),this},t.set=function(t){yn(e,(e,n)=>{let r=ye.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return yn(e,(e,r)=>{if(ye.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 yn(e,e=>e.stop(...arguments)),this},t.update=function(t){return yn(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return ye.fun(e)?e(n,t):e};return t._getProps=n,t};function by(e,t){let n=ye.fun(e),[[r],i]=function(e,t,n){let r=ye.fun(t)&&t;r&&!n&&(n=[]);let i=(0,eo.useMemo)(()=>r||3==arguments.length?bv():void 0,[]),a=(0,eo.useRef)(0),o=xr(),l=(0,eo.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=bc(e,t);return!(a.current>0)||l.queue.length||Object.keys(n).some(t=>!e.springs[t])?new Promise(r=>{bd(e,n),l.queue.push(()=>{r(bs(e,t))}),o()}):bs(e,t)}}),[]),s=(0,eo.useRef)([...l.ctrls]),u=[],c=xo(e)||0;function d(e,n){for(let i=e;i{yn(s.current.slice(e,c),e=>{xL(e,i),e.stop(!0)}),s.current.length=e,d(c,e)},[e]),(0,eo.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=s.current.map((e,t)=>bc(e,u[t])),h=(0,eo.useContext)(bm),p=xo(h),m=h!==p&&xR(h);xt(()=>{a.current++,l.ctrls=s.current;let{queue:e}=l;e.length&&(l.queue=[],yn(e,e=>e())),yn(s.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(xZ(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),xi(()=>()=>{yn(l.ctrls,e=>e.stop(!0))});let g=f.map(e=>({...e}));return i?[g,i]:g}(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}function bx(e,t,n){let r=ye.fun(t)&&t,{reset:i,sort:a,trail:o=0,expires:l=!0,exitBeforeEnter:s=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=(0,eo.useMemo)(()=>r||3==arguments.length?bv():void 0,[]),h=yi(e),p=[],m=(0,eo.useRef)(null),g=i?null:m.current;xt(()=>{m.current=p}),xi(()=>(yn(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{yn(m.current,e=>{e.expired&&clearTimeout(e.expirationId),xL(e.ctrl,f),e.ctrl.stop(!0)})}));let v=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):bb++})}return ye.und(n)?e:ye.fun(n)?e.map(n):yi(n)}(h,r?r():t,g),y=i&&m.current||[];xt(()=>yn(y,({ctrl:e,item:t,key:n})=>{xL(e,f),xE(u,t,n)}));let x=[];if(g&&yn(g,(e,t)=>{e.expired?(clearTimeout(e.expirationId),y.push(e)):~(t=x[t]=v.indexOf(e.key))&&(p[t]=e)}),yn(h,(e,t)=>{p[t]||(p[t]={key:v[t],item:e,phase:"mount",ctrl:new bl},p[t].ctrl.item=e)}),x.length){let e=-1,{leave:n}=r?r():t;yn(x,(t,r)=>{let i=g[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}ye.fun(a)&&p.sort((e,t)=>a(e.item,t.item));let b=-o,w=xr(),j=xO(t),k=new Map,E=(0,eo.useRef)(new Map),S=(0,eo.useRef)(!1);yn(p,(e,n)=>{let i,a;let u=e.key,f=e.phase,h=r?r():t,p=xE(h.delay||0,u);if("mount"==f)i=h.enter,a="enter";else{let e=0>v.indexOf(u);if("leave"!=f){if(e)i=h.leave,a="leave";else{if(!(i=h.update))return;a="update"}}else{if(e)return;i=h.enter,a="enter"}}if(i=xE(i,e.item,n),!(i=ye.obj(i)?xA(i):{to:i}).config){let t=d||j.config;i.config=xE(t,e.item,n,a)}b+=o;let y={...j,delay:p+b,ref:c,immediate:h.immediate,reset:!1,...i};if("enter"==a&&ye.und(y.from)){let i=r?r():t,a=ye.und(i.initial)||g?i.from:i.initial;y.from=xE(a,e.item,n)}let{onResolve:x}=y;y.onResolve=e=>{xE(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=xE(l,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),s&&(S.current=!0),w())}}};let C=bc(e.ctrl,y);"leave"===a&&s?E.current.set(e,{phase:a,springs:C,payload:y}):k.set(e,{phase:a,springs:C,payload:y})});let C=(0,eo.useContext)(bm),M=xo(C),_=C!==M&&xR(C);xt(()=>{_&&yn(p,e=>{e.ctrl.start({default:C})})},[C]),yn(k,(e,t)=>{if(E.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),xt(()=>{yn(E.current.size?E.current:k,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),_&&"enter"==e&&r.start({default:C}),t&&(xZ(r,t.ref),(r.ref||f)&&!S.current?r.update(t):(r.start(t),S.current&&(S.current=!1)))})},i?void 0:n);let O=e=>eo.createElement(eo.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?eo.createElement(i.type,{...i.props,key:ye.str(t.key)||ye.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[O,f]:O}var bb=1,bw=class extends x0{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=yz(...t);let n=this._get();xc(this,xx(n).create(n))}advance(e){let t=this._get();yt(t,this.get())||(xu(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&bk(this._active)&&bE(this)}_get(){let e=ye.arr(this.source)?this.source.map(yH):yi(yH(this.source));return this.calc(...e)}_start(){this.idle&&!bk(this._active)&&(this.idle=!1,yn(xd(this),e=>{e.done=!1}),vH.skipAnimation?(vW.batchedUpdates(()=>this.advance()),bE(this)):yg.start(this))}_attach(){let e=1;yn(yi(this.source),t=>{yI(t)&&yK(t,this),xJ(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){yn(yi(this.source),e=>{yI(e)&&yY(e,this)}),this._active.clear(),bE(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=yi(this.source).reduce((e,t)=>Math.max(e,(xJ(t)?t.priority:0)+1),0))}};function bj(e){return!1!==e.idle}function bk(e){return!e.size||Array.from(e).every(bj)}function bE(e){e.idle||(e.idle=!0,yn(xd(e),e=>{e.done=!0}),yW(e,{type:"idle",parent:e}))}var bS=(e,...t)=>new bw(e,t);vH.assign({createStringInterpolator:y5,to:(e,t)=>new bw(e,t)}),yg.advance;var bC=/^--/,bM={},b_={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},bO=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),bT=["Webkit","Ms","Moz","O"];b_=Object.keys(b_).reduce((e,t)=>(bT.forEach(n=>e[bO(n,t)]=e[t]),e),b_);var bP=/^(matrix|translate|scale|rotate|skew)/,bA=/^(translate)/,bN=/^(rotate|skew)/,bR=(e,t)=>ye.num(e)&&0!==e?e+t:e,bD=(e,t)=>ye.arr(e)?e.every(e=>bD(e,t)):ye.num(e)?e===t:parseFloat(e)===t,bL=class extends xg{constructor({x:e,y:t,z:n,...r}){let i=[],a=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),a.push(e=>[`translate3d(${e.map(e=>bR(e,"px")).join(",")})`,bD(e,0)])),yr(r,(e,t)=>{if("transform"===t)i.push([e||""]),a.push(e=>[e,""===e]);else if(bP.test(t)){if(delete r[t],ye.und(e))return;let n=bA.test(t)?"px":bN.test(t)?"deg":"";i.push(yi(e)),a.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${bR(i,n)})`,bD(i,0)]:e=>[`${t}(${e.map(e=>bR(e,n)).join(",")})`,bD(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new bZ(i,a)),super(r)}},bZ=class extends yq{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 yn(this.inputs,(n,r)=>{let i=yH(n[0]),[a,o]=this.transforms[r](ye.arr(i)?i:n.map(yH));e+=" "+a,t=t&&o}),t?"none":e}observerAdded(e){1==e&&yn(this.inputs,e=>yn(e,e=>yI(e)&&yK(e,this)))}observerRemoved(e){0==e&&yn(this.inputs,e=>yn(e,e=>yI(e)&&yY(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),yW(this,e)}};vH.assign({batchedUpdates:tD.unstable_batchedUpdates,createStringInterpolator:y5,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 bF=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new xg(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=e=>{let t=xk(e)||"Anonymous";return(e=ye.str(e)?a[e]||(a[e]=xb(e,i)):e[xj]||(e[xj]=xb(e,i))).displayName=`Animated(${t})`,e};return yr(e,(t,n)=>{ye.arr(e)&&(n=xk(t)),a[n]=a(t)}),{animated:a}})(["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:a,scrollLeft:o,viewBox:l,...s}=t,u=Object.values(s),c=Object.keys(s).map(t=>n||e.hasAttribute(t)?t:bM[t]||(bM[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||bC.test(t)||b_.hasOwnProperty(t)&&b_[t]?(""+d).trim():d+"px";bC.test(t)?e.style.setProperty(t,n):e.style[t]=n}c.forEach((t,n)=>{e.setAttribute(t,u[n])}),void 0!==a&&(e.scrollTop=a),void 0!==o&&(e.scrollLeft=o),void 0!==l&&e.setAttribute("viewBox",l)},createAnimatedStyle:e=>new bL(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated,bz=n(23442),bV=(0,eo.createContext)({});function bB(e){var t=e.x,n=e.y,r=e.dx,i=e.dy,a=e.children,o=(0,eo.useMemo)(function(){return{x:t,y:n,dx:r,dy:i}},[t,n,r,i]);return eo.createElement(bV.Provider,{value:o},a)}function bI(){return(bI=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,bK),p=(0,eo.useContext)(bW)||{},m=p.innerHeight,g=p.innerWidth,v=p.margin,y=p.xScale,x=p.yScale,b=p.dataRegistry,w=(0,eo.useMemo)(function(){return y?bq(y):0},[y]),j=(0,eo.useMemo)(function(){return x?bq(x):0},[x]);if((!l||!s)&&!o)return console.warn("[@visx/xychart/BaseAnnotation]: dataKey or x/yAccessors must be specified."),null;var k=l&&s||null==o?null:null==b?void 0:b.get(o),E=l||(null==k?void 0:k.xAccessor),S=s||(null==k?void 0:k.yAccessor);if(!y||!x||!g||!m||!E||!S||!v)return null;var C=(null!=(t=(0,md.Z)(y(E(a))))?t:NaN)+w/2,M=(null!=(n=(0,md.Z)(x(S(a))))?n:NaN)+j/2,_=C+c+16>v.left+g?-c:c,O=M+f+16>v.top+m?-f:f;return b$(C)&&b$(M)?eo.createElement(r,bY({width:g,height:m},h,{x:C,y:M,dx:_,dy:O}),i):null}bX.propTypes={dataKey:mi().string,xAccessor:mi().func,yAccessor:mi().func};var bG=["x","y","AnnotationComponent"],bJ=["editable"];function bQ(){return(bQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function b1(e){var t=e.x,n=void 0===t?0:t,r=e.y,i=void 0===r?0:r,a=e.AnnotationComponent,o=b0(e,bG),l=(0,eo.useRef)({x:n,y:i}),s=by({from:{x:l.current.x-n,y:l.current.y-i},to:{x:0,y:0},reset:!0});return(0,eo.useEffect)(function(){l.current={x:n,y:i}},[n,i]),eo.createElement(bF.g,{transform:bS([s.x,s.y],function(e,t){return"translate("+e+", "+t+")"})},eo.createElement(a,bQ({x:n,y:i},o)))}function b2(e){var t=e.editable,n=b0(e,bJ),r=(0,eo.useCallback)(function(e){return eo.createElement(b1,bQ({AnnotationComponent:t?bU:bB},e))},[t]);return eo.createElement(bX,bQ({AnnotationComponent:r},n))}b2.propTypes={editable:mi().bool};var b4=n(12766),b3=["d","stroke","fill"];function b5(){return(b5=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,b3),a=(0,eo.useRef)(t),o=(0,eo.useCallback)(vs()(function(e){a.current=e},50),[]),l=(0,b4.interpolatePath)(a.current,t);o(t);var s=by({from:{t:0},to:{t:1},reset:!0,delay:0}).t,u=by({stroke:void 0===n?"transparent":n,fill:void 0===r?"transparent":r});return eo.createElement(bF.path,b5({className:"visx-path",d:s.to(l),stroke:u.stroke,fill:u.fill},i))}var b8=n(12935),b7=n(12151);function b9(){return(b9=Object.assign?Object.assign.bind():function(e){for(var t=1;tt?1:e>=t?0:NaN}function wc(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[a],t)?r=a+1:i=a}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>wu(e(t),n)),{left:r,center:function(e,n,i,a){null==i&&(i=0),null==a&&(a=e.length);let o=r(e,n,i,a-1);return o>i&&t(e[o-1],n)>-t(e[o],n)?o-1:o},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[a],t)>0?i=a:r=a+1}return r}}}let wd=wc(wu);wd.right;let wf=wd.left;function wh(e){var t,n,r=e.scale,i=e.accessor,a=e.scaledValue,o=e.data;if("invert"in r&&"function"==typeof r.invert){var l=wc(i).left,s=Number(r.invert(a)),u=l(o,s),c=o[u-1],d=o[u];n=(t=!c||Math.abs(s-i(c))>Math.abs(s-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)),a=Array(i);++r=0||(i[n]=e[n]);return i}(e,wS),S=(0,eo.useContext)(bW),C=S.colorScale,M=S.theme,_=S.horizontal,O=(0,eo.useMemo)(function(){return x?wt(b,x):void 0},[b,x]),T=(0,eo.useMemo)(function(){return wt(b,y)},[b,y]),P=(0,eo.useMemo)(function(){return j?wt(k,j):void 0},[k,j]),A=(0,eo.useMemo)(function(){return wt(k,w)},[k,w]),N=(0,eo.useCallback)(function(e){return b$(b(y(e)))&&b$(k(w(e)))},[b,y,k,w]),R=null!=(t=null!=(n=null==C?void 0:C(s))?n:null==M?void 0:null==(r=M.colors)?void 0:r[0])?t:"#222",D="AREASERIES_EVENT_SOURCE-"+s,L=wb({dataKey:s,enableEvents:void 0===g||g,onBlur:c,onFocus:d,onPointerMove:f,onPointerOut:h,onPointerUp:p,onPointerDown:m,source:D,allowedSources:[wr,D]}),Z=(0,eo.useMemo)(function(){var e=wn(_?b:k);return _?{x0:null!=O?O:e,x1:T,y:A}:{x:T,y0:null!=P?P:e,y1:A}},[b,k,_,T,A,O,P]),F=!!(d||c),z=(0,eo.useCallback)(function(e){var t=e.glyphs;return F?t.map(function(e){return eo.createElement(eo.Fragment,{key:e.key},wE(wC({},e,{color:"transparent",onFocus:L.onFocus,onBlur:L.onBlur})))}):null},[F,L.onFocus,L.onBlur]);return eo.createElement(eo.Fragment,null,eo.createElement(b8.Z,wC({},Z,E,{curve:o,defined:N}),function(e){var t=e.path;return eo.createElement(a,wC({className:"visx-area",stroke:"transparent",fill:R,strokeLinecap:"round"},E,{d:t(l)||""},L))}),(void 0===v||v)&&eo.createElement(b7.Z,wC({x:T,y:A,defined:N,curve:o},u),function(e){var t=e.path;return eo.createElement(a,wC({className:"visx-line",fill:"transparent",stroke:R,strokeWidth:2,pointerEvents:"none",strokeLinecap:"round"},u,{d:t(l)||""}))}),F&&eo.createElement(wj,{dataKey:s,data:l,xAccessor:y,yAccessor:w,xScale:b,yScale:k,renderGlyphs:z}))}wM.propTypes={renderLine:mi().bool};var w_=we(wM);function wO(){return(wO=Object.assign?Object.assign.bind():function(e){for(var t=1;t1)for(var n,r,i,a=1,o=e[t[0]],l=o.length;a=0;)n[t]=t;return n}function wL(e,t){return e[t]}function wZ(e){let t=[];return t.key=e,t}Array.prototype.slice;var wF=n(74322),wz=n(58543);function wV(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=a&&(n=r=a):(n>a&&(n=a),r=0?"positiveSum":"negativeSum"]+=i})}}),Object.values(e)},[a,s]),d=(0,eo.useMemo)(function(){var e=r?null:c.some(function(e){return e.negativeSum<0}),t=function(){var e=wN([]),t=wD,n=wR,r=wL;function i(i){var a,o,l,s=Array.from(e.apply(this,arguments),wZ),u=s.length,c=-1;for(let e of i)for(o=0,++c;o0&&0===r&&(a?i.xScale=function(e){return e.domain(wV(e.domain().concat(f)))}:i.yScale=function(e){return e.domain(wV(e.domain().concat(f)))}),i}).filter(function(e){return e}))),function(){return l(u)}},[u,f,a,d,o,l,s]),{seriesChildren:s,dataKeys:u,stackedData:d}}function wq(e,t,n){var r,i,a,o,l=e.xScale,s=e.yScale,u=e.point,c=(n?wm:wp)(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=l((0,wA.l8)(c.datum)))?r:1/0)&&u.x<=(null!=(i=l((0,wA.xf)(c.datum)))?i:-1/0)?0:c.distanceX,distanceY:n?c.distanceY:u.y<=(null!=(a=s((0,wA.l8)(c.datum)))?a:-1/0)&&u.y>=(null!=(o=s((0,wA.xf)(c.datum)))?o:1/0)?0:c.distanceY}:null}var w$=["data","dataKey","xAccessor","yAccessor","curve","PathComponent","lineProps","renderLine"];function wK(){return(wK=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(o,w$)),u=wK({fill:null!=(n=null!=(r=null==g?void 0:g(e.key))?r:null==w?void 0:null==(i=w.colors)?void 0:i[0])?n:"#222"},s);return{key:t+"-"+e.key,accessors:C,data:e,areaProps:u,lineProps:l}})},[S,C,g,E,w]),_=(0,eo.useCallback)(function(e){var t,n,r=null==(t=E.find(function(t){return t.props.dataKey===e.dataKey}))?void 0:null==(n=t.props)?void 0:n.data;return r?wq(e,r,y):null},[E,y]),O="AREASTACK_EVENT_SOURCE-"+k.join("-"),T=wb({dataKey:k,enableEvents:void 0===a||a,findNearestDatum:_,onBlur:l,onFocus:s,onPointerMove:u,onPointerOut:c,onPointerUp:d,onPointerDown:f,source:O,allowedSources:[wr,O]}),P=!!(s||l),A=(0,eo.useCallback)(function(e){var t=e.glyphs;return P?t.map(function(e){return eo.createElement(eo.Fragment,{key:e.key},wE(wK({},e,{color:"transparent",onFocus:T.onFocus,onBlur:T.onBlur})))}):null},[P,T.onFocus,T.onBlur]);return!k.some(function(e){return null==v.get(e)})&&x&&b&&g?eo.createElement("g",{className:"visx-area-stack"},M.map(function(e){return eo.createElement(b8.Z,wK({key:e.key,curve:i},e.accessors),function(t){var r=t.path;return eo.createElement(n,wK({className:"visx-area",stroke:"transparent",d:r(e.data)||""},e.areaProps,T))})}),(void 0===p||p)&&M.map(function(e){return eo.createElement(wP.Z,wK({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 eo.createElement(n,wK({className:"visx-line",fill:"transparent",stroke:e.areaProps.fill,strokeWidth:2,pointerEvents:"none"},e.lineProps,{d:r(e.data)||""}))})}),P&&M.map(function(e,t){var n=M[M.length-t-1];return eo.createElement(wj,{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:wY,yScale:wY,renderGlyphs:A})})):null}function wG(){return(wG=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,w0),c=(0,eo.useContext)(bW),d=c.theme,f=c.xScale,h=c.yScale,p=c.margin,m=c.width,g=c.height,v=u.orientation,y=(0,eo.useMemo)(function(){var e,t,n,r;return"left"===v||"right"===v?null==d?void 0:null==(e=d.axisStyles)?void 0:null==(t=e.y)?void 0:t[v]:null==d?void 0:null==(n=d.axisStyles)?void 0:null==(r=n.x)?void 0:r[v]},[d,v]),x=u.tickLabelProps,b=(0,eo.useMemo)(function(){return x||y?function(e,t,n){return w1({},null==y?void 0:y.tickLabel,{width:"left"===v||"right"===v?null==p?void 0:p[v]:void 0},null==x?void 0:x(e,t,n))}:void 0},[x,y,v,p]),w="bottom"===v?(null!=g?g:0)-(null!=(t=null==p?void 0:p.bottom)?t:0):"top"===v&&null!=(n=null==p?void 0:p.top)?n:0,j="left"===v?null!=(r=null==p?void 0:p.left)?r:0:"right"===v?(null!=m?m:0)-(null!=(i=null==p?void 0:p.right)?i:0):0,k="left"===v||"right"===v?h:f;return k?eo.createElement(s,w1({top:w,left:j,labelProps:null==y?void 0:y.axisLabel,stroke:null==y?void 0:null==(a=y.axisLine)?void 0:a.stroke,strokeWidth:null==y?void 0:null==(o=y.axisLine)?void 0:o.strokeWidth,tickLength:null==y?void 0:y.tickLength,tickStroke:null==y?void 0:null==(l=y.tickLine)?void 0:l.stroke},u,{tickLabelProps:b,scale:k})):null}function w4(){return(w4=Object.assign?Object.assign.bind():function(e){for(var t=1;t=h&&s.y<=p;return w6({},u,{distanceX:0,distanceY:m?0:Math.abs(s.y-(h+p)/2)})}var g=o(i(u.datum)),v=(null!=g?g:1/0)+(null!=c?c:1/0),y=v+d,x=s.x>=v&&s.x<=y;return w6({},u,{distanceY:0,distanceX:x?0:Math.abs(s.x-(v+y)/2)})}(e,k,g)},[k,g]),S="BARGROUP_EVENT_SOURCE-"+j.join("-")+"}",C=wb({dataKey:j,enableEvents:void 0===f||f,findNearestDatum:E,onBlur:o,onFocus:l,onPointerMove:s,onPointerOut:u,onPointerUp:c,onPointerDown:d,source:S,allowedSources:[wr,S]}),M=(0,eo.useMemo)(function(){return x?wn(x):0},[x]),_=(0,eo.useMemo)(function(){return b?wn(b):0},[b]),O=j.map(function(e){return m.get(e)});if(O.some(function(e){return null==e})||!x||!b||!p)return null;var T=bq(k),P=O.map(function(e){var t,n=e.xAccessor,r=e.yAccessor,i=e.data,a=e.key,o=function(e){var t,i;return g?(null!=(t=x(n(e)))?t:NaN)-M:(null!=(i=b(r(e)))?i:NaN)-_},l=g?function(e){var t;return null!=(t=b(r(e)))?t:NaN}:function(e){var t;return null!=(t=x(n(e)))?t:NaN},s=null!=(t=k(a))?t:0,u=g?function(e){return M+Math.min(0,o(e))}:function(e){return l(e)+s},c=g?function(e){return l(e)+s}:function(e){return _+Math.min(0,o(e))},d=g?function(e){return Math.abs(o(e))}:function(){return T},f=g?function(){return T}:function(e){return Math.abs(o(e))},h=w.find(function(e){return e.props.dataKey===a}),m=(null==h?void 0:h.props)||{},v=m.colorAccessor;return{key:a,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(!b$(r))return null;var i=c(e);if(!b$(i))return null;var o=d(e);if(!b$(o))return null;var l=f(e);return b$(l)?{key:a+"-"+t,x:r,y:i,width:o,height:l,fill:null!=(n=null==v?void 0:v(e,t))?n:p(a)}:null}).filter(function(e){return e})}});return eo.createElement("g",{className:"visx-bar-group"},P.map(function(e){return e&&eo.createElement(a,w8({horizontal:g,xScale:x,yScale:b},e,C,{key:e.key}))}))}w7.propTypes={children:mi().node.isRequired,padding:mi().number,sortBars:mi().func};var w9=n(10897),je=function(e){return!!(null==e?void 0:e.includes("url("))},jt=function(e){return je(e)?"rgba(0,0,0,0.1)":e},jn=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"],jr=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"];function ji(){return(ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function jo(e){return{x:e.x,y:e.y,width:e.width,height:e.height,fill:jt(e.fill),opacity:1}}function jl(e){var t=e.bars,n=(e.xScale,e.yScale,e.horizontal,e.radius),r=e.radiusAll,i=e.radiusTop,a=e.radiusRight,o=e.radiusBottom,l=e.radiusLeft,s=ja(e,jn);return eo.createElement(eo.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 eo.createElement(w9.Z,{key:t,x:c,y:d,width:f,height:h,radius:n,all:r,top:i,right:a,bottom:o,left:l},function(e){var t=e.path;return eo.createElement(b6,ji({className:"visx-bar visx-bar-rounded",d:t,fill:u},s))})}))}function js(e){var t,n,r,i=e.bars,a=e.xScale,o=e.yScale,l=e.horizontal,s=(e.radius,e.radiusAll,e.radiusTop,e.radiusRight,e.radiusBottom,e.radiusLeft,ja(e,jr)),u=bx(i,ji({},(n=(t={horizontal:l,scale:l?a:o}).scale,r=!!t.horizontal,(0,eo.useMemo)(function(){var e=wn(n);function t(t){var n=t.x,i=t.y,a=t.width,o=t.height;return{x:r?null!=e?e:0:n,y:r?i:null!=e?e:0,width:r?0:a,height:r?o:0,fill:jt(t.fill),opacity:0}}return{unique:!0,from:t,leave:t,enter:jo,update:jo,keys:function(e){return e.key}}},[n,r])))),c=!!(s.onFocus||s.onBlur);return eo.createElement(eo.Fragment,null,u(function(e,t,n){var r=e.x,i=e.y,a=e.width,o=e.height,l=e.fill,u=e.opacity,d=n.key;return null==t||null==d?null:eo.createElement(bF.rect,ji({key:d,tabIndex:c?0:void 0,className:"visx-bar",x:r,y:i,width:a,height:o,fill:je(t.fill)?t.fill:l,opacity:u},s))}))}function ju(e){return null==e.radius?eo.createElement(js,e):eo.createElement(jl,ji({},e,{radius:e.radius}))}function jc(){return(jc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jf),w=(0,eo.useContext)(bW),j=w.colorScale,k=w.horizontal,E=w.theme,S=w.innerWidth,C=w.innerHeight,M=(0,eo.useMemo)(function(){return wt(v,g)},[v,g]),_=(0,eo.useMemo)(function(){return wt(x,y)},[x,y]),O=bq(k?x:v)||(k?void 0===C?0:C:void 0===S?0:S)/l.length*(1-Math.min(1,Math.max(0,void 0===a?.1:a))),T=(0,eo.useMemo)(function(){return v?wn(v):0},[v]),P=(0,eo.useMemo)(function(){return x?wn(x):0},[x]),A=null!=(t=null!=(n=null==j?void 0:j(s))?n:null==E?void 0:null==(r=E.colors)?void 0:r[0])?t:"#222",N=(0,eo.useMemo)(function(){var e=k?0:-O/2,t=k?-O/2:0;return l.map(function(n,r){var i,a=M(n)+e;if(!b$(a))return null;var l=_(n)+t;if(!b$(l))return null;var s=k?a-T:l-P;return b$(s)?{key:""+r,x:k?T+Math.min(0,s):a,y:k?l:P+Math.min(0,s),width:k?Math.abs(s):O,height:k?O:Math.abs(s),fill:null!=(i=null==o?void 0:o(n,r))?i:A}:null}).filter(function(e){return e})},[O,A,o,l,M,_,k,T,P]),R="BARSERIES_EVENT_SOURCE-"+s,D=wb({dataKey:s,enableEvents:void 0===m||m,onBlur:u,onFocus:c,onPointerMove:d,onPointerOut:f,onPointerUp:h,onPointerDown:p,source:R,allowedSources:[wr,R]});return eo.createElement("g",{className:"vx-bar-series"},eo.createElement(i,jh({bars:N,horizontal:k,xScale:v,yScale:x},D,b)))}jp.propTypes={barPadding:mi().number,colorAccessor:mi().func};var jm=we(jp),jg=["colorAccessor"];function jv(){return(jv=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jg);return eo.createElement(jm,jv({},n,{colorAccessor:t,BarsComponent:ju}))}var jx=n(15590);function jb(){return(jb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jC),i=(0,eo.useCallback)(function(e){return eo.createElement(jS,jM({},e,{renderGlyph:n}))},[n]);return eo.createElement(wk,jM({},r,{renderGlyphs:i}))}var jO=n(93353),jT=n(63962),jP=["rows","columns","GridRowsComponent","GridColumnsComponent"];function jA(){return(jA=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jP),o=(0,eo.useContext)(bW),l=o.theme,s=o.xScale,u=o.yScale,c=o.margin,d=o.innerWidth,f=o.innerHeight,h=null==l?void 0:l.gridStyles;return eo.createElement(eo.Fragment,null,(void 0===t||t)&&u&&null!=d&&eo.createElement(r,jA({left:null==c?void 0:c.left,lineStyle:h,width:d,scale:u},a)),(void 0===n||n)&&s&&null!=f&&eo.createElement(i,jA({top:null==c?void 0:c.top,lineStyle:h,height:f,scale:s},a)))}jN.propTypes={rows:mi().bool,columns:mi().bool};var jR=["animationTrajectory"];function jD(){return(jD=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jR),r=(0,eo.useMemo)(function(){return function(e){return eo.createElement(jO.Z,jD({},e,{animationTrajectory:t}))}},[t]),i=(0,eo.useMemo)(function(){return function(e){return eo.createElement(jT.Z,jD({},e,{animationTrajectory:t}))}},[t]);return eo.createElement(jN,jD({GridRowsComponent:r,GridColumnsComponent:i},n))}var jZ=["colorAccessor","curve","data","dataKey","onBlur","onFocus","onPointerMove","onPointerOut","onPointerUp","onPointerDown","enableEvents","xAccessor","xScale","yAccessor","yScale","PathComponent"];function jF(){return(jF=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jZ),j=(0,eo.useContext)(bW),k=j.colorScale,E=j.theme,S=(0,eo.useMemo)(function(){return wt(g,m)},[g,m]),C=(0,eo.useMemo)(function(){return wt(y,v)},[y,v]),M=(0,eo.useCallback)(function(e){return b$(g(m(e)))&&b$(y(v(e)))},[g,m,y,v]),_=null!=(t=null!=(n=null==k?void 0:k(l))?n:null==E?void 0:null==(r=E.colors)?void 0:r[0])?t:"#222",O="LINESERIES_EVENT_SOURCE-"+l,T=wb({dataKey:l,enableEvents:void 0===p||p,onBlur:s,onFocus:u,onPointerMove:c,onPointerOut:d,onPointerUp:f,onPointerDown:h,source:O,allowedSources:[wr,O]}),P=!!(u||s),A=(0,eo.useCallback)(function(e){var t=e.glyphs;return P?t.map(function(e){return eo.createElement(eo.Fragment,{key:e.key},wE(jF({},e,{color:"transparent",onFocus:T.onFocus,onBlur:T.onBlur})))}):null},[P,T.onFocus,T.onBlur]);return eo.createElement(eo.Fragment,null,eo.createElement(b7.Z,jF({x:S,y:C,defined:M,curve:a},w),function(e){var t,n=e.path;return eo.createElement(b,jF({stroke:null!=(t=null==i?void 0:i(l))?t:_,strokeWidth:2,fill:"transparent",strokeLinecap:"round"},w,{d:n(o)||""},T))}),P&&eo.createElement(wj,{dataKey:l,data:o,xAccessor:m,yAccessor:v,xScale:g,yScale:y,renderGlyphs:A}))}jz.propTypes={colorAccessor:mi().func};var jV=we(jz);function jB(){return(jB=Object.assign?Object.assign.bind():function(e){for(var t=1;tjW.every(n=>e[n]===t[n]);function j$(e,t){return(j$=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var jK=function(e){function t(){return e.apply(this,arguments)||this}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,j$(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)?tD.createPortal(this.props.children,this.node):null},t}(eo.PureComponent);jK.propTypes={zIndex:mi().oneOfType([mi().number,mi().string])};var jY=["detectBounds","zIndex"],jX=["left","top","detectBounds","zIndex"];function jG(){return(jG=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var jQ=["debounce","detectBounds","horizontalCrosshairStyle","glyphStyle","renderTooltip","renderGlyph","resizeObserverPolyfill","scroll","showDatumGlyph","showHorizontalCrosshair","showSeriesGlyphs","showVerticalCrosshair","snapTooltipToDatumX","snapTooltipToDatumY","verticalCrosshairStyle","zIndex"],j0=["x","y"];function j1(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function j2(){return(j2=Object.assign?Object.assign.bind():function(e){for(var t=1;t(f.current=!0,()=>void(f.current=!1)));let[h,p,m]=(0,eo.useMemo)(()=>{let e=()=>{if(!u.current.element)return;let{left:e,top:t,width:n,height:r,bottom:i,right:o,x:l,y:c}=u.current.element.getBoundingClientRect(),d={left:e,top:t,width:n,height:r,bottom:i,right:o,x:l,y:c};u.current.element instanceof HTMLElement&&a&&(d.height=u.current.element.offsetHeight,d.width=u.current.element.offsetWidth),Object.freeze(d),f.current&&!jq(u.current.lastBounds,d)&&s(u.current.lastBounds=d)};return[e,d?jU()(e,d):e,c?jU()(e,c):e]},[s,a,c,d]);function g(){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 v(){u.current.element&&(u.current.resizeObserver=new o(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,eo.useEffect)(()=>{if(t)return window.addEventListener("scroll",m,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",m,!0)},[m,t]),(0,eo.useEffect)(()=>(window.addEventListener("resize",p),()=>void window.removeEventListener("resize",p)),[p]),(0,eo.useEffect)(()=>{g(),v()},[r,m,p]),(0,eo.useEffect)(()=>g,[]),[e=>{e&&e!==u.current.element&&(g(),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:a}=window.getComputedStyle(t);return[r,i,a].some(e=>"auto"===e||"scroll"===e)&&n.push(t),[...n,...e(t.parentElement)]}(e),v())},l,h]}(jJ(et,jY)))[0],es=ea[1],eu=ea[2],ec=(0,eo.useMemo)(function(){return function(e){var t=e.left,n=e.top,r=e.detectBounds,i=e.zIndex,a=jJ(e,jX),o=null==i?ei:i,l=(null==r?er:r)?mF:mO,s=(void 0===t?0:t)+(es.left||0)+window.scrollX,u=(void 0===n?0:n)+(es.top||0)+window.scrollY;return eo.createElement(jK,{zIndex:o},eo.createElement(l,jG({left:s,top:u},a)))}},[er,ei,es.left,es.top]),{containerRef:el,containerBounds:es,forceRefreshBounds:eu,TooltipInPortal:ec}),N=A.containerRef,R=A.TooltipInPortal,D=A.forceRefreshBounds,L=(0,eo.useCallback)(function(e){var t;N(null!=(t=null==e?void 0:e.parentElement)?t:null)},[N]),Z=null!=P&&P.tooltipOpen?a(j2({},P,{colorScale:k})):null,F=(null==P?void 0:P.tooltipOpen)&&null!=Z,z=(0,eo.useRef)(!1);(0,eo.useEffect)(function(){F&&!z.current&&D(),z.current=F},[F,D]);var V=null==P?void 0:P.tooltipLeft,B=null==P?void 0:P.tooltipTop,I=_?bq(_):0,H=O?bq(O):0,U=(0,eo.useCallback)(function(e,t){var n,r,i=null==T?void 0:T.get(e),a=null==i?void 0:i.xAccessor,o=null==i?void 0:i.yAccessor;return{left:_&&a?null!=(n=Number(_(a(t)))+I/2)?n:0:void 0,top:O&&o?null!=(r=Number(O(o(t)))+H/2)?r:0:void 0}},[T,I,H,_,O]),W=null==P?void 0:null==(ed=P.tooltipData)?void 0:ed.nearestDatum,q=null!=(ef=null==W?void 0:W.key)?ef:"";if(F&&W&&(g||y)){var $=U(q,W.datum),K=$.left,Y=$.top;V=g&&b$(K)?K:V,B=y&&b$(Y)?Y:B}var X=[];if(F&&(void 0!==c&&c||h)){var G=Number(null!=(eE=null==i?void 0:i.radius)?eE:4);if(h)Object.values(null!=(eS=null==P?void 0:null==(eC=P.tooltipData)?void 0:eC.datumByKey)?eS:{}).forEach(function(e){var t,n,r,a=e.key,o=e.datum,l=e.index,s=null!=(t=null!=(n=null==k?void 0:k(a))?n:null==E?void 0:null==(r=E.htmlLabel)?void 0:r.color)?t:"#222",u=U(a,o),c=u.left,d=u.top;b$(c)&&b$(d)&&X.push({key:a,color:s,datum:o,index:l,size:G,x:c,y:d,glyphStyle:i,isNearestDatum:!!W&&W.key===a})});else if(W){var J=U(q,W.datum),Q=J.left,ee=J.top;if(b$(Q)&&b$(ee)){var et,en,er,ei,ea,el,es,eu,ec,ed,ef,eh,ep,em,eg,ev,ey,ex,eb,ew,ej,ek,eE,eS,eC,eM,e_,eO,eT,eP,eA,eN=null!=(eM=null!=(e_=null!=(eO=null!=(eT=q&&(null==k?void 0:k(q)))?eT:null)?eO:null==E?void 0:null==(eP=E.gridStyles)?void 0:eP.stroke)?e_:null==E?void 0:null==(eA=E.htmlLabel)?void 0:eA.color)?eM:"#222";X.push({key:q,color:eN,datum:W.datum,index:W.index,size:G,x:Q,y:ee,glyphStyle:i,isNearestDatum:!0})}}}return eo.createElement(eo.Fragment,null,eo.createElement("svg",{ref:L,style:j3}),F&&eo.createElement(eo.Fragment,null,void 0!==p&&p&&eo.createElement(R,{className:"visx-crosshair visx-crosshair-vertical",left:V,top:null==M?void 0:M.top,offsetLeft:0,offsetTop:0,detectBounds:!1,style:j4},eo.createElement("svg",{width:"1",height:S,overflow:"visible"},eo.createElement("line",j2({x1:0,x2:0,y1:0,y2:S,strokeWidth:1.5,stroke:null!=(eh=null!=(ep=null==E?void 0:null==(em=E.gridStyles)?void 0:em.stroke)?ep:null==E?void 0:null==(eg=E.htmlLabel)?void 0:eg.color)?eh:"#222"},x)))),void 0!==d&&d&&eo.createElement(R,{className:"visx-crosshair visx-crosshair-horizontal",left:null==M?void 0:M.left,top:B,offsetLeft:0,offsetTop:0,detectBounds:!1,style:j4},eo.createElement("svg",{width:C,height:"1",overflow:"visible"},eo.createElement("line",j2({x1:0,x2:C,y1:0,y2:0,strokeWidth:1.5,stroke:null!=(ev=null!=(ey=null==E?void 0:null==(ex=E.gridStyles)?void 0:ex.stroke)?ey:null==E?void 0:null==(eb=E.htmlLabel)?void 0:eb.color)?ev:"#222"},r)))),X.map(function(e,t){var n=e.x,r=e.y,i=j1(e,j0);return eo.createElement(R,{key:t,className:"visx-tooltip-glyph",left:n,top:r,offsetLeft:0,offsetTop:0,detectBounds:!1,style:j4},eo.createElement("svg",{overflow:"visible"},l(j2({x:0,y:0},i))))}),eo.createElement(R,j2({left:V,top:B,style:j2({},m_,{background:null!=(ew=null==E?void 0:E.backgroundColor)?ew:"white",boxShadow:"0 1px 2px "+(null!=E&&null!=(ej=E.htmlLabel)&&ej.color?(null==E?void 0:null==(ek=E.htmlLabel)?void 0:ek.color)+"55":"#22222255")},null==E?void 0:E.htmlLabel)},w),Z)))}function j7(e){var t=(0,eo.useContext)(wi);return null!=t&&t.tooltipOpen?eo.createElement(j8,e):null}j5.propTypes={isNearestDatum:mi().bool.isRequired},j8.propTypes={renderTooltip:mi().func.isRequired,renderGlyph:mi().func,snapTooltipToDatumX:mi().bool,snapTooltipToDatumY:mi().bool,showVerticalCrosshair:mi().bool,showHorizontalCrosshair:mi().bool,showDatumGlyph:mi().bool,showSeriesGlyphs:mi().bool},j7.propTypes={renderTooltip:mi().func.isRequired,renderGlyph:mi().func,snapTooltipToDatumX:mi().bool,snapTooltipToDatumY:mi().bool,showVerticalCrosshair:mi().bool,showHorizontalCrosshair:mi().bool,showDatumGlyph:mi().bool,showSeriesGlyphs:mi().bool};var j9=n(70390);function ke(e){var t=e.children,n=(0,eo.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 eo.createElement(wa.Provider,{value:n},t)}function kt(){return(kt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(t,mE);return mS({},e(n),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:e.tooltipLeft,tooltipTop:e.tooltipTop,tooltipData:e.tooltipData})},[r]),a=(0,eo.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:a}),c=u.tooltipOpen,d=u.tooltipLeft,f=u.tooltipTop,h=u.tooltipData,p=u.updateTooltip,m=u.hideTooltip,g=(0,eo.useRef)(null),v=(0,eo.useRef)(function(e){var t=e.svgPoint,n=e.index,r=e.key,i=e.datum,a=e.distanceX,o=e.distanceY;g.current&&(g.current.cancel(),g.current=null);var l=Math.sqrt(Math.pow(b$(a)?a:1/0,2)+Math.pow(b$(o)?o:1/0,2));p(function(e){var a,o,s,u=e.tooltipData,c=null!=u&&u.nearestDatum&&b$(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!=(a=null==u?void 0:null==(o=u.nearestDatum)?void 0:o.key)?a:"")!==r&&c0&&i>0&&v({width:p,height:i,margin:l})},[v,p,i,l]);var b=wl({source:wr});return(wx({dataKey:"nearest"===(void 0===f?"nearest":f)?wy:wv,onPointerMove:s,onPointerOut:u,onPointerUp:c,onPointerDown:d,allowedSources:km}),v)?null==p||null==i?eo.createElement(j9.Z,null,function(t){return eo.createElement(kg,kh({},e,{width:null==e.width?t.width:e.width,height:null==e.height?t.height:e.height}))}):null==y?eo.createElement(kn,null,eo.createElement(kg,e)):null==x?eo.createElement(ke,null,eo.createElement(kg,e)):p>0&&i>0?eo.createElement("svg",{width:p,height:i,"aria-label":void 0===t?"XYChart":t},r,(void 0===n||n)&&eo.createElement("rect",kh({x:l.left,y:l.top,width:p-l.left-l.right,height:i-l.top-l.bottom,fill:"transparent"},b))):null:m&&g?eo.createElement(kf,{xScale:m,yScale:g,theme:h,initialDimensions:{width:p,height:i,margin:l},horizontal:a},eo.createElement(kg,e)):(console.warn("[@visx/xychart] XYChart: When no DataProvider is available in context, you must pass xScale & yScale config to XYChart."),null)}function kv(e){return eo.createElement(w_,e)}function ky(e){return eo.createElement(wX,e)}function kx(){return(kx=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function kS(e){var t=e.bars,n=(e.horizontal,e.xScale,e.yScale,e.radius),r=e.radiusAll,i=e.radiusTop,a=e.radiusRight,o=e.radiusBottom,l=e.radiusLeft,s=kE(e,kw),u=!!(s.onFocus||s.onBlur);return eo.createElement(eo.Fragment,null,t.map(function(e){var t=e.key,c=kE(e,kj);return null==n?eo.createElement("rect",kk({key:t,className:"visx-bar",tabIndex:u?0:void 0},c,s)):eo.createElement(w9.Z,kk({key:t,className:"visx-bar",tabIndex:u?0:void 0,radius:n,all:r,top:i,right:a,bottom:o,left:l},c,s))}))}function kC(){return(kC=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,k_);return eo.createElement(jm,kO({},n,{colorAccessor:t,BarsComponent:kS}))};function kP(){return(kP=Object.assign?Object.assign.bind():function(e){for(var t=1;tr(e),className:"flex flex-col gap-1",children:[(0,ea.jsx)(fy,{value:"line",children:"Line"}),(0,ea.jsx)(fy,{disabled:p||m,value:"areastack",children:"Area Stack"}),(0,ea.jsx)(fy,{disabled:p||m,value:"barstack",children:"Bar Stack"}),(0,ea.jsx)(fy,{disabled:p,value:"area",children:"Area"}),(0,ea.jsx)(fy,{disabled:p,value:"bargroup",children:"Bar Group"})]})]}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ea.jsx)(nw,{weight:"semibold",children:"Stack series offset"}),(0,ea.jsxs)(fx,{value:s,onValueChange:e=>u(e),className:"flex flex-col gap-1",children:[(0,ea.jsxs)(fy,{disabled:!l,value:"none",children:["None",(0,ea.jsx)(hs,{children:"zero-baseline"})]}),(0,ea.jsxs)(fy,{disabled:!l,value:"diverging",children:["Diverging",(0,ea.jsx)(hs,{children:"non zero-baseline"})]}),(0,ea.jsxs)(fy,{disabled:!l,value:"expand",children:["Expand",(0,ea.jsx)(hs,{children:"values sum to 1"})]}),(0,ea.jsxs)(fy,{disabled:!l,value:"wiggle",children:["Wiggle",(0,ea.jsx)(hs,{children:"stream graph"})]})]})]}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ea.jsx)(nw,{weight:"semibold",children:"Curve shape"}),(0,ea.jsxs)(fx,{value:i,onValueChange:e=>a(e),className:"flex flex-col gap-1",children:[(0,ea.jsx)(fy,{disabled:!o,value:"linear",children:"Linear"}),(0,ea.jsx)(fy,{disabled:!o,value:"cardinal",children:"Cardinal"}),(0,ea.jsx)(fy,{disabled:!o,value:"step",children:"Step"})]})]}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ea.jsx)(nw,{weight:"semibold",children:"Axes"}),(0,ea.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,ea.jsxs)(fx,{value:c,onValueChange:e=>d(e),className:"flex flex-col gap-1",children:[(0,ea.jsx)(fy,{value:"bottom",children:"Bottom"}),(0,ea.jsx)(fy,{value:"top",children:"Top"})]}),(0,ea.jsxs)(fx,{value:f,onValueChange:e=>h(e),className:"flex flex-col gap-2",children:[(0,ea.jsx)(fy,{value:"left",children:"Left"}),(0,ea.jsx)(fy,{value:"right",children:"Right"})]})]})]})]})})}let kQ=(0,eo.forwardRef)((e,t)=>{let{className:n}=e;return(0,ea.jsxs)("div",{ref:t,className:(0,eW.cx)("flex gap-1 items-center",n),children:[(0,ea.jsx)(k0,{}),(0,ea.jsx)(k0,{}),(0,ea.jsx)(k0,{})]})});function k0(){return(0,ea.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 k1(e){let{id:t,height:n,data:r,config:i,actionsLeft:a,isLoading:o,actionsRight:l,emptyState:s,variant:u="panel",allowConfiguration:c=!0}=e,d=function(e,t,n){let[r,i]=(0,eo.useState)(!(0,hi.Tb)()&&!n.disableAnimations),{resolvedTheme:a}=(0,p6.F)(),o=(0,eo.useMemo)(()=>"dark"===a?vB:vV,[a]),[l,s]=(0,eo.useState)("center"),[u,c]=(0,eo.useState)([!1,!1]),[d,f]=u,[h,p]=(0,kG.Z)("".concat(e,"/xAxisOrientation"),{defaultValue:"bottom"}),[m,g]=(0,kG.Z)("".concat(e,"/yAxisOrientation"),{defaultValue:"right"}),[v,y]=(0,eo.useState)(!0),[x,b]=(0,eo.useState)(!0),[w,j]=(0,eo.useState)(!1),[k,E]=(0,eo.useState)(!0),[S,C]=(0,eo.useState)(!0),[M,_]=(0,kG.Z)("".concat(e,"/chartType"),{defaultValue:n.chartType||"areastack"}),[O,T]=(0,kG.Z)("".concat(e,"/curveType"),{defaultValue:n.curveType||"linear"}),[P,A]=(0,kG.Z)("".concat(e,"/stackOffset"),{defaultValue:n.stackOffset||"none"}),N=(0,eo.useMemo)(()=>n.chartType,[]),R=(0,eo.useMemo)(()=>n.curveType,[]),D=(0,eo.useMemo)(()=>n.stackOffset,[]),L=["line","area","areastack"].includes(M),Z=["barstack","areastack"].includes(M),F=o.xyChartTheme.gridStyles.stroke,[z,V]=(0,eo.useState)(!1),[B,I]=(0,eo.useState)("star"),H=(0,eo.useCallback)(e=>{let{x:t,y:n,size:r,color:i,onPointerMove:a,onPointerOut:o,onPointerUp:l,isNearestDatum:s}=e,u={onPointerMove:a,onPointerOut:o,onPointerUp:l};return"star"===B?(0,ea.jsx)(vk,{left:t,top:n,stroke:F,fill:i,size:10*r,...u}):"circle"===B?(0,ea.jsx)(vC,{left:t,top:n,stroke:F,fill:i,r:r,...u}):"cross"===B?(0,ea.jsx)(vT,{left:t,top:n,stroke:F,fill:i,size:10*r,...u}):(0,ea.jsx)("text",{x:t,y:n,dx:"-0.75em",dy:"0.25em",fontSize:14,...u,children:s?"\uD83C\uDF4D":"\uD83C\uDF4C"})},[B,F]),U=(0,eo.useMemo)(()=>{if(t.sort((e,t)=>e.timestamp>t.timestamp?1:-1),0===t.length)return[];let e=t[t.length-1];return"barstack"!==M&&"bargroup"!==M?[...t,{...e,timestamp:e.timestamp+kV(1)}]:t},[M,t]),W=(0,eo.useMemo)(()=>{if(U.length<2)return 0;let e=[U[0].timestamp,U[U.length-1].timestamp],t=new Date().getTime();return t>e[0]&&tObject.keys((0,kF.Z)(t[0],"timestamp")),[t]),$=(0,eo.useMemo)(()=>n.enabledGraph||q,[q,n]),K=(0,eo.useMemo)(()=>n.enabledTip||q,[q,n]),Y=(0,eo.useMemo)(()=>({x:q.reduce((e,t)=>({...e,[t]:e=>e.timestamp}),{}),y:q.reduce((e,t)=>({...e,[t]:e=>e[t]}),{}),date:e=>e.timestamp}),[q]);return{id:e,accessors:Y,animationTrajectory:l,config:n,scales:(0,eo.useMemo)(()=>({x:{type:"band",paddingInner:L?1:.3},y:{type:"linear"}}),[L]),data:U,curve:(0,eo.useMemo)(()=>"cardinal"===O&&vP.ZP||"step"===O&&ga.ZP||vA.Z,[O]),chartData:t,numTicks:4,isLine:L,isStack:Z,todayOffset:W,initialChartType:N,initialCurveType:R,initialStackOffset:D,chartType:M,curveType:O,keys:q,enabledGraph:$,enabledTip:K,renderBarGroup:"bargroup"===M,renderBarStack:"barstack"===M,enableTooltipGlyph:z,renderTooltipGlyph:H,renderAreaSeries:"area"===M,renderAreaStack:"areastack"===M,renderLineSeries:"line"===M,sharedTooltip:S,showGridColumns:f,showGridRows:d,showHorizontalCrosshair:w,showTooltip:v,showVerticalCrosshair:x,snapTooltipToDatum:!Z&&k,stackOffset:P,theme:o,margin:(0,eo.useMemo)(()=>({top:30,bottom:"top"===h?0:20,right:"right"===m?60:0,left:"left"===m?60:0}),[h,m]),xAxisOrientation:h,yAxisOrientation:m,setUseAnimatedComponents:i,setAnimationTrajectory:s,setGridProps:c,setXAxisOrientation:p,setYAxisOrientation:g,setShowTooltip:y,setShowVerticalCrosshair:b,setShowHorizontalCrosshair:j,setSnapTooltipToDatum:E,setSharedTooltip:C,setChartType:_,setCurveType:T,setStackOffset:A,setEnableTooltipGlyph:V,setTooltipGlyphComponent:I,...r?{Annotation:b2,AreaSeries:wT,AreaStack:wJ,Axis:w3,BarGroup:jd,BarSeries:jy,BarStack:jk,GlyphSeries:j_,Grid:jL,LineSeries:jI,Tooltip:j7,XYChart:kg}:{AreaSeries:kv,AreaStack:ky,Axis:kb,BarGroup:kM,BarSeries:kT,BarStack:kA,Grid:kL,LineSeries:kZ,Tooltip:j7,XYChart:kg}}}(t,r,i),f=(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsxs)("div",{className:"flex gap-2 absolute top-3 right-4",children:[l,"panel"===u&&c&&(0,ea.jsx)(kJ,{...d})]}),(0,ea.jsx)("div",{className:"flex gap-2 absolute top-3 left-4",children:a}),(0,ea.jsx)(vh,{children:e=>{let{width:t,height:n}=e;return o?(0,ea.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,ea.jsx)(kQ,{className:"scale-150"})}):0===r.length&&s?s:(0,ea.jsx)(vm,{...d,width:t,height:n})}})]});return"panel"===u?(0,ea.jsx)(nE,{className:"relative p-px",style:{height:n},children:f}):(0,ea.jsx)("div",{className:"relative p-px",style:{height:n},children:f})}var k2="text/plain",k4=e=>{};(function(){(console.warn||console.log).apply(console,arguments)}).bind("[clipboard-polyfill]");var k3="undefined"==typeof window?void 0:window,k5="undefined"==typeof globalThis?void 0:globalThis,k6=null!=(H=null==k3?void 0:k3.Promise)?H:null==k5?void 0:k5.Promise,k8="undefined"==typeof navigator?void 0:navigator,k7=null==k8?void 0:k8.clipboard;null==(U=null==k7?void 0:k7.read)||U.bind(k7),null==(W=null==k7?void 0:k7.readText)||W.bind(k7);var k9=null==(q=null==k7?void 0:k7.write)?void 0:q.bind(k7),Ee=null==($=null==k7?void 0:k7.writeText)?void 0:$.bind(k7),Et=null==k3?void 0:k3.ClipboardItem,En=function(){if(!k6)throw Error("No `Promise` implementation available for `clipboard-polyfill`. Consider using: https://github.com/lgarron/clipboard-polyfill#flat-file-version-with-promise-included");return k6}();function Er(e,t,n){for(var r in k4("listener called"),e.success=!0,t){var i=t[r],a=n.clipboardData;a.setData(r,i),r===k2&&a.getData(r)!==i&&(k4("setting text/plain failed"),e.success=!1)}n.preventDefault()}function Ei(e){var t={success:!1},n=Er.bind(this,t,e);document.addEventListener("copy",n);try{document.execCommand("copy")}finally{document.removeEventListener("copy",n)}return t.success}function Ea(e,t){Eo(e);var n=Ei(t);return El(),n}function Eo(e){var t=document.getSelection();if(t){var n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}}function El(){var e=document.getSelection();e&&e.removeAllRanges()}function Es(e){var t,n,r,i,a,o,l,s=k2 in e;if("undefined"==typeof ClipboardEvent&&void 0!==(null==k3?void 0:k3.clipboardData)&&void 0!==(null==k3?void 0:k3.clipboardData.setData)){if(!s)throw Error("No `text/plain` value was specified.");if(function(e){if(!k3.clipboardData)return!1;var t=k3.clipboardData.setData("Text",e);return t&&k4("writeTextIE worked"),t}(e[k2]))return!0;throw Error("Copying failed, possibly because the user rejected it.")}return Ei(e)?(k4("regular execCopy worked"),!0):navigator.userAgent.indexOf("Edge")>-1?(k4('UA "Edge" => assuming success'),!0):Ea(document.body,e)?(k4("copyUsingTempSelection worked"),!0):((o=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),o.textContent="temporary element",document.body.appendChild(o),l=Ea(o,e),document.body.removeChild(o),l)?(k4("copyUsingTempElem worked"),!0):(t=e[k2],k4("copyTextUsingDOM"),(n=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),r=n,n.attachShadow&&(k4("Using shadow DOM."),r=n.attachShadow({mode:"open"})),(i=document.createElement("span")).innerText=t,r.appendChild(i),document.body.appendChild(n),Eo(i),a=document.execCommand("copy"),El(),document.body.removeChild(n),!!a&&(k4("copyTextUsingDOM worked"),!0))}function Eu(e,t){var n=[];for(var r in e){var i=e[r];n.push(t(i))}return En.all(n).then(t=>{for(var n={},r=0;rEn.resolve(!0),Ef=En.resolve(!1);function Eh(e){return new En((t,n)=>{try{t(e())}catch(e){n(e)}})}function Ep(e){return Eh(()=>Ee?(k4("Using `navigator.clipboard.writeText()`."),Ee(e).catch(Em)):En.resolve(Em(e)))}function Em(e){var t;if(!Es(((t={})[k2]=e,t)))throw Error("writeText() failed")}function Eg(e,t){for(var n in e)if(-1!==e[n].types.indexOf(t))return!0;return!1}function Ev(e){return Eu(e.types,function(t){return e.getType(t)}).then(t=>new Promise((n,r)=>{var i={};e.presentationStyle&&(i.presentationStyle=e.presentationStyle),Et?n(new Et(t,i)):r("window.ClipboardItem is not defined")}))}let Ey={data:""},Ex=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Ey,Eb=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Ew=/\/\*[^]*?\*\/|\s\s+|\n/g,Ej=(e,t)=>{let n="",r="",i="";for(let a in e){let o=e[a];"@"==a[0]?"i"==a[1]?n=a+" "+o+";":r+="f"==a[1]?Ej(o,a):a+"{"+Ej(o,"k"==a[1]?"":t)+"}":"object"==typeof o?r+=Ej(o,t?t.replace(/([^,])+/g,e=>a.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):a):null!=o&&(a=a.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Ej.p?Ej.p(a,o):a+":"+o+";")}return n+(t&&i?t+"{"+i+"}":i)+r},Ek={},EE=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+EE(e[n]);return t}return e},ES=(e,t,n,r,i)=>{var a;let o=EE(e),l=Ek[o]||(Ek[o]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(o));if(!Ek[l]){let t=o!==e?e:(e=>{let t,n=[{}];for(;t=Eb.exec(e.replace(Ew,""));)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);Ek[l]=Ej(i?{["@keyframes "+l]:t}:t,n?"":"."+l)}return a=Ek[l],-1==t.data.indexOf(a)&&(t.data=r?a+t.data:t.data+a),l},EC=(e,t,n)=>e.reduce((e,r,i)=>{let a=t[i];if(a&&a.call){let e=a(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;a=t?"."+t:e&&"object"==typeof e?e.props?"":Ej(e,""):!1===e?"":e}return e+r+(null==a?"":a)},"");function EM(e){let t=this||{},n=e.call?e(t.p):e;return ES(n.unshift?n.raw?EC(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,Ex(t.target),t.g,t.o,t.k)}EM.bind({g:1});let E_,EO,ET,EP=EM.bind({k:1});function EA(e,t){let n=this||{};return function(){let r=arguments;function i(a,o){let l=Object.assign({},a),s=l.className||i.className;n.p=Object.assign({theme:EO&&EO()},l),n.o=/ *go\d+/.test(s),l.className=EM.apply(n,r)+(s?" "+s:""),t&&(l.ref=o);let u=e;return e[0]&&(u=l.as||e,delete l.as),ET&&u[0]&&ET(l),E_(u,l)}return t?t(i):i}}function EN(){return(EN=Object.assign||function(e){for(var t=1;t-1&&EI.splice(e,1)}},[n]);var i=n.toasts.map(function(t){var n,r,i;return EN({},e,e[t.type],t,{duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==(r=e)?void 0:r.duration)||EW[t.type],style:EN({},e.style,null==(i=e[t.type])?void 0:i.style,t.style)})});return EN({},n,{toasts:i})},E$=function(e){return function(t,n){var r,i=(void 0===(r=e)&&(r="blank"),EN({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)||EL()}));return EU({type:K.UPSERT_TOAST,toast:i}),i.id}},EK=function(e,t){return E$("blank")(e,t)};EK.error=E$("error"),EK.success=E$("success"),EK.loading=E$("loading"),EK.custom=E$("custom"),EK.dismiss=function(e){EU({type:K.DISMISS_TOAST,toastId:e})},EK.remove=function(e){return EU({type:K.REMOVE_TOAST,toastId:e})},EK.promise=function(e,t,n){var r=EK.loading(t.loading,EN({},n,null==n?void 0:n.loading));return e.then(function(e){return EK.success(ED(t.success,e),EN({id:r},n,null==n?void 0:n.success)),e}).catch(function(e){EK.error(ED(t.error,e),EN({id:r},n,null==n?void 0:n.error))}),e};var EY=function(e){var t=Eq(e),n=t.toasts,r=t.pausedAt;(0,eo.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&&EK.dismiss(t.id);return}return setTimeout(function(){return EK.dismiss(t.id)},n)}});return function(){t.forEach(function(e){return e&&clearTimeout(e)})}}},[n,r]);var i=(0,eo.useMemo)(function(){return{startPause:function(){EU({type:K.START_PAUSE,time:Date.now()})},endPause:function(){r&&EU({type:K.END_PAUSE,time:Date.now()})},updateHeight:function(e,t){return EU({type:K.UPDATE_TOAST,toast:{id:e,height:t}})},calculateOffset:function(e,t){var r,i=t||{},a=i.reverseOrder,o=i.gutter,l=void 0===o?8:o,s=i.defaultPosition,u=n.filter(function(t){return(t.position||s)===(e.position||s)&&t.height}),c=u.findIndex(function(t){return t.id===e.id}),d=u.filter(function(e,t){return t * {\n pointer-events: auto;\n }\n"]);return Sx=function(){return e},e}b=eo.createElement,Ej.p=void 0,E_=b,EO=void 0,ET=void 0;var Sb=function(e,t){var n=e.includes("top"),r=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return EN({left:0,right:0,display:"flex",position:"absolute",transition:EZ()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY("+t*(n?1:-1)+"px)"},n?{top:0}:{bottom:0},r)},Sw=EM(Sx()),Sj=function(e){var t=e.reverseOrder,n=e.position,r=void 0===n?"top-center":n,i=e.toastOptions,a=e.gutter,o=e.children,l=e.containerStyle,s=e.containerClassName,u=EY(i),c=u.toasts,d=u.handlers;return(0,eo.createElement)("div",{style:EN({position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none"},l),className:s,onMouseEnter:d.startPause,onMouseLeave:d.endPause},c.map(function(e){var n,i=e.position||r,l=Sb(i,d.calculateOffset(e,{reverseOrder:t,gutter:a,defaultPosition:r})),s=e.height?void 0:(n=function(t){d.updateHeight(e.id,t.height)},function(e){e&&setTimeout(function(){n(e.getBoundingClientRect())})});return(0,eo.createElement)("div",{ref:s,className:e.visible?Sw:"",key:e.id,style:l},"custom"===e.type?ED(e.message,e):o?o(e):(0,eo.createElement)(Sy,{toast:e,position:i}))}))};function Sk(e){let{icon:t,title:n,body:r,toastId:i}=e;return(0,ea.jsxs)("div",{"data-testid":"toasts",className:"flex flex-col overflow-hidden",children:[(0,ea.jsxs)("div",{className:"flex items-center gap-2 pt-1.5 pb-1 px-1 overflow-hidden",children:[t&&(0,ea.jsx)(nw,{className:"flex items-center",color:"subtle",children:t}),(0,ea.jsx)(sM,{content:n,children:(0,ea.jsx)(nw,{ellipsis:!0,className:"flex-1",children:n})}),(0,ea.jsx)("div",{className:"flex items-center pl-1",children:(0,ea.jsx)(sO,{icon:"hover",size:"none",onClick:e=>{EK.dismiss(i)},children:(0,ea.jsx)(sT.PcV,{})})})]}),r&&(0,ea.jsx)("div",{className:"pb-1",children:(0,ea.jsx)(uS,{children:(0,ea.jsx)("div",{className:"max-w-sm px-1 max-h-20",children:(0,ea.jsx)(nw,{color:"subtle",size:"14",children:r})})})})]})}let SE=e=>{let{title:t,body:n,icon:r,options:i={}}=e;EK(e=>(0,ea.jsx)(Sk,{toastId:e.id,title:t,body:n,icon:r}),SM(i))};function SS(e){let{title:t,body:n,options:r}=e;SE({title:t,body:n,icon:(0,ea.jsx)(sT.yar,{className:"text-green-600"}),options:r})}function SC(e){let{title:t,body:n,options:r}=e;SE({title:t,body:n,icon:(0,ea.jsx)(sT.T80,{className:"text-red-600"}),options:r})}function SM(){let{className:e,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{position:"top-center",duration:6e3,className:(0,eW.cx)(nk(),"overflow-hidden","!max-w-[800px]","[&>div]:overflow-hidden","!p-0","z-50",e),success:{icon:(0,ea.jsx)("div",{className:"!flex-none w-5",children:(0,ea.jsx)(sT.tEK,{className:"w-5 text-green-600"})})},error:{icon:(0,ea.jsx)("div",{className:"!flex-none w-5",children:(0,ea.jsx)(sT.Jsc,{className:"w-5 text-red-600"})})},...t}}function S_(){return(0,ea.jsx)(Sj,{toastOptions:SM(),containerStyle:{zIndex:20}})}let SO=(e,t)=>{SE({title:t?"Copied ".concat(t," to clipboard"):"Copied to clipboard",icon:(0,ea.jsx)(sT.vtB,{})}),Ep(e)},ST=(e,t,n)=>{var r;SE({title:n?"Copied ".concat(n," to clipboard"):"Copied to clipboard",icon:(0,ea.jsx)(sT.vtB,{})}),r=[new ClipboardItem({[t]:e})],Eh(()=>k9&&Et?(k4("Using `navigator.clipboard.write()`."),En.all(r.map(Ev)).then(e=>k9(e).then(Ed).catch(e=>{if(!Eg(r,k2)&&!Eg(r,"text/html"))throw e;return Ef}))):Ef).then(e=>{var t;return e?Ec:(Eg(r,k2)||k4("clipboard.write() was called without a `text/plain` data type. On some platforms, this may result in an empty clipboard. Call suppressWarnings() to suppress this warning."),Eu((t=r[0]).types,function(e){return t.getType(e).then(e=>new En((t,n)=>{var r=new FileReader;r.addEventListener("load",()=>{var e=r.result;"string"==typeof e?t(e):n("could not convert blob to string")}),r.readAsText(e)}))}).then(e=>{if(!Es(e))throw Error("write() failed")}))})},SP=e=>{let{text:t,title:n,body:r,icon:i,options:a}=e;SE({title:n,body:r,icon:i||(0,ea.jsx)(sT.vtB,{}),options:a}),Ep(t)};function SA(e,t){return e?t&&e.length>t?"".concat(e.slice(0,t),"..."):"".concat(e.slice(0,t)):""}function SN(e){return(e||"").replace(/^addr:/,"").replace(/^txid:/,"").replace(/^fcid:/,"").replace(/^h:/,"").replace(/^scoid:/,"").replace(/^sfoid:/,"").replace(/^key:/,"")}function SR(e,t,n){return t?"".concat(e," ").concat(SA(t,n)):"".concat(e)}function SD(e){let{value:t,displayValue:n,type:r,label:i,href:a,maxLength:o,size:l,scaleSize:s,weight:u,font:c,color:d="contrast",className:f,siascanUrl:h,contextMenu:p}=e,m=i||(0,vt.uV)(r),g=o||(0,vt.uF)(r),v=SN(t),y=n||r&&(0,vt.Lu)(r,v,g)||(0,vt.mj)(v,g);return(0,ea.jsxs)("div",{className:(0,eW.cx)("flex items-center",f),children:[a?(0,ea.jsx)(dx,{href:a,underline:"hover",size:l,scaleSize:s,color:d,weight:u,font:c,ellipsis:!0,children:y}):(0,ea.jsx)(nw,{size:l,scaleSize:s,color:d,weight:u,font:c,ellipsis:!0,children:y}),(0,ea.jsx)("div",{className:"ml-1 flex items-center",children:p||(0,ea.jsx)(SL,{cleanValue:v,label:m,size:l,siascanUrl:h,type:r})})]})}function SL(e){let{size:t,cleanValue:n,label:r,siascanUrl:i,type:a}=e;return(0,ea.jsxs)(dt,{trigger:(0,ea.jsx)(sO,{size:"none",variant:"ghost",children:(0,ea.jsx)(sT.EMN,{className:"10"===t?"scale-75":"scale-90"})}),contentProps:{align:"end"},children:[(0,ea.jsxs)(dn,{onSelect:e=>{SO(n,r)},onClick:e=>{e.stopPropagation()},children:[(0,ea.jsx)(di,{children:(0,ea.jsx)(sT.olJ,{})}),"Copy to clipboard"]}),i&&a&&(0,vt.Lg)(a)&&(0,ea.jsx)(dx,{target:"_blank",href:(0,vt.jH)(i,a,n),className:"block w-full",underline:"none",children:(0,ea.jsxs)(dn,{onClick:e=>{e.stopPropagation()},children:[(0,ea.jsx)(di,{children:(0,ea.jsx)(sT.V8Q,{})}),"View on Siascan"]})})]})}function SZ(e){let{value:t,displayValue:n,type:r,href:i,maxLength:a,size:o,scaleSize:l,color:s="contrast",menu:u,className:c}=e,d=a||(0,vt.uF)(r),f=SN(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,ea.jsxs)("div",{className:(0,eW.cx)("flex items-center",c),children:[i?(0,ea.jsx)(dx,{href:i,underline:"hover",size:o,scaleSize:l,color:s,ellipsis:!0,children:p}):(0,ea.jsx)(nw,{size:o,scaleSize:l,color:s,ellipsis:!0,children:p}),(0,ea.jsx)("div",{className:"ml-1 flex items-center",children:u})]})}function SF(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:a="change"}=e,o=(0,vt.yF)(String(t),{units:"SF"});return(0,ea.jsx)(sM,{content:(i?"".concat(i," "):"")+o,children:(0,ea.jsxs)(nw,{size:n,scaleSize:r,weight:"medium",font:"mono",color:"change"===a?t>0?"green":t<0?"red":"subtle":"contrast",children:["change"===a&&t>0?"+":"",o]})})}function Sz(e){let{value:t,size:n,scaleSize:r,tooltip:i="",tipSide:a,font:o="mono",variant:l="change",color:s,fixed:u=3,dynamicUnits:c=!0,hastingUnits:d=!0,extendedSuffix:f,showTooltip:h=!0}=e,p=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",m=s||("change"===l?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast"),g=(0,ea.jsxs)(nw,{size:n,scaleSize:r,weight:"medium",font:o,ellipsis:!0,color:m,children:["change"===l?"".concat(p).concat((0,vt.Vz)(t.absoluteValue(),{fixed:u,dynamicUnits:c})):(0,vt.Vz)(t,{fixed:u,dynamicUnits:c,hastingUnits:d}),f||""]});return h?(0,ea.jsx)(sM,{content:(i?"".concat(i," "):"")+(0,vt.Vz)(t,{fixed:16,dynamicUnits:!1}),side:a,children:g}):g}function SV(e){let{sc:t,size:n,scaleSize:r,color:i,tooltip:a="",variant:o="change",fixed:l,font:s="mono",fixedTip:u=20,showTooltip:c=!0,tipSide:d,extendedSuffix:f}=e,h=(0,ha.BW)(),{settings:{currency:p}}=(0,hi.Hv)(),m=t.isZero()?"":t.isGreaterThan(0)&&"change"===o?"+":t.isLessThan(0)?"-":"",g=i||("change"===o?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast");if(!h.data)return null;let v=new(he())(h.data.rates.sc[p.id]||1).times(t).div(1e24),y=void 0!==l?l:p.fixed,x=(0,ea.jsx)(nw,{size:n,scaleSize:r,weight:"medium",font:s,ellipsis:!0,color:g,children:"".concat(m).concat(p.prefix).concat(SB(v.absoluteValue(),y)).concat(f||"")});return c?(0,ea.jsx)(sM,{side:d,content:(a?"".concat(a," "):"")+"".concat(m).concat(p.prefix).concat(SB(v.absoluteValue(),u)).concat(f||""),children:x}):x}function SB(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 SI(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:a="change",fixed:o=3,fixedFiat:l,fixedTipFiat:s,font:u="mono",tipSide:c,dynamicUnits:d=!0,hastingUnits:f=!0,extendedSuffix:h,showTooltip:p=!0,displayBoth:m=!1,displayBothDirection:g="column"}=e,{settings:{currencyDisplay:v}}=(0,hi.Hv)(),y=(0,ha.BW)(),x=(0,eo.useMemo)(()=>(0,ea.jsx)(Sz,{value:t,size:n,color:m&&"row"===g&&"bothPreferFiat"===v?"subtle":void 0,scaleSize:r,tooltip:i,variant:a,fixed:o,font:u,dynamicUnits:d,hastingUnits:f,extendedSuffix:h,showTooltip:p,tipSide:c}),[t,n,r,i,a,o,u,d,f,h,p,c,v,m,g]),b=(0,eo.useMemo)(()=>(0,ea.jsx)(SV,{sc:t,size:n,color:m&&"row"===g&&"bothPreferSc"===v?"subtle":void 0,scaleSize:r,tooltip:i,variant:a,fixed:l,fixedTip:s,font:u,dynamicUnits:d,hastingUnits:f,extendedSuffix:h,showTooltip:p,tipSide:c}),[t,n,r,i,a,u,l,s,d,f,h,p,c,v,m,g]);return"sc"!==v&&y.data?"fiat"===v?b:"bothPreferSc"===v?m?(0,ea.jsxs)("div",{className:"column"===g?"flex flex-col items-end":"flex gap-1",children:[x,b]}):x:"bothPreferFiat"===v?m?(0,ea.jsxs)("div",{className:"column"===g?"flex flex-col items-end":"flex gap-1",children:[b,x]}):b:x:x}function SH(e){let{value:t,size:n="14",weight:r="semibold",tooltip:i="",tipSide:a,variant:o="change",color:l,format:s}=e,u=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",c="change"===o?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast";return(0,ea.jsx)(sM,{side:a,content:(i?"".concat(i," "):"")+s(t),children:(0,ea.jsx)(nw,{size:n,weight:r,font:"mono",ellipsis:!0,color:l||c,children:"change"===o?"".concat(u).concat(s(t.absoluteValue())):s(t)})})}var SU=n(19510),SW=n(89930),Sq=n(62875),S$=1/0,SK=function(e){var t,n=(t=e)?(t=(0,Sq.Z)(t))===S$||t===-S$?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0,r=n%1;return n==n?r?n-r:n:0},SY=Math.min,SX=function(e,t){if((e=SK(e))<1||e>9007199254740991)return[];var n,r=4294967295,i=SY(e,4294967295);t="function"==typeof(n=t)?n:SW.Z,e-=4294967295;for(var a=(0,SU.Z)(i,t);++r(0,ea.jsxs)("div",{className:(0,eW.cx)("relative flex gap-4 p-3.5",(0,eW.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:[(0,ea.jsx)(hm,{className:"w-[60px] h-[50px]"}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,ea.jsx)(hm,{className:"w-[90%] h-[20px]"}),(0,ea.jsx)(hm,{className:"w-[140px] h-[14px]"})]})]},e))})}var SJ=n(29193),SQ=n(34864);function S0(e){let{type:t,label:n,initials:r,href:i,src:a,shape:o}=e,l=(0,ea.jsx)(sU,{interactive:!!i,fallback:r||t&&(t||n||"").split(" ").map(e=>e.charAt(0).toUpperCase).join(""),src:a,shape:o||(t&&"address"!==t&&"block"!==t?"circle":"square")}),s=i&&(0,ea.jsx)(dx,{href:i,underline:"none",children:l})||l;return t?(0,ea.jsx)(sM,{content:n||(0,vt.jF)(t),children:(0,ea.jsx)("div",{className:"",children:s})}):s}function S1(e){let{label:t,type:n,avatar:r,avatarShape:i,initials:a,href:o,onClick:l,children:s}=e;return(0,ea.jsxs)("div",{className:(0,eW.cx)("flex gap-4 p-4",(0,eW.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),onClick:l,children:[(0,ea.jsx)(S0,{label:t,type:n,shape:i,src:r,initials:a||(n||t||"").split(" ").map(e=>e.charAt(0).toUpperCase()).join(""),href:o}),s]})}function S2(e){let t=e.sc,n=e.sf,r=e.hash&&(0,ea.jsx)(SD,{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&&(0,vt.pX)(e.txType)||(0,vt.jF)(e.type),a=!function(e){if(!e)return!1;try{return new URL(e),!0}catch(e){return!1}}(i)?(0,SQ.Z)(i):i;return(0,ea.jsx)(S1,{...e,children:(0,ea.jsxs)("div",{className:"flex flex-col items-center gap-1 w-full min-w-0",children:[(0,ea.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,ea.jsxs)("div",{className:"flex gap-2 items-center min-w-0",children:[e.height&&e.blockHref&&(0,ea.jsx)(nw,{color:"subtle",weight:"semibold",children:(0,ea.jsx)(dx,{href:e.blockHref,underline:"none",children:(0,vt.yF)(e.height)})}),a?(0,ea.jsx)(sM,{content:a,children:(0,ea.jsx)(nw,{ellipsis:!0,weight:"medium",children:a})}):(0,ea.jsx)(nw,{ellipsis:!0,weight:"medium",children:r})]}),(0,ea.jsx)("div",{className:"flex-1"}),(0,ea.jsxs)("div",{className:"flex items-center",children:[!!t&&(0,ea.jsx)(SI,{variant:e.scVariant,value:t}),!!n&&(0,ea.jsx)(SF,{variant:e.sfVariant,value:n})]})]}),(0,ea.jsxs)("div",{className:"flex justify-between w-full",children:[(0,ea.jsx)("div",{className:"flex gap-1",children:!!a&&r}),(0,ea.jsxs)("div",{className:"flex gap-1 items-center",children:[e.unconfirmed?(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsx)(nw,{color:"verySubtle",children:"unconfirmed"}),e.timestamp?(0,ea.jsx)(nw,{color:"verySubtle",children:(0,ea.jsx)(sT.Bpb,{className:"scale-50"})}):null]}):null,e.timestamp&&(0,ea.jsx)(nw,{color:"subtle",children:(0,SJ.Z)(new Date(e.timestamp),new Date,{addSuffix:!0})})]})]})]})})}function S4(e){let{title:t,actions:n,dataset:r,isLoading:i,emptyState:a,emptyMessage:o,skeletonCount:l=10,children:s}=e,u=t||n,c="emptyState";return!i||(null==r?void 0:r.length)||s||(c="skeleton"),((null==r?void 0:r.length)||s)&&(c="currentData"),(0,ea.jsx)(nE,{children:(0,ea.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[u&&(0,ea.jsxs)("div",{className:"flex items-center p-4 border-b border-gray-200 dark:border-graydark-300",children:[t&&(0,ea.jsx)(du,{size:"20",font:"mono",ellipsis:!0,children:t}),(0,ea.jsx)("div",{className:"flex-1"}),n]}),(0,ea.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:["emptyState"===c&&(a||(0,ea.jsx)("div",{className:(0,eW.cx)("flex items-center justify-center h-[84px]",(0,eW.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:(0,ea.jsx)(nw,{size:"18",color:"subtle",children:o||"No results"})})),"currentData"===c&&(s||(null==r?void 0:r.map((e,t)=>(0,ea.jsx)(S2,{...e},e.hash||e.label||t)))),"skeleton"===c&&(0,ea.jsx)(SG,{skeletonCount:l})]})]})})}function S3(e){let{label:t,entityType:n,entityValue:r,actions:i,href:a,value:o,extendedSuffix:l,hash:s,sc:u,scFixed:c=2,sf:d,comment:f,commentTip:h,scaleSize:p="40",isLoading:m,onClick:g}=e,v=(0,ea.jsx)(nw,{color:"subtle",size:"12",className:"h-6",children:f});return(0,ea.jsx)(nE,{children:(0,ea.jsx)("div",{className:(0,eW.cx)("flex items-center py-2 px-4 h-full min-w-[250px]",g?"cursor-pointer":""),onClick:g,children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4 flex-wrap items-start w-full",children:[(0,ea.jsxs)("div",{className:"flex relative top-px flex-1 w-full gap-6 items-center justify-between",children:[(0,ea.jsx)(nw,{color:"subtle",ellipsis:!0,scaleSize:"14",children:"string"==typeof t?(0,SQ.Z)(t):t}),i]}),(0,ea.jsxs)("div",{className:"flex flex-col items-end md:items-start gap-2 md:flex-2",children:[m?(0,ea.jsx)(hm,{className:"h-12 w-[150px]"}):(0,ea.jsxs)(ea.Fragment,{children:[void 0!==u&&(0,ea.jsx)(SI,{extendedSuffix:l,scaleSize:p,variant:"value",value:u,fixed:c}),void 0!==d&&(0,ea.jsx)(SF,{scaleSize:p,variant:"value",value:d}),n&&(r?(0,ea.jsx)(SD,{scaleSize:p,label:(0,vt.jF)(n),href:a,value:r,displayValue:"block"===n&&r?Number(r).toLocaleString():r,className:"relative top-0.5"}):(0,ea.jsx)(nw,{font:"mono",weight:"medium",scaleSize:p,children:"-"})),s&&(0,ea.jsx)(SD,{scaleSize:p,label:"hash",value:s}),void 0!==o&&(0,ea.jsx)(nw,{font:"mono",weight:"medium",scaleSize:p,ellipsis:!0,children:o})]}),v?(0,ea.jsx)("div",{className:"mt-1",children:m?(0,ea.jsx)("div",{className:"mt-1 h-6 justify-center",children:(0,ea.jsx)(hm,{className:"h-4 w-[100px]"})}):h?(0,ea.jsx)(sM,{content:h,children:v}):v}):null]})]})})})}function S5(e){let{title:t,actions:n,name:r}=e;return(0,ea.jsxs)("div",{className:"flex gap-0.5 items-center",children:[t?(0,ea.jsx)(dg,{htmlFor:r,noWrap:!0,children:t}):null,n]})}function S6(e){var t;let{form:n,name:r}=e,i=n.formState.errors[r],a=null===(t=n.formState.errors[r])||void 0===t?void 0:t.message;return i?(0,ea.jsx)(nw,{size:"14",color:"red",children:a}):null}function S8(e){let{form:t,title:n,actions:r,name:i,className:a,wrap:o}=e,l=t.formState.errors[i];return n||l?(0,ea.jsxs)("div",{className:(0,eW.cx)("flex justify-between items-center gap-x-4 overflow-hidden",o?"flex-wrap":"",a),children:[(0,ea.jsx)(S5,{name:i,title:n,actions:r}),(0,ea.jsx)(S6,{form:t,name:i})]}):null}function S7(e){let{children:t,...n}=e;return(0,ea.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,ea.jsx)(S8,{...n}),t]})}function S9(e){let{form:t,size:n="medium",variant:r="accent",className:i,children:a}=e;return(0,ea.jsx)(ea.Fragment,{children:(0,ea.jsx)(sO,{className:i,size:n,variant:r,state:t.formState.isSubmitting?"waiting":void 0,type:"submit",children:t.formState.isSubmitting?(0,ea.jsx)(kQ,{}):a})})}function Ce(e){let{formik:t,title:n,name:r,placeholder:i,disabled:a,readOnly:o,autoComplete:l="off",spellCheck:s=!1,tabIndex:u,allowDecimals:c=!1,decimalsLimitFiat:d=3,decimalsLimitSc:f=3,decimalsLimit:h=2,disableGroupSeparators:p=!1,showFiat:m=!0,units:g,type:v,variants:y}=e;return(0,ea.jsx)(Ca,{formik:t,title:n,name:r,children:"number"===v?(0,ea.jsx)(Cn,{formik:t,name:r,units:g,disabled:a,readOnly:o,tabIndex:u,decimalsLimit:h,allowDecimals:c,disableGroupSeparators:p,placeholder:i,variants:y}):"siacoin"===v?(0,ea.jsx)(Cr,{formik:t,name:r,disabled:a,readOnly:o,placeholder:i,tabIndex:u,showFiat:m,decimalsLimitFiat:d,decimalsLimitSc:f,variants:y}):(0,ea.jsx)(Ct,{formik:t,name:r,autoComplete:l,disabled:a,readOnly:o,placeholder:i,tabIndex:u,spellCheck:s,type:v,variants:y})})}function Ct(e){let{formik:t,name:n,placeholder:r,autoComplete:i="off",disabled:a,readOnly:o,tabIndex:l,spellCheck:s=!1,type:u,variants:c}=e;return(0,ea.jsx)(fZ,{id:n,name:n,autoComplete:i,disabled:a,spellCheck:s,placeholder:r,tabIndex:l,readOnly:o||t.isSubmitting,type:u,onBlur:t.handleBlur,onChange:t.handleChange,value:t.values[n]||"",...c})}function Cn(e){let{formik:t,name:n,units:r,disabled:i,readOnly:a,tabIndex:o,placeholder:l,decimalsLimit:s,allowDecimals:u=!1,disableGroupSeparators:c=!1,variants:d}=e;return(0,ea.jsx)(hr,{id:n,units:r,name:n,placeholder:new(he())(l),disabled:i,allowDecimals:u,decimalsLimit:s,disableGroupSeparators:c,readOnly:a||t.isSubmitting,tabIndex:o,onBlur:t.handleBlur,onChange:e=>t.setFieldValue(n,e),value:t.values[n],...d})}function Cr(e){let{formik:t,name:n,disabled:r,readOnly:i,tabIndex:a,placeholder:o,showFiat:l,decimalsLimitFiat:s=3,decimalsLimitSc:u=3,variants:c}=e;return(0,ea.jsx)(hl,{id:n,name:n,disabled:r,showFiat:l,decimalsLimitFiat:s,decimalsLimitSc:u,readOnly:i||t.isSubmitting,tabIndex:a,onFocus:()=>t.setFieldTouched(n),sc:new(he())(t.values[n]),placeholder:new(he())(o),onChange:e=>t.setFieldValue(n,null==e?void 0:e.toString()),...c})}function Ci(e){var t,n;let{formik:r,title:i,name:a,withStatusError:o=!1,className:l}=e,s=r.errors[a]&&r.touched[a]||o&&(null===(t=r.status)||void 0===t?void 0:t.error),u=r.errors[a]||o&&(null===(n=r.status)||void 0===n?void 0:n.error);return(i||s)&&(0,ea.jsxs)("div",{className:(0,eW.cx)("flex justify-between items-center gap-4",l),children:[i?(0,ea.jsx)(dg,{htmlFor:a,children:i}):(0,ea.jsx)("div",{}),s&&(0,ea.jsx)(nw,{size:"14",color:"red",children:u})]})}function Ca(e){let{children:t,...n}=e;return(0,ea.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,ea.jsx)(Ci,{...n}),t]})}function Co(e){var t;let{formik:n,size:r="medium",variant:i="accent",withStatusError:a=!0,children:o}=e;return(0,ea.jsxs)(ea.Fragment,{children:[a&&(null===(t=n.status)||void 0===t?void 0:t.error)&&(0,ea.jsx)(nw,{color:"red",children:n.status.error}),(0,ea.jsx)(sO,{size:r,variant:i,state:n.isSubmitting?"waiting":void 0,type:"submit",children:n.isSubmitting?(0,ea.jsx)(kQ,{}):o})]})}let Cl="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function Cs(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function Cu(e){return"nodeType"in e}function Cc(e){var t,n;return e?Cs(e)?e:Cu(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function Cd(e){let{Document:t}=Cc(e);return e instanceof t}function Cf(e){return!Cs(e)&&e instanceof Cc(e).HTMLElement}function Ch(e){return e instanceof Cc(e).SVGElement}function Cp(e){return e?Cs(e)?e.document:Cu(e)?Cd(e)?e:Cf(e)||Ch(e)?e.ownerDocument:document:document:document}let Cm=Cl?eo.useLayoutEffect:eo.useEffect;function Cg(e){let t=(0,eo.useRef)(e);return Cm(()=>{t.current=e}),(0,eo.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;r{n.current!==e&&(n.current=e)},t),n}function Cy(e,t){let n=(0,eo.useRef)();return(0,eo.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function Cx(e){let t=Cg(e),n=(0,eo.useRef)(null),r=(0,eo.useCallback)(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,r]}function Cb(e){let t=(0,eo.useRef)();return(0,eo.useEffect)(()=>{t.current=e},[e]),t.current}let Cw={};function Cj(e,t){return(0,eo.useMemo)(()=>{if(t)return t;let n=null==Cw[e]?0:Cw[e]+1;return Cw[e]=n,e+"-"+n},[e,t])}function Ck(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i{for(let[r,i]of Object.entries(n)){let n=t[r];null!=n&&(t[r]=n+e*i)}return t},{...t})}}let CE=Ck(1),CS=Ck(-1);function CC(e){if(!e)return!1;let{KeyboardEvent:t}=Cc(e.target);return t&&e instanceof t}function CM(e){if(function(e){if(!e)return!1;let{TouchEvent:t}=Cc(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return"clientX"in e&&"clientY"in e?{x:e.clientX,y:e.clientY}:null}let C_=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[C_.Translate.toString(e),C_.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),CO="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]",CT={display:"none"};function CP(e){let{id:t,value:n}=e;return eo.createElement("div",{id:t,style:CT},n)}function CA(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return eo.createElement("div",{id:t,style:{position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}let CN=(0,eo.createContext)(null),CR={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},CD={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function CL(e){let{announcements:t=CD,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=CR}=e,{announce:a,announcement:o}=function(){let[e,t]=(0,eo.useState)("");return{announce:(0,eo.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),l=Cj("DndLiveRegion"),[s,u]=(0,eo.useState)(!1);if((0,eo.useEffect)(()=>{u(!0)},[]),!function(e){let t=(0,eo.useContext)(CN);(0,eo.useEffect)(()=>{if(!t)throw Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}((0,eo.useMemo)(()=>({onDragStart(e){let{active:n}=e;a(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&a(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;a(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;a(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;a(t.onDragCancel({active:n,over:r}))}}),[a,t])),!s)return null;let c=eo.createElement(eo.Fragment,null,eo.createElement(CP,{id:r,value:i.draggable}),eo.createElement(CA,{id:l,announcement:o}));return n?(0,tD.createPortal)(c,n):c}function CZ(){}function CF(e,t){return(0,eo.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}(w=Y||(Y={})).DragStart="dragStart",w.DragMove="dragMove",w.DragEnd="dragEnd",w.DragCancel="dragCancel",w.DragOver="dragOver",w.RegisterDroppable="registerDroppable",w.SetDroppableDisabled="setDroppableDisabled",w.UnregisterDroppable="unregisterDroppable";let Cz=Object.freeze({x:0,y:0});function CV(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}let CB=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=[];for(let e of r){let{id:r}=e,a=n.get(r);if(a){let n=function(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height);if(r0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(CV)};function CI(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Cz}let CH=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r({...e,top:e.top+1*t.y,bottom:e.bottom+1*t.y,left:e.left+1*t.x,right:e.right+1*t.x}),{...e})};function CU(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}let CW={ignoreTransform:!1};function Cq(e,t){void 0===t&&(t=CW);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=Cc(e).getComputedStyle(e);t&&(n=function(e,t,n){let r=CU(t);if(!r)return e;let{scaleX:i,scaleY:a,x:o,y:l}=r,s=e.left-o-(1-i)*parseFloat(n),u=e.top-l-(1-a)*parseFloat(n.slice(n.indexOf(" ")+1)),c=i?e.width/i:e.width,d=a?e.height/a:e.height;return{width:c,height:d,top:u,right:s+c,bottom:u+d,left:s}}(n,t,r))}let{top:r,left:i,width:a,height:o,bottom:l,right:s}=n;return{top:r,left:i,width:a,height:o,bottom:l,right:s}}function C$(e){return Cq(e,{ignoreTransform:!0})}function CK(e,t){let n=[];return e?function r(i){var a;if(null!=t&&n.length>=t||!i)return n;if(Cd(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!Cf(i)||Ch(i)||n.includes(i))return n;let o=Cc(e).getComputedStyle(i);return(i!==e&&function(e,t){void 0===t&&(t=Cc(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{let r=t[e];return"string"==typeof r&&n.test(r)})}(i,o)&&n.push(i),void 0===(a=o)&&(a=Cc(i).getComputedStyle(i)),"fixed"===a.position)?n:r(i.parentNode)}(e):n}function CY(e){let[t]=CK(e,1);return null!=t?t:null}function CX(e){return Cl&&e?Cs(e)?e:Cu(e)?Cd(e)||e===Cp(e).scrollingElement?window:Cf(e)?e:null:null:null}function CG(e){return Cs(e)?e.scrollX:e.scrollLeft}function CJ(e){return Cs(e)?e.scrollY:e.scrollTop}function CQ(e){return{x:CG(e),y:CJ(e)}}function C0(e){return!!Cl&&!!e&&e===document.scrollingElement}function C1(e){let t={x:0,y:0},n=C0(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y;return{isTop:i,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}(j=X||(X={}))[j.Forward=1]="Forward",j[j.Backward=-1]="Backward";let C2={x:.2,y:.2};function C4(e){return e.reduce((e,t)=>CE(e,CQ(t)),Cz)}function C3(e,t){if(void 0===t&&(t=Cq),!e)return;let{top:n,left:r,bottom:i,right:a}=t(e);CY(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}let C5=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+CG(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+CJ(t),0)}]];class C6{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let n=CK(t),r=C4(n);for(let[t,i,a]of(this.rect={...e},this.width=e.width,this.height=e.height,C5))for(let e of i)Object.defineProperty(this,e,{get:()=>{let i=a(n),o=r[t]-i;return this.rect[e]+o},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class C8{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function C7(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}function C9(e){e.preventDefault()}function Me(e){e.stopPropagation()}(k=G||(G={})).Click="click",k.DragStart="dragstart",k.Keydown="keydown",k.ContextMenu="contextmenu",k.Resize="resize",k.SelectionChange="selectionchange",k.VisibilityChange="visibilitychange",(E=J||(J={})).Space="Space",E.Down="ArrowDown",E.Right="ArrowRight",E.Left="ArrowLeft",E.Up="ArrowUp",E.Esc="Escape",E.Enter="Enter";let Mt={start:[J.Space,J.Enter],cancel:[J.Esc],end:[J.Space,J.Enter]},Mn=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case J.Right:return{...n,x:n.x+25};case J.Left:return{...n,x:n.x-25};case J.Down:return{...n,y:n.y+25};case J.Up:return{...n,y:n.y-25}}};class Mr{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new C8(Cp(t)),this.windowListeners=new C8(Cc(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(G.Resize,this.handleCancel),this.windowListeners.add(G.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(G.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&C3(n),t(Cz)}handleKeyDown(e){if(CC(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:i=Mt,coordinateGetter:a=Mn,scrollBehavior:o="smooth"}=r,{code:l}=e;if(i.end.includes(l)){this.handleEnd(e);return}if(i.cancel.includes(l)){this.handleCancel(e);return}let{collisionRect:s}=n.current,u=s?{x:s.left,y:s.top}:Cz;this.referenceCoordinates||(this.referenceCoordinates=u);let c=a(e,{active:t,context:n.current,currentCoordinates:u});if(c){let t=CS(c,u),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(let n of i){let i=e.code,{isTop:a,isRight:l,isLeft:s,isBottom:u,maxScroll:d,minScroll:f}=C1(n),h=function(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}(n),p={x:Math.min(i===J.Right?h.right-h.width/2:h.right,Math.max(i===J.Right?h.left:h.left+h.width/2,c.x)),y:Math.min(i===J.Down?h.bottom-h.height/2:h.bottom,Math.max(i===J.Down?h.top:h.top+h.height/2,c.y))},m=i===J.Right&&!l||i===J.Left&&!s,g=i===J.Down&&!u||i===J.Up&&!a;if(m&&p.x!==c.x){let e=n.scrollLeft+t.x,a=i===J.Right&&e<=d.x||i===J.Left&&e>=f.x;if(a&&!t.y){n.scrollTo({left:e,behavior:o});return}a?r.x=n.scrollLeft-e:r.x=i===J.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:o});break}if(g&&p.y!==c.y){let e=n.scrollTop+t.y,a=i===J.Down&&e<=d.y||i===J.Up&&e>=f.y;if(a&&!t.x){n.scrollTo({top:e,behavior:o});return}a?r.y=n.scrollTop-e:r.y=i===J.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:o});break}}this.handleMove(e,CE(CS(c,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function Mi(e){return!!(e&&"distance"in e)}function Ma(e){return!!(e&&"delay"in e)}Mr.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=Mt,onActivation:i}=t,{active:a}=n,{code:o}=e.nativeEvent;if(r.start.includes(o)){let t=a.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==i||i({event:e.nativeEvent}),!0)}return!1}}];class Mo{constructor(e,t,n){var r;void 0===n&&(n=function(e){let{EventTarget:t}=Cc(e);return e instanceof t?e:Cp(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:i}=e,{target:a}=i;this.props=e,this.events=t,this.document=Cp(a),this.documentListeners=new C8(this.document),this.listeners=new C8(n),this.windowListeners=new C8(Cc(a)),this.initialCoordinates=null!=(r=CM(i))?r:Cz,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(G.Resize,this.handleCancel),this.windowListeners.add(G.DragStart,C9),this.windowListeners.add(G.VisibilityChange,this.handleCancel),this.windowListeners.add(G.ContextMenu,C9),this.documentListeners.add(G.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Ma(t)){this.timeoutId=setTimeout(this.handleStart,t.delay);return}if(Mi(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(G.Click,Me,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(G.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:n,initialCoordinates:r,props:i}=this,{onMove:a,options:{activationConstraint:o}}=i;if(!r)return;let l=null!=(t=CM(e))?t:Cz,s=CS(r,l);if(!n&&o){if(Mi(o)){if(null!=o.tolerance&&C7(s,o.tolerance))return this.handleCancel();if(C7(s,o.distance))return this.handleStart()}return Ma(o)&&C7(s,o.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),a(l)}handleEnd(){let{onEnd:e}=this.props;this.detach(),e()}handleCancel(){let{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===J.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let Ml={move:{name:"pointermove"},end:{name:"pointerup"}};class Ms extends Mo{constructor(e){let{event:t}=e;super(e,Ml,Cp(t.target))}}Ms.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!!n.isPrimary&&0===n.button&&(null==r||r({event:n}),!0)}}];let Mu={move:{name:"mousemove"},end:{name:"mouseup"}};(S=Q||(Q={}))[S.RightClick=2]="RightClick";class Mc extends Mo{constructor(e){super(e,Mu,Cp(e.event.target))}}Mc.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==Q.RightClick&&(null==r||r({event:n}),!0)}}];let Md={move:{name:"touchmove"},end:{name:"touchend"}};class Mf extends Mo{constructor(e){super(e,Md)}static setup(){return window.addEventListener(Md.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(Md.move.name,e)};function e(){}}}Mf.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:i}=n;return!(i.length>1)&&(null==r||r({event:n}),!0)}}],(C=ee||(ee={}))[C.Pointer=0]="Pointer",C[C.DraggableRect=1]="DraggableRect",(M=et||(et={}))[M.TreeOrder=0]="TreeOrder",M[M.ReversedTreeOrder=1]="ReversedTreeOrder";let Mh={x:{[X.Backward]:!1,[X.Forward]:!1},y:{[X.Backward]:!1,[X.Forward]:!1}};(_=en||(en={}))[_.Always=0]="Always",_[_.BeforeDragging=1]="BeforeDragging",_[_.WhileDragging=2]="WhileDragging",(er||(er={})).Optimized="optimized";let Mp=new Map;function Mm(e,t){return Cy(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function Mg(e){let{callback:t,disabled:n}=e,r=Cg(t),i=(0,eo.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,eo.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function Mv(e){return new C6(Cq(e),e)}function My(e,t,n){void 0===t&&(t=Mv);let[r,i]=(0,eo.useReducer)(function(r){if(!e)return null;if(!1===e.isConnected){var i;return null!=(i=null!=r?r:n)?i:null}let a=t(e);return JSON.stringify(r)===JSON.stringify(a)?r:a},null),a=function(e){let{callback:t,disabled:n}=e,r=Cg(t),i=(0,eo.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,eo.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){i();break}}}}),o=Mg({callback:i});return Cm(()=>{i(),e?(null==o||o.observe(e),null==a||a.observe(document.body,{childList:!0,subtree:!0})):(null==o||o.disconnect(),null==a||a.disconnect())},[e]),r}let Mx=[];function Mb(e,t){void 0===t&&(t=[]);let n=(0,eo.useRef)(null);return(0,eo.useEffect)(()=>{n.current=null},t),(0,eo.useEffect)(()=>{let t=e!==Cz;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?CS(e,n.current):Cz}function Mw(e){return(0,eo.useMemo)(()=>e?function(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null,[e])}let Mj=[];function Mk(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return Cf(t)?t:e}let ME=[{sensor:Ms,options:{}},{sensor:Mr,options:{}}],MS={current:{}},MC={draggable:{measure:C$},droppable:{measure:C$,strategy:en.WhileDragging,frequency:er.Optimized},dragOverlay:{measure:Cq}};class MM extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}let M_={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new MM,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:CZ},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:MC,measureDroppableContainers:CZ,windowRect:null,measuringScheduled:!1},MO={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:CZ,draggableNodes:new Map,over:null,measureDroppableContainers:CZ},MT=(0,eo.createContext)(MO),MP=(0,eo.createContext)(M_);function MA(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new MM}}}function MN(e,t){switch(t.type){case Y.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Y.DragMove:if(!e.draggable.active)return e;return{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Y.DragEnd:case Y.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Y.RegisterDroppable:{let{element:n}=t,{id:r}=n,i=new MM(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case Y.SetDroppableDisabled:{let{id:n,key:r,disabled:i}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;let o=new MM(e.droppable.containers);return o.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case Y.UnregisterDroppable:{let{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let a=new MM(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function MR(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:i}=(0,eo.useContext)(MT),a=Cb(r),o=Cb(null==n?void 0:n.id);return(0,eo.useEffect)(()=>{if(!t&&!r&&a&&null!=o){if(!CC(a)||document.activeElement===a.target)return;let e=i.get(o);if(!e)return;let{activatorNode:t,node:n}=e;(t.current||n.current)&&requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=e.matches(CO)?e:e.querySelector(CO);if(t){t.focus();break}}})}},[r,t,i,o,a]),null}function MD(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}let ML=(0,eo.createContext)({...Cz,scaleX:1,scaleY:1});(O=ei||(ei={}))[O.Uninitialized=0]="Uninitialized",O[O.Initializing=1]="Initializing",O[O.Initialized=2]="Initialized";let MZ=(0,eo.memo)(function(e){var t,n,r,i,a,o;let{id:l,accessibility:s,autoScroll:u=!0,children:c,sensors:d=ME,collisionDetection:f=CB,measuring:h,modifiers:p,...m}=e,[g,v]=(0,eo.useReducer)(MN,void 0,MA),[y,x]=function(){let[e]=(0,eo.useState)(()=>new Set),t=(0,eo.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,eo.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)})},[e]),t]}(),[b,w]=(0,eo.useState)(ei.Uninitialized),j=b===ei.Initialized,{draggable:{active:k,nodes:E,translate:S},droppable:{containers:C}}=g,M=k?E.get(k):null,_=(0,eo.useRef)({initial:null,translated:null}),O=(0,eo.useMemo)(()=>{var e;return null!=k?{id:k,data:null!=(e=null==M?void 0:M.data)?e:MS,rect:_}:null},[k,M]),T=(0,eo.useRef)(null),[P,A]=(0,eo.useState)(null),[N,R]=(0,eo.useState)(null),D=Cv(m,Object.values(m)),L=Cj("DndDescribedBy",l),Z=(0,eo.useMemo)(()=>C.getEnabled(),[C]),F=(0,eo.useMemo)(()=>({draggable:{...MC.draggable,...null==h?void 0:h.draggable},droppable:{...MC.droppable,...null==h?void 0:h.droppable},dragOverlay:{...MC.dragOverlay,...null==h?void 0:h.dragOverlay}}),[null==h?void 0:h.draggable,null==h?void 0:h.droppable,null==h?void 0:h.dragOverlay]),{droppableRects:z,measureDroppableContainers:V,measuringScheduled:B}=function(e,t){let{dragging:n,dependencies:r,config:i}=t,[a,o]=(0,eo.useState)(null),{frequency:l,measure:s,strategy:u}=i,c=(0,eo.useRef)(e),d=function(){switch(u){case en.Always:return!1;case en.BeforeDragging:return n;default:return!n}}(),f=Cv(d),h=(0,eo.useCallback)(function(e){void 0===e&&(e=[]),f.current||o(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[f]),p=(0,eo.useRef)(null),m=Cy(t=>{if(d&&!n)return Mp;if(!t||t===Mp||c.current!==e||null!=a){let t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new C6(s(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,a,n,d,s]);return(0,eo.useEffect)(()=>{c.current=e},[e]),(0,eo.useEffect)(()=>{d||h()},[n,d]),(0,eo.useEffect)(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),(0,eo.useEffect)(()=>{d||"number"!=typeof l||null!==p.current||(p.current=setTimeout(()=>{h(),p.current=null},l))},[l,d,h,...r]),{droppableRects:m,measureDroppableContainers:h,measuringScheduled:null!=a}}(Z,{dragging:j,dependencies:[S.x,S.y],config:F.droppable}),I=function(e,t){let n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return Cy(e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null},[r,t])}(E,k),H=(0,eo.useMemo)(()=>N?CM(N):null,[N]),U=function(){let e=(null==P?void 0:P.autoScrollEnabled)===!1,t="object"==typeof u?!1===u.enabled:!1===u,n=j&&!e&&!t;return"object"==typeof u?{...u,enabled:n}:{enabled:n}}(),W=Mm(I,F.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e,a=(0,eo.useRef)(!1),{x:o,y:l}="boolean"==typeof i?{x:i,y:i}:i;Cm(()=>{if(!o&&!l||!t){a.current=!1;return}if(a.current||!r)return;let e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;let i=CI(n(e),r);if(o||(i.x=0),l||(i.y=0),a.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=CY(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,o,l,r,n])}({activeNode:k?E.get(k):null,config:U.layoutShiftCompensation,initialRect:W,measure:F.draggable.measure});let q=My(I,F.draggable.measure,W),$=My(I?I.parentElement:null),K=(0,eo.useRef)({activatorEvent:null,active:null,activeNode:I,collisionRect:null,collisions:null,droppableRects:z,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:C,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),G=C.getNodeFor(null==(t=K.current.over)?void 0:t.id),J=function(e){let{measure:t}=e,[n,r]=(0,eo.useState)(null),i=Mg({callback:(0,eo.useCallback)(e=>{for(let{target:n}of e)if(Cf(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),[a,o]=Cx((0,eo.useCallback)(e=>{let n=Mk(e);null==i||i.disconnect(),n&&(null==i||i.observe(n)),r(n?t(n):null)},[t,i]));return(0,eo.useMemo)(()=>({nodeRef:a,rect:n,setRef:o}),[n,a,o])}({measure:F.dragOverlay.measure}),Q=null!=(n=J.nodeRef.current)?n:I,er=j?null!=(r=J.rect)?r:q:null,ea=!!(J.nodeRef.current&&J.rect),el=function(e){let t=Mm(e);return CI(e,t)}(ea?null:q),es=Mw(Q?Cc(Q):null),eu=function(e){let t=(0,eo.useRef)(e),n=Cy(n=>e?n&&n!==Mx&&e&&t.current&&e.parentNode===t.current.parentNode?n:CK(e):Mx,[e]);return(0,eo.useEffect)(()=>{t.current=e},[e]),n}(j?null!=G?G:I:null),ec=function(e,t){void 0===t&&(t=Cq);let[n]=e,r=Mw(n?Cc(n):null),[i,a]=(0,eo.useReducer)(function(){return e.length?e.map(e=>C0(e)?r:new C6(t(e),e)):Mj},Mj),o=Mg({callback:a});return e.length>0&&i===Mj&&a(),Cm(()=>{e.length?e.forEach(e=>null==o?void 0:o.observe(e)):(null==o||o.disconnect(),a())},[e]),i}(eu),ed=MD(p,{transform:{x:S.x-el.x,y:S.y-el.y,scaleX:1,scaleY:1},activatorEvent:N,active:O,activeNodeRect:q,containerNodeRect:$,draggingNodeRect:er,over:K.current.over,overlayNodeRect:J.rect,scrollableAncestors:eu,scrollableAncestorRects:ec,windowRect:es}),ef=H?CE(H,S):null,eh=function(e){let[t,n]=(0,eo.useState)(null),r=(0,eo.useRef)(e),i=(0,eo.useCallback)(e=>{let t=CX(e.target);t&&n(e=>e?(e.set(t,CQ(t)),new Map(e)):null)},[]);return(0,eo.useEffect)(()=>{let t=r.current;if(e!==t){a(t);let o=e.map(e=>{let t=CX(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,CQ(t)]):null}).filter(e=>null!=e);n(o.length?new Map(o):null),r.current=e}return()=>{a(e),a(t)};function a(e){e.forEach(e=>{let t=CX(e);null==t||t.removeEventListener("scroll",i)})}},[i,e]),(0,eo.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>CE(e,t),Cz):C4(e):Cz,[e,t])}(eu),ep=Mb(eh),em=Mb(eh,[q]),eg=CE(ed,ep),ev=er?CH(er,ed):null,ey=O&&ev?f({active:O,collisionRect:ev,droppableRects:z,droppableContainers:Z,pointerCoordinates:ef}):null,ex=function(e,t){if(!e||0===e.length)return null;let[n]=e;return t?n[t]:n}(ey,"id"),[eb,ew]=(0,eo.useState)(null),ej=(a=ea?ed:CE(ed,em),o=null!=(i=null==eb?void 0:eb.rect)?i:null,{...a,scaleX:o&&q?o.width/q.width:1,scaleY:o&&q?o.height/q.height:1}),ek=(0,eo.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(null==T.current)return;let i=E.get(T.current);if(!i)return;let a=e.nativeEvent,o=new n({active:T.current,activeNode:i,event:a,options:r,context:K,onStart(e){let t=T.current;if(null==t)return;let n=E.get(t);if(!n)return;let{onDragStart:r}=D.current,i={active:{id:t,data:n.data,rect:_}};(0,tD.unstable_batchedUpdates)(()=>{null==r||r(i),w(ei.Initializing),v({type:Y.DragStart,initialCoordinates:e,active:t}),y({type:"onDragStart",event:i})})},onMove(e){v({type:Y.DragMove,coordinates:e})},onEnd:l(Y.DragEnd),onCancel:l(Y.DragCancel)});function l(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=K.current,o=null;if(t&&i){let{cancelDrop:l}=D.current;o={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===Y.DragEnd&&"function"==typeof l&&await Promise.resolve(l(o))&&(e=Y.DragCancel)}T.current=null,(0,tD.unstable_batchedUpdates)(()=>{v({type:e}),w(ei.Uninitialized),ew(null),A(null),R(null);let t=e===Y.DragEnd?"onDragEnd":"onDragCancel";if(o){let e=D.current[t];null==e||e(o),y({type:t,event:o})}})}}(0,tD.unstable_batchedUpdates)(()=>{A(o),R(e.nativeEvent)})},[E]),eE=(0,eo.useCallback)((e,t)=>(n,r)=>{let i=n.nativeEvent,a=E.get(r);null!==T.current||!a||i.dndKit||i.defaultPrevented||!0!==e(n,t.options,{active:a})||(i.dndKit={capturedBy:t.sensor},T.current=r,ek(n,t))},[E,ek]),eS=(0,eo.useMemo)(()=>d.reduce((e,t)=>{let{sensor:n}=t;return[...e,...n.activators.map(e=>({eventName:e.eventName,handler:eE(e.handler,t)}))]},[]),[d,eE]);(0,eo.useEffect)(()=>{if(!Cl)return;let e=d.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(let t of e)null==t||t()}},d.map(e=>{let{sensor:t}=e;return t})),Cm(()=>{q&&b===ei.Initializing&&w(ei.Initialized)},[q,b]),(0,eo.useEffect)(()=>{let{onDragMove:e}=D.current,{active:t,activatorEvent:n,collisions:r,over:i}=K.current;if(!t||!n)return;let a={active:t,activatorEvent:n,collisions:r,delta:{x:eg.x,y:eg.y},over:i};(0,tD.unstable_batchedUpdates)(()=>{null==e||e(a),y({type:"onDragMove",event:a})})},[eg.x,eg.y]),(0,eo.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=K.current;if(!e||null==T.current||!t||!i)return;let{onDragOver:a}=D.current,o=r.get(ex),l=o&&o.rect.current?{id:o.id,rect:o.rect.current,data:o.data,disabled:o.disabled}:null,s={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:l};(0,tD.unstable_batchedUpdates)(()=>{ew(l),null==a||a(s),y({type:"onDragOver",event:s})})},[ex]),Cm(()=>{K.current={activatorEvent:N,active:O,activeNode:I,collisionRect:ev,collisions:ey,droppableRects:z,draggableNodes:E,draggingNode:Q,draggingNodeRect:er,droppableContainers:C,over:eb,scrollableAncestors:eu,scrollAdjustedTranslate:eg},_.current={initial:er,translated:ev}},[O,I,ey,ev,E,Q,er,z,C,eb,eu,eg]),function(e){let{acceleration:t,activator:n=ee.Pointer,canScroll:r,draggingRect:i,enabled:a,interval:o=5,order:l=et.TreeOrder,pointerCoordinates:s,scrollableAncestors:u,scrollableAncestorRects:c,delta:d,threshold:f}=e,h=function(e){let{delta:t,disabled:n}=e,r=Cb(t);return Cy(e=>{if(n||!r||!e)return Mh;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[X.Backward]:e.x[X.Backward]||-1===i.x,[X.Forward]:e.x[X.Forward]||1===i.x},y:{[X.Backward]:e.y[X.Backward]||-1===i.y,[X.Forward]:e.y[X.Forward]||1===i.y}}},[n,t,r])}({delta:d,disabled:!a}),[p,m]=function(){let e=(0,eo.useRef)(null);return[(0,eo.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,eo.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}(),g=(0,eo.useRef)({x:0,y:0}),v=(0,eo.useRef)({x:0,y:0}),y=(0,eo.useMemo)(()=>{switch(n){case ee.Pointer:return s?{top:s.y,bottom:s.y,left:s.x,right:s.x}:null;case ee.DraggableRect:return i}},[n,i,s]),x=(0,eo.useRef)(null),b=(0,eo.useCallback)(()=>{let e=x.current;if(!e)return;let t=g.current.x*v.current.x,n=g.current.y*v.current.y;e.scrollBy(t,n)},[]),w=(0,eo.useMemo)(()=>l===et.TreeOrder?[...u].reverse():u,[l,u]);(0,eo.useEffect)(()=>{if(!a||!u.length||!y){m();return}for(let e of w){if((null==r?void 0:r(e))===!1)continue;let n=c[u.indexOf(e)];if(!n)continue;let{direction:i,speed:a}=function(e,t,n,r,i){let{top:a,left:o,right:l,bottom:s}=n;void 0===r&&(r=10),void 0===i&&(i=C2);let{isTop:u,isBottom:c,isLeft:d,isRight:f}=C1(e),h={x:0,y:0},p={x:0,y:0},m={height:t.height*i.y,width:t.width*i.x};return!u&&a<=t.top+m.height?(h.y=X.Backward,p.y=r*Math.abs((t.top+m.height-a)/m.height)):!c&&s>=t.bottom-m.height&&(h.y=X.Forward,p.y=r*Math.abs((t.bottom-m.height-s)/m.height)),!f&&l>=t.right-m.width?(h.x=X.Forward,p.x=r*Math.abs((t.right-m.width-l)/m.width)):!d&&o<=t.left+m.width&&(h.x=X.Backward,p.x=r*Math.abs((t.left+m.width-o)/m.width)),{direction:h,speed:p}}(e,n,y,t,f);for(let e of["x","y"])h[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0){m(),x.current=e,p(b,o),g.current=a,v.current=i;return}}g.current={x:0,y:0},v.current={x:0,y:0},m()},[t,b,r,m,a,o,JSON.stringify(y),JSON.stringify(h),p,u,w,c,JSON.stringify(f)])}({...U,delta:S,draggingRect:ev,pointerCoordinates:ef,scrollableAncestors:eu,scrollableAncestorRects:ec});let eC=(0,eo.useMemo)(()=>({active:O,activeNode:I,activeNodeRect:q,activatorEvent:N,collisions:ey,containerNodeRect:$,dragOverlay:J,draggableNodes:E,droppableContainers:C,droppableRects:z,over:eb,measureDroppableContainers:V,scrollableAncestors:eu,scrollableAncestorRects:ec,measuringConfiguration:F,measuringScheduled:B,windowRect:es}),[O,I,q,N,ey,$,J,E,C,z,eb,V,eu,ec,F,B,es]),eM=(0,eo.useMemo)(()=>({activatorEvent:N,activators:eS,active:O,activeNodeRect:q,ariaDescribedById:{draggable:L},dispatch:v,draggableNodes:E,over:eb,measureDroppableContainers:V}),[N,eS,O,q,v,L,E,eb,V]);return eo.createElement(CN.Provider,{value:x},eo.createElement(MT.Provider,{value:eM},eo.createElement(MP.Provider,{value:eC},eo.createElement(ML.Provider,{value:ej},c)),eo.createElement(MR,{disabled:(null==s?void 0:s.restoreFocus)===!1})),eo.createElement(CL,{...s,hiddenTextDescribedById:L}))}),MF=(0,eo.createContext)(null),Mz="button",MV={timeout:25};function MB(e){let{animation:t,children:n}=e,[r,i]=(0,eo.useState)(null),[a,o]=(0,eo.useState)(null),l=Cb(n);return n||r||!l||i(l),Cm(()=>{if(!a)return;let e=null==r?void 0:r.key,n=null==r?void 0:r.props.id;if(null==e||null==n){i(null);return}Promise.resolve(t(n,a)).then(()=>{i(null)})},[t,r,a]),eo.createElement(eo.Fragment,null,n,r?(0,eo.cloneElement)(r,{ref:o}):null)}let MI={x:0,y:0,scaleX:1,scaleY:1};function MH(e){let{children:t}=e;return eo.createElement(MT.Provider,{value:MO},eo.createElement(ML.Provider,{value:MI},t))}let MU={position:"fixed",touchAction:"none"},MW=e=>CC(e)?"transform 250ms ease":void 0,Mq=(0,eo.forwardRef)((e,t)=>{let{as:n,activatorEvent:r,adjustScale:i,children:a,className:o,rect:l,style:s,transform:u,transition:c=MW}=e;if(!l)return null;let d=i?u:{...u,scaleX:1,scaleY:1},f={...MU,width:l.width,height:l.height,top:l.top,left:l.left,transform:C_.Transform.toString(d),transformOrigin:i&&r?function(e,t){let n=CM(e);if(!n)return"0 0";let r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}(r,l):void 0,transition:"function"==typeof c?c(r):c,...s};return eo.createElement(n,{className:o,style:f,ref:t},a)}),M$={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:C_.Transform.toString(t)},{transform:C_.Transform.toString(n)}]},sideEffects:(T={styles:{active:{opacity:"0"}}},e=>{let{active:t,dragOverlay:n}=e,r={},{styles:i,className:a}=T;if(null!=i&&i.active)for(let[e,n]of Object.entries(i.active))void 0!==n&&(r[e]=t.node.style.getPropertyValue(e),t.node.style.setProperty(e,n));if(null!=i&&i.dragOverlay)for(let[e,t]of Object.entries(i.dragOverlay))void 0!==t&&n.node.style.setProperty(e,t);return null!=a&&a.active&&t.node.classList.add(a.active),null!=a&&a.dragOverlay&&n.node.classList.add(a.dragOverlay),function(){for(let[e,n]of Object.entries(r))t.node.style.setProperty(e,n);null!=a&&a.active&&t.node.classList.remove(a.active)}})},MK=0,MY=eo.memo(e=>{var t;let{adjustScale:n=!1,children:r,dropAnimation:i,style:a,transition:o,modifiers:l,wrapperElement:s="div",className:u,zIndex:c=999}=e,{activatorEvent:d,active:f,activeNodeRect:h,containerNodeRect:p,draggableNodes:m,droppableContainers:g,dragOverlay:v,over:y,measuringConfiguration:x,scrollableAncestors:b,scrollableAncestorRects:w,windowRect:j}=(0,eo.useContext)(MP),k=(0,eo.useContext)(ML),E=(t=null==f?void 0:f.id,(0,eo.useMemo)(()=>{if(null!=t)return++MK},[t])),S=MD(l,{activatorEvent:d,active:f,activeNodeRect:h,containerNodeRect:p,draggingNodeRect:v.rect,over:y,overlayNodeRect:v.rect,scrollableAncestors:b,scrollableAncestorRects:w,transform:k,windowRect:j}),C=Mm(h),M=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return Cg((e,a)=>{if(null===t)return;let o=n.get(e);if(!o)return;let l=o.node.current;if(!l)return;let s=Mk(a);if(!s)return;let{transform:u}=Cc(a).getComputedStyle(a),c=CU(u);if(!c)return;let d="function"==typeof t?t:function(e){let{duration:t,easing:n,sideEffects:r,keyframes:i}={...M$,...e};return e=>{let{active:a,dragOverlay:o,transform:l,...s}=e;if(!t)return;let u={x:o.rect.left-a.rect.left,y:o.rect.top-a.rect.top},c={scaleX:1!==l.scaleX?a.rect.width*l.scaleX/o.rect.width:1,scaleY:1!==l.scaleY?a.rect.height*l.scaleY/o.rect.height:1},d={x:l.x-u.x,y:l.y-u.y,...c},f=i({...s,active:a,dragOverlay:o,transform:{initial:l,final:d}}),[h]=f,p=f[f.length-1];if(JSON.stringify(h)===JSON.stringify(p))return;let m=null==r?void 0:r({active:a,dragOverlay:o,...s}),g=o.node.animate(f,{duration:t,easing:n,fill:"forwards"});return new Promise(e=>{g.onfinish=()=>{null==m||m(),e()}})}}(t);return C3(l,i.draggable.measure),d({active:{id:e,data:o.data,node:l,rect:i.draggable.measure(l)},draggableNodes:n,dragOverlay:{node:a,rect:i.dragOverlay.measure(s)},droppableContainers:r,measuringConfiguration:i,transform:c})})}({config:i,draggableNodes:m,droppableContainers:g,measuringConfiguration:x}),_=C?v.setRef:void 0;return eo.createElement(MH,null,eo.createElement(MB,{animation:M},f&&E?eo.createElement(Mq,{key:E,id:f.id,ref:_,as:s,activatorEvent:d,adjustScale:n,className:u,transition:o,rect:C,style:{zIndex:c,...a},transform:S},r):null))});function MX(){return(0,eo.forwardRef)((e,t)=>{let{data:n,style:r,attributes:i,listeners:a,context:o,columns:l,rowSize:s="default",focusId:u,focusColor:c="default",getCellClassNames:d,getContentClassNames:f,className:h}=e;return(0,ea.jsx)("tr",{ref:t,...i,...a,style:r,id:n.id,"data-testid":n.id,onClick:n.onClick,className:(0,eW.cx)("border-b border-gray-200/50 dark:border-graydark-100",n.onClick?"cursor-pointer":"",n.className,h),children:l.map((e,t)=>{let{id:r,render:i,contentClassName:a,cellClassName:l,rowCellClassName:h,rowContentClassName:p}=e;return(0,ea.jsx)("td",{"data-testid":r,className:(0,eW.cx)(d(t,(0,eW.cx)(l,h),!1),u&&u===n.id?["shadow-border-y","first:shadow-border-tlb","last:shadow-border-trb"]:"","default"===c?"!shadow-blue-900 dark:!shadow-blue-200":"","blue"===c?"!shadow-blue-500 dark:!shadow-blue-400":"","red"===c?"!shadow-red-500 dark:!shadow-red-400":"","amber"===c?"!shadow-amber-500 dark:!shadow-amber-500":"","green"===c?"!shadow-green-500 dark:!shadow-green-400":""),children:(0,ea.jsx)("div",{className:(0,eW.cx)(f(t,(0,eW.cx)(a,p)),"dense"===s?"h-[50px]":"default"===s?"h-[100px]":""),children:(0,ea.jsx)(i,{data:n,context:o})})},"".concat(r,"/").concat(n.id))})},n.id)})}function MG(e){let{data:t,context:n,columns:r,rowSize:i="default",focusId:a,focusColor:o="default",getCellClassNames:l,getContentClassNames:s}=e,{attributes:u,listeners:c,setNodeRef:d,transform:f}=function(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e,a=Cj("Droppable"),{activators:o,activatorEvent:l,active:s,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:f}=(0,eo.useContext)(MT),{role:h=Mz,roleDescription:p="draggable",tabIndex:m=0}=null!=i?i:{},g=(null==s?void 0:s.id)===t,v=(0,eo.useContext)(g?ML:MF),[y,x]=Cx(),[b,w]=Cx(),j=(0,eo.useMemo)(()=>o.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[o,t]),k=Cv(n);return Cm(()=>(d.set(t,{id:t,key:a,node:y,activatorNode:b,data:k}),()=>{let e=d.get(t);e&&e.key===a&&d.delete(t)}),[d,t]),{active:s,activatorEvent:l,activeNodeRect:u,attributes:(0,eo.useMemo)(()=>({role:h,tabIndex:m,"aria-disabled":r,"aria-pressed":!!g&&h===Mz||void 0,"aria-roledescription":p,"aria-describedby":c.draggable}),[r,h,m,g,p,c.draggable]),isDragging:g,listeners:r?void 0:j,node:y,over:f,setNodeRef:x,setActivatorNodeRef:w,transform:v}}({id:t.id}),h=f?{transform:"translate3d(".concat(f.x,"px, ").concat(f.y,"px, 0)")}:void 0,p=(0,eo.useMemo)(()=>MX(),[]);return(0,ea.jsx)(p,{ref:d,style:h,attributes:u,listeners:c,data:t,context:n,columns:r,rowSize:i,focusId:a,focusColor:o,getCellClassNames:l,getContentClassNames:s})}function MJ(e){let{data:t,context:n,columns:r,rowSize:i="default",focusId:a,focusColor:o="default",getCellClassNames:l,getContentClassNames:s}=e,{isOver:u,setNodeRef:c}=function(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e,a=Cj("Droppable"),{active:o,dispatch:l,over:s,measureDroppableContainers:u}=(0,eo.useContext)(MT),c=(0,eo.useRef)({disabled:n}),d=(0,eo.useRef)(!1),f=(0,eo.useRef)(null),h=(0,eo.useRef)(null),{disabled:p,updateMeasurementsFor:m,timeout:g}={...MV,...i},v=Cv(null!=m?m:r),y=Mg({callback:(0,eo.useCallback)(()=>{if(!d.current){d.current=!0;return}null!=h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{u(Array.isArray(v.current)?v.current:[v.current]),h.current=null},g)},[g]),disabled:p||!o}),[x,b]=Cx((0,eo.useCallback)((e,t)=>{y&&(t&&(y.unobserve(t),d.current=!1),e&&y.observe(e))},[y])),w=Cv(t);return(0,eo.useEffect)(()=>{y&&x.current&&(y.disconnect(),d.current=!1,y.observe(x.current))},[x,y]),Cm(()=>(l({type:Y.RegisterDroppable,element:{id:r,key:a,disabled:n,node:x,rect:f,data:w}}),()=>l({type:Y.UnregisterDroppable,key:a,id:r})),[r]),(0,eo.useEffect)(()=>{n!==c.current.disabled&&(l({type:Y.SetDroppableDisabled,id:r,key:a,disabled:n}),c.current.disabled=n)},[r,a,n,l]),{active:o,rect:f,isOver:(null==s?void 0:s.id)===r,node:x,over:s,setNodeRef:b}}({id:t.id}),d=(0,eo.useMemo)(()=>MX(),[]);return(0,ea.jsx)(d,{ref:c,className:u?"bg-blue-200/20 dark:bg-blue-300/20":"",data:t,context:n,columns:r,rowSize:i,focusId:a,focusColor:o,getCellClassNames:l,getContentClassNames:s})}function MQ(e){let{columns:t,data:n,context:r,sortField:i,sortDirection:a,sortableColumns:o,toggleSort:l,rowSize:s="default",pageSize:u,isLoading:c,emptyState:d,focusId:f,focusColor:h="default",onDragStart:p,onDragOver:m,onDragMove:g,onDragEnd:v,onDragCancel:y,draggingDatum:x,testId:b}=e,w="emptyState";!c||(null==n?void 0:n.length)||(w="skeleton"),(null==n?void 0:n.length)&&(w="currentData");let j=(0,eo.useCallback)((e,n,r)=>(0,eW.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]),k=(0,eo.useCallback)((e,t)=>(0,eW.cx)("flex items-center",t),[]),E=(0,eo.useMemo)(()=>MX(),[]),S=function(){for(var e=arguments.length,t=Array(e),n=0;n[...t].filter(e=>null!=e),[...t])}(CF(Mc,{activationConstraint:{distance:10}}),CF(Mf,{activationConstraint:{delay:250,tolerance:5}})),C=(0,eo.useMemo)(()=>t.some(e=>{let{summary:t}=e;return t&&t({context:r})}),[t,r]);return(0,ea.jsxs)(MZ,{sensors:S,onDragStart:p,onDragOver:m,onDragMove:g,onDragEnd:v,onDragCancel:y,children:[(0,ea.jsx)(MY,{children:x&&(0,ea.jsx)(nE,{className:"inline-block",children:(0,ea.jsx)("table",{children:(0,ea.jsx)(E,{className:"pointer-events-none",data:x,context:r,columns:t,rowSize:s,focusId:f,focusColor:h,getCellClassNames:j,getContentClassNames:k},x.id)})})}),(0,ea.jsxs)(nE,{children:[(0,ea.jsxs)("table",{"data-testid":b,"data-loading":"skeleton"===w,className:"relative z-10 table-auto border-collapse w-full",children:[(0,ea.jsxs)("thead",{className:(0,eW.cx)("sticky top-0 z-20 bg-white dark:bg-graydark-100","shadow-border-b shadow-gray-400 dark:shadow-graydark-300"),children:[(0,ea.jsx)("tr",{children:t.map((e,t)=>{let{id:n,icon:r,label:s,tip:u,cellClassName:c,contentClassName:d}=e,f=(null==o?void 0:o.includes(n))&&!!l,h=i===n;return(0,ea.jsx)("th",{"data-testid":n,className:(0,eW.cx)(j(t,c,!1),"border-b border-gray-400 dark:border-graydark-400"),children:(0,ea.jsx)("div",{className:"overflow-hidden py-3",children:(0,ea.jsxs)("div",{onClick:()=>{f&&l(n)},className:(0,eW.cx)(k(t,d),f?"cursor-pointer":""),children:[(0,ea.jsx)(sM,{content:u,children:(0,ea.jsxs)(nw,{color:"subtle",className:"relative flex gap-1",ellipsis:!0,children:[r?(0,ea.jsx)("div",{children:r}):null,(0,ea.jsx)(nw,{ellipsis:!0,size:"12",weight:"medium",children:s})]})}),h&&(0,ea.jsx)(nw,{color:"contrast",children:"asc"===a?(0,ea.jsx)(sT.kqg,{className:"scale-75"}):(0,ea.jsx)(sT.EMN,{className:"scale-75"})}),f&&!h&&(0,ea.jsx)(nw,{color:"verySubtle",children:(0,ea.jsx)(sT.kqg,{className:"scale-75"})})]})})},n)})}),C&&(0,ea.jsx)("tr",{children:t.map((e,t)=>{let{id:n,cellClassName:i,contentClassName:a,summary:o}=e;return(0,ea.jsx)("th",{"data-testid":n,className:(0,eW.cx)(j(t,i,!1),"border-b border-gray-400 dark:border-graydark-400","relative -top-px"),children:(0,ea.jsx)("div",{className:"overflow-hidden py-3",children:(0,ea.jsx)("div",{className:(0,eW.cx)(k(t,a)),children:o&&(0,ea.jsx)(o,{context:r})})})},n)})})]}),(0,ea.jsxs)("tbody",{className:"bg-gray-50 dark:bg-graydark-50",children:["currentData"===w&&(null==n?void 0:n.map(e=>(null==x?void 0:x.id)===e.id?null:e.isDraggable?(0,ea.jsx)(MG,{data:e,context:r,columns:t,rowSize:s,focusId:f,focusColor:h,getCellClassNames:j,getContentClassNames:k},e.id):e.isDroppable?(0,ea.jsx)(MJ,{data:e,context:r,columns:t,rowSize:s,focusId:f,focusColor:h,getCellClassNames:j,getContentClassNames:k},e.id):(0,ea.jsx)(E,{data:e,context:r,columns:t,rowSize:s,focusId:f,focusColor:h,getCellClassNames:j,getContentClassNames:k},e.id))),"skeleton"===w&&SX(u).map(e=>(0,ea.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,ea.jsx)("td",{className:j(t,i,!1),children:(0,ea.jsx)("div",{className:(0,eW.cx)(k(t,r),"dense"===s?"h-[50px]":"h-[100px]")})},"".concat(t,"/").concat(n))})},e))]})]}),"emptyState"===w&&d]})]})}function M0(e){let{offset:t,limit:n,datasetTotal:r,isLoading:i}=e,a=(0,da.j0)();return(0,ea.jsxs)(sG,{children:[(0,ea.jsx)(sO,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>a.push({query:{...a.query,offset:0}}),children:(0,ea.jsx)("div",{className:"flex scale-[0.65]",children:(0,ea.jsx)(sT.XJM,{})})}),(0,ea.jsx)(sO,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>a.push({query:{...a.query,offset:Math.max(t-n,0)}}),children:(0,ea.jsx)(sT.bdU,{})}),(0,ea.jsx)(sO,{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,ea.jsx)(kQ,{className:"px-2"}):"No results"}),(0,ea.jsx)(sO,{icon:"contrast",disabled:t+n>=r,size:"small",variant:"gray",className:"rounded-none",onClick:()=>a.push({query:{...a.query,offset:Math.min(t+n,r)}}),children:(0,ea.jsx)(sT.VUy,{})}),(0,ea.jsx)(sO,{icon:"contrast",disabled:t+n>=r,size:"small",variant:"gray",className:"rounded-l-none",onClick:()=>a.push({query:{...a.query,offset:Math.floor(r/n)*n}}),children:(0,ea.jsx)("div",{className:"flex",style:{transform:"scale(0.65)"},children:(0,ea.jsx)(sT.RRj,{})})})]})}function M1(e){let{offset:t,limit:n,pageTotal:r,isLoading:i}=e,a=(0,da.j0)();return(0,ea.jsxs)(sG,{children:[(0,ea.jsx)(sO,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>a.push({query:{...a.query,offset:0}}),children:(0,ea.jsx)("div",{className:"flex scale-[0.65]",children:(0,ea.jsx)(sT.XJM,{})})}),(0,ea.jsx)(sO,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>a.push({query:{...a.query,offset:Math.max(t-n,0)}}),children:(0,ea.jsx)(sT.bdU,{})}),i?(0,ea.jsx)(sO,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:(0,ea.jsx)(kQ,{className:"px-2"})}):r?(0,ea.jsxs)(sO,{className:"rounded-none px-3",state:"waiting",children:[t+1," - ",Math.min(t+n,t+r)]}):(0,ea.jsx)(sO,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:"none"}),(0,ea.jsx)(sO,{icon:"contrast",disabled:!(r>=n),size:"small",variant:"gray",className:"rounded-none",onClick:()=>a.push({query:{...a.query,offset:t+n}}),children:(0,ea.jsx)(sT.VUy,{})})]})}function M2(e){let{marker:t,isMore:n,pageTotal:r,isLoading:i}=e,a=(0,da.j0)();return(0,ea.jsxs)(sG,{children:[(0,ea.jsx)(sO,{icon:"contrast",size:"small",variant:"gray",className:"rounded-r-none",disabled:!t,onClick:()=>a.push({query:{...a.query,marker:""}}),children:(0,ea.jsx)("div",{className:"flex scale-[0.65]",children:(0,ea.jsx)(sT.XJM,{})})}),i?(0,ea.jsx)(sO,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:(0,ea.jsx)(kQ,{className:"px-2"})}):r?(0,ea.jsx)(sO,{className:"rounded-none px-3",state:"waiting",children:r}):(0,ea.jsx)(sO,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:"none"}),(0,ea.jsx)(sO,{icon:"contrast",disabled:!n,size:"small",variant:"gray",className:"rounded-none",onClick:()=>a.push({query:{...a.query,marker:t}}),children:(0,ea.jsx)(sT.VUy,{})})]})}function M4(e){let{separator:t,children:n}=e,r=eo.Children.toArray(n).filter(e=>eo.isValidElement(e)&&("function"!=typeof e.type||null!==e.type(e.props)));return(0,ea.jsx)(ea.Fragment,{children:r.map((e,n)=>{var i,a;return(0,ea.jsxs)(eo.Fragment,{children:[e,nl(),children:(0,ea.jsx)(sT.UG6,{})}),(0,ea.jsx)(_n,{title:"Lock app",onClick:o,children:(0,ea.jsx)(sT.mBM,{})})]})]})})}var _a=Object.create,_o=Object.defineProperty,_l=Object.getOwnPropertyDescriptor,_s=Object.getOwnPropertyNames,_u=Object.getPrototypeOf,_c=Object.prototype.hasOwnProperty,_d=(D=null!=(R=(A=(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,a=(t=function(e,t){return i.set(e,t),t},function(e){var a=i.get(e),o=void 0===a?e.size:an)throw Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;e.has(o);)o=Math.floor(Math.random()*n);return t(e,o)});e.addUniqueNumber=function(e){var t=a(e);return e.add(t),t},e.generateUniqueNumber=a},"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={})},()=>(N||A((N={exports:{}}).exports,N),N.exports))())?_a(_u(R)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of _s(t))_c.call(e,n)||void 0===n||_o(e,n,{get:()=>t[n],enumerable:!(r=_l(t,n))||r.enumerable});return e})(R&&R.__esModule?D:_o(D,"default",{value:R,enumerable:!0}),R)),_f=e=>void 0!==e.method&&"call"===e.method,_h=e=>null===e.error&&"number"==typeof e.id;L=e=>{let t=new Map([[0,()=>{}]]),n=new Map([[0,()=>{}]]),r=new Map,i=new Worker(e);return i.addEventListener("message",({data:e})=>{if(_f(e)){let{params:{timerId:i,timerType:a}}=e;if("interval"===a){let e=t.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==a)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"===a){let e=n.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==a)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(_h(e)){let{id:i}=e,a=r.get(i);if(void 0===a)throw Error("The timer is in an undefined state.");let{timerId:o,timerType:l}=a;r.delete(i),"interval"===l?t.delete(o):n.delete(o)}else{let{error:{message:t}}=e;throw Error(t)}}),{clearInterval:e=>{let n=(0,_d.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,_d.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,_d.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,_d.generateUniqueNumber)(n);return n.set(r,e),i.postMessage({id:null,method:"set",params:{delay:t,now:performance.now(),timerId:r,timerType:"timeout"}}),r}}},o=null,()=>{if(null!==o)return o;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 o=L(t),setTimeout(()=>URL.revokeObjectURL(t)),o};var _p=(typeof window>"u"?"undefined":typeof window)=="object",_m={setTimeout:_p?setTimeout.bind(window):setTimeout,clearTimeout:_p?clearTimeout.bind(window):clearTimeout,setInterval:_p?setInterval.bind(window):setInterval,clearInterval:_p?clearInterval.bind(window):clearInterval},_g={},_v=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,_g[e]=_g[e]||[],_g[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),_m.setTimeout(()=>{window.localStorage.removeItem(n)},500),_g[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=_g[this.name].indexOf(this);_g[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)}},_y=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:_v;function _x(){return Math.random().toString(36).substring(2)}var _b=class{options;channel;token=_x();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=>_m.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{_m.clearInterval(t)}catch{}let r=this.intervals.indexOf(t);r>=0&&this.intervals.splice(r,1),this.channel.removeEventListener("message",i),n()};t=_m.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=>_m.clearInterval(e))}catch{}}}},_w=class{channel;options;elector;token=_x();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;this.options=e,this.channel=new _y(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new _b(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()}},_j=_p?document:null,_k=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function _E(e,t){let n=0;return function(...r){let i=new Date().getTime();if(!(i-nDate.now();function _C(e){let{route:t}=e,n=(0,hi.Nf)({route:t,config:{swr:{refreshInterval:3e4}}});return{isConnected:!n.error,isValidating:n.isValidating}}function _M(e){let{appName:t,title:n,navTitle:r,profile:i,size:a="4",banner:o,nav:l,actions:s,stats:u,after:c,children:d,sidenav:f,connectivityRoute:h,isSynced:p,showWallet:m,walletBalanceSc:g,routes:v,scroll:y=!0,openSettings:x}=e,{lock:b,settings:w}=(0,hi.Hv)();return!function(e){let{lock:t,route:n,routes:r}=e,{isConnected:i,isValidating:a}=_C({route:n}),{settings:o}=(0,hi.Hv)(),l=(0,da.j0)();(0,eo.useEffect)(()=>{if(a)return;let e=!l.asPath.startsWith(r.login),n=!o.password||!i;if(e&&n){t();return}},[l,o.password,i,a])}({lock:b,route:h,routes:v}),!function(e){let{enabled:t,lock:n,lockTimeout:r}=e;!function({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:n=0,element:r=_j,events:i=_k,timers:a,immediateEvents:o=[],onPresenceChange:l=()=>{},onPrompt:s=()=>{},onIdle:u=()=>{},onActive:c=()=>{},onAction:d=()=>{},onMessage:f=()=>{},debounce:h=0,throttle:p=0,eventsThrottle:m=200,startOnMount:g=!0,startManually:v=!1,stopOnIdle:y=!1,crossTab:x=!1,name:b="idle-timer",syncTimers:w=0,leaderElection:j=!1,disabled:k=!1}={}){let E=(0,eo.useRef)(_S()),S=(0,eo.useRef)(_S()),C=(0,eo.useRef)(null),M=(0,eo.useRef)(null),_=(0,eo.useRef)(0),O=(0,eo.useRef)(0),T=(0,eo.useRef)(0),P=(0,eo.useRef)(0),A=(0,eo.useRef)(!1),N=(0,eo.useRef)(!1),R=(0,eo.useRef)(!1),D=(0,eo.useRef)(!0),L=(0,eo.useRef)(!1),Z=(0,eo.useRef)(null),F=(0,eo.useRef)(null),z=(0,eo.useRef)(e),V=(0,eo.useRef)(0);(0,eo.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,V.current=n):(z.current=e,V.current=t),!D.current){if(v||k)return;A.current&&(Y.current(null,eP),F.current&&F.current.active()),ed()}},[e,t,n,v,k]);let B=(0,eo.useRef)(y);(0,eo.useEffect)(()=>{B.current=y},[y]);let I=(0,eo.useRef)(o),H=(0,eo.useRef)(r),U=(0,eo.useRef)([...new Set([...i,...o]).values()]),W=(0,eo.useRef)(k);(0,eo.useEffect)(()=>{W.current=k,!D.current&&(k?ep():v||ed())},[k]);let q=(0,eo.useRef)(l);(0,eo.useEffect)(()=>{q.current=l},[l]);let $=(0,eo.useRef)(s);(0,eo.useEffect)(()=>{$.current=s},[s]);let K=(0,eo.useRef)(u);(0,eo.useEffect)(()=>{K.current=u},[u]);let Y=(0,eo.useRef)(c);(0,eo.useEffect)(()=>{Y.current=c},[c]);let X=(0,eo.useRef)(d);(0,eo.useEffect)(()=>{X.current=d},[d]);let G=(0,eo.useRef)(f);(0,eo.useEffect)(()=>{G.current=f},[f]);let J=(0,eo.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?_E(e,p):e},[p,h]),Q=(0,eo.useRef)();(0,eo.useEffect)(()=>{x&&w&&(Q.current=_E(()=>{F.current.active()},w))},[x,w]);let ee=()=>{null!==Z.current&&(_m.clearTimeout(Z.current),Z.current=null)},et=(e,t=!0)=>{ee(),Z.current=_m.setTimeout(ea,e||z.current),t&&(M.current=_S())},en=e=>{N.current||A.current||($.current(e,eP),q.current({type:"active",prompted:!0},eP)),P.current=0,T.current=_S(),N.current=!0,et(V.current,!1)},er=()=>{ee(),A.current||(K.current(null,eP),q.current({type:"idle"},eP)),A.current=!0,C.current=_S(),B.current?ec():N.current&&(T.current=0,N.current=!1)},ei=e=>{ee(),(A.current||N.current)&&(Y.current(e,eP),q.current({type:"active",prompted:!1},eP)),N.current=!1,T.current=0,A.current=!1,_.current+=_S()-C.current,O.current+=_S()-C.current,eu(),et()},ea=e=>{if(!A.current){J.cancel&&J.cancel();let t=_S()-M.current;if(!(z.current+V.current0&&!N.current){F.current?F.current.prompt():en(e);return}F.current?F.current.idle():er();return}F.current?F.current.active():ei(e)},el=e=>{if(g||M.current||(M.current=_S(),Y.current(null,eP)),J(e,eP),N.current)return;if(ee(),!A.current&&I.current.includes(e.type)){ea(e);return}let t=_S()-M.current;if(A.current&&!y||!A.current&&t>=z.current){ea(e);return}R.current=!1,P.current=0,T.current=0,et(),x&&w&&Q.current()},es=(0,eo.useRef)(el);(0,eo.useEffect)(()=>{let e=L.current;e&&ec(),m>0?es.current=_E(el,m):es.current=el,e&&eu()},[m,p,h,X,x,w]);let eu=()=>{_p&&H.current&&(L.current||(U.current.forEach(e=>{H.current.addEventListener(e,es.current,{capture:!0,passive:!0})}),L.current=!0))},ec=(e=!1)=>{_p&&H.current&&(L.current||e)&&(U.current.forEach(e=>{H.current.removeEventListener(e,es.current,{capture:!0})}),L.current=!1)},ed=(0,eo.useCallback)(e=>!W.current&&(ee(),eu(),A.current=!1,N.current=!1,R.current=!1,P.current=0,T.current=0,F.current&&!e&&F.current.start(),et(),!0),[Z,A,W,z,F]),ef=(0,eo.useCallback)(e=>!W.current&&(ee(),eu(),S.current=_S(),_.current+=_S()-C.current,O.current+=_S()-C.current,_.current=0,A.current=!1,N.current=!1,R.current=!1,P.current=0,T.current=0,F.current&&!e&&F.current.reset(),v||et(),!0),[Z,A,z,v,W,F]),eh=(0,eo.useCallback)(e=>!W.current&&(ee(),eu(),(A.current||N.current)&&ei(),A.current=!1,N.current=!1,R.current=!1,P.current=0,T.current=0,S.current=_S(),F.current&&!e&&F.current.activate(),et(),!0),[Z,A,N,W,z,F]),ep=(0,eo.useCallback)((e=!1)=>!W.current&&!R.current&&(P.current=ej(),R.current=!0,ec(),ee(),F.current&&!e&&F.current.pause(),!0),[Z,W,F]),em=(0,eo.useCallback)((e=!1)=>!W.current&&!!R.current&&(R.current=!1,N.current||eu(),A.current||et(P.current),T.current&&(T.current=_S()),F.current&&!e&&F.current.resume(),!0),[Z,z,W,P,F]),eg=(0,eo.useCallback)((e,t)=>(F.current?(t&&G.current(e,eP),F.current.message(e)):t&&G.current(e,eP),!0),[f]),ev=(0,eo.useCallback)(()=>A.current,[A]),ey=(0,eo.useCallback)(()=>N.current,[N]),ex=(0,eo.useCallback)(()=>F.current?F.current.isLeader:null,[F]),eb=(0,eo.useCallback)(()=>F.current?F.current.isLastActive:null,[F]),ew=(0,eo.useCallback)(()=>F.current?F.current.token:null,[F]),ej=(0,eo.useCallback)(()=>{if(R.current)return P.current;let e=Math.floor((P.current?P.current:V.current+z.current)-(M.current?_S()-M.current:0));return e<0?0:Math.abs(e)},[z,V,N,P,M]),ek=(0,eo.useCallback)(()=>Math.round(_S()-S.current),[S]),eE=(0,eo.useCallback)(()=>Math.round(_S()-E.current),[E]),eS=(0,eo.useCallback)(()=>C.current?new Date(C.current):null,[C]),eC=(0,eo.useCallback)(()=>M.current?new Date(M.current):null,[M]),eM=(0,eo.useCallback)(()=>A.current?Math.round(_S()-C.current+_.current):Math.round(_.current),[C,_]),e_=(0,eo.useCallback)(()=>A.current?Math.round(_S()-C.current+O.current):Math.round(O.current),[C,O]),eO=(0,eo.useCallback)(()=>{let e=Math.round(ek()-eM());return e>=0?e:0},[C,_]),eT=(0,eo.useCallback)(()=>{let e=Math.round(eE()-e_());return e>=0?e:0},[C,_]);(0,eo.useEffect)(()=>{if(h>0&&p>0)throw Error("❌ onAction can either be throttled or debounced, not both.");a&&(_m.setTimeout=a.setTimeout,_m.clearTimeout=a.clearTimeout,_m.setInterval=a.setInterval,_m.clearInterval=a.clearInterval);let e=()=>{F.current&&F.current.close(),J.cancel&&J.cancel(),ee(),ec(!0)};return _p&&window.addEventListener("beforeunload",e),()=>{_p&&window.removeEventListener("beforeunload",e),F.current&&F.current.close(),J.cancel&&J.cancel(),ee(),ec(!0)}},[]),(0,eo.useEffect)(()=>{F.current&&F.current.close(),x?F.current=new _w({channelName:b,leaderElection:j,onPrompt:()=>{en()},onIdle:()=>{er()},onActive:()=>{ei()},onMessage:e=>{G.current(e,eP)},start:ed,reset:ef,activate:eh,pause:ep,resume:em}):F.current=null},[x,b,j,$,K,Y,G,ed,ef,ep,em]),(0,eo.useEffect)(()=>{D.current||(ee(),ec(!0)),v||k||(g?ed():eu())},[v,g,k,D]),(0,eo.useEffect)(()=>{if(!D.current){let e=[...new Set([...i,...o]).values()];ec(),U.current=e,H.current=r,I.current=o,v||k||(g?ed():eu())}},[r,JSON.stringify(i),JSON.stringify(o),D,k,v,g]),(0,eo.useEffect)(()=>{D.current&&(D.current=!1)},[D]);let eP={message:eg,start:ed,reset:ef,activate:eh,pause:ep,resume:em,isIdle:ev,isPrompted:ey,isLeader:ex,isLastActiveTab:eb,getTabId:ew,getRemainingTime:ej,getElapsedTime:ek,getTotalElapsedTime:eE,getLastIdleTime:eS,getLastActiveTime:eC,getIdleTime:eM,getTotalIdleTime:e_,getActiveTime:eO,getTotalActiveTime:eT,setOnPresenceChange:e=>{l=e,q.current=e},setOnPrompt:e=>{s=e,$.current=e},setOnIdle:e=>{u=e,K.current=e},setOnActive:e=>{c=e,Y.current=e},setOnAction:e=>{d=e,X.current=e},setOnMessage:e=>{f=e,G.current=e}}}({disabled:!t,onIdle:(0,eo.useCallback)(()=>{n()},[n]),timeout:r,throttle:5e3,eventsThrottle:5e3})}({enabled:!!w.autoLock,lockTimeout:w.autoLockTimeout,lock:b}),(0,ea.jsxs)(M7,{appName:t,title:n,children:[(0,ea.jsx)(M6,{}),(0,ea.jsxs)("div",{className:"flex flex-col h-full w-full",children:[o,(0,ea.jsxs)("div",{className:"flex flex-1 w-full overflow-hidden",children:[(0,ea.jsx)(_i,{routes:v,profile:i,openSettings:x,lock:b,showWallet:m,walletBalanceSc:g,isSynced:p,children:f}),(0,ea.jsxs)("div",{className:"flex flex-col flex-1 overflow-hidden",children:[(0,ea.jsx)(M3,{title:void 0===r?n:r,nav:l,actions:s,stats:u,after:c}),y?(0,ea.jsx)(uS,{className:"z-0",children:(0,ea.jsx)(sQ,{size:a,pad:!1,children:(0,ea.jsx)("div",{className:"flex flex-col gap-5",children:d})})}):(0,ea.jsx)(sQ,{size:a,pad:!1,className:"flex-1 flex flex-col gap-5 overflow-hidden",children:d})]})]})]})]})}function __(e,t,n,r){let[i,a]=(0,eo.useState)();return(0,eo.useEffect)(()=>{!t&&e&&a(e.length)},[t,e,a]),(0,eo.useMemo)(()=>n?"error":void 0===i||i>0&&!e?"loading":0===i?0===r.length?"noneYet":"noneMatchingFilters":void 0,[e,i,n,r])}(0,eo.createContext)(null).Consumer;var _O=n(89644),_T=n.n(_O),_P=n(63955),_A=n(69046);function _N(e){let{form:t,field:n,name:r}=e,i=t.watch(r),a=t.formState.touchedFields[r]&&!!t.formState.errors[r],{ref:o,onChange:l}=t.register(r,n.validation),s=(0,eo.useCallback)(e=>{var r;l(e),null===(r=n.trigger)||void 0===r||r.forEach(e=>t.trigger(e))},[l,t,n]),u=(0,eo.useCallback)(()=>{var e;t.trigger(r),null===(e=n.trigger)||void 0===e||e.forEach(e=>t.trigger(e))},[t,n,r]),c=(0,eo.useCallback)((e,i)=>{var a;t.setValue(r,e,"boolean"==typeof i?i?{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0}:void 0:i),null===(a=n.trigger)||void 0===a||a.forEach(e=>t.trigger(e))},[r,t,n]);return{ref:o,name:r,value:i,error:a,onBlur:u,onChange:s,setValue:c}}function _R(e){return(0,eo.useCallback)(t=>{SC({title:"Error",body:(0,_A.Z)(t).map(t=>{let[n,r]=t;return"".concat(e[n].title||n,": ").concat(null==r?void 0:r.message)}).join(", ")})},[e])}function _D(e){let{name:t,form:n,fields:r}=e,i=r[t];return!i.hidden&&(!i.show||i.show(n.getValues()))}function _L(e){let{name:t,form:n,fields:r,size:i="small",autoComplete:a,spellCheck:o,state:l=!0,group:s=!0,type:u}=e,c=r[t],{ref:d,onChange:f,onBlur:h,error:p}=_N({name:t,form:n,field:c}),m=(0,ea.jsx)(fZ,{ref:d,name:t,placeholder:c.placeholder,size:i,autoComplete:void 0!==a?a:c.autoComplete,type:u||c.type,readOnly:c.readOnly,spellCheck:o,onClick:c.onClick,state:l?p?"invalid":n.formState.dirtyFields[t]?"valid":"default":"default",onChange:f,onBlur:h});return s?(0,ea.jsx)(S7,{title:c.title,actions:c.actions,name:t,form:n,children:m}):m}var _Z=n(84779);async function _F(e){let{api:t,route:n,password:r}=e;try{return await _T().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 _z(e){let{appName:t,route:n,routes:r}=e,i=(0,da.j0)(),{settings:a,setSettings:o}=(0,hi.Hv)(),{loginWithCustomApi:l}=a,s=(0,eo.useMemo)(()=>({api:a.api,password:""}),[a.api]),u=(0,_P.cI)({mode:"onBlur",defaultValues:s});(0,eo.useEffect)(()=>{u.clearErrors()},[l]);let c=(0,eo.useCallback)(async e=>{let t="";if(l){let n=new URL(e.api);t="".concat(n.protocol,"//").concat(n.host)}let{error:c}=await _F({api:t,route:n,password:e.password});c?u.setError("password",{message:c}):(o({api:t,password:e.password,recentApis:{...a.recentApis,[t]:{lastUsed:new Date().getTime()}}}),i.push(i.query.prev?decodeURIComponent(i.query.prev):r.home),u.reset(s))},[l,u,i,r,a,o,s,n]),d=function(e){let{loginWithCustomApi: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"}}}}({loginWithCustomApi:l}),f=_R(d),h=u.formState.errors.api||u.formState.errors.password,p=(0,_Z.Z)(Object.entries(a.recentApis),e=>{let[t,{lastUsed:n}]=e;return-n}).map(e=>{let[t]=e;return t});return(0,ea.jsx)("div",{className:"flex flex-col items-center justify-center gap-6 h-full",children:(0,ea.jsx)(nE,{className:"relative top-[-50px] w-[300px] p-2.5",children:(0,ea.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,ea.jsxs)("div",{className:"flex justify-between items-center",children:[(0,ea.jsx)(nw,{font:"mono",weight:"bold",size:"20",children:t}),(0,ea.jsx)(dt,{label:"login settings",trigger:(0,ea.jsx)(sO,{icon:"hover",variant:"ghost",children:(0,ea.jsx)(sT.shL,{})}),children:(0,ea.jsx)(dn,{onSelect:()=>o({loginWithCustomApi:!l}),children:l?"Hide custom API":"Show custom API"})})]}),(0,ea.jsx)(c0,{className:"w-full mt-2 mb-3"}),(0,ea.jsx)("form",{onSubmit:u.handleSubmit(c,f),children:(0,ea.jsxs)("div",{className:"flex flex-col gap-1.5",children:[l?(0,ea.jsxs)(sG,{children:[(0,ea.jsx)(_L,{name:"api",form:u,fields:d,group:!1}),p.length>1&&(0,ea.jsx)(dt,{trigger:(0,ea.jsx)(sO,{type:"button",children:(0,ea.jsx)(sT.wGX,{})}),children:p.map(e=>(0,ea.jsx)(dn,{onSelect:()=>u.setValue("api",e),children:e},e))})]}):null,(0,ea.jsx)(_L,{name:"password",form:u,fields:d,group:!1}),h&&(0,ea.jsx)(nw,{size:"14",color:"red",children:h.message}),(0,ea.jsx)(S9,{size:"small",form:u,children:"Unlock"})]})})]})})})}var _V=n(7114),_B=n(24511);let _I={address:"",siacoin:void 0,includeFee:!1},_H=_B.Ry().shape({address:_B.Z_().required("Required"),siacoin:_B.Z_().required("Required").test("greater than zero","Must be greater than zero",e=>!new(he())(e||0).isZero())});function _U(e){let{address:t,siacoin:n,fee:r,transactionId:i}=e,a=n.plus(r);return(0,ea.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ea.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,ea.jsx)(nw,{color:"verySubtle",noWrap:!0,children:"Address"}),(0,ea.jsx)(SD,{value:t,type:"address"})]}),(0,ea.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,ea.jsx)(nw,{color:"verySubtle",noWrap:!0,children:"Amount"}),(0,ea.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,ea.jsx)(Sz,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,ea.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,ea.jsx)(nw,{color:"verySubtle",noWrap:!0,children:"Network fee"}),(0,ea.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,ea.jsx)(Sz,{size:"14",value:r,variant:"value",dynamicUnits:!1})})]}),(0,ea.jsxs)("div",{className:"flex items-center gap-2 justify-between",children:[(0,ea.jsx)(nw,{color:"verySubtle",noWrap:!0,children:"Total"}),(0,ea.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,ea.jsx)(Sz,{size:"14",value:a,variant:"value",dynamicUnits:!1})})]}),i&&(0,ea.jsxs)("div",{className:"flex gap-6 items-center justify-between",children:[(0,ea.jsx)(nw,{color:"verySubtle",noWrap:!0,children:"Transaction ID"}),(0,ea.jsx)(SD,{value:i,type:"transaction"})]})]})}function _W(e){let{activeStep:t,steps:n,onChange:r}=e,i=n.findIndex(e=>e.id===t),a=n.length-1;return(0,ea.jsxs)("div",{className:"relative w-full mt-8 mb-3",children:[(0,ea.jsx)("div",{className:"absolute w-full h-1 bg-gray-500 dark:bg-graydark-500 rounded-lg"}),(0,ea.jsx)("div",{className:"absolute h-1 bg-accent-800 dark:bg-accentdark-800 rounded-lg",style:{width:"".concat(i/a*100,"%")}}),n.map((e,n)=>{let{id:o,label:l}=e,s=t===o,u=i>=n,c=n===a,d=0===n,f=u&&i!==a;return(0,ea.jsxs)("div",{className:(0,eW.cx)("absolute h-2 w-2 -top-0.5",f?"cursor-pointer":"cursor-default"),style:{left:"calc(".concat(n/a*100,"% - ").concat(c?8:d?0:4,"px)")},onClick:()=>{f&&r(o)},children:[(0,ea.jsx)(nw,{color:s?"contrast":"verySubtle",className:(0,eW.cx)("absolute top-[-30px]",d?"left-0":"",c?"right-0":"",d||c?"":"-translate-x-1/2"),noWrap:!0,children:l}),(0,ea.jsx)("div",{className:(0,eW.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")}),s&&(0,ea.jsx)("div",{className:"absolute left-0 top-0 h-full w-full rounded-lg bg-accent-800 dark:bg-accentdark-800 animate-pingslow"})]},o)})]})}function _q(e){let{data:{address:t,siacoin:n},fee:r,transactionId:i}=e;return(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(_U,{address:t,siacoin:n,fee:r,transactionId:i}),(0,ea.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 my-4",children:[(0,ea.jsx)(nw,{children:(0,ea.jsx)(sT.Z$8,{})}),(0,ea.jsx)(nw,{children:"Transaction successfully broadcasted."})]})]})}let _$=(0,vt.qN)(.00393),_K={address:"",siacoin:new(he())(0),includeFee:!1};function _Y(e){let{trigger:t,open:n,onOpenChange:r,balance:i,send:a}=e,[o,l]=(0,eo.useState)("setup"),[s,u]=(0,eo.useState)(),[c,d]=(0,eo.useState)(_K),f=function(e){let{balance:t,fee:n,onComplete:r}=e,i=(0,_V.TA)({initialValues:_I,validationSchema:_H,onSubmit:async e=>{if(!e.siacoin)return;let a=e.includeFee?(0,vt.qN)(e.siacoin).minus(n):(0,vt.qN)(e.siacoin);if(t){if(t.isLessThan((0,vt.qN)(e.siacoin).plus(n))){i.setStatus({error:"Not enough funds in wallet."});return}i.setStatus({}),r({includeFee:e.includeFee,address:e.address,siacoin:a})}}}),a=(0,vt.qN)(i.values.siacoin||0),o=(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(Ce,{formik:i,variants:{size:"medium"},title:"Address",name:"address",placeholder:"e3b1050aef388438668b52983cf78f40925af8f0aa8b9de80c18eadcefce8388d168a313e3f2",autoComplete:"off",type:"text"}),(0,ea.jsx)(Ce,{formik:i,title:"Siacoin",name:"siacoin",placeholder:"100",type:"siacoin"}),(0,ea.jsxs)("div",{className:"flex items-center",children:[(0,ea.jsx)(hO,{name:"includeFee",onCheckedChange:e=>i.setFieldValue("includeFee",e),children:"Include fee"}),(0,ea.jsx)(hs,{children:"Include or exclude the network fee from the above transaction value."}),(0,ea.jsx)("div",{className:"flex flex-1"})]}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2 my-1",children:[(0,ea.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,ea.jsx)(nw,{color:"verySubtle",children:"Network fee"}),(0,ea.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,ea.jsx)(Sz,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,ea.jsxs)("div",{className:"flex justify-between gap-2 items-center",children:[(0,ea.jsx)(nw,{color:"verySubtle",children:"Total"}),(0,ea.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,ea.jsx)(Sz,{size:"14",value:i.values.includeFee?a:a.plus(n),variant:"value",dynamicUnits:!1})})]})]})]});return{formik:i,form:o}}({balance:i,fee:_$,onComplete:e=>{d(e),l("confirm")}}),h=function(e){let{send:t,formData:n,fee:r,onConfirm:i}=e,{address:a,siacoin:o}=n||{},l=(0,_V.TA)({initialValues:{},onSubmit:async()=>{let{transactionId:e,error:n}=await t({address:a,sc:o});if(n){l.setStatus({error:n});return}i({transactionId:e})}});return{form:(0,ea.jsx)("div",{className:"flex flex-col gap-4",children:(0,ea.jsx)(_U,{address:a,siacoin:o,fee:r})}),formik:l}}({fee:_$,formData:c,send:a,onConfirm:e=>{let{transactionId:t}=e;u(t),l("done")}}),p=(0,eo.useMemo)(()=>"setup"===o?{submitLabel:"Generate transaction",formik:f.formik}:"confirm"===o?{submitLabel:"Broadcast transaction",formik:h.formik}:void 0,[o,f,h]);return(0,ea.jsx)(u_,{trigger:t,open:n,onOpenChange:e=>{e||(f.formik.resetForm(),h.formik.resetForm(),l("setup")),r(e)},title:"Send siacoin",onSubmit:p?p.formik.handleSubmit:void 0,controls:p&&(0,ea.jsx)("div",{className:"flex flex-col gap-1",children:(0,ea.jsx)(Co,{formik:p.formik,children:p.submitLabel})}),contentVariants:{className:"w-[400px]"},children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(_W,{onChange:e=>l(e),activeStep:o,steps:[{id:"setup",label:"Setup"},{id:"confirm",label:"Confirm"},{id:"done",label:"Complete"}]}),(0,ea.jsx)(c0,{className:"w-full mt-4"}),"setup"===o&&f.form,"confirm"===o&&h.form,"done"===o&&(0,ea.jsx)(_q,{data:c,fee:_$,transactionId:s})]})})}function _X(e){let{form:t,onOpenChange:n,defaultValues:r,initKey:i}=e,a=(0,eo.useCallback)(()=>{t.reset(r)},[t,r]),o=(0,eo.useCallback)(()=>{n(!1),t.reset(r)},[t,n,r]),l=(0,eo.useCallback)(e=>{e?(n(!0),setTimeout(()=>{a()},0)):o()},[o,a,n]),s=function(e){let[t,n]=(0,eo.useState)(e);return(0,eo.useEffect)(()=>{if(!e||!e.length)return;let r=!1;for(let n=0;n{s&&s.length&&s.every(e=>!!e)&&a()},[s]),{reset:a,closeAndReset:o,handleOpenChange:l}}let _G={address:""},_J={address:{type:"text",title:"Address",placeholder:"host.acme.com:9981 or 127.0.0.1:9981",autoComplete:"off",validation:{required:"required"}}};function _Q(e){let{trigger:t,open:n,connect:r,onOpenChange:i}=e,a=(0,_P.cI)({mode:"all",defaultValues:_G}),{handleOpenChange:o,closeAndReset:l}=_X({form:a,onOpenChange:i,defaultValues:_G}),s=(0,eo.useCallback)(async e=>{let t=await r(e.address);t.error?SC({title:t.error}):(SS({title:"Connected to peer"}),l())},[l,r]);return(0,ea.jsx)(u_,{trigger:t,title:"Connect peer",open:n,onOpenChange:o,contentVariants:{className:"w-[400px]"},onSubmit:a.handleSubmit(s),controls:(0,ea.jsx)("div",{className:"px-1",children:(0,ea.jsx)(S9,{form:a,size:"medium",className:"w-full",children:"Connect"})}),children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(nj,{size:"14",children:"Connect to a peer by IP address."}),(0,ea.jsx)(_L,{form:a,fields:_J,name:"address",size:"medium"})]})})}function _0(e){var t,n;let{id:r,transaction:i,trigger:a,open:o,onOpenChange:l}=e;return(0,ea.jsx)(u_,{title:SR((null==i?void 0:i.txType)?(0,SQ.Z)((0,vt.pX)(i.txType)):"Transaction",r,16),trigger:a,open:o,onOpenChange:l,contentVariants:{className:"w-[800px]"},children:i?(0,ea.jsxs)("div",{className:"flex flex-col gap-4 pb-10 w-full overflow-hidden",children:[(0,ea.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(null==i?void 0:i.inflow)!==void 0&&(0,ea.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,ea.jsx)(nw,{children:"Inflow"}),(0,ea.jsx)(Sz,{value:new(he())((null==i?void 0:i.inflow)||0)})]}),(null==i?void 0:i.outflow)!==void 0&&(0,ea.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,ea.jsx)(nw,{children:"Outflow"}),(0,ea.jsx)(Sz,{value:new(he())((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,ea.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,ea.jsx)(nw,{children:"Miner fee"}),(0,ea.jsx)(Sz,{value:new(he())((null==i?void 0:null===(n=i.raw.minerFees)||void 0===n?void 0:n.reduce((e,t)=>e.plus(t),new(he())(0)))||0)})]}),(0,ea.jsx)("div",{className:"flex-1"}),(0,ea.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,ea.jsx)(nw,{children:"Timestamp"}),(0,ea.jsx)(nw,{children:(null==i?void 0:i.timestamp)?(0,vt.rN)((null==i?void 0:i.timestamp)||0,{timeStyle:"short"}):"Unconfirmed"})]})]}),(0,ea.jsx)(s$,{children:JSON.stringify(null==i?void 0:i.raw,null,2)})]}):(0,ea.jsx)(nw,{children:"Could not find transaction in wallet"})})}_B.Ry().shape({address:_B.Z_().required("Required"),description:_B.Z_().required("Required"),index:_B.Rx().integer().required("Required")});var _1=n(38001);function _2(e){let{title:t,description:n,address:r}=e;return(0,ea.jsxs)("div",{className:"flex flex-col gap-4 items-center justify-center",children:[t&&(0,ea.jsx)(du,{size:"20",font:"mono",children:t}),n&&(0,ea.jsx)(nw,{children:n}),(0,ea.jsx)("div",{className:"relative p-[5px] bg-white h-[210px] w-[210px]",children:(0,ea.jsx)("div",{className:"absolute",children:(0,ea.jsx)(_1.Z,{size:200,value:r})})}),(0,ea.jsx)(SD,{type:"address",value:r})]})}function _4(e){let{address:t,isValidating:n,trigger:r,open:i,onOpenChange:a}=e;return(0,ea.jsx)(u_,{title:SR("Address",SN(t)||"",16),trigger:r,open:i,onOpenChange:a,contentVariants:{className:"w-[400px]"},children:(0,ea.jsx)("div",{className:"flex flex-col gap-4",children:t||n?(0,ea.jsx)(_2,{address:t||""}):(0,ea.jsx)(nw,{children:"Could not retreive wallet address"})})})}function _3(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i}=e;return t?n?null:(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(nw,{color:"amber",children:(0,ea.jsx)(sT.qdM,{})}),(0,ea.jsxs)(nw,{size:"14",children:["Wallet is scanning (",i,"%), transaction data may be incomplete."]})]}):(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(nw,{color:"amber",children:(0,ea.jsx)(sT.qdM,{})}),(0,ea.jsxs)(nw,{size:"14",children:["Blockchain is syncing (",r,"%), transaction data may be incomplete."]})]})}let _5={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://jobs.lever.co/the-sia-foundation"};function _6(){let{settings:e,setCurrency:t,currencyOptions:n}=(0,hi.Hv)();return(0,ea.jsx)(hf,{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,ea.jsx)(hh,{value:t,children:n},t)})})}let _8=[{id:"sc",label:"Siacoin"},{id:"fiat",label:"Fiat"},{id:"bothPreferSc",label:"Both - prefer siacoin"},{id:"bothPreferFiat",label:"Both - prefer fiat"}];function _7(){let{settings:e,setSettings:t}=(0,hi.Hv)();return(0,ea.jsx)(hf,{disabled:!e.siaCentral,value:e.currencyDisplay,onChange:e=>t({currencyDisplay:e.currentTarget.value}),children:_8.map(e=>{let{id:t,label:n}=e;return(0,ea.jsx)(hh,{value:t,children:n},t)})})}function _9(e){let{open:t,onOpenChange:n,securityEl:r,showGpuSetting:i}=e,{settings:a,setSettings:o,gpu:l}=(0,hi.Hv)();return(0,ea.jsx)(u_,{open:t,title:"App preferences",onOpenChange:n,contentVariants:{className:"w-[450px]"},children:(0,ea.jsxs)("div",{className:"flex flex-col gap-6 mb-2",children:[(0,ea.jsx)("div",{className:"flex flex-col gap-4",children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(nw,{size:"16",weight:"bold",children:"Display"}),(0,ea.jsx)(nj,{size:"14",children:"Configure visual and locale display preferences."}),(0,ea.jsx)(sA,{children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(nw,{children:(0,ea.jsx)(sT.RdX,{})}),(0,ea.jsx)(du,{size:"20",className:"flex-1",children:"Currency display"}),(0,ea.jsx)(_7,{})]}),(0,ea.jsx)(nj,{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,ea.jsx)(sA,{children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(nw,{children:(0,ea.jsx)(sT.RdX,{})}),(0,ea.jsx)(du,{size:"20",className:"flex-1",children:"Fiat"}),(0,ea.jsx)(_6,{})]}),(0,ea.jsx)(nj,{size:"14",children:"Select a fiat currency for price conversions from Siacoin. Requires Sia Central third-party data enabled under Privacy."})]})}),(0,ea.jsx)(sA,{children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(nw,{children:(0,ea.jsx)(sT.RdX,{})}),(0,ea.jsx)(du,{size:"20",className:"flex-1",children:"Theme"}),(0,ea.jsx)(p7,{})]}),(0,ea.jsx)(nj,{size:"14",children:"Switch between a dark or light mode, or follow your system's settings."})]})}),i&&(0,ea.jsx)(sA,{children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(nw,{children:(0,ea.jsx)(sT.RdX,{})}),(0,ea.jsx)(du,{size:"20",className:"flex-1",children:"GPU"}),(0,ea.jsx)(hO,{disabled:!l.canGpuRender,checked:l.canGpuRender&&l.isGpuEnabled,onCheckedChange:l.setIsGpuEnabled,size:"medium"})]}),(0,ea.jsxs)(nj,{size:"14",children:["Enable features that require a GPU."," ",l.canGpuRender?"":"This device does not support GPU rendering."]})]})})]})}),(0,ea.jsx)(c0,{className:"w-full"}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ea.jsx)(nw,{size:"16",weight:"bold",children:"Security"}),(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(nj,{size:"14",children:"Configure security preferences."}),(0,ea.jsx)(sA,{children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(nw,{children:(0,ea.jsx)(sT.RdX,{})}),(0,ea.jsx)(du,{size:"20",className:"flex-1",children:"Lock app"}),(0,ea.jsx)(hO,{size:"medium",checked:a.autoLock,onCheckedChange:e=>o({autoLock:e})}),(0,ea.jsxs)(hf,{disabled:!a.autoLock,value:String(a.autoLockTimeout),onChange:e=>{o({autoLockTimeout:Number(e.currentTarget.value)})},children:[(0,ea.jsx)(hh,{value:kz(5),children:"5 minutes"}),(0,ea.jsx)(hh,{value:kz(10),children:"10 minutes"}),(0,ea.jsx)(hh,{value:kz(20),children:"20 minutes"}),(0,ea.jsx)(hh,{value:kz(30),children:"30 minutes"}),(0,ea.jsx)(hh,{value:kz(60),children:"1 hour"})]})]}),(0,ea.jsx)(nj,{size:"14",children:"Automatically lock the app after a certain period of inactivity."})]})}),r]})]}),(0,ea.jsx)(c0,{className:"w-full"}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ea.jsx)(nw,{size:"16",weight:"bold",children:"Privacy"}),(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(nj,{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,ea.jsx)(sA,{children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,ea.jsx)(nw,{children:(0,ea.jsx)(sT.RdX,{})}),(0,ea.jsx)(du,{size:"20",className:"flex-1",children:"Sia Central"}),(0,ea.jsx)(hO,{size:"medium",checked:a.siaCentral,onCheckedChange:e=>o({siaCentral:e})})]}),(0,ea.jsx)(nj,{size:"14",children:"The app fetches Siacoin exchange rates from the Sia Central API."})]})})]})]}),(0,ea.jsx)(c0,{className:"w-full"}),(0,ea.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,ea.jsx)(nw,{size:"16",weight:"bold",children:"Help"}),(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,ea.jsx)(nj,{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,ea.jsxs)("div",{className:"flex gap-4",children:[(0,ea.jsxs)(dx,{href:_5.website.index,target:"_blank",className:"flex items-center gap-1",children:[(0,ea.jsx)(sT.lq1,{}),"Website"]}),(0,ea.jsxs)(dx,{href:_5.docs.index,target:"_blank",className:"flex items-center gap-1",children:[(0,ea.jsx)(sT.RdX,{}),"Docs"]}),(0,ea.jsxs)(dx,{href:_5.github.index,target:"_blank",className:"flex items-center gap-1",children:[(0,ea.jsx)(sT.Sfn,{}),"About"]}),(0,ea.jsxs)(dx,{href:_5.discord,target:"_blank",className:"flex items-center gap-1",children:[(0,ea.jsx)(sT.b47,{}),"Discord"]})]})]})]})]})})}function Oe(e){let{balanceSc:t,isSynced:n,syncingMessage:r}=e;return t?n?(0,ea.jsx)(_e,{side:"bottom",balanceSc:t,children:(0,ea.jsx)(nE,{className:"hidden sm:flex h-7 px-3 items-center",children:(0,ea.jsx)(SI,{variant:"value",value:t.spendable.plus(t.unconfirmed),size:"12",showTooltip:!1})})}):(0,ea.jsx)(sM,{content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,ea.jsxs)(nE,{className:"hidden sm:flex h-7 pl-2 pr-3 gap-1.5 items-center",children:[(0,ea.jsx)(nw,{color:"amber",children:(0,ea.jsx)(sT.qdM,{})}),(0,ea.jsx)(SI,{variant:"value",value:t.spendable.plus(t.unconfirmed),size:"12",showTooltip:!1})]})}):null}function Ot(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i,balanceSc:a,sendSiacoin:o,receiveSiacoin:l}=e;return(0,ea.jsxs)(ea.Fragment,{children:[a&&(0,ea.jsx)(Oe,{isSynced:t&&n,syncingMessage:t?"Wallet is scanning (".concat(i,"%), balance may be incorrect."):"Blockchain is syncing (".concat(r,"%), balance may be incorrect."),balanceSc:a}),l&&(0,ea.jsxs)(sO,{size:"small",onClick:l,children:[(0,ea.jsx)(sT.xHM,{}),"Receive"]}),(0,ea.jsxs)(sO,{size:"small",variant:"accent",onClick:o,children:[(0,ea.jsx)(sT.rW0,{}),"Send"]})]})}function On(e,t){if(!e||!e.length)return[];let n=Object.keys((0,kF.Z)(e[0],"timestamp"));e.sort((e,t)=>e.timestamp>t.timestamp?1:-1);let r=[];return"delta"===t?e.forEach((t,i)=>{let a={...t};0!==i&&(n.forEach(n=>{let r=t[n],o=e[i-1][n];a[n]=r-o}),r.push(a))}):r=e,r}let Or={"5m":e=>{let t=e+kz(5);return"5m interval from ".concat((0,vt.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,vt.rN)(t,{timeStyle:"short",hour12:!1}))},"15m":e=>{let t=e+kz(15);return"15m interval from ".concat((0,vt.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,vt.rN)(t,{timeStyle:"short",hour12:!1}))},hourly:e=>"Hour interval from ".concat((0,vt.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,vt.rN)(e+36e5,{timeStyle:"short",hour12:!1})),daily:e=>"Day interval from ".concat((0,vt.rN)(e)," to ").concat((0,vt.rN)(e+864e5)),weekly:e=>{let t=e+kV(7);return"Week interval from ".concat((0,vt.rN)(e)," to ").concat((0,vt.rN)(t))},monthly:e=>{let t=e+kV(30);return"Month interval from ".concat((0,vt.rN)(e)," to ").concat((0,vt.rN)(t))},yearly:e=>{let t=e+kV(365);return"Year interval from ".concat((0,vt.rN)(e)," to ").concat((0,vt.rN)(t))},default:e=>"".concat((0,vt.rN)(e))};function Oi(e){return Or[e]||Or.default}function Oa(e){if(!e||!e.length)return{};let t=Object.keys((0,kF.Z)(e[0],"timestamp"));return e.sort((e,t)=>e.timestamp>t.timestamp?1:-1),{...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,a=(null===(r=t[t.length-1])||void 0===r?void 0:r[e])||0;return Oo({total:t.reduce((t,n)=>t+(n[e]||0),0),start:i,end:a,count:t.length})}(n,e)}),{}),total:function(e,t){let n=Ol(e,t[0]),r=Ol(e,t[t.length-1]);return Oo({total:t.reduce((t,n)=>t+Ol(e,n),0),start:n,end:r,count:t.length})}(t,e)}}function Oo(e){let{total:t,start:n,end:r,count:i}=e,a=r-n;return{total:t,diff:a,change:0===n?void 0:a/n*100,latest:r,average:t/i}}function Ol(e,t){return e.reduce((e,n)=>e+((null==t?void 0:t[n])||0),0)}function Os(e){let{balances:t,isLoading:n,chartType:r="area"}=e,{resolvedTheme:i}=(0,p6.F)(),a=(0,eo.useMemo)(()=>"light"===i?{sc:{label:"siacoin",color:ve.accent[800]}}:{sc:{label:"siacoin",color:ve.accentdark[800]}},[i]),o=(0,eo.useMemo)(()=>({data:On(t,"none"),stats:Oa(t),config:{enabledGraph:["sc"],enabledTip:["sc"],data:{sc:a.sc},format:e=>(0,vt.Vz)(e),formatTimestamp:Oi("default"),formatTickY:e=>(0,vt.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:r},isLoading:n}),[t,n,a,r]);return(0,ea.jsx)("div",{className:"relative",children:(0,ea.jsx)(k1,{id:"all/v0/wallet/balance",height:200,allowConfiguration:!1,data:o.data,config:o.config})})}function Ou(e){let{peers:t,isLoading:n,connectPeer:r}=e;return(0,ea.jsx)(S4,{title:"Peers",actions:(0,ea.jsx)(sO,{onClick:r,children:"Connect"}),isLoading:n,dataset:(null==t?void 0:t.map(e=>({type:"ip",hash:e})))||[]})}function Oc(e){let{size:t,label:n,enabled:r=!0,onChange:i,color:a}=e;return(0,ea.jsxs)("div",{className:(0,eW.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:[a&&(0,ea.jsx)("div",{className:"relative top-px",children:(0,ea.jsx)(hv,{style:{backgroundColor:a}})}),(0,ea.jsx)(nw,{size:t,children:n})]})}function Od(e){let{children:t,variant:n,align:r}=e;return(0,ea.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,ea.jsx)(nw,{size:"10",color:"contrast",dir:"start"===r?"rtl":"ltr",weight:"primary"===n?"semibold":"regular",ellipsis:!0,children:t})})}function Of(e){let{date:t,align:n,variant:r}=e;return t?(0,ea.jsx)(Od,{variant:r,align:n,children:(0,vt.rN)(t)}):null}function Oh(e){let{blockHeight:t,align:n,variant:r}=e;return t?(0,ea.jsx)(Od,{variant:r,align:n,children:t.toLocaleString()}):null}function Op(e){let{label:t,currentHeight:n,range:r,startHeight:i,endHeight:a,color:o,align:l,rounded:s,className:u,showDates:c}=e;if(!i||!a)return null;let d=r.endHeight-r.startHeight,f=(0,vt.pp)(d),h=(0,vt.jr)(n,r.startHeight),p=(0,vt.jr)(n,i),m=(0,vt.jr)(n,a),g=(p-h)/f,v=(m-h)/f;return(0,ea.jsxs)("div",{className:(0,eW.cx)("group flex items-center justify-center","absolute -top-[5px] h-4","cursor-pointer","transition-colors"),style:{left:Om(g),width:Om(v-g)},children:[(0,ea.jsx)("div",{className:(0,eW.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,ea.jsx)("div",{className:(0,eW.cx)("z-10 absolute w-full h-1.5",u,"start"===s?"rounded-l-lg":"end"===s?"rounded-r-lg":"rounded-lg","border-y","start"===s?"border-l":"end"===s?"border-r":"border","blue"===o?["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"===o?["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"===o?["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,ea.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 bottom-[100%]",style:"center"===l?{width:"100%"}:"end"===l?{right:Om(1-v)}:{left:Om(g)},children:[(0,ea.jsx)(Oh,{blockHeight:i,align:"start",variant:"primary"}),(0,ea.jsx)(Od,{variant:"primary",children:t}),(0,ea.jsx)(Oh,{blockHeight:a,align:"end",variant:"primary"})]}),c&&(0,ea.jsxs)("div",{className:"flex group-hover/segments:hidden absolute justify-between gap-2 top-[100%]",style:"center"===l?{width:"100%"}:"end"===l?{right:Om(1-v)}:{left:Om(g)},children:[(0,ea.jsx)(Of,{date:p,align:"start",variant:"secondary"}),(0,ea.jsx)(Of,{date:m,align:"start",variant:"secondary"})]}),(0,ea.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 top-[100%]",style:"center"===l?{width:"100%"}:"end"===l?{right:Om(1-v)}:{left:Om(g)},children:[(0,ea.jsx)(Of,{date:p,align:"start",variant:"secondary"}),(0,ea.jsx)(Of,{date:m,align:"start",variant:"secondary"})]})]})}function Om(e){return"".concat(100*e,"%")}function Og(e){var t;let{currentHeight:n,eventHeight:r,range:i,label:a,bottomLabel:o,color:l,className:s,unconfirmedPing:u=!0}=e,c=!!r&&r>n,d=r&&!c&&n-r<6,f=i.endHeight-i.startHeight,h=(0,vt.pp)(f),p=(0,vt.jr)(n,i.startHeight),m=r?(0,vt.jr)(n,r):0;return r?(0,ea.jsx)("div",{className:(0,eW.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:(t=m?(m-p)/h:0,"".concat(100*t,"%"))},children:(0,ea.jsxs)("div",{className:(0,eW.cx)("relative w-full h-full","flex items-center justify-center","rounded-full cursor-pointer"),children:[u&&d&&(0,ea.jsx)("div",{className:(0,eW.cx)("z-0 absolute w-1.5 h-1.5","rounded-full","bg-amber-500 dark:bg-amber-200","animate-pingslow")}),(0,ea.jsx)("div",{className:(0,eW.cx)("z-0 absolute w-4 h-4","rounded-full","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10")}),(0,ea.jsx)("div",{className:(0,eW.cx)("absolute w-1.5 h-1.5","rounded-full","border","green"===l?["bg-green-500 dark:bg-green-500","group-hover:bg-green-600 dark:group-hover:bg-green-600","border-white dark:border-white"]:[],"amber"===l?["bg-amber-500 dark:bg-amber-500","group-hover:bg-amber-600 dark:group-hover:bg-amber-600","border-white dark:border-white"]:[],"gray"===l?["bg-gray-700 dark:bg-graydark-900","group-hover:bg-gray-800 dark:group-hover:bg-graydark-800","border-white dark:border-white"]:[],"blue"===l?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-white dark:border-white"]:[])}),(0,ea.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 bottom-[100%] left-1.5",children:[(0,ea.jsx)(Oh,{blockHeight:r,align:"start",variant:"primary"}),(0,ea.jsx)(Od,{variant:"primary",children:a})]}),(0,ea.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 top-[100%] left-1.5",children:[(0,ea.jsx)(Of,{date:m,align:"start",variant:"secondary"}),o&&(0,ea.jsx)(Od,{variant:"secondary",children:o})]})]})}):null}function Ov(e){let{currentHeight:t,contractHeightStart:n,contractHeightEnd:r,proofWindowHeightStart:i,proofWindowHeightEnd:a,revisionHeight:o,proofHeight:l,range:s}=e,u=t-n<6;return(0,ea.jsx)("div",{className:"group/main relative w-full",children:(0,ea.jsx)("div",{className:"relative py-6",children:(0,ea.jsxs)("div",{className:"relative z-10 h-1.5",children:[(0,ea.jsx)("div",{className:"absolute h-full w-full bg-gray-300 dark:bg-graydark-400 rounded-lg"}),(0,ea.jsxs)("div",{className:"group/segments",children:[(0,ea.jsx)(Op,{label:"contract duration",currentHeight:t,startHeight:n,endHeight:r,range:s,color:"blue",align:"center",rounded:"start",className:u?"border-dotted opacity-50":"",showDates:!0}),(0,ea.jsx)(Op,{label:"proof window",currentHeight:t,startHeight:i,endHeight:a,range:s,color:"green",align:"end",rounded:"end",className:u?"border-dotted opacity-50":""}),(0,ea.jsx)(Og,{label:"contract formation",bottomLabel:u?"unconfirmed":"",currentHeight:t,eventHeight:n,range:s,color:u?"amber":"blue",className:"z-20"}),(0,ea.jsx)(Og,{label:"last revision",currentHeight:t,eventHeight:o,range:s,color:"green",className:"z-20"}),(0,ea.jsx)(Og,{label:"storage proof",currentHeight:t,eventHeight:l,range:s,color:"green",className:"z-20"}),(0,ea.jsx)(Og,{label:"current block",currentHeight:t,eventHeight:t,range:s,color:"gray",className:"z-10",unconfirmedPing:!1})]})]})})})}var Oy=n(90463),Ox=n(58527),Ob=n(40704),Ow=n(95598),Oj=n(93225),Ok=n(11749),OE=function(e,t,n,r){var i=-1,a=Ox.Z,o=!0,l=e.length,s=[],u=t.length;if(!l)return s;n&&(t=(0,Ow.Z)(t,(0,Oj.Z)(n))),r?(a=Ob.Z,o=!1):t.length>=200&&(a=Ok.Z,o=!1,t=new Oy.Z(t));t:for(;++i{e.stopPropagation(),i(n)},children:(0,ea.jsx)(sT.xVB,{})}),(0,ea.jsx)(sO,{icon:l?"contrast":"hover",tip:"".concat(t,": hide all"),variant:"ghost",onClick:e=>{e.stopPropagation(),a(n)},children:(0,ea.jsx)(sT.pHg,{})})]})]})}function OT(e){let{title:t,children:n}=e;return(0,ea.jsxs)("div",{className:"flex flex-col gap-6",children:[t&&(0,ea.jsx)(du,{anchorLink:!0,size:"24",children:t}),(0,ea.jsx)(nE,{className:"p-6",children:(0,ea.jsx)("div",{className:"flex flex-col gap-6",children:(0,ea.jsx)(M4,{separator:(0,ea.jsx)(c0,{className:"w-full my-3"}),children:n})})})]})}function OP(e){let{id:t,title:n,description:r,control:i}=e;return(0,ea.jsxs)("div",{className:"flex gap-10 justify-between","data-testid":t,children:[(0,ea.jsxs)("div",{className:"flex flex-col gap-2 max-w-[600px]",children:[(0,ea.jsx)(du,{id:t||n,anchorLink:!0,size:"20",children:n}),(0,ea.jsx)(nj,{size:"14",children:r})]}),(0,ea.jsx)("div",{className:"",children:i})]})}function OA(e){let{open:t,params:n,trigger:r,onOpenChange:i}=e,{body:a,title:o,variant:l,action:s,onConfirm:u}=n||{},c=(0,_P.cI)(),d=(0,eo.useCallback)(()=>{u&&u(),i(!1)},[u,i]);return(0,ea.jsx)(u_,{title:o,trigger:r,open:t,onOpenChange:i,contentVariants:{className:"w-[400px]"},children:(0,ea.jsx)("form",{onSubmit:c.handleSubmit(d),children:(0,ea.jsxs)("div",{className:"flex flex-col gap-4",children:[a,(0,ea.jsx)("div",{className:"flex gap-1 justify-end",children:(0,ea.jsx)(S9,{variant:l,form:c,size:"small",children:s})})]})})})}function ON(e){let{name:t,peerCount:n,isSynced:r,nodeBlockHeight:i,connectPeer:a}=e;return(0,ea.jsxs)("div",{className:"flex justify-between items-center",children:[(0,ea.jsx)(nw,{font:"mono",weight:"bold",size:"20",children:t}),(0,ea.jsxs)("div",{className:"flex items-center",children:[n?(0,ea.jsxs)(sO,{className:"relative left-2 only:left-0",variant:"ghost",onClick:a,tip:"".concat(n," connected peers"),children:[(0,ea.jsx)(nw,{color:"subtle",children:n.toLocaleString()}),(0,ea.jsx)(sT.RK4,{})]}):null,i&&r?(0,ea.jsx)(sM,{content:"Blockchain is synced",children:(0,ea.jsx)("div",{className:"relative left-2",children:(0,ea.jsxs)(sO,{variant:"ghost",state:"waiting",children:[(0,ea.jsx)(nw,{color:"subtle",children:i.toLocaleString()}),(0,ea.jsx)(nw,{color:"green",children:(0,ea.jsx)(sT.Y3p,{})})]})})}):null]})]})}function OR(e){let{nodeBlockHeight:t,networkBlockHeight:n,moreThan100BlocksToSync:r,percent:i}=e;return(0,ea.jsxs)("div",{className:"flex flex-col justify-between h-full mb-1",children:[(0,ea.jsx)(d3,{variant:"accent",value:t&&n?t:0,max:n||1,className:""}),(0,ea.jsxs)("div",{className:"flex justify-between mt-1.5",children:[(0,ea.jsx)(nw,{color:"subtle",size:"10",children:"Syncing..."}),t&&n?r?(0,ea.jsx)(nw,{color:"subtle",size:"10",children:"".concat(t.toLocaleString()," / ").concat(n.toLocaleString()," (").concat(i,"%)")}):(0,ea.jsx)(nw,{color:"subtle",size:"10",children:"(".concat(i,"%)")}):null]})]})}function OD(e){let{name:t,peerCount:n,connectPeer:r,isSynced:i,syncPercent:a,nodeBlockHeight:o,estimatedBlockHeight:l,firstTimeSyncing:s,moreThan100BlocksToSync:u,children:c}=e;return(0,ea.jsx)(pg,{rootProps:{openDelay:100,closeDelay:1e3},contentProps:{side:"right",align:"start",sideOffset:5,className:"!max-w-none"},trigger:(0,ea.jsxs)("div",{className:"relative hover:scale-105 transition-transform",children:[i||100===a||0===a?null:(0,ea.jsx)("div",{className:"absolute -bottom-2.5 w-full flex justify-center",children:(0,ea.jsxs)(nw,{className:"bg-amber-500 py-px px-1 rounded-sm scale-75",size:"10",children:[a,"%"]})}),(0,ea.jsx)(dj,{size:30})]}),children:(0,ea.jsxs)("div",{className:"flex flex-col gap-2 px-1 pt-1 pb-2 w-[350px]",children:[(0,ea.jsx)(ON,{nodeBlockHeight:o,isSynced:i,name:t,peerCount:n,connectPeer:r}),i?(0,ea.jsx)(c0,{className:"w-full mb-0.5"}):(0,ea.jsx)(OR,{percent:a,nodeBlockHeight:o,networkBlockHeight:l,moreThan100BlocksToSync:u}),s&&(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsx)(nw,{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,ea.jsx)(c0,{className:"w-full mb-1"})]}),c]})})}function OL(e){let{testnetName:t}=e;return(0,ea.jsxs)("div",{className:"flex gap-2 items-center justify-center py-2 px-3 bg-amber-600 dark:bg-amber-500",children:[(0,ea.jsx)(nw,{color:"lo",children:(0,ea.jsx)(sT.RdX,{})}),(0,ea.jsxs)(nw,{size:"14",color:"lo",children:["You are on the ",t," testnet."]})]})}function OZ(e){let{type:t,label:n,link:r,tip:i,icon:a,value:o,onClick:l,format:s,decimalsLimit:u,units:c}=e;return(0,ea.jsxs)("div",{className:"flex justify-between items-center",children:[(0,ea.jsx)(sM,{align:"start",side:"bottom",content:i,children:(0,ea.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,ea.jsx)(nw,{className:"flex relative",children:a||(0,ea.jsx)(sT.RdX,{})}),(0,ea.jsx)(nw,{size:"12",ellipsis:!0,children:r?(0,ea.jsx)(dx,{href:r,target:"_blank",children:n}):n})]})}),(0,ea.jsx)("div",{role:"button",tabIndex:0,"aria-label":n,className:(0,eW.cx)("flex items-center",l?"cursor-pointer":""),onClick:()=>{l&&l(o)},children:"siacoin"===t?(0,ea.jsx)(SI,{value:o,variant:"value",size:"12",fixed:u,dynamicUnits:!1,showTooltip:!1,tipSide:"bottom"}):(0,ea.jsx)(SH,{value:o,variant:"value",size:"12",format:s||(e=>"".concat(ht(e,u)).concat(c?" ".concat(c):"")),tipSide:"bottom"})})]})}function OF(e){let{name:t,form:n,fields:r,size:i="small",group:a=!0}=e,o=r[t],{placeholder:l,average:s,suggestion:u,units:c,decimalsLimitSc:d=6,decimalsLimitFiat:f=6}=o,{setValue:h,onBlur:p,value:m,error:g}=_N({name:t,field:o,form:n}),v=(0,eo.useMemo)(()=>l?new(he())(l):u&&"boolean"!=typeof u?new(he())(u):s&&"boolean"!=typeof s?new(he())(s):void 0,[l,u,s]),y=(0,ea.jsx)(hl,{name:t,size:i,sc:m,units:c,decimalsLimitSc:d,decimalsLimitFiat:f,readOnly:o.readOnly,error:g,changed:n.formState.dirtyFields[t],placeholder:v,onChange:e=>{h(e,!0)},onBlur:p});return a?(0,ea.jsx)(S7,{title:o.title,name:t,form:n,children:y}):y}function Oz(e){let{form:t,fields:n,name:r}=e;return(0,eo.useCallback)((e,i)=>{OV({form:t,fields:n,name:r,value:e,options:i})},[r,t,n])}function OV(e){var t;let{form:n,fields:r,name:i,value:a,options:o}=e;n.setValue(i,a,"boolean"==typeof o?o?{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0}:void 0:o),null===(t=r[i].trigger)||void 0===t||t.forEach(e=>n.trigger(e))}function OB(e){let{form:t,fields:n,values:r,options:i}=e;for(let[e,a]of Object.entries(r))OV({form:t,fields:n,name:e,value:a,options:i})}function OI(e){let{name:t,form:n,fields:r}=e,{average:i,averageTip:a,suggestionLabel:o,suggestion:l,suggestionTip:s,before:u,after:c,tipsDecimalsLimitSc:d=0}=r[t],f=Oz({name:t,fields:r,form:n});return(0,ea.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,ea.jsxs)("div",{className:"flex flex-col w-[260px]",children:[(0,ea.jsx)(u||(()=>null),{name:t,form:n,fields:r}),(0,ea.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,ea.jsx)(OF,{name:t,fields:r,form:n,group:!1,size:"small"}),i&&(0,ea.jsx)(OZ,{type:"siacoin",label:"Network average",tip:a||"Averages provided by Sia Central.",decimalsLimit:d,value:(0,vt.qN)(i),onClick:()=>{f(i,!0)}}),l&&s&&(0,ea.jsx)(OZ,{type:"siacoin",label:o||"Suggestion",tip:s,decimalsLimit:d,value:(0,vt.qN)(l),onClick:()=>{f(l,!0)}}),(0,ea.jsx)(c||(()=>null),{name:t,form:n,fields:r})]})]}),(0,ea.jsx)("div",{className:"h-[20px]",children:(0,ea.jsx)(S6,{form:n,name:t})})]})}function OH(e){let{name:t,form:n,fields:r,size:i="small",group:a=!0}=e,o=r[t],{placeholder:l,average:s,suggestion:u,units:c,decimalsLimit:d=2,disableGroupSeparators:f,autoComplete:h,prefix:p}=o,{setValue:m,onBlur:g,error:v,value:y}=_N({form:n,field:o,name:t}),x=(0,eo.useMemo)(()=>l?new(he())(l):u&&"boolean"!=typeof u?new(he())(u):s&&"boolean"!=typeof s?new(he())(s):void 0,[l,u,s]),b=(0,ea.jsx)(hr,{prefix:p,name:t,value:y,units:c,size:i,decimalsLimit:d,disableGroupSeparators:f,autoComplete:h,placeholder:x?new(he())(x):void 0,state:v?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:e=>{m(void 0!==e?new(he())(e):void 0,!0)},onBlur:g});return a?(0,ea.jsx)(S7,{title:o.title,name:t,form:n,wrap:!0,children:b}):b}function OU(e){let{name:t,form:n,fields:r}=e,{average:i,averageTip:a,suggestionLabel:o,suggestion:l,suggestionTip:s,decimalsLimit:u=2,after:c,units:d}=r[t],f=Oz({form:n,fields:r,name:t});return(0,ea.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,ea.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,ea.jsx)(OH,{name:t,fields:r,form:n,group:!1}),i&&(0,ea.jsx)(OZ,{type:"number",label:"Network average",tip:a||"Averages provided by Sia Central.",decimalsLimit:u,value:i,onClick:()=>{f(i,!0)}}),l&&s&&(0,ea.jsx)(OZ,{type:"number",label:o||"Suggestion",tip:s,decimalsLimit:u,value:l,units:d,onClick:()=>{f(l,!0)}}),(0,ea.jsx)(c||(()=>null),{name:t,form:n,fields:r})]}),(0,ea.jsx)("div",{className:"h-[20px]",children:(0,ea.jsx)(S6,{form:n,name:t})})]})}function OW(e){let{label:t,link:n,tip:r,value:i,onClick:a}=e;return(0,ea.jsxs)("div",{className:"flex justify-between gap-1 items-center overflow-hidden",children:[(0,ea.jsx)("div",{children:(0,ea.jsx)(sM,{align:"start",side:"bottom",content:r,children:(0,ea.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,ea.jsx)(nw,{className:"flex relative",children:(0,ea.jsx)(sT.RdX,{})}),(0,ea.jsx)(nw,{size:"12",children:n?(0,ea.jsx)(dx,{href:n,target:"_blank",children:t}):t})]})})}),(0,ea.jsx)("div",{className:"overflow-hidden",children:(0,ea.jsx)(nw,{role:"button",tabIndex:0,"aria-label":t,className:"flex cursor-pointer items-center",onClick:a,size:"12",children:(0,ea.jsx)(sY,{ellipsis:!0,className:"block",children:i})})})]})}function Oq(e){let{name:t,form:n,fields:r,type:i}=e,{suggestionLabel:a,suggestion:o,suggestionTip:l}=r[t],s=Oz({form:n,name:t,fields:r});return(0,ea.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,ea.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,ea.jsx)(_L,{name:t,form:n,fields:r,type:i,group:!1}),o&&l&&(0,ea.jsx)(OW,{label:a||"Suggestion",tip:l,value:o,onClick:()=>{s(o,!0)}})]}),(0,ea.jsx)("div",{className:"h-[20px]",children:(0,ea.jsx)(S6,{form:n,name:t})})]})}function O$(e){let{name:t,form:n,fields:r,size:i="medium",group:a=!0,before:o,children:l}=e,s=r[t],{setValue:u,onBlur:c,value:d,error:f}=_N({name:t,field:s,form:n}),h=(0,ea.jsxs)("div",{className:"flex gap-1 items-center",children:[o,(0,ea.jsx)(hO,{"aria-label":t,name:t,size:i,checked:d,state:f?"invalid":n.formState.dirtyFields[t]?"valid":"default",onCheckedChange:e=>{u(e,!0)},onBlur:c}),l]});return a?(0,ea.jsx)(S7,{title:s.title,name:t,form:n,className:"pb-[1.5px]",children:h}):h}function OK(e){let{name:t,form:n,fields:r}=e,{suggestionLabel:i,suggestion:a,suggestionTip:o}=r[t],l=Oz({form:n,name:t,fields:r});return(0,ea.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,ea.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,ea.jsx)("div",{className:"flex justify-end w-full",children:(0,ea.jsx)(O$,{name:t,form:n,fields:r,group:!1})}),void 0!==a&&o&&(0,ea.jsx)(OW,{label:i||"Suggestion",tip:o,value:a?"on":"off",onClick:()=>{l(a,!0)}})]}),(0,ea.jsx)("div",{className:"h-[20px]",children:(0,ea.jsx)(S6,{form:n,name:t})})]})}function OY(e){let{name:t,form:n,fields:r,size:i="small",group:a=!0}=e,o=r[t],{options:l}=o,{ref:s,onChange:u,onBlur:c,error:d}=_N({name:t,form:n,field:o}),f=(0,ea.jsx)(hf,{ref:s,name:t,size:i,state:d?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:u,onBlur:c,children:null==l?void 0:l.map(e=>(0,ea.jsx)(hh,{value:e.value,children:e.label},e.value))});return a?(0,ea.jsx)(S7,{title:o.title,name:t,form:n,children:f}):f}function OX(e){let{name:t,form:n,fields:r}=e,{suggestionLabel:i,suggestion:a,suggestionTip:o}=r[t],l=Oz({form:n,name:t,fields:r});return(0,ea.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,ea.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,ea.jsx)("div",{className:"flex justify-end w-full",children:(0,ea.jsx)(OY,{name:t,fields:r,form:n,group:!1,size:"small"})}),a&&o&&(0,ea.jsx)(OW,{label:i||"Suggestion",tip:o,value:a,onClick:()=>{l(a,!0)}})]}),(0,ea.jsx)("div",{className:"h-[20px]",children:(0,ea.jsx)(S6,{form:n,name:t})})]})}function OG(e){let{name:t,form:n,fields:r}=e,i=r[t],a=i.custom||(()=>null);return"custom"===i.type?(0,ea.jsx)(a,{form:n,name:t,fields:r}):"number"===i.type?(0,ea.jsx)(OU,{form:n,name:t,fields:r}):"siacoin"===i.type?(0,ea.jsx)(OI,{form:n,name:t,fields:r}):"text"===i.type?(0,ea.jsx)(Oq,{form:n,name:t,fields:r}):"password"===i.type?(0,ea.jsx)(Oq,{form:n,type:"password",fields:r,name:t}):"boolean"===i.type?(0,ea.jsx)(OK,{form:n,name:t,fields:r}):"select"===i.type?(0,ea.jsx)(OX,{form:n,name:t,fields:r}):null}function OJ(e){let{name:t,form:n,fields:r,autoVisibility:i}=e,a=r[t],o=_D({form:n,fields:r,name:t});return!i||o?(0,ea.jsx)(OP,{id:t,title:a.title,description:a.description,control:(0,ea.jsx)(OG,{form:n,name:t,fields:r})}):null}function OQ(e){let{title:t,category:n,form:r,fields:i}=e,a=Object.entries(i).filter(e=>{let[t,a]=e;return a.category===n&&_D({form:r,fields:i,name:t})}).map(e=>{let[t]=e;return t});return 0===a.length?null:(0,ea.jsx)(OT,{title:t,children:a.map(e=>(0,ea.jsx)(OJ,{name:e,form:r,fields:i},e))})}function O0(e){let{name:t,form:n,fields:r,size:i="small",currency:a,group:o=!0}=e,{settings:l}=(0,hi.Hv)(),s=(0,ha.BW)({disabled:!l.siaCentral,config:{swr:{revalidateOnFocus:!1}}}),u=(0,eo.useMemo)(()=>{var e;return new(he())(l.siaCentral&&s.data&&a&&(null===(e=s.data)||void 0===e?void 0:e.rates.sc[a])||0)},[s.data,l,a]),c=r[t],{placeholder:d,decimalsLimit:f=2,units:h}=c,{setValue:p,onBlur:m,error:g,value:v}=_N({form:n,field:c,name:t}),y=(0,eo.useMemo)(()=>hi.mV.find(e=>e.id===a),[a]),x=n.formState.dirtyFields[t],b=(0,ea.jsxs)("div",{className:(0,eW.cx)("flex flex-col","focus-within:ring ring-blue-500 dark:ring-blue-200","border",c.readOnly?"bg-gray-200 dark:bg-graydark-300":"bg-white dark:bg-graydark-50",c.readOnly?"pointer-events-none":"",c.readOnly?"border-blue-400 dark:border-blue-400":g?"border-red-500 dark:border-red-400":x?"border-green-500 dark:border-green-400":"border-gray-200 dark:border-graydark-200","rounded"),children:[(0,ea.jsx)(hr,{name:t,value:v,units:"".concat((null==y?void 0:y.label)||"?").concat(h||""),prefix:null==y?void 0:y.prefix,size:i,variant:"ghost",focus:"none",readOnly:c.readOnly,decimalsLimit:(null==y?void 0:y.fixed)||f,placeholder:d?new(he())(d):void 0,state:g?"invalid":x?"valid":"default",onChange:e=>{p(void 0!==e?new(he())(e):void 0,!0)},onBlur:m}),u&&(0,ea.jsx)(O1,{value:v,currency:a,rate:u})]});return o?(0,ea.jsx)(S7,{title:c.title,name:t,form:n,wrap:!0,children:b}):b}function O1(e){let{value:t,rate:n}=e,r=t&&!t.isZero()&&n&&!n.isZero(),i=r?(0,vt.qN)(t).div(n):new(he())(0);return(0,ea.jsxs)(nE,{className:"flex gap-1 items-center justify-between relative overflow-hidden px-2 py-1.5 rounded-t-none",children:[(0,ea.jsx)(sM,{side:"bottom",content:"The pinned value's current siacoin value",children:(0,ea.jsxs)(nw,{className:"flex gap-1 relative",size:"12",children:[(0,ea.jsx)(sT.oce,{}),"Current value"]})}),r?(0,ea.jsx)(Sz,{value:i,size:"12",variant:"value",fixed:0,dynamicUnits:!0,hastingUnits:!1,tipSide:"bottom"}):(0,ea.jsx)(nw,{size:"12",ellipsis:!0,color:r?"contrast":"verySubtle",children:"-"})]})}function O2(e){let{name:t,form:n,fields:r,currency:i}=e,{average:a,averageTip:o,suggestionLabel:l,suggestion:s,suggestionTip:u,before:c,after:d}=r[t],f=Oz({form:n,fields:r,name:t}),h=hi.mV.find(e=>e.id===i);if(!i||!h)return null;let{prefix:p,fixed:m}=h;return(0,ea.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,ea.jsxs)("div",{className:"flex flex-col w-[260px]",children:[(0,ea.jsx)(c||(()=>null),{name:t,form:n,fields:r}),(0,ea.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,ea.jsx)(O0,{name:t,fields:r,form:n,group:!1,currency:i}),a&&(0,ea.jsx)(OZ,{type:"number",format:e=>"".concat(p).concat(e.toFixed(m)),label:"Network average",tip:o||"Averages provided by Sia Central.",value:a,decimalsLimit:m,onClick:()=>{f(a,!0)}}),s&&u&&(0,ea.jsx)(OZ,{type:"number",format:e=>"".concat(p).concat(e.toFixed(m)),label:l||"Suggestion",tip:u,decimalsLimit:m,value:s,onClick:()=>{f(s,!0)}}),(0,ea.jsx)(d||(()=>null),{name:t,form:n,fields:r})]})]}),(0,ea.jsx)("div",{className:"h-[20px]",children:(0,ea.jsx)(S6,{form:n,name:t})})]})}function O4(e){let{form:t,remoteValues:n}=e,r=(0,eo.useCallback)(()=>{if(t.formState.isSubmitting||!n)return;let e=t.getValues();for(let[e,r]of Object.entries(n))t.resetField(e,{defaultValue:r,keepDirty:!0,keepError:!0,keepTouched:!0});for(let[n,r]of Object.entries(e))t.getFieldState(n).isDirty&&t.setValue(n,r)},[t,n]);(0,eo.useEffect)(()=>{r()},[n])}function O3(e){let{form:t}=e;return{changeCount:Object.entries(t.formState.dirtyFields).filter(e=>{let[t,n]=e;return!!n}).length}}function O5(e){let{form:t,remoteValues:n}=e,[r,i]=(0,eo.useState)(!1),{isUnlockedAndAuthedRoute:a}=(0,hi.Hv)();(0,eo.useEffect)(()=>{a||i(!1)},[a]),(0,eo.useEffect)(()=>{!r&&n&&(i(!0),t.reset(n))},[n])}sT.lg1,sT.eHR,sT.I$H,sT.KiD,sT.P5r,sT.CCF,sT.w9S,sT.EL$,sT.aPl,sT.wEY,sT.EOT,sT.kSc,sT.W$S,sT.lJ7,sT.ORH,sT.ka0,sT.BdP,sT.d19,sT.Mes,sT.VUg,sT.U_S,sT.T85;let O6=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,[o,l]=(0,eo.useState)(!0),s=(0,eo.useRef)(!1),u=(0,eo.useRef)(0);return(0,eo.useEffect)(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,eo.createElement)(nn,{scope:t,isOpenDelayed:o,delayDuration:n,onOpen:(0,eo.useCallback)(()=>{window.clearTimeout(u.current),l(!1)},[]),onClose:(0,eo.useCallback)(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>l(!0),r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:(0,eo.useCallback)(e=>{s.current=e},[]),disableHoverableContent:i},a)};function O8(e){let{children:t}=e,[n,r]=(0,eo.useState)(!1);return(0,eo.useEffect)(()=>{r(!0)},[]),(0,ea.jsx)("div",{children:n?t:null})}function O7(e){let{className:t,passwordProtectRequestHooks:n,fallback:r,children:i,lockRoutes:a}=e;return(0,ea.jsx)(O8,{children:(0,ea.jsx)(hi.kl,{fallback:r,children:(0,ea.jsx)(p6.f,{attribute:"class",children:(0,ea.jsx)(O6,{children:(0,ea.jsx)(hi.bW,{lockRoutes:a,passwordProtectRequestHooks:n,children:(0,ea.jsxs)("div",{id:"root",className:t,children:[(0,ea.jsx)(S_,{}),i]})})})})})})}var O9=n(28356),Te=Math.min,Tt=function(e,t,n){for(var r=n?Ob.Z:Ox.Z,i=e[0].length,a=e.length,o=a,l=Array(a),s=1/0,u=[];o--;){var c=e[o];o&&t&&(c=(0,Ow.Z)(c,(0,Oj.Z)(t))),s=Te(c.length,s),l[o]=!n&&(t||i>=120&&c.length>=120)?new Oy.Z(o&&c):void 0}c=e[0];var d=-1,f=l[0];t:for(;++d{s(t=>t.includes(e)?t.filter(t=>t!==e):t.concat(e))},[s]),c=(0,eo.useCallback)(e=>{s(t=>(0,O9.Z)([...t,...e]))},[s]),d=(0,eo.useCallback)(e=>{s(t=>O_(t,e))},[s]),f=(0,eo.useCallback)(()=>{s(r)},[s,r]),h=(0,eo.useMemo)(()=>n.filter(e=>{let t=null==o?void 0:o.includes(e.category||"");return!e.fixed&&!t}),[n,o]),p=(0,eo.useMemo)(()=>n.filter(e=>{let t=e.fixed||l.includes(e.id),n=null==o?void 0:o.includes(e.category||"");return t&&!n}).map(e=>e.id),[n,l,o]),{sortField:m,sortDirection:g,setSortField:v,setSortDirection:y,toggleSort:x}=function(e,t){let{defaultSortField:n,sortOptions:r,enabledColumns:i}=t,[a,o]=(0,kG.Z)("".concat(e,"/sortField"),{defaultValue:n}),[l,s]=(0,kG.Z)("".concat(e,"/sortDirection"),{defaultValue:"desc"});return{toggleSort:(0,eo.useCallback)(e=>{if(a!==e){o(e),s("asc");return}s(e=>"desc"===e?"asc":"desc")},[a,o,s]),setSortDirection:s,setSortField:o,sortableColumns:(0,eo.useMemo)(()=>r?Tr(r.map(e=>e.id),i):[],[r,i]),sortField:a,sortDirection:l}}(e,{defaultSortField:i,sortOptions:a,enabledColumns:p}),b=(0,eo.useMemo)(()=>a?Tr(a.map(e=>e.id),p):[],[a,p]);return{configurableColumns:h,enabledColumns:p,toggleColumnVisibility:u,toggleSort:x,setSortDirection:y,setSortField:v,sortableColumns:b,sortField:m,setColumnsVisible:c,setColumnsHidden:d,sortDirection:g,resetDefaultColumnVisibility:f}}function To(){let e=(0,da.xj)(),t=(0,da.jD)(),n=(0,da.lr)();return(0,eo.useCallback)(()=>{if(!e||!t)return;let r=new URLSearchParams(n),i=r.toString();r.delete("limit"),r.delete("offset"),r.delete("marker");let a=r.toString(),o=i?"".concat(t,"?").concat(i):t,l=a?"".concat(t,"?").concat(a):t;l!==o&&e.replace(l)},[e,n,t])}function Tl(){let[e,t]=(0,eo.useState)([]),n=To(),r=(0,eo.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e.id).concat(e)),n()},[t,n]),i=(0,eo.useCallback)(()=>{t([]),n()},[t,n]),a=(0,eo.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e)),n()},[t,n]),o=(0,eo.useCallback)(()=>{e.length&&(t(e=>e.slice(0,-1)),n())},[t,e,n]);return{filters:e,setFilter:r,removeFilter:a,removeLastFilter:o,resetFilters:i}}function Ts(e){let{dataset:t,filters:n,sortField:r,sortDirection:i}=e;return(0,eo.useMemo)(()=>{if(!t)return null;let e=Object.entries(n).map(e=>{let[t,n]=e;return n}),a=e.length?t.filter(t=>{for(let n of e)if(!n.fn(t))return!1;return!0}):t;return[...a=a.sort((e,t)=>{let n=e[r],a=t[r];return"desc"===i?void 0===n?1:void 0===a?-1:n instanceof he()&&a instanceof he()?n.lte(a)?1:-1:n<=a?1:-1:void 0===n?-1:void 0===a?1:n instanceof he()&&a instanceof he()?n.gte(a)?1:-1:n>=a?1:-1})]},[t,n,r,i])}function Tu(){let[e,t]=(0,eo.useState)([]),n=To(),r=(0,eo.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e.id).concat(e)),n()},[t,n]),i=(0,eo.useCallback)(()=>{t([]),n()},[t,n]),a=(0,eo.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e)),n()},[t,n]),o=(0,eo.useCallback)(()=>{e.length&&(t(e=>e.slice(0,-1)),n())},[e,t,n]);return{filters:e,setFilter:r,removeFilter:a,removeLastFilter:o,resetFilters:i}}let Tc=new(he())(0);function Td(e){let{sc:t}=e,{settings:n}=(0,hi.Hv)(),r=(0,ha.BW)({config:{swr:{revalidateOnFocus:!1}}}),i=(0,eo.useMemo)(()=>{var e;return n.siaCentral&&r.data?new(he())((null===(e=r.data)||void 0===e?void 0:e.rates.sc[n.currency.id])||Tc):Tc},[r.data,n]),a=(0,eo.useMemo)(()=>new(he())(t).times(i),[t,i]);return i.isZero()?{}:{fiat:a,currency:n.currency}}function Tf(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,vt.gU)(5),n.startHeight=n.startHeight-(0,vt.gU)(5);let r=[],i=n.startHeight;for(;i<=n.endHeight;)r.push(i),i+=kV(1);return{allDatesMap:r.reduce((e,t)=>({...e,[t]:{total:null,timestamp:t}}),{}),range:n}}let Th=/^[a-z]{2}$/i;function Tp(e){if(!Th.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."))}return String.fromCodePoint(...[...e.toUpperCase()].map(e=>e.codePointAt()+127397))}let Tm=(()=>{let e=0,t=()=>`0000${(1679616*Math.random()<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function Tg(e){let t=[];for(let n=0,r=e.length;n{let r=new Image;r.decode=()=>t(r),r.onload=()=>t(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function Tb(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function Tw(e,t,n){let r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),a=document.createElementNS(r,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${t} ${n}`),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("externalResourcesRequired","true"),i.appendChild(a),a.appendChild(e),Tb(i)}let Tj=(e,t)=>{if(e instanceof t)return!0;let n=Object.getPrototypeOf(e);return null!==n&&(n.constructor.name===t.name||Tj(n,t))};function Tk(e,t,n){let r=window.getComputedStyle(e,n),i=r.getPropertyValue("content");if(""===i||"none"===i)return;let a=Tm();try{t.className=`${t.className} ${a}`}catch(e){return}let o=document.createElement("style");o.appendChild(function(e,t,n){let r=`.${e}:${t}`,i=n.cssText?function(e){let t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}(n):Tg(n).map(e=>{let t=n.getPropertyValue(e),r=n.getPropertyPriority(e);return`${e}: ${t}${r?" !important":""};`}).join(" ");return document.createTextNode(`${r}{${i}}`)}(a,n,r)),t.appendChild(o)}let TE="application/font-woff",TS="image/jpeg",TC={woff:TE,woff2:TE,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:TS,jpeg:TS,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function TM(e){return TC[(function(e){let t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""})(e).toLowerCase()]||""}function T_(e){return -1!==e.search(/^(data:)/)}function TO(e,t){return`data:${t};base64,${e}`}async function TT(e,t,n){let r=await fetch(e,t);if(404===r.status)throw Error(`Resource "${r.url}" not found`);let i=await r.blob();return new Promise((e,t)=>{let a=new FileReader;a.onerror=t,a.onloadend=()=>{try{e(n({res:r,result:a.result}))}catch(e){t(e)}},a.readAsDataURL(i)})}let TP={};async function TA(e,t,n){var r,i,a;let o,l;let s=(r=e,i=t,a=n.includeQueryParams,l=r.replace(/\?.*/,""),a&&(l=r),/ttf|otf|eot|woff2?/i.test(l)&&(l=l.replace(/.*\//,"")),i?`[${i}]${l}`:l);if(null!=TP[s])return TP[s];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());try{let r=await TT(e,n.fetchRequestInit,({res:e,result:n})=>(t||(t=e.headers.get("Content-Type")||""),n.split(/,/)[1]));o=TO(r,t)}catch(r){o=n.imagePlaceholder||"";let t=`Failed to fetch resource: ${e}`;r&&(t="string"==typeof r?r:r.message),t&&console.warn(t)}return TP[s]=o,o}async function TN(e){let t=e.toDataURL();return"data:,"===t?e.cloneNode(!1):Tx(t)}async function TR(e,t){if(e.currentSrc){let t=document.createElement("canvas"),n=t.getContext("2d");return t.width=e.clientWidth,t.height=e.clientHeight,null==n||n.drawImage(e,0,0,t.width,t.height),Tx(t.toDataURL())}let n=e.poster,r=TM(n);return Tx(await TA(n,r,t))}async function TD(e){var t;try{if(null===(t=null==e?void 0:e.contentDocument)||void 0===t?void 0:t.body)return await TV(e.contentDocument.body,{},!0)}catch(e){}return e.cloneNode(!1)}async function TL(e,t){return Tj(e,HTMLCanvasElement)?TN(e):Tj(e,HTMLVideoElement)?TR(e,t):Tj(e,HTMLIFrameElement)?TD(e):e.cloneNode(!1)}let TZ=e=>null!=e.tagName&&"SLOT"===e.tagName.toUpperCase();async function TF(e,t,n){var r,i;let a=[];return 0===(a=TZ(e)&&e.assignedNodes?Tg(e.assignedNodes()):Tj(e,HTMLIFrameElement)&&(null===(r=e.contentDocument)||void 0===r?void 0:r.body)?Tg(e.contentDocument.body.childNodes):Tg((null!==(i=e.shadowRoot)&&void 0!==i?i:e).childNodes)).length||Tj(e,HTMLVideoElement)||await a.reduce((e,r)=>e.then(()=>TV(r,n)).then(e=>{e&&t.appendChild(e)}),Promise.resolve()),t}async function Tz(e,t){let n=e.querySelectorAll?e.querySelectorAll("use"):[];if(0===n.length)return e;let r={};for(let i=0;iTL(e,t)).then(n=>TF(e,n,t)).then(t=>{var n,r;return n=e,Tj(r=t,Element)&&(!function(e,t){let n=t.style;if(!n)return;let r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):Tg(r).forEach(i=>{let a=r.getPropertyValue(i);if("font-size"===i&&a.endsWith("px")){let e=Math.floor(parseFloat(a.substring(0,a.length-2)))-.1;a=`${e}px`}Tj(e,HTMLIFrameElement)&&"display"===i&&"inline"===a&&(a="block"),"d"===i&&t.getAttribute("d")&&(a=`path(${t.getAttribute("d")})`),n.setProperty(i,a,r.getPropertyPriority(i))})}(n,r),Tk(n,r,":before"),Tk(n,r,":after"),Tj(n,HTMLTextAreaElement)&&(r.innerHTML=n.value),Tj(n,HTMLInputElement)&&r.setAttribute("value",n.value),function(e,t){if(Tj(e,HTMLSelectElement)){let n=Array.from(t.children).find(t=>e.value===t.getAttribute("value"));n&&n.setAttribute("selected","")}}(n,r)),r}).then(e=>Tz(e,t)):null}let TB=/url\((['"]?)([^'"]+?)\1\)/g,TI=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,TH=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;async function TU(e,t,n,r,i){try{let a;let o=n?function(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;let n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),t&&(r.href=t),i.href=e,i.href}(t,n):t,l=TM(t);if(i){let e=await i(o);a=TO(e,l)}else a=await TA(o,l,r);return e.replace(function(e){let t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}(t),`$1${a}$3`)}catch(e){}return e}function TW(e){return -1!==e.search(TB)}async function Tq(e,t,n){if(!TW(e))return e;let r=function(e,{preferredFontFormat:t}){return t?e.replace(TH,e=>{for(;;){let[n,,r]=TI.exec(e)||[];if(!r)return"";if(r===t)return`src: ${n};`}}):e}(e,n);return(function(e){let t=[];return e.replace(TB,(e,n,r)=>(t.push(r),e)),t.filter(e=>!T_(e))})(r).reduce((e,r)=>e.then(e=>TU(e,r,t,n)),Promise.resolve(r))}async function T$(e,t,n){var r;let i=null===(r=t.style)||void 0===r?void 0:r.getPropertyValue(e);if(i){let r=await Tq(i,null,n);return t.style.setProperty(e,r,t.style.getPropertyPriority(e)),!0}return!1}async function TK(e,t){await T$("background",e,t)||await T$("background-image",e,t),await T$("mask",e,t)||await T$("mask-image",e,t)}async function TY(e,t){let n=Tj(e,HTMLImageElement);if(!(n&&!T_(e.src))&&!(Tj(e,SVGImageElement)&&!T_(e.href.baseVal)))return;let r=n?e.src:e.href.baseVal,i=await TA(r,TM(r),t);await new Promise((t,r)=>{e.onload=t,e.onerror=r,e.decode&&(e.decode=t),"lazy"===e.loading&&(e.loading="eager"),n?(e.srcset="",e.src=i):e.href.baseVal=i})}async function TX(e,t){let n=Tg(e.childNodes).map(e=>TG(e,t));await Promise.all(n).then(()=>e)}async function TG(e,t){Tj(e,Element)&&(await TK(e,t),await TY(e,t),await TX(e,t))}let TJ={};async function TQ(e){let t=TJ[e];if(null!=t)return t;let n=await fetch(e);return t={url:e,cssText:await n.text()},TJ[e]=t,t}async function T0(e,t){let n=e.cssText,r=/url\(["']?([^"')]+)["']?\)/g;return Promise.all((n.match(/url\([^)]+\)/g)||[]).map(async i=>{let a=i.replace(r,"$1");return a.startsWith("https://")||(a=new URL(a,e.url).href),TT(a,t.fetchRequestInit,({result:e})=>(n=n.replace(i,`url(${e})`),[i,e]))})).then(()=>n)}function T1(e){if(null==e)return[];let t=[],n=e.replace(/(\/\*[\s\S]*?\*\/)/gi,""),r=RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){let e=r.exec(n);if(null===e)break;t.push(e[0])}n=n.replace(r,"");let i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a=RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let e=i.exec(n);if(null===e){if(null===(e=a.exec(n)))break;i.lastIndex=a.lastIndex}else a.lastIndex=i.lastIndex;t.push(e[0])}return t}async function T2(e,t){let n=[],r=[];return e.forEach(n=>{if("cssRules"in n)try{Tg(n.cssRules||[]).forEach((e,i)=>{if(e.type===CSSRule.IMPORT_RULE){let a=i+1,o=e.href,l=TQ(o).then(e=>T0(e,t)).then(e=>T1(e).forEach(e=>{try{n.insertRule(e,e.startsWith("@import")?a+=1:n.cssRules.length)}catch(t){console.error("Error inserting rule from remote css",{rule:e,error:t})}})).catch(e=>{console.error("Error loading remote css",e.toString())});r.push(l)}})}catch(a){let i=e.find(e=>null==e.href)||document.styleSheets[0];null!=n.href&&r.push(TQ(n.href).then(e=>T0(e,t)).then(e=>T1(e).forEach(e=>{i.insertRule(e,n.cssRules.length)})).catch(e=>{console.error("Error loading remote stylesheet",e)})),console.error("Error inlining remote css file",a)}}),Promise.all(r).then(()=>(e.forEach(e=>{if("cssRules"in e)try{Tg(e.cssRules||[]).forEach(e=>{n.push(e)})}catch(t){console.error(`Error while reading CSS rules from ${e.href}`,t)}}),n))}async function T4(e,t){if(null==e.ownerDocument)throw Error("Provided element is not within a Document");let n=Tg(e.ownerDocument.styleSheets);return(await T2(n,t)).filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>TW(e.style.getPropertyValue("src")))}async function T3(e,t){let n=await T4(e,t);return(await Promise.all(n.map(e=>{let n=e.parentStyleSheet?e.parentStyleSheet.href:null;return Tq(e.cssText,n,t)}))).join("\n")}async function T5(e,t){let n=null!=t.fontEmbedCSS?t.fontEmbedCSS:t.skipFonts?null:await T3(e,t);if(n){let t=document.createElement("style"),r=document.createTextNode(n);t.appendChild(r),e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}}async function T6(e,t={}){let{width:n,height:r}=Ty(e,t),i=await TV(e,t,!0);return await T5(i,t),await TG(i,t),!function(e,t){let{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);let r=t.style;null!=r&&Object.keys(r).forEach(e=>{n[e]=r[e]})}(i,t),await Tw(i,n,r)}async function T8(e,t={}){let{width:n,height:r}=Ty(e,t),i=await T6(e,t),a=await Tx(i),o=document.createElement("canvas"),l=o.getContext("2d"),s=t.pixelRatio||function(){let e,t;try{t=process}catch(e){}let n=t&&t.env?t.env.devicePixelRatio:null;return n&&Number.isNaN(e=parseInt(n,10))&&(e=1),e||window.devicePixelRatio||1}(),u=t.canvasWidth||n,c=t.canvasHeight||r;return o.width=u*s,o.height=c*s,!t.skipAutoScale&&(o.width>16384||o.height>16384)&&(o.width>16384&&o.height>16384?o.width>o.height?(o.height*=16384/o.width,o.width=16384):(o.width*=16384/o.height,o.height=16384):o.width>16384?(o.height*=16384/o.width,o.width=16384):(o.width*=16384/o.height,o.height=16384)),o.style.width=`${u}`,o.style.height=`${c}`,t.backgroundColor&&(l.fillStyle=t.backgroundColor,l.fillRect(0,0,o.width,o.height)),l.drawImage(a,0,0,o.width,o.height),o}async function T7(e,t={}){return(await T8(e,t)).toDataURL()}async function T9(e,t){let{name:n,quality:r,copy:i,download:a}=t;if(!e)throw Error("HTML node required");let o=await T7(e,{quality:r||.5});if(a){let e=document.createElement("a");e.download="".concat(n,".png"),e.href=o,e.click()}if(i){let e=await fetch(o);ST(await e.blob(),"image/png",n)}}function Pe(e){return Object.entries(e)}},99605:function(e,t,n){"use strict";n.d(t,{Ee:function(){return s.a},Fb:function(){return o.a},UO:function(){return u.useParams},j0:function(){return c.useRouter},jD:function(){return u.usePathname},lr:function(){return u.useSearchParams},rU:function(){return i.a},xj:function(){return u.useRouter}});var r=n(39097),i=n.n(r),a=n(97729),o=n.n(a),l=n(96577),s=n.n(l),u=n(82876),c=n(5632)},82842:function(e,t,n){"use strict";n.d(t,{bW:function(){return z},kl:function(){return K},mV:function(){return D},gw:function(){return a},Hv:function(){return F},iv:function(){return U},rB:function(){return W},Nf:function(){return H},Tu:function(){return $},mw:function(){return B},q0:function(){return V},Tb:function(){return T},V1:function(){return I},Q5:function(){return q},D:function(){return N}});var r={};n.r(r),n.d(r,{getGPUTier:function(){return O}});var i=n(79381);function a(e){return new Promise(t=>setTimeout(t,e))}var o=n(89644),l=n.n(o),s=n(2784),u=n(56978);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 a=function(e,t,n){var r,i,a,o;let l={"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===(o=n.config)||void 0===o?void 0:null===(a=o.axios)||void 0===a?void 0:a.headers},s=h(e,t,n);return e.api===s&&e.password&&(l.Authorization="Basic "+btoa(":".concat(e.password))),l}(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:a}}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=(0,u.AR)(t,i)))return null;let a=h(e,n,r);return a===e.api?"".concat(a,"/api").concat(t):"".concat(a).concat(t)}function g(e,t,n,r){let i=h(e,n,r);return i===e.api?t.replace("".concat(i,"/api"),""):t.replace(i,"")}var v=n(52322),y=n(99605),x=n(92762);function b(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(e){try{s(r.next(e))}catch(e){a(e)}}function l(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,l)}s((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 j(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 k="undefined"==typeof window,E=(()=>{if(k)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 C=[],M=[];function _(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:a="https://unpkg.com/detect-gpu@5.0.34/dist/benchmarks"}={})=>b(void 0,void 0,void 0,function*(){let o={};if(k)return{tier:0,type:"SSR"};let{isIpad:l=!!(null==E?void 0:E.isIpad),isMobile:s=!!(null==E?void 0:E.isMobile),screenSize:u=window.screen,loadBenchmarks:c=e=>b(void 0,void 0,void 0,function*(){let t=yield fetch(`${a}/${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:s,tier:e,type:t}),h,p="";if(d)h=[d=j(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==E?void 0:E.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=j(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 a=e.getAttribLocation(r,"aPosition");e.vertexAttribPointer(a,3,5126,!1,0,0),e.enableVertexAttribArray(a),e.clearColor(1,1,1,1),e.clear(16384),e.viewport(0,0,1,1),e.drawArrays(4,0,3);let o=new Uint8Array(4);return e.readPixels(0,0,1,1,6408,5121,o),e.deleteProgram(r),e.deleteBuffer(i),o.join("")}(e),a="801621810",o="8016218135",l="80162181161",s=(null==E?void 0:E.isIpad)?[["a7",l,12],["a8",o,15],["a8x",o,15],["a9",o,15],["a9x",o,15],["a10",o,15],["a10x",o,15],["a12",a,15],["a12x",a,15],["a12z",a,15],["a14",a,15],["m1",a,15]]:[["a7",l,12],["a8",o,12],["a9",o,15],["a10",o,15],["a11",a,15],["a12",a,15],["a13",a,15],["a14",a,15]];return"80162181255"===i?r=s.filter(([,,e])=>e>=14):(r=s.filter(([,e])=>e===i)).length||(r=s),r.map(([e])=>`apple ${e} gpu`)}(e,m,s):[m]}let g=(yield Promise.all(h.map(function(e){var t;return b(this,void 0,void 0,function*(){let n;let r=(e=>{for(let t of s?["adreno","apple","mali-t","mali","nvidia","powervr","samsung"]:["intel","apple","amd","radeon","nvidia","geforce"])if(e.includes(t))return t})(e);if(!r)return;let i=`${s?"m":"d"}-${r}${l?"-ipad":""}.json`,a=o[i]=null!==(t=o[i])&&void 0!==t?t:c(i);try{n=yield a}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,[g,,,,v]=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 a,o=0;for(;ou?s>u?u+1:s:s>l?l+1:s;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 v){let[t,n]=e,r=Math.abs(b-t*n);re===n?t-r:e-n);if(!g.length){let e=w.find(e=>d.includes(e));return e?f(0,"BLOCKLISTED",e):f(1,"FALLBACK",`${d} (${p})`)}let[,v,y,x]=g[0];if(-1===v)return f(0,"BLOCKLISTED",y,v,x);let O=s?e:t,T=0;for(let e=0;e=O[e]&&(T=e);return f(T,"BENCHMARK",y,v,x)});function T(){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:P}=r,A=(0,s.createContext)({}),N=()=>(0,s.useContext)(A);function R(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]);return{setWorkflow:n,removeWorkflow:(0,s.useCallback)(e=>{t(t=>(delete t[e],{...t}))},[t]),resetWorkflows:(0,s.useCallback)(()=>{t({})},[t]),workflows:(0,s.useMemo)(()=>Object.entries(e).map(e=>e[1]),[e])}}();return(0,v.jsx)(A.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}],L={api:"",loginWithCustomApi:!1,siaCentral:!0,password:void 0,currency:D[0],currencyDisplay:"bothPreferSc",recentApis:{},autoLock:!1,autoLockTimeout:6e5},Z=(0,s.createContext)({}),F=()=>(0,s.useContext)(Z);function z(e){let{children:t,...n}=e,r=function(e){let{passwordProtectRequestHooks:t,lockRoutes:n,defaultSettings:r}=e,a=(0,s.useMemo)(()=>({...L,...r}),[r]),[o,l]=(0,x.Z)("v1/settings",{defaultValue:a});(0,s.useEffect)(()=>{l(e=>({...a,...e}))},[]);let u=(0,s.useMemo)(()=>({...a,...o}),[o,a]),{resetWorkflows:c}=N(),d=(0,s.useCallback)(e=>{l(t=>({...t,...e}))},[l]),f=(0,s.useCallback)(e=>{let t=D.find(t=>t.id===e);t&&d({currency:t})},[d]),h=(0,y.xj)(),p=(0,y.jD)(),[m,g]=(0,s.useState)({}),v=(0,s.useCallback)((e,t)=>{g(n=>({...n,[e]:t}))},[g]),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,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"}),j=(0,s.useMemo)(()=>!!u.password,[u]);return{settings:u,setSettings:d,setCurrency:f,currencyOptions:D,gpu:function(){let e=T(),[t,n]=(0,s.useState)(!1),[r,i]=(0,s.useState)(!1),[{isGpuEnabled:a,hasUserSet:o},l]=(0,x.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 P();console.log("GPU",t),e=t.tier>0,!o&&t.tier<2&&u(!1,!1)}i(e),n(!0)},[i,u,o]);return(0,s.useEffect)(()=>{c()},[]),{hasCheckedGpu:t,canGpuRender:r,isGpuEnabled:a,shouldRender:r&&a,setCanGpuRender:i,setIsGpuEnabled:u}}(),lock:b,isUnlockedAndAuthedRoute:j&&w,passwordProtectRequestHooks:t,setOnLockCallback:v}}(n);return(0,v.jsx)(Z.Provider,{value:r,children:t})}function V(e){var t;let n=(0,s.useMemo)(()=>d(e),[e]),{settings:r,passwordProtectRequestHooks:a}=F(),o=m(r,n.route,n,void 0),u=(0,s.useMemo)(()=>{var t,i;return t=o?"".concat(o).concat(JSON.stringify(void 0!==e.payload?e.payload:"")):null,i=n.disabled||a&&!r.password,!t||i?null:t},[o,e,n,a,r]);return(0,i.ZP)(u,async()=>{if(!n.route)throw Error("No route");let t=p(r,n,void 0);if(!o)throw Error("No route");try{return(await l().post(o,e.payload,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 B(e,t){let{setWorkflow:n,removeWorkflow:r}=N(),{mutate:a}=(0,i.kY)(),{settings:o}=F(),s=c(e);return{post:async e=>{let i=f(e);try{let u;let c=p(o,s,i),d=m(o,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=g(o,d,e,i);n(f,{path:h,payload:u});let v=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 a(n=>{if("string"!=typeof n)return!1;let r=g(o,n,e,i);return t(r)},n,r)},i,v),r(f),{status:v.status,data:v.data,headers:v.headers}}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}=F(),{setWorkflow:a,removeWorkflow:o}=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=g(r,d,e,i);a(f,{path:h,payload:u});let v=await l().put(d,u,c);return t&&await t(function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,o=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let a=g(r,n,e,i);return t(a)},a,o)},i,v),o(f),{status:v.status,data:v.data,headers:v.headers}}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,n,r;let a=(0,s.useMemo)(()=>d(e),[e]),{settings:o,passwordProtectRequestHooks:u}=F(),c=m(o,a.route,a,void 0);return(0,i.ZP)((n=e.standalone?"".concat(e.standalone,"/").concat(c):c,r=a.disabled||u&&!o.password,!n||r?null:n),async()=>{if(!a.route)throw Error("No route");let e=p(o,a,void 0);if(!c)throw Error("No route");try{return(await l().get(c,e)).data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=a.config)||void 0===t?void 0:t.swr)}function U(e,t){let{mutate:n}=(0,i.kY)(),{settings:r}=F(),{setWorkflow:a,removeWorkflow:o}=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=g(r,c,e,i);a(c,{path:d});let f=await l().delete(c,u);return t&&await t(function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,o=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let a=g(r,n,e,i);return t(a)},a,o)},i,f),o(c),{status:f.status,data:f.data,headers:f.headers}}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{get:n}=function(e){let{settings:t}=F(),n=c(e);return{get:async e=>{let r=f(e);try{let e=p(t,n,r),i=m(t,n.route,n,r);if(!i)throw Error("No route");let a=await l().get(i,e);return{status:a.status,data:a.data,headers:a.headers}}catch(t){var i,a,o,s;let e=(null===(i=t.response)||void 0===i?void 0:i.data)instanceof Blob?await (null===(a=t.response)||void 0===a?void 0:a.data.text()):(null===(o=t.response)||void 0===o?void 0:o.data)||t.message;return{status:null===(s=t.response)||void 0===s?void 0:s.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 q(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 $(e){let{settings:t}=F();return(0,s.useMemo)(()=>function(n,r,a){return(0,i.JG)(r=>"string"==typeof r&&n(g(t,r,e,void 0)),r,a)},[t,e])}function K(e){let{fallback:t,cacheProvider:n,children:r}=e;return(0,v.jsx)(R,{children:(0,v.jsx)(i.J$,{value:{fallback:t||{},provider:n},children:r})})}},47211: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 a=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 nV},fb4:function(){return nz},eHR:function(){return n$},xHM:function(){return nK},L6f:function(){return nY},rW0:function(){return nX},osk:function(){return nG},JaG:function(){return nJ},wWN:function(){return ok},Dkj:function(){return oN},fi8:function(){return oj},DlU:function(){return n9},ljb:function(){return re},EMN:function(){return rt},bdU:function(){return rn},VUy:function(){return rr},Cp0:function(){return ri},kqg:function(){return ra},Mes:function(){return ro},oce:function(){return rs},uTh:function(){return rl},DI$:function(){return rc},NlZ:function(){return rC},Y3p:function(){return rO},dmA:function(){return r_},Z$8:function(){return rM},MKy:function(){return rT},tEK:function(){return rA},yar:function(){return rP},ZsV:function(){return rN},F3j:function(){return rR},PcV:function(){return rL},QN4:function(){return rD},Jsc:function(){return rF},T80:function(){return rZ},bQp:function(){return rV},Y9T:function(){return rz},wEY:function(){return rU},olJ:function(){return rq},vtB:function(){return rW},KiD:function(){return rX},jBN:function(){return rG},B4q:function(){return r2},_Eq:function(){return rJ},VHe:function(){return oT},Jrl:function(){return r4},aPl:function(){return r3},kBK:function(){return o_},c_L:function(){return r7},Bpb:function(){return r9},vzB:function(){return ie},nDH:function(){return il},dr6:function(){return is},_fo:function(){return iu},d19:function(){return ic},w9S:function(){return id},VBo:function(){return oE},q0D:function(){return iv},Hb6:function(){return ig},CCF:function(){return iy},Qbr:function(){return ij},L37:function(){return ik},ROc:function(){return oP},UG6:function(){return oO},lq1:function(){return iE},zvn:function(){return oS},oDK:function(){return iM},EL$:function(){return i_},BdP:function(){return iD},e1T:function(){return iL},P5r:function(){return iZ},RdX:function(){return iz},$iY:function(){return iF},U_S:function(){return iV},_m8:function(){return oR},V8Q:function(){return iq},POp:function(){return i$},nCM:function(){return iX},kSc:function(){return iY},TtX:function(){return iK},mBM:function(){return oM},Lur:function(){return i0},b47:function(){return i1},Sfn:function(){return i2},W$S:function(){return i7},T85:function(){return i9},c6N:function(){return ae},Ckx:function(){return at},EOT:function(){return an},RK4:function(){return aa},JPh:function(){return ao},jH8:function(){return ad},XJM:function(){return af},RRj:function(){return ah},ka0:function(){return ap},hzZ:function(){return ax},oHy:function(){return ay},n6M:function(){return ab},VUg:function(){return aC},YZj:function(){return aM},owP:function(){return a_},Fs9:function(){return aO},wGX:function(){return aT},Wet:function(){return aD},xkX:function(){return aL},Zbu:function(){return aZ},ZEk:function(){return aF},$Iz:function(){return aH},UBs:function(){return aU},shL:function(){return aW},hiv:function(){return aq},eOF:function(){return aG},mli:function(){return aX},O5t:function(){return aJ},_kF:function(){return a0},lJ7:function(){return oA},ORH:function(){return a3},I98:function(){return a5},R$6:function(){return a6},JCW:function(){return oo},xVB:function(){return ol},pHg:function(){return os},I$H:function(){return oc},HCc:function(){return ou},oaN:function(){return oC},qdM:function(){return oh},KTM:function(){return of},gFQ:function(){return od},Gu6:function(){return op},SmH:function(){return oy},RFr:function(){return ox},lg1:function(){return ob}});var o,l,s,u,c,d,f,h,p,m,g,v,y,x,b,w,j,k,E,S,C,M,_,O,T,P,A,N,R,D,L,Z,F,z,V,B,I,H,U,W,q,$,K,Y,X,G,J,Q,ee,et,en,er,ei,ea,eo,el,es,eu,ec,ed,ef,eh,ep,em,eg,ev,ey,ex,eb,ew,ej,ek,eE,eS,eC,eM,e_,eO,eT,eP,eA,eN,eR,eD,eL,eZ,eF,ez,eV,eB,eI,eH,eU,eW,eq,e$,eK,eY,eX,eG,eJ,eQ,e0,e1,e2,e4,e3,e5,e6,e8,e7,e9,te,tt,tn,tr,ti,ta,to,tl,ts,tu,tc,td,tf,th,tp,tm,tg,tv,ty,tx,tb,tw,tj,tk,tE,tS,tC,tM,t_,tO,tT,tP,tA,tN,tR,tD,tL,tZ,tF,tz,tV,tB,tI,tH,tU,tW,tq,t$,tK,tY,tX,tG,tJ,tQ,t0,t1,t2,t4,t3,t5,t6,t8,t7,t9,ne,nt,nn,nr,ni,na,no,nl,ns,nu,nc,nd,nf,nh,np,nm,ng,nv,ny,nx,nb,nw,nj,nk,nE=["width","height","viewBox"],nS=["tabindex"],nC={focusable:"false",preserveAspectRatio:"xMidYMid meet"},nM=n(13980),n_=n.n(nM),nO=n(2784);function nT(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 nP(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var nR=["className","children","tabIndex"],nD=["tabindex"],nL=nO.forwardRef(function(e,t){var n=e.className,r=e.children,o=e.tabIndex,l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,o=void 0===r?"0 0 ".concat(t," ").concat(n):r,l=a(e,nE),s=l.tabindex,u=a(l,nS),c=i(i(i({},nC),u),{},{width:t,height:n,viewBox:o});return c["aria-label"]||c["aria-labelledby"]||c.title?(c.role="img",null!=s&&(c.focusable="true",c.tabindex=s)):c["aria-hidden"]=!0,c}(nP(nP({},nN(e,nR)),{},{tabindex:o})),s=l.tabindex,u=nN(l,nD);return n&&(u.className=n),null!=s&&(u.tabIndex=s),t&&(u.ref=t),nO.createElement("svg",u,r)});nL.displayName="Icon",nL.propTypes={"aria-hidden":n_().string,"aria-label":n_().string,"aria-labelledby":n_().string,children:n_().node,className:n_().string,height:n_().oneOfType([n_().number,n_().string]),preserveAspectRatio:n_().string,tabIndex:n_().string,viewBox:n_().string,width:n_().oneOfType([n_().number,n_().string]),xmlns:n_().string},nL.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"};var nZ=["children"],nF=["children"],nz=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,nZ);return nO.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),o||(o=nO.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)}),nV=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,nF);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),l||(l=nO.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)}),nB=["children"],nI=["children"],nH=["children"],nU=["children"],nW=["children"],nq=["children"],n$=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,nB);return nO.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),s||(s=nO.createElement("path",{d:"M14 19H18V21H14z"})),u||(u=nO.createElement("path",{d:"M6,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V2ZM24,28H8V16H24Zm0-14H8V10H24ZM8,8V4H24V8Z"})),n)}),nK=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,nI);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),c||(c=nO.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)}),nY=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,nH);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),d||(d=nO.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)}),nX=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,nU);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),f||(f=nO.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)}),nG=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,nW);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),h||(h=nO.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)}),nJ=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,nq);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),p||(p=nO.createElement("path",{d:"M7.5 1H8.5V3.5H7.5z"})),m||(m=nO.createElement("path",{d:"M10.8 3.4H13.3V4.4H10.8z",transform:"rotate(-45.001 12.074 3.922)"})),g||(g=nO.createElement("path",{d:"M12.5 7.5H15V8.5H12.5z"})),v||(v=nO.createElement("path",{d:"M11.6 10.8H12.6V13.3H11.6z",transform:"rotate(-45.001 12.077 12.075)"})),y||(y=nO.createElement("path",{d:"M7.5 12.5H8.5V15H7.5z"})),x||(x=nO.createElement("path",{d:"M2.7 11.6H5.2V12.6H2.7z",transform:"rotate(-45.001 3.929 12.078)"})),b||(b=nO.createElement("path",{d:"M1 7.5H3.5V8.5H1z"})),w||(w=nO.createElement("path",{d:"M3.4 2.7H4.4V5.2H3.4z",transform:"rotate(-45.001 3.926 3.925)"})),j||(j=nO.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)}),nQ=["children"],n0=["children"],n1=["children"],n2=["children"],n4=["children"],n3=["children"],n5=["children"],n6=["children"],n8=["children"],n7=["children"],n9=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,nQ);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),k||(k=nO.createElement("path",{d:"M14 8L10 8 10 4 8 4 8 8 4 8 4 10 8 10 8 14 10 14 10 10 14 10 14 8zM4 19H14V21H4zM4 24H14V26H4zM18 8H28V10H18zM24.41 22L28 18.41 26.59 17 23 20.59 19.41 17 18 18.41 21.59 22 18 25.59 19.41 27 23 23.41 26.59 27 28 25.59 24.41 22z"})),n)}),re=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,n0);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),E||(E=nO.createElement("path",{d:"M26,4V28H6V4H26m0-2H6A2,2,0,0,0,4,4V28a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V4A2,2,0,0,0,26,2Z"})),S||(S=nO.createElement("path",{d:"M9 23H11V25H9zM21 23H23V25H21zM9 18H11V20H9zM21 18H23V20H21zM9 13H11V15H9zM15 23H17V25H15zM15 18H17V20H15zM15 13H17V15H15zM21 13H23V15H21zM9 7H23V10H9z"})),n)}),rt=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,n1);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),C||(C=nO.createElement("path",{d:"M24 12L16 22 8 12z"})),n)}),rn=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,n2);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),M||(M=nO.createElement("path",{d:"M20 24L10 16 20 8z"})),n)}),rr=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,n4);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),_||(_=nO.createElement("path",{d:"M12 8L22 16 12 24z"})),n)}),ri=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,n3);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),O||(O=nO.createElement("path",{d:"M24 24L16 32 8 24zM8 8L16 0 24 8z"})),n)}),ra=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,n5);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),T||(T=nO.createElement("path",{d:"M8 20L16 10 24 20z"})),n)}),ro=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,n6);return nO.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),P||(P=nO.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)}),rl=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,n8);return nO.createElement(nL,nA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),A||(A=nO.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)}),rs=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,n7);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),N||(N=nO.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)}),ru=["children"],rc=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,ru);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),R||(R=nO.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"})),D||(D=nO.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)}),rd=["children"],rf=["children"],rh=["children"],rp=["children"],rm=["children"],rg=["children"],rv=["children"],ry=["children"],rx=["children"],rb=["children"],rw=["children"],rj=["children"],rk=["children"],rE=["children"],rS=["children"],rC=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,rd);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),L||(L=nO.createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),n)}),rM=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,rf);return nO.createElement(nL,nA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Z||(Z=nO.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"})),F||(F=nO.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)}),r_=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,rh);return nO.createElement(nL,nA({width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),z||(z=nO.createElement("path",{d:"M10,1c-4.9,0-9,4.1-9,9s4.1,9,9,9s9-4,9-9S15,1,10,1z M8.7,13.5l-3.2-3.2l1-1l2.2,2.2l4.8-4.8l1,1L8.7,13.5z"})),V||(V=nO.createElement("path",{fill:"none",d:"M8.7,13.5l-3.2-3.2l1-1l2.2,2.2l4.8-4.8l1,1L8.7,13.5z","data-icon-path":"inner-path",opacity:"0"})),n)}),rO=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,rp);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),B||(B=nO.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"})),I||(I=nO.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)}),rT=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,rm);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),H||(H=nO.createElement("path",{d:"M30,24a6,6,0,1,0-6,6A6.0066,6.0066,0,0,0,30,24Zm-2,0a3.9521,3.9521,0,0,1-.5669,2.019L21.981,20.5669A3.9529,3.9529,0,0,1,24,20,4.0045,4.0045,0,0,1,28,24Zm-8,0a3.9521,3.9521,0,0,1,.5669-2.019l5.4521,5.4521A3.9529,3.9529,0,0,1,24,28,4.0045,4.0045,0,0,1,20,24Z"})),U||(U=nO.createElement("path",{d:"M14,2a12,12,0,1,0,2,23.82V24a8,8,0,0,1,8-8h1.82A11.9348,11.9348,0,0,0,14,2ZM12,18.5908l-4-4L9.5908,13,12,15.4092,17.4092,10,19,11.5908Z"})),W||(W=nO.createElement("path",{fill:"none",d:"M12 18.591L8 14.591 9.591 13 12 15.409 17.409 10 19 11.591 12 18.591z","data-icon-path":"inner-path"})),n)}),rP=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,rg);return nO.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),q||(q=nO.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),$||($=nO.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)}),rA=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,rv);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),K||(K=nO.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),Y||(Y=nO.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)}),rN=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,ry);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),X||(X=nO.createElement("path",{d:"M14,24A10,10,0,1,1,24,14h2A12,12,0,1,0,14,26Z"})),G||(G=nO.createElement("path",{d:"M12 15.59L9.41 13 8 14.41 12 18.41 19 11.41 17.59 10 12 15.59zM30 24a6 6 0 10-6 6A6.0066 6.0066 0 0030 24zm-2 0a3.9521 3.9521 0 01-.5669 2.019L21.981 20.5669A3.9529 3.9529 0 0124 20 4.0045 4.0045 0 0128 24zm-8 0a3.9521 3.9521 0 01.5669-2.019l5.4521 5.4521A3.9529 3.9529 0 0124 28 4.0045 4.0045 0 0120 24z"})),n)}),rR=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,rx);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),J||(J=nO.createElement("path",{d:"M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z"})),n)}),rD=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,rb);return nO.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Q||(Q=nO.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)}),rL=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,rw);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ee||(ee=nO.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)}),rZ=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,rj);return nO.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),et||(et=nO.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"})),en||(en=nO.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)}),rF=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,rk);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),er||(er=nO.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"})),ei||(ei=nO.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)}),rz=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,rE);return nO.createElement(nL,nA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ea||(ea=nO.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"})),eo||(eo=nO.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)}),rV=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,rS);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),el||(el=nO.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"})),es||(es=nO.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)}),rB=["children"],rI=["children"],rH=["children"],rU=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,rB);return nO.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eu||(eu=nO.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"})),ec||(ec=nO.createElement("path",{d:"M5.91 15H26.080000000000002V17H5.91z",transform:"rotate(-75 15.996 16)"})),n)}),rW=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,rI);return nO.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ed||(ed=nO.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"})),ef||(ef=nO.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),n)}),rq=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,rH);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eh||(eh=nO.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"})),ep||(ep=nO.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),n)}),r$=["children"],rK=["children"],rY=["children"],rX=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,r$);return nO.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),em||(em=nO.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"})),eg||(eg=nO.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)}),rG=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,rK);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ev||(ev=nO.createElement("path",{d:"M26.5,19.63,20.24,16l6.26-3.63a5,5,0,0,0-1.21-9.2A5.19,5.19,0,0,0,24,3a5,5,0,0,0-4.33,7.53,5,5,0,0,0,2.39,2.1l-3.82,2.21L4,6.6,3,8.34,16.24,16,3,23.68l1,1.74,14.24-8.26,3.82,2.21a5,5,0,0,0-2.39,2.1A5,5,0,0,0,24,29a5.19,5.19,0,0,0,1.29-.17,5,5,0,0,0,1.21-9.2ZM21.4,9.53a3,3,0,0,1,1.1-4.12,3,3,0,0,1,4.1,1.11,3,3,0,0,1-1.1,4.11h0A3,3,0,0,1,21.4,9.53Zm5.2,16a3,3,0,0,1-4.1,1.11,3,3,0,0,1-1.1-4.12,3,3,0,0,1,4.1-1.1h0A3,3,0,0,1,26.6,25.48Z"})),n)}),rJ=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,rY);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ey||(ey=nO.createElement("circle",{cx:"22",cy:"24",r:"2"})),ex||(ex=nO.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"})),eb||(eb=nO.createElement("circle",{cx:"8",cy:"8",r:"1"})),ew||(ew=nO.createElement("circle",{cx:"8",cy:"16",r:"1"})),ej||(ej=nO.createElement("circle",{cx:"8",cy:"24",r:"1"})),ek||(ek=nO.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)}),rQ=["children"],r0=["children"],r1=["children"],r2=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,rQ);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eE||(eE=nO.createElement("path",{d:"M8 18H12V20H8zM14 18H18V20H14zM8 14H12V16H8zM14 22H18V24H14zM20 14H24V16H20zM20 22H24V24H20z"})),eS||(eS=nO.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)}),r4=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,r0);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eC||(eC=nO.createElement("path",{d:"M12 12H14V24H12zM18 12H20V24H18z"})),eM||(eM=nO.createElement("path",{d:"M4 6V8H6V28a2 2 0 002 2H24a2 2 0 002-2V8h2V6zM8 28V8H24V28zM12 2H20V4H12z"})),n)}),r3=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,r1);return nO.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e_||(e_=nO.createElement("path",{d:"M8 4V8H4V4H8M2 2v8h8V2zM18 7v4H14V7h4M12 5v8h8V5zM8 16v4H4V16H8M2 14v8h8V14z"})),eO||(eO=nO.createElement("path",{d:"M22,10v6H16v6H10v8H30V10Zm-4,8h4v4H18ZM16,28H12V24h4Zm6,0H18V24h4Zm6,0H24V24h4Zm0-6H24V18h4Zm-4-6V12h4v4Z"})),n)}),r5=["children"],r6=["children"],r8=["children"],r7=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,r5);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eT||(eT=nO.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=nO.createElement("path",{d:"M10 22H22V24H10zM10 16H22V18H10z"})),n)}),r9=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,r6);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eA||(eA=nO.createElement("circle",{cx:"16",cy:"16",r:"8"})),n)}),ie=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,r8);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eN||(eN=nO.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)}),it=["children"],ir=["children"],ii=["children"],ia=["children"],io=["children"],il=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,it);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eR||(eR=nO.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)}),is=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,ir);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eD||(eD=nO.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)}),iu=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,ii);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eL||(eL=nO.createElement("path",{d:"M2,16H2A14,14,0,1,0,16,2,14,14,0,0,0,2,16Zm23.15,7.75L8.25,6.85a12,12,0,0,1,16.9,16.9ZM8.24,25.16A12,12,0,0,1,6.84,8.27L23.73,25.16a12,12,0,0,1-15.49,0Z"})),n)}),ic=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,ia);return nO.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eZ||(eZ=nO.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"})),eF||(eF=nO.createElement("path",{d:"M22.59 25L20 22.41 20 18 22 18 22 21.59 24 23.59 22.59 25z"})),ez||(ez=nO.createElement("path",{d:"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z"})),n)}),id=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,io);return nO.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eV||(eV=nO.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)}),ih=["children"],ip=["children"],im=["children"],ig=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,ih);return nO.createElement(nL,nA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eB||(eB=nO.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)}),iv=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,ip);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eI||(eI=nO.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)}),iy=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,im);return nO.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eH||(eH=nO.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)}),ix=["children"],ib=["children"],iw=["children"],ij=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,ix);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eU||(eU=nO.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)}),ik=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,ib);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eW||(eW=nO.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"})),eq||(eq=nO.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)}),iE=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,iw);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e$||(e$=nO.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"})),eK||(eK=nO.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)}),iS=["children"],iC=["children"],iM=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,iS);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eY||(eY=nO.createElement("path",{d:"M15 19H17V21H15zM15 23H17V25H15z"})),eX||(eX=nO.createElement("path",{d:"M23,11.67V4h3V2H6V4H9v7.67a2,2,0,0,0,.4,1.2L11.75,16,9.4,19.13a2,2,0,0,0-.4,1.2V28H6v2H26V28H23V20.33a2,2,0,0,0-.4-1.2L20.25,16l2.35-3.13A2,2,0,0,0,23,11.67ZM21,4v7H11V4Zm0,16.33V28H11V20.33L14.25,16,12,13h8l-2.25,3Z"})),n)}),i_=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,iC);return nO.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eG||(eG=nO.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)}),iO=["children"],iT=["children"],iP=["children"],iA=["children"],iN=["children"],iR=["children"],iD=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,iO);return nO.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eJ||(eJ=nO.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)}),iL=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,iT);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eQ||(eQ=nO.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"})),e0||(e0=nO.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)}),iZ=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,iP);return nO.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e1||(e1=nO.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)}),iF=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,iA);return nO.createElement(nL,nA({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e2||(e2=nO.createElement("path",{d:"M17 22L17 14 13 14 13 16 15 16 15 22 12 22 12 24 20 24 20 22 17 22zM16 8a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0016 8z"})),e4||(e4=nO.createElement("path",{d:"M16,30A14,14,0,1,1,30,16,14,14,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12,12,0,0,0,16,4Z"})),n)}),iz=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,iN);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e3||(e3=nO.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"})),e5||(e5=nO.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)}),iV=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,iR);return nO.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e6||(e6=nO.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)}),iB=["children"],iI=["children"],iH=["children"],iU=["children"],iW=["children"],iq=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,iB);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e8||(e8=nO.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"})),e7||(e7=nO.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)}),i$=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,iI);return nO.createElement(nL,nA({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e9||(e9=nO.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"})),te||(te=nO.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)}),iK=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,iH);return nO.createElement(nL,nA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tt||(tt=nO.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)}),iY=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,iU);return nO.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tn||(tn=nO.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)}),iX=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,iW);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tr||(tr=nO.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)}),iG=["children"],iJ=["children"],iQ=["children"],i0=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,iG);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ti||(ti=nO.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)}),i1=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,iJ);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ta||(ta=nO.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"})),to||(to=nO.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)}),i2=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,iQ);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tl||(tl=nO.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)}),i4=["children"],i3=["children"],i5=["children"],i6=["children"],i8=["children"],i7=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,i4);return nO.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ts||(ts=nO.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"})),tu||(tu=nO.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)}),i9=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,i3);return nO.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tc||(tc=nO.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)}),ae=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,i5);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),td||(td=nO.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"})),tf||(tf=nO.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)}),at=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,i6);return nO.createElement(nL,nA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),th||(th=nO.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"})),tp||(tp=nO.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)}),an=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,i8);return nO.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tm||(tm=nO.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"})),tg||(tg=nO.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)}),ar=["children"],ai=["children"],aa=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,ar);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tv||(tv=nO.createElement("circle",{cx:"21",cy:"26",r:"2"})),ty||(ty=nO.createElement("circle",{cx:"21",cy:"6",r:"2"})),tx||(tx=nO.createElement("circle",{cx:"4",cy:"16",r:"2"})),tb||(tb=nO.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)}),ao=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,ai);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tw||(tw=nO.createElement("path",{d:"M2,16A14,14,0,1,0,16,2,14,14,0,0,0,2,16Zm6-1H20.15L14.57,9.3926,16,8l8,8-8,8-1.43-1.4272L20.15,17H8Z"})),tj||(tj=nO.createElement("path",{fill:"none",d:"M16 8L14.57 9.393 20.15 15 8 15 8 17 20.15 17 14.57 22.573 16 24 24 16 16 8z","data-icon-path":"inner-path"})),n)}),al=["children"],as=["children"],au=["children"],ac=["children"],ad=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,al);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tk||(tk=nO.createElement("circle",{cx:"8",cy:"16",r:"2"})),tE||(tE=nO.createElement("circle",{cx:"16",cy:"16",r:"2"})),tS||(tS=nO.createElement("circle",{cx:"24",cy:"16",r:"2"})),n)}),af=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,as);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tC||(tC=nO.createElement("path",{d:"M14 16L24 6 25.4 7.4 16.8 16 25.4 24.6 24 26zM8 4H10V28H8z"})),n)}),ah=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,au);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tM||(tM=nO.createElement("path",{d:"M18 16L8 26 6.6 24.6 15.2 16 6.6 7.4 8 6zM22 4H24V28H22z"})),n)}),ap=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,ac);return nO.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t_||(t_=nO.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"})),tO||(tO=nO.createElement("circle",{cx:"22",cy:"10",r:"2"})),n)}),am=["children"],ag=["children"],av=["children"],ay=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,am);return nO.createElement(nL,nA({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tT||(tT=nO.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"})),tP||(tP=nO.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)}),ax=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,ag);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tA||(tA=nO.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"})),tN||(tN=nO.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)}),ab=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,av);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tR||(tR=nO.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)}),aw=["children"],aj=["children"],ak=["children"],aE=["children"],aS=["children"],aC=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,aw);return nO.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tD||(tD=nO.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"})),tL||(tL=nO.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)}),aM=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,aj);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tZ||(tZ=nO.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm8,15H11.85l5.58,5.5728L16,24,8,16l8-8,1.43,1.3926L11.85,15H24Z"})),tF||(tF=nO.createElement("path",{fill:"none",d:"M16 8L17.43 9.393 11.85 15 24 15 24 17 11.85 17 17.43 22.573 16 24 8 16 16 8z","data-icon-path":"inner-path"})),n)}),a_=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,ak);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tz||(tz=nO.createElement("circle",{cx:"11",cy:"15.5",r:"1.5"})),tV||(tV=nO.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"})),tB||(tB=nO.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)}),aO=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,aE);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tI||(tI=nO.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)}),aT=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,aS);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tH||(tH=nO.createElement("path",{d:"M20.59 22L15 16.41 15 7 17 7 17 15.58 22 20.59 20.59 22z"})),tU||(tU=nO.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)}),aP=["children"],aA=["children"],aN=["children"],aR=["children"],aD=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,aP);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tW||(tW=nO.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)}),aL=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,aA);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tq||(tq=nO.createElement("path",{d:"M27,8H6.83l3.58-3.59L9,3,3,9l6,6,1.41-1.41L6.83,10H27V26H7V19H5v7a2,2,0,0,0,2,2H27a2,2,0,0,0,2-2V10A2,2,0,0,0,27,8Z"})),n)}),aZ=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,aN);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t$||(t$=nO.createElement("path",{d:"M10 16H22V18H10zM10 10H22V12H10z"})),tK||(tK=nO.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)}),aF=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,aR);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tY||(tY=nO.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)}),az=["children"],aV=["children"],aB=["children"],aI=["children"],aH=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,az);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tX||(tX=nO.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)}),aU=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,aV);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tG||(tG=nO.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)}),aW=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,aB);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tJ||(tJ=nO.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"})),tQ||(tQ=nO.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)}),aq=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,aI);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t0||(t0=nO.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)}),a$=["children"],aK=["children"],aY=["children"],aX=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,a$);return nO.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t1||(t1=nO.createElement("path",{d:"M8 15H24V17H8z"})),n)}),aG=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,aK);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t2||(t2=nO.createElement("path",{d:"M8 15H24V17H8z"})),n)}),aJ=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,aY);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t4||(t4=nO.createElement("path",{d:"M16,4c6.6,0,12,5.4,12,12s-5.4,12-12,12S4,22.6,4,16S9.4,4,16,4 M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14 S23.7,2,16,2z"})),t3||(t3=nO.createElement("path",{d:"M8 15H24V17H8z"})),n)}),aQ=["children"],a0=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,aQ);return nO.createElement(nL,nA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t5||(t5=nO.createElement("path",{d:"M14 20.18L10.41 16.59 9 18 14 23 23 14 21.59 12.58 14 20.18z"})),t6||(t6=nO.createElement("path",{d:"M25,5H22V4a2,2,0,0,0-2-2H12a2,2,0,0,0-2,2V5H7A2,2,0,0,0,5,7V28a2,2,0,0,0,2,2H25a2,2,0,0,0,2-2V7A2,2,0,0,0,25,5ZM12,4h8V8H12ZM25,28H7V7h3v3H22V7h3Z"})),n)}),a1=["children"],a2=["children"],a4=["children"],a3=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,a1);return nO.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t8||(t8=nO.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)}),a5=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,a2);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t7||(t7=nO.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"})),t9||(t9=nO.createElement("path",{fill:"none",d:"M11 14H21V18H11z","data-icon-path":"inner-path"})),n)}),a6=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,a4);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ne||(ne=nO.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)}),a8=["children"],a7=["children"],a9=["children"],oe=["children"],ot=["children"],on=["children"],or=["children"],oi=["children"],oa=["children"],oo=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,a8);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),nt||(nt=nO.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)}),ol=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,a7);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),nn||(nn=nO.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"})),nr||(nr=nO.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)}),os=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,a9);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ni||(ni=nO.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"})),na||(na=nO.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)}),ou=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,oe);return nO.createElement(nL,nA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),no||(no=nO.createElement("path",{d:"M22 17H24V19H22z"})),nl||(nl=nO.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)}),oc=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,ot);return nO.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ns||(ns=nO.createElement("path",{d:"M22 17H24V19H22z"})),nu||(nu=nO.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)}),od=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,on);return nO.createElement(nL,nA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),nc||(nc=nO.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"})),nd||(nd=nO.createElement("path",{d:"M15 8H17V19H15zM16 22a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0016 22z"})),n)}),of=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,or);return nO.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),nf||(nf=nO.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"})),nh||(nh=nO.createElement("path",{d:"M15 8H17V19H15zM16 22a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0016 22z"})),n)}),oh=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,oi);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),np||(np=nO.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"})),nm||(nm=nO.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)}),op=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,oa);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ng||(ng=nO.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"})),nv||(nv=nO.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)}),om=["children"],og=["children"],ov=["children"],oy=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,om);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ny||(ny=nO.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"})),nx||(nx=nO.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)}),ox=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,og);return nO.createElement(nL,nA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),nb||(nb=nO.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)}),ob=nO.forwardRef(function(e,t){var n=e.children,r=nN(e,ov);return nO.createElement(nL,nA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),nw||(nw=nO.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"})),nj||(nj=nO.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"})),nk||(nk=nO.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)}),ow=n(52322);function oj(e){let{size:t=24}=e;return(0,ow.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ow.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 ok(e){let{size:t=24}=e;return(0,ow.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",children:(0,ow.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,ow.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:n,fill:"currentColor",viewBox:"0 0 384 512",children:(0,ow.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 oS(e){let{size:t=24,className:n}=e;return(0,ow.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",className:n,children:(0,ow.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 oC(e){let{size:t=24,className:n}=e;return(0,ow.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,className:n,fill:"currentColor",viewBox:"0 0 512 512",children:(0,ow.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 oM(e){let{size:t=24}=e;return(0,ow.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ow.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 o_(e){let{size:t=24}=e;return(0,ow.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ow.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,ow.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:t,height:t,fill:"currentColor",children:(0,ow.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 oT(e){let{size:t=24}=e;return(0,ow.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:t,width:t,fill:"currentColor",children:(0,ow.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 oP(e){let{size:t=24}=e;return(0,ow.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,width:t,fill:"currentColor",children:(0,ow.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 oA(e){let{size:t=24}=e;return(0,ow.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,ow.jsx)("polygon",{points:"23,9.2 20.4,6.6 19,8 23,12 30,5 28.6,3.6 "}),(0,ow.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,ow.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,ow.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,ow.jsx)("rect",{fill:"none",width:"32",height:"32"})]})}function oN(e){let{size:t=24}=e;return(0,ow.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ow.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"})})}function oR(e){let{size:t=24,className:n}=e;return(0,ow.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,className:n,fill:"currentColor",viewBox:"0 0 512 512",children:(0,ow.jsx)("path",{d:"M336 352c97.2 0 176-78.8 176-176S433.2 0 336 0S160 78.8 160 176c0 18.7 2.9 36.8 8.3 53.7L7 391c-4.5 4.5-7 10.6-7 17v80c0 13.3 10.7 24 24 24h80c13.3 0 24-10.7 24-24V448h40c13.3 0 24-10.7 24-24V384h40c6.4 0 12.5-2.5 17-7l33.3-33.3c16.9 5.4 35 8.3 53.7 8.3zM376 96a40 40 0 1 1 0 80 40 40 0 1 1 0-80z"})})}},55329:function(e,t,n){"use strict";n.d(t,{cJ:function(){return M},Z7:function(){return J},Uy:function(){return Q},e$:function(){return eu},Mz:function(){return ed},oe:function(){return ec},S0:function(){return ef},YX:function(){return es},Bl:function(){return eh},D5:function(){return N},oV:function(){return R},sg:function(){return L},ol:function(){return D},B$:function(){return A},d_:function(){return l},DQ:function(){return s},cq:function(){return O},IK:function(){return T},Wu:function(){return P},GP:function(){return _},nH:function(){return u},$:function(){return w},wW:function(){return C},s2:function(){return k},ni:function(){return E},uf:function(){return j},Os:function(){return S},FV:function(){return b},Yy:function(){return ee},Bi:function(){return et},X1:function(){return en},LS:function(){return ea},_3:function(){return ei},eM:function(){return er},bg:function(){return eo},Pt:function(){return ey},wy:function(){return z},xw:function(){return I},Jv:function(){return Z},p$:function(){return eg},SD:function(){return F},GD:function(){return B},Iy:function(){return V},Q5:function(){return H},ZM:function(){return ev},f$:function(){return eb},M6:function(){return q},Kh:function(){return W},HA:function(){return X},fz:function(){return $},FD:function(){return K},KJ:function(){return G},au:function(){return Y},Wl:function(){return d},cQ:function(){return c},ys:function(){return h},QL:function(){return f},X2:function(){return p},aO:function(){return y},gU:function(){return g},a0:function(){return x},cg:function(){return v},Qq:function(){return m}});var r=n(79381),i=n(82842),a=n(80373),o=n(79895);function l(e){return(0,i.Nf)({...e,route:o.PS})}function s(e){return(0,i.Nf)({...e,route:o.J6})}function u(){let e=l({config:{swr:{revalidateOnFocus:!1}}});return(0,r.ZP)(e,()=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.network)==="zen"?(0,a.du)():(0,a.Tc)()},{refreshInterval:6e4,keepPreviousData:!0}).data||0}function c(e){return(0,i.Nf)({...e,route:o.gl})}function d(e){return(0,i.mw)({...e,route:o.aU},async e=>{e(e=>e===o.gl)})}function f(e){return(0,i.Nf)({...e,route:o.Oj})}function h(e){return(0,i.mw)({...e,route:o.MR},async e=>{await (0,i.gw)(2e3),e(e=>e.startsWith(o.Oj)||e.startsWith(o.zk))})}function p(e){return(0,i.Nf)({...e,route:o.xg})}function m(e){return(0,i.Nf)({...e,route:o.Y6})}function g(e){return(0,i.mw)({...e,route:o.hg})}function v(e){return(0,i.mw)({...e,route:o.ZQ})}function y(e){return(0,i.mw)({...e,route:o.Oy})}function x(e){return(0,i.Nf)({...e,route:o.zk})}function b(e){return(0,i.q0)({...e,route:o.Rp})}function w(e){return(0,i.Nf)({...e,route:o.rg})}function j(e){return(0,i.Nf)({...e,route:o.yu})}function k(e){return(0,i.Nf)({...e,route:o.MF})}function E(e){return(0,i.V1)({...e,route:o.MF},async e=>{e(e=>!![o.Rp,o.MF,o.FP].find(t=>e.startsWith(t)))})}function S(e){return(0,i.V1)({...e,route:o.yu},async e=>{e(e=>!![o.Rp,o.yu,o.FP].find(t=>e.startsWith(t)))})}function C(e){return(0,i.mw)({...e,route:o.KP})}function M(e){return(0,i.mw)({...e,route:o.UM})}function _(e){return(0,i.Nf)({...e,route:o.FP})}function O(e){return(0,i.Nf)({...e,route:o.J9})}function T(e){return(0,i.iv)({...e,route:o.J9},async e=>{e(e=>e.startsWith(o.ft))})}function P(e){return(0,i.Nf)({...e,route:o.E_})}function A(e){return(0,i.Nf)({...e,route:o.AJ})}function N(e){return(0,i.Nf)({...e,route:o.aq})}function R(e){return(0,i.mw)({...e,route:o.AJ},async e=>{e(e=>e.startsWith(o.AJ))})}function D(e){return(0,i.V1)({...e,route:o.mD},async e=>{e(e=>e.startsWith(o.rS))})}function L(e){return(0,i.iv)({...e,route:o.aq},async e=>{e(e=>e.startsWith(o.rS))})}function Z(e){return(0,i.Nf)({...e,route:o.uT})}function F(e){return(0,i.q0)({...e,route:o.p_})}function z(e){return(0,i.Nf)({...e,route:o.uT})}function V(e){return(0,i.Nf)({...e,route:o.O7})}function B(e){return(0,i.mw)({...e,route:o.oZ})}function I(e){return(0,i.iv)({...e,route:o.uT},async e=>{e(e=>e.startsWith(o.DL))})}function H(e){return(0,i.Nf)({...e,route:o.VJ})}function U(e){return(0,i.Nf)({...e,route:o.ww})}function W(e){return U({...e,params:{key:"gouging"}})}function q(e){return U({...e,params:{key:"contractset"}})}function $(e){return U({...e,params:{key:"redundancy"}})}function K(e){return U({...e,params:{key:"s3authentication"}})}function Y(e){return U({...e,params:{key:"uploadpacking"}})}function X(e){return U({...e,params:{key:"pricepinning"}})}function G(e){return(0,i.V1)({...e,route:o.ww},async(e,t)=>{e(e=>e.startsWith(o.ww.replace(":key",t.params.key)))})}function J(e){return(0,i.Nf)({...e,route:o.jL})}function Q(e){return(0,i.mw)({...e,route:o.ks},async e=>{e(e=>e.startsWith(o.jL))})}function ee(e){return(0,i.Nf)({...e,route:o.hp})}function et(e){return(0,i.Nf)({...e,route:o.Mj})}function en(e){return(0,i.Nf)({...e,route:o.nI})}function er(e){return(0,i.mw)({...e,route:o.sW},async e=>{e(e=>e.startsWith(o.Wy))})}function ei(e){return(0,i.mw)({...e,route:o.Pw},async e=>{e(e=>e.startsWith(o.Wy))})}function ea(e){return(0,i.mw)({...e,route:o.w_},async e=>{e(e=>e.startsWith(o.Wy))})}function eo(e){return(0,i.q0)({...e,route:o.CM})}var el=n(56922);function es(e){return(0,i.Nf)({...e,route:el.E})}function eu(e){return(0,i.Nf)({...e,route:el.yq})}function ec(e){return(0,i.V1)({...e,route:el.yq},async e=>{e(e=>e===el.yq),(async()=>{await (0,i.gw)(1e3),e(e=>e===el.E)})()})}function ed(e){return(0,i.q0)({...e,route:el.yq})}function ef(e){return(0,i.q0)({...e,route:el.fu})}function eh(e){return(0,i.mw)({...e,route:el.sM})}var ep=n(1456),em=n(8117);function eg(e){return(0,i.rB)({...e,route:em.Hc})}function ev(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:em.Hc},async e=>{e(e=>e.startsWith(o.DL))})}function ey(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:em.bW})}let ex=(0,ep.Z)(e=>e(),5e3);function eb(e){return(0,i.mw)({...e,route:em.RF},async(e,t,n)=>{let{payload:{hostKey:r}}=t;e(e=>e.startsWith(el.fu),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(o.Rp),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),ex(()=>{e(e=>e.startsWith(el.fu)||e.startsWith(o.Rp),e=>e,!0)})})}},56922:function(e,t,n){"use strict";n.d(t,{E:function(){return r},fu:function(){return a},sM:function(){return o},yq:function(){return i}});let r="/autopilot/state",i="/autopilot/config",a="/autopilot/hosts",o="/autopilot/trigger"},79895:function(e,t,n){"use strict";n.d(t,{AD:function(){return D},AF:function(){return s},AJ:function(){return I},CM:function(){return ed},DL:function(){return W},E_:function(){return F},FP:function(){return T},GV:function(){return ec},I7:function(){return z},J6:function(){return i},J9:function(){return R},KP:function(){return _},Kr:function(){return b},MF:function(){return M},MR:function(){return c},Mj:function(){return er},N8:function(){return j},O7:function(){return K},Oj:function(){return u},Oy:function(){return x},PS:function(){return r},Pw:function(){return es},Rp:function(){return k},UM:function(){return O},VJ:function(){return X},Wy:function(){return eo},Y6:function(){return p},Z:function(){return d},Z2:function(){return L},ZQ:function(){return v},aU:function(){return l},aq:function(){return H},cN:function(){return Z},f0:function(){return y},fD:function(){return G},fo:function(){return P},ft:function(){return N},gc:function(){return a},gl:function(){return o},go:function(){return et},hg:function(){return g},hp:function(){return en},jL:function(){return Q},ks:function(){return ee},l5:function(){return ei},mD:function(){return U},nI:function(){return ea},nY:function(){return S},o5:function(){return ef},oZ:function(){return Y},p_:function(){return $},rS:function(){return B},rW:function(){return m},rg:function(){return E},sW:function(){return el},sj:function(){return h},sw:function(){return A},uT:function(){return q},w_:function(){return eu},ww:function(){return J},xg:function(){return f},yu:function(){return C},z$:function(){return V},zk:function(){return w}});let r="/bus/state",i="/bus/consensus/state",a="/bus/consensus/acceptblock",o="/bus/syncer/peers",l="/bus/syncer/connect",s="/bus/syncer/addr",u="/bus/txpool/transactions",c="/bus/txpool/broadcast",d="/bus/txpool/fee",f="/bus/wallet",h="/bus/wallet/addresses",p="/bus/wallet/transactions",m="/bus/wallet/outputs",g="/bus/wallet/fund",v="/bus/wallet/sign",y="/bus/wallet/redistribute",x="/bus/wallet/discard",b="/bus/wallet/prepare/form",w="/bus/wallet/pending",j="/bus/hosts",k="/bus/search/hosts",E="/bus/host/:hostKey",S="/bus/hosts/:hostKey",C="/bus/hosts/blocklist",M="/bus/hosts/allowlist",_="/bus/host/:publicKey/resetlostsectors",O="/bus/account/:id/resetdrift",T="/bus/contracts",P="/bus/contract/:id/acquire",A="/bus/contract/:id/release",N="/bus/contract",R="/bus/contract/:id",D="/bus/contract/:id/new",L="/bus/contract/:id/renewed",Z="/bus/contract/:id/size",F="/bus/contracts/sets",z="/bus/contracts/sets/:set",V="/bus/contracts/prunable",B="/bus/bucket",I="/bus/buckets",H="/bus/bucket/:name",U="/bus/bucket/:name/policy",W="/bus/objects",q="/bus/objects/:key",$="/bus/objects/list",K="/bus/search/objects",Y="/bus/objects/rename",X="/bus/stats/objects",G="/bus/settings",J="/bus/setting/:key",Q="/bus/alerts",ee="/bus/alerts/dismiss",et="/bus/slab/:key/objects",en="/bus/metric/contract",er="/bus/metric/contractset",ei="/bus/metric/churn",ea="/bus/metric/wallet",eo="/bus/multipart",el="/bus/multipart/create",es="/bus/multipart/complete",eu="/bus/multipart/abort",ec="/bus/multipart/listparts",ed="/bus/multipart/listuploads",ef="/bus/multipart/part"},8117:function(e,t,n){"use strict";n.d(t,{Hc:function(){return r},RF:function(){return a},bW:function(){return i}});let r="/worker/objects/:key",i="/worker/multipart/:key",a="/worker/rhp/scan"},56978:function(e,t,n){"use strict";n.d(t,{Li:function(){return A},YY:function(){return N},AR:function(){return P}});var r,i=n(23761),a=n(40905),o=n(78804),l=function(e,t,n){(void 0===n||(0,o.Z)(e[t],n))&&(void 0!==n||t in e)||(0,a.Z)(e,t,n)},s=n(86862),u=n(25056),c=n(76735),d=n(31162),f=n(81383),h=n(84405),p=n(97885),m=n(37539),g=n(42143),v=n(8936),y=n(93122),x=n(65255),b=n(48532),w=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},j=n(82436),k=n(17816),E=function(e,t,n,r,i,a,o){var s=w(e,n),E=w(t,n),S=o.get(E);if(S){l(e,n,S);return}var C=a?a(s,E,n+"",e,t,o):void 0,M=void 0===C;if(M){var _=(0,p.Z)(E),O=!_&&(0,g.Z)(E),T=!_&&!O&&(0,b.Z)(E);(C=E,_||O||T)?(0,p.Z)(s)?C=s:(0,m.Z)(s)?C=(0,d.Z)(s):O?(M=!1,C=(0,u.Z)(E,!0)):T?(M=!1,C=(0,c.Z)(E,!0)):C=[]:(0,x.Z)(E)||(0,h.Z)(E)?(C=s,(0,h.Z)(s))?C=(0,j.Z)(s,(0,k.Z)(s)):(!(0,y.Z)(s)||(0,v.Z)(s))&&(C=(0,f.Z)(E)):M=!1}M&&(o.set(E,C),i(C,E,r,a,o),o.delete(E)),l(e,n,C)},S=function e(t,n,r,a,o){t!==n&&(0,s.Z)(n,function(s,u){if(o||(o=new i.Z),(0,y.Z)(s))E(t,n,u,r,e,a,o);else{var c=a?a(w(t,u),s,u+"",t,n,o):void 0;void 0===c&&(c=s),l(t,u,c)}},k.Z)},C=n(56493),M=n(95965),_=(r=function(e,t,n){S(e,t,n)},(0,C.Z)(function(e,t){var n=-1,i=t.length,a=i>1?t[i-1]:void 0,o=i>2?t[2]:void 0;for(a=r.length>3&&"function"==typeof a?(i--,a):void 0,o&&(0,M.Z)(t[0],t[1],o)&&(a=i<3?void 0:a,i=1),e=Object(e);++n3&&void 0!==arguments[3]?arguments[3]:{};return i=>{let a={...i},o={...a,config:_(r.config,a.config)},l=P(n,{...r.defaultParams,...o.params}),s="data"in o?o.data:void 0;return e[t](l,s,null==o?void 0:o.config)}}function N(e,t){let n={"Content-Type":"application/json"};return t&&(n.Authorization="Basic ".concat(btoa(":".concat(t)))),T().create({baseURL:e,headers:n})}},85375:function(e,t,n){"use strict";n.d(t,{BW:function(){return l},JL:function(){return a},BF:function(){return o}});var r=n(82842);let i="https://api.siacentral.com/v2";function a(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 o(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 l(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})}},80373:function(e,t,n){"use strict";n.d(t,{B$:function(){return a},xf:function(){return l},jr:function(){return E},pp:function(){return j},x5:function(){return k},JW:function(){return o},k4:function(){return N},gU:function(){return x},mj:function(){return q},Lg:function(){return U},gP:function(){return d},Lu:function(){return $},uF:function(){return H},jH:function(){return W},uV:function(){return I},jF:function(){return V},Tc:function(){return R},aU:function(){return A},du:function(){return D},le:function(){return L},pX:function(){return F},vW:function(){return m},rN:function(){return y},yF:function(){return v},Vz:function(){return p},bc:function(){return g},S5:function(){return w},C4:function(){return f},qN:function(){return c},ll:function(){return u},dq:function(){return M},LK:function(){return S},ZA:function(){return T},oc:function(){return O},x9:function(){return P},qX:function(){return _},iX:function(){return C},mv:function(){return b}});var r=n(6391),i=n.n(r);function a(e){return new(i())(e).times(1048576)}function o(e){return new(i())(e).div(1e12)}function l(e){return new(i())(e).times(1e12)}r.BigNumber.config({EXPONENTIAL_AT:1e9}),r.BigNumber.config({DECIMAL_PLACES:30});let s=new r.BigNumber("10").exponentiatedBy(24);function u(e,t){return void 0!==t?new r.BigNumber(new r.BigNumber(e).dividedBy(s).toFixed(t)):new r.BigNumber(e).dividedBy(s)}function c(e){return new r.BigNumber(new r.BigNumber(e).times(s).toFixed(0))}function d(e,t){return e.div(t)}function f(e,t){return e.times(t)}let h={fixed:3,dynamicUnits:!0,hastingUnits:!1};function p(e,t){let{fixed:n,dynamicUnits:i,hastingUnits:a}={...h,...t},o=new r.BigNumber(1e12),l=new r.BigNumber(1e3),s=new r.BigNumber(e),c=new r.BigNumber(e).abs(),d=s.isNegative()?"-":"";if(!i)return"".concat(d).concat(u(c).toFormat(n)," SC");if(c.dividedBy(o).isLessThan(1))return a?"".concat(d).concat(c," H"):"".concat(d,"0 SC");let f=["pS","nS","uS","mS","SC","KS","MS","GS","TS"];for(let e=0;ee.multipliedBy(l),new r.BigNumber(1)),i=c.dividedBy(o.multipliedBy(t));if(i.isLessThan(l)||e===f.length-1)return"".concat(d).concat(i.toFormat(n)," ").concat(f[e])}return""}function m(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 a=Math.floor(Math.log10(n)/Math.log10(1e3));return(n/Math.pow(1e3,a)).toFixed(r)+" "+["B","KB","MB","GB","TB","PB","EB"][a]}function g(e,t){let{format:n="abbreviated"}=t||{},r="abbreviated"===n;if(e<1e3)return"".concat(e.toFixed(0)).concat(r?"ms":" milliseconds");let i=e/1e3;if(i<60)return"".concat(i.toFixed(0)).concat(r?"s":" seconds");let a=i/60;if(a<60)return"".concat(a.toFixed(0)).concat(r?"m":" minutes");let o=a/60;return o<24?"".concat(o.toFixed(0)).concat(r?"h":" hours"):"".concat((o/24).toFixed(0)).concat(r?"d":" days")}function v(e,t){let{fixed:n=0,units:r="",abbreviated:a=!1}=t||{},o=new(i())(e||0);if(a){let e=o.toNumber();if(e<1e3)return o.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)),a=e/Math.pow(1e3,i);return"".concat(a.toFixed(n)).concat(t[i]?" ".concat(t[i]):"").concat(r?" ".concat(r):"")}return"".concat(o.toFormat(n)).concat(r?" ".concat(r):"")}function y(e,t){let n;return n=navigator.language,new Intl.DateTimeFormat(n,{dateStyle:"short",...t}).format(new Date(e))}function x(e){return 144*e}function b(e){return 1008*e}function w(e){return 4320*e}function j(e){return e/16666666666666669e-22}function k(e){return e/1008}function E(e,t){return new Date().getTime()+j(t-e)}function S(e){return e.times(l(1))}function C(e){return e.div(l(1)).div(w(1))}function M(e){return S(e).times(w(1))}function _(e,t){return e.div(t).times(w(1))}function O(e,t){let n=b(t.toNumber());return e.times(n).div(w(1))}function T(e){return e.div(1e6)}function P(e){return e.times(1e6)}function A(e,t){let n=new(i())(1);return e&&t&&!e.isZero()&&!t.isZero()&&t.gte(e)&&(n=t.div(e)),n}function N(e){let{maxStoragePriceTBMonth:t,maxDownloadPriceTB:n,maxUploadPriceTB:r,storageTB:i,downloadTBMonth:a,uploadTBMonth:o,redundancyMultiplier:l}=e;if(!(null==t?void 0:t.gt(0))||!(null==n?void 0:n.gt(0))||!(null==r?void 0:r.gt(0))||!(null==l?void 0:l.gt(0))||!(null==i?void 0:i.gt(0))||!(null==a?void 0:a.gt(0))||!(null==o?void 0:o.gt(0)))return null;let s=i.times(l),u=o.times(l);return s.times(t).plus(a.times(n)).plus(u.times(r))}function R(){return Math.round((new Date().getTime()-14336e8)/6e5)}function D(){return Math.round((new Date().getTime()-16736e8)/6e5)}function L(e){return 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}n(81395);let Z={siacoin:"siacoin transfer",siafund:"siafund transfer",contractFormation:"contract formation",contractRenewal:"contract renewal",contractRevision:"contract revision",contractExpiration:"contract expiration",contractFinalization:"contract finalization",contractPayout:"contract payout",storageProof:"storage proof",minerPayout:"miner payout",siafundClaim:"siafund claim",foundationSubsidy:"foundation subsidy",hostAnnouncement:"host announcement"};function F(e){return e?Z[e]:void 0}let z={transaction:"transaction",contract:"contract",block:"block",output:"output",address:"address",hostIp:"host",hostPublicKey:"host",ip:"IP",blockHash:"block hash"};function V(e){return e?z[e]:void 0}let B={transaction:"transaction ID",contract:"contract ID",block:"block",output:"output ID",address:"address",hostIp:"host address",hostPublicKey:"host public key",ip:"IP",blockHash:"block hash"};function I(e){return e?B[e]:void 0}function H(e){return e&&["ip","hostIp"].includes(e)?20:12}function U(e){return e&&["hostIp","hostPublicKey","contract","address","transaction","block"].includes(e)}function W(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""}}function q(e,t){return"".concat(null==e?void 0:e.slice(0,t)).concat(((null==e?void 0:e.length)||0)>t?"...":"")}function $(e,t,n){if("blockHash"===e){let e=n/2;return t.slice(0,Math.floor(e))+"..."+t.slice(t.length-Math.ceil(e))}return q(t,n)}},45932:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(67531).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)},67531:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return a}});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 a(){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)},76923: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)},58710: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 s.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return s.useServerInsertedHTML},useRouter:function(){return g},useParams:function(){return v},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(56428),a=n(26297),o=n(76923),l=n(33607),s=n(9424),u=n(84830),c=n(70929),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,o.clientHookInServerComponentError)("useSearchParams");let e=(0,r.useContext)(a.SearchParamsContext);return(0,r.useMemo)(()=>e?new h(e):null,[e])}function m(){return(0,o.clientHookInServerComponentError)("usePathname"),(0,r.useContext)(a.PathnameContext)}function g(){(0,o.clientHookInServerComponentError)("useRouter");let e=(0,r.useContext)(i.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function v(){(0,o.clientHookInServerComponentError)("useParams");let e=(0,r.useContext)(i.GlobalLayoutRouterContext),t=(0,r.useContext)(a.PathParamsContext);return(0,r.useMemo)(()=>(null==e?void 0:e.tree)?function e(t,n){for(let r of(void 0===n&&(n={}),Object.values(t[1]))){let t=r[0],i=Array.isArray(t),a=i?t[1]:t;!a||a.startsWith("__PAGE__")||(i&&("c"===t[2]||"oc"===t[2])?n[t[0]]=t[1].split("/"):i&&(n[t[0]]=t[1]),n=e(r,n))}return n}(e.tree):t,[null==e?void 0:e.tree,t])}function y(e){void 0===e&&(e="children"),(0,o.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,r.useContext)(i.LayoutRouterContext);return function e(t,n,r,i){let a;if(void 0===r&&(r=!0),void 0===i&&(i=[]),r)a=t[1][n];else{var o;let e=t[1];a=null!=(o=e.children)?o:Object.values(e)[0]}if(!a)return i;let s=a[0],u=(0,l.getSegmentValue)(s);return!u||u.startsWith("__PAGE__")?i:(i.push(u),e(a,n,!1,i))}(t,e)}function x(e){void 0===e&&(e="children"),(0,o.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)},70929: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)},32254:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return n}}),(r=n||(n={}))[r.SeeOther=303]="SeeOther",r[r.TemporaryRedirect=307]="TemporaryRedirect",r[r.PermanentRedirect=308]="PermanentRedirect",("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)},84830: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 u},redirect:function(){return c},permanentRedirect:function(){return d},isRedirectError:function(){return f},getURLFromRedirectError:function(){return h},getRedirectTypeFromError:function(){return p},getRedirectStatusCodeFromError:function(){return m}});let a=n(37449),o=n(45932),l=n(32254),s="NEXT_REDIRECT";function u(e,t,n){void 0===n&&(n=l.RedirectStatusCode.TemporaryRedirect);let r=Error(s);r.digest=s+";"+t+";"+e+";"+n+";";let i=a.requestAsyncStorage.getStore();return i&&(r.mutableCookies=i.mutableCookies),r}function c(e,t){void 0===t&&(t="replace");let n=o.actionAsyncStorage.getStore();throw u(e,t,(null==n?void 0:n.isAction)?l.RedirectStatusCode.SeeOther:l.RedirectStatusCode.TemporaryRedirect)}function d(e,t){void 0===t&&(t="replace");let n=o.actionAsyncStorage.getStore();throw u(e,t,(null==n?void 0:n.isAction)?l.RedirectStatusCode.SeeOther:l.RedirectStatusCode.PermanentRedirect)}function f(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,n,r,i]=e.digest.split(";",4),a=Number(i);return t===s&&("replace"===n||"push"===n)&&"string"==typeof r&&!isNaN(a)&&a in l.RedirectStatusCode}function h(e){return f(e)?e.digest.split(";",3)[2]:null}function p(e){if(!f(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function m(e){if(!f(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(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)},37449:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(67531).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)},33607: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)},40413: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 a},ACTION_RESTORE:function(){return o},ACTION_SERVER_PATCH:function(){return l},ACTION_PREFETCH:function(){return s},ACTION_FAST_REFRESH:function(){return u},ACTION_SERVER_ACTION:function(){return c},isThenable:function(){return d}});let i="refresh",a="navigate",o="restore",l="server-patch",s="prefetch",u="fast-refresh",c="server-action";function d(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(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)},41275: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(60261),("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)},84589:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return v}});let r=n(43219),i=n(16794)._(n(2784)),a=r._(n(28316)),o=r._(n(70666)),l=n(35022),s=n(59595),u=n(22530);n(85667);let c=n(14442),d=r._(n(1071)),f={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 h(e,t,n,r,i,a){let o=null==e?void 0:e.src;e&&e["data-loaded-src"]!==o&&(e["data-loaded-src"]=o,("decode"in e?e.decode():Promise.resolve()).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 p(e){let[t,n]=i.version.split(".",2),r=parseInt(t,10),a=parseInt(n,10);return r>18||18===r&&a>=3?{fetchPriority:e}:{fetchpriority:e}}let m=(0,i.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:a,height:o,width:l,decoding:s,className:u,style:c,fetchPriority:d,placeholder:f,loading:m,unoptimized:g,fill:v,onLoadRef:y,onLoadingCompleteRef:x,setBlurComplete:b,setShowAltText:w,onLoad:j,onError:k,...E}=e;return i.default.createElement("img",{...E,...p(d),loading:m,width:l,height:o,decoding:s,"data-nimg":v?"fill":"1",className:u,style:c,sizes:a,srcSet:r,src:n,ref:(0,i.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(k&&(e.src=e.src),e.complete&&h(e,f,y,x,b,g))},[n,f,y,x,b,k,g,t]),onLoad:e=>{h(e.currentTarget,f,y,x,b,g)},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,...p(n.fetchPriority)};return t&&a.default.preload?(a.default.preload(n.src,r),null):i.default.createElement(o.default,null,i.default.createElement("link",{key:"__nimg-"+n.src+n.srcSet+n.sizes,rel:"preload",href:n.srcSet?void 0:n.src,...r}))}let v=(0,i.forwardRef)((e,t)=>{let n=(0,i.useContext)(c.RouterContext),r=(0,i.useContext)(u.ImageConfigContext),a=(0,i.useMemo)(()=>{let e=f||r||s.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:o,onLoadingComplete:h}=e,p=(0,i.useRef)(o);(0,i.useEffect)(()=>{p.current=o},[o]);let v=(0,i.useRef)(h);(0,i.useEffect)(()=>{v.current=h},[h]);let[y,x]=(0,i.useState)(!1),[b,w]=(0,i.useState)(!1),{props:j,meta:k}=(0,l.getImgProps)(e,{defaultLoader:d.default,imgConf:a,blurComplete:y,showAltText:b});return i.default.createElement(i.default.Fragment,null,i.default.createElement(m,{...j,unoptimized:k.unoptimized,placeholder:k.placeholder,fill:k.fill,onLoadRef:p,onLoadingCompleteRef:v,setBlurComplete:x,setShowAltText:w,ref:t}),k.priority?i.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)},7117:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let r=n(43219)._(n(2784)),i=n(86338),a=n(25863),o=n(6408),l=n(20654),s=n(41127),u=n(14442),c=n(56428),d=n(54746),f=n(41275),h=n(35722),p=n(40413),m=new Set;function g(e,t,n,r,i,o){if(o||(0,a.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){let i=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(m.has(i))return;m.add(i)}Promise.resolve(o?e.prefetch(t,i):e.prefetch(t,n,r)).catch(e=>{})}}function v(e){return"string"==typeof e?e:(0,o.formatUrl)(e)}let y=r.default.forwardRef(function(e,t){let n,o;let{href:m,as:y,children:x,prefetch:b=null,passHref:w,replace:j,shallow:k,scroll:E,locale:S,onClick:C,onMouseEnter:M,onTouchStart:_,legacyBehavior:O=!1,...T}=e;n=x,O&&("string"==typeof n||"number"==typeof n)&&(n=r.default.createElement("a",null,n));let P=r.default.useContext(u.RouterContext),A=r.default.useContext(c.AppRouterContext),N=null!=P?P:A,R=!P,D=!1!==b,L=null===b?p.PrefetchKind.AUTO:p.PrefetchKind.FULL,{href:Z,as:F}=r.default.useMemo(()=>{if(!P){let e=v(m);return{href:e,as:y?v(y):e}}let[e,t]=(0,i.resolveHref)(P,m,!0);return{href:e,as:y?(0,i.resolveHref)(P,y):t||e}},[P,m,y]),z=r.default.useRef(Z),V=r.default.useRef(F);O&&(o=r.default.Children.only(n));let B=O?o&&"object"==typeof o&&o.ref:t,[I,H,U]=(0,d.useIntersection)({rootMargin:"200px"}),W=r.default.useCallback(e=>{(V.current!==F||z.current!==Z)&&(U(),V.current=F,z.current=Z),I(e),B&&("function"==typeof B?B(e):"object"==typeof B&&(B.current=e))},[F,B,Z,U,I]);r.default.useEffect(()=>{N&&H&&D&&g(N,Z,F,{locale:S},{kind:L},R)},[F,Z,H,S,D,null==P?void 0:P.locale,N,R,L]);let q={ref:W,onClick(e){O||"function"!=typeof C||C(e),O&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(e),N&&!e.defaultPrevented&&function(e,t,n,i,o,l,s,u,c){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let f=()=>{let e=null==s||s;"beforePopState"in t?t[o?"replace":"push"](n,i,{shallow:l,locale:u,scroll:e}):t[o?"replace":"push"](i||n,{scroll:e})};c?r.default.startTransition(f):f()}(e,N,Z,F,j,k,E,S,R)},onMouseEnter(e){O||"function"!=typeof M||M(e),O&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),N&&(D||!R)&&g(N,Z,F,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:L},R)},onTouchStart(e){O||"function"!=typeof _||_(e),O&&o.props&&"function"==typeof o.props.onTouchStart&&o.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(!O||w||"a"===o.type&&!("href"in o.props)){let e=void 0!==S?S:null==P?void 0:P.locale,t=(null==P?void 0:P.isLocaleDomain)&&(0,f.getDomainLocale)(F,e,null==P?void 0:P.locales,null==P?void 0:P.domainLocales);q.href=t||(0,h.addBasePath)((0,s.addLocale)(F,e,null==P?void 0:P.defaultLocale))}return O?r.default.cloneElement(o,q):r.default.createElement("a",{...T,...q},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)},54746:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return s}});let r=n(2784),i=n(27155),a="function"==typeof IntersectionObserver,o=new Map,l=[];function s(e){let{rootRef:t,rootMargin:n,disabled:s}=e,u=s||!a,[c,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),h=(0,r.useCallback)(e=>{f.current=e},[]);return(0,r.useEffect)(()=>{if(a){if(u||c)return;let e=f.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:i,elements:a}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=l.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=o.get(r)))return t;let i=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:i},l.push(n),o.set(n,t),t}(n);return a.set(e,t),i.observe(e),function(){if(a.delete(e),i.unobserve(e),0===a.size){i.disconnect(),o.delete(r);let e=l.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,n,t,c,f.current]),[h,c,(0,r.useCallback)(()=>{d(!1)},[])]}("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)},24167: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 o},default:function(){return l}});let r=n(43219),i=(n(2784),r._(n(9034)));function a(e){return{default:(null==e?void 0:e.default)||e}}function o(e,t){return delete t.webpack,delete t.modules,e(t)}function l(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});let l=(r={...r,...t}).loader;return(r.loadableGenerated&&(r={...r,...r.loadableGenerated},delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr)?n({...r,loader:()=>null!=l?l().then(a):Promise.resolve(a(()=>null))}):(delete r.webpack,delete r.modules,o(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)},35022:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return l}}),n(85667);let r=n(48026),i=n(59595);function a(e){return void 0!==e.default}function o(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 l(e,t){var n;let l,s,u,{src:c,sizes:d,unoptimized:f=!1,priority:h=!1,loading:p,className:m,quality:g,width:v,height:y,fill:x=!1,style:b,onLoad:w,onLoadingComplete:j,placeholder:k="empty",blurDataURL:E,fetchPriority:S,layout:C,objectFit:M,objectPosition:_,lazyBoundary:O,lazyRoot:T,...P}=e,{imgConf:A,showAltText:N,blurComplete:R,defaultLoader:D}=t,L=A||i.imageConfigDefault;if("allSizes"in L)l=L;else{let e=[...L.deviceSizes,...L.imageSizes].sort((e,t)=>e-t),t=L.deviceSizes.sort((e,t)=>e-t);l={...L,allSizes:e,deviceSizes:t}}let Z=P.loader||D;delete P.loader,delete P.srcSet;let F="__next_img_default"in Z;if(F){if("custom"===l.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(C){"fill"===C&&(x=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[C];e&&(b={...b,...e});let t={responsive:"100vw",fill:"100vw"}[C];t&&!d&&(d=t)}let z="",V=o(v),B=o(y);if("object"==typeof(n=c)&&(a(n)||void 0!==n.src)){let e=a(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(s=e.blurWidth,u=e.blurHeight,E=E||e.blurDataURL,z=e.src,!x){if(V||B){if(V&&!B){let t=V/e.width;B=Math.round(e.height*t)}else if(!V&&B){let t=B/e.height;V=Math.round(e.width*t)}}else V=e.width,B=e.height}}let I=!h&&("lazy"===p||void 0===p);(!(c="string"==typeof c?c:z)||c.startsWith("data:")||c.startsWith("blob:"))&&(f=!0,I=!1),l.unoptimized&&(f=!0),F&&c.endsWith(".svg")&&!l.dangerouslyAllowSVG&&(f=!0),h&&(S="high");let H=o(g),U=Object.assign(x?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:M,objectPosition:_}:{},N?{}:{color:"transparent"},b),W=R||"empty"===k?null:"blur"===k?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:V,heightInt:B,blurWidth:s,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:a,sizes:o,loader:l}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:s,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"}}return"number"!=typeof t?{widths:r,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,o),c=s.length-1;return{sizes:o||"w"!==u?o:"100vw",srcSet:s.map((e,r)=>l({config:t,src:n,quality:a,width:e})+" "+("w"===u?e:r+1)+u).join(", "),src:l({config:t,src:n,quality:a,width:s[c]})}}({config:l,src:c,unoptimized:f,width:V,quality:H,sizes:d,loader:Z});return{props:{...P,loading:I?"lazy":p,fetchPriority:S,width:V,height:B,decoding:"async",className:m,style:{...U,...q},sizes:$.sizes,srcSet:$.srcSet,src:$.src},meta:{unoptimized:f,priority:h,placeholder:k,fill:x}}}},48026:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:a,objectFit:o}=e,l=r?40*r:t,s=i?40*i:n,u=l&&s?"viewBox='0 0 "+l+" "+s+"'":"";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"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+a+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},84420: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,{unstable_getImgProps:function(){return s},default:function(){return u}});let r=n(43219),i=n(35022),a=n(85667),o=n(84589),l=r._(n(1071)),s=e=>{(0,a.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:l.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=o.Image},1071: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},6730:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return r}});let r=n(43219)._(n(2784)).default.createContext(null)},9034: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 @@ -50,7 +50,7 @@ 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 f}});let r=n(43219)._(n(2784)),i=n(6730),a=[],o=[],l=!1;function s(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 u{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 c(e){return function(e,t){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),a=null;function s(){if(!a){let t=new u(e,n);a={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return a.promise()}if(!l){let e=n.webpack?n.webpack():n.modules;e&&o.push(t=>{for(let n of e)if(t.includes(n))return s()})}function c(e,t){!function(){s();let e=r.default.useContext(i.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach(t=>{e(t)})}();let o=r.default.useSyncExternalStore(a.subscribe,a.getCurrentValue,a.getCurrentValue);return r.default.useImperativeHandle(t,()=>({retry:a.retry}),[]),r.default.useMemo(()=>{var t;return o.loading||o.error?r.default.createElement(n.loading,{isLoading:o.loading,pastDelay:o.pastDelay,timedOut:o.timedOut,error:o.error,retry:a.retry}):o.loaded?r.default.createElement((t=o.loaded)&&t.default?t.default:t,e):null},[e,o])}return c.preload=()=>s(),c.displayName="LoadableComponent",r.default.forwardRef(c)}(s,e)}function d(e,t){let n=[];for(;e.length;){let r=e.pop();n.push(r(t))}return Promise.all(n).then(()=>{if(e.length)return d(e,t)})}c.preloadAll=()=>new Promise((e,t)=>{d(a).then(e,t)}),c.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let n=()=>(l=!0,t());d(o,e).then(n,n)})),window.__NEXT_PRELOADREADY=c.preloadReady;let f=c},9424: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 i},useServerInsertedHTML:function(){return a}});let r=n(16794)._(n(2784)),i=r.default.createContext(null);function a(e){let t=(0,r.useContext)(i);t&&t(e)}},50521:function(){},28863:function(e){e.exports={style:{fontFamily:"'__mono_59b18b', '__mono_Fallback_59b18b'"},className:"__className_59b18b",variable:"__variable_59b18b"}},46058:function(e){e.exports={style:{fontFamily:"'__sans_315985', '__sans_Fallback_315985'"},className:"__className_315985",variable:"__variable_315985"}},42351:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function a(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function l(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!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:a}catch(e){t=a}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var s=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?s=r.concat(s):c=-1,s.length&&f())}function f(){if(!u){var e=l(d);u=!0;for(var t=s.length;t;){for(r=s,s=[];++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/,a=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,o=/^\s*(['"]?)(.*?)(\1)\s*$/,l=new t(512),s=new t(512),u=new t(512);function c(e){return l.get(e)||l.set(e,d(e).map(function(e){return e.replace(o,"$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 s.get(e)||s.set(e,function(e,n){for(var r=0,i=t.length,a=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=s.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=o.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=o.getBCHTypeInfo(n),i=0;i<15;i++){var a=!e&&(r>>i&1)==1;i<6?this.modules[i][8]=a:i<8?this.modules[i+1][8]=a:this.modules[this.moduleCount-15+i][8]=a}for(var i=0;i<15;i++){var a=!e&&(r>>i&1)==1;i<8?this.modules[8][this.moduleCount-i-1]=a:i<9?this.modules[8][15-i-1+1]=a:this.modules[8][15-i-1]=a}this.modules[this.moduleCount-8][8]=!e},u.mapData=function(e,t){for(var n=-1,r=this.moduleCount-1,i=7,a=0,l=this.moduleCount-1;l>0;l-=2)for(6==l&&l--;;){for(var s=0;s<2;s++)if(null==this.modules[r][l-s]){var u=!1;a>>i&1)==1),o.getMask(t,r,l-s)&&(u=!u),this.modules[r][l-s]=u,-1==--i&&(a++,i=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}},s.PAD0=236,s.PAD1=17,s.createData=function(e,t,n){for(var r=i.getRSBlocks(e,t),l=new a,u=0;u8*d)throw Error("code length overflow. ("+l.getLengthInBits()+">"+8*d+")");for(l.getLengthInBits()+4<=8*d&&l.put(0,4);l.getLengthInBits()%8!=0;)l.putBit(!1);for(;!(l.getLengthInBits()>=8*d)&&(l.put(s.PAD0,8),!(l.getLengthInBits()>=8*d));)l.put(s.PAD1,8);return s.createBytes(l,r)},s.createBytes=function(e,t){for(var n=0,r=0,i=0,a=Array(t.length),s=Array(t.length),u=0;u=0?p.get(m):0}}for(var g=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^=l.G15<=0;)t^=l.G18<>>=1;return t},getPatternPosition:function(e){return l.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case o.PATTERN000:return(t+n)%2==0;case o.PATTERN001:return t%2==0;case o.PATTERN010:return n%3==0;case o.PATTERN011:return(t+n)%3==0;case o.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case o.PATTERN101:return t*n%2+t*n%3==0;case o.PATTERN110:return(t*n%2+t*n%3)%2==0;case o.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+a-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,C(n)];if(e.sizen)return[!1,C(n)]}return[!0,null]}function T(e){return null!=e}function A(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 a=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,F)),a=i.open,o=K(i,z);return(0,r.useImperativeHandle)(t,function(){return{open:a}},[a]),r.createElement(r.Fragment,null,n(q(q({},o),{},{open:a})))});Y.displayName="Dropzone";var X={disabled:!1,getFilesFromEvent:function(e){return(0,o.mG)(this,void 0,void 0,function(){return(0,o.Jh)(this,function(t){return c(e)&&c(e.dataTransfer)?[2,function(e,t){return(0,o.mG)(this,void 0,void 0,function(){var n;return(0,o.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,o.ev)((0,o.ev)([],(0,o.CR)(t),!1),(0,o.CR)(Array.isArray(n)?e(n):[n]),!1)},[])}(r.sent()))];case 2:return[2,d(f(e.files).map(function(e){return s(e)}))]}})})}(e.dataTransfer,e.type)]:c(e)&&c(e.target)?[2,f(e.target.files).map(function(e){return s(e)})]:Array.isArray(e)&&e.every(function(e){return"getFile"in e&&"function"==typeof e.getFile})?[2,function(e){return(0,o.mG)(this,void 0,void 0,function(){return(0,o.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 s(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=X,Y.propTypes={children:a().func,accept:a().objectOf(a().arrayOf(a().string)),multiple:a().bool,preventDropOnDocument:a().bool,noClick:a().bool,noKeyboard:a().bool,noDrag:a().bool,noDragEventsBubbling:a().bool,minSize:a().number,maxSize:a().number,maxFiles:a().number,disabled:a().bool,getFilesFromEvent:a().func,onFileDialogCancel:a().func,onFileDialogOpen:a().func,useFsAccessApi:a().bool,autoFocus:a().bool,onDragEnter:a().func,onDragLeave:a().func,onDragOver:a().func,onDrop:a().func,onDropAccepted:a().func,onDropRejected:a().func,onError:a().func,validator:a().func};var G={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({},X),e),n=t.accept,i=t.disabled,a=t.getFilesFromEvent,o=t.maxSize,l=t.minSize,s=t.multiple,u=t.maxFiles,c=t.onDragEnter,d=t.onDragLeave,f=t.onDragOver,h=t.onDrop,p=t.onDropAccepted,m=t.onDropRejected,g=t.onFileDialogCancel,v=t.onFileDialogOpen,x=t.useFsAccessApi,k=t.autoFocus,E=t.preventDropOnDocument,S=t.noClick,C=t.noKeyboard,M=t.noDrag,F=t.noDragEventsBubbling,z=t.onError,W=t.validator,Y=(0,r.useMemo)(function(){return function(e){if(T(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]),J=(0,r.useMemo)(function(){return T(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 b(b({},e),{},w({},r,i))},{})}]:n},[n]),et=(0,r.useMemo)(function(){return"function"==typeof v?v:ee},[v]),en=(0,r.useMemo)(function(){return"function"==typeof g?g:ee},[g]),er=(0,r.useRef)(null),ei=(0,r.useRef)(null),ea=I((0,r.useReducer)(Q,G),2),eo=ea[0],el=ea[1],es=eo.isFocused,eu=eo.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&&(el({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(),eP(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(a(e)).then(function(t){if(!A(e)||F){var n,r,i,a,d,f,h,p,m=t.length,g=m>0&&(r=(n={files:t,accept:Y,minSize:l,maxSize:o,multiple:s,maxFiles:u,validator:W}).files,i=n.accept,a=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(_(e,i),1)[0],n=j(O(e,a,d),1)[0],r=p?p(e):null;return t&&n&&!r}));el({isDragAccept:g,isDragReject:m>0&&!g,isDragActive:!0,type:"setDraggedFiles"}),c&&c(e)}}).catch(function(e){return ep(e)})},[a,c,ep,F,Y,l,o,s,u,W]),eg=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eP(e);var t=N(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&f&&f(e),!1},[f,F]),ev=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eP(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)&&(el({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=I(_(e,Y),2),i=t[0],a=t[1],s=I(O(e,l,o),2),u=s[0],c=s[1],d=W?W(e):null;if(i&&u&&!d)n.push(e);else{var f=[a,c];d&&(f=f.concat(d)),r.push({file:e,errors:f.filter(function(e){return e})})}}),(!s&&n.length>1||s&&u>=1&&n.length>u)&&(n.forEach(function(e){r.push({file:e,errors:[P]})}),n.splice(0)),el({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)},[el,s,Y,l,o,u,h,p,m,W]),ex=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eP(e),ef.current=[],N(e)&&Promise.resolve(a(e)).then(function(t){(!A(e)||F)&&ey(t,e)}).catch(function(e){return ep(e)}),el({type:"reset"})},[a,ey,ep,F]),eb=(0,r.useCallback)(function(){if(ec.current){el({type:"openDialog"}),et(),window.showOpenFilePicker({multiple:s,types:J}).then(function(e){return a(e)}).then(function(e){ey(e,null),el({type:"closeDialog"})}).catch(function(e){e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)?(en(e),el({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&&(el({type:"openDialog"}),et(),ei.current.value=null,ei.current.click())},[el,et,en,x,ey,ep,J,s]),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(){el({type:"focus"})},[]),ek=(0,r.useCallback)(function(){el({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},eC=function(e){return C?null:eS(e)},eM=function(e){return M?null:eS(e)},eP=function(e){F&&e.stopPropagation()},e_=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.role,r=e.onKeyDown,a=e.onFocus,o=e.onBlur,l=e.onClick,s=e.onDragEnter,u=e.onDragOver,c=e.onDragLeave,d=e.onDrop,f=K(e,V);return q(q($({onKeyDown:eC(D(r,ew)),onFocus:eC(D(a,ej)),onBlur:eC(D(o,ek)),onClick:eS(D(l,eE)),onDragEnter:eM(D(s,em)),onDragOver:eM(D(u,eg)),onDragLeave:eM(D(c,ev)),onDrop:eM(D(d,ex)),role:"string"==typeof n&&""!==n?n:"presentation"},void 0===t?"ref":t,er),i||C?{}:{tabIndex:0}),f)}},[er,ew,ej,ek,eE,em,eg,ev,ex,C,M,i]),eO=(0,r.useCallback)(function(e){e.stopPropagation()},[]),eT=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.onChange,r=e.onClick,i=K(e,B);return q(q({},$({accept:Y,multiple:s,type:"file",style:{display:"none"},onChange:eS(D(n,ex)),onClick:eS(D(r,eO)),tabIndex:-1},void 0===t?"ref":t,ei)),i)}},[ei,n,s,ex,i]);return q(q({},eo),{},{isFocused:es&&!i,getRootProps:e_,getInputProps:eT,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({},G),{},{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({},G);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,a){try{return function e(a,o){if(a===o)return!0;if(a&&o&&"object"==typeof a&&"object"==typeof o){var l,s,u,c=t(a),d=t(o);if(c&&d){if((s=a.length)!=o.length)return!1;for(l=s;0!=l--;)if(!e(a[l],o[l]))return!1;return!0}if(c!=d)return!1;var f=a instanceof Date,h=o instanceof Date;if(f!=h)return!1;if(f&&h)return a.getTime()==o.getTime();var p=a instanceof RegExp,m=o instanceof RegExp;if(p!=m)return!1;if(p&&m)return a.toString()==o.toString();var g=n(a);if((s=g.length)!==n(o).length)return!1;for(l=s;0!=l--;)if(!r.call(o,g[l]))return!1;if(i&&a instanceof Element&&o instanceof Element)return a===o;for(l=s;0!=l--;)if(("_owner"!==(u=g[l])||!a.$$typeof)&&!e(a[u],o[u]))return!1;return!0}return a!=a&&o!=o}(e,a)}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=a(n(13980)),i=a(n(2784));function a(e){return e&&e.__esModule?e:{default:e}}var o={d:r.default.string.isRequired,fill:r.default.string.isRequired,transformX:r.default.number.isRequired,transformY:r.default.number.isRequired},l=function(e){var t=e.d,n=e.fill,r=e.transformX,a=e.transformY;return i.default.createElement("path",{d:t,fill:n,transform:"matrix("+[1,0,0,1,r,a]+")"})};l.propTypes=o,l.defaultProps={},t.default=l},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 a.default.createElement("svg",r({},l,{height:n,width:n,xmlns:o}),i?a.default.createElement("title",null,i):null,t)};s.propTypes=l,s.defaultProps={title:void 0,xmlns:"http://www.w3.org/2000/svg"},t.default=s},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,a.default[o]);h.addData(d),h.make();var p=h.modules,m=l/p.length;return s.default.createElement(c.default,r({},f,{size:l}),p.map(function(e,r){return e.map(function(e,i){var a=Math.round(i*m),o=Math.round(r*m),l=Math.round((i+1)*m)-a,c=Math.round((r+1)*m)-o;return s.default.createElement(u.default,{key:"rectangle-"+r+"-"+i,d:"M 0 0 L "+l+" 0 L "+l+" "+c+" L 0 "+c+" Z",fill:e?n:t,transformX:a,transformY:o})})}))};h.propTypes=f,h.defaultProps={bgColor:"#FFFFFF",fgColor:"#000000",level:"L",size:256},t.Z=(0,l.memo)(h)},70506:function(e,t,n){"use strict";n.d(t,{Z:function(){return H}});var r,i,a,o,l,s,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}),a=[],o=!1,l={read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:null},useMedium:function(e){var t=i(e,o);return a.push(t),function(){a=a.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(o=!0;a.length;){var t=a;a=[],t.forEach(e)}a={push:function(t){return e(t)},filter:function(){return a}}},assignMedium:function(e){o=!0;var t=[];if(a.length){var n=a;a=[],n.forEach(e),t=a}var r=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(r)};i(),a={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),a}}}}).options=(0,u.pi)({async:!0,ssr:!1},r),l),p=function(){},m=c.forwardRef(function(e,t){var n,r,i,a=c.useRef(null),o=c.useState({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:p}),l=o[0],s=o[1],d=e.forwardProps,f=e.children,m=e.className,g=e.removeScrollBar,v=e.enabled,y=e.shards,x=e.sideCar,b=e.noIsolation,w=e.inert,j=e.allowPinchZoom,k=e.as,E=(0,u._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),S=(n=[a,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)({},E),l);return c.createElement(c.Fragment,null,v&&c.createElement(x,{sideCar:h,removeScrollBar:g,shards:y,noIsolation:b,inert:w,setCallbacks:s,allowPinchZoom:!!j,lockRef:a}),d?c.cloneElement(c.Children.only(f),(0,u.pi)((0,u.pi)({},C),{ref:S})):c.createElement(void 0===k?"div":k,(0,u.pi)({},C,{className:m,ref:S}),f))});m.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},m.classNames={fullWidth:f,zeroRight:d};var g=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))};g.isSideCarExport=!0;var v=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=s||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,a;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},y=function(){var e=v();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,a=e.top,o=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"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(a,"px;\n padding-right: ").concat(o,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(d," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(f," {\n margin-right: ").concat(l,"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(l,"px;\n }\n")},C=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r,a=c.useMemo(function(){return k(i)},[i]);return c.createElement(E,{styles:S(a,!t,i,n?"":"!important")})},M=!1;if("undefined"!=typeof window)try{var P=Object.defineProperty({},"passive",{get:function(){return M=!0,!0}});window.addEventListener("test",P,P),window.removeEventListener("test",P,P)}catch(e){M=!1}var _=!!M&&{passive:!1},O=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)},A=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?O(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 a,o=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),l=o*r,s=n.target,u=t.contains(s),c=!1,d=l>0,f=0,h=0;do{var p=R(e,s),m=p[0],g=p[1]-p[2]-o*m;(m||g)&&N(e,s)&&(f+=g,h+=m),s=s.parentNode}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return d&&(i&&0===f||!i&&l>f)?c=!0:!d&&(i&&0===h||!i&&-l>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=[],B=(h.useMedium(function(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),i=c.useState(z++)[0],a=c.useState(function(){return x()})[0],o=c.useRef(e);c.useEffect(function(){o.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 l=c.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!o.current.allowPinchZoom;var i,a=L(e),l=n.current,s="deltaX"in e?e.deltaX:l[0]-a[0],u="deltaY"in e?e.deltaY:l[1]-a[1],c=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=A(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=A(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=i),!i)return!0;var h=r.current||i;return D(h,t,e,"h"===h?s:u,!0)},[]),s=c.useCallback(function(e){if(V.length&&V[V.length-1]===a){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=(o.current.shards||[]).map(F).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?l(e,i[0]):!o.current.noIsolation)&&e.preventDefault()}}},[]),d=c.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},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,l(t,e.lockRef.current))},[]),p=c.useCallback(function(t){d(t.type,L(t),t.target,l(t,e.lockRef.current))},[]);c.useEffect(function(){return V.push(a),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",s,_),document.addEventListener("touchmove",s,_),document.addEventListener("touchstart",f,_),function(){V=V.filter(function(e){return e!==a}),document.removeEventListener("wheel",s,_),document.removeEventListener("touchmove",s,_),document.removeEventListener("touchstart",f,_)}},[]);var m=e.removeScrollBar,g=e.inert;return c.createElement(c.Fragment,null,g?c.createElement(a,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,m?c.createElement(C,{gapMode:"margin"}):null)}),g),I=c.forwardRef(function(e,t){return c.createElement(m,(0,u.pi)({},e,{ref:t,sideCar:B}))});I.classNames=m.classNames;var H=I},32718:function(e,t,n){var r,i=n(58085),a=n(41964),o=n(53207),l=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;e.exports=function(e,t){return r=0,t=Math.pow(10,void 0===t?5:t),a(e=e.replace(/\n+/g," "),/((?:\-[a-z]+\-)?calc)\(/,function e(n,a,s){if(r++>100)throw r=0,Error("Call stack overflow for "+s);if(""===n)throw Error(a+"(): '"+s+"' 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,a="",o=t;r=l.exec(o);){r[0].index>0&&(a+=o.substring(0,r[0].index));var s=i("(",")",o.substring([0].index));if(""===s.body)throw Error("'"+t+"' must contain a non-whitespace string");var u=e(s.body,"",n);a+=s.pre+u,o=s.post}return a+o}(n,s));if(c.length>1||n.indexOf("var(")>-1)return a+"("+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=o.eval(f)}catch(e){return a+"("+n+")"}return"%"===d&&(u*=100),(a.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 a=r(e,t,i);return a&&{start:a[0],end:a[1],pre:i.slice(0,a[0]),body:i.slice(a[0]+e.length,a[1]),post:i.slice(a[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,a,o,l,s=n.indexOf(e),u=n.indexOf(t,s+1),c=s;if(s>=0&&u>0){for(r=[],a=n.length;c>=0&&!l;)c==s?(r.push(c),s=n.indexOf(e,c+1)):1==r.length?l=[r.pop(),u]:((i=r.pop())=0?s:u;r.length&&(l=[a,o])}return l}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 a=i.exec(e);if(!a)break;if(void 0===a[1])throw Error("Missing the first couple of parenthesis to get the function identifier in "+t);var o=a[1],l=a.index,s=r("(",")",e.substring(l));if(!s||s.start!==a[0].length-1)throw SyntaxError(o+"(): missing closing ')' in the value '"+e+"'");n.push({matches:s,functionIdentifier:o}),e=s.post}while(i.test(e));return n})(t,n).reduce(function(r,a){var o,l;return r.replace(a.functionIdentifier+"("+a.matches.body+")",(o=a.matches.body,l=a.functionIdentifier,i(e(o,n,i),l,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:()=>o});let i=(r=n(37540))&&r.__esModule?r:{default:r};function a({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 o={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 a({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return a({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return a({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return a({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return a({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}},37540:function(e,t,n){"use strict";var r,i=n(93542);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:()=>s,default:()=>u});let a=(r=n(24470))&&r.__esModule?r:{default:r},o=new Set;function l(e,t,n){(void 0===i||!i.env.JEST_WORKER_ID)&&(n&&o.has(n)||(n&&o.add(n),console.warn(""),t.forEach(t=>console.warn(e,"-",t))))}function s(e){return a.default.dim(e)}let u={info(e,t){l(a.default.bold(a.default.cyan("info")),...Array.isArray(e)?[e]:[t,e])},warn(e,t){l(a.default.bold(a.default.yellow("warn")),...Array.isArray(e)?[e]:[t,e])},risk(e,t){l(a.default.bold(a.default.magenta("risk")),...Array.isArray(e)?[e]:[t,e])}}},95159:function(e){function t(e,t){var n=e.length,r=Array(n),i={},a=n,o=function(e){for(var t=new Map,n=0,r=e.length;n=t||n<0||g&&e-o.current>=v},y=function(t){return l.current=null,m&&s.current?e(t):(s.current=u.current=null,c.current)},x=function e(){var i=Date.now();if(r(i))return y(i);if(f.current){var l=t-(i-a.current);n(e,g?Math.min(l,v-(i-o.current)):l)}},b=function(){var d=Date.now(),h=r(d);if(s.current=[].slice.call(arguments),u.current=i,a.current=d,h){if(!l.current&&f.current)return o.current=a.current,n(x,t),p?e(a.current):c.current;if(g)return n(x,t),e(a.current)}return l.current||n(x,t),c.current};return b.cancel=function(){l.current&&(h?cancelAnimationFrame(l.current):clearTimeout(l.current)),o.current=0,s.current=a.current=u.current=l.current=null},b.isPending=function(){return!!l.current},b.flush=function(){return l.current?y(Date.now()):c.current},b},[p,g,t,v,m,h])}((0,r.useCallback)(function(e){return d(e)},[d]),t,n),h=(0,r.useRef)(e);return s(h.current,e)||(f(e),h.current=e),[c,f]}},92762:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2784);let i=new Map,a=new Set;function o(e){for(let t of[...a])t(e)}function l(e){try{return e()}catch(e){return}}var s=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 s=null==t?void 0:t.serializer;return function(e,t,n=!0,s=function(e){return"undefined"===e?void 0:JSON.parse(e)},u=JSON.stringify){i.has(e)||void 0===t||null!==l(()=>localStorage.getItem(e))||l(()=>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 a.add(n),()=>{a.delete(n)}},[e]),()=>{var n;let r=null!==(n=l(()=>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:s(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)}o(e)},[e,u]);return(0,r.useEffect)(()=>{if(!n)return;let t=t=>{t.storageArea===l(()=>localStorage)&&t.key===e&&o(e)};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)},[e,n]),(0,r.useMemo)(()=>[d,f,{isPersistent:d===t||!i.has(e),removeItem(){l(()=>localStorage.removeItem(e)),i.delete(e),o(e)}}],[e,f,d,t])}(e,n,null==t?void 0:t.storageSync,null==s?void 0:s.parse,null==s?void 0:s.stringify)}},20452:function(e,t,n){"use strict";/** +*/Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let r=n(43219)._(n(2784)),i=n(6730),a=[],o=[],l=!1;function s(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 u{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 c(e){return function(e,t){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),a=null;function s(){if(!a){let t=new u(e,n);a={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return a.promise()}if(!l){let e=n.webpack?n.webpack():n.modules;e&&o.push(t=>{for(let n of e)if(t.includes(n))return s()})}function c(e,t){!function(){s();let e=r.default.useContext(i.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach(t=>{e(t)})}();let o=r.default.useSyncExternalStore(a.subscribe,a.getCurrentValue,a.getCurrentValue);return r.default.useImperativeHandle(t,()=>({retry:a.retry}),[]),r.default.useMemo(()=>{var t;return o.loading||o.error?r.default.createElement(n.loading,{isLoading:o.loading,pastDelay:o.pastDelay,timedOut:o.timedOut,error:o.error,retry:a.retry}):o.loaded?r.default.createElement((t=o.loaded)&&t.default?t.default:t,e):null},[e,o])}return c.preload=()=>s(),c.displayName="LoadableComponent",r.default.forwardRef(c)}(s,e)}function d(e,t){let n=[];for(;e.length;){let r=e.pop();n.push(r(t))}return Promise.all(n).then(()=>{if(e.length)return d(e,t)})}c.preloadAll=()=>new Promise((e,t)=>{d(a).then(e,t)}),c.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let n=()=>(l=!0,t());d(o,e).then(n,n)})),window.__NEXT_PRELOADREADY=c.preloadReady;let f=c},9424: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 i},useServerInsertedHTML:function(){return a}});let r=n(16794)._(n(2784)),i=r.default.createContext(null);function a(e){let t=(0,r.useContext)(i);t&&t(e)}},50521:function(){},28863:function(e){e.exports={style:{fontFamily:"'__mono_59b18b', '__mono_Fallback_59b18b'"},className:"__className_59b18b",variable:"__variable_59b18b"}},46058:function(e){e.exports={style:{fontFamily:"'__sans_315985', '__sans_Fallback_315985'"},className:"__className_315985",variable:"__variable_315985"}},42351:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function a(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function l(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!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:a}catch(e){t=a}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var s=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?s=r.concat(s):c=-1,s.length&&f())}function f(){if(!u){var e=l(d);u=!0;for(var t=s.length;t;){for(r=s,s=[];++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/,a=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,o=/^\s*(['"]?)(.*?)(\1)\s*$/,l=new t(512),s=new t(512),u=new t(512);function c(e){return l.get(e)||l.set(e,d(e).map(function(e){return e.replace(o,"$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 s.get(e)||s.set(e,function(e,n){for(var r=0,i=t.length,a=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=s.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=o.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=o.getBCHTypeInfo(n),i=0;i<15;i++){var a=!e&&(r>>i&1)==1;i<6?this.modules[i][8]=a:i<8?this.modules[i+1][8]=a:this.modules[this.moduleCount-15+i][8]=a}for(var i=0;i<15;i++){var a=!e&&(r>>i&1)==1;i<8?this.modules[8][this.moduleCount-i-1]=a:i<9?this.modules[8][15-i-1+1]=a:this.modules[8][15-i-1]=a}this.modules[this.moduleCount-8][8]=!e},u.mapData=function(e,t){for(var n=-1,r=this.moduleCount-1,i=7,a=0,l=this.moduleCount-1;l>0;l-=2)for(6==l&&l--;;){for(var s=0;s<2;s++)if(null==this.modules[r][l-s]){var u=!1;a>>i&1)==1),o.getMask(t,r,l-s)&&(u=!u),this.modules[r][l-s]=u,-1==--i&&(a++,i=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}},s.PAD0=236,s.PAD1=17,s.createData=function(e,t,n){for(var r=i.getRSBlocks(e,t),l=new a,u=0;u8*d)throw Error("code length overflow. ("+l.getLengthInBits()+">"+8*d+")");for(l.getLengthInBits()+4<=8*d&&l.put(0,4);l.getLengthInBits()%8!=0;)l.putBit(!1);for(;!(l.getLengthInBits()>=8*d)&&(l.put(s.PAD0,8),!(l.getLengthInBits()>=8*d));)l.put(s.PAD1,8);return s.createBytes(l,r)},s.createBytes=function(e,t){for(var n=0,r=0,i=0,a=Array(t.length),s=Array(t.length),u=0;u=0?p.get(m):0}}for(var g=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^=l.G15<=0;)t^=l.G18<>>=1;return t},getPatternPosition:function(e){return l.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case o.PATTERN000:return(t+n)%2==0;case o.PATTERN001:return t%2==0;case o.PATTERN010:return n%3==0;case o.PATTERN011:return(t+n)%3==0;case o.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case o.PATTERN101:return t*n%2+t*n%3==0;case o.PATTERN110:return(t*n%2+t*n%3)%2==0;case o.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+a-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,C(n)];if(e.sizen)return[!1,C(n)]}return[!0,null]}function P(e){return null!=e}function A(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 a=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,F)),a=i.open,o=K(i,z);return(0,r.useImperativeHandle)(t,function(){return{open:a}},[a]),r.createElement(r.Fragment,null,n(q(q({},o),{},{open:a})))});Y.displayName="Dropzone";var X={disabled:!1,getFilesFromEvent:function(e){return(0,o.mG)(this,void 0,void 0,function(){return(0,o.Jh)(this,function(t){return c(e)&&c(e.dataTransfer)?[2,function(e,t){return(0,o.mG)(this,void 0,void 0,function(){var n;return(0,o.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,o.ev)((0,o.ev)([],(0,o.CR)(t),!1),(0,o.CR)(Array.isArray(n)?e(n):[n]),!1)},[])}(r.sent()))];case 2:return[2,d(f(e.files).map(function(e){return s(e)}))]}})})}(e.dataTransfer,e.type)]:c(e)&&c(e.target)?[2,f(e.target.files).map(function(e){return s(e)})]:Array.isArray(e)&&e.every(function(e){return"getFile"in e&&"function"==typeof e.getFile})?[2,function(e){return(0,o.mG)(this,void 0,void 0,function(){return(0,o.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 s(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=X,Y.propTypes={children:a().func,accept:a().objectOf(a().arrayOf(a().string)),multiple:a().bool,preventDropOnDocument:a().bool,noClick:a().bool,noKeyboard:a().bool,noDrag:a().bool,noDragEventsBubbling:a().bool,minSize:a().number,maxSize:a().number,maxFiles:a().number,disabled:a().bool,getFilesFromEvent:a().func,onFileDialogCancel:a().func,onFileDialogOpen:a().func,useFsAccessApi:a().bool,autoFocus:a().bool,onDragEnter:a().func,onDragLeave:a().func,onDragOver:a().func,onDrop:a().func,onDropAccepted:a().func,onDropRejected:a().func,onError:a().func,validator:a().func};var G={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({},X),e),n=t.accept,i=t.disabled,a=t.getFilesFromEvent,o=t.maxSize,l=t.minSize,s=t.multiple,u=t.maxFiles,c=t.onDragEnter,d=t.onDragLeave,f=t.onDragOver,h=t.onDrop,p=t.onDropAccepted,m=t.onDropRejected,g=t.onFileDialogCancel,v=t.onFileDialogOpen,x=t.useFsAccessApi,k=t.autoFocus,E=t.preventDropOnDocument,S=t.noClick,C=t.noKeyboard,M=t.noDrag,F=t.noDragEventsBubbling,z=t.onError,W=t.validator,Y=(0,r.useMemo)(function(){return function(e){if(P(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]),J=(0,r.useMemo)(function(){return P(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 b(b({},e),{},w({},r,i))},{})}]:n},[n]),et=(0,r.useMemo)(function(){return"function"==typeof v?v:ee},[v]),en=(0,r.useMemo)(function(){return"function"==typeof g?g:ee},[g]),er=(0,r.useRef)(null),ei=(0,r.useRef)(null),ea=I((0,r.useReducer)(Q,G),2),eo=ea[0],el=ea[1],es=eo.isFocused,eu=eo.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&&(el({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(),e_(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(a(e)).then(function(t){if(!A(e)||F){var n,r,i,a,d,f,h,p,m=t.length,g=m>0&&(r=(n={files:t,accept:Y,minSize:l,maxSize:o,multiple:s,maxFiles:u,validator:W}).files,i=n.accept,a=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(O(e,i),1)[0],n=j(T(e,a,d),1)[0],r=p?p(e):null;return t&&n&&!r}));el({isDragAccept:g,isDragReject:m>0&&!g,isDragActive:!0,type:"setDraggedFiles"}),c&&c(e)}}).catch(function(e){return ep(e)})},[a,c,ep,F,Y,l,o,s,u,W]),eg=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),e_(e);var t=N(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&f&&f(e),!1},[f,F]),ev=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),e_(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)&&(el({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=I(O(e,Y),2),i=t[0],a=t[1],s=I(T(e,l,o),2),u=s[0],c=s[1],d=W?W(e):null;if(i&&u&&!d)n.push(e);else{var f=[a,c];d&&(f=f.concat(d)),r.push({file:e,errors:f.filter(function(e){return e})})}}),(!s&&n.length>1||s&&u>=1&&n.length>u)&&(n.forEach(function(e){r.push({file:e,errors:[_]})}),n.splice(0)),el({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)},[el,s,Y,l,o,u,h,p,m,W]),ex=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),e_(e),ef.current=[],N(e)&&Promise.resolve(a(e)).then(function(t){(!A(e)||F)&&ey(t,e)}).catch(function(e){return ep(e)}),el({type:"reset"})},[a,ey,ep,F]),eb=(0,r.useCallback)(function(){if(ec.current){el({type:"openDialog"}),et(),window.showOpenFilePicker({multiple:s,types:J}).then(function(e){return a(e)}).then(function(e){ey(e,null),el({type:"closeDialog"})}).catch(function(e){e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)?(en(e),el({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&&(el({type:"openDialog"}),et(),ei.current.value=null,ei.current.click())},[el,et,en,x,ey,ep,J,s]),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(){el({type:"focus"})},[]),ek=(0,r.useCallback)(function(){el({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},eC=function(e){return C?null:eS(e)},eM=function(e){return M?null:eS(e)},e_=function(e){F&&e.stopPropagation()},eO=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.role,r=e.onKeyDown,a=e.onFocus,o=e.onBlur,l=e.onClick,s=e.onDragEnter,u=e.onDragOver,c=e.onDragLeave,d=e.onDrop,f=K(e,V);return q(q($({onKeyDown:eC(D(r,ew)),onFocus:eC(D(a,ej)),onBlur:eC(D(o,ek)),onClick:eS(D(l,eE)),onDragEnter:eM(D(s,em)),onDragOver:eM(D(u,eg)),onDragLeave:eM(D(c,ev)),onDrop:eM(D(d,ex)),role:"string"==typeof n&&""!==n?n:"presentation"},void 0===t?"ref":t,er),i||C?{}:{tabIndex:0}),f)}},[er,ew,ej,ek,eE,em,eg,ev,ex,C,M,i]),eT=(0,r.useCallback)(function(e){e.stopPropagation()},[]),eP=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.onChange,r=e.onClick,i=K(e,B);return q(q({},$({accept:Y,multiple:s,type:"file",style:{display:"none"},onChange:eS(D(n,ex)),onClick:eS(D(r,eT)),tabIndex:-1},void 0===t?"ref":t,ei)),i)}},[ei,n,s,ex,i]);return q(q({},eo),{},{isFocused:es&&!i,getRootProps:eO,getInputProps:eP,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({},G),{},{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({},G);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,a){try{return function e(a,o){if(a===o)return!0;if(a&&o&&"object"==typeof a&&"object"==typeof o){var l,s,u,c=t(a),d=t(o);if(c&&d){if((s=a.length)!=o.length)return!1;for(l=s;0!=l--;)if(!e(a[l],o[l]))return!1;return!0}if(c!=d)return!1;var f=a instanceof Date,h=o instanceof Date;if(f!=h)return!1;if(f&&h)return a.getTime()==o.getTime();var p=a instanceof RegExp,m=o instanceof RegExp;if(p!=m)return!1;if(p&&m)return a.toString()==o.toString();var g=n(a);if((s=g.length)!==n(o).length)return!1;for(l=s;0!=l--;)if(!r.call(o,g[l]))return!1;if(i&&a instanceof Element&&o instanceof Element)return a===o;for(l=s;0!=l--;)if(("_owner"!==(u=g[l])||!a.$$typeof)&&!e(a[u],o[u]))return!1;return!0}return a!=a&&o!=o}(e,a)}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=a(n(13980)),i=a(n(2784));function a(e){return e&&e.__esModule?e:{default:e}}var o={d:r.default.string.isRequired,fill:r.default.string.isRequired,transformX:r.default.number.isRequired,transformY:r.default.number.isRequired},l=function(e){var t=e.d,n=e.fill,r=e.transformX,a=e.transformY;return i.default.createElement("path",{d:t,fill:n,transform:"matrix("+[1,0,0,1,r,a]+")"})};l.propTypes=o,l.defaultProps={},t.default=l},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 a.default.createElement("svg",r({},l,{height:n,width:n,xmlns:o}),i?a.default.createElement("title",null,i):null,t)};s.propTypes=l,s.defaultProps={title:void 0,xmlns:"http://www.w3.org/2000/svg"},t.default=s},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,a.default[o]);h.addData(d),h.make();var p=h.modules,m=l/p.length;return s.default.createElement(c.default,r({},f,{size:l}),p.map(function(e,r){return e.map(function(e,i){var a=Math.round(i*m),o=Math.round(r*m),l=Math.round((i+1)*m)-a,c=Math.round((r+1)*m)-o;return s.default.createElement(u.default,{key:"rectangle-"+r+"-"+i,d:"M 0 0 L "+l+" 0 L "+l+" "+c+" L 0 "+c+" Z",fill:e?n:t,transformX:a,transformY:o})})}))};h.propTypes=f,h.defaultProps={bgColor:"#FFFFFF",fgColor:"#000000",level:"L",size:256},t.Z=(0,l.memo)(h)},70506:function(e,t,n){"use strict";n.d(t,{Z:function(){return H}});var r,i,a,o,l,s,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}),a=[],o=!1,l={read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:null},useMedium:function(e){var t=i(e,o);return a.push(t),function(){a=a.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(o=!0;a.length;){var t=a;a=[],t.forEach(e)}a={push:function(t){return e(t)},filter:function(){return a}}},assignMedium:function(e){o=!0;var t=[];if(a.length){var n=a;a=[],n.forEach(e),t=a}var r=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(r)};i(),a={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),a}}}}).options=(0,u.pi)({async:!0,ssr:!1},r),l),p=function(){},m=c.forwardRef(function(e,t){var n,r,i,a=c.useRef(null),o=c.useState({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:p}),l=o[0],s=o[1],d=e.forwardProps,f=e.children,m=e.className,g=e.removeScrollBar,v=e.enabled,y=e.shards,x=e.sideCar,b=e.noIsolation,w=e.inert,j=e.allowPinchZoom,k=e.as,E=(0,u._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),S=(n=[a,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)({},E),l);return c.createElement(c.Fragment,null,v&&c.createElement(x,{sideCar:h,removeScrollBar:g,shards:y,noIsolation:b,inert:w,setCallbacks:s,allowPinchZoom:!!j,lockRef:a}),d?c.cloneElement(c.Children.only(f),(0,u.pi)((0,u.pi)({},C),{ref:S})):c.createElement(void 0===k?"div":k,(0,u.pi)({},C,{className:m,ref:S}),f))});m.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},m.classNames={fullWidth:f,zeroRight:d};var g=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))};g.isSideCarExport=!0;var v=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=s||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,a;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},y=function(){var e=v();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,a=e.top,o=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"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(a,"px;\n padding-right: ").concat(o,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(d," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(f," {\n margin-right: ").concat(l,"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(l,"px;\n }\n")},C=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r,a=c.useMemo(function(){return k(i)},[i]);return c.createElement(E,{styles:S(a,!t,i,n?"":"!important")})},M=!1;if("undefined"!=typeof window)try{var _=Object.defineProperty({},"passive",{get:function(){return M=!0,!0}});window.addEventListener("test",_,_),window.removeEventListener("test",_,_)}catch(e){M=!1}var O=!!M&&{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)},A=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):P(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 a,o=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),l=o*r,s=n.target,u=t.contains(s),c=!1,d=l>0,f=0,h=0;do{var p=R(e,s),m=p[0],g=p[1]-p[2]-o*m;(m||g)&&N(e,s)&&(f+=g,h+=m),s=s.parentNode}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return d&&(i&&0===f||!i&&l>f)?c=!0:!d&&(i&&0===h||!i&&-l>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=[],B=(h.useMedium(function(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),i=c.useState(z++)[0],a=c.useState(function(){return x()})[0],o=c.useRef(e);c.useEffect(function(){o.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 l=c.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!o.current.allowPinchZoom;var i,a=L(e),l=n.current,s="deltaX"in e?e.deltaX:l[0]-a[0],u="deltaY"in e?e.deltaY:l[1]-a[1],c=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=A(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=A(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=i),!i)return!0;var h=r.current||i;return D(h,t,e,"h"===h?s:u,!0)},[]),s=c.useCallback(function(e){if(V.length&&V[V.length-1]===a){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=(o.current.shards||[]).map(F).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?l(e,i[0]):!o.current.noIsolation)&&e.preventDefault()}}},[]),d=c.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},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,l(t,e.lockRef.current))},[]),p=c.useCallback(function(t){d(t.type,L(t),t.target,l(t,e.lockRef.current))},[]);c.useEffect(function(){return V.push(a),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",s,O),document.addEventListener("touchmove",s,O),document.addEventListener("touchstart",f,O),function(){V=V.filter(function(e){return e!==a}),document.removeEventListener("wheel",s,O),document.removeEventListener("touchmove",s,O),document.removeEventListener("touchstart",f,O)}},[]);var m=e.removeScrollBar,g=e.inert;return c.createElement(c.Fragment,null,g?c.createElement(a,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,m?c.createElement(C,{gapMode:"margin"}):null)}),g),I=c.forwardRef(function(e,t){return c.createElement(m,(0,u.pi)({},e,{ref:t,sideCar:B}))});I.classNames=m.classNames;var H=I},32718:function(e,t,n){var r,i=n(58085),a=n(41964),o=n(53207),l=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;e.exports=function(e,t){return r=0,t=Math.pow(10,void 0===t?5:t),a(e=e.replace(/\n+/g," "),/((?:\-[a-z]+\-)?calc)\(/,function e(n,a,s){if(r++>100)throw r=0,Error("Call stack overflow for "+s);if(""===n)throw Error(a+"(): '"+s+"' 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,a="",o=t;r=l.exec(o);){r[0].index>0&&(a+=o.substring(0,r[0].index));var s=i("(",")",o.substring([0].index));if(""===s.body)throw Error("'"+t+"' must contain a non-whitespace string");var u=e(s.body,"",n);a+=s.pre+u,o=s.post}return a+o}(n,s));if(c.length>1||n.indexOf("var(")>-1)return a+"("+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=o.eval(f)}catch(e){return a+"("+n+")"}return"%"===d&&(u*=100),(a.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 a=r(e,t,i);return a&&{start:a[0],end:a[1],pre:i.slice(0,a[0]),body:i.slice(a[0]+e.length,a[1]),post:i.slice(a[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,a,o,l,s=n.indexOf(e),u=n.indexOf(t,s+1),c=s;if(s>=0&&u>0){for(r=[],a=n.length;c>=0&&!l;)c==s?(r.push(c),s=n.indexOf(e,c+1)):1==r.length?l=[r.pop(),u]:((i=r.pop())=0?s:u;r.length&&(l=[a,o])}return l}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 a=i.exec(e);if(!a)break;if(void 0===a[1])throw Error("Missing the first couple of parenthesis to get the function identifier in "+t);var o=a[1],l=a.index,s=r("(",")",e.substring(l));if(!s||s.start!==a[0].length-1)throw SyntaxError(o+"(): missing closing ')' in the value '"+e+"'");n.push({matches:s,functionIdentifier:o}),e=s.post}while(i.test(e));return n})(t,n).reduce(function(r,a){var o,l;return r.replace(a.functionIdentifier+"("+a.matches.body+")",(o=a.matches.body,l=a.functionIdentifier,i(e(o,n,i),l,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:()=>o});let i=(r=n(37540))&&r.__esModule?r:{default:r};function a({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 o={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 a({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return a({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return a({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return a({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return a({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}},37540:function(e,t,n){"use strict";var r,i=n(93542);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:()=>s,default:()=>u});let a=(r=n(24470))&&r.__esModule?r:{default:r},o=new Set;function l(e,t,n){(void 0===i||!i.env.JEST_WORKER_ID)&&(n&&o.has(n)||(n&&o.add(n),console.warn(""),t.forEach(t=>console.warn(e,"-",t))))}function s(e){return a.default.dim(e)}let u={info(e,t){l(a.default.bold(a.default.cyan("info")),...Array.isArray(e)?[e]:[t,e])},warn(e,t){l(a.default.bold(a.default.yellow("warn")),...Array.isArray(e)?[e]:[t,e])},risk(e,t){l(a.default.bold(a.default.magenta("risk")),...Array.isArray(e)?[e]:[t,e])}}},95159:function(e){function t(e,t){var n=e.length,r=Array(n),i={},a=n,o=function(e){for(var t=new Map,n=0,r=e.length;n=t||n<0||g&&e-o.current>=v},y=function(t){return l.current=null,m&&s.current?e(t):(s.current=u.current=null,c.current)},x=function e(){var i=Date.now();if(r(i))return y(i);if(f.current){var l=t-(i-a.current);n(e,g?Math.min(l,v-(i-o.current)):l)}},b=function(){var d=Date.now(),h=r(d);if(s.current=[].slice.call(arguments),u.current=i,a.current=d,h){if(!l.current&&f.current)return o.current=a.current,n(x,t),p?e(a.current):c.current;if(g)return n(x,t),e(a.current)}return l.current||n(x,t),c.current};return b.cancel=function(){l.current&&(h?cancelAnimationFrame(l.current):clearTimeout(l.current)),o.current=0,s.current=a.current=u.current=l.current=null},b.isPending=function(){return!!l.current},b.flush=function(){return l.current?y(Date.now()):c.current},b},[p,g,t,v,m,h])}((0,r.useCallback)(function(e){return d(e)},[d]),t,n),h=(0,r.useRef)(e);return s(h.current,e)||(f(e),h.current=e),[c,f]}},92762:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2784);let i=new Map,a=new Set;function o(e){for(let t of[...a])t(e)}function l(e){try{return e()}catch(e){return}}var s=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 s=null==t?void 0:t.serializer;return function(e,t,n=!0,s=function(e){return"undefined"===e?void 0:JSON.parse(e)},u=JSON.stringify){i.has(e)||void 0===t||null!==l(()=>localStorage.getItem(e))||l(()=>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 a.add(n),()=>{a.delete(n)}},[e]),()=>{var n;let r=null!==(n=l(()=>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:s(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)}o(e)},[e,u]);return(0,r.useEffect)(()=>{if(!n)return;let t=t=>{t.storageArea===l(()=>localStorage)&&t.key===e&&o(e)};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)},[e,n]),(0,r.useMemo)(()=>[d,f,{isPersistent:d===t||!i.has(e),removeItem(){l(()=>localStorage.removeItem(e)),i.delete(e),o(e)}}],[e,f,d,t])}(e,n,null==t?void 0:t.storageSync,null==s?void 0:s.parse,null==s?void 0:s.stringify)}},20452:function(e,t,n){"use strict";/** * @license React * use-sync-external-store-shim.production.min.js * @@ -58,7 +58,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE * * 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},a=r.useState,o=r.useEffect,l=r.useLayoutEffect,s=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=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return l(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),o(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),s(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 G},Ry:function(){return ey},Z_:function(){return K}});try{y=Map}catch(e){}try{x=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(y&&t instanceof y)return new Map(Array.from(t.entries()));if(x&&t instanceof x)return new Set(Array.from(t.values()));if(t instanceof Object){n.push(t);var a=Object.create(t);for(var o in i.push(a),t){var l=n.findIndex(function(e){return e===t[o]});a[o]=l>-1?i[l]:e(t[o],n,i)}return a}return t}(e,[],[])}let i=Object.prototype.toString,a=Error.prototype.toString,o=RegExp.prototype.toString,l="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",s=/^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 l.call(e).replace(s,"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?"["+a.call(e)+"]":"RegExp"===r?o.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,a=`${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&&(a+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),a},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={isValue:"${path} field must be ${value}"},g={noUnknown:"${path} field has unspecified keys: ${unknown}"},v={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:d,string:f,number:h,date:p,object:g,array:v,boolean:m});var y,x,b=n(93352),w=n.n(b),j=e=>e&&e.__isYupSchema__;class k{constructor(e,t){if(this.fn=void 0,this.refs=e,this.refs=e,"function"==typeof t){this.fn=t;return}if(!w()(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,a="function"==typeof n?n:(...e)=>e.every(e=>e===n);this.fn=function(...e){let t=e.pop(),n=e.pop(),o=a(...e)?r:i;if(o)return"function"==typeof o?o(n):n.concat(o.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(!j(r))throw TypeError("conditions must return a schema object");return r.resolve(t)}}function E(e){return null==e?[]:[].concat(e)}function S(){return(S=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=>{M.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,M)}}let P=e=>{let t=!1;return(...n)=>{t||(t=!0,e(...n))}};function _(e,t){let{endEarly:n,tests:r,args:i,value:a,errors:o,sort:l,path:s}=e,u=P(t),c=r.length,d=[];if(o=o||[],!c)return o.length?u(new M(o,a,s)):u(null,a);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:g}=l;function v(e){return R.isRef(e)?e.getValue(i,m,g):e}function y(e={}){let t=T()(D({value:i,originalValue:s,label:o,path:e.path||a},h,e.params),v),n=new M(M.formatError(e.message||p,t),i,t.path,e.type||d);return n.params=t,n}let x=D({path:a,parent:m,type:d,createError:y,resolve:v,options:l,originalValue:s},c);if(!u){try{Promise.resolve(f.call(x,i,x)).then(e=>{M.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}M.isError(r)?n(r):r?n(null,r):n(y())}return t.OPTIONS=e,t}R.prototype.__isYupRef=!0;let Z=e=>e.substr(0,e.length-1).substr(1);class F{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(R.isRef(n)?e(n):n),[])}add(e){R.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){R.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){let e=new F;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),a=c(r);throw TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${n._type}". + */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},a=r.useState,o=r.useEffect,l=r.useLayoutEffect,s=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=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return l(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),o(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),s(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 G},Ry:function(){return ey},Z_:function(){return K}});try{y=Map}catch(e){}try{x=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(y&&t instanceof y)return new Map(Array.from(t.entries()));if(x&&t instanceof x)return new Set(Array.from(t.values()));if(t instanceof Object){n.push(t);var a=Object.create(t);for(var o in i.push(a),t){var l=n.findIndex(function(e){return e===t[o]});a[o]=l>-1?i[l]:e(t[o],n,i)}return a}return t}(e,[],[])}let i=Object.prototype.toString,a=Error.prototype.toString,o=RegExp.prototype.toString,l="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",s=/^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 l.call(e).replace(s,"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?"["+a.call(e)+"]":"RegExp"===r?o.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,a=`${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&&(a+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),a},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={isValue:"${path} field must be ${value}"},g={noUnknown:"${path} field has unspecified keys: ${unknown}"},v={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:d,string:f,number:h,date:p,object:g,array:v,boolean:m});var y,x,b=n(93352),w=n.n(b),j=e=>e&&e.__isYupSchema__;class k{constructor(e,t){if(this.fn=void 0,this.refs=e,this.refs=e,"function"==typeof t){this.fn=t;return}if(!w()(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,a="function"==typeof n?n:(...e)=>e.every(e=>e===n);this.fn=function(...e){let t=e.pop(),n=e.pop(),o=a(...e)?r:i;if(o)return"function"==typeof o?o(n):n.concat(o.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(!j(r))throw TypeError("conditions must return a schema object");return r.resolve(t)}}function E(e){return null==e?[]:[].concat(e)}function S(){return(S=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=>{M.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,M)}}let _=e=>{let t=!1;return(...n)=>{t||(t=!0,e(...n))}};function O(e,t){let{endEarly:n,tests:r,args:i,value:a,errors:o,sort:l,path:s}=e,u=_(t),c=r.length,d=[];if(o=o||[],!c)return o.length?u(new M(o,a,s)):u(null,a);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:g}=l;function v(e){return R.isRef(e)?e.getValue(i,m,g):e}function y(e={}){let t=P()(D({value:i,originalValue:s,label:o,path:e.path||a},h,e.params),v),n=new M(M.formatError(e.message||p,t),i,t.path,e.type||d);return n.params=t,n}let x=D({path:a,parent:m,type:d,createError:y,resolve:v,options:l,originalValue:s},c);if(!u){try{Promise.resolve(f.call(x,i,x)).then(e=>{M.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}M.isError(r)?n(r):r?n(null,r):n(y())}return t.OPTIONS=e,t}R.prototype.__isYupRef=!0;let Z=e=>e.substr(0,e.length-1).substr(1);class F{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(R.isRef(n)?e(n):n),[])}add(e){R.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){R.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){let e=new F;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),a=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} -`+(a!==i?`result of cast: ${a}`:""))}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:a=[],originalValue:o=e,strict:l=this.spec.strict,abortEarly:s=this.spec.abortEarly}=t,u=e;l||(u=this._cast(u,z({assert:!1},t)));let c={value:u,path:i,options:t,originalValue:o,schema:this,label:this.spec.label,sync:r,from:a},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:s},e=>{if(e)return void n(e,u);_({tests:this.tests.concat(f),args:c,path:i,sync:r,value:u,endEarly:s},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(M.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(M.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=L(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 R(e));return r.forEach(e=>{e.isSibling&&n.deps.push(e.key)}),n.conditions.push(new k(r,t)),n}typeError(e){let t=this.clone();return t._typeError=L({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=L({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=L({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;return{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)}}}for(let e of(V.prototype.__isYupSchema__=!0,["validate","validateSync"]))V.prototype[`${e}At`]=function(t,n,r={}){let{parent:i,parentPath:a,schema:o}=function(e,t,n,r=n){let i,a,o;return t?((0,A.forEach)(t,(l,s,u)=>{let c=s?Z(l):l;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: ${l}, 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: ${o} which is a type: "${e._type}")`);i=n,n=n&&n[c],e=e.fields[c]}a=c,o=s?"["+l+"]":"."+l}),{schema:e,parent:i,parentPath:a}):{parent:i,parentPath:t,schema:e}}(this,t,n,r.context);return o[e](i&&i[a],z({},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 B=e=>null==e;class I extends V{constructor(){super({type:"boolean"}),this.withMutation(()=>{this.transform(function(e){if(!this.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e})})}_typeCheck(e){return e instanceof Boolean&&(e=e.valueOf()),"boolean"==typeof e}isTrue(e=m.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test:e=>B(e)||!0===e})}isFalse(e=m.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test:e=>B(e)||!1===e})}}I.prototype;let H=/^((([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,U=/^((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,W=/^(?:[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,q=e=>B(e)||e===e.trim(),$=({}).toString();function K(){return new Y}class Y 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===$?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 B(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 B(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 B(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=>B(t)||""===t&&i||-1!==t.search(e)})}email(e=f.email){return this.matches(H,{name:"email",message:e,excludeEmptyString:!0})}url(e=f.url){return this.matches(U,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=f.uuid){return this.matches(W,{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:q})}lowercase(e=f.lowercase){return this.transform(e=>B(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>B(e)||e===e.toLowerCase()})}uppercase(e=f.uppercase){return this.transform(e=>B(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>B(e)||e===e.toUpperCase()})}}K.prototype=Y.prototype;let X=e=>e!=+e;function G(){return new J}class J 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&&!X(e)}min(e,t=h.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return B(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 B(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 B(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=>B(e)||Number.isInteger(e)})}truncate(){return this.transform(e=>B(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=>B(t)?t:Math[e](t))}}G.prototype=J.prototype;var Q=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let ee=new Date(""),et=e=>"[object Date]"===Object.prototype.toString.call(e);function en(){return new er}class er 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=Q.exec(e)){for(var a,o=0;a=r[o];++o)n[a]=+n[a]||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))?ee:new Date(e)})})}_typeCheck(e){return et(e)&&!isNaN(e.getTime())}prepareParam(e,t){let n;if(R.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 B(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 B(e)||e<=this.resolve(n)}})}}er.INVALID_DATE=ee,en.prototype=er.prototype,en.INVALID_DATE=ee;var ei=n(57370),ea=n.n(ei),eo=n(96009),el=n.n(eo),es=n(19950),eu=n.n(es),ec=n(95159),ed=n.n(ec);function ef(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 eh(e){return(t,n)=>ef(e,t)-ef(e,n)}function ep(){return(ep=Object.assign||function(e){for(var t=1;t"[object Object]"===Object.prototype.toString.call(e),eg=eh([]);class ev extends V{constructor(e){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=eg,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 em(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,a=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,o=this._nodes.concat(Object.keys(r).filter(e=>-1===this._nodes.indexOf(e))),l={},s=ep({},t,{parent:l,__validating:t.__validating||!1}),u=!1;for(let e of o){let n=i[e],o=w()(r,e);if(n){let i;let a=r[e];s.path=(t.path?`${t.path}.`:"")+e;let o="spec"in(n=n.resolve({value:a,context:t.context,parent:l}))?n.spec:void 0,c=null==o?void 0:o.strict;if(null==o?void 0:o.strip){u=u||e in r;continue}void 0!==(i=t.__validating&&c?r[e]:n.cast(r[e],s))&&(l[e]=i)}else o&&!a&&(l[e]=r[e]);l[e]!==r[e]&&(u=!0)}return u?l:r}_validate(e,t={},n){let r=[],{sync:i,from:a=[],originalValue:o=e,abortEarly:l=this.spec.abortEarly,recursive:s=this.spec.recursive}=t;a=[{schema:this,value:o},...a],t.__validating=!0,t.originalValue=o,t.from=a,super._validate(e,t,(e,u)=>{if(e){if(!M.isError(e)||l)return void n(e,u);r.push(e)}if(!s||!em(u)){n(r[0]||null,u);return}o=o||u,_({sync:i,tests:this._nodes.map(e=>(n,r)=>{let i=-1===e.indexOf(".")?(t.path?`${t.path}.`:"")+e:`${t.path||""}["${e}"]`,l=this.fields[e];if(l&&"validate"in l){l.validate(u[e],ep({},t,{path:i,from:a,strict:!0,parent:u,originalValue:o[e]}),r);return}r(null)}),value:u,errors:r,endEarly:l,sort:this._sortErrors,path:t.path},n)})}clone(e){let t=super.clone(e);return t.fields=ep({},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=eh(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 a(e,t){let a=(0,A.split)(e)[0];r.add(a),i.has(`${t}-${a}`)||n.push([t,a])}for(let t in e)if(w()(e,t)){let n=e[t];r.add(t),R.isRef(n)&&n.isSibling?a(n.path,t):j(n)&&"deps"in n&&n.deps.forEach(e=>a(e,t))}return ed().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 a=i;return w()(i,e)&&(a=ep({},i),n||delete a[e],a[t]=r(i)),a})}noUnknown(e=!0,t=g.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=g.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>t&&eu()(t,(t,n)=>e(n)))}camelCase(){return this.transformKeys(el())}snakeCase(){return this.transformKeys(ea())}constantCase(){return this.transformKeys(e=>ea()(e).toUpperCase())}describe(){let e=super.describe();return e.fields=T()(this.fields,e=>e.describe()),e}}function ey(e){return new ev(e)}function ex(){return(ex=Object.assign||function(e){for(var t=1;t{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 n=super._cast(e,t);if(!this._typeCheck(n)||!this.innerType)return n;let r=!1,i=n.map((e,n)=>{let i=this.innerType.cast(e,ex({},t,{path:`${t.path||""}[${n}]`}));return i!==e&&(r=!0),i});return r?i:n}_validate(e,t={},n){var r,i;let a=[],o=t.sync,l=t.path,s=this.innerType,u=null!=(r=t.abortEarly)?r:this.spec.abortEarly,c=null!=(i=t.recursive)?i:this.spec.recursive,d=null!=t.originalValue?t.originalValue:e;super._validate(e,t,(e,r)=>{if(e){if(!M.isError(e)||u)return void n(e,r);a.push(e)}if(!c||!s||!this._typeCheck(r)){n(a[0]||null,r);return}d=d||r;let i=Array(r.length);for(let e=0;es.validate(n,o,t)}_({sync:o,path:l,value:r,errors:a,endEarly:u,tests:i},n)})}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(!j(e))throw TypeError("`array.of()` sub-schema must be a valid yup schema not: "+c(e));return t.innerType=e,t}length(e,t=v.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return B(t)||t.length===this.resolve(e)}})}min(e,t){return t=t||v.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return B(t)||t.length>=this.resolve(e)}})}max(e,t){return t=t||v.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return B(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,n,r)=>!e(t,n,r):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)}}eb.prototype},44868:function(e,t,n){"use strict";var r,i,a=Object.create,o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s=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 s(t))c.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=l(t,i))||r.enumerable});return e},f={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(f,{Animated:()=>x,AnimatedArray:()=>P,AnimatedObject:()=>M,AnimatedString:()=>k,AnimatedValue:()=>w,createHost:()=>z,getAnimated:()=>g,getAnimatedType:()=>T,getPayload:()=>y,isAnimated:()=>m,setAnimated:()=>v}),e.exports=d(o({},"__esModule",{value:!0}),f);var h=n(6901),p=Symbol.for("Animated:node"),m=e=>!!e&&e[p]===e,g=e=>e&&e[p],v=(e,t)=>(0,h.defineHidden)(e,p,t),y=e=>e&&e[p]&&e[p].getPayload(),x=class{constructor(){v(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),C={dependencies:null},M=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){C.dependencies&&(0,S.hasFluidValue)(e)&&C.dependencies.add(e);let t=y(e);t&&(0,S.each)(t,e=>this.add(e))}},P=class extends M{constructor(e){super(e)}static create(e){return new P(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(_)),!0)}};function _(e){return((0,E.isAnimatedString)(e)?k:w).create(e)}var O=n(6901);function T(e){let t=g(e);return t?t.constructor:O.is.arr(e)?P:(0,O.isAnimatedString)(e)?k:w}var A=n(6901),N=(i=null!=(r=n(2784))?a(u(r)):{},d(r&&r.__esModule?i:o(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 a;let o;let l=(0,R.useRef)(null),s=n&&(0,R.useCallback)(e=>{l.current=(i&&(D.is.fun(i)?i(e):i.current=e),e)},[i]),[u,c]=(a=r,o=new Set,C.dependencies=o,a.style&&(a={...a,style:t.createAnimatedStyle(a.style)}),a=new M(a),C.dependencies=null,[a,o]),d=(0,D.useForceUpdate)(),f=()=>{let e=l.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:s})})},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 M(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=e=>{let t=V(e)||"Anonymous";return(e=A.is.str(e)?a[e]||(a[e]=L(e,i)):e[F]||(e[F]=L(e,i))).displayName=`Animated(${t})`,e};return(0,A.eachProp)(e,(t,n)=>{A.is.arr(e)&&(n=V(t)),a[n]=a(t)}),{animated:a}},V=e=>A.is.str(e)?e:e&&A.is.str(e.displayName)?e.displayName:A.is.fun(e)&&e.name||null},22360:function(e,t,n){"use strict";var r,i,a=Object.create,o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s=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 s(t))c.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=l(t,i))||r.enumerable});return e},f=(e,t,n)=>(n=null!=e?a(u(e)):{},d(!t&&e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)),h={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(h,{BailSignal:()=>J,Controller:()=>ej,FrameValue:()=>ei,Globals:()=>ts.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:()=>tl,to:()=>to,update:()=>tu,useChain:()=>O,useInView:()=>e3,useIsomorphicLayoutEffect:()=>tc.useIsomorphicLayoutEffect,useReducedMotion:()=>tc.useReducedMotion,useResize:()=>e0,useScroll:()=>eJ,useSpring:()=>eF,useSpringRef:()=>eB,useSpringValue:()=>eH,useSprings:()=>eZ,useTrail:()=>eW,useTransition:()=>eY}),e.exports=d(o({},"__esModule",{value:!0}),h);var p=n(6901),m=n(6901);function g(e,...t){return m.is.fun(e)?e(...t):e}var v=(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 C(e){for(let t in e)return!0;return!1}function M(e){return m.is.fun(e)||m.is.arr(e)&&m.is.obj(e[0])}function P(e,t){e.ref?.delete(e),t?.delete(e)}function _(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}function O(e,t,n=1e3){(0,p.useIsomorphicLayoutEffect)(()=>{if(t){let r=0;(0,p.each)(e,(e,i)=>{let a=e.current;if(a.length){let o=n*t[i];isNaN(o)?o=r:r=o,(0,p.each)(a,e=>{(0,p.each)(e.queue,e=>{let t=e.delay;e.delay=e=>o+g(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),A=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 B=[],I=class{constructor(){this.changed=!1,this.values=B,this.toValues=null,this.fromValues=B,this.config=new z,this.immediate=!1}},H=n(6901);function U(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((o,l)=>{let s,u,c=v(n.cancel??r?.cancel,t);if(c)h();else{H.is.und(n.pause)||(i.paused=v(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||v(e,t)),s=g(n.delay||0,t),e?(i.resumeQueue.add(f),a.pause()):(a.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),s=u.time-H.raf.now()}function f(){s>0&&!H.Globals.skipAnimation?(i.delayed=!0,u=H.raf.setTimeout(h,s),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{a.start({...n,callId:e,cancel:c},o)}catch(e){l(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 X(e,t,n,r){let{callId:i,parentId:a,onRest:o}=t,{asyncTo:l,promise:s}=n;return a||e!==l||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 a=new J,o=new Q;return(async()=>{if(W.Globals.skipAnimation)throw G(n),o.result=K(r,!1),d(o),o;h(a);let l=W.is.obj(e)?{...e}:{...t,to:e};l.parentId=i,(0,W.eachProp)(u,(e,t)=>{W.is.und(l[t])&&(l[t]=e)});let s=await r.start(l);return h(a),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),s})()},m;if(W.Globals.skipAnimation)return G(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=a,n.asyncTo=a?l:void 0,n.promise=a?s:void 0)}return W.is.fun(o)&&W.raf.batchedUpdates(()=>{o(m,r,r.item)}),m})():s}function G(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})}},ea=Symbol.for("SpringPhase"),eo=e=>(1&e[ea])>0,el=e=>(2&e[ea])>0,es=e=>(4&e[ea])>0,eu=(e,t)=>t?e[ea]|=3:e[ea]&=-3,ec=(e,t)=>t?e[ea]|=4:e[ea]&=-5,ed=class extends ei{constructor(e,t){if(super(),this.animation=new I,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!(el(this)||this._state.asyncTo)||es(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 eo(this)}get isAnimating(){return el(this)}get isPaused(){return es(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:a}=r,o=(0,D.getPayload)(r.to);!o&&(0,R.hasFluidValue)(r.to)&&(i=(0,R.toArray)((0,R.getFluidValue)(r.to))),r.values.forEach((l,s)=>{if(l.done)return;let u=l.constructor==D.AnimatedString?1:o?o[s].lastPosition:i[s],c=r.immediate,d=u;if(!c){if(d=l.lastPosition,a.tension<=0){l.done=!0;return}let t=l.elapsedTime+=e,n=r.fromValues[s],i=null!=l.v0?l.v0:l.v0=R.is.arr(a.velocity)?a.velocity[s]:a.velocity,o,f=a.precision||(n==u?.005:Math.min(1,.001*Math.abs(u-n)));if(R.is.und(a.duration)){if(a.decay){let e=!0===a.decay?.998:a.decay,r=Math.exp(-(1-e)*t);d=n+i/(1-e)*(1-r),c=Math.abs(l.lastPosition-d)<=f,o=i*r}else{o=null==l.lastVelocity?i:l.lastVelocity;let t=a.restVelocity||f/10,r=a.clamp?0:a.bounce,s=!R.is.und(r),h=n==u?l.v0>0:nt)&&(c=Math.abs(u-d)<=f));++e){s&&(d==u||d>u==h)&&(o=-o*r,d=u);let e=(-(1e-6*a.tension)*(d-u)+-(.001*a.friction)*o)/a.mass;o+=1*e,d+=1*o}}}else{let r=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,l.durationProgress>0&&(l.elapsedTime=a.duration*l.durationProgress,t=l.elapsedTime+=e)),r=(r=(a.progress||0)+t/this._memoizedDuration)>1?1:r<0?0:r,l.durationProgress=r),o=((d=n+a.easing(r)*(u-n))-l.lastPosition)/e,c=1==r}l.lastVelocity=o,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}o&&!o[s].done&&(c=!1),c?l.done=!0:t=!1,l.setValue(d,a.round)&&(n=!0)});let l=(0,D.getAnimated)(this),s=l.getValue();if(t){let e=(0,R.getFluidValue)(r.to);(s!==e||n)&&!a.decay?(l.setValue(e),this._onChange(e)):n&&a.decay&&this._onChange(s),this._stop()}else n&&this._onChange(s)}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(el(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()),G(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)||M(n))&&(n=void 0),null==(r=R.is.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return eo(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)),ev(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 a=this._state;return U(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{es(this)||(ec(this,!0),(0,R.flushCalls)(a.pauseQueue),ey(this,"onPause",K(this,ef(this,this.animation.to)),this))},resume:()=>{es(this)&&(ec(this,!1),el(this)&&this._resume(),(0,R.flushCalls)(a.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:a,defaultProps:o,animation:l}=this,{to:s,from:u}=l,{to:c=s,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&&(l.from=d),d=(0,R.getFluidValue)(d);let h=!(0,R.isEqual)(c,s);h&&this._focus(c);let p=M(t.to),{config:m}=l,{decay:y,velocity:x}=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:a}=e;L.is.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*a,e.friction=4*Math.PI*i*a/r)}(m,g(t.config,a),t.config!==o.config?g(o.config,a):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)&&v(t.reset,a),j=w?d:this.get(),k=S(c),E=R.is.num(k)||R.is.arr(k)||(0,R.isAnimatedString)(k),C=!p&&(!E||v(o.immediate||t.immediate,a));if(h){let e=(0,D.getAnimatedType)(c);if(e!==b.constructor){if(C)b=this._set(k);else throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let P=b.constructor,_=(0,R.hasFluidValue)(c),O=!1;if(!_){let e=w||!eo(this)&&f;(h||e)&&(_=!(O=(0,R.isEqual)(S(j),k))),((0,R.isEqual)(l.immediate,C)||C)&&(0,R.isEqual)(m.decay,y)&&(0,R.isEqual)(m.velocity,x)||(_=!0)}if(O&&el(this)&&(l.changed&&!w?_=!0:_||this._stop(s)),!p&&((_||(0,R.hasFluidValue)(s))&&(l.values=b.getPayload(),l.toValues=(0,R.hasFluidValue)(c)?null:P==D.AnimatedString?[1]:(0,R.toArray)(k)),l.immediate==C||(l.immediate=C,C||w||this._set(s)),_)){let{onRest:e}=l;(0,R.each)(eg,e=>ev(this,t,e));let r=K(this,ef(this,s));(0,R.flushCalls)(this._pendingCalls,r),this._pendingCalls.add(n),l.changed&&R.raf.batchedUpdates(()=>{l.changed=!w,e?.(r,this),w?g(o.onRest,r):l.onStart?.(r,this)})}w&&this._set(j),p?n(X(t.to,t,this._state,this)):_?this._start():el(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(),g(this.animation.onChange,e,this)),g(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)),el(this)||(eu(this,!0),es(this)||this._resume())}_resume(){R.Globals.skipAnimation?this.finish():R.frameLoop.start(this)}_stop(e,t){if(el(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=g(t);if(r){let i=!0!==r&&E(r),a=(i||e).reverse,o=!i||i.reset;return ep({...e,loop:t,default:!1,pause:void 0,to:!a||M(n)?n:void 0,from:o?e.from:void 0,reset:o,...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 eg=["onStart","onRest","onChange","onPause","onResume"];function ev(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):(e_(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 G(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 a=!r&&this._started,o=i||a&&n.size?this.get():null;i&&t.size&&(0,ex.flush)(t,([e,t])=>{t.value=o,e(t,this,this._item)}),a&&(this._started=!1,(0,ex.flush)(n,([e,t])=>{t.value=o,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:a,loop:o,onRest:l,onResolve:s}=t,u=ex.is.obj(t.default)&&t.default;o&&(t.loop=!1),!1===i&&(t.to=null),!1===a&&(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?(G(d,e._lastAsyncId),n(Y(e))):(t.onRest=l,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(o&&p.finished&&!(n&&p.noop)){let n=eh(t,o,i);if(n)return e_(e,[n]),eE(e,n,!0)}return s&&ex.raf.batchedUpdates(()=>s(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}),eP(n,e,e=>eM(e))}),eC(e,n),n}function eC(e,t){(0,ex.eachProp)(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,(0,ex.addFluidObserver)(t,e))})}function eM(e,t){let n=new ed;return n.key=e,t&&(0,ex.addFluidObserver)(n,t),n}function eP(e,t,n){t.keys&&(0,ex.each)(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function e_(e,t){(0,ex.each)(t,t=>{eP(e.springs,t,t=>eM(t,e))})}var eO=f(n(2784)),eT=n(2784),eA=n(6901),eN=({children:e,...t})=>{let n=(0,eT.useContext)(eR),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=(0,eA.useMemoOne)(()=>({pause:r,immediate:i}),[r,i]);let{Provider:a}=eR;return eO.createElement(a,{value:t},e)},eR=(Object.assign(eN,eO.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 a=n(t,e,i);a&&r.push(e.start(a))}}),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,A.useMemo)(()=>r||3==arguments.length?eL():void 0,[]),a=(0,A.useRef)(0),o=(0,N.useForceUpdate)(),l=(0,A.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=eS(e,t);return!(a.current>0)||l.queue.length||Object.keys(n).some(t=>!e.springs[t])?new Promise(r=>{eC(e,n),l.queue.push(()=>{r(ek(e,t))}),o()}):ek(e,t)}}),[]),s=(0,A.useRef)([...l.ctrls]),u=[],c=(0,N.usePrev)(e)||0;function d(e,n){for(let i=e;i{(0,N.each)(s.current.slice(e,c),e=>{P(e,i),e.stop(!0)}),s.current.length=e,d(c,e)},[e]),(0,A.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=s.current.map((e,t)=>eS(e,u[t])),h=(0,A.useContext)(eN),p=(0,N.usePrev)(h),m=h!==p&&C(h);(0,N.useIsomorphicLayoutEffect)(()=>{a.current++,l.ctrls=s.current;let{queue:e}=l;e.length&&(l.queue=[],(0,N.each)(e,e=>e())),(0,N.each)(s.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(_(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),(0,N.useOnce)(()=>()=>{(0,N.each)(l.ctrls,e=>e.stop(!0))});let g=f.map(e=>({...e}));return i?[g,i]:g}function eF(e,t){let n=T.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(),eB=()=>(0,ez.useState)(eV)[0],eI=n(6901),eH=(e,t)=>{let n=(0,eI.useConstant)(()=>new ed(e,t));return(0,eI.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,a,o=eZ(e,(e,n)=>{let o=r?r(e,n):t;return a=o.ref,i=i&&o.reverse,o},n||[{}]);if((0,eU.useIsomorphicLayoutEffect)(()=>{(0,eU.each)(o[1].current,(e,t)=>{let n=o[1].current[t+(i?1:-1)];if(_(e,a),e.ref){n&&e.update({to:n.springs});return}n?e.start({to:n.springs}):e.start()})},n),r||3==arguments.length){let e=a??o[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}},o}return o[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:a,trail:o=0,expires:l=!0,exitBeforeEnter:s=!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),v=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),P(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 eK.is.und(n)?e:eK.is.fun(n)?e.map(n):(0,eK.toArray)(n)}(h,r?r():t,v),x=i&&m.current||[];(0,eK.useIsomorphicLayoutEffect)(()=>(0,eK.each)(x,({ctrl:e,item:t,key:n})=>{P(e,f),g(u,t,n)}));let b=[];if(v&&(0,eK.each)(v,(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=v[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}eK.is.fun(a)&&p.sort((e,t)=>a(e.item,t.item));let j=-o,k=(0,eK.useForceUpdate)(),S=w(t),M=new Map,O=(0,e$.useRef)(new Map),T=(0,e$.useRef)(!1);(0,eK.each)(p,(e,n)=>{let i=e.key,a=e.phase,u=r?r():t,f,h,p=g(u.delay||0,i);if("mount"==a)f=u.enter,h="enter";else{let e=0>y.indexOf(i);if("leave"!=a){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=g(f,e.item,n),!(f=eK.is.obj(f)?E(f):{to:f}).config){let t=d||S.config;f.config=g(t,e.item,n,h)}j+=o;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,a=eK.is.und(i.initial)||v?i.from:i.initial;x.from=g(a,e.item,n)}let{onResolve:b}=x;x.onResolve=e=>{g(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=g(l,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)&&(O.current.delete(n),s&&(T.current=!0),k())}};let w=eS(e.ctrl,x);"leave"===h&&s?O.current.set(e,{phase:h,springs:w,payload:x}):M.set(e,{phase:h,springs:w,payload:x})});let A=(0,e$.useContext)(eN),N=(0,eK.usePrev)(A),R=A!==N&&C(A);(0,eK.useIsomorphicLayoutEffect)(()=>{R&&(0,eK.each)(p,e=>{e.ctrl.start({default:A})})},[A]),(0,eK.each)(M,(e,t)=>{if(O.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),(0,eK.useIsomorphicLayoutEffect)(()=>{(0,eK.each)(O.current.size?O.current:M,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),R&&"enter"==e&&r.start({default:A}),t&&(_(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}=M.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 eX=1,eG=n(6901),eJ=({container:e,...t}={})=>{let[n,r]=eF(()=>({scrollX:0,scrollY:0,scrollXProgress:0,scrollYProgress:0,...t}),[]);return(0,eG.useIsomorphicLayoutEffect)(()=>{let t=(0,eG.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,eG.each)(Object.values(n),e=>e.stop()),t()}},[]),n},eQ=n(6901),e0=({container:e,...t})=>{let[n,r]=eF(()=>({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)(),a=e2.is.fun(e)&&e,{to:o={},from:l={},...s}=a?a():{},u=a?t:e,[c,d]=eF(()=>({from:l,...s}),[]);return(0,e2.useIsomorphicLayoutEffect)(()=>{let e=i.current,{root:t,once:a,amount:s="any",...c}=u??{};if(!e||a&&n||typeof IntersectionObserver>"u")return;let f=new WeakMap,h=()=>(o&&d.start(o),r(!0),a?void 0:()=>{l&&d.start(l),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 s||Array.isArray(s)?s:e4[s],...c});return p.observe(e),()=>p.unobserve(e)},[u]),a?[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)&&ta(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()),ta(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(),ta(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 ta(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 to=(e,...t)=>new tn(e,t),tl=(e,...t)=>((0,e9.deprecateInterpolate)(),new tn(e,t)),ts=n(6901);ts.Globals.assign({createStringInterpolator:ts.createStringInterpolator,to:(e,t)=>new tn(e,t)});var tu=ts.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,a=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,l=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},s={};l(s,{FluidValue:()=>eT,Globals:()=>u,addFluidObserver:()=>eN,callFluidObserver:()=>e_,callFluidObservers:()=>eO,clamp:()=>Q,colorToRgba:()=>ey,colors:()=>ee,createInterpolator:()=>ex,createStringInterpolator:()=>eW,defineHidden:()=>_,deprecateDirectCall:()=>eG,deprecateInterpolate:()=>eY,each:()=>A,eachProp:()=>N,easings:()=>ek,flush:()=>D,flushCalls:()=>F,frameLoop:()=>K,getFluidObservers:()=>eP,getFluidValue:()=>eM,hasFluidValue:()=>eC,hex3:()=>es,hex4:()=>eu,hex6:()=>ec,hex8:()=>ed,hsl:()=>eo,hsla:()=>el,is:()=>O,isAnimatedString:()=>eJ,isEqual:()=>T,isSSR:()=>z,noop:()=>P,onResize:()=>e6,onScroll:()=>ti,once:()=>e$,prefix:()=>eq,raf:()=>d,removeFluidObserver:()=>eR,rgb:()=>ei,rgba:()=>ea,setFluidGetter:()=>eA,toArray:()=>R,useConstant:()=>to,useForceUpdate:()=>tf,useIsomorphicLayoutEffect:()=>tc,useMemoOne:()=>tp,useOnce:()=>tg,usePrev:()=>tx,useReducedMotion:()=>tw}),e.exports=((e,t,n,l)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of a(t))o.call(e,n)||void 0===n||r(e,n,{get:()=>t[n],enumerable:!(l=i(t,n))||l.enumerable});return e})(r({},"__esModule",{value:!0}),s);var u={};l(u,{assign:()=>H,colors:()=>V,createStringInterpolator:()=>L,skipAnimation:()=>B,to:()=>Z,willAdvance:()=>I});var c=C(),d=e=>j(e,c),f=C();d.write=e=>j(e,f);var h=C();d.onStart=e=>j(e,h);var p=C();d.onFrame=e=>j(e,p);var m=C();d.onFinish=e=>j(e,m);var g=[];d.setTimeout=(e,t)=>{let n=d.now()+t,r=()=>{let e=g.findIndex(e=>e.cancel==r);~e&&g.splice(e,1),b-=~e?1:0},i={time:n,handler:e,cancel:r};return g.splice(v(n),0,i),b+=1,k(),i};var v=e=>~(~g.findIndex(t=>t.time>e)||~g.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=v(x=d.now());if(t&&(M(g.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 C(){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,M(t,t=>t(n)&&e.add(t)),b+=e.size,t=e)}}}function M(e,t){e.forEach(e=>{try{t(e)}catch(e){d.catch(e)}})}function P(){}var _=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),O={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(O.arr(e)){if(!O.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function N(e,t,n){if(O.arr(e)){for(let r=0;rO.und(e)?[]:O.arr(e)?e:[e];function D(e,t){if(e.size){let n=Array.from(e);e.clear(),A(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,B=!1,I=P,H=e=>{e.to&&(Z=e.to),e.now&&(d.now=e.now),void 0!==e.colors&&(V=e.colors),null!=e.skipAnimation&&(B=e.skipAnimation),e.createStringInterpolator&&(L=e.createStringInterpolator),e.requestAnimationFrame&&d.use(e.requestAnimationFrame),e.batchedUpdates&&(d.batchedUpdates=e.batchedUpdates),e.willAdvance&&(I=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)):(X(e),d(J))},advance:J,sort(e){if($)d.onFrame(()=>K.sort(e));else{let t=W.indexOf(e);~t&&(W.splice(t,1),G(e))}},clear(){W=[],U.clear()}};function Y(){U.forEach(X),U.clear(),d(J)}function X(e){W.includes(e)||G(e)}function G(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)),ea=RegExp("rgba"+er(et,et,et,et)),eo=RegExp("hsl"+er(et,en,en)),el=RegExp("hsla"+er(et,en,en,et)),es=/^#([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 eg(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ev(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=ea.exec(e))?(ep(t[1])<<24|ep(t[2])<<16|ep(t[3])<<8|eg(t[4]))>>>0:(t=es.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=eo.exec(e))?(255|eh(em(t[1]),ev(t[2]),ev(t[3])))>>>0:(t=el.exec(e))?(eh(em(t[1]),ev(t[2]),ev(t[3]))|eg(t[4]))>>>0:null;if(null===n)return e;let r=(4278190080&(n=n||0))>>>24,i=(16711680&n)>>>16,a=(65280&n)>>>8,o=(255&n)/255;return`rgba(${r}, ${i}, ${a}, ${o})`}var ex=(e,t,n)=>{if(O.fun(e))return e;if(O.arr(e))return ex({range:e,output:t,extrapolate:n});if(O.str(e.output[0]))return L(e);let r=e.output,i=e.range||[0,1],a=e.extrapolateLeft||e.extrapolate||"extend",o=e.extrapolateRight||e.extrapolate||"extend",l=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,a,o,l,s){let u=s?s(e):e;if(un){if("identity"===l)return u;"clamp"===l&&(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=a(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],l,a,o,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"),eC=e=>!!(e&&e[eE]),eM=e=>e&&e[eE]?e[eE]():e,eP=e=>e[eS]||null;function e_(e,t){e.eventObserved?e.eventObserved(t):e(t)}function eO(e,t){let n=e[eS];n&&n.forEach(e=>{e_(e,t)})}var eT=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");eA(this,e)}},eA=(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,eB=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,eI=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&&eB.test(n)?eI(n):n||e},eH=e=>{let t=eB.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=>eM(e).replace(eB,eI).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=>ex({...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 eX=e$(console.warn);function eG(){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 eJ(e){return O.str(e)&&("#"==e[0]||/\d/.test(e)||!z()&&eB.test(e)||e in(V||{}))}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)?.())}},ta=n(2784);function to(e){let t=(0,ta.useRef)(null);return null===t.current&&(t.current=e()),t.current}var tl=n(2784),ts=n(2784),tu=n(2784),tc=z()?tu.useEffect:tu.useLayoutEffect,td=()=>{let e=(0,ts.useRef)(!1);return tc(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function tf(){let e=(0,tl.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,a=i;return a?t&&a.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n{r.current=a,i==n&&(n.inputs=n.result=void 0)},[a]),a.result}var tm=n(2784),tg=e=>(0,tm.useEffect)(e,tv),tv=[],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,a={};((e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})})(a,{Any:()=>o}),e.exports=((e,a,o,l)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let o of r(a))i.call(e,o)||void 0===o||t(e,o,{get:()=>a[o],enumerable:!(l=n(a,o))||l.enumerable});return e})(t({},"__esModule",{value:!0}),a);var o=class{}},96721:function(e,t,n){"use strict";var r,i,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))s.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=o(t,i))||r.enumerable});return e},c={};((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(c,{a:()=>_,animated:()=>_}),e.exports=u(a({},"__esModule",{value:!0}),c);var d=n(99550),f=n(28316),h=n(6901),p=n(25447),m=/^--/,g={},v={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"];v=Object.keys(v).reduce((e,t)=>(x.forEach(n=>e[y(n,t)]=e[t]),e),v);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,C=(e,t)=>w.is.arr(e)?e.every(e=>C(e,t)):w.is.num(e)?e===t:parseFloat(e)===t,M=class extends b.AnimatedObject{constructor({x:e,y:t,z:n,...r}){let i=[],a=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),a.push(e=>[`translate3d(${e.map(e=>S(e,"px")).join(",")})`,C(e,0)])),(0,w.eachProp)(r,(e,t)=>{if("transform"===t)i.push([e||""]),a.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)),a.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${S(i,n)})`,C(i,0)]:e=>[`${t}(${e.map(e=>S(e,n)).join(",")})`,C(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new P(i,a)),super(r)}},P=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]),[a,o]=this.transforms[r](w.is.arr(i)?i:n.map(w.getFluidValue));e+=" "+a,t=t&&o}),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 _=(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:a,scrollLeft:o,viewBox:l,...s}=t,u=Object.values(s),c=Object.keys(s).map(t=>n||e.hasAttribute(t)?t:g[t]||(g[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)||v.hasOwnProperty(t)&&v[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!==a&&(e.scrollTop=a),void 0!==o&&(e.scrollLeft=o),void 0!==l&&e.setAttribute("viewBox",l)},createAnimatedStyle:e=>new M(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 a;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:o,defaultVariants:l}=t,s=Object.keys(o).map(e=>{let t=null==n?void 0:n[e],i=null==l?void 0:l[e];if(null===t)return null;let a=r(t)||r(i);return o[e][a]}),u=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return i(e,s,null==t?void 0:null===(a=t.compoundVariants)||void 0===a?void 0:a.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({...l,...u}[t]):({...l,...u})[t]===n})?[...e,n,r]:e},[]),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 O},mY:function(){return S}});var r=n(72331),i=n(2784),a=n(40844),o='[cmdk-group=""]',l='[cmdk-group-items=""]',s='[cmdk-item=""]',u=`${s}:not([aria-disabled="true"])`,c="cmdk-item-select",d="data-value",f=(e,t)=>a(e,t),h=i.createContext(void 0),p=()=>i.useContext(h),m=i.createContext(void 0),g=()=>i.useContext(m),v=i.createContext(void 0),y=i.forwardRef((e,t)=>{let n=i.useRef(null),r=P(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),a=P(()=>new Set),p=P(()=>new Map),g=P(()=>new Map),v=P(()=>new Set),y=C(e),{label:x,children:b,value:w,onValueChange:j,filter:k,shouldFilter:E,...S}=e,O=i.useId(),T=i.useId(),R=i.useId(),D=A();M(()=>{if(void 0!==w){let e=w.trim().toLowerCase();r.current.value=e,D(6,I),L.emit()}},[w]);let L=i.useMemo(()=>({subscribe:e=>(v.current.add(e),()=>v.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var i,a,o;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)B(),z(),D(1,V);else if("value"===e){if((null==(i=y.current)?void 0:i.value)!==void 0){null==(o=(a=y.current).onValueChange)||o.call(a,t);return}n||D(5,I)}L.emit()}},emit:()=>{v.current.forEach(e=>e())}}),[]),Z=i.useMemo(()=>({value:(e,t)=>{t!==g.current.get(e)&&(g.current.set(e,t),r.current.filtered.items.set(e,F(t)),D(2,()=>{z(),L.emit()}))},item:(e,t)=>(a.current.add(e),t&&(p.current.has(t)?p.current.get(t).add(e):p.current.set(t,new Set([e]))),D(3,()=>{B(),z(),r.current.value||V(),L.emit()}),()=>{g.current.delete(e),a.current.delete(e),r.current.filtered.items.delete(e),D(4,()=>{B(),V(),L.emit()})}),group:e=>(p.current.has(e)||p.current.set(e,new Set),()=>{g.current.delete(e),p.current.delete(e)}),filter:()=>y.current.shouldFilter,label:x||e["aria-label"],listId:O,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(l);t?t.appendChild(e.parentElement===t?e:e.closest(`${l} > *`)):i.appendChild(e.parentElement===i?e:e.closest(`${l} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{let t=n.current.querySelector(`${o}[${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 B(){if(!r.current.search||!1===y.current.shouldFilter){r.current.filtered.count=a.current.size;return}r.current.filtered.groups=new Set;let e=0;for(let t of a.current){let n=F(g.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 I(){var e,t,n;let r=H();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(o))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function H(){return n.current.querySelector(`${s}[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),a=r[i+e];null!=(t=y.current)&&t.loop&&(a=i+e<0?r[r.length-1]:i+e===r.length?r[0]:r[i+e]),a&&L.setState("value",a.getAttribute(d))}function $(e){let t=H(),n=null==t?void 0:t.closest(o),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,o):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,o))?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)},X=e=>{e.preventDefault(),e.metaKey?W(0):e.altKey?$(-1):q(-1)};return i.createElement("div",{ref:_([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&&X(e);break;case"ArrowUp":X(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},x),i.createElement(m.Provider,{value:L},i.createElement(h.Provider,{value:Z},b)))}),x=i.forwardRef((e,t)=>{let n=i.useId(),r=i.useRef(null),a=i.useContext(v),o=p(),l=C(e);M(()=>o.item(n,a),[]);let s=T(n,r,[e.value,e.children,r]),u=g(),d=O(e=>e.value&&e.value===s.current),f=O(e=>!1===o.filter()||!e.search||e.filtered.items.get(n)>0);function h(){var e,t;null==(t=(e=l.current).onSelect)||t.call(e,s.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:_([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",s.current,!0)},onClick:m?void 0:h},e.children)}),b=i.forwardRef((e,t)=>{let{heading:n,children:r,...a}=e,o=i.useId(),l=i.useRef(null),s=i.useRef(null),u=i.useId(),c=p(),d=O(e=>!1===c.filter()||!e.search||e.filtered.groups.has(o));M(()=>c.group(o),[]),T(o,l,[e.value,e.heading,s]);let f=i.createElement(v.Provider,{value:o},r);return i.createElement("div",{ref:_([l,t]),...a,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&i.createElement("div",{ref:s,"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,a=i.useRef(null),o=O(e=>!e.search);return n||o?i.createElement("div",{ref:_([a,t]),...r,"cmdk-separator":"",role:"separator"}):null}),j=i.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,a=null!=e.value,o=g(),l=O(e=>e.search),s=p();return i.useEffect(()=>{null!=e.value&&o.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":s.listId,"aria-labelledby":s.labelId,id:s.inputId,type:"text",value:a?e.value:l,onChange:e=>{a||o.setState("search",e.target.value),null==n||n(e.target.value)}})}),k=i.forwardRef((e,t)=>{let{children:n,...r}=e,a=i.useRef(null),o=i.useRef(null),l=p();return i.useEffect(()=>{if(o.current&&a.current){let e=o.current,t=a.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:_([a,t]),...r,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:l.listId,"aria-labelledby":l.inputId},i.createElement("div",{ref:o,"cmdk-list-sizer":""},n))}),E=i.forwardRef((e,t)=>{let{open:n,onOpenChange:a,container:o,...l}=e;return i.createElement(r.fC,{open:n,onOpenChange:a},i.createElement(r.h_,{container:o},i.createElement(r.aV,{"cmdk-overlay":""}),i.createElement(r.VY,{"aria-label":e.label,"cmdk-dialog":""},i.createElement(y,{ref:t,...l}))))}),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=O(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,...a}=e;return i.createElement("div",{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},i.createElement("div",{"aria-hidden":!0},r))})});function C(e){let t=i.useRef(e);return M(()=>{t.current=e}),t}var M=typeof window>"u"?i.useEffect:i.useLayoutEffect;function P(e){let t=i.useRef();return void 0===t.current&&(t.current=e()),t}function _(e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}function O(e){let t=g(),n=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,n,n)}function T(e,t,n){let r=i.useRef(),a=p();return M(()=>{var i;let o=(()=>{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()}})();a.value(e,o),null==(i=t.current)||i.setAttribute(d,o),r.current=o}),r}var A=()=>{let[e,t]=i.useState(),n=P(()=>new Map);return M(()=>{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 a}});var r=n(86801);function i(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function a(e){let t,n,a;function l(e,r,i=0,a=e.length){if(i>>1;0>n(e[t],r)?i=t+1:a=t}while(i(0,r.Z)(e(t),n),a=(t,n)=>e(t)-n):(t=e===r.Z||e===i?e:o,n=e,a=e),{left:l,center:function(e,t,n=0,r=e.length){let i=l(e,t,n,r-1);return i>n&&a(e[i-1],t)>-a(e[i],t)?i-1:i},right:function(e,r,i=0,a=e.length){if(i>>1;0>=n(e[t],r)?i=t+1:a=t}while(i=t&&(n=r=t):(n>t&&(n=t),r=a&&(n=r=a):(n>a&&(n=a),r-1},o.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 l=o},38896:function(e,t,n){"use strict";var r=n(62411),i=n(93221),a=(0,r.Z)(i.Z,"Map");t.Z=a},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,a=Object.prototype.hasOwnProperty;function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1}},40704:function(e,t){"use strict";t.Z=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r0&&i(c)?n>1?e(c,n-1,i,a,o):(0,r.Z)(o,c):a||(o[o.length]=c)}return o}},86862:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=function(e,t,n){for(var r=-1,i=Object(e),a=n(e),o=a.length;o--;){var l=a[++r];if(!1===t(i[l],l,i))break}return e}},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,a=t.length;null!=e&&nc))return!1;var f=s.get(e),h=s.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,g=2&n?new i.Z:void 0;for(s.set(e,t),s.set(t,e);++pi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r=i?e:(0,r.Z)(e,t,n)}},6181:function(e,t,n){"use strict";var r=n(88282);t.Z=function(e){var t=new e.constructor(e.byteLength);return new r.Z(t).set(new r.Z(e)),t}},25056:function(e,t,n){"use strict";var r=n(93221),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=i&&"object"==typeof module&&module&&!module.nodeType&&module,o=a&&a.exports===i?r.Z.Buffer:void 0,l=o?o.allocUnsafe:void 0;t.Z=function(e,t){if(t)return e.slice();var n=e.length,r=l?l(n):new e.constructor(n);return e.copy(r),r}},76735:function(e,t,n){"use strict";var r=n(6181);t.Z=function(e,t){var n=t?(0,r.Z)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},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&&e0){if(++r>=800)return arguments[0]}else r=0;return l.apply(void 0,arguments)})},36202:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(32690),i="\ud800-\udfff",a="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\ud83c[\udffb-\udfff]",l="[^"+i+"]",s="(?:\ud83c[\udde6-\uddff]){2}",u="[\ud800-\udbff][\udc00-\udfff]",c="(?:"+a+"|"+o+")?",d="[\\ufe0e\\ufe0f]?",f="(?:\\u200d(?:"+[l,s,u].join("|")+")"+d+c+")*",h=RegExp(o+"(?="+o+")|(?:"+[l+a+"?",a,s,u,"["+i+"]"].join("|")+")"+(d+c+f),"g"),p=function(e){return(0,r.Z)(e)?e.match(h)||[]:e.split("")}},71354:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r,i,a=n(23549);function o(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],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(o.Cache||a.Z),n}o.Cache=a.Z;var l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,u=(i=(r=o(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(l,function(e,n,r,i){t.push(r?i.replace(s,"$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),a=function(){return i.Z.Date.now()},o=n(62875),l=Math.max,s=Math.min,u=function(e,t,n){var i,u,c,d,f,h,p=0,m=!1,g=!1,v=!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 x(e){var n=e-h,r=e-p;return void 0===h||n>=t||n<0||g&&r>=c}function b(){var e,n,r,i=a();if(x(i))return w(i);f=setTimeout(b,(e=i-h,n=i-p,r=t-e,g?s(r,c-n):r))}function w(e){return(f=void 0,v&&i)?y(e):(i=u=void 0,d)}function j(){var e,n=a(),r=x(n);if(i=arguments,u=this,h=n,r){if(void 0===f)return p=e=h,f=setTimeout(b,t),m?y(e):d;if(g)return clearTimeout(f),f=setTimeout(b,t),y(h)}return void 0===f&&(f=setTimeout(b,t)),d}return t=(0,o.Z)(t)||0,(0,r.Z)(n)&&(m=!!n.leading,c=(g="maxWait"in n)?l((0,o.Z)(n.maxWait)||0,t):c,v="trailing"in n?!!n.trailing:v),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(a())},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,a=n(40905),o=function(e,t,n,r){for(var i=-1,a=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),a=n(43391),o=Object.prototype,l=Function.prototype.toString,s=o.hasOwnProperty,u=l.call(Object);t.Z=function(e){if(!(0,a.Z)(e)||"[object Object]"!=(0,r.Z)(e))return!1;var t=(0,i.Z)(e);if(null===t)return!0;var n=s.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.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),a=n(43391),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1;var l=n(93225),s=n(37755),u=s.Z&&s.Z.isTypedArray,c=u?(0,l.Z)(u):function(e){return(0,a.Z)(e)&&(0,i.Z)(e.length)&&!!o[(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),a=(0,n(76048).Z)(Object.keys,Object),o=Object.prototype.hasOwnProperty,l=function(e){if(!(0,i.Z)(e))return a(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t},s=n(63282),u=function(e){return(0,s.Z)(e)?(0,r.Z)(e):l(e)}},17816:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(45423),i=n(93122),a=n(15441),o=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},l=Object.prototype.hasOwnProperty,s=function(e){if(!(0,i.Z)(e))return o(e);var t=(0,a.Z)(e),n=[];for(var r in e)"constructor"==r&&(t||!l.call(e,r))||n.push(r);return n},u=n(63282),c=function(e){return(0,u.Z)(e)?(0,r.Z)(e,!0):s(e)}},13762:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r,i=n(95598),a=n(66638),o=n(42082),l=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},s=n(89523),u=n(82472),c=n(57969),d=function(e,t){var n,r;return t=(0,o.Z)(t,e),n=e,null==(e=(r=t).length<2?n:(0,s.Z)(n,(0,u.Z)(r,0,-1)))||delete e[c.Z(l(t))]},f=n(82436),h=n(65255),p=function(e){return(0,h.Z)(e)?void 0:e},m=n(1590),g=n(71118),v=n(20542),y=n(9878),x=(r=function(e,t){var n={};if(null==e)return n;var r=!1;t=(0,i.Z)(t,function(t){return t=(0,o.Z)(t,e),r||(r=t.length>1),t}),(0,f.Z)(e,(0,y.Z)(e),n),r&&(n=(0,a.Z)(n,7,p));for(var l=t.length;l--;)d(n,t[l]);return n},(0,v.Z)((0,g.Z)(r,void 0,function(e){return(null==e?0:e.length)?(0,m.Z)(e,1):[]}),r+""))},84779:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(1590),i=n(95598),a=n(89523),o=n(20248),l=n(68282),s=n(63282),u=function(e,t){var n=-1,r=(0,s.Z)(e)?Array(e.length):[];return(0,l.Z)(e,function(e,i,a){r[++n]=t(e,i,a)}),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,a=(0,f.Z)(e),o=void 0!==t,l=null===t,s=t==t,u=(0,f.Z)(t);if(!l&&!u&&!a&&e>t||a&&o&&s&&!l&&!u||r&&o&&s||!n&&s||!i)return 1;if(!r&&!a&&!u&&e=l)return s;return s*("desc"==n[r]?-1:1)}}return e.index-t.index},m=n(89930),g=n(97885),v=function(e,t,n){t=t.length?(0,i.Z)(t,function(e){return(0,g.Z)(e)?function(t){return(0,a.Z)(t,1===e.length?e[0]:e)}:e}):[m.Z];var r=-1;return t=(0,i.Z)(t,(0,d.Z)(o.Z)),c(u(e,function(e,n,a){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),x=n(95965),b=(0,y.Z)(function(e,t){if(null==e)return[];var n=t.length;return n>1&&(0,x.Z)(e,t[0],t[1])?t=[]:n>2&&(0,x.Z)(t[0],t[1],t[2])&&(t=[t[0]]),v(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 a=!0,o=!0;if("function"!=typeof e)throw TypeError("Expected a function");return(0,i.Z)(n)&&(a="leading"in n?!!n.leading:a,o="trailing"in n?!!n.trailing:o),(0,r.Z)(e,t,{leading:a,maxWait:t,trailing:o})}},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},a=/^\s+/,o=n(93122),l=n(22758),s=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,l.Z)(e))return s;if((0,o.Z)(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=(0,o.Z)(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=(t=e)?t.slice(0,i(t)+1).replace(a,""):t;var r=c.test(e);return r||d.test(e)?f(e.slice(2),r?2:8):u.test(e)?s:+e}},69046:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r,i=n(95598),a=n(92263),o=n(45500),l=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n},s=(r=n(6623).Z,function(e){var t,n=(0,a.Z)(e);return"[object Map]"==n?(0,o.Z)(e):"[object Set]"==n?l(e):(t=r(e),(0,i.Z)(t,function(t){return[t,e[t]]}))})},25186:function(e,t,n){"use strict";var r=n(79200);t.Z=function(e){return null==e?"":(0,r.Z)(e)}},28356:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(90463),i=n(58527),a=n(40704),o=n(11749),l=n(87459),s=n(63249),u=l.Z&&1/(0,s.Z)(new l.Z([,-0]))[1]==1/0?function(e){return new l.Z(e)}:function(){},c=function(e,t,n){var l=-1,c=i.Z,d=e.length,f=!0,h=[],p=h;if(n)f=!1,c=a.Z;else if(d>=200){var m=t?null:u(e);if(m)return(0,s.Z)(m);f=!1,c=o.Z,p=new r.Z}else p=t?[]:h;t:for(;++l"checkbox"===e.type,a=e=>e instanceof Date,o=e=>null==e;let l=e=>"object"==typeof e;var s=e=>!o(e)&&!Array.isArray(e)&&l(e)&&!a(e),u=e=>s(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 s(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||s(e))))return e;else if(t=n?[]:{},n||f(e))for(let n in e)e.hasOwnProperty(n)&&(t[n]=p(e[n]));else t=e;return t}var m=e=>Array.isArray(e)?e.filter(Boolean):[],g=e=>void 0===e,v=(e,t,n)=>{if(!t||!s(e))return n;let r=m(t.split(/[,[\].]+?/)).reduce((e,t)=>o(e)?e:e[t],e);return g(r)||r===e?g(e[t])?n:e[t]:r},y=e=>"boolean"==typeof e,x=e=>/^\w*$/.test(e),b=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/)),w=(e,t,n)=>{let r=-1,i=x(t)?[t]:b(t),a=i.length,o=a-1;for(;++r{let i={defaultValues:t._defaultValues};for(let a in e)Object.defineProperty(i,a,{get:()=>(t._proxyFormState[a]!==k.all&&(t._proxyFormState[a]=!r||k.all),n&&(n[a]=!0),e[a])});return i},C=e=>s(e)&&!Object.keys(e).length,M=(e,t,n,r)=>{n(e);let{name:i,...a}=e;return C(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!r||k.all))},P=e=>Array.isArray(e)?e:[e],_=e=>"string"==typeof e,O=(e,t,n,r,i)=>_(e)?(r&&t.watch.add(e),v(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),v(n,e))):(r&&(t.watchAll=!0),n),T=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},A=e=>({isOnSubmit:!e||e===k.onSubmit,isOnBlur:e===k.onBlur,isOnChange:e===k.onChange,isOnAll:e===k.all,isOnTouch:e===k.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))));let R=(e,t,n,r)=>{for(let i of n||Object.keys(e)){let n=v(e,i);if(n){let{_f:e,...a}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r||e.ref&&t(e.ref,e.name)&&!r)break;R(a,t)}else s(a)&&R(a,t)}}};var D=(e,t,n)=>{let r=m(v(e,n));return w(r,"root",t[n]),w(e,n,r),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=>_(e),V=e=>"radio"===e.type,B=e=>e instanceof RegExp;let I={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&&!g(e[0].attributes.value)?g(e[0].value)||""===e[0].value?H:{value:e[0].value,isValid:!0}:H:I}return I};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)||y(e)&&!e)return{type:n,message:z(e)?e:"",ref:t}}var K=e=>s(e)&&!B(e)?e:{value:e,message:""},Y=async(e,t,n,r,a)=>{let{ref:l,refs:u,required:c,maxLength:d,minLength:f,min:h,max:p,pattern:m,validate:x,name:b,valueAsNumber:w,mount:j,disabled:k}=e._f,S=v(t,b);if(!j||k)return{};let M=u?u[0]:l,P=e=>{r&&M.reportValidity&&(M.setCustomValidity(y(e)?"":e||""),M.reportValidity())},O={},A=V(l),N=i(l),R=(w||L(l))&&g(l.value)&&g(S)||F(l)&&""===l.value||""===S||Array.isArray(S)&&!S.length,D=T.bind(null,b,n,O),I=(e,t,n,r=E.maxLength,i=E.minLength)=>{let a=e?t:n;O[b]={type:e?r:i,message:a,ref:l,...D(e?r:i,a)}};if(a?!Array.isArray(S)||!S.length:c&&(!(A||N)&&(R||o(S))||y(S)&&!S||N&&!U(u).isValid||A&&!q(u).isValid)){let{value:e,message:t}=z(c)?{value:!!c,message:c}:K(c);if(e&&(O[b]={type:E.required,message:t,ref:M,...D(E.required,t)},!n))return P(t),O}if(!R&&(!o(h)||!o(p))){let e,t;let r=K(p),i=K(h);if(o(S)||isNaN(S)){let n=l.valueAsDate||new Date(S),a=e=>new Date(new Date().toDateString()+" "+e),o="time"==l.type,s="week"==l.type;_(r.value)&&S&&(e=o?a(S)>a(r.value):s?S>r.value:n>new Date(r.value)),_(i.value)&&S&&(t=o?a(S)r.value),o(i.value)||(t=n+e.value,i=!o(t.value)&&S.length<+t.value;if((r||i)&&(I(r,e.message,t.message),!n))return P(O[b].message),O}if(m&&!R&&_(S)){let{value:e,message:t}=K(m);if(B(e)&&!S.match(e)&&(O[b]={type:E.pattern,message:t,ref:l,...D(E.pattern,t)},!n))return P(t),O}if(x){if(Z(x)){let e=$(await x(S,t),M);if(e&&(O[b]={...e,...D(E.validate,e.message)},!n))return P(e.message),O}else if(s(x)){let e={};for(let r in x){if(!C(e)&&!n)break;let i=$(await x[r](S,t),M,r);i&&(e={...i,...D(r,i.message)},P(i.message),n&&(O[b]=e))}if(!C(e)&&(O[b]={ref:M,...e},!n))return O}}return P(!0),O};function X(e,t){let n=Array.isArray(t)?t:x(t)?[t]:b(t),r=1===n.length?e:function(e,t){let n=t.slice(0,-1).length,r=0;for(;r{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}},J=e=>o(e)||!l(e);function Q(e,t){if(J(e)||J(t))return e===t;if(a(e)&&a(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(a(n)&&a(e)||s(n)&&s(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=>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(s(e)||n)for(let n in e)Array.isArray(e[n])||s(e[n])&&!er(e[n])?(t[n]=Array.isArray(e[n])?[]:{},ei(e[n],t[n])):o(e[n])||(t[n]=!0);return t}var ea=(e,t)=>(function e(t,n,r){let i=Array.isArray(t);if(s(t)||i)for(let i in t)Array.isArray(t[i])||s(t[i])&&!er(t[i])?g(n)||J(r[i])?r[i]=Array.isArray(t[i])?ei(t[i],[]):{...ei(t[i])}:e(t[i],o(n)?{}:n[i],r[i]):r[i]=!Q(t[i],n[i]);return r})(e,t,ei(t)),eo=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>g(e)?e:t?""===e?NaN:e?+e:e:n&&_(e)?new Date(e):r?r(e):e;function el(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:eo(g(t.value)?e.ref.value:t.value,e)}var es=(e,t,n,r)=>{let i={};for(let n of e){let e=v(t,n);e&&w(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},eu=e=>g(e)?e:B(e)?e.source:s(e)?B(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=v(e,n);if(r||x(n))return{error:r,name:n};let i=n.split(".");for(;i.length;){let r=i.join("."),a=v(t,r),o=v(e,r);if(a&&!Array.isArray(a)&&n!==r)break;if(o&&o.type)return{name:r,error:o};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(v(e,t)).length&&X(e,t);let ep={mode:k.onSubmit,reValidateMode:k.onChange,shouldFocusError:!0};function em(e={}){let t=r.useRef(),n=r.useRef(),[l,c]=r.useState({isDirty:!1,isValidating:!1,isLoading:Z(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Z(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...function(e={}){let t,n={...ep,...e},r={submitCount:0,isDirty:!1,isLoading:Z(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},l={},c=(s(n.defaultValues)||s(n.values))&&p(n.defaultValues||n.values)||{},f=n.shouldUnregister?{}:p(c),x={action:!1,mount:!1,watch:!1},b={mount:new Set,unMount:new Set,array:new Set,watch:new Set},E=0,S={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},M={values:G(),array:G(),state:G()},T=A(n.mode),z=A(n.reValidateMode),V=n.criteriaMode===k.all,B=e=>t=>{clearTimeout(E),E=setTimeout(e,t)},I=async e=>{if(S.isValid||e){let e=n.resolver?C((await K()).errors):await ei(l,!0);e!==r.isValid&&M.state.next({isValid:e})}},H=(e,t)=>{(S.isValidating||S.validatingFields)&&((e||Array.from(b.mount)).forEach(e=>{e&&(t?w(r.validatingFields,e,t):X(r.validatingFields,e))}),M.state.next({validatingFields:r.validatingFields,isValidating:!C(r.validatingFields)}))},U=(e,t)=>{w(r.errors,e,t),M.state.next({errors:r.errors})},W=(e,t,n,r)=>{let i=v(l,e);if(i){let a=v(f,e,g(n)?v(c,e):n);g(a)||r&&r.defaultChecked||t?w(f,e,t?a:el(i._f)):ev(e,a),x.mount&&I()}},q=(e,t,n,i,a)=>{let o=!1,s=!1,u={name:e},d=!!(v(l,e)&&v(l,e)._f&&v(l,e)._f.disabled);if(!n||i){S.isDirty&&(s=r.isDirty,r.isDirty=u.isDirty=em(),o=s!==u.isDirty);let n=d||Q(v(c,e),t);s=!!(!d&&v(r.dirtyFields,e)),n||d?X(r.dirtyFields,e):w(r.dirtyFields,e,!0),u.dirtyFields=r.dirtyFields,o=o||S.dirtyFields&&!n!==s}if(n){let t=v(r.touchedFields,e);t||(w(r.touchedFields,e,n),u.touchedFields=r.touchedFields,o=o||S.touchedFields&&t!==n)}return o&&a&&M.state.next(u),o?u:{}},$=(n,i,a,o)=>{let l=v(r.errors,n),s=S.isValid&&y(i)&&r.isValid!==i;if(e.delayError&&a?(t=B(()=>U(n,a)))(e.delayError):(clearTimeout(E),t=null,a?w(r.errors,n,a):X(r.errors,n)),(a?!Q(l,a):l)||!C(o)||s){let e={...o,...s&&y(i)?{isValid:i}:{},errors:r.errors,name:n};r={...r,...e},M.state.next(e)}},K=async e=>{H(e,!0);let t=await n.resolver(f,n.context,es(e||b.mount,l,n.criteriaMode,n.shouldUseNativeValidation));return H(e),t},er=async e=>{let{errors:t}=await K(e);if(e)for(let n of e){let e=v(t,n);e?w(r.errors,n,e):X(r.errors,n)}else r.errors=t;return t},ei=async(e,t,i={valid:!0})=>{for(let a in e){let o=e[a];if(o){let{_f:e,...l}=o;if(e){let l=b.array.has(e.name);H([a],!0);let s=await Y(o,f,V,n.shouldUseNativeValidation&&!t,l);if(H([a]),s[e.name]&&(i.valid=!1,t))break;t||(v(s,e.name)?l?D(r.errors,s,e.name):w(r.errors,e.name,s[e.name]):X(r.errors,e.name))}l&&await ei(l,t,i)}}return i.valid},em=(e,t)=>(e&&t&&w(f,e,t),!Q(ek(),c)),eg=(e,t,n)=>O(e,b,{...x.mount?f:g(t)?c:_(e)?{[e]:t}:t},n,t),ev=(e,t,n={})=>{let r=v(l,e),a=t;if(r){let n=r._f;n&&(n.disabled||w(f,e,eo(t,n)),a=F(n.ref)&&o(t)?"":t,ee(n.ref)?[...n.ref.options].forEach(e=>e.selected=a.includes(e.value)):n.refs?i(n.ref)?n.refs.length>1?n.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(a)?!!a.find(t=>t===e.value):a===e.value)):n.refs[0]&&(n.refs[0].checked=!!a):n.refs.forEach(e=>e.checked=e.value===a):L(n.ref)?n.ref.value="":(n.ref.value=a,n.ref.type||M.values.next({name:e,values:{...f}})))}(n.shouldDirty||n.shouldTouch)&&q(e,a,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&ej(e)},ey=(e,t,n)=>{for(let r in t){let i=t[r],o=`${e}.${r}`,s=v(l,o);!b.array.has(e)&&J(i)&&(!s||s._f)||a(i)?ev(o,i,n):ey(o,i,n)}},ex=(e,t,n={})=>{let i=v(l,e),a=b.array.has(e),s=p(t);w(f,e,s),a?(M.array.next({name:e,values:{...f}}),(S.isDirty||S.dirtyFields)&&n.shouldDirty&&M.state.next({name:e,dirtyFields:ea(c,f),isDirty:em(e,s)})):!i||i._f||o(s)?ev(e,s,n):ey(e,s,n),N(e,b)&&M.state.next({...r}),M.values.next({name:x.mount?e:void 0,values:{...f}})},eb=async e=>{x.mount=!0;let i=e.target,a=i.name,o=!0,s=v(l,a),c=e=>{o=Number.isNaN(e)||e===v(f,a,e)};if(s){let d,h;let p=i.type?el(s._f):u(e),m=e.type===j.BLUR||e.type===j.FOCUS_OUT,g=!ec(s._f)&&!n.resolver&&!v(r.errors,a)&&!s._f.deps||ef(m,v(r.touchedFields,a),r.isSubmitted,z,T),y=N(a,b,m);w(f,a,p),m?(s._f.onBlur&&s._f.onBlur(e),t&&t(0)):s._f.onChange&&s._f.onChange(e);let x=q(a,p,m,!1),k=!C(x)||y;if(m||M.values.next({name:a,type:e.type,values:{...f}}),g)return S.isValid&&I(),k&&M.state.next({name:a,...y?{}:x});if(!m&&y&&M.state.next({...r}),n.resolver){let{errors:e}=await K([a]);if(c(p),o){let t=ed(r.errors,l,a),n=ed(e,l,t.name||a);d=n.error,a=n.name,h=C(e)}}else H([a],!0),d=(await Y(s,f,V,n.shouldUseNativeValidation))[a],H([a]),c(p),o&&(d?h=!1:S.isValid&&(h=await ei(l,!0)));o&&(s._f.deps&&ej(s._f.deps),$(a,h,d,x))}},ew=(e,t)=>{if(v(r.errors,t)&&e.focus)return e.focus(),1},ej=async(e,t={})=>{let i,a;let o=P(e);if(n.resolver){let t=await er(g(e)?e:o);i=C(t),a=e?!o.some(e=>v(t,e)):i}else e?((a=(await Promise.all(o.map(async e=>{let t=v(l,e);return await ei(t&&t._f?{[e]:t}:t)}))).every(Boolean))||r.isValid)&&I():a=i=await ei(l);return M.state.next({...!_(e)||S.isValid&&i!==r.isValid?{}:{name:e},...n.resolver||!e?{isValid:i}:{},errors:r.errors}),t.shouldFocus&&!a&&R(l,ew,e?o:b.mount),a},ek=e=>{let t={...x.mount?f:c};return g(e)?t:_(e)?v(t,e):e.map(e=>v(t,e))},eE=(e,t)=>({invalid:!!v((t||r).errors,e),isDirty:!!v((t||r).dirtyFields,e),error:v((t||r).errors,e),isValidating:!!v(r.validatingFields,e),isTouched:!!v((t||r).touchedFields,e)}),eS=(e,t,n)=>{let i=(v(l,e,{_f:{}})._f||{}).ref,{ref:a,message:o,type:s,...u}=v(r.errors,e)||{};w(r.errors,e,{...u,...t,ref:i}),M.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&i&&i.focus&&i.focus()},eC=(e,t={})=>{for(let i of e?P(e):b.mount)b.mount.delete(i),b.array.delete(i),t.keepValue||(X(l,i),X(f,i)),t.keepError||X(r.errors,i),t.keepDirty||X(r.dirtyFields,i),t.keepTouched||X(r.touchedFields,i),t.keepIsValidating||X(r.validatingFields,i),n.shouldUnregister||t.keepDefaultValue||X(c,i);M.values.next({values:{...f}}),M.state.next({...r,...t.keepDirty?{isDirty:em()}:{}}),t.keepIsValid||I()},eM=({disabled:e,name:t,field:n,fields:r,value:i})=>{if(y(e)&&x.mount||e){let a=e?void 0:g(i)?el(n?n._f:v(r,t)._f):i;w(f,t,a),q(t,a,!1,!1,!0)}},eP=(e,t={})=>{let r=v(l,e),i=y(t.disabled);return w(l,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),b.mount.add(e),r?eM({field:r,disabled:t.disabled,name:e,value:t.value}):W(e,!0,t.value),{...i?{disabled:t.disabled}:{},...n.progressive?{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:eb,onBlur:eb,ref:i=>{if(i){eP(e,t),r=v(l,e);let n=g(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,a=et(n),o=r._f.refs||[];(a?o.find(e=>e===n):n===r._f.ref)||(w(l,e,{_f:{...r._f,...a?{refs:[...o.filter(en),n,...Array.isArray(v(c,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),W(e,!1,void 0,n))}else(r=v(l,e,{}))._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&!(d(b.array,e)&&x.action)&&b.unMount.add(e)}}},e_=()=>n.shouldFocusError&&R(l,ew,b.mount),eO=(e,t)=>async i=>{let a;i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let o=p(f);if(M.state.next({isSubmitting:!0}),n.resolver){let{errors:e,values:t}=await K();r.errors=e,o=t}else await ei(l);if(X(r.errors,"root"),C(r.errors)){M.state.next({errors:{}});try{await e(o,i)}catch(e){a=e}}else t&&await t({...r.errors},i),e_(),setTimeout(e_);if(M.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:C(r.errors)&&!a,submitCount:r.submitCount+1,errors:r.errors}),a)throw a},eT=(t,n={})=>{let i=t?p(t):c,a=p(i),o=C(t),s=o?c:a;if(n.keepDefaultValues||(c=i),!n.keepValues){if(n.keepDirtyValues)for(let e of b.mount)v(r.dirtyFields,e)?w(s,e,v(f,e)):ex(e,v(s,e));else{if(h&&g(t))for(let e of b.mount){let t=v(l,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}}}}l={}}f=e.shouldUnregister?n.keepDefaultValues?p(c):{}:p(s),M.array.next({values:{...s}}),M.values.next({values:{...s}})}b={mount:n.keepDirtyValues?b.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},x.mount=!S.isValid||!!n.keepIsValid||!!n.keepDirtyValues,x.watch=!!e.shouldUnregister,M.state.next({submitCount:n.keepSubmitCount?r.submitCount:0,isDirty:!o&&(n.keepDirty?r.isDirty:!!(n.keepDefaultValues&&!Q(t,c))),isSubmitted:!!n.keepIsSubmitted&&r.isSubmitted,dirtyFields:o?[]:n.keepDirtyValues?n.keepDefaultValues&&f?ea(c,f):r.dirtyFields:n.keepDefaultValues&&t?ea(c,t):n.keepDirty?r.dirtyFields:{},touchedFields:n.keepTouched?r.touchedFields:{},errors:n.keepErrors?r.errors:{},isSubmitSuccessful:!!n.keepIsSubmitSuccessful&&r.isSubmitSuccessful,isSubmitting:!1})},eA=(e,t)=>eT(Z(e)?e(f):e,t);return{control:{register:eP,unregister:eC,getFieldState:eE,handleSubmit:eO,setError:eS,_executeSchema:K,_getWatch:eg,_getDirty:em,_updateValid:I,_removeUnmounted:()=>{for(let e of b.unMount){let t=v(l,e);t&&(t._f.refs?t._f.refs.every(e=>!en(e)):!en(t._f.ref))&&eC(e)}b.unMount=new Set},_updateFieldArray:(e,t=[],n,i,a=!0,o=!0)=>{if(i&&n){if(x.action=!0,o&&Array.isArray(v(l,e))){let t=n(v(l,e),i.argA,i.argB);a&&w(l,e,t)}if(o&&Array.isArray(v(r.errors,e))){let t=n(v(r.errors,e),i.argA,i.argB);a&&w(r.errors,e,t),eh(r.errors,e)}if(S.touchedFields&&o&&Array.isArray(v(r.touchedFields,e))){let t=n(v(r.touchedFields,e),i.argA,i.argB);a&&w(r.touchedFields,e,t)}S.dirtyFields&&(r.dirtyFields=ea(c,f)),M.state.next({name:e,isDirty:em(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else w(f,e,t)},_updateDisabledField:eM,_getFieldArray:t=>m(v(x.mount?f:c,t,e.shouldUnregister?v(c,t,[]):[])),_reset:eT,_resetDefaultValues:()=>Z(n.defaultValues)&&n.defaultValues().then(e=>{eA(e,n.resetOptions),M.state.next({isLoading:!1})}),_updateFormState:e=>{r={...r,...e}},_disableForm:e=>{y(e)&&(M.state.next({disabled:e}),R(l,(t,n)=>{let r=v(l,n);r&&(t.disabled=r._f.disabled||e,Array.isArray(r._f.refs)&&r._f.refs.forEach(t=>{t.disabled=r._f.disabled||e}))},0,!1))},_subjects:M,_proxyFormState:S,_setErrors:e=>{r.errors=e,M.state.next({errors:r.errors,isValid:!1})},get _fields(){return l},get _formValues(){return f},get _state(){return x},set _state(value){x=value},get _defaultValues(){return c},get _names(){return b},set _names(value){b=value},get _formState(){return r},set _formState(value){r=value},get _options(){return n},set _options(value){n={...n,...value}}},trigger:ej,register:eP,handleSubmit:eO,watch:(e,t)=>Z(e)?M.values.subscribe({next:n=>e(eg(void 0,t),n)}):eg(e,t,!0),setValue:ex,getValues:ek,reset:eA,resetField:(e,t={})=>{v(l,e)&&(g(t.defaultValue)?ex(e,p(v(c,e))):(ex(e,t.defaultValue),w(c,e,p(t.defaultValue))),t.keepTouched||X(r.touchedFields,e),t.keepDirty||(X(r.dirtyFields,e),r.isDirty=t.defaultValue?em(e,p(v(c,e))):em()),!t.keepError&&(X(r.errors,e),S.isValid&&I()),M.state.next({...r}))},clearErrors:e=>{e&&P(e).forEach(e=>X(r.errors,e)),M.state.next({errors:e?r.errors:{}})},unregister:eC,setError:eS,setFocus:(e,t={})=>{let n=v(l,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:eE}}(e),formState:l});let f=t.current.control;return f._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:f._subjects.state,next:e=>{M(e,f._proxyFormState,f._updateFormState,!0)&&c({...f._formState})}}),r.useEffect(()=>f._disableForm(e.disabled),[f,e.disabled]),r.useEffect(()=>{if(f._proxyFormState.isDirty){let e=f._getDirty();e!==l.isDirty&&f._subjects.state.next({isDirty:e})}},[f,l.isDirty]),r.useEffect(()=>{e.values&&!Q(e.values,n.current)?(f._reset(e.values,f._options.resetOptions),n.current=e.values,c(e=>({...e}))):f._resetDefaultValues()},[e.values,f]),r.useEffect(()=>{e.errors&&f._setErrors(e.errors)},[e.errors,f]),r.useEffect(()=>{f._state.mount||(f._updateValid(),f._state.mount=!0),f._state.watch&&(f._state.watch=!1,f._subjects.state.next({...f._formState})),f._removeUnmounted()}),r.useEffect(()=>{e.shouldUnregister&&f._subjects.values.next({values:f._getWatch()})},[e.shouldUnregister,f]),t.current.formState=S(l,f),t.current}},79381:function(e,t,n){"use strict";n.d(t,{J$:function(){return J},ZP:function(){return Q},JG:function(){return B},kY:function(){return K}});var r,i=n(2784),a=n(43100);let o=new WeakMap,l={},s={},u=()=>{},c=u(),d=Object,f=e=>e===c,h=e=>"function"==typeof e,p=(e,t)=>({...e,...t}),m="undefined",g=typeof window!=m,v=typeof document!=m,y=()=>g&&typeof window.requestAnimationFrame!=m,x=(e,t)=>{let n=o.get(e);return[()=>e.get(t)||l,r=>{if(!f(t)){let i=e.get(t);t in s||(s[t]=i),n[5](t,p(i,r),i||l)}},n[6],()=>!f(t)&&t in s?s[t]:e.get(t)||l]},b=new WeakMap,w=0,j=e=>{let t,n;let r=typeof e,i=e&&e.constructor,a=i==Date;if(d(e)!==e||a||i==RegExp)t=a?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(v&&document.addEventListener("visibilitychange",e),E("focus",e),()=>{v&&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)}}},M=!i.useId,P=!g||"Deno"in window,_=e=>y()?window.requestAnimationFrame(e):setTimeout(e,1),O=P?i.useEffect:i.useLayoutEffect,T="undefined"!=typeof navigator&&navigator.connection,A=!P&&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)?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,a=p({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),l=a.populateCache,s=a.rollbackOnError,u=a.optimisticData,d=!1!==a.revalidate,m=e=>"function"==typeof s?s(e):!1!==s,g=a.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(v))}return v(n);async function v(n){let i;let[a]=N(n);if(!a)return;let[s,p]=x(t,a),[v,y,b]=o.get(t),w=v[a],j=()=>d&&(delete b[a],w&&w[0])?w[0](2).then(()=>s().data):s().data;if(e.length<3)return j();let k=r,E=D();y[a]=[E,0];let S=!f(u),C=s(),M=C.data,P=C._c,_=f(P)?M:P;if(S&&p({data:u=h(u)?u(_):u,_c:_}),h(k))try{k=k(_)}catch(e){i=e}if(k&&h(k.then)){if(k=await k.catch(e=>{i=e}),E!==y[a][0]){if(i)throw i;return k}i&&S&&m(i)&&(l=!0,p({data:k=_,_c:c}))}l&&!i&&(h(l)&&(k=l(k,_)),p({data:k,_c:c})),y[a][1]=D();let O=await j();if(p({_c:c}),i){if(g)throw i;return}return l?O:k}}let F=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},z=(e,t)=>{if(!o.has(e)){let n=p(C,t),r={},i=Z.bind(c,e),a=u,l={},s=(e,t)=>{let n=l[e]||[];return l[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},d=(t,n,r)=>{e.set(t,n);let i=l[t];if(i)for(let e of i)e(n,r)},f=()=>{if(!o.has(e)&&(o.set(e,[r,{},{},{},i,d,s]),!P)){let t=n.initFocus(setTimeout.bind(c,F.bind(c,r,0))),i=n.initReconnect(setTimeout.bind(c,F.bind(c,r,1)));a=()=>{t&&t(),i&&i(),o.delete(e)}}};return f(),[e,i,f,a]}return[e,o.get(e)[4]]},[V,B]=z(new Map),I=p({onLoadingSlow:u,onSuccess:u,onError:u,onErrorRetry:(e,t,n,r,i)=>{let a=n.errorRetryCount,o=i.retryCount,l=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;(f(a)||!(o>a))&&setTimeout(r,l,i)},onDiscarded:u,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:A?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:A?5e3:3e3,compare:(e,t)=>j(e)==j(t),isPaused:()=>!1,cache:V,mutate:B,fallback:{}},{isOnline:()=>k,isVisible:()=>{let e=v&&document.visibilityState;return f(e)||"hidden"!==e}}),H=(e,t)=>{let n=p(e,t);if(t){let{use:r,fallback:i}=e,{use:a,fallback:o}=t;r&&a&&(n.use=r.concat(a)),i&&o&&(n.fallback=p(i,o))}return n},U=(0,i.createContext)({}),W=g&&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(I,(0,i.useContext)(U)),Y=q.concat(e=>(t,n,r)=>{let i=n&&((...e)=>{let r=N(t)[0],[,,,i]=o.get(V),a=i[r];return a?(delete i[r],a):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 G={dedupe:!0},J=d.defineProperty(e=>{let{value:t}=e,n=(0,i.useContext)(U),r=h(t),a=(0,i.useMemo)(()=>r?t(n):t,[r,n,t]),o=(0,i.useMemo)(()=>r?a:H(n,a),[r,n,a]),l=a&&a.provider,s=(0,i.useRef)(c);l&&!s.current&&(s.current=z(l(o.cache||V),a));let u=s.current;return u&&(o.cache=u[0],o.mutate=u[1]),O(()=>{if(u)return u[2]&&u[2](),u[3]},[]),(0,i.createElement)(U.Provider,p(e,{value:o}))},"defaultValue",{value:I});var Q=(r=(e,t,n)=>{let{cache:r,compare:l,suspense:s,fallbackData:u,revalidateOnMount:d,revalidateIfStale:m,refreshInterval:g,refreshWhenHidden:v,refreshWhenOffline:y,keepPreviousData:b}=n,[w,j,k]=o.get(r),[E,S]=N(e),C=(0,i.useRef)(!1),T=(0,i.useRef)(!1),A=(0,i.useRef)(E),R=(0,i.useRef)(t),F=(0,i.useRef)(n),z=()=>F.current,V=()=>z().isVisible()&&z().isOnline(),[B,I,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?l(t[r],e[r])||f(e[r])&&l(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()&&!s&&(!!f(m)||m):d),n=t=>{let n=p(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=B(),i=U(),a=n(r),o=r===i?a:n(i),l=a;return[()=>{let e=n(B());return $(e,l)?l:l=e},()=>o]},[r,E]),Y=(0,a.useSyncExternalStore)((0,i.useCallback)(e=>H(E,(t,n)=>{$(n,t)||e()}),[r,E]),K[0],K[1]),J=!C.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,ea=(!Q||!!f(en))&&(J&&!f(d)?d:!z().isPaused()&&(s?!f(et)&&m:f(et)||m)),eo=!!(E&&t&&J&&ea),el=f(Y.isValidating)?eo:Y.isValidating,es=f(Y.isLoading)?eo:Y.isLoading,eu=(0,i.useCallback)(async e=>{let t,r;let i=R.current;if(!E||!i||T.current||z().isPaused())return!1;let a=!0,o=e||{},s=!k[E]||!o.dedupe,u=()=>M?!T.current&&E===A.current&&C.current:E===A.current,d={isValidating:!1,isLoading:!1},p=()=>{I(d)},m=()=>{let e=k[E];e&&e[1]===r&&delete k[E]},g={isValidating:!0};f(B().data)&&(g.isLoading=!0);try{if(s&&(I(g),n.loadingTimeout&&f(B().data)&&setTimeout(()=>{a&&u()&&z().onLoadingSlow(E,n)},n.loadingTimeout),k[E]=[i(S),D()]),[t,r]=k[E],t=await t,s&&setTimeout(m,n.dedupingInterval),!k[E]||k[E][1]!==r)return s&&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(),s&&u()&&z().onDiscarded(E),!1;let o=B().data;d.data=l(o,t)?o:t,s&&u()&&z().onSuccess(t,E,n)}catch(n){m();let e=z(),{shouldRetryOnError:t}=e;!e.isPaused()&&(d.error=n,s&&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:(o.retryCount||0)+1,dedupe:!0})))}return a=!1,p(),!0},[E,r]),ec=(0,i.useCallback)((...e)=>Z(r,A.current,...e),[]);if(O(()=>{R.current=t,F.current=n,f(ee)||(er.current=ee)}),O(()=>{if(!E)return;let e=eu.bind(c,G),t=0,n=X(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 T.current=!1,A.current=E,C.current=!0,I({_k:S}),ea&&(f(et)||P?e():_(e)),()=>{T.current=!0,n()}},[E]),O(()=>{let e;function t(){let t=h(g)?g(et):g;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!B().error&&(v||z().isVisible())&&(y||z().isOnline())?eu(G).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[g,v,y,E]),(0,i.useDebugValue)(ei),s&&f(et)&&E){if(!M&&P)throw Error("Fallback data is required when using suspense in SSR.");throw R.current=t,F.current=n,T.current=!1,f(en)?eu(G):en}return{mutate:ec,get data(){return W.data=!0,ei},get error(){return W.error=!0,en},get isValidating(){return W.isValidating=!0,el},get isLoading(){return W.isLoading=!0,es}}},function(...e){let t=K(),[n,i,a]=$(e),o=H(t,a),l=r,{use:s}=o,u=(s||[]).concat(Y);for(let e=u.length;e--;)l=u[e](l);return l(n,i||o.fetcher||null,o)})},22970:function(e,t,n){"use strict";n.d(t,{CR:function(){return l},Jh:function(){return o},_T:function(){return i},ev:function(){return s},mG:function(){return a},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 a(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(e){try{s(r.next(e))}catch(e){a(e)}}function l(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,l)}s((r=r.apply(e,t||[])).next())})}function o(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){return function(l){if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&l[0]?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===l[0]||2===l[0])){o=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function s(e,t,n){if(n||2==arguments.length)for(var r,i=0,a=t.length;in.call(this,t,e,this),e);return void 0===n&&(n=this.getDefault()),n}_validate(e,t={},n){let{sync:r,path:i,from:a=[],originalValue:o=e,strict:l=this.spec.strict,abortEarly:s=this.spec.abortEarly}=t,u=e;l||(u=this._cast(u,z({assert:!1},t)));let c={value:u,path:i,options:t,originalValue:o,schema:this,label:this.spec.label,sync:r,from:a},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:s},e=>{if(e)return void n(e,u);O({tests:this.tests.concat(f),args:c,path:i,sync:r,value:u,endEarly:s},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(M.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(M.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=L(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 R(e));return r.forEach(e=>{e.isSibling&&n.deps.push(e.key)}),n.conditions.push(new k(r,t)),n}typeError(e){let t=this.clone();return t._typeError=L({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=L({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=L({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;return{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)}}}for(let e of(V.prototype.__isYupSchema__=!0,["validate","validateSync"]))V.prototype[`${e}At`]=function(t,n,r={}){let{parent:i,parentPath:a,schema:o}=function(e,t,n,r=n){let i,a,o;return t?((0,A.forEach)(t,(l,s,u)=>{let c=s?Z(l):l;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: ${l}, 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: ${o} which is a type: "${e._type}")`);i=n,n=n&&n[c],e=e.fields[c]}a=c,o=s?"["+l+"]":"."+l}),{schema:e,parent:i,parentPath:a}):{parent:i,parentPath:t,schema:e}}(this,t,n,r.context);return o[e](i&&i[a],z({},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 B=e=>null==e;class I extends V{constructor(){super({type:"boolean"}),this.withMutation(()=>{this.transform(function(e){if(!this.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e})})}_typeCheck(e){return e instanceof Boolean&&(e=e.valueOf()),"boolean"==typeof e}isTrue(e=m.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test:e=>B(e)||!0===e})}isFalse(e=m.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test:e=>B(e)||!1===e})}}I.prototype;let H=/^((([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,U=/^((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,W=/^(?:[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,q=e=>B(e)||e===e.trim(),$=({}).toString();function K(){return new Y}class Y 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===$?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 B(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 B(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 B(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=>B(t)||""===t&&i||-1!==t.search(e)})}email(e=f.email){return this.matches(H,{name:"email",message:e,excludeEmptyString:!0})}url(e=f.url){return this.matches(U,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=f.uuid){return this.matches(W,{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:q})}lowercase(e=f.lowercase){return this.transform(e=>B(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>B(e)||e===e.toLowerCase()})}uppercase(e=f.uppercase){return this.transform(e=>B(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>B(e)||e===e.toUpperCase()})}}K.prototype=Y.prototype;let X=e=>e!=+e;function G(){return new J}class J 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&&!X(e)}min(e,t=h.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return B(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 B(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 B(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=>B(e)||Number.isInteger(e)})}truncate(){return this.transform(e=>B(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=>B(t)?t:Math[e](t))}}G.prototype=J.prototype;var Q=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let ee=new Date(""),et=e=>"[object Date]"===Object.prototype.toString.call(e);function en(){return new er}class er 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=Q.exec(e)){for(var a,o=0;a=r[o];++o)n[a]=+n[a]||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))?ee:new Date(e)})})}_typeCheck(e){return et(e)&&!isNaN(e.getTime())}prepareParam(e,t){let n;if(R.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 B(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 B(e)||e<=this.resolve(n)}})}}er.INVALID_DATE=ee,en.prototype=er.prototype,en.INVALID_DATE=ee;var ei=n(57370),ea=n.n(ei),eo=n(96009),el=n.n(eo),es=n(19950),eu=n.n(es),ec=n(95159),ed=n.n(ec);function ef(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 eh(e){return(t,n)=>ef(e,t)-ef(e,n)}function ep(){return(ep=Object.assign||function(e){for(var t=1;t"[object Object]"===Object.prototype.toString.call(e),eg=eh([]);class ev extends V{constructor(e){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=eg,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 em(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,a=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,o=this._nodes.concat(Object.keys(r).filter(e=>-1===this._nodes.indexOf(e))),l={},s=ep({},t,{parent:l,__validating:t.__validating||!1}),u=!1;for(let e of o){let n=i[e],o=w()(r,e);if(n){let i;let a=r[e];s.path=(t.path?`${t.path}.`:"")+e;let o="spec"in(n=n.resolve({value:a,context:t.context,parent:l}))?n.spec:void 0,c=null==o?void 0:o.strict;if(null==o?void 0:o.strip){u=u||e in r;continue}void 0!==(i=t.__validating&&c?r[e]:n.cast(r[e],s))&&(l[e]=i)}else o&&!a&&(l[e]=r[e]);l[e]!==r[e]&&(u=!0)}return u?l:r}_validate(e,t={},n){let r=[],{sync:i,from:a=[],originalValue:o=e,abortEarly:l=this.spec.abortEarly,recursive:s=this.spec.recursive}=t;a=[{schema:this,value:o},...a],t.__validating=!0,t.originalValue=o,t.from=a,super._validate(e,t,(e,u)=>{if(e){if(!M.isError(e)||l)return void n(e,u);r.push(e)}if(!s||!em(u)){n(r[0]||null,u);return}o=o||u,O({sync:i,tests:this._nodes.map(e=>(n,r)=>{let i=-1===e.indexOf(".")?(t.path?`${t.path}.`:"")+e:`${t.path||""}["${e}"]`,l=this.fields[e];if(l&&"validate"in l){l.validate(u[e],ep({},t,{path:i,from:a,strict:!0,parent:u,originalValue:o[e]}),r);return}r(null)}),value:u,errors:r,endEarly:l,sort:this._sortErrors,path:t.path},n)})}clone(e){let t=super.clone(e);return t.fields=ep({},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=eh(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 a(e,t){let a=(0,A.split)(e)[0];r.add(a),i.has(`${t}-${a}`)||n.push([t,a])}for(let t in e)if(w()(e,t)){let n=e[t];r.add(t),R.isRef(n)&&n.isSibling?a(n.path,t):j(n)&&"deps"in n&&n.deps.forEach(e=>a(e,t))}return ed().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 a=i;return w()(i,e)&&(a=ep({},i),n||delete a[e],a[t]=r(i)),a})}noUnknown(e=!0,t=g.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=g.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>t&&eu()(t,(t,n)=>e(n)))}camelCase(){return this.transformKeys(el())}snakeCase(){return this.transformKeys(ea())}constantCase(){return this.transformKeys(e=>ea()(e).toUpperCase())}describe(){let e=super.describe();return e.fields=P()(this.fields,e=>e.describe()),e}}function ey(e){return new ev(e)}function ex(){return(ex=Object.assign||function(e){for(var t=1;t{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 n=super._cast(e,t);if(!this._typeCheck(n)||!this.innerType)return n;let r=!1,i=n.map((e,n)=>{let i=this.innerType.cast(e,ex({},t,{path:`${t.path||""}[${n}]`}));return i!==e&&(r=!0),i});return r?i:n}_validate(e,t={},n){var r,i;let a=[],o=t.sync,l=t.path,s=this.innerType,u=null!=(r=t.abortEarly)?r:this.spec.abortEarly,c=null!=(i=t.recursive)?i:this.spec.recursive,d=null!=t.originalValue?t.originalValue:e;super._validate(e,t,(e,r)=>{if(e){if(!M.isError(e)||u)return void n(e,r);a.push(e)}if(!c||!s||!this._typeCheck(r)){n(a[0]||null,r);return}d=d||r;let i=Array(r.length);for(let e=0;es.validate(n,o,t)}O({sync:o,path:l,value:r,errors:a,endEarly:u,tests:i},n)})}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(!j(e))throw TypeError("`array.of()` sub-schema must be a valid yup schema not: "+c(e));return t.innerType=e,t}length(e,t=v.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return B(t)||t.length===this.resolve(e)}})}min(e,t){return t=t||v.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return B(t)||t.length>=this.resolve(e)}})}max(e,t){return t=t||v.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return B(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,n,r)=>!e(t,n,r):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)}}eb.prototype},44868:function(e,t,n){"use strict";var r,i,a=Object.create,o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s=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 s(t))c.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=l(t,i))||r.enumerable});return e},f={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(f,{Animated:()=>x,AnimatedArray:()=>_,AnimatedObject:()=>M,AnimatedString:()=>k,AnimatedValue:()=>w,createHost:()=>z,getAnimated:()=>g,getAnimatedType:()=>P,getPayload:()=>y,isAnimated:()=>m,setAnimated:()=>v}),e.exports=d(o({},"__esModule",{value:!0}),f);var h=n(6901),p=Symbol.for("Animated:node"),m=e=>!!e&&e[p]===e,g=e=>e&&e[p],v=(e,t)=>(0,h.defineHidden)(e,p,t),y=e=>e&&e[p]&&e[p].getPayload(),x=class{constructor(){v(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),C={dependencies:null},M=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){C.dependencies&&(0,S.hasFluidValue)(e)&&C.dependencies.add(e);let t=y(e);t&&(0,S.each)(t,e=>this.add(e))}},_=class extends M{constructor(e){super(e)}static create(e){return new _(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(O)),!0)}};function O(e){return((0,E.isAnimatedString)(e)?k:w).create(e)}var T=n(6901);function P(e){let t=g(e);return t?t.constructor:T.is.arr(e)?_:(0,T.isAnimatedString)(e)?k:w}var A=n(6901),N=(i=null!=(r=n(2784))?a(u(r)):{},d(r&&r.__esModule?i:o(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 a;let o;let l=(0,R.useRef)(null),s=n&&(0,R.useCallback)(e=>{l.current=(i&&(D.is.fun(i)?i(e):i.current=e),e)},[i]),[u,c]=(a=r,o=new Set,C.dependencies=o,a.style&&(a={...a,style:t.createAnimatedStyle(a.style)}),a=new M(a),C.dependencies=null,[a,o]),d=(0,D.useForceUpdate)(),f=()=>{let e=l.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:s})})},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 M(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=e=>{let t=V(e)||"Anonymous";return(e=A.is.str(e)?a[e]||(a[e]=L(e,i)):e[F]||(e[F]=L(e,i))).displayName=`Animated(${t})`,e};return(0,A.eachProp)(e,(t,n)=>{A.is.arr(e)&&(n=V(t)),a[n]=a(t)}),{animated:a}},V=e=>A.is.str(e)?e:e&&A.is.str(e.displayName)?e.displayName:A.is.fun(e)&&e.name||null},22360:function(e,t,n){"use strict";var r,i,a=Object.create,o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s=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 s(t))c.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=l(t,i))||r.enumerable});return e},f=(e,t,n)=>(n=null!=e?a(u(e)):{},d(!t&&e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)),h={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(h,{BailSignal:()=>J,Controller:()=>ej,FrameValue:()=>ei,Globals:()=>ts.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:()=>tl,to:()=>to,update:()=>tu,useChain:()=>T,useInView:()=>e3,useIsomorphicLayoutEffect:()=>tc.useIsomorphicLayoutEffect,useReducedMotion:()=>tc.useReducedMotion,useResize:()=>e0,useScroll:()=>eJ,useSpring:()=>eF,useSpringRef:()=>eB,useSpringValue:()=>eH,useSprings:()=>eZ,useTrail:()=>eW,useTransition:()=>eY}),e.exports=d(o({},"__esModule",{value:!0}),h);var p=n(6901),m=n(6901);function g(e,...t){return m.is.fun(e)?e(...t):e}var v=(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 C(e){for(let t in e)return!0;return!1}function M(e){return m.is.fun(e)||m.is.arr(e)&&m.is.obj(e[0])}function _(e,t){e.ref?.delete(e),t?.delete(e)}function O(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 a=e.current;if(a.length){let o=n*t[i];isNaN(o)?o=r:r=o,(0,p.each)(a,e=>{(0,p.each)(e.queue,e=>{let t=e.delay;e.delay=e=>o+g(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 P=n(6901),A=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 B=[],I=class{constructor(){this.changed=!1,this.values=B,this.toValues=null,this.fromValues=B,this.config=new z,this.immediate=!1}},H=n(6901);function U(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((o,l)=>{let s,u,c=v(n.cancel??r?.cancel,t);if(c)h();else{H.is.und(n.pause)||(i.paused=v(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||v(e,t)),s=g(n.delay||0,t),e?(i.resumeQueue.add(f),a.pause()):(a.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),s=u.time-H.raf.now()}function f(){s>0&&!H.Globals.skipAnimation?(i.delayed=!0,u=H.raf.setTimeout(h,s),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{a.start({...n,callId:e,cancel:c},o)}catch(e){l(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 X(e,t,n,r){let{callId:i,parentId:a,onRest:o}=t,{asyncTo:l,promise:s}=n;return a||e!==l||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 a=new J,o=new Q;return(async()=>{if(W.Globals.skipAnimation)throw G(n),o.result=K(r,!1),d(o),o;h(a);let l=W.is.obj(e)?{...e}:{...t,to:e};l.parentId=i,(0,W.eachProp)(u,(e,t)=>{W.is.und(l[t])&&(l[t]=e)});let s=await r.start(l);return h(a),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),s})()},m;if(W.Globals.skipAnimation)return G(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=a,n.asyncTo=a?l:void 0,n.promise=a?s:void 0)}return W.is.fun(o)&&W.raf.batchedUpdates(()=>{o(m,r,r.item)}),m})():s}function G(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})}},ea=Symbol.for("SpringPhase"),eo=e=>(1&e[ea])>0,el=e=>(2&e[ea])>0,es=e=>(4&e[ea])>0,eu=(e,t)=>t?e[ea]|=3:e[ea]&=-3,ec=(e,t)=>t?e[ea]|=4:e[ea]&=-5,ed=class extends ei{constructor(e,t){if(super(),this.animation=new I,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!(el(this)||this._state.asyncTo)||es(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 eo(this)}get isAnimating(){return el(this)}get isPaused(){return es(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:a}=r,o=(0,D.getPayload)(r.to);!o&&(0,R.hasFluidValue)(r.to)&&(i=(0,R.toArray)((0,R.getFluidValue)(r.to))),r.values.forEach((l,s)=>{if(l.done)return;let u=l.constructor==D.AnimatedString?1:o?o[s].lastPosition:i[s],c=r.immediate,d=u;if(!c){if(d=l.lastPosition,a.tension<=0){l.done=!0;return}let t=l.elapsedTime+=e,n=r.fromValues[s],i=null!=l.v0?l.v0:l.v0=R.is.arr(a.velocity)?a.velocity[s]:a.velocity,o,f=a.precision||(n==u?.005:Math.min(1,.001*Math.abs(u-n)));if(R.is.und(a.duration)){if(a.decay){let e=!0===a.decay?.998:a.decay,r=Math.exp(-(1-e)*t);d=n+i/(1-e)*(1-r),c=Math.abs(l.lastPosition-d)<=f,o=i*r}else{o=null==l.lastVelocity?i:l.lastVelocity;let t=a.restVelocity||f/10,r=a.clamp?0:a.bounce,s=!R.is.und(r),h=n==u?l.v0>0:nt)&&(c=Math.abs(u-d)<=f));++e){s&&(d==u||d>u==h)&&(o=-o*r,d=u);let e=(-(1e-6*a.tension)*(d-u)+-(.001*a.friction)*o)/a.mass;o+=1*e,d+=1*o}}}else{let r=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,l.durationProgress>0&&(l.elapsedTime=a.duration*l.durationProgress,t=l.elapsedTime+=e)),r=(r=(a.progress||0)+t/this._memoizedDuration)>1?1:r<0?0:r,l.durationProgress=r),o=((d=n+a.easing(r)*(u-n))-l.lastPosition)/e,c=1==r}l.lastVelocity=o,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}o&&!o[s].done&&(c=!1),c?l.done=!0:t=!1,l.setValue(d,a.round)&&(n=!0)});let l=(0,D.getAnimated)(this),s=l.getValue();if(t){let e=(0,R.getFluidValue)(r.to);(s!==e||n)&&!a.decay?(l.setValue(e),this._onChange(e)):n&&a.decay&&this._onChange(s),this._stop()}else n&&this._onChange(s)}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(el(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()),G(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)||M(n))&&(n=void 0),null==(r=R.is.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return eo(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)),ev(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 a=this._state;return U(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{es(this)||(ec(this,!0),(0,R.flushCalls)(a.pauseQueue),ey(this,"onPause",K(this,ef(this,this.animation.to)),this))},resume:()=>{es(this)&&(ec(this,!1),el(this)&&this._resume(),(0,R.flushCalls)(a.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:a,defaultProps:o,animation:l}=this,{to:s,from:u}=l,{to:c=s,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&&(l.from=d),d=(0,R.getFluidValue)(d);let h=!(0,R.isEqual)(c,s);h&&this._focus(c);let p=M(t.to),{config:m}=l,{decay:y,velocity:x}=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:a}=e;L.is.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*a,e.friction=4*Math.PI*i*a/r)}(m,g(t.config,a),t.config!==o.config?g(o.config,a):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)&&v(t.reset,a),j=w?d:this.get(),k=S(c),E=R.is.num(k)||R.is.arr(k)||(0,R.isAnimatedString)(k),C=!p&&(!E||v(o.immediate||t.immediate,a));if(h){let e=(0,D.getAnimatedType)(c);if(e!==b.constructor){if(C)b=this._set(k);else throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let _=b.constructor,O=(0,R.hasFluidValue)(c),T=!1;if(!O){let e=w||!eo(this)&&f;(h||e)&&(O=!(T=(0,R.isEqual)(S(j),k))),((0,R.isEqual)(l.immediate,C)||C)&&(0,R.isEqual)(m.decay,y)&&(0,R.isEqual)(m.velocity,x)||(O=!0)}if(T&&el(this)&&(l.changed&&!w?O=!0:O||this._stop(s)),!p&&((O||(0,R.hasFluidValue)(s))&&(l.values=b.getPayload(),l.toValues=(0,R.hasFluidValue)(c)?null:_==D.AnimatedString?[1]:(0,R.toArray)(k)),l.immediate==C||(l.immediate=C,C||w||this._set(s)),O)){let{onRest:e}=l;(0,R.each)(eg,e=>ev(this,t,e));let r=K(this,ef(this,s));(0,R.flushCalls)(this._pendingCalls,r),this._pendingCalls.add(n),l.changed&&R.raf.batchedUpdates(()=>{l.changed=!w,e?.(r,this),w?g(o.onRest,r):l.onStart?.(r,this)})}w&&this._set(j),p?n(X(t.to,t,this._state,this)):O?this._start():el(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(),g(this.animation.onChange,e,this)),g(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)),el(this)||(eu(this,!0),es(this)||this._resume())}_resume(){R.Globals.skipAnimation?this.finish():R.frameLoop.start(this)}_stop(e,t){if(el(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=g(t);if(r){let i=!0!==r&&E(r),a=(i||e).reverse,o=!i||i.reset;return ep({...e,loop:t,default:!1,pause:void 0,to:!a||M(n)?n:void 0,from:o?e.from:void 0,reset:o,...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 eg=["onStart","onRest","onChange","onPause","onResume"];function ev(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):(eO(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 G(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 a=!r&&this._started,o=i||a&&n.size?this.get():null;i&&t.size&&(0,ex.flush)(t,([e,t])=>{t.value=o,e(t,this,this._item)}),a&&(this._started=!1,(0,ex.flush)(n,([e,t])=>{t.value=o,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:a,loop:o,onRest:l,onResolve:s}=t,u=ex.is.obj(t.default)&&t.default;o&&(t.loop=!1),!1===i&&(t.to=null),!1===a&&(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?(G(d,e._lastAsyncId),n(Y(e))):(t.onRest=l,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(o&&p.finished&&!(n&&p.noop)){let n=eh(t,o,i);if(n)return eO(e,[n]),eE(e,n,!0)}return s&&ex.raf.batchedUpdates(()=>s(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}),e_(n,e,e=>eM(e))}),eC(e,n),n}function eC(e,t){(0,ex.eachProp)(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,(0,ex.addFluidObserver)(t,e))})}function eM(e,t){let n=new ed;return n.key=e,t&&(0,ex.addFluidObserver)(n,t),n}function e_(e,t,n){t.keys&&(0,ex.each)(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function eO(e,t){(0,ex.each)(t,t=>{e_(e.springs,t,t=>eM(t,e))})}var eT=f(n(2784)),eP=n(2784),eA=n(6901),eN=({children:e,...t})=>{let n=(0,eP.useContext)(eR),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=(0,eA.useMemoOne)(()=>({pause:r,immediate:i}),[r,i]);let{Provider:a}=eR;return eT.createElement(a,{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 a=n(t,e,i);a&&r.push(e.start(a))}}),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,A.useMemo)(()=>r||3==arguments.length?eL():void 0,[]),a=(0,A.useRef)(0),o=(0,N.useForceUpdate)(),l=(0,A.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=eS(e,t);return!(a.current>0)||l.queue.length||Object.keys(n).some(t=>!e.springs[t])?new Promise(r=>{eC(e,n),l.queue.push(()=>{r(ek(e,t))}),o()}):ek(e,t)}}),[]),s=(0,A.useRef)([...l.ctrls]),u=[],c=(0,N.usePrev)(e)||0;function d(e,n){for(let i=e;i{(0,N.each)(s.current.slice(e,c),e=>{_(e,i),e.stop(!0)}),s.current.length=e,d(c,e)},[e]),(0,A.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=s.current.map((e,t)=>eS(e,u[t])),h=(0,A.useContext)(eN),p=(0,N.usePrev)(h),m=h!==p&&C(h);(0,N.useIsomorphicLayoutEffect)(()=>{a.current++,l.ctrls=s.current;let{queue:e}=l;e.length&&(l.queue=[],(0,N.each)(e,e=>e())),(0,N.each)(s.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(O(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),(0,N.useOnce)(()=>()=>{(0,N.each)(l.ctrls,e=>e.stop(!0))});let g=f.map(e=>({...e}));return i?[g,i]:g}function eF(e,t){let n=P.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(),eB=()=>(0,ez.useState)(eV)[0],eI=n(6901),eH=(e,t)=>{let n=(0,eI.useConstant)(()=>new ed(e,t));return(0,eI.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,a,o=eZ(e,(e,n)=>{let o=r?r(e,n):t;return a=o.ref,i=i&&o.reverse,o},n||[{}]);if((0,eU.useIsomorphicLayoutEffect)(()=>{(0,eU.each)(o[1].current,(e,t)=>{let n=o[1].current[t+(i?1:-1)];if(O(e,a),e.ref){n&&e.update({to:n.springs});return}n?e.start({to:n.springs}):e.start()})},n),r||3==arguments.length){let e=a??o[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}},o}return o[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:a,trail:o=0,expires:l=!0,exitBeforeEnter:s=!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),v=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),_(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 eK.is.und(n)?e:eK.is.fun(n)?e.map(n):(0,eK.toArray)(n)}(h,r?r():t,v),x=i&&m.current||[];(0,eK.useIsomorphicLayoutEffect)(()=>(0,eK.each)(x,({ctrl:e,item:t,key:n})=>{_(e,f),g(u,t,n)}));let b=[];if(v&&(0,eK.each)(v,(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=v[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}eK.is.fun(a)&&p.sort((e,t)=>a(e.item,t.item));let j=-o,k=(0,eK.useForceUpdate)(),S=w(t),M=new Map,T=(0,e$.useRef)(new Map),P=(0,e$.useRef)(!1);(0,eK.each)(p,(e,n)=>{let i=e.key,a=e.phase,u=r?r():t,f,h,p=g(u.delay||0,i);if("mount"==a)f=u.enter,h="enter";else{let e=0>y.indexOf(i);if("leave"!=a){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=g(f,e.item,n),!(f=eK.is.obj(f)?E(f):{to:f}).config){let t=d||S.config;f.config=g(t,e.item,n,h)}j+=o;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,a=eK.is.und(i.initial)||v?i.from:i.initial;x.from=g(a,e.item,n)}let{onResolve:b}=x;x.onResolve=e=>{g(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=g(l,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),s&&(P.current=!0),k())}};let w=eS(e.ctrl,x);"leave"===h&&s?T.current.set(e,{phase:h,springs:w,payload:x}):M.set(e,{phase:h,springs:w,payload:x})});let A=(0,e$.useContext)(eN),N=(0,eK.usePrev)(A),R=A!==N&&C(A);(0,eK.useIsomorphicLayoutEffect)(()=>{R&&(0,eK.each)(p,e=>{e.ctrl.start({default:A})})},[A]),(0,eK.each)(M,(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:M,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),R&&"enter"==e&&r.start({default:A}),t&&(O(r,t.ref),(r.ref||f)&&!P.current?r.update(t):(r.start(t),P.current&&(P.current=!1)))})},i?void 0:n);let D=e=>eq.createElement(eq.Fragment,null,p.map((t,n)=>{let{springs:r}=M.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 eX=1,eG=n(6901),eJ=({container:e,...t}={})=>{let[n,r]=eF(()=>({scrollX:0,scrollY:0,scrollXProgress:0,scrollYProgress:0,...t}),[]);return(0,eG.useIsomorphicLayoutEffect)(()=>{let t=(0,eG.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,eG.each)(Object.values(n),e=>e.stop()),t()}},[]),n},eQ=n(6901),e0=({container:e,...t})=>{let[n,r]=eF(()=>({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)(),a=e2.is.fun(e)&&e,{to:o={},from:l={},...s}=a?a():{},u=a?t:e,[c,d]=eF(()=>({from:l,...s}),[]);return(0,e2.useIsomorphicLayoutEffect)(()=>{let e=i.current,{root:t,once:a,amount:s="any",...c}=u??{};if(!e||a&&n||typeof IntersectionObserver>"u")return;let f=new WeakMap,h=()=>(o&&d.start(o),r(!0),a?void 0:()=>{l&&d.start(l),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 s||Array.isArray(s)?s:e4[s],...c});return p.observe(e),()=>p.unobserve(e)},[u]),a?[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)&&ta(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()),ta(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(),ta(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 ta(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 to=(e,...t)=>new tn(e,t),tl=(e,...t)=>((0,e9.deprecateInterpolate)(),new tn(e,t)),ts=n(6901);ts.Globals.assign({createStringInterpolator:ts.createStringInterpolator,to:(e,t)=>new tn(e,t)});var tu=ts.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,a=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,l=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},s={};l(s,{FluidValue:()=>eP,Globals:()=>u,addFluidObserver:()=>eN,callFluidObserver:()=>eO,callFluidObservers:()=>eT,clamp:()=>Q,colorToRgba:()=>ey,colors:()=>ee,createInterpolator:()=>ex,createStringInterpolator:()=>eW,defineHidden:()=>O,deprecateDirectCall:()=>eG,deprecateInterpolate:()=>eY,each:()=>A,eachProp:()=>N,easings:()=>ek,flush:()=>D,flushCalls:()=>F,frameLoop:()=>K,getFluidObservers:()=>e_,getFluidValue:()=>eM,hasFluidValue:()=>eC,hex3:()=>es,hex4:()=>eu,hex6:()=>ec,hex8:()=>ed,hsl:()=>eo,hsla:()=>el,is:()=>T,isAnimatedString:()=>eJ,isEqual:()=>P,isSSR:()=>z,noop:()=>_,onResize:()=>e6,onScroll:()=>ti,once:()=>e$,prefix:()=>eq,raf:()=>d,removeFluidObserver:()=>eR,rgb:()=>ei,rgba:()=>ea,setFluidGetter:()=>eA,toArray:()=>R,useConstant:()=>to,useForceUpdate:()=>tf,useIsomorphicLayoutEffect:()=>tc,useMemoOne:()=>tp,useOnce:()=>tg,usePrev:()=>tx,useReducedMotion:()=>tw}),e.exports=((e,t,n,l)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of a(t))o.call(e,n)||void 0===n||r(e,n,{get:()=>t[n],enumerable:!(l=i(t,n))||l.enumerable});return e})(r({},"__esModule",{value:!0}),s);var u={};l(u,{assign:()=>H,colors:()=>V,createStringInterpolator:()=>L,skipAnimation:()=>B,to:()=>Z,willAdvance:()=>I});var c=C(),d=e=>j(e,c),f=C();d.write=e=>j(e,f);var h=C();d.onStart=e=>j(e,h);var p=C();d.onFrame=e=>j(e,p);var m=C();d.onFinish=e=>j(e,m);var g=[];d.setTimeout=(e,t)=>{let n=d.now()+t,r=()=>{let e=g.findIndex(e=>e.cancel==r);~e&&g.splice(e,1),b-=~e?1:0},i={time:n,handler:e,cancel:r};return g.splice(v(n),0,i),b+=1,k(),i};var v=e=>~(~g.findIndex(t=>t.time>e)||~g.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=v(x=d.now());if(t&&(M(g.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 C(){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,M(t,t=>t(n)&&e.add(t)),b+=e.size,t=e)}}}function M(e,t){e.forEach(e=>{try{t(e)}catch(e){d.catch(e)}})}function _(){}var O=(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 P(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(),A(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,B=!1,I=_,H=e=>{e.to&&(Z=e.to),e.now&&(d.now=e.now),void 0!==e.colors&&(V=e.colors),null!=e.skipAnimation&&(B=e.skipAnimation),e.createStringInterpolator&&(L=e.createStringInterpolator),e.requestAnimationFrame&&d.use(e.requestAnimationFrame),e.batchedUpdates&&(d.batchedUpdates=e.batchedUpdates),e.willAdvance&&(I=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)):(X(e),d(J))},advance:J,sort(e){if($)d.onFrame(()=>K.sort(e));else{let t=W.indexOf(e);~t&&(W.splice(t,1),G(e))}},clear(){W=[],U.clear()}};function Y(){U.forEach(X),U.clear(),d(J)}function X(e){W.includes(e)||G(e)}function G(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)),ea=RegExp("rgba"+er(et,et,et,et)),eo=RegExp("hsl"+er(et,en,en)),el=RegExp("hsla"+er(et,en,en,et)),es=/^#([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 eg(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ev(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=ea.exec(e))?(ep(t[1])<<24|ep(t[2])<<16|ep(t[3])<<8|eg(t[4]))>>>0:(t=es.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=eo.exec(e))?(255|eh(em(t[1]),ev(t[2]),ev(t[3])))>>>0:(t=el.exec(e))?(eh(em(t[1]),ev(t[2]),ev(t[3]))|eg(t[4]))>>>0:null;if(null===n)return e;let r=(4278190080&(n=n||0))>>>24,i=(16711680&n)>>>16,a=(65280&n)>>>8,o=(255&n)/255;return`rgba(${r}, ${i}, ${a}, ${o})`}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],a=e.extrapolateLeft||e.extrapolate||"extend",o=e.extrapolateRight||e.extrapolate||"extend",l=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,a,o,l,s){let u=s?s(e):e;if(un){if("identity"===l)return u;"clamp"===l&&(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=a(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],l,a,o,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"),eC=e=>!!(e&&e[eE]),eM=e=>e&&e[eE]?e[eE]():e,e_=e=>e[eS]||null;function eO(e,t){e.eventObserved?e.eventObserved(t):e(t)}function eT(e,t){let n=e[eS];n&&n.forEach(e=>{eO(e,t)})}var eP=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");eA(this,e)}},eA=(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,eB=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,eI=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&&eB.test(n)?eI(n):n||e},eH=e=>{let t=eB.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=>eM(e).replace(eB,eI).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=>ex({...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 eX=e$(console.warn);function eG(){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 eJ(e){return T.str(e)&&("#"==e[0]||/\d/.test(e)||!z()&&eB.test(e)||e in(V||{}))}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)?.())}},ta=n(2784);function to(e){let t=(0,ta.useRef)(null);return null===t.current&&(t.current=e()),t.current}var tl=n(2784),ts=n(2784),tu=n(2784),tc=z()?tu.useEffect:tu.useLayoutEffect,td=()=>{let e=(0,ts.useRef)(!1);return tc(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function tf(){let e=(0,tl.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,a=i;return a?t&&a.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n{r.current=a,i==n&&(n.inputs=n.result=void 0)},[a]),a.result}var tm=n(2784),tg=e=>(0,tm.useEffect)(e,tv),tv=[],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,a={};((e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})})(a,{Any:()=>o}),e.exports=((e,a,o,l)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let o of r(a))i.call(e,o)||void 0===o||t(e,o,{get:()=>a[o],enumerable:!(l=n(a,o))||l.enumerable});return e})(t({},"__esModule",{value:!0}),a);var o=class{}},96721:function(e,t,n){"use strict";var r,i,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))s.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=o(t,i))||r.enumerable});return e},c={};((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(c,{a:()=>O,animated:()=>O}),e.exports=u(a({},"__esModule",{value:!0}),c);var d=n(99550),f=n(28316),h=n(6901),p=n(25447),m=/^--/,g={},v={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"];v=Object.keys(v).reduce((e,t)=>(x.forEach(n=>e[y(n,t)]=e[t]),e),v);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,C=(e,t)=>w.is.arr(e)?e.every(e=>C(e,t)):w.is.num(e)?e===t:parseFloat(e)===t,M=class extends b.AnimatedObject{constructor({x:e,y:t,z:n,...r}){let i=[],a=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),a.push(e=>[`translate3d(${e.map(e=>S(e,"px")).join(",")})`,C(e,0)])),(0,w.eachProp)(r,(e,t)=>{if("transform"===t)i.push([e||""]),a.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)),a.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${S(i,n)})`,C(i,0)]:e=>[`${t}(${e.map(e=>S(e,n)).join(",")})`,C(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new _(i,a)),super(r)}},_=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]),[a,o]=this.transforms[r](w.is.arr(i)?i:n.map(w.getFluidValue));e+=" "+a,t=t&&o}),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 O=(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:a,scrollLeft:o,viewBox:l,...s}=t,u=Object.values(s),c=Object.keys(s).map(t=>n||e.hasAttribute(t)?t:g[t]||(g[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)||v.hasOwnProperty(t)&&v[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!==a&&(e.scrollTop=a),void 0!==o&&(e.scrollLeft=o),void 0!==l&&e.setAttribute("viewBox",l)},createAnimatedStyle:e=>new M(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 a;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:o,defaultVariants:l}=t,s=Object.keys(o).map(e=>{let t=null==n?void 0:n[e],i=null==l?void 0:l[e];if(null===t)return null;let a=r(t)||r(i);return o[e][a]}),u=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return i(e,s,null==t?void 0:null===(a=t.compoundVariants)||void 0===a?void 0:a.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({...l,...u}[t]):({...l,...u})[t]===n})?[...e,n,r]:e},[]),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),a=n(40844),o='[cmdk-group=""]',l='[cmdk-group-items=""]',s='[cmdk-item=""]',u=`${s}:not([aria-disabled="true"])`,c="cmdk-item-select",d="data-value",f=(e,t)=>a(e,t),h=i.createContext(void 0),p=()=>i.useContext(h),m=i.createContext(void 0),g=()=>i.useContext(m),v=i.createContext(void 0),y=i.forwardRef((e,t)=>{let n=i.useRef(null),r=_(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),a=_(()=>new Set),p=_(()=>new Map),g=_(()=>new Map),v=_(()=>new Set),y=C(e),{label:x,children:b,value:w,onValueChange:j,filter:k,shouldFilter:E,...S}=e,T=i.useId(),P=i.useId(),R=i.useId(),D=A();M(()=>{if(void 0!==w){let e=w.trim().toLowerCase();r.current.value=e,D(6,I),L.emit()}},[w]);let L=i.useMemo(()=>({subscribe:e=>(v.current.add(e),()=>v.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var i,a,o;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)B(),z(),D(1,V);else if("value"===e){if((null==(i=y.current)?void 0:i.value)!==void 0){null==(o=(a=y.current).onValueChange)||o.call(a,t);return}n||D(5,I)}L.emit()}},emit:()=>{v.current.forEach(e=>e())}}),[]),Z=i.useMemo(()=>({value:(e,t)=>{t!==g.current.get(e)&&(g.current.set(e,t),r.current.filtered.items.set(e,F(t)),D(2,()=>{z(),L.emit()}))},item:(e,t)=>(a.current.add(e),t&&(p.current.has(t)?p.current.get(t).add(e):p.current.set(t,new Set([e]))),D(3,()=>{B(),z(),r.current.value||V(),L.emit()}),()=>{g.current.delete(e),a.current.delete(e),r.current.filtered.items.delete(e),D(4,()=>{B(),V(),L.emit()})}),group:e=>(p.current.has(e)||p.current.set(e,new Set),()=>{g.current.delete(e),p.current.delete(e)}),filter:()=>y.current.shouldFilter,label:x||e["aria-label"],listId:T,inputId:R,labelId:P}),[]);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(l);t?t.appendChild(e.parentElement===t?e:e.closest(`${l} > *`)):i.appendChild(e.parentElement===i?e:e.closest(`${l} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{let t=n.current.querySelector(`${o}[${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 B(){if(!r.current.search||!1===y.current.shouldFilter){r.current.filtered.count=a.current.size;return}r.current.filtered.groups=new Set;let e=0;for(let t of a.current){let n=F(g.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 I(){var e,t,n;let r=H();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(o))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function H(){return n.current.querySelector(`${s}[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),a=r[i+e];null!=(t=y.current)&&t.loop&&(a=i+e<0?r[r.length-1]:i+e===r.length?r[0]:r[i+e]),a&&L.setState("value",a.getAttribute(d))}function $(e){let t=H(),n=null==t?void 0:t.closest(o),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,o):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,o))?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)},X=e=>{e.preventDefault(),e.metaKey?W(0):e.altKey?$(-1):q(-1)};return i.createElement("div",{ref:O([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&&X(e);break;case"ArrowUp":X(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},x),i.createElement(m.Provider,{value:L},i.createElement(h.Provider,{value:Z},b)))}),x=i.forwardRef((e,t)=>{let n=i.useId(),r=i.useRef(null),a=i.useContext(v),o=p(),l=C(e);M(()=>o.item(n,a),[]);let s=P(n,r,[e.value,e.children,r]),u=g(),d=T(e=>e.value&&e.value===s.current),f=T(e=>!1===o.filter()||!e.search||e.filtered.items.get(n)>0);function h(){var e,t;null==(t=(e=l.current).onSelect)||t.call(e,s.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:O([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",s.current,!0)},onClick:m?void 0:h},e.children)}),b=i.forwardRef((e,t)=>{let{heading:n,children:r,...a}=e,o=i.useId(),l=i.useRef(null),s=i.useRef(null),u=i.useId(),c=p(),d=T(e=>!1===c.filter()||!e.search||e.filtered.groups.has(o));M(()=>c.group(o),[]),P(o,l,[e.value,e.heading,s]);let f=i.createElement(v.Provider,{value:o},r);return i.createElement("div",{ref:O([l,t]),...a,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&i.createElement("div",{ref:s,"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,a=i.useRef(null),o=T(e=>!e.search);return n||o?i.createElement("div",{ref:O([a,t]),...r,"cmdk-separator":"",role:"separator"}):null}),j=i.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,a=null!=e.value,o=g(),l=T(e=>e.search),s=p();return i.useEffect(()=>{null!=e.value&&o.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":s.listId,"aria-labelledby":s.labelId,id:s.inputId,type:"text",value:a?e.value:l,onChange:e=>{a||o.setState("search",e.target.value),null==n||n(e.target.value)}})}),k=i.forwardRef((e,t)=>{let{children:n,...r}=e,a=i.useRef(null),o=i.useRef(null),l=p();return i.useEffect(()=>{if(o.current&&a.current){let e=o.current,t=a.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:O([a,t]),...r,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:l.listId,"aria-labelledby":l.inputId},i.createElement("div",{ref:o,"cmdk-list-sizer":""},n))}),E=i.forwardRef((e,t)=>{let{open:n,onOpenChange:a,container:o,...l}=e;return i.createElement(r.fC,{open:n,onOpenChange:a},i.createElement(r.h_,{container:o},i.createElement(r.aV,{"cmdk-overlay":""}),i.createElement(r.VY,{"aria-label":e.label,"cmdk-dialog":""},i.createElement(y,{ref:t,...l}))))}),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,...a}=e;return i.createElement("div",{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},i.createElement("div",{"aria-hidden":!0},r))})});function C(e){let t=i.useRef(e);return M(()=>{t.current=e}),t}var M=typeof window>"u"?i.useEffect:i.useLayoutEffect;function _(e){let t=i.useRef();return void 0===t.current&&(t.current=e()),t}function O(e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}function T(e){let t=g(),n=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,n,n)}function P(e,t,n){let r=i.useRef(),a=p();return M(()=>{var i;let o=(()=>{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()}})();a.value(e,o),null==(i=t.current)||i.setAttribute(d,o),r.current=o}),r}var A=()=>{let[e,t]=i.useState(),n=_(()=>new Map);return M(()=>{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 a}});var r=n(86801);function i(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function a(e){let t,n,a;function l(e,r,i=0,a=e.length){if(i>>1;0>n(e[t],r)?i=t+1:a=t}while(i(0,r.Z)(e(t),n),a=(t,n)=>e(t)-n):(t=e===r.Z||e===i?e:o,n=e,a=e),{left:l,center:function(e,t,n=0,r=e.length){let i=l(e,t,n,r-1);return i>n&&a(e[i-1],t)>-a(e[i],t)?i-1:i},right:function(e,r,i=0,a=e.length){if(i>>1;0>=n(e[t],r)?i=t+1:a=t}while(i=t&&(n=r=t):(n>t&&(n=t),r=a&&(n=r=a):(n>a&&(n=a),r-1},o.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 l=o},38896:function(e,t,n){"use strict";var r=n(62411),i=n(93221),a=(0,r.Z)(i.Z,"Map");t.Z=a},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,a=Object.prototype.hasOwnProperty;function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1}},40704:function(e,t){"use strict";t.Z=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r0&&i(c)?n>1?e(c,n-1,i,a,o):(0,r.Z)(o,c):a||(o[o.length]=c)}return o}},86862:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=function(e,t,n){for(var r=-1,i=Object(e),a=n(e),o=a.length;o--;){var l=a[++r];if(!1===t(i[l],l,i))break}return e}},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,a=t.length;null!=e&&nc))return!1;var f=s.get(e),h=s.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,g=2&n?new i.Z:void 0;for(s.set(e,t),s.set(t,e);++pi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r=i?e:(0,r.Z)(e,t,n)}},6181:function(e,t,n){"use strict";var r=n(88282);t.Z=function(e){var t=new e.constructor(e.byteLength);return new r.Z(t).set(new r.Z(e)),t}},25056:function(e,t,n){"use strict";var r=n(93221),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=i&&"object"==typeof module&&module&&!module.nodeType&&module,o=a&&a.exports===i?r.Z.Buffer:void 0,l=o?o.allocUnsafe:void 0;t.Z=function(e,t){if(t)return e.slice();var n=e.length,r=l?l(n):new e.constructor(n);return e.copy(r),r}},76735:function(e,t,n){"use strict";var r=n(6181);t.Z=function(e,t){var n=t?(0,r.Z)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},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&&e0){if(++r>=800)return arguments[0]}else r=0;return l.apply(void 0,arguments)})},36202:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(32690),i="\ud800-\udfff",a="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\ud83c[\udffb-\udfff]",l="[^"+i+"]",s="(?:\ud83c[\udde6-\uddff]){2}",u="[\ud800-\udbff][\udc00-\udfff]",c="(?:"+a+"|"+o+")?",d="[\\ufe0e\\ufe0f]?",f="(?:\\u200d(?:"+[l,s,u].join("|")+")"+d+c+")*",h=RegExp(o+"(?="+o+")|(?:"+[l+a+"?",a,s,u,"["+i+"]"].join("|")+")"+(d+c+f),"g"),p=function(e){return(0,r.Z)(e)?e.match(h)||[]:e.split("")}},71354:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r,i,a=n(23549);function o(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],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(o.Cache||a.Z),n}o.Cache=a.Z;var l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,u=(i=(r=o(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(l,function(e,n,r,i){t.push(r?i.replace(s,"$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),a=function(){return i.Z.Date.now()},o=n(62875),l=Math.max,s=Math.min,u=function(e,t,n){var i,u,c,d,f,h,p=0,m=!1,g=!1,v=!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 x(e){var n=e-h,r=e-p;return void 0===h||n>=t||n<0||g&&r>=c}function b(){var e,n,r,i=a();if(x(i))return w(i);f=setTimeout(b,(e=i-h,n=i-p,r=t-e,g?s(r,c-n):r))}function w(e){return(f=void 0,v&&i)?y(e):(i=u=void 0,d)}function j(){var e,n=a(),r=x(n);if(i=arguments,u=this,h=n,r){if(void 0===f)return p=e=h,f=setTimeout(b,t),m?y(e):d;if(g)return clearTimeout(f),f=setTimeout(b,t),y(h)}return void 0===f&&(f=setTimeout(b,t)),d}return t=(0,o.Z)(t)||0,(0,r.Z)(n)&&(m=!!n.leading,c=(g="maxWait"in n)?l((0,o.Z)(n.maxWait)||0,t):c,v="trailing"in n?!!n.trailing:v),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(a())},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,a=n(40905),o=function(e,t,n,r){for(var i=-1,a=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),a=n(43391),o=Object.prototype,l=Function.prototype.toString,s=o.hasOwnProperty,u=l.call(Object);t.Z=function(e){if(!(0,a.Z)(e)||"[object Object]"!=(0,r.Z)(e))return!1;var t=(0,i.Z)(e);if(null===t)return!0;var n=s.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.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),a=n(43391),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1;var l=n(93225),s=n(37755),u=s.Z&&s.Z.isTypedArray,c=u?(0,l.Z)(u):function(e){return(0,a.Z)(e)&&(0,i.Z)(e.length)&&!!o[(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),a=(0,n(76048).Z)(Object.keys,Object),o=Object.prototype.hasOwnProperty,l=function(e){if(!(0,i.Z)(e))return a(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t},s=n(63282),u=function(e){return(0,s.Z)(e)?(0,r.Z)(e):l(e)}},17816:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(45423),i=n(93122),a=n(15441),o=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},l=Object.prototype.hasOwnProperty,s=function(e){if(!(0,i.Z)(e))return o(e);var t=(0,a.Z)(e),n=[];for(var r in e)"constructor"==r&&(t||!l.call(e,r))||n.push(r);return n},u=n(63282),c=function(e){return(0,u.Z)(e)?(0,r.Z)(e,!0):s(e)}},13762:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r,i=n(95598),a=n(66638),o=n(42082),l=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},s=n(89523),u=n(82472),c=n(57969),d=function(e,t){var n,r;return t=(0,o.Z)(t,e),n=e,null==(e=(r=t).length<2?n:(0,s.Z)(n,(0,u.Z)(r,0,-1)))||delete e[c.Z(l(t))]},f=n(82436),h=n(65255),p=function(e){return(0,h.Z)(e)?void 0:e},m=n(1590),g=n(71118),v=n(20542),y=n(9878),x=(r=function(e,t){var n={};if(null==e)return n;var r=!1;t=(0,i.Z)(t,function(t){return t=(0,o.Z)(t,e),r||(r=t.length>1),t}),(0,f.Z)(e,(0,y.Z)(e),n),r&&(n=(0,a.Z)(n,7,p));for(var l=t.length;l--;)d(n,t[l]);return n},(0,v.Z)((0,g.Z)(r,void 0,function(e){return(null==e?0:e.length)?(0,m.Z)(e,1):[]}),r+""))},84779:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(1590),i=n(95598),a=n(89523),o=n(20248),l=n(68282),s=n(63282),u=function(e,t){var n=-1,r=(0,s.Z)(e)?Array(e.length):[];return(0,l.Z)(e,function(e,i,a){r[++n]=t(e,i,a)}),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,a=(0,f.Z)(e),o=void 0!==t,l=null===t,s=t==t,u=(0,f.Z)(t);if(!l&&!u&&!a&&e>t||a&&o&&s&&!l&&!u||r&&o&&s||!n&&s||!i)return 1;if(!r&&!a&&!u&&e=l)return s;return s*("desc"==n[r]?-1:1)}}return e.index-t.index},m=n(89930),g=n(97885),v=function(e,t,n){t=t.length?(0,i.Z)(t,function(e){return(0,g.Z)(e)?function(t){return(0,a.Z)(t,1===e.length?e[0]:e)}:e}):[m.Z];var r=-1;return t=(0,i.Z)(t,(0,d.Z)(o.Z)),c(u(e,function(e,n,a){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),x=n(95965),b=(0,y.Z)(function(e,t){if(null==e)return[];var n=t.length;return n>1&&(0,x.Z)(e,t[0],t[1])?t=[]:n>2&&(0,x.Z)(t[0],t[1],t[2])&&(t=[t[0]]),v(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 a=!0,o=!0;if("function"!=typeof e)throw TypeError("Expected a function");return(0,i.Z)(n)&&(a="leading"in n?!!n.leading:a,o="trailing"in n?!!n.trailing:o),(0,r.Z)(e,t,{leading:a,maxWait:t,trailing:o})}},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},a=/^\s+/,o=n(93122),l=n(22758),s=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,l.Z)(e))return s;if((0,o.Z)(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=(0,o.Z)(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=(t=e)?t.slice(0,i(t)+1).replace(a,""):t;var r=c.test(e);return r||d.test(e)?f(e.slice(2),r?2:8):u.test(e)?s:+e}},69046:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r,i=n(95598),a=n(92263),o=n(45500),l=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n},s=(r=n(6623).Z,function(e){var t,n=(0,a.Z)(e);return"[object Map]"==n?(0,o.Z)(e):"[object Set]"==n?l(e):(t=r(e),(0,i.Z)(t,function(t){return[t,e[t]]}))})},25186:function(e,t,n){"use strict";var r=n(79200);t.Z=function(e){return null==e?"":(0,r.Z)(e)}},28356:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(90463),i=n(58527),a=n(40704),o=n(11749),l=n(87459),s=n(63249),u=l.Z&&1/(0,s.Z)(new l.Z([,-0]))[1]==1/0?function(e){return new l.Z(e)}:function(){},c=function(e,t,n){var l=-1,c=i.Z,d=e.length,f=!0,h=[],p=h;if(n)f=!1,c=a.Z;else if(d>=200){var m=t?null:u(e);if(m)return(0,s.Z)(m);f=!1,c=o.Z,p=new r.Z}else p=t?[]:h;t:for(;++l"checkbox"===e.type,a=e=>e instanceof Date,o=e=>null==e;let l=e=>"object"==typeof e;var s=e=>!o(e)&&!Array.isArray(e)&&l(e)&&!a(e),u=e=>s(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 s(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||s(e))))return e;else if(t=n?[]:{},n||f(e))for(let n in e)e.hasOwnProperty(n)&&(t[n]=p(e[n]));else t=e;return t}var m=e=>Array.isArray(e)?e.filter(Boolean):[],g=e=>void 0===e,v=(e,t,n)=>{if(!t||!s(e))return n;let r=m(t.split(/[,[\].]+?/)).reduce((e,t)=>o(e)?e:e[t],e);return g(r)||r===e?g(e[t])?n:e[t]:r},y=e=>"boolean"==typeof e,x=e=>/^\w*$/.test(e),b=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/)),w=(e,t,n)=>{let r=-1,i=x(t)?[t]:b(t),a=i.length,o=a-1;for(;++r{let i={defaultValues:t._defaultValues};for(let a in e)Object.defineProperty(i,a,{get:()=>(t._proxyFormState[a]!==k.all&&(t._proxyFormState[a]=!r||k.all),n&&(n[a]=!0),e[a])});return i},C=e=>s(e)&&!Object.keys(e).length,M=(e,t,n,r)=>{n(e);let{name:i,...a}=e;return C(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!r||k.all))},_=e=>Array.isArray(e)?e:[e],O=e=>"string"==typeof e,T=(e,t,n,r,i)=>O(e)?(r&&t.watch.add(e),v(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),v(n,e))):(r&&(t.watchAll=!0),n),P=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},A=e=>({isOnSubmit:!e||e===k.onSubmit,isOnBlur:e===k.onBlur,isOnChange:e===k.onChange,isOnAll:e===k.all,isOnTouch:e===k.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))));let R=(e,t,n,r)=>{for(let i of n||Object.keys(e)){let n=v(e,i);if(n){let{_f:e,...a}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r||e.ref&&t(e.ref,e.name)&&!r)break;R(a,t)}else s(a)&&R(a,t)}}};var D=(e,t,n)=>{let r=m(v(e,n));return w(r,"root",t[n]),w(e,n,r),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=>O(e),V=e=>"radio"===e.type,B=e=>e instanceof RegExp;let I={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&&!g(e[0].attributes.value)?g(e[0].value)||""===e[0].value?H:{value:e[0].value,isValid:!0}:H:I}return I};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)||y(e)&&!e)return{type:n,message:z(e)?e:"",ref:t}}var K=e=>s(e)&&!B(e)?e:{value:e,message:""},Y=async(e,t,n,r,a)=>{let{ref:l,refs:u,required:c,maxLength:d,minLength:f,min:h,max:p,pattern:m,validate:x,name:b,valueAsNumber:w,mount:j,disabled:k}=e._f,S=v(t,b);if(!j||k)return{};let M=u?u[0]:l,_=e=>{r&&M.reportValidity&&(M.setCustomValidity(y(e)?"":e||""),M.reportValidity())},T={},A=V(l),N=i(l),R=(w||L(l))&&g(l.value)&&g(S)||F(l)&&""===l.value||""===S||Array.isArray(S)&&!S.length,D=P.bind(null,b,n,T),I=(e,t,n,r=E.maxLength,i=E.minLength)=>{let a=e?t:n;T[b]={type:e?r:i,message:a,ref:l,...D(e?r:i,a)}};if(a?!Array.isArray(S)||!S.length:c&&(!(A||N)&&(R||o(S))||y(S)&&!S||N&&!U(u).isValid||A&&!q(u).isValid)){let{value:e,message:t}=z(c)?{value:!!c,message:c}:K(c);if(e&&(T[b]={type:E.required,message:t,ref:M,...D(E.required,t)},!n))return _(t),T}if(!R&&(!o(h)||!o(p))){let e,t;let r=K(p),i=K(h);if(o(S)||isNaN(S)){let n=l.valueAsDate||new Date(S),a=e=>new Date(new Date().toDateString()+" "+e),o="time"==l.type,s="week"==l.type;O(r.value)&&S&&(e=o?a(S)>a(r.value):s?S>r.value:n>new Date(r.value)),O(i.value)&&S&&(t=o?a(S)r.value),o(i.value)||(t=n+e.value,i=!o(t.value)&&S.length<+t.value;if((r||i)&&(I(r,e.message,t.message),!n))return _(T[b].message),T}if(m&&!R&&O(S)){let{value:e,message:t}=K(m);if(B(e)&&!S.match(e)&&(T[b]={type:E.pattern,message:t,ref:l,...D(E.pattern,t)},!n))return _(t),T}if(x){if(Z(x)){let e=$(await x(S,t),M);if(e&&(T[b]={...e,...D(E.validate,e.message)},!n))return _(e.message),T}else if(s(x)){let e={};for(let r in x){if(!C(e)&&!n)break;let i=$(await x[r](S,t),M,r);i&&(e={...i,...D(r,i.message)},_(i.message),n&&(T[b]=e))}if(!C(e)&&(T[b]={ref:M,...e},!n))return T}}return _(!0),T};function X(e,t){let n=Array.isArray(t)?t:x(t)?[t]:b(t),r=1===n.length?e:function(e,t){let n=t.slice(0,-1).length,r=0;for(;r{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}},J=e=>o(e)||!l(e);function Q(e,t){if(J(e)||J(t))return e===t;if(a(e)&&a(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(a(n)&&a(e)||s(n)&&s(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=>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(s(e)||n)for(let n in e)Array.isArray(e[n])||s(e[n])&&!er(e[n])?(t[n]=Array.isArray(e[n])?[]:{},ei(e[n],t[n])):o(e[n])||(t[n]=!0);return t}var ea=(e,t)=>(function e(t,n,r){let i=Array.isArray(t);if(s(t)||i)for(let i in t)Array.isArray(t[i])||s(t[i])&&!er(t[i])?g(n)||J(r[i])?r[i]=Array.isArray(t[i])?ei(t[i],[]):{...ei(t[i])}:e(t[i],o(n)?{}:n[i],r[i]):r[i]=!Q(t[i],n[i]);return r})(e,t,ei(t)),eo=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>g(e)?e:t?""===e?NaN:e?+e:e:n&&O(e)?new Date(e):r?r(e):e;function el(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:eo(g(t.value)?e.ref.value:t.value,e)}var es=(e,t,n,r)=>{let i={};for(let n of e){let e=v(t,n);e&&w(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},eu=e=>g(e)?e:B(e)?e.source:s(e)?B(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=v(e,n);if(r||x(n))return{error:r,name:n};let i=n.split(".");for(;i.length;){let r=i.join("."),a=v(t,r),o=v(e,r);if(a&&!Array.isArray(a)&&n!==r)break;if(o&&o.type)return{name:r,error:o};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(v(e,t)).length&&X(e,t);let ep={mode:k.onSubmit,reValidateMode:k.onChange,shouldFocusError:!0};function em(e={}){let t=r.useRef(),n=r.useRef(),[l,c]=r.useState({isDirty:!1,isValidating:!1,isLoading:Z(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Z(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...function(e={}){let t,n={...ep,...e},r={submitCount:0,isDirty:!1,isLoading:Z(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},l={},c=(s(n.defaultValues)||s(n.values))&&p(n.defaultValues||n.values)||{},f=n.shouldUnregister?{}:p(c),x={action:!1,mount:!1,watch:!1},b={mount:new Set,unMount:new Set,array:new Set,watch:new Set},E=0,S={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},M={values:G(),array:G(),state:G()},P=A(n.mode),z=A(n.reValidateMode),V=n.criteriaMode===k.all,B=e=>t=>{clearTimeout(E),E=setTimeout(e,t)},I=async e=>{if(S.isValid||e){let e=n.resolver?C((await K()).errors):await ei(l,!0);e!==r.isValid&&M.state.next({isValid:e})}},H=(e,t)=>{(S.isValidating||S.validatingFields)&&((e||Array.from(b.mount)).forEach(e=>{e&&(t?w(r.validatingFields,e,t):X(r.validatingFields,e))}),M.state.next({validatingFields:r.validatingFields,isValidating:!C(r.validatingFields)}))},U=(e,t)=>{w(r.errors,e,t),M.state.next({errors:r.errors})},W=(e,t,n,r)=>{let i=v(l,e);if(i){let a=v(f,e,g(n)?v(c,e):n);g(a)||r&&r.defaultChecked||t?w(f,e,t?a:el(i._f)):ev(e,a),x.mount&&I()}},q=(e,t,n,i,a)=>{let o=!1,s=!1,u={name:e},d=!!(v(l,e)&&v(l,e)._f&&v(l,e)._f.disabled);if(!n||i){S.isDirty&&(s=r.isDirty,r.isDirty=u.isDirty=em(),o=s!==u.isDirty);let n=d||Q(v(c,e),t);s=!!(!d&&v(r.dirtyFields,e)),n||d?X(r.dirtyFields,e):w(r.dirtyFields,e,!0),u.dirtyFields=r.dirtyFields,o=o||S.dirtyFields&&!n!==s}if(n){let t=v(r.touchedFields,e);t||(w(r.touchedFields,e,n),u.touchedFields=r.touchedFields,o=o||S.touchedFields&&t!==n)}return o&&a&&M.state.next(u),o?u:{}},$=(n,i,a,o)=>{let l=v(r.errors,n),s=S.isValid&&y(i)&&r.isValid!==i;if(e.delayError&&a?(t=B(()=>U(n,a)))(e.delayError):(clearTimeout(E),t=null,a?w(r.errors,n,a):X(r.errors,n)),(a?!Q(l,a):l)||!C(o)||s){let e={...o,...s&&y(i)?{isValid:i}:{},errors:r.errors,name:n};r={...r,...e},M.state.next(e)}},K=async e=>{H(e,!0);let t=await n.resolver(f,n.context,es(e||b.mount,l,n.criteriaMode,n.shouldUseNativeValidation));return H(e),t},er=async e=>{let{errors:t}=await K(e);if(e)for(let n of e){let e=v(t,n);e?w(r.errors,n,e):X(r.errors,n)}else r.errors=t;return t},ei=async(e,t,i={valid:!0})=>{for(let a in e){let o=e[a];if(o){let{_f:e,...l}=o;if(e){let l=b.array.has(e.name);H([a],!0);let s=await Y(o,f,V,n.shouldUseNativeValidation&&!t,l);if(H([a]),s[e.name]&&(i.valid=!1,t))break;t||(v(s,e.name)?l?D(r.errors,s,e.name):w(r.errors,e.name,s[e.name]):X(r.errors,e.name))}l&&await ei(l,t,i)}}return i.valid},em=(e,t)=>(e&&t&&w(f,e,t),!Q(ek(),c)),eg=(e,t,n)=>T(e,b,{...x.mount?f:g(t)?c:O(e)?{[e]:t}:t},n,t),ev=(e,t,n={})=>{let r=v(l,e),a=t;if(r){let n=r._f;n&&(n.disabled||w(f,e,eo(t,n)),a=F(n.ref)&&o(t)?"":t,ee(n.ref)?[...n.ref.options].forEach(e=>e.selected=a.includes(e.value)):n.refs?i(n.ref)?n.refs.length>1?n.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(a)?!!a.find(t=>t===e.value):a===e.value)):n.refs[0]&&(n.refs[0].checked=!!a):n.refs.forEach(e=>e.checked=e.value===a):L(n.ref)?n.ref.value="":(n.ref.value=a,n.ref.type||M.values.next({name:e,values:{...f}})))}(n.shouldDirty||n.shouldTouch)&&q(e,a,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&ej(e)},ey=(e,t,n)=>{for(let r in t){let i=t[r],o=`${e}.${r}`,s=v(l,o);!b.array.has(e)&&J(i)&&(!s||s._f)||a(i)?ev(o,i,n):ey(o,i,n)}},ex=(e,t,n={})=>{let i=v(l,e),a=b.array.has(e),s=p(t);w(f,e,s),a?(M.array.next({name:e,values:{...f}}),(S.isDirty||S.dirtyFields)&&n.shouldDirty&&M.state.next({name:e,dirtyFields:ea(c,f),isDirty:em(e,s)})):!i||i._f||o(s)?ev(e,s,n):ey(e,s,n),N(e,b)&&M.state.next({...r}),M.values.next({name:x.mount?e:void 0,values:{...f}})},eb=async e=>{x.mount=!0;let i=e.target,a=i.name,o=!0,s=v(l,a),c=e=>{o=Number.isNaN(e)||e===v(f,a,e)};if(s){let d,h;let p=i.type?el(s._f):u(e),m=e.type===j.BLUR||e.type===j.FOCUS_OUT,g=!ec(s._f)&&!n.resolver&&!v(r.errors,a)&&!s._f.deps||ef(m,v(r.touchedFields,a),r.isSubmitted,z,P),y=N(a,b,m);w(f,a,p),m?(s._f.onBlur&&s._f.onBlur(e),t&&t(0)):s._f.onChange&&s._f.onChange(e);let x=q(a,p,m,!1),k=!C(x)||y;if(m||M.values.next({name:a,type:e.type,values:{...f}}),g)return S.isValid&&I(),k&&M.state.next({name:a,...y?{}:x});if(!m&&y&&M.state.next({...r}),n.resolver){let{errors:e}=await K([a]);if(c(p),o){let t=ed(r.errors,l,a),n=ed(e,l,t.name||a);d=n.error,a=n.name,h=C(e)}}else H([a],!0),d=(await Y(s,f,V,n.shouldUseNativeValidation))[a],H([a]),c(p),o&&(d?h=!1:S.isValid&&(h=await ei(l,!0)));o&&(s._f.deps&&ej(s._f.deps),$(a,h,d,x))}},ew=(e,t)=>{if(v(r.errors,t)&&e.focus)return e.focus(),1},ej=async(e,t={})=>{let i,a;let o=_(e);if(n.resolver){let t=await er(g(e)?e:o);i=C(t),a=e?!o.some(e=>v(t,e)):i}else e?((a=(await Promise.all(o.map(async e=>{let t=v(l,e);return await ei(t&&t._f?{[e]:t}:t)}))).every(Boolean))||r.isValid)&&I():a=i=await ei(l);return M.state.next({...!O(e)||S.isValid&&i!==r.isValid?{}:{name:e},...n.resolver||!e?{isValid:i}:{},errors:r.errors}),t.shouldFocus&&!a&&R(l,ew,e?o:b.mount),a},ek=e=>{let t={...x.mount?f:c};return g(e)?t:O(e)?v(t,e):e.map(e=>v(t,e))},eE=(e,t)=>({invalid:!!v((t||r).errors,e),isDirty:!!v((t||r).dirtyFields,e),error:v((t||r).errors,e),isValidating:!!v(r.validatingFields,e),isTouched:!!v((t||r).touchedFields,e)}),eS=(e,t,n)=>{let i=(v(l,e,{_f:{}})._f||{}).ref,{ref:a,message:o,type:s,...u}=v(r.errors,e)||{};w(r.errors,e,{...u,...t,ref:i}),M.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&i&&i.focus&&i.focus()},eC=(e,t={})=>{for(let i of e?_(e):b.mount)b.mount.delete(i),b.array.delete(i),t.keepValue||(X(l,i),X(f,i)),t.keepError||X(r.errors,i),t.keepDirty||X(r.dirtyFields,i),t.keepTouched||X(r.touchedFields,i),t.keepIsValidating||X(r.validatingFields,i),n.shouldUnregister||t.keepDefaultValue||X(c,i);M.values.next({values:{...f}}),M.state.next({...r,...t.keepDirty?{isDirty:em()}:{}}),t.keepIsValid||I()},eM=({disabled:e,name:t,field:n,fields:r,value:i})=>{if(y(e)&&x.mount||e){let a=e?void 0:g(i)?el(n?n._f:v(r,t)._f):i;w(f,t,a),q(t,a,!1,!1,!0)}},e_=(e,t={})=>{let r=v(l,e),i=y(t.disabled);return w(l,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),b.mount.add(e),r?eM({field:r,disabled:t.disabled,name:e,value:t.value}):W(e,!0,t.value),{...i?{disabled:t.disabled}:{},...n.progressive?{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:eb,onBlur:eb,ref:i=>{if(i){e_(e,t),r=v(l,e);let n=g(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,a=et(n),o=r._f.refs||[];(a?o.find(e=>e===n):n===r._f.ref)||(w(l,e,{_f:{...r._f,...a?{refs:[...o.filter(en),n,...Array.isArray(v(c,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),W(e,!1,void 0,n))}else(r=v(l,e,{}))._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&!(d(b.array,e)&&x.action)&&b.unMount.add(e)}}},eO=()=>n.shouldFocusError&&R(l,ew,b.mount),eT=(e,t)=>async i=>{let a;i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let o=p(f);if(M.state.next({isSubmitting:!0}),n.resolver){let{errors:e,values:t}=await K();r.errors=e,o=t}else await ei(l);if(X(r.errors,"root"),C(r.errors)){M.state.next({errors:{}});try{await e(o,i)}catch(e){a=e}}else t&&await t({...r.errors},i),eO(),setTimeout(eO);if(M.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:C(r.errors)&&!a,submitCount:r.submitCount+1,errors:r.errors}),a)throw a},eP=(t,n={})=>{let i=t?p(t):c,a=p(i),o=C(t),s=o?c:a;if(n.keepDefaultValues||(c=i),!n.keepValues){if(n.keepDirtyValues)for(let e of b.mount)v(r.dirtyFields,e)?w(s,e,v(f,e)):ex(e,v(s,e));else{if(h&&g(t))for(let e of b.mount){let t=v(l,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}}}}l={}}f=e.shouldUnregister?n.keepDefaultValues?p(c):{}:p(s),M.array.next({values:{...s}}),M.values.next({values:{...s}})}b={mount:n.keepDirtyValues?b.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},x.mount=!S.isValid||!!n.keepIsValid||!!n.keepDirtyValues,x.watch=!!e.shouldUnregister,M.state.next({submitCount:n.keepSubmitCount?r.submitCount:0,isDirty:!o&&(n.keepDirty?r.isDirty:!!(n.keepDefaultValues&&!Q(t,c))),isSubmitted:!!n.keepIsSubmitted&&r.isSubmitted,dirtyFields:o?[]:n.keepDirtyValues?n.keepDefaultValues&&f?ea(c,f):r.dirtyFields:n.keepDefaultValues&&t?ea(c,t):n.keepDirty?r.dirtyFields:{},touchedFields:n.keepTouched?r.touchedFields:{},errors:n.keepErrors?r.errors:{},isSubmitSuccessful:!!n.keepIsSubmitSuccessful&&r.isSubmitSuccessful,isSubmitting:!1})},eA=(e,t)=>eP(Z(e)?e(f):e,t);return{control:{register:e_,unregister:eC,getFieldState:eE,handleSubmit:eT,setError:eS,_executeSchema:K,_getWatch:eg,_getDirty:em,_updateValid:I,_removeUnmounted:()=>{for(let e of b.unMount){let t=v(l,e);t&&(t._f.refs?t._f.refs.every(e=>!en(e)):!en(t._f.ref))&&eC(e)}b.unMount=new Set},_updateFieldArray:(e,t=[],n,i,a=!0,o=!0)=>{if(i&&n){if(x.action=!0,o&&Array.isArray(v(l,e))){let t=n(v(l,e),i.argA,i.argB);a&&w(l,e,t)}if(o&&Array.isArray(v(r.errors,e))){let t=n(v(r.errors,e),i.argA,i.argB);a&&w(r.errors,e,t),eh(r.errors,e)}if(S.touchedFields&&o&&Array.isArray(v(r.touchedFields,e))){let t=n(v(r.touchedFields,e),i.argA,i.argB);a&&w(r.touchedFields,e,t)}S.dirtyFields&&(r.dirtyFields=ea(c,f)),M.state.next({name:e,isDirty:em(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else w(f,e,t)},_updateDisabledField:eM,_getFieldArray:t=>m(v(x.mount?f:c,t,e.shouldUnregister?v(c,t,[]):[])),_reset:eP,_resetDefaultValues:()=>Z(n.defaultValues)&&n.defaultValues().then(e=>{eA(e,n.resetOptions),M.state.next({isLoading:!1})}),_updateFormState:e=>{r={...r,...e}},_disableForm:e=>{y(e)&&(M.state.next({disabled:e}),R(l,(t,n)=>{let r=v(l,n);r&&(t.disabled=r._f.disabled||e,Array.isArray(r._f.refs)&&r._f.refs.forEach(t=>{t.disabled=r._f.disabled||e}))},0,!1))},_subjects:M,_proxyFormState:S,_setErrors:e=>{r.errors=e,M.state.next({errors:r.errors,isValid:!1})},get _fields(){return l},get _formValues(){return f},get _state(){return x},set _state(value){x=value},get _defaultValues(){return c},get _names(){return b},set _names(value){b=value},get _formState(){return r},set _formState(value){r=value},get _options(){return n},set _options(value){n={...n,...value}}},trigger:ej,register:e_,handleSubmit:eT,watch:(e,t)=>Z(e)?M.values.subscribe({next:n=>e(eg(void 0,t),n)}):eg(e,t,!0),setValue:ex,getValues:ek,reset:eA,resetField:(e,t={})=>{v(l,e)&&(g(t.defaultValue)?ex(e,p(v(c,e))):(ex(e,t.defaultValue),w(c,e,p(t.defaultValue))),t.keepTouched||X(r.touchedFields,e),t.keepDirty||(X(r.dirtyFields,e),r.isDirty=t.defaultValue?em(e,p(v(c,e))):em()),!t.keepError&&(X(r.errors,e),S.isValid&&I()),M.state.next({...r}))},clearErrors:e=>{e&&_(e).forEach(e=>X(r.errors,e)),M.state.next({errors:e?r.errors:{}})},unregister:eC,setError:eS,setFocus:(e,t={})=>{let n=v(l,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:eE}}(e),formState:l});let f=t.current.control;return f._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:f._subjects.state,next:e=>{M(e,f._proxyFormState,f._updateFormState,!0)&&c({...f._formState})}}),r.useEffect(()=>f._disableForm(e.disabled),[f,e.disabled]),r.useEffect(()=>{if(f._proxyFormState.isDirty){let e=f._getDirty();e!==l.isDirty&&f._subjects.state.next({isDirty:e})}},[f,l.isDirty]),r.useEffect(()=>{e.values&&!Q(e.values,n.current)?(f._reset(e.values,f._options.resetOptions),n.current=e.values,c(e=>({...e}))):f._resetDefaultValues()},[e.values,f]),r.useEffect(()=>{e.errors&&f._setErrors(e.errors)},[e.errors,f]),r.useEffect(()=>{f._state.mount||(f._updateValid(),f._state.mount=!0),f._state.watch&&(f._state.watch=!1,f._subjects.state.next({...f._formState})),f._removeUnmounted()}),r.useEffect(()=>{e.shouldUnregister&&f._subjects.values.next({values:f._getWatch()})},[e.shouldUnregister,f]),t.current.formState=S(l,f),t.current}},79381:function(e,t,n){"use strict";n.d(t,{J$:function(){return J},ZP:function(){return Q},JG:function(){return B},kY:function(){return K}});var r,i=n(2784),a=n(43100);let o=new WeakMap,l={},s={},u=()=>{},c=u(),d=Object,f=e=>e===c,h=e=>"function"==typeof e,p=(e,t)=>({...e,...t}),m="undefined",g=typeof window!=m,v=typeof document!=m,y=()=>g&&typeof window.requestAnimationFrame!=m,x=(e,t)=>{let n=o.get(e);return[()=>e.get(t)||l,r=>{if(!f(t)){let i=e.get(t);t in s||(s[t]=i),n[5](t,p(i,r),i||l)}},n[6],()=>!f(t)&&t in s?s[t]:e.get(t)||l]},b=new WeakMap,w=0,j=e=>{let t,n;let r=typeof e,i=e&&e.constructor,a=i==Date;if(d(e)!==e||a||i==RegExp)t=a?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(v&&document.addEventListener("visibilitychange",e),E("focus",e),()=>{v&&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)}}},M=!i.useId,_=!g||"Deno"in window,O=e=>y()?window.requestAnimationFrame(e):setTimeout(e,1),T=_?i.useEffect:i.useLayoutEffect,P="undefined"!=typeof navigator&&navigator.connection,A=!_&&P&&(["slow-2g","2g"].includes(P.effectiveType)||P.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,a=p({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),l=a.populateCache,s=a.rollbackOnError,u=a.optimisticData,d=!1!==a.revalidate,m=e=>"function"==typeof s?s(e):!1!==s,g=a.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(v))}return v(n);async function v(n){let i;let[a]=N(n);if(!a)return;let[s,p]=x(t,a),[v,y,b]=o.get(t),w=v[a],j=()=>d&&(delete b[a],w&&w[0])?w[0](2).then(()=>s().data):s().data;if(e.length<3)return j();let k=r,E=D();y[a]=[E,0];let S=!f(u),C=s(),M=C.data,_=C._c,O=f(_)?M:_;if(S&&p({data:u=h(u)?u(O):u,_c:O}),h(k))try{k=k(O)}catch(e){i=e}if(k&&h(k.then)){if(k=await k.catch(e=>{i=e}),E!==y[a][0]){if(i)throw i;return k}i&&S&&m(i)&&(l=!0,p({data:k=O,_c:c}))}l&&!i&&(h(l)&&(k=l(k,O)),p({data:k,_c:c})),y[a][1]=D();let T=await j();if(p({_c:c}),i){if(g)throw i;return}return l?T:k}}let F=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},z=(e,t)=>{if(!o.has(e)){let n=p(C,t),r={},i=Z.bind(c,e),a=u,l={},s=(e,t)=>{let n=l[e]||[];return l[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},d=(t,n,r)=>{e.set(t,n);let i=l[t];if(i)for(let e of i)e(n,r)},f=()=>{if(!o.has(e)&&(o.set(e,[r,{},{},{},i,d,s]),!_)){let t=n.initFocus(setTimeout.bind(c,F.bind(c,r,0))),i=n.initReconnect(setTimeout.bind(c,F.bind(c,r,1)));a=()=>{t&&t(),i&&i(),o.delete(e)}}};return f(),[e,i,f,a]}return[e,o.get(e)[4]]},[V,B]=z(new Map),I=p({onLoadingSlow:u,onSuccess:u,onError:u,onErrorRetry:(e,t,n,r,i)=>{let a=n.errorRetryCount,o=i.retryCount,l=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;(f(a)||!(o>a))&&setTimeout(r,l,i)},onDiscarded:u,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:A?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:A?5e3:3e3,compare:(e,t)=>j(e)==j(t),isPaused:()=>!1,cache:V,mutate:B,fallback:{}},{isOnline:()=>k,isVisible:()=>{let e=v&&document.visibilityState;return f(e)||"hidden"!==e}}),H=(e,t)=>{let n=p(e,t);if(t){let{use:r,fallback:i}=e,{use:a,fallback:o}=t;r&&a&&(n.use=r.concat(a)),i&&o&&(n.fallback=p(i,o))}return n},U=(0,i.createContext)({}),W=g&&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(I,(0,i.useContext)(U)),Y=q.concat(e=>(t,n,r)=>{let i=n&&((...e)=>{let r=N(t)[0],[,,,i]=o.get(V),a=i[r];return a?(delete i[r],a):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 G={dedupe:!0},J=d.defineProperty(e=>{let{value:t}=e,n=(0,i.useContext)(U),r=h(t),a=(0,i.useMemo)(()=>r?t(n):t,[r,n,t]),o=(0,i.useMemo)(()=>r?a:H(n,a),[r,n,a]),l=a&&a.provider,s=(0,i.useRef)(c);l&&!s.current&&(s.current=z(l(o.cache||V),a));let u=s.current;return u&&(o.cache=u[0],o.mutate=u[1]),T(()=>{if(u)return u[2]&&u[2](),u[3]},[]),(0,i.createElement)(U.Provider,p(e,{value:o}))},"defaultValue",{value:I});var Q=(r=(e,t,n)=>{let{cache:r,compare:l,suspense:s,fallbackData:u,revalidateOnMount:d,revalidateIfStale:m,refreshInterval:g,refreshWhenHidden:v,refreshWhenOffline:y,keepPreviousData:b}=n,[w,j,k]=o.get(r),[E,S]=N(e),C=(0,i.useRef)(!1),P=(0,i.useRef)(!1),A=(0,i.useRef)(E),R=(0,i.useRef)(t),F=(0,i.useRef)(n),z=()=>F.current,V=()=>z().isVisible()&&z().isOnline(),[B,I,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?l(t[r],e[r])||f(e[r])&&l(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()&&!s&&(!!f(m)||m):d),n=t=>{let n=p(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=B(),i=U(),a=n(r),o=r===i?a:n(i),l=a;return[()=>{let e=n(B());return $(e,l)?l:l=e},()=>o]},[r,E]),Y=(0,a.useSyncExternalStore)((0,i.useCallback)(e=>H(E,(t,n)=>{$(n,t)||e()}),[r,E]),K[0],K[1]),J=!C.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,ea=(!Q||!!f(en))&&(J&&!f(d)?d:!z().isPaused()&&(s?!f(et)&&m:f(et)||m)),eo=!!(E&&t&&J&&ea),el=f(Y.isValidating)?eo:Y.isValidating,es=f(Y.isLoading)?eo:Y.isLoading,eu=(0,i.useCallback)(async e=>{let t,r;let i=R.current;if(!E||!i||P.current||z().isPaused())return!1;let a=!0,o=e||{},s=!k[E]||!o.dedupe,u=()=>M?!P.current&&E===A.current&&C.current:E===A.current,d={isValidating:!1,isLoading:!1},p=()=>{I(d)},m=()=>{let e=k[E];e&&e[1]===r&&delete k[E]},g={isValidating:!0};f(B().data)&&(g.isLoading=!0);try{if(s&&(I(g),n.loadingTimeout&&f(B().data)&&setTimeout(()=>{a&&u()&&z().onLoadingSlow(E,n)},n.loadingTimeout),k[E]=[i(S),D()]),[t,r]=k[E],t=await t,s&&setTimeout(m,n.dedupingInterval),!k[E]||k[E][1]!==r)return s&&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(),s&&u()&&z().onDiscarded(E),!1;let o=B().data;d.data=l(o,t)?o:t,s&&u()&&z().onSuccess(t,E,n)}catch(n){m();let e=z(),{shouldRetryOnError:t}=e;!e.isPaused()&&(d.error=n,s&&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:(o.retryCount||0)+1,dedupe:!0})))}return a=!1,p(),!0},[E,r]),ec=(0,i.useCallback)((...e)=>Z(r,A.current,...e),[]);if(T(()=>{R.current=t,F.current=n,f(ee)||(er.current=ee)}),T(()=>{if(!E)return;let e=eu.bind(c,G),t=0,n=X(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 P.current=!1,A.current=E,C.current=!0,I({_k:S}),ea&&(f(et)||_?e():O(e)),()=>{P.current=!0,n()}},[E]),T(()=>{let e;function t(){let t=h(g)?g(et):g;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!B().error&&(v||z().isVisible())&&(y||z().isOnline())?eu(G).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[g,v,y,E]),(0,i.useDebugValue)(ei),s&&f(et)&&E){if(!M&&_)throw Error("Fallback data is required when using suspense in SSR.");throw R.current=t,F.current=n,P.current=!1,f(en)?eu(G):en}return{mutate:ec,get data(){return W.data=!0,ei},get error(){return W.error=!0,en},get isValidating(){return W.isValidating=!0,el},get isLoading(){return W.isLoading=!0,es}}},function(...e){let t=K(),[n,i,a]=$(e),o=H(t,a),l=r,{use:s}=o,u=(s||[]).concat(Y);for(let e=u.length;e--;)l=u[e](l);return l(n,i||o.fetcher||null,o)})},22970:function(e,t,n){"use strict";n.d(t,{CR:function(){return l},Jh:function(){return o},_T:function(){return i},ev:function(){return s},mG:function(){return a},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 a(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(e){try{s(r.next(e))}catch(e){a(e)}}function l(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,l)}s((r=r.apply(e,t||[])).next())})}function o(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){return function(l){if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&l[0]?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===l[0]||2===l[0])){o=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function s(e,t,n){if(n||2==arguments.length)for(var r,i=0,a=t.length;im("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-4 justify-between items-center",children:[(0,s.jsx)(t.__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)(t.XxW,{size:"14",maxLength:50,value:null===(l=u.data)||void 0===l?void 0:l.address,type:"address"})})]}),h.data&&(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(t.xvT,{size:"14",children:(0,x.bc)(g,{format:"long"})})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(t.__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)(t.xvT,{size:"14",children:null===(a=h.data)||void 0===a?void 0:a.network})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,s.jsx)(t.rUS,{size:"14",href:v,underline:"hover",target:"_blank",ellipsis:!0,children:null===(o=h.data)||void 0===o?void 0:o.version})]})]})}function h(){let e=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"mainnet"!==e.data.network?(0,s.jsx)(t.t6k,{testnetName:e.data.network}):null}function u(e){let i=(0,r.X2)(),{isSynced:n}=(0,c.n)();return(0,s.jsx)(t.tU3,{appName:"renterd",profile:(0,s.jsx)(m,{}),banner:(0,s.jsx)(h,{}),connectivityRoute:o.h,isSynced:n,walletBalanceSc:i.data&&{spendable:new(a())(i.data.spendable),confirmed:new(a())(i.data.confirmed),unconfirmed:new(a())(i.data.unconfirmed)},...e})}},97992:function(e,i,n){"use strict";n.d(i,{e:function(){return c}});var s=n(52322),t=n(44677),r=n(47211),l=n(82851),a=n(98334),o=n(88385);function c(){let{totals:e}=(0,o.Z)(),i=e.all===e.info;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.KJW,{title:"Files",route:a._.buckets.index,children:(0,s.jsx)(r.ROc,{})}),(0,s.jsx)(t.KJW,{title:"Configuration",route:a._.config.index,children:(0,s.jsx)(r.wWN,{})}),(0,s.jsx)(t.KJW,{title:"Contracts",route:a._.contracts.index,children:(0,s.jsx)(r.VBo,{})}),(0,s.jsx)(t.KJW,{title:"Hosts",route:a._.hosts.index,children:(0,s.jsx)(r.VHe,{})}),(0,s.jsx)(t.KJW,{title:"S3 authentication keypairs",route:a._.keys.index,children:(0,s.jsx)(r._m8,{})}),(0,s.jsxs)("div",{className:"relative",children:[e.all?i?(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")}):(0,s.jsx)(t.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:e.all.toLocaleString()}):null,(0,s.jsx)(t.KJW,{title:"Alerts",route:a._.alerts.index,children:(0,s.jsx)(r.Dkj,{})})]})]})}},34429:function(e,i,n){"use strict";n.r(i),n.d(i,{default:function(){return S}});var s=n(52322),t=n(44677),r=n(97992),l=n(98334),a=n(97112),o=n(91362),c=n(70771),d=n(80373),x=n(37606),m=n(6391),h=n.n(m),u=n(2784);function f(){let{autopilot:e}=(0,x.q)(),{redundancyMultiplier:i,storageTB:n,configViewMode:r}=(0,c.ZR)(),{canEstimate:l,estimatedSpendingPerMonth:a,estimatedSpendingPerTB:o}=function(){let{isAutopilotEnabled:e}=(0,x.q)(),{form:i}=(0,c.ZR)(),n=i.watch("allowanceMonth"),s=i.watch("storageTB"),t=(0,u.useMemo)(()=>!!e&&!!(null==n?void 0:n.gt(0))&&!!(null==s?void 0:s.gt(0)),[e,n,s]),r=(0,u.useMemo)(()=>t?n:new(h())(0),[t,n]),l=(0,u.useMemo)(()=>t?r.div(s):new(h())(0),[t,r,s]);return{canEstimate:t,estimatedSpendingPerMonth:r,estimatedSpendingPerTB:l}}(),m=(0,t.fb0)({sc:a}),f=(0,t.fb0)({sc:o});return"on"!==e.status?null:l?(0,s.jsx)(t.xrM,{children:(0,s.jsxs)("div",{className:"flex gap-4 items-center h-full",children:[(0,s.jsx)(t.xvT,{size:"12",font:"mono",weight:"medium",children:"Estimate:"}),(0,s.jsxs)("div",{className:"flex gap-1",children:[(0,s.jsx)(t.YKL,{size:"12",value:(0,d.qN)(o),dynamicUnits:!1,fixed:0,variant:"value"}),f.fiat&&(0,s.jsx)("div",{className:"flex",children:(0,s.jsx)(t.m2c,{size:"12",weight:"medium",value:f.fiat,color:"subtle",variant:"value",format:e=>"(".concat(f.currency.prefix).concat(e.toFixed(f.currency.fixed),")")})}),(0,s.jsxs)(t.xvT,{size:"12",font:"mono",weight:"medium",ellipsis:!0,children:["per TB/month with ",i.toFixed(1),"x redundancy"]})]}),!o.eq(a)&&(0,s.jsxs)("div",{className:"flex gap-1",children:[(0,s.jsx)(t.YKL,{size:"12",value:(0,d.qN)(a),dynamicUnits:!1,fixed:0,variant:"value"}),m.fiat&&(0,s.jsx)("div",{className:"flex",children:(0,s.jsx)(t.m2c,{size:"12",weight:"medium",value:m.fiat,color:"subtle",variant:"value",format:e=>"(".concat(m.currency.prefix).concat(e.toFixed(m.currency.fixed),")")})}),(0,s.jsxs)(t.xvT,{size:"12",font:"mono",weight:"medium",ellipsis:!0,children:["to store ",(0,d.vW)((0,d.xf)(n).toNumber()),"/month with"," ",i.toFixed(1),"x redundancy"]})]})]})}):(0,s.jsx)(t.xvT,{size:"12",font:"mono",weight:"medium",children:"advanced"===r?"Enter expected storage, period, and allowance values to estimate monthly spending.":"Enter expected storage and max price to estimate monthly spending."})}var j=n(47211);function p(){let{takeScreenshot:e}=(0,c.ZR)();return(0,s.jsxs)(t.h_2,{trigger:(0,s.jsx)(t.zxk,{children:(0,s.jsx)(j.jH8,{})}),contentProps:{align:"end"},children:[(0,s.jsx)(t.Juw,{children:"Actions"}),(0,s.jsxs)(t.Xiv,{onSelect:()=>{e({name:"config image",copy:!0})},children:[(0,s.jsx)(t.KpP,{children:(0,s.jsx)(j.olJ,{})}),"Copy image of configuration"]}),(0,s.jsxs)(t.Xiv,{onSelect:()=>{e({name:"config",download:!0})},children:[(0,s.jsx)(t.KpP,{children:(0,s.jsx)(j.vzB,{})}),"Download image of configuration"]})]})}function v(){let{configViewMode:e,setConfigViewMode:i}=(0,c.ZR)();return(0,s.jsx)("div",{className:"pl-1",children:(0,s.jsx)(t.ua7,{content:"advanced"===e?"Show advanced settings":"Hide advanced settings",children:(0,s.jsx)("div",{children:(0,s.jsx)(t.rsf,{"aria-label":"configViewMode",checked:"advanced"===e,onCheckedChange:e=>i(e?"advanced":"basic")})})})})}function g(){return(0,s.jsx)(t.J2e,{trigger:(0,s.jsxs)(t.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,s.jsx)(j.hiv,{}),"View",(0,s.jsx)(j.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:(0,s.jsxs)(t.WVB,{children:[(0,s.jsx)(t.__J,{children:"Show advanced settings"}),(0,s.jsx)(t.kFS,{children:(0,s.jsx)(v,{})})]})})}function w(){let{onSubmit:e,changeCount:i,shouldSyncDefaultContractSet:n,setShouldSyncDefaultContractSet:r,revalidateAndResetForm:l,form:a}=(0,c.ZR)();return(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[!!i&&(0,s.jsx)(t.xvT,{size:"12",color:"subtle",children:1===i?"1 change":"".concat(i," changes")}),(0,s.jsx)(t.zxk,{tip:"Reset all changes",icon:"contrast",disabled:!i,onClick:l,children:(0,s.jsx)(j.Wet,{})}),(0,s.jsxs)(t.eQh,{children:[(0,s.jsxs)(t.zxk,{tip:"Save all changes",variant:"accent",disabled:!a.formState.isDirty||a.formState.isSubmitting,onClick:e,children:[(0,s.jsx)(j.ZEk,{}),"Save changes"]}),(0,s.jsx)(t.J2e,{contentProps:{align:"end"},trigger:(0,s.jsx)(t.zxk,{variant:"accent",icon:"hover",children:(0,s.jsx)(j.shL,{})}),children:(0,s.jsxs)("div",{className:"px-1",children:[(0,s.jsx)(t.__J,{children:"Options"}),(0,s.jsxs)("div",{children:[(0,s.jsx)(t.rsf,{checked:n,onCheckedChange:e=>r(e),children:"sync default contract set"}),(0,s.jsx)(t.nvN,{size:"12",children:"Automatically update the default contract set to be the same as the autopilot contract set when changes are saved."})]})]})})]}),(0,s.jsx)(p,{}),(0,s.jsx)(g,{})]})}function y(){return(0,s.jsx)("div",{className:"pl-1"})}function b(){let{revalidateAndResetForm:e}=(0,c.ZR)();return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,s.jsx)(t.xvT,{children:(0,s.jsx)(j.gFQ,{className:"scale-[200%]"})}),(0,s.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,s.jsx)(t.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)(t.zxk,{onClick:()=>e(),children:"Reload"})]})]})}var N=n(92762),T=n(82851);function z(){let e=(0,x.q)(),[i,n]=(0,N.Z)("v0/renterd/config/recommendations",{defaultValue:!0}),{form:r,fields:a,evaluation:o}=(0,c.ZR)(),{hostMargin50:d,hostTarget50:m,hasDataToEvaluate:h,needsRecommendations:u,foundRecommendation:f,recommendations:p,usableHostsCurrent:v,userContractCountTarget:g,usableHostsAfterRecommendation:w}=o;if("on"!==e.autopilot.status)return null;let y=(0,s.jsxs)("div",{className:"flex flex-col gap-1 px-3 py-2",children:[(0,s.jsxs)(t.xvT,{size:"14",color:"subtle",children:["It is best practice to have settings that match with about"," ",(100*d).toFixed(0),"% more hosts than necessary in case some hosts go offline."]}),(0,s.jsx)(t.Z0O,{className:"w-full my-1"}),(0,s.jsxs)("div",{className:"flex justify-between items-center",children:[(0,s.jsx)(t.xvT,{size:"14",color:"subtle",children:"Required"}),(0,s.jsxs)(t.xvT,{size:"14",color:"contrast",children:[g," hosts"]})]}),(0,s.jsxs)("div",{className:"flex justify-between items-center",children:[(0,s.jsx)(t.xvT,{size:"14",color:"subtle",children:"Ideal"}),(0,s.jsxs)(t.xvT,{size:"14",color:"contrast",children:[m," hosts"]})]}),(0,s.jsx)(t.Z0O,{className:"w-full my-1"}),(0,s.jsxs)("div",{className:"flex justify-between items-center",children:[(0,s.jsx)(t.xvT,{size:"14",color:"subtle",children:"Current settings"}),(0,s.jsxs)(t.xvT,{size:"14",color:"contrast",children:[v," hosts"]})]}),u&&f?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex justify-between items-center",children:[(0,s.jsx)(t.xvT,{size:"14",color:"subtle",children:"Recommended settings"}),(0,s.jsxs)(t.xvT,{size:"14",color:"contrast",children:[w," hosts"]})]}),(0,s.jsx)(t.Z0O,{className:"w-full my-1"}),w{let{hrefId:i,key:n,title:o,currentLabel:c,targetLabel:d,targetValue:x,direction:m}=e;return(0,s.jsx)(k,{testId:n,title:(0,s.jsxs)(t.xvT,{size:"14",children:["up"===m?"Increase ":"Decrease ",(0,s.jsx)(t.rUS,{href:l._.config.index+"#"+i,size:"14",underline:"hover",children:o})," ","from ",c," to"," ",(0,s.jsx)(t.zxk,{size:"none",onClick:()=>(0,t.fsB)({form:r,fields:a,name:n,value:x,options:!0}),children:d})]}),action:(0,s.jsx)(t.xvT,{children:"up"===m?(0,s.jsx)(j.kqg,{}):(0,s.jsx)(j.EMN,{})})},n)})}):(0,s.jsx)(P,{maximized:i,setMaximized:n,maximizeControls:!1,tip:y,title:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.xvT,{color:"green",children:(0,s.jsx)(j.dmA,{})}),(0,s.jsxs)(t.xvT,{size:"16",weight:"medium",color:"subtle",children:[v,"/",m]}),(0,s.jsx)(t.xvT,{size:"16",weight:"medium",children:"Configuration matches with a sufficient number of hosts"})]})}):(0,s.jsx)(P,{maximized:i,setMaximized:n,maximizeControls:!1,title:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.xvT,{color:"contrast",children:(0,s.jsx)(j.oHy,{})}),(0,s.jsx)(t.xvT,{size:"16",weight:"medium",children:"The system will review your configuration once all fields are filled"})]})})}function k(e){let{testId:i,title:n,action:t}=e;return(0,s.jsx)("div",{"data-testid":i,className:"border-t first:border-t-0 border-gray-200 dark:border-graydark-100 px-3 py-2",children:(0,s.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,s.jsx)("div",{className:"flex-1 flex items-center",children:n}),t]})})}function P(e){let{children:i,maximized:n,setMaximized:r,maximizeControls:l,title:a,tip:o}=e,c=(0,s.jsxs)("div",{className:(0,T.cx)("flex justify-between items-center px-3 py-1.5",n&&i?"border-b border-gray-200 dark:border-graydark-300":"",l?"cursor-pointer":""),onClick:()=>{l&&r(!n)},children:[(0,s.jsx)("div",{className:(0,T.cx)("flex gap-2 items-center"),children:a}),l&&(0,s.jsx)(t.zxk,{variant:"ghost",onClick:()=>r(!n),children:n?(0,s.jsx)(j.mli,{}):(0,s.jsx)(j.fb4,{})})]});return(0,s.jsx)("div",{className:"relative",children:(0,s.jsx)("div",{className:"z-10 absolute top-0 left-1/2 -translate-x-1/2 flex justify-center",children:(0,s.jsx)("div",{className:"w-[600px] flex flex-col max-h-[600px] bg-gray-50 dark:bg-graydark-50 border-b border-x border-gray-300 dark:border-graydark-400 rounded-b",children:(0,s.jsxs)(t.xrM,{children:[o?(0,s.jsx)(t.zsw,{trigger:c,children:o}):c,i&&(0,s.jsx)("div",{"data-testid":"recommendationsList",children:i})]})})})})}function C(e){let{name:i,form:n,fields:r}=e;return(0,s.jsx)(t.ua7,{align:"end",content:"Pin the value to a fixed fiat amount. The daemon will automatically keep the value in sync.",children:(0,s.jsxs)("div",{className:"flex w-full justify-between",children:[(0,s.jsx)(t.xvT,{weight:"medium",color:"verySubtle",size:"14",children:"Pin"}),(0,s.jsx)(t.QBj,{name:i,form:n,fields:r,size:"small",group:!1})]})})}function M(e){let{pinningEnabled:i,pinnedCurrency:n,forexEndpointURL:r}=e;return(0,s.jsxs)(t.s_4,{className:"px-2 pt-1 pb-2",children:[(0,s.jsx)(t.xvT,{size:"12",color:"subtle",children:"To pin this field:"}),(0,s.jsxs)("div",{className:"flex flex-col",children:[!i&&(0,s.jsx)(t.rUS,{size:"12",href:l._.config.pinning,underline:"hover",children:"- Enable the pinning feature"}),!n&&(0,s.jsx)(t.rUS,{size:"12",href:l._.config.pinning,underline:"hover",children:"- Select a pinned currency"}),!r&&(0,s.jsx)(t.rUS,{size:"12",href:l._.config.pinning,underline:"hover",children:"- Enter a forex endpoint URL"})]})]})}function _(){let{openDialog:e}=(0,a.Rh)(),{form:i,fields:n,remoteError:d,configRef:x}=(0,c.ZR)(),m=i.watch("pinningEnabled"),h=i.watch("pinnedCurrency"),u=i.watch("forexEndpointURL"),j=i.watch("shouldPinAllowance"),p=i.watch("shouldPinMaxStoragePrice"),v=i.watch("shouldPinMaxUploadPrice"),g=i.watch("shouldPinMaxDownloadPrice"),N=i.watch("shouldPinMaxRPCPrice"),T=m&&h&&u;return(0,s.jsx)(o.J,{title:"Configuration",routes:l._,nav:(0,s.jsx)(y,{}),sidenav:(0,s.jsx)(r.e,{}),stats:(0,s.jsx)(f,{}),actions:(0,s.jsx)(w,{}),after:(0,s.jsx)(z,{}),openSettings:()=>e("settings"),size:"3",children:d?(0,s.jsx)(b,{}):(0,s.jsxs)("div",{ref:x,className:"px-5 py-6 flex flex-col gap-16",children:[(0,s.jsxs)(t.M9k,{title:"Storage",children:[(0,s.jsx)(t.CN9,{autoVisibility:!0,name:"storageTB",form:i,fields:n}),(0,s.jsx)(t.CN9,{autoVisibility:!0,name:"uploadTBMonth",form:i,fields:n}),(0,s.jsx)(t.CN9,{autoVisibility:!0,name:"downloadTBMonth",form:i,fields:n}),(0,s.jsx)(t.VXA,{id:"allowanceMonthGroup",title:"Allowance",description:n.allowanceMonth.description,control:(0,s.jsxs)("div",{className:"flex flex-col gap-1 w-[260px]",children:[(0,s.jsx)(C,{name:"shouldPinAllowance",form:i,fields:n}),j?T?(0,s.jsx)(t.npL,{name:"allowanceMonthPinned",form:i,fields:n,currency:h||void 0}):(0,s.jsx)(M,{pinningEnabled:m,pinnedCurrency:h,forexEndpointURL:u}):(0,s.jsx)(t.ckm,{name:"allowanceMonth",form:i,fields:n})]})}),(0,s.jsx)(t.CN9,{autoVisibility:!0,name:"periodWeeks",form:i,fields:n}),(0,s.jsx)(t.CN9,{autoVisibility:!0,name:"renewWindowWeeks",form:i,fields:n}),(0,s.jsx)(t.CN9,{autoVisibility:!0,name:"amountHosts",form:i,fields:n}),(0,s.jsx)(t.CN9,{autoVisibility:!0,form:i,fields:n,name:"autopilotContractSet"}),(0,s.jsx)(t.CN9,{autoVisibility:!0,form:i,fields:n,name:"prune"})]}),(0,s.jsxs)(t.M9k,{title:"Pricing",children:[(0,s.jsx)(t.VXA,{id:"maxStoragePriceTBMonthGroup",title:"Max storage price",description:n.maxStoragePriceTBMonth.description,control:(0,s.jsxs)("div",{className:"flex flex-col gap-1 w-[260px]",children:[(0,s.jsx)(C,{name:"shouldPinMaxStoragePrice",form:i,fields:n}),p?T?(0,s.jsx)(t.npL,{name:"maxStoragePriceTBMonthPinned",form:i,fields:n,currency:h||void 0}):(0,s.jsx)(M,{pinningEnabled:m,pinnedCurrency:h,forexEndpointURL:u}):(0,s.jsx)(t.ckm,{name:"maxStoragePriceTBMonth",form:i,fields:n})]})}),(0,s.jsx)(t.VXA,{id:"maxUploadPriceTBGroup",title:"Max upload price",description:n.maxUploadPriceTB.description,control:(0,s.jsxs)("div",{className:"flex flex-col gap-1 w-[260px]",children:[(0,s.jsx)(C,{name:"shouldPinMaxUploadPrice",form:i,fields:n}),v?T?(0,s.jsx)(t.npL,{name:"maxUploadPriceTBPinned",form:i,fields:n,currency:h||void 0}):(0,s.jsx)(M,{pinningEnabled:m,pinnedCurrency:h,forexEndpointURL:u}):(0,s.jsx)(t.ckm,{name:"maxUploadPriceTB",form:i,fields:n})]})}),(0,s.jsx)(t.VXA,{id:"maxDownloadPriceTBGroup",title:"Max download price",description:n.maxDownloadPriceTB.description,control:(0,s.jsxs)("div",{className:"flex flex-col gap-1 w-[260px]",children:[(0,s.jsx)(C,{name:"shouldPinMaxDownloadPrice",form:i,fields:n}),g?T?(0,s.jsx)(t.npL,{name:"maxDownloadPriceTBPinned",form:i,fields:n,currency:h||void 0}):(0,s.jsx)(M,{pinningEnabled:m,pinnedCurrency:h,forexEndpointURL:u}):(0,s.jsx)(t.ckm,{name:"maxDownloadPriceTB",form:i,fields:n})]})}),(0,s.jsx)(t.CN9,{autoVisibility:!0,name:"maxContractPrice",form:i,fields:n}),(0,s.jsx)(t.VXA,{id:"maxRPCPriceMillionGroup",title:"Max RPC price",description:n.maxRPCPriceMillion.description,control:(0,s.jsxs)("div",{className:"flex flex-col gap-1 w-[260px]",children:[(0,s.jsx)(C,{name:"shouldPinMaxRPCPrice",form:i,fields:n}),N?T?(0,s.jsx)(t.npL,{name:"maxRPCPriceMillionPinned",form:i,fields:n,currency:h||void 0}):(0,s.jsx)(M,{pinningEnabled:m,pinnedCurrency:h,forexEndpointURL:u}):(0,s.jsx)(t.ckm,{name:"maxRPCPriceMillion",form:i,fields:n})]})}),(0,s.jsx)(t.CN9,{autoVisibility:!0,name:"hostBlockHeightLeeway",form:i,fields:n}),(0,s.jsx)(t.CN9,{autoVisibility:!0,name:"minPriceTableValidityMinutes",form:i,fields:n}),(0,s.jsx)(t.CN9,{autoVisibility:!0,name:"minAccountExpiryDays",form:i,fields:n}),(0,s.jsx)(t.CN9,{autoVisibility:!0,name:"minMaxEphemeralAccountBalance",form:i,fields:n}),(0,s.jsx)(t.CN9,{autoVisibility:!0,name:"migrationSurchargeMultiplier",form:i,fields:n})]}),(0,s.jsx)(t.vRO,{title:"Hosts",category:"hosts",fields:n,form:i}),(0,s.jsx)(t.vRO,{title:"Wallet",category:"wallet",fields:n,form:i}),(0,s.jsx)(t.vRO,{title:"Contracts",category:"contractset",fields:n,form:i}),(0,s.jsx)(t.vRO,{title:"Uploads",category:"uploadpacking",fields:n,form:i}),(0,s.jsx)(t.vRO,{title:"Redundancy",category:"redundancy",fields:n,form:i}),(0,s.jsx)(t.vRO,{title:"Pinning",category:"pinning",fields:n,form:i})]})})}function S(){return(0,s.jsx)(_,{})}}},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,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/config",function(){return n(34429)}])},91362:function(e,i,n){"use strict";n.d(i,{J:function(){return u}});var s=n(52322),t=n(44677),r=n(55329),l=n(6391),a=n.n(l),o=n(98334),c=n(38855),d=n(97112),x=n(80373);function m(){var e,i,n,l,a,o;let{openDialog:m}=(0,d.Rh)(),h=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}}),u=(0,r.X2)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,r.cQ)(),j=(0,c.n)(),p=null===(e=h.data)||void 0===e?void 0:e.version,v="?"===p?"https://github.com/SiaFoundation/renterd/commits/":(null==p?void 0:p.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(p):"https://github.com/SiaFoundation/renterd/tree/".concat(p),g=h.data?new Date().getTime()-new Date(null===(i=h.data)||void 0===i?void 0:i.startTime).getTime():0;return(0,s.jsxs)(t.HfT,{name:"renterd",peerCount:null===(n=f.data)||void 0===n?void 0:n.length,connectPeer:()=>m("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-4 justify-between items-center",children:[(0,s.jsx)(t.__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)(t.XxW,{size:"14",maxLength:50,value:null===(l=u.data)||void 0===l?void 0:l.address,type:"address"})})]}),h.data&&(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,s.jsx)(t.xvT,{size:"14",children:(0,x.bc)(g,{format:"long"})})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(t.__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)(t.xvT,{size:"14",children:null===(a=h.data)||void 0===a?void 0:a.network})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,s.jsx)(t.rUS,{size:"14",href:v,underline:"hover",target:"_blank",ellipsis:!0,children:null===(o=h.data)||void 0===o?void 0:o.version})]})]})}function h(){let e=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"mainnet"!==e.data.network?(0,s.jsx)(t.t6k,{testnetName:e.data.network}):null}function u(e){let i=(0,r.X2)(),{isSynced:n}=(0,c.n)();return(0,s.jsx)(t.tU3,{appName:"renterd",profile:(0,s.jsx)(m,{}),banner:(0,s.jsx)(h,{}),connectivityRoute:o.h,isSynced:n,walletBalanceSc:i.data&&{spendable:new(a())(i.data.spendable),confirmed:new(a())(i.data.confirmed),unconfirmed:new(a())(i.data.unconfirmed)},...e})}},97992:function(e,i,n){"use strict";n.d(i,{e:function(){return c}});var s=n(52322),t=n(44677),r=n(47211),l=n(82851),a=n(98334),o=n(88385);function c(){let{totals:e}=(0,o.Z)(),i=e.all===e.info;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.KJW,{title:"Files",route:a._.buckets.index,children:(0,s.jsx)(r.ROc,{})}),(0,s.jsx)(t.KJW,{title:"Configuration",route:a._.config.index,children:(0,s.jsx)(r.wWN,{})}),(0,s.jsx)(t.KJW,{title:"Contracts",route:a._.contracts.index,children:(0,s.jsx)(r.VBo,{})}),(0,s.jsx)(t.KJW,{title:"Hosts",route:a._.hosts.index,children:(0,s.jsx)(r.VHe,{})}),(0,s.jsx)(t.KJW,{title:"S3 authentication keypairs",route:a._.keys.index,children:(0,s.jsx)(r._m8,{})}),(0,s.jsxs)("div",{className:"relative",children:[e.all?i?(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")}):(0,s.jsx)(t.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:e.all.toLocaleString()}):null,(0,s.jsx)(t.KJW,{title:"Alerts",route:a._.alerts.index,children:(0,s.jsx)(r.Dkj,{})})]})]})}},34429:function(e,i,n){"use strict";n.r(i),n.d(i,{default:function(){return M}});var s=n(52322),t=n(44677),r=n(97992),l=n(98334),a=n(97112),o=n(91362),c=n(70771),d=n(80373),x=n(37606),m=n(6391),h=n.n(m),u=n(2784);function f(){let{autopilot:e}=(0,x.q)(),{redundancyMultiplier:i,storageTB:n,configViewMode:r}=(0,c.ZR)(),{canEstimate:l,estimatedSpendingPerMonth:a,estimatedSpendingPerTB:o}=function(){let{isAutopilotEnabled:e}=(0,x.q)(),{form:i}=(0,c.ZR)(),n=i.watch("allowanceMonth"),s=i.watch("storageTB"),t=(0,u.useMemo)(()=>!!e&&!!(null==n?void 0:n.gt(0))&&!!(null==s?void 0:s.gt(0)),[e,n,s]),r=(0,u.useMemo)(()=>t?n:new(h())(0),[t,n]),l=(0,u.useMemo)(()=>t?r.div(s):new(h())(0),[t,r,s]);return{canEstimate:t,estimatedSpendingPerMonth:r,estimatedSpendingPerTB:l}}(),m=(0,t.fb0)({sc:a}),f=(0,t.fb0)({sc:o});return"on"!==e.status?null:l?(0,s.jsx)(t.xrM,{children:(0,s.jsxs)("div",{className:"flex gap-4 items-center h-full",children:[(0,s.jsx)(t.xvT,{size:"12",font:"mono",weight:"medium",children:"Estimate:"}),(0,s.jsxs)("div",{className:"flex gap-1",children:[(0,s.jsx)(t.YKL,{size:"12",value:(0,d.qN)(o),dynamicUnits:!1,fixed:0,variant:"value"}),f.fiat&&(0,s.jsx)("div",{className:"flex",children:(0,s.jsx)(t.m2c,{size:"12",weight:"medium",value:f.fiat,color:"subtle",variant:"value",format:e=>"(".concat(f.currency.prefix).concat(e.toFixed(f.currency.fixed),")")})}),(0,s.jsxs)(t.xvT,{size:"12",font:"mono",weight:"medium",ellipsis:!0,children:["per TB/month with ",i.toFixed(1),"x redundancy"]})]}),!o.eq(a)&&(0,s.jsxs)("div",{className:"flex gap-1",children:[(0,s.jsx)(t.YKL,{size:"12",value:(0,d.qN)(a),dynamicUnits:!1,fixed:0,variant:"value"}),m.fiat&&(0,s.jsx)("div",{className:"flex",children:(0,s.jsx)(t.m2c,{size:"12",weight:"medium",value:m.fiat,color:"subtle",variant:"value",format:e=>"(".concat(m.currency.prefix).concat(e.toFixed(m.currency.fixed),")")})}),(0,s.jsxs)(t.xvT,{size:"12",font:"mono",weight:"medium",ellipsis:!0,children:["to store ",(0,d.vW)((0,d.xf)(n).toNumber()),"/month with"," ",i.toFixed(1),"x redundancy"]})]})]})}):(0,s.jsx)(t.xvT,{size:"12",font:"mono",weight:"medium",children:"advanced"===r?"Enter expected storage, period, and allowance values to estimate monthly spending.":"Enter expected storage and max price to estimate monthly spending."})}var j=n(47211);function p(){let{takeScreenshot:e}=(0,c.ZR)();return(0,s.jsxs)(t.h_2,{trigger:(0,s.jsx)(t.zxk,{children:(0,s.jsx)(j.jH8,{})}),contentProps:{align:"end"},children:[(0,s.jsx)(t.Juw,{children:"Actions"}),(0,s.jsxs)(t.Xiv,{onSelect:()=>{e({name:"config image",copy:!0})},children:[(0,s.jsx)(t.KpP,{children:(0,s.jsx)(j.olJ,{})}),"Copy image of configuration"]}),(0,s.jsxs)(t.Xiv,{onSelect:()=>{e({name:"config",download:!0})},children:[(0,s.jsx)(t.KpP,{children:(0,s.jsx)(j.vzB,{})}),"Download image of configuration"]})]})}function v(){let{configViewMode:e,setConfigViewMode:i}=(0,c.ZR)();return(0,s.jsx)("div",{className:"pl-1",children:(0,s.jsx)(t.ua7,{content:"advanced"===e?"Show advanced settings":"Hide advanced settings",children:(0,s.jsx)("div",{children:(0,s.jsx)(t.rsf,{"aria-label":"configViewMode",checked:"advanced"===e,onCheckedChange:e=>i(e?"advanced":"basic")})})})})}function g(){return(0,s.jsx)(t.J2e,{trigger:(0,s.jsxs)(t.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,s.jsx)(j.hiv,{}),"View",(0,s.jsx)(j.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:(0,s.jsxs)(t.WVB,{children:[(0,s.jsx)(t.__J,{children:"Show advanced settings"}),(0,s.jsx)(t.kFS,{children:(0,s.jsx)(v,{})})]})})}function w(){let{onSubmit:e,changeCount:i,shouldSyncDefaultContractSet:n,setShouldSyncDefaultContractSet:r,revalidateAndResetForm:l,form:a}=(0,c.ZR)();return(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[!!i&&(0,s.jsx)(t.xvT,{size:"12",color:"subtle",children:1===i?"1 change":"".concat(i," changes")}),(0,s.jsx)(t.zxk,{tip:"Reset all changes",icon:"contrast",disabled:!i,onClick:l,children:(0,s.jsx)(j.Wet,{})}),(0,s.jsxs)(t.eQh,{children:[(0,s.jsxs)(t.zxk,{tip:"Save all changes",variant:"accent",disabled:!a.formState.isDirty||a.formState.isSubmitting,onClick:e,children:[(0,s.jsx)(j.ZEk,{}),"Save changes"]}),(0,s.jsx)(t.J2e,{contentProps:{align:"end"},trigger:(0,s.jsx)(t.zxk,{variant:"accent",icon:"hover",children:(0,s.jsx)(j.shL,{})}),children:(0,s.jsxs)("div",{className:"px-1",children:[(0,s.jsx)(t.__J,{children:"Options"}),(0,s.jsxs)("div",{children:[(0,s.jsx)(t.rsf,{checked:n,onCheckedChange:e=>r(e),children:"sync default contract set"}),(0,s.jsx)(t.nvN,{size:"12",children:"Automatically update the default contract set to be the same as the autopilot contract set when changes are saved."})]})]})})]}),(0,s.jsx)(p,{}),(0,s.jsx)(g,{})]})}function y(){return(0,s.jsx)("div",{className:"pl-1"})}function b(){let{revalidateAndResetForm:e}=(0,c.ZR)();return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,s.jsx)(t.xvT,{children:(0,s.jsx)(j.gFQ,{className:"scale-[200%]"})}),(0,s.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,s.jsx)(t.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)(t.zxk,{onClick:()=>e(),children:"Reload"})]})]})}var N=n(92762),T=n(82851);function z(){let e=(0,x.q)(),[i,n]=(0,N.Z)("v0/renterd/config/recommendations",{defaultValue:!0}),{form:r,fields:a,evaluation:o}=(0,c.ZR)(),{hostMargin50:d,hostTarget50:m,hasDataToEvaluate:h,needsRecommendations:u,foundRecommendation:f,recommendations:p,usableHostsCurrent:v,userContractCountTarget:g,usableHostsAfterRecommendation:w}=o;if("on"!==e.autopilot.status)return null;let y=(0,s.jsxs)("div",{className:"flex flex-col gap-1 px-3 py-2",children:[(0,s.jsxs)(t.xvT,{size:"14",color:"subtle",children:["It is best practice to have settings that match with about"," ",(100*d).toFixed(0),"% more hosts than necessary in case some hosts go offline."]}),(0,s.jsx)(t.Z0O,{className:"w-full my-1"}),(0,s.jsxs)("div",{className:"flex justify-between items-center",children:[(0,s.jsx)(t.xvT,{size:"14",color:"subtle",children:"Required"}),(0,s.jsxs)(t.xvT,{size:"14",color:"contrast",children:[g," hosts"]})]}),(0,s.jsxs)("div",{className:"flex justify-between items-center",children:[(0,s.jsx)(t.xvT,{size:"14",color:"subtle",children:"Ideal"}),(0,s.jsxs)(t.xvT,{size:"14",color:"contrast",children:[m," hosts"]})]}),(0,s.jsx)(t.Z0O,{className:"w-full my-1"}),(0,s.jsxs)("div",{className:"flex justify-between items-center",children:[(0,s.jsx)(t.xvT,{size:"14",color:"subtle",children:"Current settings"}),(0,s.jsxs)(t.xvT,{size:"14",color:"contrast",children:[v," hosts"]})]}),u&&f?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex justify-between items-center",children:[(0,s.jsx)(t.xvT,{size:"14",color:"subtle",children:"Recommended settings"}),(0,s.jsxs)(t.xvT,{size:"14",color:"contrast",children:[w," hosts"]})]}),(0,s.jsx)(t.Z0O,{className:"w-full my-1"}),w{let{hrefId:i,key:n,title:o,currentLabel:c,targetLabel:d,targetValue:x,direction:m}=e;return(0,s.jsx)(k,{testId:n,title:(0,s.jsxs)(t.xvT,{size:"14",children:["up"===m?"Increase ":"Decrease ",(0,s.jsx)(t.rUS,{href:l._.config.index+"#"+i,size:"14",underline:"hover",children:o})," ","from ",c," to"," ",(0,s.jsx)(t.zxk,{size:"none",onClick:()=>(0,t.fsB)({form:r,fields:a,name:n,value:x,options:!0}),children:d})]}),action:(0,s.jsx)(t.xvT,{children:"up"===m?(0,s.jsx)(j.kqg,{}):(0,s.jsx)(j.EMN,{})})},n)})}):(0,s.jsx)(P,{maximized:i,setMaximized:n,maximizeControls:!1,tip:y,title:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.xvT,{color:"green",children:(0,s.jsx)(j.dmA,{})}),(0,s.jsxs)(t.xvT,{size:"16",weight:"medium",color:"subtle",children:[v,"/",m]}),(0,s.jsx)(t.xvT,{size:"16",weight:"medium",children:"Configuration matches with a sufficient number of hosts"})]})}):(0,s.jsx)(P,{maximized:i,setMaximized:n,maximizeControls:!1,title:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.xvT,{color:"contrast",children:(0,s.jsx)(j.oHy,{})}),(0,s.jsx)(t.xvT,{size:"16",weight:"medium",children:"The system will review your configuration once all fields are filled"})]})})}function k(e){let{testId:i,title:n,action:t}=e;return(0,s.jsx)("div",{"data-testid":i,className:"border-t first:border-t-0 border-gray-200 dark:border-graydark-100 px-3 py-2",children:(0,s.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,s.jsx)("div",{className:"flex-1 flex items-center",children:n}),t]})})}function P(e){let{children:i,maximized:n,setMaximized:r,maximizeControls:l,title:a,tip:o}=e,c=(0,s.jsxs)("div",{className:(0,T.cx)("flex justify-between items-center px-3 py-1.5",n&&i?"border-b border-gray-200 dark:border-graydark-300":"",l?"cursor-pointer":""),onClick:()=>{l&&r(!n)},children:[(0,s.jsx)("div",{className:(0,T.cx)("flex gap-2 items-center"),children:a}),l&&(0,s.jsx)(t.zxk,{variant:"ghost",onClick:()=>r(!n),children:n?(0,s.jsx)(j.mli,{}):(0,s.jsx)(j.fb4,{})})]});return(0,s.jsx)("div",{className:"relative",children:(0,s.jsx)("div",{className:"z-10 absolute top-0 left-1/2 -translate-x-1/2 flex justify-center",children:(0,s.jsx)("div",{className:"w-[600px] flex flex-col max-h-[600px] bg-gray-50 dark:bg-graydark-50 border-b border-x border-gray-300 dark:border-graydark-400 rounded-b",children:(0,s.jsxs)(t.xrM,{children:[o?(0,s.jsx)(t.zsw,{trigger:c,children:o}):c,i&&(0,s.jsx)("div",{"data-testid":"recommendationsList",children:i})]})})})})}function C(e){let{name:i,form:n,fields:r}=e;return(0,s.jsx)(t.ua7,{align:"end",content:"Pin the value to a fixed fiat amount. The daemon will automatically keep the value in sync.",children:(0,s.jsxs)("div",{className:"flex w-full justify-between",children:[(0,s.jsx)(t.xvT,{weight:"medium",color:"verySubtle",size:"14",children:"Pin"}),(0,s.jsx)(t.QBj,{name:i,form:n,fields:r,size:"small",group:!1})]})})}function _(e){let{pinningEnabled:i,pinnedCurrency:n,forexEndpointURL:r}=e;return(0,s.jsxs)(t.s_4,{className:"px-2 pt-1 pb-2",children:[(0,s.jsx)(t.xvT,{size:"12",color:"subtle",children:"To pin this field:"}),(0,s.jsxs)("div",{className:"flex flex-col",children:[!i&&(0,s.jsx)(t.rUS,{size:"12",href:l._.config.pinning,underline:"hover",children:"- Enable the pinning feature"}),!n&&(0,s.jsx)(t.rUS,{size:"12",href:l._.config.pinning,underline:"hover",children:"- Select a pinned currency"}),!r&&(0,s.jsx)(t.rUS,{size:"12",href:l._.config.pinning,underline:"hover",children:"- Enter a forex endpoint URL"})]})]})}function S(){let{openDialog:e}=(0,a.Rh)(),{form:i,fields:n,remoteError:d,configRef:x}=(0,c.ZR)(),m=i.watch("pinningEnabled"),h=i.watch("pinnedCurrency"),u=i.watch("forexEndpointURL"),j=i.watch("shouldPinAllowance"),p=i.watch("shouldPinMaxStoragePrice"),v=i.watch("shouldPinMaxUploadPrice"),g=i.watch("shouldPinMaxDownloadPrice"),N=m&&h&&u;return(0,s.jsx)(o.J,{title:"Configuration",routes:l._,nav:(0,s.jsx)(y,{}),sidenav:(0,s.jsx)(r.e,{}),stats:(0,s.jsx)(f,{}),actions:(0,s.jsx)(w,{}),after:(0,s.jsx)(z,{}),openSettings:()=>e("settings"),size:"3",children:d?(0,s.jsx)(b,{}):(0,s.jsxs)("div",{ref:x,className:"px-5 py-6 flex flex-col gap-16",children:[(0,s.jsxs)(t.M9k,{title:"Storage",children:[(0,s.jsx)(t.CN9,{autoVisibility:!0,name:"storageTB",form:i,fields:n}),(0,s.jsx)(t.CN9,{autoVisibility:!0,name:"uploadTBMonth",form:i,fields:n}),(0,s.jsx)(t.CN9,{autoVisibility:!0,name:"downloadTBMonth",form:i,fields:n}),(0,s.jsx)(t.VXA,{id:"allowanceMonthGroup",title:"Allowance",description:n.allowanceMonth.description,control:(0,s.jsxs)("div",{className:"flex flex-col gap-1 w-[260px]",children:[(0,s.jsx)(C,{name:"shouldPinAllowance",form:i,fields:n}),j?N?(0,s.jsx)(t.npL,{name:"allowanceMonthPinned",form:i,fields:n,currency:h||void 0}):(0,s.jsx)(_,{pinningEnabled:m,pinnedCurrency:h,forexEndpointURL:u}):(0,s.jsx)(t.ckm,{name:"allowanceMonth",form:i,fields:n})]})}),(0,s.jsx)(t.CN9,{autoVisibility:!0,name:"periodWeeks",form:i,fields:n}),(0,s.jsx)(t.CN9,{autoVisibility:!0,name:"renewWindowWeeks",form:i,fields:n}),(0,s.jsx)(t.CN9,{autoVisibility:!0,name:"amountHosts",form:i,fields:n}),(0,s.jsx)(t.CN9,{autoVisibility:!0,form:i,fields:n,name:"autopilotContractSet"}),(0,s.jsx)(t.CN9,{autoVisibility:!0,form:i,fields:n,name:"prune"})]}),(0,s.jsxs)(t.M9k,{title:"Pricing",children:[(0,s.jsx)(t.VXA,{id:"maxStoragePriceTBMonthGroup",title:"Max storage price",description:n.maxStoragePriceTBMonth.description,control:(0,s.jsxs)("div",{className:"flex flex-col gap-1 w-[260px]",children:[(0,s.jsx)(C,{name:"shouldPinMaxStoragePrice",form:i,fields:n}),p?N?(0,s.jsx)(t.npL,{name:"maxStoragePriceTBMonthPinned",form:i,fields:n,currency:h||void 0}):(0,s.jsx)(_,{pinningEnabled:m,pinnedCurrency:h,forexEndpointURL:u}):(0,s.jsx)(t.ckm,{name:"maxStoragePriceTBMonth",form:i,fields:n})]})}),(0,s.jsx)(t.VXA,{id:"maxUploadPriceTBGroup",title:"Max upload price",description:n.maxUploadPriceTB.description,control:(0,s.jsxs)("div",{className:"flex flex-col gap-1 w-[260px]",children:[(0,s.jsx)(C,{name:"shouldPinMaxUploadPrice",form:i,fields:n}),v?N?(0,s.jsx)(t.npL,{name:"maxUploadPriceTBPinned",form:i,fields:n,currency:h||void 0}):(0,s.jsx)(_,{pinningEnabled:m,pinnedCurrency:h,forexEndpointURL:u}):(0,s.jsx)(t.ckm,{name:"maxUploadPriceTB",form:i,fields:n})]})}),(0,s.jsx)(t.VXA,{id:"maxDownloadPriceTBGroup",title:"Max download price",description:n.maxDownloadPriceTB.description,control:(0,s.jsxs)("div",{className:"flex flex-col gap-1 w-[260px]",children:[(0,s.jsx)(C,{name:"shouldPinMaxDownloadPrice",form:i,fields:n}),g?N?(0,s.jsx)(t.npL,{name:"maxDownloadPriceTBPinned",form:i,fields:n,currency:h||void 0}):(0,s.jsx)(_,{pinningEnabled:m,pinnedCurrency:h,forexEndpointURL:u}):(0,s.jsx)(t.ckm,{name:"maxDownloadPriceTB",form:i,fields:n})]})}),(0,s.jsx)(t.CN9,{autoVisibility:!0,name:"maxContractPrice",form:i,fields:n}),(0,s.jsx)(t.CN9,{autoVisibility:!0,name:"maxRPCPriceMillion",form:i,fields:n}),(0,s.jsx)(t.CN9,{autoVisibility:!0,name:"hostBlockHeightLeeway",form:i,fields:n}),(0,s.jsx)(t.CN9,{autoVisibility:!0,name:"minPriceTableValidityMinutes",form:i,fields:n}),(0,s.jsx)(t.CN9,{autoVisibility:!0,name:"minAccountExpiryDays",form:i,fields:n}),(0,s.jsx)(t.CN9,{autoVisibility:!0,name:"minMaxEphemeralAccountBalance",form:i,fields:n}),(0,s.jsx)(t.CN9,{autoVisibility:!0,name:"migrationSurchargeMultiplier",form:i,fields:n})]}),(0,s.jsx)(t.vRO,{title:"Hosts",category:"hosts",fields:n,form:i}),(0,s.jsx)(t.vRO,{title:"Wallet",category:"wallet",fields:n,form:i}),(0,s.jsx)(t.vRO,{title:"Contracts",category:"contractset",fields:n,form:i}),(0,s.jsx)(t.vRO,{title:"Uploads",category:"uploadpacking",fields:n,form:i}),(0,s.jsx)(t.vRO,{title:"Redundancy",category:"redundancy",fields:n,form:i}),(0,s.jsx)(t.vRO,{title:"Pinning",category:"pinning",fields:n,form:i})]})})}function M(){return(0,s.jsx)(S,{})}}},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/alerts.html b/renterd/assets/alerts.html index 0e3909848..db68883a8 100644 --- a/renterd/assets/alerts.html +++ b/renterd/assets/alerts.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/buckets.html b/renterd/assets/buckets.html index 50942315c..c682b7717 100644 --- a/renterd/assets/buckets.html +++ b/renterd/assets/buckets.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/buckets/[bucket]/files/[[...path]].html b/renterd/assets/buckets/[bucket]/files/[[...path]].html index 66f8b7ef0..1ed39ff74 100644 --- a/renterd/assets/buckets/[bucket]/files/[[...path]].html +++ b/renterd/assets/buckets/[bucket]/files/[[...path]].html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/buckets/[bucket]/uploads.html b/renterd/assets/buckets/[bucket]/uploads.html index cc2ae18f7..432d087bc 100644 --- a/renterd/assets/buckets/[bucket]/uploads.html +++ b/renterd/assets/buckets/[bucket]/uploads.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/config.html b/renterd/assets/config.html index 53b48a709..8fbe0c9ba 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 ec43b8649..be3c61d16 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/hosts.html b/renterd/assets/hosts.html index 0d1195525..793058759 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 0a8509827..7a62d68e4 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/keys.html b/renterd/assets/keys.html index 68dfb10a7..4905e9a7d 100644 --- a/renterd/assets/keys.html +++ b/renterd/assets/keys.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 c5415502c..5b12d15f2 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 0c7c07d6c..89f388189 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 904de9040..96a9ecd18 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